vue-data-ui 2.9.2 → 2.9.4

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 (167) hide show
  1. package/dist/{Arrow-KvKZ2SBJ.cjs → Arrow-CgYR3FXj.cjs} +1 -1
  2. package/dist/{Arrow-DIEvl571.js → Arrow-CyxG4Ftp.js} +1 -1
  3. package/dist/{BaseIcon-BH4bJe82.js → BaseIcon-CnzdK8aV.js} +1 -1
  4. package/dist/{BaseIcon-C6L3qbQ8.cjs → BaseIcon-DKFlmXEr.cjs} +1 -1
  5. package/dist/{ColorPicker-Dnjy6olA.js → ColorPicker-CYa3DFQB.js} +3 -3
  6. package/dist/{ColorPicker-BmVm6Lqe.cjs → ColorPicker-PNrzRxPw.cjs} +1 -1
  7. package/dist/{DataTable-Cz1SDtvT.cjs → DataTable-CW5aC-bf.cjs} +1 -1
  8. package/dist/{DataTable-CaUgku7o.js → DataTable-aPT7Gaka.js} +2 -2
  9. package/dist/{Legend-Bl_MrORk.cjs → Legend-CUqaARo5.cjs} +1 -1
  10. package/dist/{Legend-BxZxsJCp.js → Legend-Cfm0ctX6.js} +2 -2
  11. package/dist/{PackageVersion-BEE_4baV.js → PackageVersion-BEjIamIO.js} +1 -1
  12. package/dist/{PackageVersion-BrUdYdIC.cjs → PackageVersion-DDIH1bP5.cjs} +1 -1
  13. package/dist/{PenAndPaper-DyGcaflS.cjs → PenAndPaper-B8Lcd-xn.cjs} +1 -1
  14. package/dist/{PenAndPaper-B3WdOAcZ.js → PenAndPaper-hBDvj9b2.js} +3 -3
  15. package/dist/{Shape-DuVb3Mev.cjs → Shape-Ca8AZL7o.cjs} +1 -1
  16. package/dist/{Shape-Hrc-BQkc.js → Shape-WIhUvB3A.js} +1 -1
  17. package/dist/{Slicer-2ZyRAred.js → Slicer-YYOuyiYz.js} +2 -2
  18. package/dist/{Slicer-DVYmI2V1.cjs → Slicer-yLatG2Q8.cjs} +1 -1
  19. package/dist/{Title-BGh0hWb2.cjs → Title-D7uuc4dY.cjs} +1 -1
  20. package/dist/{Title-CGY0WlAI.js → Title-DBZSWCMO.js} +1 -1
  21. package/dist/{Tooltip-DckFFIYj.cjs → Tooltip-D--0gUVq.cjs} +1 -1
  22. package/dist/{Tooltip-BfEhZz9k.js → Tooltip-DokmjO-n.js} +1 -1
  23. package/dist/{dom-to-png-BgJJyI6M.js → dom-to-png-DsYwe1no.js} +1 -1
  24. package/dist/{dom-to-png-DnnnXKpR.cjs → dom-to-png-J1vxOmp_.cjs} +1 -1
  25. package/dist/{img-DkpJ0ciT.js → img-COrXIjCE.js} +1 -1
  26. package/dist/{img-DT7UDEPk.cjs → img-CU6TyX57.cjs} +1 -1
  27. package/dist/{index-9ZicrZWM.js → index-Ldu7K4PE.js} +47 -40
  28. package/dist/index-SCeiWj92.cjs +9 -0
  29. package/dist/{pdf-zqw8E-me.js → pdf-B9y2xWfS.js} +18 -18
  30. package/dist/pdf-BujZw1ZQ.cjs +1 -0
  31. package/dist/style.css +1 -1
  32. package/dist/types/vue-data-ui.d.cts +2 -0
  33. package/dist/types/vue-data-ui.d.ts +2 -0
  34. package/dist/{useNestedProp-BS9eJthK.cjs → useNestedProp-BV2kijyF.cjs} +1 -1
  35. package/dist/{useNestedProp-s1XZrtPS.js → useNestedProp-WCQEv2hV.js} +1 -1
  36. package/dist/{usePrinter-D7IXLE53.js → usePrinter-Bca_ZkY4.js} +3 -3
  37. package/dist/{usePrinter-vFXYgZiT.cjs → usePrinter-CWjBWUyP.cjs} +1 -1
  38. package/dist/{vue-data-ui-gEqI-hOT.js → vue-data-ui-BQay3z7m.js} +61 -61
  39. package/dist/{vue-data-ui-CNieT2ov.cjs → vue-data-ui-BmmN2NNv.cjs} +1 -1
  40. package/dist/vue-data-ui.cjs +1 -1
  41. package/dist/vue-data-ui.js +18 -18
  42. package/dist/{vue-ui-3d-bar-DX5baNUz.cjs → vue-ui-3d-bar-BRTXPLII.cjs} +1 -1
  43. package/dist/{vue-ui-3d-bar-Sbk5MT1S.js → vue-ui-3d-bar-CB7Pf9zo.js} +9 -9
  44. package/dist/{vue-ui-accordion-DIMalTE4.cjs → vue-ui-accordion-BL41vY_P.cjs} +1 -1
  45. package/dist/{vue-ui-accordion-62KnRfCb.js → vue-ui-accordion-BeqSE4u4.js} +3 -3
  46. package/dist/{vue-ui-age-pyramid-DfuEC7WE.cjs → vue-ui-age-pyramid-Cyryx6dt.cjs} +1 -1
  47. package/dist/{vue-ui-age-pyramid-BkhVyOTM.js → vue-ui-age-pyramid-DXOH1De2.js} +10 -10
  48. package/dist/vue-ui-annotator-47R4n6BM.cjs +371 -0
  49. package/dist/{vue-ui-annotator-CrwbL3rn.js → vue-ui-annotator-pqbJ1XeI.js} +43 -43
  50. package/dist/{vue-ui-bullet-BVr_zBo7.js → vue-ui-bullet-C4nINrVz.js} +8 -8
  51. package/dist/{vue-ui-bullet-TmXeLFPZ.cjs → vue-ui-bullet-CrWSjpKP.cjs} +1 -1
  52. package/dist/{vue-ui-candlestick-BArypZ1A.js → vue-ui-candlestick-B7BBpXBZ.js} +11 -11
  53. package/dist/{vue-ui-candlestick-BFJ8I4sb.cjs → vue-ui-candlestick-CwCEV4Dk.cjs} +1 -1
  54. package/dist/{vue-ui-carousel-table-B1i5b5xU.cjs → vue-ui-carousel-table-8pfD4UOc.cjs} +1 -1
  55. package/dist/{vue-ui-carousel-table-CqWp06Xz.js → vue-ui-carousel-table-Dmcbfq6Q.js} +4 -4
  56. package/dist/{vue-ui-chestnut-B8oiuRgc.cjs → vue-ui-chestnut-VcW4bYRK.cjs} +1 -1
  57. package/dist/{vue-ui-chestnut-EHo3sSMv.js → vue-ui-chestnut-nOXmtueI.js} +8 -8
  58. package/dist/{vue-ui-circle-pack-kx10AVM0.js → vue-ui-circle-pack-Dbqw_xRR.js} +9 -9
  59. package/dist/{vue-ui-circle-pack-BGLhSNyo.cjs → vue-ui-circle-pack-XI4kOOSC.cjs} +1 -1
  60. package/dist/{vue-ui-cursor-C8qofYJh.js → vue-ui-cursor-BXXcSCXO.js} +2 -2
  61. package/dist/{vue-ui-cursor-H77Z-m2e.cjs → vue-ui-cursor-DOZ1d1Gv.cjs} +1 -1
  62. package/dist/{vue-ui-dashboard-4YFqFygh.cjs → vue-ui-dashboard-CDWd7y-K.cjs} +1 -1
  63. package/dist/{vue-ui-dashboard-Bn2slDQx.js → vue-ui-dashboard-Dj5UeEUe.js} +62 -62
  64. package/dist/{vue-ui-digits-DbSV0D-j.cjs → vue-ui-digits-CMBdp5dX.cjs} +1 -1
  65. package/dist/{vue-ui-digits-Cv__rzXF.js → vue-ui-digits-DOX9plTt.js} +2 -2
  66. package/dist/{vue-ui-donut-Bno5POxU.cjs → vue-ui-donut-DCjz_RJx.cjs} +1 -1
  67. package/dist/{vue-ui-donut-D_CLR29p.js → vue-ui-donut-V6slQS8W.js} +28 -28
  68. package/dist/{vue-ui-donut-evolution-BgNwQ1J8.js → vue-ui-donut-evolution-BHBEHaBz.js} +40 -40
  69. package/dist/{vue-ui-donut-evolution-Dg6laY3D.cjs → vue-ui-donut-evolution-DJQiBc2K.cjs} +1 -1
  70. package/dist/{vue-ui-dumbbell-C5Z8rSTk.js → vue-ui-dumbbell-c6ZUS2gn.js} +10 -10
  71. package/dist/{vue-ui-dumbbell-DWQl4sxh.cjs → vue-ui-dumbbell-qP17lDtS.cjs} +1 -1
  72. package/dist/{vue-ui-flow-DKS1oZHc.js → vue-ui-flow-BftL5SCF.js} +36 -36
  73. package/dist/{vue-ui-flow-D0t3MSCU.cjs → vue-ui-flow-NFVQYGwe.cjs} +1 -1
  74. package/dist/{vue-ui-funnel-CqhhBoYG.cjs → vue-ui-funnel-Bm78Fuif.cjs} +1 -1
  75. package/dist/{vue-ui-funnel-r57KM4Wi.js → vue-ui-funnel-BxnyO-cX.js} +9 -9
  76. package/dist/{vue-ui-galaxy-CLIAdqkr.js → vue-ui-galaxy-ErKBaW-Q.js} +35 -35
  77. package/dist/{vue-ui-galaxy-BeQSEKLG.cjs → vue-ui-galaxy-PqPqi1rL.cjs} +1 -1
  78. package/dist/{vue-ui-gauge-CcTneeaQ.cjs → vue-ui-gauge-5uNTa5st.cjs} +1 -1
  79. package/dist/{vue-ui-gauge-BQ4S55FH.js → vue-ui-gauge-CC4gRmiU.js} +19 -19
  80. package/dist/{vue-ui-gizmo-B_rVeweF.cjs → vue-ui-gizmo-Cke9n_3I.cjs} +1 -1
  81. package/dist/{vue-ui-gizmo-DACB7BcV.js → vue-ui-gizmo-DeeQXNxB.js} +3 -3
  82. package/dist/{vue-ui-heatmap-DBtRfAWr.cjs → vue-ui-heatmap-DIkfrZTI.cjs} +1 -1
  83. package/dist/{vue-ui-heatmap-DNvbR504.js → vue-ui-heatmap-DVmGDa29.js} +33 -33
  84. package/dist/{vue-ui-history-plot-MfnR_Gg0.js → vue-ui-history-plot-BdH6ipQR.js} +11 -11
  85. package/dist/{vue-ui-history-plot-B1zXFmOc.cjs → vue-ui-history-plot-Bg9LcJ-j.cjs} +1 -1
  86. package/dist/{vue-ui-kpi-DDMCa5qe.js → vue-ui-kpi-DZm8eIsy.js} +3 -3
  87. package/dist/{vue-ui-kpi-Dm71j1ZP.cjs → vue-ui-kpi-O8tB2EAC.cjs} +1 -1
  88. package/dist/{vue-ui-mini-loader-CROjVz1w.cjs → vue-ui-mini-loader-B74fpNsK.cjs} +1 -1
  89. package/dist/{vue-ui-mini-loader-mMxdW73Y.js → vue-ui-mini-loader-CF9PEaSJ.js} +2 -2
  90. package/dist/{vue-ui-molecule-BHUWRS5i.js → vue-ui-molecule-BzTuiwZn.js} +22 -22
  91. package/dist/{vue-ui-molecule-BulwtJre.cjs → vue-ui-molecule-CWTtY72k.cjs} +1 -1
  92. package/dist/{vue-ui-mood-radar-CUWTjV4S.js → vue-ui-mood-radar-Dc_RBdIt.js} +11 -11
  93. package/dist/{vue-ui-mood-radar-BhS9UcqE.cjs → vue-ui-mood-radar-DqpXi_vx.cjs} +1 -1
  94. package/dist/{vue-ui-nested-donuts-Db_lFOB1.cjs → vue-ui-nested-donuts-C9aOv8cV.cjs} +1 -1
  95. package/dist/{vue-ui-nested-donuts-BQk9K-uM.js → vue-ui-nested-donuts-DRMKAx-K.js} +11 -11
  96. package/dist/{vue-ui-onion-C38MS0We.cjs → vue-ui-onion-CQlidixa.cjs} +1 -1
  97. package/dist/{vue-ui-onion-CEP_SVGa.js → vue-ui-onion-DIp0iWEm.js} +11 -11
  98. package/dist/{vue-ui-parallel-coordinate-plot-DOER4ePV.cjs → vue-ui-parallel-coordinate-plot-BEJ7Hjd_.cjs} +1 -1
  99. package/dist/{vue-ui-parallel-coordinate-plot-DlIPqsBr.js → vue-ui-parallel-coordinate-plot-D2gzzyV6.js} +12 -12
  100. package/dist/{vue-ui-quadrant-BzA3R8WL.cjs → vue-ui-quadrant-BOaaj6gv.cjs} +1 -1
  101. package/dist/{vue-ui-quadrant-hEW2euTx.js → vue-ui-quadrant-DHRPPQzH.js} +40 -40
  102. package/dist/{vue-ui-quick-chart-D43_sxe7.js → vue-ui-quick-chart-Nf2FEMS_.js} +37 -37
  103. package/dist/{vue-ui-quick-chart-vCYn3Ycg.cjs → vue-ui-quick-chart-qDpGCH4Q.cjs} +1 -1
  104. package/dist/{vue-ui-radar-ea-S6hNo.js → vue-ui-radar-BhLZ-5X_.js} +12 -12
  105. package/dist/{vue-ui-radar-CrPGLRgF.cjs → vue-ui-radar-D9u86iM_.cjs} +1 -1
  106. package/dist/{vue-ui-rating-Cr7OYhms.js → vue-ui-rating-B1kvbIOJ.js} +10 -10
  107. package/dist/{vue-ui-rating-DQhxPqnC.cjs → vue-ui-rating-hXwiZ658.cjs} +1 -1
  108. package/dist/{vue-ui-relation-circle-BD63yYPk.js → vue-ui-relation-circle-DlegAoHJ.js} +7 -7
  109. package/dist/{vue-ui-relation-circle-Ci_zTDv6.cjs → vue-ui-relation-circle-DvAO3fkO.cjs} +1 -1
  110. package/dist/{vue-ui-rings-Dup7cJhU.js → vue-ui-rings-DTILCifX.js} +22 -22
  111. package/dist/{vue-ui-rings-o_5TelyF.cjs → vue-ui-rings-ZsNoADO7.cjs} +1 -1
  112. package/dist/{vue-ui-scatter-CpUvuCj4.js → vue-ui-scatter-CVn7AqGT.js} +44 -44
  113. package/dist/{vue-ui-scatter-D1p3fd_k.cjs → vue-ui-scatter-DS8YLaTC.cjs} +1 -1
  114. package/dist/{vue-ui-skeleton-BjminQzl.js → vue-ui-skeleton-CLrl96Gp.js} +57 -57
  115. package/dist/{vue-ui-skeleton-BGykkjYQ.cjs → vue-ui-skeleton-D4hXCz3m.cjs} +1 -1
  116. package/dist/{vue-ui-smiley-BtpjYEEP.cjs → vue-ui-smiley-BKEs5-OT.cjs} +1 -1
  117. package/dist/{vue-ui-smiley-CFKscwS7.js → vue-ui-smiley-CoyijT0I.js} +2 -2
  118. package/dist/{vue-ui-spark-trend-CRcDMTzh.cjs → vue-ui-spark-trend-DTwDre2O.cjs} +1 -1
  119. package/dist/{vue-ui-spark-trend-wAANMLZ4.js → vue-ui-spark-trend-JmorBpIp.js} +5 -5
  120. package/dist/{vue-ui-sparkbar-BTUT-uco.js → vue-ui-sparkbar-BcwjiTbk.js} +4 -4
  121. package/dist/{vue-ui-sparkbar-BVh9AOEX.cjs → vue-ui-sparkbar-CV3V99Ed.cjs} +1 -1
  122. package/dist/{vue-ui-sparkgauge-B_N07sh6.cjs → vue-ui-sparkgauge-BZyFxTJ1.cjs} +1 -1
  123. package/dist/{vue-ui-sparkgauge-DXxoZfG0.js → vue-ui-sparkgauge-CCMnqCx0.js} +9 -9
  124. package/dist/{vue-ui-sparkhistogram-cSUQzQ6o.js → vue-ui-sparkhistogram-BxpQOwco.js} +5 -5
  125. package/dist/{vue-ui-sparkhistogram-CHbsbOtx.cjs → vue-ui-sparkhistogram-vlx7Cb26.cjs} +1 -1
  126. package/dist/{vue-ui-sparkline-Cr5KANZ_.cjs → vue-ui-sparkline-BHjhZFcb.cjs} +1 -1
  127. package/dist/{vue-ui-sparkline-_wbJMVVr.js → vue-ui-sparkline-CkEtaWH1.js} +15 -15
  128. package/dist/{vue-ui-sparkstackbar-SRvQImaw.cjs → vue-ui-sparkstackbar-BKXkw6NY.cjs} +1 -1
  129. package/dist/{vue-ui-sparkstackbar-D93-i-tg.js → vue-ui-sparkstackbar-Eip-31FE.js} +5 -5
  130. package/dist/{vue-ui-stackbar-CnZsiebh.js → vue-ui-stackbar-B6taUxpU.js} +13 -13
  131. package/dist/{vue-ui-stackbar-D3KicC2k.cjs → vue-ui-stackbar-CYZcA9l8.cjs} +1 -1
  132. package/dist/{vue-ui-strip-plot-Dz8doRxV.cjs → vue-ui-strip-plot-Cz75jy3H.cjs} +1 -1
  133. package/dist/{vue-ui-strip-plot-Dv-C246v.js → vue-ui-strip-plot-h63h6xVb.js} +13 -14
  134. package/dist/vue-ui-table-BfACPcxW.cjs +14 -0
  135. package/dist/vue-ui-table-DF8MfQ59.js +1482 -0
  136. package/dist/{vue-ui-table-heatmap-C8Vi0yvC.cjs → vue-ui-table-heatmap-CDgDaJqX.cjs} +1 -1
  137. package/dist/{vue-ui-table-heatmap-CYuY_cv8.js → vue-ui-table-heatmap-mEcSMZHP.js} +4 -4
  138. package/dist/{vue-ui-table-sparkline-C4REu4fs.cjs → vue-ui-table-sparkline-Heo61EuM.cjs} +1 -1
  139. package/dist/{vue-ui-table-sparkline-B76wcNNt.js → vue-ui-table-sparkline-hJtU88Q0.js} +5 -5
  140. package/dist/{vue-ui-thermometer-DvNlCnAL.cjs → vue-ui-thermometer-BbzxbL6e.cjs} +1 -1
  141. package/dist/{vue-ui-thermometer-DiZILoae.js → vue-ui-thermometer-b_eOMDGK.js} +7 -7
  142. package/dist/{vue-ui-timer-DxYKc_c7.js → vue-ui-timer-CuXuiuA_.js} +5 -5
  143. package/dist/{vue-ui-timer-DUN6vOs9.cjs → vue-ui-timer-bfXj2Xo1.cjs} +1 -1
  144. package/dist/{vue-ui-tiremarks-D52pzq2N.js → vue-ui-tiremarks-BRcnMsCk.js} +7 -7
  145. package/dist/{vue-ui-tiremarks-BV7MTnlS.cjs → vue-ui-tiremarks-_io5f_yy.cjs} +1 -1
  146. package/dist/{vue-ui-treemap-gQhTSE_P.cjs → vue-ui-treemap-6-kgqJkN.cjs} +1 -1
  147. package/dist/{vue-ui-treemap-CNbw7CLO.js → vue-ui-treemap-B1udyPJO.js} +12 -12
  148. package/dist/{vue-ui-vertical-bar-ClJttiMf.cjs → vue-ui-vertical-bar-BBiuT_QA.cjs} +1 -1
  149. package/dist/{vue-ui-vertical-bar-B_nsQpZa.js → vue-ui-vertical-bar-DdxNhCdC.js} +12 -12
  150. package/dist/{vue-ui-waffle-CLfNk30s.js → vue-ui-waffle-Bkvw0dyy.js} +37 -37
  151. package/dist/{vue-ui-waffle-BYBctA3T.cjs → vue-ui-waffle-Dqy7BytZ.cjs} +1 -1
  152. package/dist/{vue-ui-wheel-4Yit1iRJ.js → vue-ui-wheel-B5M90GQn.js} +7 -7
  153. package/dist/{vue-ui-wheel-Bj6lxA5M.cjs → vue-ui-wheel-DM6r0w_a.cjs} +1 -1
  154. package/dist/{vue-ui-word-cloud-D94M5Lsf.js → vue-ui-word-cloud-B1u5uWI-.js} +10 -10
  155. package/dist/{vue-ui-word-cloud-AZ1OJrxo.cjs → vue-ui-word-cloud-BeLBUUGY.cjs} +1 -1
  156. package/dist/{vue-ui-world-rkzHCxBG.js → vue-ui-world-CdCSnlhK.js} +12 -12
  157. package/dist/{vue-ui-world-BwcOIaHG.cjs → vue-ui-world-UyenY3MD.cjs} +2 -2
  158. package/dist/{vue-ui-xy-DJiY5DSr.cjs → vue-ui-xy-B-NzV2X6.cjs} +2 -2
  159. package/dist/{vue-ui-xy-DXgpQ8zr.js → vue-ui-xy-CFq6SBzu.js} +34 -35
  160. package/dist/{vue-ui-xy-canvas-CAfAcJWj.js → vue-ui-xy-canvas-CWsJDLOK.js} +12 -12
  161. package/dist/{vue-ui-xy-canvas-DsuvSNM3.cjs → vue-ui-xy-canvas-Df-vG-MU.cjs} +1 -1
  162. package/package.json +1 -1
  163. package/dist/index-DjDcQ8pe.cjs +0 -9
  164. package/dist/pdf-DuohwkFu.cjs +0 -1
  165. package/dist/vue-ui-annotator-BGWZZUN7.cjs +0 -371
  166. package/dist/vue-ui-table-Dkoj_poY.js +0 -1466
  167. package/dist/vue-ui-table-iE1t-zP9.cjs +0 -14
