vue-data-ui 3.22.9 → 3.22.11

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 (216) hide show
  1. package/dist/{Arrow-DdymhUfY.js → Arrow-DKx74WtM.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-3n8udWmh.js} +2 -2
  3. package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CP5RWnqt.js} +1 -1
  4. package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-DsWphmIb.js} +1 -1
  5. package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-C9_ygNN4.js} +2 -2
  6. package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-3N_HVgXs.js} +2 -2
  7. package/dist/{DataTable-BxpTMgfK.js → DataTable-DzPEVvSo.js} +2 -2
  8. package/dist/{Legend-ROt6ugzW.js → Legend-C0xAnJdO.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-B_mE5UbR.js} +3 -3
  10. package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-1MNr72Bz.js} +1 -1
  11. package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CSMVXpg2.js} +3 -3
  12. package/dist/{Shape-UpH0a4Ur.js → Shape-BfnXr1nJ.js} +3 -3
  13. package/dist/Slicer-C6qNUmZ4.js +1149 -0
  14. package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-BIdvqU32.js} +554 -553
  15. package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-uoUiL_P8.js} +1 -1
  16. package/dist/{Title-CcNiYzEo.js → Title-BuPs74IB.js} +1 -1
  17. package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CA1rtSyl.js} +1 -1
  18. package/dist/{UserOptions-trvJ26nz.js → UserOptions-B69xBEVP.js} +6 -5
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-BbwhsRIr.js → dom-to-png-BdAFKZQg.js} +1 -1
  89. package/dist/exposedLib-Ciw6TGtP.js +25 -0
  90. package/dist/{geoProjections-BbN7z57k.js → geoProjections-BCP_PoiB.js} +94 -94
  91. package/dist/{img-DnP3eXuv.js → img-Bikk1dGb.js} +1 -1
  92. package/dist/{labelUtils-DBEh078l.js → labelUtils-BUhssos9.js} +1 -1
  93. package/dist/{lib-JqW18y5I.js → lib-CFm_J26b.js} +121 -110
  94. package/dist/{package-ByOT60IK.js → package-Bf-Nk9qU.js} +1 -1
  95. package/dist/{pdf-hj3gzrE7.js → pdf-zmz3l2uy.js} +1 -1
  96. package/dist/{render-common-D18VrP0h.js → render-common-DEb-WjM1.js} +10 -10
  97. package/dist/ssr/vue-ui-donut.js +1 -1
  98. package/dist/ssr/vue-ui-xy.js +1 -1
  99. package/dist/ssr.js +2 -2
  100. package/dist/style.css +1 -1
  101. package/dist/types/utils.d.ts +40 -0
  102. package/dist/types/vue-data-ui.d.ts +1 -0
  103. package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-C9RNjsGv.js} +4 -4
  104. package/dist/{useConfig-DYM3f6EI.js → useConfig-C0V0eG7L.js} +1 -0
  105. package/dist/{useFitSvgText-CT3nmlaS.js → useFitSvgText-CXTzBplU.js} +3 -1
  106. package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-BY6DNN3i.js} +2 -2
  107. package/dist/{useObjectBindings-CD31syQb.js → useObjectBindings-Djwpii4d.js} +1 -1
  108. package/dist/{usePrinter-CqqHmnBI.js → usePrinter-BH-xle1O.js} +2 -2
  109. package/dist/{canvas-lib-BOP_HS11.js → useResponsive-ZtArZtUf.js} +19 -1
  110. package/dist/{useSvgExport-SVIsDot8.js → useSvgExport-Ba9qBr9M.js} +6 -5
  111. package/dist/{useTableResponsive-B24Uwt2E.js → useTableResponsive-BAqJPR68.js} +2 -1
  112. package/dist/{useTimeLabels-BmBRv27Y.js → useTimeLabels-B9CEuiLZ.js} +1 -1
  113. package/dist/utils.js +26 -24
  114. package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bme9usjG.js} +68 -68
  115. package/dist/vue-data-ui.js +77 -77
  116. package/dist/vue-ui-3d-bar-Ds1BPxqb.js +1824 -0
  117. package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-nNxnZTg9.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CNCrH8Kd.js +1246 -0
  119. package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BfZ8RTzJ.js} +17 -11
  120. package/dist/vue-ui-bullet-DscMmM2b.js +709 -0
  121. package/dist/vue-ui-bump-BvwU1_-N.js +1248 -0
  122. package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-Cp6r8ktf.js} +288 -288
  123. package/dist/vue-ui-carousel-table-CbtccW1g.js +455 -0
  124. package/dist/vue-ui-chestnut-C3Hmf1-m.js +2042 -0
  125. package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-DJk9j45J.js} +45 -46
  126. package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CJe2wETT.js} +50 -51
  127. package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-BAi9omna.js} +6 -6
  128. package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-D7BEbS71.js} +41 -39
  129. package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BYFQjwgC.js} +70 -70
  130. package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-Bx8nZl9d.js} +4 -4
  131. package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-BUX4ybT6.js} +208 -208
  132. package/dist/vue-ui-donut-evolution-MWDjQPQ5.js +1521 -0
  133. package/dist/vue-ui-donut-jXRV-3ON.js +2418 -0
  134. package/dist/vue-ui-dumbbell-CnwsHaIy.js +1564 -0
  135. package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-CKXGk4Lm.js} +74 -75
  136. package/dist/vue-ui-funnel-CJwD7s7e.js +781 -0
  137. package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-DL85_SWR.js} +275 -276
  138. package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-Dkx-aUQr.js} +177 -178
  139. package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-fkLF1rHB.js} +28 -27
  140. package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-S8w_p769.js} +9 -9
  141. package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-Dopkbn2N.js} +330 -331
  142. package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-DDYpEapS.js} +413 -414
  143. package/dist/vue-ui-horizontal-bar-Bi8WvKeD.js +1689 -0
  144. package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BeJ-ajaS.js} +4 -4
  145. package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-D9pprk2c.js} +3 -3
  146. package/dist/vue-ui-molecule-CBTgGZ-s.js +932 -0
  147. package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-CF83PcCx.js} +260 -261
  148. package/dist/vue-ui-nested-donuts-D5dO-Uyg.js +1492 -0
  149. package/dist/vue-ui-onion-BxjaQKo8.js +1199 -0
  150. package/dist/vue-ui-parallel-coordinate-plot-Dz6ozRAM.js +1415 -0
  151. package/dist/vue-ui-quadrant-Bnxpa6m5.js +1985 -0
  152. package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-CAE0-NYj.js} +112 -113
  153. package/dist/vue-ui-radar-O4BhBOyp.js +1286 -0
  154. package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-DbxK-ftN.js} +101 -101
  155. package/dist/vue-ui-relation-circle-BZ0Xf-Nc.js +923 -0
  156. package/dist/vue-ui-ridgeline-DHVTPiM6.js +1627 -0
  157. package/dist/vue-ui-rings-DAfY1V--.js +1251 -0
  158. package/dist/vue-ui-scatter-Cb63SWJT.js +2421 -0
  159. package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-DoIqQtIV.js} +100 -100
  160. package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-Da2jgkb7.js} +18 -18
  161. package/dist/vue-ui-spark-trend-Db-FsXch.js +442 -0
  162. package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-Ce55FP_3.js} +67 -67
  163. package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-hB59dXm7.js} +65 -65
  164. package/dist/vue-ui-sparkhistogram-DjnaStBw.js +575 -0
  165. package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-D1dyhLvG.js} +54 -55
  166. package/dist/vue-ui-sparkstackbar-BhOBFjts.js +674 -0
  167. package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-BZKw8WYn.js} +123 -122
  168. package/dist/vue-ui-stackline-DLFNVbAz.js +2425 -0
  169. package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-DyN2WELD.js} +68 -69
  170. package/dist/vue-ui-table-DL_R4ppI.js +1339 -0
  171. package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-C9gF__Np.js} +16 -16
  172. package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-CT-0w9-a.js} +26 -24
  173. package/dist/vue-ui-thermometer-MP0dliC3.js +769 -0
  174. package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-B5S-6Da4.js} +7 -8
  175. package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-DcJiLDsm.js} +20 -21
  176. package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-CjldCPnX.js} +615 -603
  177. package/dist/vue-ui-waffle-dZM-9z1J.js +1367 -0
  178. package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-or7a6-Ce.js} +47 -48
  179. package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-8BwQ0cuB.js} +40 -37
  180. package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-Q0KZb7A_.js} +210 -210
  181. package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-4uzwZJcj.js} +141 -141
  182. package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-DZIs53tH.js} +791 -783
  183. package/dist/vue-ui-xy-canvas-Dz9aii7f.js +1790 -0
  184. package/package.json +2 -2
  185. package/dist/Slicer-CW_XPIKL.js +0 -1150
  186. package/dist/exposedLib-VXFp3Z2c.js +0 -19
  187. package/dist/useResponsive-BfnK0KxU.js +0 -19
  188. package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
  189. package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
  190. package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
  191. package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
  192. package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
  193. package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
  194. package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
  195. package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
  196. package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
  197. package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
  198. package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
  199. package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
  200. package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
  201. package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
  202. package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
  203. package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
  204. package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
  205. package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
  206. package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
  207. package/dist/vue-ui-rings-J990vNbX.js +0 -1252
  208. package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
  209. package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
  210. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
  211. package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
  212. package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
  213. package/dist/vue-ui-table-uudidrYt.js +0 -1338
  214. package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
  215. package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
  216. package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
