vue-data-ui 3.22.2 → 3.22.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-BGhJI-qh.js → Arrow-CgzmXCW_.js} +1 -1
- package/dist/{BaseDraggableDialog-a9xCKjW-.js → BaseDraggableDialog-DjzNWkiE.js} +2 -2
- package/dist/{BaseIcon-DEtwcvEH.js → BaseIcon-xBuW2jjI.js} +1 -1
- package/dist/{BaseLegendToggle-B-lM0iV1.js → BaseLegendToggle-C4Usj0LI.js} +1 -1
- package/dist/{BaseZoomControls-BjjT6vtB.js → BaseZoomControls-Cg9o2J-q.js} +2 -2
- package/dist/{ColorPicker-DMLahA2S.js → ColorPicker-Usv7badH.js} +2 -2
- package/dist/{DataTable-DJZgdnIn.js → DataTable-PidUPOit.js} +2 -2
- package/dist/Legend-DXOzbXb-.js +156 -0
- package/dist/{NonSvgPenAndPaper-Dwq_M6Bz.js → NonSvgPenAndPaper-OIs8I25K.js} +19 -19
- package/dist/{PackageVersion-Dx81ZIAL.js → PackageVersion-Cm-3hwIF.js} +1 -1
- package/dist/{PenAndPaper-DJIIG6dv.js → PenAndPaper-ISUbDKXq.js} +11 -11
- package/dist/{Shape-C5OvuwII.js → Shape-BnF9aMPX.js} +3 -3
- package/dist/Slicer-hEvKOLw3.js +1145 -0
- package/dist/{SlicerPreview-CAhqG_ZQ.js → SlicerPreview-BDI-aCXE.js} +36 -35
- package/dist/{SparkTooltip-DTzo8Sah.js → SparkTooltip-DaWSTzfA.js} +1 -1
- package/dist/{Title-CVYf1f8m.js → Title-DDEEO-Nr.js} +1 -1
- package/dist/{Tooltip-BmGCBJuU.js → Tooltip-BhKov422.js} +1 -1
- package/dist/{UserOptions-xqbNpHi2.js → UserOptions-BxT1XHzN.js} +2 -2
- 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-heatmap.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-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-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-rjAIVHxa.js → dom-to-png-ZOysoMwu.js} +1 -1
- package/dist/exposedLib-C2U48XK7.js +19 -0
- package/dist/img-B29J8tV5.js +129 -0
- package/dist/{labelUtils-C0D1tjig.js → labelUtils-BFcL_t-A.js} +1 -1
- package/dist/{lib-CXicicWN.js → lib-CuwHGt1j.js} +143 -124
- package/dist/{package-CILLITOI.js → package-CRlwXCDr.js} +1 -1
- package/dist/{pdf-ChYv2jb6.js → pdf-ymYt9Lee.js} +1 -1
- package/dist/{render-common-bMAFQ_qf.js → render-common-D6ny-Fwu.js} +22 -22
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +69 -2
- package/dist/types/vue-ui-strip-plot.d.ts +2 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-B4-0yo3K.js → useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js} +1 -1
- package/dist/{useConfig-Bf_EBbe3.js → useConfig-pVLia3dt.js} +30 -2
- package/dist/{useNestedProp-APyFoLCQ.js → useNestedProp-BjkuFaz1.js} +1 -1
- package/dist/{useObjectBindings-Byts-nf-.js → useObjectBindings-C1XuDxFr.js} +2 -2
- package/dist/{usePrinter-Dng0UK-G.js → usePrinter-C0wAS8yc.js} +3 -3
- package/dist/utils.js +14 -14
- package/dist/{vue-data-ui-DD-txoS1.js → vue-data-ui-DTWqd0R2.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-DBpSRV-C.js +1757 -0
- package/dist/{vue-ui-accordion-Di_givzQ.js → vue-ui-accordion-B64IJyPU.js} +4 -4
- package/dist/{vue-ui-age-pyramid-CTwMfsqS.js → vue-ui-age-pyramid-e09oK-Fp.js} +289 -289
- package/dist/{vue-ui-annotator-tRkLFMQ9.js → vue-ui-annotator-CU4CdKMm.js} +69 -69
- package/dist/vue-ui-bullet-tlj5_z_z.js +710 -0
- package/dist/{vue-ui-bump-BJ5O8Mps.js → vue-ui-bump-BD0Uq3As.js} +259 -259
- package/dist/vue-ui-candlestick-CZxsNGKS.js +1826 -0
- package/dist/{vue-ui-carousel-table-8s8BSy-K.js → vue-ui-carousel-table-ycbcmBKt.js} +122 -122
- package/dist/vue-ui-chestnut-CnEsjvh4.js +2010 -0
- package/dist/{vue-ui-chord-1BitQtEw.js → vue-ui-chord-BZhXsZXp.js} +53 -53
- package/dist/{vue-ui-circle-pack-DVMhDFKU.js → vue-ui-circle-pack-BPC6zUis.js} +46 -46
- package/dist/{vue-ui-cursor-D7yh10hX.js → vue-ui-cursor-DF_e5k1s.js} +4 -4
- package/dist/{vue-ui-dag--LFEAAf_.js → vue-ui-dag-BIo4-Oa8.js} +49 -49
- package/dist/{vue-ui-dashboard-COeO878g.js → vue-ui-dashboard-BEtF6UX2.js} +70 -70
- package/dist/{vue-ui-digits-C50FVr7C.js → vue-ui-digits-07IxTlNO.js} +4 -4
- package/dist/vue-ui-donut-C4FcvXm3.js +2410 -0
- package/dist/{vue-ui-donut-BzKXqQA2.js → vue-ui-donut-C5oRCxAO.js} +193 -193
- package/dist/{vue-ui-donut-evolution-lPkwit2C.js → vue-ui-donut-evolution-BSeyPC9k.js} +419 -419
- package/dist/{vue-ui-dumbbell-hlEfvbbf.js → vue-ui-dumbbell-Cykw4WYn.js} +341 -341
- package/dist/{vue-ui-flow-Bg_OSszc.js → vue-ui-flow-R_dLE1WS.js} +72 -72
- package/dist/vue-ui-funnel-Ct5xQdak.js +777 -0
- package/dist/vue-ui-galaxy-B5BkdIt5.js +1077 -0
- package/dist/vue-ui-gauge-AbzY-7Gg.js +920 -0
- package/dist/{vue-ui-geo-DtzXRvmx.js → vue-ui-geo-DVT9XEC3.js} +18 -18
- package/dist/{vue-ui-gizmo-hIFd7qck.js → vue-ui-gizmo-DJTRXao8.js} +62 -62
- package/dist/{vue-ui-heatmap-yPlwc3l_.js → vue-ui-heatmap-BCFId15K.js} +293 -293
- package/dist/vue-ui-history-plot-DCeroetw.js +1700 -0
- package/dist/{vue-ui-horizontal-bar-CJciNHpT.js → vue-ui-horizontal-bar-j3jszojt.js} +75 -75
- package/dist/{vue-ui-kpi-DmSe1QGb.js → vue-ui-kpi-DJjF6tcf.js} +12 -12
- package/dist/{vue-ui-mini-loader-CqxI6DwN.js → vue-ui-mini-loader-nOsOsA2V.js} +3 -3
- package/dist/{vue-ui-molecule-w-94Uktn.js → vue-ui-molecule-2pfoR63d.js} +213 -213
- package/dist/{vue-ui-mood-radar-B3OGWGHR.js → vue-ui-mood-radar-DP_4LHfZ.js} +40 -40
- package/dist/{vue-ui-nested-donuts-Dv_yE5EV.js → vue-ui-nested-donuts-DFsLZEqx.js} +255 -255
- package/dist/{vue-ui-onion-BQbI0Vxd.js → vue-ui-onion-CzXx3Rme.js} +293 -293
- package/dist/vue-ui-parallel-coordinate-plot-BY6dptUG.js +1416 -0
- package/dist/{vue-ui-quadrant-BB7qdXK0.js → vue-ui-quadrant-Br_iZmcw.js} +57 -57
- package/dist/{vue-ui-quick-chart-CGDeo3Fx.js → vue-ui-quick-chart-CnIFPFPv.js} +654 -654
- package/dist/vue-ui-radar-CNwKFbHc.js +1281 -0
- package/dist/{vue-ui-rating-ChDwpol2.js → vue-ui-rating-CRziryE2.js} +22 -22
- package/dist/vue-ui-relation-circle-BVDIikGi.js +924 -0
- package/dist/{vue-ui-ridgeline-Cq8z57xB.js → vue-ui-ridgeline-Kw50zROq.js} +468 -468
- package/dist/vue-ui-rings-BDJyoWvT.js +1246 -0
- package/dist/vue-ui-scatter-DoL5Kh1Y.js +2413 -0
- package/dist/{vue-ui-skeleton-DJ5KAbfV.js → vue-ui-skeleton-BOHwJSdz.js} +22 -22
- package/dist/{vue-ui-smiley-fFrNX-Gl.js → vue-ui-smiley-BTvDy8Fm.js} +5 -5
- package/dist/{vue-ui-spark-trend-D6OBWxmg.js → vue-ui-spark-trend-OgSFIFh0.js} +24 -24
- package/dist/{vue-ui-sparkbar-CtCP8O44.js → vue-ui-sparkbar-D8FdqMB_.js} +35 -35
- package/dist/{vue-ui-sparkgauge-CZDkyViI.js → vue-ui-sparkgauge-CBpPbVkw.js} +56 -56
- package/dist/vue-ui-sparkhistogram-BQjbLa2k.js +560 -0
- package/dist/{vue-ui-sparkline-CJKE7Xcl.js → vue-ui-sparkline-BJfh5Lje.js} +200 -200
- package/dist/{vue-ui-sparkstackbar-BSV0M-2u.js → vue-ui-sparkstackbar-1WUQrqd7.js} +126 -126
- package/dist/vue-ui-stackbar-Dqs7_g8D.js +2329 -0
- package/dist/{vue-ui-stackline-DS_MPmc1.js → vue-ui-stackline-IRjugedp.js} +406 -388
- package/dist/vue-ui-strip-plot-B7D6Hk8R.js +1729 -0
- package/dist/{vue-ui-table-c1FPEwLM.js → vue-ui-table-Bqi9XNvY.js} +64 -64
- package/dist/{vue-ui-table-heatmap-CMQJXnP8.js → vue-ui-table-heatmap-D38YSxhJ.js} +16 -16
- package/dist/{vue-ui-table-sparkline-CAS9Pk60.js → vue-ui-table-sparkline-0Ffb2jdf.js} +19 -19
- package/dist/vue-ui-thermometer-Di5PXtEO.js +763 -0
- package/dist/{vue-ui-timer-CSP48eS-.js → vue-ui-timer-9CDcd-gP.js} +6 -6
- package/dist/{vue-ui-tiremarks-DJvXj1P3.js → vue-ui-tiremarks-BAQ-cCSq.js} +10 -10
- package/dist/vue-ui-treemap-CLOlWiDE.js +1587 -0
- package/dist/vue-ui-waffle-DG2IfACo.js +1362 -0
- package/dist/{vue-ui-wheel-CbL52G-w.js → vue-ui-wheel-BfXJFCjv.js} +29 -29
- package/dist/{vue-ui-word-cloud-BqOCyp7c.js → vue-ui-word-cloud-3NJy1z6d.js} +28 -28
- package/dist/{vue-ui-world-BkjzCcVh.js → vue-ui-world-vrGT5g1H.js} +127 -127
- package/dist/{vue-ui-xy-CVDNhnDY.js → vue-ui-xy-Cb7u46JN.js} +410 -410
- package/dist/{vue-ui-xy-DuwLRfr4.js → vue-ui-xy-Dg0wxSeC.js} +760 -760
- package/dist/{vue-ui-xy-canvas-CXqGVMeQ.js → vue-ui-xy-canvas-CjbjJ70r.js} +60 -60
- package/dist/{vue_ui_strip_plot-CtJe8_gq.js → vue_ui_strip_plot-BaHbnnwN.js} +7 -0
- package/package.json +1 -1
- package/dist/Legend-BVDhEEsC.js +0 -115
- package/dist/Slicer-ClR833cP.js +0 -1144
- package/dist/exposedLib-CffbQxjN.js +0 -19
- package/dist/img-BCAOkqfM.js +0 -74
- package/dist/vue-ui-3d-bar-DxfNdF2e.js +0 -1757
- package/dist/vue-ui-bullet-9gtGJaGb.js +0 -710
- package/dist/vue-ui-candlestick-CJ_VVYbJ.js +0 -1826
- package/dist/vue-ui-chestnut-D3-ck2h2.js +0 -2010
- package/dist/vue-ui-donut-NHjQzFO5.js +0 -2410
- package/dist/vue-ui-funnel-B_bK0jJB.js +0 -777
- package/dist/vue-ui-galaxy-WVCUzcYc.js +0 -1077
- package/dist/vue-ui-gauge-Cqeko0wA.js +0 -920
- package/dist/vue-ui-history-plot-BGmcDg2w.js +0 -1554
- package/dist/vue-ui-parallel-coordinate-plot-ColST3Jj.js +0 -1416
- package/dist/vue-ui-radar-DqDn14DL.js +0 -1281
- package/dist/vue-ui-relation-circle-BvfZqcK0.js +0 -924
- package/dist/vue-ui-rings-Ds-sgNPK.js +0 -1246
- package/dist/vue-ui-scatter-BgOVUzQ3.js +0 -2413
- package/dist/vue-ui-sparkhistogram-DgruLf33.js +0 -560
- package/dist/vue-ui-stackbar-pnlYCnTj.js +0 -2270
- package/dist/vue-ui-strip-plot-DSKOrJZX.js +0 -1340
- package/dist/vue-ui-thermometer-w3eeJv9s.js +0 -763
- package/dist/vue-ui-treemap-BaOMXTR1.js +0 -1587
- package/dist/vue-ui-waffle-Bo22Ph8n.js +0 -1362
|
@@ -231,7 +231,7 @@ var v = {
|
|
|
231
231
|
function b(t) {
|
|
232
232
|
let r = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i, i = /^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i, a = /^rgba?\(\s*([+\-]?\d*\.?\d+%?)(?:\s*,\s*|\s+)([+\-]?\d*\.?\d+%?)(?:\s*,\s*|\s+)([+\-]?\d*\.?\d+%?)(?:\s*(?:,|\/)\s*([+\-]?\d*\.?\d+%?))?\s*\)$/i, o = /^hsla?\(\s*([+\-]?\d*\.?\d+(?:deg)?)(?:\s*,\s*|\s+)([\d.]+)%(?:\s*,\s*|\s+)([\d.]+)%(?:\s*(?:,|\/)\s*([\d.]+%?))?\s*\)$/i, s = /^oklch\(\s*([\d.]+)%?\s*[, ]\s*([\d.]+)%?\s*[, ]\s*([\d.]+)(?:deg)?\s*(?:\/\s*([\d.]+%?)\s*)?\)$/i, c = /^lch\(/i;
|
|
233
233
|
if (t == null || typeof t == "number" && isNaN(t)) return null;
|
|
234
|
-
if (t = e?.(t) ? n(t) : t, t =
|
|
234
|
+
if (t = e?.(t) ? n(t) : t, t = He(t), Array.isArray(t)) {
|
|
235
235
|
let [e, n, r, i = 1] = t;
|
|
236
236
|
t = `rgba(${e},${n},${r},${i})`;
|
|
237
237
|
} else if (typeof t == "object") if (Number.isFinite(t.r) && Number.isFinite(t.g) && Number.isFinite(t.b)) {
|
|
@@ -406,7 +406,7 @@ function ie({ centerX: e, centerY: t, outerPoints: n, radius: r, rotation: i })
|
|
|
406
406
|
coordinates: c
|
|
407
407
|
};
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function ae({ plot: e, radius: t, sides: n, rotation: r = 0 }) {
|
|
410
410
|
let i = e.x, a = e.y;
|
|
411
411
|
return ie({
|
|
412
412
|
centerX: i,
|
|
@@ -416,7 +416,7 @@ function A({ plot: e, radius: t, sides: n, rotation: r = 0 }) {
|
|
|
416
416
|
rotation: r
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function oe({ centerX: e, centerY: t, innerCirclePoints: n, innerRadius: r, outerRadius: i }) {
|
|
420
420
|
let a = Math.PI / n, o = n * 2, s = "";
|
|
421
421
|
for (let n = 0; n < o; n += 1) {
|
|
422
422
|
let o = n % 2 == 0 ? i : r, c = e + Math.cos(n * a + 60) * o, l = t + Math.sin(n * a + 60) * o;
|
|
@@ -424,9 +424,9 @@ function ae({ centerX: e, centerY: t, innerCirclePoints: n, innerRadius: r, oute
|
|
|
424
424
|
}
|
|
425
425
|
return s;
|
|
426
426
|
}
|
|
427
|
-
function
|
|
427
|
+
function se({ plot: e, radius: t, apexes: n = 5 }) {
|
|
428
428
|
let r = e.x, i = e.y, a = n, o = t * 3.5 / a;
|
|
429
|
-
return
|
|
429
|
+
return oe({
|
|
430
430
|
centerX: r,
|
|
431
431
|
centerY: i,
|
|
432
432
|
innerCirclePoints: a,
|
|
@@ -434,7 +434,7 @@ function oe({ plot: e, radius: t, apexes: n = 5 }) {
|
|
|
434
434
|
outerRadius: o * 2
|
|
435
435
|
});
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function ce({ series: e }) {
|
|
438
438
|
if (!Array.isArray(e) || e.length === 0) return "";
|
|
439
439
|
let t = Array.from(new Map(e.filter((e) => e && Number.isFinite(e.x) && Number.isFinite(e.y)).map((e) => [`${e.x},${e.y}`, {
|
|
440
440
|
x: +e.x,
|
|
@@ -462,10 +462,13 @@ function se({ series: e }) {
|
|
|
462
462
|
for (let e of a) l += `${Math.round(e.x)},${Math.round(e.y)} `;
|
|
463
463
|
return l;
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function A(e) {
|
|
466
466
|
return e * Math.PI / 180;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function le(e, t, n) {
|
|
469
|
+
return Math.min(Math.max(e, t), n);
|
|
470
|
+
}
|
|
471
|
+
function ue(e) {
|
|
469
472
|
if (typeof e != "string") return null;
|
|
470
473
|
let t = e.trim();
|
|
471
474
|
if (!t.startsWith("#")) return null;
|
|
@@ -487,52 +490,52 @@ function ce(e) {
|
|
|
487
490
|
alpha: Number.parseInt(n.slice(6, 8), 16) / 255
|
|
488
491
|
} : null;
|
|
489
492
|
}
|
|
490
|
-
function
|
|
493
|
+
function de(e, t, n) {
|
|
491
494
|
let r = e / 255, i = t / 255, a = n / 255, o = (e) => e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4, s = o(r), c = o(i), l = o(a);
|
|
492
495
|
return .2126 * s + .7152 * c + .0722 * l;
|
|
493
496
|
}
|
|
494
|
-
function
|
|
497
|
+
function fe(e, t = {
|
|
495
498
|
dark: "#000000",
|
|
496
499
|
light: "#FFFFFF"
|
|
497
500
|
}) {
|
|
498
501
|
if (!e) return t?.dark ?? "#000000";
|
|
499
|
-
let n =
|
|
502
|
+
let n = ue(b(e));
|
|
500
503
|
if (!n) return t?.dark ?? "#000000";
|
|
501
|
-
let r =
|
|
504
|
+
let r = de(n.red, n.green, n.blue);
|
|
502
505
|
return (n.alpha < 1 ? n.alpha * r + (1 - n.alpha) * 1 : r) > .3 ? t?.dark ?? "#000000" : t?.light ?? "#FFFFFF";
|
|
503
506
|
}
|
|
504
|
-
function
|
|
507
|
+
function j(e) {
|
|
505
508
|
return typeof e == "object" && !!e && Object.prototype.toString.call(e) === "[object Object]" && (e.constructor === Object || e.constructor == null);
|
|
506
509
|
}
|
|
507
|
-
function
|
|
510
|
+
function M(e) {
|
|
508
511
|
return !!e && (e.__v_isRef || e.__v_isReactive || e.__v_isReadonly || e.effect || e.dep || e.deps || e.subs);
|
|
509
512
|
}
|
|
510
|
-
function
|
|
513
|
+
function N(e) {
|
|
511
514
|
return e === "" ? "#000000" : e === "transparent" ? "#FFFFFF00" : b(e) ?? e;
|
|
512
515
|
}
|
|
513
|
-
function
|
|
516
|
+
function P(r, i = /* @__PURE__ */ new WeakSet()) {
|
|
514
517
|
let a = t(r);
|
|
515
|
-
if (!
|
|
518
|
+
if (!j(a) || i.has(a)) return a;
|
|
516
519
|
i.add(a);
|
|
517
520
|
for (let t in a) {
|
|
518
521
|
let r = e(a[t]) ? n(a[t]) : a[t];
|
|
519
522
|
if (t === "color" || t === "backgroundColor") {
|
|
520
|
-
typeof r == "string" && (a[t] =
|
|
523
|
+
typeof r == "string" && (a[t] = N(r));
|
|
521
524
|
continue;
|
|
522
525
|
}
|
|
523
526
|
if (t === "stroke") {
|
|
524
|
-
typeof r == "string" ? a[t] =
|
|
527
|
+
typeof r == "string" ? a[t] = N(r) : j(r) && !M(r) && P(r, i);
|
|
525
528
|
continue;
|
|
526
529
|
}
|
|
527
530
|
if (Array.isArray(r)) {
|
|
528
|
-
for (let e of r)
|
|
531
|
+
for (let e of r) j(e) && !M(e) && P(e, i);
|
|
529
532
|
continue;
|
|
530
533
|
}
|
|
531
|
-
|
|
534
|
+
j(r) && !M(r) && P(r, i);
|
|
532
535
|
}
|
|
533
536
|
return a;
|
|
534
537
|
}
|
|
535
|
-
function
|
|
538
|
+
function pe(e) {
|
|
536
539
|
let t = e?.length ?? 0;
|
|
537
540
|
if (t < 2) return {
|
|
538
541
|
x1: 0,
|
|
@@ -556,16 +559,16 @@ function de(e) {
|
|
|
556
559
|
trend: (x - b) / S
|
|
557
560
|
};
|
|
558
561
|
}
|
|
559
|
-
function
|
|
562
|
+
function me(e) {
|
|
560
563
|
let t = Math.floor(e.length / 2), n = [...e].sort((e, t) => e - t);
|
|
561
564
|
return e.length % 2 == 0 ? (n[t - 1] + n[t]) / 2 : n[t];
|
|
562
565
|
}
|
|
563
|
-
function
|
|
566
|
+
function he(e) {
|
|
564
567
|
let t = [];
|
|
565
568
|
for (let n = 0; n < e.length; n += 1) t.push(`${h(e[n].x)},${h(e[n].y)} `);
|
|
566
569
|
return t.join(" ").trim();
|
|
567
570
|
}
|
|
568
|
-
function
|
|
571
|
+
function F(e, t = null) {
|
|
569
572
|
let n = (e) => e && e.value !== null && e.value !== void 0 && Number.isFinite(e.x) && Number.isFinite(e.y), r = [], i = [];
|
|
570
573
|
for (let t of e) n(t) ? i.push(t) : (i.length && r.push(i), i = []);
|
|
571
574
|
return i.length && r.push(i), r.map((e) => {
|
|
@@ -627,7 +630,7 @@ function z(e, t = !1, n = 16, r = !1) {
|
|
|
627
630
|
function B(e, t = 16, n = 16) {
|
|
628
631
|
return e.center.endY > e.cy ? e.center.endY + n : e.center.endY < e.cy ? e.center.endY - t : e.center.endY;
|
|
629
632
|
}
|
|
630
|
-
function
|
|
633
|
+
function ge({ initX: e, initY: t, offset: n, centerX: r, centerY: i }) {
|
|
631
634
|
let a = Math.atan2(t - i, e - r);
|
|
632
635
|
return {
|
|
633
636
|
x: e + n * Math.cos(a),
|
|
@@ -651,23 +654,23 @@ function V(e) {
|
|
|
651
654
|
y: c
|
|
652
655
|
};
|
|
653
656
|
}
|
|
654
|
-
function
|
|
657
|
+
function _e(e, t = !1, n = 16, r = 16, i = !1, a = !1, o = 0, s = 12, c = !1) {
|
|
655
658
|
let { x: l } = V(e.path), u = `${z(e).x},${B(e, n, r) - 4} `, d = "", f, p;
|
|
656
659
|
l > e.cx ? (f = z(e).x - s, p = B(e, n, r) - 4, d = `${f},${p}`) : (e.cx, f = z(e).x + s, p = B(e, n, r) - 4, d = `${f},${p}`);
|
|
657
660
|
let m = ` ${e.center.endX},${e.center.endY}`;
|
|
658
661
|
return c ? a ? `M${d} Q${d} ${m}` : `M${u} Q${d} ${m}` : `M${a ? "" : u}${d}${m}`;
|
|
659
662
|
}
|
|
660
|
-
function
|
|
663
|
+
function ve(e) {
|
|
661
664
|
return ![
|
|
662
665
|
null,
|
|
663
666
|
void 0,
|
|
664
667
|
NaN
|
|
665
668
|
].includes(e);
|
|
666
669
|
}
|
|
667
|
-
function
|
|
670
|
+
function ye(e, t) {
|
|
668
671
|
return [...e].map((e) => e[t]).reduce((e, t) => e + t, 0);
|
|
669
672
|
}
|
|
670
|
-
function
|
|
673
|
+
function be(e, t = !0, n = !1) {
|
|
671
674
|
if (!e.length) return "M0,0";
|
|
672
675
|
let r = "";
|
|
673
676
|
return e.forEach((e) => {
|
|
@@ -675,21 +678,21 @@ function ye(e, t = !0, n = !1) {
|
|
|
675
678
|
r += `${e.x},${e.y} `;
|
|
676
679
|
}), n ? r.trim() : `M${r}${t ? "Z" : ""}`;
|
|
677
680
|
}
|
|
678
|
-
function
|
|
681
|
+
function xe({ csvContent: e, title: t = "vue-data-ui" }) {
|
|
679
682
|
let n = encodeURI(e), r = document.createElement("a");
|
|
680
683
|
r.setAttribute("href", n), r.setAttribute("download", `${t}.csv`), document.body.appendChild(r), r.click(), r.remove(), window.URL.revokeObjectURL(n);
|
|
681
684
|
}
|
|
682
|
-
function
|
|
685
|
+
function Se(e) {
|
|
683
686
|
return `data:text/csv;charset=utf-8,${e.map((e) => e.join(",")).join("\n")}`;
|
|
684
687
|
}
|
|
685
|
-
function
|
|
688
|
+
function Ce(e, t) {
|
|
686
689
|
if (!/^#([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)) return console.warn("lightenHexColor : Invalid hex color format"), "#000000";
|
|
687
690
|
let n = e.replace("#", "");
|
|
688
691
|
n.length === 3 && (n = n.split("").map((e) => e + e).join(""));
|
|
689
692
|
let r = parseInt(n.substring(0, 2), 16), i = parseInt(n.substring(2, 4), 16), a = parseInt(n.substring(4, 6), 16), o = Math.min(255, r + (255 - r) * t), s = Math.min(255, i + (255 - i) * t), c = Math.min(255, a + (255 - a) * t), l = `#${Math.round(o).toString(16).padStart(2, "0")}${Math.round(s).toString(16).padStart(2, "0")}${Math.round(c).toString(16).padStart(2, "0")}`;
|
|
690
693
|
return n.length === 8 ? l + n.substring(6, 8) : l;
|
|
691
694
|
}
|
|
692
|
-
function
|
|
695
|
+
function we(e, t) {
|
|
693
696
|
if (!/^#([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)) return console.warn("darkenHexColor: Invalid hex color format"), "#000000";
|
|
694
697
|
let n = e.replace("#", "");
|
|
695
698
|
n.length === 3 && (n = n.split("").map((e) => e + e).join(""));
|
|
@@ -700,7 +703,7 @@ function H(e, t) {
|
|
|
700
703
|
let n = Math.floor(Math.log10(e)), r = e / 10 ** n, i;
|
|
701
704
|
return i = t ? r < 1.5 ? 1 : r < 3 ? 2 : r < 7 ? 5 : 10 : r <= 1 ? 1 : r <= 2 ? 2 : r <= 5 ? 5 : 10, i * 10 ** n;
|
|
702
705
|
}
|
|
703
|
-
function
|
|
706
|
+
function Te(e, t, n, r = !1) {
|
|
704
707
|
let i = r ? t - e : H(t - e, !1), a = r ? i / (n - 1) : H(i / (n - 1), !0), o = Math.floor(e / a) * a, s = Math.ceil(t / a) * a, c = [];
|
|
705
708
|
for (let e = o; e <= s; e += a) c.push(e);
|
|
706
709
|
return {
|
|
@@ -710,7 +713,7 @@ function we(e, t, n, r = !1) {
|
|
|
710
713
|
ticks: c
|
|
711
714
|
};
|
|
712
715
|
}
|
|
713
|
-
function
|
|
716
|
+
function Ee(e, t, n, r = !1) {
|
|
714
717
|
let i = r ? t - e : H(t - e, !1), a = r ? i / (n - 1) : H(i / (n - 1), !0), o = Math.floor(e / a) * a, s = Math.ceil(t / a) * a, c = [], l = o;
|
|
715
718
|
for (; l <= s;) l >= e && l <= t && c.push(l), l += a;
|
|
716
719
|
return c[0] !== e && (c[0] = e), c[c.length - 1] !== t && (c[c.length - 1] = t), {
|
|
@@ -720,7 +723,7 @@ function Te(e, t, n, r = !1) {
|
|
|
720
723
|
ticks: c
|
|
721
724
|
};
|
|
722
725
|
}
|
|
723
|
-
function
|
|
726
|
+
function De(e) {
|
|
724
727
|
if (typeof e != "string") return console.error("hexColor must be a string"), "#000000ff";
|
|
725
728
|
let t = e.trim();
|
|
726
729
|
if (!t.startsWith("#")) return console.error("hexColor must start with #"), "#000000ff";
|
|
@@ -733,21 +736,21 @@ function Ee(e) {
|
|
|
733
736
|
].includes(n.length) ? /^[0-9a-fA-F]+$/.test(n) ? n.length === 3 || n.length === 4 ? `#${n.split("").map((e) => e + e).join("")}` : t : (console.error("hexColor contains invalid characters"), "#000000ff") : (console.error("hexColor must be #RGB, #RGBA, #RRGGBB, or #RRGGBBAA"), "#000000ff");
|
|
734
737
|
}
|
|
735
738
|
var U = (e) => {
|
|
736
|
-
let t =
|
|
739
|
+
let t = De(e);
|
|
737
740
|
return {
|
|
738
741
|
r: parseInt(t.substring(1, 3), 16),
|
|
739
742
|
g: parseInt(t.substring(3, 5), 16),
|
|
740
743
|
b: parseInt(t.substring(5, 7), 16),
|
|
741
744
|
a: t.length === 9 ? parseInt(t.substring(7, 9), 16) / 255 : 1
|
|
742
745
|
};
|
|
743
|
-
},
|
|
746
|
+
}, Oe = ({ r: e, g: t, b: n, a: r = 1 }) => {
|
|
744
747
|
let i = W(r, 0, 1), a = `#${k(e)}${k(t)}${k(n)}`;
|
|
745
748
|
return i < 1 ? `${a}${k(i * 255)}` : a;
|
|
746
749
|
};
|
|
747
750
|
function W(e, t, n) {
|
|
748
751
|
return Math.min(Math.max(e, t), n);
|
|
749
752
|
}
|
|
750
|
-
function
|
|
753
|
+
function ke(e, t, n, r, i) {
|
|
751
754
|
let a = U(e), o = U(t);
|
|
752
755
|
i = Math.min(Math.max(i, n), r);
|
|
753
756
|
let s = (i - n) / (r - n), c = {
|
|
@@ -755,12 +758,12 @@ function Oe(e, t, n, r, i) {
|
|
|
755
758
|
g: Math.round(a.g + (o.g - a.g) * s),
|
|
756
759
|
b: Math.round(a.b + (o.b - a.b) * s)
|
|
757
760
|
}, l = a.a + (o.a - a.a) * s;
|
|
758
|
-
return
|
|
761
|
+
return Oe({
|
|
759
762
|
...c,
|
|
760
763
|
a: l
|
|
761
764
|
});
|
|
762
765
|
}
|
|
763
|
-
function
|
|
766
|
+
function Ae({ colors: e, ratio: t }) {
|
|
764
767
|
if (!Array.isArray(e)) throw Error("colors must be an array");
|
|
765
768
|
if (!e.length) throw Error("colors must contain at least 1 hex color");
|
|
766
769
|
let n = (e) => Math.round(W(e, 0, 255)).toString(16).padStart(2, "0"), r = ({ r: e, g: t, b: r, a: i = 1 }) => `#${n(e)}${n(t)}${n(r)}${n(W(i, 0, 1) * 255)}`;
|
|
@@ -773,11 +776,11 @@ function ke({ colors: e, ratio: t }) {
|
|
|
773
776
|
a: u.a + (d.a - u.a) * l
|
|
774
777
|
});
|
|
775
778
|
}
|
|
776
|
-
function
|
|
779
|
+
function je({ p: e = "", v: t, s: n = "", r = 0, space: i = !1, isAnimating: a = !1, regex: o = /[^%]/g, replacement: s = "-", locale: c = null }) {
|
|
777
780
|
let l = c ? Number(Number(t).toFixed(r)).toLocaleString(c) : Number(Number(t).toFixed(r)).toLocaleString(), u = l === Infinity ? "∞" : l === -Infinity ? "-∞" : l, d = `${e ?? ""}${i ? " " : ""}${[void 0, null].includes(t) ? "-" : u}${i ? " " : ""}${n ?? ""}`;
|
|
778
781
|
return a ? d.replace(o, s) : d;
|
|
779
782
|
}
|
|
780
|
-
function
|
|
783
|
+
function Me({ source: e, length: t = 3 }) {
|
|
781
784
|
if (!e && e !== 0) return "";
|
|
782
785
|
e = String(e);
|
|
783
786
|
let n = e.length > 1 ? e.split(" ") : [e];
|
|
@@ -790,22 +793,22 @@ function je({ source: e, length: t = 3 }) {
|
|
|
790
793
|
}), e.join().replaceAll(",", "").toUpperCase();
|
|
791
794
|
}
|
|
792
795
|
}
|
|
793
|
-
function
|
|
796
|
+
function Ne(e) {
|
|
794
797
|
return !!e && typeof e == "function";
|
|
795
798
|
}
|
|
796
|
-
function
|
|
799
|
+
function Pe(e) {
|
|
797
800
|
return typeof e.apply(null, arguments) == "string";
|
|
798
801
|
}
|
|
799
|
-
function
|
|
802
|
+
function Fe(e) {
|
|
800
803
|
return Array.isArray(e) ? e.length === 0 : e ? Object.keys(e).length === 0 : !0;
|
|
801
804
|
}
|
|
802
|
-
function
|
|
805
|
+
function Ie({ componentName: e, type: t, property: n = "", index: i = "", key: a = "", warn: o = !0, debug: s = !0 }) {
|
|
803
806
|
if (!s) return;
|
|
804
807
|
let c = `\n> ${r[t].replace("#COMP#", e).replace("#ATTR#", n).replace("#INDX#", i).replace("#KEY#", a)}\n`;
|
|
805
808
|
if (o) console.warn(c);
|
|
806
809
|
else throw Error(c);
|
|
807
810
|
}
|
|
808
|
-
function
|
|
811
|
+
function Le({ points: e, a: t, b: n, angleStep: r, startX: i, startY: a }) {
|
|
809
812
|
let o = [];
|
|
810
813
|
for (let s = 0; s < e; s++) {
|
|
811
814
|
let e = r * s, c = t + n * e, l = c * Math.cos(e) + i, u = c * Math.sin(e) + a;
|
|
@@ -816,7 +819,7 @@ function Ie({ points: e, a: t, b: n, angleStep: r, startX: i, startY: a }) {
|
|
|
816
819
|
}
|
|
817
820
|
return o;
|
|
818
821
|
}
|
|
819
|
-
function
|
|
822
|
+
function Re(e) {
|
|
820
823
|
let t = Infinity, n = Infinity, r = -Infinity, i = -Infinity;
|
|
821
824
|
for (let a of e) a.x < t && (t = a.x), a.y < n && (n = a.y), a.x > r && (r = a.x), a.y > i && (i = a.y);
|
|
822
825
|
return {
|
|
@@ -828,7 +831,7 @@ function Le(e) {
|
|
|
828
831
|
height: i - n || 1
|
|
829
832
|
};
|
|
830
833
|
}
|
|
831
|
-
function
|
|
834
|
+
function ze(e) {
|
|
832
835
|
if (!e.length) return "";
|
|
833
836
|
let t = `M${e[0].x} ${e[0].y}`;
|
|
834
837
|
for (let n = 1; n < e.length - 2; n += 2) {
|
|
@@ -837,24 +840,24 @@ function Re(e) {
|
|
|
837
840
|
}
|
|
838
841
|
return t;
|
|
839
842
|
}
|
|
840
|
-
function
|
|
841
|
-
let l =
|
|
843
|
+
function Be({ maxPoints: e, a: t = 6, b: n = 6, angleStep: r = .07, startX: i, startY: a, boxWidth: o, boxHeight: s, padding: c = 12 }) {
|
|
844
|
+
let l = Le({
|
|
842
845
|
points: e,
|
|
843
846
|
a: t,
|
|
844
847
|
b: n,
|
|
845
848
|
angleStep: r,
|
|
846
849
|
startX: 0,
|
|
847
850
|
startY: 0
|
|
848
|
-
}), { minX: u, minY: d, maxX: f, maxY: p, width: m, height: h } =
|
|
851
|
+
}), { minX: u, minY: d, maxX: f, maxY: p, width: m, height: h } = Re(l), g = (u + f) / 2, _ = (d + p) / 2, v = Math.max(1, o - 2 * c), y = Math.max(1, s - 2 * c), b = Math.min(v / m, y / h), x = i - g * b, S = a - _ * b;
|
|
849
852
|
return function(e) {
|
|
850
853
|
let t = Math.max(2, Math.min(Math.round(e), l.length));
|
|
851
|
-
return
|
|
854
|
+
return ze(l.slice(0, t).map((e) => ({
|
|
852
855
|
x: e.x * b + x,
|
|
853
856
|
y: e.y * b + S
|
|
854
857
|
})));
|
|
855
858
|
};
|
|
856
859
|
}
|
|
857
|
-
function
|
|
860
|
+
function Ve({ datasetObject: e, requiredAttributes: t }) {
|
|
858
861
|
let n = [];
|
|
859
862
|
return t.forEach((t) => {
|
|
860
863
|
Object.hasOwn(e, t) || n.push(t);
|
|
@@ -1003,7 +1006,7 @@ var G = {
|
|
|
1003
1006
|
YELLOWGREEN: "#9ACD32",
|
|
1004
1007
|
REBECCAPURPLE: "#663399"
|
|
1005
1008
|
};
|
|
1006
|
-
function
|
|
1009
|
+
function He(t) {
|
|
1007
1010
|
let r = e?.(t) ? n(t) : t;
|
|
1008
1011
|
if (typeof r != "string") return r;
|
|
1009
1012
|
let i = r.trim();
|
|
@@ -1013,7 +1016,7 @@ function Ve(t) {
|
|
|
1013
1016
|
return G[a] || G[o] || i;
|
|
1014
1017
|
}
|
|
1015
1018
|
var K = "http://www.w3.org/2000/svg";
|
|
1016
|
-
function
|
|
1019
|
+
function Ue(e) {
|
|
1017
1020
|
if (e.length < 2) return 0;
|
|
1018
1021
|
let t = 0, n = 0;
|
|
1019
1022
|
for (let r = 1; r < e.length; r++) {
|
|
@@ -1034,7 +1037,7 @@ function q({ content: e, fontSize: t, fill: n, x: r, y: i, translateY: a = !1 })
|
|
|
1034
1037
|
let o = e.split("\n"), s = o.length * t, c = a ? (s - t) / 2 : 0;
|
|
1035
1038
|
return o.map((e, a) => `<tspan x="${r}" y="${i - c + a * t}" fill="${n}">${e}</tspan>`).join("");
|
|
1036
1039
|
}
|
|
1037
|
-
function
|
|
1040
|
+
function We(e) {
|
|
1038
1041
|
return f(e) ? (q({
|
|
1039
1042
|
content: e,
|
|
1040
1043
|
fontSize: 1,
|
|
@@ -1043,11 +1046,11 @@ function Ue(e) {
|
|
|
1043
1046
|
y: 0
|
|
1044
1047
|
}).match(/<tspan\b/g) || []).length : 1;
|
|
1045
1048
|
}
|
|
1046
|
-
function
|
|
1049
|
+
function Ge({ content: e, fontSize: t, fill: n, x: r, autoOffset: i = !1 }) {
|
|
1047
1050
|
let a = e.split("\n"), o = i ? (a.length - 1) * t / 2 : 0;
|
|
1048
1051
|
return a.map((e, i) => `<tspan x="${r}" dy="${i === 0 ? -o : t}" fill="${n}">${e}</tspan>`).join("");
|
|
1049
1052
|
}
|
|
1050
|
-
function
|
|
1053
|
+
function Ke({ content: e, fontSize: t, fill: n, maxWords: r, x: i, y: a }) {
|
|
1051
1054
|
function o(e, t) {
|
|
1052
1055
|
let n = e.split(" "), r = [];
|
|
1053
1056
|
for (let e = 0; e < n.length; e += t) r.push(n.slice(e, e + t).join(" "));
|
|
@@ -1059,10 +1062,10 @@ function Ge({ content: e, fontSize: t, fill: n, maxWords: r, x: i, y: a }) {
|
|
|
1059
1062
|
s += o;
|
|
1060
1063
|
}), s;
|
|
1061
1064
|
}
|
|
1062
|
-
function
|
|
1065
|
+
function qe(e) {
|
|
1063
1066
|
return e.length ? e.map((e) => b(e)) : [];
|
|
1064
1067
|
}
|
|
1065
|
-
function
|
|
1068
|
+
function Je(e, t = null) {
|
|
1066
1069
|
let n = e.replace(/[\p{P}\p{S}]+/gu, " ").trim(), r = (/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Thai}\p{Script=Lao}\p{Script=Khmer}\p{Script=Tibetan}\p{Script=Myanmar}\p{Script=Devanagari}]/u.test(e) ? [...n] : n.split(/\s+/)).filter((e) => e.trim().length > 0).reduce((e, t) => (e[t] ? e[t] += 1 : e[t] = 1, e), {});
|
|
1067
1070
|
return Object.keys(r).map((e) => {
|
|
1068
1071
|
let n = e;
|
|
@@ -1072,7 +1075,7 @@ function qe(e, t = null) {
|
|
|
1072
1075
|
};
|
|
1073
1076
|
});
|
|
1074
1077
|
}
|
|
1075
|
-
function
|
|
1078
|
+
function Ye(e) {
|
|
1076
1079
|
let t = e.reduce((e, t) => e + (t.stackRatio || 0), 0), n = e.filter((e) => e.stackRatio === void 0).length, r = 1 - t, i = n > 0 ? r / n : 0, a = e.map((e) => ({
|
|
1077
1080
|
...e,
|
|
1078
1081
|
stackRatio: e.stackRatio === void 0 ? i : e.stackRatio
|
|
@@ -1083,7 +1086,7 @@ function Je(e) {
|
|
|
1083
1086
|
cumulatedStackRatio: o
|
|
1084
1087
|
})), a;
|
|
1085
1088
|
}
|
|
1086
|
-
function
|
|
1089
|
+
function Xe(e) {
|
|
1087
1090
|
function t(e, t, n, r) {
|
|
1088
1091
|
let i = n - e, a = r - t;
|
|
1089
1092
|
return Math.sqrt(i * i + a * a);
|
|
@@ -1133,11 +1136,11 @@ function Ye(e) {
|
|
|
1133
1136
|
}
|
|
1134
1137
|
}), c;
|
|
1135
1138
|
}
|
|
1136
|
-
function
|
|
1139
|
+
function Ze({ relator: e, adjuster: t, source: n, threshold: r = 0, fallback: i, max: a = 24 }) {
|
|
1137
1140
|
let o = e / (t / n);
|
|
1138
1141
|
return o > a ? a : o < r ? i : o;
|
|
1139
1142
|
}
|
|
1140
|
-
function
|
|
1143
|
+
function Qe(e) {
|
|
1141
1144
|
return e.reduce((e, t) => (t.series.forEach((t, n) => {
|
|
1142
1145
|
![
|
|
1143
1146
|
void 0,
|
|
@@ -1147,7 +1150,7 @@ function Ze(e) {
|
|
|
1147
1150
|
].includes(t) && !isNaN(t) && (e[n] = (e[n] || 0) + t);
|
|
1148
1151
|
}), e), []);
|
|
1149
1152
|
}
|
|
1150
|
-
function
|
|
1153
|
+
function $e(e, { value: t, config: n }) {
|
|
1151
1154
|
let r = !1, i = t;
|
|
1152
1155
|
if (typeof e == "function") try {
|
|
1153
1156
|
i = e({
|
|
@@ -1162,17 +1165,17 @@ function Qe(e, { value: t, config: n }) {
|
|
|
1162
1165
|
value: i
|
|
1163
1166
|
};
|
|
1164
1167
|
}
|
|
1165
|
-
function
|
|
1166
|
-
let { isValid: i, value: a } =
|
|
1168
|
+
function et(e, t, n, r) {
|
|
1169
|
+
let { isValid: i, value: a } = $e(e, {
|
|
1167
1170
|
value: t,
|
|
1168
1171
|
config: r
|
|
1169
1172
|
});
|
|
1170
1173
|
return i ? a : n;
|
|
1171
1174
|
}
|
|
1172
|
-
function
|
|
1175
|
+
function tt(e, t) {
|
|
1173
1176
|
return t.split(".").every((t) => typeof e == "object" && e && t in e ? (e = e[t], !0) : !1);
|
|
1174
1177
|
}
|
|
1175
|
-
function
|
|
1178
|
+
function nt(e, t = [], n = !1) {
|
|
1176
1179
|
function r(e) {
|
|
1177
1180
|
return n && e === null ? null : typeof e == "string" && isNaN(Number(e)) || typeof e == "number" && isFinite(e) ? e : 0;
|
|
1178
1181
|
}
|
|
@@ -1187,13 +1190,13 @@ function tt(e, t = [], n = !1) {
|
|
|
1187
1190
|
}
|
|
1188
1191
|
return i(e);
|
|
1189
1192
|
}
|
|
1190
|
-
function
|
|
1193
|
+
function rt(e, t = 100) {
|
|
1191
1194
|
return e.length === 9 ? e.substring(0, 7) + y[t] : e + y[t];
|
|
1192
1195
|
}
|
|
1193
|
-
function
|
|
1196
|
+
function it({ series: e, center: t, maxRadius: n, hasGhost: r = !1 }) {
|
|
1194
1197
|
let i = 360 / (e.length - +!!r);
|
|
1195
1198
|
return e.map((e, r) => {
|
|
1196
|
-
let a = e * n, o = r * i, s = o + i, c = o + i / 2, l =
|
|
1199
|
+
let a = e * n, o = r * i, s = o + i, c = o + i / 2, l = A(o) - A(90), u = A(s) - A(90), d = A(c) - A(90), f = t.x + a * Math.cos(l), p = t.y + a * Math.sin(l), m = t.x + a * Math.cos(u), h = t.y + a * Math.sin(u), g = t.x + a * Math.cos(d), _ = t.y + a * Math.sin(d);
|
|
1197
1200
|
return {
|
|
1198
1201
|
path: `
|
|
1199
1202
|
M ${t.x} ${t.y}
|
|
@@ -1209,7 +1212,7 @@ function rt({ series: e, center: t, maxRadius: n, hasGhost: r = !1 }) {
|
|
|
1209
1212
|
};
|
|
1210
1213
|
});
|
|
1211
1214
|
}
|
|
1212
|
-
function
|
|
1215
|
+
function at({ data: e, threshold: t }) {
|
|
1213
1216
|
if (t >= e.length || t < 3) return e;
|
|
1214
1217
|
let n = [], r = (e.length - 2) / (t - 2), i = 0;
|
|
1215
1218
|
n.push(e[i]);
|
|
@@ -1226,7 +1229,7 @@ function it({ data: e, threshold: t }) {
|
|
|
1226
1229
|
}
|
|
1227
1230
|
return n.push(e[e.length - 1]), n;
|
|
1228
1231
|
}
|
|
1229
|
-
function
|
|
1232
|
+
function ot({ data: e, threshold: t }) {
|
|
1230
1233
|
if (t >= e.length || t < 3) return e;
|
|
1231
1234
|
let n = [], r = (e.length - 2) / (t - 2), i = 0;
|
|
1232
1235
|
n.push(e[i]);
|
|
@@ -1240,7 +1243,7 @@ function at({ data: e, threshold: t }) {
|
|
|
1240
1243
|
}
|
|
1241
1244
|
return n.push(e[e.length - 1]), n;
|
|
1242
1245
|
}
|
|
1243
|
-
function
|
|
1246
|
+
function st({ data: e, threshold: t, key: n = "value" }) {
|
|
1244
1247
|
if (t >= e.length || t < 3) return e;
|
|
1245
1248
|
let r = [], i = (e.length - 2) / (t - 2), a = 0;
|
|
1246
1249
|
r.push(e[a]);
|
|
@@ -1254,12 +1257,12 @@ function ot({ data: e, threshold: t, key: n = "value" }) {
|
|
|
1254
1257
|
}
|
|
1255
1258
|
return r.push(e[e.length - 1]), r;
|
|
1256
1259
|
}
|
|
1257
|
-
function
|
|
1260
|
+
function ct({ radius: e, centerX: t, centerY: n, percentage: r }) {
|
|
1258
1261
|
r = Math.max(0, Math.min(1, r));
|
|
1259
1262
|
let i = r * Math.PI;
|
|
1260
1263
|
return `M ${t},${n} L ${t - e},${n} A ${e},${e} 0 0 1 ${t - e * Math.cos(i)},${n - e * Math.sin(i)} Z`.trim();
|
|
1261
1264
|
}
|
|
1262
|
-
function
|
|
1265
|
+
function lt({ svgElement: e, x: t, y: n, offsetY: r = 0, element: i }) {
|
|
1263
1266
|
if (!e || !i) return {
|
|
1264
1267
|
top: 0,
|
|
1265
1268
|
left: 0
|
|
@@ -1272,7 +1275,7 @@ function ct({ svgElement: e, x: t, y: n, offsetY: r = 0, element: i }) {
|
|
|
1272
1275
|
left: o.x + l
|
|
1273
1276
|
};
|
|
1274
1277
|
}
|
|
1275
|
-
function
|
|
1278
|
+
function ut({ svgElement: e, x: t, y: n, element: r, position: i }) {
|
|
1276
1279
|
if (!e || !r) return {
|
|
1277
1280
|
top: 0,
|
|
1278
1281
|
left: 0
|
|
@@ -1304,12 +1307,12 @@ function J(e) {
|
|
|
1304
1307
|
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = J(e[n]));
|
|
1305
1308
|
return t;
|
|
1306
1309
|
}
|
|
1307
|
-
function
|
|
1310
|
+
function dt(e) {
|
|
1308
1311
|
let t = [], n = [];
|
|
1309
1312
|
for (let r of e) !r || r.value == null || Number.isNaN(r.x) || Number.isNaN(r.y) ? (n.length && t.push(n), n = []) : n.push(r);
|
|
1310
1313
|
return n.length && t.push(n), t;
|
|
1311
1314
|
}
|
|
1312
|
-
function
|
|
1315
|
+
function ft(e, t) {
|
|
1313
1316
|
let n = e.filter((e) => !!e);
|
|
1314
1317
|
if (!n[0]) return [
|
|
1315
1318
|
-10,
|
|
@@ -1335,7 +1338,7 @@ function dt(e, t) {
|
|
|
1335
1338
|
i.y
|
|
1336
1339
|
].toString();
|
|
1337
1340
|
}
|
|
1338
|
-
function
|
|
1341
|
+
function pt(e, t) {
|
|
1339
1342
|
if (!e[0]) return [
|
|
1340
1343
|
-10,
|
|
1341
1344
|
-10,
|
|
@@ -1343,7 +1346,7 @@ function ft(e, t) {
|
|
|
1343
1346
|
-10,
|
|
1344
1347
|
-10
|
|
1345
1348
|
].toString();
|
|
1346
|
-
let n =
|
|
1349
|
+
let n = dt(e);
|
|
1347
1350
|
return n.length ? n.map((e) => {
|
|
1348
1351
|
let n = {
|
|
1349
1352
|
x: e[0].x,
|
|
@@ -1363,12 +1366,12 @@ function ft(e, t) {
|
|
|
1363
1366
|
].toString();
|
|
1364
1367
|
}).join(";") : "";
|
|
1365
1368
|
}
|
|
1366
|
-
function
|
|
1369
|
+
function mt(e) {
|
|
1367
1370
|
let t = [], n = [];
|
|
1368
1371
|
for (let r of e) r.value == null || Number.isNaN(r.x) || Number.isNaN(r.y) ? (n.length > 1 && t.push(n), n = []) : n.push(r);
|
|
1369
1372
|
return n.length > 1 && t.push(n), t;
|
|
1370
1373
|
}
|
|
1371
|
-
function
|
|
1374
|
+
function ht(e) {
|
|
1372
1375
|
let t = "", n = !1;
|
|
1373
1376
|
for (let r = 0; r < e.length; r++) {
|
|
1374
1377
|
let i = e[r];
|
|
@@ -1390,7 +1393,7 @@ function Y(e) {
|
|
|
1390
1393
|
function X(e) {
|
|
1391
1394
|
return `${h(e.x)},${h(e.y)}`;
|
|
1392
1395
|
}
|
|
1393
|
-
function
|
|
1396
|
+
function gt(e, t = []) {
|
|
1394
1397
|
let n = Array.isArray(e) ? e : [], r = n.length, i = /* @__PURE__ */ new Set(), a = r - 1;
|
|
1395
1398
|
for (let e of Array.isArray(t) ? t : []) {
|
|
1396
1399
|
let t = Y(e);
|
|
@@ -1430,8 +1433,8 @@ function ht(e, t = []) {
|
|
|
1430
1433
|
}
|
|
1431
1434
|
return u(), o;
|
|
1432
1435
|
}
|
|
1433
|
-
function
|
|
1434
|
-
let t =
|
|
1436
|
+
function _t(e) {
|
|
1437
|
+
let t = mt(e);
|
|
1435
1438
|
if (!t.length) return "";
|
|
1436
1439
|
let n = "";
|
|
1437
1440
|
for (let [e, r] of t.entries()) {
|
|
@@ -1451,7 +1454,7 @@ function gt(e) {
|
|
|
1451
1454
|
function Z(e) {
|
|
1452
1455
|
return e != null && e.value != null && Number.isFinite(e.x) && Number.isFinite(e.y);
|
|
1453
1456
|
}
|
|
1454
|
-
function
|
|
1457
|
+
function vt(e, t) {
|
|
1455
1458
|
let n = e - 1, r = /* @__PURE__ */ new Set(), i = Array.isArray(t) ? t : [];
|
|
1456
1459
|
for (let e of i) {
|
|
1457
1460
|
let t = Y(e);
|
|
@@ -1459,7 +1462,7 @@ function _t(e, t) {
|
|
|
1459
1462
|
}
|
|
1460
1463
|
return r;
|
|
1461
1464
|
}
|
|
1462
|
-
function
|
|
1465
|
+
function yt(e) {
|
|
1463
1466
|
let t = [], n = [];
|
|
1464
1467
|
for (let r = 0; r < e.length; r += 1) {
|
|
1465
1468
|
let i = e[r];
|
|
@@ -1467,7 +1470,7 @@ function vt(e) {
|
|
|
1467
1470
|
}
|
|
1468
1471
|
return n.length > 1 && t.push(n), t;
|
|
1469
1472
|
}
|
|
1470
|
-
function
|
|
1473
|
+
function bt(e, t) {
|
|
1471
1474
|
let n = t.map((t) => e[t]), r = n.length - 1, i = [], a = [], o = [], s = [];
|
|
1472
1475
|
for (let e = 0; e < r; e += 1) i[e] = n[e + 1].x - n[e].x, a[e] = n[e + 1].y - n[e].y, o[e] = a[e] / i[e];
|
|
1473
1476
|
s[0] = o[0], s[r] = o[r - 1];
|
|
@@ -1482,7 +1485,7 @@ function yt(e, t) {
|
|
|
1482
1485
|
commands: c
|
|
1483
1486
|
};
|
|
1484
1487
|
}
|
|
1485
|
-
function
|
|
1488
|
+
function xt(e) {
|
|
1486
1489
|
let t = [];
|
|
1487
1490
|
if (!e.length) return t;
|
|
1488
1491
|
let n = 0, r = e[0];
|
|
@@ -1497,19 +1500,19 @@ function bt(e) {
|
|
|
1497
1500
|
dashed: r
|
|
1498
1501
|
}), t;
|
|
1499
1502
|
}
|
|
1500
|
-
function
|
|
1503
|
+
function St(e, t = []) {
|
|
1501
1504
|
let n = Array.isArray(e) ? e : [];
|
|
1502
1505
|
if (n.length < 2) return [];
|
|
1503
|
-
let r =
|
|
1506
|
+
let r = vt(n.length, t), i = yt(n);
|
|
1504
1507
|
if (!i.length) return [];
|
|
1505
1508
|
let a = [];
|
|
1506
1509
|
for (let e of i) {
|
|
1507
|
-
let { startCoord: t, commands: i } =
|
|
1510
|
+
let { startCoord: t, commands: i } = bt(n, e), o = Array(i.length);
|
|
1508
1511
|
for (let t = 0; t < i.length; t += 1) {
|
|
1509
1512
|
let n = e[t];
|
|
1510
1513
|
o[t] = r.has(n);
|
|
1511
1514
|
}
|
|
1512
|
-
let s =
|
|
1515
|
+
let s = xt(o);
|
|
1513
1516
|
for (let r of s) {
|
|
1514
1517
|
let o = r.startEdge, s = `${o === 0 ? t : X(n[e[o]])} ${i.slice(r.startEdge, r.endEdge + 1).join(" ")}`.trim();
|
|
1515
1518
|
a.push({
|
|
@@ -1520,7 +1523,7 @@ function xt(e, t = []) {
|
|
|
1520
1523
|
}
|
|
1521
1524
|
return a;
|
|
1522
1525
|
}
|
|
1523
|
-
function
|
|
1526
|
+
function Ct(e, t, n = !1, r = !0) {
|
|
1524
1527
|
function i(e) {
|
|
1525
1528
|
let t = [], n = [];
|
|
1526
1529
|
for (let r of e) !r || r.value == null || Number.isNaN(r.x) || Number.isNaN(r.y) ? (n.length > 1 && t.push(n), n = []) : n.push(r);
|
|
@@ -1541,10 +1544,10 @@ function St(e, t, n = !1, r = !0) {
|
|
|
1541
1544
|
return c += ` L${e[n].x},${t} ${r ? "Z" : ""}`, c;
|
|
1542
1545
|
}).filter(Boolean);
|
|
1543
1546
|
}
|
|
1544
|
-
function Ct(e) {
|
|
1545
|
-
return e.toString().toLowerCase().replace(/\s+/g, "-").replace(/[^\w\-]+/g, "").replace(/\-\-+/g, "-").replace(/^-+/, "").replace(/-+$/, "");
|
|
1546
|
-
}
|
|
1547
1547
|
function wt(e) {
|
|
1548
|
+
return e.toString().toLowerCase().replace(/\s+/g, "-").replace(/[^\p{L}\p{N}_-]+/gu, "").replace(/\-\-+/g, "-").replace(/^-+/, "").replace(/-+$/, "");
|
|
1549
|
+
}
|
|
1550
|
+
function Tt(e) {
|
|
1548
1551
|
return e && typeof e == "object" && !Array.isArray(e) && Object.keys(e).length === 0 ? null : e;
|
|
1549
1552
|
}
|
|
1550
1553
|
function Q(e) {
|
|
@@ -1552,14 +1555,14 @@ function Q(e) {
|
|
|
1552
1555
|
if (e && typeof e == "object" && !Array.isArray(e)) {
|
|
1553
1556
|
let t = {};
|
|
1554
1557
|
for (let n in e) Object.hasOwn(e, n) && (t[n] = Q(e[n]));
|
|
1555
|
-
return
|
|
1558
|
+
return Tt(t);
|
|
1556
1559
|
}
|
|
1557
1560
|
return e;
|
|
1558
1561
|
}
|
|
1559
|
-
function
|
|
1562
|
+
function Et(e) {
|
|
1560
1563
|
return 1 - (1 - e) ** 3;
|
|
1561
1564
|
}
|
|
1562
|
-
function
|
|
1565
|
+
function Dt({ values: e, config: t = {} }) {
|
|
1563
1566
|
let { keepInvalid: n = !0, convertInvalidToZero: r = !1 } = t, i = [], a = 0, o = 0;
|
|
1564
1567
|
function s(e) {
|
|
1565
1568
|
return typeof e != "number" || !Number.isFinite(e);
|
|
@@ -1570,7 +1573,7 @@ function Et({ values: e, config: t = {} }) {
|
|
|
1570
1573
|
for (let t of e) s(t) ? r && n ? c(0) : !r && n && i.push(t) : c(t);
|
|
1571
1574
|
return i;
|
|
1572
1575
|
}
|
|
1573
|
-
function
|
|
1576
|
+
function Ot({ values: e, config: t = {} }) {
|
|
1574
1577
|
let { keepInvalid: n = !0, convertInvalidToZero: r = !1 } = t, i = [], a = [];
|
|
1575
1578
|
function o(e) {
|
|
1576
1579
|
return typeof e != "number" || !Number.isFinite(e);
|
|
@@ -1583,7 +1586,7 @@ function Dt({ values: e, config: t = {} }) {
|
|
|
1583
1586
|
for (let t of e) o(t) ? r && n ? s(0) : !r && n && i.push(t) : s(t);
|
|
1584
1587
|
return i;
|
|
1585
1588
|
}
|
|
1586
|
-
function
|
|
1589
|
+
function kt({ el: e, bounds: t, currentFontSize: n, minFontSize: r = 6, attempts: i = 200, padding: a = 1 }) {
|
|
1587
1590
|
if (!e || !n) return 0;
|
|
1588
1591
|
let o = n;
|
|
1589
1592
|
e.setAttribute("font-size", o);
|
|
@@ -1593,7 +1596,7 @@ function Ot({ el: e, bounds: t, currentFontSize: n, minFontSize: r = 6, attempts
|
|
|
1593
1596
|
for (; g-- > 0 && o > r && (o--, e.setAttribute("font-size", o), h = e.getBBox(), !(h.x >= d + a && h.y >= f + a && h.x + h.width <= p - a && h.y + h.height <= m - a)););
|
|
1594
1597
|
return o < r && (o = 0, e.setAttribute("font-size", o)), o;
|
|
1595
1598
|
}
|
|
1596
|
-
function
|
|
1599
|
+
function At({ value: e, maxDecimals: t = 4, fallbackFormatter: n, removeTrailingZero: r = !0 }) {
|
|
1597
1600
|
if (e === 0) return "0";
|
|
1598
1601
|
let i = Math.abs(e);
|
|
1599
1602
|
if (i >= 1 && typeof n == "function") {
|
|
@@ -1605,18 +1608,18 @@ function kt({ value: e, maxDecimals: t = 4, fallbackFormatter: n, removeTrailing
|
|
|
1605
1608
|
let o = e.toFixed(a);
|
|
1606
1609
|
return r && (o = o.replace(/(\.\d*?[1-9])0+$/, "$1").replace(/\.0+$/, "")), o;
|
|
1607
1610
|
}
|
|
1608
|
-
function
|
|
1611
|
+
function jt(e) {
|
|
1609
1612
|
let t = [];
|
|
1610
1613
|
for (let n = 0; n < e; n += 1) t.push(n === 0 ? 0 : n === 1 ? 1 : t[n - 1] + t[n - 2]);
|
|
1611
1614
|
return t;
|
|
1612
1615
|
}
|
|
1613
|
-
function
|
|
1616
|
+
function Mt(e, t = 20) {
|
|
1614
1617
|
e = e.replace(/[\r\n]+/g, " ");
|
|
1615
1618
|
let n = e.split(" "), r = "", i = "";
|
|
1616
1619
|
for (let e of n) (r + (r ? " " : "") + e).length <= t ? r += (r ? " " : "") + e : (r && (i += (i ? "\n" : "") + r), r = e);
|
|
1617
1620
|
return r && (i += (i ? "\n" : "") + r), i;
|
|
1618
1621
|
}
|
|
1619
|
-
function
|
|
1622
|
+
function Nt(e) {
|
|
1620
1623
|
let { lineA: t, lineB: n, colorLineA: r, colorLineB: i, smoothA: a = !1, smoothB: o = !1, sampleStepPx: s = 2, cutNullValues: c = !0, merge: l = !0 } = e || {};
|
|
1621
1624
|
if (!Array.isArray(t) || !Array.isArray(n) || !t.length || !n.length) return [];
|
|
1622
1625
|
let u = (e) => Number.isFinite(e);
|
|
@@ -1764,7 +1767,7 @@ function Mt(e) {
|
|
|
1764
1767
|
let { A: y, B: b } = g(m(t, a), m(n, o));
|
|
1765
1768
|
return l ? v(y, b) : _(y, b);
|
|
1766
1769
|
}
|
|
1767
|
-
function
|
|
1770
|
+
function $(e, t, n = {}) {
|
|
1768
1771
|
let r = {
|
|
1769
1772
|
bubbles: !0,
|
|
1770
1773
|
cancelable: !0,
|
|
@@ -1799,7 +1802,7 @@ function Nt(e, t, n = {}) {
|
|
|
1799
1802
|
}) : new Event(t, r);
|
|
1800
1803
|
return e.dispatchEvent(o), o;
|
|
1801
1804
|
}
|
|
1802
|
-
function
|
|
1805
|
+
function Pt(e, { delta: t = 1, delay: n = 20, disableTransitions: r = !0 } = {}) {
|
|
1803
1806
|
if (!e || !(e instanceof HTMLElement)) return;
|
|
1804
1807
|
let i = e.style, a = {
|
|
1805
1808
|
width: i.width,
|
|
@@ -1814,14 +1817,14 @@ function $(e, { delta: t = 1, delay: n = 20, disableTransitions: r = !0 } = {})
|
|
|
1814
1817
|
});
|
|
1815
1818
|
}, n);
|
|
1816
1819
|
}
|
|
1817
|
-
function
|
|
1820
|
+
function Ft(e) {
|
|
1818
1821
|
let t = null, n = null;
|
|
1819
1822
|
return (...r) => {
|
|
1820
1823
|
let i = JSON.stringify(r);
|
|
1821
1824
|
return i === t ? n : (t = i, n = e(...r), n);
|
|
1822
1825
|
};
|
|
1823
1826
|
}
|
|
1824
|
-
var
|
|
1827
|
+
var It = Ft((e, t, n, r, i, a, o, s) => {
|
|
1825
1828
|
if (e) return r.length <= 2 ? r.map((e, t) => ({
|
|
1826
1829
|
text: e,
|
|
1827
1830
|
absoluteIndex: t
|
|
@@ -1863,16 +1866,16 @@ var Ft = Pt((e, t, n, r, i, a, o, s) => {
|
|
|
1863
1866
|
absoluteIndex: t
|
|
1864
1867
|
}));
|
|
1865
1868
|
});
|
|
1866
|
-
function
|
|
1869
|
+
function Lt(e) {
|
|
1867
1870
|
return String(e).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
|
1868
1871
|
}
|
|
1869
|
-
function
|
|
1872
|
+
function Rt(e) {
|
|
1870
1873
|
return String(e).replaceAll("&", "&").replaceAll("\"", """).replaceAll("<", "<").replaceAll(">", ">");
|
|
1871
1874
|
}
|
|
1872
|
-
function
|
|
1875
|
+
function zt(e) {
|
|
1873
1876
|
return String(e).replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """).replaceAll("'", "'");
|
|
1874
1877
|
}
|
|
1875
|
-
function
|
|
1878
|
+
function Bt(e) {
|
|
1876
1879
|
if (!e || typeof e != "string") return null;
|
|
1877
1880
|
let t = document.createElementNS(K, "svg");
|
|
1878
1881
|
t.setAttribute("xmlns", K);
|
|
@@ -1884,13 +1887,13 @@ function zt(e) {
|
|
|
1884
1887
|
y: i.y
|
|
1885
1888
|
};
|
|
1886
1889
|
}
|
|
1887
|
-
function
|
|
1890
|
+
function Vt(e, t = "(", n = ")") {
|
|
1888
1891
|
return `${t}${e}${n}`;
|
|
1889
1892
|
}
|
|
1890
|
-
function
|
|
1893
|
+
function Ht(e, t) {
|
|
1891
1894
|
return t <= 1 ? "0%" : `${e * 100 / (t - 1)}%`;
|
|
1892
1895
|
}
|
|
1893
|
-
function
|
|
1896
|
+
function Ut(e, t, n) {
|
|
1894
1897
|
if (!n || !Number.isFinite(e) || !Number.isFinite(t)) return null;
|
|
1895
1898
|
if (n.createSVGPoint && n.getScreenCTM) {
|
|
1896
1899
|
let r = n.createSVGPoint();
|
|
@@ -1910,8 +1913,24 @@ function Ht(e, t, n) {
|
|
|
1910
1913
|
y: r.top + t
|
|
1911
1914
|
};
|
|
1912
1915
|
}
|
|
1913
|
-
function
|
|
1916
|
+
function Wt(e) {
|
|
1914
1917
|
return e != null && Number.isFinite(Number(e));
|
|
1915
1918
|
}
|
|
1919
|
+
function Gt(e, t = 1) {
|
|
1920
|
+
if (!e.length) return "";
|
|
1921
|
+
if (e.length === 1) return `${e[0].x} ${e[0].y}`;
|
|
1922
|
+
let n = [`${e[0].x} ${e[0].y}`];
|
|
1923
|
+
for (let r = 0; r < e.length - 1; r++) {
|
|
1924
|
+
let i = e[r - 1] || e[r], a = e[r], o = e[r + 1], s = e[r + 2] || o, c = {
|
|
1925
|
+
x: a.x + (o.x - i.x) / 6 * t,
|
|
1926
|
+
y: a.y + (o.y - i.y) / 6 * t
|
|
1927
|
+
}, l = {
|
|
1928
|
+
x: o.x - (s.x - a.x) / 6 * t,
|
|
1929
|
+
y: o.y - (s.y - a.y) / 6 * t
|
|
1930
|
+
};
|
|
1931
|
+
n.push(`C ${c.x} ${c.y}, ${l.x} ${l.y}, ${o.x} ${o.y}`);
|
|
1932
|
+
}
|
|
1933
|
+
return n.join(" ");
|
|
1934
|
+
}
|
|
1916
1935
|
//#endregion
|
|
1917
|
-
export {
|
|
1936
|
+
export { zt as $, Ct as A, y as At, gt as B, ye as Bt, Gt as C, ot as Ct, pt as D, be as Dt, ft as E, i as Et, Be as F, nt as Ft, Je as G, l as Gt, q as H, Ut as Ht, se as I, Ht as It, J, Mt as Jt, we as K, $ as Kt, F as L, rt as Lt, L as M, Vt as Mt, _t as N, lt as Nt, it as O, Fe as Ot, St as P, ut as Pt, Ie as Q, he as R, re as Rt, qe as S, at as St, ct as T, Ce as Tt, Ge as U, v as Ut, Ke as V, Qe as Vt, R as W, Ze as Wt, xe as X, Q as Y, Et as Z, ve as _, Ae as _t, Ye as a, At as at, b, Wt as bt, Nt as c, Ot as ct, B as d, _ as dt, Lt as et, me as f, Xe as ft, Ee as g, ke as gt, Te as h, tt as ht, et as i, m as it, I as j, g as jt, ae as k, ge as kt, pe as l, We as lt, Ue as m, ce as mt, Me as n, jt as nt, kt as o, Pe as ot, _e as p, Bt as pt, je as q, Pt as qt, fe as r, V as rt, It as s, Dt as st, K as t, Rt as tt, z as u, Ve as ut, h as v, Ne as vt, Se as w, st as wt, P as x, f as xt, le as y, p as yt, ht as z, wt as zt };
|