apexcharts 6.3.0 → 6.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apexcharts.common.js +2 -2
- package/dist/apexcharts.esm.js +769 -117
- package/dist/apexcharts.js +769 -117
- package/dist/apexcharts.min.js +2 -2
- package/dist/apexcharts.ssr.common.js +2 -2
- package/dist/apexcharts.ssr.esm.js +769 -117
- package/dist/area.common.js +2 -2
- package/dist/area.esm.js +3 -3
- package/dist/bar.common.js +2 -2
- package/dist/bar.esm.js +208 -109
- package/dist/boxPlot.common.js +2 -2
- package/dist/boxPlot.esm.js +208 -109
- package/dist/bubble.common.js +2 -2
- package/dist/bubble.esm.js +3 -3
- package/dist/candlestick.common.js +2 -2
- package/dist/candlestick.esm.js +208 -109
- package/dist/column.common.js +2 -2
- package/dist/column.esm.js +208 -109
- package/dist/core.common.js +2 -2
- package/dist/core.esm.js +372 -62
- package/dist/donut.common.js +1 -1
- package/dist/donut.esm.js +1 -1
- package/dist/features/all.common.js +2 -2
- package/dist/features/all.esm.js +282 -9
- package/dist/features/annotations.common.js +1 -1
- package/dist/features/annotations.esm.js +1 -1
- package/dist/features/context-menu.common.js +1 -1
- package/dist/features/context-menu.esm.js +1 -1
- package/dist/features/drilldown.common.js +1 -1
- package/dist/features/drilldown.esm.js +1 -1
- package/dist/features/exports.common.js +1 -1
- package/dist/features/exports.esm.js +1 -1
- package/dist/features/facet.common.js +1 -1
- package/dist/features/facet.esm.js +1 -1
- package/dist/features/history.common.js +1 -1
- package/dist/features/history.esm.js +1 -1
- package/dist/features/ink.common.js +1 -1
- package/dist/features/ink.esm.js +1 -1
- package/dist/features/keyboard.common.js +1 -1
- package/dist/features/keyboard.esm.js +1 -1
- package/dist/features/legend.common.js +1 -1
- package/dist/features/legend.esm.js +1 -1
- package/dist/features/link.common.js +1 -1
- package/dist/features/link.esm.js +1 -1
- package/dist/features/marks.common.js +1 -1
- package/dist/features/marks.esm.js +1 -1
- package/dist/features/measure.common.js +1 -1
- package/dist/features/measure.esm.js +1 -1
- package/dist/features/morph.common.js +1 -1
- package/dist/features/morph.esm.js +1 -1
- package/dist/features/perspectives.common.js +1 -1
- package/dist/features/perspectives.esm.js +1 -1
- package/dist/features/renderer-canvas.common.js +2 -2
- package/dist/features/renderer-canvas.esm.js +280 -7
- package/dist/features/storyboard.common.js +1 -1
- package/dist/features/storyboard.esm.js +1 -1
- package/dist/features/toolbar.common.js +1 -1
- package/dist/features/toolbar.esm.js +1 -1
- package/dist/features/weave.common.js +1 -1
- package/dist/features/weave.esm.js +1 -1
- package/dist/heatmap.common.js +2 -2
- package/dist/heatmap.esm.js +79 -41
- package/dist/line.common.js +2 -2
- package/dist/line.esm.js +3 -3
- package/dist/pie.common.js +1 -1
- package/dist/pie.esm.js +1 -1
- package/dist/polarArea.common.js +1 -1
- package/dist/polarArea.esm.js +1 -1
- package/dist/radar.common.js +1 -1
- package/dist/radar.esm.js +1 -1
- package/dist/radialBar.common.js +1 -1
- package/dist/radialBar.esm.js +1 -1
- package/dist/rangeArea.common.js +2 -2
- package/dist/rangeArea.esm.js +3 -3
- package/dist/rangeBar.common.js +2 -2
- package/dist/rangeBar.esm.js +208 -109
- package/dist/scatter.common.js +2 -2
- package/dist/scatter.esm.js +3 -3
- package/dist/treemap.common.js +1 -1
- package/dist/treemap.esm.js +1 -1
- package/dist/violin.common.js +2 -2
- package/dist/violin.esm.js +208 -109
- package/package.json +1 -1
- package/src/apexcharts.js +7 -0
- package/src/charts/Bar.js +38 -6
- package/src/charts/HeatMap.js +126 -55
- package/src/charts/common/bar/DataLabels.js +16 -0
- package/src/modules/Data.js +14 -2
- package/src/modules/Filters.js +34 -6
- package/src/modules/Graphics.js +4 -4
- package/src/modules/Series.js +6 -0
- package/src/modules/animations/AxisTransition.js +57 -15
- package/src/modules/animations/DataLabelTransition.js +235 -0
- package/src/modules/animations/LengthTransition.js +15 -2
- package/src/modules/axes/YAxis.js +21 -1
- package/src/modules/settings/Defaults.js +12 -1
- package/src/modules/settings/Options.js +16 -0
- package/src/modules/tooltip/Intersect.js +145 -32
- package/src/modules/tooltip/Labels.js +9 -0
- package/src/modules/tooltip/Tooltip.js +28 -7
- package/src/renderers/Renderer.js +8 -2
- package/src/renderers/canvas/CanvasCompositor.js +100 -1
- package/src/renderers/canvas/CanvasGraphics.js +184 -0
- package/src/renderers/canvas/CanvasRenderer.js +46 -6
- package/src/types/internal.d.ts +8 -0
- package/types/apexcharts.d.ts +30 -0
package/dist/boxPlot.esm.js
CHANGED
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* ApexCharts v6.
|
|
21
|
+
* ApexCharts v6.4.0
|
|
22
22
|
* (c) 2018-2026 ApexCharts
|
|
23
23
|
*/
|
|
24
24
|
import * as _core from "apexcharts/core";
|
|
@@ -27,6 +27,172 @@ import { default as default2 } from "apexcharts/core";
|
|
|
27
27
|
const CoreUtils = _core.__apex_CoreUtils;
|
|
28
28
|
const Graphics = _core.__apex_Graphics;
|
|
29
29
|
const DataLabels = _core.__apex_DataLabels;
|
|
30
|
+
const BrowserAPIs = _core.__apex_BrowserAPIs_BrowserAPIs;
|
|
31
|
+
const Environment = _core.__apex_Environment_Environment;
|
|
32
|
+
function lengthTransitionEnabled(w) {
|
|
33
|
+
var _a;
|
|
34
|
+
const anim = w.config.chart.animations;
|
|
35
|
+
if (!anim || anim.enabled === false) return false;
|
|
36
|
+
if (!anim.dynamicAnimation || anim.dynamicAnimation.enabled === false) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
const largeThreshold = (_a = anim.largeDatasetThreshold) != null ? _a : 0;
|
|
40
|
+
if (largeThreshold > 0 && w.globals.dataPoints > largeThreshold) return false;
|
|
41
|
+
return !!(Environment.isBrowser() && w.globals.dataChanged && w.globals.shouldAnimate);
|
|
42
|
+
}
|
|
43
|
+
function datumKey(w, realIndex, j) {
|
|
44
|
+
var _a, _b, _c, _d;
|
|
45
|
+
if ((_a = w.axisFlags) == null ? void 0 : _a.isXNumeric) {
|
|
46
|
+
const sx = (_c = (_b = w.seriesData) == null ? void 0 : _b.seriesX) == null ? void 0 : _c[realIndex];
|
|
47
|
+
if (sx && sx.length && sx[j] != null) return "x:" + sx[j];
|
|
48
|
+
}
|
|
49
|
+
const lbl = (_d = w.globals.labels) == null ? void 0 : _d[j];
|
|
50
|
+
if (lbl != null && String(lbl) !== "") {
|
|
51
|
+
return "c:" + (Array.isArray(lbl) ? lbl.join(" ") : String(lbl));
|
|
52
|
+
}
|
|
53
|
+
return "j:" + j;
|
|
54
|
+
}
|
|
55
|
+
function frameDatumKey(frame, realIndex, j) {
|
|
56
|
+
var _a, _b;
|
|
57
|
+
if (frame.isXNumeric) {
|
|
58
|
+
const sx = (_a = frame.seriesX) == null ? void 0 : _a[realIndex];
|
|
59
|
+
if (sx && sx.length && sx[j] != null) return "x:" + sx[j];
|
|
60
|
+
}
|
|
61
|
+
const lbl = (_b = frame.labels) == null ? void 0 : _b[j];
|
|
62
|
+
if (lbl != null && String(lbl) !== "") {
|
|
63
|
+
return "c:" + (Array.isArray(lbl) ? lbl.join(" ") : String(lbl));
|
|
64
|
+
}
|
|
65
|
+
return "j:" + j;
|
|
66
|
+
}
|
|
67
|
+
function joinKeys(oldKeys, newKeys) {
|
|
68
|
+
const oldIndex = /* @__PURE__ */ new Map();
|
|
69
|
+
oldKeys.forEach((k, i) => {
|
|
70
|
+
if (!oldIndex.has(k)) oldIndex.set(k, i);
|
|
71
|
+
});
|
|
72
|
+
const toOld = new Array(newKeys.length);
|
|
73
|
+
const usedOld = /* @__PURE__ */ new Set();
|
|
74
|
+
let prev = -1;
|
|
75
|
+
let ordered = true;
|
|
76
|
+
let identity = oldKeys.length === newKeys.length;
|
|
77
|
+
newKeys.forEach((k, i) => {
|
|
78
|
+
const oi = oldIndex.has(k) && !usedOld.has(oldIndex.get(k)) ? oldIndex.get(k) : -1;
|
|
79
|
+
toOld[i] = oi;
|
|
80
|
+
if (oi !== -1) {
|
|
81
|
+
usedOld.add(oi);
|
|
82
|
+
if (oi < prev) ordered = false;
|
|
83
|
+
prev = oi;
|
|
84
|
+
}
|
|
85
|
+
if (oi !== i) identity = false;
|
|
86
|
+
});
|
|
87
|
+
const exits = [];
|
|
88
|
+
for (let i = 0; i < oldKeys.length; i++) {
|
|
89
|
+
if (!usedOld.has(i)) exits.push(i);
|
|
90
|
+
}
|
|
91
|
+
return { toOld, exits, ordered, changed: !identity };
|
|
92
|
+
}
|
|
93
|
+
function uniquifyKeys(keys) {
|
|
94
|
+
const seen = /* @__PURE__ */ new Map();
|
|
95
|
+
return keys.map((k) => {
|
|
96
|
+
const count = seen.get(k) || 0;
|
|
97
|
+
seen.set(k, count + 1);
|
|
98
|
+
return count === 0 ? k : `${k}#${count}`;
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
function seriesJoin(w, realIndex, includeIdentity = false, allowReorder = false) {
|
|
102
|
+
var _a, _b;
|
|
103
|
+
if (!lengthTransitionEnabled(w)) return null;
|
|
104
|
+
const frame = w.globals.prevStreamFrame;
|
|
105
|
+
if (!frame) return null;
|
|
106
|
+
const oldY = (_a = frame.seriesY) == null ? void 0 : _a[realIndex];
|
|
107
|
+
const newY = (_b = w.seriesData.series) == null ? void 0 : _b[realIndex];
|
|
108
|
+
if (!Array.isArray(oldY) || !Array.isArray(newY)) return null;
|
|
109
|
+
if (!oldY.length || !newY.length) return null;
|
|
110
|
+
const oldKeys = uniquifyKeys(
|
|
111
|
+
oldY.map((_, j) => frameDatumKey(frame, realIndex, j))
|
|
112
|
+
);
|
|
113
|
+
const newKeys = uniquifyKeys(newY.map((_, j) => datumKey(w, realIndex, j)));
|
|
114
|
+
const join = joinKeys(oldKeys, newKeys);
|
|
115
|
+
if (!join.ordered && !allowReorder) return null;
|
|
116
|
+
if (!join.changed && !includeIdentity) return null;
|
|
117
|
+
return { join, oldKeys, newKeys };
|
|
118
|
+
}
|
|
119
|
+
function firstMove(d) {
|
|
120
|
+
const m = /^M\s*([+-]?[\d.eE]+)[\s,]+([+-]?[\d.eE]+)/.exec(d || "");
|
|
121
|
+
if (!m) return null;
|
|
122
|
+
const x = parseFloat(m[1]);
|
|
123
|
+
const y = parseFloat(m[2]);
|
|
124
|
+
return isFinite(x) && isFinite(y) ? { x, y } : null;
|
|
125
|
+
}
|
|
126
|
+
function renderBarExitGhosts({
|
|
127
|
+
w,
|
|
128
|
+
elSeries,
|
|
129
|
+
record,
|
|
130
|
+
newKeys,
|
|
131
|
+
isHorizontal,
|
|
132
|
+
speed
|
|
133
|
+
}) {
|
|
134
|
+
var _a;
|
|
135
|
+
if (!lengthTransitionEnabled(w)) return;
|
|
136
|
+
if (!record || !Array.isArray(record.paths) || !(elSeries == null ? void 0 : elSeries.node)) return;
|
|
137
|
+
const newKeySet = new Set(newKeys);
|
|
138
|
+
const exits = record.paths.filter(
|
|
139
|
+
(p) => p && p.d && p.key != null && !newKeySet.has(p.key)
|
|
140
|
+
);
|
|
141
|
+
if (!exits.length) return;
|
|
142
|
+
const graphics = new Graphics(w);
|
|
143
|
+
const fallbackFill = (_a = w.globals.colors) == null ? void 0 : _a[parseInt(String(record.realIndex), 10)];
|
|
144
|
+
exits.forEach((p) => {
|
|
145
|
+
let fill = p.fill || fallbackFill || "#c8c8c8";
|
|
146
|
+
if (String(fill).indexOf("url(") === 0) fill = fallbackFill || "#c8c8c8";
|
|
147
|
+
const ghost = graphics.drawPath({
|
|
148
|
+
d: p.d,
|
|
149
|
+
stroke: "none",
|
|
150
|
+
strokeWidth: 0,
|
|
151
|
+
fill,
|
|
152
|
+
fillOpacity: 1,
|
|
153
|
+
classes: "apexcharts-bar-ghost"
|
|
154
|
+
});
|
|
155
|
+
const node = ghost.node;
|
|
156
|
+
node.setAttribute("pointer-events", "none");
|
|
157
|
+
ghost.attr(
|
|
158
|
+
"clip-path",
|
|
159
|
+
`url(#gridRectBarMask${w.globals.cuid})`
|
|
160
|
+
);
|
|
161
|
+
elSeries.node.insertBefore(node, elSeries.node.firstChild);
|
|
162
|
+
const start = firstMove(p.d);
|
|
163
|
+
let origin = isHorizontal ? "left center" : "center bottom";
|
|
164
|
+
try {
|
|
165
|
+
const bb = node.getBBox();
|
|
166
|
+
if (start && bb) {
|
|
167
|
+
if (isHorizontal) {
|
|
168
|
+
origin = Math.abs(start.x - bb.x) <= Math.abs(start.x - (bb.x + bb.width)) ? "left center" : "right center";
|
|
169
|
+
} else {
|
|
170
|
+
origin = Math.abs(start.y - (bb.y + bb.height)) <= Math.abs(start.y - bb.y) ? "center bottom" : "center top";
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
} catch (_) {
|
|
174
|
+
}
|
|
175
|
+
const style = node.style;
|
|
176
|
+
style.transformBox = "fill-box";
|
|
177
|
+
style.transformOrigin = origin;
|
|
178
|
+
const duration = Math.max(1, speed || 1);
|
|
179
|
+
const startAt = performance.now();
|
|
180
|
+
const step = (now) => {
|
|
181
|
+
if (w.globals.isDestroyed || !node.parentNode) return;
|
|
182
|
+
const t = Math.max(0, Math.min(1, (now - startAt) / duration));
|
|
183
|
+
const eased = 1 - Math.pow(1 - t, 3);
|
|
184
|
+
const scale = 1 - eased;
|
|
185
|
+
style.transform = isHorizontal ? `scaleX(${scale})` : `scaleY(${scale})`;
|
|
186
|
+
style.opacity = String(1 - eased);
|
|
187
|
+
if (t < 1) {
|
|
188
|
+
BrowserAPIs.requestAnimationFrame(step);
|
|
189
|
+
} else {
|
|
190
|
+
node.parentNode.removeChild(node);
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
BrowserAPIs.requestAnimationFrame(step);
|
|
194
|
+
});
|
|
195
|
+
}
|
|
30
196
|
class BarDataLabels {
|
|
31
197
|
/**
|
|
32
198
|
* @param {import('../../../charts/Bar').default} barCtx
|
|
@@ -477,6 +643,7 @@ class BarDataLabels {
|
|
|
477
643
|
barWidth,
|
|
478
644
|
dataLabelsConfig
|
|
479
645
|
}) {
|
|
646
|
+
var _a, _b;
|
|
480
647
|
const w = this.w;
|
|
481
648
|
let rotate = "rotate(0)";
|
|
482
649
|
if (w.config.plotOptions.bar.dataLabels.orientation === "vertical")
|
|
@@ -491,6 +658,17 @@ class BarDataLabels {
|
|
|
491
658
|
class: "apexcharts-data-labels",
|
|
492
659
|
transform: rotate
|
|
493
660
|
});
|
|
661
|
+
const dlCfg = w.config.dataLabels;
|
|
662
|
+
if (((_a = dlCfg.animate) == null ? void 0 : _a.enabled) || ((_b = dlCfg.countUp) == null ? void 0 : _b.enabled)) {
|
|
663
|
+
elDataLabelsWrap.node.setAttribute(
|
|
664
|
+
"data:dlKey",
|
|
665
|
+
`${i}::${datumKey(w, i, j)}`
|
|
666
|
+
);
|
|
667
|
+
elDataLabelsWrap.node.setAttribute("data:dlJ", String(j));
|
|
668
|
+
if (typeof val === "number" && isFinite(val)) {
|
|
669
|
+
elDataLabelsWrap.node.setAttribute("data:dlVal", String(val));
|
|
670
|
+
}
|
|
671
|
+
}
|
|
494
672
|
let text = "";
|
|
495
673
|
if (typeof val !== "undefined") {
|
|
496
674
|
text = formatter(val, __spreadProps(__spreadValues({}, w), {
|
|
@@ -1414,108 +1592,6 @@ class Helpers {
|
|
|
1414
1592
|
}
|
|
1415
1593
|
const Filters = _core.__apex_Filters;
|
|
1416
1594
|
const computeStagger = _core.__apex_Animations_computeStagger;
|
|
1417
|
-
const BrowserAPIs = _core.__apex_BrowserAPIs_BrowserAPIs;
|
|
1418
|
-
const Environment = _core.__apex_Environment_Environment;
|
|
1419
|
-
function lengthTransitionEnabled(w) {
|
|
1420
|
-
var _a;
|
|
1421
|
-
const anim = w.config.chart.animations;
|
|
1422
|
-
if (!anim || anim.enabled === false) return false;
|
|
1423
|
-
if (!anim.dynamicAnimation || anim.dynamicAnimation.enabled === false) {
|
|
1424
|
-
return false;
|
|
1425
|
-
}
|
|
1426
|
-
const largeThreshold = (_a = anim.largeDatasetThreshold) != null ? _a : 0;
|
|
1427
|
-
if (largeThreshold > 0 && w.globals.dataPoints > largeThreshold) return false;
|
|
1428
|
-
return !!(Environment.isBrowser() && w.globals.dataChanged && w.globals.shouldAnimate);
|
|
1429
|
-
}
|
|
1430
|
-
function datumKey(w, realIndex, j) {
|
|
1431
|
-
var _a, _b, _c, _d;
|
|
1432
|
-
if ((_a = w.axisFlags) == null ? void 0 : _a.isXNumeric) {
|
|
1433
|
-
const sx = (_c = (_b = w.seriesData) == null ? void 0 : _b.seriesX) == null ? void 0 : _c[realIndex];
|
|
1434
|
-
if (sx && sx.length && sx[j] != null) return "x:" + sx[j];
|
|
1435
|
-
}
|
|
1436
|
-
const lbl = (_d = w.globals.labels) == null ? void 0 : _d[j];
|
|
1437
|
-
if (lbl != null && String(lbl) !== "") {
|
|
1438
|
-
return "c:" + (Array.isArray(lbl) ? lbl.join(" ") : String(lbl));
|
|
1439
|
-
}
|
|
1440
|
-
return "j:" + j;
|
|
1441
|
-
}
|
|
1442
|
-
function firstMove(d) {
|
|
1443
|
-
const m = /^M\s*([+-]?[\d.eE]+)[\s,]+([+-]?[\d.eE]+)/.exec(d || "");
|
|
1444
|
-
if (!m) return null;
|
|
1445
|
-
const x = parseFloat(m[1]);
|
|
1446
|
-
const y = parseFloat(m[2]);
|
|
1447
|
-
return isFinite(x) && isFinite(y) ? { x, y } : null;
|
|
1448
|
-
}
|
|
1449
|
-
function renderBarExitGhosts({
|
|
1450
|
-
w,
|
|
1451
|
-
elSeries,
|
|
1452
|
-
record,
|
|
1453
|
-
newKeys,
|
|
1454
|
-
isHorizontal,
|
|
1455
|
-
speed
|
|
1456
|
-
}) {
|
|
1457
|
-
var _a;
|
|
1458
|
-
if (!lengthTransitionEnabled(w)) return;
|
|
1459
|
-
if (!record || !Array.isArray(record.paths) || !(elSeries == null ? void 0 : elSeries.node)) return;
|
|
1460
|
-
const newKeySet = new Set(newKeys);
|
|
1461
|
-
const exits = record.paths.filter(
|
|
1462
|
-
(p) => p && p.d && p.key != null && !newKeySet.has(p.key)
|
|
1463
|
-
);
|
|
1464
|
-
if (!exits.length) return;
|
|
1465
|
-
const graphics = new Graphics(w);
|
|
1466
|
-
const fallbackFill = (_a = w.globals.colors) == null ? void 0 : _a[parseInt(String(record.realIndex), 10)];
|
|
1467
|
-
exits.forEach((p) => {
|
|
1468
|
-
let fill = p.fill || fallbackFill || "#c8c8c8";
|
|
1469
|
-
if (String(fill).indexOf("url(") === 0) fill = fallbackFill || "#c8c8c8";
|
|
1470
|
-
const ghost = graphics.drawPath({
|
|
1471
|
-
d: p.d,
|
|
1472
|
-
stroke: "none",
|
|
1473
|
-
strokeWidth: 0,
|
|
1474
|
-
fill,
|
|
1475
|
-
fillOpacity: 1,
|
|
1476
|
-
classes: "apexcharts-bar-ghost"
|
|
1477
|
-
});
|
|
1478
|
-
const node = ghost.node;
|
|
1479
|
-
node.setAttribute("pointer-events", "none");
|
|
1480
|
-
ghost.attr(
|
|
1481
|
-
"clip-path",
|
|
1482
|
-
`url(#gridRectBarMask${w.globals.cuid})`
|
|
1483
|
-
);
|
|
1484
|
-
elSeries.node.insertBefore(node, elSeries.node.firstChild);
|
|
1485
|
-
const start = firstMove(p.d);
|
|
1486
|
-
let origin = isHorizontal ? "left center" : "center bottom";
|
|
1487
|
-
try {
|
|
1488
|
-
const bb = node.getBBox();
|
|
1489
|
-
if (start && bb) {
|
|
1490
|
-
if (isHorizontal) {
|
|
1491
|
-
origin = Math.abs(start.x - bb.x) <= Math.abs(start.x - (bb.x + bb.width)) ? "left center" : "right center";
|
|
1492
|
-
} else {
|
|
1493
|
-
origin = Math.abs(start.y - (bb.y + bb.height)) <= Math.abs(start.y - bb.y) ? "center bottom" : "center top";
|
|
1494
|
-
}
|
|
1495
|
-
}
|
|
1496
|
-
} catch (_) {
|
|
1497
|
-
}
|
|
1498
|
-
const style = node.style;
|
|
1499
|
-
style.transformBox = "fill-box";
|
|
1500
|
-
style.transformOrigin = origin;
|
|
1501
|
-
const duration = Math.max(1, speed || 1);
|
|
1502
|
-
const startAt = performance.now();
|
|
1503
|
-
const step = (now) => {
|
|
1504
|
-
if (w.globals.isDestroyed || !node.parentNode) return;
|
|
1505
|
-
const t = Math.max(0, Math.min(1, (now - startAt) / duration));
|
|
1506
|
-
const eased = 1 - Math.pow(1 - t, 3);
|
|
1507
|
-
const scale = 1 - eased;
|
|
1508
|
-
style.transform = isHorizontal ? `scaleX(${scale})` : `scaleY(${scale})`;
|
|
1509
|
-
style.opacity = String(1 - eased);
|
|
1510
|
-
if (t < 1) {
|
|
1511
|
-
BrowserAPIs.requestAnimationFrame(step);
|
|
1512
|
-
} else {
|
|
1513
|
-
node.parentNode.removeChild(node);
|
|
1514
|
-
}
|
|
1515
|
-
};
|
|
1516
|
-
BrowserAPIs.requestAnimationFrame(step);
|
|
1517
|
-
});
|
|
1518
|
-
}
|
|
1519
1595
|
function seriesEmitter(ctx, graphics) {
|
|
1520
1596
|
const r = ctx && ctx.renderer;
|
|
1521
1597
|
return r && r.kind && r.kind !== "svg" ? r : graphics;
|
|
@@ -1559,6 +1635,7 @@ class Bar {
|
|
|
1559
1635
|
this.pathArr = [];
|
|
1560
1636
|
this._prevKeyed = null;
|
|
1561
1637
|
this._ltCache = null;
|
|
1638
|
+
this._layoutShiftCache = null;
|
|
1562
1639
|
this.series = [];
|
|
1563
1640
|
this.elSeries = null;
|
|
1564
1641
|
this.visibleI = 0;
|
|
@@ -1587,7 +1664,7 @@ class Bar {
|
|
|
1587
1664
|
* @return {Element} element which is supplied to parent chart draw method for appending
|
|
1588
1665
|
**/
|
|
1589
1666
|
draw(series, seriesIndex) {
|
|
1590
|
-
var _a, _b;
|
|
1667
|
+
var _a, _b, _c;
|
|
1591
1668
|
const w = this.w;
|
|
1592
1669
|
const graphics = new Graphics(this.w);
|
|
1593
1670
|
const coreUtils = new CoreUtils(this.w);
|
|
@@ -1661,8 +1738,10 @@ class Bar {
|
|
|
1661
1738
|
el: elDataLabelsWrap.node,
|
|
1662
1739
|
// On a layout-changing update the labels must stay hidden through the
|
|
1663
1740
|
// reflow morph (the updateOptions flow otherwise reveals them at
|
|
1664
|
-
// frame 0, where they float over sliding bars).
|
|
1665
|
-
|
|
1741
|
+
// frame 0, where they float over sliding bars). When dataLabels.animate
|
|
1742
|
+
// is on the labels instead RIDE the morph (see DataLabelTransition), so
|
|
1743
|
+
// keep them visible: holding would hide the very motion we want to show.
|
|
1744
|
+
holdUntilComplete: !((_a = w.config.dataLabels.animate) == null ? void 0 : _a.enabled) && this.isLengthTransition(realIndex)
|
|
1666
1745
|
});
|
|
1667
1746
|
elDataLabelsWrap.node.classList.add("apexcharts-element-hidden");
|
|
1668
1747
|
const elGoalsMarkers = graphics.group({
|
|
@@ -1715,9 +1794,9 @@ class Bar {
|
|
|
1715
1794
|
j,
|
|
1716
1795
|
realIndex
|
|
1717
1796
|
);
|
|
1718
|
-
if (this.isFunnel && !this.isPyramid && this.barOptions.isFunnel3d && ((
|
|
1797
|
+
if (this.isFunnel && !this.isPyramid && this.barOptions.isFunnel3d && ((_b = w.config.plotOptions.funnel) == null ? void 0 : _b.shape) !== "trapezoid" && this.pathArr.length && j > 0) {
|
|
1719
1798
|
const barShadow = this.barHelpers.drawBarShadow({
|
|
1720
|
-
color: typeof pathFill.color === "string" && ((
|
|
1799
|
+
color: typeof pathFill.color === "string" && ((_c = pathFill.color) == null ? void 0 : _c.indexOf("url")) === -1 ? pathFill.color : Utils.hexToRgba(w.globals.colors[i]),
|
|
1721
1800
|
prevPaths: this.pathArr[this.pathArr.length - 1],
|
|
1722
1801
|
currPaths: paths,
|
|
1723
1802
|
realIndex,
|
|
@@ -1889,7 +1968,7 @@ class Bar {
|
|
|
1889
1968
|
}
|
|
1890
1969
|
const animCfg = w.config.chart.animations;
|
|
1891
1970
|
const gradCfg = animCfg.animateGradually;
|
|
1892
|
-
const staggerEnabled = gradCfg && gradCfg.enabled !== false && !(w.globals.dataChanged && this.
|
|
1971
|
+
const staggerEnabled = gradCfg && gradCfg.enabled !== false && !(w.globals.dataChanged && this.isLayoutShift(realIndex));
|
|
1893
1972
|
let delay = 0;
|
|
1894
1973
|
if (staggerEnabled) {
|
|
1895
1974
|
const totalBars = w.globals.dataPoints || 1;
|
|
@@ -2303,6 +2382,26 @@ class Bar {
|
|
|
2303
2382
|
this._ltCache[realIndex] = result;
|
|
2304
2383
|
return result;
|
|
2305
2384
|
}
|
|
2385
|
+
/**
|
|
2386
|
+
* Whether this update moves survivors to new slots: a length change
|
|
2387
|
+
* (enter/exit, via isLengthTransition) OR a pure reorder (a "bar chart race"
|
|
2388
|
+
* swap, same datum set in a new order). Used to drop the per-bar stagger so
|
|
2389
|
+
* all bars slide on one shared clock, staying locked to the axis/data labels.
|
|
2390
|
+
* Broader than isLengthTransition, which is deliberately enter/exit-only
|
|
2391
|
+
* (exit ghosts / baseline enters must not fire on a plain reorder).
|
|
2392
|
+
* @param {number} realIndex
|
|
2393
|
+
*/
|
|
2394
|
+
isLayoutShift(realIndex) {
|
|
2395
|
+
if (this.isLengthTransition(realIndex)) return true;
|
|
2396
|
+
if (!this._layoutShiftCache) this._layoutShiftCache = {};
|
|
2397
|
+
if (this._layoutShiftCache[realIndex] !== void 0) {
|
|
2398
|
+
return this._layoutShiftCache[realIndex];
|
|
2399
|
+
}
|
|
2400
|
+
const sj = seriesJoin(this.w, realIndex, true, true);
|
|
2401
|
+
const result = !!(sj && sj.join.changed);
|
|
2402
|
+
this._layoutShiftCache[realIndex] = result;
|
|
2403
|
+
return result;
|
|
2404
|
+
}
|
|
2306
2405
|
/**
|
|
2307
2406
|
* Resolve `pathFrom` for a bar on data update, joining old and new datums
|
|
2308
2407
|
* by KEY (category label / x value) so survivors keep their identity across
|
package/dist/bubble.common.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* ApexCharts v6.
|
|
2
|
+
* ApexCharts v6.4.0
|
|
3
3
|
* (c) 2018-2026 ApexCharts
|
|
4
4
|
*/
|
|
5
|
-
"use strict";var e=Object.defineProperty,t=Object.defineProperties,s=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,a=(t,s,i)=>s in t?e(t,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[s]=i,l=(e,t)=>{for(var s in t||(t={}))r.call(t,s)&&a(e,s,t[s]);if(i)for(var s of i(t))n.call(t,s)&&a(e,s,t[s]);return e},o=(e,i)=>t(e,s(i));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("apexcharts/core");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const s in e)if("default"!==s){const i=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>e[s]})}return t.default=e,Object.freeze(t)}const c=u(h),p=c.__apex_CoreUtils,d=c.__apex_Graphics,g=c.__apex_Fill,f=c.__apex_DataLabels,m=c.__apex_Markers,x=c.__apex_charts_Scatter,y=c.__apex_Series,b=c.__apex_Utils;class v{constructor(e){this.w=e.w,this.lineCtx=e}sameValueSeriesFix(e,t){const s=this.w;if("gradient"===s.config.fill.type||"gradient"===s.config.fill.type[e]){if(new p(this.lineCtx.w).seriesHaveSameValues(e)){const s=t[e].slice();s[s.length-1]=s[s.length-1]+1e-6,t[e]=s}}return t}calculatePoints({series:e,realIndex:t,x:s,y:i,i:r,j:n,prevY:a}){const l=this.w,o=[],h=[];let u=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;return l.axisFlags.isXNumeric&&(u=(l.seriesData.seriesX[t][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),0===n&&(o.push(u),h.push(b.isNumber(e[r][0])?a+l.config.markers.offsetY:null)),o.push(s+l.config.markers.offsetX),h.push(b.isNumber(e[r][n+1])?i+l.config.markers.offsetY:null),{x:o,y:h}}checkPreviousPaths({pathFromLine:e,pathFromArea:t,realIndex:s}){const i=this.w;for(let r=0;r<i.globals.previousPaths.length;r++){const n=i.globals.previousPaths[r];("line"===n.type||"area"===n.type)&&n.paths.length>0&&parseInt(n.realIndex,10)===parseInt(s,10)&&("line"===n.type?(this.lineCtx.appendPathFrom=!1,e=i.globals.previousPaths[r].paths[0].d):"area"===n.type&&(this.lineCtx.appendPathFrom=!1,t=i.globals.previousPaths[r].paths[0].d,i.config.stroke.show&&i.globals.previousPaths[r].paths[1]&&(e=i.globals.previousPaths[r].paths[1].d)))}return{pathFromLine:e,pathFromArea:t}}determineFirstPrevY({i:e,realIndex:t,series:s,prevY:i,lineYPosition:r,translationsIndex:n}){var a,l,o;const h=this.w,u=h.config.chart.stacked&&!h.globals.comboCharts||h.config.chart.stacked&&h.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null==(a=this.w.config.series[t])?void 0:a.type)||"column"===(null==(l=this.w.config.series[t])?void 0:l.type));if(void 0!==(null==(o=s[e])?void 0:o[0]))i=(r=u&&e>0?this.lineCtx.prevSeriesY[e-1][0]:this.lineCtx.zeroY)-s[e][0]/this.lineCtx.yRatio[n]+2*(this.lineCtx.isReversed?s[e][0]/this.lineCtx.yRatio[n]:0);else if(u&&e>0&&void 0===s[e][0])for(let t=e-1;t>=0;t--)if(null!==s[t][0]&&void 0!==s[t][0]){i=r=this.lineCtx.prevSeriesY[t][0];break}return{prevY:i,lineYPosition:r}}}function P(e){let t=(2654435769^e)>>>0;return t=Math.imul(t^t>>>16,73244475),t=Math.imul(t^t>>>16,73244475),((t^t>>>16)>>>0)/4294967296}const A=e=>{const t=function(e){const t=[];let s=e[0],i=e[1],r=t[0]=k(s,i),n=1;for(let a=e.length-1;n<a;n++)s=i,i=e[n+1],t[n]=.5*(r+(r=k(s,i)));return t[n]=r,t}(e),s=e.length-1,i=[];let r,n,a,l;for(let i=0;i<s;i++)a=k(e[i],e[i+1]),Math.abs(a)<1e-6?t[i]=t[i+1]=0:(r=t[i]/a,n=t[i+1]/a,l=r*r+n*n,l>9&&(l=3*a/Math.sqrt(l),t[i]=l*r,t[i+1]=l*n));for(let r=0;r<=s;r++)l=(e[Math.min(s,r+1)][0]-e[Math.max(0,r-1)][0])/(6*(1+t[r]*t[r])),i.push([l||0,t[r]*l||0]);return i},w={points(e){const t=A(e),s=e[1],i=e[0],r=[],n=t[1],a=t[0];r.push(i,[i[0]+a[0],i[1]+a[1],s[0]-n[0],s[1]-n[1],s[0],s[1]]);for(let s=2,i=t.length;s<i;s++){const i=e[s],n=t[s];r.push([i[0]-n[0],i[1]-n[1],i[0],i[1]])}return r},slice(e,t,s){const i=e.slice(t,s);if(t){if(s-t>1&&i[1].length<6){const e=i[0].length;i[1]=[2*i[0][e-2]-i[0][e-4],2*i[0][e-1]-i[0][e-3]].concat(i[1])}i[0]=i[0].slice(-2)}return i}};function k(e,t){return(t[1]-e[1])/(t[0]-e[0])}const Y=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;function F(e,t){const{ax:s,bx:i,ay:r,by:n}=t,a=[],l=/([MmLlHhVvCcSsQqTtAaZz])([^MmLlHhVvCcSsQqTtAaZz]*)/g;let o;for(;null!==(o=l.exec(e));){const e=o[1].toUpperCase(),t=(o[2].match(Y)||[]).map(parseFloat);if("Z"===e){a.push("z");continue}if("H"===e){for(const e of t)a.push(`H ${s*e+i}`);continue}if("V"===e){for(const e of t)a.push(`V ${r*e+n}`);continue}if("A"===e){for(let e=0;e+6<t.length;e+=7)a.push(`A ${t[e]} ${t[e+1]} ${t[e+2]} ${t[e+3]} ${t[e+4]} ${s*t[e+5]+i} ${r*t[e+6]+n}`);continue}const l=[];for(let e=0;e+1<t.length;e+=2)l.push(`${s*t[e]+i} ${r*t[e+1]+n}`);l.length&&a.push(`${e} ${l.join(" ")}`)}return a.join(" ")}const M=c.__apex_BrowserAPIs_BrowserAPIs,S=c.__apex_Environment_Environment;function I(e){return-Math.cos(e*Math.PI)/2+.5}function C(e,t,s,i){e=Math.min(Math.max(e,0),1),s=Math.min(Math.max(s,0),1);const r=3*e,n=3*(s-e)-r,a=1-r-n,l=3*t,o=3*(i-t)-l,h=1-l-o,u=e=>((a*e+n)*e+r)*e,c=e=>(3*a*e+2*n)*e+r;return e=>e<=0?0:e>=1?1:(e=>((h*e+o)*e+l)*e)((e=>{let t=e;for(let s=0;s<5;s++){const s=c(t);if(0===s)break;t-=(u(t)-e)/s}let s=0,i=1;if(t=e,t<s)return s;if(t>i)return i;for(;s<i;){const r=u(t);if(Math.abs(r-e)<1e-4)return t;e>r?s=t:i=t,t=(s+i)/2}return t})(e))}const _=new Map;function j(e){return"function"==typeof e?e:(t=e,Array.isArray(t)&&4===t.length&&t.every(e=>"number"==typeof e)?C(e[0],e[1],e[2],e[3]):"string"==typeof e&&_.has(e)?_.get(e):I);var t}_.set("linear",e=>e),_.set("easeInOutSine",I),_.set("easeInSine",e=>1-Math.cos(e*Math.PI/2)),_.set("easeOutSine",e=>Math.sin(e*Math.PI/2)),_.set("easeInQuad",e=>e*e),_.set("easeOutQuad",e=>1-(1-e)*(1-e)),_.set("easeInOutQuad",e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2),_.set("easeInCubic",e=>e*e*e),_.set("easeOutCubic",e=>1-Math.pow(1-e,3)),_.set("easeInOutCubic",e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2),_.set("easeOutBack",e=>{const t=1.70158;return 1+2.70158*Math.pow(e-1,3)+t*Math.pow(e-1,2)}),_.set("easeInOutBack",e=>{const t=2.5949095;return e<.5?Math.pow(2*e,2)*(7.189819*e-t)/2:(Math.pow(2*e-2,2)*((t+1)*(2*e-2)+t)+2)/2});const L=c.__apex_PathMorphing_parsePath,R=c.__apex_PathMorphing_arrayToPath;function X(e,t,s){if(!e||"string"!=typeof e)return null;const i=L(e);if(!i.length||"M"!==i[0][0])return null;for(let e=1;e<i.length;e++)if("M"===i[e][0])return null;let r=i,n=null;if(s){if(i.length<5)return null;if(n=i.slice(-3),r=i.slice(0,-3),"Z"!==n[2][0])return null;if("L"!==n[1][0])return null;if("L"!==n[0][0]&&"C"!==n[0][0])return null}else if("Z"===i[i.length-1][0])return null;if(r.length!==t||r.length<2)return null;const a=r[1][0];if("L"!==a&&"C"!==a)return null;for(let e=2;e<r.length;e++)if(r[e][0]!==a)return null;const l=r.map(e=>"C"===e[0]?[Number(e[5]),Number(e[6])]:[Number(e[1]),Number(e[2])]);for(const e of l)if(!isFinite(e[0])||!isFinite(e[1]))return null;return{body:r,closing:n,segType:a,anchors:l}}function D(e,t,s){return[e[0]+(t[0]-e[0])*s,e[1]+(t[1]-e[1])*s]}function z(e,t,s){const i=e,r=[t[1],t[2]],n=[t[3],t[4]],a=[t[5],t[6]],l=D(i,r,s),o=D(r,n,s),h=D(n,a,s),u=D(l,o,s),c=D(o,h,s),p=D(u,c,s);return{first:["C",l[0],l[1],u[0],u[1],p[0],p[1]],second:["C",c[0],c[1],h[0],h[1],a[0],a[1]],mid:p}}function N(e,t,s){const i=[t[1],t[2]],r=D(e,i,s);return{first:["L",r[0],r[1]],second:["L",i[0],i[1]],mid:r}}function O(e,t){const{body:s,closing:i,segType:r,anchors:n}=e,a=n.length,l=t.length,o=e=>"C"===r?["C",e[0],e[1],e[0],e[1],e[0],e[1]]:["L",e[0],e[1]],h=[["M",n[0][0],n[0][1]]];let u=0;for(;u<l&&0!==t[u];)u++;for(let e=1;e<=u;e++)h.push(o(n[0]));let c=u+1;for(let e=0;e<a-1;e++){let i=0;for(;c+i<l&&-1===t[c+i];)i++;const a=s[e+1];if(i){const t=i+1;let s=n[e],l=a;for(let e=0;e<i;e++){const i=1/(t-e),n="C"===r?z(s,l,i):N(s,l,i);h.push(n.first),s=n.mid,l=n.second}h.push(l)}else h.push(a.slice());c+=i+1}for(;c<l;)h.push(o(n[a-1])),c++;return i&&i.forEach(e=>h.push(e.slice())),h}function $(e,t,s,i,r,n){const a=X(e,i,n);if(!a)return null;const l=X(t,r,n);if(!l)return null;if(a.segType!==l.segType)return null;if((a.closing||l.closing)&&(!a.closing||!l.closing||a.closing[0][0]!==l.closing[0][0]))return null;const o=s.map(e=>e.oldJ),h=s.map(e=>e.newJ);return{from:R(O(a,o)),toInterp:R(O(l,h))}}function W(e){const t=new Map;return e.map(e=>{const s=t.get(e)||0;return t.set(e,s+1),0===s?e:`${e}#${s}`})}function H(e,t,s=!1){var i,r;if(!function(e){var t;const s=e.config.chart.animations;if(!s||!1===s.enabled)return!1;if(!s.dynamicAnimation||!1===s.dynamicAnimation.enabled)return!1;const i=null!=(t=s.largeDatasetThreshold)?t:0;return!(i>0&&e.globals.dataPoints>i||!(S.isBrowser()&&e.globals.dataChanged&&e.globals.shouldAnimate))}(e))return null;const n=e.globals.prevStreamFrame;if(!n)return null;const a=null==(i=n.seriesY)?void 0:i[t],l=null==(r=e.seriesData.series)?void 0:r[t];if(!Array.isArray(a)||!Array.isArray(l))return null;if(!a.length||!l.length)return null;const o=W(a.map((e,s)=>function(e,t,s){var i,r;if(e.isXNumeric){const r=null==(i=e.seriesX)?void 0:i[t];if(r&&r.length&&null!=r[s])return"x:"+r[s]}const n=null==(r=e.labels)?void 0:r[s];return null!=n&&""!==String(n)?"c:"+(Array.isArray(n)?n.join(" "):String(n)):"j:"+s}(n,t,s))),h=W(l.map((s,i)=>function(e,t,s){var i,r,n,a;if(null==(i=e.axisFlags)?void 0:i.isXNumeric){const i=null==(n=null==(r=e.seriesData)?void 0:r.seriesX)?void 0:n[t];if(i&&i.length&&null!=i[s])return"x:"+i[s]}const l=null==(a=e.globals.labels)?void 0:a[s];return null!=l&&""!==String(l)?"c:"+(Array.isArray(l)?l.join(" "):String(l)):"j:"+s}(e,t,i))),u=function(e,t){const s=new Map;e.forEach((e,t)=>{s.has(e)||s.set(e,t)});const i=new Array(t.length),r=new Set;let n=-1,a=!0,l=e.length===t.length;t.forEach((e,t)=>{const o=s.has(e)&&!r.has(s.get(e))?s.get(e):-1;i[t]=o,-1!==o&&(r.add(o),o<n&&(a=!1),n=o),o!==t&&(l=!1)});const o=[];for(let t=0;t<e.length;t++)r.has(t)||o.push(t);return{toOld:i,exits:o,ordered:a,changed:!l}}(o,h);return u.ordered&&(u.changed||s)?{join:u,oldKeys:o,newKeys:h}:null}function B(e,t,s,i,r){const n=performance.now(),a=l=>{if(e.globals.isDestroyed)return;const o=Math.max(0,Math.min(1,(l-n)/t));i(s(o),o),o<1?M.requestAnimationFrame(a):r&&r()};M.requestAnimationFrame(a)}function T(e,{elPointsMain:t,realIndex:s,speed:i}){var r,n,a,l;if(!(null==t?void 0:t.node))return!1;const o=H(e,s,!0);if(!o)return!1;const h=e.globals.prevStreamFrame;if(!h)return!1;const u=null==(r=h.xPixels)?void 0:r[s],c=null==(n=h.yPixels)?void 0:n[s];if(!u||!c)return!1;const p=t.node.querySelectorAll(".apexcharts-marker");if(!p.length)return!1;const d=(null==(a=e.globals.seriesXvalues)?void 0:a[s])||[],g=(null==(l=e.globals.seriesYvalues)?void 0:l[s])||[],f=function(e){var t,s;const i=e.config.chart.animations;return j(null!=(s=null==(t=i.dynamicAnimation)?void 0:t.easing)?s:i.easing)}(e),m=Math.max(1,i||1);return t.node.classList.remove("apexcharts-element-hidden"),p.forEach(t=>{var i,r,n,a,l,p,x,y,b;const v=parseInt(null!=(r=null!=(i=t.getAttribute("j"))?i:t.getAttribute("rel"))?r:"",10);if(!isFinite(v)||v<0||v>=o.join.toOld.length)return;const P=o.join.toOld[v],A=null!=d[v]&&null!=g[v]?[d[v],g[v]]:null;if(-1===P||!A){const s=t.style;return s.opacity="0",void B(e,m,f,e=>{s.opacity=String(e)},()=>{s.opacity=""})}const w=(null!=(n=u[P])?n:NaN)-A[0],k=(null!=(a=c[P])?a:NaN)-A[1];if(!isFinite(w)||!isFinite(k))return;const Y=null!=(x=null==(p=null==(l=h.rPixels)?void 0:l[s])?void 0:p[P])?x:NaN,F=parseFloat(null!=(b=null!=(y=t.getAttribute("r"))?y:t.getAttribute("default-marker-size"))?b:""),M=isFinite(Y)&&isFinite(F)&&F>0&&Math.abs(Y-F)>.25;if(!(Math.abs(w)>=.5||Math.abs(k)>=.5)&&!M)return;const S=e=>{const s=w*(1-e),i=k*(1-e);if(M){const r=(Y+(F-Y)*e)/F;t.setAttribute("transform",`translate(${s+A[0]*(1-r)}, ${i+A[1]*(1-r)}) scale(${r})`)}else t.setAttribute("transform",`translate(${s}, ${i})`)};S(0),B(e,m,f,S,()=>{t.removeAttribute("transform")})}),!0}function V(e,{type:t,realIndex:s,pathFromLine:i,pathFromArea:r,linePaths:n,areaPaths:a}){var l,o;const h=H(e,s);if(!h)return null;const{join:u,oldKeys:c,newKeys:p}=h,d=e.globals.prevStreamFrame;if(!d)return null;const g=null==(l=d.seriesY)?void 0:l[s],f=null==(o=e.seriesData.series)?void 0:o[s];if(g.length<2||f.length<2)return null;if(g.some(e=>null===e)||f.some(e=>null===e))return null;const m=function(e,t){const s=new Set(e.exits),i=[];let r=0;for(let t=0;t<e.toOld.length;t++){const n=e.toOld[t];if(-1!==n){for(;r<n;)s.has(r)&&i.push({oldJ:r,newJ:-1}),r++;i.push({oldJ:n,newJ:t}),r=n+1}else i.push({oldJ:-1,newJ:t})}for(;r<t;)s.has(r)&&i.push({oldJ:r,newJ:-1}),r++;return i}(u,c.length),x={};return Array.isArray(n)&&1===n.length&&i&&(x.line=$(i,n[0],m,c.length,p.length,!1)),"area"===t&&Array.isArray(a)&&1===a.length&&r&&(x.area=$(r,a[0],m,c.length,p.length,!0)),x.line||x.area?x:null}class E{constructor(e,t,s,i){this.ctx=t,this.w=e,this.xyRatios=s,this.xRatio=0,this.yRatio=[],this.zRatio=0,this.baseLineY=[],this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||i,this.scatter=new x(this.w,this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new v(this),this.markers=new m(this.w,this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0,this.xDivision=0,this.zeroY=0,this.areaBottomY=0,this.strokeWidth=0,this.isReversed=!1,this.appendPathFrom=!1,this.elSeries=null,this.elPointsMain=null,this.elDataLabelsWrap=null,this._elLastPointsWrap=null}draw(e,t,s,i){var r;const n=this.w,a=new d(this.w),h=n.globals.comboCharts?t:n.config.chart.type,u=a.group({class:`apexcharts-${h}-series apexcharts-plot-series`}),c=new p(this.w);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=c.getLogSeries(e),this.yRatio=c.getLogYRatios(this.yRatio),this.prevSeriesY=[];const g=[];for(let t=0;t<e.length;t++){e=this.lineHelpers.sameValueSeriesFix(t,e);const r=n.globals.comboCharts?s[t]:t,a=this.yRatio.length>1?r:0;this._initSerieVariables(e,t,r);const u=[],c=[],p=[];let d=n.globals.padHorizontal+this.categoryAxisCorrection;const f=1,m=[],x=[];y.addCollapsedClassToSeries(this.w,this.elSeries,r),n.axisFlags.isXNumeric&&n.seriesData.seriesX.length>0&&(d=(n.seriesData.seriesX[r][0]-n.globals.minX)/this.xRatio),p.push(d);const b=d;let v;const P=b;let A=this.zeroY,w=this.zeroY;const k=0;A=this.lineHelpers.determineFirstPrevY({i:t,realIndex:r,series:e,prevY:A,lineYPosition:k,translationsIndex:a}).prevY,"monotoneCubic"===n.config.stroke.curve&&null===e[t][0]?u.push(null):u.push(A);const Y=A;let F;"rangeArea"===h&&(F=this.lineHelpers.determineFirstPrevY({i:t,realIndex:r,series:i,prevY:w,lineYPosition:k,translationsIndex:a}),w=F.prevY,v=w,c.push(null!==u[0]?w:null));const M=this._calculatePathsFrom({type:h,series:e,i:t,realIndex:r,translationsIndex:a,prevX:P,prevY:A,prevY2:w}),S=[u[0]],I=[c[0]],C={type:h,series:e,realIndex:r,translationsIndex:a,i:t,x:d,y:f,pX:b,pY:Y,pathsFrom:M,linePaths:m,areaPaths:x,seriesIndex:s,lineYPosition:k,xArrj:p,yArrj:u,y2Arrj:c,seriesRangeEnd:i},_=this._iterateOverDataPoints(o(l({},C),{iterations:"rangeArea"===h?e[t].length-1:void 0,isRangeStart:!0}));if("rangeArea"===h){const e=this._calculatePathsFrom({series:i,i:t,realIndex:r,prevX:P,prevY:w}),s=this._iterateOverDataPoints(o(l({},C),{series:i,xArrj:[d],yArrj:S,y2Arrj:I,pY:v,areaPaths:_.areaPaths,pathsFrom:e,iterations:i[t].length-1,isRangeStart:!1})),n=_.linePaths.length/2;for(let e=0;e<n;e++)_.linePaths[e]=s.linePaths[e+n]+_.linePaths[e];_.linePaths.splice(n),_.pathFromLine=s.pathFromLine+_.pathFromLine}else/z\s*$/i.test(_.pathFromArea)||(_.pathFromArea+="z");this._handlePaths({type:h,realIndex:r,i:t,paths:_}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),g.push(this.elSeries)}if(void 0!==(null==(r=n.config.series[0])?void 0:r.zIndex)&&g.sort((e,t)=>Number(e.node.getAttribute("zIndex"))-Number(t.node.getAttribute("zIndex"))),n.config.chart.stacked)for(let e=g.length-1;e>=0;e--)u.add(g[e]);else for(let e=0;e<g.length;e++)u.add(g[e]);return u}_initSerieVariables(e,t,s){const i=this.w,r=new d(this.w);this.xDivision=i.layout.gridWidth/(i.globals.dataPoints-("on"===i.config.xaxis.tickPlacement?1:0)),this.strokeWidth=Array.isArray(i.config.stroke.width)?i.config.stroke.width[s]:i.config.stroke.width;let n=0;this.yRatio.length>1&&(this.yaxisIndex=i.globals.seriesYAxisReverseMap[s],n=s),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed,this.zeroY=i.layout.gridHeight-this.baseLineY[n]-(this.isReversed?i.layout.gridHeight:0)+(this.isReversed?2*this.baseLineY[n]:0),this.areaBottomY=this.zeroY,(this.zeroY>i.layout.gridHeight||"end"===i.config.plotOptions.area.fillTo)&&(this.areaBottomY=i.layout.gridHeight),this.categoryAxisCorrection=this.xDivision/2;const a=i.config.series[s];if(this.elSeries=r.group({class:"apexcharts-series",zIndex:void 0!==a.zIndex?a.zIndex:s,seriesName:b.escapeString(i.seriesData.seriesNames[s])}),this.elPointsMain=r.group({class:"apexcharts-series-markers-wrap","data:realIndex":s}),this.markers.resetSeriesWrapCache(),this._elLastPointsWrap=null,i.globals.hasNullValues){const e=this.markers.plotChartMarkers({pointsPos:{x:[0],y:[i.layout.gridHeight+i.globals.markers.largestSize]},seriesIndex:t,j:0,pSize:.1,alwaysDrawMarker:!0,isVirtualPoint:!0});null!==e&&this.elPointsMain.add(e)}this.elDataLabelsWrap=r.group({class:"apexcharts-datalabels","data:realIndex":s});const l=e[t].length===i.globals.dataPoints;this.elSeries.attr({"data:longestSeries":l,rel:t+1,"data:realIndex":s}),this.appendPathFrom=!0}_calculatePathsFrom({type:e,series:t,i:s,realIndex:i,translationsIndex:r,prevX:n,prevY:a,prevY2:l}){const o=this.w,h=new d(this.w);let u,c,p,g;if(null===t[s][0]){for(let e=0;e<t[s].length;e++)if(null!==t[s][e]){n=this.xDivision*e,a=this.zeroY-t[s][e]/this.yRatio[r],u=h.move(n,a),c=h.move(n,this.areaBottomY);break}}else u=h.move(n,a),"rangeArea"===e&&(u=h.move(n,l)+h.line(n,a)),c=h.move(n,this.areaBottomY)+h.line(n,a);if(p=h.move(0,this.areaBottomY)+h.line(0,this.areaBottomY),g=h.move(0,this.areaBottomY)+h.line(0,this.areaBottomY),o.globals.previousPaths.length>0){const e=this.lineHelpers.checkPreviousPaths({pathFromLine:p,pathFromArea:g,realIndex:i});p=e.pathFromLine,g=e.pathFromArea}return{prevX:n,prevY:a,linePath:u,areaPath:c,pathFromLine:p,pathFromArea:g}}_handlePaths({type:e,realIndex:t,i:s,paths:i}){var r,n,a,h,u,c,p;const f=this.w,m=new d(this.w),x=function(e,t){const s=e&&e.renderer;return s&&s.kind&&"svg"!==s.kind?s:t}(this.ctx,m),y=new g(this.w);this.prevSeriesY.push(i.yArrj);let b=null;"line"!==e&&"area"!==e||!f.globals.dataChanged||(b=function(e,t,s,i){var r;const n=e.globals,a=n.prevStreamFrame;if(!a||!n.dataChanged||!(null==(r=e.axisFlags)?void 0:r.isXNumeric))return null;const l=a.seriesX[t],o=a.seriesY[t],h=e.seriesData.seriesX[t],u=e.seriesData.series[t];if(!(l&&o&&h&&u))return null;if(l.length<3||h.length<3)return null;let c=-1;for(let e=0;e<l.length;e++)if(l[e]===h[0]){c=e;break}if(-1===c)return null;const p=Math.min(l.length-c,h.length);if(p<2)return null;const d=h.length-p;if(0===c&&0===d)return null;for(let e=0;e<p;e++){if(l[c+e]!==h[e])return null;const t=o[c+e],s=u[e];if(t!==s&&(null!=t||null!=s))return null}const g=a.xPixels[t],f=a.yPixels[t];if(!g||!f)return null;let m=-1,x=-1;for(let e=0;e<p;e++)null!=g[c+e]&&null!=f[c+e]&&null!=s[e]&&null!=i[e]&&(-1===m&&(m=e),x=e);if(-1===m||x<=m)return null;const y=s[m],b=s[x],v=g[c+m],P=g[c+x];if(Math.abs(b-y)<1e-6)return null;const A=(P-v)/(b-y),w=v-A*y;if(!isFinite(A)||!isFinite(w))return null;if(Math.abs(A-1)>.02)return null;if(Math.abs(w)<.5)return null;let k=m,Y=m;for(let e=m;e<=x;e++){const t=i[e];null!=t&&null!=f[c+e]&&(t<i[k]&&(k=e),t>i[Y]&&(Y=e))}let F=1,M=0;const S=i[k],I=i[Y];if(Math.abs(I-S)>1e-6?(F=(f[c+Y]-f[c+k])/(I-S),M=f[c+k]-F*S):M=f[c+k]-S,!isFinite(F)||!isFinite(M)||F<.2||F>5)return null;const C=Math.floor((m+x)/2);if(C!==m&&C!==x&&null!=s[C]&&null!=g[c+C]){const e=A*s[C]+w;if(Math.abs(e-g[c+C])>1.5)return null;if(null!=i[C]&&null!=f[c+C]){const e=F*i[C]+M;if(Math.abs(e-f[c+C])>1.5)return null}}return{ax:A,bx:w,ay:F,by:M}}(f,t,i.xArrj,i.yArrj));let v=null;b||"line"!==e&&"area"!==e||(v=V(f,{type:e,realIndex:t,pathFromLine:i.pathFromLine,pathFromArea:i.pathFromArea,linePaths:i.linePaths,areaPaths:i.areaPaths})),f.globals.seriesXvalues[t]=i.xArrj,f.globals.seriesYvalues[t]=i.yArrj;const P=f.config.forecastDataPoints;if(P.count>0&&"rangeArea"!==e){const e=f.globals.seriesXvalues[t][f.globals.seriesXvalues[t].length-P.count-1],s=m.drawRect(e,0,f.layout.gridWidth,f.layout.gridHeight,0);f.dom.elForecastMask.appendChild(s.node);const i=m.drawRect(0,0,e,f.layout.gridHeight,0);f.dom.elNonForecastMask.appendChild(i.node)}this.pointsChart?T(f,{elPointsMain:this.elPointsMain,realIndex:t,speed:f.config.chart.animations.dynamicAnimation.speed}):(f.globals.delayedElements.push({el:this.elPointsMain.node,index:t}),T(f,{elPointsMain:this.elPointsMain,realIndex:t,speed:f.config.chart.animations.dynamicAnimation.speed}),H(f,t)&&(null==(r=this.elDataLabelsWrap)?void 0:r.node)&&(this.elDataLabelsWrap.node.classList.add("apexcharts-element-hidden"),f.globals.delayedElements.push({el:this.elDataLabelsWrap.node,holdUntilComplete:!0})));const A={i:s,realIndex:t,animationDelay:s,initialSpeed:f.config.chart.animations.speed,dataChangeSpeed:f.config.chart.animations.dynamicAnimation.speed,className:`apexcharts-${e}`},w=i.numericXY;if("area"===e){const e=y.fillPath({seriesNumber:t});for(let t=0;t<i.areaPaths.length;t++){const s=x.renderPaths(o(l({},A),{pathFrom:b?F(i.areaPaths[t],b):null!=(a=null==(n=null==v?void 0:v.area)?void 0:n.from)?a:i.pathFromArea,pathTo:i.areaPaths[t],pathToNumeric:w?{xs:w.xs,ys:w.ys,closeY:w.areaCloseY}:void 0,pathToInterp:null==(h=null==v?void 0:v.area)?void 0:h.toInterp,scrollMorph:!!b,stroke:"none",strokeWidth:0,strokeLineCap:null,fill:e}));this.elSeries.add(s)}}if(f.config.stroke.show&&!this.pointsChart){let r=null;if("line"===e)r=y.fillPath({seriesNumber:t,i:s});else if("solid"===f.config.stroke.fill.type)r=f.globals.stroke.colors[t];else{const e=f.config.fill;f.config.fill=f.config.stroke.fill,r=y.fillPath({seriesNumber:t,i:s}),f.config.fill=e}for(let s=0;s<i.linePaths.length;s++){let n=r;"rangeArea"===e&&(n=y.fillPath({seriesNumber:t}));const a=o(l({},A),{pathFrom:b?F(i.linePaths[s],b):null!=(c=null==(u=null==v?void 0:v.line)?void 0:u.from)?c:i.pathFromLine,pathTo:i.linePaths[s],pathToNumeric:w?{xs:w.xs,ys:w.ys}:void 0,pathToInterp:null==(p=null==v?void 0:v.line)?void 0:p.toInterp,scrollMorph:!!b,stroke:r,strokeWidth:this.strokeWidth,strokeLineCap:f.config.stroke.lineCap,fill:"rangeArea"===e?n:"none"}),h=x.renderPaths(a);if(this.elSeries.add(h),h.attr("fill-rule","evenodd"),P.count>0&&"rangeArea"!==e){const e=x.renderPaths(a);e.node.setAttribute("stroke-dasharray",P.dashArray),P.strokeWidth&&e.node.setAttribute("stroke-width",P.strokeWidth),this.elSeries.add(e),e.attr("clip-path",`url(#forecastMask${f.globals.cuid})`),h.attr("clip-path",`url(#nonForecastMask${f.globals.cuid})`)}}}}_iterateOverDataPoints({type:e,series:t,iterations:s,realIndex:i,translationsIndex:r,i:n,x:a,y:l,pX:o,pY:h,pathsFrom:u,linePaths:c,areaPaths:p,seriesIndex:g,lineYPosition:f,xArrj:m,yArrj:x,y2Arrj:y,isRangeStart:v,seriesRangeEnd:A}){var w,k;const Y=this.w,F=new d(this.w),M=this.yRatio;let{prevY:S,linePath:I,areaPath:C,pathFromLine:_,pathFromArea:j}=u;const L=b.isNumber(Y.globals.minYArr[i])?Y.globals.minYArr[i]:Y.globals.minY;s||(s=Y.globals.dataPoints>1?Y.globals.dataPoints-1:Y.globals.dataPoints);const R=(e,t)=>t-e/M[r]+2*(this.isReversed?e/M[r]:0);let X=l;const D=Y.config.chart.stacked&&!Y.globals.comboCharts||Y.config.chart.stacked&&Y.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null==(w=this.w.config.series[i])?void 0:w.type)||"column"===(null==(k=this.w.config.series[i])?void 0:k.type));let z=Y.config.stroke.curve;Array.isArray(z)&&(z=Array.isArray(g)?z[g[n]]:z[n]);let N,O=0;const $=this.pointsChart?this._scatterJitterPx(i):null;if("straight"===z&&!this.pointsChart){const d=this._fastStraightPath({type:e,series:t,i:n,realIndex:i,translationsIndex:r,iterations:s,x:a,y:l,pX:o,pY:h,pathsFrom:u,linePaths:c,areaPaths:p,xArrj:m,yArrj:x,y2Arrj:y,stackSeries:D});if(d)return d}for(let r=0;r<s&&0!==t[n].length;r++){const u=void 0===t[n][r+1]||null===t[n][r+1];if(Y.axisFlags.isXNumeric){let e=Y.seriesData.seriesX[i][r+1];void 0===Y.seriesData.seriesX[i][r+1]&&(e=Y.seriesData.seriesX[i][s-1]),a=(e-Y.globals.minX)/this.xRatio}else a+=this.xDivision;if(D)if(n>0&&Y.globals.collapsedSeries.length<Y.config.series.length-1){const e=e=>{for(let t=e;t>0;t--){if(!(Y.globals.collapsedSeriesIndices.indexOf((null==g?void 0:g[t])||t)>-1))return t;t--}return 0};f=this.prevSeriesY[e(n-1)][r+1]}else f=this.zeroY;else f=this.zeroY;u?l=R(L,f):(l=R(t[n][r+1],f),"rangeArea"===e&&(X=R(A[n][r+1],f)));let d=a,b=l;if($){const e=100003*i+(r+1);$.x&&(d=a+2*(P(7919*e+13)-.5)*$.x),$.y&&(b=l+2*(P(6271*e+97)-.5)*$.y)}m.push(null===t[n][r+1]?null:d),!u||"smooth"!==Y.config.stroke.curve&&"monotoneCubic"!==Y.config.stroke.curve?(x.push(b),y.push(X)):(x.push(null),y.push(null));const w=this.lineHelpers.calculatePoints({series:t,x:d,y:b,realIndex:i,i:n,j:r,prevY:S}),k=this._createPaths({type:e,series:t,i:n,j:r,x:a,y:l,y2:X,xArrj:m,yArrj:x,y2Arrj:y,pX:o,pY:h,pathState:O,segmentStartX:N,linePath:I,areaPath:C,linePaths:c,areaPaths:p,curve:z,isRangeStart:v});p=k.areaPaths,c=k.linePaths,o=k.pX,h=k.pY,O=k.pathState,N=k.segmentStartX,C=k.areaPath,I=k.linePath,!this.appendPathFrom||Y.globals.hasNullValues||"monotoneCubic"===z&&"rangeArea"===e||(_+=F.line(a,this.areaBottomY),j+=F.line(a,this.areaBottomY)),this.handleNullDataPoints(t,w,n,r,i),this._handleMarkersAndLabels({type:e,pointsPos:w,i:n,j:r,realIndex:i,isRangeStart:v})}return{yArrj:x,xArrj:m,pathFromArea:j,areaPaths:p,pathFromLine:_,linePaths:c,linePath:I,areaPath:C}}_handleMarkersAndLabels({type:e,pointsPos:t,isRangeStart:s,i:i,j:r,realIndex:n}){const a=this.w,l=new f(this.w,this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,r,{realIndex:n,pointsPos:t,zRatio:this.zRatio,elParent:this.elPointsMain});else{!(!a.globals.dataChanged&&!a.globals.resized)&&a.seriesData.series[i].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");const e=this.markers.plotChartMarkers({pointsPos:t,seriesIndex:n,j:r+1});null!==e&&e!==this._elLastPointsWrap&&(this.elPointsMain.add(e),this._elLastPointsWrap=e)}const o=l.drawDataLabel({type:e,isRangeStart:s,pos:t,i:n,j:r+1});null!==o&&this.elDataLabelsWrap.add(o)}_scatterJitterPx(e){var t;const s=this.w,i=null==(t=s.config.plotOptions.scatter)?void 0:t.jitter;if(!i||!i.enabled||!i.x&&!i.y)return null;const r=s.axisFlags.isXNumeric&&this.xRatio?1/this.xRatio:this.xDivision,n=this.yRatio.length>1?e:0,a=this.yRatio[n]?1/this.yRatio[n]:0;return{x:(i.x||0)*r,y:(i.y||0)*a}}_fastStraightPath({type:e,series:t,i:s,realIndex:i,translationsIndex:r,iterations:n,x:a,y:l,pX:o,pY:h,pathsFrom:u,linePaths:c,areaPaths:p,xArrj:d,yArrj:g,y2Arrj:f,stackSeries:m}){const x=this.w;if("line"!==e&&"area"!==e)return null;if(x.globals.comboCharts||m)return null;if(x.config.dataLabels.enabled)return null;if(x.config.markers.discrete.length)return null;if(x.globals.markers.size[i]>0)return null;const y=t[s],b=y.length;if(!n||b<2||b-1!==n)return null;for(let e=0;e<=n;e++){const t=y[e];if(null==t)return null}const v=x.axisFlags.isXNumeric,P=v?x.seriesData.seriesX[i]:null;if(v&&(!P||P.length<b))return null;const A=this.yRatio[r],w=this.isReversed,k=this.zeroY,Y=this.areaBottomY,F=this.xRatio,M=x.globals.minX,S=this.xDivision,I=x.config.markers.offsetX,C=x.config.markers.offsetY,_=this.appendPathFrom&&!x.globals.hasNullValues;let{pathFromLine:j,pathFromArea:L}=u;const R=this.ctx&&this.ctx.renderer,X=!(!R||!R.kind||"svg"===R.kind),D=!X||x.globals.dataChanged&&!!x.globals.prevStreamFrame,z=X?new Float64Array(b):null,N=X?new Float64Array(b):null;z&&N&&(z[0]=o,N[0]=h),void 0===x.globals.pointsArray[i]&&(x.globals.pointsArray[i]=[]);const O=x.globals.pointsArray[i],$=P?(P[0]-M)/F+I:this.categoryAxisCorrection+I;O.push([$,u.prevY+C]);const W=D?new Array(n+1):[];D&&(W[0]="M "+o+" "+h);const H=D&&_?new Array(n):null;let B=a,T=o,V=h;for(let e=0;e<n;e++){P?T=(P[e+1]-M)/F:(B+=S,T=B);const t=y[e+1];V=k-t/A+2*(w?t/A:0),d.push(T),g.push(V),f.push(l),O.push([T+I,V+C]),D&&(W[e+1]=" L "+T+" "+V,H&&(H[e]=" L "+T+" "+Y)),z&&N&&(z[e+1]=T,N[e+1]=V)}let E="",J="";if(D&&(E=W.join(""),J=E+" L "+T+" "+Y+" L "+o+" "+Y+"z"),H){const e=H.join("");j+=e,L+=e}else!D&&_&&(j+=" L "+T+" "+Y,L+=" L "+T+" "+Y);return c.push(E),p.push(J),{yArrj:g,xArrj:d,pathFromArea:L,areaPaths:p,pathFromLine:j,linePaths:c,linePath:E,areaPath:J,numericXY:z?{xs:z,ys:N,areaCloseY:Y}:void 0}}_createPaths({type:e,series:t,i:s,j:i,x:r,y:n,xArrj:a,yArrj:l,y2:o,y2Arrj:h,pX:u,pY:c,pathState:p,segmentStartX:g,linePath:f,areaPath:m,linePaths:x,areaPaths:y,curve:b,isRangeStart:v}){const P=new d(this.w),A=this.areaBottomY,k="rangeArea"===e,Y="rangeArea"===e&&v;switch(b){case"monotoneCubic":{const e=v?l:h,r=(e,t)=>e.map((e,s)=>[e,t[s]]).filter(e=>null!==e[1]),n=e=>{const t=[];let s=0;return e.forEach(e=>{null!==e?s++:s>0&&(t.push(s),s=0)}),s>0&&t.push(s),t},o=(e,t)=>{const s=n(e),i=[];for(let e=0,r=0;e<s.length;r+=s[e++])i[e]=w.slice(t,r,r+s[e]);return i};switch(p){case 0:if(null===e[i+1])break;p=1;case 1:if(!(k?a.length===t[s].length:i===t[s].length-2))break;case 2:{const t=v?a:a.slice().reverse(),s=v?e:e.slice().reverse(),i=r(t,s),n=i.length>1?w.points(i):i;let l=[];k&&(Y?y=i:l=y.reverse());let h=0,u=0;if(o(s,n).forEach(e=>{h++;const t=(e=>{let t="";for(let s=0;s<e.length;s++){const i=e[s],r=i.length;r>4?(t+=`C${i[0]}, ${i[1]}`,t+=`, ${i[2]}, ${i[3]}`,t+=`, ${i[4]}, ${i[5]}`):r>2&&(t+=`S${i[0]}, ${i[1]}`,t+=`, ${i[2]}, ${i[3]}`)}return t})(e),s=u;u+=e.length;const r=u-1;Y?f=P.move(i[s][0],i[s][1])+t:k?f=P.move(l[s][0],l[s][1])+P.line(i[s][0],i[s][1])+t+P.line(l[r][0],l[r][1]):(f=P.move(i[s][0],i[s][1])+t,m=f+P.line(i[r][0],A)+P.line(i[s][0],A)+"z",y.push(m)),x.push(f)}),k&&h>1&&!Y){const e=x.slice(h).reverse();x.splice(h),e.forEach(e=>x.push(e))}p=0;break}}break}case"smooth":{const e=.35*(r-u);if(null===t[s][i])p=0;else switch(p){case 0:if(g=u,f=Y?P.move(u,h[i])+P.line(u,c):P.move(u,c),m=P.move(u,c),null===t[s][i+1]||void 0===t[s][i+1]){x.push(f),y.push(m);break}if(p=1,i<t[s].length-2){const t=P.curve(u+e,c,r-e,n,r,n);f+=t,m+=t;break}case 1:if(null===t[s][i+1])f+=Y?P.line(u,o):P.move(u,c),m+=P.line(u,A)+P.line(g,A)+"z",x.push(f),y.push(m),p=-1;else{const a=P.curve(u+e,c,r-e,n,r,n);f+=a,m+=a,i>=t[s].length-2&&(Y&&(f+=P.curve(r,n,r,n,r,o)+P.move(r,o)),m+=P.curve(r,n,r,n,r,A)+P.line(g,A)+"z",x.push(f),y.push(m),p=-1)}}u=r,c=n;break}default:{const e=(e,t,s)=>{let i="";switch(e){case"stepline":i=P.line(t,null,"H")+P.line(null,s,"V");break;case"linestep":i=P.line(null,s,"V")+P.line(t,null,"H");break;case"straight":i=P.line(t,s)}return i};if(null===t[s][i])p=0;else switch(p){case 0:if(g=u,f=Y?P.move(u,h[i])+P.line(u,c):P.move(u,c),m=P.move(u,c),null===t[s][i+1]||void 0===t[s][i+1]){x.push(f),y.push(m);break}if(p=1,i<t[s].length-2){const t=e(b,r,n);f+=t,m+=t;break}case 1:if(null===t[s][i+1])f+=Y?P.line(u,o):P.move(u,c),m+=P.line(u,A)+P.line(g,A)+"z",x.push(f),y.push(m),p=-1;else{const a=e(b,r,n);f+=a,m+=a,i>=t[s].length-2&&(Y&&(f+=P.line(r,o)),m+=P.line(r,A)+P.line(g,A)+"z",x.push(f),y.push(m),p=-1)}}u=r,c=n;break}}return{linePaths:x,areaPaths:y,pX:u,pY:c,pathState:p,segmentStartX:g,linePath:f,areaPath:m}}handleNullDataPoints(e,t,s,i,r){const n=this.w;if(null===e[s][i]&&n.config.markers.showNullDataPoints||1===e[s].length){let e=this.strokeWidth-n.config.markers.strokeWidth/2;e>0||(e=0);const s=this.markers.plotChartMarkers({pointsPos:t,seriesIndex:r,j:i+1,pSize:e,alwaysDrawMarker:!0});null!==s&&this.elPointsMain.add(s)}}}h.use({line:E,area:E,scatter:E,bubble:E,rangeArea:E}),exports.default=h;
|
|
5
|
+
"use strict";var e=Object.defineProperty,t=Object.defineProperties,s=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,a=(t,s,i)=>s in t?e(t,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[s]=i,l=(e,t)=>{for(var s in t||(t={}))r.call(t,s)&&a(e,s,t[s]);if(i)for(var s of i(t))n.call(t,s)&&a(e,s,t[s]);return e},o=(e,i)=>t(e,s(i));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("apexcharts/core");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const s in e)if("default"!==s){const i=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>e[s]})}return t.default=e,Object.freeze(t)}const c=u(h),p=c.__apex_CoreUtils,d=c.__apex_Graphics,g=c.__apex_Fill,f=c.__apex_DataLabels,m=c.__apex_Markers,x=c.__apex_charts_Scatter,y=c.__apex_Series,b=c.__apex_Utils;class v{constructor(e){this.w=e.w,this.lineCtx=e}sameValueSeriesFix(e,t){const s=this.w;if("gradient"===s.config.fill.type||"gradient"===s.config.fill.type[e]){if(new p(this.lineCtx.w).seriesHaveSameValues(e)){const s=t[e].slice();s[s.length-1]=s[s.length-1]+1e-6,t[e]=s}}return t}calculatePoints({series:e,realIndex:t,x:s,y:i,i:r,j:n,prevY:a}){const l=this.w,o=[],h=[];let u=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;return l.axisFlags.isXNumeric&&(u=(l.seriesData.seriesX[t][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),0===n&&(o.push(u),h.push(b.isNumber(e[r][0])?a+l.config.markers.offsetY:null)),o.push(s+l.config.markers.offsetX),h.push(b.isNumber(e[r][n+1])?i+l.config.markers.offsetY:null),{x:o,y:h}}checkPreviousPaths({pathFromLine:e,pathFromArea:t,realIndex:s}){const i=this.w;for(let r=0;r<i.globals.previousPaths.length;r++){const n=i.globals.previousPaths[r];("line"===n.type||"area"===n.type)&&n.paths.length>0&&parseInt(n.realIndex,10)===parseInt(s,10)&&("line"===n.type?(this.lineCtx.appendPathFrom=!1,e=i.globals.previousPaths[r].paths[0].d):"area"===n.type&&(this.lineCtx.appendPathFrom=!1,t=i.globals.previousPaths[r].paths[0].d,i.config.stroke.show&&i.globals.previousPaths[r].paths[1]&&(e=i.globals.previousPaths[r].paths[1].d)))}return{pathFromLine:e,pathFromArea:t}}determineFirstPrevY({i:e,realIndex:t,series:s,prevY:i,lineYPosition:r,translationsIndex:n}){var a,l,o;const h=this.w,u=h.config.chart.stacked&&!h.globals.comboCharts||h.config.chart.stacked&&h.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null==(a=this.w.config.series[t])?void 0:a.type)||"column"===(null==(l=this.w.config.series[t])?void 0:l.type));if(void 0!==(null==(o=s[e])?void 0:o[0]))i=(r=u&&e>0?this.lineCtx.prevSeriesY[e-1][0]:this.lineCtx.zeroY)-s[e][0]/this.lineCtx.yRatio[n]+2*(this.lineCtx.isReversed?s[e][0]/this.lineCtx.yRatio[n]:0);else if(u&&e>0&&void 0===s[e][0])for(let t=e-1;t>=0;t--)if(null!==s[t][0]&&void 0!==s[t][0]){i=r=this.lineCtx.prevSeriesY[t][0];break}return{prevY:i,lineYPosition:r}}}function P(e){let t=(2654435769^e)>>>0;return t=Math.imul(t^t>>>16,73244475),t=Math.imul(t^t>>>16,73244475),((t^t>>>16)>>>0)/4294967296}const A=e=>{const t=function(e){const t=[];let s=e[0],i=e[1],r=t[0]=k(s,i),n=1;for(let a=e.length-1;n<a;n++)s=i,i=e[n+1],t[n]=.5*(r+(r=k(s,i)));return t[n]=r,t}(e),s=e.length-1,i=[];let r,n,a,l;for(let i=0;i<s;i++)a=k(e[i],e[i+1]),Math.abs(a)<1e-6?t[i]=t[i+1]=0:(r=t[i]/a,n=t[i+1]/a,l=r*r+n*n,l>9&&(l=3*a/Math.sqrt(l),t[i]=l*r,t[i+1]=l*n));for(let r=0;r<=s;r++)l=(e[Math.min(s,r+1)][0]-e[Math.max(0,r-1)][0])/(6*(1+t[r]*t[r])),i.push([l||0,t[r]*l||0]);return i},w={points(e){const t=A(e),s=e[1],i=e[0],r=[],n=t[1],a=t[0];r.push(i,[i[0]+a[0],i[1]+a[1],s[0]-n[0],s[1]-n[1],s[0],s[1]]);for(let s=2,i=t.length;s<i;s++){const i=e[s],n=t[s];r.push([i[0]-n[0],i[1]-n[1],i[0],i[1]])}return r},slice(e,t,s){const i=e.slice(t,s);if(t){if(s-t>1&&i[1].length<6){const e=i[0].length;i[1]=[2*i[0][e-2]-i[0][e-4],2*i[0][e-1]-i[0][e-3]].concat(i[1])}i[0]=i[0].slice(-2)}return i}};function k(e,t){return(t[1]-e[1])/(t[0]-e[0])}const Y=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;function F(e,t){const{ax:s,bx:i,ay:r,by:n}=t,a=[],l=/([MmLlHhVvCcSsQqTtAaZz])([^MmLlHhVvCcSsQqTtAaZz]*)/g;let o;for(;null!==(o=l.exec(e));){const e=o[1].toUpperCase(),t=(o[2].match(Y)||[]).map(parseFloat);if("Z"===e){a.push("z");continue}if("H"===e){for(const e of t)a.push(`H ${s*e+i}`);continue}if("V"===e){for(const e of t)a.push(`V ${r*e+n}`);continue}if("A"===e){for(let e=0;e+6<t.length;e+=7)a.push(`A ${t[e]} ${t[e+1]} ${t[e+2]} ${t[e+3]} ${t[e+4]} ${s*t[e+5]+i} ${r*t[e+6]+n}`);continue}const l=[];for(let e=0;e+1<t.length;e+=2)l.push(`${s*t[e]+i} ${r*t[e+1]+n}`);l.length&&a.push(`${e} ${l.join(" ")}`)}return a.join(" ")}const M=c.__apex_BrowserAPIs_BrowserAPIs,S=c.__apex_Environment_Environment;function I(e){return-Math.cos(e*Math.PI)/2+.5}function C(e,t,s,i){e=Math.min(Math.max(e,0),1),s=Math.min(Math.max(s,0),1);const r=3*e,n=3*(s-e)-r,a=1-r-n,l=3*t,o=3*(i-t)-l,h=1-l-o,u=e=>((a*e+n)*e+r)*e,c=e=>(3*a*e+2*n)*e+r;return e=>e<=0?0:e>=1?1:(e=>((h*e+o)*e+l)*e)((e=>{let t=e;for(let s=0;s<5;s++){const s=c(t);if(0===s)break;t-=(u(t)-e)/s}let s=0,i=1;if(t=e,t<s)return s;if(t>i)return i;for(;s<i;){const r=u(t);if(Math.abs(r-e)<1e-4)return t;e>r?s=t:i=t,t=(s+i)/2}return t})(e))}const _=new Map;function j(e){return"function"==typeof e?e:(t=e,Array.isArray(t)&&4===t.length&&t.every(e=>"number"==typeof e)?C(e[0],e[1],e[2],e[3]):"string"==typeof e&&_.has(e)?_.get(e):I);var t}_.set("linear",e=>e),_.set("easeInOutSine",I),_.set("easeInSine",e=>1-Math.cos(e*Math.PI/2)),_.set("easeOutSine",e=>Math.sin(e*Math.PI/2)),_.set("easeInQuad",e=>e*e),_.set("easeOutQuad",e=>1-(1-e)*(1-e)),_.set("easeInOutQuad",e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2),_.set("easeInCubic",e=>e*e*e),_.set("easeOutCubic",e=>1-Math.pow(1-e,3)),_.set("easeInOutCubic",e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2),_.set("easeOutBack",e=>{const t=1.70158;return 1+2.70158*Math.pow(e-1,3)+t*Math.pow(e-1,2)}),_.set("easeInOutBack",e=>{const t=2.5949095;return e<.5?Math.pow(2*e,2)*(7.189819*e-t)/2:(Math.pow(2*e-2,2)*((t+1)*(2*e-2)+t)+2)/2});const L=c.__apex_PathMorphing_parsePath,R=c.__apex_PathMorphing_arrayToPath;function X(e,t,s){if(!e||"string"!=typeof e)return null;const i=L(e);if(!i.length||"M"!==i[0][0])return null;for(let e=1;e<i.length;e++)if("M"===i[e][0])return null;let r=i,n=null;if(s){if(i.length<5)return null;if(n=i.slice(-3),r=i.slice(0,-3),"Z"!==n[2][0])return null;if("L"!==n[1][0])return null;if("L"!==n[0][0]&&"C"!==n[0][0])return null}else if("Z"===i[i.length-1][0])return null;if(r.length!==t||r.length<2)return null;const a=r[1][0];if("L"!==a&&"C"!==a)return null;for(let e=2;e<r.length;e++)if(r[e][0]!==a)return null;const l=r.map(e=>"C"===e[0]?[Number(e[5]),Number(e[6])]:[Number(e[1]),Number(e[2])]);for(const e of l)if(!isFinite(e[0])||!isFinite(e[1]))return null;return{body:r,closing:n,segType:a,anchors:l}}function D(e,t,s){return[e[0]+(t[0]-e[0])*s,e[1]+(t[1]-e[1])*s]}function z(e,t,s){const i=e,r=[t[1],t[2]],n=[t[3],t[4]],a=[t[5],t[6]],l=D(i,r,s),o=D(r,n,s),h=D(n,a,s),u=D(l,o,s),c=D(o,h,s),p=D(u,c,s);return{first:["C",l[0],l[1],u[0],u[1],p[0],p[1]],second:["C",c[0],c[1],h[0],h[1],a[0],a[1]],mid:p}}function N(e,t,s){const i=[t[1],t[2]],r=D(e,i,s);return{first:["L",r[0],r[1]],second:["L",i[0],i[1]],mid:r}}function O(e,t){const{body:s,closing:i,segType:r,anchors:n}=e,a=n.length,l=t.length,o=e=>"C"===r?["C",e[0],e[1],e[0],e[1],e[0],e[1]]:["L",e[0],e[1]],h=[["M",n[0][0],n[0][1]]];let u=0;for(;u<l&&0!==t[u];)u++;for(let e=1;e<=u;e++)h.push(o(n[0]));let c=u+1;for(let e=0;e<a-1;e++){let i=0;for(;c+i<l&&-1===t[c+i];)i++;const a=s[e+1];if(i){const t=i+1;let s=n[e],l=a;for(let e=0;e<i;e++){const i=1/(t-e),n="C"===r?z(s,l,i):N(s,l,i);h.push(n.first),s=n.mid,l=n.second}h.push(l)}else h.push(a.slice());c+=i+1}for(;c<l;)h.push(o(n[a-1])),c++;return i&&i.forEach(e=>h.push(e.slice())),h}function $(e,t,s,i,r,n){const a=X(e,i,n);if(!a)return null;const l=X(t,r,n);if(!l)return null;if(a.segType!==l.segType)return null;if((a.closing||l.closing)&&(!a.closing||!l.closing||a.closing[0][0]!==l.closing[0][0]))return null;const o=s.map(e=>e.oldJ),h=s.map(e=>e.newJ);return{from:R(O(a,o)),toInterp:R(O(l,h))}}function W(e){const t=new Map;return e.map(e=>{const s=t.get(e)||0;return t.set(e,s+1),0===s?e:`${e}#${s}`})}function H(e,t,s=!1,i=!1){var r,n;if(!function(e){var t;const s=e.config.chart.animations;if(!s||!1===s.enabled)return!1;if(!s.dynamicAnimation||!1===s.dynamicAnimation.enabled)return!1;const i=null!=(t=s.largeDatasetThreshold)?t:0;return!(i>0&&e.globals.dataPoints>i||!(S.isBrowser()&&e.globals.dataChanged&&e.globals.shouldAnimate))}(e))return null;const a=e.globals.prevStreamFrame;if(!a)return null;const l=null==(r=a.seriesY)?void 0:r[t],o=null==(n=e.seriesData.series)?void 0:n[t];if(!Array.isArray(l)||!Array.isArray(o))return null;if(!l.length||!o.length)return null;const h=W(l.map((e,s)=>function(e,t,s){var i,r;if(e.isXNumeric){const r=null==(i=e.seriesX)?void 0:i[t];if(r&&r.length&&null!=r[s])return"x:"+r[s]}const n=null==(r=e.labels)?void 0:r[s];return null!=n&&""!==String(n)?"c:"+(Array.isArray(n)?n.join(" "):String(n)):"j:"+s}(a,t,s))),u=W(o.map((s,i)=>function(e,t,s){var i,r,n,a;if(null==(i=e.axisFlags)?void 0:i.isXNumeric){const i=null==(n=null==(r=e.seriesData)?void 0:r.seriesX)?void 0:n[t];if(i&&i.length&&null!=i[s])return"x:"+i[s]}const l=null==(a=e.globals.labels)?void 0:a[s];return null!=l&&""!==String(l)?"c:"+(Array.isArray(l)?l.join(" "):String(l)):"j:"+s}(e,t,i))),c=function(e,t){const s=new Map;e.forEach((e,t)=>{s.has(e)||s.set(e,t)});const i=new Array(t.length),r=new Set;let n=-1,a=!0,l=e.length===t.length;t.forEach((e,t)=>{const o=s.has(e)&&!r.has(s.get(e))?s.get(e):-1;i[t]=o,-1!==o&&(r.add(o),o<n&&(a=!1),n=o),o!==t&&(l=!1)});const o=[];for(let t=0;t<e.length;t++)r.has(t)||o.push(t);return{toOld:i,exits:o,ordered:a,changed:!l}}(h,u);return(c.ordered||i)&&(c.changed||s)?{join:c,oldKeys:h,newKeys:u}:null}function B(e,t,s,i,r){const n=performance.now(),a=l=>{if(e.globals.isDestroyed)return;const o=Math.max(0,Math.min(1,(l-n)/t));i(s(o),o),o<1?M.requestAnimationFrame(a):r&&r()};M.requestAnimationFrame(a)}function T(e,{elPointsMain:t,realIndex:s,speed:i}){var r,n,a,l;if(!(null==t?void 0:t.node))return!1;const o=H(e,s,!0);if(!o)return!1;const h=e.globals.prevStreamFrame;if(!h)return!1;const u=null==(r=h.xPixels)?void 0:r[s],c=null==(n=h.yPixels)?void 0:n[s];if(!u||!c)return!1;const p=t.node.querySelectorAll(".apexcharts-marker");if(!p.length)return!1;const d=(null==(a=e.globals.seriesXvalues)?void 0:a[s])||[],g=(null==(l=e.globals.seriesYvalues)?void 0:l[s])||[],f=function(e){var t,s;const i=e.config.chart.animations;return j(null!=(s=null==(t=i.dynamicAnimation)?void 0:t.easing)?s:i.easing)}(e),m=Math.max(1,i||1);return t.node.classList.remove("apexcharts-element-hidden"),p.forEach(t=>{var i,r,n,a,l,p,x,y,b;const v=parseInt(null!=(r=null!=(i=t.getAttribute("j"))?i:t.getAttribute("rel"))?r:"",10);if(!isFinite(v)||v<0||v>=o.join.toOld.length)return;const P=o.join.toOld[v],A=null!=d[v]&&null!=g[v]?[d[v],g[v]]:null;if(-1===P||!A){const s=t.style;return s.opacity="0",void B(e,m,f,e=>{s.opacity=String(e)},()=>{s.opacity=""})}const w=(null!=(n=u[P])?n:NaN)-A[0],k=(null!=(a=c[P])?a:NaN)-A[1];if(!isFinite(w)||!isFinite(k))return;const Y=null!=(x=null==(p=null==(l=h.rPixels)?void 0:l[s])?void 0:p[P])?x:NaN,F=parseFloat(null!=(b=null!=(y=t.getAttribute("r"))?y:t.getAttribute("default-marker-size"))?b:""),M=isFinite(Y)&&isFinite(F)&&F>0&&Math.abs(Y-F)>.25;if(!(Math.abs(w)>=.5||Math.abs(k)>=.5)&&!M)return;const S=e=>{const s=w*(1-e),i=k*(1-e);if(M){const r=(Y+(F-Y)*e)/F;t.setAttribute("transform",`translate(${s+A[0]*(1-r)}, ${i+A[1]*(1-r)}) scale(${r})`)}else t.setAttribute("transform",`translate(${s}, ${i})`)};S(0),B(e,m,f,S,()=>{t.removeAttribute("transform")})}),!0}function V(e,{type:t,realIndex:s,pathFromLine:i,pathFromArea:r,linePaths:n,areaPaths:a}){var l,o;const h=H(e,s);if(!h)return null;const{join:u,oldKeys:c,newKeys:p}=h,d=e.globals.prevStreamFrame;if(!d)return null;const g=null==(l=d.seriesY)?void 0:l[s],f=null==(o=e.seriesData.series)?void 0:o[s];if(g.length<2||f.length<2)return null;if(g.some(e=>null===e)||f.some(e=>null===e))return null;const m=function(e,t){const s=new Set(e.exits),i=[];let r=0;for(let t=0;t<e.toOld.length;t++){const n=e.toOld[t];if(-1!==n){for(;r<n;)s.has(r)&&i.push({oldJ:r,newJ:-1}),r++;i.push({oldJ:n,newJ:t}),r=n+1}else i.push({oldJ:-1,newJ:t})}for(;r<t;)s.has(r)&&i.push({oldJ:r,newJ:-1}),r++;return i}(u,c.length),x={};return Array.isArray(n)&&1===n.length&&i&&(x.line=$(i,n[0],m,c.length,p.length,!1)),"area"===t&&Array.isArray(a)&&1===a.length&&r&&(x.area=$(r,a[0],m,c.length,p.length,!0)),x.line||x.area?x:null}class E{constructor(e,t,s,i){this.ctx=t,this.w=e,this.xyRatios=s,this.xRatio=0,this.yRatio=[],this.zRatio=0,this.baseLineY=[],this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||i,this.scatter=new x(this.w,this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new v(this),this.markers=new m(this.w,this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0,this.xDivision=0,this.zeroY=0,this.areaBottomY=0,this.strokeWidth=0,this.isReversed=!1,this.appendPathFrom=!1,this.elSeries=null,this.elPointsMain=null,this.elDataLabelsWrap=null,this._elLastPointsWrap=null}draw(e,t,s,i){var r;const n=this.w,a=new d(this.w),h=n.globals.comboCharts?t:n.config.chart.type,u=a.group({class:`apexcharts-${h}-series apexcharts-plot-series`}),c=new p(this.w);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=c.getLogSeries(e),this.yRatio=c.getLogYRatios(this.yRatio),this.prevSeriesY=[];const g=[];for(let t=0;t<e.length;t++){e=this.lineHelpers.sameValueSeriesFix(t,e);const r=n.globals.comboCharts?s[t]:t,a=this.yRatio.length>1?r:0;this._initSerieVariables(e,t,r);const u=[],c=[],p=[];let d=n.globals.padHorizontal+this.categoryAxisCorrection;const f=1,m=[],x=[];y.addCollapsedClassToSeries(this.w,this.elSeries,r),n.axisFlags.isXNumeric&&n.seriesData.seriesX.length>0&&(d=(n.seriesData.seriesX[r][0]-n.globals.minX)/this.xRatio),p.push(d);const b=d;let v;const P=b;let A=this.zeroY,w=this.zeroY;const k=0;A=this.lineHelpers.determineFirstPrevY({i:t,realIndex:r,series:e,prevY:A,lineYPosition:k,translationsIndex:a}).prevY,"monotoneCubic"===n.config.stroke.curve&&null===e[t][0]?u.push(null):u.push(A);const Y=A;let F;"rangeArea"===h&&(F=this.lineHelpers.determineFirstPrevY({i:t,realIndex:r,series:i,prevY:w,lineYPosition:k,translationsIndex:a}),w=F.prevY,v=w,c.push(null!==u[0]?w:null));const M=this._calculatePathsFrom({type:h,series:e,i:t,realIndex:r,translationsIndex:a,prevX:P,prevY:A,prevY2:w}),S=[u[0]],I=[c[0]],C={type:h,series:e,realIndex:r,translationsIndex:a,i:t,x:d,y:f,pX:b,pY:Y,pathsFrom:M,linePaths:m,areaPaths:x,seriesIndex:s,lineYPosition:k,xArrj:p,yArrj:u,y2Arrj:c,seriesRangeEnd:i},_=this._iterateOverDataPoints(o(l({},C),{iterations:"rangeArea"===h?e[t].length-1:void 0,isRangeStart:!0}));if("rangeArea"===h){const e=this._calculatePathsFrom({series:i,i:t,realIndex:r,prevX:P,prevY:w}),s=this._iterateOverDataPoints(o(l({},C),{series:i,xArrj:[d],yArrj:S,y2Arrj:I,pY:v,areaPaths:_.areaPaths,pathsFrom:e,iterations:i[t].length-1,isRangeStart:!1})),n=_.linePaths.length/2;for(let e=0;e<n;e++)_.linePaths[e]=s.linePaths[e+n]+_.linePaths[e];_.linePaths.splice(n),_.pathFromLine=s.pathFromLine+_.pathFromLine}else/z\s*$/i.test(_.pathFromArea)||(_.pathFromArea+="z");this._handlePaths({type:h,realIndex:r,i:t,paths:_}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),g.push(this.elSeries)}if(void 0!==(null==(r=n.config.series[0])?void 0:r.zIndex)&&g.sort((e,t)=>Number(e.node.getAttribute("zIndex"))-Number(t.node.getAttribute("zIndex"))),n.config.chart.stacked)for(let e=g.length-1;e>=0;e--)u.add(g[e]);else for(let e=0;e<g.length;e++)u.add(g[e]);return u}_initSerieVariables(e,t,s){const i=this.w,r=new d(this.w);this.xDivision=i.layout.gridWidth/(i.globals.dataPoints-("on"===i.config.xaxis.tickPlacement?1:0)),this.strokeWidth=Array.isArray(i.config.stroke.width)?i.config.stroke.width[s]:i.config.stroke.width;let n=0;this.yRatio.length>1&&(this.yaxisIndex=i.globals.seriesYAxisReverseMap[s],n=s),this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed,this.zeroY=i.layout.gridHeight-this.baseLineY[n]-(this.isReversed?i.layout.gridHeight:0)+(this.isReversed?2*this.baseLineY[n]:0),this.areaBottomY=this.zeroY,(this.zeroY>i.layout.gridHeight||"end"===i.config.plotOptions.area.fillTo)&&(this.areaBottomY=i.layout.gridHeight),this.categoryAxisCorrection=this.xDivision/2;const a=i.config.series[s];if(this.elSeries=r.group({class:"apexcharts-series",zIndex:void 0!==a.zIndex?a.zIndex:s,seriesName:b.escapeString(i.seriesData.seriesNames[s])}),this.elPointsMain=r.group({class:"apexcharts-series-markers-wrap","data:realIndex":s}),this.markers.resetSeriesWrapCache(),this._elLastPointsWrap=null,i.globals.hasNullValues){const e=this.markers.plotChartMarkers({pointsPos:{x:[0],y:[i.layout.gridHeight+i.globals.markers.largestSize]},seriesIndex:t,j:0,pSize:.1,alwaysDrawMarker:!0,isVirtualPoint:!0});null!==e&&this.elPointsMain.add(e)}this.elDataLabelsWrap=r.group({class:"apexcharts-datalabels","data:realIndex":s});const l=e[t].length===i.globals.dataPoints;this.elSeries.attr({"data:longestSeries":l,rel:t+1,"data:realIndex":s}),this.appendPathFrom=!0}_calculatePathsFrom({type:e,series:t,i:s,realIndex:i,translationsIndex:r,prevX:n,prevY:a,prevY2:l}){const o=this.w,h=new d(this.w);let u,c,p,g;if(null===t[s][0]){for(let e=0;e<t[s].length;e++)if(null!==t[s][e]){n=this.xDivision*e,a=this.zeroY-t[s][e]/this.yRatio[r],u=h.move(n,a),c=h.move(n,this.areaBottomY);break}}else u=h.move(n,a),"rangeArea"===e&&(u=h.move(n,l)+h.line(n,a)),c=h.move(n,this.areaBottomY)+h.line(n,a);if(p=h.move(0,this.areaBottomY)+h.line(0,this.areaBottomY),g=h.move(0,this.areaBottomY)+h.line(0,this.areaBottomY),o.globals.previousPaths.length>0){const e=this.lineHelpers.checkPreviousPaths({pathFromLine:p,pathFromArea:g,realIndex:i});p=e.pathFromLine,g=e.pathFromArea}return{prevX:n,prevY:a,linePath:u,areaPath:c,pathFromLine:p,pathFromArea:g}}_handlePaths({type:e,realIndex:t,i:s,paths:i}){var r,n,a,h,u,c,p;const f=this.w,m=new d(this.w),x=function(e,t){const s=e&&e.renderer;return s&&s.kind&&"svg"!==s.kind?s:t}(this.ctx,m),y=new g(this.w);this.prevSeriesY.push(i.yArrj);let b=null;"line"!==e&&"area"!==e||!f.globals.dataChanged||(b=function(e,t,s,i){var r;const n=e.globals,a=n.prevStreamFrame;if(!a||!n.dataChanged||!(null==(r=e.axisFlags)?void 0:r.isXNumeric))return null;const l=a.seriesX[t],o=a.seriesY[t],h=e.seriesData.seriesX[t],u=e.seriesData.series[t];if(!(l&&o&&h&&u))return null;if(l.length<3||h.length<3)return null;let c=-1;for(let e=0;e<l.length;e++)if(l[e]===h[0]){c=e;break}if(-1===c)return null;const p=Math.min(l.length-c,h.length);if(p<2)return null;const d=h.length-p;if(0===c&&0===d)return null;for(let e=0;e<p;e++){if(l[c+e]!==h[e])return null;const t=o[c+e],s=u[e];if(t!==s&&(null!=t||null!=s))return null}const g=a.xPixels[t],f=a.yPixels[t];if(!g||!f)return null;let m=-1,x=-1;for(let e=0;e<p;e++)null!=g[c+e]&&null!=f[c+e]&&null!=s[e]&&null!=i[e]&&(-1===m&&(m=e),x=e);if(-1===m||x<=m)return null;const y=s[m],b=s[x],v=g[c+m],P=g[c+x];if(Math.abs(b-y)<1e-6)return null;const A=(P-v)/(b-y),w=v-A*y;if(!isFinite(A)||!isFinite(w))return null;if(Math.abs(A-1)>.02)return null;if(Math.abs(w)<.5)return null;let k=m,Y=m;for(let e=m;e<=x;e++){const t=i[e];null!=t&&null!=f[c+e]&&(t<i[k]&&(k=e),t>i[Y]&&(Y=e))}let F=1,M=0;const S=i[k],I=i[Y];if(Math.abs(I-S)>1e-6?(F=(f[c+Y]-f[c+k])/(I-S),M=f[c+k]-F*S):M=f[c+k]-S,!isFinite(F)||!isFinite(M)||F<.2||F>5)return null;const C=Math.floor((m+x)/2);if(C!==m&&C!==x&&null!=s[C]&&null!=g[c+C]){const e=A*s[C]+w;if(Math.abs(e-g[c+C])>1.5)return null;if(null!=i[C]&&null!=f[c+C]){const e=F*i[C]+M;if(Math.abs(e-f[c+C])>1.5)return null}}return{ax:A,bx:w,ay:F,by:M}}(f,t,i.xArrj,i.yArrj));let v=null;b||"line"!==e&&"area"!==e||(v=V(f,{type:e,realIndex:t,pathFromLine:i.pathFromLine,pathFromArea:i.pathFromArea,linePaths:i.linePaths,areaPaths:i.areaPaths})),f.globals.seriesXvalues[t]=i.xArrj,f.globals.seriesYvalues[t]=i.yArrj;const P=f.config.forecastDataPoints;if(P.count>0&&"rangeArea"!==e){const e=f.globals.seriesXvalues[t][f.globals.seriesXvalues[t].length-P.count-1],s=m.drawRect(e,0,f.layout.gridWidth,f.layout.gridHeight,0);f.dom.elForecastMask.appendChild(s.node);const i=m.drawRect(0,0,e,f.layout.gridHeight,0);f.dom.elNonForecastMask.appendChild(i.node)}this.pointsChart?T(f,{elPointsMain:this.elPointsMain,realIndex:t,speed:f.config.chart.animations.dynamicAnimation.speed}):(f.globals.delayedElements.push({el:this.elPointsMain.node,index:t}),T(f,{elPointsMain:this.elPointsMain,realIndex:t,speed:f.config.chart.animations.dynamicAnimation.speed}),H(f,t)&&(null==(r=this.elDataLabelsWrap)?void 0:r.node)&&(this.elDataLabelsWrap.node.classList.add("apexcharts-element-hidden"),f.globals.delayedElements.push({el:this.elDataLabelsWrap.node,holdUntilComplete:!0})));const A={i:s,realIndex:t,animationDelay:s,initialSpeed:f.config.chart.animations.speed,dataChangeSpeed:f.config.chart.animations.dynamicAnimation.speed,className:`apexcharts-${e}`},w=i.numericXY;if("area"===e){const e=y.fillPath({seriesNumber:t});for(let t=0;t<i.areaPaths.length;t++){const s=x.renderPaths(o(l({},A),{pathFrom:b?F(i.areaPaths[t],b):null!=(a=null==(n=null==v?void 0:v.area)?void 0:n.from)?a:i.pathFromArea,pathTo:i.areaPaths[t],pathToNumeric:w?{xs:w.xs,ys:w.ys,closeY:w.areaCloseY}:void 0,pathToInterp:null==(h=null==v?void 0:v.area)?void 0:h.toInterp,scrollMorph:!!b,stroke:"none",strokeWidth:0,strokeLineCap:null,fill:e}));this.elSeries.add(s)}}if(f.config.stroke.show&&!this.pointsChart){let r=null;if("line"===e)r=y.fillPath({seriesNumber:t,i:s});else if("solid"===f.config.stroke.fill.type)r=f.globals.stroke.colors[t];else{const e=f.config.fill;f.config.fill=f.config.stroke.fill,r=y.fillPath({seriesNumber:t,i:s}),f.config.fill=e}for(let s=0;s<i.linePaths.length;s++){let n=r;"rangeArea"===e&&(n=y.fillPath({seriesNumber:t}));const a=o(l({},A),{pathFrom:b?F(i.linePaths[s],b):null!=(c=null==(u=null==v?void 0:v.line)?void 0:u.from)?c:i.pathFromLine,pathTo:i.linePaths[s],pathToNumeric:w?{xs:w.xs,ys:w.ys}:void 0,pathToInterp:null==(p=null==v?void 0:v.line)?void 0:p.toInterp,scrollMorph:!!b,stroke:r,strokeWidth:this.strokeWidth,strokeLineCap:f.config.stroke.lineCap,fill:"rangeArea"===e?n:"none"}),h=x.renderPaths(a);if(this.elSeries.add(h),h.attr("fill-rule","evenodd"),P.count>0&&"rangeArea"!==e){const e=x.renderPaths(a);e.node.setAttribute("stroke-dasharray",P.dashArray),P.strokeWidth&&e.node.setAttribute("stroke-width",P.strokeWidth),this.elSeries.add(e),e.attr("clip-path",`url(#forecastMask${f.globals.cuid})`),h.attr("clip-path",`url(#nonForecastMask${f.globals.cuid})`)}}}}_iterateOverDataPoints({type:e,series:t,iterations:s,realIndex:i,translationsIndex:r,i:n,x:a,y:l,pX:o,pY:h,pathsFrom:u,linePaths:c,areaPaths:p,seriesIndex:g,lineYPosition:f,xArrj:m,yArrj:x,y2Arrj:y,isRangeStart:v,seriesRangeEnd:A}){var w,k;const Y=this.w,F=new d(this.w),M=this.yRatio;let{prevY:S,linePath:I,areaPath:C,pathFromLine:_,pathFromArea:j}=u;const L=b.isNumber(Y.globals.minYArr[i])?Y.globals.minYArr[i]:Y.globals.minY;s||(s=Y.globals.dataPoints>1?Y.globals.dataPoints-1:Y.globals.dataPoints);const R=(e,t)=>t-e/M[r]+2*(this.isReversed?e/M[r]:0);let X=l;const D=Y.config.chart.stacked&&!Y.globals.comboCharts||Y.config.chart.stacked&&Y.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null==(w=this.w.config.series[i])?void 0:w.type)||"column"===(null==(k=this.w.config.series[i])?void 0:k.type));let z=Y.config.stroke.curve;Array.isArray(z)&&(z=Array.isArray(g)?z[g[n]]:z[n]);let N,O=0;const $=this.pointsChart?this._scatterJitterPx(i):null;if("straight"===z&&!this.pointsChart){const d=this._fastStraightPath({type:e,series:t,i:n,realIndex:i,translationsIndex:r,iterations:s,x:a,y:l,pX:o,pY:h,pathsFrom:u,linePaths:c,areaPaths:p,xArrj:m,yArrj:x,y2Arrj:y,stackSeries:D});if(d)return d}for(let r=0;r<s&&0!==t[n].length;r++){const u=void 0===t[n][r+1]||null===t[n][r+1];if(Y.axisFlags.isXNumeric){let e=Y.seriesData.seriesX[i][r+1];void 0===Y.seriesData.seriesX[i][r+1]&&(e=Y.seriesData.seriesX[i][s-1]),a=(e-Y.globals.minX)/this.xRatio}else a+=this.xDivision;if(D)if(n>0&&Y.globals.collapsedSeries.length<Y.config.series.length-1){const e=e=>{for(let t=e;t>0;t--){if(!(Y.globals.collapsedSeriesIndices.indexOf((null==g?void 0:g[t])||t)>-1))return t;t--}return 0};f=this.prevSeriesY[e(n-1)][r+1]}else f=this.zeroY;else f=this.zeroY;u?l=R(L,f):(l=R(t[n][r+1],f),"rangeArea"===e&&(X=R(A[n][r+1],f)));let d=a,b=l;if($){const e=100003*i+(r+1);$.x&&(d=a+2*(P(7919*e+13)-.5)*$.x),$.y&&(b=l+2*(P(6271*e+97)-.5)*$.y)}m.push(null===t[n][r+1]?null:d),!u||"smooth"!==Y.config.stroke.curve&&"monotoneCubic"!==Y.config.stroke.curve?(x.push(b),y.push(X)):(x.push(null),y.push(null));const w=this.lineHelpers.calculatePoints({series:t,x:d,y:b,realIndex:i,i:n,j:r,prevY:S}),k=this._createPaths({type:e,series:t,i:n,j:r,x:a,y:l,y2:X,xArrj:m,yArrj:x,y2Arrj:y,pX:o,pY:h,pathState:O,segmentStartX:N,linePath:I,areaPath:C,linePaths:c,areaPaths:p,curve:z,isRangeStart:v});p=k.areaPaths,c=k.linePaths,o=k.pX,h=k.pY,O=k.pathState,N=k.segmentStartX,C=k.areaPath,I=k.linePath,!this.appendPathFrom||Y.globals.hasNullValues||"monotoneCubic"===z&&"rangeArea"===e||(_+=F.line(a,this.areaBottomY),j+=F.line(a,this.areaBottomY)),this.handleNullDataPoints(t,w,n,r,i),this._handleMarkersAndLabels({type:e,pointsPos:w,i:n,j:r,realIndex:i,isRangeStart:v})}return{yArrj:x,xArrj:m,pathFromArea:j,areaPaths:p,pathFromLine:_,linePaths:c,linePath:I,areaPath:C}}_handleMarkersAndLabels({type:e,pointsPos:t,isRangeStart:s,i:i,j:r,realIndex:n}){const a=this.w,l=new f(this.w,this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,r,{realIndex:n,pointsPos:t,zRatio:this.zRatio,elParent:this.elPointsMain});else{!(!a.globals.dataChanged&&!a.globals.resized)&&a.seriesData.series[i].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");const e=this.markers.plotChartMarkers({pointsPos:t,seriesIndex:n,j:r+1});null!==e&&e!==this._elLastPointsWrap&&(this.elPointsMain.add(e),this._elLastPointsWrap=e)}const o=l.drawDataLabel({type:e,isRangeStart:s,pos:t,i:n,j:r+1});null!==o&&this.elDataLabelsWrap.add(o)}_scatterJitterPx(e){var t;const s=this.w,i=null==(t=s.config.plotOptions.scatter)?void 0:t.jitter;if(!i||!i.enabled||!i.x&&!i.y)return null;const r=s.axisFlags.isXNumeric&&this.xRatio?1/this.xRatio:this.xDivision,n=this.yRatio.length>1?e:0,a=this.yRatio[n]?1/this.yRatio[n]:0;return{x:(i.x||0)*r,y:(i.y||0)*a}}_fastStraightPath({type:e,series:t,i:s,realIndex:i,translationsIndex:r,iterations:n,x:a,y:l,pX:o,pY:h,pathsFrom:u,linePaths:c,areaPaths:p,xArrj:d,yArrj:g,y2Arrj:f,stackSeries:m}){const x=this.w;if("line"!==e&&"area"!==e)return null;if(x.globals.comboCharts||m)return null;if(x.config.dataLabels.enabled)return null;if(x.config.markers.discrete.length)return null;if(x.globals.markers.size[i]>0)return null;const y=t[s],b=y.length;if(!n||b<2||b-1!==n)return null;for(let e=0;e<=n;e++){const t=y[e];if(null==t)return null}const v=x.axisFlags.isXNumeric,P=v?x.seriesData.seriesX[i]:null;if(v&&(!P||P.length<b))return null;const A=this.yRatio[r],w=this.isReversed,k=this.zeroY,Y=this.areaBottomY,F=this.xRatio,M=x.globals.minX,S=this.xDivision,I=x.config.markers.offsetX,C=x.config.markers.offsetY,_=this.appendPathFrom&&!x.globals.hasNullValues;let{pathFromLine:j,pathFromArea:L}=u;const R=this.ctx&&this.ctx.renderer,X=!(!R||!R.kind||"svg"===R.kind),D=!X||x.globals.dataChanged&&!!x.globals.prevStreamFrame,z=X?new Float64Array(b):null,N=X?new Float64Array(b):null;z&&N&&(z[0]=o,N[0]=h),void 0===x.globals.pointsArray[i]&&(x.globals.pointsArray[i]=[]);const O=x.globals.pointsArray[i],$=P?(P[0]-M)/F+I:this.categoryAxisCorrection+I;O.push([$,u.prevY+C]);const W=D?new Array(n+1):[];D&&(W[0]="M "+o+" "+h);const H=D&&_?new Array(n):null;let B=a,T=o,V=h;for(let e=0;e<n;e++){P?T=(P[e+1]-M)/F:(B+=S,T=B);const t=y[e+1];V=k-t/A+2*(w?t/A:0),d.push(T),g.push(V),f.push(l),O.push([T+I,V+C]),D&&(W[e+1]=" L "+T+" "+V,H&&(H[e]=" L "+T+" "+Y)),z&&N&&(z[e+1]=T,N[e+1]=V)}let E="",J="";if(D&&(E=W.join(""),J=E+" L "+T+" "+Y+" L "+o+" "+Y+"z"),H){const e=H.join("");j+=e,L+=e}else!D&&_&&(j+=" L "+T+" "+Y,L+=" L "+T+" "+Y);return c.push(E),p.push(J),{yArrj:g,xArrj:d,pathFromArea:L,areaPaths:p,pathFromLine:j,linePaths:c,linePath:E,areaPath:J,numericXY:z?{xs:z,ys:N,areaCloseY:Y}:void 0}}_createPaths({type:e,series:t,i:s,j:i,x:r,y:n,xArrj:a,yArrj:l,y2:o,y2Arrj:h,pX:u,pY:c,pathState:p,segmentStartX:g,linePath:f,areaPath:m,linePaths:x,areaPaths:y,curve:b,isRangeStart:v}){const P=new d(this.w),A=this.areaBottomY,k="rangeArea"===e,Y="rangeArea"===e&&v;switch(b){case"monotoneCubic":{const e=v?l:h,r=(e,t)=>e.map((e,s)=>[e,t[s]]).filter(e=>null!==e[1]),n=e=>{const t=[];let s=0;return e.forEach(e=>{null!==e?s++:s>0&&(t.push(s),s=0)}),s>0&&t.push(s),t},o=(e,t)=>{const s=n(e),i=[];for(let e=0,r=0;e<s.length;r+=s[e++])i[e]=w.slice(t,r,r+s[e]);return i};switch(p){case 0:if(null===e[i+1])break;p=1;case 1:if(!(k?a.length===t[s].length:i===t[s].length-2))break;case 2:{const t=v?a:a.slice().reverse(),s=v?e:e.slice().reverse(),i=r(t,s),n=i.length>1?w.points(i):i;let l=[];k&&(Y?y=i:l=y.reverse());let h=0,u=0;if(o(s,n).forEach(e=>{h++;const t=(e=>{let t="";for(let s=0;s<e.length;s++){const i=e[s],r=i.length;r>4?(t+=`C${i[0]}, ${i[1]}`,t+=`, ${i[2]}, ${i[3]}`,t+=`, ${i[4]}, ${i[5]}`):r>2&&(t+=`S${i[0]}, ${i[1]}`,t+=`, ${i[2]}, ${i[3]}`)}return t})(e),s=u;u+=e.length;const r=u-1;Y?f=P.move(i[s][0],i[s][1])+t:k?f=P.move(l[s][0],l[s][1])+P.line(i[s][0],i[s][1])+t+P.line(l[r][0],l[r][1]):(f=P.move(i[s][0],i[s][1])+t,m=f+P.line(i[r][0],A)+P.line(i[s][0],A)+"z",y.push(m)),x.push(f)}),k&&h>1&&!Y){const e=x.slice(h).reverse();x.splice(h),e.forEach(e=>x.push(e))}p=0;break}}break}case"smooth":{const e=.35*(r-u);if(null===t[s][i])p=0;else switch(p){case 0:if(g=u,f=Y?P.move(u,h[i])+P.line(u,c):P.move(u,c),m=P.move(u,c),null===t[s][i+1]||void 0===t[s][i+1]){x.push(f),y.push(m);break}if(p=1,i<t[s].length-2){const t=P.curve(u+e,c,r-e,n,r,n);f+=t,m+=t;break}case 1:if(null===t[s][i+1])f+=Y?P.line(u,o):P.move(u,c),m+=P.line(u,A)+P.line(g,A)+"z",x.push(f),y.push(m),p=-1;else{const a=P.curve(u+e,c,r-e,n,r,n);f+=a,m+=a,i>=t[s].length-2&&(Y&&(f+=P.curve(r,n,r,n,r,o)+P.move(r,o)),m+=P.curve(r,n,r,n,r,A)+P.line(g,A)+"z",x.push(f),y.push(m),p=-1)}}u=r,c=n;break}default:{const e=(e,t,s)=>{let i="";switch(e){case"stepline":i=P.line(t,null,"H")+P.line(null,s,"V");break;case"linestep":i=P.line(null,s,"V")+P.line(t,null,"H");break;case"straight":i=P.line(t,s)}return i};if(null===t[s][i])p=0;else switch(p){case 0:if(g=u,f=Y?P.move(u,h[i])+P.line(u,c):P.move(u,c),m=P.move(u,c),null===t[s][i+1]||void 0===t[s][i+1]){x.push(f),y.push(m);break}if(p=1,i<t[s].length-2){const t=e(b,r,n);f+=t,m+=t;break}case 1:if(null===t[s][i+1])f+=Y?P.line(u,o):P.move(u,c),m+=P.line(u,A)+P.line(g,A)+"z",x.push(f),y.push(m),p=-1;else{const a=e(b,r,n);f+=a,m+=a,i>=t[s].length-2&&(Y&&(f+=P.line(r,o)),m+=P.line(r,A)+P.line(g,A)+"z",x.push(f),y.push(m),p=-1)}}u=r,c=n;break}}return{linePaths:x,areaPaths:y,pX:u,pY:c,pathState:p,segmentStartX:g,linePath:f,areaPath:m}}handleNullDataPoints(e,t,s,i,r){const n=this.w;if(null===e[s][i]&&n.config.markers.showNullDataPoints||1===e[s].length){let e=this.strokeWidth-n.config.markers.strokeWidth/2;e>0||(e=0);const s=this.markers.plotChartMarkers({pointsPos:t,seriesIndex:r,j:i+1,pSize:e,alwaysDrawMarker:!0});null!==s&&this.elPointsMain.add(s)}}}h.use({line:E,area:E,scatter:E,bubble:E,rangeArea:E}),exports.default=h;
|
package/dist/bubble.esm.js
CHANGED
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* ApexCharts v6.
|
|
21
|
+
* ApexCharts v6.4.0
|
|
22
22
|
* (c) 2018-2026 ApexCharts
|
|
23
23
|
*/
|
|
24
24
|
import * as _core from "apexcharts/core";
|
|
@@ -709,7 +709,7 @@ function uniquifyKeys(keys) {
|
|
|
709
709
|
return count === 0 ? k : `${k}#${count}`;
|
|
710
710
|
});
|
|
711
711
|
}
|
|
712
|
-
function seriesJoin(w, realIndex, includeIdentity = false) {
|
|
712
|
+
function seriesJoin(w, realIndex, includeIdentity = false, allowReorder = false) {
|
|
713
713
|
var _a, _b;
|
|
714
714
|
if (!lengthTransitionEnabled(w)) return null;
|
|
715
715
|
const frame = w.globals.prevStreamFrame;
|
|
@@ -723,7 +723,7 @@ function seriesJoin(w, realIndex, includeIdentity = false) {
|
|
|
723
723
|
);
|
|
724
724
|
const newKeys = uniquifyKeys(newY.map((_, j) => datumKey(w, realIndex, j)));
|
|
725
725
|
const join = joinKeys(oldKeys, newKeys);
|
|
726
|
-
if (!join.ordered) return null;
|
|
726
|
+
if (!join.ordered && !allowReorder) return null;
|
|
727
727
|
if (!join.changed && !includeIdentity) return null;
|
|
728
728
|
return { join, oldKeys, newKeys };
|
|
729
729
|
}
|