vue-data-ui 3.24.0 → 3.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/dist/{Arrow-CJuuMivt.js → Arrow-cWEoIMbe.js} +1 -1
  2. package/dist/{BaseDraggableDialog-9RMU4zIz.js → BaseDraggableDialog-obpncsqR.js} +2 -2
  3. package/dist/{BaseIcon-U0y1Y7dC.js → BaseIcon-Dmgd8MfJ.js} +1 -1
  4. package/dist/{BaseLegendToggle-B_wibe7d.js → BaseLegendToggle-Dj1a_tSb.js} +1 -1
  5. package/dist/{BaseZoomControls-DXDTBATh.js → BaseZoomControls-CdYm4Qh4.js} +2 -2
  6. package/dist/{ColorPicker-Diee0Pe9.js → ColorPicker-B93_eq_J.js} +2 -2
  7. package/dist/{DataTable-1Lsn9w61.js → DataTable-D6vq6n14.js} +2 -2
  8. package/dist/{HillActions-DntqVj-0.js → HillActions-D0OMo0PZ.js} +1 -1
  9. package/dist/{Legend-Cg1jtWxv.js → Legend-Du6YK6gu.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-aCu8CNkj.js → NonSvgPenAndPaper-DbwjIxnE.js} +3 -3
  11. package/dist/{PackageVersion-CrLLZ567.js → PackageVersion-CU9Hflo-.js} +1 -1
  12. package/dist/{PenAndPaper-ktbpEc-t.js → PenAndPaper-CD5tlFYh.js} +3 -3
  13. package/dist/{Shape-BV_BCG2F.js → Shape-Dqpgbk7w.js} +1 -1
  14. package/dist/{SlicerPreview-CsFT236o.js → SlicerPreview-BSjcCjhA.js} +2 -2
  15. package/dist/{SparkTooltip-BqzJa3h2.js → SparkTooltip-Da4O7iOD.js} +1 -1
  16. package/dist/{Title-C5ytqOnj.js → Title-y2KUSK-I.js} +1 -1
  17. package/dist/{Tooltip-CTgk02J6.js → Tooltip-CLpW5URN.js} +1 -1
  18. package/dist/{UserOptions-DJt-e5q0.js → UserOptions-3Qr8es3g.js} +2 -2
  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-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-label.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-K9hvrmBm.js → dom-to-png-CQUIoewh.js} +1 -1
  91. package/dist/{exposedLib-CNHCqGuG.js → exposedLib-4fR8MXNd.js} +1 -1
  92. package/dist/{img-DRq3Equ5.js → img-D3Ck2d_T.js} +1 -1
  93. package/dist/{labelUtils-CSh956Gz.js → labelUtils-CJ6EaaYo.js} +1 -1
  94. package/dist/{lib-DfMn_3jf.js → lib-DurLxjMz.js} +21 -42
  95. package/dist/{package-DwX5gXIb.js → package-CawqE4gj.js} +1 -1
  96. package/dist/{pdf-CglSdC4O.js → pdf-2aQfvzB9.js} +1 -1
  97. package/dist/{render-common-DruozHP7.js → render-common-DrbN2WgW.js} +2 -2
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/types/vue-data-ui.d.ts +6 -0
  103. package/dist/{useConfig-BtJSJ6AK.js → useConfig-CyCVHo81.js} +27 -17
  104. package/dist/{useNestedProp-CLEe1P5W.js → useNestedProp-B3XMQAL1.js} +1 -1
  105. package/dist/{useObjectBindings-CgRKOMSB.js → useObjectBindings-ByORl1rV.js} +1 -1
  106. package/dist/{usePrinter-Daqyj6c7.js → usePrinter-D53IAxB2.js} +2 -2
  107. package/dist/utils.js +3 -3
  108. package/dist/{vue-data-ui-C37q2rbt.js → vue-data-ui-DHA6rnQ7.js} +70 -70
  109. package/dist/vue-data-ui.js +74 -74
  110. package/dist/{vue-ui-3d-bar-B_z643_d.js → vue-ui-3d-bar-B3bLF2Fp.js} +7 -7
  111. package/dist/{vue-ui-accordion-BhOSscZB.js → vue-ui-accordion-D2W-dY3E.js} +4 -4
  112. package/dist/{vue-ui-age-pyramid-CS1J-mHZ.js → vue-ui-age-pyramid-CvRi9Web.js} +7 -7
  113. package/dist/{vue-ui-annotator-DmTbmRrw.js → vue-ui-annotator-BTozB0Fb.js} +7 -7
  114. package/dist/{vue-ui-bullet-BUuF_-rE.js → vue-ui-bullet-BbCPpZ5k.js} +8 -8
  115. package/dist/{vue-ui-bump-Dt13LCR2.js → vue-ui-bump-FZIoCybJ.js} +100 -96
  116. package/dist/{vue-ui-candlestick-CgvK082R.js → vue-ui-candlestick-IlS8zO5O.js} +431 -416
  117. package/dist/{vue-ui-carousel-table-C6IZZLpG.js → vue-ui-carousel-table-DokjHbNr.js} +5 -5
  118. package/dist/{vue-ui-chestnut-B03dTYpe.js → vue-ui-chestnut-DoUFUSVm.js} +6 -6
  119. package/dist/{vue-ui-chord-R7YLYkOS.js → vue-ui-chord-6t-7dxVu.js} +9 -9
  120. package/dist/{vue-ui-circle-pack-CxIJbXSK.js → vue-ui-circle-pack-CexF2pcc.js} +7 -7
  121. package/dist/{vue-ui-cursor-Bqm8zbqD.js → vue-ui-cursor-YbgOW5z6.js} +4 -4
  122. package/dist/{vue-ui-dag-TqlqeLgZ.js → vue-ui-dag-B4RKzj4H.js} +8 -8
  123. package/dist/{vue-ui-dashboard-W0PV1gGV.js → vue-ui-dashboard-BUXA_h5X.js} +70 -70
  124. package/dist/{vue-ui-digits-D3VKW9O0.js → vue-ui-digits-C4eNwkQW.js} +4 -4
  125. package/dist/{vue-ui-donut-8W7ZV_hU.js → vue-ui-donut-BS9ICnxW.js} +3 -3
  126. package/dist/{vue-ui-donut-C_CUqRdv.js → vue-ui-donut-DBhaQARJ.js} +11 -11
  127. package/dist/{vue-ui-donut-evolution-CHQHSkpq.js → vue-ui-donut-evolution-B0v3uJNo.js} +10 -10
  128. package/dist/{vue-ui-dumbbell-D3G5uL-P.js → vue-ui-dumbbell-Dj-FFcXl.js} +8 -8
  129. package/dist/{vue-ui-flow-CjvO8Fsp.js → vue-ui-flow-CGjXnUTR.js} +8 -8
  130. package/dist/{vue-ui-funnel-eHR9hTpj.js → vue-ui-funnel-B8qoKSY6.js} +7 -7
  131. package/dist/{vue-ui-galaxy-DBarvxFP.js → vue-ui-galaxy-BOqqpg7g.js} +10 -10
  132. package/dist/{vue-ui-gauge-Cz6PC_H5.js → vue-ui-gauge-C6gbloYZ.js} +7 -7
  133. package/dist/{vue-ui-geo-BmjzP6NK.js → vue-ui-geo-BMRhXP7L.js} +8 -8
  134. package/dist/{vue-ui-gizmo-BChwImvX.js → vue-ui-gizmo-DjnW3oDO.js} +4 -4
  135. package/dist/{vue-ui-heatmap-h0_V5jv6.js → vue-ui-heatmap-DyxHJCSO.js} +8 -8
  136. package/dist/{vue-ui-hill-D_2DFdNy.js → vue-ui-hill-C4osOxU0.js} +7 -7
  137. package/dist/{vue-ui-history-plot-Bis3f9Ub.js → vue-ui-history-plot-Cwi7sVNg.js} +9 -9
  138. package/dist/{vue-ui-horizontal-bar-2AOgQ694.js → vue-ui-horizontal-bar-CrgP4Bm8.js} +11 -11
  139. package/dist/{vue-ui-kpi-k0yLSsqF.js → vue-ui-kpi-is2_nVkE.js} +4 -4
  140. package/dist/{vue-ui-label-aHnVFvfK.js → vue-ui-label-BbX73tEX.js} +4 -4
  141. package/dist/{vue-ui-mini-loader-DUsSEO5b.js → vue-ui-mini-loader-DntLxOr0.js} +3 -3
  142. package/dist/{vue-ui-molecule--1J4__BY.js → vue-ui-molecule-CIY3r7HA.js} +6 -6
  143. package/dist/{vue-ui-mood-radar-BEruKK_i.js → vue-ui-mood-radar-CezYlJmD.js} +8 -8
  144. package/dist/{vue-ui-nested-donuts-MBeHoc-t.js → vue-ui-nested-donuts-CF7YdoRx.js} +10 -10
  145. package/dist/{vue-ui-onion-j0eEGvru.js → vue-ui-onion-Chk8CzSw.js} +10 -10
  146. package/dist/{vue-ui-parallel-coordinate-plot-BvuYSu3N.js → vue-ui-parallel-coordinate-plot-hKkob-cX.js} +10 -10
  147. package/dist/{vue-ui-quadrant-DWtwr7JT.js → vue-ui-quadrant-B3Wy4REJ.js} +10 -10
  148. package/dist/{vue-ui-quick-chart-vhICAvQe.js → vue-ui-quick-chart-rUvFKRs1.js} +8 -8
  149. package/dist/{vue-ui-radar-e9eoRxOC.js → vue-ui-radar-DA5EnHNt.js} +9 -9
  150. package/dist/{vue-ui-rating-WsMfVsJN.js → vue-ui-rating-DglGQ_DQ.js} +3 -3
  151. package/dist/{vue-ui-relation-circle-NgJ8121q.js → vue-ui-relation-circle-ta7aeXOK.js} +7 -7
  152. package/dist/{vue-ui-ridgeline-BZ1Czz8V.js → vue-ui-ridgeline-BDqNGJ20.js} +20 -13
  153. package/dist/{vue-ui-rings-grgJPuxE.js → vue-ui-rings-BbSBLvb4.js} +13 -13
  154. package/dist/{vue-ui-scatter-DuqZxbZD.js → vue-ui-scatter-DwgFHsYb.js} +10 -10
  155. package/dist/{vue-ui-skeleton-CnexlOV6.js → vue-ui-skeleton-UP0Bv65Q.js} +4 -4
  156. package/dist/{vue-ui-smiley-Bvs5RJtM.js → vue-ui-smiley-CmN35dmK.js} +3 -3
  157. package/dist/{vue-ui-spark-trend-C2knAS0F.js → vue-ui-spark-trend-BHC8GKeh.js} +4 -4
  158. package/dist/vue-ui-sparkbar-DG5Lx7L_.js +401 -0
  159. package/dist/{vue-ui-sparkgauge-CCkcq4Wh.js → vue-ui-sparkgauge-Budj4a8D.js} +4 -4
  160. package/dist/{vue-ui-sparkhistogram-B-fzheQo.js → vue-ui-sparkhistogram-EF6l_8DB.js} +5 -5
  161. package/dist/{vue-ui-sparkline-DVYlqELY.js → vue-ui-sparkline-Bt3WUBs7.js} +4 -4
  162. package/dist/vue-ui-sparkstackbar-zcc269TN.js +738 -0
  163. package/dist/{vue-ui-stackbar-CIUS0xkc.js → vue-ui-stackbar-RFBCfoIt.js} +612 -596
  164. package/dist/vue-ui-stackline-B2cHovb4.js +2463 -0
  165. package/dist/{vue-ui-strip-plot-Sshmlk9v.js → vue-ui-strip-plot-Cu-cVKCS.js} +8 -8
  166. package/dist/{vue-ui-table-DSUvcqI9.js → vue-ui-table-BukgLZ8K.js} +6 -6
  167. package/dist/{vue-ui-table-heatmap-btnDozZ-.js → vue-ui-table-heatmap-y9oWnS6t.js} +6 -6
  168. package/dist/{vue-ui-table-sparkline-C12IgrZG.js → vue-ui-table-sparkline-B4V_s9rK.js} +5 -5
  169. package/dist/{vue-ui-thermometer-3ZSPCE1q.js → vue-ui-thermometer-CqVDnPmF.js} +7 -7
  170. package/dist/{vue-ui-timer-Birf1RVz.js → vue-ui-timer-D2pn3RWL.js} +6 -6
  171. package/dist/{vue-ui-tiremarks-BuzKLW5l.js → vue-ui-tiremarks-BMIIhkaB.js} +7 -7
  172. package/dist/{vue-ui-treemap-DMwq5MYv.js → vue-ui-treemap-fFJPPf8-.js} +10 -10
  173. package/dist/{vue-ui-waffle-wjn4e1mz.js → vue-ui-waffle-B9TaBdel.js} +11 -11
  174. package/dist/{vue-ui-wheel-BS6f8xC-.js → vue-ui-wheel-BN-YBzNj.js} +7 -7
  175. package/dist/{vue-ui-word-cloud-BH1JB5hg.js → vue-ui-word-cloud-CZzUlZBc.js} +8 -8
  176. package/dist/{vue-ui-world-DtNML6Oz.js → vue-ui-world-C--4pHTs.js} +8 -8
  177. package/dist/{vue-ui-xy-DNvRGCN_.js → vue-ui-xy-16TcfetH.js} +47 -28
  178. package/dist/{vue-ui-xy-B9S7cAhC.js → vue-ui-xy-BTh5QolL.js} +31 -17
  179. package/dist/{vue-ui-xy-canvas-Hk0x8dd_.js → vue-ui-xy-canvas-BzbNRbft.js} +12 -12
  180. package/package.json +3 -3
  181. package/dist/vue-ui-sparkbar-Daxkni2h.js +0 -400
  182. package/dist/vue-ui-sparkstackbar-pip0BOeZ.js +0 -688
  183. package/dist/vue-ui-stackline-Dy4tIQwk.js +0 -2447
@@ -1,41 +1,41 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, At as n, D as r, G as a, It as o, Jt as s, K as c, Kt as l, Nt as u, S as d, St as f, X as p, Xt as ee, _ as te, c as ne, ft as re, i as ie, lt as ae, mt as oe, nt as se, q as ce, qt as le, r as ue, st as m, t as de, v as fe, w as pe } from "./lib-DfMn_3jf.js";
2
+ import { $ as t, At as n, D as r, G as a, It as o, Jt as s, K as c, Kt as l, Nt as u, S as d, St as f, X as p, Xt as ee, _ as te, c as ne, ft as re, i as m, lt as ie, mt as ae, nt as oe, q as se, qt as ce, r as le, st as h, t as ue, v as de, w as fe, yt as pe } from "./lib-DurLxjMz.js";
3
3
  import { n as me, t as he } from "./useHints-Dq_w2E8B.js";
4
4
  import { n as ge, r as _e, t as ve } from "./useTimeLabels-d2f-W1L4.js";
5
- import { t as ye } from "./useConfig-BtJSJ6AK.js";
6
- import { t as be } from "./usePrinter-Daqyj6c7.js";
5
+ import { t as ye } from "./useConfig-CyCVHo81.js";
6
+ import { t as be } from "./usePrinter-D53IAxB2.js";
7
7
  import { n as xe, t as Se } from "./BaseScanner-DZvpgOjM.js";
8
- import { t as Ce } from "./useNestedProp-CLEe1P5W.js";
8
+ import { t as Ce } from "./useNestedProp-B3XMQAL1.js";
9
9
  import { t as we } from "./useThemeCheck-C43Tcqmk.js";
10
10
  import { t as Te } from "./useChartExport-iwOqiIWX.js";
11
11
  import { t as Ee } from "./useTransitions-g_zBREk2.js";
12
12
  import { t as De } from "./useStableElementSize-C7KADDKj.js";
13
13
  import { t as Oe } from "./useTimeLabelCollider-AEcY4Ioe.js";