@@ -1,18 +1,18 @@
1
- import { computed as x, ref as h, watch as at, onMounted as ot, onBeforeUnmount as st, createElementBlock as r, openBlock as o, unref as n, normalizeStyle as Y, normalizeClass as Re, createBlock as V, createCommentVNode as c, createElementVNode as d, createVNode as pe, createSlots as ut, withCtx as _, renderSlot as $, normalizeProps as K, guardReactiveProps as Q, Fragment as W, renderList as X, toDisplayString as C, createTextVNode as rt, nextTick as it } from "vue";
2
- import { u as nt, c as vt, t as yt, p as q, a as ct, o as dt, e as fe, b as ht, g as Ee, V as pt, _ as ft, T as gt, X as mt, s as ge, W as xt, i as j, v as A, f as P, q as bt, r as kt, x as wt, y as _t } from "./index-9ZicrZWM.js";
1
+ import { computed as x, ref as h, watch as at, onMounted as ot, onBeforeUnmount as st, createElementBlock as r, openBlock as o, unref as n, normalizeStyle as Y, normalizeClass as Re, createBlock as V, createCommentVNode as c, createElementVNode as d, createVNode as pe, createSlots as ut, withCtx as _, renderSlot as $, normalizeProps as K, guardReactiveProps as Q, Fragment as P, renderList as X, toDisplayString as C, createTextVNode as rt, nextTick as it } from "vue";
2
+ import { u as nt, c as vt, t as yt, p as q, a as ct, o as dt, e as fe, b as ht, g as Ee, U as pt, _ as ft, S as gt, X as mt, s as ge, V as xt, i as j, v as A, f as W, q as bt, r as kt, x as wt, y as _t } from "./index-Ldu7K4PE.js";
3
3
  import { t as $t, u as Mt } from "./useResponsive-Cw4oZ8sQ.js";
