vue-data-ui 3.19.7 → 3.19.9

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 (131) hide show
  1. package/README.md +1 -1
  2. package/dist/{PackageVersion-DUU5Aku2.js → PackageVersion-Dl9W5zJD.js} +1 -1
  3. package/dist/components/vue-ui-3d-bar.js +1 -1
  4. package/dist/components/vue-ui-age-pyramid.js +1 -1
  5. package/dist/components/vue-ui-bullet.js +1 -1
  6. package/dist/components/vue-ui-bump.js +1 -1
  7. package/dist/components/vue-ui-candlestick.js +1 -1
  8. package/dist/components/vue-ui-carousel-table.js +1 -1
  9. package/dist/components/vue-ui-chestnut.js +1 -1
  10. package/dist/components/vue-ui-chord.js +1 -1
  11. package/dist/components/vue-ui-circle-pack.js +1 -1
  12. package/dist/components/vue-ui-cursor.js +1 -1
  13. package/dist/components/vue-ui-dag.js +1 -1
  14. package/dist/components/vue-ui-dashboard.js +1 -1
  15. package/dist/components/vue-ui-digits.js +1 -1
  16. package/dist/components/vue-ui-donut-evolution.js +1 -1
  17. package/dist/components/vue-ui-donut.js +1 -1
  18. package/dist/components/vue-ui-dumbbell.js +1 -1
  19. package/dist/components/vue-ui-flow.js +1 -1
  20. package/dist/components/vue-ui-funnel.js +1 -1
  21. package/dist/components/vue-ui-galaxy.js +1 -1
  22. package/dist/components/vue-ui-gauge.js +1 -1
  23. package/dist/components/vue-ui-geo.js +1 -1
  24. package/dist/components/vue-ui-gizmo.js +1 -1
  25. package/dist/components/vue-ui-heatmap.js +1 -1
  26. package/dist/components/vue-ui-history-plot.js +1 -1
  27. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  28. package/dist/components/vue-ui-kpi.js +1 -1
  29. package/dist/components/vue-ui-molecule.js +1 -1
  30. package/dist/components/vue-ui-mood-radar.js +1 -1
  31. package/dist/components/vue-ui-nested-donuts.js +1 -1
  32. package/dist/components/vue-ui-onion.js +1 -1
  33. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  34. package/dist/components/vue-ui-quadrant.js +1 -1
  35. package/dist/components/vue-ui-quick-chart.js +1 -1
  36. package/dist/components/vue-ui-radar.js +1 -1
  37. package/dist/components/vue-ui-relation-circle.js +1 -1
  38. package/dist/components/vue-ui-ridgeline.js +1 -1
  39. package/dist/components/vue-ui-rings.js +1 -1
  40. package/dist/components/vue-ui-scatter.js +1 -1
  41. package/dist/components/vue-ui-skeleton.js +1 -1
  42. package/dist/components/vue-ui-spark-trend.js +1 -1
  43. package/dist/components/vue-ui-sparkbar.js +1 -1
  44. package/dist/components/vue-ui-sparkgauge.js +1 -1
  45. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  46. package/dist/components/vue-ui-sparkline.js +1 -1
  47. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  48. package/dist/components/vue-ui-stackbar.js +1 -1
  49. package/dist/components/vue-ui-stackline.js +1 -1
  50. package/dist/components/vue-ui-strip-plot.js +1 -1
  51. package/dist/components/vue-ui-table-sparkline.js +1 -1
  52. package/dist/components/vue-ui-table.js +1 -1
  53. package/dist/components/vue-ui-thermometer.js +1 -1
  54. package/dist/components/vue-ui-timer.js +1 -1
  55. package/dist/components/vue-ui-tiremarks.js +1 -1
  56. package/dist/components/vue-ui-treemap.js +1 -1
  57. package/dist/components/vue-ui-vertical-bar.js +1 -1
  58. package/dist/components/vue-ui-waffle.js +1 -1
  59. package/dist/components/vue-ui-wheel.js +1 -1
  60. package/dist/components/vue-ui-word-cloud.js +1 -1
  61. package/dist/components/vue-ui-world.js +1 -1
  62. package/dist/components/vue-ui-xy-canvas.js +1 -1
  63. package/dist/components/vue-ui-xy.js +1 -1
  64. package/dist/style.css +1 -1
  65. package/dist/types/vue-ui-dag.d.ts +2 -0
  66. package/dist/{vue-data-ui-DBjj6t8B.js → vue-data-ui-nsosW-n5.js} +61 -61
  67. package/dist/vue-data-ui.js +61 -61
  68. package/dist/{vue-ui-3d-bar-CmAc1xBL.js → vue-ui-3d-bar-CTvvvgBE.js} +1 -1
  69. package/dist/{vue-ui-age-pyramid-CFvux3-S.js → vue-ui-age-pyramid-ckZtLlmH.js} +1 -1
  70. package/dist/{vue-ui-bullet-C4xEb3fq.js → vue-ui-bullet-3CkhGOSb.js} +1 -1
  71. package/dist/{vue-ui-bump-BW76g7ep.js → vue-ui-bump-LQuPTOlm.js} +1 -1
  72. package/dist/{vue-ui-candlestick-ShTn9uzH.js → vue-ui-candlestick-BeO06tlH.js} +1 -1
  73. package/dist/{vue-ui-carousel-table-DMan_IZb.js → vue-ui-carousel-table-nZJ1k6se.js} +1 -1
  74. package/dist/{vue-ui-chestnut-BIfaNOqy.js → vue-ui-chestnut-BWItE1hg.js} +1 -1
  75. package/dist/{vue-ui-chord-GDJiAjfD.js → vue-ui-chord-YflKRyWK.js} +1 -1
  76. package/dist/{vue-ui-circle-pack-Bo4ljiP_.js → vue-ui-circle-pack-DyTYvEg3.js} +1 -1
  77. package/dist/{vue-ui-cursor-BuLoDOFw.js → vue-ui-cursor-C5_wkWul.js} +1 -1
  78. package/dist/{vue-ui-dag-BmbwijZi.js → vue-ui-dag-mH0baWM3.js} +1 -1
  79. package/dist/{vue-ui-dashboard-CyzIaw6M.js → vue-ui-dashboard-F7pEuJDh.js} +58 -58
  80. package/dist/{vue-ui-digits-B33dTRHj.js → vue-ui-digits-BYBtwXy_.js} +1 -1
  81. package/dist/{vue-ui-donut-BIgvjStd.js → vue-ui-donut-B3L7jeHL.js} +434 -432
  82. package/dist/{vue-ui-donut-evolution-DT5F88LK.js → vue-ui-donut-evolution-C46h0gLy.js} +356 -356
  83. package/dist/{vue-ui-dumbbell-SwLKpHuh.js → vue-ui-dumbbell-xekp1obI.js} +1 -1
  84. package/dist/{vue-ui-flow-BqTUyRBS.js → vue-ui-flow-BYYyk5KL.js} +1 -1
  85. package/dist/{vue-ui-funnel-GOx4FfhB.js → vue-ui-funnel-BfY509t-.js} +1 -1
  86. package/dist/{vue-ui-galaxy-CTMyOfp7.js → vue-ui-galaxy-D061gTYS.js} +260 -257
  87. package/dist/{vue-ui-gauge-Clz_TmiX.js → vue-ui-gauge-BRxZNBBS.js} +1 -1
  88. package/dist/{vue-ui-geo-2kZK_UVF.js → vue-ui-geo-BwOMFUVr.js} +1 -1
  89. package/dist/{vue-ui-gizmo-BpNEwLo7.js → vue-ui-gizmo-CQsP8Nd3.js} +1 -1
  90. package/dist/{vue-ui-heatmap-B6FLZij5.js → vue-ui-heatmap-DOsulVoP.js} +1 -1
  91. package/dist/{vue-ui-history-plot-DpGwqYyg.js → vue-ui-history-plot-CXW6lF42.js} +4 -8
  92. package/dist/{vue-ui-horizontal-bar-BHFd966c.js → vue-ui-horizontal-bar-CideXtlg.js} +4 -4
  93. package/dist/{vue-ui-kpi-DyIqCISK.js → vue-ui-kpi-CE-JFZ1o.js} +1 -1
  94. package/dist/{vue-ui-molecule-BtQOQ32e.js → vue-ui-molecule-B1Prm5Lk.js} +1 -1
  95. package/dist/{vue-ui-mood-radar-CZSLnIMi.js → vue-ui-mood-radar-B29gVcTN.js} +1 -1
  96. package/dist/{vue-ui-nested-donuts-Lhteboo1.js → vue-ui-nested-donuts-Bsx5f9Gv.js} +97 -94
  97. package/dist/{vue-ui-onion-uCUgmyF1.js → vue-ui-onion-MN-PjNJq.js} +3 -3
  98. package/dist/{vue-ui-parallel-coordinate-plot-_u_VTAjF.js → vue-ui-parallel-coordinate-plot-C9zU7MP5.js} +91 -95
  99. package/dist/{vue-ui-quadrant-CgalDMyS.js → vue-ui-quadrant-h-QFG9O4.js} +3 -3
  100. package/dist/vue-ui-quick-chart-PAVz4c9z.js +2469 -0
  101. package/dist/{vue-ui-radar-64HPFASp.js → vue-ui-radar-D2pVd53z.js} +115 -112
  102. package/dist/{vue-ui-relation-circle-DT4So4-6.js → vue-ui-relation-circle-BjB0J53V.js} +1 -1
  103. package/dist/{vue-ui-ridgeline-5fZANTS9.js → vue-ui-ridgeline-DamvqiyJ.js} +3 -3
  104. package/dist/{vue-ui-rings-QFY794j3.js → vue-ui-rings-DkHS5dwd.js} +105 -102
  105. package/dist/{vue-ui-scatter-BPCY-u36.js → vue-ui-scatter-dFDowCVQ.js} +5 -5
  106. package/dist/{vue-ui-skeleton-Dj_ZVfSX.js → vue-ui-skeleton-zhkS1cmh.js} +1 -1
  107. package/dist/{vue-ui-spark-trend-DB0VHzm0.js → vue-ui-spark-trend-fQ10-UvM.js} +1 -1
  108. package/dist/{vue-ui-sparkbar-DVGRTFO5.js → vue-ui-sparkbar-D5toou8V.js} +1 -1
  109. package/dist/{vue-ui-sparkgauge-3UFZaDF9.js → vue-ui-sparkgauge-DRZcIPYf.js} +1 -1
  110. package/dist/{vue-ui-sparkhistogram-DRmBVef7.js → vue-ui-sparkhistogram-YizEqFdN.js} +1 -1
  111. package/dist/{vue-ui-sparkline-vsqKnakQ.js → vue-ui-sparkline-w2nclIW0.js} +1 -1
  112. package/dist/vue-ui-sparkstackbar-CTShNXhW.js +662 -0
  113. package/dist/{vue-ui-stackbar-9jP1s0MN.js → vue-ui-stackbar-BFLCEsRk.js} +404 -404
  114. package/dist/{vue-ui-stackline-D1o_afno.js → vue-ui-stackline-CU6s-hhv.js} +125 -125
  115. package/dist/{vue-ui-strip-plot-CogQ8VSl.js → vue-ui-strip-plot-ByaDLFSL.js} +1 -1
  116. package/dist/{vue-ui-table-Bub1v0eM.js → vue-ui-table-DuA_CfGn.js} +2 -2
  117. package/dist/{vue-ui-table-sparkline-BPts9wTR.js → vue-ui-table-sparkline-Dfei_QrJ.js} +1 -1
  118. package/dist/{vue-ui-thermometer-CJJ4cVt0.js → vue-ui-thermometer-biw3ivMI.js} +1 -1
  119. package/dist/{vue-ui-timer-BEPXWd20.js → vue-ui-timer-9LNNDl4q.js} +1 -1
  120. package/dist/{vue-ui-tiremarks-BC7bLLQD.js → vue-ui-tiremarks-kF0Baqia.js} +1 -1
  121. package/dist/{vue-ui-treemap-Cja-vZoa.js → vue-ui-treemap-BexKMBhz.js} +373 -373
  122. package/dist/{vue-ui-waffle-BRj-YBlz.js → vue-ui-waffle-Dq50j_uw.js} +1 -1
  123. package/dist/{vue-ui-wheel-AOTFpTWN.js → vue-ui-wheel-BETHlWsO.js} +1 -1
  124. package/dist/{vue-ui-word-cloud-dqfAdhW-.js → vue-ui-word-cloud-D1AQtzmT.js} +1 -1
  125. package/dist/{vue-ui-world-DqwsIYze.js → vue-ui-world-CcgbuSp_.js} +1 -1
  126. package/dist/vue-ui-xy-BQ1YONCq.js +4219 -0
  127. package/dist/{vue-ui-xy-canvas-B06Rit63.js → vue-ui-xy-canvas-4ABYnasj.js} +3 -3
  128. package/package.json +1 -1
  129. package/dist/vue-ui-quick-chart-BAWcSaDB.js +0 -2471
  130. package/dist/vue-ui-sparkstackbar-BNUhunuQ.js +0 -662
  131. package/dist/vue-ui-xy-Dhult6gR.js +0 -4181
