@mozaic-ds/chart 0.1.0-beta.10 → 0.1.0-beta.12
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/mozaic-chart.js +513 -540
- package/dist/mozaic-chart.umd.cjs +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/line/LineChart.vue +1 -1
- package/src/components/mixed/MixedBarLineChart.vue +2 -16
- package/src/components/radar/RadarChart.vue +3 -4
- package/src/services/ChartsCommonLegend.ts +7 -11
- package/src/services/MixedBarLineFunctions.ts +8 -28
package/dist/mozaic-chart.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
var ha = Object.defineProperty;
|
|
2
2
|
var da = (i, t, e) => t in i ? ha(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
-
var
|
|
4
|
-
import { version as ua, defineComponent as Vt, ref as X, shallowRef as to, onMounted as eo, onBeforeUnmount as fa, watch as
|
|
3
|
+
var k = (i, t, e) => (da(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
+
import { version as ua, defineComponent as Vt, ref as X, shallowRef as to, onMounted as eo, onBeforeUnmount as fa, watch as di, toRaw as Xi, h as io, isProxy as no, reactive as so, computed as z, openBlock as ft, createElementBlock as Ie, createElementVNode as gt, createBlock as Fe, unref as Zt, normalizeClass as Re, normalizeStyle as Qt, createCommentVNode as Ee } from "vue";
|
|
5
5
|
/*!
|
|
6
6
|
* @kurkle/color v0.3.2
|
|
7
7
|
* https://github.com/kurkle/color#readme
|
|
8
8
|
* (c) 2023 Jukka Kurkela
|
|
9
9
|
* Released under the MIT License
|
|
10
10
|
*/
|
|
11
|
-
function
|
|
11
|
+
function Be(i) {
|
|
12
12
|
return i + 0.5 | 0;
|
|
13
13
|
}
|
|
14
14
|
const St = (i, t, e) => Math.max(Math.min(i, e), t);
|
|
15
|
-
function
|
|
16
|
-
return St(
|
|
15
|
+
function de(i) {
|
|
16
|
+
return St(Be(i * 2.55), 0, 255);
|
|
17
17
|
}
|
|
18
18
|
function Mt(i) {
|
|
19
|
-
return St(
|
|
19
|
+
return St(Be(i * 255), 0, 255);
|
|
20
20
|
}
|
|
21
21
|
function yt(i) {
|
|
22
|
-
return St(
|
|
22
|
+
return St(Be(i / 2.55) / 100, 0, 1);
|
|
23
23
|
}
|
|
24
24
|
function An(i) {
|
|
25
|
-
return St(
|
|
25
|
+
return St(Be(i * 100), 0, 100);
|
|
26
26
|
}
|
|
27
|
-
const nt = { 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 }, Gi = [..."0123456789ABCDEF"], ga = (i) => Gi[i & 15], pa = (i) => Gi[(i & 240) >> 4] + Gi[i & 15],
|
|
27
|
+
const nt = { 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 }, Gi = [..."0123456789ABCDEF"], ga = (i) => Gi[i & 15], pa = (i) => Gi[(i & 240) >> 4] + Gi[i & 15], Ue = (i) => (i & 240) >> 4 === (i & 15), ma = (i) => Ue(i.r) && Ue(i.g) && Ue(i.b) && Ue(i.a);
|
|
28
28
|
function ba(i) {
|
|
29
29
|
var t = i.length, e;
|
|
30
30
|
return i[0] === "#" && (t === 4 || t === 5 ? e = {
|
|
@@ -88,7 +88,7 @@ function Ca(i) {
|
|
|
88
88
|
let e = 255, n;
|
|
89
89
|
if (!t)
|
|
90
90
|
return;
|
|
91
|
-
t[5] !== n && (e = t[6] ?
|
|
91
|
+
t[5] !== n && (e = t[6] ? de(+t[5]) : Mt(+t[5]));
|
|
92
92
|
const s = ao(+t[2]), o = +t[3] / 100, a = +t[4] / 100;
|
|
93
93
|
return t[1] === "hwb" ? n = ka(s, o, a) : t[1] === "hsv" ? n = Ma(s, o, a) : n = un(s, o, a), {
|
|
94
94
|
r: n[0],
|
|
@@ -295,10 +295,10 @@ function Da() {
|
|
|
295
295
|
}
|
|
296
296
|
return i;
|
|
297
297
|
}
|
|
298
|
-
let
|
|
298
|
+
let Xe;
|
|
299
299
|
function La(i) {
|
|
300
|
-
|
|
301
|
-
const t =
|
|
300
|
+
Xe || (Xe = Da(), Xe.transparent = [0, 0, 0, 0]);
|
|
301
|
+
const t = Xe[i.toLowerCase()];
|
|
302
302
|
return t && {
|
|
303
303
|
r: t[0],
|
|
304
304
|
g: t[1],
|
|
@@ -313,9 +313,9 @@ function Oa(i) {
|
|
|
313
313
|
if (t) {
|
|
314
314
|
if (t[7] !== n) {
|
|
315
315
|
const a = +t[7];
|
|
316
|
-
e = t[8] ?
|
|
316
|
+
e = t[8] ? de(a) : St(a * 255, 0, 255);
|
|
317
317
|
}
|
|
318
|
-
return n = +t[1], s = +t[3], o = +t[5], n = 255 & (t[2] ?
|
|
318
|
+
return n = +t[1], s = +t[3], o = +t[5], n = 255 & (t[2] ? de(n) : St(n, 0, 255)), s = 255 & (t[4] ? de(s) : St(s, 0, 255)), o = 255 & (t[6] ? de(o) : St(o, 0, 255)), {
|
|
319
319
|
r: n,
|
|
320
320
|
g: s,
|
|
321
321
|
b: o,
|
|
@@ -336,7 +336,7 @@ function Fa(i, t, e) {
|
|
|
336
336
|
a: i.a + e * (t.a - i.a)
|
|
337
337
|
};
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function Ge(i, t, e) {
|
|
340
340
|
if (i) {
|
|
341
341
|
let n = hn(i);
|
|
342
342
|
n[t] = Math.max(0, Math.min(n[t] + n[t] * e, t === 0 ? 360 : 1)), n = un(n), i.r = n[0], i.g = n[1], i.b = n[2];
|
|
@@ -402,7 +402,7 @@ class Se {
|
|
|
402
402
|
return e.a *= 1 - t, this;
|
|
403
403
|
}
|
|
404
404
|
greyscale() {
|
|
405
|
-
const t = this._rgb, e =
|
|
405
|
+
const t = this._rgb, e = Be(t.r * 0.3 + t.g * 0.59 + t.b * 0.11);
|
|
406
406
|
return t.r = t.g = t.b = e, this;
|
|
407
407
|
}
|
|
408
408
|
opaquer(t) {
|
|
@@ -414,16 +414,16 @@ class Se {
|
|
|
414
414
|
return t.r = 255 - t.r, t.g = 255 - t.g, t.b = 255 - t.b, this;
|
|
415
415
|
}
|
|
416
416
|
lighten(t) {
|
|
417
|
-
return
|
|
417
|
+
return Ge(this._rgb, 2, t), this;
|
|
418
418
|
}
|
|
419
419
|
darken(t) {
|
|
420
|
-
return
|
|
420
|
+
return Ge(this._rgb, 2, -t), this;
|
|
421
421
|
}
|
|
422
422
|
saturate(t) {
|
|
423
|
-
return
|
|
423
|
+
return Ge(this._rgb, 1, t), this;
|
|
424
424
|
}
|
|
425
425
|
desaturate(t) {
|
|
426
|
-
return
|
|
426
|
+
return Ge(this._rgb, 1, -t), this;
|
|
427
427
|
}
|
|
428
428
|
rotate(t) {
|
|
429
429
|
return Pa(this._rgb, t), this;
|
|
@@ -532,7 +532,7 @@ function we(i, t, e) {
|
|
|
532
532
|
}
|
|
533
533
|
return i;
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function be(i, t) {
|
|
536
536
|
return we(i, t, {
|
|
537
537
|
merger: Wa
|
|
538
538
|
});
|
|
@@ -541,7 +541,7 @@ function Wa(i, t, e) {
|
|
|
541
541
|
if (!co(i))
|
|
542
542
|
return;
|
|
543
543
|
const n = t[i], s = e[i];
|
|
544
|
-
T(n) && T(s) ?
|
|
544
|
+
T(n) && T(s) ? be(n, s) : Object.prototype.hasOwnProperty.call(t, i) || (t[i] = fi(s));
|
|
545
545
|
}
|
|
546
546
|
const On = {
|
|
547
547
|
// Chart.helpers.core resolveObjectKey should resolve empty key to root object
|
|
@@ -586,12 +586,12 @@ function Va(i) {
|
|
|
586
586
|
return i.type === "mouseup" || i.type === "click" || i.type === "contextmenu";
|
|
587
587
|
}
|
|
588
588
|
const N = Math.PI, H = 2 * N, ja = H + N, gi = Number.POSITIVE_INFINITY, $a = N / 180, Y = N / 2, Tt = N / 4, Fn = N * 2 / 3, wt = Math.log10, ut = Math.sign;
|
|
589
|
-
function
|
|
589
|
+
function ye(i, t, e) {
|
|
590
590
|
return Math.abs(i - t) < e;
|
|
591
591
|
}
|
|
592
592
|
function Rn(i) {
|
|
593
593
|
const t = Math.round(i);
|
|
594
|
-
i =
|
|
594
|
+
i = ye(i, t, i / 1e3) ? t : i;
|
|
595
595
|
const e = Math.pow(10, Math.floor(wt(i))), n = i / e;
|
|
596
596
|
return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * e;
|
|
597
597
|
}
|
|
@@ -781,7 +781,7 @@ function er(i) {
|
|
|
781
781
|
const o = n.xmin !== t.min || n.xmax !== t.max || n.ymin !== e.min || n.ymax !== e.max;
|
|
782
782
|
return Object.assign(n, s), o;
|
|
783
783
|
}
|
|
784
|
-
const
|
|
784
|
+
const qe = (i) => i === 0 || i === 1, zn = (i, t, e) => -(Math.pow(2, 10 * (i -= 1)) * Math.sin((i - t) * H / e)), Wn = (i, t, e) => Math.pow(2, -10 * i) * Math.sin((i - t) * H / e) + 1, xe = {
|
|
785
785
|
linear: (i) => i,
|
|
786
786
|
easeInQuad: (i) => i * i,
|
|
787
787
|
easeOutQuad: (i) => -i * (i - 2),
|
|
@@ -800,14 +800,14 @@ const Ke = (i) => i === 0 || i === 1, zn = (i, t, e) => -(Math.pow(2, 10 * (i -=
|
|
|
800
800
|
easeInOutSine: (i) => -0.5 * (Math.cos(N * i) - 1),
|
|
801
801
|
easeInExpo: (i) => i === 0 ? 0 : Math.pow(2, 10 * (i - 1)),
|
|
802
802
|
easeOutExpo: (i) => i === 1 ? 1 : -Math.pow(2, -10 * i) + 1,
|
|
803
|
-
easeInOutExpo: (i) =>
|
|
803
|
+
easeInOutExpo: (i) => qe(i) ? i : i < 0.5 ? 0.5 * Math.pow(2, 10 * (i * 2 - 1)) : 0.5 * (-Math.pow(2, -10 * (i * 2 - 1)) + 2),
|
|
804
804
|
easeInCirc: (i) => i >= 1 ? i : -(Math.sqrt(1 - i * i) - 1),
|
|
805
805
|
easeOutCirc: (i) => Math.sqrt(1 - (i -= 1) * i),
|
|
806
806
|
easeInOutCirc: (i) => (i /= 0.5) < 1 ? -0.5 * (Math.sqrt(1 - i * i) - 1) : 0.5 * (Math.sqrt(1 - (i -= 2) * i) + 1),
|
|
807
|
-
easeInElastic: (i) =>
|
|
808
|
-
easeOutElastic: (i) =>
|
|
807
|
+
easeInElastic: (i) => qe(i) ? i : zn(i, 0.075, 0.3),
|
|
808
|
+
easeOutElastic: (i) => qe(i) ? i : Wn(i, 0.075, 0.3),
|
|
809
809
|
easeInOutElastic(i) {
|
|
810
|
-
return
|
|
810
|
+
return qe(i) ? i : i < 0.5 ? 0.5 * zn(i * 2, 0.1125, 0.45) : 0.5 + 0.5 * Wn(i * 2 - 1, 0.1125, 0.45);
|
|
811
811
|
},
|
|
812
812
|
easeInBack(i) {
|
|
813
813
|
return i * i * ((1.70158 + 1) * i - 1.70158);
|
|
@@ -819,11 +819,11 @@ const Ke = (i) => i === 0 || i === 1, zn = (i, t, e) => -(Math.pow(2, 10 * (i -=
|
|
|
819
819
|
let t = 1.70158;
|
|
820
820
|
return (i /= 0.5) < 1 ? 0.5 * (i * i * (((t *= 1.525) + 1) * i - t)) : 0.5 * ((i -= 2) * i * (((t *= 1.525) + 1) * i + t) + 2);
|
|
821
821
|
},
|
|
822
|
-
easeInBounce: (i) => 1 -
|
|
822
|
+
easeInBounce: (i) => 1 - xe.easeOutBounce(1 - i),
|
|
823
823
|
easeOutBounce(i) {
|
|
824
824
|
return i < 1 / 2.75 ? 7.5625 * i * i : i < 2 / 2.75 ? 7.5625 * (i -= 1.5 / 2.75) * i + 0.75 : i < 2.5 / 2.75 ? 7.5625 * (i -= 2.25 / 2.75) * i + 0.9375 : 7.5625 * (i -= 2.625 / 2.75) * i + 0.984375;
|
|
825
825
|
},
|
|
826
|
-
easeInOutBounce: (i) => i < 0.5 ?
|
|
826
|
+
easeInOutBounce: (i) => i < 0.5 ? xe.easeInBounce(i * 2) * 0.5 : xe.easeOutBounce(i * 2 - 1) * 0.5 + 0.5
|
|
827
827
|
};
|
|
828
828
|
function bn(i) {
|
|
829
829
|
if (i && typeof i == "object") {
|
|
@@ -1037,7 +1037,7 @@ function lr(i) {
|
|
|
1037
1037
|
});
|
|
1038
1038
|
}
|
|
1039
1039
|
const Ht = /* @__PURE__ */ Object.create(null), Ki = /* @__PURE__ */ Object.create(null);
|
|
1040
|
-
function
|
|
1040
|
+
function _e(i, t) {
|
|
1041
1041
|
if (!t)
|
|
1042
1042
|
return i;
|
|
1043
1043
|
const e = t.split(".");
|
|
@@ -1048,7 +1048,7 @@ function xe(i, t) {
|
|
|
1048
1048
|
return i;
|
|
1049
1049
|
}
|
|
1050
1050
|
function Ei(i, t, e) {
|
|
1051
|
-
return typeof t == "string" ? we(
|
|
1051
|
+
return typeof t == "string" ? we(_e(i, t), e) : we(_e(i, ""), t);
|
|
1052
1052
|
}
|
|
1053
1053
|
class cr {
|
|
1054
1054
|
constructor(t, e) {
|
|
@@ -1074,7 +1074,7 @@ class cr {
|
|
|
1074
1074
|
return Ei(this, t, e);
|
|
1075
1075
|
}
|
|
1076
1076
|
get(t) {
|
|
1077
|
-
return
|
|
1077
|
+
return _e(this, t);
|
|
1078
1078
|
}
|
|
1079
1079
|
describe(t, e) {
|
|
1080
1080
|
return Ei(Ki, t, e);
|
|
@@ -1083,7 +1083,7 @@ class cr {
|
|
|
1083
1083
|
return Ei(Ht, t, e);
|
|
1084
1084
|
}
|
|
1085
1085
|
route(t, e, n, s) {
|
|
1086
|
-
const o =
|
|
1086
|
+
const o = _e(this, t), a = _e(this, n), r = "_" + e;
|
|
1087
1087
|
Object.defineProperties(o, {
|
|
1088
1088
|
[r]: {
|
|
1089
1089
|
value: o[e],
|
|
@@ -1315,7 +1315,7 @@ function U(i, t) {
|
|
|
1315
1315
|
};
|
|
1316
1316
|
return s.string = hr(s), s;
|
|
1317
1317
|
}
|
|
1318
|
-
function
|
|
1318
|
+
function Ke(i, t, e, n) {
|
|
1319
1319
|
let s = !0, o, a, r;
|
|
1320
1320
|
for (o = 0, a = i.length; o < a; ++o)
|
|
1321
1321
|
if (r = i[o], r !== void 0 && (t !== void 0 && typeof r == "function" && (r = r(t), s = !1), e !== void 0 && W(r) && (r = r[e % r.length], s = !1), r !== void 0))
|
|
@@ -1395,7 +1395,7 @@ function xn(i, t = [
|
|
|
1395
1395
|
}
|
|
1396
1396
|
});
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
function Jt(i, t, e, n) {
|
|
1399
1399
|
const s = {
|
|
1400
1400
|
_cacheable: !1,
|
|
1401
1401
|
_proxy: i,
|
|
@@ -1403,8 +1403,8 @@ function Qt(i, t, e, n) {
|
|
|
1403
1403
|
_subProxy: e,
|
|
1404
1404
|
_stack: /* @__PURE__ */ new Set(),
|
|
1405
1405
|
_descriptors: _o(i, n),
|
|
1406
|
-
setContext: (o) =>
|
|
1407
|
-
override: (o) =>
|
|
1406
|
+
setContext: (o) => Jt(i, o, e, n),
|
|
1407
|
+
override: (o) => Jt(i.override(o), t, e, n)
|
|
1408
1408
|
};
|
|
1409
1409
|
return new Proxy(s, {
|
|
1410
1410
|
/**
|
|
@@ -1478,7 +1478,7 @@ function vo(i, t, e) {
|
|
|
1478
1478
|
function wr(i, t, e) {
|
|
1479
1479
|
const { _proxy: n, _context: s, _subProxy: o, _descriptors: a } = i;
|
|
1480
1480
|
let r = n[t];
|
|
1481
|
-
return At(r) && a.isScriptable(t) && (r = kr(t, r, i, e)), W(r) && r.length && (r = Mr(t, r, i, a.isIndexable)), _n(t, r) && (r =
|
|
1481
|
+
return At(r) && a.isScriptable(t) && (r = kr(t, r, i, e)), W(r) && r.length && (r = Mr(t, r, i, a.isIndexable)), _n(t, r) && (r = Jt(r, s, o && o[t], a)), r;
|
|
1482
1482
|
}
|
|
1483
1483
|
function kr(i, t, e, n) {
|
|
1484
1484
|
const { _proxy: s, _context: o, _subProxy: a, _stack: r } = e;
|
|
@@ -1497,7 +1497,7 @@ function Mr(i, t, e, n) {
|
|
|
1497
1497
|
t = [];
|
|
1498
1498
|
for (const h of l) {
|
|
1499
1499
|
const d = vn(c, s, i, h);
|
|
1500
|
-
t.push(
|
|
1500
|
+
t.push(Jt(d, o, a && a[i], r));
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
1503
1503
|
return t;
|
|
@@ -1576,7 +1576,7 @@ function Tr(i, t, e, n) {
|
|
|
1576
1576
|
};
|
|
1577
1577
|
return a;
|
|
1578
1578
|
}
|
|
1579
|
-
const Or = Number.EPSILON || 1e-14,
|
|
1579
|
+
const Or = Number.EPSILON || 1e-14, te = (i, t) => t < i.length && !i[t].skip && i[t], ko = (i) => i === "x" ? "y" : "x";
|
|
1580
1580
|
function Ir(i, t, e, n) {
|
|
1581
1581
|
const s = i.skip ? t : i, o = t, a = e.skip ? t : e, r = qi(o, s), l = qi(a, o);
|
|
1582
1582
|
let c = r / (r + l), h = l / (r + l);
|
|
@@ -1595,10 +1595,10 @@ function Ir(i, t, e, n) {
|
|
|
1595
1595
|
}
|
|
1596
1596
|
function Fr(i, t, e) {
|
|
1597
1597
|
const n = i.length;
|
|
1598
|
-
let s, o, a, r, l, c =
|
|
1598
|
+
let s, o, a, r, l, c = te(i, 0);
|
|
1599
1599
|
for (let h = 0; h < n - 1; ++h)
|
|
1600
|
-
if (l = c, c =
|
|
1601
|
-
if (
|
|
1600
|
+
if (l = c, c = te(i, h + 1), !(!l || !c)) {
|
|
1601
|
+
if (ye(t[h], 0, Or)) {
|
|
1602
1602
|
e[h] = e[h + 1] = 0;
|
|
1603
1603
|
continue;
|
|
1604
1604
|
}
|
|
@@ -1607,9 +1607,9 @@ function Fr(i, t, e) {
|
|
|
1607
1607
|
}
|
|
1608
1608
|
function Rr(i, t, e = "x") {
|
|
1609
1609
|
const n = ko(e), s = i.length;
|
|
1610
|
-
let o, a, r, l =
|
|
1610
|
+
let o, a, r, l = te(i, 0);
|
|
1611
1611
|
for (let c = 0; c < s; ++c) {
|
|
1612
|
-
if (a = r, r = l, l =
|
|
1612
|
+
if (a = r, r = l, l = te(i, c + 1), !r)
|
|
1613
1613
|
continue;
|
|
1614
1614
|
const h = r[e], d = r[n];
|
|
1615
1615
|
a && (o = (h - a[e]) / 3, r[`cp1${e}`] = h - o, r[`cp1${n}`] = d - o * t[c]), l && (o = (l[e] - h) / 3, r[`cp2${e}`] = h + o, r[`cp2${n}`] = d + o * t[c]);
|
|
@@ -1617,9 +1617,9 @@ function Rr(i, t, e = "x") {
|
|
|
1617
1617
|
}
|
|
1618
1618
|
function Er(i, t = "x") {
|
|
1619
1619
|
const e = ko(t), n = i.length, s = Array(n).fill(0), o = Array(n);
|
|
1620
|
-
let a, r, l, c =
|
|
1620
|
+
let a, r, l, c = te(i, 0);
|
|
1621
1621
|
for (a = 0; a < n; ++a)
|
|
1622
|
-
if (r = l, l = c, c =
|
|
1622
|
+
if (r = l, l = c, c = te(i, a + 1), !!l) {
|
|
1623
1623
|
if (c) {
|
|
1624
1624
|
const h = c[t] - l[t];
|
|
1625
1625
|
s[a] = h !== 0 ? (c[e] - l[e]) / h : 0;
|
|
@@ -1628,13 +1628,13 @@ function Er(i, t = "x") {
|
|
|
1628
1628
|
}
|
|
1629
1629
|
Fr(i, s, o), Rr(i, o, t);
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1631
|
+
function Ze(i, t, e) {
|
|
1632
1632
|
return Math.max(Math.min(i, e), t);
|
|
1633
1633
|
}
|
|
1634
1634
|
function Br(i, t) {
|
|
1635
1635
|
let e, n, s, o, a, r = _t(i[0], t);
|
|
1636
1636
|
for (e = 0, n = i.length; e < n; ++e)
|
|
1637
|
-
a = o, o = r, r = e < n - 1 && _t(i[e + 1], t), o && (s = i[e], a && (s.cp1x =
|
|
1637
|
+
a = o, o = r, r = e < n - 1 && _t(i[e + 1], t), o && (s = i[e], a && (s.cp1x = Ze(s.cp1x, t.left, t.right), s.cp1y = Ze(s.cp1y, t.top, t.bottom)), r && (s.cp2x = Ze(s.cp2x, t.left, t.right), s.cp2y = Ze(s.cp2y, t.top, t.bottom)));
|
|
1638
1638
|
}
|
|
1639
1639
|
function zr(i, t, e, n, s) {
|
|
1640
1640
|
let o, a, r, l;
|
|
@@ -1721,7 +1721,7 @@ function jr(i, t, e) {
|
|
|
1721
1721
|
maxHeight: s || gi
|
|
1722
1722
|
};
|
|
1723
1723
|
}
|
|
1724
|
-
const
|
|
1724
|
+
const Qe = (i) => Math.round(i * 10) / 10;
|
|
1725
1725
|
function $r(i, t, e, n) {
|
|
1726
1726
|
const s = Ci(i), o = Wt(s, "margin"), a = mi(s.maxWidth, i, "clientWidth") || gi, r = mi(s.maxHeight, i, "clientHeight") || gi, l = jr(i, t, e);
|
|
1727
1727
|
let { width: c, height: h } = l;
|
|
@@ -1729,7 +1729,7 @@ function $r(i, t, e, n) {
|
|
|
1729
1729
|
const u = Wt(s, "border", "width"), f = Wt(s, "padding");
|
|
1730
1730
|
c -= f.width + u.width, h -= f.height + u.height;
|
|
1731
1731
|
}
|
|
1732
|
-
return c = Math.max(0, c - o.width), h = Math.max(0, n ? c / n : h - o.height), c =
|
|
1732
|
+
return c = Math.max(0, c - o.width), h = Math.max(0, n ? c / n : h - o.height), c = Qe(Math.min(c, a, l.maxWidth)), h = Qe(Math.min(h, r, l.maxHeight)), c && !h && (h = Qe(c / 2)), (t !== void 0 || e !== void 0) && n && l.height && h > l.height && (h = l.height, c = Qe(Math.floor(h * n))), {
|
|
1733
1733
|
width: c,
|
|
1734
1734
|
height: h
|
|
1735
1735
|
};
|
|
@@ -1869,15 +1869,15 @@ function Do(i, t, e) {
|
|
|
1869
1869
|
];
|
|
1870
1870
|
const { property: n, start: s, end: o } = e, a = t.length, { compare: r, between: l, normalize: c } = Ao(n), { start: h, end: d, loop: u, style: f } = Kr(i, t, e), m = [];
|
|
1871
1871
|
let p = !1, g = null, b, y, x;
|
|
1872
|
-
const v = () => l(s, x, b) && r(s, x) !== 0, _ = () => r(o, b) === 0 || l(o, x, b),
|
|
1873
|
-
for (let
|
|
1874
|
-
y = t[
|
|
1872
|
+
const v = () => l(s, x, b) && r(s, x) !== 0, _ = () => r(o, b) === 0 || l(o, x, b), w = () => p || v(), S = () => !p || _();
|
|
1873
|
+
for (let M = h, C = h; M <= d; ++M)
|
|
1874
|
+
y = t[M % a], !y.skip && (b = c(y[n]), b !== x && (p = l(b, s, o), g === null && w() && (g = r(b, s) === 0 ? M : C), g !== null && S() && (m.push(Xn({
|
|
1875
1875
|
start: g,
|
|
1876
|
-
end:
|
|
1876
|
+
end: M,
|
|
1877
1877
|
loop: u,
|
|
1878
1878
|
count: a,
|
|
1879
1879
|
style: f
|
|
1880
|
-
})), g = null),
|
|
1880
|
+
})), g = null), C = M, x = b));
|
|
1881
1881
|
return g !== null && m.push(Xn({
|
|
1882
1882
|
start: g,
|
|
1883
1883
|
end: d,
|
|
@@ -2097,18 +2097,18 @@ const Kn = "transparent", nl = {
|
|
|
2097
2097
|
class sl {
|
|
2098
2098
|
constructor(t, e, n, s) {
|
|
2099
2099
|
const o = e[n];
|
|
2100
|
-
s =
|
|
2100
|
+
s = Ke([
|
|
2101
2101
|
t.to,
|
|
2102
2102
|
s,
|
|
2103
2103
|
o,
|
|
2104
2104
|
t.from
|
|
2105
2105
|
]);
|
|
2106
|
-
const a =
|
|
2106
|
+
const a = Ke([
|
|
2107
2107
|
t.from,
|
|
2108
2108
|
o,
|
|
2109
2109
|
s
|
|
2110
2110
|
]);
|
|
2111
|
-
this._active = !0, this._fn = t.fn || nl[t.type || typeof a], this._easing =
|
|
2111
|
+
this._active = !0, this._fn = t.fn || nl[t.type || typeof a], this._easing = xe[t.easing] || xe.linear, this._start = Math.floor(Date.now() + (t.delay || 0)), this._duration = this._total = Math.floor(t.duration), this._loop = !!t.loop, this._target = e, this._prop = n, this._from = a, this._to = s, this._promises = void 0;
|
|
2112
2112
|
}
|
|
2113
2113
|
active() {
|
|
2114
2114
|
return this._active;
|
|
@@ -2117,12 +2117,12 @@ class sl {
|
|
|
2117
2117
|
if (this._active) {
|
|
2118
2118
|
this._notify(!1);
|
|
2119
2119
|
const s = this._target[this._prop], o = n - this._start, a = this._duration - o;
|
|
2120
|
-
this._start = n, this._duration = Math.floor(Math.max(a, t.duration)), this._total += o, this._loop = !!t.loop, this._to =
|
|
2120
|
+
this._start = n, this._duration = Math.floor(Math.max(a, t.duration)), this._total += o, this._loop = !!t.loop, this._to = Ke([
|
|
2121
2121
|
t.to,
|
|
2122
2122
|
e,
|
|
2123
2123
|
s,
|
|
2124
2124
|
t.from
|
|
2125
|
-
]), this._from =
|
|
2125
|
+
]), this._from = Ke([
|
|
2126
2126
|
t.from,
|
|
2127
2127
|
s,
|
|
2128
2128
|
e
|
|
@@ -2373,7 +2373,7 @@ function gl(i, t, e) {
|
|
|
2373
2373
|
type: "data"
|
|
2374
2374
|
});
|
|
2375
2375
|
}
|
|
2376
|
-
function
|
|
2376
|
+
function ae(i, t) {
|
|
2377
2377
|
const e = i.controller.index, n = i.vScale && i.vScale.axis;
|
|
2378
2378
|
if (n) {
|
|
2379
2379
|
t = t || i._parsed;
|
|
@@ -2398,7 +2398,7 @@ class Ct {
|
|
|
2398
2398
|
this.configure(), this.linkScales(), t._stacked = Jn(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");
|
|
2399
2399
|
}
|
|
2400
2400
|
updateIndex(t) {
|
|
2401
|
-
this.index !== t &&
|
|
2401
|
+
this.index !== t && ae(this._cachedMeta), this.index = t;
|
|
2402
2402
|
}
|
|
2403
2403
|
linkScales() {
|
|
2404
2404
|
const t = this.chart, e = this._cachedMeta, n = this.getDataset(), s = (d, u, f, m) => d === "x" ? u : d === "r" ? m : f, o = e.xAxisID = L(n.xAxisID, Bi(t, "x")), a = e.yAxisID = L(n.yAxisID, Bi(t, "y")), r = e.rAxisID = L(n.rAxisID, Bi(t, "r")), l = e.indexAxis, c = e.iAxisID = s(l, o, a, r), h = e.vAxisID = s(l, a, o, r);
|
|
@@ -2422,7 +2422,7 @@ class Ct {
|
|
|
2422
2422
|
}
|
|
2423
2423
|
_destroy() {
|
|
2424
2424
|
const t = this._cachedMeta;
|
|
2425
|
-
this._data && Bn(this._data, this), t._stacked &&
|
|
2425
|
+
this._data && Bn(this._data, this), t._stacked && ae(t);
|
|
2426
2426
|
}
|
|
2427
2427
|
_dataCheck() {
|
|
2428
2428
|
const t = this.getDataset(), e = t.data || (t.data = []), n = this._data;
|
|
@@ -2432,7 +2432,7 @@ class Ct {
|
|
|
2432
2432
|
if (n) {
|
|
2433
2433
|
Bn(n, this);
|
|
2434
2434
|
const s = this._cachedMeta;
|
|
2435
|
-
|
|
2435
|
+
ae(s), s._parsed = [];
|
|
2436
2436
|
}
|
|
2437
2437
|
e && Object.isExtensible(e) && Za(e, this), this._syncList = [], this._data = e;
|
|
2438
2438
|
}
|
|
@@ -2446,7 +2446,7 @@ class Ct {
|
|
|
2446
2446
|
let s = !1;
|
|
2447
2447
|
this._dataCheck();
|
|
2448
2448
|
const o = e._stacked;
|
|
2449
|
-
e._stacked = Jn(e.vScale, e), e.stack !== n.stack && (s = !0,
|
|
2449
|
+
e._stacked = Jn(e.vScale, e), e.stack !== n.stack && (s = !0, ae(e), e.stack = n.stack), this._resyncElements(t), (s || o !== e._stacked) && es(this, e._parsed);
|
|
2450
2450
|
}
|
|
2451
2451
|
configure() {
|
|
2452
2452
|
const t = this.chart.config, e = t.datasetScopeKeys(this._type), n = t.getOptionScopes(this.getDataset(), e, !0);
|
|
@@ -2685,7 +2685,7 @@ class Ct {
|
|
|
2685
2685
|
const n = this._cachedMeta;
|
|
2686
2686
|
if (this._parsing) {
|
|
2687
2687
|
const s = n._parsed.splice(t, e);
|
|
2688
|
-
n._stacked &&
|
|
2688
|
+
n._stacked && ae(n, s);
|
|
2689
2689
|
}
|
|
2690
2690
|
n.data.splice(t, e);
|
|
2691
2691
|
}
|
|
@@ -2744,7 +2744,7 @@ class Ct {
|
|
|
2744
2744
|
]);
|
|
2745
2745
|
}
|
|
2746
2746
|
}
|
|
2747
|
-
|
|
2747
|
+
k(Ct, "defaults", {}), k(Ct, "datasetElementType", null), k(Ct, "dataElementType", null);
|
|
2748
2748
|
function ml(i, t) {
|
|
2749
2749
|
if (!i._cache.$bar) {
|
|
2750
2750
|
const e = i.getMatchingVisibleMetas(t);
|
|
@@ -2857,7 +2857,7 @@ function os(i, t, e) {
|
|
|
2857
2857
|
function Ml(i, { inflateAmount: t }, e) {
|
|
2858
2858
|
i.inflateAmount = t === "auto" ? e === 1 ? 0.33 : 0 : t;
|
|
2859
2859
|
}
|
|
2860
|
-
class
|
|
2860
|
+
class ai extends Ct {
|
|
2861
2861
|
parsePrimitiveData(t, e, n, s) {
|
|
2862
2862
|
return ns(t, e, n, s);
|
|
2863
2863
|
}
|
|
@@ -2994,7 +2994,7 @@ class ri extends Ct {
|
|
|
2994
2994
|
this.getParsed(o)[e.axis] !== null && n[o].draw(this._ctx);
|
|
2995
2995
|
}
|
|
2996
2996
|
}
|
|
2997
|
-
|
|
2997
|
+
k(ai, "id", "bar"), k(ai, "defaults", {
|
|
2998
2998
|
datasetElementType: !1,
|
|
2999
2999
|
dataElementType: "bar",
|
|
3000
3000
|
categoryPercentage: 0.8,
|
|
@@ -3012,7 +3012,7 @@ C(ri, "id", "bar"), C(ri, "defaults", {
|
|
|
3012
3012
|
]
|
|
3013
3013
|
}
|
|
3014
3014
|
}
|
|
3015
|
-
}),
|
|
3015
|
+
}), k(ai, "overrides", {
|
|
3016
3016
|
scales: {
|
|
3017
3017
|
_index_: {
|
|
3018
3018
|
type: "category",
|
|
@@ -3040,7 +3040,7 @@ function Cl(i, t, e) {
|
|
|
3040
3040
|
offsetY: a
|
|
3041
3041
|
};
|
|
3042
3042
|
}
|
|
3043
|
-
class
|
|
3043
|
+
class ue extends Ct {
|
|
3044
3044
|
constructor(t, e) {
|
|
3045
3045
|
super(t, e), this.enableOptionSharing = !0, this.innerRadius = void 0, this.outerRadius = void 0, this.offsetX = void 0, this.offsetY = void 0;
|
|
3046
3046
|
}
|
|
@@ -3163,7 +3163,7 @@ class de extends Ct {
|
|
|
3163
3163
|
return this._getRingWeightOffset(this.chart.data.datasets.length) || 1;
|
|
3164
3164
|
}
|
|
3165
3165
|
}
|
|
3166
|
-
|
|
3166
|
+
k(ue, "id", "doughnut"), k(ue, "defaults", {
|
|
3167
3167
|
datasetElementType: !1,
|
|
3168
3168
|
dataElementType: "arc",
|
|
3169
3169
|
animation: {
|
|
@@ -3193,10 +3193,10 @@ C(de, "id", "doughnut"), C(de, "defaults", {
|
|
|
3193
3193
|
radius: "100%",
|
|
3194
3194
|
spacing: 0,
|
|
3195
3195
|
indexAxis: "r"
|
|
3196
|
-
}),
|
|
3196
|
+
}), k(ue, "descriptors", {
|
|
3197
3197
|
_scriptable: (t) => t !== "spacing",
|
|
3198
3198
|
_indexable: (t) => t !== "spacing" && !t.startsWith("borderDash") && !t.startsWith("hoverBorderDash")
|
|
3199
|
-
}),
|
|
3199
|
+
}), k(ue, "overrides", {
|
|
3200
3200
|
aspectRatio: 1,
|
|
3201
3201
|
plugins: {
|
|
3202
3202
|
legend: {
|
|
@@ -3228,7 +3228,7 @@ C(de, "id", "doughnut"), C(de, "defaults", {
|
|
|
3228
3228
|
}
|
|
3229
3229
|
}
|
|
3230
3230
|
});
|
|
3231
|
-
class
|
|
3231
|
+
class ri extends Ct {
|
|
3232
3232
|
initialize() {
|
|
3233
3233
|
this.enableOptionSharing = !0, this.supportsDecimation = !0, super.initialize();
|
|
3234
3234
|
}
|
|
@@ -3246,13 +3246,13 @@ class li extends Ct {
|
|
|
3246
3246
|
const o = s === "reset", { iScale: a, vScale: r, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: h, includeOptions: d } = this._getSharedOptions(e, s), u = a.axis, f = r.axis, { spanGaps: m, segment: p } = this.options, g = Me(m) ? m : Number.POSITIVE_INFINITY, b = this.chart._animationsDisabled || o || s === "none", y = e + n, x = t.length;
|
|
3247
3247
|
let v = e > 0 && this.getParsed(e - 1);
|
|
3248
3248
|
for (let _ = 0; _ < x; ++_) {
|
|
3249
|
-
const
|
|
3249
|
+
const w = t[_], S = b ? w : {};
|
|
3250
3250
|
if (_ < e || _ >= y) {
|
|
3251
3251
|
S.skip = !0;
|
|
3252
3252
|
continue;
|
|
3253
3253
|
}
|
|
3254
|
-
const
|
|
3255
|
-
S.skip = isNaN(P) || isNaN(A) ||
|
|
3254
|
+
const M = this.getParsed(_), C = F(M[f]), P = S[u] = a.getPixelForValue(M[u], _), A = S[f] = o || C ? r.getBasePixel() : r.getPixelForValue(l ? this.applyStack(r, M, l) : M[f], _);
|
|
3255
|
+
S.skip = isNaN(P) || isNaN(A) || C, S.stop = _ > 0 && Math.abs(M[u] - v[u]) > g, p && (S.parsed = M, S.raw = c.data[_]), d && (S.options = h || this.resolveDataElementOptions(_, w.active ? "active" : s)), b || this.updateElement(w, _, S, s), v = M;
|
|
3256
3256
|
}
|
|
3257
3257
|
}
|
|
3258
3258
|
getMaxOverflow() {
|
|
@@ -3267,12 +3267,12 @@ class li extends Ct {
|
|
|
3267
3267
|
t.dataset.updateControlPoints(this.chart.chartArea, t.iScale.axis), super.draw();
|
|
3268
3268
|
}
|
|
3269
3269
|
}
|
|
3270
|
-
|
|
3270
|
+
k(ri, "id", "line"), k(ri, "defaults", {
|
|
3271
3271
|
datasetElementType: "line",
|
|
3272
3272
|
dataElementType: "point",
|
|
3273
3273
|
showLine: !0,
|
|
3274
3274
|
spanGaps: !1
|
|
3275
|
-
}),
|
|
3275
|
+
}), k(ri, "overrides", {
|
|
3276
3276
|
scales: {
|
|
3277
3277
|
_index_: {
|
|
3278
3278
|
type: "category"
|
|
@@ -3282,7 +3282,7 @@ C(li, "id", "line"), C(li, "defaults", {
|
|
|
3282
3282
|
}
|
|
3283
3283
|
}
|
|
3284
3284
|
});
|
|
3285
|
-
class
|
|
3285
|
+
class li extends Ct {
|
|
3286
3286
|
getLabelAndValue(t) {
|
|
3287
3287
|
const e = this._cachedMeta.vScale, n = this.getParsed(t);
|
|
3288
3288
|
return {
|
|
@@ -3321,7 +3321,7 @@ class ci extends Ct {
|
|
|
3321
3321
|
}
|
|
3322
3322
|
}
|
|
3323
3323
|
}
|
|
3324
|
-
|
|
3324
|
+
k(li, "id", "radar"), k(li, "defaults", {
|
|
3325
3325
|
datasetElementType: "line",
|
|
3326
3326
|
dataElementType: "point",
|
|
3327
3327
|
indexAxis: "r",
|
|
@@ -3331,7 +3331,7 @@ C(ci, "id", "radar"), C(ci, "defaults", {
|
|
|
3331
3331
|
fill: "start"
|
|
3332
3332
|
}
|
|
3333
3333
|
}
|
|
3334
|
-
}),
|
|
3334
|
+
}), k(li, "overrides", {
|
|
3335
3335
|
aspectRatio: 1,
|
|
3336
3336
|
scales: {
|
|
3337
3337
|
r: {
|
|
@@ -3344,7 +3344,7 @@ function It() {
|
|
|
3344
3344
|
}
|
|
3345
3345
|
class wn {
|
|
3346
3346
|
constructor(t) {
|
|
3347
|
-
|
|
3347
|
+
k(this, "options");
|
|
3348
3348
|
this.options = t || {};
|
|
3349
3349
|
}
|
|
3350
3350
|
/**
|
|
@@ -3411,7 +3411,7 @@ function Al(i, t, e, n) {
|
|
|
3411
3411
|
hi: o.length - 1
|
|
3412
3412
|
};
|
|
3413
3413
|
}
|
|
3414
|
-
function
|
|
3414
|
+
function ze(i, t, e, n, s) {
|
|
3415
3415
|
const o = i.getSortedVisibleDatasetMetas(), a = e[t];
|
|
3416
3416
|
for (let r = 0, l = o.length; r < l; ++r) {
|
|
3417
3417
|
const { index: c, data: h } = o[r], { lo: d, hi: u } = Al(o[r], t, a, s);
|
|
@@ -3430,7 +3430,7 @@ function Dl(i) {
|
|
|
3430
3430
|
}
|
|
3431
3431
|
function Hi(i, t, e, n, s) {
|
|
3432
3432
|
const o = [];
|
|
3433
|
-
return !s && !i.isPointInArea(t) ||
|
|
3433
|
+
return !s && !i.isPointInArea(t) || ze(i, e, t, function(r, l, c) {
|
|
3434
3434
|
!s && !_t(r, i.chartArea, 0) || r.inRange(t.x, t.y, n) && o.push({
|
|
3435
3435
|
element: r,
|
|
3436
3436
|
datasetIndex: l,
|
|
@@ -3454,7 +3454,7 @@ function Ll(i, t, e, n) {
|
|
|
3454
3454
|
index: l
|
|
3455
3455
|
});
|
|
3456
3456
|
}
|
|
3457
|
-
return
|
|
3457
|
+
return ze(i, e, t, o), s;
|
|
3458
3458
|
}
|
|
3459
3459
|
function Tl(i, t, e, n, s, o) {
|
|
3460
3460
|
let a = [];
|
|
@@ -3480,7 +3480,7 @@ function Tl(i, t, e, n, s, o) {
|
|
|
3480
3480
|
index: u
|
|
3481
3481
|
});
|
|
3482
3482
|
}
|
|
3483
|
-
return
|
|
3483
|
+
return ze(i, e, t, c), a;
|
|
3484
3484
|
}
|
|
3485
3485
|
function Ni(i, t, e, n, s, o) {
|
|
3486
3486
|
return !o && !i.isPointInArea(t) ? [] : e === "r" && !n ? Ll(i, t, e, s) : Tl(i, t, e, n, s, o);
|
|
@@ -3488,7 +3488,7 @@ function Ni(i, t, e, n, s, o) {
|
|
|
3488
3488
|
function as(i, t, e, n, s) {
|
|
3489
3489
|
const o = [], a = e === "x" ? "inXRange" : "inYRange";
|
|
3490
3490
|
let r = !1;
|
|
3491
|
-
return
|
|
3491
|
+
return ze(i, e, t, (l, c, h) => {
|
|
3492
3492
|
l[a](t[e], s) && (o.push({
|
|
3493
3493
|
element: l,
|
|
3494
3494
|
datasetIndex: c,
|
|
@@ -3497,7 +3497,7 @@ function as(i, t, e, n, s) {
|
|
|
3497
3497
|
}), n && !r ? [] : o;
|
|
3498
3498
|
}
|
|
3499
3499
|
var Ol = {
|
|
3500
|
-
evaluateInteractionItems:
|
|
3500
|
+
evaluateInteractionItems: ze,
|
|
3501
3501
|
modes: {
|
|
3502
3502
|
index(i, t, e, n) {
|
|
3503
3503
|
const s = Rt(t, i), o = e.axis || "x", a = e.includeInvisible || !1, r = e.intersect ? Hi(i, s, o, n, a) : Ni(i, s, o, !1, n, a), l = [];
|
|
@@ -3549,13 +3549,13 @@ const Fo = [
|
|
|
3549
3549
|
"right",
|
|
3550
3550
|
"bottom"
|
|
3551
3551
|
];
|
|
3552
|
-
function
|
|
3552
|
+
function re(i, t) {
|
|
3553
3553
|
return i.filter((e) => e.pos === t);
|
|
3554
3554
|
}
|
|
3555
3555
|
function rs(i, t) {
|
|
3556
3556
|
return i.filter((e) => Fo.indexOf(e.pos) === -1 && e.box.axis === t);
|
|
3557
3557
|
}
|
|
3558
|
-
function
|
|
3558
|
+
function le(i, t) {
|
|
3559
3559
|
return i.sort((e, n) => {
|
|
3560
3560
|
const s = t ? n : e, o = t ? e : n;
|
|
3561
3561
|
return s.weight === o.weight ? s.index - o.index : s.weight - o.weight;
|
|
@@ -3603,12 +3603,12 @@ function Rl(i, t) {
|
|
|
3603
3603
|
return e;
|
|
3604
3604
|
}
|
|
3605
3605
|
function El(i) {
|
|
3606
|
-
const t = Il(i), e =
|
|
3606
|
+
const t = Il(i), e = le(t.filter((c) => c.box.fullSize), !0), n = le(re(t, "left"), !0), s = le(re(t, "right")), o = le(re(t, "top"), !0), a = le(re(t, "bottom")), r = rs(t, "x"), l = rs(t, "y");
|
|
3607
3607
|
return {
|
|
3608
3608
|
fullSize: e,
|
|
3609
3609
|
leftAndTop: n.concat(o),
|
|
3610
3610
|
rightAndBottom: s.concat(l).concat(a).concat(r),
|
|
3611
|
-
chartArea:
|
|
3611
|
+
chartArea: re(t, "chartArea"),
|
|
3612
3612
|
vertical: n.concat(s).concat(l),
|
|
3613
3613
|
horizontal: o.concat(a).concat(r)
|
|
3614
3614
|
};
|
|
@@ -3668,7 +3668,7 @@ function Wl(i, t) {
|
|
|
3668
3668
|
"bottom"
|
|
3669
3669
|
]);
|
|
3670
3670
|
}
|
|
3671
|
-
function
|
|
3671
|
+
function fe(i, t, e, n) {
|
|
3672
3672
|
const s = [];
|
|
3673
3673
|
let o, a, r, l, c, h;
|
|
3674
3674
|
for (o = 0, a = i.length, c = 0; o < a; ++o) {
|
|
@@ -3676,9 +3676,9 @@ function ue(i, t, e, n) {
|
|
|
3676
3676
|
const { same: d, other: u } = Bl(t, e, r, n);
|
|
3677
3677
|
c |= d && s.length, h = h || u, l.fullSize || s.push(r);
|
|
3678
3678
|
}
|
|
3679
|
-
return c &&
|
|
3679
|
+
return c && fe(s, t, e, n) || h;
|
|
3680
3680
|
}
|
|
3681
|
-
function
|
|
3681
|
+
function Je(i, t, e, n, s) {
|
|
3682
3682
|
i.top = e, i.left = t, i.right = t + n, i.bottom = e + s, i.width = n, i.height = s;
|
|
3683
3683
|
}
|
|
3684
3684
|
function cs(i, t, e, n) {
|
|
@@ -3692,10 +3692,10 @@ function cs(i, t, e, n) {
|
|
|
3692
3692
|
}, h = r.stackWeight / c.weight || 1;
|
|
3693
3693
|
if (r.horizontal) {
|
|
3694
3694
|
const d = t.w * h, u = c.size || l.height;
|
|
3695
|
-
ke(c.start) && (a = c.start), l.fullSize ?
|
|
3695
|
+
ke(c.start) && (a = c.start), l.fullSize ? Je(l, s.left, a, e.outerWidth - s.right - s.left, u) : Je(l, t.left + c.placed, a, d, u), c.start = a, c.placed += d, a = l.bottom;
|
|
3696
3696
|
} else {
|
|
3697
3697
|
const d = t.h * h, u = c.size || l.width;
|
|
3698
|
-
ke(c.start) && (o = c.start), l.fullSize ?
|
|
3698
|
+
ke(c.start) && (o = c.start), l.fullSize ? Je(l, o, s.top, u, e.outerHeight - s.bottom - s.top) : Je(l, o, t.top + c.placed, u, d), c.start = o, c.placed += d, o = l.right;
|
|
3699
3699
|
}
|
|
3700
3700
|
}
|
|
3701
3701
|
t.x = o, t.y = a;
|
|
@@ -3744,7 +3744,7 @@ var st = {
|
|
|
3744
3744
|
x: s.left,
|
|
3745
3745
|
y: s.top
|
|
3746
3746
|
}, s), m = Rl(l.concat(c), d);
|
|
3747
|
-
|
|
3747
|
+
fe(r.fullSize, f, d, m), fe(l, f, d, m), fe(c, f, d, m) && fe(l, f, d, m), zl(f), cs(r.leftAndTop, f, d, m), f.x += f.w, f.y += f.h, cs(r.rightAndBottom, f, d, m), i.chartArea = {
|
|
3748
3748
|
left: f.left,
|
|
3749
3749
|
top: f.top,
|
|
3750
3750
|
right: f.left + f.w,
|
|
@@ -3795,7 +3795,7 @@ class Hl extends Eo {
|
|
|
3795
3795
|
t.options.animation = !1;
|
|
3796
3796
|
}
|
|
3797
3797
|
}
|
|
3798
|
-
const
|
|
3798
|
+
const ci = "$chartjs", Nl = {
|
|
3799
3799
|
touchstart: "mousedown",
|
|
3800
3800
|
touchmove: "mousemove",
|
|
3801
3801
|
touchend: "mouseup",
|
|
@@ -3808,7 +3808,7 @@ const hi = "$chartjs", Nl = {
|
|
|
3808
3808
|
}, hs = (i) => i === null || i === "";
|
|
3809
3809
|
function Vl(i, t) {
|
|
3810
3810
|
const e = i.style, n = i.getAttribute("height"), s = i.getAttribute("width");
|
|
3811
|
-
if (i[
|
|
3811
|
+
if (i[ci] = {
|
|
3812
3812
|
initial: {
|
|
3813
3813
|
height: n,
|
|
3814
3814
|
width: s,
|
|
@@ -3922,9 +3922,9 @@ class Ql extends Eo {
|
|
|
3922
3922
|
}
|
|
3923
3923
|
releaseContext(t) {
|
|
3924
3924
|
const e = t.canvas;
|
|
3925
|
-
if (!e[
|
|
3925
|
+
if (!e[ci])
|
|
3926
3926
|
return !1;
|
|
3927
|
-
const n = e[
|
|
3927
|
+
const n = e[ci].initial;
|
|
3928
3928
|
[
|
|
3929
3929
|
"height",
|
|
3930
3930
|
"width"
|
|
@@ -3935,7 +3935,7 @@ class Ql extends Eo {
|
|
|
3935
3935
|
const s = n.style || {};
|
|
3936
3936
|
return Object.keys(s).forEach((o) => {
|
|
3937
3937
|
e.style[o] = s[o];
|
|
3938
|
-
}), e.width = e.width, delete e[
|
|
3938
|
+
}), e.width = e.width, delete e[ci], !0;
|
|
3939
3939
|
}
|
|
3940
3940
|
addEventListener(t, e, n) {
|
|
3941
3941
|
this.removeEventListener(t, e);
|
|
@@ -3972,11 +3972,11 @@ function Jl(i) {
|
|
|
3972
3972
|
}
|
|
3973
3973
|
class at {
|
|
3974
3974
|
constructor() {
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3975
|
+
k(this, "x");
|
|
3976
|
+
k(this, "y");
|
|
3977
|
+
k(this, "active", !1);
|
|
3978
|
+
k(this, "options");
|
|
3979
|
+
k(this, "$animations");
|
|
3980
3980
|
}
|
|
3981
3981
|
tooltipPosition(t) {
|
|
3982
3982
|
const { x: e, y: n } = this.getProps([
|
|
@@ -4001,7 +4001,7 @@ class at {
|
|
|
4001
4001
|
}), s;
|
|
4002
4002
|
}
|
|
4003
4003
|
}
|
|
4004
|
-
|
|
4004
|
+
k(at, "defaults", {}), k(at, "defaultRoutes");
|
|
4005
4005
|
function tc(i, t) {
|
|
4006
4006
|
const e = i.options.ticks, n = ec(i), s = Math.min(e.maxTicksLimit || n, n), o = e.major.enabled ? nc(t) : [], a = o.length, r = o[0], l = o[a - 1], c = [];
|
|
4007
4007
|
if (a > s)
|
|
@@ -4010,11 +4010,11 @@ function tc(i, t) {
|
|
|
4010
4010
|
if (a > 0) {
|
|
4011
4011
|
let d, u;
|
|
4012
4012
|
const f = a > 1 ? Math.round((l - r) / (a - 1)) : null;
|
|
4013
|
-
for (
|
|
4014
|
-
|
|
4015
|
-
return
|
|
4013
|
+
for (ti(t, c, h, F(f) ? 0 : r - f, r), d = 0, u = a - 1; d < u; d++)
|
|
4014
|
+
ti(t, c, h, o[d], o[d + 1]);
|
|
4015
|
+
return ti(t, c, h, l, F(f) ? t.length : l + f), c;
|
|
4016
4016
|
}
|
|
4017
|
-
return
|
|
4017
|
+
return ti(t, c, h), c;
|
|
4018
4018
|
}
|
|
4019
4019
|
function ec(i) {
|
|
4020
4020
|
const t = i.options.offset, e = i._tickSize(), n = i._length / e + (t ? 0 : 1), s = i._maxLength / e;
|
|
@@ -4044,7 +4044,7 @@ function sc(i, t, e, n) {
|
|
|
4044
4044
|
for (n = Math.ceil(n), a = 0; a < i.length; a++)
|
|
4045
4045
|
a === o && (t.push(i[a]), s++, o = e[s * n]);
|
|
4046
4046
|
}
|
|
4047
|
-
function
|
|
4047
|
+
function ti(i, t, e, n, s) {
|
|
4048
4048
|
const o = L(n, 0), a = Math.min(L(s, i.length), i.length);
|
|
4049
4049
|
let r = 0, l, c, h;
|
|
4050
4050
|
for (e = Math.ceil(e), s && (l = s - n, e = l / Math.floor(l / e)), h = o; h < 0; )
|
|
@@ -4087,7 +4087,7 @@ function lc(i, t) {
|
|
|
4087
4087
|
}
|
|
4088
4088
|
});
|
|
4089
4089
|
}
|
|
4090
|
-
function
|
|
4090
|
+
function ce(i) {
|
|
4091
4091
|
return i.drawTicks ? i.tickLength : 0;
|
|
4092
4092
|
}
|
|
4093
4093
|
function ps(i, t) {
|
|
@@ -4292,7 +4292,7 @@ class jt extends at {
|
|
|
4292
4292
|
return;
|
|
4293
4293
|
}
|
|
4294
4294
|
const h = this._getLabelSizes(), d = h.widest.width, u = h.highest.height, f = Z(this.chart.width - d, 0, this.maxWidth);
|
|
4295
|
-
r = t.offset ? this.maxWidth / n : f / (n - 1), d + 6 > r && (r = f / (n - (t.offset ? 0.5 : 1)), l = this.maxHeight -
|
|
4295
|
+
r = t.offset ? this.maxWidth / n : f / (n - 1), d + 6 > r && (r = f / (n - (t.offset ? 0.5 : 1)), l = this.maxHeight - ce(t.grid) - e.padding - ps(t.title, this.chart.options.font), c = Math.sqrt(d * d + u * u), a = gn(Math.min(Math.asin(Z((h.highest.height + 6) / r, -1, 1)), Math.asin(Z(l / c, -1, 1)) - Math.asin(Z(u / c, -1, 1)))), a = Math.max(s, Math.min(o, a))), this.labelRotation = a;
|
|
4296
4296
|
}
|
|
4297
4297
|
afterCalculateLabelRotation() {
|
|
4298
4298
|
B(this.options.afterCalculateLabelRotation, [
|
|
@@ -4313,7 +4313,7 @@ class jt extends at {
|
|
|
4313
4313
|
}, { chart: e, options: { ticks: n, title: s, grid: o } } = this, a = this._isVisible(), r = this.isHorizontal();
|
|
4314
4314
|
if (a) {
|
|
4315
4315
|
const l = ps(s, e.options.font);
|
|
4316
|
-
if (r ? (t.width = this.maxWidth, t.height =
|
|
4316
|
+
if (r ? (t.width = this.maxWidth, t.height = ce(o) + l) : (t.height = this.maxHeight, t.width = ce(o) + l), n.display && this.ticks.length) {
|
|
4317
4317
|
const { first: c, last: h, widest: d, highest: u } = this._getLabelSizes(), f = n.padding * 2, m = ht(this.labelRotation), p = Math.cos(m), g = Math.sin(m);
|
|
4318
4318
|
if (r) {
|
|
4319
4319
|
const b = n.mirror ? 0 : g * d.width + p * u.height;
|
|
@@ -4384,15 +4384,15 @@ class jt extends at {
|
|
|
4384
4384
|
a.push(x), r.push(v), c = Math.max(x, c), h = Math.max(v, h);
|
|
4385
4385
|
}
|
|
4386
4386
|
lc(o, e);
|
|
4387
|
-
const
|
|
4388
|
-
width: a[
|
|
4389
|
-
height: r[
|
|
4387
|
+
const w = a.indexOf(c), S = r.indexOf(h), M = (C) => ({
|
|
4388
|
+
width: a[C] || 0,
|
|
4389
|
+
height: r[C] || 0
|
|
4390
4390
|
});
|
|
4391
4391
|
return {
|
|
4392
|
-
first:
|
|
4393
|
-
last:
|
|
4394
|
-
widest:
|
|
4395
|
-
highest:
|
|
4392
|
+
first: M(0),
|
|
4393
|
+
last: M(e - 1),
|
|
4394
|
+
widest: M(w),
|
|
4395
|
+
highest: M(S),
|
|
4396
4396
|
widths: a,
|
|
4397
4397
|
heights: r
|
|
4398
4398
|
};
|
|
@@ -4442,18 +4442,18 @@ class jt extends at {
|
|
|
4442
4442
|
return t !== "auto" ? !!t : this.getMatchingVisibleMetas().length > 0;
|
|
4443
4443
|
}
|
|
4444
4444
|
_computeGridLineItems(t) {
|
|
4445
|
-
const e = this.axis, n = this.chart, s = this.options, { grid: o, position: a, border: r } = s, l = o.offset, c = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), u =
|
|
4445
|
+
const e = this.axis, n = this.chart, s = this.options, { grid: o, position: a, border: r } = s, l = o.offset, c = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), u = ce(o), f = [], m = r.setContext(this.getContext()), p = m.display ? m.width : 0, g = p / 2, b = function(R) {
|
|
4446
4446
|
return Ot(n, R, p);
|
|
4447
4447
|
};
|
|
4448
|
-
let y, x, v, _,
|
|
4448
|
+
let y, x, v, _, w, S, M, C, P, A, D, E;
|
|
4449
4449
|
if (a === "top")
|
|
4450
|
-
y = b(this.bottom), S = this.bottom - u,
|
|
4450
|
+
y = b(this.bottom), S = this.bottom - u, C = y - g, A = b(t.top) + g, E = t.bottom;
|
|
4451
4451
|
else if (a === "bottom")
|
|
4452
|
-
y = b(this.top), A = t.top, E = b(t.bottom) - g, S = y + g,
|
|
4452
|
+
y = b(this.top), A = t.top, E = b(t.bottom) - g, S = y + g, C = this.top + u;
|
|
4453
4453
|
else if (a === "left")
|
|
4454
|
-
y = b(this.right),
|
|
4454
|
+
y = b(this.right), w = this.right - u, M = y - g, P = b(t.left) + g, D = t.right;
|
|
4455
4455
|
else if (a === "right")
|
|
4456
|
-
y = b(this.left), P = t.left, D = b(t.right) - g,
|
|
4456
|
+
y = b(this.left), P = t.left, D = b(t.right) - g, w = y + g, M = this.left + u;
|
|
4457
4457
|
else if (e === "x") {
|
|
4458
4458
|
if (a === "center")
|
|
4459
4459
|
y = b((t.top + t.bottom) / 2 + 0.5);
|
|
@@ -4461,7 +4461,7 @@ class jt extends at {
|
|
|
4461
4461
|
const R = Object.keys(a)[0], $ = a[R];
|
|
4462
4462
|
y = b(this.chart.scales[R].getPixelForValue($));
|
|
4463
4463
|
}
|
|
4464
|
-
A = t.top, E = t.bottom, S = y + g,
|
|
4464
|
+
A = t.top, E = t.bottom, S = y + g, C = S + u;
|
|
4465
4465
|
} else if (e === "y") {
|
|
4466
4466
|
if (a === "center")
|
|
4467
4467
|
y = b((t.left + t.right) / 2);
|
|
@@ -4469,39 +4469,39 @@ class jt extends at {
|
|
|
4469
4469
|
const R = Object.keys(a)[0], $ = a[R];
|
|
4470
4470
|
y = b(this.chart.scales[R].getPixelForValue($));
|
|
4471
4471
|
}
|
|
4472
|
-
|
|
4472
|
+
w = y - g, M = w - u, P = t.left, D = t.right;
|
|
4473
4473
|
}
|
|
4474
4474
|
const G = L(s.ticks.maxTicksLimit, d), O = Math.max(1, Math.ceil(d / G));
|
|
4475
4475
|
for (x = 0; x < d; x += O) {
|
|
4476
|
-
const R = this.getContext(x), $ = o.setContext(R), ot = r.setContext(R), q = $.lineWidth, $t = $.color,
|
|
4477
|
-
v = rc(this, x, l), v !== void 0 && (_ = Ot(n, v, q), c ?
|
|
4478
|
-
tx1:
|
|
4476
|
+
const R = this.getContext(x), $ = o.setContext(R), ot = r.setContext(R), q = $.lineWidth, $t = $.color, Ye = ot.dash || [], Yt = ot.dashOffset, ie = $.tickWidth, ne = $.tickColor, se = $.tickBorderDash || [], oe = $.tickBorderDashOffset;
|
|
4477
|
+
v = rc(this, x, l), v !== void 0 && (_ = Ot(n, v, q), c ? w = M = P = D = _ : S = C = A = E = _, f.push({
|
|
4478
|
+
tx1: w,
|
|
4479
4479
|
ty1: S,
|
|
4480
|
-
tx2:
|
|
4481
|
-
ty2:
|
|
4480
|
+
tx2: M,
|
|
4481
|
+
ty2: C,
|
|
4482
4482
|
x1: P,
|
|
4483
4483
|
y1: A,
|
|
4484
4484
|
x2: D,
|
|
4485
4485
|
y2: E,
|
|
4486
4486
|
width: q,
|
|
4487
4487
|
color: $t,
|
|
4488
|
-
borderDash:
|
|
4488
|
+
borderDash: Ye,
|
|
4489
4489
|
borderDashOffset: Yt,
|
|
4490
|
-
tickWidth:
|
|
4491
|
-
tickColor:
|
|
4492
|
-
tickBorderDash:
|
|
4493
|
-
tickBorderDashOffset:
|
|
4490
|
+
tickWidth: ie,
|
|
4491
|
+
tickColor: ne,
|
|
4492
|
+
tickBorderDash: se,
|
|
4493
|
+
tickBorderDashOffset: oe
|
|
4494
4494
|
}));
|
|
4495
4495
|
}
|
|
4496
4496
|
return this._ticksLength = d, this._borderValue = y, f;
|
|
4497
4497
|
}
|
|
4498
4498
|
_computeLabelItems(t) {
|
|
4499
|
-
const e = this.axis, n = this.options, { position: s, ticks: o } = n, a = this.isHorizontal(), r = this.ticks, { align: l, crossAlign: c, padding: h, mirror: d } = o, u =
|
|
4500
|
-
let b, y, x, v, _,
|
|
4499
|
+
const e = this.axis, n = this.options, { position: s, ticks: o } = n, a = this.isHorizontal(), r = this.ticks, { align: l, crossAlign: c, padding: h, mirror: d } = o, u = ce(n.grid), f = u + h, m = d ? -h : f, p = -ht(this.labelRotation), g = [];
|
|
4500
|
+
let b, y, x, v, _, w, S, M, C, P, A, D, E = "middle";
|
|
4501
4501
|
if (s === "top")
|
|
4502
|
-
|
|
4502
|
+
w = this.bottom - m, S = this._getXAxisLabelAlignment();
|
|
4503
4503
|
else if (s === "bottom")
|
|
4504
|
-
|
|
4504
|
+
w = this.top + m, S = this._getXAxisLabelAlignment();
|
|
4505
4505
|
else if (s === "left") {
|
|
4506
4506
|
const O = this._getYAxisLabelAlignment(u);
|
|
4507
4507
|
S = O.textAlign, _ = O.x;
|
|
@@ -4510,10 +4510,10 @@ class jt extends at {
|
|
|
4510
4510
|
S = O.textAlign, _ = O.x;
|
|
4511
4511
|
} else if (e === "x") {
|
|
4512
4512
|
if (s === "center")
|
|
4513
|
-
|
|
4513
|
+
w = (t.top + t.bottom) / 2 + f;
|
|
4514
4514
|
else if (T(s)) {
|
|
4515
4515
|
const O = Object.keys(s)[0], R = s[O];
|
|
4516
|
-
|
|
4516
|
+
w = this.chart.scales[O].getPixelForValue(R) + f;
|
|
4517
4517
|
}
|
|
4518
4518
|
S = this._getXAxisLabelAlignment();
|
|
4519
4519
|
} else if (e === "y") {
|
|
@@ -4530,41 +4530,41 @@ class jt extends at {
|
|
|
4530
4530
|
for (b = 0, y = r.length; b < y; ++b) {
|
|
4531
4531
|
x = r[b], v = x.label;
|
|
4532
4532
|
const O = o.setContext(this.getContext(b));
|
|
4533
|
-
|
|
4533
|
+
M = this.getPixelForTick(b) + o.labelOffset, C = this._resolveTickFontOptions(b), P = C.lineHeight, A = W(v) ? v.length : 1;
|
|
4534
4534
|
const R = A / 2, $ = O.color, ot = O.textStrokeColor, q = O.textStrokeWidth;
|
|
4535
4535
|
let $t = S;
|
|
4536
|
-
a ? (_ =
|
|
4537
|
-
let
|
|
4536
|
+
a ? (_ = M, S === "inner" && (b === y - 1 ? $t = this.options.reverse ? "left" : "right" : b === 0 ? $t = this.options.reverse ? "right" : "left" : $t = "center"), s === "top" ? c === "near" || p !== 0 ? D = -A * P + P / 2 : c === "center" ? D = -G.highest.height / 2 - R * P + P : D = -G.highest.height + P / 2 : c === "near" || p !== 0 ? D = P / 2 : c === "center" ? D = G.highest.height / 2 - R * P : D = G.highest.height - A * P, d && (D *= -1), p !== 0 && !O.showLabelBackdrop && (_ += P / 2 * Math.sin(p))) : (w = M, D = (1 - A) * P / 2);
|
|
4537
|
+
let Ye;
|
|
4538
4538
|
if (O.showLabelBackdrop) {
|
|
4539
|
-
const Yt = Q(O.backdropPadding),
|
|
4540
|
-
let
|
|
4539
|
+
const Yt = Q(O.backdropPadding), ie = G.heights[b], ne = G.widths[b];
|
|
4540
|
+
let se = D - Yt.top, oe = 0 - Yt.left;
|
|
4541
4541
|
switch (E) {
|
|
4542
4542
|
case "middle":
|
|
4543
|
-
|
|
4543
|
+
se -= ie / 2;
|
|
4544
4544
|
break;
|
|
4545
4545
|
case "bottom":
|
|
4546
|
-
|
|
4546
|
+
se -= ie;
|
|
4547
4547
|
break;
|
|
4548
4548
|
}
|
|
4549
4549
|
switch (S) {
|
|
4550
4550
|
case "center":
|
|
4551
|
-
|
|
4551
|
+
oe -= ne / 2;
|
|
4552
4552
|
break;
|
|
4553
4553
|
case "right":
|
|
4554
|
-
|
|
4554
|
+
oe -= ne;
|
|
4555
4555
|
break;
|
|
4556
4556
|
}
|
|
4557
|
-
|
|
4558
|
-
left:
|
|
4559
|
-
top:
|
|
4560
|
-
width:
|
|
4561
|
-
height:
|
|
4557
|
+
Ye = {
|
|
4558
|
+
left: oe,
|
|
4559
|
+
top: se,
|
|
4560
|
+
width: ne + Yt.width,
|
|
4561
|
+
height: ie + Yt.height,
|
|
4562
4562
|
color: O.backdropColor
|
|
4563
4563
|
};
|
|
4564
4564
|
}
|
|
4565
4565
|
g.push({
|
|
4566
4566
|
label: v,
|
|
4567
|
-
font:
|
|
4567
|
+
font: C,
|
|
4568
4568
|
textOffset: D,
|
|
4569
4569
|
options: {
|
|
4570
4570
|
rotation: p,
|
|
@@ -4575,9 +4575,9 @@ class jt extends at {
|
|
|
4575
4575
|
textBaseline: E,
|
|
4576
4576
|
translation: [
|
|
4577
4577
|
_,
|
|
4578
|
-
|
|
4578
|
+
w
|
|
4579
4579
|
],
|
|
4580
|
-
backdrop:
|
|
4580
|
+
backdrop: Ye
|
|
4581
4581
|
}
|
|
4582
4582
|
});
|
|
4583
4583
|
}
|
|
@@ -4748,7 +4748,7 @@ class jt extends at {
|
|
|
4748
4748
|
return (this.isHorizontal() ? this.width : this.height) / t;
|
|
4749
4749
|
}
|
|
4750
4750
|
}
|
|
4751
|
-
class
|
|
4751
|
+
class ei {
|
|
4752
4752
|
constructor(t, e, n) {
|
|
4753
4753
|
this.type = t, this.scope = e, this.override = n, this.items = /* @__PURE__ */ Object.create(null);
|
|
4754
4754
|
}
|
|
@@ -4793,7 +4793,7 @@ function pc(i) {
|
|
|
4793
4793
|
}
|
|
4794
4794
|
class mc {
|
|
4795
4795
|
constructor() {
|
|
4796
|
-
this.controllers = new
|
|
4796
|
+
this.controllers = new ei(Ct, "datasets", !0), this.elements = new ei(at, "elements"), this.plugins = new ei(Object, "plugins"), this.scales = new ei(jt, "scales"), this._typedRegistries = [
|
|
4797
4797
|
this.controllers,
|
|
4798
4798
|
this.scales,
|
|
4799
4799
|
this.elements
|
|
@@ -5009,7 +5009,7 @@ function Cc(i, t) {
|
|
|
5009
5009
|
if (r._proxy)
|
|
5010
5010
|
return console.warn(`Ignoring resolver passed as options for scale: ${a}`);
|
|
5011
5011
|
const l = Ji(a, r, Mc(a, i), j.scales[r.type]), c = wc(l, s), h = e.scales || {};
|
|
5012
|
-
o[a] =
|
|
5012
|
+
o[a] = be(/* @__PURE__ */ Object.create(null), [
|
|
5013
5013
|
{
|
|
5014
5014
|
axis: l
|
|
5015
5015
|
},
|
|
@@ -5021,7 +5021,7 @@ function Cc(i, t) {
|
|
|
5021
5021
|
const r = a.type || i.type, l = a.indexAxis || Qi(r, t), h = (Ht[r] || {}).scales || {};
|
|
5022
5022
|
Object.keys(h).forEach((d) => {
|
|
5023
5023
|
const u = Sc(d, l), f = a[u + "AxisID"] || u;
|
|
5024
|
-
o[f] = o[f] || /* @__PURE__ */ Object.create(null),
|
|
5024
|
+
o[f] = o[f] || /* @__PURE__ */ Object.create(null), be(o[f], [
|
|
5025
5025
|
{
|
|
5026
5026
|
axis: u
|
|
5027
5027
|
},
|
|
@@ -5031,7 +5031,7 @@ function Cc(i, t) {
|
|
|
5031
5031
|
});
|
|
5032
5032
|
}), Object.keys(o).forEach((a) => {
|
|
5033
5033
|
const r = o[a];
|
|
5034
|
-
|
|
5034
|
+
be(r, [
|
|
5035
5035
|
j.scales[r.type],
|
|
5036
5036
|
j.scale
|
|
5037
5037
|
]);
|
|
@@ -5048,11 +5048,11 @@ function Pc(i) {
|
|
|
5048
5048
|
return i = i || {}, i.data = Ho(i.data), Wo(i), i;
|
|
5049
5049
|
}
|
|
5050
5050
|
const ys = /* @__PURE__ */ new Map(), No = /* @__PURE__ */ new Set();
|
|
5051
|
-
function
|
|
5051
|
+
function ii(i, t) {
|
|
5052
5052
|
let e = ys.get(i);
|
|
5053
5053
|
return e || (e = t(), ys.set(i, e), No.add(e)), e;
|
|
5054
5054
|
}
|
|
5055
|
-
const
|
|
5055
|
+
const he = (i, t, e) => {
|
|
5056
5056
|
const n = Pt(t, e);
|
|
5057
5057
|
n !== void 0 && i.add(n);
|
|
5058
5058
|
};
|
|
@@ -5092,7 +5092,7 @@ class Ac {
|
|
|
5092
5092
|
this._scopeCache.clear(), this._resolverCache.clear();
|
|
5093
5093
|
}
|
|
5094
5094
|
datasetScopeKeys(t) {
|
|
5095
|
-
return
|
|
5095
|
+
return ii(t, () => [
|
|
5096
5096
|
[
|
|
5097
5097
|
`datasets.${t}`,
|
|
5098
5098
|
""
|
|
@@ -5100,7 +5100,7 @@ class Ac {
|
|
|
5100
5100
|
]);
|
|
5101
5101
|
}
|
|
5102
5102
|
datasetAnimationScopeKeys(t, e) {
|
|
5103
|
-
return
|
|
5103
|
+
return ii(`${t}.transition.${e}`, () => [
|
|
5104
5104
|
[
|
|
5105
5105
|
`datasets.${t}.transitions.${e}`,
|
|
5106
5106
|
`transitions.${e}`
|
|
@@ -5112,7 +5112,7 @@ class Ac {
|
|
|
5112
5112
|
]);
|
|
5113
5113
|
}
|
|
5114
5114
|
datasetElementScopeKeys(t, e) {
|
|
5115
|
-
return
|
|
5115
|
+
return ii(`${t}-${e}`, () => [
|
|
5116
5116
|
[
|
|
5117
5117
|
`datasets.${t}.elements.${e}`,
|
|
5118
5118
|
`datasets.${t}`,
|
|
@@ -5123,7 +5123,7 @@ class Ac {
|
|
|
5123
5123
|
}
|
|
5124
5124
|
pluginScopeKeys(t) {
|
|
5125
5125
|
const e = t.id, n = this.type;
|
|
5126
|
-
return
|
|
5126
|
+
return ii(`${n}-plugin-${e}`, () => [
|
|
5127
5127
|
[
|
|
5128
5128
|
`plugins.${e}`,
|
|
5129
5129
|
...t.additionalOptionScopes || []
|
|
@@ -5141,7 +5141,7 @@ class Ac {
|
|
|
5141
5141
|
return r;
|
|
5142
5142
|
const l = /* @__PURE__ */ new Set();
|
|
5143
5143
|
e.forEach((h) => {
|
|
5144
|
-
t && (l.add(t), h.forEach((d) =>
|
|
5144
|
+
t && (l.add(t), h.forEach((d) => he(l, t, d))), h.forEach((d) => he(l, s, d)), h.forEach((d) => he(l, Ht[o] || {}, d)), h.forEach((d) => he(l, j, d)), h.forEach((d) => he(l, Ki, d));
|
|
5145
5145
|
});
|
|
5146
5146
|
const c = Array.from(l);
|
|
5147
5147
|
return c.length === 0 && c.push(/* @__PURE__ */ Object.create(null)), No.has(e) && a.set(e, c), c;
|
|
@@ -5169,7 +5169,7 @@ class Ac {
|
|
|
5169
5169
|
if (Lc(a, e)) {
|
|
5170
5170
|
o.$shared = !1, n = At(n) ? n() : n;
|
|
5171
5171
|
const c = this.createResolver(t, n, r);
|
|
5172
|
-
l =
|
|
5172
|
+
l = Jt(a, n, c);
|
|
5173
5173
|
}
|
|
5174
5174
|
for (const c of e)
|
|
5175
5175
|
o[c] = l[c];
|
|
@@ -5179,7 +5179,7 @@ class Ac {
|
|
|
5179
5179
|
""
|
|
5180
5180
|
], s) {
|
|
5181
5181
|
const { resolver: o } = xs(this._resolverCache, t, n);
|
|
5182
|
-
return T(e) ?
|
|
5182
|
+
return T(e) ? Jt(o, e, void 0, s) : o;
|
|
5183
5183
|
}
|
|
5184
5184
|
}
|
|
5185
5185
|
function xs(i, t, e) {
|
|
@@ -5233,9 +5233,9 @@ function Ic(i) {
|
|
|
5233
5233
|
function Vo(i) {
|
|
5234
5234
|
return Mo() && typeof i == "string" ? i = document.getElementById(i) : i && i.length && (i = i[0]), i && i.canvas && (i = i.canvas), i;
|
|
5235
5235
|
}
|
|
5236
|
-
const
|
|
5236
|
+
const hi = {}, ws = (i) => {
|
|
5237
5237
|
const t = Vo(i);
|
|
5238
|
-
return Object.values(
|
|
5238
|
+
return Object.values(hi).filter((e) => e.canvas === t).pop();
|
|
5239
5239
|
};
|
|
5240
5240
|
function Fc(i, t, e) {
|
|
5241
5241
|
const n = Object.keys(i);
|
|
@@ -5250,16 +5250,16 @@ function Fc(i, t, e) {
|
|
|
5250
5250
|
function Rc(i, t, e, n) {
|
|
5251
5251
|
return !e || i.type === "mouseout" ? null : n ? t : i;
|
|
5252
5252
|
}
|
|
5253
|
-
function
|
|
5253
|
+
function ni(i, t, e) {
|
|
5254
5254
|
return i.options.clip ? i[e] : t[e];
|
|
5255
5255
|
}
|
|
5256
5256
|
function Ec(i, t) {
|
|
5257
5257
|
const { xScale: e, yScale: n } = i;
|
|
5258
5258
|
return e && n ? {
|
|
5259
|
-
left:
|
|
5260
|
-
right:
|
|
5261
|
-
top:
|
|
5262
|
-
bottom:
|
|
5259
|
+
left: ni(e, t, "left"),
|
|
5260
|
+
right: ni(e, t, "right"),
|
|
5261
|
+
top: ni(n, t, "top"),
|
|
5262
|
+
bottom: ni(n, t, "bottom")
|
|
5263
5263
|
} : t;
|
|
5264
5264
|
}
|
|
5265
5265
|
var vt;
|
|
@@ -5277,7 +5277,7 @@ let Lt = (vt = class {
|
|
|
5277
5277
|
const a = n.createResolver(n.chartOptionScopes(), this.getContext());
|
|
5278
5278
|
this.platform = new (n.platform || Jl(s))(), this.platform.updateConfig(n);
|
|
5279
5279
|
const r = this.platform.acquireContext(s, a.aspectRatio), l = r && r.canvas, c = l && l.height, h = l && l.width;
|
|
5280
|
-
if (this.id = Ea(), this.ctx = r, this.canvas = l, this.width = h, this.height = c, this._options = a, this._aspectRatio = this.aspectRatio, this._layers = [], this._metasets = [], this._stacks = void 0, this.boxes = [], this.currentDevicePixelRatio = void 0, this.chartArea = void 0, this._active = [], this._lastEvent = void 0, this._listeners = {}, this._responsiveListeners = void 0, this._sortedMetasets = [], this.scales = {}, this._plugins = new bc(), this.$proxies = {}, this._hiddenIndices = {}, this.attached = !1, this._animationsDisabled = void 0, this.$context = void 0, this._doResize = Qa((d) => this.update(d), a.resizeDelay || 0), this._dataChanges = [],
|
|
5280
|
+
if (this.id = Ea(), this.ctx = r, this.canvas = l, this.width = h, this.height = c, this._options = a, this._aspectRatio = this.aspectRatio, this._layers = [], this._metasets = [], this._stacks = void 0, this.boxes = [], this.currentDevicePixelRatio = void 0, this.chartArea = void 0, this._active = [], this._lastEvent = void 0, this._listeners = {}, this._responsiveListeners = void 0, this._sortedMetasets = [], this.scales = {}, this._plugins = new bc(), this.$proxies = {}, this._hiddenIndices = {}, this.attached = !1, this._animationsDisabled = void 0, this.$context = void 0, this._doResize = Qa((d) => this.update(d), a.resizeDelay || 0), this._dataChanges = [], hi[this.id] = this, !r || !l) {
|
|
5281
5281
|
console.error("Failed to create chart: can't acquire context from the given item");
|
|
5282
5282
|
return;
|
|
5283
5283
|
}
|
|
@@ -5633,7 +5633,7 @@ let Lt = (vt = class {
|
|
|
5633
5633
|
destroy() {
|
|
5634
5634
|
this.notifyPlugins("beforeDestroy");
|
|
5635
5635
|
const { canvas: t, ctx: e } = this;
|
|
5636
|
-
this._stop(), this.config.clearCache(), t && (this.unbindEvents(), Vn(t, e), this.platform.releaseContext(e), this.canvas = null, this.ctx = null), delete
|
|
5636
|
+
this._stop(), this.config.clearCache(), t && (this.unbindEvents(), Vn(t, e), this.platform.releaseContext(e), this.canvas = null, this.ctx = null), delete hi[this.id], this.notifyPlugins("afterDestroy");
|
|
5637
5637
|
}
|
|
5638
5638
|
toBase64Image(...t) {
|
|
5639
5639
|
return this.canvas.toDataURL(...t);
|
|
@@ -5742,7 +5742,7 @@ let Lt = (vt = class {
|
|
|
5742
5742
|
const o = this.options.hover;
|
|
5743
5743
|
return this.getElementsAtEventForMode(t, o.mode, o, s);
|
|
5744
5744
|
}
|
|
5745
|
-
},
|
|
5745
|
+
}, k(vt, "defaults", j), k(vt, "instances", hi), k(vt, "overrides", Ht), k(vt, "registry", ct), k(vt, "version", Tc), k(vt, "getChart", ws), vt);
|
|
5746
5746
|
function ks() {
|
|
5747
5747
|
return I(Lt.instances, (i) => i._plugins.invalidate());
|
|
5748
5748
|
}
|
|
@@ -5785,31 +5785,31 @@ function yi(i, t, e, n, s, o) {
|
|
|
5785
5785
|
const O = h > 0 ? h - n : 0, R = d > 0 ? d - n : 0, $ = (O + R) / 2, ot = $ !== 0 ? m * $ / ($ + n) : m;
|
|
5786
5786
|
f = (m - ot) / 2;
|
|
5787
5787
|
}
|
|
5788
|
-
const p = Math.max(1e-3, m * d - e / N) / d, g = (m - p) / 2, b = l + g + f, y = s - g - f, { outerStart: x, outerEnd: v, innerStart: _, innerEnd:
|
|
5788
|
+
const p = Math.max(1e-3, m * d - e / N) / d, g = (m - p) / 2, b = l + g + f, y = s - g - f, { outerStart: x, outerEnd: v, innerStart: _, innerEnd: w } = Wc(t, u, d, y - b), S = d - x, M = d - v, C = b + x / S, P = y - v / M, A = u + _, D = u + w, E = b + _ / A, G = y - w / D;
|
|
5789
5789
|
if (i.beginPath(), o) {
|
|
5790
|
-
const O = (
|
|
5791
|
-
if (i.arc(a, r, d,
|
|
5792
|
-
const q = Xt(
|
|
5790
|
+
const O = (C + P) / 2;
|
|
5791
|
+
if (i.arc(a, r, d, C, O), i.arc(a, r, d, O, P), v > 0) {
|
|
5792
|
+
const q = Xt(M, P, a, r);
|
|
5793
5793
|
i.arc(q.x, q.y, v, P, y + Y);
|
|
5794
5794
|
}
|
|
5795
5795
|
const R = Xt(D, y, a, r);
|
|
5796
|
-
if (i.lineTo(R.x, R.y),
|
|
5796
|
+
if (i.lineTo(R.x, R.y), w > 0) {
|
|
5797
5797
|
const q = Xt(D, G, a, r);
|
|
5798
|
-
i.arc(q.x, q.y,
|
|
5798
|
+
i.arc(q.x, q.y, w, y + Y, G + Math.PI);
|
|
5799
5799
|
}
|
|
5800
|
-
const $ = (y -
|
|
5801
|
-
if (i.arc(a, r, u, y -
|
|
5800
|
+
const $ = (y - w / u + (b + _ / u)) / 2;
|
|
5801
|
+
if (i.arc(a, r, u, y - w / u, $, !0), i.arc(a, r, u, $, b + _ / u, !0), _ > 0) {
|
|
5802
5802
|
const q = Xt(A, E, a, r);
|
|
5803
5803
|
i.arc(q.x, q.y, _, E + Math.PI, b - Y);
|
|
5804
5804
|
}
|
|
5805
5805
|
const ot = Xt(S, b, a, r);
|
|
5806
5806
|
if (i.lineTo(ot.x, ot.y), x > 0) {
|
|
5807
|
-
const q = Xt(S,
|
|
5808
|
-
i.arc(q.x, q.y, x, b - Y,
|
|
5807
|
+
const q = Xt(S, C, a, r);
|
|
5808
|
+
i.arc(q.x, q.y, x, b - Y, C);
|
|
5809
5809
|
}
|
|
5810
5810
|
} else {
|
|
5811
5811
|
i.moveTo(a, r);
|
|
5812
|
-
const O = Math.cos(
|
|
5812
|
+
const O = Math.cos(C) * d + a, R = Math.sin(C) * d + r;
|
|
5813
5813
|
i.lineTo(O, R);
|
|
5814
5814
|
const $ = Math.cos(P) * d + a, ot = Math.sin(P) * d + r;
|
|
5815
5815
|
i.lineTo($, ot);
|
|
@@ -5841,16 +5841,16 @@ function Nc(i, t, e, n, s) {
|
|
|
5841
5841
|
}
|
|
5842
5842
|
f && Bc(i, t, m), o || (yi(i, t, e, n, m, s), i.stroke());
|
|
5843
5843
|
}
|
|
5844
|
-
class
|
|
5844
|
+
class ge extends at {
|
|
5845
5845
|
constructor(e) {
|
|
5846
5846
|
super();
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5847
|
+
k(this, "circumference");
|
|
5848
|
+
k(this, "endAngle");
|
|
5849
|
+
k(this, "fullCircles");
|
|
5850
|
+
k(this, "innerRadius");
|
|
5851
|
+
k(this, "outerRadius");
|
|
5852
|
+
k(this, "pixelMargin");
|
|
5853
|
+
k(this, "startAngle");
|
|
5854
5854
|
this.options = void 0, this.circumference = void 0, this.startAngle = void 0, this.endAngle = void 0, this.innerRadius = void 0, this.outerRadius = void 0, this.pixelMargin = 0, this.fullCircles = 0, e && Object.assign(this, e);
|
|
5855
5855
|
}
|
|
5856
5856
|
inRange(e, n, s) {
|
|
@@ -5897,7 +5897,7 @@ class fe extends at {
|
|
|
5897
5897
|
e.fillStyle = n.backgroundColor, e.strokeStyle = n.borderColor, Hc(e, this, h, a, r), Nc(e, this, h, a, r), e.restore();
|
|
5898
5898
|
}
|
|
5899
5899
|
}
|
|
5900
|
-
|
|
5900
|
+
k(ge, "id", "arc"), k(ge, "defaults", {
|
|
5901
5901
|
borderAlign: "center",
|
|
5902
5902
|
borderColor: "#fff",
|
|
5903
5903
|
borderDash: [],
|
|
@@ -5909,9 +5909,9 @@ C(fe, "id", "arc"), C(fe, "defaults", {
|
|
|
5909
5909
|
spacing: 0,
|
|
5910
5910
|
angle: void 0,
|
|
5911
5911
|
circular: !0
|
|
5912
|
-
}),
|
|
5912
|
+
}), k(ge, "defaultRoutes", {
|
|
5913
5913
|
backgroundColor: "backgroundColor"
|
|
5914
|
-
}),
|
|
5914
|
+
}), k(ge, "descriptors", {
|
|
5915
5915
|
_scriptable: !0,
|
|
5916
5916
|
_indexable: (e) => e !== "borderDash"
|
|
5917
5917
|
});
|
|
@@ -5949,8 +5949,8 @@ function Yc(i, t, e, n) {
|
|
|
5949
5949
|
for (l && (f = s[y(0)], i.moveTo(f.x, f.y)), u = 0; u <= r; ++u) {
|
|
5950
5950
|
if (f = s[y(u)], f.skip)
|
|
5951
5951
|
continue;
|
|
5952
|
-
const v = f.x, _ = f.y,
|
|
5953
|
-
|
|
5952
|
+
const v = f.x, _ = f.y, w = v | 0;
|
|
5953
|
+
w === m ? (_ < p ? p = _ : _ > g && (g = _), h = (d * h + v) / ++d) : (x(), i.lineTo(v, _), m = w, d = 0, p = g = _), b = _;
|
|
5954
5954
|
}
|
|
5955
5955
|
x();
|
|
5956
5956
|
}
|
|
@@ -6045,7 +6045,7 @@ class dt extends at {
|
|
|
6045
6045
|
(this.points || []).length && o.borderWidth && (t.save(), Kc(t, this, n, s), t.restore()), this.animated && (this._pointsUpdated = !1, this._path = void 0);
|
|
6046
6046
|
}
|
|
6047
6047
|
}
|
|
6048
|
-
|
|
6048
|
+
k(dt, "id", "line"), k(dt, "defaults", {
|
|
6049
6049
|
borderCapStyle: "butt",
|
|
6050
6050
|
borderDash: [],
|
|
6051
6051
|
borderDashOffset: 0,
|
|
@@ -6057,10 +6057,10 @@ C(dt, "id", "line"), C(dt, "defaults", {
|
|
|
6057
6057
|
spanGaps: !1,
|
|
6058
6058
|
stepped: !1,
|
|
6059
6059
|
tension: 0
|
|
6060
|
-
}),
|
|
6060
|
+
}), k(dt, "defaultRoutes", {
|
|
6061
6061
|
backgroundColor: "backgroundColor",
|
|
6062
6062
|
borderColor: "borderColor"
|
|
6063
|
-
}),
|
|
6063
|
+
}), k(dt, "descriptors", {
|
|
6064
6064
|
_scriptable: !0,
|
|
6065
6065
|
_indexable: (t) => t !== "borderDash" && t !== "fill"
|
|
6066
6066
|
});
|
|
@@ -6073,9 +6073,9 @@ function Ms(i, t, e, n) {
|
|
|
6073
6073
|
class Kt extends at {
|
|
6074
6074
|
constructor(e) {
|
|
6075
6075
|
super();
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6076
|
+
k(this, "parsed");
|
|
6077
|
+
k(this, "skip");
|
|
6078
|
+
k(this, "stop");
|
|
6079
6079
|
this.options = void 0, this.parsed = void 0, this.skip = void 0, this.stop = void 0, e && Object.assign(this, e);
|
|
6080
6080
|
}
|
|
6081
6081
|
inRange(e, n, s) {
|
|
@@ -6117,10 +6117,10 @@ class Kt extends at {
|
|
|
6117
6117
|
return e.radius + e.hitRadius;
|
|
6118
6118
|
}
|
|
6119
6119
|
}
|
|
6120
|
-
|
|
6120
|
+
k(Kt, "id", "point"), /**
|
|
6121
6121
|
* @type {any}
|
|
6122
6122
|
*/
|
|
6123
|
-
|
|
6123
|
+
k(Kt, "defaults", {
|
|
6124
6124
|
borderWidth: 1,
|
|
6125
6125
|
hitRadius: 1,
|
|
6126
6126
|
hoverBorderWidth: 1,
|
|
@@ -6131,7 +6131,7 @@ C(Kt, "defaults", {
|
|
|
6131
6131
|
}), /**
|
|
6132
6132
|
* @type {any}
|
|
6133
6133
|
*/
|
|
6134
|
-
|
|
6134
|
+
k(Kt, "defaultRoutes", {
|
|
6135
6135
|
backgroundColor: "backgroundColor",
|
|
6136
6136
|
borderColor: "borderColor"
|
|
6137
6137
|
});
|
|
@@ -6218,7 +6218,7 @@ function $i(i, t, e = {}) {
|
|
|
6218
6218
|
radius: i.radius
|
|
6219
6219
|
};
|
|
6220
6220
|
}
|
|
6221
|
-
class
|
|
6221
|
+
class ve extends at {
|
|
6222
6222
|
constructor(t) {
|
|
6223
6223
|
super(), this.options = void 0, this.horizontal = void 0, this.base = void 0, this.width = void 0, this.height = void 0, this.inflateAmount = void 0, t && Object.assign(this, t);
|
|
6224
6224
|
}
|
|
@@ -6251,13 +6251,13 @@ class _e extends at {
|
|
|
6251
6251
|
return t === "x" ? this.width / 2 : this.height / 2;
|
|
6252
6252
|
}
|
|
6253
6253
|
}
|
|
6254
|
-
|
|
6254
|
+
k(ve, "id", "bar"), k(ve, "defaults", {
|
|
6255
6255
|
borderSkipped: "start",
|
|
6256
6256
|
borderWidth: 0,
|
|
6257
6257
|
borderRadius: 0,
|
|
6258
6258
|
inflateAmount: "auto",
|
|
6259
6259
|
pointStyle: void 0
|
|
6260
|
-
}),
|
|
6260
|
+
}), k(ve, "defaultRoutes", {
|
|
6261
6261
|
backgroundColor: "backgroundColor",
|
|
6262
6262
|
borderColor: "borderColor"
|
|
6263
6263
|
});
|
|
@@ -6727,34 +6727,34 @@ class Os extends at {
|
|
|
6727
6727
|
const { options: t, columnSizes: e, lineWidths: n, ctx: s } = this, { align: o, labels: a } = t, r = j.color, l = qt(t.rtl, this.left, this.width), c = U(a.font), { padding: h } = a, d = c.size, u = d / 2;
|
|
6728
6728
|
let f;
|
|
6729
6729
|
this.drawTitle(), s.textAlign = l.textAlign("left"), s.textBaseline = "middle", s.lineWidth = 0.5, s.font = c.string;
|
|
6730
|
-
const { boxWidth: m, boxHeight: p, itemHeight: g } = Ts(a, d), b = function(
|
|
6730
|
+
const { boxWidth: m, boxHeight: p, itemHeight: g } = Ts(a, d), b = function(w, S, M) {
|
|
6731
6731
|
if (isNaN(m) || m <= 0 || isNaN(p) || p < 0)
|
|
6732
6732
|
return;
|
|
6733
6733
|
s.save();
|
|
6734
|
-
const
|
|
6735
|
-
if (s.fillStyle = L(
|
|
6734
|
+
const C = L(M.lineWidth, 1);
|
|
6735
|
+
if (s.fillStyle = L(M.fillStyle, r), s.lineCap = L(M.lineCap, "butt"), s.lineDashOffset = L(M.lineDashOffset, 0), s.lineJoin = L(M.lineJoin, "miter"), s.lineWidth = C, s.strokeStyle = L(M.strokeStyle, r), s.setLineDash(L(M.lineDash, [])), a.usePointStyle) {
|
|
6736
6736
|
const P = {
|
|
6737
6737
|
radius: p * Math.SQRT2 / 2,
|
|
6738
|
-
pointStyle:
|
|
6739
|
-
rotation:
|
|
6740
|
-
borderWidth:
|
|
6741
|
-
}, A = l.xPlus(
|
|
6738
|
+
pointStyle: M.pointStyle,
|
|
6739
|
+
rotation: M.rotation,
|
|
6740
|
+
borderWidth: C
|
|
6741
|
+
}, A = l.xPlus(w, m / 2), D = S + u;
|
|
6742
6742
|
yo(s, P, A, D, a.pointStyleWidth && m);
|
|
6743
6743
|
} else {
|
|
6744
|
-
const P = S + Math.max((d - p) / 2, 0), A = l.leftForLtr(
|
|
6744
|
+
const P = S + Math.max((d - p) / 2, 0), A = l.leftForLtr(w, m), D = zt(M.borderRadius);
|
|
6745
6745
|
s.beginPath(), Object.values(D).some((E) => E !== 0) ? Pe(s, {
|
|
6746
6746
|
x: A,
|
|
6747
6747
|
y: P,
|
|
6748
6748
|
w: m,
|
|
6749
6749
|
h: p,
|
|
6750
6750
|
radius: D
|
|
6751
|
-
}) : s.rect(A, P, m, p), s.fill(),
|
|
6751
|
+
}) : s.rect(A, P, m, p), s.fill(), C !== 0 && s.stroke();
|
|
6752
6752
|
}
|
|
6753
6753
|
s.restore();
|
|
6754
|
-
}, y = function(
|
|
6755
|
-
Nt(s,
|
|
6756
|
-
strikethrough:
|
|
6757
|
-
textAlign: l.textAlign(
|
|
6754
|
+
}, y = function(w, S, M) {
|
|
6755
|
+
Nt(s, M.text, w, S + g / 2, c, {
|
|
6756
|
+
strikethrough: M.hidden,
|
|
6757
|
+
textAlign: l.textAlign(M.textAlign)
|
|
6758
6758
|
});
|
|
6759
6759
|
}, x = this.isHorizontal(), v = this._computeTitleHeight();
|
|
6760
6760
|
x ? f = {
|
|
@@ -6767,17 +6767,17 @@ class Os extends at {
|
|
|
6767
6767
|
line: 0
|
|
6768
6768
|
}, Co(this.ctx, t.textDirection);
|
|
6769
6769
|
const _ = g + h;
|
|
6770
|
-
this.legendItems.forEach((
|
|
6771
|
-
s.strokeStyle =
|
|
6772
|
-
const
|
|
6770
|
+
this.legendItems.forEach((w, S) => {
|
|
6771
|
+
s.strokeStyle = w.fontColor, s.fillStyle = w.fontColor;
|
|
6772
|
+
const M = s.measureText(w.text).width, C = l.textAlign(w.textAlign || (w.textAlign = a.textAlign)), P = m + u + M;
|
|
6773
6773
|
let A = f.x, D = f.y;
|
|
6774
6774
|
l.setWidth(this.width), x ? S > 0 && A + P + h > this.right && (D = f.y += _, f.line++, A = f.x = K(o, this.left + h, this.right - n[f.line])) : S > 0 && D + _ > this.bottom && (A = f.x = A + e[f.line].width + h, f.line++, D = f.y = K(o, this.top + v + h, this.bottom - e[f.line].height));
|
|
6775
6775
|
const E = l.x(A);
|
|
6776
|
-
if (b(E, D,
|
|
6776
|
+
if (b(E, D, w), A = Ja(C, A + m + u, x ? A + P : this.right, t.rtl), y(l.x(A), D, w), x)
|
|
6777
6777
|
f.x += P + h;
|
|
6778
|
-
else if (typeof
|
|
6778
|
+
else if (typeof w.text != "string") {
|
|
6779
6779
|
const G = c.lineHeight;
|
|
6780
|
-
f.y += Go(
|
|
6780
|
+
f.y += Go(w, G) + h;
|
|
6781
6781
|
} else
|
|
6782
6782
|
f.y += _;
|
|
6783
6783
|
}), Po(this.ctx, t.textDirection);
|
|
@@ -6856,7 +6856,7 @@ function Go(i, t) {
|
|
|
6856
6856
|
function Ch(i, t) {
|
|
6857
6857
|
return !!((i === "mousemove" || i === "mouseout") && (t.onHover || t.onLeave) || t.onClick && (i === "click" || i === "mouseup"));
|
|
6858
6858
|
}
|
|
6859
|
-
var
|
|
6859
|
+
var We = {
|
|
6860
6860
|
id: "legend",
|
|
6861
6861
|
_element: Os,
|
|
6862
6862
|
start(i, t, e) {
|
|
@@ -6996,7 +6996,7 @@ function Ph(i, t) {
|
|
|
6996
6996
|
});
|
|
6997
6997
|
st.configure(i, e, t), st.addBox(i, e), i.titleBlock = e;
|
|
6998
6998
|
}
|
|
6999
|
-
var
|
|
6999
|
+
var He = {
|
|
7000
7000
|
id: "title",
|
|
7001
7001
|
_element: qo,
|
|
7002
7002
|
start(i, t, e) {
|
|
@@ -7030,7 +7030,7 @@ var Ne = {
|
|
|
7030
7030
|
_indexable: !1
|
|
7031
7031
|
}
|
|
7032
7032
|
};
|
|
7033
|
-
const
|
|
7033
|
+
const pe = {
|
|
7034
7034
|
average(i) {
|
|
7035
7035
|
if (!i.length)
|
|
7036
7036
|
return !1;
|
|
@@ -7147,7 +7147,7 @@ function Rs(i, t, e, n) {
|
|
|
7147
7147
|
y: Z(p, 0, n.height - t.height)
|
|
7148
7148
|
};
|
|
7149
7149
|
}
|
|
7150
|
-
function
|
|
7150
|
+
function si(i, t, e) {
|
|
7151
7151
|
const n = Q(e.padding);
|
|
7152
7152
|
return t === "center" ? i.x + i.width / 2 : t === "right" ? i.x + i.width - n.right : i.x + n.left;
|
|
7153
7153
|
}
|
|
@@ -7283,7 +7283,7 @@ class nn extends at {
|
|
|
7283
7283
|
opacity: 0
|
|
7284
7284
|
});
|
|
7285
7285
|
else {
|
|
7286
|
-
const r =
|
|
7286
|
+
const r = pe[n.position].call(this, s, this._eventPosition);
|
|
7287
7287
|
a = this._createItems(n), this.title = this.getTitle(a, n), this.beforeBody = this.getBeforeBody(a, n), this.body = this.getBody(a, n), this.afterBody = this.getAfterBody(a, n), this.footer = this.getFooter(a, n);
|
|
7288
7288
|
const l = this._size = Is(this, n), c = Object.assign({}, r, l), h = Fs(this.chart, n, c), d = Rs(n, c, h, this.chart);
|
|
7289
7289
|
this.xAlign = h.xAlign, this.yAlign = h.yAlign, o = {
|
|
@@ -7323,12 +7323,12 @@ class nn extends at {
|
|
|
7323
7323
|
let a, r, l;
|
|
7324
7324
|
if (o) {
|
|
7325
7325
|
const c = qt(n.rtl, this.x, this.width);
|
|
7326
|
-
for (t.x =
|
|
7326
|
+
for (t.x = si(this, n.titleAlign, n), e.textAlign = c.textAlign(n.titleAlign), e.textBaseline = "middle", a = U(n.titleFont), r = n.titleSpacing, e.fillStyle = n.titleColor, e.font = a.string, l = 0; l < o; ++l)
|
|
7327
7327
|
e.fillText(s[l], c.x(t.x), t.y + a.lineHeight / 2), t.y += a.lineHeight + r, l + 1 === o && (t.y += n.titleMarginBottom - r);
|
|
7328
7328
|
}
|
|
7329
7329
|
}
|
|
7330
7330
|
_drawColorBox(t, e, n, s, o) {
|
|
7331
|
-
const a = this.labelColors[n], r = this.labelPointStyles[n], { boxHeight: l, boxWidth: c } = o, h = U(o.bodyFont), d =
|
|
7331
|
+
const a = this.labelColors[n], r = this.labelPointStyles[n], { boxHeight: l, boxWidth: c } = o, h = U(o.bodyFont), d = si(this, "left", o), u = s.x(d), f = l < h.lineHeight ? (h.lineHeight - l) / 2 : 0, m = e.y + f;
|
|
7332
7332
|
if (o.usePointStyle) {
|
|
7333
7333
|
const p = {
|
|
7334
7334
|
radius: Math.min(c, l) / 2,
|
|
@@ -7359,11 +7359,11 @@ class nn extends at {
|
|
|
7359
7359
|
drawBody(t, e, n) {
|
|
7360
7360
|
const { body: s } = this, { bodySpacing: o, bodyAlign: a, displayColors: r, boxHeight: l, boxWidth: c, boxPadding: h } = n, d = U(n.bodyFont);
|
|
7361
7361
|
let u = d.lineHeight, f = 0;
|
|
7362
|
-
const m = qt(n.rtl, this.x, this.width), p = function(
|
|
7363
|
-
e.fillText(
|
|
7362
|
+
const m = qt(n.rtl, this.x, this.width), p = function(M) {
|
|
7363
|
+
e.fillText(M, m.x(t.x + f), t.y + u / 2), t.y += u + o;
|
|
7364
7364
|
}, g = m.textAlign(a);
|
|
7365
|
-
let b, y, x, v, _,
|
|
7366
|
-
for (e.textAlign = a, e.textBaseline = "middle", e.font = d.string, t.x =
|
|
7365
|
+
let b, y, x, v, _, w, S;
|
|
7366
|
+
for (e.textAlign = a, e.textBaseline = "middle", e.font = d.string, t.x = si(this, g, n), e.fillStyle = n.bodyColor, I(this.beforeBody, p), f = r && g !== "right" ? a === "center" ? c / 2 + h : c + 2 + h : 0, v = 0, w = s.length; v < w; ++v) {
|
|
7367
7367
|
for (b = s[v], y = this.labelTextColors[v], e.fillStyle = y, I(b.before, p), x = b.lines, r && x.length && (this._drawColorBox(e, t, v, m, n), u = Math.max(d.lineHeight, l)), _ = 0, S = x.length; _ < S; ++_)
|
|
7368
7368
|
p(x[_]), u = d.lineHeight;
|
|
7369
7369
|
I(b.after, p);
|
|
@@ -7375,7 +7375,7 @@ class nn extends at {
|
|
|
7375
7375
|
let a, r;
|
|
7376
7376
|
if (o) {
|
|
7377
7377
|
const l = qt(n.rtl, this.x, this.width);
|
|
7378
|
-
for (t.x =
|
|
7378
|
+
for (t.x = si(this, n.footerAlign, n), t.y += n.footerMarginTop, e.textAlign = l.textAlign(n.footerAlign), e.textBaseline = "middle", a = U(n.footerFont), e.fillStyle = n.footerColor, e.font = a.string, r = 0; r < o; ++r)
|
|
7379
7379
|
e.fillText(s[r], l.x(t.x), t.y + a.lineHeight / 2), t.y += a.lineHeight + n.footerSpacing;
|
|
7380
7380
|
}
|
|
7381
7381
|
}
|
|
@@ -7386,7 +7386,7 @@ class nn extends at {
|
|
|
7386
7386
|
_updateAnimationTarget(t) {
|
|
7387
7387
|
const e = this.chart, n = this.$animations, s = n && n.x, o = n && n.y;
|
|
7388
7388
|
if (s || o) {
|
|
7389
|
-
const a =
|
|
7389
|
+
const a = pe[t.position].call(this, this._active, this._eventPosition);
|
|
7390
7390
|
if (!a)
|
|
7391
7391
|
return;
|
|
7392
7392
|
const r = this._size = Is(this, t), l = Object.assign({}, a, this._size), c = Fs(e, t, l), h = Rs(t, l, c, e);
|
|
@@ -7449,15 +7449,15 @@ class nn extends at {
|
|
|
7449
7449
|
return o.reverse && a.reverse(), a;
|
|
7450
7450
|
}
|
|
7451
7451
|
_positionChanged(t, e) {
|
|
7452
|
-
const { caretX: n, caretY: s, options: o } = this, a =
|
|
7452
|
+
const { caretX: n, caretY: s, options: o } = this, a = pe[o.position].call(this, t, e);
|
|
7453
7453
|
return a !== !1 && (n !== a.x || s !== a.y);
|
|
7454
7454
|
}
|
|
7455
7455
|
}
|
|
7456
|
-
|
|
7457
|
-
var
|
|
7456
|
+
k(nn, "positioners", pe);
|
|
7457
|
+
var Ne = {
|
|
7458
7458
|
id: "tooltip",
|
|
7459
7459
|
_element: nn,
|
|
7460
|
-
positioners:
|
|
7460
|
+
positioners: pe,
|
|
7461
7461
|
afterInit(i, t, e) {
|
|
7462
7462
|
e && (i.tooltip = new nn({
|
|
7463
7463
|
chart: i,
|
|
@@ -7641,14 +7641,14 @@ class De extends jt {
|
|
|
7641
7641
|
return this.bottom;
|
|
7642
7642
|
}
|
|
7643
7643
|
}
|
|
7644
|
-
|
|
7644
|
+
k(De, "id", "category"), k(De, "defaults", {
|
|
7645
7645
|
ticks: {
|
|
7646
7646
|
callback: zs
|
|
7647
7647
|
}
|
|
7648
7648
|
});
|
|
7649
7649
|
function zh(i, t) {
|
|
7650
7650
|
const e = [], { bounds: s, step: o, min: a, max: r, precision: l, count: c, maxTicks: h, maxDigits: d, includeBounds: u } = i, f = o || 1, m = h - 1, { min: p, max: g } = t, b = !F(a), y = !F(r), x = !F(c), v = (g - p) / (d + 1);
|
|
7651
|
-
let _ = Rn((g - p) / m / f) * f,
|
|
7651
|
+
let _ = Rn((g - p) / m / f) * f, w, S, M, C;
|
|
7652
7652
|
if (_ < 1e-14 && !b && !y)
|
|
7653
7653
|
return [
|
|
7654
7654
|
{
|
|
@@ -7658,24 +7658,24 @@ function zh(i, t) {
|
|
|
7658
7658
|
value: g
|
|
7659
7659
|
}
|
|
7660
7660
|
];
|
|
7661
|
-
|
|
7661
|
+
C = Math.ceil(g / _) - Math.floor(p / _), C > m && (_ = Rn(C * _ / m / f) * f), F(l) || (w = Math.pow(10, l), _ = Math.ceil(_ * w) / w), s === "ticks" ? (S = Math.floor(p / _) * _, M = Math.ceil(g / _) * _) : (S = p, M = g), b && y && o && Ua((r - a) / o, _ / 1e3) ? (C = Math.round(Math.min((r - a) / _, h)), _ = (r - a) / C, S = a, M = r) : x ? (S = b ? a : S, M = y ? r : M, C = c - 1, _ = (M - S) / C) : (C = (M - S) / _, ye(C, Math.round(C), _ / 1e3) ? C = Math.round(C) : C = Math.ceil(C));
|
|
7662
7662
|
const P = Math.max(En(_), En(S));
|
|
7663
|
-
|
|
7663
|
+
w = Math.pow(10, F(l) ? P : l), S = Math.round(S * w) / w, M = Math.round(M * w) / w;
|
|
7664
7664
|
let A = 0;
|
|
7665
7665
|
for (b && (u && S !== a ? (e.push({
|
|
7666
7666
|
value: a
|
|
7667
|
-
}), S < a && A++,
|
|
7668
|
-
const D = Math.round((S + A * _) *
|
|
7667
|
+
}), S < a && A++, ye(Math.round((S + A * _) * w) / w, a, Ws(a, v, i)) && A++) : S < a && A++); A < C; ++A) {
|
|
7668
|
+
const D = Math.round((S + A * _) * w) / w;
|
|
7669
7669
|
if (y && D > r)
|
|
7670
7670
|
break;
|
|
7671
7671
|
e.push({
|
|
7672
7672
|
value: D
|
|
7673
7673
|
});
|
|
7674
7674
|
}
|
|
7675
|
-
return y && u &&
|
|
7675
|
+
return y && u && M !== r ? e.length && ye(e[e.length - 1].value, r, Ws(r, v, i)) ? e[e.length - 1].value = r : e.push({
|
|
7676
7676
|
value: r
|
|
7677
|
-
}) : (!y ||
|
|
7678
|
-
value:
|
|
7677
|
+
}) : (!y || M === r) && e.push({
|
|
7678
|
+
value: M
|
|
7679
7679
|
}), e;
|
|
7680
7680
|
}
|
|
7681
7681
|
function Ws(i, t, { horizontal: e, minRotation: n }) {
|
|
@@ -7759,7 +7759,7 @@ class Le extends xi {
|
|
|
7759
7759
|
return this._startValue + this.getDecimalForPixel(t) * this._valueRange;
|
|
7760
7760
|
}
|
|
7761
7761
|
}
|
|
7762
|
-
|
|
7762
|
+
k(Le, "id", "linear"), k(Le, "defaults", {
|
|
7763
7763
|
ticks: {
|
|
7764
7764
|
callback: wi.formatters.numeric
|
|
7765
7765
|
}
|
|
@@ -7847,7 +7847,7 @@ class Vs extends jt {
|
|
|
7847
7847
|
return Math.pow(10, this._startValue + e * this._valueRange);
|
|
7848
7848
|
}
|
|
7849
7849
|
}
|
|
7850
|
-
|
|
7850
|
+
k(Vs, "id", "logarithmic"), k(Vs, "defaults", {
|
|
7851
7851
|
ticks: {
|
|
7852
7852
|
callback: wi.formatters.logarithmic,
|
|
7853
7853
|
major: {
|
|
@@ -8011,7 +8011,7 @@ function Jh(i, t, e) {
|
|
|
8011
8011
|
type: "pointLabel"
|
|
8012
8012
|
});
|
|
8013
8013
|
}
|
|
8014
|
-
class
|
|
8014
|
+
class me extends xi {
|
|
8015
8015
|
constructor(t) {
|
|
8016
8016
|
super(t), this.xCenter = void 0, this.yCenter = void 0, this.drawingArea = void 0, this._pointLabels = [], this._pointLabelItems = [];
|
|
8017
8017
|
}
|
|
@@ -8139,7 +8139,7 @@ class pe extends xi {
|
|
|
8139
8139
|
drawTitle() {
|
|
8140
8140
|
}
|
|
8141
8141
|
}
|
|
8142
|
-
|
|
8142
|
+
k(me, "id", "radialLinear"), k(me, "defaults", {
|
|
8143
8143
|
display: !0,
|
|
8144
8144
|
animate: !0,
|
|
8145
8145
|
position: "chartArea",
|
|
@@ -8170,11 +8170,11 @@ C(pe, "id", "radialLinear"), C(pe, "defaults", {
|
|
|
8170
8170
|
padding: 5,
|
|
8171
8171
|
centerPointLabels: !1
|
|
8172
8172
|
}
|
|
8173
|
-
}),
|
|
8173
|
+
}), k(me, "defaultRoutes", {
|
|
8174
8174
|
"angleLines.color": "borderColor",
|
|
8175
8175
|
"pointLabels.color": "color",
|
|
8176
8176
|
"ticks.color": "color"
|
|
8177
|
-
}),
|
|
8177
|
+
}), k(me, "descriptors", {
|
|
8178
8178
|
angleLines: {
|
|
8179
8179
|
_fallback: "grid"
|
|
8180
8180
|
}
|
|
@@ -8292,7 +8292,7 @@ class _i extends jt {
|
|
|
8292
8292
|
}
|
|
8293
8293
|
init(t, e = {}) {
|
|
8294
8294
|
const n = t.time || (t.time = {}), s = this._adapter = new Pl._date(t.adapters.date);
|
|
8295
|
-
s.init(e),
|
|
8295
|
+
s.init(e), be(n.displayFormats, s.formats()), this._parseOpts = {
|
|
8296
8296
|
parser: n.parser,
|
|
8297
8297
|
round: n.round,
|
|
8298
8298
|
isoWeekday: n.isoWeekday
|
|
@@ -8426,7 +8426,7 @@ class _i extends jt {
|
|
|
8426
8426
|
return go(t.sort($s));
|
|
8427
8427
|
}
|
|
8428
8428
|
}
|
|
8429
|
-
|
|
8429
|
+
k(_i, "id", "time"), k(_i, "defaults", {
|
|
8430
8430
|
bounds: "data",
|
|
8431
8431
|
adapters: {},
|
|
8432
8432
|
time: {
|
|
@@ -8445,7 +8445,7 @@ C(_i, "id", "time"), C(_i, "defaults", {
|
|
|
8445
8445
|
}
|
|
8446
8446
|
}
|
|
8447
8447
|
});
|
|
8448
|
-
function
|
|
8448
|
+
function oi(i, t, e) {
|
|
8449
8449
|
let n = 0, s = i.length - 1, o, a, r, l;
|
|
8450
8450
|
e ? (t >= i[n].pos && t <= i[s].pos && ({ lo: n, hi: s } = Bt(i, "pos", t)), { pos: o, time: r } = i[n], { pos: a, time: l } = i[s]) : (t >= i[n].time && t <= i[s].time && ({ lo: n, hi: s } = Bt(i, "time", t)), { time: o, pos: r } = i[n], { time: a, pos: l } = i[s]);
|
|
8451
8451
|
const c = a - o;
|
|
@@ -8457,7 +8457,7 @@ class qs extends _i {
|
|
|
8457
8457
|
}
|
|
8458
8458
|
initOffsets() {
|
|
8459
8459
|
const t = this._getTimestampsForTable(), e = this._table = this.buildLookupTable(t);
|
|
8460
|
-
this._minPos =
|
|
8460
|
+
this._minPos = oi(e, this.min), this._tableRange = oi(e, this.max) - this._minPos, super.initOffsets(t);
|
|
8461
8461
|
}
|
|
8462
8462
|
buildLookupTable(t) {
|
|
8463
8463
|
const { min: e, max: n } = this, s = [], o = [];
|
|
@@ -8495,14 +8495,14 @@ class qs extends _i {
|
|
|
8495
8495
|
return e.length && n.length ? t = this.normalize(e.concat(n)) : t = e.length ? e : n, t = this._cache.all = t, t;
|
|
8496
8496
|
}
|
|
8497
8497
|
getDecimalForValue(t) {
|
|
8498
|
-
return (
|
|
8498
|
+
return (oi(this._table, t) - this._minPos) / this._tableRange;
|
|
8499
8499
|
}
|
|
8500
8500
|
getValueForPixel(t) {
|
|
8501
8501
|
const e = this._offsets, n = this.getDecimalForPixel(t) / e.factor - e.end;
|
|
8502
|
-
return
|
|
8502
|
+
return oi(this._table, n * this._tableRange + this._minPos, !0);
|
|
8503
8503
|
}
|
|
8504
8504
|
}
|
|
8505
|
-
|
|
8505
|
+
k(qs, "id", "timeseries"), k(qs, "defaults", _i.defaults);
|
|
8506
8506
|
const Qo = {
|
|
8507
8507
|
data: {
|
|
8508
8508
|
type: Object,
|
|
@@ -8589,7 +8589,7 @@ const ld = Vt({
|
|
|
8589
8589
|
}, r = (l) => {
|
|
8590
8590
|
l.update(i.updateMode);
|
|
8591
8591
|
};
|
|
8592
|
-
return eo(o), fa(a),
|
|
8592
|
+
return eo(o), fa(a), di([
|
|
8593
8593
|
() => i.options,
|
|
8594
8594
|
() => i.data
|
|
8595
8595
|
], (l, c) => {
|
|
@@ -8633,7 +8633,7 @@ function Ai(i, t) {
|
|
|
8633
8633
|
}
|
|
8634
8634
|
});
|
|
8635
8635
|
}
|
|
8636
|
-
const ea = /* @__PURE__ */ Ai("bar",
|
|
8636
|
+
const ea = /* @__PURE__ */ Ai("bar", ai), cd = /* @__PURE__ */ Ai("doughnut", ue), hd = /* @__PURE__ */ Ai("line", ri), dd = /* @__PURE__ */ Ai("radar", li);
|
|
8637
8637
|
function Di() {
|
|
8638
8638
|
function i(e, n = 50, s = 50) {
|
|
8639
8639
|
const o = document.createElement("canvas"), a = o.getContext("2d");
|
|
@@ -8713,17 +8713,17 @@ function _d(i, t, e) {
|
|
|
8713
8713
|
function sa(i, t, e, n, s, o) {
|
|
8714
8714
|
const a = t.config.type === "doughnut", r = a ? i.index : i.datasetIndex, l = new Image(), c = aa(i, t.config.type), h = o[r](!1, s[r], n), d = pd(h);
|
|
8715
8715
|
return l.src = d.toDataURL(), c.style.background = `url(${l.src})`, c.style.backgroundSize = "cover", c.style.borderColor = s[r], c.style.borderWidth = Mn, c.onmouseover = () => {
|
|
8716
|
-
a ? e.value = r : e.dataSetIndex = r;
|
|
8716
|
+
a ? e.value = r : e.dataSetIndex = r, t.update();
|
|
8717
8717
|
}, c.onmouseleave = () => {
|
|
8718
|
-
a ? e.value = null : e.dataSetIndex =
|
|
8718
|
+
a ? e.value = null : e.dataSetIndex = -1, t.update();
|
|
8719
8719
|
}, c;
|
|
8720
8720
|
}
|
|
8721
8721
|
function oa(i, t, e, n, s) {
|
|
8722
8722
|
const o = i.config.type === "doughnut", a = o ? t.index : t.datasetIndex, r = Cn(i, t, s);
|
|
8723
8723
|
return i.config.data.labels.every((h, d) => i.getDataVisibility(d)) ? (o && (e.value = !1, n.value = -1), r) : (r.onmouseover = () => {
|
|
8724
|
-
o ? n.value = a : n.dataSetIndex = a;
|
|
8724
|
+
o ? n.value = a : n.dataSetIndex = a, i.update();
|
|
8725
8725
|
}, r.onmouseleave = () => {
|
|
8726
|
-
o ? n.value = null : n.dataSetIndex =
|
|
8726
|
+
o ? n.value = null : n.dataSetIndex = -1, i.update();
|
|
8727
8727
|
}, r);
|
|
8728
8728
|
}
|
|
8729
8729
|
function Li(i) {
|
|
@@ -8785,13 +8785,9 @@ function wd(i) {
|
|
|
8785
8785
|
function Oi(i, t, e) {
|
|
8786
8786
|
ra(i) ? i.toggleDataVisibility(t) : i.setDatasetVisibility(t, !i.isDatasetVisible(t)), e && wd(i) && (e.value = !1), i.update();
|
|
8787
8787
|
}
|
|
8788
|
-
function Pn(i, t
|
|
8789
|
-
const
|
|
8790
|
-
return
|
|
8791
|
-
t.dataSetIndex = o;
|
|
8792
|
-
}, n.onmouseleave = () => {
|
|
8793
|
-
t.dataSetIndex = null;
|
|
8794
|
-
}), n.appendChild(s), n;
|
|
8788
|
+
function Pn(i, t) {
|
|
8789
|
+
const e = aa(i, ""), n = vd(i), s = i.index || i.datasetIndex;
|
|
8790
|
+
return n.style.width = "10px", n.style.height = "10px", s % 2 === 0 ? t ? n.style.borderRadius = "25px" : n.style.transform = "rotate(45deg)" : t ? n.style.transform = "rotate(45deg)" : n.style.borderRadius = "25px", e.appendChild(n), e;
|
|
8795
8791
|
}
|
|
8796
8792
|
function Ii(i, t) {
|
|
8797
8793
|
var n, s;
|
|
@@ -8816,18 +8812,18 @@ function kd() {
|
|
|
8816
8812
|
}
|
|
8817
8813
|
function o(p, g, b, y, x, v) {
|
|
8818
8814
|
const _ = i.value;
|
|
8819
|
-
return p.map((
|
|
8820
|
-
borderColor: function(
|
|
8821
|
-
return b ? "#00000000" : r(S,
|
|
8815
|
+
return p.map((w, S) => ({
|
|
8816
|
+
borderColor: function(M) {
|
|
8817
|
+
return b ? "#00000000" : r(S, M.index, y, v);
|
|
8822
8818
|
},
|
|
8823
|
-
backgroundColor: function(
|
|
8824
|
-
return l(S,
|
|
8819
|
+
backgroundColor: function(M) {
|
|
8820
|
+
return l(S, M.index, b, y, x, v);
|
|
8825
8821
|
},
|
|
8826
8822
|
borderWidth: function() {
|
|
8827
8823
|
return b ? 1 : _;
|
|
8828
8824
|
},
|
|
8829
|
-
data:
|
|
8830
|
-
label:
|
|
8825
|
+
data: w.data,
|
|
8826
|
+
label: w.label,
|
|
8831
8827
|
stack: `Stack ${g ? "0" : S}`
|
|
8832
8828
|
}));
|
|
8833
8829
|
}
|
|
@@ -8877,16 +8873,16 @@ function kd() {
|
|
|
8877
8873
|
};
|
|
8878
8874
|
}
|
|
8879
8875
|
const { getPatternCanvas: Md } = Di();
|
|
8880
|
-
class
|
|
8876
|
+
class Ve {
|
|
8881
8877
|
constructor() {
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
|
|
8885
|
-
|
|
8886
|
-
|
|
8887
|
-
|
|
8888
|
-
|
|
8889
|
-
|
|
8878
|
+
k(this, "chartType", "");
|
|
8879
|
+
k(this, "datasetIndex", 0);
|
|
8880
|
+
k(this, "dataIndex", 0);
|
|
8881
|
+
k(this, "titleLines", [""]);
|
|
8882
|
+
k(this, "dataToDisplay", "");
|
|
8883
|
+
k(this, "xValue", "");
|
|
8884
|
+
k(this, "yValue", "");
|
|
8885
|
+
k(this, "patternShifting", 0);
|
|
8890
8886
|
}
|
|
8891
8887
|
createTooltip(t, e, n, s, o, a = !1) {
|
|
8892
8888
|
var c, h, d, u;
|
|
@@ -8989,7 +8985,7 @@ class je {
|
|
|
8989
8985
|
return t.lines;
|
|
8990
8986
|
}
|
|
8991
8987
|
}
|
|
8992
|
-
var
|
|
8988
|
+
var ee = /* @__PURE__ */ ((i) => (i.RADAR = "RADAR", i.BAR_CHART = "BAR_CHART", i.MIXED_BAR_LINE_CHART = "MIXED_BAR_LINE_CHART", i.DETAILS_BAR_CHART = "DETAILS_BAR_CHART", i.LINE_CHART = "LINE_CHART", i.DOUGHNUT = "DOUGHNUT", i))(ee || {});
|
|
8993
8989
|
function Cd(i, t = "#A274FF", e = !1) {
|
|
8994
8990
|
const n = document.createElement("canvas"), s = n.getContext("2d");
|
|
8995
8991
|
if (!s)
|
|
@@ -9086,7 +9082,7 @@ function Td(i, t = "#095359", e = !1) {
|
|
|
9086
9082
|
const c = l.createPattern(n, "repeat");
|
|
9087
9083
|
return c ? (l.fillStyle = c, l.fillRect(0, 0, r.width, r.height), c) : new CanvasPattern();
|
|
9088
9084
|
}
|
|
9089
|
-
function
|
|
9085
|
+
function je() {
|
|
9090
9086
|
return {
|
|
9091
9087
|
patternsStandardList: [
|
|
9092
9088
|
Cd,
|
|
@@ -9226,14 +9222,14 @@ const Od = { class: "container" }, Id = { class: "main" }, Fd = /* @__PURE__ */
|
|
|
9226
9222
|
setup(i) {
|
|
9227
9223
|
const t = i;
|
|
9228
9224
|
Lt.register(
|
|
9229
|
-
Ne,
|
|
9230
|
-
Ve,
|
|
9231
9225
|
He,
|
|
9232
|
-
|
|
9226
|
+
Ne,
|
|
9227
|
+
We,
|
|
9228
|
+
ve,
|
|
9233
9229
|
De,
|
|
9234
9230
|
Le
|
|
9235
9231
|
);
|
|
9236
|
-
const { colourSets: e, patternsStandardList: n } =
|
|
9232
|
+
const { colourSets: e, patternsStandardList: n } = je(), s = X(null), o = X(!1), a = z(() => t.newPatternsOrder.length !== n.length ? e[t.colourSet] : t.newPatternsOrder.map((C) => e[t.colourSet][C])), r = z(() => t.newPatternsOrder.length !== n.length ? n : t.newPatternsOrder.map((C) => n[C])), l = z(() => t.disableAccessibility), {
|
|
9237
9233
|
onHoverIndex: c,
|
|
9238
9234
|
barChartRef: h,
|
|
9239
9235
|
reloadChart: d,
|
|
@@ -9241,9 +9237,9 @@ const Od = { class: "container" }, Id = { class: "main" }, Fd = /* @__PURE__ */
|
|
|
9241
9237
|
getStackedDatasets: f,
|
|
9242
9238
|
privateGetHtmlLegendPlugin: m
|
|
9243
9239
|
} = kd(), p = z(() => {
|
|
9244
|
-
const
|
|
9240
|
+
const C = w(x.value);
|
|
9245
9241
|
return y(), {
|
|
9246
|
-
labels:
|
|
9242
|
+
labels: C,
|
|
9247
9243
|
datasets: f(
|
|
9248
9244
|
t.datasets.map((P, A) => ({
|
|
9249
9245
|
data: v(A, x.value),
|
|
@@ -9261,24 +9257,24 @@ const Od = { class: "container" }, Id = { class: "main" }, Fd = /* @__PURE__ */
|
|
|
9261
9257
|
const y = () => {
|
|
9262
9258
|
g = t.tooltipFirstLineLabel, b = t.tooltipSecondLineLabel;
|
|
9263
9259
|
}, x = z(() => {
|
|
9264
|
-
const
|
|
9265
|
-
if (
|
|
9266
|
-
const P =
|
|
9260
|
+
const C = t.labels;
|
|
9261
|
+
if (C.includes("other")) {
|
|
9262
|
+
const P = C.indexOf("other");
|
|
9267
9263
|
if (t.datasets[0].data[P].rate + "" == "0" && t.datasets[1].data[P].rate + "" == "0")
|
|
9268
9264
|
return P;
|
|
9269
9265
|
}
|
|
9270
9266
|
return null;
|
|
9271
|
-
}), v = (
|
|
9272
|
-
const D = Object.assign([], t.datasets[
|
|
9267
|
+
}), v = (C, P, A = !1) => {
|
|
9268
|
+
const D = Object.assign([], t.datasets[C].data);
|
|
9273
9269
|
return P && x.value && D.splice(x.value, 1), D.map(
|
|
9274
9270
|
(E) => t.unit === "%" ? E.rate : E.amount
|
|
9275
9271
|
);
|
|
9276
|
-
}, _ = (
|
|
9277
|
-
const P =
|
|
9272
|
+
}, _ = (C) => {
|
|
9273
|
+
const P = C.tooltip.dataPoints[0].datasetIndex, A = C.tooltip.dataPoints[0].dataIndex, D = C.tooltip.body[0].lines[0].split(":")[1], E = t.datasets[P].data[A], G = E.rate ? parseFloat(D.replace(",", ".")).toFixed(2) + "% " : "", O = E.amountUnit ? E.amountUnit : "", R = E.amount ? rt(E.amount) : "";
|
|
9278
9274
|
return G + (G && R ? "/ " : "") + R + O;
|
|
9279
|
-
},
|
|
9275
|
+
}, w = (C) => {
|
|
9280
9276
|
const P = Object.assign([], t.labels);
|
|
9281
|
-
return
|
|
9277
|
+
return C && P.splice(C, 1), P.map((A) => A);
|
|
9282
9278
|
}, S = z(() => ({
|
|
9283
9279
|
// eslint-disable-next-line
|
|
9284
9280
|
onHover: u(),
|
|
@@ -9299,12 +9295,12 @@ const Od = { class: "container" }, Id = { class: "main" }, Fd = /* @__PURE__ */
|
|
|
9299
9295
|
tooltip: {
|
|
9300
9296
|
enabled: !1,
|
|
9301
9297
|
position: "nearest",
|
|
9302
|
-
external: function(
|
|
9303
|
-
new
|
|
9304
|
-
|
|
9298
|
+
external: function(C) {
|
|
9299
|
+
new Ve().createTooltip(
|
|
9300
|
+
C,
|
|
9305
9301
|
_,
|
|
9306
9302
|
{
|
|
9307
|
-
chartType:
|
|
9303
|
+
chartType: ee.BAR_CHART,
|
|
9308
9304
|
firstLineLabel: g,
|
|
9309
9305
|
secondLineLabel: b
|
|
9310
9306
|
},
|
|
@@ -9322,13 +9318,13 @@ const Od = { class: "container" }, Id = { class: "main" }, Fd = /* @__PURE__ */
|
|
|
9322
9318
|
y: {
|
|
9323
9319
|
stacked: t.stacked,
|
|
9324
9320
|
ticks: {
|
|
9325
|
-
callback: function(
|
|
9326
|
-
return t.unit === "%" ? on(
|
|
9321
|
+
callback: function(C) {
|
|
9322
|
+
return t.unit === "%" ? on(C, t.unit) : rt(C) + " " + t.unit;
|
|
9327
9323
|
}
|
|
9328
9324
|
}
|
|
9329
9325
|
}
|
|
9330
9326
|
}
|
|
9331
|
-
})),
|
|
9327
|
+
})), M = X(
|
|
9332
9328
|
m(
|
|
9333
9329
|
s,
|
|
9334
9330
|
o,
|
|
@@ -9337,13 +9333,13 @@ const Od = { class: "container" }, Id = { class: "main" }, Fd = /* @__PURE__ */
|
|
|
9337
9333
|
r
|
|
9338
9334
|
)
|
|
9339
9335
|
);
|
|
9340
|
-
return
|
|
9336
|
+
return di(
|
|
9341
9337
|
c,
|
|
9342
9338
|
() => {
|
|
9343
9339
|
d();
|
|
9344
9340
|
},
|
|
9345
9341
|
{ deep: !0 }
|
|
9346
|
-
), (
|
|
9342
|
+
), (C, P) => (ft(), Ie("div", Od, [
|
|
9347
9343
|
gt("div", Id, [
|
|
9348
9344
|
p.value ? (ft(), Fe(Zt(ea), {
|
|
9349
9345
|
key: 0,
|
|
@@ -9352,10 +9348,10 @@ const Od = { class: "container" }, Id = { class: "main" }, Fd = /* @__PURE__ */
|
|
|
9352
9348
|
id: i.chartId,
|
|
9353
9349
|
data: p.value,
|
|
9354
9350
|
options: S.value,
|
|
9355
|
-
plugins:
|
|
9351
|
+
plugins: M.value,
|
|
9356
9352
|
class: Re(i.cssClasses),
|
|
9357
|
-
style:
|
|
9358
|
-
}, null, 8, ["id", "data", "options", "plugins", "class", "style"])) :
|
|
9353
|
+
style: Qt([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
|
|
9354
|
+
}, null, 8, ["id", "data", "options", "plugins", "class", "style"])) : Ee("", !0)
|
|
9359
9355
|
]),
|
|
9360
9356
|
gt("div", {
|
|
9361
9357
|
ref_key: "legendContainer",
|
|
@@ -9364,12 +9360,12 @@ const Od = { class: "container" }, Id = { class: "main" }, Fd = /* @__PURE__ */
|
|
|
9364
9360
|
]));
|
|
9365
9361
|
}
|
|
9366
9362
|
});
|
|
9367
|
-
const
|
|
9363
|
+
const $e = (i, t) => {
|
|
9368
9364
|
const e = i.__vccOpts || i;
|
|
9369
9365
|
for (const [n, s] of t)
|
|
9370
9366
|
e[n] = s;
|
|
9371
9367
|
return e;
|
|
9372
|
-
}, an = /* @__PURE__ */
|
|
9368
|
+
}, an = /* @__PURE__ */ $e(Fd, [["__scopeId", "data-v-fae6dcc9"]]);
|
|
9373
9369
|
an.install = (i) => {
|
|
9374
9370
|
i.component("BarChart", an);
|
|
9375
9371
|
};
|
|
@@ -9542,8 +9538,8 @@ const Ed = { class: "container" }, Bd = { class: "main" }, zd = /* @__PURE__ */
|
|
|
9542
9538
|
},
|
|
9543
9539
|
setup(i) {
|
|
9544
9540
|
const t = i;
|
|
9545
|
-
Lt.register(
|
|
9546
|
-
const { colourSets: e, patternsStandardList: n } =
|
|
9541
|
+
Lt.register(He, Ne, We, ge);
|
|
9542
|
+
const { colourSets: e, patternsStandardList: n } = je(), {
|
|
9547
9543
|
onHoverIndex: s,
|
|
9548
9544
|
doughnutRef: o,
|
|
9549
9545
|
getBackgroundColor: a,
|
|
@@ -9574,17 +9570,17 @@ const Ed = { class: "container" }, Bd = { class: "main" }, zd = /* @__PURE__ */
|
|
|
9574
9570
|
}
|
|
9575
9571
|
]
|
|
9576
9572
|
})), b = (S) => {
|
|
9577
|
-
const
|
|
9573
|
+
const M = S.tooltip.dataPoints[0].dataIndex, C = c(
|
|
9578
9574
|
t.data,
|
|
9579
9575
|
t.maxValues
|
|
9580
|
-
)[
|
|
9576
|
+
)[M], P = rt(C.rate), A = rt(C.value), D = C.unit || "";
|
|
9581
9577
|
return `${A}${D} (${P})%`;
|
|
9582
9578
|
};
|
|
9583
9579
|
function y() {
|
|
9584
9580
|
return t.labels.length <= 1 ? 0 : 12;
|
|
9585
9581
|
}
|
|
9586
9582
|
const x = z(() => {
|
|
9587
|
-
const S = m.value,
|
|
9583
|
+
const S = m.value, M = p.value;
|
|
9588
9584
|
return {
|
|
9589
9585
|
onHover: l(),
|
|
9590
9586
|
plugins: {
|
|
@@ -9603,15 +9599,15 @@ const Ed = { class: "container" }, Bd = { class: "main" }, zd = /* @__PURE__ */
|
|
|
9603
9599
|
},
|
|
9604
9600
|
tooltip: {
|
|
9605
9601
|
enabled: !1,
|
|
9606
|
-
external: function(
|
|
9607
|
-
new
|
|
9608
|
-
|
|
9602
|
+
external: function(C) {
|
|
9603
|
+
new Ve().createTooltip(
|
|
9604
|
+
C,
|
|
9609
9605
|
b,
|
|
9610
9606
|
{
|
|
9611
|
-
chartType:
|
|
9607
|
+
chartType: ee.DOUGHNUT
|
|
9612
9608
|
},
|
|
9613
9609
|
S,
|
|
9614
|
-
|
|
9610
|
+
M,
|
|
9615
9611
|
_.value
|
|
9616
9612
|
);
|
|
9617
9613
|
}
|
|
@@ -9626,7 +9622,7 @@ const Ed = { class: "container" }, Bd = { class: "main" }, zd = /* @__PURE__ */
|
|
|
9626
9622
|
}), v = {
|
|
9627
9623
|
data: t.data,
|
|
9628
9624
|
labels: t.labels
|
|
9629
|
-
}, _ = z(() => t.disableAccessibility),
|
|
9625
|
+
}, _ = z(() => t.disableAccessibility), w = z(
|
|
9630
9626
|
() => r(
|
|
9631
9627
|
f,
|
|
9632
9628
|
u,
|
|
@@ -9643,19 +9639,19 @@ const Ed = { class: "container" }, Bd = { class: "main" }, zd = /* @__PURE__ */
|
|
|
9643
9639
|
p.value,
|
|
9644
9640
|
t.disableAccessibility
|
|
9645
9641
|
);
|
|
9646
|
-
}),
|
|
9647
|
-
S !==
|
|
9642
|
+
}), di(s, (S, M) => {
|
|
9643
|
+
S !== M && a(
|
|
9648
9644
|
m.value,
|
|
9649
9645
|
p.value,
|
|
9650
9646
|
t.disableAccessibility
|
|
9651
9647
|
);
|
|
9652
|
-
}),
|
|
9648
|
+
}), di(_, () => {
|
|
9653
9649
|
a(
|
|
9654
9650
|
m.value,
|
|
9655
9651
|
p.value,
|
|
9656
9652
|
t.disableAccessibility
|
|
9657
9653
|
);
|
|
9658
|
-
}), (S,
|
|
9654
|
+
}), (S, M) => (ft(), Ie("div", Ed, [
|
|
9659
9655
|
gt("div", Bd, [
|
|
9660
9656
|
g.value ? (ft(), Fe(Zt(cd), {
|
|
9661
9657
|
key: 0,
|
|
@@ -9664,11 +9660,11 @@ const Ed = { class: "container" }, Bd = { class: "main" }, zd = /* @__PURE__ */
|
|
|
9664
9660
|
id: i.chartId,
|
|
9665
9661
|
data: g.value,
|
|
9666
9662
|
options: x.value,
|
|
9667
|
-
plugins:
|
|
9663
|
+
plugins: w.value,
|
|
9668
9664
|
"max-values": i.maxValues,
|
|
9669
9665
|
class: Re(i.cssClasses),
|
|
9670
|
-
style:
|
|
9671
|
-
}, null, 8, ["id", "data", "options", "plugins", "max-values", "class", "style"])) :
|
|
9666
|
+
style: Qt([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
|
|
9667
|
+
}, null, 8, ["id", "data", "options", "plugins", "max-values", "class", "style"])) : Ee("", !0)
|
|
9672
9668
|
]),
|
|
9673
9669
|
gt("div", {
|
|
9674
9670
|
ref_key: "legendContainer",
|
|
@@ -9677,7 +9673,7 @@ const Ed = { class: "container" }, Bd = { class: "main" }, zd = /* @__PURE__ */
|
|
|
9677
9673
|
]));
|
|
9678
9674
|
}
|
|
9679
9675
|
});
|
|
9680
|
-
const rn = /* @__PURE__ */
|
|
9676
|
+
const rn = /* @__PURE__ */ $e(zd, [["__scopeId", "data-v-9f73f105"]]);
|
|
9681
9677
|
rn.install = (i) => {
|
|
9682
9678
|
i.component("DoughnutChart", rn);
|
|
9683
9679
|
};
|
|
@@ -9787,15 +9783,15 @@ const Wd = { class: "container" }, Hd = { class: "main" }, Nd = /* @__PURE__ */
|
|
|
9787
9783
|
setup(i) {
|
|
9788
9784
|
const t = i;
|
|
9789
9785
|
Lt.register(
|
|
9790
|
-
Ne,
|
|
9791
|
-
Ve,
|
|
9792
9786
|
He,
|
|
9787
|
+
Ne,
|
|
9788
|
+
We,
|
|
9793
9789
|
Kt,
|
|
9794
9790
|
dt,
|
|
9795
9791
|
De,
|
|
9796
9792
|
Le
|
|
9797
9793
|
);
|
|
9798
|
-
const { colourSets: e, patternsStandardList: n } =
|
|
9794
|
+
const { colourSets: e, patternsStandardList: n } = je(), s = X(null), o = X(!1), a = z(
|
|
9799
9795
|
() => t.newPatternsOrder.length !== 6 ? e[t.colourSet] : t.newPatternsOrder.map((g) => e[t.colourSet][g])
|
|
9800
9796
|
), r = t.newPatternsOrder.length !== 6 ? n : t.newPatternsOrder.map((g) => n[g]), l = (g) => {
|
|
9801
9797
|
const b = g.tooltip.dataPoints[0].datasetIndex, y = g.tooltip.dataPoints[0].dataIndex, x = t.lines[b].data[y].toFixed(2);
|
|
@@ -9834,13 +9830,13 @@ const Wd = { class: "container" }, Hd = { class: "main" }, Nd = /* @__PURE__ */
|
|
|
9834
9830
|
for (x.style.display = "flex", x.style.flexDirection = "row", x.style.margin = "1.375rem 1.0625rem"; x.firstChild; )
|
|
9835
9831
|
x.firstChild.remove();
|
|
9836
9832
|
y.options.plugins.legend.labels.generateLabels(y).forEach((_) => {
|
|
9837
|
-
const
|
|
9833
|
+
const w = Ti(
|
|
9838
9834
|
y,
|
|
9839
9835
|
b,
|
|
9840
9836
|
_.datasetIndex
|
|
9841
9837
|
);
|
|
9842
9838
|
let S;
|
|
9843
|
-
b.value ? S = f(y, _) : S = Pn(_
|
|
9839
|
+
b.value ? S = f(y, _) : S = Pn(_), S.style.boxSizing = "border-box", w.style.marginRight = "10px", w.appendChild(S), w.appendChild(Li(_)), x.appendChild(w);
|
|
9844
9840
|
});
|
|
9845
9841
|
}
|
|
9846
9842
|
}
|
|
@@ -9862,11 +9858,11 @@ const Wd = { class: "container" }, Hd = { class: "main" }, Nd = /* @__PURE__ */
|
|
|
9862
9858
|
tooltip: {
|
|
9863
9859
|
enabled: !1,
|
|
9864
9860
|
external: function(g) {
|
|
9865
|
-
new
|
|
9861
|
+
new Ve().createTooltip(
|
|
9866
9862
|
g,
|
|
9867
9863
|
l,
|
|
9868
9864
|
{
|
|
9869
|
-
chartType:
|
|
9865
|
+
chartType: ee.LINE_CHART,
|
|
9870
9866
|
firstLineLabel: c.value,
|
|
9871
9867
|
secondLineLabel: h.value
|
|
9872
9868
|
},
|
|
@@ -9907,8 +9903,8 @@ const Wd = { class: "container" }, Hd = { class: "main" }, Nd = /* @__PURE__ */
|
|
|
9907
9903
|
options: p.value,
|
|
9908
9904
|
plugins: Zt(m),
|
|
9909
9905
|
class: Re(i.cssClasses),
|
|
9910
|
-
style:
|
|
9911
|
-
}, null, 8, ["id", "data", "options", "plugins", "class", "style"])) :
|
|
9906
|
+
style: Qt([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
|
|
9907
|
+
}, null, 8, ["id", "data", "options", "plugins", "class", "style"])) : Ee("", !0)
|
|
9912
9908
|
]),
|
|
9913
9909
|
gt("div", {
|
|
9914
9910
|
ref_key: "legendContainer",
|
|
@@ -9917,7 +9913,7 @@ const Wd = { class: "container" }, Hd = { class: "main" }, Nd = /* @__PURE__ */
|
|
|
9917
9913
|
]));
|
|
9918
9914
|
}
|
|
9919
9915
|
});
|
|
9920
|
-
const ln = /* @__PURE__ */
|
|
9916
|
+
const ln = /* @__PURE__ */ $e(Nd, [["__scopeId", "data-v-d99146c4"]]);
|
|
9921
9917
|
ln.install = (i) => {
|
|
9922
9918
|
i.component("LineChart", ln);
|
|
9923
9919
|
};
|
|
@@ -9946,7 +9942,7 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
|
|
|
9946
9942
|
default:
|
|
9947
9943
|
return "#000000";
|
|
9948
9944
|
}
|
|
9949
|
-
}), $d = { class: "container" }, Yd =
|
|
9945
|
+
}), $d = { class: "container" }, Yd = /* @__PURE__ */ Vt({
|
|
9950
9946
|
__name: "RadarChart",
|
|
9951
9947
|
props: {
|
|
9952
9948
|
/**
|
|
@@ -9961,7 +9957,7 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
|
|
|
9961
9957
|
*/
|
|
9962
9958
|
height: {
|
|
9963
9959
|
type: String,
|
|
9964
|
-
default: "
|
|
9960
|
+
default: "600px"
|
|
9965
9961
|
},
|
|
9966
9962
|
/**
|
|
9967
9963
|
* Labels used to label the index axis (default x axes). See [Data structures documentation](https://www.chartjs.org/docs/latest/general/data-structures.html)
|
|
@@ -10030,15 +10026,15 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
|
|
|
10030
10026
|
setup(i) {
|
|
10031
10027
|
const t = i;
|
|
10032
10028
|
Lt.register(
|
|
10033
|
-
Ne,
|
|
10034
|
-
Ve,
|
|
10035
10029
|
He,
|
|
10036
|
-
|
|
10030
|
+
Ne,
|
|
10031
|
+
We,
|
|
10032
|
+
me,
|
|
10037
10033
|
dt,
|
|
10038
10034
|
Kt,
|
|
10039
10035
|
vh
|
|
10040
10036
|
);
|
|
10041
|
-
const { colourSets: e, patternsStandardList: n } =
|
|
10037
|
+
const { colourSets: e, patternsStandardList: n } = je(), s = z(
|
|
10042
10038
|
() => t.newPatternsOrder.length !== 6 ? e[t.colourSet] : t.newPatternsOrder.map((g) => e[t.colourSet][g])
|
|
10043
10039
|
), o = z(
|
|
10044
10040
|
() => t.newPatternsOrder.length !== 6 ? n : t.newPatternsOrder.map((g) => n[g])
|
|
@@ -10097,10 +10093,10 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
|
|
|
10097
10093
|
enabled: !1,
|
|
10098
10094
|
position: "nearest",
|
|
10099
10095
|
external: function(g) {
|
|
10100
|
-
new
|
|
10096
|
+
new Ve().createTooltip(
|
|
10101
10097
|
g,
|
|
10102
10098
|
p,
|
|
10103
|
-
{ chartType:
|
|
10099
|
+
{ chartType: ee.RADAR },
|
|
10104
10100
|
s.value,
|
|
10105
10101
|
o.value,
|
|
10106
10102
|
t.disableAccessibility
|
|
@@ -10174,7 +10170,7 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
|
|
|
10174
10170
|
x.datasetIndex
|
|
10175
10171
|
);
|
|
10176
10172
|
let _;
|
|
10177
|
-
v.style.marginRight = "0.625rem", c.value ? _ = f(g, x) : _ = Pn(x,
|
|
10173
|
+
v.style.marginRight = "0.625rem", c.value ? _ = f(g, x) : _ = Pn(x, !0), v.appendChild(_), v.appendChild(Li(x)), b.appendChild(v);
|
|
10178
10174
|
});
|
|
10179
10175
|
}
|
|
10180
10176
|
},
|
|
@@ -10189,7 +10185,10 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
|
|
|
10189
10185
|
return x.areaData[y].value.toFixed(2) + " " + x.areaData[y].unit;
|
|
10190
10186
|
};
|
|
10191
10187
|
return (g, b) => (ft(), Ie("div", $d, [
|
|
10192
|
-
gt("div",
|
|
10188
|
+
gt("div", {
|
|
10189
|
+
class: "main",
|
|
10190
|
+
style: Qt({ height: i.height })
|
|
10191
|
+
}, [
|
|
10193
10192
|
a.value ? (ft(), Fe(Zt(dd), {
|
|
10194
10193
|
key: 0,
|
|
10195
10194
|
id: i.chartId,
|
|
@@ -10197,9 +10196,9 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
|
|
|
10197
10196
|
options: r,
|
|
10198
10197
|
plugins: m,
|
|
10199
10198
|
class: Re(i.cssClasses),
|
|
10200
|
-
style:
|
|
10201
|
-
}, null, 8, ["id", "data", "class", "style"])) :
|
|
10202
|
-
]),
|
|
10199
|
+
style: Qt([{ height: i.height, cursor: "pointer" }, i.styles])
|
|
10200
|
+
}, null, 8, ["id", "data", "class", "style"])) : Ee("", !0)
|
|
10201
|
+
], 4),
|
|
10203
10202
|
gt("div", {
|
|
10204
10203
|
ref_key: "legendContainer",
|
|
10205
10204
|
ref: l,
|
|
@@ -10208,7 +10207,7 @@ const jd = (i) => i.datasets[0].areaData.map((t) => {
|
|
|
10208
10207
|
]));
|
|
10209
10208
|
}
|
|
10210
10209
|
});
|
|
10211
|
-
const cn = /* @__PURE__ */
|
|
10210
|
+
const cn = /* @__PURE__ */ $e(Yd, [["__scopeId", "data-v-e59323c3"]]);
|
|
10212
10211
|
cn.install = (i) => {
|
|
10213
10212
|
i.component("RadarChart", cn);
|
|
10214
10213
|
};
|
|
@@ -10219,143 +10218,130 @@ const Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
10219
10218
|
LineChart: ln,
|
|
10220
10219
|
RadarChart: cn
|
|
10221
10220
|
}, Symbol.toStringTag, { value: "Module" })), { getPatternIndexWithShift: Qs } = Di();
|
|
10222
|
-
function
|
|
10221
|
+
function Ud() {
|
|
10223
10222
|
const i = X(2), t = so({
|
|
10224
10223
|
dataSetIndex: -1,
|
|
10225
10224
|
columnIndex: -1
|
|
10226
10225
|
});
|
|
10227
|
-
function e(
|
|
10226
|
+
function e(d, u, f, m, p, g) {
|
|
10228
10227
|
return [
|
|
10229
10228
|
{
|
|
10230
10229
|
id: "htmlLegend",
|
|
10231
|
-
afterUpdate(
|
|
10232
|
-
const
|
|
10233
|
-
|
|
10230
|
+
afterUpdate(b) {
|
|
10231
|
+
const y = Ii(
|
|
10232
|
+
d,
|
|
10234
10233
|
"column"
|
|
10235
10234
|
);
|
|
10236
|
-
for (
|
|
10237
|
-
|
|
10238
|
-
|
|
10239
|
-
const
|
|
10240
|
-
|
|
10241
|
-
|
|
10242
|
-
|
|
10235
|
+
for (y.style.display = "flex", y.style.margin = "1.375rem 1.0625rem", y.style.flexDirection = "row-reverse", y.style.justifyContent = "flex-end"; y.firstChild; )
|
|
10236
|
+
y.firstChild.remove();
|
|
10237
|
+
b.options.plugins.legend.labels.generateLabels(b).forEach((v) => {
|
|
10238
|
+
const _ = Ti(
|
|
10239
|
+
b,
|
|
10240
|
+
u,
|
|
10241
|
+
v.datasetIndex
|
|
10243
10242
|
);
|
|
10244
10243
|
let w;
|
|
10245
|
-
|
|
10244
|
+
u.value ? w = oa(
|
|
10245
|
+
b,
|
|
10246
10246
|
v,
|
|
10247
|
-
|
|
10248
|
-
|
|
10249
|
-
|
|
10250
|
-
|
|
10251
|
-
) : S != null && S.lineCap ? w = Pn(S, g) : w = sa(
|
|
10252
|
-
S,
|
|
10247
|
+
u,
|
|
10248
|
+
-1,
|
|
10249
|
+
m.value
|
|
10250
|
+
) : v != null && v.lineCap ? w = Pn(v) : w = sa(
|
|
10253
10251
|
v,
|
|
10254
|
-
|
|
10255
|
-
|
|
10256
|
-
|
|
10257
|
-
|
|
10258
|
-
|
|
10252
|
+
b,
|
|
10253
|
+
-1,
|
|
10254
|
+
m.value,
|
|
10255
|
+
p.value,
|
|
10256
|
+
g.value
|
|
10257
|
+
), w.style.boxSizing = "border-box", _.style.marginRight = "10px", _.appendChild(w), _.appendChild(Li(v)), y.appendChild(_);
|
|
10259
10258
|
});
|
|
10260
10259
|
}
|
|
10261
10260
|
}
|
|
10262
10261
|
];
|
|
10263
10262
|
}
|
|
10264
|
-
function n(
|
|
10263
|
+
function n(d, u, f, m, p) {
|
|
10265
10264
|
return e(
|
|
10266
|
-
|
|
10267
|
-
|
|
10265
|
+
d,
|
|
10266
|
+
u,
|
|
10268
10267
|
t,
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
|
|
10268
|
+
f,
|
|
10269
|
+
m,
|
|
10270
|
+
p
|
|
10272
10271
|
);
|
|
10273
10272
|
}
|
|
10274
|
-
function s() {
|
|
10275
|
-
|
|
10276
|
-
|
|
10277
|
-
|
|
10278
|
-
|
|
10279
|
-
function o() {
|
|
10280
|
-
t.dataSetIndex = -1, t.columnIndex = -1;
|
|
10281
|
-
}
|
|
10282
|
-
function a() {
|
|
10283
|
-
i.value = 3, i.value = 2;
|
|
10284
|
-
}
|
|
10285
|
-
function r(m, p, g, b, y) {
|
|
10286
|
-
const x = i.value;
|
|
10287
|
-
return m.map((v, _) => ({
|
|
10288
|
-
type: v.type,
|
|
10289
|
-
fill: v.type === "bar" ? null : !1,
|
|
10273
|
+
function s(d, u, f, m, p) {
|
|
10274
|
+
const g = i.value;
|
|
10275
|
+
return d.map((b, y) => ({
|
|
10276
|
+
type: b.type,
|
|
10277
|
+
fill: b.type === "bar" ? null : !1,
|
|
10290
10278
|
borderWidth: function() {
|
|
10291
|
-
return
|
|
10279
|
+
return u ? 1 : g;
|
|
10292
10280
|
},
|
|
10293
|
-
borderColor: function(
|
|
10294
|
-
return
|
|
10295
|
-
|
|
10296
|
-
|
|
10297
|
-
|
|
10298
|
-
|
|
10299
|
-
);
|
|
10281
|
+
borderColor: function(x) {
|
|
10282
|
+
return u ? "#00000000" : b.type === "bar" ? o(
|
|
10283
|
+
y,
|
|
10284
|
+
x.index,
|
|
10285
|
+
f,
|
|
10286
|
+
p
|
|
10287
|
+
) : f[y];
|
|
10300
10288
|
},
|
|
10301
|
-
backgroundColor: function(
|
|
10302
|
-
return
|
|
10303
|
-
|
|
10304
|
-
|
|
10305
|
-
|
|
10306
|
-
|
|
10307
|
-
|
|
10308
|
-
|
|
10289
|
+
backgroundColor: function(x) {
|
|
10290
|
+
return a(
|
|
10291
|
+
y,
|
|
10292
|
+
x.index,
|
|
10293
|
+
u,
|
|
10294
|
+
f,
|
|
10295
|
+
m,
|
|
10296
|
+
p
|
|
10309
10297
|
);
|
|
10310
10298
|
},
|
|
10311
|
-
yAxisID:
|
|
10312
|
-
pointStyle:
|
|
10313
|
-
data:
|
|
10314
|
-
label:
|
|
10299
|
+
yAxisID: b.type === "bar" ? "A" : "B",
|
|
10300
|
+
pointStyle: y % 2 === 0 ? "rectRot" : "circle",
|
|
10301
|
+
data: b.data,
|
|
10302
|
+
label: b.label,
|
|
10315
10303
|
pointBackgroundColor: "#FFFFFF",
|
|
10316
10304
|
pointRadius: 5,
|
|
10317
|
-
order:
|
|
10305
|
+
order: d.length - y
|
|
10318
10306
|
}));
|
|
10319
10307
|
}
|
|
10320
|
-
function
|
|
10321
|
-
const
|
|
10322
|
-
return
|
|
10308
|
+
function o(d, u, f, m) {
|
|
10309
|
+
const p = Qs(d, m);
|
|
10310
|
+
return r(d, u) ? f[p] : Oe(f[p], 0.2);
|
|
10323
10311
|
}
|
|
10324
|
-
function
|
|
10325
|
-
const
|
|
10326
|
-
return
|
|
10312
|
+
function a(d, u, f, m, p, g) {
|
|
10313
|
+
const b = Qs(d, g);
|
|
10314
|
+
return r(d, u) ? p[b](
|
|
10327
10315
|
!1,
|
|
10328
|
-
b
|
|
10329
|
-
|
|
10330
|
-
) :
|
|
10316
|
+
m[b],
|
|
10317
|
+
f
|
|
10318
|
+
) : p[b](
|
|
10331
10319
|
!0,
|
|
10332
|
-
b
|
|
10333
|
-
|
|
10320
|
+
m[b],
|
|
10321
|
+
f
|
|
10334
10322
|
);
|
|
10335
10323
|
}
|
|
10336
|
-
function
|
|
10337
|
-
return
|
|
10324
|
+
function r(d, u) {
|
|
10325
|
+
return l() || c(d, u) || h(d);
|
|
10338
10326
|
}
|
|
10339
|
-
function
|
|
10327
|
+
function l() {
|
|
10340
10328
|
return t.dataSetIndex < 0;
|
|
10341
10329
|
}
|
|
10342
|
-
function
|
|
10343
|
-
return t.dataSetIndex ===
|
|
10330
|
+
function c(d, u) {
|
|
10331
|
+
return t.dataSetIndex === d && t.columnIndex === u;
|
|
10344
10332
|
}
|
|
10345
|
-
function
|
|
10346
|
-
return t.dataSetIndex ===
|
|
10333
|
+
function h(d) {
|
|
10334
|
+
return t.dataSetIndex === d && t.columnIndex < 0;
|
|
10347
10335
|
}
|
|
10348
10336
|
return {
|
|
10349
10337
|
privateGetHtmlLegendPlugin: n,
|
|
10350
|
-
|
|
10351
|
-
|
|
10352
|
-
|
|
10353
|
-
getBorderColor: l,
|
|
10354
|
-
getPattern: c,
|
|
10338
|
+
getMixedDatasets: s,
|
|
10339
|
+
getBorderColor: o,
|
|
10340
|
+
getPattern: a,
|
|
10355
10341
|
onHoverIndex: t
|
|
10356
10342
|
};
|
|
10357
10343
|
}
|
|
10358
|
-
const
|
|
10344
|
+
const Xd = { class: "container" }, Gd = { class: "main" }, qd = /* @__PURE__ */ Vt({
|
|
10359
10345
|
__name: "MixedBarLineChart",
|
|
10360
10346
|
props: {
|
|
10361
10347
|
/**
|
|
@@ -10502,38 +10488,31 @@ const Gd = { class: "container" }, qd = { class: "main" }, Kd = /* @__PURE__ */
|
|
|
10502
10488
|
setup(i) {
|
|
10503
10489
|
const t = i;
|
|
10504
10490
|
Lt.register(
|
|
10505
|
-
Ne,
|
|
10506
|
-
Ve,
|
|
10507
10491
|
He,
|
|
10508
|
-
|
|
10492
|
+
Ne,
|
|
10493
|
+
We,
|
|
10494
|
+
ve,
|
|
10509
10495
|
De,
|
|
10510
10496
|
Le,
|
|
10511
10497
|
dt,
|
|
10512
10498
|
Kt
|
|
10513
10499
|
);
|
|
10514
|
-
const {
|
|
10515
|
-
|
|
10516
|
-
|
|
10517
|
-
|
|
10518
|
-
|
|
10519
|
-
|
|
10520
|
-
|
|
10521
|
-
let v = [];
|
|
10522
|
-
return t.barDatasets && (v = v.concat(t.barDatasets)), t.lineDatasets && (v = v.concat(t.lineDatasets)), v;
|
|
10523
|
-
}), u = z(() => t.newPatternsOrder.length !== l.length ? r[t.colourSet] : t.newPatternsOrder.map((v) => r[t.colourSet][v])), f = z(() => t.newPatternsOrder.length !== l.length ? l : t.newPatternsOrder.map((v) => l[v])), m = z(() => t.disableAccessibility), p = z(() => ({
|
|
10524
|
-
labels: b(),
|
|
10525
|
-
datasets: s(
|
|
10500
|
+
const { privateGetHtmlLegendPlugin: e, getMixedDatasets: n } = Ud(), { colourSets: s, patternsStandardList: o } = je(), a = X(null), r = X(!1), l = z(() => {
|
|
10501
|
+
let b = [];
|
|
10502
|
+
return t.barDatasets && (b = b.concat(t.barDatasets)), t.lineDatasets && (b = b.concat(t.lineDatasets)), b;
|
|
10503
|
+
}), c = z(() => t.newPatternsOrder.length !== o.length ? s[t.colourSet] : t.newPatternsOrder.map((b) => s[t.colourSet][b])), h = z(() => t.newPatternsOrder.length !== o.length ? o : t.newPatternsOrder.map((b) => o[b])), d = z(() => t.disableAccessibility), u = z(() => ({
|
|
10504
|
+
labels: m(),
|
|
10505
|
+
datasets: n(
|
|
10506
|
+
l.value,
|
|
10526
10507
|
d.value,
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
f.value,
|
|
10508
|
+
c.value,
|
|
10509
|
+
h.value,
|
|
10530
10510
|
0
|
|
10531
10511
|
)
|
|
10532
|
-
})),
|
|
10533
|
-
const
|
|
10534
|
-
return
|
|
10535
|
-
},
|
|
10536
|
-
onHover: n(),
|
|
10512
|
+
})), f = (b) => {
|
|
10513
|
+
const y = b.tooltip.dataPoints[0].datasetIndex, x = b.tooltip.dataPoints[0].dataIndex, v = b.tooltip.body[0].lines[0].split(":")[1];
|
|
10514
|
+
return l.value[y].data[x] ? parseFloat(v.replace(",", ".")).toFixed(2) + "%" : "";
|
|
10515
|
+
}, m = () => Object.assign([], t.labels).map((y) => y), p = z(() => ({
|
|
10537
10516
|
type: "scatter",
|
|
10538
10517
|
responsive: !0,
|
|
10539
10518
|
maintainAspectRatio: !0,
|
|
@@ -10551,17 +10530,17 @@ const Gd = { class: "container" }, qd = { class: "main" }, Kd = /* @__PURE__ */
|
|
|
10551
10530
|
},
|
|
10552
10531
|
tooltip: {
|
|
10553
10532
|
enabled: !1,
|
|
10554
|
-
external: function(
|
|
10555
|
-
new
|
|
10556
|
-
|
|
10557
|
-
|
|
10533
|
+
external: function(b) {
|
|
10534
|
+
new Ve().createTooltip(
|
|
10535
|
+
b,
|
|
10536
|
+
f,
|
|
10558
10537
|
{
|
|
10559
|
-
chartType:
|
|
10538
|
+
chartType: ee.MIXED_BAR_LINE_CHART,
|
|
10560
10539
|
firstLineLabel: t.tooltipFirstLineLabel,
|
|
10561
10540
|
secondLineLabel: t.tooltipSecondLineLabel
|
|
10562
10541
|
},
|
|
10563
|
-
|
|
10564
|
-
|
|
10542
|
+
c.value,
|
|
10543
|
+
h.value,
|
|
10565
10544
|
t.disableAccessibility
|
|
10566
10545
|
);
|
|
10567
10546
|
}
|
|
@@ -10587,8 +10566,8 @@ const Gd = { class: "container" }, qd = { class: "main" }, Kd = /* @__PURE__ */
|
|
|
10587
10566
|
text: t.yLeftAxisTitle
|
|
10588
10567
|
},
|
|
10589
10568
|
ticks: {
|
|
10590
|
-
callback: function(
|
|
10591
|
-
return t.unit === "%" ? on(
|
|
10569
|
+
callback: function(b) {
|
|
10570
|
+
return t.unit === "%" ? on(b, t.unit) : rt(b) + " " + t.unit;
|
|
10592
10571
|
}
|
|
10593
10572
|
}
|
|
10594
10573
|
},
|
|
@@ -10604,52 +10583,46 @@ const Gd = { class: "container" }, qd = { class: "main" }, Kd = /* @__PURE__ */
|
|
|
10604
10583
|
text: t.yRightAxisTitle
|
|
10605
10584
|
},
|
|
10606
10585
|
ticks: {
|
|
10607
|
-
callback: function(
|
|
10608
|
-
return t.yRightAxisTitle ? t.unit === "%" ? on(
|
|
10586
|
+
callback: function(b) {
|
|
10587
|
+
return t.yRightAxisTitle ? t.unit === "%" ? on(b, t.unit) : rt(b) + " " + t.unit : null;
|
|
10609
10588
|
}
|
|
10610
10589
|
}
|
|
10611
10590
|
}
|
|
10612
10591
|
}
|
|
10613
|
-
})),
|
|
10592
|
+
})), g = X(
|
|
10614
10593
|
e(
|
|
10594
|
+
a,
|
|
10595
|
+
r,
|
|
10596
|
+
d,
|
|
10615
10597
|
c,
|
|
10616
|
-
h
|
|
10617
|
-
m,
|
|
10618
|
-
u,
|
|
10619
|
-
f
|
|
10598
|
+
h
|
|
10620
10599
|
)
|
|
10621
10600
|
);
|
|
10622
|
-
return
|
|
10623
|
-
|
|
10624
|
-
|
|
10625
|
-
o();
|
|
10626
|
-
},
|
|
10627
|
-
{ deep: !0 }
|
|
10628
|
-
), (v, _) => (ft(), Ie("div", Gd, [
|
|
10629
|
-
gt("div", qd, [
|
|
10630
|
-
p.value ? (ft(), Fe(Zt(ea), {
|
|
10601
|
+
return (b, y) => (ft(), Ie("div", Xd, [
|
|
10602
|
+
gt("div", Gd, [
|
|
10603
|
+
u.value ? (ft(), Fe(Zt(ea), {
|
|
10631
10604
|
key: 0,
|
|
10632
10605
|
ref: "mixedBarLineChartRef",
|
|
10633
10606
|
id: i.chartId,
|
|
10634
|
-
data:
|
|
10635
|
-
options:
|
|
10636
|
-
plugins:
|
|
10607
|
+
data: u.value,
|
|
10608
|
+
options: p.value,
|
|
10609
|
+
plugins: g.value,
|
|
10637
10610
|
class: Re(i.cssClasses),
|
|
10638
|
-
style:
|
|
10639
|
-
}, null, 8, ["id", "data", "options", "plugins", "class", "style"])) :
|
|
10611
|
+
style: Qt([{ width: i.width, height: i.height, cursor: "pointer" }, i.styles])
|
|
10612
|
+
}, null, 8, ["id", "data", "options", "plugins", "class", "style"])) : Ee("", !0)
|
|
10640
10613
|
]),
|
|
10641
10614
|
gt("div", {
|
|
10642
10615
|
ref_key: "legendContainer",
|
|
10643
|
-
ref:
|
|
10616
|
+
ref: a
|
|
10644
10617
|
}, null, 512)
|
|
10645
10618
|
]));
|
|
10646
10619
|
}
|
|
10647
10620
|
});
|
|
10648
|
-
const Js = /* @__PURE__ */
|
|
10621
|
+
const Js = /* @__PURE__ */ $e(qd, [["__scopeId", "data-v-86ba8aab"]]);
|
|
10649
10622
|
Js.install = (i) => {
|
|
10650
10623
|
i.component("MixedBarLineChart", Js);
|
|
10651
10624
|
};
|
|
10652
|
-
const
|
|
10625
|
+
const Jd = {
|
|
10653
10626
|
install: (i, t) => {
|
|
10654
10627
|
Object.keys(Zs).forEach((e) => {
|
|
10655
10628
|
i.component(e, Zs[e]);
|
|
@@ -10662,5 +10635,5 @@ export {
|
|
|
10662
10635
|
ln as LineChart,
|
|
10663
10636
|
Js as MixedBarLineChart,
|
|
10664
10637
|
cn as RadarChart,
|
|
10665
|
-
|
|
10638
|
+
Jd as default
|
|
10666
10639
|
};
|