@svgrid/grid-wc 3.0.46 → 3.0.48
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/GridFind-C1YbloFh.js +39 -0
- package/dist/GridFooter-DOR8m9GQ.js +142 -0
- package/dist/GridMenus-Da8XGbc6.js +1461 -0
- package/dist/PinSplitter-Du4ZF8T3.js +178 -0
- package/dist/SvChartMenu-B6kpmwUv.js +401 -0
- package/dist/{SvDateRangeInput-Cpss2SsG.js → SvDateRangeInput-ByR-LFgf.js} +78 -77
- package/dist/SvDateTimePicker-BCxhFb5c.js +763 -0
- package/dist/{SvField-C--8r4go.js → SvField-CtzxdF7J.js} +100 -99
- package/dist/SvGridCellEditor-BUdVD7xM.js +594 -0
- package/dist/SvGridChart-DkKI8-bj.js +3684 -0
- package/dist/SvGridChartBuilder-BCQ3W8TY.js +1086 -0
- package/dist/SvGridChartPanel-uqul044E.js +1689 -0
- package/dist/{SvGridChartView-Bvacwk37.js → SvGridChartView-DWxEFzdM.js} +9 -8
- package/dist/SvGridDropdown-CnCQuXaI.js +258 -0
- package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs +12 -3
- package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs.map +1 -1
- package/dist/angular/types/svgrid-grid-wc-angular.d.ts +5 -1
- package/dist/chart/SvChartMenu-NxEyX5kU.js +635 -0
- package/dist/chart/{chart-export-C43UPY8D.js → chart-export-Dj_zVsjI.js} +5 -7
- package/dist/chart/chart-export-pdf-pmzjhHhB.js +156 -0
- package/dist/chart/{client-BuB0wIgc.js → client-Y303i9Lw.js} +1317 -1214
- package/dist/chart/sv-chart-element.js +2390 -2405
- package/dist/chart-export-pdf-DyuVs1gO.js +156 -0
- package/dist/client-OtsRxGjS.js +3075 -0
- package/dist/{column-resize-DUPgynvc.js → column-resize-SEn7el6C.js} +21 -9
- package/dist/{csv-injection-Ce26_TOb.js → csv-injection-Cxf6dMrr.js} +1 -1
- package/dist/{date-format-B0RznzxC.js → date-format-DngG1HJ5.js} +402 -407
- package/dist/{shadow/export-format-6jDuF2nb.js → export-format-7DhxeN27.js} +2 -2
- package/dist/{grid-extension.svelte-CBhmpjuc.js → grid-extension.svelte-DToFhcZv.js} +1 -1
- package/dist/grid-menu-messages-BEsB6Jhh.js +57 -0
- package/dist/history-Q12tf0k-.js +80 -0
- package/dist/list-option-DpIu99JN.js +203 -0
- package/dist/menu-focus-lmTebXyL.js +45 -0
- package/dist/range-commit-C6Rogxem.js +385 -0
- package/dist/react/index.d.ts +11 -0
- package/dist/react/index.js +2 -1
- package/dist/shadow/GridFind-CcoKoisE.js +39 -0
- package/dist/shadow/GridFooter-CDq71ytl.js +142 -0
- package/dist/shadow/GridMenus-RAp-E3hp.js +1461 -0
- package/dist/shadow/PinSplitter-BAYTAZtm.js +178 -0
- package/dist/shadow/SvChartMenu-C74rWwjU.js +401 -0
- package/dist/shadow/{SvDateRangeInput-Cpss2SsG.js → SvDateRangeInput-9Wq4E64y.js} +78 -77
- package/dist/shadow/SvDateTimePicker-y9jPLR19.js +763 -0
- package/dist/shadow/{SvField-C--8r4go.js → SvField-DGPj2clt.js} +100 -99
- package/dist/shadow/SvGridCellEditor-CzeBp9lp.js +594 -0
- package/dist/shadow/SvGridChart-zTsB6F3Y.js +3684 -0
- package/dist/shadow/SvGridChartBuilder-VUKgOcp7.js +1086 -0
- package/dist/shadow/SvGridChartPanel-DkjEUB7t.js +1689 -0
- package/dist/shadow/{SvGridChartView-Bvacwk37.js → SvGridChartView-DQmJahyT.js} +9 -8
- package/dist/shadow/SvGridDropdown-B_5kqHQE.js +258 -0
- package/dist/shadow/chart-export-pdf-BZy6f5QB.js +156 -0
- package/dist/shadow/client-OtsRxGjS.js +3075 -0
- package/dist/shadow/{column-resize-DUPgynvc.js → column-resize-SEn7el6C.js} +21 -9
- package/dist/shadow/{csv-injection-Ce26_TOb.js → csv-injection-Cxf6dMrr.js} +1 -1
- package/dist/shadow/{date-format-B0RznzxC.js → date-format-C9UkbCig.js} +402 -407
- package/dist/{export-format-6jDuF2nb.js → shadow/export-format-7DhxeN27.js} +2 -2
- package/dist/shadow/{grid-extension.svelte-CBhmpjuc.js → grid-extension.svelte-DToFhcZv.js} +1 -1
- package/dist/shadow/grid-menu-messages-BEsB6Jhh.js +57 -0
- package/dist/shadow/history-Q12tf0k-.js +80 -0
- package/dist/shadow/list-option-DpIu99JN.js +203 -0
- package/dist/shadow/menu-focus-lmTebXyL.js +45 -0
- package/dist/shadow/range-commit-C6Rogxem.js +385 -0
- package/dist/shadow/sv-grid-shadow-element.d.ts +7 -0
- package/dist/shadow/sv-grid-shadow-element.js +4236 -4469
- package/dist/shadow/{svelte-virtualizer.svelte-u-y0InK2.js → svelte-virtualizer.svelte-DWvD9wvL.js} +17 -12
- package/dist/sv-grid-element.d.ts +7 -0
- package/dist/sv-grid-element.js +4219 -4452
- package/dist/{svelte-virtualizer.svelte-u-y0InK2.js → svelte-virtualizer.svelte-DWvD9wvL.js} +17 -12
- package/dist/vue/index.d.ts +6 -2
- package/dist/vue/index.js +1 -1
- package/package.json +4 -4
- package/dist/GridFind-DianRZxS.js +0 -39
- package/dist/GridFooter-Bp3o5qJX.js +0 -162
- package/dist/GridMenus-BYkY3nhr.js +0 -1405
- package/dist/PinSplitter-CinhgIrH.js +0 -130
- package/dist/SvChartMenu-CgAcTloT.js +0 -413
- package/dist/SvDateTimePicker-DyRO_e91.js +0 -770
- package/dist/SvGridCellEditor-DHHGSjgp.js +0 -584
- package/dist/SvGridChart-BFQLtNmn.js +0 -3703
- package/dist/SvGridChartBuilder-CtGuoAOV.js +0 -1166
- package/dist/SvGridChartPanel-CeaXNzmV.js +0 -1743
- package/dist/SvGridDropdown-CrECQYeq.js +0 -257
- package/dist/chart/SvChartMenu-DslxOgPN.js +0 -590
- package/dist/chart/chart-export-pdf-C0_y8glC.js +0 -104
- package/dist/chart-export-pdf-DDVtypH7.js +0 -104
- package/dist/client-DtIdusS4.js +0 -2974
- package/dist/focus-trap-Dbb2tJxb.js +0 -65
- package/dist/list-option-DrRyivWp.js +0 -82
- package/dist/shadow/GridFind-DianRZxS.js +0 -39
- package/dist/shadow/GridFooter-DvMFqeNV.js +0 -162
- package/dist/shadow/GridMenus-DKLNTKDZ.js +0 -1405
- package/dist/shadow/PinSplitter-CinhgIrH.js +0 -130
- package/dist/shadow/SvChartMenu-CgAcTloT.js +0 -413
- package/dist/shadow/SvDateTimePicker-DyRO_e91.js +0 -770
- package/dist/shadow/SvGridCellEditor-DHHGSjgp.js +0 -584
- package/dist/shadow/SvGridChart-BFQLtNmn.js +0 -3703
- package/dist/shadow/SvGridChartBuilder-CtGuoAOV.js +0 -1166
- package/dist/shadow/SvGridChartPanel-CeaXNzmV.js +0 -1743
- package/dist/shadow/SvGridDropdown-CrECQYeq.js +0 -257
- package/dist/shadow/chart-export-pdf-DDVtypH7.js +0 -104
- package/dist/shadow/client-DtIdusS4.js +0 -2974
- package/dist/shadow/focus-trap-Dbb2tJxb.js +0 -65
- package/dist/shadow/list-option-DrRyivWp.js +0 -82
|
@@ -1,3703 +0,0 @@
|
|
|
1
|
-
(function(){try{var c=".sv-grid-chart.svelte-kvdein{background:var(--sg-chart-bg,transparent);flex-direction:column;gap:8px;width:100%;display:flex;position:relative}.sv-grid-chart.is-legend-top.svelte-kvdein .sv-grid-chart-toolbar:where(.svelte-kvdein){order:-2}.sv-grid-chart.is-legend-top.svelte-kvdein .sv-grid-chart-legend:where(.svelte-kvdein){order:-1}.sv-grid-chart.is-legend-left.svelte-kvdein,.sv-grid-chart.is-legend-right.svelte-kvdein{grid-template-rows:auto 1fr auto;align-items:start;display:grid}.sv-grid-chart.is-legend-left.svelte-kvdein{grid-template-columns:auto minmax(0,1fr);grid-template-areas:\"tb tb\"\"lg svg\"\"lg br\"}.sv-grid-chart.is-legend-right.svelte-kvdein{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:\"tb tb\"\"svg lg\"\"br lg\"}.sv-grid-chart.is-legend-left.svelte-kvdein .sv-grid-chart-toolbar:where(.svelte-kvdein),.sv-grid-chart.is-legend-right.svelte-kvdein .sv-grid-chart-toolbar:where(.svelte-kvdein){grid-area:tb}.sv-grid-chart.is-legend-left.svelte-kvdein .sv-grid-chart-svg:where(.svelte-kvdein),.sv-grid-chart.is-legend-right.svelte-kvdein .sv-grid-chart-svg:where(.svelte-kvdein){grid-area:svg}.sv-grid-chart.is-legend-left.svelte-kvdein .sv-grid-chart-brush-host:where(.svelte-kvdein),.sv-grid-chart.is-legend-right.svelte-kvdein .sv-grid-chart-brush-host:where(.svelte-kvdein){grid-area:br}.sv-grid-chart-brush-host.svelte-kvdein{min-width:0;display:block}.sv-grid-chart.is-legend-left.svelte-kvdein .sv-grid-chart-legend:where(.svelte-kvdein),.sv-grid-chart.is-legend-right.svelte-kvdein .sv-grid-chart-legend:where(.svelte-kvdein){grid-area:lg}.sv-grid-chart-legend.is-vertical.svelte-kvdein{flex-direction:column;align-items:flex-start;gap:4px;max-width:180px;padding-top:6px}.sv-grid-chart.is-autosize.svelte-kvdein{min-height:0}.sv-grid-chart.is-autosize.svelte-kvdein .sv-grid-chart-svg:where(.svelte-kvdein){flex:none;min-height:0}.sv-grid-chart-svg.svelte-kvdein{width:100%;height:auto;display:block}.sv-grid-chart-title.svelte-kvdein{fill:var(--sg-fg,#0f172a);font-size:calc(14px * var(--sg-chart-font-scale,1));font-family:inherit;font-weight:600}.sv-grid-chart-subtitle.svelte-kvdein{fill:var(--sg-muted,#64748b);font-size:calc(11.5px * var(--sg-chart-font-scale,1));font-family:inherit}.sv-grid-chart-caption.svelte-kvdein{fill:var(--sg-muted,#64748b);font-size:calc(10px * var(--sg-chart-font-scale,1));font-family:inherit}.sv-grid-chart-refband.svelte-kvdein{pointer-events:none}.sv-grid-chart-wipe.svelte-kvdein{animation:.7s cubic-bezier(.2,.7,.2,1) both svelte-kvdein-sv-grid-chart-wipe}@keyframes svelte-kvdein-sv-grid-chart-wipe{0%{width:0}}.sv-grid-chart-marks.is-enter-grow.svelte-kvdein .sv-grid-chart-bar:where(.svelte-kvdein){transform-box:fill-box;transform-origin:50% 100%;animation:.5s cubic-bezier(.2,.7,.2,1) both svelte-kvdein-sv-grid-chart-grow}@keyframes svelte-kvdein-sv-grid-chart-grow{0%{transform:scaleY(.02)}}.sv-grid-chart-marks.is-enter-none.svelte-kvdein :where(.svelte-kvdein),.sv-grid-chart-marks.is-enter-none.svelte-kvdein{animation:none!important}.sv-grid-chart-svg.is-pannable.svelte-kvdein{cursor:grab}.sv-grid-chart-svg.is-pannable.svelte-kvdein:active{cursor:grabbing}.sv-grid-chart-presets.svelte-kvdein{gap:2px;margin-right:6px;display:inline-flex}.sv-grid-chart-crumbs.svelte-kvdein{font-size:calc(11.5px * var(--sg-chart-font-scale,1));align-items:center;gap:2px;margin-right:8px;display:inline-flex}.sv-grid-chart-crumb.is-current.svelte-kvdein{color:var(--sg-fg,#0f172a);padding:0 4px;font-weight:600}.sv-grid-chart-crumb-sep.svelte-kvdein{color:var(--sg-muted,#64748b)}.sv-grid-chart-arc.is-drillable.svelte-kvdein,.sv-grid-chart-slice.is-drillable.svelte-kvdein{cursor:zoom-in}.sv-grid-chart-bar.is-selected.svelte-kvdein,.sv-grid-chart-slice.is-selected.svelte-kvdein,.sv-grid-chart-arc.is-selected.svelte-kvdein{stroke:var(--sg-fg,#0f172a);stroke-width:2px}.sv-grid-chart-dot.is-selected.svelte-kvdein{stroke:var(--sg-fg,#0f172a);stroke-width:2px;r:5}.sv-grid-chart-scatter.is-selected.svelte-kvdein{stroke:var(--sg-fg,#0f172a);stroke-width:2px;fill-opacity:1}.sv-grid-chart-preset.svelte-kvdein{padding-inline:6px}.sv-grid-chart-arc-track.svelte-kvdein{fill:var(--sg-border,#e2e8f0);opacity:.45;pointer-events:none}.sv-grid-chart-arc.svelte-kvdein{transition:opacity .1s;animation:.3s both svelte-kvdein-sv-grid-chart-in}.sv-grid-chart-ribbon.svelte-kvdein{transition:opacity .1s}.sv-grid-chart-stem.svelte-kvdein line:where(.svelte-kvdein){stroke-linecap:round}.sv-grid-chart-dot.is-stroked.svelte-kvdein{fill:none}.sv-grid-chart-tooltip.is-custom.svelte-kvdein{color:inherit;box-shadow:none;background:0 0;border:0;padding:0}.sv-grid-chart-gridline.svelte-kvdein{stroke:var(--sg-border,#e2e8f0);stroke-width:1px;opacity:.6}.sv-grid-chart-gridline.is-zero.svelte-kvdein{stroke:var(--sg-muted,#94a3b8);opacity:.9}.sv-grid-chart-axis.svelte-kvdein{fill:var(--sg-muted,#64748b);font-size:calc(10px * var(--sg-chart-font-scale,1));font-family:inherit}.sv-grid-chart-axis-title.svelte-kvdein{fill:var(--sg-muted,#64748b);font-size:calc(11px * var(--sg-chart-font-scale,1));font-family:inherit;font-weight:600}.sv-grid-chart-group-label.svelte-kvdein{fill:var(--sg-fg,#0f172a);font-weight:600}.sv-grid-chart-crosshair.svelte-kvdein{stroke:var(--sg-accent,#2563eb);stroke-width:1px;stroke-dasharray:3 3;opacity:.65;pointer-events:none}.sv-grid-chart-callout.svelte-kvdein{opacity:.8;pointer-events:none}.sv-grid-chart-callout-label.svelte-kvdein{font-size:calc(10.5px * var(--sg-chart-font-scale,1));fill:var(--sg-fg,#0f172a);pointer-events:none;font-family:inherit}.sv-grid-chart-crosshair-label.svelte-kvdein rect:where(.svelte-kvdein){fill:var(--sg-fg,#0f172a);opacity:.85}.sv-grid-chart-crosshair-label.svelte-kvdein text:where(.svelte-kvdein){fill:var(--sg-bg,#fff);font-size:calc(9.5px * var(--sg-chart-font-scale,1));font-family:inherit;font-weight:600}.sv-grid-chart-refline.svelte-kvdein{stroke-width:1.5px;opacity:.9;pointer-events:none}.sv-grid-chart-reflabel.svelte-kvdein{font-size:calc(9.5px * var(--sg-chart-font-scale,1));pointer-events:none;font-family:inherit;font-weight:700}.sv-grid-chart-overlay.svelte-kvdein{opacity:.85;pointer-events:none}.sv-grid-chart-annotation-marker.svelte-kvdein{pointer-events:none}.sv-grid-chart-annotation-marker.has-text.svelte-kvdein{pointer-events:auto;cursor:help}.sv-grid-chart-annotation-marker.svelte-kvdein:focus-visible{outline:2px solid var(--sg-accent,#2563eb);outline-offset:2px}.sv-grid-chart-annotation-label.svelte-kvdein{font-size:calc(10px * var(--sg-chart-font-scale,1));pointer-events:none;font-family:inherit;font-weight:700}.sv-grid-chart-serieslabel.svelte-kvdein{font-size:calc(10.5px * var(--sg-chart-font-scale,1));pointer-events:none;font-family:inherit;font-weight:600}.sv-grid-chart-annotation-flagtext.svelte-kvdein{font-size:calc(9px * var(--sg-chart-font-scale,1));pointer-events:none;font-family:inherit;font-weight:700}.sv-grid-chart-refpill.svelte-kvdein text:where(.svelte-kvdein){font-size:calc(9.5px * var(--sg-chart-font-scale,1));pointer-events:none;font-family:inherit;font-weight:700}.sv-grid-chart-drawing-hit.svelte-kvdein{stroke:#0000;stroke-width:10px;fill:#0000;pointer-events:stroke}.sv-grid-chart-drawing.is-fib.svelte-kvdein .sv-grid-chart-drawing-hit:where(.svelte-kvdein),.sv-grid-chart-drawing.is-rect.svelte-kvdein rect:where(.svelte-kvdein),.sv-grid-chart-drawing.is-text.svelte-kvdein text:where(.svelte-kvdein){pointer-events:all}.sv-grid-chart-drawing[role=button].svelte-kvdein{cursor:pointer}.sv-grid-chart-drawing.svelte-kvdein:focus-visible{outline:none}.sv-grid-chart-drawing.is-selected.svelte-kvdein line:where(.svelte-kvdein),.sv-grid-chart-drawing.is-selected.svelte-kvdein rect:where(.svelte-kvdein),.sv-grid-chart-drawing.svelte-kvdein:focus-visible line:where(.svelte-kvdein),.sv-grid-chart-drawing.svelte-kvdein:focus-visible rect:where(.svelte-kvdein){filter:drop-shadow(0 0 2px var(--sg-accent,#2563eb))}.sv-grid-chart-drawing-label.svelte-kvdein{font-size:calc(9px * var(--sg-chart-font-scale,1));pointer-events:none;font-family:inherit;font-weight:600}.sv-grid-chart-drawing-text.svelte-kvdein{font-size:calc(11px * var(--sg-chart-font-scale,1));font-family:inherit;font-weight:600}.sv-grid-chart-drawing-handle.svelte-kvdein{cursor:move}.sv-grid-chart-textdraft.svelte-kvdein{z-index:11;width:160px;font:inherit;font-size:calc(12px * var(--sg-chart-font-scale,1));border:1px solid var(--sg-accent,#2563eb);background:var(--sg-bg,#fff);color:var(--sg-fg,#0f172a);border-radius:4px;padding:3px 6px;position:absolute;transform:translateY(-50%);box-shadow:0 4px 12px #00000026}.sv-grid-chart-svg.is-drawing.svelte-kvdein{cursor:crosshair}.sv-grid-chart-drawtools.svelte-kvdein{border-right:1px solid var(--sg-border,#e2e8f0);gap:2px;margin-right:2px;padding-right:6px;display:inline-flex}.sv-grid-chart-heatcell.svelte-kvdein{stroke:var(--sg-border,#cbd5e1);stroke-width:1px;cursor:default;transition:opacity .1s}.sv-grid-chart-svg.is-clickable.svelte-kvdein .sv-grid-chart-heatcell:where(.svelte-kvdein){cursor:pointer}.sv-grid-chart-heatcell.svelte-kvdein:hover{opacity:.85}.sv-grid-chart-heatlabel.svelte-kvdein{font-size:calc(10px * var(--sg-chart-font-scale,1));pointer-events:none;-webkit-user-select:none;user-select:none;font-family:inherit;font-weight:600}.sv-grid-chart-heatlegend.svelte-kvdein{stroke:var(--sg-border,#cbd5e1);stroke-width:1px}.sv-grid-chart-funnel-seg.svelte-kvdein{stroke:var(--sg-bg,#fff);stroke-width:2px;cursor:default;transition:opacity .1s}.sv-grid-chart-svg.is-clickable.svelte-kvdein .sv-grid-chart-funnel-seg:where(.svelte-kvdein){cursor:pointer}.sv-grid-chart-funnel-seg.svelte-kvdein:hover{opacity:.88}.sv-grid-chart-funnel-label.svelte-kvdein{font-size:calc(11px * var(--sg-chart-font-scale,1));pointer-events:none;font-family:inherit;font-weight:700}.sv-grid-chart-funnel-value.svelte-kvdein{font-size:calc(10px * var(--sg-chart-font-scale,1));opacity:.85;pointer-events:none;font-family:inherit}.sv-grid-chart-radar-ring.svelte-kvdein{fill:none;stroke:var(--sg-border,#e2e8f0);stroke-width:1px;opacity:.6}.sv-grid-chart-radar-spoke.svelte-kvdein{stroke:var(--sg-border,#e2e8f0);stroke-width:1px;opacity:.6}.sv-grid-chart-radar-poly.svelte-kvdein{pointer-events:none;transition:opacity .1s}.sv-grid-chart-radar-dot.svelte-kvdein{cursor:default;transition:r .1s}.sv-grid-chart-radar-dot.svelte-kvdein:hover{r:4.5}.sv-grid-chart-calendar-cell.svelte-kvdein{stroke:var(--sg-border,#e2e8f0);stroke-width:.5px;cursor:default;transition:opacity .1s}.sv-grid-chart-calendar-cell.is-blank.svelte-kvdein{stroke-opacity:.5}.sv-grid-chart-calendar-cell.svelte-kvdein:hover{opacity:.85}.sv-grid-chart-calendar-legend.svelte-kvdein{stroke:var(--sg-border,#cbd5e1);stroke-width:.5px}.sv-grid-chart-gauge-value.svelte-kvdein{fill:var(--sg-fg,#0f172a);font-size:calc(22px * var(--sg-chart-font-scale,1));pointer-events:none;font-family:inherit;font-weight:800}.sv-grid-chart-gauge-tick.svelte-kvdein{stroke:var(--sg-muted,#94a3b8);stroke-width:1px;opacity:.4}.sv-grid-chart-gauge-tick.is-major.svelte-kvdein{stroke-width:2px;opacity:.7}.sv-grid-chart-gauge-needle.svelte-kvdein{fill:var(--sg-fg,#0f172a);stroke:var(--sg-bg,#fff);stroke-width:.75px;stroke-linejoin:round}.sv-grid-chart-gauge-hub.svelte-kvdein{fill:var(--sg-fg,#0f172a);stroke:var(--sg-bg,#fff);stroke-width:2px}.sv-grid-chart-gauge-hub-dot.svelte-kvdein{fill:var(--sg-bg,#fff)}.sv-grid-chart-treemap-cell.svelte-kvdein{stroke:var(--sg-bg,#fff);stroke-width:1px;cursor:default;transition:opacity .1s}.sv-grid-chart-svg.is-clickable.svelte-kvdein .sv-grid-chart-treemap-cell:where(.svelte-kvdein){cursor:pointer}.sv-grid-chart-treemap-cell.svelte-kvdein:hover{opacity:.88}.sv-grid-chart-treemap-label.svelte-kvdein{font-size:calc(11px * var(--sg-chart-font-scale,1));pointer-events:none;font-family:inherit;font-weight:600}.sv-grid-chart-treemap-value.svelte-kvdein{font-size:calc(10px * var(--sg-chart-font-scale,1));pointer-events:none;font-family:inherit}.sv-grid-chart-sankey-node.svelte-kvdein{cursor:default;transition:opacity .1s}.sv-grid-chart-sankey-node.svelte-kvdein:hover{opacity:.88}.sv-grid-chart-sankey-link.svelte-kvdein{cursor:default;transition:stroke-opacity .1s}.sv-grid-chart-sankey-link.svelte-kvdein:hover{stroke-opacity:.6}.sv-grid-chart-sankey-label.svelte-kvdein{fill:var(--sg-fg,#0f172a);font-size:calc(11px * var(--sg-chart-font-scale,1));pointer-events:none;font-family:inherit;font-weight:600}.sv-grid-chart-brush.svelte-kvdein{border-top:1px solid var(--sg-border,#e2e8f0);-webkit-user-select:none;user-select:none;touch-action:none;width:100%;height:auto;margin-top:4px;display:block}.sv-grid-chart-brush-mask.svelte-kvdein{fill:var(--sg-bg,#fff);fill-opacity:.65;pointer-events:none}.sv-grid-chart-brush-window.svelte-kvdein{fill:var(--sg-accent,#2563eb);fill-opacity:.1;stroke:var(--sg-accent,#2563eb);stroke-width:1px;cursor:grab}.sv-grid-chart-brush-window.svelte-kvdein:active{cursor:grabbing}.sv-grid-chart-brush-handle.svelte-kvdein{fill:var(--sg-accent,#2563eb);fill-opacity:.4;cursor:ew-resize}.sv-grid-chart-brush-handle.svelte-kvdein:hover{fill-opacity:.7}.sv-grid-chart-scatter.svelte-kvdein{stroke-width:1px;transition:opacity .2s}.is-clickable.svelte-kvdein .sv-grid-chart-scatter:where(.svelte-kvdein),.sv-grid-chart-scatter.svelte-kvdein:hover{cursor:pointer}.sv-grid-chart-cat-hit.svelte-kvdein{fill:#0000}.sv-grid-chart-cat-hit.svelte-kvdein:focus-visible,.sv-grid-chart-slice.svelte-kvdein:focus-visible,.sv-grid-chart-arc.svelte-kvdein:focus-visible,.sv-grid-chart-heatcell.svelte-kvdein:focus-visible,.sv-grid-chart-funnel-seg.svelte-kvdein:focus-visible,.sv-grid-chart-treemap-cell.svelte-kvdein:focus-visible,.sv-grid-chart-sankey-node.svelte-kvdein:focus-visible,.sv-grid-chart-sankey-link.svelte-kvdein:focus-visible,.sv-grid-chart-calendar-cell.svelte-kvdein:focus-visible,.sv-grid-chart-radar-dot.svelte-kvdein:focus-visible,.sv-grid-chart-scatter.svelte-kvdein:focus-visible,.sv-grid-chart-brush.svelte-kvdein:focus-visible{outline:2px solid var(--sg-accent,#2563eb);outline-offset:1px}.sv-grid-chart-datalabel.svelte-kvdein{fill:var(--sg-fg,#0f172a);font-size:calc(9.5px * var(--sg-chart-font-scale,1));font-variant-numeric:tabular-nums;pointer-events:none;font-weight:600}.sv-grid-chart-datalabel-leader.svelte-kvdein{stroke:var(--sg-muted,#64748b);stroke-width:1px;pointer-events:none}.sv-grid-chart-datalabel.on-bar.svelte-kvdein{fill:#fff}.sv-grid-chart-donut-total.svelte-kvdein{fill:var(--sg-fg,#0f172a);font-size:calc(16px * var(--sg-chart-font-scale,1));font-variant-numeric:tabular-nums;font-weight:800}.sv-grid-chart-donut-label.svelte-kvdein{fill:var(--sg-muted,#64748b);font-size:calc(10px * var(--sg-chart-font-scale,1))}.sv-grid-chart-bar.svelte-kvdein{transition:x .3s,y .3s,width .3s,height .3s}.sv-grid-chart-dot.svelte-kvdein{transition:cx .3s,cy .3s}.sv-grid-chart-candle.svelte-kvdein{stroke-width:1px;transition:x .3s,y .3s,width .3s,height .3s}.sv-grid-chart-wick.svelte-kvdein,.sv-grid-chart-ohlc.svelte-kvdein{stroke-width:1px;shape-rendering:crispedges}.sv-grid-chart-box.svelte-kvdein{stroke-width:1px;transition:x .3s,y .3s,width .3s,height .3s}.sv-grid-chart-whisker.svelte-kvdein,.sv-grid-chart-errorbar.svelte-kvdein{stroke-width:1px;shape-rendering:crispedges}.sv-grid-chart-median.svelte-kvdein{stroke-width:2px;shape-rendering:crispedges}.sv-grid-chart-outlier.svelte-kvdein{stroke-width:1px}.is-clickable.svelte-kvdein .sv-grid-chart-cat-hit:where(.svelte-kvdein),.is-clickable.svelte-kvdein .sv-grid-chart-slice:where(.svelte-kvdein){cursor:pointer}.sv-grid-chart-empty.svelte-kvdein{color:var(--sg-muted,#94a3b8);font-size:calc(13px * var(--sg-chart-font-scale,1));pointer-events:none;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.sv-grid-chart-toolbar.svelte-kvdein{flex-wrap:wrap;justify-content:flex-end;gap:4px;display:flex}.sv-grid-chart-tool.svelte-kvdein{border:1px solid var(--sg-border,#cbd5e1);background:var(--sg-bg,#fff);color:var(--sg-fg,#1e293b);font-size:calc(11px * var(--sg-chart-font-scale,1));cursor:pointer;border-radius:4px;align-items:center;gap:4px;padding:3px 8px;font-weight:500;transition:background-color .1s,border-color .1s;display:inline-flex}.sv-grid-chart-tool.svelte-kvdein:hover{background:var(--sg-row-hover-bg,#f1f5f9);border-color:var(--sg-accent,#2563eb)}.sv-grid-chart-tool.is-on.svelte-kvdein{background:var(--sg-accent,#2563eb);border-color:var(--sg-accent,#2563eb);color:var(--sg-on-accent,#fff)}.sv-grid-chart-svg.is-annotating.svelte-kvdein{cursor:copy}.sv-grid-chart-annotation-marker.is-removable.svelte-kvdein{cursor:pointer}.sv-grid-chart-svg.is-zoomable.svelte-kvdein{cursor:crosshair}.sv-grid-chart-svg.is-dragging.svelte-kvdein{cursor:crosshair;-webkit-user-select:none;user-select:none}.sv-grid-chart-zoom-rect.svelte-kvdein{fill:var(--sg-accent,#2563eb);fill-opacity:.12;stroke:var(--sg-accent,#2563eb);stroke-width:1px;stroke-dasharray:3 3;pointer-events:none}.sv-grid-chart-tooltip.svelte-kvdein{z-index:10;pointer-events:none;white-space:nowrap;background:var(--sg-fg,#0f172a);color:var(--sg-bg,#fff);font-size:calc(11.5px * var(--sg-chart-font-scale,1));border-radius:6px;flex-direction:column;gap:1px;padding:6px 9px;line-height:1.4;display:flex;position:absolute;transform:translate(-50%,calc(-100% - 12px));box-shadow:0 6px 18px #00000047}.sv-grid-chart-tooltip.is-below.svelte-kvdein{transform:translate(-50%,16px)}.sv-grid-chart-tooltip.is-fixed.svelte-kvdein{transform:none}.sv-grid-chart-tooltip.is-fixed.is-right.svelte-kvdein{transform:translate(-100%)}.sv-grid-chart-tooltip.is-fixed.is-bottom.svelte-kvdein{transform:translateY(-100%)}.sv-grid-chart-tooltip.is-fixed.is-right.is-bottom.svelte-kvdein{transform:translate(-100%,-100%)}.sv-grid-chart-tooltip.is-pinned.svelte-kvdein{pointer-events:auto;-webkit-user-select:text;user-select:text;box-shadow:0 0 0 2px var(--sg-accent,#2563eb), 0 6px 18px #00000047}.sv-grid-chart-tooltip-title.svelte-kvdein{opacity:.75;font-size:calc(10.5px * var(--sg-chart-font-scale,1));margin-bottom:1px}.sv-grid-chart-tooltip-row.svelte-kvdein{align-items:center;gap:6px;display:flex}.sv-grid-chart-tooltip-dot.svelte-kvdein{border-radius:2px;flex-shrink:0;width:8px;height:8px}.sv-grid-chart-tooltip-row-label.svelte-kvdein{opacity:.85}.sv-grid-chart-tooltip-row-value.svelte-kvdein{font-variant-numeric:tabular-nums;margin-left:auto;padding-left:10px;font-weight:700}.sv-grid-chart-legend.svelte-kvdein{font-size:calc(12px * var(--sg-chart-font-scale,1));color:var(--sg-fg,#0f172a);flex-wrap:wrap;gap:6px 12px;display:flex}.sv-grid-chart-legend-item.svelte-kvdein{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:4px;align-items:center;gap:6px;padding:1px 2px;display:inline-flex}.sv-grid-chart-legend-item.svelte-kvdein:disabled{cursor:default}.sv-grid-chart-legend-item.is-off.svelte-kvdein{color:var(--sg-muted,#94a3b8);text-decoration:line-through}.sv-grid-chart-legend-item.is-isolated.svelte-kvdein{background:var(--sg-header-bg,#f1f5f9);font-weight:700}.sv-grid-chart-legend-more.svelte-kvdein{border:1px dashed var(--sg-border,#cbd5e1);color:var(--sg-muted,#64748b);font:inherit;font-size:calc(11px * var(--sg-chart-font-scale,1));cursor:pointer;background:0 0;border-radius:999px;padding:1px 7px}.sv-grid-chart-legend-more.svelte-kvdein:hover{color:var(--sg-fg,#0f172a);border-color:var(--sg-accent,#2563eb)}.sv-grid-chart-sr-only.svelte-kvdein{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.sv-grid-chart-swatch.svelte-kvdein{box-sizing:border-box;border:1.5px solid #0000;border-radius:3px;width:12px;height:12px;display:inline-block}@keyframes svelte-kvdein-sv-grid-chart-in{0%{opacity:0}to{opacity:1}}.sv-grid-chart-bar.svelte-kvdein,.sv-grid-chart-linepath.svelte-kvdein,.sv-grid-chart-area.svelte-kvdein,.sv-grid-chart-slice.svelte-kvdein,.sv-grid-chart-candle.svelte-kvdein,.sv-grid-chart-box.svelte-kvdein,.sv-grid-chart-funnel-seg.svelte-kvdein,.sv-grid-chart-heatcell.svelte-kvdein,.sv-grid-chart-treemap-cell.svelte-kvdein{animation:.3s ease-out both svelte-kvdein-sv-grid-chart-in}@media (prefers-reduced-motion:reduce){.sv-grid-chart-bar.svelte-kvdein,.sv-grid-chart-dot.svelte-kvdein,.sv-grid-chart-candle.svelte-kvdein,.sv-grid-chart-box.svelte-kvdein{transition:none}.sv-grid-chart-bar.svelte-kvdein,.sv-grid-chart-linepath.svelte-kvdein,.sv-grid-chart-area.svelte-kvdein,.sv-grid-chart-slice.svelte-kvdein,.sv-grid-chart-candle.svelte-kvdein,.sv-grid-chart-box.svelte-kvdein,.sv-grid-chart-funnel-seg.svelte-kvdein,.sv-grid-chart-heatcell.svelte-kvdein,.sv-grid-chart-treemap-cell.svelte-kvdein{animation:none}}@media (forced-colors:active){.sv-grid-chart-svg.svelte-kvdein,.sv-grid-chart-brush.svelte-kvdein,.sv-grid-chart-swatch.svelte-kvdein{forced-color-adjust:none}.sv-grid-chart-axis.svelte-kvdein,.sv-grid-chart-axis-title.svelte-kvdein,.sv-grid-chart-title.svelte-kvdein,.sv-grid-chart-subtitle.svelte-kvdein,.sv-grid-chart-caption.svelte-kvdein,.sv-grid-chart-datalabel.svelte-kvdein,.sv-grid-chart-callout-label.svelte-kvdein,.sv-grid-chart-donut-total.svelte-kvdein,.sv-grid-chart-donut-label.svelte-kvdein,.sv-grid-chart-sankey-label.svelte-kvdein,.sv-grid-chart-annotation-label.svelte-kvdein{fill:canvastext}.sv-grid-chart-gridline.svelte-kvdein{stroke:graytext;opacity:1}.sv-grid-chart-crosshair.svelte-kvdein{stroke:highlight;opacity:1}.sv-grid-chart-crosshair-label.svelte-kvdein rect:where(.svelte-kvdein),.sv-grid-chart-refpill.svelte-kvdein rect:where(.svelte-kvdein){fill:highlight;opacity:1}.sv-grid-chart-crosshair-label.svelte-kvdein text:where(.svelte-kvdein),.sv-grid-chart-refpill.svelte-kvdein text:where(.svelte-kvdein){fill:highlighttext}.sv-grid-chart-cat-hit.svelte-kvdein:focus-visible,.sv-grid-chart-slice.svelte-kvdein:focus-visible,.sv-grid-chart-arc.svelte-kvdein:focus-visible,.sv-grid-chart-heatcell.svelte-kvdein:focus-visible,.sv-grid-chart-funnel-seg.svelte-kvdein:focus-visible,.sv-grid-chart-treemap-cell.svelte-kvdein:focus-visible,.sv-grid-chart-sankey-node.svelte-kvdein:focus-visible,.sv-grid-chart-sankey-link.svelte-kvdein:focus-visible,.sv-grid-chart-calendar-cell.svelte-kvdein:focus-visible,.sv-grid-chart-radar-dot.svelte-kvdein:focus-visible,.sv-grid-chart-scatter.svelte-kvdein:focus-visible,.sv-grid-chart-brush.svelte-kvdein:focus-visible,.sv-grid-chart-annotation-marker.svelte-kvdein:focus-visible{outline:3px solid highlight}.sv-grid-chart-slice.is-selected.svelte-kvdein,.sv-grid-chart-arc.is-selected.svelte-kvdein{stroke:highlight;stroke-width:3px}.sv-grid-chart-brush-mask.svelte-kvdein{fill:canvas;fill-opacity:.7}.sv-grid-chart-brush-window.svelte-kvdein{stroke:highlight;fill:highlight;fill-opacity:.2}.sv-grid-chart-brush-handle.svelte-kvdein{fill:highlight}.sv-grid-chart-tooltip.svelte-kvdein{border:1px solid canvastext}.sv-grid-chart-legend-item.is-off.svelte-kvdein .sv-grid-chart-swatch:where(.svelte-kvdein){forced-color-adjust:auto}}\n",g=globalThis;if(typeof g!=='undefined'){var f=(g.__SVGRID_WC_ADD_CSS_BY_BUILD__||{})["shadow"];if(typeof f==='function')f(c);else{var q=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__=g.__SVGRID_WC_CSS_CHUNKS_BY_BUILD__||{};(q["shadow"]=q["shadow"]||[]).push(c);}}if(typeof document==='undefined')return;var x=document.querySelectorAll('style[data-svgrid-grid-wc-chunk]');for(var i=0;i<x.length;i++)if(x[i].getAttribute('data-svgrid-grid-wc-chunk')==="shadow:SvGridChart-BFQLtNmn.js"||x[i].textContent===c)return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"shadow:SvGridChart-BFQLtNmn.js");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
|
|
2
|
-
import { C as e, D as t, E as n, O as r, T as i, _ as a, a as o, b as s, d as c, g as l, i as u, j as d, n as ee, t as te, v as ne, w as re, x as ie, y as f } from "./chart-Cwv61lx6.js";
|
|
3
|
-
import { $ as p, A as m, B as ae, C as oe, D as h, F as se, H as ce, I as le, L as g, M as _, N as v, O as ue, Q as de, R as y, T as b, U as x, V as fe, W as pe, X as S, Y as C, Z as w, a as me, at as he, d as ge, et as T, f as E, it as _e, j as D, k as O, n as k, nt as A, o as ve, ot as j, rt as ye, s as be, v as M, w as N, x as xe, y as P, z as F } from "./client-DtIdusS4.js";
|
|
4
|
-
import { t as Se } from "./csv-injection-Ce26_TOb.js";
|
|
5
|
-
import { a as Ce } from "./editor-contract-peBDxir_.js";
|
|
6
|
-
//#region ../grid/dist/chart-zoom.js
|
|
7
|
-
function we(e, t, n) {
|
|
8
|
-
if (n <= 0) return null;
|
|
9
|
-
let r = Math.max(0, Math.min(n - 1, Math.round(e))), i = Math.max(0, Math.min(n - 1, Math.round(t)));
|
|
10
|
-
return i < r && ([r, i] = [i, r]), r === 0 && i === n - 1 ? null : {
|
|
11
|
-
i0: r,
|
|
12
|
-
i1: i
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
function Te(e, t, n, r) {
|
|
16
|
-
if (t <= 2) return null;
|
|
17
|
-
let i = e ? e.i0 : 0, a = e ? e.i1 : t - 1, o = a - i + 1, s = Math.max(2, Math.min(t, Math.round(o * r)));
|
|
18
|
-
if (s === o) return e;
|
|
19
|
-
let c = o > 1 ? (Math.max(i, Math.min(a, n)) - i) / (o - 1) : .5, l = Math.round(n - c * (s - 1));
|
|
20
|
-
return l = Math.max(0, Math.min(t - s, l)), we(l, l + s - 1, t);
|
|
21
|
-
}
|
|
22
|
-
function Ee(e, t, n) {
|
|
23
|
-
if (!e || !n) return e;
|
|
24
|
-
let r = e.i1 - e.i0, i = e.i0 + Math.round(n);
|
|
25
|
-
return i = Math.max(0, Math.min(t - 1 - r, i)), we(i, i + r, t);
|
|
26
|
-
}
|
|
27
|
-
function De(e, t, n, r) {
|
|
28
|
-
return !Number.isFinite(r) || r <= 0 ? e : Te(e, t, n, 1 / r);
|
|
29
|
-
}
|
|
30
|
-
function Oe(e, t, n) {
|
|
31
|
-
let r = e.length;
|
|
32
|
-
if (!r) return null;
|
|
33
|
-
let i = e.map((e) => Date.parse(e)), a = [...i].reverse().find(Number.isFinite);
|
|
34
|
-
if (a == null) return null;
|
|
35
|
-
let o = n ?? a, s = 864e5, c, l = o;
|
|
36
|
-
if (typeof t == "object") {
|
|
37
|
-
if (t.from) c = Date.parse(t.from);
|
|
38
|
-
else if (t.days) c = o - t.days * s;
|
|
39
|
-
else return null;
|
|
40
|
-
t.to && (l = Date.parse(t.to));
|
|
41
|
-
} else switch (t) {
|
|
42
|
-
case "1W":
|
|
43
|
-
c = o - 7 * s;
|
|
44
|
-
break;
|
|
45
|
-
case "1M":
|
|
46
|
-
c = I(o, -1);
|
|
47
|
-
break;
|
|
48
|
-
case "3M":
|
|
49
|
-
c = I(o, -3);
|
|
50
|
-
break;
|
|
51
|
-
case "6M":
|
|
52
|
-
c = I(o, -6);
|
|
53
|
-
break;
|
|
54
|
-
case "1Y":
|
|
55
|
-
c = I(o, -12);
|
|
56
|
-
break;
|
|
57
|
-
case "YTD": {
|
|
58
|
-
let e = new Date(o);
|
|
59
|
-
c = Date.UTC(e.getUTCFullYear(), 0, 1);
|
|
60
|
-
break;
|
|
61
|
-
}
|
|
62
|
-
default: return null;
|
|
63
|
-
}
|
|
64
|
-
if (!Number.isFinite(c) || !Number.isFinite(l)) return null;
|
|
65
|
-
let u = -1, d = -1;
|
|
66
|
-
for (let e = 0; e < r; e += 1) {
|
|
67
|
-
let t = i[e];
|
|
68
|
-
Number.isFinite(t) && (t >= c && u < 0 && (u = e), t <= l && (d = e));
|
|
69
|
-
}
|
|
70
|
-
return u < 0 || d < 0 || d < u ? null : we(u, d, r);
|
|
71
|
-
}
|
|
72
|
-
function I(e, t) {
|
|
73
|
-
let n = new Date(e);
|
|
74
|
-
return Date.UTC(n.getUTCFullYear(), n.getUTCMonth() + t, n.getUTCDate(), n.getUTCHours(), n.getUTCMinutes());
|
|
75
|
-
}
|
|
76
|
-
function ke(e, t) {
|
|
77
|
-
let n = -1, r = Infinity;
|
|
78
|
-
for (let i = 0; i < e.length; i += 1) {
|
|
79
|
-
let a = Date.parse(e[i]);
|
|
80
|
-
if (!Number.isFinite(a)) continue;
|
|
81
|
-
let o = Math.abs(a - t);
|
|
82
|
-
o < r && (r = o, n = i);
|
|
83
|
-
}
|
|
84
|
-
return n;
|
|
85
|
-
}
|
|
86
|
-
//#endregion
|
|
87
|
-
//#region ../grid/dist/chart-sync.svelte.js
|
|
88
|
-
var Ae = /* @__PURE__ */ new Map();
|
|
89
|
-
function je(e) {
|
|
90
|
-
let t = Ae.get(e);
|
|
91
|
-
if (t) return t;
|
|
92
|
-
let n = de({
|
|
93
|
-
hover: null,
|
|
94
|
-
zoom: null
|
|
95
|
-
});
|
|
96
|
-
return Ae.set(e, n), n;
|
|
97
|
-
}
|
|
98
|
-
function Me(e, t) {
|
|
99
|
-
je(e).hover = t;
|
|
100
|
-
}
|
|
101
|
-
function Ne(e, t, n, r, i = null) {
|
|
102
|
-
je(e).zoom = {
|
|
103
|
-
window: t,
|
|
104
|
-
count: n,
|
|
105
|
-
from: r,
|
|
106
|
-
labels: i
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
//#endregion
|
|
110
|
-
//#region ../grid/dist/chart-motion.js
|
|
111
|
-
var L = (e, t, n) => e + (t - e) * n, R = (e) => Math.round(e * 100) / 100;
|
|
112
|
-
function Pe(e, t, n) {
|
|
113
|
-
return n >= 1 ? t : n <= 0 && e.type === t.type ? e : e.type === t.type ? {
|
|
114
|
-
...t,
|
|
115
|
-
bars: Ie(e.bars, t.bars, n, t.plot.y + t.plot.h),
|
|
116
|
-
lines: Le(e.lines, t.lines, n),
|
|
117
|
-
candles: ze(e.candles, t.candles, n),
|
|
118
|
-
slices: Be(e.slices, t.slices, n),
|
|
119
|
-
arcs: He(e.arcs, t.arcs, n),
|
|
120
|
-
yTicks: t.yTicks.map((t) => {
|
|
121
|
-
let r = e.yTicks.find((e) => e.value === t.value);
|
|
122
|
-
return r ? {
|
|
123
|
-
...t,
|
|
124
|
-
y: R(L(r.y, t.y, n))
|
|
125
|
-
} : t;
|
|
126
|
-
})
|
|
127
|
-
} : t;
|
|
128
|
-
}
|
|
129
|
-
var Fe = (e) => `${e.series}\u0000${e.label}`;
|
|
130
|
-
function Ie(e, t, n, r) {
|
|
131
|
-
if (!e.length && !t.length) return t;
|
|
132
|
-
let i = new Map(e.map((e) => [Fe(e), e])), a = /* @__PURE__ */ new Set(), o = t.map((e) => {
|
|
133
|
-
let t = Fe(e);
|
|
134
|
-
a.add(t);
|
|
135
|
-
let o = i.get(t);
|
|
136
|
-
if (!o) {
|
|
137
|
-
let t = L(r, e.y, n);
|
|
138
|
-
return {
|
|
139
|
-
...e,
|
|
140
|
-
y: R(t),
|
|
141
|
-
h: R(Math.max(0, L(0, e.h, n)))
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
return {
|
|
145
|
-
...e,
|
|
146
|
-
x: R(L(o.x, e.x, n)),
|
|
147
|
-
y: R(L(o.y, e.y, n)),
|
|
148
|
-
w: R(L(o.w, e.w, n)),
|
|
149
|
-
h: R(L(o.h, e.h, n))
|
|
150
|
-
};
|
|
151
|
-
});
|
|
152
|
-
for (let t of e) a.has(Fe(t)) || o.push({
|
|
153
|
-
...t,
|
|
154
|
-
y: R(L(t.y, r, n)),
|
|
155
|
-
h: R(Math.max(0, L(t.h, 0, n)))
|
|
156
|
-
});
|
|
157
|
-
return o;
|
|
158
|
-
}
|
|
159
|
-
function Le(e, t, n) {
|
|
160
|
-
if (!e.length) return t;
|
|
161
|
-
let r = new Map(e.map((e) => [e.label, e]));
|
|
162
|
-
return t.map((e) => {
|
|
163
|
-
let t = r.get(e.label);
|
|
164
|
-
if (!t || t.points.length !== e.points.length) return e;
|
|
165
|
-
let i = e.points.map((e, r) => {
|
|
166
|
-
let i = t.points[r];
|
|
167
|
-
return !e.defined || !i.defined ? e : {
|
|
168
|
-
...e,
|
|
169
|
-
x: R(L(i.x, e.x, n)),
|
|
170
|
-
y: R(L(i.y, e.y, n))
|
|
171
|
-
};
|
|
172
|
-
});
|
|
173
|
-
return {
|
|
174
|
-
...e,
|
|
175
|
-
points: i,
|
|
176
|
-
path: f(i, !!e.smooth, { step: e.step })
|
|
177
|
-
};
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
var Re = (e) => `${e.series}\u0000${e.label}`;
|
|
181
|
-
function ze(e, t, n) {
|
|
182
|
-
if (!e.length) return t;
|
|
183
|
-
let r = new Map(e.map((e) => [Re(e), e]));
|
|
184
|
-
return t.map((e) => {
|
|
185
|
-
let t = r.get(Re(e));
|
|
186
|
-
if (!t) return e;
|
|
187
|
-
let i = L(t.yOpen, e.yOpen, n), a = L(t.yClose, e.yClose, n);
|
|
188
|
-
return {
|
|
189
|
-
...e,
|
|
190
|
-
x: R(L(t.x, e.x, n)),
|
|
191
|
-
xCenter: R(L(t.xCenter, e.xCenter, n)),
|
|
192
|
-
yOpen: R(i),
|
|
193
|
-
yClose: R(a),
|
|
194
|
-
yHigh: R(L(t.yHigh, e.yHigh, n)),
|
|
195
|
-
yLow: R(L(t.yLow, e.yLow, n)),
|
|
196
|
-
bodyY: R(Math.min(i, a)),
|
|
197
|
-
bodyH: R(Math.max(1, Math.abs(a - i)))
|
|
198
|
-
};
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
function Be(e, t, n) {
|
|
202
|
-
if (!e.length || t.some((e) => !e.arc)) return t;
|
|
203
|
-
let r = new Map(e.map((e) => [e.label, e]));
|
|
204
|
-
return t.map((e) => {
|
|
205
|
-
let t = r.get(e.label);
|
|
206
|
-
if (!t?.arc || !e.arc) return e;
|
|
207
|
-
let i = L(t.arc.a0, e.arc.a0, n), a = L(t.arc.a1, e.arc.a1, n), o = (i + a) / 2, s = (e.arc.r + e.arc.ir) / 2 || e.arc.r * .6;
|
|
208
|
-
return {
|
|
209
|
-
...e,
|
|
210
|
-
path: ne(e.arc.cx, e.arc.cy, e.arc.ir, e.arc.r, i, a),
|
|
211
|
-
cx: R(e.arc.cx + s * Math.cos(o)),
|
|
212
|
-
cy: R(e.arc.cy + s * Math.sin(o)),
|
|
213
|
-
arc: {
|
|
214
|
-
...e.arc,
|
|
215
|
-
a0: i,
|
|
216
|
-
a1: a
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
var Ve = (e) => e.nodePath ? e.nodePath.join("/") : `${e.series}\u0000${e.label}`;
|
|
222
|
-
function He(e, t, n) {
|
|
223
|
-
if (!e.length) return t;
|
|
224
|
-
let r = new Map(e.map((e) => [Ve(e), e]));
|
|
225
|
-
return t.map((e) => {
|
|
226
|
-
let t = r.get(Ve(e));
|
|
227
|
-
if (!t) return e;
|
|
228
|
-
let i = L(t.a0, e.a0, n), a = L(t.a1, e.a1, n), o = L(t.r0, e.r0, n), s = L(t.r1, e.r1, n), c = (i + a) / 2, l = (o + s) / 2;
|
|
229
|
-
return {
|
|
230
|
-
...e,
|
|
231
|
-
a0: i,
|
|
232
|
-
a1: a,
|
|
233
|
-
r0: o,
|
|
234
|
-
r1: s,
|
|
235
|
-
path: ne(e.cx, e.cy, o, s, i, a),
|
|
236
|
-
lx: R(e.cx + l * Math.cos(c)),
|
|
237
|
-
ly: R(e.cy + l * Math.sin(c))
|
|
238
|
-
};
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
//#endregion
|
|
242
|
-
//#region ../grid/dist/chart-export.js
|
|
243
|
-
function Ue(e) {
|
|
244
|
-
return e instanceof SVGSVGElement ? e : e.querySelector("svg.sv-grid-chart-svg") ?? e.querySelector("svg");
|
|
245
|
-
}
|
|
246
|
-
function We(e, t, n) {
|
|
247
|
-
return getComputedStyle(e).getPropertyValue(t).trim() || n;
|
|
248
|
-
}
|
|
249
|
-
function Ge(e, t = {}) {
|
|
250
|
-
let n = Ue(e);
|
|
251
|
-
if (!n) throw Error("chartToSvgString: no <svg> found");
|
|
252
|
-
let r = We(n, "--sg-fg", "#0f172a"), i = We(n, "--sg-muted", "#64748b"), a = We(n, "--sg-border", "#e2e8f0"), o = t.background ?? We(n, "--sg-bg", "#ffffff"), s = n.viewBox.baseVal, c = s && s.width ? s.width : n.clientWidth || 520, l = s && s.height ? s.height : n.clientHeight || 300, u = n.cloneNode(!0);
|
|
253
|
-
u.setAttribute("width", String(c)), u.setAttribute("height", String(l)), u.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
254
|
-
let d = [
|
|
255
|
-
"fill",
|
|
256
|
-
"fill-opacity",
|
|
257
|
-
"stroke",
|
|
258
|
-
"stroke-width",
|
|
259
|
-
"stroke-opacity",
|
|
260
|
-
"stroke-dasharray",
|
|
261
|
-
"stroke-linecap",
|
|
262
|
-
"stroke-linejoin",
|
|
263
|
-
"opacity",
|
|
264
|
-
"font-size",
|
|
265
|
-
"font-family",
|
|
266
|
-
"font-weight",
|
|
267
|
-
"text-anchor"
|
|
268
|
-
], ee = n.querySelectorAll("*"), te = u.querySelectorAll("*");
|
|
269
|
-
for (let e = 0; e < ee.length; e += 1) {
|
|
270
|
-
let t = te[e];
|
|
271
|
-
if (!t || !t.style) continue;
|
|
272
|
-
let n = getComputedStyle(ee[e]);
|
|
273
|
-
for (let e of d) {
|
|
274
|
-
let r = n.getPropertyValue(e);
|
|
275
|
-
r && r !== "normal" && t.style.setProperty(e, r);
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
u.querySelectorAll(".sv-grid-chart-hit").forEach((e) => e.remove());
|
|
279
|
-
let ne = document.createElementNS("http://www.w3.org/2000/svg", "style");
|
|
280
|
-
ne.textContent = `
|
|
281
|
-
.sv-grid-chart-axis { fill: ${i}; font-size: 10px; font-family: sans-serif; }
|
|
282
|
-
.sv-grid-chart-gridline { stroke: ${a}; stroke-width: 1; opacity: 0.6; }
|
|
283
|
-
.sv-grid-chart-gridline.is-zero { stroke: ${i}; opacity: 0.9; }
|
|
284
|
-
.sv-grid-chart-datalabel { fill: ${r}; font-size: 9.5px; font-weight: 600; font-family: sans-serif; }
|
|
285
|
-
.sv-grid-chart-datalabel.on-bar { fill: #fff; }
|
|
286
|
-
.sv-grid-chart-donut-total { fill: ${r}; font-size: 16px; font-weight: 800; font-family: sans-serif; }
|
|
287
|
-
.sv-grid-chart-donut-label { fill: ${i}; font-size: 10px; font-family: sans-serif; }
|
|
288
|
-
`, u.insertBefore(ne, u.firstChild);
|
|
289
|
-
let re = document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
290
|
-
return re.setAttribute("x", "0"), re.setAttribute("y", "0"), re.setAttribute("width", String(c)), re.setAttribute("height", String(l)), re.setAttribute("fill", o), u.insertBefore(re, ne.nextSibling), new XMLSerializer().serializeToString(u);
|
|
291
|
-
}
|
|
292
|
-
function Ke(e, t) {
|
|
293
|
-
let n = document.createElement("a");
|
|
294
|
-
n.href = e, n.download = t, document.body.appendChild(n), n.click(), n.remove();
|
|
295
|
-
}
|
|
296
|
-
function qe(e, t = "chart.svg", n = {}) {
|
|
297
|
-
let r = Ge(e, n), i = URL.createObjectURL(new Blob([r], { type: "image/svg+xml" }));
|
|
298
|
-
Ke(i, t), setTimeout(() => URL.revokeObjectURL(i), 1e3);
|
|
299
|
-
}
|
|
300
|
-
function Je(e, t = {}) {
|
|
301
|
-
let n = Ge(e, t), r = t.scale ?? 2, i = Ue(e), a = i.viewBox.baseVal, o = (a && a.width ? a.width : i.clientWidth || 520) * r, s = (a && a.height ? a.height : i.clientHeight || 300) * r;
|
|
302
|
-
return new Promise((e, t) => {
|
|
303
|
-
let r = URL.createObjectURL(new Blob([n], { type: "image/svg+xml" })), i = new Image();
|
|
304
|
-
i.onload = () => {
|
|
305
|
-
let n = document.createElement("canvas");
|
|
306
|
-
n.width = Math.round(o), n.height = Math.round(s);
|
|
307
|
-
let a = n.getContext("2d");
|
|
308
|
-
if (!a) {
|
|
309
|
-
URL.revokeObjectURL(r), t(/* @__PURE__ */ Error("canvas 2d context unavailable"));
|
|
310
|
-
return;
|
|
311
|
-
}
|
|
312
|
-
a.drawImage(i, 0, 0, n.width, n.height), URL.revokeObjectURL(r), n.toBlob((n) => n ? e(n) : t(/* @__PURE__ */ Error("toBlob failed")), "image/png");
|
|
313
|
-
}, i.onerror = () => {
|
|
314
|
-
URL.revokeObjectURL(r), t(/* @__PURE__ */ Error("failed to rasterize chart SVG"));
|
|
315
|
-
}, i.src = r;
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
async function z(e, t = "chart.png", n = {}) {
|
|
319
|
-
let r = await Je(e, n), i = URL.createObjectURL(r);
|
|
320
|
-
Ke(i, t), setTimeout(() => URL.revokeObjectURL(i), 1e3);
|
|
321
|
-
}
|
|
322
|
-
var Ye = (e) => {
|
|
323
|
-
let t = e == null || typeof e == "number" && !Number.isFinite(e) ? "" : String(e);
|
|
324
|
-
return typeof e == "string" && t !== "" && (t = Se(t)), /[",\n\r]/.test(t) ? `"${t.replace(/"/g, "\"\"")}"` : t;
|
|
325
|
-
};
|
|
326
|
-
function Xe(e) {
|
|
327
|
-
let t = e.series ?? [];
|
|
328
|
-
if (t.some((e) => e.points?.length)) {
|
|
329
|
-
let e = [
|
|
330
|
-
"Series",
|
|
331
|
-
"X",
|
|
332
|
-
"Y",
|
|
333
|
-
"Size",
|
|
334
|
-
"Label"
|
|
335
|
-
].map(Ye).join(","), n = [];
|
|
336
|
-
for (let e of t) for (let t of e.points ?? []) n.push([
|
|
337
|
-
e.label,
|
|
338
|
-
t.x,
|
|
339
|
-
t.y,
|
|
340
|
-
t.r ?? "",
|
|
341
|
-
t.label ?? ""
|
|
342
|
-
].map(Ye).join(","));
|
|
343
|
-
return n.length ? [e, ...n].join("\n") : "";
|
|
344
|
-
}
|
|
345
|
-
let n = e.categories ?? [];
|
|
346
|
-
if (!n.length || !t.length) return "";
|
|
347
|
-
let r = ["Category"];
|
|
348
|
-
for (let e of t) e.ohlc ? r.push(`${e.label} Open`, `${e.label} High`, `${e.label} Low`, `${e.label} Close`, ...e.volumes ? [`${e.label} Volume`] : []) : e.boxes ? r.push(`${e.label} Min`, `${e.label} Q1`, `${e.label} Median`, `${e.label} Q3`, `${e.label} Max`, `${e.label} Outliers`) : e.errors ? r.push(e.label, `${e.label} Low`, `${e.label} High`) : e.lowValues ? r.push(`${e.label} low`, `${e.label} high`) : e.targets ? r.push(e.label, `${e.label} target`) : r.push(e.label);
|
|
349
|
-
let i = n.map((e, n) => {
|
|
350
|
-
let r = [e];
|
|
351
|
-
for (let e of t) if (e.ohlc) {
|
|
352
|
-
let t = e.ohlc[n];
|
|
353
|
-
r.push(t?.o ?? "", t?.h ?? "", t?.l ?? "", t?.c ?? ""), e.volumes && r.push(e.volumes[n] ?? "");
|
|
354
|
-
} else if (e.boxes) {
|
|
355
|
-
let t = e.boxes[n];
|
|
356
|
-
r.push(t?.min ?? "", t?.q1 ?? "", t?.median ?? "", t?.q3 ?? "", t?.max ?? "", t?.outliers?.join(" ") ?? "");
|
|
357
|
-
} else if (e.errors) {
|
|
358
|
-
let t = e.values[n], i = e.errors[n], a = i == null ? "" : typeof i == "number" ? (t ?? 0) - Math.abs(i) : Math.min(i.lo, i.hi), o = i == null ? "" : typeof i == "number" ? (t ?? 0) + Math.abs(i) : Math.max(i.lo, i.hi);
|
|
359
|
-
r.push(t ?? "", a, o);
|
|
360
|
-
} else e.lowValues ? r.push(e.lowValues[n] ?? "", e.values[n] ?? "") : e.targets ? r.push(e.values[n] ?? "", e.targets[n] ?? "") : r.push(e.values[n] ?? "");
|
|
361
|
-
return r.map(Ye).join(",");
|
|
362
|
-
});
|
|
363
|
-
return [r.map(Ye).join(","), ...i].join("\n");
|
|
364
|
-
}
|
|
365
|
-
function Ze(e) {
|
|
366
|
-
let t = e.series ?? [];
|
|
367
|
-
return t.some((e) => e.points?.length) ? !0 : !!(e.categories?.length && t.length);
|
|
368
|
-
}
|
|
369
|
-
function Qe(e, t = "chart.csv") {
|
|
370
|
-
let n = Xe(e);
|
|
371
|
-
if (!n) return !1;
|
|
372
|
-
let r = URL.createObjectURL(new Blob([n], { type: "text/csv;charset=utf-8" }));
|
|
373
|
-
return Ke(r, t), setTimeout(() => URL.revokeObjectURL(r), 1e3), !0;
|
|
374
|
-
}
|
|
375
|
-
//#endregion
|
|
376
|
-
//#region ../grid/dist/chart-messages.js
|
|
377
|
-
var $e = {
|
|
378
|
-
chartLabel: "{type} chart",
|
|
379
|
-
dataTable: "{type} chart data",
|
|
380
|
-
dataTableCapped: ", first {shown} of {total} rows",
|
|
381
|
-
noData: "No data",
|
|
382
|
-
noValue: "no value",
|
|
383
|
-
seriesAtCategory: "{series}: {value} at {category}",
|
|
384
|
-
densePoints: "{count} points, {from} to {to}. Arrow keys step through values.",
|
|
385
|
-
drillIn: ", drill in",
|
|
386
|
-
sankeyNode: "{label}: in {in}, out {out}",
|
|
387
|
-
total: "Total",
|
|
388
|
-
rSquared: "R² {value}",
|
|
389
|
-
describeChart: "Describe chart",
|
|
390
|
-
describeCopied: "Description copied",
|
|
391
|
-
drillPath: "Drilldown path",
|
|
392
|
-
drillRoot: "All",
|
|
393
|
-
dateRange: "Date range",
|
|
394
|
-
showLast: "Show the last {preset}",
|
|
395
|
-
pan: "Pan",
|
|
396
|
-
panTitle: "Drag the plot to pan the zoomed window",
|
|
397
|
-
resetZoom: "Reset zoom",
|
|
398
|
-
resetZoomTitle: "Reset zoom (or double-click the plot)",
|
|
399
|
-
annotate: "Annotate",
|
|
400
|
-
annotateOnTitle: "Click the plot to pin a note, or a marker to remove it",
|
|
401
|
-
annotateOffTitle: "Pin notes on the chart",
|
|
402
|
-
drawingTools: "Drawing tools",
|
|
403
|
-
draw: "Draw: {tool}",
|
|
404
|
-
toolTrend: "Trend",
|
|
405
|
-
toolRay: "Ray",
|
|
406
|
-
toolFib: "Fib",
|
|
407
|
-
toolRect: "Rect",
|
|
408
|
-
toolArrow: "Arrow",
|
|
409
|
-
toolText: "Text",
|
|
410
|
-
drawing: "{tool} drawing",
|
|
411
|
-
deleteDrawing: "Delete",
|
|
412
|
-
deleteDrawingTitle: "Remove the selected drawing (Delete)",
|
|
413
|
-
clearDrawings: "Clear",
|
|
414
|
-
clearDrawingsTitle: "Remove every drawing",
|
|
415
|
-
noteText: "Note text",
|
|
416
|
-
removeNote: "Remove note: {label}",
|
|
417
|
-
png: "PNG",
|
|
418
|
-
downloadPng: "Download PNG",
|
|
419
|
-
svg: "SVG",
|
|
420
|
-
downloadSvg: "Download SVG",
|
|
421
|
-
pdf: "PDF",
|
|
422
|
-
downloadPdf: "Download PDF",
|
|
423
|
-
downloadCsv: "Download CSV",
|
|
424
|
-
print: "Print",
|
|
425
|
-
printTitle: "Print the chart",
|
|
426
|
-
copy: "Copy",
|
|
427
|
-
copied: "✓ Copied",
|
|
428
|
-
copyTitle: "Copy chart as image",
|
|
429
|
-
copyAsImage: "Copy as image",
|
|
430
|
-
range: "Range",
|
|
431
|
-
series: "Series",
|
|
432
|
-
showSeries: "Show",
|
|
433
|
-
hideSeries: "Hide",
|
|
434
|
-
isolateHint: "double-click to isolate",
|
|
435
|
-
showMore: "+{n} more",
|
|
436
|
-
showLess: "Show less",
|
|
437
|
-
rangeBrush: "Range brush",
|
|
438
|
-
brushRange: "{from} to {to}"
|
|
439
|
-
};
|
|
440
|
-
function et(e) {
|
|
441
|
-
return Ce($e, e);
|
|
442
|
-
}
|
|
443
|
-
function tt(e, t) {
|
|
444
|
-
return e.replace(/\{(\w+)\}/g, (e, n) => n in t ? String(t[n]) : e);
|
|
445
|
-
}
|
|
446
|
-
//#endregion
|
|
447
|
-
//#region ../grid/dist/SvGridChart.svelte
|
|
448
|
-
var nt = _("<span class=\"sv-grid-chart-crumb is-current svelte-kvdein\" aria-current=\"page\"> </span>"), rt = _("<button type=\"button\" class=\"sv-grid-chart-tool sv-grid-chart-crumb svelte-kvdein\"> </button>"), it = _("<span class=\"sv-grid-chart-crumb-sep svelte-kvdein\" aria-hidden=\"true\">/</span> <!>", 1), at = _("<nav class=\"sv-grid-chart-crumbs svelte-kvdein\"><button type=\"button\" class=\"sv-grid-chart-tool sv-grid-chart-crumb svelte-kvdein\"> </button> <!></nav>"), ot = _("<button type=\"button\" class=\"sv-grid-chart-tool sv-grid-chart-preset svelte-kvdein\"> </button>"), st = _("<span class=\"sv-grid-chart-presets svelte-kvdein\" role=\"group\"></span>"), ct = _("<button type=\"button\"><svg aria-hidden=\"true\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5 9l-3 3 3 3\"></path><path d=\"M9 5l3-3 3 3\"></path><path d=\"M15 19l-3 3-3-3\"></path><path d=\"M19 9l3 3-3 3\"></path><path d=\"M2 12h20\"></path><path d=\"M12 2v20\"></path></svg> </button>"), lt = _("<button type=\"button\" class=\"sv-grid-chart-tool svelte-kvdein\"><svg aria-hidden=\"true\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 7v6h6\"></path><path d=\"M21 17a9 9 0 0 0-15-6.7L3 13\"></path></svg> </button>"), ut = _("<button type=\"button\"><svg aria-hidden=\"true\" width=\"12\" height=\"12\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 2v6\"></path><circle cx=\"12\" cy=\"11\" r=\"3\"></circle><path d=\"M12 14v8\"></path></svg> </button>"), dt = _("<button type=\"button\"> </button>"), ft = _("<button type=\"button\" class=\"sv-grid-chart-tool svelte-kvdein\"> </button> <button type=\"button\" class=\"sv-grid-chart-tool svelte-kvdein\"> </button>", 1), pt = _("<span class=\"sv-grid-chart-drawtools svelte-kvdein\" role=\"group\"><!> <!></span>"), mt = _("<div class=\"sv-grid-chart-toolbar svelte-kvdein\" role=\"toolbar\"><!> <!> <!> <!> <!> <!> <button type=\"button\" class=\"sv-grid-chart-tool svelte-kvdein\"> </button> <button type=\"button\" class=\"sv-grid-chart-tool svelte-kvdein\"> </button> <button type=\"button\" class=\"sv-grid-chart-tool svelte-kvdein\"> </button> <button type=\"button\" class=\"sv-grid-chart-tool svelte-kvdein\"> </button> <button type=\"button\" class=\"sv-grid-chart-tool svelte-kvdein\"> </button></div>"), ht = _("<div class=\"sv-grid-chart-toolbar is-crumbs-only svelte-kvdein\" role=\"toolbar\"><!></div>"), gt = v("<clipPath><rect></rect></clipPath>"), _t = v("<linearGradient x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\"></stop><stop offset=\"1\"></stop></linearGradient>"), vt = v("<pattern width=\"6\" height=\"6\" patternUnits=\"userSpaceOnUse\" patternTransform=\"rotate(45)\"><rect width=\"6\" height=\"6\"></rect><rect width=\"3\" height=\"6\" fill=\"rgba(255,255,255,0.35)\"></rect></pattern>"), yt = v("<pattern width=\"6\" height=\"6\" patternUnits=\"userSpaceOnUse\"><rect width=\"6\" height=\"6\"></rect><path d=\"M0 0L6 6 M6 0L0 6\" stroke=\"rgba(255,255,255,0.45)\" stroke-width=\"1\"></path></pattern>"), bt = v("<pattern width=\"6\" height=\"6\" patternUnits=\"userSpaceOnUse\"><rect width=\"6\" height=\"6\"></rect><circle cx=\"3\" cy=\"3\" r=\"1.2\" fill=\"rgba(255,255,255,0.55)\"></circle></pattern>"), xt = v("<pattern width=\"8\" height=\"8\" patternUnits=\"userSpaceOnUse\" patternTransform=\"rotate(-45)\"><rect width=\"8\" height=\"8\"></rect><line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"8\" stroke=\"rgba(0,0,0,0.18)\" stroke-width=\"2\"></line></pattern>"), St = v("<defs><!><!><!></defs>"), Ct = v("<text class=\"sv-grid-chart-title svelte-kvdein\" text-anchor=\"middle\"> </text>"), wt = v("<text class=\"sv-grid-chart-subtitle svelte-kvdein\" text-anchor=\"middle\"> </text>"), Tt = v("<text class=\"sv-grid-chart-caption svelte-kvdein\" text-anchor=\"start\"> </text>"), Et = v("<line class=\"sv-grid-chart-gridline svelte-kvdein\"></line>"), Dt = v("<!><text class=\"sv-grid-chart-axis is-x svelte-kvdein\" text-anchor=\"middle\"> </text>", 1), Ot = v("<line class=\"sv-grid-chart-gridline svelte-kvdein\"></line>"), kt = v("<text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"end\"> </text>"), At = v("<text class=\"sv-grid-chart-axis-title svelte-kvdein\" text-anchor=\"middle\"> </text>"), jt = v("<text class=\"sv-grid-chart-axis-title svelte-kvdein\" text-anchor=\"middle\"> </text>"), Mt = v("<!><!><!><!><!>", 1), Nt = v("<line></line>"), Pt = v("<text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"end\"> </text>"), Ft = v("<!><!>", 1), It = v("<line class=\"sv-grid-chart-gridline svelte-kvdein\"></line>"), Lt = v("<text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"start\"> </text>"), Rt = v("<text class=\"sv-grid-chart-axis is-x svelte-kvdein\"> </text>"), zt = v("<text class=\"sv-grid-chart-axis is-x svelte-kvdein\" text-anchor=\"middle\"> </text>"), Bt = v("<line class=\"sv-grid-chart-gridline svelte-kvdein\" opacity=\"0.5\"></line>"), Vt = v("<line class=\"sv-grid-chart-gridline svelte-kvdein\"></line><!><text class=\"sv-grid-chart-axis sv-grid-chart-group-label svelte-kvdein\" text-anchor=\"middle\"> </text>", 1), Ht = v("<text class=\"sv-grid-chart-axis-title svelte-kvdein\" text-anchor=\"middle\"> </text>"), Ut = v("<text class=\"sv-grid-chart-axis-title svelte-kvdein\" text-anchor=\"middle\"> </text>"), Wt = v("<text class=\"sv-grid-chart-axis-title svelte-kvdein\" text-anchor=\"middle\"> </text>"), Gt = v("<!><!><!><!><!><!><!><!>", 1), Kt = v("<text class=\"sv-grid-chart-reflabel svelte-kvdein\" text-anchor=\"end\"> </text>"), qt = v("<text class=\"sv-grid-chart-reflabel svelte-kvdein\" text-anchor=\"middle\"> </text>"), Jt = v("<rect class=\"sv-grid-chart-refband svelte-kvdein\"></rect><!>", 1), Yt = v("<path class=\"sv-grid-chart-band svelte-kvdein\" fill-opacity=\"0.12\" stroke=\"none\"></path>"), Xt = v("<path class=\"sv-grid-chart-area svelte-kvdein\" stroke=\"none\"></path>"), Zt = v("<circle class=\"sv-grid-chart-dot is-active svelte-kvdein\" r=\"4\"></circle>"), Qt = v("<circle></circle>"), $t = v("<path fill=\"none\" stroke-width=\"1.5\"></path>"), en = v("<path></path>"), tn = v("<g class=\"svelte-kvdein\"><!><!><path class=\"sv-grid-chart-linepath svelte-kvdein\" fill=\"none\" stroke-linejoin=\"round\" stroke-linecap=\"round\"></path><!></g>"), nn = v("<rect rx=\"1\"></rect>"), rn = v("<circle class=\"sv-grid-chart-dot svelte-kvdein\" fill-opacity=\"0.55\"></circle>"), an = v("<g class=\"sv-grid-chart-stem svelte-kvdein\"><line class=\"svelte-kvdein\"></line><!><circle class=\"sv-grid-chart-dot svelte-kvdein\"></circle></g>"), on = v("<line class=\"sv-grid-chart-ohlc svelte-kvdein\"></line><line class=\"sv-grid-chart-ohlc svelte-kvdein\"></line><line class=\"sv-grid-chart-ohlc svelte-kvdein\"></line>", 1), sn = v("<line class=\"sv-grid-chart-wick svelte-kvdein\"></line><rect class=\"sv-grid-chart-candle svelte-kvdein\"></rect>", 1), cn = v("<circle class=\"sv-grid-chart-outlier svelte-kvdein\" r=\"2\" fill=\"none\"></circle>"), ln = v("<line class=\"sv-grid-chart-whisker svelte-kvdein\"></line><line class=\"sv-grid-chart-whisker svelte-kvdein\"></line><line class=\"sv-grid-chart-whisker svelte-kvdein\"></line><rect class=\"sv-grid-chart-box svelte-kvdein\" fill-opacity=\"0.25\"></rect><line class=\"sv-grid-chart-median svelte-kvdein\"></line><!>", 1), un = v("<line class=\"sv-grid-chart-errorbar svelte-kvdein\"></line><line class=\"sv-grid-chart-errorbar svelte-kvdein\"></line><line class=\"sv-grid-chart-errorbar svelte-kvdein\"></line>", 1), dn = v("<circle fill-opacity=\"0.7\"></circle>"), fn = v("<g class=\"sv-grid-chart-refpill svelte-kvdein\"><rect height=\"16\" rx=\"3\" class=\"svelte-kvdein\"></rect><text text-anchor=\"middle\" fill=\"#fff\" class=\"svelte-kvdein\"> </text></g>"), pn = v("<text class=\"sv-grid-chart-reflabel svelte-kvdein\" text-anchor=\"end\"> </text>"), mn = v("<line class=\"sv-grid-chart-refline svelte-kvdein\"></line><!>", 1), hn = v("<line class=\"sv-grid-chart-refline svelte-kvdein\"></line><text class=\"sv-grid-chart-reflabel svelte-kvdein\" text-anchor=\"start\"> </text>", 1), gn = v("<path class=\"sv-grid-chart-overlay-band svelte-kvdein\" fill-opacity=\"0.1\" stroke-opacity=\"0.35\" stroke-width=\"1\"></path>"), _n = v("<!><path class=\"sv-grid-chart-overlay svelte-kvdein\" fill=\"none\" stroke-width=\"2\" stroke-dasharray=\"6 4\" stroke-linejoin=\"round\" stroke-linecap=\"round\"></path>", 1), vn = v("<line class=\"sv-grid-chart-datalabel-leader svelte-kvdein\"></line>"), yn = v("<!><text> </text>", 1), bn = v("<text class=\"sv-grid-chart-serieslabel svelte-kvdein\" text-anchor=\"start\"> </text>"), xn = v("<line stroke-width=\"1.5\"></line><rect height=\"13\" rx=\"2\"></rect><text class=\"sv-grid-chart-annotation-flagtext svelte-kvdein\" text-anchor=\"middle\" fill=\"#fff\"> </text>", 1), Sn = v("<path stroke=\"var(--sg-bg, #fff)\" stroke-width=\"1.2\"></path><text class=\"sv-grid-chart-annotation-flagtext svelte-kvdein\" text-anchor=\"middle\" fill=\"#fff\"> </text><text class=\"sv-grid-chart-annotation-label svelte-kvdein\"> </text>", 1), Cn = v("<rect width=\"9\" height=\"9\" stroke=\"var(--sg-bg, #fff)\" stroke-width=\"1.5\"></rect><text class=\"sv-grid-chart-annotation-label svelte-kvdein\"> </text>", 1), wn = v("<circle stroke=\"var(--sg-bg, #fff)\" stroke-width=\"1.5\"></circle><text class=\"sv-grid-chart-annotation-label svelte-kvdein\"> </text>", 1), Tn = v("<g><!></g>"), En = v("<path class=\"svelte-kvdein\"></path>"), Dn = v("<line class=\"sv-grid-chart-drawing-hit svelte-kvdein\"></line><line stroke-width=\"1.5\" class=\"svelte-kvdein\"></line><!>", 1), On = v("<rect fill-opacity=\"0.08\" stroke-width=\"1.2\" class=\"svelte-kvdein\"></rect>"), kn = v("<line class=\"sv-grid-chart-drawing-hit svelte-kvdein\"></line><line stroke-width=\"1.2\" stroke-dasharray=\"4 3\" class=\"svelte-kvdein\"></line><text class=\"sv-grid-chart-drawing-label svelte-kvdein\" text-anchor=\"end\"> </text>", 1), An = v("<line stroke-width=\"1\" class=\"svelte-kvdein\"></line><text class=\"sv-grid-chart-drawing-label svelte-kvdein\"> </text>", 1), jn = v("<!><rect class=\"sv-grid-chart-drawing-hit svelte-kvdein\"></rect>", 1), Mn = v("<text class=\"sv-grid-chart-drawing-text svelte-kvdein\"> </text>"), Nn = v("<circle class=\"sv-grid-chart-drawing-handle svelte-kvdein\" r=\"5\" fill=\"var(--sg-bg, #fff)\" stroke-width=\"1.5\"></circle>"), Pn = v("<g><!><!></g>"), Fn = v("<rect fill=\"var(--sg-accent, #2563eb)\" fill-opacity=\"0.08\" stroke=\"var(--sg-accent, #2563eb)\" stroke-dasharray=\"4 3\"></rect>"), In = v("<line stroke=\"var(--sg-accent, #2563eb)\" stroke-width=\"1.5\" stroke-dasharray=\"4 3\"></line>"), Ln = v("<circle r=\"3.5\" fill=\"var(--sg-accent, #2563eb)\"></circle><!>", 1), Rn = v("<g class=\"sv-grid-chart-drawings\"><!><!></g>"), zn = v("<line class=\"sv-grid-chart-crosshair svelte-kvdein\"></line>"), Bn = v("<g class=\"sv-grid-chart-crosshair-label svelte-kvdein\" pointer-events=\"none\"><rect height=\"15\" rx=\"3\" class=\"svelte-kvdein\"></rect><text text-anchor=\"middle\" class=\"svelte-kvdein\"> </text></g>"), Vn = v("<g class=\"sv-grid-chart-crosshair-label svelte-kvdein\" pointer-events=\"none\"><rect height=\"15\" rx=\"3\" class=\"svelte-kvdein\"></rect><text text-anchor=\"middle\" class=\"svelte-kvdein\"> </text></g><!>", 1), Hn = v("<line class=\"sv-grid-chart-crosshair svelte-kvdein\"></line><!>", 1), Un = v("<text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"end\"> </text>"), Wn = v("<text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"middle\"> </text>"), Gn = v("<text class=\"sv-grid-chart-heatlabel svelte-kvdein\" text-anchor=\"middle\"> </text>"), Kn = v("<rect class=\"sv-grid-chart-heatcell svelte-kvdein\"></rect><!>", 1), qn = v("<stop></stop>"), Jn = v("<defs><linearGradient x1=\"0\" y1=\"1\" x2=\"0\" y2=\"0\"></linearGradient></defs><rect class=\"sv-grid-chart-heatlegend svelte-kvdein\" width=\"10\"></rect><text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"start\"> </text><text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"start\"> </text>", 1), Yn = v("<!><!><!><!>", 1), Xn = v("<text class=\"sv-grid-chart-funnel-label svelte-kvdein\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-funnel-value svelte-kvdein\" text-anchor=\"middle\"> </text>", 1), Zn = v("<path class=\"sv-grid-chart-funnel-seg svelte-kvdein\"></path><!>", 1), Qn = v("<circle class=\"sv-grid-chart-radar-ring svelte-kvdein\"></circle>"), $n = v("<line class=\"sv-grid-chart-radar-spoke svelte-kvdein\"></line><text class=\"sv-grid-chart-axis svelte-kvdein\"> </text>", 1), er = v("<circle class=\"sv-grid-chart-radar-dot svelte-kvdein\" r=\"3\" role=\"img\"></circle>"), tr = v("<path class=\"sv-grid-chart-radar-poly svelte-kvdein\" fill-opacity=\"0.18\" stroke-width=\"2\"></path><!>", 1), nr = v("<!><!><!>", 1), rr = v("<text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"start\"> </text>"), ir = v("<text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"end\"> </text>"), ar = v("<rect rx=\"2\" role=\"img\"></rect>"), or = v("<rect class=\"sv-grid-chart-calendar-legend svelte-kvdein\" width=\"10\" height=\"10\" rx=\"2\"></rect><text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"start\"> </text>", 1), sr = v("<text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"start\">Less</text><!><text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"start\">More</text>", 1), cr = v("<!><!><!><!>", 1), lr = v("<line></line>"), ur = v("<path fill=\"none\" stroke-width=\"4\" stroke-linecap=\"butt\" opacity=\"0.7\"></path>"), dr = v("<line stroke=\"var(--sg-fg, #0f172a)\" stroke-width=\"2.5\" stroke-linecap=\"round\"></line>"), fr = v("<!><path fill=\"none\" stroke=\"var(--sg-border, #e2e8f0)\" stroke-width=\"16\" stroke-linecap=\"round\"></path><!><path fill=\"none\" stroke-width=\"16\" stroke-linecap=\"round\"></path><!><path class=\"sv-grid-chart-gauge-needle svelte-kvdein\"></path><circle class=\"sv-grid-chart-gauge-hub svelte-kvdein\"></circle><circle class=\"sv-grid-chart-gauge-hub-dot svelte-kvdein\" r=\"2.5\"></circle><text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-gauge-value svelte-kvdein\" text-anchor=\"middle\"> </text>", 1), pr = v("<text class=\"sv-grid-chart-treemap-label svelte-kvdein\"> </text>"), mr = v("<text class=\"sv-grid-chart-treemap-value svelte-kvdein\" opacity=\"0.85\"> </text>"), hr = v("<rect class=\"sv-grid-chart-treemap-cell svelte-kvdein\"></rect><!><!>", 1), gr = v("<path class=\"sv-grid-chart-sankey-link svelte-kvdein\" fill=\"none\" stroke-opacity=\"0.35\" role=\"img\"></path>"), _r = v("<rect class=\"sv-grid-chart-sankey-node svelte-kvdein\" role=\"img\"></rect><text class=\"sv-grid-chart-sankey-label svelte-kvdein\"> </text>", 1), vr = v("<!><!>", 1), yr = v("<circle class=\"sv-grid-chart-gridline svelte-kvdein\" fill=\"none\"></circle>"), br = v("<text class=\"sv-grid-chart-axis svelte-kvdein\"> </text>"), xr = v("<path class=\"sv-grid-chart-arc-track svelte-kvdein\"></path>"), Sr = v("<path class=\"sv-grid-chart-ribbon svelte-kvdein\" fill-opacity=\"0.45\" stroke-opacity=\"0.6\"></path>"), Cr = v("<path stroke=\"var(--sg-bg, #fff)\" stroke-width=\"1\"></path>"), wr = v("<text class=\"sv-grid-chart-axis svelte-kvdein\"> </text>"), Tr = v("<text class=\"sv-grid-chart-datalabel on-bar svelte-kvdein\" text-anchor=\"middle\" dominant-baseline=\"middle\" pointer-events=\"none\"> </text>"), Er = v("<!><!><!><!><!><!>", 1), Dr = v("<rect></rect>"), Or = v("<line class=\"sv-grid-chart-bullet-target\" stroke=\"var(--sg-fg, #0f172a)\" stroke-width=\"2.5\"></line>"), kr = v("<g class=\"sv-grid-chart-bullet\"><!><rect class=\"sv-grid-chart-bar svelte-kvdein\"></rect><!></g>"), Ar = v("<polyline class=\"sv-grid-chart-callout svelte-kvdein\" fill=\"none\" stroke-width=\"1\"></polyline><text class=\"sv-grid-chart-callout-label svelte-kvdein\"> </text>", 1), jr = v("<text class=\"sv-grid-chart-datalabel on-bar svelte-kvdein\" text-anchor=\"middle\" dominant-baseline=\"middle\"> </text>"), Mr = v("<path stroke=\"var(--sg-bg, #fff)\" stroke-width=\"1\"></path><!>", 1), Nr = v("<text class=\"sv-grid-chart-donut-total svelte-kvdein\" text-anchor=\"middle\"> </text><text class=\"sv-grid-chart-donut-label svelte-kvdein\" text-anchor=\"middle\"> </text>", 1), Pr = v("<rect class=\"sv-grid-chart-cat-hit svelte-kvdein\" data-dense=\"true\"></rect>"), Fr = v("<rect class=\"sv-grid-chart-cat-hit svelte-kvdein\"></rect>"), Ir = v("<rect class=\"sv-grid-chart-zoom-rect svelte-kvdein\"></rect>"), Lr = v("<path fill-opacity=\"0.10\" stroke=\"none\"></path>"), Rr = v("<!><path fill=\"none\" stroke-width=\"1.2\" opacity=\"0.75\"></path>", 1), zr = v("<rect opacity=\"0.55\"></rect>"), Br = _("<div class=\"sv-grid-chart-brush-host svelte-kvdein\"><svg class=\"sv-grid-chart-brush svelte-kvdein\" width=\"100%\" role=\"slider\" tabindex=\"0\" aria-orientation=\"horizontal\"><!><!><rect class=\"sv-grid-chart-brush-mask svelte-kvdein\"></rect><rect class=\"sv-grid-chart-brush-mask svelte-kvdein\"></rect><rect class=\"sv-grid-chart-brush-window svelte-kvdein\"></rect><rect class=\"sv-grid-chart-brush-handle svelte-kvdein\" width=\"8\"></rect><rect class=\"sv-grid-chart-brush-handle svelte-kvdein\" width=\"8\"></rect></svg></div>"), Vr = _("<div class=\"sv-grid-chart-empty svelte-kvdein\"> </div>"), Hr = _("<input class=\"sv-grid-chart-textdraft svelte-kvdein\" type=\"text\"/>"), Ur = _("<span class=\"sv-grid-chart-tooltip-dot svelte-kvdein\"></span>"), Wr = _("<span class=\"sv-grid-chart-tooltip-row-label svelte-kvdein\"> </span>"), Gr = _("<span class=\"sv-grid-chart-tooltip-row svelte-kvdein\"><!> <!> <span class=\"sv-grid-chart-tooltip-row-value svelte-kvdein\"> </span></span>"), Kr = _("<span class=\"sv-grid-chart-tooltip-title svelte-kvdein\"> </span> <!>", 1), qr = _("<div role=\"tooltip\"><!></div>"), Jr = _("<span class=\"sv-grid-chart-swatch svelte-kvdein\"></span> ", 1), Yr = _("<button type=\"button\"><!></button>"), Xr = _("<button type=\"button\" class=\"sv-grid-chart-legend-more svelte-kvdein\"> </button>"), Zr = _("<div><!> <!></div>"), Qr = _("<div class=\"sv-grid-chart-live sv-grid-chart-sr-only svelte-kvdein\" aria-live=\"polite\" aria-atomic=\"true\"> </div>"), $r = _("<th> </th>"), ei = _("<td> </td>"), ti = _("<tr></tr>"), ni = _("<div><!> <svg width=\"100%\"><!><!><!><!><!><!><g><!><!><!><!><!><!><!><!></g><!><!><g></g><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!></svg> <!> <!> <!> <!> <!> <!> <!> <div class=\"sv-grid-chart-sr-only svelte-kvdein\"><table><caption> <!><!></caption><thead><tr></tr></thead><tbody></tbody></table></div></div>");
|
|
449
|
-
function ri(ne, f) {
|
|
450
|
-
_e(f, !0);
|
|
451
|
-
let le = k(f, "legend", 3, !0), _ = k(f, "interactive", 3, !0), v = k(f, "tooltipMode", 3, "shared"), Se = k(f, "tooltipPosition", 3, "follow"), Ce = k(f, "tooltipSticky", 3, !1), we = k(f, "zoomable", 3, !1), I = k(f, "zoom", 15, null), Ae = k(f, "rangePresets", 3, !1), L = k(f, "contextMenu", 3, !1), R = k(f, "animate", 3, !1), Fe = k(f, "drillable", 3, !1), Ie = k(f, "drillPath", 31, () => de([])), Le = k(f, "selectable", 3, !1), Re = k(f, "selected", 31, () => de([])), ze = k(f, "announce", 3, !0), Be = k(f, "describe", 3, !0), Ve = k(f, "live", 3, !1), He = k(f, "hoverHighlight", 3, !0), Ue = k(f, "crosshairLabels", 3, !0), We = k(f, "brush", 3, !1), Ge = k(f, "brushHeight", 3, 88), Ke = k(f, "autosize", 3, !1), qe = k(f, "annotatable", 3, !1), Je = k(f, "drawable", 3, !1), z = A(() => et(f.localeText)), Ye = T("");
|
|
452
|
-
pe(() => {
|
|
453
|
-
if (!Be()) {
|
|
454
|
-
p(Ye, "");
|
|
455
|
-
return;
|
|
456
|
-
}
|
|
457
|
-
let e = F(W), t = !0;
|
|
458
|
-
return import("./chart-summary-D02rGO0c.js").then(({ chartSummary: n }) => {
|
|
459
|
-
t && p(Ye, n(e), !0);
|
|
460
|
-
}), () => {
|
|
461
|
-
t = !1;
|
|
462
|
-
};
|
|
463
|
-
});
|
|
464
|
-
async function Xe() {
|
|
465
|
-
if (F(Ye)) {
|
|
466
|
-
try {
|
|
467
|
-
await navigator.clipboard?.writeText(F(Ye));
|
|
468
|
-
} catch {}
|
|
469
|
-
p(Vo, `${F(z).describeCopied}. ${F(Ye)}`);
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
let $e = T(0), ri = T(0), ii = A(() => f.width ?? (Ke() && F($e) > 24 ? F($e) : f.spec.width ?? 520)), ai = A(() => f.height ?? (Ke() && F(ri) > 24 ? F(ri) : f.spec.height ?? 300)), oi = A(() => {
|
|
473
|
-
if (!f.spec.responsive?.length) return;
|
|
474
|
-
let e;
|
|
475
|
-
for (let t of u(f.spec.responsive, F(ii), F(ai))) t.legend !== void 0 && (e = t.legend);
|
|
476
|
-
return e;
|
|
477
|
-
}), B = A(() => {
|
|
478
|
-
if (!f.spec.responsive?.length) return f.spec;
|
|
479
|
-
let { responsive: e, ...t } = o(f.spec, F(ii), F(ai));
|
|
480
|
-
return t;
|
|
481
|
-
}), si = A(() => F(oi) ?? le()), ci = A(() => F(si) === !0 ? "bottom" : F(si) === !1 ? null : F(si)), li = A(() => F(ci) === "left" || F(ci) === "right"), ui = T(0), di = T(0), fi = T(0), pi = T(0), mi = A(() => {
|
|
482
|
-
if (!Ke() || F($e) <= 24) return null;
|
|
483
|
-
let e = F(bi) ? F(ui) : 0, t = F(ci) ? F(fi) : 0, n = F(ci) ? F(di) : 0, r = We() && !Na.has(f.spec.type) ? F(pi) : 0, i = Math.max(120, Math.round(F($e) - (F(li) ? n + 8 : 0))), a = e + (F(li) ? 0 : t) + r, o = F(li) ? 16 : (e ? 8 : 0) + (t ? 8 : 0) + (r ? 8 : 0);
|
|
484
|
-
return {
|
|
485
|
-
width: i,
|
|
486
|
-
height: F(ri) > 24 ? Math.max(120, Math.round(F(ri) - a - o)) : void 0
|
|
487
|
-
};
|
|
488
|
-
}), hi = A(() => f.width ?? F(mi)?.width), gi = A(() => f.height ?? F(mi)?.height), _i = A(() => typeof f.dataLabels == "object" ? {
|
|
489
|
-
show: !0,
|
|
490
|
-
...f.dataLabels
|
|
491
|
-
} : f.dataLabels === void 0 ? F(B).dataLabels ? {
|
|
492
|
-
show: F(B).dataLabels.show !== !1,
|
|
493
|
-
...F(B).dataLabels
|
|
494
|
-
} : { show: !1 } : { show: !!f.dataLabels }), vi = A(() => we() ? we() === !0 ? {
|
|
495
|
-
drag: !0,
|
|
496
|
-
wheel: !1,
|
|
497
|
-
pinch: !1,
|
|
498
|
-
pan: !1,
|
|
499
|
-
axis: "x"
|
|
500
|
-
} : {
|
|
501
|
-
drag: we().drag !== !1,
|
|
502
|
-
wheel: we().wheel ?? !1,
|
|
503
|
-
pinch: we().pinch ?? !!we().wheel,
|
|
504
|
-
pan: we().pan ?? !1,
|
|
505
|
-
axis: we().axis ?? "x"
|
|
506
|
-
} : null), yi = T(!1), bi = A(() => f.toolbar ?? (!!we() || !!f.onDrill || qe() || !!Ae() || Fe() || !!Je())), xi = T(!1), V = (e) => f.formatValue ? f.formatValue(e) : F(B).valueFormat ? d(e, F(B).valueFormat, F(B)) : Number.isFinite(e) ? e.toLocaleString(void 0, { maximumFractionDigits: 2 }) : String(e), Si = A(() => {
|
|
507
|
-
let e = F(B).y2Axis;
|
|
508
|
-
return f.formatValue ? f.formatValue : e?.formatter ? (t) => e.formatter(t, -1) : e?.format ? (t) => d(t, e.format, F(B)) : (e) => Number.isFinite(e) ? e.toLocaleString(void 0, { maximumFractionDigits: 2 }) : String(e);
|
|
509
|
-
}), Ci = A(() => new Set(F(B).series.filter((e) => e.axis === "right").map((e) => e.label))), wi = (e) => e && F(Ci).has(e) ? F(Si) : V, Ti = T(de(new Set(f.spec.series.filter((e) => e.visible === !1).map((e) => e.label)))), Ei = T(null), Di = T(null), Oi = T(null), ki = A(() => F(B).palette ?? F(Di) ?? n), Ai = `svgc-${Math.random().toString(36).slice(2, 8)}`, ji = A(() => F(B).series.map((e, t) => ({
|
|
510
|
-
...e,
|
|
511
|
-
color: e.color ?? F(ki)[t % F(ki).length]
|
|
512
|
-
}))), Mi = A(() => F(B).series.map((e, t) => e.pattern ? e.pattern : F(B).patternFallback ? [
|
|
513
|
-
"stripe",
|
|
514
|
-
"crosshatch",
|
|
515
|
-
"dots",
|
|
516
|
-
"diagonal"
|
|
517
|
-
][t % 4] : "solid")), Ni = A(() => {
|
|
518
|
-
let e = {};
|
|
519
|
-
return F(ji).forEach((t, n) => {
|
|
520
|
-
let r = F(Mi)[n];
|
|
521
|
-
e[t.label] = r === "solid" || !r ? t.color : `url(#${Ai}-pat-${n})`;
|
|
522
|
-
}), e;
|
|
523
|
-
}), Pi = A(() => F(ji).map((e, t) => ({
|
|
524
|
-
id: `${Ai}-pat-${t}`,
|
|
525
|
-
color: e.color,
|
|
526
|
-
kind: F(Mi)[t] ?? "solid"
|
|
527
|
-
})).filter((e) => e.kind !== "solid")), Fi = A(() => {
|
|
528
|
-
if (F(Ei) == null) return F(Ti);
|
|
529
|
-
let e = F(B).type === "pie" ? F(Ja) : F(B).series.map((e) => e.label);
|
|
530
|
-
return new Set(e.filter((e) => e !== F(Ei)));
|
|
531
|
-
}), Ii = A(() => I() !== null);
|
|
532
|
-
function Li(e) {
|
|
533
|
-
if (!(e === null && I() === null || e !== null && I() !== null && e.i0 === I().i0 && e.i1 === I().i1 && (e.y?.min ?? null) === (I().y?.min ?? null) && (e.y?.max ?? null) === (I().y?.max ?? null)) && (I(e), f.onZoom?.(e), f.syncGroup && !zi)) {
|
|
534
|
-
let t = F(B).categories.length;
|
|
535
|
-
Ne(f.syncGroup, e, t, Ri, e ? [F(B).categories[e.i0] ?? "", F(B).categories[e.i1] ?? ""] : null);
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
let Ri = Symbol("svchart"), zi = !1, Bi = A(() => f.syncGroup ? je(f.syncGroup) : null), Vi = T(!1);
|
|
539
|
-
function Hi(e) {
|
|
540
|
-
Li(e);
|
|
541
|
-
}
|
|
542
|
-
function Ui() {
|
|
543
|
-
Li(null);
|
|
544
|
-
}
|
|
545
|
-
function Wi(e, t) {
|
|
546
|
-
let n = Ao(e, t);
|
|
547
|
-
return n == null ? null : (I() ? I().i0 : 0) + n;
|
|
548
|
-
}
|
|
549
|
-
function Gi(e) {
|
|
550
|
-
if (!F(vi)?.wheel || !F(K) || F(xi) || F(vi).wheel === "modifier" && !(e.ctrlKey || e.metaKey)) return;
|
|
551
|
-
let t = ea(e);
|
|
552
|
-
if (!t || t.x < F(G).plot.x || t.x > F(G).plot.x + F(G).plot.w) return;
|
|
553
|
-
e.preventDefault();
|
|
554
|
-
let n = Wi(e.clientX, e.currentTarget) ?? 0, r = e.deltaY > 0 ? 1.25 : .8;
|
|
555
|
-
Li(Te(I(), F(B).categories.length, n, r));
|
|
556
|
-
}
|
|
557
|
-
let Ki = /* @__PURE__ */ new Map(), qi = null, Ji = null, Yi = (e) => !!F(vi)?.pan && F(Ii) && (F(yi) || (F(vi).pan === "shift" || F(vi).pan === !0) && e.shiftKey), Xi = T(null), Zi = T(null), Qi = T(null), $i = A(() => {
|
|
558
|
-
if (!F(Zi) || !F(Qi)) return null;
|
|
559
|
-
let e = Math.min(F(Zi).x, F(Qi).x), t = Math.min(F(Zi).y, F(Qi).y), n = Math.abs(F(Qi).x - F(Zi).x), r = Math.abs(F(Qi).y - F(Zi).y);
|
|
560
|
-
return n > 4 && r > 4 ? {
|
|
561
|
-
x: e,
|
|
562
|
-
y: t,
|
|
563
|
-
w: n,
|
|
564
|
-
h: r
|
|
565
|
-
} : null;
|
|
566
|
-
});
|
|
567
|
-
function ea(e) {
|
|
568
|
-
if (!F(Xi)) return null;
|
|
569
|
-
let t = F(Xi).getBoundingClientRect();
|
|
570
|
-
return {
|
|
571
|
-
x: (e.clientX - t.left) / t.width * F(G).width,
|
|
572
|
-
y: (e.clientY - t.top) / t.height * F(G).height
|
|
573
|
-
};
|
|
574
|
-
}
|
|
575
|
-
function ta(e) {
|
|
576
|
-
let t = F(q) ? e.y - F(G).plot.y : e.x - F(G).plot.x, n = Math.floor(t / F(wo));
|
|
577
|
-
return Math.max(0, Math.min(F(W).categories.length - 1, n));
|
|
578
|
-
}
|
|
579
|
-
function na(e) {
|
|
580
|
-
if (F(xi) || F(la) || F(ha) || !F(vi) || !F(K)) return;
|
|
581
|
-
let t = ea(e);
|
|
582
|
-
if (t && !(t.x < F(G).plot.x || t.x > F(G).plot.x + F(G).plot.w || t.y < F(G).plot.y || t.y > F(G).plot.y + F(G).plot.h)) {
|
|
583
|
-
if (e.target.setPointerCapture?.(e.pointerId), F(vi).pinch && (Ki.set(e.pointerId, t), Ki.size === 2)) {
|
|
584
|
-
let [e, t] = [...Ki.values()];
|
|
585
|
-
qi = {
|
|
586
|
-
dist: Math.hypot(e.x - t.x, e.y - t.y) || 1,
|
|
587
|
-
mid: ta({
|
|
588
|
-
x: (e.x + t.x) / 2,
|
|
589
|
-
y: (e.y + t.y) / 2
|
|
590
|
-
}) + (I() ? I().i0 : 0),
|
|
591
|
-
start: I()
|
|
592
|
-
}, p(Zi, null), p(Qi, null);
|
|
593
|
-
return;
|
|
594
|
-
}
|
|
595
|
-
if (Yi(e)) {
|
|
596
|
-
Ji = {
|
|
597
|
-
startIndex: ta(t),
|
|
598
|
-
start: I()
|
|
599
|
-
};
|
|
600
|
-
return;
|
|
601
|
-
}
|
|
602
|
-
F(vi).drag && (p(Zi, t, !0), p(Qi, t, !0));
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
function ra(e) {
|
|
606
|
-
if (qi && Ki.has(e.pointerId)) {
|
|
607
|
-
let t = ea(e);
|
|
608
|
-
t && Ki.set(e.pointerId, t);
|
|
609
|
-
let [n, r] = [...Ki.values()];
|
|
610
|
-
if (n && r) {
|
|
611
|
-
let e = Math.hypot(n.x - r.x, n.y - r.y) || 1;
|
|
612
|
-
Li(De(qi.start, F(B).categories.length, qi.mid, e / qi.dist));
|
|
613
|
-
}
|
|
614
|
-
return;
|
|
615
|
-
}
|
|
616
|
-
if (Ji) {
|
|
617
|
-
let t = ea(e);
|
|
618
|
-
if (!t) return;
|
|
619
|
-
let n = Ji.startIndex - ta(t);
|
|
620
|
-
Li(Ee(Ji.start, F(B).categories.length, n));
|
|
621
|
-
return;
|
|
622
|
-
}
|
|
623
|
-
F(Zi) && p(Qi, ea(e), !0);
|
|
624
|
-
}
|
|
625
|
-
function ia(e) {
|
|
626
|
-
if (e && Ki.delete(e.pointerId), qi) {
|
|
627
|
-
Ki.size < 2 && (qi = null);
|
|
628
|
-
return;
|
|
629
|
-
}
|
|
630
|
-
if (Ji) {
|
|
631
|
-
Ji = null;
|
|
632
|
-
return;
|
|
633
|
-
}
|
|
634
|
-
if (!F(Zi) || !F(Qi)) {
|
|
635
|
-
p(Zi, null), p(Qi, null);
|
|
636
|
-
return;
|
|
637
|
-
}
|
|
638
|
-
let t = F($i);
|
|
639
|
-
if (t) {
|
|
640
|
-
let e = F(vi)?.axis ?? "x", n = ta({
|
|
641
|
-
x: t.x,
|
|
642
|
-
y: t.y
|
|
643
|
-
}), r = ta({
|
|
644
|
-
x: t.x + t.w,
|
|
645
|
-
y: t.y + t.h
|
|
646
|
-
}), i = I() ? I().i0 : 0, a = e === "y" ? I()?.i0 ?? 0 : i + Math.min(n, r), o = e === "y" ? I()?.i1 ?? F(B).categories.length - 1 : i + Math.max(n, r), s;
|
|
647
|
-
if (e !== "x" && F(uo) && !F(q)) {
|
|
648
|
-
let e = F(uo).yInvert(t.y), n = F(uo).yInvert(t.y + t.h);
|
|
649
|
-
Number.isFinite(e) && Number.isFinite(n) && e !== n && (s = {
|
|
650
|
-
min: Math.min(e, n),
|
|
651
|
-
max: Math.max(e, n)
|
|
652
|
-
});
|
|
653
|
-
}
|
|
654
|
-
(o > a || s) && Li({
|
|
655
|
-
i0: a,
|
|
656
|
-
i1: Math.max(a, o),
|
|
657
|
-
...s ? { y: s } : {}
|
|
658
|
-
});
|
|
659
|
-
}
|
|
660
|
-
p(Zi, null), p(Qi, null);
|
|
661
|
-
}
|
|
662
|
-
function aa() {
|
|
663
|
-
we() && F(Ii) && Ui();
|
|
664
|
-
}
|
|
665
|
-
let oa = [
|
|
666
|
-
"trend",
|
|
667
|
-
"hray",
|
|
668
|
-
"fib",
|
|
669
|
-
"rect",
|
|
670
|
-
"arrow",
|
|
671
|
-
"text"
|
|
672
|
-
], sa = A(() => ({
|
|
673
|
-
trend: F(z).toolTrend,
|
|
674
|
-
hray: F(z).toolRay,
|
|
675
|
-
fib: F(z).toolFib,
|
|
676
|
-
rect: F(z).toolRect,
|
|
677
|
-
arrow: F(z).toolArrow,
|
|
678
|
-
text: F(z).toolText
|
|
679
|
-
})), ca = A(() => Je() ? Je() === !0 ? oa : Je() : []), la = T(null), H = T(null), ua = T(null), da = T(null), fa = T(null), pa = T("");
|
|
680
|
-
function ma() {
|
|
681
|
-
let e = F(fa), t = F(pa).trim();
|
|
682
|
-
p(fa, null), p(pa, ""), !(!e || !t) && ba([..._a(), {
|
|
683
|
-
id: `d${Date.now().toString(36)}${ga++}`,
|
|
684
|
-
kind: "text",
|
|
685
|
-
points: [{
|
|
686
|
-
x: e.x,
|
|
687
|
-
y: e.y
|
|
688
|
-
}],
|
|
689
|
-
text: t
|
|
690
|
-
}]);
|
|
691
|
-
}
|
|
692
|
-
let ha = T(null), ga = 0, _a = () => F(B).drawings ?? [];
|
|
693
|
-
function va(e) {
|
|
694
|
-
if (!F(uo)) return null;
|
|
695
|
-
let t = F(G).axes?.x;
|
|
696
|
-
if (t?.type === "number") return F(uo).xInvertValue(e);
|
|
697
|
-
if (t?.type === "time") return new Date(F(uo).xInvertValue(e)).toISOString();
|
|
698
|
-
let n = Math.round(F(uo).xInvert(e));
|
|
699
|
-
return F(W).categories[n] ?? null;
|
|
700
|
-
}
|
|
701
|
-
function ya(e) {
|
|
702
|
-
let t = ea(e);
|
|
703
|
-
if (!t || !F(uo) || t.x < F(G).plot.x || t.x > F(G).plot.x + F(G).plot.w || t.y < F(G).plot.y || t.y > F(G).plot.y + F(G).plot.h) return null;
|
|
704
|
-
let n = va(t.x);
|
|
705
|
-
if (n == null) return null;
|
|
706
|
-
let r = F(uo).yInvert(t.y);
|
|
707
|
-
return Number.isFinite(r) ? {
|
|
708
|
-
x: n,
|
|
709
|
-
y: Math.round(r * 1e3) / 1e3,
|
|
710
|
-
px: t.x,
|
|
711
|
-
py: t.y
|
|
712
|
-
} : null;
|
|
713
|
-
}
|
|
714
|
-
function ba(e) {
|
|
715
|
-
f.onDrawingsChange?.(e);
|
|
716
|
-
}
|
|
717
|
-
function xa(e) {
|
|
718
|
-
p(la, F(la) === e ? null : e, !0), p(H, null), p(ua, null), p(fa, null);
|
|
719
|
-
}
|
|
720
|
-
function Sa(e) {
|
|
721
|
-
if (!F(la)) return;
|
|
722
|
-
let t = ya(e);
|
|
723
|
-
if (!t) return;
|
|
724
|
-
if (F(la) === "text") {
|
|
725
|
-
let n = F(ss)?.getBoundingClientRect();
|
|
726
|
-
p(pa, ""), p(fa, {
|
|
727
|
-
x: t.x,
|
|
728
|
-
y: t.y,
|
|
729
|
-
left: n ? e.clientX - n.left : 0,
|
|
730
|
-
top: n ? e.clientY - n.top : 0
|
|
731
|
-
}, !0);
|
|
732
|
-
return;
|
|
733
|
-
}
|
|
734
|
-
if (F(la) === "hray") {
|
|
735
|
-
ba([..._a(), {
|
|
736
|
-
id: `d${Date.now().toString(36)}${ga++}`,
|
|
737
|
-
kind: F(la),
|
|
738
|
-
points: [{
|
|
739
|
-
x: t.x,
|
|
740
|
-
y: t.y
|
|
741
|
-
}]
|
|
742
|
-
}]);
|
|
743
|
-
return;
|
|
744
|
-
}
|
|
745
|
-
if (!F(H)) {
|
|
746
|
-
p(H, t, !0), p(ua, {
|
|
747
|
-
x: t.px,
|
|
748
|
-
y: t.py
|
|
749
|
-
}, !0);
|
|
750
|
-
return;
|
|
751
|
-
}
|
|
752
|
-
let n = F(H);
|
|
753
|
-
p(H, null), p(ua, null), ba([..._a(), {
|
|
754
|
-
id: `d${Date.now().toString(36)}${ga++}`,
|
|
755
|
-
kind: F(la),
|
|
756
|
-
points: [{
|
|
757
|
-
x: n.x,
|
|
758
|
-
y: n.y
|
|
759
|
-
}, {
|
|
760
|
-
x: t.x,
|
|
761
|
-
y: t.y
|
|
762
|
-
}]
|
|
763
|
-
}]);
|
|
764
|
-
}
|
|
765
|
-
function Ca(e) {
|
|
766
|
-
if (F(ha)) {
|
|
767
|
-
let t = ya(e);
|
|
768
|
-
if (!t) return;
|
|
769
|
-
let { id: n, index: r } = F(ha);
|
|
770
|
-
ba(_a().map((e) => e.id === n ? {
|
|
771
|
-
...e,
|
|
772
|
-
points: e.points.map((e, n) => n === r ? {
|
|
773
|
-
x: t.x,
|
|
774
|
-
y: t.y
|
|
775
|
-
} : e)
|
|
776
|
-
} : e));
|
|
777
|
-
return;
|
|
778
|
-
}
|
|
779
|
-
if (F(H)) {
|
|
780
|
-
let t = ea(e);
|
|
781
|
-
t && p(ua, t, !0);
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
function wa(e) {
|
|
785
|
-
ba(_a().filter((t) => t.id !== e)), F(da) === e && p(da, null);
|
|
786
|
-
}
|
|
787
|
-
function Ta(e, t) {
|
|
788
|
-
(e.key === "Delete" || e.key === "Backspace") && (e.preventDefault(), wa(t));
|
|
789
|
-
}
|
|
790
|
-
function Ea(e) {
|
|
791
|
-
if (e.key === "Escape") {
|
|
792
|
-
if (F(us)) {
|
|
793
|
-
Da();
|
|
794
|
-
return;
|
|
795
|
-
}
|
|
796
|
-
F(la) && (F(H) ? (p(H, null), p(ua, null)) : p(la, null));
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
function Da() {
|
|
800
|
-
p(us, null), Q();
|
|
801
|
-
}
|
|
802
|
-
function Oa(e) {
|
|
803
|
-
if (!(!Ce() || !F(ls))) {
|
|
804
|
-
if (F(us) && F(us).index === e) {
|
|
805
|
-
Da();
|
|
806
|
-
return;
|
|
807
|
-
}
|
|
808
|
-
p(us, {
|
|
809
|
-
index: e,
|
|
810
|
-
series: F(ls).ctx.series ?? null
|
|
811
|
-
}, !0);
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
pe(() => {
|
|
815
|
-
if (!F(us) || typeof document > "u") return;
|
|
816
|
-
let e = (e) => {
|
|
817
|
-
F(ss) && e.target instanceof Node && F(ss).contains(e.target) || Da();
|
|
818
|
-
};
|
|
819
|
-
return document.addEventListener("pointerdown", e, !0), () => document.removeEventListener("pointerdown", e, !0);
|
|
820
|
-
});
|
|
821
|
-
let ka = (e) => {
|
|
822
|
-
e.focus();
|
|
823
|
-
}, Aa = A(() => F(B).type === "candlestick" || F(B).type === "ohlc"), ja = A(() => F(B).type === "ohlc"), Ma = A(() => Math.max(50, (F(hi) ?? F(B).width ?? 520) - 60)), Na = /* @__PURE__ */ new Set([
|
|
824
|
-
"pie",
|
|
825
|
-
"heatmap",
|
|
826
|
-
"funnel",
|
|
827
|
-
"radar",
|
|
828
|
-
"calendar",
|
|
829
|
-
"gauge",
|
|
830
|
-
"treemap",
|
|
831
|
-
"sankey",
|
|
832
|
-
"sunburst",
|
|
833
|
-
"radial-bar",
|
|
834
|
-
"radial-column",
|
|
835
|
-
"nightingale",
|
|
836
|
-
"chord",
|
|
837
|
-
"bullet"
|
|
838
|
-
]), Pa = /* @__PURE__ */ new Set([
|
|
839
|
-
"lollipop",
|
|
840
|
-
"dumbbell",
|
|
841
|
-
"range-area",
|
|
842
|
-
"range-bar",
|
|
843
|
-
"stream",
|
|
844
|
-
"pareto"
|
|
845
|
-
]), Fa = A(() => We() && !Na.has(F(B).type)), Ia = A(() => ({
|
|
846
|
-
...F(B),
|
|
847
|
-
width: F(hi) ?? F(B).width,
|
|
848
|
-
height: Ge(),
|
|
849
|
-
title: void 0,
|
|
850
|
-
subtitle: void 0,
|
|
851
|
-
caption: void 0,
|
|
852
|
-
yAxisTitle: void 0,
|
|
853
|
-
y2AxisTitle: void 0,
|
|
854
|
-
xAxisTitle: void 0,
|
|
855
|
-
xAxis: {
|
|
856
|
-
...F(B).xAxis,
|
|
857
|
-
title: void 0,
|
|
858
|
-
labels: !1
|
|
859
|
-
},
|
|
860
|
-
yAxis: {
|
|
861
|
-
...F(B).yAxis,
|
|
862
|
-
title: void 0,
|
|
863
|
-
labels: !1
|
|
864
|
-
},
|
|
865
|
-
y2Axis: {
|
|
866
|
-
...F(B).y2Axis,
|
|
867
|
-
title: void 0,
|
|
868
|
-
labels: !1
|
|
869
|
-
},
|
|
870
|
-
referenceLines: void 0,
|
|
871
|
-
referenceBands: void 0,
|
|
872
|
-
annotations: void 0,
|
|
873
|
-
drawings: void 0,
|
|
874
|
-
seriesLabels: void 0,
|
|
875
|
-
dataLabels: { show: !1 },
|
|
876
|
-
type: F(Aa) || F(B).type === "boxplot" || Pa.has(F(B).type) ? "line" : F(B).type === "histogram" ? "bar" : F(B).type,
|
|
877
|
-
stackOffset: void 0,
|
|
878
|
-
series: F(ji).filter((e) => !F(Fi).has(e.label)).map((e) => e.ohlc || e.boxes ? {
|
|
879
|
-
...e,
|
|
880
|
-
ohlc: void 0,
|
|
881
|
-
boxes: void 0,
|
|
882
|
-
errors: void 0,
|
|
883
|
-
type: "line"
|
|
884
|
-
} : e.errors || e.type && Pa.has(e.type) || e.type === "scatter" ? {
|
|
885
|
-
...e,
|
|
886
|
-
errors: void 0,
|
|
887
|
-
type: e.type && (Pa.has(e.type) || e.type === "scatter") ? "line" : e.type
|
|
888
|
-
} : e)
|
|
889
|
-
})), U = A(() => F(Fa) ? te(re(F(Ia), F(Ma))) : null), La = A(() => {
|
|
890
|
-
let e = F(B).categories.length;
|
|
891
|
-
return !I() || e === 0 ? {
|
|
892
|
-
t0: 0,
|
|
893
|
-
t1: 1
|
|
894
|
-
} : {
|
|
895
|
-
t0: I().i0 / e,
|
|
896
|
-
t1: (I().i1 + 1) / e
|
|
897
|
-
};
|
|
898
|
-
}), Ra = T(null);
|
|
899
|
-
function za(e, t) {
|
|
900
|
-
let n = t.getBoundingClientRect();
|
|
901
|
-
return F(U) ? (e.clientX - n.left) / n.width * F(U).width : 0;
|
|
902
|
-
}
|
|
903
|
-
function Ba(e, t) {
|
|
904
|
-
if (!F(U)) return;
|
|
905
|
-
let n = e.currentTarget, r = za(e, n.ownerSVGElement ?? n);
|
|
906
|
-
p(Ra, {
|
|
907
|
-
mode: t,
|
|
908
|
-
startX: r,
|
|
909
|
-
startT0: F(La).t0,
|
|
910
|
-
startT1: F(La).t1
|
|
911
|
-
}, !0), e.currentTarget.setPointerCapture?.(e.pointerId), e.stopPropagation();
|
|
912
|
-
}
|
|
913
|
-
function Va(e) {
|
|
914
|
-
if (!F(Ra) || !F(U)) return;
|
|
915
|
-
let t = (za(e, e.currentTarget.ownerSVGElement ?? e.currentTarget) - F(Ra).startX) / F(U).plot.w, n = F(B).categories.length;
|
|
916
|
-
if (n === 0) return;
|
|
917
|
-
let r = F(Ra).startT0, i = F(Ra).startT1;
|
|
918
|
-
if (F(Ra).mode === "move") {
|
|
919
|
-
let e = i - r;
|
|
920
|
-
r = Math.max(0, Math.min(1 - e, r + t)), i = r + e;
|
|
921
|
-
} else F(Ra).mode === "left" ? r = Math.max(0, Math.min(i - 1 / n, r + t)) : i = Math.min(1, Math.max(r + 1 / n, i + t));
|
|
922
|
-
let a = Math.max(0, Math.floor(r * n)), o = Math.min(n - 1, Math.ceil(i * n) - 1);
|
|
923
|
-
a === 0 && o === n - 1 ? Li(null) : Li({
|
|
924
|
-
i0: a,
|
|
925
|
-
i1: Math.max(a, o),
|
|
926
|
-
...I()?.y ? { y: I().y } : {}
|
|
927
|
-
});
|
|
928
|
-
}
|
|
929
|
-
function Ha(e) {
|
|
930
|
-
p(Ra, null), e.currentTarget.releasePointerCapture?.(e.pointerId);
|
|
931
|
-
}
|
|
932
|
-
let Ua = A(() => F(B).tree ?? F(B).treemap ?? null), Wa = A(() => Fe() && !!F(Ua) && (F(B).type === "sunburst" || F(B).type === "treemap" || F(B).type === "pie")), Ga = A(() => F(Wa) && Ie().length ? l(F(Ua), Ie()) : F(Ua)), Ka = (e) => e.value ?? (e.children ?? []).reduce((e, t) => e + Ka(t), 0), qa = A(() => F(B).type === "pie" && F(Wa) && F(Ga) ? F(Ga) : null), Ja = A(() => F(qa) ? (F(qa).children ?? []).map((e) => e.name) : F(B).categories), Ya = (e) => !!F(qa) && !!F(qa).children?.find((t) => t.name === e)?.children?.length;
|
|
933
|
-
function Xa(e) {
|
|
934
|
-
Ie(e);
|
|
935
|
-
}
|
|
936
|
-
function Za(e) {
|
|
937
|
-
return !F(Wa) || !e || !F(Ua) || !l(F(Ua), e)?.children?.length ? !1 : (Xa(e), !0);
|
|
938
|
-
}
|
|
939
|
-
let W = A(() => {
|
|
940
|
-
if (F(qa)) {
|
|
941
|
-
let e = F(qa).children ?? [], t = F(B).series[0]?.label ?? F(qa).name, n = e.map((e) => F(Fi).has(e.name) ? 0 : Ka(e)), r = e.map((e) => e.color ?? null);
|
|
942
|
-
return {
|
|
943
|
-
...F(B),
|
|
944
|
-
categories: F(Ja),
|
|
945
|
-
series: [{
|
|
946
|
-
label: t,
|
|
947
|
-
values: n,
|
|
948
|
-
...r.some(Boolean) ? { colors: r } : {}
|
|
949
|
-
}]
|
|
950
|
-
};
|
|
951
|
-
}
|
|
952
|
-
if (F(Wa) && F(Ga) && Ie().length) {
|
|
953
|
-
let e = {
|
|
954
|
-
...F(B),
|
|
955
|
-
tree: F(Ga),
|
|
956
|
-
treemap: F(Ga)
|
|
957
|
-
};
|
|
958
|
-
return F(B).type === "treemap" ? e : {
|
|
959
|
-
...e,
|
|
960
|
-
series: F(ji)
|
|
961
|
-
};
|
|
962
|
-
}
|
|
963
|
-
if (F(B).type === "pie" || F(ho)) {
|
|
964
|
-
let e = F(ji)[0];
|
|
965
|
-
if (!e) return F(B);
|
|
966
|
-
let t = e.values.map((e, t) => F(Fi).has(F(B).categories[t] ?? String(t)) ? 0 : e);
|
|
967
|
-
return {
|
|
968
|
-
...F(B),
|
|
969
|
-
series: [{
|
|
970
|
-
...e,
|
|
971
|
-
values: t
|
|
972
|
-
}]
|
|
973
|
-
};
|
|
974
|
-
}
|
|
975
|
-
let e = F(ji).filter((e) => !F(Fi).has(e.label)), t = I() ? c({
|
|
976
|
-
...F(B),
|
|
977
|
-
series: e
|
|
978
|
-
}, I().i0, I().i1) : {
|
|
979
|
-
...F(B),
|
|
980
|
-
series: e
|
|
981
|
-
};
|
|
982
|
-
if (I()?.y) {
|
|
983
|
-
let e = I().y.axis === "right" ? "y2Axis" : "yAxis";
|
|
984
|
-
t = {
|
|
985
|
-
...t,
|
|
986
|
-
[e]: {
|
|
987
|
-
...t[e] ?? {},
|
|
988
|
-
min: I().y.min,
|
|
989
|
-
max: I().y.max,
|
|
990
|
-
nice: !1
|
|
991
|
-
}
|
|
992
|
-
};
|
|
993
|
-
}
|
|
994
|
-
return re(t, F(Ma));
|
|
995
|
-
}), Qa = T(!1), $a = A(() => te({
|
|
996
|
-
...F(W),
|
|
997
|
-
palette: F(ki),
|
|
998
|
-
...F(hi) || F(gi) ? {
|
|
999
|
-
width: F(hi),
|
|
1000
|
-
height: F(gi)
|
|
1001
|
-
} : {},
|
|
1002
|
-
...f.dataLabels === void 0 ? {} : { dataLabels: F(_i) }
|
|
1003
|
-
}, F(Qa) ? "dark" : "light")), eo = A(() => R() ? R() === !0 ? {
|
|
1004
|
-
duration: 400,
|
|
1005
|
-
enter: "fade",
|
|
1006
|
-
update: !0
|
|
1007
|
-
} : {
|
|
1008
|
-
duration: R().duration ?? 400,
|
|
1009
|
-
enter: R().enter ?? "fade",
|
|
1010
|
-
update: R().update ?? !0
|
|
1011
|
-
} : null), to = T(!1);
|
|
1012
|
-
pe(() => {
|
|
1013
|
-
if (typeof matchMedia != "function") return;
|
|
1014
|
-
let e = matchMedia("(prefers-reduced-motion: reduce)");
|
|
1015
|
-
p(to, e.matches, !0);
|
|
1016
|
-
let t = () => p(to, e.matches, !0);
|
|
1017
|
-
return e.addEventListener?.("change", t), () => e.removeEventListener?.("change", t);
|
|
1018
|
-
});
|
|
1019
|
-
let no = T(null), G = A(() => F(no) && F(no).t < 1 ? Pe(F(no).from, F($a), F(no).t) : F($a)), ro = null, io = 0;
|
|
1020
|
-
pe(() => {
|
|
1021
|
-
let e = F($a);
|
|
1022
|
-
fe(() => {
|
|
1023
|
-
let t = ro;
|
|
1024
|
-
if (ro = e, !t || !F(eo)?.update || F(to) || F(eo).duration <= 0 || Ve() || e.bars.length + e.arcs.length > 600 || e.lines.some((e) => e.points.length > 600) || t.type !== e.type) return;
|
|
1025
|
-
let n = F(no) && F(no).t < 1 ? Pe(F(no).from, t, F(no).t) : t;
|
|
1026
|
-
cancelAnimationFrame(io);
|
|
1027
|
-
let r = performance.now(), i = F(eo).duration;
|
|
1028
|
-
p(no, {
|
|
1029
|
-
from: n,
|
|
1030
|
-
t: 0
|
|
1031
|
-
}, !0);
|
|
1032
|
-
let a = (e) => {
|
|
1033
|
-
let t = Math.min(1, (e - r) / i), o = 1 - (1 - t) ** 3;
|
|
1034
|
-
p(no, t >= 1 ? null : {
|
|
1035
|
-
from: n,
|
|
1036
|
-
t: o
|
|
1037
|
-
}, !0), t < 1 && (io = requestAnimationFrame(a));
|
|
1038
|
-
};
|
|
1039
|
-
io = requestAnimationFrame(a);
|
|
1040
|
-
});
|
|
1041
|
-
});
|
|
1042
|
-
let ao = A(() => F(to) || Ve() ? "none" : F(eo)?.enter ?? "fade"), oo = A(() => F(G).lines.flatMap((e, t) => e.style?.gradient ? [{
|
|
1043
|
-
id: `${Ai}-grad-${t}`,
|
|
1044
|
-
...e.style.gradient
|
|
1045
|
-
}] : [])), so = A(() => F(B).yAxis?.title ?? F(B).yAxisTitle), co = A(() => F(B).y2Axis?.title ?? F(B).y2AxisTitle), lo = A(() => F(B).xAxis?.title ?? F(B).xAxisTitle), uo = A(() => i(F(G))), fo = A(() => ({
|
|
1046
|
-
geo: F(G),
|
|
1047
|
-
scales: F(uo),
|
|
1048
|
-
xOf: F(uo)?.xOf ?? null,
|
|
1049
|
-
yOf: F(uo)?.yOf ?? null
|
|
1050
|
-
})), K = A(() => !Na.has(F(B).type)), po = A(() => F(B).type === "sunburst" || F(B).type === "radial-bar" || F(B).type === "radial-column" || F(B).type === "nightingale" || F(B).type === "chord"), mo = A(() => F(B).type === "bullet"), ho = A(() => (F(B).type === "radial-bar" || F(B).type === "radial-column" || F(B).type === "nightingale") && F(B).series.length === 1), go = A(() => F(B).type === "scatter"), _o = A(() => F(B).type === "heatmap"), vo = A(() => F(B).type === "funnel"), yo = A(() => F(B).type === "radar"), bo = A(() => F(B).type === "calendar"), xo = A(() => F(B).type === "gauge"), So = A(() => F(B).type === "treemap"), Co = A(() => F(B).type === "sankey"), q = A(() => F(G).orientation === "horizontal"), wo = A(() => (F(q) ? F(G).plot.h : F(G).plot.w) / Math.max(1, F(W).categories.length)), To = A(() => F(K) && !F(go) && !F(q) && F(wo) < 4 && F(W).categories.length > 1), Eo = A(() => I() ? I().i1 - I().i0 + 1 : F(B).categories.length), Do = A(() => F(_i).show && F(K) && !F(go) ? s(F(G), F(_i), (e, t) => wi(t)(e), {
|
|
1051
|
-
stacked: !!(F(B).stacked || F(B).stacked100),
|
|
1052
|
-
dense: F(To),
|
|
1053
|
-
share: !!F(B).stacked100
|
|
1054
|
-
}) : []), Oo = 1e3;
|
|
1055
|
-
function ko(e, t, n) {
|
|
1056
|
-
let r = n.ownerSVGElement ?? n;
|
|
1057
|
-
if (!r || typeof r.getBoundingClientRect != "function") return null;
|
|
1058
|
-
let i = r.getBoundingClientRect();
|
|
1059
|
-
if (!i.width || !i.height) return null;
|
|
1060
|
-
let a = r.viewBox?.baseVal, o = a && a.width ? a.width / i.width : 1, s = a && a.height ? a.height / i.height : 1;
|
|
1061
|
-
return {
|
|
1062
|
-
x: (e - i.left) * o + (a ? a.x : 0),
|
|
1063
|
-
y: (t - i.top) * s + (a ? a.y : 0)
|
|
1064
|
-
};
|
|
1065
|
-
}
|
|
1066
|
-
function Ao(e, t) {
|
|
1067
|
-
let n = ko(e, 0, t);
|
|
1068
|
-
if (!n) return null;
|
|
1069
|
-
let r = n.x, i = F(G).lines[0]?.points, a = F(W).categories.length;
|
|
1070
|
-
if (!i || i.length !== a) {
|
|
1071
|
-
let e = Math.floor((r - F(G).plot.x) / F(wo));
|
|
1072
|
-
return e >= 0 && e < a ? e : null;
|
|
1073
|
-
}
|
|
1074
|
-
let o = 0, s = i.length - 1;
|
|
1075
|
-
for (; o < s;) {
|
|
1076
|
-
let e = o + s >> 1;
|
|
1077
|
-
i[e].x < r ? o = e + 1 : s = e;
|
|
1078
|
-
}
|
|
1079
|
-
return o > 0 && Math.abs(i[o - 1].x - r) <= Math.abs(i[o].x - r) && --o, o;
|
|
1080
|
-
}
|
|
1081
|
-
let jo = T(0);
|
|
1082
|
-
function Mo(e) {
|
|
1083
|
-
if (qs(e, F(jo)) || Bs(e, F(jo))) return;
|
|
1084
|
-
let t = F(W).categories.length - 1, n = Math.max(1, Math.floor(t / 10)), r = F(jo);
|
|
1085
|
-
switch (e.key) {
|
|
1086
|
-
case "ArrowRight":
|
|
1087
|
-
case "ArrowDown":
|
|
1088
|
-
r = Math.min(t, F(jo) + 1);
|
|
1089
|
-
break;
|
|
1090
|
-
case "ArrowLeft":
|
|
1091
|
-
case "ArrowUp":
|
|
1092
|
-
r = Math.max(0, F(jo) - 1);
|
|
1093
|
-
break;
|
|
1094
|
-
case "Home":
|
|
1095
|
-
r = 0;
|
|
1096
|
-
break;
|
|
1097
|
-
case "End":
|
|
1098
|
-
r = t;
|
|
1099
|
-
break;
|
|
1100
|
-
case "PageDown":
|
|
1101
|
-
r = Math.min(t, F(jo) + n);
|
|
1102
|
-
break;
|
|
1103
|
-
case "PageUp":
|
|
1104
|
-
r = Math.max(0, F(jo) - n);
|
|
1105
|
-
break;
|
|
1106
|
-
case "Enter":
|
|
1107
|
-
case " ":
|
|
1108
|
-
e.preventDefault(), js(e, F(jo));
|
|
1109
|
-
return;
|
|
1110
|
-
default: return;
|
|
1111
|
-
}
|
|
1112
|
-
e.preventDefault(), p(jo, r, !0), xs(e.currentTarget, r);
|
|
1113
|
-
}
|
|
1114
|
-
let No = T(null), Po = A(() => F(Oi) ?? (He() ? F(No) : null)), J = (e) => F(Po) && F(Po) !== e ? .18 : 1, Fo = null;
|
|
1115
|
-
function Io(e) {
|
|
1116
|
-
f.onHover && (e === Fo || e !== null && Fo !== null && e.category === Fo.category && e.index === Fo.index && e.series === Fo.series && e.value === Fo.value || (Fo = e, f.onHover(e)));
|
|
1117
|
-
}
|
|
1118
|
-
let Y = A(() => Le() === "multi" ? "multi" : Le() ? "single" : null), Lo = (e, t, n, r) => e.category === t && e.series === n && (e.index === void 0 || r === void 0 || e.index === r), Ro = (e, t, n) => Re().some((r) => Lo(r, e, t, n)), zo = (e, t, n) => F(Y) && Re().length && !Ro(e, t, n) ? .35 : 1;
|
|
1119
|
-
function Bo(e, t, n, r) {
|
|
1120
|
-
if (!F(Y)) return;
|
|
1121
|
-
let i = r === void 0 ? {
|
|
1122
|
-
category: e,
|
|
1123
|
-
series: t
|
|
1124
|
-
} : {
|
|
1125
|
-
category: e,
|
|
1126
|
-
series: t,
|
|
1127
|
-
index: r
|
|
1128
|
-
}, a = F(Y) === "multi" || !!(n && (n.ctrlKey || n.metaKey || n.shiftKey)), o;
|
|
1129
|
-
o = Ro(e, t, r) ? a ? Re().filter((n) => !Lo(n, e, t, r)) : [] : a ? [...Re(), i] : [i], Re(o), f.onSelectionChange?.(o);
|
|
1130
|
-
}
|
|
1131
|
-
let X = T(null), Vo = T(""), Ho = A(() => F(B).type === "heatmap" || F(B).type === "calendar" || F(B).type === "gauge" ? [] : F(B).type === "pie" || F(ho) ? F(Ja).map((e, t) => ({
|
|
1132
|
-
label: e,
|
|
1133
|
-
color: F(B).categoryColors?.[e] ?? F(W).series[0]?.colors?.[t] ?? F(ki)[t % F(ki).length],
|
|
1134
|
-
off: F(Ti).has(e)
|
|
1135
|
-
})) : F(B).type === "sunburst" || F(B).type === "chord" ? F(G).legend.map((e) => ({
|
|
1136
|
-
label: e.label,
|
|
1137
|
-
color: e.color,
|
|
1138
|
-
off: !1
|
|
1139
|
-
})) : F(ji).map((e) => ({
|
|
1140
|
-
label: e.label,
|
|
1141
|
-
color: e.color,
|
|
1142
|
-
off: F(Ti).has(e.label)
|
|
1143
|
-
}))), Uo = A(() => Ae() ? Ae() === !0 ? [
|
|
1144
|
-
"1W",
|
|
1145
|
-
"1M",
|
|
1146
|
-
"3M",
|
|
1147
|
-
"6M",
|
|
1148
|
-
"YTD",
|
|
1149
|
-
"1Y",
|
|
1150
|
-
"All"
|
|
1151
|
-
] : Ae() : []), Wo = A(() => F(Uo).length > 0 && F(K) && (F(B).xType === "time" || F(B).xType === "ordinal-time" || F(B).xAxis?.type === "time" || F(B).xAxis?.type === "ordinal-time")), Go = (e) => typeof e == "string" ? e : e.label;
|
|
1152
|
-
function Ko(e) {
|
|
1153
|
-
Li(Oe(F(B).categories, e));
|
|
1154
|
-
}
|
|
1155
|
-
let qo = A(() => F(B).type !== "sunburst" && F(B).type !== "chord"), Jo = T(!1), Yo = A(() => F(Ho).length > 10), Xo = A(() => F(Yo) && !F(Jo) ? F(Ho).slice(0, 10) : F(Ho)), Zo = A(() => F(B).type === "pie" ? F(G).slices.every((e) => e.value <= 0) : F(B).type === "scatter" ? F(G).scatterPoints.length === 0 : F(B).type === "heatmap" ? F(G).heatmapCells.length === 0 : F(B).type === "funnel" ? F(G).funnelSegments.length === 0 : F(B).type === "radar" ? F(G).radarSeries.length === 0 : F(B).type === "calendar" ? F(G).calendarCells.length === 0 : F(B).type === "gauge" ? !F(G).gauge : F(B).type === "treemap" ? F(G).treemapCells.length === 0 : F(B).type === "sankey" ? F(G).sankeyNodes.length === 0 : F(Aa) ? F(G).candles.length === 0 : F(B).type === "boxplot" ? F(G).boxes.length === 0 : F(po) ? F(G).arcs.length === 0 : F(mo) ? F(G).bullets.length === 0 : F(G).bars.length === 0 && F(G).stems.length === 0 && F(G).lines.every((e) => e.points.every((e) => !e.defined))), Qo = null;
|
|
1156
|
-
function $o(e) {
|
|
1157
|
-
if (!_() || !F(qo)) return;
|
|
1158
|
-
if (F(Ei) != null) {
|
|
1159
|
-
Qo = {
|
|
1160
|
-
label: F(Ei),
|
|
1161
|
-
at: Date.now()
|
|
1162
|
-
}, p(Ei, null);
|
|
1163
|
-
return;
|
|
1164
|
-
}
|
|
1165
|
-
let t = new Set(F(Ti));
|
|
1166
|
-
t.has(e) ? t.delete(e) : t.add(e), p(Ti, t, !0);
|
|
1167
|
-
}
|
|
1168
|
-
function es(e) {
|
|
1169
|
-
if (!_() || !F(qo)) return;
|
|
1170
|
-
let t = Qo;
|
|
1171
|
-
Qo = null;
|
|
1172
|
-
let n = new Set(F(Ti));
|
|
1173
|
-
if (n.delete(e), t && t.label === e && Date.now() - t.at < 600) {
|
|
1174
|
-
p(Ti, n, !0);
|
|
1175
|
-
return;
|
|
1176
|
-
}
|
|
1177
|
-
p(Ti, n, !0), p(Ei, F(Ei) === e ? null : e, !0);
|
|
1178
|
-
}
|
|
1179
|
-
let ts = (e, t) => Number.isFinite(e) ? wi(t)(e) : "", ns = A(() => {
|
|
1180
|
-
if (F(B).type === "pie") {
|
|
1181
|
-
let e = F(qa) ? F(W).series[0] : F(ji)[0];
|
|
1182
|
-
return {
|
|
1183
|
-
cols: ["Category", "Value"],
|
|
1184
|
-
rows: F(Ja).map((t, n) => [t, ts(e?.values[n])])
|
|
1185
|
-
};
|
|
1186
|
-
}
|
|
1187
|
-
if (F(go)) {
|
|
1188
|
-
let e = [];
|
|
1189
|
-
for (let t of F(ji)) for (let n of t.points ?? []) e.push([
|
|
1190
|
-
t.label,
|
|
1191
|
-
V(n.x),
|
|
1192
|
-
V(n.y),
|
|
1193
|
-
n.r == null ? "" : V(n.r)
|
|
1194
|
-
]);
|
|
1195
|
-
return {
|
|
1196
|
-
cols: [
|
|
1197
|
-
"Series",
|
|
1198
|
-
"X",
|
|
1199
|
-
"Y",
|
|
1200
|
-
"Size"
|
|
1201
|
-
],
|
|
1202
|
-
rows: e
|
|
1203
|
-
};
|
|
1204
|
-
}
|
|
1205
|
-
if (F(po)) return {
|
|
1206
|
-
cols: [
|
|
1207
|
-
F(B).type === "chord" ? "Group" : "Category",
|
|
1208
|
-
"Series",
|
|
1209
|
-
"Value"
|
|
1210
|
-
],
|
|
1211
|
-
rows: F(G).arcs.map((e) => [
|
|
1212
|
-
e.nodePath ? e.nodePath.join(" / ") : e.label,
|
|
1213
|
-
e.series,
|
|
1214
|
-
V(e.value)
|
|
1215
|
-
])
|
|
1216
|
-
};
|
|
1217
|
-
if (F(mo)) return {
|
|
1218
|
-
cols: [
|
|
1219
|
-
"Category",
|
|
1220
|
-
"Value",
|
|
1221
|
-
"Target"
|
|
1222
|
-
],
|
|
1223
|
-
rows: F(G).bullets.map((e) => [
|
|
1224
|
-
e.label,
|
|
1225
|
-
V(e.value),
|
|
1226
|
-
e.target == null ? "" : V(e.target)
|
|
1227
|
-
])
|
|
1228
|
-
};
|
|
1229
|
-
if (F(Aa)) {
|
|
1230
|
-
let e = [];
|
|
1231
|
-
for (let t of F(ji)) (t.ohlc ?? []).forEach((n, r) => {
|
|
1232
|
-
n && e.push([
|
|
1233
|
-
F(B).categories[r] ?? String(r),
|
|
1234
|
-
t.label,
|
|
1235
|
-
V(n.o),
|
|
1236
|
-
V(n.h),
|
|
1237
|
-
V(n.l),
|
|
1238
|
-
V(n.c)
|
|
1239
|
-
]);
|
|
1240
|
-
});
|
|
1241
|
-
return {
|
|
1242
|
-
cols: [
|
|
1243
|
-
"Date",
|
|
1244
|
-
"Series",
|
|
1245
|
-
"Open",
|
|
1246
|
-
"High",
|
|
1247
|
-
"Low",
|
|
1248
|
-
"Close"
|
|
1249
|
-
],
|
|
1250
|
-
rows: e
|
|
1251
|
-
};
|
|
1252
|
-
}
|
|
1253
|
-
if (F(B).type === "waterfall") {
|
|
1254
|
-
let e = F(ji)[0];
|
|
1255
|
-
return {
|
|
1256
|
-
cols: ["Category", e?.label ?? "Value"],
|
|
1257
|
-
rows: F(B).categories.map((t, n) => {
|
|
1258
|
-
let r = F(G).bars.find((e) => e.index === n);
|
|
1259
|
-
return [t, r ? V(r.value) : ts(e?.values[n])];
|
|
1260
|
-
})
|
|
1261
|
-
};
|
|
1262
|
-
}
|
|
1263
|
-
return {
|
|
1264
|
-
cols: ["Category", ...F(ji).map((e) => e.label)],
|
|
1265
|
-
rows: F(B).categories.map((e, t) => [e, ...F(ji).map((e) => ts(e.values[t], e.label))])
|
|
1266
|
-
};
|
|
1267
|
-
}), rs = A(() => F(ns).rows.length > Oo), is = A(() => F(rs) ? F(ns).rows.slice(0, Oo) : F(ns).rows);
|
|
1268
|
-
function as(e, t = 12) {
|
|
1269
|
-
return e.length > t ? e.slice(0, t - 1) + "…" : e;
|
|
1270
|
-
}
|
|
1271
|
-
let os = (e, t) => f.formatValue ? f.formatValue(e) : t, ss = T(null);
|
|
1272
|
-
function cs(e) {
|
|
1273
|
-
if (!e) return !1;
|
|
1274
|
-
let t = 0, n = 0, r = 0, i = e.trim().startsWith("#") ? e.trim().slice(1) : "";
|
|
1275
|
-
if (i.length === 6) t = parseInt(i.slice(0, 2), 16), n = parseInt(i.slice(2, 4), 16), r = parseInt(i.slice(4, 6), 16);
|
|
1276
|
-
else {
|
|
1277
|
-
let i = /rgba?\(([^)]+)\)/.exec(e);
|
|
1278
|
-
if (!i) return !1;
|
|
1279
|
-
let a = i[1].split(",").map((e) => parseFloat(e));
|
|
1280
|
-
t = a[0] ?? 0, n = a[1] ?? 0, r = a[2] ?? 0;
|
|
1281
|
-
}
|
|
1282
|
-
return .299 * t + .587 * n + .114 * r < 128;
|
|
1283
|
-
}
|
|
1284
|
-
pe(() => {
|
|
1285
|
-
if (!F(ss) || typeof window > "u") return;
|
|
1286
|
-
let e = F(ss), t = () => {
|
|
1287
|
-
let t = getComputedStyle(e);
|
|
1288
|
-
p(Qa, cs(t.getPropertyValue("--sg-bg")), !0);
|
|
1289
|
-
let r = [];
|
|
1290
|
-
for (let e = 1; e <= 8; e += 1) {
|
|
1291
|
-
let i = t.getPropertyValue(`--sg-chart-${e}`).trim();
|
|
1292
|
-
r.push(i || n[e - 1]);
|
|
1293
|
-
}
|
|
1294
|
-
(!F(Di) || r.some((e, t) => e !== F(Di)[t])) && p(Di, r.some((e, t) => e !== n[t]) ? r : null, !0);
|
|
1295
|
-
};
|
|
1296
|
-
t();
|
|
1297
|
-
let r = new MutationObserver(t);
|
|
1298
|
-
return r.observe(document.documentElement, {
|
|
1299
|
-
attributes: !0,
|
|
1300
|
-
attributeFilter: [
|
|
1301
|
-
"data-theme",
|
|
1302
|
-
"class",
|
|
1303
|
-
"style"
|
|
1304
|
-
]
|
|
1305
|
-
}), () => r.disconnect();
|
|
1306
|
-
});
|
|
1307
|
-
let ls = T(null), us = T(null), ds = T(null);
|
|
1308
|
-
function Z(e, t, n, r, i) {
|
|
1309
|
-
if (!_() || !F(ss) || r.length === 0 || F(us) && F(ls)) return;
|
|
1310
|
-
let a = F(ss).getBoundingClientRect(), o = {
|
|
1311
|
-
category: n,
|
|
1312
|
-
index: -1,
|
|
1313
|
-
rows: r,
|
|
1314
|
-
...i
|
|
1315
|
-
}, s = f.tooltipFormat?.(o), c = Se() !== "follow", l, u;
|
|
1316
|
-
if (c && F(Xi)) {
|
|
1317
|
-
let e = F(Xi).getBoundingClientRect(), t = e.width / (F(G).width || 1), n = e.height / (F(G).height || 1), r = Se() === "top-right" || Se() === "bottom-right", i = Se() === "bottom-left" || Se() === "bottom-right";
|
|
1318
|
-
l = e.left - a.left + (r ? (F(G).plot.x + F(G).plot.w) * t - 8 : F(G).plot.x * t + 8), u = e.top - a.top + (i ? (F(G).plot.y + F(G).plot.h) * n - 8 : F(G).plot.y * n + 8);
|
|
1319
|
-
} else l = Math.max(70, Math.min(a.width - 70, e - a.left)), u = t - a.top;
|
|
1320
|
-
p(ls, {
|
|
1321
|
-
left: l,
|
|
1322
|
-
top: u,
|
|
1323
|
-
below: !c && u < 44,
|
|
1324
|
-
fixed: c,
|
|
1325
|
-
title: s?.title ?? n,
|
|
1326
|
-
rows: s?.rows ?? r,
|
|
1327
|
-
ctx: o
|
|
1328
|
-
}, !0), Io({
|
|
1329
|
-
category: o.category,
|
|
1330
|
-
index: o.index,
|
|
1331
|
-
series: o.series ?? null,
|
|
1332
|
-
value: o.value ?? null
|
|
1333
|
-
});
|
|
1334
|
-
}
|
|
1335
|
-
function fs(e, t) {
|
|
1336
|
-
let n = null, r = Infinity;
|
|
1337
|
-
for (let i of F(G).lines) {
|
|
1338
|
-
let a = i.points[e];
|
|
1339
|
-
if (!a?.defined) continue;
|
|
1340
|
-
let o = Math.abs(a.y - t);
|
|
1341
|
-
o < r && (r = o, n = i.label);
|
|
1342
|
-
}
|
|
1343
|
-
for (let i of F(G).bars) {
|
|
1344
|
-
if (i.label !== F(W).categories[e]) continue;
|
|
1345
|
-
let a = t < i.y ? i.y - t : t > i.y + i.h ? t - (i.y + i.h) : 0;
|
|
1346
|
-
a < r && (r = a, n = i.series);
|
|
1347
|
-
}
|
|
1348
|
-
for (let i of F(G).candles) {
|
|
1349
|
-
if (i.label !== F(W).categories[e]) continue;
|
|
1350
|
-
let a = t < i.yHigh ? i.yHigh - t : t > i.yLow ? t - i.yLow : 0;
|
|
1351
|
-
a < r && (r = a, n = i.series);
|
|
1352
|
-
}
|
|
1353
|
-
return n === null ? null : {
|
|
1354
|
-
label: n,
|
|
1355
|
-
distance: r
|
|
1356
|
-
};
|
|
1357
|
-
}
|
|
1358
|
-
function ps(t) {
|
|
1359
|
-
let n = [];
|
|
1360
|
-
if (F(B).type === "waterfall") {
|
|
1361
|
-
let e = F(G).bars.find((e) => e.index === t), r = F(W).series[0];
|
|
1362
|
-
return e && r && n.push({
|
|
1363
|
-
label: r.label,
|
|
1364
|
-
color: e.color,
|
|
1365
|
-
value: V(e.value)
|
|
1366
|
-
}), n;
|
|
1367
|
-
}
|
|
1368
|
-
for (let e of F(W).series) {
|
|
1369
|
-
let r = e.color, i = e.ohlc?.[t];
|
|
1370
|
-
if (i) {
|
|
1371
|
-
n.push({
|
|
1372
|
-
label: `${e.label} O`,
|
|
1373
|
-
color: r,
|
|
1374
|
-
value: V(i.o)
|
|
1375
|
-
}), n.push({
|
|
1376
|
-
label: `${e.label} H`,
|
|
1377
|
-
value: V(i.h)
|
|
1378
|
-
}), n.push({
|
|
1379
|
-
label: `${e.label} L`,
|
|
1380
|
-
value: V(i.l)
|
|
1381
|
-
}), n.push({
|
|
1382
|
-
label: `${e.label} C`,
|
|
1383
|
-
value: V(i.c)
|
|
1384
|
-
});
|
|
1385
|
-
continue;
|
|
1386
|
-
}
|
|
1387
|
-
let a = e.boxes?.[t];
|
|
1388
|
-
if (a) {
|
|
1389
|
-
n.push({
|
|
1390
|
-
label: `${e.label} max`,
|
|
1391
|
-
color: r,
|
|
1392
|
-
value: V(a.max)
|
|
1393
|
-
}), n.push({
|
|
1394
|
-
label: `${e.label} Q3`,
|
|
1395
|
-
value: V(a.q3)
|
|
1396
|
-
}), n.push({
|
|
1397
|
-
label: `${e.label} median`,
|
|
1398
|
-
value: V(a.median)
|
|
1399
|
-
}), n.push({
|
|
1400
|
-
label: `${e.label} Q1`,
|
|
1401
|
-
value: V(a.q1)
|
|
1402
|
-
}), n.push({
|
|
1403
|
-
label: `${e.label} min`,
|
|
1404
|
-
value: V(a.min)
|
|
1405
|
-
}), a.outliers?.length && n.push({
|
|
1406
|
-
label: `${e.label} outliers`,
|
|
1407
|
-
value: String(a.outliers.length)
|
|
1408
|
-
});
|
|
1409
|
-
continue;
|
|
1410
|
-
}
|
|
1411
|
-
let o = e.values[t], s = wi(e.label), c = e.lowValues?.[t];
|
|
1412
|
-
if (Number.isFinite(o) && Number.isFinite(c)) {
|
|
1413
|
-
n.push({
|
|
1414
|
-
label: e.label,
|
|
1415
|
-
color: r,
|
|
1416
|
-
value: `${s(c)} to ${s(o)}`
|
|
1417
|
-
});
|
|
1418
|
-
continue;
|
|
1419
|
-
}
|
|
1420
|
-
let l = e.targets?.[t];
|
|
1421
|
-
if (Number.isFinite(o) && Number.isFinite(l)) {
|
|
1422
|
-
n.push({
|
|
1423
|
-
label: e.label,
|
|
1424
|
-
color: r,
|
|
1425
|
-
value: s(o)
|
|
1426
|
-
}), n.push({
|
|
1427
|
-
label: `${e.label} target`,
|
|
1428
|
-
value: s(l)
|
|
1429
|
-
});
|
|
1430
|
-
continue;
|
|
1431
|
-
}
|
|
1432
|
-
if (Number.isFinite(o)) {
|
|
1433
|
-
n.push({
|
|
1434
|
-
label: e.label,
|
|
1435
|
-
color: r,
|
|
1436
|
-
value: s(o)
|
|
1437
|
-
});
|
|
1438
|
-
let i = e.errors?.[t];
|
|
1439
|
-
if (i != null) {
|
|
1440
|
-
let t = typeof i == "number" ? o - Math.abs(i) : Math.min(i.lo, i.hi), r = typeof i == "number" ? o + Math.abs(i) : Math.max(i.lo, i.hi);
|
|
1441
|
-
Number.isFinite(t) && Number.isFinite(r) && n.push({
|
|
1442
|
-
label: `${e.label} range`,
|
|
1443
|
-
value: `${s(t)} - ${s(r)}`
|
|
1444
|
-
});
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1447
|
-
}
|
|
1448
|
-
for (let r of F(G).overlays) {
|
|
1449
|
-
let i = r.points[t];
|
|
1450
|
-
if (!i?.defined) continue;
|
|
1451
|
-
let a = F(W).series.find((e) => e.overlay && r.label === `${e.label} (${e.overlay})`);
|
|
1452
|
-
if (!a?.overlay) continue;
|
|
1453
|
-
let o = r.r2 === void 0 ? "" : ` (${tt(F(z).rSquared, { value: r.r2.toFixed(2) })})`;
|
|
1454
|
-
n.push({
|
|
1455
|
-
label: `${a.label} ${e(a.overlay)}`,
|
|
1456
|
-
color: r.color,
|
|
1457
|
-
value: `${wi(a.label)(i.value)}${o}`
|
|
1458
|
-
});
|
|
1459
|
-
}
|
|
1460
|
-
return n;
|
|
1461
|
-
}
|
|
1462
|
-
let ms = T(null);
|
|
1463
|
-
function hs(e) {
|
|
1464
|
-
let t = F(G).axes?.y, n = t ? Math.abs(t.max - t.min) : 100, r = n >= 100 ? 0 : n >= 10 ? 1 : n >= 1 ? 2 : 3, i = Number(e.toFixed(r)), a = F(B).yAxis;
|
|
1465
|
-
return a?.formatter ? a.formatter(i, -1) : a?.format ? d(i, a.format, F(B)) : os(i, V(i));
|
|
1466
|
-
}
|
|
1467
|
-
let gs = A(() => F(B).xType === "time" || F(B).xType === "ordinal-time" || F(B).xAxis?.type === "time" || F(B).xAxis?.type === "ordinal-time"), _s = A(() => F(gs) ? t(F(W).categories.map((e) => Date.parse(e))) : "day"), vs = (e) => {
|
|
1468
|
-
let t = Date.parse(e);
|
|
1469
|
-
return Number.isFinite(t) ? r(t) : e;
|
|
1470
|
-
};
|
|
1471
|
-
function ys(e) {
|
|
1472
|
-
let t = F(W).categories[e] ?? "";
|
|
1473
|
-
if (!F(gs)) return t;
|
|
1474
|
-
let n = Date.parse(t);
|
|
1475
|
-
return Number.isFinite(n) ? F(B).xAxis?.formatter ? F(B).xAxis.formatter(n, e) : r(n, F(_s)) : t;
|
|
1476
|
-
}
|
|
1477
|
-
function bs(e, t, n, r) {
|
|
1478
|
-
p(ds, n, !0);
|
|
1479
|
-
let i = ea({
|
|
1480
|
-
clientX: e,
|
|
1481
|
-
clientY: t
|
|
1482
|
-
})?.y;
|
|
1483
|
-
p(ms, i != null && Number.isFinite(i) && i >= F(G).plot.y && i <= F(G).plot.y + F(G).plot.h ? i : null, !0);
|
|
1484
|
-
let a = F(W).categories[n] ?? "", o = ps(n), s, c, l = F(X) && F(W).series.some((e) => e.label === F(X)) ? F(X) : null;
|
|
1485
|
-
if (l) s = l, c = F(W).series.find((e) => e.label === l)?.values[n], o = o.filter((e) => e.label === l || e.label?.startsWith(l + " "));
|
|
1486
|
-
else {
|
|
1487
|
-
let i = r ? ko(e, t, r) : ea({
|
|
1488
|
-
clientX: e,
|
|
1489
|
-
clientY: t
|
|
1490
|
-
}), a = i && Number.isFinite(i.y) ? fs(n, i.y) : null;
|
|
1491
|
-
p(No, a && a.distance <= 18 ? a.label : null, !0), v() === "single" && a && r && (s = a.label, c = F(W).series.find((e) => e.label === a.label)?.values[n], o = o.filter((e) => e.label === a.label || e.label?.startsWith(a.label + " ")));
|
|
1492
|
-
}
|
|
1493
|
-
if (Z(e, t, ys(n), o, {
|
|
1494
|
-
category: a,
|
|
1495
|
-
index: n,
|
|
1496
|
-
series: s,
|
|
1497
|
-
value: c
|
|
1498
|
-
}), f.syncGroup && !F(Vi)) {
|
|
1499
|
-
let e = Date.parse(a);
|
|
1500
|
-
Me(f.syncGroup, {
|
|
1501
|
-
label: a,
|
|
1502
|
-
index: (I() ? I().i0 : 0) + n,
|
|
1503
|
-
time: Number.isFinite(e) ? e : null,
|
|
1504
|
-
from: Ri
|
|
1505
|
-
});
|
|
1506
|
-
}
|
|
1507
|
-
}
|
|
1508
|
-
function xs(e, t) {
|
|
1509
|
-
let n = e.getBoundingClientRect();
|
|
1510
|
-
if (bs(n.left + n.width / 2, n.top + 12, t), !ze()) return;
|
|
1511
|
-
let r = ys(t);
|
|
1512
|
-
if (F(X)) {
|
|
1513
|
-
let e = F(W).series.find((e) => e.label === F(X))?.values[t];
|
|
1514
|
-
p(Vo, tt(F(z).seriesAtCategory, {
|
|
1515
|
-
series: F(X),
|
|
1516
|
-
value: Number.isFinite(e) ? wi(F(X))(e) : F(z).noValue,
|
|
1517
|
-
category: r
|
|
1518
|
-
}), !0);
|
|
1519
|
-
} else p(Vo, `${r}: ${ps(t).map((e) => `${e.label ?? ""} ${e.value}`).join(", ")}`);
|
|
1520
|
-
}
|
|
1521
|
-
function Q() {
|
|
1522
|
-
F(us) || (p(ds, null), p(ms, null), p(No, null), p(ls, null), Io(null), f.syncGroup && !F(Vi) && F(Bi)?.hover?.from === Ri && Me(f.syncGroup, null));
|
|
1523
|
-
}
|
|
1524
|
-
pe(() => {
|
|
1525
|
-
if (!F(Bi)) return;
|
|
1526
|
-
let e = F(Bi).hover;
|
|
1527
|
-
fe(() => {
|
|
1528
|
-
if (!e) {
|
|
1529
|
-
F(Vi) && (p(Vi, !1), p(ds, null), p(ls, null));
|
|
1530
|
-
return;
|
|
1531
|
-
}
|
|
1532
|
-
if (e.from === Ri) return;
|
|
1533
|
-
let t = F(W).categories.indexOf(e.label);
|
|
1534
|
-
if (t < 0 && e.time != null && (t = ke(F(W).categories, e.time)), t < 0 || !F(Xi) || !F(uo)) return;
|
|
1535
|
-
p(Vi, !0);
|
|
1536
|
-
let n = F(Xi).getBoundingClientRect(), r = n.width / F(G).width, i = n.height / F(G).height, a = F(uo).xOf(t);
|
|
1537
|
-
bs(n.left + a * r, n.top + (F(G).plot.y + 12) * i, t), p(Vi, !0);
|
|
1538
|
-
});
|
|
1539
|
-
}), pe(() => {
|
|
1540
|
-
if (!F(Bi)) return;
|
|
1541
|
-
let e = F(Bi).zoom;
|
|
1542
|
-
fe(() => {
|
|
1543
|
-
if (!e || e.from === Ri) return;
|
|
1544
|
-
let t = F(B).categories.length, n = e.window;
|
|
1545
|
-
if (n && e.count !== t) {
|
|
1546
|
-
if (!e.labels) return;
|
|
1547
|
-
let r = ke(F(B).categories, Date.parse(e.labels[0])), i = ke(F(B).categories, Date.parse(e.labels[1]));
|
|
1548
|
-
if (r < 0 || i < 0) return;
|
|
1549
|
-
n = r === 0 && i === t - 1 ? null : {
|
|
1550
|
-
i0: Math.min(r, i),
|
|
1551
|
-
i1: Math.max(r, i)
|
|
1552
|
-
};
|
|
1553
|
-
}
|
|
1554
|
-
zi = !0;
|
|
1555
|
-
try {
|
|
1556
|
-
Li(n);
|
|
1557
|
-
} finally {
|
|
1558
|
-
zi = !1;
|
|
1559
|
-
}
|
|
1560
|
-
});
|
|
1561
|
-
});
|
|
1562
|
-
function Ss(e, t, n, r, i) {
|
|
1563
|
-
Z(e, t, n, [{ value: `${V(r)} · ${i.toFixed(1)}%` }], {
|
|
1564
|
-
series: n,
|
|
1565
|
-
value: r
|
|
1566
|
-
});
|
|
1567
|
-
}
|
|
1568
|
-
function Cs(t, n, r) {
|
|
1569
|
-
p(No, r.series, !0);
|
|
1570
|
-
let i = [{
|
|
1571
|
-
label: "x",
|
|
1572
|
-
value: V(r.x)
|
|
1573
|
-
}, {
|
|
1574
|
-
label: "y",
|
|
1575
|
-
value: V(r.y)
|
|
1576
|
-
}], a = F(W).series.find((e) => e.label === r.series && e.overlay), o = a?.overlay ? F(G).overlays.find((e) => e.label === `${a.label} (${a.overlay})`) : void 0;
|
|
1577
|
-
if (a?.overlay && o) {
|
|
1578
|
-
let t = o.r2 === void 0 ? "" : ` (${tt(F(z).rSquared, { value: o.r2.toFixed(2) })})`;
|
|
1579
|
-
i.push({
|
|
1580
|
-
label: e(a.overlay),
|
|
1581
|
-
color: o.color,
|
|
1582
|
-
value: `${o.equation ?? ""}${t}`
|
|
1583
|
-
});
|
|
1584
|
-
}
|
|
1585
|
-
Z(t, n, r.label || r.series, i, {
|
|
1586
|
-
series: r.series,
|
|
1587
|
-
value: r.y
|
|
1588
|
-
});
|
|
1589
|
-
}
|
|
1590
|
-
function ws(e, t, n) {
|
|
1591
|
-
Z(e, t, `${n.rowLabel} · ${n.colLabel}`, [{
|
|
1592
|
-
color: n.color,
|
|
1593
|
-
value: V(n.value)
|
|
1594
|
-
}]);
|
|
1595
|
-
}
|
|
1596
|
-
function Ts(e, t, n) {
|
|
1597
|
-
let r = [{ value: V(n.value) }, {
|
|
1598
|
-
label: "conversion",
|
|
1599
|
-
value: `${(n.conversion * 100).toFixed(1)}%`
|
|
1600
|
-
}];
|
|
1601
|
-
n.dropoff > 0 && r.push({
|
|
1602
|
-
label: "drop-off",
|
|
1603
|
-
value: `${(n.dropoff * 100).toFixed(1)}%`
|
|
1604
|
-
}), Z(e, t, n.label, r, { value: n.value });
|
|
1605
|
-
}
|
|
1606
|
-
function Es(e, t, n) {
|
|
1607
|
-
p(No, F(ho) || F(B).type === "sunburst" || F(B).type === "chord" ? n.label : n.series, !0), Z(e, t, n.series ? `${n.label} \u00b7 ${n.series}` : n.label, [{
|
|
1608
|
-
color: n.color,
|
|
1609
|
-
value: V(n.value)
|
|
1610
|
-
}], {
|
|
1611
|
-
category: n.label,
|
|
1612
|
-
series: n.series || void 0,
|
|
1613
|
-
value: n.value
|
|
1614
|
-
});
|
|
1615
|
-
}
|
|
1616
|
-
function Ds(e, t, n) {
|
|
1617
|
-
Z(e, t, `${n.source} \u2192 ${n.target}`, [{
|
|
1618
|
-
color: n.color,
|
|
1619
|
-
value: V(n.value)
|
|
1620
|
-
}], {
|
|
1621
|
-
category: n.source,
|
|
1622
|
-
series: n.target,
|
|
1623
|
-
value: n.value
|
|
1624
|
-
});
|
|
1625
|
-
}
|
|
1626
|
-
function Os(e, t, n) {
|
|
1627
|
-
p(No, n.series, !0);
|
|
1628
|
-
let r = [{
|
|
1629
|
-
color: n.color,
|
|
1630
|
-
label: n.series,
|
|
1631
|
-
value: V(n.value)
|
|
1632
|
-
}];
|
|
1633
|
-
n.target != null && r.push({
|
|
1634
|
-
label: "target",
|
|
1635
|
-
value: V(n.target)
|
|
1636
|
-
}), Z(e, t, n.label, r, {
|
|
1637
|
-
category: n.label,
|
|
1638
|
-
series: n.series,
|
|
1639
|
-
value: n.value
|
|
1640
|
-
});
|
|
1641
|
-
}
|
|
1642
|
-
function ks(e, t, n) {
|
|
1643
|
-
p(No, n.series, !0);
|
|
1644
|
-
let r = [{
|
|
1645
|
-
color: n.color,
|
|
1646
|
-
label: n.series,
|
|
1647
|
-
value: n.dumbbell && n.value2 != null ? `${V(n.value2)} to ${V(n.value)}` : V(n.value)
|
|
1648
|
-
}];
|
|
1649
|
-
Z(e, t, n.label, r, {
|
|
1650
|
-
category: n.label,
|
|
1651
|
-
series: n.series,
|
|
1652
|
-
value: n.value
|
|
1653
|
-
});
|
|
1654
|
-
}
|
|
1655
|
-
function As(e, t, n, r, i, a) {
|
|
1656
|
-
p(No, n, !0), Z(e, t, `${n} · ${r}`, [{
|
|
1657
|
-
color: a,
|
|
1658
|
-
value: V(i)
|
|
1659
|
-
}], {
|
|
1660
|
-
category: r,
|
|
1661
|
-
series: n,
|
|
1662
|
-
value: i
|
|
1663
|
-
});
|
|
1664
|
-
}
|
|
1665
|
-
function js(e, t) {
|
|
1666
|
-
if (F(la)) return;
|
|
1667
|
-
Ce() && "clientX" in e && !F(xi) && (F(us) && F(us).index === t ? Da() : (p(us, null), bs(e.clientX, e.clientY, t, e.currentTarget), Oa(t)));
|
|
1668
|
-
let n = F(W).categories[t] ?? "";
|
|
1669
|
-
if (!F(Y)) {
|
|
1670
|
-
Ms(n, "", 0, t, e);
|
|
1671
|
-
return;
|
|
1672
|
-
}
|
|
1673
|
-
let r = "clientX" in e ? ea(e) : null, i = r ? fs(t, r.y) : null, a = F(X) ?? i?.label ?? (F(W).series.length === 1 ? F(W).series[0].label : "");
|
|
1674
|
-
Ms(n, a, F(W).series.find((e) => e.label === a)?.values[t] ?? 0, t, e);
|
|
1675
|
-
}
|
|
1676
|
-
function Ms(e, t, n, r, i) {
|
|
1677
|
-
if (Bo(e, t, i, r), F(xi) && f.onAnnotate && r !== void 0) {
|
|
1678
|
-
let i = t ? n : F(W).series[0]?.values[r];
|
|
1679
|
-
f.onAnnotate({
|
|
1680
|
-
category: e,
|
|
1681
|
-
index: r,
|
|
1682
|
-
value: Number.isFinite(i) ? i : 0
|
|
1683
|
-
});
|
|
1684
|
-
return;
|
|
1685
|
-
}
|
|
1686
|
-
let a;
|
|
1687
|
-
if (r !== void 0) {
|
|
1688
|
-
let e = [];
|
|
1689
|
-
for (let n of F(W).series) {
|
|
1690
|
-
if (!n.rowIds || t && n.label !== t) continue;
|
|
1691
|
-
let i = n.rowIds[r];
|
|
1692
|
-
i?.length && e.push(i);
|
|
1693
|
-
}
|
|
1694
|
-
e.length && (a = e.flat());
|
|
1695
|
-
}
|
|
1696
|
-
let o = {
|
|
1697
|
-
category: e,
|
|
1698
|
-
series: t,
|
|
1699
|
-
value: n,
|
|
1700
|
-
rowIds: a
|
|
1701
|
-
};
|
|
1702
|
-
f.onSelect?.(o), a && a.length && f.onDrill?.(o);
|
|
1703
|
-
}
|
|
1704
|
-
function Ns(e, t) {
|
|
1705
|
-
let n = e.ownerSVGElement ?? e.closest("svg");
|
|
1706
|
-
if (!n) return;
|
|
1707
|
-
let r = n.querySelector(`[data-cat-index="${t}"]`);
|
|
1708
|
-
r && (r.focus?.(), xs(r, t));
|
|
1709
|
-
}
|
|
1710
|
-
function Ps(e, t) {
|
|
1711
|
-
if (qs(e, t)) return;
|
|
1712
|
-
let n = F(W).categories.length - 1, r = e.currentTarget;
|
|
1713
|
-
if (Bs(e, t)) return;
|
|
1714
|
-
let i = F(q) ? "ArrowDown" : "ArrowRight", a = F(q) ? "ArrowUp" : "ArrowLeft", o = F(q) ? "ArrowRight" : "ArrowUp", s = F(q) ? "ArrowLeft" : "ArrowDown";
|
|
1715
|
-
switch (e.key) {
|
|
1716
|
-
case i:
|
|
1717
|
-
e.preventDefault(), Ns(r, Math.min(n, t + 1));
|
|
1718
|
-
return;
|
|
1719
|
-
case a:
|
|
1720
|
-
e.preventDefault(), Ns(r, Math.max(0, t - 1));
|
|
1721
|
-
return;
|
|
1722
|
-
case o:
|
|
1723
|
-
case s: {
|
|
1724
|
-
e.preventDefault();
|
|
1725
|
-
let n = F(W).series.map((e) => e.label);
|
|
1726
|
-
if (!n.length) return;
|
|
1727
|
-
let i = (F(X) ? n.indexOf(F(X)) : -1) + (e.key === s ? 1 : -1);
|
|
1728
|
-
p(X, i < 0 || i >= n.length ? null : n[i], !0), p(Oi, F(X), !0), xs(r, t);
|
|
1729
|
-
return;
|
|
1730
|
-
}
|
|
1731
|
-
case "Home":
|
|
1732
|
-
e.preventDefault(), Ns(r, 0);
|
|
1733
|
-
return;
|
|
1734
|
-
case "End":
|
|
1735
|
-
e.preventDefault(), Ns(r, n);
|
|
1736
|
-
return;
|
|
1737
|
-
case "PageDown":
|
|
1738
|
-
e.preventDefault(), Ns(r, Math.min(n, t + Math.max(1, Math.floor(n / 10))));
|
|
1739
|
-
return;
|
|
1740
|
-
case "PageUp":
|
|
1741
|
-
e.preventDefault(), Ns(r, Math.max(0, t - Math.max(1, Math.floor(n / 10))));
|
|
1742
|
-
return;
|
|
1743
|
-
case "Enter":
|
|
1744
|
-
case " ":
|
|
1745
|
-
if (!f.onSelect && !F(Y)) return;
|
|
1746
|
-
e.preventDefault(), js(e, t);
|
|
1747
|
-
return;
|
|
1748
|
-
case "Escape":
|
|
1749
|
-
F(X) && (p(X, null), p(Oi, null), xs(r, t));
|
|
1750
|
-
return;
|
|
1751
|
-
}
|
|
1752
|
-
}
|
|
1753
|
-
let Fs = T(de({
|
|
1754
|
-
sel: "",
|
|
1755
|
-
i: 0
|
|
1756
|
-
})), Is = (e, t) => _() ? (F(Fs).sel === e ? F(Fs).i : 0) === t ? 0 : -1 : void 0;
|
|
1757
|
-
function Ls(e, t) {
|
|
1758
|
-
(F(Fs).sel !== e || F(Fs).i !== t) && p(Fs, {
|
|
1759
|
-
sel: e,
|
|
1760
|
-
i: t
|
|
1761
|
-
}, !0);
|
|
1762
|
-
}
|
|
1763
|
-
function Rs(e, t, n, r, i) {
|
|
1764
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
1765
|
-
r && (e.preventDefault(), r());
|
|
1766
|
-
return;
|
|
1767
|
-
}
|
|
1768
|
-
let a = e.currentTarget, o = a.ownerSVGElement ?? a.closest("svg");
|
|
1769
|
-
if (!o) return;
|
|
1770
|
-
let s = o.querySelectorAll(t), c = s.length;
|
|
1771
|
-
if (!c) return;
|
|
1772
|
-
let l = i && i.colMajor ? i.cols : 1, u = i ? i.colMajor ? 1 : i.cols : 1, d;
|
|
1773
|
-
switch (e.key) {
|
|
1774
|
-
case "ArrowRight":
|
|
1775
|
-
d = n + l;
|
|
1776
|
-
break;
|
|
1777
|
-
case "ArrowLeft":
|
|
1778
|
-
d = n - l;
|
|
1779
|
-
break;
|
|
1780
|
-
case "ArrowDown":
|
|
1781
|
-
d = n + u;
|
|
1782
|
-
break;
|
|
1783
|
-
case "ArrowUp":
|
|
1784
|
-
d = n - u;
|
|
1785
|
-
break;
|
|
1786
|
-
case "Home":
|
|
1787
|
-
d = 0;
|
|
1788
|
-
break;
|
|
1789
|
-
case "End":
|
|
1790
|
-
d = c - 1;
|
|
1791
|
-
break;
|
|
1792
|
-
case "PageDown":
|
|
1793
|
-
d = n + Math.max(1, Math.floor(c / 10));
|
|
1794
|
-
break;
|
|
1795
|
-
case "PageUp":
|
|
1796
|
-
d = n - Math.max(1, Math.floor(c / 10));
|
|
1797
|
-
break;
|
|
1798
|
-
default: return;
|
|
1799
|
-
}
|
|
1800
|
-
e.preventDefault(), d = Math.max(0, Math.min(c - 1, d)), d !== n && (p(Fs, {
|
|
1801
|
-
sel: t,
|
|
1802
|
-
i: d
|
|
1803
|
-
}, !0), s[d].focus?.());
|
|
1804
|
-
}
|
|
1805
|
-
let zs = (e) => {
|
|
1806
|
-
let t = e.getBoundingClientRect();
|
|
1807
|
-
return {
|
|
1808
|
-
x: t.left + t.width / 2,
|
|
1809
|
-
y: t.top
|
|
1810
|
-
};
|
|
1811
|
-
};
|
|
1812
|
-
function Bs(e, t) {
|
|
1813
|
-
if (!F(vi) || !F(K)) return !1;
|
|
1814
|
-
let n = F(B).categories.length, r = (I()?.i0 ?? 0) + t, i, a = F(q) ? "ArrowDown" : "ArrowRight", o = F(q) ? "ArrowUp" : "ArrowLeft";
|
|
1815
|
-
if (e.key === "+" || e.key === "=") i = Te(I(), n, r, .8);
|
|
1816
|
-
else if (e.key === "-" || e.key === "_") i = Te(I(), n, r, 1.25);
|
|
1817
|
-
else if (e.key === "0") i = null;
|
|
1818
|
-
else if (e.shiftKey && I() && (e.key === a || e.key === o)) {
|
|
1819
|
-
let t = I().i1 - I().i0 + 1;
|
|
1820
|
-
i = Ee(I(), n, (e.key === a ? 1 : -1) * Math.max(1, Math.floor(t / 10)));
|
|
1821
|
-
}
|
|
1822
|
-
if (i === void 0) return !1;
|
|
1823
|
-
e.preventDefault(), Li(i);
|
|
1824
|
-
let s = Math.max(0, Math.min(i ? i.i1 - i.i0 : n - 1, r - (i?.i0 ?? 0)));
|
|
1825
|
-
return ae().then(() => {
|
|
1826
|
-
let e = F(Xi)?.querySelector(F(To) ? "[data-dense=\"true\"]" : `[data-cat-index="${s}"]`);
|
|
1827
|
-
e && (e.focus?.(), F(To) && p(jo, s, !0), xs(e, s));
|
|
1828
|
-
}), !0;
|
|
1829
|
-
}
|
|
1830
|
-
function Vs(e) {
|
|
1831
|
-
let t = F(B).categories.length;
|
|
1832
|
-
if (!t) return;
|
|
1833
|
-
let n = I() ?? {
|
|
1834
|
-
i0: 0,
|
|
1835
|
-
i1: t - 1
|
|
1836
|
-
}, r = n.i1 - n.i0 + 1, i = (n.i0 + n.i1) / 2, a = e.shiftKey ? r : Math.max(1, Math.floor(r / 10)), o;
|
|
1837
|
-
switch (e.key) {
|
|
1838
|
-
case "ArrowRight":
|
|
1839
|
-
o = Ee(I(), t, a);
|
|
1840
|
-
break;
|
|
1841
|
-
case "ArrowLeft":
|
|
1842
|
-
o = Ee(I(), t, -a);
|
|
1843
|
-
break;
|
|
1844
|
-
case "ArrowUp":
|
|
1845
|
-
case "+":
|
|
1846
|
-
case "=":
|
|
1847
|
-
o = Te(I(), t, i, .8);
|
|
1848
|
-
break;
|
|
1849
|
-
case "ArrowDown":
|
|
1850
|
-
case "-":
|
|
1851
|
-
case "_":
|
|
1852
|
-
o = Te(I(), t, i, 1.25);
|
|
1853
|
-
break;
|
|
1854
|
-
case "Home":
|
|
1855
|
-
o = I() ? {
|
|
1856
|
-
...I(),
|
|
1857
|
-
i0: 0,
|
|
1858
|
-
i1: r - 1
|
|
1859
|
-
} : null;
|
|
1860
|
-
break;
|
|
1861
|
-
case "End":
|
|
1862
|
-
o = I() ? {
|
|
1863
|
-
...I(),
|
|
1864
|
-
i0: t - r,
|
|
1865
|
-
i1: t - 1
|
|
1866
|
-
} : null;
|
|
1867
|
-
break;
|
|
1868
|
-
case "0":
|
|
1869
|
-
case "Escape":
|
|
1870
|
-
o = null;
|
|
1871
|
-
break;
|
|
1872
|
-
default: return;
|
|
1873
|
-
}
|
|
1874
|
-
e.preventDefault(), Li(o);
|
|
1875
|
-
}
|
|
1876
|
-
let Hs = T("idle"), Us = T(null), Ws = T(null);
|
|
1877
|
-
function Gs(e) {
|
|
1878
|
-
if (!L()) return;
|
|
1879
|
-
e.preventDefault();
|
|
1880
|
-
let t = F(K) && !F(go) ? Ao(e.clientX, e.currentTarget) : null;
|
|
1881
|
-
Ks(e.clientX, e.clientY, t);
|
|
1882
|
-
}
|
|
1883
|
-
function Ks(e, t, n) {
|
|
1884
|
-
let r = n == null ? {} : {
|
|
1885
|
-
category: F(W).categories[n],
|
|
1886
|
-
index: (I() ? I().i0 : 0) + n,
|
|
1887
|
-
...F(X) ? {
|
|
1888
|
-
series: F(X),
|
|
1889
|
-
value: F(W).series.find((e) => e.label === F(X))?.values[n]
|
|
1890
|
-
} : {}
|
|
1891
|
-
}, i = () => p(Us, {
|
|
1892
|
-
x: e,
|
|
1893
|
-
y: t,
|
|
1894
|
-
target: r
|
|
1895
|
-
}, !0);
|
|
1896
|
-
F(Ws) ? i() : import("./SvChartMenu-CgAcTloT.js").then((e) => {
|
|
1897
|
-
p(Ws, e.default, !0), i();
|
|
1898
|
-
});
|
|
1899
|
-
}
|
|
1900
|
-
function qs(e, t) {
|
|
1901
|
-
if (!L() || !(e.key === "ContextMenu" || e.key === "F10" && e.shiftKey)) return !1;
|
|
1902
|
-
e.preventDefault();
|
|
1903
|
-
let n = e.currentTarget.getBoundingClientRect();
|
|
1904
|
-
return Ks(n.left + n.width / 2, n.top + Math.min(n.height / 2, 24), t), !0;
|
|
1905
|
-
}
|
|
1906
|
-
let Js = A(() => {
|
|
1907
|
-
if (!F(Us)) return [];
|
|
1908
|
-
let e = [
|
|
1909
|
-
{
|
|
1910
|
-
label: F(z).downloadPng,
|
|
1911
|
-
onSelect: () => {
|
|
1912
|
-
Qs("png");
|
|
1913
|
-
}
|
|
1914
|
-
},
|
|
1915
|
-
{
|
|
1916
|
-
label: F(z).downloadSvg,
|
|
1917
|
-
onSelect: () => {
|
|
1918
|
-
Qs("svg");
|
|
1919
|
-
}
|
|
1920
|
-
},
|
|
1921
|
-
{
|
|
1922
|
-
label: F(z).downloadPdf,
|
|
1923
|
-
onSelect: () => {
|
|
1924
|
-
$s();
|
|
1925
|
-
}
|
|
1926
|
-
},
|
|
1927
|
-
...Ze(F(B)) ? [{
|
|
1928
|
-
label: F(z).downloadCsv,
|
|
1929
|
-
onSelect: () => {
|
|
1930
|
-
Qe(F(B));
|
|
1931
|
-
}
|
|
1932
|
-
}] : [],
|
|
1933
|
-
{
|
|
1934
|
-
label: F(z).copyAsImage,
|
|
1935
|
-
onSelect: () => {
|
|
1936
|
-
tc();
|
|
1937
|
-
}
|
|
1938
|
-
},
|
|
1939
|
-
{
|
|
1940
|
-
label: F(z).print,
|
|
1941
|
-
onSelect: () => {
|
|
1942
|
-
ec();
|
|
1943
|
-
}
|
|
1944
|
-
},
|
|
1945
|
-
...Be() && F(Ye) ? [{
|
|
1946
|
-
label: F(z).describeChart,
|
|
1947
|
-
onSelect: () => {
|
|
1948
|
-
Xe();
|
|
1949
|
-
}
|
|
1950
|
-
}] : []
|
|
1951
|
-
];
|
|
1952
|
-
we() && F(Ii) && e.push({ separator: !0 }, {
|
|
1953
|
-
label: F(z).resetZoom,
|
|
1954
|
-
onSelect: Ui
|
|
1955
|
-
}), F(Wo) && e.push({ separator: !0 }, {
|
|
1956
|
-
label: F(z).range,
|
|
1957
|
-
children: F(Uo).map((e) => ({
|
|
1958
|
-
label: Go(e),
|
|
1959
|
-
onSelect: () => Ko(e)
|
|
1960
|
-
}))
|
|
1961
|
-
}), F(qo) && F(Ho).length > 1 && e.push({ separator: !0 }, {
|
|
1962
|
-
label: F(z).series,
|
|
1963
|
-
children: F(Ho).map((e) => ({
|
|
1964
|
-
label: `${e.off ? " " : "✓"} ${e.label}`,
|
|
1965
|
-
onSelect: () => $o(e.label)
|
|
1966
|
-
}))
|
|
1967
|
-
});
|
|
1968
|
-
let t = typeof L() == "function" ? L()(F(Us).target) : Array.isArray(L()) ? L() : [];
|
|
1969
|
-
return t.length && e.push({ separator: !0 }, ...t), e;
|
|
1970
|
-
});
|
|
1971
|
-
function Ys() {
|
|
1972
|
-
if (!F(Xi)) return null;
|
|
1973
|
-
let e = F(Xi).cloneNode(!0);
|
|
1974
|
-
e.setAttribute("xmlns", "http://www.w3.org/2000/svg"), e.removeAttribute("class");
|
|
1975
|
-
let t = F(Xi).getBoundingClientRect();
|
|
1976
|
-
t.width && e.setAttribute("width", String(Math.round(t.width))), t.height && e.setAttribute("height", String(Math.round(t.height)));
|
|
1977
|
-
let n = document.createElement("style"), r = Array.from(document.styleSheets), i = [];
|
|
1978
|
-
for (let e of r) try {
|
|
1979
|
-
for (let t of Array.from(e.cssRules ?? [])) {
|
|
1980
|
-
let e = t.cssText;
|
|
1981
|
-
e.includes(".sv-grid-chart") && i.push(e);
|
|
1982
|
-
}
|
|
1983
|
-
} catch {}
|
|
1984
|
-
if (n.textContent = i.join("\n"), e.insertBefore(n, e.firstChild), F(ss) && typeof getComputedStyle == "function") {
|
|
1985
|
-
let t = getComputedStyle(F(ss)), n = [
|
|
1986
|
-
"--sg-bg",
|
|
1987
|
-
"--sg-fg",
|
|
1988
|
-
"--sg-muted",
|
|
1989
|
-
"--sg-border",
|
|
1990
|
-
"--sg-accent",
|
|
1991
|
-
"--sg-chart-bg",
|
|
1992
|
-
"--sg-chart-font-scale"
|
|
1993
|
-
].map((e) => {
|
|
1994
|
-
let n = t.getPropertyValue(e).trim();
|
|
1995
|
-
return n ? `${e}:${n}` : "";
|
|
1996
|
-
}).filter(Boolean);
|
|
1997
|
-
t.fontFamily && n.push(`font-family:${t.fontFamily}`), n.length && e.setAttribute("style", n.join(";"));
|
|
1998
|
-
}
|
|
1999
|
-
return new XMLSerializer().serializeToString(e);
|
|
2000
|
-
}
|
|
2001
|
-
function Xs(e, t) {
|
|
2002
|
-
let n = URL.createObjectURL(e), r = document.createElement("a");
|
|
2003
|
-
r.href = n, r.download = t, document.body.appendChild(r), r.click(), r.remove(), setTimeout(() => URL.revokeObjectURL(n), 1e3);
|
|
2004
|
-
}
|
|
2005
|
-
async function Zs(e) {
|
|
2006
|
-
return new Promise((t) => {
|
|
2007
|
-
let n = F(Xi)?.getBoundingClientRect(), r = Math.max(1, Math.round(n?.width ?? F(G).width)), i = Math.max(1, Math.round(n?.height ?? F(G).height)), a = window.devicePixelRatio || 1, o = document.createElement("canvas");
|
|
2008
|
-
o.width = r * a, o.height = i * a;
|
|
2009
|
-
let s = o.getContext("2d");
|
|
2010
|
-
if (!s) {
|
|
2011
|
-
t(null);
|
|
2012
|
-
return;
|
|
2013
|
-
}
|
|
2014
|
-
let c = new Image();
|
|
2015
|
-
c.onload = () => {
|
|
2016
|
-
s.scale(a, a), s.drawImage(c, 0, 0, r, i), o.toBlob((e) => t(e), "image/png");
|
|
2017
|
-
}, c.onerror = () => t(null), c.src = "data:image/svg+xml;charset=utf-8," + encodeURIComponent(e);
|
|
2018
|
-
});
|
|
2019
|
-
}
|
|
2020
|
-
async function Qs(e) {
|
|
2021
|
-
let t = Ys();
|
|
2022
|
-
if (!t) return;
|
|
2023
|
-
let n = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
2024
|
-
if (e === "svg") {
|
|
2025
|
-
Xs(new Blob([t], { type: "image/svg+xml" }), `chart-${n}.svg`);
|
|
2026
|
-
return;
|
|
2027
|
-
}
|
|
2028
|
-
let r = await Zs(t);
|
|
2029
|
-
r && Xs(r, `chart-${n}.png`);
|
|
2030
|
-
}
|
|
2031
|
-
async function $s() {
|
|
2032
|
-
if (!F(ss)) return;
|
|
2033
|
-
let e = await import("./chart-export-pdf-DDVtypH7.js"), t = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
2034
|
-
await e.downloadChartPdf(F(ss), `chart-${t}.pdf`, {
|
|
2035
|
-
title: F(B).title,
|
|
2036
|
-
subtitle: F(B).subtitle,
|
|
2037
|
-
caption: F(B).caption
|
|
2038
|
-
});
|
|
2039
|
-
}
|
|
2040
|
-
async function ec() {
|
|
2041
|
-
F(ss) && (await import("./chart-export-pdf-DDVtypH7.js")).printChart(F(ss), { title: F(B).title });
|
|
2042
|
-
}
|
|
2043
|
-
async function tc() {
|
|
2044
|
-
let e = Ys();
|
|
2045
|
-
if (!e) {
|
|
2046
|
-
p(Hs, "err");
|
|
2047
|
-
return;
|
|
2048
|
-
}
|
|
2049
|
-
try {
|
|
2050
|
-
let t = await Zs(e);
|
|
2051
|
-
if (!t) throw Error("rasterize failed");
|
|
2052
|
-
let n = window.ClipboardItem;
|
|
2053
|
-
n && navigator.clipboard?.write ? await navigator.clipboard.write([new n({ "image/png": t })]) : await navigator.clipboard.writeText(e), p(Hs, "ok");
|
|
2054
|
-
} catch {
|
|
2055
|
-
p(Hs, "err");
|
|
2056
|
-
}
|
|
2057
|
-
setTimeout(() => p(Hs, "idle"), 1500);
|
|
2058
|
-
}
|
|
2059
|
-
var nc = {
|
|
2060
|
-
zoomTo: Hi,
|
|
2061
|
-
resetZoom: Ui
|
|
2062
|
-
}, rc = ni();
|
|
2063
|
-
let ic;
|
|
2064
|
-
{
|
|
2065
|
-
let e = (e) => {
|
|
2066
|
-
var t = at(), n = C(t), r = C(n, !0);
|
|
2067
|
-
j(n);
|
|
2068
|
-
var i = w(n, 2);
|
|
2069
|
-
N(i, 17, Ie, b, (e, t, n) => {
|
|
2070
|
-
var r = it(), i = w(S(r), 2), a = (e) => {
|
|
2071
|
-
var n = nt(), r = C(n, !0);
|
|
2072
|
-
j(n), x(() => O(r, F(t))), m(e, n);
|
|
2073
|
-
}, o = (e) => {
|
|
2074
|
-
var r = rt(), i = C(r, !0);
|
|
2075
|
-
j(r), x(() => O(i, F(t))), g("click", r, () => Xa(Ie().slice(0, n + 1))), m(e, r);
|
|
2076
|
-
};
|
|
2077
|
-
h(i, (e) => {
|
|
2078
|
-
n === Ie().length - 1 ? e(a) : e(o, -1);
|
|
2079
|
-
}), m(e, r);
|
|
2080
|
-
}), j(t), x(() => {
|
|
2081
|
-
E(t, "aria-label", F(z).drillPath), O(r, F(Ua)?.name || F(z).drillRoot);
|
|
2082
|
-
}), g("click", n, () => Xa([])), m(e, t);
|
|
2083
|
-
};
|
|
2084
|
-
var ac = C(rc), oc = (t) => {
|
|
2085
|
-
var n = mt(), r = C(n), i = (t) => {
|
|
2086
|
-
e(t);
|
|
2087
|
-
};
|
|
2088
|
-
h(r, (e) => {
|
|
2089
|
-
F(Wa) && Ie().length && e(i);
|
|
2090
|
-
});
|
|
2091
|
-
var a = w(r, 2), o = (e) => {
|
|
2092
|
-
var t = st();
|
|
2093
|
-
N(t, 21, () => F(Uo), (e) => Go(e), (e, t) => {
|
|
2094
|
-
var n = ot(), r = C(n, !0);
|
|
2095
|
-
j(n), x((e, t) => {
|
|
2096
|
-
E(n, "title", e), O(r, t);
|
|
2097
|
-
}, [() => tt(F(z).showLast, { preset: Go(F(t)) }), () => Go(F(t))]), g("click", n, () => Ko(F(t))), m(e, n);
|
|
2098
|
-
}), j(t), x(() => E(t, "aria-label", F(z).dateRange)), m(e, t);
|
|
2099
|
-
};
|
|
2100
|
-
h(a, (e) => {
|
|
2101
|
-
F(Wo) && e(o);
|
|
2102
|
-
});
|
|
2103
|
-
var s = w(a, 2), c = (e) => {
|
|
2104
|
-
var t = ct();
|
|
2105
|
-
let n;
|
|
2106
|
-
var r = w(C(t));
|
|
2107
|
-
j(t), x(() => {
|
|
2108
|
-
n = P(t, 1, "sv-grid-chart-tool svelte-kvdein", null, n, { "is-on": F(yi) }), E(t, "aria-pressed", F(yi)), E(t, "title", F(z).panTitle), O(r, ` ${F(z).pan ?? ""}`);
|
|
2109
|
-
}), g("click", t, () => p(yi, !F(yi))), m(e, t);
|
|
2110
|
-
};
|
|
2111
|
-
h(s, (e) => {
|
|
2112
|
-
F(vi) && (F(vi).pan === "mode" || F(vi).pan === !0) && F(Ii) && e(c);
|
|
2113
|
-
});
|
|
2114
|
-
var l = w(s, 2), u = (e) => {
|
|
2115
|
-
var t = lt(), n = w(C(t));
|
|
2116
|
-
j(t), x(() => {
|
|
2117
|
-
E(t, "title", F(z).resetZoomTitle), O(n, ` ${F(z).resetZoom ?? ""}`);
|
|
2118
|
-
}), g("click", t, Ui), m(e, t);
|
|
2119
|
-
};
|
|
2120
|
-
h(l, (e) => {
|
|
2121
|
-
we() && F(Ii) && e(u);
|
|
2122
|
-
});
|
|
2123
|
-
var d = w(l, 2), ee = (e) => {
|
|
2124
|
-
var t = ut();
|
|
2125
|
-
let n;
|
|
2126
|
-
var r = w(C(t));
|
|
2127
|
-
j(t), x(() => {
|
|
2128
|
-
n = P(t, 1, "sv-grid-chart-tool svelte-kvdein", null, n, { "is-on": F(xi) }), E(t, "aria-pressed", F(xi)), E(t, "title", F(xi) ? F(z).annotateOnTitle : F(z).annotateOffTitle), O(r, ` ${F(z).annotate ?? ""}`);
|
|
2129
|
-
}), g("click", t, () => p(xi, !F(xi))), m(e, t);
|
|
2130
|
-
};
|
|
2131
|
-
h(d, (e) => {
|
|
2132
|
-
qe() && e(ee);
|
|
2133
|
-
});
|
|
2134
|
-
var te = w(d, 2), ne = (e) => {
|
|
2135
|
-
var t = pt(), n = C(t);
|
|
2136
|
-
N(n, 16, () => F(ca), (e) => e, (e, t) => {
|
|
2137
|
-
var n = dt();
|
|
2138
|
-
let r;
|
|
2139
|
-
var i = C(n, !0);
|
|
2140
|
-
j(n), x((e) => {
|
|
2141
|
-
r = P(n, 1, "sv-grid-chart-tool sv-grid-chart-drawtool svelte-kvdein", null, r, { "is-on": F(la) === t }), E(n, "aria-pressed", F(la) === t), E(n, "title", e), O(i, F(sa)[t]);
|
|
2142
|
-
}, [() => tt(F(z).draw, { tool: F(sa)[t] })]), g("click", n, () => xa(t)), m(e, n);
|
|
2143
|
-
});
|
|
2144
|
-
var r = w(n, 2), i = (e) => {
|
|
2145
|
-
var t = ft(), n = S(t), r = C(n, !0);
|
|
2146
|
-
j(n);
|
|
2147
|
-
var i = w(n, 2), a = C(i, !0);
|
|
2148
|
-
j(i), x(() => {
|
|
2149
|
-
n.disabled = !F(da), E(n, "title", F(z).deleteDrawingTitle), O(r, F(z).deleteDrawing), E(i, "title", F(z).clearDrawingsTitle), O(a, F(z).clearDrawings);
|
|
2150
|
-
}), g("click", n, () => F(da) && wa(F(da))), g("click", i, () => ba([])), m(e, t);
|
|
2151
|
-
}, a = A(() => _a().length);
|
|
2152
|
-
h(r, (e) => {
|
|
2153
|
-
F(a) && e(i);
|
|
2154
|
-
}), j(t), x(() => E(t, "aria-label", F(z).drawingTools)), m(e, t);
|
|
2155
|
-
};
|
|
2156
|
-
h(te, (e) => {
|
|
2157
|
-
F(ca).length && F(K) && e(ne);
|
|
2158
|
-
});
|
|
2159
|
-
var re = w(te, 2), ie = C(re, !0);
|
|
2160
|
-
j(re);
|
|
2161
|
-
var f = w(re, 2), ae = C(f, !0);
|
|
2162
|
-
j(f);
|
|
2163
|
-
var oe = w(f, 2), se = C(oe, !0);
|
|
2164
|
-
j(oe);
|
|
2165
|
-
var ce = w(oe, 2), le = C(ce, !0);
|
|
2166
|
-
j(ce);
|
|
2167
|
-
var _ = w(ce, 2), v = C(_, !0);
|
|
2168
|
-
j(_), j(n), x(() => {
|
|
2169
|
-
E(re, "title", F(z).downloadPng), O(ie, F(z).png), E(f, "title", F(z).downloadSvg), O(ae, F(z).svg), E(oe, "title", F(z).downloadPdf), O(se, F(z).pdf), E(ce, "title", F(z).printTitle), O(le, F(z).print), E(_, "title", F(z).copyTitle), O(v, F(Hs) === "ok" ? F(z).copied : F(z).copy);
|
|
2170
|
-
}), g("click", re, () => Qs("png")), g("click", f, () => Qs("svg")), g("click", oe, $s), g("click", ce, ec), g("click", _, tc), ve(n, "clientHeight", (e) => p(ui, e)), m(t, n);
|
|
2171
|
-
}, sc = (t) => {
|
|
2172
|
-
var n = ht(), r = C(n);
|
|
2173
|
-
e(r), j(n), ve(n, "clientHeight", (e) => p(ui, e)), m(t, n);
|
|
2174
|
-
};
|
|
2175
|
-
h(ac, (e) => {
|
|
2176
|
-
F(bi) ? e(oc) : F(Wa) && Ie().length && e(sc, 1);
|
|
2177
|
-
});
|
|
2178
|
-
var $ = w(ac, 2);
|
|
2179
|
-
let t, n;
|
|
2180
|
-
var cc = C($), lc = (e) => {
|
|
2181
|
-
var t = St(), n = C(t), r = (e) => {
|
|
2182
|
-
var t = gt(), n = C(t);
|
|
2183
|
-
let r;
|
|
2184
|
-
j(t), x(() => {
|
|
2185
|
-
E(t, "id", `${Ai}-plot`), E(n, "x", F(G).plot.x - 4), E(n, "y", F(G).plot.y - 4), E(n, "width", F(G).plot.w + 8), E(n, "height", F(G).plot.h + 8), r = P(n, 0, "svelte-kvdein", null, r, { "sv-grid-chart-wipe": F(ao) === "wipe" });
|
|
2186
|
-
}), m(e, t);
|
|
2187
|
-
};
|
|
2188
|
-
h(n, (e) => {
|
|
2189
|
-
F(K) && e(r);
|
|
2190
|
-
});
|
|
2191
|
-
var i = w(n);
|
|
2192
|
-
N(i, 17, () => F(oo), (e) => e.id, (e, t) => {
|
|
2193
|
-
var n = _t(), r = C(n), i = w(r);
|
|
2194
|
-
j(n), x(() => {
|
|
2195
|
-
E(n, "id", F(t).id), E(r, "stop-color", F(t).from), E(i, "stop-color", F(t).to === "transparent" ? F(t).from : F(t).to), E(i, "stop-opacity", F(t).to === "transparent" ? 0 : 1);
|
|
2196
|
-
}), m(e, n);
|
|
2197
|
-
});
|
|
2198
|
-
var a = w(i);
|
|
2199
|
-
N(a, 17, () => F(Pi), (e) => e.id, (e, t) => {
|
|
2200
|
-
var n = D(), r = S(n), i = (e) => {
|
|
2201
|
-
var n = vt(), r = C(n);
|
|
2202
|
-
he(), j(n), x(() => {
|
|
2203
|
-
E(n, "id", F(t).id), E(r, "fill", F(t).color);
|
|
2204
|
-
}), m(e, n);
|
|
2205
|
-
}, a = (e) => {
|
|
2206
|
-
var n = yt(), r = C(n);
|
|
2207
|
-
he(), j(n), x(() => {
|
|
2208
|
-
E(n, "id", F(t).id), E(r, "fill", F(t).color);
|
|
2209
|
-
}), m(e, n);
|
|
2210
|
-
}, o = (e) => {
|
|
2211
|
-
var n = bt(), r = C(n);
|
|
2212
|
-
he(), j(n), x(() => {
|
|
2213
|
-
E(n, "id", F(t).id), E(r, "fill", F(t).color);
|
|
2214
|
-
}), m(e, n);
|
|
2215
|
-
}, s = (e) => {
|
|
2216
|
-
var n = xt(), r = C(n);
|
|
2217
|
-
he(), j(n), x(() => {
|
|
2218
|
-
E(n, "id", F(t).id), E(r, "fill", F(t).color);
|
|
2219
|
-
}), m(e, n);
|
|
2220
|
-
};
|
|
2221
|
-
h(r, (e) => {
|
|
2222
|
-
F(t).kind === "stripe" ? e(i) : F(t).kind === "crosshatch" ? e(a, 1) : F(t).kind === "dots" ? e(o, 2) : F(t).kind === "diagonal" && e(s, 3);
|
|
2223
|
-
}), m(e, n);
|
|
2224
|
-
}), j(t), m(e, t);
|
|
2225
|
-
};
|
|
2226
|
-
h(cc, (e) => {
|
|
2227
|
-
(F(Pi).length || F(oo).length || F(K)) && e(lc);
|
|
2228
|
-
});
|
|
2229
|
-
var uc = w(cc), dc = (e) => {
|
|
2230
|
-
var t = Ct(), n = C(t, !0);
|
|
2231
|
-
j(t), x(() => {
|
|
2232
|
-
E(t, "x", F(G).frame.title.x), E(t, "y", F(G).frame.title.y), O(n, F(G).frame.title.text);
|
|
2233
|
-
}), m(e, t);
|
|
2234
|
-
};
|
|
2235
|
-
h(uc, (e) => {
|
|
2236
|
-
F(G).frame.title && e(dc);
|
|
2237
|
-
});
|
|
2238
|
-
var fc = w(uc), pc = (e) => {
|
|
2239
|
-
var t = wt(), n = C(t, !0);
|
|
2240
|
-
j(t), x(() => {
|
|
2241
|
-
E(t, "x", F(G).frame.subtitle.x), E(t, "y", F(G).frame.subtitle.y), O(n, F(G).frame.subtitle.text);
|
|
2242
|
-
}), m(e, t);
|
|
2243
|
-
};
|
|
2244
|
-
h(fc, (e) => {
|
|
2245
|
-
F(G).frame.subtitle && e(pc);
|
|
2246
|
-
});
|
|
2247
|
-
var mc = w(fc), hc = (e) => {
|
|
2248
|
-
var t = Tt(), n = C(t, !0);
|
|
2249
|
-
j(t), x(() => {
|
|
2250
|
-
E(t, "x", F(G).frame.caption.x), E(t, "y", F(G).frame.caption.y), O(n, F(G).frame.caption.text);
|
|
2251
|
-
}), m(e, t);
|
|
2252
|
-
};
|
|
2253
|
-
h(mc, (e) => {
|
|
2254
|
-
F(G).frame.caption && e(hc);
|
|
2255
|
-
});
|
|
2256
|
-
var gc = w(mc), _c = (e) => {
|
|
2257
|
-
var t = Mt(), n = S(t);
|
|
2258
|
-
N(n, 17, () => F(G).valueTicks, (e) => e.label + e.x, (e, t, n, r) => {
|
|
2259
|
-
var i = Dt(), a = S(i), o = (e) => {
|
|
2260
|
-
var n = Et();
|
|
2261
|
-
x(() => {
|
|
2262
|
-
E(n, "x1", F(t).x), E(n, "y1", F(G).plot.y), E(n, "x2", F(t).x), E(n, "y2", F(G).plot.y + F(G).plot.h);
|
|
2263
|
-
}), m(e, n);
|
|
2264
|
-
};
|
|
2265
|
-
h(a, (e) => {
|
|
2266
|
-
F(G).grid.x && e(o);
|
|
2267
|
-
});
|
|
2268
|
-
var s = w(a), c = C(s, !0);
|
|
2269
|
-
j(s), x(() => {
|
|
2270
|
-
E(s, "x", F(t).x), E(s, "y", F(G).plot.y + F(G).plot.h + 14), O(c, F(t).label);
|
|
2271
|
-
}), m(e, i);
|
|
2272
|
-
});
|
|
2273
|
-
var r = w(n), i = (e) => {
|
|
2274
|
-
var t = D(), n = S(t);
|
|
2275
|
-
N(n, 17, () => F(G).catTicks, (e) => e.value, (e, t, n, r) => {
|
|
2276
|
-
var i = Ot();
|
|
2277
|
-
x(() => {
|
|
2278
|
-
E(i, "x1", F(G).plot.x), E(i, "y1", F(t).y), E(i, "x2", F(G).plot.x + F(G).plot.w), E(i, "y2", F(t).y);
|
|
2279
|
-
}), m(e, i);
|
|
2280
|
-
}), m(e, t);
|
|
2281
|
-
};
|
|
2282
|
-
h(r, (e) => {
|
|
2283
|
-
F(G).grid.y && e(i);
|
|
2284
|
-
});
|
|
2285
|
-
var a = w(r);
|
|
2286
|
-
N(a, 17, () => F(G).catTicks, (e) => e.value, (e, t, n, r) => {
|
|
2287
|
-
var i = kt(), a = C(i, !0);
|
|
2288
|
-
j(i), x((e) => {
|
|
2289
|
-
E(i, "x", F(G).plot.x - 6), E(i, "y", F(t).y + 3), O(a, e);
|
|
2290
|
-
}, [() => as(F(t).label, 18)]), m(e, i);
|
|
2291
|
-
});
|
|
2292
|
-
var o = w(a), s = (e) => {
|
|
2293
|
-
var t = At();
|
|
2294
|
-
E(t, "x", 13);
|
|
2295
|
-
var n = C(t, !0);
|
|
2296
|
-
j(t), x(() => {
|
|
2297
|
-
E(t, "y", F(G).plot.y + F(G).plot.h / 2), E(t, "transform", `rotate(-90 13 ${F(G).plot.y + F(G).plot.h / 2})`), O(n, F(so));
|
|
2298
|
-
}), m(e, t);
|
|
2299
|
-
};
|
|
2300
|
-
h(o, (e) => {
|
|
2301
|
-
F(so) && e(s);
|
|
2302
|
-
});
|
|
2303
|
-
var c = w(o), l = (e) => {
|
|
2304
|
-
var t = jt(), n = C(t, !0);
|
|
2305
|
-
j(t), x(() => {
|
|
2306
|
-
E(t, "x", F(G).plot.x + F(G).plot.w / 2), E(t, "y", F(G).height - 3 - F(G).frame.bottom), O(n, F(lo));
|
|
2307
|
-
}), m(e, t);
|
|
2308
|
-
};
|
|
2309
|
-
h(c, (e) => {
|
|
2310
|
-
F(lo) && e(l);
|
|
2311
|
-
}), m(e, t);
|
|
2312
|
-
}, vc = (e) => {
|
|
2313
|
-
var t = Gt(), n = S(t);
|
|
2314
|
-
N(n, 17, () => F(G).yTicks, (e) => e.value, (e, t, n, r) => {
|
|
2315
|
-
var i = Ft(), a = S(i), o = (e) => {
|
|
2316
|
-
var n = Nt();
|
|
2317
|
-
let r;
|
|
2318
|
-
x(() => {
|
|
2319
|
-
r = P(n, 0, "sv-grid-chart-gridline svelte-kvdein", null, r, { "is-zero": F(t).value === 0 }), E(n, "x1", F(G).plot.x), E(n, "y1", F(t).y), E(n, "x2", F(G).plot.x + F(G).plot.w), E(n, "y2", F(t).y);
|
|
2320
|
-
}), m(e, n);
|
|
2321
|
-
};
|
|
2322
|
-
h(a, (e) => {
|
|
2323
|
-
(F(G).grid.y || F(t).value === 0) && e(o);
|
|
2324
|
-
});
|
|
2325
|
-
var s = w(a), c = (e) => {
|
|
2326
|
-
var n = Pt(), r = C(n, !0);
|
|
2327
|
-
j(n), x((e) => {
|
|
2328
|
-
E(n, "x", F(G).plot.x - 6), E(n, "y", F(t).y + 3), O(r, e);
|
|
2329
|
-
}, [() => os(F(t).value, F(t).label)]), m(e, n);
|
|
2330
|
-
};
|
|
2331
|
-
h(s, (e) => {
|
|
2332
|
-
F(t).label && e(c);
|
|
2333
|
-
}), m(e, i);
|
|
2334
|
-
});
|
|
2335
|
-
var r = w(n), i = (e) => {
|
|
2336
|
-
var t = D(), n = S(t);
|
|
2337
|
-
N(n, 17, () => F(G).xTicks, (e) => e.label + e.x, (e, t, n, r) => {
|
|
2338
|
-
var i = It();
|
|
2339
|
-
x(() => {
|
|
2340
|
-
E(i, "x1", F(t).x), E(i, "y1", F(G).plot.y), E(i, "x2", F(t).x), E(i, "y2", F(G).plot.y + F(G).plot.h);
|
|
2341
|
-
}), m(e, i);
|
|
2342
|
-
}), m(e, t);
|
|
2343
|
-
};
|
|
2344
|
-
h(r, (e) => {
|
|
2345
|
-
F(G).grid.x && e(i);
|
|
2346
|
-
});
|
|
2347
|
-
var a = w(r), o = (e) => {
|
|
2348
|
-
var t = D(), n = S(t);
|
|
2349
|
-
N(n, 17, () => F(G).y2Ticks, (e) => e.value, (e, t, n, r) => {
|
|
2350
|
-
var i = D(), a = S(i), o = (e) => {
|
|
2351
|
-
var n = Lt(), r = C(n, !0);
|
|
2352
|
-
j(n), x((e) => {
|
|
2353
|
-
E(n, "x", F(G).plot.x + F(G).plot.w + 6), E(n, "y", F(t).y + 3), O(r, e);
|
|
2354
|
-
}, [() => os(F(t).value, F(t).label)]), m(e, n);
|
|
2355
|
-
};
|
|
2356
|
-
h(a, (e) => {
|
|
2357
|
-
F(t).label && e(o);
|
|
2358
|
-
}), m(e, i);
|
|
2359
|
-
}), m(e, t);
|
|
2360
|
-
};
|
|
2361
|
-
h(a, (e) => {
|
|
2362
|
-
F(G).hasRightAxis && e(o);
|
|
2363
|
-
});
|
|
2364
|
-
var s = w(a);
|
|
2365
|
-
N(s, 17, () => F(G).xTicks, (e) => e.label + e.x, (e, t, n, r) => {
|
|
2366
|
-
var i = D(), a = S(i), o = (e) => {}, s = (e) => {
|
|
2367
|
-
var n = Rt(), r = C(n, !0);
|
|
2368
|
-
j(n), x((e) => {
|
|
2369
|
-
E(n, "x", F(t).x), E(n, "y", F(G).plot.y + F(G).plot.h + 12), E(n, "text-anchor", F(G).xLabelAngle < 0 ? "end" : "start"), E(n, "transform", `rotate(${F(G).xLabelAngle} ${F(t).x} ${F(G).plot.y + F(G).plot.h + 12})`), O(r, e);
|
|
2370
|
-
}, [() => as(F(t).label, Math.abs(F(G).xLabelAngle) >= 60 ? 18 : 12)]), m(e, n);
|
|
2371
|
-
}, c = (e) => {
|
|
2372
|
-
var n = zt(), r = C(n, !0);
|
|
2373
|
-
j(n), x((e) => {
|
|
2374
|
-
E(n, "x", F(t).x), E(n, "y", F(G).plot.y + F(G).plot.h + 16), O(r, e);
|
|
2375
|
-
}, [() => as(F(t).label, 16)]), m(e, n);
|
|
2376
|
-
};
|
|
2377
|
-
h(a, (e) => {
|
|
2378
|
-
F(t).label ? F(G).xLabelRotated ? e(s, 1) : e(c, -1) : e(o);
|
|
2379
|
-
}), m(e, i);
|
|
2380
|
-
});
|
|
2381
|
-
var c = w(s);
|
|
2382
|
-
N(c, 17, () => F(G).categoryGroupTicks, (e) => e.label + e.x0, (e, t) => {
|
|
2383
|
-
let n = A(() => F(G).plot.y + F(G).plot.h + (F(G).xLabelRotated ? 46 : 32));
|
|
2384
|
-
var r = Vt(), i = S(r), a = w(i), o = (e) => {
|
|
2385
|
-
var r = Bt();
|
|
2386
|
-
x(() => {
|
|
2387
|
-
E(r, "x1", F(t).x0), E(r, "y1", F(G).plot.y + F(G).plot.h), E(r, "x2", F(t).x0), E(r, "y2", F(n) - 9);
|
|
2388
|
-
}), m(e, r);
|
|
2389
|
-
};
|
|
2390
|
-
h(a, (e) => {
|
|
2391
|
-
F(t).x0 > F(G).plot.x + 1 && e(o);
|
|
2392
|
-
});
|
|
2393
|
-
var s = w(a), c = C(s, !0);
|
|
2394
|
-
j(s), x((e) => {
|
|
2395
|
-
E(i, "x1", F(t).x0 + 3), E(i, "y1", F(n) - 9), E(i, "x2", F(t).x1 - 3), E(i, "y2", F(n) - 9), E(s, "x", F(t).xCenter), E(s, "y", F(n)), O(c, e);
|
|
2396
|
-
}, [() => as(F(t).label, Math.max(4, Math.floor((F(t).x1 - F(t).x0) / 7)))]), m(e, r);
|
|
2397
|
-
});
|
|
2398
|
-
var l = w(c), u = (e) => {
|
|
2399
|
-
var t = Ht();
|
|
2400
|
-
E(t, "x", 13);
|
|
2401
|
-
var n = C(t, !0);
|
|
2402
|
-
j(t), x(() => {
|
|
2403
|
-
E(t, "y", F(G).plot.y + F(G).plot.h / 2), E(t, "transform", `rotate(-90 13 ${F(G).plot.y + F(G).plot.h / 2})`), O(n, F(so));
|
|
2404
|
-
}), m(e, t);
|
|
2405
|
-
};
|
|
2406
|
-
h(l, (e) => {
|
|
2407
|
-
F(so) && e(u);
|
|
2408
|
-
});
|
|
2409
|
-
var d = w(l), ee = (e) => {
|
|
2410
|
-
var t = Ut(), n = C(t, !0);
|
|
2411
|
-
j(t), x(() => {
|
|
2412
|
-
E(t, "x", F(G).width - 12), E(t, "y", F(G).plot.y + F(G).plot.h / 2), E(t, "transform", `rotate(90 ${F(G).width - 12} ${F(G).plot.y + F(G).plot.h / 2})`), O(n, F(co));
|
|
2413
|
-
}), m(e, t);
|
|
2414
|
-
};
|
|
2415
|
-
h(d, (e) => {
|
|
2416
|
-
F(co) && e(ee);
|
|
2417
|
-
});
|
|
2418
|
-
var te = w(d), ne = (e) => {
|
|
2419
|
-
var t = Wt(), n = C(t, !0);
|
|
2420
|
-
j(t), x(() => {
|
|
2421
|
-
E(t, "x", F(G).plot.x + F(G).plot.w / 2), E(t, "y", F(G).height - 3 - F(G).frame.bottom), O(n, F(lo));
|
|
2422
|
-
}), m(e, t);
|
|
2423
|
-
};
|
|
2424
|
-
h(te, (e) => {
|
|
2425
|
-
F(lo) && e(ne);
|
|
2426
|
-
}), m(e, t);
|
|
2427
|
-
};
|
|
2428
|
-
h(gc, (e) => {
|
|
2429
|
-
F(q) ? e(_c) : F(K) && e(vc, 1);
|
|
2430
|
-
});
|
|
2431
|
-
var yc = w(gc);
|
|
2432
|
-
N(yc, 17, () => F(G).referenceBands, b, (e, t) => {
|
|
2433
|
-
var n = Jt(), r = S(n), i = w(r), a = (e) => {
|
|
2434
|
-
var n = D(), r = S(n), i = (e) => {
|
|
2435
|
-
var n = Kt(), r = C(n, !0);
|
|
2436
|
-
j(n), x(() => {
|
|
2437
|
-
E(n, "x", F(t).x + F(t).w - 3), E(n, "y", F(t).y + 10), E(n, "fill", F(t).color), O(r, F(t).label);
|
|
2438
|
-
}), m(e, n);
|
|
2439
|
-
}, a = (e) => {
|
|
2440
|
-
var n = qt(), r = C(n, !0);
|
|
2441
|
-
j(n), x(() => {
|
|
2442
|
-
E(n, "x", F(t).x + F(t).w / 2), E(n, "y", F(t).y + 10), E(n, "fill", F(t).color), O(r, F(t).label);
|
|
2443
|
-
}), m(e, n);
|
|
2444
|
-
};
|
|
2445
|
-
h(r, (e) => {
|
|
2446
|
-
F(t).axis === "y" ? e(i) : e(a, -1);
|
|
2447
|
-
}), m(e, n);
|
|
2448
|
-
};
|
|
2449
|
-
h(i, (e) => {
|
|
2450
|
-
F(t).label && e(a);
|
|
2451
|
-
}), x(() => {
|
|
2452
|
-
E(r, "x", F(t).x), E(r, "y", F(t).y), E(r, "width", F(t).w), E(r, "height", F(t).h), E(r, "fill", F(t).color), E(r, "fill-opacity", F(t).opacity);
|
|
2453
|
-
}), m(e, n);
|
|
2454
|
-
});
|
|
2455
|
-
var bc = w(yc);
|
|
2456
|
-
let r;
|
|
2457
|
-
var xc = C(bc);
|
|
2458
|
-
N(xc, 19, () => F(G).lines, (e, t) => e.label + t, (e, t, n) => {
|
|
2459
|
-
let r = A(() => F(t).style?.gradient ? `${Ai}-grad-${F(n)}` : null);
|
|
2460
|
-
var i = tn(), a = C(i), o = (e) => {
|
|
2461
|
-
var n = Yt();
|
|
2462
|
-
x(() => {
|
|
2463
|
-
E(n, "d", F(t).bandPath), E(n, "fill", F(t).color);
|
|
2464
|
-
}), m(e, n);
|
|
2465
|
-
};
|
|
2466
|
-
h(a, (e) => {
|
|
2467
|
-
F(t).bandPath && e(o);
|
|
2468
|
-
});
|
|
2469
|
-
var s = w(a), c = (e) => {
|
|
2470
|
-
var n = Xt();
|
|
2471
|
-
x(() => {
|
|
2472
|
-
E(n, "d", F(t).areaPath), E(n, "fill", F(r) ? `url(#${F(r)})` : F(Ni)[F(t).label] ?? F(t).color), E(n, "fill-opacity", F(r) ? .6 : F(t).range ? .35 : .15);
|
|
2473
|
-
}), m(e, n);
|
|
2474
|
-
};
|
|
2475
|
-
h(s, (e) => {
|
|
2476
|
-
F(t).areaPath && e(c);
|
|
2477
|
-
});
|
|
2478
|
-
var l = w(s), u = w(l), d = (e) => {
|
|
2479
|
-
let n = A(() => F(t).points[F(ds) ?? -1]);
|
|
2480
|
-
var r = D(), i = S(r), a = (e) => {
|
|
2481
|
-
var r = Zt();
|
|
2482
|
-
x(() => {
|
|
2483
|
-
E(r, "cx", F(n).x), E(r, "cy", F(n).y), E(r, "fill", F(n).marker?.color ?? F(t).color);
|
|
2484
|
-
}), m(e, r);
|
|
2485
|
-
};
|
|
2486
|
-
h(i, (e) => {
|
|
2487
|
-
F(n)?.defined && e(a);
|
|
2488
|
-
}), m(e, r);
|
|
2489
|
-
}, ee = (e) => {
|
|
2490
|
-
var n = D(), r = S(n);
|
|
2491
|
-
N(r, 17, () => F(t).points, b, (e, n, r) => {
|
|
2492
|
-
var i = D(), a = S(i), o = (e) => {
|
|
2493
|
-
let i = A(() => F(n).marker?.shape ?? "circle"), a = A(() => (F(n).marker?.size ?? 3) + +(F(ds) === r)), o = A(() => F(n).marker?.color ?? F(t).color);
|
|
2494
|
-
var s = D(), c = S(s), l = (e) => {
|
|
2495
|
-
var i = Qt();
|
|
2496
|
-
let s;
|
|
2497
|
-
x((e, t) => {
|
|
2498
|
-
s = P(i, 0, "sv-grid-chart-dot svelte-kvdein", null, s, e), E(i, "cx", F(n).x), E(i, "cy", F(n).y), E(i, "r", F(a)), E(i, "fill", F(o)), M(i, t);
|
|
2499
|
-
}, [() => ({
|
|
2500
|
-
"is-active": F(ds) === r,
|
|
2501
|
-
"is-selected": Ro(F(n).label, F(t).label)
|
|
2502
|
-
}), () => `opacity:${zo(F(n).label, F(t).label)}`]), m(e, i);
|
|
2503
|
-
}, u = (e) => {
|
|
2504
|
-
var t = $t();
|
|
2505
|
-
let s;
|
|
2506
|
-
x((e) => {
|
|
2507
|
-
s = P(t, 0, "sv-grid-chart-dot is-stroked svelte-kvdein", null, s, { "is-active": F(ds) === r }), E(t, "d", e), E(t, "stroke", F(o));
|
|
2508
|
-
}, [() => ie(F(i), F(n).x, F(n).y, F(a))]), m(e, t);
|
|
2509
|
-
}, d = (e) => {
|
|
2510
|
-
var t = en();
|
|
2511
|
-
let s;
|
|
2512
|
-
x((e) => {
|
|
2513
|
-
s = P(t, 0, "sv-grid-chart-dot svelte-kvdein", null, s, { "is-active": F(ds) === r }), E(t, "d", e), E(t, "fill", F(o));
|
|
2514
|
-
}, [() => ie(F(i), F(n).x, F(n).y, F(a))]), m(e, t);
|
|
2515
|
-
};
|
|
2516
|
-
h(c, (e) => {
|
|
2517
|
-
F(i) === "circle" ? e(l) : F(i) === "cross" ? e(u, 1) : e(d, -1);
|
|
2518
|
-
}), m(e, s);
|
|
2519
|
-
};
|
|
2520
|
-
h(a, (e) => {
|
|
2521
|
-
F(n).defined && F(n).marker?.shape !== "none" && e(o);
|
|
2522
|
-
}), m(e, i);
|
|
2523
|
-
}), m(e, n);
|
|
2524
|
-
};
|
|
2525
|
-
h(u, (e) => {
|
|
2526
|
-
F(To) ? e(d) : e(ee, -1);
|
|
2527
|
-
}), j(i), x((e) => {
|
|
2528
|
-
M(i, e), E(l, "d", F(t).path), E(l, "stroke", F(t).color), E(l, "stroke-width", F(t).style?.strokeWidth ?? (F(t).range ? 1 : 2)), E(l, "stroke-dasharray", F(t).style?.dash);
|
|
2529
|
-
}, [() => `opacity:${J(F(t).label) * (F(t).style?.opacity ?? 1)}`]), m(e, i);
|
|
2530
|
-
});
|
|
2531
|
-
var Sc = w(xc), Cc = (e) => {
|
|
2532
|
-
var t = D(), n = S(t);
|
|
2533
|
-
ue(n, () => f.underlay, () => F(fo)), m(e, t);
|
|
2534
|
-
};
|
|
2535
|
-
h(Sc, (e) => {
|
|
2536
|
-
f.underlay && e(Cc);
|
|
2537
|
-
});
|
|
2538
|
-
var wc = w(Sc);
|
|
2539
|
-
N(wc, 17, () => F(G).bars, b, (e, t) => {
|
|
2540
|
-
var n = nn();
|
|
2541
|
-
let r;
|
|
2542
|
-
x((e, i, a) => {
|
|
2543
|
-
r = P(n, 0, "sv-grid-chart-bar svelte-kvdein", null, r, e), E(n, "x", F(t).x), E(n, "y", F(t).y), E(n, "width", F(t).w), E(n, "height", F(t).h), E(n, "fill", i), M(n, a);
|
|
2544
|
-
}, [
|
|
2545
|
-
() => ({ "is-selected": Ro(F(t).label, F(t).series, F(t).index) }),
|
|
2546
|
-
() => F(Ni)[F(t).series]?.startsWith("url(") ? F(Ni)[F(t).series] : F(t).color,
|
|
2547
|
-
() => `opacity:${J(F(t).series) * (F(t).opacity ?? 1) * zo(F(t).label, F(t).series, F(t).index)}`
|
|
2548
|
-
]), g("click", n, function(...e) {
|
|
2549
|
-
(F(Y) ? (e) => {
|
|
2550
|
-
e.stopPropagation(), Ms(F(t).label, F(t).series, F(t).value, F(t).index, e);
|
|
2551
|
-
} : void 0)?.apply(this, e);
|
|
2552
|
-
}), m(e, n);
|
|
2553
|
-
});
|
|
2554
|
-
var Tc = w(wc);
|
|
2555
|
-
N(Tc, 17, () => F(G).stems, b, (e, t) => {
|
|
2556
|
-
var n = an(), r = C(n), i = w(r), a = (e) => {
|
|
2557
|
-
var n = rn();
|
|
2558
|
-
x(() => {
|
|
2559
|
-
E(n, "cx", F(t).xCenter), E(n, "cy", F(t).y0), E(n, "r", F(t).r), E(n, "fill", F(t).color2 ?? F(t).color), E(n, "stroke", F(t).color2 ?? F(t).color);
|
|
2560
|
-
}), m(e, n);
|
|
2561
|
-
};
|
|
2562
|
-
h(i, (e) => {
|
|
2563
|
-
F(t).dumbbell && e(a);
|
|
2564
|
-
});
|
|
2565
|
-
var o = w(i);
|
|
2566
|
-
j(n), x((e) => {
|
|
2567
|
-
M(n, e), E(r, "x1", F(t).xCenter), E(r, "y1", F(t).y0), E(r, "x2", F(t).xCenter), E(r, "y2", F(t).y1), E(r, "stroke", F(t).dumbbell ? "var(--sg-muted, #94a3b8)" : F(t).color), E(r, "stroke-width", F(t).dumbbell ? 2 : 1.5), E(o, "cx", F(t).xCenter), E(o, "cy", F(t).y1), E(o, "r", F(t).r), E(o, "fill", F(t).color);
|
|
2568
|
-
}, [() => `opacity:${J(F(t).series)}`]), g("mousemove", n, (e) => ks(e.clientX, e.clientY, F(t))), y("mouseleave", n, Q), m(e, n);
|
|
2569
|
-
});
|
|
2570
|
-
var Ec = w(Tc);
|
|
2571
|
-
N(Ec, 17, () => F(G).candles, b, (e, t) => {
|
|
2572
|
-
var n = D(), r = S(n), i = (e) => {
|
|
2573
|
-
var n = on(), r = S(n), i = w(r), a = w(i);
|
|
2574
|
-
x((e, n, o) => {
|
|
2575
|
-
E(r, "x1", F(t).xCenter), E(r, "y1", F(t).yHigh), E(r, "x2", F(t).xCenter), E(r, "y2", F(t).yLow), E(r, "stroke", F(t).color), M(r, e), E(i, "x1", F(t).x), E(i, "y1", F(t).yOpen), E(i, "x2", F(t).xCenter), E(i, "y2", F(t).yOpen), E(i, "stroke", F(t).color), M(i, n), E(a, "x1", F(t).xCenter), E(a, "y1", F(t).yClose), E(a, "x2", F(t).x + F(t).w), E(a, "y2", F(t).yClose), E(a, "stroke", F(t).color), M(a, o);
|
|
2576
|
-
}, [
|
|
2577
|
-
() => `opacity:${J(F(t).series)}`,
|
|
2578
|
-
() => `opacity:${J(F(t).series)}`,
|
|
2579
|
-
() => `opacity:${J(F(t).series)}`
|
|
2580
|
-
]), m(e, n);
|
|
2581
|
-
}, a = (e) => {
|
|
2582
|
-
var n = sn(), r = S(n), i = w(r);
|
|
2583
|
-
x((e, n) => {
|
|
2584
|
-
E(r, "x1", F(t).xCenter), E(r, "y1", F(t).yHigh), E(r, "x2", F(t).xCenter), E(r, "y2", F(t).yLow), E(r, "stroke", F(t).color), M(r, e), E(i, "x", F(t).x), E(i, "y", F(t).bodyY), E(i, "width", F(t).w), E(i, "height", F(t).bodyH), E(i, "fill", F(t).hollow ? "none" : F(t).color), E(i, "stroke", F(t).color), M(i, n);
|
|
2585
|
-
}, [() => `opacity:${J(F(t).series)}`, () => `opacity:${J(F(t).series)}`]), m(e, n);
|
|
2586
|
-
};
|
|
2587
|
-
h(r, (e) => {
|
|
2588
|
-
F(ja) ? e(i) : e(a, -1);
|
|
2589
|
-
}), m(e, n);
|
|
2590
|
-
});
|
|
2591
|
-
var Dc = w(Ec);
|
|
2592
|
-
N(Dc, 17, () => F(G).boxes, b, (e, t) => {
|
|
2593
|
-
var n = ln(), r = S(n), i = w(r), a = w(i), o = w(a), s = w(o), c = w(s);
|
|
2594
|
-
N(c, 17, () => F(t).outliers, b, (e, n) => {
|
|
2595
|
-
var r = cn();
|
|
2596
|
-
x((e) => {
|
|
2597
|
-
E(r, "cx", F(t).xCenter), E(r, "cy", F(n).y), E(r, "stroke", F(t).color), M(r, e);
|
|
2598
|
-
}, [() => `opacity:${J(F(t).series)}`]), m(e, r);
|
|
2599
|
-
}), x((e, n, c, l, u) => {
|
|
2600
|
-
E(r, "x1", F(t).xCenter), E(r, "y1", F(t).yMax), E(r, "x2", F(t).xCenter), E(r, "y2", F(t).yMin), E(r, "stroke", F(t).color), M(r, e), E(i, "x1", F(t).x + F(t).w * .25), E(i, "y1", F(t).yMax), E(i, "x2", F(t).x + F(t).w * .75), E(i, "y2", F(t).yMax), E(i, "stroke", F(t).color), M(i, n), E(a, "x1", F(t).x + F(t).w * .25), E(a, "y1", F(t).yMin), E(a, "x2", F(t).x + F(t).w * .75), E(a, "y2", F(t).yMin), E(a, "stroke", F(t).color), M(a, c), E(o, "x", F(t).x), E(o, "y", F(t).boxY), E(o, "width", F(t).w), E(o, "height", F(t).boxH), E(o, "fill", F(t).color), E(o, "stroke", F(t).color), M(o, l), E(s, "x1", F(t).x), E(s, "y1", F(t).yMedian), E(s, "x2", F(t).x + F(t).w), E(s, "y2", F(t).yMedian), E(s, "stroke", F(t).color), M(s, u);
|
|
2601
|
-
}, [
|
|
2602
|
-
() => `opacity:${J(F(t).series)}`,
|
|
2603
|
-
() => `opacity:${J(F(t).series)}`,
|
|
2604
|
-
() => `opacity:${J(F(t).series)}`,
|
|
2605
|
-
() => `opacity:${J(F(t).series)}`,
|
|
2606
|
-
() => `opacity:${J(F(t).series)}`
|
|
2607
|
-
]), m(e, n);
|
|
2608
|
-
});
|
|
2609
|
-
var Oc = w(Dc);
|
|
2610
|
-
N(Oc, 17, () => F(G).errorBars, b, (e, t) => {
|
|
2611
|
-
var n = un(), r = S(n), i = w(r), a = w(i);
|
|
2612
|
-
x((e, n, o) => {
|
|
2613
|
-
E(r, "x1", F(t).xCenter), E(r, "y1", F(t).yHi), E(r, "x2", F(t).xCenter), E(r, "y2", F(t).yLo), E(r, "stroke", F(t).color), M(r, e), E(i, "x1", F(t).xCenter - F(t).cap), E(i, "y1", F(t).yHi), E(i, "x2", F(t).xCenter + F(t).cap), E(i, "y2", F(t).yHi), E(i, "stroke", F(t).color), M(i, n), E(a, "x1", F(t).xCenter - F(t).cap), E(a, "y1", F(t).yLo), E(a, "x2", F(t).xCenter + F(t).cap), E(a, "y2", F(t).yLo), E(a, "stroke", F(t).color), M(a, o);
|
|
2614
|
-
}, [
|
|
2615
|
-
() => `opacity:${J(F(t).series)}`,
|
|
2616
|
-
() => `opacity:${J(F(t).series)}`,
|
|
2617
|
-
() => `opacity:${J(F(t).series)}`
|
|
2618
|
-
]), m(e, n);
|
|
2619
|
-
});
|
|
2620
|
-
var kc = w(Oc);
|
|
2621
|
-
N(kc, 17, () => F(G).scatterPoints, b, (e, t, n) => {
|
|
2622
|
-
var r = dn();
|
|
2623
|
-
let i;
|
|
2624
|
-
x((e, n, a, o) => {
|
|
2625
|
-
i = P(r, 0, "sv-grid-chart-scatter svelte-kvdein", null, i, e), E(r, "cx", F(t).cx), E(r, "cy", F(t).cy), E(r, "r", F(t).r), E(r, "fill", F(t).color), E(r, "stroke", F(t).color), M(r, n), E(r, "role", F(Y) || f.onSelect ? "button" : "img"), E(r, "tabindex", a), E(r, "aria-label", o);
|
|
2626
|
-
}, [
|
|
2627
|
-
() => ({ "is-selected": Ro(F(t).label || F(t).series, F(t).series, n) }),
|
|
2628
|
-
() => `opacity:${J(F(t).series) * zo(F(t).label || F(t).series, F(t).series, n)}`,
|
|
2629
|
-
() => Is(".sv-grid-chart-scatter", n),
|
|
2630
|
-
() => `${F(t).label || F(t).series}: ${V(F(t).x)}, ${V(F(t).y)}`
|
|
2631
|
-
]), g("mousemove", r, (e) => Cs(e.clientX, e.clientY, F(t))), y("mouseleave", r, Q), g("click", r, function(...e) {
|
|
2632
|
-
(F(Y) || f.onSelect ? (e) => {
|
|
2633
|
-
e.stopPropagation(), Ms(F(t).label || F(t).series, F(t).series, F(t).y, n, e);
|
|
2634
|
-
} : void 0)?.apply(this, e);
|
|
2635
|
-
}), y("focus", r, (e) => {
|
|
2636
|
-
Ls(".sv-grid-chart-scatter", n);
|
|
2637
|
-
let r = zs(e.currentTarget);
|
|
2638
|
-
Cs(r.x, r.y, F(t));
|
|
2639
|
-
}), y("blur", r, Q), g("keydown", r, (e) => Rs(e, ".sv-grid-chart-scatter", n, F(Y) || f.onSelect ? () => Ms(F(t).label || F(t).series, F(t).series, F(t).y, n, e) : null)), m(e, r);
|
|
2640
|
-
}), j(bc);
|
|
2641
|
-
var Ac = w(bc);
|
|
2642
|
-
N(Ac, 17, () => F(G).referenceLines, b, (e, t) => {
|
|
2643
|
-
var n = mn(), r = S(n), i = w(r), a = (e) => {
|
|
2644
|
-
let n = A(() => Math.max(28, F(t).label.length * 6.4 + 10));
|
|
2645
|
-
var r = fn(), i = C(r), a = w(i), o = C(a, !0);
|
|
2646
|
-
j(a), j(r), x(() => {
|
|
2647
|
-
E(i, "x", F(G).plot.x + F(G).plot.w - F(n)), E(i, "y", F(t).y - 8), E(i, "width", F(n)), E(i, "fill", F(t).color), E(a, "x", F(G).plot.x + F(G).plot.w - F(n) / 2), E(a, "y", F(t).y + 3.5), O(o, F(t).label);
|
|
2648
|
-
}), m(e, r);
|
|
2649
|
-
}, o = (e) => {
|
|
2650
|
-
var n = pn(), r = C(n, !0);
|
|
2651
|
-
j(n), x(() => {
|
|
2652
|
-
E(n, "x", F(G).plot.x + F(G).plot.w - 3), E(n, "y", F(t).y - 3), E(n, "fill", F(t).color), O(r, F(t).label);
|
|
2653
|
-
}), m(e, n);
|
|
2654
|
-
};
|
|
2655
|
-
h(i, (e) => {
|
|
2656
|
-
F(t).pill ? e(a) : e(o, -1);
|
|
2657
|
-
}), x(() => {
|
|
2658
|
-
E(r, "x1", F(G).plot.x), E(r, "y1", F(t).y), E(r, "x2", F(G).plot.x + F(G).plot.w), E(r, "y2", F(t).y), E(r, "stroke", F(t).color), E(r, "stroke-dasharray", F(t).dashed ? "5 4" : void 0);
|
|
2659
|
-
}), m(e, n);
|
|
2660
|
-
});
|
|
2661
|
-
var jc = w(Ac);
|
|
2662
|
-
N(jc, 17, () => F(G).referenceLinesV, b, (e, t) => {
|
|
2663
|
-
var n = hn(), r = S(n), i = w(r), a = C(i, !0);
|
|
2664
|
-
j(i), x(() => {
|
|
2665
|
-
E(r, "x1", F(t).x), E(r, "y1", F(G).plot.y), E(r, "x2", F(t).x), E(r, "y2", F(G).plot.y + F(G).plot.h), E(r, "stroke", F(t).color), E(r, "stroke-dasharray", F(t).dashed ? "5 4" : void 0), E(i, "x", F(t).x + 3), E(i, "y", F(G).plot.y + 9), E(i, "fill", F(t).color), O(a, F(t).label);
|
|
2666
|
-
}), m(e, n);
|
|
2667
|
-
});
|
|
2668
|
-
var Mc = w(jc);
|
|
2669
|
-
let i;
|
|
2670
|
-
N(Mc, 23, () => F(G).overlays, (e, t) => e.label + t, (e, t) => {
|
|
2671
|
-
var n = _n(), r = S(n), i = (e) => {
|
|
2672
|
-
var n = gn();
|
|
2673
|
-
x(() => {
|
|
2674
|
-
E(n, "d", F(t).bandPath), E(n, "fill", F(t).color), E(n, "stroke", F(t).color);
|
|
2675
|
-
}), m(e, n);
|
|
2676
|
-
};
|
|
2677
|
-
h(r, (e) => {
|
|
2678
|
-
F(t).bandPath && e(i);
|
|
2679
|
-
});
|
|
2680
|
-
var a = w(r);
|
|
2681
|
-
x(() => {
|
|
2682
|
-
E(a, "d", F(t).path), E(a, "stroke", F(t).color);
|
|
2683
|
-
}), m(e, n);
|
|
2684
|
-
}), j(Mc);
|
|
2685
|
-
var Nc = w(Mc);
|
|
2686
|
-
N(Nc, 17, () => F(Do), b, (e, t) => {
|
|
2687
|
-
var n = yn(), r = S(n), i = (e) => {
|
|
2688
|
-
var n = vn();
|
|
2689
|
-
x((e) => {
|
|
2690
|
-
E(n, "x1", F(t).leader.x1), E(n, "y1", F(t).leader.y1), E(n, "x2", F(t).leader.x2), E(n, "y2", F(t).leader.y2), M(n, e);
|
|
2691
|
-
}, [() => `opacity:${J(F(t).series)}`]), m(e, n);
|
|
2692
|
-
};
|
|
2693
|
-
h(r, (e) => {
|
|
2694
|
-
F(t).leader && e(i);
|
|
2695
|
-
});
|
|
2696
|
-
var a = w(r);
|
|
2697
|
-
let o;
|
|
2698
|
-
var s = C(a, !0);
|
|
2699
|
-
j(a), x((e) => {
|
|
2700
|
-
o = P(a, 0, "sv-grid-chart-datalabel svelte-kvdein", null, o, { "on-bar": F(t).onBar }), E(a, "x", F(t).x), E(a, "y", F(t).y), E(a, "text-anchor", F(t).anchor), E(a, "transform", F(t).angle ? `rotate(${F(t).angle} ${F(t).x} ${F(t).y})` : void 0), M(a, e), O(s, F(t).text);
|
|
2701
|
-
}, [() => `opacity:${J(F(t).series)}`]), m(e, n);
|
|
2702
|
-
});
|
|
2703
|
-
var Pc = w(Nc);
|
|
2704
|
-
N(Pc, 17, () => F(G).seriesLabels, (e) => e.series, (e, t) => {
|
|
2705
|
-
var n = bn(), r = C(n, !0);
|
|
2706
|
-
j(n), x((e) => {
|
|
2707
|
-
E(n, "x", F(t).x), E(n, "y", F(t).y + 3.5), E(n, "fill", F(t).color), M(n, e), O(r, F(t).text);
|
|
2708
|
-
}, [() => `opacity:${J(F(t).series)}`]), m(e, n);
|
|
2709
|
-
});
|
|
2710
|
-
var Fc = w(Pc), Ic = (e) => {
|
|
2711
|
-
var t = D(), n = S(t);
|
|
2712
|
-
ue(n, () => f.overlay, () => F(fo)), m(e, t);
|
|
2713
|
-
};
|
|
2714
|
-
h(Fc, (e) => {
|
|
2715
|
-
f.overlay && e(Ic);
|
|
2716
|
-
});
|
|
2717
|
-
var Lc = w(Fc);
|
|
2718
|
-
N(Lc, 19, () => F(G).annotations, (e, t) => e.label + t, (e, t, n) => {
|
|
2719
|
-
let r = A(() => F(t).placement === "left" ? -8 : F(t).placement === "right" ? 8 : 0), i = A(() => F(t).placement === "bottom" ? 14 : F(t).placement === "top" ? -8 : 0), a = A(() => F(t).placement === "left" ? "end" : F(t).placement === "right" ? "start" : "middle"), o = A(() => F(xi) && !!f.onAnnotationRemove), s = A(() => Math.max(14, F(t).label.length * 6.2 + 8));
|
|
2720
|
-
var c = Tn();
|
|
2721
|
-
let l;
|
|
2722
|
-
var u = C(c), d = (e) => {
|
|
2723
|
-
var n = xn(), r = S(n), i = w(r), a = w(i), o = C(a, !0);
|
|
2724
|
-
j(a), x(() => {
|
|
2725
|
-
E(r, "x1", F(t).x), E(r, "y1", F(t).y), E(r, "x2", F(t).x), E(r, "y2", F(t).y - 24), E(r, "stroke", F(t).color), E(i, "x", F(t).x), E(i, "y", F(t).y - 24), E(i, "width", F(s)), E(i, "fill", F(t).color), E(a, "x", F(t).x + F(s) / 2), E(a, "y", F(t).y - 14.5), O(o, F(t).label);
|
|
2726
|
-
}), m(e, n);
|
|
2727
|
-
}, ee = (e) => {
|
|
2728
|
-
var n = Sn(), o = S(n), s = w(o), c = C(s, !0);
|
|
2729
|
-
j(s);
|
|
2730
|
-
var l = w(s), u = C(l, !0);
|
|
2731
|
-
j(l), x((e) => {
|
|
2732
|
-
E(o, "d", `M${F(t).x},${F(t).y} c-7,-9 -8,-13 -8,-16 a8,8 0 1,1 16,0 c0,3 -1,7 -8,16 z`), E(o, "fill", F(t).color), E(s, "x", F(t).x), E(s, "y", F(t).y - 12.5), O(c, e), E(l, "x", F(t).x + F(r)), E(l, "y", F(t).y + F(i)), E(l, "text-anchor", F(a)), E(l, "fill", F(t).color), O(u, F(t).label);
|
|
2733
|
-
}, [() => F(t).label.slice(0, 1)]), m(e, n);
|
|
2734
|
-
}, te = (e) => {
|
|
2735
|
-
var n = Cn(), o = S(n), s = w(o), c = C(s, !0);
|
|
2736
|
-
j(s), x(() => {
|
|
2737
|
-
E(o, "x", F(t).x - 4.5), E(o, "y", F(t).y - 4.5), E(o, "fill", F(t).color), E(s, "x", F(t).x + F(r)), E(s, "y", F(t).y + F(i)), E(s, "text-anchor", F(a)), E(s, "fill", F(t).color), O(c, F(t).label);
|
|
2738
|
-
}), m(e, n);
|
|
2739
|
-
}, ne = (e) => {
|
|
2740
|
-
var n = wn(), s = S(n), c = w(s), l = C(c, !0);
|
|
2741
|
-
j(c), x(() => {
|
|
2742
|
-
E(s, "cx", F(t).x), E(s, "cy", F(t).y), E(s, "r", F(o) ? 6 : 4), E(s, "fill", F(t).color), E(c, "x", F(t).x + F(r)), E(c, "y", F(t).y + F(i)), E(c, "text-anchor", F(a)), E(c, "fill", F(t).color), O(l, F(t).label);
|
|
2743
|
-
}), m(e, n);
|
|
2744
|
-
};
|
|
2745
|
-
h(u, (e) => {
|
|
2746
|
-
F(t).shape === "flag" ? e(d) : F(t).shape === "pin" ? e(ee, 1) : F(t).shape === "square" ? e(te, 2) : e(ne, -1);
|
|
2747
|
-
}), j(c), x((e) => {
|
|
2748
|
-
l = P(c, 0, "sv-grid-chart-annotation-marker svelte-kvdein", null, l, {
|
|
2749
|
-
"is-removable": F(o),
|
|
2750
|
-
"has-text": !!F(t).text
|
|
2751
|
-
}), E(c, "role", F(o) ? "button" : F(t).text ? "img" : void 0), E(c, "tabindex", F(o) || F(t).text ? 0 : void 0), E(c, "aria-label", e);
|
|
2752
|
-
}, [() => F(o) ? tt(F(z).removeNote, { label: F(t).label }) : F(t).text ? `${F(t).label}: ${F(t).text}` : void 0]), g("click", c, (e) => {
|
|
2753
|
-
!F(xi) || !f.onAnnotationRemove || (e.stopPropagation(), f.onAnnotationRemove(F(n)));
|
|
2754
|
-
}), g("keydown", c, (e) => {
|
|
2755
|
-
!F(xi) || !f.onAnnotationRemove || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), f.onAnnotationRemove(F(n)));
|
|
2756
|
-
}), y("mouseenter", c, (e) => {
|
|
2757
|
-
F(t).text && Z(e.clientX, e.clientY, F(t).label, [{ value: F(t).text }]);
|
|
2758
|
-
}), y("mouseleave", c, () => {
|
|
2759
|
-
F(t).text && p(ls, null);
|
|
2760
|
-
}), y("focus", c, () => {
|
|
2761
|
-
if (!F(t).text || !F(Xi)) return;
|
|
2762
|
-
let e = F(Xi).getBoundingClientRect();
|
|
2763
|
-
Z(e.left + F(t).x * e.width / F(G).width, e.top + F(t).y * e.height / F(G).height, F(t).label, [{ value: F(t).text }]);
|
|
2764
|
-
}), y("blur", c, () => {
|
|
2765
|
-
F(t).text && p(ls, null);
|
|
2766
|
-
}), m(e, c);
|
|
2767
|
-
});
|
|
2768
|
-
var Rc = w(Lc), zc = (e) => {
|
|
2769
|
-
var t = Rn(), n = C(t);
|
|
2770
|
-
N(n, 17, () => F(G).drawings, (e) => e.id, (e, t) => {
|
|
2771
|
-
let n = A(() => F(t).points[0]), r = A(() => F(t).points[1]), i = A(() => F(da) === F(t).id);
|
|
2772
|
-
var a = Pn();
|
|
2773
|
-
let o;
|
|
2774
|
-
var s = C(a), c = (e) => {
|
|
2775
|
-
let i = A(() => Math.atan2(F(r).y - F(n).y, F(r).x - F(n).x));
|
|
2776
|
-
var a = Dn(), o = S(a), s = w(o), c = w(s), l = (e) => {
|
|
2777
|
-
var n = En();
|
|
2778
|
-
x((e) => {
|
|
2779
|
-
E(n, "d", e), E(n, "fill", F(t).color);
|
|
2780
|
-
}, [() => `M${F(r).x},${F(r).y} L${F(r).x - 10 * Math.cos(F(i) - .45)},${F(r).y - 10 * Math.sin(F(i) - .45)} L${F(r).x - 10 * Math.cos(F(i) + .45)},${F(r).y - 10 * Math.sin(F(i) + .45)} Z`]), m(e, n);
|
|
2781
|
-
};
|
|
2782
|
-
h(c, (e) => {
|
|
2783
|
-
F(t).kind === "arrow" && e(l);
|
|
2784
|
-
}), x(() => {
|
|
2785
|
-
E(o, "x1", F(n).x), E(o, "y1", F(n).y), E(o, "x2", F(r).x), E(o, "y2", F(r).y), E(s, "x1", F(n).x), E(s, "y1", F(n).y), E(s, "x2", F(r).x), E(s, "y2", F(r).y), E(s, "stroke", F(t).color);
|
|
2786
|
-
}), m(e, a);
|
|
2787
|
-
}, l = (e) => {
|
|
2788
|
-
var i = On();
|
|
2789
|
-
x((e, n, r, a) => {
|
|
2790
|
-
E(i, "x", e), E(i, "y", n), E(i, "width", r), E(i, "height", a), E(i, "fill", F(t).color), E(i, "stroke", F(t).color);
|
|
2791
|
-
}, [
|
|
2792
|
-
() => Math.min(F(n).x, F(r).x),
|
|
2793
|
-
() => Math.min(F(n).y, F(r).y),
|
|
2794
|
-
() => Math.abs(F(r).x - F(n).x),
|
|
2795
|
-
() => Math.abs(F(r).y - F(n).y)
|
|
2796
|
-
]), m(e, i);
|
|
2797
|
-
}, u = (e) => {
|
|
2798
|
-
var r = kn(), i = S(r), a = w(i), o = w(a), s = C(o, !0);
|
|
2799
|
-
j(o), x(() => {
|
|
2800
|
-
E(i, "x1", F(n).x), E(i, "y1", F(n).y), E(i, "x2", F(G).plot.x + F(G).plot.w), E(i, "y2", F(n).y), E(a, "x1", F(n).x), E(a, "y1", F(n).y), E(a, "x2", F(G).plot.x + F(G).plot.w), E(a, "y2", F(n).y), E(a, "stroke", F(t).color), E(o, "x", F(G).plot.x + F(G).plot.w - 3), E(o, "y", F(n).y - 3), E(o, "fill", F(t).color), O(s, F(t).label);
|
|
2801
|
-
}), m(e, r);
|
|
2802
|
-
}, d = (e) => {
|
|
2803
|
-
let i = A(() => Math.min(F(n).x, F(r).x)), a = A(() => Math.max(F(n).x, F(r).x));
|
|
2804
|
-
var o = jn(), s = S(o);
|
|
2805
|
-
N(s, 17, () => F(t).levels, (e) => e.ratio, (e, n) => {
|
|
2806
|
-
var r = An(), o = S(r), s = w(o), c = C(s, !0);
|
|
2807
|
-
j(s), x(() => {
|
|
2808
|
-
E(o, "x1", F(i)), E(o, "y1", F(n).y), E(o, "x2", F(a)), E(o, "y2", F(n).y), E(o, "stroke", F(t).color), E(o, "stroke-dasharray", F(n).ratio === 0 || F(n).ratio === 1 ? void 0 : "3 3"), E(s, "x", F(i) + 3), E(s, "y", F(n).y - 2), E(s, "fill", F(t).color), O(c, F(n).label);
|
|
2809
|
-
}), m(e, r);
|
|
2810
|
-
});
|
|
2811
|
-
var c = w(s);
|
|
2812
|
-
x((e, t) => {
|
|
2813
|
-
E(c, "x", F(i)), E(c, "y", e), E(c, "width", F(a) - F(i)), E(c, "height", t);
|
|
2814
|
-
}, [() => Math.min(F(n).y, F(r).y), () => Math.abs(F(r).y - F(n).y)]), m(e, o);
|
|
2815
|
-
}, ee = (e) => {
|
|
2816
|
-
var r = Mn(), i = C(r, !0);
|
|
2817
|
-
j(r), x(() => {
|
|
2818
|
-
E(r, "x", F(n).x), E(r, "y", F(n).y), E(r, "fill", F(t).color), O(i, F(t).text ?? "");
|
|
2819
|
-
}), m(e, r);
|
|
2820
|
-
};
|
|
2821
|
-
h(s, (e) => {
|
|
2822
|
-
(F(t).kind === "trend" || F(t).kind === "arrow") && F(r) ? e(c) : F(t).kind === "rect" && F(r) ? e(l, 1) : F(t).kind === "hray" ? e(u, 2) : F(t).kind === "fib" && F(r) && F(t).levels ? e(d, 3) : F(t).kind === "text" && e(ee, 4);
|
|
2823
|
-
});
|
|
2824
|
-
var te = w(s), ne = (e) => {
|
|
2825
|
-
var n = D(), r = S(n);
|
|
2826
|
-
N(r, 17, () => F(t).points, b, (e, n, r) => {
|
|
2827
|
-
var i = Nn();
|
|
2828
|
-
x(() => {
|
|
2829
|
-
E(i, "cx", F(n).x), E(i, "cy", F(n).y), E(i, "stroke", F(t).color);
|
|
2830
|
-
}), g("pointerdown", i, (e) => {
|
|
2831
|
-
e.stopPropagation(), e.preventDefault(), p(ha, {
|
|
2832
|
-
id: F(t).id,
|
|
2833
|
-
index: r
|
|
2834
|
-
}, !0), F(Xi)?.setPointerCapture?.(e.pointerId);
|
|
2835
|
-
}), m(e, i);
|
|
2836
|
-
}), m(e, n);
|
|
2837
|
-
};
|
|
2838
|
-
h(te, (e) => {
|
|
2839
|
-
F(i) && Je() && e(ne);
|
|
2840
|
-
}), j(a), x((e) => {
|
|
2841
|
-
o = P(a, 0, `sv-grid-chart-drawing is-${F(t).kind}`, "svelte-kvdein", o, { "is-selected": F(i) }), E(a, "role", Je() ? "button" : void 0), E(a, "tabindex", Je() ? 0 : void 0), E(a, "aria-label", e);
|
|
2842
|
-
}, [() => Je() ? `${tt(F(z).drawing, { tool: F(sa)[F(t).kind] })}${F(t).text ? `: ${F(t).text}` : ""}` : void 0]), g("click", a, (e) => {
|
|
2843
|
-
Je() && !F(la) && (e.stopPropagation(), p(da, F(i) ? null : F(t).id, !0));
|
|
2844
|
-
}), g("keydown", a, (e) => {
|
|
2845
|
-
Je() && Ta(e, F(t).id);
|
|
2846
|
-
}), m(e, a);
|
|
2847
|
-
});
|
|
2848
|
-
var r = w(n), i = (e) => {
|
|
2849
|
-
var t = Ln(), n = S(t), r = w(n), i = (e) => {
|
|
2850
|
-
var t = Fn();
|
|
2851
|
-
x((e, n, r, i) => {
|
|
2852
|
-
E(t, "x", e), E(t, "y", n), E(t, "width", r), E(t, "height", i);
|
|
2853
|
-
}, [
|
|
2854
|
-
() => Math.min(F(H).px, F(ua).x),
|
|
2855
|
-
() => Math.min(F(H).py, F(ua).y),
|
|
2856
|
-
() => Math.abs(F(ua).x - F(H).px),
|
|
2857
|
-
() => Math.abs(F(ua).y - F(H).py)
|
|
2858
|
-
]), m(e, t);
|
|
2859
|
-
}, a = (e) => {
|
|
2860
|
-
var t = In();
|
|
2861
|
-
x(() => {
|
|
2862
|
-
E(t, "x1", F(H).px), E(t, "y1", F(H).py), E(t, "x2", F(ua).x), E(t, "y2", F(ua).y);
|
|
2863
|
-
}), m(e, t);
|
|
2864
|
-
};
|
|
2865
|
-
h(r, (e) => {
|
|
2866
|
-
F(la) === "rect" ? e(i) : e(a, -1);
|
|
2867
|
-
}), x(() => {
|
|
2868
|
-
E(n, "cx", F(H).px), E(n, "cy", F(H).py);
|
|
2869
|
-
}), m(e, t);
|
|
2870
|
-
};
|
|
2871
|
-
h(r, (e) => {
|
|
2872
|
-
F(H) && F(ua) && e(i);
|
|
2873
|
-
}), j(t), x(() => E(t, "clip-path", `url(#${Ai}-plot)`)), m(e, t);
|
|
2874
|
-
};
|
|
2875
|
-
h(Rc, (e) => {
|
|
2876
|
-
(F(G).drawings.length || F(H)) && e(zc);
|
|
2877
|
-
});
|
|
2878
|
-
var Bc = w(Rc), Vc = (e) => {
|
|
2879
|
-
var t = D(), n = S(t), r = (e) => {
|
|
2880
|
-
let t = A(() => F(G).plot.y + F(wo) * F(ds) + F(wo) / 2);
|
|
2881
|
-
var n = zn();
|
|
2882
|
-
x(() => {
|
|
2883
|
-
E(n, "x1", F(G).plot.x), E(n, "y1", F(t)), E(n, "x2", F(G).plot.x + F(G).plot.w), E(n, "y2", F(t));
|
|
2884
|
-
}), m(e, n);
|
|
2885
|
-
}, i = (e) => {
|
|
2886
|
-
let t = A(() => F(G).lines[0]?.points[F(ds)]), n = A(() => F(t) && Number.isFinite(F(t).x) ? F(t).x : F(G).plot.x + F(wo) * F(ds) + F(wo) / 2);
|
|
2887
|
-
var r = Hn(), i = S(r), a = w(i), o = (e) => {
|
|
2888
|
-
let t = A(() => as(F(ls)?.title ?? F(W).categories[F(ds)] ?? "", 16)), r = A(() => Math.max(24, F(t).length * 6.2 + 10));
|
|
2889
|
-
var i = Vn(), a = S(i), o = C(a), s = w(o), c = C(s, !0);
|
|
2890
|
-
j(s), j(a);
|
|
2891
|
-
var l = w(a), u = (e) => {
|
|
2892
|
-
let t = A(() => hs(F(uo).yInvert(F(ms)))), n = A(() => Math.max(24, F(t).length * 6.2 + 10));
|
|
2893
|
-
var r = Bn(), i = C(r), a = w(i), o = C(a, !0);
|
|
2894
|
-
j(a), j(r), x((e, r) => {
|
|
2895
|
-
E(i, "x", e), E(i, "y", F(ms) - 7.5), E(i, "width", F(n)), E(a, "x", r), E(a, "y", F(ms) + 3.5), O(o, F(t));
|
|
2896
|
-
}, [() => Math.max(0, F(G).plot.x - F(n) - 2), () => Math.max(F(n) / 2, F(G).plot.x - 2 - F(n) / 2)]), m(e, r);
|
|
2897
|
-
};
|
|
2898
|
-
h(l, (e) => {
|
|
2899
|
-
F(ms) != null && F(uo) && F(G).axes && e(u);
|
|
2900
|
-
}), x((e, n) => {
|
|
2901
|
-
E(o, "x", e), E(o, "y", F(G).plot.y + F(G).plot.h + 2), E(o, "width", F(r)), E(s, "x", n), E(s, "y", F(G).plot.y + F(G).plot.h + 13), O(c, F(t));
|
|
2902
|
-
}, [() => Math.max(0, Math.min(F(G).width - F(r), F(n) - F(r) / 2)), () => Math.max(F(r) / 2, Math.min(F(G).width - F(r) / 2, F(n)))]), m(e, i);
|
|
2903
|
-
};
|
|
2904
|
-
h(a, (e) => {
|
|
2905
|
-
Ue() && e(o);
|
|
2906
|
-
}), x(() => {
|
|
2907
|
-
E(i, "x1", F(n)), E(i, "y1", F(G).plot.y), E(i, "x2", F(n)), E(i, "y2", F(G).plot.y + F(G).plot.h);
|
|
2908
|
-
}), m(e, r);
|
|
2909
|
-
};
|
|
2910
|
-
h(n, (e) => {
|
|
2911
|
-
F(q) ? e(r) : e(i, -1);
|
|
2912
|
-
}), m(e, t);
|
|
2913
|
-
};
|
|
2914
|
-
h(Bc, (e) => {
|
|
2915
|
-
F(K) && F(ds) !== null && e(Vc);
|
|
2916
|
-
});
|
|
2917
|
-
var Hc = w(Bc), Uc = (e) => {
|
|
2918
|
-
var t = Yn(), n = S(t);
|
|
2919
|
-
N(n, 17, () => F(G).heatmapRowTicks, (e) => e.value, (e, t, n, r) => {
|
|
2920
|
-
var i = Un(), a = C(i, !0);
|
|
2921
|
-
j(i), x((e) => {
|
|
2922
|
-
E(i, "x", F(G).plot.x - 8), E(i, "y", F(t).y + 3), O(a, e);
|
|
2923
|
-
}, [() => as(F(t).label, 22)]), m(e, i);
|
|
2924
|
-
});
|
|
2925
|
-
var r = w(n);
|
|
2926
|
-
N(r, 19, () => F(G).heatmapColTicks, (e, t) => e.label + t, (e, t, n, r) => {
|
|
2927
|
-
var i = Wn(), a = C(i, !0);
|
|
2928
|
-
j(i), x((e) => {
|
|
2929
|
-
E(i, "x", F(t).x), E(i, "y", F(G).plot.y + F(G).plot.h + 14), O(a, e);
|
|
2930
|
-
}, [() => as(F(t).label, 14)]), m(e, i);
|
|
2931
|
-
});
|
|
2932
|
-
var i = w(r);
|
|
2933
|
-
N(i, 17, () => F(G).heatmapCells, b, (e, t, n) => {
|
|
2934
|
-
var r = Kn(), i = S(r), a = w(i), o = (e) => {
|
|
2935
|
-
var n = Gn(), r = C(n, !0);
|
|
2936
|
-
j(n), x((e) => {
|
|
2937
|
-
E(n, "x", F(t).x + F(t).w / 2), E(n, "y", F(t).y + F(t).h / 2 + 3), E(n, "fill", F(t).textColor), O(r, e);
|
|
2938
|
-
}, [() => V(F(t).value)]), m(e, n);
|
|
2939
|
-
};
|
|
2940
|
-
h(a, (e) => {
|
|
2941
|
-
F(_i).show && F(t).w > 22 && F(t).h > 14 && e(o);
|
|
2942
|
-
}), x((e, n) => {
|
|
2943
|
-
E(i, "x", F(t).x), E(i, "y", F(t).y), E(i, "width", F(t).w), E(i, "height", F(t).h), E(i, "fill", F(t).color), E(i, "role", f.onSelect || F(Y) ? "button" : "img"), E(i, "tabindex", e), E(i, "aria-label", n);
|
|
2944
|
-
}, [() => Is(".sv-grid-chart-heatcell", n), () => `${F(t).rowLabel} ${F(t).colLabel}: ${V(F(t).value)}`]), g("mousemove", i, (e) => ws(e.clientX, e.clientY, F(t))), y("mouseleave", i, Q), y("focus", i, (e) => {
|
|
2945
|
-
Ls(".sv-grid-chart-heatcell", n);
|
|
2946
|
-
let r = zs(e.currentTarget);
|
|
2947
|
-
ws(r.x, r.y, F(t));
|
|
2948
|
-
}), y("blur", i, Q), g("click", i, () => Ms(F(t).colLabel, F(t).rowLabel, F(t).value)), g("keydown", i, (e) => Rs(e, ".sv-grid-chart-heatcell", n, f.onSelect || F(Y) ? () => Ms(F(t).colLabel, F(t).rowLabel, F(t).value) : null, { cols: F(G).heatmapColTicks.length })), m(e, r);
|
|
2949
|
-
});
|
|
2950
|
-
var a = w(i), o = (e) => {
|
|
2951
|
-
let t = A(() => F(G).plot.x + F(G).plot.w + 14), n = A(() => F(G).plot.h - 20), r = A(() => F(G).heatmapLegend);
|
|
2952
|
-
var i = Jn(), a = S(i), o = C(a);
|
|
2953
|
-
N(o, 21, () => F(r), b, (e, t, n) => {
|
|
2954
|
-
var i = qn();
|
|
2955
|
-
x(() => {
|
|
2956
|
-
E(i, "offset", `${n / (F(r).length - 1) * 100}%`), E(i, "stop-color", F(t).color);
|
|
2957
|
-
}), m(e, i);
|
|
2958
|
-
}), j(o), j(a);
|
|
2959
|
-
var s = w(a), c = w(s), l = C(c, !0);
|
|
2960
|
-
j(c);
|
|
2961
|
-
var u = w(c), d = C(u, !0);
|
|
2962
|
-
j(u), x(() => {
|
|
2963
|
-
E(o, "id", `${Ai}-heatscale`), E(s, "x", F(t)), E(s, "y", F(G).plot.y + 10), E(s, "height", F(n)), E(s, "fill", `url(#${Ai}-heatscale)`), E(c, "x", F(t) + 14), E(c, "y", F(G).plot.y + 14), O(l, F(r)[F(r).length - 1].label), E(u, "x", F(t) + 14), E(u, "y", F(G).plot.y + 10 + F(n)), O(d, F(r)[0].label);
|
|
2964
|
-
}), m(e, i);
|
|
2965
|
-
};
|
|
2966
|
-
h(a, (e) => {
|
|
2967
|
-
F(G).heatmapLegend.length && e(o);
|
|
2968
|
-
}), m(e, t);
|
|
2969
|
-
};
|
|
2970
|
-
h(Hc, (e) => {
|
|
2971
|
-
F(_o) && e(Uc);
|
|
2972
|
-
});
|
|
2973
|
-
var Wc = w(Hc), Gc = (e) => {
|
|
2974
|
-
var t = D(), n = S(t);
|
|
2975
|
-
N(n, 17, () => F(G).funnelSegments, b, (e, t, n) => {
|
|
2976
|
-
var r = Zn(), i = S(r), a = w(i), o = (e) => {
|
|
2977
|
-
var n = Xn(), r = S(n), i = C(r, !0);
|
|
2978
|
-
j(r);
|
|
2979
|
-
var a = w(r), o = C(a);
|
|
2980
|
-
j(a), x((e, n, s) => {
|
|
2981
|
-
E(r, "x", F(t).cx), E(r, "y", F(t).cy - 3), E(r, "fill", F(t).textColor), O(i, e), E(a, "x", F(t).cx), E(a, "y", F(t).cy + 11), E(a, "fill", F(t).textColor), O(o, `${n ?? ""} · ${s ?? ""}%`);
|
|
2982
|
-
}, [
|
|
2983
|
-
() => as(F(t).label, 24),
|
|
2984
|
-
() => V(F(t).value),
|
|
2985
|
-
() => (F(t).conversion * 100).toFixed(0)
|
|
2986
|
-
]), m(e, n);
|
|
2987
|
-
}, s = A(() => F(G).plot.h / Math.max(1, F(G).funnelSegments.length) >= 26);
|
|
2988
|
-
h(a, (e) => {
|
|
2989
|
-
F(s) && e(o);
|
|
2990
|
-
}), x((e, n) => {
|
|
2991
|
-
E(i, "d", F(t).path), E(i, "fill", F(t).color), E(i, "role", f.onSelect || F(Y) ? "button" : "img"), E(i, "tabindex", e), E(i, "aria-label", n);
|
|
2992
|
-
}, [() => Is(".sv-grid-chart-funnel-seg", n), () => `${F(t).label}: ${V(F(t).value)}`]), g("mousemove", i, (e) => Ts(e.clientX, e.clientY, F(t))), y("mouseleave", i, Q), y("focus", i, (e) => {
|
|
2993
|
-
Ls(".sv-grid-chart-funnel-seg", n);
|
|
2994
|
-
let r = zs(e.currentTarget);
|
|
2995
|
-
Ts(r.x, r.y, F(t));
|
|
2996
|
-
}), y("blur", i, Q), g("click", i, () => Ms(F(t).label, F(t).label, F(t).value, n)), g("keydown", i, (e) => Rs(e, ".sv-grid-chart-funnel-seg", n, f.onSelect || F(Y) ? () => Ms(F(t).label, F(t).label, F(t).value, n) : null)), m(e, r);
|
|
2997
|
-
}), m(e, t);
|
|
2998
|
-
};
|
|
2999
|
-
h(Wc, (e) => {
|
|
3000
|
-
F(vo) && e(Gc);
|
|
3001
|
-
});
|
|
3002
|
-
var Kc = w(Wc), qc = (e) => {
|
|
3003
|
-
let t = A(() => F(G).radarCenter);
|
|
3004
|
-
var n = nr(), r = S(n);
|
|
3005
|
-
N(r, 17, () => F(G).radarRings, b, (e, n, r) => {
|
|
3006
|
-
let i = A(() => F(t).r * ((r + 1) / F(G).radarRings.length));
|
|
3007
|
-
var a = Qn();
|
|
3008
|
-
x(() => {
|
|
3009
|
-
E(a, "cx", F(t).cx), E(a, "cy", F(t).cy), E(a, "r", F(i));
|
|
3010
|
-
}), m(e, a);
|
|
3011
|
-
});
|
|
3012
|
-
var i = w(r);
|
|
3013
|
-
N(i, 17, () => F(G).radarAxes, b, (e, n) => {
|
|
3014
|
-
let r = A(() => F(n).x - F(t).cx), i = A(() => F(n).y - F(t).cy), a = A(() => F(t).cx + F(r) * 1.08), o = A(() => F(t).cy + F(i) * 1.08);
|
|
3015
|
-
var s = $n(), c = S(s), l = w(c), u = C(l, !0);
|
|
3016
|
-
j(l), x((e) => {
|
|
3017
|
-
E(c, "x1", F(t).cx), E(c, "y1", F(t).cy), E(c, "x2", F(n).x), E(c, "y2", F(n).y), E(l, "x", F(a)), E(l, "y", F(o) + 3), E(l, "text-anchor", e), O(u, F(n).label);
|
|
3018
|
-
}, [() => Math.abs(F(r)) < 1 ? "middle" : F(r) > 0 ? "start" : "end"]), m(e, s);
|
|
3019
|
-
});
|
|
3020
|
-
var a = w(i);
|
|
3021
|
-
N(a, 17, () => F(G).radarSeries, b, (e, t, n) => {
|
|
3022
|
-
var r = tr(), i = S(r), a = w(i);
|
|
3023
|
-
N(a, 17, () => F(t).points, b, (e, r, i) => {
|
|
3024
|
-
let a = A(() => n * F(t).points.length + i);
|
|
3025
|
-
var o = er();
|
|
3026
|
-
x((e, n) => {
|
|
3027
|
-
E(o, "cx", F(r).x), E(o, "cy", F(r).y), E(o, "fill", F(t).color), E(o, "tabindex", e), E(o, "aria-label", n);
|
|
3028
|
-
}, [() => Is(".sv-grid-chart-radar-dot", F(a)), () => `${F(t).label} ${F(r).axis}: ${V(F(r).value)}`]), g("mousemove", o, (e) => As(e.clientX, e.clientY, F(t).label, F(r).axis, F(r).value, F(t).color)), y("mouseleave", o, Q), y("focus", o, (e) => {
|
|
3029
|
-
Ls(".sv-grid-chart-radar-dot", F(a));
|
|
3030
|
-
let n = zs(e.currentTarget);
|
|
3031
|
-
As(n.x, n.y, F(t).label, F(r).axis, F(r).value, F(t).color);
|
|
3032
|
-
}), y("blur", o, Q), g("keydown", o, (e) => Rs(e, ".sv-grid-chart-radar-dot", F(a))), m(e, o);
|
|
3033
|
-
}), x((e) => {
|
|
3034
|
-
E(i, "d", F(t).path), E(i, "fill", F(t).color), E(i, "stroke", F(t).color), M(i, e);
|
|
3035
|
-
}, [() => `opacity:${J(F(t).label)}`]), m(e, r);
|
|
3036
|
-
}), m(e, n);
|
|
3037
|
-
};
|
|
3038
|
-
h(Kc, (e) => {
|
|
3039
|
-
F(yo) && F(G).radarCenter && e(qc);
|
|
3040
|
-
});
|
|
3041
|
-
var Jc = w(Kc), Yc = (e) => {
|
|
3042
|
-
var t = cr(), n = S(t);
|
|
3043
|
-
N(n, 17, () => F(G).calendarMonthTicks, b, (e, t, n, r) => {
|
|
3044
|
-
var i = rr(), a = C(i, !0);
|
|
3045
|
-
j(i), x(() => {
|
|
3046
|
-
E(i, "x", F(t).x), E(i, "y", F(G).plot.y - 8), O(a, F(t).label);
|
|
3047
|
-
}), m(e, i);
|
|
3048
|
-
});
|
|
3049
|
-
var r = w(n);
|
|
3050
|
-
N(r, 16, () => [
|
|
3051
|
-
"Mon",
|
|
3052
|
-
"Wed",
|
|
3053
|
-
"Fri"
|
|
3054
|
-
], b, (e, t, n) => {
|
|
3055
|
-
let r = A(() => [
|
|
3056
|
-
1,
|
|
3057
|
-
3,
|
|
3058
|
-
5
|
|
3059
|
-
][n]), i = A(() => F(G).calendarCells[F(r)]);
|
|
3060
|
-
var a = D(), o = S(a), s = (e) => {
|
|
3061
|
-
var n = ir(), r = C(n, !0);
|
|
3062
|
-
j(n), x(() => {
|
|
3063
|
-
E(n, "x", F(G).plot.x - 6), E(n, "y", F(i).y + F(i).size / 2 + 3), O(r, t);
|
|
3064
|
-
}), m(e, n);
|
|
3065
|
-
};
|
|
3066
|
-
h(o, (e) => {
|
|
3067
|
-
F(i) && e(s);
|
|
3068
|
-
}), m(e, a);
|
|
3069
|
-
});
|
|
3070
|
-
var i = w(r);
|
|
3071
|
-
N(i, 17, () => F(G).calendarCells, b, (e, t, n) => {
|
|
3072
|
-
var r = ar();
|
|
3073
|
-
let i;
|
|
3074
|
-
x((e, n) => {
|
|
3075
|
-
i = P(r, 0, "sv-grid-chart-calendar-cell svelte-kvdein", null, i, { "is-blank": !F(t).defined }), E(r, "x", F(t).x + 1), E(r, "y", F(t).y + 1), E(r, "width", F(t).size - 2), E(r, "height", F(t).size - 2), E(r, "fill", F(t).defined ? F(t).color : "transparent"), E(r, "tabindex", e), E(r, "aria-label", n);
|
|
3076
|
-
}, [() => Is(".sv-grid-chart-calendar-cell", n), () => `${vs(F(t).date)}: ${F(t).defined ? V(F(t).value) : F(z).noValue}`]), g("mousemove", r, (e) => F(t).defined && Z(e.clientX, e.clientY, vs(F(t).date), [{
|
|
3077
|
-
color: F(t).color,
|
|
3078
|
-
value: V(F(t).value)
|
|
3079
|
-
}])), y("mouseleave", r, Q), y("focus", r, (e) => {
|
|
3080
|
-
if (Ls(".sv-grid-chart-calendar-cell", n), F(t).defined) {
|
|
3081
|
-
let n = zs(e.currentTarget);
|
|
3082
|
-
Z(n.x, n.y, vs(F(t).date), [{
|
|
3083
|
-
color: F(t).color,
|
|
3084
|
-
value: V(F(t).value)
|
|
3085
|
-
}]);
|
|
3086
|
-
}
|
|
3087
|
-
}), y("blur", r, Q), g("keydown", r, (e) => Rs(e, ".sv-grid-chart-calendar-cell", n, null, {
|
|
3088
|
-
cols: 7,
|
|
3089
|
-
colMajor: !0
|
|
3090
|
-
})), m(e, r);
|
|
3091
|
-
});
|
|
3092
|
-
var a = w(i), o = (e) => {
|
|
3093
|
-
let t = A(() => F(G).plot.x + F(G).plot.w + 12), n = A(() => F(G).plot.y + 4);
|
|
3094
|
-
var r = sr(), i = S(r), a = w(i);
|
|
3095
|
-
N(a, 17, () => F(G).calendarLegend, b, (e, r, i) => {
|
|
3096
|
-
var a = or(), o = S(a), s = w(o), c = C(s, !0);
|
|
3097
|
-
j(s), x(() => {
|
|
3098
|
-
E(o, "x", F(t)), E(o, "y", F(n) + 6 + i * 13), E(o, "fill", F(r).color), E(s, "x", F(t) + 14), E(s, "y", F(n) + 14 + i * 13), O(c, F(r).label);
|
|
3099
|
-
}), m(e, a);
|
|
3100
|
-
});
|
|
3101
|
-
var o = w(a);
|
|
3102
|
-
x(() => {
|
|
3103
|
-
E(i, "x", F(t)), E(i, "y", F(n)), E(o, "x", F(t)), E(o, "y", F(n) + 12 + F(G).calendarLegend.length * 13);
|
|
3104
|
-
}), m(e, r);
|
|
3105
|
-
};
|
|
3106
|
-
h(a, (e) => {
|
|
3107
|
-
F(G).calendarLegend.length && e(o);
|
|
3108
|
-
}), m(e, t);
|
|
3109
|
-
};
|
|
3110
|
-
h(Jc, (e) => {
|
|
3111
|
-
F(bo) && e(Yc);
|
|
3112
|
-
});
|
|
3113
|
-
var Xc = w(Jc), Zc = (e) => {
|
|
3114
|
-
let t = A(() => F(G).gauge);
|
|
3115
|
-
var n = fr(), r = S(n);
|
|
3116
|
-
N(r, 17, () => F(t).ticks, b, (e, t) => {
|
|
3117
|
-
var n = lr();
|
|
3118
|
-
let r;
|
|
3119
|
-
x(() => {
|
|
3120
|
-
r = P(n, 0, "sv-grid-chart-gauge-tick svelte-kvdein", null, r, { "is-major": F(t).major }), E(n, "x1", F(t).x1), E(n, "y1", F(t).y1), E(n, "x2", F(t).x2), E(n, "y2", F(t).y2);
|
|
3121
|
-
}), m(e, n);
|
|
3122
|
-
});
|
|
3123
|
-
var i = w(r), a = w(i);
|
|
3124
|
-
N(a, 17, () => F(t).rangePaths, b, (e, t) => {
|
|
3125
|
-
var n = ur();
|
|
3126
|
-
x(() => {
|
|
3127
|
-
E(n, "d", F(t).path), E(n, "stroke", F(t).color);
|
|
3128
|
-
}), m(e, n);
|
|
3129
|
-
});
|
|
3130
|
-
var o = w(a), s = w(o), c = (e) => {
|
|
3131
|
-
var n = dr();
|
|
3132
|
-
x(() => {
|
|
3133
|
-
E(n, "x1", F(t).target.x1), E(n, "y1", F(t).target.y1), E(n, "x2", F(t).target.x2), E(n, "y2", F(t).target.y2);
|
|
3134
|
-
}), m(e, n);
|
|
3135
|
-
};
|
|
3136
|
-
h(s, (e) => {
|
|
3137
|
-
F(t).target && e(c);
|
|
3138
|
-
});
|
|
3139
|
-
var l = w(s), u = w(l), d = w(u), ee = w(d), te = C(ee, !0);
|
|
3140
|
-
j(ee);
|
|
3141
|
-
var ne = w(ee), re = C(ne, !0);
|
|
3142
|
-
j(ne);
|
|
3143
|
-
var ie = w(ne), f = C(ie);
|
|
3144
|
-
j(ie), x((e, n, r, a) => {
|
|
3145
|
-
E(i, "d", F(t).trackPath), E(o, "d", F(t).valuePath), E(o, "stroke", F(t).valueColor ?? "var(--sg-accent, #2563eb)"), E(l, "d", F(t).needle.path), E(u, "cx", F(t).cx), E(u, "cy", F(t).cy), E(u, "r", F(t).needle.hubR), E(d, "cx", F(t).cx), E(d, "cy", F(t).cy), E(ee, "x", F(t).minLabel.x), E(ee, "y", F(t).minLabel.y), O(te, e), E(ne, "x", F(t).maxLabel.x), E(ne, "y", F(t).maxLabel.y), O(re, n), E(ie, "x", F(t).cx), E(ie, "y", F(t).cy + 38), O(f, `${r ?? ""}${a ?? ""}`);
|
|
3146
|
-
}, [
|
|
3147
|
-
() => V(F(t).min),
|
|
3148
|
-
() => V(F(t).max),
|
|
3149
|
-
() => V(F(t).value),
|
|
3150
|
-
() => F(t).unit ? /^[%°′″]/.test(F(t).unit) ? F(t).unit : ` ${F(t).unit}` : ""
|
|
3151
|
-
]), m(e, n);
|
|
3152
|
-
};
|
|
3153
|
-
h(Xc, (e) => {
|
|
3154
|
-
F(xo) && F(G).gauge && e(Zc);
|
|
3155
|
-
});
|
|
3156
|
-
var Qc = w(Xc), $c = (e) => {
|
|
3157
|
-
var t = D(), n = S(t);
|
|
3158
|
-
N(n, 17, () => F(G).treemapCells, b, (e, t, n) => {
|
|
3159
|
-
var r = hr(), i = S(r), o = w(i), s = (e) => {
|
|
3160
|
-
var n = pr(), r = C(n, !0);
|
|
3161
|
-
j(n), x((e) => {
|
|
3162
|
-
E(n, "x", F(t).x + 4), E(n, "y", F(t).y + 12), E(n, "fill", F(t).textColor), O(r, e);
|
|
3163
|
-
}, [() => as(F(t).name, Math.max(3, Math.floor(F(t).w / 7)))]), m(e, n);
|
|
3164
|
-
};
|
|
3165
|
-
h(o, (e) => {
|
|
3166
|
-
F(t).w > 36 && F(t).h > 18 && e(s);
|
|
3167
|
-
});
|
|
3168
|
-
var c = w(o), l = (e) => {
|
|
3169
|
-
var n = mr(), r = C(n, !0);
|
|
3170
|
-
j(n), x((e) => {
|
|
3171
|
-
E(n, "x", F(t).x + 4), E(n, "y", F(t).y + 24), E(n, "fill", F(t).textColor), O(r, e);
|
|
3172
|
-
}, [() => V(F(t).value)]), m(e, n);
|
|
3173
|
-
};
|
|
3174
|
-
h(c, (e) => {
|
|
3175
|
-
F(t).w > 60 && F(t).h > 30 && e(l);
|
|
3176
|
-
}), x((e, n) => {
|
|
3177
|
-
E(i, "x", F(t).x), E(i, "y", F(t).y), E(i, "width", F(t).w), E(i, "height", F(t).h), E(i, "fill", F(t).color), E(i, "role", f.onSelect || F(Y) || F(Wa) ? "button" : "img"), E(i, "tabindex", e), E(i, "aria-label", n);
|
|
3178
|
-
}, [() => Is(".sv-grid-chart-treemap-cell", n), () => `${F(t).name}: ${V(F(t).value)}`]), g("mousemove", i, (e) => Z(e.clientX, e.clientY, F(t).name, [{
|
|
3179
|
-
color: F(t).color,
|
|
3180
|
-
value: V(F(t).value)
|
|
3181
|
-
}])), y("mouseleave", i, Q), y("focus", i, (e) => {
|
|
3182
|
-
Ls(".sv-grid-chart-treemap-cell", n);
|
|
3183
|
-
let r = zs(e.currentTarget);
|
|
3184
|
-
Z(r.x, r.y, F(t).name, [{
|
|
3185
|
-
color: F(t).color,
|
|
3186
|
-
value: V(F(t).value)
|
|
3187
|
-
}]);
|
|
3188
|
-
}), y("blur", i, Q), g("click", i, (e) => {
|
|
3189
|
-
F(Wa) && Za([...Ie(), ...a(F(Ga), F(t).name) ?? []]) || Ms(F(t).name, "", F(t).value, void 0, e);
|
|
3190
|
-
}), g("keydown", i, (e) => Rs(e, ".sv-grid-chart-treemap-cell", n, () => {
|
|
3191
|
-
F(Wa) && Za([...Ie(), ...a(F(Ga), F(t).name) ?? []]) || (f.onSelect || F(Y)) && Ms(F(t).name, "", F(t).value, void 0, e);
|
|
3192
|
-
})), m(e, r);
|
|
3193
|
-
}), m(e, t);
|
|
3194
|
-
};
|
|
3195
|
-
h(Qc, (e) => {
|
|
3196
|
-
F(So) && e($c);
|
|
3197
|
-
});
|
|
3198
|
-
var el = w(Qc), tl = (e) => {
|
|
3199
|
-
var t = vr(), n = S(t);
|
|
3200
|
-
N(n, 17, () => F(G).sankeyLinks, b, (e, t, n) => {
|
|
3201
|
-
var r = gr();
|
|
3202
|
-
x((e, n) => {
|
|
3203
|
-
E(r, "d", F(t).path), E(r, "stroke", F(t).color), E(r, "stroke-width", F(t).width), E(r, "tabindex", e), E(r, "aria-label", n);
|
|
3204
|
-
}, [() => Is(".sv-grid-chart-sankey-link", n), () => `${F(t).source} → ${F(t).target}: ${V(F(t).value)}`]), g("mousemove", r, (e) => Z(e.clientX, e.clientY, `${F(t).source} → ${F(t).target}`, [{
|
|
3205
|
-
color: F(t).color,
|
|
3206
|
-
value: V(F(t).value)
|
|
3207
|
-
}])), y("mouseleave", r, Q), y("focus", r, (e) => {
|
|
3208
|
-
Ls(".sv-grid-chart-sankey-link", n);
|
|
3209
|
-
let r = zs(e.currentTarget);
|
|
3210
|
-
Z(r.x, r.y, `${F(t).source} → ${F(t).target}`, [{
|
|
3211
|
-
color: F(t).color,
|
|
3212
|
-
value: V(F(t).value)
|
|
3213
|
-
}]);
|
|
3214
|
-
}), y("blur", r, Q), g("keydown", r, (e) => Rs(e, ".sv-grid-chart-sankey-link", n)), m(e, r);
|
|
3215
|
-
});
|
|
3216
|
-
var r = w(n);
|
|
3217
|
-
N(r, 17, () => F(G).sankeyNodes, b, (e, t, n) => {
|
|
3218
|
-
var r = _r(), i = S(r), a = w(i), o = C(a, !0);
|
|
3219
|
-
j(a), x((e, n) => {
|
|
3220
|
-
E(i, "x", F(t).x), E(i, "y", F(t).y), E(i, "width", F(t).w), E(i, "height", F(t).h), E(i, "fill", F(t).color), E(i, "tabindex", e), E(i, "aria-label", n), E(a, "x", F(t).column === 0 ? F(t).x + F(t).w + 4 : F(t).x - 4), E(a, "y", F(t).y + F(t).h / 2 + 3), E(a, "text-anchor", F(t).column === 0 ? "start" : "end"), O(o, F(t).label);
|
|
3221
|
-
}, [() => Is(".sv-grid-chart-sankey-node", n), () => tt(F(z).sankeyNode, {
|
|
3222
|
-
label: F(t).label,
|
|
3223
|
-
in: V(F(t).totalIn),
|
|
3224
|
-
out: V(F(t).totalOut)
|
|
3225
|
-
})]), g("mousemove", i, (e) => Z(e.clientX, e.clientY, F(t).label, [{
|
|
3226
|
-
label: "in",
|
|
3227
|
-
value: V(F(t).totalIn)
|
|
3228
|
-
}, {
|
|
3229
|
-
label: "out",
|
|
3230
|
-
value: V(F(t).totalOut)
|
|
3231
|
-
}])), y("mouseleave", i, Q), y("focus", i, (e) => {
|
|
3232
|
-
Ls(".sv-grid-chart-sankey-node", n);
|
|
3233
|
-
let r = zs(e.currentTarget);
|
|
3234
|
-
Z(r.x, r.y, F(t).label, [{
|
|
3235
|
-
label: "in",
|
|
3236
|
-
value: V(F(t).totalIn)
|
|
3237
|
-
}, {
|
|
3238
|
-
label: "out",
|
|
3239
|
-
value: V(F(t).totalOut)
|
|
3240
|
-
}]);
|
|
3241
|
-
}), y("blur", i, Q), g("keydown", i, (e) => Rs(e, ".sv-grid-chart-sankey-node", n)), m(e, r);
|
|
3242
|
-
}), m(e, t);
|
|
3243
|
-
};
|
|
3244
|
-
h(el, (e) => {
|
|
3245
|
-
F(Co) && e(tl);
|
|
3246
|
-
});
|
|
3247
|
-
var nl = w(el), rl = (e) => {
|
|
3248
|
-
var t = Er(), n = S(t), r = (e) => {
|
|
3249
|
-
var t = D(), n = S(t);
|
|
3250
|
-
N(n, 17, () => F(G).polarRings, b, (e, t) => {
|
|
3251
|
-
var n = yr();
|
|
3252
|
-
x(() => {
|
|
3253
|
-
E(n, "cx", F(G).radarCenter.cx), E(n, "cy", F(G).radarCenter.cy), E(n, "r", F(t));
|
|
3254
|
-
}), m(e, n);
|
|
3255
|
-
}), m(e, t);
|
|
3256
|
-
};
|
|
3257
|
-
h(n, (e) => {
|
|
3258
|
-
F(G).radarCenter && F(G).polarRings.length && e(r);
|
|
3259
|
-
});
|
|
3260
|
-
var i = w(n);
|
|
3261
|
-
N(i, 17, () => F(G).polarAxes, b, (e, t) => {
|
|
3262
|
-
var n = br(), r = C(n, !0);
|
|
3263
|
-
j(n), x((e) => {
|
|
3264
|
-
E(n, "x", F(t).x), E(n, "y", F(t).y + 3), E(n, "text-anchor", F(t).x < (F(G).radarCenter?.cx ?? 0) - 2 ? "end" : F(t).x > (F(G).radarCenter?.cx ?? 0) + 2 ? "start" : "middle"), O(r, e);
|
|
3265
|
-
}, [() => as(F(t).label, 14)]), m(e, n);
|
|
3266
|
-
});
|
|
3267
|
-
var a = w(i);
|
|
3268
|
-
N(a, 17, () => F(G).arcs, b, (e, t) => {
|
|
3269
|
-
var n = D(), r = S(n), i = (e) => {
|
|
3270
|
-
var n = xr();
|
|
3271
|
-
x(() => E(n, "d", F(t).trackPath)), m(e, n);
|
|
3272
|
-
};
|
|
3273
|
-
h(r, (e) => {
|
|
3274
|
-
F(t).trackPath && e(i);
|
|
3275
|
-
}), m(e, n);
|
|
3276
|
-
});
|
|
3277
|
-
var o = w(a);
|
|
3278
|
-
N(o, 17, () => F(G).chordRibbons, b, (e, t) => {
|
|
3279
|
-
var n = Sr();
|
|
3280
|
-
x((e) => {
|
|
3281
|
-
E(n, "d", F(t).path), E(n, "fill", F(t).color), E(n, "stroke", F(t).color), M(n, e);
|
|
3282
|
-
}, [() => `opacity:${J(F(t).source) === 1 && J(F(t).target) === 1 ? 1 : .18}`]), g("mousemove", n, (e) => Ds(e.clientX, e.clientY, F(t))), y("mouseleave", n, Q), m(e, n);
|
|
3283
|
-
});
|
|
3284
|
-
var s = w(o);
|
|
3285
|
-
N(s, 17, () => F(G).arcs, b, (e, t, n) => {
|
|
3286
|
-
var r = Cr();
|
|
3287
|
-
let i;
|
|
3288
|
-
x((e, n, a, o) => {
|
|
3289
|
-
i = P(r, 0, "sv-grid-chart-arc svelte-kvdein", null, i, e), E(r, "d", F(t).path), E(r, "fill", F(t).color), M(r, n), E(r, "role", f.onSelect || F(Y) || F(Wa) && F(t).nodePath ? "button" : "img"), E(r, "tabindex", a), E(r, "aria-label", o);
|
|
3290
|
-
}, [
|
|
3291
|
-
() => ({
|
|
3292
|
-
"is-selected": Ro(F(t).label, F(t).series),
|
|
3293
|
-
"is-drillable": F(Wa) && !!F(t).nodePath && !!l(F(Ua), F(t).nodePath)?.children?.length
|
|
3294
|
-
}),
|
|
3295
|
-
() => `opacity:${J(F(ho) || F(B).type === "sunburst" || F(B).type === "chord" ? F(t).label : F(t).series)}`,
|
|
3296
|
-
() => Is(".sv-grid-chart-arc", n),
|
|
3297
|
-
() => `${F(t).nodePath ? F(t).nodePath.join(" / ") : F(t).label}${F(t).series ? ` ${F(t).series}` : ""}: ${V(F(t).value)}`
|
|
3298
|
-
]), g("mousemove", r, (e) => Es(e.clientX, e.clientY, F(t))), y("mouseleave", r, Q), y("focus", r, (e) => {
|
|
3299
|
-
Ls(".sv-grid-chart-arc", n);
|
|
3300
|
-
let r = zs(e.currentTarget);
|
|
3301
|
-
Es(r.x, r.y, F(t));
|
|
3302
|
-
}), y("blur", r, Q), g("click", r, (e) => {
|
|
3303
|
-
F(t).nodePath && Za(F(t).nodePath) || Ms(F(t).label, F(t).series, F(t).value, void 0, e);
|
|
3304
|
-
}), g("keydown", r, (e) => Rs(e, ".sv-grid-chart-arc", n, () => {
|
|
3305
|
-
F(t).nodePath && Za(F(t).nodePath) || (f.onSelect || F(Y)) && Ms(F(t).label, F(t).series, F(t).value, void 0, e);
|
|
3306
|
-
})), m(e, r);
|
|
3307
|
-
});
|
|
3308
|
-
var c = w(s);
|
|
3309
|
-
N(c, 17, () => F(G).arcs, b, (e, t) => {
|
|
3310
|
-
var n = D(), r = S(n), i = (e) => {
|
|
3311
|
-
var n = D(), r = S(n), i = (e) => {
|
|
3312
|
-
var n = wr(), r = C(n, !0);
|
|
3313
|
-
j(n), x((e) => {
|
|
3314
|
-
E(n, "x", F(t).lx), E(n, "y", F(t).ly + 3), E(n, "text-anchor", F(t).lx < F(t).cx - 2 ? "end" : F(t).lx > F(t).cx + 2 ? "start" : "middle"), O(r, e);
|
|
3315
|
-
}, [() => as(F(t).label, 14)]), m(e, n);
|
|
3316
|
-
};
|
|
3317
|
-
h(r, (e) => {
|
|
3318
|
-
F(t).a1 - F(t).a0 > .12 && F(B).xAxis?.labels !== !1 && e(i);
|
|
3319
|
-
}), m(e, n);
|
|
3320
|
-
}, a = (e) => {
|
|
3321
|
-
var n = Tr(), r = C(n, !0);
|
|
3322
|
-
j(n), x((e) => {
|
|
3323
|
-
E(n, "x", F(t).lx), E(n, "y", F(t).ly), E(n, "fill", F(t).textColor), O(r, e);
|
|
3324
|
-
}, [() => as(F(_i).show && F(B).type !== "sunburst" ? V(F(t).value) : F(t).label, 12)]), m(e, n);
|
|
3325
|
-
};
|
|
3326
|
-
h(r, (e) => {
|
|
3327
|
-
F(B).type === "chord" ? e(i) : (F(t).a1 - F(t).a0) * (F(t).r0 + F(t).r1) / 2 > 34 && F(t).r1 - F(t).r0 > 12 && (F(B).type === "sunburst" || F(_i).show) && e(a, 1);
|
|
3328
|
-
}), m(e, n);
|
|
3329
|
-
}), m(e, t);
|
|
3330
|
-
};
|
|
3331
|
-
h(nl, (e) => {
|
|
3332
|
-
F(po) && e(rl);
|
|
3333
|
-
});
|
|
3334
|
-
var il = w(nl), al = (e) => {
|
|
3335
|
-
var t = D(), n = S(t);
|
|
3336
|
-
N(n, 17, () => F(G).bullets, b, (e, t) => {
|
|
3337
|
-
var n = kr(), r = C(n);
|
|
3338
|
-
N(r, 17, () => F(t).ranges, b, (e, n) => {
|
|
3339
|
-
var r = Dr();
|
|
3340
|
-
x(() => {
|
|
3341
|
-
E(r, "x", F(n).x), E(r, "y", F(t).y), E(r, "width", F(n).w), E(r, "height", F(t).h), E(r, "fill", F(n).color);
|
|
3342
|
-
}), m(e, r);
|
|
3343
|
-
});
|
|
3344
|
-
var i = w(r), a = w(i), o = (e) => {
|
|
3345
|
-
var n = Or();
|
|
3346
|
-
x(() => {
|
|
3347
|
-
E(n, "x1", F(t).targetX), E(n, "y1", F(t).y + F(t).h * .15), E(n, "x2", F(t).targetX), E(n, "y2", F(t).y + F(t).h * .85);
|
|
3348
|
-
}), m(e, n);
|
|
3349
|
-
};
|
|
3350
|
-
h(a, (e) => {
|
|
3351
|
-
F(t).targetX != null && e(o);
|
|
3352
|
-
}), j(n), x(() => {
|
|
3353
|
-
E(i, "x", F(t).x), E(i, "y", F(t).y + F(t).h * .3), E(i, "width", F(t).measureW), E(i, "height", F(t).h * .4), E(i, "fill", F(t).color);
|
|
3354
|
-
}), g("mousemove", n, (e) => Os(e.clientX, e.clientY, F(t))), y("mouseleave", n, Q), m(e, n);
|
|
3355
|
-
}), m(e, t);
|
|
3356
|
-
};
|
|
3357
|
-
h(il, (e) => {
|
|
3358
|
-
F(mo) && e(al);
|
|
3359
|
-
});
|
|
3360
|
-
var ol = w(il);
|
|
3361
|
-
N(ol, 17, () => F(G).slices, b, (e, t, n) => {
|
|
3362
|
-
var r = Mr(), i = S(r);
|
|
3363
|
-
let a;
|
|
3364
|
-
var o = w(i), s = (e) => {
|
|
3365
|
-
var n = Ar(), r = S(n), i = w(r), a = C(i, !0);
|
|
3366
|
-
j(i), x((e) => {
|
|
3367
|
-
E(r, "points", `${F(t).callout.x1},${F(t).callout.y1} ${F(t).callout.x2},${F(t).callout.y2} ${F(t).callout.x3},${F(t).callout.y2}`), E(r, "stroke", F(t).color), E(i, "x", F(t).callout.tx), E(i, "y", F(t).callout.ty + 3.5), E(i, "text-anchor", F(t).callout.anchor), O(a, e);
|
|
3368
|
-
}, [() => F(_i).formatter ? F(_i).formatter(F(t).value, {
|
|
3369
|
-
category: F(t).label,
|
|
3370
|
-
series: F(t).label
|
|
3371
|
-
}) : `${as(F(t).label, Math.min(18, F(t).callout.maxChars))} ${F(t).percent.toFixed(0)}%`]), m(e, n);
|
|
3372
|
-
}, c = (e) => {
|
|
3373
|
-
var n = jr(), r = C(n);
|
|
3374
|
-
j(n), x((e) => {
|
|
3375
|
-
E(n, "x", F(t).cx), E(n, "y", F(t).cy), O(r, `${e ?? ""}%`);
|
|
3376
|
-
}, [() => F(t).percent.toFixed(0)]), m(e, n);
|
|
3377
|
-
};
|
|
3378
|
-
h(o, (e) => {
|
|
3379
|
-
F(t).callout ? e(s) : F(_i).show && F(_i).placement !== "outside" && F(t).percent >= 6 && e(c, 1);
|
|
3380
|
-
}), x((e, n, r, o, s) => {
|
|
3381
|
-
a = P(i, 0, "sv-grid-chart-slice svelte-kvdein", null, a, e), E(i, "d", F(t).path), E(i, "fill", F(t).color), M(i, n), E(i, "role", r), E(i, "tabindex", o), E(i, "aria-label", s);
|
|
3382
|
-
}, [
|
|
3383
|
-
() => ({
|
|
3384
|
-
"is-selected": Ro(F(t).label, F(t).label),
|
|
3385
|
-
"is-drillable": Ya(F(t).label)
|
|
3386
|
-
}),
|
|
3387
|
-
() => `opacity:${zo(F(t).label, F(t).label)}`,
|
|
3388
|
-
() => f.onSelect || F(Y) || Ya(F(t).label) ? "button" : "img",
|
|
3389
|
-
() => Is(".sv-grid-chart-slice", n),
|
|
3390
|
-
() => `${F(t).label}: ${V(F(t).value)}, ${F(t).percent.toFixed(1)}%${Ya(F(t).label) ? F(z).drillIn : ""}`
|
|
3391
|
-
]), g("mousemove", i, (e) => Ss(e.clientX, e.clientY, F(t).label, F(t).value, F(t).percent)), y("mouseleave", i, Q), y("focus", i, (e) => {
|
|
3392
|
-
Ls(".sv-grid-chart-slice", n);
|
|
3393
|
-
let r = zs(e.currentTarget);
|
|
3394
|
-
Ss(r.x, r.y, F(t).label, F(t).value, F(t).percent);
|
|
3395
|
-
}), y("blur", i, Q), g("click", i, (e) => {
|
|
3396
|
-
Ya(F(t).label) && Za([...Ie(), F(t).label]) || Ms(F(t).label, F(t).label, F(t).value, n, e);
|
|
3397
|
-
}), g("keydown", i, (e) => {
|
|
3398
|
-
qs(e, n) || Rs(e, ".sv-grid-chart-slice", n, () => {
|
|
3399
|
-
Ya(F(t).label) && Za([...Ie(), F(t).label]) || (f.onSelect || F(Y)) && Ms(F(t).label, F(t).label, F(t).value, n, e);
|
|
3400
|
-
});
|
|
3401
|
-
}), m(e, r);
|
|
3402
|
-
});
|
|
3403
|
-
var sl = w(ol), cl = (e) => {
|
|
3404
|
-
var t = Nr(), n = S(t), r = C(n, !0);
|
|
3405
|
-
j(n);
|
|
3406
|
-
var i = w(n), a = C(i, !0);
|
|
3407
|
-
j(i), x((e) => {
|
|
3408
|
-
E(n, "x", F(G).donut.cx), E(n, "y", F(G).donut.cy - 4), O(r, e), E(i, "x", F(G).donut.cx), E(i, "y", F(G).donut.cy + 11), O(a, F(z).total);
|
|
3409
|
-
}, [() => V(F(G).donut.total)]), m(e, t);
|
|
3410
|
-
};
|
|
3411
|
-
h(sl, (e) => {
|
|
3412
|
-
F(G).donut && e(cl);
|
|
3413
|
-
});
|
|
3414
|
-
var ll = w(sl), ul = (e) => {
|
|
3415
|
-
var t = D(), n = S(t), r = (e) => {
|
|
3416
|
-
var t = Pr();
|
|
3417
|
-
x((e) => {
|
|
3418
|
-
E(t, "x", F(G).plot.x), E(t, "y", F(G).plot.y), E(t, "width", F(G).plot.w), E(t, "height", F(G).plot.h), E(t, "role", f.onSelect ? "button" : "img"), E(t, "tabindex", _() ? 0 : void 0), E(t, "data-cat-index", F(jo)), E(t, "aria-label", e);
|
|
3419
|
-
}, [() => tt(F(z).densePoints, {
|
|
3420
|
-
count: F(Eo),
|
|
3421
|
-
from: F(W).categories[0] ?? "",
|
|
3422
|
-
to: F(W).categories[F(W).categories.length - 1] ?? ""
|
|
3423
|
-
})]), g("mousemove", t, (e) => {
|
|
3424
|
-
let t = Ao(e.clientX, e.currentTarget);
|
|
3425
|
-
t != null && (p(jo, t, !0), bs(e.clientX, e.clientY, t));
|
|
3426
|
-
}), y("mouseleave", t, Q), y("focus", t, (e) => xs(e.currentTarget, F(jo))), y("blur", t, Q), g("click", t, (e) => js(e, F(jo))), g("keydown", t, Mo), m(e, t);
|
|
3427
|
-
}, i = (e) => {
|
|
3428
|
-
var t = D(), n = S(t);
|
|
3429
|
-
N(n, 19, () => F(W).categories, (e, t) => e + t, (e, t, n) => {
|
|
3430
|
-
let r = A(() => F(G).lines[0]?.points), i = A(() => F(r)?.[F(n)]?.x), a = A(() => !F(q) && F(r) && F(r).length === F(W).categories.length && Number.isFinite(F(i))), o = A(() => F(a) && F(n) > 0 ? F(r)[F(n) - 1].x : null), s = A(() => F(a) && F(n) < F(r).length - 1 ? F(r)[F(n) + 1].x : null), c = A(() => F(a) ? F(o) == null ? F(G).plot.x : (F(o) + F(i)) / 2 : F(G).plot.x + F(wo) * F(n)), l = A(() => F(a) ? F(s) == null ? F(G).plot.x + F(G).plot.w : (F(i) + F(s)) / 2 : F(G).plot.x + F(wo) * (F(n) + 1));
|
|
3431
|
-
var u = Fr();
|
|
3432
|
-
x((e, t) => {
|
|
3433
|
-
E(u, "x", F(q) ? F(G).plot.x : F(c)), E(u, "y", F(q) ? F(G).plot.y + F(wo) * F(n) : F(G).plot.y), E(u, "width", e), E(u, "height", F(q) ? F(wo) : F(G).plot.h), E(u, "role", f.onSelect ? "button" : "img"), E(u, "tabindex", _() ? F(n) === 0 ? 0 : -1 : void 0), E(u, "data-cat-index", F(n)), E(u, "aria-label", t);
|
|
3434
|
-
}, [() => F(q) ? F(G).plot.w : Math.max(0, F(l) - F(c)), () => `${F(t)}: ${ps(F(n)).map((e) => `${e.label} ${e.value}`).join(", ")}`]), g("mousemove", u, (e) => bs(e.clientX, e.clientY, F(n), e.currentTarget)), y("mouseleave", u, Q), y("focus", u, (e) => xs(e.currentTarget, F(n))), y("blur", u, Q), g("click", u, (e) => js(e, F(n))), g("keydown", u, (e) => Ps(e, F(n))), m(e, u);
|
|
3435
|
-
}), m(e, t);
|
|
3436
|
-
};
|
|
3437
|
-
h(n, (e) => {
|
|
3438
|
-
F(To) ? e(r) : e(i, -1);
|
|
3439
|
-
}), m(e, t);
|
|
3440
|
-
};
|
|
3441
|
-
h(ll, (e) => {
|
|
3442
|
-
F(K) && !F(go) && e(ul);
|
|
3443
|
-
});
|
|
3444
|
-
var dl = w(ll), fl = (e) => {
|
|
3445
|
-
var t = Ir();
|
|
3446
|
-
x(() => {
|
|
3447
|
-
E(t, "x", F($i).x), E(t, "y", F($i).y), E(t, "width", F($i).w), E(t, "height", F($i).h);
|
|
3448
|
-
}), m(e, t);
|
|
3449
|
-
};
|
|
3450
|
-
h(dl, (e) => {
|
|
3451
|
-
F($i) && e(fl);
|
|
3452
|
-
}), j($), me($, (e) => p(Xi, e), () => F(Xi));
|
|
3453
|
-
var pl = w($, 2), ml = (e) => {
|
|
3454
|
-
let t = A(() => F(U).plot.x + F(La).t0 * F(U).plot.w), n = A(() => (F(La).t1 - F(La).t0) * F(U).plot.w);
|
|
3455
|
-
var r = Br(), i = C(r);
|
|
3456
|
-
E(i, "aria-valuemin", 0);
|
|
3457
|
-
var a = C(i);
|
|
3458
|
-
N(a, 17, () => F(U).lines, b, (e, t) => {
|
|
3459
|
-
var n = Rr(), r = S(n), i = (e) => {
|
|
3460
|
-
var n = Lr();
|
|
3461
|
-
x(() => {
|
|
3462
|
-
E(n, "d", F(t).areaPath), E(n, "fill", F(t).color);
|
|
3463
|
-
}), m(e, n);
|
|
3464
|
-
};
|
|
3465
|
-
h(r, (e) => {
|
|
3466
|
-
F(t).areaPath && e(i);
|
|
3467
|
-
});
|
|
3468
|
-
var a = w(r);
|
|
3469
|
-
x(() => {
|
|
3470
|
-
E(a, "d", F(t).path), E(a, "stroke", F(t).color);
|
|
3471
|
-
}), m(e, n);
|
|
3472
|
-
});
|
|
3473
|
-
var o = w(a);
|
|
3474
|
-
N(o, 17, () => F(U).bars, b, (e, t) => {
|
|
3475
|
-
var n = zr();
|
|
3476
|
-
x(() => {
|
|
3477
|
-
E(n, "x", F(t).x), E(n, "y", F(t).y), E(n, "width", F(t).w), E(n, "height", F(t).h), E(n, "fill", F(t).color);
|
|
3478
|
-
}), m(e, n);
|
|
3479
|
-
});
|
|
3480
|
-
var s = w(o), c = w(s), l = w(c), u = w(l), d = w(u);
|
|
3481
|
-
j(i), j(r), x((e, r) => {
|
|
3482
|
-
E(i, "viewBox", `0 0 ${F(U).width} ${F(U).height}`), E(i, "aria-label", F(z).rangeBrush), E(i, "aria-valuemax", e), E(i, "aria-valuenow", I()?.i0 ?? 0), E(i, "aria-valuetext", r), E(s, "x", F(U).plot.x), E(s, "y", F(U).plot.y), E(s, "width", F(t) - F(U).plot.x), E(s, "height", F(U).plot.h), E(c, "x", F(t) + F(n)), E(c, "y", F(U).plot.y), E(c, "width", F(U).plot.x + F(U).plot.w - (F(t) + F(n))), E(c, "height", F(U).plot.h), E(l, "x", F(t)), E(l, "y", F(U).plot.y), E(l, "width", F(n)), E(l, "height", F(U).plot.h), E(u, "x", F(t) - 4), E(u, "y", F(U).plot.y), E(u, "height", F(U).plot.h), E(d, "x", F(t) + F(n) - 4), E(d, "y", F(U).plot.y), E(d, "height", F(U).plot.h);
|
|
3483
|
-
}, [() => Math.max(0, F(B).categories.length - 1), () => tt(F(z).brushRange, {
|
|
3484
|
-
from: F(B).categories[I()?.i0 ?? 0] ?? "",
|
|
3485
|
-
to: F(B).categories[I()?.i1 ?? F(B).categories.length - 1] ?? ""
|
|
3486
|
-
})]), g("pointermove", i, Va), g("keydown", i, Vs), g("pointerdown", l, (e) => Ba(e, "move")), g("pointerup", l, Ha), y("pointercancel", l, Ha), g("pointerdown", u, (e) => Ba(e, "left")), g("pointerup", u, Ha), y("pointercancel", u, Ha), g("pointerdown", d, (e) => Ba(e, "right")), g("pointerup", d, Ha), y("pointercancel", d, Ha), ve(r, "clientHeight", (e) => p(pi, e)), m(e, r);
|
|
3487
|
-
};
|
|
3488
|
-
h(pl, (e) => {
|
|
3489
|
-
F(Fa) && F(U) && e(ml);
|
|
3490
|
-
});
|
|
3491
|
-
var hl = w(pl, 2), gl = (e) => {
|
|
3492
|
-
var t = Vr(), n = C(t, !0);
|
|
3493
|
-
j(t), x(() => O(n, F(z).noData)), m(e, t);
|
|
3494
|
-
};
|
|
3495
|
-
h(hl, (e) => {
|
|
3496
|
-
F(Zo) && e(gl);
|
|
3497
|
-
});
|
|
3498
|
-
var _l = w(hl, 2), vl = (e) => {
|
|
3499
|
-
var t = D(), n = S(t);
|
|
3500
|
-
oe(n, () => F(Ws), (e, t) => {
|
|
3501
|
-
t(e, {
|
|
3502
|
-
get items() {
|
|
3503
|
-
return F(Js);
|
|
3504
|
-
},
|
|
3505
|
-
get x() {
|
|
3506
|
-
return F(Us).x;
|
|
3507
|
-
},
|
|
3508
|
-
get y() {
|
|
3509
|
-
return F(Us).y;
|
|
3510
|
-
},
|
|
3511
|
-
onClose: () => p(Us, null)
|
|
3512
|
-
});
|
|
3513
|
-
}), m(e, t);
|
|
3514
|
-
};
|
|
3515
|
-
h(_l, (e) => {
|
|
3516
|
-
F(Us) && F(Ws) && e(vl);
|
|
3517
|
-
});
|
|
3518
|
-
var yl = w(_l, 2), bl = (e) => {
|
|
3519
|
-
var t = Hr();
|
|
3520
|
-
ge(t), ce(() => be(t, () => F(pa), (e) => p(pa, e))), xe(t, (e) => ka?.(e)), x(() => {
|
|
3521
|
-
E(t, "placeholder", F(z).noteText), E(t, "aria-label", F(z).noteText), M(t, `left:${F(fa).left}px; top:${F(fa).top}px;`);
|
|
3522
|
-
}), g("keydown", t, (e) => {
|
|
3523
|
-
e.key === "Enter" ? (e.preventDefault(), ma()) : e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), p(fa, null), p(pa, ""));
|
|
3524
|
-
}), y("blur", t, ma), m(e, t);
|
|
3525
|
-
};
|
|
3526
|
-
h(yl, (e) => {
|
|
3527
|
-
F(fa) && e(bl);
|
|
3528
|
-
});
|
|
3529
|
-
var xl = w(yl, 2), Sl = (e) => {
|
|
3530
|
-
var t = qr();
|
|
3531
|
-
let n;
|
|
3532
|
-
var r = C(t), i = (e) => {
|
|
3533
|
-
var t = D(), n = S(t);
|
|
3534
|
-
ue(n, () => f.tooltip, () => F(ls).ctx), m(e, t);
|
|
3535
|
-
}, a = (e) => {
|
|
3536
|
-
var t = Kr(), n = S(t), r = C(n, !0);
|
|
3537
|
-
j(n);
|
|
3538
|
-
var i = w(n, 2);
|
|
3539
|
-
N(i, 17, () => F(ls).rows, b, (e, t) => {
|
|
3540
|
-
var n = Gr(), r = C(n), i = (e) => {
|
|
3541
|
-
var n = Ur();
|
|
3542
|
-
x(() => M(n, `background:${F(t).color}`)), m(e, n);
|
|
3543
|
-
};
|
|
3544
|
-
h(r, (e) => {
|
|
3545
|
-
F(t).color && e(i);
|
|
3546
|
-
});
|
|
3547
|
-
var a = w(r, 2), o = (e) => {
|
|
3548
|
-
var n = Wr(), r = C(n, !0);
|
|
3549
|
-
j(n), x(() => O(r, F(t).label)), m(e, n);
|
|
3550
|
-
};
|
|
3551
|
-
h(a, (e) => {
|
|
3552
|
-
F(t).label && e(o);
|
|
3553
|
-
});
|
|
3554
|
-
var s = w(a, 2), c = C(s, !0);
|
|
3555
|
-
j(s), j(n), x(() => O(c, F(t).value)), m(e, n);
|
|
3556
|
-
}), x(() => O(r, F(ls).title)), m(e, t);
|
|
3557
|
-
};
|
|
3558
|
-
h(r, (e) => {
|
|
3559
|
-
f.tooltip ? e(i) : e(a, -1);
|
|
3560
|
-
}), j(t), x(() => {
|
|
3561
|
-
n = P(t, 1, "sv-grid-chart-tooltip svelte-kvdein", null, n, {
|
|
3562
|
-
"is-below": F(ls).below,
|
|
3563
|
-
"is-custom": !!f.tooltip,
|
|
3564
|
-
"is-fixed": F(ls).fixed,
|
|
3565
|
-
"is-right": Se() === "top-right" || Se() === "bottom-right",
|
|
3566
|
-
"is-bottom": Se() === "bottom-left" || Se() === "bottom-right",
|
|
3567
|
-
"is-pinned": !!F(us)
|
|
3568
|
-
}), M(t, `left:${F(ls).left}px; top:${F(ls).top}px;`);
|
|
3569
|
-
}), m(e, t);
|
|
3570
|
-
};
|
|
3571
|
-
h(xl, (e) => {
|
|
3572
|
-
F(ls) && e(Sl);
|
|
3573
|
-
});
|
|
3574
|
-
var Cl = w(xl, 2), wl = (e) => {
|
|
3575
|
-
var t = Zr();
|
|
3576
|
-
let n;
|
|
3577
|
-
var r = C(t);
|
|
3578
|
-
N(r, 19, () => F(Xo), (e) => e.label, (e, t, n) => {
|
|
3579
|
-
var r = Yr();
|
|
3580
|
-
let i;
|
|
3581
|
-
var a = C(r), o = (e) => {
|
|
3582
|
-
var r = D(), i = S(r);
|
|
3583
|
-
ue(i, () => f.legendItem, () => ({
|
|
3584
|
-
label: F(t).label,
|
|
3585
|
-
color: F(t).color,
|
|
3586
|
-
off: F(t).off,
|
|
3587
|
-
index: F(n)
|
|
3588
|
-
})), m(e, r);
|
|
3589
|
-
}, s = (e) => {
|
|
3590
|
-
var n = Jr(), r = S(n), i = w(r);
|
|
3591
|
-
x(() => {
|
|
3592
|
-
M(r, `background:${F(t).off ? "transparent" : F(t).color}; border-color:${F(t).color}`), O(i, ` ${F(t).label ?? ""}`);
|
|
3593
|
-
}), m(e, n);
|
|
3594
|
-
};
|
|
3595
|
-
h(a, (e) => {
|
|
3596
|
-
f.legendItem ? e(o) : e(s, -1);
|
|
3597
|
-
}), j(r), x(() => {
|
|
3598
|
-
i = P(r, 1, "sv-grid-chart-legend-item svelte-kvdein", null, i, {
|
|
3599
|
-
"is-off": F(t).off,
|
|
3600
|
-
"is-isolated": F(Ei) === F(t).label
|
|
3601
|
-
}), r.disabled = !_() || !F(qo), E(r, "aria-pressed", F(qo) ? !F(t).off : void 0), E(r, "title", _() ? `${F(t).off ? F(z).showSeries : F(z).hideSeries} ${F(t).label} \u00b7 ${F(z).isolateHint}` : F(t).label);
|
|
3602
|
-
}), g("click", r, () => $o(F(t).label)), g("dblclick", r, () => es(F(t).label)), y("pointerenter", r, () => _() && p(Oi, F(t).label, !0)), y("pointerleave", r, () => p(Oi, null)), m(e, r);
|
|
3603
|
-
});
|
|
3604
|
-
var i = w(r, 2), a = (e) => {
|
|
3605
|
-
var t = Xr(), n = C(t, !0);
|
|
3606
|
-
j(t), x((e) => O(n, e), [() => F(Jo) ? F(z).showLess : tt(F(z).showMore, { n: F(Ho).length - 10 })]), g("click", t, () => p(Jo, !F(Jo))), m(e, t);
|
|
3607
|
-
};
|
|
3608
|
-
h(i, (e) => {
|
|
3609
|
-
F(Yo) && e(a);
|
|
3610
|
-
}), j(t), x(() => n = P(t, 1, "sv-grid-chart-legend svelte-kvdein", null, n, { "is-vertical": F(li) })), ve(t, "clientWidth", (e) => p(di, e)), ve(t, "clientHeight", (e) => p(fi, e)), m(e, t);
|
|
3611
|
-
};
|
|
3612
|
-
h(Cl, (e) => {
|
|
3613
|
-
F(ci) && F(Ho).length && e(wl);
|
|
3614
|
-
});
|
|
3615
|
-
var Tl = w(Cl, 2), El = (e) => {
|
|
3616
|
-
var t = Qr(), n = C(t, !0);
|
|
3617
|
-
j(t), x(() => O(n, F(Vo))), m(e, t);
|
|
3618
|
-
};
|
|
3619
|
-
h(Tl, (e) => {
|
|
3620
|
-
ze() && e(El);
|
|
3621
|
-
});
|
|
3622
|
-
var Dl = w(Tl, 2), Ol = C(Dl), kl = C(Ol), Al = C(kl, !0), jl = w(Al), Ml = (e) => {
|
|
3623
|
-
var t = se();
|
|
3624
|
-
x((e) => O(t, e), [() => tt(F(z).dataTableCapped, {
|
|
3625
|
-
shown: Oo,
|
|
3626
|
-
total: F(ns).rows.length
|
|
3627
|
-
})]), m(e, t);
|
|
3628
|
-
};
|
|
3629
|
-
h(jl, (e) => {
|
|
3630
|
-
F(rs) && e(Ml);
|
|
3631
|
-
});
|
|
3632
|
-
var Nl = w(jl), Pl = (e) => {
|
|
3633
|
-
var t = se();
|
|
3634
|
-
x(() => O(t, `. ${F(Ye) ?? ""}`)), m(e, t);
|
|
3635
|
-
};
|
|
3636
|
-
h(Nl, (e) => {
|
|
3637
|
-
Be() && F(Ye) && e(Pl);
|
|
3638
|
-
}), j(kl);
|
|
3639
|
-
var Fl = w(kl), Il = C(Fl);
|
|
3640
|
-
N(Il, 20, () => F(ns).cols, (e) => e, (e, t) => {
|
|
3641
|
-
var n = $r(), r = C(n, !0);
|
|
3642
|
-
j(n), x(() => O(r, t)), m(e, n);
|
|
3643
|
-
}), j(Il), j(Fl);
|
|
3644
|
-
var Ll = w(Fl);
|
|
3645
|
-
N(Ll, 21, () => F(is), b, (e, t) => {
|
|
3646
|
-
var n = ti();
|
|
3647
|
-
N(n, 21, () => F(t), b, (e, t) => {
|
|
3648
|
-
var n = ei(), r = C(n, !0);
|
|
3649
|
-
j(n), x(() => O(r, F(t))), m(e, n);
|
|
3650
|
-
}), j(n), m(e, n);
|
|
3651
|
-
}), j(Ll), j(Ol), j(Dl), j(rc), me(rc, (e) => p(ss, e), () => F(ss)), x((e, a, o) => {
|
|
3652
|
-
t = P($, 0, "sv-grid-chart-svg svelte-kvdein", null, t, {
|
|
3653
|
-
"is-interactive": _(),
|
|
3654
|
-
"is-clickable": !!f.onSelect || !!f.onDrill,
|
|
3655
|
-
"is-zoomable": !!F(vi)?.drag && F(K) && !F(xi) && !F(yi),
|
|
3656
|
-
"is-pannable": !!F(vi)?.pan && F(K) && F(Ii) && F(yi),
|
|
3657
|
-
"is-annotating": F(xi),
|
|
3658
|
-
"is-dragging": !!F(Zi),
|
|
3659
|
-
"is-drawing": !!F(la)
|
|
3660
|
-
}), E($, "viewBox", `0 0 ${F(G).width} ${F(G).height}`), E($, "role", _() ? "group" : "img"), E($, "aria-label", a), E($, "aria-description", Be() && F(Ye) ? F(Ye) : void 0), E($, "aria-describedby", `${Ai}-table`), n = M($, "", n, { height: Ke() ? `${F(gi) ?? F(B).height ?? 300}px` : null }), r = P(bc, 0, "sv-grid-chart-marks svelte-kvdein", null, r, {
|
|
3661
|
-
"is-enter-grow": F(ao) === "grow",
|
|
3662
|
-
"is-enter-none": F(ao) === "none"
|
|
3663
|
-
}), E(bc, "clip-path", F(K) ? `url(#${Ai}-plot)` : void 0), i = P(Mc, 0, "sv-grid-chart-marks svelte-kvdein", null, i, {
|
|
3664
|
-
"is-enter-grow": F(ao) === "grow",
|
|
3665
|
-
"is-enter-none": F(ao) === "none"
|
|
3666
|
-
}), E(Mc, "clip-path", F(K) ? `url(#${Ai}-plot)` : void 0), E(Ol, "id", `${Ai}-table`), O(Al, o);
|
|
3667
|
-
}, [
|
|
3668
|
-
() => ee(F(B).style) || void 0,
|
|
3669
|
-
() => tt(F(z).chartLabel, { type: F(B).type }),
|
|
3670
|
-
() => tt(F(z).dataTable, { type: F(B).type })
|
|
3671
|
-
]), g("pointerdown", $, na), g("pointermove", $, (e) => {
|
|
3672
|
-
ra(e), Ca(e);
|
|
3673
|
-
}), g("pointerup", $, (e) => {
|
|
3674
|
-
ia(e), p(ha, null);
|
|
3675
|
-
}), y("pointercancel", $, (e) => {
|
|
3676
|
-
ia(e), p(ha, null);
|
|
3677
|
-
}), g("click", $, Sa), g("keydown", $, Ea), y("wheel", $, Gi), g("contextmenu", $, Gs), g("dblclick", $, aa), ve(rc, "clientWidth", (e) => p($e, e)), ve(rc, "clientHeight", (e) => p(ri, e));
|
|
3678
|
-
}
|
|
3679
|
-
return x((e, t, n) => {
|
|
3680
|
-
ic = P(rc, 1, "sv-grid-chart svelte-kvdein", null, ic, {
|
|
3681
|
-
"is-autosize": Ke(),
|
|
3682
|
-
"is-legend-top": F(ci) === "top",
|
|
3683
|
-
"is-legend-left": F(ci) === "left",
|
|
3684
|
-
"is-legend-right": F(ci) === "right"
|
|
3685
|
-
}), M(rc, e);
|
|
3686
|
-
}, [
|
|
3687
|
-
() => ee(F(B).style) || void 0,
|
|
3688
|
-
() => tt(F(z).chartLabel, { type: F(B).type }),
|
|
3689
|
-
() => tt(F(z).dataTable, { type: F(B).type })
|
|
3690
|
-
]), m(ne, rc), ye(nc);
|
|
3691
|
-
}
|
|
3692
|
-
le([
|
|
3693
|
-
"click",
|
|
3694
|
-
"pointerdown",
|
|
3695
|
-
"pointermove",
|
|
3696
|
-
"pointerup",
|
|
3697
|
-
"keydown",
|
|
3698
|
-
"contextmenu",
|
|
3699
|
-
"dblclick",
|
|
3700
|
-
"mousemove"
|
|
3701
|
-
]);
|
|
3702
|
-
//#endregion
|
|
3703
|
-
export { Qe as a, Ge as i, Ze as n, z as o, Je as r, qe as s, ri as t };
|