@svgrid/grid-wc 3.0.8 → 3.0.9
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/GridMenus-BsOHO9kc.js +1086 -0
- package/dist/{SvChartMenu-DkSyLWYH.js → SvChartMenu-CwWtjXsG.js} +153 -153
- package/dist/{shadow/SvDateRangeInput-BrYTQEMM.js → SvDateRangeInput-DtKZ07aC.js} +88 -88
- package/dist/SvDateTimePicker-C37mOYov.js +766 -0
- package/dist/{SvField-Bmzp3ObZ.js → SvField-CpglDJLn.js} +107 -107
- package/dist/SvGridCellEditor-C2t-q8n3.js +560 -0
- package/dist/{SvGridChart-BSNYAW_W.js → SvGridChart-Bj2Pr2u9.js} +1522 -1522
- package/dist/{SvGridChartBuilder-DDl_Bv8k.js → SvGridChartBuilder-Dpw2X4pR.js} +418 -418
- package/dist/{shadow/SvGridChartPanel-DkIR-3rA.js → SvGridChartPanel-Ce78cR3g.js} +642 -642
- package/dist/{SvGridChartView-B4pqLWnm.js → SvGridChartView-CTfjtiXs.js} +11 -11
- package/dist/SvGridDropdown-CfA5Jfe5.js +257 -0
- package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs +4 -2
- package/dist/angular/fesm2022/svgrid-grid-wc-angular.mjs.map +1 -1
- package/dist/angular/types/svgrid-grid-wc-angular.d.ts +2 -1
- package/dist/{chart-export-pdf-hJVuR7_z.js → chart-export-pdf-Bc0Rz4kB.js} +1 -1
- package/dist/{shadow/client-DEF0GRjE.js → client-wYhMjrKG.js} +172 -161
- package/dist/{date-format-DMTwV8NC.js → date-format-SCGd8EWh.js} +363 -363
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js +1 -1
- package/dist/shadow/GridMenus-BsOHO9kc.js +1086 -0
- package/dist/shadow/{SvChartMenu-DkSyLWYH.js → SvChartMenu-CwWtjXsG.js} +153 -153
- package/dist/{SvDateRangeInput-BrYTQEMM.js → shadow/SvDateRangeInput-DtKZ07aC.js} +88 -88
- package/dist/shadow/SvDateTimePicker-C37mOYov.js +766 -0
- package/dist/shadow/{SvField-Bmzp3ObZ.js → SvField-CpglDJLn.js} +107 -107
- package/dist/shadow/SvGridCellEditor-C2t-q8n3.js +560 -0
- package/dist/shadow/{SvGridChart-BSNYAW_W.js → SvGridChart-Bj2Pr2u9.js} +1522 -1522
- package/dist/shadow/{SvGridChartBuilder-DDl_Bv8k.js → SvGridChartBuilder-Dpw2X4pR.js} +418 -418
- package/dist/{SvGridChartPanel-DkIR-3rA.js → shadow/SvGridChartPanel-Ce78cR3g.js} +642 -642
- package/dist/shadow/{SvGridChartView-B4pqLWnm.js → SvGridChartView-CTfjtiXs.js} +11 -11
- package/dist/shadow/SvGridDropdown-CfA5Jfe5.js +257 -0
- package/dist/shadow/{chart-export-pdf-hJVuR7_z.js → chart-export-pdf-Bc0Rz4kB.js} +1 -1
- package/dist/{client-DEF0GRjE.js → shadow/client-wYhMjrKG.js} +172 -161
- package/dist/shadow/{date-format-DMTwV8NC.js → date-format-SCGd8EWh.js} +363 -363
- package/dist/shadow/sv-grid-shadow-element.d.ts +2 -0
- package/dist/shadow/sv-grid-shadow-element.js +4429 -3986
- package/dist/shadow/{svelte-virtualizer.svelte-CMX34S17.js → svelte-virtualizer.svelte-BGip4kwG.js} +106 -59
- package/dist/shadow/{validate-JAuMsk6Z.js → validate-43C03DLP.js} +1 -1
- package/dist/sv-grid-element.d.ts +2 -0
- package/dist/sv-grid-element.js +4414 -3971
- package/dist/{svelte-virtualizer.svelte-CMX34S17.js → svelte-virtualizer.svelte-BGip4kwG.js} +106 -59
- package/dist/{validate-JAuMsk6Z.js → validate-43C03DLP.js} +1 -1
- package/dist/vue/index.d.ts +2 -1
- package/dist/vue/index.js +1 -1
- package/package.json +3 -3
- package/dist/GridMenus-Nf04Zcl5.js +0 -1086
- package/dist/SvDateTimePicker-Czin1Ead.js +0 -766
- package/dist/SvGridCellEditor-BTbDEgpe.js +0 -560
- package/dist/SvGridDropdown-BwPpGwLz.js +0 -257
- package/dist/shadow/GridMenus-Nf04Zcl5.js +0 -1086
- package/dist/shadow/SvDateTimePicker-Czin1Ead.js +0 -766
- package/dist/shadow/SvGridCellEditor-BTbDEgpe.js +0 -560
- package/dist/shadow/SvGridDropdown-BwPpGwLz.js +0 -257
|
@@ -1,6 +1,6 @@
|
|
|
1
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";if(typeof globalThis!=='undefined'){var f=globalThis.__SVGRID_WC_ADD_CSS__;if(typeof f==='function')f(c);else(globalThis.__SVGRID_WC_CSS_CHUNKS__=globalThis.__SVGRID_WC_CSS_CHUNKS__||[]).push(c);}if(typeof document==='undefined')return;if(document.querySelector('style[data-svgrid-grid-wc-chunk="SvGridChart"]'))return;var s=document.createElement('style');s.setAttribute('data-svgrid-grid-wc-chunk',"SvGridChart");s.textContent=c;document.head.appendChild(s);}catch(e){}})();
|
|
2
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-nwSa4jQe.js";
|
|
3
|
-
import {
|
|
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, J as g, L as _, M as v, N as y, O as ue, Q as b, R as x, T as S, U as C, V as de, W as fe, X as w, Y as T, Z as pe, a as me, at as E, d as he, f as D, it as ge, j as O, k, n as A, nt as _e, o as ve, rt as ye, s as be, tt as j, v as M, w as N, x as xe, y as P, z as F } from "./client-wYhMjrKG.js";
|
|
4
4
|
import { a as Se } from "./editor-contract-peBDxir_.js";
|
|
5
5
|
//#region ../grid/dist/chart-zoom.js
|
|
6
6
|
function Ce(e, t, n) {
|
|
@@ -88,7 +88,7 @@ var I = /* @__PURE__ */ new Map();
|
|
|
88
88
|
function Ae(e) {
|
|
89
89
|
let t = I.get(e);
|
|
90
90
|
if (t) return t;
|
|
91
|
-
let n =
|
|
91
|
+
let n = pe({
|
|
92
92
|
hover: null,
|
|
93
93
|
zoom: null
|
|
94
94
|
});
|
|
@@ -444,53 +444,53 @@ function et(e, t) {
|
|
|
444
444
|
}
|
|
445
445
|
//#endregion
|
|
446
446
|
//#region ../grid/dist/SvGridChart.svelte
|
|
447
|
-
var tt = k("<span class=\"sv-grid-chart-crumb is-current svelte-kvdein\" aria-current=\"page\"> </span>"), nt = k("<button type=\"button\" class=\"sv-grid-chart-tool sv-grid-chart-crumb svelte-kvdein\"> </button>"), rt = k("<span class=\"sv-grid-chart-crumb-sep svelte-kvdein\" aria-hidden=\"true\">/</span> <!>", 1), it = k("<nav class=\"sv-grid-chart-crumbs svelte-kvdein\"><button type=\"button\" class=\"sv-grid-chart-tool sv-grid-chart-crumb svelte-kvdein\"> </button> <!></nav>"), at = k("<button type=\"button\" class=\"sv-grid-chart-tool sv-grid-chart-preset svelte-kvdein\"> </button>"), ot = k("<span class=\"sv-grid-chart-presets svelte-kvdein\" role=\"group\"></span>"), st = k("<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>"), ct = k("<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>"), lt = k("<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>"), ut = k("<button type=\"button\"> </button>"), dt = k("<button type=\"button\" class=\"sv-grid-chart-tool svelte-kvdein\"> </button> <button type=\"button\" class=\"sv-grid-chart-tool svelte-kvdein\"> </button>", 1), ft = k("<span class=\"sv-grid-chart-drawtools svelte-kvdein\" role=\"group\"><!> <!></span>"), pt = k("<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>"), mt = k("<div class=\"sv-grid-chart-toolbar is-crumbs-only svelte-kvdein\" role=\"toolbar\"><!></div>"), ht = y("<clipPath><rect></rect></clipPath>"), gt = y("<linearGradient x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\"></stop><stop offset=\"1\"></stop></linearGradient>"), _t = y("<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>"), vt = y("<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>"), yt = y("<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>"), bt = y("<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>"), xt = y("<defs><!><!><!></defs>"), St = y("<text class=\"sv-grid-chart-title svelte-kvdein\" text-anchor=\"middle\"> </text>"), Ct = y("<text class=\"sv-grid-chart-subtitle svelte-kvdein\" text-anchor=\"middle\"> </text>"), wt = y("<text class=\"sv-grid-chart-caption svelte-kvdein\" text-anchor=\"start\"> </text>"), Tt = y("<line class=\"sv-grid-chart-gridline svelte-kvdein\"></line>"), Et = y("<!><text class=\"sv-grid-chart-axis is-x svelte-kvdein\" text-anchor=\"middle\"> </text>", 1), Dt = y("<line class=\"sv-grid-chart-gridline svelte-kvdein\"></line>"), Ot = y("<text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"end\"> </text>"), kt = y("<text class=\"sv-grid-chart-axis-title svelte-kvdein\" text-anchor=\"middle\"> </text>"), At = y("<text class=\"sv-grid-chart-axis-title svelte-kvdein\" text-anchor=\"middle\"> </text>"), jt = y("<!><!><!><!><!>", 1), Mt = y("<line></line>"), Nt = y("<text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"end\"> </text>"), Pt = y("<!><!>", 1), Ft = y("<line class=\"sv-grid-chart-gridline svelte-kvdein\"></line>"), It = y("<text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"start\"> </text>"), Lt = y("<text class=\"sv-grid-chart-axis is-x svelte-kvdein\"> </text>"), Rt = y("<text class=\"sv-grid-chart-axis is-x svelte-kvdein\" text-anchor=\"middle\"> </text>"), zt = y("<line class=\"sv-grid-chart-gridline svelte-kvdein\" opacity=\"0.5\"></line>"), Bt = y("<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), Vt = y("<text class=\"sv-grid-chart-axis-title svelte-kvdein\" text-anchor=\"middle\"> </text>"), Ht = y("<text class=\"sv-grid-chart-axis-title svelte-kvdein\" text-anchor=\"middle\"> </text>"), Ut = y("<text class=\"sv-grid-chart-axis-title svelte-kvdein\" text-anchor=\"middle\"> </text>"), Wt = y("<!><!><!><!><!><!><!><!>", 1), Gt = y("<text class=\"sv-grid-chart-reflabel svelte-kvdein\" text-anchor=\"end\"> </text>"), Kt = y("<text class=\"sv-grid-chart-reflabel svelte-kvdein\" text-anchor=\"middle\"> </text>"), qt = y("<rect class=\"sv-grid-chart-refband svelte-kvdein\"></rect><!>", 1), Jt = y("<path class=\"sv-grid-chart-band svelte-kvdein\" fill-opacity=\"0.12\" stroke=\"none\"></path>"), Yt = y("<path class=\"sv-grid-chart-area svelte-kvdein\" stroke=\"none\"></path>"), Xt = y("<circle class=\"sv-grid-chart-dot is-active svelte-kvdein\" r=\"4\"></circle>"), Zt = y("<circle></circle>"), Qt = y("<path fill=\"none\" stroke-width=\"1.5\"></path>"), $t = y("<path></path>"), en = y("<g class=\"svelte-kvdein\"><!><!><path class=\"sv-grid-chart-linepath svelte-kvdein\" fill=\"none\" stroke-linejoin=\"round\" stroke-linecap=\"round\"></path><!></g>"), tn = y("<rect rx=\"1\"></rect>"), nn = y("<circle class=\"sv-grid-chart-dot svelte-kvdein\" fill-opacity=\"0.55\"></circle>"), rn = y("<g class=\"sv-grid-chart-stem svelte-kvdein\"><line class=\"svelte-kvdein\"></line><!><circle class=\"sv-grid-chart-dot svelte-kvdein\"></circle></g>"), an = y("<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), on = y("<line class=\"sv-grid-chart-wick svelte-kvdein\"></line><rect class=\"sv-grid-chart-candle svelte-kvdein\"></rect>", 1), sn = y("<circle class=\"sv-grid-chart-outlier svelte-kvdein\" r=\"2\" fill=\"none\"></circle>"), cn = y("<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), ln = y("<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), un = y("<circle fill-opacity=\"0.7\"></circle>"), dn = y("<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>"), fn = y("<text class=\"sv-grid-chart-reflabel svelte-kvdein\" text-anchor=\"end\"> </text>"), pn = y("<line class=\"sv-grid-chart-refline svelte-kvdein\"></line><!>", 1), mn = y("<line class=\"sv-grid-chart-refline svelte-kvdein\"></line><text class=\"sv-grid-chart-reflabel svelte-kvdein\" text-anchor=\"start\"> </text>", 1), hn = y("<path class=\"sv-grid-chart-overlay-band svelte-kvdein\" fill-opacity=\"0.1\" stroke-opacity=\"0.35\" stroke-width=\"1\"></path>"), gn = y("<!><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), _n = y("<line class=\"sv-grid-chart-datalabel-leader svelte-kvdein\"></line>"), vn = y("<!><text> </text>", 1), yn = y("<text class=\"sv-grid-chart-serieslabel svelte-kvdein\" text-anchor=\"start\"> </text>"), bn = y("<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), xn = y("<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), Sn = y("<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), Cn = y("<circle stroke=\"var(--sg-bg, #fff)\" stroke-width=\"1.5\"></circle><text class=\"sv-grid-chart-annotation-label svelte-kvdein\"> </text>", 1), wn = y("<g><!></g>"), Tn = y("<path class=\"svelte-kvdein\"></path>"), En = y("<line class=\"sv-grid-chart-drawing-hit svelte-kvdein\"></line><line stroke-width=\"1.5\" class=\"svelte-kvdein\"></line><!>", 1), Dn = y("<rect fill-opacity=\"0.08\" stroke-width=\"1.2\" class=\"svelte-kvdein\"></rect>"), On = y("<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), kn = y("<line stroke-width=\"1\" class=\"svelte-kvdein\"></line><text class=\"sv-grid-chart-drawing-label svelte-kvdein\"> </text>", 1), An = y("<!><rect class=\"sv-grid-chart-drawing-hit svelte-kvdein\"></rect>", 1), jn = y("<text class=\"sv-grid-chart-drawing-text svelte-kvdein\"> </text>"), Mn = y("<circle class=\"sv-grid-chart-drawing-handle svelte-kvdein\" r=\"5\" fill=\"var(--sg-bg, #fff)\" stroke-width=\"1.5\"></circle>"), Nn = y("<g><!><!></g>"), Pn = y("<rect fill=\"var(--sg-accent, #2563eb)\" fill-opacity=\"0.08\" stroke=\"var(--sg-accent, #2563eb)\" stroke-dasharray=\"4 3\"></rect>"), Fn = y("<line stroke=\"var(--sg-accent, #2563eb)\" stroke-width=\"1.5\" stroke-dasharray=\"4 3\"></line>"), In = y("<circle r=\"3.5\" fill=\"var(--sg-accent, #2563eb)\"></circle><!>", 1), Ln = y("<g class=\"sv-grid-chart-drawings\"><!><!></g>"), Rn = y("<line class=\"sv-grid-chart-crosshair svelte-kvdein\"></line>"), zn = y("<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>"), Bn = y("<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), Vn = y("<line class=\"sv-grid-chart-crosshair svelte-kvdein\"></line><!>", 1), Hn = y("<text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"end\"> </text>"), Un = y("<text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"middle\"> </text>"), Wn = y("<text class=\"sv-grid-chart-heatlabel svelte-kvdein\" text-anchor=\"middle\"> </text>"), Gn = y("<rect class=\"sv-grid-chart-heatcell svelte-kvdein\"></rect><!>", 1), Kn = y("<stop></stop>"), qn = y("<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), Jn = y("<!><!><!><!>", 1), Yn = y("<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), Xn = y("<path class=\"sv-grid-chart-funnel-seg svelte-kvdein\"></path><!>", 1), Zn = y("<circle class=\"sv-grid-chart-radar-ring svelte-kvdein\"></circle>"), Qn = y("<line class=\"sv-grid-chart-radar-spoke svelte-kvdein\"></line><text class=\"sv-grid-chart-axis svelte-kvdein\"> </text>", 1), $n = y("<circle class=\"sv-grid-chart-radar-dot svelte-kvdein\" r=\"3\" role=\"img\"></circle>"), er = y("<path class=\"sv-grid-chart-radar-poly svelte-kvdein\" fill-opacity=\"0.18\" stroke-width=\"2\"></path><!>", 1), tr = y("<!><!><!>", 1), nr = y("<text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"start\"> </text>"), rr = y("<text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"end\"> </text>"), ir = y("<rect rx=\"2\" role=\"img\"></rect>"), ar = y("<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), or = y("<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), sr = y("<!><!><!><!>", 1), cr = y("<line></line>"), lr = y("<path fill=\"none\" stroke-width=\"4\" stroke-linecap=\"butt\" opacity=\"0.7\"></path>"), ur = y("<line stroke=\"var(--sg-fg, #0f172a)\" stroke-width=\"2.5\" stroke-linecap=\"round\"></line>"), dr = y("<!><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), fr = y("<text class=\"sv-grid-chart-treemap-label svelte-kvdein\"> </text>"), pr = y("<text class=\"sv-grid-chart-treemap-value svelte-kvdein\" opacity=\"0.85\"> </text>"), mr = y("<rect class=\"sv-grid-chart-treemap-cell svelte-kvdein\"></rect><!><!>", 1), hr = y("<path class=\"sv-grid-chart-sankey-link svelte-kvdein\" fill=\"none\" stroke-opacity=\"0.35\" role=\"img\"></path>"), gr = y("<rect class=\"sv-grid-chart-sankey-node svelte-kvdein\" role=\"img\"></rect><text class=\"sv-grid-chart-sankey-label svelte-kvdein\"> </text>", 1), _r = y("<!><!>", 1), vr = y("<circle class=\"sv-grid-chart-gridline svelte-kvdein\" fill=\"none\"></circle>"), yr = y("<text class=\"sv-grid-chart-axis svelte-kvdein\"> </text>"), br = y("<path class=\"sv-grid-chart-arc-track svelte-kvdein\"></path>"), xr = y("<path class=\"sv-grid-chart-ribbon svelte-kvdein\" fill-opacity=\"0.45\" stroke-opacity=\"0.6\"></path>"), Sr = y("<path stroke=\"var(--sg-bg, #fff)\" stroke-width=\"1\"></path>"), Cr = y("<text class=\"sv-grid-chart-axis svelte-kvdein\"> </text>"), wr = y("<text class=\"sv-grid-chart-datalabel on-bar svelte-kvdein\" text-anchor=\"middle\" dominant-baseline=\"middle\" pointer-events=\"none\"> </text>"), Tr = y("<!><!><!><!><!><!>", 1), Er = y("<rect></rect>"), Dr = y("<line class=\"sv-grid-chart-bullet-target\" stroke=\"var(--sg-fg, #0f172a)\" stroke-width=\"2.5\"></line>"), Or = y("<g class=\"sv-grid-chart-bullet\"><!><rect class=\"sv-grid-chart-bar svelte-kvdein\"></rect><!></g>"), kr = y("<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), Ar = y("<text class=\"sv-grid-chart-datalabel on-bar svelte-kvdein\" text-anchor=\"middle\" dominant-baseline=\"middle\"> </text>"), jr = y("<path stroke=\"var(--sg-bg, #fff)\" stroke-width=\"1\"></path><!>", 1), Mr = y("<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), Nr = y("<rect class=\"sv-grid-chart-cat-hit svelte-kvdein\" data-dense=\"true\"></rect>"), Pr = y("<rect class=\"sv-grid-chart-cat-hit svelte-kvdein\"></rect>"), Fr = y("<rect class=\"sv-grid-chart-zoom-rect svelte-kvdein\"></rect>"), Ir = y("<path fill-opacity=\"0.10\" stroke=\"none\"></path>"), Lr = y("<!><path fill=\"none\" stroke-width=\"1.2\" opacity=\"0.75\"></path>", 1), Rr = y("<rect opacity=\"0.55\"></rect>"), zr = k("<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>"), Br = k("<div class=\"sv-grid-chart-empty svelte-kvdein\"> </div>"), Vr = k("<input class=\"sv-grid-chart-textdraft svelte-kvdein\" type=\"text\"/>"), Hr = k("<span class=\"sv-grid-chart-tooltip-dot svelte-kvdein\"></span>"), Ur = k("<span class=\"sv-grid-chart-tooltip-row-label svelte-kvdein\"> </span>"), Wr = k("<span class=\"sv-grid-chart-tooltip-row svelte-kvdein\"><!> <!> <span class=\"sv-grid-chart-tooltip-row-value svelte-kvdein\"> </span></span>"), Gr = k("<span class=\"sv-grid-chart-tooltip-title svelte-kvdein\"> </span> <!>", 1), Kr = k("<div role=\"tooltip\"><!></div>"), qr = k("<span class=\"sv-grid-chart-swatch svelte-kvdein\"></span> ", 1), Jr = k("<button type=\"button\"><!></button>"), Yr = k("<button type=\"button\" class=\"sv-grid-chart-legend-more svelte-kvdein\"> </button>"), Xr = k("<div><!> <!></div>"), Zr = k("<div class=\"sv-grid-chart-live sv-grid-chart-sr-only svelte-kvdein\" aria-live=\"polite\" aria-atomic=\"true\"> </div>"), Qr = k("<th> </th>"), $r = k("<td> </td>"), ei = k("<tr></tr>"), ti = k("<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>");
|
|
447
|
+
var tt = v("<span class=\"sv-grid-chart-crumb is-current svelte-kvdein\" aria-current=\"page\"> </span>"), nt = v("<button type=\"button\" class=\"sv-grid-chart-tool sv-grid-chart-crumb svelte-kvdein\"> </button>"), rt = v("<span class=\"sv-grid-chart-crumb-sep svelte-kvdein\" aria-hidden=\"true\">/</span> <!>", 1), it = v("<nav class=\"sv-grid-chart-crumbs svelte-kvdein\"><button type=\"button\" class=\"sv-grid-chart-tool sv-grid-chart-crumb svelte-kvdein\"> </button> <!></nav>"), at = v("<button type=\"button\" class=\"sv-grid-chart-tool sv-grid-chart-preset svelte-kvdein\"> </button>"), ot = v("<span class=\"sv-grid-chart-presets svelte-kvdein\" role=\"group\"></span>"), st = v("<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>"), ct = v("<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>"), lt = v("<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>"), ut = v("<button type=\"button\"> </button>"), dt = v("<button type=\"button\" class=\"sv-grid-chart-tool svelte-kvdein\"> </button> <button type=\"button\" class=\"sv-grid-chart-tool svelte-kvdein\"> </button>", 1), ft = v("<span class=\"sv-grid-chart-drawtools svelte-kvdein\" role=\"group\"><!> <!></span>"), pt = v("<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>"), mt = v("<div class=\"sv-grid-chart-toolbar is-crumbs-only svelte-kvdein\" role=\"toolbar\"><!></div>"), ht = y("<clipPath><rect></rect></clipPath>"), gt = y("<linearGradient x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\"><stop offset=\"0\"></stop><stop offset=\"1\"></stop></linearGradient>"), _t = y("<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>"), vt = y("<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>"), yt = y("<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>"), bt = y("<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>"), xt = y("<defs><!><!><!></defs>"), St = y("<text class=\"sv-grid-chart-title svelte-kvdein\" text-anchor=\"middle\"> </text>"), Ct = y("<text class=\"sv-grid-chart-subtitle svelte-kvdein\" text-anchor=\"middle\"> </text>"), wt = y("<text class=\"sv-grid-chart-caption svelte-kvdein\" text-anchor=\"start\"> </text>"), Tt = y("<line class=\"sv-grid-chart-gridline svelte-kvdein\"></line>"), Et = y("<!><text class=\"sv-grid-chart-axis is-x svelte-kvdein\" text-anchor=\"middle\"> </text>", 1), Dt = y("<line class=\"sv-grid-chart-gridline svelte-kvdein\"></line>"), Ot = y("<text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"end\"> </text>"), kt = y("<text class=\"sv-grid-chart-axis-title svelte-kvdein\" text-anchor=\"middle\"> </text>"), At = y("<text class=\"sv-grid-chart-axis-title svelte-kvdein\" text-anchor=\"middle\"> </text>"), jt = y("<!><!><!><!><!>", 1), Mt = y("<line></line>"), Nt = y("<text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"end\"> </text>"), Pt = y("<!><!>", 1), Ft = y("<line class=\"sv-grid-chart-gridline svelte-kvdein\"></line>"), It = y("<text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"start\"> </text>"), Lt = y("<text class=\"sv-grid-chart-axis is-x svelte-kvdein\"> </text>"), Rt = y("<text class=\"sv-grid-chart-axis is-x svelte-kvdein\" text-anchor=\"middle\"> </text>"), zt = y("<line class=\"sv-grid-chart-gridline svelte-kvdein\" opacity=\"0.5\"></line>"), Bt = y("<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), Vt = y("<text class=\"sv-grid-chart-axis-title svelte-kvdein\" text-anchor=\"middle\"> </text>"), Ht = y("<text class=\"sv-grid-chart-axis-title svelte-kvdein\" text-anchor=\"middle\"> </text>"), Ut = y("<text class=\"sv-grid-chart-axis-title svelte-kvdein\" text-anchor=\"middle\"> </text>"), Wt = y("<!><!><!><!><!><!><!><!>", 1), Gt = y("<text class=\"sv-grid-chart-reflabel svelte-kvdein\" text-anchor=\"end\"> </text>"), Kt = y("<text class=\"sv-grid-chart-reflabel svelte-kvdein\" text-anchor=\"middle\"> </text>"), qt = y("<rect class=\"sv-grid-chart-refband svelte-kvdein\"></rect><!>", 1), Jt = y("<path class=\"sv-grid-chart-band svelte-kvdein\" fill-opacity=\"0.12\" stroke=\"none\"></path>"), Yt = y("<path class=\"sv-grid-chart-area svelte-kvdein\" stroke=\"none\"></path>"), Xt = y("<circle class=\"sv-grid-chart-dot is-active svelte-kvdein\" r=\"4\"></circle>"), Zt = y("<circle></circle>"), Qt = y("<path fill=\"none\" stroke-width=\"1.5\"></path>"), $t = y("<path></path>"), en = y("<g class=\"svelte-kvdein\"><!><!><path class=\"sv-grid-chart-linepath svelte-kvdein\" fill=\"none\" stroke-linejoin=\"round\" stroke-linecap=\"round\"></path><!></g>"), tn = y("<rect rx=\"1\"></rect>"), nn = y("<circle class=\"sv-grid-chart-dot svelte-kvdein\" fill-opacity=\"0.55\"></circle>"), rn = y("<g class=\"sv-grid-chart-stem svelte-kvdein\"><line class=\"svelte-kvdein\"></line><!><circle class=\"sv-grid-chart-dot svelte-kvdein\"></circle></g>"), an = y("<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), on = y("<line class=\"sv-grid-chart-wick svelte-kvdein\"></line><rect class=\"sv-grid-chart-candle svelte-kvdein\"></rect>", 1), sn = y("<circle class=\"sv-grid-chart-outlier svelte-kvdein\" r=\"2\" fill=\"none\"></circle>"), cn = y("<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), ln = y("<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), un = y("<circle fill-opacity=\"0.7\"></circle>"), dn = y("<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>"), fn = y("<text class=\"sv-grid-chart-reflabel svelte-kvdein\" text-anchor=\"end\"> </text>"), pn = y("<line class=\"sv-grid-chart-refline svelte-kvdein\"></line><!>", 1), mn = y("<line class=\"sv-grid-chart-refline svelte-kvdein\"></line><text class=\"sv-grid-chart-reflabel svelte-kvdein\" text-anchor=\"start\"> </text>", 1), hn = y("<path class=\"sv-grid-chart-overlay-band svelte-kvdein\" fill-opacity=\"0.1\" stroke-opacity=\"0.35\" stroke-width=\"1\"></path>"), gn = y("<!><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), _n = y("<line class=\"sv-grid-chart-datalabel-leader svelte-kvdein\"></line>"), vn = y("<!><text> </text>", 1), yn = y("<text class=\"sv-grid-chart-serieslabel svelte-kvdein\" text-anchor=\"start\"> </text>"), bn = y("<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), xn = y("<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), Sn = y("<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), Cn = y("<circle stroke=\"var(--sg-bg, #fff)\" stroke-width=\"1.5\"></circle><text class=\"sv-grid-chart-annotation-label svelte-kvdein\"> </text>", 1), wn = y("<g><!></g>"), Tn = y("<path class=\"svelte-kvdein\"></path>"), En = y("<line class=\"sv-grid-chart-drawing-hit svelte-kvdein\"></line><line stroke-width=\"1.5\" class=\"svelte-kvdein\"></line><!>", 1), Dn = y("<rect fill-opacity=\"0.08\" stroke-width=\"1.2\" class=\"svelte-kvdein\"></rect>"), On = y("<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), kn = y("<line stroke-width=\"1\" class=\"svelte-kvdein\"></line><text class=\"sv-grid-chart-drawing-label svelte-kvdein\"> </text>", 1), An = y("<!><rect class=\"sv-grid-chart-drawing-hit svelte-kvdein\"></rect>", 1), jn = y("<text class=\"sv-grid-chart-drawing-text svelte-kvdein\"> </text>"), Mn = y("<circle class=\"sv-grid-chart-drawing-handle svelte-kvdein\" r=\"5\" fill=\"var(--sg-bg, #fff)\" stroke-width=\"1.5\"></circle>"), Nn = y("<g><!><!></g>"), Pn = y("<rect fill=\"var(--sg-accent, #2563eb)\" fill-opacity=\"0.08\" stroke=\"var(--sg-accent, #2563eb)\" stroke-dasharray=\"4 3\"></rect>"), Fn = y("<line stroke=\"var(--sg-accent, #2563eb)\" stroke-width=\"1.5\" stroke-dasharray=\"4 3\"></line>"), In = y("<circle r=\"3.5\" fill=\"var(--sg-accent, #2563eb)\"></circle><!>", 1), Ln = y("<g class=\"sv-grid-chart-drawings\"><!><!></g>"), Rn = y("<line class=\"sv-grid-chart-crosshair svelte-kvdein\"></line>"), zn = y("<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>"), Bn = y("<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), Vn = y("<line class=\"sv-grid-chart-crosshair svelte-kvdein\"></line><!>", 1), Hn = y("<text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"end\"> </text>"), Un = y("<text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"middle\"> </text>"), Wn = y("<text class=\"sv-grid-chart-heatlabel svelte-kvdein\" text-anchor=\"middle\"> </text>"), Gn = y("<rect class=\"sv-grid-chart-heatcell svelte-kvdein\"></rect><!>", 1), Kn = y("<stop></stop>"), qn = y("<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), Jn = y("<!><!><!><!>", 1), Yn = y("<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), Xn = y("<path class=\"sv-grid-chart-funnel-seg svelte-kvdein\"></path><!>", 1), Zn = y("<circle class=\"sv-grid-chart-radar-ring svelte-kvdein\"></circle>"), Qn = y("<line class=\"sv-grid-chart-radar-spoke svelte-kvdein\"></line><text class=\"sv-grid-chart-axis svelte-kvdein\"> </text>", 1), $n = y("<circle class=\"sv-grid-chart-radar-dot svelte-kvdein\" r=\"3\" role=\"img\"></circle>"), er = y("<path class=\"sv-grid-chart-radar-poly svelte-kvdein\" fill-opacity=\"0.18\" stroke-width=\"2\"></path><!>", 1), tr = y("<!><!><!>", 1), nr = y("<text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"start\"> </text>"), rr = y("<text class=\"sv-grid-chart-axis svelte-kvdein\" text-anchor=\"end\"> </text>"), ir = y("<rect rx=\"2\" role=\"img\"></rect>"), ar = y("<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), or = y("<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), sr = y("<!><!><!><!>", 1), cr = y("<line></line>"), lr = y("<path fill=\"none\" stroke-width=\"4\" stroke-linecap=\"butt\" opacity=\"0.7\"></path>"), ur = y("<line stroke=\"var(--sg-fg, #0f172a)\" stroke-width=\"2.5\" stroke-linecap=\"round\"></line>"), dr = y("<!><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), fr = y("<text class=\"sv-grid-chart-treemap-label svelte-kvdein\"> </text>"), pr = y("<text class=\"sv-grid-chart-treemap-value svelte-kvdein\" opacity=\"0.85\"> </text>"), mr = y("<rect class=\"sv-grid-chart-treemap-cell svelte-kvdein\"></rect><!><!>", 1), hr = y("<path class=\"sv-grid-chart-sankey-link svelte-kvdein\" fill=\"none\" stroke-opacity=\"0.35\" role=\"img\"></path>"), gr = y("<rect class=\"sv-grid-chart-sankey-node svelte-kvdein\" role=\"img\"></rect><text class=\"sv-grid-chart-sankey-label svelte-kvdein\"> </text>", 1), _r = y("<!><!>", 1), vr = y("<circle class=\"sv-grid-chart-gridline svelte-kvdein\" fill=\"none\"></circle>"), yr = y("<text class=\"sv-grid-chart-axis svelte-kvdein\"> </text>"), br = y("<path class=\"sv-grid-chart-arc-track svelte-kvdein\"></path>"), xr = y("<path class=\"sv-grid-chart-ribbon svelte-kvdein\" fill-opacity=\"0.45\" stroke-opacity=\"0.6\"></path>"), Sr = y("<path stroke=\"var(--sg-bg, #fff)\" stroke-width=\"1\"></path>"), Cr = y("<text class=\"sv-grid-chart-axis svelte-kvdein\"> </text>"), wr = y("<text class=\"sv-grid-chart-datalabel on-bar svelte-kvdein\" text-anchor=\"middle\" dominant-baseline=\"middle\" pointer-events=\"none\"> </text>"), Tr = y("<!><!><!><!><!><!>", 1), Er = y("<rect></rect>"), Dr = y("<line class=\"sv-grid-chart-bullet-target\" stroke=\"var(--sg-fg, #0f172a)\" stroke-width=\"2.5\"></line>"), Or = y("<g class=\"sv-grid-chart-bullet\"><!><rect class=\"sv-grid-chart-bar svelte-kvdein\"></rect><!></g>"), kr = y("<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), Ar = y("<text class=\"sv-grid-chart-datalabel on-bar svelte-kvdein\" text-anchor=\"middle\" dominant-baseline=\"middle\"> </text>"), jr = y("<path stroke=\"var(--sg-bg, #fff)\" stroke-width=\"1\"></path><!>", 1), Mr = y("<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), Nr = y("<rect class=\"sv-grid-chart-cat-hit svelte-kvdein\" data-dense=\"true\"></rect>"), Pr = y("<rect class=\"sv-grid-chart-cat-hit svelte-kvdein\"></rect>"), Fr = y("<rect class=\"sv-grid-chart-zoom-rect svelte-kvdein\"></rect>"), Ir = y("<path fill-opacity=\"0.10\" stroke=\"none\"></path>"), Lr = y("<!><path fill=\"none\" stroke-width=\"1.2\" opacity=\"0.75\"></path>", 1), Rr = y("<rect opacity=\"0.55\"></rect>"), zr = v("<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>"), Br = v("<div class=\"sv-grid-chart-empty svelte-kvdein\"> </div>"), Vr = v("<input class=\"sv-grid-chart-textdraft svelte-kvdein\" type=\"text\"/>"), Hr = v("<span class=\"sv-grid-chart-tooltip-dot svelte-kvdein\"></span>"), Ur = v("<span class=\"sv-grid-chart-tooltip-row-label svelte-kvdein\"> </span>"), Wr = v("<span class=\"sv-grid-chart-tooltip-row svelte-kvdein\"><!> <!> <span class=\"sv-grid-chart-tooltip-row-value svelte-kvdein\"> </span></span>"), Gr = v("<span class=\"sv-grid-chart-tooltip-title svelte-kvdein\"> </span> <!>", 1), Kr = v("<div role=\"tooltip\"><!></div>"), qr = v("<span class=\"sv-grid-chart-swatch svelte-kvdein\"></span> ", 1), Jr = v("<button type=\"button\"><!></button>"), Yr = v("<button type=\"button\" class=\"sv-grid-chart-legend-more svelte-kvdein\"> </button>"), Xr = v("<div><!> <!></div>"), Zr = v("<div class=\"sv-grid-chart-live sv-grid-chart-sr-only svelte-kvdein\" aria-live=\"polite\" aria-atomic=\"true\"> </div>"), Qr = v("<th> </th>"), $r = v("<td> </td>"), ei = v("<tr></tr>"), ti = v("<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>");
|
|
448
448
|
function ni(ne, f) {
|
|
449
|
-
|
|
450
|
-
let
|
|
451
|
-
|
|
449
|
+
ye(f, !0);
|
|
450
|
+
let le = A(f, "legend", 3, !0), v = A(f, "interactive", 3, !0), y = A(f, "tooltipMode", 3, "shared"), Se = A(f, "tooltipPosition", 3, "follow"), Ce = A(f, "tooltipSticky", 3, !1), Oe = A(f, "zoomable", 3, !1), I = A(f, "zoom", 15, null), L = A(f, "rangePresets", 3, !1), R = A(f, "contextMenu", 3, !1), Pe = A(f, "animate", 3, !1), Fe = A(f, "drillable", 3, !1), Ie = A(f, "drillPath", 31, () => pe([])), Le = A(f, "selectable", 3, !1), Re = A(f, "selected", 31, () => pe([])), ze = A(f, "announce", 3, !0), Be = A(f, "describe", 3, !0), Ve = A(f, "live", 3, !1), He = A(f, "hoverHighlight", 3, !0), Ue = A(f, "crosshairLabels", 3, !0), We = A(f, "brush", 3, !1), Ge = A(f, "brushHeight", 3, 88), Ke = A(f, "autosize", 3, !1), qe = A(f, "annotatable", 3, !1), Je = A(f, "drawable", 3, !1), z = j(() => $e(f.localeText)), Ye = p("");
|
|
451
|
+
fe(() => {
|
|
452
452
|
if (!Be()) {
|
|
453
|
-
|
|
453
|
+
b(Ye, "");
|
|
454
454
|
return;
|
|
455
455
|
}
|
|
456
|
-
let e =
|
|
456
|
+
let e = F(W), t = !0;
|
|
457
457
|
return import("./chart-summary-BL4WDgEu.js").then(({ chartSummary: n }) => {
|
|
458
|
-
t &&
|
|
458
|
+
t && b(Ye, n(e), !0);
|
|
459
459
|
}), () => {
|
|
460
460
|
t = !1;
|
|
461
461
|
};
|
|
462
462
|
});
|
|
463
463
|
async function Qe() {
|
|
464
|
-
if (
|
|
464
|
+
if (F(Ye)) {
|
|
465
465
|
try {
|
|
466
|
-
await navigator.clipboard?.writeText(
|
|
466
|
+
await navigator.clipboard?.writeText(F(Ye));
|
|
467
467
|
} catch {}
|
|
468
|
-
|
|
468
|
+
b(Vo, `${F(z).describeCopied}. ${F(Ye)}`);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
let ni =
|
|
471
|
+
let ni = p(0), ri = p(0), ii = j(() => f.width ?? (Ke() && F(ni) > 24 ? F(ni) : f.spec.width ?? 520)), ai = j(() => f.height ?? (Ke() && F(ri) > 24 ? F(ri) : f.spec.height ?? 300)), oi = j(() => {
|
|
472
472
|
if (!f.spec.responsive?.length) return;
|
|
473
473
|
let e;
|
|
474
|
-
for (let t of u(f.spec.responsive,
|
|
474
|
+
for (let t of u(f.spec.responsive, F(ii), F(ai))) t.legend !== void 0 && (e = t.legend);
|
|
475
475
|
return e;
|
|
476
|
-
}), B =
|
|
476
|
+
}), B = j(() => {
|
|
477
477
|
if (!f.spec.responsive?.length) return f.spec;
|
|
478
|
-
let { responsive: e, ...t } = o(f.spec,
|
|
478
|
+
let { responsive: e, ...t } = o(f.spec, F(ii), F(ai));
|
|
479
479
|
return t;
|
|
480
|
-
}), si =
|
|
481
|
-
if (!Ke() ||
|
|
482
|
-
let e =
|
|
480
|
+
}), si = j(() => F(oi) ?? le()), ci = j(() => F(si) === !0 ? "bottom" : F(si) === !1 ? null : F(si)), li = j(() => F(ci) === "left" || F(ci) === "right"), ui = p(0), di = p(0), fi = p(0), pi = p(0), mi = j(() => {
|
|
481
|
+
if (!Ke() || F(ni) <= 24) return null;
|
|
482
|
+
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(ni) - (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);
|
|
483
483
|
return {
|
|
484
484
|
width: i,
|
|
485
|
-
height:
|
|
485
|
+
height: F(ri) > 24 ? Math.max(120, Math.round(F(ri) - a - o)) : void 0
|
|
486
486
|
};
|
|
487
|
-
}), hi =
|
|
487
|
+
}), hi = j(() => f.width ?? F(mi)?.width), gi = j(() => f.height ?? F(mi)?.height), _i = j(() => typeof f.dataLabels == "object" ? {
|
|
488
488
|
show: !0,
|
|
489
489
|
...f.dataLabels
|
|
490
|
-
} : f.dataLabels === void 0 ?
|
|
491
|
-
show:
|
|
492
|
-
...
|
|
493
|
-
} : { show: !1 } : { show: !!f.dataLabels }), vi =
|
|
490
|
+
} : f.dataLabels === void 0 ? F(B).dataLabels ? {
|
|
491
|
+
show: F(B).dataLabels.show !== !1,
|
|
492
|
+
...F(B).dataLabels
|
|
493
|
+
} : { show: !1 } : { show: !!f.dataLabels }), vi = j(() => Oe() ? Oe() === !0 ? {
|
|
494
494
|
drag: !0,
|
|
495
495
|
wheel: !1,
|
|
496
496
|
pinch: !1,
|
|
@@ -502,39 +502,39 @@ function ni(ne, f) {
|
|
|
502
502
|
pinch: Oe().pinch ?? !!Oe().wheel,
|
|
503
503
|
pan: Oe().pan ?? !1,
|
|
504
504
|
axis: Oe().axis ?? "x"
|
|
505
|
-
} : null), yi =
|
|
506
|
-
let e =
|
|
507
|
-
return f.formatValue ? f.formatValue : e?.formatter ? (t) => e.formatter(t, -1) : e?.format ? (t) => d(t, e.format,
|
|
508
|
-
}), Ci =
|
|
505
|
+
} : null), yi = p(!1), bi = j(() => f.toolbar ?? (!!Oe() || !!f.onDrill || qe() || !!L() || Fe() || !!Je())), xi = p(!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 = j(() => {
|
|
506
|
+
let e = F(B).y2Axis;
|
|
507
|
+
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);
|
|
508
|
+
}), Ci = j(() => 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 = p(pe(new Set(f.spec.series.filter((e) => e.visible === !1).map((e) => e.label)))), Ei = p(null), Di = p(null), Oi = p(null), ki = j(() => F(B).palette ?? F(Di) ?? n), Ai = `svgc-${Math.random().toString(36).slice(2, 8)}`, ji = j(() => F(B).series.map((e, t) => ({
|
|
509
509
|
...e,
|
|
510
|
-
color: e.color ??
|
|
511
|
-
}))), Mi =
|
|
510
|
+
color: e.color ?? F(ki)[t % F(ki).length]
|
|
511
|
+
}))), Mi = j(() => F(B).series.map((e, t) => e.pattern ? e.pattern : F(B).patternFallback ? [
|
|
512
512
|
"stripe",
|
|
513
513
|
"crosshatch",
|
|
514
514
|
"dots",
|
|
515
515
|
"diagonal"
|
|
516
|
-
][t % 4] : "solid")), Ni =
|
|
516
|
+
][t % 4] : "solid")), Ni = j(() => {
|
|
517
517
|
let e = {};
|
|
518
|
-
return
|
|
519
|
-
let r =
|
|
518
|
+
return F(ji).forEach((t, n) => {
|
|
519
|
+
let r = F(Mi)[n];
|
|
520
520
|
e[t.label] = r === "solid" || !r ? t.color : `url(#${Ai}-pat-${n})`;
|
|
521
521
|
}), e;
|
|
522
|
-
}), Pi =
|
|
522
|
+
}), Pi = j(() => F(ji).map((e, t) => ({
|
|
523
523
|
id: `${Ai}-pat-${t}`,
|
|
524
524
|
color: e.color,
|
|
525
|
-
kind:
|
|
526
|
-
})).filter((e) => e.kind !== "solid")), Fi =
|
|
527
|
-
if (
|
|
528
|
-
let e =
|
|
529
|
-
return new Set(e.filter((e) => e !==
|
|
530
|
-
}), Ii =
|
|
525
|
+
kind: F(Mi)[t] ?? "solid"
|
|
526
|
+
})).filter((e) => e.kind !== "solid")), Fi = j(() => {
|
|
527
|
+
if (F(Ei) == null) return F(Ti);
|
|
528
|
+
let e = F(B).type === "pie" ? F(Ja) : F(B).series.map((e) => e.label);
|
|
529
|
+
return new Set(e.filter((e) => e !== F(Ei)));
|
|
530
|
+
}), Ii = j(() => I() !== null);
|
|
531
531
|
function Li(e) {
|
|
532
532
|
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)) {
|
|
533
|
-
let t =
|
|
534
|
-
Me(f.syncGroup, e, t, Ri, e ? [
|
|
533
|
+
let t = F(B).categories.length;
|
|
534
|
+
Me(f.syncGroup, e, t, Ri, e ? [F(B).categories[e.i0] ?? "", F(B).categories[e.i1] ?? ""] : null);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
let Ri = Symbol("svchart"), zi = !1, Bi =
|
|
537
|
+
let Ri = Symbol("svchart"), zi = !1, Bi = j(() => f.syncGroup ? Ae(f.syncGroup) : null), Vi = p(!1);
|
|
538
538
|
function Hi(e) {
|
|
539
539
|
Li(e);
|
|
540
540
|
}
|
|
@@ -546,16 +546,16 @@ function ni(ne, f) {
|
|
|
546
546
|
return n == null ? null : (I() ? I().i0 : 0) + n;
|
|
547
547
|
}
|
|
548
548
|
function Gi(e) {
|
|
549
|
-
if (!
|
|
549
|
+
if (!F(vi)?.wheel || !F(K) || F(xi) || F(vi).wheel === "modifier" && !(e.ctrlKey || e.metaKey)) return;
|
|
550
550
|
let t = ea(e);
|
|
551
|
-
if (!t || t.x <
|
|
551
|
+
if (!t || t.x < F(G).plot.x || t.x > F(G).plot.x + F(G).plot.w) return;
|
|
552
552
|
e.preventDefault();
|
|
553
553
|
let n = Wi(e.clientX, e.currentTarget) ?? 0, r = e.deltaY > 0 ? 1.25 : .8;
|
|
554
|
-
Li(we(I(),
|
|
554
|
+
Li(we(I(), F(B).categories.length, n, r));
|
|
555
555
|
}
|
|
556
|
-
let Ki = /* @__PURE__ */ new Map(), qi = null, Ji = null, Yi = (e) => !!
|
|
557
|
-
if (!
|
|
558
|
-
let e = Math.min(
|
|
556
|
+
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 = p(null), Zi = p(null), Qi = p(null), $i = j(() => {
|
|
557
|
+
if (!F(Zi) || !F(Qi)) return null;
|
|
558
|
+
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);
|
|
559
559
|
return n > 4 && r > 4 ? {
|
|
560
560
|
x: e,
|
|
561
561
|
y: t,
|
|
@@ -564,22 +564,22 @@ function ni(ne, f) {
|
|
|
564
564
|
} : null;
|
|
565
565
|
});
|
|
566
566
|
function ea(e) {
|
|
567
|
-
if (!
|
|
568
|
-
let t =
|
|
567
|
+
if (!F(Xi)) return null;
|
|
568
|
+
let t = F(Xi).getBoundingClientRect();
|
|
569
569
|
return {
|
|
570
|
-
x: (e.clientX - t.left) / t.width *
|
|
571
|
-
y: (e.clientY - t.top) / t.height *
|
|
570
|
+
x: (e.clientX - t.left) / t.width * F(G).width,
|
|
571
|
+
y: (e.clientY - t.top) / t.height * F(G).height
|
|
572
572
|
};
|
|
573
573
|
}
|
|
574
574
|
function ta(e) {
|
|
575
|
-
let t =
|
|
576
|
-
return Math.max(0, Math.min(
|
|
575
|
+
let t = F(q) ? e.y - F(G).plot.y : e.x - F(G).plot.x, n = Math.floor(t / F(wo));
|
|
576
|
+
return Math.max(0, Math.min(F(W).categories.length - 1, n));
|
|
577
577
|
}
|
|
578
578
|
function na(e) {
|
|
579
|
-
if (
|
|
579
|
+
if (F(xi) || F(la) || F(ha) || !F(vi) || !F(K)) return;
|
|
580
580
|
let t = ea(e);
|
|
581
|
-
if (t && !(t.x <
|
|
582
|
-
if (e.target.setPointerCapture?.(e.pointerId),
|
|
581
|
+
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)) {
|
|
582
|
+
if (e.target.setPointerCapture?.(e.pointerId), F(vi).pinch && (Ki.set(e.pointerId, t), Ki.size === 2)) {
|
|
583
583
|
let [e, t] = [...Ki.values()];
|
|
584
584
|
qi = {
|
|
585
585
|
dist: Math.hypot(e.x - t.x, e.y - t.y) || 1,
|
|
@@ -588,7 +588,7 @@ function ni(ne, f) {
|
|
|
588
588
|
y: (e.y + t.y) / 2
|
|
589
589
|
}) + (I() ? I().i0 : 0),
|
|
590
590
|
start: I()
|
|
591
|
-
},
|
|
591
|
+
}, b(Zi, null), b(Qi, null);
|
|
592
592
|
return;
|
|
593
593
|
}
|
|
594
594
|
if (Yi(e)) {
|
|
@@ -598,7 +598,7 @@ function ni(ne, f) {
|
|
|
598
598
|
};
|
|
599
599
|
return;
|
|
600
600
|
}
|
|
601
|
-
|
|
601
|
+
F(vi).drag && (b(Zi, t, !0), b(Qi, t, !0));
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
604
|
function ra(e) {
|
|
@@ -608,7 +608,7 @@ function ni(ne, f) {
|
|
|
608
608
|
let [n, r] = [...Ki.values()];
|
|
609
609
|
if (n && r) {
|
|
610
610
|
let e = Math.hypot(n.x - r.x, n.y - r.y) || 1;
|
|
611
|
-
Li(Ee(qi.start,
|
|
611
|
+
Li(Ee(qi.start, F(B).categories.length, qi.mid, e / qi.dist));
|
|
612
612
|
}
|
|
613
613
|
return;
|
|
614
614
|
}
|
|
@@ -616,10 +616,10 @@ function ni(ne, f) {
|
|
|
616
616
|
let t = ea(e);
|
|
617
617
|
if (!t) return;
|
|
618
618
|
let n = Ji.startIndex - ta(t);
|
|
619
|
-
Li(Te(Ji.start,
|
|
619
|
+
Li(Te(Ji.start, F(B).categories.length, n));
|
|
620
620
|
return;
|
|
621
621
|
}
|
|
622
|
-
|
|
622
|
+
F(Zi) && b(Qi, ea(e), !0);
|
|
623
623
|
}
|
|
624
624
|
function ia(e) {
|
|
625
625
|
if (e && Ki.delete(e.pointerId), qi) {
|
|
@@ -630,21 +630,21 @@ function ni(ne, f) {
|
|
|
630
630
|
Ji = null;
|
|
631
631
|
return;
|
|
632
632
|
}
|
|
633
|
-
if (!
|
|
634
|
-
|
|
633
|
+
if (!F(Zi) || !F(Qi)) {
|
|
634
|
+
b(Zi, null), b(Qi, null);
|
|
635
635
|
return;
|
|
636
636
|
}
|
|
637
|
-
let t =
|
|
637
|
+
let t = F($i);
|
|
638
638
|
if (t) {
|
|
639
|
-
let e =
|
|
639
|
+
let e = F(vi)?.axis ?? "x", n = ta({
|
|
640
640
|
x: t.x,
|
|
641
641
|
y: t.y
|
|
642
642
|
}), r = ta({
|
|
643
643
|
x: t.x + t.w,
|
|
644
644
|
y: t.y + t.h
|
|
645
|
-
}), i = I() ? I().i0 : 0, a = e === "y" ? I()?.i0 ?? 0 : i + Math.min(n, r), o = e === "y" ? I()?.i1 ??
|
|
646
|
-
if (e !== "x" &&
|
|
647
|
-
let e =
|
|
645
|
+
}), 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;
|
|
646
|
+
if (e !== "x" && F(uo) && !F(q)) {
|
|
647
|
+
let e = F(uo).yInvert(t.y), n = F(uo).yInvert(t.y + t.h);
|
|
648
648
|
Number.isFinite(e) && Number.isFinite(n) && e !== n && (s = {
|
|
649
649
|
min: Math.min(e, n),
|
|
650
650
|
max: Math.max(e, n)
|
|
@@ -656,10 +656,10 @@ function ni(ne, f) {
|
|
|
656
656
|
...s ? { y: s } : {}
|
|
657
657
|
});
|
|
658
658
|
}
|
|
659
|
-
|
|
659
|
+
b(Zi, null), b(Qi, null);
|
|
660
660
|
}
|
|
661
661
|
function aa() {
|
|
662
|
-
Oe() &&
|
|
662
|
+
Oe() && F(Ii) && Ui();
|
|
663
663
|
}
|
|
664
664
|
let oa = [
|
|
665
665
|
"trend",
|
|
@@ -668,17 +668,17 @@ function ni(ne, f) {
|
|
|
668
668
|
"rect",
|
|
669
669
|
"arrow",
|
|
670
670
|
"text"
|
|
671
|
-
], sa =
|
|
672
|
-
trend:
|
|
673
|
-
hray:
|
|
674
|
-
fib:
|
|
675
|
-
rect:
|
|
676
|
-
arrow:
|
|
677
|
-
text:
|
|
678
|
-
})), ca =
|
|
671
|
+
], sa = j(() => ({
|
|
672
|
+
trend: F(z).toolTrend,
|
|
673
|
+
hray: F(z).toolRay,
|
|
674
|
+
fib: F(z).toolFib,
|
|
675
|
+
rect: F(z).toolRect,
|
|
676
|
+
arrow: F(z).toolArrow,
|
|
677
|
+
text: F(z).toolText
|
|
678
|
+
})), ca = j(() => Je() ? Je() === !0 ? oa : Je() : []), la = p(null), H = p(null), ua = p(null), da = p(null), fa = p(null), pa = p("");
|
|
679
679
|
function ma() {
|
|
680
|
-
let e =
|
|
681
|
-
|
|
680
|
+
let e = F(fa), t = F(pa).trim();
|
|
681
|
+
b(fa, null), b(pa, ""), !(!e || !t) && ba([..._a(), {
|
|
682
682
|
id: `d${Date.now().toString(36)}${ga++}`,
|
|
683
683
|
kind: "text",
|
|
684
684
|
points: [{
|
|
@@ -688,21 +688,21 @@ function ni(ne, f) {
|
|
|
688
688
|
text: t
|
|
689
689
|
}]);
|
|
690
690
|
}
|
|
691
|
-
let ha =
|
|
691
|
+
let ha = p(null), ga = 0, _a = () => F(B).drawings ?? [];
|
|
692
692
|
function va(e) {
|
|
693
|
-
if (!
|
|
694
|
-
let t =
|
|
695
|
-
if (t?.type === "number") return
|
|
696
|
-
if (t?.type === "time") return new Date(
|
|
697
|
-
let n = Math.round(
|
|
698
|
-
return
|
|
693
|
+
if (!F(uo)) return null;
|
|
694
|
+
let t = F(G).axes?.x;
|
|
695
|
+
if (t?.type === "number") return F(uo).xInvertValue(e);
|
|
696
|
+
if (t?.type === "time") return new Date(F(uo).xInvertValue(e)).toISOString();
|
|
697
|
+
let n = Math.round(F(uo).xInvert(e));
|
|
698
|
+
return F(W).categories[n] ?? null;
|
|
699
699
|
}
|
|
700
700
|
function ya(e) {
|
|
701
701
|
let t = ea(e);
|
|
702
|
-
if (!t || !
|
|
702
|
+
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;
|
|
703
703
|
let n = va(t.x);
|
|
704
704
|
if (n == null) return null;
|
|
705
|
-
let r =
|
|
705
|
+
let r = F(uo).yInvert(t.y);
|
|
706
706
|
return Number.isFinite(r) ? {
|
|
707
707
|
x: n,
|
|
708
708
|
y: Math.round(r * 1e3) / 1e3,
|
|
@@ -714,15 +714,15 @@ function ni(ne, f) {
|
|
|
714
714
|
f.onDrawingsChange?.(e);
|
|
715
715
|
}
|
|
716
716
|
function xa(e) {
|
|
717
|
-
|
|
717
|
+
b(la, F(la) === e ? null : e, !0), b(H, null), b(ua, null), b(fa, null);
|
|
718
718
|
}
|
|
719
719
|
function Sa(e) {
|
|
720
|
-
if (!
|
|
720
|
+
if (!F(la)) return;
|
|
721
721
|
let t = ya(e);
|
|
722
722
|
if (!t) return;
|
|
723
|
-
if (
|
|
724
|
-
let n =
|
|
725
|
-
|
|
723
|
+
if (F(la) === "text") {
|
|
724
|
+
let n = F(ss)?.getBoundingClientRect();
|
|
725
|
+
b(pa, ""), b(fa, {
|
|
726
726
|
x: t.x,
|
|
727
727
|
y: t.y,
|
|
728
728
|
left: n ? e.clientX - n.left : 0,
|
|
@@ -730,10 +730,10 @@ function ni(ne, f) {
|
|
|
730
730
|
}, !0);
|
|
731
731
|
return;
|
|
732
732
|
}
|
|
733
|
-
if (
|
|
733
|
+
if (F(la) === "hray") {
|
|
734
734
|
ba([..._a(), {
|
|
735
735
|
id: `d${Date.now().toString(36)}${ga++}`,
|
|
736
|
-
kind:
|
|
736
|
+
kind: F(la),
|
|
737
737
|
points: [{
|
|
738
738
|
x: t.x,
|
|
739
739
|
y: t.y
|
|
@@ -741,17 +741,17 @@ function ni(ne, f) {
|
|
|
741
741
|
}]);
|
|
742
742
|
return;
|
|
743
743
|
}
|
|
744
|
-
if (!
|
|
745
|
-
|
|
744
|
+
if (!F(H)) {
|
|
745
|
+
b(H, t, !0), b(ua, {
|
|
746
746
|
x: t.px,
|
|
747
747
|
y: t.py
|
|
748
748
|
}, !0);
|
|
749
749
|
return;
|
|
750
750
|
}
|
|
751
|
-
let n =
|
|
752
|
-
|
|
751
|
+
let n = F(H);
|
|
752
|
+
b(H, null), b(ua, null), ba([..._a(), {
|
|
753
753
|
id: `d${Date.now().toString(36)}${ga++}`,
|
|
754
|
-
kind:
|
|
754
|
+
kind: F(la),
|
|
755
755
|
points: [{
|
|
756
756
|
x: n.x,
|
|
757
757
|
y: n.y
|
|
@@ -762,10 +762,10 @@ function ni(ne, f) {
|
|
|
762
762
|
}]);
|
|
763
763
|
}
|
|
764
764
|
function Ca(e) {
|
|
765
|
-
if (
|
|
765
|
+
if (F(ha)) {
|
|
766
766
|
let t = ya(e);
|
|
767
767
|
if (!t) return;
|
|
768
|
-
let { id: n, index: r } =
|
|
768
|
+
let { id: n, index: r } = F(ha);
|
|
769
769
|
ba(_a().map((e) => e.id === n ? {
|
|
770
770
|
...e,
|
|
771
771
|
points: e.points.map((e, n) => n === r ? {
|
|
@@ -775,51 +775,51 @@ function ni(ne, f) {
|
|
|
775
775
|
} : e));
|
|
776
776
|
return;
|
|
777
777
|
}
|
|
778
|
-
if (
|
|
778
|
+
if (F(H)) {
|
|
779
779
|
let t = ea(e);
|
|
780
|
-
t &&
|
|
780
|
+
t && b(ua, t, !0);
|
|
781
781
|
}
|
|
782
782
|
}
|
|
783
783
|
function wa(e) {
|
|
784
|
-
ba(_a().filter((t) => t.id !== e)),
|
|
784
|
+
ba(_a().filter((t) => t.id !== e)), F(da) === e && b(da, null);
|
|
785
785
|
}
|
|
786
786
|
function Ta(e, t) {
|
|
787
787
|
(e.key === "Delete" || e.key === "Backspace") && (e.preventDefault(), wa(t));
|
|
788
788
|
}
|
|
789
789
|
function Ea(e) {
|
|
790
790
|
if (e.key === "Escape") {
|
|
791
|
-
if (
|
|
791
|
+
if (F(us)) {
|
|
792
792
|
Da();
|
|
793
793
|
return;
|
|
794
794
|
}
|
|
795
|
-
|
|
795
|
+
F(la) && (F(H) ? (b(H, null), b(ua, null)) : b(la, null));
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
798
|
function Da() {
|
|
799
|
-
|
|
799
|
+
b(us, null), Q();
|
|
800
800
|
}
|
|
801
801
|
function Oa(e) {
|
|
802
|
-
if (!(!Ce() || !
|
|
803
|
-
if (
|
|
802
|
+
if (!(!Ce() || !F(ls))) {
|
|
803
|
+
if (F(us) && F(us).index === e) {
|
|
804
804
|
Da();
|
|
805
805
|
return;
|
|
806
806
|
}
|
|
807
|
-
|
|
807
|
+
b(us, {
|
|
808
808
|
index: e,
|
|
809
|
-
series:
|
|
809
|
+
series: F(ls).ctx.series ?? null
|
|
810
810
|
}, !0);
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
|
-
|
|
814
|
-
if (!
|
|
813
|
+
fe(() => {
|
|
814
|
+
if (!F(us) || typeof document > "u") return;
|
|
815
815
|
let e = (e) => {
|
|
816
|
-
|
|
816
|
+
F(ss) && e.target instanceof Node && F(ss).contains(e.target) || Da();
|
|
817
817
|
};
|
|
818
818
|
return document.addEventListener("pointerdown", e, !0), () => document.removeEventListener("pointerdown", e, !0);
|
|
819
819
|
});
|
|
820
820
|
let ka = (e) => {
|
|
821
821
|
e.focus();
|
|
822
|
-
}, Aa =
|
|
822
|
+
}, Aa = j(() => F(B).type === "candlestick" || F(B).type === "ohlc"), ja = j(() => F(B).type === "ohlc"), Ma = j(() => Math.max(50, (F(hi) ?? F(B).width ?? 520) - 60)), Na = /* @__PURE__ */ new Set([
|
|
823
823
|
"pie",
|
|
824
824
|
"heatmap",
|
|
825
825
|
"funnel",
|
|
@@ -841,9 +841,9 @@ function ni(ne, f) {
|
|
|
841
841
|
"range-bar",
|
|
842
842
|
"stream",
|
|
843
843
|
"pareto"
|
|
844
|
-
]), Fa =
|
|
845
|
-
...
|
|
846
|
-
width:
|
|
844
|
+
]), Fa = j(() => We() && !Na.has(F(B).type)), Ia = j(() => ({
|
|
845
|
+
...F(B),
|
|
846
|
+
width: F(hi) ?? F(B).width,
|
|
847
847
|
height: Ge(),
|
|
848
848
|
title: void 0,
|
|
849
849
|
subtitle: void 0,
|
|
@@ -852,17 +852,17 @@ function ni(ne, f) {
|
|
|
852
852
|
y2AxisTitle: void 0,
|
|
853
853
|
xAxisTitle: void 0,
|
|
854
854
|
xAxis: {
|
|
855
|
-
...
|
|
855
|
+
...F(B).xAxis,
|
|
856
856
|
title: void 0,
|
|
857
857
|
labels: !1
|
|
858
858
|
},
|
|
859
859
|
yAxis: {
|
|
860
|
-
...
|
|
860
|
+
...F(B).yAxis,
|
|
861
861
|
title: void 0,
|
|
862
862
|
labels: !1
|
|
863
863
|
},
|
|
864
864
|
y2Axis: {
|
|
865
|
-
...
|
|
865
|
+
...F(B).y2Axis,
|
|
866
866
|
title: void 0,
|
|
867
867
|
labels: !1
|
|
868
868
|
},
|
|
@@ -872,9 +872,9 @@ function ni(ne, f) {
|
|
|
872
872
|
drawings: void 0,
|
|
873
873
|
seriesLabels: void 0,
|
|
874
874
|
dataLabels: { show: !1 },
|
|
875
|
-
type:
|
|
875
|
+
type: F(Aa) || F(B).type === "boxplot" || Pa.has(F(B).type) ? "line" : F(B).type === "histogram" ? "bar" : F(B).type,
|
|
876
876
|
stackOffset: void 0,
|
|
877
|
-
series:
|
|
877
|
+
series: F(ji).filter((e) => !F(Fi).has(e.label)).map((e) => e.ohlc || e.boxes ? {
|
|
878
878
|
...e,
|
|
879
879
|
ohlc: void 0,
|
|
880
880
|
boxes: void 0,
|
|
@@ -885,8 +885,8 @@ function ni(ne, f) {
|
|
|
885
885
|
errors: void 0,
|
|
886
886
|
type: e.type && (Pa.has(e.type) || e.type === "scatter") ? "line" : e.type
|
|
887
887
|
} : e)
|
|
888
|
-
})), U =
|
|
889
|
-
let e =
|
|
888
|
+
})), U = j(() => F(Fa) ? te(re(F(Ia), F(Ma))) : null), La = j(() => {
|
|
889
|
+
let e = F(B).categories.length;
|
|
890
890
|
return !I() || e === 0 ? {
|
|
891
891
|
t0: 0,
|
|
892
892
|
t1: 1
|
|
@@ -894,30 +894,30 @@ function ni(ne, f) {
|
|
|
894
894
|
t0: I().i0 / e,
|
|
895
895
|
t1: (I().i1 + 1) / e
|
|
896
896
|
};
|
|
897
|
-
}), Ra =
|
|
897
|
+
}), Ra = p(null);
|
|
898
898
|
function za(e, t) {
|
|
899
899
|
let n = t.getBoundingClientRect();
|
|
900
|
-
return
|
|
900
|
+
return F(U) ? (e.clientX - n.left) / n.width * F(U).width : 0;
|
|
901
901
|
}
|
|
902
902
|
function Ba(e, t) {
|
|
903
|
-
if (!
|
|
903
|
+
if (!F(U)) return;
|
|
904
904
|
let n = e.currentTarget, r = za(e, n.ownerSVGElement ?? n);
|
|
905
|
-
|
|
905
|
+
b(Ra, {
|
|
906
906
|
mode: t,
|
|
907
907
|
startX: r,
|
|
908
|
-
startT0:
|
|
909
|
-
startT1:
|
|
908
|
+
startT0: F(La).t0,
|
|
909
|
+
startT1: F(La).t1
|
|
910
910
|
}, !0), e.currentTarget.setPointerCapture?.(e.pointerId), e.stopPropagation();
|
|
911
911
|
}
|
|
912
912
|
function Va(e) {
|
|
913
|
-
if (!
|
|
914
|
-
let t = (za(e, e.currentTarget.ownerSVGElement ?? e.currentTarget) -
|
|
913
|
+
if (!F(Ra) || !F(U)) return;
|
|
914
|
+
let t = (za(e, e.currentTarget.ownerSVGElement ?? e.currentTarget) - F(Ra).startX) / F(U).plot.w, n = F(B).categories.length;
|
|
915
915
|
if (n === 0) return;
|
|
916
|
-
let r =
|
|
917
|
-
if (
|
|
916
|
+
let r = F(Ra).startT0, i = F(Ra).startT1;
|
|
917
|
+
if (F(Ra).mode === "move") {
|
|
918
918
|
let e = i - r;
|
|
919
919
|
r = Math.max(0, Math.min(1 - e, r + t)), i = r + e;
|
|
920
|
-
} else
|
|
920
|
+
} 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));
|
|
921
921
|
let a = Math.max(0, Math.floor(r * n)), o = Math.min(n - 1, Math.ceil(i * n) - 1);
|
|
922
922
|
a === 0 && o === n - 1 ? Li(null) : Li({
|
|
923
923
|
i0: a,
|
|
@@ -926,21 +926,21 @@ function ni(ne, f) {
|
|
|
926
926
|
});
|
|
927
927
|
}
|
|
928
928
|
function Ha(e) {
|
|
929
|
-
|
|
929
|
+
b(Ra, null), e.currentTarget.releasePointerCapture?.(e.pointerId);
|
|
930
930
|
}
|
|
931
|
-
let Ua =
|
|
931
|
+
let Ua = j(() => F(B).tree ?? F(B).treemap ?? null), Wa = j(() => Fe() && !!F(Ua) && (F(B).type === "sunburst" || F(B).type === "treemap" || F(B).type === "pie")), Ga = j(() => F(Wa) && Ie().length ? l(F(Ua), Ie()) : F(Ua)), Ka = (e) => e.value ?? (e.children ?? []).reduce((e, t) => e + Ka(t), 0), qa = j(() => F(B).type === "pie" && F(Wa) && F(Ga) ? F(Ga) : null), Ja = j(() => 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;
|
|
932
932
|
function Xa(e) {
|
|
933
933
|
Ie(e);
|
|
934
934
|
}
|
|
935
935
|
function Za(e) {
|
|
936
|
-
return !
|
|
936
|
+
return !F(Wa) || !e || !F(Ua) || !l(F(Ua), e)?.children?.length ? !1 : (Xa(e), !0);
|
|
937
937
|
}
|
|
938
|
-
let W =
|
|
939
|
-
if (
|
|
940
|
-
let e =
|
|
938
|
+
let W = j(() => {
|
|
939
|
+
if (F(qa)) {
|
|
940
|
+
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);
|
|
941
941
|
return {
|
|
942
|
-
...
|
|
943
|
-
categories:
|
|
942
|
+
...F(B),
|
|
943
|
+
categories: F(Ja),
|
|
944
944
|
series: [{
|
|
945
945
|
label: t,
|
|
946
946
|
values: n,
|
|
@@ -948,34 +948,34 @@ function ni(ne, f) {
|
|
|
948
948
|
}]
|
|
949
949
|
};
|
|
950
950
|
}
|
|
951
|
-
if (
|
|
951
|
+
if (F(Wa) && F(Ga) && Ie().length) {
|
|
952
952
|
let e = {
|
|
953
|
-
...
|
|
954
|
-
tree:
|
|
955
|
-
treemap:
|
|
953
|
+
...F(B),
|
|
954
|
+
tree: F(Ga),
|
|
955
|
+
treemap: F(Ga)
|
|
956
956
|
};
|
|
957
|
-
return
|
|
957
|
+
return F(B).type === "treemap" ? e : {
|
|
958
958
|
...e,
|
|
959
|
-
series:
|
|
959
|
+
series: F(ji)
|
|
960
960
|
};
|
|
961
961
|
}
|
|
962
|
-
if (
|
|
963
|
-
let e =
|
|
964
|
-
if (!e) return
|
|
965
|
-
let t = e.values.map((e, t) =>
|
|
962
|
+
if (F(B).type === "pie" || F(ho)) {
|
|
963
|
+
let e = F(ji)[0];
|
|
964
|
+
if (!e) return F(B);
|
|
965
|
+
let t = e.values.map((e, t) => F(Fi).has(F(B).categories[t] ?? String(t)) ? 0 : e);
|
|
966
966
|
return {
|
|
967
|
-
...
|
|
967
|
+
...F(B),
|
|
968
968
|
series: [{
|
|
969
969
|
...e,
|
|
970
970
|
values: t
|
|
971
971
|
}]
|
|
972
972
|
};
|
|
973
973
|
}
|
|
974
|
-
let e =
|
|
975
|
-
...
|
|
974
|
+
let e = F(ji).filter((e) => !F(Fi).has(e.label)), t = I() ? c({
|
|
975
|
+
...F(B),
|
|
976
976
|
series: e
|
|
977
977
|
}, I().i0, I().i1) : {
|
|
978
|
-
...
|
|
978
|
+
...F(B),
|
|
979
979
|
series: e
|
|
980
980
|
};
|
|
981
981
|
if (I()?.y) {
|
|
@@ -990,16 +990,16 @@ function ni(ne, f) {
|
|
|
990
990
|
}
|
|
991
991
|
};
|
|
992
992
|
}
|
|
993
|
-
return re(t,
|
|
994
|
-
}), Qa =
|
|
995
|
-
...
|
|
996
|
-
palette:
|
|
997
|
-
...
|
|
998
|
-
width:
|
|
999
|
-
height:
|
|
993
|
+
return re(t, F(Ma));
|
|
994
|
+
}), Qa = p(!1), $a = j(() => te({
|
|
995
|
+
...F(W),
|
|
996
|
+
palette: F(ki),
|
|
997
|
+
...F(hi) || F(gi) ? {
|
|
998
|
+
width: F(hi),
|
|
999
|
+
height: F(gi)
|
|
1000
1000
|
} : {},
|
|
1001
|
-
...f.dataLabels === void 0 ? {} : { dataLabels:
|
|
1002
|
-
},
|
|
1001
|
+
...f.dataLabels === void 0 ? {} : { dataLabels: F(_i) }
|
|
1002
|
+
}, F(Qa) ? "dark" : "light")), eo = j(() => Pe() ? Pe() === !0 ? {
|
|
1003
1003
|
duration: 400,
|
|
1004
1004
|
enter: "fade",
|
|
1005
1005
|
update: !0
|
|
@@ -1007,30 +1007,30 @@ function ni(ne, f) {
|
|
|
1007
1007
|
duration: Pe().duration ?? 400,
|
|
1008
1008
|
enter: Pe().enter ?? "fade",
|
|
1009
1009
|
update: Pe().update ?? !0
|
|
1010
|
-
} : null), to =
|
|
1011
|
-
|
|
1010
|
+
} : null), to = p(!1);
|
|
1011
|
+
fe(() => {
|
|
1012
1012
|
if (typeof matchMedia != "function") return;
|
|
1013
1013
|
let e = matchMedia("(prefers-reduced-motion: reduce)");
|
|
1014
|
-
|
|
1015
|
-
let t = () =>
|
|
1014
|
+
b(to, e.matches, !0);
|
|
1015
|
+
let t = () => b(to, e.matches, !0);
|
|
1016
1016
|
return e.addEventListener?.("change", t), () => e.removeEventListener?.("change", t);
|
|
1017
1017
|
});
|
|
1018
|
-
let no =
|
|
1019
|
-
|
|
1020
|
-
let e =
|
|
1021
|
-
|
|
1018
|
+
let no = p(null), G = j(() => F(no) && F(no).t < 1 ? Ne(F(no).from, F($a), F(no).t) : F($a)), ro = null, io = 0;
|
|
1019
|
+
fe(() => {
|
|
1020
|
+
let e = F($a);
|
|
1021
|
+
de(() => {
|
|
1022
1022
|
let t = ro;
|
|
1023
|
-
if (ro = e, !t || !
|
|
1024
|
-
let n =
|
|
1023
|
+
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;
|
|
1024
|
+
let n = F(no) && F(no).t < 1 ? Ne(F(no).from, t, F(no).t) : t;
|
|
1025
1025
|
cancelAnimationFrame(io);
|
|
1026
|
-
let r = performance.now(), i =
|
|
1027
|
-
|
|
1026
|
+
let r = performance.now(), i = F(eo).duration;
|
|
1027
|
+
b(no, {
|
|
1028
1028
|
from: n,
|
|
1029
1029
|
t: 0
|
|
1030
1030
|
}, !0);
|
|
1031
1031
|
let a = (e) => {
|
|
1032
1032
|
let t = Math.min(1, (e - r) / i), o = 1 - (1 - t) ** 3;
|
|
1033
|
-
|
|
1033
|
+
b(no, t >= 1 ? null : {
|
|
1034
1034
|
from: n,
|
|
1035
1035
|
t: o
|
|
1036
1036
|
}, !0), t < 1 && (io = requestAnimationFrame(a));
|
|
@@ -1038,18 +1038,18 @@ function ni(ne, f) {
|
|
|
1038
1038
|
io = requestAnimationFrame(a);
|
|
1039
1039
|
});
|
|
1040
1040
|
});
|
|
1041
|
-
let ao =
|
|
1041
|
+
let ao = j(() => F(to) || Ve() ? "none" : F(eo)?.enter ?? "fade"), oo = j(() => F(G).lines.flatMap((e, t) => e.style?.gradient ? [{
|
|
1042
1042
|
id: `${Ai}-grad-${t}`,
|
|
1043
1043
|
...e.style.gradient
|
|
1044
|
-
}] : [])), so =
|
|
1045
|
-
geo:
|
|
1046
|
-
scales:
|
|
1047
|
-
xOf:
|
|
1048
|
-
yOf:
|
|
1049
|
-
})), K =
|
|
1050
|
-
stacked: !!(
|
|
1051
|
-
dense:
|
|
1052
|
-
share: !!
|
|
1044
|
+
}] : [])), so = j(() => F(B).yAxis?.title ?? F(B).yAxisTitle), co = j(() => F(B).y2Axis?.title ?? F(B).y2AxisTitle), lo = j(() => F(B).xAxis?.title ?? F(B).xAxisTitle), uo = j(() => i(F(G))), fo = j(() => ({
|
|
1045
|
+
geo: F(G),
|
|
1046
|
+
scales: F(uo),
|
|
1047
|
+
xOf: F(uo)?.xOf ?? null,
|
|
1048
|
+
yOf: F(uo)?.yOf ?? null
|
|
1049
|
+
})), K = j(() => !Na.has(F(B).type)), po = j(() => F(B).type === "sunburst" || F(B).type === "radial-bar" || F(B).type === "radial-column" || F(B).type === "nightingale" || F(B).type === "chord"), mo = j(() => F(B).type === "bullet"), ho = j(() => (F(B).type === "radial-bar" || F(B).type === "radial-column" || F(B).type === "nightingale") && F(B).series.length === 1), go = j(() => F(B).type === "scatter"), _o = j(() => F(B).type === "heatmap"), vo = j(() => F(B).type === "funnel"), yo = j(() => F(B).type === "radar"), bo = j(() => F(B).type === "calendar"), xo = j(() => F(B).type === "gauge"), So = j(() => F(B).type === "treemap"), Co = j(() => F(B).type === "sankey"), q = j(() => F(G).orientation === "horizontal"), wo = j(() => (F(q) ? F(G).plot.h : F(G).plot.w) / Math.max(1, F(W).categories.length)), To = j(() => F(K) && !F(go) && !F(q) && F(wo) < 4 && F(W).categories.length > 1), Eo = j(() => I() ? I().i1 - I().i0 + 1 : F(B).categories.length), Do = j(() => F(_i).show && F(K) && !F(go) ? s(F(G), F(_i), (e, t) => wi(t)(e), {
|
|
1050
|
+
stacked: !!(F(B).stacked || F(B).stacked100),
|
|
1051
|
+
dense: F(To),
|
|
1052
|
+
share: !!F(B).stacked100
|
|
1053
1053
|
}) : []), Oo = 1e3;
|
|
1054
1054
|
function ko(e, t, n) {
|
|
1055
1055
|
let r = n.ownerSVGElement ?? n;
|
|
@@ -1065,9 +1065,9 @@ function ni(ne, f) {
|
|
|
1065
1065
|
function Ao(e, t) {
|
|
1066
1066
|
let n = ko(e, 0, t);
|
|
1067
1067
|
if (!n) return null;
|
|
1068
|
-
let r = n.x, i =
|
|
1068
|
+
let r = n.x, i = F(G).lines[0]?.points, a = F(W).categories.length;
|
|
1069
1069
|
if (!i || i.length !== a) {
|
|
1070
|
-
let e = Math.floor((r -
|
|
1070
|
+
let e = Math.floor((r - F(G).plot.x) / F(wo));
|
|
1071
1071
|
return e >= 0 && e < a ? e : null;
|
|
1072
1072
|
}
|
|
1073
1073
|
let o = 0, s = i.length - 1;
|
|
@@ -1077,18 +1077,18 @@ function ni(ne, f) {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
return o > 0 && Math.abs(i[o - 1].x - r) <= Math.abs(i[o].x - r) && --o, o;
|
|
1079
1079
|
}
|
|
1080
|
-
let jo =
|
|
1080
|
+
let jo = p(0);
|
|
1081
1081
|
function Mo(e) {
|
|
1082
|
-
if (qs(e,
|
|
1083
|
-
let t =
|
|
1082
|
+
if (qs(e, F(jo)) || Bs(e, F(jo))) return;
|
|
1083
|
+
let t = F(W).categories.length - 1, n = Math.max(1, Math.floor(t / 10)), r = F(jo);
|
|
1084
1084
|
switch (e.key) {
|
|
1085
1085
|
case "ArrowRight":
|
|
1086
1086
|
case "ArrowDown":
|
|
1087
|
-
r = Math.min(t,
|
|
1087
|
+
r = Math.min(t, F(jo) + 1);
|
|
1088
1088
|
break;
|
|
1089
1089
|
case "ArrowLeft":
|
|
1090
1090
|
case "ArrowUp":
|
|
1091
|
-
r = Math.max(0,
|
|
1091
|
+
r = Math.max(0, F(jo) - 1);
|
|
1092
1092
|
break;
|
|
1093
1093
|
case "Home":
|
|
1094
1094
|
r = 0;
|
|
@@ -1097,26 +1097,26 @@ function ni(ne, f) {
|
|
|
1097
1097
|
r = t;
|
|
1098
1098
|
break;
|
|
1099
1099
|
case "PageDown":
|
|
1100
|
-
r = Math.min(t,
|
|
1100
|
+
r = Math.min(t, F(jo) + n);
|
|
1101
1101
|
break;
|
|
1102
1102
|
case "PageUp":
|
|
1103
|
-
r = Math.max(0,
|
|
1103
|
+
r = Math.max(0, F(jo) - n);
|
|
1104
1104
|
break;
|
|
1105
1105
|
case "Enter":
|
|
1106
1106
|
case " ":
|
|
1107
|
-
e.preventDefault(), js(e,
|
|
1107
|
+
e.preventDefault(), js(e, F(jo));
|
|
1108
1108
|
return;
|
|
1109
1109
|
default: return;
|
|
1110
1110
|
}
|
|
1111
|
-
e.preventDefault(),
|
|
1111
|
+
e.preventDefault(), b(jo, r, !0), xs(e.currentTarget, r);
|
|
1112
1112
|
}
|
|
1113
|
-
let No =
|
|
1113
|
+
let No = p(null), Po = j(() => F(Oi) ?? (He() ? F(No) : null)), J = (e) => F(Po) && F(Po) !== e ? .18 : 1, Fo = null;
|
|
1114
1114
|
function Io(e) {
|
|
1115
1115
|
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)));
|
|
1116
1116
|
}
|
|
1117
|
-
let Y =
|
|
1117
|
+
let Y = j(() => 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;
|
|
1118
1118
|
function Bo(e, t, n, r) {
|
|
1119
|
-
if (!
|
|
1119
|
+
if (!F(Y)) return;
|
|
1120
1120
|
let i = r === void 0 ? {
|
|
1121
1121
|
category: e,
|
|
1122
1122
|
series: t
|
|
@@ -1124,22 +1124,22 @@ function ni(ne, f) {
|
|
|
1124
1124
|
category: e,
|
|
1125
1125
|
series: t,
|
|
1126
1126
|
index: r
|
|
1127
|
-
}, a =
|
|
1127
|
+
}, a = F(Y) === "multi" || !!(n && (n.ctrlKey || n.metaKey || n.shiftKey)), o;
|
|
1128
1128
|
o = Ro(e, t, r) ? a ? Re().filter((n) => !Lo(n, e, t, r)) : [] : a ? [...Re(), i] : [i], Re(o), f.onSelectionChange?.(o);
|
|
1129
1129
|
}
|
|
1130
|
-
let X =
|
|
1130
|
+
let X = p(null), Vo = p(""), Ho = j(() => F(B).type === "heatmap" || F(B).type === "calendar" || F(B).type === "gauge" ? [] : F(B).type === "pie" || F(ho) ? F(Ja).map((e, t) => ({
|
|
1131
1131
|
label: e,
|
|
1132
|
-
color:
|
|
1133
|
-
off:
|
|
1134
|
-
})) :
|
|
1132
|
+
color: F(B).categoryColors?.[e] ?? F(W).series[0]?.colors?.[t] ?? F(ki)[t % F(ki).length],
|
|
1133
|
+
off: F(Ti).has(e)
|
|
1134
|
+
})) : F(B).type === "sunburst" || F(B).type === "chord" ? F(G).legend.map((e) => ({
|
|
1135
1135
|
label: e.label,
|
|
1136
1136
|
color: e.color,
|
|
1137
1137
|
off: !1
|
|
1138
|
-
})) :
|
|
1138
|
+
})) : F(ji).map((e) => ({
|
|
1139
1139
|
label: e.label,
|
|
1140
1140
|
color: e.color,
|
|
1141
|
-
off:
|
|
1142
|
-
}))), Uo =
|
|
1141
|
+
off: F(Ti).has(e.label)
|
|
1142
|
+
}))), Uo = j(() => L() ? L() === !0 ? [
|
|
1143
1143
|
"1W",
|
|
1144
1144
|
"1M",
|
|
1145
1145
|
"3M",
|
|
@@ -1147,45 +1147,45 @@ function ni(ne, f) {
|
|
|
1147
1147
|
"YTD",
|
|
1148
1148
|
"1Y",
|
|
1149
1149
|
"All"
|
|
1150
|
-
] : L() : []), Wo =
|
|
1150
|
+
] : L() : []), Wo = j(() => 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;
|
|
1151
1151
|
function Ko(e) {
|
|
1152
|
-
Li(De(
|
|
1152
|
+
Li(De(F(B).categories, e));
|
|
1153
1153
|
}
|
|
1154
|
-
let qo =
|
|
1154
|
+
let qo = j(() => F(B).type !== "sunburst" && F(B).type !== "chord"), Jo = p(!1), Yo = j(() => F(Ho).length > 10), Xo = j(() => F(Yo) && !F(Jo) ? F(Ho).slice(0, 10) : F(Ho)), Zo = j(() => 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;
|
|
1155
1155
|
function $o(e) {
|
|
1156
|
-
if (!
|
|
1157
|
-
if (
|
|
1156
|
+
if (!v() || !F(qo)) return;
|
|
1157
|
+
if (F(Ei) != null) {
|
|
1158
1158
|
Qo = {
|
|
1159
|
-
label:
|
|
1159
|
+
label: F(Ei),
|
|
1160
1160
|
at: Date.now()
|
|
1161
|
-
},
|
|
1161
|
+
}, b(Ei, null);
|
|
1162
1162
|
return;
|
|
1163
1163
|
}
|
|
1164
|
-
let t = new Set(
|
|
1165
|
-
t.has(e) ? t.delete(e) : t.add(e),
|
|
1164
|
+
let t = new Set(F(Ti));
|
|
1165
|
+
t.has(e) ? t.delete(e) : t.add(e), b(Ti, t, !0);
|
|
1166
1166
|
}
|
|
1167
1167
|
function es(e) {
|
|
1168
|
-
if (!
|
|
1168
|
+
if (!v() || !F(qo)) return;
|
|
1169
1169
|
let t = Qo;
|
|
1170
1170
|
Qo = null;
|
|
1171
|
-
let n = new Set(
|
|
1171
|
+
let n = new Set(F(Ti));
|
|
1172
1172
|
if (n.delete(e), t && t.label === e && Date.now() - t.at < 600) {
|
|
1173
|
-
|
|
1173
|
+
b(Ti, n, !0);
|
|
1174
1174
|
return;
|
|
1175
1175
|
}
|
|
1176
|
-
|
|
1176
|
+
b(Ti, n, !0), b(Ei, F(Ei) === e ? null : e, !0);
|
|
1177
1177
|
}
|
|
1178
|
-
let ts = (e, t) => Number.isFinite(e) ? wi(t)(e) : "", ns =
|
|
1179
|
-
if (
|
|
1180
|
-
let e =
|
|
1178
|
+
let ts = (e, t) => Number.isFinite(e) ? wi(t)(e) : "", ns = j(() => {
|
|
1179
|
+
if (F(B).type === "pie") {
|
|
1180
|
+
let e = F(qa) ? F(W).series[0] : F(ji)[0];
|
|
1181
1181
|
return {
|
|
1182
1182
|
cols: ["Category", "Value"],
|
|
1183
|
-
rows:
|
|
1183
|
+
rows: F(Ja).map((t, n) => [t, ts(e?.values[n])])
|
|
1184
1184
|
};
|
|
1185
1185
|
}
|
|
1186
|
-
if (
|
|
1186
|
+
if (F(go)) {
|
|
1187
1187
|
let e = [];
|
|
1188
|
-
for (let t of
|
|
1188
|
+
for (let t of F(ji)) for (let n of t.points ?? []) e.push([
|
|
1189
1189
|
t.label,
|
|
1190
1190
|
V(n.x),
|
|
1191
1191
|
V(n.y),
|
|
@@ -1201,35 +1201,35 @@ function ni(ne, f) {
|
|
|
1201
1201
|
rows: e
|
|
1202
1202
|
};
|
|
1203
1203
|
}
|
|
1204
|
-
if (
|
|
1204
|
+
if (F(po)) return {
|
|
1205
1205
|
cols: [
|
|
1206
|
-
|
|
1206
|
+
F(B).type === "chord" ? "Group" : "Category",
|
|
1207
1207
|
"Series",
|
|
1208
1208
|
"Value"
|
|
1209
1209
|
],
|
|
1210
|
-
rows:
|
|
1210
|
+
rows: F(G).arcs.map((e) => [
|
|
1211
1211
|
e.nodePath ? e.nodePath.join(" / ") : e.label,
|
|
1212
1212
|
e.series,
|
|
1213
1213
|
V(e.value)
|
|
1214
1214
|
])
|
|
1215
1215
|
};
|
|
1216
|
-
if (
|
|
1216
|
+
if (F(mo)) return {
|
|
1217
1217
|
cols: [
|
|
1218
1218
|
"Category",
|
|
1219
1219
|
"Value",
|
|
1220
1220
|
"Target"
|
|
1221
1221
|
],
|
|
1222
|
-
rows:
|
|
1222
|
+
rows: F(G).bullets.map((e) => [
|
|
1223
1223
|
e.label,
|
|
1224
1224
|
V(e.value),
|
|
1225
1225
|
e.target == null ? "" : V(e.target)
|
|
1226
1226
|
])
|
|
1227
1227
|
};
|
|
1228
|
-
if (
|
|
1228
|
+
if (F(Aa)) {
|
|
1229
1229
|
let e = [];
|
|
1230
|
-
for (let t of
|
|
1230
|
+
for (let t of F(ji)) (t.ohlc ?? []).forEach((n, r) => {
|
|
1231
1231
|
n && e.push([
|
|
1232
|
-
|
|
1232
|
+
F(B).categories[r] ?? String(r),
|
|
1233
1233
|
t.label,
|
|
1234
1234
|
V(n.o),
|
|
1235
1235
|
V(n.h),
|
|
@@ -1249,25 +1249,25 @@ function ni(ne, f) {
|
|
|
1249
1249
|
rows: e
|
|
1250
1250
|
};
|
|
1251
1251
|
}
|
|
1252
|
-
if (
|
|
1253
|
-
let e =
|
|
1252
|
+
if (F(B).type === "waterfall") {
|
|
1253
|
+
let e = F(ji)[0];
|
|
1254
1254
|
return {
|
|
1255
1255
|
cols: ["Category", e?.label ?? "Value"],
|
|
1256
|
-
rows:
|
|
1257
|
-
let r =
|
|
1256
|
+
rows: F(B).categories.map((t, n) => {
|
|
1257
|
+
let r = F(G).bars.find((e) => e.index === n);
|
|
1258
1258
|
return [t, r ? V(r.value) : ts(e?.values[n])];
|
|
1259
1259
|
})
|
|
1260
1260
|
};
|
|
1261
1261
|
}
|
|
1262
1262
|
return {
|
|
1263
|
-
cols: ["Category", ...
|
|
1264
|
-
rows:
|
|
1263
|
+
cols: ["Category", ...F(ji).map((e) => e.label)],
|
|
1264
|
+
rows: F(B).categories.map((e, t) => [e, ...F(ji).map((e) => ts(e.values[t], e.label))])
|
|
1265
1265
|
};
|
|
1266
|
-
}), rs =
|
|
1266
|
+
}), rs = j(() => F(ns).rows.length > Oo), is = j(() => F(rs) ? F(ns).rows.slice(0, Oo) : F(ns).rows);
|
|
1267
1267
|
function as(e, t = 12) {
|
|
1268
1268
|
return e.length > t ? e.slice(0, t - 1) + "…" : e;
|
|
1269
1269
|
}
|
|
1270
|
-
let os = (e, t) => f.formatValue ? f.formatValue(e) : t, ss =
|
|
1270
|
+
let os = (e, t) => f.formatValue ? f.formatValue(e) : t, ss = p(null);
|
|
1271
1271
|
function cs(e) {
|
|
1272
1272
|
if (!e) return !1;
|
|
1273
1273
|
let t = 0, n = 0, r = 0, i = e.trim().startsWith("#") ? e.trim().slice(1) : "";
|
|
@@ -1280,17 +1280,17 @@ function ni(ne, f) {
|
|
|
1280
1280
|
}
|
|
1281
1281
|
return .299 * t + .587 * n + .114 * r < 128;
|
|
1282
1282
|
}
|
|
1283
|
-
|
|
1284
|
-
if (!
|
|
1285
|
-
let e =
|
|
1283
|
+
fe(() => {
|
|
1284
|
+
if (!F(ss) || typeof window > "u") return;
|
|
1285
|
+
let e = F(ss), t = () => {
|
|
1286
1286
|
let t = getComputedStyle(e);
|
|
1287
|
-
|
|
1287
|
+
b(Qa, cs(t.getPropertyValue("--sg-bg")), !0);
|
|
1288
1288
|
let r = [];
|
|
1289
1289
|
for (let e = 1; e <= 8; e += 1) {
|
|
1290
1290
|
let i = t.getPropertyValue(`--sg-chart-${e}`).trim();
|
|
1291
1291
|
r.push(i || n[e - 1]);
|
|
1292
1292
|
}
|
|
1293
|
-
(!
|
|
1293
|
+
(!F(Di) || r.some((e, t) => e !== F(Di)[t])) && b(Di, r.some((e, t) => e !== n[t]) ? r : null, !0);
|
|
1294
1294
|
};
|
|
1295
1295
|
t();
|
|
1296
1296
|
let r = new MutationObserver(t);
|
|
@@ -1303,20 +1303,20 @@ function ni(ne, f) {
|
|
|
1303
1303
|
]
|
|
1304
1304
|
}), () => r.disconnect();
|
|
1305
1305
|
});
|
|
1306
|
-
let ls =
|
|
1306
|
+
let ls = p(null), us = p(null), ds = p(null);
|
|
1307
1307
|
function Z(e, t, n, r, i) {
|
|
1308
|
-
if (!
|
|
1309
|
-
let a =
|
|
1308
|
+
if (!v() || !F(ss) || r.length === 0 || F(us) && F(ls)) return;
|
|
1309
|
+
let a = F(ss).getBoundingClientRect(), o = {
|
|
1310
1310
|
category: n,
|
|
1311
1311
|
index: -1,
|
|
1312
1312
|
rows: r,
|
|
1313
1313
|
...i
|
|
1314
1314
|
}, s = f.tooltipFormat?.(o), c = Se() !== "follow", l, u;
|
|
1315
|
-
if (c &&
|
|
1316
|
-
let e =
|
|
1317
|
-
l = e.left - a.left + (r ? (
|
|
1315
|
+
if (c && F(Xi)) {
|
|
1316
|
+
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";
|
|
1317
|
+
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);
|
|
1318
1318
|
} else l = Math.max(70, Math.min(a.width - 70, e - a.left)), u = t - a.top;
|
|
1319
|
-
|
|
1319
|
+
b(ls, {
|
|
1320
1320
|
left: l,
|
|
1321
1321
|
top: u,
|
|
1322
1322
|
below: !c && u < 44,
|
|
@@ -1333,19 +1333,19 @@ function ni(ne, f) {
|
|
|
1333
1333
|
}
|
|
1334
1334
|
function fs(e, t) {
|
|
1335
1335
|
let n = null, r = Infinity;
|
|
1336
|
-
for (let i of
|
|
1336
|
+
for (let i of F(G).lines) {
|
|
1337
1337
|
let a = i.points[e];
|
|
1338
1338
|
if (!a?.defined) continue;
|
|
1339
1339
|
let o = Math.abs(a.y - t);
|
|
1340
1340
|
o < r && (r = o, n = i.label);
|
|
1341
1341
|
}
|
|
1342
|
-
for (let i of
|
|
1343
|
-
if (i.label !==
|
|
1342
|
+
for (let i of F(G).bars) {
|
|
1343
|
+
if (i.label !== F(W).categories[e]) continue;
|
|
1344
1344
|
let a = t < i.y ? i.y - t : t > i.y + i.h ? t - (i.y + i.h) : 0;
|
|
1345
1345
|
a < r && (r = a, n = i.series);
|
|
1346
1346
|
}
|
|
1347
|
-
for (let i of
|
|
1348
|
-
if (i.label !==
|
|
1347
|
+
for (let i of F(G).candles) {
|
|
1348
|
+
if (i.label !== F(W).categories[e]) continue;
|
|
1349
1349
|
let a = t < i.yHigh ? i.yHigh - t : t > i.yLow ? t - i.yLow : 0;
|
|
1350
1350
|
a < r && (r = a, n = i.series);
|
|
1351
1351
|
}
|
|
@@ -1356,15 +1356,15 @@ function ni(ne, f) {
|
|
|
1356
1356
|
}
|
|
1357
1357
|
function ps(t) {
|
|
1358
1358
|
let n = [];
|
|
1359
|
-
if (
|
|
1360
|
-
let e =
|
|
1359
|
+
if (F(B).type === "waterfall") {
|
|
1360
|
+
let e = F(G).bars.find((e) => e.index === t), r = F(W).series[0];
|
|
1361
1361
|
return e && r && n.push({
|
|
1362
1362
|
label: r.label,
|
|
1363
1363
|
color: e.color,
|
|
1364
1364
|
value: V(e.value)
|
|
1365
1365
|
}), n;
|
|
1366
1366
|
}
|
|
1367
|
-
for (let e of
|
|
1367
|
+
for (let e of F(W).series) {
|
|
1368
1368
|
let r = e.color, i = e.ohlc?.[t];
|
|
1369
1369
|
if (i) {
|
|
1370
1370
|
n.push({
|
|
@@ -1444,12 +1444,12 @@ function ni(ne, f) {
|
|
|
1444
1444
|
}
|
|
1445
1445
|
}
|
|
1446
1446
|
}
|
|
1447
|
-
for (let r of
|
|
1447
|
+
for (let r of F(G).overlays) {
|
|
1448
1448
|
let i = r.points[t];
|
|
1449
1449
|
if (!i?.defined) continue;
|
|
1450
|
-
let a =
|
|
1450
|
+
let a = F(W).series.find((e) => e.overlay && r.label === `${e.label} (${e.overlay})`);
|
|
1451
1451
|
if (!a?.overlay) continue;
|
|
1452
|
-
let o = r.r2 === void 0 ? "" : ` (${et(
|
|
1452
|
+
let o = r.r2 === void 0 ? "" : ` (${et(F(z).rSquared, { value: r.r2.toFixed(2) })})`;
|
|
1453
1453
|
n.push({
|
|
1454
1454
|
label: `${a.label} ${e(a.overlay)}`,
|
|
1455
1455
|
color: r.color,
|
|
@@ -1458,43 +1458,43 @@ function ni(ne, f) {
|
|
|
1458
1458
|
}
|
|
1459
1459
|
return n;
|
|
1460
1460
|
}
|
|
1461
|
-
let ms =
|
|
1461
|
+
let ms = p(null);
|
|
1462
1462
|
function hs(e) {
|
|
1463
|
-
let t =
|
|
1464
|
-
return a?.formatter ? a.formatter(i, -1) : a?.format ? d(i, a.format,
|
|
1463
|
+
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;
|
|
1464
|
+
return a?.formatter ? a.formatter(i, -1) : a?.format ? d(i, a.format, F(B)) : os(i, V(i));
|
|
1465
1465
|
}
|
|
1466
|
-
let gs =
|
|
1466
|
+
let gs = j(() => F(B).xType === "time" || F(B).xType === "ordinal-time" || F(B).xAxis?.type === "time" || F(B).xAxis?.type === "ordinal-time"), _s = j(() => F(gs) ? t(F(W).categories.map((e) => Date.parse(e))) : "day"), vs = (e) => {
|
|
1467
1467
|
let t = Date.parse(e);
|
|
1468
1468
|
return Number.isFinite(t) ? r(t) : e;
|
|
1469
1469
|
};
|
|
1470
1470
|
function ys(e) {
|
|
1471
|
-
let t =
|
|
1472
|
-
if (!
|
|
1471
|
+
let t = F(W).categories[e] ?? "";
|
|
1472
|
+
if (!F(gs)) return t;
|
|
1473
1473
|
let n = Date.parse(t);
|
|
1474
|
-
return Number.isFinite(n) ?
|
|
1474
|
+
return Number.isFinite(n) ? F(B).xAxis?.formatter ? F(B).xAxis.formatter(n, e) : r(n, F(_s)) : t;
|
|
1475
1475
|
}
|
|
1476
1476
|
function bs(e, t, n, r) {
|
|
1477
|
-
|
|
1477
|
+
b(ds, n, !0);
|
|
1478
1478
|
let i = ea({
|
|
1479
1479
|
clientX: e,
|
|
1480
1480
|
clientY: t
|
|
1481
1481
|
})?.y;
|
|
1482
|
-
|
|
1483
|
-
let a =
|
|
1484
|
-
if (l) s = l, c =
|
|
1482
|
+
b(ms, i != null && Number.isFinite(i) && i >= F(G).plot.y && i <= F(G).plot.y + F(G).plot.h ? i : null, !0);
|
|
1483
|
+
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;
|
|
1484
|
+
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 + " "));
|
|
1485
1485
|
else {
|
|
1486
1486
|
let i = r ? ko(e, t, r) : ea({
|
|
1487
1487
|
clientX: e,
|
|
1488
1488
|
clientY: t
|
|
1489
1489
|
}), a = i && Number.isFinite(i.y) ? fs(n, i.y) : null;
|
|
1490
|
-
|
|
1490
|
+
b(No, a && a.distance <= 18 ? a.label : null, !0), y() === "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 + " ")));
|
|
1491
1491
|
}
|
|
1492
1492
|
if (Z(e, t, ys(n), o, {
|
|
1493
1493
|
category: a,
|
|
1494
1494
|
index: n,
|
|
1495
1495
|
series: s,
|
|
1496
1496
|
value: c
|
|
1497
|
-
}), f.syncGroup && !
|
|
1497
|
+
}), f.syncGroup && !F(Vi)) {
|
|
1498
1498
|
let e = Date.parse(a);
|
|
1499
1499
|
je(f.syncGroup, {
|
|
1500
1500
|
label: a,
|
|
@@ -1508,42 +1508,42 @@ function ni(ne, f) {
|
|
|
1508
1508
|
let n = e.getBoundingClientRect();
|
|
1509
1509
|
if (bs(n.left + n.width / 2, n.top + 12, t), !ze()) return;
|
|
1510
1510
|
let r = ys(t);
|
|
1511
|
-
if (
|
|
1512
|
-
let e =
|
|
1513
|
-
|
|
1514
|
-
series:
|
|
1515
|
-
value: Number.isFinite(e) ? wi(
|
|
1511
|
+
if (F(X)) {
|
|
1512
|
+
let e = F(W).series.find((e) => e.label === F(X))?.values[t];
|
|
1513
|
+
b(Vo, et(F(z).seriesAtCategory, {
|
|
1514
|
+
series: F(X),
|
|
1515
|
+
value: Number.isFinite(e) ? wi(F(X))(e) : F(z).noValue,
|
|
1516
1516
|
category: r
|
|
1517
1517
|
}), !0);
|
|
1518
|
-
} else
|
|
1518
|
+
} else b(Vo, `${r}: ${ps(t).map((e) => `${e.label ?? ""} ${e.value}`).join(", ")}`);
|
|
1519
1519
|
}
|
|
1520
1520
|
function Q() {
|
|
1521
|
-
|
|
1521
|
+
F(us) || (b(ds, null), b(ms, null), b(No, null), b(ls, null), Io(null), f.syncGroup && !F(Vi) && F(Bi)?.hover?.from === Ri && je(f.syncGroup, null));
|
|
1522
1522
|
}
|
|
1523
|
-
|
|
1524
|
-
if (!
|
|
1525
|
-
let e =
|
|
1526
|
-
|
|
1523
|
+
fe(() => {
|
|
1524
|
+
if (!F(Bi)) return;
|
|
1525
|
+
let e = F(Bi).hover;
|
|
1526
|
+
de(() => {
|
|
1527
1527
|
if (!e) {
|
|
1528
|
-
|
|
1528
|
+
F(Vi) && (b(Vi, !1), b(ds, null), b(ls, null));
|
|
1529
1529
|
return;
|
|
1530
1530
|
}
|
|
1531
1531
|
if (e.from === Ri) return;
|
|
1532
|
-
let t =
|
|
1533
|
-
if (t < 0 && e.time != null && (t = ke(
|
|
1534
|
-
|
|
1535
|
-
let n =
|
|
1536
|
-
bs(n.left + a * r, n.top + (
|
|
1532
|
+
let t = F(W).categories.indexOf(e.label);
|
|
1533
|
+
if (t < 0 && e.time != null && (t = ke(F(W).categories, e.time)), t < 0 || !F(Xi) || !F(uo)) return;
|
|
1534
|
+
b(Vi, !0);
|
|
1535
|
+
let n = F(Xi).getBoundingClientRect(), r = n.width / F(G).width, i = n.height / F(G).height, a = F(uo).xOf(t);
|
|
1536
|
+
bs(n.left + a * r, n.top + (F(G).plot.y + 12) * i, t), b(Vi, !0);
|
|
1537
1537
|
});
|
|
1538
|
-
}),
|
|
1539
|
-
if (!
|
|
1540
|
-
let e =
|
|
1541
|
-
|
|
1538
|
+
}), fe(() => {
|
|
1539
|
+
if (!F(Bi)) return;
|
|
1540
|
+
let e = F(Bi).zoom;
|
|
1541
|
+
de(() => {
|
|
1542
1542
|
if (!e || e.from === Ri) return;
|
|
1543
|
-
let t =
|
|
1543
|
+
let t = F(B).categories.length, n = e.window;
|
|
1544
1544
|
if (n && e.count !== t) {
|
|
1545
1545
|
if (!e.labels) return;
|
|
1546
|
-
let r = ke(
|
|
1546
|
+
let r = ke(F(B).categories, Date.parse(e.labels[0])), i = ke(F(B).categories, Date.parse(e.labels[1]));
|
|
1547
1547
|
if (r < 0 || i < 0) return;
|
|
1548
1548
|
n = r === 0 && i === t - 1 ? null : {
|
|
1549
1549
|
i0: Math.min(r, i),
|
|
@@ -1565,16 +1565,16 @@ function ni(ne, f) {
|
|
|
1565
1565
|
});
|
|
1566
1566
|
}
|
|
1567
1567
|
function Cs(t, n, r) {
|
|
1568
|
-
|
|
1568
|
+
b(No, r.series, !0);
|
|
1569
1569
|
let i = [{
|
|
1570
1570
|
label: "x",
|
|
1571
1571
|
value: V(r.x)
|
|
1572
1572
|
}, {
|
|
1573
1573
|
label: "y",
|
|
1574
1574
|
value: V(r.y)
|
|
1575
|
-
}], a =
|
|
1575
|
+
}], 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;
|
|
1576
1576
|
if (a?.overlay && o) {
|
|
1577
|
-
let t = o.r2 === void 0 ? "" : ` (${et(
|
|
1577
|
+
let t = o.r2 === void 0 ? "" : ` (${et(F(z).rSquared, { value: o.r2.toFixed(2) })})`;
|
|
1578
1578
|
i.push({
|
|
1579
1579
|
label: e(a.overlay),
|
|
1580
1580
|
color: o.color,
|
|
@@ -1603,7 +1603,7 @@ function ni(ne, f) {
|
|
|
1603
1603
|
}), Z(e, t, n.label, r, { value: n.value });
|
|
1604
1604
|
}
|
|
1605
1605
|
function Es(e, t, n) {
|
|
1606
|
-
|
|
1606
|
+
b(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, [{
|
|
1607
1607
|
color: n.color,
|
|
1608
1608
|
value: V(n.value)
|
|
1609
1609
|
}], {
|
|
@@ -1623,7 +1623,7 @@ function ni(ne, f) {
|
|
|
1623
1623
|
});
|
|
1624
1624
|
}
|
|
1625
1625
|
function Os(e, t, n) {
|
|
1626
|
-
|
|
1626
|
+
b(No, n.series, !0);
|
|
1627
1627
|
let r = [{
|
|
1628
1628
|
color: n.color,
|
|
1629
1629
|
label: n.series,
|
|
@@ -1639,7 +1639,7 @@ function ni(ne, f) {
|
|
|
1639
1639
|
});
|
|
1640
1640
|
}
|
|
1641
1641
|
function ks(e, t, n) {
|
|
1642
|
-
|
|
1642
|
+
b(No, n.series, !0);
|
|
1643
1643
|
let r = [{
|
|
1644
1644
|
color: n.color,
|
|
1645
1645
|
label: n.series,
|
|
@@ -1652,7 +1652,7 @@ function ni(ne, f) {
|
|
|
1652
1652
|
});
|
|
1653
1653
|
}
|
|
1654
1654
|
function As(e, t, n, r, i, a) {
|
|
1655
|
-
|
|
1655
|
+
b(No, n, !0), Z(e, t, `${n} · ${r}`, [{
|
|
1656
1656
|
color: a,
|
|
1657
1657
|
value: V(i)
|
|
1658
1658
|
}], {
|
|
@@ -1662,19 +1662,19 @@ function ni(ne, f) {
|
|
|
1662
1662
|
});
|
|
1663
1663
|
}
|
|
1664
1664
|
function js(e, t) {
|
|
1665
|
-
if (
|
|
1666
|
-
Ce() && "clientX" in e && !
|
|
1667
|
-
let n =
|
|
1668
|
-
if (!
|
|
1665
|
+
if (F(la)) return;
|
|
1666
|
+
Ce() && "clientX" in e && !F(xi) && (F(us) && F(us).index === t ? Da() : (b(us, null), bs(e.clientX, e.clientY, t, e.currentTarget), Oa(t)));
|
|
1667
|
+
let n = F(W).categories[t] ?? "";
|
|
1668
|
+
if (!F(Y)) {
|
|
1669
1669
|
Ms(n, "", 0, t, e);
|
|
1670
1670
|
return;
|
|
1671
1671
|
}
|
|
1672
|
-
let r = "clientX" in e ? ea(e) : null, i = r ? fs(t, r.y) : null, a =
|
|
1673
|
-
Ms(n, a,
|
|
1672
|
+
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 : "");
|
|
1673
|
+
Ms(n, a, F(W).series.find((e) => e.label === a)?.values[t] ?? 0, t, e);
|
|
1674
1674
|
}
|
|
1675
1675
|
function Ms(e, t, n, r, i) {
|
|
1676
|
-
if (Bo(e, t, i, r),
|
|
1677
|
-
let i = t ? n :
|
|
1676
|
+
if (Bo(e, t, i, r), F(xi) && f.onAnnotate && r !== void 0) {
|
|
1677
|
+
let i = t ? n : F(W).series[0]?.values[r];
|
|
1678
1678
|
f.onAnnotate({
|
|
1679
1679
|
category: e,
|
|
1680
1680
|
index: r,
|
|
@@ -1685,7 +1685,7 @@ function ni(ne, f) {
|
|
|
1685
1685
|
let a;
|
|
1686
1686
|
if (r !== void 0) {
|
|
1687
1687
|
let e = [];
|
|
1688
|
-
for (let n of
|
|
1688
|
+
for (let n of F(W).series) {
|
|
1689
1689
|
if (!n.rowIds || t && n.label !== t) continue;
|
|
1690
1690
|
let i = n.rowIds[r];
|
|
1691
1691
|
i?.length && e.push(i);
|
|
@@ -1708,9 +1708,9 @@ function ni(ne, f) {
|
|
|
1708
1708
|
}
|
|
1709
1709
|
function Ps(e, t) {
|
|
1710
1710
|
if (qs(e, t)) return;
|
|
1711
|
-
let n =
|
|
1711
|
+
let n = F(W).categories.length - 1, r = e.currentTarget;
|
|
1712
1712
|
if (Bs(e, t)) return;
|
|
1713
|
-
let i =
|
|
1713
|
+
let i = F(q) ? "ArrowDown" : "ArrowRight", a = F(q) ? "ArrowUp" : "ArrowLeft", o = F(q) ? "ArrowRight" : "ArrowUp", s = F(q) ? "ArrowLeft" : "ArrowDown";
|
|
1714
1714
|
switch (e.key) {
|
|
1715
1715
|
case i:
|
|
1716
1716
|
e.preventDefault(), Ns(r, Math.min(n, t + 1));
|
|
@@ -1721,10 +1721,10 @@ function ni(ne, f) {
|
|
|
1721
1721
|
case o:
|
|
1722
1722
|
case s: {
|
|
1723
1723
|
e.preventDefault();
|
|
1724
|
-
let n =
|
|
1724
|
+
let n = F(W).series.map((e) => e.label);
|
|
1725
1725
|
if (!n.length) return;
|
|
1726
|
-
let i = (
|
|
1727
|
-
|
|
1726
|
+
let i = (F(X) ? n.indexOf(F(X)) : -1) + (e.key === s ? 1 : -1);
|
|
1727
|
+
b(X, i < 0 || i >= n.length ? null : n[i], !0), b(Oi, F(X), !0), xs(r, t);
|
|
1728
1728
|
return;
|
|
1729
1729
|
}
|
|
1730
1730
|
case "Home":
|
|
@@ -1741,20 +1741,20 @@ function ni(ne, f) {
|
|
|
1741
1741
|
return;
|
|
1742
1742
|
case "Enter":
|
|
1743
1743
|
case " ":
|
|
1744
|
-
if (!f.onSelect && !
|
|
1744
|
+
if (!f.onSelect && !F(Y)) return;
|
|
1745
1745
|
e.preventDefault(), js(e, t);
|
|
1746
1746
|
return;
|
|
1747
1747
|
case "Escape":
|
|
1748
|
-
|
|
1748
|
+
F(X) && (b(X, null), b(Oi, null), xs(r, t));
|
|
1749
1749
|
return;
|
|
1750
1750
|
}
|
|
1751
1751
|
}
|
|
1752
|
-
let Fs =
|
|
1752
|
+
let Fs = p(pe({
|
|
1753
1753
|
sel: "",
|
|
1754
1754
|
i: 0
|
|
1755
|
-
})), Is = (e, t) =>
|
|
1755
|
+
})), Is = (e, t) => v() ? (F(Fs).sel === e ? F(Fs).i : 0) === t ? 0 : -1 : void 0;
|
|
1756
1756
|
function Ls(e, t) {
|
|
1757
|
-
(
|
|
1757
|
+
(F(Fs).sel !== e || F(Fs).i !== t) && b(Fs, {
|
|
1758
1758
|
sel: e,
|
|
1759
1759
|
i: t
|
|
1760
1760
|
}, !0);
|
|
@@ -1796,7 +1796,7 @@ function ni(ne, f) {
|
|
|
1796
1796
|
break;
|
|
1797
1797
|
default: return;
|
|
1798
1798
|
}
|
|
1799
|
-
e.preventDefault(), d = Math.max(0, Math.min(c - 1, d)), d !== n && (
|
|
1799
|
+
e.preventDefault(), d = Math.max(0, Math.min(c - 1, d)), d !== n && (b(Fs, {
|
|
1800
1800
|
sel: t,
|
|
1801
1801
|
i: d
|
|
1802
1802
|
}, !0), s[d].focus?.());
|
|
@@ -1809,8 +1809,8 @@ function ni(ne, f) {
|
|
|
1809
1809
|
};
|
|
1810
1810
|
};
|
|
1811
1811
|
function Bs(e, t) {
|
|
1812
|
-
if (!
|
|
1813
|
-
let n =
|
|
1812
|
+
if (!F(vi) || !F(K)) return !1;
|
|
1813
|
+
let n = F(B).categories.length, r = (I()?.i0 ?? 0) + t, i, a = F(q) ? "ArrowDown" : "ArrowRight", o = F(q) ? "ArrowUp" : "ArrowLeft";
|
|
1814
1814
|
if (e.key === "+" || e.key === "=") i = we(I(), n, r, .8);
|
|
1815
1815
|
else if (e.key === "-" || e.key === "_") i = we(I(), n, r, 1.25);
|
|
1816
1816
|
else if (e.key === "0") i = null;
|
|
@@ -1821,13 +1821,13 @@ function ni(ne, f) {
|
|
|
1821
1821
|
if (i === void 0) return !1;
|
|
1822
1822
|
e.preventDefault(), Li(i);
|
|
1823
1823
|
let s = Math.max(0, Math.min(i ? i.i1 - i.i0 : n - 1, r - (i?.i0 ?? 0)));
|
|
1824
|
-
return
|
|
1825
|
-
let e =
|
|
1826
|
-
e && (e.focus?.(),
|
|
1824
|
+
return ae().then(() => {
|
|
1825
|
+
let e = F(Xi)?.querySelector(F(To) ? "[data-dense=\"true\"]" : `[data-cat-index="${s}"]`);
|
|
1826
|
+
e && (e.focus?.(), F(To) && b(jo, s, !0), xs(e, s));
|
|
1827
1827
|
}), !0;
|
|
1828
1828
|
}
|
|
1829
1829
|
function Vs(e) {
|
|
1830
|
-
let t =
|
|
1830
|
+
let t = F(B).categories.length;
|
|
1831
1831
|
if (!t) return;
|
|
1832
1832
|
let n = I() ?? {
|
|
1833
1833
|
i0: 0,
|
|
@@ -1872,28 +1872,28 @@ function ni(ne, f) {
|
|
|
1872
1872
|
}
|
|
1873
1873
|
e.preventDefault(), Li(o);
|
|
1874
1874
|
}
|
|
1875
|
-
let Hs =
|
|
1875
|
+
let Hs = p("idle"), Us = p(null), Ws = p(null);
|
|
1876
1876
|
function Gs(e) {
|
|
1877
1877
|
if (!R()) return;
|
|
1878
1878
|
e.preventDefault();
|
|
1879
|
-
let t =
|
|
1879
|
+
let t = F(K) && !F(go) ? Ao(e.clientX, e.currentTarget) : null;
|
|
1880
1880
|
Ks(e.clientX, e.clientY, t);
|
|
1881
1881
|
}
|
|
1882
1882
|
function Ks(e, t, n) {
|
|
1883
1883
|
let r = n == null ? {} : {
|
|
1884
|
-
category:
|
|
1884
|
+
category: F(W).categories[n],
|
|
1885
1885
|
index: (I() ? I().i0 : 0) + n,
|
|
1886
|
-
...
|
|
1887
|
-
series:
|
|
1888
|
-
value:
|
|
1886
|
+
...F(X) ? {
|
|
1887
|
+
series: F(X),
|
|
1888
|
+
value: F(W).series.find((e) => e.label === F(X))?.values[n]
|
|
1889
1889
|
} : {}
|
|
1890
|
-
}, i = () =>
|
|
1890
|
+
}, i = () => b(Us, {
|
|
1891
1891
|
x: e,
|
|
1892
1892
|
y: t,
|
|
1893
1893
|
target: r
|
|
1894
1894
|
}, !0);
|
|
1895
|
-
|
|
1896
|
-
|
|
1895
|
+
F(Ws) ? i() : import("./SvChartMenu-CwWtjXsG.js").then((e) => {
|
|
1896
|
+
b(Ws, e.default, !0), i();
|
|
1897
1897
|
});
|
|
1898
1898
|
}
|
|
1899
1899
|
function qs(e, t) {
|
|
@@ -1902,76 +1902,76 @@ function ni(ne, f) {
|
|
|
1902
1902
|
let n = e.currentTarget.getBoundingClientRect();
|
|
1903
1903
|
return Ks(n.left + n.width / 2, n.top + Math.min(n.height / 2, 24), t), !0;
|
|
1904
1904
|
}
|
|
1905
|
-
let Js =
|
|
1906
|
-
if (!
|
|
1905
|
+
let Js = j(() => {
|
|
1906
|
+
if (!F(Us)) return [];
|
|
1907
1907
|
let e = [
|
|
1908
1908
|
{
|
|
1909
|
-
label:
|
|
1909
|
+
label: F(z).downloadPng,
|
|
1910
1910
|
onSelect: () => {
|
|
1911
1911
|
Qs("png");
|
|
1912
1912
|
}
|
|
1913
1913
|
},
|
|
1914
1914
|
{
|
|
1915
|
-
label:
|
|
1915
|
+
label: F(z).downloadSvg,
|
|
1916
1916
|
onSelect: () => {
|
|
1917
1917
|
Qs("svg");
|
|
1918
1918
|
}
|
|
1919
1919
|
},
|
|
1920
1920
|
{
|
|
1921
|
-
label:
|
|
1921
|
+
label: F(z).downloadPdf,
|
|
1922
1922
|
onSelect: () => {
|
|
1923
1923
|
$s();
|
|
1924
1924
|
}
|
|
1925
1925
|
},
|
|
1926
|
-
...Xe(
|
|
1927
|
-
label:
|
|
1926
|
+
...Xe(F(B)) ? [{
|
|
1927
|
+
label: F(z).downloadCsv,
|
|
1928
1928
|
onSelect: () => {
|
|
1929
|
-
Ze(
|
|
1929
|
+
Ze(F(B));
|
|
1930
1930
|
}
|
|
1931
1931
|
}] : [],
|
|
1932
1932
|
{
|
|
1933
|
-
label:
|
|
1933
|
+
label: F(z).copyAsImage,
|
|
1934
1934
|
onSelect: () => {
|
|
1935
1935
|
tc();
|
|
1936
1936
|
}
|
|
1937
1937
|
},
|
|
1938
1938
|
{
|
|
1939
|
-
label:
|
|
1939
|
+
label: F(z).print,
|
|
1940
1940
|
onSelect: () => {
|
|
1941
1941
|
ec();
|
|
1942
1942
|
}
|
|
1943
1943
|
},
|
|
1944
|
-
...Be() &&
|
|
1945
|
-
label:
|
|
1944
|
+
...Be() && F(Ye) ? [{
|
|
1945
|
+
label: F(z).describeChart,
|
|
1946
1946
|
onSelect: () => {
|
|
1947
1947
|
Qe();
|
|
1948
1948
|
}
|
|
1949
1949
|
}] : []
|
|
1950
1950
|
];
|
|
1951
|
-
Oe() &&
|
|
1952
|
-
label:
|
|
1951
|
+
Oe() && F(Ii) && e.push({ separator: !0 }, {
|
|
1952
|
+
label: F(z).resetZoom,
|
|
1953
1953
|
onSelect: Ui
|
|
1954
|
-
}),
|
|
1955
|
-
label:
|
|
1956
|
-
children:
|
|
1954
|
+
}), F(Wo) && e.push({ separator: !0 }, {
|
|
1955
|
+
label: F(z).range,
|
|
1956
|
+
children: F(Uo).map((e) => ({
|
|
1957
1957
|
label: Go(e),
|
|
1958
1958
|
onSelect: () => Ko(e)
|
|
1959
1959
|
}))
|
|
1960
|
-
}),
|
|
1961
|
-
label:
|
|
1962
|
-
children:
|
|
1960
|
+
}), F(qo) && F(Ho).length > 1 && e.push({ separator: !0 }, {
|
|
1961
|
+
label: F(z).series,
|
|
1962
|
+
children: F(Ho).map((e) => ({
|
|
1963
1963
|
label: `${e.off ? " " : "✓"} ${e.label}`,
|
|
1964
1964
|
onSelect: () => $o(e.label)
|
|
1965
1965
|
}))
|
|
1966
1966
|
});
|
|
1967
|
-
let t = typeof R() == "function" ? R()(
|
|
1967
|
+
let t = typeof R() == "function" ? R()(F(Us).target) : Array.isArray(R()) ? R() : [];
|
|
1968
1968
|
return t.length && e.push({ separator: !0 }, ...t), e;
|
|
1969
1969
|
});
|
|
1970
1970
|
function Ys() {
|
|
1971
|
-
if (!
|
|
1972
|
-
let e =
|
|
1971
|
+
if (!F(Xi)) return null;
|
|
1972
|
+
let e = F(Xi).cloneNode(!0);
|
|
1973
1973
|
e.setAttribute("xmlns", "http://www.w3.org/2000/svg"), e.removeAttribute("class");
|
|
1974
|
-
let t =
|
|
1974
|
+
let t = F(Xi).getBoundingClientRect();
|
|
1975
1975
|
t.width && e.setAttribute("width", String(Math.round(t.width))), t.height && e.setAttribute("height", String(Math.round(t.height)));
|
|
1976
1976
|
let n = document.createElement("style"), r = Array.from(document.styleSheets), i = [];
|
|
1977
1977
|
for (let e of r) try {
|
|
@@ -1980,8 +1980,8 @@ function ni(ne, f) {
|
|
|
1980
1980
|
e.includes(".sv-grid-chart") && i.push(e);
|
|
1981
1981
|
}
|
|
1982
1982
|
} catch {}
|
|
1983
|
-
if (n.textContent = i.join("\n"), e.insertBefore(n, e.firstChild),
|
|
1984
|
-
let t = getComputedStyle(
|
|
1983
|
+
if (n.textContent = i.join("\n"), e.insertBefore(n, e.firstChild), F(ss) && typeof getComputedStyle == "function") {
|
|
1984
|
+
let t = getComputedStyle(F(ss)), n = [
|
|
1985
1985
|
"--sg-bg",
|
|
1986
1986
|
"--sg-fg",
|
|
1987
1987
|
"--sg-muted",
|
|
@@ -2003,7 +2003,7 @@ function ni(ne, f) {
|
|
|
2003
2003
|
}
|
|
2004
2004
|
async function Zs(e) {
|
|
2005
2005
|
return new Promise((t) => {
|
|
2006
|
-
let n =
|
|
2006
|
+
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");
|
|
2007
2007
|
o.width = r * a, o.height = i * a;
|
|
2008
2008
|
let s = o.getContext("2d");
|
|
2009
2009
|
if (!s) {
|
|
@@ -2028,32 +2028,32 @@ function ni(ne, f) {
|
|
|
2028
2028
|
r && Xs(r, `chart-${n}.png`);
|
|
2029
2029
|
}
|
|
2030
2030
|
async function $s() {
|
|
2031
|
-
if (!
|
|
2032
|
-
let e = await import("./chart-export-pdf-
|
|
2033
|
-
await e.downloadChartPdf(
|
|
2034
|
-
title:
|
|
2035
|
-
subtitle:
|
|
2036
|
-
caption:
|
|
2031
|
+
if (!F(ss)) return;
|
|
2032
|
+
let e = await import("./chart-export-pdf-Bc0Rz4kB.js"), t = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
2033
|
+
await e.downloadChartPdf(F(ss), `chart-${t}.pdf`, {
|
|
2034
|
+
title: F(B).title,
|
|
2035
|
+
subtitle: F(B).subtitle,
|
|
2036
|
+
caption: F(B).caption
|
|
2037
2037
|
});
|
|
2038
2038
|
}
|
|
2039
2039
|
async function ec() {
|
|
2040
|
-
|
|
2040
|
+
F(ss) && (await import("./chart-export-pdf-Bc0Rz4kB.js")).printChart(F(ss), { title: F(B).title });
|
|
2041
2041
|
}
|
|
2042
2042
|
async function tc() {
|
|
2043
2043
|
let e = Ys();
|
|
2044
2044
|
if (!e) {
|
|
2045
|
-
|
|
2045
|
+
b(Hs, "err");
|
|
2046
2046
|
return;
|
|
2047
2047
|
}
|
|
2048
2048
|
try {
|
|
2049
2049
|
let t = await Zs(e);
|
|
2050
2050
|
if (!t) throw Error("rasterize failed");
|
|
2051
2051
|
let n = window.ClipboardItem;
|
|
2052
|
-
n && navigator.clipboard?.write ? await navigator.clipboard.write([new n({ "image/png": t })]) : await navigator.clipboard.writeText(e),
|
|
2052
|
+
n && navigator.clipboard?.write ? await navigator.clipboard.write([new n({ "image/png": t })]) : await navigator.clipboard.writeText(e), b(Hs, "ok");
|
|
2053
2053
|
} catch {
|
|
2054
|
-
|
|
2054
|
+
b(Hs, "err");
|
|
2055
2055
|
}
|
|
2056
|
-
setTimeout(() =>
|
|
2056
|
+
setTimeout(() => b(Hs, "idle"), 1500);
|
|
2057
2057
|
}
|
|
2058
2058
|
var nc = {
|
|
2059
2059
|
zoomTo: Hi,
|
|
@@ -2062,1633 +2062,1633 @@ function ni(ne, f) {
|
|
|
2062
2062
|
let ic;
|
|
2063
2063
|
{
|
|
2064
2064
|
let e = (e) => {
|
|
2065
|
-
var t = it(), n =
|
|
2066
|
-
|
|
2065
|
+
var t = it(), n = g(t), r = g(n, !0);
|
|
2066
|
+
E(n);
|
|
2067
2067
|
var i = w(n, 2);
|
|
2068
|
-
|
|
2069
|
-
var r = rt(), i = w(
|
|
2070
|
-
var n = tt(), r =
|
|
2071
|
-
|
|
2068
|
+
N(i, 17, Ie, S, (e, t, n) => {
|
|
2069
|
+
var r = rt(), i = w(T(r), 2), a = (e) => {
|
|
2070
|
+
var n = tt(), r = g(n, !0);
|
|
2071
|
+
E(n), C(() => k(r, F(t))), m(e, n);
|
|
2072
2072
|
}, o = (e) => {
|
|
2073
|
-
var r = nt(), i =
|
|
2074
|
-
|
|
2073
|
+
var r = nt(), i = g(r, !0);
|
|
2074
|
+
E(r), C(() => k(i, F(t))), _("click", r, () => Xa(Ie().slice(0, n + 1))), m(e, r);
|
|
2075
2075
|
};
|
|
2076
|
-
|
|
2076
|
+
h(i, (e) => {
|
|
2077
2077
|
n === Ie().length - 1 ? e(a) : e(o, -1);
|
|
2078
|
-
}),
|
|
2079
|
-
}),
|
|
2080
|
-
D(t, "aria-label",
|
|
2081
|
-
}),
|
|
2078
|
+
}), m(e, r);
|
|
2079
|
+
}), E(t), C(() => {
|
|
2080
|
+
D(t, "aria-label", F(z).drillPath), k(r, F(Ua)?.name || F(z).drillRoot);
|
|
2081
|
+
}), _("click", n, () => Xa([])), m(e, t);
|
|
2082
2082
|
};
|
|
2083
|
-
var ac =
|
|
2084
|
-
var n = pt(), r =
|
|
2083
|
+
var ac = g(rc), oc = (t) => {
|
|
2084
|
+
var n = pt(), r = g(n), i = (t) => {
|
|
2085
2085
|
e(t);
|
|
2086
2086
|
};
|
|
2087
|
-
|
|
2088
|
-
|
|
2087
|
+
h(r, (e) => {
|
|
2088
|
+
F(Wa) && Ie().length && e(i);
|
|
2089
2089
|
});
|
|
2090
2090
|
var a = w(r, 2), o = (e) => {
|
|
2091
2091
|
var t = ot();
|
|
2092
|
-
|
|
2093
|
-
var n = at(), r =
|
|
2094
|
-
|
|
2095
|
-
D(n, "title", e),
|
|
2096
|
-
}, [() => et(
|
|
2097
|
-
}),
|
|
2092
|
+
N(t, 21, () => F(Uo), (e) => Go(e), (e, t) => {
|
|
2093
|
+
var n = at(), r = g(n, !0);
|
|
2094
|
+
E(n), C((e, t) => {
|
|
2095
|
+
D(n, "title", e), k(r, t);
|
|
2096
|
+
}, [() => et(F(z).showLast, { preset: Go(F(t)) }), () => Go(F(t))]), _("click", n, () => Ko(F(t))), m(e, n);
|
|
2097
|
+
}), E(t), C(() => D(t, "aria-label", F(z).dateRange)), m(e, t);
|
|
2098
2098
|
};
|
|
2099
|
-
|
|
2100
|
-
|
|
2099
|
+
h(a, (e) => {
|
|
2100
|
+
F(Wo) && e(o);
|
|
2101
2101
|
});
|
|
2102
2102
|
var s = w(a, 2), c = (e) => {
|
|
2103
2103
|
var t = st();
|
|
2104
2104
|
let n;
|
|
2105
|
-
var r = w(
|
|
2106
|
-
|
|
2107
|
-
n =
|
|
2108
|
-
}),
|
|
2105
|
+
var r = w(g(t));
|
|
2106
|
+
E(t), C(() => {
|
|
2107
|
+
n = P(t, 1, "sv-grid-chart-tool svelte-kvdein", null, n, { "is-on": F(yi) }), D(t, "aria-pressed", F(yi)), D(t, "title", F(z).panTitle), k(r, ` ${F(z).pan ?? ""}`);
|
|
2108
|
+
}), _("click", t, () => b(yi, !F(yi))), m(e, t);
|
|
2109
2109
|
};
|
|
2110
|
-
|
|
2111
|
-
|
|
2110
|
+
h(s, (e) => {
|
|
2111
|
+
F(vi) && (F(vi).pan === "mode" || F(vi).pan === !0) && F(Ii) && e(c);
|
|
2112
2112
|
});
|
|
2113
2113
|
var l = w(s, 2), u = (e) => {
|
|
2114
|
-
var t = ct(), n = w(
|
|
2115
|
-
|
|
2116
|
-
D(t, "title",
|
|
2117
|
-
}),
|
|
2114
|
+
var t = ct(), n = w(g(t));
|
|
2115
|
+
E(t), C(() => {
|
|
2116
|
+
D(t, "title", F(z).resetZoomTitle), k(n, ` ${F(z).resetZoom ?? ""}`);
|
|
2117
|
+
}), _("click", t, Ui), m(e, t);
|
|
2118
2118
|
};
|
|
2119
|
-
|
|
2120
|
-
Oe() &&
|
|
2119
|
+
h(l, (e) => {
|
|
2120
|
+
Oe() && F(Ii) && e(u);
|
|
2121
2121
|
});
|
|
2122
2122
|
var d = w(l, 2), ee = (e) => {
|
|
2123
2123
|
var t = lt();
|
|
2124
2124
|
let n;
|
|
2125
|
-
var r = w(
|
|
2126
|
-
|
|
2127
|
-
n =
|
|
2128
|
-
}),
|
|
2125
|
+
var r = w(g(t));
|
|
2126
|
+
E(t), C(() => {
|
|
2127
|
+
n = P(t, 1, "sv-grid-chart-tool svelte-kvdein", null, n, { "is-on": F(xi) }), D(t, "aria-pressed", F(xi)), D(t, "title", F(xi) ? F(z).annotateOnTitle : F(z).annotateOffTitle), k(r, ` ${F(z).annotate ?? ""}`);
|
|
2128
|
+
}), _("click", t, () => b(xi, !F(xi))), m(e, t);
|
|
2129
2129
|
};
|
|
2130
|
-
|
|
2130
|
+
h(d, (e) => {
|
|
2131
2131
|
qe() && e(ee);
|
|
2132
2132
|
});
|
|
2133
2133
|
var te = w(d, 2), ne = (e) => {
|
|
2134
|
-
var t = ft(), n =
|
|
2135
|
-
|
|
2134
|
+
var t = ft(), n = g(t);
|
|
2135
|
+
N(n, 16, () => F(ca), (e) => e, (e, t) => {
|
|
2136
2136
|
var n = ut();
|
|
2137
2137
|
let r;
|
|
2138
|
-
var i =
|
|
2139
|
-
|
|
2140
|
-
r =
|
|
2141
|
-
}, [() => et(
|
|
2138
|
+
var i = g(n, !0);
|
|
2139
|
+
E(n), C((e) => {
|
|
2140
|
+
r = P(n, 1, "sv-grid-chart-tool sv-grid-chart-drawtool svelte-kvdein", null, r, { "is-on": F(la) === t }), D(n, "aria-pressed", F(la) === t), D(n, "title", e), k(i, F(sa)[t]);
|
|
2141
|
+
}, [() => et(F(z).draw, { tool: F(sa)[t] })]), _("click", n, () => xa(t)), m(e, n);
|
|
2142
2142
|
});
|
|
2143
2143
|
var r = w(n, 2), i = (e) => {
|
|
2144
|
-
var t = dt(), n =
|
|
2145
|
-
|
|
2146
|
-
var i = w(n, 2), a =
|
|
2147
|
-
|
|
2148
|
-
n.disabled = !
|
|
2149
|
-
}),
|
|
2150
|
-
}, a =
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
}),
|
|
2144
|
+
var t = dt(), n = T(t), r = g(n, !0);
|
|
2145
|
+
E(n);
|
|
2146
|
+
var i = w(n, 2), a = g(i, !0);
|
|
2147
|
+
E(i), C(() => {
|
|
2148
|
+
n.disabled = !F(da), D(n, "title", F(z).deleteDrawingTitle), k(r, F(z).deleteDrawing), D(i, "title", F(z).clearDrawingsTitle), k(a, F(z).clearDrawings);
|
|
2149
|
+
}), _("click", n, () => F(da) && wa(F(da))), _("click", i, () => ba([])), m(e, t);
|
|
2150
|
+
}, a = j(() => _a().length);
|
|
2151
|
+
h(r, (e) => {
|
|
2152
|
+
F(a) && e(i);
|
|
2153
|
+
}), E(t), C(() => D(t, "aria-label", F(z).drawingTools)), m(e, t);
|
|
2154
2154
|
};
|
|
2155
|
-
|
|
2156
|
-
|
|
2155
|
+
h(te, (e) => {
|
|
2156
|
+
F(ca).length && F(K) && e(ne);
|
|
2157
2157
|
});
|
|
2158
|
-
var re = w(te, 2), ie =
|
|
2159
|
-
|
|
2160
|
-
var f = w(re, 2), p =
|
|
2161
|
-
|
|
2162
|
-
var ae = w(f, 2), oe =
|
|
2163
|
-
|
|
2164
|
-
var se = w(ae, 2), ce =
|
|
2165
|
-
|
|
2166
|
-
var
|
|
2167
|
-
|
|
2168
|
-
D(re, "title",
|
|
2169
|
-
}),
|
|
2158
|
+
var re = w(te, 2), ie = g(re, !0);
|
|
2159
|
+
E(re);
|
|
2160
|
+
var f = w(re, 2), p = g(f, !0);
|
|
2161
|
+
E(f);
|
|
2162
|
+
var ae = w(f, 2), oe = g(ae, !0);
|
|
2163
|
+
E(ae);
|
|
2164
|
+
var se = w(ae, 2), ce = g(se, !0);
|
|
2165
|
+
E(se);
|
|
2166
|
+
var le = w(se, 2), v = g(le, !0);
|
|
2167
|
+
E(le), E(n), C(() => {
|
|
2168
|
+
D(re, "title", F(z).downloadPng), k(ie, F(z).png), D(f, "title", F(z).downloadSvg), k(p, F(z).svg), D(ae, "title", F(z).downloadPdf), k(oe, F(z).pdf), D(se, "title", F(z).printTitle), k(ce, F(z).print), D(le, "title", F(z).copyTitle), k(v, F(Hs) === "ok" ? F(z).copied : F(z).copy);
|
|
2169
|
+
}), _("click", re, () => Qs("png")), _("click", f, () => Qs("svg")), _("click", ae, $s), _("click", se, ec), _("click", le, tc), ve(n, "clientHeight", (e) => b(ui, e)), m(t, n);
|
|
2170
2170
|
}, sc = (t) => {
|
|
2171
|
-
var n = mt(), r =
|
|
2172
|
-
e(r),
|
|
2171
|
+
var n = mt(), r = g(n);
|
|
2172
|
+
e(r), E(n), ve(n, "clientHeight", (e) => b(ui, e)), m(t, n);
|
|
2173
2173
|
};
|
|
2174
|
-
|
|
2175
|
-
|
|
2174
|
+
h(ac, (e) => {
|
|
2175
|
+
F(bi) ? e(oc) : F(Wa) && Ie().length && e(sc, 1);
|
|
2176
2176
|
});
|
|
2177
2177
|
var $ = w(ac, 2);
|
|
2178
2178
|
let t, n;
|
|
2179
|
-
var cc =
|
|
2180
|
-
var t = xt(), n =
|
|
2181
|
-
var t = ht(), n =
|
|
2179
|
+
var cc = g($), lc = (e) => {
|
|
2180
|
+
var t = xt(), n = g(t), r = (e) => {
|
|
2181
|
+
var t = ht(), n = g(t);
|
|
2182
2182
|
let r;
|
|
2183
|
-
|
|
2184
|
-
D(t, "id", `${Ai}-plot`), D(n, "x",
|
|
2185
|
-
}),
|
|
2183
|
+
E(t), C(() => {
|
|
2184
|
+
D(t, "id", `${Ai}-plot`), D(n, "x", F(G).plot.x - 4), D(n, "y", F(G).plot.y - 4), D(n, "width", F(G).plot.w + 8), D(n, "height", F(G).plot.h + 8), r = P(n, 0, "svelte-kvdein", null, r, { "sv-grid-chart-wipe": F(ao) === "wipe" });
|
|
2185
|
+
}), m(e, t);
|
|
2186
2186
|
};
|
|
2187
|
-
|
|
2188
|
-
|
|
2187
|
+
h(n, (e) => {
|
|
2188
|
+
F(K) && e(r);
|
|
2189
2189
|
});
|
|
2190
2190
|
var i = w(n);
|
|
2191
|
-
|
|
2192
|
-
var n = gt(), r =
|
|
2193
|
-
|
|
2194
|
-
D(n, "id",
|
|
2195
|
-
}),
|
|
2191
|
+
N(i, 17, () => F(oo), (e) => e.id, (e, t) => {
|
|
2192
|
+
var n = gt(), r = g(n), i = w(r);
|
|
2193
|
+
E(n), C(() => {
|
|
2194
|
+
D(n, "id", F(t).id), D(r, "stop-color", F(t).from), D(i, "stop-color", F(t).to === "transparent" ? F(t).from : F(t).to), D(i, "stop-opacity", F(t).to === "transparent" ? 0 : 1);
|
|
2195
|
+
}), m(e, n);
|
|
2196
2196
|
});
|
|
2197
2197
|
var a = w(i);
|
|
2198
|
-
|
|
2199
|
-
var n =
|
|
2200
|
-
var n = _t(), r =
|
|
2201
|
-
|
|
2202
|
-
D(n, "id",
|
|
2203
|
-
}),
|
|
2198
|
+
N(a, 17, () => F(Pi), (e) => e.id, (e, t) => {
|
|
2199
|
+
var n = O(), r = T(n), i = (e) => {
|
|
2200
|
+
var n = _t(), r = g(n);
|
|
2201
|
+
ge(), E(n), C(() => {
|
|
2202
|
+
D(n, "id", F(t).id), D(r, "fill", F(t).color);
|
|
2203
|
+
}), m(e, n);
|
|
2204
2204
|
}, a = (e) => {
|
|
2205
|
-
var n = vt(), r =
|
|
2206
|
-
|
|
2207
|
-
D(n, "id",
|
|
2208
|
-
}),
|
|
2205
|
+
var n = vt(), r = g(n);
|
|
2206
|
+
ge(), E(n), C(() => {
|
|
2207
|
+
D(n, "id", F(t).id), D(r, "fill", F(t).color);
|
|
2208
|
+
}), m(e, n);
|
|
2209
2209
|
}, o = (e) => {
|
|
2210
|
-
var n = yt(), r =
|
|
2211
|
-
|
|
2212
|
-
D(n, "id",
|
|
2213
|
-
}),
|
|
2210
|
+
var n = yt(), r = g(n);
|
|
2211
|
+
ge(), E(n), C(() => {
|
|
2212
|
+
D(n, "id", F(t).id), D(r, "fill", F(t).color);
|
|
2213
|
+
}), m(e, n);
|
|
2214
2214
|
}, s = (e) => {
|
|
2215
|
-
var n = bt(), r =
|
|
2216
|
-
|
|
2217
|
-
D(n, "id",
|
|
2218
|
-
}),
|
|
2215
|
+
var n = bt(), r = g(n);
|
|
2216
|
+
ge(), E(n), C(() => {
|
|
2217
|
+
D(n, "id", F(t).id), D(r, "fill", F(t).color);
|
|
2218
|
+
}), m(e, n);
|
|
2219
2219
|
};
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
}),
|
|
2223
|
-
}),
|
|
2220
|
+
h(r, (e) => {
|
|
2221
|
+
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);
|
|
2222
|
+
}), m(e, n);
|
|
2223
|
+
}), E(t), m(e, t);
|
|
2224
2224
|
};
|
|
2225
|
-
|
|
2226
|
-
(
|
|
2225
|
+
h(cc, (e) => {
|
|
2226
|
+
(F(Pi).length || F(oo).length || F(K)) && e(lc);
|
|
2227
2227
|
});
|
|
2228
2228
|
var uc = w(cc), dc = (e) => {
|
|
2229
|
-
var t = St(), n =
|
|
2230
|
-
|
|
2231
|
-
D(t, "x",
|
|
2232
|
-
}),
|
|
2229
|
+
var t = St(), n = g(t, !0);
|
|
2230
|
+
E(t), C(() => {
|
|
2231
|
+
D(t, "x", F(G).frame.title.x), D(t, "y", F(G).frame.title.y), k(n, F(G).frame.title.text);
|
|
2232
|
+
}), m(e, t);
|
|
2233
2233
|
};
|
|
2234
|
-
|
|
2235
|
-
|
|
2234
|
+
h(uc, (e) => {
|
|
2235
|
+
F(G).frame.title && e(dc);
|
|
2236
2236
|
});
|
|
2237
2237
|
var fc = w(uc), pc = (e) => {
|
|
2238
|
-
var t = Ct(), n =
|
|
2239
|
-
|
|
2240
|
-
D(t, "x",
|
|
2241
|
-
}),
|
|
2238
|
+
var t = Ct(), n = g(t, !0);
|
|
2239
|
+
E(t), C(() => {
|
|
2240
|
+
D(t, "x", F(G).frame.subtitle.x), D(t, "y", F(G).frame.subtitle.y), k(n, F(G).frame.subtitle.text);
|
|
2241
|
+
}), m(e, t);
|
|
2242
2242
|
};
|
|
2243
|
-
|
|
2244
|
-
|
|
2243
|
+
h(fc, (e) => {
|
|
2244
|
+
F(G).frame.subtitle && e(pc);
|
|
2245
2245
|
});
|
|
2246
2246
|
var mc = w(fc), hc = (e) => {
|
|
2247
|
-
var t = wt(), n =
|
|
2248
|
-
|
|
2249
|
-
D(t, "x",
|
|
2250
|
-
}),
|
|
2247
|
+
var t = wt(), n = g(t, !0);
|
|
2248
|
+
E(t), C(() => {
|
|
2249
|
+
D(t, "x", F(G).frame.caption.x), D(t, "y", F(G).frame.caption.y), k(n, F(G).frame.caption.text);
|
|
2250
|
+
}), m(e, t);
|
|
2251
2251
|
};
|
|
2252
|
-
|
|
2253
|
-
|
|
2252
|
+
h(mc, (e) => {
|
|
2253
|
+
F(G).frame.caption && e(hc);
|
|
2254
2254
|
});
|
|
2255
2255
|
var gc = w(mc), _c = (e) => {
|
|
2256
|
-
var t = jt(), n =
|
|
2257
|
-
|
|
2258
|
-
var i = Et(), a =
|
|
2256
|
+
var t = jt(), n = T(t);
|
|
2257
|
+
N(n, 17, () => F(G).valueTicks, (e) => e.label + e.x, (e, t, n, r) => {
|
|
2258
|
+
var i = Et(), a = T(i), o = (e) => {
|
|
2259
2259
|
var n = Tt();
|
|
2260
|
-
|
|
2261
|
-
D(n, "x1",
|
|
2262
|
-
}),
|
|
2260
|
+
C(() => {
|
|
2261
|
+
D(n, "x1", F(t).x), D(n, "y1", F(G).plot.y), D(n, "x2", F(t).x), D(n, "y2", F(G).plot.y + F(G).plot.h);
|
|
2262
|
+
}), m(e, n);
|
|
2263
2263
|
};
|
|
2264
|
-
|
|
2265
|
-
|
|
2264
|
+
h(a, (e) => {
|
|
2265
|
+
F(G).grid.x && e(o);
|
|
2266
2266
|
});
|
|
2267
|
-
var s = w(a), c =
|
|
2268
|
-
|
|
2269
|
-
D(s, "x",
|
|
2270
|
-
}),
|
|
2267
|
+
var s = w(a), c = g(s, !0);
|
|
2268
|
+
E(s), C(() => {
|
|
2269
|
+
D(s, "x", F(t).x), D(s, "y", F(G).plot.y + F(G).plot.h + 14), k(c, F(t).label);
|
|
2270
|
+
}), m(e, i);
|
|
2271
2271
|
});
|
|
2272
2272
|
var r = w(n), i = (e) => {
|
|
2273
|
-
var t =
|
|
2274
|
-
|
|
2273
|
+
var t = O(), n = T(t);
|
|
2274
|
+
N(n, 17, () => F(G).catTicks, (e) => e.value, (e, t, n, r) => {
|
|
2275
2275
|
var i = Dt();
|
|
2276
|
-
|
|
2277
|
-
D(i, "x1",
|
|
2278
|
-
}),
|
|
2279
|
-
}),
|
|
2276
|
+
C(() => {
|
|
2277
|
+
D(i, "x1", F(G).plot.x), D(i, "y1", F(t).y), D(i, "x2", F(G).plot.x + F(G).plot.w), D(i, "y2", F(t).y);
|
|
2278
|
+
}), m(e, i);
|
|
2279
|
+
}), m(e, t);
|
|
2280
2280
|
};
|
|
2281
|
-
|
|
2282
|
-
|
|
2281
|
+
h(r, (e) => {
|
|
2282
|
+
F(G).grid.y && e(i);
|
|
2283
2283
|
});
|
|
2284
2284
|
var a = w(r);
|
|
2285
|
-
|
|
2286
|
-
var i = Ot(), a =
|
|
2287
|
-
|
|
2288
|
-
D(i, "x",
|
|
2289
|
-
}, [() => as(
|
|
2285
|
+
N(a, 17, () => F(G).catTicks, (e) => e.value, (e, t, n, r) => {
|
|
2286
|
+
var i = Ot(), a = g(i, !0);
|
|
2287
|
+
E(i), C((e) => {
|
|
2288
|
+
D(i, "x", F(G).plot.x - 6), D(i, "y", F(t).y + 3), k(a, e);
|
|
2289
|
+
}, [() => as(F(t).label, 18)]), m(e, i);
|
|
2290
2290
|
});
|
|
2291
2291
|
var o = w(a), s = (e) => {
|
|
2292
2292
|
var t = kt();
|
|
2293
2293
|
D(t, "x", 13);
|
|
2294
|
-
var n =
|
|
2295
|
-
|
|
2296
|
-
D(t, "y",
|
|
2297
|
-
}),
|
|
2294
|
+
var n = g(t, !0);
|
|
2295
|
+
E(t), C(() => {
|
|
2296
|
+
D(t, "y", F(G).plot.y + F(G).plot.h / 2), D(t, "transform", `rotate(-90 13 ${F(G).plot.y + F(G).plot.h / 2})`), k(n, F(so));
|
|
2297
|
+
}), m(e, t);
|
|
2298
2298
|
};
|
|
2299
|
-
|
|
2300
|
-
|
|
2299
|
+
h(o, (e) => {
|
|
2300
|
+
F(so) && e(s);
|
|
2301
2301
|
});
|
|
2302
2302
|
var c = w(o), l = (e) => {
|
|
2303
|
-
var t = At(), n =
|
|
2304
|
-
|
|
2305
|
-
D(t, "x",
|
|
2306
|
-
}),
|
|
2303
|
+
var t = At(), n = g(t, !0);
|
|
2304
|
+
E(t), C(() => {
|
|
2305
|
+
D(t, "x", F(G).plot.x + F(G).plot.w / 2), D(t, "y", F(G).height - 3 - F(G).frame.bottom), k(n, F(lo));
|
|
2306
|
+
}), m(e, t);
|
|
2307
2307
|
};
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
}),
|
|
2308
|
+
h(c, (e) => {
|
|
2309
|
+
F(lo) && e(l);
|
|
2310
|
+
}), m(e, t);
|
|
2311
2311
|
}, vc = (e) => {
|
|
2312
|
-
var t = Wt(), n =
|
|
2313
|
-
|
|
2314
|
-
var i = Pt(), a =
|
|
2312
|
+
var t = Wt(), n = T(t);
|
|
2313
|
+
N(n, 17, () => F(G).yTicks, (e) => e.value, (e, t, n, r) => {
|
|
2314
|
+
var i = Pt(), a = T(i), o = (e) => {
|
|
2315
2315
|
var n = Mt();
|
|
2316
2316
|
let r;
|
|
2317
|
-
|
|
2318
|
-
r =
|
|
2319
|
-
}),
|
|
2317
|
+
C(() => {
|
|
2318
|
+
r = P(n, 0, "sv-grid-chart-gridline svelte-kvdein", null, r, { "is-zero": F(t).value === 0 }), D(n, "x1", F(G).plot.x), D(n, "y1", F(t).y), D(n, "x2", F(G).plot.x + F(G).plot.w), D(n, "y2", F(t).y);
|
|
2319
|
+
}), m(e, n);
|
|
2320
2320
|
};
|
|
2321
|
-
|
|
2322
|
-
(
|
|
2321
|
+
h(a, (e) => {
|
|
2322
|
+
(F(G).grid.y || F(t).value === 0) && e(o);
|
|
2323
2323
|
});
|
|
2324
2324
|
var s = w(a), c = (e) => {
|
|
2325
|
-
var n = Nt(), r =
|
|
2326
|
-
|
|
2327
|
-
D(n, "x",
|
|
2328
|
-
}, [() => os(
|
|
2325
|
+
var n = Nt(), r = g(n, !0);
|
|
2326
|
+
E(n), C((e) => {
|
|
2327
|
+
D(n, "x", F(G).plot.x - 6), D(n, "y", F(t).y + 3), k(r, e);
|
|
2328
|
+
}, [() => os(F(t).value, F(t).label)]), m(e, n);
|
|
2329
2329
|
};
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
}),
|
|
2330
|
+
h(s, (e) => {
|
|
2331
|
+
F(t).label && e(c);
|
|
2332
|
+
}), m(e, i);
|
|
2333
2333
|
});
|
|
2334
2334
|
var r = w(n), i = (e) => {
|
|
2335
|
-
var t =
|
|
2336
|
-
|
|
2335
|
+
var t = O(), n = T(t);
|
|
2336
|
+
N(n, 17, () => F(G).xTicks, (e) => e.label + e.x, (e, t, n, r) => {
|
|
2337
2337
|
var i = Ft();
|
|
2338
|
-
|
|
2339
|
-
D(i, "x1",
|
|
2340
|
-
}),
|
|
2341
|
-
}),
|
|
2338
|
+
C(() => {
|
|
2339
|
+
D(i, "x1", F(t).x), D(i, "y1", F(G).plot.y), D(i, "x2", F(t).x), D(i, "y2", F(G).plot.y + F(G).plot.h);
|
|
2340
|
+
}), m(e, i);
|
|
2341
|
+
}), m(e, t);
|
|
2342
2342
|
};
|
|
2343
|
-
|
|
2344
|
-
|
|
2343
|
+
h(r, (e) => {
|
|
2344
|
+
F(G).grid.x && e(i);
|
|
2345
2345
|
});
|
|
2346
2346
|
var a = w(r), o = (e) => {
|
|
2347
|
-
var t =
|
|
2348
|
-
|
|
2349
|
-
var i =
|
|
2350
|
-
var n = It(), r =
|
|
2351
|
-
|
|
2352
|
-
D(n, "x",
|
|
2353
|
-
}, [() => os(
|
|
2347
|
+
var t = O(), n = T(t);
|
|
2348
|
+
N(n, 17, () => F(G).y2Ticks, (e) => e.value, (e, t, n, r) => {
|
|
2349
|
+
var i = O(), a = T(i), o = (e) => {
|
|
2350
|
+
var n = It(), r = g(n, !0);
|
|
2351
|
+
E(n), C((e) => {
|
|
2352
|
+
D(n, "x", F(G).plot.x + F(G).plot.w + 6), D(n, "y", F(t).y + 3), k(r, e);
|
|
2353
|
+
}, [() => os(F(t).value, F(t).label)]), m(e, n);
|
|
2354
2354
|
};
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
}),
|
|
2358
|
-
}),
|
|
2355
|
+
h(a, (e) => {
|
|
2356
|
+
F(t).label && e(o);
|
|
2357
|
+
}), m(e, i);
|
|
2358
|
+
}), m(e, t);
|
|
2359
2359
|
};
|
|
2360
|
-
|
|
2361
|
-
|
|
2360
|
+
h(a, (e) => {
|
|
2361
|
+
F(G).hasRightAxis && e(o);
|
|
2362
2362
|
});
|
|
2363
2363
|
var s = w(a);
|
|
2364
|
-
|
|
2365
|
-
var i =
|
|
2366
|
-
var n = Lt(), r =
|
|
2367
|
-
|
|
2368
|
-
D(n, "x",
|
|
2369
|
-
}, [() => as(
|
|
2364
|
+
N(s, 17, () => F(G).xTicks, (e) => e.label + e.x, (e, t, n, r) => {
|
|
2365
|
+
var i = O(), a = T(i), o = (e) => {}, s = (e) => {
|
|
2366
|
+
var n = Lt(), r = g(n, !0);
|
|
2367
|
+
E(n), C((e) => {
|
|
2368
|
+
D(n, "x", F(t).x), D(n, "y", F(G).plot.y + F(G).plot.h + 12), D(n, "text-anchor", F(G).xLabelAngle < 0 ? "end" : "start"), D(n, "transform", `rotate(${F(G).xLabelAngle} ${F(t).x} ${F(G).plot.y + F(G).plot.h + 12})`), k(r, e);
|
|
2369
|
+
}, [() => as(F(t).label, Math.abs(F(G).xLabelAngle) >= 60 ? 18 : 12)]), m(e, n);
|
|
2370
2370
|
}, c = (e) => {
|
|
2371
|
-
var n = Rt(), r =
|
|
2372
|
-
|
|
2373
|
-
D(n, "x",
|
|
2374
|
-
}, [() => as(
|
|
2371
|
+
var n = Rt(), r = g(n, !0);
|
|
2372
|
+
E(n), C((e) => {
|
|
2373
|
+
D(n, "x", F(t).x), D(n, "y", F(G).plot.y + F(G).plot.h + 16), k(r, e);
|
|
2374
|
+
}, [() => as(F(t).label, 16)]), m(e, n);
|
|
2375
2375
|
};
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
}),
|
|
2376
|
+
h(a, (e) => {
|
|
2377
|
+
F(t).label ? F(G).xLabelRotated ? e(s, 1) : e(c, -1) : e(o);
|
|
2378
|
+
}), m(e, i);
|
|
2379
2379
|
});
|
|
2380
2380
|
var c = w(s);
|
|
2381
|
-
|
|
2382
|
-
let n =
|
|
2383
|
-
var r = Bt(), i =
|
|
2381
|
+
N(c, 17, () => F(G).categoryGroupTicks, (e) => e.label + e.x0, (e, t) => {
|
|
2382
|
+
let n = j(() => F(G).plot.y + F(G).plot.h + (F(G).xLabelRotated ? 46 : 32));
|
|
2383
|
+
var r = Bt(), i = T(r), a = w(i), o = (e) => {
|
|
2384
2384
|
var r = zt();
|
|
2385
|
-
|
|
2386
|
-
D(r, "x1",
|
|
2387
|
-
}),
|
|
2385
|
+
C(() => {
|
|
2386
|
+
D(r, "x1", F(t).x0), D(r, "y1", F(G).plot.y + F(G).plot.h), D(r, "x2", F(t).x0), D(r, "y2", F(n) - 9);
|
|
2387
|
+
}), m(e, r);
|
|
2388
2388
|
};
|
|
2389
|
-
|
|
2390
|
-
|
|
2389
|
+
h(a, (e) => {
|
|
2390
|
+
F(t).x0 > F(G).plot.x + 1 && e(o);
|
|
2391
2391
|
});
|
|
2392
|
-
var s = w(a), c =
|
|
2393
|
-
|
|
2394
|
-
D(i, "x1",
|
|
2395
|
-
}, [() => as(
|
|
2392
|
+
var s = w(a), c = g(s, !0);
|
|
2393
|
+
E(s), C((e) => {
|
|
2394
|
+
D(i, "x1", F(t).x0 + 3), D(i, "y1", F(n) - 9), D(i, "x2", F(t).x1 - 3), D(i, "y2", F(n) - 9), D(s, "x", F(t).xCenter), D(s, "y", F(n)), k(c, e);
|
|
2395
|
+
}, [() => as(F(t).label, Math.max(4, Math.floor((F(t).x1 - F(t).x0) / 7)))]), m(e, r);
|
|
2396
2396
|
});
|
|
2397
2397
|
var l = w(c), u = (e) => {
|
|
2398
2398
|
var t = Vt();
|
|
2399
2399
|
D(t, "x", 13);
|
|
2400
|
-
var n =
|
|
2401
|
-
|
|
2402
|
-
D(t, "y",
|
|
2403
|
-
}),
|
|
2400
|
+
var n = g(t, !0);
|
|
2401
|
+
E(t), C(() => {
|
|
2402
|
+
D(t, "y", F(G).plot.y + F(G).plot.h / 2), D(t, "transform", `rotate(-90 13 ${F(G).plot.y + F(G).plot.h / 2})`), k(n, F(so));
|
|
2403
|
+
}), m(e, t);
|
|
2404
2404
|
};
|
|
2405
|
-
|
|
2406
|
-
|
|
2405
|
+
h(l, (e) => {
|
|
2406
|
+
F(so) && e(u);
|
|
2407
2407
|
});
|
|
2408
2408
|
var d = w(l), ee = (e) => {
|
|
2409
|
-
var t = Ht(), n =
|
|
2410
|
-
|
|
2411
|
-
D(t, "x",
|
|
2412
|
-
}),
|
|
2409
|
+
var t = Ht(), n = g(t, !0);
|
|
2410
|
+
E(t), C(() => {
|
|
2411
|
+
D(t, "x", F(G).width - 12), D(t, "y", F(G).plot.y + F(G).plot.h / 2), D(t, "transform", `rotate(90 ${F(G).width - 12} ${F(G).plot.y + F(G).plot.h / 2})`), k(n, F(co));
|
|
2412
|
+
}), m(e, t);
|
|
2413
2413
|
};
|
|
2414
|
-
|
|
2415
|
-
|
|
2414
|
+
h(d, (e) => {
|
|
2415
|
+
F(co) && e(ee);
|
|
2416
2416
|
});
|
|
2417
2417
|
var te = w(d), ne = (e) => {
|
|
2418
|
-
var t = Ut(), n =
|
|
2419
|
-
|
|
2420
|
-
D(t, "x",
|
|
2421
|
-
}),
|
|
2418
|
+
var t = Ut(), n = g(t, !0);
|
|
2419
|
+
E(t), C(() => {
|
|
2420
|
+
D(t, "x", F(G).plot.x + F(G).plot.w / 2), D(t, "y", F(G).height - 3 - F(G).frame.bottom), k(n, F(lo));
|
|
2421
|
+
}), m(e, t);
|
|
2422
2422
|
};
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
}),
|
|
2423
|
+
h(te, (e) => {
|
|
2424
|
+
F(lo) && e(ne);
|
|
2425
|
+
}), m(e, t);
|
|
2426
2426
|
};
|
|
2427
|
-
|
|
2428
|
-
|
|
2427
|
+
h(gc, (e) => {
|
|
2428
|
+
F(q) ? e(_c) : F(K) && e(vc, 1);
|
|
2429
2429
|
});
|
|
2430
2430
|
var yc = w(gc);
|
|
2431
|
-
|
|
2432
|
-
var n = qt(), r =
|
|
2433
|
-
var n =
|
|
2434
|
-
var n = Gt(), r =
|
|
2435
|
-
|
|
2436
|
-
D(n, "x",
|
|
2437
|
-
}),
|
|
2431
|
+
N(yc, 17, () => F(G).referenceBands, S, (e, t) => {
|
|
2432
|
+
var n = qt(), r = T(n), i = w(r), a = (e) => {
|
|
2433
|
+
var n = O(), r = T(n), i = (e) => {
|
|
2434
|
+
var n = Gt(), r = g(n, !0);
|
|
2435
|
+
E(n), C(() => {
|
|
2436
|
+
D(n, "x", F(t).x + F(t).w - 3), D(n, "y", F(t).y + 10), D(n, "fill", F(t).color), k(r, F(t).label);
|
|
2437
|
+
}), m(e, n);
|
|
2438
2438
|
}, a = (e) => {
|
|
2439
|
-
var n = Kt(), r =
|
|
2440
|
-
|
|
2441
|
-
D(n, "x",
|
|
2442
|
-
}),
|
|
2439
|
+
var n = Kt(), r = g(n, !0);
|
|
2440
|
+
E(n), C(() => {
|
|
2441
|
+
D(n, "x", F(t).x + F(t).w / 2), D(n, "y", F(t).y + 10), D(n, "fill", F(t).color), k(r, F(t).label);
|
|
2442
|
+
}), m(e, n);
|
|
2443
2443
|
};
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
}),
|
|
2444
|
+
h(r, (e) => {
|
|
2445
|
+
F(t).axis === "y" ? e(i) : e(a, -1);
|
|
2446
|
+
}), m(e, n);
|
|
2447
2447
|
};
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
}),
|
|
2451
|
-
D(r, "x",
|
|
2452
|
-
}),
|
|
2448
|
+
h(i, (e) => {
|
|
2449
|
+
F(t).label && e(a);
|
|
2450
|
+
}), C(() => {
|
|
2451
|
+
D(r, "x", F(t).x), D(r, "y", F(t).y), D(r, "width", F(t).w), D(r, "height", F(t).h), D(r, "fill", F(t).color), D(r, "fill-opacity", F(t).opacity);
|
|
2452
|
+
}), m(e, n);
|
|
2453
2453
|
});
|
|
2454
2454
|
var bc = w(yc);
|
|
2455
2455
|
let r;
|
|
2456
|
-
var xc =
|
|
2457
|
-
|
|
2458
|
-
let r =
|
|
2459
|
-
var i = en(), a =
|
|
2456
|
+
var xc = g(bc);
|
|
2457
|
+
N(xc, 19, () => F(G).lines, (e, t) => e.label + t, (e, t, n) => {
|
|
2458
|
+
let r = j(() => F(t).style?.gradient ? `${Ai}-grad-${F(n)}` : null);
|
|
2459
|
+
var i = en(), a = g(i), o = (e) => {
|
|
2460
2460
|
var n = Jt();
|
|
2461
|
-
|
|
2462
|
-
D(n, "d",
|
|
2463
|
-
}),
|
|
2461
|
+
C(() => {
|
|
2462
|
+
D(n, "d", F(t).bandPath), D(n, "fill", F(t).color);
|
|
2463
|
+
}), m(e, n);
|
|
2464
2464
|
};
|
|
2465
|
-
|
|
2466
|
-
|
|
2465
|
+
h(a, (e) => {
|
|
2466
|
+
F(t).bandPath && e(o);
|
|
2467
2467
|
});
|
|
2468
2468
|
var s = w(a), c = (e) => {
|
|
2469
2469
|
var n = Yt();
|
|
2470
|
-
|
|
2471
|
-
D(n, "d",
|
|
2472
|
-
}),
|
|
2470
|
+
C(() => {
|
|
2471
|
+
D(n, "d", F(t).areaPath), D(n, "fill", F(r) ? `url(#${F(r)})` : F(Ni)[F(t).label] ?? F(t).color), D(n, "fill-opacity", F(r) ? .6 : F(t).range ? .35 : .15);
|
|
2472
|
+
}), m(e, n);
|
|
2473
2473
|
};
|
|
2474
|
-
|
|
2475
|
-
|
|
2474
|
+
h(s, (e) => {
|
|
2475
|
+
F(t).areaPath && e(c);
|
|
2476
2476
|
});
|
|
2477
2477
|
var l = w(s), u = w(l), d = (e) => {
|
|
2478
|
-
let n =
|
|
2479
|
-
var r =
|
|
2478
|
+
let n = j(() => F(t).points[F(ds) ?? -1]);
|
|
2479
|
+
var r = O(), i = T(r), a = (e) => {
|
|
2480
2480
|
var r = Xt();
|
|
2481
|
-
|
|
2482
|
-
D(r, "cx",
|
|
2483
|
-
}),
|
|
2481
|
+
C(() => {
|
|
2482
|
+
D(r, "cx", F(n).x), D(r, "cy", F(n).y), D(r, "fill", F(n).marker?.color ?? F(t).color);
|
|
2483
|
+
}), m(e, r);
|
|
2484
2484
|
};
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
}),
|
|
2485
|
+
h(i, (e) => {
|
|
2486
|
+
F(n)?.defined && e(a);
|
|
2487
|
+
}), m(e, r);
|
|
2488
2488
|
}, ee = (e) => {
|
|
2489
|
-
var n =
|
|
2490
|
-
|
|
2491
|
-
var i =
|
|
2492
|
-
let i =
|
|
2493
|
-
var s =
|
|
2489
|
+
var n = O(), r = T(n);
|
|
2490
|
+
N(r, 17, () => F(t).points, S, (e, n, r) => {
|
|
2491
|
+
var i = O(), a = T(i), o = (e) => {
|
|
2492
|
+
let i = j(() => F(n).marker?.shape ?? "circle"), a = j(() => (F(n).marker?.size ?? 3) + +(F(ds) === r)), o = j(() => F(n).marker?.color ?? F(t).color);
|
|
2493
|
+
var s = O(), c = T(s), l = (e) => {
|
|
2494
2494
|
var i = Zt();
|
|
2495
2495
|
let s;
|
|
2496
|
-
|
|
2497
|
-
s =
|
|
2496
|
+
C((e, t) => {
|
|
2497
|
+
s = P(i, 0, "sv-grid-chart-dot svelte-kvdein", null, s, e), D(i, "cx", F(n).x), D(i, "cy", F(n).y), D(i, "r", F(a)), D(i, "fill", F(o)), M(i, t);
|
|
2498
2498
|
}, [() => ({
|
|
2499
|
-
"is-active":
|
|
2500
|
-
"is-selected": Ro(
|
|
2501
|
-
}), () => `opacity:${zo(
|
|
2499
|
+
"is-active": F(ds) === r,
|
|
2500
|
+
"is-selected": Ro(F(n).label, F(t).label)
|
|
2501
|
+
}), () => `opacity:${zo(F(n).label, F(t).label)}`]), m(e, i);
|
|
2502
2502
|
}, u = (e) => {
|
|
2503
2503
|
var t = Qt();
|
|
2504
2504
|
let s;
|
|
2505
|
-
|
|
2506
|
-
s =
|
|
2507
|
-
}, [() => ie(
|
|
2505
|
+
C((e) => {
|
|
2506
|
+
s = P(t, 0, "sv-grid-chart-dot is-stroked svelte-kvdein", null, s, { "is-active": F(ds) === r }), D(t, "d", e), D(t, "stroke", F(o));
|
|
2507
|
+
}, [() => ie(F(i), F(n).x, F(n).y, F(a))]), m(e, t);
|
|
2508
2508
|
}, d = (e) => {
|
|
2509
2509
|
var t = $t();
|
|
2510
2510
|
let s;
|
|
2511
|
-
|
|
2512
|
-
s =
|
|
2513
|
-
}, [() => ie(
|
|
2511
|
+
C((e) => {
|
|
2512
|
+
s = P(t, 0, "sv-grid-chart-dot svelte-kvdein", null, s, { "is-active": F(ds) === r }), D(t, "d", e), D(t, "fill", F(o));
|
|
2513
|
+
}, [() => ie(F(i), F(n).x, F(n).y, F(a))]), m(e, t);
|
|
2514
2514
|
};
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
}),
|
|
2515
|
+
h(c, (e) => {
|
|
2516
|
+
F(i) === "circle" ? e(l) : F(i) === "cross" ? e(u, 1) : e(d, -1);
|
|
2517
|
+
}), m(e, s);
|
|
2518
2518
|
};
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
}),
|
|
2522
|
-
}),
|
|
2519
|
+
h(a, (e) => {
|
|
2520
|
+
F(n).defined && F(n).marker?.shape !== "none" && e(o);
|
|
2521
|
+
}), m(e, i);
|
|
2522
|
+
}), m(e, n);
|
|
2523
2523
|
};
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
}),
|
|
2527
|
-
|
|
2528
|
-
}, [() => `opacity:${J(
|
|
2524
|
+
h(u, (e) => {
|
|
2525
|
+
F(To) ? e(d) : e(ee, -1);
|
|
2526
|
+
}), E(i), C((e) => {
|
|
2527
|
+
M(i, e), D(l, "d", F(t).path), D(l, "stroke", F(t).color), D(l, "stroke-width", F(t).style?.strokeWidth ?? (F(t).range ? 1 : 2)), D(l, "stroke-dasharray", F(t).style?.dash);
|
|
2528
|
+
}, [() => `opacity:${J(F(t).label) * (F(t).style?.opacity ?? 1)}`]), m(e, i);
|
|
2529
2529
|
});
|
|
2530
2530
|
var Sc = w(xc), Cc = (e) => {
|
|
2531
|
-
var t =
|
|
2532
|
-
|
|
2531
|
+
var t = O(), n = T(t);
|
|
2532
|
+
ue(n, () => f.underlay, () => F(fo)), m(e, t);
|
|
2533
2533
|
};
|
|
2534
|
-
|
|
2534
|
+
h(Sc, (e) => {
|
|
2535
2535
|
f.underlay && e(Cc);
|
|
2536
2536
|
});
|
|
2537
2537
|
var wc = w(Sc);
|
|
2538
|
-
|
|
2538
|
+
N(wc, 17, () => F(G).bars, S, (e, t) => {
|
|
2539
2539
|
var n = tn();
|
|
2540
2540
|
let r;
|
|
2541
|
-
|
|
2542
|
-
r =
|
|
2541
|
+
C((e, i, a) => {
|
|
2542
|
+
r = P(n, 0, "sv-grid-chart-bar svelte-kvdein", null, r, e), D(n, "x", F(t).x), D(n, "y", F(t).y), D(n, "width", F(t).w), D(n, "height", F(t).h), D(n, "fill", i), M(n, a);
|
|
2543
2543
|
}, [
|
|
2544
|
-
() => ({ "is-selected": Ro(
|
|
2545
|
-
() =>
|
|
2546
|
-
() => `opacity:${J(
|
|
2547
|
-
]),
|
|
2548
|
-
(
|
|
2549
|
-
e.stopPropagation(), Ms(
|
|
2544
|
+
() => ({ "is-selected": Ro(F(t).label, F(t).series, F(t).index) }),
|
|
2545
|
+
() => F(Ni)[F(t).series]?.startsWith("url(") ? F(Ni)[F(t).series] : F(t).color,
|
|
2546
|
+
() => `opacity:${J(F(t).series) * (F(t).opacity ?? 1) * zo(F(t).label, F(t).series, F(t).index)}`
|
|
2547
|
+
]), _("click", n, function(...e) {
|
|
2548
|
+
(F(Y) ? (e) => {
|
|
2549
|
+
e.stopPropagation(), Ms(F(t).label, F(t).series, F(t).value, F(t).index, e);
|
|
2550
2550
|
} : void 0)?.apply(this, e);
|
|
2551
|
-
}),
|
|
2551
|
+
}), m(e, n);
|
|
2552
2552
|
});
|
|
2553
2553
|
var Tc = w(wc);
|
|
2554
|
-
|
|
2555
|
-
var n = rn(), r =
|
|
2554
|
+
N(Tc, 17, () => F(G).stems, S, (e, t) => {
|
|
2555
|
+
var n = rn(), r = g(n), i = w(r), a = (e) => {
|
|
2556
2556
|
var n = nn();
|
|
2557
|
-
|
|
2558
|
-
D(n, "cx",
|
|
2559
|
-
}),
|
|
2557
|
+
C(() => {
|
|
2558
|
+
D(n, "cx", F(t).xCenter), D(n, "cy", F(t).y0), D(n, "r", F(t).r), D(n, "fill", F(t).color2 ?? F(t).color), D(n, "stroke", F(t).color2 ?? F(t).color);
|
|
2559
|
+
}), m(e, n);
|
|
2560
2560
|
};
|
|
2561
|
-
|
|
2562
|
-
|
|
2561
|
+
h(i, (e) => {
|
|
2562
|
+
F(t).dumbbell && e(a);
|
|
2563
2563
|
});
|
|
2564
2564
|
var o = w(i);
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
}, [() => `opacity:${J(
|
|
2565
|
+
E(n), C((e) => {
|
|
2566
|
+
M(n, e), D(r, "x1", F(t).xCenter), D(r, "y1", F(t).y0), D(r, "x2", F(t).xCenter), D(r, "y2", F(t).y1), D(r, "stroke", F(t).dumbbell ? "var(--sg-muted, #94a3b8)" : F(t).color), D(r, "stroke-width", F(t).dumbbell ? 2 : 1.5), D(o, "cx", F(t).xCenter), D(o, "cy", F(t).y1), D(o, "r", F(t).r), D(o, "fill", F(t).color);
|
|
2567
|
+
}, [() => `opacity:${J(F(t).series)}`]), _("mousemove", n, (e) => ks(e.clientX, e.clientY, F(t))), x("mouseleave", n, Q), m(e, n);
|
|
2568
2568
|
});
|
|
2569
2569
|
var Ec = w(Tc);
|
|
2570
|
-
|
|
2571
|
-
var n =
|
|
2572
|
-
var n = an(), r =
|
|
2573
|
-
|
|
2574
|
-
D(r, "x1",
|
|
2570
|
+
N(Ec, 17, () => F(G).candles, S, (e, t) => {
|
|
2571
|
+
var n = O(), r = T(n), i = (e) => {
|
|
2572
|
+
var n = an(), r = T(n), i = w(r), a = w(i);
|
|
2573
|
+
C((e, n, o) => {
|
|
2574
|
+
D(r, "x1", F(t).xCenter), D(r, "y1", F(t).yHigh), D(r, "x2", F(t).xCenter), D(r, "y2", F(t).yLow), D(r, "stroke", F(t).color), M(r, e), D(i, "x1", F(t).x), D(i, "y1", F(t).yOpen), D(i, "x2", F(t).xCenter), D(i, "y2", F(t).yOpen), D(i, "stroke", F(t).color), M(i, n), D(a, "x1", F(t).xCenter), D(a, "y1", F(t).yClose), D(a, "x2", F(t).x + F(t).w), D(a, "y2", F(t).yClose), D(a, "stroke", F(t).color), M(a, o);
|
|
2575
2575
|
}, [
|
|
2576
|
-
() => `opacity:${J(
|
|
2577
|
-
() => `opacity:${J(
|
|
2578
|
-
() => `opacity:${J(
|
|
2579
|
-
]),
|
|
2576
|
+
() => `opacity:${J(F(t).series)}`,
|
|
2577
|
+
() => `opacity:${J(F(t).series)}`,
|
|
2578
|
+
() => `opacity:${J(F(t).series)}`
|
|
2579
|
+
]), m(e, n);
|
|
2580
2580
|
}, a = (e) => {
|
|
2581
|
-
var n = on(), r =
|
|
2582
|
-
|
|
2583
|
-
D(r, "x1",
|
|
2584
|
-
}, [() => `opacity:${J(
|
|
2581
|
+
var n = on(), r = T(n), i = w(r);
|
|
2582
|
+
C((e, n) => {
|
|
2583
|
+
D(r, "x1", F(t).xCenter), D(r, "y1", F(t).yHigh), D(r, "x2", F(t).xCenter), D(r, "y2", F(t).yLow), D(r, "stroke", F(t).color), M(r, e), D(i, "x", F(t).x), D(i, "y", F(t).bodyY), D(i, "width", F(t).w), D(i, "height", F(t).bodyH), D(i, "fill", F(t).hollow ? "none" : F(t).color), D(i, "stroke", F(t).color), M(i, n);
|
|
2584
|
+
}, [() => `opacity:${J(F(t).series)}`, () => `opacity:${J(F(t).series)}`]), m(e, n);
|
|
2585
2585
|
};
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
}),
|
|
2586
|
+
h(r, (e) => {
|
|
2587
|
+
F(ja) ? e(i) : e(a, -1);
|
|
2588
|
+
}), m(e, n);
|
|
2589
2589
|
});
|
|
2590
2590
|
var Dc = w(Ec);
|
|
2591
|
-
|
|
2592
|
-
var n = cn(), r =
|
|
2593
|
-
|
|
2591
|
+
N(Dc, 17, () => F(G).boxes, S, (e, t) => {
|
|
2592
|
+
var n = cn(), r = T(n), i = w(r), a = w(i), o = w(a), s = w(o), c = w(s);
|
|
2593
|
+
N(c, 17, () => F(t).outliers, S, (e, n) => {
|
|
2594
2594
|
var r = sn();
|
|
2595
|
-
|
|
2596
|
-
D(r, "cx",
|
|
2597
|
-
}, [() => `opacity:${J(
|
|
2598
|
-
}),
|
|
2599
|
-
D(r, "x1",
|
|
2595
|
+
C((e) => {
|
|
2596
|
+
D(r, "cx", F(t).xCenter), D(r, "cy", F(n).y), D(r, "stroke", F(t).color), M(r, e);
|
|
2597
|
+
}, [() => `opacity:${J(F(t).series)}`]), m(e, r);
|
|
2598
|
+
}), C((e, n, c, l, u) => {
|
|
2599
|
+
D(r, "x1", F(t).xCenter), D(r, "y1", F(t).yMax), D(r, "x2", F(t).xCenter), D(r, "y2", F(t).yMin), D(r, "stroke", F(t).color), M(r, e), D(i, "x1", F(t).x + F(t).w * .25), D(i, "y1", F(t).yMax), D(i, "x2", F(t).x + F(t).w * .75), D(i, "y2", F(t).yMax), D(i, "stroke", F(t).color), M(i, n), D(a, "x1", F(t).x + F(t).w * .25), D(a, "y1", F(t).yMin), D(a, "x2", F(t).x + F(t).w * .75), D(a, "y2", F(t).yMin), D(a, "stroke", F(t).color), M(a, c), D(o, "x", F(t).x), D(o, "y", F(t).boxY), D(o, "width", F(t).w), D(o, "height", F(t).boxH), D(o, "fill", F(t).color), D(o, "stroke", F(t).color), M(o, l), D(s, "x1", F(t).x), D(s, "y1", F(t).yMedian), D(s, "x2", F(t).x + F(t).w), D(s, "y2", F(t).yMedian), D(s, "stroke", F(t).color), M(s, u);
|
|
2600
2600
|
}, [
|
|
2601
|
-
() => `opacity:${J(
|
|
2602
|
-
() => `opacity:${J(
|
|
2603
|
-
() => `opacity:${J(
|
|
2604
|
-
() => `opacity:${J(
|
|
2605
|
-
() => `opacity:${J(
|
|
2606
|
-
]),
|
|
2601
|
+
() => `opacity:${J(F(t).series)}`,
|
|
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
|
+
]), m(e, n);
|
|
2607
2607
|
});
|
|
2608
2608
|
var Oc = w(Dc);
|
|
2609
|
-
|
|
2610
|
-
var n = ln(), r =
|
|
2611
|
-
|
|
2612
|
-
D(r, "x1",
|
|
2609
|
+
N(Oc, 17, () => F(G).errorBars, S, (e, t) => {
|
|
2610
|
+
var n = ln(), r = T(n), i = w(r), a = w(i);
|
|
2611
|
+
C((e, n, o) => {
|
|
2612
|
+
D(r, "x1", F(t).xCenter), D(r, "y1", F(t).yHi), D(r, "x2", F(t).xCenter), D(r, "y2", F(t).yLo), D(r, "stroke", F(t).color), M(r, e), D(i, "x1", F(t).xCenter - F(t).cap), D(i, "y1", F(t).yHi), D(i, "x2", F(t).xCenter + F(t).cap), D(i, "y2", F(t).yHi), D(i, "stroke", F(t).color), M(i, n), D(a, "x1", F(t).xCenter - F(t).cap), D(a, "y1", F(t).yLo), D(a, "x2", F(t).xCenter + F(t).cap), D(a, "y2", F(t).yLo), D(a, "stroke", F(t).color), M(a, o);
|
|
2613
2613
|
}, [
|
|
2614
|
-
() => `opacity:${J(
|
|
2615
|
-
() => `opacity:${J(
|
|
2616
|
-
() => `opacity:${J(
|
|
2617
|
-
]),
|
|
2614
|
+
() => `opacity:${J(F(t).series)}`,
|
|
2615
|
+
() => `opacity:${J(F(t).series)}`,
|
|
2616
|
+
() => `opacity:${J(F(t).series)}`
|
|
2617
|
+
]), m(e, n);
|
|
2618
2618
|
});
|
|
2619
2619
|
var kc = w(Oc);
|
|
2620
|
-
|
|
2620
|
+
N(kc, 17, () => F(G).scatterPoints, S, (e, t, n) => {
|
|
2621
2621
|
var r = un();
|
|
2622
2622
|
let i;
|
|
2623
|
-
|
|
2624
|
-
i =
|
|
2623
|
+
C((e, n, a, o) => {
|
|
2624
|
+
i = P(r, 0, "sv-grid-chart-scatter svelte-kvdein", null, i, e), D(r, "cx", F(t).cx), D(r, "cy", F(t).cy), D(r, "r", F(t).r), D(r, "fill", F(t).color), D(r, "stroke", F(t).color), M(r, n), D(r, "role", F(Y) || f.onSelect ? "button" : "img"), D(r, "tabindex", a), D(r, "aria-label", o);
|
|
2625
2625
|
}, [
|
|
2626
|
-
() => ({ "is-selected": Ro(
|
|
2627
|
-
() => `opacity:${J(
|
|
2626
|
+
() => ({ "is-selected": Ro(F(t).label || F(t).series, F(t).series, n) }),
|
|
2627
|
+
() => `opacity:${J(F(t).series) * zo(F(t).label || F(t).series, F(t).series, n)}`,
|
|
2628
2628
|
() => Is(".sv-grid-chart-scatter", n),
|
|
2629
|
-
() => `${
|
|
2630
|
-
]),
|
|
2631
|
-
(
|
|
2632
|
-
e.stopPropagation(), Ms(
|
|
2629
|
+
() => `${F(t).label || F(t).series}: ${V(F(t).x)}, ${V(F(t).y)}`
|
|
2630
|
+
]), _("mousemove", r, (e) => Cs(e.clientX, e.clientY, F(t))), x("mouseleave", r, Q), _("click", r, function(...e) {
|
|
2631
|
+
(F(Y) || f.onSelect ? (e) => {
|
|
2632
|
+
e.stopPropagation(), Ms(F(t).label || F(t).series, F(t).series, F(t).y, n, e);
|
|
2633
2633
|
} : void 0)?.apply(this, e);
|
|
2634
|
-
}),
|
|
2634
|
+
}), x("focus", r, (e) => {
|
|
2635
2635
|
Ls(".sv-grid-chart-scatter", n);
|
|
2636
2636
|
let r = zs(e.currentTarget);
|
|
2637
|
-
Cs(r.x, r.y,
|
|
2638
|
-
}),
|
|
2639
|
-
}),
|
|
2637
|
+
Cs(r.x, r.y, F(t));
|
|
2638
|
+
}), x("blur", r, Q), _("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);
|
|
2639
|
+
}), E(bc);
|
|
2640
2640
|
var Ac = w(bc);
|
|
2641
|
-
|
|
2642
|
-
var n = pn(), r =
|
|
2643
|
-
let n =
|
|
2644
|
-
var r = dn(), i =
|
|
2645
|
-
|
|
2646
|
-
D(i, "x",
|
|
2647
|
-
}),
|
|
2641
|
+
N(Ac, 17, () => F(G).referenceLines, S, (e, t) => {
|
|
2642
|
+
var n = pn(), r = T(n), i = w(r), a = (e) => {
|
|
2643
|
+
let n = j(() => Math.max(28, F(t).label.length * 6.4 + 10));
|
|
2644
|
+
var r = dn(), i = g(r), a = w(i), o = g(a, !0);
|
|
2645
|
+
E(a), E(r), C(() => {
|
|
2646
|
+
D(i, "x", F(G).plot.x + F(G).plot.w - F(n)), D(i, "y", F(t).y - 8), D(i, "width", F(n)), D(i, "fill", F(t).color), D(a, "x", F(G).plot.x + F(G).plot.w - F(n) / 2), D(a, "y", F(t).y + 3.5), k(o, F(t).label);
|
|
2647
|
+
}), m(e, r);
|
|
2648
2648
|
}, o = (e) => {
|
|
2649
|
-
var n = fn(), r =
|
|
2650
|
-
|
|
2651
|
-
D(n, "x",
|
|
2652
|
-
}),
|
|
2649
|
+
var n = fn(), r = g(n, !0);
|
|
2650
|
+
E(n), C(() => {
|
|
2651
|
+
D(n, "x", F(G).plot.x + F(G).plot.w - 3), D(n, "y", F(t).y - 3), D(n, "fill", F(t).color), k(r, F(t).label);
|
|
2652
|
+
}), m(e, n);
|
|
2653
2653
|
};
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
}),
|
|
2657
|
-
D(r, "x1",
|
|
2658
|
-
}),
|
|
2654
|
+
h(i, (e) => {
|
|
2655
|
+
F(t).pill ? e(a) : e(o, -1);
|
|
2656
|
+
}), C(() => {
|
|
2657
|
+
D(r, "x1", F(G).plot.x), D(r, "y1", F(t).y), D(r, "x2", F(G).plot.x + F(G).plot.w), D(r, "y2", F(t).y), D(r, "stroke", F(t).color), D(r, "stroke-dasharray", F(t).dashed ? "5 4" : void 0);
|
|
2658
|
+
}), m(e, n);
|
|
2659
2659
|
});
|
|
2660
2660
|
var jc = w(Ac);
|
|
2661
|
-
|
|
2662
|
-
var n = mn(), r =
|
|
2663
|
-
|
|
2664
|
-
D(r, "x1",
|
|
2665
|
-
}),
|
|
2661
|
+
N(jc, 17, () => F(G).referenceLinesV, S, (e, t) => {
|
|
2662
|
+
var n = mn(), r = T(n), i = w(r), a = g(i, !0);
|
|
2663
|
+
E(i), C(() => {
|
|
2664
|
+
D(r, "x1", F(t).x), D(r, "y1", F(G).plot.y), D(r, "x2", F(t).x), D(r, "y2", F(G).plot.y + F(G).plot.h), D(r, "stroke", F(t).color), D(r, "stroke-dasharray", F(t).dashed ? "5 4" : void 0), D(i, "x", F(t).x + 3), D(i, "y", F(G).plot.y + 9), D(i, "fill", F(t).color), k(a, F(t).label);
|
|
2665
|
+
}), m(e, n);
|
|
2666
2666
|
});
|
|
2667
2667
|
var Mc = w(jc);
|
|
2668
2668
|
let i;
|
|
2669
|
-
|
|
2670
|
-
var n = gn(), r =
|
|
2669
|
+
N(Mc, 23, () => F(G).overlays, (e, t) => e.label + t, (e, t) => {
|
|
2670
|
+
var n = gn(), r = T(n), i = (e) => {
|
|
2671
2671
|
var n = hn();
|
|
2672
|
-
|
|
2673
|
-
D(n, "d",
|
|
2674
|
-
}),
|
|
2672
|
+
C(() => {
|
|
2673
|
+
D(n, "d", F(t).bandPath), D(n, "fill", F(t).color), D(n, "stroke", F(t).color);
|
|
2674
|
+
}), m(e, n);
|
|
2675
2675
|
};
|
|
2676
|
-
|
|
2677
|
-
|
|
2676
|
+
h(r, (e) => {
|
|
2677
|
+
F(t).bandPath && e(i);
|
|
2678
2678
|
});
|
|
2679
2679
|
var a = w(r);
|
|
2680
|
-
|
|
2681
|
-
D(a, "d",
|
|
2682
|
-
}),
|
|
2683
|
-
}),
|
|
2680
|
+
C(() => {
|
|
2681
|
+
D(a, "d", F(t).path), D(a, "stroke", F(t).color);
|
|
2682
|
+
}), m(e, n);
|
|
2683
|
+
}), E(Mc);
|
|
2684
2684
|
var Nc = w(Mc);
|
|
2685
|
-
|
|
2686
|
-
var n = vn(), r =
|
|
2685
|
+
N(Nc, 17, () => F(Do), S, (e, t) => {
|
|
2686
|
+
var n = vn(), r = T(n), i = (e) => {
|
|
2687
2687
|
var n = _n();
|
|
2688
|
-
|
|
2689
|
-
D(n, "x1",
|
|
2690
|
-
}, [() => `opacity:${J(
|
|
2688
|
+
C((e) => {
|
|
2689
|
+
D(n, "x1", F(t).leader.x1), D(n, "y1", F(t).leader.y1), D(n, "x2", F(t).leader.x2), D(n, "y2", F(t).leader.y2), M(n, e);
|
|
2690
|
+
}, [() => `opacity:${J(F(t).series)}`]), m(e, n);
|
|
2691
2691
|
};
|
|
2692
|
-
|
|
2693
|
-
|
|
2692
|
+
h(r, (e) => {
|
|
2693
|
+
F(t).leader && e(i);
|
|
2694
2694
|
});
|
|
2695
2695
|
var a = w(r);
|
|
2696
2696
|
let o;
|
|
2697
|
-
var s =
|
|
2698
|
-
|
|
2699
|
-
o =
|
|
2700
|
-
}, [() => `opacity:${J(
|
|
2697
|
+
var s = g(a, !0);
|
|
2698
|
+
E(a), C((e) => {
|
|
2699
|
+
o = P(a, 0, "sv-grid-chart-datalabel svelte-kvdein", null, o, { "on-bar": F(t).onBar }), D(a, "x", F(t).x), D(a, "y", F(t).y), D(a, "text-anchor", F(t).anchor), D(a, "transform", F(t).angle ? `rotate(${F(t).angle} ${F(t).x} ${F(t).y})` : void 0), M(a, e), k(s, F(t).text);
|
|
2700
|
+
}, [() => `opacity:${J(F(t).series)}`]), m(e, n);
|
|
2701
2701
|
});
|
|
2702
2702
|
var Pc = w(Nc);
|
|
2703
|
-
|
|
2704
|
-
var n = yn(), r =
|
|
2705
|
-
|
|
2706
|
-
D(n, "x",
|
|
2707
|
-
}, [() => `opacity:${J(
|
|
2703
|
+
N(Pc, 17, () => F(G).seriesLabels, (e) => e.series, (e, t) => {
|
|
2704
|
+
var n = yn(), r = g(n, !0);
|
|
2705
|
+
E(n), C((e) => {
|
|
2706
|
+
D(n, "x", F(t).x), D(n, "y", F(t).y + 3.5), D(n, "fill", F(t).color), M(n, e), k(r, F(t).text);
|
|
2707
|
+
}, [() => `opacity:${J(F(t).series)}`]), m(e, n);
|
|
2708
2708
|
});
|
|
2709
2709
|
var Fc = w(Pc), Ic = (e) => {
|
|
2710
|
-
var t =
|
|
2711
|
-
|
|
2710
|
+
var t = O(), n = T(t);
|
|
2711
|
+
ue(n, () => f.overlay, () => F(fo)), m(e, t);
|
|
2712
2712
|
};
|
|
2713
|
-
|
|
2713
|
+
h(Fc, (e) => {
|
|
2714
2714
|
f.overlay && e(Ic);
|
|
2715
2715
|
});
|
|
2716
2716
|
var Lc = w(Fc);
|
|
2717
|
-
|
|
2718
|
-
let r =
|
|
2717
|
+
N(Lc, 19, () => F(G).annotations, (e, t) => e.label + t, (e, t, n) => {
|
|
2718
|
+
let r = j(() => F(t).placement === "left" ? -8 : F(t).placement === "right" ? 8 : 0), i = j(() => F(t).placement === "bottom" ? 14 : F(t).placement === "top" ? -8 : 0), a = j(() => F(t).placement === "left" ? "end" : F(t).placement === "right" ? "start" : "middle"), o = j(() => F(xi) && !!f.onAnnotationRemove), s = j(() => Math.max(14, F(t).label.length * 6.2 + 8));
|
|
2719
2719
|
var c = wn();
|
|
2720
2720
|
let l;
|
|
2721
|
-
var u =
|
|
2722
|
-
var n = bn(), r =
|
|
2723
|
-
|
|
2724
|
-
D(r, "x1",
|
|
2725
|
-
}),
|
|
2721
|
+
var u = g(c), d = (e) => {
|
|
2722
|
+
var n = bn(), r = T(n), i = w(r), a = w(i), o = g(a, !0);
|
|
2723
|
+
E(a), C(() => {
|
|
2724
|
+
D(r, "x1", F(t).x), D(r, "y1", F(t).y), D(r, "x2", F(t).x), D(r, "y2", F(t).y - 24), D(r, "stroke", F(t).color), D(i, "x", F(t).x), D(i, "y", F(t).y - 24), D(i, "width", F(s)), D(i, "fill", F(t).color), D(a, "x", F(t).x + F(s) / 2), D(a, "y", F(t).y - 14.5), k(o, F(t).label);
|
|
2725
|
+
}), m(e, n);
|
|
2726
2726
|
}, ee = (e) => {
|
|
2727
|
-
var n = xn(), o =
|
|
2728
|
-
|
|
2729
|
-
var l = w(s), u =
|
|
2730
|
-
|
|
2731
|
-
D(o, "d", `M${
|
|
2732
|
-
}, [() =>
|
|
2727
|
+
var n = xn(), o = T(n), s = w(o), c = g(s, !0);
|
|
2728
|
+
E(s);
|
|
2729
|
+
var l = w(s), u = g(l, !0);
|
|
2730
|
+
E(l), C((e) => {
|
|
2731
|
+
D(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`), D(o, "fill", F(t).color), D(s, "x", F(t).x), D(s, "y", F(t).y - 12.5), k(c, e), D(l, "x", F(t).x + F(r)), D(l, "y", F(t).y + F(i)), D(l, "text-anchor", F(a)), D(l, "fill", F(t).color), k(u, F(t).label);
|
|
2732
|
+
}, [() => F(t).label.slice(0, 1)]), m(e, n);
|
|
2733
2733
|
}, te = (e) => {
|
|
2734
|
-
var n = Sn(), o =
|
|
2735
|
-
|
|
2736
|
-
D(o, "x",
|
|
2737
|
-
}),
|
|
2734
|
+
var n = Sn(), o = T(n), s = w(o), c = g(s, !0);
|
|
2735
|
+
E(s), C(() => {
|
|
2736
|
+
D(o, "x", F(t).x - 4.5), D(o, "y", F(t).y - 4.5), D(o, "fill", F(t).color), D(s, "x", F(t).x + F(r)), D(s, "y", F(t).y + F(i)), D(s, "text-anchor", F(a)), D(s, "fill", F(t).color), k(c, F(t).label);
|
|
2737
|
+
}), m(e, n);
|
|
2738
2738
|
}, ne = (e) => {
|
|
2739
|
-
var n = Cn(), s =
|
|
2740
|
-
|
|
2741
|
-
D(s, "cx",
|
|
2742
|
-
}),
|
|
2739
|
+
var n = Cn(), s = T(n), c = w(s), l = g(c, !0);
|
|
2740
|
+
E(c), C(() => {
|
|
2741
|
+
D(s, "cx", F(t).x), D(s, "cy", F(t).y), D(s, "r", F(o) ? 6 : 4), D(s, "fill", F(t).color), D(c, "x", F(t).x + F(r)), D(c, "y", F(t).y + F(i)), D(c, "text-anchor", F(a)), D(c, "fill", F(t).color), k(l, F(t).label);
|
|
2742
|
+
}), m(e, n);
|
|
2743
2743
|
};
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
}),
|
|
2747
|
-
l =
|
|
2748
|
-
"is-removable":
|
|
2749
|
-
"has-text": !!
|
|
2750
|
-
}), D(c, "role",
|
|
2751
|
-
}, [() =>
|
|
2752
|
-
!
|
|
2753
|
-
}),
|
|
2754
|
-
!
|
|
2755
|
-
}),
|
|
2756
|
-
|
|
2757
|
-
}),
|
|
2758
|
-
|
|
2759
|
-
}),
|
|
2760
|
-
if (!
|
|
2761
|
-
let e =
|
|
2762
|
-
Z(e.left +
|
|
2763
|
-
}),
|
|
2764
|
-
|
|
2765
|
-
}),
|
|
2744
|
+
h(u, (e) => {
|
|
2745
|
+
F(t).shape === "flag" ? e(d) : F(t).shape === "pin" ? e(ee, 1) : F(t).shape === "square" ? e(te, 2) : e(ne, -1);
|
|
2746
|
+
}), E(c), C((e) => {
|
|
2747
|
+
l = P(c, 0, "sv-grid-chart-annotation-marker svelte-kvdein", null, l, {
|
|
2748
|
+
"is-removable": F(o),
|
|
2749
|
+
"has-text": !!F(t).text
|
|
2750
|
+
}), D(c, "role", F(o) ? "button" : F(t).text ? "img" : void 0), D(c, "tabindex", F(o) || F(t).text ? 0 : void 0), D(c, "aria-label", e);
|
|
2751
|
+
}, [() => F(o) ? et(F(z).removeNote, { label: F(t).label }) : F(t).text ? `${F(t).label}: ${F(t).text}` : void 0]), _("click", c, (e) => {
|
|
2752
|
+
!F(xi) || !f.onAnnotationRemove || (e.stopPropagation(), f.onAnnotationRemove(F(n)));
|
|
2753
|
+
}), _("keydown", c, (e) => {
|
|
2754
|
+
!F(xi) || !f.onAnnotationRemove || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), f.onAnnotationRemove(F(n)));
|
|
2755
|
+
}), x("mouseenter", c, (e) => {
|
|
2756
|
+
F(t).text && Z(e.clientX, e.clientY, F(t).label, [{ value: F(t).text }]);
|
|
2757
|
+
}), x("mouseleave", c, () => {
|
|
2758
|
+
F(t).text && b(ls, null);
|
|
2759
|
+
}), x("focus", c, () => {
|
|
2760
|
+
if (!F(t).text || !F(Xi)) return;
|
|
2761
|
+
let e = F(Xi).getBoundingClientRect();
|
|
2762
|
+
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 }]);
|
|
2763
|
+
}), x("blur", c, () => {
|
|
2764
|
+
F(t).text && b(ls, null);
|
|
2765
|
+
}), m(e, c);
|
|
2766
2766
|
});
|
|
2767
2767
|
var Rc = w(Lc), zc = (e) => {
|
|
2768
|
-
var t = Ln(), n =
|
|
2769
|
-
|
|
2770
|
-
let n =
|
|
2768
|
+
var t = Ln(), n = g(t);
|
|
2769
|
+
N(n, 17, () => F(G).drawings, (e) => e.id, (e, t) => {
|
|
2770
|
+
let n = j(() => F(t).points[0]), r = j(() => F(t).points[1]), i = j(() => F(da) === F(t).id);
|
|
2771
2771
|
var a = Nn();
|
|
2772
2772
|
let o;
|
|
2773
|
-
var s =
|
|
2774
|
-
let i =
|
|
2775
|
-
var a = En(), o =
|
|
2773
|
+
var s = g(a), c = (e) => {
|
|
2774
|
+
let i = j(() => Math.atan2(F(r).y - F(n).y, F(r).x - F(n).x));
|
|
2775
|
+
var a = En(), o = T(a), s = w(o), c = w(s), l = (e) => {
|
|
2776
2776
|
var n = Tn();
|
|
2777
|
-
|
|
2778
|
-
D(n, "d", e), D(n, "fill",
|
|
2779
|
-
}, [() => `M${
|
|
2777
|
+
C((e) => {
|
|
2778
|
+
D(n, "d", e), D(n, "fill", F(t).color);
|
|
2779
|
+
}, [() => `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);
|
|
2780
2780
|
};
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
}),
|
|
2784
|
-
D(o, "x1",
|
|
2785
|
-
}),
|
|
2781
|
+
h(c, (e) => {
|
|
2782
|
+
F(t).kind === "arrow" && e(l);
|
|
2783
|
+
}), C(() => {
|
|
2784
|
+
D(o, "x1", F(n).x), D(o, "y1", F(n).y), D(o, "x2", F(r).x), D(o, "y2", F(r).y), D(s, "x1", F(n).x), D(s, "y1", F(n).y), D(s, "x2", F(r).x), D(s, "y2", F(r).y), D(s, "stroke", F(t).color);
|
|
2785
|
+
}), m(e, a);
|
|
2786
2786
|
}, l = (e) => {
|
|
2787
2787
|
var i = Dn();
|
|
2788
|
-
|
|
2789
|
-
D(i, "x", e), D(i, "y", n), D(i, "width", r), D(i, "height", a), D(i, "fill",
|
|
2788
|
+
C((e, n, r, a) => {
|
|
2789
|
+
D(i, "x", e), D(i, "y", n), D(i, "width", r), D(i, "height", a), D(i, "fill", F(t).color), D(i, "stroke", F(t).color);
|
|
2790
2790
|
}, [
|
|
2791
|
-
() => Math.min(
|
|
2792
|
-
() => Math.min(
|
|
2793
|
-
() => Math.abs(
|
|
2794
|
-
() => Math.abs(
|
|
2795
|
-
]),
|
|
2791
|
+
() => Math.min(F(n).x, F(r).x),
|
|
2792
|
+
() => Math.min(F(n).y, F(r).y),
|
|
2793
|
+
() => Math.abs(F(r).x - F(n).x),
|
|
2794
|
+
() => Math.abs(F(r).y - F(n).y)
|
|
2795
|
+
]), m(e, i);
|
|
2796
2796
|
}, u = (e) => {
|
|
2797
|
-
var r = On(), i =
|
|
2798
|
-
|
|
2799
|
-
D(i, "x1",
|
|
2800
|
-
}),
|
|
2797
|
+
var r = On(), i = T(r), a = w(i), o = w(a), s = g(o, !0);
|
|
2798
|
+
E(o), C(() => {
|
|
2799
|
+
D(i, "x1", F(n).x), D(i, "y1", F(n).y), D(i, "x2", F(G).plot.x + F(G).plot.w), D(i, "y2", F(n).y), D(a, "x1", F(n).x), D(a, "y1", F(n).y), D(a, "x2", F(G).plot.x + F(G).plot.w), D(a, "y2", F(n).y), D(a, "stroke", F(t).color), D(o, "x", F(G).plot.x + F(G).plot.w - 3), D(o, "y", F(n).y - 3), D(o, "fill", F(t).color), k(s, F(t).label);
|
|
2800
|
+
}), m(e, r);
|
|
2801
2801
|
}, d = (e) => {
|
|
2802
|
-
let i =
|
|
2803
|
-
var o = An(), s =
|
|
2804
|
-
|
|
2805
|
-
var r = kn(), o =
|
|
2806
|
-
|
|
2807
|
-
D(o, "x1",
|
|
2808
|
-
}),
|
|
2802
|
+
let i = j(() => Math.min(F(n).x, F(r).x)), a = j(() => Math.max(F(n).x, F(r).x));
|
|
2803
|
+
var o = An(), s = T(o);
|
|
2804
|
+
N(s, 17, () => F(t).levels, (e) => e.ratio, (e, n) => {
|
|
2805
|
+
var r = kn(), o = T(r), s = w(o), c = g(s, !0);
|
|
2806
|
+
E(s), C(() => {
|
|
2807
|
+
D(o, "x1", F(i)), D(o, "y1", F(n).y), D(o, "x2", F(a)), D(o, "y2", F(n).y), D(o, "stroke", F(t).color), D(o, "stroke-dasharray", F(n).ratio === 0 || F(n).ratio === 1 ? void 0 : "3 3"), D(s, "x", F(i) + 3), D(s, "y", F(n).y - 2), D(s, "fill", F(t).color), k(c, F(n).label);
|
|
2808
|
+
}), m(e, r);
|
|
2809
2809
|
});
|
|
2810
2810
|
var c = w(s);
|
|
2811
|
-
|
|
2812
|
-
D(c, "x",
|
|
2813
|
-
}, [() => Math.min(
|
|
2811
|
+
C((e, t) => {
|
|
2812
|
+
D(c, "x", F(i)), D(c, "y", e), D(c, "width", F(a) - F(i)), D(c, "height", t);
|
|
2813
|
+
}, [() => Math.min(F(n).y, F(r).y), () => Math.abs(F(r).y - F(n).y)]), m(e, o);
|
|
2814
2814
|
}, ee = (e) => {
|
|
2815
|
-
var r = jn(), i =
|
|
2816
|
-
|
|
2817
|
-
D(r, "x",
|
|
2818
|
-
}),
|
|
2815
|
+
var r = jn(), i = g(r, !0);
|
|
2816
|
+
E(r), C(() => {
|
|
2817
|
+
D(r, "x", F(n).x), D(r, "y", F(n).y), D(r, "fill", F(t).color), k(i, F(t).text ?? "");
|
|
2818
|
+
}), m(e, r);
|
|
2819
2819
|
};
|
|
2820
|
-
|
|
2821
|
-
(
|
|
2820
|
+
h(s, (e) => {
|
|
2821
|
+
(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);
|
|
2822
2822
|
});
|
|
2823
2823
|
var te = w(s), ne = (e) => {
|
|
2824
|
-
var n =
|
|
2825
|
-
|
|
2824
|
+
var n = O(), r = T(n);
|
|
2825
|
+
N(r, 17, () => F(t).points, S, (e, n, r) => {
|
|
2826
2826
|
var i = Mn();
|
|
2827
|
-
|
|
2828
|
-
D(i, "cx",
|
|
2829
|
-
}),
|
|
2830
|
-
e.stopPropagation(), e.preventDefault(),
|
|
2831
|
-
id:
|
|
2827
|
+
C(() => {
|
|
2828
|
+
D(i, "cx", F(n).x), D(i, "cy", F(n).y), D(i, "stroke", F(t).color);
|
|
2829
|
+
}), _("pointerdown", i, (e) => {
|
|
2830
|
+
e.stopPropagation(), e.preventDefault(), b(ha, {
|
|
2831
|
+
id: F(t).id,
|
|
2832
2832
|
index: r
|
|
2833
|
-
}, !0),
|
|
2834
|
-
}),
|
|
2835
|
-
}),
|
|
2833
|
+
}, !0), F(Xi)?.setPointerCapture?.(e.pointerId);
|
|
2834
|
+
}), m(e, i);
|
|
2835
|
+
}), m(e, n);
|
|
2836
2836
|
};
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
}),
|
|
2840
|
-
o =
|
|
2841
|
-
}, [() => Je() ? `${et(
|
|
2842
|
-
Je() && !
|
|
2843
|
-
}),
|
|
2844
|
-
Je() && Ta(e,
|
|
2845
|
-
}),
|
|
2837
|
+
h(te, (e) => {
|
|
2838
|
+
F(i) && Je() && e(ne);
|
|
2839
|
+
}), E(a), C((e) => {
|
|
2840
|
+
o = P(a, 0, `sv-grid-chart-drawing is-${F(t).kind}`, "svelte-kvdein", o, { "is-selected": F(i) }), D(a, "role", Je() ? "button" : void 0), D(a, "tabindex", Je() ? 0 : void 0), D(a, "aria-label", e);
|
|
2841
|
+
}, [() => Je() ? `${et(F(z).drawing, { tool: F(sa)[F(t).kind] })}${F(t).text ? `: ${F(t).text}` : ""}` : void 0]), _("click", a, (e) => {
|
|
2842
|
+
Je() && !F(la) && (e.stopPropagation(), b(da, F(i) ? null : F(t).id, !0));
|
|
2843
|
+
}), _("keydown", a, (e) => {
|
|
2844
|
+
Je() && Ta(e, F(t).id);
|
|
2845
|
+
}), m(e, a);
|
|
2846
2846
|
});
|
|
2847
2847
|
var r = w(n), i = (e) => {
|
|
2848
|
-
var t = In(), n =
|
|
2848
|
+
var t = In(), n = T(t), r = w(n), i = (e) => {
|
|
2849
2849
|
var t = Pn();
|
|
2850
|
-
|
|
2850
|
+
C((e, n, r, i) => {
|
|
2851
2851
|
D(t, "x", e), D(t, "y", n), D(t, "width", r), D(t, "height", i);
|
|
2852
2852
|
}, [
|
|
2853
|
-
() => Math.min(
|
|
2854
|
-
() => Math.min(
|
|
2855
|
-
() => Math.abs(
|
|
2856
|
-
() => Math.abs(
|
|
2857
|
-
]),
|
|
2853
|
+
() => Math.min(F(H).px, F(ua).x),
|
|
2854
|
+
() => Math.min(F(H).py, F(ua).y),
|
|
2855
|
+
() => Math.abs(F(ua).x - F(H).px),
|
|
2856
|
+
() => Math.abs(F(ua).y - F(H).py)
|
|
2857
|
+
]), m(e, t);
|
|
2858
2858
|
}, a = (e) => {
|
|
2859
2859
|
var t = Fn();
|
|
2860
|
-
|
|
2861
|
-
D(t, "x1",
|
|
2862
|
-
}),
|
|
2860
|
+
C(() => {
|
|
2861
|
+
D(t, "x1", F(H).px), D(t, "y1", F(H).py), D(t, "x2", F(ua).x), D(t, "y2", F(ua).y);
|
|
2862
|
+
}), m(e, t);
|
|
2863
2863
|
};
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
}),
|
|
2867
|
-
D(n, "cx",
|
|
2868
|
-
}),
|
|
2864
|
+
h(r, (e) => {
|
|
2865
|
+
F(la) === "rect" ? e(i) : e(a, -1);
|
|
2866
|
+
}), C(() => {
|
|
2867
|
+
D(n, "cx", F(H).px), D(n, "cy", F(H).py);
|
|
2868
|
+
}), m(e, t);
|
|
2869
2869
|
};
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
}),
|
|
2870
|
+
h(r, (e) => {
|
|
2871
|
+
F(H) && F(ua) && e(i);
|
|
2872
|
+
}), E(t), C(() => D(t, "clip-path", `url(#${Ai}-plot)`)), m(e, t);
|
|
2873
2873
|
};
|
|
2874
|
-
|
|
2875
|
-
(
|
|
2874
|
+
h(Rc, (e) => {
|
|
2875
|
+
(F(G).drawings.length || F(H)) && e(zc);
|
|
2876
2876
|
});
|
|
2877
2877
|
var Bc = w(Rc), Vc = (e) => {
|
|
2878
|
-
var t =
|
|
2879
|
-
let t =
|
|
2878
|
+
var t = O(), n = T(t), r = (e) => {
|
|
2879
|
+
let t = j(() => F(G).plot.y + F(wo) * F(ds) + F(wo) / 2);
|
|
2880
2880
|
var n = Rn();
|
|
2881
|
-
|
|
2882
|
-
D(n, "x1",
|
|
2883
|
-
}),
|
|
2881
|
+
C(() => {
|
|
2882
|
+
D(n, "x1", F(G).plot.x), D(n, "y1", F(t)), D(n, "x2", F(G).plot.x + F(G).plot.w), D(n, "y2", F(t));
|
|
2883
|
+
}), m(e, n);
|
|
2884
2884
|
}, i = (e) => {
|
|
2885
|
-
let t =
|
|
2886
|
-
var r = Vn(), i =
|
|
2887
|
-
let t =
|
|
2888
|
-
var i = Bn(), a =
|
|
2889
|
-
|
|
2885
|
+
let t = j(() => F(G).lines[0]?.points[F(ds)]), n = j(() => F(t) && Number.isFinite(F(t).x) ? F(t).x : F(G).plot.x + F(wo) * F(ds) + F(wo) / 2);
|
|
2886
|
+
var r = Vn(), i = T(r), a = w(i), o = (e) => {
|
|
2887
|
+
let t = j(() => as(F(ls)?.title ?? F(W).categories[F(ds)] ?? "", 16)), r = j(() => Math.max(24, F(t).length * 6.2 + 10));
|
|
2888
|
+
var i = Bn(), a = T(i), o = g(a), s = w(o), c = g(s, !0);
|
|
2889
|
+
E(s), E(a);
|
|
2890
2890
|
var l = w(a), u = (e) => {
|
|
2891
|
-
let t =
|
|
2892
|
-
var r = zn(), i =
|
|
2893
|
-
|
|
2894
|
-
D(i, "x", e), D(i, "y",
|
|
2895
|
-
}, [() => Math.max(0,
|
|
2891
|
+
let t = j(() => hs(F(uo).yInvert(F(ms)))), n = j(() => Math.max(24, F(t).length * 6.2 + 10));
|
|
2892
|
+
var r = zn(), i = g(r), a = w(i), o = g(a, !0);
|
|
2893
|
+
E(a), E(r), C((e, r) => {
|
|
2894
|
+
D(i, "x", e), D(i, "y", F(ms) - 7.5), D(i, "width", F(n)), D(a, "x", r), D(a, "y", F(ms) + 3.5), k(o, F(t));
|
|
2895
|
+
}, [() => 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);
|
|
2896
2896
|
};
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
}),
|
|
2900
|
-
D(o, "x", e), D(o, "y",
|
|
2901
|
-
}, [() => Math.max(0, Math.min(
|
|
2897
|
+
h(l, (e) => {
|
|
2898
|
+
F(ms) != null && F(uo) && F(G).axes && e(u);
|
|
2899
|
+
}), C((e, n) => {
|
|
2900
|
+
D(o, "x", e), D(o, "y", F(G).plot.y + F(G).plot.h + 2), D(o, "width", F(r)), D(s, "x", n), D(s, "y", F(G).plot.y + F(G).plot.h + 13), k(c, F(t));
|
|
2901
|
+
}, [() => 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);
|
|
2902
2902
|
};
|
|
2903
|
-
|
|
2903
|
+
h(a, (e) => {
|
|
2904
2904
|
Ue() && e(o);
|
|
2905
|
-
}),
|
|
2906
|
-
D(i, "x1",
|
|
2907
|
-
}),
|
|
2905
|
+
}), C(() => {
|
|
2906
|
+
D(i, "x1", F(n)), D(i, "y1", F(G).plot.y), D(i, "x2", F(n)), D(i, "y2", F(G).plot.y + F(G).plot.h);
|
|
2907
|
+
}), m(e, r);
|
|
2908
2908
|
};
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
}),
|
|
2909
|
+
h(n, (e) => {
|
|
2910
|
+
F(q) ? e(r) : e(i, -1);
|
|
2911
|
+
}), m(e, t);
|
|
2912
2912
|
};
|
|
2913
|
-
|
|
2914
|
-
|
|
2913
|
+
h(Bc, (e) => {
|
|
2914
|
+
F(K) && F(ds) !== null && e(Vc);
|
|
2915
2915
|
});
|
|
2916
2916
|
var Hc = w(Bc), Uc = (e) => {
|
|
2917
|
-
var t = Jn(), n =
|
|
2918
|
-
|
|
2919
|
-
var i = Hn(), a =
|
|
2920
|
-
|
|
2921
|
-
D(i, "x",
|
|
2922
|
-
}, [() => as(
|
|
2917
|
+
var t = Jn(), n = T(t);
|
|
2918
|
+
N(n, 17, () => F(G).heatmapRowTicks, (e) => e.value, (e, t, n, r) => {
|
|
2919
|
+
var i = Hn(), a = g(i, !0);
|
|
2920
|
+
E(i), C((e) => {
|
|
2921
|
+
D(i, "x", F(G).plot.x - 8), D(i, "y", F(t).y + 3), k(a, e);
|
|
2922
|
+
}, [() => as(F(t).label, 22)]), m(e, i);
|
|
2923
2923
|
});
|
|
2924
2924
|
var r = w(n);
|
|
2925
|
-
|
|
2926
|
-
var i = Un(), a =
|
|
2927
|
-
|
|
2928
|
-
D(i, "x",
|
|
2929
|
-
}, [() => as(
|
|
2925
|
+
N(r, 19, () => F(G).heatmapColTicks, (e, t) => e.label + t, (e, t, n, r) => {
|
|
2926
|
+
var i = Un(), a = g(i, !0);
|
|
2927
|
+
E(i), C((e) => {
|
|
2928
|
+
D(i, "x", F(t).x), D(i, "y", F(G).plot.y + F(G).plot.h + 14), k(a, e);
|
|
2929
|
+
}, [() => as(F(t).label, 14)]), m(e, i);
|
|
2930
2930
|
});
|
|
2931
2931
|
var i = w(r);
|
|
2932
|
-
|
|
2933
|
-
var r = Gn(), i =
|
|
2934
|
-
var n = Wn(), r =
|
|
2935
|
-
|
|
2936
|
-
D(n, "x",
|
|
2937
|
-
}, [() => V(
|
|
2932
|
+
N(i, 17, () => F(G).heatmapCells, S, (e, t, n) => {
|
|
2933
|
+
var r = Gn(), i = T(r), a = w(i), o = (e) => {
|
|
2934
|
+
var n = Wn(), r = g(n, !0);
|
|
2935
|
+
E(n), C((e) => {
|
|
2936
|
+
D(n, "x", F(t).x + F(t).w / 2), D(n, "y", F(t).y + F(t).h / 2 + 3), D(n, "fill", F(t).textColor), k(r, e);
|
|
2937
|
+
}, [() => V(F(t).value)]), m(e, n);
|
|
2938
2938
|
};
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
}),
|
|
2942
|
-
D(i, "x",
|
|
2943
|
-
}, [() => Is(".sv-grid-chart-heatcell", n), () => `${
|
|
2939
|
+
h(a, (e) => {
|
|
2940
|
+
F(_i).show && F(t).w > 22 && F(t).h > 14 && e(o);
|
|
2941
|
+
}), C((e, n) => {
|
|
2942
|
+
D(i, "x", F(t).x), D(i, "y", F(t).y), D(i, "width", F(t).w), D(i, "height", F(t).h), D(i, "fill", F(t).color), D(i, "role", f.onSelect || F(Y) ? "button" : "img"), D(i, "tabindex", e), D(i, "aria-label", n);
|
|
2943
|
+
}, [() => Is(".sv-grid-chart-heatcell", n), () => `${F(t).rowLabel} ${F(t).colLabel}: ${V(F(t).value)}`]), _("mousemove", i, (e) => ws(e.clientX, e.clientY, F(t))), x("mouseleave", i, Q), x("focus", i, (e) => {
|
|
2944
2944
|
Ls(".sv-grid-chart-heatcell", n);
|
|
2945
2945
|
let r = zs(e.currentTarget);
|
|
2946
|
-
ws(r.x, r.y,
|
|
2947
|
-
}),
|
|
2946
|
+
ws(r.x, r.y, F(t));
|
|
2947
|
+
}), x("blur", i, Q), _("click", i, () => Ms(F(t).colLabel, F(t).rowLabel, F(t).value)), _("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);
|
|
2948
2948
|
});
|
|
2949
2949
|
var a = w(i), o = (e) => {
|
|
2950
|
-
let t =
|
|
2951
|
-
var i = qn(), a =
|
|
2952
|
-
|
|
2950
|
+
let t = j(() => F(G).plot.x + F(G).plot.w + 14), n = j(() => F(G).plot.h - 20), r = j(() => F(G).heatmapLegend);
|
|
2951
|
+
var i = qn(), a = T(i), o = g(a);
|
|
2952
|
+
N(o, 21, () => F(r), S, (e, t, n) => {
|
|
2953
2953
|
var i = Kn();
|
|
2954
|
-
|
|
2955
|
-
D(i, "offset", `${n / (
|
|
2956
|
-
}),
|
|
2957
|
-
}),
|
|
2958
|
-
var s = w(a), c = w(s), l =
|
|
2959
|
-
|
|
2960
|
-
var u = w(c), d =
|
|
2961
|
-
|
|
2962
|
-
D(o, "id", `${Ai}-heatscale`), D(s, "x",
|
|
2963
|
-
}),
|
|
2954
|
+
C(() => {
|
|
2955
|
+
D(i, "offset", `${n / (F(r).length - 1) * 100}%`), D(i, "stop-color", F(t).color);
|
|
2956
|
+
}), m(e, i);
|
|
2957
|
+
}), E(o), E(a);
|
|
2958
|
+
var s = w(a), c = w(s), l = g(c, !0);
|
|
2959
|
+
E(c);
|
|
2960
|
+
var u = w(c), d = g(u, !0);
|
|
2961
|
+
E(u), C(() => {
|
|
2962
|
+
D(o, "id", `${Ai}-heatscale`), D(s, "x", F(t)), D(s, "y", F(G).plot.y + 10), D(s, "height", F(n)), D(s, "fill", `url(#${Ai}-heatscale)`), D(c, "x", F(t) + 14), D(c, "y", F(G).plot.y + 14), k(l, F(r)[F(r).length - 1].label), D(u, "x", F(t) + 14), D(u, "y", F(G).plot.y + 10 + F(n)), k(d, F(r)[0].label);
|
|
2963
|
+
}), m(e, i);
|
|
2964
2964
|
};
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
}),
|
|
2965
|
+
h(a, (e) => {
|
|
2966
|
+
F(G).heatmapLegend.length && e(o);
|
|
2967
|
+
}), m(e, t);
|
|
2968
2968
|
};
|
|
2969
|
-
|
|
2970
|
-
|
|
2969
|
+
h(Hc, (e) => {
|
|
2970
|
+
F(_o) && e(Uc);
|
|
2971
2971
|
});
|
|
2972
2972
|
var Wc = w(Hc), Gc = (e) => {
|
|
2973
|
-
var t =
|
|
2974
|
-
|
|
2975
|
-
var r = Xn(), i =
|
|
2976
|
-
var n = Yn(), r =
|
|
2977
|
-
|
|
2978
|
-
var a = w(r), o =
|
|
2979
|
-
|
|
2980
|
-
D(r, "x",
|
|
2973
|
+
var t = O(), n = T(t);
|
|
2974
|
+
N(n, 17, () => F(G).funnelSegments, S, (e, t, n) => {
|
|
2975
|
+
var r = Xn(), i = T(r), a = w(i), o = (e) => {
|
|
2976
|
+
var n = Yn(), r = T(n), i = g(r, !0);
|
|
2977
|
+
E(r);
|
|
2978
|
+
var a = w(r), o = g(a);
|
|
2979
|
+
E(a), C((e, n, s) => {
|
|
2980
|
+
D(r, "x", F(t).cx), D(r, "y", F(t).cy - 3), D(r, "fill", F(t).textColor), k(i, e), D(a, "x", F(t).cx), D(a, "y", F(t).cy + 11), D(a, "fill", F(t).textColor), k(o, `${n ?? ""} · ${s ?? ""}%`);
|
|
2981
2981
|
}, [
|
|
2982
|
-
() => as(
|
|
2983
|
-
() => V(
|
|
2984
|
-
() => (
|
|
2985
|
-
]),
|
|
2986
|
-
}, s =
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
}),
|
|
2990
|
-
D(i, "d",
|
|
2991
|
-
}, [() => Is(".sv-grid-chart-funnel-seg", n), () => `${
|
|
2982
|
+
() => as(F(t).label, 24),
|
|
2983
|
+
() => V(F(t).value),
|
|
2984
|
+
() => (F(t).conversion * 100).toFixed(0)
|
|
2985
|
+
]), m(e, n);
|
|
2986
|
+
}, s = j(() => F(G).plot.h / Math.max(1, F(G).funnelSegments.length) >= 26);
|
|
2987
|
+
h(a, (e) => {
|
|
2988
|
+
F(s) && e(o);
|
|
2989
|
+
}), C((e, n) => {
|
|
2990
|
+
D(i, "d", F(t).path), D(i, "fill", F(t).color), D(i, "role", f.onSelect || F(Y) ? "button" : "img"), D(i, "tabindex", e), D(i, "aria-label", n);
|
|
2991
|
+
}, [() => Is(".sv-grid-chart-funnel-seg", n), () => `${F(t).label}: ${V(F(t).value)}`]), _("mousemove", i, (e) => Ts(e.clientX, e.clientY, F(t))), x("mouseleave", i, Q), x("focus", i, (e) => {
|
|
2992
2992
|
Ls(".sv-grid-chart-funnel-seg", n);
|
|
2993
2993
|
let r = zs(e.currentTarget);
|
|
2994
|
-
Ts(r.x, r.y,
|
|
2995
|
-
}),
|
|
2996
|
-
}),
|
|
2994
|
+
Ts(r.x, r.y, F(t));
|
|
2995
|
+
}), x("blur", i, Q), _("click", i, () => Ms(F(t).label, F(t).label, F(t).value, n)), _("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);
|
|
2996
|
+
}), m(e, t);
|
|
2997
2997
|
};
|
|
2998
|
-
|
|
2999
|
-
|
|
2998
|
+
h(Wc, (e) => {
|
|
2999
|
+
F(vo) && e(Gc);
|
|
3000
3000
|
});
|
|
3001
3001
|
var Kc = w(Wc), qc = (e) => {
|
|
3002
|
-
let t =
|
|
3003
|
-
var n = tr(), r =
|
|
3004
|
-
|
|
3005
|
-
let i =
|
|
3002
|
+
let t = j(() => F(G).radarCenter);
|
|
3003
|
+
var n = tr(), r = T(n);
|
|
3004
|
+
N(r, 17, () => F(G).radarRings, S, (e, n, r) => {
|
|
3005
|
+
let i = j(() => F(t).r * ((r + 1) / F(G).radarRings.length));
|
|
3006
3006
|
var a = Zn();
|
|
3007
|
-
|
|
3008
|
-
D(a, "cx",
|
|
3009
|
-
}),
|
|
3007
|
+
C(() => {
|
|
3008
|
+
D(a, "cx", F(t).cx), D(a, "cy", F(t).cy), D(a, "r", F(i));
|
|
3009
|
+
}), m(e, a);
|
|
3010
3010
|
});
|
|
3011
3011
|
var i = w(r);
|
|
3012
|
-
|
|
3013
|
-
let r =
|
|
3014
|
-
var s = Qn(), c =
|
|
3015
|
-
|
|
3016
|
-
D(c, "x1",
|
|
3017
|
-
}, [() => Math.abs(
|
|
3012
|
+
N(i, 17, () => F(G).radarAxes, S, (e, n) => {
|
|
3013
|
+
let r = j(() => F(n).x - F(t).cx), i = j(() => F(n).y - F(t).cy), a = j(() => F(t).cx + F(r) * 1.08), o = j(() => F(t).cy + F(i) * 1.08);
|
|
3014
|
+
var s = Qn(), c = T(s), l = w(c), u = g(l, !0);
|
|
3015
|
+
E(l), C((e) => {
|
|
3016
|
+
D(c, "x1", F(t).cx), D(c, "y1", F(t).cy), D(c, "x2", F(n).x), D(c, "y2", F(n).y), D(l, "x", F(a)), D(l, "y", F(o) + 3), D(l, "text-anchor", e), k(u, F(n).label);
|
|
3017
|
+
}, [() => Math.abs(F(r)) < 1 ? "middle" : F(r) > 0 ? "start" : "end"]), m(e, s);
|
|
3018
3018
|
});
|
|
3019
3019
|
var a = w(i);
|
|
3020
|
-
|
|
3021
|
-
var r = er(), i =
|
|
3022
|
-
|
|
3023
|
-
let a =
|
|
3020
|
+
N(a, 17, () => F(G).radarSeries, S, (e, t, n) => {
|
|
3021
|
+
var r = er(), i = T(r), a = w(i);
|
|
3022
|
+
N(a, 17, () => F(t).points, S, (e, r, i) => {
|
|
3023
|
+
let a = j(() => n * F(t).points.length + i);
|
|
3024
3024
|
var o = $n();
|
|
3025
|
-
|
|
3026
|
-
D(o, "cx",
|
|
3027
|
-
}, [() => Is(".sv-grid-chart-radar-dot",
|
|
3028
|
-
Ls(".sv-grid-chart-radar-dot",
|
|
3025
|
+
C((e, n) => {
|
|
3026
|
+
D(o, "cx", F(r).x), D(o, "cy", F(r).y), D(o, "fill", F(t).color), D(o, "tabindex", e), D(o, "aria-label", n);
|
|
3027
|
+
}, [() => Is(".sv-grid-chart-radar-dot", F(a)), () => `${F(t).label} ${F(r).axis}: ${V(F(r).value)}`]), _("mousemove", o, (e) => As(e.clientX, e.clientY, F(t).label, F(r).axis, F(r).value, F(t).color)), x("mouseleave", o, Q), x("focus", o, (e) => {
|
|
3028
|
+
Ls(".sv-grid-chart-radar-dot", F(a));
|
|
3029
3029
|
let n = zs(e.currentTarget);
|
|
3030
|
-
As(n.x, n.y,
|
|
3031
|
-
}),
|
|
3032
|
-
}),
|
|
3033
|
-
D(i, "d",
|
|
3034
|
-
}, [() => `opacity:${J(
|
|
3035
|
-
}),
|
|
3030
|
+
As(n.x, n.y, F(t).label, F(r).axis, F(r).value, F(t).color);
|
|
3031
|
+
}), x("blur", o, Q), _("keydown", o, (e) => Rs(e, ".sv-grid-chart-radar-dot", F(a))), m(e, o);
|
|
3032
|
+
}), C((e) => {
|
|
3033
|
+
D(i, "d", F(t).path), D(i, "fill", F(t).color), D(i, "stroke", F(t).color), M(i, e);
|
|
3034
|
+
}, [() => `opacity:${J(F(t).label)}`]), m(e, r);
|
|
3035
|
+
}), m(e, n);
|
|
3036
3036
|
};
|
|
3037
|
-
|
|
3038
|
-
|
|
3037
|
+
h(Kc, (e) => {
|
|
3038
|
+
F(yo) && F(G).radarCenter && e(qc);
|
|
3039
3039
|
});
|
|
3040
3040
|
var Jc = w(Kc), Yc = (e) => {
|
|
3041
|
-
var t = sr(), n =
|
|
3042
|
-
|
|
3043
|
-
var i = nr(), a =
|
|
3044
|
-
|
|
3045
|
-
D(i, "x",
|
|
3046
|
-
}),
|
|
3041
|
+
var t = sr(), n = T(t);
|
|
3042
|
+
N(n, 17, () => F(G).calendarMonthTicks, S, (e, t, n, r) => {
|
|
3043
|
+
var i = nr(), a = g(i, !0);
|
|
3044
|
+
E(i), C(() => {
|
|
3045
|
+
D(i, "x", F(t).x), D(i, "y", F(G).plot.y - 8), k(a, F(t).label);
|
|
3046
|
+
}), m(e, i);
|
|
3047
3047
|
});
|
|
3048
3048
|
var r = w(n);
|
|
3049
|
-
|
|
3049
|
+
N(r, 16, () => [
|
|
3050
3050
|
"Mon",
|
|
3051
3051
|
"Wed",
|
|
3052
3052
|
"Fri"
|
|
3053
|
-
],
|
|
3054
|
-
let r =
|
|
3053
|
+
], S, (e, t, n) => {
|
|
3054
|
+
let r = j(() => [
|
|
3055
3055
|
1,
|
|
3056
3056
|
3,
|
|
3057
3057
|
5
|
|
3058
|
-
][n]), i =
|
|
3059
|
-
var a =
|
|
3060
|
-
var n = rr(), r =
|
|
3061
|
-
|
|
3062
|
-
D(n, "x",
|
|
3063
|
-
}),
|
|
3058
|
+
][n]), i = j(() => F(G).calendarCells[F(r)]);
|
|
3059
|
+
var a = O(), o = T(a), s = (e) => {
|
|
3060
|
+
var n = rr(), r = g(n, !0);
|
|
3061
|
+
E(n), C(() => {
|
|
3062
|
+
D(n, "x", F(G).plot.x - 6), D(n, "y", F(i).y + F(i).size / 2 + 3), k(r, t);
|
|
3063
|
+
}), m(e, n);
|
|
3064
3064
|
};
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
}),
|
|
3065
|
+
h(o, (e) => {
|
|
3066
|
+
F(i) && e(s);
|
|
3067
|
+
}), m(e, a);
|
|
3068
3068
|
});
|
|
3069
3069
|
var i = w(r);
|
|
3070
|
-
|
|
3070
|
+
N(i, 17, () => F(G).calendarCells, S, (e, t, n) => {
|
|
3071
3071
|
var r = ir();
|
|
3072
3072
|
let i;
|
|
3073
|
-
|
|
3074
|
-
i =
|
|
3075
|
-
}, [() => Is(".sv-grid-chart-calendar-cell", n), () => `${vs(
|
|
3076
|
-
color:
|
|
3077
|
-
value: V(
|
|
3078
|
-
}])),
|
|
3079
|
-
if (Ls(".sv-grid-chart-calendar-cell", n),
|
|
3073
|
+
C((e, n) => {
|
|
3074
|
+
i = P(r, 0, "sv-grid-chart-calendar-cell svelte-kvdein", null, i, { "is-blank": !F(t).defined }), D(r, "x", F(t).x + 1), D(r, "y", F(t).y + 1), D(r, "width", F(t).size - 2), D(r, "height", F(t).size - 2), D(r, "fill", F(t).defined ? F(t).color : "transparent"), D(r, "tabindex", e), D(r, "aria-label", n);
|
|
3075
|
+
}, [() => Is(".sv-grid-chart-calendar-cell", n), () => `${vs(F(t).date)}: ${F(t).defined ? V(F(t).value) : F(z).noValue}`]), _("mousemove", r, (e) => F(t).defined && Z(e.clientX, e.clientY, vs(F(t).date), [{
|
|
3076
|
+
color: F(t).color,
|
|
3077
|
+
value: V(F(t).value)
|
|
3078
|
+
}])), x("mouseleave", r, Q), x("focus", r, (e) => {
|
|
3079
|
+
if (Ls(".sv-grid-chart-calendar-cell", n), F(t).defined) {
|
|
3080
3080
|
let n = zs(e.currentTarget);
|
|
3081
|
-
Z(n.x, n.y, vs(
|
|
3082
|
-
color:
|
|
3083
|
-
value: V(
|
|
3081
|
+
Z(n.x, n.y, vs(F(t).date), [{
|
|
3082
|
+
color: F(t).color,
|
|
3083
|
+
value: V(F(t).value)
|
|
3084
3084
|
}]);
|
|
3085
3085
|
}
|
|
3086
|
-
}),
|
|
3086
|
+
}), x("blur", r, Q), _("keydown", r, (e) => Rs(e, ".sv-grid-chart-calendar-cell", n, null, {
|
|
3087
3087
|
cols: 7,
|
|
3088
3088
|
colMajor: !0
|
|
3089
|
-
})),
|
|
3089
|
+
})), m(e, r);
|
|
3090
3090
|
});
|
|
3091
3091
|
var a = w(i), o = (e) => {
|
|
3092
|
-
let t =
|
|
3093
|
-
var r = or(), i =
|
|
3094
|
-
|
|
3095
|
-
var a = ar(), o =
|
|
3096
|
-
|
|
3097
|
-
D(o, "x",
|
|
3098
|
-
}),
|
|
3092
|
+
let t = j(() => F(G).plot.x + F(G).plot.w + 12), n = j(() => F(G).plot.y + 4);
|
|
3093
|
+
var r = or(), i = T(r), a = w(i);
|
|
3094
|
+
N(a, 17, () => F(G).calendarLegend, S, (e, r, i) => {
|
|
3095
|
+
var a = ar(), o = T(a), s = w(o), c = g(s, !0);
|
|
3096
|
+
E(s), C(() => {
|
|
3097
|
+
D(o, "x", F(t)), D(o, "y", F(n) + 6 + i * 13), D(o, "fill", F(r).color), D(s, "x", F(t) + 14), D(s, "y", F(n) + 14 + i * 13), k(c, F(r).label);
|
|
3098
|
+
}), m(e, a);
|
|
3099
3099
|
});
|
|
3100
3100
|
var o = w(a);
|
|
3101
|
-
|
|
3102
|
-
D(i, "x",
|
|
3103
|
-
}),
|
|
3101
|
+
C(() => {
|
|
3102
|
+
D(i, "x", F(t)), D(i, "y", F(n)), D(o, "x", F(t)), D(o, "y", F(n) + 12 + F(G).calendarLegend.length * 13);
|
|
3103
|
+
}), m(e, r);
|
|
3104
3104
|
};
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
}),
|
|
3105
|
+
h(a, (e) => {
|
|
3106
|
+
F(G).calendarLegend.length && e(o);
|
|
3107
|
+
}), m(e, t);
|
|
3108
3108
|
};
|
|
3109
|
-
|
|
3110
|
-
|
|
3109
|
+
h(Jc, (e) => {
|
|
3110
|
+
F(bo) && e(Yc);
|
|
3111
3111
|
});
|
|
3112
3112
|
var Xc = w(Jc), Zc = (e) => {
|
|
3113
|
-
let t =
|
|
3114
|
-
var n = dr(), r =
|
|
3115
|
-
|
|
3113
|
+
let t = j(() => F(G).gauge);
|
|
3114
|
+
var n = dr(), r = T(n);
|
|
3115
|
+
N(r, 17, () => F(t).ticks, S, (e, t) => {
|
|
3116
3116
|
var n = cr();
|
|
3117
3117
|
let r;
|
|
3118
|
-
|
|
3119
|
-
r =
|
|
3120
|
-
}),
|
|
3118
|
+
C(() => {
|
|
3119
|
+
r = P(n, 0, "sv-grid-chart-gauge-tick svelte-kvdein", null, r, { "is-major": F(t).major }), D(n, "x1", F(t).x1), D(n, "y1", F(t).y1), D(n, "x2", F(t).x2), D(n, "y2", F(t).y2);
|
|
3120
|
+
}), m(e, n);
|
|
3121
3121
|
});
|
|
3122
3122
|
var i = w(r), a = w(i);
|
|
3123
|
-
|
|
3123
|
+
N(a, 17, () => F(t).rangePaths, S, (e, t) => {
|
|
3124
3124
|
var n = lr();
|
|
3125
|
-
|
|
3126
|
-
D(n, "d",
|
|
3127
|
-
}),
|
|
3125
|
+
C(() => {
|
|
3126
|
+
D(n, "d", F(t).path), D(n, "stroke", F(t).color);
|
|
3127
|
+
}), m(e, n);
|
|
3128
3128
|
});
|
|
3129
3129
|
var o = w(a), s = w(o), c = (e) => {
|
|
3130
3130
|
var n = ur();
|
|
3131
|
-
|
|
3132
|
-
D(n, "x1",
|
|
3133
|
-
}),
|
|
3131
|
+
C(() => {
|
|
3132
|
+
D(n, "x1", F(t).target.x1), D(n, "y1", F(t).target.y1), D(n, "x2", F(t).target.x2), D(n, "y2", F(t).target.y2);
|
|
3133
|
+
}), m(e, n);
|
|
3134
3134
|
};
|
|
3135
|
-
|
|
3136
|
-
|
|
3135
|
+
h(s, (e) => {
|
|
3136
|
+
F(t).target && e(c);
|
|
3137
3137
|
});
|
|
3138
|
-
var l = w(s), u = w(l), d = w(u), ee = w(d), te =
|
|
3139
|
-
|
|
3140
|
-
var ne = w(ee), re =
|
|
3141
|
-
|
|
3142
|
-
var ie = w(ne), f =
|
|
3143
|
-
|
|
3144
|
-
D(i, "d",
|
|
3138
|
+
var l = w(s), u = w(l), d = w(u), ee = w(d), te = g(ee, !0);
|
|
3139
|
+
E(ee);
|
|
3140
|
+
var ne = w(ee), re = g(ne, !0);
|
|
3141
|
+
E(ne);
|
|
3142
|
+
var ie = w(ne), f = g(ie);
|
|
3143
|
+
E(ie), C((e, n, r, a) => {
|
|
3144
|
+
D(i, "d", F(t).trackPath), D(o, "d", F(t).valuePath), D(o, "stroke", F(t).valueColor ?? "var(--sg-accent, #2563eb)"), D(l, "d", F(t).needle.path), D(u, "cx", F(t).cx), D(u, "cy", F(t).cy), D(u, "r", F(t).needle.hubR), D(d, "cx", F(t).cx), D(d, "cy", F(t).cy), D(ee, "x", F(t).minLabel.x), D(ee, "y", F(t).minLabel.y), k(te, e), D(ne, "x", F(t).maxLabel.x), D(ne, "y", F(t).maxLabel.y), k(re, n), D(ie, "x", F(t).cx), D(ie, "y", F(t).cy + 38), k(f, `${r ?? ""}${a ?? ""}`);
|
|
3145
3145
|
}, [
|
|
3146
|
-
() => V(
|
|
3147
|
-
() => V(
|
|
3148
|
-
() => V(
|
|
3149
|
-
() =>
|
|
3150
|
-
]),
|
|
3146
|
+
() => V(F(t).min),
|
|
3147
|
+
() => V(F(t).max),
|
|
3148
|
+
() => V(F(t).value),
|
|
3149
|
+
() => F(t).unit ? /^[%°′″]/.test(F(t).unit) ? F(t).unit : ` ${F(t).unit}` : ""
|
|
3150
|
+
]), m(e, n);
|
|
3151
3151
|
};
|
|
3152
|
-
|
|
3153
|
-
|
|
3152
|
+
h(Xc, (e) => {
|
|
3153
|
+
F(xo) && F(G).gauge && e(Zc);
|
|
3154
3154
|
});
|
|
3155
3155
|
var Qc = w(Xc), $c = (e) => {
|
|
3156
|
-
var t =
|
|
3157
|
-
|
|
3158
|
-
var r = mr(), i =
|
|
3159
|
-
var n = fr(), r =
|
|
3160
|
-
|
|
3161
|
-
D(n, "x",
|
|
3162
|
-
}, [() => as(
|
|
3156
|
+
var t = O(), n = T(t);
|
|
3157
|
+
N(n, 17, () => F(G).treemapCells, S, (e, t, n) => {
|
|
3158
|
+
var r = mr(), i = T(r), o = w(i), s = (e) => {
|
|
3159
|
+
var n = fr(), r = g(n, !0);
|
|
3160
|
+
E(n), C((e) => {
|
|
3161
|
+
D(n, "x", F(t).x + 4), D(n, "y", F(t).y + 12), D(n, "fill", F(t).textColor), k(r, e);
|
|
3162
|
+
}, [() => as(F(t).name, Math.max(3, Math.floor(F(t).w / 7)))]), m(e, n);
|
|
3163
3163
|
};
|
|
3164
|
-
|
|
3165
|
-
|
|
3164
|
+
h(o, (e) => {
|
|
3165
|
+
F(t).w > 36 && F(t).h > 18 && e(s);
|
|
3166
3166
|
});
|
|
3167
3167
|
var c = w(o), l = (e) => {
|
|
3168
|
-
var n = pr(), r =
|
|
3169
|
-
|
|
3170
|
-
D(n, "x",
|
|
3171
|
-
}, [() => V(
|
|
3168
|
+
var n = pr(), r = g(n, !0);
|
|
3169
|
+
E(n), C((e) => {
|
|
3170
|
+
D(n, "x", F(t).x + 4), D(n, "y", F(t).y + 24), D(n, "fill", F(t).textColor), k(r, e);
|
|
3171
|
+
}, [() => V(F(t).value)]), m(e, n);
|
|
3172
3172
|
};
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
}),
|
|
3176
|
-
D(i, "x",
|
|
3177
|
-
}, [() => Is(".sv-grid-chart-treemap-cell", n), () => `${
|
|
3178
|
-
color:
|
|
3179
|
-
value: V(
|
|
3180
|
-
}])),
|
|
3173
|
+
h(c, (e) => {
|
|
3174
|
+
F(t).w > 60 && F(t).h > 30 && e(l);
|
|
3175
|
+
}), C((e, n) => {
|
|
3176
|
+
D(i, "x", F(t).x), D(i, "y", F(t).y), D(i, "width", F(t).w), D(i, "height", F(t).h), D(i, "fill", F(t).color), D(i, "role", f.onSelect || F(Y) || F(Wa) ? "button" : "img"), D(i, "tabindex", e), D(i, "aria-label", n);
|
|
3177
|
+
}, [() => Is(".sv-grid-chart-treemap-cell", n), () => `${F(t).name}: ${V(F(t).value)}`]), _("mousemove", i, (e) => Z(e.clientX, e.clientY, F(t).name, [{
|
|
3178
|
+
color: F(t).color,
|
|
3179
|
+
value: V(F(t).value)
|
|
3180
|
+
}])), x("mouseleave", i, Q), x("focus", i, (e) => {
|
|
3181
3181
|
Ls(".sv-grid-chart-treemap-cell", n);
|
|
3182
3182
|
let r = zs(e.currentTarget);
|
|
3183
|
-
Z(r.x, r.y,
|
|
3184
|
-
color:
|
|
3185
|
-
value: V(
|
|
3183
|
+
Z(r.x, r.y, F(t).name, [{
|
|
3184
|
+
color: F(t).color,
|
|
3185
|
+
value: V(F(t).value)
|
|
3186
3186
|
}]);
|
|
3187
|
-
}),
|
|
3188
|
-
|
|
3189
|
-
}),
|
|
3190
|
-
|
|
3191
|
-
})),
|
|
3192
|
-
}),
|
|
3187
|
+
}), x("blur", i, Q), _("click", i, (e) => {
|
|
3188
|
+
F(Wa) && Za([...Ie(), ...a(F(Ga), F(t).name) ?? []]) || Ms(F(t).name, "", F(t).value, void 0, e);
|
|
3189
|
+
}), _("keydown", i, (e) => Rs(e, ".sv-grid-chart-treemap-cell", n, () => {
|
|
3190
|
+
F(Wa) && Za([...Ie(), ...a(F(Ga), F(t).name) ?? []]) || (f.onSelect || F(Y)) && Ms(F(t).name, "", F(t).value, void 0, e);
|
|
3191
|
+
})), m(e, r);
|
|
3192
|
+
}), m(e, t);
|
|
3193
3193
|
};
|
|
3194
|
-
|
|
3195
|
-
|
|
3194
|
+
h(Qc, (e) => {
|
|
3195
|
+
F(So) && e($c);
|
|
3196
3196
|
});
|
|
3197
3197
|
var el = w(Qc), tl = (e) => {
|
|
3198
|
-
var t = _r(), n =
|
|
3199
|
-
|
|
3198
|
+
var t = _r(), n = T(t);
|
|
3199
|
+
N(n, 17, () => F(G).sankeyLinks, S, (e, t, n) => {
|
|
3200
3200
|
var r = hr();
|
|
3201
|
-
|
|
3202
|
-
D(r, "d",
|
|
3203
|
-
}, [() => Is(".sv-grid-chart-sankey-link", n), () => `${
|
|
3204
|
-
color:
|
|
3205
|
-
value: V(
|
|
3206
|
-
}])),
|
|
3201
|
+
C((e, n) => {
|
|
3202
|
+
D(r, "d", F(t).path), D(r, "stroke", F(t).color), D(r, "stroke-width", F(t).width), D(r, "tabindex", e), D(r, "aria-label", n);
|
|
3203
|
+
}, [() => Is(".sv-grid-chart-sankey-link", n), () => `${F(t).source} → ${F(t).target}: ${V(F(t).value)}`]), _("mousemove", r, (e) => Z(e.clientX, e.clientY, `${F(t).source} → ${F(t).target}`, [{
|
|
3204
|
+
color: F(t).color,
|
|
3205
|
+
value: V(F(t).value)
|
|
3206
|
+
}])), x("mouseleave", r, Q), x("focus", r, (e) => {
|
|
3207
3207
|
Ls(".sv-grid-chart-sankey-link", n);
|
|
3208
3208
|
let r = zs(e.currentTarget);
|
|
3209
|
-
Z(r.x, r.y, `${
|
|
3210
|
-
color:
|
|
3211
|
-
value: V(
|
|
3209
|
+
Z(r.x, r.y, `${F(t).source} → ${F(t).target}`, [{
|
|
3210
|
+
color: F(t).color,
|
|
3211
|
+
value: V(F(t).value)
|
|
3212
3212
|
}]);
|
|
3213
|
-
}),
|
|
3213
|
+
}), x("blur", r, Q), _("keydown", r, (e) => Rs(e, ".sv-grid-chart-sankey-link", n)), m(e, r);
|
|
3214
3214
|
});
|
|
3215
3215
|
var r = w(n);
|
|
3216
|
-
|
|
3217
|
-
var r = gr(), i =
|
|
3218
|
-
|
|
3219
|
-
D(i, "x",
|
|
3220
|
-
}, [() => Is(".sv-grid-chart-sankey-node", n), () => et(
|
|
3221
|
-
label:
|
|
3222
|
-
in: V(
|
|
3223
|
-
out: V(
|
|
3224
|
-
})]),
|
|
3216
|
+
N(r, 17, () => F(G).sankeyNodes, S, (e, t, n) => {
|
|
3217
|
+
var r = gr(), i = T(r), a = w(i), o = g(a, !0);
|
|
3218
|
+
E(a), C((e, n) => {
|
|
3219
|
+
D(i, "x", F(t).x), D(i, "y", F(t).y), D(i, "width", F(t).w), D(i, "height", F(t).h), D(i, "fill", F(t).color), D(i, "tabindex", e), D(i, "aria-label", n), D(a, "x", F(t).column === 0 ? F(t).x + F(t).w + 4 : F(t).x - 4), D(a, "y", F(t).y + F(t).h / 2 + 3), D(a, "text-anchor", F(t).column === 0 ? "start" : "end"), k(o, F(t).label);
|
|
3220
|
+
}, [() => Is(".sv-grid-chart-sankey-node", n), () => et(F(z).sankeyNode, {
|
|
3221
|
+
label: F(t).label,
|
|
3222
|
+
in: V(F(t).totalIn),
|
|
3223
|
+
out: V(F(t).totalOut)
|
|
3224
|
+
})]), _("mousemove", i, (e) => Z(e.clientX, e.clientY, F(t).label, [{
|
|
3225
3225
|
label: "in",
|
|
3226
|
-
value: V(
|
|
3226
|
+
value: V(F(t).totalIn)
|
|
3227
3227
|
}, {
|
|
3228
3228
|
label: "out",
|
|
3229
|
-
value: V(
|
|
3230
|
-
}])),
|
|
3229
|
+
value: V(F(t).totalOut)
|
|
3230
|
+
}])), x("mouseleave", i, Q), x("focus", i, (e) => {
|
|
3231
3231
|
Ls(".sv-grid-chart-sankey-node", n);
|
|
3232
3232
|
let r = zs(e.currentTarget);
|
|
3233
|
-
Z(r.x, r.y,
|
|
3233
|
+
Z(r.x, r.y, F(t).label, [{
|
|
3234
3234
|
label: "in",
|
|
3235
|
-
value: V(
|
|
3235
|
+
value: V(F(t).totalIn)
|
|
3236
3236
|
}, {
|
|
3237
3237
|
label: "out",
|
|
3238
|
-
value: V(
|
|
3238
|
+
value: V(F(t).totalOut)
|
|
3239
3239
|
}]);
|
|
3240
|
-
}),
|
|
3241
|
-
}),
|
|
3240
|
+
}), x("blur", i, Q), _("keydown", i, (e) => Rs(e, ".sv-grid-chart-sankey-node", n)), m(e, r);
|
|
3241
|
+
}), m(e, t);
|
|
3242
3242
|
};
|
|
3243
|
-
|
|
3244
|
-
|
|
3243
|
+
h(el, (e) => {
|
|
3244
|
+
F(Co) && e(tl);
|
|
3245
3245
|
});
|
|
3246
3246
|
var nl = w(el), rl = (e) => {
|
|
3247
|
-
var t = Tr(), n =
|
|
3248
|
-
var t =
|
|
3249
|
-
|
|
3247
|
+
var t = Tr(), n = T(t), r = (e) => {
|
|
3248
|
+
var t = O(), n = T(t);
|
|
3249
|
+
N(n, 17, () => F(G).polarRings, S, (e, t) => {
|
|
3250
3250
|
var n = vr();
|
|
3251
|
-
|
|
3252
|
-
D(n, "cx",
|
|
3253
|
-
}),
|
|
3254
|
-
}),
|
|
3251
|
+
C(() => {
|
|
3252
|
+
D(n, "cx", F(G).radarCenter.cx), D(n, "cy", F(G).radarCenter.cy), D(n, "r", F(t));
|
|
3253
|
+
}), m(e, n);
|
|
3254
|
+
}), m(e, t);
|
|
3255
3255
|
};
|
|
3256
|
-
|
|
3257
|
-
|
|
3256
|
+
h(n, (e) => {
|
|
3257
|
+
F(G).radarCenter && F(G).polarRings.length && e(r);
|
|
3258
3258
|
});
|
|
3259
3259
|
var i = w(n);
|
|
3260
|
-
|
|
3261
|
-
var n = yr(), r =
|
|
3262
|
-
|
|
3263
|
-
D(n, "x",
|
|
3264
|
-
}, [() => as(
|
|
3260
|
+
N(i, 17, () => F(G).polarAxes, S, (e, t) => {
|
|
3261
|
+
var n = yr(), r = g(n, !0);
|
|
3262
|
+
E(n), C((e) => {
|
|
3263
|
+
D(n, "x", F(t).x), D(n, "y", F(t).y + 3), D(n, "text-anchor", F(t).x < (F(G).radarCenter?.cx ?? 0) - 2 ? "end" : F(t).x > (F(G).radarCenter?.cx ?? 0) + 2 ? "start" : "middle"), k(r, e);
|
|
3264
|
+
}, [() => as(F(t).label, 14)]), m(e, n);
|
|
3265
3265
|
});
|
|
3266
3266
|
var a = w(i);
|
|
3267
|
-
|
|
3268
|
-
var n =
|
|
3267
|
+
N(a, 17, () => F(G).arcs, S, (e, t) => {
|
|
3268
|
+
var n = O(), r = T(n), i = (e) => {
|
|
3269
3269
|
var n = br();
|
|
3270
|
-
|
|
3270
|
+
C(() => D(n, "d", F(t).trackPath)), m(e, n);
|
|
3271
3271
|
};
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
}),
|
|
3272
|
+
h(r, (e) => {
|
|
3273
|
+
F(t).trackPath && e(i);
|
|
3274
|
+
}), m(e, n);
|
|
3275
3275
|
});
|
|
3276
3276
|
var o = w(a);
|
|
3277
|
-
|
|
3277
|
+
N(o, 17, () => F(G).chordRibbons, S, (e, t) => {
|
|
3278
3278
|
var n = xr();
|
|
3279
|
-
|
|
3280
|
-
D(n, "d",
|
|
3281
|
-
}, [() => `opacity:${J(
|
|
3279
|
+
C((e) => {
|
|
3280
|
+
D(n, "d", F(t).path), D(n, "fill", F(t).color), D(n, "stroke", F(t).color), M(n, e);
|
|
3281
|
+
}, [() => `opacity:${J(F(t).source) === 1 && J(F(t).target) === 1 ? 1 : .18}`]), _("mousemove", n, (e) => Ds(e.clientX, e.clientY, F(t))), x("mouseleave", n, Q), m(e, n);
|
|
3282
3282
|
});
|
|
3283
3283
|
var s = w(o);
|
|
3284
|
-
|
|
3284
|
+
N(s, 17, () => F(G).arcs, S, (e, t, n) => {
|
|
3285
3285
|
var r = Sr();
|
|
3286
3286
|
let i;
|
|
3287
|
-
|
|
3288
|
-
i =
|
|
3287
|
+
C((e, n, a, o) => {
|
|
3288
|
+
i = P(r, 0, "sv-grid-chart-arc svelte-kvdein", null, i, e), D(r, "d", F(t).path), D(r, "fill", F(t).color), M(r, n), D(r, "role", f.onSelect || F(Y) || F(Wa) && F(t).nodePath ? "button" : "img"), D(r, "tabindex", a), D(r, "aria-label", o);
|
|
3289
3289
|
}, [
|
|
3290
3290
|
() => ({
|
|
3291
|
-
"is-selected": Ro(
|
|
3292
|
-
"is-drillable":
|
|
3291
|
+
"is-selected": Ro(F(t).label, F(t).series),
|
|
3292
|
+
"is-drillable": F(Wa) && !!F(t).nodePath && !!l(F(Ua), F(t).nodePath)?.children?.length
|
|
3293
3293
|
}),
|
|
3294
|
-
() => `opacity:${J(
|
|
3294
|
+
() => `opacity:${J(F(ho) || F(B).type === "sunburst" || F(B).type === "chord" ? F(t).label : F(t).series)}`,
|
|
3295
3295
|
() => Is(".sv-grid-chart-arc", n),
|
|
3296
|
-
() => `${
|
|
3297
|
-
]),
|
|
3296
|
+
() => `${F(t).nodePath ? F(t).nodePath.join(" / ") : F(t).label}${F(t).series ? ` ${F(t).series}` : ""}: ${V(F(t).value)}`
|
|
3297
|
+
]), _("mousemove", r, (e) => Es(e.clientX, e.clientY, F(t))), x("mouseleave", r, Q), x("focus", r, (e) => {
|
|
3298
3298
|
Ls(".sv-grid-chart-arc", n);
|
|
3299
3299
|
let r = zs(e.currentTarget);
|
|
3300
|
-
Es(r.x, r.y,
|
|
3301
|
-
}),
|
|
3302
|
-
|
|
3303
|
-
}),
|
|
3304
|
-
|
|
3305
|
-
})),
|
|
3300
|
+
Es(r.x, r.y, F(t));
|
|
3301
|
+
}), x("blur", r, Q), _("click", r, (e) => {
|
|
3302
|
+
F(t).nodePath && Za(F(t).nodePath) || Ms(F(t).label, F(t).series, F(t).value, void 0, e);
|
|
3303
|
+
}), _("keydown", r, (e) => Rs(e, ".sv-grid-chart-arc", n, () => {
|
|
3304
|
+
F(t).nodePath && Za(F(t).nodePath) || (f.onSelect || F(Y)) && Ms(F(t).label, F(t).series, F(t).value, void 0, e);
|
|
3305
|
+
})), m(e, r);
|
|
3306
3306
|
});
|
|
3307
3307
|
var c = w(s);
|
|
3308
|
-
|
|
3309
|
-
var n =
|
|
3310
|
-
var n =
|
|
3311
|
-
var n = Cr(), r =
|
|
3312
|
-
|
|
3313
|
-
D(n, "x",
|
|
3314
|
-
}, [() => as(
|
|
3308
|
+
N(c, 17, () => F(G).arcs, S, (e, t) => {
|
|
3309
|
+
var n = O(), r = T(n), i = (e) => {
|
|
3310
|
+
var n = O(), r = T(n), i = (e) => {
|
|
3311
|
+
var n = Cr(), r = g(n, !0);
|
|
3312
|
+
E(n), C((e) => {
|
|
3313
|
+
D(n, "x", F(t).lx), D(n, "y", F(t).ly + 3), D(n, "text-anchor", F(t).lx < F(t).cx - 2 ? "end" : F(t).lx > F(t).cx + 2 ? "start" : "middle"), k(r, e);
|
|
3314
|
+
}, [() => as(F(t).label, 14)]), m(e, n);
|
|
3315
3315
|
};
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
}),
|
|
3316
|
+
h(r, (e) => {
|
|
3317
|
+
F(t).a1 - F(t).a0 > .12 && F(B).xAxis?.labels !== !1 && e(i);
|
|
3318
|
+
}), m(e, n);
|
|
3319
3319
|
}, a = (e) => {
|
|
3320
|
-
var n = wr(), r =
|
|
3321
|
-
|
|
3322
|
-
D(n, "x",
|
|
3323
|
-
}, [() => as(
|
|
3320
|
+
var n = wr(), r = g(n, !0);
|
|
3321
|
+
E(n), C((e) => {
|
|
3322
|
+
D(n, "x", F(t).lx), D(n, "y", F(t).ly), D(n, "fill", F(t).textColor), k(r, e);
|
|
3323
|
+
}, [() => as(F(_i).show && F(B).type !== "sunburst" ? V(F(t).value) : F(t).label, 12)]), m(e, n);
|
|
3324
3324
|
};
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
}),
|
|
3328
|
-
}),
|
|
3325
|
+
h(r, (e) => {
|
|
3326
|
+
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);
|
|
3327
|
+
}), m(e, n);
|
|
3328
|
+
}), m(e, t);
|
|
3329
3329
|
};
|
|
3330
|
-
|
|
3331
|
-
|
|
3330
|
+
h(nl, (e) => {
|
|
3331
|
+
F(po) && e(rl);
|
|
3332
3332
|
});
|
|
3333
3333
|
var il = w(nl), al = (e) => {
|
|
3334
|
-
var t =
|
|
3335
|
-
|
|
3336
|
-
var n = Or(), r =
|
|
3337
|
-
|
|
3334
|
+
var t = O(), n = T(t);
|
|
3335
|
+
N(n, 17, () => F(G).bullets, S, (e, t) => {
|
|
3336
|
+
var n = Or(), r = g(n);
|
|
3337
|
+
N(r, 17, () => F(t).ranges, S, (e, n) => {
|
|
3338
3338
|
var r = Er();
|
|
3339
|
-
|
|
3340
|
-
D(r, "x",
|
|
3341
|
-
}),
|
|
3339
|
+
C(() => {
|
|
3340
|
+
D(r, "x", F(n).x), D(r, "y", F(t).y), D(r, "width", F(n).w), D(r, "height", F(t).h), D(r, "fill", F(n).color);
|
|
3341
|
+
}), m(e, r);
|
|
3342
3342
|
});
|
|
3343
3343
|
var i = w(r), a = w(i), o = (e) => {
|
|
3344
3344
|
var n = Dr();
|
|
3345
|
-
|
|
3346
|
-
D(n, "x1",
|
|
3347
|
-
}),
|
|
3345
|
+
C(() => {
|
|
3346
|
+
D(n, "x1", F(t).targetX), D(n, "y1", F(t).y + F(t).h * .15), D(n, "x2", F(t).targetX), D(n, "y2", F(t).y + F(t).h * .85);
|
|
3347
|
+
}), m(e, n);
|
|
3348
3348
|
};
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
}),
|
|
3352
|
-
D(i, "x",
|
|
3353
|
-
}),
|
|
3354
|
-
}),
|
|
3349
|
+
h(a, (e) => {
|
|
3350
|
+
F(t).targetX != null && e(o);
|
|
3351
|
+
}), E(n), C(() => {
|
|
3352
|
+
D(i, "x", F(t).x), D(i, "y", F(t).y + F(t).h * .3), D(i, "width", F(t).measureW), D(i, "height", F(t).h * .4), D(i, "fill", F(t).color);
|
|
3353
|
+
}), _("mousemove", n, (e) => Os(e.clientX, e.clientY, F(t))), x("mouseleave", n, Q), m(e, n);
|
|
3354
|
+
}), m(e, t);
|
|
3355
3355
|
};
|
|
3356
|
-
|
|
3357
|
-
|
|
3356
|
+
h(il, (e) => {
|
|
3357
|
+
F(mo) && e(al);
|
|
3358
3358
|
});
|
|
3359
3359
|
var ol = w(il);
|
|
3360
|
-
|
|
3361
|
-
var r = jr(), i =
|
|
3360
|
+
N(ol, 17, () => F(G).slices, S, (e, t, n) => {
|
|
3361
|
+
var r = jr(), i = T(r);
|
|
3362
3362
|
let a;
|
|
3363
3363
|
var o = w(i), s = (e) => {
|
|
3364
|
-
var n = kr(), r =
|
|
3365
|
-
|
|
3366
|
-
D(r, "points", `${
|
|
3367
|
-
}, [() =>
|
|
3368
|
-
category:
|
|
3369
|
-
series:
|
|
3370
|
-
}) : `${as(
|
|
3364
|
+
var n = kr(), r = T(n), i = w(r), a = g(i, !0);
|
|
3365
|
+
E(i), C((e) => {
|
|
3366
|
+
D(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}`), D(r, "stroke", F(t).color), D(i, "x", F(t).callout.tx), D(i, "y", F(t).callout.ty + 3.5), D(i, "text-anchor", F(t).callout.anchor), k(a, e);
|
|
3367
|
+
}, [() => F(_i).formatter ? F(_i).formatter(F(t).value, {
|
|
3368
|
+
category: F(t).label,
|
|
3369
|
+
series: F(t).label
|
|
3370
|
+
}) : `${as(F(t).label, Math.min(18, F(t).callout.maxChars))} ${F(t).percent.toFixed(0)}%`]), m(e, n);
|
|
3371
3371
|
}, c = (e) => {
|
|
3372
|
-
var n = Ar(), r =
|
|
3373
|
-
|
|
3374
|
-
D(n, "x",
|
|
3375
|
-
}, [() =>
|
|
3372
|
+
var n = Ar(), r = g(n);
|
|
3373
|
+
E(n), C((e) => {
|
|
3374
|
+
D(n, "x", F(t).cx), D(n, "y", F(t).cy), k(r, `${e ?? ""}%`);
|
|
3375
|
+
}, [() => F(t).percent.toFixed(0)]), m(e, n);
|
|
3376
3376
|
};
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
}),
|
|
3380
|
-
a =
|
|
3377
|
+
h(o, (e) => {
|
|
3378
|
+
F(t).callout ? e(s) : F(_i).show && F(_i).placement !== "outside" && F(t).percent >= 6 && e(c, 1);
|
|
3379
|
+
}), C((e, n, r, o, s) => {
|
|
3380
|
+
a = P(i, 0, "sv-grid-chart-slice svelte-kvdein", null, a, e), D(i, "d", F(t).path), D(i, "fill", F(t).color), M(i, n), D(i, "role", r), D(i, "tabindex", o), D(i, "aria-label", s);
|
|
3381
3381
|
}, [
|
|
3382
3382
|
() => ({
|
|
3383
|
-
"is-selected": Ro(
|
|
3384
|
-
"is-drillable": Ya(
|
|
3383
|
+
"is-selected": Ro(F(t).label, F(t).label),
|
|
3384
|
+
"is-drillable": Ya(F(t).label)
|
|
3385
3385
|
}),
|
|
3386
|
-
() => `opacity:${zo(
|
|
3387
|
-
() => f.onSelect ||
|
|
3386
|
+
() => `opacity:${zo(F(t).label, F(t).label)}`,
|
|
3387
|
+
() => f.onSelect || F(Y) || Ya(F(t).label) ? "button" : "img",
|
|
3388
3388
|
() => Is(".sv-grid-chart-slice", n),
|
|
3389
|
-
() => `${
|
|
3390
|
-
]),
|
|
3389
|
+
() => `${F(t).label}: ${V(F(t).value)}, ${F(t).percent.toFixed(1)}%${Ya(F(t).label) ? F(z).drillIn : ""}`
|
|
3390
|
+
]), _("mousemove", i, (e) => Ss(e.clientX, e.clientY, F(t).label, F(t).value, F(t).percent)), x("mouseleave", i, Q), x("focus", i, (e) => {
|
|
3391
3391
|
Ls(".sv-grid-chart-slice", n);
|
|
3392
3392
|
let r = zs(e.currentTarget);
|
|
3393
|
-
Ss(r.x, r.y,
|
|
3394
|
-
}),
|
|
3395
|
-
Ya(
|
|
3396
|
-
}),
|
|
3393
|
+
Ss(r.x, r.y, F(t).label, F(t).value, F(t).percent);
|
|
3394
|
+
}), x("blur", i, Q), _("click", i, (e) => {
|
|
3395
|
+
Ya(F(t).label) && Za([...Ie(), F(t).label]) || Ms(F(t).label, F(t).label, F(t).value, n, e);
|
|
3396
|
+
}), _("keydown", i, (e) => {
|
|
3397
3397
|
qs(e, n) || Rs(e, ".sv-grid-chart-slice", n, () => {
|
|
3398
|
-
Ya(
|
|
3398
|
+
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);
|
|
3399
3399
|
});
|
|
3400
|
-
}),
|
|
3400
|
+
}), m(e, r);
|
|
3401
3401
|
});
|
|
3402
3402
|
var sl = w(ol), cl = (e) => {
|
|
3403
|
-
var t = Mr(), n =
|
|
3404
|
-
|
|
3405
|
-
var i = w(n), a =
|
|
3406
|
-
|
|
3407
|
-
D(n, "x",
|
|
3408
|
-
}, [() => V(
|
|
3403
|
+
var t = Mr(), n = T(t), r = g(n, !0);
|
|
3404
|
+
E(n);
|
|
3405
|
+
var i = w(n), a = g(i, !0);
|
|
3406
|
+
E(i), C((e) => {
|
|
3407
|
+
D(n, "x", F(G).donut.cx), D(n, "y", F(G).donut.cy - 4), k(r, e), D(i, "x", F(G).donut.cx), D(i, "y", F(G).donut.cy + 11), k(a, F(z).total);
|
|
3408
|
+
}, [() => V(F(G).donut.total)]), m(e, t);
|
|
3409
3409
|
};
|
|
3410
|
-
|
|
3411
|
-
|
|
3410
|
+
h(sl, (e) => {
|
|
3411
|
+
F(G).donut && e(cl);
|
|
3412
3412
|
});
|
|
3413
3413
|
var ll = w(sl), ul = (e) => {
|
|
3414
|
-
var t =
|
|
3414
|
+
var t = O(), n = T(t), r = (e) => {
|
|
3415
3415
|
var t = Nr();
|
|
3416
|
-
|
|
3417
|
-
D(t, "x",
|
|
3418
|
-
}, [() => et(
|
|
3419
|
-
count:
|
|
3420
|
-
from:
|
|
3421
|
-
to:
|
|
3422
|
-
})]),
|
|
3416
|
+
C((e) => {
|
|
3417
|
+
D(t, "x", F(G).plot.x), D(t, "y", F(G).plot.y), D(t, "width", F(G).plot.w), D(t, "height", F(G).plot.h), D(t, "role", f.onSelect ? "button" : "img"), D(t, "tabindex", v() ? 0 : void 0), D(t, "data-cat-index", F(jo)), D(t, "aria-label", e);
|
|
3418
|
+
}, [() => et(F(z).densePoints, {
|
|
3419
|
+
count: F(Eo),
|
|
3420
|
+
from: F(W).categories[0] ?? "",
|
|
3421
|
+
to: F(W).categories[F(W).categories.length - 1] ?? ""
|
|
3422
|
+
})]), _("mousemove", t, (e) => {
|
|
3423
3423
|
let t = Ao(e.clientX, e.currentTarget);
|
|
3424
|
-
t != null && (
|
|
3425
|
-
}),
|
|
3424
|
+
t != null && (b(jo, t, !0), bs(e.clientX, e.clientY, t));
|
|
3425
|
+
}), x("mouseleave", t, Q), x("focus", t, (e) => xs(e.currentTarget, F(jo))), x("blur", t, Q), _("click", t, (e) => js(e, F(jo))), _("keydown", t, Mo), m(e, t);
|
|
3426
3426
|
}, i = (e) => {
|
|
3427
|
-
var t =
|
|
3428
|
-
|
|
3429
|
-
let r =
|
|
3427
|
+
var t = O(), n = T(t);
|
|
3428
|
+
N(n, 19, () => F(W).categories, (e, t) => e + t, (e, t, n) => {
|
|
3429
|
+
let r = j(() => F(G).lines[0]?.points), i = j(() => F(r)?.[F(n)]?.x), a = j(() => !F(q) && F(r) && F(r).length === F(W).categories.length && Number.isFinite(F(i))), o = j(() => F(a) && F(n) > 0 ? F(r)[F(n) - 1].x : null), s = j(() => F(a) && F(n) < F(r).length - 1 ? F(r)[F(n) + 1].x : null), c = j(() => F(a) ? F(o) == null ? F(G).plot.x : (F(o) + F(i)) / 2 : F(G).plot.x + F(wo) * F(n)), l = j(() => 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));
|
|
3430
3430
|
var u = Pr();
|
|
3431
|
-
|
|
3432
|
-
D(u, "x",
|
|
3433
|
-
}, [() =>
|
|
3434
|
-
}),
|
|
3431
|
+
C((e, t) => {
|
|
3432
|
+
D(u, "x", F(q) ? F(G).plot.x : F(c)), D(u, "y", F(q) ? F(G).plot.y + F(wo) * F(n) : F(G).plot.y), D(u, "width", e), D(u, "height", F(q) ? F(wo) : F(G).plot.h), D(u, "role", f.onSelect ? "button" : "img"), D(u, "tabindex", v() ? F(n) === 0 ? 0 : -1 : void 0), D(u, "data-cat-index", F(n)), D(u, "aria-label", t);
|
|
3433
|
+
}, [() => 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(", ")}`]), _("mousemove", u, (e) => bs(e.clientX, e.clientY, F(n), e.currentTarget)), x("mouseleave", u, Q), x("focus", u, (e) => xs(e.currentTarget, F(n))), x("blur", u, Q), _("click", u, (e) => js(e, F(n))), _("keydown", u, (e) => Ps(e, F(n))), m(e, u);
|
|
3434
|
+
}), m(e, t);
|
|
3435
3435
|
};
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
}),
|
|
3436
|
+
h(n, (e) => {
|
|
3437
|
+
F(To) ? e(r) : e(i, -1);
|
|
3438
|
+
}), m(e, t);
|
|
3439
3439
|
};
|
|
3440
|
-
|
|
3441
|
-
|
|
3440
|
+
h(ll, (e) => {
|
|
3441
|
+
F(K) && !F(go) && e(ul);
|
|
3442
3442
|
});
|
|
3443
3443
|
var dl = w(ll), fl = (e) => {
|
|
3444
3444
|
var t = Fr();
|
|
3445
|
-
|
|
3446
|
-
D(t, "x",
|
|
3447
|
-
}),
|
|
3445
|
+
C(() => {
|
|
3446
|
+
D(t, "x", F($i).x), D(t, "y", F($i).y), D(t, "width", F($i).w), D(t, "height", F($i).h);
|
|
3447
|
+
}), m(e, t);
|
|
3448
3448
|
};
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
}),
|
|
3449
|
+
h(dl, (e) => {
|
|
3450
|
+
F($i) && e(fl);
|
|
3451
|
+
}), E($), me($, (e) => b(Xi, e), () => F(Xi));
|
|
3452
3452
|
var pl = w($, 2), ml = (e) => {
|
|
3453
|
-
let t =
|
|
3454
|
-
var r = zr(), i =
|
|
3453
|
+
let t = j(() => F(U).plot.x + F(La).t0 * F(U).plot.w), n = j(() => (F(La).t1 - F(La).t0) * F(U).plot.w);
|
|
3454
|
+
var r = zr(), i = g(r);
|
|
3455
3455
|
D(i, "aria-valuemin", 0);
|
|
3456
|
-
var a =
|
|
3457
|
-
|
|
3458
|
-
var n = Lr(), r =
|
|
3456
|
+
var a = g(i);
|
|
3457
|
+
N(a, 17, () => F(U).lines, S, (e, t) => {
|
|
3458
|
+
var n = Lr(), r = T(n), i = (e) => {
|
|
3459
3459
|
var n = Ir();
|
|
3460
|
-
|
|
3461
|
-
D(n, "d",
|
|
3462
|
-
}),
|
|
3460
|
+
C(() => {
|
|
3461
|
+
D(n, "d", F(t).areaPath), D(n, "fill", F(t).color);
|
|
3462
|
+
}), m(e, n);
|
|
3463
3463
|
};
|
|
3464
|
-
|
|
3465
|
-
|
|
3464
|
+
h(r, (e) => {
|
|
3465
|
+
F(t).areaPath && e(i);
|
|
3466
3466
|
});
|
|
3467
3467
|
var a = w(r);
|
|
3468
|
-
|
|
3469
|
-
D(a, "d",
|
|
3470
|
-
}),
|
|
3468
|
+
C(() => {
|
|
3469
|
+
D(a, "d", F(t).path), D(a, "stroke", F(t).color);
|
|
3470
|
+
}), m(e, n);
|
|
3471
3471
|
});
|
|
3472
3472
|
var o = w(a);
|
|
3473
|
-
|
|
3473
|
+
N(o, 17, () => F(U).bars, S, (e, t) => {
|
|
3474
3474
|
var n = Rr();
|
|
3475
|
-
|
|
3476
|
-
D(n, "x",
|
|
3477
|
-
}),
|
|
3475
|
+
C(() => {
|
|
3476
|
+
D(n, "x", F(t).x), D(n, "y", F(t).y), D(n, "width", F(t).w), D(n, "height", F(t).h), D(n, "fill", F(t).color);
|
|
3477
|
+
}), m(e, n);
|
|
3478
3478
|
});
|
|
3479
3479
|
var s = w(o), c = w(s), l = w(c), u = w(l), d = w(u);
|
|
3480
|
-
|
|
3481
|
-
D(i, "viewBox", `0 0 ${
|
|
3482
|
-
}, [() => Math.max(0,
|
|
3483
|
-
from:
|
|
3484
|
-
to:
|
|
3485
|
-
})]),
|
|
3480
|
+
E(i), E(r), C((e, r) => {
|
|
3481
|
+
D(i, "viewBox", `0 0 ${F(U).width} ${F(U).height}`), D(i, "aria-label", F(z).rangeBrush), D(i, "aria-valuemax", e), D(i, "aria-valuenow", I()?.i0 ?? 0), D(i, "aria-valuetext", r), D(s, "x", F(U).plot.x), D(s, "y", F(U).plot.y), D(s, "width", F(t) - F(U).plot.x), D(s, "height", F(U).plot.h), D(c, "x", F(t) + F(n)), D(c, "y", F(U).plot.y), D(c, "width", F(U).plot.x + F(U).plot.w - (F(t) + F(n))), D(c, "height", F(U).plot.h), D(l, "x", F(t)), D(l, "y", F(U).plot.y), D(l, "width", F(n)), D(l, "height", F(U).plot.h), D(u, "x", F(t) - 4), D(u, "y", F(U).plot.y), D(u, "height", F(U).plot.h), D(d, "x", F(t) + F(n) - 4), D(d, "y", F(U).plot.y), D(d, "height", F(U).plot.h);
|
|
3482
|
+
}, [() => Math.max(0, F(B).categories.length - 1), () => et(F(z).brushRange, {
|
|
3483
|
+
from: F(B).categories[I()?.i0 ?? 0] ?? "",
|
|
3484
|
+
to: F(B).categories[I()?.i1 ?? F(B).categories.length - 1] ?? ""
|
|
3485
|
+
})]), _("pointermove", i, Va), _("keydown", i, Vs), _("pointerdown", l, (e) => Ba(e, "move")), _("pointerup", l, Ha), x("pointercancel", l, Ha), _("pointerdown", u, (e) => Ba(e, "left")), _("pointerup", u, Ha), x("pointercancel", u, Ha), _("pointerdown", d, (e) => Ba(e, "right")), _("pointerup", d, Ha), x("pointercancel", d, Ha), ve(r, "clientHeight", (e) => b(pi, e)), m(e, r);
|
|
3486
3486
|
};
|
|
3487
|
-
|
|
3488
|
-
|
|
3487
|
+
h(pl, (e) => {
|
|
3488
|
+
F(Fa) && F(U) && e(ml);
|
|
3489
3489
|
});
|
|
3490
3490
|
var hl = w(pl, 2), gl = (e) => {
|
|
3491
|
-
var t = Br(), n =
|
|
3492
|
-
|
|
3491
|
+
var t = Br(), n = g(t, !0);
|
|
3492
|
+
E(t), C(() => k(n, F(z).noData)), m(e, t);
|
|
3493
3493
|
};
|
|
3494
|
-
|
|
3495
|
-
|
|
3494
|
+
h(hl, (e) => {
|
|
3495
|
+
F(Zo) && e(gl);
|
|
3496
3496
|
});
|
|
3497
3497
|
var _l = w(hl, 2), vl = (e) => {
|
|
3498
|
-
var t =
|
|
3499
|
-
oe(n, () =>
|
|
3498
|
+
var t = O(), n = T(t);
|
|
3499
|
+
oe(n, () => F(Ws), (e, t) => {
|
|
3500
3500
|
t(e, {
|
|
3501
3501
|
get items() {
|
|
3502
|
-
return
|
|
3502
|
+
return F(Js);
|
|
3503
3503
|
},
|
|
3504
3504
|
get x() {
|
|
3505
|
-
return
|
|
3505
|
+
return F(Us).x;
|
|
3506
3506
|
},
|
|
3507
3507
|
get y() {
|
|
3508
|
-
return
|
|
3508
|
+
return F(Us).y;
|
|
3509
3509
|
},
|
|
3510
|
-
onClose: () =>
|
|
3510
|
+
onClose: () => b(Us, null)
|
|
3511
3511
|
});
|
|
3512
|
-
}),
|
|
3512
|
+
}), m(e, t);
|
|
3513
3513
|
};
|
|
3514
|
-
|
|
3515
|
-
|
|
3514
|
+
h(_l, (e) => {
|
|
3515
|
+
F(Us) && F(Ws) && e(vl);
|
|
3516
3516
|
});
|
|
3517
3517
|
var yl = w(_l, 2), bl = (e) => {
|
|
3518
3518
|
var t = Vr();
|
|
3519
|
-
|
|
3520
|
-
D(t, "placeholder",
|
|
3521
|
-
}),
|
|
3522
|
-
e.key === "Enter" ? (e.preventDefault(), ma()) : e.key === "Escape" && (e.preventDefault(), e.stopPropagation(),
|
|
3523
|
-
}),
|
|
3519
|
+
he(t), ce(() => be(t, () => F(pa), (e) => b(pa, e))), xe(t, (e) => ka?.(e)), C(() => {
|
|
3520
|
+
D(t, "placeholder", F(z).noteText), D(t, "aria-label", F(z).noteText), M(t, `left:${F(fa).left}px; top:${F(fa).top}px;`);
|
|
3521
|
+
}), _("keydown", t, (e) => {
|
|
3522
|
+
e.key === "Enter" ? (e.preventDefault(), ma()) : e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), b(fa, null), b(pa, ""));
|
|
3523
|
+
}), x("blur", t, ma), m(e, t);
|
|
3524
3524
|
};
|
|
3525
|
-
|
|
3526
|
-
|
|
3525
|
+
h(yl, (e) => {
|
|
3526
|
+
F(fa) && e(bl);
|
|
3527
3527
|
});
|
|
3528
3528
|
var xl = w(yl, 2), Sl = (e) => {
|
|
3529
3529
|
var t = Kr();
|
|
3530
3530
|
let n;
|
|
3531
|
-
var r =
|
|
3532
|
-
var t =
|
|
3533
|
-
|
|
3531
|
+
var r = g(t), i = (e) => {
|
|
3532
|
+
var t = O(), n = T(t);
|
|
3533
|
+
ue(n, () => f.tooltip, () => F(ls).ctx), m(e, t);
|
|
3534
3534
|
}, a = (e) => {
|
|
3535
|
-
var t = Gr(), n =
|
|
3536
|
-
|
|
3535
|
+
var t = Gr(), n = T(t), r = g(n, !0);
|
|
3536
|
+
E(n);
|
|
3537
3537
|
var i = w(n, 2);
|
|
3538
|
-
|
|
3539
|
-
var n = Wr(), r =
|
|
3538
|
+
N(i, 17, () => F(ls).rows, S, (e, t) => {
|
|
3539
|
+
var n = Wr(), r = g(n), i = (e) => {
|
|
3540
3540
|
var n = Hr();
|
|
3541
|
-
|
|
3541
|
+
C(() => M(n, `background:${F(t).color}`)), m(e, n);
|
|
3542
3542
|
};
|
|
3543
|
-
|
|
3544
|
-
|
|
3543
|
+
h(r, (e) => {
|
|
3544
|
+
F(t).color && e(i);
|
|
3545
3545
|
});
|
|
3546
3546
|
var a = w(r, 2), o = (e) => {
|
|
3547
|
-
var n = Ur(), r =
|
|
3548
|
-
|
|
3547
|
+
var n = Ur(), r = g(n, !0);
|
|
3548
|
+
E(n), C(() => k(r, F(t).label)), m(e, n);
|
|
3549
3549
|
};
|
|
3550
|
-
|
|
3551
|
-
|
|
3550
|
+
h(a, (e) => {
|
|
3551
|
+
F(t).label && e(o);
|
|
3552
3552
|
});
|
|
3553
|
-
var s = w(a, 2), c =
|
|
3554
|
-
|
|
3555
|
-
}),
|
|
3553
|
+
var s = w(a, 2), c = g(s, !0);
|
|
3554
|
+
E(s), E(n), C(() => k(c, F(t).value)), m(e, n);
|
|
3555
|
+
}), C(() => k(r, F(ls).title)), m(e, t);
|
|
3556
3556
|
};
|
|
3557
|
-
|
|
3557
|
+
h(r, (e) => {
|
|
3558
3558
|
f.tooltip ? e(i) : e(a, -1);
|
|
3559
|
-
}),
|
|
3560
|
-
n =
|
|
3561
|
-
"is-below":
|
|
3559
|
+
}), E(t), C(() => {
|
|
3560
|
+
n = P(t, 1, "sv-grid-chart-tooltip svelte-kvdein", null, n, {
|
|
3561
|
+
"is-below": F(ls).below,
|
|
3562
3562
|
"is-custom": !!f.tooltip,
|
|
3563
|
-
"is-fixed":
|
|
3563
|
+
"is-fixed": F(ls).fixed,
|
|
3564
3564
|
"is-right": Se() === "top-right" || Se() === "bottom-right",
|
|
3565
3565
|
"is-bottom": Se() === "bottom-left" || Se() === "bottom-right",
|
|
3566
|
-
"is-pinned": !!
|
|
3567
|
-
}),
|
|
3568
|
-
}),
|
|
3566
|
+
"is-pinned": !!F(us)
|
|
3567
|
+
}), M(t, `left:${F(ls).left}px; top:${F(ls).top}px;`);
|
|
3568
|
+
}), m(e, t);
|
|
3569
3569
|
};
|
|
3570
|
-
|
|
3571
|
-
|
|
3570
|
+
h(xl, (e) => {
|
|
3571
|
+
F(ls) && e(Sl);
|
|
3572
3572
|
});
|
|
3573
3573
|
var Cl = w(xl, 2), wl = (e) => {
|
|
3574
3574
|
var t = Xr();
|
|
3575
3575
|
let n;
|
|
3576
|
-
var r =
|
|
3577
|
-
|
|
3576
|
+
var r = g(t);
|
|
3577
|
+
N(r, 19, () => F(Xo), (e) => e.label, (e, t, n) => {
|
|
3578
3578
|
var r = Jr();
|
|
3579
3579
|
let i;
|
|
3580
|
-
var a =
|
|
3581
|
-
var r =
|
|
3582
|
-
|
|
3583
|
-
label:
|
|
3584
|
-
color:
|
|
3585
|
-
off:
|
|
3586
|
-
index:
|
|
3587
|
-
})),
|
|
3580
|
+
var a = g(r), o = (e) => {
|
|
3581
|
+
var r = O(), i = T(r);
|
|
3582
|
+
ue(i, () => f.legendItem, () => ({
|
|
3583
|
+
label: F(t).label,
|
|
3584
|
+
color: F(t).color,
|
|
3585
|
+
off: F(t).off,
|
|
3586
|
+
index: F(n)
|
|
3587
|
+
})), m(e, r);
|
|
3588
3588
|
}, s = (e) => {
|
|
3589
|
-
var n = qr(), r =
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
}),
|
|
3589
|
+
var n = qr(), r = T(n), i = w(r);
|
|
3590
|
+
C(() => {
|
|
3591
|
+
M(r, `background:${F(t).off ? "transparent" : F(t).color}; border-color:${F(t).color}`), k(i, ` ${F(t).label ?? ""}`);
|
|
3592
|
+
}), m(e, n);
|
|
3593
3593
|
};
|
|
3594
|
-
|
|
3594
|
+
h(a, (e) => {
|
|
3595
3595
|
f.legendItem ? e(o) : e(s, -1);
|
|
3596
|
-
}),
|
|
3597
|
-
i =
|
|
3598
|
-
"is-off":
|
|
3599
|
-
"is-isolated":
|
|
3600
|
-
}), r.disabled = !
|
|
3601
|
-
}),
|
|
3596
|
+
}), E(r), C(() => {
|
|
3597
|
+
i = P(r, 1, "sv-grid-chart-legend-item svelte-kvdein", null, i, {
|
|
3598
|
+
"is-off": F(t).off,
|
|
3599
|
+
"is-isolated": F(Ei) === F(t).label
|
|
3600
|
+
}), r.disabled = !v() || !F(qo), D(r, "aria-pressed", F(qo) ? !F(t).off : void 0), D(r, "title", v() ? `${F(t).off ? F(z).showSeries : F(z).hideSeries} ${F(t).label} \u00b7 ${F(z).isolateHint}` : F(t).label);
|
|
3601
|
+
}), _("click", r, () => $o(F(t).label)), _("dblclick", r, () => es(F(t).label)), x("pointerenter", r, () => v() && b(Oi, F(t).label, !0)), x("pointerleave", r, () => b(Oi, null)), m(e, r);
|
|
3602
3602
|
});
|
|
3603
3603
|
var i = w(r, 2), a = (e) => {
|
|
3604
|
-
var t = Yr(), n =
|
|
3605
|
-
|
|
3604
|
+
var t = Yr(), n = g(t, !0);
|
|
3605
|
+
E(t), C((e) => k(n, e), [() => F(Jo) ? F(z).showLess : et(F(z).showMore, { n: F(Ho).length - 10 })]), _("click", t, () => b(Jo, !F(Jo))), m(e, t);
|
|
3606
3606
|
};
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
}),
|
|
3607
|
+
h(i, (e) => {
|
|
3608
|
+
F(Yo) && e(a);
|
|
3609
|
+
}), E(t), C(() => n = P(t, 1, "sv-grid-chart-legend svelte-kvdein", null, n, { "is-vertical": F(li) })), ve(t, "clientWidth", (e) => b(di, e)), ve(t, "clientHeight", (e) => b(fi, e)), m(e, t);
|
|
3610
3610
|
};
|
|
3611
|
-
|
|
3612
|
-
|
|
3611
|
+
h(Cl, (e) => {
|
|
3612
|
+
F(ci) && F(Ho).length && e(wl);
|
|
3613
3613
|
});
|
|
3614
3614
|
var Tl = w(Cl, 2), El = (e) => {
|
|
3615
|
-
var t = Zr(), n =
|
|
3616
|
-
|
|
3615
|
+
var t = Zr(), n = g(t, !0);
|
|
3616
|
+
E(t), C(() => k(n, F(Vo))), m(e, t);
|
|
3617
3617
|
};
|
|
3618
|
-
|
|
3618
|
+
h(Tl, (e) => {
|
|
3619
3619
|
ze() && e(El);
|
|
3620
3620
|
});
|
|
3621
|
-
var Dl = w(Tl, 2), Ol =
|
|
3622
|
-
var t =
|
|
3623
|
-
|
|
3621
|
+
var Dl = w(Tl, 2), Ol = g(Dl), kl = g(Ol), Al = g(kl, !0), jl = w(Al), Ml = (e) => {
|
|
3622
|
+
var t = se();
|
|
3623
|
+
C((e) => k(t, e), [() => et(F(z).dataTableCapped, {
|
|
3624
3624
|
shown: Oo,
|
|
3625
|
-
total:
|
|
3626
|
-
})]),
|
|
3625
|
+
total: F(ns).rows.length
|
|
3626
|
+
})]), m(e, t);
|
|
3627
3627
|
};
|
|
3628
|
-
|
|
3629
|
-
|
|
3628
|
+
h(jl, (e) => {
|
|
3629
|
+
F(rs) && e(Ml);
|
|
3630
3630
|
});
|
|
3631
3631
|
var Nl = w(jl), Pl = (e) => {
|
|
3632
|
-
var t =
|
|
3633
|
-
|
|
3632
|
+
var t = se();
|
|
3633
|
+
C(() => k(t, `. ${F(Ye) ?? ""}`)), m(e, t);
|
|
3634
3634
|
};
|
|
3635
|
-
|
|
3636
|
-
Be() &&
|
|
3637
|
-
}),
|
|
3638
|
-
var Fl = w(kl), Il =
|
|
3639
|
-
|
|
3640
|
-
var n = Qr(), r =
|
|
3641
|
-
|
|
3642
|
-
}),
|
|
3635
|
+
h(Nl, (e) => {
|
|
3636
|
+
Be() && F(Ye) && e(Pl);
|
|
3637
|
+
}), E(kl);
|
|
3638
|
+
var Fl = w(kl), Il = g(Fl);
|
|
3639
|
+
N(Il, 20, () => F(ns).cols, (e) => e, (e, t) => {
|
|
3640
|
+
var n = Qr(), r = g(n, !0);
|
|
3641
|
+
E(n), C(() => k(r, t)), m(e, n);
|
|
3642
|
+
}), E(Il), E(Fl);
|
|
3643
3643
|
var Ll = w(Fl);
|
|
3644
|
-
|
|
3644
|
+
N(Ll, 21, () => F(is), S, (e, t) => {
|
|
3645
3645
|
var n = ei();
|
|
3646
|
-
|
|
3647
|
-
var n = $r(), r =
|
|
3648
|
-
|
|
3649
|
-
}),
|
|
3650
|
-
}),
|
|
3651
|
-
t =
|
|
3652
|
-
"is-interactive":
|
|
3646
|
+
N(n, 21, () => F(t), S, (e, t) => {
|
|
3647
|
+
var n = $r(), r = g(n, !0);
|
|
3648
|
+
E(n), C(() => k(r, F(t))), m(e, n);
|
|
3649
|
+
}), E(n), m(e, n);
|
|
3650
|
+
}), E(Ll), E(Ol), E(Dl), E(rc), me(rc, (e) => b(ss, e), () => F(ss)), C((e, a, o) => {
|
|
3651
|
+
t = P($, 0, "sv-grid-chart-svg svelte-kvdein", null, t, {
|
|
3652
|
+
"is-interactive": v(),
|
|
3653
3653
|
"is-clickable": !!f.onSelect || !!f.onDrill,
|
|
3654
|
-
"is-zoomable": !!
|
|
3655
|
-
"is-pannable": !!
|
|
3656
|
-
"is-annotating":
|
|
3657
|
-
"is-dragging": !!
|
|
3658
|
-
"is-drawing": !!
|
|
3659
|
-
}), D($, "viewBox", `0 0 ${
|
|
3660
|
-
"is-enter-grow":
|
|
3661
|
-
"is-enter-none":
|
|
3662
|
-
}), D(bc, "clip-path",
|
|
3663
|
-
"is-enter-grow":
|
|
3664
|
-
"is-enter-none":
|
|
3665
|
-
}), D(Mc, "clip-path",
|
|
3654
|
+
"is-zoomable": !!F(vi)?.drag && F(K) && !F(xi) && !F(yi),
|
|
3655
|
+
"is-pannable": !!F(vi)?.pan && F(K) && F(Ii) && F(yi),
|
|
3656
|
+
"is-annotating": F(xi),
|
|
3657
|
+
"is-dragging": !!F(Zi),
|
|
3658
|
+
"is-drawing": !!F(la)
|
|
3659
|
+
}), D($, "viewBox", `0 0 ${F(G).width} ${F(G).height}`), D($, "role", v() ? "group" : "img"), D($, "aria-label", a), D($, "aria-description", Be() && F(Ye) ? F(Ye) : void 0), D($, "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, {
|
|
3660
|
+
"is-enter-grow": F(ao) === "grow",
|
|
3661
|
+
"is-enter-none": F(ao) === "none"
|
|
3662
|
+
}), D(bc, "clip-path", F(K) ? `url(#${Ai}-plot)` : void 0), i = P(Mc, 0, "sv-grid-chart-marks svelte-kvdein", null, i, {
|
|
3663
|
+
"is-enter-grow": F(ao) === "grow",
|
|
3664
|
+
"is-enter-none": F(ao) === "none"
|
|
3665
|
+
}), D(Mc, "clip-path", F(K) ? `url(#${Ai}-plot)` : void 0), D(Ol, "id", `${Ai}-table`), k(Al, o);
|
|
3666
3666
|
}, [
|
|
3667
|
-
() => ee(
|
|
3668
|
-
() => et(
|
|
3669
|
-
() => et(
|
|
3670
|
-
]),
|
|
3667
|
+
() => ee(F(B).style) || void 0,
|
|
3668
|
+
() => et(F(z).chartLabel, { type: F(B).type }),
|
|
3669
|
+
() => et(F(z).dataTable, { type: F(B).type })
|
|
3670
|
+
]), _("pointerdown", $, na), _("pointermove", $, (e) => {
|
|
3671
3671
|
ra(e), Ca(e);
|
|
3672
|
-
}),
|
|
3673
|
-
ia(e),
|
|
3674
|
-
}),
|
|
3675
|
-
ia(e),
|
|
3676
|
-
}),
|
|
3677
|
-
}
|
|
3678
|
-
return
|
|
3679
|
-
ic =
|
|
3672
|
+
}), _("pointerup", $, (e) => {
|
|
3673
|
+
ia(e), b(ha, null);
|
|
3674
|
+
}), x("pointercancel", $, (e) => {
|
|
3675
|
+
ia(e), b(ha, null);
|
|
3676
|
+
}), _("click", $, Sa), _("keydown", $, Ea), x("wheel", $, Gi), _("contextmenu", $, Gs), _("dblclick", $, aa), ve(rc, "clientWidth", (e) => b(ni, e)), ve(rc, "clientHeight", (e) => b(ri, e));
|
|
3677
|
+
}
|
|
3678
|
+
return C((e, t, n) => {
|
|
3679
|
+
ic = P(rc, 1, "sv-grid-chart svelte-kvdein", null, ic, {
|
|
3680
3680
|
"is-autosize": Ke(),
|
|
3681
|
-
"is-legend-top":
|
|
3682
|
-
"is-legend-left":
|
|
3683
|
-
"is-legend-right":
|
|
3684
|
-
}),
|
|
3681
|
+
"is-legend-top": F(ci) === "top",
|
|
3682
|
+
"is-legend-left": F(ci) === "left",
|
|
3683
|
+
"is-legend-right": F(ci) === "right"
|
|
3684
|
+
}), M(rc, e);
|
|
3685
3685
|
}, [
|
|
3686
|
-
() => ee(
|
|
3687
|
-
() => et(
|
|
3688
|
-
() => et(
|
|
3689
|
-
]),
|
|
3686
|
+
() => ee(F(B).style) || void 0,
|
|
3687
|
+
() => et(F(z).chartLabel, { type: F(B).type }),
|
|
3688
|
+
() => et(F(z).dataTable, { type: F(B).type })
|
|
3689
|
+
]), m(ne, rc), _e(nc);
|
|
3690
3690
|
}
|
|
3691
|
-
|
|
3691
|
+
le([
|
|
3692
3692
|
"click",
|
|
3693
3693
|
"pointerdown",
|
|
3694
3694
|
"pointermove",
|