anarock-widgets 1.0.27 → 1.0.29
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/anarock-widgets.css +1 -1
- package/dist/index.cjs.js +9 -9
- package/dist/index.es.js +568 -590
- package/dist/index.umd.js +14 -14
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5388,7 +5388,7 @@ function Ck(e) {
|
|
|
5388
5388
|
function kk(e) {
|
|
5389
5389
|
return Ne({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z" }, child: [] }] })(e);
|
|
5390
5390
|
}
|
|
5391
|
-
function
|
|
5391
|
+
function oU({ title: e, description: t }) {
|
|
5392
5392
|
return /* @__PURE__ */ y.jsxs("div", { className: "flex items-center justify-between px-6 my-6", children: [
|
|
5393
5393
|
/* @__PURE__ */ y.jsxs("div", { children: [
|
|
5394
5394
|
/* @__PURE__ */ y.jsx("div", { className: "!text-[24px] text-[#121212] font-semibold", children: e }),
|
|
@@ -5458,7 +5458,7 @@ const Nk = [
|
|
|
5458
5458
|
{ name: "Helpdesk", icon: Tk },
|
|
5459
5459
|
{ name: "Engagement", icon: N1 }
|
|
5460
5460
|
];
|
|
5461
|
-
function
|
|
5461
|
+
function sU() {
|
|
5462
5462
|
const [e, t] = It("Overview");
|
|
5463
5463
|
return /* @__PURE__ */ y.jsx("div", { className: "flex gap-[8px] p-3", children: Nk.map((r) => {
|
|
5464
5464
|
const n = r.icon, i = e === r.name;
|
|
@@ -5509,7 +5509,7 @@ const Mg = ({ color: e }) => /* @__PURE__ */ y.jsx(
|
|
|
5509
5509
|
className: `w-fit p-1 rounded text-[10px] leading-[14px] font-medium flex items-center gap-1 ${r ? "bg-[#F7FEFA] text-[#1FA05B]" : "bg-[#FFF2F2] text-[#AB0000]"}`,
|
|
5510
5510
|
children: [
|
|
5511
5511
|
r ? /* @__PURE__ */ y.jsx(Ek, {}) : /* @__PURE__ */ y.jsx(Pk, {}),
|
|
5512
|
-
t.toFixed(1),
|
|
5512
|
+
Math.abs(t).toFixed(1),
|
|
5513
5513
|
"%"
|
|
5514
5514
|
]
|
|
5515
5515
|
}
|
|
@@ -10521,8 +10521,8 @@ var ft = D([cn, un, i_, PD, ED, CD, kD, TD, Aw, IM], (e, t, r, n, i, a, o, s, l,
|
|
|
10521
10521
|
}
|
|
10522
10522
|
}
|
|
10523
10523
|
}), {
|
|
10524
|
-
setLegendSize:
|
|
10525
|
-
setLegendSettings:
|
|
10524
|
+
setLegendSize: lU,
|
|
10525
|
+
setLegendSettings: cU,
|
|
10526
10526
|
addLegendPayload: f_,
|
|
10527
10527
|
removeLegendPayload: d_
|
|
10528
10528
|
} = u_.actions, ID = u_.reducer;
|
|
@@ -16144,7 +16144,7 @@ var Q$ = {
|
|
|
16144
16144
|
}), {
|
|
16145
16145
|
setChartData: E0,
|
|
16146
16146
|
setDataStartEndIndexes: eL,
|
|
16147
|
-
setComputedData:
|
|
16147
|
+
setComputedData: uU
|
|
16148
16148
|
} = ES.actions, tL = ES.reducer, rL = ["x", "y"];
|
|
16149
16149
|
function C0(e, t) {
|
|
16150
16150
|
var r = Object.keys(e);
|
|
@@ -17638,10 +17638,10 @@ var DF = {
|
|
|
17638
17638
|
}
|
|
17639
17639
|
}
|
|
17640
17640
|
}), {
|
|
17641
|
-
addRadiusAxis:
|
|
17642
|
-
removeRadiusAxis:
|
|
17643
|
-
addAngleAxis:
|
|
17644
|
-
removeAngleAxis:
|
|
17641
|
+
addRadiusAxis: fU,
|
|
17642
|
+
removeRadiusAxis: dU,
|
|
17643
|
+
addAngleAxis: hU,
|
|
17644
|
+
removeAngleAxis: pU
|
|
17645
17645
|
} = VS.actions, NF = VS.reducer;
|
|
17646
17646
|
function eb(e, t) {
|
|
17647
17647
|
var r = Object.keys(e);
|
|
@@ -18625,8 +18625,8 @@ var K6 = {
|
|
|
18625
18625
|
removeXAxis: Y6,
|
|
18626
18626
|
addYAxis: G6,
|
|
18627
18627
|
removeYAxis: X6,
|
|
18628
|
-
addZAxis:
|
|
18629
|
-
removeZAxis:
|
|
18628
|
+
addZAxis: mU,
|
|
18629
|
+
removeZAxis: gU,
|
|
18630
18630
|
updateYAxisWidth: Z6
|
|
18631
18631
|
} = XS.actions, J6 = XS.reducer, Q6 = D([ft], (e) => {
|
|
18632
18632
|
if (e)
|
|
@@ -18858,9 +18858,9 @@ var mB = function(t) {
|
|
|
18858
18858
|
}
|
|
18859
18859
|
}
|
|
18860
18860
|
}), {
|
|
18861
|
-
addErrorBar:
|
|
18862
|
-
replaceErrorBar:
|
|
18863
|
-
removeErrorBar:
|
|
18861
|
+
addErrorBar: vU,
|
|
18862
|
+
replaceErrorBar: yU,
|
|
18863
|
+
removeErrorBar: bU
|
|
18864
18864
|
} = ZS.actions, vB = ZS.reducer, yB = ["children"];
|
|
18865
18865
|
function bB(e, t) {
|
|
18866
18866
|
if (e == null) return {};
|
|
@@ -19667,7 +19667,7 @@ var l3 = (e, t, r, n, i, a, o) => {
|
|
|
19667
19667
|
}
|
|
19668
19668
|
}
|
|
19669
19669
|
}), {
|
|
19670
|
-
setBrushSettings:
|
|
19670
|
+
setBrushSettings: xU
|
|
19671
19671
|
} = iO.actions, y3 = iO.reducer;
|
|
19672
19672
|
function b3(e, t, r) {
|
|
19673
19673
|
return (t = x3(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
@@ -19782,12 +19782,12 @@ var S3 = function(t) {
|
|
|
19782
19782
|
}
|
|
19783
19783
|
}
|
|
19784
19784
|
}), {
|
|
19785
|
-
addDot:
|
|
19786
|
-
removeDot:
|
|
19787
|
-
addArea:
|
|
19788
|
-
removeArea:
|
|
19789
|
-
addLine:
|
|
19790
|
-
removeLine:
|
|
19785
|
+
addDot: wU,
|
|
19786
|
+
removeDot: _U,
|
|
19787
|
+
addArea: SU,
|
|
19788
|
+
removeArea: OU,
|
|
19789
|
+
addLine: AU,
|
|
19790
|
+
removeLine: PU
|
|
19791
19791
|
} = aO.actions, A3 = aO.reducer, P3 = /* @__PURE__ */ gr(void 0), E3 = (e) => {
|
|
19792
19792
|
var {
|
|
19793
19793
|
children: t
|
|
@@ -22572,15 +22572,7 @@ var c7 = {
|
|
|
22572
22572
|
ref: t
|
|
22573
22573
|
});
|
|
22574
22574
|
});
|
|
22575
|
-
|
|
22576
|
-
thisMonthMoveIns: 45,
|
|
22577
|
-
thisMonthMoveOuts: 30,
|
|
22578
|
-
lastMonthMoveIns: 38,
|
|
22579
|
-
lastMonthMoveOuts: 35,
|
|
22580
|
-
moveInPercentChange: 18.4,
|
|
22581
|
-
moveOutPercentChange: -14.3
|
|
22582
|
-
};
|
|
22583
|
-
function TU({ isStatic: e, data: t = p7 }) {
|
|
22575
|
+
function EU({ isStatic: e, data: t }) {
|
|
22584
22576
|
const r = Number(t?.thisMonthMoveIns ?? t?.lastMonthMoveIns ?? 0), n = Number(
|
|
22585
22577
|
t?.thisMonthMoveOuts ?? t?.lastMonthMoveOuts ?? 0
|
|
22586
22578
|
), i = Number(
|
|
@@ -22638,13 +22630,7 @@ function TU({ isStatic: e, data: t = p7 }) {
|
|
|
22638
22630
|
}
|
|
22639
22631
|
);
|
|
22640
22632
|
}
|
|
22641
|
-
|
|
22642
|
-
total_notices: 12,
|
|
22643
|
-
total_topics: 45,
|
|
22644
|
-
total_polls: 8,
|
|
22645
|
-
total_surveys: 5
|
|
22646
|
-
};
|
|
22647
|
-
function MU({ isStatic: e, data: t = m7 }) {
|
|
22633
|
+
function CU({ isStatic: e, data: t }) {
|
|
22648
22634
|
const r = ["#8B5CF6", "#22C55E", "#3B82F6", "#F59E0B"], n = [
|
|
22649
22635
|
{
|
|
22650
22636
|
name: "Notice",
|
|
@@ -22725,16 +22711,16 @@ function MU({ isStatic: e, data: t = m7 }) {
|
|
|
22725
22711
|
}
|
|
22726
22712
|
);
|
|
22727
22713
|
}
|
|
22728
|
-
function
|
|
22714
|
+
function p7(e) {
|
|
22729
22715
|
if (!e) return 0;
|
|
22730
22716
|
const [t, r] = e.split(" ");
|
|
22731
22717
|
let [n, i] = t.split(":").map(Number);
|
|
22732
22718
|
return r === "PM" && n !== 12 && (n += 12), r === "AM" && n === 12 && (n = 0), n * 60 + i;
|
|
22733
22719
|
}
|
|
22734
|
-
function
|
|
22720
|
+
function m7(e) {
|
|
22735
22721
|
return Array.from({ length: 24 }, (n, i) => i).map((n) => {
|
|
22736
22722
|
const i = e.find((l) => {
|
|
22737
|
-
const c =
|
|
22723
|
+
const c = p7(l.slot_start_time);
|
|
22738
22724
|
return Math.floor(c / 60) === n;
|
|
22739
22725
|
}), a = n >= 12 ? "PM" : "AM";
|
|
22740
22726
|
return {
|
|
@@ -22745,8 +22731,8 @@ function v7(e) {
|
|
|
22745
22731
|
};
|
|
22746
22732
|
});
|
|
22747
22733
|
}
|
|
22748
|
-
function
|
|
22749
|
-
const r = Number(t?.totalBookings || 0), n = Number(t?.totalSlots || 0), i = Number(t?.utilizationRate || 0), a = zr(() => t?.slots?.length ?
|
|
22734
|
+
function kU({ isStatic: e, data: t }) {
|
|
22735
|
+
const r = Number(t?.totalBookings || 0), n = Number(t?.totalSlots || 0), i = Number(t?.utilizationRate || 0), a = zr(() => t?.slots?.length ? m7(t.slots) : [], [t]), o = (u) => ["1 AM", "6 AM", "11 AM", "5 PM", "10 PM"].includes(u) ? u : "", s = a.length > 0 ? Math.max(...a.map((u) => u.total), 5) : 5;
|
|
22750
22736
|
function l(u) {
|
|
22751
22737
|
const f = u >= 12 ? "PM" : "AM";
|
|
22752
22738
|
let d = u % 12;
|
|
@@ -22874,7 +22860,7 @@ function jU({ isStatic: e, data: t }) {
|
|
|
22874
22860
|
}
|
|
22875
22861
|
);
|
|
22876
22862
|
}
|
|
22877
|
-
function
|
|
22863
|
+
function TU({ data: e }) {
|
|
22878
22864
|
const t = e?.incomeSummary || {}, r = e?.expenditureSummary || {}, n = ["AED", "USD", "EUR"], i = ["Rs", "INR", "₹"];
|
|
22879
22865
|
function a(s) {
|
|
22880
22866
|
if (s == null || isNaN(s)) return "0";
|
|
@@ -22928,29 +22914,29 @@ function DU({ data: e }) {
|
|
|
22928
22914
|
}
|
|
22929
22915
|
);
|
|
22930
22916
|
}
|
|
22931
|
-
function
|
|
22917
|
+
function g7(e) {
|
|
22932
22918
|
const t = e >= 12 ? "PM" : "AM";
|
|
22933
22919
|
let r = e % 12;
|
|
22934
22920
|
return r === 0 && (r = 12), `${r} ${t}`;
|
|
22935
22921
|
}
|
|
22936
|
-
function
|
|
22922
|
+
function v7(e) {
|
|
22937
22923
|
return Array.from({ length: 24 }, (t, r) => {
|
|
22938
22924
|
const n = e.find((i) => i.hour === r) || {};
|
|
22939
22925
|
return {
|
|
22940
22926
|
hour: r,
|
|
22941
|
-
time:
|
|
22927
|
+
time: g7(r),
|
|
22942
22928
|
walkins: n.walkins ?? 0,
|
|
22943
22929
|
checkins: n.preApproved ?? 0,
|
|
22944
22930
|
staffAttendance: n.staffAttendance ?? 0
|
|
22945
22931
|
};
|
|
22946
22932
|
});
|
|
22947
22933
|
}
|
|
22948
|
-
function
|
|
22934
|
+
function MU({ isStatic: e, data: t }) {
|
|
22949
22935
|
const r = {
|
|
22950
22936
|
walkins: "#1FA05B",
|
|
22951
22937
|
preApproved: "#E7A015",
|
|
22952
22938
|
staffAttendance: "#329DFF"
|
|
22953
|
-
}, n = t?.summary?.activeWalkins || {}, i = t?.summary?.preApprovedCheckins || {}, a = t?.summary?.staffAttendance || {}, o =
|
|
22939
|
+
}, n = t?.summary?.activeWalkins || {}, i = t?.summary?.preApprovedCheckins || {}, a = t?.summary?.staffAttendance || {}, o = v7(t?.chart || []), s = Math.max(
|
|
22954
22940
|
...o.flatMap((u) => [u.walkins, u.checkins, u.staffAttendance])
|
|
22955
22941
|
), l = s > 0 ? s : 5, c = [0, Math.ceil(l / 2), l];
|
|
22956
22942
|
return /* @__PURE__ */ y.jsx(
|
|
@@ -23063,15 +23049,7 @@ function NU({ isStatic: e, data: t }) {
|
|
|
23063
23049
|
}
|
|
23064
23050
|
);
|
|
23065
23051
|
}
|
|
23066
|
-
|
|
23067
|
-
today_open_complaints: 42,
|
|
23068
|
-
percent_change: "-12%",
|
|
23069
|
-
today_L1: 15,
|
|
23070
|
-
today_L2: 10,
|
|
23071
|
-
today_L3: 12,
|
|
23072
|
-
today_L4: 5
|
|
23073
|
-
};
|
|
23074
|
-
function IU({ isStatic: e, data: t = x7 }) {
|
|
23052
|
+
function jU({ isStatic: e, data: t }) {
|
|
23075
23053
|
const r = ["#1FA05B", "#E7A015", "#FA7E28", "#EF4444", "#CBD5E1"], n = [
|
|
23076
23054
|
{ name: "L1 Level", value: Number(t?.today_L1 || 0), color: r[0] },
|
|
23077
23055
|
{ name: "L2 Level", value: Number(t?.today_L2 || 0), color: r[1] },
|
|
@@ -23138,8 +23116,8 @@ function qr(e) {
|
|
|
23138
23116
|
function jb(e) {
|
|
23139
23117
|
return bn(qo(e * 100), 0, 100);
|
|
23140
23118
|
}
|
|
23141
|
-
const lr = { 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 }, Gd = [..."0123456789ABCDEF"],
|
|
23142
|
-
function
|
|
23119
|
+
const lr = { 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 }, Gd = [..."0123456789ABCDEF"], y7 = (e) => Gd[e & 15], b7 = (e) => Gd[(e & 240) >> 4] + Gd[e & 15], Ss = (e) => (e & 240) >> 4 === (e & 15), x7 = (e) => Ss(e.r) && Ss(e.g) && Ss(e.b) && Ss(e.a);
|
|
23120
|
+
function w7(e) {
|
|
23143
23121
|
var t = e.length, r;
|
|
23144
23122
|
return e[0] === "#" && (t === 4 || t === 5 ? r = {
|
|
23145
23123
|
r: 255 & lr[e[1]] * 17,
|
|
@@ -23153,34 +23131,34 @@ function O7(e) {
|
|
|
23153
23131
|
a: t === 9 ? lr[e[7]] << 4 | lr[e[8]] : 255
|
|
23154
23132
|
})), r;
|
|
23155
23133
|
}
|
|
23156
|
-
const
|
|
23157
|
-
function
|
|
23158
|
-
var t =
|
|
23159
|
-
return e ? "#" + t(e.r) + t(e.g) + t(e.b) +
|
|
23134
|
+
const _7 = (e, t) => e < 255 ? t(e) : "";
|
|
23135
|
+
function S7(e) {
|
|
23136
|
+
var t = x7(e) ? y7 : b7;
|
|
23137
|
+
return e ? "#" + t(e.r) + t(e.g) + t(e.b) + _7(e.a, t) : void 0;
|
|
23160
23138
|
}
|
|
23161
|
-
const
|
|
23139
|
+
const O7 = /^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;
|
|
23162
23140
|
function TO(e, t, r) {
|
|
23163
23141
|
const n = t * Math.min(r, 1 - r), i = (a, o = (a + e / 30) % 12) => r - n * Math.max(Math.min(o - 3, 9 - o, 1), -1);
|
|
23164
23142
|
return [i(0), i(8), i(4)];
|
|
23165
23143
|
}
|
|
23166
|
-
function
|
|
23144
|
+
function A7(e, t, r) {
|
|
23167
23145
|
const n = (i, a = (i + e / 60) % 6) => r - r * t * Math.max(Math.min(a, 4 - a, 1), 0);
|
|
23168
23146
|
return [n(5), n(3), n(1)];
|
|
23169
23147
|
}
|
|
23170
|
-
function
|
|
23148
|
+
function P7(e, t, r) {
|
|
23171
23149
|
const n = TO(e, 1, 0.5);
|
|
23172
23150
|
let i;
|
|
23173
23151
|
for (t + r > 1 && (i = 1 / (t + r), t *= i, r *= i), i = 0; i < 3; i++)
|
|
23174
23152
|
n[i] *= 1 - t - r, n[i] += t;
|
|
23175
23153
|
return n;
|
|
23176
23154
|
}
|
|
23177
|
-
function
|
|
23155
|
+
function E7(e, t, r, n, i) {
|
|
23178
23156
|
return e === i ? (t - r) / n + (t < r ? 6 : 0) : t === i ? (r - e) / n + 2 : (e - t) / n + 4;
|
|
23179
23157
|
}
|
|
23180
23158
|
function om(e) {
|
|
23181
23159
|
const r = e.r / 255, n = e.g / 255, i = e.b / 255, a = Math.max(r, n, i), o = Math.min(r, n, i), s = (a + o) / 2;
|
|
23182
23160
|
let l, c, u;
|
|
23183
|
-
return a !== o && (u = a - o, c = s > 0.5 ? u / (2 - a - o) : u / (a + o), l =
|
|
23161
|
+
return a !== o && (u = a - o, c = s > 0.5 ? u / (2 - a - o) : u / (a + o), l = E7(r, n, i, u, a), l = l * 60 + 0.5), [l | 0, c || 0, s];
|
|
23184
23162
|
}
|
|
23185
23163
|
function sm(e, t, r, n) {
|
|
23186
23164
|
return (Array.isArray(t) ? e(t[0], t[1], t[2]) : e(t, r, n)).map(On);
|
|
@@ -23188,34 +23166,34 @@ function sm(e, t, r, n) {
|
|
|
23188
23166
|
function lm(e, t, r) {
|
|
23189
23167
|
return sm(TO, e, t, r);
|
|
23190
23168
|
}
|
|
23191
|
-
function
|
|
23192
|
-
return sm(
|
|
23169
|
+
function C7(e, t, r) {
|
|
23170
|
+
return sm(P7, e, t, r);
|
|
23193
23171
|
}
|
|
23194
|
-
function
|
|
23195
|
-
return sm(
|
|
23172
|
+
function k7(e, t, r) {
|
|
23173
|
+
return sm(A7, e, t, r);
|
|
23196
23174
|
}
|
|
23197
23175
|
function MO(e) {
|
|
23198
23176
|
return (e % 360 + 360) % 360;
|
|
23199
23177
|
}
|
|
23200
|
-
function
|
|
23201
|
-
const t =
|
|
23178
|
+
function T7(e) {
|
|
23179
|
+
const t = O7.exec(e);
|
|
23202
23180
|
let r = 255, n;
|
|
23203
23181
|
if (!t)
|
|
23204
23182
|
return;
|
|
23205
23183
|
t[5] !== n && (r = t[6] ? Ba(+t[5]) : On(+t[5]));
|
|
23206
23184
|
const i = MO(+t[2]), a = +t[3] / 100, o = +t[4] / 100;
|
|
23207
|
-
return t[1] === "hwb" ? n =
|
|
23185
|
+
return t[1] === "hwb" ? n = C7(i, a, o) : t[1] === "hsv" ? n = k7(i, a, o) : n = lm(i, a, o), {
|
|
23208
23186
|
r: n[0],
|
|
23209
23187
|
g: n[1],
|
|
23210
23188
|
b: n[2],
|
|
23211
23189
|
a: r
|
|
23212
23190
|
};
|
|
23213
23191
|
}
|
|
23214
|
-
function
|
|
23192
|
+
function M7(e, t) {
|
|
23215
23193
|
var r = om(e);
|
|
23216
23194
|
r[0] = MO(r[0] + t), r = lm(r), e.r = r[0], e.g = r[1], e.b = r[2];
|
|
23217
23195
|
}
|
|
23218
|
-
function
|
|
23196
|
+
function j7(e) {
|
|
23219
23197
|
if (!e)
|
|
23220
23198
|
return;
|
|
23221
23199
|
const t = om(e), r = t[0], n = jb(t[1]), i = jb(t[2]);
|
|
@@ -23399,7 +23377,7 @@ const Db = {
|
|
|
23399
23377
|
Lw: "ffff00",
|
|
23400
23378
|
LwgYF: "9acd32"
|
|
23401
23379
|
};
|
|
23402
|
-
function
|
|
23380
|
+
function D7() {
|
|
23403
23381
|
const e = {}, t = Object.keys(Nb), r = Object.keys(Db);
|
|
23404
23382
|
let n, i, a, o, s;
|
|
23405
23383
|
for (n = 0; n < t.length; n++) {
|
|
@@ -23410,8 +23388,8 @@ function R7() {
|
|
|
23410
23388
|
return e;
|
|
23411
23389
|
}
|
|
23412
23390
|
let Os;
|
|
23413
|
-
function
|
|
23414
|
-
Os || (Os =
|
|
23391
|
+
function N7(e) {
|
|
23392
|
+
Os || (Os = D7(), Os.transparent = [0, 0, 0, 0]);
|
|
23415
23393
|
const t = Os[e.toLowerCase()];
|
|
23416
23394
|
return t && {
|
|
23417
23395
|
r: t[0],
|
|
@@ -23420,9 +23398,9 @@ function $7(e) {
|
|
|
23420
23398
|
a: t.length === 4 ? t[3] : 255
|
|
23421
23399
|
};
|
|
23422
23400
|
}
|
|
23423
|
-
const
|
|
23424
|
-
function
|
|
23425
|
-
const t =
|
|
23401
|
+
const I7 = /^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;
|
|
23402
|
+
function R7(e) {
|
|
23403
|
+
const t = I7.exec(e);
|
|
23426
23404
|
let r = 255, n, i, a;
|
|
23427
23405
|
if (t) {
|
|
23428
23406
|
if (t[7] !== n) {
|
|
@@ -23437,11 +23415,11 @@ function F7(e) {
|
|
|
23437
23415
|
};
|
|
23438
23416
|
}
|
|
23439
23417
|
}
|
|
23440
|
-
function
|
|
23418
|
+
function $7(e) {
|
|
23441
23419
|
return e && (e.a < 255 ? `rgba(${e.r}, ${e.g}, ${e.b}, ${qr(e.a)})` : `rgb(${e.r}, ${e.g}, ${e.b})`);
|
|
23442
23420
|
}
|
|
23443
23421
|
const $f = (e) => e <= 31308e-7 ? e * 12.92 : Math.pow(e, 1 / 2.4) * 1.055 - 0.055, Ri = (e) => e <= 0.04045 ? e / 12.92 : Math.pow((e + 0.055) / 1.055, 2.4);
|
|
23444
|
-
function
|
|
23422
|
+
function L7(e, t, r) {
|
|
23445
23423
|
const n = Ri(qr(e.r)), i = Ri(qr(e.g)), a = Ri(qr(e.b));
|
|
23446
23424
|
return {
|
|
23447
23425
|
r: On($f(n + r * (Ri(qr(t.r)) - n))),
|
|
@@ -23463,8 +23441,8 @@ function Ib(e) {
|
|
|
23463
23441
|
var t = { r: 0, g: 0, b: 0, a: 255 };
|
|
23464
23442
|
return Array.isArray(e) ? e.length >= 3 && (t = { r: e[0], g: e[1], b: e[2], a: 255 }, e.length > 3 && (t.a = On(e[3]))) : (t = jO(e, { r: 0, g: 0, b: 0, a: 1 }), t.a = On(t.a)), t;
|
|
23465
23443
|
}
|
|
23466
|
-
function
|
|
23467
|
-
return e.charAt(0) === "r" ?
|
|
23444
|
+
function F7(e) {
|
|
23445
|
+
return e.charAt(0) === "r" ? R7(e) : T7(e);
|
|
23468
23446
|
}
|
|
23469
23447
|
class po {
|
|
23470
23448
|
constructor(t) {
|
|
@@ -23472,7 +23450,7 @@ class po {
|
|
|
23472
23450
|
return t;
|
|
23473
23451
|
const r = typeof t;
|
|
23474
23452
|
let n;
|
|
23475
|
-
r === "object" ? n = Ib(t) : r === "string" && (n =
|
|
23453
|
+
r === "object" ? n = Ib(t) : r === "string" && (n = w7(t) || N7(t) || F7(t)), this._rgb = n, this._valid = !!n;
|
|
23476
23454
|
}
|
|
23477
23455
|
get valid() {
|
|
23478
23456
|
return this._valid;
|
|
@@ -23485,13 +23463,13 @@ class po {
|
|
|
23485
23463
|
this._rgb = Ib(t);
|
|
23486
23464
|
}
|
|
23487
23465
|
rgbString() {
|
|
23488
|
-
return this._valid ?
|
|
23466
|
+
return this._valid ? $7(this._rgb) : void 0;
|
|
23489
23467
|
}
|
|
23490
23468
|
hexString() {
|
|
23491
|
-
return this._valid ?
|
|
23469
|
+
return this._valid ? S7(this._rgb) : void 0;
|
|
23492
23470
|
}
|
|
23493
23471
|
hslString() {
|
|
23494
|
-
return this._valid ?
|
|
23472
|
+
return this._valid ? j7(this._rgb) : void 0;
|
|
23495
23473
|
}
|
|
23496
23474
|
mix(t, r) {
|
|
23497
23475
|
if (t) {
|
|
@@ -23503,7 +23481,7 @@ class po {
|
|
|
23503
23481
|
return this;
|
|
23504
23482
|
}
|
|
23505
23483
|
interpolate(t, r) {
|
|
23506
|
-
return t && (this._rgb =
|
|
23484
|
+
return t && (this._rgb = L7(this._rgb, t._rgb, r)), this;
|
|
23507
23485
|
}
|
|
23508
23486
|
clone() {
|
|
23509
23487
|
return new po(this.rgb);
|
|
@@ -23540,7 +23518,7 @@ class po {
|
|
|
23540
23518
|
return As(this._rgb, 1, -t), this;
|
|
23541
23519
|
}
|
|
23542
23520
|
rotate(t) {
|
|
23543
|
-
return
|
|
23521
|
+
return M7(this._rgb, t), this;
|
|
23544
23522
|
}
|
|
23545
23523
|
}
|
|
23546
23524
|
/*!
|
|
@@ -23551,7 +23529,7 @@ class po {
|
|
|
23551
23529
|
*/
|
|
23552
23530
|
function Hr() {
|
|
23553
23531
|
}
|
|
23554
|
-
const
|
|
23532
|
+
const B7 = /* @__PURE__ */ (() => {
|
|
23555
23533
|
let e = 0;
|
|
23556
23534
|
return () => e++;
|
|
23557
23535
|
})();
|
|
@@ -23576,7 +23554,7 @@ function Cr(e, t) {
|
|
|
23576
23554
|
function oe(e, t) {
|
|
23577
23555
|
return typeof e > "u" ? t : e;
|
|
23578
23556
|
}
|
|
23579
|
-
const
|
|
23557
|
+
const z7 = (e, t) => typeof e == "string" && e.endsWith("%") ? parseFloat(e) / 100 : +e / t, DO = (e, t) => typeof e == "string" && e.endsWith("%") ? parseFloat(e) / 100 * t : +e;
|
|
23580
23558
|
function $e(e, t, r) {
|
|
23581
23559
|
if (e && typeof e.call == "function")
|
|
23582
23560
|
return e.apply(r, t);
|
|
@@ -23618,7 +23596,7 @@ function NO(e) {
|
|
|
23618
23596
|
"constructor"
|
|
23619
23597
|
].indexOf(e) === -1;
|
|
23620
23598
|
}
|
|
23621
|
-
function
|
|
23599
|
+
function W7(e, t, r, n) {
|
|
23622
23600
|
if (!NO(e))
|
|
23623
23601
|
return;
|
|
23624
23602
|
const i = t[e], a = r[e];
|
|
@@ -23631,7 +23609,7 @@ function mo(e, t, r) {
|
|
|
23631
23609
|
if (!fe(e))
|
|
23632
23610
|
return e;
|
|
23633
23611
|
r = r || {};
|
|
23634
|
-
const a = r.merger ||
|
|
23612
|
+
const a = r.merger || W7;
|
|
23635
23613
|
let o;
|
|
23636
23614
|
for (let s = 0; s < i; ++s) {
|
|
23637
23615
|
if (o = n[s], !fe(o))
|
|
@@ -23644,10 +23622,10 @@ function mo(e, t, r) {
|
|
|
23644
23622
|
}
|
|
23645
23623
|
function Ka(e, t) {
|
|
23646
23624
|
return mo(e, t, {
|
|
23647
|
-
merger:
|
|
23625
|
+
merger: V7
|
|
23648
23626
|
});
|
|
23649
23627
|
}
|
|
23650
|
-
function
|
|
23628
|
+
function V7(e, t, r) {
|
|
23651
23629
|
if (!NO(e))
|
|
23652
23630
|
return;
|
|
23653
23631
|
const n = t[e], i = r[e];
|
|
@@ -23660,15 +23638,15 @@ const Rb = {
|
|
|
23660
23638
|
x: (e) => e.x,
|
|
23661
23639
|
y: (e) => e.y
|
|
23662
23640
|
};
|
|
23663
|
-
function
|
|
23641
|
+
function H7(e) {
|
|
23664
23642
|
const t = e.split("."), r = [];
|
|
23665
23643
|
let n = "";
|
|
23666
23644
|
for (const i of t)
|
|
23667
23645
|
n += i, n.endsWith("\\") ? n = n.slice(0, -1) + "." : (r.push(n), n = "");
|
|
23668
23646
|
return r;
|
|
23669
23647
|
}
|
|
23670
|
-
function
|
|
23671
|
-
const t =
|
|
23648
|
+
function U7(e) {
|
|
23649
|
+
const t = H7(e);
|
|
23672
23650
|
return (r) => {
|
|
23673
23651
|
for (const n of t) {
|
|
23674
23652
|
if (n === "")
|
|
@@ -23679,7 +23657,7 @@ function Y7(e) {
|
|
|
23679
23657
|
};
|
|
23680
23658
|
}
|
|
23681
23659
|
function xi(e, t) {
|
|
23682
|
-
return (Rb[t] || (Rb[t] =
|
|
23660
|
+
return (Rb[t] || (Rb[t] = U7(t)))(e);
|
|
23683
23661
|
}
|
|
23684
23662
|
function cm(e) {
|
|
23685
23663
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
@@ -23692,10 +23670,10 @@ const go = (e) => typeof e < "u", jn = (e) => typeof e == "function", $b = (e, t
|
|
|
23692
23670
|
return !1;
|
|
23693
23671
|
return !0;
|
|
23694
23672
|
};
|
|
23695
|
-
function
|
|
23673
|
+
function K7(e) {
|
|
23696
23674
|
return e.type === "mouseup" || e.type === "click" || e.type === "contextmenu";
|
|
23697
23675
|
}
|
|
23698
|
-
const je = Math.PI, Xe = 2 * je,
|
|
23676
|
+
const je = Math.PI, Xe = 2 * je, q7 = Xe + je, $l = Number.POSITIVE_INFINITY, Y7 = je / 180, ut = je / 2, Un = je / 4, Lb = je * 2 / 3, IO = Math.log10, Rr = Math.sign;
|
|
23699
23677
|
function qa(e, t, r) {
|
|
23700
23678
|
return Math.abs(e - t) < r;
|
|
23701
23679
|
}
|
|
@@ -23705,24 +23683,24 @@ function Fb(e) {
|
|
|
23705
23683
|
const r = Math.pow(10, Math.floor(IO(e))), n = e / r;
|
|
23706
23684
|
return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * r;
|
|
23707
23685
|
}
|
|
23708
|
-
function
|
|
23686
|
+
function G7(e) {
|
|
23709
23687
|
const t = [], r = Math.sqrt(e);
|
|
23710
23688
|
let n;
|
|
23711
23689
|
for (n = 1; n < r; n++)
|
|
23712
23690
|
e % n === 0 && (t.push(n), t.push(e / n));
|
|
23713
23691
|
return r === (r | 0) && t.push(r), t.sort((i, a) => i - a).pop(), t;
|
|
23714
23692
|
}
|
|
23715
|
-
function
|
|
23693
|
+
function X7(e) {
|
|
23716
23694
|
return typeof e == "symbol" || typeof e == "object" && e !== null && !(Symbol.toPrimitive in e || "toString" in e || "valueOf" in e);
|
|
23717
23695
|
}
|
|
23718
23696
|
function vo(e) {
|
|
23719
|
-
return !
|
|
23697
|
+
return !X7(e) && !isNaN(parseFloat(e)) && isFinite(e);
|
|
23720
23698
|
}
|
|
23721
|
-
function
|
|
23699
|
+
function Z7(e, t) {
|
|
23722
23700
|
const r = Math.round(e);
|
|
23723
23701
|
return r - t <= e && r + t >= e;
|
|
23724
23702
|
}
|
|
23725
|
-
function
|
|
23703
|
+
function J7(e, t, r) {
|
|
23726
23704
|
let n, i, a;
|
|
23727
23705
|
for (n = 0, i = e.length; n < i; n++)
|
|
23728
23706
|
a = e[n][r], isNaN(a) || (t.min = Math.min(t.min, a), t.max = Math.max(t.max, a));
|
|
@@ -23730,7 +23708,7 @@ function tW(e, t, r) {
|
|
|
23730
23708
|
function Qr(e) {
|
|
23731
23709
|
return e * (je / 180);
|
|
23732
23710
|
}
|
|
23733
|
-
function
|
|
23711
|
+
function Q7(e) {
|
|
23734
23712
|
return e * (180 / je);
|
|
23735
23713
|
}
|
|
23736
23714
|
function Bb(e) {
|
|
@@ -23752,8 +23730,8 @@ function RO(e, t) {
|
|
|
23752
23730
|
function Xd(e, t) {
|
|
23753
23731
|
return Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2));
|
|
23754
23732
|
}
|
|
23755
|
-
function
|
|
23756
|
-
return (e - t +
|
|
23733
|
+
function eW(e, t) {
|
|
23734
|
+
return (e - t + q7) % Xe - je;
|
|
23757
23735
|
}
|
|
23758
23736
|
function br(e) {
|
|
23759
23737
|
return (e % Xe + Xe) % Xe;
|
|
@@ -23765,7 +23743,7 @@ function yo(e, t, r, n) {
|
|
|
23765
23743
|
function kt(e, t, r) {
|
|
23766
23744
|
return Math.max(t, Math.min(r, e));
|
|
23767
23745
|
}
|
|
23768
|
-
function
|
|
23746
|
+
function tW(e) {
|
|
23769
23747
|
return kt(e, -32768, 32767);
|
|
23770
23748
|
}
|
|
23771
23749
|
function xn(e, t, r, n = 1e-6) {
|
|
@@ -23784,8 +23762,8 @@ function um(e, t, r) {
|
|
|
23784
23762
|
const ii = (e, t, r, n) => um(e, r, n ? (i) => {
|
|
23785
23763
|
const a = e[i][t];
|
|
23786
23764
|
return a < r || a === r && e[i + 1][t] === r;
|
|
23787
|
-
} : (i) => e[i][t] < r),
|
|
23788
|
-
function
|
|
23765
|
+
} : (i) => e[i][t] < r), rW = (e, t, r) => um(e, r, (n) => e[n][t] >= r);
|
|
23766
|
+
function nW(e, t, r) {
|
|
23789
23767
|
let n = 0, i = e.length;
|
|
23790
23768
|
for (; n < i && e[n] < t; )
|
|
23791
23769
|
n++;
|
|
@@ -23800,7 +23778,7 @@ const $O = [
|
|
|
23800
23778
|
"splice",
|
|
23801
23779
|
"unshift"
|
|
23802
23780
|
];
|
|
23803
|
-
function
|
|
23781
|
+
function iW(e, t) {
|
|
23804
23782
|
if (e._chartjs) {
|
|
23805
23783
|
e._chartjs.listeners.push(t);
|
|
23806
23784
|
return;
|
|
@@ -23853,14 +23831,14 @@ function BO(e, t) {
|
|
|
23853
23831
|
}));
|
|
23854
23832
|
};
|
|
23855
23833
|
}
|
|
23856
|
-
function
|
|
23834
|
+
function aW(e, t) {
|
|
23857
23835
|
let r;
|
|
23858
23836
|
return function(...n) {
|
|
23859
23837
|
return t ? (clearTimeout(r), r = setTimeout(e, t, n)) : e.apply(this, n), t;
|
|
23860
23838
|
};
|
|
23861
23839
|
}
|
|
23862
|
-
const zO = (e) => e === "start" ? "left" : e === "end" ? "right" : "center", Yt = (e, t, r) => e === "start" ? t : e === "end" ? r : (t + r) / 2,
|
|
23863
|
-
function
|
|
23840
|
+
const zO = (e) => e === "start" ? "left" : e === "end" ? "right" : "center", Yt = (e, t, r) => e === "start" ? t : e === "end" ? r : (t + r) / 2, oW = (e, t, r, n) => e === (n ? "left" : "right") ? r : e === "center" ? (t + r) / 2 : t;
|
|
23841
|
+
function sW(e, t, r) {
|
|
23864
23842
|
const n = t.length;
|
|
23865
23843
|
let i = 0, a = n;
|
|
23866
23844
|
if (e._sorted) {
|
|
@@ -23897,7 +23875,7 @@ function uW(e, t, r) {
|
|
|
23897
23875
|
count: a
|
|
23898
23876
|
};
|
|
23899
23877
|
}
|
|
23900
|
-
function
|
|
23878
|
+
function lW(e) {
|
|
23901
23879
|
const { xScale: t, yScale: r, _scaleRanges: n } = e, i = {
|
|
23902
23880
|
xmin: t.min,
|
|
23903
23881
|
xmax: t.max,
|
|
@@ -23966,18 +23944,18 @@ function Hb(e) {
|
|
|
23966
23944
|
function Lf(e) {
|
|
23967
23945
|
return fm(e) ? e : new po(e).saturate(0.5).darken(0.1).hexString();
|
|
23968
23946
|
}
|
|
23969
|
-
const
|
|
23947
|
+
const cW = [
|
|
23970
23948
|
"x",
|
|
23971
23949
|
"y",
|
|
23972
23950
|
"borderWidth",
|
|
23973
23951
|
"radius",
|
|
23974
23952
|
"tension"
|
|
23975
|
-
],
|
|
23953
|
+
], uW = [
|
|
23976
23954
|
"color",
|
|
23977
23955
|
"borderColor",
|
|
23978
23956
|
"backgroundColor"
|
|
23979
23957
|
];
|
|
23980
|
-
function
|
|
23958
|
+
function fW(e) {
|
|
23981
23959
|
e.set("animation", {
|
|
23982
23960
|
delay: void 0,
|
|
23983
23961
|
duration: 1e3,
|
|
@@ -23994,11 +23972,11 @@ function pW(e) {
|
|
|
23994
23972
|
}), e.set("animations", {
|
|
23995
23973
|
colors: {
|
|
23996
23974
|
type: "color",
|
|
23997
|
-
properties:
|
|
23975
|
+
properties: uW
|
|
23998
23976
|
},
|
|
23999
23977
|
numbers: {
|
|
24000
23978
|
type: "number",
|
|
24001
|
-
properties:
|
|
23979
|
+
properties: cW
|
|
24002
23980
|
}
|
|
24003
23981
|
}), e.describe("animations", {
|
|
24004
23982
|
_fallback: "animation"
|
|
@@ -24038,7 +24016,7 @@ function pW(e) {
|
|
|
24038
24016
|
}
|
|
24039
24017
|
});
|
|
24040
24018
|
}
|
|
24041
|
-
function
|
|
24019
|
+
function dW(e) {
|
|
24042
24020
|
e.set("layout", {
|
|
24043
24021
|
autoPadding: !0,
|
|
24044
24022
|
padding: {
|
|
@@ -24050,16 +24028,16 @@ function mW(e) {
|
|
|
24050
24028
|
});
|
|
24051
24029
|
}
|
|
24052
24030
|
const Ub = /* @__PURE__ */ new Map();
|
|
24053
|
-
function
|
|
24031
|
+
function hW(e, t) {
|
|
24054
24032
|
t = t || {};
|
|
24055
24033
|
const r = e + JSON.stringify(t);
|
|
24056
24034
|
let n = Ub.get(r);
|
|
24057
24035
|
return n || (n = new Intl.NumberFormat(e, t), Ub.set(r, n)), n;
|
|
24058
24036
|
}
|
|
24059
24037
|
function dm(e, t, r) {
|
|
24060
|
-
return
|
|
24038
|
+
return hW(t, r).format(e);
|
|
24061
24039
|
}
|
|
24062
|
-
const
|
|
24040
|
+
const pW = {
|
|
24063
24041
|
values(e) {
|
|
24064
24042
|
return mt(e) ? e : "" + e;
|
|
24065
24043
|
},
|
|
@@ -24070,7 +24048,7 @@ const vW = {
|
|
|
24070
24048
|
let i, a = e;
|
|
24071
24049
|
if (r.length > 1) {
|
|
24072
24050
|
const c = Math.max(Math.abs(r[0].value), Math.abs(r[r.length - 1].value));
|
|
24073
|
-
(c < 1e-4 || c > 1e15) && (i = "scientific"), a =
|
|
24051
|
+
(c < 1e-4 || c > 1e15) && (i = "scientific"), a = mW(e, r);
|
|
24074
24052
|
}
|
|
24075
24053
|
const o = IO(Math.abs(a)), s = isNaN(o) ? 1 : Math.max(Math.min(-1 * Math.floor(o), 20), 0), l = {
|
|
24076
24054
|
notation: i,
|
|
@@ -24080,14 +24058,14 @@ const vW = {
|
|
|
24080
24058
|
return Object.assign(l, this.options.ticks.format), dm(e, n, l);
|
|
24081
24059
|
}
|
|
24082
24060
|
};
|
|
24083
|
-
function
|
|
24061
|
+
function mW(e, t) {
|
|
24084
24062
|
let r = t.length > 3 ? t[2].value - t[1].value : t[1].value - t[0].value;
|
|
24085
24063
|
return Math.abs(r) >= 1 && e !== Math.floor(e) && (r = e - Math.floor(e)), r;
|
|
24086
24064
|
}
|
|
24087
24065
|
var WO = {
|
|
24088
|
-
formatters:
|
|
24066
|
+
formatters: pW
|
|
24089
24067
|
};
|
|
24090
|
-
function
|
|
24068
|
+
function gW(e) {
|
|
24091
24069
|
e.set("scale", {
|
|
24092
24070
|
display: !0,
|
|
24093
24071
|
offset: !1,
|
|
@@ -24165,7 +24143,7 @@ function Ga(e, t) {
|
|
|
24165
24143
|
function Ff(e, t, r) {
|
|
24166
24144
|
return typeof t == "string" ? mo(Ga(e, t), r) : mo(Ga(e, ""), t);
|
|
24167
24145
|
}
|
|
24168
|
-
class
|
|
24146
|
+
class vW {
|
|
24169
24147
|
constructor(t, r) {
|
|
24170
24148
|
this.animation = void 0, this.backgroundColor = "rgba(0,0,0,0.1)", this.borderColor = "rgba(0,0,0,0.1)", this.color = "#666", this.datasets = {}, this.devicePixelRatio = (n) => n.chart.platform.getDevicePixelRatio(), this.elements = {}, this.events = [
|
|
24171
24149
|
"mousemove",
|
|
@@ -24220,7 +24198,7 @@ class xW {
|
|
|
24220
24198
|
t.forEach((r) => r(this));
|
|
24221
24199
|
}
|
|
24222
24200
|
}
|
|
24223
|
-
var et = /* @__PURE__ */ new
|
|
24201
|
+
var et = /* @__PURE__ */ new vW({
|
|
24224
24202
|
_scriptable: (e) => !e.startsWith("on"),
|
|
24225
24203
|
_indexable: (e) => e !== "events",
|
|
24226
24204
|
hover: {
|
|
@@ -24231,11 +24209,11 @@ var et = /* @__PURE__ */ new xW({
|
|
|
24231
24209
|
_indexable: !1
|
|
24232
24210
|
}
|
|
24233
24211
|
}, [
|
|
24234
|
-
|
|
24235
|
-
|
|
24236
|
-
|
|
24212
|
+
fW,
|
|
24213
|
+
dW,
|
|
24214
|
+
gW
|
|
24237
24215
|
]);
|
|
24238
|
-
function
|
|
24216
|
+
function yW(e) {
|
|
24239
24217
|
return !e || we(e.size) || we(e.family) ? null : (e.style ? e.style + " " : "") + (e.weight ? e.weight + " " : "") + e.size + "px " + e.family;
|
|
24240
24218
|
}
|
|
24241
24219
|
function Kb(e, t, r, n, i) {
|
|
@@ -24255,7 +24233,7 @@ function Jd(e, t, r, n) {
|
|
|
24255
24233
|
function VO(e, t, r, n, i) {
|
|
24256
24234
|
let a, o, s, l, c, u, f, d;
|
|
24257
24235
|
const h = t.pointStyle, m = t.rotation, p = t.radius;
|
|
24258
|
-
let g = (m || 0) *
|
|
24236
|
+
let g = (m || 0) * Y7;
|
|
24259
24237
|
if (h && typeof h == "object" && (a = h.toString(), a === "[object HTMLImageElement]" || a === "[object HTMLCanvasElement]")) {
|
|
24260
24238
|
e.save(), e.translate(r, n), e.rotate(g), e.drawImage(h, -h.width / 2, -h.height / 2, h.width, h.height), e.restore();
|
|
24261
24239
|
return;
|
|
@@ -24313,7 +24291,7 @@ function hm(e, t) {
|
|
|
24313
24291
|
function pm(e) {
|
|
24314
24292
|
e.restore();
|
|
24315
24293
|
}
|
|
24316
|
-
function
|
|
24294
|
+
function bW(e, t, r, n, i) {
|
|
24317
24295
|
if (!t)
|
|
24318
24296
|
return e.lineTo(r.x, r.y);
|
|
24319
24297
|
if (i === "middle") {
|
|
@@ -24322,21 +24300,21 @@ function _W(e, t, r, n, i) {
|
|
|
24322
24300
|
} else i === "after" != !!n ? e.lineTo(t.x, r.y) : e.lineTo(r.x, t.y);
|
|
24323
24301
|
e.lineTo(r.x, r.y);
|
|
24324
24302
|
}
|
|
24325
|
-
function
|
|
24303
|
+
function xW(e, t, r, n) {
|
|
24326
24304
|
if (!t)
|
|
24327
24305
|
return e.lineTo(r.x, r.y);
|
|
24328
24306
|
e.bezierCurveTo(n ? t.cp1x : t.cp2x, n ? t.cp1y : t.cp2y, n ? r.cp2x : r.cp1x, n ? r.cp2y : r.cp1y, r.x, r.y);
|
|
24329
24307
|
}
|
|
24330
|
-
function
|
|
24308
|
+
function wW(e, t) {
|
|
24331
24309
|
t.translation && e.translate(t.translation[0], t.translation[1]), we(t.rotation) || e.rotate(t.rotation), t.color && (e.fillStyle = t.color), t.textAlign && (e.textAlign = t.textAlign), t.textBaseline && (e.textBaseline = t.textBaseline);
|
|
24332
24310
|
}
|
|
24333
|
-
function
|
|
24311
|
+
function _W(e, t, r, n, i) {
|
|
24334
24312
|
if (i.strikethrough || i.underline) {
|
|
24335
24313
|
const a = e.measureText(n), o = t - a.actualBoundingBoxLeft, s = t + a.actualBoundingBoxRight, l = r - a.actualBoundingBoxAscent, c = r + a.actualBoundingBoxDescent, u = i.strikethrough ? (l + c) / 2 : c;
|
|
24336
24314
|
e.strokeStyle = e.fillStyle, e.beginPath(), e.lineWidth = i.decorationWidth || 2, e.moveTo(o, u), e.lineTo(s, u), e.stroke();
|
|
24337
24315
|
}
|
|
24338
24316
|
}
|
|
24339
|
-
function
|
|
24317
|
+
function SW(e, t) {
|
|
24340
24318
|
const r = e.fillStyle;
|
|
24341
24319
|
e.fillStyle = t.color, e.fillRect(t.left, t.top, t.width, t.height), e.fillStyle = r;
|
|
24342
24320
|
}
|
|
@@ -24345,17 +24323,17 @@ function Ll(e, t, r, n, i, a = {}) {
|
|
|
24345
24323
|
t
|
|
24346
24324
|
], s = a.strokeWidth > 0 && a.strokeColor !== "";
|
|
24347
24325
|
let l, c;
|
|
24348
|
-
for (e.save(), e.font = i.string,
|
|
24349
|
-
c = o[l], a.backdrop &&
|
|
24326
|
+
for (e.save(), e.font = i.string, wW(e, a), l = 0; l < o.length; ++l)
|
|
24327
|
+
c = o[l], a.backdrop && SW(e, a.backdrop), s && (a.strokeColor && (e.strokeStyle = a.strokeColor), we(a.strokeWidth) || (e.lineWidth = a.strokeWidth), e.strokeText(c, r, n, a.maxWidth)), e.fillText(c, r, n, a.maxWidth), _W(e, r, n, c, a), n += Number(i.lineHeight);
|
|
24350
24328
|
e.restore();
|
|
24351
24329
|
}
|
|
24352
24330
|
function Fl(e, t) {
|
|
24353
24331
|
const { x: r, y: n, w: i, h: a, radius: o } = t;
|
|
24354
24332
|
e.arc(r + o.topLeft, n + o.topLeft, o.topLeft, 1.5 * je, je, !0), e.lineTo(r, n + a - o.bottomLeft), e.arc(r + o.bottomLeft, n + a - o.bottomLeft, o.bottomLeft, je, ut, !0), e.lineTo(r + i - o.bottomRight, n + a), e.arc(r + i - o.bottomRight, n + a - o.bottomRight, o.bottomRight, ut, 0, !0), e.lineTo(r + i, n + o.topRight), e.arc(r + i - o.topRight, n + o.topRight, o.topRight, 0, -ut, !0), e.lineTo(r + o.topLeft, n);
|
|
24355
24333
|
}
|
|
24356
|
-
const
|
|
24357
|
-
function
|
|
24358
|
-
const r = ("" + e).match(
|
|
24334
|
+
const OW = /^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/, AW = /^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;
|
|
24335
|
+
function PW(e, t) {
|
|
24336
|
+
const r = ("" + e).match(OW);
|
|
24359
24337
|
if (!r || r[1] === "normal")
|
|
24360
24338
|
return t * 1.2;
|
|
24361
24339
|
switch (e = +r[2], r[3]) {
|
|
@@ -24367,11 +24345,11 @@ function kW(e, t) {
|
|
|
24367
24345
|
}
|
|
24368
24346
|
return t * e;
|
|
24369
24347
|
}
|
|
24370
|
-
const
|
|
24348
|
+
const EW = (e) => +e || 0;
|
|
24371
24349
|
function mm(e, t) {
|
|
24372
24350
|
const r = {}, n = fe(t), i = n ? Object.keys(t) : t, a = fe(e) ? n ? (o) => oe(e[o], e[t[o]]) : (o) => e[o] : () => e;
|
|
24373
24351
|
for (const o of i)
|
|
24374
|
-
r[o] =
|
|
24352
|
+
r[o] = EW(a(o));
|
|
24375
24353
|
return r;
|
|
24376
24354
|
}
|
|
24377
24355
|
function HO(e) {
|
|
@@ -24399,16 +24377,16 @@ function Wt(e, t) {
|
|
|
24399
24377
|
let r = oe(e.size, t.size);
|
|
24400
24378
|
typeof r == "string" && (r = parseInt(r, 10));
|
|
24401
24379
|
let n = oe(e.style, t.style);
|
|
24402
|
-
n && !("" + n).match(
|
|
24380
|
+
n && !("" + n).match(AW) && (console.warn('Invalid font style specified: "' + n + '"'), n = void 0);
|
|
24403
24381
|
const i = {
|
|
24404
24382
|
family: oe(e.family, t.family),
|
|
24405
|
-
lineHeight:
|
|
24383
|
+
lineHeight: PW(oe(e.lineHeight, t.lineHeight), r),
|
|
24406
24384
|
size: r,
|
|
24407
24385
|
style: n,
|
|
24408
24386
|
weight: oe(e.weight, t.weight),
|
|
24409
24387
|
string: ""
|
|
24410
24388
|
};
|
|
24411
|
-
return i.string =
|
|
24389
|
+
return i.string = yW(i), i;
|
|
24412
24390
|
}
|
|
24413
24391
|
function Es(e, t, r, n) {
|
|
24414
24392
|
let i, a, o;
|
|
@@ -24416,7 +24394,7 @@ function Es(e, t, r, n) {
|
|
|
24416
24394
|
if (o = e[i], o !== void 0 && o !== void 0)
|
|
24417
24395
|
return o;
|
|
24418
24396
|
}
|
|
24419
|
-
function
|
|
24397
|
+
function CW(e, t, r) {
|
|
24420
24398
|
const { min: n, max: i } = e, a = DO(t, (i - n) / 2), o = (s, l) => r && s === 0 ? 0 : s + l;
|
|
24421
24399
|
return {
|
|
24422
24400
|
min: o(n, -Math.abs(a)),
|
|
@@ -24454,7 +24432,7 @@ function gm(e, t = [
|
|
|
24454
24432
|
* A trap for getting property values.
|
|
24455
24433
|
*/
|
|
24456
24434
|
get(s, l) {
|
|
24457
|
-
return KO(s, l, () =>
|
|
24435
|
+
return KO(s, l, () => RW(l, t, e, s));
|
|
24458
24436
|
},
|
|
24459
24437
|
/**
|
|
24460
24438
|
* A trap for Object.getOwnPropertyDescriptor.
|
|
@@ -24512,7 +24490,7 @@ function ta(e, t, r, n) {
|
|
|
24512
24490
|
* A trap for getting property values.
|
|
24513
24491
|
*/
|
|
24514
24492
|
get(a, o, s) {
|
|
24515
|
-
return KO(a, o, () =>
|
|
24493
|
+
return KO(a, o, () => TW(a, o, s));
|
|
24516
24494
|
},
|
|
24517
24495
|
/**
|
|
24518
24496
|
* A trap for Object.getOwnPropertyDescriptor.
|
|
@@ -24563,19 +24541,19 @@ function UO(e, t = {
|
|
|
24563
24541
|
isIndexable: jn(n) ? n : () => n
|
|
24564
24542
|
};
|
|
24565
24543
|
}
|
|
24566
|
-
const
|
|
24544
|
+
const kW = (e, t) => e ? e + cm(t) : t, vm = (e, t) => fe(t) && e !== "adapters" && (Object.getPrototypeOf(t) === null || t.constructor === Object);
|
|
24567
24545
|
function KO(e, t, r) {
|
|
24568
24546
|
if (Object.prototype.hasOwnProperty.call(e, t) || t === "constructor")
|
|
24569
24547
|
return e[t];
|
|
24570
24548
|
const n = r();
|
|
24571
24549
|
return e[t] = n, n;
|
|
24572
24550
|
}
|
|
24573
|
-
function
|
|
24551
|
+
function TW(e, t, r) {
|
|
24574
24552
|
const { _proxy: n, _context: i, _subProxy: a, _descriptors: o } = e;
|
|
24575
24553
|
let s = n[t];
|
|
24576
|
-
return jn(s) && o.isScriptable(t) && (s =
|
|
24554
|
+
return jn(s) && o.isScriptable(t) && (s = MW(t, s, e, r)), mt(s) && s.length && (s = jW(t, s, e, o.isIndexable)), vm(t, s) && (s = ta(s, i, a && a[t], o)), s;
|
|
24577
24555
|
}
|
|
24578
|
-
function
|
|
24556
|
+
function MW(e, t, r, n) {
|
|
24579
24557
|
const { _proxy: i, _context: a, _subProxy: o, _stack: s } = r;
|
|
24580
24558
|
if (s.has(e))
|
|
24581
24559
|
throw new Error("Recursion detected: " + Array.from(s).join("->") + "->" + e);
|
|
@@ -24583,7 +24561,7 @@ function NW(e, t, r, n) {
|
|
|
24583
24561
|
let l = t(a, o || n);
|
|
24584
24562
|
return s.delete(e), vm(e, l) && (l = ym(i._scopes, i, e, l)), l;
|
|
24585
24563
|
}
|
|
24586
|
-
function
|
|
24564
|
+
function jW(e, t, r, n) {
|
|
24587
24565
|
const { _proxy: i, _context: a, _subProxy: o, _descriptors: s } = r;
|
|
24588
24566
|
if (typeof a.index < "u" && n(e))
|
|
24589
24567
|
return t[a.index % t.length];
|
|
@@ -24600,10 +24578,10 @@ function IW(e, t, r, n) {
|
|
|
24600
24578
|
function qO(e, t, r) {
|
|
24601
24579
|
return jn(e) ? e(t, r) : e;
|
|
24602
24580
|
}
|
|
24603
|
-
const
|
|
24604
|
-
function
|
|
24581
|
+
const DW = (e, t) => e === !0 ? t : typeof e == "string" ? xi(t, e) : void 0;
|
|
24582
|
+
function NW(e, t, r, n, i) {
|
|
24605
24583
|
for (const a of t) {
|
|
24606
|
-
const o =
|
|
24584
|
+
const o = DW(r, a);
|
|
24607
24585
|
if (o) {
|
|
24608
24586
|
e.add(o);
|
|
24609
24587
|
const s = qO(o._fallback, r, i);
|
|
@@ -24623,23 +24601,23 @@ function ym(e, t, r, n) {
|
|
|
24623
24601
|
let l = Yb(s, o, r, a || r, n);
|
|
24624
24602
|
return l === null || typeof a < "u" && a !== r && (l = Yb(s, o, a, l, n), l === null) ? !1 : gm(Array.from(s), [
|
|
24625
24603
|
""
|
|
24626
|
-
], i, a, () =>
|
|
24604
|
+
], i, a, () => IW(t, r, n));
|
|
24627
24605
|
}
|
|
24628
24606
|
function Yb(e, t, r, n, i) {
|
|
24629
24607
|
for (; r; )
|
|
24630
|
-
r =
|
|
24608
|
+
r = NW(e, t, r, n, i);
|
|
24631
24609
|
return r;
|
|
24632
24610
|
}
|
|
24633
|
-
function
|
|
24611
|
+
function IW(e, t, r) {
|
|
24634
24612
|
const n = e._getTarget();
|
|
24635
24613
|
t in n || (n[t] = {});
|
|
24636
24614
|
const i = n[t];
|
|
24637
24615
|
return mt(i) && fe(r) ? r : i || {};
|
|
24638
24616
|
}
|
|
24639
|
-
function
|
|
24617
|
+
function RW(e, t, r, n) {
|
|
24640
24618
|
let i;
|
|
24641
24619
|
for (const a of t)
|
|
24642
|
-
if (i = YO(
|
|
24620
|
+
if (i = YO(kW(a, e), r), typeof i < "u")
|
|
24643
24621
|
return vm(e, i) ? ym(r, n, e, i) : i;
|
|
24644
24622
|
}
|
|
24645
24623
|
function YO(e, t) {
|
|
@@ -24653,17 +24631,17 @@ function YO(e, t) {
|
|
|
24653
24631
|
}
|
|
24654
24632
|
function Gb(e) {
|
|
24655
24633
|
let t = e._keys;
|
|
24656
|
-
return t || (t = e._keys =
|
|
24634
|
+
return t || (t = e._keys = $W(e._scopes)), t;
|
|
24657
24635
|
}
|
|
24658
|
-
function
|
|
24636
|
+
function $W(e) {
|
|
24659
24637
|
const t = /* @__PURE__ */ new Set();
|
|
24660
24638
|
for (const r of e)
|
|
24661
24639
|
for (const n of Object.keys(r).filter((i) => !i.startsWith("_")))
|
|
24662
24640
|
t.add(n);
|
|
24663
24641
|
return Array.from(t);
|
|
24664
24642
|
}
|
|
24665
|
-
const
|
|
24666
|
-
function
|
|
24643
|
+
const LW = Number.EPSILON || 1e-14, ra = (e, t) => t < e.length && !e[t].skip && e[t], GO = (e) => e === "x" ? "y" : "x";
|
|
24644
|
+
function FW(e, t, r, n) {
|
|
24667
24645
|
const i = e.skip ? t : e, a = t, o = r.skip ? t : r, s = Xd(a, i), l = Xd(o, a);
|
|
24668
24646
|
let c = s / (s + l), u = l / (s + l);
|
|
24669
24647
|
c = isNaN(c) ? 0 : c, u = isNaN(u) ? 0 : u;
|
|
@@ -24679,19 +24657,19 @@ function WW(e, t, r, n) {
|
|
|
24679
24657
|
}
|
|
24680
24658
|
};
|
|
24681
24659
|
}
|
|
24682
|
-
function
|
|
24660
|
+
function BW(e, t, r) {
|
|
24683
24661
|
const n = e.length;
|
|
24684
24662
|
let i, a, o, s, l, c = ra(e, 0);
|
|
24685
24663
|
for (let u = 0; u < n - 1; ++u)
|
|
24686
24664
|
if (l = c, c = ra(e, u + 1), !(!l || !c)) {
|
|
24687
|
-
if (qa(t[u], 0,
|
|
24665
|
+
if (qa(t[u], 0, LW)) {
|
|
24688
24666
|
r[u] = r[u + 1] = 0;
|
|
24689
24667
|
continue;
|
|
24690
24668
|
}
|
|
24691
24669
|
i = r[u] / t[u], a = r[u + 1] / t[u], s = Math.pow(i, 2) + Math.pow(a, 2), !(s <= 9) && (o = 3 / Math.sqrt(s), r[u] = i * o * t[u], r[u + 1] = a * o * t[u]);
|
|
24692
24670
|
}
|
|
24693
24671
|
}
|
|
24694
|
-
function
|
|
24672
|
+
function zW(e, t, r = "x") {
|
|
24695
24673
|
const n = GO(r), i = e.length;
|
|
24696
24674
|
let a, o, s, l = ra(e, 0);
|
|
24697
24675
|
for (let c = 0; c < i; ++c) {
|
|
@@ -24701,7 +24679,7 @@ function HW(e, t, r = "x") {
|
|
|
24701
24679
|
o && (a = (u - o[r]) / 3, s[`cp1${r}`] = u - a, s[`cp1${n}`] = f - a * t[c]), l && (a = (l[r] - u) / 3, s[`cp2${r}`] = u + a, s[`cp2${n}`] = f + a * t[c]);
|
|
24702
24680
|
}
|
|
24703
24681
|
}
|
|
24704
|
-
function
|
|
24682
|
+
function WW(e, t = "x") {
|
|
24705
24683
|
const r = GO(t), n = e.length, i = Array(n).fill(0), a = Array(n);
|
|
24706
24684
|
let o, s, l, c = ra(e, 0);
|
|
24707
24685
|
for (o = 0; o < n; ++o)
|
|
@@ -24712,26 +24690,26 @@ function UW(e, t = "x") {
|
|
|
24712
24690
|
}
|
|
24713
24691
|
a[o] = s ? c ? Rr(i[o - 1]) !== Rr(i[o]) ? 0 : (i[o - 1] + i[o]) / 2 : i[o - 1] : i[o];
|
|
24714
24692
|
}
|
|
24715
|
-
|
|
24693
|
+
BW(e, i, a), zW(e, a, t);
|
|
24716
24694
|
}
|
|
24717
24695
|
function Cs(e, t, r) {
|
|
24718
24696
|
return Math.max(Math.min(e, r), t);
|
|
24719
24697
|
}
|
|
24720
|
-
function
|
|
24698
|
+
function VW(e, t) {
|
|
24721
24699
|
let r, n, i, a, o, s = bo(e[0], t);
|
|
24722
24700
|
for (r = 0, n = e.length; r < n; ++r)
|
|
24723
24701
|
o = a, a = s, s = r < n - 1 && bo(e[r + 1], t), a && (i = e[r], o && (i.cp1x = Cs(i.cp1x, t.left, t.right), i.cp1y = Cs(i.cp1y, t.top, t.bottom)), s && (i.cp2x = Cs(i.cp2x, t.left, t.right), i.cp2y = Cs(i.cp2y, t.top, t.bottom)));
|
|
24724
24702
|
}
|
|
24725
|
-
function
|
|
24703
|
+
function HW(e, t, r, n, i) {
|
|
24726
24704
|
let a, o, s, l;
|
|
24727
24705
|
if (t.spanGaps && (e = e.filter((c) => !c.skip)), t.cubicInterpolationMode === "monotone")
|
|
24728
|
-
|
|
24706
|
+
WW(e, i);
|
|
24729
24707
|
else {
|
|
24730
24708
|
let c = n ? e[e.length - 1] : e[0];
|
|
24731
24709
|
for (a = 0, o = e.length; a < o; ++a)
|
|
24732
|
-
s = e[a], l =
|
|
24710
|
+
s = e[a], l = FW(c, s, e[Math.min(a + 1, o - (n ? 0 : 1)) % o], t.tension), s.cp1x = l.previous.x, s.cp1y = l.previous.y, s.cp2x = l.next.x, s.cp2y = l.next.y, c = s;
|
|
24733
24711
|
}
|
|
24734
|
-
t.capBezierPoints &&
|
|
24712
|
+
t.capBezierPoints && VW(e, r);
|
|
24735
24713
|
}
|
|
24736
24714
|
function bm() {
|
|
24737
24715
|
return typeof window < "u" && typeof document < "u";
|
|
@@ -24745,10 +24723,10 @@ function Bl(e, t, r) {
|
|
|
24745
24723
|
return typeof e == "string" ? (n = parseInt(e, 10), e.indexOf("%") !== -1 && (n = n / 100 * t.parentNode[r])) : n = e, n;
|
|
24746
24724
|
}
|
|
24747
24725
|
const zc = (e) => e.ownerDocument.defaultView.getComputedStyle(e, null);
|
|
24748
|
-
function
|
|
24726
|
+
function UW(e, t) {
|
|
24749
24727
|
return zc(e).getPropertyValue(t);
|
|
24750
24728
|
}
|
|
24751
|
-
const
|
|
24729
|
+
const KW = [
|
|
24752
24730
|
"top",
|
|
24753
24731
|
"right",
|
|
24754
24732
|
"bottom",
|
|
@@ -24758,16 +24736,16 @@ function di(e, t, r) {
|
|
|
24758
24736
|
const n = {};
|
|
24759
24737
|
r = r ? "-" + r : "";
|
|
24760
24738
|
for (let i = 0; i < 4; i++) {
|
|
24761
|
-
const a =
|
|
24739
|
+
const a = KW[i];
|
|
24762
24740
|
n[a] = parseFloat(e[t + "-" + a + r]) || 0;
|
|
24763
24741
|
}
|
|
24764
24742
|
return n.width = n.left + n.right, n.height = n.top + n.bottom, n;
|
|
24765
24743
|
}
|
|
24766
|
-
const
|
|
24767
|
-
function
|
|
24744
|
+
const qW = (e, t, r) => (e > 0 || t > 0) && (!r || !r.shadowRoot);
|
|
24745
|
+
function YW(e, t) {
|
|
24768
24746
|
const r = e.touches, n = r && r.length ? r[0] : e, { offsetX: i, offsetY: a } = n;
|
|
24769
24747
|
let o = !1, s, l;
|
|
24770
|
-
if (
|
|
24748
|
+
if (qW(i, a, e.target))
|
|
24771
24749
|
s = i, l = a;
|
|
24772
24750
|
else {
|
|
24773
24751
|
const c = t.getBoundingClientRect();
|
|
@@ -24782,14 +24760,14 @@ function ZW(e, t) {
|
|
|
24782
24760
|
function Zn(e, t) {
|
|
24783
24761
|
if ("native" in e)
|
|
24784
24762
|
return e;
|
|
24785
|
-
const { canvas: r, currentDevicePixelRatio: n } = t, i = zc(r), a = i.boxSizing === "border-box", o = di(i, "padding"), s = di(i, "border", "width"), { x: l, y: c, box: u } =
|
|
24763
|
+
const { canvas: r, currentDevicePixelRatio: n } = t, i = zc(r), a = i.boxSizing === "border-box", o = di(i, "padding"), s = di(i, "border", "width"), { x: l, y: c, box: u } = YW(e, r), f = o.left + (u && s.left), d = o.top + (u && s.top);
|
|
24786
24764
|
let { width: h, height: m } = t;
|
|
24787
24765
|
return a && (h -= o.width + s.width, m -= o.height + s.height), {
|
|
24788
24766
|
x: Math.round((l - f) / h * r.width / n),
|
|
24789
24767
|
y: Math.round((c - d) / m * r.height / n)
|
|
24790
24768
|
};
|
|
24791
24769
|
}
|
|
24792
|
-
function
|
|
24770
|
+
function GW(e, t, r) {
|
|
24793
24771
|
let n, i;
|
|
24794
24772
|
if (t === void 0 || r === void 0) {
|
|
24795
24773
|
const a = e && xm(e);
|
|
@@ -24808,8 +24786,8 @@ function JW(e, t, r) {
|
|
|
24808
24786
|
};
|
|
24809
24787
|
}
|
|
24810
24788
|
const ks = (e) => Math.round(e * 10) / 10;
|
|
24811
|
-
function
|
|
24812
|
-
const i = zc(e), a = di(i, "margin"), o = Bl(i.maxWidth, e, "clientWidth") || $l, s = Bl(i.maxHeight, e, "clientHeight") || $l, l =
|
|
24789
|
+
function XW(e, t, r, n) {
|
|
24790
|
+
const i = zc(e), a = di(i, "margin"), o = Bl(i.maxWidth, e, "clientWidth") || $l, s = Bl(i.maxHeight, e, "clientHeight") || $l, l = GW(e, t, r);
|
|
24813
24791
|
let { width: c, height: u } = l;
|
|
24814
24792
|
if (i.boxSizing === "content-box") {
|
|
24815
24793
|
const d = di(i, "border", "width"), h = di(i, "padding");
|
|
@@ -24826,7 +24804,7 @@ function Xb(e, t, r) {
|
|
|
24826
24804
|
const o = e.canvas;
|
|
24827
24805
|
return o.style && (r || !o.style.height && !o.style.width) && (o.style.height = `${e.height}px`, o.style.width = `${e.width}px`), e.currentDevicePixelRatio !== n || o.height !== i || o.width !== a ? (e.currentDevicePixelRatio = n, o.height = i, o.width = a, e.ctx.setTransform(n, 0, 0, n, 0, 0), !0) : !1;
|
|
24828
24806
|
}
|
|
24829
|
-
const
|
|
24807
|
+
const ZW = (function() {
|
|
24830
24808
|
let e = !1;
|
|
24831
24809
|
try {
|
|
24832
24810
|
const t = {
|
|
@@ -24840,7 +24818,7 @@ const e9 = (function() {
|
|
|
24840
24818
|
return e;
|
|
24841
24819
|
})();
|
|
24842
24820
|
function Zb(e, t) {
|
|
24843
|
-
const r =
|
|
24821
|
+
const r = UW(e, t), n = r && r.match(/^(\d+)(\.\d+)?px$/);
|
|
24844
24822
|
return n ? +n[1] : void 0;
|
|
24845
24823
|
}
|
|
24846
24824
|
function Jn(e, t, r, n) {
|
|
@@ -24849,13 +24827,13 @@ function Jn(e, t, r, n) {
|
|
|
24849
24827
|
y: e.y + r * (t.y - e.y)
|
|
24850
24828
|
};
|
|
24851
24829
|
}
|
|
24852
|
-
function
|
|
24830
|
+
function JW(e, t, r, n) {
|
|
24853
24831
|
return {
|
|
24854
24832
|
x: e.x + r * (t.x - e.x),
|
|
24855
24833
|
y: n === "middle" ? r < 0.5 ? e.y : t.y : n === "after" ? r < 1 ? e.y : t.y : r > 0 ? t.y : e.y
|
|
24856
24834
|
};
|
|
24857
24835
|
}
|
|
24858
|
-
function
|
|
24836
|
+
function QW(e, t, r, n) {
|
|
24859
24837
|
const i = {
|
|
24860
24838
|
x: e.cp2x,
|
|
24861
24839
|
y: e.cp2y
|
|
@@ -24865,7 +24843,7 @@ function r9(e, t, r, n) {
|
|
|
24865
24843
|
}, o = Jn(e, i, r), s = Jn(i, a, r), l = Jn(a, t, r), c = Jn(o, s, r), u = Jn(s, l, r);
|
|
24866
24844
|
return Jn(c, u, r);
|
|
24867
24845
|
}
|
|
24868
|
-
const
|
|
24846
|
+
const e9 = function(e, t) {
|
|
24869
24847
|
return {
|
|
24870
24848
|
x(r) {
|
|
24871
24849
|
return e + e + t - r;
|
|
@@ -24883,7 +24861,7 @@ const n9 = function(e, t) {
|
|
|
24883
24861
|
return r - n;
|
|
24884
24862
|
}
|
|
24885
24863
|
};
|
|
24886
|
-
},
|
|
24864
|
+
}, t9 = function() {
|
|
24887
24865
|
return {
|
|
24888
24866
|
x(e) {
|
|
24889
24867
|
return e;
|
|
@@ -24902,7 +24880,7 @@ const n9 = function(e, t) {
|
|
|
24902
24880
|
};
|
|
24903
24881
|
};
|
|
24904
24882
|
function Hi(e, t, r) {
|
|
24905
|
-
return e ?
|
|
24883
|
+
return e ? e9(t, r) : t9();
|
|
24906
24884
|
}
|
|
24907
24885
|
function XO(e, t) {
|
|
24908
24886
|
let r, n;
|
|
@@ -24917,7 +24895,7 @@ function ZO(e, t) {
|
|
|
24917
24895
|
function JO(e) {
|
|
24918
24896
|
return e === "angle" ? {
|
|
24919
24897
|
between: yo,
|
|
24920
|
-
compare:
|
|
24898
|
+
compare: eW,
|
|
24921
24899
|
normalize: br
|
|
24922
24900
|
} : {
|
|
24923
24901
|
between: xn,
|
|
@@ -24933,7 +24911,7 @@ function Jb({ start: e, end: t, count: r, loop: n, style: i }) {
|
|
|
24933
24911
|
style: i
|
|
24934
24912
|
};
|
|
24935
24913
|
}
|
|
24936
|
-
function
|
|
24914
|
+
function r9(e, t, r) {
|
|
24937
24915
|
const { property: n, start: i, end: a } = r, { between: o, normalize: s } = JO(n), l = t.length;
|
|
24938
24916
|
let { start: c, end: u, loop: f } = e, d, h;
|
|
24939
24917
|
if (f) {
|
|
@@ -24948,12 +24926,12 @@ function a9(e, t, r) {
|
|
|
24948
24926
|
style: e.style
|
|
24949
24927
|
};
|
|
24950
24928
|
}
|
|
24951
|
-
function
|
|
24929
|
+
function n9(e, t, r) {
|
|
24952
24930
|
if (!r)
|
|
24953
24931
|
return [
|
|
24954
24932
|
e
|
|
24955
24933
|
];
|
|
24956
|
-
const { property: n, start: i, end: a } = r, o = t.length, { compare: s, between: l, normalize: c } = JO(n), { start: u, end: f, loop: d, style: h } =
|
|
24934
|
+
const { property: n, start: i, end: a } = r, o = t.length, { compare: s, between: l, normalize: c } = JO(n), { start: u, end: f, loop: d, style: h } = r9(e, t, r), m = [];
|
|
24957
24935
|
let p = !1, g = null, v, b, x;
|
|
24958
24936
|
const S = () => l(i, x, v) && s(i, x) !== 0, w = () => s(a, v) === 0 || l(a, x, v), O = () => p || S(), P = () => !p || w();
|
|
24959
24937
|
for (let C = u, T = u; C <= f; ++C)
|
|
@@ -24972,15 +24950,15 @@ function o9(e, t, r) {
|
|
|
24972
24950
|
style: h
|
|
24973
24951
|
})), m;
|
|
24974
24952
|
}
|
|
24975
|
-
function
|
|
24953
|
+
function i9(e, t) {
|
|
24976
24954
|
const r = [], n = e.segments;
|
|
24977
24955
|
for (let i = 0; i < n.length; i++) {
|
|
24978
|
-
const a =
|
|
24956
|
+
const a = n9(n[i], e.points, t);
|
|
24979
24957
|
a.length && r.push(...a);
|
|
24980
24958
|
}
|
|
24981
24959
|
return r;
|
|
24982
24960
|
}
|
|
24983
|
-
function
|
|
24961
|
+
function a9(e, t, r, n) {
|
|
24984
24962
|
let i = 0, a = t - 1;
|
|
24985
24963
|
if (r && !n)
|
|
24986
24964
|
for (; i < t && !e[i].skip; )
|
|
@@ -24994,7 +24972,7 @@ function l9(e, t, r, n) {
|
|
|
24994
24972
|
end: a
|
|
24995
24973
|
};
|
|
24996
24974
|
}
|
|
24997
|
-
function
|
|
24975
|
+
function o9(e, t, r, n) {
|
|
24998
24976
|
const i = e.length, a = [];
|
|
24999
24977
|
let o = t, s = e[t], l;
|
|
25000
24978
|
for (l = t + 1; l <= r; ++l) {
|
|
@@ -25011,11 +24989,11 @@ function c9(e, t, r, n) {
|
|
|
25011
24989
|
loop: n
|
|
25012
24990
|
}), a;
|
|
25013
24991
|
}
|
|
25014
|
-
function
|
|
24992
|
+
function s9(e, t) {
|
|
25015
24993
|
const r = e.points, n = e.options.spanGaps, i = r.length;
|
|
25016
24994
|
if (!i)
|
|
25017
24995
|
return [];
|
|
25018
|
-
const a = !!e._loop, { start: o, end: s } =
|
|
24996
|
+
const a = !!e._loop, { start: o, end: s } = a9(r, i, a, n);
|
|
25019
24997
|
if (n === !0)
|
|
25020
24998
|
return Qb(e, [
|
|
25021
24999
|
{
|
|
@@ -25025,12 +25003,12 @@ function u9(e, t) {
|
|
|
25025
25003
|
}
|
|
25026
25004
|
], r, t);
|
|
25027
25005
|
const l = s < o ? s + i : s, c = !!e._fullLoop && o === 0 && s === i - 1;
|
|
25028
|
-
return Qb(e,
|
|
25006
|
+
return Qb(e, o9(r, o, l, c), r, t);
|
|
25029
25007
|
}
|
|
25030
25008
|
function Qb(e, t, r, n) {
|
|
25031
|
-
return !n || !n.setContext || !r ? t :
|
|
25009
|
+
return !n || !n.setContext || !r ? t : l9(e, t, r, n);
|
|
25032
25010
|
}
|
|
25033
|
-
function
|
|
25011
|
+
function l9(e, t, r, n) {
|
|
25034
25012
|
const i = e._chart.getContext(), a = ex(e.options), { _datasetIndex: o, options: { spanGaps: s } } = e, l = r.length, c = [];
|
|
25035
25013
|
let u = a, f = t[0].start, d = f;
|
|
25036
25014
|
function h(m, p, g, v) {
|
|
@@ -25060,7 +25038,7 @@ function f9(e, t, r, n) {
|
|
|
25060
25038
|
p0DataIndex: (d - 1) % l,
|
|
25061
25039
|
p1DataIndex: d % l,
|
|
25062
25040
|
datasetIndex: o
|
|
25063
|
-
}))),
|
|
25041
|
+
}))), c9(g, u) && h(f, d - 1, m.loop, u), p = v, u = g;
|
|
25064
25042
|
}
|
|
25065
25043
|
f < d - 1 && h(f, d - 1, m.loop, u);
|
|
25066
25044
|
}
|
|
@@ -25077,7 +25055,7 @@ function ex(e) {
|
|
|
25077
25055
|
borderColor: e.borderColor
|
|
25078
25056
|
};
|
|
25079
25057
|
}
|
|
25080
|
-
function
|
|
25058
|
+
function c9(e, t) {
|
|
25081
25059
|
if (!t)
|
|
25082
25060
|
return !1;
|
|
25083
25061
|
const r = [], n = function(i, a) {
|
|
@@ -25088,7 +25066,7 @@ function d9(e, t) {
|
|
|
25088
25066
|
function Ts(e, t, r) {
|
|
25089
25067
|
return e.options.clip ? e[r] : t[r];
|
|
25090
25068
|
}
|
|
25091
|
-
function
|
|
25069
|
+
function u9(e, t) {
|
|
25092
25070
|
const { xScale: r, yScale: n } = e;
|
|
25093
25071
|
return r && n ? {
|
|
25094
25072
|
left: Ts(r, t, "left"),
|
|
@@ -25097,11 +25075,11 @@ function h9(e, t) {
|
|
|
25097
25075
|
bottom: Ts(n, t, "bottom")
|
|
25098
25076
|
} : t;
|
|
25099
25077
|
}
|
|
25100
|
-
function
|
|
25078
|
+
function f9(e, t) {
|
|
25101
25079
|
const r = t._clip;
|
|
25102
25080
|
if (r.disabled)
|
|
25103
25081
|
return !1;
|
|
25104
|
-
const n =
|
|
25082
|
+
const n = u9(t, e.chartArea);
|
|
25105
25083
|
return {
|
|
25106
25084
|
left: r.left === !1 ? 0 : n.left - (r.left === !0 ? 0 : r.left),
|
|
25107
25085
|
right: r.right === !1 ? e.width : n.right + (r.right === !0 ? 0 : r.right),
|
|
@@ -25115,7 +25093,7 @@ function p9(e, t) {
|
|
|
25115
25093
|
* (c) 2025 Chart.js Contributors
|
|
25116
25094
|
* Released under the MIT License
|
|
25117
25095
|
*/
|
|
25118
|
-
class
|
|
25096
|
+
class d9 {
|
|
25119
25097
|
constructor() {
|
|
25120
25098
|
this._request = null, this._charts = /* @__PURE__ */ new Map(), this._running = !1, this._lastDate = void 0;
|
|
25121
25099
|
}
|
|
@@ -25191,8 +25169,8 @@ class m9 {
|
|
|
25191
25169
|
return this._charts.delete(t);
|
|
25192
25170
|
}
|
|
25193
25171
|
}
|
|
25194
|
-
var Ur = /* @__PURE__ */ new
|
|
25195
|
-
const tx = "transparent",
|
|
25172
|
+
var Ur = /* @__PURE__ */ new d9();
|
|
25173
|
+
const tx = "transparent", h9 = {
|
|
25196
25174
|
boolean(e, t, r) {
|
|
25197
25175
|
return r > 0.5 ? t : e;
|
|
25198
25176
|
},
|
|
@@ -25204,7 +25182,7 @@ const tx = "transparent", g9 = {
|
|
|
25204
25182
|
return e + (t - e) * r;
|
|
25205
25183
|
}
|
|
25206
25184
|
};
|
|
25207
|
-
class
|
|
25185
|
+
class p9 {
|
|
25208
25186
|
constructor(t, r, n, i) {
|
|
25209
25187
|
const a = r[n];
|
|
25210
25188
|
i = Es([
|
|
@@ -25218,7 +25196,7 @@ class v9 {
|
|
|
25218
25196
|
a,
|
|
25219
25197
|
i
|
|
25220
25198
|
]);
|
|
25221
|
-
this._active = !0, this._fn = t.fn ||
|
|
25199
|
+
this._active = !0, this._fn = t.fn || h9[t.type || typeof o], this._easing = Ya[t.easing] || Ya.linear, this._start = Math.floor(Date.now() + (t.delay || 0)), this._duration = this._total = Math.floor(t.duration), this._loop = !!t.loop, this._target = r, this._prop = n, this._from = o, this._to = i, this._promises = void 0;
|
|
25222
25200
|
}
|
|
25223
25201
|
active() {
|
|
25224
25202
|
return this._active;
|
|
@@ -25293,11 +25271,11 @@ class QO {
|
|
|
25293
25271
|
});
|
|
25294
25272
|
}
|
|
25295
25273
|
_animateOptions(t, r) {
|
|
25296
|
-
const n = r.options, i =
|
|
25274
|
+
const n = r.options, i = g9(t, n);
|
|
25297
25275
|
if (!i)
|
|
25298
25276
|
return [];
|
|
25299
25277
|
const a = this._createAnimations(i, n);
|
|
25300
|
-
return n.$shared &&
|
|
25278
|
+
return n.$shared && m9(t.options.$animations, n).then(() => {
|
|
25301
25279
|
t.options = n;
|
|
25302
25280
|
}, () => {
|
|
25303
25281
|
}), a;
|
|
@@ -25326,7 +25304,7 @@ class QO {
|
|
|
25326
25304
|
t[c] = u;
|
|
25327
25305
|
continue;
|
|
25328
25306
|
}
|
|
25329
|
-
a[c] = f = new
|
|
25307
|
+
a[c] = f = new p9(d, t, c, u), i.push(f);
|
|
25330
25308
|
}
|
|
25331
25309
|
return i;
|
|
25332
25310
|
}
|
|
@@ -25340,7 +25318,7 @@ class QO {
|
|
|
25340
25318
|
return Ur.add(this._chart, n), !0;
|
|
25341
25319
|
}
|
|
25342
25320
|
}
|
|
25343
|
-
function
|
|
25321
|
+
function m9(e, t) {
|
|
25344
25322
|
const r = [], n = Object.keys(t);
|
|
25345
25323
|
for (let i = 0; i < n.length; i++) {
|
|
25346
25324
|
const a = e[n[i]];
|
|
@@ -25348,7 +25326,7 @@ function y9(e, t) {
|
|
|
25348
25326
|
}
|
|
25349
25327
|
return Promise.all(r);
|
|
25350
25328
|
}
|
|
25351
|
-
function
|
|
25329
|
+
function g9(e, t) {
|
|
25352
25330
|
if (!t)
|
|
25353
25331
|
return;
|
|
25354
25332
|
let r = e.options;
|
|
@@ -25368,7 +25346,7 @@ function rx(e, t) {
|
|
|
25368
25346
|
end: n ? i : a
|
|
25369
25347
|
};
|
|
25370
25348
|
}
|
|
25371
|
-
function
|
|
25349
|
+
function v9(e, t, r) {
|
|
25372
25350
|
if (r === !1)
|
|
25373
25351
|
return !1;
|
|
25374
25352
|
const n = rx(e, r), i = rx(t, r);
|
|
@@ -25379,7 +25357,7 @@ function x9(e, t, r) {
|
|
|
25379
25357
|
left: n.start
|
|
25380
25358
|
};
|
|
25381
25359
|
}
|
|
25382
|
-
function
|
|
25360
|
+
function y9(e) {
|
|
25383
25361
|
let t, r, n, i;
|
|
25384
25362
|
return fe(e) ? (t = e.top, r = e.right, n = e.bottom, i = e.left) : t = r = n = i = e, {
|
|
25385
25363
|
top: t,
|
|
@@ -25412,7 +25390,7 @@ function nx(e, t, r, n = {}) {
|
|
|
25412
25390
|
}
|
|
25413
25391
|
return !u && !n.all ? 0 : t;
|
|
25414
25392
|
}
|
|
25415
|
-
function
|
|
25393
|
+
function b9(e, t) {
|
|
25416
25394
|
const { iScale: r, vScale: n } = t, i = r.axis === "x" ? "x" : "y", a = n.axis === "x" ? "x" : "y", o = Object.keys(e), s = new Array(o.length);
|
|
25417
25395
|
let l, c, u;
|
|
25418
25396
|
for (l = 0, c = o.length; l < c; ++l)
|
|
@@ -25426,17 +25404,17 @@ function Bf(e, t) {
|
|
|
25426
25404
|
const r = e && e.options.stacked;
|
|
25427
25405
|
return r || r === void 0 && t.stack !== void 0;
|
|
25428
25406
|
}
|
|
25429
|
-
function
|
|
25407
|
+
function x9(e, t, r) {
|
|
25430
25408
|
return `${e.id}.${t.id}.${r.stack || r.type}`;
|
|
25431
25409
|
}
|
|
25432
|
-
function
|
|
25410
|
+
function w9(e) {
|
|
25433
25411
|
const { min: t, max: r, minDefined: n, maxDefined: i } = e.getUserBounds();
|
|
25434
25412
|
return {
|
|
25435
25413
|
min: n ? t : Number.NEGATIVE_INFINITY,
|
|
25436
25414
|
max: i ? r : Number.POSITIVE_INFINITY
|
|
25437
25415
|
};
|
|
25438
25416
|
}
|
|
25439
|
-
function
|
|
25417
|
+
function _9(e, t, r) {
|
|
25440
25418
|
const n = e[t] || (e[t] = {});
|
|
25441
25419
|
return n[r] || (n[r] = {});
|
|
25442
25420
|
}
|
|
@@ -25449,11 +25427,11 @@ function ix(e, t, r, n) {
|
|
|
25449
25427
|
return null;
|
|
25450
25428
|
}
|
|
25451
25429
|
function ax(e, t) {
|
|
25452
|
-
const { chart: r, _cachedMeta: n } = e, i = r._stacks || (r._stacks = {}), { iScale: a, vScale: o, index: s } = n, l = a.axis, c = o.axis, u =
|
|
25430
|
+
const { chart: r, _cachedMeta: n } = e, i = r._stacks || (r._stacks = {}), { iScale: a, vScale: o, index: s } = n, l = a.axis, c = o.axis, u = x9(a, o, n), f = t.length;
|
|
25453
25431
|
let d;
|
|
25454
25432
|
for (let h = 0; h < f; ++h) {
|
|
25455
25433
|
const m = t[h], { [l]: p, [c]: g } = m, v = m._stacks || (m._stacks = {});
|
|
25456
|
-
d = v[c] =
|
|
25434
|
+
d = v[c] = _9(i, u, p), d[s] = g, d._top = ix(d, o, !0, n.type), d._bottom = ix(d, o, !1, n.type);
|
|
25457
25435
|
const b = d._visualValues || (d._visualValues = {});
|
|
25458
25436
|
b[s] = g;
|
|
25459
25437
|
}
|
|
@@ -25462,7 +25440,7 @@ function zf(e, t) {
|
|
|
25462
25440
|
const r = e.scales;
|
|
25463
25441
|
return Object.keys(r).filter((n) => r[n].axis === t).shift();
|
|
25464
25442
|
}
|
|
25465
|
-
function
|
|
25443
|
+
function S9(e, t) {
|
|
25466
25444
|
return Ei(e, {
|
|
25467
25445
|
active: !1,
|
|
25468
25446
|
dataset: void 0,
|
|
@@ -25472,7 +25450,7 @@ function P9(e, t) {
|
|
|
25472
25450
|
type: "dataset"
|
|
25473
25451
|
});
|
|
25474
25452
|
}
|
|
25475
|
-
function
|
|
25453
|
+
function O9(e, t, r) {
|
|
25476
25454
|
return Ei(e, {
|
|
25477
25455
|
active: !1,
|
|
25478
25456
|
dataIndex: t,
|
|
@@ -25496,7 +25474,7 @@ function Ta(e, t) {
|
|
|
25496
25474
|
}
|
|
25497
25475
|
}
|
|
25498
25476
|
}
|
|
25499
|
-
const Wf = (e) => e === "reset" || e === "none", ox = (e, t) => t ? e : Object.assign({}, e),
|
|
25477
|
+
const Wf = (e) => e === "reset" || e === "none", ox = (e, t) => t ? e : Object.assign({}, e), A9 = (e, t, r) => e && !t.hidden && t._stacked && {
|
|
25500
25478
|
keys: eA(r, !0),
|
|
25501
25479
|
values: null
|
|
25502
25480
|
};
|
|
@@ -25542,14 +25520,14 @@ class Wc {
|
|
|
25542
25520
|
const t = this.getDataset(), r = t.data || (t.data = []), n = this._data;
|
|
25543
25521
|
if (fe(r)) {
|
|
25544
25522
|
const i = this._cachedMeta;
|
|
25545
|
-
this._data =
|
|
25523
|
+
this._data = b9(r, i);
|
|
25546
25524
|
} else if (n !== r) {
|
|
25547
25525
|
if (n) {
|
|
25548
25526
|
zb(n, this);
|
|
25549
25527
|
const i = this._cachedMeta;
|
|
25550
25528
|
Ta(i), i._parsed = [];
|
|
25551
25529
|
}
|
|
25552
|
-
r && Object.isExtensible(r) &&
|
|
25530
|
+
r && Object.isExtensible(r) && iW(r, this), this._syncList = [], this._data = r;
|
|
25553
25531
|
}
|
|
25554
25532
|
}
|
|
25555
25533
|
addElements() {
|
|
@@ -25633,10 +25611,10 @@ class Wc {
|
|
|
25633
25611
|
i && s && (i.values = s, o = nx(i, a, this._cachedMeta.index)), t.min = Math.min(t.min, o), t.max = Math.max(t.max, o);
|
|
25634
25612
|
}
|
|
25635
25613
|
getMinMax(t, r) {
|
|
25636
|
-
const n = this._cachedMeta, i = n._parsed, a = n._sorted && t === n.iScale, o = i.length, s = this._getOtherScale(t), l =
|
|
25614
|
+
const n = this._cachedMeta, i = n._parsed, a = n._sorted && t === n.iScale, o = i.length, s = this._getOtherScale(t), l = A9(r, n, this.chart), c = {
|
|
25637
25615
|
min: Number.POSITIVE_INFINITY,
|
|
25638
25616
|
max: Number.NEGATIVE_INFINITY
|
|
25639
|
-
}, { min: u, max: f } =
|
|
25617
|
+
}, { min: u, max: f } = w9(s);
|
|
25640
25618
|
let d, h;
|
|
25641
25619
|
function m() {
|
|
25642
25620
|
h = i[d];
|
|
@@ -25673,7 +25651,7 @@ class Wc {
|
|
|
25673
25651
|
}
|
|
25674
25652
|
_update(t) {
|
|
25675
25653
|
const r = this._cachedMeta;
|
|
25676
|
-
this.update(t || "default"), r._clip =
|
|
25654
|
+
this.update(t || "default"), r._clip = y9(oe(this.options.clip, v9(r.xScale, r.yScale, this.getMaxOverflow())));
|
|
25677
25655
|
}
|
|
25678
25656
|
update(t) {
|
|
25679
25657
|
}
|
|
@@ -25696,9 +25674,9 @@ class Wc {
|
|
|
25696
25674
|
let a;
|
|
25697
25675
|
if (t >= 0 && t < this._cachedMeta.data.length) {
|
|
25698
25676
|
const o = this._cachedMeta.data[t];
|
|
25699
|
-
a = o.$context || (o.$context =
|
|
25677
|
+
a = o.$context || (o.$context = O9(this.getContext(), t, o)), a.parsed = this.getParsed(t), a.raw = i.data[t], a.index = a.dataIndex = t;
|
|
25700
25678
|
} else
|
|
25701
|
-
a = this.$context || (this.$context =
|
|
25679
|
+
a = this.$context || (this.$context = S9(this.chart.getContext(), this.index)), a.dataset = i, a.index = a.datasetIndex = this.index;
|
|
25702
25680
|
return a.active = !!r, a.mode = n, a;
|
|
25703
25681
|
}
|
|
25704
25682
|
resolveDatasetElementOptions(t) {
|
|
@@ -25859,7 +25837,7 @@ class Wc {
|
|
|
25859
25837
|
]);
|
|
25860
25838
|
}
|
|
25861
25839
|
}
|
|
25862
|
-
function
|
|
25840
|
+
function P9(e, t) {
|
|
25863
25841
|
if (!e._cache.$bar) {
|
|
25864
25842
|
const r = e.getMatchingVisibleMetas(t);
|
|
25865
25843
|
let n = [];
|
|
@@ -25869,8 +25847,8 @@ function k9(e, t) {
|
|
|
25869
25847
|
}
|
|
25870
25848
|
return e._cache.$bar;
|
|
25871
25849
|
}
|
|
25872
|
-
function
|
|
25873
|
-
const t = e.iScale, r =
|
|
25850
|
+
function E9(e) {
|
|
25851
|
+
const t = e.iScale, r = P9(t, e.type);
|
|
25874
25852
|
let n = t._length, i, a, o, s;
|
|
25875
25853
|
const l = () => {
|
|
25876
25854
|
o === 32767 || o === -32768 || (go(s) && (n = Math.min(n, Math.abs(o - s) || n)), s = o);
|
|
@@ -25881,7 +25859,7 @@ function T9(e) {
|
|
|
25881
25859
|
o = t.getPixelForTick(i), l();
|
|
25882
25860
|
return n;
|
|
25883
25861
|
}
|
|
25884
|
-
function
|
|
25862
|
+
function C9(e, t, r, n) {
|
|
25885
25863
|
const i = r.barThickness;
|
|
25886
25864
|
let a, o;
|
|
25887
25865
|
return we(i) ? (a = t.min * r.categoryPercentage, o = r.barPercentage) : (a = i * n, o = 1), {
|
|
@@ -25890,7 +25868,7 @@ function M9(e, t, r, n) {
|
|
|
25890
25868
|
start: t.pixels[e] - a / 2
|
|
25891
25869
|
};
|
|
25892
25870
|
}
|
|
25893
|
-
function
|
|
25871
|
+
function k9(e, t, r, n) {
|
|
25894
25872
|
const i = t.pixels, a = i[e];
|
|
25895
25873
|
let o = e > 0 ? i[e - 1] : null, s = e < i.length - 1 ? i[e + 1] : null;
|
|
25896
25874
|
const l = r.categoryPercentage;
|
|
@@ -25902,7 +25880,7 @@ function j9(e, t, r, n) {
|
|
|
25902
25880
|
start: c
|
|
25903
25881
|
};
|
|
25904
25882
|
}
|
|
25905
|
-
function
|
|
25883
|
+
function T9(e, t, r, n) {
|
|
25906
25884
|
const i = r.parse(e[0], n), a = r.parse(e[1], n), o = Math.min(i, a), s = Math.max(i, a);
|
|
25907
25885
|
let l = o, c = s;
|
|
25908
25886
|
Math.abs(o) > Math.abs(s) && (l = s, c = o), t[r.axis] = c, t._custom = {
|
|
@@ -25915,7 +25893,7 @@ function D9(e, t, r, n) {
|
|
|
25915
25893
|
};
|
|
25916
25894
|
}
|
|
25917
25895
|
function tA(e, t, r, n) {
|
|
25918
|
-
return mt(e) ?
|
|
25896
|
+
return mt(e) ? T9(e, t, r, n) : t[r.axis] = r.parse(e, n), t;
|
|
25919
25897
|
}
|
|
25920
25898
|
function sx(e, t, r, n) {
|
|
25921
25899
|
const i = e.iScale, a = e.vScale, o = i.getLabels(), s = i === a, l = [];
|
|
@@ -25927,10 +25905,10 @@ function sx(e, t, r, n) {
|
|
|
25927
25905
|
function Vf(e) {
|
|
25928
25906
|
return e && e.barStart !== void 0 && e.barEnd !== void 0;
|
|
25929
25907
|
}
|
|
25930
|
-
function
|
|
25908
|
+
function M9(e, t, r) {
|
|
25931
25909
|
return e !== 0 ? Rr(e) : (t.isHorizontal() ? 1 : -1) * (t.min >= r ? 1 : -1);
|
|
25932
25910
|
}
|
|
25933
|
-
function
|
|
25911
|
+
function j9(e) {
|
|
25934
25912
|
let t, r, n, i, a;
|
|
25935
25913
|
return e.horizontal ? (t = e.base > e.x, r = "left", n = "right") : (t = e.base < e.y, r = "bottom", n = "top"), t ? (i = "end", a = "start") : (i = "start", a = "end"), {
|
|
25936
25914
|
start: r,
|
|
@@ -25940,7 +25918,7 @@ function I9(e) {
|
|
|
25940
25918
|
bottom: a
|
|
25941
25919
|
};
|
|
25942
25920
|
}
|
|
25943
|
-
function
|
|
25921
|
+
function D9(e, t, r, n) {
|
|
25944
25922
|
let i = t.borderSkipped;
|
|
25945
25923
|
const a = {};
|
|
25946
25924
|
if (!i) {
|
|
@@ -25956,22 +25934,22 @@ function R9(e, t, r, n) {
|
|
|
25956
25934
|
};
|
|
25957
25935
|
return;
|
|
25958
25936
|
}
|
|
25959
|
-
const { start: o, end: s, reverse: l, top: c, bottom: u } =
|
|
25937
|
+
const { start: o, end: s, reverse: l, top: c, bottom: u } = j9(e);
|
|
25960
25938
|
i === "middle" && r && (e.enableBorderRadius = !0, (r._top || 0) === n ? i = c : (r._bottom || 0) === n ? i = u : (a[lx(u, o, s, l)] = !0, i = c)), a[lx(i, o, s, l)] = !0, e.borderSkipped = a;
|
|
25961
25939
|
}
|
|
25962
25940
|
function lx(e, t, r, n) {
|
|
25963
|
-
return n ? (e =
|
|
25941
|
+
return n ? (e = N9(e, t, r), e = cx(e, r, t)) : e = cx(e, t, r), e;
|
|
25964
25942
|
}
|
|
25965
|
-
function
|
|
25943
|
+
function N9(e, t, r) {
|
|
25966
25944
|
return e === t ? r : e === r ? t : e;
|
|
25967
25945
|
}
|
|
25968
25946
|
function cx(e, t, r) {
|
|
25969
25947
|
return e === "start" ? t : e === "end" ? r : e;
|
|
25970
25948
|
}
|
|
25971
|
-
function
|
|
25949
|
+
function I9(e, { inflateAmount: t }, r) {
|
|
25972
25950
|
e.inflateAmount = t === "auto" ? r === 1 ? 0.33 : 0 : t;
|
|
25973
25951
|
}
|
|
25974
|
-
class
|
|
25952
|
+
class R9 extends Wc {
|
|
25975
25953
|
static id = "bar";
|
|
25976
25954
|
static defaults = {
|
|
25977
25955
|
datasetElementType: !1,
|
|
@@ -26061,7 +26039,7 @@ class F9 extends Wc {
|
|
|
26061
26039
|
};
|
|
26062
26040
|
d && (b.options = f || this.resolveDataElementOptions(h, t[h].active ? "active" : i));
|
|
26063
26041
|
const x = b.options || t[h].options;
|
|
26064
|
-
|
|
26042
|
+
D9(b, x, v, o), I9(b, x, u.ratio), this.updateElement(t[h], h, b, i);
|
|
26065
26043
|
}
|
|
26066
26044
|
}
|
|
26067
26045
|
_getStacks(t, r) {
|
|
@@ -26102,7 +26080,7 @@ class F9 extends Wc {
|
|
|
26102
26080
|
i.push(n.getPixelForValue(this.getParsed(a)[n.axis], a));
|
|
26103
26081
|
const s = t.barThickness;
|
|
26104
26082
|
return {
|
|
26105
|
-
min: s ||
|
|
26083
|
+
min: s || E9(r),
|
|
26106
26084
|
pixels: i,
|
|
26107
26085
|
start: n._startPixel,
|
|
26108
26086
|
end: n._endPixel,
|
|
@@ -26119,7 +26097,7 @@ class F9 extends Wc {
|
|
|
26119
26097
|
const g = !we(a) && !u ? a : d;
|
|
26120
26098
|
let v = r.getPixelForValue(g);
|
|
26121
26099
|
if (this.chart.getDataVisibility(t) ? m = r.getPixelForValue(d + h) : m = v, p = m - v, Math.abs(p) < o) {
|
|
26122
|
-
p =
|
|
26100
|
+
p = M9(p, r, s) * o, f === s && (v -= p / 2);
|
|
26123
26101
|
const b = r.getPixelForDecimal(0), x = r.getPixelForDecimal(1), S = Math.min(b, x), w = Math.max(b, x);
|
|
26124
26102
|
v = Math.max(Math.min(v, w), S), m = v + p, n && !u && (l._stacks[r.axis]._visualValues[i] = r.getValueForPixel(m) - r.getValueForPixel(v));
|
|
26125
26103
|
}
|
|
@@ -26139,7 +26117,7 @@ class F9 extends Wc {
|
|
|
26139
26117
|
let s, l;
|
|
26140
26118
|
const c = this._getAxisCount();
|
|
26141
26119
|
if (r.grouped) {
|
|
26142
|
-
const u = a ? this._getStackCount(t) : r.stackCount, f = i.barThickness === "flex" ?
|
|
26120
|
+
const u = a ? this._getStackCount(t) : r.stackCount, f = i.barThickness === "flex" ? k9(t, r, i, u * c) : C9(t, r, i, u * c), d = this.chart.options.indexAxis === "x" ? this.getDataset().xAxisID : this.getDataset().yAxisID, h = this._getAxis().indexOf(oe(d, this.getFirstScaleIdForIndexAxis())), m = this._getStackIndex(this.index, this._cachedMeta.stack, a ? t : void 0) + h;
|
|
26143
26121
|
s = f.start + f.chunk * m + f.chunk / 2, l = Math.min(o, f.chunk * f.ratio);
|
|
26144
26122
|
} else
|
|
26145
26123
|
s = n.getPixelForValue(this.getParsed(t)[n.axis], t), l = Math.min(o, r.min * r.ratio);
|
|
@@ -26157,7 +26135,7 @@ class F9 extends Wc {
|
|
|
26157
26135
|
this.getParsed(a)[r.axis] !== null && !n[a].hidden && n[a].draw(this._ctx);
|
|
26158
26136
|
}
|
|
26159
26137
|
}
|
|
26160
|
-
function
|
|
26138
|
+
function $9(e, t, r) {
|
|
26161
26139
|
let n = 1, i = 1, a = 0, o = 0;
|
|
26162
26140
|
if (t < Xe) {
|
|
26163
26141
|
const s = e, l = s + t, c = Math.cos(s), u = Math.sin(s), f = Math.cos(l), d = Math.sin(l), h = (x, S, w) => yo(x, s, l, !0) ? 1 : Math.max(S, S * r, w, w * r), m = (x, S, w) => yo(x, s, l, !0) ? -1 : Math.min(S, S * r, w, w * r), p = h(0, c, f), g = h(ut, u, d), v = m(je, c, f), b = m(je + ut, u, d);
|
|
@@ -26170,7 +26148,7 @@ function B9(e, t, r) {
|
|
|
26170
26148
|
offsetY: o
|
|
26171
26149
|
};
|
|
26172
26150
|
}
|
|
26173
|
-
class
|
|
26151
|
+
class L9 extends Wc {
|
|
26174
26152
|
static id = "doughnut";
|
|
26175
26153
|
static defaults = {
|
|
26176
26154
|
datasetElementType: !1,
|
|
@@ -26278,7 +26256,7 @@ class z9 extends Wc {
|
|
|
26278
26256
|
};
|
|
26279
26257
|
}
|
|
26280
26258
|
update(t) {
|
|
26281
|
-
const r = this.chart, { chartArea: n } = r, i = this._cachedMeta, a = i.data, o = this.getMaxBorderWidth() + this.getMaxOffset(a) + this.options.spacing, s = Math.max((Math.min(n.width, n.height) - o) / 2, 0), l = Math.min(
|
|
26259
|
+
const r = this.chart, { chartArea: n } = r, i = this._cachedMeta, a = i.data, o = this.getMaxBorderWidth() + this.getMaxOffset(a) + this.options.spacing, s = Math.max((Math.min(n.width, n.height) - o) / 2, 0), l = Math.min(z7(this.options.cutout, s), 1), c = this._getRingWeight(this.index), { circumference: u, rotation: f } = this._getRotationExtents(), { ratioX: d, ratioY: h, offsetX: m, offsetY: p } = $9(f, u, l), g = (n.width - o) / d, v = (n.height - o) / h, b = Math.max(Math.min(g, v) / 2, 0), x = DO(this.options.radius, b), S = Math.max(x * l, 0), w = (x - S) / this._getVisibleDatasetWeightTotal();
|
|
26282
26260
|
this.offsetX = m * x, this.offsetY = p * x, i.total = this.calculateTotal(), this.outerRadius = x - w * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - w * c, 0), this.updateElements(a, 0, a.length, t);
|
|
26283
26261
|
}
|
|
26284
26262
|
_circumference(t, r) {
|
|
@@ -26361,7 +26339,7 @@ class z9 extends Wc {
|
|
|
26361
26339
|
return this._getRingWeightOffset(this.chart.data.datasets.length) || 1;
|
|
26362
26340
|
}
|
|
26363
26341
|
}
|
|
26364
|
-
class
|
|
26342
|
+
class F9 extends Wc {
|
|
26365
26343
|
static id = "line";
|
|
26366
26344
|
static defaults = {
|
|
26367
26345
|
datasetElementType: "line",
|
|
@@ -26384,8 +26362,8 @@ class W9 extends Wc {
|
|
|
26384
26362
|
}
|
|
26385
26363
|
update(t) {
|
|
26386
26364
|
const r = this._cachedMeta, { dataset: n, data: i = [], _dataset: a } = r, o = this.chart._animationsDisabled;
|
|
26387
|
-
let { start: s, count: l } =
|
|
26388
|
-
this._drawStart = s, this._drawCount = l,
|
|
26365
|
+
let { start: s, count: l } = sW(r, i, o);
|
|
26366
|
+
this._drawStart = s, this._drawCount = l, lW(r) && (s = 0, l = i.length), n._chart = this.chart, n._datasetIndex = this.index, n._decimated = !!a._decimated, n.points = i;
|
|
26389
26367
|
const c = this.resolveDatasetElementOptions(t);
|
|
26390
26368
|
this.options.showLine || (c.borderWidth = 0), c.segment = this.options.segment, this.updateElement(n, void 0, {
|
|
26391
26369
|
animated: !o,
|
|
@@ -26463,13 +26441,13 @@ class wm {
|
|
|
26463
26441
|
return qn();
|
|
26464
26442
|
}
|
|
26465
26443
|
}
|
|
26466
|
-
var
|
|
26444
|
+
var B9 = {
|
|
26467
26445
|
_date: wm
|
|
26468
26446
|
};
|
|
26469
|
-
function
|
|
26447
|
+
function z9(e, t, r, n) {
|
|
26470
26448
|
const { controller: i, data: a, _sorted: o } = e, s = i._cachedMeta.iScale, l = e.dataset && e.dataset.options ? e.dataset.options.spanGaps : null;
|
|
26471
26449
|
if (s && t === s.axis && t !== "r" && o && a.length) {
|
|
26472
|
-
const c = s._reversePixels ?
|
|
26450
|
+
const c = s._reversePixels ? rW : ii;
|
|
26473
26451
|
if (n) {
|
|
26474
26452
|
if (i._sharedOptions) {
|
|
26475
26453
|
const u = a[0], f = typeof u.getRange == "function" && u.getRange(t);
|
|
@@ -26500,14 +26478,14 @@ function H9(e, t, r, n) {
|
|
|
26500
26478
|
function Vc(e, t, r, n, i) {
|
|
26501
26479
|
const a = e.getSortedVisibleDatasetMetas(), o = r[t];
|
|
26502
26480
|
for (let s = 0, l = a.length; s < l; ++s) {
|
|
26503
|
-
const { index: c, data: u } = a[s], { lo: f, hi: d } =
|
|
26481
|
+
const { index: c, data: u } = a[s], { lo: f, hi: d } = z9(a[s], t, o, i);
|
|
26504
26482
|
for (let h = f; h <= d; ++h) {
|
|
26505
26483
|
const m = u[h];
|
|
26506
26484
|
m.skip || n(m, c, h);
|
|
26507
26485
|
}
|
|
26508
26486
|
}
|
|
26509
26487
|
}
|
|
26510
|
-
function
|
|
26488
|
+
function W9(e) {
|
|
26511
26489
|
const t = e.indexOf("x") !== -1, r = e.indexOf("y") !== -1;
|
|
26512
26490
|
return function(n, i) {
|
|
26513
26491
|
const a = t ? Math.abs(n.x - i.x) : 0, o = r ? Math.abs(n.y - i.y) : 0;
|
|
@@ -26524,7 +26502,7 @@ function Hf(e, t, r, n, i) {
|
|
|
26524
26502
|
});
|
|
26525
26503
|
}, !0), a;
|
|
26526
26504
|
}
|
|
26527
|
-
function
|
|
26505
|
+
function V9(e, t, r, n) {
|
|
26528
26506
|
let i = [];
|
|
26529
26507
|
function a(o, s, l) {
|
|
26530
26508
|
const { startAngle: c, endAngle: u } = o.getProps([
|
|
@@ -26542,9 +26520,9 @@ function K9(e, t, r, n) {
|
|
|
26542
26520
|
}
|
|
26543
26521
|
return Vc(e, r, t, a), i;
|
|
26544
26522
|
}
|
|
26545
|
-
function
|
|
26523
|
+
function H9(e, t, r, n, i, a) {
|
|
26546
26524
|
let o = [];
|
|
26547
|
-
const s =
|
|
26525
|
+
const s = W9(r);
|
|
26548
26526
|
let l = Number.POSITIVE_INFINITY;
|
|
26549
26527
|
function c(u, f, d) {
|
|
26550
26528
|
const h = u.inRange(t.x, t.y, i);
|
|
@@ -26569,7 +26547,7 @@ function q9(e, t, r, n, i, a) {
|
|
|
26569
26547
|
return Vc(e, r, t, c), o;
|
|
26570
26548
|
}
|
|
26571
26549
|
function Uf(e, t, r, n, i, a) {
|
|
26572
|
-
return !a && !e.isPointInArea(t) ? [] : r === "r" && !n ?
|
|
26550
|
+
return !a && !e.isPointInArea(t) ? [] : r === "r" && !n ? V9(e, t, r, i) : H9(e, t, r, n, i, a);
|
|
26573
26551
|
}
|
|
26574
26552
|
function ux(e, t, r, n, i) {
|
|
26575
26553
|
const a = [], o = r === "x" ? "inXRange" : "inYRange";
|
|
@@ -26582,7 +26560,7 @@ function ux(e, t, r, n, i) {
|
|
|
26582
26560
|
}), s = s || l.inRange(t.x, t.y, i));
|
|
26583
26561
|
}), n && !s ? [] : a;
|
|
26584
26562
|
}
|
|
26585
|
-
var
|
|
26563
|
+
var U9 = {
|
|
26586
26564
|
modes: {
|
|
26587
26565
|
index(e, t, r, n) {
|
|
26588
26566
|
const i = Zn(t, e), a = r.axis || "x", o = r.includeInvisible || !1, s = r.intersect ? Hf(e, i, a, n, o) : Uf(e, i, a, !1, n, o), l = [];
|
|
@@ -26646,7 +26624,7 @@ function ja(e, t) {
|
|
|
26646
26624
|
return i.weight === a.weight ? i.index - a.index : i.weight - a.weight;
|
|
26647
26625
|
});
|
|
26648
26626
|
}
|
|
26649
|
-
function
|
|
26627
|
+
function K9(e) {
|
|
26650
26628
|
const t = [];
|
|
26651
26629
|
let r, n, i, a, o, s;
|
|
26652
26630
|
for (r = 0, n = (e || []).length; r < n; ++r)
|
|
@@ -26661,7 +26639,7 @@ function G9(e) {
|
|
|
26661
26639
|
});
|
|
26662
26640
|
return t;
|
|
26663
26641
|
}
|
|
26664
|
-
function
|
|
26642
|
+
function q9(e) {
|
|
26665
26643
|
const t = {};
|
|
26666
26644
|
for (const r of e) {
|
|
26667
26645
|
const { stack: n, pos: i, stackWeight: a } = r;
|
|
@@ -26677,8 +26655,8 @@ function X9(e) {
|
|
|
26677
26655
|
}
|
|
26678
26656
|
return t;
|
|
26679
26657
|
}
|
|
26680
|
-
function
|
|
26681
|
-
const r =
|
|
26658
|
+
function Y9(e, t) {
|
|
26659
|
+
const r = q9(e), { vBoxMaxWidth: n, hBoxMaxHeight: i } = t;
|
|
26682
26660
|
let a, o, s;
|
|
26683
26661
|
for (a = 0, o = e.length; a < o; ++a) {
|
|
26684
26662
|
s = e[a];
|
|
@@ -26687,8 +26665,8 @@ function Z9(e, t) {
|
|
|
26687
26665
|
}
|
|
26688
26666
|
return r;
|
|
26689
26667
|
}
|
|
26690
|
-
function
|
|
26691
|
-
const t =
|
|
26668
|
+
function G9(e) {
|
|
26669
|
+
const t = K9(e), r = ja(t.filter((c) => c.box.fullSize), !0), n = ja(Ma(t, "left"), !0), i = ja(Ma(t, "right")), a = ja(Ma(t, "top"), !0), o = ja(Ma(t, "bottom")), s = fx(t, "x"), l = fx(t, "y");
|
|
26692
26670
|
return {
|
|
26693
26671
|
fullSize: r,
|
|
26694
26672
|
leftAndTop: n.concat(a),
|
|
@@ -26704,7 +26682,7 @@ function dx(e, t, r, n) {
|
|
|
26704
26682
|
function nA(e, t) {
|
|
26705
26683
|
e.top = Math.max(e.top, t.top), e.left = Math.max(e.left, t.left), e.bottom = Math.max(e.bottom, t.bottom), e.right = Math.max(e.right, t.right);
|
|
26706
26684
|
}
|
|
26707
|
-
function
|
|
26685
|
+
function X9(e, t, r, n) {
|
|
26708
26686
|
const { pos: i, box: a } = r, o = e.maxPadding;
|
|
26709
26687
|
if (!fe(i)) {
|
|
26710
26688
|
r.size && (e[i] -= r.size);
|
|
@@ -26724,7 +26702,7 @@ function Q9(e, t, r, n) {
|
|
|
26724
26702
|
other: c
|
|
26725
26703
|
};
|
|
26726
26704
|
}
|
|
26727
|
-
function
|
|
26705
|
+
function Z9(e) {
|
|
26728
26706
|
const t = e.maxPadding;
|
|
26729
26707
|
function r(n) {
|
|
26730
26708
|
const i = Math.max(t[n] - e[n], 0);
|
|
@@ -26732,7 +26710,7 @@ function eV(e) {
|
|
|
26732
26710
|
}
|
|
26733
26711
|
e.y += r("top"), e.x += r("left"), r("right"), r("bottom");
|
|
26734
26712
|
}
|
|
26735
|
-
function
|
|
26713
|
+
function J9(e, t) {
|
|
26736
26714
|
const r = t.maxPadding;
|
|
26737
26715
|
function n(i) {
|
|
26738
26716
|
const a = {
|
|
@@ -26757,8 +26735,8 @@ function za(e, t, r, n) {
|
|
|
26757
26735
|
const i = [];
|
|
26758
26736
|
let a, o, s, l, c, u;
|
|
26759
26737
|
for (a = 0, o = e.length, c = 0; a < o; ++a) {
|
|
26760
|
-
s = e[a], l = s.box, l.update(s.width || t.w, s.height || t.h,
|
|
26761
|
-
const { same: f, other: d } =
|
|
26738
|
+
s = e[a], l = s.box, l.update(s.width || t.w, s.height || t.h, J9(s.horizontal, t));
|
|
26739
|
+
const { same: f, other: d } = X9(t, r, s, n);
|
|
26762
26740
|
c |= f && i.length, u = u || d, l.fullSize || i.push(s);
|
|
26763
26741
|
}
|
|
26764
26742
|
return c && za(i, t, r, n) || u;
|
|
@@ -26807,7 +26785,7 @@ var wn = {
|
|
|
26807
26785
|
update(e, t, r, n) {
|
|
26808
26786
|
if (!e)
|
|
26809
26787
|
return;
|
|
26810
|
-
const i = _r(e.options.layout.padding), a = Math.max(t - i.width, 0), o = Math.max(r - i.height, 0), s =
|
|
26788
|
+
const i = _r(e.options.layout.padding), a = Math.max(t - i.width, 0), o = Math.max(r - i.height, 0), s = G9(e.boxes), l = s.vertical, c = s.horizontal;
|
|
26811
26789
|
Oe(e.boxes, (p) => {
|
|
26812
26790
|
typeof p.beforeLayout == "function" && p.beforeLayout();
|
|
26813
26791
|
});
|
|
@@ -26827,8 +26805,8 @@ var wn = {
|
|
|
26827
26805
|
h: o,
|
|
26828
26806
|
x: i.left,
|
|
26829
26807
|
y: i.top
|
|
26830
|
-
}, i), m =
|
|
26831
|
-
za(s.fullSize, h, f, m), za(l, h, f, m), za(c, h, f, m) && za(l, h, f, m),
|
|
26808
|
+
}, i), m = Y9(l.concat(c), f);
|
|
26809
|
+
za(s.fullSize, h, f, m), za(l, h, f, m), za(c, h, f, m) && za(l, h, f, m), Z9(h), hx(s.leftAndTop, h, f, m), h.x += h.w, h.y += h.h, hx(s.rightAndBottom, h, f, m), e.chartArea = {
|
|
26832
26810
|
left: h.left,
|
|
26833
26811
|
top: h.top,
|
|
26834
26812
|
right: h.left + h.w,
|
|
@@ -26871,7 +26849,7 @@ class iA {
|
|
|
26871
26849
|
updateConfig(t) {
|
|
26872
26850
|
}
|
|
26873
26851
|
}
|
|
26874
|
-
class
|
|
26852
|
+
class Q9 extends iA {
|
|
26875
26853
|
acquireContext(t) {
|
|
26876
26854
|
return t && t.getContext && t.getContext("2d") || null;
|
|
26877
26855
|
}
|
|
@@ -26879,7 +26857,7 @@ class rV extends iA {
|
|
|
26879
26857
|
t.options.animation = !1;
|
|
26880
26858
|
}
|
|
26881
26859
|
}
|
|
26882
|
-
const Us = "$chartjs",
|
|
26860
|
+
const Us = "$chartjs", eV = {
|
|
26883
26861
|
touchstart: "mousedown",
|
|
26884
26862
|
touchmove: "mousemove",
|
|
26885
26863
|
touchend: "mouseup",
|
|
@@ -26890,7 +26868,7 @@ const Us = "$chartjs", nV = {
|
|
|
26890
26868
|
pointerleave: "mouseout",
|
|
26891
26869
|
pointerout: "mouseout"
|
|
26892
26870
|
}, px = (e) => e === null || e === "";
|
|
26893
|
-
function
|
|
26871
|
+
function tV(e, t) {
|
|
26894
26872
|
const r = e.style, n = e.getAttribute("height"), i = e.getAttribute("width");
|
|
26895
26873
|
if (e[Us] = {
|
|
26896
26874
|
initial: {
|
|
@@ -26915,17 +26893,17 @@ function iV(e, t) {
|
|
|
26915
26893
|
}
|
|
26916
26894
|
return e;
|
|
26917
26895
|
}
|
|
26918
|
-
const aA =
|
|
26896
|
+
const aA = ZW ? {
|
|
26919
26897
|
passive: !0
|
|
26920
26898
|
} : !1;
|
|
26921
|
-
function
|
|
26899
|
+
function rV(e, t, r) {
|
|
26922
26900
|
e && e.addEventListener(t, r, aA);
|
|
26923
26901
|
}
|
|
26924
|
-
function
|
|
26902
|
+
function nV(e, t, r) {
|
|
26925
26903
|
e && e.canvas && e.canvas.removeEventListener(t, r, aA);
|
|
26926
26904
|
}
|
|
26927
|
-
function
|
|
26928
|
-
const r =
|
|
26905
|
+
function iV(e, t) {
|
|
26906
|
+
const r = eV[e.type] || e.type, { x: n, y: i } = Zn(e, t);
|
|
26929
26907
|
return {
|
|
26930
26908
|
type: r,
|
|
26931
26909
|
chart: t,
|
|
@@ -26939,7 +26917,7 @@ function zl(e, t) {
|
|
|
26939
26917
|
if (r === t || r.contains(t))
|
|
26940
26918
|
return !0;
|
|
26941
26919
|
}
|
|
26942
|
-
function
|
|
26920
|
+
function aV(e, t, r) {
|
|
26943
26921
|
const n = e.canvas, i = new MutationObserver((a) => {
|
|
26944
26922
|
let o = !1;
|
|
26945
26923
|
for (const s of a)
|
|
@@ -26951,7 +26929,7 @@ function lV(e, t, r) {
|
|
|
26951
26929
|
subtree: !0
|
|
26952
26930
|
}), i;
|
|
26953
26931
|
}
|
|
26954
|
-
function
|
|
26932
|
+
function oV(e, t, r) {
|
|
26955
26933
|
const n = e.canvas, i = new MutationObserver((a) => {
|
|
26956
26934
|
let o = !1;
|
|
26957
26935
|
for (const s of a)
|
|
@@ -26971,13 +26949,13 @@ function oA() {
|
|
|
26971
26949
|
r.currentDevicePixelRatio !== e && t();
|
|
26972
26950
|
}));
|
|
26973
26951
|
}
|
|
26974
|
-
function
|
|
26952
|
+
function sV(e, t) {
|
|
26975
26953
|
xo.size || window.addEventListener("resize", oA), xo.set(e, t);
|
|
26976
26954
|
}
|
|
26977
|
-
function
|
|
26955
|
+
function lV(e) {
|
|
26978
26956
|
xo.delete(e), xo.size || window.removeEventListener("resize", oA);
|
|
26979
26957
|
}
|
|
26980
|
-
function
|
|
26958
|
+
function cV(e, t, r) {
|
|
26981
26959
|
const n = e.canvas, i = n && xm(n);
|
|
26982
26960
|
if (!i)
|
|
26983
26961
|
return;
|
|
@@ -26988,21 +26966,21 @@ function dV(e, t, r) {
|
|
|
26988
26966
|
const l = s[0], c = l.contentRect.width, u = l.contentRect.height;
|
|
26989
26967
|
c === 0 && u === 0 || a(c, u);
|
|
26990
26968
|
});
|
|
26991
|
-
return o.observe(i),
|
|
26969
|
+
return o.observe(i), sV(e, a), o;
|
|
26992
26970
|
}
|
|
26993
26971
|
function Kf(e, t, r) {
|
|
26994
|
-
r && r.disconnect(), t === "resize" &&
|
|
26972
|
+
r && r.disconnect(), t === "resize" && lV(e);
|
|
26995
26973
|
}
|
|
26996
|
-
function
|
|
26974
|
+
function uV(e, t, r) {
|
|
26997
26975
|
const n = e.canvas, i = BO((a) => {
|
|
26998
|
-
e.ctx !== null && r(
|
|
26976
|
+
e.ctx !== null && r(iV(a, e));
|
|
26999
26977
|
}, e);
|
|
27000
|
-
return
|
|
26978
|
+
return rV(n, t, i), i;
|
|
27001
26979
|
}
|
|
27002
|
-
class
|
|
26980
|
+
class fV extends iA {
|
|
27003
26981
|
acquireContext(t, r) {
|
|
27004
26982
|
const n = t && t.getContext && t.getContext("2d");
|
|
27005
|
-
return n && n.canvas === t ? (
|
|
26983
|
+
return n && n.canvas === t ? (tV(t, r), n) : null;
|
|
27006
26984
|
}
|
|
27007
26985
|
releaseContext(t) {
|
|
27008
26986
|
const r = t.canvas;
|
|
@@ -27024,10 +27002,10 @@ class pV extends iA {
|
|
|
27024
27002
|
addEventListener(t, r, n) {
|
|
27025
27003
|
this.removeEventListener(t, r);
|
|
27026
27004
|
const i = t.$proxies || (t.$proxies = {}), o = {
|
|
27027
|
-
attach:
|
|
27028
|
-
detach:
|
|
27029
|
-
resize:
|
|
27030
|
-
}[r] ||
|
|
27005
|
+
attach: aV,
|
|
27006
|
+
detach: oV,
|
|
27007
|
+
resize: cV
|
|
27008
|
+
}[r] || uV;
|
|
27031
27009
|
i[r] = o(t, r, n);
|
|
27032
27010
|
}
|
|
27033
27011
|
removeEventListener(t, r) {
|
|
@@ -27038,21 +27016,21 @@ class pV extends iA {
|
|
|
27038
27016
|
attach: Kf,
|
|
27039
27017
|
detach: Kf,
|
|
27040
27018
|
resize: Kf
|
|
27041
|
-
}[r] ||
|
|
27019
|
+
}[r] || nV)(t, r, i), n[r] = void 0;
|
|
27042
27020
|
}
|
|
27043
27021
|
getDevicePixelRatio() {
|
|
27044
27022
|
return window.devicePixelRatio;
|
|
27045
27023
|
}
|
|
27046
27024
|
getMaximumSize(t, r, n, i) {
|
|
27047
|
-
return
|
|
27025
|
+
return XW(t, r, n, i);
|
|
27048
27026
|
}
|
|
27049
27027
|
isAttached(t) {
|
|
27050
27028
|
const r = t && xm(t);
|
|
27051
27029
|
return !!(r && r.isConnected);
|
|
27052
27030
|
}
|
|
27053
27031
|
}
|
|
27054
|
-
function
|
|
27055
|
-
return !bm() || typeof OffscreenCanvas < "u" && e instanceof OffscreenCanvas ?
|
|
27032
|
+
function dV(e) {
|
|
27033
|
+
return !bm() || typeof OffscreenCanvas < "u" && e instanceof OffscreenCanvas ? Q9 : fV;
|
|
27056
27034
|
}
|
|
27057
27035
|
class Fn {
|
|
27058
27036
|
static defaults = {};
|
|
@@ -27085,11 +27063,11 @@ class Fn {
|
|
|
27085
27063
|
}), i;
|
|
27086
27064
|
}
|
|
27087
27065
|
}
|
|
27088
|
-
function
|
|
27089
|
-
const r = e.options.ticks, n =
|
|
27066
|
+
function hV(e, t) {
|
|
27067
|
+
const r = e.options.ticks, n = pV(e), i = Math.min(r.maxTicksLimit || n, n), a = r.major.enabled ? gV(t) : [], o = a.length, s = a[0], l = a[o - 1], c = [];
|
|
27090
27068
|
if (o > i)
|
|
27091
|
-
return
|
|
27092
|
-
const u =
|
|
27069
|
+
return vV(t, c, a, o / i), c;
|
|
27070
|
+
const u = mV(a, t, i);
|
|
27093
27071
|
if (o > 0) {
|
|
27094
27072
|
let f, d;
|
|
27095
27073
|
const h = o > 1 ? Math.round((l - s) / (o - 1)) : null;
|
|
@@ -27099,15 +27077,15 @@ function gV(e, t) {
|
|
|
27099
27077
|
}
|
|
27100
27078
|
return js(t, c, u), c;
|
|
27101
27079
|
}
|
|
27102
|
-
function
|
|
27080
|
+
function pV(e) {
|
|
27103
27081
|
const t = e.options.offset, r = e._tickSize(), n = e._length / r + (t ? 0 : 1), i = e._maxLength / r;
|
|
27104
27082
|
return Math.floor(Math.min(n, i));
|
|
27105
27083
|
}
|
|
27106
|
-
function
|
|
27107
|
-
const n =
|
|
27084
|
+
function mV(e, t, r) {
|
|
27085
|
+
const n = yV(e), i = t.length / r;
|
|
27108
27086
|
if (!n)
|
|
27109
27087
|
return Math.max(i, 1);
|
|
27110
|
-
const a =
|
|
27088
|
+
const a = G7(n);
|
|
27111
27089
|
for (let o = 0, s = a.length - 1; o < s; o++) {
|
|
27112
27090
|
const l = a[o];
|
|
27113
27091
|
if (l > i)
|
|
@@ -27115,14 +27093,14 @@ function yV(e, t, r) {
|
|
|
27115
27093
|
}
|
|
27116
27094
|
return Math.max(i, 1);
|
|
27117
27095
|
}
|
|
27118
|
-
function
|
|
27096
|
+
function gV(e) {
|
|
27119
27097
|
const t = [];
|
|
27120
27098
|
let r, n;
|
|
27121
27099
|
for (r = 0, n = e.length; r < n; r++)
|
|
27122
27100
|
e[r].major && t.push(r);
|
|
27123
27101
|
return t;
|
|
27124
27102
|
}
|
|
27125
|
-
function
|
|
27103
|
+
function vV(e, t, r, n) {
|
|
27126
27104
|
let i = 0, a = r[0], o;
|
|
27127
27105
|
for (n = Math.ceil(n), o = 0; o < e.length; o++)
|
|
27128
27106
|
o === a && (t.push(e[o]), i++, a = r[i * n]);
|
|
@@ -27135,7 +27113,7 @@ function js(e, t, r, n, i) {
|
|
|
27135
27113
|
for (c = Math.max(a, 0); c < o; c++)
|
|
27136
27114
|
c === u && (t.push(e[c]), s++, u = Math.round(a + s * r));
|
|
27137
27115
|
}
|
|
27138
|
-
function
|
|
27116
|
+
function yV(e) {
|
|
27139
27117
|
const t = e.length;
|
|
27140
27118
|
let r, n;
|
|
27141
27119
|
if (t < 2)
|
|
@@ -27145,7 +27123,7 @@ function wV(e) {
|
|
|
27145
27123
|
return !1;
|
|
27146
27124
|
return n;
|
|
27147
27125
|
}
|
|
27148
|
-
const
|
|
27126
|
+
const bV = (e) => e === "left" ? "right" : e === "right" ? "left" : e, gx = (e, t, r) => t === "top" || t === "left" ? e[t] + r : e[t] - r, vx = (e, t) => Math.min(t || e, e);
|
|
27149
27127
|
function yx(e, t) {
|
|
27150
27128
|
const r = [], n = e.length / t, i = e.length;
|
|
27151
27129
|
let a = 0;
|
|
@@ -27153,13 +27131,13 @@ function yx(e, t) {
|
|
|
27153
27131
|
r.push(e[Math.floor(a)]);
|
|
27154
27132
|
return r;
|
|
27155
27133
|
}
|
|
27156
|
-
function
|
|
27134
|
+
function xV(e, t, r) {
|
|
27157
27135
|
const n = e.ticks.length, i = Math.min(t, n - 1), a = e._startPixel, o = e._endPixel, s = 1e-6;
|
|
27158
27136
|
let l = e.getPixelForTick(i), c;
|
|
27159
27137
|
if (!(r && (n === 1 ? c = Math.max(l - a, o - l) : t === 0 ? c = (e.getPixelForTick(1) - l) / 2 : c = (l - e.getPixelForTick(i - 1)) / 2, l += i < t ? c : -c, l < a - s || l > o + s)))
|
|
27160
27138
|
return l;
|
|
27161
27139
|
}
|
|
27162
|
-
function
|
|
27140
|
+
function wV(e, t) {
|
|
27163
27141
|
Oe(e, (r) => {
|
|
27164
27142
|
const n = r.gc, i = n.length / 2;
|
|
27165
27143
|
let a;
|
|
@@ -27179,24 +27157,24 @@ function bx(e, t) {
|
|
|
27179
27157
|
const r = Wt(e.font, t), n = _r(e.padding);
|
|
27180
27158
|
return (mt(e.text) ? e.text.length : 1) * r.lineHeight + n.height;
|
|
27181
27159
|
}
|
|
27182
|
-
function
|
|
27160
|
+
function _V(e, t) {
|
|
27183
27161
|
return Ei(e, {
|
|
27184
27162
|
scale: t,
|
|
27185
27163
|
type: "scale"
|
|
27186
27164
|
});
|
|
27187
27165
|
}
|
|
27188
|
-
function
|
|
27166
|
+
function SV(e, t, r) {
|
|
27189
27167
|
return Ei(e, {
|
|
27190
27168
|
tick: r,
|
|
27191
27169
|
index: t,
|
|
27192
27170
|
type: "tick"
|
|
27193
27171
|
});
|
|
27194
27172
|
}
|
|
27195
|
-
function
|
|
27173
|
+
function OV(e, t, r) {
|
|
27196
27174
|
let n = zO(e);
|
|
27197
|
-
return (r && t !== "right" || !r && t === "right") && (n =
|
|
27175
|
+
return (r && t !== "right" || !r && t === "right") && (n = bV(n)), n;
|
|
27198
27176
|
}
|
|
27199
|
-
function
|
|
27177
|
+
function AV(e, t, r, n) {
|
|
27200
27178
|
const { top: i, left: a, bottom: o, right: s, chart: l } = e, { chartArea: c, scales: u } = l;
|
|
27201
27179
|
let f = 0, d, h, m;
|
|
27202
27180
|
const p = o - i, g = s - a;
|
|
@@ -27292,9 +27270,9 @@ class ga extends Fn {
|
|
|
27292
27270
|
right: 0,
|
|
27293
27271
|
top: 0,
|
|
27294
27272
|
bottom: 0
|
|
27295
|
-
}, n), this.ticks = null, this._labelSizes = null, this._gridLineItems = null, this._labelItems = null, this.beforeSetDimensions(), this.setDimensions(), this.afterSetDimensions(), this._maxLength = this.isHorizontal() ? this.width + n.left + n.right : this.height + n.top + n.bottom, this._dataLimitsCached || (this.beforeDataLimits(), this.determineDataLimits(), this.afterDataLimits(), this._range =
|
|
27273
|
+
}, n), this.ticks = null, this._labelSizes = null, this._gridLineItems = null, this._labelItems = null, this.beforeSetDimensions(), this.setDimensions(), this.afterSetDimensions(), this._maxLength = this.isHorizontal() ? this.width + n.left + n.right : this.height + n.top + n.bottom, this._dataLimitsCached || (this.beforeDataLimits(), this.determineDataLimits(), this.afterDataLimits(), this._range = CW(this, a, i), this._dataLimitsCached = !0), this.beforeBuildTicks(), this.ticks = this.buildTicks() || [], this.afterBuildTicks();
|
|
27296
27274
|
const l = s < this.ticks.length;
|
|
27297
|
-
this._convertTicksToLabels(l ? yx(this.ticks, s) : this.ticks), this.configure(), this.beforeCalculateLabelRotation(), this.calculateLabelRotation(), this.afterCalculateLabelRotation(), o.display && (o.autoSkip || o.source === "auto") && (this.ticks =
|
|
27275
|
+
this._convertTicksToLabels(l ? yx(this.ticks, s) : this.ticks), this.configure(), this.beforeCalculateLabelRotation(), this.calculateLabelRotation(), this.afterCalculateLabelRotation(), o.display && (o.autoSkip || o.source === "auto") && (this.ticks = hV(this, this.ticks), this._labelSizes = null, this.afterAutoSkip()), l && this._convertTicksToLabels(this.ticks), this.beforeFit(), this.fit(), this.afterFit(), this.afterUpdate();
|
|
27298
27276
|
}
|
|
27299
27277
|
configure() {
|
|
27300
27278
|
let t = this.options.reverse, r, n;
|
|
@@ -27373,7 +27351,7 @@ class ga extends Fn {
|
|
|
27373
27351
|
return;
|
|
27374
27352
|
}
|
|
27375
27353
|
const u = this._getLabelSizes(), f = u.widest.width, d = u.highest.height, h = kt(this.chart.width - f, 0, this.maxWidth);
|
|
27376
|
-
s = t.offset ? this.maxWidth / n : h / (n - 1), f + 6 > s && (s = h / (n - (t.offset ? 0.5 : 1)), l = this.maxHeight - Da(t.grid) - r.padding - bx(t.title, this.chart.options.font), c = Math.sqrt(f * f + d * d), o =
|
|
27354
|
+
s = t.offset ? this.maxWidth / n : h / (n - 1), f + 6 > s && (s = h / (n - (t.offset ? 0.5 : 1)), l = this.maxHeight - Da(t.grid) - r.padding - bx(t.title, this.chart.options.font), c = Math.sqrt(f * f + d * d), o = Q7(Math.min(Math.asin(kt((u.highest.height + 6) / s, -1, 1)), Math.asin(kt(l / c, -1, 1)) - Math.asin(kt(d / c, -1, 1)))), o = Math.max(i, Math.min(a, o))), this.labelRotation = o;
|
|
27377
27355
|
}
|
|
27378
27356
|
afterCalculateLabelRotation() {
|
|
27379
27357
|
$e(this.options.afterCalculateLabelRotation, [
|
|
@@ -27464,7 +27442,7 @@ class ga extends Fn {
|
|
|
27464
27442
|
w = m[d], !we(w) && !mt(w) && (x = Kb(i, v.data, v.gc, x, w), S += b);
|
|
27465
27443
|
o.push(x), s.push(S), c = Math.max(x, c), u = Math.max(S, u);
|
|
27466
27444
|
}
|
|
27467
|
-
|
|
27445
|
+
wV(a, r);
|
|
27468
27446
|
const O = o.indexOf(c), P = s.indexOf(u), C = (T) => ({
|
|
27469
27447
|
width: o[T] || 0,
|
|
27470
27448
|
height: s[T] || 0
|
|
@@ -27493,7 +27471,7 @@ class ga extends Fn {
|
|
|
27493
27471
|
getPixelForDecimal(t) {
|
|
27494
27472
|
this._reversePixels && (t = 1 - t);
|
|
27495
27473
|
const r = this._startPixel + t * this._length;
|
|
27496
|
-
return
|
|
27474
|
+
return tW(this._alignToPixels ? Kn(this.chart, r, 0) : r);
|
|
27497
27475
|
}
|
|
27498
27476
|
getDecimalForPixel(t) {
|
|
27499
27477
|
const r = (t - this._startPixel) / this._length;
|
|
@@ -27510,9 +27488,9 @@ class ga extends Fn {
|
|
|
27510
27488
|
const r = this.ticks || [];
|
|
27511
27489
|
if (t >= 0 && t < r.length) {
|
|
27512
27490
|
const n = r[t];
|
|
27513
|
-
return n.$context || (n.$context =
|
|
27491
|
+
return n.$context || (n.$context = SV(this.getContext(), t, n));
|
|
27514
27492
|
}
|
|
27515
|
-
return this.$context || (this.$context =
|
|
27493
|
+
return this.$context || (this.$context = _V(this.chart.getContext(), this));
|
|
27516
27494
|
}
|
|
27517
27495
|
_tickSize() {
|
|
27518
27496
|
const t = this.options.ticks, r = Qr(this.labelRotation), n = Math.abs(Math.cos(r)), i = Math.abs(Math.sin(r)), a = this._getLabelSizes(), o = t.autoSkipPadding || 0, s = a ? a.widest.width + o : 0, l = a ? a.highest.height + o : 0;
|
|
@@ -27555,7 +27533,7 @@ class ga extends Fn {
|
|
|
27555
27533
|
const j = oe(i.ticks.maxTicksLimit, f), $ = Math.max(1, Math.ceil(f / j));
|
|
27556
27534
|
for (x = 0; x < f; x += $) {
|
|
27557
27535
|
const z = this.getContext(x), V = a.setContext(z), ee = s.setContext(z), J = V.lineWidth, L = V.color, H = ee.dash || [], W = ee.dashOffset, te = V.tickWidth, X = V.tickColor, Z = V.tickBorderDash || [], Q = V.tickBorderDashOffset;
|
|
27558
|
-
S =
|
|
27536
|
+
S = xV(this, x, l), S !== void 0 && (w = Kn(n, S, J), c ? O = C = I = _ = w : P = T = M = N = w, h.push({
|
|
27559
27537
|
tx1: O,
|
|
27560
27538
|
ty1: P,
|
|
27561
27539
|
tx2: C,
|
|
@@ -27768,12 +27746,12 @@ class ga extends Fn {
|
|
|
27768
27746
|
const a = Wt(n.font), o = _r(n.padding), s = n.align;
|
|
27769
27747
|
let l = a.lineHeight / 2;
|
|
27770
27748
|
r === "bottom" || r === "center" || fe(r) ? (l += o.bottom, mt(n.text) && (l += a.lineHeight * (n.text.length - 1))) : l += o.top;
|
|
27771
|
-
const { titleX: c, titleY: u, maxWidth: f, rotation: d } =
|
|
27749
|
+
const { titleX: c, titleY: u, maxWidth: f, rotation: d } = AV(this, l, r, s);
|
|
27772
27750
|
Ll(t, n.text, 0, 0, a, {
|
|
27773
27751
|
color: n.color,
|
|
27774
27752
|
maxWidth: f,
|
|
27775
27753
|
rotation: d,
|
|
27776
|
-
textAlign:
|
|
27754
|
+
textAlign: OV(s, r, i),
|
|
27777
27755
|
textBaseline: "middle",
|
|
27778
27756
|
translation: [
|
|
27779
27757
|
c,
|
|
@@ -27842,11 +27820,11 @@ class Ds {
|
|
|
27842
27820
|
register(t) {
|
|
27843
27821
|
const r = Object.getPrototypeOf(t);
|
|
27844
27822
|
let n;
|
|
27845
|
-
|
|
27823
|
+
CV(r) && (n = this.register(r));
|
|
27846
27824
|
const i = this.items, a = t.id, o = this.scope + "." + a;
|
|
27847
27825
|
if (!a)
|
|
27848
27826
|
throw new Error("class does not have id: " + t);
|
|
27849
|
-
return a in i || (i[a] = t,
|
|
27827
|
+
return a in i || (i[a] = t, PV(t, o, n), this.override && et.override(t.id, t.overrides)), o;
|
|
27850
27828
|
}
|
|
27851
27829
|
get(t) {
|
|
27852
27830
|
return this.items[t];
|
|
@@ -27856,15 +27834,15 @@ class Ds {
|
|
|
27856
27834
|
n in r && delete r[n], i && n in et[i] && (delete et[i][n], this.override && delete wi[n]);
|
|
27857
27835
|
}
|
|
27858
27836
|
}
|
|
27859
|
-
function
|
|
27837
|
+
function PV(e, t, r) {
|
|
27860
27838
|
const n = mo(/* @__PURE__ */ Object.create(null), [
|
|
27861
27839
|
r ? et.get(r) : {},
|
|
27862
27840
|
et.get(t),
|
|
27863
27841
|
e.defaults
|
|
27864
27842
|
]);
|
|
27865
|
-
et.set(t, n), e.defaultRoutes &&
|
|
27843
|
+
et.set(t, n), e.defaultRoutes && EV(t, e.defaultRoutes), e.descriptors && et.describe(t, e.descriptors);
|
|
27866
27844
|
}
|
|
27867
|
-
function
|
|
27845
|
+
function EV(e, t) {
|
|
27868
27846
|
Object.keys(t).forEach((r) => {
|
|
27869
27847
|
const n = r.split("."), i = n.pop(), a = [
|
|
27870
27848
|
e
|
|
@@ -27872,10 +27850,10 @@ function TV(e, t) {
|
|
|
27872
27850
|
et.route(a, i, l, s);
|
|
27873
27851
|
});
|
|
27874
27852
|
}
|
|
27875
|
-
function
|
|
27853
|
+
function CV(e) {
|
|
27876
27854
|
return "id" in e && "defaults" in e;
|
|
27877
27855
|
}
|
|
27878
|
-
class
|
|
27856
|
+
class kV {
|
|
27879
27857
|
constructor() {
|
|
27880
27858
|
this.controllers = new Ds(Wc, "datasets", !0), this.elements = new Ds(Fn, "elements"), this.plugins = new Ds(Object, "plugins"), this.scales = new Ds(ga, "scales"), this._typedRegistries = [
|
|
27881
27859
|
this.controllers,
|
|
@@ -27955,8 +27933,8 @@ class jV {
|
|
|
27955
27933
|
return i;
|
|
27956
27934
|
}
|
|
27957
27935
|
}
|
|
27958
|
-
var Tr = /* @__PURE__ */ new
|
|
27959
|
-
class
|
|
27936
|
+
var Tr = /* @__PURE__ */ new kV();
|
|
27937
|
+
class TV {
|
|
27960
27938
|
constructor() {
|
|
27961
27939
|
this._init = [];
|
|
27962
27940
|
}
|
|
@@ -27988,15 +27966,15 @@ class DV {
|
|
|
27988
27966
|
return this._notifyStateChanges(t), r;
|
|
27989
27967
|
}
|
|
27990
27968
|
_createDescriptors(t, r) {
|
|
27991
|
-
const n = t && t.config, i = oe(n.options && n.options.plugins, {}), a =
|
|
27992
|
-
return i === !1 && !r ? [] :
|
|
27969
|
+
const n = t && t.config, i = oe(n.options && n.options.plugins, {}), a = MV(n);
|
|
27970
|
+
return i === !1 && !r ? [] : DV(t, a, i, r);
|
|
27993
27971
|
}
|
|
27994
27972
|
_notifyStateChanges(t) {
|
|
27995
27973
|
const r = this._oldCache || [], n = this._cache, i = (a, o) => a.filter((s) => !o.some((l) => s.plugin.id === l.plugin.id));
|
|
27996
27974
|
this._notify(i(r, n), t, "stop"), this._notify(i(n, r), t, "start");
|
|
27997
27975
|
}
|
|
27998
27976
|
}
|
|
27999
|
-
function
|
|
27977
|
+
function MV(e) {
|
|
28000
27978
|
const t = {}, r = [], n = Object.keys(Tr.plugins.items);
|
|
28001
27979
|
for (let a = 0; a < n.length; a++)
|
|
28002
27980
|
r.push(Tr.getPlugin(n[a]));
|
|
@@ -28010,16 +27988,16 @@ function NV(e) {
|
|
|
28010
27988
|
localIds: t
|
|
28011
27989
|
};
|
|
28012
27990
|
}
|
|
28013
|
-
function
|
|
27991
|
+
function jV(e, t) {
|
|
28014
27992
|
return !t && e === !1 ? null : e === !0 ? {} : e;
|
|
28015
27993
|
}
|
|
28016
|
-
function
|
|
27994
|
+
function DV(e, { plugins: t, localIds: r }, n, i) {
|
|
28017
27995
|
const a = [], o = e.getContext();
|
|
28018
27996
|
for (const s of t) {
|
|
28019
|
-
const l = s.id, c =
|
|
27997
|
+
const l = s.id, c = jV(n[l], i);
|
|
28020
27998
|
c !== null && a.push({
|
|
28021
27999
|
plugin: s,
|
|
28022
|
-
options:
|
|
28000
|
+
options: NV(e.config, {
|
|
28023
28001
|
plugin: s,
|
|
28024
28002
|
local: r[l]
|
|
28025
28003
|
}, c, o)
|
|
@@ -28027,7 +28005,7 @@ function RV(e, { plugins: t, localIds: r }, n, i) {
|
|
|
28027
28005
|
}
|
|
28028
28006
|
return a;
|
|
28029
28007
|
}
|
|
28030
|
-
function
|
|
28008
|
+
function NV(e, { plugin: t, local: r }, n, i) {
|
|
28031
28009
|
const a = e.pluginScopeKeys(t), o = e.getOptionScopes(n, a);
|
|
28032
28010
|
return r && t.defaults && o.push(t.defaults), e.createResolver(o, i, [
|
|
28033
28011
|
""
|
|
@@ -28041,18 +28019,18 @@ function Qd(e, t) {
|
|
|
28041
28019
|
const r = et.datasets[e] || {};
|
|
28042
28020
|
return ((t.datasets || {})[e] || {}).indexAxis || t.indexAxis || r.indexAxis || "x";
|
|
28043
28021
|
}
|
|
28044
|
-
function
|
|
28022
|
+
function IV(e, t) {
|
|
28045
28023
|
let r = e;
|
|
28046
28024
|
return e === "_index_" ? r = t : e === "_value_" && (r = t === "x" ? "y" : "x"), r;
|
|
28047
28025
|
}
|
|
28048
|
-
function
|
|
28026
|
+
function RV(e, t) {
|
|
28049
28027
|
return e === t ? "_index_" : "_value_";
|
|
28050
28028
|
}
|
|
28051
28029
|
function xx(e) {
|
|
28052
28030
|
if (e === "x" || e === "y" || e === "r")
|
|
28053
28031
|
return e;
|
|
28054
28032
|
}
|
|
28055
|
-
function
|
|
28033
|
+
function $V(e) {
|
|
28056
28034
|
if (e === "top" || e === "bottom")
|
|
28057
28035
|
return "x";
|
|
28058
28036
|
if (e === "left" || e === "right")
|
|
@@ -28062,7 +28040,7 @@ function eh(e, ...t) {
|
|
|
28062
28040
|
if (xx(e))
|
|
28063
28041
|
return e;
|
|
28064
28042
|
for (const r of t) {
|
|
28065
|
-
const n = r.axis ||
|
|
28043
|
+
const n = r.axis || $V(r.position) || e.length > 1 && xx(e[0].toLowerCase());
|
|
28066
28044
|
if (n)
|
|
28067
28045
|
return n;
|
|
28068
28046
|
}
|
|
@@ -28074,7 +28052,7 @@ function wx(e, t, r) {
|
|
|
28074
28052
|
axis: t
|
|
28075
28053
|
};
|
|
28076
28054
|
}
|
|
28077
|
-
function
|
|
28055
|
+
function LV(e, t) {
|
|
28078
28056
|
if (t.data && t.data.datasets) {
|
|
28079
28057
|
const r = t.data.datasets.filter((n) => n.xAxisID === e || n.yAxisID === e);
|
|
28080
28058
|
if (r.length)
|
|
@@ -28082,7 +28060,7 @@ function zV(e, t) {
|
|
|
28082
28060
|
}
|
|
28083
28061
|
return {};
|
|
28084
28062
|
}
|
|
28085
|
-
function
|
|
28063
|
+
function FV(e, t) {
|
|
28086
28064
|
const r = wi[e.type] || {
|
|
28087
28065
|
scales: {}
|
|
28088
28066
|
}, n = t.scales || {}, i = Qd(e.type, t), a = /* @__PURE__ */ Object.create(null);
|
|
@@ -28092,7 +28070,7 @@ function WV(e, t) {
|
|
|
28092
28070
|
return console.error(`Invalid scale configuration for scale: ${o}`);
|
|
28093
28071
|
if (s._proxy)
|
|
28094
28072
|
return console.warn(`Ignoring resolver passed as options for scale: ${o}`);
|
|
28095
|
-
const l = eh(o, s,
|
|
28073
|
+
const l = eh(o, s, LV(o, e), et.scales[s.type]), c = RV(l, i), u = r.scales || {};
|
|
28096
28074
|
a[o] = Ka(/* @__PURE__ */ Object.create(null), [
|
|
28097
28075
|
{
|
|
28098
28076
|
axis: l
|
|
@@ -28104,7 +28082,7 @@ function WV(e, t) {
|
|
|
28104
28082
|
}), e.data.datasets.forEach((o) => {
|
|
28105
28083
|
const s = o.type || e.type, l = o.indexAxis || Qd(s, t), u = (wi[s] || {}).scales || {};
|
|
28106
28084
|
Object.keys(u).forEach((f) => {
|
|
28107
|
-
const d =
|
|
28085
|
+
const d = IV(f, l), h = o[d + "AxisID"] || d;
|
|
28108
28086
|
a[h] = a[h] || /* @__PURE__ */ Object.create(null), Ka(a[h], [
|
|
28109
28087
|
{
|
|
28110
28088
|
axis: d
|
|
@@ -28123,12 +28101,12 @@ function WV(e, t) {
|
|
|
28123
28101
|
}
|
|
28124
28102
|
function sA(e) {
|
|
28125
28103
|
const t = e.options || (e.options = {});
|
|
28126
|
-
t.plugins = oe(t.plugins, {}), t.scales =
|
|
28104
|
+
t.plugins = oe(t.plugins, {}), t.scales = FV(e, t);
|
|
28127
28105
|
}
|
|
28128
28106
|
function lA(e) {
|
|
28129
28107
|
return e = e || {}, e.datasets = e.datasets || [], e.labels = e.labels || [], e;
|
|
28130
28108
|
}
|
|
28131
|
-
function
|
|
28109
|
+
function BV(e) {
|
|
28132
28110
|
return e = e || {}, e.data = lA(e.data), sA(e), e;
|
|
28133
28111
|
}
|
|
28134
28112
|
const _x = /* @__PURE__ */ new Map(), cA = /* @__PURE__ */ new Set();
|
|
@@ -28140,9 +28118,9 @@ const Na = (e, t, r) => {
|
|
|
28140
28118
|
const n = xi(t, r);
|
|
28141
28119
|
n !== void 0 && e.add(n);
|
|
28142
28120
|
};
|
|
28143
|
-
class
|
|
28121
|
+
class zV {
|
|
28144
28122
|
constructor(t) {
|
|
28145
|
-
this._config =
|
|
28123
|
+
this._config = BV(t), this._scopeCache = /* @__PURE__ */ new Map(), this._resolverCache = /* @__PURE__ */ new Map();
|
|
28146
28124
|
}
|
|
28147
28125
|
get platform() {
|
|
28148
28126
|
return this._config.platform;
|
|
@@ -28250,7 +28228,7 @@ class HV {
|
|
|
28250
28228
|
$shared: !0
|
|
28251
28229
|
}, { resolver: o, subPrefixes: s } = Sx(this._resolverCache, t, i);
|
|
28252
28230
|
let l = o;
|
|
28253
|
-
if (
|
|
28231
|
+
if (VV(o, r)) {
|
|
28254
28232
|
a.$shared = !1, n = jn(n) ? n() : n;
|
|
28255
28233
|
const c = this.createResolver(t, n, s);
|
|
28256
28234
|
l = ta(o, n, c);
|
|
@@ -28276,18 +28254,18 @@ function Sx(e, t, r) {
|
|
|
28276
28254
|
subPrefixes: r.filter((s) => !s.toLowerCase().includes("hover"))
|
|
28277
28255
|
}, n.set(i, a)), a;
|
|
28278
28256
|
}
|
|
28279
|
-
const
|
|
28280
|
-
function
|
|
28257
|
+
const WV = (e) => fe(e) && Object.getOwnPropertyNames(e).some((t) => jn(e[t]));
|
|
28258
|
+
function VV(e, t) {
|
|
28281
28259
|
const { isScriptable: r, isIndexable: n } = UO(e);
|
|
28282
28260
|
for (const i of t) {
|
|
28283
28261
|
const a = r(i), o = n(i), s = (o || a) && e[i];
|
|
28284
|
-
if (a && (jn(s) ||
|
|
28262
|
+
if (a && (jn(s) || WV(s)) || o && mt(s))
|
|
28285
28263
|
return !0;
|
|
28286
28264
|
}
|
|
28287
28265
|
return !1;
|
|
28288
28266
|
}
|
|
28289
|
-
var
|
|
28290
|
-
const
|
|
28267
|
+
var HV = "4.5.0";
|
|
28268
|
+
const UV = [
|
|
28291
28269
|
"top",
|
|
28292
28270
|
"bottom",
|
|
28293
28271
|
"left",
|
|
@@ -28295,7 +28273,7 @@ const YV = [
|
|
|
28295
28273
|
"chartArea"
|
|
28296
28274
|
];
|
|
28297
28275
|
function Ox(e, t) {
|
|
28298
|
-
return e === "top" || e === "bottom" ||
|
|
28276
|
+
return e === "top" || e === "bottom" || UV.indexOf(e) === -1 && t === "x";
|
|
28299
28277
|
}
|
|
28300
28278
|
function Ax(e, t) {
|
|
28301
28279
|
return function(r, n) {
|
|
@@ -28308,7 +28286,7 @@ function Px(e) {
|
|
|
28308
28286
|
e
|
|
28309
28287
|
], t);
|
|
28310
28288
|
}
|
|
28311
|
-
function
|
|
28289
|
+
function KV(e) {
|
|
28312
28290
|
const t = e.chart, r = t.options.animation;
|
|
28313
28291
|
$e(r && r.onProgress, [
|
|
28314
28292
|
e
|
|
@@ -28321,7 +28299,7 @@ const Ks = {}, Ex = (e) => {
|
|
|
28321
28299
|
const t = uA(e);
|
|
28322
28300
|
return Object.values(Ks).filter((r) => r.canvas === t).pop();
|
|
28323
28301
|
};
|
|
28324
|
-
function
|
|
28302
|
+
function qV(e, t, r) {
|
|
28325
28303
|
const n = Object.keys(e);
|
|
28326
28304
|
for (const i of n) {
|
|
28327
28305
|
const a = +i;
|
|
@@ -28331,7 +28309,7 @@ function XV(e, t, r) {
|
|
|
28331
28309
|
}
|
|
28332
28310
|
}
|
|
28333
28311
|
}
|
|
28334
|
-
function
|
|
28312
|
+
function YV(e, t, r, n) {
|
|
28335
28313
|
return !r || e.type === "mouseout" ? null : n ? t : e;
|
|
28336
28314
|
}
|
|
28337
28315
|
let Ut = class {
|
|
@@ -28339,7 +28317,7 @@ let Ut = class {
|
|
|
28339
28317
|
static instances = Ks;
|
|
28340
28318
|
static overrides = wi;
|
|
28341
28319
|
static registry = Tr;
|
|
28342
|
-
static version =
|
|
28320
|
+
static version = HV;
|
|
28343
28321
|
static getChart = Ex;
|
|
28344
28322
|
static register(...t) {
|
|
28345
28323
|
Tr.add(...t), Cx();
|
|
@@ -28348,17 +28326,17 @@ let Ut = class {
|
|
|
28348
28326
|
Tr.remove(...t), Cx();
|
|
28349
28327
|
}
|
|
28350
28328
|
constructor(t, r) {
|
|
28351
|
-
const n = this.config = new
|
|
28329
|
+
const n = this.config = new zV(r), i = uA(t), a = Ex(i);
|
|
28352
28330
|
if (a)
|
|
28353
28331
|
throw new Error("Canvas is already in use. Chart with ID '" + a.id + "' must be destroyed before the canvas with ID '" + a.canvas.id + "' can be reused.");
|
|
28354
28332
|
const o = n.createResolver(n.chartOptionScopes(), this.getContext());
|
|
28355
|
-
this.platform = new (n.platform ||
|
|
28333
|
+
this.platform = new (n.platform || dV(i))(), this.platform.updateConfig(n);
|
|
28356
28334
|
const s = this.platform.acquireContext(i, o.aspectRatio), l = s && s.canvas, c = l && l.height, u = l && l.width;
|
|
28357
|
-
if (this.id =
|
|
28335
|
+
if (this.id = B7(), this.ctx = s, this.canvas = l, this.width = u, this.height = c, this._options = o, 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 TV(), this.$proxies = {}, this._hiddenIndices = {}, this.attached = !1, this._animationsDisabled = void 0, this.$context = void 0, this._doResize = aW((f) => this.update(f), o.resizeDelay || 0), this._dataChanges = [], Ks[this.id] = this, !s || !l) {
|
|
28358
28336
|
console.error("Failed to create chart: can't acquire context from the given item");
|
|
28359
28337
|
return;
|
|
28360
28338
|
}
|
|
28361
|
-
Ur.listen(this, "complete", Px), Ur.listen(this, "progress",
|
|
28339
|
+
Ur.listen(this, "complete", Px), Ur.listen(this, "progress", KV), this._initialize(), this.attached && this.update();
|
|
28362
28340
|
}
|
|
28363
28341
|
get aspectRatio() {
|
|
28364
28342
|
const { options: { aspectRatio: t, maintainAspectRatio: r }, width: n, height: i, _aspectRatio: a } = this;
|
|
@@ -28520,7 +28498,7 @@ let Ut = class {
|
|
|
28520
28498
|
const { _hiddenIndices: t } = this, r = this._getUniformDataChanges() || [];
|
|
28521
28499
|
for (const { method: n, start: i, count: a } of r) {
|
|
28522
28500
|
const o = n === "_removeElements" ? -a : a;
|
|
28523
|
-
|
|
28501
|
+
qV(t, i, o);
|
|
28524
28502
|
}
|
|
28525
28503
|
}
|
|
28526
28504
|
_getUniformDataChanges() {
|
|
@@ -28627,14 +28605,14 @@ let Ut = class {
|
|
|
28627
28605
|
meta: t,
|
|
28628
28606
|
index: t.index,
|
|
28629
28607
|
cancelable: !0
|
|
28630
|
-
}, i =
|
|
28608
|
+
}, i = f9(this, t);
|
|
28631
28609
|
this.notifyPlugins("beforeDatasetDraw", n) !== !1 && (i && hm(r, i), t.controller.draw(), i && pm(r), n.cancelable = !1, this.notifyPlugins("afterDatasetDraw", n));
|
|
28632
28610
|
}
|
|
28633
28611
|
isPointInArea(t) {
|
|
28634
28612
|
return bo(t, this.chartArea, this._minPadding);
|
|
28635
28613
|
}
|
|
28636
28614
|
getElementsAtEventForMode(t, r, n, i) {
|
|
28637
|
-
const a =
|
|
28615
|
+
const a = U9.modes[r];
|
|
28638
28616
|
return typeof a == "function" ? a(this, t, n, i) : [];
|
|
28639
28617
|
}
|
|
28640
28618
|
getDatasetMeta(t) {
|
|
@@ -28793,7 +28771,7 @@ let Ut = class {
|
|
|
28793
28771
|
return n.cancelable = !1, this.notifyPlugins("afterEvent", n, i), (a || n.changed) && this.render(), this;
|
|
28794
28772
|
}
|
|
28795
28773
|
_handleEvent(t, r, n) {
|
|
28796
|
-
const { _active: i = [], options: a } = this, o = r, s = this._getActiveElements(t, i, n, o), l =
|
|
28774
|
+
const { _active: i = [], options: a } = this, o = r, s = this._getActiveElements(t, i, n, o), l = K7(t), c = YV(t, this._lastEvent, n, l);
|
|
28797
28775
|
n && (this._lastEvent = null, $e(a.onHover, [
|
|
28798
28776
|
t,
|
|
28799
28777
|
s,
|
|
@@ -28818,7 +28796,7 @@ let Ut = class {
|
|
|
28818
28796
|
function Cx() {
|
|
28819
28797
|
return Oe(Ut.instances, (e) => e._plugins.invalidate());
|
|
28820
28798
|
}
|
|
28821
|
-
function
|
|
28799
|
+
function GV(e, t, r) {
|
|
28822
28800
|
const { startAngle: n, x: i, y: a, outerRadius: o, innerRadius: s, options: l } = t, { borderWidth: c, borderJoinStyle: u } = l, f = Math.min(c / o, br(n - r));
|
|
28823
28801
|
if (e.beginPath(), e.arc(i, a, o - c / 2, n + f / 2, r - f / 2), s > 0) {
|
|
28824
28802
|
const d = Math.min(c / s, br(n - r));
|
|
@@ -28834,12 +28812,12 @@ function JV(e, t, r) {
|
|
|
28834
28812
|
}
|
|
28835
28813
|
e.closePath(), e.moveTo(0, 0), e.rect(0, 0, e.canvas.width, e.canvas.height), e.clip("evenodd");
|
|
28836
28814
|
}
|
|
28837
|
-
function
|
|
28815
|
+
function XV(e, t, r) {
|
|
28838
28816
|
const { startAngle: n, pixelMargin: i, x: a, y: o, outerRadius: s, innerRadius: l } = t;
|
|
28839
28817
|
let c = i / s;
|
|
28840
28818
|
e.beginPath(), e.arc(a, o, s, n - c, r + c), l > i ? (c = i / l, e.arc(a, o, l, r + c, n - c, !0)) : e.arc(a, o, i, r + ut, n - ut), e.closePath(), e.clip();
|
|
28841
28819
|
}
|
|
28842
|
-
function
|
|
28820
|
+
function ZV(e) {
|
|
28843
28821
|
return mm(e, [
|
|
28844
28822
|
"outerStart",
|
|
28845
28823
|
"outerEnd",
|
|
@@ -28847,8 +28825,8 @@ function eH(e) {
|
|
|
28847
28825
|
"innerEnd"
|
|
28848
28826
|
]);
|
|
28849
28827
|
}
|
|
28850
|
-
function
|
|
28851
|
-
const i =
|
|
28828
|
+
function JV(e, t, r, n) {
|
|
28829
|
+
const i = ZV(e.options.borderRadius), a = (r - t) / 2, o = Math.min(a, n * t / 2), s = (l) => {
|
|
28852
28830
|
const c = (r - Math.min(a, l)) * n / 2;
|
|
28853
28831
|
return kt(l, 0, Math.min(a, c));
|
|
28854
28832
|
};
|
|
@@ -28873,7 +28851,7 @@ function Wl(e, t, r, n, i, a) {
|
|
|
28873
28851
|
const $ = u > 0 ? u - n : 0, z = f > 0 ? f - n : 0, V = ($ + z) / 2, ee = V !== 0 ? m * V / (V + n) : m;
|
|
28874
28852
|
h = (m - ee) / 2;
|
|
28875
28853
|
}
|
|
28876
|
-
const p = Math.max(1e-3, m * f - r / je) / f, g = (m - p) / 2, v = l + g + h, b = i - g - h, { outerStart: x, outerEnd: S, innerStart: w, innerEnd: O } =
|
|
28854
|
+
const p = Math.max(1e-3, m * f - r / je) / f, g = (m - p) / 2, v = l + g + h, b = i - g - h, { outerStart: x, outerEnd: S, innerStart: w, innerEnd: O } = JV(t, d, f, b - v), P = f - x, C = f - S, T = v + x / P, I = b - S / C, M = d + w, _ = d + O, N = v + w / M, j = b - O / _;
|
|
28877
28855
|
if (e.beginPath(), a) {
|
|
28878
28856
|
const $ = (T + I) / 2;
|
|
28879
28857
|
if (e.arc(o, s, f, T, $), e.arc(o, s, f, $, I), S > 0) {
|
|
@@ -28904,7 +28882,7 @@ function Wl(e, t, r, n, i, a) {
|
|
|
28904
28882
|
}
|
|
28905
28883
|
e.closePath();
|
|
28906
28884
|
}
|
|
28907
|
-
function
|
|
28885
|
+
function QV(e, t, r, n, i) {
|
|
28908
28886
|
const { fullCircles: a, startAngle: o, circumference: s } = t;
|
|
28909
28887
|
let l = t.endAngle;
|
|
28910
28888
|
if (a) {
|
|
@@ -28915,7 +28893,7 @@ function rH(e, t, r, n, i) {
|
|
|
28915
28893
|
}
|
|
28916
28894
|
return Wl(e, t, r, n, l, i), e.fill(), l;
|
|
28917
28895
|
}
|
|
28918
|
-
function
|
|
28896
|
+
function eH(e, t, r, n, i) {
|
|
28919
28897
|
const { fullCircles: a, startAngle: o, circumference: s, options: l } = t, { borderWidth: c, borderJoinStyle: u, borderDash: f, borderDashOffset: d, borderRadius: h } = l, m = l.borderAlign === "inner";
|
|
28920
28898
|
if (!c)
|
|
28921
28899
|
return;
|
|
@@ -28927,7 +28905,7 @@ function nH(e, t, r, n, i) {
|
|
|
28927
28905
|
e.stroke();
|
|
28928
28906
|
isNaN(s) || (p = o + (s % Xe || Xe));
|
|
28929
28907
|
}
|
|
28930
|
-
m &&
|
|
28908
|
+
m && XV(e, t, p), l.selfJoin && p - o >= je && h === 0 && u !== "miter" && GV(e, t, p), a || (Wl(e, t, r, n, p, i), e.stroke());
|
|
28931
28909
|
}
|
|
28932
28910
|
class _m extends Fn {
|
|
28933
28911
|
static id = "arc";
|
|
@@ -29003,17 +28981,17 @@ class _m extends Fn {
|
|
|
29003
28981
|
const s = (this.startAngle + this.endAngle) / 2;
|
|
29004
28982
|
t.translate(Math.cos(s) * i, Math.sin(s) * i);
|
|
29005
28983
|
const l = 1 - Math.sin(Math.min(je, n || 0)), c = i * l;
|
|
29006
|
-
t.fillStyle = r.backgroundColor, t.strokeStyle = r.borderColor,
|
|
28984
|
+
t.fillStyle = r.backgroundColor, t.strokeStyle = r.borderColor, QV(t, this, c, a, o), eH(t, this, c, a, o), t.restore();
|
|
29007
28985
|
}
|
|
29008
28986
|
}
|
|
29009
28987
|
function fA(e, t, r = t) {
|
|
29010
28988
|
e.lineCap = oe(r.borderCapStyle, t.borderCapStyle), e.setLineDash(oe(r.borderDash, t.borderDash)), e.lineDashOffset = oe(r.borderDashOffset, t.borderDashOffset), e.lineJoin = oe(r.borderJoinStyle, t.borderJoinStyle), e.lineWidth = oe(r.borderWidth, t.borderWidth), e.strokeStyle = oe(r.borderColor, t.borderColor);
|
|
29011
28989
|
}
|
|
29012
|
-
function
|
|
28990
|
+
function tH(e, t, r) {
|
|
29013
28991
|
e.lineTo(r.x, r.y);
|
|
29014
28992
|
}
|
|
29015
|
-
function
|
|
29016
|
-
return e.stepped ?
|
|
28993
|
+
function rH(e) {
|
|
28994
|
+
return e.stepped ? bW : e.tension || e.cubicInterpolationMode === "monotone" ? xW : tH;
|
|
29017
28995
|
}
|
|
29018
28996
|
function dA(e, t, r = {}) {
|
|
29019
28997
|
const n = e.length, { start: i = 0, end: a = n - 1 } = r, { start: o, end: s } = t, l = Math.max(i, o), c = Math.min(a, s), u = i < o && a < o || i > s && a > s;
|
|
@@ -29024,14 +29002,14 @@ function dA(e, t, r = {}) {
|
|
|
29024
29002
|
ilen: c < l && !u ? n + c - l : c - l
|
|
29025
29003
|
};
|
|
29026
29004
|
}
|
|
29027
|
-
function
|
|
29028
|
-
const { points: i, options: a } = t, { count: o, start: s, loop: l, ilen: c } = dA(i, r, n), u =
|
|
29005
|
+
function nH(e, t, r, n) {
|
|
29006
|
+
const { points: i, options: a } = t, { count: o, start: s, loop: l, ilen: c } = dA(i, r, n), u = rH(a);
|
|
29029
29007
|
let { move: f = !0, reverse: d } = n || {}, h, m, p;
|
|
29030
29008
|
for (h = 0; h <= c; ++h)
|
|
29031
29009
|
m = i[(s + (d ? c - h : h)) % o], !m.skip && (f ? (e.moveTo(m.x, m.y), f = !1) : u(e, p, m, d, a.stepped), p = m);
|
|
29032
29010
|
return l && (m = i[(s + (d ? c : 0)) % o], u(e, p, m, d, a.stepped)), !!l;
|
|
29033
29011
|
}
|
|
29034
|
-
function
|
|
29012
|
+
function iH(e, t, r, n) {
|
|
29035
29013
|
const i = t.points, { count: a, start: o, ilen: s } = dA(i, r, n), { move: l = !0, reverse: c } = n || {};
|
|
29036
29014
|
let u = 0, f = 0, d, h, m, p, g, v;
|
|
29037
29015
|
const b = (S) => (o + (c ? s - S : S)) % a, x = () => {
|
|
@@ -29047,16 +29025,16 @@ function sH(e, t, r, n) {
|
|
|
29047
29025
|
}
|
|
29048
29026
|
function th(e) {
|
|
29049
29027
|
const t = e.options, r = t.borderDash && t.borderDash.length;
|
|
29050
|
-
return !e._decimated && !e._loop && !t.tension && t.cubicInterpolationMode !== "monotone" && !t.stepped && !r ?
|
|
29028
|
+
return !e._decimated && !e._loop && !t.tension && t.cubicInterpolationMode !== "monotone" && !t.stepped && !r ? iH : nH;
|
|
29051
29029
|
}
|
|
29052
|
-
function
|
|
29053
|
-
return e.stepped ?
|
|
29030
|
+
function aH(e) {
|
|
29031
|
+
return e.stepped ? JW : e.tension || e.cubicInterpolationMode === "monotone" ? QW : Jn;
|
|
29054
29032
|
}
|
|
29055
|
-
function
|
|
29033
|
+
function oH(e, t, r, n) {
|
|
29056
29034
|
let i = t._path;
|
|
29057
29035
|
i || (i = t._path = new Path2D(), t.path(i, r, n) && i.closePath()), fA(e, t.options), e.stroke(i);
|
|
29058
29036
|
}
|
|
29059
|
-
function
|
|
29037
|
+
function sH(e, t, r, n) {
|
|
29060
29038
|
const { segments: i, options: a } = t, o = th(t);
|
|
29061
29039
|
for (const s of i)
|
|
29062
29040
|
fA(e, a, s.style), e.beginPath(), o(e, t, s, {
|
|
@@ -29064,9 +29042,9 @@ function uH(e, t, r, n) {
|
|
|
29064
29042
|
end: r + n - 1
|
|
29065
29043
|
}) && e.closePath(), e.stroke();
|
|
29066
29044
|
}
|
|
29067
|
-
const
|
|
29068
|
-
function
|
|
29069
|
-
|
|
29045
|
+
const lH = typeof Path2D == "function";
|
|
29046
|
+
function cH(e, t, r, n) {
|
|
29047
|
+
lH && !t.options.segment ? oH(e, t, r, n) : sH(e, t, r, n);
|
|
29070
29048
|
}
|
|
29071
29049
|
class Sm extends Fn {
|
|
29072
29050
|
static id = "line";
|
|
@@ -29098,7 +29076,7 @@ class Sm extends Fn {
|
|
|
29098
29076
|
const n = this.options;
|
|
29099
29077
|
if ((n.tension || n.cubicInterpolationMode === "monotone") && !n.stepped && !this._pointsUpdated) {
|
|
29100
29078
|
const i = n.spanGaps ? this._loop : this._fullLoop;
|
|
29101
|
-
|
|
29079
|
+
HW(this._points, n, t, i, r), this._pointsUpdated = !0;
|
|
29102
29080
|
}
|
|
29103
29081
|
}
|
|
29104
29082
|
set points(t) {
|
|
@@ -29108,7 +29086,7 @@ class Sm extends Fn {
|
|
|
29108
29086
|
return this._points;
|
|
29109
29087
|
}
|
|
29110
29088
|
get segments() {
|
|
29111
|
-
return this._segments || (this._segments =
|
|
29089
|
+
return this._segments || (this._segments = s9(this, this.options.segment));
|
|
29112
29090
|
}
|
|
29113
29091
|
first() {
|
|
29114
29092
|
const t = this.segments, r = this.points;
|
|
@@ -29119,14 +29097,14 @@ class Sm extends Fn {
|
|
|
29119
29097
|
return n && r[t[n - 1].end];
|
|
29120
29098
|
}
|
|
29121
29099
|
interpolate(t, r) {
|
|
29122
|
-
const n = this.options, i = t[r], a = this.points, o =
|
|
29100
|
+
const n = this.options, i = t[r], a = this.points, o = i9(this, {
|
|
29123
29101
|
property: r,
|
|
29124
29102
|
start: i,
|
|
29125
29103
|
end: i
|
|
29126
29104
|
});
|
|
29127
29105
|
if (!o.length)
|
|
29128
29106
|
return;
|
|
29129
|
-
const s = [], l =
|
|
29107
|
+
const s = [], l = aH(n);
|
|
29130
29108
|
let c, u;
|
|
29131
29109
|
for (c = 0, u = o.length; c < u; ++c) {
|
|
29132
29110
|
const { start: f, end: d } = o[c], h = a[f], m = a[d];
|
|
@@ -29155,7 +29133,7 @@ class Sm extends Fn {
|
|
|
29155
29133
|
}
|
|
29156
29134
|
draw(t, r, n, i) {
|
|
29157
29135
|
const a = this.options || {};
|
|
29158
|
-
(this.points || []).length && a.borderWidth && (t.save(),
|
|
29136
|
+
(this.points || []).length && a.borderWidth && (t.save(), cH(t, this, n, i), t.restore()), this.animated && (this._pointsUpdated = !1, this._path = void 0);
|
|
29159
29137
|
}
|
|
29160
29138
|
}
|
|
29161
29139
|
function kx(e, t, r, n) {
|
|
@@ -29249,7 +29227,7 @@ function hA(e, t) {
|
|
|
29249
29227
|
function _n(e, t, r, n) {
|
|
29250
29228
|
return e ? 0 : kt(t, r, n);
|
|
29251
29229
|
}
|
|
29252
|
-
function
|
|
29230
|
+
function uH(e, t, r) {
|
|
29253
29231
|
const n = e.options.borderWidth, i = e.borderSkipped, a = HO(n);
|
|
29254
29232
|
return {
|
|
29255
29233
|
t: _n(i.top, a.top, 0, r),
|
|
@@ -29258,7 +29236,7 @@ function hH(e, t, r) {
|
|
|
29258
29236
|
l: _n(i.left, a.left, 0, t)
|
|
29259
29237
|
};
|
|
29260
29238
|
}
|
|
29261
|
-
function
|
|
29239
|
+
function fH(e, t, r) {
|
|
29262
29240
|
const { enableBorderRadius: n } = e.getProps([
|
|
29263
29241
|
"enableBorderRadius"
|
|
29264
29242
|
]), i = e.options.borderRadius, a = Vi(i), o = Math.min(t, r), s = e.borderSkipped, l = n || fe(i);
|
|
@@ -29269,8 +29247,8 @@ function pH(e, t, r) {
|
|
|
29269
29247
|
bottomRight: _n(!l || s.bottom || s.right, a.bottomRight, 0, o)
|
|
29270
29248
|
};
|
|
29271
29249
|
}
|
|
29272
|
-
function
|
|
29273
|
-
const t = hA(e), r = t.right - t.left, n = t.bottom - t.top, i =
|
|
29250
|
+
function dH(e) {
|
|
29251
|
+
const t = hA(e), r = t.right - t.left, n = t.bottom - t.top, i = uH(e, r / 2, n / 2), a = fH(e, r / 2, n / 2);
|
|
29274
29252
|
return {
|
|
29275
29253
|
outer: {
|
|
29276
29254
|
x: t.left,
|
|
@@ -29297,10 +29275,10 @@ function qf(e, t, r, n) {
|
|
|
29297
29275
|
const i = t === null, a = r === null, s = e && !(i && a) && hA(e, n);
|
|
29298
29276
|
return s && (i || xn(t, s.left, s.right)) && (a || xn(r, s.top, s.bottom));
|
|
29299
29277
|
}
|
|
29300
|
-
function
|
|
29278
|
+
function hH(e) {
|
|
29301
29279
|
return e.topLeft || e.topRight || e.bottomLeft || e.bottomRight;
|
|
29302
29280
|
}
|
|
29303
|
-
function
|
|
29281
|
+
function pH(e, t) {
|
|
29304
29282
|
e.rect(t.x, t.y, t.w, t.h);
|
|
29305
29283
|
}
|
|
29306
29284
|
function Yf(e, t, r = {}) {
|
|
@@ -29330,7 +29308,7 @@ class Yo extends Fn {
|
|
|
29330
29308
|
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);
|
|
29331
29309
|
}
|
|
29332
29310
|
draw(t) {
|
|
29333
|
-
const { inflateAmount: r, options: { borderColor: n, backgroundColor: i } } = this, { inner: a, outer: o } =
|
|
29311
|
+
const { inflateAmount: r, options: { borderColor: n, backgroundColor: i } } = this, { inner: a, outer: o } = dH(this), s = hH(o.radius) ? Fl : pH;
|
|
29334
29312
|
t.save(), (o.w !== a.w || o.h !== a.h) && (t.beginPath(), s(t, Yf(o, r, a)), t.clip(), s(t, Yf(a, -r, o)), t.fillStyle = n, t.fill("evenodd")), t.beginPath(), s(t, Yf(a, r)), t.fillStyle = i, t.fill(), t.restore();
|
|
29335
29313
|
}
|
|
29336
29314
|
inRange(t, r, n) {
|
|
@@ -29365,7 +29343,7 @@ const Tx = (e, t) => {
|
|
|
29365
29343
|
boxHeight: r,
|
|
29366
29344
|
itemHeight: Math.max(t, r)
|
|
29367
29345
|
};
|
|
29368
|
-
},
|
|
29346
|
+
}, mH = (e, t) => e !== null && t !== null && e.datasetIndex === t.datasetIndex && e.index === t.index;
|
|
29369
29347
|
class Mx extends Fn {
|
|
29370
29348
|
constructor(t) {
|
|
29371
29349
|
super(), this._added = !1, this.legendHitBoxes = [], this._hoveredItem = null, this.doughnutMode = !1, this.chart = t.chart, this.options = t.options, this.ctx = t.ctx, this.legendItems = void 0, this.columnSizes = void 0, this.lineWidths = void 0, this.maxHeight = void 0, this.maxWidth = void 0, this.top = void 0, this.bottom = void 0, this.left = void 0, this.right = void 0, this.height = void 0, this.width = void 0, this._margins = void 0, this.position = void 0, this.weight = void 0, this.fullSize = void 0;
|
|
@@ -29415,7 +29393,7 @@ class Mx extends Fn {
|
|
|
29415
29393
|
const { ctx: a, maxHeight: o, options: { labels: { padding: s } } } = this, l = this.legendHitBoxes = [], c = this.columnSizes = [], u = o - t;
|
|
29416
29394
|
let f = s, d = 0, h = 0, m = 0, p = 0;
|
|
29417
29395
|
return this.legendItems.forEach((g, v) => {
|
|
29418
|
-
const { itemWidth: b, itemHeight: x } =
|
|
29396
|
+
const { itemWidth: b, itemHeight: x } = gH(n, r, a, g, i);
|
|
29419
29397
|
v > 0 && h + x + 2 * s > u && (f += d + s, c.push({
|
|
29420
29398
|
width: d,
|
|
29421
29399
|
height: h
|
|
@@ -29504,7 +29482,7 @@ class Mx extends Fn {
|
|
|
29504
29482
|
let M = h.x, _ = h.y;
|
|
29505
29483
|
l.setWidth(this.width), x ? P > 0 && M + I + u > this.right && (_ = h.y += w, h.line++, M = h.x = Yt(a, this.left + u, this.right - n[h.line])) : P > 0 && _ + w > this.bottom && (M = h.x = M + r[h.line].width + u, h.line++, _ = h.y = Yt(a, this.top + S + u, this.bottom - r[h.line].height));
|
|
29506
29484
|
const N = l.x(M);
|
|
29507
|
-
if (v(N, _, O), M =
|
|
29485
|
+
if (v(N, _, O), M = oW(T, M + m + d, x ? M + I : this.right, t.rtl), b(l.x(M), _, O), x)
|
|
29508
29486
|
h.x += I + u;
|
|
29509
29487
|
else if (typeof O.text != "string") {
|
|
29510
29488
|
const j = c.lineHeight;
|
|
@@ -29543,11 +29521,11 @@ class Mx extends Fn {
|
|
|
29543
29521
|
}
|
|
29544
29522
|
handleEvent(t) {
|
|
29545
29523
|
const r = this.options;
|
|
29546
|
-
if (!
|
|
29524
|
+
if (!bH(t.type, r))
|
|
29547
29525
|
return;
|
|
29548
29526
|
const n = this._getLegendItemAt(t.x, t.y);
|
|
29549
29527
|
if (t.type === "mousemove" || t.type === "mouseout") {
|
|
29550
|
-
const i = this._hoveredItem, a =
|
|
29528
|
+
const i = this._hoveredItem, a = mH(i, n);
|
|
29551
29529
|
i && !a && $e(r.onLeave, [
|
|
29552
29530
|
t,
|
|
29553
29531
|
i,
|
|
@@ -29564,18 +29542,18 @@ class Mx extends Fn {
|
|
|
29564
29542
|
], this);
|
|
29565
29543
|
}
|
|
29566
29544
|
}
|
|
29567
|
-
function
|
|
29568
|
-
const a =
|
|
29545
|
+
function gH(e, t, r, n, i) {
|
|
29546
|
+
const a = vH(n, e, t, r), o = yH(i, n, t.lineHeight);
|
|
29569
29547
|
return {
|
|
29570
29548
|
itemWidth: a,
|
|
29571
29549
|
itemHeight: o
|
|
29572
29550
|
};
|
|
29573
29551
|
}
|
|
29574
|
-
function
|
|
29552
|
+
function vH(e, t, r, n) {
|
|
29575
29553
|
let i = e.text;
|
|
29576
29554
|
return i && typeof i != "string" && (i = i.reduce((a, o) => a.length > o.length ? a : o)), t + r.size / 2 + n.measureText(i).width;
|
|
29577
29555
|
}
|
|
29578
|
-
function
|
|
29556
|
+
function yH(e, t, r) {
|
|
29579
29557
|
let n = e;
|
|
29580
29558
|
return typeof t.text != "string" && (n = pA(t, r)), n;
|
|
29581
29559
|
}
|
|
@@ -29583,7 +29561,7 @@ function pA(e, t) {
|
|
|
29583
29561
|
const r = e.text ? e.text.length : 0;
|
|
29584
29562
|
return t * r;
|
|
29585
29563
|
}
|
|
29586
|
-
function
|
|
29564
|
+
function bH(e, t) {
|
|
29587
29565
|
return !!((e === "mousemove" || e === "mouseout") && (t.onHover || t.onLeave) || t.onClick && (e === "click" || e === "mouseup"));
|
|
29588
29566
|
}
|
|
29589
29567
|
var Or = {
|
|
@@ -29718,7 +29696,7 @@ function Kr(e) {
|
|
|
29718
29696
|
`) > -1 ? e.split(`
|
|
29719
29697
|
`) : e;
|
|
29720
29698
|
}
|
|
29721
|
-
function
|
|
29699
|
+
function xH(e, t) {
|
|
29722
29700
|
const { element: r, datasetIndex: n, index: i } = t, a = e.getDatasetMeta(n).controller, { label: o, value: s } = a.getLabelAndValue(i);
|
|
29723
29701
|
return {
|
|
29724
29702
|
chart: e,
|
|
@@ -29751,39 +29729,39 @@ function jx(e, t) {
|
|
|
29751
29729
|
height: p
|
|
29752
29730
|
};
|
|
29753
29731
|
}
|
|
29754
|
-
function
|
|
29732
|
+
function wH(e, t) {
|
|
29755
29733
|
const { y: r, height: n } = t;
|
|
29756
29734
|
return r < n / 2 ? "top" : r > e.height - n / 2 ? "bottom" : "center";
|
|
29757
29735
|
}
|
|
29758
|
-
function
|
|
29736
|
+
function _H(e, t, r, n) {
|
|
29759
29737
|
const { x: i, width: a } = n, o = r.caretSize + r.caretPadding;
|
|
29760
29738
|
if (e === "left" && i + a + o > t.width || e === "right" && i - a - o < 0)
|
|
29761
29739
|
return !0;
|
|
29762
29740
|
}
|
|
29763
|
-
function
|
|
29741
|
+
function SH(e, t, r, n) {
|
|
29764
29742
|
const { x: i, width: a } = r, { width: o, chartArea: { left: s, right: l } } = e;
|
|
29765
29743
|
let c = "center";
|
|
29766
|
-
return n === "center" ? c = i <= (s + l) / 2 ? "left" : "right" : i <= a / 2 ? c = "left" : i >= o - a / 2 && (c = "right"),
|
|
29744
|
+
return n === "center" ? c = i <= (s + l) / 2 ? "left" : "right" : i <= a / 2 ? c = "left" : i >= o - a / 2 && (c = "right"), _H(c, e, t, r) && (c = "center"), c;
|
|
29767
29745
|
}
|
|
29768
29746
|
function Dx(e, t, r) {
|
|
29769
|
-
const n = r.yAlign || t.yAlign ||
|
|
29747
|
+
const n = r.yAlign || t.yAlign || wH(e, r);
|
|
29770
29748
|
return {
|
|
29771
|
-
xAlign: r.xAlign || t.xAlign ||
|
|
29749
|
+
xAlign: r.xAlign || t.xAlign || SH(e, t, r, n),
|
|
29772
29750
|
yAlign: n
|
|
29773
29751
|
};
|
|
29774
29752
|
}
|
|
29775
|
-
function
|
|
29753
|
+
function OH(e, t) {
|
|
29776
29754
|
let { x: r, width: n } = e;
|
|
29777
29755
|
return t === "right" ? r -= n : t === "center" && (r -= n / 2), r;
|
|
29778
29756
|
}
|
|
29779
|
-
function
|
|
29757
|
+
function AH(e, t, r) {
|
|
29780
29758
|
let { y: n, height: i } = e;
|
|
29781
29759
|
return t === "top" ? n += r : t === "bottom" ? n -= i + r : n -= i / 2, n;
|
|
29782
29760
|
}
|
|
29783
29761
|
function Nx(e, t, r, n) {
|
|
29784
29762
|
const { caretSize: i, caretPadding: a, cornerRadius: o } = e, { xAlign: s, yAlign: l } = r, c = i + a, { topLeft: u, topRight: f, bottomLeft: d, bottomRight: h } = Vi(o);
|
|
29785
|
-
let m =
|
|
29786
|
-
const p =
|
|
29763
|
+
let m = OH(t, s);
|
|
29764
|
+
const p = AH(t, l, c);
|
|
29787
29765
|
return l === "center" ? s === "left" ? m += c : s === "right" && (m -= c) : s === "left" ? m -= Math.max(u, d) + i : s === "right" && (m += Math.max(f, h) + i), {
|
|
29788
29766
|
x: kt(m, 0, n.width - t.width),
|
|
29789
29767
|
y: kt(p, 0, n.height - t.height)
|
|
@@ -29796,7 +29774,7 @@ function Is(e, t, r) {
|
|
|
29796
29774
|
function Ix(e) {
|
|
29797
29775
|
return kr([], Kr(e));
|
|
29798
29776
|
}
|
|
29799
|
-
function
|
|
29777
|
+
function PH(e, t, r) {
|
|
29800
29778
|
return Ei(e, {
|
|
29801
29779
|
tooltip: t,
|
|
29802
29780
|
tooltipItems: r,
|
|
@@ -29879,7 +29857,7 @@ class $x extends Fn {
|
|
|
29879
29857
|
return i._cacheable && (this._cachedAnimations = Object.freeze(a)), a;
|
|
29880
29858
|
}
|
|
29881
29859
|
getContext() {
|
|
29882
|
-
return this.$context || (this.$context =
|
|
29860
|
+
return this.$context || (this.$context = PH(this.chart.getContext(), this, this._tooltipItems));
|
|
29883
29861
|
}
|
|
29884
29862
|
getTitle(t, r) {
|
|
29885
29863
|
const { callbacks: n } = r, i = $t(n, "beforeTitle", this, t), a = $t(n, "title", this, t), o = $t(n, "afterTitle", this, t);
|
|
@@ -29912,7 +29890,7 @@ class $x extends Fn {
|
|
|
29912
29890
|
const r = this._active, n = this.chart.data, i = [], a = [], o = [];
|
|
29913
29891
|
let s = [], l, c;
|
|
29914
29892
|
for (l = 0, c = r.length; l < c; ++l)
|
|
29915
|
-
s.push(
|
|
29893
|
+
s.push(xH(this.chart, r[l]));
|
|
29916
29894
|
return t.filter && (s = s.filter((u, f, d) => t.filter(u, f, d, n))), t.itemSort && (s = s.sort((u, f) => t.itemSort(u, f, n))), Oe(s, (u) => {
|
|
29917
29895
|
const f = Rx(t.callbacks, u);
|
|
29918
29896
|
i.push($t(f, "labelColor", this, u)), a.push($t(f, "labelPointStyle", this, u)), o.push($t(f, "labelTextColor", this, u));
|
|
@@ -30212,18 +30190,18 @@ var Ar = {
|
|
|
30212
30190
|
"interaction"
|
|
30213
30191
|
]
|
|
30214
30192
|
};
|
|
30215
|
-
const
|
|
30193
|
+
const EH = (e, t, r, n) => (typeof t == "string" ? (r = e.push(t) - 1, n.unshift({
|
|
30216
30194
|
index: r,
|
|
30217
30195
|
label: t
|
|
30218
30196
|
})) : isNaN(t) && (r = null), r);
|
|
30219
|
-
function
|
|
30197
|
+
function CH(e, t, r, n) {
|
|
30220
30198
|
const i = e.indexOf(t);
|
|
30221
30199
|
if (i === -1)
|
|
30222
|
-
return
|
|
30200
|
+
return EH(e, t, r, n);
|
|
30223
30201
|
const a = e.lastIndexOf(t);
|
|
30224
30202
|
return i !== a ? r : i;
|
|
30225
30203
|
}
|
|
30226
|
-
const
|
|
30204
|
+
const kH = (e, t) => e === null ? null : kt(Math.round(e), 0, t);
|
|
30227
30205
|
function Lx(e) {
|
|
30228
30206
|
const t = this.getLabels();
|
|
30229
30207
|
return e >= 0 && e < t.length ? t[e] : e;
|
|
@@ -30252,7 +30230,7 @@ class Bn extends ga {
|
|
|
30252
30230
|
if (we(t))
|
|
30253
30231
|
return null;
|
|
30254
30232
|
const n = this.getLabels();
|
|
30255
|
-
return r = isFinite(r) && n[r] === t ? r :
|
|
30233
|
+
return r = isFinite(r) && n[r] === t ? r : CH(n, t, oe(r, t), this._addedLabels), kH(r, n.length - 1);
|
|
30256
30234
|
}
|
|
30257
30235
|
determineDataLimits() {
|
|
30258
30236
|
const { minDefined: t, maxDefined: r } = this.getUserBounds();
|
|
@@ -30289,7 +30267,7 @@ class Bn extends ga {
|
|
|
30289
30267
|
return this.bottom;
|
|
30290
30268
|
}
|
|
30291
30269
|
}
|
|
30292
|
-
function
|
|
30270
|
+
function TH(e, t) {
|
|
30293
30271
|
const r = [], { bounds: i, step: a, min: o, max: s, precision: l, count: c, maxTicks: u, maxDigits: f, includeBounds: d } = e, h = a || 1, m = u - 1, { min: p, max: g } = t, v = !we(o), b = !we(s), x = !we(c), S = (g - p) / (f + 1);
|
|
30294
30272
|
let w = Fb((g - p) / m / h) * h, O, P, C, T;
|
|
30295
30273
|
if (w < 1e-14 && !v && !b)
|
|
@@ -30301,7 +30279,7 @@ function DH(e, t) {
|
|
|
30301
30279
|
value: g
|
|
30302
30280
|
}
|
|
30303
30281
|
];
|
|
30304
|
-
T = Math.ceil(g / w) - Math.floor(p / w), T > m && (w = Fb(T * w / m / h) * h), we(l) || (O = Math.pow(10, l), w = Math.ceil(w * O) / O), i === "ticks" ? (P = Math.floor(p / w) * w, C = Math.ceil(g / w) * w) : (P = p, C = g), v && b && a &&
|
|
30282
|
+
T = Math.ceil(g / w) - Math.floor(p / w), T > m && (w = Fb(T * w / m / h) * h), we(l) || (O = Math.pow(10, l), w = Math.ceil(w * O) / O), i === "ticks" ? (P = Math.floor(p / w) * w, C = Math.ceil(g / w) * w) : (P = p, C = g), v && b && a && Z7((s - o) / a, w / 1e3) ? (T = Math.round(Math.min((s - o) / w, u)), w = (s - o) / T, P = o, C = s) : x ? (P = v ? o : P, C = b ? s : C, T = c - 1, w = (C - P) / T) : (T = (C - P) / w, qa(T, Math.round(T), w / 1e3) ? T = Math.round(T) : T = Math.ceil(T));
|
|
30305
30283
|
const I = Math.max(Bb(w), Bb(P));
|
|
30306
30284
|
O = Math.pow(10, we(l) ? I : l), P = Math.round(P * O) / O, C = Math.round(C * O) / O;
|
|
30307
30285
|
let M = 0;
|
|
@@ -30325,7 +30303,7 @@ function Fx(e, t, { horizontal: r, minRotation: n }) {
|
|
|
30325
30303
|
const i = Qr(n), a = (r ? Math.sin(i) : Math.cos(i)) || 1e-3, o = 0.75 * t * ("" + e).length;
|
|
30326
30304
|
return Math.min(t / a, o);
|
|
30327
30305
|
}
|
|
30328
|
-
class
|
|
30306
|
+
class MH extends ga {
|
|
30329
30307
|
constructor(t) {
|
|
30330
30308
|
super(t), this.start = void 0, this.end = void 0, this._startValue = void 0, this._endValue = void 0, this._valueRange = 0;
|
|
30331
30309
|
}
|
|
@@ -30370,8 +30348,8 @@ class NH extends ga {
|
|
|
30370
30348
|
horizontal: this.isHorizontal(),
|
|
30371
30349
|
minRotation: r.minRotation || 0,
|
|
30372
30350
|
includeBounds: r.includeBounds !== !1
|
|
30373
|
-
}, a = this._range || this, o =
|
|
30374
|
-
return t.bounds === "ticks" &&
|
|
30351
|
+
}, a = this._range || this, o = TH(i, a);
|
|
30352
|
+
return t.bounds === "ticks" && J7(o, this, "value"), t.reverse ? (o.reverse(), this.start = this.max, this.end = this.min) : (this.start = this.min, this.end = this.max), o;
|
|
30375
30353
|
}
|
|
30376
30354
|
configure() {
|
|
30377
30355
|
const t = this.ticks;
|
|
@@ -30386,7 +30364,7 @@ class NH extends ga {
|
|
|
30386
30364
|
return dm(t, this.chart.options.locale, this.options.ticks.format);
|
|
30387
30365
|
}
|
|
30388
30366
|
}
|
|
30389
|
-
class zn extends
|
|
30367
|
+
class zn extends MH {
|
|
30390
30368
|
static id = "linear";
|
|
30391
30369
|
static defaults = {
|
|
30392
30370
|
ticks: {
|
|
@@ -30473,7 +30451,7 @@ function Wx(e, t, r, n) {
|
|
|
30473
30451
|
}
|
|
30474
30452
|
return Bt[i - 1];
|
|
30475
30453
|
}
|
|
30476
|
-
function
|
|
30454
|
+
function jH(e, t, r, n, i) {
|
|
30477
30455
|
for (let a = Bt.length - 1; a >= Bt.indexOf(r); a--) {
|
|
30478
30456
|
const o = Bt[a];
|
|
30479
30457
|
if (Hc[o].common && e._adapter.diff(i, n, o) >= t - 1)
|
|
@@ -30481,7 +30459,7 @@ function IH(e, t, r, n, i) {
|
|
|
30481
30459
|
}
|
|
30482
30460
|
return Bt[r ? Bt.indexOf(r) : 0];
|
|
30483
30461
|
}
|
|
30484
|
-
function
|
|
30462
|
+
function DH(e) {
|
|
30485
30463
|
for (let t = Bt.indexOf(e) + 1, r = Bt.length; t < r; ++t)
|
|
30486
30464
|
if (Hc[Bt[t]].common)
|
|
30487
30465
|
return Bt[t];
|
|
@@ -30494,7 +30472,7 @@ function Vx(e, t, r) {
|
|
|
30494
30472
|
e[a] = !0;
|
|
30495
30473
|
}
|
|
30496
30474
|
}
|
|
30497
|
-
function
|
|
30475
|
+
function NH(e, t, r, n) {
|
|
30498
30476
|
const i = e._adapter, a = +i.startOf(t[0].value, n), o = t[t.length - 1].value;
|
|
30499
30477
|
let s, l;
|
|
30500
30478
|
for (s = a; s <= o; s = +i.add(s, 1, n))
|
|
@@ -30509,7 +30487,7 @@ function Hx(e, t, r) {
|
|
|
30509
30487
|
value: s,
|
|
30510
30488
|
major: !1
|
|
30511
30489
|
});
|
|
30512
|
-
return a === 0 || !r ? n :
|
|
30490
|
+
return a === 0 || !r ? n : NH(e, n, i, r);
|
|
30513
30491
|
}
|
|
30514
30492
|
class Ux extends ga {
|
|
30515
30493
|
static id = "time";
|
|
@@ -30540,7 +30518,7 @@ class Ux extends ga {
|
|
|
30540
30518
|
}, this._unit = "day", this._majorUnit = void 0, this._offsets = {}, this._normalized = !1, this._parseOpts = void 0;
|
|
30541
30519
|
}
|
|
30542
30520
|
init(t, r = {}) {
|
|
30543
|
-
const n = t.time || (t.time = {}), i = this._adapter = new
|
|
30521
|
+
const n = t.time || (t.time = {}), i = this._adapter = new B9._date(t.adapters.date);
|
|
30544
30522
|
i.init(r), Ka(n.displayFormats, i.formats()), this._parseOpts = {
|
|
30545
30523
|
parser: n.parser,
|
|
30546
30524
|
round: n.round,
|
|
@@ -30576,8 +30554,8 @@ class Ux extends ga {
|
|
|
30576
30554
|
buildTicks() {
|
|
30577
30555
|
const t = this.options, r = t.time, n = t.ticks, i = n.source === "labels" ? this.getLabelTimestamps() : this._generate();
|
|
30578
30556
|
t.bounds === "ticks" && i.length && (this.min = this._userMin || i[0], this.max = this._userMax || i[i.length - 1]);
|
|
30579
|
-
const a = this.min, o = this.max, s =
|
|
30580
|
-
return this._unit = r.unit || (n.autoSkip ? Wx(r.minUnit, this.min, this.max, this._getLabelCapacity(a)) :
|
|
30557
|
+
const a = this.min, o = this.max, s = nW(i, a, o);
|
|
30558
|
+
return this._unit = r.unit || (n.autoSkip ? Wx(r.minUnit, this.min, this.max, this._getLabelCapacity(a)) : jH(this, s.length, r.minUnit, this.min, this.max)), this._majorUnit = !n.major.enabled || this._unit === "year" ? void 0 : DH(this._unit), this.initOffsets(i), t.reverse && s.reverse(), Hx(this, s, this._majorUnit);
|
|
30581
30559
|
}
|
|
30582
30560
|
afterAutoSkip() {
|
|
30583
30561
|
this.options.offsetAfterAutoskip && this.initOffsets(this.ticks.map((t) => +t.value));
|
|
@@ -30681,7 +30659,7 @@ function Rs(e, t, r) {
|
|
|
30681
30659
|
const c = o - a;
|
|
30682
30660
|
return c ? s + (l - s) * (t - a) / c : s;
|
|
30683
30661
|
}
|
|
30684
|
-
class
|
|
30662
|
+
class NU extends Ux {
|
|
30685
30663
|
static id = "timeseries";
|
|
30686
30664
|
static defaults = Ux.defaults;
|
|
30687
30665
|
constructor(t) {
|
|
@@ -30738,7 +30716,7 @@ const gA = "label";
|
|
|
30738
30716
|
function Kx(e, t) {
|
|
30739
30717
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
30740
30718
|
}
|
|
30741
|
-
function
|
|
30719
|
+
function IH(e, t) {
|
|
30742
30720
|
const r = e.options;
|
|
30743
30721
|
r && t && Object.assign(r, t);
|
|
30744
30722
|
}
|
|
@@ -30755,7 +30733,7 @@ function yA(e, t) {
|
|
|
30755
30733
|
} : (n.push(a), Object.assign(a, i), a);
|
|
30756
30734
|
});
|
|
30757
30735
|
}
|
|
30758
|
-
function
|
|
30736
|
+
function RH(e) {
|
|
30759
30737
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : gA;
|
|
30760
30738
|
const r = {
|
|
30761
30739
|
labels: [],
|
|
@@ -30763,11 +30741,11 @@ function FH(e) {
|
|
|
30763
30741
|
};
|
|
30764
30742
|
return vA(r, e.labels), yA(r, e.datasets, t), r;
|
|
30765
30743
|
}
|
|
30766
|
-
function
|
|
30744
|
+
function $H(e, t) {
|
|
30767
30745
|
const { height: r = 150, width: n = 300, redraw: i = !1, datasetIdKey: a, type: o, data: s, options: l, plugins: c = [], fallbackContent: u, updateMode: f, ...d } = e, h = ke(null), m = ke(null), p = () => {
|
|
30768
30746
|
h.current && (m.current = new Ut(h.current, {
|
|
30769
30747
|
type: o,
|
|
30770
|
-
data:
|
|
30748
|
+
data: RH(s, a),
|
|
30771
30749
|
options: l && {
|
|
30772
30750
|
...l
|
|
30773
30751
|
},
|
|
@@ -30777,7 +30755,7 @@ function BH(e, t) {
|
|
|
30777
30755
|
Kx(t, null), m.current && (m.current.destroy(), m.current = null);
|
|
30778
30756
|
};
|
|
30779
30757
|
return Pe(() => {
|
|
30780
|
-
!i && m.current && l &&
|
|
30758
|
+
!i && m.current && l && IH(m.current, l);
|
|
30781
30759
|
}, [
|
|
30782
30760
|
i,
|
|
30783
30761
|
l
|
|
@@ -30811,17 +30789,17 @@ function BH(e, t) {
|
|
|
30811
30789
|
...d
|
|
30812
30790
|
}, u);
|
|
30813
30791
|
}
|
|
30814
|
-
const
|
|
30792
|
+
const LH = /* @__PURE__ */ Mt($H);
|
|
30815
30793
|
function Am(e, t) {
|
|
30816
|
-
return Ut.register(t), /* @__PURE__ */ Mt((r, n) => /* @__PURE__ */ St.createElement(
|
|
30794
|
+
return Ut.register(t), /* @__PURE__ */ Mt((r, n) => /* @__PURE__ */ St.createElement(LH, {
|
|
30817
30795
|
...r,
|
|
30818
30796
|
ref: n,
|
|
30819
30797
|
type: e
|
|
30820
30798
|
}));
|
|
30821
30799
|
}
|
|
30822
|
-
const Pm = /* @__PURE__ */ Am("line",
|
|
30800
|
+
const Pm = /* @__PURE__ */ Am("line", F9), Go = /* @__PURE__ */ Am("bar", R9), Em = /* @__PURE__ */ Am("doughnut", L9);
|
|
30823
30801
|
Ut.register(_m, Ar, Or);
|
|
30824
|
-
const
|
|
30802
|
+
const FH = {
|
|
30825
30803
|
id: "centerText",
|
|
30826
30804
|
afterDraw(e, t, r) {
|
|
30827
30805
|
const { ctx: n } = e, i = e.getDatasetMeta(0);
|
|
@@ -30836,7 +30814,7 @@ const WH = {
|
|
|
30836
30814
|
} = r || {};
|
|
30837
30815
|
n.save(), n.textAlign = "center", n.textBaseline = "middle", n.fillStyle = f, n.font = `600 ${c}px Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif`, n.fillText(s, a, o - 5), n.fillStyle = d, n.font = `500 ${u}px Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif`, n.fillText(l, a, o + 12), n.restore();
|
|
30838
30816
|
}
|
|
30839
|
-
},
|
|
30817
|
+
}, IU = ({ sold: e = 847, unsold: t = 73, growthPct: r = "+9.1%" }) => {
|
|
30840
30818
|
const n = e + t, i = {
|
|
30841
30819
|
labels: ["Sold", "Unsold"],
|
|
30842
30820
|
datasets: [
|
|
@@ -30893,7 +30871,7 @@ const WH = {
|
|
|
30893
30871
|
{
|
|
30894
30872
|
data: i,
|
|
30895
30873
|
options: a,
|
|
30896
|
-
plugins: [
|
|
30874
|
+
plugins: [FH]
|
|
30897
30875
|
}
|
|
30898
30876
|
) }) })
|
|
30899
30877
|
] })
|
|
@@ -30925,7 +30903,7 @@ const WH = {
|
|
|
30925
30903
|
]
|
|
30926
30904
|
}
|
|
30927
30905
|
)
|
|
30928
|
-
] }),
|
|
30906
|
+
] }), RU = ({
|
|
30929
30907
|
totalUnits: e = 847,
|
|
30930
30908
|
occupiedUnits: t = 756,
|
|
30931
30909
|
ownerCount: r = 700,
|
|
@@ -30995,7 +30973,7 @@ const WH = {
|
|
|
30995
30973
|
] });
|
|
30996
30974
|
};
|
|
30997
30975
|
Ut.register(_m, Ar, Or);
|
|
30998
|
-
const
|
|
30976
|
+
const BH = {
|
|
30999
30977
|
id: "centerText",
|
|
31000
30978
|
afterDraw(e, t, r) {
|
|
31001
30979
|
const { ctx: n } = e, i = e.getDatasetMeta(0);
|
|
@@ -31010,7 +30988,7 @@ const VH = {
|
|
|
31010
30988
|
} = r || {};
|
|
31011
30989
|
n.save(), n.textAlign = "center", n.textBaseline = "middle", n.fillStyle = f, n.font = `600 ${c}px Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif`, n.fillText(s, a, o - 5), n.fillStyle = d, n.font = `500 ${u}px Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif`, n.fillText(l, a, o + 12), n.restore();
|
|
31012
30990
|
}
|
|
31013
|
-
},
|
|
30991
|
+
}, $U = ({
|
|
31014
30992
|
ownerCount: e = 1e3,
|
|
31015
30993
|
tenantCount: t = 200,
|
|
31016
30994
|
nonResidingOwners: r = 26,
|
|
@@ -31071,7 +31049,7 @@ const VH = {
|
|
|
31071
31049
|
{
|
|
31072
31050
|
data: o,
|
|
31073
31051
|
options: s,
|
|
31074
|
-
plugins: [
|
|
31052
|
+
plugins: [BH]
|
|
31075
31053
|
}
|
|
31076
31054
|
) }) })
|
|
31077
31055
|
] })
|
|
@@ -31079,7 +31057,7 @@ const VH = {
|
|
|
31079
31057
|
);
|
|
31080
31058
|
};
|
|
31081
31059
|
Ut.register(Bn, zn, Yo, Ar, Or);
|
|
31082
|
-
const
|
|
31060
|
+
const LU = ({
|
|
31083
31061
|
blocks: e = [
|
|
31084
31062
|
{ name: "Block A", owner: 110, rented: 24, vacant: 8 },
|
|
31085
31063
|
{ name: "Block B", owner: 95, rented: 18, vacant: 6 },
|
|
@@ -31175,7 +31153,7 @@ Ut.register(
|
|
|
31175
31153
|
Ar,
|
|
31176
31154
|
Or
|
|
31177
31155
|
);
|
|
31178
|
-
const
|
|
31156
|
+
const zH = (e) => {
|
|
31179
31157
|
const [t, r] = String(e).split(" ");
|
|
31180
31158
|
return `${{
|
|
31181
31159
|
Jan: "January",
|
|
@@ -31191,7 +31169,7 @@ const HH = (e) => {
|
|
|
31191
31169
|
Nov: "November",
|
|
31192
31170
|
Dec: "December"
|
|
31193
31171
|
}[t] || t} 20${r}`;
|
|
31194
|
-
},
|
|
31172
|
+
}, FU = ({
|
|
31195
31173
|
labels: e = ["Jan 25", "Feb 25", "Mar 25", "Apr 25", "May 25"],
|
|
31196
31174
|
moveIn: t = [24, 27, 20, 26, 23],
|
|
31197
31175
|
moveOut: r = [12, 17, 8, 5, 16]
|
|
@@ -31240,7 +31218,7 @@ const HH = (e) => {
|
|
|
31240
31218
|
padding: 12,
|
|
31241
31219
|
caretSize: 0,
|
|
31242
31220
|
callbacks: {
|
|
31243
|
-
title: (a) =>
|
|
31221
|
+
title: (a) => zH(a[0].label),
|
|
31244
31222
|
label: (a) => `${a.dataset.label}: ${a.parsed.y}`
|
|
31245
31223
|
}
|
|
31246
31224
|
}
|
|
@@ -31274,7 +31252,7 @@ const HH = (e) => {
|
|
|
31274
31252
|
);
|
|
31275
31253
|
};
|
|
31276
31254
|
Ut.register(Bn, zn, Om, Sm, Ar, Or);
|
|
31277
|
-
const
|
|
31255
|
+
const WH = (e) => {
|
|
31278
31256
|
const [t, r] = String(e).split(" ");
|
|
31279
31257
|
return `${{
|
|
31280
31258
|
Jan: "January",
|
|
@@ -31290,7 +31268,7 @@ const UH = (e) => {
|
|
|
31290
31268
|
Nov: "November",
|
|
31291
31269
|
Dec: "December"
|
|
31292
31270
|
}[t] || t} 20${r}`;
|
|
31293
|
-
},
|
|
31271
|
+
}, VH = ({
|
|
31294
31272
|
labels: e = ["Jan 25", "Feb 25", "Mar 25", "Apr 25", "May 25"],
|
|
31295
31273
|
moveIn: t = [24, 27, 20, 26, 23],
|
|
31296
31274
|
moveOut: r = [4, 17, 8, 5, 16, 4, 7]
|
|
@@ -31339,7 +31317,7 @@ const UH = (e) => {
|
|
|
31339
31317
|
padding: 12,
|
|
31340
31318
|
caretSize: 0,
|
|
31341
31319
|
callbacks: {
|
|
31342
|
-
title: (a) =>
|
|
31320
|
+
title: (a) => WH(a[0].label),
|
|
31343
31321
|
label: (a) => `${a.dataset.label}: ${a.parsed.y}`
|
|
31344
31322
|
}
|
|
31345
31323
|
}
|
|
@@ -31393,7 +31371,7 @@ function Gx({
|
|
|
31393
31371
|
}
|
|
31394
31372
|
);
|
|
31395
31373
|
}
|
|
31396
|
-
function
|
|
31374
|
+
function BU() {
|
|
31397
31375
|
return /* @__PURE__ */ y.jsxs(
|
|
31398
31376
|
Fe,
|
|
31399
31377
|
{
|
|
@@ -31428,13 +31406,13 @@ function VU() {
|
|
|
31428
31406
|
}
|
|
31429
31407
|
)
|
|
31430
31408
|
] }),
|
|
31431
|
-
/* @__PURE__ */ y.jsx("div", { className: "h-[254px] mt-[35.5px]", children: /* @__PURE__ */ y.jsx(
|
|
31409
|
+
/* @__PURE__ */ y.jsx("div", { className: "h-[254px] mt-[35.5px]", children: /* @__PURE__ */ y.jsx(VH, {}) })
|
|
31432
31410
|
]
|
|
31433
31411
|
}
|
|
31434
31412
|
);
|
|
31435
31413
|
}
|
|
31436
31414
|
Ut.register(Bn, zn, Yo, Ar, Or);
|
|
31437
|
-
const
|
|
31415
|
+
const zU = () => {
|
|
31438
31416
|
const e = [
|
|
31439
31417
|
"Maintenance",
|
|
31440
31418
|
"Security",
|
|
@@ -31511,7 +31489,7 @@ const HU = () => {
|
|
|
31511
31489
|
children: /* @__PURE__ */ y.jsx(Go, { data: n, options: i })
|
|
31512
31490
|
}
|
|
31513
31491
|
);
|
|
31514
|
-
},
|
|
31492
|
+
}, WU = () => {
|
|
31515
31493
|
const e = [
|
|
31516
31494
|
{ title: "Primary Account", amount: 285e4, subtitle: "Savings" },
|
|
31517
31495
|
{ title: "Emergency Fund", amount: 12e5, subtitle: "Fixed deposit" },
|
|
@@ -31547,7 +31525,7 @@ const HU = () => {
|
|
|
31547
31525
|
);
|
|
31548
31526
|
};
|
|
31549
31527
|
Ut.register(Bn, zn, Yo, Ar, Or);
|
|
31550
|
-
const
|
|
31528
|
+
const VU = () => {
|
|
31551
31529
|
const e = ["Current Month", "1-3 Months", "3-6 Months", "6+ Months"], t = [13e3, 9400, 8800, 7200], r = [18, 12, 18, 6], n = {
|
|
31552
31530
|
labels: e,
|
|
31553
31531
|
datasets: [
|
|
@@ -31620,7 +31598,7 @@ const KU = () => {
|
|
|
31620
31598
|
);
|
|
31621
31599
|
};
|
|
31622
31600
|
Ut.register(_m, Ar, Or);
|
|
31623
|
-
const
|
|
31601
|
+
const HU = () => {
|
|
31624
31602
|
const e = [
|
|
31625
31603
|
"Maintenance",
|
|
31626
31604
|
"Utilities",
|
|
@@ -31715,7 +31693,7 @@ const qU = () => {
|
|
|
31715
31693
|
{ name: "Pool Maintenance", value: 7e5, color: "#8B5CF6" },
|
|
31716
31694
|
{ name: "Administration", value: 52e4, color: "#10B981" }
|
|
31717
31695
|
];
|
|
31718
|
-
function
|
|
31696
|
+
function UU() {
|
|
31719
31697
|
const e = Ia.reduce((t, r) => t + r.value, 0);
|
|
31720
31698
|
return /* @__PURE__ */ y.jsx(
|
|
31721
31699
|
Fe,
|
|
@@ -31777,7 +31755,7 @@ function YU() {
|
|
|
31777
31755
|
);
|
|
31778
31756
|
}
|
|
31779
31757
|
Ut.register(Bn, zn, Yo, Ar, Or);
|
|
31780
|
-
const
|
|
31758
|
+
const KU = () => {
|
|
31781
31759
|
const e = [
|
|
31782
31760
|
"Gym",
|
|
31783
31761
|
"Parking",
|
|
@@ -31839,13 +31817,13 @@ const GU = () => {
|
|
|
31839
31817
|
}
|
|
31840
31818
|
);
|
|
31841
31819
|
};
|
|
31842
|
-
function
|
|
31820
|
+
function HH(e) {
|
|
31843
31821
|
return Ne({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M15 5l0 2" }, child: [] }, { tag: "path", attr: { d: "M15 11l0 2" }, child: [] }, { tag: "path", attr: { d: "M15 17l0 2" }, child: [] }, { tag: "path", attr: { d: "M5 5h14a2 2 0 0 1 2 2v3a2 2 0 0 0 0 4v3a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-3a2 2 0 0 0 0 -4v-3a2 2 0 0 1 2 -2" }, child: [] }] })(e);
|
|
31844
31822
|
}
|
|
31845
|
-
function
|
|
31823
|
+
function UH(e) {
|
|
31846
31824
|
return Ne({ attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M855.7 210.8l-42.4-42.4a8.03 8.03 0 0 0-11.3 0L168.3 801.9a8.03 8.03 0 0 0 0 11.3l42.4 42.4c3.1 3.1 8.2 3.1 11.3 0L855.6 222c3.2-3 3.2-8.1.1-11.2zM304 448c79.4 0 144-64.6 144-144s-64.6-144-144-144-144 64.6-144 144 64.6 144 144 144zm0-216c39.7 0 72 32.3 72 72s-32.3 72-72 72-72-32.3-72-72 32.3-72 72-72zm416 344c-79.4 0-144 64.6-144 144s64.6 144 144 144 144-64.6 144-144-64.6-144-144-144zm0 216c-39.7 0-72-32.3-72-72s32.3-72 72-72 72 32.3 72 72-32.3 72-72 72z" }, child: [] }] })(e);
|
|
31847
31825
|
}
|
|
31848
|
-
function
|
|
31826
|
+
function KH({
|
|
31849
31827
|
title: e,
|
|
31850
31828
|
value: t,
|
|
31851
31829
|
delta: r,
|
|
@@ -31876,7 +31854,7 @@ function GH({
|
|
|
31876
31854
|
}
|
|
31877
31855
|
);
|
|
31878
31856
|
}
|
|
31879
|
-
function
|
|
31857
|
+
function qU() {
|
|
31880
31858
|
const e = [
|
|
31881
31859
|
{
|
|
31882
31860
|
title: "Total Bookings",
|
|
@@ -31893,7 +31871,7 @@ function XU() {
|
|
|
31893
31871
|
delta: "+2.0%",
|
|
31894
31872
|
deltaLabel: "Compared to last month",
|
|
31895
31873
|
positive: !0,
|
|
31896
|
-
Icon:
|
|
31874
|
+
Icon: UH,
|
|
31897
31875
|
iconColor: "text-[#329DFF]"
|
|
31898
31876
|
},
|
|
31899
31877
|
{
|
|
@@ -31902,7 +31880,7 @@ function XU() {
|
|
|
31902
31880
|
delta: "+11.0%",
|
|
31903
31881
|
deltaLabel: "Compared to last month",
|
|
31904
31882
|
positive: !0,
|
|
31905
|
-
Icon:
|
|
31883
|
+
Icon: HH,
|
|
31906
31884
|
iconColor: "text-[#FA7E28]"
|
|
31907
31885
|
},
|
|
31908
31886
|
{
|
|
@@ -31915,14 +31893,14 @@ function XU() {
|
|
|
31915
31893
|
iconColor: "text-[#DBB467]"
|
|
31916
31894
|
}
|
|
31917
31895
|
];
|
|
31918
|
-
return /* @__PURE__ */ y.jsx("div", { className: "px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]", children: e.map((t, r) => /* @__PURE__ */ y.jsx(
|
|
31896
|
+
return /* @__PURE__ */ y.jsx("div", { className: "px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]", children: e.map((t, r) => /* @__PURE__ */ y.jsx(KH, { ...t }, r)) });
|
|
31919
31897
|
}
|
|
31920
31898
|
const $s = [
|
|
31921
31899
|
{ name: "Completed", value: 46, color: "#12B981" },
|
|
31922
31900
|
{ name: "Delayed", value: 2, color: "#EF4444" },
|
|
31923
31901
|
{ name: "Missed", value: 2, color: "#F69E0A" }
|
|
31924
31902
|
];
|
|
31925
|
-
function
|
|
31903
|
+
function YU() {
|
|
31926
31904
|
const t = $s.find((r) => r.name === "Completed")?.value || 0;
|
|
31927
31905
|
return /* @__PURE__ */ y.jsx(
|
|
31928
31906
|
Fe,
|
|
@@ -31981,7 +31959,7 @@ Ut.register(
|
|
|
31981
31959
|
Ar,
|
|
31982
31960
|
Or
|
|
31983
31961
|
);
|
|
31984
|
-
const
|
|
31962
|
+
const GU = () => {
|
|
31985
31963
|
const t = {
|
|
31986
31964
|
labels: ["10 AM", "12 PM", "2 PM", "4 PM", "6 PM", "8 PM", "10 PM"],
|
|
31987
31965
|
datasets: [
|
|
@@ -32076,7 +32054,7 @@ const JU = () => {
|
|
|
32076
32054
|
}
|
|
32077
32055
|
);
|
|
32078
32056
|
};
|
|
32079
|
-
function
|
|
32057
|
+
function XU() {
|
|
32080
32058
|
return /* @__PURE__ */ y.jsx(
|
|
32081
32059
|
Fe,
|
|
32082
32060
|
{
|
|
@@ -32134,7 +32112,7 @@ function QU() {
|
|
|
32134
32112
|
}
|
|
32135
32113
|
);
|
|
32136
32114
|
}
|
|
32137
|
-
function
|
|
32115
|
+
function ZU() {
|
|
32138
32116
|
return /* @__PURE__ */ y.jsx(
|
|
32139
32117
|
Fe,
|
|
32140
32118
|
{
|
|
@@ -32174,16 +32152,16 @@ function eK() {
|
|
|
32174
32152
|
}
|
|
32175
32153
|
);
|
|
32176
32154
|
}
|
|
32177
|
-
function
|
|
32155
|
+
function qH(e) {
|
|
32178
32156
|
return Ne({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "g", attr: { id: "Box_List" }, child: [{ tag: "g", attr: {}, child: [{ tag: "path", attr: { d: "M6.562,8.062h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,8.062Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z" }, child: [] }, { tag: "path", attr: { d: "M6.562,20.938h-2a1.5,1.5,0,0,1-1.5-1.5v-2a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,20.938Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5v-2a.5.5,0,0,0-.5-.5Z" }, child: [] }, { tag: "path", attr: { d: "M6.562,14.5h-2a1.5,1.5,0,0,1-1.5-1.5V11a1.5,1.5,0,0,1,1.5-1.5h2a1.5,1.5,0,0,1,1.5,1.5v2A1.5,1.5,0,0,1,6.562,14.5Zm-2-4a.5.5,0,0,0-.5.5v2a.5.5,0,0,0,.5.5h2a.5.5,0,0,0,.5-.5V11a.5.5,0,0,0-.5-.5Z" }, child: [] }, { tag: "path", attr: { d: "M20.438,6.062h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z" }, child: [] }, { tag: "path", attr: { d: "M20.438,12.5h-9a.5.5,0,0,1,0-1h9a.5.5,0,0,1,0,1Z" }, child: [] }, { tag: "path", attr: { d: "M20.438,18.935h-9a.5.5,0,1,1,0-1h9a.5.5,0,0,1,0,1Z" }, child: [] }] }] }] })(e);
|
|
32179
32157
|
}
|
|
32180
|
-
function
|
|
32158
|
+
function YH(e) {
|
|
32181
32159
|
return Ne({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "g", attr: { id: "Warning" }, child: [{ tag: "g", attr: {}, child: [{ tag: "g", attr: {}, child: [{ tag: "path", attr: { d: "M12.5,8.752a.5.5,0,0,0-1,0h0v6a.5.5,0,0,0,1,0Z" }, child: [] }, { tag: "circle", attr: { cx: "11.999", cy: "16.736", r: "0.5" }, child: [] }] }, { tag: "path", attr: { d: "M18.642,20.934H5.385A2.5,2.5,0,0,1,3.163,17.29L9.792,4.421a2.5,2.5,0,0,1,4.444,0L20.865,17.29a2.5,2.5,0,0,1-2.223,3.644ZM12.014,4.065a1.478,1.478,0,0,0-1.334.814L4.052,17.748a1.5,1.5,0,0,0,1.333,2.186H18.642a1.5,1.5,0,0,0,1.334-2.186L13.348,4.879A1.478,1.478,0,0,0,12.014,4.065Z" }, child: [] }] }] }] })(e);
|
|
32182
32160
|
}
|
|
32183
|
-
function
|
|
32161
|
+
function GH(e) {
|
|
32184
32162
|
return Ne({ attr: { viewBox: "0 0 256 256", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M116,132V96a12,12,0,0,1,24,0v36a12,12,0,0,1-24,0Zm12,56a16,16,0,1,0-16-16A16,16,0,0,0,128,188ZM228,56v56c0,54.29-26.32,87.22-48.4,105.29-23.71,19.39-47.44,26-48.44,26.29a12.1,12.1,0,0,1-6.32,0c-1-.28-24.73-6.9-48.44-26.29C54.32,199.22,28,166.29,28,112V56A20,20,0,0,1,48,36H208A20,20,0,0,1,228,56Zm-24,4H52v52c0,35.71,13.09,64.69,38.91,86.15A126.14,126.14,0,0,0,128,219.38a126.28,126.28,0,0,0,37.09-21.23C190.91,176.69,204,147.71,204,112Z" }, child: [] }] })(e);
|
|
32185
32163
|
}
|
|
32186
|
-
function
|
|
32164
|
+
function XH({
|
|
32187
32165
|
title: e,
|
|
32188
32166
|
value: t,
|
|
32189
32167
|
delta: r,
|
|
@@ -32214,7 +32192,7 @@ function QH({
|
|
|
32214
32192
|
}
|
|
32215
32193
|
);
|
|
32216
32194
|
}
|
|
32217
|
-
function
|
|
32195
|
+
function JU() {
|
|
32218
32196
|
const e = [
|
|
32219
32197
|
{
|
|
32220
32198
|
title: "Total Visitors",
|
|
@@ -32231,7 +32209,7 @@ function tK() {
|
|
|
32231
32209
|
delta: "+2.0%",
|
|
32232
32210
|
deltaLabel: "Compared to last month",
|
|
32233
32211
|
positive: !0,
|
|
32234
|
-
Icon:
|
|
32212
|
+
Icon: YH,
|
|
32235
32213
|
iconColor: "text-[#F69E0A]"
|
|
32236
32214
|
},
|
|
32237
32215
|
{
|
|
@@ -32240,7 +32218,7 @@ function tK() {
|
|
|
32240
32218
|
delta: "+11.0%",
|
|
32241
32219
|
deltaLabel: "Compared to last month",
|
|
32242
32220
|
positive: !0,
|
|
32243
|
-
Icon:
|
|
32221
|
+
Icon: GH,
|
|
32244
32222
|
iconColor: "text-[#AB0000]"
|
|
32245
32223
|
},
|
|
32246
32224
|
{
|
|
@@ -32253,22 +32231,22 @@ function tK() {
|
|
|
32253
32231
|
iconColor: "text-[#36AB6C]"
|
|
32254
32232
|
}
|
|
32255
32233
|
];
|
|
32256
|
-
return /* @__PURE__ */ y.jsx("div", { className: "px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]", children: e.map((t, r) => /* @__PURE__ */ y.jsx(
|
|
32234
|
+
return /* @__PURE__ */ y.jsx("div", { className: "px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]", children: e.map((t, r) => /* @__PURE__ */ y.jsx(XH, { ...t }, r)) });
|
|
32257
32235
|
}
|
|
32258
|
-
const
|
|
32236
|
+
const ZH = [
|
|
32259
32237
|
{ title: "Maintenance", total: 25, pending: 8 },
|
|
32260
32238
|
{ title: "Security", total: 15, pending: 3 },
|
|
32261
32239
|
{ title: "Housekeeping", total: 12, pending: 4 },
|
|
32262
32240
|
{ title: "Utilities", total: 10, pending: 2 }
|
|
32263
32241
|
];
|
|
32264
|
-
function
|
|
32242
|
+
function QU() {
|
|
32265
32243
|
return /* @__PURE__ */ y.jsx(
|
|
32266
32244
|
Fe,
|
|
32267
32245
|
{
|
|
32268
32246
|
title: "Complaints",
|
|
32269
32247
|
period: /* @__PURE__ */ y.jsx(vt, { className: "text-[20px] text-[#884EA7]" }),
|
|
32270
32248
|
className: "h-[362px]",
|
|
32271
|
-
children: /* @__PURE__ */ y.jsx("div", { className: "flex flex-col gap-[12px]", children:
|
|
32249
|
+
children: /* @__PURE__ */ y.jsx("div", { className: "flex flex-col gap-[12px]", children: ZH.map((e, t) => /* @__PURE__ */ y.jsxs(
|
|
32272
32250
|
"div",
|
|
32273
32251
|
{
|
|
32274
32252
|
className: "flex items-center justify-between bg-[#F9FAFB] rounded-lg p-3 h-[62px]",
|
|
@@ -32292,7 +32270,7 @@ function rK() {
|
|
|
32292
32270
|
);
|
|
32293
32271
|
}
|
|
32294
32272
|
Ut.register(Bn, zn, Yo, Ar, Or);
|
|
32295
|
-
const
|
|
32273
|
+
const eK = ({
|
|
32296
32274
|
blocks: e = [
|
|
32297
32275
|
{ name: "Level 1", owner: 110, rented: 24, vacant: 8 },
|
|
32298
32276
|
{ name: "Level 2", owner: 95, rented: 18, vacant: 6 },
|
|
@@ -32378,20 +32356,20 @@ const nK = ({
|
|
|
32378
32356
|
children: /* @__PURE__ */ y.jsx(Go, { data: a, options: o })
|
|
32379
32357
|
}
|
|
32380
32358
|
);
|
|
32381
|
-
},
|
|
32359
|
+
}, JH = [
|
|
32382
32360
|
{ title: "Access Card", total: 45, pending: 11 },
|
|
32383
32361
|
{ title: "NOC Request", total: 12, pending: 7 },
|
|
32384
32362
|
{ title: "Parking Allocation", total: 8, pending: 6 },
|
|
32385
32363
|
{ title: "Document Request", total: 25, pending: 2 }
|
|
32386
32364
|
];
|
|
32387
|
-
function
|
|
32365
|
+
function tK() {
|
|
32388
32366
|
return /* @__PURE__ */ y.jsx(
|
|
32389
32367
|
Fe,
|
|
32390
32368
|
{
|
|
32391
32369
|
title: "Request Box",
|
|
32392
32370
|
period: /* @__PURE__ */ y.jsx(vt, { className: "text-[20px] text-[#884EA7]" }),
|
|
32393
32371
|
className: "h-[362px]",
|
|
32394
|
-
children: /* @__PURE__ */ y.jsx("div", { className: "flex flex-col gap-[12px]", children:
|
|
32372
|
+
children: /* @__PURE__ */ y.jsx("div", { className: "flex flex-col gap-[12px]", children: JH.map((e, t) => /* @__PURE__ */ y.jsxs(
|
|
32395
32373
|
"div",
|
|
32396
32374
|
{
|
|
32397
32375
|
className: "flex items-center justify-between bg-[#F9FAFB] rounded-lg p-3 h-[62px]",
|
|
@@ -32414,10 +32392,10 @@ function iK() {
|
|
|
32414
32392
|
}
|
|
32415
32393
|
);
|
|
32416
32394
|
}
|
|
32417
|
-
function
|
|
32395
|
+
function QH(e) {
|
|
32418
32396
|
return Ne({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { fill: "none", strokeLinejoin: "round", strokeWidth: "32", d: "M416 221.25V416a48 48 0 0 1-48 48H144a48 48 0 0 1-48-48V96a48 48 0 0 1 48-48h98.75a32 32 0 0 1 22.62 9.37l141.26 141.26a32 32 0 0 1 9.37 22.62z" }, child: [] }, { tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "32", d: "M256 56v120a32 32 0 0 0 32 32h120m-232 80h160m-160 80h160" }, child: [] }] })(e);
|
|
32419
32397
|
}
|
|
32420
|
-
function
|
|
32398
|
+
function eU({
|
|
32421
32399
|
title: e,
|
|
32422
32400
|
value: t,
|
|
32423
32401
|
delta: r,
|
|
@@ -32448,7 +32426,7 @@ function nU({
|
|
|
32448
32426
|
}
|
|
32449
32427
|
);
|
|
32450
32428
|
}
|
|
32451
|
-
function
|
|
32429
|
+
function rK() {
|
|
32452
32430
|
const e = [
|
|
32453
32431
|
{
|
|
32454
32432
|
title: "Open Complaints",
|
|
@@ -32465,7 +32443,7 @@ function aK() {
|
|
|
32465
32443
|
delta: "+2.0%",
|
|
32466
32444
|
deltaLabel: "Compared to last month",
|
|
32467
32445
|
positive: !0,
|
|
32468
|
-
Icon:
|
|
32446
|
+
Icon: QH,
|
|
32469
32447
|
iconColor: "text-[#E7A015]"
|
|
32470
32448
|
},
|
|
32471
32449
|
{
|
|
@@ -32487,7 +32465,7 @@ function aK() {
|
|
|
32487
32465
|
iconColor: "text-[#329DFF]"
|
|
32488
32466
|
}
|
|
32489
32467
|
];
|
|
32490
|
-
return /* @__PURE__ */ y.jsx("div", { className: "px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]", children: e.map((t, r) => /* @__PURE__ */ y.jsx(
|
|
32468
|
+
return /* @__PURE__ */ y.jsx("div", { className: "px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]", children: e.map((t, r) => /* @__PURE__ */ y.jsx(eU, { ...t }, r)) });
|
|
32491
32469
|
}
|
|
32492
32470
|
function Xx({ title: e, date: t, rsvp: r, utilisation: n, status: i }) {
|
|
32493
32471
|
return /* @__PURE__ */ y.jsxs("div", { className: " bg-[#F8FAFC] h-[106px] px-3 mt-3", children: [
|
|
@@ -32521,7 +32499,7 @@ function Xx({ title: e, date: t, rsvp: r, utilisation: n, status: i }) {
|
|
|
32521
32499
|
) })
|
|
32522
32500
|
] });
|
|
32523
32501
|
}
|
|
32524
|
-
function
|
|
32502
|
+
function nK() {
|
|
32525
32503
|
return /* @__PURE__ */ y.jsx(
|
|
32526
32504
|
Fe,
|
|
32527
32505
|
{
|
|
@@ -32560,7 +32538,7 @@ function Ls({ label: e, value: t, subLabel: r, bgColor: n, textColor: i }) {
|
|
|
32560
32538
|
/* @__PURE__ */ y.jsx("div", { className: "!text-[12px] leading-[16px] text-[#64748B] mt-2", children: r })
|
|
32561
32539
|
] });
|
|
32562
32540
|
}
|
|
32563
|
-
function
|
|
32541
|
+
function iK() {
|
|
32564
32542
|
return /* @__PURE__ */ y.jsx(
|
|
32565
32543
|
Fe,
|
|
32566
32544
|
{
|
|
@@ -32615,7 +32593,7 @@ function sK() {
|
|
|
32615
32593
|
function bA(e) {
|
|
32616
32594
|
return Ne({ attr: { viewBox: "0 0 24 24", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M20 22H4C3.44772 22 3 21.5523 3 21V3C3 2.44772 3.44772 2 4 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22ZM19 20V4H5V20H19ZM8 9H16V11H8V9ZM8 13H16V15H8V13Z" }, child: [] }] })(e);
|
|
32617
32595
|
}
|
|
32618
|
-
function
|
|
32596
|
+
function tU({
|
|
32619
32597
|
title: e,
|
|
32620
32598
|
value: t,
|
|
32621
32599
|
delta: r,
|
|
@@ -32647,7 +32625,7 @@ function iU({
|
|
|
32647
32625
|
}
|
|
32648
32626
|
);
|
|
32649
32627
|
}
|
|
32650
|
-
function
|
|
32628
|
+
function aK({ data: e }) {
|
|
32651
32629
|
const t = [
|
|
32652
32630
|
{
|
|
32653
32631
|
title: e?.title || "Total Bookings",
|
|
@@ -32660,12 +32638,12 @@ function lK({ data: e }) {
|
|
|
32660
32638
|
iconBg: "bg-emerald-50"
|
|
32661
32639
|
}
|
|
32662
32640
|
];
|
|
32663
|
-
return /* @__PURE__ */ y.jsx("div", { className: "h-full", children: t.map((r, n) => /* @__PURE__ */ y.jsx(
|
|
32641
|
+
return /* @__PURE__ */ y.jsx("div", { className: "h-full", children: t.map((r, n) => /* @__PURE__ */ y.jsx(tU, { ...r }, n)) });
|
|
32664
32642
|
}
|
|
32665
|
-
function
|
|
32643
|
+
function rU(e) {
|
|
32666
32644
|
return Ne({ attr: { fill: "none", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01" }, child: [] }] })(e);
|
|
32667
32645
|
}
|
|
32668
|
-
function
|
|
32646
|
+
function nU({
|
|
32669
32647
|
title: e,
|
|
32670
32648
|
value: t,
|
|
32671
32649
|
delta: r,
|
|
@@ -32697,7 +32675,7 @@ function oU({
|
|
|
32697
32675
|
}
|
|
32698
32676
|
);
|
|
32699
32677
|
}
|
|
32700
|
-
function
|
|
32678
|
+
function oK() {
|
|
32701
32679
|
const e = [
|
|
32702
32680
|
{
|
|
32703
32681
|
title: "Notice",
|
|
@@ -32725,7 +32703,7 @@ function cK() {
|
|
|
32725
32703
|
delta: "+11.0%",
|
|
32726
32704
|
deltaLabel: "Compared to last month",
|
|
32727
32705
|
positive: !0,
|
|
32728
|
-
Icon:
|
|
32706
|
+
Icon: qH,
|
|
32729
32707
|
iconColor: "text-[#FA7E28]",
|
|
32730
32708
|
iconBg: "bg-orange-100"
|
|
32731
32709
|
},
|
|
@@ -32735,48 +32713,48 @@ function cK() {
|
|
|
32735
32713
|
delta: "-8.0%",
|
|
32736
32714
|
deltaLabel: "Compared to last month",
|
|
32737
32715
|
positive: !1,
|
|
32738
|
-
Icon:
|
|
32716
|
+
Icon: rU,
|
|
32739
32717
|
iconColor: "text-[#DBB467]",
|
|
32740
32718
|
iconBg: "bg-yellow-100"
|
|
32741
32719
|
}
|
|
32742
32720
|
];
|
|
32743
|
-
return /* @__PURE__ */ y.jsx("div", { className: "px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]", children: e.map((t, r) => /* @__PURE__ */ y.jsx(
|
|
32721
|
+
return /* @__PURE__ */ y.jsx("div", { className: "px-5 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-[24px]", children: e.map((t, r) => /* @__PURE__ */ y.jsx(nU, { ...t }, r)) });
|
|
32744
32722
|
}
|
|
32745
32723
|
export {
|
|
32746
|
-
|
|
32747
|
-
|
|
32748
|
-
|
|
32749
|
-
|
|
32724
|
+
BU as Accounting,
|
|
32725
|
+
UU as AssetValueBreakdown,
|
|
32726
|
+
LU as BlockWiseOccupancy,
|
|
32727
|
+
zU as Budgets,
|
|
32750
32728
|
Fe as Card,
|
|
32751
|
-
|
|
32752
|
-
|
|
32753
|
-
|
|
32754
|
-
|
|
32755
|
-
|
|
32756
|
-
|
|
32757
|
-
|
|
32758
|
-
|
|
32759
|
-
|
|
32760
|
-
|
|
32761
|
-
|
|
32762
|
-
|
|
32763
|
-
|
|
32764
|
-
|
|
32765
|
-
|
|
32766
|
-
|
|
32767
|
-
|
|
32768
|
-
|
|
32769
|
-
|
|
32770
|
-
|
|
32771
|
-
|
|
32772
|
-
|
|
32773
|
-
|
|
32774
|
-
|
|
32775
|
-
|
|
32776
|
-
|
|
32777
|
-
|
|
32778
|
-
|
|
32779
|
-
|
|
32780
|
-
|
|
32781
|
-
|
|
32729
|
+
WU as CashBankBalance,
|
|
32730
|
+
EU as Community,
|
|
32731
|
+
QU as Complaints,
|
|
32732
|
+
eK as ComplaintsByLevel,
|
|
32733
|
+
VU as DuesAgeing,
|
|
32734
|
+
CU as Engagement,
|
|
32735
|
+
oK as EngagementStatsGrid,
|
|
32736
|
+
nK as EventsUtilisation,
|
|
32737
|
+
HU as ExpenseCategories,
|
|
32738
|
+
kU as Facilities,
|
|
32739
|
+
TU as FinanceSummary,
|
|
32740
|
+
JU as GateAndSecurityStatsGrid,
|
|
32741
|
+
MU as GateUpdates,
|
|
32742
|
+
YU as GuardPatrols,
|
|
32743
|
+
oU as Header,
|
|
32744
|
+
jU as Helpdesk,
|
|
32745
|
+
rK as HelpdeskStatsGrid,
|
|
32746
|
+
GU as HourlyTrafficFlow,
|
|
32747
|
+
XU as IncidentReports,
|
|
32748
|
+
VH as IncomeExpenditure,
|
|
32749
|
+
sU as MainHeader,
|
|
32750
|
+
FU as MoveInOutTrends,
|
|
32751
|
+
iK as NoticeBoardStatus,
|
|
32752
|
+
RU as OccupancyOverview,
|
|
32753
|
+
tK as RequestBox,
|
|
32754
|
+
$U as ResidentOverview,
|
|
32755
|
+
KU as RevenuebyCategory,
|
|
32756
|
+
aK as SingleStats,
|
|
32757
|
+
ZU as StaffAttendance,
|
|
32758
|
+
qU as StatsGrid,
|
|
32759
|
+
IU as UnitStatus
|
|
32782
32760
|
};
|