@@ -0,0 +1,2425 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { At as t, B as n, C as r, Dt as i, E as a, Gt as o, K as s, N as c, Nt as l, Q as u, R as d, Ut as f, Wt as p, Y as m, _ as h, at as g, bt as _, et as v, ft as ee, g as te, i as y, j as ne, qt as re, s as ie, st as ae, t as oe, ut as se, x as ce, xt as le, y as ue, zt as de } from "./lib-CFm_J26b.js";
3
+ import { n as fe, r as pe, t as me } from "./useTimeLabels-B9CEuiLZ.js";
4
+ import { t as he } from "./useConfig-C0V0eG7L.js";
5
+ import { t as ge } from "./usePrinter-BH-xle1O.js";
6
+ import { n as _e, t as ve } from "./BaseScanner-DZvpgOjM.js";
7
+ import { t as ye } from "./useSvgExport-Ba9qBr9M.js";
8
+ import { t as be } from "./useNestedProp-BY6DNN3i.js";
9
+ import { t as xe } from "./useThemeCheck-C43Tcqmk.js";
10
+ import { t as Se } from "./useStableElementSize-C7KADDKj.js";
11
+ import { t as Ce } from "./useTimeLabelCollider-AEcY4Ioe.js";
12
+ import { t as we } from "./img-Bikk1dGb.js";
13
+ import { n as Te } from "./Title-BuPs74IB.js";
14
+ import { t as Ee } from "./Shape-BfnXr1nJ.js";
15
+ import { t as De } from "./_plugin-vue_export-helper-B3ysoDQm.js";
16
+ import { l as Oe, t as ke } from "./useResponsive-ZtArZtUf.js";
17
+ import { t as Ae } from "./DefGrad-DVBqDjhO.js";
18
+ import { t as je } from "./SlicerPreview-BIdvqU32.js";
19
+ import { t as Me } from "./BaseLegendToggle-DsWphmIb.js";
20
+ import { t as Ne } from "./A11yDataTable-DdRsVULz.js";
21
+ import { t as Pe } from "./useUserOptionState-DK-_1ddE.js";
22
+ import { t as Fe } from "./useChartAccessibility-DYqac8yF.js";
23
+ import { t as Ie } from "./Legend-C0xAnJdO.js";
24
+ import { t as Le } from "./vue_ui_stackline-DQqKPA9z.js";
25
+ import { Fragment as b, Teleport as Re, computed as x, createBlock as S, createCommentVNode as C, createElementBlock as w, createElementVNode as T, createSlots as ze, createTextVNode as Be, createVNode as Ve, defineAsyncComponent as He, guardReactiveProps as E, mergeProps as Ue, nextTick as We, normalizeClass as Ge, normalizeProps as D, normalizeStyle as Ke, onBeforeUnmount as qe, onMounted as Je, openBlock as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as Ye, shallowRef as Xe, toDisplayString as Ze, toRefs as Qe, unref as M, useSlots as $e, watch as et, watchEffect as tt, withCtx as N } from "vue";
26
+ //#region src/components/vue-ui-stackline.vue
27
+ var nt = /* @__PURE__ */ e({ default: () => zt }), rt = ["id"], it = ["id"], at = ["id"], ot = { style: { position: "relative" } }, st = [
28
+ "aria-describedby",
29
+ "xmlns",
30
+ "viewBox"
31
+ ], ct = { key: 0 }, lt = [
32
+ "x",
33
+ "y",
34
+ "width",
35
+ "height"
36
+ ], ut = { key: 1 }, dt = [
37
+ "x1",
38
+ "x2",
39
+ "y1",
40
+ "y2",
41
+ "stroke",
42
+ "stroke-width",
43
+ "stroke-dasharray"
44
+ ], ft = [
45
+ "x1",
46
+ "x2",
47
+ "y1",
48
+ "y2",
49
+ "stroke",
50
+ "stroke-width",
51
+ "stroke-dasharray"
52
+ ], pt = [
53
+ "x1",
54
+ "x2",
55
+ "y1",
56
+ "y2",
57
+ "stroke",
58
+ "stroke-width"
59
+ ], mt = [
60
+ "x1",
61
+ "x2",
62
+ "y1",
63
+ "y2",
64
+ "stroke",
65
+ "stroke-width"
66
+ ], ht = [
67
+ "x",
68
+ "y",
69
+ "font-size",
70
+ "fill",
71
+ "font-weight"
72
+ ], gt = [
73
+ "transform",
74
+ "font-size",
75
+ "fill",
76
+ "font-weight"
77
+ ], _t = [
78
+ "x",
79
+ "y",
80
+ "width",
81
+ "height",
82
+ "stroke",
83
+ "stroke-width",
84
+ "stroke-linecap",
85
+ "stroke-linejoin",
86
+ "stroke-dasharray"
87
+ ], vt = [
88
+ "d",
89
+ "fill",
90
+ "opacity"
91
+ ], yt = [
92
+ "d",
93
+ "stroke",
94
+ "stroke-width"
95
+ ], bt = [
96
+ "x1",
97
+ "x2",
98
+ "y1",
99
+ "y2",
100
+ "stroke"
101
+ ], xt = [
102
+ "x",
103
+ "y",
104
+ "font-size",
105
+ "font-weight",
106
+ "fill",
107
+ "text-anchor"
108
+ ], St = { key: 0 }, Ct = { key: 1 }, wt = [
109
+ "text-anchor",
110
+ "font-size",
111
+ "font-weight",
112
+ "fill",
113
+ "transform",
114
+ "onClick"
115
+ ], Tt = [
116
+ "text-anchor",
117
+ "font-size",
118
+ "fill",
119
+ "transform",
120
+ "innerHTML",
121
+ "onClick"
122
+ ], Et = [
123
+ "x",
124
+ "y",
125
+ "height",
126
+ "width",
127
+ "fill"
128
+ ], Dt = { key: 0 }, Ot = [
129
+ "x1",
130
+ "x2",
131
+ "y1",
132
+ "y2",
133
+ "stroke",
134
+ "stroke-width",
135
+ "stroke-dasharray"
136
+ ], kt = { key: 0 }, At = [
137
+ "x",
138
+ "y",
139
+ "font-size",
140
+ "fill",
141
+ "font-weight"
142
+ ], jt = [
143
+ "x",
144
+ "y",
145
+ "font-size",
146
+ "font-weight",
147
+ "fill"
148
+ ], Mt = ["data-start", "data-end"], Nt = {
149
+ key: 0,
150
+ style: {
151
+ position: "absolute",
152
+ top: "100%",
153
+ left: "0",
154
+ width: "100%"
155
+ },
156
+ "data-dom-to-png-ignore": "",
157
+ "aria-hidden": "true"
158
+ }, Pt = {
159
+ key: 5,
160
+ class: "vue-data-ui-watermark"
161
+ }, Ft = ["onClick"], It = ["innerHTML"], Lt = ["innerHTML"], Rt = ["id"], zt = /*#__PURE__*/ De({
162
+ __name: "vue-ui-stackline",
163
+ props: {
164
+ config: {
165
+ type: Object,
166
+ default() {
167
+ return {};
168
+ }
169
+ },
170
+ dataset: {
171
+ type: Array,
172
+ default() {
173
+ return [];
174
+ }
175
+ },
176
+ selectedXIndex: {
177
+ type: Number,
178
+ default: void 0
179
+ }
180
+ },
181
+ emits: [
182
+ "selectDatapoint",
183
+ "selectLegend",
184
+ "selectTimeLabel",
185
+ "selectX",
186
+ "copyAlt"
187
+ ],
188
+ setup(e, { expose: De, emit: nt }) {
189
+ let zt = He(() => import("./Tooltip-CA1rtSyl.js")), Bt = He(() => import("./BaseIcon-CP5RWnqt.js").then((e) => e.n)), Vt = He(() => import("./vue-ui-accordion-nNxnZTg9.js").then((e) => e.n)), Ht = He(() => import("./DataTable-DzPEVvSo.js")), Ut = He(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), Wt = He(() => import("./UserOptions-B69xBEVP.js").then((e) => e.n)), Gt = He(() => import("./PackageVersion-1MNr72Bz.js").then((e) => e.t)), Kt = He(() => import("./BaseDraggableDialog-3n8udWmh.js").then((e) => e.n)), { vue_ui_stackline: qt } = he(), { isThemeValid: Jt, warnInvalidTheme: Yt } = xe(), Xt = $e(), P = e, F = nt, Zt = x({
190
+ get() {
191
+ return !!P.dataset && P.dataset.length;
192
+ },
193
+ set(e) {
194
+ return e;
195
+ }
196
+ }), I = k(null), L = k(s()), Qt = k(!1), R = k([]), $t = k(0), en = k(null), tn = k(null), nn = k(null), rn = k(null), an = k(null), on = k(!1), sn = k(!1), cn = k(0), ln = k(0), un = k(0), dn = k(!1), fn = k(null), pn = k(null), mn = k(!1), hn = k(!1), gn = k(!1), _n = k(null), vn = k(null), yn = k(null), bn = k(null), xn = k(null), Sn = Xe(null), Cn = k(!1), wn = k(0), Tn = k(0), z = k(null), En = k({
197
+ x: 0,
198
+ y: 0
199
+ }), Dn = k("pointer"), On = Se({
200
+ elementRef: Sn,
201
+ minimumWidth: 2,
202
+ minimumHeight: 2,
203
+ stableFramesRequired: 2,
204
+ once: !1,
205
+ onSizeAccepted: () => {
206
+ jn();
207
+ }
208
+ });
209
+ function kn() {
210
+ Sn.value = I.value?.parentNode ?? null;
211
+ }
212
+ function An() {
213
+ return new Promise((e) => {
214
+ requestAnimationFrame(() => {
215
+ requestAnimationFrame(e);
216
+ });
217
+ });
218
+ }
219
+ async function jn() {
220
+ let e = ++Tn.value;
221
+ Cn.value = !1, await We(), await An(), await An(), e === Tn.value && (wn.value += 1, Cn.value = !0);
222
+ }
223
+ let Mn = k(null), Nn = k(!1);
224
+ function Pn() {
225
+ Nn.value = !Nn.value;
226
+ }
227
+ Je(() => {
228
+ kn(), On.start(), dn.value = !0, ir(), jn();
229
+ });
230
+ let B = k(Gn()), V = x(() => B.value.userOptions.useCursorPointer), Fn = x(() => re({
231
+ defaultConfig: {
232
+ userOptions: { show: !1 },
233
+ useCssAnimation: !1,
234
+ table: { show: !1 },
235
+ tooltip: { show: !1 },
236
+ style: { chart: {
237
+ backgroundColor: "#99999930",
238
+ lines: {
239
+ totalValues: { show: !1 },
240
+ dataLabels: { show: !1 }
241
+ },
242
+ grid: {
243
+ frame: { stroke: "#6A6A6A" },
244
+ scale: {
245
+ scaleMin: 0,
246
+ scaleMax: 144
247
+ },
248
+ x: {
249
+ axisColor: "#6A6A6A",
250
+ linesColor: "#6A6A6A",
251
+ axisName: { show: !1 },
252
+ timeLabels: { show: !1 }
253
+ },
254
+ y: {
255
+ axisColor: "#6A6A6A",
256
+ linesColor: "#6A6A6A",
257
+ axisName: { show: !1 },
258
+ axisLabels: { show: !1 }
259
+ }
260
+ },
261
+ legend: { backgroundColor: "transparent" },
262
+ padding: {
263
+ left: 24,
264
+ right: 24,
265
+ bottom: 12
266
+ },
267
+ zoom: {
268
+ show: !1,
269
+ startIndex: null,
270
+ endIndex: null,
271
+ keepState: !1
272
+ }
273
+ } }
274
+ },
275
+ userConfig: B.value.skeletonConfig ?? {}
276
+ })), { loading: In, FINAL_DATASET: Ln, manualLoading: Rn } = _e({
277
+ ...Qe(P),
278
+ FINAL_CONFIG: B,
279
+ prepareConfig: Gn,
280
+ callback: () => {
281
+ Promise.resolve().then(async () => {
282
+ (!B.value.style.chart.zoom.keepState || !Xr.value || q.value.start === 0 && q.value.end === 0) && await Qr();
283
+ });
284
+ },
285
+ skeletonDataset: P.config?.skeletonDataset ?? [{
286
+ name: "",
287
+ series: [
288
+ 3,
289
+ 2,
290
+ 1,
291
+ 5,
292
+ 13,
293
+ 21,
294
+ 8,
295
+ 89,
296
+ 34,
297
+ 55
298
+ ],
299
+ color: "#8A8A8A"
300
+ }, {
301
+ name: "",
302
+ series: [
303
+ 1,
304
+ 2,
305
+ 3,
306
+ 5,
307
+ 8,
308
+ 13,
309
+ 21,
310
+ 34,
311
+ 55,
312
+ 89
313
+ ],
314
+ color: "#CACACA"
315
+ }],
316
+ skeletonConfig: re({
317
+ defaultConfig: B.value,
318
+ userConfig: Fn.value
319
+ })
320
+ }), { userOptionsVisible: zn, setUserOptionsVisibility: Bn, keepUserOptionState: Vn } = Pe({ config: B.value }), { svgRef: Hn } = Fe({ config: B.value.style.chart.title });
321
+ function Un() {
322
+ mn.value = !0, Bn(!0);
323
+ }
324
+ function Wn() {
325
+ Bn(!1), mn.value = !1, z.value = null, Dn.value = "pointer", Qt.value = !1, $.value = null, F("selectX", {
326
+ index: null,
327
+ indexLabel: null,
328
+ dataset: null
329
+ });
330
+ }
331
+ function Gn() {
332
+ let e = be({
333
+ userConfig: P.config,
334
+ defaultConfig: qt
335
+ }), t = {}, n = e.theme;
336
+ if (n) if (!Jt.value(e)) Yt(e), t = e;
337
+ else {
338
+ let r = be({
339
+ userConfig: Le[n] || P.config,
340
+ defaultConfig: e
341
+ });
342
+ t = {
343
+ ...be({
344
+ userConfig: P.config,
345
+ defaultConfig: r
346
+ }),
347
+ customPalette: e.customPalette.length ? e.customPalette : o[n] || l
348
+ };
349
+ }
350
+ else t = e;
351
+ return t;
352
+ }
353
+ let Kn = x(() => B.value.style.chart.lines.dataLabels.hideUnderValue !== null), qn = x(() => B.value.style.chart.lines.dataLabels.hideUnderPercentage !== null);
354
+ et(() => P.config, (e) => {
355
+ In.value || (B.value = Gn()), zn.value = !B.value.userOptions.showOnChartHover, ir({ resetSlicer: !B.value.style.chart.zoom.keepState }), cn.value += 1, ln.value += 1, un.value += 1, H.value.dataLabels.show = B.value.style.chart.lines.dataLabels.show, H.value.showTable = B.value.table.show, H.value.showTooltip = B.value.style.chart.tooltip.show, U.value.width = B.value.style.chart.width, U.value.height = B.value.style.chart.height, U.value.paddingRatio = {
356
+ top: B.value.style.chart.padding.top / B.value.style.chart.height,
357
+ right: B.value.style.chart.padding.right / B.value.style.chart.width,
358
+ bottom: B.value.style.chart.padding.bottom / B.value.style.chart.height,
359
+ left: B.value.style.chart.padding.left / B.value.style.chart.width
360
+ }, kn(), jn(), !B.value.style.chart.zoom.keepState || !Xr.value || q.value.start === 0 && q.value.end === 0 ? Qr() : br();
361
+ }, { deep: !0 }), et(() => P.dataset, (e) => {
362
+ Array.isArray(e) && e.length > 0 && (Rn.value = !1), B.value.style.chart.zoom.keepState ? br() : Cr(), kn(), jn();
363
+ }, { deep: !0 });
364
+ let H = k({
365
+ dataLabels: { show: B.value.style.chart.lines.dataLabels.show },
366
+ showTable: B.value.table.show,
367
+ showTooltip: B.value.style.chart.tooltip.show
368
+ });
369
+ et(B, () => {
370
+ H.value = {
371
+ dataLabels: { show: B.value.style.chart.lines.dataLabels.show },
372
+ showTable: B.value.table.show,
373
+ showTooltip: B.value.style.chart.tooltip.show
374
+ };
375
+ }, { immediate: !0 });
376
+ let { isPrinting: Jn, isImaging: Yn, generatePdf: Xn, generateImage: Zn } = ge({
377
+ elementId: `stackline_${L.value}`,
378
+ fileName: B.value.style.chart.title.text || "vue-ui-stackline",
379
+ options: B.value.userOptions.print
380
+ }), Qn = x(() => B.value.userOptions.show && !B.value.style.chart.title.text), U = k({
381
+ width: B.value.style.chart.width,
382
+ height: B.value.style.chart.height,
383
+ paddingRatio: {
384
+ top: B.value.style.chart.padding.top / B.value.style.chart.height,
385
+ right: B.value.style.chart.padding.right / B.value.style.chart.width,
386
+ bottom: B.value.style.chart.padding.bottom / B.value.style.chart.height,
387
+ left: B.value.style.chart.padding.left / B.value.style.chart.width
388
+ }
389
+ }), $n = x(() => r(B.value.customPalette)), er = Xe(null), tr = Xe(null), nr = k(null), rr = x(() => !!B.value.debug);
390
+ function ir({ resetSlicer: e = !0 } = {}) {
391
+ if (t(P.dataset) ? (v({
392
+ componentName: "VueUiStackline",
393
+ type: "dataset",
394
+ debug: rr.value
395
+ }), Rn.value = !0) : P.dataset.forEach((e, t) => {
396
+ ee({
397
+ datasetObject: e,
398
+ requiredAttributes: ["name", "series"]
399
+ }).forEach((e) => {
400
+ Zt.value = !1, v({
401
+ componentName: "VueUiStackline",
402
+ type: "datasetSerieAttribute",
403
+ property: e,
404
+ index: t,
405
+ debug: rr.value
406
+ }), Rn.value = !0;
407
+ });
408
+ }), t(P.dataset) || (Rn.value = B.value.loading), setTimeout(() => {
409
+ sn.value = !0;
410
+ }, 10), B.value.responsive) {
411
+ let e = Oe(() => {
412
+ sn.value = !1;
413
+ let { width: e, height: t } = ke({
414
+ chart: I.value,
415
+ noTitle: rn.value,
416
+ title: B.value.style.chart.title.text ? en.value : null,
417
+ legend: B.value.style.chart.legend.show ? tn.value : null,
418
+ slicer: B.value.style.chart.zoom.show && K.value > 6 ? nn.value.$el : null,
419
+ source: an.value
420
+ });
421
+ requestAnimationFrame(() => {
422
+ U.value.width = e, U.value.height = t - 12, clearTimeout(nr.value), nr.value = setTimeout(() => {
423
+ sn.value = !0;
424
+ }, 10);
425
+ });
426
+ });
427
+ er.value && (tr.value && er.value.unobserve(tr.value), er.value.disconnect()), er.value = new ResizeObserver(e), tr.value = I.value.parentNode, er.value.observe(tr.value);
428
+ }
429
+ e && Qr();
430
+ }
431
+ qe(() => {
432
+ On.stop(), er.value && (tr.value && er.value.unobserve(tr.value), er.value.disconnect());
433
+ });
434
+ let ar = x(() => B.value.style.chart.grid.y.position === "right");
435
+ function or() {
436
+ let e = 0;
437
+ yn.value && (e = Array.from(yn.value.querySelectorAll("text")).reduce((e, t) => {
438
+ let n = t.getComputedTextLength();
439
+ return n > e ? n : e;
440
+ }, 0));
441
+ let t = vn.value ? vn.value.getBoundingClientRect().width + B.value.style.chart.grid.y.axisName.fontSize + B.value.style.chart.grid.y.axisName.offsetX : 0;
442
+ return {
443
+ left: ar.value ? 0 : e + t,
444
+ right: ar.value ? e + t : 0,
445
+ scaleLabelsWidth: e,
446
+ yAxisLabelWidth: t
447
+ };
448
+ }
449
+ let sr = k(0), cr = k(0), lr = k(0);
450
+ function ur() {
451
+ let e = bn.value;
452
+ if (!e) {
453
+ cr.value = 0;
454
+ return;
455
+ }
456
+ try {
457
+ let t = e.getBBox();
458
+ cr.value = Number.isFinite(t?.height) ? t.height : 0;
459
+ } catch {
460
+ cr.value = 0;
461
+ }
462
+ }
463
+ function dr() {
464
+ lr.value && cancelAnimationFrame(lr.value), lr.value = requestAnimationFrame(() => {
465
+ requestAnimationFrame(() => {
466
+ ur();
467
+ });
468
+ });
469
+ }
470
+ qe(() => {
471
+ lr.value && cancelAnimationFrame(lr.value), cr.value = 0, sr.value = 0;
472
+ });
473
+ let fr = x(() => {
474
+ let e = 0;
475
+ if (_n.value) try {
476
+ e = _n.value.getBBox().height;
477
+ } catch {
478
+ e = 0;
479
+ }
480
+ let t = B.value.style.chart.grid.x.timeLabels.show ? cr.value : 0;
481
+ return e + t;
482
+ }), W = x(() => {
483
+ wn.value;
484
+ let { height: e, width: t } = U.value, { right: n } = U.value.paddingRatio, r = B.value.style.chart.lines.totalValues.show && P.dataset && P.dataset.length > 1 ? B.value.style.chart.lines.totalValues.fontSize * 1.3 : 0, i = 0, a = 0, o = 0, s = 0;
485
+ if (B.value.style.chart.grid.y.axisLabels.show) {
486
+ let e = or();
487
+ i = e.left, a = e.right, o = e.scaleLabelsWidth, s = e.yAxisLabelWidth;
488
+ }
489
+ let c = B.value.style.chart.padding.top + r, l = t - t * n - sr.value - a, u = e - B.value.style.chart.padding.bottom - fr.value - r, d = B.value.style.chart.padding.left + i, f = t - d - t * n - sr.value - a, p = e - c - B.value.style.chart.padding.bottom - fr.value - r;
490
+ return {
491
+ chartHeight: Math.max(0, e),
492
+ chartWidth: Math.max(0, t),
493
+ top: c,
494
+ right: Math.max(0, l),
495
+ bottom: Math.max(0, u),
496
+ left: Math.max(0, d),
497
+ width: Math.max(0, f),
498
+ height: Math.max(0, p),
499
+ offsetLeftAxis: i,
500
+ offsetRightAxis: a,
501
+ scaleLabelsWidth: o,
502
+ yAxisLabelWidth: s
503
+ };
504
+ }), pr = x(() => {
505
+ let { left: e, top: t, width: n, height: r } = W.value, i = q.value.start, a = q.value.end, o = Math.max(1, a - i), s = Math.max(0, Math.min(o, (J.value.start ?? i) - i)), c = Math.max(0, Math.min(o, (J.value.end ?? a) - i)), l = Math.max(0, c - s), u = {
506
+ fill: B.value.style.chart.zoom.preview.fill,
507
+ stroke: B.value.style.chart.zoom.preview.stroke,
508
+ "stroke-width": B.value.style.chart.zoom.preview.strokeWidth,
509
+ "stroke-dasharray": B.value.style.chart.zoom.preview.strokeDasharray,
510
+ "stroke-linecap": "round",
511
+ "stroke-linejoin": "round",
512
+ style: {
513
+ pointerEvents: "none",
514
+ transition: "none !important",
515
+ animation: "none !important"
516
+ }
517
+ }, d = n / o;
518
+ return {
519
+ x: e + s * d,
520
+ y: t,
521
+ width: l * d,
522
+ height: r,
523
+ ...u
524
+ };
525
+ }), G = x(() => Ln.value.map((e, t) => {
526
+ let n = `stackline_serie_${t}`, r = ce(e.color) || $n.value[t] || l[t] || l[t % l.length];
527
+ return {
528
+ ...e,
529
+ shape: e.shape || "circle",
530
+ standalone: !!e.standalone,
531
+ series: JSON.parse(JSON.stringify(e.series)).map((e) => B.value.style.chart.lines.distributed ? Math.abs(e) : e),
532
+ seriesSource: e.series,
533
+ signedSeries: e.series.map((e) => e >= 0 ? 1 : -1),
534
+ absoluteIndex: t,
535
+ id: n,
536
+ color: r
537
+ };
538
+ })), mr = x(() => G.value.filter((e) => !R.value.includes(e.id) && !e.standalone)), hr = x(() => G.value.filter((e) => !R.value.includes(e.id) && e.standalone)), K = x(() => {
539
+ let e = Math.max(...G.value.filter((e) => !R.value.includes(e.id)).map((e) => e.series.length));
540
+ return isFinite(e) ? e : Math.max(...G.value.map((e) => e.series.length));
541
+ });
542
+ function gr(e) {
543
+ Mn.value = e;
544
+ }
545
+ let q = k({
546
+ start: 0,
547
+ end: Math.max(...Ln.value.map((e) => e.series.length))
548
+ }), J = k({
549
+ start: 0,
550
+ end: Math.max(...Ln.value.map((e) => e.series.length))
551
+ });
552
+ function _r(e) {
553
+ return (q.value.start ?? 0) + (e ?? 0);
554
+ }
555
+ let vr = x(() => B.value.style.chart.zoom.preview.enable && (J.value.start !== q.value.start || J.value.end !== q.value.end));
556
+ function yr(e, t) {
557
+ J.value[e] = t;
558
+ }
559
+ function br() {
560
+ let e = K.value, t = Math.max(0, Math.min(q.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(q.value.end ?? e, e));
561
+ (!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), q.value.start = t, q.value.end = n, J.value.start = t, J.value.end = n, nn.value && (nn.value.setStartValue(t), nn.value.setEndValue(n));
562
+ }
563
+ let xr = k(null);
564
+ function Sr() {
565
+ return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
566
+ }
567
+ qe(() => {
568
+ xr.value && cancelAnimationFrame(xr.value);
569
+ });
570
+ async function Cr({ force: e = !1 } = {}) {
571
+ if (B.value.style.chart.zoom.keepState && !e && Xr.value && !(q.value.start === 0 && q.value.end === 0)) {
572
+ br();
573
+ return;
574
+ }
575
+ Qr(), await We(), xr.value && cancelAnimationFrame(xr.value), xr.value = requestAnimationFrame(async () => {
576
+ await Sr(), Qr();
577
+ });
578
+ }
579
+ let wr = x(() => Math.max(0, W.value.width / (q.value.end - q.value.start))), Tr = x(() => f(mr.value.map((e) => ({
580
+ ...e,
581
+ series: e.series.map((e) => e ?? 0)
582
+ }))).slice(q.value.start, q.value.end)), Er = x(() => R.value.length === G.value.length), Dr = x(() => {
583
+ if (!B.value.style.chart.zoom.minimap.show) return [];
584
+ let e = G.value.filter((e) => Er.value ? !0 : !R.value.includes(e.id) && !e.standalone);
585
+ if (e.length) return f(e.map((e) => ({
586
+ ...e,
587
+ series: (e.series || []).map((e) => e ?? 0)
588
+ })));
589
+ let t = hr.value;
590
+ if (!t.length) return [];
591
+ let n = Math.max(...t.map((e) => e.series.length || 0));
592
+ return Array.from({ length: n }, (e, n) => t.reduce((e, t) => e + Math.abs(t.series[n] ?? 0), 0));
593
+ }), Or = x(() => {
594
+ if (!B.value.style.chart.zoom.minimap.show) return [];
595
+ let e = G.value.filter((e) => Er.value ? !0 : !R.value.includes(e.id) && !e.standalone), t = hr.value, n = e.length ? [{
596
+ name: "",
597
+ series: Dr.value,
598
+ color: "#000000",
599
+ isVisible: !0
600
+ }] : [], r = t.map((e) => ({
601
+ name: e.name || "",
602
+ series: (e.series || []).map((e) => e ?? 0),
603
+ color: e.color,
604
+ isVisible: !0
605
+ }));
606
+ return n.concat(r);
607
+ }), kr = x(() => f(mr.value.filter((e) => !R.value.includes(e.id)).map((e) => ({
608
+ ...e,
609
+ series: e.series.map((t, n) => {
610
+ let r = t ?? 0;
611
+ return e.signedSeries[n] === -1 && r >= 0 ? -r : r;
612
+ })
613
+ }))).slice(q.value.start, q.value.end)), Ar = x(() => {
614
+ let e = mr.value.filter((e) => !R.value.includes(e.id));
615
+ return {
616
+ positive: f(e.map((e) => ({
617
+ ...e,
618
+ series: e.series.slice(q.value.start, q.value.end).map((e) => (e ?? 0) >= 0 ? e ?? 0 : 0)
619
+ }))),
620
+ negative: f(e.map((e) => ({
621
+ ...e,
622
+ series: e.series.slice(q.value.start, q.value.end).map((e) => (e ?? 0) < 0 ? e ?? 0 : 0)
623
+ })))
624
+ };
625
+ }), jr = x(() => {
626
+ let e = Math.max(0, q.value.end - q.value.start), t = Array(e).fill(0), n = Array(e).fill(0);
627
+ return hr.value.forEach((r) => {
628
+ for (let i = 0; i < e; i += 1) {
629
+ let e = r.series[q.value.start + i] ?? 0;
630
+ e > 0 && (t[i] = Math.max(t[i], e)), e < 0 && (n[i] = Math.min(n[i], e));
631
+ }
632
+ }), {
633
+ positive: t,
634
+ negative: n
635
+ };
636
+ }), Mr = x(() => kr.value.map((e, t) => ({
637
+ value: e,
638
+ sign: e >= 0 ? 1 : -1
639
+ })));
640
+ function Nr() {
641
+ return { y0: Fr.value?.[0]?.zero ?? W.value.bottom };
642
+ }
643
+ function Pr(e) {
644
+ let { y0: t } = Nr(), n = B.value.style.chart.lines.totalValues, r = Math.max(2, n.fontSize * 1.3 + n.offsetY), i = (e) => Math.min(Math.max(e, W.value.top - B.value.style.chart.lines.totalValues.fontSize * 1.3), W.value.bottom + B.value.style.chart.lines.totalValues.fontSize * 2);
645
+ if ((Mr.value?.[e]?.value ?? 0) >= 0 || B.value.style.chart.lines.distributed) {
646
+ let n = Infinity;
647
+ for (let t of Y.value || []) {
648
+ let r = t?.series?.[e], i = t?.topY?.[e];
649
+ (r ?? 0) > 0 && Number.isFinite(i) && i < n && (n = i);
650
+ }
651
+ return i((Number.isFinite(n) ? n : t) - r - B.value.style.chart.lines.totalValues.offsetY);
652
+ } else {
653
+ let a = -Infinity;
654
+ for (let t of Y.value || []) {
655
+ let n = t?.series?.[e], r = t?.topY?.[e];
656
+ (n ?? 0) < 0 && Number.isFinite(r) && r > a && (a = r);
657
+ }
658
+ return i((Number.isFinite(a) ? a : t) + r + n.fontSize * .7 + B.value.style.chart.lines.totalValues.offsetY);
659
+ }
660
+ }
661
+ let Fr = x(() => {
662
+ let e = Math.max(...Ar.value.positive, 0), t = Math.min(...Ar.value.negative, 0), n = Math.max(...jr.value.positive, 0), r = Math.min(...jr.value.negative, 0), i = Math.max(e, n), a = Math.min(t, r), o = [
663
+ -Infinity,
664
+ Infinity,
665
+ NaN,
666
+ void 0,
667
+ null
668
+ ].includes(a) ? 0 : a, s = B.value.style.chart.grid.scale.scaleMin, c = B.value.style.chart.grid.scale.scaleMax, l = !B.value.style.chart.lines.distributed && (s !== null || c !== null), u = s !== null && !B.value.style.chart.lines.distributed ? s : o > 0 ? 0 : o, d = c !== null && !B.value.style.chart.lines.distributed ? c : i < 0 ? 0 : i, f = l ? h(u, d, B.value.style.chart.grid.scale.ticks) : te(u, d, B.value.style.chart.grid.scale.ticks), p = Math.abs(Number(f.min) || 0), m = (Number(f.max) || 0) + p, g = m === 0 || !Number.isFinite(m) ? 1 : m, _ = Array.isArray(f.ticks) && f.ticks.length ? f.ticks : [0], v = W.value.bottom - W.value.height * (p / g);
669
+ return _.map((e) => {
670
+ let t = Number(e) || 0, n = W.value.bottom - W.value.height * ((t + p) / g);
671
+ return {
672
+ zero: v,
673
+ y: n,
674
+ x: ar.value ? X.value.right + 8 : X.value.left - 8,
675
+ value: t
676
+ };
677
+ });
678
+ }), Ir = k([]), Lr = k([]), Rr = 0;
679
+ tt(() => {
680
+ let e = ++Rr;
681
+ (async () => {
682
+ let t = await me({
683
+ values: B.value.style.chart.grid.x.timeLabels.values,
684
+ maxDatapoints: K.value,
685
+ formatter: B.value.style.chart.grid.x.timeLabels.datetimeFormatter,
686
+ start: q.value.start,
687
+ end: q.value.end
688
+ });
689
+ e === Rr && (Ir.value = t);
690
+ })();
691
+ });
692
+ let zr = 0;
693
+ tt(() => {
694
+ let e = ++zr;
695
+ (async () => {
696
+ let t = await me({
697
+ values: B.value.style.chart.grid.x.timeLabels.values,
698
+ maxDatapoints: K.value,
699
+ formatter: B.value.style.chart.grid.x.timeLabels.datetimeFormatter,
700
+ start: 0,
701
+ end: K.value
702
+ });
703
+ e === zr && (Lr.value = t);
704
+ })();
705
+ });
706
+ let Br = x(() => {
707
+ let e = B.value.style.chart.grid.x.timeLabels.modulo;
708
+ return Ir.value.length ? Math.min(e, [...new Set(Ir.value.map((e) => e.text))].length) : e;
709
+ }), Vr = x(() => {
710
+ let e = B.value.style.chart.grid.x.timeLabels, t = Ir.value || [], n = Lr.value || [], r = q.value.start ?? 0, i = $.value, a = K.value, o = t.map((e) => e?.text ?? ""), s = n.map((e) => e?.text ?? "");
711
+ return ie(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, Br.value || 1), o, s, r, i, a);
712
+ });
713
+ tt(() => {
714
+ B.value.style.chart.grid.x.timeLabels.show, B.value.style.chart.grid.x.timeLabels.fontSize, B.value.style.chart.grid.x.timeLabels.rotation, B.value.style.chart.grid.x.timeLabels.offsetY, (Vr.value || []).map((e) => e?.text ?? "").join("|"), U.value.width, U.value.height, bn.value, _n.value, dr();
715
+ }, { flush: "post" });
716
+ let Hr = k({
717
+ months: [],
718
+ shortMonths: [],
719
+ days: [],
720
+ shortDays: []
721
+ }), Ur = 0;
722
+ tt(() => {
723
+ let e = ++Ur, t = B.value.style.chart.grid.x.timeLabels.datetimeFormatter;
724
+ (async () => {
725
+ let n = await pe(t.locale).catch(() => pe("en"));
726
+ e === Ur && (Hr.value = n.data);
727
+ })();
728
+ });
729
+ let Wr = x(() => {
730
+ let e = B.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = fe({
731
+ useUTC: e.useUTC,
732
+ locale: Hr.value,
733
+ januaryAsYear: e.januaryAsYear
734
+ });
735
+ return (e, n) => {
736
+ let r = B.value.style.chart.grid.x.timeLabels.values?.[e];
737
+ return r == null ? "" : t.formatDate(new Date(r), n);
738
+ };
739
+ }), Gr = x(() => (B.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
740
+ text: Wr.value(t, B.value.style.chart.zoom.timeFormat),
741
+ absoluteIndex: t
742
+ }))), Kr = x(() => (B.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
743
+ text: Wr.value(t, B.value.style.chart.tooltip.timeFormat),
744
+ absoluteIndex: t
745
+ }))), qr = x(() => {
746
+ if (!Zt.value && !In.value) return [];
747
+ let e = W.value.height, t = Fr.value[0] ? Fr.value[0].zero : W.value.bottom, n = q.value.start ?? 0, r = q.value.end ?? 0, i = Math.max(1, r - n), a = Math.max(...Ar.value.positive, 0), o = Math.min(...Ar.value.negative, 0), s = Math.max(...jr.value.positive, 0), c = Math.min(...jr.value.negative, 0), l = Math.max(a, s), u = Math.min(o, c), { min: d, max: f } = !B.value.style.chart.lines.distributed && (B.value.style.chart.grid.scale.scaleMax !== null || B.value.style.chart.grid.scale.scaleMin !== null) ? h(B.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : B.value.style.chart.grid.scale.scaleMin, B.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : B.value.style.chart.grid.scale.scaleMax, B.value.style.chart.grid.scale.ticks) : te(B.value.style.chart.grid.scale.scaleMin === null ? u > 0 ? 0 : u : B.value.style.chart.grid.scale.scaleMin, B.value.style.chart.grid.scale.scaleMax === null ? l < 0 ? 0 : l : B.value.style.chart.grid.scale.scaleMax, B.value.style.chart.grid.scale.ticks), p = f + (d >= 0 ? 0 : Math.abs(d)) || 1, m = Array(i).fill(0), g = Array(i).fill(0), _ = (e) => i <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e / (i - 1) * W.value.width;
748
+ return G.value.filter((e) => !R.value.includes(e.id)).map((r) => {
749
+ let a = [], o = [], s = [], c = Array(i).fill(null), l = Array(i).fill(null);
750
+ for (let u = 0; u < i; u += 1) {
751
+ let i = n + u, d = r.series?.[i], f = r.signedSeries?.[i], h = d == null || Number.isNaN(d) ? 0 : d, _ = r.standalone ? h / p : B.value.style.chart.lines.distributed ? h / (Tr.value[u] || 1) : h / p;
752
+ if (h >= 0) {
753
+ let n = e * Math.abs(_);
754
+ if (r.standalone) c[u] = t, l[u] = t - n;
755
+ else {
756
+ let e = m[u], r = e + n;
757
+ c[u] = t - e, l[u] = t - r, m[u] = r;
758
+ }
759
+ } else {
760
+ let n = e * Math.abs(_);
761
+ if (r.standalone) c[u] = t, l[u] = t + n;
762
+ else {
763
+ let e = g[u], r = e + n;
764
+ c[u] = t + e, l[u] = t + r, g[u] = r;
765
+ }
766
+ }
767
+ a.push(u), o.push(h), s.push(f ?? (h >= 0 ? 1 : -1));
768
+ }
769
+ let u = a.map((e) => ({
770
+ x: _(e),
771
+ y: l[e]
772
+ })), d = u.map((e) => e.x), f = o.reduce((e, t) => e + Math.abs(t || 0), 0), h = f === 0 ? 1 : f, v = o.map((e, t) => {
773
+ if (B.value.style.chart.lines.distributed && !r.standalone) {
774
+ let n = a[t], r = Tr.value[n] || 1;
775
+ return (e || 0) / r;
776
+ }
777
+ return (e || 0) / h;
778
+ });
779
+ return {
780
+ ...r,
781
+ x: d,
782
+ points: u,
783
+ baseY: a.map((e) => c[e]),
784
+ topY: a.map((e) => l[e]),
785
+ series: o,
786
+ signedSeries: s,
787
+ proportions: v,
788
+ rel: a,
789
+ fullSeries: Array.isArray(r.fullSeries) ? r.fullSeries : r.series
790
+ };
791
+ });
792
+ }), Y = x(() => {
793
+ let e = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "", t = Math.max(...Ar.value.positive, 0), r = Math.min(...Ar.value.negative, 0), i = Math.max(...jr.value.positive, 0), a = Math.min(...jr.value.negative, 0), o = Math.max(t, i), s = Math.min(r, a), l = !B.value.style.chart.lines.distributed && (B.value.style.chart.grid.scale.scaleMax !== null || B.value.style.chart.grid.scale.scaleMin !== null) ? h(B.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : B.value.style.chart.grid.scale.scaleMin, B.value.style.chart.grid.scale.scaleMax === null ? o < 0 ? 0 : o : B.value.style.chart.grid.scale.scaleMax, B.value.style.chart.grid.scale.ticks) : te(B.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : B.value.style.chart.grid.scale.scaleMin, B.value.style.chart.grid.scale.scaleMax === null ? o < 0 ? 0 : o : B.value.style.chart.grid.scale.scaleMax, B.value.style.chart.grid.scale.ticks), u = Number(l.min) || 0, d = Number(l.max) || 0, f = Math.abs(u), p = d + f || 1, m = (e) => {
794
+ if (B.value.style.chart.lines.distributed) {
795
+ let t = Math.max(0, Math.min(1, e));
796
+ return minimapH - minimapH * t;
797
+ }
798
+ return clampY(minimapH - minimapH * (((e ?? 0) + f) / p));
799
+ };
800
+ return qr.value.map((t) => {
801
+ let r = t.x.length, i = Array.isArray(t.fullSeries) ? t.fullSeries : t.series, a = ({ left: e = 0, unitW: t }) => {
802
+ let n = i.length;
803
+ return !Number.isFinite(t) || t <= 0 || n <= 0 ? [] : n === 1 ? [e + t * .5] : i.map((n, r) => e + r * t);
804
+ }, o = ({ minimapH: e }) => !Number.isFinite(e) || e <= 0 ? [] : i.map((t) => m(t || 0, e)), s = ({ minimapH: e }) => {
805
+ if (!Number.isFinite(e) || e <= 0) return [];
806
+ let t = m(0, e);
807
+ return i.map(() => t);
808
+ };
809
+ if (r === 0) return {
810
+ ...t,
811
+ points: [],
812
+ smoothPath: "",
813
+ straightPath: "",
814
+ smoothArea: "",
815
+ straightArea: "",
816
+ xMinimap: a,
817
+ yMinimap: o,
818
+ yMinimapBase: s
819
+ };
820
+ let l = t.x.map((e, n) => ({
821
+ x: e,
822
+ y: t.topY[n]
823
+ })), u = t.x.map((e, n) => ({
824
+ x: e,
825
+ y: t.baseY[n]
826
+ })), d = r >= 2 ? c(l) : `M${l[0].x},${l[0].y}`, f = r >= 2 ? n(l) : `M${l[0].x},${l[0].y}`, p = r >= 2 ? `M${e(d)}` : d, h = r >= 2 ? `M${e(f)}` : f, g = "", _ = "";
827
+ if (B.value.style.chart.lines.useArea && r >= 2) {
828
+ let t = c([...u].reverse()), r = n([...u].reverse()), i = u[u.length - 1];
829
+ g = `M${l[0].x},${l[0].y} ${e(d)} L${i.x},${i.y} ${e(t)} Z`, _ = `M${l[0].x},${l[0].y} ${e(f)} L${i.x},${i.y} ${e(r)} Z`;
830
+ }
831
+ return {
832
+ ...t,
833
+ points: l,
834
+ smoothPath: p,
835
+ straightPath: h,
836
+ smoothArea: g,
837
+ straightArea: _,
838
+ xMinimap: a,
839
+ yMinimap: o,
840
+ yMinimapBase: s
841
+ };
842
+ });
843
+ }), Jr = x(() => $.value === null || $.value === void 0 ? null : {
844
+ timeLabel: fi($.value),
845
+ absoluteIndex: $.value + q.value.start,
846
+ seriesIndex: $.value,
847
+ datapoint: di.value,
848
+ series: Y.value,
849
+ config: B.value
850
+ }), Yr = k(!1), Xr = k(!1);
851
+ function Zr(e) {
852
+ let t = K.value;
853
+ return e > t ? t : e < 0 || e < q.value.start ? B.value.style.chart.zoom.startIndex === null ? 1 : q.value.start + 1 : e;
854
+ }
855
+ function Qr() {
856
+ if (!Yr.value) {
857
+ Yr.value = !0;
858
+ try {
859
+ let { startIndex: e, endIndex: t, keepState: n } = B.value.style.chart.zoom, r = n ? Math.max(0, K.value) : K.value;
860
+ if (n && r <= 0) return;
861
+ let i = e ?? 0, a = t == null ? r : Math.min(Zr(t + 1), r);
862
+ ti.value = !0, q.value.start = i, q.value.end = a, J.value.start = i, J.value.end = a, br(), Xr.value = !0;
863
+ } finally {
864
+ queueMicrotask(() => {
865
+ ti.value = !1;
866
+ }), Yr.value = !1;
867
+ }
868
+ }
869
+ }
870
+ function $r(e) {
871
+ Yr.value || ti.value || e !== q.value.start && (q.value.start = e, J.value.start = e, br());
872
+ }
873
+ function ei(e) {
874
+ if (Yr.value || ti.value) return;
875
+ let t = Zr(e);
876
+ t !== q.value.end && (q.value.end = t, J.value.end = t, br());
877
+ }
878
+ let X = x(() => ({
879
+ left: W.value.left,
880
+ right: W.value.right,
881
+ width: W.value.width
882
+ }));
883
+ et([
884
+ x(() => {
885
+ let e = B.value.style.chart.grid.y.axisLabels, { prefix: t, suffix: n } = B.value.style.chart.lines.dataLabels;
886
+ return Fr.value.map((r) => String(y(e.formatter, r.value, m({
887
+ p: t,
888
+ v: r.value,
889
+ s: n,
890
+ r: e.rounding
891
+ }), { datapoint: r }) ?? "")).join("|");
892
+ }),
893
+ () => B.value.style.chart.grid.y.axisLabels.show,
894
+ () => B.value.style.chart.grid.y.axisLabels.fontSize,
895
+ () => B.value.style.chart.grid.y.axisLabels.bold,
896
+ () => B.value.style.chart.grid.y.position
897
+ ], () => {
898
+ B.value.style.chart.grid.y.axisLabels.show && jn();
899
+ }, { flush: "post" });
900
+ let ti = k(!1);
901
+ Ce({
902
+ timeLabelsEls: bn,
903
+ timeLabels: Ir,
904
+ slicer: q,
905
+ configRef: B,
906
+ rotationPath: [
907
+ "style",
908
+ "chart",
909
+ "grid",
910
+ "x",
911
+ "timeLabels",
912
+ "rotation"
913
+ ],
914
+ autoRotatePath: [
915
+ "style",
916
+ "chart",
917
+ "grid",
918
+ "x",
919
+ "timeLabels",
920
+ "autoRotate",
921
+ "enable"
922
+ ],
923
+ isAutoSize: !1,
924
+ width: x(() => U.value.width),
925
+ height: x(() => U.value.height),
926
+ rotation: B.value.style.chart.grid.x.timeLabels.autoRotate.angle
927
+ });
928
+ let ni = k(null);
929
+ function ri(e) {
930
+ let t = Hn.value;
931
+ if (!t) return null;
932
+ if (t.createSVGPoint && t.getScreenCTM) {
933
+ let n = t.createSVGPoint();
934
+ n.x = e.clientX, n.y = e.clientY;
935
+ let r = t.getScreenCTM();
936
+ if (r) {
937
+ let e = n.matrixTransform(r.inverse());
938
+ return {
939
+ x: e.x,
940
+ y: e.y,
941
+ ok: !0
942
+ };
943
+ }
944
+ }
945
+ let n = t.getBoundingClientRect(), r = t.viewBox?.baseVal || {
946
+ x: 0,
947
+ y: 0,
948
+ width: n.width,
949
+ height: n.height
950
+ }, 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;
951
+ return {
952
+ x: (e.clientX - n.left - s) / i + r.x,
953
+ y: (e.clientY - n.top - c) / i + r.y,
954
+ ok: !0
955
+ };
956
+ }
957
+ let ii = 0, Z = x(() => Math.max(1, q.value.end - q.value.start)), ai = x(() => Z.value > 1 ? W.value.width / (Z.value - 1) : 0);
958
+ function Q(e) {
959
+ return Z.value <= 1 ? W.value.left + W.value.width / 2 : W.value.left + e * ai.value;
960
+ }
961
+ function oi(e) {
962
+ if (Z.value <= 1) return {
963
+ x: W.value.left,
964
+ width: W.value.width
965
+ };
966
+ let t = e === 0 ? W.value.left : (Q(e - 1) + Q(e)) / 2, n = e === Z.value - 1 ? W.value.left + W.value.width : (Q(e) + Q(e + 1)) / 2;
967
+ return {
968
+ x: t,
969
+ width: Math.max(0, n - t)
970
+ };
971
+ }
972
+ function si(e) {
973
+ Nn.value || (ii && cancelAnimationFrame(ii), ii = requestAnimationFrame(() => {
974
+ ii = 0;
975
+ let t = ri(e);
976
+ if (!t || !Hn.value) {
977
+ ui();
978
+ return;
979
+ }
980
+ let { left: n, right: r, top: i, bottom: a } = W.value;
981
+ if (t.x < n || t.x > r || t.y < i || t.y > a) {
982
+ ui();
983
+ return;
984
+ }
985
+ let o = 0;
986
+ if (Z.value > 1) {
987
+ let e = (t.x - n) / ai.value;
988
+ o = Math.round(e);
989
+ } else o = 0;
990
+ o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1), ni.value !== o && (ni.value = o, mi(!0, o));
991
+ }));
992
+ }
993
+ function ci(e) {
994
+ let t = ri(e);
995
+ if (!t || !Hn.value) return;
996
+ let { left: n, right: r, top: i, bottom: a } = W.value;
997
+ if (t.x < n || t.x > r || t.y < i || t.y > a) return;
998
+ let o = 0;
999
+ if (Z.value > 1) {
1000
+ let e = (t.x - n) / ai.value;
1001
+ o = Math.round(e);
1002
+ } else o = 0;
1003
+ o < 0 && (o = 0), o > Z.value - 1 && (o = Z.value - 1), qi({
1004
+ seriesIndex: o,
1005
+ datapoint: zi(o)
1006
+ }), li(o);
1007
+ }
1008
+ function li(e) {
1009
+ let t = JSON.parse(JSON.stringify(Y.value)).map((t) => ({
1010
+ name: t.name,
1011
+ value: t.series[e] === 0 ? 0 : t.series[e] || null,
1012
+ proportion: t.proportions[e] || null,
1013
+ color: t.color,
1014
+ id: t.id
1015
+ }));
1016
+ B.value.events.datapointClick && B.value.events.datapointClick({
1017
+ datapoint: t,
1018
+ seriesIndex: e + q.value.start
1019
+ }), F("selectDatapoint", {
1020
+ datapoint: t,
1021
+ period: Ir.value[e]
1022
+ });
1023
+ }
1024
+ et(() => [
1025
+ q.value.start,
1026
+ q.value.end,
1027
+ Y.value.length
1028
+ ], () => {
1029
+ let e = Z.value;
1030
+ if ($.value != null) {
1031
+ if (e <= 0) {
1032
+ $.value = null;
1033
+ return;
1034
+ }
1035
+ $.value < 0 && ($.value = 0), $.value > e - 1 && ($.value = e - 1);
1036
+ }
1037
+ });
1038
+ function ui() {
1039
+ ii &&= (cancelAnimationFrame(ii), 0), ni.value = null, mi(!1, null);
1040
+ }
1041
+ let $ = k(null), di = x(() => {
1042
+ let e = $.value, t = e == null ? null : _r(e);
1043
+ return Y.value.map((n) => ({
1044
+ slotAbsoluteIndex: n.absoluteIndex,
1045
+ shape: n.shape || "circle",
1046
+ name: n.name,
1047
+ color: n.color,
1048
+ value: e == null ? null : n.series.find((t, n) => n === e),
1049
+ sourceValue: t == null ? null : n.seriesSource?.[t],
1050
+ comments: n.comments || [],
1051
+ id: n.id,
1052
+ standalone: !!n.standalone
1053
+ }));
1054
+ });
1055
+ function fi(e) {
1056
+ if (e == null || !B.value.style.chart.tooltip.showTimeLabel) return null;
1057
+ let t = Ir.value?.[e]?.text || null, n = Kr.value?.[e]?.text || null, r = Lr.value?.[e]?.text || null;
1058
+ return B.value.style.chart.tooltip.useDefaultTimeFormat ? t : n || r;
1059
+ }
1060
+ let pi = x(() => {
1061
+ let e = B.value.style.chart.tooltip.customFormat, t = [...di.value].reverse(), n = t.filter((e) => !e.standalone), r = t.filter((e) => e.standalone), i = n.map((e) => e.value).filter((e) => le(e) && e !== null).reduce((e, t) => Math.abs(e) + Math.abs(t), 0);
1062
+ if (_(e) && ae(() => e({
1063
+ absoluteIndex: $.value + q.value.start,
1064
+ seriesIndex: $.value,
1065
+ datapoint: di.value,
1066
+ series: G.value,
1067
+ config: B.value
1068
+ }))) return e({
1069
+ absoluteIndex: $.value + q.value.start,
1070
+ seriesIndex: $.value,
1071
+ datapoint: di.value,
1072
+ series: G.value,
1073
+ config: B.value
1074
+ });
1075
+ let { showValue: a, showTotal: o, totalTranslation: s, showPercentage: c, borderColor: l, roundingValue: u, roundingPercentage: f } = B.value.style.chart.tooltip, p = (e) => !e.shape || ![
1076
+ "star",
1077
+ "triangle",
1078
+ "square",
1079
+ "diamond",
1080
+ "pentagon",
1081
+ "hexagon"
1082
+ ].includes(e.shape) ? `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${B.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${e.color}" /></svg>` : e.shape === "star" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><polygon stroke="${B.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${e.color}" points="${d({
1083
+ plot: {
1084
+ x: 6,
1085
+ y: 6
1086
+ },
1087
+ radius: 5
1088
+ })}" /></svg>` : e.shape === "triangle" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${ne({
1089
+ plot: {
1090
+ x: 6,
1091
+ y: 6
1092
+ },
1093
+ radius: 6,
1094
+ sides: 3,
1095
+ rotation: .52
1096
+ }).path}" fill="${e.color}" stroke="${B.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "square" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${ne({
1097
+ plot: {
1098
+ x: 6,
1099
+ y: 6
1100
+ },
1101
+ radius: 6,
1102
+ sides: 4,
1103
+ rotation: .8
1104
+ }).path}" fill="${e.color}" stroke="${B.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "diamond" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${ne({
1105
+ plot: {
1106
+ x: 6,
1107
+ y: 6
1108
+ },
1109
+ radius: 5,
1110
+ sides: 4,
1111
+ rotation: 0
1112
+ }).path}" fill="${e.color}" stroke="${B.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : e.shape === "pentagon" ? `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${ne({
1113
+ plot: {
1114
+ x: 6,
1115
+ y: 6
1116
+ },
1117
+ radius: 5,
1118
+ sides: 5,
1119
+ rotation: .95
1120
+ }).path}" fill="${e.color}" stroke="${B.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : `<svg viewBox="0 0 12 12" height="14" width="14" style="overflow:visible"><path d="${ne({
1121
+ plot: {
1122
+ x: 6,
1123
+ y: 6
1124
+ },
1125
+ radius: 5,
1126
+ sides: 6,
1127
+ rotation: 0
1128
+ }).path}" fill="${e.color}" stroke="${B.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`, h = (e, t) => {
1129
+ let n = t ? m({
1130
+ v: isNaN((e.value ?? 0) / (i || 1)) ? 0 : Math.abs(e.value ?? 0) / (i || 1) * 100,
1131
+ s: "%",
1132
+ r: f
1133
+ }) : "", r = a && t ? "(" : "", o = a && t ? ")" : "";
1134
+ return `
1135
+ <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
1136
+ <div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center;">${p(e)}</div>
1137
+ ${e.name}${a || t ? ":" : ""}
1138
+ ${a ? y(B.value.style.chart.lines.dataLabels.formatter, e.sourceValue, m({
1139
+ p: B.value.style.chart.lines.dataLabels.prefix,
1140
+ v: e.sourceValue,
1141
+ s: B.value.style.chart.lines.dataLabels.suffix,
1142
+ r: u
1143
+ }, { datapoint: e })) : ""} ${r}${n}${o}
1144
+ </div>
1145
+ `;
1146
+ }, v = "", ee = fi($.value);
1147
+ return ee && (v += `<div style="width:100%;text-align:center;border-bottom:1px solid ${l};padding-bottom:6px;margin-bottom:3px;">${ee}</div>`), o && n.length > 1 && (v += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
1148
+ <span>${s}:</span>
1149
+ <span>${y(B.value.style.chart.lines.dataLabels.formatter, g(i), m({
1150
+ p: B.value.style.chart.lines.dataLabels.prefix,
1151
+ v: g(i),
1152
+ s: B.value.style.chart.lines.dataLabels.suffix,
1153
+ r: u
1154
+ }), { datapoint: {
1155
+ name: s,
1156
+ value: g(i)
1157
+ } })}</span>
1158
+ </div>`), n.forEach((e) => {
1159
+ v += h(e, c);
1160
+ }), r.length && (v += `<div style="border-top:1px solid ${mr.value.length ? l : "transparent"}; margin:${mr.value.length ? "6px 0" : "0"};"></div>`, r.forEach((e) => {
1161
+ v += h(e, !1);
1162
+ })), `<div>${v}</div>`;
1163
+ });
1164
+ function mi(e, t = null, n = "pointer") {
1165
+ if (Er.value) return;
1166
+ Dn.value = n, Qt.value = e;
1167
+ let r = Y.value.map((e) => ({
1168
+ name: e.name,
1169
+ value: [
1170
+ null,
1171
+ void 0,
1172
+ NaN
1173
+ ].includes(e.series[t]) ? null : e.series[t],
1174
+ color: e.color
1175
+ }));
1176
+ e ? (z.value = t, $.value = t, qi({
1177
+ seriesIndex: t,
1178
+ datapoint: r
1179
+ }), B.value.events.datapointEnter && B.value.events.datapointEnter({
1180
+ datapoint: r,
1181
+ seriesIndex: t + q.value.start
1182
+ })) : (z.value = null, $.value = null, F("selectX", {
1183
+ index: null,
1184
+ indexLabel: null,
1185
+ dataset: null
1186
+ }), B.value.events.datapointLeave && B.value.events.datapointLeave({
1187
+ datapoint: r,
1188
+ seriesIndex: t + q.value.start
1189
+ }));
1190
+ }
1191
+ function hi(e, t) {
1192
+ let n = JSON.parse(JSON.stringify(Y.value)).map((e) => ({
1193
+ name: e.name,
1194
+ value: e.series[t] === 0 ? 0 : (e.signedSeries[t] === -1 && e.series[t] >= 0 ? -e.series[t] : e.series[t]) || null,
1195
+ proportion: e.proportions[t] || null,
1196
+ color: e.color,
1197
+ id: e.id
1198
+ }));
1199
+ F("selectTimeLabel", {
1200
+ datapoint: n,
1201
+ absoluteIndex: e.absoluteIndex,
1202
+ label: e.text
1203
+ });
1204
+ }
1205
+ function gi() {
1206
+ R.value.length ? R.value = [] : vi.value.forEach((e) => {
1207
+ R.value.push(e.id);
1208
+ }), F("selectLegend", Y.value);
1209
+ }
1210
+ function _i(e) {
1211
+ if (R.value.includes(e.id)) R.value = R.value.filter((t) => t !== e.id);
1212
+ else {
1213
+ if (R.value.length === G.value.length - 1) return;
1214
+ R.value.push(e.id);
1215
+ }
1216
+ F("selectLegend", Y.value);
1217
+ }
1218
+ let vi = x(() => G.value.map((e) => ({
1219
+ ...e,
1220
+ opacity: R.value.includes(e.id) ? .5 : 1,
1221
+ segregate: () => _i(e),
1222
+ isSegregated: R.value.includes(e.id)
1223
+ }))), yi = x(() => ({
1224
+ cy: "stackline-legend",
1225
+ backgroundColor: B.value.style.chart.legend.backgroundColor,
1226
+ color: B.value.style.chart.legend.color,
1227
+ fontSize: B.value.style.chart.legend.fontSize,
1228
+ paddingBottom: 12,
1229
+ fontWeight: B.value.style.chart.legend.bold ? "bold" : ""
1230
+ }));
1231
+ function bi(e) {
1232
+ return G.value.length ? G.value.find((t) => t.name === e) || (B.value.debug && console.warn(`VueUiStackline - Series name not found "${e}"`), null) : (B.value.debug && console.warn("VueUiStackline - There are no series to show."), null);
1233
+ }
1234
+ function xi(e) {
1235
+ let t = bi(e);
1236
+ t !== null && R.value.includes(t.id) && _i({ id: t.id });
1237
+ }
1238
+ function Si(e) {
1239
+ let t = bi(e);
1240
+ t !== null && (R.value.includes(t.id) || _i({ id: t.id }));
1241
+ }
1242
+ let Ci = x(() => {
1243
+ if (Y.value.length === 0) return {
1244
+ head: [],
1245
+ body: [],
1246
+ config: {},
1247
+ columnNames: []
1248
+ };
1249
+ let e = Y.value.map(({ name: e, color: t }) => ({
1250
+ label: e,
1251
+ color: t
1252
+ })), t = [];
1253
+ return Vr.value.forEach((e) => {
1254
+ let n = e.absoluteIndex, r = [B.value.style.chart.grid.x.timeLabels.values?.[n] ? e.text : n + 1];
1255
+ G.value.forEach((e) => {
1256
+ let t = e.series?.[n], i = Number((t ?? 0).toFixed(B.value.table.td.roundingValue));
1257
+ r.push(i);
1258
+ }), t.push(r);
1259
+ }), {
1260
+ head: e,
1261
+ body: t
1262
+ };
1263
+ });
1264
+ function wi(e = null) {
1265
+ let t = [
1266
+ [B.value.style.chart.title.text],
1267
+ [B.value.style.chart.title.subtitle.text],
1268
+ [""]
1269
+ ], n = ["", ...Ci.value.head.map((e) => e.label)], r = Ci.value.body, i = a(t.concat([n]).concat(r));
1270
+ e ? e(i) : u({
1271
+ csvContent: i,
1272
+ title: B.value.style.chart.title.text || "vue-ui-stackline"
1273
+ });
1274
+ }
1275
+ let Ti = x(() => {
1276
+ let e = [""].concat(Y.value.map((e) => e.name), " <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>"), t = [], n = Math.max(0, q.value.end - q.value.start);
1277
+ for (let e = 0; e < n; e += 1) {
1278
+ let n = _r(e), r = B.value.style.chart.grid.x.timeLabels.values?.[n] ? Ir.value?.[e]?.text ?? n + 1 : n + 1, i = Y.value.map((t) => {
1279
+ let n = t.series?.[e] ?? 0;
1280
+ return Number(n.toFixed(B.value.table.td.roundingValue));
1281
+ }), a = Y.value.filter((e) => !e.standalone).map((t) => t.series?.[e] ?? 0).reduce((e, t) => e + t, 0);
1282
+ t.push([r].concat(i, Number(a.toFixed(B.value.table.td.roundingValue))));
1283
+ }
1284
+ return {
1285
+ head: e,
1286
+ body: t,
1287
+ config: {
1288
+ th: {
1289
+ backgroundColor: B.value.table.th.backgroundColor,
1290
+ color: B.value.table.th.color,
1291
+ outline: B.value.table.th.outline
1292
+ },
1293
+ td: {
1294
+ backgroundColor: B.value.table.td.backgroundColor,
1295
+ color: B.value.table.td.color,
1296
+ outline: B.value.table.td.outline
1297
+ },
1298
+ breakpoint: B.value.table.responsiveBreakpoint
1299
+ },
1300
+ colNames: [B.value.table.columnNames.period].concat(Y.value.map((e) => e.name), B.value.table.columnNames.total)
1301
+ };
1302
+ }), Ei = x(() => B.value.style.chart.backgroundColor), Di = x(() => B.value.style.chart.legend), { exportSvg: Oi, getSvg: ki } = ye({
1303
+ svg: Hn,
1304
+ title: x(() => B.value.style.chart.title),
1305
+ legend: Di,
1306
+ legendItems: vi,
1307
+ backgroundColor: Ei
1308
+ });
1309
+ async function Ai({ isCb: e }) {
1310
+ gn.value = !0, await We();
1311
+ try {
1312
+ if (e) {
1313
+ let { blob: e, url: t, text: n, dataUrl: r } = await ki();
1314
+ await Promise.resolve(B.value.userOptions.callbacks.svg({
1315
+ blob: e,
1316
+ url: t,
1317
+ text: n,
1318
+ dataUrl: r
1319
+ }));
1320
+ } else await Promise.resolve(Oi());
1321
+ } finally {
1322
+ gn.value = !1;
1323
+ }
1324
+ }
1325
+ async function ji({ scale: e = 2 } = {}) {
1326
+ if (!I.value) return;
1327
+ let { imageUri: t, base64: n } = await we({
1328
+ domElement: I.value,
1329
+ base64: !0,
1330
+ img: !0,
1331
+ scale: e
1332
+ }), r = I.value.getBoundingClientRect(), i = {
1333
+ width: r.width,
1334
+ height: r.height,
1335
+ aspectRatio: r.height ? r.width / r.height : 0
1336
+ }, a = await se(t, e) ?? i;
1337
+ return {
1338
+ imageUri: t,
1339
+ base64: n,
1340
+ title: B.value.style.chart.title.text,
1341
+ ...a
1342
+ };
1343
+ }
1344
+ let Mi = x(() => {
1345
+ let e = B.value.table.useDialog && !B.value.table.show, t = H.value.showTable;
1346
+ return {
1347
+ component: e ? Kt : Vt,
1348
+ title: `${B.value.style.chart.title.text}${B.value.style.chart.title.subtitle.text ? `: ${B.value.style.chart.title.subtitle.text}` : ""}`,
1349
+ props: e ? {
1350
+ backgroundColor: B.value.table.th.backgroundColor,
1351
+ color: B.value.table.th.color,
1352
+ headerColor: B.value.table.th.color,
1353
+ headerBg: B.value.table.th.backgroundColor,
1354
+ isFullscreen: on.value,
1355
+ fullscreenParent: I.value,
1356
+ forcedWidth: Math.min(800, window.innerWidth * .8),
1357
+ isCursorPointer: V.value
1358
+ } : {
1359
+ hideDetails: !0,
1360
+ config: {
1361
+ open: t,
1362
+ maxHeight: 1e4,
1363
+ body: {
1364
+ backgroundColor: B.value.style.chart.backgroundColor,
1365
+ color: B.value.style.chart.color
1366
+ },
1367
+ head: {
1368
+ backgroundColor: B.value.style.chart.backgroundColor,
1369
+ color: B.value.style.chart.color
1370
+ }
1371
+ }
1372
+ }
1373
+ };
1374
+ });
1375
+ et(() => H.value.showTable, (e) => {
1376
+ B.value.table.show || (e && B.value.table.useDialog && fn.value ? fn.value.open() : "close" in fn.value && fn.value.close());
1377
+ });
1378
+ function Ni() {
1379
+ H.value.showTable = !1, pn.value && pn.value.setTableIconState(!1);
1380
+ }
1381
+ function Pi(e) {
1382
+ on.value = e, $t.value += 1;
1383
+ }
1384
+ function Fi() {
1385
+ H.value.showTable = !H.value.showTable;
1386
+ }
1387
+ function Ii() {
1388
+ H.value.dataLabels.show = !H.value.dataLabels.show;
1389
+ }
1390
+ function Li() {
1391
+ H.value.showTooltip = !H.value.showTooltip;
1392
+ }
1393
+ function Ri() {
1394
+ return Y.value;
1395
+ }
1396
+ function zi(e) {
1397
+ let t = e ?? 0, n = _r(t);
1398
+ return JSON.parse(JSON.stringify(Y.value)).map((e) => {
1399
+ let r = e.series[t], i = e.signedSeries?.[t], a = r === 0 ? 0 : (i === -1 && r >= 0 ? -r : r) || null;
1400
+ return {
1401
+ name: e.name,
1402
+ absoluteIndex: e.absoluteIndex,
1403
+ value: a,
1404
+ proportion: e.proportions?.[t] || null,
1405
+ color: e.color,
1406
+ id: e.id,
1407
+ timeLabel: Lr.value?.[n] || null
1408
+ };
1409
+ });
1410
+ }
1411
+ let Bi = x(() => Array(K.value).fill(0).map((e, t) => zi(t)));
1412
+ et(() => P.selectedXIndex, (e) => {
1413
+ if ([null, void 0].includes(P.selectedXIndex)) {
1414
+ $.value = null;
1415
+ return;
1416
+ }
1417
+ let t = e - q.value.start;
1418
+ t < 0 || e >= q.value.end ? $.value = null : $.value = t ?? null;
1419
+ }, { immediate: !0 });
1420
+ let Vi = x(() => {
1421
+ if (B.value.style.chart.lines.distributed) return {
1422
+ min: -1,
1423
+ max: 1
1424
+ };
1425
+ let e = mr.value, t = hr.value, n = Math.max(1, ...[...e, ...t].map((e) => e.series?.length || 0)), r = Array(n).fill(0), i = Array(n).fill(0);
1426
+ e.forEach((e) => {
1427
+ for (let t = 0; t < n; t += 1) {
1428
+ let n = e.series[t] ?? 0;
1429
+ n >= 0 ? r[t] += n : i[t] += n;
1430
+ }
1431
+ });
1432
+ let a = Array(n).fill(0), o = Array(n).fill(0);
1433
+ t.forEach((e) => {
1434
+ for (let t = 0; t < n; t += 1) {
1435
+ let n = e.series[t] ?? 0;
1436
+ n > 0 && (a[t] = Math.max(a[t], n)), n < 0 && (o[t] = Math.min(o[t], n));
1437
+ }
1438
+ });
1439
+ let s = Math.max(0, ...r, ...a), c = Math.min(0, ...i, ...o), l = B.value.style.chart.grid.scale.scaleMin, u = B.value.style.chart.grid.scale.scaleMax, d = B.value.style.chart.grid.scale.ticks, f = !B.value.style.chart.lines.distributed && (l !== null || u !== null) ? h(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d) : te(l === null ? c > 0 ? 0 : c : l, u === null ? s < 0 ? 0 : s : u, d);
1440
+ return {
1441
+ min: Number(f.min) || 0,
1442
+ max: Number(f.max) || 0
1443
+ };
1444
+ });
1445
+ function Hi({ minimapH: e, unitW: t }) {
1446
+ let r = (e) => typeof e == "string" ? e.replace(/^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i, "").trim() : "";
1447
+ if (!Number.isFinite(e) || e <= 0 || !Number.isFinite(t) || t <= 0) return "";
1448
+ let i = Y.value.filter((e) => !e.standalone), a = Y.value.filter((e) => e.standalone), o = Math.max(0, ...Y.value.map((e) => Array.isArray(e.fullSeries) ? e.fullSeries.length : e.series.length));
1449
+ if (o <= 0) return "";
1450
+ let s = o === 1 ? [t * .5] : Array.from({ length: o }, (e, n) => n * t);
1451
+ if (B.value.style.chart.lines.distributed) {
1452
+ let t = Array.from({ length: o }, (e, t) => {
1453
+ let n = 0;
1454
+ return i.forEach((e) => {
1455
+ let r = (Array.isArray(e.fullSeries) ? e.fullSeries : e.series)?.[t];
1456
+ r != null && !Number.isNaN(r) && (n += Math.abs(r));
1457
+ }), n || 1;
1458
+ }), l = (t) => e - e * Math.max(0, Math.min(1, t || 0)), u = [], d = Array(o).fill(0);
1459
+ return i.forEach((e) => {
1460
+ let i = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, a = Array(o), f = Array(o);
1461
+ for (let e = 0; e < o; e += 1) {
1462
+ let n = i?.[e], r = n == null || Number.isNaN(n) ? 0 : Math.abs(n) / t[e];
1463
+ f[e] = d[e], d[e] += r, a[e] = d[e];
1464
+ }
1465
+ let p = a.map(l), m = f.map(l), h = s.map((e, t) => ({
1466
+ x: e,
1467
+ y: p[t]
1468
+ })), g = s.map((e, t) => ({
1469
+ x: e,
1470
+ y: m[t]
1471
+ })), _ = c(h), v = c([...g].reverse()), ee = n(h), te = n([...g].reverse()), y = g[g.length - 1];
1472
+ if (B.value.style.chart.lines.useArea) {
1473
+ let t = B.value.style.chart.lines.smooth ? `M${h[0].x},${h[0].y} ${r(_)} L${y.x},${y.y} ${r(v)} Z` : `M${h[0].x},${h[0].y} ${r(ee)} L${y.x},${y.y} ${r(te)} Z`;
1474
+ u.push(`<path d="${t}"
1475
+ fill="${Xt.pattern ? `url(#pattern_${L.value}_${e.absoluteIndex})` : (B.value.style.chart.lines.gradient.show, e.color)}"
1476
+ opacity="${B.value.style.chart.lines.areaOpacity}"
1477
+ stroke="none" />`);
1478
+ }
1479
+ let ne = B.value.style.chart.lines.smooth ? `M${h[0].x},${h[0].y} ${r(_)}` : `M${h[0].x},${h[0].y} ${r(ee)}`;
1480
+ u.push(`<path d="${ne}"
1481
+ fill="none"
1482
+ stroke="${e.color}"
1483
+ stroke-width="${B.value.style.chart.lines.strokeWidth}"
1484
+ stroke-linecap="round" />`);
1485
+ }), a.length && a.forEach((e) => {
1486
+ let i = Array.isArray(e.fullSeries) ? e.fullSeries : e.series, a = Array.from({ length: o }, (e, n) => l(Math.abs(i?.[n] ?? 0) / t[n])), d = s.map((e, t) => ({
1487
+ x: e,
1488
+ y: a[t]
1489
+ })), f = c(d), p = n(d), m = B.value.style.chart.lines.smooth ? `M${d[0].x},${d[0].y} ${r(f)}` : `M${d[0].x},${d[0].y} ${r(p)}`;
1490
+ u.push(`<path d="${m}"
1491
+ fill="none"
1492
+ stroke="${e.color}"
1493
+ stroke-width="${B.value.style.chart.lines.strokeWidth}"
1494
+ stroke-linecap="round" />`);
1495
+ }), u.join("");
1496
+ }
1497
+ let l = Vi.value.min, u = Vi.value.max, d = Math.abs(l), f = u + d || 1, p = (t) => Math.max(0, Math.min(e, t)), m = (t) => p(e - e * (((t ?? 0) + d) / f)), h = [];
1498
+ if (i.length) {
1499
+ let e = Array(o).fill(0), t = Array(o).fill(0);
1500
+ i.forEach((i) => {
1501
+ let a = Array.isArray(i.fullSeries) ? i.fullSeries : i.series, l = Array(o), u = Array(o);
1502
+ for (let n = 0; n < o; n += 1) {
1503
+ let r = a?.[n] ?? 0;
1504
+ r >= 0 ? (u[n] = e[n], e[n] += r, l[n] = e[n]) : (u[n] = t[n], t[n] += r, l[n] = t[n]);
1505
+ }
1506
+ let d = l.map(m), f = u.map(m), p = s.map((e, t) => ({
1507
+ x: e,
1508
+ y: d[t]
1509
+ })), g = s.map((e, t) => ({
1510
+ x: e,
1511
+ y: f[t]
1512
+ })), _ = c(p), v = c([...g].reverse()), ee = n(p), te = n([...g].reverse()), y = g[g.length - 1];
1513
+ if (B.value.style.chart.lines.useArea) {
1514
+ let e = B.value.style.chart.lines.smooth ? `M${p[0].x},${p[0].y} ${r(_)} L${y.x},${y.y} ${r(v)} Z` : `M${p[0].x},${p[0].y} ${r(ee)} L${y.x},${y.y} ${r(te)} Z`;
1515
+ h.push(`<path d="${e}"
1516
+ fill="${Xt.pattern ? `url(#pattern_${L.value}_${i.absoluteIndex})` : (B.value.style.chart.lines.gradient.show, i.color)}"
1517
+ opacity="${B.value.style.chart.lines.areaOpacity}"
1518
+ stroke="none" />`);
1519
+ }
1520
+ let ne = B.value.style.chart.lines.smooth ? `M${p[0].x},${p[0].y} ${r(_)}` : `M${p[0].x},${p[0].y} ${r(ee)}`;
1521
+ h.push(`<path d="${ne}"
1522
+ fill="none"
1523
+ stroke="${i.color}"
1524
+ stroke-width="${B.value.style.chart.lines.strokeWidth}"
1525
+ stroke-linecap="round" />`);
1526
+ });
1527
+ }
1528
+ return a.length && a.forEach((e) => {
1529
+ let t = (Array.isArray(e.fullSeries) ? e.fullSeries : e.series).map(m), i = s.map((e, n) => ({
1530
+ x: e,
1531
+ y: t[n]
1532
+ })), a = c(i), o = n(i), l = B.value.style.chart.lines.smooth ? `M${i[0].x},${i[0].y} ${r(a)}` : `M${i[0].x},${i[0].y} ${r(o)}`;
1533
+ h.push(`<path d="${l}"
1534
+ fill="none"
1535
+ stroke="${e.color}"
1536
+ stroke-width="${B.value.style.chart.lines.strokeWidth}"
1537
+ stroke-linecap="round" />`);
1538
+ }), h.join("");
1539
+ }
1540
+ function Ui(e, t) {
1541
+ let n = B.value.style.chart.lines, r = n.dataLabels;
1542
+ return n.showDistributedPercentage && n.distributed ? qn.value ? t === 0 ? !r.hideEmptyPercentages : Math.abs(t) * 100 >= r.hideUnderPercentage : !r.hideEmptyPercentages || Math.abs(t) > 0 : qn.value ? (Kn.value && rr.value && console.warn("Vue Data UI - VueUiStackline - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), Math.abs(e) > Wi.value * r.hideUnderPercentage / 100) : Kn.value ? Math.abs(e) >= r.hideUnderValue : !r.hideEmptyValues || e !== 0;
1543
+ }
1544
+ let Wi = x(() => Math.max(...Y.value.flatMap((e) => e.series)));
1545
+ function Gi(e, t, n, r, i) {
1546
+ let a = i === -1 && e >= 0 ? -e : e;
1547
+ return y(B.value.style.chart.lines.dataLabels.formatter, a, m({
1548
+ p: B.value.style.chart.lines.dataLabels.prefix,
1549
+ v: a,
1550
+ s: B.value.style.chart.lines.dataLabels.suffix,
1551
+ r: B.value.style.chart.lines.dataLabels.rounding
1552
+ }), {
1553
+ datapoint: t,
1554
+ seriesIndex: n,
1555
+ datapointIndex: r
1556
+ });
1557
+ }
1558
+ function Ki(e, t, n, r) {
1559
+ return y(B.value.style.chart.lines.dataLabels.formatter, e, m({
1560
+ v: isNaN(e) ? 0 : e,
1561
+ s: "%",
1562
+ r: B.value.style.chart.lines.dataLabels.rounding
1563
+ }), {
1564
+ datapoint: t,
1565
+ seriesIndex: n,
1566
+ datapointIndex: r
1567
+ });
1568
+ }
1569
+ function qi({ seriesIndex: e, datapoint: t }) {
1570
+ let n = q.value.start + e;
1571
+ F("selectX", {
1572
+ dataset: t,
1573
+ index: n,
1574
+ indexLabel: B.value.style.chart.grid.x.timeLabels.values[n]
1575
+ });
1576
+ }
1577
+ function Ji(e) {
1578
+ if (e?.stage === "start") {
1579
+ hn.value = !0;
1580
+ return;
1581
+ }
1582
+ if (e?.stage === "end") {
1583
+ hn.value = !1;
1584
+ return;
1585
+ }
1586
+ Zn();
1587
+ }
1588
+ async function Yi() {
1589
+ if (F("copyAlt", {
1590
+ config: B.value,
1591
+ dataset: Y.value
1592
+ }), !B.value.userOptions.callbacks.altCopy) {
1593
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1594
+ return;
1595
+ }
1596
+ await Promise.resolve(B.value.userOptions.callbacks.altCopy({
1597
+ config: B.value,
1598
+ dataset: Y.value
1599
+ }));
1600
+ }
1601
+ let Xi = k(!1);
1602
+ function Zi() {
1603
+ z.value = null, Xi.value = !0;
1604
+ }
1605
+ function Qi() {
1606
+ z.value = null, Dn.value = "pointer", Qt.value = !1, $.value = null, F("selectX", {
1607
+ index: null,
1608
+ indexLabel: null,
1609
+ dataset: null
1610
+ }), Xi.value = !1;
1611
+ }
1612
+ function $i(e) {
1613
+ if (!Hn.value || Nn.value || document.activeElement !== Hn.value || Er.value || !Z.value) return;
1614
+ let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
1615
+ if (!t && !n && !r && !i) return;
1616
+ if (e.preventDefault(), e.stopPropagation(), i) {
1617
+ z.value = null, Dn.value = "pointer", Qt.value = !1, $.value = null, F("selectX", {
1618
+ index: null,
1619
+ indexLabel: null,
1620
+ dataset: null
1621
+ });
1622
+ return;
1623
+ }
1624
+ if (r) {
1625
+ if (z.value === null) return;
1626
+ li(z.value);
1627
+ return;
1628
+ }
1629
+ let a = z.value, o = ni.value, s = a !== null && a >= 0 && a < Z.value, c = o !== null && o >= 0 && o < Z.value;
1630
+ s ? n ? (a += 1, a >= Z.value && (a = 0)) : t && (--a, a < 0 && (a = Z.value - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Z.value && (a = 0), a < 0 && (a = Z.value - 1)) : a = n ? 0 : Z.value - 1, z.value = a, ea(a), mi(!0, a, "keyboard");
1631
+ }
1632
+ function ea(e) {
1633
+ if (!Number.isFinite(e) || !Hn.value) return;
1634
+ let t = p(W.value.left + e * ai.value, W.value.top + W.value.height / 2, Hn.value);
1635
+ t && (En.value = t);
1636
+ }
1637
+ let ta = x(() => ({
1638
+ headers: Ti.value?.colNames ?? [],
1639
+ rows: Ti.value?.body ?? []
1640
+ }));
1641
+ return De({
1642
+ getData: Ri,
1643
+ getImage: ji,
1644
+ generatePdf: Xn,
1645
+ generateCsv: wi,
1646
+ generateImage: Zn,
1647
+ generateSvg: Ai,
1648
+ hideSeries: Si,
1649
+ showSeries: xi,
1650
+ toggleTable: Fi,
1651
+ toggleLabels: Ii,
1652
+ toggleTooltip: Li,
1653
+ toggleAnnotator: Pn,
1654
+ toggleFullscreen: Pi,
1655
+ copyAlt: Yi
1656
+ }), (t, n) => (O(), w("div", {
1657
+ id: `stackline_${L.value}`,
1658
+ ref_key: "stacklineChart",
1659
+ ref: I,
1660
+ class: Ge({
1661
+ "vue-data-ui-component": !0,
1662
+ "vue-ui-stackline": !0,
1663
+ "vue-data-ui-wrapper-fullscreen": on.value
1664
+ }),
1665
+ style: Ke(`background:${B.value.style.chart.backgroundColor};color:${B.value.style.chart.color};font-family:${B.value.style.fontFamily}; position: relative; ${B.value.responsive ? "height: 100%" : ""}`),
1666
+ onMouseenter: Un,
1667
+ onMouseleave: Wn
1668
+ }, [
1669
+ T("div", {
1670
+ id: `chart-instructions-${L.value}`,
1671
+ class: "sr-only"
1672
+ }, [T("p", null, Ze(B.value.a11y.translations.keyboardNavigation), 1)], 8, it),
1673
+ ta.value?.rows?.length ? (O(), S(Ne, {
1674
+ key: 0,
1675
+ uid: L.value,
1676
+ head: ta.value.headers,
1677
+ body: ta.value.rows,
1678
+ notice: B.value.a11y.translations.tableAvailable,
1679
+ caption: B.value.a11y.translations.tableCaption
1680
+ }, null, 8, [
1681
+ "uid",
1682
+ "head",
1683
+ "body",
1684
+ "notice",
1685
+ "caption"
1686
+ ])) : C("", !0),
1687
+ B.value.userOptions.buttons.annotator ? (O(), S(M(Ut), {
1688
+ key: 1,
1689
+ svgRef: M(Hn),
1690
+ backgroundColor: B.value.style.chart.backgroundColor,
1691
+ color: B.value.style.chart.color,
1692
+ active: Nn.value,
1693
+ isCursorPointer: V.value,
1694
+ onClose: Pn
1695
+ }, {
1696
+ "annotator-action-close": N(() => [j(t.$slots, "annotator-action-close", {}, void 0, !0)]),
1697
+ "annotator-action-color": N(({ color: e }) => [j(t.$slots, "annotator-action-color", D(E({ color: e })), void 0, !0)]),
1698
+ "annotator-action-draw": N(({ mode: e }) => [j(t.$slots, "annotator-action-draw", D(E({ mode: e })), void 0, !0)]),
1699
+ "annotator-action-undo": N(({ disabled: e }) => [j(t.$slots, "annotator-action-undo", D(E({ disabled: e })), void 0, !0)]),
1700
+ "annotator-action-redo": N(({ disabled: e }) => [j(t.$slots, "annotator-action-redo", D(E({ disabled: e })), void 0, !0)]),
1701
+ "annotator-action-delete": N(({ disabled: e }) => [j(t.$slots, "annotator-action-delete", D(E({ disabled: e })), void 0, !0)]),
1702
+ _: 3
1703
+ }, 8, [
1704
+ "svgRef",
1705
+ "backgroundColor",
1706
+ "color",
1707
+ "active",
1708
+ "isCursorPointer"
1709
+ ])) : C("", !0),
1710
+ j(t.$slots, "userConfig", {}, void 0, !0),
1711
+ Qn.value ? (O(), w("div", {
1712
+ key: 2,
1713
+ ref_key: "noTitle",
1714
+ ref: rn,
1715
+ class: "vue-data-ui-no-title-space",
1716
+ style: "height:36px; width: 100%;background:transparent"
1717
+ }, null, 512)) : C("", !0),
1718
+ B.value.style.chart.title.text ? (O(), w("div", {
1719
+ key: 3,
1720
+ ref_key: "chartTitle",
1721
+ ref: en,
1722
+ style: "width:100%;background:transparent;"
1723
+ }, [(O(), S(Te, {
1724
+ key: `title_${cn.value}`,
1725
+ config: {
1726
+ title: {
1727
+ cy: "stackline-title",
1728
+ ...B.value.style.chart.title
1729
+ },
1730
+ subtitle: {
1731
+ cy: "stackline-subtitle",
1732
+ ...B.value.style.chart.title.subtitle
1733
+ }
1734
+ }
1735
+ }, null, 8, ["config"]))], 512)) : C("", !0),
1736
+ T("div", { id: `legend-top-${L.value}` }, null, 8, at),
1737
+ B.value.userOptions.show && Zt.value && (M(Vn) || M(zn)) ? (O(), S(M(Wt), {
1738
+ ref_key: "userOptionsRef",
1739
+ ref: pn,
1740
+ key: `user_option_${$t.value}`,
1741
+ backgroundColor: B.value.style.chart.backgroundColor,
1742
+ color: B.value.style.chart.color,
1743
+ isPrinting: M(Jn),
1744
+ isImaging: M(Yn),
1745
+ uid: L.value,
1746
+ hasTooltip: B.value.style.chart.tooltip.show && B.value.userOptions.buttons.tooltip,
1747
+ hasPdf: B.value.userOptions.buttons.pdf,
1748
+ hasImg: B.value.userOptions.buttons.img,
1749
+ hasSvg: B.value.userOptions.buttons.svg,
1750
+ hasXls: B.value.userOptions.buttons.csv,
1751
+ hasTable: B.value.userOptions.buttons.table,
1752
+ hasLabel: B.value.userOptions.buttons.labels,
1753
+ hasFullscreen: B.value.userOptions.buttons.fullscreen,
1754
+ hasAltCopy: B.value.userOptions.buttons.altCopy,
1755
+ isFullscreen: on.value,
1756
+ chartElement: I.value,
1757
+ position: B.value.userOptions.position,
1758
+ isTooltip: H.value.showTooltip,
1759
+ titles: { ...B.value.userOptions.buttonTitles },
1760
+ hasAnnotator: B.value.userOptions.buttons.annotator,
1761
+ isAnnotation: Nn.value,
1762
+ callbacks: B.value.userOptions.callbacks,
1763
+ printScale: B.value.userOptions.print.scale,
1764
+ tableDialog: B.value.table.useDialog,
1765
+ isCursorPointer: V.value,
1766
+ onToggleFullscreen: Pi,
1767
+ onGeneratePdf: M(Xn),
1768
+ onGenerateCsv: wi,
1769
+ onGenerateImage: Ji,
1770
+ onGenerateSvg: Ai,
1771
+ onToggleTable: Fi,
1772
+ onToggleLabels: Ii,
1773
+ onToggleTooltip: Li,
1774
+ onToggleAnnotator: Pn,
1775
+ onCopyAlt: Yi,
1776
+ style: Ke({ visibility: M(Vn) ? M(zn) ? "visible" : "hidden" : "visible" })
1777
+ }, ze({ _: 2 }, [
1778
+ t.$slots.menuIcon ? {
1779
+ name: "menuIcon",
1780
+ fn: N(({ isOpen: e, color: n }) => [j(t.$slots, "menuIcon", D(E({
1781
+ isOpen: e,
1782
+ color: n
1783
+ })), void 0, !0)]),
1784
+ key: "0"
1785
+ } : void 0,
1786
+ t.$slots.optionTooltip ? {
1787
+ name: "optionTooltip",
1788
+ fn: N(() => [j(t.$slots, "optionTooltip", {}, void 0, !0)]),
1789
+ key: "1"
1790
+ } : void 0,
1791
+ t.$slots.optionPdf ? {
1792
+ name: "optionPdf",
1793
+ fn: N(() => [j(t.$slots, "optionPdf", {}, void 0, !0)]),
1794
+ key: "2"
1795
+ } : void 0,
1796
+ t.$slots.optionCsv ? {
1797
+ name: "optionCsv",
1798
+ fn: N(() => [j(t.$slots, "optionCsv", {}, void 0, !0)]),
1799
+ key: "3"
1800
+ } : void 0,
1801
+ t.$slots.optionImg ? {
1802
+ name: "optionImg",
1803
+ fn: N(() => [j(t.$slots, "optionImg", {}, void 0, !0)]),
1804
+ key: "4"
1805
+ } : void 0,
1806
+ t.$slots.optionSvg ? {
1807
+ name: "optionSvg",
1808
+ fn: N(() => [j(t.$slots, "optionSvg", {}, void 0, !0)]),
1809
+ key: "5"
1810
+ } : void 0,
1811
+ t.$slots.optionTable ? {
1812
+ name: "optionTable",
1813
+ fn: N(() => [j(t.$slots, "optionTable", {}, void 0, !0)]),
1814
+ key: "6"
1815
+ } : void 0,
1816
+ t.$slots.optionLabels ? {
1817
+ name: "optionLabels",
1818
+ fn: N(() => [j(t.$slots, "optionLabels", {}, void 0, !0)]),
1819
+ key: "7"
1820
+ } : void 0,
1821
+ t.$slots.optionFullscreen ? {
1822
+ name: "optionFullscreen",
1823
+ fn: N(({ toggleFullscreen: e, isFullscreen: n }) => [j(t.$slots, "optionFullscreen", D(E({
1824
+ toggleFullscreen: e,
1825
+ isFullscreen: n
1826
+ })), void 0, !0)]),
1827
+ key: "8"
1828
+ } : void 0,
1829
+ t.$slots.optionAnnotator ? {
1830
+ name: "optionAnnotator",
1831
+ fn: N(({ toggleAnnotator: e, isAnnotator: n }) => [j(t.$slots, "optionAnnotator", D(E({
1832
+ toggleAnnotator: e,
1833
+ isAnnotator: n
1834
+ })), void 0, !0)]),
1835
+ key: "9"
1836
+ } : void 0,
1837
+ t.$slots.optionAltCopy ? {
1838
+ name: "optionAltCopy",
1839
+ fn: N(({ altCopy: e }) => [j(t.$slots, "optionAltCopy", D(E({ altCopy: e })), void 0, !0)]),
1840
+ key: "10"
1841
+ } : void 0,
1842
+ t.$slots["custom-menu-before"] ? {
1843
+ name: "custom-menu-before",
1844
+ fn: N(() => [j(t.$slots, "custom-menu-before", {}, void 0, !0)]),
1845
+ key: "11"
1846
+ } : void 0,
1847
+ t.$slots["custom-menu-after"] ? {
1848
+ name: "custom-menu-after",
1849
+ fn: N(() => [j(t.$slots, "custom-menu-after", {}, void 0, !0)]),
1850
+ key: "12"
1851
+ } : void 0
1852
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.isTooltip.titles.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : C("", !0),
1853
+ T("div", ot, [(O(), w("svg", {
1854
+ ref_key: "svgRef",
1855
+ ref: Hn,
1856
+ "aria-describedby": `chart-instructions-${L.value}`,
1857
+ xmlns: M(oe),
1858
+ viewBox: `0 0 ${W.value.chartWidth <= 0 ? 10 : W.value.chartWidth} ${W.value.chartHeight <= 0 ? 10 : W.value.chartHeight}`,
1859
+ class: Ge({
1860
+ "vue-data-ui-loading": M(In),
1861
+ "no-transition": !B.value.useCssAnimation
1862
+ }),
1863
+ style: Ke(`max-width:100%;overflow:visible;background:transparent;color:${B.value.style.chart.color}`),
1864
+ role: "img",
1865
+ "aria-live": "polite",
1866
+ tabindex: "0",
1867
+ preserveAspectRatio: "xMidYMid",
1868
+ onMousemove: si,
1869
+ onMouseleave: ui,
1870
+ onClick: ci,
1871
+ onFocus: Zi,
1872
+ onBlur: Qi,
1873
+ onKeydown: $i
1874
+ }, [
1875
+ Ve(M(Gt)),
1876
+ (O(!0), w(b, null, A(mr.value, (e) => (O(), w(b, null, [t.$slots.pattern ? (O(), w("defs", ct, [j(t.$slots, "pattern", Ue({ ref_for: !0 }, {
1877
+ seriesIndex: e.absoluteIndex,
1878
+ patternId: `pattern_${L.value}_${e.absoluteIndex}`
1879
+ }), void 0, !0)])) : C("", !0)], 64))), 256)),
1880
+ t.$slots["chart-background"] ? (O(), w("foreignObject", {
1881
+ key: 0,
1882
+ x: X.value.left,
1883
+ y: W.value.top,
1884
+ width: X.value.width,
1885
+ height: W.value.height,
1886
+ style: { pointerEvents: "none" }
1887
+ }, [j(t.$slots, "chart-background", {}, void 0, !0)], 8, lt)) : C("", !0),
1888
+ B.value.style.chart.lines.gradient.show ? (O(), w("defs", ut, [(O(!0), w(b, null, A(Y.value, (e, t) => (O(), S(Ae, {
1889
+ t: "linear",
1890
+ id: `gradient_${e.id}`,
1891
+ key: `gradient_${e.id}_${t}`,
1892
+ x1: "0%",
1893
+ y1: "0%",
1894
+ x2: "0%",
1895
+ y2: "100%",
1896
+ stops: [[
1897
+ "0%",
1898
+ e.color,
1899
+ 1
1900
+ ], [
1901
+ "100%",
1902
+ M(i)(e.color, B.value.style.chart.lines.gradient.intensity / 100),
1903
+ 1
1904
+ ]]
1905
+ }, null, 8, ["id", "stops"]))), 128))])) : C("", !0),
1906
+ B.value.style.chart.grid.x.showHorizontalLines ? (O(!0), w(b, { key: 2 }, A(Fr.value, (e, t) => (O(), w("line", {
1907
+ x1: X.value.left,
1908
+ x2: X.value.right,
1909
+ y1: e.y,
1910
+ y2: e.y,
1911
+ stroke: B.value.style.chart.grid.x.linesColor,
1912
+ "stroke-width": B.value.style.chart.grid.x.linesThickness,
1913
+ "stroke-dasharray": B.value.style.chart.grid.x.linesStrokeDasharray,
1914
+ "stroke-linecap": "round"
1915
+ }, null, 8, dt))), 256)) : C("", !0),
1916
+ B.value.style.chart.grid.y.showVerticalLines ? (O(!0), w(b, { key: 3 }, A(q.value.end - q.value.start, (e, t) => (O(), w("line", {
1917
+ x1: Q(t),
1918
+ x2: Q(t),
1919
+ y1: W.value.top,
1920
+ y2: W.value.bottom,
1921
+ stroke: B.value.style.chart.grid.y.linesColor,
1922
+ "stroke-width": B.value.style.chart.grid.y.linesThickness,
1923
+ "stroke-dasharray": B.value.style.chart.grid.y.linesStrokeDasharray,
1924
+ "stroke-linecap": "round"
1925
+ }, null, 8, ft))), 256)) : C("", !0),
1926
+ B.value.style.chart.grid.x.showAxis ? (O(), w("line", {
1927
+ key: 4,
1928
+ x1: X.value.left,
1929
+ x2: X.value.right,
1930
+ y1: W.value.bottom,
1931
+ y2: W.value.bottom,
1932
+ stroke: B.value.style.chart.grid.x.axisColor,
1933
+ "stroke-width": B.value.style.chart.grid.x.axisThickness,
1934
+ "stroke-linecap": "round",
1935
+ "stroke-linejoin": "round"
1936
+ }, null, 8, pt)) : C("", !0),
1937
+ B.value.style.chart.grid.y.showAxis && !B.value.style.chart.lines.distributed ? (O(), w("line", {
1938
+ key: 5,
1939
+ x1: ar.value ? X.value.right : X.value.left,
1940
+ x2: ar.value ? X.value.right : X.value.left,
1941
+ y1: W.value.top,
1942
+ y2: W.value.bottom,
1943
+ stroke: B.value.style.chart.grid.y.axisColor,
1944
+ "stroke-width": B.value.style.chart.grid.y.axisThickness,
1945
+ "stroke-linecap": "round",
1946
+ "stroke-linejoin": "round"
1947
+ }, null, 8, mt)) : C("", !0),
1948
+ B.value.style.chart.grid.x.axisName.show && B.value.style.chart.grid.x.axisName.text ? (O(), w("text", {
1949
+ key: 6,
1950
+ ref_key: "xAxisLabel",
1951
+ ref: _n,
1952
+ x: W.value.left + W.value.width / 2,
1953
+ y: W.value.chartHeight - 3,
1954
+ "font-size": B.value.style.chart.grid.x.axisName.fontSize,
1955
+ fill: B.value.style.chart.grid.x.axisName.color,
1956
+ "font-weight": B.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
1957
+ "text-anchor": "middle"
1958
+ }, Ze(B.value.style.chart.grid.x.axisName.text), 9, ht)) : C("", !0),
1959
+ B.value.style.chart.grid.y.axisName.show && B.value.style.chart.grid.y.axisName.text ? (O(), w("text", {
1960
+ key: 7,
1961
+ ref_key: "yAxisLabel",
1962
+ ref: vn,
1963
+ transform: `translate(${ar.value ? W.value.chartWidth - B.value.style.chart.grid.y.axisName.fontSize / 2 - B.value.style.chart.grid.y.axisName.offsetX : B.value.style.chart.grid.y.axisName.fontSize + B.value.style.chart.grid.y.axisName.offsetX}, ${W.value.top + W.value.height / 2}) rotate(-90)`,
1964
+ "font-size": B.value.style.chart.grid.y.axisName.fontSize,
1965
+ fill: B.value.style.chart.grid.y.axisName.color,
1966
+ "font-weight": B.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
1967
+ "text-anchor": "middle"
1968
+ }, Ze(B.value.style.chart.grid.y.axisName.text), 9, gt)) : C("", !0),
1969
+ B.value.style.chart.grid.frame.show ? (O(), w("rect", {
1970
+ key: 8,
1971
+ style: {
1972
+ pointerEvents: "none",
1973
+ transition: "none",
1974
+ animation: "none !important"
1975
+ },
1976
+ x: X.value.left,
1977
+ y: W.value.top,
1978
+ width: X.value.width,
1979
+ height: W.value.height,
1980
+ fill: "transparent",
1981
+ stroke: B.value.style.chart.grid.frame.stroke,
1982
+ "stroke-width": B.value.style.chart.grid.frame.strokeWidth,
1983
+ "stroke-linecap": B.value.style.chart.grid.frame.strokeLinecap,
1984
+ "stroke-linejoin": B.value.style.chart.grid.frame.strokeLinejoin,
1985
+ "stroke-dasharray": B.value.style.chart.grid.frame.strokeDasharray
1986
+ }, null, 8, _t)) : C("", !0),
1987
+ (O(!0), w(b, null, A(Y.value, (e) => (O(), w(b, null, [B.value.style.chart.lines.useArea && !e.standalone ? (O(), w("path", {
1988
+ key: 0,
1989
+ d: B.value.style.chart.lines.smooth ? e.smoothArea : e.straightArea,
1990
+ fill: t.$slots.pattern ? `url(#pattern_${L.value}_${e.absoluteIndex})` : B.value.style.chart.lines.gradient.show ? `url(#gradient_${e.id})` : e.color,
1991
+ opacity: B.value.style.chart.lines.areaOpacity,
1992
+ style: Ke({ transition: M(In) || !B.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out" })
1993
+ }, null, 12, vt)) : C("", !0)], 64))), 256)),
1994
+ (O(!0), w(b, null, A(Y.value, (e) => (O(), w("path", {
1995
+ d: B.value.style.chart.lines.smooth ? e.smoothPath : e.straightPath,
1996
+ stroke: B.value.style.chart.lines.path.useSerieColor ? e.color : B.value.style.chart.lines.path.stroke,
1997
+ "stroke-width": B.value.style.chart.lines.strokeWidth,
1998
+ fill: "none",
1999
+ "stroke-linecap": "round",
2000
+ style: Ke({ transition: M(In) || !B.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out" })
2001
+ }, null, 12, yt))), 256)),
2002
+ B.value.style.chart.grid.y.axisLabels.show && !B.value.style.chart.lines.distributed ? (O(), w("g", {
2003
+ key: 9,
2004
+ ref_key: "scaleLabels",
2005
+ ref: yn
2006
+ }, [(O(!0), w(b, null, A(Fr.value, (e, t) => (O(), w("line", {
2007
+ x1: ar.value ? X.value.right : X.value.left,
2008
+ x2: ar.value ? X.value.right + 6 : X.value.left - 6,
2009
+ y1: e.y,
2010
+ y2: e.y,
2011
+ stroke: B.value.style.chart.grid.x.axisColor,
2012
+ "stroke-width": 1
2013
+ }, null, 8, bt))), 256)), (O(!0), w(b, null, A(Fr.value, (e, t) => (O(), w("text", {
2014
+ x: e.x,
2015
+ y: e.y + B.value.style.chart.grid.y.axisLabels.fontSize / 3,
2016
+ "font-size": B.value.style.chart.grid.y.axisLabels.fontSize,
2017
+ "font-weight": B.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
2018
+ fill: B.value.style.chart.grid.y.axisLabels.color,
2019
+ "text-anchor": ar.value ? "start" : "end"
2020
+ }, Ze(M(y)(B.value.style.chart.grid.y.axisLabels.formatter, e.value, M(m)({
2021
+ p: B.value.style.chart.lines.dataLabels.prefix,
2022
+ v: e.value,
2023
+ s: B.value.style.chart.lines.dataLabels.suffix,
2024
+ r: B.value.style.chart.grid.y.axisLabels.rounding
2025
+ }), { datapoint: e })), 9, xt))), 256))], 512)) : C("", !0),
2026
+ B.value.style.chart.grid.x.timeLabels.show ? (O(), w("g", {
2027
+ key: 10,
2028
+ ref_key: "timeLabelsEls",
2029
+ ref: bn
2030
+ }, [t.$slots["time-label"] ? (O(), w("g", St, [(O(!0), w(b, null, A(Vr.value, (e, n) => (O(), w("g", null, [j(t.$slots, "time-label", Ue({ ref_for: !0 }, {
2031
+ x: W.value.left + wr.value * n + wr.value / 2,
2032
+ y: W.value.bottom + B.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + B.value.style.chart.grid.x.timeLabels.offsetY,
2033
+ fontSize: B.value.style.chart.grid.x.timeLabels.fontSize,
2034
+ fill: B.value.style.chart.grid.x.timeLabels.color,
2035
+ transform: `translate(${W.value.left + wr.value * n + wr.value / 2}, ${W.value.bottom + B.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + B.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${B.value.style.chart.grid.x.timeLabels.rotation})`,
2036
+ absoluteIndex: e.absoluteIndex,
2037
+ content: e.text,
2038
+ textAnchor: B.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : B.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
2039
+ show: !0
2040
+ }), void 0, !0)]))), 256))])) : (O(), w("g", Ct, [(O(!0), w(b, null, A(Vr.value, (e, n) => (O(), w("g", null, [String(e.text).includes("\n") ? (O(), w("text", {
2041
+ key: n + "-multi",
2042
+ "text-anchor": B.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : B.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
2043
+ "font-size": B.value.style.chart.grid.x.timeLabels.fontSize,
2044
+ fill: B.value.style.chart.grid.x.timeLabels.color,
2045
+ transform: `
2046
+ translate(
2047
+ ${Q(n)},
2048
+ ${W.value.bottom + B.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + B.value.style.chart.grid.x.timeLabels.offsetY}
2049
+ ),
2050
+ rotate(${B.value.style.chart.grid.x.timeLabels.rotation})
2051
+ `,
2052
+ style: Ke({ cursor: V.value ? "pointer" : "default" }),
2053
+ innerHTML: t.createTSpansFromLineBreaksOnX({
2054
+ content: String(e.text),
2055
+ fontSize: B.value.style.chart.grid.x.timeLabels.fontSize,
2056
+ fill: B.value.style.chart.grid.x.timeLabels.color,
2057
+ x: 0,
2058
+ y: 0
2059
+ }),
2060
+ onClick: () => hi(e, n)
2061
+ }, null, 12, Tt)) : (O(), w("text", {
2062
+ class: "vue-data-ui-time-label",
2063
+ key: n,
2064
+ "text-anchor": B.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : B.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
2065
+ "font-size": B.value.style.chart.grid.x.timeLabels.fontSize,
2066
+ "font-weight": B.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
2067
+ fill: B.value.style.chart.grid.x.timeLabels.color,
2068
+ transform: `translate(${Q(n)}, ${W.value.bottom + B.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + B.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${B.value.style.chart.grid.x.timeLabels.rotation})`,
2069
+ style: Ke({ cursor: V.value ? "pointer" : "default" }),
2070
+ onClick: () => hi(e, n)
2071
+ }, Ze(e.text), 13, wt))]))), 256))]))], 512)) : C("", !0),
2072
+ (mn.value || ![null, void 0].includes($.value)) && !B.value.style.chart.highlighter.useLine ? (O(!0), w(b, { key: 11 }, A(q.value.end - q.value.start, (e, t) => (O(), w("g", { key: `tooltip_trap_highlighter_${t}` }, [T("rect", {
2073
+ x: oi(t).x,
2074
+ y: W.value.top,
2075
+ height: W.value.height,
2076
+ width: oi(t).width,
2077
+ fill: [Mn.value, $.value].includes(t) ? M(de)(B.value.style.chart.highlighter.color, B.value.style.chart.highlighter.opacity) : "transparent",
2078
+ style: {
2079
+ transition: "none !important",
2080
+ animation: "none !important"
2081
+ }
2082
+ }, null, 8, Et)]))), 128)) : C("", !0),
2083
+ (mn.value || ![null, void 0].includes($.value)) && B.value.style.chart.highlighter.useLine ? (O(), w(b, { key: 12 }, [![null, void 0].includes($.value) || ![null, void 0].includes(Mn.value) ? (O(), w("g", Dt, [T("line", {
2084
+ x1: Q(($.value ?? Mn.value) || 0),
2085
+ x2: Q(($.value ?? Mn.value) || 0),
2086
+ y1: M(g)(W.value.top),
2087
+ y2: M(g)(W.value.bottom),
2088
+ stroke: B.value.style.chart.highlighter.color,
2089
+ "stroke-width": B.value.style.chart.highlighter.lineWidth,
2090
+ "stroke-dasharray": B.value.style.chart.highlighter.lineDasharray,
2091
+ "stroke-linecap": "round",
2092
+ style: {
2093
+ transition: "none !important",
2094
+ animation: "none !important",
2095
+ "pointer-events": "none"
2096
+ }
2097
+ }, null, 8, Ot)])) : C("", !0)], 64)) : C("", !0),
2098
+ (O(!0), w(b, null, A(Y.value, (e) => (O(), w(b, null, [mn.value && q.value.end - q.value.start > B.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (O(), w("g", kt, [$.value == null ? C("", !0) : (O(), w(b, { key: 0 }, [e.rel.includes($.value) && e.fullSeries?.[q.value.start + $.value] != null && !Number.isNaN(e.fullSeries?.[q.value.start + $.value]) ? (O(), S(Ee, {
2099
+ key: 0,
2100
+ shape: [
2101
+ "triangle",
2102
+ "square",
2103
+ "diamond",
2104
+ "pentagon",
2105
+ "hexagon",
2106
+ "star"
2107
+ ].includes(e.shape) ? e.shape : "circle",
2108
+ color: B.value.style.chart.lines.dot.useSerieColor ? e.color : B.value.style.chart.lines.dot.fill,
2109
+ plot: {
2110
+ x: M(ue)(e.points[e.rel.indexOf($.value)].x),
2111
+ y: M(ue)(e.points[e.rel.indexOf($.value)].y)
2112
+ },
2113
+ radius: B.value.style.chart.lines.dot.radius * 1.3,
2114
+ stroke: B.value.style.chart.lines.dot.useSerieColor ? B.value.style.chart.lines.dot.stroke : e.color,
2115
+ strokeWidth: B.value.style.chart.lines.dot.strokeWidth,
2116
+ transition: M(In) ? void 0 : `all ${B.value.style.chart.lines.transitionDurationMs}ms ease-in-out`
2117
+ }, null, 8, [
2118
+ "shape",
2119
+ "color",
2120
+ "plot",
2121
+ "radius",
2122
+ "stroke",
2123
+ "strokeWidth",
2124
+ "transition"
2125
+ ])) : C("", !0)], 64))])) : C("", !0)], 64))), 256)),
2126
+ (O(!0), w(b, null, A(Y.value, (e) => (O(), w(b, null, [q.value.end - q.value.start < B.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (O(!0), w(b, { key: 0 }, A(e.points, (t, n) => (O(), w("g", { key: n }, [e.fullSeries?.[q.value.start + e.rel[n]] != null && !Number.isNaN(e.fullSeries?.[q.value.start + e.rel[n]]) ? (O(), S(Ee, {
2127
+ key: 0,
2128
+ shape: [
2129
+ "triangle",
2130
+ "square",
2131
+ "diamond",
2132
+ "pentagon",
2133
+ "hexagon",
2134
+ "star"
2135
+ ].includes(e.shape) ? e.shape : "circle",
2136
+ color: B.value.style.chart.lines.dot.useSerieColor ? e.color : B.value.style.chart.lines.dot.fill,
2137
+ plot: {
2138
+ x: t.x,
2139
+ y: t.y
2140
+ },
2141
+ radius: mn.value && $.value === e.rel[n] ? B.value.style.chart.lines.dot.radius * 1.3 : B.value.style.chart.lines.dot.radius,
2142
+ stroke: B.value.style.chart.lines.dot.useSerieColor ? B.value.style.chart.lines.dot.stroke : e.color,
2143
+ strokeWidth: B.value.style.chart.lines.dot.strokeWidth,
2144
+ transition: M(In) ? void 0 : `all ${B.value.style.chart.lines.transitionDurationMs}ms ease-in-out`
2145
+ }, null, 8, [
2146
+ "shape",
2147
+ "color",
2148
+ "plot",
2149
+ "radius",
2150
+ "stroke",
2151
+ "strokeWidth",
2152
+ "transition"
2153
+ ])) : C("", !0)]))), 128)) : C("", !0)], 64))), 256)),
2154
+ H.value.dataLabels.show && B.value.style.chart.lines.dataLabels.hideAboveMaxSerieLength > q.value.end - q.value.start ? (O(), w(b, { key: 13 }, [(O(!0), w(b, null, A(Y.value, (e, t) => (O(), w("g", { key: t }, [(O(!0), w(b, null, A(e.points, (n, r) => (O(), w(b, { key: r }, [Ui(e.series[r], e.proportions[r]) ? (O(), w("text", {
2155
+ key: 0,
2156
+ x: n.x,
2157
+ y: n.y + (e.series[r] >= 0 ? -B.value.style.chart.lines.dataLabels.fontSize / 2 + B.value.style.chart.lines.dataLabels.offsetY : B.value.style.chart.lines.dataLabels.fontSize * 1.2 - B.value.style.chart.lines.dataLabels.offsetY),
2158
+ "font-size": B.value.style.chart.lines.dataLabels.fontSize,
2159
+ fill: B.value.style.chart.lines.dataLabels.color,
2160
+ "font-weight": B.value.style.chart.lines.dataLabels.bold ? "bold" : "normal",
2161
+ "text-anchor": "middle"
2162
+ }, Ze(B.value.style.chart.lines.showDistributedPercentage && B.value.style.chart.lines.distributed ? Ki(e.proportions[r] * 100, e, t, e.rel[r]) : Gi(e.series[r], e, t, e.rel[r], e.signedSeries[r])), 9, At)) : C("", !0)], 64))), 128))]))), 128)), B.value.style.chart.lines.totalValues.show && Y.value.length > 1 ? (O(), w("g", {
2163
+ key: 0,
2164
+ ref_key: "sumTop",
2165
+ ref: xn
2166
+ }, [(O(!0), w(b, null, A(Mr.value, (e, t) => (O(), w(b, null, [!B.value.style.chart.lines.dataLabels.hideEmptyValues || e.value !== 0 ? (O(), w("text", {
2167
+ key: 0,
2168
+ x: Q(t),
2169
+ y: Pr(t),
2170
+ "text-anchor": "middle",
2171
+ "font-size": B.value.style.chart.lines.totalValues.fontSize,
2172
+ "font-weight": B.value.style.chart.lines.totalValues.bold ? "bold" : "normal",
2173
+ fill: B.value.style.chart.lines.totalValues.color
2174
+ }, Ze(Gi(e.value, e, t, t, e.sign)), 9, jt)) : C("", !0)], 64))), 256))], 512)) : C("", !0)], 64)) : C("", !0),
2175
+ vr.value ? (O(), w("rect", Ue({ key: 14 }, pr.value, {
2176
+ "data-start": q.value.start,
2177
+ "data-end": q.value.end
2178
+ }), null, 16, Mt)) : C("", !0),
2179
+ j(t.$slots, "svg", { svg: {
2180
+ drawingArea: W.value,
2181
+ data: Y.value,
2182
+ isPrintingImg: M(Jn) || M(Yn) || hn.value,
2183
+ isPrintingSvg: gn.value
2184
+ } }, void 0, !0)
2185
+ ], 46, st)), t.$slots.hint ? (O(), w("div", Nt, [j(t.$slots, "hint", D(E({
2186
+ hint: B.value.a11y.translations.keyboardNavigation,
2187
+ isVisible: Xi.value
2188
+ })), void 0, !0)])) : C("", !0)]),
2189
+ t.$slots.watermark ? (O(), w("div", Pt, [j(t.$slots, "watermark", D(E({ isPrinting: M(Jn) || M(Yn) || hn.value || gn.value })), void 0, !0)])) : C("", !0),
2190
+ dn.value && (B.value.style.chart.legend.show || t.$slots.legend) ? (O(), S(Re, {
2191
+ key: 6,
2192
+ to: B.value.style.chart.legend.position === "top" ? `#legend-top-${L.value}` : `#legend-bottom-${L.value}`
2193
+ }, [T("div", {
2194
+ ref_key: "chartLegend",
2195
+ ref: tn
2196
+ }, [j(t.$slots, "legend", { legend: vi.value }, () => [B.value.style.chart.legend.show ? (O(), S(Ie, {
2197
+ key: 0,
2198
+ legendSet: vi.value,
2199
+ config: yi.value,
2200
+ isCursorPointer: V.value,
2201
+ onClickMarker: n[0] ||= ({ legend: e }) => e.segregate()
2202
+ }, ze({
2203
+ item: N(({ legend: e }) => [M(In) ? C("", !0) : (O(), w("div", {
2204
+ key: 0,
2205
+ onClick: (t) => e.segregate(),
2206
+ style: Ke(`opacity:${R.value.includes(e.id) ? .5 : 1}`)
2207
+ }, Ze(e.name), 13, Ft))]),
2208
+ legendToggle: N(() => [vi.value.length > 2 && B.value.style.chart.legend.selectAllToggle.show && !M(In) ? (O(), S(Me, {
2209
+ key: 0,
2210
+ backgroundColor: B.value.style.chart.legend.selectAllToggle.backgroundColor,
2211
+ color: B.value.style.chart.legend.selectAllToggle.color,
2212
+ fontSize: B.value.style.chart.legend.fontSize,
2213
+ checked: R.value.length > 0,
2214
+ isCursorPointer: V.value,
2215
+ onToggle: gi
2216
+ }, null, 8, [
2217
+ "backgroundColor",
2218
+ "color",
2219
+ "fontSize",
2220
+ "checked",
2221
+ "isCursorPointer"
2222
+ ])) : C("", !0)]),
2223
+ _: 2
2224
+ }, [t.$slots.pattern ? {
2225
+ name: "legend-pattern",
2226
+ fn: N(({ legend: e, index: t }) => [Ve(Ee, {
2227
+ shape: e.shape,
2228
+ radius: 30,
2229
+ stroke: "none",
2230
+ plot: {
2231
+ x: 30,
2232
+ y: 30
2233
+ },
2234
+ fill: `url(#pattern_${L.value}_${t})`
2235
+ }, null, 8, ["shape", "fill"])]),
2236
+ key: "0"
2237
+ } : void 0]), 1032, [
2238
+ "legendSet",
2239
+ "config",
2240
+ "isCursorPointer"
2241
+ ])) : C("", !0)], !0)], 512)], 8, ["to"])) : C("", !0),
2242
+ Zt.value && B.value.userOptions.buttons.table ? (O(), S(Ye(Mi.value.component), Ue({ key: 7 }, Mi.value.props, {
2243
+ ref_key: "tableUnit",
2244
+ ref: fn,
2245
+ onClose: Ni
2246
+ }), ze({
2247
+ content: N(() => [Ve(M(Ht), {
2248
+ colNames: Ti.value.colNames,
2249
+ head: Ti.value.head,
2250
+ body: Ti.value.body,
2251
+ config: Ti.value.config,
2252
+ title: B.value.table.useDialog ? "" : Mi.value.title,
2253
+ withCloseButton: !B.value.table.useDialog,
2254
+ isCursorPointer: V.value,
2255
+ onClose: Ni
2256
+ }, {
2257
+ th: N(({ th: e }) => [T("div", { innerHTML: e }, null, 8, It)]),
2258
+ td: N(({ td: e }) => [Be(Ze(isNaN(Number(e)) ? e : M(m)({
2259
+ p: B.value.style.chart.lines.dataLabels.prefix,
2260
+ v: e,
2261
+ s: B.value.style.chart.lines.dataLabels.suffix,
2262
+ r: B.value.table.td.roundingValue
2263
+ })), 1)]),
2264
+ _: 1
2265
+ }, 8, [
2266
+ "colNames",
2267
+ "head",
2268
+ "body",
2269
+ "config",
2270
+ "title",
2271
+ "withCloseButton",
2272
+ "isCursorPointer"
2273
+ ])]),
2274
+ _: 2
2275
+ }, [B.value.table.useDialog ? {
2276
+ name: "title",
2277
+ fn: N(() => [Be(Ze(Mi.value.title), 1)]),
2278
+ key: "0"
2279
+ } : void 0, B.value.table.useDialog ? {
2280
+ name: "actions",
2281
+ fn: N(() => [T("button", {
2282
+ tabindex: "0",
2283
+ class: "vue-ui-user-options-button",
2284
+ onClick: n[1] ||= (e) => wi(B.value.userOptions.callbacks.csv),
2285
+ style: Ke({ cursor: V.value ? "pointer" : "default" })
2286
+ }, [Ve(M(Bt), {
2287
+ name: "fileCsv",
2288
+ stroke: Mi.value.props.color
2289
+ }, null, 8, ["stroke"])], 4)]),
2290
+ key: "1"
2291
+ } : void 0]), 1040)) : C("", !0),
2292
+ B.value.style.chart.zoom.show && Zt.value && Xr.value && K.value > 6 ? (O(), S(je, {
2293
+ key: 8,
2294
+ ref_key: "chartSlicer",
2295
+ ref: nn,
2296
+ "data-dom-to-png-ignore-layout": "",
2297
+ allMinimaps: Or.value,
2298
+ background: B.value.style.chart.zoom.color,
2299
+ borderColor: B.value.style.chart.backgroundColor,
2300
+ customFormat: B.value.style.chart.zoom.customFormat,
2301
+ cutNullValues: !1,
2302
+ enableRangeHandles: B.value.style.chart.zoom.enableRangeHandles,
2303
+ enableSelectionDrag: B.value.style.chart.zoom.enableSelectionDrag,
2304
+ end: q.value.end,
2305
+ focusOnDrag: B.value.style.chart.zoom.focusOnDrag,
2306
+ focusRangeRatio: B.value.style.chart.zoom.focusRangeRatio,
2307
+ fontSize: B.value.style.chart.zoom.fontSize,
2308
+ immediate: !B.value.style.chart.zoom.preview.enable,
2309
+ inputColor: B.value.style.chart.zoom.color,
2310
+ isPreview: vr.value,
2311
+ labelLeft: B.value.style.chart.grid.x.timeLabels.values[q.value.start] ? Ir.value?.[0]?.text ?? "" : "",
2312
+ labelRight: B.value.style.chart.grid.x.timeLabels.values[q.value.end - 1] ? Ir.value?.at(-1)?.text ?? "" : "",
2313
+ max: Math.max(...e.dataset.map((e) => e.series.length)),
2314
+ min: 0,
2315
+ minimap: Dr.value,
2316
+ minimapCompact: B.value.style.chart.zoom.minimap.compact,
2317
+ minimapFrameColor: B.value.style.chart.zoom.minimap.frameColor,
2318
+ minimapIndicatorColor: B.value.style.chart.zoom.minimap.indicatorColor,
2319
+ minimapMerged: !1,
2320
+ minimapSelectedColor: B.value.style.chart.zoom.minimap.selectedColor,
2321
+ minimapSelectedColorOpacity: B.value.style.chart.zoom.minimap.selectedColorOpacity,
2322
+ minimapSelectedIndex: $.value,
2323
+ minimapSelectionRadius: 1,
2324
+ preciseLabels: Gr.value.length ? Gr.value : Lr.value,
2325
+ refreshEndPoint: B.value.style.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => e.series.length)) : B.value.style.chart.zoom.endIndex + 1,
2326
+ refreshStartPoint: B.value.style.chart.zoom.startIndex === null ? 0 : B.value.style.chart.zoom.startIndex,
2327
+ selectColor: B.value.style.chart.zoom.highlightColor,
2328
+ selectedSeries: Bi.value,
2329
+ smoothMinimap: !1,
2330
+ start: q.value.start,
2331
+ textColor: B.value.style.chart.color,
2332
+ timeLabels: Lr.value,
2333
+ usePreciseLabels: B.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !B.value.style.chart.zoom.useDefaultFormat,
2334
+ valueEnd: q.value.end,
2335
+ valueStart: q.value.start,
2336
+ verticalHandles: B.value.style.chart.zoom.minimap.verticalHandles,
2337
+ maxWidth: B.value.style.chart.zoom.maxWidth,
2338
+ isCursorPointer: V.value,
2339
+ additionalMinimapHeight: B.value.style.chart.zoom.minimap.additionalHeight,
2340
+ handleType: B.value.style.chart.zoom.minimap.handleType,
2341
+ handleIconColor: B.value.style.chart.zoom.minimap.handleIconColor,
2342
+ handleBorderWidth: B.value.style.chart.zoom.minimap.handleBorderWidth,
2343
+ handleBorderColor: B.value.style.chart.zoom.minimap.handleBorderColor,
2344
+ handleFill: B.value.style.chart.zoom.minimap.handleFill,
2345
+ handleWidth: B.value.style.chart.zoom.minimap.handleWidth,
2346
+ "onUpdate:end": ei,
2347
+ "onUpdate:start": $r,
2348
+ onTrapMouse: gr,
2349
+ onReset: n[2] ||= () => Cr({ force: !0 }),
2350
+ onFutureEnd: n[3] ||= (e) => yr("end", e),
2351
+ onFutureStart: n[4] ||= (e) => yr("start", e)
2352
+ }, {
2353
+ "reset-action": N(({ reset: e }) => [j(t.$slots, "reset-action", D(E({ reset: e })), void 0, !0)]),
2354
+ slotMap: N(({ width: e, height: t, unitW: n }) => [T("g", { innerHTML: Hi({
2355
+ minimapW: e,
2356
+ minimapH: t,
2357
+ unitW: n
2358
+ }) }, null, 8, Lt)]),
2359
+ _: 3
2360
+ }, 8, /* @__PURE__ */ "allMinimaps.background.borderColor.customFormat.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.start.textColor.timeLabels.usePreciseLabels.valueEnd.valueStart.verticalHandles.maxWidth.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : C("", !0),
2361
+ T("div", { id: `legend-bottom-${L.value}` }, null, 8, Rt),
2362
+ Ve(M(zt), {
2363
+ teleportTo: B.value.style.chart.tooltip.teleportTo,
2364
+ show: H.value.showTooltip && Qt.value,
2365
+ backgroundColor: B.value.style.chart.tooltip.backgroundColor,
2366
+ color: B.value.style.chart.tooltip.color,
2367
+ fontSize: B.value.style.chart.tooltip.fontSize,
2368
+ borderRadius: B.value.style.chart.tooltip.borderRadius,
2369
+ borderColor: B.value.style.chart.tooltip.borderColor,
2370
+ borderWidth: B.value.style.chart.tooltip.borderWidth,
2371
+ backgroundOpacity: B.value.style.chart.tooltip.backgroundOpacity,
2372
+ position: B.value.style.chart.tooltip.position,
2373
+ offsetX: B.value.style.chart.tooltip.offsetX,
2374
+ offsetY: B.value.style.chart.tooltip.offsetY,
2375
+ parent: I.value,
2376
+ content: pi.value,
2377
+ isFullscreen: on.value,
2378
+ isCustom: B.value.style.chart.tooltip.customFormat && typeof B.value.style.chart.tooltip.customFormat == "function",
2379
+ smooth: B.value.style.chart.tooltip.smooth,
2380
+ backdropFilter: B.value.style.chart.tooltip.backdropFilter,
2381
+ smoothForce: B.value.style.chart.tooltip.smoothForce,
2382
+ smoothSnapThreshold: B.value.style.chart.tooltip.smoothSnapThreshold,
2383
+ isA11yMode: Dn.value === "keyboard",
2384
+ a11yPosition: En.value
2385
+ }, {
2386
+ "tooltip-before": N(() => [j(t.$slots, "tooltip-before", D(E({ ...Jr.value })), void 0, !0)]),
2387
+ tooltip: N(() => [j(t.$slots, "tooltip", D(E({ ...Jr.value })), void 0, !0)]),
2388
+ "tooltip-after": N(() => [j(t.$slots, "tooltip-after", D(E({ ...Jr.value })), void 0, !0)]),
2389
+ _: 3
2390
+ }, 8, [
2391
+ "teleportTo",
2392
+ "show",
2393
+ "backgroundColor",
2394
+ "color",
2395
+ "fontSize",
2396
+ "borderRadius",
2397
+ "borderColor",
2398
+ "borderWidth",
2399
+ "backgroundOpacity",
2400
+ "position",
2401
+ "offsetX",
2402
+ "offsetY",
2403
+ "parent",
2404
+ "content",
2405
+ "isFullscreen",
2406
+ "isCustom",
2407
+ "smooth",
2408
+ "backdropFilter",
2409
+ "smoothForce",
2410
+ "smoothSnapThreshold",
2411
+ "isA11yMode",
2412
+ "a11yPosition"
2413
+ ]),
2414
+ t.$slots.source ? (O(), w("div", {
2415
+ key: 9,
2416
+ ref_key: "source",
2417
+ ref: an,
2418
+ dir: "auto"
2419
+ }, [j(t.$slots, "source", {}, void 0, !0)], 512)) : C("", !0),
2420
+ j(t.$slots, "skeleton", {}, () => [M(In) ? (O(), S(ve, { key: 0 })) : C("", !0)], !0)
2421
+ ], 46, rt));
2422
+ }
2423
+ }, [["__scopeId", "data-v-43380774"]]);
2424
+ //#endregion
2425
+ export { nt as n, zt as t };