@dpuse/dpuse-tool-highcharts-visualiser 0.0.80 → 0.0.83

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.
Files changed (38) hide show
  1. package/dist/{AnimationUtilities-Bby2idBR.js → AnimationUtilities-HCzBkGkl.js} +122 -131
  2. package/dist/AnimationUtilities-HCzBkGkl.js.map +1 -0
  3. package/dist/BorderRadius-DsUUgNnR.js +135 -0
  4. package/dist/BorderRadius-DsUUgNnR.js.map +1 -0
  5. package/dist/CenteredUtilities-CBtdKzw5.js +1312 -0
  6. package/dist/CenteredUtilities-CBtdKzw5.js.map +1 -0
  7. package/dist/{SVGElement-BmvC_qu3.js → SVGElement-DQ_bI6Wv.js} +106 -108
  8. package/dist/SVGElement-DQ_bI6Wv.js.map +1 -0
  9. package/dist/SeriesRegistry-BO6tW97M.js +376 -0
  10. package/dist/SeriesRegistry-BO6tW97M.js.map +1 -0
  11. package/dist/{TextPath-DK4Jkzd7.js → TextPath-D9gJwxEx.js} +32 -34
  12. package/dist/{TextPath-DK4Jkzd7.js.map → TextPath-D9gJwxEx.js.map} +1 -1
  13. package/dist/{dependency-wheel.src-BHmwx9rW.js → dependency-wheel.src-CzVxcqBs.js} +26 -27
  14. package/dist/dependency-wheel.src-CzVxcqBs.js.map +1 -0
  15. package/dist/dpuse-tool-highcharts-visualiser.es.js +2495 -2463
  16. package/dist/dpuse-tool-highcharts-visualiser.es.js.map +1 -1
  17. package/dist/highchartsMoreCustom-C4nqraZj.js +1206 -0
  18. package/dist/highchartsMoreCustom-C4nqraZj.js.map +1 -0
  19. package/dist/{pattern-fill.src-BPmr3DQg.js → pattern-fill.src-B5NNMA8k.js} +53 -55
  20. package/dist/pattern-fill.src-B5NNMA8k.js.map +1 -0
  21. package/dist/sankey.src-CwyzwAVp.js +522 -0
  22. package/dist/sankey.src-CwyzwAVp.js.map +1 -0
  23. package/dist/{streamgraph.src-Bn6PY8Fd.js → streamgraph.src-BxwGr88G.js} +4 -6
  24. package/dist/streamgraph.src-BxwGr88G.js.map +1 -0
  25. package/package.json +14 -14
  26. package/dist/AnimationUtilities-Bby2idBR.js.map +0 -1
  27. package/dist/BorderRadius-2zMZW_aK.js +0 -1445
  28. package/dist/BorderRadius-2zMZW_aK.js.map +0 -1
  29. package/dist/SVGElement-BmvC_qu3.js.map +0 -1
  30. package/dist/SeriesRegistry-0cj0ZJqn.js +0 -374
  31. package/dist/SeriesRegistry-0cj0ZJqn.js.map +0 -1
  32. package/dist/dependency-wheel.src-BHmwx9rW.js.map +0 -1
  33. package/dist/highchartsMoreCustom-CcpfmVny.js +0 -1110
  34. package/dist/highchartsMoreCustom-CcpfmVny.js.map +0 -1
  35. package/dist/pattern-fill.src-BPmr3DQg.js.map +0 -1
  36. package/dist/sankey.src-DocCurOx.js +0 -524
  37. package/dist/sankey.src-DocCurOx.js.map +0 -1
  38. package/dist/streamgraph.src-Bn6PY8Fd.js.map +0 -1
