@adiba-banking-cloud/backoffice 0.0.101 → 0.0.103

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.
@@ -0,0 +1,927 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-D42CDlY2.js');
4
+
5
+ function _mergeNamespaces(n, m) {
6
+ m.forEach(function (e) {
7
+ e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
8
+ if (k !== 'default' && !(k in n)) {
9
+ var d = Object.getOwnPropertyDescriptor(e, k);
10
+ Object.defineProperty(n, k, d.get ? d : {
11
+ enumerable: true,
12
+ get: function () { return e[k]; }
13
+ });
14
+ }
15
+ });
16
+ });
17
+ return Object.freeze(n);
18
+ }
19
+
20
+ var heatmap$3 = {exports: {}};
21
+
22
+ var heatmap$2 = heatmap$3.exports;
23
+ var hasRequiredHeatmap;
24
+ function requireHeatmap() {
25
+ if (hasRequiredHeatmap) return heatmap$3.exports;
26
+ hasRequiredHeatmap = 1;
27
+ (function (module, exports) {
28
+ !
29
+ /**
30
+ * Highmaps JS v12.4.0 (2025-09-04)
31
+ * @module highcharts/modules/heatmap
32
+ * @requires highcharts
33
+ *
34
+ * (c) 2009-2025 Torstein Honsi
35
+ *
36
+ * License: www.highcharts.com/license
37
+ */
38
+ function (t, e) {
39
+ module.exports = e(t._Highcharts, t._Highcharts.Axis, t._Highcharts.Color, t._Highcharts.LegendSymbol, t._Highcharts.SeriesRegistry, t._Highcharts.SVGElement, t._Highcharts.SVGRenderer) ;
40
+ }("undefined" == typeof window ? heatmap$2 : window, (t, e, s, i, o, r, l) => (() => {
41
+
42
+ var a,
43
+ n,
44
+ h,
45
+ d = {
46
+ 28: t => {
47
+ t.exports = r;
48
+ },
49
+ 500: t => {
50
+ t.exports = i;
51
+ },
52
+ 512: t => {
53
+ t.exports = o;
54
+ },
55
+ 532: t => {
56
+ t.exports = e;
57
+ },
58
+ 540: t => {
59
+ t.exports = l;
60
+ },
61
+ 620: t => {
62
+ t.exports = s;
63
+ },
64
+ 944: e => {
65
+ e.exports = t;
66
+ }
67
+ },
68
+ p = {};
69
+ function c(t) {
70
+ var e = p[t];
71
+ if (void 0 !== e) return e.exports;
72
+ var s = p[t] = {
73
+ exports: {}
74
+ };
75
+ return d[t](s, s.exports, c), s.exports;
76
+ }
77
+ c.n = t => {
78
+ var e = t && t.__esModule ? () => t.default : () => t;
79
+ return c.d(e, {
80
+ a: e
81
+ }), e;
82
+ }, c.d = (t, e) => {
83
+ for (var s in e) c.o(e, s) && !c.o(t, s) && Object.defineProperty(t, s, {
84
+ enumerable: true,
85
+ get: e[s]
86
+ });
87
+ }, c.o = (t, e) => Object.prototype.hasOwnProperty.call(t, e);
88
+ var u = {};
89
+ c.d(u, {
90
+ default: () => tM
91
+ });
92
+ var g = c(944),
93
+ m = c.n(g),
94
+ f = c(532),
95
+ x = c.n(f),
96
+ y = c(620),
97
+ b = c.n(y);
98
+ let {
99
+ parse: v
100
+ } = b(),
101
+ {
102
+ addEvent: C,
103
+ extend: A,
104
+ merge: M,
105
+ pick: w,
106
+ splat: L
107
+ } = m();
108
+ !function (t) {
109
+ let e;
110
+ function s() {
111
+ let {
112
+ userOptions: t
113
+ } = this;
114
+ this.colorAxis = [], t.colorAxis && (t.colorAxis = L(t.colorAxis), t.colorAxis.map(t => new e(this, t)));
115
+ }
116
+ function i(t) {
117
+ let e = this.chart.colorAxis || [],
118
+ s = e => {
119
+ let s = t.allItems.indexOf(e);
120
+ -1 !== s && (this.destroyItem(t.allItems[s]), t.allItems.splice(s, 1));
121
+ },
122
+ i = [],
123
+ o,
124
+ r;
125
+ for (e.forEach(function (t) {
126
+ o = t.options, o?.showInLegend && (o.dataClasses && o.visible ? i = i.concat(t.getDataClassLegendSymbols()) : o.visible && i.push(t), t.series.forEach(function (t) {
127
+ (!t.options.showInLegend || o.dataClasses) && ("point" === t.options.legendType ? t.points.forEach(function (t) {
128
+ s(t);
129
+ }) : s(t));
130
+ }));
131
+ }), r = i.length; r--;) t.allItems.unshift(i[r]);
132
+ }
133
+ function o(t) {
134
+ t.visible && t.item.legendColor && t.item.legendItem.symbol.attr({
135
+ fill: t.item.legendColor
136
+ });
137
+ }
138
+ function r(t) {
139
+ this.chart.colorAxis?.forEach(e => {
140
+ e.update({}, t.redraw);
141
+ });
142
+ }
143
+ function l() {
144
+ (this.chart.colorAxis?.length || this.colorAttribs) && this.translateColors();
145
+ }
146
+ function a() {
147
+ let t = this.axisTypes;
148
+ t ? -1 === t.indexOf("colorAxis") && t.push("colorAxis") : this.axisTypes = ["colorAxis"];
149
+ }
150
+ function n(t) {
151
+ let e = this,
152
+ s = t ? "show" : "hide";
153
+ e.visible = e.options.visible = !!t, ["graphic", "dataLabel"].forEach(function (t) {
154
+ e[t] && e[t][s]();
155
+ }), this.series.buildKDTree();
156
+ }
157
+ function h() {
158
+ let t = this,
159
+ e = this.getPointsCollection(),
160
+ s = this.options.nullColor,
161
+ i = this.colorAxis,
162
+ o = this.colorKey;
163
+ e.forEach(e => {
164
+ let r = e.getNestedProperty(o),
165
+ l = e.options.color || (e.isNull || null === e.value ? s : i && void 0 !== r ? i.toColor(r, e) : e.color || t.color);
166
+ l && e.color !== l && (e.color = l, "point" === t.options.legendType && e.legendItem && e.legendItem.label && t.chart.legend.colorizeItem(e, e.visible));
167
+ });
168
+ }
169
+ function d() {
170
+ this.elem.attr("fill", v(this.start).tweenTo(v(this.end), this.pos), void 0, true);
171
+ }
172
+ function p() {
173
+ this.elem.attr("stroke", v(this.start).tweenTo(v(this.end), this.pos), void 0, true);
174
+ }
175
+ t.compose = function (t, c, u, g, m) {
176
+ let f = c.prototype,
177
+ x = u.prototype,
178
+ y = m.prototype;
179
+ f.collectionsWithUpdate.includes("colorAxis") || (e = t, f.collectionsWithUpdate.push("colorAxis"), f.collectionsWithInit.colorAxis = [f.addColorAxis], C(c, "afterCreateAxes", s), function (t) {
180
+ let s = t.prototype.createAxis;
181
+ t.prototype.createAxis = function (t, i) {
182
+ if ("colorAxis" !== t) return s.apply(this, arguments);
183
+ let o = new e(this, M(i.axis, {
184
+ index: this[t].length,
185
+ isX: false
186
+ }));
187
+ return this.isDirtyLegend = true, this.axes.forEach(t => {
188
+ t.series = [];
189
+ }), this.series.forEach(t => {
190
+ t.bindAxes(), t.isDirtyData = true;
191
+ }), w(i.redraw, true) && this.redraw(i.animation), o;
192
+ };
193
+ }(c), x.fillSetter = d, x.strokeSetter = p, C(g, "afterGetAllItems", i), C(g, "afterColorizeItem", o), C(g, "afterUpdate", r), A(y, {
194
+ optionalAxis: "colorAxis",
195
+ translateColors: h
196
+ }), A(y.pointClass.prototype, {
197
+ setVisible: n
198
+ }), C(m, "afterTranslate", l, {
199
+ order: 1
200
+ }), C(m, "bindAxes", a));
201
+ }, t.pointSetVisible = n;
202
+ }(a || (a = {}));
203
+ let k = a,
204
+ {
205
+ parse: I
206
+ } = b(),
207
+ {
208
+ merge: S
209
+ } = m();
210
+ !function (t) {
211
+ t.initDataClasses = function (t) {
212
+ let e = this.chart,
213
+ s = this.legendItem = this.legendItem || {},
214
+ i = this.options,
215
+ o = t.dataClasses || [],
216
+ r,
217
+ l,
218
+ a = e.options.chart.colorCount,
219
+ n = 0,
220
+ h;
221
+ this.dataClasses = l = [], s.labels = [];
222
+ for (let t = 0, s = o.length; t < s; ++t) r = S(r = o[t]), l.push(r), (e.styledMode || !r.color) && ("category" === i.dataClassColor ? (e.styledMode || (a = (h = e.options.colors || []).length, r.color = h[n]), r.colorIndex = n, ++n === a && (n = 0)) : r.color = I(i.minColor).tweenTo(I(i.maxColor), s < 2 ? .5 : t / (s - 1)));
223
+ }, t.initStops = function () {
224
+ let t = this.options,
225
+ e = this.stops = t.stops || [[0, t.minColor || ""], [1, t.maxColor || ""]];
226
+ for (let t = 0, s = e.length; t < s; ++t) e[t].color = I(e[t][1]);
227
+ }, t.normalizedValue = function (t) {
228
+ let e = this.max || 0,
229
+ s = this.min || 0;
230
+ return this.logarithmic && (t = this.logarithmic.log2lin(t)), 1 - (e - t) / (e - s || 1);
231
+ }, t.toColor = function (t, e) {
232
+ let s,
233
+ i,
234
+ o,
235
+ r,
236
+ l,
237
+ a,
238
+ n = this.dataClasses,
239
+ h = this.stops;
240
+ if (n) {
241
+ for (a = n.length; a--;) if (i = (l = n[a]).from, o = l.to, (void 0 === i || t >= i) && (void 0 === o || t <= o)) {
242
+ r = l.color, e && (e.dataClass = a, e.colorIndex = l.colorIndex);
243
+ break;
244
+ }
245
+ } else {
246
+ for (s = this.normalizedValue(t), a = h.length; a-- && !(s > h[a][0]););
247
+ i = h[a] || h[a + 1], s = 1 - ((o = h[a + 1] || i)[0] - s) / (o[0] - i[0] || 1), r = i.color.tweenTo(o.color, s);
248
+ }
249
+ return r;
250
+ };
251
+ }(n || (n = {}));
252
+ let P = n;
253
+ var T = c(500),
254
+ D = c.n(T),
255
+ E = c(512),
256
+ V = c.n(E);
257
+ let {
258
+ defaultOptions: H
259
+ } = m(),
260
+ {
261
+ series: O
262
+ } = V(),
263
+ {
264
+ defined: z,
265
+ extend: R,
266
+ fireEvent: G,
267
+ isArray: _,
268
+ isNumber: W,
269
+ merge: N,
270
+ pick: K,
271
+ relativeLength: X
272
+ } = m();
273
+ H.colorAxis = N(H.xAxis, {
274
+ lineWidth: 0,
275
+ minPadding: 0,
276
+ maxPadding: 0,
277
+ gridLineColor: "#ffffff",
278
+ gridLineWidth: 1,
279
+ tickPixelInterval: 72,
280
+ startOnTick: true,
281
+ endOnTick: true,
282
+ offset: 0,
283
+ marker: {
284
+ animation: {
285
+ duration: 50
286
+ },
287
+ width: .01,
288
+ color: "#999999"
289
+ },
290
+ labels: {
291
+ distance: 8,
292
+ overflow: "justify",
293
+ rotation: 0
294
+ },
295
+ minColor: "#e6e9ff",
296
+ maxColor: "#0022ff",
297
+ tickLength: 5,
298
+ showInLegend: true
299
+ });
300
+ class j extends x() {
301
+ static compose(t, e, s, i) {
302
+ k.compose(j, t, e, s, i);
303
+ }
304
+ constructor(t, e) {
305
+ super(t, e), this.coll = "colorAxis", this.visible = true, this.init(t, e);
306
+ }
307
+ init(t, e) {
308
+ let s = t.options.legend || {},
309
+ i = e.layout ? "vertical" !== e.layout : "vertical" !== s.layout;
310
+ this.side = e.side || i ? 2 : 1, this.reversed = e.reversed, this.opposite = !i, super.init(t, e, "colorAxis"), this.userOptions = e, _(t.userOptions.colorAxis) && (t.userOptions.colorAxis[this.index] = e), e.dataClasses && this.initDataClasses(e), this.initStops(), this.horiz = i, this.zoomEnabled = false;
311
+ }
312
+ hasData() {
313
+ return !!(this.tickPositions || []).length;
314
+ }
315
+ setTickPositions() {
316
+ if (!this.dataClasses) return super.setTickPositions();
317
+ }
318
+ setOptions(t) {
319
+ let e = N(H.colorAxis, t, {
320
+ showEmpty: false,
321
+ title: null,
322
+ visible: this.chart.options.legend.enabled && false !== t.visible
323
+ });
324
+ super.setOptions(e), this.options.crosshair = this.options.marker;
325
+ }
326
+ setAxisSize() {
327
+ let t = this.chart,
328
+ e = this.legendItem?.symbol,
329
+ {
330
+ width: s,
331
+ height: i
332
+ } = this.getSize();
333
+ e && (this.left = +e.attr("x"), this.top = +e.attr("y"), this.width = s = +e.attr("width"), this.height = i = +e.attr("height"), this.right = t.chartWidth - this.left - s, this.bottom = t.chartHeight - this.top - i, this.pos = this.horiz ? this.left : this.top), this.len = (this.horiz ? s : i) || j.defaultLegendLength;
334
+ }
335
+ getOffset() {
336
+ let t = this.legendItem?.group,
337
+ e = this.chart.axisOffset[this.side];
338
+ if (t) {
339
+ this.axisParent = t, super.getOffset();
340
+ let s = this.chart.legend;
341
+ s.allItems.forEach(function (t) {
342
+ t instanceof j && t.drawLegendSymbol(s, t);
343
+ }), s.render(), this.chart.getMargins(true), this.chart.series.some(t => t.isDrilling) || (this.isDirty = true), this.added || (this.added = true), this.labelLeft = 0, this.labelRight = this.width, this.chart.axisOffset[this.side] = e;
344
+ }
345
+ }
346
+ setLegendColor() {
347
+ let t = this.horiz,
348
+ e = this.reversed,
349
+ s = +!!e,
350
+ i = +!e,
351
+ o = t ? [s, 0, i, 0] : [0, i, 0, s];
352
+ this.legendColor = {
353
+ linearGradient: {
354
+ x1: o[0],
355
+ y1: o[1],
356
+ x2: o[2],
357
+ y2: o[3]
358
+ },
359
+ stops: this.stops
360
+ };
361
+ }
362
+ drawLegendSymbol(t, e) {
363
+ let s = e.legendItem || {},
364
+ i = t.padding,
365
+ o = t.options,
366
+ r = this.options.labels,
367
+ l = K(o.itemDistance, 10),
368
+ a = this.horiz,
369
+ {
370
+ width: n,
371
+ height: h
372
+ } = this.getSize(),
373
+ d = K(o.labelPadding, a ? 16 : 30);
374
+ this.setLegendColor(), s.symbol || (s.symbol = this.chart.renderer.symbol("roundedRect").attr({
375
+ r: o.symbolRadius ?? 3,
376
+ zIndex: 1
377
+ }).add(s.group)), s.symbol.attr({
378
+ x: 0,
379
+ y: (t.baseline || 0) - 11,
380
+ width: n,
381
+ height: h
382
+ }), s.labelWidth = n + i + (a ? l : K(r.x, r.distance) + (this.maxLabelLength || 0)), s.labelHeight = h + i + (a ? d : 0);
383
+ }
384
+ setState(t) {
385
+ this.series.forEach(function (e) {
386
+ e.setState(t);
387
+ });
388
+ }
389
+ setVisible() {}
390
+ getSeriesExtremes() {
391
+ let t = this.series,
392
+ e,
393
+ s,
394
+ i,
395
+ o,
396
+ r = t.length;
397
+ for (this.dataMin = 1 / 0, this.dataMax = -1 / 0; r--;) {
398
+ for (let l of (s = (o = t[r]).colorKey = K(o.options.colorKey, o.colorKey, o.pointValKey, o.zoneAxis, "y"), i = o[s + "Min"] && o[s + "Max"], [s, "value", "y"])) if ((e = o.getColumn(l)).length) break;
399
+ if (i) o.minColorValue = o[s + "Min"], o.maxColorValue = o[s + "Max"];else {
400
+ let t = O.prototype.getExtremes.call(o, e);
401
+ o.minColorValue = t.dataMin, o.maxColorValue = t.dataMax;
402
+ }
403
+ z(o.minColorValue) && z(o.maxColorValue) && (this.dataMin = Math.min(this.dataMin, o.minColorValue), this.dataMax = Math.max(this.dataMax, o.maxColorValue)), i || O.prototype.applyExtremes.call(o);
404
+ }
405
+ }
406
+ drawCrosshair(t, e) {
407
+ let s,
408
+ i = this.legendItem || {},
409
+ o = e?.plotX,
410
+ r = e?.plotY,
411
+ l = this.pos,
412
+ a = this.len;
413
+ e && ((s = this.toPixels(e.getNestedProperty(e.series.colorKey))) < l ? s = l - 2 : s > l + a && (s = l + a + 2), e.plotX = s, e.plotY = this.len - s, super.drawCrosshair(t, e), e.plotX = o, e.plotY = r, this.cross && !this.cross.addedToColorAxis && i.group && (this.cross.addClass("highcharts-coloraxis-marker").add(i.group), this.cross.addedToColorAxis = true, this.chart.styledMode || "object" != typeof this.crosshair || this.cross.attr({
414
+ fill: this.crosshair.color
415
+ })));
416
+ }
417
+ getPlotLinePath(t) {
418
+ let e = this.left,
419
+ s = t.translatedValue,
420
+ i = this.top;
421
+ return W(s) ? this.horiz ? [["M", s - 4, i - 6], ["L", s + 4, i - 6], ["L", s, i], ["Z"]] : [["M", e, s], ["L", e - 6, s + 6], ["L", e - 6, s - 6], ["Z"]] : super.getPlotLinePath(t);
422
+ }
423
+ update(t, e) {
424
+ let s = this.chart.legend;
425
+ this.series.forEach(t => {
426
+ t.isDirtyData = true;
427
+ }), (t.dataClasses && s.allItems || this.dataClasses) && this.destroyItems(), super.update(t, e), this.legendItem?.label && (this.setLegendColor(), s.colorizeItem(this, true));
428
+ }
429
+ destroyItems() {
430
+ let t = this.chart,
431
+ e = this.legendItem || {};
432
+ if (e.label) t.legend.destroyItem(this);else if (e.labels) for (let s of e.labels) t.legend.destroyItem(s);
433
+ t.isDirtyLegend = true;
434
+ }
435
+ destroy() {
436
+ this.chart.isDirtyLegend = true, this.destroyItems(), super.destroy(...[].slice.call(arguments));
437
+ }
438
+ remove(t) {
439
+ this.destroyItems(), super.remove(t);
440
+ }
441
+ getDataClassLegendSymbols() {
442
+ let t,
443
+ e = this,
444
+ s = e.chart,
445
+ i = e.legendItem && e.legendItem.labels || [],
446
+ o = s.options.legend,
447
+ r = K(o.valueDecimals, -1),
448
+ l = K(o.valueSuffix, ""),
449
+ a = t => e.series.reduce((e, s) => (e.push(...s.points.filter(e => e.dataClass === t)), e), []);
450
+ return i.length || e.dataClasses.forEach((o, n) => {
451
+ let h = o.from,
452
+ d = o.to,
453
+ {
454
+ numberFormatter: p
455
+ } = s,
456
+ c = true;
457
+ t = "", void 0 === h ? t = "< " : void 0 === d && (t = "> "), void 0 !== h && (t += p(h, r) + l), void 0 !== h && void 0 !== d && (t += " - "), void 0 !== d && (t += p(d, r) + l), i.push(R({
458
+ chart: s,
459
+ name: t,
460
+ options: {},
461
+ drawLegendSymbol: D().rectangle,
462
+ visible: true,
463
+ isDataClass: true,
464
+ setState: t => {
465
+ for (let e of a(n)) e.setState(t);
466
+ },
467
+ setVisible: function () {
468
+ this.visible = c = e.visible = !c;
469
+ let t = [];
470
+ for (let e of a(n)) e.setVisible(c), e.hiddenInDataClass = !c, -1 === t.indexOf(e.series) && t.push(e.series);
471
+ s.legend.colorizeItem(this, c), t.forEach(t => {
472
+ G(t, "afterDataClassLegendClick");
473
+ });
474
+ }
475
+ }, o));
476
+ }), i;
477
+ }
478
+ getSize() {
479
+ let {
480
+ chart: t,
481
+ horiz: e
482
+ } = this,
483
+ {
484
+ height: s,
485
+ width: i
486
+ } = this.options,
487
+ {
488
+ legend: o
489
+ } = t.options;
490
+ return {
491
+ width: K(z(i) ? X(i, t.chartWidth) : void 0, o?.symbolWidth, e ? j.defaultLegendLength : 12),
492
+ height: K(z(s) ? X(s, t.chartHeight) : void 0, o?.symbolHeight, e ? 12 : j.defaultLegendLength)
493
+ };
494
+ }
495
+ }
496
+ j.defaultLegendLength = 200, j.keepProps = ["legendItem"], R(j.prototype, P), Array.prototype.push.apply(x().keepProps, j.keepProps); /**
497
+ * @license Highcharts JS v12.4.0 (2025-09-04)
498
+ * @module highcharts/modules/color-axis
499
+ * @requires highcharts
500
+ *
501
+ * ColorAxis module
502
+ *
503
+ * (c) 2012-2025 Pawel Potaczek
504
+ *
505
+ * License: www.highcharts.com/license
506
+ */
507
+ let F = m();
508
+ F.ColorAxis = F.ColorAxis || j, F.ColorAxis.compose(F.Chart, F.Fx, F.Legend, F.Series);
509
+ var U = c(28),
510
+ Y = c.n(U);
511
+ let {
512
+ column: {
513
+ prototype: Z
514
+ }
515
+ } = V().seriesTypes,
516
+ {
517
+ addEvent: q,
518
+ defined: $
519
+ } = m();
520
+ !function (t) {
521
+ function e(t) {
522
+ let e = this.series,
523
+ s = e.chart.renderer;
524
+ this.moveToTopOnHover && this.graphic && (e.stateMarkerGraphic || (e.stateMarkerGraphic = new (Y())(s, "use").css({
525
+ pointerEvents: "none"
526
+ }).add(this.graphic.parentGroup)), t?.state === "hover" ? (this.graphic.attr({
527
+ id: this.id
528
+ }), e.stateMarkerGraphic.attr({
529
+ href: `${s.url}#${this.id}`,
530
+ visibility: "visible"
531
+ })) : e.stateMarkerGraphic.attr({
532
+ href: ""
533
+ }));
534
+ }
535
+ t.pointMembers = {
536
+ dataLabelOnNull: true,
537
+ moveToTopOnHover: true,
538
+ isValid: function () {
539
+ return null !== this.value && this.value !== 1 / 0 && this.value !== -1 / 0 && (void 0 === this.value || !isNaN(this.value));
540
+ }
541
+ }, t.seriesMembers = {
542
+ colorKey: "value",
543
+ axisTypes: ["xAxis", "yAxis", "colorAxis"],
544
+ parallelArrays: ["x", "y", "value"],
545
+ pointArrayMap: ["value"],
546
+ trackerGroups: ["group", "markerGroup", "dataLabelsGroup"],
547
+ colorAttribs: function (t) {
548
+ let e = {};
549
+ return $(t.color) && (!t.state || "normal" === t.state) && (e[this.colorProp || "fill"] = t.color), e;
550
+ },
551
+ pointAttribs: Z.pointAttribs
552
+ }, t.compose = function (t) {
553
+ return q(t.prototype.pointClass, "afterSetState", e), t;
554
+ };
555
+ }(h || (h = {}));
556
+ let B = h,
557
+ {
558
+ scatter: {
559
+ prototype: {
560
+ pointClass: J
561
+ }
562
+ }
563
+ } = V().seriesTypes,
564
+ {
565
+ clamp: Q,
566
+ defined: tt,
567
+ extend: te,
568
+ pick: ts
569
+ } = m();
570
+ class ti extends J {
571
+ applyOptions(t, e) {
572
+ return (this.isNull || null === this.value) && delete this.color, super.applyOptions(t, e), this.formatPrefix = this.isNull || null === this.value ? "null" : "point", this;
573
+ }
574
+ getCellAttributes() {
575
+ let t = this.series,
576
+ e = t.options,
577
+ s = (e.colsize || 1) / 2,
578
+ i = (e.rowsize || 1) / 2,
579
+ o = t.xAxis,
580
+ r = t.yAxis,
581
+ l = this.options.marker || t.options.marker,
582
+ a = t.pointPlacementToXValue(),
583
+ n = ts(this.pointPadding, e.pointPadding, 0),
584
+ h = {
585
+ x1: Q(Math.round(o.len - o.translate(this.x - s, false, true, false, true, -a)), -o.len, 2 * o.len),
586
+ x2: Q(Math.round(o.len - o.translate(this.x + s, false, true, false, true, -a)), -o.len, 2 * o.len),
587
+ y1: Q(Math.round(r.translate(this.y - i, false, true, false, true)), -r.len, 2 * r.len),
588
+ y2: Q(Math.round(r.translate(this.y + i, false, true, false, true)), -r.len, 2 * r.len)
589
+ };
590
+ for (let t of [["width", "x"], ["height", "y"]]) {
591
+ let e = t[0],
592
+ s = t[1],
593
+ i = s + "1",
594
+ a = s + "2",
595
+ d = Math.abs(h[i] - h[a]),
596
+ p = l && l.lineWidth || 0,
597
+ c = Math.abs(h[i] + h[a]) / 2,
598
+ u = l && l[e];
599
+ if (tt(u) && u < d) {
600
+ let t = u / 2 + p / 2;
601
+ h[i] = c - t, h[a] = c + t;
602
+ }
603
+ n && (("x" === s && o.reversed || "y" === s && !r.reversed) && (i = a, a = s + "1"), h[i] += n, h[a] -= n);
604
+ }
605
+ return h;
606
+ }
607
+ haloPath(t) {
608
+ if (!t) return [];
609
+ let {
610
+ x: e = 0,
611
+ y: s = 0,
612
+ width: i = 0,
613
+ height: o = 0
614
+ } = this.shapeArgs || {};
615
+ return [["M", e - t, s - t], ["L", e - t, s + o + t], ["L", e + i + t, s + o + t], ["L", e + i + t, s - t], ["Z"]];
616
+ }
617
+ isValid() {
618
+ return this.value !== 1 / 0 && this.value !== -1 / 0;
619
+ }
620
+ }
621
+ te(ti.prototype, {
622
+ dataLabelOnNull: true,
623
+ moveToTopOnHover: true,
624
+ ttBelow: false
625
+ });
626
+ let {
627
+ isNumber: to
628
+ } = m();
629
+ var tr = c(540),
630
+ tl = c.n(tr);
631
+ let {
632
+ doc: ta
633
+ } = m(),
634
+ {
635
+ defined: tn,
636
+ pick: th
637
+ } = m(),
638
+ {
639
+ series: td,
640
+ seriesTypes: {
641
+ column: tp,
642
+ scatter: tc
643
+ }
644
+ } = V(),
645
+ {
646
+ prototype: {
647
+ symbols: tu
648
+ }
649
+ } = tl(),
650
+ {
651
+ addEvent: tg,
652
+ extend: tm,
653
+ fireEvent: tf,
654
+ isNumber: tx,
655
+ merge: ty,
656
+ pick: tb
657
+ } = m(),
658
+ {
659
+ colorFromPoint: tv,
660
+ getContext: tC
661
+ } = {
662
+ colorFromPoint: function (t, e) {
663
+ let s = e.series.colorAxis;
664
+ if (s) {
665
+ let i = s.toColor(t || 0, e).split(")")[0].split("(")[1].split(",").map(t => th(parseFloat(t), parseInt(t, 10)));
666
+ return i[3] = 255 * th(i[3], 1), tn(t) && e.visible || (i[3] = 0), i;
667
+ }
668
+ return [0, 0, 0, 0];
669
+ },
670
+ getContext: function (t) {
671
+ let {
672
+ canvas: e,
673
+ context: s
674
+ } = t;
675
+ return e && s ? (s.clearRect(0, 0, e.width, e.height), s) : (t.canvas = ta.createElement("canvas"), t.context = t.canvas.getContext("2d", {
676
+ willReadFrequently: true
677
+ }) || void 0, t.context);
678
+ }
679
+ };
680
+ class tA extends tc {
681
+ constructor() {
682
+ super(...arguments), this.valueMax = NaN, this.valueMin = NaN, this.isDirtyCanvas = true;
683
+ }
684
+ drawPoints() {
685
+ let t = this,
686
+ e = t.options,
687
+ s = e.interpolation,
688
+ i = e.marker || {};
689
+ if (s) {
690
+ let {
691
+ image: e,
692
+ chart: s,
693
+ xAxis: i,
694
+ yAxis: o
695
+ } = t,
696
+ {
697
+ reversed: r = false,
698
+ len: l
699
+ } = i,
700
+ {
701
+ reversed: a = false,
702
+ len: n
703
+ } = o,
704
+ h = {
705
+ width: l,
706
+ height: n
707
+ };
708
+ if (!e || t.isDirtyData || t.isDirtyCanvas) {
709
+ let l = tC(t),
710
+ {
711
+ canvas: n,
712
+ options: {
713
+ colsize: d = 1,
714
+ rowsize: p = 1
715
+ },
716
+ points: c,
717
+ points: {
718
+ length: u
719
+ }
720
+ } = t,
721
+ g = s.colorAxis && s.colorAxis[0];
722
+ if (n && l && g) {
723
+ let {
724
+ min: g,
725
+ max: m
726
+ } = i.getExtremes(),
727
+ {
728
+ min: f,
729
+ max: x
730
+ } = o.getExtremes(),
731
+ y = m - g,
732
+ b = x - f,
733
+ v = Math.round(y / d / 8 * 8),
734
+ C = Math.round(b / p / 8 * 8),
735
+ [A, M] = [[v, v / y, r, "ceil"], [C, C / b, !a, "floor"]].map(([t, e, s, i]) => s ? s => Math[i](t - e * s) : t => Math[i](e * t)),
736
+ w = n.width = v + 1,
737
+ L = w * (n.height = C + 1),
738
+ k = (u - 1) / L,
739
+ I = new Uint8ClampedArray(4 * L),
740
+ S = (t, e) => 4 * Math.ceil(w * M(e - f) + A(t - g));
741
+ t.buildKDTree();
742
+ for (let t = 0; t < L; t++) {
743
+ let e = c[Math.ceil(k * t)],
744
+ {
745
+ x: s,
746
+ y: i
747
+ } = e;
748
+ I.set(tv(e.value, e), S(s, i));
749
+ }
750
+ l.putImageData(new ImageData(I, w), 0, 0), e ? e.attr({
751
+ ...h,
752
+ href: n.toDataURL("image/png", 1)
753
+ }) : (t.directTouch = false, t.image = s.renderer.image(n.toDataURL("image/png", 1)).attr(h).add(t.group));
754
+ }
755
+ t.isDirtyCanvas = false;
756
+ } else (e.width !== l || e.height !== n) && e.attr(h);
757
+ } else (i.enabled || t._hasPointMarkers) && (td.prototype.drawPoints.call(t), t.points.forEach(e => {
758
+ e.graphic && (e.graphic[t.chart.styledMode ? "css" : "animate"](t.colorAttribs(e)), null === e.value && e.graphic.addClass("highcharts-null-point"));
759
+ }));
760
+ }
761
+ getExtremes() {
762
+ let {
763
+ dataMin: t,
764
+ dataMax: e
765
+ } = td.prototype.getExtremes.call(this, this.getColumn("value"));
766
+ return tx(t) && (this.valueMin = t), tx(e) && (this.valueMax = e), td.prototype.getExtremes.call(this);
767
+ }
768
+ getValidPoints(t, e) {
769
+ return td.prototype.getValidPoints.call(this, t, e, true);
770
+ }
771
+ hasData() {
772
+ return !!this.dataTable.rowCount;
773
+ }
774
+ init() {
775
+ super.init.apply(this, arguments);
776
+ let t = this.options;
777
+ t.pointRange = tb(t.pointRange, t.colsize || 1), this.yAxis.axisPointRange = t.rowsize || 1, tu.ellipse = tu.circle, t.marker && tx(t.borderRadius) && (t.marker.r = t.borderRadius);
778
+ }
779
+ markerAttribs(t, e) {
780
+ let s = t.shapeArgs || {};
781
+ if (t.hasImage) return {
782
+ x: t.plotX,
783
+ y: t.plotY
784
+ };
785
+ if (e && "normal" !== e) {
786
+ let i = t.options.marker || {},
787
+ o = this.options.marker || {},
788
+ r = o.states?.[e] || {},
789
+ l = i.states?.[e] || {},
790
+ a = (l.width || r.width || s.width || 0) + (l.widthPlus || r.widthPlus || 0),
791
+ n = (l.height || r.height || s.height || 0) + (l.heightPlus || r.heightPlus || 0);
792
+ return {
793
+ x: (s.x || 0) + ((s.width || 0) - a) / 2,
794
+ y: (s.y || 0) + ((s.height || 0) - n) / 2,
795
+ width: a,
796
+ height: n
797
+ };
798
+ }
799
+ return s;
800
+ }
801
+ pointAttribs(t, e) {
802
+ let s = td.prototype.pointAttribs.call(this, t, e),
803
+ i = this.options || {},
804
+ o = this.chart.options.plotOptions || {},
805
+ r = o.series || {},
806
+ l = o.heatmap || {},
807
+ a = t?.options.borderColor || i.borderColor || l.borderColor || r.borderColor,
808
+ n = t?.options.borderWidth || i.borderWidth || l.borderWidth || r.borderWidth || s["stroke-width"];
809
+ if (s.stroke = t?.marker?.lineColor || i.marker?.lineColor || a || this.color, s["stroke-width"] = n, e && "normal" !== e) {
810
+ let o = ty(i.states?.[e], i.marker?.states?.[e], t?.options.states?.[e] || {});
811
+ s.fill = o.color || b().parse(s.fill).brighten(o.brightness || 0).get(), s.stroke = o.lineColor || s.stroke;
812
+ }
813
+ return s;
814
+ }
815
+ translate() {
816
+ let {
817
+ borderRadius: t,
818
+ marker: e
819
+ } = this.options,
820
+ s = e?.symbol || "rect",
821
+ i = tu[s] ? s : "rect",
822
+ o = -1 !== ["circle", "square"].indexOf(i);
823
+ for (let e of (this.generatePoints(), this.points)) {
824
+ let r = e.getCellAttributes(),
825
+ l = Math.min(r.x1, r.x2),
826
+ a = Math.min(r.y1, r.y2),
827
+ n = Math.max(Math.abs(r.x2 - r.x1), 0),
828
+ h = Math.max(Math.abs(r.y2 - r.y1), 0);
829
+ if (e.hasImage = 0 === (e.marker?.symbol || s).indexOf("url"), o) {
830
+ let t = Math.abs(n - h);
831
+ l = Math.min(r.x1, r.x2) + (n < h ? 0 : t / 2), a = Math.min(r.y1, r.y2) + (n < h ? t / 2 : 0), n = h = Math.min(n, h);
832
+ }
833
+ e.hasImage && (e.marker = {
834
+ width: n,
835
+ height: h
836
+ }), e.plotX = e.clientX = (r.x1 + r.x2) / 2, e.plotY = (r.y1 + r.y2) / 2, e.shapeType = "path", e.shapeArgs = ty(true, {
837
+ x: l,
838
+ y: a,
839
+ width: n,
840
+ height: h
841
+ }, {
842
+ d: tu[i](l, a, n, h, {
843
+ r: tx(t) ? t : 0
844
+ })
845
+ });
846
+ }
847
+ tf(this, "afterTranslate");
848
+ }
849
+ }
850
+ tA.defaultOptions = ty(tc.defaultOptions, {
851
+ animation: false,
852
+ borderRadius: 0,
853
+ borderWidth: 0,
854
+ interpolation: false,
855
+ nullColor: "#f7f7f7",
856
+ dataLabels: {
857
+ formatter: function () {
858
+ let {
859
+ numberFormatter: t
860
+ } = this.series.chart,
861
+ {
862
+ value: e
863
+ } = this.point;
864
+ return to(e) ? t(e, -1) : "";
865
+ },
866
+ inside: true,
867
+ verticalAlign: "middle",
868
+ crop: false,
869
+ overflow: "allow",
870
+ padding: 0
871
+ },
872
+ marker: {
873
+ symbol: "rect",
874
+ radius: 0,
875
+ lineColor: void 0,
876
+ states: {
877
+ hover: {
878
+ lineWidthPlus: 0
879
+ },
880
+ select: {}
881
+ }
882
+ },
883
+ clip: true,
884
+ pointRange: null,
885
+ tooltip: {
886
+ pointFormat: "{point.x}, {point.y}: {point.value}<br/>"
887
+ },
888
+ states: {
889
+ hover: {
890
+ halo: false,
891
+ brightness: .2
892
+ }
893
+ },
894
+ legendSymbol: "rectangle"
895
+ }), tg(tA, "afterDataClassLegendClick", function () {
896
+ this.isDirtyCanvas = true, this.drawPoints();
897
+ }), tm(tA.prototype, {
898
+ axisTypes: B.seriesMembers.axisTypes,
899
+ colorKey: B.seriesMembers.colorKey,
900
+ directTouch: true,
901
+ getExtremesFromAll: true,
902
+ keysAffectYAxis: ["y"],
903
+ parallelArrays: B.seriesMembers.parallelArrays,
904
+ pointArrayMap: ["y", "value"],
905
+ pointClass: ti,
906
+ specialGroup: "group",
907
+ trackerGroups: B.seriesMembers.trackerGroups,
908
+ alignDataLabel: tp.prototype.alignDataLabel,
909
+ colorAttribs: B.seriesMembers.colorAttribs,
910
+ getSymbol: td.prototype.getSymbol
911
+ }), B.compose(tA), V().registerSeriesType("heatmap", tA);
912
+ let tM = m();
913
+ return u.default;
914
+ })());
915
+ })(heatmap$3);
916
+ return heatmap$3.exports;
917
+ }
918
+
919
+ var heatmapExports = requireHeatmap();
920
+ var heatmap = /*@__PURE__*/index.getDefaultExportFromCjs(heatmapExports);
921
+
922
+ var heatmap$1 = /*#__PURE__*/_mergeNamespaces({
923
+ __proto__: null,
924
+ default: heatmap
925
+ }, [heatmapExports]);
926
+
927
+ exports.heatmap = heatmap$1;