vue-data-ui 3.28.6 → 3.28.8

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 (229) hide show
  1. package/dist/BaseDraggableDialog-BK7dj9O6.js +1 -0
  2. package/dist/BaseIcon-CoY0vuL3.js +1 -0
  3. package/dist/{BaseLegendToggle-aT9fOoGO.js → BaseLegendToggle-BIzyyI1h.js} +1 -1
  4. package/dist/{BaseZoomControls-1OdFWrHW.js → BaseZoomControls-JSk9zW3D.js} +1 -1
  5. package/dist/ColorPicker-CwYfNvwH.js +1 -0
  6. package/dist/{DataTable-5Ug6gMAX.js → DataTable-Dof6yhO7.js} +1 -1
  7. package/dist/{HillActions-C8am4I5c.js → HillActions-BMH9pSmQ.js} +1 -1
  8. package/dist/{NonSvgPenAndPaper-CawVDtNj.js → NonSvgPenAndPaper-DXdAh1Sz.js} +1 -1
  9. package/dist/{PackageVersion-u-p5bCcj.js → PackageVersion-Bczw6rsP.js} +1 -1
  10. package/dist/PenAndPaper-DoNTA-SV.js +1 -0
  11. package/dist/SlicerPreview-ChKbdZSU.js +1 -0
  12. package/dist/UserOptions-DW84OKKr.js +1 -0
  13. package/dist/XyAnalysisOptions-U4UJx51x.js +1 -0
  14. package/dist/annotationSlots-OLiW25XN.js +1 -0
  15. package/dist/components/vue-ui-3d-bar.js +1 -1
  16. package/dist/components/vue-ui-accordion.js +1 -1
  17. package/dist/components/vue-ui-age-pyramid.js +1 -1
  18. package/dist/components/vue-ui-annotator.js +1 -1
  19. package/dist/components/vue-ui-bullet.js +1 -1
  20. package/dist/components/vue-ui-bump.js +1 -1
  21. package/dist/components/vue-ui-candlestick.js +1 -1
  22. package/dist/components/vue-ui-carousel-table.js +1 -1
  23. package/dist/components/vue-ui-chestnut.js +1 -1
  24. package/dist/components/vue-ui-chord.js +1 -1
  25. package/dist/components/vue-ui-circle-pack.js +1 -1
  26. package/dist/components/vue-ui-cursor.js +1 -1
  27. package/dist/components/vue-ui-dag.js +1 -1
  28. package/dist/components/vue-ui-dashboard.js +1 -1
  29. package/dist/components/vue-ui-digits.js +1 -1
  30. package/dist/components/vue-ui-donut-evolution.js +1 -1
  31. package/dist/components/vue-ui-donut.js +1 -1
  32. package/dist/components/vue-ui-dumbbell.js +1 -1
  33. package/dist/components/vue-ui-flow.js +1 -1
  34. package/dist/components/vue-ui-funnel.js +1 -1
  35. package/dist/components/vue-ui-galaxy.js +1 -1
  36. package/dist/components/vue-ui-gauge.js +1 -1
  37. package/dist/components/vue-ui-geo.js +1 -1
  38. package/dist/components/vue-ui-gizmo.js +1 -1
  39. package/dist/components/vue-ui-graph.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-hill.js +1 -1
  42. package/dist/components/vue-ui-history-plot.js +1 -1
  43. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  44. package/dist/components/vue-ui-icon.js +1 -1
  45. package/dist/components/vue-ui-kpi.js +1 -1
  46. package/dist/components/vue-ui-label.js +1 -1
  47. package/dist/components/vue-ui-mini-loader.js +1 -1
  48. package/dist/components/vue-ui-molecule.js +1 -1
  49. package/dist/components/vue-ui-mood-radar.js +1 -1
  50. package/dist/components/vue-ui-nested-donuts.js +1 -1
  51. package/dist/components/vue-ui-onion.js +1 -1
  52. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  53. package/dist/components/vue-ui-quadrant.js +1 -1
  54. package/dist/components/vue-ui-quick-chart.js +1 -1
  55. package/dist/components/vue-ui-radar.js +1 -1
  56. package/dist/components/vue-ui-rating.js +1 -1
  57. package/dist/components/vue-ui-relation-circle.js +1 -1
  58. package/dist/components/vue-ui-ridgeline.js +1 -1
  59. package/dist/components/vue-ui-rings.js +1 -1
  60. package/dist/components/vue-ui-scatter.js +1 -1
  61. package/dist/components/vue-ui-skeleton.js +1 -1
  62. package/dist/components/vue-ui-smiley.js +1 -1
  63. package/dist/components/vue-ui-spark-trend.js +1 -1
  64. package/dist/components/vue-ui-sparkbar.js +1 -1
  65. package/dist/components/vue-ui-sparkgauge.js +1 -1
  66. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  67. package/dist/components/vue-ui-sparkline.js +1 -1
  68. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  69. package/dist/components/vue-ui-stackbar.js +1 -1
  70. package/dist/components/vue-ui-stackline.js +1 -1
  71. package/dist/components/vue-ui-strip-plot.js +1 -1
  72. package/dist/components/vue-ui-table-heatmap.js +1 -1
  73. package/dist/components/vue-ui-table-sparkline.js +1 -1
  74. package/dist/components/vue-ui-table.js +1 -1
  75. package/dist/components/vue-ui-thermometer.js +1 -1
  76. package/dist/components/vue-ui-timer.js +1 -1
  77. package/dist/components/vue-ui-tiremarks.js +1 -1
  78. package/dist/components/vue-ui-treemap.js +1 -1
  79. package/dist/components/vue-ui-vertical-bar.js +1 -1
  80. package/dist/components/vue-ui-waffle.js +1 -1
  81. package/dist/components/vue-ui-wheel.js +1 -1
  82. package/dist/components/vue-ui-word-cloud.js +1 -1
  83. package/dist/components/vue-ui-world.js +1 -1
  84. package/dist/components/vue-ui-xy-canvas.js +1 -1
  85. package/dist/components/vue-ui-xy.js +1 -1
  86. package/dist/package-CNWVs68D.js +1 -0
  87. package/dist/{render-common-CTaC-_Nw.js → render-common-DY4sNXDz.js} +1 -1
  88. package/dist/ssr/vue-ui-donut.js +1 -1
  89. package/dist/ssr/vue-ui-xy.js +1 -1
  90. package/dist/ssr.js +1 -1
  91. package/dist/style.css +1 -1
  92. package/dist/types/vue-data-ui.d.ts +96 -0
  93. package/dist/types/vue-ui-xy.d.ts +4 -0
  94. package/dist/useConfig-By3Vb5kz.js +1 -0
  95. package/dist/{useObjectBindings-BCi3Az41.js → useObjectBindings-0vvvimYP.js} +1 -1
  96. package/dist/usePanZoom-CE6Ofyy8.js +1 -0
  97. package/dist/utils.js +1 -1
  98. package/dist/vue-data-ui-BWqplouA.js +1 -0
  99. package/dist/vue-data-ui.js +1 -1
  100. package/dist/vue-ui-3d-bar-DmRrbXjK.js +19 -0
  101. package/dist/{vue-ui-accordion-D4FHxzsL.js → vue-ui-accordion-DFxSW8ET.js} +1 -1
  102. package/dist/vue-ui-age-pyramid-CJJIp5gY.js +1 -0
  103. package/dist/{vue-ui-annotator-DuAQovkf.js → vue-ui-annotator-BnR2XnsL.js} +1 -1
  104. package/dist/vue-ui-bullet-Br7H7FSM.js +34 -0
  105. package/dist/vue-ui-bump-DCDHNvWE.js +8 -0
  106. package/dist/vue-ui-candlestick-C_swW8gM.js +22 -0
  107. package/dist/{vue-ui-carousel-table-CDgmtbuI.js → vue-ui-carousel-table-BP_yVdDm.js} +1 -1
  108. package/dist/vue-ui-chestnut-CIGNqBsT.js +1 -0
  109. package/dist/vue-ui-chord-DZRFBkRJ.js +21 -0
  110. package/dist/vue-ui-circle-pack-CtdPeMsY.js +13 -0
  111. package/dist/{vue-ui-cursor-9khzj4l-.js → vue-ui-cursor-DRQc_V2R.js} +1 -1
  112. package/dist/vue-ui-dag-Cj0CcntI.js +9 -0
  113. package/dist/vue-ui-dashboard-HyzHqAtX.js +1 -0
  114. package/dist/{vue-ui-digits-DdrPl8eP.js → vue-ui-digits-CfdB0vaP.js} +1 -1
  115. package/dist/vue-ui-donut-Cv-bYyBN.js +47 -0
  116. package/dist/{vue-ui-donut-BbJFmKZh.js → vue-ui-donut-Dy4j7B9b.js} +1 -1
  117. package/dist/vue-ui-donut-evolution-DL112anx.js +2 -0
  118. package/dist/vue-ui-dumbbell-owG24VsQ.js +9 -0
  119. package/dist/vue-ui-flow-BMNIydqI.js +3 -0
  120. package/dist/vue-ui-funnel-BsVS3vuI.js +1 -0
  121. package/dist/vue-ui-galaxy-B8HgdBjc.js +1 -0
  122. package/dist/vue-ui-gauge-B1A_NFY6.js +1 -0
  123. package/dist/vue-ui-geo-_TG4jaV9.js +1 -0
  124. package/dist/{vue-ui-gizmo-kebiFGRl.js → vue-ui-gizmo-D0QjzIGt.js} +1 -1
  125. package/dist/vue-ui-graph-DScVnTzu.js +7 -0
  126. package/dist/vue-ui-heatmap-BbQseEbM.js +1 -0
  127. package/dist/vue-ui-hill-D3V84h_t.js +1 -0
  128. package/dist/vue-ui-history-plot-Bx4WYG6U.js +2 -0
  129. package/dist/vue-ui-horizontal-bar-Do0HJy4f.js +4 -0
  130. package/dist/{vue-ui-kpi-D4q8R7Uq.js → vue-ui-kpi-CF7pAl08.js} +1 -1
  131. package/dist/{vue-ui-label-0lSeoxvv.js → vue-ui-label-W0oz08pp.js} +1 -1
  132. package/dist/{vue-ui-mini-loader-C6vhrfx3.js → vue-ui-mini-loader-OLYDdN3T.js} +1 -1
  133. package/dist/vue-ui-molecule-bAMGCA2Y.js +1 -0
  134. package/dist/vue-ui-mood-radar-CFpgxjuR.js +1 -0
  135. package/dist/vue-ui-nested-donuts-CWY26iKX.js +19 -0
  136. package/dist/vue-ui-onion-DsBUqL_c.js +5 -0
  137. package/dist/vue-ui-parallel-coordinate-plot-BF3gO85b.js +9 -0
  138. package/dist/vue-ui-quadrant-BkNG2LGm.js +2 -0
  139. package/dist/vue-ui-quick-chart-CYxvgVpD.js +17 -0
  140. package/dist/vue-ui-radar-0H8CiLmc.js +1 -0
  141. package/dist/{vue-ui-rating-7RAJA7I4.js → vue-ui-rating-B9HeTCLa.js} +1 -1
  142. package/dist/vue-ui-relation-circle-B0BM4xf8.js +1 -0
  143. package/dist/vue-ui-ridgeline-D-fDuE3y.js +2 -0
  144. package/dist/vue-ui-rings-UtlBiaZZ.js +1 -0
  145. package/dist/vue-ui-scatter-CduaARRt.js +9 -0
  146. package/dist/{vue-ui-skeleton-C0oElPXz.js → vue-ui-skeleton-an0peDis.js} +1 -1
  147. package/dist/{vue-ui-smiley-BdhxsPGW.js → vue-ui-smiley-Cht1imV-.js} +1 -1
  148. package/dist/{vue-ui-spark-trend-CRQ5JfVc.js → vue-ui-spark-trend-DCP7blHB.js} +1 -1
  149. package/dist/{vue-ui-sparkbar-BTclK0-F.js → vue-ui-sparkbar-DT3sDgda.js} +1 -1
  150. package/dist/{vue-ui-sparkgauge-zNl9Xmt3.js → vue-ui-sparkgauge-AQt2L5dI.js} +1 -1
  151. package/dist/{vue-ui-sparkhistogram-ynyE3DOc.js → vue-ui-sparkhistogram-a_jc2Dv2.js} +1 -1
  152. package/dist/{vue-ui-sparkline-CtsijvdW.js → vue-ui-sparkline-D2-KcHAU.js} +1 -1
  153. package/dist/{vue-ui-sparkstackbar-RHlqUD-0.js → vue-ui-sparkstackbar-CBI4S5cu.js} +1 -1
  154. package/dist/vue-ui-stackbar-DS_31-a3.js +29 -0
  155. package/dist/vue-ui-stackline-CuxohB0U.js +39 -0
  156. package/dist/vue-ui-strip-plot-bYGhsPA5.js +2 -0
  157. package/dist/{vue-ui-table-heatmap-IYPQ7LMg.js → vue-ui-table-heatmap-D6gpmHg8.js} +1 -1
  158. package/dist/{vue-ui-table-BetuN-ZS.js → vue-ui-table-lzolsJ_n.js} +1 -1
  159. package/dist/{vue-ui-table-sparkline-Fdjb-U1P.js → vue-ui-table-sparkline-By319cB8.js} +1 -1
  160. package/dist/vue-ui-thermometer-B3Uv3aWc.js +1 -0
  161. package/dist/{vue-ui-timer-BKqG5HxS.js → vue-ui-timer-C6Pevf4N.js} +2 -2
  162. package/dist/vue-ui-tiremarks-DeNdCFVD.js +1 -0
  163. package/dist/vue-ui-treemap-Ck9_llHA.js +1 -0
  164. package/dist/vue-ui-waffle-BW2SacnV.js +1 -0
  165. package/dist/vue-ui-wheel-BXDhx5bf.js +1 -0
  166. package/dist/vue-ui-word-cloud-DKPtoruY.js +4 -0
  167. package/dist/vue-ui-world-D9vpDbN7.js +19 -0
  168. package/dist/vue-ui-xy-CMckdUft.js +27 -0
  169. package/dist/{vue-ui-xy-Y_rIBQj0.js → vue-ui-xy-Df5gIADT.js} +1 -1
  170. package/dist/vue-ui-xy-canvas-CBrKi3nN.js +9 -0
  171. package/package.json +1 -1
  172. package/dist/BaseDraggableDialog-9d30Yx8c.js +0 -1
  173. package/dist/BaseIcon-fYK0iID8.js +0 -1
  174. package/dist/ColorPicker-DEJOjcmD.js +0 -1
  175. package/dist/PenAndPaper-r50tK3S4.js +0 -1
  176. package/dist/SlicerPreview-DYuyE9u9.js +0 -1
  177. package/dist/UserOptions-Em_JgDXM.js +0 -1
  178. package/dist/annotationSlots-RvQBEO9-.js +0 -1
  179. package/dist/package-BdTnZDoM.js +0 -1
  180. package/dist/useConfig-D3ZfFSE5.js +0 -1
  181. package/dist/usePanZoom-BdjP5Suc.js +0 -1
  182. package/dist/vue-data-ui-DRkivgOZ.js +0 -1
  183. package/dist/vue-ui-3d-bar-BeM22sZn.js +0 -19
  184. package/dist/vue-ui-age-pyramid-BpkEVmpT.js +0 -1
  185. package/dist/vue-ui-bullet-Cx9Noxp_.js +0 -34
  186. package/dist/vue-ui-bump-DIjSKk8F.js +0 -8
  187. package/dist/vue-ui-candlestick-Cfd63wqQ.js +0 -22
  188. package/dist/vue-ui-chestnut-24bmc5Rq.js +0 -1
  189. package/dist/vue-ui-chord-fQZQ9hjU.js +0 -21
  190. package/dist/vue-ui-circle-pack-C1CbpBNe.js +0 -13
  191. package/dist/vue-ui-dag-B6QkUUCe.js +0 -9
  192. package/dist/vue-ui-dashboard-BBaAZBSj.js +0 -1
  193. package/dist/vue-ui-donut-H65cwWN-.js +0 -47
  194. package/dist/vue-ui-donut-evolution-DeHbG9Rx.js +0 -2
  195. package/dist/vue-ui-dumbbell-ClCVHsrR.js +0 -9
  196. package/dist/vue-ui-flow-DyrpRWOP.js +0 -3
  197. package/dist/vue-ui-funnel-bjH_hFeX.js +0 -1
  198. package/dist/vue-ui-galaxy-BTgZs4Le.js +0 -1
  199. package/dist/vue-ui-gauge-CXZklQPg.js +0 -1
  200. package/dist/vue-ui-geo-0_HimFX5.js +0 -1
  201. package/dist/vue-ui-graph-NTeJASbv.js +0 -7
  202. package/dist/vue-ui-heatmap-aiEMlbZm.js +0 -1
  203. package/dist/vue-ui-hill-ZpLv0IMP.js +0 -1
  204. package/dist/vue-ui-history-plot-4xG3oQtO.js +0 -2
  205. package/dist/vue-ui-horizontal-bar-DMyL8GM6.js +0 -4
  206. package/dist/vue-ui-molecule-4t84pqvx.js +0 -1
  207. package/dist/vue-ui-mood-radar-BGuw0U8y.js +0 -1
  208. package/dist/vue-ui-nested-donuts-BTTJ6KAx.js +0 -19
  209. package/dist/vue-ui-onion-BUbI3uaY.js +0 -5
  210. package/dist/vue-ui-parallel-coordinate-plot-Bn3Y28ZQ.js +0 -9
  211. package/dist/vue-ui-quadrant-CVKEUWqI.js +0 -2
  212. package/dist/vue-ui-quick-chart-BgH0Arb4.js +0 -17
  213. package/dist/vue-ui-radar-Bb0u6tqk.js +0 -1
  214. package/dist/vue-ui-relation-circle-Csx30ROI.js +0 -1
  215. package/dist/vue-ui-ridgeline-Ce1ZrE0B.js +0 -2
  216. package/dist/vue-ui-rings-DgILqhz8.js +0 -1
  217. package/dist/vue-ui-scatter-CX_rE0cU.js +0 -9
  218. package/dist/vue-ui-stackbar-Zhl3to0r.js +0 -29
  219. package/dist/vue-ui-stackline-8JRhuHTg.js +0 -39
  220. package/dist/vue-ui-strip-plot-DL7Ulgpz.js +0 -2
  221. package/dist/vue-ui-thermometer-6kfYImU-.js +0 -1
  222. package/dist/vue-ui-tiremarks-D_ps9th8.js +0 -1
  223. package/dist/vue-ui-treemap-BfOdhGl7.js +0 -1
  224. package/dist/vue-ui-waffle-BL0zzw6B.js +0 -1
  225. package/dist/vue-ui-wheel-v1o2eN3I.js +0 -1
  226. package/dist/vue-ui-word-cloud-HUnuPCyQ.js +0 -4
  227. package/dist/vue-ui-world-BagJihbJ.js +0 -19
  228. package/dist/vue-ui-xy-D948j7de.js +0 -24
  229. package/dist/vue-ui-xy-canvas-CjrbWdJJ.js +0 -9
@@ -0,0 +1,9 @@
1
+ import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./useConfig-By3Vb5kz.js";import{$ as n,D as r,Dt as i,Ft as a,Ht as o,Jt as s,Kt as c,Mt as l,S as u,X as ee,Zt as te,_ as ne,_t as re,at as ie,i as ae,in as oe,nn as se,nt as ce,o as le,pt as ue,w as de,wt as fe,zt as pe}from"./lib-rPeBMZrn.js";import{n as me,t as he}from"./BaseScanner-8NdoBs7B.js";import{n as ge,t as _e}from"./useHints-C-TwxM0Y.js";import{t as ve}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as ye}from"./useNestedProp-DnGoh-XS.js";import{t as be}from"./useThemeCheck-BKNRbGeC.js";import{t as xe}from"./img-D4RQwASc.js";import{t as Se}from"./BaseIcon-CoY0vuL3.js";import{n as Ce}from"./Title-BliHuXfT.js";import{n as we,t as Te}from"./tableIntegration-CNoJ1CIY.js";import{n as Ee,t as De}from"./userOptionsSlots-DYuo-E5m.js";import{n as Oe,r as ke,t as Ae}from"./useTimeLabels-Das5O74F.js";import{t as je}from"./usePrinter-DVf3YcG5.js";import{a as Me,c as Ne,i as d,n as Pe,o as Fe,s as Ie,t as Le}from"./canvas-lib-22VpOI4_.js";import{t as Re}from"./useResponsive-CENUxfEL.js";import{t as ze}from"./SlicerPreview-ChKbdZSU.js";import{t as Be}from"./vue-ui-accordion-DFxSW8ET.js";import{t as Ve}from"./BaseLegendToggle-BIzyyI1h.js";import{t as He}from"./useUserOptionState-CXlFnwPv.js";import{t as Ue}from"./useChartAccessibility-DOMuYJfm.js";import{t as We}from"./Legend-DM0ClX3D.js";import{t as Ge}from"./vue_ui_xy_canvas-CT-FN9rU.js";import{Teleport as Ke,computed as f,createBlock as qe,createCommentVNode as p,createElementBlock as Je,createElementVNode as m,createSlots as Ye,createTextVNode as Xe,createVNode as Ze,defineAsyncComponent as Qe,guardReactiveProps as h,mergeProps as $e,nextTick as et,normalizeClass as tt,normalizeProps as g,normalizeStyle as nt,onBeforeUnmount as rt,onMounted as it,openBlock as _,ref as v,renderList as at,renderSlot as y,resolveDynamicComponent as ot,shallowRef as st,toDisplayString as ct,toRefs as lt,unref as b,useSlots as ut,watch as x,watchEffect as dt,withCtx as S}from"vue";var ft=/* @__PURE__ */ e({default:()=>Et}),pt=[`id`],mt=[`id`],ht={class:`sr-only`,"aria-live":`polite`,"aria-atomic":`true`},gt=[`id`],_t=[`aria-label`,`aria-describedby`],vt=[`viewBox`],yt=[`x`,`y`,`width`,`height`,`fill`,`fill-opacity`,`stroke`,`stroke-opacity`,`stroke-width`,`stroke-dasharray`],bt={key:1,style:{position:`absolute`,top:`100%`,left:`0`,width:`100%`},"data-dom-to-png-ignore":``,"aria-hidden":`true`},xt=[`id`],St=[`onClick`],Ct={key:4,class:`vue-data-ui-watermark`},wt={key:0},Tt={key:1},Et=/*#__PURE__*/ ve({__name:`vue-ui-xy-canvas`,props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}},selectedXIndex:{type:Number,default:void 0},zoomState:{type:Object,default:null}},emits:[`selectLegend`,`selectX`,`zoomStart`,`zoomEnd`,`zoomReset`,`update:zoomState`,`copyAlt`],setup(e,{expose:ve,emit:ft}){let Et=Qe(()=>import(`./Tooltip-C1q0Qoh7.js`)),Dt=Qe(()=>import(`./DataTable-Dof6yhO7.js`)),Ot=Qe(()=>import(`./UserOptions-DW84OKKr.js`).then(e=>e.n)),kt=Qe(()=>import(`./NonSvgPenAndPaper-DXdAh1Sz.js`)),At=Qe(()=>import(`./BaseDraggableDialog-BK7dj9O6.js`).then(e=>e.n)),{vue_ui_xy_canvas:jt}=t(),{isThemeValid:Mt,warnInvalidTheme:Nt}=be(),C=e,Pt=v(ee()),Ft=v(null),It=v(null),w=v(null),T=v(1),Lt=v(1),Rt=v(!1),E=v(null),zt=v(``),Bt=v(null),D=v([]),Vt=v(1),O=v(!0),Ht=v(!0),Ut=v(null),Wt=v(0),Gt=v(!1),Kt=v(null),qt=v(null),Jt=v(null),Yt=v(null),Xt=v(0),Zt=v(0),Qt=v(0),k=v(null),$t=v(!1),en=v(null),tn=v(null),nn=v(!1),rn=v(!1),an=v(!1),A=v(null),on=v(!1),sn=v(!1),cn=v(!1),j=v(null),ln=v({x:0,y:0}),M=f(()=>Array.isArray(vn.value)&&vn.value.length>0),N=ft,un=ut(),P=v(wn()),F=f(()=>P.value.userOptions),I=f(()=>P.value.style.chart.tooltip),L=f(()=>P.value.style.chart.grid.y.verticalLines),dn=f(()=>P.value.style.chart.grid.x.horizontalLines),R=f(()=>P.value.style.chart.grid.y.axisLabels),z=f(()=>P.value.style.chart.grid.x.timeLabels),B=f(()=>P.value.style.chart.grid),V=f(()=>P.value.style.chart.dataLabels),H=f(()=>P.value.style.chart);ge({config:()=>P.value,dataset:()=>C.dataset,component:`VueUiXyCanvas`,rules:[_e.emptyArray,{test:e=>e.every(e=>e.series.length<300),message:[`👀 Series have < 300 datapoints. Consider:`,``,`▶️ Using VueUiXy instead, if you need more options, or more customization possibilities.`]},{test:e=>e.some(e=>e.series.length>1e4),message:[`👀 The dataset has > 10_000 datapoints. Above this threshold, the dataset is computed through an LTTB algorithm, to preserve the shape of the data without increasing the number of datapoints.`,``,`▶️ If you need this level of detail, you can change config.downsample.threshold and set a higher value. Note that performance can be impacted. JS runtime might crash with > 100_000 datapoints.`]}]});let fn=f(()=>{let e=H.value.title.text||`XY chart`,t=X.value.end-X.value.start;return`${e}. ${Y.value.filter(e=>!D.value.includes(e.absoluteIndex)).length} series. ${t} visible data points.`}),pn=f(()=>{if(j.value===null)return``;let e=j.value+X.value.start;return`${_i.value[j.value]?I.value.useDefaultTimeFormat?vi.value[j.value]?.text:Pr.value[j.value]?.text:$.value[e]?.text??`Point ${e+1}`}. ${Y.value.filter(e=>!D.value.includes(e.absoluteIndex)).map(e=>{let t=e.series[j.value],n=t?.value??t??null;return`${e.name}: ${n}`}).join(`. `)}.`}),mn=f(()=>F.value.useCursorPointer),hn=f(()=>P.value.debug);it(()=>{un[`chart-background`]&&hn.value&&console.warn(`VueUiXyCanvas does not support the #chart-background slot.`)});let gn=f(()=>oe({defaultConfig:{userOptions:{show:!1},table:{show:!1},style:{chart:{backgroundColor:`#99999930`,grid:{x:{axisColor:`#6A6A6A`,timeLabels:{show:!1},axisName:``,horizontalLines:{color:`#6A6A6A`}},y:{axisColor:`#6A6A6A`,axisLabels:{show:!1},axisName:``,verticalLines:{color:`#6A6A6A`}},zeroLine:{color:`#6A6A6A`}},legend:{backgroundColor:`#99999930`},paddingProportions:{left:.05},scale:{max:null,min:null},zoom:{endIndex:null,startIndex:null}}}},userConfig:P.value.skeletonConfig??{}})),{loading:_n,FINAL_DATASET:vn}=me({...lt(C),FINAL_CONFIG:P,prepareConfig:wn,skeletonDataset:C.config?.skeletonDataset??[{name:``,series:[0,1,2,3,5,8,13,21,34,55,89,134],type:`line`,smooth:!0,color:`#BABABA`},{name:``,series:[0,.5,1,1.5,2.5,4,6.5,10.5,17,27.5,44.5,67],type:`bar`,color:`#AAAAAA`}],skeletonConfig:oe({defaultConfig:P.value,userConfig:gn.value})}),{userOptionsVisible:yn,setUserOptionsVisibility:bn,keepUserOptionState:xn}=He({config:P.value}),{svgRef:U}=Ue({config:H.value.title});function Sn(){bn(!0)}function Cn(){bn(!1),N(`selectX`,{dataset:null,index:null,indexLabel:null}),E.value=null}function wn(){let e=ye({userConfig:C.config,defaultConfig:jt}),t={},n=e.theme;if(n){if(!Mt.value(e))Nt(e),t=e;else{let r=ye({userConfig:Ge[n]||C.config,defaultConfig:e});t={...ye({userConfig:C.config,defaultConfig:r}),customPalette:e.customPalette.length?e.customPalette:se[n]||o}}}else t=e;return C.config&&fe(C.config,`style.chart.grid.y.timeLabels`)&&(console.warn(`VueUiXyCanvas: you are using the deprecated config.style.chart.grid.y.timeLabels. It is recommended to move this configuration to config.style.chart.grid.x.timeLabels.`),t.style.chart.grid.x.timeLabels=ye({defaultConfig:t.style.chart.grid.x.timeLabels,userConfig:C.config.style.chart.grid.y.timeLabels})),t}let Tn=te(C.config);x(()=>C.config,(e,t)=>{let n=te(e),r=n!==Tn;Tn=n;let i=wn();r?(_n.value||(P.value=i),yn.value=!F.value.showOnChartHover,Ni(),Xt.value+=1,Zt.value+=1,Qt.value+=1,W.value.showTable=P.value.table.show,W.value.showDataLabels=V.value.show,W.value.stacked=H.value.stacked,W.value.showTooltip=I.value.show):(P.value.style.chart.tooltip=i.style.chart.tooltip,W.value.showTooltip=P.value.style.chart.tooltip.show)},{deep:!0}),x(()=>C.dataset,async e=>{Array.isArray(e)&&e.length!==0&&(await et(),U.value&&!w.value&&(w.value=U.value.getContext(`2d`,{willReadFrequently:!0})),O.value=!0,Ht.value=!0,await pr(),Cr(),Xt.value+=1,Zt.value+=1,Qt.value+=1)},{deep:!0});let En=v(H.value.aspectRatio),{isPrinting:Dn,isImaging:On,generatePdf:kn,generateImage:An}=je({elementId:`xy_canvas_${Pt.value}`,fileName:H.value.title.text||`vue-ui-xy-canvas`,options:F.value.print}),W=v({showTable:P.value.table.show,showDataLabels:V.value.show,stacked:H.value.stacked,showTooltip:I.value.show});function jn(e){Gt.value=e,Wt.value+=1}let Mn=f(()=>de(P.value.customPalette)),Nn=f(()=>D.value.length===J.value.length),G=f(()=>J.value?Math.max(...J.value.filter((e,t)=>Nn.value?!0:!D.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0);function Pn(e){A.value=e,Jr()}let Fn=v(0),In=v(0);function Ln(){if(!w.value||!z.value.show)return 0;let e=$.value||[],t=X.value.start??0,n=X.value.end??0;if(!Math.max(0,n-t))return 0;let r=Math.round(T.value/40*z.value.fontSizeRatio),i=`${z.value.bold?`bold `:``}${r}px ${P.value.style.fontFamily}`;w.value.save(),w.value.font=i;let a=0;for(let r=t;r<n;r+=1){let t=e[r]?.text??`${r+1}`,n=w.value.measureText(String(t));n.width>a&&(a=n.width)}w.value.restore();let o=(z.value.rotation||0)*Math.PI/180,s=r,c=Math.abs(Math.sin(o))*a+Math.abs(Math.cos(o))*s,l=z.value.offsetY||1,u=T.value/l;return Math.max(0,u+c+4)}function Rn(){Fn.value=Ln()}function zn(){In.value&&cancelAnimationFrame(In.value),In.value=requestAnimationFrame(()=>{requestAnimationFrame(()=>{Rn()})})}rt(()=>{In.value&&cancelAnimationFrame(In.value)});let K=f(()=>{let e=T.value-T.value*(H.value.paddingProportions.left+H.value.paddingProportions.right),t=Lt.value*H.value.paddingProportions.top,n=Lt.value*H.value.paddingProportions.bottom,r=Fn.value,i=Lt.value-n-r,a=Lt.value-(t+n)-r;return{canvasWidth:T.value,canvasHeight:Lt.value,left:T.value*H.value.paddingProportions.left,top:t,right:T.value-T.value*H.value.paddingProportions.right,bottom:i,width:e,height:a,slot:e/(X.value.end-X.value.start)}});function Bn(e,t){return e/t}function Vn({hasAutoScale:e,series:t,min:n,max:r,scale:i,yOffset:a,individualHeight:o,stackIndex:s=null}){return t.map((t,n)=>{let r=i.min<0?Math.abs(i.min):0,c=Bn(t+r,r+i.max),l,u;e&&(l=i.min,u=Bn(t-l,i.max-l));let ee=0;return ee=s===null?K.value.bottom-K.value.height*(e?u:c):K.value.bottom-a-o*(e?u:c),{x:K.value.left+K.value.slot*n+K.value.slot/2,y:ee,value:t}})}let Hn=f(()=>{let e=/* @__PURE__ */ new Map;for(let t of J.value){let n=1/0,r=-1/0;for(let e of t.series.slice(X.value.start,X.value.end))n=Math.min(n,e),r=Math.max(r,e);e.set(t.absoluteIndex,{min:n,max:r})}return e}),Un=f(()=>{let e=1/0,t=-1/0;for(let n of J.value){if(D.value.includes(n.absoluteIndex))continue;let r=Hn.value.get(n.absoluteIndex);e=Math.min(e,r.min),t=Math.max(t,r.max)}return{min:e,max:t}}),q=f(()=>{let e=H.value.scale.min===null?Un.value.min:H.value.scale.min,t=H.value.scale.max===null?Un.value.max:H.value.scale.max,n=ne(e<0?e:0,t===e?e+1<0?0:e+1:t<0?0:t,H.value.scale.ticks),r=n.min<0?Math.abs(n.min):0,i=K.value.bottom-K.value.height*(r/(n.max+r));return{absoluteMin:r,max:t,min:e,scale:n,yLabels:n.ticks.map(e=>({y:K.value.bottom-K.value.height*((e+r)/(n.max+r)),x:K.value.left-8,value:e})),zero:i}}),Wn=f(()=>Y.value.map(e=>`
2
+ <div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
3
+ <svg viewBox="0 0 10 10" height="12" width="12">
4
+ <circle cx="5" cy="5" r="5" fill="${e.color}"/>
5
+ </svg>
6
+ <span>${e.name?e.name+`: `:``}</span>
7
+ <span>${ae(V.value.formatter,e.series[E.value]??`-`,n({p:e.prefix||``,v:e.series[E.value]??`-`,s:e.suffix||``,r:e.rounding||0}),{datapoint:e,seriesIndex:E.value})}</span>
8
+ </div>
9
+ `)),Gn=f(()=>H.value.line.cutNullValues),J=f(()=>vn.value.map((e,t)=>({...e,series:l({data:c(e.series,[],Gn.value),threshold:P.value.downsample.threshold}),absoluteIndex:t,color:u(e.color||Mn.value[t]||o[t]||o[t%o.length])}))),Kn=f(()=>{if(!H.value.zoom.minimap.show)return[];let e=J.value.filter(e=>!D.value.includes(e.absoluteIndex)),t=0;for(let n of e)t=Math.max(t,n.series.length);let n=[],r=1/0;for(let i=0;i<t;i+=1){let t=0;for(let n of e)t=(t||0)+(n.series[i]||0);n.push(t),r=Math.min(r,t)}return n.map(e=>e+(r<0?Math.abs(r):0))}),qn=f(()=>H.value.zoom.minimap.show?J.value.map(e=>({...e,isVisible:!D.value.includes(e.absoluteIndex)})):[]);x(G,e=>{e&&pr()});let Y=f(()=>le(J.value.filter((e,t)=>!D.value.includes(e.absoluteIndex))).map((e,t)=>({...e,series:e.series.slice(X.value.start,X.value.end)})).map((e,t)=>{let n=[null,void 0].includes(e.scaleMin)?Hn.value.get(e.absoluteIndex).min||0:e.scaleMin,r=[null,void 0].includes(e.scaleMax)?Hn.value.get(e.absoluteIndex).max||1:e.scaleMax;n===r&&(n=n>=0?r-1:n,r=r>=0?r:n+1);let i={ratios:e.series.filter(e=>![null,void 0].includes(e)).map(e=>(e-n)/(r-n)),valueMin:n,valueMax:r},a=e.scaleSteps||H.value.scale.ticks,o;o=e.autoScaling?ne(i.valueMin,i.valueMax,a):ne(i.valueMin<0?i.valueMin:0,i.valueMax<=0?0:i.valueMax,a);let s=W.value.stacked?K.value.height*(1-e.cumulatedStackRatio):0,c=W.value.stacked?K.value.height/H.value.stackGap:0,l=W.value.stacked?K.value.height*e.stackRatio-c:K.value.height,u=o.min<0?Math.abs(o.min):0,ee;ee=e.autoScaling&&W.value.stacked&&r<=0?K.value.bottom-s-l:K.value.bottom-s-l*(u/(o.max+u));let te=o.ticks.map((e,t)=>({y:K.value.bottom-s-l*(t/(o.ticks.length-1)),x:K.value.left-8,value:e})),re=Vn({hasAutoScale:W.value.stacked&&e.autoScaling,series:e.series,min:W.value.stacked?n:q.value.min,max:W.value.stacked?r:q.value.max,scale:W.value.stacked?o:q.value.scale,yOffset:s,individualHeight:l,stackIndex:W.value.stacked?t:null});return{...e,coordinatesLine:re,min:n,max:r,localScale:o,localZero:ee,localMin:u,localYLabels:te,yOffset:s,individualHeight:l}})),X=v({start:0,end:G.value}),Z=v({start:0,end:G.value}),Jn=v(!1),Yn=v(!1),Xn=v(null),Zn=v(!1),Qn=v(null),$n=v(null),er=v(null),tr=v({time:0,x:0,y:0,pointerType:null}),nr=f(()=>H.value.zoom?.dragToZoom),rr=f(()=>nr.value.show&&M.value&&rn.value&&G.value>1&&!_n.value),ir=v(null),ar=null,or={};function sr(){return new Promise(e=>requestAnimationFrame(()=>requestAnimationFrame(()=>e())))}function cr(e,t=X.value){if(!e||typeof e!=`object`)return null;let n=e.start!==void 0&&e.start!==null,r=e.end!==void 0&&e.end!==null;if(!n&&!r)return null;let i=Number(n?e.start:t.start),a=Number(r?e.end:t.end);return!Number.isFinite(i)||!Number.isFinite(a)?null:{start:i,end:a}}function lr(e){let t=cr(e);t&&N(`update:zoomState`,t)}function ur(){ar&&=(cancelAnimationFrame(ar),null),or={}}function dr(e){let t=cr(e);if(!t)return null;let{start:n,end:r}=t;return(n!==Number(X.value.start)||r!==Number(X.value.end))&&(ur(),X.value={start:n,end:r},Z.value={start:n,end:r},xr()),{start:Number(X.value.start),end:Number(X.value.end)}}function fr(e){let t=dr(e);return t?(N(`update:zoomState`,t),t):null}rt(()=>{ir.value&&cancelAnimationFrame(ir.value),ur(),li()});async function pr({force:e=!1,publish:t=!1}={}){let n=!e;await gr(n),await et(),ir.value&&cancelAnimationFrame(ir.value),ir.value=requestAnimationFrame(async()=>{await sr(),await gr(n),ir.value=null,t&&(lr({start:Number(X.value.start),end:Number(X.value.end)}),N(`zoomReset`))})}let mr=f(()=>H.value.zoom.preview.enable&&(Z.value.start!==X.value.start||Z.value.end!==X.value.end));function hr(e,t){Z.value[e]=t}async function gr(e=!0){if(!nn.value){nn.value=!0;try{let{startIndex:t,endIndex:n}=H.value.zoom,r=Math.max(...J.value.map(e=>e.series.length)),i=t??0,a=n==null?r:Math.min(br(n+1,i),r);an.value=!0,X.value={start:i,end:a},Z.value={start:i,end:a},xr(),rn.value=!0,await et(),Jt.value&&Jt.value.setRangeValues(X.value.start,X.value.end),e&&C.zoomState&&dr(C.zoomState)}finally{queueMicrotask(()=>{an.value=!1}),nn.value=!1}}}function _r(e){or={...or,...e},ar&&cancelAnimationFrame(ar),ar=requestAnimationFrame(()=>{let e={...X.value,...or};or={},ar=null,X.value=e,Z.value={...e},xr(),lr({start:Number(X.value.start),end:Number(X.value.end)})})}function vr(e){if(nn.value||an.value)return;let t=Number(e);Number.isFinite(t)&&(N(`zoomStart`,{index:t,isZoom:t!==0}),t!==X.value.start&&_r({start:t}))}function yr(e){if(nn.value||an.value)return;let t=or.start===void 0?X.value.start:or.start,n=br(Number(e),t);Number.isFinite(n)&&(N(`zoomEnd`,{index:n,isZoom:n!==G.value}),(n!==X.value.end||or.start!==void 0)&&_r({end:n}))}function br(e,t=X.value.start){let n=G.value,r=Number(t);return e>n?n:e<0||e<=r?Math.min(r+1,n):e}function xr(){let e=Math.max(1,Math.max(...J.value.map(e=>e.series.length))),t=Math.max(0,Math.min(X.value.start??0,e-1)),n=Math.max(t+1,Math.min(X.value.end??e,e));(!Number.isFinite(t)||!Number.isFinite(n)||n<=t)&&(t=0,n=e),X.value={start:t,end:n},Z.value={start:t,end:n},Jt.value&&Jt.value.setRangeValues(t,n)}x([()=>C.zoomState,rn],([e,t])=>{t&&e&&dr(e)},{deep:!0,immediate:!0});let Sr=f(()=>Y.value.filter(e=>[`line`,`plot`,void 0].includes(e.type))),Q=f(()=>Y.value.filter(e=>e.type===`bar`));function Cr(){if(!U.value||!It.value)return;let e=It.value.offsetWidth,t=It.value.offsetHeight,n=e*Vt.value*2,r=t*Vt.value*2;(U.value.width!==Math.trunc(n)||U.value.height!==Math.trunc(r))&&(U.value.width=n,U.value.height=r,w.value?.scale(Vt.value,Vt.value),O.value=!0,Ut.value=null),T.value=n,Lt.value=r,Gr()}x(M,async e=>{e?(await et(),U.value&&!w.value&&(w.value=U.value.getContext(`2d`,{willReadFrequently:!0})),O.value=!0,Ht.value=!0,await pr(),Cr()):(Ut.value=null,Rt.value=!1,E.value=null,k.value=null)});function wr(){if(w.value&&(w.value.clearRect(0,0,1e4,1e4),w.value.fillStyle=H.value.backgroundColor,w.value.fillRect(0,0,K.value.canvasWidth,K.value.canvasHeight),M.value)){if(W.value.stacked)L.value.show&&X.value.end-X.value.start<L.value.hideUnderXLength?Y.value.forEach(e=>{for(let t=0;t<X.value.end-X.value.start+1;t+=1)d(w.value,[{x:K.value.left+K.value.slot*t,y:K.value.bottom-e.yOffset-e.individualHeight},{x:K.value.left+K.value.slot*t,y:K.value.bottom-e.yOffset}],{color:L.value.color})}):L.value.show&&X.value.end-X.value.start>=L.value.hideUnderXLength&&Y.value.forEach(e=>{for(let t=X.value.start;t<X.value.end;t+=1)t%Math.floor((X.value.end-X.value.start)/dn.value.modulo)===0&&d(w.value,[{x:K.value.left+K.value.slot*(t-X.value.start)+K.value.slot/2,y:K.value.bottom-e.yOffset-e.individualHeight},{x:K.value.left+K.value.slot*(t-X.value.start)+K.value.slot/2,y:K.value.bottom-e.yOffset}],{color:L.value.color})}),dn.value.show&&(dn.value.alternate?Y.value.forEach(e=>{e.localYLabels.forEach((t,n)=>{n<e.localYLabels.length-1&&Fe(w.value,[{x:K.value.left,y:t.y},{x:K.value.right,y:t.y},{x:K.value.right,y:e.localYLabels[n+1].y},{x:K.value.left,y:e.localYLabels[n+1].y}],{fillColor:n%2==0?`transparent`:s(H.value.grid.x.horizontalLines.color,H.value.grid.x.horizontalLines.opacity),strokeColor:`transparent`})})}):Y.value.forEach(e=>{e.localYLabels.slice(X.value.start,X.value.end).forEach(e=>{d(w.value,[{x:K.value.left,y:e.y},{x:K.value.right,y:e.y}],{color:dn.value.color})})})),B.value.zeroLine.show&&Y.value.forEach(e=>{d(w.value,[{x:K.value.left,y:e.localZero},{x:K.value.right,y:e.localZero}],{color:B.value.zeroLine.color,lineDash:B.value.zeroLine.dashed?[10,10]:[0,0]})}),R.value.show&&Y.value.forEach(e=>{d(w.value,[{x:K.value.left,y:K.value.bottom-e.yOffset},{x:K.value.left,y:K.value.bottom-e.yOffset-e.individualHeight}],{color:e.color}),d(w.value,[{x:K.value.right,y:K.value.bottom-e.yOffset},{x:K.value.right,y:K.value.bottom-e.yOffset-e.individualHeight}],{color:e.color})}),Y.value.forEach(e=>{Ie(w.value,e.name,T.value/35,K.value.bottom-e.yOffset-e.individualHeight/2,{align:`center`,rotation:-90,color:e.color,font:`${Math.round(T.value/40*R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`})});else{if(L.value.show&&X.value.end-X.value.start<L.value.hideUnderXLength)for(let e=0;e<X.value.end-X.value.start+1;e+=1)d(w.value,[{x:K.value.left+K.value.slot*e,y:K.value.top},{x:K.value.left+K.value.slot*e,y:K.value.bottom}],{color:L.value.color});else if(L.value.show&&X.value.end-X.value.start>=L.value.hideUnderXLength)for(let e=X.value.start;e<X.value.end;e+=1)e%Math.floor((X.value.end-X.value.start)/z.value.modulo)===0&&d(w.value,[{x:K.value.left+K.value.slot*(e-X.value.start)+K.value.slot/2,y:K.value.top},{x:K.value.left+K.value.slot*(e-X.value.start)+K.value.slot/2,y:K.value.bottom}],{color:L.value.color});dn.value.show&&(dn.value.alternate?q.value.yLabels.forEach((e,t)=>{t<q.value.yLabels.length-1&&Fe(w.value,[{x:K.value.left,y:e.y},{x:K.value.right,y:e.y},{x:K.value.right,y:q.value.yLabels[t+1].y},{x:K.value.left,y:q.value.yLabels[t+1].y}],{fillColor:t%2==0?`transparent`:s(H.value.grid.x.horizontalLines.color,H.value.grid.x.horizontalLines.opacity),strokeColor:`transparent`})}):q.value.yLabels.forEach(e=>{d(w.value,[{x:K.value.left,y:e.y},{x:K.value.right,y:e.y}],{color:dn.value.color})})),B.value.y.showAxis&&d(w.value,[{x:K.value.left,y:K.value.top},{x:K.value.left,y:K.value.bottom}],{color:B.value.y.axisColor,lineWidth:B.value.y.axisThickness}),B.value.x.showAxis&&d(w.value,[{x:K.value.left,y:K.value.bottom},{x:K.value.right,y:K.value.bottom}],{color:B.value.x.axisColor,lineWidth:B.value.x.axisThickness}),B.value.zeroLine.show&&d(w.value,[{x:K.value.left,y:q.value.zero},{x:K.value.right,y:q.value.zero}],{color:B.value.zeroLine.color,lineDash:B.value.zeroLine.dashed?[10,10]:[0,0]})}B.value.y.axisName&&Ie(w.value,B.value.y.axisName,T.value-T.value/40*R.value.fontSizeRatio*1.2,K.value.bottom-K.value.height/2,{font:`${R.value.bold?`bold `:``}${Math.round(T.value/40*R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,color:H.value.color,align:`center`,rotation:90}),B.value.x.axisName&&Ie(w.value,B.value.x.axisName,T.value/2,Lt.value,{font:`${R.value.bold?`bold `:``}${Math.round(T.value/40*R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,color:H.value.color,align:`center`})}}function Tr(e){for(let t=0;t<e.coordinatesLine.length;t+=1){let n=(E.value===t||A.value===t?T.value/150:H.value.line.plots.show||e.type===`plot`?T.value/200:0)*H.value.line.plots.radiusRatio;Le(w.value,{x:e.coordinatesLine[t].x,y:e.coordinatesLine[t].y},n,{color:H.value.backgroundColor,fillStyle:e.color,strokeColor:`transparent`})}}function Er(){Y.value.forEach(e=>{e.showYMarker&&Xr(e)&&Ie(w.value,ae(V.value.formatter,Xr(e).value,n({p:e.prefix||R.value.prefix||``,v:Xr(e).value,s:e.suffix||R.value.suffix||``,r:e.rounding||R.value.rounding||0}),{datapoint:Xr(e),seriesIndex:null}),K.value.left-8+R.value.offsetX,Xr(e).y,{align:`right`,font:`${R.value.bold?`bold `:``}${Math.round(T.value/40*R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,color:e.color})})}function Dr(){R.value.show&&(W.value.stacked?Y.value.forEach(e=>{e.localYLabels.forEach((t,r)=>{Ie(w.value,ae(V.value.formatter,t.value,n({p:e.prefix||B.value.y.axisLabels.prefix||``,v:t.value,s:e.suffix||B.value.y.axisLabels.suffix||``,r:e.rounding||B.value.y.axisLabels.rounding||0}),{datapoint:t,seriesIndex:r}),t.x+R.value.offsetX,t.y,{align:`right`,font:`${R.value.bold?`bold `:``}${Math.round(T.value/40*R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,color:e.color,globalAlpha:e.showYMarker&&![null,void 0].includes(E.value??A.value)?.2:1})})}):q.value.yLabels.forEach((e,t)=>{Ie(w.value,ae(V.value.formatter,e.value,n({p:R.value.prefix||``,v:e.value,s:R.value.suffix||``,r:R.value.rounding||0}),{datapoint:e,seriesIndex:t}),e.x+R.value.offsetX,e.y,{align:`right`,font:`${R.value.bold?`bold `:``}${Math.round(T.value/40*R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,color:R.value.color,globalAlpha:Y.value.some(e=>e.showYMarker)&&![null,void 0].includes(E.value??A.value)?.2:1})}))}function Or(e){for(let t=0;t<e.coordinatesLine.length;t+=1)Ie(w.value,ae(V.value.formatter,e.coordinatesLine[t].value,n({p:e.prefix||``,v:e.coordinatesLine[t].value,s:e.suffix||``,r:e.rounding||0}),{datapoint:e.coordinatesLine[t],seriesIndex:t}),e.coordinatesLine[t].x,e.coordinatesLine[t].y+V.value.offsetY,{align:`center`,font:`${V.value.bold?`bold `:``}${Math.round(T.value/40*V.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,color:V.value.useSerieColor?e.color:V.value.color,strokeColor:H.value.backgroundColor,lineWidth:.5})}let $=v([]),kr=0;dt(()=>{let e=++kr;(async()=>{let t=await Ae({values:z.value.values,maxDatapoints:G.value,formatter:z.value.datetimeFormatter,start:0,end:G.value});e===kr&&($.value=t)})()}),dt(()=>{z.value.show,z.value.rotation,z.value.offsetY,z.value.fontSizeRatio,z.value.bold,X.value.start,X.value.end,T.value,Lt.value,($.value||[]).map(e=>e?.text??``).join(`|`),zn()},{flush:`post`});let Ar=v({months:[],shortMonths:[],days:[],shortDays:[]}),jr=0;dt(()=>{let e=++jr,t=z.value.datetimeFormatter;(async()=>{let n=await ke(t.locale).catch(()=>ke(`en`));e===jr&&(Ar.value=n.data)})()});let Mr=f(()=>{let e=z.value.datetimeFormatter,t=Oe({useUTC:e.useUTC,locale:Ar.value,januaryAsYear:e.januaryAsYear});return(e,n)=>{let r=z.value.values?.[e];return r==null?``:t.formatDate(new Date(r),n)}}),Nr=f(()=>(z.value.values||[]).map((e,t)=>({text:Mr.value(t,H.value.zoom.timeFormat),absoluteIndex:t}))),Pr=f(()=>(z.value.values||[]).map((e,t)=>({text:Mr.value(t,I.value.timeFormat),absoluteIndex:t})));function Fr(){for(let e=X.value.start;e<X.value.end;e+=1)(X.value.end-X.value.start<z.value.modulo||X.value.end-X.value.start>=z.value.modulo&&(e%Math.floor((X.value.end-X.value.start)/z.value.modulo)===0||(e===E.value+X.value.start||e===A.value)&&z.value.showMarker))&&Ie(w.value,$.value[e]?$.value[e].text:e+1,K.value.left+K.value.slot*(e-X.value.start)+K.value.slot/2,K.value.bottom+T.value/z.value.offsetY,{align:z.value.rotation===0?`center`:z.value.rotation>0?`left`:`right`,font:`${z.value.bold?`bold `:``}${Math.round(T.value/40*z.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,color:z.value.showMarker?s(z.value.color,E.value!==null||A.value!==null?E.value+X.value.start===e||A.value===e?100:20:100):z.value.color,rotation:z.value.rotation})}function Ir(){d(w.value,[{x:K.value.left+K.value.slot*(E.value??A.value)+K.value.slot/2,y:K.value.top},{x:K.value.left+K.value.slot*(E.value??A.value)+K.value.slot/2,y:K.value.bottom}],{color:H.value.selector.color,lineDash:H.value.selector.dashed?[8,8]:[0,0],lineWidth:2,linceCap:`round`})}function Lr(){k.value&&d(w.value,[{x:K.value.left,y:k.value},{x:K.value.right,y:k.value}],{color:H.value.selector.color,lineDash:H.value.selector.dashed?[8,8]:[0,0],lineWidth:2,linceCap:`round`})}function Rr(){Q.value.forEach((e,t)=>{for(let r=0;r<e.coordinatesLine.length;r+=1)Fe(w.value,[{x:K.value.left+K.value.slot*r+K.value.slot/10+(W.value.stacked?0:K.value.slot/Q.value.length*t-(t===0?0:K.value.slot/(5*Q.value.length)*t)),y:W.value.stacked?e.localZero:q.value.zero},{x:K.value.left+K.value.slot*r+K.value.slot/10+(W.value.stacked?0:K.value.slot/Q.value.length*t-(t===0?0:K.value.slot/(5*Q.value.length)*t))+K.value.slot*.8/(W.value.stacked?1:Q.value.length),y:W.value.stacked?e.localZero:q.value.zero},{x:K.value.left+K.value.slot*r+K.value.slot/10+(W.value.stacked?0:K.value.slot/Q.value.length*t-(t===0?0:K.value.slot/(5*Q.value.length)*t))+K.value.slot*.8/(W.value.stacked?1:Q.value.length),y:e.coordinatesLine[r].y},{x:K.value.left+K.value.slot*r+K.value.slot/10+(W.value.stacked?0:K.value.slot/Q.value.length*t-(t===0?0:K.value.slot/(5*Q.value.length)*t)),y:e.coordinatesLine[r].y}],{strokeColor:H.value.backgroundColor,gradient:{type:`linear`,start:{x:e.coordinatesLine[r].x,y:e.coordinatesLine[r].y},end:{x:e.coordinatesLine[r].x,y:W.value.stacked?e.localZero:q.value.zero},stops:[{offset:0,color:e.color},{offset:1,color:H.value.bar.gradient.show?a(e.color,.5):e.color}]}}),W.value.showDataLabels&&[!0,void 0].includes(e.dataLabels)&&Ie(w.value,ae(V.value.formatter,e.coordinatesLine[r].value,n({p:e.prefix||``,v:e.coordinatesLine[r].value,s:e.suffix||``,r:e.rounding||0}),{datapoint:e.coordinatesLine[r],seriesIndex:r}),K.value.left+K.value.slot*r+K.value.slot/10+(W.value.stacked?0:K.value.slot/Q.value.length*t-(t===0?0:K.value.slot/(5*Q.value.length)*t))+K.value.slot*.4/(W.value.stacked?1:Q.value.length),(e.coordinatesLine[r].value<0?W.value.stacked?e.localZero:q.value.zero:e.coordinatesLine[r].y)+V.value.offsetY,{align:`center`,font:`${Math.round(T.value/40*V.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,color:V.value.useSerieColor?e.color:V.value.color,strokeColor:H.value.backgroundColor,lineWidth:.8})})}function zr(e,t){let n=e.coordinatesLine.map((t,n)=>e.series[n]!=null&&Number.isFinite(t?.y)?t:null),r=[],i=[],a=[];for(let e=0;e<n.length;e+=1){let o=n[e];if(o)a.push(o);else{if(a.length>=2){let e=a[0],n=a[a.length-1];r.push([{x:e.x,y:t},...a,{x:n.x,y:t}])}else a.length===1&&i.push(a[0]);a=[]}}if(a.length>=2){let e=a[0],n=a[a.length-1];r.push([{x:e.x,y:t},...a,{x:n.x,y:t}])}else a.length===1&&i.push(a[0]);return{polygons:r,singles:i}}function Br(e){let t=e.coordinatesLine.map((t,n)=>e.series[n]!=null&&Number.isFinite(t?.y)?t:null),n=[],r=[];for(let e=0;e<t.length;e+=1){let i=t[e];i?r.push(i):(r.length>=2&&n.push(r),r=[])}return r.length>=2&&n.push(r),n}function Vr(e){if(Gn.value){let t=Br(e);for(let n of t)d(w.value,n,{color:e.color,lineWidth:3})}else d(w.value,e.coordinatesLine,{color:e.color,lineWidth:3})}function Hr(e){let t=!!Gn.value;if(e.useArea){let n=W.value.stacked?e.localZero:q.value.zero;if(t){let{polygons:t,singles:r}=zr(e,n);for(let n of t)Me(w.value,n,{fillColor:s(e.color,H.value.area.opacity),strokeColor:`transparent`});let i=T.value/200*H.value.line.plots.radiusRatio;for(let t of r)Le(w.value,{x:t.x,y:t.y},i,{color:H.value.backgroundColor,fillStyle:e.color,strokeColor:`transparent`})}else{let t={x:e.coordinatesLine[0].x,y:n},r={x:e.coordinatesLine.at(-1).x,y:n};Me(w.value,[t,...e.coordinatesLine,r],{fillColor:s(e.color,H.value.area.opacity),strokeColor:`transparent`})}Vr(e)}else Vr(e)}function Ur(){Y.value.forEach((e,t)=>{d(w.value,[{x:K.value.left,y:K.value.bottom-e.yOffset},{x:K.value.right,y:K.value.bottom-e.yOffset}],{color:dn.value.color,lineWidth:1})})}function Wr(){let{left:e,top:t,width:n,height:r}=K.value,i=X.value.start,a=X.value.end-i,o=n/a,s=Z.value.start-i,c=Z.value.end-i,l=Math.max(0,Math.min(a,s)),u=Math.max(0,Math.min(a,c));Fe(w.value,[{x:e+l*o,y:t},{x:e+l*o+(u-l)*o,y:t},{x:e+l*o+(u-l)*o,y:t+r},{x:e+l*o,y:t+r}],{fillColor:H.value.zoom.preview.fill,strokeColor:H.value.zoom.preview.stroke,lineDash:[,,,,].fill(H.value.zoom.preview.strokeDasharray),lineWidth:H.value.zoom.preview.strokeWidth})}function Gr(){M.value&&U.value&&w.value&&(qr?(qr=!1,Cr()):(Kr!==null&&(cancelAnimationFrame(Kr),Kr=null),Ut.value||(O.value=!0),O.value?(wr(),(E.value!==null||A.value!==null)&&H.value.selector.show&&Ir(),Rr(),W.value.stacked&&B.value.x.showAxis&&Ur(),Sr.value.forEach(e=>{e.type!==`line`&&e.type||Hr(e),Tr(e),W.value.showDataLabels&&[!0,void 0].includes(e.dataLabels)&&Or(e)}),U.value&&(Ut.value=Pe(U.value))):(Ut.value&&(w.value.clearRect(0,0,1e4,1e4),w.value.drawImage(Ut.value,0,0)),(E.value!==null||A.value!==null)&&H.value.selector.show&&Ir(),(E.value!==null||A.value!==null)&&Y.value.forEach(e=>{let t=E.value??A.value,n=e.coordinatesLine[t];(e.type===`line`||!e.type||e.type===`plot`)&&n&&Number.isFinite(n.x)&&Number.isFinite(n.y)&&Le(w.value,{x:n.x,y:n.y},T.value/150*H.value.line.plots.radiusRatio,{color:H.value.backgroundColor,fillStyle:e.color,strokeColor:`transparent`})})),z.value.show&&Fr(),H.value.selector.show&&H.value.selector.showHorizontalSelector&&Lr(),Dr(),Er(),H.value.zoom.preview.enable&&(X.value.start!==Z.value.start||X.value.end!==Z.value.end)&&Wr(),O.value=!1))}let Kr=null,qr=!1;function Jr(){Kr===null&&(Kr=requestAnimationFrame(()=>{Kr=null,qr?(qr=!1,Cr()):Gr()}))}function Yr(){Ht.value=!0,qr=!0,Jr()}rt(()=>{Kr!==null&&cancelAnimationFrame(Kr)});function Xr(e){if([null,void 0].includes(E.value??A.value)||!e.coordinatesLine[E.value??A.value])return!1;let{y:t,value:n}=e.coordinatesLine[E.value??A.value];return{y:t,value:n}}let Zr=f(()=>!Jn.value||Qn.value==null||$n.value==null?null:{x:Math.min(Qn.value,$n.value),y:K.value.top,width:Math.abs($n.value-Qn.value),height:K.value.height}),Qr=f(()=>rn.value?Number(X.value.start)!==0||Number(X.value.end)!==Number(G.value):!1);function $r(e){if(!U.value)return null;let t=U.value.getBoundingClientRect();return!t.width||!t.height?null:{x:(e.clientX-t.left)*(K.value.canvasWidth/t.width),y:(e.clientY-t.top)*(K.value.canvasHeight/t.height)}}function ei(e){return Math.min(Math.max(e,K.value.left),K.value.right)}function ti(e){return Y.value.map(t=>{let n=t.series[e];return{...t,name:t.name,value:[null,void 0,NaN].includes(n)?null:n,color:t.color,type:t.type}})}function ni(e,t){if(t==null||t<0||t>=X.value.end-X.value.start)return;let n=P.value.events?.[e];i(n)&&n({datapoint:ti(t),seriesIndex:t+X.value.start})}function ri(e){Xn.value!==e&&(Xn.value=e,ni(`datapointEnter`,e))}function ii(){let e=Xn.value;e!=null&&ni(`datapointLeave`,e),Xn.value=null}function ai(){Zn.value=!0,setTimeout(()=>{Zn.value=!1},0)}function oi(e){if(!e||!K.value?.slot)return null;let{left:t,right:n,top:r,bottom:i,slot:a}=K.value;if(e.x<t||e.x>n||e.y<r||e.y>i)return null;let o=Math.floor((e.x-t)/a),s=X.value.end-X.value.start;return o<0||o>=s?null:o}function si(e){if(Zn.value){Zn.value=!1;return}let t=oi($r(e));t!==null&&ni(`datapointClick`,t)}function ci(){ii(),wi(),A.value=null}function li(e){let t=e?.pointerId==null?er.value:e.pointerId;t!=null&&U.value?.hasPointerCapture?.(t)&&U.value.releasePointerCapture(t),Jn.value=!1,Qn.value=null,$n.value=null,er.value=null}function ui(e){if(!rr.value||!Qr.value||!e)return!1;let t=Date.now(),n=e.pointerType||`mouse`,r=tr.value,i=n===`touch`?450:350,a=n===`touch`?28:10,o=Math.hypot(e.clientX-r.x,e.clientY-r.y);return r.time>0&&r.pointerType===n&&t-r.time<=i&&o<=a?(tr.value={time:0,x:0,y:0,pointerType:null},ai(),li(e),pr({force:!0,publish:!0}),!0):(tr.value={time:t,x:e.clientX,y:e.clientY,pointerType:n},!1)}function di(e){let t=Number(X.value.end)-Number(X.value.start);if(t<=0||!Number.isFinite(K.value.slot)||K.value.slot<=0)return null;let n=Math.floor((ei(e)-K.value.left)/K.value.slot);return Math.max(0,Math.min(t-1,n))}function fi(e,t){let n=di(e),r=di(t);if(n==null||r==null)return null;let i=Math.min(n,r),a=Math.max(n,r);return a<=i?null:{start:Number(X.value.start)+i,end:Number(X.value.start)+a+1}}function pi(e){let t=fr(e);return t?(N(`zoomStart`,{index:t.start,isZoom:t.start!==0}),N(`zoomEnd`,{index:t.end,isZoom:t.end!==G.value}),t):null}function mi(e){if(!rr.value||Yi.value||e.button!==void 0&&e.button!==0||er.value!=null&&e.pointerId!==er.value)return;let t=$r(e);if(!t)return;let{left:n,right:r,top:i,bottom:a}=K.value;if(t.x<n||t.x>r||t.y<i||t.y>a||Number(X.value.end)-Number(X.value.start)<=1)return;Yn.value=!0,U.value?.focus?.({preventScroll:!0}),ci();let o=ei(t.x);er.value=e.pointerId,Jn.value=!0,Qn.value=o,$n.value=o}function hi(e){if(!rr.value||!Jn.value||er.value!=null&&e.pointerId!==er.value)return;let t=$r(e);t&&($n.value=ei(t.x),Qn.value!=null&&Math.abs($n.value-Qn.value)>=2&&!U.value?.hasPointerCapture?.(e.pointerId)&&U.value?.setPointerCapture?.(e.pointerId))}function gi(e){if(!rr.value||!Jn.value||er.value!=null&&e.pointerId!==er.value)return;let t=$r(e);t&&($n.value=ei(t.x));let n=Qn.value,r=$n.value;if((n==null||r==null?0:Math.abs(r-n))<Math.max(4,K.value.width*.01)){if(ui(e))return;li(e);return}let i=fi(Math.min(n,r),Math.max(n,r));i?(li(e),pi(i)&&(tr.value={time:0,x:0,y:0,pointerType:null},ci(),ai())):li(e)}let _i=f(()=>z.value.values.slice(X.value.start,X.value.end)),vi=f(()=>$.value.slice(X.value.start,X.value.end));function yi(e){if(!M.value||!U.value||Nn.value||Jn.value)return;let t=$r(e);if(!t)return;let n=t.x;if(k.value=t.y,(k.value<K.value.top||k.value>K.value.bottom)&&(k.value=null),n<K.value.left||n>K.value.right){ii(),wi();return}let r=n-K.value.left,a=Math.floor(r/K.value.slot);if(ri(a),E.value!==a&&(Ht.value=!0),E.value=a,j.value=a,Rt.value=!0,sn.value=!1,!Ht.value)return;let o=``,s=I.value.customFormat,c=Y.value.map(e=>({shape:e.shape||null,name:e.name,color:e.color,type:e.type||`line`,value:Number.isInteger(E.value)&&E.value>=0?e.series[E.value]:void 0}));Bt.value={timeLabel:_i.value[E.value]?I.value.useDefaultTimeFormat?vi.value[E.value]?.text:Pr.value[E.value]?.text:``,datapoint:c,seriesIndex:E.value,series:Y.value,config:P.value},Oi({seriesIndex:E.value,datapoint:c}),i(s)&&ue(()=>s({seriesIndex:E.value,datapoint:c,series:Y.value,config:P.value}))?zt.value=s({seriesIndex:E.value,datapoint:c,series:Y.value,config:P.value}):(_i.value[E.value]?o+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${I.value.borderColor}; width:100%">${I.value.useDefaultTimeFormat?vi.value[E.value]?.text:Pr.value[E.value]?.text}</div>`:o+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${I.value.borderColor}; width:100%">${$.value[E.value+X.value.start]?.text??``}</div>`,o+=Wn.value.join(``),zt.value=o),Ht.value=!1}function bi(e){return Y.value.map(t=>({shape:t.shape||null,name:t.name,color:t.color,type:t.type||`line`,value:Number.isInteger(e)&&e>=0?t.series[e]:void 0}))}function xi(e){let t=``,n=I.value.customFormat,r=bi(e);return Oi({seriesIndex:e,datapoint:r}),i(n)&&ue(()=>n({seriesIndex:e,datapoint:r,series:Y.value,config:P.value}))?n({seriesIndex:e,datapoint:r,series:Y.value,config:P.value}):(_i.value[e]?t+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${I.value.borderColor}; width:100%">${I.value.useDefaultTimeFormat?vi.value[e]?.text:Pr.value[e]?.text}</div>`:t+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${I.value.borderColor}; width:100%">${$.value[e+X.value.start]?.text??``}</div>`,t+=Wn.value.join(``),t)}function Si(e){if(!U.value||!K.value?.slot)return;let t=U.value.getBoundingClientRect(),n=t.width/K.value.canvasWidth,r=t.height/K.value.canvasHeight,i=K.value.left+K.value.slot*e+K.value.slot/2,a=K.value.top+K.value.height/2;ln.value={x:t.left+i*n,y:t.top+a*r}}function Ci(e,{fromKeyboard:t=!1,triggerEvent:n=!0}={}){M.value&&!Nn.value&&e!=null&&(e<0||e>=X.value.end-X.value.start||(n&&ri(e),E.value=e,j.value=e,Rt.value=!0,sn.value=t,zt.value=xi(e),t&&Si(e),Ht.value=!1,Jr()))}function wi(){Rt.value=!1,E.value=null,j.value=null,zt.value=``,k.value=null,sn.value=!1,Jr()}function Ti(){cn.value=!0}function Ei(){Yn.value=!1,cn.value=!1,wi()}function Di(e){if(!U.value||Yi.value||document.activeElement!==U.value)return;if(Yn.value=!1,e.key===`Escape`){if(rr.value&&(Qr.value||Jn.value)){e.preventDefault(),e.stopPropagation(),li(),pr({force:!0,publish:!0});return}wi();return}let t=e.key===`ArrowLeft`,n=e.key===`ArrowRight`;if(!t&&!n)return;let r=X.value.end-X.value.start;if(r<=0)return;e.preventDefault(),e.stopPropagation();let i=j.value;i!==null&&i>=0&&i<r?n?(i+=1,i>=r&&(i=0)):(--i,i<0&&(i=r-1)):i=n?0:r-1,Ci(i,{fromKeyboard:!0})}function Oi({seriesIndex:e,datapoint:t}){let n=X.value.start+e;N(`selectX`,{dataset:t,index:n,indexLabel:``})}x(()=>C.selectedXIndex,e=>{if([null,void 0].includes(C.selectedXIndex)){wi();return}let t=e-X.value.start;t<0||e>=X.value.end?wi():Ci(t,{fromKeyboard:!1,triggerEvent:!1})},{immediate:!0}),x(K,()=>{O.value=!0,Jr()}),x(()=>E.value,()=>{Jr()}),x(()=>X.value,e=>{O.value=!0,Gr()},{deep:!0}),x(()=>Z.value,e=>{Jr()},{deep:!0}),x(()=>W.value.showDataLabels,e=>{O.value=!0,Gr()}),x(()=>k.value,()=>{Jr()}),x(()=>W.value.stacked,e=>{O.value=!0,Ht.value=!0,Yr()});function ki(){ii(),wi()}let Ai=st(null),ji=st(null),Mi=st(null);it(()=>{$t.value=!0,Ni()});function Ni(){if(pe(C.dataset)&&ie({componentName:`VueUiXyCanvas`,type:`dataset`,debug:hn.value}),et(()=>{U.value&&!w.value&&(w.value=U.value.getContext(`2d`,{willReadFrequently:!0})),w.value&&M.value&&(O.value=!0,Ht.value=!0,Cr())}),P.value.responsive){let e=Ne(()=>{let{width:e,height:t}=Re({chart:Ft.value,title:H.value.title.text?Kt.value:null,legend:H.value.legend.show?qt.value:null,slicer:H.value.zoom.show&&G.value>6?Jt.value?.$el:null,source:Yt.value});requestAnimationFrame(()=>{En.value=`${e} / ${t}`})});Ai.value&&(ji.value&&Ai.value.unobserve(ji.value),Ai.value.disconnect()),Ai.value=new ResizeObserver(e),ji.value=Ft.value.parentNode,Ai.value.observe(ji.value)}Mi.value&&Mi.value.disconnect(),Mi.value=new ResizeObserver(async e=>{for(let t of e)t.contentBoxSize&&It.value&&(O.value=!0,Yr())}),Mi.value.observe(It.value),pr()}rt(()=>{Mi.value&&Mi.value.disconnect(),Ai.value&&(ji.value&&Ai.value.unobserve(ji.value),Ai.value.disconnect())});function Pi(){D.value.length?D.value=[]:zi.value.forEach((e,t)=>{D.value.push(t)}),O.value=!0,Yr(),N(`selectLegend`,Y.value)}function Fi(e){D.value.includes(e)?D.value=D.value.filter(t=>t!==e):D.value.push(e),O.value=!0,Yr(),N(`selectLegend`,Y.value)}function Ii(e){return J.value.length?J.value.find(t=>t.name===e)||(hn.value&&console.warn(`VueUiXyCanvas - Series name not found "${e}"`),null):(hn.value&&console.warn(`VueUiXyCanvas - There are no series to show.`),null)}function Li(e){let t=Ii(e);t!==null&&D.value.includes(t.absoluteIndex)&&Fi(t.absoluteIndex)}function Ri(e){let t=Ii(e);t!==null&&(D.value.includes(t.absoluteIndex)||Fi(t.absoluteIndex))}let zi=f(()=>J.value.map((e,t)=>({...e,name:e.name,color:u(e.color)||Mn.value[t]||o[t]||o[t%o.length],shape:e.shape||`circle`,prefix:e.prefix||``,suffix:e.suffix||``,rounding:e.rounding||0})).map(e=>({...e,opacity:D.value.includes(e.absoluteIndex)?.5:1,segregate:()=>Fi(e.absoluteIndex),isSegregated:D.value.includes(e.absoluteIndex)}))),Bi=f(()=>({cy:`donut-div-legend`,backgroundColor:H.value.legend.backgroundColor,color:H.value.legend.color,fontSize:H.value.legend.fontSize,paddingBottom:12,fontWeight:H.value.legend.bold?`bold`:``})),Vi=f(()=>{let e=[``].concat(Y.value.map(e=>e.name),`__SUM__`),t=[];for(let e=0;e<G.value;e+=1){let n=Y.value.map(t=>t.series[e]??0).reduce((e,t)=>e+t,0);t.push([_i.value[e]?$?.value?.slice(X.value.start,X.value.end)?.[e]?.text??e+1:e+1].concat(Y.value.map(t=>(t.series[e]??0).toFixed(P.value.table.rounding)),(n??0).toFixed(P.value.table.rounding)))}let n={th:{backgroundColor:P.value.table.th.backgroundColor,color:P.value.table.th.color,outline:P.value.table.th.outline},td:{backgroundColor:P.value.table.td.backgroundColor,color:P.value.table.td.color,outline:P.value.table.td.outline},breakpoint:P.value.table.responsiveBreakpoint},r=[P.value.table.columnNames.period].concat(Y.value.map(e=>e.name),P.value.table.columnNames.total);return{head:e,body:t.slice(0,X.value.end-X.value.start),config:n,colNames:r}}),Hi=f(()=>{if(Y.value.length===0)return{head:[],body:[],config:{},columnNames:[]};let e=Y.value.map(e=>({label:e.name,color:e.color,type:e.type})),t=[];for(let e=X.value.start;e<X.value.end;e+=1){let n=[z.value.values[e]?$.value[e].text:e+1];Y.value.forEach(t=>{n.push(Number((t.series[e]||0).toFixed(P.value.table.rounding)))}),t.push(n)}return{head:e,body:t}});function Ui(e=null){let t=[[H.value.title.text],[H.value.title.subtitle.text],[``]],n=[``,...Hi.value.head.map(e=>e.label)],i=Hi.value.body,a=t.concat([n]).concat(i),o=r(a);e?e(o):ce({csvContent:o,title:H.value.title.text||`vue-ui-xy-canvas`})}function Wi(){return Y.value}function Gi(){W.value.showTable=!W.value.showTable}function Ki(){W.value.showDataLabels=!W.value.showDataLabels}function qi(){W.value.stacked=!W.value.stacked}function Ji(){W.value.showTooltip=!W.value.showTooltip}let Yi=v(!1);function Xi(){Yi.value=!Yi.value}async function Zi({scale:e=2}={}){if(!Ft.value)return;qr?(qr=!1,Cr()):Kr!==null&&Gr();let{imageUri:t,base64:n}=await xe({domElement:Ft.value,base64:!0,img:!0,scale:e}),r=Ft.value.getBoundingClientRect(),i={width:r.width,height:r.height,aspectRatio:r.height?r.width/r.height:0},a=await re(t,e)??i;return{imageUri:t,base64:n,title:H.value.title.text,...a}}let Qi=f(()=>Te({config:P,style:H,mutableConfig:W,dialog:At,accordion:Be,isFullscreen:Gt,parent:Ft,maxWidth:800,isCursorPointer:mn}));x(()=>W.value.showTable,e=>we(e,P,en));function $i(){W.value.showTable=!1,tn.value&&tn.value.setTableIconState(!1)}function ea(e){e?.stage===`start`?on.value=!0:e?.stage===`end`?on.value=!1:An()}async function ta(){N(`copyAlt`,{config:P.value,dataset:Y.value}),F.value.callbacks.altCopy?await Promise.resolve(F.value.callbacks.altCopy({config:P.value,dataset:Y.value})):console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.")}return ve({getData:Wi,getImage:Zi,generateCsv:Ui,generatePdf:kn,generateImage:An,hideSeries:Ri,showSeries:Li,toggleTable:Gi,toggleLabels:Ki,toggleStack:qi,toggleTooltip:Ji,toggleAnnotator:Xi,toggleFullscreen:jn,copyAlt:ta,resetZoom:()=>pr({force:!0,publish:!0}),setZoomState:fr}),(t,n)=>(_(),Je(`div`,{style:nt(`width:100%; position:relative; ${P.value.responsive?`height: 100%`:``}; background:${P.value.style.chart.backgroundColor};`),ref_key:`xy`,ref:Ft,id:`xy_canvas_${Pt.value}`,class:tt(`vue-data-ui-component vue-ui-xy-canvas ${Gt.value?`vue-data-ui-wrapper-fullscreen`:``}`),onMouseenter:Sn,onMouseleave:Cn},[m(`div`,{id:`chart-instructions-${Pt.value}`,class:`sr-only`},[m(`p`,null,ct(P.value.a11y.translations.keyboardNavigation),1)],8,mt),m(`div`,ht,ct(pn.value),1),P.value.style.chart.title.text?(_(),Je(`div`,{key:0,ref_key:`chartTitle`,ref:Kt,style:nt(`width:100%;background:${P.value.style.chart.backgroundColor};`)},[(_(),qe(Ce,{key:`title_${Xt.value}`,config:{title:{cy:`xy-canvas-title`,...P.value.style.chart.title},subtitle:{cy:`xy-canvas-subtitle`,...P.value.style.chart.title.subtitle}}},null,8,[`config`]))],4)):p(``,!0),m(`div`,{id:`legend-top-${Pt.value}`},null,8,gt),F.value.show&&M.value&&(b(xn)||b(yn))?(_(),qe(b(Ot),{ref_key:`userOptionsRef`,ref:tn,key:`user_option_${Wt.value}`,backgroundColor:P.value.style.chart.backgroundColor,color:P.value.style.chart.color,isPrinting:b(Dn),isImaging:b(On),uid:Pt.value,hasTooltip:F.value.buttons.tooltip&&I.value.show,hasPdf:F.value.buttons.pdf,hasImg:F.value.buttons.img,hasXls:F.value.buttons.csv,hasLabel:F.value.buttons.labels,hasStack:e.dataset.length>1&&F.value.buttons.stack,hasFullscreen:F.value.buttons.fullscreen,hasAltCopy:F.value.buttons.altCopy,hasTable:X.value.end-X.value.start<=730&&F.value.buttons.table,isFullscreen:Gt.value,isTooltip:W.value.showTooltip,isStacked:W.value.stacked,titles:{...F.value.buttonTitles},chartElement:Ft.value,position:F.value.position,hasAnnotator:F.value.buttons.annotator,isAnnotation:Yi.value,callbacks:F.value.callbacks,printScale:F.value.print.scale,tableDialog:P.value.table.useDialog,isCursorPointer:mn.value,onToggleFullscreen:jn,onGeneratePdf:b(kn),onGenerateCsv:Ui,onGenerateImage:ea,onToggleTable:Gi,onToggleLabels:Ki,onToggleStack:qi,onToggleTooltip:Ji,onToggleAnnotator:Xi,onCopyAlt:ta,style:nt({visibility:b(xn)?b(yn)?`visible`:`hidden`:`visible`})},Ye({_:2},[at(b(Ee)(t.$slots,`menuIcon optionTooltip optionPdf optionCsv optionImg optionTable optionLabels optionStack optionFullscreen optionAnnotator optionAltCopy custom-menu-before custom-menu-after`),e=>({name:e,fn:S(n=>[y(t.$slots,e,g(h(b(De)(e,n))),void 0,!0)])}))]),1032,/* @__PURE__ */ `backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasXls.hasLabel.hasStack.hasFullscreen.hasAltCopy.hasTable.isFullscreen.isTooltip.isStacked.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style`.split(`.`))):p(``,!0),m(`div`,{class:`vue-ui-xy-canvas`,style:nt(`position: relative; aspect-ratio: ${En.value}`),ref_key:`container`,ref:It},[m(`canvas`,{ref_key:`canvas`,ref:U,class:tt({"vue-ui-xy-canvas-chart-zoom-pointer-focus":rr.value&&Yn.value}),"aria-label":fn.value,"aria-describedby":`chart-instructions-${Pt.value}`,role:`img`,"aria-live":`polite`,tabindex:`0`,style:nt({width:`100%`,height:`100%`,cursor:rr.value?Jn.value?`col-resize`:`crosshair`:void 0,touchAction:rr.value?`pan-y`:void 0,userSelect:rr.value?`none`:void 0}),onMousemove:n[0]||=e=>yi(e),onMouseleave:ki,onClick:si,onPointerdown:mi,onPointermove:hi,onPointerup:gi,onPointercancel:li,onFocus:Ti,onBlur:Ei,onKeydown:Di},null,46,_t),Zr.value?(_(),Je(`svg`,{key:0,viewBox:`0 0 ${K.value.canvasWidth} ${K.value.canvasHeight}`,preserveAspectRatio:`none`,"aria-hidden":`true`,style:{position:`absolute`,inset:`0`,width:`100%`,height:`100%`,"pointer-events":`none`,overflow:`visible`}},[m(`rect`,{x:Zr.value.x,y:Zr.value.y,width:Zr.value.width,height:Zr.value.height,fill:nr.value.selection.fill,"fill-opacity":nr.value.selection.fillOpacity,stroke:nr.value.selection.stroke,"stroke-opacity":nr.value.selection.strokeOpacity,"stroke-width":nr.value.selection.strokeWidth,"stroke-dasharray":nr.value.selection.strokeDasharray,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,yt)],8,vt)):p(``,!0),t.$slots.hint?(_(),Je(`div`,bt,[y(t.$slots,`hint`,g(h({hint:P.value.a11y.translations.keyboardNavigation,isVisible:cn.value})),void 0,!0)])):p(``,!0),y(t.$slots,`skeleton`,{},()=>[b(_n)?(_(),qe(he,{key:0})):p(``,!0)],!0),Ze(b(Et),{teleportTo:I.value.teleportTo,show:W.value.showTooltip&&Rt.value,backgroundColor:I.value.backgroundColor,color:I.value.color,fontSize:I.value.fontSize,borderRadius:I.value.borderRadius,borderColor:I.value.borderColor,borderWidth:I.value.borderWidth,position:I.value.position,offsetX:I.value.offsetX,offsetY:I.value.offsetY,parent:t.$refs.xy,content:zt.value,isFullscreen:Gt.value,backgroundOpacity:I.value.backgroundOpacity,isCustom:b(i)(I.value.customFormat),smooth:I.value.smooth,backdropFilter:I.value.backdropFilter,smoothForce:I.value.smoothForce,smoothSnapThreshold:I.value.smoothSnapThreshold,isA11yMode:sn.value,a11yPosition:ln.value},{"tooltip-before":S(()=>[y(t.$slots,`tooltip-before`,g(h({...Bt.value})),void 0,!0)]),tooltip:S(()=>[y(t.$slots,`tooltip`,g(h({...Bt.value})),void 0,!0)]),"tooltip-after":S(()=>[y(t.$slots,`tooltip-after`,g(h({...Bt.value})),void 0,!0)]),_:3},8,[`teleportTo`,`show`,`backgroundColor`,`color`,`fontSize`,`borderRadius`,`borderColor`,`borderWidth`,`position`,`offsetX`,`offsetY`,`parent`,`content`,`isFullscreen`,`backgroundOpacity`,`isCustom`,`smooth`,`backdropFilter`,`smoothForce`,`smoothSnapThreshold`,`isA11yMode`,`a11yPosition`])],4),P.value.style.chart.zoom.show&&G.value>6&&M.value&&rn.value&&!b(_n)?(_(),qe(ze,{key:2,ref_key:`chartSlicer`,ref:Jt,"data-dom-to-png-ignore-layout":``,allMinimaps:qn.value,background:P.value.style.chart.zoom.color,borderColor:P.value.style.chart.backgroundColor,customFormat:P.value.style.chart.zoom.customFormat,cutNullValues:Gn.value,enableRangeHandles:P.value.style.chart.zoom.enableRangeHandles,enableSelectionDrag:P.value.style.chart.zoom.enableSelectionDrag,end:X.value.end,focusOnDrag:P.value.style.chart.zoom.focusOnDrag,focusRangeRatio:P.value.style.chart.zoom.focusRangeRatio,fontSize:P.value.style.chart.zoom.fontSize,immediate:!P.value.style.chart.zoom.preview.enable,inputColor:P.value.style.chart.zoom.color,isPreview:mr.value,labelLeft:P.value.style.chart.grid.x.timeLabels.values[X.value.start]?$.value[X.value.start]?.text:``,labelRight:P.value.style.chart.grid.x.timeLabels.values[X.value.end-1]?$.value[X.value.end-1]?.text:``,max:G.value,min:0,minimap:Kn.value,minimapCompact:P.value.style.chart.zoom.minimap.compact,minimapFrameColor:P.value.style.chart.zoom.minimap.frameColor,minimapIndicatorColor:P.value.style.chart.zoom.minimap.indicatorColor,minimapLineColor:P.value.style.chart.zoom.minimap.lineColor,minimapMerged:P.value.style.chart.zoom.minimap.merged,minimapSelectedColor:P.value.style.chart.zoom.minimap.selectedColor,minimapSelectedColorOpacity:P.value.style.chart.zoom.minimap.selectedColorOpacity,minimapSelectedIndex:E.value,minimapSelectionRadius:P.value.style.chart.zoom.minimap.selectionRadius,preciseLabels:Nr.value?.length?Nr.value:$.value,refreshEndPoint:P.value.style.chart.zoom.endIndex===null?G.value:P.value.style.chart.zoom.endIndex+1,refreshStartPoint:P.value.style.chart.zoom.startIndex===null?0:P.value.style.chart.zoom.startIndex,selectColor:P.value.style.chart.zoom.highlightColor,selectedSeries:J.value,smoothMinimap:P.value.style.chart.zoom.minimap.smooth,start:X.value.start,timeLabels:$.value,usePreciseLabels:P.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable&&!P.value.style.chart.zoom.useDefaultFormat,textColor:P.value.style.chart.color,useResetSlot:P.value.style.chart.zoom.useResetSlot,valueEnd:X.value.end,valueStart:X.value.start,verticalHandles:P.value.style.chart.zoom.minimap.verticalHandles,maxWidth:P.value.style.chart.zoom.maxWidth,minimapLeftInsetRatio:K.value.canvasWidth>0&&P.value.style.chart.zoom.autoFit?K.value.left/K.value.canvasWidth:null,minimapRightInsetRatio:K.value.canvasWidth>0&&P.value.style.chart.zoom.autoFit?(K.value.canvasWidth-K.value.right)/K.value.canvasWidth:null,additionalMinimapHeight:P.value.style.chart.zoom.minimap.additionalHeight,handleType:P.value.style.chart.zoom.minimap.handleType,handleIconColor:P.value.style.chart.zoom.minimap.handleIconColor,handleBorderWidth:P.value.style.chart.zoom.minimap.handleBorderWidth,handleBorderColor:P.value.style.chart.zoom.minimap.handleBorderColor,handleFill:P.value.style.chart.zoom.minimap.handleFill,handleWidth:P.value.style.chart.zoom.minimap.handleWidth,onFutureEnd:n[1]||=e=>hr(`end`,e),onFutureStart:n[2]||=e=>hr(`start`,e),onReset:n[3]||=()=>pr({force:!0,publish:!0}),onTrapMouse:Pn,"onUpdate:end":yr,"onUpdate:start":vr},{"reset-action":S(({reset:e})=>[y(t.$slots,`reset-action`,g(h({reset:e})),void 0,!0)]),_:3},8,/* @__PURE__ */ `allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.smoothMinimap.start.timeLabels.usePreciseLabels.textColor.useResetSlot.valueEnd.valueStart.verticalHandles.maxWidth.minimapLeftInsetRatio.minimapRightInsetRatio.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth`.split(`.`))):p(``,!0),m(`div`,{id:`legend-bottom-${Pt.value}`},null,8,xt),$t.value&&(P.value.style.chart.legend.show||t.$slots.legend)?(_(),qe(Ke,{key:3,to:P.value.style.chart.legend.position===`top`?`#legend-top-${Pt.value}`:`#legend-bottom-${Pt.value}`},[m(`div`,{ref_key:`chartLegend`,ref:qt},[y(t.$slots,`legend`,{legend:zi.value},()=>[P.value.style.chart.legend.show&&M.value?(_(),qe(We,{legendSet:zi.value,config:Bi.value,key:`legend_${Qt.value}`,isCursorPointer:mn.value,onClickMarker:n[4]||=({i:e})=>Fi(e)},{item:S(({legend:e,index:t})=>[m(`div`,{onClick:t=>e.segregate(),style:nt(`opacity:${D.value.includes(t)?.5:1}`)},ct(e.name),13,St)]),legendToggle:S(()=>[zi.value.length>2&&P.value.style.chart.legend.selectAllToggle.show&&!b(_n)?(_(),qe(Ve,{key:0,backgroundColor:P.value.style.chart.legend.selectAllToggle.backgroundColor,color:P.value.style.chart.legend.selectAllToggle.color,fontSize:P.value.style.chart.legend.fontSize,checked:D.value.length>0,isCursorPointer:mn.value,onToggle:Pi},null,8,[`backgroundColor`,`color`,`fontSize`,`checked`,`isCursorPointer`])):p(``,!0)]),_:1},8,[`legendSet`,`config`,`isCursorPointer`])):p(``,!0)],!0)],512)],8,[`to`])):p(``,!0),t.$slots.watermark?(_(),Je(`div`,Ct,[y(t.$slots,`watermark`,g(h({isPrinting:b(Dn)||b(On)||on.value})),void 0,!0)])):p(``,!0),t.$slots.source?(_(),Je(`div`,{key:5,ref_key:`source`,ref:Yt,dir:`auto`},[y(t.$slots,`source`,{},void 0,!0)],512)):p(``,!0),M.value&&F.value.buttons.table?(_(),qe(ot(Qi.value.component),$e({key:6},Qi.value.props,{ref_key:`tableUnit`,ref:en,onClose:$i}),Ye({content:S(()=>[(_(),qe(b(Dt),{key:`table_${Zt.value}`,colNames:Vi.value.colNames,head:Vi.value.head,body:Vi.value.body,config:Vi.value.config,title:P.value.table.useDialog?``:Qi.value.title,withCloseButton:!P.value.table.useDialog,isCursorPointer:mn.value,onClose:$i},{th:S(({th:e})=>[e===`__SUM__`?(_(),Je(`div`,wt,[Ze(Se,{name:`sigma`,stroke:Vi.value.config.th.color,size:16},null,8,[`stroke`])])):(_(),Je(`div`,Tt,ct(e),1))]),td:S(({td:e})=>[Xe(ct(e),1)]),_:1},8,[`colNames`,`head`,`body`,`config`,`title`,`withCloseButton`,`isCursorPointer`]))]),_:2},[P.value.table.useDialog?{name:`title`,fn:S(()=>[Xe(ct(Qi.value.title),1)]),key:`0`}:void 0,P.value.table.useDialog?{name:`actions`,fn:S(()=>[m(`button`,{tabindex:`0`,class:`vue-ui-user-options-button`,onClick:n[5]||=e=>Ui(F.value.callbacks.csv),style:nt({cursor:mn.value?`pointer`:`default`})},[Ze(Se,{name:`fileCsv`,stroke:Qi.value.props.color},null,8,[`stroke`])],4)]),key:`1`}:void 0]),1040)):p(``,!0),F.value.buttons.annotator&&Y.value.length?(_(),qe(b(kt),{key:7,parent:Ft.value,backgroundColor:P.value.style.chart.backgroundColor,color:P.value.style.chart.color,active:Yi.value,isCursorPointer:mn.value,onClose:Xi},{"annotator-action-close":S(()=>[y(t.$slots,`annotator-action-close`,{},void 0,!0)]),"annotator-action-color":S(({color:e})=>[y(t.$slots,`annotator-action-color`,g(h({color:e})),void 0,!0)]),"annotator-action-draw":S(({mode:e})=>[y(t.$slots,`annotator-action-draw`,g(h({mode:e})),void 0,!0)]),"annotator-action-undo":S(({disabled:e})=>[y(t.$slots,`annotator-action-undo`,g(h({disabled:e})),void 0,!0)]),"annotator-action-redo":S(({disabled:e})=>[y(t.$slots,`annotator-action-redo`,g(h({disabled:e})),void 0,!0)]),"annotator-action-delete":S(({disabled:e})=>[y(t.$slots,`annotator-action-delete`,g(h({disabled:e})),void 0,!0)]),_:3},8,[`parent`,`backgroundColor`,`color`,`active`,`isCursorPointer`])):p(``,!0)],46,pt))}},[[`__scopeId`,`data-v-1fc06f4b`]]);export{ft as n,Et as t};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "3.28.6",
4
+ "version": "3.28.8",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue 3 components library for eloquent data storytelling",
7
7
  "keywords": [
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{X as t,t as n}from"./lib-rPeBMZrn.js";import{t as r}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as i}from"./BaseIcon-fYK0iID8.js";import{Teleport as a,computed as o,createBlock as s,createCommentVNode as c,createElementBlock as l,createElementVNode as u,createVNode as d,nextTick as f,normalizeClass as p,normalizeStyle as m,onMounted as h,onUnmounted as g,openBlock as _,reactive as v,ref as y,renderSlot as b,unref as x,withModifiers as S}from"vue";var C=/* @__PURE__ */ e({default:()=>E}),w=[`xmlns`],T={class:`draggable-dialog-actions`},E=/*#__PURE__*/ r({__name:`BaseDraggableDialog`,props:{backgroundColor:{type:String},color:{type:String},headerBg:{type:String},headerColor:{type:String},fullscreenParent:{type:HTMLElement},isFullscreen:{type:Boolean,default:!1},withPadding:{type:Boolean,default:!1},forcedWidth:{type:Number,default:400},forcedHeight:{type:Number,default:400},isCursorPointer:{type:Boolean,default:!1},forceAspectRatio:{type:Boolean,default:!1},withFullWidth:{type:Boolean,default:!1},noLayerUpdate:{type:Boolean,default:!1}},emits:[`close`,`size`],setup(e,{expose:r,emit:C}){let E=e,D=C,O=y(!1),k=y(!1),A=y(0),j=y(null),M=y(null),N=y(null),P=`vue-ui-draggable-dialog-${t()}`,F=`${P}-title`,I=`${P}-body`;function L(){E.noLayerUpdate||(A.value+=1)}let R=v({left:window.innerWidth/2-200,top:window.innerHeight/2-120,width:E.forcedWidth,height:E.forcedHeight,dragging:!1,resizing:!1,dragOffsetX:0,dragOffsetY:0,pointerStartX:0,pointerStartY:0,resizeStartW:0,resizeStartH:0});function z(){N.value=document.activeElement instanceof HTMLElement?document.activeElement:null,O.value=!0,f(()=>{k.value||=(R.left=Math.max(0,window.innerWidth/2-R.width/2),R.top=Math.max(0,window.innerHeight/2-R.height/2),!0);let e=M.value||j.value;e&&typeof e.focus==`function`&&e.focus()})}function B(){O.value=!1,D(`close`),N.value&&typeof N.value.focus==`function`&&N.value.focus()}r({open:z,close:B});let V=o(()=>({position:`fixed`,left:`${R.left}px`,top:`${R.top}px`,width:`${R.width}px`,height:`${R.height}px`,padding:0,border:`none`,background:E.backgroundColor,boxShadow:`0 4px 24px rgba(0,0,0,0.15)`,zIndex:9999,overflow:`visible`,borderRadius:`2px`,"--dlg-color":E.color}));function H(e){return e.touches&&e.touches.length?{x:e.touches[0].clientX,y:e.touches[0].clientY}:{x:e.clientX,y:e.clientY}}function U(e){e.preventDefault?.(),L(),R.dragging=!0;let t=H(e);R.dragOffsetX=t.x-R.left,R.dragOffsetY=t.y-R.top,document.addEventListener(`mousemove`,W),document.addEventListener(`mouseup`,G),document.addEventListener(`touchmove`,W,{passive:!1}),document.addEventListener(`touchend`,G)}function W(e){if(!R.dragging)return;e.preventDefault?.();let t=H(e),n=t.x-R.dragOffsetX,r=t.y-R.dragOffsetY;n=Math.max(0,Math.min(n,window.innerWidth-R.width)),r=Math.max(0,Math.min(r,window.innerHeight-R.height)),R.left=n,R.top=r}function G(){R.dragging=!1,document.removeEventListener(`mousemove`,W),document.removeEventListener(`mouseup`,G),document.removeEventListener(`touchmove`,W),document.removeEventListener(`touchend`,G)}function K(e){e.preventDefault?.(),L(),R.resizing=!0;let t=H(e);R.pointerStartX=t.x,R.pointerStartY=t.y,R.resizeStartW=R.width,R.resizeStartH=R.height,document.addEventListener(`mousemove`,q),document.addEventListener(`mouseup`,J),document.addEventListener(`touchmove`,q,{passive:!1}),document.addEventListener(`touchend`,J)}function q(e){if(!R.resizing)return;e.preventDefault?.();let t=H(e),n=t.x-R.pointerStartX,r=t.y-R.pointerStartY;R.width=Math.max(240,R.resizeStartW+n),R.height=Math.max(400,R.resizeStartH+r),D(`size`,{width:R.width,height:R.height})}function J(){R.resizing=!1,document.removeEventListener(`mousemove`,q),document.removeEventListener(`mouseup`,J),document.removeEventListener(`touchmove`,q),document.removeEventListener(`touchend`,J),D(`size`,{width:R.width,height:R.height})}h(()=>{D(`size`,{width:R.width,height:R.height})});function Y(e){e.preventDefault?.(),L(),R.resizing=!0;let t=H(e);R.pointerStartX=t.x,R.pointerStartY=t.y,R.resizeStartW=R.width,R.resizeStartH=R.height,R.resizeStartLeft=R.left,R.resizeStartTop=R.top,document.addEventListener(`mousemove`,X),document.addEventListener(`mouseup`,Z),document.addEventListener(`touchmove`,X,{passive:!1}),document.addEventListener(`touchend`,Z)}function X(e){if(!R.resizing)return;e.preventDefault?.();let t=H(e),n=t.x-R.pointerStartX,r=Math.min(Math.max(0,R.resizeStartLeft+n),R.resizeStartLeft+R.resizeStartW-240),i=R.resizeStartW-(r-R.resizeStartLeft),a=t.y-R.pointerStartY,o=Math.max(400,R.resizeStartH+a);R.left=r,R.width=i,R.height=o}function Z(){R.resizing=!1,document.removeEventListener(`mousemove`,X),document.removeEventListener(`mouseup`,Z),document.removeEventListener(`touchmove`,X),document.removeEventListener(`touchend`,Z)}h(()=>{document.addEventListener(`keydown`,Q)});function Q(e){e.key&&e.key===`Escape`&&B()}g(()=>{G(),J(),Z(),document.removeEventListener(`keydown`,Q)});function $(e){e.key===`Tab`&&ee(e)}function ee(e){if(!j.value)return;let t=j.value.querySelectorAll(`a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex]:not([tabindex="-1"]), [contenteditable="true"]`);if(!t.length)return;let n=t[0],r=t[t.length-1];e.shiftKey?document.activeElement===n&&(e.preventDefault(),r.focus()):document.activeElement===r&&(e.preventDefault(),n.focus())}return(t,r)=>(_(),s(a,{to:e.isFullscreen?e.fullscreenParent:`body`,key:A.value},[O.value?(_(),l(`div`,{key:0,ref_key:`draggableDialog`,ref:j,class:`vue-ui-draggable-dialog`,style:m(V.value),role:`dialog`,"aria-modal":!0,"aria-labelledby":F,"aria-describedby":I,tabindex:`-1`,onClick:r[0]||=S(()=>{},[`stop`]),onKeydown:$},[u(`div`,{class:`vue-ui-draggable-dialog-header`,style:m({backgroundColor:e.headerBg,color:e.headerColor})},[u(`span`,{class:`drag-handle`,"aria-hidden":`true`,onMousedown:S(U,[`stop`,`prevent`]),onTouchstart:S(U,[`stop`,`prevent`])},[(_(),l(`svg`,{xmlns:x(n),width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1`,"stroke-linecap":`round`,"stroke-linejoin":`round`},[...r[1]||=[u(`path`,{d:`M5 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`},null,-1),u(`path`,{d:`M5 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`},null,-1),u(`path`,{d:`M12 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`},null,-1),u(`path`,{d:`M12 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`},null,-1),u(`path`,{d:`M19 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`},null,-1),u(`path`,{d:`M19 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0`},null,-1)]],8,w))],32),u(`span`,{class:`vue-ui-draggable-dialog-title`,id:F},[b(t.$slots,`title`,{},void 0,!0)]),u(`div`,T,[b(t.$slots,`actions`,{},void 0,!0),u(`button`,{ref_key:`closeButtonElement`,ref:M,class:`close`,type:`button`,"aria-label":`Close dialog`,onClick:B,style:m({cursor:e.isCursorPointer?`pointer`:`default`})},[d(i,{name:`close`,stroke:e.headerColor},null,8,[`stroke`])],4)])],4),u(`div`,{id:I,role:`document`,class:p({"vue-ui-draggable-dialog-body":!e.withPadding,"vue-ui-draggable-dialog-body-pad":e.withPadding,"vue-ui-draggable-dialog-body-full-width":e.withFullWidth})},[b(t.$slots,`before`,{},void 0,!0),b(t.$slots,`content`,{},void 0,!0),b(t.$slots,`after`,{},void 0,!0)],2),u(`div`,{class:`resize-handle`,"aria-hidden":`true`,onMousedown:S(K,[`stop`,`prevent`]),onTouchstart:S(K,[`stop`,`prevent`])},null,32),u(`div`,{class:`resize-handle resize-handle-left`,"aria-hidden":`true`,onMousedown:S(Y,[`stop`,`prevent`]),onTouchstart:S(Y,[`stop`,`prevent`])},null,32)],36)):c(``,!0)],8,[`to`]))}},[[`__scopeId`,`data-v-41359ac7`]]);export{C as n,E as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./lib-rPeBMZrn.js";import{t as n}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{computed as r,createElementBlock as i,normalizeClass as a,openBlock as o,unref as s,useCssVars as c,useSlots as l}from"vue";var u=/* @__PURE__ */ e({default:()=>v}),d=[`xmlns`,`viewBox`,`height`,`width`,`innerHTML`],f=[`xmlns`,`viewBox`,`height`,`width`,`innerHTML`],p=`stroke-linecap="round" stroke-linejoin="round"`,m=`stroke-linecap="round"`,h=`stroke-linejoin="round"`,g=`fill="none"`,_=`stroke="none"`,v=/*#__PURE__*/ n({__name:`BaseIcon`,props:{name:String,size:{type:[Number,String],default:24},stroke:{type:String,default:`#CCCCCC`},strokeWidth:{type:Number,default:1.5},isSpin:{type:Boolean,default:!1},spinDuration:{type:String,default:`1s`}},setup(e){c(e=>({v0b6c7cb6:v.value}));let n=e,u=r(()=>n.name===`numbers`?`0 0 20 21`:`0 0 20 20`),v=r(()=>n.spinDuration),y=e=>`fill="${e}"`,b=e=>`style="opacity:${e}"`,x=e=>{let t=[1,.7,.5,.3,.15],n=t.length*2,r=Array.from({length:n},(e,t)=>1+t*2);return r.flatMap(i=>r.map(r=>{let a=(Math.max(Math.abs(r-n),Math.abs(i-n))-1)/2;return`<circle ${y(e)} ${_} cx="${r}" cy="${i}" r="${t[a]}" />`})).join(``)},S={chartHill:`M1 16c9 0 6-8 9-8s0 8 9 8M10 3a1 1 0 000 2 1 1 0 000-2m-8 8a1 1 0 000 2 1 1 0 000-2m16 0a1 1 0 000 2 1 1 0 000-2`,annotation:`M10 17a1 1 0 000 2 1 1 0 000-2m-9 1h6m6 0h6M4 1h12v9h-4l-2 4M7 4h3M7 7h6M4 1v9h4l2 4`,chartAgePyramid:`M2 15v2h7v-2zm9 0v2h7v-2zm-2-2H3v-2h6zm2-2v2h6v-2zM9 9H4V7h5zm2-2v2h5V7zM9 5H6V3h3zm2-2v2h3V3z`,chartLine:`M1 1v18h18M4 13c1 3 2 3 2 3 3 0 1-9 4-9 1 0 3 5 3 5 1 2 3 2 4-9`,dashboard:`M1 5a1 1 0 008 0A1 1 0 001 5m4-4v4h4M1 15h5m-5 3h7m5-9c0 1 0 1 1 1s1 0 1-1V6c0-1 0-1-1-1s-1 0-1 1zm4 0c0 1 0 1 1 1s1 0 1-1V4c0-1 0-1-1-1s-1 0-1 1zm-8 3 3 6 2-3 3 1 2-3M1 12h3`,csv:`M4 1Q1 1 1 4v12q0 3 3 3h12q3 0 3-3V6c-4 0-5-1-5-5Zm3 10c0-1 0-2-1-2H5c-1 0-1 1-1 2v3c0 1 0 2 1 2h1c1 0 1-1 1-2m5-3c0-1 0-2-1-2h-1c-1 0-1 1-1 2 0 2 3 1 3 3 0 1 0 2-1 2h-1c-1 0-1-1-1-2m5-5 1 7 1-7`,star:`m1.333 8.226 5.976-.895L9.96 1.9l2.7 5.406 5.983.843-4.308 4.237 1.047 5.951-5.36-2.788-5.337 2.836.995-5.96-4.345-4.201`,fullscreen:`M1 6V4q0-3 3-3h2m8 0h2q3 0 3 3v2m0 8v2q0 3-3 3h-2m-8 0H4q-3 0-3-3v-2m8-5L5 5m6 4 4-4m-4 6 4 4m-6-4-4 4m0-3v3h3m4 0h3v-3m0-4V5h-3M8 5H5v3`,exitFullscreen:`M1 6V4q0-3 3-3h2m8 0h2q3 0 3 3v2m0 8v2q0 3-3 3h-2m-8 0H4q-3 0-3-3v-2m7-6L4 4m8 4 4-4m-4 8 4 4m-8-4-4 4m1-4h3v3m4 0v-3h3m0-4h-3V5M8 5v3H5`,moodEmbarrassed:`M1 10a1 1 0 0 0 18 0 1 1 0 0 0-18 0m4 3c3-2 6 3 10 0M5 7a1 1 0 0 0 3 0 1 1 0 0 0-3 0m7 0a1 1 0 0 0 3 0 1 1 0 0 0-3 0`,moodSurprised:`M1 10a1 1 0 0 0 18 0 1 1 0 0 0-18 0m4-3a1 1 0 0 0 3 0 1 1 0 0 0-3 0m7 0a1 1 0 0 0 3 0 1 1 0 0 0-3 0m-2 5a1 1 0 0 0 0 3 1 1 0 0 0 0-3`,moodWink:`M1 10a1 1 0 0 0 18 0 1 1 0 0 0-18 0m4 1c2 4 6 4 10 2m-3-6a1 1 0 0 0 3 0 1 1 0 0 0-3 0M5 7h3`,moodLaughing:`M1 10a1 1 0 0 0 18 0 1 1 0 0 0-18 0m4 0c0 7 10 7 10 1zm7-3c1-1 2 0 3 0M5 6c1 0 2-1 3 1`,circleCancel:`M1 10a1 1 0 0 0 18 0 1 1 0 0 0-18 0m5-4 8 8m0-8-8 8`,circleCheck:`M1 10a1 1 0 0 0 18 0 1 1 0 0 0-18 0m4 0 4 4m6-7-6 7`,circleExclamation:`M1 10a1 1 0 0 0 18 0 1 1 0 0 0-18 0m9-5v5m0 3a1 1 0 0 0 0 2 1 1 0 0 0 0-2`,circleQuestion:`M1 10a1 1 0 0 0 18 0 1 1 0 0 0-18 0m9-5c4 0 4 5 0 5m0 3a1 1 0 0 0 0 2 1 1 0 0 0 0-2M7 7c0-1 1-2 3-2`,refresh:`M2 10a1 1 0 0 0 15 0c0-5-5-8-10-6l3-3M7 4l3 3`,chartTreemap:`M1 1h18v18H1Zm9 0v18m-9-6h9m0-3h9m-4 0v9`,kpi:`M2 5v10M6 5l-4 5 4 5m2 0V5h2m0 5a1 1 0 0 0 0-5m0 5H8m10-5h-4m0 10h4M16 5v10M1 3V2c0-1 1-1 1-1h16s1 0 1 1v1M1 17v1c0 1 1 1 1 1h16c1 0 1-1 1-1v-1`,kpiBox:`M1 3c0-1 1-2 2-2h14c1 0 2 1 2 2v14c0 1-1 2-2 2H3c-1 0-2-1-2-2zm3 10h5m7 0h-5m-7 3h12M4 4v6m3-6L4 7l3 3m2 0V4h2m0 3a1 1 0 0 0 0-3m0 3H9m7 3h-2m0-6h2m-1 0v6`,tooltip:`m8 15 2 4 2-4h6s1 0 1-1V2c0-1-1-1-1-1H2S1 1 1 2v12c0 1 1 1 1 1zM4 6h7m-7 4h3m2 0h7`,tooltipDisabled:`m8 15 2 4 2-4h6s1 0 1-1V2c0-1-1-1-1-1H2S1 1 1 2v12c0 1 1 1 1 1zM7 5l6 6m-6 0 6-6`,func:`m17 7-4 6m0-6 4 6m-5-8s-1 0-1 1v8c0 1 1 1 1 1m6-10c1 0 1 1 1 1v8c0 1-1 1-1 1M1 19c1 0 2 0 3-2L6 3c0-1 1-2 2-2h2m-5 9h2`,clipBoard:`M6 2c0-1 1-1 1-1h6c1 0 1 1 1 1s0 1-1 1H7S6 3 6 2m0 0H3C2 2 1 3 1 4v13c0 1 1 2 2 2h14c1 0 2-1 2-2V4c0-1-1-2-2-2h-3M5 7h4m-4 4h4m2 0h4M5 15h10m-4-8h4`,clipboardLine:`M6 2c0-1 1-1 1-1h6c1 0 1 1 1 1s0 1-1 1H7S6 3 6 2m0 0H3C2 2 1 3 1 4v13c0 1 1 2 2 2h14c1 0 2-1 2-2V4c0-1-1-2-2-2h-3M5 15l3-5 4 2 3-6`,clipboardDonut:`M6 2c0-1 1-1 1-1h6c1 0 1 1 1 1s0 1-1 1H7S6 3 6 2m0 0H3C2 2 1 3 1 4v13c0 1 1 2 2 2h14c1 0 2-1 2-2V4c0-1-1-2-2-2h-3m-4 3a1 1 0 0 0 0 11 1 1 0 0 0 0-11m0 3a1 1 0 0 0 0 5 1 1 0 0 0 0-5m0-3v3m-4.9 5 2.6-1.4`,clipboardBar:`M6 2c0-1 1-1 1-1h6c1 0 1 1 1 1s0 1-1 1H7S6 3 6 2m0 0H3C2 2 1 3 1 4v13c0 1 1 2 2 2h14c1 0 2-1 2-2V4c0-1-1-2-2-2h-3M5 15v-4h5v4zm5-4V7h5v8h-5`,clipboardVariable:`M6 2c0-1 1-1 1-1h6c1 0 1 1 1 1s0 1-1 1H7S6 3 6 2m0 0H3C2 2 1 3 1 4v13c0 1 1 2 2 2h14c1 0 2-1 2-2V4c0-1-1-2-2-2h-3M5 8l4 5m0-5-4 5m6-5 2.1 2.3M15 8l-4 5`,triangle:`M10 3 1 17h18z`,square:`M2 2v16h16V2z`,diamond:`m10 1-9 9 9 9 9-9z`,pentagon:`M10 1 1 9l4 10h11l3-10Z`,hexagon:`M10 1 2 6v8l8 5 8-5V6Z`,circle:`M10 1a1 1 0 0 0 0 18 1 1 0 0 0 0-18`,sigma:`m16 5 2-3H2l7 8-7 8h16l-2-3`,mu:`M15 2c0 10-2 10-5 10-5 0-5 0-5-10m0 0v16m8.5-7.2C14 12 15 12 15 12`,lambda:`M2 5c0-3 2-3 2-3 6 0 6 16 14 16m-8-8-8 8`,copy:`M18 16c0 1-1 2-2 2H8c-1 0-2-1-2-2V8c0-1 1-2 2-2h8c1 0 2 1 2 2zM6 14H4c-1 0-2-1-2-2V4c0-1 1-2 2-2h8c1 0 2 1 2 2v2`,cursor:`M6 10a1 1 0 0 0 8 0 1 1 0 0 0-8 0m-5 0h5m8 0h5m-9-9v5m0 8v5m0-11v4m-2-2h4`,copyLeft:`M10 2a1 1 0 0 0 0 16 1 1 0 0 0 0-16m0 12a1 1 0 0 0 0-8S8 6 7 8m3 6s-2 0-3-2`,stack:`M10 3 2 6l8 3 8-3zM7 8l-5 2 8 3 8-3-5-2m-6 4-5 2 8 3 8-3-5-2`,unstack:`M10 3 2 6l8 3 8-3zM7 8l-5 2 8 3 8-3-5-2m-6 4-5 2 8 3 8-3-5-2M2 2l16 16m0-16L2 18`,window:`M2 4v12c0 1 1 2 2 2h12c1 0 2-1 2-2V4c0-1-1-2-2-2H4C3 2 2 3 2 4m2 1v3c0 1 1 1 1 1h3c1 0 1-1 1-1V5c0-1-1-1-1-1H5C4 4 4 5 4 5m12 0v3c0 1-1 1-1 1h-3s-1 0-1-1V5c0-1 1-1 1-1h3s1 0 1 1M5 11s-1 0-1 1v3c0 1 1 1 1 1h3s1 0 1-1v-3c0-1-1-1-1-1zm7 0c-1 0-1 1-1 1v3s0 1 1 1h3s1 0 1-1v-3c0-1-1-1-1-1zM6 6`,chartParallelCoordinatePlot:`M2 2v16m8-16v16m8-16v16M2 4l8-1h8M2 10l8-4 8 2M2 16h8l8-4`,restart:`M3 10a1 1 0 0 0 14 0c0-4-3-7-7-7V2L7 4m-2 6a1 1 0 0 0 10 0c0-3-2-5-5-5v1L7 4m-4 6h2`,lap:`M3 10a1 1 0 0 0 14 0 1 1 0 0 0-14 0m5-8h4M5 3l1 1m9-1-1 1m-4 3v3l3 3`,carouselTable:`M16 2v16M14 4l2-2 2 2m-4 12 2 2 2-2M3 2h8c1 0 1 1 1 1v14c0 1-1 1-1 1H3c-1 0-1-1-1-1V3s0-1 1-1M2 6h10M2 9h10M2 12h10M2 15h10M7 2v16M4 4h1m4 0h1`,trash:`M7 18h6c2 0 2 0 3-12H4c1 12 1 12 3 12M3 4h14M8 2h4m-2 6v7M7 8l.518 7.01M13 8l-.546 6.984`,chartFunnel:`M9 18c1 1 2 0 2 0l1-8 6-4V3C18 1 2 1 2 3v3l6 4zM2 3C1 6 18 6 18 3`,chartTableSparkline:`M1 2v2m0 5v2s0 1 1 1h4s1 0 1-1V9c0-1-1-1-1-1H2C1 8 1 9 1 9m0 7v2s0 1 1 1h4c1 0 1-1 1-1v-2c0-1-1-1-1-1H2c-1 0-1 1-1 1M9 3c2-2 3-2 5 0s3 2 5 0M9 10c2 2 3 2 5 0s3-2 5 0M9 17c2-2 3-2 5 0s3 2 5 0M1 4s0 1 1 1h4s1 0 1-1V2c0-1-1-1-1-1H2S1 1 1 2`,chartCirclePack:`M10 7a1 1 0 0 0 0 6 1 1 0 0 0 0-6M5 5a1 1 0 0 0 2.716 3.039A1 1 0 0 0 5 5m8-1a1 1 0 0 0-1.646 3.322A1 1 0 0 0 13 4m-4.494 8.628a1 1 0 0 0-3.456 4.127 1 1 0 0 0 3.456-4.127m6.459-5.64a1 1 0 0 0-1.43 2.77 1 1 0 0 0 1.43-2.77M16 11a1 1 0 0 0-2.916 3.742A1 1 0 0 0 16 11`,home:`m2 10 8-8 8 8M4 10v7c0 1 0 1 1 1h3v-6h4v6h3c1 0 1 0 1-1v-7m-8 8`,icons:`m1 9 4-7 4 7zm11 0V2h7v7zm-7 3c-5 0-5 7 0 7s5-7 0-7m7 0 7 7m0-7-7 7`,robot:`M2 2h16v16H2zm4 3a1 1 0 0 0 0 3 1 1 0 0 0 0-3m8 0a1 1 0 0 0 0 3 1 1 0 0 0 0-3M1 4v5m18-5v5M5 11c1 5 9 5 10 0M7 1h6`,computer:`M3 2S2 2 2 3v10s0 1 1 1h14c1 0 1-1 1-1V3c0-1-1-1-1-1zm6 12v2m2-2v2m-3 1c.333-.333.667-.667 1-2q1 1.5 2 0c.333 1.333.667 1.667 1 2H7c-1 0-2 1-2 2h10c0-1-1-2-2-2h-1M6 5 4 8l2 3m8-6 2 3-2 3m-2-7-4 8`,htmlTag:`m6 5-5 5 5 5m8-10 5 5-5 5m-7 3 6-16`,curlyBrackets:`M5 2Q2 2 2 5l.35 2.988C2 9 1 9 1 10s1 1 1.396 1.949L2 15q0 3 3 3M15 2q3 0 3 3l-.389 3.035C18 9 19 9 19 10s-1 1-1.389 2.008L18 15q0 3-3 3`,curlySpread:`M5 2Q2 2 2 5l.35 2.988C2 9 1 9 1 10s1 1 1.396 1.949L2 15q0 3 3 3M15 2q3 0 3 3l-.389 3.035C18 9 19 9 19 10s-1 1-1.389 2.008L18 15q0 3-3 3m-5-9a1 1 0 0 0 0 2 1 1 0 0 0 0-2M6 9a1 1 0 0 0 0 2 1 1 0 0 0 0-2m8 0a1 1 0 0 0 0 2 1 1 0 0 0 0-2`,world:`M10 1a1 1 0 0 0 0 18 1 1 0 0 0 0-18c-7 3-7 15 0 18m0-18c7 3 7 15 0 18m0-18v18m-9-9h18M1 10`,eye:`M1 10q9-9 18 0-9 9-18 0m9-3a1 1 0 0 0 0 6 1 1 0 0 0 0-6m0 2a1 1 0 0 0 0 2 1 1 0 0 0 0-2`,chartRidgeline:`m1 15 3 1 3-2 3 4 4-8 3 6 2-1M1 12l5-1 4 1 4-6m0 0 3 5 2 1M1 9l5-1h3l5-7 3 5h2`,chartChord:`M9 1Q2 2 1 9m0 2q1 7 8 8m2 0q7-1 8-8m0-2q-1-7-8-8M5.683 2.021C9 6 13 4 14.893 2.322M2.421 4.987c12.048 2.15 13.124 7.229 14.94 10.343M4.83 17.48c4.19-3.707 6.377-3.262 10.603-.111M1.976 14.033c9.231-1.298 13.976-4.968 15.237-9.64`,tableDialogOpen:`M1 4V1m9 4v10m-5-3.364 10 .019M5 8.396l10 .016M4 4 1 1h3m0 15-3 3m0-3v3h3m12-3 3 3m-3 0h3v-3M16 4l3-3m-3 0h3v3M5 10V6s0-1 1-1h8c1 0 1 1 1 1v8c0 1-1 1-1 1H6s-1 0-1-1z`,tableDialogClose:`M4 4 1 1m3 0v3H1m15 0 3-3m-3 0v3h3m-3 12 3 3m0-3h-3v3M4 16l-3 3m0-3h3v3m6-14v10m-5-3.364 10 .019M5 8.396l10 .016M5 10V6s0-1 1-1h8c1 0 1 1 1 1v8c0 1-1 1-1 1H6s-1 0-1-1z`,minimap:`M1 3c0-2 3-2 3 0v14c0 2-3 2-3 0zm3 0h12M4 17h12V3c0-2 3-2 3 0v14c0 2-3 2-3 0M6 11l2 3 1-6 3 3 2-6`,move:`M10 2v6m0 4v6m-2-8H2m10 0h6M7 4l3-2 3 2M4 7l-2 3 2 3m3 3 3 2 3-2m3-3 2-3-2-3`,resize:`M2 12v5s0 1 1 1h5s1 0 1-2v-4c0-1-1-1-1-1H3s-1 0-1 1M6 2h3m2 0h3m2 0h1c1 0 1 1 1 1v1M4 2H3S2 2 2 3v1m0 2v3m16-3v3m0 7v1c0 1-1 1-1 1h-1m-2 0h-3m7-7v3`,selectAndGroup:`M2 1h1c1 0 1 1 1 1v1s0 1-1 1H2S1 4 1 3V2c0-1 1-1 1-1m15 0h1c1 0 1 1 1 1v1c0 1-1 1-1 1h-1s-1 0-1-1V2c0-1 1-1 1-1M2 19h1c1 0 1-1 1-1v-1s0-1-1-1H2s-1 0-1 1v1c0 1 1 1 1 1m15 0h1s1 0 1-1v-1s0-1-1-1h-1s-1 0-1 1v1c0 1 1 1 1 1M4 2.497l12-.002M2.498 4l-.012 12M17.508 4l.019 12M4 17.49l12 .009M6 6v6h6V6zm2 6v2h6V8h-2`,printer:`M6 13v4c0 1 1 1 1 1h6s1 0 1-1v-4s0-1-1-1H7c-1 0-1 1-1 1m-1 2H3s-1 0-1-1V9c0-1 1-1 1-1h14c1 0 1 1 1 1v5c0 1-1 1-1 1h-2M6 7V4c0-1 1-1 1-1h6c1 0 1 1 1 1v3`,save:`M3 2h11l4 4v11c0 1-1 1-1 1H3s-1 0-1-1V3s0-1 1-1m2 0v2c0 1 1 1 1 1h6s1 0 1-1V2m-3 7a1 1 0 0 0 0 4 1 1 0 0 0 0-4`,svg:`M4 1Q1 1 1 4v12q0 3 3 3h12q3 0 3-3V6c-4 0-5-1-5-5Zm4.458 8.052L10 16l1.519-6.97M16 11c0-3-3.005-2.19-3 0v3c0 3 2.99 2.299 3 0v-1h-1m-8.018-2.714C6.564 8.238 3.921 8.788 4 11c.757 2.259 2.806.607 3 3 0 3-3.146 2.299-3 0`,zoomUnlock:`M10 1a1 1 0 0 0 0 18 1 1 0 0 0 0-18m6.36 15.368L19 19M6 10v4c0 1 1 1 1 1h6s1 0 1-1v-4s0-1-1-1H7c-1 0-1 1-1 1m7-1a1 1 0 0 0-4-4m1 6v2`,zoomLock:`M10 1a1 1 0 0 0 0 18 1 1 0 0 0 0-18m6.36 15.368L19 19M6 10v4c0 1 1 1 1 1h6s1 0 1-1v-4s0-1-1-1H7c-1 0-1 1-1 1m4 1v2m3-4c1-6-7-6-6 0`,lock:`M16 8C16-1 4-1 4 8M3 8h14c1 0 1 1 1 1v9c0 1-1 1-1 1H3s-1 0-1-1V9s0-1 1-1m7 3a1 1 0 0 0 0 2 1 1 0 0 0 0-2m0 2v3`,unlock:`M16 8c2-7-6-8-8-6M3 8h14c1 0 1 1 1 1v9c0 1-1 1-1 1H3s-1 0-1-1V9s0-1 1-1m7 3a1 1 0 0 0 0 2 1 1 0 0 0 0-2m0 2v3`,triangleInformation:`M4 18h12c1 0 4 0 3-3L12 3c-1-2-3-2-4 0L1 15c-1 3 2 3 3 3m6-3v-5m0-4a1 1 0 0 0 0 2 1 1 0 0 0 0-2`,triangleExclamation:`M4 18h12c1 0 4 0 3-3L12 3c-1-2-3-2-4 0L1 15c-1 3 2 3 3 3m6-7V5m0 8a1 1 0 0 0 0 2 1 1 0 0 0 0-2`,direction:`M18 8C17-1 3-1 2 9m0 3c1 9 15 9 16-1M1 6l1 3 3-2m10 6 3-2 1 3`,chartGraph:`M2.9 1.6A1 1 0 004.2 3.2 1 1 0 003 1.5M9 1A1 1 0 009 4 1 1 0 009 1M3 6A1 1 0 003 9 1 1 0 003 6M4.2 3.2 6.7 5.7m-.1-.1L8.1 3.7M6.6 5.7 4.4 6.9M3 15a1 1 0 000 3 1 1 0 000-3m8 1a1 1 0 000 2 1 1 0 000-2M7 15 4.4 16M7 15M7 15l3.1 1.6M11 7a1 1 0 000 4 1 1 0 000-4M6.7 5.7 9.4 7.8M7 15l2.9-4.3M18 5a1 1 0 000 3 1 1 0 00-0-3M12.5 10.4l3.4 3.1M17 13a1 1 0 000 3 1 1 0 000-3m1-5-.7 5`,chartDag:`M8 2h4c1 0 1 1 1 1v1s0 1-1 1H8S7 5 7 4V3s0-1 1-1m-6 8v1s0 1 1 1h4s1 0 1-1v-1s0-1-1-1H3c-1 0-1 1-1 1m10 0v1s0 1 1 1h4s1 0 1-1v-1s0-1-1-1h-4c-1 0-1 1-1 1m-9 6h4c1 0 1 1 1 1v1s0 1-1 1H3c-1 0-1-1-1-1v-1s0-1 1-1m9 1v1s0 1 1 1h4c1 0 1-1 1-1v-1c0-1-1-1-1-1h-4c-1 0-1 1-1 1M10 5c0 3-5 1-5 4m5-4c0 3 5 1 5 4M5 12v4m10-4v4`,chartGeo:`M10 14c3-5 4-5 4-8a1 1 0 0 0-8 0c0 3 2 4 4 8m0-10a1 1 0 0 0 0 4 1 1 0 0 0 0-4m-3 8H4l-3 7h18l-3-7h-3`,revert:`M10 19a1 1 0 0 0 0-16m-8 7c0 5 4 9 8 9m3-18-3 2 2 3`,lineUp:`M1 1v18h18M3 17l3-4 3 2 3-5 3 3 3-10m-2.191 1.399L18 3l.992 2.387`,histogram:`M1 1v18h18M4 19v-7h3v7m2 0V8h3v11m2 0V4h3v15`,histogramUp:`M1 1v18h18M4 19v-5h3v5m2 0v-8h3v8m2 0V8h3v11M4 9l11-7m-2.778-.374L15 2l-.731 2.63`,histogramDown:`M1 1v18h18M4 19V9h3v10m2 0v-6h3v6m2 0v-4h3v4M5 2l11 8m-2.85.336 2.798-.334-.504-2.729`,document:`M1 1v18h18m0 0V1H1m6 3H4m0 3h3m-3 3h3m-3 3h12M4 16h12M10 4v6h6V4z`,database:`M2 16c0 4 16 4 16 0m0 0V4C18 0 2 0 2 4v12M2 4c0 4 16 4 16 0M2 8c0 4 16 4 16 0M2 12c0 4 16 4 16 0`,percentage:`M2 18 18 2M5 2a1 1 0 0 0-1 5 1 1 0 0 0 1-5m11 16a1 1 0 0 0-1-5 1 1 0 0 0 1 5`,percentageUp:`M2 18 18 2M5 2a1 1 0 0 0-1 5 1 1 0 0 0 1-5m11 16a1 1 0 0 0-1-5 1 1 0 0 0 1 5M14 2h4v4`,percentageDown:`M2 18 18 2M5 2a1 1 0 0 0-1 5 1 1 0 0 0 1-5m11 16a1 1 0 0 0-1-5 1 1 0 0 0 1 5M2 14v4h4`,aToZ:`m3 8 4-7 4 7M4.716 5h4.569M3 12h8l-8 7h8m6-17v16m-2-2 2 2 2-2`,zToA:`m3 19 4-7 4 7m-6.285-2.999L9.284 16M3 1h8L3 8h8m6-6v16m-2-2 2 2 2-2`,zeroToNine:`M7 1C1.653.987 1.663 7.995 7 8c5.337-.005 5.326-7.002 0-7m10 1v16m-2-2 2 2 2-2m-8-2c0-3-8-3-8 0s8 2 8 0m0 0c0 5-3 5-8 5`,nineToZero:`M7 12c-5.338-.002-5.328 6.991 0 7 5.329-.004 5.335-7.005 0-7M17 2v16m-2-2 2 2 2-2M11 4c0-3-8-3-8 0m0 0c0 3 8 2 8 0m0 0c0 5-3 5-8 5`,chip:`M5 3h10c1 0 2 1 2 2v10c0 1-1 2-2 2H5c-1 0-2-1-2-2V5c0-1 1-2 2-2m5-2v2M7 1v2m6-2v2M1 10h2M1 7h2m-2 6h2m7 4v2m-3-2v2m6-2v2m4-9h2m-2-3h2m-2 6h2M8 7h4s1 0 1 1v4s0 1-1 1H8c-1 0-1-1-1-1V8c0-1 1-1 1-1`,wifi:`M10 6a1 1 0 0 0 0 2 1 1 0 0 0 0-2M7 4c-2 1-2 5 0 6m6-6c2 1 2 5 0 6M4 3c-2 2-2 6 0 8m12-8c2 2 2 6 0 8m-6 0v5m-8 1h4m0 0c0-1 1-1 1-1h6s1 0 1 1-1 1-1 1H7s-1 0-1-1m8 0h4`,key:`M7 10a1 1 0 0 0-6 0 1 1 0 0 0 6 0h12m-2 0v3l-2-2-2 2v-3`,shield:`M10 1C7 4 4 4 1 4c1 6 3 11 9 15 6-4 8-9 9-15-3 0-6 0-9-3`,shieldExclam:`M10 1C7 4 4 4 1 4c1 6 3 11 9 15 6-4 8-9 9-15-3 0-6 0-9-3m0 4v5m0 3a1 1 0 0 0 0 2 1 1 0 0 0 0-2`,cloud:`M4 15h12a1 1 0 0 0 1-5 1 1 0 0 0-5-3 1 1 0 0 0-5 2 1 1 0 0 0-3 6`,cloudRain:`M4 15h12a1 1 0 0 0 1-5 1 1 0 0 0-5-3 1 1 0 0 0-5 2 1 1 0 0 0-3 6m2 2-2 2m7-2-2 2m7-2-2 2`,sun:`M10 7a1 1 0 0 0 0 6 1 1 0 0 0 0-6M5 6 4 5m11 1 1-1M5 15l-1 1m11-1 1 1M10 4l.005-1.318M4 10l-1.338.001M10 16l.002 1.333M16 10l1.346.002`,croissant:`M6 3c11 0 11 14 0 14M6 3c5 4 5 10 0 14`,plus:`M10 3v14m-7-7h14`,minus:`M3 10h14`,person:`M10 1c-2 0-2 4 0 4s2-4 0-4m0 5c-4 0-1 4 0 4m0-4c4 0 1 4 0 4m-2 0 1 9m3-9-1 9m-3 0h4M8 5c-2 1-3 5-3 7m7-7c2 1 3 5 3 7`,download:`M10 2v12m-4-4 4 4 4-4M2 13v3c0 2 2 2 2 2h12s2 0 2-2v-3`,upload:`M10 6v12m-4-8 4-4 4 4M2 7V4c0-2 2-2 2-2h12s2 0 2 2v3`,target:`M10 9a1 1 0 0 0 0 2 1 1 0 0 0 0-2m0-3a1 1 0 0 0 0 8 1 1 0 0 0 0-8m0-4a1 1 0 0 0 0 16 1 1 0 0 0 0-16`,gisLayerSearch:`M10 1 2 3m8 7a1 1 0 0 0 0 8 1 1 0 0 0 0-8M2 3l8 2 8-2-8-2M2 6l8 2 8-2M2 9l4 1m7.068 6.565L16 19m2-10-4 1M2 9l6-1.499M18 9l-6-1.5M18 6l-6-1.5M2 6l6-1.5`,sqlSearch:`M6.008 3.011C5.99 1.737 2.024 1.646 2 3c.024 1.703 4.008 1.12 3.99 3.013 0 1.437-3.966 1.273-3.984-.182M10 10a1 1 0 0 0 0 8 1 1 0 0 0 0-8m3.068 6.565L16 19M10 2c-3 0-3 5 0 5m0 0c3 0 3-5 0-5m5 0v5h3m-6.538-.537L13 8`,scada:`M7 15h6c1 0 1 1 1 1v2s0 1-1 1H7c-1 0-1-1-1-1v-2s0-1 1-1m-6 2h5m8 0h5m-9-2V4M5.876 5.49l8.227 4.067m-8.207-.005 8.232-4.06M10 2a1 1 0 0 0 0 2 1 1 0 0 0 0-2M6 5a1 1 0 0 0-2 0 1 1 0 0 0 2 0m0 5a1 1 0 0 0-2 0 1 1 0 0 0 2 0m8-5a1 1 0 0 0 2 0 1 1 0 0 0-2 0m0 5a1 1 0 0 0 2 0 1 1 0 0 0-2 0`,apiStream:`M5 2Q2 2 2 5l.35 2.988C2 9 1 9 1 10s1 1 1.396 1.949L2 15q0 3 3 3M15 2q3 0 3 3l-.389 3.035C18 9 19 9 19 10s-1 1-1.389 2.008L18 15q0 3-3 3M6 6h8m-2-2 2 2-2 2m2 6H6m2-2-2 2 2 2`,wrench:`m2.036 4.452 3.073 2.99c1.786.042 2.451-.498 2.741-2.243L4.736 1.835c4.734-.415 7.475 1.62 5.773 6.105M2.036 4.452c-1.038 3.945 1.578 7.6 6.014 5.654m0 0 7.684 8.152c1.039-.014 2.272-1.262 2.26-2.159L10.509 7.94`,branches:`M4 10a1 1 0 0 0-3 0 1 1 0 0 0 3 0m6 0a1 1 0 0 0-3 0 1 1 0 0 0 3 0m0-7a1 1 0 0 0-3 0 1 1 0 0 0 3 0M2.492 8.5l.013-3.499C2.521 4.002 3.536 3.004 4.517 3H7m3 0h6m3 0a1 1 0 0 0-3 0 1 1 0 0 0 3 0M4 10h3m12 7a1 1 0 0 0-3 0 1 1 0 0 0 3 0M8.5 11.5l.011 3.5c-.005 1 .983 1.999 2.015 1.999L16 17m3-7a1 1 0 0 0-3 0 1 1 0 0 0 3 0m-9 0h6`,fork:`M4 2a1 1 0 0 0 0 4 1 1 0 0 0 0-4m12 0a1 1 0 0 0 0 4 1 1 0 0 0 0-4m-6 13a1 1 0 0 0 0 4 1 1 0 0 0 0-4M4 6v2c0 2 2 2 2 2h8s2 0 2-2V6m-6 4v5`,resizeX:`m5 6-4 4 4 4m10-8 4 4-4 4`,resizeY:`m14 5-4-4-4 4m8 10-4 4-4-4`,resizeTLBR:`M9 3H3v6m14 2v6h-6`,resizeTRBL:`M17 9V3h-6M9 17H3v-6`,focus:`M1 6V4q0-3 3-3h2m8 0h2q3 0 3 3v2m0 8v2q0 3-3 3h-2m-8 0H4q-3 0-3-3v-2m11-4a1 1 0 0 0-4 0 1 1 0 0 0 4 0`,sql:`M10 7c-3 0-3 6 0 6s3-6 0-6m0 6 2 2M5.988 8.502C5.988 6.993 2 6 2 9c.322 1.725 3.706.249 4 2-.012 3.076-3.993 2.014-3.993.504M14 7v6h4`,monitor:`M3 2S2 2 2 3v10s0 1 1 1h14c1 0 1-1 1-1V3c0-1-1-1-1-1zM2 12h16m-9 2v2m2-2v2m-3 1c.333-.333.667-.667 1-2q1 1.5 2 0c.333 1.333.667 1.667 1 2H7c-1 0-2 1-2 2h10c0-1-1-2-2-2h-1`,workstation:`M2 2S1 2 1 3v10s0 1 1 1h9M1 12h10m-3 2v2m2-2v2m-3 1c1 0 1-1 1-2 1 1 1 1 2 0 0 2 1 2 1 2m0 0H6c-1 0-2 1-2 2h7m0-17H2m12 0h4s1 0 1 1v15c0 1-1 1-1 1h-4c-1 0-1-1-1-1V3s0-1 1-1m2 3a1 1 0 0 0 0 2 1 1 0 0 0 0-2`,laptop:`M2 17c0 1 1 1 1 1h14s1 0 1-1l-2-4H4zm2-5V4s0-1 1-1h10c1 0 1 1 1 1v8zm3 4h6`,folder:`M3 2h3M3 2C2 2 2 3 2 3v14s0 1 1 1m0 0h14s1 0 1-1V6s0-2-2-2H8L6 2m12 7c0-2-2-2-2-2H4C2 7 2 9 2 9m6 0h4`,folderFill:`M3 2h3M3 2C2 2 2 3 2 3v14s0 1 1 1m0 0h14s1 0 1-1V6s0-2-2-2H8L6 2m12 10c0-2-2-2-2-2H4c-2 0-2 2-2 2m6 0h4m-7-2V7h10v3`,clip:`M6 1v14a1 1 0 0 0 8 0V4a1 1 0 0 0-5 0v11a1 1 0 0 0 2.5 0V7`,addColumn:`M3 2C2 2 2 3 2 3v14s0 1 1 1h2s1 0 1-1V3c0-1-1-1-1-1zm6 0C8 2 8 3 8 3v14s0 1 1 1h2c1 0 1-1 1-1V3s0-1-1-1zm7 6v4m-2-2h4`,addRow:`M3 2S2 2 2 3v2s0 1 1 1h14s1 0 1-1V3c0-1-1-1-1-1zm0 6C2 8 2 9 2 9v2s0 1 1 1h14c1 0 1-1 1-1V9c0-1-1-1-1-1zm7 6v4m-2-2h4`,bell:`M12 3a1 1 0 0 0-4 0c-4 1-3 6-4 9l-1 2c0 1 0 2 1 2h12c1 0 1-1 1-2l-1-2c-1-3 0-8-4-9M8 17a1 1 0 0 0 4 0`,bellOff:`M12 3a1 1 0 0 0-4 0c-4 1-3 6-4 9l-1 2c0 1 0 2 1 2h12c1 0 1-1 1-2l-1-2c-1-3 0-8-4-9M8 17a1 1 0 0 0 4 0M2 2l17 15`,bellRing:`M12 3a1 1 0 0 0-4 0c-4 1-3 6-4 9l-1 2c0 1 0 2 1 2h12c1 0 1-1 1-2l-1-2c-1-3 0-8-4-9M8 17a1 1 0 0 0 4 0M5 2C3 3 2 5 2 7m13-5c2 1 3 3 3 5`,pin:`m2 18 4-4m-3-4 7 7m0 0 1-1c1-2 1-4 1-4l4-5c1 0 1 0 2-1l-4-4c-1 1-1 1-1 2L8 8S6 8 4 9l-1 1`,unpin:`m2 18 4-4m-3-4 7 7m0 0 1-1c1-2 1-4 1-4l4-5c1 0 1 0 2-1l-4-4c-1 1-1 1-1 2L8 8S6 8 4 9l-1 1M2 2l16 16`,building:`M1 18h18M3 18V2h7v16M5 4v1m3-1v1M5 8v1m3-1v1m-3 3v1m3-1v1m2-3h7v8m-5 0v-3c0-1 3-1 3 0v3m-2-6h1`,twig:`M5 15a1 1 0 0 0 0 4 1 1 0 0 0 0-4M5 1a1 1 0 0 0 0 4 1 1 0 0 0 0-4m10 4a1 1 0 0 0 0 4 1 1 0 0 0 0-4M5 15V5m2 12h4c2 0 4-2 4-4V9`,check:`M18 2 8 18l-6-6`,doubleCheck:`M17 2 7 18l-5-6m5-1 1 1m3 3 2 2 6-11`,plug:`M14 5v10c0 1-2 1-2 0V5c0-1 2-1 2 0m-2 0c-9 0-9 10 0 10m-7-5c-5 0 1 9-4 9M15 7h4m-4 6h4`,unplug:`M14 5v10c0 1-2 1-2 0V5c0-1 2-1 2 0m-2 0c-9 0-9 10 0 10m-7-5c-5 0 1 9-4 9M15 7h4m-4 6h4M2 1l4 5m10 13-2-2.595M7.609 8.008l3.028 3.981`,spinner1:`M10 1a1 1 0 0 0 0 18m0-2a1 1 0 0 0 0-14m0 2a1 1 0 0 0 0 10m0-2a1 1 0 0 0 0-6m0 2a1 1 0 0 0 0 2`,spinner2:`M10 1a1 1 0 0 0 0 18M-3 0`,spinner3:`M10 1v3m-9 6h3m6 9v-3m9-6h-3`,spinner4:`M10 1v1m-9 8h1m8 9v-1m9-8h-1`,frameLine:`M1 1h18v18H1zm3 12 3 3 3-8 3 6 3-10`,pointer:`m2 2 5.015 15.998 2.596-6.384L16 18l2-2-6.514-6.405 6.816-2.164z`,monument:`M2 6h16c1 0 1 2 0 2H2C1 8 1 6 2 6m2 0 6-5 6 5M2 17h16M3 8v9m2-9v9m12-9v9m-2-9v9M9 8v9m2-9v9M1 19h18`,chartBump:`M2 1a1 1 0 0 0 0 2 1 1 0 0 0 0-2m8 0a1 1 0 0 0 0 2 1 1 0 0 0 0-2m8 0a1 1 0 0 0 0 2 1 1 0 0 0 0-2M2 9a1 1 0 0 0 0 2 1 1 0 0 0 0-2m0 8a1 1 0 0 0 0 2 1 1 0 0 0 0-2m8-8a1 1 0 0 0 0 2 1 1 0 0 0 0-2m8 0a1 1 0 0 0 0 2 1 1 0 0 0 0-2m-8 8a1 1 0 0 0 0 2 1 1 0 0 0 0-2m8 0a1 1 0 0 0 0 2 1 1 0 0 0 0-2M3 2c3 0 3 8 6 8m-6 0c3 0 3-8 6-8m2 0h6M3 18h6m2 0c3 0 3-8 6-8m-6 0c3 0 3 8 6 8`,folderOpen:`M1 3c0-1 1-1 1-1h3s1 0 1 1v1c0 1 1 1 1 1h8c1 0 1 1 1 1M1 3v14c0 1 1 1 1 1l4-8h13l-4 8H2M16 6v4`,folderOpenFill:`M1 3c0-1 1-1 1-1h3s1 0 1 1v1c0 1 1 1 1 1h8c1 0 1 1 1 1M1 3v14c0 1 1 1 1 1l4-7h13l-4 7H2M16 6v5M4 14.5V8h9v3`,tag:`M2 5v5l8 8s2 2 4 0l4-4c2-2 0-4 0-4l-8-8H5Q2 2 2 5m3.506.48a1 1 0 0 0 1.998 2.016A1 1 0 0 0 5.506 5.48`,lightBulbOff:`M10 1a1 1 0 0 0 0 14 1 1 0 0 0 0-14M6.482 14.053 7 18h6l.501-3.925M12 19H8m2-4V9m0-2a1 1 0 0 0 0 2 1 1 0 0 0 0-2`,lightBulbOn:`M10 1a1 1 0 0 0 0 14 1 1 0 0 0 0-14M6.482 14.053 7 18h6l.501-3.925M12 19H8m2-4V9m0-2a1 1 0 0 0 0 2 1 1 0 0 0 0-2M1 1l1 1m17-1-1 1M1 15l1-1m17 1-1-1`,knobs:`M2 10h4m0-2v4m3-2h9m-7-8v4m0-2h7M2 4h6m6 14v-4m0 2h4m-7 0H2`,hierarchy:`M8 1h4s1 0 1 1v3s0 1-1 1H8C7 6 7 5 7 5V2s0-1 1-1M2 19h4s1 0 1-1v-3c0-1-1-1-1-1H2c-1 0-1 1-1 1v3c0 1 1 1 1 1m12 0h4s1 0 1-1v-3s0-1-1-1h-4s-1 0-1 1v3c0 1 1 1 1 1m-9-9h10m-5-4v4m-5 0c-1 0-1 1-1 1v3m11-4c1 0 1 1 1 1v3`,hierarchyList:`M2 1C1 1 1 2 1 2v2s0 1 1 1h4s1 0 1-1V2s0-1-1-1zm16 18s1 0 1-1v-2c0-1-1-1-1-1h-4c-1 0-1 1-1 1v2s0 1 1 1zm-4-7h4s1 0 1-1V9c0-1-1-1-1-1h-4c-1 0-1 1-1 1v2s0 1 1 1M4 5v11c0 1 1 1 1 1h8m0-7H5s-1 0-1-1`,bucketFill:`M2 2h16c1 0 1 3 0 3H2C1 5 1 2 2 2m1 3v11c0 1 1 2 2 2h1M17 5v11c0 1-1 2-2 2h-1m-4 0V9m-3 3 3-3 3 3`,bucketEmpty:`M2 2h16c1 0 1 3 0 3H2C1 5 1 2 2 2m1 3v11c0 1 1 2 2 2h1M17 5v11c0 1-1 2-2 2h-1m-4 0V9m-3 6 3 3 3-3`,bucket:`M2 2h16c1 0 1 3 0 3H2C1 5 1 2 2 2m1 3v11c0 1 1 2 2 2h9m3-13v11c0 1-1 2-2 2h-1`,bucketRecycle:`M2 2h16c1 0 1 3 0 3H2C1 5 1 2 2 2m1 3v11c0 1 1 2 2 2h9m3-13v11c0 1-1 2-2 2h-1M8.786 9.996 10 8l1.225 2.008m1.489 2.473 1.26 2.096-2.462-.011m-2.978.011H5.98l1.317-2.141`,envelope:`M3 5h14c1 0 1 1 1 1v8s0 1-1 1H3c-1 0-1-1-1-1V6s0-1 1-1m0 1 7 5 7-5M3 14l5-4m4 0 5 4`,sliders:`M2 4h2m-2 6h10M2 16h2M6 2a1 1 0 0 0 0 4 1 1 0 0 0 0-4m2 2h10m-4 4a1 1 0 0 0 0 4 1 1 0 0 0 0-4m2 2h2M6 14a1 1 0 0 0 0 4 1 1 0 0 0 0-4m2 2h10`,checkList:`M9 5h9m-9 6h9m-9 6h9M6 2 4 6 2 4m0 6 2 2 2-4m-4 8 2 2 2-4`,bug:`M8 2a1 1 0 0 0 4 0m1 5a1 1 0 0 0-6 0m0 0c0 1 1 1 1 1h4c1 0 1-1 1-1M7 6C6 6 5 7 5 8v5c0 2 1 4 4 4h2c3 0 4-2 4-4V8c0-1-1-2-2-2m-3 2v9m-5-6H2m13 0h3M5 14c-1 0-3 1-3 4m13-4c1 0 3 1 3 4M5 8C4 8 2 7 2 5m13 3c1 0 3-1 3-3`,microscope:`M9 3s0-1-1-1H7S6 2 6 3C5 3 5 4 5 4v3c0 1 1 1 1 1h3s1 0 1-1V4s0-1-1-1m-3 7h3m-4 6h5m-8 2h16m-8 0c9 0 9-13 0-13m-3 6h1`,export:`M10 2v10M7 5l3-3 3 3M5 8H4C3 8 3 9 3 9v8s0 1 1 1h12s1 0 1-1V9s0-1-1-1h-1`,file:`M4 2v16h12V7l-5-5zm7 0v5h5`,filePlus:`M4 2v16h12V7l-5-5zm7 0v5h5m-6 3v4m-2-2h4`,fileSearch:`M4 2v16h3m8-5a1 1 0 0 0-5 3 1 1 0 0 0 5-3m0 3 3 2m-2-9V7l-5-5H4m7 0v5h5`,recycle:`M7.5 5.5c2-3 4-3 7 2m2 3c1 2 1 5-5 5m-4 0c-4 0-5-2-2-7m6-1h3v-3m-1.363 8.393L11.5 15.5l2 2m-11-8 3-1 1 3`,link:`m7 13 6-6M6 9c-5 5 0 10 5 5M9 6c5-5 10 0 5 5`,puzzle:`M16.579 9.304h-1.177V6.167c0-.871-.706-1.569-1.569-1.569h-3.137V3.421a1.96 1.96 0 0 0-1.96-1.96 1.96 1.96 0 0 0-1.962 1.96v1.177H3.638a1.57 1.57 0 0 0-1.569 1.569v2.98h1.177c1.175 0 2.116.941 2.116 2.117a2.11 2.11 0 0 1-2.116 2.118H2.069v2.98a1.57 1.57 0 0 0 1.569 1.569h2.98v-1.177c0-1.175.941-2.116 2.118-2.116 1.176 0 2.117.941 2.117 2.116v1.177h2.98a1.57 1.57 0 0 0 1.569-1.569v-3.136h1.177a1.96 1.96 0 0 0 1.96-1.962 1.96 1.96 0 0 0-1.96-1.96`,externalLink:`m19 1-9 9m5-9h4v4m-9-2H5C4 3 3 4 3 5v10c0 1 1 2 2 2h10c1 0 2-1 2-2v-5`,plotLine:`M4 14a1 1 0 0 0 0 4 1 1 0 0 0 0-4M16 2a1 1 0 0 0 0 4 1 1 0 0 0 0-4m-1.414 3.414L5.42 14.592`,plotArrow:`M4 14a1 1 0 0 0 0 4 1 1 0 0 0 0-4M17 3 5.42 14.592M13 3h4v4`,accessibility:`M10 1a1 1 0 0 0 0 4 1 1 0 0 0 0-4m0 6L4 4a1 1 0 0 0-1 2l5 3v2l-4 6a1 1 0 0 0 2 1l4-5 4 5a1 1 0 0 0 2-1l-4-6V9l5-3a1 1 0 0 0-1-2z`,clankerCrazy:`M2 2h16v17H2zm0 10 8 1 8-1m-8 1v6m-4-6.5V19m8-6.5V19M6 5a1 1 0 0 0 0 4 1 1 0 0 0 0-4m7 0a1 1 0 0 0 0 5 1 1 0 0 0 0-5M1 5v5m18-5v5M7 1h6`,clankerNasty:`M2 2h16v17H2zm0 11 8-2 8 2m-8-2v8m-4-7v7m8-7v7M1 5v5m18-5v5M4 5l4 2m4 0 4-2M7 1h6`},C={chartBar:`M2 12v6c0 1 0 1 1 1h2c1 0 1 0 1-1v-6c0-1 0-1-1-1H3c-1 0-1 0-1 1m6-5v11c0 1 0 1 1 1h2c1 0 1 0 1-1V7c0-1 0-1-1-1H9C8 6 8 6 8 7m6-5v16c0 1 0 1 1 1h2c1 0 1 0 1-1V2c0-1 0-1-1-1h-2c-1 0-1 0-1 1`,chartCandlestick:`M2 9v2c0 1 1 1 1 1h2c1 0 1-1 1-1V9c0-1-1-1-1-1H3C2 8 2 9 2 9m6-1v4s0 1 1 1h2c1 0 1-1 1-1V8c0-1-1-1-1-1H9C8 7 8 8 8 8m6 1v5c0 1 1 1 1 1h2c1 0 1-1 1-1V9s0-1-1-1h-2c-1 0-1 1-1 1M4 8V5M3 5h2m5 8v3m-1 0h2m5-8V2m-1 0h2m-7 5V4M9 4h2m-7 8v6m-1 0h2m11-3v3m-1 0h2`,chartChestnut:`M4 3a1 1 0 0 0 0 6 1 1 0 0 0 0-6m0 9a1 1 0 0 0 0 5 1 1 0 0 0 0-5m5-8h10M9 7h8m-8 3h6m-6 3h4m-4 3h2`,chartDonutEvolution:`M1 1v17c0 1 0 1 1 1h17M3 8a1 1 0 0 0 4 0 1 1 0 0 0-4 0m5 6a1 1 0 0 0 4 0 1 1 0 0 0-4 0m6-10a1 1 0 0 0 4 0 1 1 0 0 0-4 0m-7 6 2 2m2 0 4-6`,chartRelationCircle:`M1 10a1 1 0 0 0 18 0 1 1 0 0 0-18 0m0 0c6 1 8 3 9 9m0 0c0-8-2-12-4-17m4 17c0-8 2-12 4-17m-4 17c1-6 2-8 9-9`,chartRings:`M1 10a1 1 0 0 0 18 0 1 1 0 0 0-18 0m4 4a1 1 0 0 0 10 0 1 1 0 0 0-10 0m3 3a1 1 0 0 0 4 0 1 1 0 0 0-4 0`,chartSparkHistogram:`M2 9v2c0 1 1 1 1 1h2c1 0 1-1 1-1V9c0-1-1-1-1-1H3C2 8 2 9 2 9m6-1v4s0 1 1 1h2c1 0 1-1 1-1V8c0-1-1-1-1-1H9C8 7 8 8 8 8m6 1v2c0 1 1 1 1 1h2c1 0 1-1 1-1V9s0-1-1-1h-2c-1 0-1 1-1 1`,chartTable:`M2 3v14c0 1 0 1 1 1h14c1 0 1 0 1-1V3c0-1 0-1-1-1H3C2 2 2 2 2 3m8 3v12m-8-8h16M2 6h16M2 14h16M6 8h2m-2 4h2m-2 4h2m6-8h2m-2 4h2m-2 4h2`,chartVerticalBar:`M1 3v2c0 1 0 1 1 1h7c1 0 1 0 1-1V3c0-1 0-1-1-1H2C1 2 1 2 1 3m0 6v2c0 1 0 1 1 1h11c1 0 1 0 1-1V9c0-1 0-1-1-1H2C1 8 1 8 1 9m0 6v2c0 1 0 1 1 1h15c1 0 1 0 1-1v-2c0-1 0-1-1-1H2c-1 0-1 0-1 1`,chartWaffle:`M1 2v2c0 1 0 1 1 1h2c1 0 1 0 1-1V2c0-1 0-1-1-1H2C1 1 1 1 1 2m17-1h-2c-1 0-1 0-1 1v2c0 1 0 1 1 1h2c1 0 1 0 1-1V2c0-1 0-1-1-1M8 2v2c0 1 0 1 1 1h2c1 0 1 0 1-1V2c0-1 0-1-1-1H9C8 1 8 1 8 2M2 19h2c1 0 1 0 1-1v-2c0-1 0-1-1-1H2c-1 0-1 0-1 1v2c0 1 0 1 1 1M1 9v2c0 1 0 1 1 1h2c1 0 1 0 1-1V9c0-1 0-1-1-1H2C1 8 1 8 1 9m14 7v2c0 1 0 1 1 1h2c1 0 1 0 1-1v-2c0-1 0-1-1-1h-2c-1 0-1 0-1 1m-7 0v2c0 1 0 1 1 1h2c1 0 1 0 1-1v-2c0-1 0-1-1-1H9c-1 0-1 0-1 1m0-7v2c0 1 0 1 1 1h2c1 0 1 0 1-1V9c0-1 0-1-1-1H9C8 8 8 8 8 9m7 0v2c0 1 0 1 1 1h2c1 0 1 0 1-1V9c0-1 0-1-1-1h-2c-1 0-1 0-1 1`,labelClose:`M2 8c-1 1-1 3 0 4l3 4c1 1 1 1 2 1h10c2 0 2-2 2-2V5s0-2-2-2h-5m-5 7h8m-8 3h9M9 6 4 1m0 5 5-5`,labelOpen:`M2 8c-1 1-1 3 0 4l3 4c1 1 1 1 2 1h10c2 0 2-1 2-2V5s0-2-2-2H7C6 3 6 3 5 4zm5-1h6m-6 3h8m-8 3h9`,moodFlat:`M1 10a1 1 0 0 0 18 0 1 1 0 0 0-18 0m4 3c3-2 7-2 10 0M5 7a1 1 0 0 0 3 0 1 1 0 0 0-3 0m7 0a1 1 0 0 0 3 0 1 1 0 0 0-3 0`,moodHappy:`M1 10a1 1 0 0 0 18 0 1 1 0 0 0-18 0m4 1c1 7 9 7 10 0zm0-4a1 1 0 0 0 3 0 1 1 0 0 0-3 0m7 0a1 1 0 0 0 3 0 1 1 0 0 0-3 0`,moodNeutral:`M1 10a1 1 0 0 0 18 0 1 1 0 0 0-18 0m4 2h10M5 7a1 1 0 0 0 3 0 1 1 0 0 0-3 0m7 0a1 1 0 0 0 3 0 1 1 0 0 0-3 0`,moodSad:`M1 10a1 1 0 0 0 18 0 1 1 0 0 0-18 0m4 4c1-5 9-5 10 0zm0-7a1 1 0 0 0 3 0 1 1 0 0 0-3 0m7 0a1 1 0 0 0 3 0 1 1 0 0 0-3 0`,screenshot:`M1 4V3c0-1 1-2 2-2h1m12 0h1c1 0 2 1 2 2v1M1 16v1c0 1 1 2 2 2h1m12 0h1c1 0 2-1 2-2v-1M8 10a1 1 0 0 0 4 0 1 1 0 0 0-4 0m-3 3V8c0-1 0-1 1-1h8c1 0 1 0 1 1v5c0 1 0 1-1 1H6c-1 0-1 0-1-1m2-7h6`,smiley:`M1 10a1 1 0 0 0 18 0 1 1 0 0 0-18 0m4 2c3 2 7 2 10 0M5 7a1 1 0 0 0 3 0 1 1 0 0 0-3 0m7 0a1 1 0 0 0 3 0 1 1 0 0 0-3 0`,chartSparkline:`M2.033 13.067c-.071-2.13.213-3.833 1.42-3.94 1.739 0 .78 6.921 3.017 6.886 2.271 0 1.064-7.383 3.265-7.454 2.343 0 1.207 3.798 3.23 3.798C15.059 12.286 14.278 4.016 18 4`,legend:`M3 2h2s1 0 1 1v2c0 1-1 1-1 1H3S2 6 2 5V3c0-1 1-1 1-1m5 2c0-1 1-1 1-1h8s1 0 1 1-1 1-1 1H9S8 5 8 4M3 8h2s1 0 1 1v2c0 1-1 1-1 1H3s-1 0-1-1V9c0-1 1-1 1-1m5 2c0-1 1-1 1-1h8s1 0 1 1-1 1-1 1H9s-1 0-1-1m-5 4h2s1 0 1 1v2c0 1-1 1-1 1H3s-1 0-1-1v-2c0-1 1-1 1-1m5 2c0-1 1-1 1-1h8s1 0 1 1-1 1-1 1H9s-1 0-1-1`,chartGalaxy:`M7 11a1 1 0 0 0 4 0m3 0a1 1 0 0 0-7 0m-4 0a1 1 0 0 0 11 0m4 0a1 1 0 0 0-15 0m13.4 5c.6-1 1.6-3 1.6-5`,zoomPlus:`M9 1a1 1 0 0 0 0 16A1 1 0 0 0 9 1m5.65 13.65L18 18M9 5v8M5 9h8`,zoomMinus:`M9 1a1 1 0 0 0 0 16A1 1 0 0 0 9 1m5.65 13.65L18 18M5 9h8`,ratio:`M2 10h16M8 1l4 6m0-6L8 7m0 6 2 3m2-3-4 6`,settings:`M8 7a1 1 0 0 0 0 10A1 1 0 0 0 8 7m0-1v1m-6 5h1m10 0h1m-6 5v1M3.6 7.6l.8.8m-.8 8 .8-.9m8-7.9-.9.8m.1 7.1.8.9M8 11a1 1 0 0 0 0 2 1 1 0 0 0 0-2m8-9a1 1 0 0 0 0 4 1 1 0 0 0 0-4m-3 2h1m2 2v1m2-3h1m-3-3v1`,trendUp:`M6 3v4M4 5h4m3 2 5-4m-4-1a1 1 0 0 0 0 2 1 1 0 0 0 0-2m3 4a1 1 0 0 0 0 2 1 1 0 0 0 0-2m-5 12v-8m-3 3 3-3 3 3`,trendDown:`M4 5h4m3 2 5-4m-4-1a1 1 0 0 0 0 2 1 1 0 0 0 0-2m3 4a1 1 0 0 0 0 2 1 1 0 0 0 0-2m-5 12v-8m-3 5 3 3 3-3`,chartHistoryPlot:`M4 4a1 1 0 0 0 2 0 1 1 0 0 0-2 0m8-2a1 1 0 0 0 0 2 1 1 0 0 0 0-2m5 5a1 1 0 0 0 0 2 1 1 0 0 0 0-2m-5 7a1 1 0 0 0 0 2 1 1 0 0 0 0-2m-7-2a1 1 0 0 0 0 2 1 1 0 0 0 0-2m1-8 5-1m1.84.582 3.427 3.683m.358 1.688-3.862 5.344m-1.764.435-5.012-1.406M1 1v18h18`};function w(e,{stroke:t,strokeWidth:n}){let r=`stroke="${t}" stroke-width="${n}"`,i=`fill="${t}"`,a=`stroke="${t}"`,o=`${g} ${r} ${p}`,s=`${g} ${r} ${m}`,c=`${i} ${_}`,l=c,u=b(.3),d=b(.4),f=b(.5),v=b(.6),y=S[e];if(y)return`<path d="${y}" ${o}/>`;let w=C[e];return w?`<path d="${w}" ${s}/>`:{selectMultipleActive:`<path d="M4 2v15l4-4 3 6 3-1.5-3-5.5 5-1z" ${c}/><path d="M14 2l4 4m0-4-4 4" ${o}/>`,selectMultiple:`<path d="M3 2h2m2 0h2m2 0h2m2 0h2M2 3v2m0 2v2m0 2v2m0 2v2M3 18h2m2 0h2M18 3v2m0 2v2" ${o}/><rect x="5" y="5" width="4" height="4" ${o}/><rect x="7" y="12" width="3" height="3" ${o}/><path d="M13 10v9l2-3 2 3 2-1-2-3 3-1z" ${c}/>`,group:`<path d="M2 6v6H12V2H6M18 14V8H8V18h6" ${o}/>${[[1,1],[1,17],[17,1],[17,17]].map(([e,t])=>`<rect x="${e-.5}" y="${t-.5}" width="3" height="3" ${c}/>`).join(``)}`,ungroup:`<path d="M9 10v7m1 1h7m1-1V10M17 9H10M2 3v7M3 2h7M3 11H6m5-8V6" ${o}/>${[[1,1],[1,10],[17,8],[17,17],[8,8],[8,17],[10,1]].map(([e,t])=>`<rect x="${e-.75}" y="${t-.75}" width="3.5" height="3.5" ${c}/>`).join(``)}`,annotator:`<path ${o} d="m1 19 2-7c0 2 0 3 2 3 0 2 2 2 3 2zm2-7L14 1c1-1 2 0 2 0l3 3c1 1 0 2 0 2L8 17m-3-2L15 5M1.667 16.667l1.666 1.666m9.168-15.832L17.5 7.5" /><path d="M15 5 5 15c0 2 2 2 3 2l9.5-9.5z" ${c} ${u}/>`,annotatorDisabled:`<path ${o} d="m1 19 2-7c0 2 0 3 2 3 0 2 2 2 3 2zm2-7L14 1c1-1 2 0 2 0l3 3c1 1 0 2 0 2L8 17m-3-2L15 5M1.667 16.667l1.666 1.666m9.168-15.832L17.5 7.5M2 2l16 16" /><path d="M15 5 5 15c0 2 2 2 3 2l9.5-9.5z" ${c} ${u}/>`,chart3dBar:`<path ${g} ${r} d="M10 1 6 3v14l4 2 4-2V3zM6 3l4 2 4-2m-4 2v14" ${p}/><path ${c} ${u} d="m6 10 4 2 4-2v7l-4 2-4-2z"/>`,chartDonut:`<path ${s} d="M1 10a1 1 0 0 0 18 0 1 1 0 0 0-18 0m5 0a1 1 0 0 0 8 0 1 1 0 0 0-8 0m-5 0h5m4 4v5m4-9" /><path ${_} ${i} ${m} d="M1 10h5c0 2 2 4 4 4v5c-4 0-9-3-9-9" ${u} />`,chartNestedDonuts:`<path ${s} d="M1 10a1 1 0 0 0 18 0 1 1 0 0 0-18 0m3 0a1 1 0 0 0 12 0 1 1 0 0 0-12 0m-3 0h3"/><path ${g} ${a} stroke-width="${n/2}" ${m} d="M10 16v3m-3-9a1 1 0 0 0 6 0 1 1 0 0 0-6 0"/><path ${u} ${i} ${m} d="M7 10h3v3c-2 0-3-2-3-3"/><path ${u} ${i} ${m} d="M1 10h3c0 4 3 6 6 6v3c-5 0-9-4-9-9"/>`,chartGauge:`<path ${s} d="M19 13a1 1 0 0 0-18 0" ${u} /><path ${s} d="M9 15a1 1 0 0 0 2 0 1 1 0 0 0-2 0m1-1V8m0-4c-4 0-9 3-9 9" />`,chartHeatmap:`<path ${s} d="M2 3v14c0 1 0 1 1 1h14c1 0 1 0 1-1V3c0-1 0-1-1-1H3C2 2 2 2 2 3m8-1v16m-8-8h16M6 2v16m8-16v16M2 6h16M2 14h16"/><rect ${c} x="2" y="6" height="4" width="4" ${f} /><rect ${c} x="6" y="10" height="4" width="4" ${f} /><rect ${c} x="6" y="14" height="4" width="4" ${f} /><rect ${c} x="14" y="2" height="4" width="4" ${f} />`,chartMoodRadar:`<path ${o} d="M10 4 4 9l2 7h8l2-7zM9 2a1 1 0 0 0 2 0 1 1 0 0 0-2 0M1 8a1 1 0 0 0 2 0 1 1 0 0 0-2 0m2 10a1 1 0 0 0 2-1 1 1 0 0 0-2 1m12 0a1 1 0 0 0 2-1 1 1 0 0 0-2 1m2-10a1 1 0 0 0 2 0 1 1 0 0 0-2 0" /><path ${_} ${i} ${p} d="m10 7 3 3v4l-5-1-1-4z" ${u} />`,chartOnion:`<path ${o} d="M10 1c5 0 9 4 9 9s-4 9-9 9c-4 0-9-4-9-9m9-6c3 0 6 2 6 6s-3 6-6 6-6-2-6-6m6-3c1 0 3 1 3 3s-2 3-3 3-3-1-3-3" ${u} /><path ${o} d="M10 1c5 0 9 4 9 9s-4 9-9 9m0-15c3 0 6 2 6 6s-3 6-6 6-6-2-6-6m6-3c1 0 3 1 3 3" />`,chartQuadrant:`<path ${s} d="M10 1v18m-9-9h18" /><circle ${c} cx="3" cy="14" r="1"/><circle ${c} cx="5" cy="6" r="1"/><circle ${c} cx="14" cy="17" r="1"/><circle ${c} cx="17" cy="14" r="1"/><circle ${c} cx="15" cy="4" r="1"/>`,chartRadar:`<path ${s} d="M2 6v8l8 5 8-5V6l-8-5z" /><path ${u} ${c} stroke-width="0" ${m} d="m4 7 6-2 8 1-6 5-2 5-4-5z" /><path ${a} stroke-width="${n/3}" ${p} ${g} d="m4 7 6-2 8 1-6 5-2 5-4-5z" />`,chartScatter:`<path ${s} d="M1 1v17c0 1 0 1 1 1h17" /><circle ${c} cx="5" cy="15" r="1"/><circle ${c} cx="6" cy="12" r="1" /><circle ${c} cx="8" cy="15" r="1"/><circle ${c} cx="10" cy="8" r="1"/><circle ${c} cx="12" cy="10" r="1"/><circle ${c} cx="14" cy="6" r="1"/><circle ${c} cx="16" cy="4" r="1"/><circle ${c} cx="11" cy="14" r="1"/>`,chartSparkStackbar:`<path ${c} d="M12 8h5c2 0 2 4 0 4h-5c2 0 2-4 0-4" ${u} /><path ${c} d="M3 8h4c2 0 2 4 0 4H3c-2 0-2-4 0-4" /><path ${c} d="M7 8h5c2 0 2 4 0 4H7c2 0 2-4 0-4" ${f} /><path ${g} ${a} stroke-width="${n/3}" ${m} d="M3 8h14c2 0 2 4 0 4H3c-2 0-2-4 0-4" />`,chartThermometer:`<path ${s} d="M13 4a1 1 0 0 0-6 0v12a1 1 0 0 0 6 0zM7 15h1m-1-3h1M7 9h1M7 6h1m4 9h1m-1-3h1m-1-3h1m-1-3h1" /><path ${r} ${v} d="M10 17v-5" ${m} /><path ${m} ${r} d="M10 17V9" ${u} /><path ${m} ${r} opacity="0.3" d="M10 17V6" /><path ${m} ${r} ${b(.1)} d="M10 17V3" />`,chartTiremarks:`<path ${s} d="M1 8v4m2-4v4m2-4v4m2-4v4m2-4v4m2-4v4m2-4v4" /><path ${s} d="M1 8v4m2-4v4m2-4v4m2-4v4m2-4v4m2-4v4m2-4v4m2-4v4m2-4v4m2-4v4" ${d} />`,chartWheel:`<circle cx="10" cy="10" r="7" ${g} ${r} stroke-dasharray="16" ${m}/><circle cx="10" cy="10" r="9" ${g} ${r} stroke-dasharray="2" ${m} ${b(.7)}/><circle cx="10" cy="10" r="1" ${i} />`,close:`<path ${g} stroke-width="${n}" ${g} ${a} ${m} d="m4 4 12 12M4 16 16 4" />`,digit0:`<path ${u} ${l} d="m7 10 1-1h4l1 1-1 1H8z"/><path ${l} d="M8 1 7 2l1 1h4l1-1-1-1zM7 18l1-1h4l1 1-1 1H8zM6 3l1 1v4L6 9 5 8V4zm0 8 1 1v4l-1 1-1-1v-4zm8-8-1 1v4l1 1 1-1V4zm0 8 1 1v4l-1 1-1-1v-4z" />`,digit1:`<path ${u} ${l} d="M8 1 7 2l1 1h4l1-1-1-1zM7 18l1-1h4l1 1-1 1H8zm-1-7 1 1v4l-1 1-1-1v-4zm0-8 1 1v4L6 9 5 8V4zm1 7 1-1h4l1 1-1 1H8z"/><path ${l} d="m14 3-1 1v4l1 1 1-1V4zm0 8 1 1v4l-1 1-1-1v-4z" />`,digit2:`<path ${u} ${l} d="m14 11 1 1v4l-1 1-1-1v-4zM6 3l1 1v4L6 9 5 8V4z"/><path ${l} d="M8 1 7 2l1 1h4l1-1-1-1zm6 2-1 1v4l1 1 1-1V4zM7 18l1-1h4l1 1-1 1H8zm-1-7 1 1v4l-1 1-1-1v-4zm1-1 1-1h4l1 1-1 1H8z" />`,digit3:`<path ${u} ${l} d="m6 11 1 1v4l-1 1-1-1v-4zm0-8 1 1v4L6 9 5 8V4z"/><path ${l} d="M8 1 7 2l1 1h4l1-1-1-1zm6 2-1 1v4l1 1 1-1V4zm0 8 1 1v4l-1 1-1-1v-4zm-7 7 1-1h4l1 1-1 1H8zm0-8 1-1h4l1 1-1 1H8z" />`,digit4:`<path ${u} ${l} d="M8 1 7 2l1 1h4l1-1-1-1zM7 18l1-1h4l1 1-1 1H8zm-1-7 1 1v4l-1 1-1-1v-4z"/><path ${l} d="m14 3-1 1v4l1 1 1-1V4zm0 8 1 1v4l-1 1-1-1v-4zM6 3l1 1v4L6 9 5 8V4zm1 7 1-1h4l1 1-1 1H8z" />`,digit5:`<path ${u} ${l} d="m14 3-1 1v4l1 1 1-1V4zm-8 8 1 1v4l-1 1-1-1v-4z"/><path ${l} d="M8 1 7 2l1 1h4l1-1-1-1zm6 10 1 1v4l-1 1-1-1v-4zm-7 7 1-1h4l1 1-1 1H8zM6 3l1 1v4L6 9 5 8V4zm1 7 1-1h4l1 1-1 1H8z" />`,digit6:`<path ${u} ${l} d="m14 3-1 1v4l1 1 1-1V4z"/><path ${l} d="M8 1 7 2l1 1h4l1-1-1-1zm6 10 1 1v4l-1 1-1-1v-4zm-7 7 1-1h4l1 1-1 1H8zm-1-7 1 1v4l-1 1-1-1v-4zm0-8 1 1v4L6 9 5 8V4zm1 7 1-1h4l1 1-1 1H8z" />`,digit7:`<path ${u} ${l} d="m7 18 1-1h4l1 1-1 1H8zm-1-7 1 1v4l-1 1-1-1v-4zm0-8 1 1v4L6 9 5 8V4zm1 7 1-1h4l1 1-1 1H8z"/><path ${l} d="M8 1 7 2l1 1h4l1-1-1-1zm6 2-1 1v4l1 1 1-1V4zm0 8 1 1v4l-1 1-1-1v-4z" />`,digit8:`<path ${l} d="M8 1 7 2l1 1h4l1-1-1-1zm-1 9 1-1h4l1 1-1 1H8zm0 8 1-1h4l1 1-1 1H8zM6 3l1 1v4L6 9 5 8V4zm0 8 1 1v4l-1 1-1-1v-4zm8-8-1 1v4l1 1 1-1V4zm0 8 1 1v4l-1 1-1-1v-4z" />`,digit9:`<path ${u} ${l} d="m6 11 1 1v4l-1 1-1-1v-4z"/><path ${l} d="M8 1 7 2l1 1h4l1-1-1-1zm6 2-1 1v4l1 1 1-1V4zm0 8 1 1v4l-1 1-1-1v-4zm-7 7 1-1h4l1 1-1 1H8zM6 3l1 1v4L6 9 5 8V4zm1 7 1-1h4l1 1-1 1H8z" />`,excel:`<path stroke-width="${n}" ${g} ${a} ${h} d="M4 1Q1 1 1 4v12q0 3 3 3h12q3 0 3-3V6c-4 0-5-1-5-5Zm10 7c1 0 2 1 2 2v4c0 1-1 2-2 2H6c-1 0-2-1-2-2v-4c0-1 1-2 2-2Z"/><line ${r} x1="9" x2="9" y1="8" y2="16" /><line ${r} x1="4" x2="16" y1="12" y2="12" />`,image:`<path stroke-width="${n}" ${g} ${a} ${m} d="M4 1Q1 1 1 4v12q0 3 3 3h12q3 0 3-3V6c-4 0-5-1-5-5ZM1 16c2.333-2.333 2-6 7-4m-1 2c1-1 2-9 12-3"/><circle r="1" cx="6" cy="5" ${c}/>`,menu:`<path stroke-width="${n}" ${g} ${a} ${m} d="M2 10h16M2 5h16M2 15h16" />`,pdf:`<path stroke-width="${n}" ${g} ${a} ${p} d="M4 1Q1 1 1 4v12q0 3 3 3h12q3 0 3-3V6c-4 0-5-1-5-5Zm0 15V9h1q2 0 2 2t-2 2H4m5 3V9q3 0 3 3v1q0 3-3 3m5 0V9h2m-2 3h2"/>`,skeleton:`<path ${s} d="M3 14a1 1 0 0 0 0 4h4a1 1 0 0 0 0-4zm0-6a1 1 0 0 0 0 4h4a1 1 0 0 0 0-4zm0-6a1 1 0 0 0 0 4h1a1 1 0 0 0 0-4zm9 8v6c0 1 1 2 2 2h3c1 0 2-1 2-2v-6c0-1-1-2-2-2h-3c-1 0-2 1-2 2" stroke-dasharray="2" />`,sort:`<path stroke-width="${n}" ${g} ${a} ${m} d="m1 15 4 3 4-3M5 5v13m10-3V2m-4 3 4-3 4 3" />`,sortReverse:`<path stroke-width="${n}" ${g} ${a} ${m} d="m1 8 4-3 4 3M5 5v13m10-3V2m-4 10 4 3 4-3" />`,spin:`<path stroke-width="${n}" ${g} ${a} ${m} d="M1 10a1 1 0 0 0 18 0 1 1 0 0 0-15 0 1 1 0 0 0 12 0 1 1 0 0 0-9 0 1 1 0 0 0 6 0 1 1 0 0 0-3 0m-9 0q0-5 4-8" />`,starFill:`<path ${i} ${r} ${p} d="m1.333 8.226 5.976-.895L9.96 1.9l2.7 5.406 5.983.843-4.308 4.237 1.047 5.951-5.36-2.788-5.337 2.836.995-5.96-4.345-4.201" />`,tableClose:`<path stroke-width="${n}" ${m} ${g} ${a} d="M4 1Q1 1 1 4v12q0 3 3 3h3M4 1h12q3 0 3 3v10m-1 5-4-3-4 3"/><line stroke-width="${n}" ${a} x1="8" y1="1" x2="8" y2="19" ${m} /><line stroke-width="${n}" ${a} x1="1" y1="8" x2="19" y2="8" />`,tableOpen:`<path stroke-width="${n}" ${g} ${m} ${a} d="M4 1Q1 1 1 4v12q0 3 3 3h3M4 1h12q3 0 3 3v10m-1 2-4 3-4-3"/><line stroke-width="${n}" ${a} x1="8" y1="1" x2="8" y2="19" ${m} /><line stroke-width="${n}" ${m} ${a} x1="1" y1="8" x2="19" y2="8" />`,chartCluster:`<path ${g} ${r} d="M7 10a1 1 0 0 0 6 0 1 1 0 0 0-6 0m3-3V4a1 1 0 0 0 0-3 1 1 0 0 0 0 3m-3 6H4a1 1 0 0 0-3 0 1 1 0 0 0 3 0m6 3v3a1 1 0 0 0 0 3 1 1 0 0 0 0-3m3-6h3a1 1 0 0 0 3 0 1 1 0 0 0-3 0" />`,arrowRight:`<path ${l} d="M18 10 3 1q4.5 9 0 18z" ${h} />`,arrowTop:`<path ${l} d="M10 2 1 17q9-4.5 18 0z" ${h} />`,arrowLeft:`<path ${l} d="m2 10 15-9q-4.5 9 0 18z" ${h} />`,arrowBottom:`<path ${l} d="M10 18 1 3q9 4.5 18 0z" ${h} />`,chartSparkbar:`<path ${g} ${r} ${m} d="M2 5h16M2 10h16M2 15h16" ${u} /><path ${g} ${r} ${m} d="M2 5h13M2 10h9m-9 5h5" />`,vueDataUi:`<path ${o} d="m1 2 9 17M1 2h3l6 11h3m-3 6 3-6"/><path ${o} d="m10 13 4.974-9.549L19 13h-3l-1.266-3.447L13 13z"/>`,triangleFill:`<path ${a} ${i} stroke-width="${n}" ${p} d="M10 3 1 17h18z"/>`,squareFill:`<path ${i} ${r}${p} d="M2 2v16h16V2z"/>`,diamondFill:`<path ${i} ${r} ${p} d="m10 1-9 9 9 9 9-9z"/>`,pentagonFill:`<path ${i} ${r} ${p} d="M10 1 1 9l4 10h11l3-10Z"/>`,hexagonFill:`<path ${i} ${r} ${p} d="M10 1 2 6v8l8 5 8-5V6Z"/>`,circleFill:`<path ${r} ${i} ${p} d="M10 1a1 1 0 0 0 0 18 1 1 0 0 0 0-18"/>`,numbers:`<path ${g} ${a} stroke-width="${n/2}" ${g} ${p} d="m2 3 2-2v5m4-3c0-1 1-2 2-2s2 1 2 2c0 2-4 0-4 3h4m3-5h3l-2 2c1 0 2 0 2 1 0 2-2 2-3 2M4 13V8l-2 3h4m6-3H8c0 3 4 1 4 3 0 1-1 2-2 2s-2-1-2-2m10 0a1 1 0 0 0-3 1 1 1 0 0 0 3-1m-3 0c0-3 2-3 3-3M2 15h4c-1 3-4 2-4 5m6-4c0-1 1-1 1-1h2c1 0 1 1 1 1s0 1-1 1H9s-1 0-1-1m1 1s-1 0-1 1v1c0 1 1 1 1 1h2c1 0 1-1 1-1v-1s0-1-1-1m7 0a1 1 0 0 0-3-1 1 1 0 0 0 3 1m0 0c0 3-2 3-3 3"/>`,people:`<path ${o} d="M6 1C4 1 4 5 6 5s2-4 0-4m0 5c-4 0-1 4 0 4m0-4c4 0 1 4 0 4m-2 0 1 9m3-9-1 9m-3 0h4M4 5c-2 1-3 5-3 7M14 1c-2 0-2 4 0 4s2-4 0-4m0 5c-4 0-1 4 0 4s4-4 0-4m-2 4 1 9m3-9-1 9m-3 0h4m0-14c2 1 3 5 3 7M8 5c2 3 2 5 2 7 0-2 0-4 2-7"/>`,accordion:`<path ${o} d="M2 2h16l-2 2 2 2-2 2 2 2-2 2 2 2-2 2 2 2H2l2-2-2-2 2-2-2-2 2-2-2-2 2-2z"/><path ${c} ${u} ${p} d="M2 2h16l-2 2H4Z" /><path ${c} ${u} ${p} d="M2 6h16l-2 2H4Z" /><path ${c} ${u} ${p} d="M2 10h16l-2 2H4Z" /><path ${c} ${u} ${p} d="M2 14h16l-2 2H4Z" />`,trend:`<path ${s} stroke-kinejoin="round" d="m1 6 3-2 3 2M4 4v9m3 3s0 2 2 2c3 0 1-9 3-9s2 4 3 4c3 1 2.667-7.333 4-11"/>`,chartStripPlot:`<path ${r} ${g} d="M4 16a1 1 0 0 0 0 2 1 1 0 0 0 0-2m0-3a1 1 0 0 0 0 2 1 1 0 0 0 0-2m0-4a1 1 0 0 0 0 2 1 1 0 0 0 0-2m4 2a1 1 0 0 0 0 2 1 1 0 0 0 0-2m0-3a1 1 0 0 0 0 2 1 1 0 0 0 0-2M4 2a1 1 0 0 0 0 2 1 1 0 0 0 0-2m8 13a1 1 0 0 0 0 2 1 1 0 0 0 0-2m0-5a1 1 0 0 0 0 2 1 1 0 0 0 0-2m0-3a1 1 0 0 0 0 2 1 1 0 0 0 0-2M8 5a1 1 0 0 0 0 2 1 1 0 0 0 0-2m8 7a1 1 0 0 0 0 2 1 1 0 0 0 0-2m0-2a1 1 0 0 0 0 2 1 1 0 0 0 0-2m0 6a1 1 0 0 0 0 2 1 1 0 0 0 0-2" />`,chartDumbbell:`<path ${r} ${m} d="M3 2a1 1 0 0 0 0 2 1 1 0 0 0 0-2m7 0a1 1 0 0 0 0 2 1 1 0 0 0 0-2M4 3h5M5 9a1 1 0 0 0 0 2 1 1 0 0 0 0-2m12 0a1 1 0 0 0 0 2 1 1 0 0 0 0-2M6 10h10m-8 6a1 1 0 0 0 0 2 1 1 0 0 0 0-2m7 0a1 1 0 0 0 0 2 1 1 0 0 0 0-2m-6 1h5" />`,chartWordCloud:`<text x="10" y="10" ${i} text-anchor="middle" font-size="4.5" font-family="Arial" dominant-baseline="middle">WORDS</text><text x="5.5" y="6" ${i} text-anchor="middle" font-size="2.5" font-family="Arial" dominant-baseline="middle">WORDS</text><text x="15" y="6" ${i} text-anchor="middle" font-size="2" font-family="Arial" dominant-baseline="middle">WORDS</text><text x="5" y="13.5" ${i} text-anchor="middle" font-size="2" font-family="Arial" dominant-baseline="middle">WORDS</text><text x="14.5" y="14.4" ${i} text-anchor="middle" font-size="2.5" font-family="Arial" dominant-baseline="middle">WORDS</text><text x="10" y="3" ${i} text-anchor="middle" font-size="1.8" font-family="Arial" dominant-baseline="middle">WORDS</text><text x="10" y="17.5" ${i} text-anchor="middle" font-size="2" font-family="Arial" dominant-baseline="middle">WORDS</text>`,chartWordCloudZh:`<text x="10" y="10" ${i} text-anchor="middle" font-size="6" font-family="Arial" dominant-baseline="middle">词语</text><text x="5" y="5" ${i} text-anchor="middle" font-size="3" font-family="Arial" dominant-baseline="middle">词语</text><text x="15" y="5" ${i} text-anchor="middle" font-size="3" font-family="Arial" dominant-baseline="middle">词语</text><text x="10" y="5" ${i} text-anchor="middle" font-size="1.5" font-family="Arial" dominant-baseline="middle">词语</text><text x="10" y="2" ${i} text-anchor="middle" font-size="1.5" font-family="Arial" dominant-baseline="middle">词语</text><text x="2" y="8" ${i} text-anchor="middle" font-size="1.5" font-family="Arial" dominant-baseline="middle">词语</text><text x="2" y="11.5" ${i} text-anchor="middle" font-size="1.5" font-family="Arial" dominant-baseline="middle">词语</text><text x="18" y="8" ${i} text-anchor="middle" font-size="1.5" font-family="Arial" dominant-baseline="middle">词语</text><text x="18" y="11.5" ${i} text-anchor="middle" font-size="1.5" font-family="Arial" dominant-baseline="middle">词语</text><text x="5" y="14.5" ${i} text-anchor="middle" font-size="3" font-family="Arial" dominant-baseline="middle">词语</text><text x="15" y="14.5" ${i} text-anchor="middle" font-size="3" font-family="Arial" dominant-baseline="middle">词语</text><text x="10" y="14.5" ${i} text-anchor="middle" font-size="1.5" font-family="Arial" dominant-baseline="middle">词语</text><text x="10" y="18" ${i} text-anchor="middle" font-size="1.5" font-family="Arial" dominant-baseline="middle">词语</text>`,chartFlow:`<path stroke="transparent" stroke-width="${n}" ${p} ${i} d="M2 2h2v7H2zm7 0h2v4H9zm7 0h2v2h-2zM2 11h2v7H2zm7-3h2v3H9zm0 6h2v2H9zm7-8h2v2h-2zm0 4h2v2h-2zm0 4h2v2h-2zM4 2h5v4H4zm0 4 5 2v3L4 9zm7-4h5v2h-5zm0 2 5 2v2l-5-2zm-7 7 5 3v2l-5-3zm7-3 5 2v2l-5-2zm0 6h5v2h-5z"/>`,pause:`<path ${c} strole-linecap="round" ${h} d="M3 4v12c0 1 1 2 2 2h1c1 0 2-1 2-2V4c0-1-1-2-2-2H5C4 2 3 3 3 4m9 0v12c0 1 1 2 2 2h1c1 0 2-1 2-2V4c0-1-1-2-2-2h-1c-1 0-2 1-2 2"/>`,play:`<path ${i} stroke-width="${n}" ${p} ${g} d="M3 4v12c0 1 1 2 2 2h1c1 0 12-5 12-7v-1C18 8 7 2 6 2H5C4 2 3 3 3 4"/>`,stop:`<path ${i} stroke-width="${n}" ${p} ${g} d="M10 8 4 2H3L2 3v1l6 6-6 6v1l1 1h1l6-6 6 6h1l1-1v-1l-6-6 6-6V3l-1-1h-1z"/>`,battery:`<path ${o} d="M2 6v8c0 2 1 2 2 2h11c1 0 2 0 2-2v-1s1 0 1-1V8c0-1-1-1-1-1V6c0-2-1-2-2-2H4C3 4 2 4 2 6"/><path ${i} ${v} ${_} d="M4 7v6c0 1 1 1 1 1h6V6H5S4 6 4 7"/>`,chartStackbar:`<path ${o} d="M8 18h4V8c0-1-1-1-1-1H9S8 7 8 8zm-6 0h4v-6c0-1-1-1-1-1H3s-1 0-1 1zm12 0h4V3c0-1-1-1-1-1h-2s-1 0-1 1zM2 14h4m2-3h4m2-4h4m-4 5"/><path ${_} ${u} ${i} d="M2 14h4v4H2z" /><path ${_} ${u} ${i} d="M8 11h4v7H8z" /><path ${_} ${u} ${i} d="M14 7h4v11h-4z" />`,starFace:`<path ${a} stroke-width="${n} ${p} ${g} d="m1.333 8.226 5.976-.895L9.96 1.9l2.7 5.406 5.983.843-4.308 4.237 1.047 5.951-5.36-2.788-5.337 2.836.995-5.96ZM6.989 10c.631-1.099 1.649-.753 1.975.02m2.035 0c.672-1.078 1.608-.732 2.016.021m-5.516 1.982c1.233 2.928 4.602 1.849 4.998-.023" />`,chartBullet:`<path ${o} d="M1 7v6h18V7z"/><path ${i} d="M1 9h11v2H1Z" ${_} ${m}/><path ${i} d="M15 5v10h1V5Z" ${_} ${m}/>`,palette:`<path ${s} d="M10 2a1 1 0 0 0 0 16s4 0 4-2c0-3-2-2-3-3-1-3 3-2 4-2 5 0 4-9-5-9"/><path ${c} d="M6 6a1 1 0 0 0 2 2 1 1 0 0 0-2-2" ${b(.7)}/><path ${c} ${f} d="M6 11a1 1 0 0 0 2 2 1 1 0 0 0-2-2"/><path ${c} d="M11 5a1 1 0 0 0 2 2 1 1 0 0 0-2-2"/>`,colorPicker:`<path d="M2 16c0 1 1 2 2 2s2-2 5-2l7-8-4-4-8 7m0 0c0 3-2 4-2 5m14-8c1 1 3-1 2-2l-4-4c-1-1-3 1-2 2m6 2c3-3-1-7-4-4" ${o}/><path d="M2 16c0 1 1 2 2 2s2-2 5-2l4.347-5.011H4.022L4 11m0 0c0 3-2 4-2 5" ${p} ${i} ${d}/>`,boxes:`<path ${s} d="M10 11 6 9l-4 2v5l4 2 4-2zm0 0 4-2 4 2v5l-4 2-4-2M6 9V4l4-2 4 2v5M6 4l4 2 4-2M2 11l4 2 4-2m0 0 4 2 4-2m-8-5v5m-4 2v5m8-5v5"/><path ${c} ${f} d="m6 4 4 2v5L6 9z"/><path ${c} ${f} d="m2 11 4 2v5l-4-2z"/><path ${c} ${f} d="m10 11 4 2v5l-4-2z"/>`,homeFilled:`<path ${i} ${r} ${p} d="m2 10 8-8 8 8M4 10v7c0 1 0 1 1 1h3v-6h4v6h3c1 0 1 0 1-1v-7m-8 8"/>`,hourglass:`<path ${o} d="M4 1h12m-3 0c3 2 1 4 1 4M7 1C4 3 6 5 6 5M4 19h12M6 5c4 5 4 5 0 10m8-10c-4 5-4 5 0 10m-1 4c3-2 1-4 1-4m-7 4c-3-2-1-4-1-4"/><path ${u} ${c} d="M7 18h6c1-3-2-5-3-5s-4 2-3 5"/>`,text:`<path d="M1 3V1h12v3c0 1-2 1-2 0V3H8v14h1c1 0 1 2 0 2H5c-1 0-1-2 0-2h1V3H3v1c0 1-2 1-2 0zm10 5h8" ${p} ${i}/><path d="M14 8h5m-8 3h8m-8 3h8" ${o}/>`,bringToFront:`<path ${i} d="M7 6h6s1 0 1 1v6s0 1-1 1H7s-1 0-1-1V7s0-1 1-1"/><path ${o} d="M8 4V3s0-1-1-1H3C2 2 2 3 2 3v4c0 1 1 1 1 1h1m8 8v1c0 1 1 1 1 1h4s1 0 1-1v-4s0-1-1-1h-1"/>`,bringToBack:`<path ${i} d="M7 13v-3h1c2 0 2-1 2-2V7h3v3h-1c-1 0-2 0-2 2v1z"/><path ${g} ${a} ${p} d="M9 8V3s0-1-1-1H3C2 2 2 3 2 3v5c0 1 1 1 1 1h5c1 0 1-1 1-1m2 4v5c0 1 1 1 1 1h5s1 0 1-1v-5s0-1-1-1h-5c-1 0-1 1-1 1"/>`,chartStackline:`<path d="M2 16v2h16v-8l-4 4-3-2-3 3-3-2Z" ${c} ${b(.9)}/><path d="m2 16 3-3 3 2 3-3 3 2 4-4V6l-4 2-3-2-3 3-3-1-3 1Z" ${c}" ${v}/><path d="M2 9V2h16v4l-4 2-3-2-3 3-3-1Z" ${c} ${u}/><path d="M1 1v18h18" ${a} ${p} ${g}/>`,pie:`<path d="M10 1a1 1 0 0 0 0 18 1 1 0 0 0 0-18v9l4.025 8.049M10 10H1m9 0 4 8" ${o}/><path d="m10 10 4 8c-3.413 2.069-12.365 1.271-13-8z" ${c} ${u}/><path d="M10 1c-7.472.391-9.069 6.876-9 9h9z" ${c} ${f}/>`,network:`<path d="M7 15h6c1 0 1 1 1 1v2s0 1-1 1H7c-1 0-1-1-1-1v-2s0-1 1-1m-6 2h5m8 0h5m-9-2v-3m-6 0h12c1 0 1-1 1-1V9s0-1-1-1H4S3 8 3 9v2s0 1 1 1m0-6h12c1 0 1-1 1-1V3c0-1-1-1-1-1H4S3 2 3 3v2s0 1 1 1m6 0v2" ${o}/><path d="M6 4h1m2 0h5m-8 6h1m2 0h5" ${a} stroke-width="${n/2}" ${g} ${p}/>`,chipAi:`<path d="M5 3h10c1 0 2 1 2 2v10c0 1-1 2-2 2H5c-1 0-2-1-2-2V5c0-1 1-2 2-2m5-2v2M7 1v2m6-2v2M1 10h2M1 7h2m-2 6h2m7 4v2m-3-2v2m6-2v2m4-9h2m-2-3h2m-2 6h2" ${o}/><path d="M10 6c-1 3-1 3-4 4 3 1 3 1 4 4 1-3 1-3 4-4-3-1-3-1-4-4" ${c} />`,binary:`<path d="M4 1C2 1 2 4 4 4s2-3 0-3m4 0v3m4-3c-2 0-2 3 0 3s2-3 0-3m4 0v3M4 6v3m4-3C6 6 6 9 8 9s2-3 0-3m4 0v3m4-3c-2 0-2 3 0 3s2-3 0-3M4 11c-2 0-2 3 0 3s2-3 0-3m4 0v3m4-3v3m4-3v3M4 16v3m4-3c-2 0-2 3 0 3s2-3 0-3m4 0c-2 0-2 3 0 3s2-3 0-3m4 0v3" ${a} stroke-width="${n/2}" ${g} ${p}/>`,chipBinary:`<path d="M5 3h10c1 0 2 1 2 2v10c0 1-1 2-2 2H5c-1 0-2-1-2-2V5c0-1 1-2 2-2m5-2v2M7 1v2m6-2v2M1 10h2M1 7h2m-2 6h2m7 4v2m-3-2v2m6-2v2m4-9h2m-2-3h2m-2 6h2" ${o}/><path d="M6 6C4 6 4 9 6 9s2-3 0-3m4 0v3m4-3c-2 0-2 3 0 3s2-3 0-3m-8 5v3m4-3c-2 0-2 3 0 3s2-3 0-3m4 0v3" ${a} stroke-width="${n/3}" ${g} ${p}/>`,blur:x(t),sqlQuery:`<path d="M17 10V3C17 1 3 1 3 3v7m0-7c0 2 14 2 14 0" ${o}/><path d="M5.994 13.991C4.847 12.359 2.399 12.962 2 14c-.157 2.025 4.231.984 4 3-.857 1.638-3.696 1.047-4 0m8-4c-3 0-3 5 0 5s3-5 0-5m1 5 1 1m2-6v5h4" ${a} stroke-width="${n/1.5}" ${g} ${p}/><path d="M10 11V7M8 9l2-2 2 2" ${a} stroke-width="${n/1.5}" ${g} ${p}/>`,gisLayerQuery:`<path d="M5.994 13.991C4.847 12.359 2.399 12.962 2 14c-.157 2.025 4.231.984 4 3-.857 1.638-3.696 1.047-4 0m8-4c-3 0-3 5 0 5s3-5 0-5m1 5 1 1m2-6v5h4" ${a} stroke-width="${n/1.5}" ${g} ${p}/><path d="M10 11V7M8 9l2-2 2 2" ${a} stroke-width="${n/1.5}" ${g} ${p}/><path d="M10 1 2 3m0 0 8 2 8-2-8-2M2 6l4 1m12 2-2.482.619M14 7l4-1M2 9l2.493.629M2 6l6-1.5M18 6l-6-1.5M2 9l3-1m13 1-3-1" ${o}/>`,magnify:`<path d="M8 1a1 1 0 0 0 0 14A1 1 0 0 0 8 1m4.95 11.95L19 19" ${o}/><path d="M8 4a1 1 0 0 0 0 8 1 1 0 0 0 0-8" ${c} ${b(.1)} /><path d="M12 8a1 1 0 0 0-8 0" ${a} ${m} stroke-width="${n/3}" ${g} ${d} /><path d="M8 4c-.788-.017-2.544.345-3.456 2.003" ${a} ${m} stroke-width="${n/3}" ${g} />`,spark:`<path d="M10 1c-2 7-2 7-9 9 7 2 7 2 9 9 2-7 2-7 9-9-7-2-7-2-9-9" ${c}/>`,doubleSpark:`<path d="M1 13c5-1 5-1 6-6 1 5 1 5 6 6-5 1-5 1-6 6-1-5-1-5-6-6M15 1c-.514 3.478-.514 3.478-4 4 3.505.505 3.499.505 4 4 .513-3.489.513-3.495 4-4-3.474-.503-3.48-.51-4-4" ${c}/>`,listType:`<path d="M7 4h11M7 10h11M7 16h11" ${o}/><path d="M2 3h2v2H2z" ${i} ${a} stroke-width="${n/2}" stroke-linejoin="miter"/><path ${i} d="m3 9-1.2 2h2.4z" ${a} stroke-width="${n/2}" stroke-linejoin="miter"/><path d="M3 14.8a1 1 0 0 0 .002 2.4 1 1 0 0 0-.003-2.4" ${i} ${a} stroke-width="${n/2}"/>`,calendar:`<path d="M7 1v3m6-3v3M5 3H4C3 3 2 4 2 5v11c0 1 1 2 2 2h12c1 0 2-1 2-2V5c0-1-1-2-2-2h-1M9 3h2M2 7h16" ${o}/><path d="M4 10h2v1H4zm5 0h2v1H9zm5 0v1h2v-1zM4 14h2v1H4zm5 0h2v1H9z" ${a} stroke-width="${n/3}" ${i} ${p}/>`,test:`<path d="M4 19h12c2 0 2-2 2-2l-6-8V3c1 0 1-2 0-2H8C7 1 7 3 8 3v6l-6 8s0 2 2 2" ${o}/><path d="M5 14c3 2 6-2 10 0l2.141 2.847c.015.793-.071 1.157-1.141 1.153H4c-.75.014-1.171-.252-1.134-1.131z" ${c} ${p} ${d}/><path d="M5 14c3 2 6-2 10 0" ${a} ${m} stroke-width="${n/3}"/>`,pi:`<path d="M1 8c1-5 3-6 4-6h13c1 0 1 2 0 2h-3s-1 4-1 10c0 4 3 3 5 0-1 7-7 6-7 0 0-5 1-10 1-10H9C8 9 7 17 7 17c-1 3-4 2-4 0C7 13 7 4 7 4 4 4 3 5 1 8" ${p} ${i}/>`,fileSvg:`<path d="M18 10V7l-5-5m0 0v5h5m-5-5H2v8" ${o}/><text x="10" y="18.5" ${i} text-anchor="middle" font-size="9" font-family="Arial">SVG</text>`,filePdf:`<path d="M18 10V7l-5-5m0 0v5h5m-5-5H2v8" ${o}/><text x="10" y="18.5" ${i} text-anchor="middle" font-size="9" font-family="Arial">PDF</text>`,fileCsv:`<path d="M18 10V7l-5-5m0 0v5h5m-5-5H2v8" ${o}/><text x="10" y="18.5" ${i} text-anchor="middle" font-size="9" font-family="Arial">CSV</text>`,filePng:`<path d="M18 10V7l-5-5m0 0v5h5m-5-5H2v8" ${o}/><text x="10" y="18.5" ${i} text-anchor="middle" font-size="9" font-family="Arial">PNG</text>`,puzzleFill:`<path d="M16.579 9.304h-1.177V6.167c0-.871-.706-1.569-1.569-1.569h-3.137V3.421a1.96 1.96 0 0 0-1.96-1.96 1.96 1.96 0 0 0-1.962 1.96v1.177H3.638a1.57 1.57 0 0 0-1.569 1.569v2.98h1.177c1.175 0 2.116.941 2.116 2.117a2.11 2.11 0 0 1-2.116 2.118H2.069v2.98a1.57 1.57 0 0 0 1.569 1.569h2.98v-1.177c0-1.175.941-2.116 2.118-2.116 1.176 0 2.117.941 2.117 2.116v1.177h2.98a1.57 1.57 0 0 0 1.569-1.569v-3.136h1.177a1.96 1.96 0 0 0 1.96-1.962 1.96 1.96 0 0 0-1.96-1.96" ${p} ${i}/>`,npmx:`<path d="m17 2-6 16H9l6-16zM3 13v3h3v-3z" ${p} ${i}/>`}[e]||``}let T=l(),E=r(()=>(T.exp?.()||[])[0]||null),D=r(()=>(T.sub?.()||[])[0]||null),O=r(()=>!!E.value),k=r(()=>!!D.value),A=r(()=>O.value||k.value),j=r(()=>{let e=E.value?.props||{};return{name:e.name,stroke:e.stroke??n.stroke,strokeWidth:e[`stroke-width`]??e.strokeWidth??n.strokeWidth,size:typeof e.size==`number`?e.size:null,isSpin:!!e.isSpin||!!e[`is-spin`],spinDuration:e.spinDuration||e[`spin-duration`]||`1s`}}),M=r(()=>{let e=D.value?.props||{};return{name:e.name,stroke:e.stroke??n.stroke,strokeWidth:e[`stroke-width`]??e.strokeWidth??n.strokeWidth,size:typeof e.size==`number`?e.size:null,isSpin:!!e.isSpin||!!e[`is-spin`],spinDuration:e.spinDuration||e[`spin-duration`]||`1s`}});function N(e,t,n=`0.5s`){return`<animateTransform attributeName="transform" type="rotate" from="0 ${e} ${t}" to="360 ${e} ${t}" dur="${n}" repeatCount="indefinite"/>`}let P=r(()=>{let e=F.value;return{cx:e.minX+e.width/2,cy:e.minY+e.height/2}}),F=r(()=>{let e=String(n.viewBox).trim().split(/\s+/).map(Number),[t,r,i,a]=e.length===4?e:[0,0,20,20];return{minX:t,minY:r,width:i,height:a}}),I=r(()=>{let e=n.size||24;return(j.value.size||e*.6)/e}),L=r(()=>{let e=n.size||24;return(M.value.size||e*.6)/e}),R=r(()=>{let e=F.value,t=O.value?e.height*I.value:0,n=O.value?e.height*I.value:0,r=k.value?e.height*L.value:0,i=Math.max(n,r),a=k.value?e.height*L.value:0;return`${e.minX} ${e.minY-t} ${e.width+i} ${e.height+t+a}`}),z=r(()=>{let e=F.value,t=e.minX+e.width,n=e.minY,r=e.height,i=r*I.value,a=t,o=n,s=i/r;return`translate(${a} ${o}) translate(${-i/6} ${-i*.8}) scale(${s})`}),B=r(()=>{let e=F.value,t=e.minX+e.width,n=e.minY+e.height,r=e.height,i=r*L.value,a=t,o=n,s=i/r;return`translate(${a} ${o}) translate(${-i/6} ${i*-.2}) scale(${s})`}),V=r(()=>w(n.name,{stroke:n.stroke,strokeWidth:n.strokeWidth}));function H(e){return String(e).replace(/\sstroke(?:-(?:width|linecap|linejoin))?="[^"]*"/g,``)}let U=r(()=>{let e=w(n.name,{stroke:n.stroke,strokeWidth:n.strokeWidth}),t=``;if(O.value&&j.value.name){let e=H(w(j.value.name,{stroke:j.value.stroke,strokeWidth:j.value.strokeWidth})),{cx:n,cy:r}=P.value;t=`<g transform="${z.value}"><g stroke="${j.value.stroke}" stroke-width="${j.value.strokeWidth}" stroke-linecap="round" stroke-linejoin="round" fill="none">${j.value.isSpin?N(n,r,j.value.spinDuration):``}${e}</g></g>`}let r=``;if(k.value&&M.value.name){let e=H(w(M.value.name,{stroke:M.value.stroke,strokeWidth:M.value.strokeWidth})),{cx:t,cy:n}=P.value;r=`<g transform="${B.value}"><g stroke="${M.value.stroke}" stroke-width="${M.value.strokeWidth}" stroke-linecap="round" stroke-linejoin="round" fill="none">${M.value.isSpin?N(t,n,M.value.spinDuration):``}${e}</g></g>`}return`${e}${t}${r}`}),W=r(()=>A.value?O.value&&!k.value||k.value&&!O.value?n.size*1.6:n.size*2.2:n.size);return(n,r)=>A.value?(o(),i(`svg`,{key:0,xmlns:s(t),class:a({"spin ":e.isSpin}),viewBox:R.value,height:W.value,width:W.value,style:{background:`transparent`,display:`block`},innerHTML:U.value},null,10,d)):(o(),i(`svg`,{key:1,xmlns:s(t),class:a({"spin ":e.isSpin}),viewBox:u.value,height:e.size,width:e.size,innerHTML:V.value,style:{background:`transparent`}},null,10,f))}},[[`__scopeId`,`data-v-e26b4485`]]);export{u as n,v as t};
@@ -1 +0,0 @@
1
- import{r as e}from"./lib-rPeBMZrn.js";import{t}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as n}from"./BaseIcon-fYK0iID8.js";import{t as r}from"./vClickOutside-BxNzkY17.js";import{Fragment as i,Teleport as a,computed as o,createBlock as s,createCommentVNode as c,createElementBlock as l,createElementVNode as u,createVNode as d,guardReactiveProps as f,nextTick as p,normalizeProps as m,normalizeStyle as h,onBeforeUnmount as g,onMounted as _,openBlock as v,ref as y,renderList as b,renderSlot as x,unref as ee,useCssVars as te,watch as S,watchEffect as C,withDirectives as w,withKeys as T,withModifiers as E}from"vue";var D=[`aria-expanded`,`aria-label`],O=[`aria-label`,`aria-pressed`,`onClick`],k={style:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -46%)`}},A=[`value`],j=[`onClick`],ne={style:{position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -46%)`}},re=[`value`],M=/*#__PURE__*/ t({__name:`ColorPicker`,props:{value:{type:String,default:`#ffffff`},size:{type:String,default:`50px`},backgroundColor:{type:String,default:`#FFFFFF`},buttonBorderColor:{type:String,default:`#FFFFFF`},teleported:{type:Boolean,default:!1},isCursorPointer:{type:Boolean,default:!1},palette:{type:Array,default:()=>[`#000000`,`#FFFFFF`,`#FF5733`,`#33FF57`,`#3357FF`,`#FFC300`,`#800080`,`#FF1493`,`#00CED1`]}},emits:[`update:value`],setup(t,{emit:M}){te(e=>({c0c9407c:t.buttonBorderColor}));let N=t,P=M,F=y(null),I=y(null),L=y(null),R=y(!1),z=y(!1),B=y({top:0,left:0}),V=o(()=>({backgroundColor:N.value,width:`100%`,height:`100%`,cursor:N.isCursorPointer?`pointer`:`default`})),H=o(()=>e(N.value));function U(e){P(`update:value`,e),R.value=!1}function W(e){P(`update:value`,e.target.value)}function G(e){e?.stopPropagation?.(),z.value=!0,L.value?.click()}function K(){R.value=!1}function q(){!z.value&&R.value&&K()}async function J(){R.value=!R.value,R.value&&N.teleported&&(await p(),Y())}function Y(){if(!I.value)return;let e=I.value.getBoundingClientRect();B.value={top:e.top+36,left:e.right-48}}function X(){R.value&&N.teleported&&Y()}function Z(){setTimeout(()=>z.value=!1,0)}C(e=>{let t=L.value;if(!t)return;let n=()=>Z(),r=()=>Z(),i=()=>{};t.addEventListener(`blur`,n),t.addEventListener(`change`,r),t.addEventListener(`input`,i),e(()=>{t.removeEventListener(`blur`,n),t.removeEventListener(`change`,r),t.removeEventListener(`input`,i)})});function Q(){Z()}function $(){document.visibilityState===`visible`&&Z()}return _(()=>{window.addEventListener(`scroll`,X,{passive:!0}),window.addEventListener(`resize`,X,{passive:!0}),window.addEventListener(`focus`,Q),document.addEventListener(`visibilitychange`,$)}),g(()=>{window.removeEventListener(`scroll`,X),window.removeEventListener(`resize`,X),window.removeEventListener(`focus`,Q),document.removeEventListener(`visibilitychange`,$)}),S(()=>N.value,e=>{L.value&&(L.value.value=e)}),(e,o)=>w((v(),l(`div`,{ref_key:`wrapperRef`,ref:F,onKeydown:T(q,[`esc`]),style:{height:`100%`,width:`100%`,position:`relative`},"aria-expanded":R.value?`true`:`false`,"aria-haspopup":`dialog`,"aria-label":`Choose color. Current color ${t.value}`},[u(`button`,{ref_key:`buttonRef`,ref:I,class:`icon`,onClick:J,style:h(V.value),type:`button`},[x(e.$slots,`annotator-action-color`,m(f({color:H.value})),()=>[d(n,{name:`palette`,stroke:H.value,size:22},null,8,[`stroke`])],!0)],4),R.value&&!t.teleported?(v(),l(`div`,{key:0,class:`vue-ui-color-picker`,role:`dialog`,"aria-label":`Color picker`,style:h({backgroundColor:t.backgroundColor,position:`absolute`,left:`calc(100% + 2.36rem)`,top:`50%`,transform:`translateY(-18%)`}),onMousedown:o[2]||=E(()=>{},[`stop`]),onClick:o[3]||=E(()=>{},[`stop`]),onTouchstart:o[4]||=E(()=>{},[`stop`]),onKeydown:T(q,[`esc`])},[(v(!0),l(i,null,b(t.palette,e=>(v(),l(`button`,{key:e,"aria-label":`Select color ${e}`,"aria-pressed":t.value===e?`true`:`false`,class:`vue-ui-color-picker-option`,type:`button`,style:h({backgroundColor:e,outline:`1px solid ${t.buttonBorderColor}`,cursor:t.isCursorPointer?`pointer`:`default`}),onClick:()=>U(e)},null,12,O))),128)),u(`button`,{class:`vue-ui-color-picker-option`,type:`button`,style:h({backgroundColor:t.value,outline:`1px solid ${t.buttonBorderColor}`,cursor:t.isCursorPointer?`pointer`:`default`}),"aria-label":`Open native color picker`,onClick:E(G,[`stop`]),onMousedown:o[0]||=E(()=>{},[`stop`]),onTouchstart:o[1]||=E(()=>{},[`stop`])},[u(`div`,k,[d(n,{name:`colorPicker`,stroke:H.value,size:22},null,8,[`stroke`])]),u(`input`,{ref_key:`colorInput`,ref:L,type:`color`,value:t.value,class:`hidden-input`,onInput:W},null,40,A)],36)],36)):c(``,!0),R.value&&t.teleported?(v(),s(a,{key:1,to:`body`},[u(`div`,{tabindex:`0`,class:`vue-ui-color-picker`,style:h({backgroundColor:t.backgroundColor,position:`fixed`,top:B.value.top+`px`,left:B.value.left+`px`,zIndex:2147483647}),onMousedown:o[7]||=E(()=>{},[`stop`]),onClick:o[8]||=E(()=>{},[`stop`]),onTouchstart:o[9]||=E(()=>{},[`stop`])},[(v(!0),l(i,null,b(t.palette,e=>(v(),l(`button`,{key:e,class:`vue-ui-color-picker-option`,type:`button`,style:h({backgroundColor:e,outline:`1px solid ${t.buttonBorderColor}`,cursor:t.isCursorPointer?`pointer`:`default`}),onClick:()=>U(e)},null,12,j))),128)),u(`button`,{class:`vue-ui-color-picker-option`,type:`button`,style:h({backgroundColor:t.value,outline:`1px solid ${t.buttonBorderColor}`,cursor:t.isCursorPointer?`cursor`:`default`}),onClick:E(G,[`stop`]),onMousedown:o[5]||=E(()=>{},[`stop`]),onTouchstart:o[6]||=E(()=>{},[`stop`])},[u(`div`,ne,[d(n,{name:`colorPicker`,stroke:H.value,size:22},null,8,[`stroke`])]),u(`input`,{ref_key:`colorInput`,ref:L,type:`color`,value:t.value,class:`hidden-input`,onInput:W},null,40,re)],36)],36)])):c(``,!0)],40,D)),[[ee(r),q]])}},[[`__scopeId`,`data-v-06fe5e91`]]);export{M as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{$ as t,Ft as n,X as r,t as i}from"./lib-rPeBMZrn.js";import{t as a}from"./BaseIcon-fYK0iID8.js";import{t as o}from"./ColorPicker-DEJOjcmD.js";import{computed as s,createCommentVNode as c,createElementBlock as l,createElementVNode as u,createVNode as d,guardReactiveProps as f,nextTick as p,normalizeClass as m,normalizeProps as ee,normalizeStyle as h,onBeforeUnmount as te,onMounted as ne,openBlock as re,ref as g,renderSlot as _,toDisplayString as ie,unref as ae,vModelText as oe,watch as v,withCtx as se,withDirectives as ce}from"vue";var le=`data-annotation-anchor`,y=/* @__PURE__ */ new WeakMap;function ue(e){let t=e.cloneNode(!0);return t.removeAttribute(le),t.outerHTML}function de(e,t,n,r=!1){if(!n||!t)return;let i=ue(e);if(!r&&y.get(e)===i)return;let a=0,o=0,s=e.tagName.toLowerCase()===`g`?e.querySelector(`line[marker-end]`)||e.querySelector(`text, line, circle, path`):e;if(!s)return;let c=s.tagName.toLowerCase();if(c===`text`)a=Number(s.getAttribute(`x`)),o=Number(s.getAttribute(`y`));else if(c===`line`){let e=s.hasAttribute(`marker-end`)?`2`:`1`;a=Number(s.getAttribute(`x${e}`)),o=Number(s.getAttribute(`y${e}`))}else if(c===`circle`)a=Number(s.getAttribute(`cx`)),o=Number(s.getAttribute(`cy`));else if(c===`path`){let e=s.getPointAtLength(0);a=e.x,o=e.y}else return;let l=t.getScreenCTM(),u=s.getScreenCTM();if(!l||!u)return;let d=t.createSVGPoint();d.x=a,d.y=o;let f=d.matrixTransform(l.inverse().multiply(u)),p={origin:{x:f.x,y:f.y},transform:e.getAttribute(`transform`)||``,...n.shapeScale?{shapeScale:{...n.shapeScale}}:{}};for(let e of[`x`,`y`]){let t=n[e];if(!t||!Number.isFinite(t.unit)||!t.unit||(p[e]=(f[e]-t.origin)/t.unit,!Number.isFinite(p[e])))return}e.setAttribute(le,JSON.stringify(p)),y.set(e,i)}function fe(e,t){let n=e.getAttribute(le);if(!n||!t)return;let r=JSON.parse(n),i=t.x.origin+r.x*t.x.unit,a=t.y.origin+r.y*t.y.unit;if(t.motion){let{scaleX:n,scaleY:r,translateX:o,translateY:s}=t.motion;i=i*n+o,a=a*r+s,e.style.transformOrigin=`0 0`,e.style.transformBox=`view-box`,e.style.transition=t.motion.transition}let o=i-r.origin.x,s=a-r.origin.y;if(![o,s].every(Number.isFinite))return;let c=t.shapeScale&&r.shapeScale?t.shapeScale.x/r.shapeScale.x:1,l=t.shapeScale&&r.shapeScale?t.shapeScale.y/r.shapeScale.y:1;![c,l].every(Number.isFinite)||c<=0||l<=0||(Math.abs(c-1)>1e-9||Math.abs(l-1)>1e-9?e.setAttribute(`transform`,`translate(${i} ${a}) scale(${c} ${l}) translate(${-r.origin.x} ${-r.origin.y})${r.transform?` ${r.transform}`:``}`):Math.abs(o)<1e-9&&Math.abs(s)<1e-9?r.transform?e.setAttribute(`transform`,r.transform):e.removeAttribute(`transform`):e.setAttribute(`transform`,`translate(${o} ${s})${r.transform?` ${r.transform}`:``}`),y.set(e,ue(e)))}var b=/* @__PURE__ */ e({default:()=>x}),pe={"aria-hidden":`true`,viewBox:`0 0 6 12`,style:{width:`100%`}},me=[`fill`],he=[`fill`],ge=[`fill`],_e=[`disabled`],ve=[`disabled`],ye=[`disabled`,`aria-label`,`aria-pressed`],be=[`disabled`],xe=[`disabled`],Se=[`disabled`],Ce=[`disabled`],we=750,Te=8,Ee=2,x={__name:`PenAndPaper`,props:{svgRef:{type:[Object,null,void 0],required:!0},showGroupActions:{type:Boolean,default:!0},followZoom:{type:Boolean,default:!1},annotationViewport:{type:Object,default:null},color:{type:String,default:`#2D353C`},backgroundColor:{type:String,default:`#FFFFFF`},active:{type:Boolean,default:!1},isCursorPointer:{type:Boolean,default:!1},palette:{type:Array,default:()=>[`#000000`,`#FFFFFF`,`#FF5733`,`#33FF57`,`#3357FF`,`#FFC300`,`#800080`,`#FF1493`,`#00CED1`]}},emits:[`close`],setup(e,{emit:le}){let y=e,ue=le,b=g([]),x=g([]),S=g(y.color),C=g(2),w=g(!1),De=g(``),T=g(null),E=g(null),D=g(null),Oe=g(null),O=g(null),k=g([]),A=g(!1),ke=g(0),Ae=s(()=>k.value.length>1),je=s(()=>O.value?.hasAttribute(`data-annotation-group`)),Me=g(null),Ne=g(!1),Pe=g(null),Fe=g(``),Ie=g(``),j=g(!1),Le=g(!1),Re=g(null),ze=g(null),Be=g(!1),M=g(``),Ve=/* @__PURE__ */ new Map,He=g(`arrow-def-${r()}`),N=g(!1),P=g(null),Ue=g({x:0,y:0}),F=g([``]),I=g({row:0,col:0}),L=g(16),We=g(!1),Ge=g(``),Ke=g(!1),qe=[`arrow`,`text`,`line`,`draw`],R=g(0),z=s(()=>qe[R.value]),Je={arrow:`plotArrow`,text:`text`,line:`plotLine`,draw:`annotator`},Ye=g(`url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAABg2lDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSIVh2YQcchQnSyIijhKFYtgobQVWnUwufQLmjQkKS6OgmvBwY/FqoOLs64OroIg+AHi6OSk6CIl/i8ptIjx4Lgf7+497t4BQrPKNKtnAtB020wn4lIuvyqFXhGGiAhCiMnMMpKZxSx8x9c9Any9i/Es/3N/jgG1YDEgIBHPMcO0iTeIZzZtg/M+scjKskp8Tjxu0gWJH7muePzGueSywDNFM5ueJxaJpVIXK13MyqZGPE0cVTWd8oWcxyrnLc5atc7a9+QvDBf0lQzXaY4ggSUkkYIEBXVUUIWNGK06KRbStB/38Q+7/hS5FHJVwMixgBo0yK4f/A9+d2sVpya9pHAc6H1xnI9RILQLtBqO833sOK0TIPgMXOkdf60JzH6S3uho0SNgcBu4uO5oyh5wuQMMPRmyKbtSkKZQLALvZ/RNeSByC/Sveb2193H6AGSpq+Ub4OAQGCtR9rrPu/u6e/v3TLu/H5C7crM1WjgWAAAABmJLR0QAqwB5AHWF+8OUAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5gwUExIUagzGcQAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAABfSURBVBjTldAxDoNQDIPhL0+q1L33P1AvAhN7xfK6WAgoLfSfrNiykpQtE+7RLzx2vgF9D3o8lWDmn1QVVMP0LZQGmNtqp1/cmou0XHdG/+sYeGZwFBqPCub8rkcvvAGvsi1VYarR8wAAAABJRU5ErkJggg==') 5 5, auto`);function Xe(e){let t=e?.target;if(!(t instanceof Element))return null;let n=t.closest(`.vue-data-ui-doodle`);if(!n||!T.value?.contains(n))return null;for(;n.parentElement&&n.parentElement!==T.value;)n=n.parentElement;return n}function Ze(e){let t=e?.target;if(!(t instanceof Element))return null;let n=t.closest(`.vue-data-ui-selection-handle`);return n&&T.value?.contains(n)?n:null}function Qe(e){let t=e?.target;if(!(t instanceof Element))return null;let n=t.closest(`.vue-data-ui-selection-delete`);return n&&T.value?.contains(n)?n:null}function $e(e){if(!e)return``;let t=e.getAttribute(`data-doodle-id`);return t||(t=r(),e.setAttribute(`data-doodle-id`,t)),t}function et(){return Array.from(T.value?.children||[]).filter(e=>e.classList?.contains(`vue-data-ui-doodle`))}function B(){ke.value=et().length,ke.value<=1&&(A.value=!1,pt())}let tt=null;function nt(e=tt||y.annotationViewport,t=!1){y.followZoom&&e&&et().forEach(n=>de(n,y.svgRef,e,t))}function rt(){y.followZoom&&y.annotationViewport&&(et().forEach(e=>fe(e,y.annotationViewport)),W())}let V=g(null),it=`annotation-clip-${r()}`;function at(){if(!T.value)return;let e=y.followZoom&&y.annotationViewport;if(!e){T.value.removeAttribute(`clip-path`),T.value.removeAttribute(`data-annotation-inactive`);return}V.value||(V.value=document.createElementNS(i,`clipPath`),V.value.setAttribute(`id`,it),V.value.setAttribute(`clipPathUnits`,`userSpaceOnUse`),V.value.appendChild(document.createElementNS(i,`rect`)),y.svgRef.appendChild(V.value));let t=V.value.firstChild;for(let n of[`x`,`y`,`width`,`height`])t.setAttribute(n,e.clip[n]);T.value.setAttribute(`clip-path`,`url(#${it})`),T.value.toggleAttribute(`data-annotation-inactive`,!y.active)}v([()=>y.followZoom,()=>y.annotationViewport],([e],[t,n])=>{tt=n||y.annotationViewport,N.value&&Rt(!1),w.value&&(E.value&&E.value.setAttribute(`d`,Ht(Bt(De.value))),U(M.value),w.value=!1,E.value=null,D.value=null,M.value=``),j.value&&q(),e&&(nt(n||y.annotationViewport,!t),rt()),tt=null,at()},{flush:`post`});function H(){return B(),T.value?(nt(),Array.from(T.value.children).filter(e=>e.classList?.contains(`vue-data-ui-doodle`)).map(e=>e.outerHTML).join(``)):``}function ot(e){if(!T.value)return;G();let t=T.value.querySelector(`.vue-data-ui-svg-caret`);if(t&&t.remove(),Array.from(T.value.children).forEach(e=>{e.classList?.contains(`vue-data-ui-doodle`)&&e.remove()}),e){let t=document.createElementNS(i,`g`);t.innerHTML=e,Array.from(t.children).forEach(e=>T.value.appendChild(e))}y.followZoom&&et().forEach(e=>{e.hasAttribute(`data-annotation-anchor`)||de(e,y.svgRef,y.annotationViewport)}),rt(),B()}function U(e,t=null){if(e===H())return;let n=Date.now(),r=b.value[b.value.length-1];t&&r?.mergeKey===t&&n-r.timestamp<=we?r.timestamp=n:b.value.push({state:e,mergeKey:t,timestamp:n}),x.value=[]}function st(e){let t=e.touches?.[0]||e.changedTouches?.[0];return{x:t?t.clientX:e.clientX,y:t?t.clientY:e.clientY}}function ct(e,t){let n=y.svgRef;if(!n||!e)return null;let{x:r,y:i}=st(t),a=n.createSVGPoint();a.x=r,a.y=i;let o=e.getScreenCTM()?.inverse();return o?a.matrixTransform(o):null}function lt(e,t,n,r,i,a){let o=i-n,s=a-r,c=o*o+s*s;if(!c)return Math.hypot(e-n,t-r);let l=Math.max(0,Math.min(1,((e-n)*o+(t-r)*s)/c)),u=n+l*o,d=r+l*s;return Math.hypot(e-u,t-d)}function ut(e,t){if(e.hasAttribute(`data-annotation-group`))return Array.from(e.children).some(e=>ut(e,t));let n=ct(e,t);if(!n)return!1;let r=e.tagName.toLowerCase(),i=Te*K(e);if(r===`line`){let t=Number(e.getAttribute(`x1`)),r=Number(e.getAttribute(`y1`)),a=Number(e.getAttribute(`x2`)),o=Number(e.getAttribute(`y2`)),s=Number(e.getAttribute(`stroke-width`))||0;return lt(n.x,n.y,t,r,a,o)<=Math.max(i,s/2)}if(r===`circle`){let t=Number(e.getAttribute(`cx`)),r=Number(e.getAttribute(`cy`)),a=Number(e.getAttribute(`r`))||0;return Math.hypot(n.x-t,n.y-r)<=a+i}if(r===`text`)try{let t=e.getBBox();return n.x>=t.x-i&&n.x<=t.x+t.width+i&&n.y>=t.y-i&&n.y<=t.y+t.height+i}catch{return!1}if(r===`path`)try{let t=e.getBBox();if(n.x<t.x-i||n.x>t.x+t.width+i||n.y<t.y-i||n.y>t.y+t.height+i)return!1;if(typeof e.isPointInStroke==`function`){let t=e.getAttribute(`stroke-width`),r=Math.max(Number(t)||0,i*2);e.setAttribute(`stroke-width`,r);let a=e.isPointInStroke(n);return t===null?e.removeAttribute(`stroke-width`):e.setAttribute(`stroke-width`,t),a}let r=e.getTotalLength(),a=2*K(e);for(let t=0;t<=r;t+=a){let r=e.getPointAtLength(t);if(Math.hypot(n.x-r.x,n.y-r.y)<=i)return!0}}catch{return!1}return!1}function dt(e){return Xe(e)||T.value&&et().reverse().find(t=>ut(t,e))||null}let ft=null;function pt(){ft?.remove(),ft=null}function mt(e){if(pt(),!y.active||!A.value||!T.value)return;let t=dt(e);if(t&&!k.value.includes(t))try{let e=t.getBBox(),n=4*K(t),r=document.createElementNS(i,`rect`);r.setAttribute(`class`,`vue-data-ui-annotation-hover-outline`),r.setAttribute(`x`,e.x-n),r.setAttribute(`y`,e.y-n),r.setAttribute(`width`,Math.max(e.width+n*2,n*2)),r.setAttribute(`height`,Math.max(e.height+n*2,n*2)),r.setAttribute(`fill`,`none`),r.setAttribute(`stroke`,y.color),r.setAttribute(`stroke-width`,`1`),r.setAttribute(`stroke-dasharray`,`4 3`),r.setAttribute(`vector-effect`,`non-scaling-stroke`),r.setAttribute(`pointer-events`,`none`);let a=t.getAttribute(`transform`);a&&r.setAttribute(`transform`,a),T.value.appendChild(r),ft=r}catch{pt()}}function ht(){pt(),Me.value?.parentNode&&Me.value.parentNode.removeChild(Me.value),Me.value=null}function W(){if(ht(),!N.value&&y.active&&T.value){if(k.value.length>1){let e=document.createElementNS(i,`g`);e.setAttribute(`class`,`vue-data-ui-selection-overlay`),e.setAttribute(`pointer-events`,`none`);for(let t of k.value){if(!T.value.contains(t))continue;let n=t.getBBox(),r=4*K(t),a=document.createElementNS(i,`rect`);a.setAttribute(`class`,`vue-data-ui-selection-box`),a.setAttribute(`x`,n.x-r),a.setAttribute(`y`,n.y-r),a.setAttribute(`width`,Math.max(n.width+r*2,r*2)),a.setAttribute(`height`,Math.max(n.height+r*2,r*2)),a.setAttribute(`fill`,`none`),a.setAttribute(`stroke`,y.color),a.setAttribute(`stroke-width`,`1`),a.setAttribute(`vector-effect`,`non-scaling-stroke`),a.setAttribute(`stroke-dasharray`,`4 3`),a.setAttribute(`pointer-events`,`none`);let o=t.getAttribute(`transform`);o&&a.setAttribute(`transform`,o),e.appendChild(a)}T.value.appendChild(e),Me.value=e}else if(O.value&&T.value.contains(O.value))try{let e=O.value,t=e.getBBox(),n=4*K(e),r=document.createElementNS(i,`g`);r.setAttribute(`class`,`vue-data-ui-selection-overlay`);let a=document.createElementNS(i,`rect`);if(a.setAttribute(`class`,`vue-data-ui-selection-box`),a.setAttribute(`x`,t.x-n),a.setAttribute(`y`,t.y-n),a.setAttribute(`width`,Math.max(t.width+n*2,n*2)),a.setAttribute(`height`,Math.max(t.height+n*2,n*2)),a.setAttribute(`fill`,`none`),a.setAttribute(`stroke`,y.color),a.setAttribute(`stroke-width`,`1`),a.setAttribute(`vector-effect`,`non-scaling-stroke`),a.setAttribute(`stroke-dasharray`,`4 3`),a.setAttribute(`pointer-events`,`none`),r.appendChild(a),!A.value&&e.tagName.toLowerCase()===`line`){let t=5*K(e);[{endpoint:`start`,x:Number(e.getAttribute(`x1`)),y:Number(e.getAttribute(`y1`))},{endpoint:`end`,x:Number(e.getAttribute(`x2`)),y:Number(e.getAttribute(`y2`))}].forEach(({endpoint:e,x:n,y:a})=>{let o=document.createElementNS(i,`circle`);o.setAttribute(`class`,`vue-data-ui-selection-handle`),o.setAttribute(`data-line-endpoint`,e),o.setAttribute(`cx`,n),o.setAttribute(`cy`,a),o.setAttribute(`r`,t),o.setAttribute(`fill`,y.backgroundColor),o.setAttribute(`stroke`,y.color),o.setAttribute(`stroke-width`,1.5),o.setAttribute(`pointer-events`,`all`),r.appendChild(o)})}if(!A.value){let a=K(e),o=24*a,s=t.x+t.width+n+4*a,c=t.y-n-o-4*a,l=document.createElementNS(i,`g`);l.setAttribute(`class`,`vue-data-ui-selection-delete`),l.setAttribute(`role`,`button`),l.setAttribute(`tabindex`,`0`),l.setAttribute(`aria-label`,`Delete selected drawing`),l.setAttribute(`pointer-events`,`all`);let u=document.createElementNS(i,`rect`);u.setAttribute(`x`,s),u.setAttribute(`y`,c),u.setAttribute(`width`,o),u.setAttribute(`height`,o),u.setAttribute(`rx`,4*a),u.setAttribute(`fill`,y.backgroundColor),u.setAttribute(`stroke`,J.value),u.setAttribute(`stroke-width`,1),u.setAttribute(`vector-effect`,`non-scaling-stroke`);let d=o/30,f=o/6,p=document.createElementNS(i,`path`);p.setAttribute(`d`,`M7 18h6c2 0 2 0 3-12H4c1 12 1 12 3 12M3 4h14M8 2h4m-2 6v7M7 8l.518 7.01M13 8l-.546 6.984`),p.setAttribute(`transform`,`translate(${s+f} ${c+f}) scale(${d})`),p.setAttribute(`fill`,`none`),p.setAttribute(`stroke`,y.color),p.setAttribute(`stroke-width`,1.5),p.setAttribute(`stroke-linecap`,`round`),p.setAttribute(`stroke-linejoin`,`round`),p.setAttribute(`vector-effect`,`non-scaling-stroke`),p.setAttribute(`pointer-events`,`none`),l.appendChild(u),l.appendChild(p),l.addEventListener(`keydown`,e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),gt(e))}),r.appendChild(l)}let o=e.getAttribute(`transform`);o&&r.setAttribute(`transform`,o),T.value.appendChild(r),Me.value=r}catch{ht()}}}function G(){O.value=null,k.value=[],Ne.value=!1,Pe.value=null,Fe.value=``,Ie.value=``,j.value=!1,Le.value=!1,Re.value=null,ze.value=null,ht(),Z()}function gt(e=null){if(!y.active||!O.value||!T.value||!T.value.contains(O.value))return;e?.cancelable&&e.preventDefault(),e?.stopPropagation?.(),e?.stopImmediatePropagation?.();let t=H();O.value.remove(),U(t),G()}function _t(e){return e?e.tagName.toLowerCase()===`text`||e.tagName.toLowerCase()===`circle`?e.getAttribute(`fill`):e.getAttribute(`stroke`):null}function K(e=y.svgRef){let t=e?.getScreenCTM?.(),n=t?Math.hypot(t.a,t.b):0;return Number.isFinite(n)&&n>0?1/n:1}function vt(e){if(e&&!e.hasAttribute(`data-annotation-group`)){Be.value=!0;try{let t=e.tagName.toLowerCase(),n=_t(e);if(n&&(S.value=n),t===`text`){R.value=qe.indexOf(`text`);let t=Number(e.getAttribute(`font-size`));Number.isFinite(t)&&(L.value=t/K(e));return}if(t===`line`?R.value=e.hasAttribute(`marker-end`)?qe.indexOf(`arrow`):qe.indexOf(`line`):R.value=qe.indexOf(`draw`),t===`circle`){let t=Number(e.getAttribute(`r`));Number.isFinite(t)&&(C.value=t*2/K(e))}else{let t=Number(e.getAttribute(`stroke-width`));Number.isFinite(t)&&(C.value=t/K(e))}}finally{p(()=>{Be.value=!1})}}}function yt(e){y.active&&e&&T.value?.contains(e)&&($e(e),O.value=e,k.value=[e],vt(e),p(W))}v(()=>y.showGroupActions,e=>{e||(A.value=!1,k.value.length>1&&G(),W(),Z())});function bt(){N.value&&Rt(!1),!(!y.active||!y.showGroupActions||ke.value<=1)&&(A.value=!A.value,W(),Z())}function xt(){if(!y.active||!y.showGroupActions||!Ae.value||!T.value)return;let e=H(),t=et().filter(e=>k.value.includes(e));if(t.length<2)return;let n=document.createElementNS(i,`g`);n.setAttribute(`class`,`vue-data-ui-doodle`),n.setAttribute(`data-annotation-group`,``),n.setAttribute(`data-doodle-id`,r()),T.value.insertBefore(n,t[0]);for(let e of t)n.appendChild(e);A.value=!1,yt(n),U(e)}function St(){let e=O.value;if(!y.active||!y.showGroupActions||!je.value||!T.value?.contains(e))return;let t=H(),n=e.getAttribute(`transform`)||``,r=Array.from(e.children);for(let t of r){let r=`${n} ${t.getAttribute(`transform`)||``}`.trim();r?t.setAttribute(`transform`,r):t.removeAttribute(`transform`),t.removeAttribute(`data-annotation-anchor`),T.value.insertBefore(t,e),y.followZoom&&de(t,y.svgRef,y.annotationViewport,!0)}e.remove(),G(),A.value=!1,U(t)}function Ct(e){if(!y.active||!T.value||N.value)return;if(y.showGroupActions&&(A.value||e.shiftKey)){e.cancelable&&e.preventDefault(),e.stopImmediatePropagation?.();let t=dt(e);if(!t){G();return}k.value=k.value.includes(t)?k.value.filter(e=>e!==t):[...k.value,t],O.value=k.value.length===1?k.value[0]:null,W();return}if(Qe(e)){gt(e);return}let t=Ze(e);if(t&&O.value&&O.value.tagName.toLowerCase()===`line`){e.cancelable&&e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation?.();let n=t.getAttribute(`data-line-endpoint`);if(![`start`,`end`].includes(n))return;Re.value=n,ze.value=ct(O.value,e),Ne.value=!1,j.value=!1,Le.value=!1,Ie.value=H(),Z(e);return}let n=dt(e);if(!n){G();return}e.cancelable&&e.preventDefault(),Le.value=O.value===n,yt(n);let{x:r,y:i}=Y(e);Ne.value=!0,j.value=!1,Pe.value={x:r,y:i},Fe.value=n.getAttribute(`transform`)||``,Ie.value=H(),Z(e)}function wt(e){if(!y.active||!O.value)return;if(Z(e),Re.value){let t=ct(O.value,e);if(!t)return;let n=ze.value;if(!j.value&&n&&Math.hypot(t.x-n.x,t.y-n.y)<Ee*K(O.value))return;e.cancelable&&e.preventDefault(),j.value=!0,Re.value===`start`?(O.value.setAttribute(`x1`,t.x),O.value.setAttribute(`y1`,t.y)):(O.value.setAttribute(`x2`,t.x),O.value.setAttribute(`y2`,t.y)),W();return}if(!Ne.value||!Pe.value)return;let{x:t,y:n}=Y(e),r=t-Pe.value.x,i=n-Pe.value.y,a=Math.hypot(r,i);if(!j.value&&a<Ee*K())return;e.cancelable&&e.preventDefault(),j.value=!0;let o=Fe.value.trim();O.value.setAttribute(`transform`,`translate(${r} ${i})${o?` ${o}`:``}`),W()}function q(e){let t=O.value,n=!Re.value&&t&&t.tagName.toLowerCase()===`text`&&Le.value&&!j.value&&!N.value;j.value&&Ie.value&&U(Ie.value),Ne.value=!1,Pe.value=null,Ie.value=``,j.value=!1,Le.value=!1,Re.value=null,ze.value=null,Fe.value=t?.getAttribute(`transform`)||``,t&&T.value?.contains(t)&&W(),n&&t&&T.value?.contains(t)&&At(t,e),Z(e)}function Tt(e){if(!y.active||!O.value||Be.value)return;let t=O.value;if(t.hasAttribute(`data-annotation-group`))return;let n=t.tagName.toLowerCase();if(_t(t)===e)return;let r=H();if(n===`text`||n===`circle`)t.setAttribute(`fill`,e);else if(t.setAttribute(`stroke`,e),n===`line`&&t.hasAttribute(`marker-end`)){let n=Gt(e);n&&t.setAttribute(`marker-end`,`url(#${n})`)}N.value&&t===P.value||U(r,`color:${$e(t)}`),W(),N.value&&t===P.value&&It()}function Et(e){if(!y.active||!O.value||Be.value)return;let t=O.value,n=t.tagName.toLowerCase();if(n===`text`||t.hasAttribute(`data-annotation-group`))return;let r=Number(e)*K(t);if((n===`circle`?Number(t.getAttribute(`r`))*2:Number(t.getAttribute(`stroke-width`)))===r)return;let i=H();n===`circle`?t.setAttribute(`r`,r/2):t.setAttribute(`stroke-width`,r),U(i,`size:${$e(t)}`),W()}function Dt(e){if(!y.active||!O.value||Be.value)return;let t=O.value;if(t.tagName.toLowerCase()!==`text`)return;let n=Number(e)*K(t);if(Number(t.getAttribute(`font-size`))===n)return;let r=H();t.setAttribute(`font-size`,n),Array.from(t.children).forEach((e,t)=>{e.setAttribute(`dy`,t===0?`0`:`${n*1.2}`)}),N.value&&t===P.value||U(r,`font-size:${$e(t)}`),W(),N.value&&t===P.value&&It()}v(S,Tt),v(C,Et),v(L,Dt);function Ot(){R.value+1>=qe.length?R.value=0:R.value+=1}function kt(e){if(y.showGroupActions&&(A.value||e.shiftKey)||!T.value||!y.active||z.value!==`text`||N.value||Ze(e)||dt(e))return;G();let t=H(),{x:n,y:a}=Y(e);Ue.value={x:n,y:a},F.value=[``],I.value={row:0,col:0},We.value=!1,Ge.value=t,Ke.value=!1;let o=document.createElementNS(i,`text`);o.setAttribute(`x`,n),o.setAttribute(`y`,a),o.setAttribute(`fill`,S.value),o.setAttribute(`font-size`,L.value*K()),o.setAttribute(`font-family`,`sans-serif`),o.setAttribute(`class`,`vue-data-ui-doodle`),o.setAttribute(`data-doodle-id`,r()),o.setAttribute(`dominant-baseline`,`hanging`),o.setAttribute(`pointer-events`,`all`);let s=document.createElementNS(i,`tspan`);s.setAttribute(`x`,n),s.setAttribute(`dy`,`0`),s.setAttribute(`dominant-baseline`,`hanging`),s.textContent=``,o.appendChild(s),o.style.pointerEvents=`none`,o.style.userSelect=`none`,T.value.appendChild(o),B(),O.value=o,k.value=[o],P.value=o,N.value=!0,ht(),window.addEventListener(`keydown`,jt),window.addEventListener(`mousedown`,Lt,!0),Mt(),It()}function At(e){if(!y.active||!T.value||N.value||!e||e.tagName.toLowerCase()!==`text`||!T.value.contains(e))return;let t=H();O.value=e,k.value=[e],vt(e);let n=Number(e.getAttribute(`x`))||0,r=Number(e.getAttribute(`y`))||0,i=Array.from(e.children).map(e=>{let t=e.textContent||``;return t===`​`?``:t.split(`​`).join(``)}),a=i.length?i:[e.textContent||``],o=Math.max(0,a.length-1);Ue.value={x:n,y:r},F.value=a,I.value={row:o,col:a[o]?.length||0},Ge.value=t,Ke.value=!0,We.value=!0,P.value=e,N.value=!0,e.style.pointerEvents=`none`,ht(),window.addEventListener(`keydown`,jt),window.addEventListener(`mousedown`,Lt,!0),Mt(),It()}function jt(e){if(!N.value)return;let{row:t,col:n}=I.value,r=F.value.slice(),i=!1;if(e.key===`Enter`){let a=r[t],o=a.slice(0,n),s=a.slice(n);r.splice(t,1,o,s),t+=1,n=0,i=!0,e.preventDefault()}else if(e.key===`Backspace`){if(n>0)r[t]=r[t].slice(0,n-1)+r[t].slice(n),--n,i=!0;else if(t>0){let e=r[t-1].length;r[t-1]+=r[t],r.splice(t,1),--t,n=e,i=!0}e.preventDefault()}else if(e.key===`Delete`)n<r[t].length?(r[t]=r[t].slice(0,n)+r[t].slice(n+1),i=!0):t<r.length-1&&(r[t]+=r[t+1],r.splice(t+1,1),i=!0),e.preventDefault();else if(e.key===`ArrowLeft`)n>0?--n:t>0&&(--t,n=r[t].length),i=!0,e.preventDefault();else if(e.key===`ArrowRight`)n<r[t].length?n+=1:t<r.length-1&&(t+=1,n=0),i=!0,e.preventDefault();else if(e.key===`ArrowUp`)t>0&&(--t,n=Math.min(n,r[t].length),i=!0),e.preventDefault();else if(e.key===`ArrowDown`)t<r.length-1&&(t+=1,n=Math.min(n,r[t].length),i=!0),e.preventDefault();else if(e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey)r[t]=r[t].slice(0,n)+e.key+r[t].slice(n),n+=1,i=!0,e.preventDefault();else if(e.key===`Escape`){Rt(!1,!0);return}else e.key===`Tab`&&e.preventDefault();i&&(F.value=r,I.value={row:t,col:n},Mt(),It())}function Mt(){let e=P.value;if(!e)return;let{x:t}=Ue.value;for(;e.firstChild;)e.removeChild(e.firstChild);F.value.forEach((n,r)=>{let a=document.createElementNS(i,`tspan`);a.setAttribute(`x`,t),a.setAttribute(`dominant-baseline`,`hanging`),a.setAttribute(`dy`,r===0?`0`:`${L.value*1.2*K(e)}`),a.textContent=n.length?n:`​`,e.appendChild(a)})}let Nt=g(null);function Pt(){Nt.value!==null&&(clearInterval(Nt.value),Nt.value=null)}function Ft(e){Pt();let t=!0;e.style.opacity=`1`,Nt.value=setInterval(()=>{!T.value||!e||!T.value.contains(e)?Pt():(t=!t,e.style.opacity=t?`1`:`0`)},500)}function It(){let e=T.value?.querySelector(`.vue-data-ui-svg-caret`);e&&T.value&&T.value.removeChild(e);let t=P.value;if(!t||!T.value)return;let{x:n,y:r}=Ue.value,{row:a,col:o}=I.value,s=L.value*K(t),c=t.childNodes[a];if(!c)return;let l=c.textContent.slice(0,o);l.endsWith(` `)&&(l+=`\xA0`);let u=document.createElementNS(i,`text`);u.setAttribute(`x`,n),u.setAttribute(`y`,r),u.setAttribute(`font-size`,s),u.setAttribute(`font-family`,`sans-serif`),u.textContent=l||``,T.value.appendChild(u);let d=u.getBBox();T.value.removeChild(u);let f=r+a*s*1.2,p=n+d.width,m=document.createElementNS(i,`rect`);m.setAttribute(`x`,p),m.setAttribute(`y`,f),m.setAttribute(`rx`,K(t)),m.setAttribute(`width`,2*K(t)),m.setAttribute(`height`,s),m.setAttribute(`fill`,S.value),m.setAttribute(`class`,`vue-data-ui-svg-caret`),m.setAttribute(`pointer-events`,`none`);let ee=t.getAttribute(`transform`);ee&&m.setAttribute(`transform`,ee),T.value.appendChild(m),Ft(m)}function Lt(e){P.value&&(P.value.contains(e.target)||Rt(!1))}function Rt(e=!1,t=!1){window.removeEventListener(`keydown`,jt),window.removeEventListener(`mousedown`,Lt,!0),Pt();let n=T.value?.querySelector(`.vue-data-ui-svg-caret`);n&&n.remove();let r=P.value,i=Ge.value,a=F.value.every(e=>!e.length);t?(N.value=!1,P.value=null,F.value=[``],I.value={row:0,col:0},We.value=!1,Ge.value=``,Ke.value=!1,ot(i)):(r&&T.value?.contains(r)&&(e||a?r.remove():r.style.pointerEvents=`all`),N.value=!1,P.value=null,F.value=[``],I.value={row:0,col:0},We.value=!1,Ge.value=``,Ke.value=!1,U(i),r&&T.value?.contains(r)?yt(r):G())}let J=s(()=>n(y.color,.6));function zt(){if(!T.value)return;let e=T.value.querySelector(`.vue-data-ui-mask`);if(e&&T.value.removeChild(e),y.active){let e=document.createElementNS(`http://www.w3.org/2000/svg`,`rect`);e.setAttribute(`class`,`vue-data-ui-mask`),e.setAttribute(`width`,`100%`),e.setAttribute(`height`,`100%`),e.setAttribute(`fill`,`transparent`),e.setAttribute(`pointer-events`,`all`),T.value.insertBefore(e,T.value.firstChild)}}function Y(e){let t=y.svgRef;if(!t)return{x:0,y:0};let n=t.createSVGPoint(),r=e.touches?.length||e.changedTouches?.length?e.touches?.[0]||e.changedTouches?.[0]:null,i=r?r.clientX:e.clientX,a=r?r.clientY:e.clientY;n.x=i,n.y=a;let o=t.getScreenCTM()?.inverse();return o?n.matrixTransform(o):{x:0,y:0}}function Bt(e){let t=e.trim().split(/\s+/);if(t.length<4)return e;let n=t.slice(1).map(Number);if(n.length%2!=0)return e;let r=Vt(n),i=[`M ${r[0]} ${r[1]}`];for(let e=2;e<r.length-2;e+=2){let t=r[e-2],n=r[e-1],a=r[e],o=r[e+1],s=(t+a)/2,c=(n+o)/2;i.push(`Q ${t} ${n} ${s} ${c}`)}let a=r[r.length-2],o=r[r.length-1];return i.push(`L ${a} ${o}`),i.join(` `)}function Vt(e,t=1){let n=[...e];for(let r=2;r<e.length-2;r+=2){let i=e[r],a=e[r+1],o=e[r-2],s=e[r-1],c=e[r+2],l=e[r+3];n[r]=i+t*((o+c)/2-i),n[r+1]=a+t*((s+l)/2-a)}return n}function Ht(e){let t=e.trim().split(/\s+/),n=``,r=``,i=null,a=null;for(let e=0;e<t.length;e+=1){let o=t[e];if(isNaN(o)){if(r=o,r===`M`||r===`L`)i=parseFloat(t[++e]),a=parseFloat(t[++e]),n+=`${r}${i} ${a}`;else if(r===`Q`){let r=parseFloat(t[++e]),o=parseFloat(t[++e]),s=parseFloat(t[++e]),c=parseFloat(t[++e]);n+=r===i&&o===a?`t${s-i} ${c-a}`:`q${r-i} ${o-a} ${s-i} ${c-a}`,i=s,a=c}}else{let s=parseFloat(o),c=parseFloat(t[++e]);if(r===`L`){let e=s-i,t=c-a;n+=e===0?`v${t}`:t===0?`h${e}`:`l${e} ${t}`,i=s,a=c}else if(r===`Q`){let r=s,o=c,l=parseFloat(t[++e]),u=parseFloat(t[++e]);n+=r===i&&o===a?`t${l-i} ${u-a}`:`q${r-i} ${o-a} ${l-i} ${u-a}`,i=l,a=u}}}return n}function Ut(e){if(y.showGroupActions&&(A.value||e.shiftKey)||z.value!==`draw`||!y.active||!T.value||Ze(e)||dt(e))return;e.cancelable&&e.preventDefault(),G(),M.value=H(),w.value=!0;let{x:t,y:n}=Y(e);Oe.value={x:t,y:n},De.value=`M ${t} ${n}`,E.value=document.createElementNS(i,`path`),E.value.setAttribute(`stroke`,S.value),E.value.setAttribute(`stroke-width`,C.value*K()),E.value.setAttribute(`fill`,`none`),E.value.setAttribute(`stroke-linecap`,`round`),E.value.setAttribute(`stroke-linejoin`,`round`),E.value.setAttribute(`class`,`vue-data-ui-doodle`),E.value.setAttribute(`data-doodle-id`,r()),E.value.setAttribute(`pointer-events`,`stroke`),T.value.appendChild(E.value),B()}function Wt(e){if(e.cancelable&&e.preventDefault(),!w.value||!T.value||!E.value)return;let{x:t,y:n}=Y(e);De.value+=` ${t} ${n}`,E.value.setAttribute(`d`,De.value)}function Gt(e){let t=y.svgRef;if(!t)return null;let n=t.querySelector(`defs#${He.value}`);n||(n=document.createElementNS(i,`defs`),n.setAttribute(`id`,He.value),t.appendChild(n));let a=String(e).trim();if(Ve.has(a))return Ve.get(a);let o=`arrow-${r()}`,s=document.createElementNS(i,`marker`);s.setAttribute(`id`,o),s.setAttribute(`markerUnits`,`strokeWidth`),s.setAttribute(`markerWidth`,`6`),s.setAttribute(`markerHeight`,`6`),s.setAttribute(`refX`,`4`),s.setAttribute(`refY`,`3`),s.setAttribute(`orient`,`auto`),s.setAttribute(`viewBox`,`0 0 6 6`);let c=document.createElementNS(i,`path`);return c.setAttribute(`d`,`M 0 0 L 6 3 L 0 6 z`),c.setAttribute(`fill`,e),c.setAttribute(`stroke`,`none`),s.appendChild(c),n.appendChild(s),Ve.set(a,o),o}function Kt(e){if(y.showGroupActions&&(A.value||e.shiftKey)||![`line`,`arrow`].includes(z.value)||!y.active||!T.value||Ze(e)||dt(e))return;e.cancelable&&e.preventDefault(),G(),M.value=H(),w.value=!0;let{x:t,y:n}=Y(e);if(Oe.value={x:t,y:n},D.value=document.createElementNS(i,`line`),D.value.setAttribute(`stroke`,S.value),D.value.setAttribute(`stroke-width`,C.value*K()),D.value.setAttribute(`stroke-linecap`,`round`),D.value.setAttribute(`class`,`vue-data-ui-doodle`),D.value.setAttribute(`data-doodle-id`,r()),D.value.setAttribute(`pointer-events`,`stroke`),D.value.setAttribute(`x1`,t),D.value.setAttribute(`y1`,n),D.value.setAttribute(`x2`,t),D.value.setAttribute(`y2`,n),z.value===`arrow`){let e=Gt(S.value);e&&D.value.setAttribute(`marker-end`,`url(#${e})`)}T.value.appendChild(D.value),B()}function qt(e){if(e.cancelable&&e.preventDefault(),![`line`,`arrow`].includes(z.value)||!w.value||!T.value||!D.value)return;let{x:t,y:n}=Y(e);D.value.setAttribute(`x2`,t),D.value.setAttribute(`y2`,n)}function Jt(e){if(w.value&&T.value&&D.value){let{x:t,y:n}=Y(e);D.value.setAttribute(`x2`,t),D.value.setAttribute(`y2`,n),U(M.value),D.value=null,M.value=``}w.value=!1}function X(e){if(w.value&&T.value&&E.value){let{x:t,y:n}=Y(e);if(Oe.value&&Oe.value.x===t&&Oe.value.y===n){E.value.remove();let e=document.createElementNS(i,`circle`);e.setAttribute(`cx`,t),e.setAttribute(`cy`,n),e.setAttribute(`r`,C.value*K()/2),e.setAttribute(`fill`,S.value),e.setAttribute(`class`,`vue-data-ui-doodle`),e.setAttribute(`data-doodle-id`,r()),e.setAttribute(`pointer-events`,`all`),T.value.appendChild(e),B()}else E.value.setAttribute(`d`,Ht(Bt(De.value)));U(M.value),M.value=``,E.value=null}w.value=!1}function Yt(){if(!b.value.length||!T.value)return;let e=H(),t=b.value.pop();x.value.push({state:e,mergeKey:null,timestamp:Date.now()}),ot(t.state)}function Xt(){if(!x.value.length||!T.value)return;let e=H(),t=x.value.pop();b.value.push({state:e,mergeKey:null,timestamp:Date.now()}),ot(t.state)}function Zt(){N.value&&Rt(!1),G(),T.value&&(T.value.innerHTML=``,B()),b.value=[],x.value=[],We.value=!1,Ge.value=``,Ke.value=!1,M.value=``,zt()}v(z,()=>{y.active&&($t(),Qt(),Z())});function Qt(){y.svgRef&&y.active&&(y.svgRef.addEventListener(`mousedown`,Ct),y.svgRef.addEventListener(`mousemove`,wt),y.svgRef.addEventListener(`mousemove`,mt),y.svgRef.addEventListener(`mouseleave`,pt),y.svgRef.addEventListener(`mouseup`,q),y.svgRef.addEventListener(`mouseleave`,q),y.svgRef.addEventListener(`touchstart`,Ct,{passive:!1}),y.svgRef.addEventListener(`touchmove`,wt,{passive:!1}),y.svgRef.addEventListener(`touchend`,q),y.svgRef.addEventListener(`touchcancel`,q),z.value===`draw`?(y.svgRef.addEventListener(`mousedown`,Ut),y.svgRef.addEventListener(`mousemove`,Wt),y.svgRef.addEventListener(`mouseup`,X),y.svgRef.addEventListener(`mouseleave`,X),y.svgRef.addEventListener(`touchstart`,Ut,{passive:!1}),y.svgRef.addEventListener(`touchmove`,Wt,{passive:!1}),y.svgRef.addEventListener(`touchend`,X),y.svgRef.addEventListener(`touchcancel`,X)):[`line`,`arrow`].includes(z.value)?(y.svgRef.addEventListener(`mousedown`,Kt),y.svgRef.addEventListener(`mousemove`,qt),y.svgRef.addEventListener(`mouseup`,Jt),y.svgRef.addEventListener(`touchstart`,Kt,{passive:!1}),y.svgRef.addEventListener(`touchmove`,qt,{passive:!1}),y.svgRef.addEventListener(`touchend`,Jt),y.svgRef.addEventListener(`touchcancel`,Jt)):z.value===`text`&&(y.svgRef.addEventListener(`mousedown`,kt),y.svgRef.addEventListener(`touchstart`,kt,{passive:!1})),T.value&&(T.value.style.pointerEvents=`auto`))}function $t(){pt(),y.svgRef&&(y.svgRef.removeEventListener(`mousedown`,Ct),y.svgRef.removeEventListener(`mousemove`,wt),y.svgRef.removeEventListener(`mousemove`,mt),y.svgRef.removeEventListener(`mouseleave`,pt),y.svgRef.removeEventListener(`mouseup`,q),y.svgRef.removeEventListener(`mouseleave`,q),y.svgRef.removeEventListener(`touchstart`,Ct),y.svgRef.removeEventListener(`touchmove`,wt),y.svgRef.removeEventListener(`touchend`,q),y.svgRef.removeEventListener(`touchcancel`,q),y.svgRef.removeEventListener(`mousedown`,Ut),y.svgRef.removeEventListener(`mousemove`,Wt),y.svgRef.removeEventListener(`mouseup`,X),y.svgRef.removeEventListener(`mouseleave`,X),y.svgRef.removeEventListener(`touchstart`,Ut),y.svgRef.removeEventListener(`touchmove`,Wt),y.svgRef.removeEventListener(`touchend`,X),y.svgRef.removeEventListener(`touchcancel`,X),y.svgRef.removeEventListener(`mousedown`,Kt),y.svgRef.removeEventListener(`mousemove`,qt),y.svgRef.removeEventListener(`mouseup`,Jt),y.svgRef.removeEventListener(`touchstart`,Kt),y.svgRef.removeEventListener(`touchmove`,qt),y.svgRef.removeEventListener(`touchend`,Jt),y.svgRef.removeEventListener(`touchcancel`,Jt),y.svgRef.removeEventListener(`mousedown`,kt),y.svgRef.removeEventListener(`touchstart`,kt),T.value&&(T.value.style.pointerEvents=`none`))}v(()=>y.active,e=>{e?Qt():(A.value=!1,y.followZoom&&N.value&&Rt(!1),G(),$t()),Z(),at()}),v(()=>y.active,()=>{p(()=>{zt()})}),v(()=>y.active,e=>{y.svgRef&&(e?y.svgRef.style.touchAction=`none`:y.svgRef.style.touchAction=``)},{immediate:!0});function Z(e=null){T.value&&(y.active?A.value?T.value.style.cursor=`default`:N.value?T.value.style.cursor=`text`:e&&Qe(e)?T.value.style.cursor=`pointer`:Re.value||e&&Ze(e)?T.value.style.cursor=`move`:Ne.value&&O.value?T.value.style.cursor=`grabbing`:e&&O.value&&T.value.contains(O.value)&&ut(O.value,e)?T.value.style.cursor=`grab`:z.value===`text`?T.value.style.cursor=`text`:[`line`,`arrow`].includes(z.value)?T.value.style.cursor=`crosshair`:T.value.style.cursor=Ye.value:T.value.style.cursor=``)}let Q=g(null),en=g(null),tn=g(!1),$=g({x:0,y:0}),nn=g(null),rn=g(null),an=s(()=>({backgroundColor:y.backgroundColor,"--vue-ui-pen-and-paper-drag-x":`${$.value.x}px`,"--vue-ui-pen-and-paper-drag-y":`${$.value.y}px`}));function on(){return{width:document.documentElement.clientWidth||window.innerWidth,height:document.documentElement.clientHeight||window.innerHeight}}function sn(){if(!Q.value)return null;let e=[Q.value,Q.value.querySelector(`.vue-ui-pen-and-paper-drag-handle`),Q.value.querySelector(`.vertical-range`),Q.value.querySelector(`.vue-ui-pen-and-paper-group-actions`)].filter(Boolean).map(e=>e.getBoundingClientRect());return{left:Math.min(...e.map(e=>e.left)),top:Math.min(...e.map(e=>e.top)),right:Math.max(...e.map(e=>e.right)),bottom:Math.max(...e.map(e=>e.bottom))}}function cn(e){if(e.pointerType===`mouse`&&e.button!==0||!Q.value)return;e.preventDefault(),e.stopPropagation();let t=sn();t&&(tn.value=!0,rn.value=e.pointerId,nn.value={clientX:e.clientX,clientY:e.clientY,offsetX:$.value.x,offsetY:$.value.y,rect:t},window.addEventListener(`pointermove`,ln),window.addEventListener(`pointerup`,un),window.addEventListener(`pointercancel`,un))}function ln(e){if(!tn.value||!nn.value||e.pointerId!==rn.value)return;e.preventDefault();let t=nn.value,{width:n,height:r}=on(),i=e.clientX-t.clientX,a=e.clientY-t.clientY,o=Math.min(Math.max(i,-t.rect.left),n-t.rect.right),s=Math.min(Math.max(a,-t.rect.top),r-t.rect.bottom);$.value={x:t.offsetX+o,y:t.offsetY+s}}function un(e){(e?.pointerId===void 0||rn.value===null||e.pointerId===rn.value)&&(tn.value=!1,nn.value=null,rn.value=null,window.removeEventListener(`pointermove`,ln),window.removeEventListener(`pointerup`,un),window.removeEventListener(`pointercancel`,un))}function dn(){if(!Q.value||!y.active)return;let e=sn();if(!e)return;let{width:t,height:n}=on(),r=0,i=0;e.left<0?r=-e.left:e.right>t&&(r=t-e.right),e.top<0?i=-e.top:e.bottom>n&&(i=n-e.bottom),(r||i)&&($.value={x:$.value.x+r,y:$.value.y+i})}return ne(()=>{window.addEventListener(`resize`,dn),p(()=>{y.svgRef&&(T.value=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),T.value.setAttribute(`class`,`vue-data-ui-doodles`),y.svgRef.appendChild(T.value),Z(),y.active?Qt():$t(),zt(),at())})}),v(()=>y.active,async e=>{e?(await p(),en.value?.focus()):(un(),$.value={x:0,y:0})},{flush:`post`}),te(()=>{Pt(),G(),V.value?.remove(),un(),window.removeEventListener(`resize`,dn),T.value&&y.svgRef&&(T.value.remove(),$t())}),(n,r)=>e.active?(re(),l(`div`,{key:0,ref_key:`menuRef`,ref:Q,"data-dom-to-png-ignore":``,class:m([`vue-ui-pen-and-paper-actions`,{"vue-ui-pen-and-paper-actions-dragging":tn.value,"vue-ui-pen-and-paper-actions-with-groups":e.showGroupActions}]),style:h(an.value)},[u(`button`,{type:`button`,class:`vue-ui-pen-and-paper-drag-handle`,"aria-label":`Move drawing toolbar`,style:h({backgroundColor:e.backgroundColor,border:`1px solid ${J.value}`,color:e.color}),onPointerdown:cn},[(re(),l(`svg`,pe,[u(`circle`,{fill:e.color,cx:`3`,cy:`3`,r:`0.7`},null,8,me),u(`circle`,{fill:e.color,cx:`3`,cy:`6`,r:`0.7`},null,8,he),u(`circle`,{fill:e.color,cx:`3`,cy:`9`,r:`0.7`},null,8,ge)]))],36),u(`button`,{ref_key:`buttonToggle`,ref:en,class:`vue-ui-pen-and-paper-action`,onClick:r[0]||=e=>ue(`close`),style:h({backgroundColor:e.backgroundColor,border:`1px solid ${J.value}`,cursor:e.isCursorPointer?`pointer`:`default`})},[_(n.$slots,`annotator-action-close`,{},()=>[d(a,{name:`close`,stroke:e.color},null,8,[`stroke`])])],4),u(`button`,{class:`vue-ui-pen-and-paper-action`,tabindex:`-1`,disabled:Ae.value||je.value,style:h(`padding: 0 !important; cursor: ${e.isCursorPointer?`pointer`:`default`}`)},[d(o,{value:S.value,"onUpdate:value":r[1]||=e=>S.value=e,backgroundColor:e.backgroundColor,buttonBorderColor:J.value,isCursorPointer:e.isCursorPointer,palette:e.palette},{"annotator-action-color":se(({color:e})=>[_(n.$slots,`annotator-action-color`,ee(f({color:e})))]),_:3},8,[`value`,`backgroundColor`,`buttonBorderColor`,`isCursorPointer`,`palette`])],12,_e),u(`button`,{class:m([`vue-ui-pen-and-paper-action`,{"vue-ui-pen-and-paper-action-active":z.value===`text`}]),onClick:r[2]||=e=>Ot(),style:h({backgroundColor:e.backgroundColor,border:`1px solid ${J.value}`,cursor:e.isCursorPointer?`pointer`:`default`})},[_(n.$slots,`annotator-action-draw`,ee(f({mode:z.value})),()=>[d(a,{name:Je[z.value],stroke:e.color},null,8,[`name`,`stroke`])]),u(`div`,{style:h({position:`absolute`,bottom:`-20px`,color:J.value,width:`100%`,textAlign:`center`,fontSize:`12px`,fontVariantNumeric:`tabular-nums`})},ie(ae(t)({v:z.value===`text`?Math.round(L.value):Math.round(C.value),s:`px`,r:1})),5)],6),u(`button`,{class:m([`vue-ui-pen-and-paper-action`,{"vue-ui-pen-and-paper-action-disabled":!b.value.length}]),disabled:!b.value.length,onClick:Yt,style:h({backgroundColor:e.backgroundColor,border:`1px solid ${J.value}`,marginTop:`20px`,cursor:e.isCursorPointer?`pointer`:`default`})},[_(n.$slots,`annotator-action-undo`,ee(f({disabled:!b.value.length})),()=>[d(a,{name:`refresh`,stroke:e.color},null,8,[`stroke`])])],14,ve),u(`button`,{class:m([`vue-ui-pen-and-paper-action`,{"vue-ui-pen-and-paper-action-disabled":!x.value.length}]),onClick:Xt,style:h({backgroundColor:e.backgroundColor,border:`1px solid ${J.value}`,cursor:e.isCursorPointer?`pointer`:`default`})},[_(n.$slots,`annotator-action-redo`,ee(f({disabled:!x.value.length})),()=>[d(a,{name:`refresh`,stroke:e.color,style:{transform:`scaleX(-1)`}},null,8,[`stroke`])])],6),u(`button`,{class:m([`vue-ui-pen-and-paper-action`,{"vue-ui-pen-and-paper-action-disabled":!b.value.length}]),onClick:Zt,style:h({backgroundColor:e.backgroundColor,border:`1px solid ${J.value}`,cursor:e.isCursorPointer?`pointer`:`default`})},[_(n.$slots,`annotator-action-delete`,ee(f({disabled:!b.value.length})),()=>[d(a,{name:`trash`,stroke:e.color},null,8,[`stroke`])])],6),e.showGroupActions?(re(),l(`div`,{key:0,class:`vue-ui-pen-and-paper-group-actions`,style:h({color:e.color,backgroundColor:e.backgroundColor})},[u(`button`,{type:`button`,class:m([`vue-ui-pen-and-paper-action`,{"vue-ui-pen-and-paper-action-active":A.value,"vue-ui-pen-and-paper-action-disabled":ke.value<=1}]),disabled:ke.value<=1,"aria-label":A.value?`Exit selection mode`:`Select multiple annotations`,"aria-pressed":A.value,style:h({backgroundColor:e.backgroundColor,color:e.color,border:`1px solid ${J.value}`}),onClick:bt},[_(n.$slots,`annotator-action-select-multiple`,{isSelecting:A.value},()=>[d(a,{name:A.value?`selectMultipleActive`:`selectMultiple`,stroke:e.color},null,8,[`name`,`stroke`])])],14,ye),u(`button`,{type:`button`,class:m([`vue-ui-pen-and-paper-action`,{"vue-ui-pen-and-paper-action-disabled":!Ae.value}]),"aria-label":`Group selected annotations`,disabled:!Ae.value,style:h({backgroundColor:e.backgroundColor,color:e.color,border:`1px solid ${J.value}`}),onClick:xt},[_(n.$slots,`annotator-action-group`,{disabled:!Ae.value},()=>[d(a,{name:`group`,stroke:e.color},null,8,[`stroke`])])],14,be),u(`button`,{type:`button`,class:m([`vue-ui-pen-and-paper-action`,{"vue-ui-pen-and-paper-action-disabled":!je.value}]),"aria-label":`Ungroup selected annotations`,disabled:!je.value,style:h({backgroundColor:e.backgroundColor,color:e.color,border:`1px solid ${J.value}`}),onClick:St},[_(n.$slots,`annotator-action-ungroup`,{disabled:!je.value},()=>[d(a,{name:`ungroup`,stroke:e.color},null,8,[`stroke`])])],14,xe)],4)):c(``,!0),z.value===`text`?ce((re(),l(`input`,{key:1,disabled:Ae.value||je.value,ref:`range`,type:`range`,class:`vertical-range`,min:3,max:48,step:1,"onUpdate:modelValue":r[3]||=e=>L.value=e,style:h({accentColor:e.color})},null,12,Se)),[[oe,L.value]]):ce((re(),l(`input`,{key:2,disabled:Ae.value||je.value,ref:`range`,type:`range`,class:`vertical-range`,min:.5,max:12,step:.1,"onUpdate:modelValue":r[4]||=e=>C.value=e,style:h({accentColor:e.color})},null,12,Ce)),[[oe,C.value]])],6)):c(``,!0)}};export{x as n,b as t};
@@ -1 +0,0 @@
1
- import{Dt as e,I as t,Jt as n,P as r,S as i,U as a,V as o,W as s,X as c,an as ee,kt as te,r as l,t as ne}from"./lib-rPeBMZrn.js";import{t as u}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as re}from"./BaseIcon-fYK0iID8.js";import{c as ie,r as ae}from"./canvas-lib-22VpOI4_.js";import{t as d}from"./useResponsive-CENUxfEL.js";import{t as oe}from"./DefGrad-DKMq1REY.js";import{Fragment as f,computed as p,createCommentVNode as m,createElementBlock as h,createElementVNode as g,createVNode as se,guardReactiveProps as ce,mergeProps as le,nextTick as ue,normalizeClass as de,normalizeProps as fe,normalizeStyle as _,onBeforeUnmount as pe,onMounted as me,onUpdated as he,openBlock as v,ref as y,renderList as b,renderSlot as ge,toDisplayString as _e,unref as ve,useCssVars as ye,vModelText as be,watch as x,withDirectives as xe,withKeys as Se,withModifiers as S}from"vue";var Ce=[`data-minimap`],we={class:`vue-data-ui-slicer-labels`,style:{position:`relative`,"z-index":`1`,"pointer-events":`none`}},Te={key:0,style:{width:`100%`,position:`relative`,"pointer-events":`all`}},Ee={key:0,class:`minimap`,style:{width:`100%`}},De=[`xmlns`,`viewBox`],Oe=[`id`],ke=[`x`,`width`,`height`],Ae=[`width`,`height`,`stroke`],je=[`d`,`stroke`],Me=[`d`,`fill`],Ne=[`x`,`y`,`width`,`height`,`fill`],Pe=[`d`,`stroke`,`stroke-dasharray`],Fe=[`cx`,`cy`,`fill`,`stroke`],Ie=[`cx`,`cy`,`fill`,`stroke`],Le=[`x`,`width`,`height`,`fill`,`rx`],Re=[`x`,`width`,`height`,`rx`,`fill`],ze=[`x`,`width`,`height`,`fill`,`rx`,`aria-valuemin`,`aria-valuemax`,`aria-valuenow`,`aria-valuetext`],Be=[`x2`,`y1`,`y2`,`stroke`],Ve={key:`merged-tree`},He=[`d`,`stroke`],Ue=[`cx`,`cy`,`stroke`,`fill`],We=[`cx`,`cy`,`stroke`,`fill`],Ge={key:`split-tree`},Ke=[`x`,`y`,`width`,`height`,`fill`],qe=[`d`,`stroke`,`stroke-dasharray`],Je=[`cx`,`cy`,`fill`,`stroke`],Ye=[`width`,`height`],Xe=[`transform`],Ze=[`x`,`y`,`width`,`height`],Qe=[`x`,`width`,`height`,`fill`,`stroke`,`stroke-width`],$e=[`transform`],et=[`width`,`height`],tt=[`fill`,`stroke`],nt=[`stroke`],rt=[`fill`],it=[`transform`],at=[`y`,`width`,`height`],ot=[`width`,`height`,`fill`,`stroke`,`stroke-width`],st={key:0,class:`compact-handle-icon`,style:{"pointer-events":`none`}},ct=[`width`,`height`],lt=[`fill`,`stroke`],ut=[`stroke`],dt=[`fill`],ft={key:`merged-tree`,style:{"pointer-events":`none`}},pt=[`cx`,`cy`,`stroke`,`fill`],mt=[`cx`,`cy`,`fill`],ht=[`cx`,`cy`,`stroke`,`fill`],gt=[`cx`,`cy`,`fill`],_t={key:1,style:{"pointer-events":`none`}},vt=[`d`,`stroke`,`stroke-dasharray`],yt=[`cx`,`cy`,`fill`,`stroke`],bt=[`cx`,`cy`,`stroke`,`fill`],xt=[`cx`,`cy`,`fill`],St=[`cx`,`cy`,`stroke`,`fill`],Ct=[`cx`,`cy`,`fill`],wt=[`cx`,`cy`,`fill`,`stroke`],Tt=[`step`,`min`,`max`,`tabindex`],Et=[`step`,`min`,`max`,`tabindex`],Dt=48,Ot=48,kt=/*#__PURE__*/ u({__name:`SlicerPreview`,props:{uuid:{type:String,default:``},immediate:{type:Boolean,default:!0},background:{type:String,default:`#FFFFFF`},borderColor:{type:String,default:`#FFFFFF`},fontSize:{type:Number,default:14},labelLeft:{type:[String,Number],default:``},labelRight:{type:[String,Number],default:``},textColor:{type:String,default:`#1A1A1A`},inputColor:{type:String,default:`#1A1A1A`},max:{type:Number,default:0},min:{type:Number,default:0},selectColor:{type:String,default:`#4A4A4A`},useResetSlot:{type:Boolean,default:!1},valueStart:{type:[Number,String],default:0},valueEnd:{type:[Number,String],default:0},minimap:{type:Array,default:[]},smoothMinimap:{type:Boolean,default:!1},minimapSelectedColor:{type:String,default:`#1f77b4`},minimapSelectionRadius:{type:Number,default:12},minimapLineColor:{type:String,default:`#2D353C`},minimapSelectedColorOpacity:{type:Number,default:.2},minimapSelectedIndex:{type:Number,default:null},minimapIndicatorColor:{type:String,default:`#2D353C`},refreshStartPoint:{type:Number,default:0},refreshEndPoint:{type:Number,default:null},enableRangeHandles:{type:Boolean,default:!1},enableSelectionDrag:{type:Boolean,default:!0},verticalHandles:{type:Boolean,default:!1},timeLabels:{type:Array},isPreview:{type:Boolean,default:!1},preciseLabels:{type:Array,default(){return[]}},usePreciseLabels:{type:Boolean,default:!1},selectedSeries:{type:Object},customFormat:{type:[Function,null]},minimapCompact:{type:Boolean,default:!1},allMinimaps:{type:Array,default(){return[]}},minimapMerged:{type:Boolean,default:!1},minimapFrameColor:{type:String,default:`#e1e5e8`},cutNullValues:{type:Boolean,default:!1},focusOnDrag:{type:Boolean,default:!1},focusRangeRatio:{type:Number,default:.1},minScale:{type:Number,default:null},maxScale:{type:Number,default:null},forceZeroCenter:{type:Boolean,default:!1},maxWidth:{type:Number,default:null},minimapLeftInsetRatio:{type:Number,default:null},minimapRightInsetRatio:{type:Number,default:null},isCursorPointer:{type:Boolean,default:!1},additionalMinimapHeight:{type:Number,default:0},handleType:{type:String,default:``},handleWidth:{type:Number,default:20},handleBorderWidth:{type:Number,default:1},handleIconColor:{type:String,default:null},handleBorderColor:{type:String,default:null},handleFill:{type:String,default:null},precision:{type:Number,default:0},useValueRange:{type:Boolean,default:!1}},emits:[`futureStart`,`futureEnd`,`update:start`,`update:end`,`reset`,`trapMouse`,`trapMouseValue`],setup(u,{expose:kt,emit:At}){ye(e=>({v1facdf1e:on.value,v90bb30dc:R.value,v55cd00fa:cn.value,d050ae7c:u.selectColor,v15a5e250:sn.value}));let C=u;function w(e){let t=Number(e)||0;return C.precision<=0?Math.round(t):Number(t.toFixed(C.precision))}let T=y(null),E=y(C.min),D=y(C.max),O=p(()=>!!C.allMinimaps.length),jt=p(()=>te(C.minimapLeftInsetRatio)&&te(C.minimapRightInsetRatio)),Mt=p(()=>{let e=Math.min(1,Math.max(0,C.minimapLeftInsetRatio))*100,t=Math.min(1,Math.max(0,C.minimapRightInsetRatio))*100;return{padding:jt.value?`0 ${t}% 0 ${e}%`:`0 48px`,maxWidth:C.maxWidth&&!jt.value?`${C.maxWidth}px`:void 0,margin:C.maxWidth&&!jt.value?`0 auto`:void 0}}),Nt=y(c()),k=y(!1),A=p(()=>O.value&&C.minimapCompact),Pt=y(null),j=y(null),Ft=y(!1),It=y(0),Lt=y(0),Rt=y(null),zt=y(!1),Bt=p(()=>Pt.value!==null),Vt=p(()=>C.useValueRange?D.value:D.value-1),Ht=p(()=>Math.max(1,Number(C.max)-Number(C.min)));function Ut(e){return(Number(e)-Number(C.min))/Ht.value*100}function Wt(e){return z.value.width*(Ut(e)/100)}function Gt(e){let t=Math.min(1,Math.max(0,e/Math.max(1,z.value.width)));return w(Number(C.min)+Ht.value*t)}function Kt(e){let t=C.useValueRange?e?.y:e;return te(t)?Number(t):null}function qt(e,t){return C.useValueRange?Number(e?.x):t+Number(C.min)}function Jt(e,t){return C.useValueRange?Wt(qt(e,t)):H.value*t+(C.minimapCompact?0:H.value/2)}let Yt=p(()=>Math.min(40,Math.max(20,C.handleWidth))),Xt=y(0),Zt=ie(e=>I(`futureStart`,e),0),Qt=ie(e=>I(`futureEnd`,e),0),M=p(()=>C.precision>0?1/10**C.precision:1),N=p({get:()=>E.value,set(e){let t=Math.min(Number(e),Number(D.value)-M.value);t!==E.value&&(E.value=t,q.value&&(q.value.value=String(t)),C.immediate?I(`update:start`,Number(t)):k.value&&Zt(t))}}),P=p({get:()=>D.value,set(e){let t=Math.max(Number(e),Number(E.value)+M.value);t!==D.value&&(D.value=t,Gn.value&&(Gn.value.value=String(t)),C.immediate?I(`update:end`,Number(t)):k.value&&Qt(t))}});function F(){clearTimeout(null),C.immediate||(I(`update:start`,Number(E.value)),I(`update:end`,Number(D.value))),k.value=!1}let $t=p(()=>C.refreshEndPoint===null?C.max:C.refreshEndPoint),I=At,en=p(()=>{if(C.useValueRange)return Ut(E.value);if(A.value){let e=Math.max(1,B.value-1);return In.value/e*100}let e=Math.max(1,C.max-C.min);return(E.value-C.min)/e*100}),tn=p(()=>{if(C.useValueRange)return Ut(D.value);if(A.value){let e=Math.max(1,B.value-1);return Ln.value/e*100}let e=Math.max(1,C.max-C.min);return(D.value-C.min)/e*100}),nn=p(()=>(en.value+tn.value)/2),rn=p(()=>{if(!T.value)return!1;let e=Math.max(1,C.max-C.min);return T.value.getBoundingClientRect().width*((E.value-C.min)/e)-xr.value/2<0}),an=p(()=>{if(!T.value)return!1;let e=Math.max(1,C.max-C.min),t=T.value.getBoundingClientRect().width;return t*((D.value-C.min)/e)+Sr.value/2>t}),L=p(()=>{let e=an.value?`calc(${nn.value}% - ${kr.value.width}px)`:rn.value?`calc(${nn.value}% - 8px)`:`calc(${nn.value}% - ${kr.value.width/2}px)`;return{left:`${en.value}%`,width:`${Math.max(0,tn.value-en.value)}%`,background:C.selectColor,tooltipLeft:`calc(${en.value}% - ${rn.value?9:xr.value/2}px)`,tooltipRight:`calc(${tn.value}% - ${an.value?Sr.value-9:Sr.value/2}px)`,tooltipCenter:e,arrowLeft:!rn.value,arrowRight:!an.value}}),on=p(()=>C.inputColor),sn=p(()=>C.background),cn=p(()=>n(i(C.selectColor)||C.selectColor,20)),R=p(()=>C.borderColor),ln=p(()=>Number(C.max)>Number(C.min));function un(){I(`reset`)}x(()=>C.min,e=>{Number(E.value)<Number(e)&&(E.value=Number(e)),Number(D.value)<Number(e)&&(D.value=Number(e))}),x(()=>C.max,e=>{Number(E.value)>Number(e)&&(E.value=Number(e)),Number(D.value)>Number(e)&&(D.value=Number(e))});let dn=y(null),z=y({width:1,height:1}),fn=y(null);me(()=>{if(O.value){let e=ie(()=>{if(!dn.value)return;let{width:e,height:t}=d({chart:dn.value}),n=Math.max(0,Math.round(e)),r=Math.max(0,Math.round(t-47));(n!==z.value.width||r!==z.value.height)&&(z.value.width=n,z.value.height=r+C.additionalMinimapHeight)},0);fn.value=new ResizeObserver(e),fn.value.observe(dn.value)}}),pe(()=>{fn.value&&fn.value.disconnect()});let B=p(()=>Math.max(1,C.max-C.min));function pn(e){let t=Math.floor(e-C.min);return Math.min(Math.max(0,t),B.value)}function mn(e){let t=Math.ceil(e-C.min);return Math.min(Math.max(0,t),B.value)}let V=p(()=>pn(E.value)),hn=p(()=>mn(D.value)),gn=p(()=>Math.max(...C.allMinimaps.map(e=>e.series.length))),_n=p(()=>O.value&&C.minimapCompact?40:0),vn=p(()=>_n.value/2);p(()=>Math.max(1,z.value.width-vn.value*2));let H=p(()=>{if(C.minimapCompact&&!C.useValueRange)return z.value.width/Math.max(1,B.value-1);let e=Math.max(1,gn.value-+!!C.minimapCompact);return z.value.width/e}),yn=p(()=>C.allMinimaps.length?C.allMinimaps.filter(e=>e.type===`bar`&&e.isVisible).length:0),bn=p(()=>H.value/(yn.value||1)*.8);function xn(e,t,n){let r=bn.value,i=Math.max(1,yn.value),a=gn.value-1;return n===0?e+r/2*t:n===a?e-r/2*(i-t):e-i*r/2+t*r}function Sn(e,t){return[0,gn.value-1].includes(t)?bn.value/2:bn.value}let Cn=p(()=>{let e=[];if(Array.isArray(C.minimap)&&C.minimap.length&&C.minimapMerged&&e.push(...C.minimap.map(Kt).filter(Number.isFinite)),Array.isArray(C.allMinimaps)&&C.allMinimaps.length)for(let t of C.allMinimaps)t?.isVisible&&Array.isArray(t?.series)&&e.push(...t.series.map(Kt).filter(Number.isFinite));return e.length?{min:Math.min(...e),max:Math.max(...e)}:{min:0,max:1}}),wn=p(()=>{if(C.minScale==null&&C.forceZeroCenter)return null;let e=Number(C.minScale);return Number.isFinite(e)?e:null}),Tn=p(()=>{if(C.maxScale==null&&C.forceZeroCenter)return null;let e=Number(C.maxScale);return Number.isFinite(e)?e:null}),En=p(()=>wn.value!==null&&Tn.value!==null),Dn=p(()=>{let{min:e,max:t}=Cn.value,n=wn.value,r=Tn.value,i,a;return n!==null&&r!==null?(i=Math.min(n,e),a=Math.max(r,t)):(i=n===null?e:n,a=r===null?t:r),Number.isFinite(i)||(i=0),Number.isFinite(a)||(a=1),i===a?a=i+1:i>a&&([i,a]=[a,i]),{min:i,max:a}}),On=p(()=>Dn.value.min),kn=p(()=>Dn.value.max),An=p(()=>On.value<0&&kn.value>0||kn.value<=0?On.value:0),jn=e=>{let t=Math.max(1,z.value.height);return Nn(On.value,kn.value,t,En.value)(e)},Mn=p(()=>jn(0));function Nn(e,t,n,r=!1){let i=(e,t,n)=>Math.max(t,Math.min(n,e)),a=1e-9,o=Math.max(a,t-e);if(r)return t=>n-(t-e)/o*n;if(t<=0){let t=Math.max(a,0-e);return r=>n-(r-e)/t*n}if(e>=0){let e=Math.max(a,t-0);return t=>n-(t-0)/e*n}{let r=Math.max(a,Math.max(Math.abs(e),Math.abs(t)));return e=>(1-(i(e/r,-1,1)+1)/2)*n}}function Pn(e,n=!1,i=!1){if(!e||!e.length)return{fullSet:``,points:[],selectionSet:``,sliced:[],firstPlot:null,lastPlot:null,hasFull:!1,hasSelection:!1,fullMarkers:[],selectionMarkers:[],dashed:!1};let c=Math.max(1,z.value.height),ee=Nn(On.value,kn.value,c,En.value),te=e.length,l=Math.min(Math.max(0,V.value),Math.max(0,te-1)),ne=Math.min(te,Math.max(l+1,hn.value)),u=e.map((e,t)=>{let n=Kt(e),r=Number.isFinite(n),i=Jt(e,t),a=En.value?((e,t,n)=>Math.max(t,Math.min(n,e)))(0,On.value,kn.value):0,o=ee(a);return{x:i,y:r?ee(n):NaN,v:n,value:r?n:null,y0:o,i:t,xValue:qt(e,t)}}),re=e=>e>=0&&e<u.length&&Number.isFinite(u[e]?.value),ie=u.filter(e=>Number.isFinite(e.value)&&!re(e.i-1)&&!re(e.i+1)),ae=C.useValueRange?ie.filter(e=>e.xValue>=Number(E.value)&&e.xValue<=Number(D.value)):ie.filter(e=>e.i>=l&&e.i<ne),d=C.useValueRange?u.filter(e=>e.xValue>=Number(E.value)&&e.xValue<=Number(D.value)):u.slice(l,ne);return{fullSet:u.length>=2?i?o(C.cutNullValues?u:u.filter(e=>e.value!=null)):C.smoothMinimap||n?C.cutNullValues?t(u):r(u.filter(e=>e.value!=null)):C.cutNullValues?s(u):a(u.filter(e=>e.value!=null)):``,points:u,selectionSet:d.length>=2?i?o(C.cutNullValues?d:d.filter(e=>e.value!=null)):C.smoothMinimap||n?C.cutNullValues?t(d):r(d.filter(e=>e.value!=null)):C.cutNullValues?s(d):a(d.filter(e=>e.value!=null)):``,sliced:d,firstPlot:C.useValueRange?d[0]||null:u[l]||null,lastPlot:C.useValueRange?d[d.length-1]||null:u[Math.max(0,ne-1)]||null,hasFull:u.length>=2,hasSelection:d.length>=2,fullMarkers:ie,selectionMarkers:ae}}let U=p(()=>C.minimap.length?Pn(C.minimap):[]),W=p(()=>C.allMinimaps.length?C.allMinimaps.map((e,t)=>{let n=Pn(e?.series||[],!!e.smooth,!!e.useStepper),r=e?.id??e?.name??t;return{key:typeof r==`object`?JSON.stringify(r):String(r),color:e?.color,...n,temperatureColors:e?.temperatureColors??null,isVisible:e.isVisible,type:e.type||void 0,dashed:e.dashed??!1,useStepper:!!e.useStepper}}):[]),G=p(()=>{if(C.useValueRange){let e=Wt(E.value),t=Wt(D.value);return{x:e,width:Math.max(0,t-e)}}let e=V.value,t=Math.max(e+1,hn.value);return{x:H.value*e+(C.minimapCompact?0:H.value/2),width:H.value*(t-e)-H.value}}),K=y(C.minimapSelectedIndex),Fn=e=>Math.round(C.min+e),In=p({get(){return A.value?V.value:Number(N.value)},set(e){if(A.value){if(C.useValueRange){let t=w(e);Jn(Math.min(Math.max(Number(C.min),t),Number(D.value)-M.value));return}let t=Math.round(+e||0);Jn(Fn(t))}else{let t=w(e),n=Number(D.value)-M.value,r=Math.min(Math.max(C.min,t),n);q.value&&(q.value.valueAsNumber=r),Jn(r)}}}),Ln=p({get(){return A.value?Math.max(V.value,hn.value-1):Number(P.value)},set(e){if(A.value){if(C.useValueRange){let t=w(e);Xn(Math.max(Number(E.value)+M.value,Math.min(t,Number(C.max))));return}let t=Math.round(+e||0);Xn(Fn(t+1))}else{let t=w(e),n=Number(E.value)+M.value,r=Math.max(n,Math.min(t,C.max));Gn.value&&(Gn.value.valueAsNumber=r),Xn(r)}}}),Rn=0;function zn(e,t){t===Rn&&(C.useValueRange?K.value=Number.isFinite(Number(e))?Wt(Number(e)):null:K.value=pn(C.valueStart)+e)}let Bn=ae(zn,60);x(()=>C.minimapSelectedIndex,(e,t)=>{Rn+=1,[null,void 0].includes(e)?K.value=null:e!==t&&Bn(e,Rn)},{immediate:!0});function Vn(e){if(Bt.value)return;K.value=e;let t=V.value,n=hn.value;e>=t&&e<n&&!Q.value&&I(`trapMouse`,e-t)}function Hn(e){let t=Gt(e),n=C.allMinimaps.flatMap(e=>(e.series||[]).map((e,n)=>({point:e,index:n,x:Number(e?.x),distance:Math.abs(Number(e?.x)-t)}))).filter(e=>Number.isFinite(e.x));return n.length?n.reduce((e,t)=>t.distance<e.distance?t:e,n[0]):null}function Un(e){if(!ln.value||Bt.value)return;let t=Gr(e.clientX);if(C.useValueRange){let e=Hn(t);if(!e){Wn();return}K.value=Wt(e.x),I(`trapMouse`,e.index),I(`trapMouseValue`,e.x)}else Vn(Kr(t))}function Wn(){K.value=null,!Bt.value&&(I(`trapMouse`,null),I(`trapMouseValue`,null))}let q=y(null),Gn=y(null);function Kn(e){if(typeof e==`object`&&e&&`target`in e){let t=e.target,n=`valueAsNumber`in t?t.valueAsNumber:+t.value;return Number.isFinite(n)?n:NaN}let t=+e;return Number.isFinite(t)?t:NaN}let qn=0;function Jn(e){k.value=!0;let t=Kn(e);Number.isFinite(t)&&(cancelAnimationFrame(qn),qn=requestAnimationFrame(()=>{N.value=t}))}let Yn=0;function Xn(e){k.value=!0;let t=Kn(e);Number.isFinite(t)&&(cancelAnimationFrame(Yn),Yn=requestAnimationFrame(()=>{P.value=t}))}function Zn(e,t){let n=Kn(e),r=Kn(t);if(!Number.isFinite(n)||!Number.isFinite(r))return;cancelAnimationFrame(qn),cancelAnimationFrame(Yn);let i=Number(C.min),a=Number(C.max),o=M.value,s=w(Math.max(i,Math.min(n,a))),c=w(Math.max(i,Math.min(r,a)));s=Math.min(s,a-o),c=Math.max(c,s+o),c=Math.min(c,a),c<=s&&(s=i,c=a),E.value=s,D.value=c,q.value&&(q.value.value=String(s)),Gn.value&&(Gn.value.value=String(c))}pe(()=>{cancelAnimationFrame(qn),cancelAnimationFrame(Yn)});let Qn=p(()=>C.valueEnd-C.valueStart),$n=p(()=>Qn.value<C.max-C.min),er=y(!1),tr=y(null),nr=p(()=>(Xt.value-48)/(C.max-C.min)*Qn.value),rr=p(()=>Math.max(1,Xt.value-Dt-nr.value)),ir=p(()=>Math.max(1,C.max-C.min-Qn.value)),ar=p(()=>ir.value/rr.value),or=y(0),sr=y(0),cr=y(0),lr=y(0),J=null,Y=null,X=null,Z=null,ur=y(C.min);function dr(e){if(!T.value)return C.min;let t=T.value.getBoundingClientRect(),n=t.left+Dt/2,r=t.right-Dt/2,i=Math.max(1,r-n),a=(Math.max(n,Math.min(e,r))-n)/i,o=Math.max(1,C.max-C.min);return Math.round(C.min+a*o)}let fr=async e=>{if(k.value=!0,Cr.value=!0,!C.enableSelectionDrag)return;let t=e.type===`touchstart`;t||e.stopPropagation();let n=t&&e.targetTouches&&e.targetTouches[0]?e.targetTouches[0]:null,r=t?n?n.target:null:e.target;if(!r||!(r instanceof Element)||r.classList?.contains(`range-handle`)||r.classList?.contains(`vue-ui-zoom-compact-minimap-handle`)||r.closest(`.vue-ui-zoom-compact-minimap-handle`))return;er.value=!0;let i=t?n?n.clientX:0:e.clientX;if(tr.value=i,or.value=i,C.focusOnDrag&&!$n.value&&T.value&&!zt.value){zt.value=!0;try{ur.value=dr(i);let e=Math.min(.95,Math.max(.05,C.focusRangeRatio)),t=Number(C.max)-Number(C.min),n=Math.max(1,Math.round(t*e)),r=Math.floor(n/2),a=ur.value-r;a=Math.max(Number(C.min),Math.min(a,Number(C.max)-n));let o=Math.min(Number(C.max),a+n);N.value=a,P.value=o,Zt(a),Qt(o),ee(T.value,`mouseup`),await ue(),ee(T.value,`mousedown`,{clientX:i})}finally{zt.value=!1}}else sr.value=E.value,cr.value=D.value,lr.value=ar.value,J=t?`touchmove`:`mousemove`,Y=t?`touchend`:`mouseup`,X=t?mr:pr,Z=t?_r:gr,window.addEventListener(J,X,{passive:!1}),window.addEventListener(Y,Z)};function pr(e){er.value&&hr(e.clientX)}function mr(e){if(!er.value||!T.value)return;let t=e.target;if(!(t instanceof Element)||!T.value.contains(t)||t.classList&&t.classList.contains(`range-handle`))return;e.preventDefault();let n=e.targetTouches&&e.targetTouches[0]?e.targetTouches[0]:null;n&&hr(n.clientX)}function hr(e){if(!er.value)return;let t=dr(or.value),n=dr(e)-t,r=Math.round(sr.value+n);r=Math.max(C.min,Math.min(r,C.max-Qn.value));let i=r+Qn.value;N.value=r,P.value=i,Zt(r),Qt(i)}function gr(){vr()}function _r(){vr()}function vr(){er.value=!1,J&&X&&window.removeEventListener(J,X),Y&&Z&&window.removeEventListener(Y,Z),J=Y=null,X=Z=null,F()}let Q=y(!1),yr=y(null),br=y(null),xr=y(1),Sr=y(1),Cr=y(!1);function wr(){if(yr.value){let e=Math.round(yr.value.getBoundingClientRect().width);e!==xr.value&&(xr.value=e)}}function Tr(){if(br.value){let e=Math.round(br.value.getBoundingClientRect().width);e!==Sr.value&&(Sr.value=e)}}he(()=>{wr(),Tr()});let Er=y(0);function Dr(e){Er.value=+(e===`start`)}let Or=y(!1),kr=y({width:0,left:0});x([E,D],async()=>{if(await ue(),!yr.value||!br.value){Or.value=!1,kr.value={width:0,left:0};return}let e=yr.value.getBoundingClientRect(),t=br.value.getBoundingClientRect();Or.value=e.x+e.width>t.x;let n=e.x+e.width/2,r=t.x+t.width/2,i=e.width+t.width,a=(n+r)/2;kr.value={width:i,left:a-i/2}}),he(()=>{wr(),Tr()}),x(()=>C.labelLeft,()=>{ue(wr)},{deep:!0}),x(()=>C.labelRight,()=>{ue(Tr)},{deep:!0});let $=p(()=>{let t=``,n=``,r=!1;if(e(C.customFormat))try{let e=C.customFormat({absoluteIndex:E.value,seriesIndex:E.value,datapoint:C.selectedSeries,timeLabel:C.preciseLabels[E.value],side:`left`}),i=C.customFormat({absoluteIndex:Vt.value,seriesIndex:-1,datapoint:C.selectedSeries,timeLabel:C.useValueRange?null:C.preciseLabels[Vt.value],side:`right`});typeof e==`string`&&typeof i==`string`&&(t=e,n=i,r=!0)}catch{r=!1}if(!r){let e=C.useValueRange?{text:String(Math.round(E.value*1e3)/1e3)}:C.usePreciseLabels?C.preciseLabels.find(e=>e.absoluteIndex===E.value):C.timeLabels.find(e=>e.absoluteIndex===E.value),r=C.useValueRange?{text:String(Math.round(D.value*1e3)/1e3)}:C.usePreciseLabels?C.preciseLabels.find(e=>e.absoluteIndex===Vt.value):C.timeLabels.find(e=>e.absoluteIndex===Vt.value);t=e?e.text:``,n=r?r.text:``}return{left:t,right:n}});pe(()=>{fn.value&&fn.value.disconnect(),J&&X&&window.removeEventListener(J,X),Y&&Z&&window.removeEventListener(Y,Z),J=Y=null,X=Z=null,clearTimeout(null)});let Ar=p(()=>{if(!ln.value||K.value===null)return null;if(C.useValueRange){let e=K.value;return e<G.value.x||e>G.value.x+G.value.width?null:{x1:e,x2:e,y1:0,y2:Math.max(z.value.height,0),stroke:C.minimapIndicatorColor,"stroke-linecap":`round`,"stroke-dasharray":2,"stroke-width":1}}if(K.value>=V.value&&K.value<hn.value){let e=K.value,t=H.value*e+(C.minimapCompact?0:H.value/2);return{x1:t,x2:t,y1:0,y2:Math.max(z.value.height,0),stroke:C.minimapIndicatorColor,"stroke-linecap":`round`,"stroke-dasharray":2,"stroke-width":1}}return null}),jr=p(()=>Number(E.value)<Number(D.value)-1),Mr=p(()=>Number(E.value)>Number(C.min)),Nr=p(()=>Number(D.value)<Number(C.max)),Pr=p(()=>Number(D.value)>Number(E.value)+1);function Fr(e){let t=Number(E.value)+e;e>0&&!jr.value||e<0&&!Mr.value||(k.value=!0,N.value=t,F())}function Ir(e){let t=Number(D.value)+e;e>0&&!Nr.value||e<0&&!Pr.value||(k.value=!0,P.value=t,F())}let Lr={plus:()=>Fr(1),minus:()=>Fr(-1),canPlus:jr,canMinus:Mr},Rr={plus:()=>Ir(1),minus:()=>Ir(-1),canPlus:Nr,canMinus:Pr};function zr(e){if(!e||Br(e.target))return;let t=e.key,n=t===`ArrowLeft`||t===`ArrowDown`||t===`-`||t===`Subtract`,r=t===`ArrowRight`||t===`ArrowUp`||t===`+`||t===`Add`;(n||r)&&(e.preventDefault(),e.stopPropagation(),r?(Lr.plus(),Rr.plus()):(Lr.minus(),Rr.minus()))}function Br(e){return e instanceof HTMLElement&&(e.isContentEditable||e.tagName===`INPUT`||e.tagName===`TEXTAREA`||e.tagName===`SELECT`)}function Vr(e){if(!O.value||!C.minimapCompact)return;let t=T.value;if(!t)return;let n=e===`start`?`[data-cy="slicer-compact-handle-left"]`:`[data-cy="slicer-compact-handle-right"]`,r=t.querySelector(n);r&&r instanceof SVGElement&&typeof r.focus==`function`&&r.focus()}function Hr(e,t){if(!t||Br(t.target))return;let n=t.key,r=n===`ArrowLeft`||n===`ArrowDown`||n===`-`||n===`Subtract`,i=n===`ArrowRight`||n===`ArrowUp`||n===`+`||n===`Add`;(r||i)&&(t.preventDefault(),t.stopPropagation(),e===`start`?i?Lr.plus():Lr.minus():i?Rr.plus():Rr.minus(),ue(()=>Vr(e)))}let Ur=p(()=>({tabindex:0,role:`slider`,"aria-label":`Range start`,"aria-valuemin":Number(C.min),"aria-valuemax":Math.max(Number(C.min),Number(D.value)-1),"aria-valuenow":Number(E.value)})),Wr=p(()=>({tabindex:0,role:`slider`,"aria-label":`Range end`,"aria-valuemin":Math.min(Number(C.max),Number(E.value)+1),"aria-valuemax":Number(C.max),"aria-valuenow":Number(D.value)}));function Gr(e){if(!Rt.value)return 0;let t=Rt.value.getBoundingClientRect();if(!t.width)return 0;let n=(e-t.left)/t.width;return Math.min(1,Math.max(0,n))*z.value.width}function Kr(e){let t=Math.max(0,B.value-1),n=Math.max(1,z.value.width),r=Math.min(1,Math.max(0,e/n));return Math.min(t,Math.max(0,Math.round(r*t)))}function qr(e,t){let n=Math.min(Math.max(0,t),Math.max(1,z.value.width));if(C.useValueRange){let t=Gt(n);if(e===`start`){let e=Math.min(t,Number(D.value)-M.value);N.value=e,Zt(e);return}if(e===`end`){let e=Math.max(Number(E.value)+M.value,t),n=Math.min(Number(C.max),e);P.value=n,Qt(n);return}}let r=Kr(n);if(e===`start`){let e=Math.min(C.min+r,Number(D.value)-1);N.value=e,Zt(e)}else if(e===`end`){let e=Math.max(Number(E.value)+1,C.min+r+1),t=Math.min(C.max,e);P.value=t,Qt(t)}}function Jr(e=!1){let t=Ft.value;Pt.value=null,j.value=null,Ft.value=!1,It.value=0,Lt.value=0,e&&t&&F()}function Yr(e,t){if(Pt.value!==e||j.value!==t.pointerId||!dn.value)return;if(t.pointerType===`mouse`&&!(t.buttons&1)){Jr(!0);return}t.preventDefault();let n=t.clientX-It.value;if(!Ft.value){if(Math.abs(n)<4)return;Ft.value=!0,k.value=!0,Cr.value=!0}let r=Gr(t.clientX)-Lt.value;qr(e,e===`start`?r+Yt.value:r)}function Xr(e,t){if(Pt.value!==e||j.value!==t.pointerId)return;let n=t.currentTarget,r=t.pointerId;Jr(!0),n?.hasPointerCapture?.(r)&&n.releasePointerCapture(r)}function Zr(e,t){Pt.value===e&&j.value===t.pointerId&&Jr(!0)}function Qr(e,t){if(!O.value||!C.minimapCompact||!dn.value||t.pointerType===`mouse`&&t.button!==0||j.value!==null)return;t.preventDefault(),t.stopPropagation(),K.value=null;let n=Gr(t.clientX),r=e===`start`?G.value.x-Yt.value:G.value.x+G.value.width;Pt.value=e,j.value=t.pointerId,Ft.value=!1,It.value=t.clientX,Lt.value=n-r,t.currentTarget?.setPointerCapture?.(t.pointerId)}x(A,e=>{!e&&j.value!==null&&Jr(!0)});let $r=p(()=>V.value),ei=p(()=>Math.max(V.value,hn.value-1));p(()=>{if(!O.value||!C.minimapCompact||!C.allMinimaps.length)return[];let e=$r.value,t=ei.value;return W.value.flatMap(n=>{if(!n?.isVisible||![`line`,`plot`].includes(n.type)||!n.type)return[];let r=[],i=n.points?.find(t=>t.i===e&&t.value!==null),a=n.points?.find(e=>e.i===t&&e.value!==null);return i&&r.push({key:`${n.key}-left-${i.i}`,x:i.x,y:i.y,color:n.color}),a&&t!==e&&r.push({key:`${n.key}-right-${a.i}`,x:a.x,y:a.y,color:n.color}),r})});let ti=p(()=>Math.min(40,Math.max(20,C.handleWidth))),ni=p(()=>Math.max(Ot,ti.value)),ri=p(()=>Math.max(Ot,Number(z.value.height)||0)),ii=p(()=>(z.value.height-ri.value)/2),ai=p(()=>G.value.x),oi=p(()=>G.value.x+G.value.width);return kt({setStartValue:Jn,setEndValue:Xn,setRangeValues:Zn}),(e,t)=>(v(),h(`div`,{"data-minimap":O.value,"data-dom-to-png-ignore":``,"data-dom-to-png-ignore-layout":``,class:`vue-data-ui-zoom`,ref_key:`zoomWrapper`,ref:T,onMousedown:fr,onTouchstart:fr,style:_(Mt.value)},[g(`div`,we,[u.valueStart!==u.refreshStartPoint||u.valueEnd!==$t.value?(v(),h(`div`,Te,[ge(e.$slots,`reset-action`,{reset:un},()=>[g(`button`,{tabindex:`0`,role:`button`,class:`vue-data-ui-refresh-button`,style:_({top:O.value?`36px`:`-16px`,cursor:u.isCursorPointer?`pointer`:`default`}),onClick:un},[se(re,{name:`refresh`,stroke:u.textColor},null,8,[`stroke`])],4)],!0)])):m(``,!0)]),g(`div`,{class:`double-range-slider`,ref_key:`minimapWrapper`,ref:dn,style:_([{"z-index":`0`},O.value?{"--minimap-unit-px":H.value+`px`,"--minimap-offset-px":(u.minimapCompact?0:H.value/2)+`px`}:void 0]),onMouseenter:t[26]||=e=>Cr.value=!0,onMouseleave:t[27]||=e=>Cr.value=!1},[O.value?(v(),h(`div`,Ee,[(v(),h(`svg`,{ref_key:`minimapSvg`,ref:Rt,key:`mm-${u.minimapMerged?`merged`:`split`}-${u.minimapCompact?`compact`:`normal`}`,xmlns:ve(ne),viewBox:`0 0 ${Math.max(0,z.value.width)} ${Math.max(0,z.value.height)}`,preserveAspectRatio:`none`},[g(`defs`,null,[se(oe,{t:`linear`,id:Nt.value,x1:`0%`,y1:`0%`,x2:`0%`,y2:`100%`,stops:[[`0%`,u.minimapLineColor,.31],[`100%`,`transparent`,0]]},null,8,[`id`,`stops`]),g(`clipPath`,{id:`selection_clip_${Nt.value}`},[g(`rect`,{x:G.value.x,y:`0`,width:Math.max(0,G.value.width),height:Math.max(z.value.height,0)},null,8,ke)],8,Oe)]),u.minimapCompact?(v(),h(`rect`,{key:0,class:`vue-ui-zoom-minimap-frame`,x:0,y:0,width:z.value.width,height:z.value.height,fill:`none`,stroke:u.minimapFrameColor,rx:3},null,8,Ae)):m(``,!0),e.$slots.slotMap?m(``,!0):(v(),h(f,{key:1},[u.minimapMerged?(v(),h(`path`,{key:0,d:`M${U.value.fullSet}`,stroke:`${u.minimapLineColor}`,fill:`none`,"stroke-width":`1`,"stroke-linecap":`round`,"stroke-linejoin":`round`,style:{opacity:`0.6`}},null,8,je)):m(``,!0),u.minimapMerged&&!u.minimapCompact?(v(),h(`path`,{key:1,d:`M${H.value/2},${Math.max(z.value.height,0)} ${U.value.fullSet} L${z.value.width-H.value/2},${Math.max(z.value.height,0)}Z`,fill:`url(#${Nt.value})`,stroke:`none`,style:{opacity:`0.6`}},null,8,Me)):u.minimapMerged?m(``,!0):(v(),h(f,{key:2},[(v(!0),h(f,null,b(W.value.filter(e=>e.type===`bar`&&e.isVisible),(e,t)=>(v(),h(`g`,null,[(v(!0),h(f,null,b(e.points,(n,r)=>(v(),h(f,null,[e&&!isNaN(n.y)?(v(),h(`rect`,{key:0,x:xn(n.x,t,r),y:n.v>=0?n.y:n.y0,width:Sn(t,r),height:n.v>=0?n.y0-n.y:n.y-n.y0,fill:e.color,style:{opacity:.6}},null,8,Ne)):m(``,!0)],64))),256))]))),256)),(v(!0),h(f,null,b(W.value.filter(e=>e.type===`line`),e=>(v(),h(`g`,null,[e.isVisible?(v(),h(`path`,{key:0,d:`M ${e.fullSet}`,fill:`none`,stroke:e.color,style:{opacity:`0.6`},"stroke-dasharray":e.dashed?`2 4`:0},null,8,Pe)):m(``,!0),e.isVisible&&u.cutNullValues?(v(!0),h(f,{key:1},b(e.fullMarkers,t=>(v(),h(`circle`,{key:`sel-dot-under-${e.key}-${t.i}`,cx:t.x,cy:t.y,r:`2`,fill:e.color,stroke:R.value,"stroke-width":`0.5`,style:{opacity:`0.6`}},null,8,Fe))),128)):m(``,!0)]))),256)),(v(!0),h(f,null,b(W.value.filter(e=>e.type===`plot`),e=>(v(),h(`g`,null,[(v(!0),h(f,null,b(e.points,t=>(v(),h(`g`,null,[e.isVisible&&t.value!==null?(v(),h(`circle`,{key:`sel-plot-under-${e.key}-${t.i}`,cx:t.x,cy:t.y,r:`2`,fill:e.color,stroke:R.value,"stroke-width":`0.5`,style:{opacity:`0.6`}},null,8,Ie)):m(``,!0)]))),256))]))),256))],64))],64)),g(`rect`,{x:G.value.x,y:0,width:Math.max(0,G.value.width),height:Math.max(z.value.height,0),fill:R.value,rx:u.minimapSelectionRadius,stroke:`none`},null,8,Le),g(`rect`,{x:G.value.x,y:0,width:G.value.width<0?0:G.value.width,height:Math.max(z.value.height,0),rx:u.minimapSelectionRadius,fill:R.value,style:_({opacity:er.value||k.value?0:1})},null,12,Re),g(`rect`,{x:G.value.x,y:0,width:G.value.width<0?0:G.value.width,height:Math.max(z.value.height,0),fill:u.minimapSelectedColor,rx:u.minimapSelectionRadius,style:_({opacity:u.minimapSelectedColorOpacity}),tabindex:`0`,role:`slider`,"aria-label":`Selected range`,"aria-valuemin":Number(C.min),"aria-valuemax":Number(C.max),"aria-valuenow":Number(E.value),"aria-valuetext":$.value.left&&$.value.right?`${$.value.left} – ${$.value.right}`:void 0,onKeydown:zr},null,44,ze),!u.minimapMerged&&An.value<0?(v(),h(`line`,{key:2,class:`slicer-minimap-zero-line`,x1:0,x2:z.value.width,y1:Mn.value,y2:Mn.value,stroke:u.minimapFrameColor,"stroke-width":`0.5`},null,8,Be)):m(``,!0),e.$slots.slotMap?m(``,!0):(v(),h(f,{key:3},[u.minimapMerged?(v(),h(`g`,Ve,[U.value&&U.value.sliced&&U.value.sliced.length?(v(),h(f,{key:0},[U.value.selectionSet?(v(),h(`path`,{key:0,d:`M ${U.value.selectionSet}`,stroke:`${u.minimapLineColor}`,fill:`transparent`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,He)):m(``,!0)],64)):m(``,!0),U.value&&U.value.firstPlot?(v(),h(`circle`,{key:1,cx:U.value.firstPlot.x,cy:U.value.firstPlot.y,"stroke-width":`0.5`,stroke:R.value,r:`3`,fill:u.minimapLineColor},null,8,Ue)):m(``,!0),U.value&&U.value.lastPlot?(v(),h(`circle`,{key:2,cx:U.value.lastPlot.x,cy:U.value.lastPlot.y,"stroke-width":`0.5`,stroke:R.value,r:`3`,fill:u.minimapLineColor},null,8,We)):m(``,!0)])):(v(),h(`g`,Ge,[(v(!0),h(f,null,b(W.value.filter(e=>e.type===`bar`&&e.isVisible),(e,t)=>(v(),h(`g`,null,[(v(!0),h(f,null,b(e.points,(n,r)=>(v(),h(f,null,[e&&!isNaN(n.y)?(v(),h(`rect`,{key:0,x:xn(n.x,t,r),y:n.v>=0?n.y:n.y0,width:Sn(t,r),height:n.v>=0?n.y0-n.y:n.y-n.y0,fill:e.color,style:_({opacity:+(r>=N.value&&r<P.value)})},null,12,Ke)):m(``,!0)],64))),256))]))),256)),(v(!0),h(f,null,b(W.value.filter(e=>e.type===`line`),(e,t)=>(v(),h(`g`,{key:String(e.key)},[e&&e.hasSelection&&e.selectionSet&&e.isVisible?(v(),h(`path`,{key:0,d:`M ${e.selectionSet}`,stroke:e.temperatureColors?`url(#temperature_grad_line_${t}_${u.uuid})`:e.color,fill:`transparent`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-dasharray":e.dashed?`2 4`:0},null,8,qe)):m(``,!0)]))),128)),(v(!0),h(f,null,b(W.value.filter(e=>e.type===`plot`),e=>(v(),h(`g`,{key:String(e.key)},[(v(!0),h(f,null,b(e.sliced,t=>(v(),h(`g`,null,[e.isVisible&&t.value!==null?(v(),h(`circle`,{key:0,cx:t.x,cy:t.y,r:`2`,fill:e.color,stroke:R.value,"stroke-width":`0.5`,style:{opacity:`0.6`}},null,8,Je)):m(``,!0)]))),256))]))),128))]))],64)),e.$slots.slotMap?ge(e.$slots,`slotMap`,fe(ce({width:Math.max(0,z.value.width),height:Math.max(0,z.value.height),zeroY:Mn.value,unitW:Math.max(0,H.value)})),void 0,!0,4):m(``,!0),K.value!==null&&!Q.value?(v(),h(`line`,fe(le({key:5},Ar.value)),null,16)):m(``,!0),g(`rect`,{x:0,y:0,width:Math.max(0,z.value.width),height:Math.max(0,z.value.height),fill:`transparent`,style:_([{"pointer-events":`all !important`},{cursor:u.enableSelectionDrag?Q.value?`grabbing`:`grab`:`default`}]),onMousedown:t[0]||=e=>Q.value=!0,onMouseup:t[1]||=e=>Q.value=!1,onMousemove:Un,onMouseleave:Wn},null,44,Ye),O.value&&u.minimapCompact?(v(),h(f,{key:6},[g(`g`,le({class:`vue-ui-zoom-compact-minimap-handle`,transform:`translate(${ai.value}, 0)`},Ur.value,{onKeydown:t[2]||=e=>Hr(`start`,e),onPointerdown:t[3]||=S(e=>Qr(`start`,e),[`stop`,`prevent`]),onPointermove:t[4]||=S(e=>Yr(`start`,e),[`stop`,`prevent`]),onPointerup:t[5]||=S(e=>Xr(`start`,e),[`stop`,`prevent`]),onPointercancel:t[6]||=S(e=>Xr(`start`,e),[`stop`,`prevent`]),onLostpointercapture:t[7]||=e=>Zr(`start`,e),onClick:t[8]||=S(()=>{},[`stop`,`prevent`])}),[g(`rect`,{class:`vue-ui-zoom-compact-minimap-handle-hit`,x:-ni.value,y:ii.value,width:ni.value,height:ri.value,fill:`transparent`},null,8,Ze),g(`rect`,{class:`vue-ui-zoom-compact-minimap-handle-visual`,x:-ti.value,y:0,width:ti.value,height:z.value.height,fill:u.handleFill||R.value,stroke:u.handleBorderColor||u.textColor,"stroke-width":u.handleBorderWidth,rx:3},null,8,Qe),u.handleType&&u.handleType!==`empty`?(v(),h(`g`,{key:0,class:`compact-handle-icon`,transform:`translate(${-ti.value}, 0)`,style:{"pointer-events":`none`}},[(v(),h(`svg`,{width:ti.value,height:z.value.height,viewBox:`0 0 20 20`,preserveAspectRatio:`xMidYMid meet`},[u.handleType===`arrow`?(v(),h(`path`,{key:0,d:`M 7 7 L 3 10 L 7 13 L 7 7 M 13 7 L 17 10 L 13 13 L 13 7`,fill:R.value,stroke:u.handleIconColor||u.textColor,"stroke-width":.618,"stroke-linejoin":`round`,"stroke-linecap":`round`},null,8,tt)):u.handleType===`chevron`?(v(),h(`path`,{key:1,d:`M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13`,fill:`none`,stroke:u.handleIconColor||u.textColor,"stroke-width":.618,"stroke-linejoin":`round`,"stroke-linecap":`round`},null,8,nt)):u.handleType===`grab`?(v(),h(`path`,{key:2,d:`M 8 5 A 1 1 0 0 0 8 7 A 1 1 0 0 0 8 5 M 8 9 A 1 1 0 0 0 8 11 A 1 1 0 0 0 8 9 M 8 13 A 1 1 0 0 0 8 15 A 1 1 0 0 0 8 13 M 12 5 A 1 1 0 0 0 12 7 A 1 1 0 0 0 12 5 M 12 9 A 1 1 0 0 0 12 11 A 1 1 0 0 0 12 9 M 12 13 A 1 1 0 0 0 12 15 A 1 1 0 0 0 12 13`,fill:u.handleIconColor||u.textColor,stroke:`none`,opacity:`0.6`},null,8,rt)):m(``,!0)],8,et))],8,$e)):m(``,!0)],16,Xe),g(`g`,le({class:`vue-ui-zoom-compact-minimap-handle`,transform:`translate(${oi.value}, 0)`},Wr.value,{onKeydown:t[9]||=e=>Hr(`end`,e),onPointerdown:t[10]||=S(e=>Qr(`end`,e),[`stop`,`prevent`]),onPointermove:t[11]||=S(e=>Yr(`end`,e),[`stop`,`prevent`]),onPointerup:t[12]||=S(e=>Xr(`end`,e),[`stop`,`prevent`]),onPointercancel:t[13]||=S(e=>Xr(`end`,e),[`stop`,`prevent`]),onLostpointercapture:t[14]||=e=>Zr(`end`,e),onClick:t[15]||=S(()=>{},[`stop`,`prevent`])}),[g(`rect`,{class:`vue-ui-zoom-compact-minimap-handle-hit`,x:0,y:ii.value,width:ni.value,height:ri.value,fill:`transparent`},null,8,at),g(`rect`,{class:`vue-ui-zoom-compact-minimap-handle-visual`,x:0,y:0,width:ti.value,height:z.value.height,fill:u.handleFill||R.value,stroke:u.handleBorderColor||u.textColor,"stroke-width":u.handleBorderWidth,rx:3},null,8,ot),u.handleType&&u.handleType!==`empty`?(v(),h(`g`,st,[(v(),h(`svg`,{width:ti.value,height:z.value.height,viewBox:`0 0 20 20`,preserveAspectRatio:`xMidYMid meet`},[u.handleType===`arrow`?(v(),h(`path`,{key:0,d:`M 7 7 L 3 10 L 7 13 L 7 7 M 13 7 L 17 10 L 13 13 L 13 7`,fill:R.value,stroke:u.handleIconColor||u.textColor,"stroke-width":.618,"stroke-linejoin":`round`,"stroke-linecap":`round`},null,8,lt)):u.handleType===`chevron`?(v(),h(`path`,{key:1,d:`M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13`,fill:`none`,stroke:u.handleIconColor||u.textColor,"stroke-width":.618,"stroke-linejoin":`round`,"stroke-linecap":`round`},null,8,ut)):u.handleType===`grab`?(v(),h(`path`,{key:2,d:`M 8 5 A 1 1 0 0 0 8 7 A 1 1 0 0 0 8 5 M 8 9 A 1 1 0 0 0 8 11 A 1 1 0 0 0 8 9 M 8 13 A 1 1 0 0 0 8 15 A 1 1 0 0 0 8 13 M 12 5 A 1 1 0 0 0 12 7 A 1 1 0 0 0 12 5 M 12 9 A 1 1 0 0 0 12 11 A 1 1 0 0 0 12 9 M 12 13 A 1 1 0 0 0 12 15 A 1 1 0 0 0 12 13`,fill:u.handleIconColor||u.textColor,stroke:`none`,opacity:`0.6`},null,8,dt)):m(``,!0)],8,ct))])):m(``,!0)],16,it)],64)):m(``,!0),e.$slots.slotMap?m(``,!0):(v(),h(f,{key:7},[u.minimapMerged?(v(),h(`g`,ft,[U.value&&U.value.firstPlot&&U.value.firstPlot.value!==null?(v(),h(`circle`,{key:0,cx:U.value.firstPlot.x,cy:U.value.firstPlot.y,"stroke-width":`0.5`,stroke:R.value,r:`4`,fill:u.minimapLineColor},null,8,pt)):m(``,!0),U.value&&U.value.firstPlot&&U.value.firstPlot.value!==null?(v(),h(`circle`,{key:1,cx:U.value.firstPlot.x,cy:U.value.firstPlot.y,r:2,fill:R.value},null,8,mt)):m(``,!0),U.value&&U.value.lastPlot&&U.value.lastPlot.value!==null?(v(),h(`circle`,{key:2,cx:U.value.lastPlot.x,cy:U.value.lastPlot.y,"stroke-width":`0.5`,stroke:R.value,r:`4`,fill:u.minimapLineColor},null,8,ht)):m(``,!0),U.value&&U.value.lastPlot&&U.value.lastPlot.value!==null?(v(),h(`circle`,{key:3,cx:U.value.lastPlot.x,cy:U.value.lastPlot.y,r:`2`,fill:R.value},null,8,gt)):m(``,!0)])):(v(),h(`g`,_t,[(v(!0),h(f,null,b(W.value.filter(e=>e.type===`line`),(e,t)=>(v(),h(`g`,{key:String(e.key)},[e&&e.hasSelection&&e.selectionSet&&e.isVisible?(v(),h(`path`,{key:0,d:`M ${e.selectionSet}`,stroke:e.temperatureColors?`url(#temperature_grad_line_${t}_${u.uuid})`:e.color,fill:`transparent`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-dasharray":e.dashed?`2 4`:0},null,8,vt)):m(``,!0),e.isVisible&&u.cutNullValues?(v(!0),h(f,{key:1},b(e.selectionMarkers,t=>(v(),h(`circle`,{key:`sel-dot-${e.key}-${t.i}`,cx:t.x,cy:t.y,r:`2.5`,fill:e.color,stroke:R.value,"stroke-width":`0.5`},null,8,yt))),128)):m(``,!0),e&&e.firstPlot&&e.isVisible&&e.firstPlot.value!==null?(v(),h(`circle`,{key:2,cx:e.firstPlot.x,cy:e.firstPlot.y,"stroke-width":`0.5`,stroke:R.value,r:`4`,fill:e.color},null,8,bt)):m(``,!0),e&&e.firstPlot&&e.isVisible&&e.firstPlot.value!==null?(v(),h(`circle`,{key:3,cx:e.firstPlot.x,cy:e.firstPlot.y,r:`2`,fill:R.value},null,8,xt)):m(``,!0),e&&e.lastPlot&&e.isVisible&&e.lastPlot.value!==null?(v(),h(`circle`,{key:4,cx:e.lastPlot.x,cy:e.lastPlot.y,"stroke-width":`0.5`,stroke:R.value,r:`4`,fill:e.color},null,8,St)):m(``,!0),e&&e.lastPlot&&e.isVisible&&e.lastPlot.value!==null?(v(),h(`circle`,{key:5,cx:e.lastPlot.x,cy:e.lastPlot.y,r:`2`,fill:R.value},null,8,Ct)):m(``,!0)]))),128)),(v(!0),h(f,null,b(W.value.filter(e=>e.type===`plot`),e=>(v(),h(`g`,{key:String(e.key)},[(v(!0),h(f,null,b(e.points,t=>(v(),h(`g`,null,[e.isVisible&&u.cutNullValues&&t.value!==null?(v(),h(`circle`,{key:`sel-plot-${e.key}-${t.i}`,cx:t.x,cy:t.y,r:`2.5`,fill:e.color,stroke:R.value,"stroke-width":`0.5`},null,8,wt)):m(``,!0)]))),256))]))),128))]))],64))],8,De))])):m(``,!0),g(`div`,{class:`slider-track`,style:_({visibility:O.value&&u.minimapCompact?`hidden`:`visible`})},null,4),g(`div`,{class:de({"range-highlight":!0,move:u.enableSelectionDrag}),onMousedown:t[16]||=e=>Q.value=!0,onMouseup:t[17]||=e=>Q.value=!1,style:_({...L.value,cursor:Q.value?`grabbing`:`grab`,visibility:O.value&&u.minimapCompact?`hidden`:`visible`})},null,38),u.enableRangeHandles&&!(O.value&&u.minimapCompact)?xe((v(),h(`input`,{key:1,"aria-label":`range-handle-left`,ref_key:`rangeStart`,ref:q,type:`range`,step:u.precision>0?1/10**u.precision:1,class:de({"range-left":!0,"range-handle":!0,"range-minimap":O.value&&u.verticalHandles,"range-invisible":O.value&&u.minimapCompact}),min:u.min,max:u.minimapCompact&&O.value&&!u.useValueRange?Math.max(0,B.value-1):u.max,tabindex:O.value?-1:0,"onUpdate:modelValue":t[18]||=e=>In.value=e,onFocus:t[19]||=e=>O.value&&e.target.blur(),onInput:t[20]||=e=>In.value=e.target.valueAsNumber,onChange:F,onKeyup:Se(F,[`enter`]),onBlur:F,onMouseenter:t[21]||=e=>Dr(`start`),onPointerup:F},null,42,Tt)),[[be,In.value,void 0,{number:!0}]]):m(``,!0),u.enableRangeHandles&&!(O.value&&u.minimapCompact)?xe((v(),h(`input`,{key:2,"aria-label":`range-handle-right`,ref_key:`rangeEnd`,ref:Gn,type:`range`,step:u.precision>0?1/10**u.precision:1,class:de({"range-right":!0,"range-handle":!0,"range-minimap":O.value&&u.verticalHandles,"range-invisible":O.value&&u.minimapCompact}),min:u.min,max:u.minimapCompact&&O.value&&!u.useValueRange?Math.max(0,B.value-1):u.max,tabindex:O.value?-1:0,onFocus:t[22]||=e=>O.value&&e.target.blur(),"onUpdate:modelValue":t[23]||=e=>Ln.value=e,onInput:t[24]||=e=>Ln.value=e.target.valueAsNumber,onChange:F,onKeyup:Se(F,[`enter`]),onBlur:F,onMouseenter:t[25]||=e=>Dr(`end`),onPointerup:F},null,42,Et)),[[be,Ln.value,void 0,{number:!0}]]):m(``,!0),$.value.left?(v(),h(`div`,{key:3,ref_key:`tooltipLeft`,ref:yr,class:de({"range-tooltip":!0,"range-tooltip-visible":Cr.value,"range-tooltip-arrow":L.value.arrowLeft&&!u.verticalHandles,"range-tooltip-arrow-left":!L.value.arrowLeft&&!u.verticalHandles}),style:_({left:L.value.tooltipLeft,color:ve(l)(u.selectColor),backgroundColor:u.selectColor,border:`1px solid ${R.value}`,zIndex:`${Er.value+4}`,visibility:Or.value||$.value.left===$.value.right?`hidden`:`visible`,top:O.value&&u.minimapCompact?`calc(-100% - 12px)`:`-100%`})},_e($.value.left),7)):m(``,!0),(Or.value||$.value.left===$.value.right)&&($.value.left||$.value.right)?(v(),h(`div`,{key:4,ref:`tooltipMerge`,class:de({"range-tooltip":!0,"range-tooltip-visible":Cr.value,"range-tooltip-arrow":!0,"range-tooltip-arrow-left":!L.value.arrowLeft&&!u.verticalHandles,"range-tooltip-arrow-right":!L.value.arrowRight&&!u.verticalHandles}),style:_({left:L.value.tooltipCenter,width:kr.value.width+`px`,color:ve(l)(u.selectColor),backgroundColor:u.selectColor,border:`1px solid ${R.value}`,zIndex:`4`,top:O.value&&u.minimapCompact?`calc(-100% - 12px)`:`-100%`})},_e($.value.left===$.value.right?$.value.left:`${$.value.left} - ${$.value.right}`),7)):m(``,!0),$.value.right?(v(),h(`div`,{key:5,ref_key:`tooltipRight`,ref:br,class:de({"range-tooltip":!0,"range-tooltip-visible":Cr.value,"range-tooltip-arrow":L.value.arrowRight&&!u.verticalHandles,"range-tooltip-arrow-right":!L.value.arrowRight&&!u.verticalHandles}),style:_({left:L.value.tooltipRight,color:ve(l)(u.selectColor),backgroundColor:u.selectColor,border:`1px solid ${R.value}`,zIndex:`4`,visibility:Or.value||$.value.left===$.value.right?`hidden`:`visible`,top:O.value&&u.minimapCompact?`calc(-100% - 12px)`:`-100%`})},_e($.value.right),7)):m(``,!0)],36)],44,Ce))}},[[`__scopeId`,`data-v-d5072eae`]]);export{kt as t};