vue-data-ui 3.27.1 → 3.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +97 -63
- package/dist/{Arrow-C2W0uGrq.js → Arrow-CITPKnWF.js} +1 -1
- package/dist/{BaseDraggableDialog-D_tuHEjO.js → BaseDraggableDialog-DHgIPVmz.js} +1 -1
- package/dist/BaseIcon-Cm-IJ179.js +1 -0
- package/dist/{BaseLegendToggle-Bq5FjyuI.js → BaseLegendToggle-Q3TiW9u1.js} +1 -1
- package/dist/BaseZoomControls-ByS_7fmI.js +1 -0
- package/dist/{ColorPicker-MLwiwxl5.js → ColorPicker-Dmus34hN.js} +1 -1
- package/dist/DataTable-0Vv-aGHD.js +1 -0
- package/dist/HillActions-qz6J_uK7.js +1 -0
- package/dist/{Legend-D8YoT1RJ.js → Legend-DM0ClX3D.js} +1 -1
- package/dist/{NonSvgPenAndPaper-CqtJpZKh.js → NonSvgPenAndPaper-Do6RcwEr.js} +1 -1
- package/dist/{PackageVersion-CdkxOy58.js → PackageVersion-C4ZM3Vf7.js} +1 -1
- package/dist/PenAndPaper-BGEp-TUm.js +1 -0
- package/dist/{Shape-Bp9YNtPc.js → Shape-CRe8woTu.js} +1 -1
- package/dist/SlicerPreview-CFFUOlQr.js +1 -0
- package/dist/{SparkTooltip-C5JMcBXT.js → SparkTooltip-Ch06CV71.js} +1 -1
- package/dist/{Title-BGYFqulv.js → Title-BliHuXfT.js} +1 -1
- package/dist/Tooltip-C1q0Qoh7.js +1 -0
- package/dist/UserOptions-uWHV_zPB.js +1 -0
- package/dist/{useResponsive-D2CPcpda.js → canvas-lib-22VpOI4_.js} +1 -1
- package/dist/{chartImage-CIvU_04o.js → chartImage-DPGnEuYM.js} +1 -1
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-graph.js +1 -0
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-pattern-seed.js +1 -1
- package/dist/components/vue-ui-pattern.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-D8t3Bm7s.js → dom-to-png-D56-Zgv4.js} +1 -1
- package/dist/{exposedLib-DHtyEc_G.js → exposedLib-BRtClmZy.js} +1 -1
- package/dist/{img-DiT4ivZ5.js → img-D4RQwASc.js} +1 -1
- package/dist/{labelUtils-CG3uVXoZ.js → labelUtils-CdtU-yB_.js} +1 -1
- package/dist/{lib-CV_IANZ6.js → lib-rPeBMZrn.js} +4 -4
- package/dist/package-DGRUegc-.js +1 -0
- package/dist/{pdf-BQSB1V3H.js → pdf-DAicVFxx.js} +1 -1
- package/dist/{render-common-BdZ5aRyn.js → render-common-CJz0wn0I.js} +1 -1
- package/dist/{resolveChartConfig-DZg-korK.js → resolveChartConfig-CIhClE5R.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +449 -0
- package/dist/types/vue-ui-graph.d.ts +21 -0
- package/dist/useChartExport-BZts4KFb.js +1 -0
- package/dist/useConfig-6jO1fkp5.js +1 -0
- package/dist/{useNestedProp-CB186vF2.js → useNestedProp-DnGoh-XS.js} +1 -1
- package/dist/useObjectBindings-DiMX4HGv.js +1 -0
- package/dist/{usePrinter-hLW3cv4N.js → usePrinter-sVoTzet1.js} +1 -1
- package/dist/useResponsive-CENUxfEL.js +1 -0
- package/dist/useSvgLabelLayout-D1I8sQUi.js +1 -0
- package/dist/useTimeLabelCollider-BTybMUFi.js +1 -0
- package/dist/useTransitions-ChGGrtrv.js +1 -0
- package/dist/utils.js +1 -1
- package/dist/vue-data-ui-CxiWUtNw.js +1 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-CW8ahywt.js +19 -0
- package/dist/vue-ui-accordion-S3nRtTU-.js +1 -0
- package/dist/vue-ui-age-pyramid-CxMwKICA.js +1 -0
- package/dist/vue-ui-annotator-CdCDYzdK.js +331 -0
- package/dist/vue-ui-bullet-ClnewIWQ.js +34 -0
- package/dist/vue-ui-bump-C6FuNDUg.js +8 -0
- package/dist/vue-ui-candlestick-CyewIjJk.js +22 -0
- package/dist/vue-ui-carousel-table-D0dD4kai.js +1 -0
- package/dist/vue-ui-chestnut-nS1vjCqH.js +1 -0
- package/dist/vue-ui-chord-B963Q_26.js +21 -0
- package/dist/vue-ui-circle-pack-DEY9X3jA.js +13 -0
- package/dist/vue-ui-cursor-CNv12HQG.js +1 -0
- package/dist/vue-ui-dag-s3-TMmid.js +9 -0
- package/dist/vue-ui-dashboard-B5zrGAvS.js +1 -0
- package/dist/{vue-ui-digits-CXKKmfGj.js → vue-ui-digits-DXQwmTUx.js} +2 -2
- package/dist/vue-ui-donut-CDryub1L.js +47 -0
- package/dist/{vue-ui-donut-CKkBtyPK.js → vue-ui-donut-DHfOfLBF.js} +2 -2
- package/dist/vue-ui-donut-evolution-C5pHSrza.js +2 -0
- package/dist/vue-ui-dumbbell-CQbGR7yM.js +9 -0
- package/dist/vue-ui-flow-B16Mj6MW.js +3 -0
- package/dist/vue-ui-funnel-Dh-xi_Qi.js +1 -0
- package/dist/vue-ui-galaxy-U_ZIP5vm.js +1 -0
- package/dist/vue-ui-gauge-Dr4zsf6D.js +1 -0
- package/dist/vue-ui-geo-DFebja0s.js +1 -0
- package/dist/vue-ui-gizmo-CssVcz-O.js +1 -0
- package/dist/vue-ui-graph-BB_97Qz7.js +7 -0
- package/dist/vue-ui-heatmap-DEBbVnrg.js +1 -0
- package/dist/vue-ui-hill-C1sHz3TI.js +1 -0
- package/dist/vue-ui-history-plot-CsBTJXR3.js +2 -0
- package/dist/vue-ui-horizontal-bar-D0kfcpEW.js +4 -0
- package/dist/vue-ui-kpi-CltKSYUI.js +1 -0
- package/dist/vue-ui-label-B_1kM28r.js +7 -0
- package/dist/vue-ui-mini-loader-7gqQI5jy.js +1 -0
- package/dist/vue-ui-molecule-DtoyWWTf.js +1 -0
- package/dist/vue-ui-mood-radar-ClOxfeH8.js +1 -0
- package/dist/vue-ui-nested-donuts-CULAXTg1.js +19 -0
- package/dist/vue-ui-onion-D7zu861i.js +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-Cjbc-WUG.js +9 -0
- package/dist/vue-ui-quadrant-DWAb_t6r.js +2 -0
- package/dist/vue-ui-quick-chart-oDZwgVo8.js +17 -0
- package/dist/vue-ui-radar-BWG_N0xO.js +1 -0
- package/dist/vue-ui-rating-CV2b0tjA.js +1 -0
- package/dist/vue-ui-relation-circle-BCRiS2n6.js +1 -0
- package/dist/vue-ui-ridgeline-VYcGUP_p.js +2 -0
- package/dist/vue-ui-rings-Dl0AjrRj.js +1 -0
- package/dist/vue-ui-scatter-DTa48HvG.js +9 -0
- package/dist/{vue-ui-skeleton-DI7pcimU.js → vue-ui-skeleton-C5mGG8hR.js} +3 -3
- package/dist/{vue-ui-smiley-D70sJZWl.js → vue-ui-smiley-VTdQetY0.js} +1 -1
- package/dist/vue-ui-spark-trend--frxeJ8f.js +1 -0
- package/dist/vue-ui-sparkbar-BS5v3HMo.js +1 -0
- package/dist/vue-ui-sparkgauge-B1TGfXvR.js +1 -0
- package/dist/vue-ui-sparkhistogram-Cs97AL6h.js +1 -0
- package/dist/vue-ui-sparkline-Bp9J6x7z.js +1 -0
- package/dist/vue-ui-sparkstackbar-BVuuRD10.js +1 -0
- package/dist/vue-ui-stackbar-CRuXn3XI.js +29 -0
- package/dist/vue-ui-stackline-Besmr9vq.js +39 -0
- package/dist/vue-ui-strip-plot-D-aRJkR7.js +2 -0
- package/dist/vue-ui-table-D_UdQwV3.js +14 -0
- package/dist/vue-ui-table-heatmap-BtziURiu.js +1 -0
- package/dist/vue-ui-table-sparkline-BdNo8fW_.js +1 -0
- package/dist/vue-ui-thermometer-TFg1SGY7.js +1 -0
- package/dist/vue-ui-timer-BdPksC26.js +64 -0
- package/dist/vue-ui-tiremarks-HWuO-eyj.js +1 -0
- package/dist/vue-ui-treemap-IegiAqaX.js +1 -0
- package/dist/vue-ui-waffle-BEyGfPks.js +1 -0
- package/dist/vue-ui-wheel-k8GNPGET.js +1 -0
- package/dist/vue-ui-word-cloud-D9_15Ve7.js +4 -0
- package/dist/vue-ui-world-rCp5Vb7u.js +19 -0
- package/dist/vue-ui-xy-42AXepcQ.js +31 -0
- package/dist/vue-ui-xy-CFgFg11v.js +24 -0
- package/dist/vue-ui-xy-canvas-CeC3gcrW.js +9 -0
- package/dist/vue_ui_graph-B1ACwQj7.js +1 -0
- package/package.json +3 -3
- package/dist/BaseIcon-DdIyewwY.js +0 -1
- package/dist/BaseZoomControls-DoYifY2y.js +0 -1
- package/dist/DataTable-WNecJMcY.js +0 -1
- package/dist/HillActions-CHg1AQ3p.js +0 -1
- package/dist/PenAndPaper-IMw576MC.js +0 -1
- package/dist/SlicerPreview-CNUciSbY.js +0 -1
- package/dist/Tooltip-Cus2-XNQ.js +0 -1
- package/dist/UserOptions-DTxMeZv3.js +0 -1
- package/dist/package-DE5cU1Rg.js +0 -1
- package/dist/useChartExport-DtPNpc9M.js +0 -1
- package/dist/useConfig-CKdzPrcf.js +0 -1
- package/dist/useObjectBindings-Dse7YyAf.js +0 -1
- package/dist/useTimeLabelCollider-XQf_S7-z.js +0 -1
- package/dist/useTransitions-DfSHzsdz.js +0 -1
- package/dist/vue-data-ui-DyYgLIZN.js +0 -1
- package/dist/vue-ui-3d-bar-BZAoyWkc.js +0 -19
- package/dist/vue-ui-accordion-BNvevckx.js +0 -1
- package/dist/vue-ui-age-pyramid-DkA6vpU3.js +0 -1
- package/dist/vue-ui-annotator-DuQME4Hh.js +0 -331
- package/dist/vue-ui-bullet-BVs8JX8S.js +0 -34
- package/dist/vue-ui-bump-DYdm3EvF.js +0 -10
- package/dist/vue-ui-candlestick-DZgxl4mW.js +0 -22
- package/dist/vue-ui-carousel-table-BB7DsTUt.js +0 -1
- package/dist/vue-ui-chestnut-Bo1h5rBt.js +0 -1
- package/dist/vue-ui-chord-B6_veyvO.js +0 -21
- package/dist/vue-ui-circle-pack-Bm7e2YNh.js +0 -13
- package/dist/vue-ui-cursor-TidZDuSh.js +0 -1
- package/dist/vue-ui-dag-BiN_AnLo.js +0 -9
- package/dist/vue-ui-dashboard-zepAVN_W.js +0 -1
- package/dist/vue-ui-donut-DLDUpjDU.js +0 -47
- package/dist/vue-ui-donut-evolution-BxMTdE5G.js +0 -2
- package/dist/vue-ui-dumbbell-C8rNwdz0.js +0 -9
- package/dist/vue-ui-flow-Dru76A2O.js +0 -3
- package/dist/vue-ui-funnel-D_u1h5S9.js +0 -1
- package/dist/vue-ui-galaxy-sBEH18Xj.js +0 -1
- package/dist/vue-ui-gauge-Do3RN8ne.js +0 -1
- package/dist/vue-ui-geo-DDbtx_iJ.js +0 -1
- package/dist/vue-ui-gizmo-eic6xLjB.js +0 -1
- package/dist/vue-ui-heatmap-DlmJRsM8.js +0 -1
- package/dist/vue-ui-hill-C5oiuIXh.js +0 -1
- package/dist/vue-ui-history-plot-BJjnkWcT.js +0 -2
- package/dist/vue-ui-horizontal-bar-BRDBJEl1.js +0 -4
- package/dist/vue-ui-kpi-C-eed3jO.js +0 -1
- package/dist/vue-ui-label-B4pkXBxc.js +0 -7
- package/dist/vue-ui-mini-loader-CElmv_iF.js +0 -1
- package/dist/vue-ui-molecule-BeyQWZU9.js +0 -1
- package/dist/vue-ui-mood-radar-Bh0kHfiZ.js +0 -1
- package/dist/vue-ui-nested-donuts-FlnJfDaF.js +0 -19
- package/dist/vue-ui-onion-BjhSpjtW.js +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CHV6XDti.js +0 -9
- package/dist/vue-ui-quadrant-BaKSTJDv.js +0 -2
- package/dist/vue-ui-quick-chart-Nc2mVlle.js +0 -17
- package/dist/vue-ui-radar-BzUfkLlC.js +0 -1
- package/dist/vue-ui-rating-BwWXvbAg.js +0 -1
- package/dist/vue-ui-relation-circle-nAZEg-BL.js +0 -1
- package/dist/vue-ui-ridgeline-DxLZg1E2.js +0 -2
- package/dist/vue-ui-rings-BOti0NGb.js +0 -1
- package/dist/vue-ui-scatter-CCNMggyo.js +0 -9
- package/dist/vue-ui-spark-trend-BVtfEalS.js +0 -1
- package/dist/vue-ui-sparkbar-CdsLI7Ke.js +0 -1
- package/dist/vue-ui-sparkgauge-wmj5Wnnp.js +0 -1
- package/dist/vue-ui-sparkhistogram-D8S_P_P4.js +0 -1
- package/dist/vue-ui-sparkline-BjsJnS_9.js +0 -1
- package/dist/vue-ui-sparkstackbar-ZN8LXzoV.js +0 -1
- package/dist/vue-ui-stackbar-Dx_EN3pT.js +0 -29
- package/dist/vue-ui-stackline-DW-oxJvA.js +0 -39
- package/dist/vue-ui-strip-plot-D7kjJ3Qh.js +0 -2
- package/dist/vue-ui-table-CaFVLHxE.js +0 -14
- package/dist/vue-ui-table-heatmap-Ctf7Rhqo.js +0 -1
- package/dist/vue-ui-table-sparkline-C0I0cXBS.js +0 -1
- package/dist/vue-ui-thermometer-B6og15Al.js +0 -1
- package/dist/vue-ui-timer-DgXvO2Q7.js +0 -64
- package/dist/vue-ui-tiremarks-Dh6fZ454.js +0 -1
- package/dist/vue-ui-treemap-7JuvN6P_.js +0 -1
- package/dist/vue-ui-waffle-BqvGzfse.js +0 -1
- package/dist/vue-ui-wheel-SdwJqKA7.js +0 -1
- package/dist/vue-ui-word-cloud-1WVV_k12.js +0 -4
- package/dist/vue-ui-world-DjMy_utm.js +0 -19
- package/dist/vue-ui-xy-DaozHMfg.js +0 -31
- package/dist/vue-ui-xy-canvas-CegvS9RR.js +0 -9
- package/dist/vue-ui-xy-rGHSI1am.js +0 -24
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./lib-CV_IANZ6.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=>({v1c62b01d: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`,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}/>`:{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-4852569f`]]);export{u as n,v as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t}from"./BaseIcon-DdIyewwY.js";import{r as n}from"./exposedLib-DHtyEc_G.js";import{createCommentVNode as r,createElementBlock as i,createElementVNode as a,createVNode as o,normalizeClass as s,normalizeStyle as c,openBlock as l,toDisplayString as u,unref as d}from"vue";var f=[`disabled`],p=/*#__PURE__*/ e({__name:`BaseZoomControls`,props:{config:{type:Object,default(){return{}}},scale:{type:Number,default:0},withDirection:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1},isCursorPointer:{type:Boolean,default:!1}},emits:[`zoomIn`,`zoomOut`,`resetZoom`,`switchDirection`],setup(e,{emit:p}){let m=p;return(p,h)=>(l(),i(`div`,{class:s({"vue-data-ui-zoom-controls":!0,"vue-data-ui-zoom-controls-fullscreen":e.isFullscreen}),"data-dom-to-png-ignore":``,style:c({border:e.config.style.chart.controls.border,backgroundColor:e.config.style.chart.controls.backgroundColor,padding:e.config.style.chart.controls.padding,borderRadius:e.config.style.chart.controls.borderRadius,"--vue-data-ui-zoom-control-button-color":e.config.style.chart.controls.buttonColor,"--vue-data-ui-zoom-control-button-color-hover":d(n)(e.config.style.chart.controls.buttonColor,.2)})},[a(`button`,{onClick:h[0]||=e=>m(`zoomOut`),class:`vue-data-ui-zoom-controls-button`,"data-cy-zoom-out":``,style:c({cursor:e.isCursorPointer?`pointer`:`default`})},[o(t,{name:`zoomMinus`,stroke:e.config.style.chart.controls.color,size:e.config.style.chart.controls.fontSize*1.2},null,8,[`stroke`,`size`])],4),a(`button`,{class:`vue-data-ui-zoom-controls-button-zoom`,onClick:h[1]||=e=>m(`resetZoom`),"data-cy-zoom-reset":``,style:c({color:e.config.style.chart.controls.color,width:e.config.style.chart.controls.fontSize*4+`px`,borderRadius:e.config.style.chart.controls.borderRadius,fontSize:e.config.style.chart.controls.fontSize+`px`,cursor:e.isCursorPointer?`pointer`:`default`})},u(Math.round(e.scale*100))+`% `,5),a(`button`,{onClick:h[2]||=e=>m(`zoomIn`),class:`vue-data-ui-zoom-controls-button`,"data-cy-zoom-in":``,style:c({cursor:e.isCursorPointer?`pointer`:`default`})},[o(t,{name:`zoomPlus`,stroke:e.config.style.chart.controls.color,size:e.config.style.chart.controls.fontSize*1.2},null,8,[`stroke`,`size`])],4),a(`button`,{disabled:e.scale===1,onClick:h[3]||=e=>m(`resetZoom`),class:`vue-data-ui-zoom-controls-button`,style:c({cursor:e.isCursorPointer?`pointer`:`default`})},[o(t,{name:`revert`,stroke:e.config.style.chart.controls.color,size:e.config.style.chart.controls.fontSize*1.2},null,8,[`stroke`,`size`])],12,f),e.withDirection?(l(),i(`button`,{key:0,onClick:h[4]||=e=>m(`switchDirection`),class:`vue-data-ui-zoom-controls-button`,style:c({cursor:e.isCursorPointer?`pointer`:`default`})},[o(t,{name:`direction`,stroke:e.config.style.chart.controls.color,size:e.config.style.chart.controls.fontSize*1.2},null,8,[`stroke`,`size`])],4)):r(``,!0)],6))}},[[`__scopeId`,`data-v-b5d92405`]]);export{p as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./Shape-Bp9YNtPc.js";import{t}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as n}from"./BaseIcon-DdIyewwY.js";import{Fragment as r,computed as i,createCommentVNode as a,createElementBlock as o,createElementVNode as s,createVNode as c,normalizeClass as l,normalizeStyle as u,onMounted as d,openBlock as f,ref as p,renderList as m,renderSlot as h,toDisplayString as g,unref as _,useCssVars as v,withKeys as y}from"vue";var b={class:`vue-ui-data-table`},x={style:{display:`flex`,"align-items":`center`,"justify-content":`flex-end`,"padding-right":`3px`,gap:`3px`}},S={style:{width:`12px`,height:`12px`}},C={key:0,height:`12`,width:`12`,viewBox:`0 0 20 20`,style:{background:`none`}},w=[`fill`],T=[`data-cell`],E={dir:`auto`,style:{display:`flex`,"align-items":`center`,gap:`5px`,"justify-content":`flex-end`,width:`100%`,"padding-right":`3px`}},D={key:0,height:`12`,width:`12`,viewBox:`0 0 20 20`,style:{background:`none`,overflow:`visible`}},O=/*#__PURE__*/ t({__name:`DataTable`,props:{colNames:{type:Array,default(){return[]}},head:Array,body:Array,title:String,config:Object,withCloseButton:{type:Boolean,default:!0},isCursorPointer:{type:Boolean,default:!1}},emits:[`close`],setup(t,{emit:O}){v(e=>({v7ded12c6:_(F)}));let k=t,{backgroundColor:A,color:j,outline:M}=k.config.th,{backgroundColor:N,color:P,outline:F}=k.config.td,I=i(()=>k.config.breakpoint),L=p(null),R=p(!1);d(()=>{let e=new ResizeObserver(e=>{e.forEach(e=>{R.value=e.contentRect.width<I.value})});L.value&&e.observe(L.value)});let z=O;return(i,d)=>(f(),o(`div`,{ref_key:`tableContainer`,ref:L,style:u(`width: 100%; container-type: inline-size; position:relative;${t.withCloseButton?`padding-top: 36px;`:``}overflow:auto`),class:l({"atom-data-table":!0,"vue-ui-responsive":R.value})},[t.withCloseButton?(f(),o(`div`,{key:0,"data-dom-to-png-ignore":``,role:`button`,tabindex:`0`,style:u(`width:32px; position: absolute; top: 0; right:4px; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; width: 32px; cursor:${t.isCursorPointer?`pointer`:`default`}; background:${_(A)};`),onClick:d[0]||=e=>z(`close`),onKeypress:d[1]||=y(e=>z(`close`),[`enter`])},[c(n,{name:`close`,stroke:_(j),"stroke-width":2},null,8,[`stroke`])],36)):a(``,!0),s(`table`,b,[s(`caption`,{style:u({backgroundColor:_(A),color:_(j),outline:_(M)}),class:`vue-ui-data-table__caption`},g(t.title),5),s(`thead`,null,[s(`tr`,{role:`row`,style:u([{"font-variant-numeric":`tabular-nums`},{backgroundColor:_(A),color:_(j)}]),class:`vue-ui-data-table__thead-row`},[(f(!0),o(r,null,m(t.head,(e,t)=>(f(),o(`th`,{role:`cell`,style:u({outline:_(M)}),key:`th_${t}`},[s(`div`,x,[s(`div`,S,[e?.color?(f(),o(`svg`,C,[s(`circle`,{cx:`10`,cy:`10`,r:`10`,fill:e.color},null,8,w)])):a(``,!0)]),h(i.$slots,`th`,{th:e},void 0,!0)])],4))),128))],4)]),s(`tbody`,null,[(f(!0),o(r,null,m(t.body,(n,d)=>(f(),o(`tr`,{role:`row`,style:u([{"font-variant-numeric":`tabular-nums`},{backgroundColor:_(N),color:_(P)}]),class:l({"vue-ui-data-table__tbody__row":!0,"vue-ui-data-table__tbody__row-even":d%2==0,"vue-ui-data-table__tbody__row-odd":d%2!=0})},[(f(!0),o(r,null,m(n,(n,r)=>(f(),o(`td`,{role:`cell`,"data-cell":(t.colNames[r]&&t.colNames[r].name?t.colNames[r].name:``)||t.colNames[r]||``,style:u({outline:_(F)}),class:`vue-ui-data-table__tbody__td`},[s(`div`,E,[n?.color?(f(),o(`svg`,D,[c(e,{plot:{x:10,y:10},color:n.color,radius:9,shape:t.config.shape||n.shape||`circle`},null,8,[`color`,`shape`])])):a(``,!0),h(i.$slots,`td`,{td:n},void 0,!0)])],12,T))),256))],6))),256))])])],6))}},[[`__scopeId`,`data-v-c3927505`]]);export{O as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t}from"./BaseIcon-DdIyewwY.js";import{Fragment as n,computed as r,createCommentVNode as i,createElementBlock as a,createElementVNode as o,createVNode as s,normalizeClass as c,normalizeStyle as l,onBeforeUnmount as u,onMounted as d,openBlock as f,ref as p,renderSlot as m,toDisplayString as h}from"vue";var g=[`aria-label`],_=[`aria-label`],v=[`aria-label`],y=/*#__PURE__*/ e(/* @__PURE__ */ Object.assign({name:`HillActions`},{__name:`HillActions`,props:{isEditing:{type:Boolean,default:!1},isEditable:{type:Boolean,default:!0},isFullscreen:{type:Boolean,default:!1},position:{type:String,default:`left`,validator:e=>[`left`,`right`].includes(e)},color:{type:String,default:`#2D353C`},backgroundColor:{type:String,default:`#FFFFFF`},translations:{type:Object,default(){return{edit:`Edit`,cancel:`Cancel`,save:`Save`}}},showTooltips:{type:Boolean,default:!0},isCursorPointer:{type:Boolean,default:!1},zIndex:{type:Number,default:1}},emits:[`update`,`cancel`,`save`],setup(e,{emit:y}){let b=e,x=y,S=p(!0),C=p(null),w=r(()=>({zIndex:b.zIndex,position:b.isFullscreen?`fixed`:`absolute`,top:`0`,left:b.position===`left`?b.isFullscreen?`12px`:`0`:`auto`,right:b.position===`right`?b.isFullscreen?`12px`:`0`:`auto`,height:`36px`,padding:`4px`,background:`transparent`,display:`flex`,alignItems:`center`,gap:`4px`,overflow:`visible`})),T=r(()=>({cursor:b.isCursorPointer?`pointer`:`default`,background:b.backgroundColor,color:b.color}));function E(){if(typeof window>`u`){S.value=!0;return}S.value=window.innerWidth>600}function D(e){E(),C.value=e}function O(e){C.value===e&&(C.value=null)}function k(e){return{"button-info-left":b.position===`left`,"button-info-right":b.position===`right`,"button-info-left-visible":b.position===`left`&&C.value===e,"button-info-right-visible":b.position===`right`&&C.value===e}}function A(e){b.showTooltips&&D(e)}function j(e){O(e),x(e)}return d(()=>{E(),window.addEventListener(`resize`,E,{passive:!0})}),u(()=>{window.removeEventListener(`resize`,E)}),(r,u)=>e.isEditable?(f(),a(`div`,{key:0,class:`vue-ui-hill-actions`,style:l(w.value),"data-dom-to-png-ignore":``},[e.isEditing?(f(),a(n,{key:1},[o(`button`,{type:`button`,class:`vue-ui-hill-actions__button`,style:l(T.value),"aria-label":e.translations.cancel,onMouseenter:u[5]||=e=>A(`cancel`),onMouseout:u[6]||=e=>O(`cancel`),onFocus:u[7]||=e=>A(`cancel`),onBlur:u[8]||=e=>O(`cancel`),onClick:u[9]||=e=>j(`cancel`)},[m(r.$slots,`hill-cancel`,{},()=>[s(t,{name:`circleCancel`,stroke:e.color,style:{"pointer-events":`none`}},null,8,[`stroke`])],!0),e.showTooltips&&S.value&&e.translations.cancel?(f(),a(`div`,{key:0,dir:`auto`,class:c(k(`cancel`)),style:l({background:e.backgroundColor,color:e.color})},h(e.translations.cancel),7)):i(``,!0)],44,_),o(`button`,{type:`button`,class:`vue-ui-hill-actions__button`,style:l(T.value),"aria-label":e.translations.save,onMouseenter:u[10]||=e=>A(`save`),onMouseout:u[11]||=e=>O(`save`),onFocus:u[12]||=e=>A(`save`),onBlur:u[13]||=e=>O(`save`),onClick:u[14]||=e=>j(`save`)},[m(r.$slots,`hill-save`,{},()=>[s(t,{name:`save`,stroke:e.color,style:{"pointer-events":`none`}},null,8,[`stroke`])],!0),e.showTooltips&&S.value&&e.translations.save?(f(),a(`div`,{key:0,dir:`auto`,class:c(k(`save`)),style:l({background:e.backgroundColor,color:e.color})},h(e.translations.save),7)):i(``,!0)],44,v)],64)):(f(),a(`button`,{key:0,type:`button`,class:`vue-ui-hill-actions__button`,style:l(T.value),"aria-label":e.translations.edit,onMouseenter:u[0]||=e=>A(`update`),onMouseout:u[1]||=e=>O(`update`),onFocus:u[2]||=e=>A(`update`),onBlur:u[3]||=e=>O(`update`),onClick:u[4]||=e=>j(`update`)},[m(r.$slots,`hill-edit`,{},()=>[s(t,{name:`move`,stroke:e.color,style:{"pointer-events":`none`}},null,8,[`stroke`])],!0),e.showTooltips&&S.value&&e.translations.edit?(f(),a(`div`,{key:0,dir:`auto`,class:c(k(`update`)),style:l({background:e.backgroundColor,color:e.color})},h(e.translations.edit),7)):i(``,!0)],44,g))],4)):i(``,!0)}}),[[`__scopeId`,`data-v-f3e67d0c`]]);export{y as default};
|
|
@@ -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-CV_IANZ6.js";import{t as a}from"./BaseIcon-DdIyewwY.js";import{t as o}from"./ColorPicker-MLwiwxl5.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 h,normalizeStyle as g,onBeforeUnmount as ee,onMounted as te,openBlock as ne,ref as _,renderSlot as v,toDisplayString as re,unref as ie,vModelText as ae,watch as y,withCtx as oe,withDirectives as se}from"vue";var ce=/* @__PURE__ */ e({default:()=>b}),le={"aria-hidden":`true`,viewBox:`0 0 6 12`,style:{width:`100%`}},ue=[`fill`],de=[`fill`],fe=[`fill`],pe=[`disabled`],me=750,he=8,ge=2,b={__name:`PenAndPaper`,props:{svgRef:{type:[Object,null,void 0],required:!0},color:{type:String,default:`#2D353C`},backgroundColor:{type:String,default:`#FFFFFF`},active:{type:Boolean,default:!1},scale:{type:Number,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:ce}){let b=e,_e=ce,x=_([]),S=_([]),C=_(b.color),w=_(2),T=_(!1),ve=_(``),E=_(null),D=_(null),O=_(null),ye=_(null),k=_(null),be=_(null),A=_(!1),j=_(null),xe=_(``),M=_(``),N=_(!1),Se=_(!1),P=_(null),Ce=_(null),we=_(!1),F=_(``),Te=/* @__PURE__ */ new Map,Ee=_(`arrow-def-${r()}`),I=_(!1),L=_(null),De=_({x:0,y:0}),R=_([``]),z=_({row:0,col:0}),B=_(16),Oe=_(!1),ke=_(``),Ae=_(!1),je=[`arrow`,`text`,`line`,`draw`],V=_(0),H=s(()=>je[V.value]),Me={arrow:`plotArrow`,text:`text`,line:`plotLine`,draw:`annotator`},Ne=_(`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 Pe(e){let t=e?.target;if(!(t instanceof Element))return null;let n=t.closest(`.vue-data-ui-doodle`);return n&&E.value?.contains(n)?n:null}function Fe(e){let t=e?.target;if(!(t instanceof Element))return null;let n=t.closest(`.vue-data-ui-selection-handle`);return n&&E.value?.contains(n)?n:null}function Ie(e){let t=e?.target;if(!(t instanceof Element))return null;let n=t.closest(`.vue-data-ui-selection-delete`);return n&&E.value?.contains(n)?n:null}function Le(e){if(!e)return``;let t=e.getAttribute(`data-doodle-id`);return t||(t=r(),e.setAttribute(`data-doodle-id`,t)),t}function U(){return E.value?Array.from(E.value.children).filter(e=>e.classList?.contains(`vue-data-ui-doodle`)).map(e=>e.outerHTML).join(``):``}function Re(e){if(!E.value)return;K();let t=E.value.querySelector(`.vue-data-ui-svg-caret`);if(t&&t.remove(),Array.from(E.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=>E.value.appendChild(e))}}function W(e,t=null){if(e===U())return;let n=Date.now(),r=x.value[x.value.length-1];t&&r?.mergeKey===t&&n-r.timestamp<=me?r.timestamp=n:x.value.push({state:e,mergeKey:t,timestamp:n}),S.value=[]}function ze(e){let t=e.touches?.[0]||e.changedTouches?.[0];return{x:t?t.clientX:e.clientX,y:t?t.clientY:e.clientY}}function Be(e,t){let n=b.svgRef;if(!n||!e)return null;let{x:r,y:i}=ze(t),a=n.createSVGPoint();a.x=r,a.y=i;let o=e.getScreenCTM()?.inverse();return o?a.matrixTransform(o):null}function Ve(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 He(e,t){let n=Be(e,t);if(!n)return!1;let r=e.tagName.toLowerCase(),i=he*b.scale;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 Ve(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=Math.max(2*b.scale,2);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 Ue(e){return Pe(e)||E.value&&Array.from(E.value.querySelectorAll(`.vue-data-ui-doodle`)).reverse().find(t=>He(t,e))||null}function We(){be.value?.parentNode&&be.value.parentNode.removeChild(be.value),be.value=null}function G(){if(We(),!I.value&&b.active&&E.value&&k.value&&E.value.contains(k.value))try{let e=k.value,t=e.getBBox(),n=4*b.scale,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`,b.color),a.setAttribute(`stroke-width`,Math.max(1,b.scale)),a.setAttribute(`stroke-dasharray`,`${4*b.scale} ${3*b.scale}`),a.setAttribute(`pointer-events`,`none`),r.appendChild(a),e.tagName.toLowerCase()===`line`){let t=Math.max(4,5*b.scale),n=Math.max(1,1.5*b.scale);[{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:a,y:o})=>{let s=document.createElementNS(i,`circle`);s.setAttribute(`class`,`vue-data-ui-selection-handle`),s.setAttribute(`data-line-endpoint`,e),s.setAttribute(`cx`,a),s.setAttribute(`cy`,o),s.setAttribute(`r`,t),s.setAttribute(`fill`,b.backgroundColor),s.setAttribute(`stroke`,b.color),s.setAttribute(`stroke-width`,n),s.setAttribute(`pointer-events`,`all`),r.appendChild(s)})}let o=Math.max(20,24*b.scale),s=Math.max(1,b.scale),c=t.x+t.width+n+4*b.scale,l=t.y-n-o-4*b.scale,u=document.createElementNS(i,`g`);u.setAttribute(`class`,`vue-data-ui-selection-delete`),u.setAttribute(`role`,`button`),u.setAttribute(`tabindex`,`0`),u.setAttribute(`aria-label`,`Delete selected drawing`),u.setAttribute(`pointer-events`,`all`);let d=document.createElementNS(i,`rect`);d.setAttribute(`x`,c),d.setAttribute(`y`,l),d.setAttribute(`width`,o),d.setAttribute(`height`,o),d.setAttribute(`rx`,4*b.scale),d.setAttribute(`fill`,b.backgroundColor),d.setAttribute(`stroke`,J.value),d.setAttribute(`stroke-width`,s),d.setAttribute(`vector-effect`,`non-scaling-stroke`);let f=o/24,p=document.createElementNS(i,`path`);p.setAttribute(`d`,`M 8 8 L 16 16 M 16 8 L 8 16`),p.setAttribute(`transform`,`translate(${c} ${l}) scale(${f})`),p.setAttribute(`fill`,`none`),p.setAttribute(`stroke`,b.color),p.setAttribute(`stroke-width`,Math.max(1.25,1.5*b.scale)),p.setAttribute(`stroke-linecap`,`round`),p.setAttribute(`stroke-linejoin`,`round`),p.setAttribute(`vector-effect`,`non-scaling-stroke`),p.setAttribute(`pointer-events`,`none`),u.appendChild(d),u.appendChild(p),u.addEventListener(`keydown`,e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),Ge(e))}),r.appendChild(u);let m=e.getAttribute(`transform`);m&&r.setAttribute(`transform`,m),E.value.appendChild(r),be.value=r}catch{We()}}function K(){k.value=null,A.value=!1,j.value=null,xe.value=``,M.value=``,N.value=!1,Se.value=!1,P.value=null,Ce.value=null,We(),Z()}function Ge(e=null){if(!b.active||!k.value||!E.value||!E.value.contains(k.value))return;e?.cancelable&&e.preventDefault(),e?.stopPropagation?.(),e?.stopImmediatePropagation?.();let t=U();k.value.remove(),W(t),K()}function Ke(e){return e?e.tagName.toLowerCase()===`text`||e.tagName.toLowerCase()===`circle`?e.getAttribute(`fill`):e.getAttribute(`stroke`):null}function qe(e){if(e){we.value=!0;try{let t=e.tagName.toLowerCase(),n=Ke(e);if(n&&(C.value=n),t===`text`){V.value=je.indexOf(`text`);let t=Number(e.getAttribute(`font-size`));Number.isFinite(t)&&b.scale&&(B.value=t/b.scale);return}if(t===`line`?V.value=e.hasAttribute(`marker-end`)?je.indexOf(`arrow`):je.indexOf(`line`):V.value=je.indexOf(`draw`),t===`circle`){let t=Number(e.getAttribute(`r`));Number.isFinite(t)&&b.scale&&(w.value=t*2/b.scale)}else{let t=Number(e.getAttribute(`stroke-width`));Number.isFinite(t)&&b.scale&&(w.value=t/b.scale)}}finally{p(()=>{we.value=!1})}}}function Je(e){b.active&&e&&E.value?.contains(e)&&(Le(e),k.value=e,qe(e),p(G))}function Ye(e){if(!b.active||!E.value||I.value)return;if(Ie(e)){Ge(e);return}let t=Fe(e);if(t&&k.value&&k.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;P.value=n,Ce.value=Be(k.value,e),A.value=!1,N.value=!1,Se.value=!1,M.value=U(),Z(e);return}let n=Ue(e);if(!n){K();return}e.cancelable&&e.preventDefault(),Se.value=k.value===n,Je(n);let{x:r,y:i}=Y(e);A.value=!0,N.value=!1,j.value={x:r,y:i},xe.value=n.getAttribute(`transform`)||``,M.value=U(),Z(e)}function Xe(e){if(!b.active||!k.value)return;if(Z(e),P.value){let t=Be(k.value,e);if(!t)return;let n=Ce.value;if(!N.value&&n&&Math.hypot(t.x-n.x,t.y-n.y)<ge*b.scale)return;e.cancelable&&e.preventDefault(),N.value=!0,P.value===`start`?(k.value.setAttribute(`x1`,t.x),k.value.setAttribute(`y1`,t.y)):(k.value.setAttribute(`x2`,t.x),k.value.setAttribute(`y2`,t.y)),G();return}if(!A.value||!j.value)return;let{x:t,y:n}=Y(e),r=t-j.value.x,i=n-j.value.y,a=Math.hypot(r,i);if(!N.value&&a<ge*b.scale)return;e.cancelable&&e.preventDefault(),N.value=!0;let o=xe.value.trim();k.value.setAttribute(`transform`,`${o?`${o} `:``}translate(${r} ${i})`),G()}function q(e){let t=k.value,n=!P.value&&t&&t.tagName.toLowerCase()===`text`&&Se.value&&!N.value&&!I.value;if(N.value&&M.value&&W(M.value),A.value=!1,j.value=null,M.value=``,N.value=!1,Se.value=!1,P.value=null,Ce.value=null,xe.value=t?.getAttribute(`transform`)||``,t&&E.value?.contains(t)&&G(),n&&t&&E.value?.contains(t)){nt(t,e),Z(e);return}Z(e)}function Ze(e){if(!b.active||!k.value||we.value)return;let t=k.value,n=t.tagName.toLowerCase();if(Ke(t)===e)return;let r=U();if(n===`text`||n===`circle`)t.setAttribute(`fill`,e);else if(t.setAttribute(`stroke`,e),n===`line`&&t.hasAttribute(`marker-end`)){let n=_t(e);n&&t.setAttribute(`marker-end`,`url(#${n})`)}I.value&&t===L.value||W(r,`color:${Le(t)}`),G(),I.value&&t===L.value&&ct()}function Qe(e){if(!b.active||!k.value||we.value)return;let t=k.value,n=t.tagName.toLowerCase();if(n===`text`)return;let r=Number(e)*b.scale;if((n===`circle`?Number(t.getAttribute(`r`))*2:Number(t.getAttribute(`stroke-width`)))===r)return;let i=U();n===`circle`?t.setAttribute(`r`,r/2):t.setAttribute(`stroke-width`,r),W(i,`size:${Le(t)}`),G()}function $e(e){if(!b.active||!k.value||we.value)return;let t=k.value;if(t.tagName.toLowerCase()!==`text`)return;let n=Number(e)*b.scale;if(Number(t.getAttribute(`font-size`))===n)return;let r=U();t.setAttribute(`font-size`,n),Array.from(t.children).forEach((e,t)=>{e.setAttribute(`dy`,t===0?`0`:`${n*1.2}`)}),I.value&&t===L.value||W(r,`font-size:${Le(t)}`),G(),I.value&&t===L.value&&ct()}y(C,Ze),y(w,Qe),y(B,$e);function et(){V.value+1>=je.length?V.value=0:V.value+=1}function tt(e){if(!E.value||!b.active||H.value!==`text`||I.value||Fe(e)||Ue(e))return;K();let t=U(),{x:n,y:a}=Y(e);De.value={x:n,y:a},R.value=[``],z.value={row:0,col:0},Oe.value=!1,ke.value=t,Ae.value=!1;let o=document.createElementNS(i,`text`);o.setAttribute(`x`,n),o.setAttribute(`y`,a),o.setAttribute(`fill`,C.value),o.setAttribute(`font-size`,B.value*b.scale),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`,E.value.appendChild(o),k.value=o,L.value=o,I.value=!0,We(),window.addEventListener(`keydown`,rt),window.addEventListener(`mousedown`,lt,!0),it(),ct()}function nt(e){if(!b.active||!E.value||I.value||!e||e.tagName.toLowerCase()!==`text`||!E.value.contains(e))return;let t=U();k.value=e,qe(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);De.value={x:n,y:r},R.value=a,z.value={row:o,col:a[o]?.length||0},ke.value=t,Ae.value=!0,Oe.value=!0,L.value=e,I.value=!0,e.style.pointerEvents=`none`,We(),window.addEventListener(`keydown`,rt),window.addEventListener(`mousedown`,lt,!0),it(),ct()}function rt(e){if(!I.value)return;let{row:t,col:n}=z.value,r=R.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`){ut(!1,!0);return}else e.key===`Tab`&&e.preventDefault();i&&(R.value=r,z.value={row:t,col:n},it(),ct())}function it(){let e=L.value;if(!e)return;let{x:t}=De.value;for(;e.firstChild;)e.removeChild(e.firstChild);R.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`:`${B.value*1.2*b.scale}`),a.textContent=n.length?n:``,e.appendChild(a)})}let at=_(null);function ot(){at.value!==null&&(clearInterval(at.value),at.value=null)}function st(e){ot();let t=!0;e.style.opacity=`1`,at.value=setInterval(()=>{if(!E.value||!e||!E.value.contains(e)){ot();return}t=!t,e.style.opacity=t?`1`:`0`},500)}function ct(){let e=E.value?.querySelector(`.vue-data-ui-svg-caret`);e&&E.value&&E.value.removeChild(e);let t=L.value;if(!t||!E.value)return;let{x:n,y:r}=De.value,{row:a,col:o}=z.value,s=B.value*b.scale,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||``,E.value.appendChild(u);let d=u.getBBox();E.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`,1),m.setAttribute(`width`,2),m.setAttribute(`height`,s),m.setAttribute(`fill`,C.value),m.setAttribute(`class`,`vue-data-ui-svg-caret`),m.setAttribute(`pointer-events`,`none`);let h=t.getAttribute(`transform`);h&&m.setAttribute(`transform`,h),E.value.appendChild(m),st(m)}function lt(e){L.value&&(L.value.contains(e.target)||ut(!1))}function ut(e=!1,t=!1){window.removeEventListener(`keydown`,rt),window.removeEventListener(`mousedown`,lt,!0),ot();let n=E.value?.querySelector(`.vue-data-ui-svg-caret`);n&&n.remove();let r=L.value,i=ke.value,a=R.value.every(e=>!e.length);if(t){I.value=!1,L.value=null,R.value=[``],z.value={row:0,col:0},Oe.value=!1,ke.value=``,Ae.value=!1,Re(i);return}r&&E.value?.contains(r)&&(e||a?r.remove():r.style.pointerEvents=`all`),I.value=!1,L.value=null,R.value=[``],z.value={row:0,col:0},Oe.value=!1,ke.value=``,Ae.value=!1,W(i),r&&E.value?.contains(r)?Je(r):K()}let J=s(()=>n(b.color,.6));function dt(){if(!E.value)return;let e=E.value.querySelector(`.vue-data-ui-mask`);if(e&&E.value.removeChild(e),b.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`),E.value.insertBefore(e,E.value.firstChild)}}function Y(e){let t=b.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 ft(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=pt(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 pt(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 mt(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 ht(e){if(H.value!==`draw`||!b.active||!E.value||Fe(e)||Ue(e))return;e.cancelable&&e.preventDefault(),K(),F.value=U(),T.value=!0;let{x:t,y:n}=Y(e);ye.value={x:t,y:n},ve.value=`M ${t} ${n}`,D.value=document.createElementNS(i,`path`),D.value.setAttribute(`stroke`,C.value),D.value.setAttribute(`stroke-width`,w.value*b.scale),D.value.setAttribute(`fill`,`none`),D.value.setAttribute(`stroke-linecap`,`round`),D.value.setAttribute(`stroke-linejoin`,`round`),D.value.setAttribute(`class`,`vue-data-ui-doodle`),D.value.setAttribute(`data-doodle-id`,r()),D.value.setAttribute(`pointer-events`,`stroke`),E.value.appendChild(D.value)}function gt(e){if(e.cancelable&&e.preventDefault(),!T.value||!E.value||!D.value)return;let{x:t,y:n}=Y(e);ve.value+=` ${t} ${n}`,D.value.setAttribute(`d`,ve.value)}function _t(e){let t=b.svgRef;if(!t)return null;let n=t.querySelector(`defs#${Ee.value}`);n||(n=document.createElementNS(i,`defs`),n.setAttribute(`id`,Ee.value),t.appendChild(n));let a=String(e).trim();if(Te.has(a))return Te.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),Te.set(a,o),o}function vt(e){if(![`line`,`arrow`].includes(H.value)||!b.active||!E.value||Fe(e)||Ue(e))return;e.cancelable&&e.preventDefault(),K(),F.value=U(),T.value=!0;let{x:t,y:n}=Y(e);if(ye.value={x:t,y:n},O.value=document.createElementNS(i,`line`),O.value.setAttribute(`stroke`,C.value),O.value.setAttribute(`stroke-width`,w.value*b.scale),O.value.setAttribute(`stroke-linecap`,`round`),O.value.setAttribute(`class`,`vue-data-ui-doodle`),O.value.setAttribute(`data-doodle-id`,r()),O.value.setAttribute(`pointer-events`,`stroke`),O.value.setAttribute(`x1`,t),O.value.setAttribute(`y1`,n),O.value.setAttribute(`x2`,t),O.value.setAttribute(`y2`,n),H.value===`arrow`){let e=_t(C.value);e&&O.value.setAttribute(`marker-end`,`url(#${e})`)}E.value.appendChild(O.value)}function yt(e){if(e.cancelable&&e.preventDefault(),![`line`,`arrow`].includes(H.value)||!T.value||!E.value||!O.value)return;let{x:t,y:n}=Y(e);O.value.setAttribute(`x2`,t),O.value.setAttribute(`y2`,n)}function bt(e){if(T.value&&E.value&&O.value){let{x:t,y:n}=Y(e);O.value.setAttribute(`x2`,t),O.value.setAttribute(`y2`,n),W(F.value),O.value=null,F.value=``}T.value=!1}function X(e){if(T.value&&E.value&&D.value){let{x:t,y:n}=Y(e);if(ye.value&&ye.value.x===t&&ye.value.y===n){D.value.remove();let e=document.createElementNS(i,`circle`);e.setAttribute(`cx`,t),e.setAttribute(`cy`,n),e.setAttribute(`r`,w.value*b.scale/2),e.setAttribute(`fill`,C.value),e.setAttribute(`class`,`vue-data-ui-doodle`),e.setAttribute(`data-doodle-id`,r()),e.setAttribute(`pointer-events`,`all`),E.value.appendChild(e)}else D.value.setAttribute(`d`,mt(ft(ve.value)));W(F.value),F.value=``,D.value=null}T.value=!1}function xt(){if(!x.value.length||!E.value)return;let e=U(),t=x.value.pop();S.value.push({state:e,mergeKey:null,timestamp:Date.now()}),Re(t.state)}function St(){if(!S.value.length||!E.value)return;let e=U(),t=S.value.pop();x.value.push({state:e,mergeKey:null,timestamp:Date.now()}),Re(t.state)}function Ct(){I.value&&ut(!1),K(),E.value&&(E.value.innerHTML=``),x.value=[],S.value=[],Oe.value=!1,ke.value=``,Ae.value=!1,F.value=``,dt()}y(H,()=>{b.active&&(Tt(),wt(),Z())});function wt(){b.svgRef&&b.active&&(b.svgRef.addEventListener(`mousedown`,Ye),b.svgRef.addEventListener(`mousemove`,Xe),b.svgRef.addEventListener(`mouseup`,q),b.svgRef.addEventListener(`mouseleave`,q),b.svgRef.addEventListener(`touchstart`,Ye,{passive:!1}),b.svgRef.addEventListener(`touchmove`,Xe,{passive:!1}),b.svgRef.addEventListener(`touchend`,q),b.svgRef.addEventListener(`touchcancel`,q),H.value===`draw`?(b.svgRef.addEventListener(`mousedown`,ht),b.svgRef.addEventListener(`mousemove`,gt),b.svgRef.addEventListener(`mouseup`,X),b.svgRef.addEventListener(`mouseleave`,X),b.svgRef.addEventListener(`touchstart`,ht,{passive:!1}),b.svgRef.addEventListener(`touchmove`,gt,{passive:!1}),b.svgRef.addEventListener(`touchend`,X),b.svgRef.addEventListener(`touchcancel`,X)):[`line`,`arrow`].includes(H.value)?(b.svgRef.addEventListener(`mousedown`,vt),b.svgRef.addEventListener(`mousemove`,yt),b.svgRef.addEventListener(`mouseup`,bt),b.svgRef.addEventListener(`touchstart`,vt,{passive:!1}),b.svgRef.addEventListener(`touchmove`,yt,{passive:!1}),b.svgRef.addEventListener(`touchend`,bt),b.svgRef.addEventListener(`touchcancel`,bt)):H.value===`text`&&(b.svgRef.addEventListener(`mousedown`,tt),b.svgRef.addEventListener(`touchstart`,tt,{passive:!1})),E.value&&(E.value.style.pointerEvents=`auto`))}function Tt(){b.svgRef&&(b.svgRef.removeEventListener(`mousedown`,Ye),b.svgRef.removeEventListener(`mousemove`,Xe),b.svgRef.removeEventListener(`mouseup`,q),b.svgRef.removeEventListener(`mouseleave`,q),b.svgRef.removeEventListener(`touchstart`,Ye),b.svgRef.removeEventListener(`touchmove`,Xe),b.svgRef.removeEventListener(`touchend`,q),b.svgRef.removeEventListener(`touchcancel`,q),b.svgRef.removeEventListener(`mousedown`,ht),b.svgRef.removeEventListener(`mousemove`,gt),b.svgRef.removeEventListener(`mouseup`,X),b.svgRef.removeEventListener(`mouseleave`,X),b.svgRef.removeEventListener(`touchstart`,ht),b.svgRef.removeEventListener(`touchmove`,gt),b.svgRef.removeEventListener(`touchend`,X),b.svgRef.removeEventListener(`touchcancel`,X),b.svgRef.removeEventListener(`mousedown`,vt),b.svgRef.removeEventListener(`mousemove`,yt),b.svgRef.removeEventListener(`mouseup`,bt),b.svgRef.removeEventListener(`touchstart`,vt),b.svgRef.removeEventListener(`touchmove`,yt),b.svgRef.removeEventListener(`touchend`,bt),b.svgRef.removeEventListener(`touchcancel`,bt),b.svgRef.removeEventListener(`mousedown`,tt),b.svgRef.removeEventListener(`touchstart`,tt),E.value&&(E.value.style.pointerEvents=`none`))}y(()=>b.active,e=>{e?wt():(K(),Tt()),Z()}),y(()=>b.active,()=>{p(()=>{dt()})}),y(()=>b.active,e=>{b.svgRef&&(e?b.svgRef.style.touchAction=`none`:b.svgRef.style.touchAction=``)},{immediate:!0});function Z(e=null){if(E.value){if(!b.active){E.value.style.cursor=``;return}if(I.value){E.value.style.cursor=`text`;return}if(e&&Ie(e)){E.value.style.cursor=`pointer`;return}if(P.value||e&&Fe(e)){E.value.style.cursor=`move`;return}if(A.value&&k.value){E.value.style.cursor=`grabbing`;return}if(e&&k.value&&E.value.contains(k.value)&&He(k.value,e)){E.value.style.cursor=`grab`;return}H.value===`text`?E.value.style.cursor=`text`:[`line`,`arrow`].includes(H.value)?E.value.style.cursor=`crosshair`:E.value.style.cursor=Ne.value}}let Q=_(null),Et=_(null),Dt=_(!1),$=_({x:0,y:0}),Ot=_(null),kt=_(null),At=s(()=>({backgroundColor:b.backgroundColor,"--vue-ui-pen-and-paper-drag-x":`${$.value.x}px`,"--vue-ui-pen-and-paper-drag-y":`${$.value.y}px`}));function jt(){return{width:document.documentElement.clientWidth||window.innerWidth,height:document.documentElement.clientHeight||window.innerHeight}}function Mt(){if(!Q.value)return null;let e=[Q.value,Q.value.querySelector(`.vue-ui-pen-and-paper-drag-handle`),Q.value.querySelector(`.vertical-range`)].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 Nt(e){if(e.pointerType===`mouse`&&e.button!==0||!Q.value)return;e.preventDefault(),e.stopPropagation();let t=Mt();t&&(Dt.value=!0,kt.value=e.pointerId,Ot.value={clientX:e.clientX,clientY:e.clientY,offsetX:$.value.x,offsetY:$.value.y,rect:t},window.addEventListener(`pointermove`,Pt),window.addEventListener(`pointerup`,Ft),window.addEventListener(`pointercancel`,Ft))}function Pt(e){if(!Dt.value||!Ot.value||e.pointerId!==kt.value)return;e.preventDefault();let t=Ot.value,{width:n,height:r}=jt(),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 Ft(e){(e?.pointerId===void 0||kt.value===null||e.pointerId===kt.value)&&(Dt.value=!1,Ot.value=null,kt.value=null,window.removeEventListener(`pointermove`,Pt),window.removeEventListener(`pointerup`,Ft),window.removeEventListener(`pointercancel`,Ft))}function It(){if(!Q.value||!b.active)return;let e=Mt();if(!e)return;let{width:t,height:n}=jt(),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 te(()=>{window.addEventListener(`resize`,It),p(()=>{b.svgRef&&(E.value=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),E.value.setAttribute(`class`,`vue-data-ui-doodles`),b.svgRef.appendChild(E.value),Z(),b.active?wt():Tt(),dt())})}),y(()=>b.active,async e=>{if(!e){Ft(),$.value={x:0,y:0};return}await p(),Et.value?.focus()},{flush:`post`}),ee(()=>{ot(),K(),Ft(),window.removeEventListener(`resize`,It),E.value&&b.svgRef&&(E.value.remove(),Tt())}),(n,r)=>e.active?(ne(),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":Dt.value}]),style:g(At.value)},[u(`button`,{type:`button`,class:`vue-ui-pen-and-paper-drag-handle`,"aria-label":`Move drawing toolbar`,style:g({backgroundColor:e.backgroundColor,border:`1px solid ${J.value}`,color:e.color}),onPointerdown:Nt},[(ne(),l(`svg`,le,[u(`circle`,{fill:e.color,cx:`3`,cy:`3`,r:`0.7`},null,8,ue),u(`circle`,{fill:e.color,cx:`3`,cy:`6`,r:`0.7`},null,8,de),u(`circle`,{fill:e.color,cx:`3`,cy:`9`,r:`0.7`},null,8,fe)]))],36),u(`button`,{ref_key:`buttonToggle`,ref:Et,class:`vue-ui-pen-and-paper-action`,onClick:r[0]||=e=>_e(`close`),style:g({backgroundColor:e.backgroundColor,border:`1px solid ${J.value}`,cursor:e.isCursorPointer?`pointer`:`default`})},[v(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`,style:g(`padding: 0 !important; cursor: ${e.isCursorPointer?`pointer`:`default`}`)},[d(o,{value:C.value,"onUpdate:value":r[1]||=e=>C.value=e,backgroundColor:e.backgroundColor,buttonBorderColor:J.value,isCursorPointer:e.isCursorPointer,palette:e.palette},{"annotator-action-color":oe(({color:e})=>[v(n.$slots,`annotator-action-color`,h(f({color:e})))]),_:3},8,[`value`,`backgroundColor`,`buttonBorderColor`,`isCursorPointer`,`palette`])],4),u(`button`,{class:m([`vue-ui-pen-and-paper-action`,{"vue-ui-pen-and-paper-action-active":H.value===`text`}]),onClick:r[2]||=e=>et(),style:g({backgroundColor:e.backgroundColor,border:`1px solid ${J.value}`,cursor:e.isCursorPointer?`pointer`:`default`})},[v(n.$slots,`annotator-action-draw`,h(f({mode:H.value})),()=>[d(a,{name:Me[H.value],stroke:e.color},null,8,[`name`,`stroke`])]),u(`div`,{style:g({position:`absolute`,bottom:`-20px`,color:J.value,width:`100%`,textAlign:`center`,fontSize:`12px`,fontVariantNumeric:`tabular-nums`})},re(ie(t)({v:H.value===`text`?Math.round(B.value):Math.round(w.value),s:`px`,r:1})),5)],6),u(`button`,{class:m([`vue-ui-pen-and-paper-action`,{"vue-ui-pen-and-paper-action-disabled":!x.value.length}]),disabled:!x.value.length,onClick:xt,style:g({backgroundColor:e.backgroundColor,border:`1px solid ${J.value}`,marginTop:`20px`,cursor:e.isCursorPointer?`pointer`:`default`})},[v(n.$slots,`annotator-action-undo`,h(f({disabled:!x.value.length})),()=>[d(a,{name:`refresh`,stroke:e.color},null,8,[`stroke`])])],14,pe),u(`button`,{class:m([`vue-ui-pen-and-paper-action`,{"vue-ui-pen-and-paper-action-disabled":!S.value.length}]),onClick:St,style:g({backgroundColor:e.backgroundColor,border:`1px solid ${J.value}`,cursor:e.isCursorPointer?`pointer`:`default`})},[v(n.$slots,`annotator-action-redo`,h(f({disabled:!S.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":!x.value.length}]),onClick:Ct,style:g({backgroundColor:e.backgroundColor,border:`1px solid ${J.value}`,cursor:e.isCursorPointer?`pointer`:`default`})},[v(n.$slots,`annotator-action-delete`,h(f({disabled:!x.value.length})),()=>[d(a,{name:`trash`,stroke:e.color},null,8,[`stroke`])])],6),H.value===`text`?se((ne(),l(`input`,{key:0,ref:`range`,type:`range`,class:`vertical-range`,min:3,max:48,step:1,"onUpdate:modelValue":r[3]||=e=>B.value=e,style:g({accentColor:e.color})},null,4)),[[ae,B.value]]):se((ne(),l(`input`,{key:1,ref:`range`,type:`range`,class:`vertical-range`,min:.5,max:12,step:.1,"onUpdate:modelValue":r[4]||=e=>w.value=e,style:g({accentColor:e.color})},null,4)),[[ae,w.value]])],6)):c(``,!0)}};export{b as n,ce 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-CV_IANZ6.js";import{t as u}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{i as re,l as ie,t as ae}from"./useResponsive-D2CPcpda.js";import{t as d}from"./BaseIcon-DdIyewwY.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}=ae({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){if(t===Rn){if(C.useValueRange){K.value=Number.isFinite(Number(e))?Wt(Number(e)):null;return}K.value=pn(C.valueStart)+e}}let Bn=re(zn,60);x(()=>C.minimapSelectedIndex,(e,t)=>{if(Rn+=1,[null,void 0].includes(e)){K.value=null;return}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);return}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}return}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);return}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(d,{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};
|
package/dist/Tooltip-Cus2-XNQ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Jt as e}from"./lib-CV_IANZ6.js";import{Teleport as t,computed as n,createBlock as r,createCommentVNode as i,createElementBlock as a,createElementVNode as o,nextTick as s,normalizeClass as c,normalizeStyle as l,onMounted as u,onUnmounted as d,openBlock as f,ref as p,renderSlot as m,watch as h}from"vue";function g({tooltip:e,chart:t,clientPosition:n,positionPreference:r=`center`,defaultOffsetY:i=24,defaultOffsetX:a=0,blockShiftY:o=!1}){let s=p(a),c=p(i);if(e&&t){let{width:l,height:u}=e.getBoundingClientRect(),{right:d,left:f,bottom:p}=t.getBoundingClientRect();r===`center`&&(s.value=n.x+l/2>d?-l+(d-n.x):n.x-l/2<f?-l+(l-(n.x-f)):-l/2),r===`right`&&(s.value=n.x+l+a>d?-l+(d-n.x):a),r===`left`&&(s.value=n.x-l-a<f?f-n.x:-l-a),n.y+u>p&&!o&&(c.value=-u-i)}return{top:n.y+c.value,left:n.x+s.value}}function _(e,t,n){u(()=>e.addEventListener(t,n)),d(()=>e.removeEventListener(t,n))}function v(){let e=p(0),t=p(0);return _(window,`mousemove`,n=>{e.value=n.clientX,t.value=n.clientY}),{x:e,y:t}}var y=[`aria-hidden`],b=[`innerHTML`],x={__name:`Tooltip`,props:{teleportTo:{type:String,default:`body`},backgroundColor:{type:String,default:`#FFFFFF`},color:{type:String,default:`#000000`},content:String,maxWidth:{type:String,default:`300px`},parent:{type:Object},show:{type:Boolean,default:!1},isCustom:{type:Boolean,default:!1},fontSize:{type:[Number,String],default:14},borderRadius:{type:Number,default:4},borderColor:{type:String,default:`#e1e5e8`},borderWidth:{type:Number,default:1},backgroundOpacity:{type:Number,default:100},position:{type:String,default:`center`},offsetY:{type:Number,default:24},offsetX:{type:Number,default:0},blockShiftY:{type:Boolean,default:!1},isFullscreen:{type:Boolean,default:!1},smooth:{type:Boolean,default:!0},backdropFilter:{type:Boolean,default:!0},smoothForce:{type:Number,default:.18},smoothSnapThreshold:{type:Number,default:.25},isA11yMode:{type:Boolean,default:!1},a11yPosition:{type:Object,default:null}},setup(u,{expose:_}){let x=u,S=p(null),{x:C,y:w}=v(x.parent),T=p({x:0,y:0}),E=p({x:0,y:0}),D=p(null),O=p(null),k=p({scaleX:1,scaleY:1}),A=p(null);function j(){let e=N(S.value);if(D.value=e,!e){O.value=null,k.value={scaleX:1,scaleY:1},A.value=null;return}O.value=e.getBoundingClientRect(),k.value=P(e),A.value=x.parent?.getBoundingClientRect?.()||null}function M(e){return e?!!(e.transform&&e.transform!==`none`||e.perspective&&e.perspective!==`none`||e.filter&&e.filter!==`none`||e.backdropFilter&&e.backdropFilter!==`none`||e.contain&&e.contain.includes(`paint`)||e.willChange&&(e.willChange.includes(`transform`)||e.willChange.includes(`filter`))):!1}function N(e){let t=e?.parentElement||null;for(;t&&t!==document.documentElement;){if(M(getComputedStyle(t)))return t;t=t.parentElement}return null}function P(e){if(!e)return{scaleX:1,scaleY:1};let t=getComputedStyle(e).transform;if(!t||t===`none`)return{scaleX:1,scaleY:1};try{let e=new DOMMatrixReadOnly(t),n=Math.hypot(e.a,e.b),r=Math.hypot(e.c,e.d);return{scaleX:n||1,scaleY:r||1}}catch{return{scaleX:1,scaleY:1}}}function F({x:e,y:t}){x.isA11yMode||(C.value=e,w.value=t)}let I=null;function L(){if(!x.show){z();return}if(!x.smooth){E.value.x=T.value.x,E.value.y=T.value.y,z();return}let e=T.value.x-E.value.x,t=T.value.y-E.value.y;if(Math.abs(e)<=x.smoothSnapThreshold&&Math.abs(t)<=x.smoothSnapThreshold){E.value.x=T.value.x,E.value.y=T.value.y,z();return}E.value.x+=e*x.smoothForce,E.value.y+=t*x.smoothForce,I=requestAnimationFrame(L)}function R(){I==null&&x.show&&x.smooth&&(I=requestAnimationFrame(L))}function z(){I!=null&&(cancelAnimationFrame(I),I=null)}h([C,w],([e,t])=>{T.value.x=e,T.value.y=t,x.smooth?R():(E.value.x=e,E.value.y=t)}),h(()=>x.show,async e=>{if(!e){z();return}let t=C.value,n=w.value;T.value.x=t,T.value.y=n,E.value.x=t,E.value.y=n,await s(),j(),R()}),d(()=>{z()});let B=n(()=>x.isA11yMode&&x.a11yPosition&&typeof x.a11yPosition.x==`number`&&typeof x.a11yPosition.y==`number`?{x:x.a11yPosition.x,y:x.a11yPosition.y}:{x:E.value.x,y:E.value.y}),V=n(()=>{let e=O.value;if(!e)return{x:B.value.x,y:B.value.y};let{scaleX:t,scaleY:n}=k.value;return{x:(B.value.x-e.left)/t,y:(B.value.y-e.top)/n}}),H=n(()=>{let e=O.value,t=A.value;if(!e||!t)return x.parent;let{scaleX:n,scaleY:r}=k.value;return{...x.parent,getBoundingClientRect(){let i=t;return{left:(i.left-e.left)/n,top:(i.top-e.top)/r,right:(i.right-e.left)/n,bottom:(i.bottom-e.top)/r,width:i.width/n,height:i.height/r,x:(i.left-e.left)/n,y:(i.top-e.top)/r}}}}),U=n(()=>{let e=g({tooltip:S.value,chart:H.value,clientPosition:V.value,positionPreference:x.position,defaultOffsetX:x.offsetX,defaultOffsetY:x.offsetY,blockShiftY:x.blockShiftY});return{top:Math.round(e.top),left:Math.round(e.left)}}),W=n(()=>e(x.backgroundColor,x.backgroundOpacity)),G=n(()=>{let e={pointerEvents:`none`,position:`fixed`,top:`0px`,left:`0px`,transform:`translate3d(${U.value.left}px, ${U.value.top}px, 0)`,borderRadius:`${x.borderRadius}px`,border:`${x.borderWidth}px solid ${x.borderColor}`,zIndex:2147483647};return x.isCustom||Object.assign(e,{background:W.value,color:x.color,maxWidth:x.maxWidth,fontSize:`${x.fontSize}px`}),e});return _({placeTooltip:F}),(e,n)=>(f(),r(t,{to:u.isFullscreen?u.parent:u.teleportTo},[u.show?(f(),a(`div`,{key:0,ref_key:`tooltip`,ref:S,role:`tooltip`,"aria-hidden":!u.show,"aria-live":`polite`,class:c({"vue-data-ui-custom-tooltip":u.isCustom,"vue-data-ui-tooltip":!u.isCustom,"vue-data-ui-tooltip-backdrop":u.backdropFilter}),style:l(G.value)},[m(e.$slots,`tooltip-before`),m(e.$slots,`default`),m(e.$slots,`tooltip`,{},()=>[o(`div`,{innerHTML:u.content},null,8,b)]),m(e.$slots,`tooltip-after`)],14,y)):i(``,!0)],8,[`to`]))}};export{x as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{t}from"./img-DiT4ivZ5.js";import{t as n}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as r}from"./BaseIcon-DdIyewwY.js";import{t as i}from"./vClickOutside-BxNzkY17.js";import{Fragment 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,normalizeClass as m,normalizeProps as h,normalizeStyle as g,onBeforeUnmount as _,onMounted as ee,openBlock as v,ref as y,renderList as b,renderSlot as x,toDisplayString as te,unref as ne,watch as S,withDirectives as C,withKeys as w,withModifiers as T}from"vue";var re={beforeMount(e,t){let n=()=>typeof t.value==`function`?{handler:t.value,targets:[e],disabled:!1,scrollGuardMs:250,moveThreshold:10}:{handler:t.value?.handler,targets:t.value?.targets??[e],disabled:!!t.value?.disabled,scrollGuardMs:t.value?.scrollGuardMs??250,moveThreshold:t.value?.moveThreshold??10},r={lastScrollTs:0,pointerId:null,startX:0,startY:0,moved:!1},i=()=>{r.lastScrollTs=performance.now()},a=e=>{r.pointerId=e.pointerId??null,r.startX=e.clientX??0,r.startY=e.clientY??0,r.moved=!1},o=e=>{if(r.pointerId===null||(e.pointerId??null)!==r.pointerId)return;let t=(e.clientX??0)-r.startX,i=(e.clientY??0)-r.startY,{moveThreshold:a}=n();t*t+i*i>=a*a&&(r.moved=!0)},s=e=>{r.pointerId!==null&&(e.pointerId??null)===r.pointerId&&(r.pointerId=null)},c=(e,t)=>{let n=e.composedPath?e.composedPath():[];for(let r of t){let t=r&&typeof r==`object`&&`value`in r?r.value:r;if(t&&(t===e.target||t.contains&&t.contains(e.target)||n.length&&n.includes(t)))return!0}return!1},l=e=>{let{handler:t,targets:i,disabled:a,scrollGuardMs:o}=n();a||typeof t==`function`&&(performance.now()-r.lastScrollTs<o||r.moved||c(e,i)||t(e))};e.__vPopoverClickOutside__={onScrollCapture:i,onPointerDownCapture:a,onPointerMoveCapture:o,onPointerUpCapture:s,onClickCapture:l},window.addEventListener(`scroll`,i,!0),document.addEventListener(`pointerdown`,a,!0),document.addEventListener(`pointermove`,o,!0),document.addEventListener(`pointerup`,s,!0),document.addEventListener(`click`,l,!0)},unmounted(e){let t=e.__vPopoverClickOutside__;t&&(window.removeEventListener(`scroll`,t.onScrollCapture,!0),document.removeEventListener(`pointerdown`,t.onPointerDownCapture,!0),document.removeEventListener(`pointermove`,t.onPointerMoveCapture,!0),document.removeEventListener(`pointerup`,t.onPointerUpCapture,!0),document.removeEventListener(`click`,t.onClickCapture,!0),delete e.__vPopoverClickOutside__)}},E=/* @__PURE__ */ e({default:()=>D}),ie=[`title`,`onKeydown`],ae=[`popover`,`data-open`],oe=[`onClick`,`onMouseenter`,`onMouseout`],se=[`title`],ce=[`data-open`],le=[`onClick`,`onMouseenter`,`onMouseout`],D=/*#__PURE__*/ n({__name:`UserOptions`,props:{hasPdf:{type:Boolean,default:!0},hasXls:{type:Boolean,default:!0},hasImg:{type:Boolean,default:!1},hasSvg:{type:Boolean,default:!1},hasLabel:{type:Boolean,default:!1},isLabelActive:{type:Boolean,default:!1},hasTable:{type:Boolean,default:!1},hasSort:{type:Boolean,default:!1},hasStack:{type:Boolean,default:!1},hasTooltip:{type:Boolean,default:!1},color:{type:String},backgroundColor:{type:String},isPrinting:{type:Boolean,default:!1},isImaging:{type:Boolean,default:!1},title:{type:String},uid:{type:String},hasFullscreen:{type:Boolean,default:!1},chartElement:{type:HTMLElement,default:null},isFullscreen:{type:Boolean,default:!1},isStacked:{type:Boolean,default:!1},isTooltip:{type:Boolean,default:!1},hasAnimation:{type:Boolean,default:!1},isAnimation:{type:Boolean,default:!1},titles:{type:Object,default(){return{}}},showTooltips:{type:Boolean,default:!0},zIndex:{type:Number,default:1},noOffset:{type:Boolean,default:!0},position:{type:String,default:`right`},offsetX:{type:Number,default:0},hasAnnotator:{type:Boolean,default:!1},isAnnotation:{type:Boolean,default:!1},callbacks:{type:Object,default(){return{}}},printScale:{type:Number,default:2},tableDialog:{type:Boolean,default:!1},hasZoom:{type:Boolean,default:!1},isZoom:{type:Boolean,default:!1},isCursorPointer:{type:Boolean,default:!1},hasAltCopy:{type:Boolean,default:!1}},emits:[`generatePdf`,`generateCsv`,`generateImage`,`toggleTable`,`toggleLabels`,`toggleSort`,`toggleFullscreen`,`toggleStack`,`toggleTooltip`,`toggleAnimation`,`toggleAnnotator`,`generateSvg`,`toggleZoom`,`copyAlt`],setup(e,{expose:n,emit:E}){let D=e,O=E,k=y(null),A=y(null),j=y(null),M=y(!1),N=o(()=>typeof window<`u`&&typeof HTMLElement<`u`&&`popover`in HTMLElement.prototype);async function ue(){if(D.callbacks.pdf){let{imageUri:e,base64:n}=await t({domElement:D.chartElement,base64:!0,img:!0,scale:D.printScale});D.callbacks.pdf({domElement:D.chartElement,base64:n,imageUri:e})}else O(`generatePdf`)}function de(){O(`generateCsv`,D.callbacks.csv)}async function fe(){if(D.callbacks.img){O(`generateImage`,{stage:`start`});try{let{imageUri:e,base64:n}=await t({domElement:D.chartElement,base64:!0,img:!0,scale:D.printScale});await Promise.resolve(D.callbacks.img({domElement:D.chartElement,imageUri:e,base64:n}))}finally{O(`generateImage`,{stage:`end`})}}else O(`generateImage`)}function pe(){O(`generateSvg`,{isCb:!!D.callbacks.svg})}let P=y(!1);function me(){D.callbacks.table?D.callbacks.table():(P.value=!P.value,O(`toggleTable`))}function he(e){P.value=e}n({setTableIconState:he});let F=y(D.isLabelActive);function ge(){D.callbacks.labels?D.callbacks.labels():(F.value=!F.value,O(`toggleLabels`))}let I=y(D.isAnimation);function L(){D.callbacks.animation?D.callbacks.animation():(I.value=!I.value,O(`toggleAnimation`))}let R=y(D.isZoom);function z(){D.callbacks.zoom?D.callbacks.zoom():(R.value=!R.value,O(`toggleZoom`))}let B=o({get:()=>D.isAnnotation,set:e=>e});function V(){D.callbacks.annotator?D.callbacks.annotator():(B.value=!B.value,O(`toggleAnnotator`))}function _e(){D.callbacks.sort?D.callbacks.sort():O(`toggleSort`)}function H(){O(`copyAlt`)}let U=y(D.isStacked);function ve(){D.callbacks.stack?D.callbacks.stack():(U.value=!U.value,O(`toggleStack`))}let W=y(D.isTooltip);function ye(){D.callbacks.tooltip?D.callbacks.tooltip():(W.value=!W.value,O(`toggleTooltip`))}let be=o({get:()=>D.isFullscreen,set:e=>O(`toggleFullscreen`,e)});function G(){if(!D.chartElement)return;let e=!D.isFullscreen;be.value=e,e?D.chartElement.requestFullscreen():document.exitFullscreen()}function K(){let e=!!document.fullscreenElement;O(`toggleFullscreen`,e)}ee(()=>{document.addEventListener(`fullscreenchange`,K)}),_(()=>{document.removeEventListener(`fullscreenchange`,K)});let q=y(window.innerWidth>600),J=y({tooltip:!1,pdf:!1,csv:!1,img:!1,table:!1,labels:!1,sort:!1,stack:!1,fullscreen:!1,animation:!1,annotator:!1,svg:!1,zoom:!1,altCopy:!1}),xe=y(!0);function Se(){q.value=window.innerWidth>600,M.value=!M.value,M.value&&(xe.value=!1)}function Ce(){D.isPrinting||D.isImaging||(M.value=!1)}function we(){M.value&&Ce()}let Y=y(0);function Te(){Y.value=performance.now()+50}function X(){D.isPrinting||D.isImaging||(N.value&&Q(),M.value=!1)}function Ee(){performance.now()<Y.value||X()}function De(){if(q.value=window.innerWidth>600,!N.value){M.value||Te(),M.value=!M.value;return}let e=j.value;if(e&&e.matches&&e.matches(`:popover-open`)||M.value){M.value=!1,Q();return}Te(),M.value=!0}function Oe(){De()}function ke(e,t,n,r){let i=window.devicePixelRatio||1,a=e=>Math.round(e*i)/i;e.style.position=`fixed`,e.style.top=`${a(t)}px`,e.style.left=`${a(n)}px`,e.style.right=`auto`,e.style.width=`${a(r)}px`}function Ae(e){if(e.style.width=``,e.style.left=``,e.style.right=``,e.style.top=``,e.style.position=`absolute`,e.style.top=`36px`,D.position===`right`){let t=D.offsetX?D.offsetX:D.noOffset?0:4;e.style.right=`${t}px`,e.style.left=`auto`}else{let t=D.noOffset?0:4;e.style.left=`${t}px`,e.style.right=`auto`}e.style.display=`flex`,e.style.visibility=`hidden`,e.style.pointerEvents=`none`}function je(){if(!N.value||!M.value||!k.value||!j.value)return;let e=k.value.getBoundingClientRect(),t=j.value.getBoundingClientRect(),n=e.top+38;if(D.position===`right`){let r=D.offsetX?D.offsetX:D.noOffset?0:4,i=e.right-r-t.width;ke(j.value,n,i,t.width)}else{let r=D.noOffset?0:4,i=e.left+r;ke(j.value,n,i,t.width)}}let Me=0;function Ne(){cancelAnimationFrame(Me),Me=requestAnimationFrame(()=>{je()})}function Z(){N.value&&M.value&&Ne()}function Pe(e,t){let n=window.devicePixelRatio||1,r=e=>Math.round(e*n)/n;e.style.position=`fixed`,e.style.top=`${r(t.top)}px`,e.style.left=`${r(t.left)}px`,e.style.right=`auto`,e.style.width=`${r(t.width)}px`}async function Fe(e=!1){if(!N.value)return;let t=j.value;if(!t)return;let n=t.getAttribute(`style`)||``,r=t.getAttribute(`data-open`);t.setAttribute(`popover`,`manual`);try{t.setAttribute(`data-open`,`true`),Ae(t),await p();let i=t.getBoundingClientRect();t.setAttribute(`style`,n),r===null?t.removeAttribute(`data-open`):t.setAttribute(`data-open`,r),Pe(t,i),e||(typeof t.showPopover==`function`?t.showPopover():t.style.display=`flex`)}catch{if(!e)try{typeof t.showPopover==`function`?t.showPopover():t.style.display=`flex`}catch{}}}function Q(){if(!N.value)return;let e=j.value;if(e){e.setAttribute(`popover`,`manual`);try{typeof e.hidePopover==`function`?e.hidePopover():e.style.display=`none`}catch{e.style.display=`none`}e.style.position=``,e.style.top=``,e.style.left=``,e.style.right=``,e.style.width=``,e.style.inset=``}}function Ie(){if(!N.value)return;let e=j.value;e&&(M.value&&=typeof e.matches==`function`&&(()=>{try{return e.matches(`:popover-open`)}catch{return!1}})())}function Le(e){if(!N.value||!M.value||performance.now()<Y.value)return;let t=e.composedPath?e.composedPath():[],n=A.value?t.includes(A.value):!1,r=j.value?t.includes(j.value):!1;!n&&!r&&X()}S(()=>D.isFullscreen,async()=>{N.value&&(await p(),M.value&&Fe())}),S(()=>M.value,async e=>{N.value&&(await p(),e?(await Fe(!1),je()):Q())});function Re(e){e.key===`Escape`&&k.value&&k.value.contains(document.activeElement)&&(e.preventDefault(),e.stopPropagation(),X(),A.value?.focus())}ee(()=>{window.addEventListener(`pointerdown`,Le,!0),window.addEventListener(`resize`,Z,{passive:!0}),window.addEventListener(`scroll`,Z,{passive:!0,capture:!0}),j.value&&j.value.addEventListener(`toggle`,Ie)}),_(()=>{window.removeEventListener(`pointerdown`,Le,!0),window.removeEventListener(`resize`,Z),window.removeEventListener(`scroll`,Z,!0),j.value&&j.value.removeEventListener(`toggle`,Ie)});let ze=o(()=>[{key:`pdf`,visible:D.hasPdf,slot:`optionPdf`,testId:`user-options-pdf`,run:ue,icon:`filePdf`,alternate:D.isPrinting,alternateIcon:`hourglass`,spin:!0},{key:`csv`,visible:D.hasXls,slot:`optionCsv`,testId:`user-options-xls`,run:de,icon:`fileCsv`},{key:`img`,visible:D.hasImg,slot:`optionImg`,testId:`user-options-img`,run:fe,icon:`filePng`,alternate:D.isImaging,alternateIcon:`hourglass`,spin:!0},{key:`svg`,visible:D.hasSvg,slot:`optionSvg`,testId:`user-options-svg`,run:pe,icon:`fileSvg`},{key:`tooltip`,visible:D.hasTooltip,slot:`optionTooltip`,testId:`user-options-tooltip`,run:ye,icon:`tooltipDisabled`,alternate:W.value,alternateIcon:`tooltip`},{key:`table`,visible:D.hasTable,slot:`optionTable`,testId:`user-options-table`,run:me,icon:P.value?`tableClose`:`tableOpen`,alternate:D.tableDialog,alternateIcon:P.value?`tableDialogClose`:`tableDialogOpen`},{key:`labels`,visible:D.hasLabel,slot:`optionLabels`,testId:`user-options-label`,run:ge,icon:F.value?`labelClose`:`labelOpen`},{key:`sort`,visible:D.hasSort,slot:`optionSort`,testId:`user-options-sort`,run:_e,icon:`sort`},{key:`stack`,visible:D.hasStack,slot:`optionStack`,testId:`user-options-stack`,run:ve,icon:`stack`,alternate:U.value,alternateIcon:`unstack`,slotProps:{first:{name:`isStack`,value:U.value}}},{key:`fullscreen`,visible:D.hasFullscreen,slot:`optionFullscreen`,testId:`user-options-fullscreen`,run:()=>G(D.isFullscreen?`out`:`in`),icon:`fullscreen`,alternate:D.isFullscreen,alternateIcon:`exitFullscreen`,slotProps:{first:{name:`toggleFullscreen`,value:G},second:{name:`isFullscreen`,value:D.isFullscreen}}},{key:`zoom`,visible:D.hasZoom,slot:`optionZoom`,testId:`user-options-fullscreen`,run:()=>z(),icon:`zoomLock`,alternate:D.isZoom,alternateIcon:`zoomUnlock`,slotProps:{first:{name:`toggleZoom`,value:z},second:{name:`isZoomLocked`,value:!D.isZoom}}},{key:`animation`,visible:D.hasAnimation,slot:`optionAnimation`,testId:`user-options-anim`,run:L,icon:`pause`,alternate:I.value,alternateIcon:`play`,slotProps:{first:{name:`toggleAnimation`,value:L},second:{name:`isAnimated`,value:I.value}}},{key:`annotator`,visible:D.hasAnnotator,slot:`optionAnnotator`,testId:`user-options-annotator`,run:V,icon:`annotator`,alternate:B.value,alternateIcon:`annotatorDisabled`,slotProps:{first:{name:`toggleAnnotator`,value:V},second:{name:`isAnnotator`,value:B.value}}},{key:`altCopy`,visible:D.hasAltCopy,slot:`optionAltCopy`,testId:`user-options-alt-copy`,run:H,icon:`accessibility`,slotProps:{first:{name:`copyAlt`,value:H}}}]);function $(e){let t={"button-info-left":D.position===`left`,"button-info-right":D.position===`right`},n=D.position===`left`&&J.value[e],r=D.position===`right`&&J.value[e];return e===`tooltip`?{...t,"button-info-left-visible":n,"button-info-right-visible":r}:{...t,"button-info-right-visible":r,"button-info-left-visible":n}}return(t,n)=>N.value?C((v(),l(`div`,{key:0,ref_key:`rootRef`,ref:k,"data-dom-to-png-ignore":``,class:`vue-ui-user-options`,style:g(`z-index: ${e.zIndex}; height: 34px; position: ${e.isFullscreen?`fixed`:`absolute`}; top: 0; ${e.position===`right`?`right:${e.isFullscreen?`12px`:`0`}`:`left:${e.isFullscreen?`12px`:`0`}`}; padding: 4px; background:transparent;`),onKeydown:Re},[u(`div`,{ref_key:`triggerRef`,ref:A,tabindex:`0`,role:`button`,title:M.value?e.titles.close||``:e.titles.open||``,style:g(`width:32px; position: absolute; top: 0;${e.position===`right`?`right: ${e.offsetX?e.offsetX:e.noOffset?0:4}px`:`left: ${e.noOffset?0:4}px`}; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:${e.isCursorPointer?`pointer`:`default`}; background:transparent`),onPointerdown:T(De,[`stop`,`prevent`]),onKeydown:w(T(Oe,[`stop`,`prevent`]),[`enter`])},[x(t.$slots,`menuIcon`,h(f({isOpen:M.value,color:e.color})),()=>[d(r,{name:M.value?`close`:`menu`,stroke:e.color,"stroke-width":2},null,8,[`name`,`stroke`])],!0)],44,ie),u(`div`,{ref_key:`drawerRef`,ref:j,popover:N.value?`manual`:null,"data-open":N.value?null:M.value,class:m({"vue-ui-user-options-drawer":!0}),style:g(N.value?{background:e.backgroundColor}:`background:${e.backgroundColor}; ${e.position===`right`?`right: ${e.offsetX?e.offsetX:e.noOffset?0:4}px`:`left: ${e.noOffset?0:4}px`}`)},[x(t.$slots,`custom-menu-before`,{},void 0,!0),(v(!0),l(a,null,b(ze.value,n=>(v(),l(a,{key:n.key},[n.visible?(v(),l(`button`,{key:0,tabindex:`0`,class:`vue-ui-user-options-button`,onClick:n.run,onMouseenter:e=>J.value[n.key]=!0,onMouseout:e=>J.value[n.key]=!1,style:g({cursor:e.isCursorPointer?`pointer`:`default`})},[t.$slots[n.slot]?(v(),l(a,{key:0},[n.slotProps?n.slotProps.second?x(t.$slots,n.slot,h({[n.slotProps.first.name||``]:n.slotProps.first.value,[n.slotProps.second.name||``]:n.slotProps.second.value}),void 0,!0,2):x(t.$slots,n.slot,h({[n.slotProps.first.name||``]:n.slotProps.first.value}),void 0,!0,1):x(t.$slots,n.slot,{},void 0,!0,0)],64)):(v(),l(a,{key:1},[n.alternate?(v(),s(r,{key:0,name:n.alternateIcon,isSpin:n.spin,stroke:e.color,style:{"pointer-events":`none`}},null,8,[`name`,`isSpin`,`stroke`])):(v(),s(r,{key:1,name:n.icon,stroke:e.color,style:{"pointer-events":`none`}},null,8,[`name`,`stroke`]))],64)),q.value&&e.titles[n.key===`animation`?`fullscreen`:n.key]?(v(),l(`div`,{key:2,dir:`auto`,class:m($(n.key)),style:g({background:e.backgroundColor,color:e.color})},te(e.titles[n.key]),7)):c(``,!0)],44,oe)):c(``,!0)],64))),128)),x(t.$slots,`custom-menu-after`,{},void 0,!0)],12,ae)],36)),[[ne(re),N.value?null:{targets:[k.value,j.value,A.value],handler:Ee}]]):C((v(),l(`div`,{key:1,ref_key:`rootRef`,ref:k,"data-dom-to-png-ignore":``,class:`vue-ui-user-options`,style:g(`z-index: ${e.zIndex}; height: 34px; position: ${e.isFullscreen?`fixed`:`absolute`}; top: 0; ${e.position===`right`?`right:${e.isFullscreen?`12px`:`0`}`:`left:${e.isFullscreen?`12px`:`0`}`}; padding: 4px; background:transparent;`),onKeydown:Re},[u(`div`,{ref_key:`triggerRef`,ref:A,tabindex:`0`,title:M.value?e.titles.close||``:e.titles.open||``,style:g(`width:32px; position: absolute; top: 0;${e.position===`right`?`right: ${e.offsetX?e.offsetX:e.noOffset?0:4}px`:`left: ${e.noOffset?0:4}px`}; padding: 0 0px; display: flex; align-items:center;justify-content:center;height: 36px; cursor:pointer; background:transparent`),onClick:T(Se,[`stop`]),onKeypress:w(Se,[`enter`])},[x(t.$slots,`menuIcon`,h(f({isOpen:M.value,color:e.color})),()=>[d(r,{name:M.value?`close`:`menu`,stroke:e.color,"stroke-width":2},null,8,[`name`,`stroke`])],!0)],44,se),u(`div`,{ref_key:`drawerRef`,ref:j,"data-open":M.value,class:m({"vue-ui-user-options-drawer":!0}),style:g(`background:${e.backgroundColor}; ${e.position===`right`?`right: ${e.offsetX?e.offsetX:e.noOffset?0:4}px`:`left: ${e.noOffset?0:4}px`}`)},[x(t.$slots,`custom-menu-before`,{},void 0,!0),(v(!0),l(a,null,b(ze.value,n=>(v(),l(a,{key:n.key},[n.visible?(v(),l(`button`,{key:0,tabindex:`0`,class:`vue-ui-user-options-button`,onClick:e=>n.key===`altCopy`?V():n.run(e),onMouseenter:e=>J.value[n.key]=!0,onMouseout:e=>J.value[n.key]=!1},[t.$slots[n.slot]?(v(),l(a,{key:0},[n.slotProps?n.slotProps.second?x(t.$slots,n.slot,h({[n.slotProps.first.name||``]:n.slotProps.first.value,[n.slotProps.second.name||``]:n.slotProps.second.value}),void 0,!0,2):x(t.$slots,n.slot,h({[n.slotProps.first.name||``]:n.slotProps.first.value}),void 0,!0,1):x(t.$slots,n.slot,{},void 0,!0,0)],64)):(v(),l(a,{key:1},[n.alternate?(v(),s(r,{key:0,name:n.alternateIcon,isSpin:n.spin,stroke:e.color,style:{"pointer-events":`none`}},null,8,[`name`,`isSpin`,`stroke`])):(v(),s(r,{key:1,name:n.icon,stroke:e.color,style:{"pointer-events":`none`}},null,8,[`name`,`stroke`]))],64)),q.value&&e.titles[n.key===`animation`?`fullscreen`:n.key]?(v(),l(`div`,{key:2,dir:`auto`,class:m($(n.key)),style:g({background:e.backgroundColor,color:e.color})},te(e.titles[n.key]),7)):c(``,!0)],40,le)):c(``,!0)],64))),128)),x(t.$slots,`custom-menu-actions`,{},void 0,!0)],12,ce)],36)),[[ne(i),we]])}},[[`__scopeId`,`data-v-f6a782a0`]]);export{E as n,D as t};
|
package/dist/package-DE5cU1Rg.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=`3.27.1`;export{e as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{isRef as e,nextTick as t,onMounted as n,ref as r,unref as i,watch as a}from"vue";var o=`http://www.w3.org/2000/svg`,s=`http://www.w3.org/1999/xlink`,c=`system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif`,l=/* @__PURE__ */ new WeakMap;function u(e){let t=l.get(e);return t||(t=getComputedStyle(e),l.set(e,t)),t}function d(){l=/* @__PURE__ */ new WeakMap}function f(e){return document.createElementNS(o,e)}function p(e){return`${e}, ${c}`}function m({svg:c,title:l,legend:m,legendItems:_,backgroundColor:v,stretchTitle:y=!1,titleEmbedded:b=!1}){let x=e(c)?c:r(c),S=r(!1),C=/* @__PURE__ */ `fill.fill-opacity.stroke.stroke-width.stroke-opacity.opacity.color.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-dasharray.stroke-dashoffset.font-family.font-size.font-style.font-weight.font-variant.letter-spacing.word-spacing.text-anchor.dominant-baseline.shape-rendering.vector-effect.paint-order.mix-blend-mode.isolation.filter.clip-path.mask.transform.transform-origin.visibility.display`.split(`.`),w=/* @__PURE__ */ new Set([`font-family`]);async function T({timeoutMs:e=4e3,log:n=`warn`}={}){if(typeof window>`u`||typeof document>`u`)return console.warn(`SVG export only works in the browser.`),null;let r=performance.now()+e,a=()=>{let e=i(x);return e&&document.contains(e)?e:null},o=a();if(o)return o;let s=!1,c=e=>{if(!s&&e)try{e.disconnect()}catch{}s=!0},l,u=new Promise(e=>{try{l=new MutationObserver(()=>{let t=a();t&&(c(l),e(t))}),l.observe(document.documentElement,{childList:!0,subtree:!0})}catch{e(null)}});for(;performance.now()<r;){let e=await Promise.race([u,new Promise(e=>requestAnimationFrame(e))]);if(await t(),o=a()||e,o)return c(l),o}return c(l),console.warn(`SVG element not found or not mounted (timed out).`),null}n(async()=>{try{await T(),S.value=!0}catch{S.value=!1}}),a(x,async()=>{try{await T(),S.value=!0}catch{S.value=!1}});let E=/* @__PURE__ */ new Map;function D(e){if(E.has(e))return E.get(e);let t=f(`svg`);t.setAttribute(`width`,`0`),t.setAttribute(`height`,`0`),t.style.position=`absolute`,t.style.left=`-99999px`,t.style.top=`-99999px`;let n=f(e);t.appendChild(n),document.body.appendChild(t);let r=window.getComputedStyle(n),i={};for(let e of C)i[e]=r.getPropertyValue(e);return document.body.removeChild(t),E.set(e,i),i}function O(e){let t=u(e),n=D(e.tagName.toLowerCase()),r=[];for(let e of C){let i=t.getPropertyValue(e)||``,a=n[e]||``;if(w.has(e)){e===`font-family`&&i&&(i=p(i)),i&&r.push(`${e}:${i};`);continue}i&&i!==a&&r.push(`${e}:${i};`)}return r.join(``)}function k(e,t){e.getAttribute(`width`)&&t.setAttribute(`width`,e.getAttribute(`width`)),e.getAttribute(`height`)&&t.setAttribute(`height`,e.getAttribute(`height`)),e.getAttribute(`viewBox`)&&t.setAttribute(`viewBox`,e.getAttribute(`viewBox`));let n=[e,...Array.from(e.querySelectorAll(`*`))],r=[t,...Array.from(t.querySelectorAll(`*`))];for(let e=0;e<n.length;e+=1){let t=n[e],i=r[e],a=O(t);a&&i.setAttribute(`style`,a),[`fill`,`stroke`,`filter`,`clip-path`,`mask`].forEach(e=>{let n=t.getAttribute(e);n&&i.setAttribute(e,n)})}}function A(e){let t=e.getAttribute(`viewBox`);if(!t)return null;let[n,r,i,a]=t.split(/\s+|,/).map(Number);return[n,r,i,a].some(e=>Number.isNaN(e))?null:{minX:n,minY:r,width:i,height:a}}function j(e){e.getAttribute(`xmlns`)||e.setAttribute(`xmlns`,o),e.getAttribute(`xmlns:xlink`)||e.setAttribute(`xmlns:xlink`,s),e.getAttribute(`xml:space`)||e.setAttribute(`xml:space`,`preserve`)}function M(e){let t=document.createElement(`div`);return t.style.position=`absolute`,t.style.left=`-99999px`,t.style.top=`-99999px`,t.style.width=`0`,t.style.height=`0`,document.body.appendChild(t),t.appendChild(e),t}function N(e){try{e.remove()}catch{}}function P(e,t,n,r,i){if(!l.value||!l.value.text)return 0;let a={text:l.value.text||``,color:l.value.color||`#111`,fontSize:l.value.fontSize||20,bold:!!l.value.bold,textAlign:(l.value?.textAlign||`center`).toLowerCase(),paddingLeft:l.value.paddingLeft??0,paddingRight:l.value.paddingRight??0,subtitle:l.value.subtitle||null},o=f(`g`);o.setAttribute(`id`,`__vdu_export_title`),e.appendChild(o);let s=n+a.paddingLeft,c=n+t-(a.paddingRight||0),u=n+t/2,d=`start`,p=s;a.textAlign===`center`?(d=`middle`,p=u):a.textAlign===`right`&&(d=`end`,p=c);let m=r,h=Math.round(a.fontSize*.4),g=f(`text`);g.setAttribute(`x`,String(p)),g.setAttribute(`y`,String(m+a.fontSize)),g.setAttribute(`text-anchor`,d),g.setAttribute(`dominant-baseline`,`ideographic`),g.setAttribute(`style`,`font-family:${i}; font-size:${a.fontSize}px; font-weight:${a.bold?`700`:`400`}; fill:${a.color}; ${y?`transform: scale(0.65, 1); transform-origin: center;`:``}`),g.textContent=a.text,o.appendChild(g);let _=a.fontSize;if(a.subtitle&&a.subtitle.text){let e={color:a.subtitle.color||`#666`,text:a.subtitle.text,fontSize:a.subtitle.fontSize||Math.max(12,Math.round(a.fontSize*.8)),bold:!!a.subtitle.bold},t=f(`text`);t.setAttribute(`x`,String(p)),t.setAttribute(`y`,String(m+a.fontSize+h+e.fontSize)),t.setAttribute(`text-anchor`,d),t.setAttribute(`dominant-baseline`,`ideographic`),t.setAttribute(`style`,`font-family:${i}; font-size:${e.fontSize}px; font-weight:${e.bold?`600`:`400`}; fill:${e.color}; ${y?`transform: scale(0.65, 1); transform-origin: center;`:``}`),t.textContent=e.text,o.appendChild(t),_+=h+e.fontSize}return _+Math.round(a.fontSize*.4)}function F(e,t,n,r,i){if(!m.value||!m.value.show||!Array.isArray(_.value)||!_.value.length)return 0;let a={bold:!!m.value.bold,backgroundColor:m.value.backgroundColor||`transparent`,color:m.value.color||`#111`,fontSize:m.value.fontSize||14,paddingX:14,paddingY:10,itemGapX:18,itemGapY:12,markerSize:Math.max(8,Math.round((m.value.fontSize||14)*.9)),markerTextGap:8,lineHeight:Math.round((m.value.fontSize||14)*1.2),maxWidth:t},o=f(`g`);o.setAttribute(`id`,`__vdu_export_legend`),o.setAttribute(`transform`,`translate(${n}, ${r})`),e.appendChild(o);let s=f(`rect`);s.setAttribute(`rx`,`6`),s.setAttribute(`ry`,`6`),s.setAttribute(`fill`,a.backgroundColor),o.appendChild(s);let c=f(`g`);o.appendChild(c);let l=f(`text`);l.setAttribute(`x`,`0`),l.setAttribute(`y`,`0`),l.setAttribute(`style`,`font-family:${i}; font-size:${a.fontSize}px; font-weight:${a.bold?`600`:`400`}; opacity:0;`),c.appendChild(l);let u=e=>(l.textContent=e||``,l.getComputedTextLength()),d=Math.max(1,a.maxWidth-a.paddingX*2);function p(e,t){let n=String(e||``).split(/\s+/).filter(Boolean),r=[];if(!n.length)return[``];let i=n.shift();for(;n.length;){let e=`${i} ${n[0]}`;if(u(e)<=t)i=e,n.shift();else if(u(i)>t&&i.length>1){let e=``;for(let n of i){let r=e+n;if(u(r)<=t)e=r;else break}let a=i.slice(e.length);r.push(e),i=a.length?a:n.shift()||``}else r.push(i),i=n.shift()||``}i&&r.push(i);let a=r[r.length-1]||``;if(u(a)>t&&a.length>1){let e=``;for(let n of a){let r=e+n;if(u(r)<=t)e=r;else break}let n=a.slice(e.length);r[r.length-1]=e,n&&r.push(n)}return r}let h=Math.PI/180;function g(e,t,n,r,i=-90){let a=i*h,o=``;for(let i=0;i<n;i+=1){let s=a+i*2*Math.PI/n,c=e+Math.cos(s)*r,l=t+Math.sin(s)*r;o+=(i===0?`M`:`L`)+c+`,`+l}return o+`Z`}function v(e,t,n=5,r,i){let a=-90*h,o=``;for(let s=0;s<n*2;s+=1){let c=s%2==0?r:i,l=a+s*Math.PI/n,u=e+Math.cos(l)*c,d=t+Math.sin(l)*c;o+=(s===0?`M`:`L`)+u+`,`+d}return o+`Z`}let y=_.value.map(e=>{let t=Math.max(1,d-(a.markerSize+a.markerTextGap)),n=p(e.name||``,t),r=Math.max(...n.map(u),0),i=a.markerSize+a.markerTextGap+r,o=Math.max(a.markerSize,n.length*a.lineHeight);return{...e,lines:n,itemW:i,itemH:o}}),b=[],x={items:[],width:0,height:0};for(let e of y){let t=(x.items.length?a.itemGapX:0)+e.itemW;x.items.length&&x.width+t>d?(b.push(x),x={items:[e],width:e.itemW,height:e.itemH}):(x.items.push(e),x.width+=t,x.height=Math.max(x.height,e.itemH))}x.items.length&&b.push(x);let S=a.paddingY;for(let e of b){let t=Math.max(a.paddingX,(a.maxWidth-e.width)/2);for(let n=0;n<e.items.length;n+=1){let r=e.items[n],o=t+a.markerSize/2,s=S+e.height/2.5,l=a.markerSize/2,u=String(r.shape||`rect`).toLowerCase();if(u===`circle`){let e=f(`circle`);e.setAttribute(`cx`,String(o)),e.setAttribute(`cy`,String(s)),e.setAttribute(`r`,String(l*.8)),e.setAttribute(`fill`,r.color||`#000`),c.appendChild(e)}else if(u===`rect`||u===`square`){let e=f(`path`);e.setAttribute(`d`,g(o,s,4,l,-45)),e.setAttribute(`fill`,r.color||`#000`),c.appendChild(e)}else if(u===`diamond`){let e=f(`path`);e.setAttribute(`d`,g(o,s,4,l,45)),e.setAttribute(`fill`,r.color||`#000`),c.appendChild(e)}else if(u===`triangle`){let e=f(`path`);e.setAttribute(`d`,g(o,s,3,l,-90)),e.setAttribute(`fill`,r.color||`#000`),c.appendChild(e)}else if(u===`pentagon`){let e=f(`path`);e.setAttribute(`d`,g(o,s,5,l,-90)),e.setAttribute(`fill`,r.color||`#000`),c.appendChild(e)}else if(u===`hexagon`){let e=f(`path`);e.setAttribute(`d`,g(o,s,6,l,0)),e.setAttribute(`fill`,r.color||`#000`),c.appendChild(e)}else if(u===`star`){let e=f(`path`),t=l,n=l*.5;e.setAttribute(`d`,v(o,s,5,t,n)),e.setAttribute(`fill`,r.color||`#000`),c.appendChild(e)}else{let n=f(`rect`);n.setAttribute(`x`,String(t)),n.setAttribute(`y`,String(S+(e.height-a.markerSize)/2)),n.setAttribute(`width`,String(a.markerSize)),n.setAttribute(`height`,String(a.markerSize)),n.setAttribute(`fill`,r.color||`#000`),c.appendChild(n)}let d=t+a.markerSize+a.markerTextGap,p=S+(e.height-r.lines.length*a.lineHeight)/2+a.fontSize,m=f(`text`);m.setAttribute(`x`,String(d)),m.setAttribute(`y`,String(p)),m.setAttribute(`style`,`font-family:${i}; font-size:${a.fontSize}px; font-weight:${a.bold?`600`:`400`}; fill:${a.color};`),m.setAttribute(`dominant-baseline`,`ideographic`);let h=!0;for(let e of r.lines){let t=f(`tspan`);h||t.setAttribute(`dy`,String(a.lineHeight)),t.setAttribute(`x`,String(d)),t.textContent=e,m.appendChild(t),h=!1}c.appendChild(m),t+=r.itemW+(n<e.items.length-1?a.itemGapX:0)}S+=e.height+a.itemGapY}b.length&&(S-=a.itemGapY);let C=S+a.paddingY;return s.setAttribute(`x`,`0`),s.setAttribute(`y`,`0`),s.setAttribute(`width`,String(a.maxWidth)),s.setAttribute(`height`,String(C)),l.remove(),C+Math.round(a.fontSize*.4)}function I(e){let t=e.cloneNode(!0);return t.querySelectorAll(`script`).forEach(e=>e.remove()),k(e,t),j(t),t}function L(e){let t=Array.from(e.childNodes).filter(e=>e.nodeType===1&&e.nodeName.toLowerCase()===`defs`),n=Array.from(e.childNodes).filter(e=>e.nodeType!==1||e.nodeName.toLowerCase()!==`defs`),r=document.createElementNS(o,`g`);r.setAttribute(`id`,`__vdu_export_content`);for(let e of n)r.appendChild(e);for(let n of t)e.appendChild(n);return e.appendChild(r),r}function R(e,t){t<=0||e.setAttribute(`transform`,`translate(0, ${t})`)}function z(e,t){if(t<=0)return;let n=A(e),r=e.getAttribute(`height`);if(n)e.setAttribute(`viewBox`,`${n.minX} ${n.minY} ${n.width} ${n.height+t}`),r&&e.setAttribute(`height`,String(Number(r)+t));else if(r)e.setAttribute(`height`,String(Number(r)+t));else{let n=e.getBBox();e.setAttribute(`viewBox`,`0 0 ${Math.max(1,n.width)} ${Math.max(1,n.height+t)}`)}}function B(e){let t=A(e);if(t)return t.width;let n=Number(e.getAttribute(`width`));return!Number.isNaN(n)&&n>0?n:e.getBBox().width||0}function V(e){let t=A(e);if(t)return t.height;let n=Number(e.getAttribute(`height`));return!Number.isNaN(n)&&n>0?n:e.getBBox().height||0}async function H(e){let t=M(e);d();try{if(document.fonts?.ready)try{await Promise.race([document.fonts.ready,new Promise(e=>setTimeout(e,4e3))])}catch{}let t=L(e),n=A(e),r=n?n.minX:0,i=n?n.minY:0,a=Math.max(1,B(e)),o=Math.max(1,V(e)),s=p(u(e).getPropertyValue(`font-family`)||``),c=(b?null:P(e,a,r,i,s))??0,d=m&&m.value&&m.value.position?String(m.value.position).toLowerCase():`top`;m&&m.value&&m.value.show&&d===`top`&&(c+=F(e,a,r,i+c,s)),R(t,c);let f=0;m&&m.value&&m.value.show&&d===`bottom`&&(f+=F(e,a,r,i+c+o,s)),z(e,c+f),e.style.backgroundColor=v.value??`#FFF`,await g(e,{mode:`raster`}),h(e,l.value.text?-6:-48)}finally{N(t),d()}}async function U(){let e=I(await T());await H(e);let t=`<?xml version="1.0" standalone="no"?>\n${new XMLSerializer().serializeToString(e)}`,n=new Blob([t],{type:`image/svg+xml;charset=utf-8`});return{blob:n,url:URL.createObjectURL(n),text:t,dataUrl:`data:image/svg+xml;charset=utf-8,${encodeURIComponent(t)}`}}async function W(e){let{url:t}=await U(),n=e||l.value?.text||`chart`,r=document.createElement(`a`);r.href=t,r.download=n.endsWith(`.svg`)?n:`${n}.svg`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(t)}return{ready:S,getSvg:U,exportSvg:W}}function h(e,t=-50){if(!t)return;let n=e.getAttribute(`viewBox`),r=t=>{if(!t)return;let n=e.getAttribute(`height`);if(!n)return;let r=/^(\d+(\.\d+)?)(px)?$/.exec(n.trim());if(!r)return;let i=parseFloat(r[1])||0,a=Math.max(1,i+t);e.setAttribute(`height`,String(a))};if(n){let i=n.trim().split(/\s+|,/).map(Number);if(i.length!==4||i.some(e=>!Number.isFinite(e)))return;let[a,o,s,c]=i,l=o+t,u=-t,d=Math.max(1,c+u);e.setAttribute(`viewBox`,`${a} ${l} ${s} ${d}`),r(u);return}let i=Number(e.getAttribute(`width`)),a=Number(e.getAttribute(`height`));if(!(i>0&&a>0)){let t=e.getBBox();i=Math.max(1,t.width||1),a=Math.max(1,t.height||1)}let o=t,s=-t,c=Math.max(1,a+s);e.setAttribute(`viewBox`,`0 ${o} ${i} ${c}`),(function(){let t=e.getAttribute(`height`);if(!t)return;let n=/^(\d+(\.\d+)?)(px)?$/.exec(t.trim());if(!n)return;let r=parseFloat(n[1])||0,i=Math.max(1,r+s);e.setAttribute(`height`,String(i))})()}async function g(e,{mode:t=`raster`}={}){let n=Array.from(e.querySelectorAll(`foreignObject`));if(!n.length)return{converted:0,rasterized:0,skipped:0,errors:0};let r=0,i=0,a=0,c=0,l=e=>[`div`,`p`,`span`,`strong`,`em`,`b`,`i`,`br`].includes(e),d=e=>{try{let t=e.firstElementChild;if(!t)return!1;let n=[t];for(;n.length;){let e=n.pop();if(e.nodeType===3)continue;if(e.nodeType!==1)return!1;let t=(e.tagName||``).toLowerCase();if(!l(t)||e.querySelector?.(`img,svg,canvas,video,foreignObject`))return!1;for(let t of Array.from(e.childNodes))n.push(t)}return!0}catch{return!1}};function f(e){try{let t=e.firstElementChild;if(!t)return null;let n=(e,t=0)=>Number.isFinite(+e)?+e:t,r=n(e.getAttribute(`x`),0),i=n(e.getAttribute(`y`),0),a=n(e.getAttribute(`width`),NaN);if(!Number.isFinite(a)||a<=0){let t=e.getBBox?.();a=Math.max(1,n(t?.width,0))}let s=(e,t)=>{if(!e)return Math.round(t*1.2);let n=e.trim().toLowerCase();if(n===`normal`)return Math.round(t*1.2);if(n.endsWith(`px`))return parseFloat(n)||Math.round(t*1.2);if(n.endsWith(`%`))return parseFloat(n)/100*t||Math.round(t*1.2);if(n.endsWith(`em`))return(parseFloat(n)||1)*t;if(n.endsWith(`rem`)){let e=parseFloat(getComputedStyle(document.documentElement).fontSize)||t;return(parseFloat(n)||1)*e}let r=Number(n);return Number.isFinite(r)?r*t:Math.round(t*1.2)},c=e=>{let t=(e||``).split(/\s+/).map(e=>{let t=(e||``).trim().toLowerCase();if(t.endsWith(`px`))return parseFloat(t)||0;if(t.endsWith(`rem`)){let e=parseFloat(getComputedStyle(document.documentElement).fontSize)||16;return(parseFloat(t)||0)*e}if(t.endsWith(`em`)){let e=parseFloat(getComputedStyle(document.body).fontSize)||16;return(parseFloat(t)||0)*e}let n=Number(t);return Number.isFinite(n)?n:0}).filter(Number.isFinite);return t.length?t.length===1?[t[0],t[0],t[0],t[0]]:t.length===2?[t[0],t[1],t[0],t[1]]:t.length===3?[t[0],t[1],t[2],t[1]]:[t[0],t[1],t[2],t[3]]:[0,0,0,0]},l=(e,t)=>{let n=u(e),r=n.getPropertyValue(`font-family`)||t?.ff||`system-ui`;r=p(r);let i=parseFloat(n.getPropertyValue(`font-size`));Number.isFinite(i)||(i=t?.fs||14);let a=n.getPropertyValue(`font-weight`)||t?.fw||`400`,o=n.getPropertyValue(`font-style`)||t?.fsty||`normal`,l=n.getPropertyValue(`font-stretch`)||t?.fstc||`normal`,d=n.getPropertyValue(`letter-spacing`)||t?.lsp||`normal`,f=n.getPropertyValue(`word-spacing`)||t?.wsp||`0px`,m=n.getPropertyValue(`font-kerning`)||t?.kern||`auto`,h=n.getPropertyValue(`font-variant-ligatures`)||t?.liga||`normal`,g=n.getPropertyValue(`text-transform`)||t?.ttfm||`none`,_=n.getPropertyValue(`color`)||t?.fill||`#000`,v=n.getPropertyValue(`line-height`),y=!v||v.trim().toLowerCase()===`normal`?t?.lh??Math.round(i*1.2):s(v,i),b=(n.getPropertyValue(`text-align`)||t?.ta||`start`).trim().toLowerCase(),x=parseFloat(n.getPropertyValue(`padding-top`))||0,S=parseFloat(n.getPropertyValue(`padding-right`))||0,C=parseFloat(n.getPropertyValue(`padding-bottom`))||0,w=parseFloat(n.getPropertyValue(`padding-left`))||0,T=n.getPropertyValue(`padding`);if(T&&x===0&&S===0&&C===0&&w===0){let[e,t,n,r]=c(T);x=e,S=t,C=n,w=r}let E=parseFloat(n.getPropertyValue(`border-left-width`))||0,D=parseFloat(n.getPropertyValue(`border-right-width`))||0,O=n.getPropertyValue(`box-sizing`)||`content-box`;return{ff:r,fs:i,fw:a,fsty:o,fstc:l,lsp:d,wsp:f,kern:m,liga:h,ttfm:g,fill:_,lh:y,ta:b,padL:w,padR:S,padT:x,padB:C,bL:E,bR:D,box:O}},d=e=>/^(div|p|section|article|ul|ol|li|h[1-6])$/.test(e),f={__para__:!0},m={__br__:!0},h=[],g=l(t),_=(e,t,n)=>{if(e.nodeType===3){let r=(e.nodeValue||``).replace(/\s+/g,` `).trim();r&&h.push({text:r,style:t,path:n.slice()});return}if(e.nodeType!==1)return;let r=e.tagName.toLowerCase();if(r===`br`){h.push({...m,path:n.slice()});return}let i=l(e,t);n.push(e);for(let t of Array.from(e.childNodes))_(t,i,n);n.pop(),d(r)&&h.push({...f,path:n.slice()})};for(_(t,g,[t]);h.length&&(h.at(-1).__para__||h.at(-1).__br__);)h.pop();if(!h.length)return null;let v=h.filter(e=>!e.__para__&&!e.__br__),y=(()=>{if(!v.length)return[t];let e=v.map(e=>e.path),n=Math.min(...e.map(e=>e.length)),r=0;for(;r<n;){let t=e[0][r];if(e.every(e=>e[r]===t))r+=1;else break}return e[0].slice(0,Math.max(1,r))})(),b=l(y[y.length-1]||t),x=0,S=0,C=0;for(let e of y){let t=l(e);x+=t.padL,S+=t.padR,C+=t.padT}let w=[Math.max(1,a-x-S)];for(let e of y)try{let t=u(e);if(e.clientWidth&&e.clientWidth>0){let n=parseFloat(t.paddingLeft)||0,r=parseFloat(t.paddingRight)||0,i=Math.max(1,e.clientWidth-n-r);w.push(i)}let n=t.width,r=parseFloat(n);if(Number.isFinite(r)&&r>0){let e=t.boxSizing||t.getPropertyValue(`box-sizing`)||`content-box`,n=parseFloat(t.paddingLeft)||0,i=parseFloat(t.paddingRight)||0,a=parseFloat(t.borderLeftWidth)||0,o=parseFloat(t.borderRightWidth)||0,s=e===`border-box`?Math.max(1,r-n-i-a-o):Math.max(1,r);w.push(s)}}catch{}let T=Math.floor(Math.min(...w.filter(Number.isFinite)))-1;T>0||(T=1);let E=`start`,D=r+x;b.ta===`center`?(E=`middle`,D=r+x+T/2):(b.ta===`right`||b.ta===`end`)&&(E=`end`,D=r+(a-S));let O=e.ownerSVGElement||e.closest(`svg`),k=document.createElementNS(o,`text`);k.setAttribute(`x`,String(D)),k.setAttribute(`y`,String(i+C)),k.setAttribute(`text-anchor`,E),k.setAttribute(`dominant-baseline`,`text-before-edge`),k.setAttribute(`xml:space`,`preserve`);let A=document.createElementNS(o,`text`);A.setAttribute(`x`,`0`),A.setAttribute(`y`,`0`),A.setAttribute(`opacity`,`0`),(O||e).appendChild(A);let j=e=>`font-family:${e.ff}; font-size:${e.fs}px; font-weight:${e.fw}; font-style:${e.fsty}; font-stretch:${e.fstc}; letter-spacing:${e.lsp}; word-spacing:${e.wsp}; font-kerning:${e.kern}; font-variant-ligatures:${e.liga}; text-transform:${e.ttfm};`,M=(e,t)=>(A.textContent=e||``,A.setAttribute(`style`,j(t)),A.getComputedTextLength()),N=e=>M(` `,e),P=[],F=[],I=0,L=()=>{F.length&&P.push({segs:F.slice()}),F=[],I=0},R=(e,t,n)=>{let r=M(e,t);if(n){let e=N(t);r+=e,F.push({text:` `,...t,w:e,isSpace:!0})}F.push({text:e,...t,w:r}),I+=r},z=(e,t,n)=>{let r=``;for(let i of e){let e=r+i;if(M(e,t)<=n)r=e;else break}return r||e[0]||``};for(let e of h){if(e.__para__||e.__br__){L();continue}let t=e.style,n=e.text.split(/(\s+)/).filter(e=>e.length>0),r=(e,n)=>{if(!e)return;let r=Math.max(1,T),i=M(e,t)+(n?N(t):0);if(F.length===0){if(i<=r)R(e,t,!1);else{let n=e;for(;n;){let e=z(n,t,r);R(e,t,!1),n=n.slice(e.length),n&&L()}}}else if(I+i<=r)R(e,t,n);else if(L(),M(e,t)<=r)R(e,t,!1);else{let n=e;for(;n;){let e=z(n,t,r);R(e,t,!1),n=n.slice(e.length),n&&L()}}},i=!1;for(let e of n){if(/^\s+$/.test(e)){i=!0;continue}r(e,i),i=!1}}L();for(let e=0;e<P.length;e+=1){let t=P[e].segs,n=Math.max(...t.map(e=>e.fs||b.fs),b.fs),r=!0;for(let i of t){let t=document.createElementNS(o,`tspan`);r&&=(t.setAttribute(`x`,String(D)),e>0&&t.setAttribute(`dy`,String(n)),!1),t.setAttribute(`style`,`${j(i)} fill:${i.fill};`),t.textContent=i.text,k.appendChild(t)}if(!t.length&&e>0){let e=document.createElementNS(o,`tspan`);e.setAttribute(`x`,String(D)),e.setAttribute(`dy`,String(n)),e.textContent=``,k.appendChild(e)}}try{A.remove()}catch{}return k}catch{return null}}let m=e=>{try{let t=document.createElement(`div`);t.style.position=`absolute`,t.style.left=`-99999px`,t.style.top=`-99999px`,t.style.visibility=`hidden`,t.style.pointerEvents=`none`,t.style.width=`auto`,t.style.height=`auto`;let n=e.cloneNode(!0);n.style.width=`auto`,n.style.height=`auto`,n.style.display=`inline-block`,n.style.maxWidth=`none`,n.style.maxHeight=`none`,n.style.boxSizing=`content-box`,document.body.appendChild(t),t.appendChild(n);let r=n.getBoundingClientRect(),i=Math.ceil(r.width||n.scrollWidth||0),a=Math.ceil(r.height||n.scrollHeight||0);return t.remove(),{w:Math.max(1,i),h:Math.max(1,a)}}catch{return{w:0,h:0}}};for(let e of n)try{if(e.hasAttribute(`data-no-svg-export`)){e.remove(),a+=1;continue}if(d(e)){let t=f(e);if(t){e.parentNode.replaceChild(t,e),r+=1;continue}}a+=1}catch{c+=1}if(t===`raster`){let t=Array.from(e.querySelectorAll(`foreignObject`));for(let e of t)try{if(e.hasAttribute(`data-no-svg-export`)){e.remove(),a+=1;continue}await new Promise(e=>requestAnimationFrame(e));let t=e.getBBox(),n=Math.max(1,Math.ceil(t.width)),r=Math.max(1,Math.ceil(t.height)),c=e.firstElementChild;if(c){let t=m(c),i=parseFloat(e.getAttribute(`width`)||`0`)||0,a=parseFloat(e.getAttribute(`height`)||`0`)||0;n=Math.max(n,i,t.w),r=Math.max(r,a,t.h)}if(!(n>0&&r>0)){a+=1;continue}let l=document.createElementNS(o,`svg`);l.setAttribute(`xmlns`,o),l.setAttribute(`xmlns:xlink`,s),l.setAttribute(`width`,String(n)),l.setAttribute(`height`,String(r)),l.setAttribute(`viewBox`,`0 0 ${n} ${r}`);let u=e.cloneNode(!0);u.setAttribute(`x`,`0`),u.setAttribute(`y`,`0`),u.setAttribute(`width`,String(n)),u.setAttribute(`height`,String(r)),l.appendChild(u);let d=new XMLSerializer().serializeToString(l),f=`data:image/svg+xml;charset=utf-8,`+encodeURIComponent(d),p=document.createElement(`canvas`);p.width=Math.max(1,Math.floor(n*2)),p.height=Math.max(1,Math.floor(r*2));let h=p.getContext(`2d`),g=new Image;g.decoding=`sync`,g.crossOrigin=`anonymous`,await new Promise((e,t)=>{g.onload=e,g.onerror=t,g.src=f}),h.drawImage(g,0,0,p.width,p.height);let _=p.toDataURL(`image/png`),v=document.createElementNS(o,`image`);v.setAttributeNS(s,`href`,_),v.setAttribute(`href`,_),v.setAttribute(`x`,e.getAttribute(`x`)||String(t.x)),v.setAttribute(`y`,e.getAttribute(`y`)||String(t.y)),v.setAttribute(`width`,String(n)),v.setAttribute(`height`,String(r)),e.parentNode.replaceChild(v,e),i+=1}catch{c+=1}}return{converted:r,rasterized:i,skipped:a,errors:c}}function _({svg:e,title:n,legend:i,legendItems:a,backgroundColor:o,getSvgCallback:s,generateImage:c,titleEmbedded:l=!1,stretchTitle:u=!1}){let d=r(!1),f=r(!1),{exportSvg:p,getSvg:h}=m({svg:e,title:n,legend:i,legendItems:a,backgroundColor:o,titleEmbedded:l,stretchTitle:u});async function g({isCb:e}){f.value=!0,await t();try{if(e){let{blob:e,url:t,text:n,dataUrl:r}=await h();await Promise.resolve(s()({blob:e,url:t,text:n,dataUrl:r}))}else await Promise.resolve(p())}finally{f.value=!1}}function _(e){if(e?.stage===`start`){d.value=!0;return}if(e?.stage===`end`){d.value=!1;return}c()}return{isCallbackImaging:d,isCallbackSvg:f,generateSvg:g,onGenerateImage:_}}export{_ as t};
|