vue-data-ui 3.25.8 → 3.25.10

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 (164) hide show
  1. package/dist/{BaseScanner-DZvpgOjM.js → BaseScanner-Dzc8VT3j.js} +6 -3
  2. package/dist/{PackageVersion-ekRvV3aF.js → PackageVersion-CZZayD-D.js} +1 -1
  3. package/dist/{PenAndPaper-KFzKlvbi.js → PenAndPaper-Cd3nItcO.js} +3 -3
  4. package/dist/{SlicerPreview-B6iHOC9L.js → SlicerPreview-Ccss7Vsq.js} +2 -2
  5. package/dist/{SparkTooltip-C-Y-mDrc.js → SparkTooltip-L3SliZbR.js} +1 -1
  6. package/dist/{UserOptions-2x4VklMW.js → UserOptions-qo_Tsqci.js} +1 -1
  7. package/dist/components/vue-ui-3d-bar.js +1 -1
  8. package/dist/components/vue-ui-age-pyramid.js +1 -1
  9. package/dist/components/vue-ui-annotator.js +1 -1
  10. package/dist/components/vue-ui-bullet.js +1 -1
  11. package/dist/components/vue-ui-bump.js +1 -1
  12. package/dist/components/vue-ui-candlestick.js +1 -1
  13. package/dist/components/vue-ui-carousel-table.js +1 -1
  14. package/dist/components/vue-ui-chestnut.js +1 -1
  15. package/dist/components/vue-ui-chord.js +1 -1
  16. package/dist/components/vue-ui-circle-pack.js +1 -1
  17. package/dist/components/vue-ui-cursor.js +1 -1
  18. package/dist/components/vue-ui-dag.js +1 -1
  19. package/dist/components/vue-ui-dashboard.js +1 -1
  20. package/dist/components/vue-ui-digits.js +1 -1
  21. package/dist/components/vue-ui-donut-evolution.js +1 -1
  22. package/dist/components/vue-ui-donut.js +1 -1
  23. package/dist/components/vue-ui-dumbbell.js +1 -1
  24. package/dist/components/vue-ui-flow.js +1 -1
  25. package/dist/components/vue-ui-funnel.js +1 -1
  26. package/dist/components/vue-ui-galaxy.js +1 -1
  27. package/dist/components/vue-ui-gauge.js +1 -1
  28. package/dist/components/vue-ui-geo.js +1 -1
  29. package/dist/components/vue-ui-gizmo.js +1 -1
  30. package/dist/components/vue-ui-heatmap.js +1 -1
  31. package/dist/components/vue-ui-hill.js +1 -1
  32. package/dist/components/vue-ui-history-plot.js +1 -1
  33. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  34. package/dist/components/vue-ui-kpi.js +1 -1
  35. package/dist/components/vue-ui-label.js +1 -1
  36. package/dist/components/vue-ui-molecule.js +1 -1
  37. package/dist/components/vue-ui-mood-radar.js +1 -1
  38. package/dist/components/vue-ui-nested-donuts.js +1 -1
  39. package/dist/components/vue-ui-onion.js +1 -1
  40. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  41. package/dist/components/vue-ui-quadrant.js +1 -1
  42. package/dist/components/vue-ui-quick-chart.js +1 -1
  43. package/dist/components/vue-ui-radar.js +1 -1
  44. package/dist/components/vue-ui-relation-circle.js +1 -1
  45. package/dist/components/vue-ui-ridgeline.js +1 -1
  46. package/dist/components/vue-ui-rings.js +1 -1
  47. package/dist/components/vue-ui-scatter.js +1 -1
  48. package/dist/components/vue-ui-skeleton.js +1 -1
  49. package/dist/components/vue-ui-spark-trend.js +1 -1
  50. package/dist/components/vue-ui-sparkbar.js +1 -1
  51. package/dist/components/vue-ui-sparkgauge.js +1 -1
  52. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  53. package/dist/components/vue-ui-sparkline.js +1 -1
  54. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  55. package/dist/components/vue-ui-stackbar.js +1 -1
  56. package/dist/components/vue-ui-stackline.js +1 -1
  57. package/dist/components/vue-ui-strip-plot.js +1 -1
  58. package/dist/components/vue-ui-table-heatmap.js +1 -1
  59. package/dist/components/vue-ui-table-sparkline.js +1 -1
  60. package/dist/components/vue-ui-table.js +1 -1
  61. package/dist/components/vue-ui-thermometer.js +1 -1
  62. package/dist/components/vue-ui-timer.js +1 -1
  63. package/dist/components/vue-ui-tiremarks.js +1 -1
  64. package/dist/components/vue-ui-treemap.js +1 -1
  65. package/dist/components/vue-ui-vertical-bar.js +1 -1
  66. package/dist/components/vue-ui-waffle.js +1 -1
  67. package/dist/components/vue-ui-wheel.js +1 -1
  68. package/dist/components/vue-ui-word-cloud.js +1 -1
  69. package/dist/components/vue-ui-world.js +1 -1
  70. package/dist/components/vue-ui-xy-canvas.js +1 -1
  71. package/dist/components/vue-ui-xy.js +1 -1
  72. package/dist/composables.js +1 -1
  73. package/dist/{dom-to-png-C6cQJ5Hq.js → dom-to-png-BR4imuKV.js} +1 -1
  74. package/dist/{geoProjections-CEo3dVaL.js → geoProjections-BYthUA8l.js} +2 -2
  75. package/dist/{img-DhGApYG0.js → img-BkMKbWsI.js} +1 -1
  76. package/dist/{package-C4XeEHJx.js → package-CYtJq7s7.js} +1 -1
  77. package/dist/{pdf-Di5yPEw9.js → pdf-BSOs_GZz.js} +1 -1
  78. package/dist/{render-common-CQUp12xB.js → render-common-CpHpPc5s.js} +1 -1
  79. package/dist/ssr/vue-ui-donut.js +1 -1
  80. package/dist/ssr/vue-ui-xy.js +1 -1
  81. package/dist/ssr.js +2 -2
  82. package/dist/style.css +1 -1
  83. package/dist/types/utils.d.ts +5 -5
  84. package/dist/types/vue-data-ui.d.ts +5 -5
  85. package/dist/{usePrinter-DISD7q5m.js → usePrinter-hohanNCX.js} +4 -4
  86. package/dist/{useTooltipPosition-DifeoeQW.js → useTooltipPosition-BCrtQa9H.js} +1 -1
  87. package/dist/{vue-data-ui-BChCkqtW.js → vue-data-ui-ChB3aXCO.js} +65 -65
  88. package/dist/vue-data-ui.js +66 -66
  89. package/dist/{vue-ui-3d-bar-BkVOy4Y_.js → vue-ui-3d-bar-DcXbkO19.js} +5 -5
  90. package/dist/{vue-ui-age-pyramid-1_yQ64LX.js → vue-ui-age-pyramid-Cnaxt9NI.js} +263 -251
  91. package/dist/{vue-ui-annotator-BO5ihHOB.js → vue-ui-annotator-BLYRy--7.js} +12 -12
  92. package/dist/{vue-ui-bullet-BF1FeBst.js → vue-ui-bullet-DOfD2TSb.js} +4 -4
  93. package/dist/{vue-ui-bump-ZtKya76Y.js → vue-ui-bump-DL2lDZbE.js} +3 -3
  94. package/dist/{vue-ui-candlestick-P-clTYIt.js → vue-ui-candlestick-ijujiVJ5.js} +453 -441
  95. package/dist/{vue-ui-carousel-table-BVS-4A3h.js → vue-ui-carousel-table-DFtWb2-C.js} +3 -3
  96. package/dist/{vue-ui-chestnut-DHOIbpib.js → vue-ui-chestnut-BGXr0s08.js} +5 -5
  97. package/dist/{vue-ui-chord-CX_Mc3Fp.js → vue-ui-chord-DgBzLfbv.js} +5 -5
  98. package/dist/{vue-ui-circle-pack-Caqvblsl.js → vue-ui-circle-pack-88qDJbt0.js} +494 -482
  99. package/dist/{vue-ui-cursor-BFF4tWUb.js → vue-ui-cursor-CcEB7Ypx.js} +1 -1
  100. package/dist/{vue-ui-dag-CtG3HUh4.js → vue-ui-dag-BeoFmTDs.js} +6 -6
  101. package/dist/{vue-ui-dashboard-DASHNFPT.js → vue-ui-dashboard-NOVcGMCa.js} +63 -63
  102. package/dist/{vue-ui-digits-BQWHzntO.js → vue-ui-digits-BGmT7H1z.js} +1 -1
  103. package/dist/{vue-ui-donut-DHP_lm0m.js → vue-ui-donut-CP7ilveE.js} +838 -826
  104. package/dist/{vue-ui-donut-vbqlIlij.js → vue-ui-donut-CtXzuWzy.js} +1 -1
  105. package/dist/{vue-ui-donut-evolution-Cio3lNLz.js → vue-ui-donut-evolution-D_-y7BZi.js} +6 -6
  106. package/dist/{vue-ui-dumbbell-C2lQhCfq.js → vue-ui-dumbbell-BR1Cn4wm.js} +4 -4
  107. package/dist/vue-ui-flow-Bm6TgD8I.js +1229 -0
  108. package/dist/{vue-ui-funnel-DDncfHgI.js → vue-ui-funnel-CQ0-9nZT.js} +3 -3
  109. package/dist/vue-ui-galaxy-DUto0BOw.js +1097 -0
  110. package/dist/{vue-ui-gauge-OQbET2bh.js → vue-ui-gauge-B6pyA6Jh.js} +4 -4
  111. package/dist/{vue-ui-geo-Ddw87hVT.js → vue-ui-geo-BlG7s8MH.js} +408 -396
  112. package/dist/{vue-ui-gizmo-DJVWEvWS.js → vue-ui-gizmo-BlyehpxE.js} +2 -2
  113. package/dist/{vue-ui-heatmap-BKG4xt6j.js → vue-ui-heatmap-DqbWkKAE.js} +405 -393
  114. package/dist/{vue-ui-hill-BAruBiw6.js → vue-ui-hill-CGE0NdNk.js} +7 -7
  115. package/dist/vue-ui-history-plot-CaxqIiTb.js +1710 -0
  116. package/dist/{vue-ui-horizontal-bar-CXT7-P_o.js → vue-ui-horizontal-bar-Ykwe4M1n.js} +401 -389
  117. package/dist/{vue-ui-kpi-uOGX20hs.js → vue-ui-kpi-B7Nfet0o.js} +1 -1
  118. package/dist/{vue-ui-label-C1UAzvAu.js → vue-ui-label-Cs4ZlAqr.js} +10 -10
  119. package/dist/{vue-ui-molecule-BcA064dR.js → vue-ui-molecule-DWq98OSc.js} +347 -335
  120. package/dist/{vue-ui-mood-radar-CXtC0IqT.js → vue-ui-mood-radar-DDfimq6c.js} +5 -5
  121. package/dist/{vue-ui-nested-donuts-BFE0oXF_.js → vue-ui-nested-donuts-Bt-r6uXS.js} +360 -348
  122. package/dist/vue-ui-onion-D8gOhQHP.js +1247 -0
  123. package/dist/{vue-ui-parallel-coordinate-plot-5kKVnNmE.js → vue-ui-parallel-coordinate-plot-BbPbJiiu.js} +387 -375
  124. package/dist/{vue-ui-quadrant-BPg8L6Sw.js → vue-ui-quadrant-BJlf3qW1.js} +418 -406
  125. package/dist/{vue-ui-quick-chart-DQ_rhjqc.js → vue-ui-quick-chart-Cb8x00-X.js} +550 -538
  126. package/dist/{vue-ui-radar-C65wD7cW.js → vue-ui-radar-30PF-qqr.js} +330 -318
  127. package/dist/{vue-ui-relation-circle-nZaZcCh1.js → vue-ui-relation-circle-CRiC4PnL.js} +4 -4
  128. package/dist/{vue-ui-ridgeline-Bsi2hN14.js → vue-ui-ridgeline-CSs4Tq_c.js} +4 -4
  129. package/dist/{vue-ui-rings-DkCzxDyQ.js → vue-ui-rings-BqRWK5rY.js} +321 -309
  130. package/dist/{vue-ui-scatter-V01qkcN8.js → vue-ui-scatter-Bsh6jbdW.js} +584 -572
  131. package/dist/{vue-ui-skeleton-BgYtv_I2.js → vue-ui-skeleton-DbPSsEKV.js} +1 -1
  132. package/dist/{vue-ui-spark-trend-Dm1OyGyr.js → vue-ui-spark-trend--8QokOII.js} +2 -2
  133. package/dist/{vue-ui-sparkbar-D3hChHHS.js → vue-ui-sparkbar-DkX9Demg.js} +2 -2
  134. package/dist/{vue-ui-sparkgauge-CAeJapmG.js → vue-ui-sparkgauge-Ci_xD5B7.js} +2 -2
  135. package/dist/{vue-ui-sparkhistogram-ZIo_Vg7F.js → vue-ui-sparkhistogram-Qe3ZCPRd.js} +2 -2
  136. package/dist/{vue-ui-sparkline-BjvSeM83.js → vue-ui-sparkline-BwldgOYW.js} +2 -2
  137. package/dist/vue-ui-sparkstackbar-Divd0hL_.js +750 -0
  138. package/dist/vue-ui-stackbar-BWPSGzN-.js +2369 -0
  139. package/dist/vue-ui-stackline-BQroSnwZ.js +2483 -0
  140. package/dist/vue-ui-strip-plot-BCUPHkCp.js +1752 -0
  141. package/dist/{vue-ui-table-C8cvK-x_.js → vue-ui-table-DJeXLYly.js} +2 -2
  142. package/dist/{vue-ui-table-heatmap-BSUab4fG.js → vue-ui-table-heatmap-D5F5bLx5.js} +2 -2
  143. package/dist/{vue-ui-table-sparkline-Dam9BFsU.js → vue-ui-table-sparkline-DCm8S2uK.js} +2 -2
  144. package/dist/{vue-ui-thermometer-zyBeCINd.js → vue-ui-thermometer-xu4R8d2f.js} +4 -4
  145. package/dist/{vue-ui-timer-CDXczagK.js → vue-ui-timer-i_3bMu3h.js} +1 -1
  146. package/dist/{vue-ui-tiremarks-CG8LNC9c.js → vue-ui-tiremarks-DGuMI0yH.js} +4 -4
  147. package/dist/{vue-ui-treemap-DfDRwoZc.js → vue-ui-treemap-Bvl7elni.js} +311 -299
  148. package/dist/vue-ui-waffle-CVuYg0yU.js +1633 -0
  149. package/dist/{vue-ui-wheel-DDJIPE_z.js → vue-ui-wheel-DqHD09iA.js} +4 -4
  150. package/dist/{vue-ui-word-cloud-DBOXRp-e.js → vue-ui-word-cloud-BDCuTQ8Q.js} +385 -372
  151. package/dist/{vue-ui-world-CiIyp7WH.js → vue-ui-world-B0oVwEDj.js} +474 -462
  152. package/dist/{vue-ui-xy-s_IZ573M.js → vue-ui-xy-BJJi0E4D.js} +1 -1
  153. package/dist/{vue-ui-xy-AGYE0Vsz.js → vue-ui-xy-D1dPd68D.js} +1447 -1432
  154. package/dist/{vue-ui-xy-canvas-MOMyUdJg.js → vue-ui-xy-canvas-R2xbgDOy.js} +523 -511
  155. package/package.json +3 -3
  156. package/dist/vue-ui-flow-Dmnz4LCl.js +0 -1217
  157. package/dist/vue-ui-galaxy-Dw7TyOH0.js +0 -1085
  158. package/dist/vue-ui-history-plot-BKUg8Gz_.js +0 -1698
  159. package/dist/vue-ui-onion-DhedgEnV.js +0 -1235
  160. package/dist/vue-ui-sparkstackbar-DGQcpWK4.js +0 -738
  161. package/dist/vue-ui-stackbar-D0qmFn5Y.js +0 -2355
  162. package/dist/vue-ui-stackline-BBtEVl9V.js +0 -2469
  163. package/dist/vue-ui-strip-plot-CkU-nCt4.js +0 -1740
  164. package/dist/vue-ui-waffle-D6_cGi1-.js +0 -1621
@@ -1,13 +1,13 @@
1
1
  import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, Ct as n, D as r, Ft as i, K as a, Lt as o, Mt as s, Pt as c, S as l, Ut as u, Wt as ee, X as d, Yt as te, Zt as f, b as ne, f as p, h as re, ht as ie, i as m, j as ae, nt as oe, ot as se, p as ce, q as le, s as ue, st as de, t as fe, tt as pe, w as me } from "./lib-Dql7cqyA.js";
2
+ import { $ as t, Ct as n, D as r, Ft as i, K as a, Lt as o, Mt as s, Pt as c, S as l, Ut as u, Wt as ee, X as d, Yt as te, Z as f, Zt as ne, b as re, f as p, h as ie, ht as ae, i as m, j as oe, nt as se, ot as ce, p as h, q as le, s as ue, st as de, t as fe, tt as pe, w as me } from "./lib-Dql7cqyA.js";
3
3
  import { n as he, t as ge } from "./useHints-Dq_w2E8B.js";
4
4
  import { t as _e } from "./useConfig-D32D002m.js";
5
- import { t as ve } from "./usePrinter-DISD7q5m.js";
6
- import { n as ye, t as be } from "./BaseScanner-DZvpgOjM.js";
5
+ import { t as ve } from "./usePrinter-hohanNCX.js";
6
+ import { n as ye, t as be } from "./BaseScanner-Dzc8VT3j.js";
7
7
  import { t as xe } from "./useNestedProp-Chvyfpl-.js";
8
8
  import { t as Se } from "./useThemeCheck-C43Tcqmk.js";
9
9
  import { t as Ce } from "./useChartExport-iwOqiIWX.js";
10
- import { t as we } from "./img-DhGApYG0.js";
10
+ import { t as we } from "./img-BkMKbWsI.js";
11
11
  import { n as Te } from "./Title-CPHi-evi.js";
12
12
  import { t as Ee } from "./Shape-CIqU-p2F.js";
13
13
  import { t as De } from "./_plugin-vue_export-helper-B3ysoDQm.js";
@@ -20,19 +20,19 @@ import { t as Pe } from "./useChartAccessibility-DYqac8yF.js";
20
20
  import { n as Fe, t as Ie } from "./labelUtils-BXX2NzRe.js";
21
21
  import { t as Le } from "./vue_ui_donut-BDGqG07h.js";
22
22
  import { t as Re } from "./Legend-X4kF4PvW.js";
23
- import { Fragment as h, Teleport as ze, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createSlots as Be, createTextVNode as Ve, createVNode as He, defineAsyncComponent as Ue, guardReactiveProps as x, mergeProps as We, nextTick as Ge, normalizeClass as Ke, normalizeProps as S, normalizeStyle as C, onBeforeUnmount as qe, onMounted as Je, openBlock as w, ref as T, renderList as E, renderSlot as D, resolveDynamicComponent as Ye, shallowRef as Xe, toDisplayString as O, toRefs as Ze, unref as k, useSlots as Qe, vShow as $e, watch as et, withCtx as A, withDirectives as tt } from "vue";
23
+ import { Fragment as g, Teleport as ze, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as Be, createTextVNode as Ve, createVNode as He, defineAsyncComponent as Ue, guardReactiveProps as S, mergeProps as We, nextTick as Ge, normalizeClass as Ke, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as qe, onMounted as Je, openBlock as T, ref as E, renderList as D, renderSlot as O, resolveDynamicComponent as Ye, shallowRef as Xe, toDisplayString as k, toRefs as Ze, unref as A, useSlots as Qe, vShow as $e, watch as et, withCtx as j, withDirectives as tt } from "vue";
24
24
  //#region src/useSmallArcLayouts.js