4
- import { _ as Ct } from "./Title-CGY0WlAI.js";
5
- import { u as At, U as zt } from "./usePrinter-D7IXLE53.js";
6
- import { _ as St } from "./Tooltip-BfEhZz9k.js";
7
- import { L as Tt } from "./Legend-BxZxsJCp.js";
8
- import { _ as Ue } from "./Shape-Hrc-BQkc.js";
9
- import { D as Lt } from "./DataTable-CaUgku7o.js";
10
- import Bt from "./vue-ui-skeleton-BjminQzl.js";
11
- import Ot from "./vue-ui-accordion-62KnRfCb.js";
12
- import { u as Ge } from "./useNestedProp-s1XZrtPS.js";
13
- import { _ as Nt } from "./PackageVersion-BEE_4baV.js";
14
- import { _ as Wt } from "./PenAndPaper-B3WdOAcZ.js";
15
- import { u as Pt } from "./useUserOptionState-BIvW1Kz7.js";
4
+ import { _ as Ct } from "./Title-DBZSWCMO.js";
5
+ import { u as At, U as zt } from "./usePrinter-Bca_ZkY4.js";
6
+ import { _ as St } from "./Tooltip-DokmjO-n.js";
7
+ import { L as Tt } from "./Legend-Cfm0ctX6.js";
8
+ import { _ as Ue } from "./Shape-WIhUvB3A.js";
9
+ import { D as Lt } from "./DataTable-aPT7Gaka.js";
10
+ import Bt from "./vue-ui-skeleton-CLrl96Gp.js";
11
+ import Ot from "./vue-ui-accordion-BeqSE4u4.js";
12
+ import { u as Ge } from "./useNestedProp-WCQEv2hV.js";
13
+ import { _ as Nt } from "./PackageVersion-BEjIamIO.js";
14
+ import { _ as Pt } from "./PenAndPaper-hBDvj9b2.js";
15
+ import { u as Wt } from "./useUserOptionState-BIvW1Kz7.js";
16
16
  import { u as Ft } from "./useChartAccessibility-BWojgys7.js";
17
17
  import { _ as It } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
18
  const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { key: 1 }, jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Rt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Et = { key: 2 }, Ut = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], Gt = { key: 0 }, qt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover"], Ht = { key: 1 }, Jt = { key: 3 }, Kt = ["id"], Qt = ["stop-color"], Zt = ["stop-color"], el = ["id"], tl = ["stop-color"], ll = ["stop-color"], al = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], ol = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], sl = { key: 0 }, ul = ["d", "stroke", "stroke-width"], rl = ["d", "stroke", "stroke-width"], il = ["d", "stroke", "stroke-width"], nl = ["d", "stroke", "stroke-width"], vl = {
@@ -29,7 +29,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
29
29
  height: "20",
30
30
  width: "20",
31
31
  style: { overflow: "hidden", background: "transparent" }
32
- }, Wl = { key: 0 }, Pl = ["innerHTML"], Fl = {
32
+ }, Pl = { key: 0 }, Wl = ["innerHTML"], Fl = {
33
33
  __name: "vue-ui-scatter",
34
34
  props: {
35
35
  config: {
@@ -49,7 +49,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
49
49
  const { vue_ui_scatter: Je } = nt(), F = qe, ee = x(() => !!F.dataset && F.dataset.length), z = h(vt()), Ke = h(null), ue = h(!1), re = h(""), me = h(0), Z = h(null), xe = h(null), be = h(null), ke = h(null), we = h(null), _e = h(0), $e = h(0), Me = h(0), e = x({
50
50
  get: () => Se(),
51
51
  set: (t) => t
52
- }), { userOptionsVisible: ie, setUserOptionsVisibility: Ce, keepUserOptionState: Ae } = Pt({ config: e.value }), { svgRef: ze } = Ft({ config: e.value.style.title });
52
+ }), { userOptionsVisible: ie, setUserOptionsVisibility: Ce, keepUserOptionState: Ae } = Wt({ config: e.value }), { svgRef: ze } = Ft({ config: e.value.style.title });
53
53
  function Se() {
54
54
  const t = Ge({
55
55
  userConfig: F.config,
@@ -97,7 +97,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
97
97
  elementId: `vue-ui-scatter_${z.value}`,
98
98
  fileName: e.value.style.title.text || "vue-ui-scatter",
99
99
  options: e.value.userOptions.print
100
- }), Qe = x(() => e.value.userOptions.show && !e.value.style.title.text), We = x(() => ht(e.value.customPalette)), B = h({
100
+ }), Qe = x(() => e.value.userOptions.show && !e.value.style.title.text), Pe = x(() => ht(e.value.customPalette)), B = h({
101
101
  showTable: e.value.table.show,
102
102
  showTooltip: e.value.style.tooltip.show
103
103
  }), b = h({
@@ -150,7 +150,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
150
150
  threshold: e.value.downsample.threshold
151
151
  }),
152
152
  id: l,
153
- color: t.color ? t.color : We.value[u] || q[u] || q[u % q.length],
153
+ color: t.color ? t.color : Pe.value[u] || q[u] || q[u % q.length],
154
154
  opacity: m.value.includes(l) ? 0.5 : 1,
155
155
  shape: t.shape ?? "circle",
156
156
  segregate: () => De(l),
@@ -173,7 +173,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
173
173
  name: l.name || ""
174
174
  },
175
175
  clusterName: t.name,
176
- color: t.color ? t.color : We.value[u] || q[u] || q[u % q.length],
176
+ color: t.color ? t.color : Pe.value[u] || q[u] || q[u % q.length],
177
177
  id: `plot_${z.value}_${Math.random()}`,
178
178
  weight: l.weight ?? e.value.style.layout.plots.radius
179
179
  }))
@@ -206,7 +206,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
206
206
  };
207
207
  })
208
208
  };
209
- })), Pe = x(() => Math.max(...S.value.flatMap((t) => t.plots.map((u) => Math.abs(u.deviation)))));
209
+ })), We = x(() => Math.max(...S.value.flatMap((t) => t.plots.map((u) => Math.abs(u.deviation)))));
210
210
  function et() {
211
211
  return S.value;
212
212
  }
