vue-data-ui 3.28.8 → 3.28.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 (211) hide show
  1. package/dist/{PackageVersion-Bczw6rsP.js → PackageVersion-DKSNC-YP.js} +1 -1
  2. package/dist/StackChartTable-CZteRybF.js +1 -0
  3. package/dist/UserOptions-B9EyfU9n.js +1 -0
  4. package/dist/{XyAnalysisOptions-U4UJx51x.js → XyAnalysisOptions-CV22ga_a.js} +1 -1
  5. package/dist/components/vue-ui-3d-bar.js +1 -1
  6. package/dist/components/vue-ui-accordion.js +1 -1
  7. package/dist/components/vue-ui-age-pyramid.js +1 -1
  8. package/dist/components/vue-ui-annotator.js +1 -1
  9. package/dist/components/vue-ui-bullet.js +1 -1
  10. package/dist/components/vue-ui-bump.js +1 -1
  11. package/dist/components/vue-ui-candlestick.js +1 -1
  12. package/dist/components/vue-ui-carousel-table.js +1 -1
  13. package/dist/components/vue-ui-chestnut.js +1 -1
  14. package/dist/components/vue-ui-chord.js +1 -1
  15. package/dist/components/vue-ui-circle-pack.js +1 -1
  16. package/dist/components/vue-ui-cursor.js +1 -1
  17. package/dist/components/vue-ui-dag.js +1 -1
  18. package/dist/components/vue-ui-dashboard.js +1 -1
  19. package/dist/components/vue-ui-digits.js +1 -1
  20. package/dist/components/vue-ui-donut-evolution.js +1 -1
  21. package/dist/components/vue-ui-donut.js +1 -1
  22. package/dist/components/vue-ui-dumbbell.js +1 -1
  23. package/dist/components/vue-ui-flow.js +1 -1
  24. package/dist/components/vue-ui-funnel.js +1 -1
  25. package/dist/components/vue-ui-galaxy.js +1 -1
  26. package/dist/components/vue-ui-gauge.js +1 -1
  27. package/dist/components/vue-ui-geo.js +1 -1
  28. package/dist/components/vue-ui-gizmo.js +1 -1
  29. package/dist/components/vue-ui-graph.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-mini-loader.js +1 -1
  37. package/dist/components/vue-ui-molecule.js +1 -1
  38. package/dist/components/vue-ui-mood-radar.js +1 -1
  39. package/dist/components/vue-ui-nested-donuts.js +1 -1
  40. package/dist/components/vue-ui-onion.js +1 -1
  41. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  42. package/dist/components/vue-ui-quadrant.js +1 -1
  43. package/dist/components/vue-ui-quick-chart.js +1 -1
  44. package/dist/components/vue-ui-radar.js +1 -1
  45. package/dist/components/vue-ui-rating.js +1 -1
  46. package/dist/components/vue-ui-relation-circle.js +1 -1
  47. package/dist/components/vue-ui-ridgeline.js +1 -1
  48. package/dist/components/vue-ui-rings.js +1 -1
  49. package/dist/components/vue-ui-scatter.js +1 -1
  50. package/dist/components/vue-ui-skeleton.js +1 -1
  51. package/dist/components/vue-ui-smiley.js +1 -1
  52. package/dist/components/vue-ui-spark-trend.js +1 -1
  53. package/dist/components/vue-ui-sparkbar.js +1 -1
  54. package/dist/components/vue-ui-sparkgauge.js +1 -1
  55. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  56. package/dist/components/vue-ui-sparkline.js +1 -1
  57. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  58. package/dist/components/vue-ui-stackbar.js +1 -1
  59. package/dist/components/vue-ui-stackline.js +1 -1
  60. package/dist/components/vue-ui-strip-plot.js +1 -1
  61. package/dist/components/vue-ui-table-heatmap.js +1 -1
  62. package/dist/components/vue-ui-table-sparkline.js +1 -1
  63. package/dist/components/vue-ui-table.js +1 -1
  64. package/dist/components/vue-ui-thermometer.js +1 -1
  65. package/dist/components/vue-ui-timer.js +1 -1
  66. package/dist/components/vue-ui-tiremarks.js +1 -1
  67. package/dist/components/vue-ui-treemap.js +1 -1
  68. package/dist/components/vue-ui-vertical-bar.js +1 -1
  69. package/dist/components/vue-ui-waffle.js +1 -1
  70. package/dist/components/vue-ui-wheel.js +1 -1
  71. package/dist/components/vue-ui-word-cloud.js +1 -1
  72. package/dist/components/vue-ui-world.js +1 -1
  73. package/dist/components/vue-ui-xy-canvas.js +1 -1
  74. package/dist/components/vue-ui-xy.js +1 -1
  75. package/dist/package-CXaebsLV.js +1 -0
  76. package/dist/{render-common-DY4sNXDz.js → render-common-Cy1X2PzP.js} +1 -1
  77. package/dist/ssr/vue-ui-donut.js +1 -1
  78. package/dist/ssr/vue-ui-xy.js +1 -1
  79. package/dist/ssr.js +1 -1
  80. package/dist/style.css +1 -1
  81. package/dist/{useConfig-By3Vb5kz.js → useConfig-C3FbHv4N.js} +1 -1
  82. package/dist/{useObjectBindings-0vvvimYP.js → useObjectBindings-C_70Czuj.js} +1 -1
  83. package/dist/{userOptionsSlots-DYuo-E5m.js → userOptionsSlots-CWtXN5Q6.js} +1 -1
  84. package/dist/utils.js +1 -1
  85. package/dist/vue-data-ui-O-w339Ac.js +1 -0
  86. package/dist/vue-data-ui.js +1 -1
  87. package/dist/vue-ui-3d-bar-CcFFARyq.js +19 -0
  88. package/dist/{vue-ui-accordion-DFxSW8ET.js → vue-ui-accordion-E8TJfFeK.js} +1 -1
  89. package/dist/vue-ui-age-pyramid-Di6fKV6f.js +1 -0
  90. package/dist/vue-ui-annotator-sBGtsgcb.js +331 -0
  91. package/dist/vue-ui-bullet-BZLa1xj7.js +34 -0
  92. package/dist/vue-ui-bump-BSdpAH0l.js +8 -0
  93. package/dist/vue-ui-candlestick-BKZASgq9.js +22 -0
  94. package/dist/vue-ui-carousel-table-B20E2K8A.js +1 -0
  95. package/dist/vue-ui-chestnut-DavvzmiQ.js +1 -0
  96. package/dist/vue-ui-chord-D2Hn54i7.js +21 -0
  97. package/dist/vue-ui-circle-pack-BKaS-zWo.js +13 -0
  98. package/dist/{vue-ui-cursor-DRQc_V2R.js → vue-ui-cursor-BUOHKNmb.js} +1 -1
  99. package/dist/vue-ui-dag-SLYPxbGo.js +9 -0
  100. package/dist/vue-ui-dashboard-Bgt7VLv0.js +1 -0
  101. package/dist/{vue-ui-digits-CfdB0vaP.js → vue-ui-digits-DbxT72mM.js} +1 -1
  102. package/dist/{vue-ui-donut-Dy4j7B9b.js → vue-ui-donut-8ZWyXEVs.js} +1 -1
  103. package/dist/vue-ui-donut-DBcB8Ym1.js +47 -0
  104. package/dist/vue-ui-donut-evolution-D3lo74Ce.js +2 -0
  105. package/dist/vue-ui-dumbbell-CdarkL8Z.js +9 -0
  106. package/dist/vue-ui-flow-B0dYxGWT.js +3 -0
  107. package/dist/vue-ui-funnel-C0Cl9jMd.js +1 -0
  108. package/dist/vue-ui-galaxy-C_UWOQn4.js +1 -0
  109. package/dist/vue-ui-gauge-B94ToHlW.js +1 -0
  110. package/dist/vue-ui-geo-V-JmJgKS.js +1 -0
  111. package/dist/{vue-ui-gizmo-D0QjzIGt.js → vue-ui-gizmo-BvVDEnNu.js} +1 -1
  112. package/dist/{vue-ui-graph-DScVnTzu.js → vue-ui-graph-9YSKwYhC.js} +1 -1
  113. package/dist/vue-ui-heatmap-DWtbocz5.js +1 -0
  114. package/dist/vue-ui-hill-BH_lYm5G.js +1 -0
  115. package/dist/vue-ui-history-plot-DkWvta0h.js +2 -0
  116. package/dist/vue-ui-horizontal-bar-DbJ1DFjG.js +4 -0
  117. package/dist/{vue-ui-kpi-CF7pAl08.js → vue-ui-kpi-BxW6DctE.js} +1 -1
  118. package/dist/{vue-ui-label-W0oz08pp.js → vue-ui-label-rxuzmeyD.js} +1 -1
  119. package/dist/{vue-ui-mini-loader-OLYDdN3T.js → vue-ui-mini-loader-DpAYrTYb.js} +1 -1
  120. package/dist/vue-ui-molecule-BrG8K2Tm.js +1 -0
  121. package/dist/vue-ui-mood-radar-DEpFpfiW.js +1 -0
  122. package/dist/vue-ui-nested-donuts-CZetOzaq.js +19 -0
  123. package/dist/vue-ui-onion-DvyAxUSj.js +5 -0
  124. package/dist/vue-ui-parallel-coordinate-plot-Bdakcv3w.js +9 -0
  125. package/dist/vue-ui-quadrant-CWZeQjHE.js +2 -0
  126. package/dist/vue-ui-quick-chart-BULxPrPs.js +16 -0
  127. package/dist/vue-ui-radar-CJ_5G0QP.js +1 -0
  128. package/dist/{vue-ui-rating-B9HeTCLa.js → vue-ui-rating-QcJoab0i.js} +1 -1
  129. package/dist/vue-ui-relation-circle-Vetly6f0.js +1 -0
  130. package/dist/vue-ui-ridgeline-5a87TiQf.js +2 -0
  131. package/dist/vue-ui-rings-CKuFf5vA.js +1 -0
  132. package/dist/vue-ui-scatter-C2hNg3ED.js +9 -0
  133. package/dist/{vue-ui-skeleton-an0peDis.js → vue-ui-skeleton-SlYTmirP.js} +1 -1
  134. package/dist/{vue-ui-smiley-Cht1imV-.js → vue-ui-smiley-DZVFOGfv.js} +1 -1
  135. package/dist/{vue-ui-spark-trend-DCP7blHB.js → vue-ui-spark-trend-D155vscB.js} +1 -1
  136. package/dist/{vue-ui-sparkbar-DT3sDgda.js → vue-ui-sparkbar-DFShNanl.js} +1 -1
  137. package/dist/{vue-ui-sparkgauge-AQt2L5dI.js → vue-ui-sparkgauge-CFj0wLj5.js} +1 -1
  138. package/dist/{vue-ui-sparkhistogram-a_jc2Dv2.js → vue-ui-sparkhistogram-DwDcqqEj.js} +1 -1
  139. package/dist/{vue-ui-sparkline-D2-KcHAU.js → vue-ui-sparkline-kxl5wQGY.js} +1 -1
  140. package/dist/{vue-ui-sparkstackbar-CBI4S5cu.js → vue-ui-sparkstackbar-CHjaAWVJ.js} +1 -1
  141. package/dist/vue-ui-stackbar-BrtUg-Mb.js +29 -0
  142. package/dist/vue-ui-stackline-CU2UkEJU.js +39 -0
  143. package/dist/vue-ui-strip-plot-BmEpoIoU.js +2 -0
  144. package/dist/vue-ui-table-Ddg209i0.js +14 -0
  145. package/dist/vue-ui-table-heatmap-B8AdX6Nq.js +1 -0
  146. package/dist/{vue-ui-table-sparkline-By319cB8.js → vue-ui-table-sparkline-B62l_ODH.js} +1 -1
  147. package/dist/vue-ui-thermometer-CvxyfTWE.js +1 -0
  148. package/dist/{vue-ui-timer-C6Pevf4N.js → vue-ui-timer-BkNtid9A.js} +2 -2
  149. package/dist/vue-ui-tiremarks-BE0nbuHp.js +1 -0
  150. package/dist/vue-ui-treemap-B9wAoh5g.js +1 -0
  151. package/dist/vue-ui-waffle-DqeBiuY3.js +1 -0
  152. package/dist/vue-ui-wheel---NZaS40.js +1 -0
  153. package/dist/vue-ui-word-cloud-DRFGFVmf.js +4 -0
  154. package/dist/vue-ui-world-D5gKzypf.js +19 -0
  155. package/dist/{vue-ui-xy-Df5gIADT.js → vue-ui-xy-Caj8jz6D.js} +1 -1
  156. package/dist/vue-ui-xy-CcVIXfL_.js +27 -0
  157. package/dist/vue-ui-xy-canvas-BceSG3AO.js +9 -0
  158. package/package.json +1 -1
  159. package/dist/UserOptions-DW84OKKr.js +0 -1
  160. package/dist/package-CNWVs68D.js +0 -1
  161. package/dist/vue-data-ui-BWqplouA.js +0 -1
  162. package/dist/vue-ui-3d-bar-DmRrbXjK.js +0 -19
  163. package/dist/vue-ui-age-pyramid-CJJIp5gY.js +0 -1
  164. package/dist/vue-ui-annotator-BnR2XnsL.js +0 -331
  165. package/dist/vue-ui-bullet-Br7H7FSM.js +0 -34
  166. package/dist/vue-ui-bump-DCDHNvWE.js +0 -8
  167. package/dist/vue-ui-candlestick-C_swW8gM.js +0 -22
  168. package/dist/vue-ui-carousel-table-BP_yVdDm.js +0 -1
  169. package/dist/vue-ui-chestnut-CIGNqBsT.js +0 -1
  170. package/dist/vue-ui-chord-DZRFBkRJ.js +0 -21
  171. package/dist/vue-ui-circle-pack-CtdPeMsY.js +0 -13
  172. package/dist/vue-ui-dag-Cj0CcntI.js +0 -9
  173. package/dist/vue-ui-dashboard-HyzHqAtX.js +0 -1
  174. package/dist/vue-ui-donut-Cv-bYyBN.js +0 -47
  175. package/dist/vue-ui-donut-evolution-DL112anx.js +0 -2
  176. package/dist/vue-ui-dumbbell-owG24VsQ.js +0 -9
  177. package/dist/vue-ui-flow-BMNIydqI.js +0 -3
  178. package/dist/vue-ui-funnel-BsVS3vuI.js +0 -1
  179. package/dist/vue-ui-galaxy-B8HgdBjc.js +0 -1
  180. package/dist/vue-ui-gauge-B1A_NFY6.js +0 -1
  181. package/dist/vue-ui-geo-_TG4jaV9.js +0 -1
  182. package/dist/vue-ui-heatmap-BbQseEbM.js +0 -1
  183. package/dist/vue-ui-hill-D3V84h_t.js +0 -1
  184. package/dist/vue-ui-history-plot-Bx4WYG6U.js +0 -2
  185. package/dist/vue-ui-horizontal-bar-Do0HJy4f.js +0 -4
  186. package/dist/vue-ui-molecule-bAMGCA2Y.js +0 -1
  187. package/dist/vue-ui-mood-radar-CFpgxjuR.js +0 -1
  188. package/dist/vue-ui-nested-donuts-CWY26iKX.js +0 -19
  189. package/dist/vue-ui-onion-DsBUqL_c.js +0 -5
  190. package/dist/vue-ui-parallel-coordinate-plot-BF3gO85b.js +0 -9
  191. package/dist/vue-ui-quadrant-BkNG2LGm.js +0 -2
  192. package/dist/vue-ui-quick-chart-CYxvgVpD.js +0 -17
  193. package/dist/vue-ui-radar-0H8CiLmc.js +0 -1
  194. package/dist/vue-ui-relation-circle-B0BM4xf8.js +0 -1
  195. package/dist/vue-ui-ridgeline-D-fDuE3y.js +0 -2
  196. package/dist/vue-ui-rings-UtlBiaZZ.js +0 -1
  197. package/dist/vue-ui-scatter-CduaARRt.js +0 -9
  198. package/dist/vue-ui-stackbar-DS_31-a3.js +0 -29
  199. package/dist/vue-ui-stackline-CuxohB0U.js +0 -39
  200. package/dist/vue-ui-strip-plot-bYGhsPA5.js +0 -2
  201. package/dist/vue-ui-table-heatmap-D6gpmHg8.js +0 -1
  202. package/dist/vue-ui-table-lzolsJ_n.js +0 -14
  203. package/dist/vue-ui-thermometer-B3Uv3aWc.js +0 -1
  204. package/dist/vue-ui-tiremarks-DeNdCFVD.js +0 -1
  205. package/dist/vue-ui-treemap-Ck9_llHA.js +0 -1
  206. package/dist/vue-ui-waffle-BW2SacnV.js +0 -1
  207. package/dist/vue-ui-wheel-BXDhx5bf.js +0 -1
  208. package/dist/vue-ui-word-cloud-DKPtoruY.js +0 -4
  209. package/dist/vue-ui-world-D9vpDbN7.js +0 -19
  210. package/dist/vue-ui-xy-CMckdUft.js +0 -27
  211. package/dist/vue-ui-xy-canvas-CBrKi3nN.js +0 -9
