vue-data-ui 3.16.0 → 3.16.1

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 (136) hide show
  1. package/dist/ColorPicker-B0mV4xzu.js +255 -0
  2. package/dist/{NonSvgPenAndPaper-vqweC0WU.js → NonSvgPenAndPaper-VyJFyJ6X.js} +1 -1
  3. package/dist/{PackageVersion-IIGK_e2C.js → PackageVersion-DPO-OOVI.js} +1 -1
  4. package/dist/{PenAndPaper-DARlvvKW.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
  5. package/dist/{UserOptions-DWHf8jyO.js → UserOptions-rW2fRf3V.js} +2 -2
  6. package/dist/components/vue-ui-3d-bar.js +1 -1
  7. package/dist/components/vue-ui-age-pyramid.js +1 -1
  8. package/dist/components/vue-ui-annotator.js +1 -1
  9. package/dist/components/vue-ui-bullet.js +1 -1
  10. package/dist/components/vue-ui-bump.js +1 -1
  11. package/dist/components/vue-ui-candlestick.js +1 -1
  12. package/dist/components/vue-ui-carousel-table.js +1 -1
  13. package/dist/components/vue-ui-chestnut.js +1 -1
  14. package/dist/components/vue-ui-chord.js +1 -1
  15. package/dist/components/vue-ui-circle-pack.js +1 -1
  16. package/dist/components/vue-ui-cursor.js +1 -1
  17. package/dist/components/vue-ui-dag.js +1 -1
  18. package/dist/components/vue-ui-dashboard.js +1 -1
  19. package/dist/components/vue-ui-digits.js +1 -1
  20. package/dist/components/vue-ui-donut-evolution.js +1 -1
  21. package/dist/components/vue-ui-donut.js +1 -1
  22. package/dist/components/vue-ui-dumbbell.js +1 -1
  23. package/dist/components/vue-ui-flow.js +1 -1
  24. package/dist/components/vue-ui-funnel.js +1 -1
  25. package/dist/components/vue-ui-galaxy.js +1 -1
  26. package/dist/components/vue-ui-gauge.js +1 -1
  27. package/dist/components/vue-ui-geo.js +1 -1
  28. package/dist/components/vue-ui-gizmo.js +1 -1
  29. package/dist/components/vue-ui-heatmap.js +1 -1
  30. package/dist/components/vue-ui-history-plot.js +1 -1
  31. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  32. package/dist/components/vue-ui-kpi.js +1 -1
  33. package/dist/components/vue-ui-molecule.js +1 -1
  34. package/dist/components/vue-ui-mood-radar.js +1 -1
  35. package/dist/components/vue-ui-nested-donuts.js +1 -1
  36. package/dist/components/vue-ui-onion.js +1 -1
  37. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  38. package/dist/components/vue-ui-quadrant.js +1 -1
  39. package/dist/components/vue-ui-quick-chart.js +1 -1
  40. package/dist/components/vue-ui-radar.js +1 -1
  41. package/dist/components/vue-ui-relation-circle.js +1 -1
  42. package/dist/components/vue-ui-ridgeline.js +1 -1
  43. package/dist/components/vue-ui-rings.js +1 -1
  44. package/dist/components/vue-ui-scatter.js +1 -1
  45. package/dist/components/vue-ui-skeleton.js +1 -1
  46. package/dist/components/vue-ui-spark-trend.js +1 -1
  47. package/dist/components/vue-ui-sparkbar.js +1 -1
  48. package/dist/components/vue-ui-sparkgauge.js +1 -1
  49. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  50. package/dist/components/vue-ui-sparkline.js +1 -1
  51. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  52. package/dist/components/vue-ui-stackbar.js +1 -1
  53. package/dist/components/vue-ui-stackline.js +1 -1
  54. package/dist/components/vue-ui-strip-plot.js +1 -1
  55. package/dist/components/vue-ui-table-heatmap.js +1 -1
  56. package/dist/components/vue-ui-table-sparkline.js +1 -1
  57. package/dist/components/vue-ui-table.js +1 -1
  58. package/dist/components/vue-ui-thermometer.js +1 -1
  59. package/dist/components/vue-ui-timer.js +1 -1
  60. package/dist/components/vue-ui-tiremarks.js +1 -1
  61. package/dist/components/vue-ui-treemap.js +1 -1
  62. package/dist/components/vue-ui-vertical-bar.js +1 -1
  63. package/dist/components/vue-ui-waffle.js +1 -1
  64. package/dist/components/vue-ui-wheel.js +1 -1
  65. package/dist/components/vue-ui-word-cloud.js +1 -1
  66. package/dist/components/vue-ui-world.js +1 -1
  67. package/dist/components/vue-ui-xy-canvas.js +1 -1
  68. package/dist/components/vue-ui-xy.js +1 -1
  69. package/dist/style.css +1 -1
  70. package/dist/types/vue-data-ui.d.ts +1 -0
  71. package/dist/{vue-data-ui-CykQ4SW2.js → vue-data-ui-DXGkXRnC.js} +63 -63
  72. package/dist/vue-data-ui.js +63 -63
  73. package/dist/{vue-ui-3d-bar-D5KRiVmZ.js → vue-ui-3d-bar-BaFpQnd5.js} +1 -1
  74. package/dist/{vue-ui-age-pyramid-QfZ1J5Xx.js → vue-ui-age-pyramid-CRM498Pc.js} +342 -341
  75. package/dist/{vue-ui-annotator-CpSMITlP.js → vue-ui-annotator-CkPi9moo.js} +1 -1
  76. package/dist/{vue-ui-bullet-B-mo7tzz.js → vue-ui-bullet-BBiwof3c.js} +1 -1
  77. package/dist/{vue-ui-bump-NfZcJ9Q0.js → vue-ui-bump-Brxpu4xV.js} +1 -1
  78. package/dist/{vue-ui-candlestick-CGU-0rrF.js → vue-ui-candlestick-DAnZv77-.js} +240 -239
  79. package/dist/{vue-ui-carousel-table-BsdD3wU7.js → vue-ui-carousel-table-BHRZBYY0.js} +1 -1
  80. package/dist/{vue-ui-chestnut-JpoNeiHD.js → vue-ui-chestnut-CbrYnRgm.js} +1 -1
  81. package/dist/{vue-ui-chord-CxhxjRQz.js → vue-ui-chord-CaX_IUVs.js} +1 -1
  82. package/dist/{vue-ui-circle-pack-DbxOzzk2.js → vue-ui-circle-pack-CR3h53sc.js} +1 -1
  83. package/dist/{vue-ui-cursor-CZGKKkeT.js → vue-ui-cursor-Cjfazw7Z.js} +1 -1
  84. package/dist/{vue-ui-dag-gal2eIv-.js → vue-ui-dag-B9vH3c66.js} +1 -1
  85. package/dist/{vue-ui-dashboard-ClnkPMc5.js → vue-ui-dashboard-DWll05qs.js} +62 -62
  86. package/dist/{vue-ui-digits-DColgbmH.js → vue-ui-digits-DcM67rMx.js} +1 -1
  87. package/dist/{vue-ui-donut-Bckj-DX2.js → vue-ui-donut-Be5G38P5.js} +395 -394
  88. package/dist/{vue-ui-donut-evolution-B6HtvZVs.js → vue-ui-donut-evolution-BLSesj3c.js} +265 -264
  89. package/dist/{vue-ui-dumbbell-r3Jv9uut.js → vue-ui-dumbbell-DIMiCY4r.js} +1 -1
  90. package/dist/{vue-ui-flow-BxfLqYXa.js → vue-ui-flow-zvZylhgr.js} +1 -1
  91. package/dist/{vue-ui-funnel-B6Gevxqh.js → vue-ui-funnel-CSri-oWm.js} +1 -1
  92. package/dist/{vue-ui-galaxy-BJr1ddJZ.js → vue-ui-galaxy-CGykxsAI.js} +1 -1
  93. package/dist/{vue-ui-gauge-Q-Slhgwx.js → vue-ui-gauge-D1MNB9Jq.js} +1 -1
  94. package/dist/{vue-ui-geo-Dow4oyTv.js → vue-ui-geo-DdJDGhG2.js} +1 -1
  95. package/dist/{vue-ui-gizmo-zpVjAoDG.js → vue-ui-gizmo-BZYRHGFm.js} +1 -1
  96. package/dist/{vue-ui-heatmap-mKX5Bzql.js → vue-ui-heatmap-CryOx6XK.js} +494 -482
  97. package/dist/{vue-ui-history-plot-D6kiRkhD.js → vue-ui-history-plot-C85iw9Kl.js} +1 -1
  98. package/dist/{vue-ui-horizontal-bar-FKkR13e7.js → vue-ui-horizontal-bar-BoBZOybC.js} +430 -429
  99. package/dist/{vue-ui-kpi-CMRe29m5.js → vue-ui-kpi-DHrolXw6.js} +1 -1
  100. package/dist/{vue-ui-molecule-7eT7D17p.js → vue-ui-molecule-DJ_BQ4DK.js} +1 -1
  101. package/dist/{vue-ui-mood-radar-DsC0X_C2.js → vue-ui-mood-radar-CBE02TpQ.js} +1 -1
  102. package/dist/{vue-ui-nested-donuts-FbiXKFZX.js → vue-ui-nested-donuts-YTFtb4CL.js} +284 -283
  103. package/dist/{vue-ui-onion-CjWiTq2x.js → vue-ui-onion-B9l81-PS.js} +1 -1
  104. package/dist/{vue-ui-parallel-coordinate-plot-kl1jgKIX.js → vue-ui-parallel-coordinate-plot-C1e_rs8J.js} +1 -1
  105. package/dist/{vue-ui-quadrant-CyalzEfW.js → vue-ui-quadrant-C1qsLCRn.js} +556 -555
  106. package/dist/{vue-ui-quick-chart-DgWwf7SJ.js → vue-ui-quick-chart-DFoz3WiA.js} +360 -359
  107. package/dist/{vue-ui-radar-Bw9veQKf.js → vue-ui-radar-Cmo3p-UA.js} +1 -1
  108. package/dist/{vue-ui-relation-circle-D4-9g-5t.js → vue-ui-relation-circle-BqwznVwf.js} +1 -1
  109. package/dist/{vue-ui-ridgeline-BZy69VT6.js → vue-ui-ridgeline-CDk9eXJq.js} +1 -1
  110. package/dist/{vue-ui-rings-LDs6OFnx.js → vue-ui-rings-BRkGoQdL.js} +1 -1
  111. package/dist/{vue-ui-scatter-i_hakuFa.js → vue-ui-scatter-BxDtWASQ.js} +479 -466
  112. package/dist/{vue-ui-skeleton-F2qaXsQ2.js → vue-ui-skeleton-D6kTb9aO.js} +1 -1
  113. package/dist/{vue-ui-spark-trend-ZIMooBi3.js → vue-ui-spark-trend-D8Mf2A1w.js} +1 -1
  114. package/dist/{vue-ui-sparkbar-BYRKG_Mm.js → vue-ui-sparkbar-BbYj56c3.js} +1 -1
  115. package/dist/{vue-ui-sparkgauge-BM0mnDHp.js → vue-ui-sparkgauge-DXzOSLRb.js} +1 -1
  116. package/dist/{vue-ui-sparkhistogram-z4-7Q6J8.js → vue-ui-sparkhistogram-DMfSx1iH.js} +1 -1
  117. package/dist/{vue-ui-sparkline-9m1__jVp.js → vue-ui-sparkline-D-rQ9PsC.js} +439 -438
  118. package/dist/{vue-ui-sparkstackbar-uM98VUDw.js → vue-ui-sparkstackbar-DK5n8IKP.js} +1 -1
  119. package/dist/{vue-ui-stackbar-DcSJuwTC.js → vue-ui-stackbar-BHthy6jf.js} +212 -211
  120. package/dist/{vue-ui-stackline-Dl_FfJAO.js → vue-ui-stackline-C6-WNpKD.js} +363 -362
  121. package/dist/{vue-ui-strip-plot-CcV8bOkg.js → vue-ui-strip-plot-CHu-1ilI.js} +1 -1
  122. package/dist/{vue-ui-table-Dx-N-eF1.js → vue-ui-table-DW9JGsLq.js} +2 -2
  123. package/dist/{vue-ui-table-heatmap-CVxNZzGe.js → vue-ui-table-heatmap-LYqoBit9.js} +1 -1
  124. package/dist/{vue-ui-table-sparkline-DdtbqaUL.js → vue-ui-table-sparkline-CXK1dFr-.js} +1 -1
  125. package/dist/{vue-ui-thermometer-Clwz-wUE.js → vue-ui-thermometer-BN8tflOz.js} +1 -1
  126. package/dist/{vue-ui-timer-BYVk_bvz.js → vue-ui-timer-DGT0UBOF.js} +1 -1
  127. package/dist/{vue-ui-tiremarks-D5TSv5yw.js → vue-ui-tiremarks-BZ-osQqY.js} +1 -1
  128. package/dist/{vue-ui-treemap-C0zhPMxE.js → vue-ui-treemap-98KaVRyd.js} +388 -387
  129. package/dist/{vue-ui-waffle-BtjLPkLm.js → vue-ui-waffle-Cb7oJnIc.js} +1 -1
  130. package/dist/{vue-ui-wheel-DSlnowV4.js → vue-ui-wheel-sfew1fjw.js} +1 -1
  131. package/dist/{vue-ui-word-cloud-DFdiRCqc.js → vue-ui-word-cloud-vq1t9JHr.js} +1 -1
  132. package/dist/{vue-ui-world-CymT7_Ep.js → vue-ui-world-CN0f6elD.js} +1 -1
  133. package/dist/{vue-ui-xy-B9Q4FR0g.js → vue-ui-xy-BdzEiImZ.js} +956 -955
  134. package/dist/{vue-ui-xy-canvas-CrnBxoa0.js → vue-ui-xy-canvas-CWQzUQzY.js} +113 -113
  135. package/package.json +1 -1
  136. package/dist/ColorPicker-DQ5sdRrl.js +0 -244
@@ -1,11 +1,11 @@
1
- import { defineAsyncComponent as ke, useSlots as gs, computed as f, ref as d, shallowRef as qt, onMounted as ps, toRefs as bs, watch as Fe, onBeforeUnmount as Xt, nextTick as Gt, watchEffect as gt, openBlock as i, createElementBlock as v, normalizeStyle as ge, normalizeClass as tl, createElementVNode as le, toDisplayString as fe, createBlock as oe, createCommentVNode as x, unref as C, withCtx as P, renderSlot as N, normalizeProps as ee, guardReactiveProps as te, createSlots as jt, createVNode as Ze, Fragment as F, renderList as X, mergeProps as pt, Teleport as xs, resolveDynamicComponent as ks, createTextVNode as al } from "vue";
2
- import { j as ll, t as sl, m as ws, p as bt, n as Ss, o as ol, q as nl, r as Ms, s as $s, ar as Qe, E as xt, D as kt, I as Cs, c as we, b as Se, F as Ls, T as As, U as Ts, k as et, l as Ce, G as tt, X as Ns, x as Ps, u as zs, K as rl, a0 as Is, a1 as _s, z as Fs, A as at, a3 as Es } from "./lib-DBptbyyI.js";
1
+ import { defineAsyncComponent as ke, useSlots as gs, computed as f, ref as h, shallowRef as qt, onMounted as ps, toRefs as bs, watch as Fe, onBeforeUnmount as Xt, nextTick as Gt, watchEffect as pt, openBlock as i, createElementBlock as v, normalizeStyle as ge, normalizeClass as tl, createElementVNode as le, toDisplayString as fe, createBlock as oe, createCommentVNode as x, unref as C, withCtx as P, renderSlot as N, normalizeProps as ee, guardReactiveProps as te, createSlots as jt, createVNode as Ze, Fragment as F, renderList as X, mergeProps as bt, Teleport as xs, resolveDynamicComponent as ks, createTextVNode as al } from "vue";
2
+ import { j as ll, t as sl, m as ws, p as xt, n as Ss, o as ol, q as nl, r as Ms, s as $s, ar as Qe, E as kt, D as wt, I as Cs, c as we, b as Se, F as Ls, T as As, U as Ts, k as et, l as Ce, G as tt, X as Ns, x as Ps, u as Is, K as rl, a0 as zs, a1 as _s, z as Fs, A as at, a3 as Es } from "./lib-DBptbyyI.js";
3
3
  import { t as Rs, u as Os } from "./useResponsive-DfdjqQps.js";
4
4
  import { u as il, a as ul, b as Ds } from "./useTimeLabels-C-A2uZKi.js";
5
5
  import { u as Vs } from "./useConfig-DO94Aj5s.js";
6
6
  import { u as Bs, B as Ys } from "./BaseScanner-BhhkKVoj.js";
7
- import { u as Ws } from "./usePrinter-CEpYU3r5.js";
8
- import { u as Hs } from "./useSvgExport-ByUukOZt.js";
7
+ import { u as Hs } from "./usePrinter-CEpYU3r5.js";
8
+ import { u as Ws } from "./useSvgExport-ByUukOZt.js";
9
9
  import { u as Jt } from "./useNestedProp-Bf5XFbs8.js";
10
10
  import { u as Us } from "./useThemeCheck-D1ZYXUwG.js";
11
11
  import { u as qs } from "./useStableElementSize-DCNs0Tx7.js";
@@ -21,7 +21,7 @@ import { A as eo } from "./A11yDataTable-KcVAX2cP.js";
21
21
  import { S as to } from "./SlicerPreview-DTjwV0iY.js";
22
22
  import { B as ao } from "./BaseLegendToggle-BQVIawmA.js";
23
23
  import { _ as lo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
24
- const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative" } }, io = ["aria-describedby", "xmlns", "viewBox"], uo = { key: 0 }, co = ["x", "y", "width", "height"], vo = { key: 1 }, ho = ["id"], mo = ["stop-color"], fo = ["stop-color"], yo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], go = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], po = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], bo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xo = ["x", "y", "font-size", "fill", "font-weight"], ko = ["transform", "font-size", "fill", "font-weight"], wo = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], So = ["d", "fill", "opacity"], Mo = ["d", "stroke", "stroke-width"], $o = ["x1", "x2", "y1", "y2", "stroke"], Co = ["x", "y", "font-size", "font-weight", "fill"], Lo = { key: 0 }, Ao = { key: 1 }, To = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], No = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Po = ["x", "y", "height", "width", "fill"], zo = { key: 0 }, Io = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], _o = { key: 0 }, Fo = ["x", "y", "font-size", "fill", "font-weight"], Eo = ["x", "y", "font-size", "font-weight", "fill"], Ro = ["data-start", "data-end"], Oo = {
24
+ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative" } }, io = ["aria-describedby", "xmlns", "viewBox"], uo = { key: 0 }, co = ["x", "y", "width", "height"], vo = { key: 1 }, ho = ["id"], mo = ["stop-color"], fo = ["stop-color"], yo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], go = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], po = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], bo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], xo = ["x", "y", "font-size", "fill", "font-weight"], ko = ["transform", "font-size", "fill", "font-weight"], wo = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], So = ["d", "fill", "opacity"], Mo = ["d", "stroke", "stroke-width"], $o = ["x1", "x2", "y1", "y2", "stroke"], Co = ["x", "y", "font-size", "font-weight", "fill"], Lo = { key: 0 }, Ao = { key: 1 }, To = ["text-anchor", "font-size", "font-weight", "fill", "transform", "onClick"], No = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Po = ["x", "y", "height", "width", "fill"], Io = { key: 0 }, zo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], _o = { key: 0 }, Fo = ["x", "y", "font-size", "fill", "font-weight"], Eo = ["x", "y", "font-size", "font-weight", "fill"], Ro = ["data-start", "data-end"], Oo = {
25
25
  key: 0,
26
26
  style: { position: "absolute", top: "100%", left: "0", width: "100%" },
27
27
  "data-dom-to-png-ignore": "",
@@ -29,7 +29,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
29
29
  }, Do = {
30
30
  key: 5,
31
31
  class: "vue-data-ui-watermark"
32
- }, Vo = ["onClick"], Bo = ["innerHTML"], Yo = ["innerHTML"], Wo = ["id"], Ho = {
32
+ }, Vo = ["onClick"], Bo = ["innerHTML"], Yo = ["innerHTML"], Ho = ["id"], Wo = {
33
33
  __name: "vue-ui-stackline",
34
34
  props: {
35
35
  config: {
@@ -50,15 +50,15 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
50
50
  }
51
51
  },
52
52
  emits: ["selectDatapoint", "selectLegend", "selectTimeLabel", "selectX", "copyAlt"],
53
- setup(wt, { expose: cl, emit: vl }) {
54
- const hl = ke(() => import("./Tooltip-Bf-kM3_A.js")), dl = ke(() => import("./BaseIcon-Cb3zzG6s.js")), ml = ke(() => import("./vue-ui-accordion-nvggWcGN.js")), fl = ke(() => import("./DataTable-DT2kIdQ6.js")), yl = ke(() => import("./PenAndPaper-DARlvvKW.js")), gl = ke(() => import("./UserOptions-DWHf8jyO.js")), pl = ke(() => import("./PackageVersion-IIGK_e2C.js")), bl = ke(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_stackline: xl } = Vs(), { isThemeValid: kl, warnInvalidTheme: wl } = Us(), Zt = gs(), G = wt, ye = vl, Ee = f({
53
+ setup(St, { expose: cl, emit: vl }) {
54
+ const dl = ke(() => import("./Tooltip-Bf-kM3_A.js")), hl = ke(() => import("./BaseIcon-Cb3zzG6s.js")), ml = ke(() => import("./vue-ui-accordion-nvggWcGN.js")), fl = ke(() => import("./DataTable-DT2kIdQ6.js")), yl = ke(() => import("./PenAndPaper-Ct3qJ4lA.js")), gl = ke(() => import("./UserOptions-rW2fRf3V.js")), pl = ke(() => import("./PackageVersion-DPO-OOVI.js")), bl = ke(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_stackline: xl } = Vs(), { isThemeValid: kl, warnInvalidTheme: wl } = Us(), Zt = gs(), G = St, ye = vl, Ee = f({
55
55
  get() {
56
56
  return !!G.dataset && G.dataset.length;
57
57
  },
58
58
  set(t) {
59
59
  return t;
60
60
  }
61
- }), ue = d(null), K = d(ll()), Re = d(!1), Qt = d(null), D = d([]), ea = d(0), ta = d(null), aa = d(null), Oe = d(null), la = d(null), sa = d(null), De = d(!1), St = d(!1), oa = d(0), Sl = d(0), Ml = d(0), na = d(!1), Ve = d(null), Mt = d(null), Le = d(!1), lt = d(!1), st = d(!1), ot = d(null), $t = d(null), Ct = d(null), nt = d(null), $l = d(null), ra = qt(null), ia = d(!1), ua = d(0), ca = d(0), ce = d(null), va = d({ x: 0, y: 0 }), Be = d("pointer"), ha = qs({
61
+ }), ue = h(null), K = h(ll()), Re = h(!1), Qt = h(null), D = h([]), ea = h(0), ta = h(null), aa = h(null), Oe = h(null), la = h(null), sa = h(null), De = h(!1), Mt = h(!1), oa = h(0), Sl = h(0), Ml = h(0), na = h(!1), Ve = h(null), $t = h(null), Le = h(!1), lt = h(!1), st = h(!1), ot = h(null), Ct = h(null), Lt = h(null), nt = h(null), $l = h(null), ra = qt(null), ia = h(!1), ua = h(0), ca = h(0), ce = h(null), va = h({ x: 0, y: 0 }), Be = h("pointer"), da = qs({
62
62
  elementRef: ra,
63
63
  minimumWidth: 2,
64
64
  minimumHeight: 2,
@@ -68,10 +68,10 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
68
68
  rt();
69
69
  }
70
70
  });
71
- function Lt() {
71
+ function At() {
72
72
  ra.value = ue.value?.parentNode ?? null;
73
73
  }
74
- function da() {
74
+ function ha() {
75
75
  return new Promise((t) => {
76
76
  requestAnimationFrame(() => {
77
77
  requestAnimationFrame(t);
@@ -80,16 +80,16 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
80
80
  }
81
81
  async function rt() {
82
82
  const t = ++ca.value;
83
- ia.value = !1, await Gt(), await da(), await da(), t === ca.value && (ua.value += 1, ia.value = !0);
83
+ ia.value = !1, await Gt(), await ha(), await ha(), t === ca.value && (ua.value += 1, ia.value = !0);
84
84
  }
85
- const Ye = d(null), Ae = d(!1);
86
- function At() {
85
+ const Ye = h(null), Ae = h(!1);
86
+ function Tt() {
87
87
  Ae.value = !Ae.value;
88
88
  }
89
89
  ps(() => {
90
- Lt(), ha.start(), na.value = !0, ka(), rt();
90
+ At(), da.start(), na.value = !0, ka(), rt();
91
91
  });
92
- const e = d(Pt()), ve = f(() => e.value.userOptions.useCursorPointer), Cl = f(() => sl({
92
+ const e = h(It()), ve = f(() => e.value.userOptions.useCursorPointer), Cl = f(() => sl({
93
93
  defaultConfig: {
94
94
  userOptions: { show: !1 },
95
95
  useCssAnimation: !1,
@@ -140,10 +140,10 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
140
140
  }
141
141
  },
142
142
  userConfig: e.value.skeletonConfig ?? {}
143
- })), { loading: he, FINAL_DATASET: Tt, manualLoading: it } = Bs({
143
+ })), { loading: de, FINAL_DATASET: Nt, manualLoading: it } = Bs({
144
144
  ...bs(G),
145
145
  FINAL_CONFIG: e,
146
- prepareConfig: Pt,
146
+ prepareConfig: It,
147
147
  callback: () => {
148
148
  Promise.resolve().then(async () => {
149
149
  await mt();
@@ -165,14 +165,14 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
165
165
  defaultConfig: e.value,
166
166
  userConfig: Cl.value
167
167
  })
168
- }), { userOptionsVisible: Nt, setUserOptionsVisibility: ma, keepUserOptionState: fa } = js({ config: e.value }), { svgRef: de } = Xs({ config: e.value.style.chart.title });
168
+ }), { userOptionsVisible: Pt, setUserOptionsVisibility: ma, keepUserOptionState: fa } = js({ config: e.value }), { svgRef: he } = Xs({ config: e.value.style.chart.title });
169
169
  function Ll() {
170
170
  Le.value = !0, ma(!0);
171
171
  }
172
172
  function Al() {
173
- ma(!1), Le.value = !1, ce.value = null, Be.value = "pointer", Re.value = !1, p.value = null, ye("selectX", { seriesIndex: null, datapoint: null });
173
+ ma(!1), Le.value = !1, ce.value = null, Be.value = "pointer", Re.value = !1, b.value = null, ye("selectX", { seriesIndex: null, datapoint: null });
174
174
  }
175
- function Pt() {
175
+ function It() {
176
176
  const t = Jt({
177
177
  userConfig: G.config,
178
178
  defaultConfig: xl
@@ -192,7 +192,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
192
192
  userConfig: G.config,
193
193
  defaultConfig: s
194
194
  }),
195
- customPalette: t.customPalette.length ? t.customPalette : ws[a] || bt
195
+ customPalette: t.customPalette.length ? t.customPalette : ws[a] || xt
196
196
  };
197
197
  }
198
198
  else
@@ -201,16 +201,16 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
201
201
  }
202
202
  const ya = f(() => e.value.style.chart.lines.dataLabels.hideUnderValue !== null), ga = f(() => e.value.style.chart.lines.dataLabels.hideUnderPercentage !== null);
203
203
  Fe(() => G.config, (t) => {
204
- he.value || (e.value = Pt()), Nt.value = !e.value.userOptions.showOnChartHover, ka(), oa.value += 1, Sl.value += 1, Ml.value += 1, j.value.dataLabels.show = e.value.style.chart.lines.dataLabels.show, j.value.showTable = e.value.table.show, j.value.showTooltip = e.value.style.chart.tooltip.show, ne.value.width = e.value.style.chart.width, ne.value.height = e.value.style.chart.height, ne.value.paddingRatio = {
204
+ de.value || (e.value = It()), Pt.value = !e.value.userOptions.showOnChartHover, ka(), oa.value += 1, Sl.value += 1, Ml.value += 1, j.value.dataLabels.show = e.value.style.chart.lines.dataLabels.show, j.value.showTable = e.value.table.show, j.value.showTooltip = e.value.style.chart.tooltip.show, ne.value.width = e.value.style.chart.width, ne.value.height = e.value.style.chart.height, ne.value.paddingRatio = {
205
205
  top: e.value.style.chart.padding.top / e.value.style.chart.height,
206
206
  right: e.value.style.chart.padding.right / e.value.style.chart.width,
207
207
  bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
208
208
  left: e.value.style.chart.padding.left / e.value.style.chart.width
209
- }, Lt(), rt(), ct();
209
+ }, At(), rt(), ct();
210
210
  }, { deep: !0 }), Fe(() => G.dataset, (t) => {
211
- Array.isArray(t) && t.length > 0 && (it.value = !1), $a(), Lt(), rt();
211
+ Array.isArray(t) && t.length > 0 && (it.value = !1), $a(), At(), rt();
212
212
  }, { deep: !0 });
213
- const j = d({
213
+ const j = h({
214
214
  dataLabels: {
215
215
  show: e.value.style.chart.lines.dataLabels.show
216
216
  },
@@ -226,11 +226,11 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
226
226
  showTooltip: e.value.style.chart.tooltip.show
227
227
  };
228
228
  }, { immediate: !0 });
229
- const { isPrinting: zt, isImaging: It, generatePdf: pa, generateImage: ba } = Ws({
229
+ const { isPrinting: zt, isImaging: _t, generatePdf: pa, generateImage: ba } = Hs({
230
230
  elementId: `stackline_${K.value}`,
231
231
  fileName: e.value.style.chart.title.text || "vue-ui-stackline",
232
232
  options: e.value.userOptions.print
233
- }), Tl = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), ne = d({
233
+ }), Tl = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), ne = h({
234
234
  width: e.value.style.chart.width,
235
235
  height: e.value.style.chart.height,
236
236
  paddingRatio: {
@@ -239,12 +239,12 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
239
239
  bottom: e.value.style.chart.padding.bottom / e.value.style.chart.height,
240
240
  left: e.value.style.chart.padding.left / e.value.style.chart.width
241
241
  }
242
- }), Nl = f(() => Ss(e.value.customPalette)), pe = qt(null), Te = qt(null), xa = d(null), _t = f(() => !!e.value.debug);
242
+ }), Nl = f(() => Ss(e.value.customPalette)), pe = qt(null), Te = qt(null), xa = h(null), Ft = f(() => !!e.value.debug);
243
243
  function ka() {
244
244
  if (ol(G.dataset) ? (nl({
245
245
  componentName: "VueUiStackline",
246
246
  type: "dataset",
247
- debug: _t.value
247
+ debug: Ft.value
248
248
  }), it.value = !0) : G.dataset.forEach((t, l) => {
249
249
  Ms({
250
250
  datasetObject: t,
@@ -255,14 +255,14 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
255
255
  type: "datasetSerieAttribute",
256
256
  property: a,
257
257
  index: l,
258
- debug: _t.value
258
+ debug: Ft.value
259
259
  }), it.value = !0;
260
260
  });
261
261
  }), ol(G.dataset) || (it.value = e.value.loading), setTimeout(() => {
262
- St.value = !0;
262
+ Mt.value = !0;
263
263
  }, 10), e.value.responsive) {
264
264
  const t = Rs(() => {
265
- St.value = !1;
265
+ Mt.value = !1;
266
266
  const { width: l, height: a } = Os({
267
267
  chart: ue.value,
268
268
  noTitle: la.value,
@@ -273,7 +273,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
273
273
  });
274
274
  requestAnimationFrame(() => {
275
275
  ne.value.width = l, ne.value.height = a - 12, clearTimeout(xa.value), xa.value = setTimeout(() => {
276
- St.value = !0;
276
+ Mt.value = !0;
277
277
  }, 10);
278
278
  });
279
279
  });
@@ -282,40 +282,40 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
282
282
  mt();
283
283
  }
284
284
  Xt(() => {
285
- ha.stop(), pe.value && (Te.value && pe.value.unobserve(Te.value), pe.value.disconnect());
285
+ da.stop(), pe.value && (Te.value && pe.value.unobserve(Te.value), pe.value.disconnect());
286
286
  });
287
287
  function Pl() {
288
288
  let t = 0;
289
- Ct.value && (t = Array.from(Ct.value.querySelectorAll("text")).reduce((s, n) => {
289
+ Lt.value && (t = Array.from(Lt.value.querySelectorAll("text")).reduce((s, n) => {
290
290
  const o = n.getComputedTextLength();
291
291
  return o > s ? o : s;
292
292
  }, 0));
293
- const l = $t.value ? $t.value.getBoundingClientRect().width : 0;
293
+ const l = Ct.value ? Ct.value.getBoundingClientRect().width : 0;
294
294
  return t + l + (l ? 24 : 0);
295
295
  }
296
- const Ft = d(0), We = d(0), He = d(0);
297
- function zl() {
296
+ const Et = h(0), He = h(0), We = h(0);
297
+ function Il() {
298
298
  const t = nt.value;
299
299
  if (!t) {
300
- We.value = 0;
300
+ He.value = 0;
301
301
  return;
302
302
  }
303
303
  try {
304
304
  const l = t.getBBox();
305
- We.value = Number.isFinite(l?.height) ? l.height : 0;
305
+ He.value = Number.isFinite(l?.height) ? l.height : 0;
306
306
  } catch {
307
- We.value = 0;
307
+ He.value = 0;
308
308
  }
309
309
  }
310
- function Il() {
311
- He.value && cancelAnimationFrame(He.value), He.value = requestAnimationFrame(() => {
310
+ function zl() {
311
+ We.value && cancelAnimationFrame(We.value), We.value = requestAnimationFrame(() => {
312
312
  requestAnimationFrame(() => {
313
- zl();
313
+ Il();
314
314
  });
315
315
  });
316
316
  }
317
317
  Xt(() => {
318
- He.value && cancelAnimationFrame(He.value), We.value = 0, Ft.value = 0;
318
+ We.value && cancelAnimationFrame(We.value), He.value = 0, Et.value = 0;
319
319
  });
320
320
  const wa = f(() => {
321
321
  let t = 0;
@@ -325,26 +325,26 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
325
325
  } catch {
326
326
  t = 0;
327
327
  }
328
- const l = e.value.style.chart.grid.x.timeLabels.show ? We.value : 0;
328
+ const l = e.value.style.chart.grid.x.timeLabels.show ? He.value : 0;
329
329
  return t + l;
330
- }), h = f(() => {
330
+ }), d = f(() => {
331
331
  ua.value;
332
332
  const { height: t, width: l } = ne.value, { right: a } = ne.value.paddingRatio;
333
333
  let s = e.value.style.chart.lines.totalValues.show && G.dataset && G.dataset.length > 1 ? e.value.style.chart.lines.totalValues.fontSize * 1.3 : 0, n = 0;
334
334
  e.value.style.chart.grid.y.axisLabels.show && (n = Pl());
335
- const o = e.value.style.chart.padding.top + s, r = l - l * a - Ft.value, b = t - e.value.style.chart.padding.bottom - wa.value - s, w = e.value.style.chart.padding.left + n, A = l - w - l * a - Ft.value, S = t - o - e.value.style.chart.padding.bottom - wa.value - s;
335
+ const o = e.value.style.chart.padding.top + s, r = l - l * a - Et.value, y = t - e.value.style.chart.padding.bottom - wa.value - s, k = e.value.style.chart.padding.left + n, A = l - k - l * a - Et.value, S = t - o - e.value.style.chart.padding.bottom - wa.value - s;
336
336
  return {
337
337
  chartHeight: Math.max(0, t),
338
338
  chartWidth: Math.max(0, l),
339
339
  top: o,
340
340
  right: Math.max(0, r),
341
- bottom: Math.max(0, b),
342
- left: Math.max(0, w),
341
+ bottom: Math.max(0, y),
342
+ left: Math.max(0, k),
343
343
  width: Math.max(0, A),
344
344
  height: Math.max(0, S)
345
345
  };
346
346
  }), _l = f(() => {
347
- const { left: t, top: l, width: a, height: s } = h.value, n = c.value.start, o = c.value.end, r = Math.max(1, o - n), b = Math.max(0, Math.min(r, (re.value.start ?? n) - n)), w = Math.max(0, Math.min(r, (re.value.end ?? o) - n)), A = Math.max(0, w - b), S = {
347
+ const { left: t, top: l, width: a, height: s } = d.value, n = c.value.start, o = c.value.end, r = Math.max(1, o - n), y = Math.max(0, Math.min(r, (re.value.start ?? n) - n)), k = Math.max(0, Math.min(r, (re.value.end ?? o) - n)), A = Math.max(0, k - y), S = {
348
348
  fill: e.value.style.chart.zoom.preview.fill,
349
349
  stroke: e.value.style.chart.zoom.preview.stroke,
350
350
  "stroke-width": e.value.style.chart.zoom.preview.strokeWidth,
@@ -356,16 +356,16 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
356
356
  transition: "none !important",
357
357
  animation: "none !important"
358
358
  }
359
- }, z = a / r;
359
+ }, I = a / r;
360
360
  return {
361
- x: t + b * z,
361
+ x: t + y * I,
362
362
  y: l,
363
- width: A * z,
363
+ width: A * I,
364
364
  height: s,
365
365
  ...S
366
366
  };
367
- }), Z = f(() => Tt.value.map((t, l) => {
368
- const a = $s(t.color) || Nl.value[l] || bt[l] || bt[l % bt.length];
367
+ }), Z = f(() => Nt.value.map((t, l) => {
368
+ const a = $s(t.color) || Nl.value[l] || xt[l] || xt[l % xt.length];
369
369
  return {
370
370
  ...t,
371
371
  shape: t.shape || "circle",
@@ -390,11 +390,11 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
390
390
  function Fl(t) {
391
391
  Ye.value = t;
392
392
  }
393
- const c = d({
393
+ const c = h({
394
394
  start: 0,
395
- end: Math.max(...Tt.value.map((t) => t.series.length))
396
- }), re = d({ start: 0, end: Math.max(...Tt.value.map((t) => t.series.length)) });
397
- function Et(t) {
395
+ end: Math.max(...Nt.value.map((t) => t.series.length))
396
+ }), re = h({ start: 0, end: Math.max(...Nt.value.map((t) => t.series.length)) });
397
+ function Rt(t) {
398
398
  return (c.value.start ?? 0) + (t ?? 0);
399
399
  }
400
400
  const Sa = f(() => e.value.style.chart.zoom.preview.enable && (re.value.start !== c.value.start || re.value.end !== c.value.end));
@@ -406,7 +406,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
406
406
  let l = Math.max(0, Math.min(c.value.start ?? 0, t - 1)), a = Math.max(l + 1, Math.min(c.value.end ?? t, t));
407
407
  (!Number.isFinite(l) || !Number.isFinite(a) || a <= l) && (l = 0, a = t), c.value.start = l, c.value.end = a, re.value.start = l, re.value.end = a, Oe.value && (Oe.value.setStartValue(l), Oe.value.setEndValue(a));
408
408
  }
409
- const Ue = d(null);
409
+ const Ue = h(null);
410
410
  function El() {
411
411
  return new Promise((t) => requestAnimationFrame(
412
412
  () => requestAnimationFrame(() => t())
@@ -420,11 +420,11 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
420
420
  await El(), mt();
421
421
  });
422
422
  }
423
- const vt = f(() => Math.max(0, h.value.width / (c.value.end - c.value.start))), Ca = f(() => Qe(
423
+ const vt = f(() => Math.max(0, d.value.width / (c.value.end - c.value.start))), Ca = f(() => Qe(
424
424
  Me.value.map((t) => ({ ...t, series: t.series.map((l) => l ?? 0) }))
425
- ).slice(c.value.start, c.value.end)), ht = f(() => D.value.length === Z.value.length), La = f(() => {
425
+ ).slice(c.value.start, c.value.end)), dt = f(() => D.value.length === Z.value.length), La = f(() => {
426
426
  if (!e.value.style.chart.zoom.minimap.show) return [];
427
- const t = Z.value.filter((n) => ht.value ? !0 : !D.value.includes(n.id) && !n.standalone);
427
+ const t = Z.value.filter((n) => dt.value ? !0 : !D.value.includes(n.id) && !n.standalone);
428
428
  if (t.length)
429
429
  return Qe(
430
430
  t.map((n) => ({
@@ -437,11 +437,11 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
437
437
  const a = Math.max(...l.map((n) => n.series.length || 0));
438
438
  return Array.from(
439
439
  { length: a },
440
- (n, o) => l.reduce((r, b) => r + Math.abs(b.series[o] ?? 0), 0)
440
+ (n, o) => l.reduce((r, y) => r + Math.abs(y.series[o] ?? 0), 0)
441
441
  );
442
442
  }), Rl = f(() => {
443
443
  if (!e.value.style.chart.zoom.minimap.show) return [];
444
- const l = Z.value.filter((o) => ht.value ? !0 : !D.value.includes(o.id) && !o.standalone), a = ut.value, s = l.length ? [{
444
+ const l = Z.value.filter((o) => dt.value ? !0 : !D.value.includes(o.id) && !o.standalone), a = ut.value, s = l.length ? [{
445
445
  name: "",
446
446
  series: La.value,
447
447
  color: "#000000",
@@ -489,42 +489,42 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
489
489
  sign: t >= 0 ? 1 : -1
490
490
  })));
491
491
  function Dl() {
492
- return { y0: ze.value?.[0]?.zero ?? h.value.bottom };
492
+ return { y0: Ie.value?.[0]?.zero ?? d.value.bottom };
493
493
  }
494
494
  function Vl(t) {
495
- const { y0: l } = Dl(), a = e.value.style.chart.lines.totalValues, s = Math.max(2, a.fontSize * 1.3 + a.offsetY), n = (r) => Math.min(Math.max(r, h.value.top - e.value.style.chart.lines.totalValues.fontSize * 1.3), h.value.bottom + e.value.style.chart.lines.totalValues.fontSize * 2);
495
+ const { y0: l } = Dl(), a = e.value.style.chart.lines.totalValues, s = Math.max(2, a.fontSize * 1.3 + a.offsetY), n = (r) => Math.min(Math.max(r, d.value.top - e.value.style.chart.lines.totalValues.fontSize * 1.3), d.value.bottom + e.value.style.chart.lines.totalValues.fontSize * 2);
496
496
  if ((Aa.value?.[t]?.value ?? 0) >= 0 || e.value.style.chart.lines.distributed) {
497
497
  let r = 1 / 0;
498
- for (const w of T.value || []) {
499
- const A = w?.series?.[t], S = w?.topY?.[t];
498
+ for (const k of T.value || []) {
499
+ const A = k?.series?.[t], S = k?.topY?.[t];
500
500
  (A ?? 0) > 0 && Number.isFinite(S) && S < r && (r = S);
501
501
  }
502
- const b = Number.isFinite(r) ? r : l;
503
- return n(b - s - e.value.style.chart.lines.totalValues.offsetY);
502
+ const y = Number.isFinite(r) ? r : l;
503
+ return n(y - s - e.value.style.chart.lines.totalValues.offsetY);
504
504
  } else {
505
505
  let r = -1 / 0;
506
- for (const w of T.value || []) {
507
- const A = w?.series?.[t], S = w?.topY?.[t];
506
+ for (const k of T.value || []) {
507
+ const A = k?.series?.[t], S = k?.topY?.[t];
508
508
  (A ?? 0) < 0 && Number.isFinite(S) && S > r && (r = S);
509
509
  }
510
- const b = Number.isFinite(r) ? r : l;
511
- return n(b + s + a.fontSize * 0.7 + e.value.style.chart.lines.totalValues.offsetY);
510
+ const y = Number.isFinite(r) ? r : l;
511
+ return n(y + s + a.fontSize * 0.7 + e.value.style.chart.lines.totalValues.offsetY);
512
512
  }
513
513
  }
514
- const ze = f(() => {
515
- const t = Math.max(...Ne.value.positive, 0), l = Math.min(...Ne.value.negative, 0), a = Math.max(...Pe.value.positive, 0), s = Math.min(...Pe.value.negative, 0), n = Math.max(t, a), o = Math.min(l, s), r = [-1 / 0, 1 / 0, NaN, void 0, null].includes(o) ? 0 : o, b = e.value.style.chart.grid.scale.scaleMin, w = e.value.style.chart.grid.scale.scaleMax, A = !e.value.style.chart.lines.distributed && (b !== null || w !== null), S = b !== null && !e.value.style.chart.lines.distributed ? b : r > 0 ? 0 : r, z = w !== null && !e.value.style.chart.lines.distributed ? w : n < 0 ? 0 : n, E = A ? xt(S, z, e.value.style.chart.grid.scale.ticks) : kt(S, z, e.value.style.chart.grid.scale.ticks), M = Math.abs(Number(E.min) || 0), u = (Number(E.max) || 0) + M, k = u === 0 || !Number.isFinite(u) ? 1 : u, V = Array.isArray(E.ticks) && E.ticks.length ? E.ticks : [0], y = h.value.bottom - h.value.height * (M / k);
514
+ const Ie = f(() => {
515
+ const t = Math.max(...Ne.value.positive, 0), l = Math.min(...Ne.value.negative, 0), a = Math.max(...Pe.value.positive, 0), s = Math.min(...Pe.value.negative, 0), n = Math.max(t, a), o = Math.min(l, s), r = [-1 / 0, 1 / 0, NaN, void 0, null].includes(o) ? 0 : o, y = e.value.style.chart.grid.scale.scaleMin, k = e.value.style.chart.grid.scale.scaleMax, A = !e.value.style.chart.lines.distributed && (y !== null || k !== null), S = y !== null && !e.value.style.chart.lines.distributed ? y : r > 0 ? 0 : r, I = k !== null && !e.value.style.chart.lines.distributed ? k : n < 0 ? 0 : n, E = A ? kt(S, I, e.value.style.chart.grid.scale.ticks) : wt(S, I, e.value.style.chart.grid.scale.ticks), M = Math.abs(Number(E.min) || 0), u = (Number(E.max) || 0) + M, w = u === 0 || !Number.isFinite(u) ? 1 : u, V = Array.isArray(E.ticks) && E.ticks.length ? E.ticks : [0], g = d.value.bottom - d.value.height * (M / w);
516
516
  return V.map(($) => {
517
- const R = Number($) || 0, _ = h.value.bottom - h.value.height * ((R + M) / k);
517
+ const R = Number($) || 0, _ = d.value.bottom - d.value.height * ((R + M) / w);
518
518
  return {
519
- zero: y,
519
+ zero: g,
520
520
  y: _,
521
521
  x: ae.value.left - 8,
522
522
  value: R
523
523
  };
524
524
  });
525
- }), se = d([]), Ie = d([]);
525
+ }), se = h([]), ze = h([]);
526
526
  let Ta = 0;
527
- gt(() => {
527
+ pt(() => {
528
528
  const t = ++Ta;
529
529
  (async () => {
530
530
  const l = await il({
@@ -538,7 +538,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
538
538
  })();
539
539
  });
540
540
  let Na = 0;
541
- gt(() => {
541
+ pt(() => {
542
542
  const t = ++Na;
543
543
  (async () => {
544
544
  const l = await il({
@@ -548,38 +548,38 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
548
548
  start: 0,
549
549
  end: me.value
550
550
  });
551
- t === Na && (Ie.value = l);
551
+ t === Na && (ze.value = l);
552
552
  })();
553
553
  });
554
554
  const Bl = f(() => {
555
555
  const t = e.value.style.chart.grid.x.timeLabels.modulo;
556
556
  return se.value.length ? Math.min(t, [...new Set(se.value.map((l) => l.text))].length) : t;
557
- }), dt = f(() => {
558
- const t = e.value.style.chart.grid.x.timeLabels, l = se.value || [], a = Ie.value || [], s = c.value.start ?? 0, n = p.value, o = me.value, r = l.map((w) => w?.text ?? ""), b = a.map((w) => w?.text ?? "");
557
+ }), ht = f(() => {
558
+ const t = e.value.style.chart.grid.x.timeLabels, l = se.value || [], a = ze.value || [], s = c.value.start ?? 0, n = b.value, o = me.value, r = l.map((k) => k?.text ?? ""), y = a.map((k) => k?.text ?? "");
559
559
  return Cs(
560
560
  !!t.showOnlyFirstAndLast,
561
561
  !!t.showOnlyAtModulo,
562
562
  Math.max(1, Bl.value || 1),
563
563
  r,
564
- b,
564
+ y,
565
565
  s,
566
566
  n,
567
567
  o
568
568
  );
569
569
  });
570
- gt(() => {
571
- e.value.style.chart.grid.x.timeLabels.show, e.value.style.chart.grid.x.timeLabels.fontSize, e.value.style.chart.grid.x.timeLabels.rotation, e.value.style.chart.grid.x.timeLabels.offsetY, (dt.value || []).map((t) => t?.text ?? "").join("|"), ne.value.width, ne.value.height, nt.value, ot.value, Il();
570
+ pt(() => {
571
+ e.value.style.chart.grid.x.timeLabels.show, e.value.style.chart.grid.x.timeLabels.fontSize, e.value.style.chart.grid.x.timeLabels.rotation, e.value.style.chart.grid.x.timeLabels.offsetY, (ht.value || []).map((t) => t?.text ?? "").join("|"), ne.value.width, ne.value.height, nt.value, ot.value, zl();
572
572
  }, { flush: "post" });
573
- const Pa = d({ months: [], shortMonths: [], days: [], shortDays: [] });
574
- let za = 0;
575
- gt(() => {
576
- const t = ++za, l = e.value.style.chart.grid.x.timeLabels.datetimeFormatter;
573
+ const Pa = h({ months: [], shortMonths: [], days: [], shortDays: [] });
574
+ let Ia = 0;
575
+ pt(() => {
576
+ const t = ++Ia, l = e.value.style.chart.grid.x.timeLabels.datetimeFormatter;
577
577
  (async () => {
578
578
  const a = await ul(l.locale).catch(() => ul("en"));
579
- t === za && (Pa.value = a.data);
579
+ t === Ia && (Pa.value = a.data);
580
580
  })();
581
581
  });
582
- const Ia = f(() => {
582
+ const za = f(() => {
583
583
  const t = e.value.style.chart.grid.x.timeLabels.datetimeFormatter, l = Ds({
584
584
  useUTC: t.useUTC,
585
585
  locale: Pa.value,
@@ -590,89 +590,89 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
590
590
  return o == null ? "" : l.formatDate(new Date(o), s);
591
591
  };
592
592
  }), _a = f(() => (e.value.style.chart.grid.x.timeLabels.values || []).map((l, a) => ({
593
- text: Ia.value(a, e.value.style.chart.zoom.timeFormat),
593
+ text: za.value(a, e.value.style.chart.zoom.timeFormat),
594
594
  absoluteIndex: a
595
- }))), Rt = f(() => (e.value.style.chart.grid.x.timeLabels.values || []).map((l, a) => ({
596
- text: Ia.value(a, e.value.style.chart.tooltip.timeFormat),
595
+ }))), Ot = f(() => (e.value.style.chart.grid.x.timeLabels.values || []).map((l, a) => ({
596
+ text: za.value(a, e.value.style.chart.tooltip.timeFormat),
597
597
  absoluteIndex: a
598
598
  }))), Yl = f(() => {
599
- if (!Ee.value && !he.value) return [];
600
- const t = h.value.height, l = ze.value[0] ? ze.value[0].zero : h.value.bottom, a = c.value.start ?? 0, s = c.value.end ?? 0, n = Math.max(1, s - a), o = Math.max(...Ne.value.positive, 0), r = Math.min(...Ne.value.negative, 0), b = Math.max(...Pe.value.positive, 0), w = Math.min(...Pe.value.negative, 0), A = Math.max(o, b), S = Math.min(r, w), z = !e.value.style.chart.lines.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? xt(
599
+ if (!Ee.value && !de.value) return [];
600
+ const t = d.value.height, l = Ie.value[0] ? Ie.value[0].zero : d.value.bottom, a = c.value.start ?? 0, s = c.value.end ?? 0, n = Math.max(1, s - a), o = Math.max(...Ne.value.positive, 0), r = Math.min(...Ne.value.negative, 0), y = Math.max(...Pe.value.positive, 0), k = Math.min(...Pe.value.negative, 0), A = Math.max(o, y), S = Math.min(r, k), I = !e.value.style.chart.lines.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? kt(
601
601
  e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : S > 0 ? 0 : S,
602
602
  e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : A < 0 ? 0 : A,
603
603
  e.value.style.chart.grid.scale.ticks
604
- ) : kt(
604
+ ) : wt(
605
605
  e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : S > 0 ? 0 : S,
606
606
  e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : A < 0 ? 0 : A,
607
607
  e.value.style.chart.grid.scale.ticks
608
- ), { min: E, max: M } = z, m = M + (E >= 0 ? 0 : Math.abs(E)) || 1, u = Array(n).fill(0), k = Array(n).fill(0), V = (y) => n <= 1 ? h.value.left + h.value.width / 2 : h.value.left + y / (n - 1) * h.value.width;
609
- return Z.value.filter((y) => !D.value.includes(y.id)).map((y) => {
610
- const $ = [], R = [], _ = [], I = new Array(n).fill(null), B = new Array(n).fill(null);
611
- for (let g = 0; g < n; g += 1) {
612
- const L = a + g, q = y.series?.[L], H = y.signedSeries?.[L], xe = q == null || Number.isNaN(q) ? 0 : q, el = y.standalone ? xe / m : e.value.style.chart.lines.distributed ? xe / (Ca.value[g] || 1) : xe / m;
608
+ ), { min: E, max: M } = I, m = M + (E >= 0 ? 0 : Math.abs(E)) || 1, u = Array(n).fill(0), w = Array(n).fill(0), V = (g) => n <= 1 ? d.value.left + d.value.width / 2 : d.value.left + g / (n - 1) * d.value.width;
609
+ return Z.value.filter((g) => !D.value.includes(g.id)).map((g) => {
610
+ const $ = [], R = [], _ = [], z = new Array(n).fill(null), B = new Array(n).fill(null);
611
+ for (let p = 0; p < n; p += 1) {
612
+ const L = a + p, q = g.series?.[L], U = g.signedSeries?.[L], xe = q == null || Number.isNaN(q) ? 0 : q, el = g.standalone ? xe / m : e.value.style.chart.lines.distributed ? xe / (Ca.value[p] || 1) : xe / m;
613
613
  if (xe >= 0) {
614
614
  const je = t * Math.abs(el);
615
- if (y.standalone)
616
- I[g] = l, B[g] = l - je;
615
+ if (g.standalone)
616
+ z[p] = l, B[p] = l - je;
617
617
  else {
618
- const Je = u[g], Ke = Je + je;
619
- I[g] = l - Je, B[g] = l - Ke, u[g] = Ke;
618
+ const Je = u[p], Ke = Je + je;
619
+ z[p] = l - Je, B[p] = l - Ke, u[p] = Ke;
620
620
  }
621
621
  } else {
622
622
  const je = t * Math.abs(el);
623
- if (y.standalone)
624
- I[g] = l, B[g] = l + je;
623
+ if (g.standalone)
624
+ z[p] = l, B[p] = l + je;
625
625
  else {
626
- const Je = k[g], Ke = Je + je;
627
- I[g] = l + Je, B[g] = l + Ke, k[g] = Ke;
626
+ const Je = w[p], Ke = Je + je;
627
+ z[p] = l + Je, B[p] = l + Ke, w[p] = Ke;
628
628
  }
629
629
  }
630
- $.push(g), R.push(xe), _.push(H ?? (xe >= 0 ? 1 : -1));
630
+ $.push(p), R.push(xe), _.push(U ?? (xe >= 0 ? 1 : -1));
631
631
  }
632
- const Y = $.map((g) => ({ x: V(g), y: B[g] })), Q = Y.map((g) => g.x), J = R.reduce((g, L) => g + Math.abs(L || 0), 0), W = J === 0 ? 1 : J, O = R.map((g, L) => {
633
- if (e.value.style.chart.lines.distributed && !y.standalone) {
634
- const q = $[L], H = Ca.value[q] || 1;
635
- return (g || 0) / H;
632
+ const H = $.map((p) => ({ x: V(p), y: B[p] })), Q = H.map((p) => p.x), J = R.reduce((p, L) => p + Math.abs(L || 0), 0), W = J === 0 ? 1 : J, O = R.map((p, L) => {
633
+ if (e.value.style.chart.lines.distributed && !g.standalone) {
634
+ const q = $[L], U = Ca.value[q] || 1;
635
+ return (p || 0) / U;
636
636
  }
637
- return (g || 0) / W;
637
+ return (p || 0) / W;
638
638
  });
639
639
  return {
640
- ...y,
640
+ ...g,
641
641
  x: Q,
642
- points: Y,
643
- baseY: $.map((g) => I[g]),
644
- topY: $.map((g) => B[g]),
642
+ points: H,
643
+ baseY: $.map((p) => z[p]),
644
+ topY: $.map((p) => B[p]),
645
645
  series: R,
646
646
  signedSeries: _,
647
647
  proportions: O,
648
648
  rel: $,
649
- fullSeries: Array.isArray(y.fullSeries) ? y.fullSeries : y.series
649
+ fullSeries: Array.isArray(g.fullSeries) ? g.fullSeries : g.series
650
650
  };
651
651
  });
652
652
  }), T = f(() => {
653
653
  const t = (M) => typeof M == "string" ? M.replace(
654
654
  /^M\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*,?\s*[-+]?[\d.]+(?:e[-+]?\d+)?\s*/i,
655
655
  ""
656
- ).trim() : "", l = Math.max(...Ne.value.positive, 0), a = Math.min(...Ne.value.negative, 0), s = Math.max(...Pe.value.positive, 0), n = Math.min(...Pe.value.negative, 0), o = Math.max(l, s), r = Math.min(a, n), b = !e.value.style.chart.lines.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? xt(
656
+ ).trim() : "", l = Math.max(...Ne.value.positive, 0), a = Math.min(...Ne.value.negative, 0), s = Math.max(...Pe.value.positive, 0), n = Math.min(...Pe.value.negative, 0), o = Math.max(l, s), r = Math.min(a, n), y = !e.value.style.chart.lines.distributed && (e.value.style.chart.grid.scale.scaleMax !== null || e.value.style.chart.grid.scale.scaleMin !== null) ? kt(
657
657
  e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : r > 0 ? 0 : r,
658
658
  e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : o < 0 ? 0 : o,
659
659
  e.value.style.chart.grid.scale.ticks
660
- ) : kt(
660
+ ) : wt(
661
661
  e.value.style.chart.grid.scale.scaleMin !== null ? e.value.style.chart.grid.scale.scaleMin : r > 0 ? 0 : r,
662
662
  e.value.style.chart.grid.scale.scaleMax !== null ? e.value.style.chart.grid.scale.scaleMax : o < 0 ? 0 : o,
663
663
  e.value.style.chart.grid.scale.ticks
664
- ), w = Number(b.min) || 0, A = Number(b.max) || 0, S = Math.abs(w), z = A + S || 1, E = (M) => {
664
+ ), k = Number(y.min) || 0, A = Number(y.max) || 0, S = Math.abs(k), I = A + S || 1, E = (M) => {
665
665
  if (e.value.style.chart.lines.distributed) {
666
666
  const m = Math.max(0, Math.min(1, M));
667
667
  return minimapH - minimapH * m;
668
668
  }
669
- return clampY(minimapH - minimapH * (((M ?? 0) + S) / z));
669
+ return clampY(minimapH - minimapH * (((M ?? 0) + S) / I));
670
670
  };
671
671
  return Yl.value.map((M) => {
672
- const m = M.x.length, u = Array.isArray(M.fullSeries) ? M.fullSeries : M.series, k = ({ left: W = 0, unitW: O }) => {
673
- const g = u.length;
674
- return !Number.isFinite(O) || O <= 0 || g <= 0 ? [] : g === 1 ? [W + O * 0.5] : u.map((L, q) => W + q * O);
675
- }, V = ({ minimapH: W }) => !Number.isFinite(W) || W <= 0 ? [] : u.map((O) => E(O || 0)), y = ({ minimapH: W }) => {
672
+ const m = M.x.length, u = Array.isArray(M.fullSeries) ? M.fullSeries : M.series, w = ({ left: W = 0, unitW: O }) => {
673
+ const p = u.length;
674
+ return !Number.isFinite(O) || O <= 0 || p <= 0 ? [] : p === 1 ? [W + O * 0.5] : u.map((L, q) => W + q * O);
675
+ }, V = ({ minimapH: W }) => !Number.isFinite(W) || W <= 0 ? [] : u.map((O) => E(O || 0)), g = ({ minimapH: W }) => {
676
676
  if (!Number.isFinite(W) || W <= 0) return [];
677
677
  const O = E(0);
678
678
  return u.map(() => O);
@@ -685,29 +685,29 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
685
685
  straightPath: "",
686
686
  smoothArea: "",
687
687
  straightArea: "",
688
- xMinimap: k,
688
+ xMinimap: w,
689
689
  yMinimap: V,
690
- yMinimapBase: y
690
+ yMinimapBase: g
691
691
  };
692
- const $ = M.x.map((W, O) => ({ x: W, y: M.topY[O] })), R = M.x.map((W, O) => ({ x: W, y: M.baseY[O] })), _ = m >= 2 ? we($) : `M${$[0].x},${$[0].y}`, I = m >= 2 ? Se($) : `M${$[0].x},${$[0].y}`, B = m >= 2 ? `M${t(_)}` : _, Y = m >= 2 ? `M${t(I)}` : I;
692
+ const $ = M.x.map((W, O) => ({ x: W, y: M.topY[O] })), R = M.x.map((W, O) => ({ x: W, y: M.baseY[O] })), _ = m >= 2 ? we($) : `M${$[0].x},${$[0].y}`, z = m >= 2 ? Se($) : `M${$[0].x},${$[0].y}`, B = m >= 2 ? `M${t(_)}` : _, H = m >= 2 ? `M${t(z)}` : z;
693
693
  let Q = "", J = "";
694
694
  if (e.value.style.chart.lines.useArea && m >= 2) {
695
- const W = we([...R].reverse()), O = Se([...R].reverse()), g = R[R.length - 1];
696
- Q = `M${$[0].x},${$[0].y} ${t(_)} L${g.x},${g.y} ${t(W)} Z`, J = `M${$[0].x},${$[0].y} ${t(I)} L${g.x},${g.y} ${t(O)} Z`;
695
+ const W = we([...R].reverse()), O = Se([...R].reverse()), p = R[R.length - 1];
696
+ Q = `M${$[0].x},${$[0].y} ${t(_)} L${p.x},${p.y} ${t(W)} Z`, J = `M${$[0].x},${$[0].y} ${t(z)} L${p.x},${p.y} ${t(O)} Z`;
697
697
  }
698
698
  return {
699
699
  ...M,
700
700
  points: $,
701
701
  smoothPath: B,
702
- straightPath: Y,
702
+ straightPath: H,
703
703
  smoothArea: Q,
704
704
  straightArea: J,
705
- xMinimap: k,
705
+ xMinimap: w,
706
706
  yMinimap: V,
707
- yMinimapBase: y
707
+ yMinimapBase: g
708
708
  };
709
709
  });
710
- }), qe = d(!1), Fa = d(!1);
710
+ }), qe = h(!1), Fa = h(!1);
711
711
  function Ea(t) {
712
712
  const l = me.value;
713
713
  return t > l ? l : t < 0 || t < c.value.start ? e.value.style.chart.zoom.startIndex !== null ? c.value.start + 1 : 1 : t;
@@ -725,19 +725,19 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
725
725
  }
726
726
  }
727
727
  }
728
- function Wl(t) {
728
+ function Hl(t) {
729
729
  qe.value || ft.value || t !== c.value.start && (c.value.start = t, re.value.start = t, ct());
730
730
  }
731
- function Hl(t) {
731
+ function Wl(t) {
732
732
  if (qe.value || ft.value) return;
733
733
  const l = Ea(t);
734
734
  l !== c.value.end && (c.value.end = l, re.value.end = l, ct());
735
735
  }
736
736
  const ae = f(() => ({
737
- left: h.value.left,
738
- right: h.value.right,
739
- width: h.value.width
740
- })), ft = d(!1), Ul = f(() => ne.value.width), ql = f(() => ne.value.height);
737
+ left: d.value.left,
738
+ right: d.value.right,
739
+ width: d.value.width
740
+ })), ft = h(!1), Ul = f(() => ne.value.width), ql = f(() => ne.value.height);
741
741
  Gs({
742
742
  timeLabelsEls: nt,
743
743
  timeLabels: se,
@@ -750,69 +750,69 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
750
750
  height: ql,
751
751
  rotation: e.value.style.chart.grid.x.timeLabels.autoRotate.angle
752
752
  });
753
- const Ot = d(null);
753
+ const yt = h(null);
754
754
  function Ra(t) {
755
- const l = de.value;
755
+ const l = he.value;
756
756
  if (!l) return null;
757
757
  if (l.createSVGPoint && l.getScreenCTM) {
758
- const z = l.createSVGPoint();
759
- z.x = t.clientX, z.y = t.clientY;
758
+ const I = l.createSVGPoint();
759
+ I.x = t.clientX, I.y = t.clientY;
760
760
  const E = l.getScreenCTM();
761
761
  if (E) {
762
- const M = z.matrixTransform(E.inverse());
762
+ const M = I.matrixTransform(E.inverse());
763
763
  return { x: M.x, y: M.y, ok: !0 };
764
764
  }
765
765
  }
766
- const a = l.getBoundingClientRect(), s = l.viewBox?.baseVal || { x: 0, y: 0, width: a.width, height: a.height }, n = Math.min(a.width / s.width, a.height / s.height), o = s.width * n, r = s.height * n, b = (a.width - o) / 2, w = (a.height - r) / 2, A = (t.clientX - a.left - b) / n + s.x, S = (t.clientY - a.top - w) / n + s.y;
766
+ const a = l.getBoundingClientRect(), s = l.viewBox?.baseVal || { x: 0, y: 0, width: a.width, height: a.height }, n = Math.min(a.width / s.width, a.height / s.height), o = s.width * n, r = s.height * n, y = (a.width - o) / 2, k = (a.height - r) / 2, A = (t.clientX - a.left - y) / n + s.x, S = (t.clientY - a.top - k) / n + s.y;
767
767
  return { x: A, y: S, ok: !0 };
768
768
  }
769
769
  let $e = 0;
770
- const U = f(() => Math.max(1, c.value.end - c.value.start)), yt = f(
771
- () => U.value > 1 ? h.value.width / (U.value - 1) : 0
770
+ const Y = f(() => Math.max(1, c.value.end - c.value.start)), gt = f(
771
+ () => Y.value > 1 ? d.value.width / (Y.value - 1) : 0
772
772
  );
773
773
  function ie(t) {
774
- return U.value <= 1 ? h.value.left + h.value.width / 2 : h.value.left + t * yt.value;
774
+ return Y.value <= 1 ? d.value.left + d.value.width / 2 : d.value.left + t * gt.value;
775
775
  }
776
776
  function Oa(t) {
777
- if (U.value <= 1)
778
- return { x: h.value.left, width: h.value.width };
779
- const l = t === 0 ? h.value.left : (ie(t - 1) + ie(t)) / 2, a = t === U.value - 1 ? h.value.left + h.value.width : (ie(t) + ie(t + 1)) / 2;
777
+ if (Y.value <= 1)
778
+ return { x: d.value.left, width: d.value.width };
779
+ const l = t === 0 ? d.value.left : (ie(t - 1) + ie(t)) / 2, a = t === Y.value - 1 ? d.value.left + d.value.width : (ie(t) + ie(t + 1)) / 2;
780
780
  return { x: l, width: Math.max(0, a - l) };
781
781
  }
782
782
  function Xl(t) {
783
783
  Ae.value || ($e && cancelAnimationFrame($e), $e = requestAnimationFrame(() => {
784
784
  $e = 0;
785
785
  const l = Ra(t);
786
- if (!l || !de.value) {
786
+ if (!l || !he.value) {
787
787
  Dt();
788
788
  return;
789
789
  }
790
- const { left: a, right: s, top: n, bottom: o } = h.value;
790
+ const { left: a, right: s, top: n, bottom: o } = d.value;
791
791
  if (l.x < a || l.x > s || l.y < n || l.y > o) {
792
792
  Dt();
793
793
  return;
794
794
  }
795
795
  let r = 0;
796
- if (U.value > 1) {
797
- const b = (l.x - a) / yt.value;
798
- r = Math.round(b);
796
+ if (Y.value > 1) {
797
+ const y = (l.x - a) / gt.value;
798
+ r = Math.round(y);
799
799
  } else
800
800
  r = 0;
801
- r < 0 && (r = 0), r > U.value - 1 && (r = U.value - 1), Ot.value !== r && (Ot.value = r, Bt(!0, r));
801
+ r < 0 && (r = 0), r > Y.value - 1 && (r = Y.value - 1), yt.value !== r && (yt.value = r, Bt(!0, r));
802
802
  }));
803
803
  }
804
804
  function Gl(t) {
805
805
  const l = Ra(t);
806
- if (!l || !de.value) return;
807
- const { left: a, right: s, top: n, bottom: o } = h.value;
806
+ if (!l || !he.value) return;
807
+ const { left: a, right: s, top: n, bottom: o } = d.value;
808
808
  if (l.x < a || l.x > s || l.y < n || l.y > o) return;
809
809
  let r = 0;
810
- if (U.value > 1) {
811
- const b = (l.x - a) / yt.value;
812
- r = Math.round(b);
810
+ if (Y.value > 1) {
811
+ const y = (l.x - a) / gt.value;
812
+ r = Math.round(y);
813
813
  } else
814
814
  r = 0;
815
- r < 0 && (r = 0), r > U.value - 1 && (r = U.value - 1), Za({
815
+ r < 0 && (r = 0), r > Y.value - 1 && (r = Y.value - 1), Za({
816
816
  seriesIndex: r,
817
817
  datapoint: ja(r)
818
818
  }), Da(r);
@@ -830,21 +830,21 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
830
830
  Fe(
831
831
  () => [c.value.start, c.value.end, T.value.length],
832
832
  () => {
833
- const t = U.value;
834
- if (p.value != null) {
833
+ const t = Y.value;
834
+ if (b.value != null) {
835
835
  if (t <= 0) {
836
- p.value = null;
836
+ b.value = null;
837
837
  return;
838
838
  }
839
- p.value < 0 && (p.value = 0), p.value > t - 1 && (p.value = t - 1);
839
+ b.value < 0 && (b.value = 0), b.value > t - 1 && (b.value = t - 1);
840
840
  }
841
841
  }
842
842
  );
843
843
  function Dt() {
844
- $e && (cancelAnimationFrame($e), $e = 0), Ot.value = null, Bt(!1, null);
844
+ $e && (cancelAnimationFrame($e), $e = 0), yt.value = null, Bt(!1, null);
845
845
  }
846
- const p = d(null), Vt = f(() => {
847
- const t = p.value, l = t == null ? null : Et(t);
846
+ const b = h(null), Vt = f(() => {
847
+ const t = b.value, l = t == null ? null : Rt(t);
848
848
  return T.value.map((a) => ({
849
849
  slotAbsoluteIndex: a.absoluteIndex,
850
850
  shape: a.shape || "circle",
@@ -857,19 +857,19 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
857
857
  standalone: !!a.standalone
858
858
  }));
859
859
  }), jl = f(() => {
860
- const t = e.value.style.chart.tooltip.customFormat, l = [...Vt.value].reverse(), a = l.filter((u) => !u.standalone), s = l.filter((u) => u.standalone), n = a.map((u) => u.value).filter((u) => Ls(u) && u !== null).reduce((u, k) => Math.abs(u) + Math.abs(k), 0);
860
+ const t = e.value.style.chart.tooltip.customFormat, l = [...Vt.value].reverse(), a = l.filter((u) => !u.standalone), s = l.filter((u) => u.standalone), n = a.map((u) => u.value).filter((u) => Ls(u) && u !== null).reduce((u, w) => Math.abs(u) + Math.abs(w), 0);
861
861
  if (As(t) && Ts(
862
862
  () => t({
863
- absoluteIndex: p.value + c.value.start,
864
- seriesIndex: p.value,
863
+ absoluteIndex: b.value + c.value.start,
864
+ seriesIndex: b.value,
865
865
  datapoint: Vt.value,
866
866
  series: Z.value,
867
867
  config: e.value
868
868
  })
869
869
  ))
870
870
  return t({
871
- absoluteIndex: p.value + c.value.start,
872
- seriesIndex: p.value,
871
+ absoluteIndex: b.value + c.value.start,
872
+ seriesIndex: b.value,
873
873
  datapoint: Vt.value,
874
874
  series: Z.value,
875
875
  config: e.value
@@ -877,21 +877,21 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
877
877
  const {
878
878
  showValue: o,
879
879
  showTotal: r,
880
- totalTranslation: b,
881
- showPercentage: w,
880
+ totalTranslation: y,
881
+ showPercentage: k,
882
882
  borderColor: A,
883
883
  roundingValue: S,
884
- roundingPercentage: z
885
- } = e.value.style.chart.tooltip, E = (u) => !u.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(u.shape) ? `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${u.color}" /></svg>` : u.shape === "star" ? `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${u.color}" points="${Fs({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>` : u.shape === "triangle" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${u.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : u.shape === "square" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${u.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : u.shape === "diamond" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${u.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : u.shape === "pentagon" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${u.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${u.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`, M = (u, k) => {
886
- const V = k ? Ce({
884
+ roundingPercentage: I
885
+ } = e.value.style.chart.tooltip, E = (u) => !u.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(u.shape) ? `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${u.color}" /></svg>` : u.shape === "star" ? `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" fill="${u.color}" points="${Fs({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>` : u.shape === "triangle" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${u.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : u.shape === "square" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${u.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : u.shape === "diamond" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${u.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : u.shape === "pentagon" ? `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${u.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>` : `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${at({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${u.color}" stroke="${e.value.style.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`, M = (u, w) => {
886
+ const V = w ? Ce({
887
887
  v: isNaN((u.value ?? 0) / (n || 1)) ? 0 : Math.abs(u.value ?? 0) / (n || 1) * 100,
888
888
  s: "%",
889
- r: z
890
- }) : "", y = o && k ? "(" : "", $ = o && k ? ")" : "";
889
+ r: I
890
+ }) : "", g = o && w ? "(" : "", $ = o && w ? ")" : "";
891
891
  return `
892
892
  <div style="display:flex;flex-direction:row;align-items:center;gap:4px">
893
893
  <div style="width:20px;height:20px;display:flex;align-items:center;justify-content:center;">${E(u)}</div>
894
- ${u.name}${o || k ? ":" : ""}
894
+ ${u.name}${o || w ? ":" : ""}
895
895
  ${o ? et(
896
896
  e.value.style.chart.lines.dataLabels.formatter,
897
897
  u.sourceValue,
@@ -901,13 +901,13 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
901
901
  s: e.value.style.chart.lines.dataLabels.suffix,
902
902
  r: S
903
903
  })
904
- ) : ""} ${y}${V}${$}
904
+ ) : ""} ${g}${V}${$}
905
905
  </div>
906
906
  `;
907
907
  };
908
908
  let m = "";
909
- return (se.value[p.value] && se.value[p.value].text || Rt.value[p.value] && Rt.value[p.value].text && e.value.style.chart.tooltip.showTimeLabel) && (m += `<div style="width:100%;text-align:center;border-bottom:1px solid ${A};padding-bottom:6px;margin-bottom:3px;">${e.value.style.chart.tooltip.useDefaultTimeFormat ? se.value[p.value]?.text : Rt.value[p.value]?.text || Ie.value[p.value]?.text || ""}</div>`), r && a.length > 1 && (m += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
910
- <span>${b}:</span>
909
+ return (se.value[b.value] && se.value[b.value].text || Ot.value[b.value] && Ot.value[b.value].text && e.value.style.chart.tooltip.showTimeLabel) && (m += `<div style="width:100%;text-align:center;border-bottom:1px solid ${A};padding-bottom:6px;margin-bottom:3px;">${e.value.style.chart.tooltip.useDefaultTimeFormat ? se.value[b.value]?.text : Ot.value[b.value]?.text || ze.value[b.value]?.text || ""}</div>`), r && a.length > 1 && (m += `<div class="vue-data-ui-tooltip-total" style="display:flex;flex-direction:row;align-items:center;gap:4px">
910
+ <span>${y}:</span>
911
911
  <span>${et(
912
912
  e.value.style.chart.lines.dataLabels.formatter,
913
913
  tt(n),
@@ -917,23 +917,23 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
917
917
  s: e.value.style.chart.lines.dataLabels.suffix,
918
918
  r: S
919
919
  }),
920
- { datapoint: { name: b, value: tt(n) } }
920
+ { datapoint: { name: y, value: tt(n) } }
921
921
  )}</span>
922
922
  </div>`), a.forEach((u) => {
923
- m += M(u, w);
923
+ m += M(u, k);
924
924
  }), s.length && (m += `<div style="border-top:1px solid ${Me.value.length ? A : "transparent"}; margin:${Me.value.length ? "6px 0" : "0"};"></div>`, s.forEach((u) => {
925
925
  m += M(u, !1);
926
926
  })), `<div>${m}</div>`;
927
927
  });
928
928
  function Bt(t, l = null, a = "pointer") {
929
- if (ht.value) return;
929
+ if (dt.value) return;
930
930
  Be.value = a, Re.value = t;
931
931
  const s = T.value.map((n) => ({
932
932
  name: n.name,
933
933
  value: [null, void 0, NaN].includes(n.series[l]) ? null : n.series[l],
934
934
  color: n.color
935
935
  }));
936
- t ? (ce.value = l, p.value = l, Za({ seriesIndex: l, datapoint: s }), e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: s, seriesIndex: l + c.value.start })) : (ce.value = null, p.value = null, ye("selectX", { seriesIndex: null, dataset: null, indexLabel: null }), e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: s, seriesIndex: l + c.value.start }));
936
+ t ? (ce.value = l, b.value = l, Za({ seriesIndex: l, datapoint: s }), e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: s, seriesIndex: l + c.value.start })) : (ce.value = null, b.value = null, ye("selectX", { seriesIndex: null, dataset: null, indexLabel: null }), e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: s, seriesIndex: l + c.value.start }));
937
937
  }
938
938
  function Va(t, l) {
939
939
  const a = JSON.parse(JSON.stringify(T.value)).map((s) => ({
@@ -994,26 +994,26 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
994
994
  if (T.value.length === 0)
995
995
  return { head: [], body: [], config: {}, columnNames: [] };
996
996
  const t = T.value.map(({ name: a, color: s }) => ({ label: a, color: s })), l = [];
997
- return dt.value.forEach((a) => {
997
+ return ht.value.forEach((a) => {
998
998
  const s = a.absoluteIndex, o = [e.value.style.chart.grid.x.timeLabels.values?.[s] ? a.text : s + 1];
999
999
  Z.value.forEach((r) => {
1000
- const b = r.series?.[s], w = Number((b ?? 0).toFixed(e.value.table.td.roundingValue));
1001
- o.push(w);
1000
+ const y = r.series?.[s], k = Number((y ?? 0).toFixed(e.value.table.td.roundingValue));
1001
+ o.push(k);
1002
1002
  }), l.push(o);
1003
1003
  }), { head: t, body: l };
1004
1004
  });
1005
- function Wt(t = null) {
1006
- const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = ["", ...Ya.value.head.map((r) => r.label)], s = Ya.value.body, n = l.concat([a]).concat(s), o = Is(n);
1005
+ function Ht(t = null) {
1006
+ const l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [""]], a = ["", ...Ya.value.head.map((r) => r.label)], s = Ya.value.body, n = l.concat([a]).concat(s), o = zs(n);
1007
1007
  t ? t(o) : _s({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-stackline" });
1008
1008
  }
1009
1009
  const _e = f(() => {
1010
1010
  const t = [""].concat(T.value.map((o) => o.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'), l = [], a = Math.max(0, c.value.end - c.value.start);
1011
1011
  for (let o = 0; o < a; o += 1) {
1012
- const r = Et(o), b = e.value.style.chart.grid.x.timeLabels.values?.[r] ? se.value?.[o]?.text ?? r + 1 : r + 1, w = T.value.map((z) => {
1013
- const E = z.series?.[o] ?? 0;
1012
+ const r = Rt(o), y = e.value.style.chart.grid.x.timeLabels.values?.[r] ? se.value?.[o]?.text ?? r + 1 : r + 1, k = T.value.map((I) => {
1013
+ const E = I.series?.[o] ?? 0;
1014
1014
  return Number(E.toFixed(e.value.table.td.roundingValue));
1015
- }), S = T.value.filter((z) => !z.standalone).map((z) => z.series?.[o] ?? 0).reduce((z, E) => z + E, 0);
1016
- l.push([b].concat(w).concat(Number(S.toFixed(e.value.table.td.roundingValue))));
1015
+ }), S = T.value.filter((I) => !I.standalone).map((I) => I.series?.[o] ?? 0).reduce((I, E) => I + E, 0);
1016
+ l.push([y].concat(k).concat(Number(S.toFixed(e.value.table.td.roundingValue))));
1017
1017
  }
1018
1018
  const s = {
1019
1019
  th: {
@@ -1029,14 +1029,14 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1029
1029
  breakpoint: e.value.table.responsiveBreakpoint
1030
1030
  }, n = [e.value.table.columnNames.period].concat(T.value.map((o) => o.name)).concat(e.value.table.columnNames.total);
1031
1031
  return { head: t, body: l, config: s, colNames: n };
1032
- }), es = f(() => e.value.style.chart.backgroundColor), ts = f(() => e.value.style.chart.legend), as = f(() => e.value.style.chart.title), { exportSvg: ls, getSvg: ss } = Hs({
1033
- svg: de,
1032
+ }), es = f(() => e.value.style.chart.backgroundColor), ts = f(() => e.value.style.chart.legend), as = f(() => e.value.style.chart.title), { exportSvg: ls, getSvg: ss } = Ws({
1033
+ svg: he,
1034
1034
  title: as,
1035
1035
  legend: ts,
1036
1036
  legendItems: Xe,
1037
1037
  backgroundColor: es
1038
1038
  });
1039
- async function Wa({ isCb: t }) {
1039
+ async function Ha({ isCb: t }) {
1040
1040
  st.value = !0, await Gt();
1041
1041
  try {
1042
1042
  if (t) {
@@ -1094,8 +1094,8 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1094
1094
  Fe(() => j.value.showTable, (t) => {
1095
1095
  e.value.table.show || (t && e.value.table.useDialog && Ve.value ? Ve.value.open() : "close" in Ve.value && Ve.value.close());
1096
1096
  });
1097
- function Ha() {
1098
- j.value.showTable = !1, Mt.value && Mt.value.setTableIconState(!1);
1097
+ function Wa() {
1098
+ j.value.showTable = !1, $t.value && $t.value.setTableIconState(!1);
1099
1099
  }
1100
1100
  function Ua(t) {
1101
1101
  De.value = t, ea.value += 1;
@@ -1113,7 +1113,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1113
1113
  return T.value;
1114
1114
  }
1115
1115
  function ja(t) {
1116
- const l = t ?? 0, a = Et(l);
1116
+ const l = t ?? 0, a = Rt(l);
1117
1117
  return JSON.parse(JSON.stringify(T.value)).map((s) => {
1118
1118
  const n = s.series[l], o = s.signedSeries?.[l], r = n === 0 ? 0 : (o === -1 && n >= 0 ? -n : n) || null;
1119
1119
  return {
@@ -1123,18 +1123,18 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1123
1123
  proportion: s.proportions?.[l] || null,
1124
1124
  color: s.color,
1125
1125
  id: s.id,
1126
- timeLabel: Ie.value?.[a] || null
1126
+ timeLabel: ze.value?.[a] || null
1127
1127
  };
1128
1128
  });
1129
1129
  }
1130
1130
  const rs = f(() => Array(me.value).fill(0).map((t, l) => ja(l)));
1131
1131
  Fe(() => G.selectedXIndex, (t) => {
1132
1132
  if ([null, void 0].includes(G.selectedXIndex)) {
1133
- p.value = null;
1133
+ b.value = null;
1134
1134
  return;
1135
1135
  }
1136
1136
  const l = t - c.value.start;
1137
- l < 0 || t >= c.value.end ? p.value = null : p.value = l ?? null;
1137
+ l < 0 || t >= c.value.end ? b.value = null : b.value = l ?? null;
1138
1138
  }, { immediate: !0 });
1139
1139
  const Ja = f(() => {
1140
1140
  if (e.value.style.chart.lines.distributed)
@@ -1145,25 +1145,25 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1145
1145
  ), s = Array(a).fill(0), n = Array(a).fill(0);
1146
1146
  t.forEach((m) => {
1147
1147
  for (let u = 0; u < a; u += 1) {
1148
- const k = m.series[u] ?? 0;
1149
- k >= 0 ? s[u] += k : n[u] += k;
1148
+ const w = m.series[u] ?? 0;
1149
+ w >= 0 ? s[u] += w : n[u] += w;
1150
1150
  }
1151
1151
  });
1152
1152
  const o = Array(a).fill(0), r = Array(a).fill(0);
1153
1153
  l.forEach((m) => {
1154
1154
  for (let u = 0; u < a; u += 1) {
1155
- const k = m.series[u] ?? 0;
1156
- k > 0 && (o[u] = Math.max(o[u], k)), k < 0 && (r[u] = Math.min(r[u], k));
1155
+ const w = m.series[u] ?? 0;
1156
+ w > 0 && (o[u] = Math.max(o[u], w)), w < 0 && (r[u] = Math.min(r[u], w));
1157
1157
  }
1158
1158
  });
1159
- const b = Math.max(0, ...s, ...o), w = Math.min(0, ...n, ...r), A = e.value.style.chart.grid.scale.scaleMin, S = e.value.style.chart.grid.scale.scaleMax, z = e.value.style.chart.grid.scale.ticks, M = !e.value.style.chart.lines.distributed && (A !== null || S !== null) ? xt(
1160
- A !== null ? A : w > 0 ? 0 : w,
1161
- S !== null ? S : b < 0 ? 0 : b,
1162
- z
1163
- ) : kt(
1164
- A !== null ? A : w > 0 ? 0 : w,
1165
- S !== null ? S : b < 0 ? 0 : b,
1166
- z
1159
+ const y = Math.max(0, ...s, ...o), k = Math.min(0, ...n, ...r), A = e.value.style.chart.grid.scale.scaleMin, S = e.value.style.chart.grid.scale.scaleMax, I = e.value.style.chart.grid.scale.ticks, M = !e.value.style.chart.lines.distributed && (A !== null || S !== null) ? kt(
1160
+ A !== null ? A : k > 0 ? 0 : k,
1161
+ S !== null ? S : y < 0 ? 0 : y,
1162
+ I
1163
+ ) : wt(
1164
+ A !== null ? A : k > 0 ? 0 : k,
1165
+ S !== null ? S : y < 0 ? 0 : y,
1166
+ I
1167
1167
  );
1168
1168
  return { min: Number(M.min) || 0, max: Number(M.max) || 0 };
1169
1169
  });
@@ -1175,82 +1175,82 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1175
1175
  if (o <= 0) return "";
1176
1176
  const r = o === 1 ? [l * 0.5] : Array.from({ length: o }, (m, u) => u * l);
1177
1177
  if (e.value.style.chart.lines.distributed) {
1178
- const m = Array.from({ length: o }, (y, $) => {
1178
+ const m = Array.from({ length: o }, (g, $) => {
1179
1179
  let R = 0;
1180
1180
  return s.forEach((_) => {
1181
1181
  const B = (Array.isArray(_.fullSeries) ? _.fullSeries : _.series)?.[$];
1182
1182
  B != null && !Number.isNaN(B) && (R += Math.abs(B));
1183
1183
  }), R || 1;
1184
- }), u = (y) => {
1185
- const $ = Math.max(0, Math.min(1, y || 0));
1184
+ }), u = (g) => {
1185
+ const $ = Math.max(0, Math.min(1, g || 0));
1186
1186
  return t - t * $;
1187
- }, k = [], V = Array(o).fill(0);
1188
- return s.forEach((y) => {
1189
- const $ = Array.isArray(y.fullSeries) ? y.fullSeries : y.series, R = new Array(o), _ = new Array(o);
1190
- for (let H = 0; H < o; H += 1) {
1191
- const be = $?.[H], xe = be == null || Number.isNaN(be) ? 0 : Math.abs(be) / m[H];
1192
- _[H] = V[H], V[H] += xe, R[H] = V[H];
1187
+ }, w = [], V = Array(o).fill(0);
1188
+ return s.forEach((g) => {
1189
+ const $ = Array.isArray(g.fullSeries) ? g.fullSeries : g.series, R = new Array(o), _ = new Array(o);
1190
+ for (let U = 0; U < o; U += 1) {
1191
+ const be = $?.[U], xe = be == null || Number.isNaN(be) ? 0 : Math.abs(be) / m[U];
1192
+ _[U] = V[U], V[U] += xe, R[U] = V[U];
1193
1193
  }
1194
- const I = R.map(u), B = _.map(u), Y = r.map((H, be) => ({ x: H, y: I[be] })), Q = r.map((H, be) => ({ x: H, y: B[be] })), J = we(Y), W = we([...Q].reverse()), O = Se(Y), g = Se([...Q].reverse()), L = Q[Q.length - 1];
1194
+ const z = R.map(u), B = _.map(u), H = r.map((U, be) => ({ x: U, y: z[be] })), Q = r.map((U, be) => ({ x: U, y: B[be] })), J = we(H), W = we([...Q].reverse()), O = Se(H), p = Se([...Q].reverse()), L = Q[Q.length - 1];
1195
1195
  if (e.value.style.chart.lines.useArea) {
1196
- const H = e.value.style.chart.lines.smooth ? `M${Y[0].x},${Y[0].y} ${a(J)} L${L.x},${L.y} ${a(W)} Z` : `M${Y[0].x},${Y[0].y} ${a(O)} L${L.x},${L.y} ${a(g)} Z`;
1197
- k.push(
1198
- `<path d="${H}"
1199
- fill="${Zt.pattern ? `url(#pattern_${K.value}_${y.absoluteIndex})` : (e.value.style.chart.lines.gradient.show, y.color)}"
1196
+ const U = e.value.style.chart.lines.smooth ? `M${H[0].x},${H[0].y} ${a(J)} L${L.x},${L.y} ${a(W)} Z` : `M${H[0].x},${H[0].y} ${a(O)} L${L.x},${L.y} ${a(p)} Z`;
1197
+ w.push(
1198
+ `<path d="${U}"
1199
+ fill="${Zt.pattern ? `url(#pattern_${K.value}_${g.absoluteIndex})` : (e.value.style.chart.lines.gradient.show, g.color)}"
1200
1200
  opacity="${e.value.style.chart.lines.areaOpacity}"
1201
1201
  stroke="none" />`
1202
1202
  );
1203
1203
  }
1204
- const q = e.value.style.chart.lines.smooth ? `M${Y[0].x},${Y[0].y} ${a(J)}` : `M${Y[0].x},${Y[0].y} ${a(O)}`;
1205
- k.push(
1204
+ const q = e.value.style.chart.lines.smooth ? `M${H[0].x},${H[0].y} ${a(J)}` : `M${H[0].x},${H[0].y} ${a(O)}`;
1205
+ w.push(
1206
1206
  `<path d="${q}"
1207
1207
  fill="none"
1208
- stroke="${y.color}"
1208
+ stroke="${g.color}"
1209
1209
  stroke-width="${e.value.style.chart.lines.strokeWidth}"
1210
1210
  stroke-linecap="round" />`
1211
1211
  );
1212
- }), n.length && n.forEach((y) => {
1213
- const $ = Array.isArray(y.fullSeries) ? y.fullSeries : y.series, R = Array.from({ length: o }, (Q, J) => u(Math.abs($?.[J] ?? 0) / m[J])), _ = r.map((Q, J) => ({ x: Q, y: R[J] })), I = we(_), B = Se(_), Y = e.value.style.chart.lines.smooth ? `M${_[0].x},${_[0].y} ${a(I)}` : `M${_[0].x},${_[0].y} ${a(B)}`;
1214
- k.push(
1215
- `<path d="${Y}"
1212
+ }), n.length && n.forEach((g) => {
1213
+ const $ = Array.isArray(g.fullSeries) ? g.fullSeries : g.series, R = Array.from({ length: o }, (Q, J) => u(Math.abs($?.[J] ?? 0) / m[J])), _ = r.map((Q, J) => ({ x: Q, y: R[J] })), z = we(_), B = Se(_), H = e.value.style.chart.lines.smooth ? `M${_[0].x},${_[0].y} ${a(z)}` : `M${_[0].x},${_[0].y} ${a(B)}`;
1214
+ w.push(
1215
+ `<path d="${H}"
1216
1216
  fill="none"
1217
- stroke="${y.color}"
1217
+ stroke="${g.color}"
1218
1218
  stroke-width="${e.value.style.chart.lines.strokeWidth}"
1219
1219
  stroke-linecap="round" />`
1220
1220
  );
1221
- }), k.join("");
1221
+ }), w.join("");
1222
1222
  }
1223
- const b = Ja.value.min, w = Ja.value.max, A = Math.abs(b), S = w + A || 1, z = (m) => Math.max(0, Math.min(t, m)), E = (m) => z(t - t * (((m ?? 0) + A) / S)), M = [];
1223
+ const y = Ja.value.min, k = Ja.value.max, A = Math.abs(y), S = k + A || 1, I = (m) => Math.max(0, Math.min(t, m)), E = (m) => I(t - t * (((m ?? 0) + A) / S)), M = [];
1224
1224
  if (s.length) {
1225
1225
  const m = Array(o).fill(0), u = Array(o).fill(0);
1226
- s.forEach((k) => {
1227
- const V = Array.isArray(k.fullSeries) ? k.fullSeries : k.series, y = new Array(o), $ = new Array(o);
1226
+ s.forEach((w) => {
1227
+ const V = Array.isArray(w.fullSeries) ? w.fullSeries : w.series, g = new Array(o), $ = new Array(o);
1228
1228
  for (let L = 0; L < o; L += 1) {
1229
1229
  const q = V?.[L] ?? 0;
1230
- q >= 0 ? ($[L] = m[L], m[L] += q, y[L] = m[L]) : ($[L] = u[L], u[L] += q, y[L] = u[L]);
1230
+ q >= 0 ? ($[L] = m[L], m[L] += q, g[L] = m[L]) : ($[L] = u[L], u[L] += q, g[L] = u[L]);
1231
1231
  }
1232
- const R = y.map(E), _ = $.map(E), I = r.map((L, q) => ({ x: L, y: R[q] })), B = r.map((L, q) => ({ x: L, y: _[q] })), Y = we(I), Q = we([...B].reverse()), J = Se(I), W = Se([...B].reverse()), O = B[B.length - 1];
1232
+ const R = g.map(E), _ = $.map(E), z = r.map((L, q) => ({ x: L, y: R[q] })), B = r.map((L, q) => ({ x: L, y: _[q] })), H = we(z), Q = we([...B].reverse()), J = Se(z), W = Se([...B].reverse()), O = B[B.length - 1];
1233
1233
  if (e.value.style.chart.lines.useArea) {
1234
- const L = e.value.style.chart.lines.smooth ? `M${I[0].x},${I[0].y} ${a(Y)} L${O.x},${O.y} ${a(Q)} Z` : `M${I[0].x},${I[0].y} ${a(J)} L${O.x},${O.y} ${a(W)} Z`;
1234
+ const L = e.value.style.chart.lines.smooth ? `M${z[0].x},${z[0].y} ${a(H)} L${O.x},${O.y} ${a(Q)} Z` : `M${z[0].x},${z[0].y} ${a(J)} L${O.x},${O.y} ${a(W)} Z`;
1235
1235
  M.push(
1236
1236
  `<path d="${L}"
1237
- fill="${Zt.pattern ? `url(#pattern_${K.value}_${k.absoluteIndex})` : (e.value.style.chart.lines.gradient.show, k.color)}"
1237
+ fill="${Zt.pattern ? `url(#pattern_${K.value}_${w.absoluteIndex})` : (e.value.style.chart.lines.gradient.show, w.color)}"
1238
1238
  opacity="${e.value.style.chart.lines.areaOpacity}"
1239
1239
  stroke="none" />`
1240
1240
  );
1241
1241
  }
1242
- const g = e.value.style.chart.lines.smooth ? `M${I[0].x},${I[0].y} ${a(Y)}` : `M${I[0].x},${I[0].y} ${a(J)}`;
1242
+ const p = e.value.style.chart.lines.smooth ? `M${z[0].x},${z[0].y} ${a(H)}` : `M${z[0].x},${z[0].y} ${a(J)}`;
1243
1243
  M.push(
1244
- `<path d="${g}"
1244
+ `<path d="${p}"
1245
1245
  fill="none"
1246
- stroke="${k.color}"
1246
+ stroke="${w.color}"
1247
1247
  stroke-width="${e.value.style.chart.lines.strokeWidth}"
1248
1248
  stroke-linecap="round" />`
1249
1249
  );
1250
1250
  });
1251
1251
  }
1252
1252
  return n.length && n.forEach((m) => {
1253
- const k = (Array.isArray(m.fullSeries) ? m.fullSeries : m.series).map(E), V = r.map((_, I) => ({ x: _, y: k[I] })), y = we(V), $ = Se(V), R = e.value.style.chart.lines.smooth ? `M${V[0].x},${V[0].y} ${a(y)}` : `M${V[0].x},${V[0].y} ${a($)}`;
1253
+ const w = (Array.isArray(m.fullSeries) ? m.fullSeries : m.series).map(E), V = r.map((_, z) => ({ x: _, y: w[z] })), g = we(V), $ = Se(V), R = e.value.style.chart.lines.smooth ? `M${V[0].x},${V[0].y} ${a(g)}` : `M${V[0].x},${V[0].y} ${a($)}`;
1254
1254
  M.push(
1255
1255
  `<path d="${R}"
1256
1256
  fill="none"
@@ -1262,7 +1262,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1262
1262
  }
1263
1263
  function us(t, l) {
1264
1264
  const a = e.value.style.chart.lines, s = a.dataLabels;
1265
- return a.showDistributedPercentage && a.distributed ? ga.value ? l === 0 ? !s.hideEmptyPercentages : Math.abs(l) * 100 >= s.hideUnderPercentage : s.hideEmptyPercentages ? Math.abs(l) > 0 : !0 : ga.value ? (ya.value && _t.value && console.warn("Vue Data UI - VueUiStackline - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), Math.abs(t) > cs.value * s.hideUnderPercentage / 100) : ya.value ? Math.abs(t) >= s.hideUnderValue : s.hideEmptyValues ? t !== 0 : !0;
1265
+ return a.showDistributedPercentage && a.distributed ? ga.value ? l === 0 ? !s.hideEmptyPercentages : Math.abs(l) * 100 >= s.hideUnderPercentage : s.hideEmptyPercentages ? Math.abs(l) > 0 : !0 : ga.value ? (ya.value && Ft.value && console.warn("Vue Data UI - VueUiStackline - You cannot set both dataLabels.hideUnderPercentage and dataLabels.hideUnderValue. Note that dataLabels.hideUnderPercentage takes precedence in this case."), Math.abs(t) > cs.value * s.hideUnderPercentage / 100) : ya.value ? Math.abs(t) >= s.hideUnderValue : s.hideEmptyValues ? t !== 0 : !0;
1266
1266
  }
1267
1267
  const cs = f(() => Math.max(...T.value.flatMap((t) => t.series)));
1268
1268
  function Ka(t, l, a, s, n) {
@@ -1299,7 +1299,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1299
1299
  indexLabel: e.value.style.chart.grid.x.timeLabels.values[a]
1300
1300
  });
1301
1301
  }
1302
- function hs(t) {
1302
+ function ds(t) {
1303
1303
  if (t?.stage === "start") {
1304
1304
  lt.value = !0;
1305
1305
  return;
@@ -1323,19 +1323,19 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1323
1323
  dataset: T.value
1324
1324
  }));
1325
1325
  }
1326
- const Ht = d(!1);
1327
- function ds() {
1328
- ce.value = null, Ht.value = !0;
1326
+ const Wt = h(!1);
1327
+ function hs() {
1328
+ ce.value = null, Wt.value = !0;
1329
1329
  }
1330
1330
  function ms() {
1331
- ce.value = null, Be.value = "pointer", Re.value = !1, p.value = null, ye("selectX", { seriesIndex: null, datapoint: null }), Ht.value = !1;
1331
+ ce.value = null, Be.value = "pointer", Re.value = !1, b.value = null, ye("selectX", { seriesIndex: null, datapoint: null }), Wt.value = !1;
1332
1332
  }
1333
1333
  function fs(t) {
1334
- if (!de.value || Ae.value || document.activeElement !== de.value || ht.value || !U.value) return;
1334
+ if (!he.value || Ae.value || document.activeElement !== he.value || dt.value || !Y.value) return;
1335
1335
  const l = t.key === "ArrowLeft", a = t.key === "ArrowRight", s = t.key === "Enter" || t.key === " ", n = t.key === "Escape";
1336
1336
  if (!l && !a && !s && !n) return;
1337
1337
  if (t.preventDefault(), t.stopPropagation(), n) {
1338
- ce.value = null, Be.value = "pointer", Re.value = !1, p.value = null, ye("selectX", { seriesIndex: null, datapoint: null });
1338
+ ce.value = null, Be.value = "pointer", Re.value = !1, b.value = null, ye("selectX", { seriesIndex: null, datapoint: null });
1339
1339
  return;
1340
1340
  }
1341
1341
  if (s) {
@@ -1344,11 +1344,12 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1344
1344
  return;
1345
1345
  }
1346
1346
  let o = ce.value;
1347
- o === null || o < 0 || o >= U.value ? o = a ? 0 : U.value - 1 : a ? (o += 1, o >= U.value && (o = 0)) : l && (o -= 1, o < 0 && (o = U.value - 1)), ce.value = o, ys(o), Bt(!0, o, "keyboard");
1347
+ const r = yt.value, y = o !== null && o >= 0 && o < Y.value, k = r !== null && r >= 0 && r < Y.value;
1348
+ y ? a ? (o += 1, o >= Y.value && (o = 0)) : l && (o -= 1, o < 0 && (o = Y.value - 1)) : k ? (o = a ? r + 1 : r - 1, o >= Y.value && (o = 0), o < 0 && (o = Y.value - 1)) : a ? o = 0 : o = Y.value - 1, ce.value = o, ys(o), Bt(!0, o, "keyboard");
1348
1349
  }
1349
1350
  function ys(t) {
1350
- if (!Number.isFinite(t) || !de.value) return;
1351
- const l = h.value.left + t * yt.value, a = h.value.top + h.value.height / 2, s = Es(l, a, de.value);
1351
+ if (!Number.isFinite(t) || !he.value) return;
1352
+ const l = d.value.left + t * gt.value, a = d.value.top + d.value.height / 2, s = Es(l, a, he.value);
1352
1353
  s && (va.value = s);
1353
1354
  }
1354
1355
  const Ut = f(() => {
@@ -1359,15 +1360,15 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1359
1360
  getData: ns,
1360
1361
  getImage: os,
1361
1362
  generatePdf: pa,
1362
- generateCsv: Wt,
1363
+ generateCsv: Ht,
1363
1364
  generateImage: ba,
1364
- generateSvg: Wa,
1365
+ generateSvg: Ha,
1365
1366
  hideSeries: Ql,
1366
1367
  showSeries: Zl,
1367
1368
  toggleTable: qa,
1368
1369
  toggleLabels: Xa,
1369
1370
  toggleTooltip: Ga,
1370
- toggleAnnotator: At,
1371
+ toggleAnnotator: Tt,
1371
1372
  toggleFullscreen: Ua,
1372
1373
  copyAlt: Qa
1373
1374
  }), (t, l) => (i(), v("div", {
@@ -1395,12 +1396,12 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1395
1396
  }, null, 8, ["uid", "head", "body", "notice", "caption"])) : x("", !0),
1396
1397
  e.value.userOptions.buttons.annotator ? (i(), oe(C(yl), {
1397
1398
  key: 1,
1398
- svgRef: C(de),
1399
+ svgRef: C(he),
1399
1400
  backgroundColor: e.value.style.chart.backgroundColor,
1400
1401
  color: e.value.style.chart.color,
1401
1402
  active: Ae.value,
1402
1403
  isCursorPointer: ve.value,
1403
- onClose: At
1404
+ onClose: Tt
1404
1405
  }, {
1405
1406
  "annotator-action-close": P(() => [
1406
1407
  N(t.$slots, "annotator-action-close", {}, void 0, !0)
@@ -1453,14 +1454,14 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1453
1454
  le("div", {
1454
1455
  id: `legend-top-${K.value}`
1455
1456
  }, null, 8, no),
1456
- e.value.userOptions.show && Ee.value && (C(fa) || C(Nt)) ? (i(), oe(C(gl), {
1457
+ e.value.userOptions.show && Ee.value && (C(fa) || C(Pt)) ? (i(), oe(C(gl), {
1457
1458
  ref_key: "userOptionsRef",
1458
- ref: Mt,
1459
+ ref: $t,
1459
1460
  key: `user_option_${ea.value}`,
1460
1461
  backgroundColor: e.value.style.chart.backgroundColor,
1461
1462
  color: e.value.style.chart.color,
1462
1463
  isPrinting: C(zt),
1463
- isImaging: C(It),
1464
+ isImaging: C(_t),
1464
1465
  uid: K.value,
1465
1466
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
1466
1467
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -1484,16 +1485,16 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1484
1485
  isCursorPointer: ve.value,
1485
1486
  onToggleFullscreen: Ua,
1486
1487
  onGeneratePdf: C(pa),
1487
- onGenerateCsv: Wt,
1488
- onGenerateImage: hs,
1489
- onGenerateSvg: Wa,
1488
+ onGenerateCsv: Ht,
1489
+ onGenerateImage: ds,
1490
+ onGenerateSvg: Ha,
1490
1491
  onToggleTable: qa,
1491
1492
  onToggleLabels: Xa,
1492
1493
  onToggleTooltip: Ga,
1493
- onToggleAnnotator: At,
1494
+ onToggleAnnotator: Tt,
1494
1495
  onCopyAlt: Qa,
1495
1496
  style: ge({
1496
- visibility: C(fa) ? C(Nt) ? "visible" : "hidden" : "visible"
1497
+ visibility: C(fa) ? C(Pt) ? "visible" : "hidden" : "visible"
1497
1498
  })
1498
1499
  }, jt({ _: 2 }, [
1499
1500
  t.$slots.menuIcon ? {
@@ -1577,11 +1578,11 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1577
1578
  le("div", ro, [
1578
1579
  (i(), v("svg", {
1579
1580
  ref_key: "svgRef",
1580
- ref: de,
1581
+ ref: he,
1581
1582
  "aria-describedby": `chart-instructions-${K.value}`,
1582
1583
  xmlns: C(Ns),
1583
- viewBox: `0 0 ${h.value.chartWidth <= 0 ? 10 : h.value.chartWidth} ${h.value.chartHeight <= 0 ? 10 : h.value.chartHeight}`,
1584
- class: tl({ "vue-data-ui-loading": C(he), "no-transition": !e.value.useCssAnimation }),
1584
+ viewBox: `0 0 ${d.value.chartWidth <= 0 ? 10 : d.value.chartWidth} ${d.value.chartHeight <= 0 ? 10 : d.value.chartHeight}`,
1585
+ class: tl({ "vue-data-ui-loading": C(de), "no-transition": !e.value.useCssAnimation }),
1585
1586
  style: ge(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`),
1586
1587
  role: "img",
1587
1588
  "aria-live": "polite",
@@ -1590,22 +1591,22 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1590
1591
  onMousemove: Xl,
1591
1592
  onMouseleave: Dt,
1592
1593
  onClick: Gl,
1593
- onFocus: ds,
1594
+ onFocus: hs,
1594
1595
  onBlur: ms,
1595
1596
  onKeydown: fs
1596
1597
  }, [
1597
1598
  Ze(C(pl)),
1598
1599
  (i(!0), v(F, null, X(Me.value, (a) => (i(), v(F, null, [
1599
1600
  t.$slots.pattern ? (i(), v("defs", uo, [
1600
- N(t.$slots, "pattern", pt({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${K.value}_${a.absoluteIndex}` }), void 0, !0)
1601
+ N(t.$slots, "pattern", bt({ ref_for: !0 }, { seriesIndex: a.absoluteIndex, patternId: `pattern_${K.value}_${a.absoluteIndex}` }), void 0, !0)
1601
1602
  ])) : x("", !0)
1602
1603
  ], 64))), 256)),
1603
1604
  t.$slots["chart-background"] ? (i(), v("foreignObject", {
1604
1605
  key: 0,
1605
1606
  x: ae.value.left,
1606
- y: h.value.top,
1607
+ y: d.value.top,
1607
1608
  width: ae.value.width,
1608
- height: h.value.height,
1609
+ height: d.value.height,
1609
1610
  style: {
1610
1611
  pointerEvents: "none"
1611
1612
  }
@@ -1630,7 +1631,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1630
1631
  }, null, 8, fo)
1631
1632
  ], 8, ho))), 256))
1632
1633
  ])) : x("", !0),
1633
- e.value.style.chart.grid.x.showHorizontalLines ? (i(!0), v(F, { key: 2 }, X(ze.value, (a, s) => (i(), v("line", {
1634
+ e.value.style.chart.grid.x.showHorizontalLines ? (i(!0), v(F, { key: 2 }, X(Ie.value, (a, s) => (i(), v("line", {
1634
1635
  x1: ae.value.left,
1635
1636
  x2: ae.value.right,
1636
1637
  y1: a.y,
@@ -1643,8 +1644,8 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1643
1644
  e.value.style.chart.grid.y.showVerticalLines ? (i(!0), v(F, { key: 3 }, X(c.value.end - c.value.start, (a, s) => (i(), v("line", {
1644
1645
  x1: ie(s),
1645
1646
  x2: ie(s),
1646
- y1: h.value.top,
1647
- y2: h.value.bottom,
1647
+ y1: d.value.top,
1648
+ y2: d.value.bottom,
1648
1649
  stroke: e.value.style.chart.grid.y.linesColor,
1649
1650
  "stroke-width": e.value.style.chart.grid.y.linesThickness,
1650
1651
  "stroke-dasharray": e.value.style.chart.grid.y.linesStrokeDasharray,
@@ -1654,8 +1655,8 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1654
1655
  key: 4,
1655
1656
  x1: ae.value.left,
1656
1657
  x2: ae.value.right,
1657
- y1: h.value.bottom,
1658
- y2: h.value.bottom,
1658
+ y1: d.value.bottom,
1659
+ y2: d.value.bottom,
1659
1660
  stroke: e.value.style.chart.grid.x.axisColor,
1660
1661
  "stroke-width": e.value.style.chart.grid.x.axisThickness,
1661
1662
  "stroke-linecap": "round",
@@ -1665,8 +1666,8 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1665
1666
  key: 5,
1666
1667
  x1: ae.value.left,
1667
1668
  x2: ae.value.left,
1668
- y1: h.value.top,
1669
- y2: h.value.bottom,
1669
+ y1: d.value.top,
1670
+ y2: d.value.bottom,
1670
1671
  stroke: e.value.style.chart.grid.y.axisColor,
1671
1672
  "stroke-width": e.value.style.chart.grid.y.axisThickness,
1672
1673
  "stroke-linecap": "round",
@@ -1676,8 +1677,8 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1676
1677
  key: 6,
1677
1678
  ref_key: "xAxisLabel",
1678
1679
  ref: ot,
1679
- x: h.value.left + h.value.width / 2,
1680
- y: h.value.chartHeight - 3,
1680
+ x: d.value.left + d.value.width / 2,
1681
+ y: d.value.chartHeight - 3,
1681
1682
  "font-size": e.value.style.chart.grid.x.axisName.fontSize,
1682
1683
  fill: e.value.style.chart.grid.x.axisName.color,
1683
1684
  "font-weight": e.value.style.chart.grid.x.axisName.bold ? "bold" : "normal",
@@ -1686,8 +1687,8 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1686
1687
  e.value.style.chart.grid.y.axisName.show && e.value.style.chart.grid.y.axisName.text ? (i(), v("text", {
1687
1688
  key: 7,
1688
1689
  ref_key: "yAxisLabel",
1689
- ref: $t,
1690
- transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize}, ${h.value.top + h.value.height / 2}) rotate(-90)`,
1690
+ ref: Ct,
1691
+ transform: `translate(${e.value.style.chart.grid.y.axisName.fontSize}, ${d.value.top + d.value.height / 2}) rotate(-90)`,
1691
1692
  "font-size": e.value.style.chart.grid.y.axisName.fontSize,
1692
1693
  fill: e.value.style.chart.grid.y.axisName.color,
1693
1694
  "font-weight": e.value.style.chart.grid.y.axisName.bold ? "bold" : "normal",
@@ -1697,9 +1698,9 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1697
1698
  key: 8,
1698
1699
  style: { pointerEvents: "none", transition: "none", animation: "none !important" },
1699
1700
  x: ae.value.left,
1700
- y: h.value.top,
1701
+ y: d.value.top,
1701
1702
  width: ae.value.width,
1702
- height: h.value.height,
1703
+ height: d.value.height,
1703
1704
  fill: "transparent",
1704
1705
  stroke: e.value.style.chart.grid.frame.stroke,
1705
1706
  "stroke-width": e.value.style.chart.grid.frame.strokeWidth,
@@ -1714,7 +1715,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1714
1715
  fill: t.$slots.pattern ? `url(#pattern_${K.value}_${a.absoluteIndex})` : e.value.style.chart.lines.gradient.show ? `url(#gradient_${a.id})` : a.color,
1715
1716
  opacity: e.value.style.chart.lines.areaOpacity,
1716
1717
  style: ge({
1717
- transition: C(he) || !e.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out"
1718
+ transition: C(de) || !e.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out"
1718
1719
  })
1719
1720
  }, null, 12, So)) : x("", !0)
1720
1721
  ], 64))), 256)),
@@ -1725,15 +1726,15 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1725
1726
  fill: "none",
1726
1727
  "stroke-linecap": "round",
1727
1728
  style: ge({
1728
- transition: C(he) || !e.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out"
1729
+ transition: C(de) || !e.value.useCssAnimation ? void 0 : "all 0.3s ease-in-out"
1729
1730
  })
1730
1731
  }, null, 12, Mo))), 256)),
1731
1732
  e.value.style.chart.grid.y.axisLabels.show && !e.value.style.chart.lines.distributed ? (i(), v("g", {
1732
1733
  key: 9,
1733
1734
  ref_key: "scaleLabels",
1734
- ref: Ct
1735
+ ref: Lt
1735
1736
  }, [
1736
- (i(!0), v(F, null, X(ze.value, (a, s) => (i(), v("line", {
1737
+ (i(!0), v(F, null, X(Ie.value, (a, s) => (i(), v("line", {
1737
1738
  x1: ae.value.left,
1738
1739
  x2: ae.value.left - 6,
1739
1740
  y1: a.y,
@@ -1741,7 +1742,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1741
1742
  stroke: e.value.style.chart.grid.x.axisColor,
1742
1743
  "stroke-width": 1
1743
1744
  }, null, 8, $o))), 256)),
1744
- (i(!0), v(F, null, X(ze.value, (a, s) => (i(), v("text", {
1745
+ (i(!0), v(F, null, X(Ie.value, (a, s) => (i(), v("text", {
1745
1746
  x: a.x,
1746
1747
  y: a.y + e.value.style.chart.grid.y.axisLabels.fontSize / 3,
1747
1748
  "font-size": e.value.style.chart.grid.y.axisLabels.fontSize,
@@ -1766,13 +1767,13 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1766
1767
  ref: nt
1767
1768
  }, [
1768
1769
  t.$slots["time-label"] ? (i(), v("g", Lo, [
1769
- (i(!0), v(F, null, X(dt.value, (a, s) => (i(), v("g", null, [
1770
- N(t.$slots, "time-label", pt({ ref_for: !0 }, {
1771
- x: h.value.left + vt.value * s + vt.value / 2,
1772
- y: h.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
1770
+ (i(!0), v(F, null, X(ht.value, (a, s) => (i(), v("g", null, [
1771
+ N(t.$slots, "time-label", bt({ ref_for: !0 }, {
1772
+ x: d.value.left + vt.value * s + vt.value / 2,
1773
+ y: d.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY,
1773
1774
  fontSize: e.value.style.chart.grid.x.timeLabels.fontSize,
1774
1775
  fill: e.value.style.chart.grid.x.timeLabels.color,
1775
- transform: `translate(${h.value.left + vt.value * s + vt.value / 2}, ${h.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
1776
+ transform: `translate(${d.value.left + vt.value * s + vt.value / 2}, ${d.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
1776
1777
  absoluteIndex: a.absoluteIndex,
1777
1778
  content: a.text,
1778
1779
  textAnchor: e.value.style.chart.grid.x.timeLabels.rotation > 0 ? "start" : e.value.style.chart.grid.x.timeLabels.rotation < 0 ? "end" : "middle",
@@ -1780,7 +1781,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1780
1781
  }), void 0, !0)
1781
1782
  ]))), 256))
1782
1783
  ])) : (i(), v("g", Ao, [
1783
- (i(!0), v(F, null, X(dt.value, (a, s) => (i(), v("g", null, [
1784
+ (i(!0), v(F, null, X(ht.value, (a, s) => (i(), v("g", null, [
1784
1785
  String(a.text).includes(`
1785
1786
  `) ? (i(), v("text", {
1786
1787
  key: s + "-multi",
@@ -1790,7 +1791,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1790
1791
  transform: `
1791
1792
  translate(
1792
1793
  ${ie(s)},
1793
- ${h.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}
1794
+ ${d.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}
1794
1795
  ),
1795
1796
  rotate(${e.value.style.chart.grid.x.timeLabels.rotation})
1796
1797
  `,
@@ -1810,55 +1811,55 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1810
1811
  "font-size": e.value.style.chart.grid.x.timeLabels.fontSize,
1811
1812
  "font-weight": e.value.style.chart.grid.x.timeLabels.bold ? "bold" : "normal",
1812
1813
  fill: e.value.style.chart.grid.x.timeLabels.color,
1813
- transform: `translate(${ie(s)}, ${h.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
1814
+ transform: `translate(${ie(s)}, ${d.value.bottom + e.value.style.chart.grid.x.timeLabels.fontSize * 1.3 + e.value.style.chart.grid.x.timeLabels.offsetY}), rotate(${e.value.style.chart.grid.x.timeLabels.rotation})`,
1814
1815
  style: ge({ cursor: ve.value ? "pointer" : "default" }),
1815
1816
  onClick: () => Va(a, s)
1816
1817
  }, fe(a.text), 13, To))
1817
1818
  ]))), 256))
1818
1819
  ]))
1819
1820
  ], 512)) : x("", !0),
1820
- (Le.value || ![null, void 0].includes(p.value)) && !e.value.style.chart.highlighter.useLine ? (i(!0), v(F, { key: 11 }, X(c.value.end - c.value.start, (a, s) => (i(), v("g", {
1821
+ (Le.value || ![null, void 0].includes(b.value)) && !e.value.style.chart.highlighter.useLine ? (i(!0), v(F, { key: 11 }, X(c.value.end - c.value.start, (a, s) => (i(), v("g", {
1821
1822
  key: `tooltip_trap_highlighter_${s}`
1822
1823
  }, [
1823
1824
  le("rect", {
1824
1825
  x: Oa(s).x,
1825
- y: h.value.top,
1826
- height: h.value.height,
1826
+ y: d.value.top,
1827
+ height: d.value.height,
1827
1828
  width: Oa(s).width,
1828
- fill: [Ye.value, p.value].includes(s) ? C(zs)(e.value.style.chart.highlighter.color, e.value.style.chart.highlighter.opacity) : "transparent",
1829
+ fill: [Ye.value, b.value].includes(s) ? C(Is)(e.value.style.chart.highlighter.color, e.value.style.chart.highlighter.opacity) : "transparent",
1829
1830
  style: { transition: "none !important", animation: "none !important" }
1830
1831
  }, null, 8, Po)
1831
1832
  ]))), 128)) : x("", !0),
1832
- (Le.value || ![null, void 0].includes(p.value)) && e.value.style.chart.highlighter.useLine ? (i(), v(F, { key: 12 }, [
1833
- ![null, void 0].includes(p.value) || ![null, void 0].includes(Ye.value) ? (i(), v("g", zo, [
1833
+ (Le.value || ![null, void 0].includes(b.value)) && e.value.style.chart.highlighter.useLine ? (i(), v(F, { key: 12 }, [
1834
+ ![null, void 0].includes(b.value) || ![null, void 0].includes(Ye.value) ? (i(), v("g", Io, [
1834
1835
  le("line", {
1835
- x1: ie((p.value ?? Ye.value) || 0),
1836
- x2: ie((p.value ?? Ye.value) || 0),
1837
- y1: C(tt)(h.value.top),
1838
- y2: C(tt)(h.value.bottom),
1836
+ x1: ie((b.value ?? Ye.value) || 0),
1837
+ x2: ie((b.value ?? Ye.value) || 0),
1838
+ y1: C(tt)(d.value.top),
1839
+ y2: C(tt)(d.value.bottom),
1839
1840
  stroke: e.value.style.chart.highlighter.color,
1840
1841
  "stroke-width": e.value.style.chart.highlighter.lineWidth,
1841
1842
  "stroke-dasharray": e.value.style.chart.highlighter.lineDasharray,
1842
1843
  "stroke-linecap": "round",
1843
1844
  style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
1844
- }, null, 8, Io)
1845
+ }, null, 8, zo)
1845
1846
  ])) : x("", !0)
1846
1847
  ], 64)) : x("", !0),
1847
1848
  (i(!0), v(F, null, X(T.value, (a) => (i(), v(F, null, [
1848
1849
  Le.value && c.value.end - c.value.start > e.value.style.chart.lines.dot.hideAboveMaxSerieLength ? (i(), v("g", _o, [
1849
- p.value != null ? (i(), v(F, { key: 0 }, [
1850
- a.rel.includes(p.value) && a.fullSeries?.[c.value.start + p.value] != null && !Number.isNaN(a.fullSeries?.[c.value.start + p.value]) ? (i(), oe(Kt, {
1850
+ b.value != null ? (i(), v(F, { key: 0 }, [
1851
+ a.rel.includes(b.value) && a.fullSeries?.[c.value.start + b.value] != null && !Number.isNaN(a.fullSeries?.[c.value.start + b.value]) ? (i(), oe(Kt, {
1851
1852
  key: 0,
1852
1853
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
1853
1854
  color: e.value.style.chart.lines.dot.useSerieColor ? a.color : e.value.style.chart.lines.dot.fill,
1854
1855
  plot: {
1855
- x: C(rl)(a.points[a.rel.indexOf(p.value)].x),
1856
- y: C(rl)(a.points[a.rel.indexOf(p.value)].y)
1856
+ x: C(rl)(a.points[a.rel.indexOf(b.value)].x),
1857
+ y: C(rl)(a.points[a.rel.indexOf(b.value)].y)
1857
1858
  },
1858
1859
  radius: e.value.style.chart.lines.dot.radius * 1.3,
1859
1860
  stroke: e.value.style.chart.lines.dot.useSerieColor ? e.value.style.chart.backgroundColor : a.color,
1860
1861
  strokeWidth: e.value.style.chart.lines.dot.strokeWidth,
1861
- transition: C(he) ? void 0 : `all ${e.value.style.chart.lines.transitionDurationMs}ms ease-in-out`
1862
+ transition: C(de) ? void 0 : `all ${e.value.style.chart.lines.transitionDurationMs}ms ease-in-out`
1862
1863
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : x("", !0)
1863
1864
  ], 64)) : x("", !0)
1864
1865
  ])) : x("", !0)
@@ -1870,10 +1871,10 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1870
1871
  shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(a.shape) ? a.shape : "circle",
1871
1872
  color: e.value.style.chart.lines.dot.useSerieColor ? a.color : e.value.style.chart.lines.dot.fill,
1872
1873
  plot: { x: s.x, y: s.y },
1873
- radius: Le.value && p.value === a.rel[n] ? e.value.style.chart.lines.dot.radius * 1.3 : e.value.style.chart.lines.dot.radius,
1874
+ radius: Le.value && b.value === a.rel[n] ? e.value.style.chart.lines.dot.radius * 1.3 : e.value.style.chart.lines.dot.radius,
1874
1875
  stroke: e.value.style.chart.lines.dot.useSerieColor ? e.value.style.chart.backgroundColor : a.color,
1875
1876
  strokeWidth: e.value.style.chart.lines.dot.strokeWidth,
1876
- transition: C(he) ? void 0 : `all ${e.value.style.chart.lines.transitionDurationMs}ms ease-in-out`
1877
+ transition: C(de) ? void 0 : `all ${e.value.style.chart.lines.transitionDurationMs}ms ease-in-out`
1877
1878
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : x("", !0)
1878
1879
  ]))), 128)) : x("", !0)
1879
1880
  ], 64))), 256)),
@@ -1909,25 +1910,25 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1909
1910
  ], 64))), 256))
1910
1911
  ], 512)) : x("", !0)
1911
1912
  ], 64)) : x("", !0),
1912
- Sa.value ? (i(), v("rect", pt({ key: 14 }, _l.value, {
1913
+ Sa.value ? (i(), v("rect", bt({ key: 14 }, _l.value, {
1913
1914
  "data-start": c.value.start,
1914
1915
  "data-end": c.value.end
1915
1916
  }), null, 16, Ro)) : x("", !0),
1916
1917
  N(t.$slots, "svg", {
1917
1918
  svg: {
1918
- drawingArea: h.value,
1919
+ drawingArea: d.value,
1919
1920
  data: T.value,
1920
- isPrintingImg: C(zt) | C(It) | lt.value,
1921
+ isPrintingImg: C(zt) | C(_t) | lt.value,
1921
1922
  isPrintingSvg: st.value
1922
1923
  }
1923
1924
  }, void 0, !0)
1924
1925
  ], 46, io)),
1925
1926
  t.$slots.hint ? (i(), v("div", Oo, [
1926
- N(t.$slots, "hint", ee(te({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: Ht.value })), void 0, !0)
1927
+ N(t.$slots, "hint", ee(te({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: Wt.value })), void 0, !0)
1927
1928
  ])) : x("", !0)
1928
1929
  ]),
1929
1930
  t.$slots.watermark ? (i(), v("div", Do, [
1930
- N(t.$slots, "watermark", ee(te({ isPrinting: C(zt) || C(It) || lt.value || st.value })), void 0, !0)
1931
+ N(t.$slots, "watermark", ee(te({ isPrinting: C(zt) || C(_t) || lt.value || st.value })), void 0, !0)
1931
1932
  ])) : x("", !0),
1932
1933
  na.value ? (i(), oe(xs, {
1933
1934
  key: 6,
@@ -1945,14 +1946,14 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1945
1946
  onClickMarker: l[0] || (l[0] = ({ legend: a }) => a.segregate())
1946
1947
  }, jt({
1947
1948
  item: P(({ legend: a }) => [
1948
- C(he) ? x("", !0) : (i(), v("div", {
1949
+ C(de) ? x("", !0) : (i(), v("div", {
1949
1950
  key: 0,
1950
1951
  onClick: (s) => a.segregate(),
1951
1952
  style: ge(`opacity:${D.value.includes(a.id) ? 0.5 : 1}`)
1952
1953
  }, fe(a.name), 13, Vo))
1953
1954
  ]),
1954
1955
  legendToggle: P(() => [
1955
- Xe.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !C(he) ? (i(), oe(ao, {
1956
+ Xe.value.length > 2 && e.value.style.chart.legend.selectAllToggle.show && !C(de) ? (i(), oe(ao, {
1956
1957
  key: 0,
1957
1958
  backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
1958
1959
  color: e.value.style.chart.legend.selectAllToggle.color,
@@ -1983,10 +1984,10 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1983
1984
  }, void 0, !0)
1984
1985
  ], 512)
1985
1986
  ], 8, ["to"])) : x("", !0),
1986
- Ee.value && e.value.userOptions.buttons.table ? (i(), oe(ks(Ge.value.component), pt({ key: 7 }, Ge.value.props, {
1987
+ Ee.value && e.value.userOptions.buttons.table ? (i(), oe(ks(Ge.value.component), bt({ key: 7 }, Ge.value.props, {
1987
1988
  ref_key: "tableUnit",
1988
1989
  ref: Ve,
1989
- onClose: Ha
1990
+ onClose: Wa
1990
1991
  }), jt({
1991
1992
  content: P(() => [
1992
1993
  Ze(C(fl), {
@@ -1997,7 +1998,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
1997
1998
  title: e.value.table.useDialog ? "" : Ge.value.title,
1998
1999
  withCloseButton: !e.value.table.useDialog,
1999
2000
  isCursorPointer: ve.value,
2000
- onClose: Ha
2001
+ onClose: Wa
2001
2002
  }, {
2002
2003
  th: P(({ th: a }) => [
2003
2004
  le("div", { innerHTML: a }, null, 8, Bo)
@@ -2028,10 +2029,10 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
2028
2029
  le("button", {
2029
2030
  tabindex: "0",
2030
2031
  class: "vue-ui-user-options-button",
2031
- onClick: l[1] || (l[1] = (a) => Wt(e.value.userOptions.callbacks.csv)),
2032
+ onClick: l[1] || (l[1] = (a) => Ht(e.value.userOptions.callbacks.csv)),
2032
2033
  style: ge({ cursor: ve.value ? "pointer" : "default" })
2033
2034
  }, [
2034
- Ze(C(dl), {
2035
+ Ze(C(hl), {
2035
2036
  name: "fileCsv",
2036
2037
  stroke: Ge.value.props.color
2037
2038
  }, null, 8, ["stroke"])
@@ -2060,7 +2061,7 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
2060
2061
  isPreview: Sa.value,
2061
2062
  labelLeft: e.value.style.chart.grid.x.timeLabels.values[c.value.start] ? se.value?.[0]?.text ?? "" : "",
2062
2063
  labelRight: e.value.style.chart.grid.x.timeLabels.values[c.value.end - 1] ? se.value?.at(-1)?.text ?? "" : "",
2063
- max: Math.max(...wt.dataset.map((a) => a.series.length)),
2064
+ max: Math.max(...St.dataset.map((a) => a.series.length)),
2064
2065
  min: 0,
2065
2066
  minimap: La.value,
2066
2067
  minimapCompact: e.value.style.chart.zoom.minimap.compact,
@@ -2069,17 +2070,17 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
2069
2070
  minimapMerged: !1,
2070
2071
  minimapSelectedColor: e.value.style.chart.zoom.minimap.selectedColor,
2071
2072
  minimapSelectedColorOpacity: e.value.style.chart.zoom.minimap.selectedColorOpacity,
2072
- minimapSelectedIndex: p.value,
2073
+ minimapSelectedIndex: b.value,
2073
2074
  minimapSelectionRadius: 1,
2074
- preciseLabels: _a.value.length ? _a.value : Ie.value,
2075
- refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...wt.dataset.map((a) => a.series.length)),
2075
+ preciseLabels: _a.value.length ? _a.value : ze.value,
2076
+ refreshEndPoint: e.value.style.chart.zoom.endIndex !== null ? e.value.style.chart.zoom.endIndex + 1 : Math.max(...St.dataset.map((a) => a.series.length)),
2076
2077
  refreshStartPoint: e.value.style.chart.zoom.startIndex !== null ? e.value.style.chart.zoom.startIndex : 0,
2077
2078
  selectColor: e.value.style.chart.zoom.highlightColor,
2078
2079
  selectedSeries: rs.value,
2079
2080
  smoothMinimap: !1,
2080
2081
  start: c.value.start,
2081
2082
  textColor: e.value.style.chart.color,
2082
- timeLabels: Ie.value,
2083
+ timeLabels: ze.value,
2083
2084
  usePreciseLabels: e.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !e.value.style.chart.zoom.useDefaultFormat,
2084
2085
  valueEnd: c.value.end,
2085
2086
  valueStart: c.value.start,
@@ -2093,8 +2094,8 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
2093
2094
  handleBorderColor: e.value.style.chart.zoom.minimap.handleBorderColor,
2094
2095
  handleFill: e.value.style.chart.zoom.minimap.handleFill,
2095
2096
  handleWidth: e.value.style.chart.zoom.minimap.handleWidth,
2096
- "onUpdate:end": Hl,
2097
- "onUpdate:start": Wl,
2097
+ "onUpdate:end": Wl,
2098
+ "onUpdate:start": Hl,
2098
2099
  onTrapMouse: Fl,
2099
2100
  onReset: $a,
2100
2101
  onFutureEnd: l[2] || (l[2] = (a) => Ma("end", a)),
@@ -2112,8 +2113,8 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
2112
2113
  }, 8, ["allMinimaps", "background", "borderColor", "customFormat", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "start", "textColor", "timeLabels", "usePreciseLabels", "valueEnd", "valueStart", "verticalHandles", "maxWidth", "isCursorPointer", "additionalMinimapHeight", "handleType", "handleIconColor", "handleBorderWidth", "handleBorderColor", "handleFill", "handleWidth"])) : x("", !0),
2113
2114
  le("div", {
2114
2115
  id: `legend-bottom-${K.value}`
2115
- }, null, 8, Wo),
2116
- Ze(C(hl), {
2116
+ }, null, 8, Ho),
2117
+ Ze(C(dl), {
2117
2118
  teleportTo: e.value.style.chart.tooltip.teleportTo,
2118
2119
  show: j.value.showTooltip && Re.value,
2119
2120
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
@@ -2153,11 +2154,11 @@ const so = ["id"], oo = ["id"], no = ["id"], ro = { style: { position: "relative
2153
2154
  N(t.$slots, "source", {}, void 0, !0)
2154
2155
  ], 512)) : x("", !0),
2155
2156
  N(t.$slots, "skeleton", {}, () => [
2156
- C(he) ? (i(), oe(Ys, { key: 0 })) : x("", !0)
2157
+ C(de) ? (i(), oe(Ys, { key: 0 })) : x("", !0)
2157
2158
  ], !0)
2158
2159
  ], 46, so));
2159
2160
  }
2160
- }, fn = /* @__PURE__ */ lo(Ho, [["__scopeId", "data-v-440d58b2"]]);
2161
+ }, fn = /* @__PURE__ */ lo(Wo, [["__scopeId", "data-v-a4a2b837"]]);
2161
2162
  export {
2162
2163
  fn as default
2163
2164
  };