@@ -0,0 +1,1312 @@
1
+ import { $ as e, E as t, G as n, H as r, J as i, K as a, M as o, N as s, O as c, P as l, R as u, S as d, T as f, U as p, _ as m, at as h, b as g, c as _, d as v, et as y, g as b, h as x, i as S, k as C, lt as w, p as T, s as E, t as D, tt as O, u as k, w as A, y as j, z as M } from "./AnimationUtilities-HCzBkGkl.js";
2
+ import { n as ee, r as N, t as P } from "./SeriesRegistry-BO6tW97M.js";
3
+ import { t as te } from "./SVGElement-DQ_bI6Wv.js";
4
+ //#region node_modules/highcharts/es-modules/Core/Foundation.js
5
+ var F;
6
+ (function(e) {
7
+ function t(e, t) {
8
+ e.eventOptions = e.eventOptions || {}, i(t.events, function(t, n) {
9
+ e.eventOptions[n] !== t && (e.eventOptions[n] && (O(e, n, e.eventOptions[n]), delete e.eventOptions[n]), r(t) && (e.eventOptions[n] = t, x(e, n, t, { order: 0 })));
10
+ });
11
+ }
12
+ e.registerEventOptions = t;
13
+ })(F ||= {});
14
+ var I = F;
15
+ //#endregion
16
+ //#region node_modules/highcharts/es-modules/Data/ColumnUtils.js
17
+ function ne(e, t, n) {
18
+ return Array.isArray(e) ? (e.length = t, e) : e[n ? "subarray" : "slice"](0, t);
19
+ }
20
+ function re(e, t, n, r, i = []) {
21
+ if (Array.isArray(e)) return Array.isArray(i) || (i = Array.from(i)), {
22
+ removed: e.splice(t, n, ...i),
23
+ array: e
24
+ };
25
+ let a = Object.getPrototypeOf(e).constructor, o = e[r ? "subarray" : "slice"](t, t + n), s = new a(e.length - n + i.length);
26
+ return s.set(e.subarray(0, t), 0), s.set(i, t), s.set(e.subarray(t + n), t + i.length), {
27
+ removed: o,
28
+ array: s
29
+ };
30
+ }
31
+ function L(e, t) {
32
+ switch (typeof e) {
33
+ case "boolean": return +!!e;
34
+ case "number": return isNaN(e) && !t ? null : e;
35
+ default: return e = parseFloat(`${e ?? ""}`), isNaN(e) && !t ? null : e;
36
+ }
37
+ }
38
+ //#endregion
39
+ //#region node_modules/highcharts/es-modules/Data/DataTableCore.js
40
+ var { setLength: R, splice: z } = {
41
+ convertToNumber: L,
42
+ setLength: ne,
43
+ splice: re
44
+ }, B = class {
45
+ constructor(e = {}) {
46
+ this.isDataTable = !0;
47
+ let t = this.isPollutingKey(e.id) ? void 0 : e.id;
48
+ this.autoId = !t, this.columns = {}, this.id = t || T(), this.rowCount = 0, this.versionTag = T();
49
+ let n = 0;
50
+ i(e.columns || {}, (e, t) => {
51
+ t !== "__proto__" && t !== "constructor" && (this.columns[t] = e.slice(), n = Math.max(n, e.length));
52
+ }), this.applyRowCount(n);
53
+ }
54
+ isPollutingKey(e) {
55
+ return e === "__proto__" || e === "constructor";
56
+ }
57
+ applyRowCount(e) {
58
+ this.rowCount = e, i(this.columns, (t, n) => {
59
+ t.length !== e && (this.columns[n] = R(t, e));
60
+ });
61
+ }
62
+ deleteRows(e, t = 1) {
63
+ if (t > 0 && e < this.rowCount) {
64
+ let n = 0;
65
+ i(this.columns, (r, i) => {
66
+ this.columns[i] = z(r, e, t).array, n = r.length;
67
+ }), this.rowCount = n;
68
+ }
69
+ o(this, "afterDeleteRows", {
70
+ rowIndex: e,
71
+ rowCount: t
72
+ }), this.versionTag = T();
73
+ }
74
+ getColumn(e, t) {
75
+ return this.columns[e];
76
+ }
77
+ getColumns(e, t) {
78
+ return (e || Object.keys(this.columns)).reduce((e, t) => (e[t] = this.columns[t], e), {});
79
+ }
80
+ getRowObject(e, t) {
81
+ let n = {}, r = this.columns;
82
+ t ??= Object.keys(this.columns);
83
+ for (let i of t) n[i] = r[i]?.[e];
84
+ return n;
85
+ }
86
+ setColumn(e, t = [], n = 0, r) {
87
+ this.setColumns({ [e]: t }, n, r);
88
+ }
89
+ setColumns(e, t, n) {
90
+ let r = this.rowCount;
91
+ i(e, (e, t) => {
92
+ t !== "__proto__" && t !== "constructor" && (this.columns[t] = e.slice(), r = e.length);
93
+ }), this.applyRowCount(r), n?.silent || (o(this, "afterSetColumns"), this.versionTag = T());
94
+ }
95
+ setRow(e, t = this.rowCount, n, r) {
96
+ let { columns: a } = this, s = n ? this.rowCount + 1 : t + 1, c = Object.keys(e);
97
+ if (r?.addColumns !== !1) for (let e = 0, t = c.length; e < t; e++) {
98
+ let t = c[e];
99
+ !this.isPollutingKey(t) && !Object.hasOwnProperty.call(a, t) && (a[t] = Array(this.rowCount));
100
+ }
101
+ i(a, (r, i) => {
102
+ r && (n ? r = z(r, t, 0, !0, [e[i]]).array : r[t] = i in e ? e[i] : r[t], a[i] = r);
103
+ }), this.applyRowCount(Math.max(s, this.rowCount)), r?.silent || (o(this, "afterSetRows", { rowIndex: t }), this.versionTag = T());
104
+ }
105
+ getModified() {
106
+ return this.modified || this;
107
+ }
108
+ }, V;
109
+ (function(e) {
110
+ function t(e, t) {
111
+ n.call(this, e, t, !0);
112
+ }
113
+ e.areaMarker = t;
114
+ function n(e, t, n) {
115
+ let r = this.legendItem = this.legendItem || {}, { chart: i, options: o } = this, { baseline: s = 0, symbolWidth: c, symbolHeight: l } = e, u = this.symbol || "circle", d = l / 2, f = i.renderer, p = r.group, m = s - Math.round((e.fontMetrics?.b || l) * (n ? .4 : .3)), h = {}, g, _ = o.marker, v = 0;
116
+ if (i.styledMode || (h["stroke-width"] = Math.min(o.lineWidth || 0, 24), o.dashStyle ? h.dashstyle = o.dashStyle : o.linecap !== "square" && (h["stroke-linecap"] = "round")), r.line = f.path().addClass("highcharts-graph").attr(h).add(p), n && (r.area = f.path().addClass("highcharts-area").add(p)), h["stroke-linecap"] && (v = Math.min(r.line.strokeWidth(), c) / 2), c) {
117
+ let e = [[
118
+ "M",
119
+ v,
120
+ m
121
+ ], [
122
+ "L",
123
+ c - v,
124
+ m
125
+ ]];
126
+ r.line.attr({ d: e }), r.area?.attr({ d: [
127
+ ...e,
128
+ [
129
+ "L",
130
+ c - v,
131
+ s
132
+ ],
133
+ [
134
+ "L",
135
+ v,
136
+ s
137
+ ]
138
+ ] });
139
+ }
140
+ if (_ && _.enabled !== !1 && c) {
141
+ let e = Math.min(_.radius ?? d, d);
142
+ u.indexOf("url") === 0 && (_ = a(_, {
143
+ width: l,
144
+ height: l
145
+ }), e = 0), r.symbol = g = f.symbol(u, c / 2 - e, m - e, 2 * e, 2 * e, C({ context: "legend" }, _)).addClass("highcharts-point").add(p), g.isMarker = !0;
146
+ }
147
+ }
148
+ e.lineMarker = n;
149
+ })(V ||= {});
150
+ var H = V, ie = {
151
+ lineWidth: 2,
152
+ allowPointSelect: !1,
153
+ crisp: !0,
154
+ showCheckbox: !1,
155
+ animation: { duration: 1e3 },
156
+ enableMouseTracking: !0,
157
+ events: {},
158
+ marker: {
159
+ enabledThreshold: 2,
160
+ lineColor: "var(--highcharts-background-color)",
161
+ lineWidth: 0,
162
+ radius: 4,
163
+ states: {
164
+ normal: { animation: !0 },
165
+ hover: {
166
+ animation: { duration: 150 },
167
+ enabled: !0,
168
+ radiusPlus: 2,
169
+ lineWidthPlus: 1
170
+ },
171
+ select: {
172
+ fillColor: "var(--highcharts-neutral-color-20)",
173
+ lineColor: "var(--highcharts-neutral-color-100)",
174
+ lineWidth: 2
175
+ }
176
+ }
177
+ },
178
+ point: { events: {} },
179
+ dataLabels: {
180
+ animation: {},
181
+ align: "center",
182
+ borderWidth: 0,
183
+ defer: !0,
184
+ distance: 4,
185
+ formatter: function() {
186
+ let { numberFormatter: e } = this.series.chart;
187
+ return typeof this.y == "number" ? e(this.y, -1) : "";
188
+ },
189
+ padding: [1, 3],
190
+ style: {
191
+ fontSize: "0.7em",
192
+ fontWeight: "bold",
193
+ color: "contrast",
194
+ textOutline: "1px contrast"
195
+ },
196
+ verticalAlign: "bottom",
197
+ x: 0,
198
+ y: 0
199
+ },
200
+ cropThreshold: 300,
201
+ opacity: 1,
202
+ pointRange: 0,
203
+ softThreshold: !0,
204
+ states: {
205
+ normal: { animation: !0 },
206
+ hover: {
207
+ animation: { duration: 150 },
208
+ lineWidthPlus: 1,
209
+ marker: {},
210
+ halo: {
211
+ size: 10,
212
+ opacity: .25
213
+ }
214
+ },
215
+ select: { animation: { duration: 0 } },
216
+ inactive: {
217
+ animation: { duration: 150 },
218
+ opacity: .2
219
+ }
220
+ },
221
+ stickyTracking: !0,
222
+ turboThreshold: 1e3,
223
+ findNearestPointBy: "x"
224
+ }, { defaultOptions: U } = _, { registerEventOptions: W } = I, { svg: G, win: K } = w, { seriesTypes: q } = P, { format: J } = N, Y = class r {
225
+ constructor() {
226
+ this.zoneAxis = "y";
227
+ }
228
+ init(e, t) {
229
+ o(this, "init", { options: t });
230
+ let n = this, r = e.series;
231
+ this.eventsToUnbind = [], this.condemnedPoints ||= [], n.chart = e, n.options = n.setOptions(t);
232
+ let i = n.options, a = i.visible !== !1;
233
+ this.dataTable ??= M(i.dataTable) ? new B() : i.dataTable?.isDataTable ? i.dataTable : new B(i.dataTable), n.linkedSeries = [], n.bindAxes(), C(n, {
234
+ name: i.name,
235
+ state: "",
236
+ visible: a,
237
+ selected: i.selected === !0
238
+ }), W(this, i), (i.events?.click || i.point?.events?.click || i.allowPointSelect) && (e.runTrackerClick = !0), n.getColor(), n.getSymbol(), n.isCartesian && (e.hasCartesianSeries = !0);
239
+ let s;
240
+ r.length && (s = r[r.length - 1]), n._i = (s?._i ?? -1) + 1, n.opacity = n.options.opacity, e.orderItems("series", v(this, r)), !n.points && !n.data && n.setData(i.data, !1), o(this, "afterInit");
241
+ }
242
+ is(e) {
243
+ return q[e] && this instanceof q[e];
244
+ }
245
+ bindAxes() {
246
+ let e = this, t = e.options, n = e.chart, r;
247
+ o(this, "bindAxes", null, function() {
248
+ (e.axisTypes || []).forEach(function(i) {
249
+ (n[i] || []).forEach(function(n) {
250
+ r = n.options, ((t[i] ?? 0) === n.index || t[i] !== void 0 && t[i] === r.id) && (v(e, n.series), e[i] = n, n.isDirty = !0);
251
+ }), !e[i] && e.optionalAxis !== i && k(18, !0, n);
252
+ });
253
+ }), o(this, "afterBindAxes");
254
+ }
255
+ hasData() {
256
+ return this.visible && this.dataMax !== void 0 && this.dataMin !== void 0 || this.visible && this.dataTable.rowCount > 0;
257
+ }
258
+ hasMarkerChanged(e, t) {
259
+ let n = e.marker, r = t.marker;
260
+ return n && r && (r.enabled && !n.enabled || r.symbol !== n.symbol || r.height !== n.height || r.width !== n.width);
261
+ }
262
+ autoIncrement(e) {
263
+ let t = this.options, { pointIntervalUnit: n, relativeXValue: r } = this.options, i = this.chart.time, a = this.xIncrement ?? i.parse(t.pointStart) ?? 0, o;
264
+ if (this.pointInterval = o = this.pointInterval ?? t.pointInterval ?? 1, r && p(e) && (o *= e), n) {
265
+ let e = i.toParts(a);
266
+ n === "day" ? e[2] += o : n === "month" ? e[1] += o : n === "year" && (e[0] += o), o = i.makeTime.apply(i, e) - a;
267
+ }
268
+ return r && p(e) ? a + o : (this.xIncrement = a + o, a);
269
+ }
270
+ setOptions(e) {
271
+ let t = this.chart, n = t.options.plotOptions, r = t.userOptions || {}, i = a(e), s = t.styledMode, c = {
272
+ plotOptions: n,
273
+ userOptions: i
274
+ }, l;
275
+ o(this, "setOptions", c);
276
+ let u = c.plotOptions[this.type], d = r.plotOptions || {}, f = d.series || {}, p = U.plotOptions[this.type] || {}, m = d[this.type] || {};
277
+ u.dataLabels = this.mergeArrays(p.dataLabels, u.dataLabels), this.userOptions = c.userOptions;
278
+ let h = a(u, n.series, m, i), { negativeColor: g, negativeFillColor: _, zoneAxis: v = "y", zones: y } = h, b = (y || []).map((e) => ({ ...e }));
279
+ return this.tooltipOptions = a(U.tooltip, U.plotOptions.series?.tooltip, p?.tooltip, t.userOptions.tooltip, d.series?.tooltip, m.tooltip, i.tooltip), this.stickyTracking = i.stickyTracking ?? m.stickyTracking ?? f.stickyTracking ?? (this.tooltipOptions.shared && !this.noSharedTooltip ? !0 : h.stickyTracking), u.marker === null && delete h.marker, this.zones ||= b, this.zoneAxis = v, (g || _) && !y && (l = {
280
+ value: h[v + "Threshold"] || h.threshold || 0,
281
+ className: "highcharts-negative"
282
+ }, s || (typeof g != "boolean" && (l.color = g), l.fillColor = _), b.push(l)), b.length && A(b[b.length - 1].value) && b.push(s ? {} : {
283
+ color: this.color,
284
+ fillColor: this.fillColor
285
+ }), o(this, "afterSetOptions", { options: h }), h;
286
+ }
287
+ getName() {
288
+ let { chart: e, options: t } = this, { dataMapping: r, name: i } = t, a = r?.y || r?.value, o = n(a) ? a : a?.column;
289
+ return i ?? (n(o) ? o : J(e.options.lang.seriesName, this, e));
290
+ }
291
+ getCyclic(e, t, n) {
292
+ let r = this.chart, i = `${e}Index`, a = `${e}Counter`, o = n?.length || r.options.chart.colorCount, s, c;
293
+ t || (c = e === "color" ? this.options.colorIndex ?? this[i] : this[i], A(c) ? s = c : (r.series.length || (r[a] = 0), s = r[a] % o, r[a] += 1), n && (t = n[s])), s !== void 0 && (this[i] = s), this[e] = t;
294
+ }
295
+ getColor() {
296
+ let e = this.chart;
297
+ e.styledMode ? this.getCyclic("color") : this.options.colorByPoint ? this.color = "var(--highcharts-neutral-color-20)" : this.getCyclic("color", this.options.color || U.plotOptions[this.type]?.color, e.options.colors);
298
+ }
299
+ getPointsCollection() {
300
+ return (this.hasGroupedData ? this.points : this.data) || [];
301
+ }
302
+ getSymbol() {
303
+ let e = this.options.marker;
304
+ this.getCyclic("symbol", e?.symbol, this.chart.options.symbols);
305
+ }
306
+ getColumn(e, t, n) {
307
+ let r = t ? this.dataTable.getModified() : this.dataTable, i = r.rowCount, a = this.dataTable !== r, o = r.getColumn(e, !0);
308
+ if (e === "x" && !a) {
309
+ if (this.xColumn) return this.xColumn;
310
+ let e = r.getColumn("name", !0), t = this.options, n = (e) => {
311
+ if (this.xColumnIsNumbers !== void 0) return this.xColumnIsNumbers;
312
+ for (let t of e) if (typeof t != "number") return this.xColumnIsNumbers = !1;
313
+ return this.xColumnIsNumbers = !0;
314
+ };
315
+ if (this.xIncrement = null, !o || this.xAxis?.hasNames || t.relativeXValue || o.length < (t.turboThreshold || Infinity) && !this.boosted && !n(o)) {
316
+ let t = [];
317
+ for (let n = 0; n < i; n++) {
318
+ let r = o?.[n];
319
+ A(r) || (this.xIncrement ??= t[t.length - 1] ?? null), t.push(this.getX(r, e?.[n]));
320
+ }
321
+ return this.xColumn = t;
322
+ }
323
+ }
324
+ return o || Array(n ? i : 0);
325
+ }
326
+ getX(e, t) {
327
+ return this.xAxis?.hasNames && this.dataTable.getColumn("name", !0) && A(t) ? this.xAxis.nameToX({
328
+ name: t,
329
+ series: this
330
+ }, e) : e === void 0 || p(e) && this.options.relativeXValue ? this.autoIncrement(e) : (typeof e == "string" && (e = this.chart.time.parse(e), p(e)), e);
331
+ }
332
+ matchPoints(e, t, n, r) {
333
+ let { dataTable: i, options: a, requireSorting: o } = this, s = a.dataSorting, c = this.data, l = [], u = [], d = i.rowCount === c.length, f, p, m, h = 0, g = !0;
334
+ this.xIncrement = null, delete this.xColumn;
335
+ let _ = i.getColumn("x"), v = i.getColumn("id"), y = s?.matchByName ? i.getColumn("name") : void 0, x = i.getColumn("index");
336
+ for (p = 0; p < i.rowCount; p++) {
337
+ let a = _?.[p], m = v?.[p], g = y?.[p], b = x?.[p], [S, C] = m && t ? [m, t] : g && n ? [g, n] : A(b) && r ? [b, r] : A(a) && e ? [a, e] : [], w = -1;
338
+ if (C) {
339
+ if (w = C.indexOf(S, h), w === -1) {
340
+ let t = _?.[p], n = e?.length ?? i.rowCount;
341
+ for (; n && e && typeof t == "number" && e[n - 1] > t;) n--;
342
+ l.push({
343
+ newIndex: n,
344
+ oldIndex: p
345
+ });
346
+ } else c[w] && (u.push({
347
+ newIndex: w,
348
+ oldIndex: p
349
+ }), c[w].touched = !0, o && (h = w + 1));
350
+ (!d || p !== w || s?.enabled || this.hasDerivedData) && (f = !0);
351
+ } else l.push({
352
+ newIndex: p,
353
+ oldIndex: p
354
+ });
355
+ }
356
+ if (f) {
357
+ for (u.forEach((e) => {
358
+ c[e.newIndex].applyOptions(i.getRowObject(e.oldIndex));
359
+ }), l.sort((e, t) => t.newIndex - e.newIndex), l.forEach((e) => {
360
+ c.splice(e.newIndex, 0, void 0);
361
+ }), p = c.length; p--;) m = c[p], m && !m.touched && (m.destroy(), c.splice(p, 1));
362
+ this.isDirtyData = this.isDirty = !0;
363
+ } else if (d && !s?.enabled) {
364
+ for (p = 0; p < i.rowCount; p++) if (!c[p].destroyed && !c[p].condemned) {
365
+ let e = i.getRowObject(p);
366
+ e && (Object.keys(e).forEach((t) => {
367
+ e[t] === void 0 && delete e[t];
368
+ }), Object.keys(e).length && c[p].update(e, !1, void 0, !1));
369
+ }
370
+ } else g = !1;
371
+ if (c.forEach((e) => {
372
+ e && (e.touched = !1);
373
+ }), !g) return !1;
374
+ let S = this.getColumn("x");
375
+ return this.xIncrement === null && S.length && (this.xIncrement = b(S), this.autoIncrement()), !0;
376
+ }
377
+ getDataColumnKeys() {
378
+ return this.dataColumnKeys || ["x", ...this.pointArrayMap || ["y"]];
379
+ }
380
+ setData(e, t = !0, r, i) {
381
+ let o = this, s = this.dataTable, c = o.options, l = o.points, u = l?.length || 0, d = s.getColumn("x"), f = s.getColumn("id"), p = c.dataSorting?.matchByName && l?.map((e) => e.name) || s.getColumn("name"), m = s.getColumn("index"), h = o.chart, g = o.xAxis, _, v, y;
382
+ if (h.options.chart.allowMutatingData || (c.data && delete o.options.data, o.userOptions.data && delete o.userOptions.data, y = a(!0, e)), e = y || e, o.xIncrement = null, delete o.xColumn, delete o.xColumnIsNumbers, s !== c.dataTable && delete s.columns.x, o.colorCounter = 0, M(e) ? this.setDataFromArray(e) : this.setDataFromTable(e), i !== !1 && u && !o.cropped && !o.hasGroupedData && o.visible && !o.boosted && (_ = this.matchPoints(d, f, p, m)), !_) {
383
+ for (n(this.getColumn("y")[0]) && k(14, !0, h), o.data = [], v = u; v--;) l[v]?.destroy();
384
+ g && (g.minRange = g.userMinRange), o.isDirty = h.isDirtyBox = !0, o.isDirtyData = !!l, r = !1;
385
+ }
386
+ M(e) && (o.options.data = o.userOptions.data = e), c.legendType === "point" && (this.processData(), this.generatePoints()), t && h.redraw(r);
387
+ }
388
+ setDataFromArray(e) {
389
+ let t = e.length, { keys: n, turboThreshold: r } = this.options, { pointValKey: i = "y", pointArrayMap: a = [] } = this, o = a.length, s = this.dataTable, c = this.getDataColumnKeys(), l = r && t > r, u = 0, d = 1;
390
+ if (l) {
391
+ let r = this.getFirstValidPoint(e), f = this.getFirstValidPoint(e, t - 1, -1), m = (e) => !!(M(e) && (n || p(e[0])));
392
+ if (p(r) && p(f)) s.setColumn(i, e);
393
+ else if (m(r) && m(f)) {
394
+ if (o) {
395
+ let t = r.length === o, n = Array(r.length).fill(0).map(() => []);
396
+ for (let t of e) for (let e = 0; e <= o; e++) n[e]?.push(t[e]);
397
+ s.setColumns((t ? a : c).reduce((e, t, r) => (e[t] = n[r], e), {}));
398
+ } else {
399
+ n && (u = n.indexOf("x"), d = n.indexOf("y"), u = u >= 0 ? u : 0, d = d >= 0 ? d : 1), r.length === 1 && (d = 0);
400
+ let t = [], a = [];
401
+ if (u === d) {
402
+ for (let t of e) a.push(t[d]);
403
+ s.setColumn(i, a);
404
+ } else {
405
+ for (let n of e) t.push(n[u]), a.push(n[d]);
406
+ s.setColumns({
407
+ x: t,
408
+ [i]: a
409
+ });
410
+ }
411
+ }
412
+ } else l = !1;
413
+ }
414
+ if (!l) {
415
+ let n = {};
416
+ for (let r = 0; r < t; r++) {
417
+ let i = this.pointClass.prototype.optionsToObject.call({ series: this }, e[r]);
418
+ for (let e of Object.keys(i)) e !== "__proto__" && e !== "constructor" && (Object.hasOwnProperty.call(n, e) || (n[e] = Array(t)), n[e][r] = i[e]);
419
+ }
420
+ t ? s.setColumns(n) : s.deleteRows(0, s.rowCount);
421
+ }
422
+ }
423
+ setDataFromTable(t) {
424
+ let { chart: r, options: i, dataTable: a } = this, o = r.getDataTable(i), s = t ? [t] : o.length ? o : r.dataTable, c = this.getDataColumnKeys(), l = i.dataMapping, u = c.slice();
425
+ l && (Object.keys(l).forEach((t) => {
426
+ e(u, t);
427
+ }), this.dataColumnKeys = u), s.forEach((e, t) => {
428
+ let r = u.reduce((r, i) => {
429
+ let a = l?.[i], o = e.columns || {}, s = e.id, c = n(a) ? t === 0 && o[a] : ((a?.dataTable || 0) === t || s && a?.dataTable === s) && (p(a?.column) ? Object.values(o)[a.column] : o[a?.column || i]);
430
+ return c && (r[i] = c), r;
431
+ }, {});
432
+ (l || e) && a.setColumns(r), e.isDataTable && this.bindDataTableEvents(e, r);
433
+ });
434
+ }
435
+ bindDataTableEvents(e, t) {
436
+ if (this.hasBoundDataTableEvents) return;
437
+ let { chart: n, eventsToUnbind: r } = this, i = () => {
438
+ clearTimeout(n.redrawTimeout), n.redrawTimeout = setTimeout(() => n.renderer && n.redraw(), 0);
439
+ };
440
+ r.push(x(e, "afterSetRows", (e) => {
441
+ let n = e.rowIndex;
442
+ if (p(n)) {
443
+ let e = B.prototype.getRowObject.call({ columns: t }, n), r = this.data[n];
444
+ e && (this.currentDataGrouping ? this.setData() : (r ? r.update(e, !1) : this.addPoint(e, !1), i()));
445
+ }
446
+ })), r.push(x(e, "afterDeleteRows", (e) => {
447
+ let { rowCount: t, rowIndex: n } = e;
448
+ if (p(n)) {
449
+ for (let e = n + t - 1; e >= n; e--) this.removePoint(e, !1);
450
+ i();
451
+ }
452
+ })), r.push(x(e, "afterSetColumns", (e) => {
453
+ this.setData(e.target);
454
+ })), this.hasBoundDataTableEvents = !0;
455
+ }
456
+ getProcessedData(e) {
457
+ let t = this, { dataTable: n, isCartesian: r, options: i, xAxis: a } = t, o = i.cropThreshold, s = e || t.getExtremesFromAll, c = a?.logarithmic, u = n.rowCount, d, f, p = 0, m, h, g, _ = t.getColumn("x"), v = n, y = !1;
458
+ a && (m = a.getExtremes(), h = m.min, g = m.max, y = !(!a.categories || a.names.length), r && t.sorted && !s && (!o || u > o || t.forceCrop) && (_[u - 1] < h || _[0] > g ? v = new B() : t.getColumn(t.pointValKey || "y").length && (_[0] < h || _[u - 1] > g) && (d = this.cropData(n, h, g), v = d.modified, p = d.start, f = !0))), v !== n && (_ = v.getColumn("x", !0) || []);
459
+ let b = l([c ? _.map(c.log2lin) : _], () => t.requireSorting && !y && k(15, !1, t.chart));
460
+ return {
461
+ modified: v,
462
+ cropped: f,
463
+ cropStart: p,
464
+ closestPointRange: b
465
+ };
466
+ }
467
+ processData(e) {
468
+ let t = this, n = t.xAxis, r = t.dataTable;
469
+ if (t.isCartesian && !t.isDirty && !n.isDirty && !t.yAxis.isDirty && !e) return !1;
470
+ let i = t.getProcessedData();
471
+ r.modified = i.modified, t.cropped = i.cropped, t.cropStart = i.cropStart, t.closestPointRange = t.basePointRange = i.closestPointRange, o(t, "afterProcessData");
472
+ }
473
+ cropData(e, t, n) {
474
+ let r = e === this.dataTable ? this.getColumn("x") : e.getColumn("x", !0), i = r.length, a, o, s = 0, c = i;
475
+ for (a = 0; a < i; a++) if (r[a] >= t) {
476
+ s = Math.max(0, a - 1);
477
+ break;
478
+ }
479
+ for (o = a; o < i; o++) if (r[o] > n) {
480
+ c = o + 1;
481
+ break;
482
+ }
483
+ let l = Object.keys(e.columns).reduce((t, n) => (t[n] = (e.getColumn(n, !0) || []).slice(s, c), t), {});
484
+ return l.x = r.slice(s, c), {
485
+ modified: new B({ columns: l }),
486
+ start: s,
487
+ end: c
488
+ };
489
+ }
490
+ generatePoints() {
491
+ let e = this, t = e.options, n = e.hasProcessedDataTable ? void 0 : t.data, r = e.dataTable.getModified(), i = e.getColumn("x", !0), a = e.pointClass, s = r.rowCount, c = e.cropStart || 0, l = e.hasGroupedData, u = t.keys, d = [], f = t.dataGrouping?.groupAll ? c : 0, p = this.getDataColumnKeys(), m, h, g, _, v = e.data, y;
492
+ if (!v && !l) {
493
+ let t = [];
494
+ t.length = n?.length || 0, v = e.data = t;
495
+ }
496
+ for (u && l && (e.options.keys = !1), _ = 0; _ < s; _++) h = c + _, l ? (g = new a(e, r.getRowObject(_, p)), g.dataGroup = e.groupMap?.[f + _], g.dataGroup?.options && (g.options = g.dataGroup.options, C(g, g.dataGroup.options), delete g.dataLabels, g.key = g.name ?? g.category)) : (g = v[h], y = n ? n[h] : r.getRowObject(_), !g && y !== void 0 ? v[h] = g = new a(e, y, i[_]) : g && (g.category = e.xAxis?.categories?.[g.x] ?? g.x, g.key = g.name ?? g.category)), g && (g.index = l ? f + _ : h, d[_] = g);
497
+ if (e.options.keys = u, v && (s !== (m = v.length) || l)) for (_ = 0; _ < m; _++) _ === c && !l && (_ += s), v[_] && (v[_].destroyElements(), v[_].plotX = void 0);
498
+ e.data = v, e.points = d, o(this, "afterGeneratePoints");
499
+ }
500
+ getXExtremes(e) {
501
+ return {
502
+ min: m(e),
503
+ max: b(e)
504
+ };
505
+ }
506
+ getExtremes(e, t) {
507
+ let { options: n, xAxis: r, yAxis: i } = this, a = t || this.getExtremesFromAll || n.getExtremesFromAll, s = a && this.cropped ? this.dataTable : this.dataTable.getModified(), c = s.rowCount, l = e || this.stackedYData, u = l ? [l] : (this.keysAffectYAxis || this.pointArrayMap || ["y"])?.map((e) => s.getColumn(e, !0) || []) || [], d = this.getColumn("x", !0), f = [], h = this.requireSorting && !this.is("column") ? 1 : 0, g = n.cumulative && n.cumulativeStart && h && !a, _ = i ? i.positiveValuesOnly : !1, v = a || this.cropped || !r, y, x, S, C = 0, w = 0;
508
+ for (r && (y = r.getExtremes(), C = y.min, w = y.max), S = 0; S < c; S++) if (x = d[S], (v || (d[S + h] || x) >= C && (d[S - h] || x) <= w) && (!g || x >= C)) for (let e of u) {
509
+ let t = e[S];
510
+ p(t) && (t > 0 || !_) && f.push(t);
511
+ }
512
+ let T = {
513
+ activeYData: f,
514
+ dataMin: m(f),
515
+ dataMax: b(f)
516
+ };
517
+ return o(this, "afterGetExtremes", { dataExtremes: T }), T;
518
+ }
519
+ applyExtremes() {
520
+ let e = this.getExtremes();
521
+ return this.dataMin = e.dataMin, this.dataMax = e.dataMax, e;
522
+ }
523
+ getFirstValidPoint(e, t = 0, n = 1) {
524
+ let r = e.length, i = t;
525
+ for (; i >= 0 && i < r;) {
526
+ if (A(e[i])) return e[i];
527
+ i += n;
528
+ }
529
+ }
530
+ translate() {
531
+ this.generatePoints();
532
+ let e = this, { hasRendered: t, options: n, xAxis: r, yAxis: i } = e, { stacking: a, threshold: s } = n, { polar: c } = e.chart, l = e.points.concat(e.condemnedPoints), u = l.length, d = e.pointPlacementToXValue(), f = !!d, m = n.startFromThreshold ? s : 0, h = n?.nullInteraction && i.len, _, v, y, b, x = Number.MAX_VALUE;
533
+ function S(e) {
534
+ return j(e, -1e9, 1e9);
535
+ }
536
+ let C = (e, t) => {
537
+ let n = r.translate(e, !1, !1, t, !0, d);
538
+ return p(n) ? g(S(n)) : void 0;
539
+ }, w = (e, t, n) => {
540
+ if (p(e) && t.plotX !== void 0) {
541
+ let t = i.translate(e, !1, !0, n, !0);
542
+ return p(t) ? S(t) : void 0;
543
+ }
544
+ if (!p(e) && h) return h;
545
+ };
546
+ for (_ = 0; _ < u; _++) {
547
+ let n = l[_], o = n.x, u, h, T = n.y, E = n.low, D = a && i.stacking?.stacks[(e.negStacks && T < (m ? 0 : s) ? "-" : "") + e.stackKey];
548
+ n.plotX = v = C(o), a && e.visible && D && D[o] && (b = e.getStackIndicator(b, o, e.index), !n.isNull && b.key && (u = D[o], h = u.points[b.key]), u && M(h) && (E = h[0], T = h[1], E === m && b.key === D[o].base && (E = p(s) ? s : i.min), i.positiveValuesOnly && A(E) && E <= 0 && (E = void 0), n.total = n.stackTotal = u.total ?? void 0, n.percentage = A(n.y) && u.total ? n.y / u.total * 100 : void 0, n.stackY = T, e.irregularWidths || u.setOffset(e.pointXOffset || 0, e.barW || 0, void 0, void 0, void 0, e.xAxis))), n.yBottom = A(E) ? S(i.translate(E, !1, !0, !1, !0)) : void 0, e.dataModify && (T = e.dataModify.modifyValue(T, _)), n.plotY = w(T, n), n.origin = t && !n.graphic && !c ? {
549
+ x: C(o, !0),
550
+ y: w(T, n, !0)
551
+ } : void 0, n.isInside = this.isPointInside(n), n.clientX = f ? g(r.translate(o, !1, !1, !1, !0, d)) : v, n.negative = (n.y || 0) < (s || 0), !n.isNull && n.visible !== !1 && p(v) && (p(y) && (x = Math.min(x, Math.abs(v - y))), y = v), n.zone = this.zones.length ? n.getZone() : void 0;
552
+ }
553
+ e.closestPointRangePx = x, o(this, "afterTranslate");
554
+ }
555
+ getValidPoints(e, t, n) {
556
+ let r = this.chart;
557
+ return (e || this.points || []).filter(function(e) {
558
+ let { plotX: i, plotY: a } = e;
559
+ return !n && (e.isNull || !p(a)) || t && !r.isInsidePlot(i, a, { inverted: r.inverted }) ? !1 : e.visible !== !1;
560
+ });
561
+ }
562
+ getSharedClipKey() {
563
+ return this.sharedClipKey = (this.options.xAxis || 0) + "," + (this.options.yAxis || 0), this.sharedClipKey;
564
+ }
565
+ setClip() {
566
+ let { chart: e, group: t, markerGroup: n, options: r, plotClipGroup: i } = this, a = e.sharedClips, o = e.renderer, s = e.getClipBox(this), c = r.clip ?? !0, l = this.getSharedClipKey(), u = a[l];
567
+ u ? u.animate(s) : a[l] = u = o.clipRect(s), t?.clip(c ? u : void 0), n?.clip(), i?.clip(c && this.yAxis?.clippable ? e.plotClipInner : void 0);
568
+ }
569
+ animate(e) {
570
+ let { chart: t, group: n, markerGroup: r } = this, i = t.inverted, a = D(this.options.animation), o = [
571
+ this.getSharedClipKey(),
572
+ a.duration,
573
+ a.easing,
574
+ a.defer
575
+ ].join(","), s = t.sharedClips[o], c = t.sharedClips[o + "m"];
576
+ if (e && n) {
577
+ let e = t.getClipBox(this);
578
+ if (s) s.attr("height", e.height);
579
+ else {
580
+ e.width = 0, i && (e.x = t.plotHeight), s = t.renderer.clipRect(e), t.sharedClips[o] = s;
581
+ let n = {
582
+ x: -99,
583
+ y: -99,
584
+ width: i ? t.plotWidth + 199 : 99,
585
+ height: i ? 99 : t.plotHeight + 199
586
+ };
587
+ c = t.renderer.clipRect(n), t.sharedClips[o + "m"] = c;
588
+ }
589
+ n.clip(s), r?.clip(c);
590
+ } else if (s && !s.hasClass("highcharts-animating")) {
591
+ let e = t.getClipBox(this), n = a.step;
592
+ (r?.element.childNodes.length || t.series.length > 1) && (a.step = function(e, t) {
593
+ n && n.apply(t, arguments), t.prop === "width" && c?.element && c.attr(i ? "height" : "width", e + 99);
594
+ }), s.addClass("highcharts-animating").animate(e, a);
595
+ }
596
+ }
597
+ afterAnimate() {
598
+ this.setClip(), i(this.chart.sharedClips, (e, t, n) => {
599
+ e && !this.chart.container.querySelector(`[clip-path="url(#${e.id})"]`) && (e.destroy(), delete n[t]);
600
+ }), this.finishedAnimating = !0, o(this, "afterAnimate");
601
+ }
602
+ drawPoints(e) {
603
+ e ||= this.points.concat(this.condemnedPoints);
604
+ let t = this, n = t.chart, r = n.styledMode, { colorAxis: i, options: a } = t, o = a.marker || {}, s = a.nullInteraction, c = t[t.specialGroup || "markerGroup"], l = t.xAxis, u = o.enabled ?? (!l || l.isRadial ? !0 : null) ?? (t.closestPointRangePx ?? -Infinity) >= (o.enabledThreshold ?? 2) * o.radius, d, f, p, m, h, g, _;
605
+ if (o.enabled !== !1 || t._hasPointMarkers) for (d = 0; d < e.length; d++) {
606
+ f = e[d], p = f.graphic, m = p ? "animate" : "attr", h = f.marker || {}, g = !!f.marker;
607
+ let a = f.isNull;
608
+ if ((u && !A(h.enabled) || h.enabled) && (!a || s) && f.visible !== !1) {
609
+ let e = h.symbol ?? t.symbol ?? "rect";
610
+ _ = t.markerAttribs(f, f.selected ? "select" : "");
611
+ let a = f.isInside !== !1;
612
+ if (!p && a && ((_.width || 0) > 0 || f.hasImage) && (f.graphic = p = n.renderer.symbol(e, _.x, _.y, _.width, _.height, g ? h : o).add(c), f.origin)) {
613
+ let e = f.getOrigin(f.origin, _);
614
+ r || (e.opacity = 0), p.attr(e), m = "animate";
615
+ }
616
+ if (p) {
617
+ m === "animate" && p?.animate(_);
618
+ let e = t.pointAttribs(f, r || !f.selected ? void 0 : "select");
619
+ r ? i && p.css({ fill: e.fill }) : p[m](e), p.addClass(f.getClassName(), !0);
620
+ }
621
+ } else p && (f.graphic = p.destroy());
622
+ }
623
+ }
624
+ markerAttribs(e, t) {
625
+ let n = this.options, r = n.marker ?? {}, i = e.marker || {}, a = i.symbol || r.symbol, o = {}, s, c, l = i.radius ?? r.radius;
626
+ t && (s = r.states?.[t], c = i.states?.[t], l = c?.radius ?? s?.radius ?? (l && l + (s?.radiusPlus || 0))), e.hasImage = a && a.indexOf("url") === 0, e.hasImage && (l = 0);
627
+ let u = e.pos();
628
+ return p(l) && u && (n.crisp && (u[0] = d(u[0], e.hasImage ? 0 : a === "rect" ? r.lineWidth || 0 : 1)), o.x = u[0] - l, o.y = u[1] - l), l && (o.width = o.height = 2 * l), o;
629
+ }
630
+ pointAttribs(e, t) {
631
+ let n = this.options, r = n.marker ?? {}, i = e?.options, a = i?.marker || {}, o = i?.color, s = e?.color, c = e?.zone?.color, l = this.color, u, d, f = a.lineWidth ?? r.lineWidth, p = e?.isNull && n.nullInteraction ? 0 : 1;
632
+ l = o || c || s || l, u = a.fillColor || r.fillColor || l, d = a.lineColor || r.lineColor || l, t ||= "normal";
633
+ let m = r.states?.[t] || {}, h = a.states?.[t] || {};
634
+ return f = h.lineWidth ?? m.lineWidth ?? (f || 0) + (h.lineWidthPlus ?? m.lineWidthPlus ?? 0), u = h.fillColor || m.fillColor || u, d = h.lineColor || m.lineColor || d, p = h.opacity ?? m.opacity ?? p, {
635
+ stroke: d,
636
+ "stroke-width": f,
637
+ fill: u,
638
+ opacity: e?.condemned || e?.isInside === !1 ? 0 : p
639
+ };
640
+ }
641
+ destroy(e) {
642
+ let t = this, n = t.chart, r = /AppleWebKit\/533/.test(K.navigator.userAgent), a, s;
643
+ o(t, "destroy", { keepEventsForUpdate: e }), this.removeEvents(e);
644
+ for (let e of t.axisTypes || []) s = t[e], s?.series && (c(s.series, t), s.isDirty = s.forceRedraw = !0);
645
+ t.legendItem && t.chart.legend.destroyItem(t);
646
+ for (let e of t.points || []) e?.destroy?.(!0);
647
+ for (let e of t.zones || []) f(e, void 0, !0);
648
+ u(t.animationTimeout), i(t, function(e, t) {
649
+ e instanceof te && !e.survive && (a = r && t === "group" ? "hide" : "destroy", e[a]());
650
+ }), n.hoverSeries === t && (n.hoverSeries = void 0), c(n.series, t), n.orderItems("series"), i(t, function(n, r) {
651
+ (!e || r !== "hcEvents") && delete t[r];
652
+ });
653
+ }
654
+ applyZones() {
655
+ let e = this, { area: t, chart: n, graph: r, zones: i, points: a, xAxis: o, yAxis: s, zoneAxis: c } = e, { inverted: l, renderer: u } = n, d = this[`${c}Axis`], { isXAxis: f, len: m = 0, minPointOffset: h = 0 } = d || {}, g = (r?.strokeWidth() || 0) / 2 + 1, _ = (e, t = 0, n = 0) => {
656
+ l && (n = m - n);
657
+ let { translated: r = 0, lineClip: i, value: a } = e, o = n - r;
658
+ i?.push([
659
+ "L",
660
+ t,
661
+ Math.abs(o) < g ? n - g * (o < 0 || o === 0 && A(a) ? -1 : 1) : r
662
+ ]);
663
+ };
664
+ if (i.length && (r || t) && d && p(d.min)) {
665
+ let e = d.getExtremes().max + h, n = (e) => {
666
+ e.forEach((t, n) => {
667
+ (t[0] === "M" || t[0] === "L") && (e[n] = [
668
+ t[0],
669
+ f ? m - t[1] : t[1],
670
+ f ? t[2] : m - t[2]
671
+ ]);
672
+ });
673
+ };
674
+ if (i.forEach((t) => {
675
+ t.lineClip = [], t.translated = j(d.toPixels(t.value ?? e, !0) || 0, 0, m);
676
+ }), r && !this.showLine && r.hide(), t && t.hide(), c === "y" && a.length < o.len) for (let e of a) {
677
+ let { plotX: t, plotY: n, zone: r } = e, a = r && i[i.indexOf(r) - 1];
678
+ r && _(r, t, n), a && _(a, t, n);
679
+ }
680
+ let p = [], g = d.toPixels(d.getExtremes().min - h, !0);
681
+ i.forEach((e) => {
682
+ let i = e.lineClip || [], a = Math.round(e.translated || 0);
683
+ o.reversed && i.reverse();
684
+ let { clip: c, simpleClip: d } = e, m = 0, h = 0, _ = o.len, v = s.len;
685
+ f ? (m = a, _ = g) : (h = a, v = g);
686
+ let y = [
687
+ [
688
+ "M",
689
+ m,
690
+ h
691
+ ],
692
+ [
693
+ "L",
694
+ _,
695
+ h
696
+ ],
697
+ [
698
+ "L",
699
+ _,
700
+ v
701
+ ],
702
+ [
703
+ "L",
704
+ m,
705
+ v
706
+ ],
707
+ ["Z"]
708
+ ], b = [
709
+ y[0],
710
+ ...i,
711
+ y[1],
712
+ y[2],
713
+ ...p,
714
+ y[3],
715
+ y[4]
716
+ ];
717
+ p = i.reverse(), g = a, l && (n(b), t && n(y)), c ? (c.animate({ d: b }), d?.animate({ d: y })) : (c = e.clip = u.path(b), t && (d = e.simpleClip = u.path(y))), r && e.graph?.clip(c), t && e.area?.clip(d);
718
+ });
719
+ } else e.visible && (r && r.show(), t && t.show());
720
+ }
721
+ plotGroup(e, t, n, r, i) {
722
+ let a = this[e], o = !a, s = {
723
+ visibility: n,
724
+ zIndex: r || .1
725
+ };
726
+ return A(this.opacity) && !this.chart.styledMode && this.state !== "inactive" && (s.opacity = this.opacity), a || (this[e] = a = this.chart.renderer.g().add(i)), a.addClass("highcharts-" + t + " highcharts-series-" + this.index + " highcharts-" + this.type + "-series " + (A(this.colorIndex) ? "highcharts-color-" + this.colorIndex + " " : "") + (this.options.className || "") + (a.hasClass("highcharts-tracker") ? " highcharts-tracker" : ""), !0), a.attr(s)[o ? "attr" : "animate"](this.getPlotBox(t)), a;
727
+ }
728
+ getPlotBox(e) {
729
+ let t = this.xAxis, n = this.yAxis, r = this.chart, i = r.inverted && !r.polar && t && this.invertible && e === "series";
730
+ r.inverted && (t = n, n = this.xAxis);
731
+ let a = {
732
+ scale: 1,
733
+ translateX: t ? t.left : r.plotLeft,
734
+ translateY: n ? n.top : r.plotTop,
735
+ name: e
736
+ };
737
+ o(this, "getPlotBox", a);
738
+ let { scale: s, translateX: c, translateY: l } = a;
739
+ return {
740
+ translateX: c,
741
+ translateY: l,
742
+ rotation: i ? 90 : 0,
743
+ rotationOriginX: i ? s * (t.len - n.len) / 2 : 0,
744
+ rotationOriginY: i ? s * (t.len + n.len) / 2 : 0,
745
+ scaleX: i ? -s : s,
746
+ scaleY: s
747
+ };
748
+ }
749
+ removeEvents(e) {
750
+ let { eventsToUnbind: t } = this;
751
+ e || O(this), t.length &&= (t.forEach((e) => {
752
+ e();
753
+ }), 0);
754
+ }
755
+ render() {
756
+ let e = this, { chart: t, options: n, hasRendered: r } = e, i = D(n.animation), a = e.visible ? "inherit" : "hidden", s = n.zIndex, c = t.seriesGroup, l = e.finishedAnimating ? 0 : i.duration;
757
+ o(this, "render"), t.plotClipInner && (e.plotClipGroup ||= t.renderer.g().add(c)), e.plotGroup("group", "series", a, s, e.plotClipGroup || c), e.markerGroup = e.plotGroup("markerGroup", "markers", a, s, c), n.clip !== !1 && e.setClip(), l && e.animate?.(!0), e.drawGraph && (e.drawGraph(), e.applyZones()), e.visible && e.drawPoints(), e.drawDataLabels?.(), e.redrawPoints?.(), n.enableMouseTracking && e.drawTracker?.(), l && e.animate?.(), r || (l && i.defer && (l += i.defer), e.animationTimeout = h(() => {
758
+ e.afterAnimate();
759
+ }, l || 0)), e.isDirty = !1, e.hasRendered = !0, o(e, "afterRender");
760
+ }
761
+ redraw() {
762
+ let e = this.isDirty || this.isDirtyData;
763
+ this.translate(), this.render(), e && delete this.kdTree, this.condemnedPoints.length = 0;
764
+ }
765
+ reserveSpace() {
766
+ return this.visible || !this.chart.options.chart.ignoreHiddenSeries;
767
+ }
768
+ searchPoint(e, t) {
769
+ let { xAxis: n, yAxis: r } = this, i = this.chart.inverted;
770
+ return this.searchKDTree({
771
+ clientX: i ? n.len - e.chartY + n.pos : e.chartX - n.pos,
772
+ plotY: i ? r.len - e.chartX + r.pos : e.chartY - r.pos
773
+ }, t, e);
774
+ }
775
+ buildKDTree(e) {
776
+ this.buildingKdTree = !0;
777
+ let t = this, n = t.options, r = (n.findNearestPointBy ?? "").indexOf("y") > -1 ? 2 : 1;
778
+ function i(e, n, r) {
779
+ let a = e?.length, o, s;
780
+ if (a) return o = t.kdAxisArray[n % r], e.sort((e, t) => (e[o] || 0) - (t[o] || 0)), s = Math.floor(a / 2), {
781
+ point: e[s],
782
+ left: i(e.slice(0, s), n + 1, r),
783
+ right: i(e.slice(s + 1), n + 1, r)
784
+ };
785
+ }
786
+ function a() {
787
+ t.kdTree = i(t.getValidPoints(void 0, !t.directTouch, n?.nullInteraction), r, r), t.buildingKdTree = !1;
788
+ }
789
+ delete t.kdTree, h(a, n.kdNow || e?.type === "touchstart" ? 0 : 1);
790
+ }
791
+ searchKDTree(e, t, n, r, i) {
792
+ let a = this, [o, s] = this.kdAxisArray, c = t ? "distX" : "dist", l = (a.options.findNearestPointBy || "").indexOf("y") > -1 ? 2 : 1, u = !!a.isBubble, d = r || ((e, t, n) => {
793
+ let r = e[n] || 0, i = t[n] || 0;
794
+ return [r === i && e.index > t.index || r < i ? e : t, !1];
795
+ }), f = i || ((e, t) => e < t);
796
+ function p(e, t) {
797
+ let n = e[o], r = t[o], i = A(n) && A(r) ? n - r : null, a = e[s], c = t[s], l = A(a) && A(c) ? a - c : 0, d = u && t.marker?.radius || 0;
798
+ t.dist = Math.sqrt((i && i * i || 0) + l * l) - d, t.distX = A(i) ? Math.abs(i) - d : Number.MAX_VALUE;
799
+ }
800
+ function m(e, t, n, r) {
801
+ let i = t.point, o = a.kdAxisArray[n % r], s = i, l = !1;
802
+ p(e, i);
803
+ let h = (e[o] || 0) - (i[o] || 0) + (u && i.marker?.radius || 0), g = h < 0 ? "left" : "right", _ = h < 0 ? "right" : "left";
804
+ if (t[g] && ([s, l] = d(i, m(e, t[g], n + 1, r), c)), t[_]) {
805
+ let i = Math.sqrt(h * h), a = s[c];
806
+ f(i, a, l) && (s = d(s, m(e, t[_], n + 1, r), c)[0]);
807
+ }
808
+ return s;
809
+ }
810
+ if (!this.kdTree && !this.buildingKdTree && this.buildKDTree(n), this.kdTree) return m(e, this.kdTree, l, l);
811
+ }
812
+ pointPlacementToXValue() {
813
+ let { options: e, xAxis: t } = this, n = e.pointPlacement;
814
+ return n === "between" && (n = t.reversed ? -.5 : .5), p(n) ? n * (e.pointRange || t.pointRange) : 0;
815
+ }
816
+ isPointInside(e) {
817
+ let { chart: t, xAxis: n, yAxis: r } = this, { plotX: i = -1, plotY: a = -1 } = e;
818
+ return a >= 0 && a <= (r ? r.len : t.plotHeight) && i >= 0 && i <= (n ? n.len : t.plotWidth);
819
+ }
820
+ drawTracker() {
821
+ let e = this, t = e.options, n = t.trackByArea, r = [].concat((n ? e.areaPath : e.graphPath) || []), i = e.chart, a = i.pointer, s = i.renderer, c = i.options.tooltip?.snap || 0, l = () => {
822
+ t.enableMouseTracking && i.hoverSeries !== e && e.onMouseOver();
823
+ }, u = "rgba(192,192,192," + (G ? 1e-4 : .002) + ")", d = e.tracker;
824
+ d ? d.attr({ d: r }) : e.graph && (e.tracker = d = s.path(r).attr({
825
+ visibility: e.visible ? "inherit" : "hidden",
826
+ zIndex: 2
827
+ }).addClass(n ? "highcharts-tracker-area" : "highcharts-tracker-line").add(e.group), i.styledMode || d.attr({
828
+ "stroke-linecap": "round",
829
+ "stroke-linejoin": "round",
830
+ stroke: u,
831
+ fill: n ? u : "none",
832
+ "stroke-width": e.graph.strokeWidth() + (n ? 0 : 2 * c)
833
+ }), [
834
+ e.tracker,
835
+ e.markerGroup,
836
+ ...e.dataLabelsGroups || []
837
+ ].forEach((e) => {
838
+ e && (e.addClass("highcharts-tracker").on("mouseover", l).on("mouseout", (e) => {
839
+ a?.onTrackerMouseOut(e);
840
+ }), t.cursor && !i.styledMode && e.css({ cursor: t.cursor }), e.on("touchstart", l));
841
+ })), o(this, "afterDrawTracker");
842
+ }
843
+ addPoint(e, t, n, r, i) {
844
+ let a = this, s = a.options, { chart: c, data: l, dataTable: u, xAxis: d } = a, f = d?.hasNames && d.names, p = s.data, m = a.getColumn("x"), h, g;
845
+ t ??= !0;
846
+ let { applyOptions: _, optionsToObject: v } = a.pointClass.prototype, y = { series: a }, b = v.call(y, e);
847
+ _.call(y, b, void 0, !1);
848
+ let x = y.x;
849
+ if (g = m.length, a.requireSorting && x < m[g - 1]) for (h = !0; g && m[g - 1] > x;) g--;
850
+ u.setRow(b, g, !0), this.xColumn?.splice(g, 0, this.getX(x)), f && y.name && (f[x] = y.name), p?.splice(g, 0, e), (h || a.hasProcessedDataTable) && (a.data.splice(g, 0, null), a.processData()), s.legendType === "point" && a.generatePoints(), n && (l[0] && l[0].remove ? l[0].remove(!1) : ([
851
+ l,
852
+ p,
853
+ this.xColumn
854
+ ].filter(A).forEach((e) => {
855
+ e.shift();
856
+ }), u.deleteRows(0))), i !== !1 && o(a, "addPoint", { point: y }), a.isDirty = !0, a.isDirtyData = !0, t && c.redraw(r);
857
+ }
858
+ removePoint(e, t, n) {
859
+ let r = this, { chart: i, data: a, points: o, dataTable: s } = r, c = a[e], l = function() {
860
+ [
861
+ o?.length === a.length ? o : void 0,
862
+ a,
863
+ r.options.data,
864
+ r.xColumn
865
+ ].filter(A).forEach((t) => {
866
+ t.splice(e, 1);
867
+ }), s.deleteRows(e), s.modified = s, c?.destroy(), r.isDirty = !0, r.isDirtyData = !0, t && i.redraw();
868
+ };
869
+ S(n, i), t ??= !0, c ? c.firePointEvent("remove", null, l) : l();
870
+ }
871
+ remove(e, t, n, r) {
872
+ let i = this, a = i.chart;
873
+ function s() {
874
+ i.destroy(r), a.isDirtyLegend = a.isDirtyBox = !0, a.linkSeries(r), (e ?? !0) && a.redraw(t);
875
+ }
876
+ n === !1 ? s() : o(i, "remove", null, s);
877
+ }
878
+ update(e, n) {
879
+ e = t(e, this.userOptions), o(this, "update", { options: e });
880
+ let i = this, s = i.chart, c = i.userOptions, l = i.initialType || i.type, u = s.options.plotOptions, d = q[l].prototype, f = [
881
+ "dataLabelsGroup",
882
+ "dataLabelsGroups",
883
+ "dataLabelsParentGroups",
884
+ "group",
885
+ "markerGroup",
886
+ "plotClipGroup",
887
+ "transformGroup"
888
+ ], p = [
889
+ "dataGrouping",
890
+ "pointStart",
891
+ "pointInterval",
892
+ "pointIntervalUnit",
893
+ "keys"
894
+ ], m = i.finishedAnimating && { animation: !1 }, h = {}, g = e.data || e.dataTable, _, v, y = r.keepProps.slice(), b = e.type || c.type || s.options.chart.type, x = !(this.hasDerivedData || b && b !== this.type || e.keys !== void 0 || e.pointStart !== void 0 || e.pointInterval !== void 0 || e.relativeXValue !== void 0 || e.joinBy || e.mapData || p.some((e) => i.hasOptionChanged(e)));
895
+ b ||= l, x ? (y.push.apply(y, r.keepPropsForPoints), e.visible !== !1 && (y.push("area", "graph"), "zones" in e || y.push("zones")), i.parallelArrays.forEach(function(e) {
896
+ y.push(e + "Data");
897
+ }), g && (e.dataSorting && C(i.options.dataSorting, e.dataSorting), this.setData(g, !1))) : this.dataTable.modified = this.dataTable, e.dataLabels && c.dataLabels && (e.dataLabels = this.mergeArrays(c.dataLabels, e.dataLabels)), e = a(c, {
898
+ index: c.index === void 0 ? i.index : c.index,
899
+ pointStart: u?.series?.pointStart ?? c.pointStart
900
+ }, !x && { data: i.options.data }, e, m), x && e.data && (e.data = i.options.data), y = f.concat(y), y.forEach(function(e) {
901
+ y[e] = i[e], delete i[e];
902
+ });
903
+ let S = !1;
904
+ if (q[b]) {
905
+ if (S = b !== i.type, i.remove(!1, !1, !1, !0), S) {
906
+ if (s.propFromSeries(), Object.setPrototypeOf) Object.setPrototypeOf(i, q[b].prototype);
907
+ else {
908
+ let e = Object.hasOwnProperty.call(i, "hcEvents") && i.hcEvents;
909
+ for (v in d) i[v] = void 0;
910
+ C(i, q[b].prototype), e ? i.hcEvents = e : delete i.hcEvents;
911
+ }
912
+ }
913
+ } else k(17, !0, s, { missingModuleFor: b });
914
+ if (y.forEach(function(e) {
915
+ i[e] = y[e];
916
+ }), i.init(s, e), x && this.points) {
917
+ _ = i.options, _.visible === !1 ? (h.graphic = 1, h.dataLabel = 1) : (this.hasMarkerChanged(_, c) && (h.graphic = 1), i.hasDataLabels?.() || (h.dataLabel = 1));
918
+ for (let e of this.points) e?.series && (e.resolveColor(), Object.keys(h).length && e.destroyElements(h), _.showInLegend === !1 && e.legendItem && s.legend.destroyItem(e));
919
+ }
920
+ i.initialType = l, s.linkSeries(), S && i.linkedSeries.length && (i.isDirtyData = !0), o(this, "afterUpdate"), (n ?? !0) && s.redraw(x ? void 0 : !1);
921
+ }
922
+ setName(e) {
923
+ this.name = this.options.name = this.userOptions.name = e, this.chart.isDirtyLegend = !0;
924
+ }
925
+ hasOptionChanged(e) {
926
+ let t = this.chart, n = this.options[e], r = t.options.plotOptions, i = this.userOptions[e], a = r?.[this.type]?.[e] ?? r?.series?.[e];
927
+ return i && !A(a) ? n !== i : n !== (a ?? n);
928
+ }
929
+ onMouseOver() {
930
+ let e = this, t = e.chart, n = t.hoverSeries;
931
+ t.pointer?.setHoverChartIndex(), n && n !== e && n.onMouseOut(), o(e, "mouseOver"), e.setState("hover"), t.hoverSeries = e;
932
+ }
933
+ onMouseOut() {
934
+ let e = this, t = e.chart, n = t.tooltip, r = t.hoverPoint;
935
+ t.hoverSeries = null, r && r.onMouseOut(), o(e, "mouseOut"), n && !e.stickyTracking && (!n.shared || e.noSharedTooltip) && n.hide(), t.series.forEach(function(e) {
936
+ e.setState("", !0);
937
+ });
938
+ }
939
+ setState(e, t) {
940
+ let n = this, { graph: r, options: i } = n, { inactiveOtherPoints: a, states: o = {} } = i, s = o[e || "normal"]?.animation ?? n.chart.options.chart.animation, { lineWidth: c, opacity: l } = i;
941
+ if (e ||= "", n.state !== e && ([
942
+ n.group,
943
+ n.markerGroup,
944
+ ...n.dataLabelsGroups || []
945
+ ].forEach(function(t) {
946
+ t && (n.state && t.removeClass("highcharts-series-" + n.state), e && t.addClass("highcharts-series-" + e));
947
+ }), n.state = e, !n.chart.styledMode)) {
948
+ if (o[e]?.enabled === !1) return;
949
+ if (e && (c = o[e]?.lineWidth ?? (p(c) ? c + (o?.[e]?.lineWidthPlus || 0) : void 0), l = o[e]?.opacity ?? l), r && !r.dashstyle && p(c)) for (let e of [r, ...this.zones.map((e) => e.graph)]) e?.animate({ "stroke-width": c }, s);
950
+ a || [
951
+ n.group,
952
+ n.markerGroup,
953
+ ...n.dataLabelsGroups || [],
954
+ n.labelBySeries
955
+ ].forEach(function(e) {
956
+ e?.animate({ opacity: l }, s);
957
+ });
958
+ }
959
+ t && a && n.points && n.setAllPointsToState(e || void 0);
960
+ }
961
+ setAllPointsToState(e) {
962
+ this.points.forEach((t) => t.setState?.(e));
963
+ }
964
+ setVisible(e, t) {
965
+ let n = this, r = n.chart, i = r.options.chart.ignoreHiddenSeries, a = n.visible;
966
+ n.visible = e = n.options.visible = n.userOptions.visible = e === void 0 ? !a : e;
967
+ let s = e ? "show" : "hide";
968
+ [
969
+ "group",
970
+ "markerGroup",
971
+ "tracker",
972
+ "tt"
973
+ ].forEach((e) => {
974
+ n[e]?.[s]();
975
+ }), n.dataLabelsGroups?.forEach((e) => {
976
+ e?.[s]();
977
+ }), (r.hoverSeries === n || r.hoverPoint?.series === n) && n.onMouseOut(), n.legendItem && r.legend.colorizeItem(n, e), n.isDirty = !0, n.options.stacking && r.series.forEach((e) => {
978
+ e.options.stacking && e.visible && (e.isDirty = !0);
979
+ }), n.linkedSeries.forEach((t) => {
980
+ t.setVisible(e, !1);
981
+ }), i && (r.isDirtyBox = !0), o(n, s), t !== !1 && r.redraw();
982
+ }
983
+ show() {
984
+ this.setVisible(!0);
985
+ }
986
+ hide() {
987
+ this.setVisible(!1);
988
+ }
989
+ select(e) {
990
+ let t = this;
991
+ t.selected = e = this.options.selected = e === void 0 ? !t.selected : e, t.checkbox && (t.checkbox.checked = e), o(t, e ? "select" : "unselect");
992
+ }
993
+ shouldShowTooltip(e, t, n = {}) {
994
+ return n.series = this, n.visiblePlotOnly = !0, this.chart.isInsidePlot(e, t, n);
995
+ }
996
+ drawLegendSymbol(e, t) {
997
+ let n = this.chart.renderer, r = this.options.legendSymbol || "rectangle", i = t.legendItem || {}, { options: a, symbolHeight: o, symbolWidth: s } = e, c = a.squareSymbol, l = c ? o : s, u = c ? (s - o) / 2 : 0, d = (e.baseline || 0) - o + 1, f = l, p = o, m = a.symbolRadius ?? o, h = r === "rectangle" ? n.rect(u, d, f, p, m) : n.symbols[r] && n.symbol(r, u, d, f, p, { r: m });
998
+ h ? i.symbol = h.addClass("highcharts-point").attr({ zIndex: 3 }).add(i.group) : H[r]?.call(this, e, t);
999
+ }
1000
+ };
1001
+ Y.defaultOptions = ie, Y.types = P.seriesTypes, Y.registerType = P.registerSeriesType, Y.keepProps = [
1002
+ "colorIndex",
1003
+ "eventOptions",
1004
+ "navigatorSeries",
1005
+ "symbolIndex",
1006
+ "baseSeries"
1007
+ ], Y.keepPropsForPoints = [
1008
+ "data",
1009
+ "isDirtyData",
1010
+ "isDirtyCanvas",
1011
+ "points",
1012
+ "condemnedPoints",
1013
+ "dataTable",
1014
+ "hasProcessedDataTable",
1015
+ "xIncrement",
1016
+ "cropped",
1017
+ "_hasPointMarkers",
1018
+ "hasDataLabels",
1019
+ "nodes",
1020
+ "layout",
1021
+ "level",
1022
+ "mapMap",
1023
+ "mapData",
1024
+ "minY",
1025
+ "maxY",
1026
+ "minX",
1027
+ "maxX",
1028
+ "transformGroups"
1029
+ ], C(Y.prototype, {
1030
+ axisTypes: ["xAxis", "yAxis"],
1031
+ coll: "series",
1032
+ colorCounter: 0,
1033
+ directTouch: !1,
1034
+ invertible: !0,
1035
+ isCartesian: !0,
1036
+ kdAxisArray: ["clientX", "plotY"],
1037
+ parallelArrays: ["x", "y"],
1038
+ pointClass: ee,
1039
+ requireSorting: !0,
1040
+ sorted: !0
1041
+ }), P.series = Y;
1042
+ //#endregion
1043
+ //#region node_modules/highcharts/es-modules/Core/Axis/Stacking/StackItem.js
1044
+ var { format: ae } = N, { series: oe } = P, se = class {
1045
+ constructor(e, t, n, r) {
1046
+ this.axis = e, this.negativeValue = t, this.x = n, this.total = null, this.cumulative = null, this.points = {}, this.hasValidPoints = !1, this.stack = r, this.leftCliff = 0, this.rightCliff = 0;
1047
+ }
1048
+ destroy() {
1049
+ f(this, this.axis);
1050
+ }
1051
+ render(e) {
1052
+ let t = this.axis, n = t.chart, r = t.options.stackLabels || {}, i = r.format, a = (i ? ae(i, this, n) : r.formatter?.call(this, this)) || "", s = this.label ? "animate" : "attr";
1053
+ this.label ||= n.renderer.label(a, 0, void 0, r.shape, void 0, void 0, r.useHTML, !1, "stack-labels");
1054
+ let c = this.label, l = {
1055
+ r: r.borderRadius || 0,
1056
+ padding: r.padding ?? 5
1057
+ };
1058
+ n.styledMode || (l.fill = r.backgroundColor, l.stroke = r.borderColor, l["stroke-width"] = r.borderWidth, c.css(r.style || {})), c.attr({
1059
+ text: a,
1060
+ visibility: "hidden"
1061
+ })[s](l), c.added || c.add(e), c.labelrank = n.plotSizeY, o(this, "afterRender");
1062
+ }
1063
+ setOffset(e, t, n, r, i, a) {
1064
+ let { axis: c, label: l } = this, u = c.chart, d = c.options.stackLabels || {}, f = u.inverted, m = this.negativeValue !== !!c.reversed, h = this.getStackBox({
1065
+ boxBottom: n,
1066
+ boxTop: r,
1067
+ defaultX: i,
1068
+ isNegative: m,
1069
+ width: t,
1070
+ xAxis: a,
1071
+ xOffset: e
1072
+ }), { align: g = f ? m ? "left" : "right" : "center", verticalAlign: _ = f ? "middle" : m ? "bottom" : "top", textAlign: v = f ? m ? "right" : "left" : "center", x: y = 0, y: b = 0 } = d, x = {
1073
+ align: g,
1074
+ verticalAlign: _,
1075
+ x: y,
1076
+ y: b
1077
+ };
1078
+ if (l && h) {
1079
+ let e = l.getBBox(void 0, 0), t = l.padding, n = (d.overflow ?? "justify") === "justify", r, { x: i, y: a } = this.adjustStackPosition({
1080
+ labelBox: e,
1081
+ verticalAlign: _,
1082
+ textAlign: v
1083
+ });
1084
+ h.x -= i, h.y -= a, l.align(x, !1, h), r = u.isInsidePlot(l.alignAttr.x + y + i, l.alignAttr.y + b + a), r || (n = !1), n && oe.prototype.justifyDataLabel.call(c, l, x, l.alignAttr, e, h), l.attr({
1085
+ rotation: d.rotation,
1086
+ rotationOriginX: e.width * s(d.textAlign || "center"),
1087
+ rotationOriginY: e.height / 2
1088
+ }), ((!n && d.crop) ?? !0) && (r = p(l.x) && p(l.y) && u.isInsidePlot(l.x - t + (l.width || 0), l.y) && u.isInsidePlot(l.x + t, l.y)), l[r ? "show" : "hide"]();
1089
+ }
1090
+ o(this, "afterSetOffset", {
1091
+ xOffset: e,
1092
+ width: t
1093
+ });
1094
+ }
1095
+ adjustStackPosition({ labelBox: e, verticalAlign: t, textAlign: n }) {
1096
+ return {
1097
+ x: e.width / 2 + e.width / 2 * (2 * s(n) - 1),
1098
+ y: e.height / 2 * 2 * (1 - s(t))
1099
+ };
1100
+ }
1101
+ getStackBox(e) {
1102
+ let t = this.axis, n = t.chart, { boxBottom: r, boxTop: i, defaultX: a, isNegative: o, width: s, xOffset: c } = e, l = t.stacking.usePercentage ? 100 : i ?? this.total ?? 0, u = t.toPixels(l), d = e.xAxis || n.xAxis[0], f = (a ?? d.translate(this.x)) + c, m = t.toPixels(r || p(t.min) && t.logarithmic && t.logarithmic.lin2log(t.min) || 0), h = Math.abs(u - m);
1103
+ return n.inverted ? {
1104
+ x: (o ? u : u - h) - n.plotLeft,
1105
+ y: d.height - f - s + d.top - n.plotTop,
1106
+ width: h,
1107
+ height: s
1108
+ } : {
1109
+ x: f + d.transB - n.plotLeft,
1110
+ y: (o ? u - h : u) - n.plotTop,
1111
+ width: s,
1112
+ height: h
1113
+ };
1114
+ }
1115
+ }, ce = {
1116
+ borderRadius: 3,
1117
+ centerInCategory: !1,
1118
+ groupPadding: .2,
1119
+ marker: null,
1120
+ pointPadding: .1,
1121
+ minPointLength: 0,
1122
+ cropThreshold: 50,
1123
+ pointRange: null,
1124
+ states: {
1125
+ hover: {
1126
+ halo: !1,
1127
+ brightness: .2
1128
+ },
1129
+ select: {
1130
+ color: "var(--highcharts-neutral-color-20)",
1131
+ borderColor: "var(--highcharts-neutral-color-100)"
1132
+ }
1133
+ },
1134
+ dataLabels: {
1135
+ align: void 0,
1136
+ verticalAlign: void 0,
1137
+ y: void 0
1138
+ },
1139
+ startFromThreshold: !0,
1140
+ stickyTracking: !1,
1141
+ tooltip: { distance: 6 },
1142
+ threshold: 0,
1143
+ borderColor: "var(--highcharts-background-color)"
1144
+ }, { parse: le } = E, { noop: X } = w, Z = class extends Y {
1145
+ animate(e) {
1146
+ let t = this, n = this.yAxis, r = n.pos, i = n.reversed, a = t.options, { clipOffset: o, inverted: s } = this.chart, c = {}, l = s ? "translateX" : "translateY", u, d;
1147
+ e && o ? (c.scaleY = .001, d = j(n.toPixels(a.threshold || 0), r, r + n.len), s ? (d += i ? -Math.floor(o[+!!s]) : Math.ceil(o[s ? 3 : 2]), c.translateX = d - n.len) : (d += i ? Math.ceil(o[+!!s]) : -Math.floor(o[s ? 3 : 2]), c.translateY = d), t.clipBox && t.setClip(), t.group.attr(c)) : (u = Number(t.group.attr(l)), t.group.animate({ scaleY: 1 }, C(D(t.options.animation), { step: function(e, n) {
1148
+ t.group && (c[l] = u + n.pos * (r - u), t.group.attr(c));
1149
+ } })));
1150
+ }
1151
+ init(e, t) {
1152
+ super.init.apply(this, arguments);
1153
+ let n = this;
1154
+ e = n.chart, e.hasRendered && e.series.forEach(function(e) {
1155
+ e.type === n.type && (e.isDirty = !0);
1156
+ });
1157
+ }
1158
+ getColumnMetrics() {
1159
+ let e = this, t = e.options, n = e.xAxis, r = e.yAxis, i = n.options.reversedStacks, a = n.reversed && !i || !n.reversed && i, o = {}, s, c = 0;
1160
+ t.grouping === !1 ? c = 1 : e.chart.series.forEach(function(t) {
1161
+ let n = t.yAxis, i = t.options, a;
1162
+ t.type === e.type && t.reserveSpace() && r.len === n.len && r.pos === n.pos && (i.stacking && i.stacking !== "group" ? (s = t.stackKey, o[s] === void 0 && (o[s] = c++), a = o[s]) : i.grouping !== !1 && (a = c++), t.columnIndex = a);
1163
+ });
1164
+ let l = Math.min(Math.abs(n.transA) * (!n.brokenAxis?.hasBreaks && n.ordinal?.slope || t.pointRange || n.closestPointRange || n.tickInterval || 1), n.len), u = l * t.groupPadding, d = (l - 2 * u) / (c || 1), f = Math.min(t.maxPointWidth || n.len, t.pointWidth ?? d * (1 - 2 * t.pointPadding));
1165
+ return e.columnMetrics = {
1166
+ width: f,
1167
+ offset: (d - f) / 2 + (u + ((e.columnIndex || 0) + +!!a) * d - l / 2) * (a ? -1 : 1),
1168
+ paddedWidth: d,
1169
+ columnCount: c
1170
+ }, e.columnMetrics;
1171
+ }
1172
+ crispCol(e, t, n, r) {
1173
+ let i = this.borderWidth, a = this.chart.inverted, o = d(t + r, i, a);
1174
+ if (t = d(t, i, a), r = o - t, this.options.crisp) {
1175
+ let t = d(e + n, i);
1176
+ e = d(e, i), n = t - e;
1177
+ }
1178
+ return {
1179
+ x: e,
1180
+ y: t,
1181
+ width: n,
1182
+ height: r
1183
+ };
1184
+ }
1185
+ adjustForMissingColumns(e, t, n, r) {
1186
+ if (!n.isNull && r.columnCount > 1) {
1187
+ let a = this.xAxis.series.filter((e) => e.visible).map((e) => e.index), o = 0, s = 0;
1188
+ i(this.xAxis.stacking?.stacks, (e) => {
1189
+ let t = typeof n.x == "number" ? e[n.x.toString()]?.points : void 0, r = t?.[this.index], i = {};
1190
+ if (t && M(r)) {
1191
+ let e = this.index, n = Object.keys(t).filter((e) => !e.match(",") && t[e] && t[e].length > 1).map(parseFloat).filter((e) => a.indexOf(e) !== -1).filter((t) => {
1192
+ let n = this.chart.series[t].options, r = n.stacking && n.stack;
1193
+ if (A(r)) {
1194
+ if (p(i[r])) return e === t && (e = i[r]), !1;
1195
+ i[r] = t;
1196
+ }
1197
+ return !0;
1198
+ }).sort((e, t) => t - e);
1199
+ o = n.indexOf(e), s = n.length;
1200
+ }
1201
+ }), o = this.xAxis.reversed ? s - 1 - o : o;
1202
+ let c = (s - 1) * r.paddedWidth + t;
1203
+ e = (n.plotX || 0) + c / 2 - t - o * r.paddedWidth;
1204
+ }
1205
+ return e;
1206
+ }
1207
+ translate() {
1208
+ let e = this, t = e.chart, n = e.options, r = e.dense = e.closestPointRange * e.xAxis.transA < 2, i = e.borderWidth = n.borderWidth ?? +!r, a = e.xAxis, s = e.yAxis, c = n.threshold, l = n.minPointLength ?? 5, u = e.getColumnMetrics(), d = u.width, f = e.pointXOffset = u.offset, m = e.dataMin, h = e.dataMax, g = e.translatedThreshold = s.getThreshold(c), _ = e.barW = Math.max(d, 1 + 2 * i);
1209
+ n.pointPadding && n.crisp && (_ = Math.ceil(_)), Y.prototype.translate.apply(e), e.points.concat(e.condemnedPoints).forEach(function(r) {
1210
+ let i = r.yBottom ?? g, o = 999 + Math.abs(i), v = r.plotX || 0, y = j(r.plotY, -o, s.len + o), b, x = Math.min(y, i), S = Math.max(y, i) - x, C = d, w = v + f, T = _;
1211
+ l && Math.abs(S) < l && (S = l, b = !s.reversed && !r.negative || s.reversed && r.negative, p(c) && p(h) && r.y === c && h <= c && (s.min || 0) < c && (m !== h || (s.max || 0) <= c) && (b = !b, r.negative = !r.negative), x = Math.abs(x - g) > l ? i - (b ? l : 0) : g - (b ? l : 0)), A(r.options.pointWidth) && (C = T = Math.ceil(r.options.pointWidth), w -= Math.round((C - d) / 2)), n.centerInCategory && (w = e.adjustForMissingColumns(w, C, r, u)), r.barX = w, r.pointWidth = C, r.tooltipPos = t.inverted ? [
1212
+ j(s.len + s.pos - t.plotLeft - y, s.pos - t.plotLeft, s.len + s.pos - t.plotLeft),
1213
+ a.len + a.pos - t.plotTop - w - T / 2,
1214
+ S
1215
+ ] : [
1216
+ a.left - t.plotLeft + w + T / 2,
1217
+ j(y + s.pos - t.plotTop, s.pos - t.plotTop, s.len + s.pos - t.plotTop),
1218
+ S
1219
+ ], r.shapeType = e.pointClass.prototype.shapeType || "roundedRect", r.shapeArgs = e.crispCol(w, x, T, r.isNull ? 0 : S);
1220
+ }), o(this, "afterColumnTranslate");
1221
+ }
1222
+ drawGraph() {
1223
+ this.group[this.dense ? "addClass" : "removeClass"]("highcharts-dense-data");
1224
+ }
1225
+ pointAttribs(e, t) {
1226
+ let n = this.options, r = this.pointAttrToOptions || {}, i = r.stroke || "borderColor", o = r["stroke-width"] || "borderWidth", s, c, l, u = e?.color || this.color, d = e?.[i] || n[i] || u, f = e?.options.dashStyle || n.dashStyle, p = e?.[o] ?? n[o] ?? this[o] ?? 1, m = e?.isNull && n.nullInteraction ? 0 : e?.opacity ?? n.opacity ?? 1;
1227
+ e && this.zones.length && (c = e.getZone(), u = e.options.color || c && (c.color || e.nonZonedColor) || this.color, c && (d = c.borderColor || d, f = c.dashStyle || f, p = c.borderWidth || p)), t && e && (s = a(n.states?.[t], e.options.states?.[t] || {}), l = s.brightness, u = s.color || l !== void 0 && le(u).brighten(s.brightness).get() || u, d = s[i] || d, p = s[o] || p, f = s.dashStyle || f, m = s.opacity ?? m);
1228
+ let h = {
1229
+ fill: u,
1230
+ stroke: d,
1231
+ "stroke-width": p,
1232
+ opacity: e?.condemned ? 0 : m
1233
+ };
1234
+ return f && (h.dashstyle = f), h;
1235
+ }
1236
+ drawPoints(e) {
1237
+ e ||= this.points.concat(this.condemnedPoints);
1238
+ let t = this, n = this.chart, r = t.options, i = r.nullInteraction, { styledMode: o, renderer: s } = n, c = r.animationLimit || 250, l;
1239
+ e.forEach(function(e) {
1240
+ let u = e.plotY, d = e.graphic, f = !!d, m = d && n.pointCount < c ? "animate" : "attr";
1241
+ if (p(u) && (e.y !== null || i)) {
1242
+ if (l = e.shapeArgs, d && e.hasNewShapeType() && (d = d.destroy()), !d) {
1243
+ let r = l;
1244
+ e.origin && n.pointCount < c && (r = a(l, e.getOrigin(e.origin, l)), o || (r.opacity = 0, r["stroke-width"] = 0), f = !0, m = "animate"), e.graphic = d = s[e.shapeType](r).add(e.group || t.group);
1245
+ }
1246
+ f && d[m](a(l)), o || d[m](t.pointAttribs(e, e.selected ? "select" : "")).shadow(e.allowShadow !== !1 && r.shadow), d.addClass(e.getClassName(), !0).attr({ visibility: e.visible ? "inherit" : "hidden" });
1247
+ } else d && (e.graphic = d.destroy());
1248
+ });
1249
+ }
1250
+ drawTracker(e = this.points) {
1251
+ let t = this, n = t.chart, r = n.pointer, i = function(e) {
1252
+ r?.normalize(e);
1253
+ let i = r?.getPointFromEvent(e);
1254
+ r && i && t.options.enableMouseTracking && (n.isInsidePlot(e.chartX - n.plotLeft, e.chartY - n.plotTop, { visiblePlotOnly: !0 }) || t.allowOutsidePlotInteraction && r?.inClass(e.target, "highcharts-point") || r?.inClass(e.target, "highcharts-data-label")) && (r.isDirectTouch = !0, i.onMouseOver(e));
1255
+ }, a;
1256
+ e.forEach(function(e) {
1257
+ a = M(e.dataLabels) ? e.dataLabels : e.dataLabel ? [e.dataLabel] : [], e.graphic && (e.graphic.element.point = e), a.forEach(function(t) {
1258
+ (t.div || t.element).point = e;
1259
+ });
1260
+ }), t._hasTracking ||= (t.trackerGroups?.reduce((e, n) => (n === "dataLabelsGroup" ? e.push(...t.dataLabelsGroups || []) : e.push(t[n]), e), []).forEach((e) => {
1261
+ e && (e.addClass("highcharts-tracker").on("mouseover", i).on("mouseout", function(e) {
1262
+ r?.onTrackerMouseOut(e);
1263
+ }).on("touchstart", i), !n.styledMode && t.options.cursor && e.css({ cursor: t.options.cursor }));
1264
+ }), !0), o(this, "afterDrawTracker");
1265
+ }
1266
+ remove() {
1267
+ let e = this, t = e.chart;
1268
+ t.hasRendered && t.series.forEach(function(t) {
1269
+ t.type === e.type && (t.isDirty = !0);
1270
+ }), Y.prototype.remove.apply(e, arguments);
1271
+ }
1272
+ };
1273
+ Z.defaultOptions = a(Y.defaultOptions, ce), C(Z.prototype, {
1274
+ directTouch: !0,
1275
+ getSymbol: X,
1276
+ negStacks: !0,
1277
+ trackerGroups: ["group", "dataLabelsGroup"]
1278
+ }), P.registerSeriesType("column", Z);
1279
+ //#endregion
1280
+ //#region node_modules/highcharts/es-modules/Series/CenteredUtilities.js
1281
+ var { deg2rad: Q } = w, $;
1282
+ (function(e) {
1283
+ function t() {
1284
+ let e = this.options, t = this.chart, n = 2 * (e.slicedOffset || 0), r = t.plotWidth - 2 * n, i = t.plotHeight - 2 * n, a = e.center, s = Math.min(r, i), c = e.thickness, l, u = e.size, d = e.innerSize || 0, f, m;
1285
+ typeof u == "string" && (u = parseFloat(u)), typeof d == "string" && (d = parseFloat(d));
1286
+ let h = [
1287
+ a?.[0] ?? "50%",
1288
+ a?.[1] ?? "50%",
1289
+ (u && u < 0 ? void 0 : e.size) ?? "100%",
1290
+ (d && d < 0 ? void 0 : e.innerSize || 0) ?? "0%"
1291
+ ];
1292
+ for (f = 0; f < 4; ++f) m = h[f], l = f < 2 || f === 2 && /%$/.test(m), h[f] = y(m, [
1293
+ r,
1294
+ i,
1295
+ s,
1296
+ h[2]
1297
+ ][f]) + (l ? n : 0);
1298
+ return h[3] > h[2] && (h[3] = h[2]), p(c) && c * 2 < h[2] && c > 0 && (h[3] = h[2] - c * 2), o(this, "afterGetCenter", { positions: h }), h;
1299
+ }
1300
+ e.getCenter = t;
1301
+ function n(e, t) {
1302
+ let n = p(e) ? e : 0, r = p(t) && t > n && t - n < 360 ? t : n + 360;
1303
+ return {
1304
+ start: Q * (n + -90),
1305
+ end: Q * (r + -90)
1306
+ };
1307
+ }
1308
+ e.getStartAndEndRadians = n;
1309
+ })($ ||= {});
1310
+ var ue = $;
1311
+ //#endregion
1312
+ export { H as a, Y as i, Z as n, B as o, se as r, I as s, ue as t };