@@ -0,0 +1,19 @@
1
+ import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,r as n,t as r}from"./annotationSlots-OLiW25XN.js";import{t as i}from"./useConfig-C3FbHv4N.js";import{$ as a,D as o,Ft as s,Ht as c,It as l,Jt as u,Q as d,S as f,X as p,at as m,b as h,f as g,h as ee,i as te,in as ne,nt as re,p as ie,t as ae,w as oe,yt as se,zt as ce}from"./lib-rPeBMZrn.js";import{n as le,t as ue}from"./BaseScanner-8NdoBs7B.js";import{n as de}from"./useHints-C-TwxM0Y.js";import{t as fe}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as pe}from"./resolveChartConfig-CIhClE5R.js";import{t as me}from"./img-D4RQwASc.js";import{n as he}from"./Title-BliHuXfT.js";import{t as ge}from"./useChartExport-BZts4KFb.js";import{n as _e,t as ve}from"./tableIntegration-CNoJ1CIY.js";import{n as ye,r as be,t as xe}from"./userOptionsSlots-CWtXN5Q6.js";import{t as Se}from"./usePrinter-DVf3YcG5.js";import{c as Ce}from"./canvas-lib-22VpOI4_.js";import{t as we}from"./useResponsive-CENUxfEL.js";import{t as _}from"./DefGrad-DKMq1REY.js";import{t as Te}from"./A11yDataTable-DWNlWXzs.js";import{t as Ee}from"./useUserOptionState-CXlFnwPv.js";import{t as De}from"./useChartAccessibility-DOMuYJfm.js";import{t as Oe}from"./vue_ui_3d_bar-DmAve5Ri.js";import{Fragment as v,computed as y,createBlock as b,createCommentVNode as x,createElementBlock as S,createElementVNode as C,createSlots as ke,createTextVNode as Ae,createVNode as w,defineAsyncComponent as T,guardReactiveProps as je,mergeProps as Me,nextTick as Ne,normalizeClass as Pe,normalizeProps as Fe,normalizeStyle as E,onMounted as Ie,openBlock as D,ref as O,renderList as k,renderSlot as A,resolveDynamicComponent as Le,toDisplayString as j,toRefs as Re,unref as M,watch as ze,withCtx as N,withKeys as Be,withModifiers as Ve}from"vue";var He=/* @__PURE__ */ e({default:()=>ln}),Ue=[`id`],We=[`id`],Ge={"aria-live":`polite`,class:`sr-only`},Ke={style:{position:`relative`}},qe=[`xmlns`,`viewBox`,`aria-describedby`],Je=[`width`,`height`],Ye={key:1},Xe=[`x`,`y`,`font-size`,`font-weight`,`fill`],Ze=[`x`,`y`],Qe=[`cx`,`cy`,`stroke`,`opacity`],$e=[`d`,`stroke`],et=[`d`,`stroke`],tt={key:4},nt={key:0},rt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],it=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],at=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],ot=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],st={key:1},ct=[`d`,`stroke`,`stroke-width`,`fill`],lt=[`d`,`stroke`,`stroke-width`,`fill`],ut=[`d`,`stroke`,`stroke-width`,`fill`],dt={key:2},ft=[`aria-label`],pt=[`d`,`fill`,`onMouseenter`,`onClick`,`onMouseout`],mt=[`d`,`fill`,`onMouseenter`,`onClick`,`onMouseout`],ht=[`d`,`fill`,`onMouseenter`,`onClick`,`onMouseout`],gt=[`d`,`onMouseenter`,`onClick`,`onMouseout`],_t=[`d`],vt=[`d`,`stroke`],yt=[`onClick`],bt=[`stroke`,`d`],xt=[`cx`,`cy`,`fill`,`stroke`],St=[`x`,`y`,`width`,`height`],Ct=[`x`,`y`,`width`,`height`],wt={key:3},Tt=[`d`,`stroke`],Et=[`d`,`fill`,`stroke`],Dt={key:0},Ot=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],kt=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],At={key:4},jt=[`d`,`fill`,`stroke`],Mt={key:5},Nt={key:0},Pt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],Ft=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],It=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],Lt=[`stroke-dasharray`,`d`,`stroke`,`stroke-width`],Rt=[`d`,`stroke`,`stroke-width`,`fill`],zt=[`d`,`stroke`,`stroke-width`,`fill`],Bt=[`d`],Vt={key:1},Ht=[`aria-label`],Ut=[`onMouseenter`,`onClick`,`onMouseout`,`d`,`fill`],Wt=[`onMouseenter`,`onClick`,`onMouseout`,`d`],Gt=[`onMouseenter`,`onClick`,`onMouseout`,`d`,`fill`],Kt=[`onClick`],qt=[`stroke`,`d`],Jt=[`cx`,`cy`,`fill`,`stroke`],Yt=[`x`,`y`,`width`,`height`],Xt=[`x`,`y`,`width`,`height`],Zt={key:3},Qt=[`d`,`stroke`],$t=[`d`,`fill`,`stroke`],en={key:0},tn=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],nn=[`text-anchor`,`x`,`y`,`fill`,`font-size`,`font-weight`],rn={key:4},an=[`d`,`fill`,`stroke`],on={key:4,class:`vue-data-ui-watermark`},sn={key:0},cn={key:1},ln=/*#__PURE__*/ fe({__name:`vue-ui-3d-bar`,props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},emits:[`selectDatapoint`,`copyAlt`],setup(e,{expose:fe,emit:He}){let ln=T(()=>import(`./BaseIcon-CoY0vuL3.js`).then(e=>e.n)),un=T(()=>import(`./vue-ui-accordion-E8TJfFeK.js`).then(e=>e.n)),dn=T(()=>import(`./DataTable-Dof6yhO7.js`)),fn=T(()=>import(`./PenAndPaper-DoNTA-SV.js`).then(e=>e.t)),pn=T(()=>import(`./UserOptions-B9EyfU9n.js`).then(e=>e.n)),mn=T(()=>import(`./PackageVersion-DKSNC-YP.js`).then(e=>e.t)),hn=T(()=>import(`./BaseDraggableDialog-BK7dj9O6.js`).then(e=>e.n)),{vue_ui_3d_bar:gn}=i(),P=e,_n=He,vn=y(()=>!!P.dataset&&Object.keys(P.dataset).length),F=O(p()),I=O(null),L=O(!1),yn=O(0),bn=O(0),xn=O(null),Sn=O(null),Cn=O(null),wn=O(null),R=O(!1),Tn=O(null),En=O(null),z=O(null),B=O(``),V=O(Fn()),Dn=y(()=>V.value.style),H=y(()=>V.value.style.chart),U=y(()=>V.value.userOptions);de({config:()=>V.value,dataset:()=>P.dataset,component:`VueUi3dBar`,rules:[{test:e=>e?.series&&e.series.length>8,message:[`👀 The number of series is > 8. Consider:`,``,`▶️ Grouping small values dynamically into a single "Other" series.`,``,`▶️ Using filters to let users choose a maximum number of series to display.`,``,`▶️ Using VueUiHorizontalBar instead to make the dataset breakdown easier to read.`]},{test:e=>e?.series&&e.series.some(e=>e?.breakdown&&e.breakdown.length>6),message:[`👀 Some donut breakdowns have > 6 data points. Consider:`,``,`▶️ Grouping small values dynamically into a single "Other" data point.`]}]});let On=y(()=>V.value.userOptions.useCursorPointer),kn=y(()=>ne({defaultConfig:{customPalette:[`#808080`,`#ADADAD`,`#DBDBDB`],userOptions:{show:!1},table:{show:!1},style:{chart:{backgroundColor:`#99999930`,color:`#6A6A6A`,bar:{color:`#ADADAD`,stroke:`#6A6A6A`},box:{stroke:`#6A6A6A`}}}},userConfig:V.value.skeletonConfig??{}})),{loading:An,FINAL_DATASET:W}=le({...Re(P),FINAL_CONFIG:V,prepareConfig:Fn,callback:()=>{Promise.resolve().then(async()=>{await Ne(),Wn()})},skeletonDataset:P.config?.skeletonDataset??{series:[{name:`_`,value:21,breakdown:[{name:`_`,value:13},{name:`_`,value:8}]},{name:`_`,value:13,breakdown:[{name:`_`,value:8},{name:`_`,value:5}]},{name:`_`,value:8,breakdown:[{name:`_`,value:5},{name:`_`,value:3}]}]},skeletonConfig:ne({defaultConfig:V.value,userConfig:kn.value})}),{userOptionsVisible:jn,setUserOptionsVisibility:Mn,keepUserOptionState:Nn}=Ee({config:V.value}),{svgRef:Pn}=De({config:V.value.style.chart.title});function Fn(){return pe(P.config,gn,Oe)}ze(()=>P.config,e=>{An.value||(V.value=Fn()),jn.value=!V.value.userOptions.showOnChartHover,qn(),yn.value+=1,bn.value+=1,G.value.showTable=V.value.table.show},{deep:!0});let{isPrinting:In,isImaging:Ln,generatePdf:Rn,generateImage:zn}=Se({elementId:`3d_bar_${F.value}`,fileName:H.value.title.text||`vue-ui-3d-bar`,options:V.value.userOptions.print}),Bn=y(()=>oe(V.value.customPalette)),G=O({showTable:V.value.table.show});ze(V,()=>{G.value={showTable:V.value.table.show}},{immediate:!0});let K=y(()=>W.value.series&&W.value.series.length),Vn=O(H.value.box.dimensions.width*(K.value?2:1)),Hn=O(H.value.box.dimensions.height),q=y(()=>({height:Hn.value,width:Vn.value,absoluteWidth:Vn.value,top:H.value.box.dimensions.top,bottom:H.value.box.dimensions.bottom,left:H.value.box.dimensions.left,right:H.value.box.dimensions.right,perspective:H.value.box.dimensions.perspective})),J=y(()=>{if(K.value){let e=W.value.series.map(e=>e.value||0).reduce((e,t)=>e+t,0),t=W.value.series.map((t,n)=>({...t,seriesIndex:n,id:p(),proportion:(t.value||0)/e,color:f(t.color)||Bn.value[n]||c[n]||c[n%c.length],breakdown:t.breakdown?t.breakdown.sort((e,t)=>t.value-e.value):null})).sort((e,t)=>t.value-e.value),n=[],r=0;for(let e=0;e<t.length;e+=1)n.push({...t[e],fill:Yn(r,t[e].proportion,t[e].breakdown,t[e].color)}),r+=t[e].proportion;return n}return null}),Y=y(()=>{let e=q.value.width/2,t=q.value;return{right:`M${e},${t.top} ${t.width-t.right}, ${t.top+t.perspective} ${t.width-t.right},${t.height-t.bottom-t.perspective} ${e},${t.height-t.bottom}`,left:`M${e},${t.top} ${t.left},${t.top+t.perspective} ${t.left},${t.height-t.bottom-t.perspective} ${e},${t.height-t.bottom}`,side:`M${e},${t.height-t.bottom} ${e},${t.top+t.perspective*2}`,topSides:`M${t.left},${t.top+t.perspective} ${e},${t.top+t.perspective*2} ${t.width-t.right},${t.top+t.perspective}`,tubeTop:`M${t.left},${t.top+t.perspective} C ${t.left},${t.top-t.perspective/3} ${t.width-t.right},${t.top-t.perspective/3} ${t.width-t.right},${t.top+t.perspective} C ${t.width-t.right},${t.top+t.perspective*2.3} ${t.left},${t.top+t.perspective*2.3} ${t.left},${t.top+t.perspective}`,tubeLeft:`M${t.left},${t.top+t.perspective} ${t.left},${t.height-t.bottom-t.perspective}`,tubeRight:`M${t.width-t.right},${t.top+t.perspective} ${t.width-t.right},${t.height-t.bottom-t.perspective}`,tubeBottom:`M${t.width-t.right},${t.height-t.bottom-t.perspective} C ${t.width-t.right},${t.height} ${t.left},${t.height} ${t.left},${t.height-t.bottom-t.perspective}`}}),Un=O(H.value.animation.use?0:W.value.percentage);function Wn(){let e=0,t=H.value.animation.speed,n=.005*H.value.animation.acceleration;function r(){Un.value+=t+e,e+=n,Un.value<W.value.percentage?requestAnimationFrame(r):Un.value=W.value.percentage}H.value.animation.use&&(Un.value=0,r())}Ie(()=>{qn(),Wn()});let Gn=y(()=>V.value.debug);function Kn(){Gn.value&&(ce(P.dataset)?m({componentName:`VueUi3dBar`,type:`dataset`,debug:Gn.value}):P.dataset.series?P.dataset.series.forEach((e,t)=>{se({datasetObject:e,requiredAttributes:[`name`,`value`]}).forEach(e=>{m({componentName:`VueUi3dBar`,type:`datasetSerieAttribute`,property:e,index:t,debug:Gn.value})}),e.breakdown&&e.breakdown.forEach((e,n)=>{se({datasetObject:e,requiredAttributes:[`name`,`value`]}).forEach(e=>{m({componentName:`VueUi3dBar`,type:`datasetSerieAttribute`,property:e,index:`${t} - ${n}`,debug:Gn.value})})})}):se({datasetObject:P.dataset,requiredAttributes:[`percentage`]}).forEach(e=>{m({componentName:`VueUi3dBar`,type:`datasetAttribute`,property:e,debug:Gn.value})}))}function qn(){if(Kn(),V.value.responsive){let e=Ce(()=>{let{width:e,height:t}=we({chart:I.value,title:H.value.title.text?xn.value:null,source:wn.value});requestAnimationFrame(()=>{Hn.value=t-12,Vn.value=e})});Sn.value&&(Cn.value&&Sn.value.unobserve(Cn.value),Sn.value.disconnect()),Sn.value=new ResizeObserver(e),Cn.value=I.value.parentNode,Sn.value.observe(Cn.value)}}let Jn=y(()=>q.value.width/4);function Yn(e,t,n,r){let i=q.value.height-q.value.bottom-q.value.top-q.value.perspective*2,{width:a,height:o,bottom:c,right:u,left:d,perspective:f}=q.value,p=K.value?a/4:a/2,m=p*2+d,h=c+i*e,g=o-h-f-i*t/2,ee=g>q.value.height/2?`top`:`bottom`,te=o*.25,ne=!!n,re=null,ie=null;return ne&&(n=n.map((e,t)=>({...e,value:e.value||0,color:s(r,t/n.length)})),re=l({series:n},a/2+a/5,ee===`top`?g-te:g+te,a/10,a/10,1.99999,2,1,360,105.25,a/20),ie=l({series:n},a-m+a/14,o-h-f-i*t/2,a/40,a/40,1.99999,2,1,360,105.25,a/40)),{donut:re,miniDonut:ie,donutR:a/20,CENTER_X:p,sidePointer:{x:a-m,x2:a-m+a/14,xText:a-m+a/9,y:o-h-f-i*t/2,topY:o-h-f-i*t,height:i*t},apexBottom:{y:o-h,x:p},apexTop:{y:o-h-i*t,x:p},right:`M${p},${o-h} ${p},${o-h-i*t} ${a-m},${o-h-f-i*t} ${a-m},${o-h-f}Z`,left:`M${p},${o-h} ${p},${o-h-i*t} ${d}, ${o-h-f-i*t} ${d},${o-h-f}Z`,liningTop:`M${d},${o-h-f-i*t} ${p},${o-h-i*t} ${a-m},${o-h-f-i*t}`,liningTopShade:`M${d},${o-h-f-i*t-.5} ${p},${o-h-i*t-.5} ${a-m},${o-h-f-i*t-.5}`,top:`M${p},${o-h-i*t} ${d},${o-h-f-i*t} ${p},${o-h-f*2-i*t} ${a-m},${o-h-f-i*t} Z`,tubeTop:`M${d},${o-h-i*t-f} C ${d},${o-h-i*t-f*2.5} ${a-m},${o-h-i*t-f*2.5} ${a-m},${o-h-i*t-f} C ${a-m},${o-h-i*t+f/2} ${d},${o-h-i*t+f/2} ${d},${o-h-i*t-f}`,bottomTubeTop:`M ${a-m-.5},${o-h-f} C ${a-m-.5},${o-h+f/2} ${d},${o-h+f/2} ${d+.5},${o-h-f}`,tubeBody:`M
2
+ ${d},${o-h-i*t-f}
3
+ C ${d},${o-h-i*t+f/2}
4
+ ${a-m},${o-h-i*t+f/2}
5
+ ${a-m},${o-h-i*t-f}
6
+ L${a-m},${o-h-f}
7
+ C
8
+ ${a-m},${o-h+f/2}
9
+ ${d},${o-h+f/2}
10
+ ${d},${o-h-f}Z`}}let Xn=y(()=>{let e=h(Un.value/100),t=q.value.height-q.value.bottom-q.value.top-q.value.perspective*2,{width:n,height:r,bottom:i,right:a,left:o,perspective:s}=q.value,c=K.value?n/4:n/2,l=K.value?c*2+o:a,u=i+t*0;return{right:`M${c},${r-u} ${c},${r-u-t*e} ${n-l},${r-u-s-t*e} ${n-l},${r-u-s}Z`,left:`M${c},${r-u} ${c},${r-u-t*e} ${o}, ${r-u-s-t*e} ${o},${r-u-s}Z`,top:`M${c},${r-u-t*e} ${o},${r-u-s-t*e} ${c},${r-u-s*2-t*e} ${n-l},${r-u-s-t*e} Z`,tubeTop:`M${o},${r-u-t*e-s} C ${o},${r-u-t*e-s*2.5} ${n-l},${r-u-t*e-s*2.5} ${n-l},${r-u-t*e-s} C ${n-l},${r-u-t*e+s/2} ${o},${r-u-t*e+s/2} ${o},${r-u-t*e-s}`,tubeBody:`M
11
+ ${o},${r-u-t*e-s}
12
+ C ${o},${r-u-t*e+s/2}
13
+ ${n-l},${r-u-t*e+s/2}
14
+ ${n-l},${r-u-t*e-s}
15
+ L${n-l},${r-s*1.5}
16
+ C
17
+ ${n-l},${r}
18
+ ${o},${r}
19
+ ${o},${r-u-s}Z`}}),X=O(null);function Z(e,t=!1){V.value.events.datapointEnter&&!t&&V.value.events.datapointEnter({datapoint:e,seriesIndex:e.seriesIndex}),V.value.events.datapointClick&&t&&V.value.events.datapointClick({datapoint:e,seriesIndex:e.seriesIndex}),_n(`selectDatapoint`,e);let n=J.value?.findIndex(t=>t.id===e.id)??null;n!==null&&n!==-1&&(z.value=n,B.value=vr(e)),t||(X.value=e.id),t&&L.value&&(L.value=!1),t&&!L.value&&(L.value=!0)}function Q(e){V.value.events.datapointLeave&&V.value.events.datapointLeave({datapoint:e,seriesIndex:e.seriesIndex}),!L.value&&(X.value=null,z.value=null,B.value=``)}function Zn(e,t,n=!1){let r=W.value.series.map(e=>e.value||0).reduce((e,t)=>e+t,0),i=isNaN(e.value/r)?0:e.value/r*100,a=isNaN(e.value/Qn(t))?0:e.value/Qn(t)*100;return n?a:i.toFixed(0)+`%`}function Qn(e){return[...e].map(e=>e.value).reduce((e,t)=>e+t,0)}let $n=O(!1);function er(e){$n.value=e}function tr(){return K.value?J.value:W.value.percentage}let nr=y(()=>K.value?{head:J.value.flatMap(e=>e.breakdown&&e.breakdown.length?[{name:e.name,color:e.color},...e.breakdown.map((t,n)=>({name:t.name,color:s(e.color,n/e.breakdown.length)}))]:{name:e.name,color:e.color}),body:J.value.flatMap(e=>e.breakdown&&e.breakdown.length?[e.value,...e.breakdown.map(e=>e.value)]:e.value)}:null);function rr(e=null){K.value?Ne(()=>{let t=J.value.map(e=>e.value).reduce((e,t)=>e+t,0),n=nr.value.head.map((e,n)=>[[e.name],[nr.value.body[n]],[isNaN(nr.value.body[n]/t)?`-`:nr.value.body[n]/t*100]]),r=[[H.value.title.text],[H.value.title.subtitle.text],[[``],[`val`],[`%`]]].concat(n),i=o(r);e?e(i):re({csvContent:i,title:H.value.title.text||`vue-ui-3d-bar`})}):console.warn(`VueUi3dBar : CSV download is only available in stack mode (providing dataset.series instead of dataset.percentage)`)}let $=y(()=>{if(!K.value||!Array.isArray(J.value)||!J.value.length)return{colNames:[],head:[],body:[],a11yBody:[],config:{th:{backgroundColor:V.value.table.th.backgroundColor,color:V.value.table.th.color,outline:V.value.table.th.outline},td:{backgroundColor:V.value.table.td.backgroundColor,color:V.value.table.td.color,outline:V.value.table.td.outline},breakpoint:V.value.table.responsiveBreakpoint,shape:V.value.style.shape===`tube`?`circle`:`square`}};let e=J.value.reduce((e,t)=>e+t.value,0),t=[`__SUM__`,a({p:H.value.legend.prefix,v:e,s:H.value.legend.suffix,r:V.value.table.td.roundingValue}),`100%`],n=nr.value.head.map((t,n)=>{let r=nr.value.body[n];return[{color:t.color,name:t.name},a({p:H.value.legend.prefix,v:r,s:H.value.legend.suffix,r:V.value.table.td.roundingValue}),isNaN(r/e)?`-`:a({v:r/e*100,s:`%`,r:V.value.table.td.roundingPercentage})]}),r=n.map(e=>e.map((e,t)=>t===0?e.name:e));return{colNames:[V.value.table.columnNames.series,V.value.table.columnNames.value,V.value.table.columnNames.percentage],head:t,body:n,a11yBody:r,config:{th:{backgroundColor:V.value.table.th.backgroundColor,color:V.value.table.th.color,outline:V.value.table.th.outline},td:{backgroundColor:V.value.table.td.backgroundColor,color:V.value.table.td.color,outline:V.value.table.td.outline},breakpoint:V.value.table.responsiveBreakpoint,shape:V.value.style.shape===`tube`?`circle`:`square`}}});function ir(){G.value.showTable=!G.value.showTable}let ar=O(!1);function or(){ar.value=!ar.value}async function sr({scale:e=2}={}){if(!I.value)return;let{width:t,height:n}=I.value.getBoundingClientRect(),r=t/n,{imageUri:i,base64:a}=await me({domElement:I.value,base64:!0,img:!0,scale:e});return{imageUri:i,base64:a,title:H.value.title.text,width:t,height:n,aspectRatio:r}}let cr=y(()=>ve({config:V,style:H,mutableConfig:G,dialog:hn,accordion:un,isFullscreen:$n,parent:I,maxWidth:800}));ze(()=>G.value.showTable,e=>_e(e,V,Tn));function lr(){G.value.showTable=!1,En.value&&En.value.setTableIconState(!1)}let ur=y(()=>V.value.style.chart.backgroundColor),dr=y(()=>V.value.style.chart.title),{isCallbackImaging:fr,isCallbackSvg:pr,generateSvg:mr,onGenerateImage:hr}=ge({svg:Pn,title:dr,legend:null,legendItems:null,backgroundColor:ur,getSvgCallback:()=>V.value.userOptions.callbacks.svg,generateImage:zn});async function gr(){_n(`copyAlt`,{config:V.value,dataset:W.value}),V.value.userOptions.callbacks.altCopy?await Promise.resolve(V.value.userOptions.callbacks.altCopy({config:V.value,dataset:W.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}function _r(){z.value=null,B.value=``,L.value=!1,X.value=null}function vr(e){if(!e)return``;let t=a({p:H.value.legend.prefix,v:e.value,s:H.value.legend.suffix,r:H.value.legend.roundingValue}),n=a({v:e.proportion*100,s:`%`,r:H.value.legend.roundingPercentage});return`${e.name}: ${t}, ${n}`}function yr(e){if(!K.value||!J.value?.length)return;let t=J.value[e];t&&(z.value=e,X.value=t.id,B.value=vr(t))}function br(){R.value=!0,K.value&&J.value?.length&&z.value===null&&yr(0)}function xr(){R.value=!1,L.value||(z.value=null,X.value=null,B.value=``)}function Sr(e){if(!K.value||!J.value?.length||!Pn.value||document.activeElement!==Pn.value)return;let t=[`ArrowLeft`,`ArrowDown`].includes(e.key),n=[`ArrowRight`,`ArrowUp`].includes(e.key),r=e.key===`Enter`||e.key===` `,i=e.key===`Escape`;if(!t&&!n&&!r&&!i)return;if(e.preventDefault(),e.stopPropagation(),i){_r();return}if(r){if(z.value===null)return;let e=J.value[z.value];if(!e)return;Z(e,!0),B.value=`${vr(e)} selected`;return}let a=z.value;a===null||a<0||a>=J.value.length?a=n?0:J.value.length-1:n?(a+=1,a>=J.value.length&&(a=0)):t&&(--a,a<0&&(a=J.value.length-1)),yr(a)}let Cr=y(()=>({headers:$.value?.colNames??[],rows:$.value?.a11yBody??[]}));return fe({getImage:sr,generateCsv:rr,generatePdf:Rn,generateImage:zn,generateSvg:mr,getData:tr,toggleTable:ir,toggleAnnotator:or,toggleFullscreen:er,copyAlt:gr}),(e,i)=>(D(),S(`div`,{ref_key:`bar3dChart`,ref:I,class:Pe(`vue-data-ui-component vue-ui-3d-bar`),style:E(`font-family:${Dn.value.fontFamily};width:100%; text-align:center;background:${H.value.backgroundColor}`),id:`3d_bar_${F.value}`,onMouseenter:i[8]||=()=>M(Mn)(!0),onMouseleave:i[9]||=()=>M(Mn)(!1)},[C(`div`,{id:`chart-instructions-${F.value}`,class:`sr-only`},[C(`p`,null,j(V.value.a11y.translations.keyboardNavigation),1)],8,We),C(`div`,Ge,j(B.value),1),Cr.value?.rows?.length?(D(),b(Te,{key:0,uid:F.value,head:Cr.value.headers,body:Cr.value.rows,notice:V.value.a11y.translations.tableAvailable,caption:V.value.a11y.translations.tableCaption},null,8,[`uid`,`head`,`body`,`notice`,`caption`])):x(``,!0),U.value.buttons.annotator?(D(),b(M(fn),Me({key:1},M(n)(U.value.annotator),{svgRef:M(Pn),backgroundColor:H.value.backgroundColor,color:H.value.color,active:ar.value,isCursorPointer:On.value,palette:U.value.annotatorPalette,onClose:or}),ke({_:2},[k(M(r),n=>({name:n,fn:N(r=>[A(e.$slots,n,Fe(je(M(t)(n,r))),void 0,!0)])}))]),1040,[`svgRef`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):x(``,!0),H.value.title.text?(D(),S(`div`,{key:2,ref_key:`chartTitle`,ref:xn,style:`width:100%;background:transparent`},[(D(),b(he,{key:`title_${yn.value}`,config:{title:{cy:`3dBar-div-title`,...H.value.title},subtitle:{cy:`3dBar-div-subtitle`,...H.value.title.subtitle}}},null,8,[`config`]))],512)):x(``,!0),U.value.show&&vn.value&&(M(Nn)||M(jn))?(D(),b(M(pn),Me({key:3,ref_key:`userOptionsRef`,ref:En,backgroundColor:H.value.backgroundColor,color:H.value.color,isPrinting:M(In),isImaging:M(Ln),uid:F.value,hasTable:!!K.value&&U.value.buttons.table,hasXls:!!K.value&&U.value.buttons.csv,isFullscreen:$n.value,chartElement:I.value},M(be)(U.value,`pdf img svg fullscreen altCopy annotator`),{isAnnotation:ar.value,tableDialog:V.value.table.useDialog,isCursorPointer:On.value,onToggleFullscreen:er,onGeneratePdf:M(Rn),onGenerateCsv:rr,onGenerateImage:M(hr),onGenerateSvg:M(mr),onToggleTable:ir,onToggleAnnotator:or,onCopyAlt:gr,style:{visibility:M(Nn)?M(jn)?`visible`:`hidden`:`visible`}}),ke({_:2},[k(M(ye)(e.$slots,`menuIcon optionPdf optionCsv optionImg optionSvg optionTable optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),t=>({name:t,fn:N(n=>[A(e.$slots,t,Fe(je(M(xe)(t,n))),void 0,!0)])}))]),1040,[`backgroundColor`,`color`,`isPrinting`,`isImaging`,`uid`,`hasTable`,`hasXls`,`isFullscreen`,`chartElement`,`isAnnotation`,`tableDialog`,`isCursorPointer`,`onGeneratePdf`,`onGenerateImage`,`onGenerateSvg`,`style`])):x(``,!0),C(`div`,Ke,[(D(),S(`svg`,{ref_key:`svgRef`,ref:Pn,xmlns:M(ae),class:Pe({"vue-data-ui-fullscreen--on":$n.value,"vue-data-ui-fulscreen--off":!$n.value}),viewBox:`0 0 ${q.value.absoluteWidth} ${q.value.height}`,style:E(`max-width:100%; overflow: visible; background:transparent;color:${H.value.color}`),tabindex:`0`,"aria-describedby":`chart-instructions-${F.value}`,onFocus:br,onBlur:xr,onKeydown:Sr},[w(M(mn)),A(e.$slots,`svg-underlayer`,{svg:{...q.value,isPrintingImg:M(In)||M(Ln)||M(fr),isPrintingSvg:M(pr)}},void 0,!0),e.$slots[`chart-background`]?(D(),S(`foreignObject`,{key:0,x:0,y:0,width:q.value.absoluteWidth,height:q.value.height,style:{pointerEvents:`none`}},[A(e.$slots,`chart-background`,{},void 0,!0)],8,Je)):x(``,!0),C(`defs`,null,[w(_,{t:`radial`,id:`gradient_top${F.value}`,stops:[[`0%`,M(u)(H.value.backgroundColor,0),1],[`100%`,H.value.bar.color,1]]},null,8,[`id`,`stops`]),w(_,{t:`radial`,id:`gradient_tube_top${F.value}`,stops:[[`0%`,M(u)(M(s)(H.value.bar.color,.5),80),1],[`100%`,M(u)(M(d)(H.value.bar.color,.1),80),1]]},null,8,[`id`,`stops`]),w(_,{t:`radial`,id:`gradient_left${F.value}`,stops:[[`0%`,M(u)(H.value.backgroundColor,0),1],[`100%`,M(u)(H.value.bar.color,20),1]]},null,8,[`id`,`stops`]),w(_,{t:`radial`,id:`gradient_right${F.value}`,stops:[[`0%`,M(u)(H.value.backgroundColor,0),1],[`100%`,M(u)(H.value.bar.color,20),1]]},null,8,[`id`,`stops`]),w(_,{t:`linear`,id:`gradient_tube_body${F.value}`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`0%`,stops:[[`0%`,H.value.bar.color,1],[`10%`,M(u)(M(d)(H.value.bar.color,.7),100),1],[`25%`,M(u)(M(d)(H.value.bar.color,.5),100),1],[`75%`,M(u)(H.value.bar.color,80),1],[`100%`,M(u)(M(s)(H.value.bar.color,.7),100),1]]},null,8,[`id`,`stops`])]),K.value?(D(),S(`defs`,Ye,[(D(!0),S(v,null,k(J.value,e=>(D(),b(_,{t:`radial`,id:`grad_top_${e.id}`,key:`grad_top_${e.id}`,stops:[[`0%`,M(u)(M(s)(e.color,.5),80),1],[`100%`,e.color,1]]},null,8,[`id`,`stops`]))),128)),(D(!0),S(v,null,k(J.value,e=>(D(),b(_,{t:`linear`,id:`grad_left_${e.id}`,key:`grad_left_${e.id}`,stops:[[`0%`,M(u)(e.color,80),1],[`100%`,M(u)(M(d)(e.color,.5),100),1]]},null,8,[`id`,`stops`]))),128)),(D(!0),S(v,null,k(J.value,e=>(D(),b(_,{t:`linear`,id:`grad_right_${e.id}`,key:`grad_right_${e.id}`,stops:[[`2%`,M(u)(M(s)(e.color,.5),100),1],[`100%`,M(u)(e.color,80),1]]},null,8,[`id`,`stops`]))),128)),w(_,{t:`linear`,x1:`0%`,y1:`0%`,x2:`0%`,y2:`100%`,id:`vertical_line_${F.value}`,stops:[[`0%`,`#FFFFFF`,1],[`100%`,`#FFFFFF33`,1]]},null,8,[`id`])])):x(``,!0),H.value.dataLabel.show&&![null,void 0].includes(M(W).percentage)&&[null,void 0].includes(M(W).series)?(D(),S(`text`,{key:2,x:q.value.width/2,y:q.value.top-H.value.dataLabel.fontSize/2,"font-size":H.value.dataLabel.fontSize,"font-weight":H.value.dataLabel.bold?`bold`:`normal`,fill:H.value.dataLabel.color,"text-anchor":`middle`},j(M(a)({v:Un.value,s:`%`,r:H.value.dataLabel.rounding})),9,Xe)):x(``,!0),L.value?(D(),S(`g`,{key:3,role:`button`,tabindex:`0`,"aria-label":`Clear selection`,onClick:i[0]||=e=>{L.value=!1,X.value=null},onKeydown:[i[1]||=Be(Ve(e=>{L.value=!1,X.value=null},[`prevent`]),[`enter`]),i[2]||=Be(Ve(e=>{L.value=!1,X.value=null},[`prevent`]),[`space`])],onFocus:i[3]||=e=>R.value=!0,onBlur:i[4]||=e=>R.value=!1,onMouseenter:i[5]||=e=>R.value=!0,onMouseleave:i[6]||=e=>R.value=!1,class:`svg-btn`,"data-dom-to-png-ignore":``,style:E({cursor:On.value?`pointer`:`default`,outline:`none`})},[i[10]||=C(`title`,null,`Clear selection`,-1),C(`rect`,{x:Jn.value-12,y:q.value.top-24,width:24,height:24,fill:`transparent`,"pointer-events":`all`},null,8,Ze),C(`circle`,{cx:Jn.value,cy:q.value.top-12,r:`10`,fill:`none`,stroke:H.value.color,"stroke-width":`2`,"vector-effect":`non-scaling-stroke`,opacity:R.value?.5:0},null,8,Qe),C(`path`,{d:`M${Jn.value-6},${q.value.top-18} ${Jn.value+6},${q.value.top-6}`,stroke:H.value.color,"stroke-linecap":`round`,"stroke-width":`2`,"vector-effect":`non-scaling-stroke`},null,8,$e),C(`path`,{d:`M${Jn.value+6},${q.value.top-18} ${Jn.value-6},${q.value.top-6}`,stroke:H.value.color,"stroke-linecap":`round`,"stroke-width":`2`,"vector-effect":`non-scaling-stroke`},null,8,et)],36)):x(``,!0),!Dn.value.shape||Dn.value.shape===`bar`?(D(),S(`g`,tt,[K.value?x(``,!0):(D(),S(`g`,nt,[C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.right,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,rt),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.left,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,it),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.side,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,at),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.topSides,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,ot)])),K.value?x(``,!0):(D(),S(`g`,st,[C(`path`,{d:Xn.value.right,stroke:H.value.bar.stroke,"stroke-width":H.value.bar.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_right${F.value})`},null,8,ct),C(`path`,{d:Xn.value.left,stroke:H.value.bar.stroke,"stroke-width":H.value.bar.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_left${F.value})`},null,8,lt),C(`path`,{d:Xn.value.top,stroke:H.value.bar.stroke,"stroke-width":H.value.bar.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_top${F.value})`},null,8,ut)])),K.value?(D(),S(`g`,dt,[(D(!0),S(v,null,k(J.value,(e,t)=>(D(),S(`g`,{style:E(`opacity:${X.value?X.value===e.id?1:.3:1}`),class:`vue-ui-3d-bar-stack`,role:`img`,"aria-label":vr(e)},[C(`path`,{d:e.fill.right,fill:`url(#grad_right_${e.id})`,onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e)},null,40,pt),C(`path`,{d:e.fill.left,fill:`url(#grad_left_${e.id})`,onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e)},null,40,mt),C(`path`,{d:e.fill.top,fill:`url(#grad_top_${e.id})`,onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e)},null,40,ht),C(`path`,{d:e.fill.liningTop,stroke:`#FFFFFF`,"stroke-width":`0.5`,"stroke-linecap":`round`,fill:`none`,onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e)},null,40,gt),C(`path`,{d:`M ${e.fill.apexTop.x},${e.fill.apexTop.y} ${e.fill.apexBottom.x},${e.fill.apexBottom.y}`,stroke:`#FFFFFF`,"stroke-width":`0.5`,"stroke-linecap":`round`},null,8,_t)],12,ft))),256)),(D(!0),S(v,null,k(J.value,(e,t)=>(D(),S(`g`,null,[t===J.value.length-1?x(``,!0):(D(),S(`path`,{key:0,d:e.fill.liningTopShade,stroke:H.value.bar.shadeColor,"stroke-width":`0.5`,"stroke-linecap":`round`,fill:`none`,style:{"pointer-events":`none`}},null,8,vt))]))),256)),(D(!0),S(v,null,k(J.value,(t,n)=>(D(),S(`g`,{style:E(`opacity:${X.value?+(X.value===t.id):+(t.proportion*100>H.value.legend.hideUnderPercentage)}`),onClick:e=>_n(`selectDatapoint`,t)},[C(`path`,{stroke:H.value.color,"stroke-dasharray":`1`,"stroke-width":`0.5`,"stroke-linecap":`round`,d:`M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`},null,8,bt),!t.fill.miniDonut||X.value?(D(),S(`circle`,{key:0,cx:t.fill.sidePointer.x2,cy:t.fill.sidePointer.y,r:2,fill:t.color,stroke:H.value.backgroundColor},null,8,xt)):x(``,!0),M(An)?(D(),S(`rect`,{key:1,x:t.fill.sidePointer.xText,y:t.fill.sidePointer.y-H.value.legend.fontSize/2,width:q.value.width/3,height:H.value.legend.fontSize,fill:`#6A6A6A80`,rx:`3`},null,8,St)):x(``,!0),M(An)?x(``,!0):(D(),S(`foreignObject`,{key:2,x:t.fill.sidePointer.xText,y:t.fill.sidePointer.y-H.value.legend.fontSize,width:q.value.absoluteWidth/3,height:H.value.legend.fontSize*2,style:{overflow:`visible`,position:`relative`}},[H.value.legend.showDefault?(D(),S(`div`,{key:0,style:E(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${H.value.legend.fontSize}px; text-align:left; line-height: ${H.value.legend.fontSize}px; color:${H.value.legend.color}; font-weight:${H.value.legend.bold?`bold`:`normal`}`)},j(M(te)(H.value.dataLabel.formatter,t.value,`${t.name}: ${M(a)({v:t.proportion*100,s:`%`,r:H.value.legend.roundingPercentage})} (${M(a)({p:H.value.legend.prefix,v:t.value,s:H.value.legend.suffix,r:H.value.legend.roundingValue})})`,{datapoint:t,seriesIndex:n,type:`barDatapoint`})),5)):x(``,!0),A(e.$slots,`legend`,Me({ref_for:!0},{datapoint:t,config:V.value,dataset:J.value}),void 0,!0)],8,Ct)),t.fill.donut&&X.value===t.id?(D(),S(`g`,wt,[(D(!0),S(v,null,k(t.fill.donut,(e,n)=>(D(),S(`g`,null,[Zn(e,t.fill.donut,!0)>6?(D(),S(`path`,{key:0,d:M(ee)(e,{x:e.cx,y:e.cy},0,8,!1,!0,10),stroke:e.color,class:`vue-ui-donut-arc-path`,"stroke-width":`0.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},null,8,Tt)):x(``,!0)]))),256)),(D(!0),S(v,null,k(t.fill.donut,(e,t)=>(D(),S(`path`,{class:`vue-ui-donut-arc-path`,d:e.arcSlice,fill:`${e.color}`,stroke:H.value.backgroundColor,"stroke-width":1},null,8,Et))),256)),(D(!0),S(v,null,k(t.fill.donut,(e,n)=>(D(),S(`g`,null,[Zn(e,t.fill.donut,!0)>6?(D(),S(`g`,Dt,[C(`text`,{"text-anchor":M(g)(e,!0,0).anchor,x:M(g)(e,!0,2).x,y:M(ie)(e,12,12),fill:H.value.legend.color,"font-size":H.value.legend.fontSize/1.5,"font-weight":H.value.legend.bold?`bold`:`normal`},j(M(te)(H.value.dataLabel.formatter,e.value,`${Zn(e,t.fill.donut)} (${M(a)({p:V.value.style.chart.legend.prefix,v:e.value,s:V.value.style.chart.legend.suffix,r:V.value.style.chart.legend.roundingValue})})`,{datapoint:e,seriesIndex:n,type:`donutDatapoint`})),9,Ot),C(`text`,{"text-anchor":M(g)(e).anchor,x:M(g)(e,!0,2).x,y:M(ie)(e,12,12)+H.value.legend.fontSize/1.5,fill:H.value.legend.color,"font-size":H.value.legend.fontSize/1.5,"font-weight":H.value.legend.bold?`bold`:`normal`},j(e.name),9,kt)])):x(``,!0)]))),256))])):x(``,!0),t.fill.miniDonut&&!X.value?(D(),S(`g`,At,[(D(!0),S(v,null,k(t.fill.miniDonut,(e,t)=>(D(),S(`path`,{class:`vue-ui-donut-arc-path`,d:e.arcSlice,fill:`${e.color}`,stroke:H.value.backgroundColor,"stroke-width":.5},null,8,jt))),256))])):x(``,!0)],12,yt))),256))])):x(``,!0)])):x(``,!0),Dn.value.shape===`tube`?(D(),S(`g`,Mt,[K.value?x(``,!0):(D(),S(`g`,Nt,[C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.tubeTop,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,Pt),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.tubeLeft,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,Ft),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.tubeRight,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,It),C(`path`,{"stroke-dasharray":H.value.box.strokeDasharray,d:Y.value.tubeBottom,stroke:H.value.box.stroke,"stroke-width":H.value.box.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,Lt),C(`path`,{d:Xn.value.tubeTop,stroke:H.value.bar.stroke,"stroke-width":H.value.bar.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_tube_top${F.value})`},null,8,Rt),C(`path`,{d:Xn.value.tubeBody,stroke:H.value.bar.stroke,"stroke-width":H.value.bar.strokeWidth,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_tube_body${F.value})`},null,8,zt),C(`path`,{d:Xn.value.tubeTop,stroke:`#FFFFFF`,"stroke-width":.5,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,8,Bt)])),K.value?(D(),S(`g`,Vt,[(D(!0),S(v,null,k(J.value,(e,t)=>(D(),S(`g`,{style:E(`opacity:${X.value?X.value===e.id?1:.3:1}`),class:`vue-ui-3d-bar-stack`,role:`img`,"aria-label":vr(e)},[C(`defs`,null,[w(_,{t:`radial`,id:`gradient_tube_top_${e.id}`,fx:`10%`,cy:`55%`,stops:[[`0%`,M(u)(M(s)(e.color,.5),80),1],[`100%`,M(u)(M(d)(e.color,.1),80),1]]},null,8,[`id`,`stops`]),w(_,{t:`linear`,id:`gradient_tube_body_${e.id}`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`0%`,stops:[[`0%`,e.color,1],[`10%`,M(u)(M(d)(e.color,.7),100),1],[`25%`,M(u)(M(d)(e.color,.5),100),1],[`75%`,M(u)(e.color,80),1],[`100%`,M(u)(M(s)(e.color,.7),100),1]]},null,8,[`id`,`stops`])]),C(`path`,{onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e),d:e.fill.tubeBody,stroke:`#FFFFFF`,"stroke-width":.5,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_tube_body_${e.id})`},null,40,Ut),t>0?(D(),S(`path`,{key:0,onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e),d:e.fill.bottomTubeTop,stroke:`#000000`,"stroke-width":.5,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`none`},null,40,Wt)):x(``,!0),C(`path`,{onMouseenter:t=>Z(e),onClick:t=>Z(e,!0),onMouseout:t=>Q(e),d:e.fill.tubeTop,stroke:`#FFFFFF`,"stroke-width":.5,"stroke-linejoin":`round`,"stroke-linecap":`round`,fill:`url(#gradient_tube_top_${e.id})`},null,40,Gt)],12,Ht))),256)),(D(!0),S(v,null,k(J.value,(t,n)=>(D(),S(`g`,{style:E(`opacity:${X.value?+(X.value===t.id):+(t.proportion*100>H.value.legend.hideUnderPercentage)}`),onClick:e=>_n(`selectDatapoint`,t)},[C(`path`,{stroke:H.value.color,"stroke-dasharray":`1`,"stroke-width":`0.5`,"stroke-linecap":`round`,d:`M${t.fill.sidePointer.x},${t.fill.sidePointer.y} ${t.fill.sidePointer.x2},${t.fill.sidePointer.y}`},null,8,qt),!t.fill.miniDonut||X.value?(D(),S(`circle`,{key:0,cx:t.fill.sidePointer.x2,cy:t.fill.sidePointer.y,r:2,fill:t.color,stroke:H.value.backgroundColor},null,8,Jt)):x(``,!0),M(An)?(D(),S(`rect`,{key:1,x:t.fill.sidePointer.xText,y:t.fill.sidePointer.y-H.value.legend.fontSize/2,width:q.value.width/3,height:H.value.legend.fontSize,fill:`#6A6A6A80`,rx:`3`},null,8,Yt)):x(``,!0),M(An)?x(``,!0):(D(),S(`foreignObject`,{key:2,x:t.fill.sidePointer.xText,y:t.fill.sidePointer.y-H.value.legend.fontSize,width:q.value.absoluteWidth/3,height:H.value.legend.fontSize*2,style:{overflow:`visible`,position:`relative`}},[H.value.legend.showDefault?(D(),S(`div`,{key:0,style:E(`height: 100%; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; align-items:center;justify-content: flex-start; font-size:${H.value.legend.fontSize}px; text-align:left; line-height: ${H.value.legend.fontSize}px; color:${H.value.legend.color};font-weight:${H.value.legend.bold?`bold`:`normal`}`)},j(M(te)(H.value.dataLabel.formatter,t.value,`${t.name}: ${M(a)({v:t.proportion*100,s:`%`,r:H.value.legend.roundingPercentage})} (${M(a)({p:H.value.legend.prefix,v:t.value,s:H.value.legend.suffix,r:H.value.legend.roundingValue})})`,{datapoint:t,seriesIndex:n,type:`barDatapoint`})),5)):x(``,!0),A(e.$slots,`legend`,Me({ref_for:!0},{datapoint:t,config:V.value,dataset:J.value}),void 0,!0)],8,Xt)),t.fill.donut&&X.value===t.id?(D(),S(`g`,Zt,[(D(!0),S(v,null,k(t.fill.donut,(e,n)=>(D(),S(`g`,null,[Zn(e,t.fill.donut,!0)>6?(D(),S(`path`,{key:0,d:M(ee)(e,{x:e.cx,y:e.cy},0,8,!1,!0,10),stroke:e.color,class:`vue-ui-donut-arc-path`,"stroke-width":`0.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`},null,8,Qt)):x(``,!0)]))),256)),(D(!0),S(v,null,k(t.fill.donut,(e,t)=>(D(),S(`path`,{class:`vue-ui-donut-arc-path`,d:e.arcSlice,fill:`${e.color}`,stroke:H.value.backgroundColor,"stroke-width":1},null,8,$t))),256)),(D(!0),S(v,null,k(t.fill.donut,(e,n)=>(D(),S(`g`,null,[Zn(e,t.fill.donut,!0)>6?(D(),S(`g`,en,[C(`text`,{"text-anchor":M(g)(e,!0,0).anchor,x:M(g)(e,!0,2).x,y:M(ie)(e,12,12),fill:H.value.legend.color,"font-size":H.value.legend.fontSize/1.5,"font-weight":H.value.legend.bold?`bold`:`normal`},j(M(te)(H.value.dataLabel.formatter,e.value,`${Zn(e,t.fill.donut)} (${M(a)({p:V.value.style.chart.legend.prefix,v:e.value,s:V.value.style.chart.legend.suffix,r:V.value.style.chart.legend.roundingValue})})`,{datapoint:e,seriesIndex:n,type:`donutDatapoint`})),9,tn),C(`text`,{"text-anchor":M(g)(e).anchor,x:M(g)(e,!0,2).x,y:M(ie)(e,12,12)+H.value.legend.fontSize/1.5,fill:H.value.legend.color,"font-size":H.value.legend.fontSize/1.5,"font-weight":H.value.legend.bold?`bold`:`normal`},j(e.name),9,nn)])):x(``,!0)]))),256))])):x(``,!0),t.fill.miniDonut&&!X.value?(D(),S(`g`,rn,[(D(!0),S(v,null,k(t.fill.miniDonut,(e,t)=>(D(),S(`path`,{class:`vue-ui-donut-arc-path`,d:e.arcSlice,fill:`${e.color}`,stroke:H.value.backgroundColor,"stroke-width":.5},null,8,an))),256))])):x(``,!0)],12,Kt))),256))])):x(``,!0)])):x(``,!0),A(e.$slots,`svg`,{svg:{...q.value,isPrintingImg:M(In)||M(Ln)||M(fr),isPrintingSvg:M(pr)}},void 0,!0)],46,qe))]),e.$slots.watermark?(D(),S(`div`,on,[A(e.$slots,`watermark`,Fe(je({isPrinting:M(In)||M(Ln)||M(pr)||M(fr)})),void 0,!0)])):x(``,!0),e.$slots.source?(D(),S(`div`,{key:5,ref_key:`source`,ref:wn,dir:`auto`},[A(e.$slots,`source`,{},void 0,!0)],512)):x(``,!0),vn.value&&K.value&&U.value.buttons.table?(D(),b(Le(cr.value.component),Me({key:6},cr.value.props,{ref_key:`tableUnit`,ref:Tn,onClose:lr}),ke({content:N(()=>[(D(),b(M(dn),{key:`table_${bn.value}`,colNames:$.value.colNames,head:$.value.head,body:$.value.body,config:$.value.config,title:V.value.table.useDialog?``:cr.value.title,withCloseButton:!V.value.table.useDialog,isCursorPointer:On.value,onClose:lr},{th:N(({th:e})=>[e===`__SUM__`?(D(),S(`div`,sn,[w(M(ln),{name:`sigma`,stroke:$.value.config.th.color,size:16},null,8,[`stroke`])])):(D(),S(`div`,cn,j(e),1))]),td:N(({td:e})=>[Ae(j(e.name||e),1)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`,`isCursorPointer`]))]),_:2},[V.value.table.useDialog?{name:`title`,fn:N(()=>[Ae(j(cr.value.title),1)]),key:`0`}:void 0,V.value.table.useDialog?{name:`actions`,fn:N(()=>[C(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:i[7]||=e=>rr(U.value.callbacks.csv)},[w(M(ln),{name:`fileCsv`,stroke:cr.value.props.color},null,8,[`stroke`])])]),key:`1`}:void 0]),1040)):x(``,!0),A(e.$slots,`skeleton`,{},()=>[M(An)?(D(),b(ue,{key:0})):x(``,!0)],!0)],44,Ue))}},[[`__scopeId`,`data-v-18e48f08`]]);export{He as n,ln as t};
@@ -1 +1 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-By3Vb5kz.js";import{X as n}from"./lib-rPeBMZrn.js";import{t as r}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as i}from"./useNestedProp-DnGoh-XS.js";import{t as a}from"./BaseIcon-CoY0vuL3.js";import{computed as o,createBlock as s,createCommentVNode as c,createElementBlock as l,createElementVNode as u,guardReactiveProps as d,normalizeClass as f,normalizeProps as p,normalizeStyle as m,onMounted as h,openBlock as g,ref as _,renderSlot as v,useCssVars as y,watch as b}from"vue";var x=/* @__PURE__ */ e({default:()=>T}),S={class:`vue-data-ui-component`},C=[`id`],w={key:0,class:`vue-ui-accordion-arrow`},T=/*#__PURE__*/ r({__name:`vue-ui-accordion`,props:{config:{type:Object,default(){return{}}},hideDetails:{type:Boolean,default:!1}},emits:[`toggle`],setup(e,{emit:r}){y(e=>({fc620ee6:P.value}));let{vue_ui_accordion:x}=t(),T=e,E=r,D=o(()=>i({userConfig:T.config,defaultConfig:x})),O=o(()=>D.value.useCursorPointer),k=_(D.value.open),A=_(n()),j=_(null),M=_(0);h(()=>{j.value.open=D.value.open}),b(()=>D.value.open,e=>{j.value.open=e});function N(){(M.value>0||!D.value.open)&&(k.value=!k.value),M.value+=1,E(`toggle`)}let P=o(()=>`${D.value.maxHeight}px`);return(t,n)=>(g(),l(`div`,S,[u(`details`,{id:`details_${A.value}`,ref_key:`details`,ref:j,onToggle:N},[u(`summary`,{class:f({"vue-ui-accordion-headless":e.hideDetails}),style:m({cursor:O.value?`pointer`:`default`})},[u(`div`,{class:`vue-ui-accordion-head`,style:m(`background:${D.value.head.backgroundColor};padding:${D.value.head.padding}; ${e.hideDetails?`height: 0px !important; padding: 0 !important;`:``}`)},[e.hideDetails?c(``,!0):(g(),l(`div`,w,[D.value.head.useArrowSlot?v(t.$slots,`arrow`,p(d({backgroundColor:D.value.head.backgroundColor,color:D.value.head.color,iconColor:D.value.head.iconColor,isOpen:k.value})),void 0,!0,0):(g(),s(a,{key:1,name:D.value.head.icon,stroke:D.value.head.iconColor,size:D.value.head.iconSize},null,8,[`name`,`stroke`,`size`]))])),v(t.$slots,`title`,p(d({color:D.value.head.color,isOpen:k.value})),void 0,!0)],4)],6)],40,C),u(`div`,{class:`vue-ui-accordion-content`,style:m(`background:${D.value.body.backgroundColor};color:${D.value.body.color}`)},[v(t.$slots,`content`,p(d({backgroundColor:D.value.body.backgroundColor,color:D.value.body.color,isOpen:k.value})),void 0,!0)],4)]))}},[[`__scopeId`,`data-v-2782a9e6`]]);export{x as n,T as t};
1
+ import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-C3FbHv4N.js";import{X as n}from"./lib-rPeBMZrn.js";import{t as r}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as i}from"./useNestedProp-DnGoh-XS.js";import{t as a}from"./BaseIcon-CoY0vuL3.js";import{computed as o,createBlock as s,createCommentVNode as c,createElementBlock as l,createElementVNode as u,guardReactiveProps as d,normalizeClass as f,normalizeProps as p,normalizeStyle as m,onMounted as h,openBlock as g,ref as _,renderSlot as v,useCssVars as y,watch as b}from"vue";var x=/* @__PURE__ */ e({default:()=>T}),S={class:`vue-data-ui-component`},C=[`id`],w={key:0,class:`vue-ui-accordion-arrow`},T=/*#__PURE__*/ r({__name:`vue-ui-accordion`,props:{config:{type:Object,default(){return{}}},hideDetails:{type:Boolean,default:!1}},emits:[`toggle`],setup(e,{emit:r}){y(e=>({fc620ee6:P.value}));let{vue_ui_accordion:x}=t(),T=e,E=r,D=o(()=>i({userConfig:T.config,defaultConfig:x})),O=o(()=>D.value.useCursorPointer),k=_(D.value.open),A=_(n()),j=_(null),M=_(0);h(()=>{j.value.open=D.value.open}),b(()=>D.value.open,e=>{j.value.open=e});function N(){(M.value>0||!D.value.open)&&(k.value=!k.value),M.value+=1,E(`toggle`)}let P=o(()=>`${D.value.maxHeight}px`);return(t,n)=>(g(),l(`div`,S,[u(`details`,{id:`details_${A.value}`,ref_key:`details`,ref:j,onToggle:N},[u(`summary`,{class:f({"vue-ui-accordion-headless":e.hideDetails}),style:m({cursor:O.value?`pointer`:`default`})},[u(`div`,{class:`vue-ui-accordion-head`,style:m(`background:${D.value.head.backgroundColor};padding:${D.value.head.padding}; ${e.hideDetails?`height: 0px !important; padding: 0 !important;`:``}`)},[e.hideDetails?c(``,!0):(g(),l(`div`,w,[D.value.head.useArrowSlot?v(t.$slots,`arrow`,p(d({backgroundColor:D.value.head.backgroundColor,color:D.value.head.color,iconColor:D.value.head.iconColor,isOpen:k.value})),void 0,!0,0):(g(),s(a,{key:1,name:D.value.head.icon,stroke:D.value.head.iconColor,size:D.value.head.iconSize},null,8,[`name`,`stroke`,`size`]))])),v(t.$slots,`title`,p(d({color:D.value.head.color,isOpen:k.value})),void 0,!0)],4)],6)],40,C),u(`div`,{class:`vue-ui-accordion-content`,style:m(`background:${D.value.body.backgroundColor};color:${D.value.body.color}`)},[v(t.$slots,`content`,p(d({backgroundColor:D.value.body.backgroundColor,color:D.value.body.color,isOpen:k.value})),void 0,!0)],4)]))}},[[`__scopeId`,`data-v-2782a9e6`]]);export{x as n,T as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{n as t,r as n,t as r}from"./annotationSlots-OLiW25XN.js";import{t as i}from"./useConfig-C3FbHv4N.js";import{$ as a,D as o,Dt as ee,Jt as te,X as ne,Yt as re,at as ie,b as s,et as ae,i as c,in as oe,nt as se,pt as ce,t as le,tn as ue,zt as de}from"./lib-rPeBMZrn.js";import{n as fe,t as pe}from"./BaseScanner-8NdoBs7B.js";import{n as me,t as he}from"./useHints-C-TwxM0Y.js";import{t as ge}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as _e}from"./resolveChartConfig-CIhClE5R.js";import{t as ve}from"./img-D4RQwASc.js";import{n as ye}from"./Title-BliHuXfT.js";import{t as be}from"./useChartExport-BZts4KFb.js";import{n as xe,t as Se}from"./tableIntegration-CNoJ1CIY.js";import{n as Ce,r as we,t as Te}from"./userOptionsSlots-CWtXN5Q6.js";import{t as Ee}from"./usePrinter-DVf3YcG5.js";import{t as De}from"./useSvgLabelLayout-42Kats14.js";import{t as Oe}from"./useTimeLabelCollider-BTybMUFi.js";import{t as ke}from"./useResponsive-CENUxfEL.js";import{t as Ae}from"./DefGrad-DKMq1REY.js";import{t as je}from"./A11yDataTable-DWNlWXzs.js";import{t as Me}from"./useUserOptionState-CXlFnwPv.js";import{t as Ne}from"./useChartAccessibility-DOMuYJfm.js";import{t as Pe}from"./vue_ui_age_pyramid-CL0Ef8Ov.js";import{Fragment as l,computed as u,createBlock as d,createCommentVNode as f,createElementBlock as p,createElementVNode as m,createSlots as Fe,createTextVNode as Ie,createVNode as h,defineAsyncComponent as g,guardReactiveProps as _,mergeProps as Le,nextTick as Re,normalizeClass as ze,normalizeProps as v,normalizeStyle as Be,onBeforeUnmount as Ve,onMounted as He,openBlock as y,ref as b,renderList as x,renderSlot as S,resolveDynamicComponent as Ue,shallowRef as We,toDisplayString as C,toRefs as Ge,unref as w,watch as T,withCtx as E}from"vue";var Ke=/* @__PURE__ */ e({default:()=>xt}),qe=[`id`],Je=[`id`],Ye={style:{position:`relative`}},Xe=[`xmlns`,`viewBox`,`aria-describedby`],Ze=[`x`,`y`,`width`,`height`],Qe=[`x`,`y`,`width`,`height`,`fill`,`rx`],$e=[`x`,`y`,`width`,`height`,`fill`,`rx`],et=[`x`,`y`,`width`,`height`,`fill`,`rx`],tt=[`x`,`y`,`width`,`height`,`fill`,`rx`],nt=[`x`,`y`,`font-size`,`font-weight`,`fill`,`stroke`],rt=[`x`,`y`,`font-size`,`font-weight`,`fill`,`stroke`],it={key:0},at=[`x`,`y`,`fill`,`font-size`,`font-weight`],ot=[`x`,`y`,`fill`,`font-size`,`font-weight`],st={key:1},ct=[`x`,`y`,`font-size`,`fill`,`font-weight`],lt={key:2},ut={key:0},dt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],ft=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],pt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],mt=[`x1`,`x2`,`y1`,`y2`,`stroke`,`stroke-width`],ht=[`font-size`,`fill`,`text-anchor`,`font-weight`,`transform`],gt=[`font-size`,`fill`,`text-anchor`,`font-weight`,`transform`],_t=[`x`,`y`,`font-size`,`fill`,`font-weight`],vt=[`x`,`y`,`width`,`height`,`fill`,`onMouseover`,`onMouseleave`,`onClick`],yt={key:0,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},bt={key:5,class:`vue-data-ui-watermark`},xt=/*#__PURE__*/ ge({__name:`vue-ui-age-pyramid`,props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},emits:[`copyAlt`],setup(e,{expose:ge,emit:Ke}){let xt=g(()=>import(`./Tooltip-C1q0Qoh7.js`)),St=g(()=>import(`./BaseIcon-CoY0vuL3.js`).then(e=>e.n)),Ct=g(()=>import(`./vue-ui-accordion-E8TJfFeK.js`).then(e=>e.n)),wt=g(()=>import(`./DataTable-Dof6yhO7.js`)),Tt=g(()=>import(`./PenAndPaper-DoNTA-SV.js`).then(e=>e.t)),Et=g(()=>import(`./UserOptions-B9EyfU9n.js`).then(e=>e.n)),Dt=g(()=>import(`./PackageVersion-DKSNC-YP.js`).then(e=>e.t)),Ot=g(()=>import(`./BaseDraggableDialog-BK7dj9O6.js`).then(e=>e.n)),{vue_ui_age_pyramid:kt}=i(),D=e,At=Ke,jt=u(()=>!!D.dataset&&D.dataset.length),O=b(ne()),k=b(!1),Mt=b(``),A=b(null),Nt=b(0),j=b(null),Pt=b(null),Ft=b(null),It=b(null),Lt=b(0),Rt=b(0),zt=b(null),Bt=b(null),Vt=b(null),M=b(null),Ht=b({x:0,y:0}),N=b(`pointer`),Ut=b(!1),P=b(Zt()),F=u(()=>P.value.style),I=u(()=>P.value.style.layout.dataLabels),L=u(()=>P.value.style.layout.bars),R=u(()=>P.value.style.layout.bars.labels);me({config:()=>P.value,dataset:()=>D.dataset,component:`VueUiAgePyramid`,rules:[he.emptyArray,{test:e=>e.length>130,message:[`👀 Dataset has > 130 points. Consider:`,``,`▶️ Grouping small values into aggregated categories.`,``,`▶️ Using VueUiStackline to display data in a more compact way.`]}]});let z=u(()=>P.value.userOptions.useCursorPointer),Wt=u(()=>oe({defaultConfig:{userOptions:{show:!1},table:{show:!1},translations:{male:``,female:``},style:{backgroundColor:`#99999930`,layout:{bars:{left:{color:`#CACACA`},right:{color:`#999999`}},dataLabels:{xAxis:{fontSize:0,scale:1e3,translation:``},yAxis:{show:!1}},grid:{stroke:`#6A6A6A`}}}},userConfig:P.value.skeletonConfig??{}})),{loading:Gt,FINAL_DATASET:Kt,manualLoading:qt}=fe({...Ge(D),FINAL_CONFIG:P,prepareConfig:Zt,skeletonDataset:D.config?.skeletonDataset??[[`_`,9,2,2],[`_`,8,3,3],[`_`,7,5,5],[`_`,6,8,8],[`_`,5,13,13],[`_`,4,21,21],[`_`,3,34,34],[`_`,2,55,55],[`_`,1,89,89],[`_`,0,144,144]],skeletonConfig:oe({defaultConfig:P.value,userConfig:Wt.value})}),{userOptionsVisible:Jt,setUserOptionsVisibility:Yt,keepUserOptionState:Xt}=Me({config:P.value}),{svgRef:B}=Ne({config:P.value.style.title});function Zt(){return _e(D.config,kt,Pe)}function Qt(e){let t=ae(e);return t?.style?.chart&&delete t.style.tooltip,JSON.stringify(t)}let $t=Qt(D.config);T(()=>D.config,(e,t)=>{let n=Qt(e),r=n!==$t;$t=n;let i=Zt();r?(Gt.value||(P.value=i),Jt.value=!P.value.userOptions.showOnChartHover,rn(),Lt.value+=1,Rt.value+=1,U.value.showTable=P.value.table.show,U.value.showTooltip=P.value.style.tooltip.show):(P.value.style.tooltip=i.style.tooltip,U.value.showTooltip=P.value.style.tooltip.show)},{deep:!0}),T(()=>D.dataset,e=>{Array.isArray(e)&&e.length>0&&(qt.value=!1)},{deep:!0});let V=We(null),H=We(null),en=b(!1),tn=0;He(()=>{rn()});let nn=u(()=>P.value.debug);function rn(){de(D.dataset)&&(ie({componentName:`VueUiAgePyramid`,type:`dataset`,debug:nn.value}),qt.value=!0),de(D.dataset)||(qt.value=P.value.loading),P.value.responsive&&(V.value&&(H.value&&V.value.unobserve(H.value),V.value.disconnect()),V.value=new ResizeObserver(()=>{let{width:e,height:t}=ke({chart:j.value,title:F.value.title.text?Pt.value:null,source:Ft.value,noTitle:It.value});cancelAnimationFrame(tn),tn=requestAnimationFrame(()=>{W.value.width=e,W.value.height=t,en.value=!0})}),H.value=j.value.parentNode,V.value.observe(H.value))}Ve(()=>{cancelAnimationFrame(tn),V.value&&(H.value&&V.value.unobserve(H.value),V.value.disconnect())});let{isPrinting:an,isImaging:on,generatePdf:sn,generateImage:cn}=Ee({elementId:`vue-ui-age-pyramid_${O.value}`,fileName:F.value.title.text||`vue-ui-age-pyramid`,options:P.value.userOptions.print}),ln=u(()=>P.value.userOptions.show&&!F.value.title.text),U=b({showTable:P.value.table.show,showTooltip:F.value.tooltip.show});T(P,()=>{U.value={showTable:P.value.table.show,showTooltip:F.value.tooltip.show}},{immediate:!0});let W=b({height:F.value.height,width:F.value.width}),un=u(()=>W.value.width),dn=u(()=>W.value.height),{metrics:fn,ready:pn,settling:mn,update:hn}=De({svgRef:B,canMeasure:()=>!P.value.responsive||en.value,initialMetrics:{bottom:0},measure:e=>({bottom:e(zt.value).height})}),gn=u(()=>fn.value.bottom),G=u(()=>{let e=W.value.width-F.value.layout.padding.right-F.value.layout.padding.left,t=F.value.layout.padding.left,n=W.value.width-F.value.layout.padding.right;return{top:F.value.layout.padding.top+I.value.sideTitles.fontSize+I.value.sideTitles.offsetY+12,left:t,right:n,bottom:W.value.height-F.value.layout.padding.bottom-gn.value,width:e,height:W.value.height-F.value.layout.padding.top-F.value.layout.padding.bottom-gn.value-I.value.sideTitles.fontSize-I.value.sideTitles.offsetY-12,centerX:F.value.layout.padding.left+e/2,leftChart:{width:e/2-F.value.layout.centerSlit.width,right:t+e/2-F.value.layout.centerSlit.width},rightChart:{width:e/2-F.value.layout.centerSlit.width,left:t+e/2+F.value.layout.centerSlit.width}}}),_n=u(()=>Kt.value.map(e=>I.value.yAxis.display===`age`?e[1]:e[0])),K=u(()=>{let e=vn(q.value/5),t=[],n=[];for(let r=0;r<=5;r+=1){let i=e*r,a=e*(r-5);t.push({value:i,x:G.value.left+G.value.width/2+F.value.layout.centerSlit.width+i/q.value*G.value.leftChart.width}),n.push({value:Math.abs(a),x:G.value.left+G.value.width/2+a/q.value*G.value.leftChart.width-F.value.layout.centerSlit.width})}return{right:t,left:n}});function vn(e){if(e===0)return 0;let t=10**Math.floor(Math.log10(Math.abs(e))),n;return n=Math.round(e/t)*t,n}let q=u(()=>Math.max(...Kt.value.flatMap(e=>e.slice(-2).map(e=>s(e))))),J=u(()=>Kt.value.length),yn=u(()=>Kt.value.map(e=>({segment:e[0],age:e[1],left:{value:e[2],proportionToMax:e[2]/q.value},right:{value:e[3],proportionToMax:e[3]/q.value}}))),Y=u(()=>yn.value.map((e,t)=>{let n=G.value.top+G.value.height/J.value*t,r=G.value.height/J.value-L.value.gap;return{segment:e.segment,age:e.age,left:{...e.left,y:n,color:L.value.left.color,x:G.value.leftChart.right-e.left.proportionToMax*G.value.leftChart.width,width:s(e.left.proportionToMax*G.value.leftChart.width),height:r},right:{...e.right,y:n,color:L.value.right.color,x:G.value.rightChart.left,width:s(e.right.proportionToMax*G.value.rightChart.width),height:r}}})),bn=b(null);function xn(e){let[t,n,r,i]=e;return{segment:t,index:n,left:r,right:i}}function Sn(e,t){P.value.events.datapointClick&&P.value.events.datapointClick({datapoint:xn(t),seriesIndex:e})}function Cn(e,t){P.value.events.datapointLeave&&P.value.events.datapointLeave({datapoint:xn(t),seriesIndex:e}),(N.value!==`keyboard`||M.value!==e)&&(A.value=null,k.value=!1)}function wn(e){if(!B.value)return;let t=Y.value[e];if(!t)return;let n=ue(G.value.left+G.value.width/2,t.left.y+t.left.height/2,B.value);n&&(Ht.value=n)}function Tn(e,t,n=`pointer`){P.value.events.datapointEnter&&P.value.events.datapointEnter({datapoint:xn(t),seriesIndex:e}),A.value=e,M.value=e,N.value=n,bn.value={datapoint:t,seriesIndex:e,series:Y.value,config:P.value};let r=F.value.tooltip.customFormat;if(ee(r)&&ce(()=>r({seriesIndex:e,datapoint:{segment:t[0],index:t[1],left:t[2],right:t[3]},series:Y.value,config:P.value})))Mt.value=r({seriesIndex:e,datapoint:{segment:t[0],index:t[1],left:t[2],right:t[3]},series:Y.value,config:P.value});else{let n=``,r=Y.value[e];n+=`<div><b>${r.segment}</b></div>`,n+=`<div>${P.value.translations.age}: ${c(I.value.yAxis.formatter,s(r.age),a({v:s(r.age)}),{datapoint:t,seriesIndex:e})}</div>`,n+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${F.value.tooltip.borderColor}">`,n+=`<div style="display:flex; flex-direction:row;gap:12px">`,n+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.show?`url(#age_pyramid_left_${O.value})`:L.value.left.color}"/></svg><div>${P.value.translations.female}</div><div><b>${c(I.value.xAxis.formatter,s(r.left.value),a({v:s(r.left.value)}),{datapoint:t,seriesIndex:e})}</b></div></div>`,n+=`<div style="display:flex;flex-direction:column;align-items:center;justify-content:center"><svg viewBox="0 0 12 12" height="12" width="12"><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.underlayer}"/><rect stroke="none" x="0" y="0" height="12" width="12" rx="2" fill="${L.value.gradient.show?`url(#age_pyramid_right_${O.value})`:L.value.right.color}"/></svg><div>${P.value.translations.male}</div><div><b>${c(I.value.xAxis.formatter,s(r.right.value),a({v:s(r.right.value)}),{datapoint:t,seriesIndex:e})}</b></div></div>`,n+=`</div>`,n+=`<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${F.value.tooltip.borderColor}"><div>${P.value.translations.total}</div><div><b>${c(I.value.xAxis.formatter,s(r.right.value)+s(r.left.value),a({v:s(r.right.value)+s(r.left.value)}),{datapoint:t,seriesIndex:e})}</b></div></div>`,n+=`</div>`,Mt.value=`<div>${n}</div>`}k.value=!0,n===`keyboard`&&Re(()=>{wn(e)})}function En(e=null){Re(()=>{let t=[P.value.translations.year,P.value.translations.age,P.value.translations.female,P.value.translations.male,P.value.translations.total],n=D.dataset.map(e=>[e[0],e[1],e[2],e[3],e[2]??0+e[3]??0]),r=[[F.value.title.text],[F.value.title.subtitle.text],[[``],[``],[``]],t].concat(n),i=o(r);e?e(i):se({csvContent:i,title:F.value.title.text||`vue-ui-heatmap`})})}let X=u(()=>{let e=[P.value.translations.year,P.value.translations.age,P.value.translations.female,P.value.translations.male,P.value.translations.total];return{head:e,body:D.dataset.map(e=>[e[0],e[1],e[2]==null?``:e[2].toLocaleString(),e[3]==null?``:e[3].toLocaleString(),(e[2]??0+e[3]??0).toLocaleString()]),config:{th:{backgroundColor:P.value.table.th.backgroundColor,color:P.value.table.th.color,outline:P.value.table.th.outline},td:{backgroundColor:P.value.table.td.backgroundColor,color:P.value.table.td.color,outline:P.value.table.td.outline},breakpoint:P.value.table.responsiveBreakpoint},colNames:e}}),Z=b(!1);function Dn(e){Z.value=e,Nt.value+=1}function On(){U.value.showTable=!U.value.showTable}function kn(){U.value.showTooltip=!U.value.showTooltip}let Q=b(!1);function An(){Q.value=!Q.value}async function jn({scale:e=2}={}){if(!j.value)return;let{width:t,height:n}=j.value.getBoundingClientRect(),r=t/n,{imageUri:i,base64:a}=await ve({domElement:j.value,base64:!0,img:!0,scale:e});return{imageUri:i,base64:a,title:F.value.title.text,width:t,height:n,aspectRatio:r}}let Mn=b([]),Nn=b({start:0,end:Y.value.length});Oe({timeLabelsEls:zt,timeLabels:Mn,slicer:Nn,configRef:P,rotationPath:[`style`,`layout`,`dataLabels`,`xAxis`,`rotation`],autoRotatePath:[`style`,`layout`,`dataLabels`,`xAxis`,`autoRotate`,`enable`],isAutoSize:!1,width:un,height:dn,targetClass:`.vue-ui-age-pyramid-x-axis-label`,rotation:F.value.layout.dataLabels.xAxis.autoRotate.angle});let $=u(()=>Se({config:P,style:F,mutableConfig:U,dialog:Ot,accordion:Ct,isFullscreen:Z,parent:j,maxWidth:800,isCursorPointer:z}));T(()=>U.value.showTable,e=>xe(e,P,Bt));function Pn(){U.value.showTable=!1,Vt.value&&Vt.value.setTableIconState(!1)}let Fn=u(()=>P.value.style.backgroundColor),In=u(()=>P.value.style.title),{isCallbackImaging:Ln,isCallbackSvg:Rn,generateSvg:zn,onGenerateImage:Bn}=be({svg:B,title:In,legend:null,legendItems:null,backgroundColor:Fn,getSvgCallback:()=>P.value.userOptions.callbacks.svg,generateImage:cn});async function Vn(){At(`copyAlt`,{config:P.value,dataset:Y.value}),P.value.userOptions.callbacks.altCopy?await Promise.resolve(P.value.userOptions.callbacks.altCopy({config:P.value,dataset:Y.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}function Hn(){Ut.value=!0}function Un(){A.value=null,M.value=null,N.value=`pointer`,k.value=!1,Ut.value=!1}function Wn(e){if(!B.value||Q.value||document.activeElement!==B.value||!Y.value.length)return;let t=[`ArrowUp`,`ArrowLeft`].includes(e.key),n=[`ArrowDown`,`ArrowRight`].includes(e.key),r=e.key===`Enter`||e.key===` `,i=e.key===`Escape`;if(!t&&!n&&!r&&!i)return;if(e.preventDefault(),e.stopPropagation(),i){A.value=null,M.value=null,N.value=`pointer`,k.value=!1;return}if(r){if(M.value===null)return;let e=D.dataset[M.value];if(!e)return;Sn(M.value,e);return}let a=M.value,o=A.value,ee=a!==null&&a>=0&&a<Y.value.length,te=o!==null&&o>=0&&o<Y.value.length;ee?t?a=a-1<0?Y.value.length-1:a-1:n&&(a=a+1>Y.value.length-1?0:a+1):te?(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;let ne=D.dataset[a];ne&&Tn(a,ne,`keyboard`)}return ge({getImage:jn,generatePdf:sn,generateCsv:En,generateImage:cn,generateSvg:zn,toggleTable:On,toggleTooltip:kn,toggleAnnotator:An,toggleFullscreen:Dn,copyAlt:Vn}),T(()=>[W.value,I.value,zt.value,D.dataset,en.value,P.value.style.fontFamily],hn,{flush:`post`,deep:!0}),(i,o)=>(y(),p(`div`,{class:ze(`vue-data-ui-component vue-ui-age-pyramid ${Z.value?`vue-data-ui-wrapper-fullscreen`:``}`),ref_key:`agePyramid`,ref:j,id:`vue-ui-age-pyramid_${O.value}`,style:Be(`font-family:${F.value.fontFamily};width:100%; text-align:center;background:${F.value.backgroundColor};${P.value.responsive?`height:100%`:``}`),onMouseenter:o[1]||=()=>w(Yt)(!0),onMouseleave:o[2]||=()=>w(Yt)(!1)},[m(`div`,{id:`chart-instructions-${O.value}`,class:`sr-only`},[m(`p`,null,C(P.value.a11y.translations.keyboardNavigation),1)],8,Je),X.value?.body?.length?(y(),d(je,{key:0,uid:O.value,head:X.value.head,body:X.value.body,notice:P.value.a11y.translations.tableAvailable,caption:P.value.a11y.translations.tableCaption},null,8,[`uid`,`head`,`body`,`notice`,`caption`])):f(``,!0),P.value.userOptions.buttons.annotator?(y(),d(w(Tt),Le({key:1},w(n)(P.value.userOptions.annotator),{svgRef:w(B),backgroundColor:F.value.backgroundColor,color:F.value.color,active:Q.value,isCursorPointer:z.value,palette:P.value.userOptions.annotatorPalette,onClose:An}),Fe({_:2},[x(w(r),e=>({name:e,fn:E(n=>[S(i.$slots,e,v(_(w(t)(e,n))),void 0,!0)])}))]),1040,[`svgRef`,`backgroundColor`,`color`,`active`,`isCursorPointer`,`palette`])):f(``,!0),ln.value?(y(),p(`div`,{key:2,ref_key:`noTitle`,ref:It,class:`vue-data-ui-no-title-space`,style:`height:36px; width: 100%;background:transparent`},null,512)):f(``,!0),F.value.title.text?(y(),p(`div`,{key:3,ref_key:`chartTitle`,ref:Pt,style:`width:100%;background:transparent`},[(y(),d(ye,{key:`title_${Lt.value}`,config:{title:{cy:`pyramid-div-title`,...F.value.title},subtitle:{cy:`pyramid-div-subtitle`,...F.value.title.subtitle}}},null,8,[`config`]))],512)):f(``,!0),P.value.userOptions.show&&jt.value&&(w(Xt)||w(Jt))?(y(),d(w(Et),Le({ref_key:`userOptionsRef`,ref:Vt,key:`user_options_${Nt.value}`,backgroundColor:F.value.backgroundColor,color:F.value.color,isImaging:w(on),isPrinting:w(an),uid:O.value,hasTooltip:P.value.userOptions.buttons.tooltip&&F.value.tooltip.show,isFullscreen:Z.value,isTooltip:U.value.showTooltip,chartElement:j.value},w(we)(P.value.userOptions,`pdf csv img svg table fullscreen altCopy annotator`),{isAnnotation:Q.value,tableDialog:P.value.table.useDialog,isCursorPointer:z.value,onToggleFullscreen:Dn,onGeneratePdf:w(sn),onGenerateCsv:En,onGenerateImage:w(Bn),onGenerateSvg:w(zn),onToggleTable:On,onToggleTooltip:kn,onToggleAnnotator:An,onCopyAlt:Vn,style:{visibility:w(Xt)?w(Jt)?`visible`:`hidden`:`visible`}}),Fe({_:2},[x(w(Ce)(i.$slots,`menuIcon optionTooltip optionPdf optionCsv optionImg optionSvg optionTable optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),e=>({name:e,fn:E(t=>[S(i.$slots,e,v(_(w(Te)(e,t))),void 0,!0)])}))]),1040,[`backgroundColor`,`color`,`isImaging`,`isPrinting`,`uid`,`hasTooltip`,`isFullscreen`,`isTooltip`,`chartElement`,`isAnnotation`,`tableDialog`,`isCursorPointer`,`onGeneratePdf`,`onGenerateImage`,`onGenerateSvg`,`style`])):f(``,!0),m(`div`,Ye,[(y(),p(`svg`,{ref_key:`svgRef`,ref:B,xmlns:w(le),class:ze({"vue-data-ui-fullscreen--on":Z.value,"vue-data-ui-fulscreen--off":!Z.value}),viewBox:`0 0 ${W.value.width<=0?10:W.value.width} ${W.value.height<=0?10:W.value.height}`,style:Be(`max-width:100%;overflow:visible;background:transparent;color:${F.value.color};visibility:${w(pn)?`visible`:`hidden`}`),tabindex:`0`,"aria-describedby":`chart-instructions-${O.value}`,onFocus:Hn,onBlur:Un,onKeydown:Wn},[h(w(Dt)),S(i.$slots,`svg-underlayer`,{svg:{...W.value,drawingArea:G.value,isPrintingImg:w(an)||w(on)||w(Ln),isPrintingSvg:w(Rn)}},void 0,!0),i.$slots[`chart-background`]?(y(),p(`foreignObject`,{key:0,x:G.value.left,y:G.value.top,width:Math.max(.1,G.value.width),height:Math.max(.1,G.value.height),style:{pointerEvents:`none`}},[S(i.$slots,`chart-background`,{},void 0,!0)],8,Ze)):f(``,!0),m(`defs`,null,[h(Ae,{t:`linear`,id:`age_pyramid_left_${O.value}`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`0%`,stops:[[`0%`,L.value.left.color,1],[`100%`,w(te)(w(re)(L.value.left.color,L.value.gradient.shiftHue),100-L.value.gradient.intensity),1]]},null,8,[`id`,`stops`]),h(Ae,{t:`linear`,id:`age_pyramid_right_${O.value}`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`0%`,stops:[[`0%`,w(te)(w(re)(L.value.right.color,L.value.gradient.shiftHue),100-L.value.gradient.intensity),1],[`100%`,L.value.right.color,1]]},null,8,[`id`,`stops`])]),(y(!0),p(l,null,x(Y.value,(e,t)=>(y(),p(`g`,null,[m(`rect`,{x:e.left.x,y:e.left.y,width:w(s)(e.left.width<=0?1e-4:e.left.width),height:e.left.height<=0?1e-4:e.left.height,fill:L.value.gradient.underlayer,rx:L.value.borderRadius},null,8,Qe),m(`rect`,{x:e.left.x,y:e.left.y,width:e.left.width<=0?1e-4:e.left.width,height:e.left.height<=0?1e-4:e.left.height,fill:L.value.gradient.show?`url(#age_pyramid_left_${O.value})`:e.left.color,rx:L.value.borderRadius},null,8,$e),m(`rect`,{x:e.right.x,y:e.right.y,width:e.right.width<=0?1e-4:e.right.width,height:e.right.height<=0?1e-4:e.right.height,fill:L.value.gradient.underlayer,rx:L.value.borderRadius},null,8,et),m(`rect`,{x:e.right.x,y:e.right.y,width:e.right.width<=0?1e-4:e.right.width,height:e.right.height<=0?1e-4:e.right.height,fill:L.value.gradient.show?`url(#age_pyramid_right_${O.value})`:e.right.color,rx:L.value.borderRadius},null,8,tt)]))),256)),(y(!0),p(l,null,x(Y.value,(e,t)=>(y(),p(`g`,null,[R.value.show?(y(),p(l,{key:0},[!R.value.showOnHover||R.value.showOnHover&&A.value===t?(y(),p(`text`,{key:0,x:e.left.x+Math.max(1e-4,e.left.width)-R.value.offsetX-6,y:e.left.y+Math.max(1e-4,e.left.height/2)+L.value.gap/2,"text-anchor":`end`,"dominant-baseline":`middle`,"font-size":R.value.fontSize,"font-weight":R.value.bold?`bold`:`normal`,fill:R.value.color,stroke:F.value.backgroundColor,"paint-order":`stroke fill`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`3`},C(w(c)(R.value.formatter,e.left.value,w(a)({v:e.left.value}),{datapoint:e.left,seriesIndex:t})),9,nt)):f(``,!0)],64)):f(``,!0),R.value.show?(y(),p(l,{key:1},[!R.value.showOnHover||R.value.showOnHover&&A.value===t?(y(),p(`text`,{key:0,x:e.right.x+R.value.offsetX+6,y:e.right.y+Math.max(1e-4,e.right.height/2)+L.value.gap/2,"text-anchor":`start`,"dominant-baseline":`middle`,"font-size":R.value.fontSize,"font-weight":R.value.bold?`bold`:`normal`,fill:R.value.color,stroke:F.value.backgroundColor,"paint-order":`stroke fill`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`3`},C(w(c)(R.value.formatter,e.right.value,w(a)({v:e.right.value}),{datapoint:e.right,seriesIndex:t})),9,rt)):f(``,!0)],64)):f(``,!0)]))),256)),m(`g`,null,[I.value.sideTitles.show?(y(),p(`g`,it,[m(`text`,{x:G.value.left,y:I.value.sideTitles.fontSize,fill:I.value.sideTitles.useSideColor?L.value.left.color:I.value.sideTitles.color,"font-size":I.value.sideTitles.fontSize,"text-anchor":`start`,"font-weight":I.value.sideTitles.bold?`bold`:`normal`},C(P.value.translations.female),9,at),m(`text`,{x:G.value.right,y:I.value.sideTitles.fontSize,fill:I.value.sideTitles.useSideColor?L.value.right.color:I.value.sideTitles.color,"font-size":I.value.sideTitles.fontSize,"text-anchor":`end`,"font-weight":I.value.sideTitles.bold?`bold`:`normal`},C(P.value.translations.male),9,ot)])):f(``,!0),I.value.yAxis.show?(y(),p(`g`,st,[(y(!0),p(l,null,x(_n.value,(e,t)=>(y(),p(l,null,[t%I.value.yAxis.showEvery===0&&(!R.value.show||R.value.showOnHover&&A.value===t||A.value===null)||(R.value.show||R.value.showOnHover)&&A.value===t?(y(),p(`text`,{key:0,x:G.value.centerX,y:G.value.top+G.value.height/J.value/2+G.value.height/J.value*t,"dominant-baseline":`middle`,"text-anchor":`middle`,"font-size":I.value.yAxis.fontSize,fill:I.value.yAxis.color,"font-weight":I.value.yAxis.bold?`bold`:`normal`},C(w(c)(I.value.yAxis.formatter,e,w(a)({v:e}),{datapoint:e,seriesIndex:t})),9,ct)):f(``,!0)],64))),256))])):f(``,!0),I.value.xAxis.show?(y(),p(`g`,lt,[F.value.layout.grid.show?(y(),p(`g`,ut,[m(`line`,{x1:K.value.right[0].x,x2:K.value.right.at(-1).x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,dt),m(`line`,{x1:K.value.left[0].x,x2:K.value.left.at(-1).x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,ft)])):f(``,!0),(y(!0),p(l,null,x(K.value.right,(e,t)=>(y(),p(`g`,null,[F.value.layout.grid.show?(y(),p(`line`,{key:0,x1:e.x,x2:e.x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2+4,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,pt)):f(``,!0)]))),256)),(y(!0),p(l,null,x(K.value.left,(e,t)=>(y(),p(`g`,null,[F.value.layout.grid.show?(y(),p(`line`,{key:0,x1:e.x,x2:e.x,y1:G.value.bottom+I.value.xAxis.fontSize/2,y2:G.value.bottom+I.value.xAxis.fontSize/2+4,stroke:F.value.layout.grid.stroke,"stroke-width":F.value.layout.grid.strokeWidth,"stroke-linecap":`round`},null,8,mt)):f(``,!0)]))),256)),m(`g`,{ref_key:`xAxisLabels`,ref:zt},[(y(!0),p(l,null,x(K.value.right,(e,t)=>(y(),p(`text`,{class:`vue-ui-age-pyramid-x-axis-label`,"font-size":I.value.xAxis.fontSize,fill:I.value.xAxis.color,"text-anchor":I.value.xAxis.rotation>0?`start`:I.value.xAxis.rotation<0?`end`:`middle`,"font-weight":I.value.xAxis.bold?`bold`:`normal`,transform:`translate(${e.x}, ${G.value.bottom+I.value.xAxis.fontSize*2}) rotate(${I.value.xAxis.rotation})`},C(w(c)(I.value.xAxis.formatter,e.value/I.value.xAxis.scale,w(a)({v:e.value/F.value.layout.dataLabels.xAxis.scale}),{datapoint:e,seriesIndex:t})),9,ht))),256)),(y(!0),p(l,null,x(K.value.left,(e,t)=>(y(),p(`text`,{class:`vue-ui-age-pyramid-x-axis-label`,"font-size":I.value.xAxis.fontSize,fill:I.value.xAxis.color,"text-anchor":I.value.xAxis.rotation>0?`start`:I.value.xAxis.rotation<0?`end`:`middle`,"font-weight":I.value.xAxis.bold?`bold`:`normal`,transform:`translate(${e.x}, ${G.value.bottom+I.value.xAxis.fontSize*2}) rotate(${I.value.xAxis.rotation})`},C(w(c)(I.value.xAxis.formatter,e.value/I.value.xAxis.scale,w(a)({v:e.value/F.value.layout.dataLabels.xAxis.scale}),{datapoint:e,seriesIndex:t})),9,gt))),256))],512),m(`text`,{x:G.value.right,y:W.value.height,"text-anchor":`end`,"font-size":I.value.xAxis.fontSize,fill:I.value.xAxis.color,"font-weight":I.value.xAxis.bold?`bold`:`normal`},C(I.value.xAxis.translation),9,_t)])):f(``,!0)]),(y(!0),p(l,null,x(e.dataset,(e,t)=>(y(),p(`g`,null,[m(`rect`,{x:G.value.left,y:G.value.top+G.value.height/J.value*t-L.value.gap/2,width:G.value.width<=0?1e-4:G.value.width,height:G.value.height/J.value<=0?1e-4:G.value.height/J.value,fill:A.value!==null&&A.value===t?w(te)(F.value.highlighter.color,F.value.highlighter.opacity):`transparent`,onMouseover:n=>Tn(t,e,`pointer`),onMouseleave:n=>Cn(t,e),onClick:n=>Sn(t,e)},null,40,vt)]))),256)),S(i.$slots,`svg`,{svg:{...W.value,drawingArea:G.value,isPrintingImg:w(an)||w(on)||w(Ln),isPrintingSvg:w(Rn)}},void 0,!0)],46,Xe)),i.$slots.hint?(y(),p(`div`,yt,[S(i.$slots,`hint`,v(_({hint:P.value.a11y.translations.keyboardNavigation,isVisible:Ut.value})),void 0,!0)])):f(``,!0)]),i.$slots.watermark?(y(),p(`div`,bt,[S(i.$slots,`watermark`,v(_({isPrinting:w(an)||w(on)||w(Ln)||w(Rn)})),void 0,!0)])):f(``,!0),S(i.$slots,`legend`,{legend:Y.value},void 0,!0),i.$slots.source?(y(),p(`div`,{key:6,ref_key:`source`,ref:Ft,dir:`auto`},[S(i.$slots,`source`,{},void 0,!0)],512)):f(``,!0),h(w(xt),{teleportTo:F.value.tooltip.teleportTo,show:U.value.showTooltip&&k.value,backgroundColor:F.value.tooltip.backgroundColor,color:F.value.tooltip.color,borderRadius:F.value.tooltip.borderRadius,borderColor:F.value.tooltip.borderColor,borderWidth:F.value.tooltip.borderWidth,fontSize:F.value.tooltip.fontSize,backgroundOpacity:F.value.tooltip.backgroundOpacity,position:F.value.tooltip.position,offsetX:F.value.tooltip.offsetX,offsetY:F.value.tooltip.offsetY,parent:j.value,content:Mt.value,isFullscreen:Z.value,isCustom:F.value.tooltip.customFormat&&typeof F.value.tooltip.customFormat==`function`,smooth:F.value.tooltip.smooth,backdropFilter:F.value.tooltip.backdropFilter,smoothForce:F.value.tooltip.smoothForce,smoothSnapThreshold:F.value.tooltip.smoothSnapThreshold,isA11yMode:N.value===`keyboard`,a11yPosition:Ht.value},{"tooltip-before":E(()=>[S(i.$slots,`tooltip-before`,v(_({...bn.value})),void 0,!0)]),tooltip:E(()=>[S(i.$slots,`tooltip`,v(_({...bn.value})),void 0,!0)]),"tooltip-after":E(()=>[S(i.$slots,`tooltip-after`,v(_({...bn.value})),void 0,!0)]),_:3},8,[`teleportTo`,`show`,`backgroundColor`,`color`,`borderRadius`,`borderColor`,`borderWidth`,`fontSize`,`backgroundOpacity`,`position`,`offsetX`,`offsetY`,`parent`,`content`,`isFullscreen`,`isCustom`,`smooth`,`backdropFilter`,`smoothForce`,`smoothSnapThreshold`,`isA11yMode`,`a11yPosition`]),jt.value&&P.value.userOptions.buttons.table?(y(),d(Ue($.value.component),Le({key:7},$.value.props,{ref_key:`tableUnit`,ref:Bt,onClose:Pn}),Fe({content:E(()=>[(y(),d(w(wt),{key:`table_${Rt.value}`,colNames:X.value.colNames,head:X.value.head,body:X.value.body,config:X.value.config,title:P.value.table.useDialog?``:$.value.title,withCloseButton:!P.value.table.useDialog,isCursorPointer:z.value,onClose:Pn},{th:E(({th:e})=>[Ie(C(e),1)]),td:E(({td:e})=>[Ie(C(e),1)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`,`isCursorPointer`]))]),_:2},[P.value.table.useDialog?{name:`title`,fn:E(()=>[Ie(C($.value.title),1)]),key:`0`}:void 0,P.value.table.useDialog?{name:`actions`,fn:E(()=>[m(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:o[0]||=e=>En(P.value.userOptions.callbacks.csv),style:Be({cursor:z.value?`pointer`:`default`})},[h(w(St),{name:`fileCsv`,stroke:$.value.props.color},null,8,[`stroke`])],4)]),key:`1`}:void 0]),1040)):f(``,!0),S(i.$slots,`skeleton`,{},()=>[w(Gt)?(y(),d(pe,{key:0})):f(``,!0)],!0)],46,qe))}},[[`__scopeId`,`data-v-7bff9fd5`]]);export{Ke as n,xt as t};