@@ -275,7 +275,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
275
275
  }) : (t.clusterName && (l += `<div style="display:flex;gap:3px;align-items:center">${t.clusterName}</div>`), t.v.name && (l += `<div>${t.v.name}</div>`), l += `<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, l += `<div>${e.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(t.v.x) ? "-" : j(
276
276
  e.value.style.layout.plots.selectors.labels.x.formatter,
277
277
  t.v.x,
278
- P({
278
+ W({
279
279
  p: e.value.style.tooltip.prefix,
280
280
  v: t.v.x,
281
281
  s: e.value.style.tooltip.suffix,
@@ -285,14 +285,14 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
285
285
  )}</b></div>`, l += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(t.v.y) ? "-" : j(
286
286
  e.value.style.layout.plots.selectors.labels.y.formatter,
287
287
  t.v.y,
288
- P({
288
+ W({
289
289
  p: e.value.style.tooltip.prefix,
290
290
  v: t.v.y,
291
291
  s: e.value.style.tooltip.suffix,
292
292
  r: e.value.style.tooltip.roundingValue
293
293
  }),
294
294
  { datapoint: t, seriesIndex: u }
295
- )}</b></div>`, l += `${e.value.style.layout.plots.deviation.translation}: <b>${P({
295
+ )}</b></div>`, l += `${e.value.style.layout.plots.deviation.translation}: <b>${W({
296
296
  v: t.deviation,
297
297
  r: e.value.style.layout.plots.deviation.roundingValue
298
298
  })}</b>`, l += "</div>", re.value = `<div>${l}</div>`), ue.value = !0;
@@ -378,7 +378,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
378
378
  onMouseenter: u[2] || (u[2] = () => n(Ce)(!0)),
379
379
  onMouseleave: u[3] || (u[3] = () => n(Ce)(!1))
380
380
  }, [
381
- e.value.userOptions.buttons.annotator ? (o(), V(Wt, {
381
+ e.value.userOptions.buttons.annotator ? (o(), V(Pt, {
382
382
  key: 0,
383
383
  svgRef: n(ze),
384
384
  backgroundColor: e.value.style.backgroundColor,
@@ -546,7 +546,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
546
546
  }, null, 8, Rt)
547
547
  ])) : c("", !0),
548
548
  e.value.style.layout.plots.giftWrap.show ? (o(), r("g", Et, [
549
- (o(!0), r(W, null, X(S.value, (l, s) => (o(), r("g", null, [
549
+ (o(!0), r(P, null, X(S.value, (l, s) => (o(), r("g", null, [
550
550
  l.plots.length > 2 ? (o(), r("polygon", {
551
551
  key: 0,
552
552
  points: n(xt)({ series: l.plots }),
@@ -559,9 +559,9 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
559
559
  }, null, 8, Ut)) : c("", !0)
560
560
  ]))), 256))
561
561
  ])) : c("", !0),
562
- (o(!0), r(W, null, X(S.value, (l, s) => (o(), r("g", null, [
562
+ (o(!0), r(P, null, X(S.value, (l, s) => (o(), r("g", null, [
563
563
  !l.shape || l.shape === "circle" ? (o(), r("g", Gt, [
564
- (o(!0), r(W, null, X(l.plots, (a, v) => (o(), r("circle", {
564
+ (o(!0), r(P, null, X(l.plots, (a, v) => (o(), r("circle", {
565
565
  cx: a.x,
566
566
  cy: a.y,
567
567
  r: O.value && O.value === a.id ? a.weight * 2 : a.weight,
@@ -570,10 +570,10 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
570
570
  "stroke-width": e.value.style.layout.plots.strokeWidth,
571
571
  onMouseover: (k) => Ie(a, s),
572
572
  onMouseleave: Xe,
573
- style: Y(`opacity:${O.value && O.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / Pe.value : e.value.style.layout.plots.significance.show && Math.abs(a.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`)
573
+ style: Y(`opacity:${O.value && O.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / We.value : e.value.style.layout.plots.significance.show && Math.abs(a.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`)
574
574
  }, null, 44, qt))), 256))
575
575
  ])) : (o(), r("g", Ht, [
576
- (o(!0), r(W, null, X(l.plots, (a, v) => (o(), V(Ue, {
576
+ (o(!0), r(P, null, X(l.plots, (a, v) => (o(), V(Ue, {
577
577
  plot: { x: a.x, y: a.y },
578
578
  radius: O.value && O.value === a.id ? a.weight * 2 : a.weight,
579
579
  shape: l.shape,
@@ -582,7 +582,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
582
582
  strokeWidth: e.value.style.layout.plots.strokeWidth,
583
583
  onMouseover: (k) => Ie(a, s),
584
584
  onMouseleave: Xe,
585
- style: Y(`opacity:${O.value && O.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / Pe.value : e.value.style.layout.plots.significance.show && Math.abs(a.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`)
585
+ style: Y(`opacity:${O.value && O.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / We.value : e.value.style.layout.plots.significance.show && Math.abs(a.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`)
586
586
  }, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "onMouseover", "style"]))), 256))
587
587
  ]))
588
588
  ]))), 256)),
@@ -621,7 +621,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
621
621
  }, null, 8, ll)
622
622
  ], 8, el)
623
623
  ]),
624
- (o(!0), r(W, null, X(T.value.x, (l, s) => (o(), r("g", null, [
624
+ (o(!0), r(P, null, X(T.value.x, (l, s) => (o(), r("g", null, [
625
625
  l && T.value.avgX[s] ? (o(), r("rect", {
626
626
  key: 0,
627
627
  x: T.value.avgX[s] - i.value.width / D.value / 2,
@@ -635,7 +635,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
635
635
  rx: e.value.style.layout.marginalBars.borderRadius
636
636
  }, null, 12, al)) : c("", !0)
637
637
  ]))), 256)),
638
- (o(!0), r(W, null, X(T.value.y, (l, s) => (o(), r("g", null, [
638
+ (o(!0), r(P, null, X(T.value.y, (l, s) => (o(), r("g", null, [
639
639
  l && T.value.avgY[s] ? (o(), r("rect", {
640
640
  key: 0,
641
641
  x: i.value.right + e.value.style.layout.marginalBars.offset,
@@ -650,7 +650,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
650
650
  }, null, 12, ol)) : c("", !0)
651
651
  ]))), 256)),
652
652
  e.value.style.layout.marginalBars.showLines ? (o(), r("g", sl, [
653
- (o(!0), r(W, null, X(tt.value, (l) => (o(), r(W, null, [
653
+ (o(!0), r(P, null, X(tt.value, (l) => (o(), r(P, null, [
654
654
  m.value.includes(l.id) ? c("", !0) : (o(), r("path", {
655
655
  key: 0,
656
656
  d: `M ${l.dX}`,
@@ -723,7 +723,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
723
723
  }, C(n(j)(
724
724
  e.value.style.layout.plots.selectors.labels.y.formatter,
725
725
  n(A)(y.value.v.y),
726
- n(P)({
726
+ n(W)({
727
727
  p: e.value.style.layout.plots.selectors.labels.prefix,
728
728
  v: n(A)(y.value.v.y),
729
729
  s: e.value.style.layout.plots.selectors.labels.suffix,
@@ -741,7 +741,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
741
741
  }, C(n(j)(
742
742
  e.value.style.layout.plots.selectors.labels.y.formatter,
743
743
  n(A)(y.value.v.x),
744
- n(P)({
744
+ n(W)({
745
745
  p: e.value.style.layout.plots.selectors.labels.prefix,
746
746
  v: n(A)(y.value.v.x),
747
747
  s: e.value.style.layout.plots.selectors.labels.suffix,
@@ -787,7 +787,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
787
787
  }, C(n(j)(
788
788
  e.value.style.layout.plots.selectors.labels.x.formatter,
789
789
  n(A)(p.value.xMin),
790
- n(P)({
790
+ n(W)({
791
791
  p: e.value.style.layout.plots.selectors.labels.prefix,
792
792
  v: n(A)(p.value.xMin),
793
793
  s: e.value.style.layout.plots.selectors.labels.suffix,
@@ -803,7 +803,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
803
803
  }, C(n(j)(
804
804
  e.value.style.layout.plots.selectors.labels.x.formatter,
805
805
  n(A)(p.value.xMax),
806
- n(P)({
806
+ n(W)({
807
807
  p: e.value.style.layout.plots.selectors.labels.prefix,
808
808
  v: n(A)(p.value.xMax),
809
809
  s: e.value.style.layout.plots.selectors.labels.suffix,
@@ -829,7 +829,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
829
829
  }, C(n(j)(
830
830
  e.value.style.layout.plots.selectors.labels.y.formatter,
831
831
  n(A)(p.value.yMin),
832
- n(P)({
832
+ n(W)({
833
833
  p: e.value.style.layout.plots.selectors.labels.prefix,
834
834
  v: n(A)(p.value.yMin),
835
835
  s: e.value.style.layout.plots.selectors.labels.suffix,
@@ -845,7 +845,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
845
845
  }, C(n(j)(
846
846
  e.value.style.layout.plots.selectors.labels.y.formatter,
847
847
  n(A)(p.value.yMax),
848
- n(P)({
848
+ n(W)({
849
849
  p: e.value.style.layout.plots.selectors.labels.prefix,
850
850
  v: n(A)(p.value.yMax),
851
851
  s: e.value.style.layout.plots.selectors.labels.suffix,
@@ -872,7 +872,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
872
872
  }, null, 8, Al)
873
873
  ], 8, Cl),
874
874
  e.value.style.layout.correlation.show ? (o(), r("g", zl, [
875
- (o(!0), r(W, null, X(S.value, (l, s) => (o(), r("line", {
875
+ (o(!0), r(P, null, X(S.value, (l, s) => (o(), r("line", {
876
876
  x1: l.correlation.x1,
877
877
  x2: l.correlation.x2,
878
878
  y1: l.correlation.y1,
@@ -882,7 +882,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
882
882
  "stroke-width": e.value.style.layout.correlation.strokeWidth,
883
883
  "clip-path": `url(#clip_path_${z.value})`
884
884
  }, null, 8, Sl))), 256)),
885
- (o(!0), r(W, null, X(S.value, (l, s) => (o(), r("g", null, [
885
+ (o(!0), r(P, null, X(S.value, (l, s) => (o(), r("g", null, [
886
886
  e.value.style.layout.correlation.label.show ? (o(), r("text", {
887
887
  key: 0,
888
888
  x: l.label.x,
@@ -890,7 +890,7 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
890
890
  fill: e.value.style.layout.correlation.label.useSerieColor ? l.color : e.value.style.layout.correlation.label.color,
891
891
  "font-size": e.value.style.layout.correlation.label.fontSize,
892
892
  "font-weight": e.value.style.layout.correlation.label.bold ? "bold" : "normal"
893
- }, C(n(P)({
893
+ }, C(n(W)({
894
894
  v: n(A)(l.correlation.coefficient),
895
895
  r: e.value.style.layout.correlation.label.roundingValue
896
896
  })), 9, Tl)) : c("", !0)
@@ -1015,12 +1015,12 @@ const Xt = ["id"], Dt = ["xmlns", "viewBox"], Yt = ["width", "height"], Vt = { k
1015
1015
  rt(C(l), 1)
1016
1016
  ]),
1017
1017
  td: _(({ td: l }) => [
1018
- l.shape ? (o(), r("div", Wl, [
1018
+ l.shape ? (o(), r("div", Pl, [
1019
1019
  d("span", null, C(l.content), 1)
1020
1020
  ])) : (o(), r("div", {
1021
1021
  key: 1,
1022
1022
  innerHTML: l
1023
- }, null, 8, Pl))
1023
+ }, null, 8, Wl))
1024
1024
  ]),
1025
1025
  _: 1
1026
1026
  }, 8, ["colNames", "head", "body", "config", "title"]))
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DjDcQ8pe.cjs"),Be=require("./useResponsive-DQmBAoBf.cjs"),Pe=require("./Title-BGh0hWb2.cjs"),_e=require("./usePrinter-vFXYgZiT.cjs"),Oe=require("./Tooltip-DckFFIYj.cjs"),De=require("./Legend-Bl_MrORk.cjs"),Ce=require("./Shape-DuVb3Mev.cjs"),Fe=require("./DataTable-Cz1SDtvT.cjs"),We=require("./vue-ui-skeleton-BGykkjYQ.cjs"),qe=require("./vue-ui-accordion-DIMalTE4.cjs"),Ne=require("./useNestedProp-BS9eJthK.cjs"),Ie=require("./PackageVersion-BrUdYdIC.cjs"),Xe=require("./PenAndPaper-DyGcaflS.cjs"),Re=require("./useUserOptionState-BgepsfED.cjs"),Ye=require("./useChartAccessibility-Cm7nkzTG.cjs"),je=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ue=["id"],Ge=["xmlns","viewBox"],He=["width","height"],Je={key:1},Ke=["x1","x2","y1","y2","stroke","stroke-width"],Qe=["x1","x2","y1","y2","stroke","stroke-width"],Ze={key:2},et=["points","fill","stroke-width","stroke-dasharray","stroke"],tt={key:0},lt=["cx","cy","r","fill","stroke","stroke-width","onMouseover"],at={key:1},ot={key:3},st=["id"],rt=["stop-color"],nt=["stop-color"],ut=["id"],it=["stop-color"],ct=["stop-color"],vt=["x","y","width","height","fill","stroke","stroke-width","rx"],yt=["x","y","height","width","fill","stroke","stroke-width","rx"],dt={key:0},pt=["d","stroke","stroke-width"],ht=["d","stroke","stroke-width"],ft=["d","stroke","stroke-width"],mt=["d","stroke","stroke-width"],gt={key:4,style:{"pointer-events":"none !important"}},kt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],xt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],bt=["x","y","font-size","fill","font-weight","text-anchor"],wt=["x","y","font-size","fill","font-weight"],Bt=["cx","cy","r","fill","stroke","stroke-width"],_t=["cx","cy","r","fill","stroke","stroke-width"],Ct=["x","y","font-size","fill","font-weight","text-anchor"],Nt={key:5},St=["x","y","font-size","fill"],Mt=["x","y","font-size","fill"],$t=["id","transform","font-size","font-weight","fill"],Et={key:6},zt=["x","y","font-size","fill"],Lt=["x","y","font-size","fill"],Vt=["font-size","font-weight","fill","x","y"],At=["id"],Tt=["x","y","width","height"],Pt={key:7},Ot=["x1","x2","y1","y2","stroke-dasharray","stroke","stroke-width","clip-path"],Dt=["x","y","fill","font-size","font-weight"],Ft={key:5,class:"vue-data-ui-watermark"},Wt=["onClick"],qt={key:0,style:{width:"100%",display:"flex","align-items":"center","justify-content":"center"}},It={viewBox:"0 0 20 20",height:"20",width:"20",style:{overflow:"hidden",background:"transparent"}},Xt={key:0},Rt=["innerHTML"],Yt={__name:"vue-ui-scatter",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(Se,{expose:Me}){const{vue_ui_scatter:$e}=s.useConfig(),N=Se,P=e.computed(()=>!!N.dataset&&N.dataset.length),k=e.ref(s.createUid()),Ee=e.ref(null),I=e.ref(!1),X=e.ref(""),K=e.ref(0),T=e.ref(null),Q=e.ref(null),Z=e.ref(null),ee=e.ref(null),te=e.ref(null),le=e.ref(0),ae=e.ref(0),oe=e.ref(0),t=e.computed({get:()=>ue(),set:l=>l}),{userOptionsVisible:R,setUserOptionsVisibility:se,keepUserOptionState:re}=Re.useUserOptionState({config:t.value}),{svgRef:ne}=Ye.useChartAccessibility({config:t.value.style.title});function ue(){const l=Ne.useNestedProp({userConfig:N.config,defaultConfig:$e});return l.theme?{...Ne.useNestedProp({userConfig:s.themes.vue_ui_scatter[l.theme]||N.config,defaultConfig:l}),customPalette:s.themePalettes[l.theme]||s.palette}:l}e.watch(()=>N.config,l=>{t.value=ue(),R.value=!t.value.userOptions.showOnChartHover,ie(),le.value+=1,ae.value+=1,oe.value+=1,B.value.showTable=t.value.table.show,B.value.showTooltip=t.value.style.tooltip.show},{deep:!0});const O=e.ref(null);e.onMounted(()=>{ie()});function ie(){if(s.objectIsEmpty(N.dataset)&&s.error({componentName:"VueUiScatter",type:"dataset"}),t.value.responsive){const l=Be.throttle(()=>{const{width:n,height:a}=Be.useResponsive({chart:T.value,title:t.value.style.title.text?Q.value:null,legend:t.value.style.legend.show?Z.value:null,source:ee.value,noTitle:te.value});requestAnimationFrame(()=>{h.value.width=n,h.value.height=a})});O.value=new ResizeObserver(l),O.value.observe(T.value.parentNode)}}e.onBeforeUnmount(()=>{O.value&&O.value.disconnect()});const{isPrinting:ce,isImaging:ve,generatePdf:ye,generateImage:de}=_e.usePrinter({elementId:`vue-ui-scatter_${k.value}`,fileName:t.value.style.title.text||"vue-ui-scatter",options:t.value.userOptions.print}),ze=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),pe=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),B=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),h=e.ref({height:t.value.style.layout.height,width:t.value.style.layout.width}),D=e.computed(()=>t.value.style.layout.marginalBars.show?t.value.style.layout.marginalBars.size+t.value.style.layout.marginalBars.offset:0),u=e.computed(()=>({top:t.value.style.layout.padding.top+D.value,right:h.value.width-t.value.style.layout.padding.right-D.value,bottom:h.value.height-t.value.style.layout.padding.bottom,left:t.value.style.layout.padding.left,height:h.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom-D.value,width:h.value.width-t.value.style.layout.padding.left-t.value.style.layout.padding.right-D.value})),v=e.computed(()=>{N.dataset.forEach((o,i)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["values"]}).forEach(f=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:f,index:i})}),o.values&&o.values.forEach((f,E)=>{s.getMissingDatasetAttributes({datasetObject:f,requiredAttributes:["x","y"]}).forEach(A=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:`values.${A}`,index:`${i} - ${E}`})})})});const l=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),n=Math.max(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),a=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y))),r=Math.max(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y)));return{xMin:l>=0?0:l,xMax:n,yMin:a>=0?0:a,yMax:r}}),y=e.computed(()=>({x:u.value.left+Math.abs(v.value.xMin)/(v.value.xMax+Math.abs(v.value.xMin))*u.value.width,y:u.value.bottom-Math.abs(v.value.yMin)/(v.value.yMax+Math.abs(v.value.yMin))*u.value.height})),$=e.computed(()=>N.dataset.map((l,n)=>{const a=`cluster_${k.value}_${n}`;return{...l,values:s.largestTriangleThreeBuckets({data:l.values,threshold:t.value.downsample.threshold}),id:a,color:l.color?l.color:pe.value[n]||s.palette[n]||s.palette[n%s.palette.length],opacity:p.value.includes(a)?.5:1,shape:l.shape??"circle",segregate:()=>ke(a),isSegregated:p.value.includes(a)}})),Le=e.computed(()=>({cy:"scatter-div-legend",backgroundColor:t.value.style.legend.backgroundColor,color:t.value.style.legend.color,fontSize:t.value.style.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.legend.bold?"bold":""})),Y=e.computed(()=>$.value.map((l,n)=>({...l,plots:l.values.map(a=>({x:u.value.left+(a.x+Math.abs(v.value.xMin))/(v.value.xMax+Math.abs(v.value.xMin))*u.value.width,y:u.value.bottom-(a.y+Math.abs(v.value.yMin))/(v.value.yMax+Math.abs(v.value.yMin))*u.value.height,v:{...a,name:a.name||""},clusterName:l.name,color:l.color?l.color:pe.value[n]||s.palette[n]||s.palette[n%s.palette.length],id:`plot_${k.value}_${Math.random()}`,weight:a.weight??t.value.style.layout.plots.radius}))})).filter(l=>!p.value.includes(l.id))),x=e.computed(()=>Y.value.map(l=>{const n=l.plots.reduce((d,z)=>d+z.x,0)/l.plots.length,a=l.plots.reduce((d,z)=>d+z.y,0)/l.plots.length;let r=0,o=0,i=0;for(const d of l.plots)r+=(d.x-n)*(d.y-a),o+=(d.x-n)**2,i+=(d.y-a)**2;const f=r/Math.sqrt(o*i),E=f*(Math.sqrt(i)/Math.sqrt(o)),A=a-E*n,C={x1:u.value.left,x2:u.value.right,y1:E*u.value.left+A,y2:E*u.value.right+A,coefficient:f},g=(C.y2-C.y1)/(C.x2-C.x1),w=C.y1-g*C.x1,S=Math.min(h.value.width-t.value.style.layout.padding.right,Math.max(t.value.style.layout.padding.left,(u.value.top-w)/g)),q={x:S,y:g*S+w<=t.value.style.layout.padding.top?u.value.top:g*S+w};return{...l,correlation:C,label:q,plots:l.plots.map(d=>{const z=(d.x+g*d.y-g*w)/(1+Math.pow(g,2)),G=(g*d.x+Math.pow(g,2)*d.y+w)/(1+Math.pow(g,2)),m=Math.sqrt(Math.pow(d.x-z,2)+Math.pow(d.y-G,2));return{...d,deviation:m,shape:l.shape,color:l.color}})}})),he=e.computed(()=>Math.max(...x.value.flatMap(l=>l.plots.map(n=>Math.abs(n.deviation)))));function Ve(){return x.value}function fe(l,n){const a=Array.isArray(l)?l.flatMap(m=>m.plots.map(L=>({x:L.x,y:L.y}))):l.plots.map(m=>({x:m.x,y:m.y}));let r=1/0,o=-1/0,i=1/0,f=-1/0;a.forEach(({x:m,y:L})=>{r=Math.min(r,m),o=Math.max(o,m),i=Math.min(i,L),f=Math.max(f,L)});const E=o-r,A=f-i,C=E/n,g=A/n,w=Array(n).fill(0),S=Array(n).fill(0);a.forEach(({x:m,y:L})=>{const H=Math.floor((m-r)/C),J=Math.floor((L-i)/g);w[H]||(w[H]=0),S[J]||(S[J]=0),w[H]+=1,S[J]+=1});const q=[],d=[];for(let m=0;m<n;m+=1)q.push(r+(m+.5)*C),d.push(i+(m+.5)*g);const z=Math.max(...w),G=Math.max(...S);return{x:w,y:S,avgX:q,avgY:d,maxX:z,maxY:G}}const M=e.computed(()=>t.value.style.layout.marginalBars.tranches),b=e.computed(()=>fe(Y.value,M.value)),Ae=e.computed(()=>{const l=u.value.top-t.value.style.layout.marginalBars.offset,n=u.value.right+t.value.style.layout.marginalBars.offset;return Y.value.map(a=>{const r=fe(a,M.value);return{coords:r,dX:s.createSmoothPath(r.avgX.map((o,i)=>({x:o,y:l-r.x[i]/r.maxX*t.value.style.layout.marginalBars.size}))),dY:s.createSmoothPathVertical(r.avgY.map((o,i)=>({y:o,x:n+t.value.style.layout.marginalBars.size*r.y[i]/r.maxY}))),color:a.color,id:a.id}})}),_=e.ref(void 0),c=e.ref(null),j=e.ref(null);function me(l,n){_.value=l.id,c.value=l;let a="";j.value={datapoint:l,seriesIndex:n,series:x.value,config:t.value};const r=t.value.style.tooltip.customFormat;s.isFunction(r)&&s.functionReturnsString(()=>r({datapoint:l,seriesIndex:n,series:x.value,config:t.value}))?X.value=r({datapoint:l,seriesIndex:n,series:x.value,config:t.value}):(l.clusterName&&(a+=`<div style="display:flex;gap:3px;align-items:center">${l.clusterName}</div>`),l.v.name&&(a+=`<div>${l.v.name}</div>`),a+=`<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,a+=`<div>${t.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(l.v.x)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.x.formatter,l.v.x,s.dataLabel({p:t.value.style.tooltip.prefix,v:l.v.x,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:l,seriesIndex:n})}</b></div>`,a+=`<div>${t.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(l.v.y)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.y.formatter,l.v.y,s.dataLabel({p:t.value.style.tooltip.prefix,v:l.v.y,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:l,seriesIndex:n})}</b></div>`,a+=`${t.value.style.layout.plots.deviation.translation}: <b>${s.dataLabel({v:l.deviation,r:t.value.style.layout.plots.deviation.roundingValue})}</b>`,a+="</div>",X.value=`<div>${a}</div>`),I.value=!0}function ge(){I.value=!1,_.value=void 0,c.value=null}const p=e.ref([]);function ke(l){p.value.includes(l)?p.value=p.value.filter(n=>n!==l):p.value.length<N.dataset.length-1&&p.value.push(l)}function xe(){e.nextTick(()=>{const l=["",t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],n=x.value.map(o=>[o.name,o.correlation.coefficient,o.plots.length,o.plots.map(i=>i.v.x).reduce((i,f)=>i+f,0)/o.plots.length,o.plots.map(i=>i.v.y).reduce((i,f)=>i+f,0)/o.plots.length]),a=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(n),r=s.createCsvContent(a);s.downloadCsv({csvContent:r,title:t.value.style.title.text||"vue-ui-heatmap"})})}const F=e.computed(()=>{const l=[t.value.table.translations.series,t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],n=x.value.map(r=>[{shape:r.shape,content:r.name,color:r.color},Number((r.correlation.coefficient??0).toFixed(t.value.table.td.roundingValue)).toLocaleString(),r.plots.length.toLocaleString(),Number((r.plots.map(o=>o.v.x??0).reduce((o,i)=>o+i,0)/r.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString(),Number((r.plots.map(o=>o.v.y??0).reduce((o,i)=>o+i,0)/r.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString()]),a={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{head:l,body:n,config:a,colNames:l}}),V=e.ref(!1);function Te(l){V.value=l,K.value+=1}function be(){B.value.showTable=!B.value.showTable}function we(){B.value.showTooltip=!B.value.showTooltip}const W=e.ref(!1);function U(){W.value=!W.value}return Me({getData:Ve,generatePdf:ye,generateCsv:xe,generateImage:de,toggleTable:be,toggleTooltip:we,toggleAnnotator:U}),(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-scatter ${V.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"scatterChart",ref:T,id:`vue-ui-scatter_${k.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.backgroundColor};${t.value.responsive?"height: 100%":""}`),onMouseenter:n[2]||(n[2]=()=>e.unref(se)(!0)),onMouseleave:n[3]||(n[3]=()=>e.unref(se)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Xe._sfc_main,{key:0,svgRef:e.unref(ne),backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:W.value,onClose:U},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),ze.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:te,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:Q,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(Pe._sfc_main,{key:`title_${le.value}`,config:{title:{cy:"scatter-div-title",...t.value.style.title},subtitle:{cy:"scatter-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&P.value&&(e.unref(re)||e.unref(R))?(e.openBlock(),e.createBlock(_e.UserOptions,{ref_key:"details",ref:Ee,key:`user_options_${K.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(ve),isPrinting:e.unref(ce),uid:k.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:B.value.showTooltip,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:T.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:W.value,onToggleFullscreen:Te,onGeneratePdf:e.unref(ye),onGenerateCsv:xe,onGenerateImage:e.unref(de),onToggleTable:be,onToggleTooltip:we,onToggleAnnotator:U,style:e.normalizeStyle({visibility:e.unref(re)?e.unref(R)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:a,color:r})=>[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:a,color:r})),void 0,!0)]),key:"0"}:void 0,l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:r})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:r})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:r})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:r})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),P.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:ne,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${h.value.width<=0?10:h.value.width} ${h.value.height<=0?10:h.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(Ie._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:h.value.width<=0?10:h.value.width,height:h.value.height<=0?10:h.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,He)):e.createCommentVNode("",!0),t.value.style.layout.axis.show?(e.openBlock(),e.createElementBlock("g",Je,[e.createElementVNode("line",{x1:y.value.x,x2:y.value.x,y1:u.value.top,y2:u.value.bottom,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,Ke),e.createElementVNode("line",{x1:u.value.left,x2:u.value.right,y1:y.value.y,y2:y.value.y,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,Qe)])):e.createCommentVNode("",!0),t.value.style.layout.plots.giftWrap.show?(e.openBlock(),e.createElementBlock("g",Ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[a.plots.length>2?(e.openBlock(),e.createElementBlock("polygon",{key:0,points:e.unref(s.giftWrap)({series:a.plots}),fill:e.unref(s.setOpacity)(a.color,t.value.style.layout.plots.giftWrap.fillOpacity*100),"stroke-width":t.value.style.layout.plots.giftWrap.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.giftWrap.strokeDasharray,stroke:a.color,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,et)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[!a.shape||a.shape==="circle"?(e.openBlock(),e.createElementBlock("g",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(o,i)=>(e.openBlock(),e.createElementBlock("circle",{cx:o.x,cy:o.y,r:_.value&&_.value===o.id?o.weight*2:o.weight,fill:e.unref(s.setOpacity)(a.color,t.value.style.layout.plots.opacity*100),stroke:t.value.style.layout.plots.stroke,"stroke-width":t.value.style.layout.plots.strokeWidth,onMouseover:f=>me(o,r),onMouseleave:ge,style:e.normalizeStyle(`opacity:${_.value&&_.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/he.value:t.value.style.layout.plots.significance.show&&Math.abs(o.deviation)>t.value.style.layout.plots.significance.deviationThreshold?t.value.style.layout.plots.significance.opacity:1}`)},null,44,lt))),256))])):(e.openBlock(),e.createElementBlock("g",at,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(o,i)=>(e.openBlock(),e.createBlock(Ce._sfc_main,{plot:{x:o.x,y:o.y},radius:_.value&&_.value===o.id?o.weight*2:o.weight,shape:a.shape,color:e.unref(s.setOpacity)(a.color,t.value.style.layout.plots.opacity*100),stroke:t.value.style.layout.plots.stroke,strokeWidth:t.value.style.layout.plots.strokeWidth,onMouseover:f=>me(o,r),onMouseleave:ge,style:e.normalizeStyle(`opacity:${_.value&&_.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/he.value:t.value.style.layout.plots.significance.show&&Math.abs(o.deviation)>t.value.style.layout.plots.significance.deviationThreshold?t.value.style.layout.plots.significance.opacity:1}`)},null,8,["plot","radius","shape","color","stroke","strokeWidth","onMouseover","style"]))),256))]))]))),256)),t.value.style.layout.marginalBars.show?(e.openBlock(),e.createElementBlock("g",ot,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`marginal_x_${k.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.marginalBars.fill},null,8,rt),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.backgroundColor},null,8,nt)],8,st),e.createElementVNode("linearGradient",{id:`marginal_y_${k.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.backgroundColor},null,8,it),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.marginalBars.fill},null,8,ct)],8,ut)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.x,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[a&&b.value.avgX[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:b.value.avgX[r]-u.value.width/M.value/2,y:u.value.top-t.value.style.layout.marginalBars.offset-a/b.value.maxX*t.value.style.layout.marginalBars.size,width:u.value.width/M.value<=0?1e-4:u.value.width/M.value,height:a/b.value.maxX*t.value.style.layout.marginalBars.size<=0?1e-4:a/b.value.maxX*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_x_${k.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,vt)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.y,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[a&&b.value.avgY[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:u.value.right+t.value.style.layout.marginalBars.offset,y:b.value.avgY[r]-u.value.height/M.value/2,height:u.value.height/M.value<=0?1e-4:u.value.height/M.value,width:a/b.value.maxY*t.value.style.layout.marginalBars.size<=0?1e-4:a/b.value.maxY*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_y_${k.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,yt)):e.createCommentVNode("",!0)]))),256)),t.value.style.layout.marginalBars.showLines?(e.openBlock(),e.createElementBlock("g",dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ae.value,a=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${a.dX}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,pt)),p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M ${a.dX}`,stroke:a.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,ht)),p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:2,d:`M ${a.dY}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,ft)),p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:3,d:`M ${a.dY}`,stroke:a.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,mt))],64))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),c.value&&t.value.style.layout.plots.selectors.show?(e.openBlock(),e.createElementBlock("g",gt,[e.createElementVNode("line",{x1:y.value.x,x2:c.value.x,y1:c.value.y,y2:c.value.y,stroke:t.value.style.layout.plots.selectors.stroke,"stroke-width":t.value.style.layout.plots.selectors.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.selectors.strokeDasharray,"stroke-linecap":"round",class:"line-pointer"},null,8,kt),e.createElementVNode("line",{x1:c.value.x,x2:c.value.x,y1:y.value.y,y2:c.value.y,stroke:t.value.style.layout.plots.selectors.stroke,"stroke-width":t.value.style.layout.plots.selectors.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.selectors.strokeDasharray,"stroke-linecap":"round",class:"line-pointer"},null,8,xt),e.createElementVNode("text",{x:y.value.x+(c.value.x>y.value.x?-6:6),y:c.value.y+t.value.style.layout.plots.selectors.labels.fontSize/3,"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x>y.value.x?"end":"start"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(c.value.v.y),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(c.value.v.y),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.plots.selectors.labels.rounding}),{datapoint:c.value})),9,bt),e.createElementVNode("text",{x:c.value.x,y:y.value.y+(c.value.y>y.value.y?-6:t.value.style.layout.plots.selectors.labels.fontSize+6),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(c.value.v.x),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(c.value.v.x),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.plots.selectors.labels.rounding}),{datapoint:c.value})),9,wt),e.createElementVNode("circle",{cx:y.value.x,cy:c.value.y,r:t.value.style.layout.plots.selectors.markers.radius,fill:t.value.style.layout.plots.selectors.markers.fill,stroke:t.value.style.layout.plots.selectors.markers.stroke,"stroke-width":t.value.style.layout.plots.selectors.markers.strokeWidth,class:"line-pointer"},null,8,Bt),e.createElementVNode("circle",{cx:c.value.x,cy:y.value.y,r:t.value.style.layout.plots.selectors.markers.radius,fill:t.value.style.layout.plots.selectors.markers.fill,stroke:t.value.style.layout.plots.selectors.markers.stroke,"stroke-width":t.value.style.layout.plots.selectors.markers.strokeWidth,class:"line-pointer"},null,8,_t),t.value.style.layout.plots.selectors.labels.showName?(e.openBlock(),e.createElementBlock("text",{key:0,x:c.value.x,y:c.value.y+(c.value.y<y.value.y?-t.value.style.layout.plots.selectors.labels.fontSize/2:t.value.style.layout.plots.selectors.labels.fontSize),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x<u.value.left+100?"start":c.value.x>u.value.right-100?"end":c.value.x>y.value.x?"start":"end"},e.toDisplayString(c.value.v.name),9,Ct)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",Nt,[e.createElementVNode("text",{x:u.value.left-5,y:y.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,e.unref(s.checkNaN)(v.value.xMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(v.value.xMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,St),e.createElementVNode("text",{x:u.value.right+3,y:y.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"start","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,e.unref(s.checkNaN)(v.value.xMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(v.value.xMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,Mt),e.createElementVNode("text",{id:`vue-ui-scatter-xAxis-label-${k.value}`,transform:`translate(${t.value.style.layout.dataLabels.xAxis.fontSize*2}, ${u.value.top+u.value.height/2}), rotate(-90)`,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(t.value.style.layout.dataLabels.xAxis.name),9,$t)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",Et,[e.createElementVNode("text",{x:y.value.x,y:u.value.bottom+t.value.style.layout.dataLabels.yAxis.fontSize+3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(v.value.yMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(v.value.yMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,zt),e.createElementVNode("text",{x:y.value.x,y:u.value.top-t.value.style.layout.dataLabels.yAxis.fontSize/2,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(v.value.yMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(v.value.yMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,Lt),e.createElementVNode("text",{"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.yAxis.color,x:u.value.left+u.value.width/2,y:u.value.bottom+8+t.value.style.layout.dataLabels.yAxis.fontSize*2},e.toDisplayString(t.value.style.layout.dataLabels.yAxis.name),9,Vt)])):e.createCommentVNode("",!0),e.createElementVNode("clipPath",{id:`clip_path_${k.value}`},[e.createElementVNode("rect",{x:u.value.left,y:u.value.top,width:u.value.width<=0?1e-4:u.value.width,height:u.value.height<=0?1e-4:u.value.height},null,8,Tt)],8,At),t.value.style.layout.correlation.show?(e.openBlock(),e.createElementBlock("g",Pt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("line",{x1:a.correlation.x1,x2:a.correlation.x2,y1:a.correlation.y1,y2:a.correlation.y2,"stroke-dasharray":t.value.style.layout.correlation.strokeDasharray,stroke:a.color,"stroke-width":t.value.style.layout.correlation.strokeWidth,"clip-path":`url(#clip_path_${k.value})`},null,8,Ot))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.correlation.label.show?(e.openBlock(),e.createElementBlock("text",{key:0,x:a.label.x,y:a.label.y,fill:t.value.style.layout.correlation.label.useSerieColor?a.color:t.value.style.layout.correlation.label.color,"font-size":t.value.style.layout.correlation.label.fontSize,"font-weight":t.value.style.layout.correlation.label.bold?"bold":"normal"},e.toDisplayString(e.unref(s.dataLabel)({v:e.unref(s.checkNaN)(a.correlation.coefficient),r:t.value.style.layout.correlation.label.roundingValue})),9,Dt)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:h.value},void 0,!0)],14,Ge)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ft,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ce)||e.unref(ve)})),void 0,!0)])):e.createCommentVNode("",!0),P.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(We.default,{key:6,config:{type:"quadrant",style:{backgroundColor:t.value.style.backgroundColor,quadrant:{grid:{color:t.value.style.layout.axis.stroke},plots:{color:t.value.style.layout.axis.stroke,radius:1}}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:Z},[t.value.style.legend.show?(e.openBlock(),e.createBlock(De.Legend,{key:`legend_${oe.value}`,legendSet:$.value,config:Le.value,onClickMarker:n[0]||(n[0]=({legend:a})=>ke(a.id))},{item:e.withCtx(({legend:a})=>[e.createElementVNode("div",{onClick:r=>a.segregate(),style:e.normalizeStyle(`opacity:${p.value.includes(a.id)?.5:1}`)},e.toDisplayString(a.name),13,Wt)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:$.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:ee,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Oe._sfc_main,{show:B.value.showTooltip&&I.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:T.value,content:X.value,isFullscreen:V.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...j.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...j.value})),void 0,!0)]),default:e.withCtx(()=>[t.value.style.tooltip.showShape?(e.openBlock(),e.createElementBlock("div",qt,[(e.openBlock(),e.createElementBlock("svg",It,[e.createVNode(Ce._sfc_main,{shape:c.value.shape,color:c.value.color,plot:{x:10,y:10},radius:7},null,8,["shape","color"])]))])):e.createCommentVNode("",!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),P.value?(e.openBlock(),e.createBlock(qe.default,{key:8,hideDetails:"",config:{open:B.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Fe.DataTable,{key:`table_${ae.value}`,colNames:F.value.colNames,head:F.value.head,body:F.value.body,config:F.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:n[1]||(n[1]=a=>B.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createTextVNode(e.toDisplayString(a),1)]),td:e.withCtx(({td:a})=>[a.shape?(e.openBlock(),e.createElementBlock("div",Xt,[e.createElementVNode("span",null,e.toDisplayString(a.content),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:a},null,8,Rt))]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ue))}},jt=je._export_sfc(Yt,[["__scopeId","data-v-e97afbcb"]]);exports.default=jt;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-SCeiWj92.cjs"),Be=require("./useResponsive-DQmBAoBf.cjs"),Pe=require("./Title-D7uuc4dY.cjs"),_e=require("./usePrinter-CWjBWUyP.cjs"),Oe=require("./Tooltip-D--0gUVq.cjs"),De=require("./Legend-CUqaARo5.cjs"),Ce=require("./Shape-Ca8AZL7o.cjs"),Fe=require("./DataTable-CW5aC-bf.cjs"),We=require("./vue-ui-skeleton-D4hXCz3m.cjs"),qe=require("./vue-ui-accordion-BL41vY_P.cjs"),Ne=require("./useNestedProp-BV2kijyF.cjs"),Ie=require("./PackageVersion-DDIH1bP5.cjs"),Xe=require("./PenAndPaper-B8Lcd-xn.cjs"),Re=require("./useUserOptionState-BgepsfED.cjs"),Ye=require("./useChartAccessibility-Cm7nkzTG.cjs"),je=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ue=["id"],Ge=["xmlns","viewBox"],He=["width","height"],Je={key:1},Ke=["x1","x2","y1","y2","stroke","stroke-width"],Qe=["x1","x2","y1","y2","stroke","stroke-width"],Ze={key:2},et=["points","fill","stroke-width","stroke-dasharray","stroke"],tt={key:0},lt=["cx","cy","r","fill","stroke","stroke-width","onMouseover"],at={key:1},ot={key:3},st=["id"],rt=["stop-color"],nt=["stop-color"],ut=["id"],it=["stop-color"],ct=["stop-color"],vt=["x","y","width","height","fill","stroke","stroke-width","rx"],yt=["x","y","height","width","fill","stroke","stroke-width","rx"],dt={key:0},pt=["d","stroke","stroke-width"],ht=["d","stroke","stroke-width"],ft=["d","stroke","stroke-width"],mt=["d","stroke","stroke-width"],gt={key:4,style:{"pointer-events":"none !important"}},kt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],xt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],bt=["x","y","font-size","fill","font-weight","text-anchor"],wt=["x","y","font-size","fill","font-weight"],Bt=["cx","cy","r","fill","stroke","stroke-width"],_t=["cx","cy","r","fill","stroke","stroke-width"],Ct=["x","y","font-size","fill","font-weight","text-anchor"],Nt={key:5},St=["x","y","font-size","fill"],Mt=["x","y","font-size","fill"],$t=["id","transform","font-size","font-weight","fill"],Et={key:6},zt=["x","y","font-size","fill"],Lt=["x","y","font-size","fill"],Vt=["font-size","font-weight","fill","x","y"],At=["id"],Tt=["x","y","width","height"],Pt={key:7},Ot=["x1","x2","y1","y2","stroke-dasharray","stroke","stroke-width","clip-path"],Dt=["x","y","fill","font-size","font-weight"],Ft={key:5,class:"vue-data-ui-watermark"},Wt=["onClick"],qt={key:0,style:{width:"100%",display:"flex","align-items":"center","justify-content":"center"}},It={viewBox:"0 0 20 20",height:"20",width:"20",style:{overflow:"hidden",background:"transparent"}},Xt={key:0},Rt=["innerHTML"],Yt={__name:"vue-ui-scatter",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(Se,{expose:Me}){const{vue_ui_scatter:$e}=s.useConfig(),N=Se,P=e.computed(()=>!!N.dataset&&N.dataset.length),k=e.ref(s.createUid()),Ee=e.ref(null),I=e.ref(!1),X=e.ref(""),K=e.ref(0),T=e.ref(null),Q=e.ref(null),Z=e.ref(null),ee=e.ref(null),te=e.ref(null),le=e.ref(0),ae=e.ref(0),oe=e.ref(0),t=e.computed({get:()=>ue(),set:l=>l}),{userOptionsVisible:R,setUserOptionsVisibility:se,keepUserOptionState:re}=Re.useUserOptionState({config:t.value}),{svgRef:ne}=Ye.useChartAccessibility({config:t.value.style.title});function ue(){const l=Ne.useNestedProp({userConfig:N.config,defaultConfig:$e});return l.theme?{...Ne.useNestedProp({userConfig:s.themes.vue_ui_scatter[l.theme]||N.config,defaultConfig:l}),customPalette:s.themePalettes[l.theme]||s.palette}:l}e.watch(()=>N.config,l=>{t.value=ue(),R.value=!t.value.userOptions.showOnChartHover,ie(),le.value+=1,ae.value+=1,oe.value+=1,B.value.showTable=t.value.table.show,B.value.showTooltip=t.value.style.tooltip.show},{deep:!0});const O=e.ref(null);e.onMounted(()=>{ie()});function ie(){if(s.objectIsEmpty(N.dataset)&&s.error({componentName:"VueUiScatter",type:"dataset"}),t.value.responsive){const l=Be.throttle(()=>{const{width:n,height:a}=Be.useResponsive({chart:T.value,title:t.value.style.title.text?Q.value:null,legend:t.value.style.legend.show?Z.value:null,source:ee.value,noTitle:te.value});requestAnimationFrame(()=>{h.value.width=n,h.value.height=a})});O.value=new ResizeObserver(l),O.value.observe(T.value.parentNode)}}e.onBeforeUnmount(()=>{O.value&&O.value.disconnect()});const{isPrinting:ce,isImaging:ve,generatePdf:ye,generateImage:de}=_e.usePrinter({elementId:`vue-ui-scatter_${k.value}`,fileName:t.value.style.title.text||"vue-ui-scatter",options:t.value.userOptions.print}),ze=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),pe=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),B=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),h=e.ref({height:t.value.style.layout.height,width:t.value.style.layout.width}),D=e.computed(()=>t.value.style.layout.marginalBars.show?t.value.style.layout.marginalBars.size+t.value.style.layout.marginalBars.offset:0),u=e.computed(()=>({top:t.value.style.layout.padding.top+D.value,right:h.value.width-t.value.style.layout.padding.right-D.value,bottom:h.value.height-t.value.style.layout.padding.bottom,left:t.value.style.layout.padding.left,height:h.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom-D.value,width:h.value.width-t.value.style.layout.padding.left-t.value.style.layout.padding.right-D.value})),v=e.computed(()=>{N.dataset.forEach((o,i)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["values"]}).forEach(f=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:f,index:i})}),o.values&&o.values.forEach((f,E)=>{s.getMissingDatasetAttributes({datasetObject:f,requiredAttributes:["x","y"]}).forEach(A=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:`values.${A}`,index:`${i} - ${E}`})})})});const l=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),n=Math.max(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),a=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y))),r=Math.max(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y)));return{xMin:l>=0?0:l,xMax:n,yMin:a>=0?0:a,yMax:r}}),y=e.computed(()=>({x:u.value.left+Math.abs(v.value.xMin)/(v.value.xMax+Math.abs(v.value.xMin))*u.value.width,y:u.value.bottom-Math.abs(v.value.yMin)/(v.value.yMax+Math.abs(v.value.yMin))*u.value.height})),$=e.computed(()=>N.dataset.map((l,n)=>{const a=`cluster_${k.value}_${n}`;return{...l,values:s.largestTriangleThreeBuckets({data:l.values,threshold:t.value.downsample.threshold}),id:a,color:l.color?l.color:pe.value[n]||s.palette[n]||s.palette[n%s.palette.length],opacity:p.value.includes(a)?.5:1,shape:l.shape??"circle",segregate:()=>ke(a),isSegregated:p.value.includes(a)}})),Le=e.computed(()=>({cy:"scatter-div-legend",backgroundColor:t.value.style.legend.backgroundColor,color:t.value.style.legend.color,fontSize:t.value.style.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.legend.bold?"bold":""})),Y=e.computed(()=>$.value.map((l,n)=>({...l,plots:l.values.map(a=>({x:u.value.left+(a.x+Math.abs(v.value.xMin))/(v.value.xMax+Math.abs(v.value.xMin))*u.value.width,y:u.value.bottom-(a.y+Math.abs(v.value.yMin))/(v.value.yMax+Math.abs(v.value.yMin))*u.value.height,v:{...a,name:a.name||""},clusterName:l.name,color:l.color?l.color:pe.value[n]||s.palette[n]||s.palette[n%s.palette.length],id:`plot_${k.value}_${Math.random()}`,weight:a.weight??t.value.style.layout.plots.radius}))})).filter(l=>!p.value.includes(l.id))),x=e.computed(()=>Y.value.map(l=>{const n=l.plots.reduce((d,z)=>d+z.x,0)/l.plots.length,a=l.plots.reduce((d,z)=>d+z.y,0)/l.plots.length;let r=0,o=0,i=0;for(const d of l.plots)r+=(d.x-n)*(d.y-a),o+=(d.x-n)**2,i+=(d.y-a)**2;const f=r/Math.sqrt(o*i),E=f*(Math.sqrt(i)/Math.sqrt(o)),A=a-E*n,C={x1:u.value.left,x2:u.value.right,y1:E*u.value.left+A,y2:E*u.value.right+A,coefficient:f},g=(C.y2-C.y1)/(C.x2-C.x1),w=C.y1-g*C.x1,S=Math.min(h.value.width-t.value.style.layout.padding.right,Math.max(t.value.style.layout.padding.left,(u.value.top-w)/g)),q={x:S,y:g*S+w<=t.value.style.layout.padding.top?u.value.top:g*S+w};return{...l,correlation:C,label:q,plots:l.plots.map(d=>{const z=(d.x+g*d.y-g*w)/(1+Math.pow(g,2)),G=(g*d.x+Math.pow(g,2)*d.y+w)/(1+Math.pow(g,2)),m=Math.sqrt(Math.pow(d.x-z,2)+Math.pow(d.y-G,2));return{...d,deviation:m,shape:l.shape,color:l.color}})}})),he=e.computed(()=>Math.max(...x.value.flatMap(l=>l.plots.map(n=>Math.abs(n.deviation)))));function Ve(){return x.value}function fe(l,n){const a=Array.isArray(l)?l.flatMap(m=>m.plots.map(L=>({x:L.x,y:L.y}))):l.plots.map(m=>({x:m.x,y:m.y}));let r=1/0,o=-1/0,i=1/0,f=-1/0;a.forEach(({x:m,y:L})=>{r=Math.min(r,m),o=Math.max(o,m),i=Math.min(i,L),f=Math.max(f,L)});const E=o-r,A=f-i,C=E/n,g=A/n,w=Array(n).fill(0),S=Array(n).fill(0);a.forEach(({x:m,y:L})=>{const H=Math.floor((m-r)/C),J=Math.floor((L-i)/g);w[H]||(w[H]=0),S[J]||(S[J]=0),w[H]+=1,S[J]+=1});const q=[],d=[];for(let m=0;m<n;m+=1)q.push(r+(m+.5)*C),d.push(i+(m+.5)*g);const z=Math.max(...w),G=Math.max(...S);return{x:w,y:S,avgX:q,avgY:d,maxX:z,maxY:G}}const M=e.computed(()=>t.value.style.layout.marginalBars.tranches),b=e.computed(()=>fe(Y.value,M.value)),Ae=e.computed(()=>{const l=u.value.top-t.value.style.layout.marginalBars.offset,n=u.value.right+t.value.style.layout.marginalBars.offset;return Y.value.map(a=>{const r=fe(a,M.value);return{coords:r,dX:s.createSmoothPath(r.avgX.map((o,i)=>({x:o,y:l-r.x[i]/r.maxX*t.value.style.layout.marginalBars.size}))),dY:s.createSmoothPathVertical(r.avgY.map((o,i)=>({y:o,x:n+t.value.style.layout.marginalBars.size*r.y[i]/r.maxY}))),color:a.color,id:a.id}})}),_=e.ref(void 0),c=e.ref(null),j=e.ref(null);function me(l,n){_.value=l.id,c.value=l;let a="";j.value={datapoint:l,seriesIndex:n,series:x.value,config:t.value};const r=t.value.style.tooltip.customFormat;s.isFunction(r)&&s.functionReturnsString(()=>r({datapoint:l,seriesIndex:n,series:x.value,config:t.value}))?X.value=r({datapoint:l,seriesIndex:n,series:x.value,config:t.value}):(l.clusterName&&(a+=`<div style="display:flex;gap:3px;align-items:center">${l.clusterName}</div>`),l.v.name&&(a+=`<div>${l.v.name}</div>`),a+=`<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,a+=`<div>${t.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(l.v.x)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.x.formatter,l.v.x,s.dataLabel({p:t.value.style.tooltip.prefix,v:l.v.x,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:l,seriesIndex:n})}</b></div>`,a+=`<div>${t.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(l.v.y)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.y.formatter,l.v.y,s.dataLabel({p:t.value.style.tooltip.prefix,v:l.v.y,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:l,seriesIndex:n})}</b></div>`,a+=`${t.value.style.layout.plots.deviation.translation}: <b>${s.dataLabel({v:l.deviation,r:t.value.style.layout.plots.deviation.roundingValue})}</b>`,a+="</div>",X.value=`<div>${a}</div>`),I.value=!0}function ge(){I.value=!1,_.value=void 0,c.value=null}const p=e.ref([]);function ke(l){p.value.includes(l)?p.value=p.value.filter(n=>n!==l):p.value.length<N.dataset.length-1&&p.value.push(l)}function xe(){e.nextTick(()=>{const l=["",t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],n=x.value.map(o=>[o.name,o.correlation.coefficient,o.plots.length,o.plots.map(i=>i.v.x).reduce((i,f)=>i+f,0)/o.plots.length,o.plots.map(i=>i.v.y).reduce((i,f)=>i+f,0)/o.plots.length]),a=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(n),r=s.createCsvContent(a);s.downloadCsv({csvContent:r,title:t.value.style.title.text||"vue-ui-heatmap"})})}const F=e.computed(()=>{const l=[t.value.table.translations.series,t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],n=x.value.map(r=>[{shape:r.shape,content:r.name,color:r.color},Number((r.correlation.coefficient??0).toFixed(t.value.table.td.roundingValue)).toLocaleString(),r.plots.length.toLocaleString(),Number((r.plots.map(o=>o.v.x??0).reduce((o,i)=>o+i,0)/r.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString(),Number((r.plots.map(o=>o.v.y??0).reduce((o,i)=>o+i,0)/r.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString()]),a={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{head:l,body:n,config:a,colNames:l}}),V=e.ref(!1);function Te(l){V.value=l,K.value+=1}function be(){B.value.showTable=!B.value.showTable}function we(){B.value.showTooltip=!B.value.showTooltip}const W=e.ref(!1);function U(){W.value=!W.value}return Me({getData:Ve,generatePdf:ye,generateCsv:xe,generateImage:de,toggleTable:be,toggleTooltip:we,toggleAnnotator:U}),(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-scatter ${V.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"scatterChart",ref:T,id:`vue-ui-scatter_${k.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.backgroundColor};${t.value.responsive?"height: 100%":""}`),onMouseenter:n[2]||(n[2]=()=>e.unref(se)(!0)),onMouseleave:n[3]||(n[3]=()=>e.unref(se)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Xe._sfc_main,{key:0,svgRef:e.unref(ne),backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:W.value,onClose:U},null,8,["svgRef","backgroundColor","color","active"])):e.createCommentVNode("",!0),ze.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:te,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:Q,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(Pe._sfc_main,{key:`title_${le.value}`,config:{title:{cy:"scatter-div-title",...t.value.style.title},subtitle:{cy:"scatter-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&P.value&&(e.unref(re)||e.unref(R))?(e.openBlock(),e.createBlock(_e.UserOptions,{ref_key:"details",ref:Ee,key:`user_options_${K.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(ve),isPrinting:e.unref(ce),uid:k.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:B.value.showTooltip,isFullscreen:V.value,titles:{...t.value.userOptions.buttonTitles},chartElement:T.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:W.value,onToggleFullscreen:Te,onGeneratePdf:e.unref(ye),onGenerateCsv:xe,onGenerateImage:e.unref(de),onToggleTable:be,onToggleTooltip:we,onToggleAnnotator:U,style:e.normalizeStyle({visibility:e.unref(re)?e.unref(R)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.menuIcon?{name:"menuIcon",fn:e.withCtx(({isOpen:a,color:r})=>[e.renderSlot(l.$slots,"menuIcon",e.normalizeProps(e.guardReactiveProps({isOpen:a,color:r})),void 0,!0)]),key:"0"}:void 0,l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"5"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:r})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:r})),void 0,!0)]),key:"6"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:r})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:r})),void 0,!0)]),key:"7"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),P.value?(e.openBlock(),e.createElementBlock("svg",{key:4,ref_key:"svgRef",ref:ne,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":V.value,"vue-data-ui-fulscreen--off":!V.value}),viewBox:`0 0 ${h.value.width<=0?10:h.value.width} ${h.value.height<=0?10:h.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(Ie._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:h.value.width<=0?10:h.value.width,height:h.value.height<=0?10:h.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,He)):e.createCommentVNode("",!0),t.value.style.layout.axis.show?(e.openBlock(),e.createElementBlock("g",Je,[e.createElementVNode("line",{x1:y.value.x,x2:y.value.x,y1:u.value.top,y2:u.value.bottom,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,Ke),e.createElementVNode("line",{x1:u.value.left,x2:u.value.right,y1:y.value.y,y2:y.value.y,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,Qe)])):e.createCommentVNode("",!0),t.value.style.layout.plots.giftWrap.show?(e.openBlock(),e.createElementBlock("g",Ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[a.plots.length>2?(e.openBlock(),e.createElementBlock("polygon",{key:0,points:e.unref(s.giftWrap)({series:a.plots}),fill:e.unref(s.setOpacity)(a.color,t.value.style.layout.plots.giftWrap.fillOpacity*100),"stroke-width":t.value.style.layout.plots.giftWrap.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.giftWrap.strokeDasharray,stroke:a.color,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,et)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[!a.shape||a.shape==="circle"?(e.openBlock(),e.createElementBlock("g",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(o,i)=>(e.openBlock(),e.createElementBlock("circle",{cx:o.x,cy:o.y,r:_.value&&_.value===o.id?o.weight*2:o.weight,fill:e.unref(s.setOpacity)(a.color,t.value.style.layout.plots.opacity*100),stroke:t.value.style.layout.plots.stroke,"stroke-width":t.value.style.layout.plots.strokeWidth,onMouseover:f=>me(o,r),onMouseleave:ge,style:e.normalizeStyle(`opacity:${_.value&&_.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/he.value:t.value.style.layout.plots.significance.show&&Math.abs(o.deviation)>t.value.style.layout.plots.significance.deviationThreshold?t.value.style.layout.plots.significance.opacity:1}`)},null,44,lt))),256))])):(e.openBlock(),e.createElementBlock("g",at,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(o,i)=>(e.openBlock(),e.createBlock(Ce._sfc_main,{plot:{x:o.x,y:o.y},radius:_.value&&_.value===o.id?o.weight*2:o.weight,shape:a.shape,color:e.unref(s.setOpacity)(a.color,t.value.style.layout.plots.opacity*100),stroke:t.value.style.layout.plots.stroke,strokeWidth:t.value.style.layout.plots.strokeWidth,onMouseover:f=>me(o,r),onMouseleave:ge,style:e.normalizeStyle(`opacity:${_.value&&_.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/he.value:t.value.style.layout.plots.significance.show&&Math.abs(o.deviation)>t.value.style.layout.plots.significance.deviationThreshold?t.value.style.layout.plots.significance.opacity:1}`)},null,8,["plot","radius","shape","color","stroke","strokeWidth","onMouseover","style"]))),256))]))]))),256)),t.value.style.layout.marginalBars.show?(e.openBlock(),e.createElementBlock("g",ot,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`marginal_x_${k.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.marginalBars.fill},null,8,rt),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.backgroundColor},null,8,nt)],8,st),e.createElementVNode("linearGradient",{id:`marginal_y_${k.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.backgroundColor},null,8,it),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.marginalBars.fill},null,8,ct)],8,ut)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.x,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[a&&b.value.avgX[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:b.value.avgX[r]-u.value.width/M.value/2,y:u.value.top-t.value.style.layout.marginalBars.offset-a/b.value.maxX*t.value.style.layout.marginalBars.size,width:u.value.width/M.value<=0?1e-4:u.value.width/M.value,height:a/b.value.maxX*t.value.style.layout.marginalBars.size<=0?1e-4:a/b.value.maxX*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_x_${k.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,vt)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.y,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[a&&b.value.avgY[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:u.value.right+t.value.style.layout.marginalBars.offset,y:b.value.avgY[r]-u.value.height/M.value/2,height:u.value.height/M.value<=0?1e-4:u.value.height/M.value,width:a/b.value.maxY*t.value.style.layout.marginalBars.size<=0?1e-4:a/b.value.maxY*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_y_${k.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,yt)):e.createCommentVNode("",!0)]))),256)),t.value.style.layout.marginalBars.showLines?(e.openBlock(),e.createElementBlock("g",dt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ae.value,a=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${a.dX}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,pt)),p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M ${a.dX}`,stroke:a.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,ht)),p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:2,d:`M ${a.dY}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,ft)),p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:3,d:`M ${a.dY}`,stroke:a.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,mt))],64))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),c.value&&t.value.style.layout.plots.selectors.show?(e.openBlock(),e.createElementBlock("g",gt,[e.createElementVNode("line",{x1:y.value.x,x2:c.value.x,y1:c.value.y,y2:c.value.y,stroke:t.value.style.layout.plots.selectors.stroke,"stroke-width":t.value.style.layout.plots.selectors.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.selectors.strokeDasharray,"stroke-linecap":"round",class:"line-pointer"},null,8,kt),e.createElementVNode("line",{x1:c.value.x,x2:c.value.x,y1:y.value.y,y2:c.value.y,stroke:t.value.style.layout.plots.selectors.stroke,"stroke-width":t.value.style.layout.plots.selectors.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.selectors.strokeDasharray,"stroke-linecap":"round",class:"line-pointer"},null,8,xt),e.createElementVNode("text",{x:y.value.x+(c.value.x>y.value.x?-6:6),y:c.value.y+t.value.style.layout.plots.selectors.labels.fontSize/3,"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x>y.value.x?"end":"start"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(c.value.v.y),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(c.value.v.y),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.plots.selectors.labels.rounding}),{datapoint:c.value})),9,bt),e.createElementVNode("text",{x:c.value.x,y:y.value.y+(c.value.y>y.value.y?-6:t.value.style.layout.plots.selectors.labels.fontSize+6),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(c.value.v.x),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(c.value.v.x),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.plots.selectors.labels.rounding}),{datapoint:c.value})),9,wt),e.createElementVNode("circle",{cx:y.value.x,cy:c.value.y,r:t.value.style.layout.plots.selectors.markers.radius,fill:t.value.style.layout.plots.selectors.markers.fill,stroke:t.value.style.layout.plots.selectors.markers.stroke,"stroke-width":t.value.style.layout.plots.selectors.markers.strokeWidth,class:"line-pointer"},null,8,Bt),e.createElementVNode("circle",{cx:c.value.x,cy:y.value.y,r:t.value.style.layout.plots.selectors.markers.radius,fill:t.value.style.layout.plots.selectors.markers.fill,stroke:t.value.style.layout.plots.selectors.markers.stroke,"stroke-width":t.value.style.layout.plots.selectors.markers.strokeWidth,class:"line-pointer"},null,8,_t),t.value.style.layout.plots.selectors.labels.showName?(e.openBlock(),e.createElementBlock("text",{key:0,x:c.value.x,y:c.value.y+(c.value.y<y.value.y?-t.value.style.layout.plots.selectors.labels.fontSize/2:t.value.style.layout.plots.selectors.labels.fontSize),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x<u.value.left+100?"start":c.value.x>u.value.right-100?"end":c.value.x>y.value.x?"start":"end"},e.toDisplayString(c.value.v.name),9,Ct)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",Nt,[e.createElementVNode("text",{x:u.value.left-5,y:y.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,e.unref(s.checkNaN)(v.value.xMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(v.value.xMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,St),e.createElementVNode("text",{x:u.value.right+3,y:y.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"start","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,e.unref(s.checkNaN)(v.value.xMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(v.value.xMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,Mt),e.createElementVNode("text",{id:`vue-ui-scatter-xAxis-label-${k.value}`,transform:`translate(${t.value.style.layout.dataLabels.xAxis.fontSize*2}, ${u.value.top+u.value.height/2}), rotate(-90)`,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(t.value.style.layout.dataLabels.xAxis.name),9,$t)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",Et,[e.createElementVNode("text",{x:y.value.x,y:u.value.bottom+t.value.style.layout.dataLabels.yAxis.fontSize+3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(v.value.yMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(v.value.yMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,zt),e.createElementVNode("text",{x:y.value.x,y:u.value.top-t.value.style.layout.dataLabels.yAxis.fontSize/2,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(v.value.yMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(v.value.yMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,Lt),e.createElementVNode("text",{"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.yAxis.color,x:u.value.left+u.value.width/2,y:u.value.bottom+8+t.value.style.layout.dataLabels.yAxis.fontSize*2},e.toDisplayString(t.value.style.layout.dataLabels.yAxis.name),9,Vt)])):e.createCommentVNode("",!0),e.createElementVNode("clipPath",{id:`clip_path_${k.value}`},[e.createElementVNode("rect",{x:u.value.left,y:u.value.top,width:u.value.width<=0?1e-4:u.value.width,height:u.value.height<=0?1e-4:u.value.height},null,8,Tt)],8,At),t.value.style.layout.correlation.show?(e.openBlock(),e.createElementBlock("g",Pt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("line",{x1:a.correlation.x1,x2:a.correlation.x2,y1:a.correlation.y1,y2:a.correlation.y2,"stroke-dasharray":t.value.style.layout.correlation.strokeDasharray,stroke:a.color,"stroke-width":t.value.style.layout.correlation.strokeWidth,"clip-path":`url(#clip_path_${k.value})`},null,8,Ot))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.correlation.label.show?(e.openBlock(),e.createElementBlock("text",{key:0,x:a.label.x,y:a.label.y,fill:t.value.style.layout.correlation.label.useSerieColor?a.color:t.value.style.layout.correlation.label.color,"font-size":t.value.style.layout.correlation.label.fontSize,"font-weight":t.value.style.layout.correlation.label.bold?"bold":"normal"},e.toDisplayString(e.unref(s.dataLabel)({v:e.unref(s.checkNaN)(a.correlation.coefficient),r:t.value.style.layout.correlation.label.roundingValue})),9,Dt)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:h.value},void 0,!0)],14,Ge)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ft,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ce)||e.unref(ve)})),void 0,!0)])):e.createCommentVNode("",!0),P.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(We.default,{key:6,config:{type:"quadrant",style:{backgroundColor:t.value.style.backgroundColor,quadrant:{grid:{color:t.value.style.layout.axis.stroke},plots:{color:t.value.style.layout.axis.stroke,radius:1}}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:Z},[t.value.style.legend.show?(e.openBlock(),e.createBlock(De.Legend,{key:`legend_${oe.value}`,legendSet:$.value,config:Le.value,onClickMarker:n[0]||(n[0]=({legend:a})=>ke(a.id))},{item:e.withCtx(({legend:a})=>[e.createElementVNode("div",{onClick:r=>a.segregate(),style:e.normalizeStyle(`opacity:${p.value.includes(a.id)?.5:1}`)},e.toDisplayString(a.name),13,Wt)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:$.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:ee,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Oe._sfc_main,{show:B.value.showTooltip&&I.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:T.value,content:X.value,isFullscreen:V.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...j.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...j.value})),void 0,!0)]),default:e.withCtx(()=>[t.value.style.tooltip.showShape?(e.openBlock(),e.createElementBlock("div",qt,[(e.openBlock(),e.createElementBlock("svg",It,[e.createVNode(Ce._sfc_main,{shape:c.value.shape,color:c.value.color,plot:{x:10,y:10},radius:7},null,8,["shape","color"])]))])):e.createCommentVNode("",!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),P.value?(e.openBlock(),e.createBlock(qe.default,{key:8,hideDetails:"",config:{open:B.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Fe.DataTable,{key:`table_${ae.value}`,colNames:F.value.colNames,head:F.value.head,body:F.value.body,config:F.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:n[1]||(n[1]=a=>B.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createTextVNode(e.toDisplayString(a),1)]),td:e.withCtx(({td:a})=>[a.shape?(e.openBlock(),e.createElementBlock("div",Xt,[e.createElementVNode("span",null,e.toDisplayString(a.content),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:a},null,8,Rt))]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,Ue))}},jt=je._export_sfc(Yt,[["__scopeId","data-v-e97afbcb"]]);exports.default=jt;