25
25
  function nt(e) {
26
26
  let { FINAL_CONFIG: t, noGhostDonut: n, svg: r, padding: i, labels_inline_fontSize: a, minSize: o, findArcMidpoint: s, calcMarkerOffsetX: c, calcMarkerOffsetY: l, animatingIndex: u, segregated: ee, isSmallArc: d } = e;
27
- return { smallArcLayoutsClassic: g(() => {
27
+ return { smallArcLayoutsClassic: _(() => {
28
28
  if (t.value.type !== "classic") return {};
29
29
  let e = {}, te = n.value || [];
30
30
  if (!te.length) return e;
31
- let f = r.value.width / 2, ne = r.value.height / 2, p = i.value.top + 16, re = r.value.height - i.value.bottom - 16, ie = a.value, m = ie / 3, ae = ie * 1.5, oe = f - (o.value + 6), se = f + (o.value + 6), ce = !!t.value.style.chart.layout.curvedMarkers;
32
- function le({ midX: e, midY: t, bandX: n, bandY: r }) {
31
+ let f = r.value.width / 2, ne = r.value.height / 2, re = i.value.top + 16, p = r.value.height - i.value.bottom - 16, ie = a.value, ae = ie / 3, m = ie * 1.5, oe = f - (o.value + 6), se = f + (o.value + 6), ce = !!t.value.style.chart.layout.curvedMarkers;
32
+ function h({ midX: e, midY: t, bandX: n, bandY: r }) {
33
33
  if (!ce) return `M ${e} ${t} L ${e} ${r} L ${n} ${r}`;
34
34
  let i = n < f ? -1 : 1, a = n - e, o = r - t, s = Math.sqrt(a * a + o * o) || 1, c = e - f, l = t - ne, u = Math.sqrt(c * c + l * l) || 1, ee = c / u, d = l / u, te = u + 9;
35
- function p({ x: e, y: t }) {
35
+ function re({ x: e, y: t }) {
36
36
  let n = e - f, r = t - ne, i = Math.sqrt(n * n + r * r) || 1;
37
37
  if (i >= te) return {
38
38
  x: e,
@@ -45,34 +45,34 @@ function nt(e) {
45
45
  };
46
46
  }
47
47
  if (s < 56) {
48
- let i = a / s, c = -(o / s), l = i, u = (e + n) * .5, te = (t + r) * .5, re = u + c, ie = te + l, m = (re - f) * (re - f) + (ie - ne) * (ie - ne), ae = u - c, oe = te - l;
49
- (ae - f) * (ae - f) + (oe - ne) * (oe - ne) > m && (c = -c, l = -l);
50
- let se = .78, ce = e + a * se, le = t + o * se, ue = Math.max(0, Math.min(1, (s - 18) / 44)), de = ue * ue * (3 - 2 * ue), fe = 2.5 + de * 4, pe = 1 + de * 2.5;
51
- fe *= .9;
52
- let me = p({
53
- x: ce + c * fe + ee * pe,
54
- y: le + l * fe + d * pe
48
+ let i = a / s, c = -(o / s), l = i, u = (e + n) * .5, te = (t + r) * .5, p = u + c, ie = te + l, ae = (p - f) * (p - f) + (ie - ne) * (ie - ne), m = u - c, oe = te - l;
49
+ (m - f) * (m - f) + (oe - ne) * (oe - ne) > ae && (c = -c, l = -l);
50
+ let se = .78, ce = e + a * se, h = t + o * se, le = Math.max(0, Math.min(1, (s - 18) / 44)), ue = le * le * (3 - 2 * le), de = 2.5 + ue * 4, fe = 1 + ue * 2.5;
51
+ de *= .9;
52
+ let pe = re({
53
+ x: ce + c * de + ee * fe,
54
+ y: h + l * de + d * fe
55
55
  });
56
- return `M ${e} ${t} Q ${me.x} ${me.y} ${n} ${r}`;
56
+ return `M ${e} ${t} Q ${pe.x} ${pe.y} ${n} ${r}`;
57
57
  }
58
- let re = s * .34;
59
- re < 20 && (re = 20), re > 46 && (re = 46);
58
+ let p = s * .34;
59
+ p < 20 && (p = 20), p > 46 && (p = 46);
60
60
  let ie = s * .46;
61
61
  ie < 22 && (ie = 22), ie > 70 && (ie = 70);
62
- let m = {
63
- x: e + ee * re,
64
- y: t + d * re
65
- }, ae = f + i * Math.max(Math.abs(n - f), te), oe = {
66
- x: n - i * Math.min(ie, Math.abs(ae - n) * .75),
62
+ let ae = {
63
+ x: e + ee * p,
64
+ y: t + d * p
65
+ }, m = f + i * Math.max(Math.abs(n - f), te), oe = {
66
+ x: n - i * Math.min(ie, Math.abs(m - n) * .75),
67
67
  y: r
68
- }, se = p(m), le = p(oe);
69
- return `M ${e} ${t} C ${se.x} ${se.y} ${le.x} ${le.y} ${n} ${r}`;
68
+ }, se = re(ae), h = re(oe);
69
+ return `M ${e} ${t} C ${se.x} ${se.y} ${h.x} ${h.y} ${n} ${r}`;
70
70
  }
71
- function ue(e) {
71
+ function le(e) {
72
72
  let t = String(e ?? "").split(/\n/g), n = Math.max(0, t.length - 1) * (ie * 1.2);
73
- return ae + n;
73
+ return m + n;
74
74
  }
75
- function de({ arc: e, index: t }) {
75
+ function ue({ arc: e, index: t }) {
76
76
  let { x: n, y: r } = s(e.path);
77
77
  return {
78
78
  arc: e,
@@ -81,47 +81,47 @@ function nt(e) {
81
81
  midY: r,
82
82
  inlineMarkerX: c(e).x,
83
83
  inlineMarkerY: l(e) - 3.5,
84
- labelHeight: ue(e.name)
84
+ labelHeight: le(e.name)
85
85
  };
86
86
  }
87
- function fe(e) {
87
+ function de(e) {
88
88
  let { arc: t } = e, n = t.seriesIndex ?? 0;
89
89
  return u.value === n || ee.value.includes(n) ? !1 : d(t, n);
90
90
  }
91
- function pe(e) {
91
+ function fe(e) {
92
92
  let t = e.inlineMarkerY < ne, n = e.inlineMarkerX < f;
93
93
  return t && n ? "TL" : t && !n ? "TR" : !t && n ? "BL" : "BR";
94
94
  }
95
- function me(e, t) {
95
+ function pe(e, t) {
96
96
  if (t.startsWith("T")) {
97
97
  e.sort((e, t) => e.inlineMarkerY - t.inlineMarkerY || e.index - t.index);
98
98
  return;
99
99
  }
100
100
  e.sort((e, t) => t.inlineMarkerY - e.inlineMarkerY || e.index - t.index);
101
101
  }
102
- function he({ side: e, markerX: t, markerY: n, labelY: r, connectorPath: i }) {
102
+ function me({ side: e, markerX: t, markerY: n, labelY: r, connectorPath: i }) {
103
103
  return {
104
104
  side: e,
105
105
  labelX: e === "left" ? t - 8 : t + 8,
106
- labelY: r + m,
106
+ labelY: r + ae,
107
107
  textAnchor: e === "left" ? "end" : "start",
108
108
  markerX: t,
109
109
  markerY: n,
110
110
  connectorPath: i
111
111
  };
112
112
  }
113
- function ge({ candidateList: t, side: n, bandMarkerX: r, startY: i, direction: a }) {
113
+ function he({ candidateList: t, side: n, bandMarkerX: r, startY: i, direction: a }) {
114
114
  let o = i;
115
115
  t.forEach((t) => {
116
116
  let { index: i, midX: s, midY: c, labelHeight: l } = t, u;
117
117
  a === "down" ? (u = o, o += l) : (o -= l, u = o);
118
- let ee = u, d = le({
118
+ let ee = u, d = h({
119
119
  midX: s,
120
120
  midY: c,
121
121
  bandX: r,
122
122
  bandY: ee
123
123
  });
124
- e[i] = he({
124
+ e[i] = me({
125
125
  side: n,
126
126
  markerX: r,
127
127
  markerY: ee,
@@ -130,42 +130,42 @@ function nt(e) {
130
130
  });
131
131
  });
132
132
  }
133
- let _e = te.map((e, t) => de({
133
+ let ge = te.map((e, t) => ue({
134
134
  arc: e,
135
135
  index: t
136
- })).filter(fe), ve = {
136
+ })).filter(de), _e = {
137
137
  TL: [],
138
138
  TR: [],
139
139
  BL: [],
140
140
  BR: []
141
141
  };
142
- return _e.forEach((e) => {
143
- ve[pe(e)].push(e);
144
- }), Object.keys(ve).forEach((e) => {
145
- me(ve[e], e);
146
- }), ge({
147
- candidateList: ve.TL,
142
+ return ge.forEach((e) => {
143
+ _e[fe(e)].push(e);
144
+ }), Object.keys(_e).forEach((e) => {
145
+ pe(_e[e], e);
146
+ }), he({
147
+ candidateList: _e.TL,
148
148
  side: "left",
149
149
  bandMarkerX: oe,
150
- startY: p,
150
+ startY: re,
151
151
  direction: "down"
152
- }), ge({
153
- candidateList: ve.TR,
152
+ }), he({
153
+ candidateList: _e.TR,
154
154
  side: "right",
155
155
  bandMarkerX: se,
156
- startY: p,
156
+ startY: re,
157
157
  direction: "down"
158
- }), ve.BL.length > 1 && ge({
159
- candidateList: ve.BL,
158
+ }), _e.BL.length > 1 && he({
159
+ candidateList: _e.BL,
160
160
  side: "left",
161
161
  bandMarkerX: oe,
162
- startY: re,
162
+ startY: p,
163
163
  direction: "up"
164
- }), ve.BR.length > 1 && ge({
165
- candidateList: ve.BR,
164
+ }), _e.BR.length > 1 && he({
165
+ candidateList: _e.BR,
166
166
  side: "right",
167
167
  bandMarkerX: se,
168
- startY: re,
168
+ startY: p,
169
169
  direction: "up"
170
170
  }), e;
171
171
  }) };
@@ -401,29 +401,29 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
401
401
  "copyAlt"
402
402
  ],
403
403
  setup(e, { expose: De, emit: rt }) {
404
- let vn = Ue(() => import("./Tooltip-hhrkQ3Lk.js")), yn = Ue(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), bn = Ue(() => import("./vue-ui-accordion-DmkL8A59.js").then((e) => e.n)), xn = Ue(() => import("./DataTable-oiM9uWrQ.js")), Sn = Ue(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), Cn = Ue(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), wn = Ue(() => import("./PackageVersion-ekRvV3aF.js").then((e) => e.t)), Tn = Ue(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_donut: En } = _e(), { isThemeValid: Dn, warnInvalidTheme: On } = Se(), kn = Qe(), j = e, An = g({
404
+ let vn = Ue(() => import("./Tooltip-hhrkQ3Lk.js")), yn = Ue(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), bn = Ue(() => import("./vue-ui-accordion-DmkL8A59.js").then((e) => e.n)), xn = Ue(() => import("./DataTable-oiM9uWrQ.js")), Sn = Ue(() => import("./PenAndPaper-Cd3nItcO.js").then((e) => e.t)), Cn = Ue(() => import("./UserOptions-qo_Tsqci.js").then((e) => e.n)), wn = Ue(() => import("./PackageVersion-CZZayD-D.js").then((e) => e.t)), Tn = Ue(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_donut: En } = _e(), { isThemeValid: Dn, warnInvalidTheme: On } = Se(), kn = Qe(), M = e, An = _({
405
405
  get() {
406
- return !!j.dataset && j.dataset.length;
406
+ return !!M.dataset && M.dataset.length;
407
407
  },
408
408
  set(e) {
409
409
  return e;
410
410
  }
411
- }), M = Xe(null), jn = T(null), Mn = T(null), Nn = T(null), Pn = Xe(null), Fn = Xe(null), In = Xe(null), Ln = Xe(null), Rn = Xe(null), zn = Xe(null), Bn = T(0), Vn = T(0), Hn = T(0), Un = T(!1), Wn = T(null), Gn = T(null), Kn = T(null), qn = T({
411
+ }), jn = Xe(null), Mn = E(null), Nn = E(null), Pn = E(null), Fn = Xe(null), In = Xe(null), Ln = Xe(null), Rn = Xe(null), zn = Xe(null), Bn = Xe(null), Vn = E(0), Hn = E(0), Un = E(0), Wn = E(!1), Gn = E(null), Kn = E(null), qn = E(null), Jn = E({
412
412
  x: 0,
413
413
  y: 0
414
- }), Jn = T("pointer"), Yn = T(!1), Xn = g({
414
+ }), Yn = E("pointer"), Xn = E(!1), Zn = _({
415
415
  get: () => I.value.style.chart.layout.labels.percentage.fontSize,
416
416
  set: (e) => e
417
- }), N = g({
417
+ }), N = _({
418
418
  get: () => I.value.style.chart.layout.labels.name.fontSize,
419
419
  set: (e) => e
420
- }), Zn = g({
420
+ }), Qn = _({
421
421
  get: () => I.value.style.chart.layout.labels.dataLabels.smallArcClusterFontSize,
422
422
  set: (e) => e
423
- }), Qn = !1, $n = () => {
424
- !I.value.autoSize || Qn || (Qn = !0, requestAnimationFrame(() => {
425
- Qn = !1;
426
- let e = I.value, t = jn.value, n = V.value;
423
+ }), $n = !1, er = () => {
424
+ I.value.autoSize && !$n && ($n = !0, requestAnimationFrame(() => {
425
+ $n = !1;
426
+ let e = I.value, t = Mn.value, n = Sr.value;
427
427
  if (!e.autoSize || !t || !n) return;
428
428
  let [r, i, a, o] = n.getAttribute("viewBox").split(" ").map(Number), s = {
429
429
  x: r,
@@ -435,7 +435,7 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
435
435
  selector: ".vue-data-ui-datalabel-value",
436
436
  baseSize: L.value.percentage.fontSize,
437
437
  minSize: L.value.percentage.minFontSize,
438
- sizeRef: Xn
438
+ sizeRef: Zn
439
439
  },
440
440
  {
441
441
  selector: ".vue-data-ui-datalabel-name",
@@ -447,7 +447,7 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
447
447
  selector: ".vue-data-ui-datalabel-inline",
448
448
  baseSize: L.value.dataLabels.smallArcClusterFontSize,
449
449
  minSize: L.value.name.minFontSize,
450
- sizeRef: Zn
450
+ sizeRef: Qn
451
451
  }
452
452
  ];
453
453
  c.map((e) => t.querySelectorAll(e.selector).length).reduce((e, t) => e + t, 0) !== 0 && c.forEach(({ selector: e, baseSize: n, minSize: r, sizeRef: i }) => {
@@ -465,83 +465,83 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
465
465
  }));
466
466
  };
467
467
  Je(async () => {
468
- Un.value = !0, nr(), requestAnimationFrame($n);
468
+ Wn.value = !0, rr(), requestAnimationFrame(er);
469
469
  });
470
- let er;
470
+ let tr;
471
471
  Je(() => {
472
- M.value && (er = new ResizeObserver((e) => {
472
+ jn.value && (tr = new ResizeObserver((e) => {
473
473
  for (let t of e) {
474
474
  let { width: e, height: n } = t.contentRect;
475
475
  if (e > 0 && n > 0) {
476
- $n();
476
+ er();
477
477
  break;
478
478
  }
479
479
  }
480
- }), er.observe(M.value.parentElement));
480
+ }), tr.observe(jn.value.parentElement));
481
481
  }), qe(() => {
482
- er?.disconnect();
482
+ tr?.disconnect();
483
483
  }), qe(() => {
484
- In.value && (Ln.value && In.value.unobserve(Ln.value), In.value.disconnect());
484
+ Ln.value && (Rn.value && Ln.value.unobserve(Rn.value), Ln.value.disconnect());
485
485
  });
486
- let tr = g(() => I.value.debug);
487
- function nr() {
488
- if (c(j.dataset) ? (oe({
486
+ let nr = _(() => I.value.debug);
487
+ function rr() {
488
+ if (c(M.dataset) ? (se({
489
489
  componentName: "VueUiDonut",
490
490
  type: "dataset",
491
- debug: tr.value
492
- }), An.value = !1, fr.value = !0) : (j.dataset.forEach((e, t) => {
493
- ie({
491
+ debug: nr.value
492
+ }), An.value = !1, pr.value = !0) : (M.dataset.forEach((e, t) => {
493
+ ae({
494
494
  datasetObject: e,
495
495
  requiredAttributes: ["name", "values"]
496
496
  }).forEach((e) => {
497
- oe({
497
+ se({
498
498
  componentName: "VueUiDonut",
499
499
  type: "datasetSerieAttribute",
500
500
  property: e,
501
501
  index: t,
502
- debug: tr.value
503
- }), An.value = !1, fr.value = !0;
502
+ debug: nr.value
503
+ }), An.value = !1, pr.value = !0;
504
504
  });
505
- }), tr.value && j.dataset.forEach((e, t) => {
506
- (!e.name || e.name === "") && oe({
505
+ }), nr.value && M.dataset.forEach((e, t) => {
506
+ (!e.name || e.name === "") && se({
507
507
  componentName: "VueUiDonut",
508
508
  type: "datasetAttributeEmpty",
509
509
  property: "name",
510
510
  index: t
511
511
  });
512
- })), c(j.dataset) || (fr.value = I.value.loading), I.value.responsive) {
512
+ })), c(M.dataset) || (pr.value = I.value.loading), I.value.responsive) {
513
513
  let e = Oe(() => {
514
514
  let { width: e, height: t } = ke({
515
- chart: M.value,
516
- title: I.value.style.chart.title.text ? Pn.value : null,
517
- legend: I.value.style.chart.legend.show ? Fn.value : null,
518
- source: Rn.value,
519
- noTitle: zn.value,
520
- padding: I.value.autoSize ? void 0 : Cr.value
515
+ chart: jn.value,
516
+ title: I.value.style.chart.title.text ? Fn.value : null,
517
+ legend: I.value.style.chart.legend.show ? In.value : null,
518
+ source: zn.value,
519
+ noTitle: Bn.value,
520
+ padding: I.value.autoSize ? void 0 : Dr.value
521
521
  });
522
522
  requestAnimationFrame(() => {
523
- U.value.width = e, U.value.height = t, $n();
523
+ H.value.width = e, H.value.height = t, er();
524
524
  });
525
525
  });
526
- In.value && (Ln.value && In.value.unobserve(Ln.value), In.value.disconnect()), In.value = new ResizeObserver(e), Ln.value = M.value.parentNode, In.value.observe(Ln.value);
526
+ Ln.value && (Rn.value && Ln.value.unobserve(Rn.value), Ln.value.disconnect()), Ln.value = new ResizeObserver(e), Rn.value = jn.value.parentNode, Ln.value.observe(Rn.value);
527
527
  }
528
528
  }
529
- let P = T(le()), rr = T(!1), ir = T(""), F = T(null), ar = T(0);
530
- function or() {
529
+ let P = E(le()), ir = E(!1), ar = E(""), F = E(null), or = E(0);
530
+ function sr() {
531
531
  let e = xe({
532
- userConfig: j.config,
532
+ userConfig: M.config,
533
533
  defaultConfig: En
534
534
  }), t = {}, n = e.theme;
535
535
  if (!n) t = e;
536
536
  else if (!Dn.value(e)) On(e), t = e;
537
537
  else {
538
538
  let r = xe({
539
- userConfig: Le[n] || j.config,
539
+ userConfig: Le[n] || M.config,
540
540
  defaultConfig: e
541
541
  });
542
542
  t = {
543
543
  ...xe({
544
- userConfig: j.config,
544
+ userConfig: M.config,
545
545
  defaultConfig: r
546
546
  }),
547
547
  customPalette: e.customPalette.length ? e.customPalette : te[n] || o
@@ -549,10 +549,10 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
549
549
  }
550
550
  return t;
551
551
  }
552
- let I = T(or()), L = g(() => I.value.style.chart.layout.labels), R = g(() => I.value.style.chart.layout.donut), sr = g(() => I.value.style.chart.layout), z = g(() => I.value.style.chart);
552
+ let I = E(sr()), L = _(() => I.value.style.chart.layout.labels), R = _(() => I.value.style.chart.layout.donut), cr = _(() => I.value.style.chart.layout), z = _(() => I.value.style.chart);
553
553
  he({
554
554
  config: () => I.value,
555
- dataset: () => j.dataset,
555
+ dataset: () => M.dataset,
556
556
  component: "VueUiDonut",
557
557
  rules: [
558
558
  ge.singleSeries,
@@ -571,7 +571,7 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
571
571
  }
572
572
  ]
573
573
  });
574
- let cr = g(() => I.value.userOptions.useCursorPointer), lr = g(() => f({
574
+ let lr = _(() => I.value.userOptions.useCursorPointer), ur = _(() => ne({
575
575
  defaultConfig: {
576
576
  useCssAnimation: !1,
577
577
  table: { show: !1 },
@@ -599,11 +599,11 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
599
599
  } }
600
600
  },
601
601
  userConfig: I.value.skeletonConfig ?? {}
602
- })), { loading: ur, FINAL_DATASET: dr, manualLoading: fr, skeletonDataset: pr } = ye({
603
- ...Ze(j),
602
+ })), { loading: dr, FINAL_DATASET: fr, manualLoading: pr, skeletonDataset: mr } = ye({
603
+ ...Ze(M),
604
604
  FINAL_CONFIG: I,
605
- prepareConfig: or,
606
- skeletonDataset: j.config?.skeletonDataset ?? [
605
+ prepareConfig: sr,
606
+ skeletonDataset: M.config?.skeletonDataset ?? [
607
607
  {
608
608
  name: "",
609
609
  values: [3],
@@ -620,37 +620,49 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
620
620
  color: "#CACACA"
621
621
  }
622
622
  ],
623
- skeletonConfig: f({
623
+ skeletonConfig: ne({
624
624
  defaultConfig: I.value,
625
- userConfig: lr.value
625
+ userConfig: ur.value
626
626
  })
627
- }), B = T(!0), mr = T(0), hr = T(!1), gr = null;
628
- function _r(e = 1e3) {
627
+ }), B = E(!0), hr = E(0), gr = E(!1), _r = null;
628
+ function vr(e = 1e3) {
629
629
  return new Promise((t) => {
630
630
  let n = performance.now();
631
631
  function r(i) {
632
632
  let a = i - n, o = Math.min(a / e, 1), s = pe(o);
633
- mr.value = s, o < 1 ? gr = requestAnimationFrame(r) : (mr.value = 1, gr = null, t());
633
+ hr.value = s, o < 1 ? _r = requestAnimationFrame(r) : (hr.value = 1, _r = null, t());
634
634
  }
635
- gr !== null && cancelAnimationFrame(gr), mr.value = 0, gr = requestAnimationFrame(r);
635
+ _r !== null && cancelAnimationFrame(_r), hr.value = 0, _r = requestAnimationFrame(r);
636
636
  });
637
637
  }
638
- et(() => ur.value, async (e) => {
639
- if (e || hr.value) return;
640
- let t = dr.value === pr, n = I.value.startAnimation?.show;
641
- !t && n ? (hr.value = !0, await _r(I.value.startAnimation.durationMs || 1e3)) : mr.value = 1, B.value = !1;
638
+ et(() => dr.value, async (e) => {
639
+ if (e || gr.value) return;
640
+ let t = fr.value === mr, n = I.value.startAnimation?.show;
641
+ !t && n ? (gr.value = !0, await vr(I.value.startAnimation.durationMs || 1e3)) : hr.value = 1, B.value = !1;
642
642
  }, { immediate: !0 });
643
- let { userOptionsVisible: vr, setUserOptionsVisibility: yr, keepUserOptionState: br } = Ne({ config: I.value }), { svgRef: V } = Pe({ config: z.value.title });
644
- function xr() {
645
- yr(!0);
643
+ let { userOptionsVisible: yr, setUserOptionsVisibility: br, keepUserOptionState: xr } = Ne({ config: I.value }), { svgRef: Sr } = Pe({ config: z.value.title });
644
+ function Cr() {
645
+ br(!0);
646
+ }
647
+ function wr() {
648
+ br(!1);
646
649
  }
647
- function Sr() {
648
- yr(!1);
650
+ function Tr(e) {
651
+ let t = f(e);
652
+ return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
649
653
  }
650
- et(() => j.config, (e) => {
651
- ur.value || (I.value = or()), vr.value = !I.value.userOptions.showOnChartHover, nr(), Bn.value += 1, Vn.value += 1, Hn.value += 1, H.value.dataLabels.show = L.value.dataLabels.show, H.value.showTable = I.value.table.show, H.value.showTooltip = z.value.tooltip.show, U.value.height = z.value.height, U.value.width = z.value.width;
654
+ let Er = Tr(M.config);
655
+ et(() => M.config, (e, t) => {
656
+ let n = Tr(e), r = n !== Er;
657
+ Er = n;
658
+ let i = sr();
659
+ if (!r) {
660
+ I.value.style.chart.tooltip = i.style.chart.tooltip, V.value.showTooltip = I.value.style.chart.tooltip.show;
661
+ return;
662
+ }
663
+ dr.value || (I.value = i), yr.value = !I.value.userOptions.showOnChartHover, rr(), Vn.value += 1, Hn.value += 1, Un.value += 1, V.value.dataLabels.show = L.value.dataLabels.show, V.value.showTable = I.value.table.show, V.value.showTooltip = z.value.tooltip.show, H.value.height = z.value.height, H.value.width = z.value.width;
652
664
  }, { deep: !0 });
653
- let Cr = g(() => {
665
+ let Dr = _(() => {
654
666
  let { top: e, right: t, bottom: n, left: r } = z.value.padding;
655
667
  return {
656
668
  css: `padding:${e}px ${t}px ${n}px ${r}px`,
@@ -659,36 +671,36 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
659
671
  bottom: n,
660
672
  left: r
661
673
  };
662
- }), { isPrinting: wr, isImaging: Tr, generatePdf: Er, generateImage: Dr } = ve({
674
+ }), { isPrinting: Or, isImaging: kr, generatePdf: Ar, generateImage: jr } = ve({
663
675
  elementId: `donut__${P.value}`,
664
676
  fileName: z.value.title.text || "vue-ui-donut",
665
677
  options: I.value.userOptions.print
666
- }), Or = g(() => I.value.userOptions.show && !z.value.title.text), kr = g(() => me(I.value.customPalette)), H = T({
678
+ }), Mr = _(() => I.value.userOptions.show && !z.value.title.text), Nr = _(() => me(I.value.customPalette)), V = E({
667
679
  dataLabels: { show: L.value.dataLabels.show },
668
680
  showTable: I.value.table.show,
669
681
  showTooltip: z.value.tooltip.show
670
682
  });
671
683
  et(I, () => {
672
- H.value = {
684
+ V.value = {
673
685
  dataLabels: { show: L.value.dataLabels.show },
674
686
  showTable: I.value.table.show,
675
687
  showTooltip: z.value.tooltip.show
676
688
  };
677
689
  }, { immediate: !0 });
678
- let U = T({
690
+ let H = E({
679
691
  height: z.value.height,
680
692
  width: z.value.width
681
- }), Ar = g(() => {
682
- if (I.value.pie) return q.value;
683
- let e = R.value.strokeWidth / 512, t = Math.min(U.value.width, U.value.height) * e, n = t > q.value ? q.value : t;
693
+ }), Pr = _(() => {
694
+ if (I.value.pie) return K.value;
695
+ let e = R.value.strokeWidth / 512, t = Math.min(H.value.width, H.value.height) * e, n = t > K.value ? K.value : t;
684
696
  return Math.max(n, 12 * (1 + e));
685
- }), jr = rt, W = g(() => dr.value.sort((e, t) => {
697
+ }), Fr = rt, U = _(() => fr.value.sort((e, t) => {
686
698
  let n = Array.isArray(e.values) ? e.values.reduce((e, t) => e + t, 0) : e.value ?? 0, r = Array.isArray(t.values) ? t.values.reduce((e, t) => e + t, 0) : t.value ?? 0;
687
699
  return e.ghost && !t.ghost ? 1 : t.ghost && !e.ghost ? -1 : r - n;
688
700
  }).map((e, t) => ({
689
701
  name: e.name,
690
- color: l(e.color) || kr.value[t] || o[t] || o[t % o.length],
691
- value: ne(e.values.reduce((e, t) => e + t, 0)),
702
+ color: l(e.color) || Nr.value[t] || o[t] || o[t % o.length],
703
+ value: re(e.values.reduce((e, t) => e + t, 0)),
692
704
  absoluteValues: e.values,
693
705
  comment: e.comment || "",
694
706
  patternIndex: t,
@@ -696,29 +708,29 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
696
708
  ghost: !1,
697
709
  pattern: `pattern_${P.value}_${t}`
698
710
  })));
699
- et(() => j.dataset, (e) => {
700
- Array.isArray(e) && e.length > 0 && (fr.value = !1);
711
+ et(() => M.dataset, (e) => {
712
+ Array.isArray(e) && e.length > 0 && (pr.value = !1);
701
713
  }, { immediate: !0 });
702
- let G = Xe(W.value);
703
- et(() => W.value, (e) => {
704
- G.value = e, requestAnimationFrame($n);
714
+ let W = Xe(U.value);
715
+ et(() => U.value, (e) => {
716
+ W.value = e, requestAnimationFrame(er);
705
717
  });
706
- function Mr() {
707
- return W.value.map((e) => ({
718
+ function Ir() {
719
+ return U.value.map((e) => ({
708
720
  name: e.name,
709
721
  color: e.color,
710
722
  value: e.value
711
723
  }));
712
724
  }
713
- let K = T([]), Nr = T(!1), Pr = T(null);
714
- function Fr() {
715
- jr("selectLegend", Ur.value.map((e) => ({
725
+ let G = E([]), Lr = E(!1), Rr = E(null);
726
+ function zr() {
727
+ Fr("selectLegend", qr.value.map((e) => ({
716
728
  name: e.name,
717
729
  color: e.color,
718
730
  value: e.value
719
731
  })));
720
732
  }
721
- function Ir({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = pe }) {
733
+ function Br({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = pe }) {
722
734
  let o = performance.now();
723
735
  function s(c) {
724
736
  let l = Math.min((c - o) / n, 1), u = a(l);
@@ -726,84 +738,84 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
726
738
  }
727
739
  requestAnimationFrame(s);
728
740
  }
729
- function Lr() {
730
- K.value.length ? K.value = [] : Wr.value.forEach((e, t) => {
731
- K.value.push(t);
732
- }), Fr();
741
+ function Vr() {
742
+ G.value.length ? G.value = [] : Jr.value.forEach((e, t) => {
743
+ G.value.push(t);
744
+ }), zr();
733
745
  }
734
- function Rr(e) {
735
- let t = W.value.find((t, n) => n === e), n = G.value.find((t, n) => n === e).value;
736
- if (K.value.includes(e)) {
737
- K.value = K.value.filter((t) => t !== e);
746
+ function Hr(e) {
747
+ let t = U.value.find((t, n) => n === e), n = W.value.find((t, n) => n === e).value;
748
+ if (G.value.includes(e)) {
749
+ G.value = G.value.filter((t) => t !== e);
738
750
  let r = t.value;
739
751
  function i() {
740
- G.value = G.value.map((t, n) => e === n ? {
752
+ W.value = W.value.map((t, n) => e === n ? {
741
753
  ...t,
742
754
  value: r
743
- } : t), Fr();
755
+ } : t), zr();
744
756
  }
745
757
  function a() {
746
- Nr.value = !0, Pr.value = e, Ir({
758
+ Lr.value = !0, Rr.value = e, Br({
747
759
  from: n,
748
760
  to: r,
749
761
  duration: I.value.serieToggleAnimation.durationMs,
750
762
  onUpdate: (t, n) => {
751
- G.value = G.value.map((n, r) => e === r ? {
763
+ W.value = W.value.map((n, r) => e === r ? {
752
764
  ...n,
753
765
  value: t
754
- } : n), requestAnimationFrame($n);
766
+ } : n), requestAnimationFrame(er);
755
767
  },
756
768
  onDone: () => {
757
- i(), Nr.value = !1, Pr.value = null;
769
+ i(), Lr.value = !1, Rr.value = null;
758
770
  }
759
771
  });
760
772
  }
761
- I.value.serieToggleAnimation.show && I.value.type === "classic" ? a() : (i(), requestAnimationFrame($n));
762
- } else if (K.value.length < W.value.length - 1) {
773
+ I.value.serieToggleAnimation.show && I.value.type === "classic" ? a() : (i(), requestAnimationFrame(er));
774
+ } else if (G.value.length < U.value.length - 1) {
763
775
  function t() {
764
- K.value.push(e), G.value = G.value.map((t, n) => e === n ? {
776
+ G.value.push(e), W.value = W.value.map((t, n) => e === n ? {
765
777
  ...t,
766
778
  value: 0
767
- } : t), Fr();
779
+ } : t), zr();
768
780
  }
769
781
  function r() {
770
- Nr.value = !0, Pr.value = e, Ir({
782
+ Lr.value = !0, Rr.value = e, Br({
771
783
  from: n,
772
784
  to: 0,
773
785
  duration: I.value.serieToggleAnimation.durationMs,
774
786
  onUpdate: (t, n) => {
775
- G.value = G.value.map((n, r) => e === r ? {
787
+ W.value = W.value.map((n, r) => e === r ? {
776
788
  ...n,
777
789
  value: t
778
- } : n), requestAnimationFrame($n);
790
+ } : n), requestAnimationFrame(er);
779
791
  },
780
792
  onDone: () => {
781
- t(), requestAnimationFrame($n), Nr.value = !1, Pr.value = null;
793
+ t(), requestAnimationFrame(er), Lr.value = !1, Rr.value = null;
782
794
  }
783
795
  });
784
796
  }
785
797
  I.value.serieToggleAnimation.show && I.value.type === "classic" ? r() : t();
786
798
  }
787
799
  }
788
- function zr(e) {
789
- return W.value.length ? W.value.find((t) => t.name === e) || (tr.value && console.warn(`VueUiDonut - Series name not found "${e}"`), null) : (tr.value && console.warn("VueUiDonut - There are no series to show."), null);
800
+ function Ur(e) {
801
+ return U.value.length ? U.value.find((t) => t.name === e) || (nr.value && console.warn(`VueUiDonut - Series name not found "${e}"`), null) : (nr.value && console.warn("VueUiDonut - There are no series to show."), null);
790
802
  }
791
- function Br(e) {
792
- let t = zr(e);
793
- t !== null && K.value.includes(t.seriesIndex) && Rr(t.seriesIndex);
803
+ function Wr(e) {
804
+ let t = Ur(e);
805
+ t !== null && G.value.includes(t.seriesIndex) && Hr(t.seriesIndex);
794
806
  }
795
- function Vr(e) {
796
- let t = zr(e);
797
- t !== null && (K.value.includes(t.seriesIndex) || Rr(t.seriesIndex));
807
+ function Gr(e) {
808
+ let t = Ur(e);
809
+ t !== null && (G.value.includes(t.seriesIndex) || Hr(t.seriesIndex));
798
810
  }
799
- let Hr = g(() => dr.value.reduce((e, t) => e + t.values.reduce((e, t) => e + t, 0), 0)), Ur = g(() => {
800
- if (B.value && !ur.value) {
801
- let e = mr.value, t = W.value.map((t) => ({
811
+ let Kr = _(() => fr.value.reduce((e, t) => e + t.values.reduce((e, t) => e + t, 0), 0)), qr = _(() => {
812
+ if (B.value && !dr.value) {
813
+ let e = hr.value, t = U.value.map((t) => ({
802
814
  ...t,
803
815
  value: t.value * e,
804
816
  color: t.color,
805
817
  ghost: !1
806
- })), n = Hr.value * (1 - e);
818
+ })), n = Kr.value * (1 - e);
807
819
  return n > 0 && t.push({
808
820
  name: "__ghost__",
809
821
  value: n,
@@ -811,20 +823,20 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
811
823
  ghost: !0
812
824
  }), t;
813
825
  }
814
- return G.value.forEach((e) => {
826
+ return W.value.forEach((e) => {
815
827
  if ([null, void 0].includes(e.values)) return {
816
828
  ...e,
817
829
  values: []
818
830
  };
819
- }), G.value.map((e, t) => ({
831
+ }), W.value.map((e, t) => ({
820
832
  ...e,
821
833
  seriesIndex: t
822
- })).filter((e, t) => !K.value.includes(t));
823
- }), Wr = g(() => dr.value.map((e, t) => {
824
- let n = (e.values || []).reduce((e, t) => e + t, 0), r = n / dr.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0);
834
+ })).filter((e, t) => !G.value.includes(t));
835
+ }), Jr = _(() => fr.value.map((e, t) => {
836
+ let n = (e.values || []).reduce((e, t) => e + t, 0), r = n / fr.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0);
825
837
  return {
826
838
  name: e.name,
827
- color: l(e.color) || kr.value[t] || o[t] || o[t % o.length],
839
+ color: l(e.color) || Nr.value[t] || o[t] || o[t % o.length],
828
840
  value: n,
829
841
  shape: "circle",
830
842
  patternIndex: t,
@@ -839,35 +851,35 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
839
851
  }), {
840
852
  datapoint: e,
841
853
  index: t
842
- }), r = m(L.value.percentage.formatter, ti(e), d({
843
- v: ti(e),
854
+ }), r = m(L.value.percentage.formatter, ai(e), d({
855
+ v: ai(e),
844
856
  s: "%",
845
857
  r: z.value.legend.roundingPercentage
846
- })), i = vi({
858
+ })), i = xi({
847
859
  val: n,
848
- percentage: K.value.includes(t) ? `${_i(e.proportion * 100)}%` : r,
860
+ percentage: G.value.includes(t) ? `${bi(e.proportion * 100)}%` : r,
849
861
  showVal: z.value.legend.showValue,
850
862
  showPercentage: z.value.legend.showPercentage,
851
863
  config: z.value.legend
852
864
  });
853
865
  return {
854
866
  ...e,
855
- opacity: K.value.includes(t) ? .5 : 1,
856
- segregate: () => !Nr.value && Rr(t),
857
- isSegregated: K.value.includes(t),
867
+ opacity: G.value.includes(t) ? .5 : 1,
868
+ segregate: () => !Lr.value && Hr(t),
869
+ isSegregated: G.value.includes(t),
858
870
  display: `${e.name}${z.value.legend.showPercentage || z.value.legend.showValue ? ": " : ""}${i}`
859
871
  };
860
- })), Gr = g(() => ({
872
+ })), Yr = _(() => ({
861
873
  cy: "donut-div-legend",
862
874
  backgroundColor: z.value.legend.backgroundColor,
863
875
  color: z.value.legend.color,
864
876
  fontSize: z.value.legend.fontSize,
865
877
  paddingBottom: 12,
866
878
  fontWeight: z.value.legend.bold ? "bold" : ""
867
- })), q = g(() => {
868
- let e = R.value.radiusRatio, t = Math.max(.1, Math.min(.50001, e)), n = Math.min(U.value.width * t, U.value.height * t);
879
+ })), K = _(() => {
880
+ let e = R.value.radiusRatio, t = Math.max(.1, Math.min(.50001, e)), n = Math.min(H.value.width * t, H.value.height * t);
869
881
  return Math.max(12, n);
870
- }), J = g(() => s({ series: Ur.value }, U.value.width / 2, U.value.height / 2, q.value, q.value, 1.99999, 2, 1, 360, 105.25, Ar.value)), Kr = g(() => Math.abs(Ur.value.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0), qr = g(() => s({ series: [{
882
+ }), q = _(() => s({ series: qr.value }, H.value.width / 2, H.value.height / 2, K.value, K.value, 1.99999, 2, 1, 360, 105.25, Pr.value)), Xr = _(() => Math.abs(qr.value.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0), Zr = _(() => s({ series: [{
871
883
  value: 1,
872
884
  color: R.value.emptyFill,
873
885
  name: "_",
@@ -875,105 +887,105 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
875
887
  patternIndex: -1,
876
888
  ghost: !1,
877
889
  absoluteValues: [1]
878
- }] }, U.value.width / 2, U.value.height / 2, q.value, q.value, 1.99999, 2, 1, 360, 105.25, Ar.value)), Y = g(() => J.value.filter((e) => !e.ghost)), X = g(() => {
879
- let e = Math.max(...Ur.value.map((e) => e.value)), t = Ur.value.map((t) => t.value / e);
880
- return ae({
890
+ }] }, H.value.width / 2, H.value.height / 2, K.value, K.value, 1.99999, 2, 1, 360, 105.25, Pr.value)), J = _(() => q.value.filter((e) => !e.ghost)), Y = _(() => {
891
+ let e = Math.max(...qr.value.map((e) => e.value)), t = qr.value.map((t) => t.value / e);
892
+ return oe({
881
893
  series: t,
882
894
  center: {
883
- x: U.value.width / 2,
884
- y: U.value.height / 2
895
+ x: H.value.width / 2,
896
+ y: H.value.height / 2
885
897
  },
886
- maxRadius: Math.min(U.value.width, U.value.height) / 3,
898
+ maxRadius: Math.min(H.value.width, H.value.height) / 3,
887
899
  hasGhost: B.value
888
900
  });
889
901
  });
890
- function Jr(e) {
891
- return e.x > U.value.width / 2 + 6 ? "start" : e.x < U.value.width / 2 - 6 ? "end" : "middle";
902
+ function Qr(e) {
903
+ return e.x > H.value.width / 2 + 6 ? "start" : e.x < H.value.width / 2 - 6 ? "end" : "middle";
892
904
  }
893
- function Yr(e) {
894
- return e.middlePoint.y > U.value.height / 2 ? i({
905
+ function $r(e) {
906
+ return e.middlePoint.y > H.value.height / 2 ? i({
895
907
  initX: e.middlePoint.x,
896
908
  initY: e.middlePoint.y,
897
909
  offset: 100,
898
- centerX: U.value.width / 2,
899
- centerY: U.value.height / 2
910
+ centerX: H.value.width / 2,
911
+ centerY: H.value.height / 2
900
912
  }).y : i({
901
913
  initX: e.middlePoint.x,
902
914
  initY: e.middlePoint.y,
903
915
  offset: 0,
904
- centerX: U.value.width / 2,
905
- centerY: U.value.height / 2
916
+ centerX: H.value.width / 2,
917
+ centerY: H.value.height / 2
906
918
  }).y - 100;
907
919
  }
908
- function Z(e) {
920
+ function X(e) {
909
921
  return e.proportion * 100 > L.value.dataLabels.hideUnderValue;
910
922
  }
911
- function Xr(e, t) {
912
- let n = L.value.dataLabels.hideUnderValue, r = L.value.dataLabels.smallArcClusterThreshold, i = ($r.value[t] ?? e.proportion ?? 0) * 100;
923
+ function ei(e, t) {
924
+ let n = L.value.dataLabels.hideUnderValue, r = L.value.dataLabels.smallArcClusterThreshold, i = (ri.value[t] ?? e.proportion ?? 0) * 100;
913
925
  return i > n && i <= r;
914
926
  }
915
- let { smallArcLayoutsClassic: Q } = nt({
927
+ let { smallArcLayoutsClassic: Z } = nt({
916
928
  FINAL_CONFIG: I,
917
- noGhostDonut: Y,
918
- svg: U,
919
- padding: Cr,
920
- labels_inline_fontSize: Zn,
921
- minSize: q,
922
- findArcMidpoint: se,
929
+ noGhostDonut: J,
930
+ svg: H,
931
+ padding: Dr,
932
+ labels_inline_fontSize: Qn,
933
+ minSize: K,
934
+ findArcMidpoint: ce,
923
935
  calcMarkerOffsetX: p,
924
- calcMarkerOffsetY: ce,
925
- animatingIndex: Pr,
926
- segregated: K,
927
- isSmallArc: Xr
936
+ calcMarkerOffsetY: h,
937
+ animatingIndex: Rr,
938
+ segregated: G,
939
+ isSmallArc: ei
928
940
  });
929
- function Zr(e, t) {
930
- let n = e.value / Qr(t);
941
+ function ti(e, t) {
942
+ let n = e.value / ni(t);
931
943
  return isNaN(n) ? 0 : m(L.value.percentage.formatter, n * 100, d({
932
944
  v: n * 100,
933
945
  s: "%",
934
946
  r: L.value.percentage.rounding
935
947
  }), { datapoint: e });
936
948
  }
937
- function Qr(e) {
949
+ function ni(e) {
938
950
  return [...e].map((e) => e.value).reduce((e, t) => e + t, 0);
939
951
  }
940
- let $ = g(() => Ur.value.map((e) => e.value).reduce((e, t) => e + t, 0)), $r = g(() => {
941
- let e = W.value.reduce((e, t) => e + t.value, 0);
942
- return e <= 0 ? [] : W.value.map((t) => t.value / e);
943
- }), ei = g(() => $.value / Ur.value.length);
944
- function ti(e) {
945
- return Nr.value ? e.proportion * 100 : e.value / $.value * 100;
952
+ let Q = _(() => qr.value.map((e) => e.value).reduce((e, t) => e + t, 0)), ri = _(() => {
953
+ let e = U.value.reduce((e, t) => e + t.value, 0);
954
+ return e <= 0 ? [] : U.value.map((t) => t.value / e);
955
+ }), ii = _(() => Q.value / qr.value.length);
956
+ function ai(e) {
957
+ return Lr.value ? e.proportion * 100 : e.value / Q.value * 100;
946
958
  }
947
- let ni = T(null), ri = T(!1);
948
- function ii({ datapoint: e, seriesIndex: t }) {
959
+ let oi = E(null), si = E(!1);
960
+ function ci({ datapoint: e, seriesIndex: t }) {
949
961
  I.value.events.datapointLeave && I.value.events.datapointLeave({
950
962
  datapoint: e,
951
963
  seriesIndex: t
952
- }), rr.value = !1, F.value = null, Kn.value = null, Jn.value = "pointer";
964
+ }), ir.value = !1, F.value = null, qn.value = null, Yn.value = "pointer";
953
965
  }
954
- function ai({ datapoint: e, relativeIndex: t, seriesIndex: r, show: i = !1, triggerMode: a = "pointer" }) {
966
+ function $({ datapoint: e, relativeIndex: t, seriesIndex: r, show: i = !1, triggerMode: a = "pointer" }) {
955
967
  I.value.events.datapointEnter && I.value.events.datapointEnter({
956
968
  datapoint: e,
957
969
  seriesIndex: r
958
- }), Jn.value = a, Kn.value = t, ni.value = {
970
+ }), Yn.value = a, qn.value = t, oi.value = {
959
971
  datapoint: e,
960
972
  seriesIndex: r,
961
973
  config: I.value,
962
- series: W.value
963
- }, rr.value = i, F.value = t;
974
+ series: U.value
975
+ }, ir.value = i, F.value = t;
964
976
  let o = "", s = z.value.tooltip.customFormat;
965
- if (ri.value = !1, n(s)) try {
977
+ if (si.value = !1, n(s)) try {
966
978
  let t = s({
967
979
  seriesIndex: r,
968
980
  datapoint: e,
969
- series: W.value,
981
+ series: U.value,
970
982
  config: I.value
971
983
  });
972
- typeof t == "string" && (ir.value = t, ri.value = !0);
984
+ typeof t == "string" && (ar.value = t, si.value = !0);
973
985
  } catch {
974
- console.warn("Custom format cannot be applied."), ri.value = !1;
986
+ console.warn("Custom format cannot be applied."), si.value = !1;
975
987
  }
976
- ri.value || (o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${z.value.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${e.color}"/>${kn.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${P.value}_${r})"/>` : ""}</svg>`, o += `<b>${vi({
988
+ si.value || (o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${z.value.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${e.color}"/>${kn.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${P.value}_${r})"/>` : ""}</svg>`, o += `<b>${xi({
977
989
  showVal: z.value.tooltip.showValue,
978
990
  showPercentage: z.value.tooltip.showPercentage,
979
991
  val: `<span>${m(L.value.value.formatter, e.value, d({
@@ -996,10 +1008,10 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
996
1008
  seriesIndex: r
997
1009
  }),
998
1010
  config: z.value.tooltip
999
- })}</b></div>`, z.value.comments.showInTooltip && e.comment && (o += `<div class="vue-data-ui-tooltip-comment" style="background:${e.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${e.color}">${e.comment}</div>`), ir.value = `<div>${o}</div>`);
1011
+ })}</b></div>`, z.value.comments.showInTooltip && e.comment && (o += `<div class="vue-data-ui-tooltip-comment" style="background:${e.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${e.color}">${e.comment}</div>`), ar.value = `<div>${o}</div>`);
1000
1012
  }
1001
- function oi(e, t) {
1002
- let n = Q.value[t];
1013
+ function li(e, t) {
1014
+ let n = Z.value[t];
1003
1015
  if (n) return {
1004
1016
  textAnchor: n.textAnchor,
1005
1017
  x: n.labelX,
@@ -1009,15 +1021,15 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
1009
1021
  return {
1010
1022
  textAnchor: r.anchor,
1011
1023
  x: r.x,
1012
- y: ce(e)
1024
+ y: h(e)
1013
1025
  };
1014
1026
  }
1015
- function si(e, t, n) {
1016
- let { textAnchor: r, x: i } = oi(e, t), a = yi(e), o = `
1027
+ function ui(e, t, n) {
1028
+ let { textAnchor: r, x: i } = li(e, t), a = Si(e), o = `
1017
1029
  <tspan
1018
1030
  class="vue-data-ui-datalabel-inline"
1019
1031
  fill="${L.value.percentage.color}"
1020
- font-size="${n ? Zn.value : Xn.value}px"
1032
+ font-size="${n ? Qn.value : Zn.value}px"
1021
1033
  style="font-weight:${L.value.percentage.bold ? "bold" : ""}"
1022
1034
  >${a}</tspan>
1023
1035
  `, s = String(e.name ?? "").split(/\n/g), c = "";
@@ -1026,35 +1038,35 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
1026
1038
  <tspan
1027
1039
  class="${n ? "vue-data-ui-datalabel-inline" : "vue-data-ui-datalabel-name"}"
1028
1040
  fill="${L.value.name.color}"
1029
- font-size="${n ? Zn.value : N.value}px"
1041
+ font-size="${n ? Qn.value : N.value}px"
1030
1042
  style="font-weight:${L.value.name.bold ? "bold" : ""}"
1031
1043
  >${e}</tspan>
1032
1044
  ` : `
1033
1045
  <tspan
1034
1046
  class="${n ? "vue-data-ui-datalabel-inline" : "vue-data-ui-datalabel-name"}"
1035
1047
  x="${i}"
1036
- dy="${(n ? Zn.value : N.value) * 1.2}"
1048
+ dy="${(n ? Qn.value : N.value) * 1.2}"
1037
1049
  fill="${L.value.name.color}"
1038
- font-size="${n ? Zn.value : N.value}px"
1050
+ font-size="${n ? Qn.value : N.value}px"
1039
1051
  style="font-weight:${L.value.name.bold ? "bold" : ""}"
1040
1052
  >${e}</tspan>
1041
1053
  `;
1042
1054
  }), r === "end" ? `${L.value.name.show ? c : ""}${o}` : `${o}${L.value.name.show ? c : ""}`;
1043
1055
  }
1044
- function ci(e, t) {
1045
- let n = X.value[t].middlePoint, r = Jr(n), a = i({
1056
+ function di(e, t) {
1057
+ let n = Y.value[t].middlePoint, r = Qr(n), a = i({
1046
1058
  initX: n.x,
1047
1059
  initY: n.y,
1048
1060
  offset: 42,
1049
- centerX: U.value.width / 2,
1050
- centerY: U.value.height / 2
1061
+ centerX: H.value.width / 2,
1062
+ centerY: H.value.height / 2
1051
1063
  }), o = a.x;
1052
1064
  a.y;
1053
- let s = yi(e), c = `
1065
+ let s = Si(e), c = `
1054
1066
  <tspan
1055
1067
  class="vue-data-ui-datalabel-value"
1056
1068
  fill="${L.value.percentage.color}"
1057
- font-size="${Xn.value}px"
1069
+ font-size="${Zn.value}px"
1058
1070
  style="font-weight:${L.value.percentage.bold ? "bold" : "normal"}"
1059
1071
  >${s}</tspan>
1060
1072
  `, l = String(e.name ?? "").split(/\n/g), u = "";
@@ -1078,27 +1090,27 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
1078
1090
  `;
1079
1091
  }), r === "end" ? `${L.value.name.show ? u : ""}${c}` : `${c}${L.value.name.show ? u : ""}`;
1080
1092
  }
1081
- function li(e) {
1093
+ function fi(e) {
1082
1094
  return I.value.useBlurOnHover && ![null, void 0].includes(F.value) && F.value !== e ? `url(#blur_${P.value})` : "";
1083
1095
  }
1084
- function ui(e) {
1085
- if (!Nr.value || Pr.value === null || e.seriesIndex !== Pr.value) return 1;
1096
+ function pi(e) {
1097
+ if (!Lr.value || Rr.value === null || e.seriesIndex !== Rr.value) return 1;
1086
1098
  let t = (e.proportion ?? 0) * 100, n = L.value.dataLabels.hideUnderValue, r = L.value.dataLabels.smallArcClusterThreshold + 2, i = n;
1087
1099
  return t >= r ? 1 : t <= i ? 0 : (t - i) / (r - i);
1088
1100
  }
1089
- let di = g(() => ({
1090
- head: Ur.value.map((e) => ({
1101
+ let mi = _(() => ({
1102
+ head: qr.value.map((e) => ({
1091
1103
  name: e.name,
1092
1104
  color: e.color
1093
1105
  })),
1094
- body: Ur.value.map((e) => e.value)
1106
+ body: qr.value.map((e) => e.value)
1095
1107
  }));
1096
- function fi(e = null) {
1108
+ function hi(e = null) {
1097
1109
  Ge(() => {
1098
- let n = di.value.head.map((e, t) => [
1110
+ let n = mi.value.head.map((e, t) => [
1099
1111
  [e.name],
1100
- [di.value.body[t]],
1101
- [isNaN(di.value.body[t] / $.value) ? "-" : di.value.body[t] / $.value * 100]
1112
+ [mi.value.body[t]],
1113
+ [isNaN(mi.value.body[t] / Q.value) ? "-" : mi.value.body[t] / Q.value * 100]
1102
1114
  ]), i = [
1103
1115
  [z.value.title.text],
1104
1116
  [z.value.title.subtitle.text],
@@ -1114,23 +1126,23 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
1114
1126
  });
1115
1127
  });
1116
1128
  }
1117
- let pi = g(() => {
1129
+ let gi = _(() => {
1118
1130
  let e = [
1119
1131
  "__SUM__",
1120
1132
  d({
1121
1133
  p: L.value.dataLabels.prefix,
1122
- v: $.value,
1134
+ v: Q.value,
1123
1135
  s: L.value.dataLabels.suffix,
1124
1136
  r: I.value.table.td.roundingValue
1125
1137
  }),
1126
1138
  "100%"
1127
- ], t = di.value.head.map((e, t) => [
1139
+ ], t = mi.value.head.map((e, t) => [
1128
1140
  {
1129
1141
  color: e.color,
1130
1142
  name: e.name || "-"
1131
1143
  },
1132
- di.value.body[t],
1133
- isNaN(di.value.body[t] / $.value) ? "-" : (di.value.body[t] / $.value * 100).toFixed(I.value.table.td.roundingPercentage) + "%"
1144
+ mi.value.body[t],
1145
+ isNaN(mi.value.body[t] / Q.value) ? "-" : (mi.value.body[t] / Q.value * 100).toFixed(I.value.table.td.roundingPercentage) + "%"
1134
1146
  ]), n = t.map((e) => e.map((e, t) => t === 0 ? e.name : e)), r = {
1135
1147
  th: {
1136
1148
  backgroundColor: I.value.table.th.backgroundColor,
@@ -1155,18 +1167,18 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
1155
1167
  a11yBody: n,
1156
1168
  config: r
1157
1169
  };
1158
- }), mi = T(!1);
1159
- function hi(e) {
1160
- mi.value = e, ar.value += 1;
1170
+ }), _i = E(!1);
1171
+ function vi(e) {
1172
+ _i.value = e, or.value += 1;
1161
1173
  }
1162
- let gi = g(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
1163
- function _i(e) {
1174
+ let yi = _(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
1175
+ function bi(e) {
1164
1176
  return Fe({
1165
1177
  num: e,
1166
1178
  rounding: z.value.legend.roundingPercentage
1167
1179
  });
1168
1180
  }
1169
- function vi({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
1181
+ function xi({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
1170
1182
  return Ie({
1171
1183
  config: i,
1172
1184
  val: e,
@@ -1175,46 +1187,46 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
1175
1187
  showPercentage: r
1176
1188
  });
1177
1189
  }
1178
- function yi(e) {
1179
- return vi({
1190
+ function Si(e) {
1191
+ return xi({
1180
1192
  val: m(L.value.value.formatter, e.value, d({
1181
1193
  p: L.value.dataLabels.prefix,
1182
1194
  v: e.value,
1183
1195
  s: L.value.dataLabels.suffix,
1184
1196
  r: L.value.value.rounding
1185
1197
  }), { datapoint: e }),
1186
- percentage: Zr(e, Y.value),
1198
+ percentage: ti(e, J.value),
1187
1199
  showVal: L.value.value.show,
1188
1200
  showPercentage: L.value.percentage.show,
1189
1201
  config: L.value.dataLabels
1190
1202
  });
1191
1203
  }
1192
- function bi(e, t) {
1204
+ function Ci(e, t) {
1193
1205
  I.value.events.datapointClick && I.value.events.datapointClick({
1194
1206
  datapoint: e,
1195
1207
  seriesIndex: e.seriesIndex
1196
- }), jr("selectDatapoint", {
1208
+ }), Fr("selectDatapoint", {
1197
1209
  datapoint: e,
1198
1210
  index: t
1199
1211
  });
1200
1212
  }
1201
- function xi() {
1202
- H.value.showTable = !H.value.showTable;
1213
+ function wi() {
1214
+ V.value.showTable = !V.value.showTable;
1203
1215
  }
1204
- function Si() {
1205
- H.value.dataLabels.show = !H.value.dataLabels.show;
1216
+ function Ti() {
1217
+ V.value.dataLabels.show = !V.value.dataLabels.show;
1206
1218
  }
1207
- function Ci() {
1208
- H.value.showTooltip = !H.value.showTooltip;
1219
+ function Ei() {
1220
+ V.value.showTooltip = !V.value.showTooltip;
1209
1221
  }
1210
- let wi = T(!1);
1211
- function Ti() {
1212
- wi.value = !wi.value;
1222
+ let Di = E(!1);
1223
+ function Oi() {
1224
+ Di.value = !Di.value;
1213
1225
  }
1214
- async function Ei({ scale: e = 2 } = {}) {
1215
- if (!M.value) return;
1216
- let { width: t, height: n } = M.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await we({
1217
- domElement: M.value,
1226
+ async function ki({ scale: e = 2 } = {}) {
1227
+ if (!jn.value) return;
1228
+ let { width: t, height: n } = jn.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await we({
1229
+ domElement: jn.value,
1218
1230
  base64: !0,
1219
1231
  img: !0,
1220
1232
  scale: e
@@ -1228,13 +1240,13 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
1228
1240
  aspectRatio: r
1229
1241
  };
1230
1242
  }
1231
- function Di() {
1232
- if (!jn.value) return;
1233
- let { x: e, y: t, width: n, height: r } = jn.value.getBBox();
1234
- V.value && V.value.setAttribute("viewBox", `${e} ${t} ${n + Math.min(0, e)} ${r + Math.min(0, t)}`);
1243
+ function Ai() {
1244
+ if (!Mn.value) return;
1245
+ let { x: e, y: t, width: n, height: r } = Mn.value.getBBox();
1246
+ Sr.value && Sr.value.setAttribute("viewBox", `${e} ${t} ${n + Math.min(0, e)} ${r + Math.min(0, t)}`);
1235
1247
  }
1236
- let Oi = g(() => {
1237
- let e = I.value.table.useDialog && !I.value.table.show, t = H.value.showTable;
1248
+ let ji = _(() => {
1249
+ let e = I.value.table.useDialog && !I.value.table.show, t = V.value.showTable;
1238
1250
  return {
1239
1251
  component: e ? Tn : bn,
1240
1252
  title: `${z.value.title.text}${z.value.title.subtitle.text ? `: ${z.value.title.subtitle.text}` : ""}`,
@@ -1243,10 +1255,10 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
1243
1255
  color: I.value.table.th.color,
1244
1256
  headerColor: I.value.table.th.color,
1245
1257
  headerBg: I.value.table.th.backgroundColor,
1246
- isFullscreen: mi.value,
1247
- fullscreenParent: M.value,
1258
+ isFullscreen: _i.value,
1259
+ fullscreenParent: jn.value,
1248
1260
  forcedWidth: Math.min(500, window.innerWidth * .8),
1249
- isCursorPointer: cr.value
1261
+ isCursorPointer: lr.value
1250
1262
  } : {
1251
1263
  hideDetails: !0,
1252
1264
  config: {
@@ -1264,62 +1276,62 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
1264
1276
  }
1265
1277
  };
1266
1278
  });
1267
- et(() => H.value.showTable, (e) => {
1268
- I.value.table.show || (e && I.value.table.useDialog && Wn.value ? Wn.value.open() : "close" in Wn.value && Wn.value.close());
1279
+ et(() => V.value.showTable, (e) => {
1280
+ I.value.table.show || (e && I.value.table.useDialog && Gn.value ? Gn.value.open() : "close" in Gn.value && Gn.value.close());
1269
1281
  });
1270
- function ki() {
1271
- H.value.showTable = !1, Gn.value && Gn.value.setTableIconState(!1);
1282
+ function Mi() {
1283
+ V.value.showTable = !1, Kn.value && Kn.value.setTableIconState(!1);
1272
1284
  }
1273
- let Ai = g(() => Wr.value.map((e) => ({
1285
+ let Ni = _(() => Jr.value.map((e) => ({
1274
1286
  ...e,
1275
1287
  name: e.display
1276
- }))), ji = g(() => z.value.backgroundColor), Mi = g(() => z.value.legend), Ni = g(() => z.value.title), { isCallbackImaging: Pi, isCallbackSvg: Fi, generateSvg: Ii, onGenerateImage: Li } = Ce({
1277
- svg: V,
1278
- title: Ni,
1279
- legend: Mi,
1280
- legendItems: Ai,
1281
- backgroundColor: ji,
1288
+ }))), Pi = _(() => z.value.backgroundColor), Fi = _(() => z.value.legend), Ii = _(() => z.value.title), { isCallbackImaging: Li, isCallbackSvg: Ri, generateSvg: zi, onGenerateImage: Bi } = Ce({
1289
+ svg: Sr,
1290
+ title: Ii,
1291
+ legend: Fi,
1292
+ legendItems: Ni,
1293
+ backgroundColor: Pi,
1282
1294
  getSvgCallback: () => I.value.userOptions.callbacks.svg,
1283
- generateImage: Dr
1295
+ generateImage: jr
1284
1296
  });
1285
- async function Ri() {
1286
- if (jr("copyAlt", {
1297
+ async function Vi() {
1298
+ if (Fr("copyAlt", {
1287
1299
  config: I.value,
1288
- dataset: G.value
1300
+ dataset: W.value
1289
1301
  }), !I.value.userOptions.callbacks.altCopy) {
1290
1302
  console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1291
1303
  return;
1292
1304
  }
1293
1305
  await Promise.resolve(I.value.userOptions.callbacks.altCopy({
1294
1306
  config: I.value,
1295
- dataset: G.value
1307
+ dataset: W.value
1296
1308
  }));
1297
1309
  }
1298
- function zi() {
1299
- Kn.value = null, Yn.value = !0;
1310
+ function Hi() {
1311
+ qn.value = null, Xn.value = !0;
1300
1312
  }
1301
- function Bi() {
1302
- Kn.value = null, Jn.value = "pointer", rr.value = !1, F.value = null, Yn.value = !1;
1313
+ function Ui() {
1314
+ qn.value = null, Yn.value = "pointer", ir.value = !1, F.value = null, Xn.value = !1;
1303
1315
  }
1304
- function Vi(e) {
1305
- if (!V.value || wi.value || document.activeElement !== V.value || !Y.value.length) return;
1316
+ function Wi(e) {
1317
+ if (!Sr.value || Di.value || document.activeElement !== Sr.value || !J.value.length) return;
1306
1318
  let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
1307
1319
  if (!t && !n && !r && !i) return;
1308
1320
  if (e.preventDefault(), e.stopPropagation(), i) {
1309
- Kn.value = null, Jn.value = "pointer", rr.value = !1, F.value = null;
1321
+ qn.value = null, Yn.value = "pointer", ir.value = !1, F.value = null;
1310
1322
  return;
1311
1323
  }
1312
1324
  if (r) {
1313
- if (Kn.value === null) return;
1314
- let e = Y.value[Kn.value];
1325
+ if (qn.value === null) return;
1326
+ let e = J.value[qn.value];
1315
1327
  if (!e) return;
1316
- bi(e, Kn.value);
1328
+ Ci(e, qn.value);
1317
1329
  return;
1318
1330
  }
1319
- let a = Kn.value, o = F.value, s = a !== null && a >= 0 && a < Y.value.length, c = o !== null && o >= 0 && o < Y.value.length;
1320
- s ? n ? (a += 1, a >= Y.value.length && (a = 0)) : t && (--a, a < 0 && (a = Y.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= Y.value.length && (a = 0), a < 0 && (a = Y.value.length - 1)) : a = n ? 0 : Y.value.length - 1;
1321
- let l = Y.value[a];
1322
- l && (Kn.value = a, Hi(a), ai({
1331
+ let a = qn.value, o = F.value, s = a !== null && a >= 0 && a < J.value.length, c = o !== null && o >= 0 && o < J.value.length;
1332
+ s ? n ? (a += 1, a >= J.value.length && (a = 0)) : t && (--a, a < 0 && (a = J.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= J.value.length && (a = 0), a < 0 && (a = J.value.length - 1)) : a = n ? 0 : J.value.length - 1;
1333
+ let l = J.value[a];
1334
+ l && (qn.value = a, Gi(a), $({
1323
1335
  datapoint: l,
1324
1336
  relativeIndex: a,
1325
1337
  seriesIndex: l.seriesIndex,
@@ -1327,64 +1339,64 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
1327
1339
  triggerMode: "keyboard"
1328
1340
  }));
1329
1341
  }
1330
- function Hi(e) {
1331
- if (!Number.isFinite(e) || !V.value) return;
1332
- let t = U.value.width / 2, n = U.value.height / 2;
1342
+ function Gi(e) {
1343
+ if (!Number.isFinite(e) || !Sr.value) return;
1344
+ let t = H.value.width / 2, n = H.value.height / 2;
1333
1345
  if (I.value.type === "classic") {
1334
- let r = Y.value[e];
1346
+ let r = J.value[e];
1335
1347
  if (!r?.arcSlice) return;
1336
- let i = se(r.arcSlice);
1348
+ let i = ce(r.arcSlice);
1337
1349
  if (!i) return;
1338
1350
  t = i.x, n = i.y;
1339
1351
  } else {
1340
- let r = X.value[e]?.middlePoint;
1352
+ let r = Y.value[e]?.middlePoint;
1341
1353
  if (!r) return;
1342
1354
  t = r.x, n = r.y;
1343
1355
  }
1344
- let r = V.value.getBoundingClientRect();
1345
- qn.value = {
1346
- x: r.left + t / U.value.width * r.width,
1347
- y: r.top + n / U.value.height * r.height
1356
+ let r = Sr.value.getBoundingClientRect();
1357
+ Jn.value = {
1358
+ x: r.left + t / H.value.width * r.width,
1359
+ y: r.top + n / H.value.height * r.height
1348
1360
  };
1349
1361
  }
1350
- let Ui = g(() => ({
1351
- headers: pi.value?.colNames ?? [],
1352
- rows: pi.value?.a11yBody ?? []
1362
+ let Ki = _(() => ({
1363
+ headers: gi.value?.colNames ?? [],
1364
+ rows: gi.value?.a11yBody ?? []
1353
1365
  }));
1354
1366
  return De({
1355
- autoSize: Di,
1356
- getData: Mr,
1357
- getImage: Ei,
1358
- generatePdf: Er,
1359
- generateCsv: fi,
1360
- generateImage: Dr,
1361
- generateSvg: Ii,
1362
- hideSeries: Vr,
1363
- showSeries: Br,
1364
- toggleTable: xi,
1365
- toggleLabels: Si,
1366
- toggleTooltip: Ci,
1367
- toggleAnnotator: Ti,
1368
- toggleFullscreen: hi,
1369
- copyAlt: Ri
1370
- }), (t, n) => (w(), y("div", {
1367
+ autoSize: Ai,
1368
+ getData: Ir,
1369
+ getImage: ki,
1370
+ generatePdf: Ar,
1371
+ generateCsv: hi,
1372
+ generateImage: jr,
1373
+ generateSvg: zi,
1374
+ hideSeries: Gr,
1375
+ showSeries: Wr,
1376
+ toggleTable: wi,
1377
+ toggleLabels: Ti,
1378
+ toggleTooltip: Ei,
1379
+ toggleAnnotator: Oi,
1380
+ toggleFullscreen: vi,
1381
+ copyAlt: Vi
1382
+ }), (t, n) => (T(), b("div", {
1371
1383
  ref_key: "donutChart",
1372
- ref: M,
1373
- class: Ke(`vue-data-ui-component vue-ui-donut ${mi.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${I.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1374
- style: C(`font-family:${I.value.style.fontFamily};width:100%; ${I.value.responsive ? "height:100%;" : ""} text-align:center;background:${z.value.backgroundColor}`),
1384
+ ref: jn,
1385
+ class: Ke(`vue-data-ui-component vue-ui-donut ${_i.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${I.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1386
+ style: w(`font-family:${I.value.style.fontFamily};width:100%; ${I.value.responsive ? "height:100%;" : ""} text-align:center;background:${z.value.backgroundColor}`),
1375
1387
  id: `donut__${P.value}`,
1376
- onMouseenter: xr,
1377
- onMouseleave: Sr
1388
+ onMouseenter: Cr,
1389
+ onMouseleave: wr
1378
1390
  }, [
1379
- b("div", {
1391
+ x("div", {
1380
1392
  id: `chart-instructions-${P.value}`,
1381
1393
  class: "sr-only"
1382
- }, [b("p", null, O(I.value.a11y.translations.keyboardNavigation), 1)], 8, at),
1383
- Ui.value?.rows?.length ? (w(), _(Me, {
1394
+ }, [x("p", null, k(I.value.a11y.translations.keyboardNavigation), 1)], 8, at),
1395
+ Ki.value?.rows?.length ? (T(), v(Me, {
1384
1396
  key: 0,
1385
1397
  uid: P.value,
1386
- head: Ui.value.headers,
1387
- body: Ui.value.rows,
1398
+ head: Ki.value.headers,
1399
+ body: Ki.value.rows,
1388
1400
  notice: I.value.a11y.translations.tableAvailable,
1389
1401
  caption: I.value.a11y.translations.tableCaption
1390
1402
  }, null, 8, [
@@ -1393,23 +1405,23 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
1393
1405
  "body",
1394
1406
  "notice",
1395
1407
  "caption"
1396
- ])) : v("", !0),
1397
- I.value.userOptions.buttons.annotator && k(V) ? (w(), _(k(Sn), {
1408
+ ])) : y("", !0),
1409
+ I.value.userOptions.buttons.annotator && A(Sr) ? (T(), v(A(Sn), {
1398
1410
  key: 1,
1399
1411
  color: z.value.color,
1400
1412
  backgroundColor: z.value.backgroundColor,
1401
- active: wi.value,
1402
- svgRef: k(V),
1403
- isCursorPointer: cr.value,
1413
+ active: Di.value,
1414
+ svgRef: A(Sr),
1415
+ isCursorPointer: lr.value,
1404
1416
  palette: I.value.userOptions.annotatorPalette,
1405
- onClose: Ti
1417
+ onClose: Oi
1406
1418
  }, {
1407
- "annotator-action-close": A(() => [D(t.$slots, "annotator-action-close", {}, void 0, !0)]),
1408
- "annotator-action-color": A(({ color: e }) => [D(t.$slots, "annotator-action-color", S(x({ color: e })), void 0, !0)]),
1409
- "annotator-action-draw": A(({ mode: e }) => [D(t.$slots, "annotator-action-draw", S(x({ mode: e })), void 0, !0)]),
1410
- "annotator-action-undo": A(({ disabled: e }) => [D(t.$slots, "annotator-action-undo", S(x({ disabled: e })), void 0, !0)]),
1411
- "annotator-action-redo": A(({ disabled: e }) => [D(t.$slots, "annotator-action-redo", S(x({ disabled: e })), void 0, !0)]),
1412
- "annotator-action-delete": A(({ disabled: e }) => [D(t.$slots, "annotator-action-delete", S(x({ disabled: e })), void 0, !0)]),
1419
+ "annotator-action-close": j(() => [O(t.$slots, "annotator-action-close", {}, void 0, !0)]),
1420
+ "annotator-action-color": j(({ color: e }) => [O(t.$slots, "annotator-action-color", C(S({ color: e })), void 0, !0)]),
1421
+ "annotator-action-draw": j(({ mode: e }) => [O(t.$slots, "annotator-action-draw", C(S({ mode: e })), void 0, !0)]),
1422
+ "annotator-action-undo": j(({ disabled: e }) => [O(t.$slots, "annotator-action-undo", C(S({ disabled: e })), void 0, !0)]),
1423
+ "annotator-action-redo": j(({ disabled: e }) => [O(t.$slots, "annotator-action-redo", C(S({ disabled: e })), void 0, !0)]),
1424
+ "annotator-action-delete": j(({ disabled: e }) => [O(t.$slots, "annotator-action-delete", C(S({ disabled: e })), void 0, !0)]),
1413
1425
  _: 3
1414
1426
  }, 8, [
1415
1427
  "color",
@@ -1418,22 +1430,22 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
1418
1430
  "svgRef",
1419
1431
  "isCursorPointer",
1420
1432
  "palette"
1421
- ])) : v("", !0),
1422
- D(t.$slots, "userConfig", {}, void 0, !0),
1423
- Or.value ? (w(), y("div", {
1433
+ ])) : y("", !0),
1434
+ O(t.$slots, "userConfig", {}, void 0, !0),
1435
+ Mr.value ? (T(), b("div", {
1424
1436
  key: 2,
1425
1437
  ref_key: "noTitle",
1426
- ref: zn,
1438
+ ref: Bn,
1427
1439
  class: "vue-data-ui-no-title-space",
1428
1440
  style: "height:36px; width: 100%;background:transparent"
1429
- }, null, 512)) : v("", !0),
1430
- z.value.title.text ? (w(), y("div", {
1441
+ }, null, 512)) : y("", !0),
1442
+ z.value.title.text ? (T(), b("div", {
1431
1443
  key: 3,
1432
1444
  ref_key: "chartTitle",
1433
- ref: Pn,
1445
+ ref: Fn,
1434
1446
  style: "width:100%;background:transparent;padding-bottom:24px"
1435
- }, [(w(), _(Te, {
1436
- key: `title_${Bn.value}`,
1447
+ }, [(T(), v(Te, {
1448
+ key: `title_${Vn.value}`,
1437
1449
  config: {
1438
1450
  title: {
1439
1451
  cy: "donut-div-title",
@@ -1444,16 +1456,16 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
1444
1456
  ...z.value.title.subtitle
1445
1457
  }
1446
1458
  }
1447
- }, null, 8, ["config"]))], 512)) : v("", !0),
1448
- b("div", { id: `legend-top-${P.value}` }, null, 8, ot),
1449
- I.value.userOptions.show && An.value && (k(br) || k(vr)) ? (w(), _(k(Cn), {
1459
+ }, null, 8, ["config"]))], 512)) : y("", !0),
1460
+ x("div", { id: `legend-top-${P.value}` }, null, 8, ot),
1461
+ I.value.userOptions.show && An.value && (A(xr) || A(yr)) ? (T(), v(A(Cn), {
1450
1462
  ref_key: "userOptionsRef",
1451
- ref: Gn,
1452
- key: `user_option_${ar.value}`,
1463
+ ref: Kn,
1464
+ key: `user_option_${or.value}`,
1453
1465
  backgroundColor: z.value.backgroundColor,
1454
1466
  color: z.value.color,
1455
- isPrinting: k(wr),
1456
- isImaging: k(Tr),
1467
+ isPrinting: A(Or),
1468
+ isImaging: A(kr),
1457
1469
  uid: P.value,
1458
1470
  hasTooltip: z.value.tooltip.show && I.value.userOptions.buttons.tooltip,
1459
1471
  hasPdf: I.value.userOptions.buttons.pdf,
@@ -1464,32 +1476,32 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
1464
1476
  hasLabel: I.value.userOptions.buttons.labels,
1465
1477
  hasFullscreen: I.value.userOptions.buttons.fullscreen,
1466
1478
  hasAltCopy: I.value.userOptions.buttons.altCopy,
1467
- isFullscreen: mi.value,
1468
- chartElement: M.value,
1479
+ isFullscreen: _i.value,
1480
+ chartElement: jn.value,
1469
1481
  position: I.value.userOptions.position,
1470
1482
  callbacks: I.value.userOptions.callbacks,
1471
- isTooltip: H.value.showTooltip,
1483
+ isTooltip: V.value.showTooltip,
1472
1484
  titles: { ...I.value.userOptions.buttonTitles },
1473
1485
  hasAnnotator: I.value.userOptions.buttons.annotator,
1474
- isAnnotation: wi.value,
1486
+ isAnnotation: Di.value,
1475
1487
  printScale: I.value.userOptions.print.scale,
1476
1488
  tableDialog: I.value.table.useDialog,
1477
- isCursorPointer: cr.value,
1478
- onToggleFullscreen: hi,
1479
- onGeneratePdf: k(Er),
1480
- onGenerateCsv: fi,
1481
- onGenerateImage: k(Li),
1482
- onGenerateSvg: k(Ii),
1483
- onToggleTable: xi,
1484
- onToggleLabels: Si,
1485
- onToggleTooltip: Ci,
1486
- onToggleAnnotator: Ti,
1487
- onCopyAlt: Ri,
1488
- style: C({ visibility: k(br) ? k(vr) ? "visible" : "hidden" : "visible" })
1489
+ isCursorPointer: lr.value,
1490
+ onToggleFullscreen: vi,
1491
+ onGeneratePdf: A(Ar),
1492
+ onGenerateCsv: hi,
1493
+ onGenerateImage: A(Bi),
1494
+ onGenerateSvg: A(zi),
1495
+ onToggleTable: wi,
1496
+ onToggleLabels: Ti,
1497
+ onToggleTooltip: Ei,
1498
+ onToggleAnnotator: Oi,
1499
+ onCopyAlt: Vi,
1500
+ style: w({ visibility: A(xr) ? A(yr) ? "visible" : "hidden" : "visible" })
1489
1501
  }, Be({ _: 2 }, [
1490
1502
  t.$slots.menuIcon ? {
1491
1503
  name: "menuIcon",
1492
- fn: A(({ isOpen: e, color: n }) => [D(t.$slots, "menuIcon", S(x({
1504
+ fn: j(({ isOpen: e, color: n }) => [O(t.$slots, "menuIcon", C(S({
1493
1505
  isOpen: e,
1494
1506
  color: n
1495
1507
  })), void 0, !0)]),
@@ -1497,42 +1509,42 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
1497
1509
  } : void 0,
1498
1510
  t.$slots.optionTooltip ? {
1499
1511
  name: "optionTooltip",
1500
- fn: A(() => [D(t.$slots, "optionTooltip", {}, void 0, !0)]),
1512
+ fn: j(() => [O(t.$slots, "optionTooltip", {}, void 0, !0)]),
1501
1513
  key: "1"
1502
1514
  } : void 0,
1503
1515
  t.$slots.optionPdf ? {
1504
1516
  name: "optionPdf",
1505
- fn: A(() => [D(t.$slots, "optionPdf", {}, void 0, !0)]),
1517
+ fn: j(() => [O(t.$slots, "optionPdf", {}, void 0, !0)]),
1506
1518
  key: "2"
1507
1519
  } : void 0,
1508
1520
  t.$slots.optionCsv ? {
1509
1521
  name: "optionCsv",
1510
- fn: A(() => [D(t.$slots, "optionCsv", {}, void 0, !0)]),
1522
+ fn: j(() => [O(t.$slots, "optionCsv", {}, void 0, !0)]),
1511
1523
  key: "3"
1512
1524
  } : void 0,
1513
1525
  t.$slots.optionImg ? {
1514
1526
  name: "optionImg",
1515
- fn: A(() => [D(t.$slots, "optionImg", {}, void 0, !0)]),
1527
+ fn: j(() => [O(t.$slots, "optionImg", {}, void 0, !0)]),
1516
1528
  key: "4"
1517
1529
  } : void 0,
1518
1530
  t.$slots.optionSvg ? {
1519
1531
  name: "optionSvg",
1520
- fn: A(() => [D(t.$slots, "optionSvg", {}, void 0, !0)]),
1532
+ fn: j(() => [O(t.$slots, "optionSvg", {}, void 0, !0)]),
1521
1533
  key: "5"
1522
1534
  } : void 0,
1523
1535
  t.$slots.optionTable ? {
1524
1536
  name: "optionTable",
1525
- fn: A(() => [D(t.$slots, "optionTable", {}, void 0, !0)]),
1537
+ fn: j(() => [O(t.$slots, "optionTable", {}, void 0, !0)]),
1526
1538
  key: "6"
1527
1539
  } : void 0,
1528
1540
  t.$slots.optionLabels ? {
1529
1541
  name: "optionLabels",
1530
- fn: A(() => [D(t.$slots, "optionLabels", {}, void 0, !0)]),
1542
+ fn: j(() => [O(t.$slots, "optionLabels", {}, void 0, !0)]),
1531
1543
  key: "7"
1532
1544
  } : void 0,
1533
1545
  t.$slots.optionFullscreen ? {
1534
1546
  name: "optionFullscreen",
1535
- fn: A(({ toggleFullscreen: e, isFullscreen: n }) => [D(t.$slots, "optionFullscreen", S(x({
1547
+ fn: j(({ toggleFullscreen: e, isFullscreen: n }) => [O(t.$slots, "optionFullscreen", C(S({
1536
1548
  toggleFullscreen: e,
1537
1549
  isFullscreen: n
1538
1550
  })), void 0, !0)]),
@@ -1540,7 +1552,7 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
1540
1552
  } : void 0,
1541
1553
  t.$slots.optionAnnotator ? {
1542
1554
  name: "optionAnnotator",
1543
- fn: A(({ toggleAnnotator: e, isAnnotator: n }) => [D(t.$slots, "optionAnnotator", S(x({
1555
+ fn: j(({ toggleAnnotator: e, isAnnotator: n }) => [O(t.$slots, "optionAnnotator", C(S({
1544
1556
  toggleAnnotator: e,
1545
1557
  isAnnotator: n
1546
1558
  })), void 0, !0)]),
@@ -1548,91 +1560,91 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
1548
1560
  } : void 0,
1549
1561
  t.$slots.optionAltCopy ? {
1550
1562
  name: "optionAltCopy",
1551
- fn: A(({ altCopy: e }) => [D(t.$slots, "optionAltCopy", S(x({ altCopy: e })), void 0, !0)]),
1563
+ fn: j(({ altCopy: e }) => [O(t.$slots, "optionAltCopy", C(S({ altCopy: e })), void 0, !0)]),
1552
1564
  key: "10"
1553
1565
  } : void 0,
1554
1566
  t.$slots["custom-menu-before"] ? {
1555
1567
  name: "custom-menu-before",
1556
- fn: A(() => [D(t.$slots, "custom-menu-before", {}, void 0, !0)]),
1568
+ fn: j(() => [O(t.$slots, "custom-menu-before", {}, void 0, !0)]),
1557
1569
  key: "11"
1558
1570
  } : void 0,
1559
1571
  t.$slots["custom-menu-after"] ? {
1560
1572
  name: "custom-menu-after",
1561
- fn: A(() => [D(t.$slots, "custom-menu-after", {}, void 0, !0)]),
1573
+ fn: j(() => [O(t.$slots, "custom-menu-after", {}, void 0, !0)]),
1562
1574
  key: "12"
1563
1575
  } : void 0
1564
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.callbacks.isTooltip.titles.hasAnnotator.isAnnotation.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : v("", !0),
1565
- b("div", st, [(w(), y("svg", {
1576
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.callbacks.isTooltip.titles.hasAnnotator.isAnnotation.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : y("", !0),
1577
+ x("div", st, [(T(), b("svg", {
1566
1578
  ref_key: "svgRef",
1567
- ref: V,
1568
- xmlns: k(fe),
1579
+ ref: Sr,
1580
+ xmlns: A(fe),
1569
1581
  "aria-describedby": `chart-instructions-${P.value}`,
1570
1582
  class: Ke({
1571
- "vue-data-ui-fullscreen--on": mi.value,
1572
- "vue-data-ui-fulscreen--off": !mi.value,
1583
+ "vue-data-ui-fullscreen--on": _i.value,
1584
+ "vue-data-ui-fulscreen--off": !_i.value,
1573
1585
  "vue-data-ui-svg": !0
1574
1586
  }),
1575
- viewBox: `0 0 ${U.value.width <= 0 ? 10 : U.value.width} ${U.value.height <= 0 ? 10 : U.value.height}`,
1576
- style: C(`max-width:100%; overflow: visible; background:transparent;color:${z.value.color};${Cr.value.css}`),
1587
+ viewBox: `0 0 ${H.value.width <= 0 ? 10 : H.value.width} ${H.value.height <= 0 ? 10 : H.value.height}`,
1588
+ style: w(`max-width:100%; overflow: visible; background:transparent;color:${z.value.color};${Dr.value.css}`),
1577
1589
  tabindex: "0",
1578
- onFocus: zi,
1579
- onBlur: Bi,
1580
- onKeydown: Vi
1581
- }, [b("g", {
1590
+ onFocus: Hi,
1591
+ onBlur: Ui,
1592
+ onKeydown: Wi
1593
+ }, [x("g", {
1582
1594
  ref_key: "G",
1583
- ref: jn,
1595
+ ref: Mn,
1584
1596
  class: "vue-data-ui-g"
1585
1597
  }, [
1586
- He(k(wn)),
1587
- t.$slots["chart-background"] ? (w(), y("foreignObject", {
1598
+ He(A(wn)),
1599
+ t.$slots["chart-background"] ? (T(), b("foreignObject", {
1588
1600
  key: 0,
1589
1601
  x: 0,
1590
1602
  y: 0,
1591
- width: U.value.width <= 0 ? 10 : U.value.width,
1592
- height: U.value.height <= 0 ? 10 : U.value.height,
1603
+ width: H.value.width <= 0 ? 10 : H.value.width,
1604
+ height: H.value.height <= 0 ? 10 : H.value.height,
1593
1605
  style: { pointerEvents: "none" }
1594
- }, [D(t.$slots, "chart-background", {}, void 0, !0)], 8, lt)) : v("", !0),
1595
- I.value.type === "classic" && !isNaN(Ar.value / q.value) ? (w(), y("defs", ut, [z.value.useGradient ? (w(), _(Ae, {
1606
+ }, [O(t.$slots, "chart-background", {}, void 0, !0)], 8, lt)) : y("", !0),
1607
+ I.value.type === "classic" && !isNaN(Pr.value / K.value) ? (T(), b("defs", ut, [z.value.useGradient ? (T(), v(Ae, {
1596
1608
  key: 0,
1597
1609
  t: "radial",
1598
1610
  id: `gradient_${P.value}`,
1599
1611
  stops: [
1600
1612
  [
1601
1613
  "0%",
1602
- k(u)(z.value.backgroundColor, 0),
1614
+ A(u)(z.value.backgroundColor, 0),
1603
1615
  0
1604
1616
  ],
1605
1617
  [
1606
- `${(1 - Ar.value / q.value) * 100}%`,
1607
- k(u)("#FFFFFF", 0),
1618
+ `${(1 - Pr.value / K.value) * 100}%`,
1619
+ A(u)("#FFFFFF", 0),
1608
1620
  0
1609
1621
  ],
1610
1622
  [
1611
- `${(1 - Ar.value / q.value / 2) * 100}%`,
1612
- k(u)("#FFFFFF", z.value.gradientIntensity),
1623
+ `${(1 - Pr.value / K.value / 2) * 100}%`,
1624
+ A(u)("#FFFFFF", z.value.gradientIntensity),
1613
1625
  1
1614
1626
  ],
1615
1627
  [
1616
1628
  "100%",
1617
- k(u)(z.value.backgroundColor, 0),
1629
+ A(u)(z.value.backgroundColor, 0),
1618
1630
  0
1619
1631
  ]
1620
1632
  ]
1621
- }, null, 8, ["id", "stops"])) : v("", !0)])) : v("", !0),
1622
- I.value.type === "polar" ? (w(), y("defs", dt, [(w(!0), y(h, null, E(X.value, (e, t) => (w(), _(Ae, {
1633
+ }, null, 8, ["id", "stops"])) : y("", !0)])) : y("", !0),
1634
+ I.value.type === "polar" ? (T(), b("defs", dt, [(T(!0), b(g, null, D(Y.value, (e, t) => (T(), v(Ae, {
1623
1635
  t: "radial",
1624
1636
  id: `polar_gradient_${t}_${P.value}`,
1625
1637
  key: `pg_${t}_${P.value}`,
1626
- cx: (isNaN(e.middlePoint.x / U.value.width * 100) ? 0 : e.middlePoint.x / U.value.width * 100) + "%",
1627
- cy: (isNaN(e.middlePoint.y / U.value.height * 100) ? 0 : e.middlePoint.y / U.value.height * 100) + "%",
1638
+ cx: (isNaN(e.middlePoint.x / H.value.width * 100) ? 0 : e.middlePoint.x / H.value.width * 100) + "%",
1639
+ cy: (isNaN(e.middlePoint.y / H.value.height * 100) ? 0 : e.middlePoint.y / H.value.height * 100) + "%",
1628
1640
  r: "62%",
1629
1641
  stops: [[
1630
1642
  "0%",
1631
- k(ee)(J.value[t].color, .05),
1643
+ A(ee)(q.value[t].color, .05),
1632
1644
  z.value.gradientIntensity / 100
1633
1645
  ], [
1634
1646
  "100%",
1635
- J.value[t].color,
1647
+ q.value[t].color,
1636
1648
  1
1637
1649
  ]]
1638
1650
  }, null, 8, [
@@ -1640,40 +1652,40 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
1640
1652
  "cx",
1641
1653
  "cy",
1642
1654
  "stops"
1643
- ]))), 128))])) : v("", !0),
1644
- b("defs", null, [
1645
- b("filter", {
1655
+ ]))), 128))])) : y("", !0),
1656
+ x("defs", null, [
1657
+ x("filter", {
1646
1658
  id: `blur_${P.value}`,
1647
1659
  x: "-50%",
1648
1660
  y: "-50%",
1649
1661
  width: "200%",
1650
1662
  height: "200%"
1651
- }, [b("feGaussianBlur", {
1663
+ }, [x("feGaussianBlur", {
1652
1664
  in: "SourceGraphic",
1653
1665
  stdDeviation: 2,
1654
1666
  id: `blur_std_${P.value}`
1655
- }, null, 8, pt), n[5] ||= b("feColorMatrix", {
1667
+ }, null, 8, pt), n[5] ||= x("feColorMatrix", {
1656
1668
  type: "saturate",
1657
1669
  values: "0"
1658
1670
  }, null, -1)], 8, ft),
1659
- b("filter", {
1671
+ x("filter", {
1660
1672
  id: `shadow_${P.value}`,
1661
1673
  "color-interpolation-filters": "sRGB"
1662
- }, [b("feDropShadow", {
1674
+ }, [x("feDropShadow", {
1663
1675
  dx: "0",
1664
1676
  dy: "0",
1665
1677
  stdDeviation: "10",
1666
1678
  "flood-opacity": "0.5",
1667
1679
  "flood-color": R.value.shadowColor
1668
1680
  }, null, 8, ht)], 8, mt),
1669
- b("filter", {
1681
+ x("filter", {
1670
1682
  id: `drop_shadow_${P.value}`,
1671
1683
  "color-interpolation-filters": "sRGB",
1672
1684
  x: "-50%",
1673
1685
  y: "-50%",
1674
1686
  width: "200%",
1675
1687
  height: "200%"
1676
- }, [b("feDropShadow", {
1688
+ }, [x("feDropShadow", {
1677
1689
  dx: "0",
1678
1690
  dy: "0",
1679
1691
  stdDeviation: "3",
@@ -1681,594 +1693,594 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
1681
1693
  "flood-color": R.value.shadowColor
1682
1694
  }, null, 8, _t)], 8, gt)
1683
1695
  ]),
1684
- I.value.type === "classic" ? (w(!0), y(h, { key: 3 }, E(J.value.filter((e) => !e.ghost), (e, t) => (w(), y("g", null, [Z(e) && H.value.dataLabels.show ? (w(), y("path", {
1696
+ I.value.type === "classic" ? (T(!0), b(g, { key: 3 }, D(q.value.filter((e) => !e.ghost), (e, t) => (T(), b("g", null, [X(e) && V.value.dataLabels.show ? (T(), b("path", {
1685
1697
  key: 0,
1686
- d: k(Q)[t]?.connectorPath || k(re)(e, {
1687
- x: U.value.width / 2,
1688
- y: U.value.height / 2
1689
- }, 16, 16, !1, !1, Ar.value, 12, sr.value.curvedMarkers),
1698
+ d: A(Z)[t]?.connectorPath || A(ie)(e, {
1699
+ x: H.value.width / 2,
1700
+ y: H.value.height / 2
1701
+ }, 16, 16, !1, !1, Pr.value, 12, cr.value.curvedMarkers),
1690
1702
  stroke: e.color,
1691
1703
  "stroke-width": "1",
1692
1704
  "stroke-linecap": "round",
1693
1705
  "stroke-linejoin": "round",
1694
1706
  fill: "none",
1695
- filter: li(t)
1696
- }, null, 8, vt)) : v("", !0)]))), 256)) : v("", !0),
1697
- I.value.type === "polar" ? (w(!0), y(h, { key: 4 }, E(J.value.filter((e) => !e.ghost), (e, t) => (w(), y("g", null, [Z(e) && H.value.dataLabels.show ? (w(), y("path", {
1707
+ filter: fi(t)
1708
+ }, null, 8, vt)) : y("", !0)]))), 256)) : y("", !0),
1709
+ I.value.type === "polar" ? (T(!0), b(g, { key: 4 }, D(q.value.filter((e) => !e.ghost), (e, t) => (T(), b("g", null, [X(e) && V.value.dataLabels.show ? (T(), b("path", {
1698
1710
  key: 0,
1699
- d: `M ${k(i)({
1700
- initX: X.value[t].middlePoint.x,
1701
- initY: X.value[t].middlePoint.y,
1711
+ d: `M ${A(i)({
1712
+ initX: Y.value[t].middlePoint.x,
1713
+ initY: Y.value[t].middlePoint.y,
1702
1714
  offset: 24,
1703
- centerX: U.value.width / 2,
1704
- centerY: U.value.height / 2
1705
- }).x},${k(i)({
1706
- initX: X.value[t].middlePoint.x,
1707
- initY: X.value[t].middlePoint.y,
1715
+ centerX: H.value.width / 2,
1716
+ centerY: H.value.height / 2
1717
+ }).x},${A(i)({
1718
+ initX: Y.value[t].middlePoint.x,
1719
+ initY: Y.value[t].middlePoint.y,
1708
1720
  offset: 24,
1709
- centerX: U.value.width / 2,
1710
- centerY: U.value.height / 2
1711
- }).y} ${X.value[t].middlePoint.x},${X.value[t].middlePoint.y}`,
1721
+ centerX: H.value.width / 2,
1722
+ centerY: H.value.height / 2
1723
+ }).y} ${Y.value[t].middlePoint.x},${Y.value[t].middlePoint.y}`,
1712
1724
  stroke: e.color,
1713
1725
  "stroke-width": "1",
1714
1726
  "stroke-linecap": "round",
1715
1727
  "stroke-linejoin": "round",
1716
1728
  fill: "none",
1717
- filter: li(t),
1718
- style: C({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
1719
- }, null, 12, yt)) : v("", !0)]))), 256)) : v("", !0),
1720
- I.value.type === "classic" && R.value.useShadow ? (w(), y("circle", {
1729
+ filter: fi(t),
1730
+ style: w({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
1731
+ }, null, 12, yt)) : y("", !0)]))), 256)) : y("", !0),
1732
+ I.value.type === "classic" && R.value.useShadow ? (T(), b("circle", {
1721
1733
  key: 5,
1722
- cx: U.value.width / 2,
1723
- cy: U.value.height / 2,
1724
- r: q.value <= 0 ? 10 : q.value,
1734
+ cx: H.value.width / 2,
1735
+ cy: H.value.height / 2,
1736
+ r: K.value <= 0 ? 10 : K.value,
1725
1737
  fill: z.value.backgroundColor,
1726
1738
  filter: `url(#shadow_${P.value})`
1727
- }, null, 8, bt)) : v("", !0),
1728
- t.$slots.pattern ? (w(), y("g", xt, [(w(!0), y(h, null, E(e.dataset, (e, n) => (w(), y("defs", { key: `pattern-${e.patternIndex}` }, [D(t.$slots, "pattern", We({ ref_for: !0 }, {
1739
+ }, null, 8, bt)) : y("", !0),
1740
+ t.$slots.pattern ? (T(), b("g", xt, [(T(!0), b(g, null, D(e.dataset, (e, n) => (T(), b("defs", { key: `pattern-${e.patternIndex}` }, [O(t.$slots, "pattern", We({ ref_for: !0 }, {
1729
1741
  seriesIndex: n,
1730
1742
  patternId: `pattern_${P.value}_${n}`
1731
- }), void 0, !0)]))), 128))])) : v("", !0),
1732
- $.value && I.value.type === "classic" ? (w(), y(h, { key: 7 }, [
1733
- (w(!0), y(h, null, E(Y.value, (e, t) => (w(), y("path", {
1743
+ }), void 0, !0)]))), 128))])) : y("", !0),
1744
+ Q.value && I.value.type === "classic" ? (T(), b(g, { key: 7 }, [
1745
+ (T(!0), b(g, null, D(J.value, (e, t) => (T(), b("path", {
1734
1746
  stroke: z.value.backgroundColor,
1735
1747
  d: e.arcSlice,
1736
1748
  fill: "#FFFFFF"
1737
1749
  }, null, 8, St))), 256)),
1738
- (w(!0), y(h, null, E(Y.value, (e, t) => (w(), y("path", {
1750
+ (T(!0), b(g, null, D(J.value, (e, t) => (T(), b("path", {
1739
1751
  class: "vue-ui-donut-arc-path",
1740
1752
  d: e.arcSlice,
1741
1753
  fill: e.color,
1742
1754
  stroke: R.value.borderColorAuto ? z.value.backgroundColor : R.value.borderColor,
1743
1755
  "stroke-width": R.value.borderWidth,
1744
- filter: li(t)
1756
+ filter: fi(t)
1745
1757
  }, null, 8, Ct))), 256)),
1746
- t.$slots.pattern ? (w(), y("g", wt, [(w(!0), y(h, null, E(Y.value, (e, t) => (w(), y("path", {
1758
+ t.$slots.pattern ? (T(), b("g", wt, [(T(!0), b(g, null, D(J.value, (e, t) => (T(), b("path", {
1747
1759
  class: "vue-ui-donut-arc-path",
1748
1760
  d: e.arcSlice,
1749
1761
  fill: `url(#${e.pattern})`,
1750
1762
  stroke: R.value.borderColorAuto ? z.value.backgroundColor : R.value.borderColor,
1751
1763
  "stroke-width": R.value.borderWidth,
1752
- filter: li(t)
1753
- }, null, 8, Tt))), 256))])) : v("", !0)
1754
- ], 64)) : v("", !0),
1755
- $.value && I.value.type === "polar" ? (w(), y(h, { key: 8 }, [J.value.length > 1 ? (w(), y("g", Et, [
1756
- (w(!0), y(h, null, E(Y.value, (e, t) => (w(), y("path", {
1764
+ filter: fi(t)
1765
+ }, null, 8, Tt))), 256))])) : y("", !0)
1766
+ ], 64)) : y("", !0),
1767
+ Q.value && I.value.type === "polar" ? (T(), b(g, { key: 8 }, [q.value.length > 1 ? (T(), b("g", Et, [
1768
+ (T(!0), b(g, null, D(J.value, (e, t) => (T(), b("path", {
1757
1769
  stroke: R.value.borderColorAuto ? z.value.backgroundColor : R.value.borderColor,
1758
- d: X.value[t].path,
1770
+ d: Y.value[t].path,
1759
1771
  fill: "#FFFFFF",
1760
- style: C({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
1772
+ style: w({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
1761
1773
  }, null, 12, Dt))), 256)),
1762
- R.value.useShadow ? (w(), y("g", Ot, [(w(!0), y(h, null, E(Y.value, (e, t) => (w(), y("path", {
1774
+ R.value.useShadow ? (T(), b("g", Ot, [(T(!0), b(g, null, D(J.value, (e, t) => (T(), b("path", {
1763
1775
  class: "vue-ui-donut-arc-path",
1764
- d: X.value[t].path,
1776
+ d: Y.value[t].path,
1765
1777
  fill: "transparent",
1766
- stroke: R.value.borderColorAuto ? z.value.backgroundColor : sr.value.donut.borderColor,
1778
+ stroke: R.value.borderColorAuto ? z.value.backgroundColor : cr.value.donut.borderColor,
1767
1779
  "stroke-width": R.value.borderWidth,
1768
1780
  filter: `url(#drop_shadow_${P.value})`,
1769
- style: C({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
1770
- }, null, 12, kt))), 256))])) : v("", !0),
1771
- t.$slots.pattern ? (w(), y("g", At, [(w(!0), y(h, null, E(Y.value, (e, t) => (w(), y("path", {
1781
+ style: w({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
1782
+ }, null, 12, kt))), 256))])) : y("", !0),
1783
+ t.$slots.pattern ? (T(), b("g", At, [(T(!0), b(g, null, D(J.value, (e, t) => (T(), b("path", {
1772
1784
  class: "vue-ui-donut-arc-path",
1773
- d: X.value[t].path,
1785
+ d: Y.value[t].path,
1774
1786
  fill: `url(#${e.pattern})`,
1775
- stroke: R.value.borderColorAuto ? z.value.backgroundColor : sr.value.donut.borderColor,
1787
+ stroke: R.value.borderColorAuto ? z.value.backgroundColor : cr.value.donut.borderColor,
1776
1788
  "stroke-width": R.value.borderWidth,
1777
- filter: li(t),
1778
- style: C({
1789
+ filter: fi(t),
1790
+ style: w({
1779
1791
  transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out`,
1780
1792
  transformOrigin: "center"
1781
1793
  })
1782
- }, null, 12, jt))), 256))])) : v("", !0),
1783
- (w(!0), y(h, null, E(Y.value, (e, t) => (w(), y("path", {
1794
+ }, null, 12, jt))), 256))])) : y("", !0),
1795
+ (T(!0), b(g, null, D(J.value, (e, t) => (T(), b("path", {
1784
1796
  class: "vue-ui-donut-arc-path",
1785
- d: X.value[t].path,
1797
+ d: Y.value[t].path,
1786
1798
  fill: z.value.useGradient ? `url(#polar_gradient_${t}_${P.value})` : e.color,
1787
1799
  stroke: R.value.borderColorAuto ? z.value.backgroundColor : R.value.borderColor,
1788
1800
  "stroke-width": R.value.borderWidth,
1789
- filter: li(t),
1790
- style: C({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
1801
+ filter: fi(t),
1802
+ style: w({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
1791
1803
  }, null, 12, Mt))), 256))
1792
- ])) : (w(), y("g", Nt, [t.$slots.pattern ? (w(), y("circle", {
1804
+ ])) : (T(), b("g", Nt, [t.$slots.pattern ? (T(), b("circle", {
1793
1805
  key: 0,
1794
- cx: U.value.width / 2,
1795
- cy: U.value.height / 2,
1796
- r: q.value,
1797
- fill: `url(#pattern_${P.value}_${J.value[0].patternIndex})`,
1806
+ cx: H.value.width / 2,
1807
+ cy: H.value.height / 2,
1808
+ r: K.value,
1809
+ fill: `url(#pattern_${P.value}_${q.value[0].patternIndex})`,
1798
1810
  stroke: z.value.backgroundColor,
1799
1811
  "stroke-width": R.value.borderWidth
1800
- }, null, 8, Pt)) : v("", !0), b("circle", {
1801
- cx: U.value.width / 2,
1802
- cy: U.value.height / 2,
1803
- r: q.value,
1804
- fill: z.value.useGradient ? `url(#polar_gradient_0_${P.value})` : J.value[0].color,
1812
+ }, null, 8, Pt)) : y("", !0), x("circle", {
1813
+ cx: H.value.width / 2,
1814
+ cy: H.value.height / 2,
1815
+ r: K.value,
1816
+ fill: z.value.useGradient ? `url(#polar_gradient_0_${P.value})` : q.value[0].color,
1805
1817
  stroke: z.value.backgroundColor,
1806
1818
  "stroke-width": R.value.borderWidth
1807
- }, null, 8, Ft)]))], 64)) : (w(), y(h, { key: 9 }, [I.value.type === "classic" && !Kr.value ? (w(), y("g", It, [(w(!0), y(h, null, E(qr.value, (e, t) => (w(), y("path", {
1819
+ }, null, 8, Ft)]))], 64)) : (T(), b(g, { key: 9 }, [I.value.type === "classic" && !Xr.value ? (T(), b("g", It, [(T(!0), b(g, null, D(Zr.value, (e, t) => (T(), b("path", {
1808
1820
  class: "vue-ui-donut-arc-path",
1809
1821
  d: e.arcSlice,
1810
1822
  fill: e.color,
1811
1823
  stroke: z.value.backgroundColor,
1812
1824
  "stroke-width": R.value.borderWidth
1813
- }, null, 8, Lt))), 256))])) : v("", !0), b("circle", {
1814
- cx: U.value.width / 2,
1815
- cy: U.value.height / 2,
1816
- r: q.value <= 0 ? 10 : q.value,
1825
+ }, null, 8, Lt))), 256))])) : y("", !0), x("circle", {
1826
+ cx: H.value.width / 2,
1827
+ cy: H.value.height / 2,
1828
+ r: K.value <= 0 ? 10 : K.value,
1817
1829
  fill: "transparent",
1818
1830
  stroke: z.value.backgroundColor
1819
1831
  }, null, 8, Rt)], 64)),
1820
- z.value.useGradient && I.value.type === "classic" ? (w(), y("circle", {
1832
+ z.value.useGradient && I.value.type === "classic" ? (T(), b("circle", {
1821
1833
  key: 10,
1822
- cx: U.value.width / 2,
1823
- cy: U.value.height / 2,
1824
- r: q.value <= 0 ? 10 : q.value,
1834
+ cx: H.value.width / 2,
1835
+ cy: H.value.height / 2,
1836
+ r: K.value <= 0 ? 10 : K.value,
1825
1837
  fill: `url(#gradient_${P.value})`
1826
- }, null, 8, zt)) : v("", !0),
1827
- b("circle", {
1838
+ }, null, 8, zt)) : y("", !0),
1839
+ x("circle", {
1828
1840
  ref_key: "circle_hollow",
1829
- ref: Nn,
1841
+ ref: Pn,
1830
1842
  style: { pointerEvents: "none" },
1831
1843
  fill: "none",
1832
- cx: U.value.width / 2,
1833
- cy: U.value.height / 2,
1834
- r: Math.max(.1, Ar.value * 1.7)
1844
+ cx: H.value.width / 2,
1845
+ cy: H.value.height / 2,
1846
+ r: Math.max(.1, Pr.value * 1.7)
1835
1847
  }, null, 8, Bt),
1836
- $.value ? (w(), y(h, { key: 11 }, [J.value.length > 1 || I.value.type === "classic" ? (w(), y("g", Vt, [(w(!0), y(h, null, E(J.value.filter((e) => !e.ghost), (e, t) => (w(), y("path", {
1837
- d: I.value.type === "classic" ? e.arcSlice : X.value[t].path,
1848
+ Q.value ? (T(), b(g, { key: 11 }, [q.value.length > 1 || I.value.type === "classic" ? (T(), b("g", Vt, [(T(!0), b(g, null, D(q.value.filter((e) => !e.ghost), (e, t) => (T(), b("path", {
1849
+ d: I.value.type === "classic" ? e.arcSlice : Y.value[t].path,
1838
1850
  stroke: R.value.borderColorAuto ? z.value.backgroundColor : R.value.borderColor,
1839
1851
  fill: F.value === t ? R.value.selectedColor : "transparent",
1840
- onMouseenter: (n) => ai({
1852
+ onMouseenter: (n) => $({
1841
1853
  datapoint: e,
1842
1854
  relativeIndex: t,
1843
1855
  seriesIndex: e.seriesIndex,
1844
1856
  show: !0
1845
1857
  }),
1846
- onMouseleave: (t) => ii({
1858
+ onMouseleave: (t) => ci({
1847
1859
  datapoint: e,
1848
1860
  seriesIndex: e.seriesIndex
1849
1861
  }),
1850
- onClick: (n) => bi(e, t)
1851
- }, null, 40, Ht))), 256))])) : (w(), y("g", Ut, [b("circle", {
1852
- cx: U.value.width / 2,
1853
- cy: U.value.height / 2,
1854
- r: q.value,
1862
+ onClick: (n) => Ci(e, t)
1863
+ }, null, 40, Ht))), 256))])) : (T(), b("g", Ut, [x("circle", {
1864
+ cx: H.value.width / 2,
1865
+ cy: H.value.height / 2,
1866
+ r: K.value,
1855
1867
  fill: "transparent",
1856
- onMouseenter: n[0] ||= (e) => ai({
1857
- datapoint: J.value[0],
1868
+ onMouseenter: n[0] ||= (e) => $({
1869
+ datapoint: q.value[0],
1858
1870
  relativeIndex: 0,
1859
- seriesIndex: J.value[0].seriesIndex,
1871
+ seriesIndex: q.value[0].seriesIndex,
1860
1872
  show: !0
1861
1873
  }),
1862
- onMouseleave: n[1] ||= (e) => ii({
1863
- datapoint: J.value[0],
1864
- seriesIndex: J.value[0].seriesIndex
1874
+ onMouseleave: n[1] ||= (e) => ci({
1875
+ datapoint: q.value[0],
1876
+ seriesIndex: q.value[0].seriesIndex
1865
1877
  }),
1866
- onClick: n[2] ||= (e) => bi(J.value[0], t.i)
1867
- }, null, 40, Wt)]))], 64)) : v("", !0),
1868
- I.value.type === "classic" ? (w(), y("g", {
1878
+ onClick: n[2] ||= (e) => Ci(q.value[0], t.i)
1879
+ }, null, 40, Wt)]))], 64)) : y("", !0),
1880
+ I.value.type === "classic" ? (T(), b("g", {
1869
1881
  key: 12,
1870
1882
  ref_key: "G_hollow",
1871
- ref: Mn,
1883
+ ref: Nn,
1872
1884
  class: "vue-data-ui-donut-hollow-labels"
1873
1885
  }, [
1874
- L.value.hollow.total.show ? (w(), y("text", {
1886
+ L.value.hollow.total.show ? (T(), b("text", {
1875
1887
  key: 0,
1876
1888
  "text-anchor": "middle",
1877
- x: U.value.width / 2,
1878
- y: U.value.height / 2 - (L.value.hollow.average.show ? L.value.hollow.total.fontSize : 0) + L.value.hollow.total.offsetY,
1889
+ x: H.value.width / 2,
1890
+ y: H.value.height / 2 - (L.value.hollow.average.show ? L.value.hollow.total.fontSize : 0) + L.value.hollow.total.offsetY,
1879
1891
  fill: L.value.hollow.total.color,
1880
1892
  "font-size": L.value.hollow.total.fontSize,
1881
- style: C(`font-weight:${L.value.hollow.total.bold ? "bold" : ""}`)
1882
- }, O(L.value.hollow.total.text), 13, Gt)) : v("", !0),
1883
- L.value.hollow.total.show ? (w(), y("text", {
1893
+ style: w(`font-weight:${L.value.hollow.total.bold ? "bold" : ""}`)
1894
+ }, k(L.value.hollow.total.text), 13, Gt)) : y("", !0),
1895
+ L.value.hollow.total.show ? (T(), b("text", {
1884
1896
  key: 1,
1885
1897
  "text-anchor": "middle",
1886
- x: U.value.width / 2,
1887
- y: U.value.height / 2 + L.value.hollow.total.fontSize - (L.value.hollow.average.show ? L.value.hollow.total.fontSize : 0) + L.value.hollow.total.value.offsetY,
1898
+ x: H.value.width / 2,
1899
+ y: H.value.height / 2 + L.value.hollow.total.fontSize - (L.value.hollow.average.show ? L.value.hollow.total.fontSize : 0) + L.value.hollow.total.value.offsetY,
1888
1900
  fill: L.value.hollow.total.value.color,
1889
1901
  "font-size": L.value.hollow.total.value.fontSize,
1890
- style: C(`font-weight:${L.value.hollow.total.value.bold ? "bold" : ""}`)
1891
- }, O(k(m)(L.value.hollow.total.value.formatter, $.value, k(d)({
1902
+ style: w(`font-weight:${L.value.hollow.total.value.bold ? "bold" : ""}`)
1903
+ }, k(A(m)(L.value.hollow.total.value.formatter, Q.value, A(d)({
1892
1904
  p: L.value.hollow.total.value.prefix,
1893
- v: $.value,
1905
+ v: Q.value,
1894
1906
  s: L.value.hollow.total.value.suffix
1895
- }))), 13, Kt)) : v("", !0),
1896
- L.value.hollow.average.show ? (w(), y("text", {
1907
+ }))), 13, Kt)) : y("", !0),
1908
+ L.value.hollow.average.show ? (T(), b("text", {
1897
1909
  key: 2,
1898
1910
  "text-anchor": "middle",
1899
- x: U.value.width / 2,
1900
- y: U.value.height / 2 + (L.value.hollow.total.show ? L.value.hollow.average.fontSize : 0) + L.value.hollow.average.offsetY,
1911
+ x: H.value.width / 2,
1912
+ y: H.value.height / 2 + (L.value.hollow.total.show ? L.value.hollow.average.fontSize : 0) + L.value.hollow.average.offsetY,
1901
1913
  fill: L.value.hollow.average.color,
1902
1914
  "font-size": L.value.hollow.average.fontSize,
1903
- style: C(`font-weight:${L.value.hollow.average.bold ? "bold" : ""}`)
1904
- }, O(L.value.hollow.average.text), 13, qt)) : v("", !0),
1905
- L.value.hollow.average.show ? (w(), y("text", {
1915
+ style: w(`font-weight:${L.value.hollow.average.bold ? "bold" : ""}`)
1916
+ }, k(L.value.hollow.average.text), 13, qt)) : y("", !0),
1917
+ L.value.hollow.average.show ? (T(), b("text", {
1906
1918
  key: 3,
1907
1919
  "text-anchor": "middle",
1908
- x: U.value.width / 2,
1909
- y: U.value.height / 2 + (L.value.hollow.total.show ? L.value.hollow.average.fontSize : 0) + L.value.hollow.average.fontSize + L.value.hollow.average.value.offsetY,
1920
+ x: H.value.width / 2,
1921
+ y: H.value.height / 2 + (L.value.hollow.total.show ? L.value.hollow.average.fontSize : 0) + L.value.hollow.average.fontSize + L.value.hollow.average.value.offsetY,
1910
1922
  fill: L.value.hollow.average.value.color,
1911
1923
  "font-size": L.value.hollow.average.value.fontSize,
1912
- style: C(`font-weight:${L.value.hollow.average.value.bold ? "bold" : ""}`)
1913
- }, O(Nr.value || B.value ? "--" : k(m)(L.value.hollow.average.value.formatter, k(de)(ei.value), k(d)({
1924
+ style: w(`font-weight:${L.value.hollow.average.value.bold ? "bold" : ""}`)
1925
+ }, k(Lr.value || B.value ? "--" : A(m)(L.value.hollow.average.value.formatter, A(de)(ii.value), A(d)({
1914
1926
  p: L.value.hollow.average.value.prefix,
1915
- v: k(de)(ei.value),
1927
+ v: A(de)(ii.value),
1916
1928
  s: L.value.hollow.average.value.suffix,
1917
1929
  r: L.value.hollow.average.value.rounding
1918
- }))), 13, Jt)) : v("", !0)
1919
- ], 512)) : v("", !0),
1920
- (w(!0), y(h, null, E(Y.value.filter((e) => !e.ghost), (e, n) => (w(), y("g", {
1921
- filter: li(n),
1930
+ }))), 13, Jt)) : y("", !0)
1931
+ ], 512)) : y("", !0),
1932
+ (T(!0), b(g, null, D(J.value.filter((e) => !e.ghost), (e, n) => (T(), b("g", {
1933
+ filter: fi(n),
1922
1934
  key: e.seriesIndex,
1923
- opacity: ui(e)
1924
- }, [L.value.dataLabels.useLabelSlots ? (w(), y("g", Xt, [(w(), y("foreignObject", {
1925
- x: k(p)(e, !0).anchor === "end" ? k(p)(e).x - 120 : k(p)(e, !0).anchor === "middle" ? k(p)(e).x - 60 : k(p)(e).x,
1926
- y: k(ce)(e) - (gi.value ? 20 : 0),
1935
+ opacity: pi(e)
1936
+ }, [L.value.dataLabels.useLabelSlots ? (T(), b("g", Xt, [(T(), b("foreignObject", {
1937
+ x: A(p)(e, !0).anchor === "end" ? A(p)(e).x - 120 : A(p)(e, !0).anchor === "middle" ? A(p)(e).x - 60 : A(p)(e).x,
1938
+ y: A(h)(e) - (yi.value ? 20 : 0),
1927
1939
  width: "120",
1928
1940
  height: "60",
1929
1941
  style: { overflow: "visible" }
1930
- }, [b("div", null, [D(t.$slots, "dataLabel", We({ ref_for: !0 }, {
1942
+ }, [x("div", null, [O(t.$slots, "dataLabel", We({ ref_for: !0 }, {
1931
1943
  datapoint: e,
1932
1944
  isBlur: !I.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === n,
1933
- isSafari: gi.value,
1934
- isVisible: Z(e) && H.value.dataLabels.show,
1935
- textAlign: k(p)(e, !0, 16, !0).anchor,
1936
- flexAlign: k(p)(e, !0, 16).anchor,
1937
- percentage: Zr(e, Y.value)
1938
- }), void 0, !0)])], 8, Zt))])) : (w(), y("g", Qt, [I.value.type === "classic" ? (w(), y(h, { key: 0 }, [Z(e) && H.value.dataLabels.show ? (w(), y("circle", {
1945
+ isSafari: yi.value,
1946
+ isVisible: X(e) && V.value.dataLabels.show,
1947
+ textAlign: A(p)(e, !0, 16, !0).anchor,
1948
+ flexAlign: A(p)(e, !0, 16).anchor,
1949
+ percentage: ti(e, J.value)
1950
+ }), void 0, !0)])], 8, Zt))])) : (T(), b("g", Qt, [I.value.type === "classic" ? (T(), b(g, { key: 0 }, [X(e) && V.value.dataLabels.show ? (T(), b("circle", {
1939
1951
  key: 0,
1940
- cx: k(Q)[n]?.markerX ?? k(p)(e).x,
1941
- cy: k(Q)[n]?.markerY ?? k(ce)(e) - 3.5,
1952
+ cx: A(Z)[n]?.markerX ?? A(p)(e).x,
1953
+ cy: A(Z)[n]?.markerY ?? A(h)(e) - 3.5,
1942
1954
  fill: e.color,
1943
1955
  stroke: z.value.backgroundColor,
1944
1956
  "stroke-width": 1,
1945
1957
  r: 3,
1946
1958
  filter: !I.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === n ? "" : `url(#blur_${P.value})`,
1947
- onClick: (t) => bi(e, n),
1948
- onMouseenter: (t) => ai({
1959
+ onClick: (t) => Ci(e, n),
1960
+ onMouseenter: (t) => $({
1949
1961
  datapoint: e,
1950
1962
  relativeIndex: n,
1951
1963
  seriesIndex: e.seriesIndex,
1952
1964
  show: !0
1953
1965
  }),
1954
- onMouseleave: (t) => ii({
1966
+ onMouseleave: (t) => ci({
1955
1967
  datapoint: e,
1956
1968
  seriesIndex: e.seriesIndex
1957
1969
  })
1958
- }, null, 40, $t)) : v("", !0), L.value.dataLabels.oneLine || k(Q)[n] ? tt((w(), y("text", {
1970
+ }, null, 40, $t)) : y("", !0), L.value.dataLabels.oneLine || A(Z)[n] ? tt((T(), b("text", {
1959
1971
  key: 1,
1960
1972
  class: "vue-data-ui-datalabel-inline",
1961
- "text-anchor": k(Q)[n]?.textAnchor || k(p)(e, !0, 12).anchor,
1962
- x: k(Q)[n]?.labelX ?? k(p)(e, !0, 12).x,
1963
- y: k(Q)[n]?.labelY ?? k(ce)(e),
1964
- onClick: (t) => bi(e, n),
1965
- onMouseenter: (t) => ai({
1973
+ "text-anchor": A(Z)[n]?.textAnchor || A(p)(e, !0, 12).anchor,
1974
+ x: A(Z)[n]?.labelX ?? A(p)(e, !0, 12).x,
1975
+ y: A(Z)[n]?.labelY ?? A(h)(e),
1976
+ onClick: (t) => Ci(e, n),
1977
+ onMouseenter: (t) => $({
1966
1978
  datapoint: e,
1967
1979
  relativeIndex: n,
1968
1980
  seriesIndex: e.seriesIndex,
1969
1981
  show: !0
1970
1982
  }),
1971
- onMouseleave: (t) => ii({
1983
+ onMouseleave: (t) => ci({
1972
1984
  datapoint: e,
1973
1985
  seriesIndex: e.seriesIndex
1974
1986
  }),
1975
- innerHTML: si(e, n, !!k(Q)[n])
1976
- }, null, 40, en)), [[$e, Z(e) && H.value.dataLabels.show]]) : (w(), y(h, { key: 2 }, [tt(b("text", {
1987
+ innerHTML: ui(e, n, !!A(Z)[n])
1988
+ }, null, 40, en)), [[$e, X(e) && V.value.dataLabels.show]]) : (T(), b(g, { key: 2 }, [tt(x("text", {
1977
1989
  class: "vue-data-ui-datalabel-value",
1978
- "text-anchor": k(Q)[n]?.textAnchor || k(p)(e, !0, 12).anchor,
1979
- x: k(Q)[n]?.labelX ?? k(p)(e, !0, 12).x,
1980
- y: k(Q)[n]?.labelY ?? k(ce)(e),
1990
+ "text-anchor": A(Z)[n]?.textAnchor || A(p)(e, !0, 12).anchor,
1991
+ x: A(Z)[n]?.labelX ?? A(p)(e, !0, 12).x,
1992
+ y: A(Z)[n]?.labelY ?? A(h)(e),
1981
1993
  fill: L.value.percentage.color,
1982
- "font-size": Xn.value + "px",
1983
- style: C(`font-weight:${L.value.percentage.bold ? "bold" : ""}`),
1984
- onClick: (t) => bi(e, n),
1985
- onMouseenter: (t) => ai({
1994
+ "font-size": Zn.value + "px",
1995
+ style: w(`font-weight:${L.value.percentage.bold ? "bold" : ""}`),
1996
+ onClick: (t) => Ci(e, n),
1997
+ onMouseenter: (t) => $({
1986
1998
  datapoint: e,
1987
1999
  relativeIndex: n,
1988
2000
  seriesIndex: e.seriesIndex,
1989
2001
  show: !0
1990
2002
  }),
1991
- onMouseleave: (t) => ii({
2003
+ onMouseleave: (t) => ci({
1992
2004
  datapoint: e,
1993
2005
  seriesIndex: e.seriesIndex
1994
2006
  })
1995
- }, O(yi(e)), 45, tn), [[$e, Z(e) && H.value.dataLabels.show]]), tt(b("text", {
2007
+ }, k(Si(e)), 45, tn), [[$e, X(e) && V.value.dataLabels.show]]), tt(x("text", {
1996
2008
  class: "vue-data-ui-datalabel-name",
1997
- "text-anchor": k(Q)[n]?.textAnchor || k(p)(e).anchor,
1998
- x: k(Q)[n]?.labelX ?? k(p)(e, !0, 12).x,
1999
- y: (k(Q)[n]?.labelY ?? k(ce)(e)) + N.value * 1.2,
2009
+ "text-anchor": A(Z)[n]?.textAnchor || A(p)(e).anchor,
2010
+ x: A(Z)[n]?.labelX ?? A(p)(e, !0, 12).x,
2011
+ y: (A(Z)[n]?.labelY ?? A(h)(e)) + N.value * 1.2,
2000
2012
  fill: L.value.name.color,
2001
2013
  "font-size": N.value + "px",
2002
- style: C(`font-weight:${L.value.name.bold ? "bold" : ""}`),
2003
- onClick: (t) => bi(e, n),
2004
- onMouseenter: (t) => ai({
2014
+ style: w(`font-weight:${L.value.name.bold ? "bold" : ""}`),
2015
+ onClick: (t) => Ci(e, n),
2016
+ onMouseenter: (t) => $({
2005
2017
  datapoint: e,
2006
2018
  relativeIndex: n,
2007
2019
  seriesIndex: e.seriesIndex,
2008
2020
  show: !0
2009
2021
  }),
2010
- onMouseleave: (t) => ii({
2022
+ onMouseleave: (t) => ci({
2011
2023
  datapoint: e,
2012
2024
  seriesIndex: e.seriesIndex
2013
2025
  }),
2014
- innerHTML: k(a)({
2026
+ innerHTML: A(a)({
2015
2027
  content: e.name,
2016
2028
  fontSize: N.value,
2017
2029
  fill: L.value.name.color,
2018
- x: k(Q)[n]?.labelX ?? k(p)(e, !0, 12).x,
2019
- y: (k(Q)[n]?.labelY ?? k(ce)(e)) + N.value
2030
+ x: A(Z)[n]?.labelX ?? A(p)(e, !0, 12).x,
2031
+ y: (A(Z)[n]?.labelY ?? A(h)(e)) + N.value
2020
2032
  })
2021
- }, null, 44, nn), [[$e, Z(e, !0, 12) && H.value.dataLabels.show && L.value.name.show]])], 64))], 64)) : v("", !0), I.value.type === "polar" ? (w(), y(h, { key: 1 }, [Z(e) && H.value.dataLabels.show ? (w(), y("circle", {
2033
+ }, null, 44, nn), [[$e, X(e, !0, 12) && V.value.dataLabels.show && L.value.name.show]])], 64))], 64)) : y("", !0), I.value.type === "polar" ? (T(), b(g, { key: 1 }, [X(e) && V.value.dataLabels.show ? (T(), b("circle", {
2022
2034
  key: 0,
2023
- cx: k(i)({
2024
- initX: X.value[n].middlePoint.x,
2025
- initY: X.value[n].middlePoint.y,
2035
+ cx: A(i)({
2036
+ initX: Y.value[n].middlePoint.x,
2037
+ initY: Y.value[n].middlePoint.y,
2026
2038
  offset: 24,
2027
- centerX: U.value.width / 2,
2028
- centerY: U.value.height / 2
2039
+ centerX: H.value.width / 2,
2040
+ centerY: H.value.height / 2
2029
2041
  }).x,
2030
- cy: k(i)({
2031
- initX: X.value[n].middlePoint.x,
2032
- initY: X.value[n].middlePoint.y,
2042
+ cy: A(i)({
2043
+ initX: Y.value[n].middlePoint.x,
2044
+ initY: Y.value[n].middlePoint.y,
2033
2045
  offset: 24,
2034
- centerX: U.value.width / 2,
2035
- centerY: U.value.height / 2
2046
+ centerX: H.value.width / 2,
2047
+ centerY: H.value.height / 2
2036
2048
  }).y,
2037
2049
  fill: e.color,
2038
2050
  stroke: z.value.backgroundColor,
2039
2051
  "stroke-width": 1,
2040
2052
  r: 3,
2041
2053
  filter: !I.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === n ? "" : `url(#blur_${P.value})`,
2042
- onClick: (t) => bi(e, n),
2043
- onMouseenter: (t) => ai({
2054
+ onClick: (t) => Ci(e, n),
2055
+ onMouseenter: (t) => $({
2044
2056
  datapoint: e,
2045
2057
  relativeIndex: n,
2046
2058
  seriesIndex: e.seriesIndex,
2047
2059
  show: !0
2048
2060
  }),
2049
- onMouseleave: (t) => ii({
2061
+ onMouseleave: (t) => ci({
2050
2062
  datapoint: e,
2051
2063
  seriesIndex: e.seriesIndex
2052
2064
  }),
2053
- style: C({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
2054
- }, null, 44, rn)) : v("", !0), L.value.dataLabels.oneLine ? tt((w(), y("text", {
2065
+ style: w({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
2066
+ }, null, 44, rn)) : y("", !0), L.value.dataLabels.oneLine ? tt((T(), b("text", {
2055
2067
  key: 1,
2056
2068
  class: "vue-data-ui-datalabel-inline",
2057
- "text-anchor": Jr(X.value[n].middlePoint),
2058
- x: k(i)({
2059
- initX: X.value[n].middlePoint.x,
2060
- initY: X.value[n].middlePoint.y,
2069
+ "text-anchor": Qr(Y.value[n].middlePoint),
2070
+ x: A(i)({
2071
+ initX: Y.value[n].middlePoint.x,
2072
+ initY: Y.value[n].middlePoint.y,
2061
2073
  offset: 42,
2062
- centerX: U.value.width / 2,
2063
- centerY: U.value.height / 2
2074
+ centerX: H.value.width / 2,
2075
+ centerY: H.value.height / 2
2064
2076
  }).x,
2065
- y: k(i)({
2066
- initX: X.value[n].middlePoint.x,
2067
- initY: X.value[n].middlePoint.y,
2077
+ y: A(i)({
2078
+ initX: Y.value[n].middlePoint.x,
2079
+ initY: Y.value[n].middlePoint.y,
2068
2080
  offset: 42,
2069
- centerX: U.value.width / 2,
2070
- centerY: U.value.height / 2
2081
+ centerX: H.value.width / 2,
2082
+ centerY: H.value.height / 2
2071
2083
  }).y,
2072
- style: C({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` }),
2073
- onClick: (t) => bi(e, n),
2074
- onMouseenter: (t) => ai({
2084
+ style: w({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` }),
2085
+ onClick: (t) => Ci(e, n),
2086
+ onMouseenter: (t) => $({
2075
2087
  datapoint: e,
2076
2088
  relativeIndex: n,
2077
2089
  seriesIndex: e.seriesIndex,
2078
2090
  show: !0
2079
2091
  }),
2080
- onMouseleave: (t) => ii({
2092
+ onMouseleave: (t) => ci({
2081
2093
  datapoint: e,
2082
2094
  seriesIndex: e.seriesIndex
2083
2095
  }),
2084
- innerHTML: ci(e, n)
2085
- }, null, 44, an)), [[$e, Z(e) && H.value.dataLabels.show]]) : (w(), y(h, { key: 2 }, [Z(e) && H.value.dataLabels.show ? (w(), y("text", {
2096
+ innerHTML: di(e, n)
2097
+ }, null, 44, an)), [[$e, X(e) && V.value.dataLabels.show]]) : (T(), b(g, { key: 2 }, [X(e) && V.value.dataLabels.show ? (T(), b("text", {
2086
2098
  key: 0,
2087
2099
  class: "vue-data-ui-datalabel-value",
2088
- "text-anchor": Jr(X.value[n].middlePoint),
2089
- x: k(i)({
2090
- initX: X.value[n].middlePoint.x,
2091
- initY: X.value[n].middlePoint.y,
2100
+ "text-anchor": Qr(Y.value[n].middlePoint),
2101
+ x: A(i)({
2102
+ initX: Y.value[n].middlePoint.x,
2103
+ initY: Y.value[n].middlePoint.y,
2092
2104
  offset: 42,
2093
- centerX: U.value.width / 2,
2094
- centerY: U.value.height / 2
2105
+ centerX: H.value.width / 2,
2106
+ centerY: H.value.height / 2
2095
2107
  }).x,
2096
- y: k(i)({
2097
- initX: X.value[n].middlePoint.x,
2098
- initY: X.value[n].middlePoint.y,
2108
+ y: A(i)({
2109
+ initX: Y.value[n].middlePoint.x,
2110
+ initY: Y.value[n].middlePoint.y,
2099
2111
  offset: 42,
2100
- centerX: U.value.width / 2,
2101
- centerY: U.value.height / 2
2112
+ centerX: H.value.width / 2,
2113
+ centerY: H.value.height / 2
2102
2114
  }).y,
2103
2115
  fill: L.value.percentage.color,
2104
- "font-size": Xn.value,
2105
- style: C({
2116
+ "font-size": Zn.value,
2117
+ style: w({
2106
2118
  transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out`,
2107
2119
  fontWeight: L.value.percentage.bold ? "bold" : "normal"
2108
2120
  }),
2109
- onClick: (t) => bi(e, n),
2110
- onMouseenter: (t) => ai({
2121
+ onClick: (t) => Ci(e, n),
2122
+ onMouseenter: (t) => $({
2111
2123
  datapoint: e,
2112
2124
  relativeIndex: n,
2113
2125
  seriesIndex: e.seriesIndex,
2114
2126
  show: !0
2115
2127
  }),
2116
- onMouseleave: (t) => ii({
2128
+ onMouseleave: (t) => ci({
2117
2129
  datapoint: e,
2118
2130
  seriesIndex: e.seriesIndex
2119
2131
  })
2120
- }, O(yi(e)), 45, on)) : v("", !0), Z(e, !0, 12) && H.value.dataLabels.show && L.value.name.show ? (w(), y("text", {
2132
+ }, k(Si(e)), 45, on)) : y("", !0), X(e, !0, 12) && V.value.dataLabels.show && L.value.name.show ? (T(), b("text", {
2121
2133
  key: 1,
2122
2134
  class: "vue-data-ui-datalabel-name",
2123
- "text-anchor": Jr(X.value[n].middlePoint),
2124
- x: k(i)({
2125
- initX: X.value[n].middlePoint.x,
2126
- initY: X.value[n].middlePoint.y,
2135
+ "text-anchor": Qr(Y.value[n].middlePoint),
2136
+ x: A(i)({
2137
+ initX: Y.value[n].middlePoint.x,
2138
+ initY: Y.value[n].middlePoint.y,
2127
2139
  offset: 42,
2128
- centerX: U.value.width / 2,
2129
- centerY: U.value.height / 2
2140
+ centerX: H.value.width / 2,
2141
+ centerY: H.value.height / 2
2130
2142
  }).x,
2131
- y: k(i)({
2132
- initX: X.value[n].middlePoint.x,
2133
- initY: X.value[n].middlePoint.y,
2143
+ y: A(i)({
2144
+ initX: Y.value[n].middlePoint.x,
2145
+ initY: Y.value[n].middlePoint.y,
2134
2146
  offset: 42,
2135
- centerX: U.value.width / 2,
2136
- centerY: U.value.height / 2
2147
+ centerX: H.value.width / 2,
2148
+ centerY: H.value.height / 2
2137
2149
  }).y + N.value * 1.2,
2138
2150
  fill: L.value.name.color,
2139
2151
  "font-size": N.value,
2140
- style: C({
2152
+ style: w({
2141
2153
  transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out`,
2142
2154
  fontWeight: L.value.name.bold ? "bold" : "normal"
2143
2155
  }),
2144
- onClick: (t) => bi(e, n),
2145
- onMouseenter: (t) => ai({
2156
+ onClick: (t) => Ci(e, n),
2157
+ onMouseenter: (t) => $({
2146
2158
  datapoint: e,
2147
2159
  relativeIndex: n,
2148
2160
  seriesIndex: e.seriesIndex,
2149
2161
  show: !0
2150
2162
  }),
2151
- onMouseleave: (t) => ii({
2163
+ onMouseleave: (t) => ci({
2152
2164
  datapoint: e,
2153
2165
  seriesIndex: e.seriesIndex
2154
2166
  }),
2155
- innerHTML: k(a)({
2167
+ innerHTML: A(a)({
2156
2168
  content: e.name,
2157
2169
  fontSize: N.value,
2158
2170
  fill: L.value.name.color,
2159
- x: k(i)({
2160
- initX: X.value[n].middlePoint.x,
2161
- initY: X.value[n].middlePoint.y,
2171
+ x: A(i)({
2172
+ initX: Y.value[n].middlePoint.x,
2173
+ initY: Y.value[n].middlePoint.y,
2162
2174
  offset: 42,
2163
- centerX: U.value.width / 2,
2164
- centerY: U.value.height / 2
2175
+ centerX: H.value.width / 2,
2176
+ centerY: H.value.height / 2
2165
2177
  }).x,
2166
- y: k(i)({
2167
- initX: X.value[n].middlePoint.x,
2168
- initY: X.value[n].middlePoint.y,
2178
+ y: A(i)({
2179
+ initX: Y.value[n].middlePoint.x,
2180
+ initY: Y.value[n].middlePoint.y,
2169
2181
  offset: 42,
2170
- centerX: U.value.width / 2,
2171
- centerY: U.value.height / 2
2182
+ centerX: H.value.width / 2,
2183
+ centerY: H.value.height / 2
2172
2184
  }).y + N.value * 1.2
2173
2185
  })
2174
- }, null, 44, sn)) : v("", !0)], 64))], 64)) : v("", !0)])), H.value.dataLabels.show && z.value.comments.show && e.comment ? (w(), y("g", cn, [Z(e) && I.value.type === "classic" ? (w(), y("foreignObject", {
2186
+ }, null, 44, sn)) : y("", !0)], 64))], 64)) : y("", !0)])), V.value.dataLabels.show && z.value.comments.show && e.comment ? (T(), b("g", cn, [X(e) && I.value.type === "classic" ? (T(), b("foreignObject", {
2175
2187
  key: 0,
2176
- x: z.value.comments.offsetX + (k(p)(e, !0).anchor === "end" ? k(p)(e).x - z.value.comments.width : k(p)(e, !0).anchor === "middle" ? k(p)(e).x - z.value.comments.width / 2 : k(p)(e).x),
2177
- y: k(ce)(e) + 24 + z.value.comments.offsetY,
2188
+ x: z.value.comments.offsetX + (A(p)(e, !0).anchor === "end" ? A(p)(e).x - z.value.comments.width : A(p)(e, !0).anchor === "middle" ? A(p)(e).x - z.value.comments.width / 2 : A(p)(e).x),
2189
+ y: A(h)(e) + 24 + z.value.comments.offsetY,
2178
2190
  width: z.value.comments.width,
2179
2191
  height: "200",
2180
2192
  style: {
2181
2193
  overflow: "visible",
2182
2194
  "pointer-events": "none"
2183
2195
  }
2184
- }, [b("div", null, [D(t.$slots, "plot-comment", { plot: {
2196
+ }, [x("div", null, [O(t.$slots, "plot-comment", { plot: {
2185
2197
  ...e,
2186
- textAlign: k(p)(e, !0, 16, !0).anchor,
2187
- flexAlign: k(p)(e, !0, 16).anchor,
2198
+ textAlign: A(p)(e, !0, 16, !0).anchor,
2199
+ flexAlign: A(p)(e, !0, 16).anchor,
2188
2200
  isFirstLoad: B.value
2189
- } }, void 0, !0)])], 8, ln)) : v("", !0), Z(e) && I.value.type === "polar" ? (w(), y("foreignObject", {
2201
+ } }, void 0, !0)])], 8, ln)) : y("", !0), X(e) && I.value.type === "polar" ? (T(), b("foreignObject", {
2190
2202
  key: 1,
2191
- x: z.value.comments.offsetX + (Jr(X.value[n].middlePoint) === "end" ? k(i)({
2192
- initX: X.value[n].middlePoint.x,
2193
- initY: X.value[n].middlePoint.y,
2203
+ x: z.value.comments.offsetX + (Qr(Y.value[n].middlePoint) === "end" ? A(i)({
2204
+ initX: Y.value[n].middlePoint.x,
2205
+ initY: Y.value[n].middlePoint.y,
2194
2206
  offset: 42,
2195
- centerX: U.value.width / 2,
2196
- centerY: U.value.height / 2
2197
- }).x - z.value.comments.width : Jr(X.value[n].middlePoint) === "middle" ? k(i)({
2198
- initX: X.value[n].middlePoint.x,
2199
- initY: X.value[n].middlePoint.y,
2207
+ centerX: H.value.width / 2,
2208
+ centerY: H.value.height / 2
2209
+ }).x - z.value.comments.width : Qr(Y.value[n].middlePoint) === "middle" ? A(i)({
2210
+ initX: Y.value[n].middlePoint.x,
2211
+ initY: Y.value[n].middlePoint.y,
2200
2212
  offset: 42,
2201
- centerX: U.value.width / 2,
2202
- centerY: U.value.height / 2
2203
- }).x - z.value.comments.width / 2 : k(i)({
2204
- initX: X.value[n].middlePoint.x,
2205
- initY: X.value[n].middlePoint.y,
2213
+ centerX: H.value.width / 2,
2214
+ centerY: H.value.height / 2
2215
+ }).x - z.value.comments.width / 2 : A(i)({
2216
+ initX: Y.value[n].middlePoint.x,
2217
+ initY: Y.value[n].middlePoint.y,
2206
2218
  offset: 42,
2207
- centerX: U.value.width / 2,
2208
- centerY: U.value.height / 2
2219
+ centerX: H.value.width / 2,
2220
+ centerY: H.value.height / 2
2209
2221
  }).x),
2210
- y: Yr(X.value[n]) + z.value.comments.offsetY,
2222
+ y: $r(Y.value[n]) + z.value.comments.offsetY,
2211
2223
  width: z.value.comments.width,
2212
2224
  height: "200",
2213
- style: C({
2225
+ style: w({
2214
2226
  transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out`,
2215
2227
  overflow: "visible",
2216
2228
  pointerEvents: "none"
2217
2229
  })
2218
- }, [b("div", null, [D(t.$slots, "plot-comment", { plot: {
2230
+ }, [x("div", null, [O(t.$slots, "plot-comment", { plot: {
2219
2231
  ...e,
2220
- textAlign: Jr(X.value[n].middlePoint),
2221
- flexAlign: Jr(X.value[n].middlePoint),
2232
+ textAlign: Qr(Y.value[n].middlePoint),
2233
+ flexAlign: Qr(Y.value[n].middlePoint),
2222
2234
  isFirstLoad: B.value
2223
- } }, void 0, !0)])], 12, un)) : v("", !0)])) : v("", !0)], 8, Yt))), 128)),
2224
- D(t.$slots, "svg", { svg: {
2225
- ...U.value,
2226
- datapoints: J.value,
2227
- isPrintingImg: k(wr) || k(Tr) || k(Pi),
2228
- isPrintingSvg: k(Fi)
2235
+ } }, void 0, !0)])], 12, un)) : y("", !0)])) : y("", !0)], 8, Yt))), 128)),
2236
+ O(t.$slots, "svg", { svg: {
2237
+ ...H.value,
2238
+ datapoints: q.value,
2239
+ isPrintingImg: A(Or) || A(kr) || A(Li),
2240
+ isPrintingSvg: A(Ri)
2229
2241
  } }, void 0, !0)
2230
- ], 512)], 46, ct)), t.$slots.hint ? (w(), y("div", dn, [D(t.$slots, "hint", S(x({
2242
+ ], 512)], 46, ct)), t.$slots.hint ? (T(), b("div", dn, [O(t.$slots, "hint", C(S({
2231
2243
  hint: I.value.a11y.translations.keyboardNavigation,
2232
- isVisible: Yn.value
2233
- })), void 0, !0)])) : v("", !0)]),
2234
- t.$slots.watermark ? (w(), y("div", fn, [D(t.$slots, "watermark", S(x({ isPrinting: k(wr) || k(Tr) || k(Pi) || k(Fi) })), void 0, !0)])) : v("", !0),
2235
- b("div", { id: `legend-bottom-${P.value}` }, null, 8, pn),
2236
- Un.value && (z.value.legend.show || t.$slots.legend) ? (w(), _(ze, {
2244
+ isVisible: Xn.value
2245
+ })), void 0, !0)])) : y("", !0)]),
2246
+ t.$slots.watermark ? (T(), b("div", fn, [O(t.$slots, "watermark", C(S({ isPrinting: A(Or) || A(kr) || A(Li) || A(Ri) })), void 0, !0)])) : y("", !0),
2247
+ x("div", { id: `legend-bottom-${P.value}` }, null, 8, pn),
2248
+ Wn.value && (z.value.legend.show || t.$slots.legend) ? (T(), v(ze, {
2237
2249
  key: 6,
2238
2250
  to: z.value.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
2239
- }, [b("div", {
2251
+ }, [x("div", {
2240
2252
  ref_key: "chartLegend",
2241
- ref: Fn
2242
- }, [D(t.$slots, "legend", { legend: Wr.value }, () => [z.value.legend.show ? (w(), _(Re, {
2243
- key: `legend_${Hn.value}`,
2244
- legendSet: Wr.value,
2245
- config: Gr.value,
2246
- onClickMarker: n[3] ||= ({ i: e }) => Rr(e),
2247
- isCursorPointer: cr.value
2253
+ ref: In
2254
+ }, [O(t.$slots, "legend", { legend: Jr.value }, () => [z.value.legend.show ? (T(), v(Re, {
2255
+ key: `legend_${Un.value}`,
2256
+ legendSet: Jr.value,
2257
+ config: Yr.value,
2258
+ onClickMarker: n[3] ||= ({ i: e }) => Hr(e),
2259
+ isCursorPointer: lr.value
2248
2260
  }, Be({
2249
- item: A(({ legend: e, index: t }) => [b("div", {
2250
- style: C(`opacity:${K.value.includes(t) ? .5 : 1}`),
2261
+ item: j(({ legend: e, index: t }) => [x("div", {
2262
+ style: w(`opacity:${G.value.includes(t) ? .5 : 1}`),
2251
2263
  onClick: (t) => e.segregate()
2252
- }, O(e.display), 13, mn)]),
2253
- legendToggle: A(() => [Wr.value.length > 2 && z.value.legend.selectAllToggle.show && !k(ur) ? (w(), _(je, {
2264
+ }, k(e.display), 13, mn)]),
2265
+ legendToggle: j(() => [Jr.value.length > 2 && z.value.legend.selectAllToggle.show && !A(dr) ? (T(), v(je, {
2254
2266
  key: 0,
2255
2267
  backgroundColor: z.value.legend.selectAllToggle.backgroundColor,
2256
2268
  color: z.value.legend.selectAllToggle.color,
2257
2269
  fontSize: z.value.legend.fontSize,
2258
- checked: K.value.length > 0,
2259
- isCursorPointer: cr.value,
2260
- onToggle: Lr
2270
+ checked: G.value.length > 0,
2271
+ isCursorPointer: lr.value,
2272
+ onToggle: Vr
2261
2273
  }, null, 8, [
2262
2274
  "backgroundColor",
2263
2275
  "color",
2264
2276
  "fontSize",
2265
2277
  "checked",
2266
2278
  "isCursorPointer"
2267
- ])) : v("", !0)]),
2279
+ ])) : y("", !0)]),
2268
2280
  _: 2
2269
2281
  }, [t.$slots.pattern ? {
2270
2282
  name: "legend-pattern",
2271
- fn: A(({ legend: e, index: t }) => [He(Ee, {
2283
+ fn: j(({ legend: e, index: t }) => [He(Ee, {
2272
2284
  shape: e.shape,
2273
2285
  radius: 30,
2274
2286
  stroke: "none",
@@ -2283,22 +2295,22 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
2283
2295
  "legendSet",
2284
2296
  "config",
2285
2297
  "isCursorPointer"
2286
- ])) : v("", !0)], !0)], 512)], 8, ["to"])) : v("", !0),
2287
- t.$slots.source ? (w(), y("div", {
2298
+ ])) : y("", !0)], !0)], 512)], 8, ["to"])) : y("", !0),
2299
+ t.$slots.source ? (T(), b("div", {
2288
2300
  key: 7,
2289
2301
  ref_key: "source",
2290
- ref: Rn,
2302
+ ref: zn,
2291
2303
  dir: "auto"
2292
- }, [D(t.$slots, "source", {}, void 0, !0)], 512)) : v("", !0),
2293
- t.$slots.hollow ? (w(), y("div", hn, [D(t.$slots, "hollow", S(x({
2294
- total: $.value,
2295
- average: ei.value,
2296
- dataset: W.value,
2297
- ...U.value
2298
- })), void 0, !0)])) : v("", !0),
2299
- He(k(vn), {
2304
+ }, [O(t.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
2305
+ t.$slots.hollow ? (T(), b("div", hn, [O(t.$slots, "hollow", C(S({
2306
+ total: Q.value,
2307
+ average: ii.value,
2308
+ dataset: U.value,
2309
+ ...H.value
2310
+ })), void 0, !0)])) : y("", !0),
2311
+ He(A(vn), {
2300
2312
  teleportTo: z.value.tooltip.teleportTo,
2301
- show: H.value.showTooltip && rr.value,
2313
+ show: V.value.showTooltip && ir.value,
2302
2314
  backgroundColor: z.value.tooltip.backgroundColor,
2303
2315
  color: z.value.tooltip.color,
2304
2316
  fontSize: z.value.tooltip.fontSize,
@@ -2309,20 +2321,20 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
2309
2321
  position: z.value.tooltip.position,
2310
2322
  offsetX: z.value.tooltip.offsetX,
2311
2323
  offsetY: z.value.tooltip.offsetY,
2312
- parent: M.value,
2313
- content: ir.value,
2314
- isCustom: ri.value,
2315
- isFullscreen: mi.value,
2324
+ parent: jn.value,
2325
+ content: ar.value,
2326
+ isCustom: si.value,
2327
+ isFullscreen: _i.value,
2316
2328
  smooth: z.value.tooltip.smooth,
2317
2329
  backdropFilter: z.value.tooltip.backdropFilter,
2318
2330
  smoothForce: z.value.tooltip.smoothForce,
2319
2331
  smoothSnapThreshold: z.value.tooltip.smoothSnapThrehsold,
2320
- isA11yMode: Jn.value === "keyboard",
2321
- a11yPosition: qn.value
2332
+ isA11yMode: Yn.value === "keyboard",
2333
+ a11yPosition: Jn.value
2322
2334
  }, {
2323
- "tooltip-before": A(() => [D(t.$slots, "tooltip-before", S(x({ ...ni.value })), void 0, !0)]),
2324
- tooltip: A(() => [D(t.$slots, "tooltip", S(x({ ...ni.value })), void 0, !0)]),
2325
- "tooltip-after": A(() => [D(t.$slots, "tooltip-after", S(x({ ...ni.value })), void 0, !0)]),
2335
+ "tooltip-before": j(() => [O(t.$slots, "tooltip-before", C(S({ ...oi.value })), void 0, !0)]),
2336
+ tooltip: j(() => [O(t.$slots, "tooltip", C(S({ ...oi.value })), void 0, !0)]),
2337
+ "tooltip-after": j(() => [O(t.$slots, "tooltip-after", C(S({ ...oi.value })), void 0, !0)]),
2326
2338
  _: 3
2327
2339
  }, 8, [
2328
2340
  "teleportTo",
@@ -2348,32 +2360,32 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
2348
2360
  "isA11yMode",
2349
2361
  "a11yPosition"
2350
2362
  ]),
2351
- An.value && I.value.userOptions.buttons.table ? (w(), _(Ye(Oi.value.component), We({ key: 9 }, Oi.value.props, {
2363
+ An.value && I.value.userOptions.buttons.table ? (T(), v(Ye(ji.value.component), We({ key: 9 }, ji.value.props, {
2352
2364
  ref_key: "tableUnit",
2353
- ref: Wn,
2354
- onClose: ki
2365
+ ref: Gn,
2366
+ onClose: Mi
2355
2367
  }), Be({
2356
- content: A(() => [(w(), _(k(xn), {
2357
- key: `table_${Vn.value}`,
2358
- colNames: pi.value.colNames,
2359
- head: pi.value.head,
2360
- body: pi.value.body,
2361
- config: pi.value.config,
2362
- title: I.value.table.useDialog ? "" : Oi.value.title,
2368
+ content: j(() => [(T(), v(A(xn), {
2369
+ key: `table_${Hn.value}`,
2370
+ colNames: gi.value.colNames,
2371
+ head: gi.value.head,
2372
+ body: gi.value.body,
2373
+ config: gi.value.config,
2374
+ title: I.value.table.useDialog ? "" : ji.value.title,
2363
2375
  withCloseButton: !I.value.table.useDialog,
2364
- isCursorPointer: cr.value,
2365
- onClose: ki
2376
+ isCursorPointer: lr.value,
2377
+ onClose: Mi
2366
2378
  }, {
2367
- th: A(({ th: e }) => [e === "__SUM__" ? (w(), y("div", gn, [He(k(yn), {
2379
+ th: j(({ th: e }) => [e === "__SUM__" ? (T(), b("div", gn, [He(A(yn), {
2368
2380
  name: "sigma",
2369
- stroke: pi.value.config.th.color,
2381
+ stroke: gi.value.config.th.color,
2370
2382
  size: 16
2371
- }, null, 8, ["stroke"])])) : (w(), y("div", _n, O(e), 1))]),
2372
- td: A(({ td: e }) => [Ve(O(e.name ? e.name : isNaN(Number(e)) ? e.includes("%") ? e : k(m)(L.value.percentage.formatter, e, k(d)({
2383
+ }, null, 8, ["stroke"])])) : (T(), b("div", _n, k(e), 1))]),
2384
+ td: j(({ td: e }) => [Ve(k(e.name ? e.name : isNaN(Number(e)) ? e.includes("%") ? e : A(m)(L.value.percentage.formatter, e, A(d)({
2373
2385
  v: e,
2374
2386
  s: "%",
2375
2387
  r: L.value.percentage.rounding
2376
- })) : k(m)(L.value.value.formatter, e, k(d)({
2388
+ })) : A(m)(L.value.value.formatter, e, A(d)({
2377
2389
  p: L.value.dataLabels.prefix,
2378
2390
  v: e,
2379
2391
  s: L.value.dataLabels.suffix,
@@ -2392,24 +2404,24 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
2392
2404
  _: 2
2393
2405
  }, [I.value.table.useDialog ? {
2394
2406
  name: "title",
2395
- fn: A(() => [Ve(O(Oi.value.title), 1)]),
2407
+ fn: j(() => [Ve(k(ji.value.title), 1)]),
2396
2408
  key: "0"
2397
2409
  } : void 0, I.value.table.useDialog ? {
2398
2410
  name: "actions",
2399
- fn: A(() => [b("button", {
2411
+ fn: j(() => [x("button", {
2400
2412
  tabindex: "0",
2401
2413
  class: "vue-ui-user-options-button",
2402
- onClick: n[4] ||= (e) => fi(I.value.userOptions.callbacks.csv),
2403
- style: C({ cursor: cr.value ? "pointer" : "default" })
2404
- }, [He(k(yn), {
2414
+ onClick: n[4] ||= (e) => hi(I.value.userOptions.callbacks.csv),
2415
+ style: w({ cursor: lr.value ? "pointer" : "default" })
2416
+ }, [He(A(yn), {
2405
2417
  name: "fileCsv",
2406
- stroke: Oi.value.props.color
2418
+ stroke: ji.value.props.color
2407
2419
  }, null, 8, ["stroke"])], 4)]),
2408
2420
  key: "1"
2409
- } : void 0]), 1040)) : v("", !0),
2410
- D(t.$slots, "skeleton", {}, () => [k(ur) ? (w(), _(be, { key: 0 })) : v("", !0)], !0)
2421
+ } : void 0]), 1040)) : y("", !0),
2422
+ O(t.$slots, "skeleton", {}, () => [A(dr) ? (T(), v(be, { key: 0 })) : y("", !0)], !0)
2411
2423
  ], 46, it));
2412
2424
  }
2413
- }, [["__scopeId", "data-v-b07d3e09"]]);
2425
+ }, [["__scopeId", "data-v-f5725be5"]]);
2414
2426
  //#endregion
2415
2427
  export { rt as n, vn as t };