14
- import { t as ke } from "./img-DRq3Equ5.js";
15
- import { n as Ae } from "./Title-C5ytqOnj.js";
16
- import { t as je } from "./Shape-BV_BCG2F.js";
14
+ import { t as ke } from "./img-D3Ck2d_T.js";
15
+ import { n as Ae } from "./Title-y2KUSK-I.js";
16
+ import { t as je } from "./Shape-Dqpgbk7w.js";
17
17
  import { t as Me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
18
18
  import { l as Ne, t as Pe } from "./useResponsive-ZtArZtUf.js";
19
19
  import { t as Fe } from "./DefGrad-DVBqDjhO.js";
20
- import { t as Ie } from "./SlicerPreview-CsFT236o.js";
21
- import { t as Le } from "./BaseLegendToggle-B_wibe7d.js";
20
+ import { t as Ie } from "./SlicerPreview-BSjcCjhA.js";
21
+ import { t as Le } from "./BaseLegendToggle-Dj1a_tSb.js";
22
22
  import { t as Re } from "./A11yDataTable-DdRsVULz.js";
23
23
  import { t as ze } from "./useUserOptionState-DK-_1ddE.js";
24
24
  import { t as Be } from "./useChartAccessibility-DYqac8yF.js";
25
- import { t as Ve } from "./Legend-Cg1jtWxv.js";
25
+ import { t as Ve } from "./Legend-Du6YK6gu.js";
26
26
  import { t as He } from "./vue_ui_stackbar-COOrQQdK.js";
27
- import { Fragment as h, Teleport as Ue, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as We, createSlots as Ge, createTextVNode as Ke, createVNode as qe, defineAsyncComponent as b, guardReactiveProps as x, mergeProps as Je, nextTick as Ye, normalizeClass as S, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as Xe, onMounted as Ze, openBlock as T, ref as E, renderList as D, renderSlot as O, resolveDynamicComponent as Qe, shallowRef as $e, toDisplayString as k, toRefs as et, unref as A, useSlots as tt, watch as nt, watchEffect as rt, withCtx as j } from "vue";
27
+ import { Fragment as g, Teleport as Ue, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as We, createSlots as Ge, createTextVNode as Ke, createVNode as qe, defineAsyncComponent as Je, guardReactiveProps as x, mergeProps as Ye, nextTick as Xe, normalizeClass as S, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as Ze, onMounted as Qe, openBlock as T, ref as E, renderList as D, renderSlot as O, resolveDynamicComponent as $e, shallowRef as et, toDisplayString as k, toRefs as tt, unref as A, useSlots as nt, watch as rt, watchEffect as it, withCtx as j } from "vue";
28
28
  //#region src/components/vue-ui-stackbar.vue
29
- var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st = ["id"], ct = { style: { position: "relative" } }, lt = [
29
+ var at = /* @__PURE__ */ e({ default: () => tn }), ot = ["id"], st = ["id"], ct = ["id"], lt = { style: { position: "relative" } }, ut = [
30
30
  "xmlns",
31
31
  "aria-describedby",
32
32
  "viewBox"
33
- ], ut = [
33
+ ], dt = [
34
34
  "x",
35
35
  "y",
36
36
  "width",
37
37
  "height"
38
- ], dt = { key: 1 }, ft = [
38
+ ], ft = { key: 1 }, pt = [
39
39
  "x",
40
40
  "y",
41
41
  "width",
@@ -45,7 +45,7 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
45
45
  "stroke-linecap",
46
46
  "stroke-linejoin",
47
47
  "stroke-dasharray"
48
- ], pt = [
48
+ ], mt = [
49
49
  "x1",
50
50
  "x2",
51
51
  "y1",
@@ -53,7 +53,7 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
53
53
  "stroke",
54
54
  "stroke-width",
55
55
  "stroke-dasharray"
56
- ], mt = [
56
+ ], ht = [
57
57
  "x1",
58
58
  "x2",
59
59
  "y1",
@@ -61,7 +61,7 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
61
61
  "stroke",
62
62
  "stroke-width",
63
63
  "stroke-dasharray"
64
- ], ht = [
64
+ ], gt = [
65
65
  "x1",
66
66
  "x2",
67
67
  "y1",
@@ -69,7 +69,7 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
69
69
  "stroke",
70
70
  "stroke-width",
71
71
  "stroke-dasharray"
72
- ], gt = [
72
+ ], _t = [
73
73
  "x1",
74
74
  "x2",
75
75
  "y1",
@@ -77,7 +77,7 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
77
77
  "stroke",
78
78
  "stroke-width",
79
79
  "stroke-dasharray"
80
- ], _t = { key: 0 }, vt = [
80
+ ], vt = { key: 0 }, yt = [
81
81
  "x",
82
82
  "y",
83
83
  "height",
@@ -86,7 +86,7 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
86
86
  "fill",
87
87
  "stroke",
88
88
  "stroke-width"
89
- ], yt = { key: 0 }, bt = [
89
+ ], bt = { key: 0 }, xt = [
90
90
  "x",
91
91
  "y",
92
92
  "height",
@@ -95,7 +95,7 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
95
95
  "fill",
96
96
  "stroke",
97
97
  "stroke-width"
98
- ], xt = [
98
+ ], St = [
99
99
  "x",
100
100
  "y",
101
101
  "width",
@@ -104,7 +104,7 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
104
104
  "fill",
105
105
  "stroke",
106
106
  "stroke-width"
107
- ], St = { key: 0 }, Ct = [
107
+ ], Ct = { key: 0 }, wt = [
108
108
  "x",
109
109
  "y",
110
110
  "width",
@@ -113,91 +113,92 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
113
113
  "fill",
114
114
  "stroke",
115
115
  "stroke-width"
116
- ], wt = [
116
+ ], Tt = [
117
117
  "x1",
118
118
  "x2",
119
119
  "y1",
120
120
  "y2",
121
121
  "stroke",
122
122
  "stroke-width"
123
- ], Tt = [
123
+ ], Et = [
124
124
  "x1",
125
125
  "x2",
126
126
  "y1",
127
127
  "y2",
128
128
  "stroke",
129
129
  "stroke-width"
130
- ], Et = [
130
+ ], Dt = [
131
131
  "x",
132
132
  "y",
133
133
  "font-size",
134
134
  "fill",
135
135
  "font-weight"
136
- ], Dt = [
136
+ ], Ot = [
137
137
  "transform",
138
138
  "font-size",
139
139
  "fill",
140
140
  "font-weight"
141
- ], Ot = [
141
+ ], kt = [
142
142
  "transform",
143
143
  "font-size",
144
144
  "fill",
145
145
  "font-weight"
146
- ], kt = [
146
+ ], At = [
147
147
  "transform",
148
148
  "font-size",
149
149
  "font-weight",
150
150
  "fill"
151
- ], At = [
151
+ ], jt = [
152
152
  "transform",
153
153
  "font-size",
154
154
  "fill",
155
155
  "font-weight"
156
- ], jt = [
156
+ ], Mt = [
157
157
  "transform",
158
158
  "font-size",
159
159
  "font-weight",
160
160
  "fill"
161
- ], Mt = ["stroke", "d"], Nt = [
161
+ ], Nt = ["stroke", "d"], Pt = [
162
162
  "transform",
163
163
  "font-size",
164
164
  "font-weight",
165
165
  "fill",
166
166
  "text-anchor"
167
- ], Pt = ["d", "stroke"], Ft = [
167
+ ], Ft = ["d", "stroke"], It = [
168
168
  "font-size",
169
169
  "font-weight",
170
170
  "fill",
171
171
  "text-anchor",
172
172
  "transform"
173
- ], It = { key: 0 }, Lt = { key: 1 }, Rt = [
173
+ ], Lt = { key: 0 }, Rt = { key: 1 }, zt = [
174
174
  "text-anchor",
175
175
  "font-size",
176
176
  "font-weight",
177
177
  "fill",
178
178
  "transform",
179
179
  "onClick"
180
- ], zt = [
180
+ ], Bt = [
181
181
  "text-anchor",
182
182
  "font-size",
183
183
  "fill",
184
184
  "transform",
185
185
  "innerHTML",
186
186
  "onClick"
187
- ], Bt = { key: 0 }, Vt = { key: 1 }, Ht = [
187
+ ], Vt = { key: 0 }, Ht = { key: 1 }, Ut = [
188
188
  "font-size",
189
189
  "font-weight",
190
190
  "fill",
191
+ "stroke",
191
192
  "transform",
192
193
  "onClick"
193
- ], Ut = [
194
+ ], Wt = [
194
195
  "font-size",
195
196
  "font-weight",
196
197
  "fill",
197
198
  "transform",
198
199
  "onClick",
199
200
  "innerHTML"
200
- ], Wt = [
201
+ ], Gt = [
201
202
  "x",
202
203
  "y",
203
204
  "width",
@@ -206,7 +207,7 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
206
207
  "onMouseenter",
207
208
  "onMouseleave",
208
209
  "fill"
209
- ], Gt = [
210
+ ], Kt = [
210
211
  "x",
211
212
  "y",
212
213
  "width",
@@ -215,7 +216,7 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
215
216
  "onMouseenter",
216
217
  "onMouseleave",
217
218
  "fill"
218
- ], Kt = ["data-start", "data-end"], qt = {
219
+ ], qt = ["data-start", "data-end"], Jt = {
219
220
  key: 0,
220
221
  style: {
221
222
  position: "absolute",
@@ -225,17 +226,17 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
225
226
  },
226
227
  "data-dom-to-png-ignore": "",
227
228
  "aria-hidden": "true"
228
- }, Jt = {
229
+ }, Yt = {
229
230
  key: 4,
230
231
  class: "vue-data-ui-watermark"
231
- }, Yt = [
232
+ }, Xt = [
232
233
  "x",
233
234
  "y",
234
235
  "height",
235
236
  "width",
236
237
  "fill",
237
238
  "stroke"
238
- ], Xt = ["id"], Zt = ["onClick"], Qt = { key: 0 }, $t = { key: 1 }, en = /*#__PURE__*/ Me({
239
+ ], Zt = ["id"], Qt = ["onClick"], $t = { key: 0 }, en = { key: 1 }, tn = /*#__PURE__*/ Me({
239
240
  __name: "vue-ui-stackbar",
240
241
  props: {
241
242
  config: {
@@ -262,46 +263,46 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
262
263
  "selectX",
263
264
  "copyAlt"
264
265
  ],
265
- setup(e, { expose: Me, emit: it }) {
266
- let en = b(() => import("./Tooltip-CTgk02J6.js")), tn = b(() => import("./BaseIcon-U0y1Y7dC.js").then((e) => e.n)), nn = b(() => import("./vue-ui-accordion-BhOSscZB.js").then((e) => e.n)), rn = b(() => import("./DataTable-1Lsn9w61.js")), an = b(() => import("./PenAndPaper-ktbpEc-t.js").then((e) => e.t)), on = b(() => import("./UserOptions-DJt-e5q0.js").then((e) => e.n)), sn = b(() => import("./PackageVersion-CrLLZ567.js").then((e) => e.t)), cn = b(() => import("./BaseDraggableDialog-9RMU4zIz.js").then((e) => e.n)), { vue_ui_stackbar: ln } = ye(), { isThemeValid: un, warnInvalidTheme: dn } = we(), fn = tt(), M = e, N = it, pn = g({
266
+ setup(e, { expose: Me, emit: at }) {
267
+ let tn = Je(() => import("./Tooltip-CLpW5URN.js")), nn = Je(() => import("./BaseIcon-Dmgd8MfJ.js").then((e) => e.n)), rn = Je(() => import("./vue-ui-accordion-D2W-dY3E.js").then((e) => e.n)), an = Je(() => import("./DataTable-D6vq6n14.js")), on = Je(() => import("./PenAndPaper-CD5tlFYh.js").then((e) => e.t)), sn = Je(() => import("./UserOptions-3Qr8es3g.js").then((e) => e.n)), cn = Je(() => import("./PackageVersion-CU9Hflo-.js").then((e) => e.t)), ln = Je(() => import("./BaseDraggableDialog-obpncsqR.js").then((e) => e.n)), { vue_ui_stackbar: un } = ye(), { isThemeValid: dn, warnInvalidTheme: fn } = we(), pn = nt(), M = e, N = at, mn = _({
267
268
  get() {
268
269
  return !!M.dataset && M.dataset.length;
269
270
  },
270
271
  set(e) {
271
272
  return e;
272
273
  }
273
- }), P = E(null), F = E(ce()), mn = E(!1), hn = E(null), gn = E(""), I = E([]), _n = E(0), vn = E(null), yn = E(null), bn = E(null), xn = E(null), Sn = E(!1), L = E(null), Cn = E(!1), wn = E(0), Tn = E(0), En = E(0), Dn = E(!1), On = E(null), kn = E(null), An = E(null), jn = E(null), Mn = E(null), Nn = E(null), Pn = E(null), Fn = E(null), In = $e(null), Ln = E(!1), Rn = E(0), zn = E(0), R = E(null), Bn = E({
274
+ }), P = E(null), F = E(se()), hn = E(!1), gn = E(null), _n = E(""), I = E([]), vn = E(0), yn = E(null), bn = E(null), xn = E(null), Sn = E(null), Cn = E(!1), L = E(null), wn = E(!1), Tn = E(0), En = E(0), Dn = E(0), On = E(!1), kn = E(null), An = E(null), jn = E(null), Mn = E(null), Nn = E(null), Pn = E(null), Fn = E(null), In = E(null), Ln = et(null), Rn = E(!1), zn = E(0), Bn = E(0), R = E(null), Vn = E({
274
275
  x: 0,
275
276
  y: 0
276
- }), Vn = E("pointer"), Hn = De({
277
- elementRef: In,
277
+ }), Hn = E("pointer"), Un = De({
278
+ elementRef: Ln,
278
279
  minimumWidth: 2,
279
280
  minimumHeight: 2,
280
281
  stableFramesRequired: 2,
281
282
  once: !1,
282
283
  onSizeAccepted: () => {
283
- Gn();
284
+ Kn();
284
285
  }
285
286
  });
286
- function Un() {
287
- In.value = P.value?.parentNode ?? null;
288
- }
289
287
  function Wn() {
288
+ Ln.value = P.value?.parentNode ?? null;
289
+ }
290
+ function Gn() {
290
291
  return new Promise((e) => {
291
292
  requestAnimationFrame(() => {
292
293
  requestAnimationFrame(e);
293
294
  });
294
295
  });
295
296
  }
296
- async function Gn() {
297
- let e = ++zn.value;
298
- Ln.value = !1, await Ye(), await Wn(), await Wn(), e === zn.value && (Rn.value += 1, Ln.value = !0);
297
+ async function Kn() {
298
+ let e = ++Bn.value;
299
+ Rn.value = !1, await Xe(), await Gn(), await Gn(), e === Bn.value && (zn.value += 1, Rn.value = !0);
299
300
  }
300
- let Kn = E(null);
301
- Ze(() => {
302
- Dn.value = !0, Un(), Hn.start(), hr();
301
+ let qn = E(null);
302
+ Qe(() => {
303
+ On.value = !0, Wn(), Un.start(), gr();
303
304
  });
304
- let z = E(rr());
305
+ let z = E(ir());
305
306
  me({
306
307
  config: () => z.value,
307
308
  dataset: () => M.dataset,
@@ -335,7 +336,7 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
335
336
  let { transitionEnabled: B } = Ee({
336
337
  config: () => z.value.transitions,
337
338
  dataset: () => M.dataset
338
- }), V = g(() => z.value.userOptions.useCursorPointer), qn = g(() => ee({
339
+ }), V = _(() => z.value.userOptions.useCursorPointer), Jn = _(() => ee({
339
340
  defaultConfig: {
340
341
  userOptions: { show: !1 },
341
342
  useCssAnimation: !1,
@@ -380,13 +381,13 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
380
381
  } }
381
382
  },
382
383
  userConfig: z.value.skeletonConfig ?? {}
383
- })), { loading: Jn, FINAL_DATASET: Yn, manualLoading: Xn } = xe({
384
- ...et(M),
384
+ })), { loading: Yn, FINAL_DATASET: Xn, manualLoading: Zn } = xe({
385
+ ...tt(M),
385
386
  FINAL_CONFIG: z,
386
- prepareConfig: rr,
387
+ prepareConfig: ir,
387
388
  callback: () => {
388
389
  Promise.resolve().then(async () => {
389
- (!z.value.style.chart.zoom.keepState || !Ki.value || J.value.start === 0 && J.value.end === 0) && await qi();
390
+ (!z.value.style.chart.zoom.keepState || !qi.value || J.value.start === 0 && J.value.end === 0) && await Ji();
390
391
  });
391
392
  },
392
393
  skeletonDataset: M.config?.skeletonDataset ?? [{
@@ -414,26 +415,28 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
414
415
  }],
415
416
  skeletonConfig: ee({
416
417
  defaultConfig: z.value,
417
- userConfig: qn.value
418
+ userConfig: Jn.value
418
419
  })
419
- }), { userOptionsVisible: Zn, setUserOptionsVisibility: Qn, keepUserOptionState: $n } = ze({ config: z.value }), { svgRef: er } = Be({ config: z.value.style.chart.title });
420
- function tr() {
421
- Qn(!0);
422
- }
420
+ }), { userOptionsVisible: Qn, setUserOptionsVisibility: $n, keepUserOptionState: er } = ze({ config: z.value }), { svgRef: tr } = Be({ config: z.value.style.chart.title });
423
421
  function nr() {
424
- Qn(!1), N("selectX", {
422
+ $n(!0);
423
+ }
424
+ function rr() {
425
+ $n(!1), N("selectX", {
425
426
  index: null,
426
427
  indexLabel: null,
427
428
  dataset: null
428
- }), L.value = null, R.value = null, mn.value = !1;
429
+ }), L.value = null, R.value = null, hn.value = !1;
429
430
  }
430
- function rr() {
431
+ function ir() {
431
432
  let e = Ce({
432
433
  userConfig: M.config,
433
- defaultConfig: ln
434
- }), t = {}, n = e.theme;
434
+ defaultConfig: un
435
+ }), t = {};
436
+ M.config && pe(M.config, "style.chart.grid.x.timeLabels.showFirstAndLast") && (e.style.chart.grid.x.timeLabels.showFirstAndLast = !!M.config.style.chart.grid.x.timeLabels.showFirstAndLast);
437
+ let n = e.theme;
435
438
  if (n) {
436
- if (!un.value(e)) dn(e), t = e;
439
+ if (!dn.value(e)) fn(e), t = e;
437
440
  else {
438
441
  let r = Ce({
439
442
  userConfig: He[n] || M.config,
@@ -450,25 +453,25 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
450
453
  } else t = e;
451
454
  return t;
452
455
  }
453
- let ir = g(() => z.value.style.chart.bars.dataLabels.hideUnderValue != null), ar = g(() => z.value.style.chart.bars.dataLabels.hideUnderPercentage != null);
454
- nt(() => M.config, (e) => {
455
- Jn.value || (z.value = rr()), Zn.value = !z.value.userOptions.showOnChartHover, hr({ resetSlicer: !z.value.style.chart.zoom.keepState }), wn.value += 1, Tn.value += 1, En.value += 1, H.value.dataLabels.show = z.value.style.chart.bars.dataLabels.show, H.value.showTable = z.value.table.show, H.value.showTooltip = z.value.style.chart.tooltip.show, Un(), !z.value.style.chart.zoom.keepState || !Ki.value || J.value.start === 0 && J.value.end === 0 ? qi() : jr();
456
- }, { deep: !0 }), nt(() => M.dataset, (e) => {
457
- Array.isArray(e) && e.length > 0 && (Xn.value = !1), Un(), z.value.style.chart.zoom.keepState ? jr() : Pr();
456
+ let ar = _(() => z.value.style.chart.bars.dataLabels.hideUnderValue != null), or = _(() => z.value.style.chart.bars.dataLabels.hideUnderPercentage != null);
457
+ rt(() => M.config, (e) => {
458
+ Yn.value || (z.value = ir()), Qn.value = !z.value.userOptions.showOnChartHover, gr({ resetSlicer: !z.value.style.chart.zoom.keepState }), Tn.value += 1, En.value += 1, Dn.value += 1, H.value.dataLabels.show = z.value.style.chart.bars.dataLabels.show, H.value.showTable = z.value.table.show, H.value.showTooltip = z.value.style.chart.tooltip.show, Wn(), !z.value.style.chart.zoom.keepState || !qi.value || J.value.start === 0 && J.value.end === 0 ? Ji() : Mr();
459
+ }, { deep: !0 }), rt(() => M.dataset, (e) => {
460
+ Array.isArray(e) && e.length > 0 && (Zn.value = !1), Wn(), z.value.style.chart.zoom.keepState ? Mr() : Fr();
458
461
  }, { deep: !0 });
459
462
  let H = E({
460
463
  dataLabels: { show: z.value.style.chart.bars.dataLabels.show },
461
464
  showTable: z.value.table.show,
462
465
  showTooltip: z.value.style.chart.tooltip.show
463
466
  });
464
- nt(z, () => {
467
+ rt(z, () => {
465
468
  H.value = {
466
469
  dataLabels: { show: z.value.style.chart.bars.dataLabels.show },
467
470
  showTable: z.value.table.show,
468
471
  showTooltip: z.value.style.chart.tooltip.show
469
472
  };
470
473
  }, { immediate: !0 });
471
- let { isPrinting: or, isImaging: sr, generatePdf: cr, generateImage: lr } = be({
474
+ let { isPrinting: sr, isImaging: cr, generatePdf: lr, generateImage: ur } = be({
472
475
  elementId: `stackbar_${F.value}`,
473
476
  fileName: z.value.style.chart.title.text || "vue-ui-stackbar",
474
477
  options: z.value.userOptions.print
@@ -481,61 +484,61 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
481
484
  bottom: z.value.style.chart.padding.bottom / z.value.style.chart.height,
482
485
  left: z.value.style.chart.padding.left / z.value.style.chart.width
483
486
  }
484
- }), ur = g(() => pe(z.value.customPalette)), dr = $e(null), fr = $e(null), pr = E(null), mr = g(() => z.value.debug);
485
- function hr({ resetSlicer: e = !0 } = {}) {
486
- if (u(M.dataset) ? (se({
487
+ }), dr = _(() => fe(z.value.customPalette)), fr = et(null), pr = et(null), mr = E(null), hr = _(() => z.value.debug);
488
+ function gr({ resetSlicer: e = !0 } = {}) {
489
+ if (u(M.dataset) ? (oe({
487
490
  componentName: "VueUiStackbar",
488
491
  type: "dataset",
489
- debug: mr.value
490
- }), Xn.value = !0) : M.dataset.forEach((e, t) => {
491
- oe({
492
+ debug: hr.value
493
+ }), Zn.value = !0) : M.dataset.forEach((e, t) => {
494
+ ae({
492
495
  datasetObject: e,
493
496
  requiredAttributes: ["name", "series"]
494
497
  }).forEach((e) => {
495
- pn.value = !1, se({
498
+ mn.value = !1, oe({
496
499
  componentName: "VueUiStackbar",
497
500
  type: "datasetSerieAttribute",
498
501
  property: e,
499
502
  index: t,
500
- debug: mr.value
501
- }), Xn.value = !0;
503
+ debug: hr.value
504
+ }), Zn.value = !0;
502
505
  });
503
- }), u(M.dataset) || (Xn.value = z.value.loading), setTimeout(() => {
504
- Cn.value = !0;
506
+ }), u(M.dataset) || (Zn.value = z.value.loading), setTimeout(() => {
507
+ wn.value = !0;
505
508
  }, 10), z.value.responsive) {
506
509
  let e = Ne(() => {
507
- Cn.value = !1;
510
+ wn.value = !1;
508
511
  let { width: e, height: t } = Pe({
509
512
  chart: P.value,
510
- title: z.value.style.chart.title.text ? vn.value : null,
511
- legend: z.value.style.chart.legend.show ? yn.value : null,
512
- slicer: z.value.style.chart.zoom.show && q.value > 6 ? bn.value.$el : null,
513
- source: xn.value
513
+ title: z.value.style.chart.title.text ? yn.value : null,
514
+ legend: z.value.style.chart.legend.show ? bn.value : null,
515
+ slicer: z.value.style.chart.zoom.show && q.value > 6 ? xn.value.$el : null,
516
+ source: Sn.value
514
517
  });
515
518
  requestAnimationFrame(() => {
516
- U.value.width = e, U.value.height = t - 12, clearTimeout(pr.value), pr.value = setTimeout(() => {
517
- Cn.value = !0;
519
+ U.value.width = e, U.value.height = t - 12, clearTimeout(mr.value), mr.value = setTimeout(() => {
520
+ wn.value = !0;
518
521
  }, 10);
519
522
  });
520
523
  });
521
- dr.value && (fr.value && dr.value.unobserve(fr.value), dr.value.disconnect()), dr.value = new ResizeObserver(e), fr.value = P.value.parentNode, dr.value.observe(fr.value);
524
+ fr.value && (pr.value && fr.value.unobserve(pr.value), fr.value.disconnect()), fr.value = new ResizeObserver(e), pr.value = P.value.parentNode, fr.value.observe(pr.value);
522
525
  }
523
- Gn(), e && qi();
526
+ Kn(), e && Ji();
524
527
  }
525
- Xe(() => {
526
- Hn.stop(), dr.value && (fr.value && dr.value.unobserve(fr.value), dr.value.disconnect());
528
+ Ze(() => {
529
+ Un.stop(), fr.value && (pr.value && fr.value.unobserve(pr.value), fr.value.disconnect());
527
530
  });
528
- let W = g(() => z.value.style.chart.grid.y.position === "right");
529
- function gr() {
531
+ let W = _(() => z.value.style.chart.grid.y.position === "right");
532
+ function _r() {
530
533
  let e = 0;
531
- z.value.orientation === "vertical" && Mn.value && (e = Array.from(Mn.value.querySelectorAll("text")).reduce((e, t) => {
534
+ z.value.orientation === "vertical" && Nn.value && (e = Array.from(Nn.value.querySelectorAll("text")).reduce((e, t) => {
532
535
  let n = t.getComputedTextLength();
533
536
  return n > e ? n : e;
534
- }, 0)), z.value.orientation === "horizontal" && Nn.value && (e = Array.from(Nn.value.querySelectorAll("text")).reduce((e, t) => {
537
+ }, 0)), z.value.orientation === "horizontal" && Pn.value && (e = Array.from(Pn.value.querySelectorAll("text")).reduce((e, t) => {
535
538
  let n = t.getComputedTextLength();
536
539
  return n > e ? n : e;
537
540
  }, 0));
538
- let t = jn.value ? jn.value.getBoundingClientRect().width + z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX : 0;
541
+ let t = Mn.value ? Mn.value.getBoundingClientRect().width + z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX : 0;
539
542
  return {
540
543
  left: W.value ? 0 : e + t,
541
544
  right: W.value ? e + t : 0,
@@ -543,12 +546,12 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
543
546
  yAxisLabelWidth: t
544
547
  };
545
548
  }
546
- let _r = E(0), vr = E(0), yr = Ne((e) => {
547
- vr.value = e + z.value.style.chart.bars.totalValues.fontSize;
549
+ let vr = E(0), yr = E(0), br = Ne((e) => {
550
+ yr.value = e + z.value.style.chart.bars.totalValues.fontSize;
548
551
  }, 100);
549
- function br() {
552
+ function xr() {
550
553
  if (z.value.orientation !== "horizontal") return 0;
551
- let e = Fn.value;
554
+ let e = In.value;
552
555
  if (!e) return 0;
553
556
  let t = Array.from(e.querySelectorAll("text"));
554
557
  if (!t.length) return 0;
@@ -559,13 +562,13 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
559
562
  } catch {}
560
563
  return Math.max(0, n - (G.value?.right ?? 0));
561
564
  }
562
- rt((e) => {
565
+ it((e) => {
563
566
  if (z.value.orientation !== "horizontal") return;
564
- let t = Fn.value;
567
+ let t = In.value;
565
568
  if (!t) return;
566
569
  let n = () => {
567
- let e = br();
568
- yr(e);
570
+ let e = xr();
571
+ br(e);
569
572
  };
570
573
  n();
571
574
  let r = new ResizeObserver(n);
@@ -578,53 +581,53 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
578
581
  }), e(() => {
579
582
  r.disconnect(), a.disconnect();
580
583
  });
581
- }), Xe(() => {
582
- _r.value = 0, vr.value = 0;
584
+ }), Ze(() => {
585
+ vr.value = 0, yr.value = 0;
583
586
  });
584
- let xr = E(0), Sr = E(0);
585
- function Cr(e) {
587
+ let Sr = E(0), Cr = E(0);
588
+ function wr(e) {
586
589
  let t = Number.isFinite(e) ? e : 0;
587
- xr.value !== t && (xr.value = t);
590
+ Sr.value !== t && (Sr.value = t);
588
591
  }
589
- function wr() {
590
- let e = z.value.orientation === "vertical" ? Nn.value : Mn.value;
592
+ function Tr() {
593
+ let e = z.value.orientation === "vertical" ? Pn.value : Nn.value;
591
594
  if (!e) {
592
- Cr(0);
595
+ wr(0);
593
596
  return;
594
597
  }
595
598
  try {
596
- Cr(e.getBBox()?.height);
599
+ wr(e.getBBox()?.height);
597
600
  } catch {
598
- Cr(0);
601
+ wr(0);
599
602
  }
600
603
  }
601
- function Tr() {
602
- Sr.value && cancelAnimationFrame(Sr.value), Sr.value = requestAnimationFrame(() => {
604
+ function Er() {
605
+ Cr.value && cancelAnimationFrame(Cr.value), Cr.value = requestAnimationFrame(() => {
603
606
  requestAnimationFrame(() => {
604
- wr();
607
+ Tr();
605
608
  });
606
609
  });
607
610
  }
608
- Xe(() => {
609
- Sr.value && cancelAnimationFrame(Sr.value);
611
+ Ze(() => {
612
+ Cr.value && cancelAnimationFrame(Cr.value);
610
613
  });
611
- let Er = g(() => {
614
+ let Dr = _(() => {
612
615
  let e = 0;
613
- if (An.value) try {
614
- e = An.value.getBBox().height;
616
+ if (jn.value) try {
617
+ e = jn.value.getBBox().height;
615
618
  } catch {
616
619
  e = 0;
617
620
  }
618
- let t = z.value.style.chart.grid.x.timeLabels.show ? xr.value : 0;
621
+ let t = z.value.style.chart.grid.x.timeLabels.show ? Sr.value : 0;
619
622
  return e + t;
620
- }), G = g(() => {
621
- Rn.value;
623
+ }), G = _(() => {
624
+ zn.value;
622
625
  let { height: e, width: t } = U.value, { right: n } = U.value.paddingRatio, r = z.value.style.chart.bars.totalValues.show && M.dataset && M.dataset.length > 1 ? z.value.style.chart.bars.totalValues.fontSize * 1.3 : 0, a = 0, o = 0, s = 0, c = 0;
623
626
  if (z.value.style.chart.grid.y.axisLabels.show) {
624
- let e = gr();
627
+ let e = _r();
625
628
  a = e.left, o = e.right, s = e.scaleLabelsWidth, c = e.yAxisLabelWidth;
626
629
  }
627
- let l = z.value.style.chart.padding.top + r, u = t - t * n - vr.value - o, d = e - z.value.style.chart.padding.bottom - Er.value - r, f = z.value.style.chart.padding.left + a, p = t - f - t * n - vr.value - o, ee = e - l - z.value.style.chart.padding.bottom - Er.value - r;
630
+ let l = z.value.style.chart.padding.top + r, u = t - t * n - yr.value - o, d = e - z.value.style.chart.padding.bottom - Dr.value - r, f = z.value.style.chart.padding.left + a, p = t - f - t * n - yr.value - o, ee = e - l - z.value.style.chart.padding.bottom - Dr.value - r;
628
631
  return {
629
632
  chartHeight: e,
630
633
  chartWidth: t,
@@ -639,7 +642,7 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
639
642
  scaleLabelsWidth: s,
640
643
  yAxisLabelWidth: c
641
644
  };
642
- }), Dr = g(() => {
645
+ }), Or = _(() => {
643
646
  let { left: e, top: t, width: n, height: r } = G.value, a = J.value.start, o = J.value.end, s = Math.max(1, o - a), c = Math.max(0, Math.min(s, (Y.value.start ?? a) - a)), l = Math.max(0, Math.min(s, (Y.value.end ?? o) - a)), u = Math.max(0, l - c), d = {
644
647
  fill: z.value.style.chart.zoom.preview.fill,
645
648
  stroke: z.value.style.chart.zoom.preview.stroke,
@@ -673,8 +676,8 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
673
676
  ...d
674
677
  };
675
678
  }
676
- }), K = g(() => Yn.value.map((e, t) => {
677
- let n = ce(), r = String(e.key ?? e.id ?? e.name ?? n), a = d(e.color) || ur.value[t] || o[t] || o[t % o.length];
679
+ }), K = _(() => Xn.value.map((e, t) => {
680
+ let n = se(), r = String(e.key ?? e.id ?? e.name ?? n), a = d(e.color) || dr.value[t] || o[t] || o[t % o.length];
678
681
  return {
679
682
  ...e,
680
683
  datasetKey: r,
@@ -684,58 +687,58 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
684
687
  id: n,
685
688
  color: a
686
689
  };
687
- })), q = g(() => {
690
+ })), q = _(() => {
688
691
  let e = Math.max(...K.value.filter((e) => !I.value.includes(e.id)).map((e) => e.series.length));
689
692
  return isFinite(e) ? e : Math.max(...K.value.map((e) => e.series.length));
690
693
  });
691
- function Or(e) {
692
- Kn.value = e;
694
+ function kr(e) {
695
+ qn.value = e;
693
696
  }
694
697
  let J = E({
695
698
  start: 0,
696
- end: Math.max(...Yn.value.map((e) => e.series.length))
699
+ end: Math.max(...Xn.value.map((e) => e.series.length))
697
700
  }), Y = E({
698
701
  start: 0,
699
- end: Math.max(...Yn.value.map((e) => e.series.length))
700
- }), kr = g(() => z.value.style.chart.zoom.preview.enable && (Y.value.start !== J.value.start || Y.value.end !== J.value.end));
701
- function Ar(e, t) {
702
+ end: Math.max(...Xn.value.map((e) => e.series.length))
703
+ }), Ar = _(() => z.value.style.chart.zoom.preview.enable && (Y.value.start !== J.value.start || Y.value.end !== J.value.end));
704
+ function jr(e, t) {
702
705
  Y.value[e] = t;
703
706
  }
704
- function jr() {
707
+ function Mr() {
705
708
  let e = q.value, t = Math.max(0, Math.min(J.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(J.value.end ?? e, e));
706
- (!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), J.value.start = t, J.value.end = n, Y.value.start = t, Y.value.end = n, bn.value && (bn.value.setStartValue(t), bn.value.setEndValue(n));
709
+ (!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), J.value.start = t, J.value.end = n, Y.value.start = t, Y.value.end = n, xn.value && (xn.value.setStartValue(t), xn.value.setEndValue(n));
707
710
  }
708
- let Mr = E(null);
709
- function Nr() {
711
+ let Nr = E(null);
712
+ function Pr() {
710
713
  return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
711
714
  }
712
- Xe(() => {
713
- Mr.value && cancelAnimationFrame(Mr.value);
715
+ Ze(() => {
716
+ Nr.value && cancelAnimationFrame(Nr.value);
714
717
  });
715
- async function Pr({ force: e = !1 } = {}) {
716
- if (z.value.style.chart.zoom.keepState && !e && Ki.value && (J.value.start !== 0 || J.value.end !== 0)) {
717
- jr();
718
+ async function Fr({ force: e = !1 } = {}) {
719
+ if (z.value.style.chart.zoom.keepState && !e && qi.value && (J.value.start !== 0 || J.value.end !== 0)) {
720
+ Mr();
718
721
  return;
719
722
  }
720
- qi(), await Ye(), Mr.value && cancelAnimationFrame(Mr.value), Mr.value = requestAnimationFrame(async () => {
721
- await Nr(), qi();
723
+ Ji(), await Xe(), Nr.value && cancelAnimationFrame(Nr.value), Nr.value = requestAnimationFrame(async () => {
724
+ await Pr(), Ji();
722
725
  });
723
726
  }
724
- let X = g(() => {
727
+ let X = _(() => {
725
728
  let e;
726
729
  return e = z.value.orientation === "vertical" ? G.value.width / (J.value.end - J.value.start) : G.value.height / (J.value.end - J.value.start), e <= 0 ? 0 : e;
727
- }), Fr = g(() => l(K.value.filter((e) => !I.value.includes(e.id))).slice(J.value.start, J.value.end)), Ir = g(() => I.value.length === K.value.length), Lr = g(() => z.value.style.chart.zoom.minimap.show ? l(K.value.map((e) => ({
730
+ }), Ir = _(() => l(K.value.filter((e) => !I.value.includes(e.id))).slice(J.value.start, J.value.end)), Lr = _(() => I.value.length === K.value.length), Rr = _(() => z.value.style.chart.zoom.minimap.show ? l(K.value.map((e) => ({
728
731
  ...e,
729
732
  series: e.series.map((e) => e ?? 0)
730
- })).filter((e) => Ir.value ? !0 : !I.value.includes(e.id))) : []), Rr = g(() => z.value.style.chart.zoom.minimap.show ? [{
733
+ })).filter((e) => Lr.value ? !0 : !I.value.includes(e.id))) : []), zr = _(() => z.value.style.chart.zoom.minimap.show ? [{
731
734
  name: "",
732
- series: Lr.value,
735
+ series: Rr.value,
733
736
  color: "#000000",
734
737
  isVisible: !0
735
- }] : []), zr = g(() => l(K.value.filter((e) => !I.value.includes(e.id)).map((e) => ({
738
+ }] : []), Br = _(() => l(K.value.filter((e) => !I.value.includes(e.id)).map((e) => ({
736
739
  ...e,
737
740
  series: e.series.map((t, n) => e.signedSeries[n] === -1 && t >= 0 ? -t : t)
738
- }))).slice(J.value.start, J.value.end)), Br = g(() => {
741
+ }))).slice(J.value.start, J.value.end)), Vr = _(() => {
739
742
  let e = K.value.filter((e) => !I.value.includes(e.id));
740
743
  return {
741
744
  positive: l(e.map((e) => ({
@@ -747,18 +750,18 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
747
750
  series: e.series.slice(J.value.start, J.value.end).map((e) => e < 0 ? e : 0)
748
751
  })))
749
752
  };
750
- }), Vr = g(() => {
751
- let e = z.value.style.chart.grid.scale.scaleMax !== null && !z.value.style.chart.bars.distributed ? z.value.style.chart.grid.scale.scaleMax : Math.max(...Br.value.positive), t = Math.min(...Br.value.negative), n = z.value.style.chart.grid.scale.scaleMin !== null && !z.value.style.chart.bars.distributed ? z.value.style.chart.grid.scale.scaleMin : [
753
+ }), Hr = _(() => {
754
+ let e = z.value.style.chart.grid.scale.scaleMax !== null && !z.value.style.chart.bars.distributed ? z.value.style.chart.grid.scale.scaleMax : Math.max(...Vr.value.positive), t = Math.min(...Vr.value.negative), n = z.value.style.chart.grid.scale.scaleMin !== null && !z.value.style.chart.bars.distributed ? z.value.style.chart.grid.scale.scaleMin : [
752
755
  -Infinity,
753
756
  Infinity,
754
757
  NaN,
755
758
  void 0,
756
759
  null
757
760
  ].includes(t) ? 0 : t;
758
- return !z.value.style.chart.bars.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? fe(n > 0 ? 0 : n, e < 0 ? 0 : e, z.value.style.chart.grid.scale.ticks) : te(n > 0 ? 0 : n, e < 0 ? 0 : e, z.value.style.chart.grid.scale.ticks);
759
- }), Hr = g(() => Vr.value.ticks), Z = g(() => {
760
- let e = Vr.value, t = e.max + Math.abs(e.min);
761
- return Hr.value.map((n) => ({
761
+ return !z.value.style.chart.bars.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? de(n > 0 ? 0 : n, e < 0 ? 0 : e, z.value.style.chart.grid.scale.ticks) : te(n > 0 ? 0 : n, e < 0 ? 0 : e, z.value.style.chart.grid.scale.ticks);
762
+ }), Ur = _(() => Hr.value.ticks), Z = _(() => {
763
+ let e = Hr.value, t = e.max + Math.abs(e.min);
764
+ return Ur.value.map((n) => ({
762
765
  zero: G.value.bottom - G.value.height * (Math.abs(e.min) / t),
763
766
  y: G.value.bottom - G.value.height * ((n + Math.abs(e.min)) / t),
764
767
  x: W.value ? G.value.right + 8 : G.value.left - 8,
@@ -767,28 +770,28 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
767
770
  horizontal_y: G.value.bottom - 8,
768
771
  value: n
769
772
  }));
770
- }), Ur = g(() => {
773
+ }), Wr = _(() => {
771
774
  let e = z.value.style.chart.grid.y.axisLabels, { prefix: t, suffix: n } = z.value.style.chart.bars.dataLabels;
772
- return Hr.value.map((r) => String(ie(e.formatter, r, p({
775
+ return Ur.value.map((r) => String(m(e.formatter, r, p({
773
776
  p: t,
774
777
  v: r,
775
778
  s: n,
776
779
  r: e.rounding
777
780
  }), { datapoint: { value: r } }) ?? "")).join("|");
778
781
  });
779
- nt(() => [
780
- Ur.value,
782
+ rt(() => [
783
+ Wr.value,
781
784
  z.value.orientation,
782
785
  z.value.style.chart.grid.y.axisLabels.show,
783
786
  z.value.style.chart.grid.y.axisLabels.fontSize,
784
787
  z.value.style.chart.grid.y.axisLabels.bold,
785
788
  z.value.style.chart.grid.y.position
786
789
  ], () => {
787
- z.value.style.chart.grid.y.axisLabels.show && Gn();
790
+ z.value.style.chart.grid.y.axisLabels.show && Kn();
788
791
  }, { flush: "post" });
789
- let Q = E([]), Wr = E([]), Gr = 0;
790
- rt(() => {
791
- let e = ++Gr;
792
+ let Q = E([]), Gr = E([]), Kr = 0;
793
+ it(() => {
794
+ let e = ++Kr;
792
795
  (async () => {
793
796
  let t = await ve({
794
797
  values: z.value.style.chart.grid.x.timeLabels.values,
@@ -797,12 +800,12 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
797
800
  start: J.value.start,
798
801
  end: J.value.end
799
802
  });
800
- e === Gr && (Q.value = t);
803
+ e === Kr && (Q.value = t);
801
804
  })();
802
805
  });
803
- let Kr = 0;
804
- rt(() => {
805
- let e = ++Kr;
806
+ let qr = 0;
807
+ it(() => {
808
+ let e = ++qr;
806
809
  (async () => {
807
810
  let t = await ve({
808
811
  values: z.value.style.chart.grid.x.timeLabels.values,
@@ -811,49 +814,56 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
811
814
  start: 0,
812
815
  end: q.value
813
816
  });
814
- e === Kr && (Wr.value = t);
817
+ e === qr && (Gr.value = t);
815
818
  })();
816
819
  });
817
- let qr = g(() => {
818
- let e = z.value.style.chart.grid.x.timeLabels.modulo;
819
- return Q.value.length ? Math.min(e, [...new Set(Q.value.map((e) => e.text))].length) : e;
820
- }), Jr = g(() => {
821
- let e = z.value.style.chart.grid.x.timeLabels, t = Q.value || [], n = Wr.value || [], r = J.value.start ?? 0, a = L.value, o = q.value, s = t.map((e) => e?.text ?? ""), c = n.map((e) => e?.text ?? "");
822
- return ne(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Math.max(1, qr.value || 1), s, c, r, a, o);
820
+ let Jr = _(() => {
821
+ let e = Math.max(1, Math.floor(Number(z.value.style.chart.grid.x.timeLabels.modulo) || 1)), t = Gr.value.length, n = Q.value.length;
822
+ if (!t || !n) return e;
823
+ let r = Math.max(1, Math.ceil(t / e));
824
+ return Math.max(1, Math.round(n / r));
825
+ }), Yr = _(() => {
826
+ let e = z.value.style.chart.grid.x.timeLabels, t = Q.value || [], n = Gr.value || [], r = J.value.start ?? 0, a = L.value, o = q.value, s = t.map((e) => e?.text ?? ""), c = n.map((e) => e?.text ?? ""), l = ne(!!e.showOnlyFirstAndLast, !!e.showOnlyAtModulo, Jr.value, s, c, r, a, o);
827
+ if (!e.showFirstAndLast || !e.showOnlyAtModulo || e.showOnlyFirstAndLast || !l.length) return l;
828
+ let u = l.length - 1;
829
+ return l.map((e, t) => t !== 0 && t !== u ? e : {
830
+ ...e,
831
+ text: s[t] ?? ""
832
+ });
823
833
  });
824
- rt(() => {
825
- z.value.orientation, z.value.style.chart.grid.x.timeLabels.show, z.value.style.chart.grid.x.timeLabels.fontSize, z.value.style.chart.grid.x.timeLabels.rotation, z.value.style.chart.grid.x.timeLabels.offsetY, Jr.value?.map((e) => e?.text ?? "").join("|"), Ur.value, U.value.width, U.value.height, Nn.value, Mn.value, An.value, Tr();
834
+ it(() => {
835
+ z.value.orientation, z.value.style.chart.grid.x.timeLabels.show, z.value.style.chart.grid.x.timeLabels.fontSize, z.value.style.chart.grid.x.timeLabels.rotation, z.value.style.chart.grid.x.timeLabels.offsetY, Yr.value?.map((e) => e?.text ?? "").join("|"), Wr.value, U.value.width, U.value.height, Pn.value, Nn.value, jn.value, Er();
826
836
  }, { flush: "post" });
827
- let Yr = E({
837
+ let Xr = E({
828
838
  months: [],
829
839
  shortMonths: [],
830
840
  days: [],
831
841
  shortDays: []
832
- }), Xr = 0;
833
- rt(() => {
834
- let e = ++Xr, t = z.value.style.chart.grid.x.timeLabels.datetimeFormatter;
842
+ }), Zr = 0;
843
+ it(() => {
844
+ let e = ++Zr, t = z.value.style.chart.grid.x.timeLabels.datetimeFormatter;
835
845
  (async () => {
836
846
  let n = await _e(t.locale).catch(() => _e("en"));
837
- e === Xr && (Yr.value = n.data);
847
+ e === Zr && (Xr.value = n.data);
838
848
  })();
839
849
  });
840
- let Zr = g(() => {
850
+ let Qr = _(() => {
841
851
  let e = z.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = ge({
842
852
  useUTC: e.useUTC,
843
- locale: Yr.value,
853
+ locale: Xr.value,
844
854
  januaryAsYear: e.januaryAsYear
845
855
  });
846
856
  return (e, n) => {
847
857
  let r = z.value.style.chart.grid.x.timeLabels.values?.[e];
848
858
  return r == null ? "" : t.formatDate(new Date(r), n);
849
859
  };
850
- }), Qr = g(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
851
- text: Zr.value(t, z.value.style.chart.zoom.timeFormat),
860
+ }), $r = _(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
861
+ text: Qr.value(t, z.value.style.chart.zoom.timeFormat),
852
862
  absoluteIndex: t
853
- }))), $r = g(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
854
- text: Zr.value(t, z.value.style.chart.tooltip.timeFormat),
863
+ }))), ei = _(() => (z.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
864
+ text: Qr.value(t, z.value.style.chart.tooltip.timeFormat),
855
865
  absoluteIndex: t
856
- }))), ei = g(() => {
866
+ }))), ti = _(() => {
857
867
  let e = /* @__PURE__ */ new Map();
858
868
  return (z.value.style.chart.grid.x.timeLabels.values || []).forEach((t) => {
859
869
  if ([
@@ -865,7 +875,7 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
865
875
  e.set(n, (e.get(n) || 0) + 1);
866
876
  }), e;
867
877
  });
868
- function ti(e) {
878
+ function ni(e) {
869
879
  let t = (z.value.style.chart.grid.x.timeLabels.values || [])[e];
870
880
  if ([
871
881
  null,
@@ -873,98 +883,98 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
873
883
  ""
874
884
  ].includes(t)) return `fallback-${e}`;
875
885
  let n = String(t);
876
- return (ei.value.get(n) || 0) > 1 ? `${n}-${e}` : n;
886
+ return (ti.value.get(n) || 0) > 1 ? `${n}-${e}` : n;
877
887
  }
878
- function ni(e, t) {
879
- return `${e.datasetKey}:${ti(t)}`;
888
+ function ri(e, t) {
889
+ return `${e.datasetKey}:${ni(t)}`;
880
890
  }
881
- let $ = g(() => {
882
- if (!pn.value && !Jn.value) return [];
883
- let e = Array(q.value).fill(0), t = Array(q.value).fill(0), n = Array(q.value).fill(0), r = Array(q.value).fill(0), a = Math.max(...Br.value.positive) || 0, o = Math.min(...Br.value.negative), s = [
891
+ let $ = _(() => {
892
+ if (!mn.value && !Yn.value) return [];
893
+ let e = Array(q.value).fill(0), t = Array(q.value).fill(0), n = Array(q.value).fill(0), r = Array(q.value).fill(0), a = Math.max(...Vr.value.positive) || 0, o = Math.min(...Vr.value.negative), s = [
884
894
  -Infinity,
885
895
  Infinity,
886
896
  NaN,
887
897
  void 0,
888
898
  null
889
- ].includes(o) ? 0 : o, { min: c, max: l } = !z.value.style.chart.bars.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? fe(z.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks) : te(z.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks), u = l + (c >= 0 ? 0 : Math.abs(c)) || 1, d = G.value.height, f = G.value.width, p = Z.value[0] ? Z.value[0].zero : G.value.bottom, ee = Z.value[0] ? Z.value[0].horizontal_zero : G.value.left, ne = Array(Lr.value.length).fill(0), re = Array(Lr.value.length).fill(0);
899
+ ].includes(o) ? 0 : o, { min: c, max: l } = !z.value.style.chart.bars.distributed && (z.value.style.chart.grid.scale.scaleMax !== null || z.value.style.chart.grid.scale.scaleMin !== null) ? de(z.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks) : te(z.value.style.chart.grid.scale.scaleMin === null ? s > 0 ? 0 : s : z.value.style.chart.grid.scale.scaleMin, z.value.style.chart.grid.scale.scaleMax === null ? a < 0 ? 0 : a : z.value.style.chart.grid.scale.scaleMax, z.value.style.chart.grid.scale.ticks), u = l + (c >= 0 ? 0 : Math.abs(c)) || 1, d = G.value.height, f = G.value.width, p = Z.value[0] ? Z.value[0].zero : G.value.bottom, ee = Z.value[0] ? Z.value[0].horizontal_zero : G.value.left, ne = Array(Rr.value.length).fill(0), re = Array(Rr.value.length).fill(0);
890
900
  return K.value.filter((e) => !I.value.includes(e.id)).map((a) => {
891
901
  let o = a.series.slice(), s = o.map((e, t) => ne[t]), c = o.map((e, t) => re[t]);
892
902
  o.forEach((e, t) => {
893
903
  (Number(e) || 0) >= 0 ? ne[t] += Number(e) || 0 : re[t] += Math.abs(Number(e) || 0);
894
904
  });
895
- let l = a.series.slice(J.value.start, J.value.end), te = a.signedSeries.slice(J.value.start, J.value.end), ie = l.map((e, t) => ni(a, J.value.start + t)), ae = o.map((e, t) => ni(a, t)), oe = l.map((e, t) => G.value.left + X.value * t + X.value * z.value.style.chart.bars.gapRatio / 4), se = (Lr.value || []).filter(Number.isFinite), ce = se.length ? Math.max(...se) : 0, le = se.length ? Math.min(...se) : 0;
896
- function ue({ minimapH: e }) {
897
- let t = 1e-9, n = ce > 0;
898
- if (n && le < 0) {
899
- let n = Math.max(ce, Math.abs(le)) || t;
905
+ let l = a.series.slice(J.value.start, J.value.end), te = a.signedSeries.slice(J.value.start, J.value.end), m = l.map((e, t) => ri(a, J.value.start + t)), ie = o.map((e, t) => ri(a, t)), ae = l.map((e, t) => G.value.left + X.value * t + X.value * z.value.style.chart.bars.gapRatio / 4), oe = (Rr.value || []).filter(Number.isFinite), se = oe.length ? Math.max(...oe) : 0, ce = oe.length ? Math.min(...oe) : 0;
906
+ function le({ minimapH: e }) {
907
+ let t = 1e-9, n = se > 0;
908
+ if (n && ce < 0) {
909
+ let n = Math.max(se, Math.abs(ce)) || t;
900
910
  return {
901
911
  pxPerUnit: e / 2 / n,
902
912
  zero: e / 2
903
913
  };
904
914
  }
905
915
  return n ? {
906
- pxPerUnit: e / Math.max(t, ce),
916
+ pxPerUnit: e / Math.max(t, se),
907
917
  zero: e
908
918
  } : {
909
- pxPerUnit: e / Math.max(t, Math.abs(le)),
919
+ pxPerUnit: e / Math.max(t, Math.abs(ce)),
910
920
  zero: 0
911
921
  };
912
922
  }
913
- let m = ({ left: e, unitW: t }) => {
923
+ let h = ({ left: e, unitW: t }) => {
914
924
  let n = t * (z.value.style.chart.bars.gapRatio / 4);
915
925
  return o.map((r, a) => e + t * a + n);
916
- }, de = l.map((e, t) => G.value.top + X.value * t + X.value * z.value.style.chart.bars.gapRatio / 4), fe = l.map((t, r) => {
917
- let a = z.value.style.chart.bars.distributed ? (t || 0) / Fr.value[r] : (t || 0) / u, o, s;
926
+ }, ue = l.map((e, t) => G.value.top + X.value * t + X.value * z.value.style.chart.bars.gapRatio / 4), de = l.map((t, r) => {
927
+ let a = z.value.style.chart.bars.distributed ? (t || 0) / Ir.value[r] : (t || 0) / u, o, s;
918
928
  return t > 0 ? (s = d * a, o = p - s - e[r], e[r] += s) : (s = d * a, o = p + n[r], n[r] += Math.abs(s)), o;
919
- }), pe = ({ minimapH: e }) => {
929
+ }), fe = ({ minimapH: e }) => {
920
930
  if (z.value.style.chart.bars.distributed) return o.map((t, n) => {
921
- let r = Math.abs(Number(t) || 0), a = Math.abs(Lr.value?.[n] || 0) || 1e-9;
931
+ let r = Math.abs(Number(t) || 0), a = Math.abs(Rr.value?.[n] || 0) || 1e-9;
922
932
  return e - (s[n] + r) / a * e;
923
933
  });
924
- let { pxPerUnit: t, zero: n } = ue({ minimapH: e });
934
+ let { pxPerUnit: t, zero: n } = le({ minimapH: e });
925
935
  return o.map((e, r) => {
926
936
  let a = Number(e) || 0;
927
937
  return a >= 0 ? n - (s[r] + a) * t : n + c[r] * t;
928
938
  });
929
- }, me = l.map((e, n) => {
930
- let a = z.value.style.chart.bars.distributed ? (e || 0) / Fr.value[n] : (e || 0) / u, o, s;
939
+ }, pe = l.map((e, n) => {
940
+ let a = z.value.style.chart.bars.distributed ? (e || 0) / Ir.value[n] : (e || 0) / u, o, s;
931
941
  return e > 0 ? (s = f * a, o = ee + t[n], t[n] += s) : (s = f * a, o = ee - Math.abs(s) - r[n], r[n] += Math.abs(s)), o;
932
- }), he = l.map((e, t) => {
933
- let n = z.value.style.chart.bars.distributed ? (e || 0) / Fr.value[t] : (e || 0) / u;
942
+ }), me = l.map((e, t) => {
943
+ let n = z.value.style.chart.bars.distributed ? (e || 0) / Ir.value[t] : (e || 0) / u;
934
944
  return e > 0 ? d * n : d * Math.abs(n);
935
- }), ge = ({ minimapH: e }) => {
936
- if (z.value.style.chart.bars.distributed) return o.map((t, n) => Math.abs(Number(t) || 0) / (Math.abs(Lr.value?.[n] || 0) || 1e-9) * e);
937
- let { pxPerUnit: t } = ue({ minimapH: e });
945
+ }), he = ({ minimapH: e }) => {
946
+ if (z.value.style.chart.bars.distributed) return o.map((t, n) => Math.abs(Number(t) || 0) / (Math.abs(Rr.value?.[n] || 0) || 1e-9) * e);
947
+ let { pxPerUnit: t } = le({ minimapH: e });
938
948
  return o.map((e) => Math.abs(Number(e) || 0) * t);
939
- }, _e = l.map((e, t) => {
940
- let n = z.value.style.chart.bars.distributed ? (e || 0) / Fr.value[t] : (e || 0) / u;
949
+ }, ge = l.map((e, t) => {
950
+ let n = z.value.style.chart.bars.distributed ? (e || 0) / Ir.value[t] : (e || 0) / u;
941
951
  return e > 0 ? f * n : f * Math.abs(n);
942
- }), ve = l.map((e) => Math.abs(e)).reduce((e, t) => e + t, 0);
952
+ }), _e = l.map((e) => Math.abs(e)).reduce((e, t) => e + t, 0);
943
953
  return {
944
954
  ...a,
945
- proportions: l.map((e, t) => z.value.style.chart.bars.distributed ? (e || 0) / Fr.value[t] : (e || 0) / ve),
955
+ proportions: l.map((e, t) => z.value.style.chart.bars.distributed ? (e || 0) / Ir.value[t] : (e || 0) / _e),
946
956
  series: l,
947
957
  signedSeries: te,
948
- rectKeys: ie,
949
- minimapRectKeys: ae,
950
- x: oe,
951
- y: fe,
952
- height: he,
953
- horizontal_width: _e,
954
- horizontal_y: de,
955
- horizontal_x: me,
956
- xMinimap: m,
957
- yMinimap: pe,
958
- heightMinimap: ge
958
+ rectKeys: m,
959
+ minimapRectKeys: ie,
960
+ x: ae,
961
+ y: de,
962
+ height: me,
963
+ horizontal_width: ge,
964
+ horizontal_y: ue,
965
+ horizontal_x: pe,
966
+ xMinimap: h,
967
+ yMinimap: fe,
968
+ heightMinimap: he
959
969
  };
960
970
  });
961
- }), ri = g(() => zr.value.map((e, t) => ({
971
+ }), ii = _(() => Br.value.map((e, t) => ({
962
972
  value: e,
963
973
  sign: e >= 0 ? 1 : -1
964
974
  })));
965
- function ii(e, t, n, r, a) {
975
+ function ai(e, t, n, r, a) {
966
976
  let o = a === -1 && e >= 0 ? -e : e;
967
- return ie(z.value.style.chart.bars.dataLabels.formatter, o, p({
977
+ return m(z.value.style.chart.bars.dataLabels.formatter, o, p({
968
978
  p: z.value.style.chart.bars.dataLabels.prefix,
969
979
  v: o,
970
980
  s: z.value.style.chart.bars.dataLabels.suffix,
@@ -975,8 +985,8 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
975
985
  datapointIndex: r
976
986
  });
977
987
  }
978
- function ai(e, t, n, r) {
979
- return ie(z.value.style.chart.bars.dataLabels.formatter, e, p({
988
+ function oi(e, t, n, r) {
989
+ return m(z.value.style.chart.bars.dataLabels.formatter, e, p({
980
990
  v: isNaN(e) ? 0 : e,
981
991
  s: "%",
982
992
  r: z.value.style.chart.bars.dataLabels.rounding
@@ -986,7 +996,7 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
986
996
  datapointIndex: r
987
997
  });
988
998
  }
989
- function oi(e) {
999
+ function si(e) {
990
1000
  let t = JSON.parse(JSON.stringify($.value)).map((t) => ({
991
1001
  name: t.name,
992
1002
  value: t.series[e] === 0 ? 0 : t.series[e] || null,
@@ -1002,7 +1012,7 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1002
1012
  period: Q.value[e]
1003
1013
  });
1004
1014
  }
1005
- function si(e) {
1015
+ function ci(e) {
1006
1016
  return JSON.parse(JSON.stringify($.value)).map((t) => ({
1007
1017
  name: t.name,
1008
1018
  absoluteIndex: t.absoluteIndex,
@@ -1010,21 +1020,21 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1010
1020
  proportion: t.proportions[e] || null,
1011
1021
  color: t.color,
1012
1022
  id: t.id,
1013
- timeLabel: Wr.value[e]
1023
+ timeLabel: Gr.value[e]
1014
1024
  }));
1015
1025
  }
1016
- function ci(e) {
1026
+ function li(e) {
1017
1027
  if (z.value.events.datapointLeave) {
1018
- let t = si(e);
1028
+ let t = ci(e);
1019
1029
  z.value.events.datapointLeave({
1020
1030
  datapoint: t,
1021
1031
  seriesIndex: e + J.value.start
1022
1032
  });
1023
1033
  }
1024
- mn.value = !1, L.value = null, R.value === e && (R.value = null);
1034
+ hn.value = !1, L.value = null, R.value === e && (R.value = null);
1025
1035
  }
1026
- let li = g(() => Array(q.value).fill(0).map((e, t) => si(t)));
1027
- nt(() => M.selectedXIndex, (e) => {
1036
+ let ui = _(() => Array(q.value).fill(0).map((e, t) => ci(t)));
1037
+ rt(() => M.selectedXIndex, (e) => {
1028
1038
  if ([null, void 0].includes(M.selectedXIndex)) {
1029
1039
  L.value = null;
1030
1040
  return;
@@ -1032,46 +1042,46 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1032
1042
  let t = e - J.value.start;
1033
1043
  t < 0 || e >= J.value.end ? L.value = null : L.value = t ?? null;
1034
1044
  }, { immediate: !0 });
1035
- function ui(e) {
1045
+ function di(e) {
1036
1046
  if (!z.value.style.chart.tooltip.showTimeLabel) return null;
1037
- let t = Q.value?.[e]?.text || null, n = $r.value?.[e]?.text || null, r = Wr.value?.[e]?.text || null;
1047
+ let t = Q.value?.[e]?.text || null, n = ei.value?.[e]?.text || null, r = Gr.value?.[e]?.text || null;
1038
1048
  return z.value.style.chart.tooltip.useDefaultTimeFormat ? t : n || r;
1039
1049
  }
1040
- function di(e, t = "pointer") {
1041
- if (Ir.value) return;
1042
- Vn.value = t, R.value = e, L.value = e, mn.value = !0;
1043
- let n = z.value.style.chart.tooltip.customFormat, r = si(e);
1044
- Zi({
1050
+ function fi(e, t = "pointer") {
1051
+ if (Lr.value) return;
1052
+ Hn.value = t, R.value = e, L.value = e, hn.value = !0;
1053
+ let n = z.value.style.chart.tooltip.customFormat, r = ci(e);
1054
+ Qi({
1045
1055
  seriesIndex: e,
1046
1056
  datapoint: r
1047
1057
  }), z.value.events.datapointEnter && z.value.events.datapointEnter({
1048
1058
  datapoint: r,
1049
1059
  seriesIndex: e + J.value.start
1050
- }), hn.value = {
1051
- timeLabel: ui(e),
1060
+ }), gn.value = {
1061
+ timeLabel: di(e),
1052
1062
  datapoint: r,
1053
1063
  seriesIndex: e,
1054
1064
  config: z.value,
1055
1065
  series: $.value
1056
1066
  };
1057
- let a = r.map((e) => Math.abs(e.value)).reduce((e, t) => e + t, 0), o = r.map((e) => m(e.value)).reduce((e, t) => e + t, 0);
1058
- if (f(n) && ae(() => n({
1067
+ let a = r.map((e) => Math.abs(e.value)).reduce((e, t) => e + t, 0), o = r.map((e) => h(e.value)).reduce((e, t) => e + t, 0);
1068
+ if (f(n) && ie(() => n({
1059
1069
  seriesIndex: e,
1060
1070
  datapoint: r,
1061
1071
  series: $.value,
1062
1072
  config: z.value
1063
- }))) gn.value = n({
1073
+ }))) _n.value = n({
1064
1074
  seriesIndex: e,
1065
1075
  datapoint: r,
1066
1076
  series: $.value,
1067
1077
  config: z.value
1068
1078
  });
1069
1079
  else {
1070
- let { showValue: t, showTotal: n, totalTranslation: s, showPercentage: c, borderColor: l, roundingValue: u, roundingPercentage: d } = z.value.style.chart.tooltip, f = "", ee = ui(e);
1080
+ let { showValue: t, showTotal: n, totalTranslation: s, showPercentage: c, borderColor: l, roundingValue: u, roundingPercentage: d } = z.value.style.chart.tooltip, f = "", ee = di(e);
1071
1081
  ee && (f += `<div style="width:100%;text-align:center;border-bottom:1px solid ${l};padding-bottom:6px;margin-bottom:3px;">${ee}</div>`), n && (f += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
1072
1082
  <span>${s}:</span>
1073
1083
  <span>
1074
- ${ie(z.value.style.chart.bars.dataLabels.formatter, o, p({
1084
+ ${m(z.value.style.chart.bars.dataLabels.formatter, o, p({
1075
1085
  p: z.value.style.chart.bars.dataLabels.prefix,
1076
1086
  v: o,
1077
1087
  s: z.value.style.chart.bars.dataLabels.suffix,
@@ -1086,8 +1096,8 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1086
1096
  r.reverse().forEach((e) => {
1087
1097
  f += `
1088
1098
  <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
1089
- <svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${z.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color}"/>${fn.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${F.value}_${e.absoluteIndex})"/>` : ""}</svg>
1090
- ${e.name}${t || c ? ":" : ""} ${t ? ie(z.value.style.chart.bars.dataLabels.formatter, e.value, p({
1099
+ <svg viewBox="0 0 60 60" height="14" width="14"><rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="${z.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color}"/>${pn.pattern ? `<rect rx="5" x="0" y="0" height="60" width="60" stroke="none" fill="url(#pattern_${F.value}_${e.absoluteIndex})"/>` : ""}</svg>
1100
+ ${e.name}${t || c ? ":" : ""} ${t ? m(z.value.style.chart.bars.dataLabels.formatter, e.value, p({
1091
1101
  p: z.value.style.chart.bars.dataLabels.prefix,
1092
1102
  v: e.value,
1093
1103
  s: z.value.style.chart.bars.dataLabels.suffix,
@@ -1099,12 +1109,12 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1099
1109
  }) : ""}${te[1]}
1100
1110
  </div>
1101
1111
  `;
1102
- }), gn.value = `<div>${f}</div>`;
1112
+ }), _n.value = `<div>${f}</div>`;
1103
1113
  }
1104
1114
  }
1105
- let fi = g(() => U.value.width), pi = g(() => U.value.height);
1115
+ let pi = _(() => U.value.width), mi = _(() => U.value.height);
1106
1116
  Oe({
1107
- timeLabelsEls: z.value.orientation === "vertical" ? Nn : Mn,
1117
+ timeLabelsEls: z.value.orientation === "vertical" ? Pn : Nn,
1108
1118
  timeLabels: Q,
1109
1119
  slicer: J,
1110
1120
  configRef: z,
@@ -1126,26 +1136,26 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1126
1136
  "enable"
1127
1137
  ],
1128
1138
  isAutoSize: !1,
1129
- width: fi,
1130
- height: pi,
1139
+ width: pi,
1140
+ height: mi,
1131
1141
  rotation: z.value.style.chart.grid.x.timeLabels.autoRotate.angle
1132
1142
  });
1133
- function mi(e) {
1134
- Sn.value = e, _n.value += 1;
1143
+ function hi(e) {
1144
+ Cn.value = e, vn.value += 1;
1135
1145
  }
1136
- function hi() {
1146
+ function gi() {
1137
1147
  H.value.showTable = !H.value.showTable;
1138
1148
  }
1139
- function gi() {
1149
+ function _i() {
1140
1150
  H.value.dataLabels.show = !H.value.dataLabels.show;
1141
1151
  }
1142
- function _i() {
1152
+ function vi() {
1143
1153
  H.value.showTooltip = !H.value.showTooltip;
1144
1154
  }
1145
- function vi() {
1155
+ function yi() {
1146
1156
  return $.value;
1147
1157
  }
1148
- let yi = g(() => {
1158
+ let bi = _(() => {
1149
1159
  if ($.value.length === 0) return {
1150
1160
  head: [],
1151
1161
  body: [],
@@ -1166,18 +1176,18 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1166
1176
  body: t
1167
1177
  };
1168
1178
  });
1169
- function bi(e = null) {
1179
+ function xi(e = null) {
1170
1180
  let n = [
1171
1181
  [z.value.style.chart.title.text],
1172
1182
  [z.value.style.chart.title.subtitle.text],
1173
1183
  [""]
1174
- ], a = ["", ...yi.value.head.map((e) => e.label)], o = yi.value.body, s = n.concat([a]).concat(o), c = r(s);
1184
+ ], a = ["", ...bi.value.head.map((e) => e.label)], o = bi.value.body, s = n.concat([a]).concat(o), c = r(s);
1175
1185
  e ? e(c) : t({
1176
1186
  csvContent: c,
1177
1187
  title: z.value.style.chart.title.text || "vue-ui-stackbar"
1178
1188
  });
1179
1189
  }
1180
- let xi = g(() => {
1190
+ let Si = _(() => {
1181
1191
  let e = [""].concat($.value.map((e) => e.name), "__SUM__"), t = [], n = J.value.end - J.value.start;
1182
1192
  for (let e = 0; e < n; e += 1) {
1183
1193
  let n = J.value.start + e, r = $.value.map((t) => t.series[e] ?? 0).reduce((e, t) => e + t, 0);
@@ -1203,12 +1213,12 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1203
1213
  colNames: a
1204
1214
  };
1205
1215
  });
1206
- function Si() {
1207
- I.value.length ? I.value = [] : Di.value.forEach((e) => {
1216
+ function Ci() {
1217
+ I.value.length ? I.value = [] : Oi.value.forEach((e) => {
1208
1218
  I.value.push(e.id);
1209
1219
  }), N("selectLegend", $.value);
1210
1220
  }
1211
- function Ci(e) {
1221
+ function wi(e) {
1212
1222
  if (I.value.includes(e.id)) I.value = I.value.filter((t) => t !== e.id);
1213
1223
  else {
1214
1224
  if (I.value.length === K.value.length - 1) return;
@@ -1216,37 +1226,37 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1216
1226
  }
1217
1227
  N("selectLegend", $.value);
1218
1228
  }
1219
- function wi(e) {
1220
- return K.value.length ? K.value.find((t) => t.name === e) || (mr.value && console.warn(`VueUiStackbar - Series name not found "${e}"`), null) : (mr.value && console.warn("VueUiStackbar - There are no series to show."), null);
1221
- }
1222
1229
  function Ti(e) {
1223
- let t = wi(e);
1224
- t !== null && I.value.includes(t.id) && Ci({ id: t.id });
1230
+ return K.value.length ? K.value.find((t) => t.name === e) || (hr.value && console.warn(`VueUiStackbar - Series name not found "${e}"`), null) : (hr.value && console.warn("VueUiStackbar - There are no series to show."), null);
1225
1231
  }
1226
1232
  function Ei(e) {
1227
- let t = wi(e);
1228
- t !== null && (I.value.includes(t.id) || Ci({ id: t.id }));
1233
+ let t = Ti(e);
1234
+ t !== null && I.value.includes(t.id) && wi({ id: t.id });
1229
1235
  }
1230
- let Di = g(() => K.value.map((e, t) => ({
1236
+ function Di(e) {
1237
+ let t = Ti(e);
1238
+ t !== null && (I.value.includes(t.id) || wi({ id: t.id }));
1239
+ }
1240
+ let Oi = _(() => K.value.map((e, t) => ({
1231
1241
  ...e,
1232
1242
  shape: "square"
1233
1243
  })).map((e) => ({
1234
1244
  ...e,
1235
1245
  opacity: I.value.includes(e.id) ? .5 : 1,
1236
- segregate: () => Ci(e),
1246
+ segregate: () => wi(e),
1237
1247
  isSegregated: I.value.includes(e.id)
1238
- }))), Oi = g(() => ({
1248
+ }))), ki = _(() => ({
1239
1249
  cy: "stackbar-legend",
1240
1250
  backgroundColor: z.value.style.chart.legend.backgroundColor,
1241
1251
  color: z.value.style.chart.legend.color,
1242
1252
  fontSize: z.value.style.chart.legend.fontSize,
1243
1253
  paddingBottom: 12,
1244
1254
  fontWeight: z.value.style.chart.legend.bold ? "bold" : ""
1245
- })), ki = E(!1);
1246
- function Ai() {
1247
- ki.value = !ki.value;
1255
+ })), Ai = E(!1);
1256
+ function ji() {
1257
+ Ai.value = !Ai.value;
1248
1258
  }
1249
- function ji(e, t) {
1259
+ function Mi(e, t) {
1250
1260
  let n = JSON.parse(JSON.stringify($.value)).map((e) => ({
1251
1261
  name: e.name,
1252
1262
  value: e.series[t] === 0 ? 0 : (e.signedSeries[t] === -1 && e.series[t] >= 0 ? -e.series[t] : e.series[t]) || null,
@@ -1260,11 +1270,11 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1260
1270
  label: e.text
1261
1271
  });
1262
1272
  }
1263
- let Mi = g(() => Math.max(...$.value.flatMap((e) => e.series)));
1264
- function Ni(e, t) {
1265
- return z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ? ar.value ? t * 100 >= z.value.style.chart.bars.dataLabels.hideUnderPercentage : !z.value.style.chart.bars.dataLabels.hideEmptyPercentages || t > 0 : ar.value ? (ir.value && mr.value && console.warn("Vue Data UI - VueUiStackbar - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), e > Mi.value * z.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : ir.value ? Math.abs(e) >= z.value.style.chart.bars.dataLabels.hideUnderValue : !z.value.style.chart.bars.dataLabels.hideEmptyValues || e !== 0;
1273
+ let Ni = _(() => Math.max(...$.value.flatMap((e) => e.series)));
1274
+ function Pi(e, t) {
1275
+ return z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ? or.value ? t * 100 >= z.value.style.chart.bars.dataLabels.hideUnderPercentage : !z.value.style.chart.bars.dataLabels.hideEmptyPercentages || t > 0 : or.value ? (ar.value && hr.value && console.warn("Vue Data UI - VueUiStackbar - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), e > Ni.value * z.value.style.chart.bars.dataLabels.hideUnderPercentage / 100) : ar.value ? Math.abs(e) >= z.value.style.chart.bars.dataLabels.hideUnderValue : !z.value.style.chart.bars.dataLabels.hideEmptyValues || e !== 0;
1266
1276
  }
1267
- async function Pi({ scale: e = 2 } = {}) {
1277
+ async function Fi({ scale: e = 2 } = {}) {
1268
1278
  if (!P.value) return;
1269
1279
  let { imageUri: t, base64: n } = await ke({
1270
1280
  domElement: P.value,
@@ -1283,17 +1293,17 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1283
1293
  ...o
1284
1294
  };
1285
1295
  }
1286
- let Fi = g(() => {
1296
+ let Ii = _(() => {
1287
1297
  let e = z.value.table.useDialog && !z.value.table.show, t = H.value.showTable;
1288
1298
  return {
1289
- component: e ? cn : nn,
1299
+ component: e ? ln : rn,
1290
1300
  title: `${z.value.style.chart.title.text}${z.value.style.chart.title.subtitle.text ? `: ${z.value.style.chart.title.subtitle.text}` : ""}`,
1291
1301
  props: e ? {
1292
1302
  backgroundColor: z.value.table.th.backgroundColor,
1293
1303
  color: z.value.table.th.color,
1294
1304
  headerColor: z.value.table.th.color,
1295
1305
  headerBg: z.value.table.th.backgroundColor,
1296
- isFullscreen: Sn.value,
1306
+ isFullscreen: Cn.value,
1297
1307
  fullscreenParent: P.value,
1298
1308
  forcedWidth: Math.min(800, window.innerWidth * .8),
1299
1309
  isCursorPointer: V.value
@@ -1314,51 +1324,51 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1314
1324
  }
1315
1325
  };
1316
1326
  });
1317
- nt(() => H.value.showTable, (e) => {
1318
- z.value.table.show || (e && z.value.table.useDialog && On.value ? On.value.open() : "close" in On.value && On.value.close());
1327
+ rt(() => H.value.showTable, (e) => {
1328
+ z.value.table.show || (e && z.value.table.useDialog && kn.value ? kn.value.open() : "close" in kn.value && kn.value.close());
1319
1329
  });
1320
- function Ii() {
1321
- H.value.showTable = !1, kn.value && kn.value.setTableIconState(!1);
1330
+ function Li() {
1331
+ H.value.showTable = !1, An.value && An.value.setTableIconState(!1);
1322
1332
  }
1323
- let Li = g(() => z.value.style.chart.backgroundColor), Ri = g(() => z.value.style.chart.legend), zi = g(() => z.value.style.chart.title), { isCallbackImaging: Bi, isCallbackSvg: Vi, generateSvg: Hi, onGenerateImage: Ui } = Te({
1324
- svg: er,
1325
- title: zi,
1326
- legend: Ri,
1327
- legendItems: Di,
1328
- backgroundColor: Li,
1333
+ let Ri = _(() => z.value.style.chart.backgroundColor), zi = _(() => z.value.style.chart.legend), Bi = _(() => z.value.style.chart.title), { isCallbackImaging: Vi, isCallbackSvg: Hi, generateSvg: Ui, onGenerateImage: Wi } = Te({
1334
+ svg: tr,
1335
+ title: Bi,
1336
+ legend: zi,
1337
+ legendItems: Oi,
1338
+ backgroundColor: Ri,
1329
1339
  getSvgCallback: () => z.value.userOptions.callbacks.svg,
1330
- generateImage: lr
1340
+ generateImage: ur
1331
1341
  });
1332
- function Wi(e) {
1342
+ function Gi(e) {
1333
1343
  let t = q.value;
1334
1344
  return e > t ? t : e < 0 || e < J.value.start ? z.value.style.chart.zoom.startIndex === null ? 1 : J.value.start + 1 : e;
1335
1345
  }
1336
- let Gi = E(!1), Ki = E(!1);
1337
- function qi() {
1338
- if (!Gi.value) {
1339
- Gi.value = !0;
1346
+ let Ki = E(!1), qi = E(!1);
1347
+ function Ji() {
1348
+ if (!Ki.value) {
1349
+ Ki.value = !0;
1340
1350
  try {
1341
1351
  let { startIndex: e, endIndex: t, keepState: n } = z.value.style.chart.zoom, r = n ? Math.max(0, q.value) : q.value;
1342
1352
  if (n && r <= 0) return;
1343
- let a = e ?? 0, o = t == null ? r : Math.min(Wi(t + 1), r);
1344
- Ji.value = !0, J.value.start = a, J.value.end = o, Y.value.start = a, Y.value.end = o, jr(), Ki.value = !0;
1353
+ let a = e ?? 0, o = t == null ? r : Math.min(Gi(t + 1), r);
1354
+ Yi.value = !0, J.value.start = a, J.value.end = o, Y.value.start = a, Y.value.end = o, Mr(), qi.value = !0;
1345
1355
  } finally {
1346
1356
  queueMicrotask(() => {
1347
- Ji.value = !1;
1348
- }), Gi.value = !1;
1357
+ Yi.value = !1;
1358
+ }), Ki.value = !1;
1349
1359
  }
1350
1360
  }
1351
1361
  }
1352
- let Ji = E(!1);
1353
- function Yi(e) {
1354
- Gi.value || Ji.value || e !== J.value.start && (J.value.start = e, Y.value.start = e, jr());
1355
- }
1362
+ let Yi = E(!1);
1356
1363
  function Xi(e) {
1357
- if (Gi.value || Ji.value) return;
1358
- let t = Wi(e);
1359
- t !== J.value.end && (J.value.end = t, Y.value.end = t, jr());
1364
+ Ki.value || Yi.value || e !== J.value.start && (J.value.start = e, Y.value.start = e, Mr());
1360
1365
  }
1361
- function Zi({ seriesIndex: e, datapoint: t }) {
1366
+ function Zi(e) {
1367
+ if (Ki.value || Yi.value) return;
1368
+ let t = Gi(e);
1369
+ t !== J.value.end && (J.value.end = t, Y.value.end = t, Mr());
1370
+ }
1371
+ function Qi({ seriesIndex: e, datapoint: t }) {
1362
1372
  let n = J.value.start + e;
1363
1373
  N("selectX", {
1364
1374
  dataset: t,
@@ -1366,11 +1376,11 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1366
1376
  indexLabel: z.value.style.chart.grid.x.timeLabels.values[n]
1367
1377
  });
1368
1378
  }
1369
- function Qi() {
1379
+ function $i() {
1370
1380
  return { y0: Z.value?.[0]?.zero ?? G.value.bottom };
1371
1381
  }
1372
- function $i(e) {
1373
- let { y0: t } = Qi(), n = z.value.style.chart.bars.totalValues, r = Math.max(2, n.fontSize * .3 + n.offsetY), a = Infinity, o = !1;
1382
+ function ea(e) {
1383
+ let { y0: t } = $i(), n = z.value.style.chart.bars.totalValues, r = Math.max(2, n.fontSize * .3 + n.offsetY), a = Infinity, o = !1;
1374
1384
  for (let t of $.value || []) {
1375
1385
  let n = t?.series?.[e] ?? 0, r = t?.height?.[e] ?? 0, s = t?.y?.[e];
1376
1386
  n > 0 && r > 0 && Number.isFinite(s) && (o = !0, s < a && (a = s));
@@ -1378,15 +1388,15 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1378
1388
  let s = (o && Number.isFinite(a) ? a : t) - r;
1379
1389
  return Math.min(Math.max(s, 0), G.value.bottom);
1380
1390
  }
1381
- function ea(e) {
1382
- let { x0: t } = Qi(), n = Math.max(2, z.value.style.chart.bars.totalValues.fontSize * .3 + z.value.style.chart.bars.totalValues.offsetX), r = -Infinity, a = !1;
1391
+ function ta(e) {
1392
+ let { x0: t } = $i(), n = Math.max(2, z.value.style.chart.bars.totalValues.fontSize * .3 + z.value.style.chart.bars.totalValues.offsetX), r = -Infinity, a = !1;
1383
1393
  for (let t of $.value || []) {
1384
1394
  let n = t?.series?.[e] ?? 0, o = t?.horizontal_x?.[e], s = t?.horizontal_width?.[e], c = Number.isFinite(s) ? Math.max(0, s) : 0;
1385
1395
  Number.isFinite(o) && n > 0 && c > 0 && (a = !0, r = Math.max(r, o + c));
1386
1396
  }
1387
1397
  return (a && Number.isFinite(r) ? r : t) + n;
1388
1398
  }
1389
- async function ta() {
1399
+ async function na() {
1390
1400
  if (N("copyAlt", {
1391
1401
  config: z.value,
1392
1402
  dataset: $.value
@@ -1399,25 +1409,25 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1399
1409
  dataset: $.value
1400
1410
  }));
1401
1411
  }
1402
- let na = E(!1);
1403
- function ra() {
1404
- R.value = null, na.value = !0;
1405
- }
1412
+ let ra = E(!1);
1406
1413
  function ia() {
1407
- R.value = null, mn.value = !1, L.value = null, N("selectX", {
1414
+ R.value = null, ra.value = !0;
1415
+ }
1416
+ function aa() {
1417
+ R.value = null, hn.value = !1, L.value = null, N("selectX", {
1408
1418
  index: null,
1409
1419
  indexLabel: null,
1410
1420
  dataset: null
1411
- }), na.value = !1;
1421
+ }), ra.value = !1;
1412
1422
  }
1413
- function aa(e) {
1414
- if (!er.value || ki.value || document.activeElement !== er.value || Ir.value || !J.value.end && J.value.end !== 0) return;
1423
+ function oa(e) {
1424
+ if (!tr.value || Ai.value || document.activeElement !== tr.value || Lr.value || !J.value.end && J.value.end !== 0) return;
1415
1425
  let t = z.value.orientation === "vertical", n = z.value.orientation === "horizontal", r = t && e.key === "ArrowLeft" || n && e.key === "ArrowUp", a = t && e.key === "ArrowRight" || n && e.key === "ArrowDown", o = e.key === "Enter" || e.key === " ", s = e.key === "Escape";
1416
1426
  if (!r && !a && !o && !s) return;
1417
1427
  let c = J.value.end - J.value.start;
1418
1428
  if (c <= 0) return;
1419
1429
  if (e.preventDefault(), e.stopPropagation(), s) {
1420
- R.value = null, mn.value = !1, L.value = null, N("selectX", {
1430
+ R.value = null, hn.value = !1, L.value = null, N("selectX", {
1421
1431
  index: null,
1422
1432
  indexLabel: null,
1423
1433
  dataset: null
@@ -1426,60 +1436,60 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1426
1436
  }
1427
1437
  if (o) {
1428
1438
  if (R.value === null) return;
1429
- oi(R.value);
1439
+ si(R.value);
1430
1440
  return;
1431
1441
  }
1432
1442
  let l = R.value, u = L.value;
1433
- l !== null && l >= 0 && l < c ? a ? (l += 1, l >= c && (l = 0)) : r && (--l, l < 0 && (l = c - 1)) : u !== null && u >= 0 && u < c ? (l = a ? u + 1 : u - 1, l >= c && (l = 0), l < 0 && (l = c - 1)) : l = a ? 0 : c - 1, R.value = l, oa(l), di(l, "keyboard");
1443
+ l !== null && l >= 0 && l < c ? a ? (l += 1, l >= c && (l = 0)) : r && (--l, l < 0 && (l = c - 1)) : u !== null && u >= 0 && u < c ? (l = a ? u + 1 : u - 1, l >= c && (l = 0), l < 0 && (l = c - 1)) : l = a ? 0 : c - 1, R.value = l, sa(l), fi(l, "keyboard");
1434
1444
  }
1435
- function oa(e) {
1445
+ function sa(e) {
1436
1446
  if (!Number.isFinite(e)) return;
1437
1447
  let t, n;
1438
1448
  z.value.orientation === "vertical" ? (t = G.value.left + e * X.value + X.value / 2, n = G.value.top + G.value.height / 2) : (t = G.value.left + G.value.width / 2, n = G.value.top + e * X.value + X.value / 2);
1439
- let r = le(t, n, er.value);
1440
- r && (Bn.value = r);
1449
+ let r = ce(t, n, tr.value);
1450
+ r && (Vn.value = r);
1441
1451
  }
1442
- let sa = g(() => ({
1443
- headers: xi.value?.colNames ?? [],
1444
- rows: xi.value?.body ?? []
1452
+ let ca = _(() => ({
1453
+ headers: Si.value?.colNames ?? [],
1454
+ rows: Si.value?.body ?? []
1445
1455
  }));
1446
1456
  return Me({
1447
- getData: vi,
1448
- getImage: Pi,
1449
- generatePdf: cr,
1450
- generateCsv: bi,
1451
- generateImage: lr,
1452
- generateSvg: Hi,
1453
- hideSeries: Ei,
1454
- showSeries: Ti,
1455
- toggleTable: hi,
1456
- toggleLabels: gi,
1457
- toggleTooltip: _i,
1458
- toggleAnnotator: Ai,
1459
- toggleFullscreen: mi,
1460
- copyAlt: ta
1461
- }), (t, r) => (T(), y("div", {
1457
+ getData: yi,
1458
+ getImage: Fi,
1459
+ generatePdf: lr,
1460
+ generateCsv: xi,
1461
+ generateImage: ur,
1462
+ generateSvg: Ui,
1463
+ hideSeries: Di,
1464
+ showSeries: Ei,
1465
+ toggleTable: gi,
1466
+ toggleLabels: _i,
1467
+ toggleTooltip: vi,
1468
+ toggleAnnotator: ji,
1469
+ toggleFullscreen: hi,
1470
+ copyAlt: na
1471
+ }), (t, r) => (T(), b("div", {
1462
1472
  id: `stackbar_${F.value}`,
1463
1473
  ref_key: "stackbarChart",
1464
1474
  ref: P,
1465
1475
  class: S({
1466
1476
  "vue-data-ui-component": !0,
1467
1477
  "vue-ui-stackbar": !0,
1468
- "vue-data-ui-wrapper-fullscreen": Sn.value
1478
+ "vue-data-ui-wrapper-fullscreen": Cn.value
1469
1479
  }),
1470
1480
  style: w(`background:${z.value.style.chart.backgroundColor};color:${z.value.style.chart.color};font-family:${z.value.style.fontFamily}; position: relative; ${z.value.responsive ? "height: 100%" : ""}`),
1471
- onMouseenter: tr,
1472
- onMouseleave: nr
1481
+ onMouseenter: nr,
1482
+ onMouseleave: rr
1473
1483
  }, [
1474
1484
  We("div", {
1475
1485
  id: `chart-instructions-${F.value}`,
1476
1486
  class: "sr-only"
1477
- }, [We("p", null, k(z.value.a11y.translations.keyboardNavigation), 1)], 8, ot),
1478
- sa.value?.rows?.length ? (T(), _(Re, {
1487
+ }, [We("p", null, k(z.value.a11y.translations.keyboardNavigation), 1)], 8, st),
1488
+ ca.value?.rows?.length ? (T(), v(Re, {
1479
1489
  key: 0,
1480
1490
  uid: F.value,
1481
- head: sa.value.headers,
1482
- body: sa.value.rows,
1491
+ head: ca.value.headers,
1492
+ body: ca.value.rows,
1483
1493
  notice: z.value.a11y.translations.tableAvailable,
1484
1494
  caption: z.value.a11y.translations.tableCaption
1485
1495
  }, null, 8, [
@@ -1488,15 +1498,15 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1488
1498
  "body",
1489
1499
  "notice",
1490
1500
  "caption"
1491
- ])) : v("", !0),
1492
- z.value.userOptions.buttons.annotator ? (T(), _(A(an), {
1501
+ ])) : y("", !0),
1502
+ z.value.userOptions.buttons.annotator ? (T(), v(A(on), {
1493
1503
  key: 1,
1494
- svgRef: A(er),
1504
+ svgRef: A(tr),
1495
1505
  backgroundColor: z.value.style.chart.backgroundColor,
1496
1506
  color: z.value.style.chart.color,
1497
- active: ki.value,
1507
+ active: Ai.value,
1498
1508
  isCursorPointer: V.value,
1499
- onClose: Ai
1509
+ onClose: ji
1500
1510
  }, {
1501
1511
  "annotator-action-close": j(() => [O(t.$slots, "annotator-action-close", {}, void 0, !0)]),
1502
1512
  "annotator-action-color": j(({ color: e }) => [O(t.$slots, "annotator-action-color", C(x({ color: e })), void 0, !0)]),
@@ -1511,15 +1521,15 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1511
1521
  "color",
1512
1522
  "active",
1513
1523
  "isCursorPointer"
1514
- ])) : v("", !0),
1524
+ ])) : y("", !0),
1515
1525
  O(t.$slots, "userConfig", {}, void 0, !0),
1516
- z.value.style.chart.title.text ? (T(), y("div", {
1526
+ z.value.style.chart.title.text ? (T(), b("div", {
1517
1527
  key: 2,
1518
1528
  ref_key: "chartTitle",
1519
- ref: vn,
1529
+ ref: yn,
1520
1530
  style: "width:100%;background:transparent;padding-bottom:24px"
1521
- }, [(T(), _(Ae, {
1522
- key: `title_${wn.value}`,
1531
+ }, [(T(), v(Ae, {
1532
+ key: `title_${Tn.value}`,
1523
1533
  config: {
1524
1534
  title: {
1525
1535
  cy: "stackbar-title",
@@ -1530,16 +1540,16 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1530
1540
  ...z.value.style.chart.title.subtitle
1531
1541
  }
1532
1542
  }
1533
- }, null, 8, ["config"]))], 512)) : v("", !0),
1534
- We("div", { id: `legend-top-${F.value}` }, null, 8, st),
1535
- z.value.userOptions.show && pn.value && (A($n) || A(Zn)) ? (T(), _(A(on), {
1543
+ }, null, 8, ["config"]))], 512)) : y("", !0),
1544
+ We("div", { id: `legend-top-${F.value}` }, null, 8, ct),
1545
+ z.value.userOptions.show && mn.value && (A(er) || A(Qn)) ? (T(), v(A(sn), {
1536
1546
  ref_key: "userOptionsRef",
1537
- ref: kn,
1538
- key: `user_option_${_n.value}`,
1547
+ ref: An,
1548
+ key: `user_option_${vn.value}`,
1539
1549
  backgroundColor: z.value.style.chart.backgroundColor,
1540
1550
  color: z.value.style.chart.color,
1541
- isPrinting: A(or),
1542
- isImaging: A(sr),
1551
+ isPrinting: A(sr),
1552
+ isImaging: A(cr),
1543
1553
  uid: F.value,
1544
1554
  hasTooltip: z.value.style.chart.tooltip.show && z.value.userOptions.buttons.tooltip,
1545
1555
  hasPdf: z.value.userOptions.buttons.pdf,
@@ -1550,28 +1560,28 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1550
1560
  hasLabel: z.value.userOptions.buttons.labels,
1551
1561
  hasFullscreen: z.value.userOptions.buttons.fullscreen,
1552
1562
  hasAltCopy: z.value.userOptions.buttons.altCopy,
1553
- isFullscreen: Sn.value,
1563
+ isFullscreen: Cn.value,
1554
1564
  chartElement: P.value,
1555
1565
  position: z.value.userOptions.position,
1556
1566
  isTooltip: H.value.showTooltip,
1557
1567
  titles: { ...z.value.userOptions.buttonTitles },
1558
1568
  hasAnnotator: z.value.userOptions.buttons.annotator,
1559
- isAnnotation: ki.value,
1569
+ isAnnotation: Ai.value,
1560
1570
  callbacks: z.value.userOptions.callbacks,
1561
1571
  printScale: z.value.userOptions.print.scale,
1562
1572
  tableDialog: z.value.table.useDialog,
1563
1573
  isCursorPointer: V.value,
1564
- onToggleFullscreen: mi,
1565
- onGeneratePdf: A(cr),
1566
- onGenerateCsv: bi,
1567
- onGenerateImage: A(Ui),
1568
- onGenerateSvg: A(Hi),
1569
- onToggleTable: hi,
1570
- onToggleLabels: gi,
1571
- onToggleTooltip: _i,
1572
- onToggleAnnotator: Ai,
1573
- onCopyAlt: ta,
1574
- style: w({ visibility: A($n) ? A(Zn) ? "visible" : "hidden" : "visible" })
1574
+ onToggleFullscreen: hi,
1575
+ onGeneratePdf: A(lr),
1576
+ onGenerateCsv: xi,
1577
+ onGenerateImage: A(Wi),
1578
+ onGenerateSvg: A(Ui),
1579
+ onToggleTable: gi,
1580
+ onToggleLabels: _i,
1581
+ onToggleTooltip: vi,
1582
+ onToggleAnnotator: ji,
1583
+ onCopyAlt: na,
1584
+ style: w({ visibility: A(er) ? A(Qn) ? "visible" : "hidden" : "visible" })
1575
1585
  }, Ge({ _: 2 }, [
1576
1586
  t.$slots.menuIcon ? {
1577
1587
  name: "menuIcon",
@@ -1647,35 +1657,35 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1647
1657
  fn: j(() => [O(t.$slots, "custom-menu-after", {}, void 0, !0)]),
1648
1658
  key: "12"
1649
1659
  } : void 0
1650
- ]), 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.onGenerateImage.onGenerateSvg.style".split("."))) : v("", !0),
1651
- We("div", ct, [(T(), y("svg", {
1660
+ ]), 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.onGenerateImage.onGenerateSvg.style".split("."))) : y("", !0),
1661
+ We("div", lt, [(T(), b("svg", {
1652
1662
  ref_key: "svgRef",
1653
- ref: er,
1654
- xmlns: A(de),
1663
+ ref: tr,
1664
+ xmlns: A(ue),
1655
1665
  "aria-describedby": `chart-instructions-${F.value}`,
1656
1666
  viewBox: `0 0 ${G.value.chartWidth <= 0 ? 10 : G.value.chartWidth} ${G.value.chartHeight <= 0 ? 10 : G.value.chartHeight}`,
1657
1667
  class: S({
1658
- "vue-data-ui-loading": A(Jn),
1659
- "vue-data-ui-fullscreen--on": Sn.value,
1660
- "vue-data-ui-fulscreen--off": !Sn.value,
1668
+ "vue-data-ui-loading": A(Yn),
1669
+ "vue-data-ui-fullscreen--on": Cn.value,
1670
+ "vue-data-ui-fulscreen--off": !Cn.value,
1661
1671
  "vue-data-ui-no-transition": !A(B)
1662
1672
  }),
1663
1673
  style: w(`max-width:100%;overflow:visible;background:transparent;color:${z.value.style.chart.color}`),
1664
1674
  tabindex: "0",
1665
- onFocus: ra,
1666
- onBlur: ia,
1667
- onKeydown: aa
1675
+ onFocus: ia,
1676
+ onBlur: aa,
1677
+ onKeydown: oa
1668
1678
  }, [
1669
- qe(A(sn)),
1670
- t.$slots["chart-background"] ? (T(), y("foreignObject", {
1679
+ qe(A(cn)),
1680
+ t.$slots["chart-background"] ? (T(), b("foreignObject", {
1671
1681
  key: 0,
1672
1682
  x: G.value.left,
1673
1683
  y: G.value.top,
1674
1684
  width: G.value.width <= 0 ? 10 : G.value.width,
1675
1685
  height: G.value.height <= 0 ? 10 : G.value.height,
1676
1686
  style: { pointerEvents: "none" }
1677
- }, [O(t.$slots, "chart-background", {}, void 0, !0)], 8, ut)) : v("", !0),
1678
- z.value.style.chart.bars.gradient.show ? (T(), y("defs", dt, [(T(!0), y(h, null, D($.value, (e, t) => (T(), _(Fe, {
1687
+ }, [O(t.$slots, "chart-background", {}, void 0, !0)], 8, dt)) : y("", !0),
1688
+ z.value.style.chart.bars.gradient.show ? (T(), b("defs", ft, [(T(!0), b(g, null, D($.value, (e, t) => (T(), v(Fe, {
1679
1689
  t: "linear",
1680
1690
  id: `gradient_${e.id}`,
1681
1691
  key: `gradient_${e.id}_${t}`,
@@ -1700,8 +1710,8 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1700
1710
  1
1701
1711
  ]
1702
1712
  ]
1703
- }, null, 8, ["id", "stops"]))), 128))])) : v("", !0),
1704
- z.value.style.chart.grid.frame.show ? (T(), y("rect", {
1713
+ }, null, 8, ["id", "stops"]))), 128))])) : y("", !0),
1714
+ z.value.style.chart.grid.frame.show ? (T(), b("rect", {
1705
1715
  key: 2,
1706
1716
  style: {
1707
1717
  pointerEvents: "none",
@@ -1718,8 +1728,8 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1718
1728
  "stroke-linecap": z.value.style.chart.grid.frame.strokeLinecap,
1719
1729
  "stroke-linejoin": z.value.style.chart.grid.frame.strokeLinejoin,
1720
1730
  "stroke-dasharray": z.value.style.chart.grid.frame.strokeDasharray
1721
- }, null, 8, ft)) : v("", !0),
1722
- z.value.style.chart.grid.x.showHorizontalLines && z.value.orientation === "vertical" ? (T(!0), y(h, { key: 3 }, D(Z.value, (e, t) => (T(), y("line", {
1731
+ }, null, 8, pt)) : y("", !0),
1732
+ z.value.style.chart.grid.x.showHorizontalLines && z.value.orientation === "vertical" ? (T(!0), b(g, { key: 3 }, D(Z.value, (e, t) => (T(), b("line", {
1723
1733
  x1: G.value.left,
1724
1734
  x2: G.value.right,
1725
1735
  y1: e.y,
@@ -1728,8 +1738,8 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1728
1738
  "stroke-width": z.value.style.chart.grid.x.linesThickness,
1729
1739
  "stroke-dasharray": z.value.style.chart.grid.x.linesStrokeDasharray,
1730
1740
  "stroke-linecap": "round"
1731
- }, null, 8, pt))), 256)) : v("", !0),
1732
- z.value.style.chart.grid.x.showHorizontalLines && z.value.orientation === "horizontal" ? (T(!0), y(h, { key: 4 }, D(J.value.end - J.value.start + 1, (e, t) => (T(), y("line", {
1741
+ }, null, 8, mt))), 256)) : y("", !0),
1742
+ z.value.style.chart.grid.x.showHorizontalLines && z.value.orientation === "horizontal" ? (T(!0), b(g, { key: 4 }, D(J.value.end - J.value.start + 1, (e, t) => (T(), b("line", {
1733
1743
  x1: G.value.left,
1734
1744
  x2: G.value.right,
1735
1745
  y1: G.value.top + X.value * t,
@@ -1738,8 +1748,8 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1738
1748
  "stroke-width": z.value.style.chart.grid.x.linesThickness,
1739
1749
  "stroke-dasharray": z.value.style.chart.grid.x.linesStrokeDasharray,
1740
1750
  "stroke-linecap": "round"
1741
- }, null, 8, mt))), 256)) : v("", !0),
1742
- z.value.style.chart.grid.y.showVerticalLines && z.value.orientation === "vertical" ? (T(!0), y(h, { key: 5 }, D(J.value.end - J.value.start + 1, (e, t) => (T(), y("line", {
1751
+ }, null, 8, ht))), 256)) : y("", !0),
1752
+ z.value.style.chart.grid.y.showVerticalLines && z.value.orientation === "vertical" ? (T(!0), b(g, { key: 5 }, D(J.value.end - J.value.start + 1, (e, t) => (T(), b("line", {
1743
1753
  x1: G.value.left + X.value * t,
1744
1754
  x2: G.value.left + X.value * t,
1745
1755
  y1: G.value.top,
@@ -1748,8 +1758,8 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1748
1758
  "stroke-width": z.value.style.chart.grid.y.linesThickness,
1749
1759
  "stroke-dasharray": z.value.style.chart.grid.y.linesStrokeDasharray,
1750
1760
  "stroke-linecap": "round"
1751
- }, null, 8, ht))), 256)) : v("", !0),
1752
- z.value.style.chart.grid.y.showVerticalLines && z.value.orientation === "horizontal" ? (T(!0), y(h, { key: 6 }, D(Z.value, (e, t) => (T(), y("line", {
1761
+ }, null, 8, gt))), 256)) : y("", !0),
1762
+ z.value.style.chart.grid.y.showVerticalLines && z.value.orientation === "horizontal" ? (T(!0), b(g, { key: 6 }, D(Z.value, (e, t) => (T(), b("line", {
1753
1763
  x1: e.horizontal_x,
1754
1764
  x2: e.horizontal_x,
1755
1765
  y1: G.value.top,
@@ -1758,14 +1768,14 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1758
1768
  "stroke-width": z.value.style.chart.grid.y.linesThickness,
1759
1769
  "stroke-dasharray": z.value.style.chart.grid.y.linesStrokeDasharray,
1760
1770
  "stroke-linecap": "round"
1761
- }, null, 8, gt))), 256)) : v("", !0),
1762
- (T(!0), y(h, null, D($.value, (e, n) => (T(), y("g", { key: `stackbar-group-${e.datasetKey}-${n}-${F.value}` }, [t.$slots.pattern ? (T(), y("defs", _t, [O(t.$slots, "pattern", Je({ ref_for: !0 }, {
1771
+ }, null, 8, _t))), 256)) : y("", !0),
1772
+ (T(!0), b(g, null, D($.value, (e, n) => (T(), b("g", { key: `stackbar-group-${e.datasetKey}-${n}-${F.value}` }, [t.$slots.pattern ? (T(), b("defs", vt, [O(t.$slots, "pattern", Ye({ ref_for: !0 }, {
1763
1773
  seriesIndex: e.absoluteIndex,
1764
1774
  patternId: `pattern_${F.value}_${e.absoluteIndex}`
1765
- }), void 0, !0)])) : v("", !0), z.value.orientation === "vertical" ? (T(), y(h, { key: 1 }, [(T(!0), y(h, null, D(e.x, (t, n) => (T(), y("rect", {
1775
+ }), void 0, !0)])) : y("", !0), z.value.orientation === "vertical" ? (T(), b(g, { key: 1 }, [(T(!0), b(g, null, D(e.x, (t, n) => (T(), b("rect", {
1766
1776
  key: `stackbar-rect-${e.rectKeys[n]}`,
1767
1777
  x: t,
1768
- y: A(m)(e.y[n]),
1778
+ y: A(h)(e.y[n]),
1769
1779
  height: e.height[n] < 0 ? 1e-4 : e.height[n] || 0,
1770
1780
  rx: z.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : z.value.style.chart.bars.borderRadius,
1771
1781
  width: X.value * (1 - z.value.style.chart.bars.gapRatio / 2),
@@ -1774,11 +1784,11 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1774
1784
  "stroke-width": z.value.style.chart.bars.strokeWidth,
1775
1785
  "stroke-linecap": "round",
1776
1786
  "stroke-linejoin": "round",
1777
- class: S({ "vue-data-ui-bar-transition": Cn.value })
1778
- }, null, 10, vt))), 128)), t.$slots.pattern ? (T(), y("g", yt, [(T(!0), y(h, null, D(e.x, (t, n) => (T(), y("rect", {
1787
+ class: S({ "vue-data-ui-bar-transition": wn.value })
1788
+ }, null, 10, yt))), 128)), t.$slots.pattern ? (T(), b("g", bt, [(T(!0), b(g, null, D(e.x, (t, n) => (T(), b("rect", {
1779
1789
  key: `stackbar-pattern-rect-${e.rectKeys[n]}`,
1780
1790
  x: t,
1781
- y: A(m)(e.y[n]),
1791
+ y: A(h)(e.y[n]),
1782
1792
  height: e.height[n] < 0 ? 1e-4 : e.height[n] || 0,
1783
1793
  rx: z.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : z.value.style.chart.bars.borderRadius,
1784
1794
  width: X.value * (1 - z.value.style.chart.bars.gapRatio / 2),
@@ -1787,12 +1797,12 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1787
1797
  "stroke-width": z.value.style.chart.bars.strokeWidth,
1788
1798
  "stroke-linecap": "round",
1789
1799
  "stroke-linejoin": "round",
1790
- class: S({ "vue-data-ui-bar-transition": Cn.value })
1791
- }, null, 10, bt))), 128))])) : v("", !0)], 64)) : (T(), y(h, { key: 2 }, [(T(!0), y(h, null, D(e.horizontal_x, (t, n) => (T(), y("rect", {
1800
+ class: S({ "vue-data-ui-bar-transition": wn.value })
1801
+ }, null, 10, xt))), 128))])) : y("", !0)], 64)) : (T(), b(g, { key: 2 }, [(T(!0), b(g, null, D(e.horizontal_x, (t, n) => (T(), b("rect", {
1792
1802
  key: `stackbar-rect-${e.rectKeys[n]}`,
1793
- x: A(m)(t, G.value.left),
1803
+ x: A(h)(t, G.value.left),
1794
1804
  y: e.horizontal_y[n] < 0 ? 0 : e.horizontal_y[n],
1795
- width: A(m)(e.horizontal_width[n] < 0 ? 1e-4 : e.horizontal_width[n]),
1805
+ width: A(h)(e.horizontal_width[n] < 0 ? 1e-4 : e.horizontal_width[n]),
1796
1806
  rx: z.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : z.value.style.chart.bars.borderRadius,
1797
1807
  height: X.value * (1 - z.value.style.chart.bars.gapRatio / 2),
1798
1808
  fill: z.value.style.chart.bars.gradient.show ? `url(#gradient_${e.id})` : e.color,
@@ -1800,12 +1810,12 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1800
1810
  "stroke-width": z.value.style.chart.bars.strokeWidth,
1801
1811
  "stroke-linecap": "round",
1802
1812
  "stroke-linejoin": "round",
1803
- class: S({ "vue-data-ui-bar-transition": Cn.value })
1804
- }, null, 10, xt))), 128)), t.$slots.pattern ? (T(), y("g", St, [(T(!0), y(h, null, D(e.horizontal_x, (t, n) => (T(), y("rect", {
1813
+ class: S({ "vue-data-ui-bar-transition": wn.value })
1814
+ }, null, 10, St))), 128)), t.$slots.pattern ? (T(), b("g", Ct, [(T(!0), b(g, null, D(e.horizontal_x, (t, n) => (T(), b("rect", {
1805
1815
  key: `stackbar-pattern-rect-${e.rectKeys[n]}`,
1806
- x: A(m)(t, G.value.left),
1816
+ x: A(h)(t, G.value.left),
1807
1817
  y: e.horizontal_y[n] < 0 ? 0 : e.horizontal_y[n],
1808
- width: A(m)(e.horizontal_width[n] < 0 ? 1e-4 : e.horizontal_width[n]),
1818
+ width: A(h)(e.horizontal_width[n] < 0 ? 1e-4 : e.horizontal_width[n]),
1809
1819
  rx: z.value.style.chart.bars.borderRadius > e.height[n] / 2 ? (e.height[n] < 0 ? 0 : e.height[n]) / 2 : z.value.style.chart.bars.borderRadius,
1810
1820
  height: X.value * (1 - z.value.style.chart.bars.gapRatio / 2),
1811
1821
  fill: `url(#pattern_${F.value}_${e.absoluteIndex})`,
@@ -1813,9 +1823,9 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1813
1823
  "stroke-width": z.value.style.chart.bars.strokeWidth,
1814
1824
  "stroke-linecap": "round",
1815
1825
  "stroke-linejoin": "round",
1816
- class: S({ "vue-data-ui-bar-transition": Cn.value })
1817
- }, null, 10, Ct))), 128))])) : v("", !0)], 64))]))), 128)),
1818
- z.value.style.chart.grid.x.showAxis ? (T(), y("line", {
1826
+ class: S({ "vue-data-ui-bar-transition": wn.value })
1827
+ }, null, 10, wt))), 128))])) : y("", !0)], 64))]))), 128)),
1828
+ z.value.style.chart.grid.x.showAxis ? (T(), b("line", {
1819
1829
  key: 7,
1820
1830
  x1: G.value.left,
1821
1831
  x2: G.value.right,
@@ -1825,8 +1835,8 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1825
1835
  "stroke-width": z.value.style.chart.grid.x.axisThickness,
1826
1836
  "stroke-linecap": "round",
1827
1837
  "stroke-linejoin": "round"
1828
- }, null, 8, wt)) : v("", !0),
1829
- z.value.style.chart.grid.y.showAxis && !z.value.style.chart.bars.distributed ? (T(), y("line", {
1838
+ }, null, 8, Tt)) : y("", !0),
1839
+ z.value.style.chart.grid.y.showAxis && !z.value.style.chart.bars.distributed ? (T(), b("line", {
1830
1840
  key: 8,
1831
1841
  x1: W.value ? G.value.right : G.value.left,
1832
1842
  x2: W.value ? G.value.right : G.value.left,
@@ -1836,82 +1846,82 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1836
1846
  "stroke-width": z.value.style.chart.grid.y.axisThickness,
1837
1847
  "stroke-linecap": "round",
1838
1848
  "stroke-linejoin": "round"
1839
- }, null, 8, Tt)) : v("", !0),
1840
- z.value.style.chart.grid.x.axisName.show && z.value.style.chart.grid.x.axisName.text ? (T(), y("text", {
1849
+ }, null, 8, Et)) : y("", !0),
1850
+ z.value.style.chart.grid.x.axisName.show && z.value.style.chart.grid.x.axisName.text ? (T(), b("text", {
1841
1851
  key: 9,
1842
1852
  ref_key: "xAxisLabel",
1843
- ref: An,
1853
+ ref: jn,
1844
1854
  x: G.value.left + G.value.width / 2,
1845
1855
  y: G.value.chartHeight - 3,
1846
1856
  "font-size": z.value.style.chart.grid.x.axisName.fontSize,
1847
1857
  fill: z.value.style.chart.grid.x.axisName.color,
1848
1858
  "font-weight": z.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
1849
1859
  "text-anchor": "middle"
1850
- }, k(z.value.style.chart.grid.x.axisName.text), 9, Et)) : v("", !0),
1851
- z.value.style.chart.grid.y.axisName.show && z.value.style.chart.grid.y.axisName.text ? (T(), y("text", {
1860
+ }, k(z.value.style.chart.grid.x.axisName.text), 9, Dt)) : y("", !0),
1861
+ z.value.style.chart.grid.y.axisName.show && z.value.style.chart.grid.y.axisName.text ? (T(), b("text", {
1852
1862
  key: 10,
1853
1863
  ref_key: "yAxisLabel",
1854
- ref: jn,
1864
+ ref: Mn,
1855
1865
  transform: `translate(${W.value ? U.value.width - z.value.style.chart.grid.y.axisName.fontSize / 2 - z.value.style.chart.grid.y.axisName.offsetX : z.value.style.chart.grid.y.axisName.fontSize + z.value.style.chart.grid.y.axisName.offsetX}, ${G.value.top + G.value.height / 2}) rotate(-90)`,
1856
1866
  "font-size": z.value.style.chart.grid.y.axisName.fontSize,
1857
1867
  fill: z.value.style.chart.grid.y.axisName.color,
1858
1868
  "font-weight": z.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
1859
1869
  "text-anchor": "middle"
1860
- }, k(z.value.style.chart.grid.y.axisName.text), 9, Dt)) : v("", !0),
1861
- H.value.dataLabels.show && z.value.orientation === "vertical" ? (T(), y(h, { key: 11 }, [(T(!0), y(h, null, D($.value, (e, t) => (T(), y("g", { key: `dp_${e.id}` }, [(T(!0), y(h, null, D(e.x, (n, r) => (T(), y(h, { key: `rect_${e.id}_${J.value.start + r}` }, [Ni(e.series[r], e.proportions[r]) ? (T(), y("text", {
1870
+ }, k(z.value.style.chart.grid.y.axisName.text), 9, Ot)) : y("", !0),
1871
+ H.value.dataLabels.show && z.value.orientation === "vertical" ? (T(), b(g, { key: 11 }, [(T(!0), b(g, null, D($.value, (e, t) => (T(), b("g", { key: `dp_${e.id}` }, [(T(!0), b(g, null, D(e.x, (n, r) => (T(), b(g, { key: `rect_${e.id}_${J.value.start + r}` }, [Pi(e.series[r], e.proportions[r]) ? (T(), b("text", {
1862
1872
  key: 0,
1863
1873
  class: S({ "vue-data-ui-transition": A(B) }),
1864
1874
  transform: `translate(${n + X.value * (1 - z.value.style.chart.bars.gapRatio / 2) / 2}, ${e.y[r] + e.height[r] / 2 + z.value.style.chart.bars.dataLabels.fontSize / 3})`,
1865
1875
  "font-size": z.value.style.chart.bars.dataLabels.fontSize,
1866
- fill: z.value.style.chart.bars.dataLabels.adaptColorToBackground ? A(ue)(e.color) : z.value.style.chart.bars.dataLabels.color,
1876
+ fill: z.value.style.chart.bars.dataLabels.adaptColorToBackground ? A(le)(e.color) : z.value.style.chart.bars.dataLabels.color,
1867
1877
  "font-weight": z.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
1868
1878
  "text-anchor": "middle"
1869
- }, k(z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ? ai(e.proportions[r] * 100, e, t, r) : ii(e.series[r], e, t, r, e.signedSeries[r])), 11, Ot)) : v("", !0)], 64))), 128))]))), 128)), z.value.style.chart.bars.totalValues.show && $.value.length > 1 ? (T(), y("g", {
1879
+ }, k(z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ? oi(e.proportions[r] * 100, e, t, r) : ai(e.series[r], e, t, r, e.signedSeries[r])), 11, kt)) : y("", !0)], 64))), 128))]))), 128)), z.value.style.chart.bars.totalValues.show && $.value.length > 1 ? (T(), b("g", {
1870
1880
  key: 0,
1871
1881
  ref_key: "sumTop",
1872
- ref: Pn
1873
- }, [(T(!0), y(h, null, D(ri.value, (e, t) => (T(), y(h, { key: `tl_${t + J.value.start}` }, [!z.value.style.chart.bars.dataLabels.hideEmptyValues || e.value !== 0 ? (T(), y("text", {
1882
+ ref: Fn
1883
+ }, [(T(!0), b(g, null, D(ii.value, (e, t) => (T(), b(g, { key: `tl_${t + J.value.start}` }, [!z.value.style.chart.bars.dataLabels.hideEmptyValues || e.value !== 0 ? (T(), b("text", {
1874
1884
  key: 0,
1875
1885
  class: S({ "vue-data-ui-transition": A(B) }),
1876
- transform: `translate(${G.value.left + X.value * t + X.value / 2}, ${$i(t)})`,
1886
+ transform: `translate(${G.value.left + X.value * t + X.value / 2}, ${ea(t)})`,
1877
1887
  "text-anchor": "middle",
1878
1888
  "font-size": z.value.style.chart.bars.totalValues.fontSize,
1879
1889
  "font-weight": z.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
1880
1890
  fill: z.value.style.chart.bars.totalValues.color
1881
- }, k(ii(e.value, e, t, e.sign)), 11, kt)) : v("", !0)], 64))), 128))], 512)) : v("", !0)], 64)) : v("", !0),
1882
- H.value.dataLabels.show && z.value.orientation === "horizontal" ? (T(), y(h, { key: 12 }, [(T(!0), y(h, null, D($.value, (e, t) => (T(), y("g", null, [(T(!0), y(h, null, D(e.horizontal_x, (n, r) => (T(), y(h, null, [Ni(e.series[r], e.proportions[r]) ? (T(), y("text", {
1891
+ }, k(ai(e.value, e, t, e.sign)), 11, At)) : y("", !0)], 64))), 128))], 512)) : y("", !0)], 64)) : y("", !0),
1892
+ H.value.dataLabels.show && z.value.orientation === "horizontal" ? (T(), b(g, { key: 12 }, [(T(!0), b(g, null, D($.value, (e, t) => (T(), b("g", null, [(T(!0), b(g, null, D(e.horizontal_x, (n, r) => (T(), b(g, null, [Pi(e.series[r], e.proportions[r]) ? (T(), b("text", {
1883
1893
  key: 0,
1884
1894
  class: S({ "vue-data-ui-transition": A(B) }),
1885
1895
  transform: `translate(${n + (e.horizontal_width[r] < 0 ? 1e-4 : e.horizontal_width[r]) / 2}, ${e.horizontal_y[r] + X.value * (1 - z.value.style.chart.bars.gapRatio / 2) / 2 + z.value.style.chart.bars.dataLabels.fontSize / 3})`,
1886
1896
  "font-size": z.value.style.chart.bars.dataLabels.fontSize,
1887
- fill: z.value.style.chart.bars.dataLabels.adaptColorToBackground ? A(ue)(e.color) : z.value.style.chart.bars.dataLabels.color,
1897
+ fill: z.value.style.chart.bars.dataLabels.adaptColorToBackground ? A(le)(e.color) : z.value.style.chart.bars.dataLabels.color,
1888
1898
  "font-weight": z.value.style.chart.bars.dataLabels.bold ? "bold" : "normal",
1889
1899
  "text-anchor": "middle"
1890
- }, k(z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ? ai(e.proportions[r] * 100, e, t, r) : ii(e.series[r], e, t, r, e.signedSeries[r])), 11, At)) : v("", !0)], 64))), 256))]))), 256)), z.value.style.chart.bars.totalValues.show && $.value.length > 1 ? (T(), y("g", {
1900
+ }, k(z.value.style.chart.bars.showDistributedPercentage && z.value.style.chart.bars.distributed ? oi(e.proportions[r] * 100, e, t, r) : ai(e.series[r], e, t, r, e.signedSeries[r])), 11, jt)) : y("", !0)], 64))), 256))]))), 256)), z.value.style.chart.bars.totalValues.show && $.value.length > 1 ? (T(), b("g", {
1891
1901
  key: 0,
1892
1902
  ref_key: "sumRight",
1893
- ref: Fn
1894
- }, [(T(!0), y(h, null, D(ri.value, (e, t) => (T(), y(h, null, [!z.value.style.chart.bars.dataLabels.hideEmptyValues || e.value !== 0 ? (T(), y("text", {
1903
+ ref: In
1904
+ }, [(T(!0), b(g, null, D(ii.value, (e, t) => (T(), b(g, null, [!z.value.style.chart.bars.dataLabels.hideEmptyValues || e.value !== 0 ? (T(), b("text", {
1895
1905
  key: 0,
1896
1906
  class: S({ "vue-data-ui-transition": A(B) }),
1897
- transform: `translate(${ea(t)}, ${G.value.top + X.value * t + X.value / 2 + z.value.style.chart.bars.totalValues.fontSize / 3})`,
1907
+ transform: `translate(${ta(t)}, ${G.value.top + X.value * t + X.value / 2 + z.value.style.chart.bars.totalValues.fontSize / 3})`,
1898
1908
  "text-anchor": "start",
1899
1909
  "font-size": z.value.style.chart.bars.totalValues.fontSize,
1900
1910
  "font-weight": z.value.style.chart.bars.totalValues.bold ? "bold" : "normal",
1901
1911
  fill: z.value.style.chart.bars.totalValues.color
1902
- }, k(ii(e.value, e, t, e.sign)), 11, jt)) : v("", !0)], 64))), 256))], 512)) : v("", !0)], 64)) : v("", !0),
1903
- z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.bars.distributed && z.value.orientation === "vertical" ? (T(), y("g", {
1912
+ }, k(ai(e.value, e, t, e.sign)), 11, Mt)) : y("", !0)], 64))), 256))], 512)) : y("", !0)], 64)) : y("", !0),
1913
+ z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.bars.distributed && z.value.orientation === "vertical" ? (T(), b("g", {
1904
1914
  key: 13,
1905
1915
  ref_key: "scaleLabels",
1906
- ref: Mn
1907
- }, [(T(!0), y(h, null, D(Z.value, (e, t) => (T(), y("path", {
1916
+ ref: Nn
1917
+ }, [(T(!0), b(g, null, D(Z.value, (e, t) => (T(), b("path", {
1908
1918
  key: `ty_${t}`,
1909
1919
  stroke: z.value.style.chart.grid.x.axisColor,
1910
1920
  class: S({ "vue-data-ui-transition": A(B) }),
1911
1921
  d: `M${W.value ? G.value.right : G.value.left},${e.y} ${W.value ? G.value.right + 6 : G.value.left - 6},${e.y}`,
1912
1922
  "stroke-width": 1,
1913
1923
  "stroke-linecap": "round"
1914
- }, null, 10, Mt))), 128)), (T(!0), y(h, null, D(Z.value, (e, t) => (T(), y("text", {
1924
+ }, null, 10, Nt))), 128)), (T(!0), b(g, null, D(Z.value, (e, t) => (T(), b("text", {
1915
1925
  class: S({ "vue-data-ui-transition": A(B) }),
1916
1926
  key: `tl_${t}`,
1917
1927
  transform: `translate(${e.x}, ${e.y + z.value.style.chart.grid.y.axisLabels.fontSize / 3})`,
@@ -1919,24 +1929,24 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1919
1929
  "font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
1920
1930
  fill: z.value.style.chart.grid.y.axisLabels.color,
1921
1931
  "text-anchor": W.value ? "start" : "end"
1922
- }, k(A(ie)(z.value.style.chart.grid.y.axisLabels.formatter, e.value, A(p)({
1932
+ }, k(A(m)(z.value.style.chart.grid.y.axisLabels.formatter, e.value, A(p)({
1923
1933
  p: z.value.style.chart.bars.dataLabels.prefix,
1924
1934
  v: e.value,
1925
1935
  s: z.value.style.chart.bars.dataLabels.suffix,
1926
1936
  r: z.value.style.chart.grid.y.axisLabels.rounding
1927
- }), { datapoint: e })), 11, Nt))), 128))], 512)) : v("", !0),
1928
- z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.bars.distributed && z.value.orientation === "horizontal" ? (T(), y("g", {
1937
+ }), { datapoint: e })), 11, Pt))), 128))], 512)) : y("", !0),
1938
+ z.value.style.chart.grid.y.axisLabels.show && !z.value.style.chart.bars.distributed && z.value.orientation === "horizontal" ? (T(), b("g", {
1929
1939
  key: 14,
1930
1940
  ref_key: "scaleLabels",
1931
- ref: Mn
1932
- }, [(T(!0), y(h, null, D(Z.value, (e, t) => (T(), y("path", {
1941
+ ref: Nn
1942
+ }, [(T(!0), b(g, null, D(Z.value, (e, t) => (T(), b("path", {
1933
1943
  key: `scy_${t}`,
1934
1944
  d: `M${e.horizontal_x},${G.value.bottom} ${e.horizontal_x},${G.value.bottom + 6}`,
1935
1945
  class: S({ "vue-data-ui-transition": A(B) }),
1936
1946
  stroke: z.value.style.chart.grid.x.axisColor,
1937
1947
  "stroke-width": 1,
1938
1948
  "stroke-linecap": "round"
1939
- }, null, 10, Pt))), 128)), (T(!0), y(h, null, D(Z.value, (e, t) => (T(), y("text", {
1949
+ }, null, 10, Ft))), 128)), (T(!0), b(g, null, D(Z.value, (e, t) => (T(), b("text", {
1940
1950
  class: S(["vue-data-ui-time-label", { "vue-data-ui-transition": A(B) }]),
1941
1951
  key: `tly_${t}`,
1942
1952
  "font-size": z.value.style.chart.grid.x.timeLabels.fontSize,
@@ -1944,17 +1954,17 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1944
1954
  fill: z.value.style.chart.grid.y.axisLabels.color,
1945
1955
  "text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1946
1956
  transform: `translate(${e.horizontal_x}, ${G.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`
1947
- }, k(A(ie)(z.value.style.chart.grid.y.axisLabels.formatter, e.value, A(p)({
1957
+ }, k(A(m)(z.value.style.chart.grid.y.axisLabels.formatter, e.value, A(p)({
1948
1958
  p: z.value.style.chart.bars.dataLabels.prefix,
1949
1959
  v: e.value,
1950
1960
  s: z.value.style.chart.bars.dataLabels.suffix,
1951
1961
  r: z.value.style.chart.grid.y.axisLabels.rounding
1952
- }), { datapoint: e })), 11, Ft))), 128))], 512)) : v("", !0),
1953
- z.value.style.chart.grid.x.timeLabels.show && z.value.orientation === "vertical" ? (T(), y("g", {
1962
+ }), { datapoint: e })), 11, It))), 128))], 512)) : y("", !0),
1963
+ z.value.style.chart.grid.x.timeLabels.show && z.value.orientation === "vertical" ? (T(), b("g", {
1954
1964
  key: 15,
1955
1965
  ref_key: "timeLabelsEls",
1956
- ref: Nn
1957
- }, [t.$slots["time-label"] ? (T(), y("g", It, [(T(!0), y(h, null, D(Jr.value, (e, n) => (T(), y("g", null, [O(t.$slots, "time-label", Je({ ref_for: !0 }, {
1966
+ ref: Pn
1967
+ }, [t.$slots["time-label"] ? (T(), b("g", Lt, [(T(!0), b(g, null, D(Yr.value, (e, n) => (T(), b("g", null, [O(t.$slots, "time-label", Ye({ ref_for: !0 }, {
1958
1968
  x: G.value.left + X.value * n + X.value / 2,
1959
1969
  y: G.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY,
1960
1970
  fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
@@ -1964,7 +1974,7 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1964
1974
  content: e.text,
1965
1975
  textAnchor: z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
1966
1976
  show: !0
1967
- }), void 0, !0)]))), 256))])) : (T(), y("g", Lt, [(T(!0), y(h, null, D(Jr.value, (e, t) => (T(), y("g", null, [String(e.text).includes("\n") ? (T(), y("text", {
1977
+ }), void 0, !0)]))), 256))])) : (T(), b("g", Rt, [(T(!0), b(g, null, D(Yr.value, (e, t) => (T(), b("g", null, [String(e.text).includes("\n") ? (T(), b("text", {
1968
1978
  class: S({ "vue-data-ui-transition": A(B) }),
1969
1979
  key: t + "-multi",
1970
1980
  "text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
@@ -1985,8 +1995,8 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1985
1995
  x: 0,
1986
1996
  y: 0
1987
1997
  }),
1988
- onClick: () => ji(e, t)
1989
- }, null, 14, zt)) : (T(), y("text", {
1998
+ onClick: () => Mi(e, t)
1999
+ }, null, 14, Bt)) : (T(), b("text", {
1990
2000
  class: "vue-data-ui-time-label",
1991
2001
  key: t,
1992
2002
  "text-anchor": z.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : z.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
@@ -1995,13 +2005,13 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
1995
2005
  fill: z.value.style.chart.grid.x.timeLabels.color,
1996
2006
  transform: `translate(${G.value.left + X.value * t + X.value / 2}, ${G.value.bottom + z.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + z.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${z.value.style.chart.grid.x.timeLabels.rotation})`,
1997
2007
  style: w({ cursor: V.value ? "pointer" : "default" }),
1998
- onClick: () => ji(e, t)
1999
- }, k(e.text), 13, Rt))]))), 256))]))], 512)) : v("", !0),
2000
- z.value.style.chart.grid.x.timeLabels.show && z.value.orientation === "horizontal" ? (T(), y("g", {
2008
+ onClick: () => Mi(e, t)
2009
+ }, k(e.text), 13, zt))]))), 256))]))], 512)) : y("", !0),
2010
+ z.value.style.chart.grid.x.timeLabels.show && z.value.orientation === "horizontal" ? (T(), b("g", {
2001
2011
  key: 16,
2002
2012
  ref_key: "timeLabelsEls",
2003
- ref: Nn
2004
- }, [t.$slots["time-label"] ? (T(), y("g", Bt, [(T(!0), y(h, null, D(Q.value, (e, n) => (T(), y("g", null, [O(t.$slots, "time-label", Je({ ref_for: !0 }, {
2013
+ ref: Pn
2014
+ }, [t.$slots["time-label"] ? (T(), b("g", Vt, [(T(!0), b(g, null, D(Yr.value, (e, n) => (T(), b("g", null, [O(t.$slots, "time-label", Ye({ ref_for: !0 }, {
2005
2015
  x: G.value.left - 8,
2006
2016
  y: G.value.top + X.value * n + X.value / 2 + z.value.style.chart.grid.y.axisLabels.fontSize / 3,
2007
2017
  fontSize: z.value.style.chart.grid.x.timeLabels.fontSize,
@@ -2011,7 +2021,7 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
2011
2021
  content: e.text,
2012
2022
  textAnchor: "end",
2013
2023
  show: !0
2014
- }), void 0, !0)]))), 256))])) : (T(), y("g", Vt, [(T(!0), y(h, null, D(Q.value, (e, t) => (T(), y("g", null, [String(e.text).includes("\n") ? (T(), y("text", {
2024
+ }), void 0, !0)]))), 256))])) : (T(), b("g", Ht, [(T(!0), b(g, null, D(Yr.value, (e, t) => (T(), b("g", null, [String(e.text).includes("\n") ? (T(), b("text", {
2015
2025
  key: 1,
2016
2026
  "text-anchor": "end",
2017
2027
  "font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
@@ -2019,69 +2029,75 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
2019
2029
  fill: z.value.style.chart.grid.y.axisLabels.color,
2020
2030
  transform: `translate(${G.value.left - 8}, ${G.value.top + X.value * t + X.value / 2 + z.value.style.chart.grid.y.axisLabels.fontSize / 3})`,
2021
2031
  style: w({ cursor: V.value ? "pointer" : "default" }),
2022
- onClick: () => ji(e, t),
2032
+ onClick: () => Mi(e, t),
2023
2033
  innerHTML: A(c)({
2024
2034
  content: String(e.text),
2025
2035
  fontSize: z.value.style.chart.grid.y.axisLabels.fontSize,
2026
2036
  fill: z.value.style.chart.grid.y.axisLabels.color,
2037
+ stroke: z.value.style.chart.backgroundColor,
2027
2038
  x: G.value.left - 8,
2028
2039
  y: 0
2029
2040
  })
2030
- }, null, 12, Ut)) : (T(), y("text", {
2041
+ }, null, 12, Wt)) : (T(), b("text", {
2031
2042
  key: 0,
2032
2043
  "text-anchor": "end",
2033
2044
  "font-size": z.value.style.chart.grid.y.axisLabels.fontSize,
2034
2045
  "font-weight": z.value.style.chart.grid.y.axisLabels.bold ? "bold" : "normal",
2035
2046
  fill: z.value.style.chart.grid.y.axisLabels.color,
2047
+ stroke: z.value.style.chart.backgroundColor,
2048
+ "stroke-linecap": "round",
2049
+ "stroke-linejoin": "round",
2050
+ "stroke-width": "3",
2051
+ "paint-order": "stroke fill",
2036
2052
  transform: `translate(${G.value.left - 8}, ${G.value.top + X.value * t + X.value / 2 + z.value.style.chart.grid.y.axisLabels.fontSize / 3})`,
2037
2053
  style: w({ cursor: V.value ? "pointer" : "default" }),
2038
- onClick: () => ji(e, t)
2039
- }, k(e.text), 13, Ht))]))), 256))]))], 512)) : v("", !0),
2040
- H.value.showTooltip && z.value.orientation === "vertical" ? (T(!0), y(h, { key: 17 }, D(J.value.end - J.value.start, (e, t) => (T(), y("rect", {
2054
+ onClick: () => Mi(e, t)
2055
+ }, k(e.text), 13, Ut))]))), 256))]))], 512)) : y("", !0),
2056
+ H.value.showTooltip && z.value.orientation === "vertical" ? (T(!0), b(g, { key: 17 }, D(J.value.end - J.value.start, (e, t) => (T(), b("rect", {
2041
2057
  x: G.value.left + t * X.value,
2042
2058
  y: G.value.top,
2043
2059
  width: X.value,
2044
2060
  height: G.value.height < 0 ? 0 : G.value.height,
2045
- onClick: () => oi(t),
2046
- onMouseenter: () => di(t, "pointer"),
2047
- onMouseleave: () => ci(t),
2048
- fill: t === L.value || t === Kn.value ? z.value.style.chart.highlighter.color : "transparent",
2061
+ onClick: () => si(t),
2062
+ onMouseenter: () => fi(t, "pointer"),
2063
+ onMouseleave: () => li(t),
2064
+ fill: t === L.value || t === qn.value ? z.value.style.chart.highlighter.color : "transparent",
2049
2065
  style: w({ opacity: z.value.style.chart.highlighter.opacity / 100 })
2050
- }, null, 44, Wt))), 256)) : v("", !0),
2051
- H.value.showTooltip && z.value.orientation === "horizontal" ? (T(!0), y(h, { key: 18 }, D(J.value.end - J.value.start, (e, t) => (T(), y("rect", {
2066
+ }, null, 44, Gt))), 256)) : y("", !0),
2067
+ H.value.showTooltip && z.value.orientation === "horizontal" ? (T(!0), b(g, { key: 18 }, D(J.value.end - J.value.start, (e, t) => (T(), b("rect", {
2052
2068
  x: G.value.left,
2053
2069
  y: G.value.top + t * X.value,
2054
2070
  width: G.value.width < 0 ? 0 : G.value.width,
2055
2071
  height: X.value,
2056
- onClick: () => oi(t),
2057
- onMouseenter: () => di(t, "pointer"),
2058
- onMouseleave: () => ci(t),
2059
- fill: t === L.value || t === Kn.value ? z.value.style.chart.highlighter.color : "transparent",
2072
+ onClick: () => si(t),
2073
+ onMouseenter: () => fi(t, "pointer"),
2074
+ onMouseleave: () => li(t),
2075
+ fill: t === L.value || t === qn.value ? z.value.style.chart.highlighter.color : "transparent",
2060
2076
  style: w({ opacity: z.value.style.chart.highlighter.opacity / 100 })
2061
- }, null, 44, Gt))), 256)) : v("", !0),
2062
- kr.value ? (T(), y("rect", Je({ key: 19 }, Dr.value, {
2077
+ }, null, 44, Kt))), 256)) : y("", !0),
2078
+ Ar.value ? (T(), b("rect", Ye({ key: 19 }, Or.value, {
2063
2079
  "data-start": J.value.start,
2064
2080
  "data-end": J.value.end
2065
- }), null, 16, Kt)) : v("", !0),
2081
+ }), null, 16, qt)) : y("", !0),
2066
2082
  O(t.$slots, "svg", { svg: {
2067
2083
  drawingArea: G.value,
2068
2084
  slicer: J.value,
2069
2085
  data: $.value,
2070
- isPrintingImg: A(or) || A(sr) || A(Bi),
2071
- isPrintingSvg: A(Vi),
2086
+ isPrintingImg: A(sr) || A(cr) || A(Vi),
2087
+ isPrintingSvg: A(Hi),
2072
2088
  barWidth: X.value
2073
2089
  } }, void 0, !0)
2074
- ], 46, lt)), t.$slots.hint ? (T(), y("div", qt, [O(t.$slots, "hint", C(x({
2090
+ ], 46, ut)), t.$slots.hint ? (T(), b("div", Jt, [O(t.$slots, "hint", C(x({
2075
2091
  hint: z.value.a11y.translations.keyboardNavigation,
2076
- isVisible: na.value
2077
- })), void 0, !0)])) : v("", !0)]),
2078
- t.$slots.watermark ? (T(), y("div", Jt, [O(t.$slots, "watermark", C(x({ isPrinting: A(or) || A(sr) || A(Bi) || A(Vi) })), void 0, !0)])) : v("", !0),
2079
- z.value.style.chart.zoom.show && pn.value && Ki.value && q.value > 6 ? (T(), _(Ie, {
2092
+ isVisible: ra.value
2093
+ })), void 0, !0)])) : y("", !0)]),
2094
+ t.$slots.watermark ? (T(), b("div", Yt, [O(t.$slots, "watermark", C(x({ isPrinting: A(sr) || A(cr) || A(Vi) || A(Hi) })), void 0, !0)])) : y("", !0),
2095
+ z.value.style.chart.zoom.show && mn.value && qi.value && q.value > 6 ? (T(), v(Ie, {
2080
2096
  key: 5,
2081
2097
  ref_key: "chartSlicer",
2082
- ref: bn,
2098
+ ref: xn,
2083
2099
  "data-dom-to-png-ignore-layout": "",
2084
- allMinimaps: Rr.value,
2100
+ allMinimaps: zr.value,
2085
2101
  background: z.value.style.chart.zoom.color,
2086
2102
  borderColor: z.value.style.chart.backgroundColor,
2087
2103
  customFormat: z.value.style.chart.zoom.customFormat,
@@ -2095,12 +2111,12 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
2095
2111
  fontSize: z.value.style.chart.zoom.fontSize,
2096
2112
  immediate: !z.value.style.chart.zoom.preview.enable,
2097
2113
  inputColor: z.value.style.chart.zoom.color,
2098
- isPreview: kr.value,
2114
+ isPreview: Ar.value,
2099
2115
  labelLeft: z.value.style.chart.grid.x.timeLabels.values[J.value.start] ? Q.value?.[0]?.text ?? "" : "",
2100
2116
  labelRight: z.value.style.chart.grid.x.timeLabels.values[J.value.end - 1] ? Q.value?.at(-1)?.text ?? "" : "",
2101
2117
  max: Math.max(...e.dataset.map((e) => e.series.length)),
2102
2118
  min: 0,
2103
- minimap: Lr.value,
2119
+ minimap: Rr.value,
2104
2120
  minimapCompact: z.value.style.chart.zoom.minimap.compact,
2105
2121
  minimapFrameColor: z.value.style.chart.zoom.minimap.frameColor,
2106
2122
  minimapIndicatorColor: z.value.style.chart.zoom.minimap.indicatorColor,
@@ -2109,15 +2125,15 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
2109
2125
  minimapSelectedColorOpacity: z.value.style.chart.zoom.minimap.selectedColorOpacity,
2110
2126
  minimapSelectedIndex: L.value,
2111
2127
  minimapSelectionRadius: 1,
2112
- preciseLabels: Qr.value.length ? Qr.value : Wr.value,
2128
+ preciseLabels: $r.value.length ? $r.value : Gr.value,
2113
2129
  refreshEndPoint: z.value.style.chart.zoom.endIndex === null ? Math.max(...e.dataset.map((e) => e.series.length)) : z.value.style.chart.zoom.endIndex + 1,
2114
2130
  refreshStartPoint: z.value.style.chart.zoom.startIndex === null ? 0 : z.value.style.chart.zoom.startIndex,
2115
2131
  selectColor: z.value.style.chart.zoom.highlightColor,
2116
- selectedSeries: li.value,
2132
+ selectedSeries: ui.value,
2117
2133
  smoothMinimap: !1,
2118
2134
  start: J.value.start,
2119
2135
  textColor: z.value.style.chart.color,
2120
- timeLabels: Wr.value,
2136
+ timeLabels: Gr.value,
2121
2137
  usePreciseLabels: z.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !z.value.style.chart.zoom.useDefaultFormat,
2122
2138
  valueEnd: J.value.end,
2123
2139
  valueStart: J.value.start,
@@ -2133,18 +2149,18 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
2133
2149
  handleBorderColor: z.value.style.chart.zoom.minimap.handleBorderColor,
2134
2150
  handleFill: z.value.style.chart.zoom.minimap.handleFill,
2135
2151
  handleWidth: z.value.style.chart.zoom.minimap.handleWidth,
2136
- "onUpdate:end": Xi,
2137
- "onUpdate:start": Yi,
2138
- onTrapMouse: Or,
2139
- onReset: r[0] ||= () => Pr({ force: !0 }),
2140
- onFutureEnd: r[1] ||= (e) => Ar("end", e),
2141
- onFutureStart: r[2] ||= (e) => Ar("start", e)
2152
+ "onUpdate:end": Zi,
2153
+ "onUpdate:start": Xi,
2154
+ onTrapMouse: kr,
2155
+ onReset: r[0] ||= () => Fr({ force: !0 }),
2156
+ onFutureEnd: r[1] ||= (e) => jr("end", e),
2157
+ onFutureStart: r[2] ||= (e) => jr("start", e)
2142
2158
  }, {
2143
2159
  "reset-action": j(({ reset: e }) => [O(t.$slots, "reset-action", C(x({ reset: e })), void 0, !0)]),
2144
- slotMap: j(({ width: e, height: t, unitW: n }) => [(T(!0), y(h, null, D($.value, (e) => (T(), y("g", { key: e.id }, [(T(!0), y(h, null, D(e.xMinimap({
2160
+ slotMap: j(({ width: e, height: t, unitW: n }) => [(T(!0), b(g, null, D($.value, (e) => (T(), b("g", { key: e.id }, [(T(!0), b(g, null, D(e.xMinimap({
2145
2161
  left: 0,
2146
2162
  unitW: n
2147
- }), (r, a) => (T(), y("rect", {
2163
+ }), (r, a) => (T(), b("rect", {
2148
2164
  key: `minimap-rect-${e.minimapRectKeys[a]}`,
2149
2165
  x: a === 0 ? r - n * (z.value.style.chart.bars.gapRatio / 4) : r - n / 2,
2150
2166
  y: Math.max(0, Math.min(t, e.yMinimap({ minimapH: t })[a])),
@@ -2157,12 +2173,12 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
2157
2173
  "stroke-linecap": "round",
2158
2174
  "stroke-linejoin": "round",
2159
2175
  style: w({ opacity: a >= Y.value.start && a <= Y.value.end ? 1 : .62 })
2160
- }, null, 12, Yt))), 128))]))), 128))]),
2176
+ }, null, 12, Xt))), 128))]))), 128))]),
2161
2177
  _: 3
2162
- }, 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.minimapLeftInsetRatio.minimapRightInsetRatio.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : v("", !0),
2163
- qe(A(en), {
2178
+ }, 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.minimapLeftInsetRatio.minimapRightInsetRatio.isCursorPointer.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : y("", !0),
2179
+ qe(A(tn), {
2164
2180
  teleportTo: z.value.style.chart.tooltip.teleportTo,
2165
- show: H.value.showTooltip && mn.value,
2181
+ show: H.value.showTooltip && hn.value,
2166
2182
  backgroundColor: z.value.style.chart.tooltip.backgroundColor,
2167
2183
  color: z.value.style.chart.tooltip.color,
2168
2184
  fontSize: z.value.style.chart.tooltip.fontSize,
@@ -2174,19 +2190,19 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
2174
2190
  offsetX: z.value.style.chart.tooltip.offsetX,
2175
2191
  offsetY: z.value.style.chart.tooltip.offsetY,
2176
2192
  parent: P.value,
2177
- content: gn.value,
2178
- isFullscreen: Sn.value,
2193
+ content: _n.value,
2194
+ isFullscreen: Cn.value,
2179
2195
  isCustom: A(f)(z.value.style.chart.tooltip.customFormat),
2180
2196
  smooth: z.value.style.chart.tooltip.smooth,
2181
2197
  backdropFilter: z.value.style.chart.tooltip.backdropFilter,
2182
2198
  smoothForce: z.value.style.chart.tooltip.smoothForce,
2183
2199
  smoothSnapThreshold: z.value.style.chart.tooltip.smoothSnapThreshold,
2184
- isA11yMode: Vn.value === "keyboard",
2185
- a11yPosition: Bn.value
2200
+ isA11yMode: Hn.value === "keyboard",
2201
+ a11yPosition: Vn.value
2186
2202
  }, {
2187
- "tooltip-before": j(() => [O(t.$slots, "tooltip-before", C(x({ ...hn.value })), void 0, !0)]),
2188
- tooltip: j(() => [O(t.$slots, "tooltip", C(x({ ...hn.value })), void 0, !0)]),
2189
- "tooltip-after": j(() => [O(t.$slots, "tooltip-after", C(x({ ...hn.value })), void 0, !0)]),
2203
+ "tooltip-before": j(() => [O(t.$slots, "tooltip-before", C(x({ ...gn.value })), void 0, !0)]),
2204
+ tooltip: j(() => [O(t.$slots, "tooltip", C(x({ ...gn.value })), void 0, !0)]),
2205
+ "tooltip-after": j(() => [O(t.$slots, "tooltip-after", C(x({ ...gn.value })), void 0, !0)]),
2190
2206
  _: 3
2191
2207
  }, 8, [
2192
2208
  "teleportTo",
@@ -2212,40 +2228,40 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
2212
2228
  "isA11yMode",
2213
2229
  "a11yPosition"
2214
2230
  ]),
2215
- We("div", { id: `legend-bottom-${F.value}` }, null, 8, Xt),
2216
- Dn.value && (z.value.style.chart.legend.show || t.$slots.legend) ? (T(), _(Ue, {
2231
+ We("div", { id: `legend-bottom-${F.value}` }, null, 8, Zt),
2232
+ On.value && (z.value.style.chart.legend.show || t.$slots.legend) ? (T(), v(Ue, {
2217
2233
  key: 6,
2218
2234
  to: z.value.style.chart.legend.position === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
2219
2235
  }, [We("div", {
2220
2236
  ref_key: "chartLegend",
2221
- ref: yn
2222
- }, [O(t.$slots, "legend", { legend: Di.value }, () => [z.value.style.chart.legend.show ? (T(), _(Ve, {
2237
+ ref: bn
2238
+ }, [O(t.$slots, "legend", { legend: Oi.value }, () => [z.value.style.chart.legend.show ? (T(), v(Ve, {
2223
2239
  key: 0,
2224
- legendSet: Di.value,
2225
- config: Oi.value,
2240
+ legendSet: Oi.value,
2241
+ config: ki.value,
2226
2242
  isCursorPointer: V.value,
2227
2243
  onClickMarker: r[3] ||= ({ legend: e }) => e.segregate()
2228
2244
  }, Ge({
2229
- item: j(({ legend: e }) => [A(Jn) ? v("", !0) : (T(), y("div", {
2245
+ item: j(({ legend: e }) => [A(Yn) ? y("", !0) : (T(), b("div", {
2230
2246
  key: 0,
2231
2247
  onClick: (t) => e.segregate(),
2232
2248
  style: w(`opacity:${I.value.includes(e.id) ? .5 : 1}`)
2233
- }, k(e.name), 13, Zt))]),
2234
- legendToggle: j(() => [Di.value.length > 2 && z.value.style.chart.legend.selectAllToggle.show && !A(Jn) ? (T(), _(Le, {
2249
+ }, k(e.name), 13, Qt))]),
2250
+ legendToggle: j(() => [Oi.value.length > 2 && z.value.style.chart.legend.selectAllToggle.show && !A(Yn) ? (T(), v(Le, {
2235
2251
  key: 0,
2236
2252
  backgroundColor: z.value.style.chart.legend.selectAllToggle.backgroundColor,
2237
2253
  color: z.value.style.chart.legend.selectAllToggle.color,
2238
2254
  fontSize: z.value.style.chart.legend.fontSize,
2239
2255
  checked: I.value.length > 0,
2240
2256
  isCursorPointer: V.value,
2241
- onToggle: Si
2257
+ onToggle: Ci
2242
2258
  }, null, 8, [
2243
2259
  "backgroundColor",
2244
2260
  "color",
2245
2261
  "fontSize",
2246
2262
  "checked",
2247
2263
  "isCursorPointer"
2248
- ])) : v("", !0)]),
2264
+ ])) : y("", !0)]),
2249
2265
  _: 2
2250
2266
  }, [t.$slots.pattern ? {
2251
2267
  name: "legend-pattern",
@@ -2264,33 +2280,33 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
2264
2280
  "legendSet",
2265
2281
  "config",
2266
2282
  "isCursorPointer"
2267
- ])) : v("", !0)], !0)], 512)], 8, ["to"])) : v("", !0),
2268
- t.$slots.source ? (T(), y("div", {
2283
+ ])) : y("", !0)], !0)], 512)], 8, ["to"])) : y("", !0),
2284
+ t.$slots.source ? (T(), b("div", {
2269
2285
  key: 7,
2270
2286
  ref_key: "source",
2271
- ref: xn,
2287
+ ref: Sn,
2272
2288
  dir: "auto"
2273
- }, [O(t.$slots, "source", {}, void 0, !0)], 512)) : v("", !0),
2274
- pn.value && z.value.userOptions.buttons.table ? (T(), _(Qe(Fi.value.component), Je({ key: 8 }, Fi.value.props, {
2289
+ }, [O(t.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
2290
+ mn.value && z.value.userOptions.buttons.table ? (T(), v($e(Ii.value.component), Ye({ key: 8 }, Ii.value.props, {
2275
2291
  ref_key: "tableUnit",
2276
- ref: On,
2277
- onClose: Ii
2292
+ ref: kn,
2293
+ onClose: Li
2278
2294
  }), Ge({
2279
- content: j(() => [qe(A(rn), {
2280
- colNames: xi.value.colNames,
2281
- head: xi.value.head,
2282
- body: xi.value.body,
2283
- config: xi.value.config,
2284
- title: z.value.table.useDialog ? "" : Fi.value.title,
2295
+ content: j(() => [qe(A(an), {
2296
+ colNames: Si.value.colNames,
2297
+ head: Si.value.head,
2298
+ body: Si.value.body,
2299
+ config: Si.value.config,
2300
+ title: z.value.table.useDialog ? "" : Ii.value.title,
2285
2301
  withCloseButton: !z.value.table.useDialog,
2286
2302
  isCursorPointer: V.value,
2287
- onClose: Ii
2303
+ onClose: Li
2288
2304
  }, {
2289
- th: j(({ th: e }) => [e === "__SUM__" ? (T(), y("div", Qt, [qe(A(tn), {
2305
+ th: j(({ th: e }) => [e === "__SUM__" ? (T(), b("div", $t, [qe(A(nn), {
2290
2306
  name: "sigma",
2291
- stroke: xi.value.config.th.color,
2307
+ stroke: Si.value.config.th.color,
2292
2308
  size: 16
2293
- }, null, 8, ["stroke"])])) : (T(), y("div", $t, k(e), 1))]),
2309
+ }, null, 8, ["stroke"])])) : (T(), b("div", en, k(e), 1))]),
2294
2310
  td: j(({ td: e }) => [Ke(k(isNaN(Number(e)) ? e : A(p)({
2295
2311
  p: z.value.style.chart.bars.dataLabels.prefix,
2296
2312
  v: e,
@@ -2310,24 +2326,24 @@ var it = /* @__PURE__ */ e({ default: () => en }), at = ["id"], ot = ["id"], st
2310
2326
  _: 2
2311
2327
  }, [z.value.table.useDialog ? {
2312
2328
  name: "title",
2313
- fn: j(() => [Ke(k(Fi.value.title), 1)]),
2329
+ fn: j(() => [Ke(k(Ii.value.title), 1)]),
2314
2330
  key: "0"
2315
2331
  } : void 0, z.value.table.useDialog ? {
2316
2332
  name: "actions",
2317
2333
  fn: j(() => [We("button", {
2318
2334
  tabindex: "0",
2319
2335
  class: "vue-ui-user-options-button",
2320
- onClick: r[4] ||= (e) => bi(z.value.userOptions.callbacks.csv),
2336
+ onClick: r[4] ||= (e) => xi(z.value.userOptions.callbacks.csv),
2321
2337
  style: w({ cursor: V.value ? "pointer" : "default" })
2322
- }, [qe(A(tn), {
2338
+ }, [qe(A(nn), {
2323
2339
  name: "fileCsv",
2324
- stroke: Fi.value.props.color
2340
+ stroke: Ii.value.props.color
2325
2341
  }, null, 8, ["stroke"])], 4)]),
2326
2342
  key: "1"
2327
- } : void 0]), 1040)) : v("", !0),
2328
- O(t.$slots, "skeleton", {}, () => [A(Jn) ? (T(), _(Se, { key: 0 })) : v("", !0)], !0)
2329
- ], 46, at));
2343
+ } : void 0]), 1040)) : y("", !0),
2344
+ O(t.$slots, "skeleton", {}, () => [A(Yn) ? (T(), v(Se, { key: 0 })) : y("", !0)], !0)
2345
+ ], 46, ot));
2330
2346
  }
2331
- }, [["__scopeId", "data-v-55ac3d11"]]);
2347
+ }, [["__scopeId", "data-v-dd6876e8"]]);
2332
2348
  //#endregion
2333
- export { it as n, en as t };
2349
+ export { at as n, tn as t };