@@ -0,0 +1,4219 @@
1
+ import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
2
+ import { At as t, B as n, D as r, F as i, G as a, H as o, I as s, It as c, J as l, L as u, Lt as ee, M as te, Mt as d, O as f, Ot as p, P as m, R as ne, Rt as re, S as ie, St as ae, T as oe, Tt as h, X as se, _t as ce, a as g, c as le, dt as _, et as v, g as ue, h as de, i as fe, j as pe, jt as me, k as he, l as ge, mt as _e, n as ve, nt as ye, pt as be, r as xe, s as Se, v as y, w as Ce, x as we, y as Te, z as Ee, zt as De } from "./lib-BkiwukKO.js";
3
+ import { n as Oe, r as ke, t as Ae } from "./useTimeLabels-C0x7zUXP.js";
4
+ import { t as je } from "./useConfig-ByaaSKhz.js";
5
+ import { t as Me } from "./usePrinter-X0yWOynH.js";
6
+ import { n as Ne, t as Pe } from "./BaseScanner-C7dmAref.js";
7
+ import { t as Fe } from "./useSvgExport-Dtu973wa.js";
8
+ import { t as Ie } from "./useNestedProp-Ck4hsrpu.js";
9
+ import { t as Le } from "./useThemeCheck-rFK9Zlb_.js";
10
+ import { t as Re } from "./useStableElementSize-0I1IpHPl.js";
11
+ import { t as ze } from "./useTimeLabelCollider-Dm55Emzg.js";
12
+ import { t as Be } from "./img-BjOr008R.js";
13
+ import { n as Ve } from "./Title-__gWq2g6.js";
14
+ import { t as He } from "./vue_ui_xy-BYPqfYyx.js";
15
+ import { t as Ue } from "./Shape-DEGOZ6GG.js";
16
+ import { t as We } from "./_plugin-vue_export-helper-Dq1MygBL.js";
17
+ import { t as Ge } from "./SlicerPreview-BU3ZeHjR.js";
18
+ import { t as Ke } from "./vue-ui-accordion-BX9WL-QF.js";
19
+ import { t as qe } from "./BaseLegendToggle-CJTwLGXL.js";
20
+ import { t as Je } from "./A11yDataTable-q2-8fSlJ.js";
21
+ import { Fragment as b, Teleport as Ye, computed as x, createBlock as Xe, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as Ze, createTextVNode as Qe, createVNode as $e, defineAsyncComponent as et, getCurrentInstance as tt, guardReactiveProps as T, mergeProps as nt, nextTick as rt, normalizeClass as it, normalizeProps as at, normalizeStyle as E, onBeforeUnmount as ot, onMounted as st, openBlock as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as ct, shallowRef as lt, toDisplayString as ut, toRefs as dt, unref as j, useSlots as ft, vModelCheckbox as pt, watch as mt, watchEffect as ht, withCtx as M, withDirectives as gt } from "vue";
22
+ //#region src/components/vue-ui-xy.vue
23
+ var _t = /* @__PURE__ */ e({ default: () => N }), vt = ["id"], yt = ["id"], bt = ["id"], xt = { style: { position: "relative" } }, St = [
24
+ "viewBox",
25
+ "aria-label",
26
+ "aria-describedby"
27
+ ], Ct = [
28
+ "x",
29
+ "y",
30
+ "width",
31
+ "height"
32
+ ], wt = { key: 1 }, Tt = { class: "vue-ui-xy-grid" }, Et = [
33
+ "stroke",
34
+ "x1",
35
+ "x2",
36
+ "y1",
37
+ "y2"
38
+ ], Dt = [
39
+ "stroke",
40
+ "x1",
41
+ "x2",
42
+ "y1",
43
+ "y2"
44
+ ], Ot = { key: 1 }, kt = [
45
+ "x1",
46
+ "x2",
47
+ "y1",
48
+ "y2",
49
+ "stroke"
50
+ ], At = [
51
+ "x1",
52
+ "x2",
53
+ "y1",
54
+ "y2",
55
+ "stroke"
56
+ ], jt = [
57
+ "x1",
58
+ "x2",
59
+ "y1",
60
+ "y2",
61
+ "stroke"
62
+ ], Mt = { key: 3 }, Nt = ["d", "stroke"], Pt = { key: 4 }, Ft = ["d", "stroke"], It = ["id"], Lt = ["stop-color"], Rt = ["stop-color"], zt = ["stop-color"], Bt = ["id"], Vt = ["stop-color"], Ht = ["stop-color"], Ut = ["stop-color"], Wt = ["id"], Gt = ["stop-color"], Kt = ["stop-color"], qt = ["id"], Jt = ["stop-color"], Yt = ["stop-color"], Xt = ["id"], Zt = ["stop-color"], Qt = ["stop-color"], $t = { key: 0 }, en = ["id"], tn = ["stop-color", "offset"], nn = [
63
+ "x",
64
+ "y",
65
+ "height",
66
+ "width",
67
+ "fill"
68
+ ], rn = [
69
+ "x",
70
+ "y",
71
+ "width"
72
+ ], an = { key: 0 }, on = [
73
+ "x",
74
+ "y",
75
+ "height",
76
+ "width",
77
+ "fill"
78
+ ], sn = [
79
+ "x",
80
+ "y",
81
+ "height",
82
+ "width",
83
+ "rx",
84
+ "fill",
85
+ "stroke",
86
+ "stroke-width"
87
+ ], cn = [
88
+ "x",
89
+ "y",
90
+ "height",
91
+ "width",
92
+ "rx",
93
+ "fill",
94
+ "stroke",
95
+ "stroke-width"
96
+ ], ln = [
97
+ "width",
98
+ "x",
99
+ "y"
100
+ ], un = [
101
+ "stroke",
102
+ "x1",
103
+ "x2",
104
+ "y1",
105
+ "y2"
106
+ ], dn = { key: 3 }, fn = [
107
+ "x1",
108
+ "x2",
109
+ "y1",
110
+ "y2",
111
+ "stroke",
112
+ "stroke-width",
113
+ "stroke-dasharray"
114
+ ], pn = [
115
+ "x",
116
+ "y",
117
+ "width",
118
+ "height",
119
+ "stroke",
120
+ "stroke-width",
121
+ "stroke-linecap",
122
+ "stroke-linejoin",
123
+ "stroke-dasharray"
124
+ ], mn = [
125
+ "x1",
126
+ "x2",
127
+ "y1",
128
+ "y2",
129
+ "stroke",
130
+ "stroke-width"
131
+ ], hn = [
132
+ "fill",
133
+ "font-size",
134
+ "transform"
135
+ ], gn = [
136
+ "x1",
137
+ "x2",
138
+ "y1",
139
+ "y2",
140
+ "stroke"
141
+ ], _n = [
142
+ "transform",
143
+ "text-anchor",
144
+ "font-size",
145
+ "fill"
146
+ ], vn = [
147
+ "x1",
148
+ "x2",
149
+ "y1",
150
+ "y2",
151
+ "stroke"
152
+ ], yn = [
153
+ "transform",
154
+ "font-size",
155
+ "text-anchor",
156
+ "fill"
157
+ ], bn = [
158
+ "width",
159
+ "x",
160
+ "y"
161
+ ], xn = { style: { width: "100%" } }, Sn = [
162
+ "d",
163
+ "stroke",
164
+ "stroke-width",
165
+ "stroke-dasharray"
166
+ ], Cn = [
167
+ "d",
168
+ "stroke",
169
+ "stroke-width",
170
+ "stroke-dasharray"
171
+ ], wn = { key: 6 }, Tn = { key: 7 }, En = [
172
+ "d",
173
+ "fill",
174
+ "fill-opacity"
175
+ ], Dn = { key: 0 }, On = ["d", "fill"], kn = ["d", "fill"], An = ["d", "fill"], jn = ["d", "fill"], Mn = [
176
+ "d",
177
+ "stroke",
178
+ "stroke-width",
179
+ "stroke-dasharray"
180
+ ], Nn = [
181
+ "d",
182
+ "stroke",
183
+ "stroke-width",
184
+ "stroke-dasharray"
185
+ ], Pn = [
186
+ "d",
187
+ "stroke",
188
+ "stroke-width",
189
+ "stroke-dasharray"
190
+ ], Fn = [
191
+ "d",
192
+ "stroke",
193
+ "stroke-width",
194
+ "stroke-dasharray"
195
+ ], In = [
196
+ "width",
197
+ "x",
198
+ "y"
199
+ ], Ln = { style: { width: "100%" } }, Rn = { key: 8 }, zn = [
200
+ "text-anchor",
201
+ "font-size",
202
+ "transform",
203
+ "fill",
204
+ "stroke",
205
+ "innerHTML"
206
+ ], Bn = [
207
+ "x",
208
+ "y",
209
+ "font-size",
210
+ "fill",
211
+ "font-weight"
212
+ ], Vn = { key: 9 }, Hn = [
213
+ "transform",
214
+ "text-anchor",
215
+ "font-size",
216
+ "fill",
217
+ "stroke",
218
+ "innerHTML"
219
+ ], Un = { key: 10 }, Wn = ["x", "y"], Gn = ["innerHTML"], Kn = ["x", "y"], qn = ["innerHTML"], Jn = [
220
+ "x1",
221
+ "x2",
222
+ "y1",
223
+ "y2",
224
+ "stroke"
225
+ ], Yn = { key: 11 }, Xn = [
226
+ "transform",
227
+ "text-anchor",
228
+ "font-size",
229
+ "fill",
230
+ "stroke",
231
+ "innerHTML"
232
+ ], Zn = { key: 12 }, Qn = ["x", "y"], $n = ["innerHTML"], er = ["x", "y"], tr = ["innerHTML"], nr = [
233
+ "x1",
234
+ "x2",
235
+ "y1",
236
+ "y2",
237
+ "stroke"
238
+ ], rr = [
239
+ "x",
240
+ "y",
241
+ "font-size",
242
+ "fill",
243
+ "innerHTML"
244
+ ], ir = [
245
+ "x",
246
+ "y",
247
+ "font-size",
248
+ "fill",
249
+ "innerHTML"
250
+ ], ar = [
251
+ "x",
252
+ "y",
253
+ "font-size",
254
+ "fill",
255
+ "innerHTML"
256
+ ], or = [
257
+ "x",
258
+ "y",
259
+ "font-size",
260
+ "fill",
261
+ "innerHTML"
262
+ ], sr = { key: 0 }, cr = ["id"], lr = ["fill", "stroke"], ur = [
263
+ "x1",
264
+ "x2",
265
+ "y1",
266
+ "y2",
267
+ "stroke",
268
+ "marker-end"
269
+ ], dr = [
270
+ "x1",
271
+ "x2",
272
+ "y1",
273
+ "y2",
274
+ "stroke",
275
+ "marker-end"
276
+ ], fr = [
277
+ "x",
278
+ "y",
279
+ "font-size",
280
+ "fill",
281
+ "stroke"
282
+ ], pr = [
283
+ "id",
284
+ "x1",
285
+ "x2"
286
+ ], mr = ["stop-color"], hr = ["stop-color"], gr = [
287
+ "x",
288
+ "y",
289
+ "width",
290
+ "height",
291
+ "fill",
292
+ "onMouseenter"
293
+ ], _r = [
294
+ "font-size",
295
+ "fill",
296
+ "transform"
297
+ ], vr = [
298
+ "x",
299
+ "y",
300
+ "font-size",
301
+ "fill"
302
+ ], yr = [
303
+ "text-anchor",
304
+ "font-size",
305
+ "fill",
306
+ "transform",
307
+ "onClick"
308
+ ], br = [
309
+ "text-anchor",
310
+ "font-size",
311
+ "fill",
312
+ "transform",
313
+ "innerHTML",
314
+ "onClick"
315
+ ], xr = { key: 15 }, Sr = [
316
+ "x1",
317
+ "y1",
318
+ "x2",
319
+ "y2",
320
+ "stroke",
321
+ "stroke-width",
322
+ "stroke-dasharray"
323
+ ], Cr = [
324
+ "x1",
325
+ "y1",
326
+ "x2",
327
+ "y2",
328
+ "stroke",
329
+ "stroke-width",
330
+ "stroke-dasharray"
331
+ ], wr = [
332
+ "y",
333
+ "x",
334
+ "width",
335
+ "height",
336
+ "fill"
337
+ ], Tr = [
338
+ "id",
339
+ "x",
340
+ "y",
341
+ "font-size",
342
+ "fill",
343
+ "text-anchor"
344
+ ], Er = {
345
+ key: 16,
346
+ style: { "pointer-events": "none" }
347
+ }, Dr = ["x", "y"], Or = ["innerHTML"], kr = [
348
+ "cx",
349
+ "cy",
350
+ "r",
351
+ "fill"
352
+ ], Ar = ["data-start", "data-end"], jr = {
353
+ key: 0,
354
+ style: {
355
+ position: "absolute",
356
+ top: "100%",
357
+ left: "0",
358
+ width: "100%"
359
+ },
360
+ "data-dom-to-png-ignore": "",
361
+ "aria-hidden": "true"
362
+ }, Mr = {
363
+ key: 5,
364
+ class: "vue-data-ui-watermark"
365
+ }, Nr = {
366
+ class: "vue-ui-xy-tag-arrow",
367
+ height: "20",
368
+ viewBox: "0 0 10 20",
369
+ style: {
370
+ position: "absolute",
371
+ right: "100%",
372
+ top: "50%",
373
+ transform: "translateY(-50%)"
374
+ }
375
+ }, Pr = ["fill"], Fr = ["innerHTML"], Ir = {
376
+ class: "vue-ui-xy-tag-arrow",
377
+ height: "100%",
378
+ viewBox: "0 0 10 20",
379
+ style: {
380
+ position: "absolute",
381
+ left: "100%",
382
+ top: "50%",
383
+ transform: "translateY(-50%)"
384
+ }
385
+ }, Lr = ["fill"], Rr = ["innerHTML"], zr = {
386
+ class: "vue-ui-xy-tag-arrow",
387
+ height: "20",
388
+ viewBox: "0 0 10 20",
389
+ style: {
390
+ position: "absolute",
391
+ right: "100%",
392
+ top: "50%",
393
+ transform: "translateY(-50%)"
394
+ }
395
+ }, Br = ["fill"], Vr = ["innerHTML"], Hr = {
396
+ class: "vue-ui-xy-tag-arrow",
397
+ height: "100%",
398
+ viewBox: "0 0 10 20",
399
+ style: {
400
+ position: "absolute",
401
+ left: "100%",
402
+ top: "50%",
403
+ transform: "translateY(-50%)"
404
+ }
405
+ }, Ur = ["fill"], Wr = ["innerHTML"], Gr = ["id"], Kr = ["onClick", "onKeydown"], qr = {
406
+ key: 0,
407
+ viewBox: "0 0 20 12",
408
+ height: "1em",
409
+ width: "1.43em",
410
+ "aria-hidden": "true"
411
+ }, Jr = ["stroke", "fill"], Yr = {
412
+ key: 1,
413
+ viewBox: "0 0 40 40",
414
+ height: "1em",
415
+ width: "1em",
416
+ "aria-hidden": "true"
417
+ }, Xr = ["fill"], Zr = ["fill"], Qr = {
418
+ key: 2,
419
+ viewBox: "0 0 12 12",
420
+ height: "1em",
421
+ width: "1em",
422
+ "aria-hidden": "true"
423
+ }, $r = {
424
+ style: {
425
+ display: "flex",
426
+ "flex-direction": "row",
427
+ gap: "6px",
428
+ "align-items": "center",
429
+ "padding-left": "6px"
430
+ },
431
+ "data-dom-to-png-ignore": ""
432
+ }, ei = ["innerHTML"], N = /* @__PURE__ */ We({
433
+ __name: "vue-ui-xy",
434
+ props: {
435
+ config: {
436
+ type: Object,
437
+ default() {
438
+ return {};
439
+ }
440
+ },
441
+ dataset: {
442
+ type: Array,
443
+ default() {
444
+ return [];
445
+ }
446
+ },
447
+ selectedXIndex: {
448
+ type: Number,
449
+ default: void 0
450
+ }
451
+ },
452
+ emits: [
453
+ "selectTimeLabel",
454
+ "selectX",
455
+ "selectLegend",
456
+ "zoomStart",
457
+ "zoomEnd",
458
+ "zoomReset",
459
+ "copyAlt"
460
+ ],
461
+ setup(e, { expose: We, emit: _t }) {
462
+ let N = e, ti = et(() => import("./DataTable-DmE8Oo4i.js")), ni = et(() => import("./Tooltip-CuWEYGr3.js")), ri = et(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), ii = et(() => import("./BaseIcon-DM1x8hQF.js").then((e) => e.n)), ai = et(() => import("./vue-ui-table-sparkline-Dfei_QrJ.js").then((e) => e.n)), oi = et(() => import("./PackageVersion-Dl9W5zJD.js").then((e) => e.t)), si = et(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), ci = et(() => import("./BaseDraggableDialog-DUUu2E2Q.js").then((e) => e.n)), li = _t, ui = ft(), di = tt(), { vue_ui_xy: fi } = je(), { isThemeValid: pi, warnInvalidTheme: mi } = Le(), hi = O(null), gi = O(null), _i = O(null), vi = O(null), yi = O(null), bi = O(null), xi = O(null), Si = O(null), Ci = O(null), wi = O(null), Ti = O(null), Ei = O(null), Di = O(null), Oi = O(null), ki = O(0), P = O(null), Ai = O(!0), ji = O(600), F = O(1e3), Mi = O("0 0 1000 600"), Ni = O({
463
+ x: 0,
464
+ y: 0
465
+ }), Pi = O({
466
+ line: "line",
467
+ bar: "bar",
468
+ plot: "plot"
469
+ }), Fi = O(!1), Ii = O(!1), Li = O(!1), Ri = O(null), I = O([]), L = O(o()), zi = O(0), Bi = O(0), Vi = O(0), Hi = O(!0), Ui = O(0), R = O(null), Wi = O(!1), Gi = O(!0), Ki = O(!0), z = O(null), qi = O({}), Ji = O(null), Yi = O(!1), Xi = O(null), Zi = O(!1), Qi = O(!1), B = O(null), $i = O(null), ea = O({
470
+ x: 0,
471
+ y: 0
472
+ }), ta = lt(null), na = O(!1), ra = O(0), ia = O(0), aa = Re({
473
+ elementRef: ta,
474
+ minimumWidth: 2,
475
+ minimumHeight: 2,
476
+ stableFramesRequired: 2,
477
+ once: !1,
478
+ onSizeAccepted: () => {
479
+ ca();
480
+ }
481
+ });
482
+ function oa() {
483
+ ta.value = hi.value?.parentNode ?? null;
484
+ }
485
+ function sa() {
486
+ return new Promise((e) => {
487
+ requestAnimationFrame(() => {
488
+ requestAnimationFrame(e);
489
+ });
490
+ });
491
+ }
492
+ async function ca() {
493
+ let e = ++ia.value;
494
+ na.value = !1, await rt(), await sa(), await sa(), e === ia.value && (ra.value += 1, na.value = !0);
495
+ }
496
+ let la = x(() => ({
497
+ height: ji.value,
498
+ width: F.value
499
+ }));
500
+ function ua(e) {
501
+ return Number.isFinite(e) ? Math.max(0, Math.floor(e)) : 0;
502
+ }
503
+ function da(e, t, n = 0) {
504
+ return Number.isFinite(e) && Number.isFinite(t) && Math.abs(t) > 1e-9 ? e / t : n;
505
+ }
506
+ let fa = O(!1), pa = O(null), ma = O(null), V = O({
507
+ xAxis: 18,
508
+ yAxis: 12,
509
+ dataLabels: 20,
510
+ plotLabels: 10
511
+ }), ha = O({
512
+ plot: 3,
513
+ line: 3
514
+ });
515
+ st(() => {
516
+ Yi.value = !0, N.dataset.length && N.dataset.forEach((e, t) => {
517
+ [null, void 0].includes(e.series) && se({
518
+ componentName: "VueUiXy",
519
+ type: "datasetSerieAttribute",
520
+ property: "series (number[])",
521
+ index: t,
522
+ debug: xa.value
523
+ });
524
+ }), oa(), aa.start(), ca();
525
+ });
526
+ function ga() {
527
+ if (!Object.keys(N.config || {}).length) return fi;
528
+ let e = Ie({
529
+ userConfig: N.config,
530
+ defaultConfig: fi
531
+ });
532
+ N.config && _(N.config, "chart.highlightArea") && (Array.isArray(N.config.chart.highlightArea) ? e.chart.highlightArea = N.config.chart.highlightArea : e.chart.highlightArea = [N.config.chart.highlightArea]), N.config && _(N.config, "chart.annotations") && Array.isArray(N.config.chart.annotations) && N.config.chart.annotations.length ? e.chart.annotations = N.config.chart.annotations.map((e) => Ie({
533
+ defaultConfig: fi.chart.annotations[0],
534
+ userConfig: e
535
+ })) : e.chart.annotations = [], N.config && _(N.config, "chart.grid.position") && N.config.chart.grid.position === "start" && N.dataset.length && N.dataset.some((e) => e.type === "bar") && (e.chart.grid.position = "middle", _(N.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), N.config && _(N.config, "chart.highlightArea") && (Array.isArray(N.config.chart.highlightArea) ? e.chart.highlightArea = N.config.chart.highlightArea.map((e) => _a({
536
+ defaultConfig: fi.chart.highlightArea,
537
+ userConfig: e
538
+ })) : e.chart.highlightArea = _a({
539
+ defaultConfig: fi.chart.highlightArea,
540
+ userConfig: N.config.chart.highlightArea
541
+ }));
542
+ let t = e.theme;
543
+ if (!t) return e;
544
+ if (!pi.value(e)) return mi(e), e;
545
+ let n = Ie({
546
+ userConfig: He[t] || N.config,
547
+ defaultConfig: e
548
+ }), r = Ie({
549
+ userConfig: N.config,
550
+ defaultConfig: n
551
+ });
552
+ return {
553
+ ...r,
554
+ customPalette: r.customPalette.length ? r.customPalette : ee[t] || h
555
+ };
556
+ }
557
+ function _a({ defaultConfig: e, userConfig: t }) {
558
+ return Ie({
559
+ defaultConfig: e,
560
+ userConfig: t
561
+ });
562
+ }
563
+ let va = x({
564
+ get() {
565
+ return !!N.dataset && N.dataset.length;
566
+ },
567
+ set(e) {
568
+ return e;
569
+ }
570
+ }), H = O(ga()), ya = x(() => H.value.chart.userOptions.useCursorPointer), U = O({
571
+ dataLabels: { show: !0 },
572
+ showTooltip: !0,
573
+ showTable: !1,
574
+ isStacked: !1,
575
+ useIndividualScale: !1
576
+ });
577
+ function ba() {
578
+ let e = H.value.chart.grid.labels.yAxis.stacked, t = H.value.chart.grid.labels.yAxis.useIndividualScale;
579
+ if (!fa.value) {
580
+ U.value = {
581
+ dataLabels: { show: !0 },
582
+ showTooltip: H.value.chart.tooltip.show === !0,
583
+ showTable: H.value.showTable === !0,
584
+ isStacked: e,
585
+ useIndividualScale: t
586
+ }, pa.value = e, ma.value = t, fa.value = !0;
587
+ return;
588
+ }
589
+ U.value.showTooltip = H.value.chart.tooltip.show === !0, e !== pa.value && (U.value.isStacked = e, pa.value = e), t !== ma.value && (U.value.useIndividualScale = t, ma.value = t), U.value.isStacked && (U.value.useIndividualScale = !0);
590
+ }
591
+ let xa = x(() => !!H.value.debug), Sa = x(() => De({
592
+ defaultConfig: {
593
+ useCssAnimation: !1,
594
+ showTable: !1,
595
+ chart: {
596
+ annotations: [],
597
+ highlightArea: [],
598
+ backgroundColor: "#99999930",
599
+ grid: {
600
+ stroke: "#6A6A6A",
601
+ labels: {
602
+ show: !1,
603
+ axis: {
604
+ yLabel: "",
605
+ xLabel: ""
606
+ },
607
+ xAxisLabels: { show: !1 },
608
+ yAxis: {
609
+ commonScaleSteps: 10,
610
+ useNiceScale: !0,
611
+ scaleMin: 0,
612
+ scaleMax: 134
613
+ },
614
+ zeroLine: { show: !0 }
615
+ }
616
+ },
617
+ padding: {
618
+ top: 12,
619
+ bottom: 24,
620
+ left: 24,
621
+ right: 24
622
+ },
623
+ userOptions: { show: !1 },
624
+ zoom: {
625
+ show: !1,
626
+ startIndex: null,
627
+ endIndex: null
628
+ }
629
+ },
630
+ bar: {
631
+ serieName: { show: !1 },
632
+ labels: { show: !1 },
633
+ border: {
634
+ useSerieColor: !1,
635
+ stroke: "#999999"
636
+ }
637
+ },
638
+ line: {
639
+ dot: {
640
+ useSerieColor: !1,
641
+ fill: "#8A8A8A"
642
+ },
643
+ labels: { show: !1 }
644
+ }
645
+ },
646
+ userConfig: H.value.skeletonConfig ?? {}
647
+ })), Ca = x(() => N.config?.skeletonDataset ?? [{
648
+ name: "",
649
+ series: [
650
+ 0,
651
+ 1,
652
+ 2,
653
+ 3,
654
+ 5,
655
+ 8,
656
+ 13,
657
+ 21,
658
+ 34,
659
+ 55,
660
+ 89,
661
+ 134
662
+ ],
663
+ type: "line",
664
+ smooth: !0,
665
+ color: "#BABABA"
666
+ }, {
667
+ name: "",
668
+ series: [
669
+ 0,
670
+ .5,
671
+ 1,
672
+ 1.5,
673
+ 2.5,
674
+ 4,
675
+ 6.5,
676
+ 10.5,
677
+ 17,
678
+ 27.5,
679
+ 44.5,
680
+ 67
681
+ ],
682
+ type: "bar",
683
+ color: "#CACACA"
684
+ }]), { loading: wa, FINAL_DATASET: W, manualLoading: Ta } = Ne({
685
+ ...dt(N),
686
+ FINAL_CONFIG: H,
687
+ prepareConfig: ga,
688
+ callback: () => {
689
+ Promise.resolve().then(async () => {
690
+ (!H.value.chart.zoom.keepState || !ko.value || K.value.start === 0 && K.value.end === 0) && await No(), U.value.showTable = H.value.showTable;
691
+ });
692
+ },
693
+ skeletonDataset: Ca.value,
694
+ skeletonConfig: De({
695
+ defaultConfig: H.value,
696
+ userConfig: Sa.value
697
+ })
698
+ });
699
+ function Ea(e) {
700
+ let t = /* @__PURE__ */ new WeakMap();
701
+ return (n, ...r) => {
702
+ let i = t.get(n), a = JSON.stringify(r);
703
+ if (i && i.has(a)) return i.get(a);
704
+ let o = e(n, ...r);
705
+ return i || (i = /* @__PURE__ */ new Map(), t.set(n, i)), i.set(a, o), o;
706
+ };
707
+ }
708
+ let Da = Ea((e, t) => ce({
709
+ data: e,
710
+ threshold: t
711
+ })), Oa = (e) => Da(e, H.value.downsample.threshold), G = x({
712
+ get: () => Math.max(...W.value.map((e) => Oa(e.series).length)),
713
+ set: (e) => e
714
+ }), K = O({
715
+ start: 0,
716
+ end: G.value
717
+ }), ka = O({
718
+ start: 0,
719
+ end: G.value
720
+ }), Aa = x(() => H.value.chart.zoom.preview.enable && (ka.value.start !== K.value.start || ka.value.end !== K.value.end));
721
+ function ja(e, t) {
722
+ ka.value[e] = t;
723
+ }
724
+ function Ma() {
725
+ let e = Math.max(1, ...W.value.map((e) => Oa(e.series).length)), t = Math.max(0, Math.min(K.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(K.value.end ?? e, e));
726
+ (!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), K.value = {
727
+ start: t,
728
+ end: n
729
+ }, ka.value.start = t, ka.value.end = n, _i.value && (_i.value.setStartValue(t), _i.value.setEndValue(n));
730
+ }
731
+ let Na = x(() => {
732
+ let { left: e, top: t, width: n, height: r } = Y.value, i = K.value.start, a = K.value.end - i, o = n / a, s = ka.value.start - i, c = ka.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
733
+ return {
734
+ x: e + l * o,
735
+ y: t,
736
+ width: (u - l) * o,
737
+ height: r,
738
+ fill: H.value.chart.zoom.preview.fill,
739
+ stroke: H.value.chart.zoom.preview.stroke,
740
+ "stroke-width": H.value.chart.zoom.preview.strokeWidth,
741
+ "stroke-dasharray": H.value.chart.zoom.preview.strokeDasharray,
742
+ "stroke-linecap": "round",
743
+ "stroke-linejoin": "round",
744
+ style: {
745
+ pointerEvents: "none",
746
+ transition: "none !important",
747
+ animation: "none !important"
748
+ }
749
+ };
750
+ });
751
+ mt(() => N.selectedXIndex, (e) => {
752
+ if ([null, void 0].includes(N.selectedXIndex)) {
753
+ B.value = null;
754
+ return;
755
+ }
756
+ let t = e - K.value.start;
757
+ t < 0 || e >= K.value.end ? B.value = null : B.value = t ?? null;
758
+ }, { immediate: !0 });
759
+ let { isPrinting: Pa, isImaging: Fa, generatePdf: Ia, generateImage: La } = Me({
760
+ elementId: `vue-ui-xy_${L.value}`,
761
+ fileName: H.value.chart.title.text || "vue-ui-xy",
762
+ options: H.value.chart.userOptions.print
763
+ }), Ra = O(!1), za = x(() => we(H.value.customPalette)), Ba = x(() => {
764
+ let e = H.value.chart.grid.labels.yAxis.scaleMin;
765
+ if (e == null) return null;
766
+ let t = Number(e);
767
+ return Number.isFinite(t) ? t : null;
768
+ }), Va = x(() => Ba.value === null ? Vo.value : Y.value.bottom), Ha = x(() => {
769
+ let e = H.value.chart.grid.labels.yAxis.scaleMax;
770
+ if (e == null) return null;
771
+ let t = Number(e);
772
+ return Number.isFinite(t) ? t : null;
773
+ }), Ua = x(() => Ba.value !== null || Ha.value !== null), Wa = x(() => {
774
+ let e = Ya.value.filter((e) => !I.value.includes(e.id)).flatMap((e) => Array.isArray(e.series) ? e.series : []).filter(Number.isFinite);
775
+ return e.length ? {
776
+ min: Math.min(...e),
777
+ max: Math.max(...e)
778
+ } : {
779
+ min: 0,
780
+ max: 1
781
+ };
782
+ });
783
+ function Ga(e, t) {
784
+ let n = Number.isFinite(e) ? e : 0, r = Number.isFinite(t) ? t : 1;
785
+ return n === r ? r = n + 1 : n > r && ([n, r] = [r, n]), {
786
+ min: n,
787
+ max: r
788
+ };
789
+ }
790
+ let Ka = x(() => {
791
+ let { min: e, max: t } = Wa.value;
792
+ if (!Ua.value) {
793
+ let t = e;
794
+ return t > 0 ? 0 : t;
795
+ }
796
+ let n = Ba.value === null ? e > 0 ? 0 : e : Ba.value, r = Ha.value === null ? t : Ha.value;
797
+ return Ga(e < n ? e : n, t > r ? t : r).min;
798
+ }), qa = x(() => {
799
+ let { min: e, max: t } = Wa.value;
800
+ if (!Ua.value) {
801
+ let e = t;
802
+ return Ka.value === e ? e + 1 : e;
803
+ }
804
+ let n = Ba.value === null ? e > 0 ? 0 : e : Ba.value, r = Ha.value === null ? t : Ha.value;
805
+ return Ga(e < n ? e : n, t > r ? t : r).max;
806
+ }), q = x(() => H.value.chart.grid.labels.yAxis.useNiceScale ? de(Ka.value, qa.value < 0 ? 0 : qa.value, H.value.chart.grid.labels.yAxis.commonScaleSteps) : ue(Ka.value, qa.value < 0 ? 0 : qa.value, H.value.chart.grid.labels.yAxis.commonScaleSteps)), Ja = x(() => [null, void 0].includes(H.value.chart.grid.labels.yAxis.scaleMin) ? q.value.min >= 0 ? 0 : Math.abs(q.value.min) : -q.value.min), Ya = x(() => Ai.value ? W.value.map((e, t) => {
807
+ let n = Oa(e.series), r = `uniqueId_${t}`;
808
+ return {
809
+ ...e,
810
+ slotAbsoluteIndex: t,
811
+ series: n.map((e) => _e(e) ? e : null).slice(K.value.start, K.value.end),
812
+ color: Te(e.color ? e.color : za.value[t] ? za.value[t] : h[t]),
813
+ id: r,
814
+ scaleLabel: e.scaleLabel || r
815
+ };
816
+ }) : W.value), Xa = x(() => Ya.value.map((e, t) => ({
817
+ absoluteIndex: t,
818
+ ...e,
819
+ series: e.series.map((e) => e + Ja.value),
820
+ absoluteValues: e.series,
821
+ segregate: () => ls(e),
822
+ isSegregated: I.value.includes(e.id)
823
+ }))), Za = x(() => Ya.value.map((e, t) => ({
824
+ ...e,
825
+ series: e.series.map((e) => e + Ja.value),
826
+ absoluteValues: e.series
827
+ })).filter((e) => !I.value.includes(e.id))), Qa = x(() => I.value.length === Xa.value.length), J = x(() => H.value.chart.grid.labels.yAxis.position === "right");
828
+ function $a() {
829
+ let e = 0;
830
+ Ti.value && (e = Array.from(Ti.value.querySelectorAll("text")).reduce((e, t) => {
831
+ let n = t.getComputedTextLength();
832
+ return n > e ? n : e;
833
+ }, 0));
834
+ let t = Ci.value ? Ci.value.getBoundingClientRect().width + H.value.chart.grid.labels.axis.yLabelOffsetX + V.value.yAxis : 0, n = e + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + H.value.chart.grid.labels.yAxis.crosshairSize;
835
+ return {
836
+ left: J.value ? 0 : n + t,
837
+ right: J.value ? n + t : 0,
838
+ scaleLabelsOffset: n,
839
+ yAxisLabelWidth: t
840
+ };
841
+ }
842
+ let eo = O(0), to = O(0);
843
+ function no() {
844
+ let e = wi.value;
845
+ if (!e) {
846
+ eo.value = 0, to.value = 0;
847
+ return;
848
+ }
849
+ try {
850
+ let t = e.getBBox();
851
+ eo.value = t?.height ?? 0, to.value = t?.x ?? 0;
852
+ } catch {
853
+ eo.value = 0, to.value = 0;
854
+ }
855
+ }
856
+ let ro = x(() => {
857
+ let e = 0;
858
+ if (Si.value) try {
859
+ e = Si.value.getBBox().height || 0;
860
+ } catch {
861
+ e = 0;
862
+ }
863
+ return e + eo.value + V.value.xAxis;
864
+ }), io = x(() => W.value.some((e) => e.useProgression));
865
+ function ao() {
866
+ return H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + H.value.chart.grid.labels.yAxis.labelWidth + H.value.chart.grid.labels.axis.yLabelOffsetX + V.value.dataLabels * .8;
867
+ }
868
+ let Y = x(() => {
869
+ ra.value;
870
+ let e = 0, t = 0, n = 0, r = 0;
871
+ if (H.value.chart.grid.labels.show) if (U.value.useIndividualScale && !U.value.isStacked) J.value ? t = (W.value.length - I.value.length) * ao() : e = (W.value.length - I.value.length) * (H.value.chart.grid.labels.yAxis.labelWidth + 36);
872
+ else if (U.value.useIndividualScale && U.value.isStacked) {
873
+ let n = H.value.chart.grid.labels.yAxis.labelWidth + 36;
874
+ J.value ? t = n : e = n;
875
+ } else {
876
+ let i = $a();
877
+ e = i.left, t = i.right, n = i.scaleLabelsOffset, r = i.yAxisLabelWidth;
878
+ }
879
+ let i = H.value.chart.labels.fontSize * 1.1, a = io.value ? 24 : 6;
880
+ wi.value && to.value < 0 && (e += Math.abs(to.value));
881
+ let o = F.value - e - t - a - H.value.chart.padding?.left - H.value.chart.padding?.right;
882
+ return {
883
+ top: H.value.chart.padding?.top + i,
884
+ right: e + (J.value ? 0 : H.value.chart.grid.labels.yAxis.crosshairSize) + H.value.chart.padding?.left + o,
885
+ bottom: ji.value - ro.value - H.value.chart.padding?.bottom - H.value.chart.grid.labels.axis.xLabelOffsetY,
886
+ left: e + (J.value ? 0 : H.value.chart.grid.labels.yAxis.crosshairSize) + H.value.chart.padding?.left,
887
+ height: ji.value - ro.value - H.value.chart.padding?.top - H.value.chart.padding?.bottom - i - H.value.chart.grid.labels.axis.xLabelOffsetY,
888
+ width: o,
889
+ scaleLabelX: e,
890
+ rightScaleLabelX: t,
891
+ scaleLabelsOffset: n,
892
+ yAxisLabelWidth: r,
893
+ individualOffsetX: 36
894
+ };
895
+ }), oo = x(() => {
896
+ let e = +(H.value.chart.grid.position === "middle"), t = Z.value + e, n = v(Y.value?.top), r = v(Y.value?.bottom);
897
+ return Array.from({ length: t }).map((e, t) => {
898
+ let i = H.value.chart.grid.position === "middle" ? Cs(t) : Ss(t);
899
+ return `M${i},${n} L${i},${r}`;
900
+ }).join(" ");
901
+ }), so = x(() => {
902
+ if (!H.value.chart.grid.labels.xAxis.showCrosshairs) return "";
903
+ xs.value;
904
+ let e = H.value.chart.grid.labels.xAxis.crosshairSize, t = H.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
905
+ return bo.value.map((n, r) => {
906
+ if (!n || !n.text) return null;
907
+ let i = Ss(r);
908
+ return `M${i},${t ? Vo.value - (Vo.value === Y.value?.bottom ? 0 : e / 2) : Y.value?.bottom} L${i},${t ? Vo.value + e / (Vo.value === Y.value?.bottom ? 1 : 2) : Y.value?.bottom + e}`;
909
+ }).filter(Boolean).join(" ");
910
+ });
911
+ function co() {
912
+ return !!di?.vnode.props?.onSelectTimeLabel;
913
+ }
914
+ function lo(e, t, n) {
915
+ return Ji.value ||= document.createElement("canvas").getContext("2d"), Ji.value.font = `${n || "normal"} ${e}px ${t || "sans-serif"}`, Ji.value;
916
+ }
917
+ function uo() {
918
+ let e = hi.value.querySelectorAll(".vue-ui-xy-tag");
919
+ e.length && Array.from(e).forEach((e) => e.style.opacity = "0");
920
+ }
921
+ function fo(e, t, n, r, i) {
922
+ n && (qi.value[`${e}_${t}_${r}_${i}`] = n);
923
+ }
924
+ let po = O(!1);
925
+ async function mo(e = !1) {
926
+ await rt(), po.value = e, Wi.value && (Ki.value = e);
927
+ }
928
+ function ho() {
929
+ Fi.value = !Fi.value;
930
+ }
931
+ let X = O([]), go = O([]), _o = 0;
932
+ ht(() => {
933
+ let e = ++_o;
934
+ (async () => {
935
+ let t = Math.max(...W.value.map((e) => ce({
936
+ data: e.series,
937
+ threshold: H.value.downsample.threshold
938
+ }).length)), n = await Ae({
939
+ values: H.value.chart.grid.labels.xAxisLabels.values,
940
+ maxDatapoints: t,
941
+ formatter: H.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
942
+ start: K.value.start,
943
+ end: K.value.end
944
+ });
945
+ e === _o && (X.value = n);
946
+ })();
947
+ });
948
+ let vo = 0;
949
+ ht(() => {
950
+ let e = ++vo;
951
+ (async () => {
952
+ let t = Math.max(...W.value.map((e) => ce({
953
+ data: e.series,
954
+ threshold: H.value.downsample.threshold
955
+ }).length)), n = await Ae({
956
+ values: H.value.chart.grid.labels.xAxisLabels.values,
957
+ maxDatapoints: t,
958
+ formatter: H.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
959
+ start: 0,
960
+ end: G.value
961
+ });
962
+ e === vo && (go.value = n);
963
+ })();
964
+ });
965
+ let yo = x(() => {
966
+ let e = H.value.chart.grid.labels.xAxisLabels.modulo;
967
+ return X.value.length ? Math.min(e, [...new Set(X.value.map((e) => e.text))].length) : e;
968
+ }), bo = x(() => {
969
+ let e = H.value.chart.grid.labels.xAxisLabels, t = X.value || [], n = go.value || [], r = K.value.start ?? 0, i = B.value, a = Z.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
970
+ return Se(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, yo.value || 1), o, s, r, i, a);
971
+ }), xo = x(() => (bo.value || []).map((e) => e?.text ?? "").join("|"));
972
+ st(() => {
973
+ requestAnimationFrame(() => {
974
+ no();
975
+ }), mt([
976
+ () => xo.value,
977
+ () => H.value.chart.grid.labels.xAxisLabels.rotation,
978
+ () => V.value.xAxis,
979
+ () => F.value,
980
+ () => ji.value
981
+ ], async () => {
982
+ await rt(), requestAnimationFrame(() => {
983
+ no();
984
+ });
985
+ }, { flush: "post" });
986
+ }), ot(() => {
987
+ eo.value = 0, to.value = 0, aa.stop();
988
+ });
989
+ function So(e, t) {
990
+ li("selectTimeLabel", {
991
+ datapoint: Za.value.map((e) => ({
992
+ shape: e.shape ?? e.type === "bar" ? "square" : "circle",
993
+ name: e.name,
994
+ color: e.color,
995
+ type: e.type,
996
+ value: e.absoluteValues.find((e, n) => n === t),
997
+ comments: e.comments || [],
998
+ prefix: e.prefix || H.value.chart.labels.prefix,
999
+ suffix: e.suffix || H.value.chart.labels.suffix
1000
+ })),
1001
+ absoluteIndex: e.absoluteIndex,
1002
+ label: e.text
1003
+ });
1004
+ }
1005
+ let Z = x(() => {
1006
+ let e = ua((K.value.end ?? 0) - (K.value.start ?? 0));
1007
+ return Math.max(1, e);
1008
+ });
1009
+ function Co(e) {
1010
+ R.value = e;
1011
+ }
1012
+ function wo() {
1013
+ U.value.isStacked = !U.value.isStacked, U.value.isStacked ? U.value.useIndividualScale = !0 : U.value.useIndividualScale = H.value.chart.grid.labels.yAxis.useIndividualScale;
1014
+ }
1015
+ function To(e) {
1016
+ xa.value && e.autoScaling && (H.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), H.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${e.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
1017
+ }
1018
+ function Eo(e, t) {
1019
+ let n = ua(e), r = Array(n).fill(0);
1020
+ for (let e = 0; e < t.length && e < n; e += 1) r[e] = t[e] ?? 0;
1021
+ return r;
1022
+ }
1023
+ function Do(e) {
1024
+ let t = Math.max(...W.value.map((e) => Oa(e.series).length));
1025
+ return e > t ? t : e < 0 || H.value.chart.zoom.startIndex !== null && e < H.value.chart.zoom.startIndex ? H.value.chart.zoom.startIndex === null ? 1 : H.value.chart.zoom.startIndex + 1 : e;
1026
+ }
1027
+ let Oo = O(!1), ko = O(!1), Ao = O(0), jo = O(0);
1028
+ function Mo(e, t) {
1029
+ let n = Number(e), r = Number(t);
1030
+ return !Number.isFinite(n) || !Number.isFinite(r) ? !1 : !Object.is(n, r);
1031
+ }
1032
+ function No() {
1033
+ if (!Oo.value) {
1034
+ Oo.value = !0;
1035
+ try {
1036
+ let { startIndex: e, endIndex: t } = H.value.chart.zoom, n = H.value.chart.zoom.keepState ? Math.max(0, ...W.value.map((e) => Oa(e.series).length)) : Math.max(...W.value.map((e) => Oa(e.series).length));
1037
+ if (H.value.chart.zoom.keepState && n <= 0) return;
1038
+ Ao.value = 0, jo.value = n;
1039
+ let r = e ?? 0, i = t == null ? n : Math.min(Do(t + 1), n);
1040
+ Po.value = !0, K.value.start = r, K.value.end = i, ka.value.start = r, ka.value.end = i, Ma(), ko.value = !0;
1041
+ } finally {
1042
+ queueMicrotask(() => {
1043
+ Po.value = !1;
1044
+ }), Oo.value = !1;
1045
+ }
1046
+ }
1047
+ }
1048
+ let Po = O(!1);
1049
+ function Fo(e) {
1050
+ if (Oo.value || Po.value) return;
1051
+ let t = Number(e);
1052
+ li("zoomStart", {
1053
+ index: t,
1054
+ isZoom: Mo(t, Ao.value)
1055
+ }), Number.isFinite(t) && t !== K.value.start && (K.value.start = t, ka.value.start = t, Ma());
1056
+ }
1057
+ function Io(e) {
1058
+ if (Oo.value || Po.value) return;
1059
+ let t = Do(e);
1060
+ li("zoomEnd", {
1061
+ index: t,
1062
+ isZoom: Mo(t, jo.value)
1063
+ }), t !== K.value.end && (K.value.end = t, ka.value.end = t, Ma());
1064
+ }
1065
+ async function Lo() {
1066
+ await No(), li("zoomReset");
1067
+ }
1068
+ function Ro(e) {
1069
+ return ![
1070
+ null,
1071
+ void 0,
1072
+ NaN,
1073
+ Infinity,
1074
+ -Infinity
1075
+ ].includes(e);
1076
+ }
1077
+ let zo = x(() => q.value.max + Ja.value);
1078
+ function Bo(e) {
1079
+ return e / (Ro(zo.value) ? zo.value : 1);
1080
+ }
1081
+ let Vo = x(() => isNaN(Bo(Ja.value)) ? Y.value?.bottom : Y.value?.bottom - Y.value.height * Bo(Ja.value));
1082
+ function Ho(e) {
1083
+ let t = q.value.min, n = q.value.max - t;
1084
+ return !Number.isFinite(e) || !Number.isFinite(n) || n === 0 ? Y.value?.bottom : Y.value?.bottom - Y.value.height * ((e - t) / n);
1085
+ }
1086
+ let Uo = x(() => q.value.min <= 0 && q.value.max >= 0 ? Ho(0) : q.value.min > 0 ? Ho(q.value.min) : Ho(q.value.max));
1087
+ function Wo(e) {
1088
+ let t = ![null, void 0].includes(H.value.chart.grid.labels.yAxis.scaleMin) && H.value.chart.grid.labels.yAxis.scaleMin > 0 && Ka.value >= 0 ? Y.value?.bottom : Vo.value;
1089
+ return e.value >= 0 ? y(t - e.y <= 0 ? 1e-5 : t - e.y) : y(e.y - Vo.value <= 0 ? 1e-5 : e.y - Vo.value);
1090
+ }
1091
+ function Go(e) {
1092
+ return e.value >= 0 ? y(e.zeroPosition - e.y <= 0 ? 1e-5 : e.zeroPosition - e.y) : y(e.y - e.zeroPosition <= 0 ? 1e-5 : e.zeroPosition - e.y);
1093
+ }
1094
+ let Ko = x(() => {
1095
+ let e = Math.max(1, Z.value);
1096
+ return {
1097
+ bar: da(Math.max(1, Y.value.width), e * Math.max(1, Ya.value.filter((e) => e.type === "bar" && !I.value.includes(e.id)).length), 1),
1098
+ plot: bs.value,
1099
+ line: bs.value
1100
+ };
1101
+ });
1102
+ function qo() {
1103
+ return U.value.useIndividualScale && U.value.isStacked ? Ko.value.line - Y.value.width / Z.value * .1 : Ko.value.bar;
1104
+ }
1105
+ function Jo(e) {
1106
+ return U.value.useIndividualScale && U.value.isStacked ? e.x + Y.value.width / Z.value * .05 : e.x + Ko.value.bar / 2;
1107
+ }
1108
+ function Yo(e) {
1109
+ return e.value >= 0 ? e.y : [
1110
+ null,
1111
+ void 0,
1112
+ NaN,
1113
+ Infinity,
1114
+ -Infinity
1115
+ ].includes(Vo.value) ? Y?.bottom.value : Vo.value;
1116
+ }
1117
+ function Xo(e) {
1118
+ return e.value >= 0 ? e.y : [
1119
+ null,
1120
+ void 0,
1121
+ NaN,
1122
+ Infinity,
1123
+ -Infinity
1124
+ ].includes(e.zeroPosition) ? 0 : e.zeroPosition;
1125
+ }
1126
+ let Zo = O(null);
1127
+ function Qo(e) {
1128
+ let t = z.value;
1129
+ if (!t) return null;
1130
+ if (t.createSVGPoint && t.getScreenCTM) {
1131
+ let n = t.createSVGPoint();
1132
+ n.x = e.clientX, n.y = e.clientY;
1133
+ let r = t.getScreenCTM();
1134
+ if (r) {
1135
+ let e = n.matrixTransform(r.inverse());
1136
+ return {
1137
+ x: e.x,
1138
+ y: e.y,
1139
+ ok: !0
1140
+ };
1141
+ }
1142
+ }
1143
+ let n = t.getBoundingClientRect(), r = t.viewBox?.baseVal || {
1144
+ x: 0,
1145
+ y: 0,
1146
+ width: n.width,
1147
+ height: n.height
1148
+ }, i = Math.min(n.width / r.width, n.height / r.height), a = r.width * i, o = r.height * i, s = (n.width - a) / 2, c = (n.height - o) / 2;
1149
+ return {
1150
+ x: (e.clientX - n?.left - s) / i + r.x,
1151
+ y: (e.clientY - n?.top - c) / i + r.y,
1152
+ ok: !0
1153
+ };
1154
+ }
1155
+ let $o = 0;
1156
+ function es(e) {
1157
+ $i.value = null, !Fi.value && ($o && cancelAnimationFrame($o), $o = requestAnimationFrame(() => {
1158
+ $o = 0;
1159
+ let t = Qo(e);
1160
+ if (!t || !z.value) {
1161
+ ts();
1162
+ return;
1163
+ }
1164
+ let { left: n, right: r, top: i, bottom: a, width: o } = Y.value;
1165
+ if (t.x < n || t.x > r || t.y < i || t.y > a) {
1166
+ ts();
1167
+ return;
1168
+ }
1169
+ let s = Es(t.x);
1170
+ s == null ? ts() : Zo.value !== s && (Zo.value = s, tc(!0, s));
1171
+ }));
1172
+ }
1173
+ function ts() {
1174
+ $o &&= (cancelAnimationFrame($o), 0), Zo.value = null, tc(!1, null);
1175
+ }
1176
+ function ns(e) {
1177
+ let t = Qo(e);
1178
+ if (t && z.value) {
1179
+ let { left: e, right: n, top: r, bottom: i, width: a } = Y.value;
1180
+ if (t.x >= e && t.x <= n && t.y >= r && t.y <= i) {
1181
+ let e = Es(t.x);
1182
+ if (e != null) {
1183
+ rs(e);
1184
+ return;
1185
+ }
1186
+ }
1187
+ }
1188
+ Zo.value != null && rs(Zo.value);
1189
+ }
1190
+ function rs(e) {
1191
+ let t = Za.value.map((t) => ({
1192
+ name: t.name,
1193
+ value: [
1194
+ null,
1195
+ void 0,
1196
+ NaN
1197
+ ].includes(t.absoluteValues[e]) ? null : t.absoluteValues[e],
1198
+ color: t.color,
1199
+ type: t.type
1200
+ }));
1201
+ li("selectX", {
1202
+ dataset: t,
1203
+ index: e,
1204
+ indexLabel: H.value.chart.grid.labels.xAxisLabels.values[e]
1205
+ }), H.value.events.datapointClick && H.value.events.datapointClick({
1206
+ datapoint: t,
1207
+ seriesIndex: e + K.value.start
1208
+ });
1209
+ }
1210
+ function is() {
1211
+ return Xa.value.map((e) => ({
1212
+ values: e.absoluteValues,
1213
+ color: e.color,
1214
+ name: e.name,
1215
+ type: e.type
1216
+ }));
1217
+ }
1218
+ async function as({ scale: e = 2 } = {}) {
1219
+ if (!hi.value) return;
1220
+ let { width: t, height: n } = hi.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await Be({
1221
+ domElement: hi.value,
1222
+ base64: !0,
1223
+ img: !0,
1224
+ scale: e
1225
+ });
1226
+ return {
1227
+ imageUri: i,
1228
+ base64: a,
1229
+ title: H.value.chart.title.text,
1230
+ width: t,
1231
+ height: n,
1232
+ aspectRatio: r
1233
+ };
1234
+ }
1235
+ function os() {
1236
+ I.value.length ? I.value = [] : Xa.value.forEach((e) => {
1237
+ I.value.push(e.id);
1238
+ }), cs();
1239
+ }
1240
+ function ss(e, t) {
1241
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), ls(t));
1242
+ }
1243
+ function cs() {
1244
+ li("selectLegend", Za.value.map((e) => ({
1245
+ name: e.name,
1246
+ values: e.absoluteValues,
1247
+ color: e.color,
1248
+ type: e.type
1249
+ })));
1250
+ }
1251
+ function ls(e) {
1252
+ if (I.value.includes(e.id)) I.value = I.value.filter((t) => t !== e.id);
1253
+ else {
1254
+ if (I.value.length + 1 === Ya.value.length) return;
1255
+ I.value.push(e.id);
1256
+ }
1257
+ cs(), Ui.value += 1;
1258
+ }
1259
+ function us(e) {
1260
+ return Xa.value.length ? Xa.value.find((t) => t.name === e) || (H.value.debug && console.warn(`VueUiXy - Series name not found "${e}"`), null) : (H.value.debug && console.warn("VueUiXy - There are no series to show."), null);
1261
+ }
1262
+ function ds(e) {
1263
+ let t = us(e);
1264
+ t !== null && I.value.includes(t.id) && ls({ id: t.id });
1265
+ }
1266
+ function fs(e) {
1267
+ let t = us(e);
1268
+ t !== null && (I.value.includes(t.id) || ls({ id: t.id }));
1269
+ }
1270
+ let ps = x(() => `${H.value.chart.title.text || "Chart visualization"}. ${H.value.chart.title.subtitle.text || ""}`), ms = x(() => ({ linePlot: Z.value > H.value.line.dot.hideAboveMaxSerieLength })), hs = x(() => H.value.chart.userOptions.show && (!H.value.chart.title.show || !H.value.chart.title.text)), gs = x(() => {
1271
+ if (Array.isArray(H.value.chart.highlightArea)) return H.value.chart.highlightArea.map((e) => {
1272
+ let t = Math.min(e.to, G.value - 1);
1273
+ return {
1274
+ ...e,
1275
+ span: e.from === t ? 1 : t < e.from ? 0 : t - e.from + 1
1276
+ };
1277
+ });
1278
+ let e = {
1279
+ ...H.value.chart.highlightArea,
1280
+ to: Math.min(H.value.chart.highlightArea.to, G.value - 1)
1281
+ };
1282
+ return [{
1283
+ ...e,
1284
+ span: e.from === e.to ? 1 : e.to < e.from ? 0 : e.to - e.from + 1
1285
+ }];
1286
+ }), _s = x(() => Ai.value ? W.value.map((e, t) => ({
1287
+ ...e,
1288
+ series: Oa(e.series),
1289
+ id: `uniqueId_${t}`,
1290
+ color: Te(e.color ? e.color : za.value[t] ? za.value[t] : h[t])
1291
+ })) : W.value), vs = x(() => Za.value.map((e) => {
1292
+ let t = e.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
1293
+ return {
1294
+ id: e.id,
1295
+ name: e.name,
1296
+ color: e.color,
1297
+ values: Eo(Z.value, t)
1298
+ };
1299
+ })), ys = x(() => ({
1300
+ responsiveBreakpoint: H.value.table.responsiveBreakpoint,
1301
+ roundingValues: H.value.table.rounding,
1302
+ showAverage: !1,
1303
+ showMedian: !1,
1304
+ showTotal: !1,
1305
+ fontFamily: H.value.chart.fontFamily,
1306
+ prefix: H.value.chart.labels.prefix,
1307
+ suffix: H.value.chart.labels.suffix,
1308
+ colNames: X.value.map((e, t) => H.value.table.useDefaultTimeFormat ? e.text : Ys.value(t + K.value.start, H.value.table.timeFormat)),
1309
+ thead: {
1310
+ backgroundColor: H.value.table.th.backgroundColor,
1311
+ color: H.value.table.th.color,
1312
+ outline: H.value.table.th.outline
1313
+ },
1314
+ tbody: {
1315
+ backgroundColor: H.value.table.td.backgroundColor,
1316
+ color: H.value.table.td.color,
1317
+ outline: H.value.table.td.outline
1318
+ },
1319
+ userOptions: { show: !1 },
1320
+ sparkline: { animation: { show: !1 } }
1321
+ })), bs = x(() => {
1322
+ let e = Math.max(0, Y.value?.width || 0);
1323
+ return H.value.chart.grid.position === "middle" ? da(e, Math.max(1, Z.value), 1) : da(e, Math.max(1, Z.value - 1), 0);
1324
+ }), xs = x(() => H.value.chart.grid.position === "middle" ? bs.value : Z.value <= 1 ? Math.max(0, Y.value?.width || 0) : bs.value);
1325
+ function Ss(e) {
1326
+ let t = Y.value?.left || 0;
1327
+ return H.value.chart.grid.position === "middle" ? t + bs.value / 2 + bs.value * e : t + bs.value * e;
1328
+ }
1329
+ function Cs(e) {
1330
+ let t = Y.value?.left || 0;
1331
+ return H.value.chart.grid.position === "middle" ? t + bs.value * e : Z.value <= 1 ? t : t + bs.value * e - bs.value / 2;
1332
+ }
1333
+ function ws(e) {
1334
+ return Math.max(Y.value?.left || 0, Cs(e));
1335
+ }
1336
+ function Ts(e) {
1337
+ let t = Y.value?.left || 0, n = Y.value?.right || 0, r = Cs(e), i = r + xs.value;
1338
+ return Math.max(1e-5, Math.min(n, i) - Math.max(t, r));
1339
+ }
1340
+ function Es(e) {
1341
+ let t = Y.value?.left || 0, n = Y.value?.right || 0;
1342
+ for (let r = 0; r < Z.value; r += 1) {
1343
+ let i = Math.max(t, Cs(r)), a = Math.min(n, Cs(r) + xs.value);
1344
+ if (e >= i && e <= a) return r;
1345
+ }
1346
+ return null;
1347
+ }
1348
+ function Ds(e) {
1349
+ let t = Y.value?.left || 0, n = Y.value?.right || 0, r = Cs(e), i = r + xs.value;
1350
+ return Math.max(1e-5, Math.min(n, i) - Math.max(t, r));
1351
+ }
1352
+ function Os(e) {
1353
+ return Math.max(1e-5, xs.value * e);
1354
+ }
1355
+ let ks = x(() => g(Xa.value.filter((e) => !I.value.includes(e.id))));
1356
+ function As(e, t) {
1357
+ let n = Object.create(null);
1358
+ for (let r = 0; r < e.length; r += 1) {
1359
+ let i = e[r], a = String(t(i));
1360
+ n[a] || (n[a] = []), n[a].push(i);
1361
+ }
1362
+ return n;
1363
+ }
1364
+ let Q = x(() => {
1365
+ let e = As(ks.value, (e) => e.scaleLabel), t = {};
1366
+ for (let [n, r] of Object.entries(e)) {
1367
+ let e = r.flatMap((e) => e.absoluteValues);
1368
+ t[n] = {
1369
+ min: Math.min(...e) || 0,
1370
+ max: Math.max(...e) || 1,
1371
+ groupId: `scale_group_${o()}`
1372
+ };
1373
+ }
1374
+ return t;
1375
+ }), js = x(() => {
1376
+ let e = Ya.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length;
1377
+ return Y.value.width / Z.value / e - Ms.value * e;
1378
+ }), Ms = x(() => Ko.value.line * H.value.bar.periodGap), Ns = x(() => Math.max(1e-5, qo() - (U.value.useIndividualScale && U.value.isStacked ? 0 : Ms.value))), Ps = x(() => Ns.value * Math.min(Math.abs(H.value.bar.innerGap), .95)), Fs = x(() => {
1379
+ if (!H.value.chart.zoom.minimap.show) return [];
1380
+ let e = _s.value.filter((e) => !I.value.includes(e.id)), t = Math.max(...e.map((e) => e.series.length)), n = [];
1381
+ for (let r = 0; r < t; r += 1) n.push(e.map((e) => e.series[r] || 0).reduce((e, t) => (e || 0) + (t || 0), 0));
1382
+ let r = Math.min(...n);
1383
+ return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
1384
+ }), Is = x(() => H.value.chart.zoom.minimap.show ? _s.value.map((e) => ({
1385
+ ...e,
1386
+ isVisible: !I.value.includes(e.id)
1387
+ })) : []), Ls = x(() => Za.value.map((e) => ({
1388
+ slotAbsoluteIndex: e.slotAbsoluteIndex,
1389
+ shape: e.shape || e.type === "bar" ? "square" : "circle",
1390
+ name: e.name,
1391
+ color: e.color,
1392
+ type: e.type,
1393
+ value: e.absoluteValues.find((e, t) => t === B.value),
1394
+ comments: e.comments || [],
1395
+ prefix: e.prefix || H.value.chart.labels.prefix,
1396
+ suffix: e.suffix || H.value.chart.labels.suffix
1397
+ }))), Rs = x(() => q.value.ticks.map((e) => ({
1398
+ y: e >= 0 ? Vo.value - Y.value.height * Bo(e) : Vo.value + Y.value.height * Bo(Math.abs(e)),
1399
+ value: e,
1400
+ prefix: H.value.chart.labels.prefix,
1401
+ suffix: H.value.chart.labels.suffix
1402
+ }))), zs = x(() => {
1403
+ let e = H.value.chart.annotations;
1404
+ if (!e || !Array.isArray(e) || e.every((e) => !e.show)) return [];
1405
+ let t = e.filter((e) => e.show && (e.yAxis.yTop != null || e.yAxis.yBottom != null));
1406
+ if (!t.length) return [];
1407
+ let { left: n, right: r } = Y.value, i = Vo.value, a = Y.value.height, s = q.value.min, c = q.value.max - s, l = (e) => i - (e - 0) / c * a;
1408
+ return t.map((e) => {
1409
+ let { yAxis: { yTop: t, yBottom: i, label: a } } = e, s = t != null && i != null && t !== i, c = t == null ? null : l(t), u = i == null ? null : l(i), ee = lo(a.fontSize);
1410
+ ee.font = `${a.fontSize}px sans-serif`;
1411
+ let te = ee.measureText(a.text).width, d = a.fontSize, f = (a.position === "start" ? n + a.padding?.left : r - a.padding?.right) + a.offsetX, p = (c != null && u != null ? Math.min(c, u) : c ?? u) - a.fontSize / 3 + a.offsetY - a.padding?.top, m;
1412
+ m = a.textAnchor === "middle" ? f - te / 2 - a.padding?.left : a.textAnchor === "end" ? f - te - a.padding?.right : f - a.padding?.left;
1413
+ let ne = p - d * .75 - a.padding?.top;
1414
+ return {
1415
+ show: ![
1416
+ c,
1417
+ u,
1418
+ ne
1419
+ ].includes(NaN),
1420
+ id: `annotation_y_${o()}`,
1421
+ hasArea: s,
1422
+ areaHeight: s ? Math.abs(c - u) : 0,
1423
+ yTop: c,
1424
+ yBottom: u,
1425
+ config: e.yAxis,
1426
+ x1: n,
1427
+ x2: r,
1428
+ _text: {
1429
+ x: f,
1430
+ y: p
1431
+ },
1432
+ _box: {
1433
+ x: m,
1434
+ y: ne,
1435
+ width: te + a.padding?.left + a.padding?.right,
1436
+ height: d + a.padding?.top + a.padding?.bottom,
1437
+ fill: a.backgroundColor,
1438
+ stroke: a.border.stroke,
1439
+ rx: a.border.rx,
1440
+ ry: a.border.ry,
1441
+ strokeWidth: a.border.strokeWidth
1442
+ }
1443
+ };
1444
+ });
1445
+ });
1446
+ function Bs(e, t) {
1447
+ let n = e[t - 1], r = e[t + 1], i = !!n && !!r && n.value == null && r.value == null || !n && !!r && r.value == null || !!n && !r && n.value == null;
1448
+ return Ro(e[t].value) && i && H.value.line.cutNullValues;
1449
+ }
1450
+ function Vs({ datapoint: e, totalSeries: t, gap: n, usableHeight: r, autoScaleValueMin: i, autoScaleValueMax: a, individualExtremes: o, forceExactScale: s = !1 }) {
1451
+ let c = e.scaleSteps || H.value.chart.grid.labels.yAxis.commonScaleSteps, l = 1.0000001, u = s || !H.value.chart.grid.labels.yAxis.useNiceScale ? ue : de, ee = o.max === o.min ? o.max * l : o.max, te = a === i ? a * l : a, d = u(o.min, ee, c), f = u(i, te, c), p = d.min >= 0 ? 0 : Math.abs(d.min), m = d.max + Math.abs(p), ne = f.max + 0, re = e.stackIndex, ie = t - 1 - re, ae = U.value.isStacked ? 1 - e.cumulatedStackRatio : 0, oe = U.value.isStacked ? r * ae + n * ie : 0, h = U.value.isStacked ? r * e.stackRatio : Y.value.height;
1452
+ return {
1453
+ scaleSteps: c,
1454
+ individualScale: d,
1455
+ autoScaleSteps: f,
1456
+ individualZero: p,
1457
+ autoScaleZero: 0,
1458
+ individualMax: m,
1459
+ autoScaleMax: ne,
1460
+ yOffset: oe,
1461
+ individualHeight: h,
1462
+ zeroPosition: Y.value?.bottom - oe - h * p / m,
1463
+ autoScaleZeroPosition: Y.value?.bottom - oe - h * 0 / ne
1464
+ };
1465
+ }
1466
+ let Hs = x(() => {
1467
+ let e = ks.value.filter((e) => [
1468
+ "bar",
1469
+ "line",
1470
+ "plot"
1471
+ ].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, i = Y.value.height - r;
1472
+ return e.filter((e) => e.type === "bar").map((e, r) => {
1473
+ To(e);
1474
+ let a = Q.value[e.scaleLabel].min, o = Q.value[e.scaleLabel].max, s = {
1475
+ ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - a) / (o - a)),
1476
+ valueMin: a,
1477
+ valueMax: o < 0 ? 0 : o
1478
+ }, c = {
1479
+ max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
1480
+ min: e.scaleMin || Math.min(...e.absoluteValues.filter((e) => ![void 0, null].includes(e))) > 0 ? 0 : Math.min(...e.absoluteValues.filter((e) => ![null, void 0].includes(e)))
1481
+ }, { individualScale: l, autoScaleSteps: u, individualZero: ee, individualMax: te, autoScaleMax: d, yOffset: f, individualHeight: p, zeroPosition: m, autoScaleZeroPosition: ne } = Vs({
1482
+ datapoint: e,
1483
+ totalSeries: t,
1484
+ gap: n,
1485
+ usableHeight: i,
1486
+ autoScaleValueMin: s.valueMin,
1487
+ autoScaleValueMax: s.valueMax,
1488
+ individualExtremes: c
1489
+ }), re = Xa.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length, ie = e.series.map((t, n) => {
1490
+ let i = U.value.useIndividualScale ? (e.absoluteValues[n] + ee) / te : Bo(t), a = U.value.useIndividualScale && U.value.isStacked ? Y.value?.left + Y.value.width / Z.value * n : Y.value?.left + Ko.value.bar * r + Ko.value.bar * n * re - js.value / 2 - r * Ms.value;
1491
+ return {
1492
+ yOffset: y(f),
1493
+ individualHeight: y(p),
1494
+ x: y(a),
1495
+ y: Y.value?.bottom - f - p * i,
1496
+ value: e.absoluteValues[n],
1497
+ zeroPosition: y(m),
1498
+ individualMax: y(te),
1499
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1500
+ };
1501
+ }), ae = e.absoluteValues.map((e) => u.min >= 0 ? (e - Math.abs(u.min)) / (u.max - Math.abs(u.min)) : (e + Math.abs(u.min)) / (u.max + Math.abs(u.min))), oe = e.series.map((t, n) => {
1502
+ let i = U.value.useIndividualScale && U.value.isStacked ? Y.value?.left + Y.value.width / Z.value * n : Y.value?.left - Ko.value.bar / 2 + Ko.value.bar * r + Ko.value.bar * n * Xa.value.filter((e) => e.type === "bar").filter((e) => !I.value.includes(e.id)).length;
1503
+ return {
1504
+ yOffset: y(f),
1505
+ individualHeight: y(p),
1506
+ x: y(i),
1507
+ y: y(Y.value?.bottom - y(f) - (y(p) * ae[n] || 0)),
1508
+ value: e.absoluteValues[n],
1509
+ zeroPosition: y(m),
1510
+ individualMax: y(te),
1511
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1512
+ };
1513
+ }), h = l.ticks.map((t) => ({
1514
+ y: t >= 0 ? m - t / te * p : m + p * Math.abs(t) / te,
1515
+ value: t,
1516
+ prefix: e.prefix || H.value.chart.labels.prefix,
1517
+ suffix: e.suffix || H.value.chart.labels.suffix,
1518
+ datapoint: e
1519
+ })), se = u.ticks.map((t) => {
1520
+ let n = (t - u.min) / (u.max - u.min);
1521
+ return {
1522
+ y: t >= 0 ? ne - p * n : ne + p * n,
1523
+ value: t,
1524
+ prefix: e.prefix || H.value.chart.labels.prefix,
1525
+ suffix: e.suffix || H.value.chart.labels.suffix,
1526
+ datapoint: e
1527
+ };
1528
+ });
1529
+ return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? se : h, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? ne : m, Q.value[e.scaleLabel].individualMax = e.autoScaling ? d : te, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = f, Q.value[e.scaleLabel].individualHeight = p, Q.value[e.scaleLabel].autoScaleYLabels = se, Q.value[e.scaleLabel].unique = ks.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
1530
+ ...e,
1531
+ yOffset: f,
1532
+ autoScaleYLabels: se,
1533
+ individualHeight: p,
1534
+ scaleYLabels: e.autoScaling ? se : h,
1535
+ individualScale: e.autoScaling ? u : l,
1536
+ individualMax: e.autoScaling ? d : te,
1537
+ zeroPosition: e.autoScaling ? ne : m,
1538
+ plots: e.autoScaling ? oe : ie,
1539
+ groupId: Q.value[e.scaleLabel].groupId
1540
+ };
1541
+ });
1542
+ }), $ = x(() => {
1543
+ let e = ks.value.filter((e) => [
1544
+ "bar",
1545
+ "line",
1546
+ "plot"
1547
+ ].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, a = Y.value.height - r;
1548
+ return e.filter((e) => e.type === "line").map((e, r) => {
1549
+ To(e);
1550
+ let o = Q.value[e.scaleLabel].min, c = Q.value[e.scaleLabel].max, l = {
1551
+ ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - o) / (c - o)),
1552
+ valueMin: o,
1553
+ valueMax: c
1554
+ }, ee = {
1555
+ max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
1556
+ min: e.scaleMin || (Math.min(...e.absoluteValues) > 0 ? 0 : Math.min(...e.absoluteValues))
1557
+ }, { individualScale: d, autoScaleSteps: p, individualZero: m, individualMax: re, autoScaleMax: ie, yOffset: ae, individualHeight: h, zeroPosition: se, autoScaleZeroPosition: ce } = Vs({
1558
+ datapoint: e,
1559
+ totalSeries: t,
1560
+ gap: n,
1561
+ usableHeight: a,
1562
+ autoScaleValueMin: l.valueMin,
1563
+ autoScaleValueMax: l.valueMax,
1564
+ individualExtremes: ee
1565
+ }), g = e.series.map((t, n) => {
1566
+ let r = U.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(m)) / re : Bo(t);
1567
+ return {
1568
+ x: y(Ss(n)),
1569
+ y: y(Y.value?.bottom - ae - h * r),
1570
+ value: e.absoluteValues[n],
1571
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1572
+ };
1573
+ }), le = e.absoluteValues.map((e) => p.min >= 0 ? (e - Math.abs(p.min)) / (p.max - Math.abs(p.min)) : (e + Math.abs(p.min)) / (p.max + Math.abs(p.min))), _ = e.series.map((t, n) => [void 0, null].includes(e.absoluteValues[n]) ? {
1574
+ x: y(Ss(n)),
1575
+ y: se,
1576
+ value: e.absoluteValues[n],
1577
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1578
+ } : {
1579
+ x: y(Ss(n)),
1580
+ y: y(Y.value?.bottom - ae - (h * le[n] || 0)),
1581
+ value: e.absoluteValues[n],
1582
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1583
+ }), v = e.dashIndices && Array.isArray(e.dashIndices) && e?.dashIndices?.length > 0, ue = H.value.line.cutNullValues ? pe(g) : he(g.filter((e) => e.value !== null)), de = H.value.line.cutNullValues ? pe(_) : he(_.filter((e) => e.value !== null)), fe = H.value.line.cutNullValues ? u(g) : s(g.filter((e) => e.value !== null)), me = H.value.line.cutNullValues ? u(_) : s(_.filter((e) => e.value !== null)), ge = i(H.value.line.cutNullValues ? g : g.filter((e) => e.value !== null)), _e = i(H.value.line.cutNullValues ? _ : _.filter((e) => e.value !== null)), ve = v ? ne(H.value.line.cutNullValues ? g : g.filter((e) => e.value !== null), e.dashIndices.map((e) => e - K.value.start)) : [], ye = v ? te(H.value.line.cutNullValues ? g : g.filter((e) => e.value !== null), e.dashIndices.map((e) => e - K.value.start)) : [], be = d.ticks.map((t) => ({
1584
+ y: t >= 0 ? se - t / re * h : se + h * Math.abs(t) / re,
1585
+ value: t,
1586
+ prefix: e.prefix || H.value.chart.labels.prefix,
1587
+ suffix: e.suffix || H.value.chart.labels.suffix,
1588
+ datapoint: e
1589
+ })), xe = p.ticks.map((t) => {
1590
+ let n = (t - p.min) / (p.max - p.min);
1591
+ return {
1592
+ y: t >= 0 ? ce - h * n : ce + h * n,
1593
+ value: t,
1594
+ prefix: e.prefix || H.value.chart.labels.prefix,
1595
+ suffix: e.suffix || H.value.chart.labels.suffix,
1596
+ datapoint: e
1597
+ };
1598
+ });
1599
+ Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? xe : be, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? ce : se, Q.value[e.scaleLabel].individualMax = e.autoScaling ? ie : re, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = ae, Q.value[e.scaleLabel].individualHeight = h, Q.value[e.scaleLabel].autoScaleYLabels = xe, Q.value[e.scaleLabel].unique = ks.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1;
1600
+ let Se = U.value.useIndividualScale ? e.autoScaling ? ce : se : Va.value, we = Math.max(Math.max(e.autoScaling ? ce : be.at(-1) ? be.at(-1).y : 0, Y.value?.top), Se), Ee = e.autoScaling ? _ : g, De = H.value.line.cutNullValues ? Ee : Ee.filter((e) => e.value !== null), Oe = e.absoluteValues.filter((e) => ![
1601
+ null,
1602
+ void 0,
1603
+ NaN
1604
+ ].includes(e)), ke = !!e.temperatureColors && new Set(Oe).size <= 1;
1605
+ return {
1606
+ ...e,
1607
+ isFlatTemperatureLine: ke,
1608
+ temperatureColors: e.temperatureColors ? e.temperatureColors.map((e) => Te(e)) : null,
1609
+ yOffset: ae,
1610
+ autoScaleYLabels: xe,
1611
+ individualHeight: h,
1612
+ scaleYLabels: e.autoScaling ? xe : be,
1613
+ individualScale: e.autoScaling ? p : d,
1614
+ individualMax: e.autoScaling ? ie : re,
1615
+ zeroPosition: e.autoScaling ? ce : se,
1616
+ curve: e.useStepper ? e.autoScaling ? _e : ge : e.autoScaling ? de : ue,
1617
+ plots: e.autoScaling ? _ : g,
1618
+ dashedStraight: ve,
1619
+ dashedSmooth: ye,
1620
+ hasDashedSegments: v,
1621
+ area: e.useArea ? e.useStepper ? i(De, we) : U.value.useIndividualScale ? H.value.line.cutNullValues ? oe(e.autoScaling ? _ : g, we) : Ce(e.autoScaling ? _.filter((e) => e.value !== null) : g.filter((e) => e.value !== null), we) : H.value.line.cutNullValues ? oe(g, we) : Ce(g.filter((e) => e.value !== null), we) : "",
1622
+ curveAreas: e.useArea ? e.useStepper ? i(De, we).split(";").filter(Boolean).map((e) => `M${e}Z`) : f(e.autoScaling ? H.value.line.cutNullValues ? _ : _.filter((e) => e.value !== null) : H.value.line.cutNullValues ? g : g.filter((e) => e.value !== null), we, H.value.line.cutNullValues) : [],
1623
+ straight: e.useStepper ? e.autoScaling ? _e : ge : e.autoScaling ? me : fe,
1624
+ groupId: Q.value[e.scaleLabel].groupId
1625
+ };
1626
+ });
1627
+ }), Us = x(() => {
1628
+ let e = ks.value.filter((e) => [
1629
+ "bar",
1630
+ "line",
1631
+ "plot"
1632
+ ].includes(e.type)), t = e.length, n = H.value.chart.grid.labels.yAxis.gap, r = U.value.isStacked ? n * (t - 1) : 0, i = Y.value.height - r;
1633
+ return e.filter((e) => e.type === "plot").map((e) => {
1634
+ To(e);
1635
+ let r = Q.value[e.scaleLabel].min, a = Q.value[e.scaleLabel].max, o = {
1636
+ ratios: e.absoluteValues.filter((e) => ![null, void 0].includes(e)).map((e) => (e - r) / (a - r)),
1637
+ valueMin: r,
1638
+ valueMax: a
1639
+ }, s = {
1640
+ max: e.scaleMax || Math.max(...e.absoluteValues) || 1,
1641
+ min: e.scaleMin || Math.min(...e.absoluteValues) > 0 ? 0 : Math.min(...e.absoluteValues)
1642
+ }, { individualScale: c, autoScaleSteps: l, individualZero: u, individualMax: ee, autoScaleMax: te, yOffset: d, individualHeight: f, zeroPosition: p, autoScaleZeroPosition: m } = Vs({
1643
+ datapoint: e,
1644
+ totalSeries: t,
1645
+ gap: n,
1646
+ usableHeight: i,
1647
+ autoScaleValueMin: o.valueMin,
1648
+ autoScaleValueMax: o.valueMax,
1649
+ individualExtremes: s,
1650
+ forceExactScale: !0
1651
+ }), ne = e.series.map((t, n) => {
1652
+ let r = U.value.useIndividualScale ? (e.absoluteValues[n] + Math.abs(u)) / ee : Bo(t);
1653
+ return {
1654
+ x: y(Ss(n)),
1655
+ y: y(Y.value?.bottom - d - f * r),
1656
+ value: e.absoluteValues[n],
1657
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1658
+ };
1659
+ }), re = e.absoluteValues.map((e) => l.min >= 0 ? (e - Math.abs(l.min)) / (l.max - Math.abs(l.min)) : (e + Math.abs(l.min)) / (l.max + Math.abs(l.min))), ie = e.series.map((t, n) => ({
1660
+ x: y(Ss(n)),
1661
+ y: y(Y.value?.bottom - d - (f * re[n] || 0)),
1662
+ value: e.absoluteValues[n],
1663
+ comment: e.comments && e.comments.slice(K.value.start, K.value.end)[n] || ""
1664
+ })), ae = c.ticks.map((t) => ({
1665
+ y: t >= 0 ? p - t / ee * f : p + f * Math.abs(t) / ee,
1666
+ value: t,
1667
+ prefix: e.prefix || H.value.chart.labels.prefix,
1668
+ suffix: e.suffix || H.value.chart.labels.suffix,
1669
+ datapoint: e
1670
+ })), oe = l.ticks.map((t) => {
1671
+ let n = (t - l.min) / (l.max - l.min);
1672
+ return {
1673
+ y: t >= 0 ? m - f * n : m + f * n,
1674
+ value: t,
1675
+ prefix: e.prefix || H.value.chart.labels.prefix,
1676
+ suffix: e.suffix || H.value.chart.labels.suffix,
1677
+ datapoint: e
1678
+ };
1679
+ });
1680
+ return Q.value[e.scaleLabel].name = e.name, Q.value[e.scaleLabel].groupName = e.scaleLabel, Q.value[e.scaleLabel].groupColor = H.value.chart.grid.labels.yAxis.groupColor || e.color, Q.value[e.scaleLabel].color = e.color, Q.value[e.scaleLabel].scaleYLabels = e.autoScaling ? oe : ae, Q.value[e.scaleLabel].zeroPosition = e.autoScaling ? m : p, Q.value[e.scaleLabel].individualMax = e.autoScaling ? te : ee, Q.value[e.scaleLabel].scaleLabel = e.scaleLabel, Q.value[e.scaleLabel].id = e.id, Q.value[e.scaleLabel].yOffset = d, Q.value[e.scaleLabel].individualHeight = f, Q.value[e.scaleLabel].autoScaleYLabels = oe, Q.value[e.scaleLabel].unique = ks.value.filter((t) => t.scaleLabel === e.scaleLabel).length === 1, {
1681
+ ...e,
1682
+ yOffset: d,
1683
+ autoScaleYLabels: oe,
1684
+ individualHeight: f,
1685
+ scaleYLabels: e.autoScaling ? oe : ae,
1686
+ individualScale: e.autoScaling ? l : c,
1687
+ individualMax: e.autoScaling ? te : ee,
1688
+ zeroPosition: e.autoScaling ? m : p,
1689
+ plots: e.autoScaling ? ie : ne,
1690
+ groupId: Q.value[e.scaleLabel].groupId
1691
+ };
1692
+ });
1693
+ }), Ws = x(() => {
1694
+ let e = $.value.map((e) => ({
1695
+ name: e.name,
1696
+ color: e.color,
1697
+ scale: e.individualScale,
1698
+ scaleYLabels: e.scaleYLabels,
1699
+ zero: e.zeroPosition,
1700
+ max: e.individualMax,
1701
+ scaleLabel: e.scaleLabel || "",
1702
+ id: e.id,
1703
+ yOffset: e.yOffset || 0,
1704
+ individualHeight: e.individualHeight || Y.value.height,
1705
+ autoScaleYLabels: e.autoScaleYLabels
1706
+ })), t = Hs.value.map((e) => ({
1707
+ name: e.name,
1708
+ color: e.color,
1709
+ scale: e.individualScale,
1710
+ scaleYLabels: e.scaleYLabels,
1711
+ zero: e.zeroPosition,
1712
+ max: e.individualMax,
1713
+ scaleLabel: e.scaleLabel || "",
1714
+ id: e.id,
1715
+ yOffset: e.yOffset || 0,
1716
+ individualHeight: e.individualHeight || Y.value.height
1717
+ })), n = Us.value.map((e) => ({
1718
+ name: e.name,
1719
+ color: e.color,
1720
+ scale: e.individualScale,
1721
+ scaleYLabels: e.scaleYLabels,
1722
+ zero: e.zeroPosition,
1723
+ max: e.individualMax,
1724
+ scaleLabel: e.scaleLabel || "",
1725
+ id: e.id,
1726
+ yOffset: e.yOffset || 0,
1727
+ individualHeight: e.individualHeight || Y.value.height
1728
+ })), r = U.value.useIndividualScale && !U.value.isStacked ? Object.values(Q.value) : [
1729
+ ...e,
1730
+ ...t,
1731
+ ...n
1732
+ ], i = r.flatMap((e) => e).length;
1733
+ return r.flatMap((e, t) => {
1734
+ let n = 0;
1735
+ n = U.value.isStacked ? J.value ? Y.value?.right : Y.value?.left : J.value ? Y.value?.right + ao() * t : Y.value?.left / i * (t + 1);
1736
+ let r = U.value.useIndividualScale && !U.value.isStacked ? e.unique ? e.name : e.groupName : e.name;
1737
+ return {
1738
+ unique: e.unique,
1739
+ id: e.id,
1740
+ groupId: e.groupId,
1741
+ scaleLabel: e.scaleLabel,
1742
+ name: fe(H.value.chart.grid.labels.yAxis.serieNameFormatter, r, r, e),
1743
+ color: U.value.useIndividualScale && !U.value.isStacked ? e.unique ? e.color : e.groupColor : e.color,
1744
+ scale: e.scale,
1745
+ yOffset: e.yOffset,
1746
+ individualHeight: e.individualHeight,
1747
+ x: n,
1748
+ yLabels: e.scaleYLabels || e.scale.ticks.map((t) => ({
1749
+ y: t >= 0 ? e.zero - e.individualHeight * (t / e.max) : e.zero + e.individualHeight * Math.abs(t) / e.max,
1750
+ value: t
1751
+ }))
1752
+ };
1753
+ });
1754
+ }), Gs = x(() => {
1755
+ let e = H.value.line.interLine || {}, t = e.pairs || [], n = e.colors || [];
1756
+ if (!t.length) return [];
1757
+ let r = [];
1758
+ return t.forEach((e, t) => {
1759
+ let [i, a] = Array.isArray(e) ? e : [e.a, e.b];
1760
+ if (!i || !a) return;
1761
+ let o = $.value.find((e) => e.name === i), s = $.value.find((e) => e.name === a);
1762
+ if (!o || !s || o.type !== "line" || s.type !== "line") return;
1763
+ let c = n?.[t]?.[0] ?? o.color, l = n?.[t]?.[1] ?? s.color;
1764
+ le({
1765
+ lineA: o.plots,
1766
+ lineB: s.plots,
1767
+ smoothA: !!o.smooth,
1768
+ smoothB: !!s.smooth,
1769
+ colorLineA: c,
1770
+ colorLineB: l,
1771
+ sampleStepPx: 2,
1772
+ cutNullValues: H.value.line.cutNullValues
1773
+ }).forEach((e, n) => {
1774
+ r.push({
1775
+ ...e,
1776
+ key: `inter_${i}_${a}_${t}_${n}`
1777
+ });
1778
+ });
1779
+ }), r;
1780
+ }), Ks = x(() => ({
1781
+ timeLabel: X.value[B.value],
1782
+ datapoint: Ls.value,
1783
+ seriesIndex: B.value,
1784
+ series: Xa.value,
1785
+ bars: Hs.value,
1786
+ lines: $.value,
1787
+ plots: Us.value,
1788
+ config: H.value
1789
+ })), qs = O({
1790
+ months: [],
1791
+ shortMonths: [],
1792
+ days: [],
1793
+ shortDays: []
1794
+ }), Js = 0;
1795
+ ht(() => {
1796
+ let e = ++Js, t = H.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
1797
+ (async () => {
1798
+ let n = await ke(t.locale).catch(() => ke("en"));
1799
+ e === Js && (qs.value = n.data);
1800
+ })();
1801
+ });
1802
+ let Ys = x(() => {
1803
+ let e = H.value.chart.grid.labels.xAxisLabels.datetimeFormatter, t = Oe({
1804
+ useUTC: e.useUTC,
1805
+ locale: qs.value,
1806
+ januaryAsYear: e.januaryAsYear
1807
+ });
1808
+ return (e, n) => {
1809
+ let r = H.value.chart.grid.labels.xAxisLabels.values?.[e];
1810
+ return r == null ? "" : t.formatDate(new Date(r), n);
1811
+ };
1812
+ }), Xs = x(() => (H.value.chart.grid.labels.xAxisLabels.values || []).map((e, t) => ({
1813
+ text: Ys.value(t, H.value.chart.zoom.timeFormat),
1814
+ absoluteIndex: t
1815
+ }))), Zs = x(() => {
1816
+ let e = "", t = Ls.value.map((e) => e.value).filter((e) => _e(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0), n = X.value[B.value], i = H.value.chart.tooltip.customFormat;
1817
+ if (be(i) && ye(() => i({
1818
+ absoluteIndex: B.value + K.value.start,
1819
+ seriesIndex: B.value,
1820
+ datapoint: Ls.value,
1821
+ series: Xa.value,
1822
+ bars: Hs.value,
1823
+ lines: $.value,
1824
+ plots: Us.value,
1825
+ config: H.value,
1826
+ dateLabel: n
1827
+ }))) return i({
1828
+ absoluteIndex: B.value + K.value.start,
1829
+ seriesIndex: B.value,
1830
+ datapoint: Ls.value,
1831
+ series: Xa.value,
1832
+ bars: Hs.value,
1833
+ lines: $.value,
1834
+ plots: Us.value,
1835
+ config: H.value,
1836
+ dateLabel: n
1837
+ });
1838
+ if (n && n.text && H.value.chart.tooltip.showTimeLabel) {
1839
+ let t = Ys.value(B.value + K.value.start, H.value.chart.tooltip.timeFormat);
1840
+ e += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${H.value.chart.tooltip.borderColor}; width:100%">${H.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !H.value.chart.tooltip.useDefaultTimeFormat ? t : n.text}</div>`;
1841
+ }
1842
+ return Ls.value.forEach((n) => {
1843
+ if (_e(n.value)) {
1844
+ let i = "", o = "";
1845
+ switch (Pi.value[n.type]) {
1846
+ case "bar":
1847
+ i = `<svg viewBox="0 0 40 40" height="14" width="14">${ui.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${n.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${ui.pattern ? `url(#pattern_${L.value}_${n.slotAbsoluteIndex}` : n.color}" /></svg>`;
1848
+ break;
1849
+ case "line":
1850
+ !n.shape || ![
1851
+ "star",
1852
+ "triangle",
1853
+ "square",
1854
+ "diamond",
1855
+ "pentagon",
1856
+ "hexagon"
1857
+ ].includes(n.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${n.color}" />` : n.shape === "triangle" ? o = `<path d="${r({
1858
+ plot: {
1859
+ x: 10,
1860
+ y: 8
1861
+ },
1862
+ radius: 4,
1863
+ sides: 3,
1864
+ rotation: .52
1865
+ }).path}" fill="${n.color}" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "square" ? o = `<path d="${r({
1866
+ plot: {
1867
+ x: 10,
1868
+ y: 8
1869
+ },
1870
+ radius: 4,
1871
+ sides: 4,
1872
+ rotation: .8
1873
+ }).path}" fill="${n.color}" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "diamond" ? o = `<path d="${r({
1874
+ plot: {
1875
+ x: 10,
1876
+ y: 8
1877
+ },
1878
+ radius: 4,
1879
+ sides: 4,
1880
+ rotation: 0
1881
+ }).path}" fill="${n.color}" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "pentagon" ? o = `<path d="${r({
1882
+ plot: {
1883
+ x: 10,
1884
+ y: 8
1885
+ },
1886
+ radius: 4,
1887
+ sides: 5,
1888
+ rotation: .95
1889
+ }).path}" fill="${n.color}" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "hexagon" ? o = `<path d="${r({
1890
+ plot: {
1891
+ x: 10,
1892
+ y: 8
1893
+ },
1894
+ radius: 4,
1895
+ sides: 6,
1896
+ rotation: 0
1897
+ }).path}" fill="${n.color}" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : n.shape === "star" && (o = `<polygon stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${n.color}" points="${m({
1898
+ plot: {
1899
+ x: 10,
1900
+ y: 8
1901
+ },
1902
+ radius: 4
1903
+ })}" />`), i = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${n.color}" />${o}</svg>`;
1904
+ break;
1905
+ case "plot":
1906
+ if (!n.shape || ![
1907
+ "star",
1908
+ "triangle",
1909
+ "square",
1910
+ "diamond",
1911
+ "pentagon",
1912
+ "hexagon"
1913
+ ].includes(n.shape)) {
1914
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${n.color}" /></svg>`;
1915
+ break;
1916
+ }
1917
+ if (n.shape === "star") {
1918
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${n.color}" points="${m({
1919
+ plot: {
1920
+ x: 6,
1921
+ y: 6
1922
+ },
1923
+ radius: 5
1924
+ })}" /></svg>`;
1925
+ break;
1926
+ }
1927
+ if (n.shape === "triangle") {
1928
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${r({
1929
+ plot: {
1930
+ x: 6,
1931
+ y: 6
1932
+ },
1933
+ radius: 6,
1934
+ sides: 3,
1935
+ rotation: .52
1936
+ }).path}" fill="${n.color}" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1937
+ break;
1938
+ }
1939
+ if (n.shape === "square") {
1940
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${r({
1941
+ plot: {
1942
+ x: 6,
1943
+ y: 6
1944
+ },
1945
+ radius: 6,
1946
+ sides: 4,
1947
+ rotation: .8
1948
+ }).path}" fill="${n.color}" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1949
+ break;
1950
+ }
1951
+ if (n.shape === "diamond") {
1952
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${r({
1953
+ plot: {
1954
+ x: 6,
1955
+ y: 6
1956
+ },
1957
+ radius: 5,
1958
+ sides: 4,
1959
+ rotation: 0
1960
+ }).path}" fill="${n.color}" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1961
+ break;
1962
+ }
1963
+ if (n.shape === "pentagon") {
1964
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${r({
1965
+ plot: {
1966
+ x: 6,
1967
+ y: 6
1968
+ },
1969
+ radius: 5,
1970
+ sides: 5,
1971
+ rotation: .95
1972
+ }).path}" fill="${n.color}" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1973
+ break;
1974
+ }
1975
+ if (n.shape === "hexagon") {
1976
+ i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${r({
1977
+ plot: {
1978
+ x: 6,
1979
+ y: 6
1980
+ },
1981
+ radius: 5,
1982
+ sides: 6,
1983
+ rotation: 0
1984
+ }).path}" fill="${n.color}" stroke="${H.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
1985
+ break;
1986
+ }
1987
+ default: break;
1988
+ }
1989
+ e += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${i}</div> ${n.name}: <b>${H.value.chart.tooltip.showValue ? fe(n.type === "line" ? H.value.line.labels.formatter : n.type === "bar" ? H.value.bar.labels.formatter : H.value.plot.labels.formatter, n.value, a({
1990
+ p: n.prefix,
1991
+ v: n.value,
1992
+ s: n.suffix,
1993
+ r: H.value.chart.tooltip.roundingValue
1994
+ }), { datapoint: n }) : ""}</b> ${H.value.chart.tooltip.showPercentage ? `(${a({
1995
+ v: y(Math.abs(n.value) / t * 100),
1996
+ s: "%",
1997
+ r: H.value.chart.tooltip.roundingPercentage
1998
+ })})` : ""}</div>`, H.value.chart.comments.showInTooltip && n.comments.length && n.comments.slice(K.value.start, K.value.end)[B.value] && (e += `<div class="vue-data-ui-tooltip-comment" style="background:${n.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${n.color}">${n.comments.slice(K.value.start, K.value.end)[B.value]}</div>`);
1999
+ }
2000
+ }), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${H.value.chart.tooltip.color}">${e}</div>`;
2001
+ }), Qs = x(() => {
2002
+ if (Ya.value.length === 0) return {
2003
+ head: [],
2004
+ body: [],
2005
+ config: {},
2006
+ columnNames: []
2007
+ };
2008
+ let e = Za.value.map((e) => ({
2009
+ label: e.name,
2010
+ color: e.color,
2011
+ type: e.type
2012
+ })), t = [];
2013
+ return X.value.forEach((e, n) => {
2014
+ let r = H.value.table.useDefaultTimeFormat ? [e.text] : [Ys.value(n + K.value.start, H.value.table.timeFormat)];
2015
+ Za.value.forEach((e) => {
2016
+ r.push(Ro(e.absoluteValues[n]) ? Number(e.absoluteValues[n].toFixed(H.value.table.rounding)) : "");
2017
+ }), t.push(r);
2018
+ }), {
2019
+ head: e,
2020
+ body: t
2021
+ };
2022
+ }), $s = x(() => {
2023
+ let e = H.value.table.showSum, t = [""].concat(Za.value.map((e) => e.name));
2024
+ e && (t = t.concat(" <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2\" /></svg>"));
2025
+ let n = [];
2026
+ for (let t = 0; t < Z.value; t += 1) {
2027
+ let r = Za.value.map((e) => e.absoluteValues[t] ?? 0).reduce((e, t) => e + t, 0);
2028
+ n.push([H.value.table.useDefaultTimeFormat ? X.value[t]?.text ?? "-" : Ys.value(t + K.value.start, H.value.table.timeFormat)].concat(Za.value.map((e) => fe(e.type === "line" ? H.value.line.labels.formatter : e.type === "bar" ? H.value.bar.labels.formatter : H.value.plot.labels.formatter, e.absoluteValues[t] ?? 0, a({
2029
+ p: e.prefix || H.value.chart.labels.prefix,
2030
+ v: e.absoluteValues[t] ?? 0,
2031
+ s: e.suffix || H.value.chart.labels.suffix,
2032
+ r: H.value.table.rounding
2033
+ }))), e ? (r ?? 0).toFixed(H.value.table.rounding) : []));
2034
+ }
2035
+ let r = {
2036
+ th: {
2037
+ backgroundColor: H.value.table.th.backgroundColor,
2038
+ color: H.value.table.th.color,
2039
+ outline: H.value.table.th.outline
2040
+ },
2041
+ td: {
2042
+ backgroundColor: H.value.table.td.backgroundColor,
2043
+ color: H.value.table.td.color,
2044
+ outline: H.value.table.td.outline
2045
+ },
2046
+ breakpoint: H.value.table.responsiveBreakpoint
2047
+ }, i = [H.value.table.columnNames.period].concat(Za.value.map((e) => e.name), H.value.table.columnNames.total);
2048
+ return {
2049
+ head: t,
2050
+ body: n,
2051
+ config: r,
2052
+ colNames: i
2053
+ };
2054
+ });
2055
+ function ec(e = null) {
2056
+ let t = [
2057
+ [H.value.chart.title.text],
2058
+ [H.value.chart.title.subtitle.text],
2059
+ [""]
2060
+ ], n = ["", ...Qs.value.head.map((e) => e.label)], r = Qs.value.body, i = ie(t.concat([n]).concat(r));
2061
+ e ? e(i) : l({
2062
+ csvContent: i,
2063
+ title: H.value.chart.title.text || "vue-ui-xy"
2064
+ });
2065
+ }
2066
+ function tc(e, t = null) {
2067
+ if (Qa.value) return;
2068
+ Li.value = e;
2069
+ let n = Za.value.map((e) => ({
2070
+ name: e.name,
2071
+ value: [
2072
+ null,
2073
+ void 0,
2074
+ NaN
2075
+ ].includes(e.absoluteValues[t]) ? null : e.absoluteValues[t],
2076
+ color: e.color,
2077
+ type: e.type
2078
+ }));
2079
+ e ? (B.value = t, H.value.events.datapointEnter && H.value.events.datapointEnter({
2080
+ datapoint: n,
2081
+ seriesIndex: t + K.value.start
2082
+ })) : (B.value = null, H.value.events.datapointLeave && H.value.events.datapointLeave({
2083
+ datapoint: n,
2084
+ seriesIndex: t + K.value.start
2085
+ }));
2086
+ }
2087
+ function nc() {
2088
+ U.value.showTable = !U.value.showTable;
2089
+ }
2090
+ function rc() {
2091
+ U.value.dataLabels.show = !U.value.dataLabels.show;
2092
+ }
2093
+ function ic() {
2094
+ U.value.showTooltip = !U.value.showTooltip;
2095
+ }
2096
+ function ac(e) {
2097
+ Ii.value = e, zi.value += 1;
2098
+ }
2099
+ function oc() {
2100
+ if (!H.value.responsiveProportionalSizing) {
2101
+ V.value.dataLabels = H.value.chart.grid.labels.fontSize, V.value.yAxis = H.value.chart.grid.labels.axis.fontSize, V.value.xAxis = H.value.chart.grid.labels.xAxisLabels.fontSize, V.value.plotLabels = H.value.chart.labels.fontSize, ha.value.plot = H.value.plot.radius, ha.value.line = H.value.line.radius;
2102
+ return;
2103
+ }
2104
+ V.value.dataLabels = re({
2105
+ relator: ji.value,
2106
+ adjuster: 400,
2107
+ source: H.value.chart.grid.labels.fontSize,
2108
+ threshold: 10,
2109
+ fallback: 10
2110
+ }), V.value.yAxis = re({
2111
+ relator: F.value,
2112
+ adjuster: 1e3,
2113
+ source: H.value.chart.grid.labels.axis.fontSize,
2114
+ threshold: 10,
2115
+ fallback: 10
2116
+ }), V.value.xAxis = re({
2117
+ relator: F.value,
2118
+ adjuster: 1e3,
2119
+ source: H.value.chart.grid.labels.xAxisLabels.fontSize,
2120
+ threshold: 10,
2121
+ fallback: 10
2122
+ }), V.value.plotLabels = re({
2123
+ relator: F.value,
2124
+ adjuster: 800,
2125
+ source: H.value.chart.labels.fontSize,
2126
+ threshold: 10,
2127
+ fallback: 10
2128
+ }), ha.value.plot = re({
2129
+ relator: F.value,
2130
+ adjuster: 800,
2131
+ source: H.value.plot.radius,
2132
+ threshold: 1,
2133
+ fallback: 1
2134
+ }), ha.value.line = re({
2135
+ relator: F.value,
2136
+ adjuster: 800,
2137
+ source: H.value.line.radius,
2138
+ threshold: 1,
2139
+ fallback: 1
2140
+ });
2141
+ }
2142
+ function sc() {
2143
+ if (ae(N.dataset) ? (se({
2144
+ componentName: "VueUiXy",
2145
+ type: "dataset",
2146
+ debug: xa.value
2147
+ }), Ta.value = !0) : N.dataset.forEach((e, t) => {
2148
+ [null, void 0].includes(e.name) && (se({
2149
+ componentName: "VueUiXy",
2150
+ type: "datasetSerieAttribute",
2151
+ property: "name (string)",
2152
+ index: t,
2153
+ debug: xa.value
2154
+ }), Ta.value = !0);
2155
+ }), xa.value && N.dataset.forEach((e) => {
2156
+ e.series.forEach((t, n) => {
2157
+ _e(t) || console.warn(`VueUiXy has detected an unsafe value in your dataset:\n-----> The serie '${e.name}' contains the value '${t}' at index ${n}.\n'${t}' was converted to null to allow the chart to display.`);
2158
+ });
2159
+ }), ae(N.dataset) || (Ta.value = H.value.loading), Wi.value = H.value.chart.userOptions.showOnChartHover, Gi.value = H.value.chart.userOptions.keepStateOnChartLeave, Ki.value = !H.value.chart.userOptions.showOnChartHover, ba(), H.value.responsive) {
2160
+ let e = hi.value.parentNode;
2161
+ Di.value && (Di.value.unobserve(Oi.value), Di.value.disconnect());
2162
+ let { height: t, width: n } = e.getBoundingClientRect(), r = null, i = 0;
2163
+ H.value.chart.title.show && gi.value && (r = gi.value, i = r.getBoundingClientRect().height);
2164
+ let a = null, o = 0;
2165
+ H.value.chart.zoom.show && G.value > 6 && va.value && _i.value && _i.value.$el && (a = _i.value.$el, o = a.getBoundingClientRect().height);
2166
+ let s = null, c = 0;
2167
+ H.value.chart.legend.show && vi.value && (s = vi.value, c = s.getBoundingClientRect().height);
2168
+ let l = 0;
2169
+ yi.value && (l = yi.value.getBoundingClientRect().height);
2170
+ let u = 0;
2171
+ bi.value && (u = bi.value.getBoundingClientRect().height), ji.value = t - i - c - o - l - u - 12, F.value = n, Mi.value = `0 0 ${F.value < 0 ? 10 : F.value} ${ji.value < 0 ? 10 : ji.value}`, oc();
2172
+ let ee = new ResizeObserver((e) => {
2173
+ for (let t of e) i = H.value.chart.title.show && gi.value ? gi.value.getBoundingClientRect().height : 0, o = _i.value && _i.value.$el ? _i.value.$el.getBoundingClientRect().height : 0, c = vi.value ? vi.value.getBoundingClientRect().height : 0, l = yi.value ? yi.value.getBoundingClientRect().height : 0, u = bi.value ? bi.value.getBoundingClientRect().height : 0, requestAnimationFrame(() => {
2174
+ ji.value = t.contentRect.height - i - c - o - l - u - 12, F.value = t.contentBoxSize[0].inlineSize ?? t.contentRect.width, Mi.value = `0 0 ${F.value < 0 ? 10 : F.value} ${ji.value < 0 ? 10 : ji.value}`, oc(), oa(), ca();
2175
+ });
2176
+ });
2177
+ Di.value = ee, Oi.value = e, ee.observe(e);
2178
+ } else ji.value = H.value.chart.height, F.value = H.value.chart.width, V.value.dataLabels = H.value.chart.grid.labels.fontSize, V.value.yAxis = H.value.chart.grid.labels.axis.fontSize, V.value.xAxis = H.value.chart.grid.labels.xAxisLabels.fontSize, V.value.plotLabels = H.value.chart.labels.fontSize, ha.value.plot = H.value.plot.radius, ha.value.line = H.value.line.radius, Mi.value = `0 0 ${F.value} ${ji.value}`;
2179
+ oa(), ca();
2180
+ }
2181
+ function cc(e) {
2182
+ Ni.value = {
2183
+ x: e.clientX,
2184
+ y: e.clientY
2185
+ };
2186
+ }
2187
+ st(() => {
2188
+ sc(), No(), document.addEventListener("mousemove", cc, { passive: !0 }), document.addEventListener("scroll", uo, { passive: !0 });
2189
+ }), ot(() => {
2190
+ document.removeEventListener("scroll", uo, { passive: !0 }), document.removeEventListener("mousemove", cc, { passive: !0 }), Di.value &&= (Di.value.unobserve(Oi.value), Di.value.disconnect(), null);
2191
+ }), ze({
2192
+ timeLabelsEls: wi,
2193
+ timeLabels: X,
2194
+ slicer: K,
2195
+ configRef: H,
2196
+ rotationPath: [
2197
+ "chart",
2198
+ "grid",
2199
+ "labels",
2200
+ "xAxisLabels",
2201
+ "rotation"
2202
+ ],
2203
+ autoRotatePath: [
2204
+ "chart",
2205
+ "grid",
2206
+ "labels",
2207
+ "xAxisLabels",
2208
+ "autoRotate",
2209
+ "enable"
2210
+ ],
2211
+ isAutoSize: Ra,
2212
+ height: ji,
2213
+ width: F,
2214
+ rotation: H.value.chart.grid.labels.xAxisLabels.autoRotate.angle
2215
+ });
2216
+ let lc = O(!1), uc = O(null), dc = O(200), fc = x(() => B.value ?? R.value ?? 0);
2217
+ function pc() {
2218
+ let e = Math.ceil(dc.value || 200);
2219
+ return Math.min(Math.max(e, 1), 200);
2220
+ }
2221
+ function mc() {
2222
+ let e = pc(), t = Ss(fc.value) - e / 2 - (200 - e) / 2, n = Y.value?.left - (200 - e) / 2, r = Y.value?.right - (200 + e) / 2;
2223
+ return y(Math.max(n, Math.min(t, r)));
2224
+ }
2225
+ st(() => {
2226
+ let e = null, t = null, n = (e) => {
2227
+ cancelAnimationFrame(t), t = requestAnimationFrame(() => {
2228
+ dc.value = Math.min(Math.max(Math.ceil(e || 0), 1), 200);
2229
+ });
2230
+ }, r = new ResizeObserver((t) => {
2231
+ let r = t.find((t) => t.target === e) || t[0];
2232
+ r && n(r.contentRect.width || 200);
2233
+ }), i = ht((t) => {
2234
+ let i = uc.value;
2235
+ e && e !== i && (r.unobserve(e), e = null), i && i !== e && (rt(() => {
2236
+ i.offsetParent !== null && n(i.offsetWidth || i.getBoundingClientRect().width || 200);
2237
+ }), r.observe(i), e = i), t(() => {
2238
+ e &&= (r.unobserve(e), null);
2239
+ });
2240
+ });
2241
+ ot(() => {
2242
+ try {
2243
+ e && r.unobserve(e), r.disconnect(), i();
2244
+ } catch {}
2245
+ });
2246
+ });
2247
+ let hc = x(() => {
2248
+ if ([null, void 0].includes(B.value) && [null, void 0].includes(R.value)) return "";
2249
+ let e = (B.value == null ? 0 : B.value) || (R.value == null ? 0 : R.value), t = H.value.chart.timeTag.customFormat;
2250
+ if (lc.value = !1, be(t)) try {
2251
+ let n = t({
2252
+ absoluteIndex: e + K.value.start,
2253
+ seriesIndex: e,
2254
+ datapoint: Ls.value,
2255
+ bars: Hs.value,
2256
+ lines: $.value,
2257
+ plots: Us.value,
2258
+ config: H.value
2259
+ });
2260
+ if (typeof n == "string") return lc.value = !0, n;
2261
+ } catch {
2262
+ console.warn("Custom format cannot be applied on timeTag."), lc.value = !1;
2263
+ }
2264
+ if (!lc.value) return [null, void 0].includes(X.value[e]) ? "" : H.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !H.value.chart.timeTag.useDefaultFormat ? Ys.value(e + K.value.start, H.value.chart.timeTag.timeFormat) : X.value[e].text;
2265
+ });
2266
+ function gc({ serie: e, plot: t, type: r }) {
2267
+ return Ro(t.value) ? n({
2268
+ content: fe(H.value[r].labels.formatter, t.value, a({
2269
+ p: e.prefix || H.value.chart.labels.prefix,
2270
+ v: t.value,
2271
+ x: e.suffix || H.value.chart.labels.suffix,
2272
+ r: H.value[r].labels.rounding
2273
+ }), {
2274
+ datapoint: t,
2275
+ serie: e
2276
+ }),
2277
+ fontSize: V.value.plotLabels,
2278
+ fill: H.value[r].labels.color,
2279
+ x: 0,
2280
+ y: 0
2281
+ }) : "";
2282
+ }
2283
+ function _c({ plot: e }) {
2284
+ let t = H.value.bar.labels.offsetY, n = Math.abs(Go(e)), r = e.value < 0, i = {
2285
+ x: (U.value.useIndividualScale && U.value.isStacked ? e.x + Ko.value.line / 2 : Jo(e) + qo() / 2 - Ms.value / 2) + H.value.bar.labels.offsetX,
2286
+ y: y(e.y) + (H.value.bar.labels.alwaysOnTop ? t - (r ? n : 0) : e.value >= 0 ? t : -t * 3)
2287
+ };
2288
+ return `translate(${i.x}, ${i.y}) rotate(${H.value.bar.labels.rotation})`;
2289
+ }
2290
+ function vc({ plot: e, type: t }) {
2291
+ let n = H.value[t].labels.offsetY, r = {
2292
+ x: e.x + H.value[t].labels.offsetX,
2293
+ y: y(e.y) + (H.value[t].labels.alwaysOnTop || e.value >= 0 ? n : -n * 3)
2294
+ };
2295
+ return `translate(${r.x}, ${r.y}) rotate(${H.value[t].labels.rotation})`;
2296
+ }
2297
+ function yc({ plot: e, type: t }) {
2298
+ if (H.value[t].labels.textAnchor != null) return H.value[t].labels.textAnchor;
2299
+ let n = e.value >= 0;
2300
+ return H.value[t].labels.rotation === 0 ? "middle" : H.value[t].labels.alwaysOnTop || n ? "start" : "end";
2301
+ }
2302
+ mt(() => N.dataset, (e) => {
2303
+ if (Array.isArray(e) && e.length > 0 && (Ta.value = !1), H.value.chart.zoom.keepState) {
2304
+ if (G.value = Math.max(0, ...W.value.map((e) => Oa(e.series).length)), G.value > 0) {
2305
+ let e = K.value.start, t = K.value.end;
2306
+ if (!ko.value || e === 0 && t === 0) No();
2307
+ else {
2308
+ let n = Math.max(0, Math.min(e, G.value - 1)), r = Math.max(n + 1, Math.min(t, G.value));
2309
+ K.value = {
2310
+ start: n,
2311
+ end: r
2312
+ }, ka.value = {
2313
+ start: n,
2314
+ end: r
2315
+ }, Ao.value = 0, jo.value = G.value;
2316
+ }
2317
+ }
2318
+ } else G.value = Math.max(...W.value.map((e) => Oa(e.series).length)), K.value = {
2319
+ start: 0,
2320
+ end: G.value
2321
+ };
2322
+ ki.value += 1, Ui.value += 1, oa(), ca(), Ma();
2323
+ }, { deep: !0 }), mt(() => N.config, (e) => {
2324
+ wa.value || (H.value = ga()), sc(), Vi.value += 1, Bi.value += 1, ba(), oa(), ca(), H.value.chart.zoom.keepState && (G.value = Math.max(0, ...W.value.map((e) => Oa(e.series).length)), G.value > 0 && (!ko.value || K.value.start === 0 && K.value.end === 0) && No()), Ma();
2325
+ }, { deep: !0 });
2326
+ let bc = O(!1);
2327
+ function xc() {
2328
+ let e = hi.value?.parentNode;
2329
+ if (!e) {
2330
+ bc.value = !1;
2331
+ return;
2332
+ }
2333
+ let t = e.getBoundingClientRect();
2334
+ bc.value = t.width > 2 && t.height > 2;
2335
+ }
2336
+ st(() => {
2337
+ xc();
2338
+ let e = new ResizeObserver(() => {
2339
+ xc(), bc.value && (sc(), Ma(), H.value.chart.zoom.keepState || No());
2340
+ });
2341
+ hi.value?.parentNode && e.observe(hi.value.parentNode);
2342
+ }), mt(H, () => {
2343
+ ba();
2344
+ }, { immediate: !0 });
2345
+ let Sc = x(() => {
2346
+ let e = H.value.table.useDialog && !H.value.showTable, t = U.value.showTable;
2347
+ return {
2348
+ component: e ? ci : Ke,
2349
+ title: `${H.value.chart.title.text}${H.value.chart.title.subtitle.text ? `: ${H.value.chart.title.subtitle.text}` : ""}`,
2350
+ props: e ? {
2351
+ backgroundColor: H.value.table.th.backgroundColor,
2352
+ color: H.value.table.th.color,
2353
+ headerColor: H.value.table.th.color,
2354
+ headerBg: H.value.table.th.backgroundColor,
2355
+ isFullscreen: Ii.value,
2356
+ fullscreenParent: hi.value,
2357
+ forcedWidth: Math.min(800, window.innerWidth * .8)
2358
+ } : {
2359
+ hideDetails: !0,
2360
+ config: {
2361
+ open: t,
2362
+ maxHeight: 1e4,
2363
+ body: {
2364
+ backgroundColor: H.value.chart.backgroundColor,
2365
+ color: H.value.chart.color
2366
+ },
2367
+ head: {
2368
+ backgroundColor: H.value.chart.backgroundColor,
2369
+ color: H.value.chart.color
2370
+ }
2371
+ }
2372
+ }
2373
+ };
2374
+ });
2375
+ mt(() => U.value.showTable, (e) => {
2376
+ H.value.showTable || (e && H.value.table.useDialog && Xi.value ? Xi.value.open() : Xi.value && Xi.value.close && Xi.value.close());
2377
+ });
2378
+ function Cc() {
2379
+ U.value.showTable = !1, Ei.value && Ei.value.setTableIconState(!1);
2380
+ }
2381
+ let wc = x(() => Xa.value.map((e) => ({
2382
+ shape: e.type === "bar" ? "square" : e.shape ?? "circle",
2383
+ color: e.color,
2384
+ name: e.name
2385
+ }))), Tc = x(() => H.value.chart.backgroundColor), Ec = x(() => H.value.chart.legend), { exportSvg: Dc, getSvg: Oc } = Fe({
2386
+ svg: z,
2387
+ title: x(() => H.value.chart.title),
2388
+ legend: Ec,
2389
+ legendItems: wc,
2390
+ backgroundColor: Tc
2391
+ });
2392
+ async function kc({ isCb: e }) {
2393
+ Qi.value = !0, await rt();
2394
+ try {
2395
+ if (e) {
2396
+ let { blob: e, url: t, text: n, dataUrl: r } = await Oc();
2397
+ await Promise.resolve(H.value.chart.userOptions.callbacks.svg({
2398
+ blob: e,
2399
+ url: t,
2400
+ text: n,
2401
+ dataUrl: r
2402
+ }));
2403
+ } else await Promise.resolve(Dc());
2404
+ } finally {
2405
+ Qi.value = !1;
2406
+ }
2407
+ }
2408
+ function Ac(e) {
2409
+ if (e?.stage === "start") {
2410
+ Zi.value = !0;
2411
+ return;
2412
+ }
2413
+ if (e?.stage === "end") {
2414
+ Zi.value = !1;
2415
+ return;
2416
+ }
2417
+ La();
2418
+ }
2419
+ async function jc() {
2420
+ if (li("copyAlt", {
2421
+ config: {
2422
+ ...H.value,
2423
+ formattedDates: X.value
2424
+ },
2425
+ dataset: {
2426
+ lines: $.value,
2427
+ bars: Hs.value,
2428
+ plots: Us.value
2429
+ }
2430
+ }), !H.value.chart.userOptions.callbacks.altCopy) {
2431
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
2432
+ return;
2433
+ }
2434
+ await Promise.resolve(H.value.chart.userOptions.callbacks.altCopy({
2435
+ config: {
2436
+ ...H.value,
2437
+ formattedDates: X.value
2438
+ },
2439
+ dataset: {
2440
+ lines: $.value,
2441
+ bars: Hs.value,
2442
+ plots: Us.value
2443
+ }
2444
+ }));
2445
+ }
2446
+ let Mc = O(!1);
2447
+ function Nc() {
2448
+ K.value.end > K.value.start && ($i.value = null), po.value = !0, Mc.value = !0;
2449
+ }
2450
+ function Pc() {
2451
+ $i.value = null, ts(), Mc.value = !1, po.value = !1;
2452
+ }
2453
+ function Fc(e) {
2454
+ if (!z.value || Fi.value || document.activeElement !== z.value) return;
2455
+ let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
2456
+ if (!t && !n || !K.value.end && K.value.end !== 0) return;
2457
+ let r = K.value.end - K.value.start;
2458
+ if (r <= 0) return;
2459
+ e.preventDefault(), e.stopPropagation();
2460
+ let i = $i.value, a = Zo.value;
2461
+ i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : t && (--i, i < 0 && (i = r - 1)) : a !== null && a >= 0 && a < r ? (i = n ? a + 1 : a - 1, i >= r && (i = 0), i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, $i.value = i, Ic(i), tc(!0, i);
2462
+ }
2463
+ function Ic(e) {
2464
+ let t = K.value.end - K.value.start;
2465
+ if (t <= 0) return;
2466
+ let n = Y.value.width / t, r = c(Y.value.left + n * e + n / 2, Y.value.top + Y.value.height / 2, z.value);
2467
+ r && (ea.value = r);
2468
+ }
2469
+ let Lc = x(() => {
2470
+ if (!$s.value) return null;
2471
+ let e = H.value.table.showSum, t = [H.value.table.columnNames.period].concat(Za.value.map((e) => e.name));
2472
+ e && (t = t.concat(H.value.table.columnNames.total));
2473
+ let n = $s.value.body.slice(K.value.start, K.value.end);
2474
+ return {
2475
+ headers: t,
2476
+ rows: n
2477
+ };
2478
+ });
2479
+ return We({
2480
+ getData: is,
2481
+ getImage: as,
2482
+ generatePdf: Ia,
2483
+ generateImage: La,
2484
+ generateSvg: kc,
2485
+ generateCsv: ec,
2486
+ hideSeries: fs,
2487
+ showSeries: ds,
2488
+ toggleStack: wo,
2489
+ toggleTable: nc,
2490
+ toggleLabels: rc,
2491
+ toggleTooltip: ic,
2492
+ toggleAnnotator: ho,
2493
+ toggleFullscreen: ac,
2494
+ copyAlt: jc,
2495
+ resetZoom: Lo
2496
+ }), (r, i) => (D(), C("div", {
2497
+ id: `vue-ui-xy_${L.value}`,
2498
+ class: it(`vue-data-ui-component vue-ui-xy ${Ii.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${H.value.useCssAnimation ? "" : "vue-ui-dna"}`),
2499
+ ref_key: "chart",
2500
+ ref: hi,
2501
+ style: E(`background:${H.value.chart.backgroundColor}; color:${H.value.chart.color};width:100%;font-family:${H.value.chart.fontFamily};${H.value.responsive ? "height: 100%" : ""}`),
2502
+ onMouseenter: i[6] ||= () => mo(!0),
2503
+ onMouseleave: i[7] ||= () => mo(!1),
2504
+ onClick: ns
2505
+ }, [
2506
+ w("div", {
2507
+ id: `chart-instructions-${L.value}`,
2508
+ class: "sr-only"
2509
+ }, [w("p", null, ut(H.value.a11y.translations.keyboardNavigation), 1)], 8, yt),
2510
+ Lc.value?.rows?.length ? (D(), Xe(Je, {
2511
+ key: 0,
2512
+ uid: L.value,
2513
+ head: Lc.value.headers,
2514
+ body: Lc.value.rows,
2515
+ notice: H.value.a11y.translations.tableAvailable,
2516
+ caption: H.value.a11y.translations.tableCaption
2517
+ }, null, 8, [
2518
+ "uid",
2519
+ "head",
2520
+ "body",
2521
+ "notice",
2522
+ "caption"
2523
+ ])) : S("", !0),
2524
+ H.value.chart.userOptions.buttons.annotator && z.value ? (D(), Xe(j(si), {
2525
+ key: 1,
2526
+ svgRef: z.value,
2527
+ backgroundColor: H.value.chart.backgroundColor,
2528
+ color: H.value.chart.color,
2529
+ active: Fi.value,
2530
+ isCursorPointer: ya.value,
2531
+ onClose: ho
2532
+ }, {
2533
+ "annotator-action-close": M(() => [A(r.$slots, "annotator-action-close", {}, void 0, !0)]),
2534
+ "annotator-action-color": M(({ color: e }) => [A(r.$slots, "annotator-action-color", at(T({ color: e })), void 0, !0)]),
2535
+ "annotator-action-draw": M(({ mode: e }) => [A(r.$slots, "annotator-action-draw", at(T({ mode: e })), void 0, !0)]),
2536
+ "annotator-action-undo": M(({ disabled: e }) => [A(r.$slots, "annotator-action-undo", at(T({ disabled: e })), void 0, !0)]),
2537
+ "annotator-action-redo": M(({ disabled: e }) => [A(r.$slots, "annotator-action-redo", at(T({ disabled: e })), void 0, !0)]),
2538
+ "annotator-action-delete": M(({ disabled: e }) => [A(r.$slots, "annotator-action-delete", at(T({ disabled: e })), void 0, !0)]),
2539
+ _: 3
2540
+ }, 8, [
2541
+ "svgRef",
2542
+ "backgroundColor",
2543
+ "color",
2544
+ "active",
2545
+ "isCursorPointer"
2546
+ ])) : S("", !0),
2547
+ hs.value ? (D(), C("div", {
2548
+ key: 2,
2549
+ ref_key: "noTitle",
2550
+ ref: bi,
2551
+ class: "vue-data-ui-no-title-space",
2552
+ style: "height:36px; width: 100%; background:transparent"
2553
+ }, null, 512)) : S("", !0),
2554
+ H.value.chart.title.show ? (D(), C("div", {
2555
+ key: 3,
2556
+ ref_key: "chartTitle",
2557
+ ref: gi,
2558
+ class: "vue-ui-xy-title",
2559
+ style: E(`font-family:${H.value.chart.fontFamily}`)
2560
+ }, [(D(), Xe(Ve, {
2561
+ key: `title_${Vi.value}`,
2562
+ config: {
2563
+ title: {
2564
+ cy: "xy-div-title",
2565
+ ...H.value.chart.title
2566
+ },
2567
+ subtitle: {
2568
+ cy: "xy-div-subtitle",
2569
+ ...H.value.chart.title.subtitle
2570
+ }
2571
+ }
2572
+ }, null, 8, ["config"]))], 4)) : S("", !0),
2573
+ w("div", { id: `legend-top-${L.value}` }, null, 8, bt),
2574
+ H.value.chart.userOptions.show && (Gi.value || Ki.value) ? (D(), Xe(j(ri), {
2575
+ ref_key: "userOptionsRef",
2576
+ ref: Ei,
2577
+ key: `user_options_${zi.value}`,
2578
+ backgroundColor: H.value.chart.backgroundColor,
2579
+ color: H.value.chart.color,
2580
+ isPrinting: j(Pa),
2581
+ isImaging: j(Fa),
2582
+ uid: L.value,
2583
+ hasTooltip: H.value.chart.userOptions.buttons.tooltip && H.value.chart.tooltip.show,
2584
+ hasPdf: H.value.chart.userOptions.buttons.pdf,
2585
+ hasXls: H.value.chart.userOptions.buttons.csv,
2586
+ hasImg: H.value.chart.userOptions.buttons.img,
2587
+ hasSvg: H.value.chart.userOptions.buttons.svg,
2588
+ hasLabel: H.value.chart.userOptions.buttons.labels,
2589
+ hasTable: H.value.chart.userOptions.buttons.table,
2590
+ hasStack: e.dataset.length > 1 && H.value.chart.userOptions.buttons.stack,
2591
+ hasFullscreen: H.value.chart.userOptions.buttons.fullscreen,
2592
+ hasAltCopy: H.value.chart.userOptions.buttons.altCopy,
2593
+ isStacked: U.value.isStacked,
2594
+ isFullscreen: Ii.value,
2595
+ chartElement: r.$refs.chart,
2596
+ position: H.value.chart.userOptions.position,
2597
+ isTooltip: U.value.showTooltip,
2598
+ titles: { ...H.value.chart.userOptions.buttonTitles },
2599
+ hasAnnotator: H.value.chart.userOptions.buttons.annotator,
2600
+ isAnnotation: Fi.value,
2601
+ callbacks: H.value.chart.userOptions.callbacks,
2602
+ tableDialog: H.value.table.useDialog,
2603
+ printScale: H.value.chart.userOptions.print.scale,
2604
+ isCursorPointer: ya.value,
2605
+ onToggleFullscreen: ac,
2606
+ onGeneratePdf: j(Ia),
2607
+ onGenerateCsv: ec,
2608
+ onGenerateImage: Ac,
2609
+ onGenerateSvg: kc,
2610
+ onToggleTable: nc,
2611
+ onToggleLabels: rc,
2612
+ onToggleStack: wo,
2613
+ onToggleTooltip: ic,
2614
+ onToggleAnnotator: ho,
2615
+ onCopyAlt: jc,
2616
+ style: E({ visibility: Gi.value ? Ki.value ? "visible" : "hidden" : "visible" })
2617
+ }, Ze({ _: 2 }, [
2618
+ r.$slots.menuIcon ? {
2619
+ name: "menuIcon",
2620
+ fn: M(({ isOpen: e, color: t }) => [A(r.$slots, "menuIcon", at(T({
2621
+ isOpen: e,
2622
+ color: t
2623
+ })), void 0, !0)]),
2624
+ key: "0"
2625
+ } : void 0,
2626
+ r.$slots.optionTooltip ? {
2627
+ name: "optionTooltip",
2628
+ fn: M(() => [A(r.$slots, "optionTooltip", {}, void 0, !0)]),
2629
+ key: "1"
2630
+ } : void 0,
2631
+ r.$slots.optionPdf ? {
2632
+ name: "optionPdf",
2633
+ fn: M(() => [A(r.$slots, "optionPdf", {}, void 0, !0)]),
2634
+ key: "2"
2635
+ } : void 0,
2636
+ r.$slots.optionCsv ? {
2637
+ name: "optionCsv",
2638
+ fn: M(() => [A(r.$slots, "optionCsv", {}, void 0, !0)]),
2639
+ key: "3"
2640
+ } : void 0,
2641
+ r.$slots.optionImg ? {
2642
+ name: "optionImg",
2643
+ fn: M(() => [A(r.$slots, "optionImg", {}, void 0, !0)]),
2644
+ key: "4"
2645
+ } : void 0,
2646
+ r.$slots.optionSvg ? {
2647
+ name: "optionSvg",
2648
+ fn: M(() => [A(r.$slots, "optionSvg", {}, void 0, !0)]),
2649
+ key: "5"
2650
+ } : void 0,
2651
+ r.$slots.optionTable ? {
2652
+ name: "optionTable",
2653
+ fn: M(() => [A(r.$slots, "optionTable", {}, void 0, !0)]),
2654
+ key: "6"
2655
+ } : void 0,
2656
+ r.$slots.optionLabels ? {
2657
+ name: "optionLabels",
2658
+ fn: M(() => [A(r.$slots, "optionLabels", {}, void 0, !0)]),
2659
+ key: "7"
2660
+ } : void 0,
2661
+ r.$slots.optionStack ? {
2662
+ name: "optionStack",
2663
+ fn: M(({ isStack: e }) => [A(r.$slots, "optionStack", at(T({ isStack: e })), void 0, !0)]),
2664
+ key: "8"
2665
+ } : void 0,
2666
+ r.$slots.optionFullscreen ? {
2667
+ name: "optionFullscreen",
2668
+ fn: M(({ toggleFullscreen: e, isFullscreen: t }) => [A(r.$slots, "optionFullscreen", at(T({
2669
+ toggleFullscreen: e,
2670
+ isFullscreen: t
2671
+ })), void 0, !0)]),
2672
+ key: "9"
2673
+ } : void 0,
2674
+ r.$slots.optionAnnotator ? {
2675
+ name: "optionAnnotator",
2676
+ fn: M(({ toggleAnnotator: e, isAnnotator: t }) => [A(r.$slots, "optionAnnotator", at(T({
2677
+ toggleAnnotator: e,
2678
+ isAnnotator: t
2679
+ })), void 0, !0)]),
2680
+ key: "10"
2681
+ } : void 0,
2682
+ r.$slots.optionAltCopy ? {
2683
+ name: "optionAltCopy",
2684
+ fn: M(({ altCopy: e }) => [A(r.$slots, "optionAltCopy", at(T({ altCopy: e })), void 0, !0)]),
2685
+ key: "11"
2686
+ } : void 0,
2687
+ r.$slots["custom-menu-before"] ? {
2688
+ name: "custom-menu-before",
2689
+ fn: M(() => [A(r.$slots, "custom-menu-before", {}, void 0, !0)]),
2690
+ key: "12"
2691
+ } : void 0,
2692
+ r.$slots["custom-menu-after"] ? {
2693
+ name: "custom-menu-after",
2694
+ fn: M(() => [A(r.$slots, "custom-menu-after", {}, void 0, !0)]),
2695
+ key: "13"
2696
+ } : void 0
2697
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasXls.hasImg.hasSvg.hasLabel.hasTable.hasStack.hasFullscreen.hasAltCopy.isStacked.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.tableDialog.printScale.isCursorPointer.onGeneratePdf.style".split("."))) : S("", !0),
2698
+ w("div", xt, [(D(), C("svg", {
2699
+ ref_key: "svgRef",
2700
+ ref: z,
2701
+ xmlns: "http://www.w3.org/2000/svg",
2702
+ class: it([{
2703
+ "vue-data-ui-fullscreen--on": Ii.value,
2704
+ "vue-data-ui-fulscreen--off": !Ii.value
2705
+ }, "vue-ui-xy-svg vue-data-ui-svg"]),
2706
+ width: "100%",
2707
+ viewBox: Mi.value,
2708
+ style: E({
2709
+ background: "transparent",
2710
+ color: H.value.chart.color,
2711
+ fontFamily: H.value.chart.fontFamily
2712
+ }),
2713
+ "aria-label": ps.value,
2714
+ "aria-describedby": `chart-instructions-${L.value}`,
2715
+ "aria-live": "polite",
2716
+ role: "img",
2717
+ tabindex: "0",
2718
+ preserveAspectRatio: "xMidYMid",
2719
+ onMousemove: es,
2720
+ onMouseleave: ts,
2721
+ onClick: ns,
2722
+ onFocus: Nc,
2723
+ onBlur: Pc,
2724
+ onKeydown: Fc
2725
+ }, [w("g", {
2726
+ ref_key: "G",
2727
+ ref: xi,
2728
+ class: "vue-data-ui-g"
2729
+ }, [
2730
+ $e(j(oi)),
2731
+ r.$slots["chart-background"] ? (D(), C("foreignObject", {
2732
+ key: 0,
2733
+ x: Math.max(0, Y.value?.left),
2734
+ y: Y.value?.top,
2735
+ width: Math.max(0, Y.value?.width),
2736
+ height: Math.max(0, Y.value?.height),
2737
+ style: { pointerEvents: "none" }
2738
+ }, [A(r.$slots, "chart-background", {}, void 0, !0)], 8, Ct)) : S("", !0),
2739
+ Z.value > 0 ? (D(), C("g", wt, [
2740
+ w("g", Tt, [
2741
+ H.value.chart.grid.labels.xAxis.showBaseline ? (D(), C("line", {
2742
+ key: 0,
2743
+ stroke: H.value.chart.grid.stroke,
2744
+ "stroke-width": "1",
2745
+ x1: Y.value?.left,
2746
+ x2: Y.value?.right,
2747
+ y1: j(v)(Y.value?.bottom),
2748
+ y2: j(v)(Y.value?.bottom),
2749
+ "stroke-linecap": "round",
2750
+ style: { animation: "none !important" }
2751
+ }, null, 8, Et)) : S("", !0),
2752
+ U.value.useIndividualScale ? H.value.chart.grid.showHorizontalLines ? (D(!0), C(b, { key: 2 }, k(Ws.value, (e) => (D(), C("g", null, [e.id === P.value && e.yLabels.length ? (D(!0), C(b, { key: 0 }, k(e.yLabels, (t) => (D(), C("line", {
2753
+ x1: Y.value?.left,
2754
+ x2: Y.value?.right,
2755
+ y1: j(v)(t.y),
2756
+ y2: j(v)(t.y),
2757
+ stroke: e.color,
2758
+ "stroke-width": .5,
2759
+ "stroke-linecap": "round",
2760
+ style: { animation: "none !important" }
2761
+ }, null, 8, At))), 256)) : e.yLabels.length ? (D(!0), C(b, { key: 1 }, k(e.yLabels, (e) => (D(), C("line", {
2762
+ x1: Y.value?.left,
2763
+ x2: Y.value?.right,
2764
+ y1: j(v)(e.y),
2765
+ y2: j(v)(e.y),
2766
+ stroke: H.value.chart.grid.stroke,
2767
+ "stroke-width": .5,
2768
+ "stroke-linecap": "round",
2769
+ style: { animation: "none !important" }
2770
+ }, null, 8, jt))), 256)) : S("", !0)]))), 256)) : S("", !0) : (D(), C(b, { key: 1 }, [H.value.chart.grid.labels.yAxis.showBaseline ? (D(), C("line", {
2771
+ key: 0,
2772
+ class: "vue-ui-xy-y-axis",
2773
+ stroke: H.value.chart.grid.stroke,
2774
+ "stroke-width": "1",
2775
+ x1: J.value ? Y.value?.right : Y.value?.left,
2776
+ x2: J.value ? Y.value?.right : Y.value?.left,
2777
+ y1: j(v)(Y.value?.top),
2778
+ y2: j(v)(Y.value?.bottom),
2779
+ "stroke-linecap": "round",
2780
+ style: { animation: "none !important" }
2781
+ }, null, 8, Dt)) : S("", !0), H.value.chart.grid.showHorizontalLines ? (D(), C("g", Ot, [(D(!0), C(b, null, k(Rs.value, (e) => (D(), C("line", {
2782
+ x1: Y.value?.left,
2783
+ x2: Y.value?.right,
2784
+ y1: j(v)(e.y),
2785
+ y2: j(v)(e.y),
2786
+ stroke: H.value.chart.grid.stroke,
2787
+ "stroke-width": .5,
2788
+ "stroke-linecap": "round",
2789
+ style: { animation: "none !important" }
2790
+ }, null, 8, kt))), 256))])) : S("", !0)], 64)),
2791
+ H.value.chart.grid.showVerticalLines ? (D(), C("g", Mt, [w("path", {
2792
+ d: oo.value,
2793
+ "stroke-width": .5,
2794
+ stroke: H.value.chart.grid.stroke,
2795
+ "stroke-linecap": "round",
2796
+ style: { animation: "none !important" }
2797
+ }, null, 8, Nt)])) : S("", !0),
2798
+ H.value.chart.grid.labels.xAxisLabels.show ? (D(), C("g", Pt, [w("path", {
2799
+ d: so.value,
2800
+ stroke: H.value.chart.grid.stroke,
2801
+ "stroke-width": 1,
2802
+ "stroke-linecap": "round",
2803
+ style: { animation: "none !important" }
2804
+ }, null, 8, Ft)])) : S("", !0)
2805
+ ]),
2806
+ (D(!0), C(b, null, k(Hs.value, (e, t) => (D(), C("defs", { key: `def_rect_${t}` }, [r.$slots["bar-gradient"] ? A(r.$slots, "bar-gradient", nt({
2807
+ key: 0,
2808
+ ref_for: !0
2809
+ }, {
2810
+ series: e,
2811
+ positiveId: `rectGradient_pos_${t}_${L.value}`,
2812
+ negativeId: `rectGradient_neg_${t}_${L.value}`
2813
+ }), void 0, !0) : (D(), C(b, { key: 1 }, [w("linearGradient", {
2814
+ id: `rectGradient_pos_${t}_${L.value}`,
2815
+ x2: "0%",
2816
+ y2: "100%"
2817
+ }, [
2818
+ w("stop", {
2819
+ offset: "0%",
2820
+ "stop-color": e.color
2821
+ }, null, 8, Lt),
2822
+ w("stop", {
2823
+ offset: "62%",
2824
+ "stop-color": `${j(d)(e.color, .02)}`
2825
+ }, null, 8, Rt),
2826
+ w("stop", {
2827
+ offset: "100%",
2828
+ "stop-color": `${j(d)(e.color, .05)}`
2829
+ }, null, 8, zt)
2830
+ ], 8, It), w("linearGradient", {
2831
+ id: `rectGradient_neg_${t}_${L.value}`,
2832
+ x2: "0%",
2833
+ y2: "100%"
2834
+ }, [
2835
+ w("stop", {
2836
+ offset: "0%",
2837
+ "stop-color": `${j(d)(e.color, .05)}`
2838
+ }, null, 8, Vt),
2839
+ w("stop", {
2840
+ offset: "38%",
2841
+ "stop-color": `${j(d)(e.color, .02)}`
2842
+ }, null, 8, Ht),
2843
+ w("stop", {
2844
+ offset: "100%",
2845
+ "stop-color": e.color
2846
+ }, null, 8, Ut)
2847
+ ], 8, Bt)], 64))]))), 128)),
2848
+ (D(!0), C(b, null, k(Us.value, (e, t) => (D(), C("defs", { key: `def_plot_${t}` }, [w("radialGradient", {
2849
+ id: `plotGradient_${t}_${L.value}`,
2850
+ cx: "50%",
2851
+ cy: "50%",
2852
+ r: "50%",
2853
+ fx: "50%",
2854
+ fy: "50%"
2855
+ }, [w("stop", {
2856
+ offset: "0%",
2857
+ "stop-color": `${j(d)(e.color, .05)}`
2858
+ }, null, 8, Gt), w("stop", {
2859
+ offset: "100%",
2860
+ "stop-color": e.color
2861
+ }, null, 8, Kt)], 8, Wt)]))), 128)),
2862
+ (D(!0), C(b, null, k($.value, (e, n) => (D(), C(b, { key: `def_line_${e.id}` }, [w("defs", null, [w("radialGradient", {
2863
+ id: `lineGradient_${n}_${L.value}`,
2864
+ cx: "50%",
2865
+ cy: "50%",
2866
+ r: "50%",
2867
+ fx: "50%",
2868
+ fy: "50%"
2869
+ }, [w("stop", {
2870
+ offset: "0%",
2871
+ "stop-color": `${j(d)(e.color, .05)}`
2872
+ }, null, 8, Jt), w("stop", {
2873
+ offset: "100%",
2874
+ "stop-color": e.color
2875
+ }, null, 8, Yt)], 8, qt), r.$slots["area-gradient"] ? A(r.$slots, "area-gradient", nt({
2876
+ key: 0,
2877
+ ref_for: !0
2878
+ }, {
2879
+ series: e,
2880
+ id: `areaGradient_${n}_${L.value}`
2881
+ }), void 0, !0) : (D(), C("linearGradient", {
2882
+ key: 1,
2883
+ id: `areaGradient_${n}_${L.value}`,
2884
+ x1: "0%",
2885
+ x2: "100%",
2886
+ y1: "0%",
2887
+ y2: "0%"
2888
+ }, [w("stop", {
2889
+ offset: "0%",
2890
+ "stop-color": `${j(me)(j(d)(e.color, .03), H.value.line.area.opacity)}`
2891
+ }, null, 8, Zt), w("stop", {
2892
+ offset: "100%",
2893
+ "stop-color": `${j(me)(e.color, H.value.line.area.opacity)}`
2894
+ }, null, 8, Qt)], 8, Xt))]), e.temperatureColors && !e.isFlatTemperatureLine ? (D(), C("defs", $t, [w("linearGradient", {
2895
+ id: `temperature_grad_line_${n}_${L.value}`,
2896
+ gradientTransform: "rotate(90)"
2897
+ }, [(D(!0), C(b, null, k(e.temperatureColors, (r, i) => (D(), C("stop", {
2898
+ key: `temperature_grad_stop_${n}_${i}_${L.value}`,
2899
+ "stop-color": r,
2900
+ offset: j(t)(i, e.temperatureColors.length)
2901
+ }, null, 8, tn))), 128))], 8, en)])) : S("", !0)], 64))), 128)),
2902
+ (D(!0), C(b, null, k(gs.value, (e) => (D(), C("g", null, [e.show ? (D(), C(b, { key: 0 }, [(D(!0), C(b, null, k(e.span, (t, n) => (D(), C("g", null, [w("rect", {
2903
+ style: E({
2904
+ transition: "none",
2905
+ opacity: +(e.from + n >= K.value.start && e.from + n <= K.value.end - 1)
2906
+ }),
2907
+ x: ws(e.from + n - K.value.start),
2908
+ y: Y.value?.top,
2909
+ height: Y.value.height < 0 ? 10 : Y.value.height,
2910
+ width: Ts(e.from + n - K.value.start),
2911
+ fill: j(me)(e.color, e.opacity)
2912
+ }, null, 12, nn)]))), 256)), (D(!0), C(b, null, k(e.span, (t, n) => (D(), C("g", null, [e.caption.text && n === 0 ? (D(), C("foreignObject", {
2913
+ key: 0,
2914
+ x: ws(e.from + n - K.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - Os(e.span) / 2),
2915
+ y: Y.value?.top + e.caption.offsetY,
2916
+ style: E({
2917
+ overflow: "visible",
2918
+ opacity: +(e.to >= K.value.start && e.from < K.value.end)
2919
+ }),
2920
+ height: "1",
2921
+ width: e.caption.width === "auto" ? Os(e.span) : e.caption.width
2922
+ }, [w("div", { style: E(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`) }, ut(e.caption.text), 5)], 12, rn)) : S("", !0)]))), 256))], 64)) : S("", !0)]))), 256)),
2923
+ po.value ? (D(), C("g", an, [(D(!0), C(b, null, k(Z.value, (e, t) => (D(), C("g", { key: `tooltip_trap_highlighter_${t}` }, [w("rect", {
2924
+ x: ws(t),
2925
+ y: Y.value?.top,
2926
+ height: Y.value.height < 0 ? 10 : Y.value.height,
2927
+ width: Ds(t),
2928
+ fill: [
2929
+ R.value,
2930
+ B.value,
2931
+ Ri.value
2932
+ ].includes(t) ? j(me)(H.value.chart.highlighter.color, H.value.chart.highlighter.opacity) : "transparent",
2933
+ style: {
2934
+ transition: "none !important",
2935
+ animation: "none !important"
2936
+ }
2937
+ }, null, 8, on)]))), 128))])) : S("", !0),
2938
+ Hs.value.length ? (D(!0), C(b, { key: 1 }, k(Hs.value, (e, t) => (D(), C("g", {
2939
+ key: `serie_bar_${e.id}`,
2940
+ class: it(`serie_bar_${t}`),
2941
+ style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
2942
+ }, [(D(!0), C(b, null, k(e.plots, (n, i) => (D(), C("g", { key: `bar_plot_${t}_${i}` }, [
2943
+ Ro(n.value) ? (D(), C("rect", {
2944
+ key: 0,
2945
+ x: Jo(n) + Ps.value / 2,
2946
+ y: U.value.useIndividualScale ? Xo(n) : Yo(n),
2947
+ height: U.value.useIndividualScale ? Math.abs(Go(n)) : Math.abs(Wo(n)),
2948
+ width: Ns.value - Ps.value,
2949
+ rx: H.value.bar.borderRadius,
2950
+ fill: H.value.bar.useGradient ? n.value >= 0 ? `url(#rectGradient_pos_${t}_${L.value})` : `url(#rectGradient_neg_${t}_${L.value})` : e.color,
2951
+ stroke: H.value.bar.border.useSerieColor ? e.color : H.value.bar.border.stroke,
2952
+ "stroke-width": H.value.bar.border.strokeWidth,
2953
+ style: E({ transition: j(wa) || !H.value.bar.showTransition ? void 0 : `all ${H.value.bar.transitionDurationMs}ms ease-in-out` })
2954
+ }, null, 12, sn)) : S("", !0),
2955
+ Ro(n.value) && r.$slots.pattern ? (D(), C("rect", {
2956
+ key: 1,
2957
+ x: Jo(n) - Ps.value / 2,
2958
+ y: U.value.useIndividualScale ? Xo(n) : Yo(n),
2959
+ height: U.value.useIndividualScale ? Math.abs(Go(n)) : Math.abs(Wo(n)),
2960
+ width: Ns.value - Ps.value,
2961
+ rx: H.value.bar.borderRadius,
2962
+ fill: `url(#pattern_${L.value}_${e.slotAbsoluteIndex})`,
2963
+ stroke: H.value.bar.border.useSerieColor ? e.color : H.value.bar.border.stroke,
2964
+ "stroke-width": H.value.bar.border.strokeWidth,
2965
+ style: E({ transition: j(wa) || !H.value.bar.showTransition ? void 0 : `all ${H.value.bar.transitionDurationMs}ms ease-in-out` })
2966
+ }, null, 12, cn)) : S("", !0),
2967
+ n.comment && H.value.chart.comments.show ? (D(), C("foreignObject", {
2968
+ key: 2,
2969
+ style: { overflow: "visible" },
2970
+ height: "12",
2971
+ width: Ns.value + H.value.chart.comments.width,
2972
+ x: Jo(n) - H.value.chart.comments.width / 2 + H.value.chart.comments.offsetX,
2973
+ y: j(y)(n.y) + H.value.chart.comments.offsetY + 6
2974
+ }, [A(r.$slots, "plot-comment", { plot: {
2975
+ ...n,
2976
+ color: e.color,
2977
+ seriesIndex: t,
2978
+ datapointIndex: i
2979
+ } }, void 0, !0)], 8, ln)) : S("", !0)
2980
+ ]))), 128))], 6))), 128)) : S("", !0),
2981
+ !U.value.useIndividualScale && H.value.chart.grid.labels.zeroLine.show ? (D(), C("line", {
2982
+ key: 2,
2983
+ stroke: H.value.chart.grid.stroke,
2984
+ "stroke-width": "1",
2985
+ x1: Y.value?.left,
2986
+ x2: Y.value?.right,
2987
+ y1: j(v)(Uo.value),
2988
+ y2: j(v)(Uo.value),
2989
+ "stroke-linecap": "round",
2990
+ style: { animation: "none !important" }
2991
+ }, null, 8, un)) : S("", !0),
2992
+ H.value.chart.highlighter.useLine && (![null, void 0].includes(B.value) || ![null, void 0].includes(R.value)) ? (D(), C("g", dn, [w("line", {
2993
+ x1: Ss((B.value === null ? 0 : B.value) || (R.value === null ? 0 : R.value)),
2994
+ x2: Ss((B.value === null ? 0 : B.value) || (R.value === null ? 0 : R.value)),
2995
+ y1: j(v)(Y.value?.top),
2996
+ y2: j(v)(Y.value?.bottom),
2997
+ stroke: H.value.chart.highlighter.color,
2998
+ "stroke-width": H.value.chart.highlighter.lineWidth,
2999
+ "stroke-dasharray": H.value.chart.highlighter.lineDasharray,
3000
+ "stroke-linecap": "round",
3001
+ style: {
3002
+ transition: "none !important",
3003
+ animation: "none !important",
3004
+ "pointer-events": "none"
3005
+ }
3006
+ }, null, 8, fn)])) : S("", !0),
3007
+ H.value.chart.grid.frame.show ? (D(), C("rect", {
3008
+ key: 4,
3009
+ style: {
3010
+ pointerEvents: "none",
3011
+ transition: "none",
3012
+ animation: "none !important"
3013
+ },
3014
+ x: Math.max(0, Y.value?.left),
3015
+ y: Y.value?.top,
3016
+ width: Math.max(0, Y.value?.width),
3017
+ height: Y.value.height < 0 ? 0 : Y.value.height,
3018
+ fill: "transparent",
3019
+ stroke: H.value.chart.grid.frame.stroke,
3020
+ "stroke-width": H.value.chart.grid.frame.strokeWidth,
3021
+ "stroke-linecap": H.value.chart.grid.frame.strokeLinecap,
3022
+ "stroke-linejoin": H.value.chart.grid.frame.strokeLinejoin,
3023
+ "stroke-dasharray": H.value.chart.grid.frame.strokeDasharray
3024
+ }, null, 8, pn)) : S("", !0),
3025
+ H.value.chart.grid.labels.show ? (D(), C("g", {
3026
+ key: 5,
3027
+ ref_key: "scaleLabels",
3028
+ ref: Ti
3029
+ }, [U.value.useIndividualScale ? (D(), C(b, { key: 0 }, [(D(!0), C(b, null, k(Ws.value, (e) => (D(), C("g", null, [w("line", {
3030
+ x1: U.value.isStacked ? J.value ? Y.value.right : Y.value.left : J.value ? e.x : e.x - Y.value.individualOffsetX,
3031
+ x2: U.value.isStacked ? J.value ? Y.value.right : Y.value.left : J.value ? e.x : e.x - Y.value.individualOffsetX,
3032
+ y1: U.value.isStacked ? j(v)(Y.value?.bottom - e.yOffset - e.individualHeight) : j(v)(Y.value?.top),
3033
+ y2: U.value.isStacked ? j(v)(Y.value?.bottom - e.yOffset) : j(v)(Y.value?.bottom),
3034
+ stroke: e.color,
3035
+ "stroke-width": H.value.chart.grid.stroke,
3036
+ "stroke-linecap": "round",
3037
+ style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
3038
+ }, null, 12, mn)]))), 256)), (D(!0), C(b, null, k(Ws.value, (e) => (D(), C("g", { style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .3 : 1};transition:opacity 0.2s ease-in-out`) }, [
3039
+ w("text", {
3040
+ fill: e.color,
3041
+ "font-size": V.value.dataLabels * .8,
3042
+ "text-anchor": "middle",
3043
+ transform: `translate(${U.value.isStacked ? J.value ? Y.value.right + H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + H.value.chart.grid.labels.yAxis.labelWidth + Y.value.individualOffsetX + H.value.chart.grid.labels.axis.yLabelOffsetX : Y.value.left - H.value.chart.grid.labels.yAxis.crosshairSize - H.value.chart.grid.labels.yAxis.scaleValueOffsetX - H.value.chart.grid.labels.yAxis.labelWidth - H.value.chart.grid.labels.axis.yLabelOffsetX : J.value ? e.x + H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 + H.value.chart.grid.labels.yAxis.labelWidth + H.value.chart.grid.labels.axis.yLabelOffsetX : e.x - V.value.dataLabels * .8 / 2}, ${U.value.isStacked ? Y.value?.bottom - e.yOffset - e.individualHeight / 2 : Y.value?.top + Y.value.height / 2}) rotate(-90)`
3044
+ }, ut(e.name) + " " + ut(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `- ${e.scaleLabel}` : ""), 9, hn),
3045
+ (D(!0), C(b, null, k(e.yLabels, (t, n) => (D(), C(b, null, [H.value.chart.grid.labels.yAxis.showCrosshairs ? (D(), C("line", {
3046
+ key: 0,
3047
+ x1: U.value.isStacked ? J.value ? Y.value.right : Y.value.left : J.value ? e.x : e.x + 3 - H.value.chart.grid.labels.yAxis.crosshairSize - Y.value.individualOffsetX,
3048
+ x2: U.value.isStacked ? J.value ? Y.value.right + H.value.chart.grid.labels.yAxis.crosshairSize : Y.value.left - H.value.chart.grid.labels.yAxis.crosshairSize : J.value ? e.x + H.value.chart.grid.labels.yAxis.crosshairSize : e.x - Y.value.individualOffsetX,
3049
+ y1: j(v)(t.y),
3050
+ y2: j(v)(t.y),
3051
+ stroke: e.color,
3052
+ "stroke-width": 1,
3053
+ "stroke-linecap": "round",
3054
+ style: { animation: "none !important" }
3055
+ }, null, 8, gn)) : S("", !0)], 64))), 256)),
3056
+ (D(!0), C(b, null, k(e.yLabels, (t, n) => (D(), C("text", {
3057
+ transform: `translate(${U.value.isStacked ? J.value ? Y.value.right + H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : Y.value.left - H.value.chart.grid.labels.yAxis.crosshairSize - H.value.chart.grid.labels.yAxis.scaleValueOffsetX - 5 : J.value ? e.x + H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : e.x - 5 - Y.value.individualOffsetX}, ${j(v)(t.y) + V.value.dataLabels / 3})`,
3058
+ "text-anchor": J.value ? "start" : "end",
3059
+ "font-size": V.value.dataLabels,
3060
+ fill: e.color
3061
+ }, ut(j(fe)(H.value.chart.grid.labels.yAxis.formatter, t.value, j(a)({
3062
+ p: t.prefix,
3063
+ v: t.value,
3064
+ s: t.suffix,
3065
+ r: H.value.chart.grid.labels.yAxis.rounding
3066
+ }), {
3067
+ datapoint: t.datapoint,
3068
+ seriesIndex: n
3069
+ })), 9, _n))), 256))
3070
+ ], 4))), 256))], 64)) : (D(!0), C(b, { key: 1 }, k(Rs.value, (e, t) => (D(), C("g", { key: `yLabel_${t}` }, [Ro(e) && e.value >= q.value.min && e.value <= q.value.max && H.value.chart.grid.labels.yAxis.showCrosshairs ? (D(), C("line", {
3071
+ key: 0,
3072
+ x1: J.value ? Y.value?.right : Y.value?.left,
3073
+ x2: J.value ? Y.value?.right + H.value.chart.grid.labels.yAxis.crosshairSize : Y.value?.left - H.value.chart.grid.labels.yAxis.crosshairSize,
3074
+ y1: j(v)(e.y),
3075
+ y2: j(v)(e.y),
3076
+ stroke: H.value.chart.grid.stroke,
3077
+ "stroke-width": "1",
3078
+ "stroke-linecap": "round",
3079
+ style: { animation: "none !important" }
3080
+ }, null, 8, vn)) : S("", !0), e.value >= q.value.min && e.value <= q.value.max ? (D(), C("text", {
3081
+ key: 1,
3082
+ transform: `translate(${J.value ? Y.value.right + H.value.chart.grid.labels.yAxis.crosshairSize + H.value.chart.grid.labels.yAxis.scaleValueOffsetX + 5 : Y.value.scaleLabelX - H.value.chart.grid.labels.yAxis.crosshairSize}, ${j(y)(e.y + V.value.dataLabels / 3)})`,
3083
+ "font-size": V.value.dataLabels,
3084
+ "text-anchor": J.value ? "start" : "end",
3085
+ fill: H.value.chart.grid.labels.color
3086
+ }, ut(Ro(e.value) ? j(fe)(H.value.chart.grid.labels.yAxis.formatter, e.value, j(a)({
3087
+ p: e.prefix,
3088
+ v: e.value,
3089
+ s: e.suffix,
3090
+ r: H.value.chart.grid.labels.yAxis.rounding
3091
+ })) : ""), 9, yn)) : S("", !0)]))), 128))], 512)) : S("", !0),
3092
+ (D(!0), C(b, null, k(Us.value, (e, t) => (D(), C("g", {
3093
+ key: `serie_plot_${e.id}`,
3094
+ class: it(`serie_plot_${t}`),
3095
+ style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3096
+ }, [(D(!0), C(b, null, k(e.plots, (n, i) => (D(), C("g", { key: `circle_plot_${t}_${i}` }, [n && Ro(n.value) ? (D(), Xe(Ue, {
3097
+ key: 0,
3098
+ shape: [
3099
+ "triangle",
3100
+ "square",
3101
+ "diamond",
3102
+ "pentagon",
3103
+ "hexagon",
3104
+ "star"
3105
+ ].includes(e.shape) ? e.shape : "circle",
3106
+ color: H.value.plot.useGradient ? `url(#plotGradient_${t}_${L.value})` : H.value.plot.dot.useSerieColor ? e.color : H.value.plot.dot.fill,
3107
+ plot: {
3108
+ x: j(y)(n.x),
3109
+ y: j(y)(n.y)
3110
+ },
3111
+ radius: B.value !== null && B.value === i || R.value !== null && R.value === i ? (ha.value.plot || 6) * 1.5 : ha.value.plot || 6,
3112
+ stroke: H.value.plot.dot.useSerieColor ? H.value.chart.backgroundColor : e.color,
3113
+ strokeWidth: H.value.plot.dot.strokeWidth,
3114
+ transition: j(wa) || !H.value.plot.showTransition || B.value !== null && B.value === i || R.value !== null && R.value === i ? void 0 : `all ${H.value.plot.transitionDurationMs}ms ease-in-out`
3115
+ }, null, 8, [
3116
+ "shape",
3117
+ "color",
3118
+ "plot",
3119
+ "radius",
3120
+ "stroke",
3121
+ "strokeWidth",
3122
+ "transition"
3123
+ ])) : S("", !0), n.comment && H.value.chart.comments.show ? (D(), C("foreignObject", {
3124
+ key: 1,
3125
+ style: { overflow: "visible" },
3126
+ height: "12",
3127
+ width: H.value.chart.comments.width,
3128
+ x: n.x - H.value.chart.comments.width / 2 + H.value.chart.comments.offsetX,
3129
+ y: n.y + H.value.chart.comments.offsetY + 6
3130
+ }, [w("div", xn, [A(r.$slots, "plot-comment", { plot: {
3131
+ ...n,
3132
+ color: e.color,
3133
+ seriesIndex: t,
3134
+ datapointIndex: i
3135
+ } }, void 0, !0)])], 8, bn)) : S("", !0)]))), 128))], 6))), 128)),
3136
+ (D(!0), C(b, null, k($.value, (e, t) => (D(), C("g", {
3137
+ key: `serie_line_${e.id}`,
3138
+ class: it(`serie_line_${t}`),
3139
+ style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3140
+ }, [e.smooth && e.plots.length > 1 && e.curve ? (D(), C("path", {
3141
+ key: 0,
3142
+ d: `M${e.curve}`,
3143
+ stroke: H.value.chart.backgroundColor,
3144
+ "stroke-width": H.value.line.strokeWidth + 1,
3145
+ "stroke-dasharray": e.dashed ? H.value.line.strokeWidth * 2 : 0,
3146
+ fill: "none",
3147
+ style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3148
+ }, null, 12, Sn)) : e.plots.length > 1 && e.straight ? (D(), C("path", {
3149
+ key: 1,
3150
+ d: `M${e.straight}`,
3151
+ stroke: H.value.chart.backgroundColor,
3152
+ "stroke-width": H.value.line.strokeWidth + 1,
3153
+ "stroke-dasharray": e.dashed ? H.value.line.strokeWidth * 2 : 0,
3154
+ fill: "none",
3155
+ "stroke-linecap": "round",
3156
+ "stroke-linejoin": "round",
3157
+ style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3158
+ }, null, 12, Cn)) : S("", !0)], 6))), 128)),
3159
+ r.$slots.pattern ? (D(), C("defs", wn, [(D(!0), C(b, null, k(Ya.value, (e, t) => A(r.$slots, "pattern", nt({ key: `serie_pattern_slot_${e.id}` }, { ref_for: !0 }, {
3160
+ ...e,
3161
+ seriesIndex: e.slotAbsoluteIndex,
3162
+ patternId: `pattern_${L.value}_${t}`
3163
+ }), void 0, !0)), 128))])) : S("", !0),
3164
+ Gs.value.length && !U.value.isStacked ? (D(), C("g", Tn, [(D(!0), C(b, null, k(Gs.value, (e) => (D(), C("path", {
3165
+ key: e.key,
3166
+ d: e.d,
3167
+ fill: e.color,
3168
+ "fill-opacity": H.value.line.interLine.fillOpacity,
3169
+ stroke: "none",
3170
+ "pointer-events": "none",
3171
+ style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3172
+ }, null, 12, En))), 128))])) : S("", !0),
3173
+ (D(!0), C(b, null, k($.value, (e, t) => (D(), C("g", {
3174
+ key: `serie_line_above_${e.id}`,
3175
+ class: it(`serie_line_${t}`),
3176
+ style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3177
+ }, [
3178
+ e.useArea && e.plots.length > 1 ? (D(), C("g", Dn, [e.smooth ? (D(!0), C(b, { key: 0 }, k(e.curveAreas, (n, i) => (D(), C(b, { key: i }, [n ? (D(), C("path", {
3179
+ key: 0,
3180
+ d: n,
3181
+ fill: H.value.line.area.useGradient ? `url(#areaGradient_${t}_${L.value})` : j(me)(e.color, H.value.line.area.opacity),
3182
+ style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3183
+ }, null, 12, On)) : S("", !0), r.$slots.pattern && n ? (D(), C("path", {
3184
+ key: 1,
3185
+ d: n,
3186
+ fill: `url(#pattern_${L.value}_${e.slotAbsoluteIndex})`,
3187
+ style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3188
+ }, null, 12, kn)) : S("", !0)], 64))), 128)) : (D(!0), C(b, { key: 1 }, k(e.area.split(";"), (n, i) => (D(), C(b, { key: i }, [n ? (D(), C("path", {
3189
+ key: 0,
3190
+ d: `M${n}Z`,
3191
+ fill: H.value.line.area.useGradient ? `url(#areaGradient_${t}_${L.value})` : j(me)(e.color, H.value.line.area.opacity),
3192
+ style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3193
+ }, null, 12, An)) : S("", !0), r.$slots.pattern && n ? (D(), C("path", {
3194
+ key: 1,
3195
+ d: `M${n}Z`,
3196
+ fill: `url(#pattern_${L.value}_${e.slotAbsoluteIndex})`,
3197
+ style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3198
+ }, null, 12, jn)) : S("", !0)], 64))), 128))])) : S("", !0),
3199
+ !e.hasDashedSegments && e.smooth && e.plots.length > 1 && e.curve ? (D(), C("path", {
3200
+ key: 1,
3201
+ d: `M${e.curve}`,
3202
+ stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${L.value})` : e.color,
3203
+ "stroke-width": H.value.line.strokeWidth,
3204
+ "stroke-dasharray": e.dashed ? H.value.line.strokeWidth * 2 : 0,
3205
+ fill: "none",
3206
+ "stroke-linecap": "round",
3207
+ style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3208
+ }, null, 12, Mn)) : e.hasDashedSegments ? (D(), C(b, { key: 2 }, [e.smooth ? (D(!0), C(b, { key: 0 }, k(e.dashedSmooth, (n) => (D(), C("path", {
3209
+ key: n.path,
3210
+ fill: "none",
3211
+ "stroke-linecap": "round",
3212
+ "stroke-linejoin": "round",
3213
+ d: `M ${n.path}`,
3214
+ stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${L.value})` : e.color,
3215
+ "stroke-width": H.value.line.strokeWidth,
3216
+ "stroke-dasharray": n.dashed ? H.value.line.strokeWidth * 2 : 0
3217
+ }, null, 8, Nn))), 128)) : (D(!0), C(b, { key: 1 }, k(e.dashedStraight, (n) => (D(), C("path", {
3218
+ key: n.path,
3219
+ fill: "none",
3220
+ "stroke-linecap": "round",
3221
+ "stroke-linejoin": "round",
3222
+ d: `M ${n.path}`,
3223
+ stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${L.value})` : e.color,
3224
+ "stroke-width": H.value.line.strokeWidth,
3225
+ "stroke-dasharray": n.dashed ? H.value.line.strokeWidth * 2 : 0
3226
+ }, null, 8, Pn))), 128))], 64)) : e.plots.length > 1 && e.straight ? (D(), C("path", {
3227
+ key: 3,
3228
+ d: `M${e.straight}`,
3229
+ stroke: e.temperatureColors && !e.isFlatTemperatureLine ? `url(#temperature_grad_line_${t}_${L.value})` : e.color,
3230
+ "stroke-width": H.value.line.strokeWidth,
3231
+ "stroke-dasharray": e.dashed ? H.value.line.strokeWidth * 2 : 0,
3232
+ fill: "none",
3233
+ "stroke-linecap": "round",
3234
+ "stroke-linejoin": "round",
3235
+ style: E({ transition: j(wa) || !H.value.line.showTransition ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out` })
3236
+ }, null, 12, Fn)) : S("", !0),
3237
+ (D(!0), C(b, null, k(e.plots, (n, i) => (D(), C(b, { key: `circle_line_${t}_${i}` }, [!ms.value.linePlot && n && Ro(n.value) || ms.value.linePlot && n && Ro(n.value) && (B.value !== null && B.value === i || R.value !== null && R.value === i) || Bs(e.plots, i) ? (D(), Xe(Ue, {
3238
+ key: 0,
3239
+ shape: [
3240
+ "triangle",
3241
+ "square",
3242
+ "diamond",
3243
+ "pentagon",
3244
+ "hexagon",
3245
+ "star"
3246
+ ].includes(e.shape) ? e.shape : "circle",
3247
+ color: H.value.line.useGradient ? `url(#lineGradient_${t}_${L.value})` : H.value.line.dot.useSerieColor ? e.color : H.value.line.dot.fill,
3248
+ plot: {
3249
+ x: j(y)(n.x),
3250
+ y: j(y)(n.y)
3251
+ },
3252
+ radius: B.value !== null && B.value === i || R.value !== null && R.value === i ? (ha.value.line || 6) * 1.5 : (Bs(e.plots, i), ha.value.line || 6),
3253
+ stroke: H.value.line.dot.useSerieColor ? H.value.chart.backgroundColor : e.color,
3254
+ strokeWidth: H.value.line.dot.strokeWidth,
3255
+ transition: j(wa) || !H.value.line.showTransition || B.value !== null && B.value === i || R.value !== null && R.value === i ? void 0 : `all ${H.value.line.transitionDurationMs}ms ease-in-out`
3256
+ }, null, 8, [
3257
+ "shape",
3258
+ "color",
3259
+ "plot",
3260
+ "radius",
3261
+ "stroke",
3262
+ "strokeWidth",
3263
+ "transition"
3264
+ ])) : S("", !0), n.comment && H.value.chart.comments.show ? (D(), C("foreignObject", {
3265
+ key: 1,
3266
+ style: { overflow: "visible" },
3267
+ height: "12",
3268
+ width: H.value.chart.comments.width,
3269
+ x: n.x - H.value.chart.comments.width / 2 + H.value.chart.comments.offsetX,
3270
+ y: n.y + H.value.chart.comments.offsetY + 6
3271
+ }, [w("div", Ln, [A(r.$slots, "plot-comment", { plot: {
3272
+ ...n,
3273
+ color: e.color,
3274
+ seriesIndex: t,
3275
+ datapointIndex: i
3276
+ } }, void 0, !0)])], 8, In)) : S("", !0)], 64))), 128))
3277
+ ], 6))), 128)),
3278
+ (H.value.bar.labels.show || H.value.bar.serieName.show) && U.value.dataLabels.show ? (D(), C("g", Rn, [(D(!0), C(b, null, k(Hs.value, (e, t) => (D(), C(b, { key: `xLabel_bar_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_bar_${t}_${r}` }, [n && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || B.value !== null && B.value === r || R.value !== null && R.value === r) && H.value.bar.labels.show ? (D(), C("text", {
3279
+ key: 0,
3280
+ "text-anchor": yc({
3281
+ plot: n,
3282
+ type: "bar"
3283
+ }),
3284
+ "font-size": V.value.plotLabels,
3285
+ transform: _c({ plot: n }),
3286
+ fill: H.value.bar.labels.color,
3287
+ stroke: H.value.chart.backgroundColor,
3288
+ "paint-order": "stroke",
3289
+ style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
3290
+ innerHTML: gc({
3291
+ serie: e,
3292
+ plot: n,
3293
+ type: "bar"
3294
+ })
3295
+ }, null, 12, zn)) : S("", !0), n && H.value.bar.serieName.show ? (D(), C("text", {
3296
+ key: 1,
3297
+ x: U.value.useIndividualScale && U.value.isStacked ? n.x + Ko.value.line / 2 : n.x + qo() * 1.1,
3298
+ y: n.y + (n.value > 0 ? H.value.bar.serieName.offsetY : -H.value.bar.serieName.offsetY * 3),
3299
+ "text-anchor": "middle",
3300
+ "font-size": V.value.plotLabels,
3301
+ fill: H.value.bar.serieName.useSerieColor ? e.color : H.value.bar.serieName.color,
3302
+ "font-weight": H.value.bar.serieName.bold ? "bold" : "normal",
3303
+ style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3304
+ }, ut(H.value.bar.serieName.useAbbreviation ? j(ve)({
3305
+ source: e.name,
3306
+ length: H.value.bar.serieName.abbreviationSize
3307
+ }) : e.name), 13, Bn)) : S("", !0)], 64))), 128))], 64))), 128))])) : S("", !0),
3308
+ H.value.plot.labels.show && U.value.dataLabels.show ? (D(), C("g", Vn, [(D(!0), C(b, null, k(Us.value, (e, t) => (D(), C(b, { key: `xLabel_plot_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_plot_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || B.value !== null && B.value === r || R.value !== null && R.value === r ? (D(), C("text", {
3309
+ key: 0,
3310
+ transform: vc({
3311
+ plot: n,
3312
+ type: "plot"
3313
+ }),
3314
+ "text-anchor": yc({
3315
+ plot: n,
3316
+ type: "plot"
3317
+ }),
3318
+ "font-size": V.value.plotLabels,
3319
+ fill: H.value.plot.labels.color,
3320
+ stroke: H.value.chart.backgroundColor,
3321
+ "paint-order": "stroke",
3322
+ style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
3323
+ innerHTML: gc({
3324
+ serie: e,
3325
+ plot: n,
3326
+ type: "plot"
3327
+ })
3328
+ }, null, 12, Hn)) : S("", !0)], 64))), 128))], 64))), 128))])) : (D(), C("g", Un, [(D(!0), C(b, null, k(Us.value, (e, t) => (D(), C(b, { key: `xLabel_plot_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_plot_${t}_${r}` }, [H.value.plot.tag.followValue ? (D(), C(b, { key: 1 }, [[
3329
+ R.value,
3330
+ B.value,
3331
+ Ri.value
3332
+ ].includes(r) && e.useTag ? (D(), C("line", {
3333
+ key: 0,
3334
+ class: "vue-ui-xy-tag-plot",
3335
+ x1: Y.value?.left,
3336
+ x2: Y.value?.right,
3337
+ y1: n.y,
3338
+ y2: n.y,
3339
+ "stroke-width": 1,
3340
+ "stroke-linecap": "round",
3341
+ "stroke-dasharray": "2",
3342
+ stroke: e.color
3343
+ }, null, 8, Jn)) : S("", !0)], 64)) : (D(), C(b, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (D(), C("foreignObject", {
3344
+ key: 0,
3345
+ x: n.x,
3346
+ y: n.y - 20,
3347
+ height: 24,
3348
+ width: "150",
3349
+ style: E(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3350
+ }, [w("div", {
3351
+ style: E(`padding: 3px; background:${j(me)(e.color, 80)};color:${j(xe)(e.color)};width:fit-content;font-size:${V.value.plotLabels}px;border-radius: 2px;`),
3352
+ innerHTML: j(fe)(H.value.plot.tag.formatter, n.value, e.name, {
3353
+ datapoint: n,
3354
+ seriesIndex: r,
3355
+ serieName: e.name
3356
+ })
3357
+ }, null, 12, Gn)], 12, Wn)) : S("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (D(), C("foreignObject", {
3358
+ key: 1,
3359
+ x: n.x - e.name.length * (V.value.plotLabels / 2),
3360
+ y: n.y - 20,
3361
+ height: 24,
3362
+ width: "150",
3363
+ style: E(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3364
+ }, [w("div", {
3365
+ style: E(`padding: 3px; background:${j(me)(e.color, 80)};color:${j(xe)(e.color)};width:fit-content;font-size:${V.value.plotLabels}px;border-radius: 2px;`),
3366
+ innerHTML: j(fe)(H.value.plot.tag.formatter, n.value, e.name, {
3367
+ datapoint: n,
3368
+ seriesIndex: r,
3369
+ serieName: e.name
3370
+ })
3371
+ }, null, 12, qn)], 12, Kn)) : S("", !0)], 64))], 64))), 128))], 64))), 128))])),
3372
+ H.value.line.labels.show && U.value.dataLabels.show ? (D(), C("g", Yn, [(D(!0), C(b, null, k($.value, (e, t) => (D(), C(b, { key: `xLabel_line_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_line_${t}_${r}` }, [n && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || B.value !== null && B.value === r || R.value !== null && R.value === r ? (D(), C("text", {
3373
+ key: 0,
3374
+ transform: vc({
3375
+ plot: n,
3376
+ type: "line"
3377
+ }),
3378
+ "text-anchor": yc({
3379
+ plot: n,
3380
+ type: "line"
3381
+ }),
3382
+ "font-size": V.value.plotLabels,
3383
+ fill: H.value.line.labels.color,
3384
+ stroke: H.value.chart.backgroundColor,
3385
+ "paint-order": "stroke",
3386
+ style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`),
3387
+ innerHTML: gc({
3388
+ serie: e,
3389
+ plot: n,
3390
+ type: "line"
3391
+ })
3392
+ }, null, 12, Xn)) : S("", !0)], 64))), 128))], 64))), 128))])) : (D(), C("g", Zn, [(D(!0), C(b, null, k($.value, (e, t) => (D(), C(b, { key: `xLabel_line_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_line_${t}_${r}` }, [H.value.line.tag.followValue ? (D(), C(b, { key: 1 }, [[
3393
+ R.value,
3394
+ B.value,
3395
+ Ri.value
3396
+ ].includes(r) && e.useTag ? (D(), C("line", {
3397
+ key: 0,
3398
+ class: "vue-ui-xy-tag-line",
3399
+ x1: Y.value?.left,
3400
+ x2: Y.value?.right,
3401
+ y1: n.y,
3402
+ y2: n.y,
3403
+ "stroke-width": 1,
3404
+ "stroke-linecap": "round",
3405
+ "stroke-dasharray": "2",
3406
+ stroke: e.color
3407
+ }, null, 8, nr)) : S("", !0)], 64)) : (D(), C(b, { key: 0 }, [n && r === 0 && e.useTag && e.useTag === "start" ? (D(), C("foreignObject", {
3408
+ key: 0,
3409
+ x: n.x,
3410
+ y: n.y - 20,
3411
+ height: 24,
3412
+ width: "150",
3413
+ style: E(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3414
+ }, [w("div", {
3415
+ style: E(`padding: 3px; background:${j(me)(e.color, 80)};color:${j(xe)(e.color)};width:fit-content;font-size:${V.value.plotLabels}px;border-radius: 2px;`),
3416
+ innerHTML: j(fe)(H.value.line.tag.formatter, n.value, e.name, {
3417
+ datapoint: n,
3418
+ seriesIndex: r,
3419
+ serieName: e.name
3420
+ })
3421
+ }, null, 12, $n)], 12, Qn)) : S("", !0), n && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (D(), C("foreignObject", {
3422
+ key: 1,
3423
+ x: n.x,
3424
+ y: n.y - 20,
3425
+ height: 24,
3426
+ width: "150",
3427
+ style: E(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3428
+ }, [w("div", {
3429
+ style: E(`padding: 3px; background:${j(me)(e.color, 80)};color:${j(xe)(e.color)};width:fit-content;font-size:${V.value.plotLabels}px;border-radius: 2px;`),
3430
+ innerHTML: j(fe)(H.value.line.tag.formatter, n.value, e.name, {
3431
+ datapoint: n,
3432
+ seriesIndex: r,
3433
+ serieName: e.name
3434
+ })
3435
+ }, null, 12, tr)], 12, er)) : S("", !0)], 64))], 64))), 128))], 64))), 128))])),
3436
+ (D(!0), C(b, null, k($.value, (e, t) => (D(), C(b, { key: `xLabel_line_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_line_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (D(), C("text", {
3437
+ key: 0,
3438
+ x: n.x - V.value.plotLabels,
3439
+ y: n.y,
3440
+ "font-size": V.value.plotLabels,
3441
+ "text-anchor": "end",
3442
+ fill: e.color,
3443
+ innerHTML: j(Ee)({
3444
+ content: e.name,
3445
+ fontSize: V.value.plotLabels,
3446
+ fill: e.color,
3447
+ x: n.x - V.value.plotLabels,
3448
+ y: n.y,
3449
+ maxWords: 2
3450
+ }),
3451
+ style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3452
+ }, null, 12, rr)) : S("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (D(), C("text", {
3453
+ key: 1,
3454
+ x: n.x + V.value.plotLabels,
3455
+ y: n.y,
3456
+ "font-size": V.value.plotLabels,
3457
+ "text-anchor": "start",
3458
+ fill: e.color,
3459
+ innerHTML: j(Ee)({
3460
+ content: e.name,
3461
+ fontSize: V.value.plotLabels,
3462
+ fill: e.color,
3463
+ x: n.x + V.value.plotLabels,
3464
+ y: n.y,
3465
+ maxWords: 2
3466
+ }),
3467
+ style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3468
+ }, null, 12, ir)) : S("", !0)], 64))), 128))], 64))), 128)),
3469
+ (D(!0), C(b, null, k(Us.value, (e, t) => (D(), C(b, { key: `xLabel_plot_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `xLabel_plot_${t}_${r}` }, [n && r === 0 && e.showSerieName && e.showSerieName === "start" ? (D(), C("text", {
3470
+ key: 0,
3471
+ x: n.x - V.value.plotLabels,
3472
+ y: n.y,
3473
+ "font-size": V.value.plotLabels,
3474
+ "text-anchor": "end",
3475
+ fill: e.color,
3476
+ innerHTML: j(Ee)({
3477
+ content: e.name,
3478
+ fontSize: V.value.plotLabels,
3479
+ fill: e.color,
3480
+ x: n.x - V.value.plotLabels,
3481
+ y: n.y,
3482
+ maxWords: 2
3483
+ }),
3484
+ style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3485
+ }, null, 12, ar)) : S("", !0), n && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (D(), C("text", {
3486
+ key: 1,
3487
+ x: n.x + V.value.plotLabels,
3488
+ y: n.y,
3489
+ "font-size": V.value.plotLabels,
3490
+ "text-anchor": "start",
3491
+ fill: e.color,
3492
+ innerHTML: j(Ee)({
3493
+ content: e.name,
3494
+ fontSize: V.value.plotLabels,
3495
+ fill: e.color,
3496
+ x: n.x + V.value.plotLabels,
3497
+ y: n.y,
3498
+ maxWords: 2
3499
+ }),
3500
+ style: E(`opacity:${P.value ? P.value === e.groupId ? 1 : .2 : 1};transition:opacity 0.2s ease-in-out`)
3501
+ }, null, 12, or)) : S("", !0)], 64))), 128))], 64))), 128)),
3502
+ (D(!0), C(b, null, k([
3503
+ ...Us.value,
3504
+ ...$.value,
3505
+ ...Hs.value
3506
+ ], (e, t) => (D(), C(b, { key: `progression-${t}` }, [Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(j(ge)(e.plots).trend) ? (D(), C("g", sr, [
3507
+ w("defs", null, [w("marker", {
3508
+ id: `progression_arrow_${t}`,
3509
+ markerWidth: "9",
3510
+ markerHeight: "9",
3511
+ viewBox: "-1 -1 9 9",
3512
+ markerUnits: "userSpaceOnUse",
3513
+ refX: "7",
3514
+ refY: 7 / 2,
3515
+ orient: "auto",
3516
+ overflow: "visible"
3517
+ }, [w("polygon", {
3518
+ points: "0,0 7,3.5 0,7",
3519
+ fill: e.color,
3520
+ stroke: H.value.chart.backgroundColor,
3521
+ "stroke-width": "1",
3522
+ "stroke-linejoin": "round"
3523
+ }, null, 8, lr)], 8, cr)]),
3524
+ e.plots.length > 1 ? (D(), C("line", {
3525
+ key: 0,
3526
+ x1: j(ge)(e.plots).x1 + (e.type === "bar" ? qo() : 0),
3527
+ x2: j(ge)(e.plots).x2 + (e.type === "bar" ? qo() : 0),
3528
+ y1: j(v)(j(ge)(e.plots).y1),
3529
+ y2: j(v)(j(ge)(e.plots).y2),
3530
+ "stroke-width": 1,
3531
+ stroke: H.value.chart.backgroundColor,
3532
+ "stroke-dasharray": 2,
3533
+ "stroke-linecap": "round",
3534
+ "stroke-linejoin": "round",
3535
+ "marker-end": `url(#progression_arrow_${t})`
3536
+ }, null, 8, ur)) : S("", !0),
3537
+ e.plots.length > 1 ? (D(), C("line", {
3538
+ key: 1,
3539
+ x1: j(ge)(e.plots).x1 + (e.type === "bar" ? qo() : 0),
3540
+ x2: j(ge)(e.plots).x2 + (e.type === "bar" ? qo() : 0),
3541
+ y1: j(v)(j(ge)(e.plots).y1),
3542
+ y2: j(v)(j(ge)(e.plots).y2),
3543
+ "stroke-width": 1,
3544
+ stroke: e.color,
3545
+ "stroke-dasharray": 2,
3546
+ "stroke-linecap": "round",
3547
+ "stroke-linejoin": "round",
3548
+ "marker-end": `url(#progression_arrow_${t})`
3549
+ }, null, 8, dr)) : S("", !0),
3550
+ e.plots.length > 1 ? (D(), C("text", {
3551
+ key: 2,
3552
+ "text-anchor": "middle",
3553
+ x: j(ge)(e.plots).x2 + (e.type === "bar" ? qo() : 0),
3554
+ y: j(ge)(e.plots).y2 - 12,
3555
+ "font-size": V.value.plotLabels,
3556
+ fill: e.color,
3557
+ stroke: H.value.chart.backgroundColor,
3558
+ "stroke-width": 4,
3559
+ "stroke-linecap": "round",
3560
+ "stroke-linejoin": "round",
3561
+ "paint-order": "stroke fill"
3562
+ }, ut(j(a)({
3563
+ v: j(ge)(e.plots).trend * 100,
3564
+ s: "%",
3565
+ r: 2
3566
+ })), 9, fr)) : S("", !0)
3567
+ ])) : S("", !0)], 64))), 128)),
3568
+ U.value.useIndividualScale && !U.value.isStacked ? (D(), C(b, { key: 13 }, [w("defs", null, [(D(!0), C(b, null, k(Ws.value, (e, t) => (D(), C("linearGradient", {
3569
+ id: `individual_scale_gradient_${L.value}_${t}`,
3570
+ x1: J.value ? "100%" : "0%",
3571
+ x2: J.value ? "0%" : "100%",
3572
+ y1: "0%",
3573
+ y2: "0%"
3574
+ }, [w("stop", {
3575
+ offset: "0%",
3576
+ "stop-color": H.value.chart.backgroundColor,
3577
+ "stop-opacity": "0"
3578
+ }, null, 8, mr), w("stop", {
3579
+ offset: "100%",
3580
+ "stop-color": e.color,
3581
+ "stop-opacity": "0.2"
3582
+ }, null, 8, hr)], 8, pr))), 256))]), (D(!0), C(b, null, k(Ws.value, (e, t) => (D(), C("rect", {
3583
+ x: J.value ? e.x : e.x - H.value.chart.grid.labels.yAxis.labelWidth - Y.value.individualOffsetX,
3584
+ y: Y.value?.top,
3585
+ width: (J.value, H.value.chart.grid.labels.yAxis.labelWidth + Y.value.individualOffsetX),
3586
+ height: Y.value.height < 0 ? 10 : Y.value.height,
3587
+ fill: P.value === e.groupId ? `url(#individual_scale_gradient_${L.value}_${t})` : "transparent",
3588
+ onMouseenter: (t) => P.value = e.groupId,
3589
+ onMouseleave: i[0] ||= (e) => P.value = null
3590
+ }, null, 40, gr))), 256))], 64)) : S("", !0),
3591
+ w("g", null, [H.value.chart.grid.labels.axis.yLabel && !U.value.useIndividualScale ? (D(), C("text", {
3592
+ key: 0,
3593
+ ref_key: "yAxisLabel",
3594
+ ref: Ci,
3595
+ "font-size": V.value.yAxis,
3596
+ fill: H.value.chart.grid.labels.color,
3597
+ transform: `translate(${J.value ? Y.value.right + Y.value.scaleLabelsOffset + H.value.chart.grid.labels.axis.yLabelOffsetX + V.value.yAxis : H.value.chart.grid.labels.axis.fontSize + H.value.chart.grid.labels.axis.yLabelOffsetX}, ${Y.value?.top + Y.value.height / 2}) rotate(-90)`,
3598
+ "text-anchor": "middle",
3599
+ style: { transition: "none" }
3600
+ }, ut(H.value.chart.grid.labels.axis.yLabel), 9, _r)) : S("", !0), H.value.chart.grid.labels.axis.xLabel ? (D(), C("text", {
3601
+ key: 1,
3602
+ ref_key: "xAxisLabel",
3603
+ ref: Si,
3604
+ "text-anchor": "middle",
3605
+ x: F.value / 2,
3606
+ y: ji.value - 3,
3607
+ "font-size": V.value.yAxis,
3608
+ fill: H.value.chart.grid.labels.color
3609
+ }, ut(H.value.chart.grid.labels.axis.xLabel), 9, vr)) : S("", !0)]),
3610
+ H.value.chart.grid.labels.xAxisLabels.show ? (D(), C("g", {
3611
+ key: 14,
3612
+ ref_key: "timeLabelsEls",
3613
+ ref: wi
3614
+ }, [r.$slots["time-label"] ? (D(!0), C(b, { key: 0 }, k(bo.value, (e, t) => A(r.$slots, "time-label", nt({
3615
+ key: `time_label_${e.id}`,
3616
+ ref_for: !0
3617
+ }, {
3618
+ x: Ss(t),
3619
+ y: Y.value?.bottom,
3620
+ fontSize: V.value.xAxis,
3621
+ fill: H.value.chart.grid.labels.xAxisLabels.color,
3622
+ transform: `translate(${Ss(t)}, ${Y.value?.bottom + V.value.xAxis * 1.3 + H.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
3623
+ absoluteIndex: e.absoluteIndex,
3624
+ content: e.text,
3625
+ textAnchor: H.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : H.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3626
+ show: e && e.text
3627
+ }), void 0, !0)), 128)) : (D(!0), C(b, { key: 1 }, k(bo.value, (e, t) => (D(), C("g", { key: `time_label_${t}` }, [e && e.text ? (D(), C(b, { key: 0 }, [String(e.text).includes("\n") ? (D(), C("text", {
3628
+ key: 1,
3629
+ class: "vue-data-ui-time-label",
3630
+ "text-anchor": H.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : H.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3631
+ "font-size": V.value.xAxis,
3632
+ fill: H.value.chart.grid.labels.xAxisLabels.color,
3633
+ transform: `translate(${Ss(t)}, ${Y.value?.bottom + V.value.xAxis * 1.5}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
3634
+ style: E({ cursor: co() && ya.value ? "pointer" : "default" }),
3635
+ innerHTML: j(n)({
3636
+ content: String(e.text),
3637
+ fontSize: V.value.xAxis,
3638
+ fill: H.value.chart.grid.labels.xAxisLabels.color,
3639
+ x: 0,
3640
+ y: 0
3641
+ }),
3642
+ onClick: () => So(e, t)
3643
+ }, null, 12, br)) : (D(), C("text", {
3644
+ key: 0,
3645
+ class: "vue-data-ui-time-label",
3646
+ "text-anchor": H.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : H.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
3647
+ "font-size": V.value.xAxis,
3648
+ fill: H.value.chart.grid.labels.xAxisLabels.color,
3649
+ transform: `translate(${Ss(t)}, ${Y.value?.bottom + V.value.xAxis * 1.5}), rotate(${H.value.chart.grid.labels.xAxisLabels.rotation})`,
3650
+ style: E({ cursor: co() && ya.value ? "pointer" : "default" }),
3651
+ onClick: () => So(e, t)
3652
+ }, ut(e.text || ""), 13, yr))], 64)) : S("", !0)]))), 128))], 512)) : S("", !0),
3653
+ zs.value.length && !U.value.isStacked ? (D(), C("g", xr, [(D(!0), C(b, null, k(zs.value, (e) => (D(), C("g", { key: e.uid }, [
3654
+ e.yTop && e.show && isFinite(e.yTop) ? (D(), C("line", {
3655
+ key: 0,
3656
+ x1: e.x1,
3657
+ y1: e.yTop,
3658
+ x2: e.x2,
3659
+ y2: e.yTop,
3660
+ stroke: e.config.line.stroke,
3661
+ "stroke-width": e.config.line.strokeWidth,
3662
+ "stroke-dasharray": e.config.line.strokeDasharray,
3663
+ "stroke-linecap": "round",
3664
+ style: { animation: "none !important" }
3665
+ }, null, 8, Sr)) : S("", !0),
3666
+ e.yBottom && e.show && isFinite(e.yBottom) ? (D(), C("line", {
3667
+ key: 1,
3668
+ x1: e.x1,
3669
+ y1: e.yBottom,
3670
+ x2: e.x2,
3671
+ y2: e.yBottom,
3672
+ stroke: e.config.line.stroke,
3673
+ "stroke-width": e.config.line.strokeWidth,
3674
+ "stroke-dasharray": e.config.line.strokeDasharray,
3675
+ "stroke-linecap": "round",
3676
+ style: { animation: "none !important" }
3677
+ }, null, 8, Cr)) : S("", !0),
3678
+ e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (D(), C("rect", {
3679
+ key: 2,
3680
+ y: Math.min(e.yTop, e.yBottom),
3681
+ x: e.x1,
3682
+ width: Y.value.width,
3683
+ height: j(y)(e.areaHeight, 0),
3684
+ fill: j(me)(e.config.area.fill, e.config.area.opacity),
3685
+ style: { animation: "none !important" }
3686
+ }, null, 8, wr)) : S("", !0),
3687
+ e.config.label.text && e.show && isFinite(e._box.y) ? (D(), C("rect", nt({
3688
+ key: 3,
3689
+ class: "vue-ui-xy-annotation-label-box"
3690
+ }, { ref_for: !0 }, e._box, { style: {
3691
+ animation: "none !important",
3692
+ transition: "none !important"
3693
+ } }), null, 16)) : S("", !0),
3694
+ e.config.label.text && e.show && isFinite(e._text.y) ? (D(), C("text", {
3695
+ key: 4,
3696
+ id: e.id,
3697
+ class: "vue-ui-xy-annotation-label",
3698
+ x: e._text.x,
3699
+ y: e._text.y,
3700
+ "font-size": e.config.label.fontSize,
3701
+ fill: e.config.label.color,
3702
+ "text-anchor": e.config.label.textAnchor
3703
+ }, ut(e.config.label.text), 9, Tr)) : S("", !0)
3704
+ ]))), 128))])) : S("", !0),
3705
+ H.value.chart.timeTag.show && (![null, void 0].includes(B.value) || ![null, void 0].includes(R.value)) ? (D(), C("g", Er, [(D(), C("foreignObject", {
3706
+ x: mc(),
3707
+ y: Y.value?.bottom,
3708
+ width: "200",
3709
+ height: "40",
3710
+ style: { overflow: "visible !important" }
3711
+ }, [w("div", {
3712
+ ref_key: "timeTagEl",
3713
+ ref: uc,
3714
+ class: "vue-ui-xy-time-tag",
3715
+ style: E(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${H.value.chart.timeTag.backgroundColor};color:${H.value.chart.timeTag.color};font-size:${H.value.chart.timeTag.fontSize}px`),
3716
+ innerHTML: hc.value
3717
+ }, null, 12, Or)], 8, Dr)), w("circle", {
3718
+ cx: Ss((B.value === null ? 0 : B.value) || (R.value === null ? 0 : R.value)),
3719
+ cy: Y.value?.bottom,
3720
+ r: H.value.chart.timeTag.circleMarker.radius,
3721
+ fill: H.value.chart.timeTag.circleMarker.color
3722
+ }, null, 8, kr)])) : S("", !0)
3723
+ ])) : S("", !0),
3724
+ Aa.value ? (D(), C("rect", nt({ key: 2 }, Na.value, {
3725
+ "data-start": K.value.start,
3726
+ "data-end": K.value.end
3727
+ }), null, 16, Ar)) : S("", !0),
3728
+ A(r.$slots, "svg", { svg: {
3729
+ ...la.value,
3730
+ slicer: K.value,
3731
+ isPrintingImg: j(Pa) || j(Fa) || Zi.value,
3732
+ isPrintingSvg: Qi.value,
3733
+ data: [
3734
+ ...$.value,
3735
+ ...Hs.value,
3736
+ ...Us.value
3737
+ ],
3738
+ drawingArea: Y.value
3739
+ } }, void 0, !0)
3740
+ ], 512)], 46, St)), r.$slots.hint ? (D(), C("div", jr, [A(r.$slots, "hint", at(T({
3741
+ hint: H.value.a11y.translations.keyboardNavigation,
3742
+ isVisible: Mc.value
3743
+ })), void 0, !0)])) : S("", !0)]),
3744
+ r.$slots.watermark ? (D(), C("div", Mr, [A(r.$slots, "watermark", at(T({ isPrinting: j(Pa) || j(Fa) || Zi.value || Qi.value })), void 0, !0)])) : S("", !0),
3745
+ (D(!0), C(b, null, k($.value, (e, t) => (D(), C(b, { key: `tag_line_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `tag_line_${t}_${r}` }, [[
3746
+ R.value,
3747
+ B.value,
3748
+ Ri.value
3749
+ ].includes(r) && e.useTag && e.useTag === "end" && H.value.line.tag.followValue ? (D(), C("div", {
3750
+ key: 0,
3751
+ ref_for: !0,
3752
+ ref: (e) => fo(t, r, e, "right", "line"),
3753
+ class: "vue-ui-xy-tag",
3754
+ "data-tag": "right",
3755
+ style: E({
3756
+ position: "fixed",
3757
+ top: j(p)({
3758
+ svgElement: z.value,
3759
+ x: Y.value?.right + H.value.line.tag.fontSize / 1.5,
3760
+ y: n.y,
3761
+ element: qi.value[`${t}_${r}_right_line`],
3762
+ position: "right"
3763
+ })?.top + "px",
3764
+ left: j(p)({
3765
+ svgElement: z.value,
3766
+ x: Y.value?.right + H.value.line.tag.fontSize / 1.5,
3767
+ y: n.y,
3768
+ element: qi.value[`${t}_${r}_right_line`],
3769
+ position: "right"
3770
+ })?.left + "px",
3771
+ height: "fit-content",
3772
+ width: "fit-content",
3773
+ background: e.color,
3774
+ color: j(xe)(e.color),
3775
+ padding: "0 6px",
3776
+ fontSize: H.value.line.tag.fontSize + "px",
3777
+ opacity: 1
3778
+ })
3779
+ }, [(D(), C("svg", Nr, [w("path", {
3780
+ d: "M 0,10 10,0 10,20 Z",
3781
+ fill: e.color,
3782
+ stroke: "none"
3783
+ }, null, 8, Pr)])), w("div", {
3784
+ class: "vue-ui-xy-tag-content",
3785
+ innerHTML: j(fe)(H.value.line.tag.formatter, n.value, e.name, {
3786
+ datapoint: n,
3787
+ seriesIndex: r,
3788
+ serieName: e.name
3789
+ })
3790
+ }, null, 8, Fr)], 4)) : S("", !0), [
3791
+ R.value,
3792
+ B.value,
3793
+ Ri.value
3794
+ ].includes(r) && e.useTag && e.useTag === "start" && H.value.line.tag.followValue ? (D(), C("div", {
3795
+ key: 1,
3796
+ ref_for: !0,
3797
+ ref: (e) => fo(t, r, e, "left", "line"),
3798
+ class: "vue-ui-xy-tag",
3799
+ "data-tag": "left",
3800
+ style: E({
3801
+ position: "fixed",
3802
+ top: j(p)({
3803
+ svgElement: z.value,
3804
+ x: Y.value?.left - H.value.line.tag.fontSize / 1.5,
3805
+ y: n.y,
3806
+ element: qi.value[`${t}_${r}_left_line`],
3807
+ position: "left"
3808
+ })?.top + "px",
3809
+ left: j(p)({
3810
+ svgElement: z.value,
3811
+ x: Y.value?.left - H.value.line.tag.fontSize / 1.5,
3812
+ y: n.y,
3813
+ element: qi.value[`${t}_${r}_left_line`],
3814
+ position: "left"
3815
+ })?.left + "px",
3816
+ height: "fit-content",
3817
+ width: "fit-content",
3818
+ background: e.color,
3819
+ color: j(xe)(e.color),
3820
+ padding: "0 6px",
3821
+ fontSize: H.value.line.tag.fontSize + "px",
3822
+ opacity: 1
3823
+ })
3824
+ }, [(D(), C("svg", Ir, [w("path", {
3825
+ d: "M 0,0 10,10 0,20 Z",
3826
+ fill: e.color,
3827
+ stroke: "none"
3828
+ }, null, 8, Lr)])), w("div", {
3829
+ class: "vue-ui-xy-tag-content",
3830
+ innerHTML: j(fe)(H.value.line.tag.formatter, n.value, e.name, {
3831
+ datapoint: n,
3832
+ seriesIndex: r,
3833
+ serieName: e.name
3834
+ })
3835
+ }, null, 8, Rr)], 4)) : S("", !0)], 64))), 128))], 64))), 128)),
3836
+ (D(!0), C(b, null, k(Us.value, (e, t) => (D(), C(b, { key: `tag_plot_${e.id}` }, [(D(!0), C(b, null, k(e.plots, (n, r) => (D(), C(b, { key: `tag_plot_${t}_${r}` }, [[
3837
+ R.value,
3838
+ B.value,
3839
+ Ri.value
3840
+ ].includes(r) && e.useTag && e.useTag === "end" && H.value.plot.tag.followValue ? (D(), C("div", {
3841
+ key: 0,
3842
+ ref_for: !0,
3843
+ ref: (e) => fo(t, r, e, "right", "plot"),
3844
+ class: "vue-ui-xy-tag",
3845
+ "data-tag": "right",
3846
+ style: E({
3847
+ position: "fixed",
3848
+ top: j(p)({
3849
+ svgElement: z.value,
3850
+ x: Y.value?.right + H.value.plot.tag.fontSize / 1.5,
3851
+ y: n.y,
3852
+ element: qi.value[`${t}_${r}_right_plot`],
3853
+ position: "right"
3854
+ })?.top + "px",
3855
+ left: j(p)({
3856
+ svgElement: z.value,
3857
+ x: Y.value?.right + H.value.plot.tag.fontSize / 1.5,
3858
+ y: n.y,
3859
+ element: qi.value[`${t}_${r}_right_plot`],
3860
+ position: "right"
3861
+ })?.left + "px",
3862
+ height: "fit-content",
3863
+ width: "fit-content",
3864
+ background: e.color,
3865
+ color: j(xe)(e.color),
3866
+ padding: "0 6px",
3867
+ fontSize: H.value.plot.tag.fontSize + "px",
3868
+ opacity: 1
3869
+ })
3870
+ }, [(D(), C("svg", zr, [w("path", {
3871
+ d: "M 0,10 10,0 10,20 Z",
3872
+ fill: e.color,
3873
+ stroke: "none"
3874
+ }, null, 8, Br)])), w("div", {
3875
+ class: "vue-ui-xy-tag-content",
3876
+ innerHTML: j(fe)(H.value.plot.tag.formatter, n.value, e.name, {
3877
+ datapoint: n,
3878
+ seriesIndex: r,
3879
+ serieName: e.name
3880
+ })
3881
+ }, null, 8, Vr)], 4)) : S("", !0), [
3882
+ R.value,
3883
+ B.value,
3884
+ Ri.value
3885
+ ].includes(r) && e.useTag && e.useTag === "start" && H.value.plot.tag.followValue ? (D(), C("div", {
3886
+ key: 1,
3887
+ ref_for: !0,
3888
+ ref: (e) => fo(t, r, e, "left", "plot"),
3889
+ class: "vue-ui-xy-tag",
3890
+ "data-tag": "left",
3891
+ style: E({
3892
+ position: "fixed",
3893
+ top: j(p)({
3894
+ svgElement: z.value,
3895
+ x: Y.value?.left - H.value.plot.tag.fontSize / 1.5,
3896
+ y: n.y,
3897
+ element: qi.value[`${t}_${r}_left_plot`],
3898
+ position: "left"
3899
+ })?.top + "px",
3900
+ left: j(p)({
3901
+ svgElement: z.value,
3902
+ x: Y.value?.left - H.value.plot.tag.fontSize / 1.5,
3903
+ y: n.y,
3904
+ element: qi.value[`${t}_${r}_left_plot`],
3905
+ position: "left"
3906
+ })?.left + "px",
3907
+ height: "fit-content",
3908
+ width: "fit-content",
3909
+ background: e.color,
3910
+ color: j(xe)(e.color),
3911
+ padding: "0 6px",
3912
+ fontSize: H.value.plot.tag.fontSize + "px",
3913
+ opacity: 1
3914
+ })
3915
+ }, [(D(), C("svg", Hr, [w("path", {
3916
+ d: "M 0,0 10,10 0,20 Z",
3917
+ fill: e.color,
3918
+ stroke: "none"
3919
+ }, null, 8, Ur)])), w("div", {
3920
+ class: "vue-ui-xy-tag-content",
3921
+ innerHTML: j(fe)(H.value.plot.tag.formatter, n.value, e.name, {
3922
+ datapoint: n,
3923
+ seriesIndex: r,
3924
+ serieName: e.name
3925
+ })
3926
+ }, null, 8, Wr)], 4)) : S("", !0)], 64))), 128))], 64))), 128)),
3927
+ H.value.chart.zoom.show && G.value > 6 && va.value && ko.value ? (D(), Xe(Ge, {
3928
+ key: 6,
3929
+ ref_key: "chartSlicer",
3930
+ ref: _i,
3931
+ uuid: L.value,
3932
+ allMinimaps: Is.value,
3933
+ background: H.value.chart.zoom.color,
3934
+ borderColor: H.value.chart.backgroundColor,
3935
+ customFormat: H.value.chart.zoom.customFormat,
3936
+ cutNullValues: H.value.line.cutNullValues,
3937
+ enableRangeHandles: H.value.chart.zoom.enableRangeHandles,
3938
+ enableSelectionDrag: H.value.chart.zoom.enableSelectionDrag,
3939
+ end: K.value.end,
3940
+ focusOnDrag: H.value.chart.zoom.focusOnDrag,
3941
+ focusRangeRatio: H.value.chart.zoom.focusRangeRatio,
3942
+ fontSize: H.value.chart.zoom.fontSize,
3943
+ useResetSlot: H.value.chart.zoom.useResetSlot,
3944
+ immediate: !H.value.chart.zoom.preview.enable,
3945
+ inputColor: H.value.chart.zoom.color,
3946
+ isPreview: Aa.value,
3947
+ labelLeft: X.value[0] ? X.value[0].text : "",
3948
+ labelRight: X.value.at(-1) ? X.value.at(-1).text : "",
3949
+ max: G.value,
3950
+ min: 0,
3951
+ minimap: Fs.value,
3952
+ minimapCompact: H.value.chart.zoom.minimap.compact,
3953
+ minimapFrameColor: H.value.chart.zoom.minimap.frameColor,
3954
+ minimapIndicatorColor: H.value.chart.zoom.minimap.indicatorColor,
3955
+ minimapLineColor: H.value.chart.zoom.minimap.lineColor,
3956
+ minimapMerged: H.value.chart.zoom.minimap.merged,
3957
+ minimapSelectedColor: H.value.chart.zoom.minimap.selectedColor,
3958
+ minimapSelectedColorOpacity: H.value.chart.zoom.minimap.selectedColorOpacity,
3959
+ minimapSelectedIndex: B.value,
3960
+ minimapSelectionRadius: H.value.chart.zoom.minimap.selectionRadius,
3961
+ preciseLabels: Xs.value.length ? Xs.value : go.value,
3962
+ refreshEndPoint: H.value.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => Oa(e.series).length)) : H.value.chart.zoom.endIndex + 1,
3963
+ refreshStartPoint: H.value.chart.zoom.startIndex === null ? 0 : H.value.chart.zoom.startIndex,
3964
+ selectColor: H.value.chart.zoom.highlightColor,
3965
+ selectedSeries: Ls.value,
3966
+ smoothMinimap: H.value.chart.zoom.minimap.smooth,
3967
+ start: K.value.start,
3968
+ textColor: H.value.chart.color,
3969
+ timeLabels: go.value,
3970
+ usePreciseLabels: H.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !H.value.chart.zoom.useDefaultFormat,
3971
+ valueEnd: K.value.end,
3972
+ valueStart: K.value.start,
3973
+ verticalHandles: H.value.chart.zoom.minimap.verticalHandles,
3974
+ minScale: H.value.chart.grid.labels.yAxis.scaleMin,
3975
+ maxScale: H.value.chart.grid.labels.yAxis.scaleMax,
3976
+ maxWidth: H.value.chart.zoom.maxWidth,
3977
+ additionalMinimapHeight: H.value.chart.zoom.minimap.additionalHeight,
3978
+ handleType: H.value.chart.zoom.minimap.handleType,
3979
+ handleIconColor: H.value.chart.zoom.minimap.handleIconColor,
3980
+ handleBorderWidth: H.value.chart.zoom.minimap.handleBorderWidth,
3981
+ handleBorderColor: H.value.chart.zoom.minimap.handleBorderColor,
3982
+ handleFill: H.value.chart.zoom.minimap.handleFill,
3983
+ handleWidth: H.value.chart.zoom.minimap.handleWidth,
3984
+ isCursorPointer: ya.value,
3985
+ onFutureEnd: i[1] ||= (e) => ja("end", e),
3986
+ onFutureStart: i[2] ||= (e) => ja("start", e),
3987
+ onReset: Lo,
3988
+ onTrapMouse: Co,
3989
+ "onUpdate:end": Io,
3990
+ "onUpdate:start": Fo
3991
+ }, {
3992
+ "reset-action": M(({ reset: e }) => [A(r.$slots, "reset-action", at(T({ reset: e })), void 0, !0)]),
3993
+ _: 3
3994
+ }, 8, /* @__PURE__ */ "uuid.allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.useResetSlot.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.smoothMinimap.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.minScale.maxScale.maxWidth.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth.isCursorPointer".split("."))) : S("", !0),
3995
+ w("div", { id: `legend-bottom-${L.value}` }, null, 8, Gr),
3996
+ Yi.value && (H.value.chart.legend.show || r.$slots.legend) ? (D(), Xe(Ye, {
3997
+ key: 7,
3998
+ to: H.value.chart.legend.position === "top" ? `#legend-top-${L.value}` : `#legend-bottom-${L.value}`
3999
+ }, [w("div", {
4000
+ ref_key: "chartLegend",
4001
+ ref: vi
4002
+ }, [A(r.$slots, "legend", { legend: Xa.value }, () => [H.value.chart.legend.show ? (D(), C("div", {
4003
+ key: 0,
4004
+ class: "vue-ui-xy-legend",
4005
+ style: E({ fontSize: `var(--legend-font-size, ${H.value.chart.legend.fontSize ?? 14}px)` })
4006
+ }, [H.value.chart.legend.selectAllToggle.show && Xa.value.length > 2 && !j(wa) ? (D(), Xe(qe, {
4007
+ key: 0,
4008
+ backgroundColor: H.value.chart.legend.selectAllToggle.backgroundColor,
4009
+ color: H.value.chart.legend.selectAllToggle.color,
4010
+ fontSize: H.value.chart.legend.fontSize,
4011
+ checked: I.value.length > 0,
4012
+ onToggle: os
4013
+ }, null, 8, [
4014
+ "backgroundColor",
4015
+ "color",
4016
+ "fontSize",
4017
+ "checked"
4018
+ ])) : S("", !0), (D(!0), C(b, null, k(Xa.value, (e, t) => (D(), C("div", {
4019
+ key: `div_legend_item_${t}`,
4020
+ onClick: (t) => ls(e),
4021
+ onKeydown: (t) => ss(t, e),
4022
+ role: "button",
4023
+ tabindex: "0",
4024
+ class: it({
4025
+ "vue-ui-xy-legend-item-alone": Xa.value.length === 1,
4026
+ "vue-ui-xy-legend-item": !0,
4027
+ "vue-ui-xy-legend-item-segregated": I.value.includes(e.id)
4028
+ }),
4029
+ style: E({ cursor: ya.value ? "pointer" : "default" })
4030
+ }, [Pi.value[e.type] === "line" ? (D(), C("svg", qr, [w("rect", {
4031
+ x: "0",
4032
+ y: "7.5",
4033
+ rx: "1.5",
4034
+ stroke: H.value.chart.backgroundColor,
4035
+ "stroke-width": .5,
4036
+ height: "3",
4037
+ width: "20",
4038
+ fill: e.color
4039
+ }, null, 8, Jr), $e(Ue, {
4040
+ plot: {
4041
+ x: 10,
4042
+ y: 9
4043
+ },
4044
+ radius: 4,
4045
+ color: e.color,
4046
+ shape: [
4047
+ "triangle",
4048
+ "square",
4049
+ "diamond",
4050
+ "pentagon",
4051
+ "hexagon",
4052
+ "star"
4053
+ ].includes(e.shape) ? e.shape : "circle",
4054
+ stroke: H.value.chart.backgroundColor,
4055
+ strokeWidth: .5
4056
+ }, null, 8, [
4057
+ "color",
4058
+ "shape",
4059
+ "stroke"
4060
+ ])])) : Pi.value[e.type] === "bar" ? (D(), C("svg", Yr, [Pi.value[e.type] === "bar" && r.$slots.pattern ? (D(), C("rect", {
4061
+ key: 0,
4062
+ x: "4",
4063
+ y: "4",
4064
+ rx: "1",
4065
+ height: "32",
4066
+ width: "32",
4067
+ stroke: "none",
4068
+ fill: e.color
4069
+ }, null, 8, Xr)) : S("", !0), Pi.value[e.type] === "bar" ? (D(), C("rect", {
4070
+ key: 1,
4071
+ x: "4",
4072
+ y: "4",
4073
+ rx: "1",
4074
+ height: "32",
4075
+ width: "32",
4076
+ stroke: "none",
4077
+ fill: r.$slots.pattern ? `url(#pattern_${L.value}_${e.slotAbsoluteIndex})` : e.color
4078
+ }, null, 8, Zr)) : S("", !0)])) : (D(), C("svg", Qr, [$e(Ue, {
4079
+ plot: {
4080
+ x: 6,
4081
+ y: 6
4082
+ },
4083
+ radius: 5,
4084
+ color: e.color,
4085
+ shape: [
4086
+ "triangle",
4087
+ "square",
4088
+ "diamond",
4089
+ "pentagon",
4090
+ "hexagon",
4091
+ "star"
4092
+ ].includes(e.shape) ? e.shape : "circle"
4093
+ }, null, 8, ["color", "shape"])])), w("span", { style: E(`color:${H.value.chart.legend.color}`) }, ut(e.name), 5)], 46, Kr))), 128))], 4)) : S("", !0)], !0)], 512)], 8, ["to"])) : S("", !0),
4094
+ r.$slots.source ? (D(), C("div", {
4095
+ key: 8,
4096
+ ref_key: "source",
4097
+ ref: yi,
4098
+ dir: "auto"
4099
+ }, [A(r.$slots, "source", {}, void 0, !0)], 512)) : S("", !0),
4100
+ $e(j(ni), {
4101
+ teleportTo: H.value.chart.tooltip.teleportTo,
4102
+ show: U.value.showTooltip && Li.value,
4103
+ backgroundColor: H.value.chart.tooltip.backgroundColor,
4104
+ color: H.value.chart.tooltip.color,
4105
+ fontSize: H.value.chart.tooltip.fontSize,
4106
+ borderRadius: H.value.chart.tooltip.borderRadius,
4107
+ borderColor: H.value.chart.tooltip.borderColor,
4108
+ borderWidth: H.value.chart.tooltip.borderWidth,
4109
+ backgroundOpacity: H.value.chart.tooltip.backgroundOpacity,
4110
+ position: H.value.chart.tooltip.position,
4111
+ offsetX: H.value.chart.tooltip.offsetX,
4112
+ offsetY: H.value.chart.tooltip.offsetY,
4113
+ parent: r.$refs.chart,
4114
+ content: Zs.value,
4115
+ isFullscreen: Ii.value,
4116
+ isCustom: H.value.chart.tooltip.customFormat && typeof H.value.chart.tooltip.customFormat == "function",
4117
+ smooth: H.value.chart.tooltip.smooth,
4118
+ backdropFilter: H.value.chart.tooltip.backdropFilter,
4119
+ smoothForce: H.value.chart.tooltip.smoothForce,
4120
+ smoothSnapThreshold: H.value.chart.tooltip.smoothSnapThreshold,
4121
+ isA11yMode: $i.value != null,
4122
+ a11yPosition: ea.value
4123
+ }, {
4124
+ "tooltip-before": M(() => [A(r.$slots, "tooltip-before", at(T({ ...Ks.value })), void 0, !0)]),
4125
+ tooltip: M(() => [A(r.$slots, "tooltip", at(T({ ...Ks.value })), void 0, !0)]),
4126
+ "tooltip-after": M(() => [A(r.$slots, "tooltip-after", at(T({ ...Ks.value })), void 0, !0)]),
4127
+ _: 3
4128
+ }, 8, [
4129
+ "teleportTo",
4130
+ "show",
4131
+ "backgroundColor",
4132
+ "color",
4133
+ "fontSize",
4134
+ "borderRadius",
4135
+ "borderColor",
4136
+ "borderWidth",
4137
+ "backgroundOpacity",
4138
+ "position",
4139
+ "offsetX",
4140
+ "offsetY",
4141
+ "parent",
4142
+ "content",
4143
+ "isFullscreen",
4144
+ "isCustom",
4145
+ "smooth",
4146
+ "backdropFilter",
4147
+ "smoothForce",
4148
+ "smoothSnapThreshold",
4149
+ "isA11yMode",
4150
+ "a11yPosition"
4151
+ ]),
4152
+ va.value && H.value.chart.userOptions.buttons.table ? (D(), Xe(ct(Sc.value.component), nt({ key: 9 }, Sc.value.props, {
4153
+ ref_key: "tableUnit",
4154
+ ref: Xi,
4155
+ onClose: Cc
4156
+ }), Ze({
4157
+ content: M(() => [w("div", { style: E(`${j(Pa) || H.value.table.useDialog ? "" : "max-height:400px"};${H.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${H.value.table.useDialog ? "" : "margin-top:48px"}`) }, [w("div", $r, [gt(w("input", {
4158
+ type: "checkbox",
4159
+ "onUpdate:modelValue": i[4] ||= (e) => Hi.value = e
4160
+ }, null, 512), [[pt, Hi.value]]), w("div", {
4161
+ onClick: i[5] ||= (e) => Hi.value = !Hi.value,
4162
+ style: E({ cursor: ya.value ? "pointer" : "default" })
4163
+ }, [$e(j(ii), {
4164
+ name: "chartLine",
4165
+ size: 20,
4166
+ stroke: H.value.chart.color
4167
+ }, null, 8, ["stroke"])], 4)]), Hi.value ? (D(), Xe(j(ai), {
4168
+ key: `sparkline_${Ui.value}`,
4169
+ dataset: vs.value,
4170
+ config: ys.value
4171
+ }, null, 8, ["dataset", "config"])) : (D(), Xe(j(ti), {
4172
+ key: `table_${Bi.value}`,
4173
+ colNames: $s.value.colNames,
4174
+ head: $s.value.head,
4175
+ body: $s.value.body,
4176
+ config: $s.value.config,
4177
+ title: H.value.table.useDialog ? "" : Sc.value.title,
4178
+ withCloseButton: !H.value.table.useDialog,
4179
+ onClose: Cc
4180
+ }, {
4181
+ th: M(({ th: e }) => [w("div", { innerHTML: e }, null, 8, ei)]),
4182
+ td: M(({ td: e }) => [Qe(ut(isNaN(Number(e)) ? e : j(a)({
4183
+ p: H.value.chart.labels.prefix,
4184
+ v: e,
4185
+ s: H.value.chart.labels.suffix,
4186
+ r: H.value.table.rounding
4187
+ })), 1)]),
4188
+ _: 1
4189
+ }, 8, [
4190
+ "colNames",
4191
+ "head",
4192
+ "body",
4193
+ "config",
4194
+ "title",
4195
+ "withCloseButton"
4196
+ ]))], 4)]),
4197
+ _: 2
4198
+ }, [H.value.table.useDialog ? {
4199
+ name: "title",
4200
+ fn: M(() => [Qe(ut(Sc.value.title), 1)]),
4201
+ key: "0"
4202
+ } : void 0, H.value.table.useDialog ? {
4203
+ name: "actions",
4204
+ fn: M(() => [w("button", {
4205
+ tabindex: "0",
4206
+ class: "vue-ui-user-options-button",
4207
+ onClick: i[3] ||= (e) => ec(H.value.chart.userOptions.callbacks.csv)
4208
+ }, [$e(j(ii), {
4209
+ name: "fileCsv",
4210
+ stroke: Sc.value.props.color
4211
+ }, null, 8, ["stroke"])])]),
4212
+ key: "1"
4213
+ } : void 0]), 1040)) : S("", !0),
4214
+ A(r.$slots, "skeleton", {}, () => [j(wa) ? (D(), Xe(Pe, { key: 0 })) : S("", !0)], !0)
4215
+ ], 46, vt));
4216
+ }
4217
+ }, [["__scopeId", "data-v-d184aafc"]]);
4218
+ //#endregion
4219
+ export { _t as n, N as t };