highcharts 13.0.1 → 13.0.2
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/bower.json +2 -3
- package/es-modules/Accessibility/A11yI18n.js +4 -4
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +6 -4
- package/es-modules/Accessibility/Components/LegendComponent.js +2 -2
- package/es-modules/Accessibility/Components/NavigatorComponent.js +2 -2
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +13 -10
- package/es-modules/Accessibility/Components/ZoomComponent.js +2 -2
- package/es-modules/Accessibility/FocusBorder.js +2 -2
- package/es-modules/Accessibility/Options/DeprecatedOptions.js +1 -2
- package/es-modules/Core/Animation/AnimationUtilities.js +3 -2
- package/es-modules/Core/Axis/Axis.js +48 -57
- package/es-modules/Core/Axis/Axis3DComposition.js +8 -6
- package/es-modules/Core/Axis/BrokenAxis.js +6 -5
- package/es-modules/Core/Axis/Color/ColorAxis.js +17 -10
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +2 -2
- package/es-modules/Core/Axis/GridAxis.js +4 -4
- package/es-modules/Core/Axis/LogarithmicAxis.js +5 -3
- package/es-modules/Core/Axis/NavigatorAxisComposition.js +2 -2
- package/es-modules/Core/Axis/OrdinalAxis.js +9 -7
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +3 -2
- package/es-modules/Core/Axis/RadialAxis.js +15 -9
- package/es-modules/Core/Axis/ScrollbarAxis.js +3 -3
- package/es-modules/Core/Axis/Stacking/StackItem.js +5 -5
- package/es-modules/Core/Axis/Stacking/StackingAxis.js +4 -4
- package/es-modules/Core/Axis/Tick.js +10 -11
- package/es-modules/Core/Axis/TreeGrid/TreeGridTick.js +3 -3
- package/es-modules/Core/Chart/Chart.js +14 -14
- package/es-modules/Core/Chart/Chart3D.js +3 -3
- package/es-modules/Core/Chart/ChartDefaults.js +23 -0
- package/es-modules/Core/Chart/MapChart.js +7 -5
- package/es-modules/Core/Chart/StockChart.js +15 -11
- package/es-modules/Core/Color/Color.js +3 -1
- package/es-modules/Core/Defaults.js +35 -0
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/Legend/Legend.js +16 -12
- package/es-modules/Core/Legend/LegendSymbol.js +2 -2
- package/es-modules/Core/MSPointer.js +2 -2
- package/es-modules/Core/Math3D.js +6 -7
- package/es-modules/Core/Pointer.js +9 -9
- package/es-modules/Core/Renderer/RendererUtilities.js +2 -2
- package/es-modules/Core/Renderer/SVG/SVGElement.js +11 -9
- package/es-modules/Core/Renderer/SVG/SVGElement3D.js +2 -2
- package/es-modules/Core/Renderer/SVG/SVGLabel.js +5 -5
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +5 -5
- package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +11 -9
- package/es-modules/Core/Renderer/SVG/Symbols.js +6 -5
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +2 -2
- package/es-modules/Core/Responsive.js +7 -5
- package/es-modules/Core/Series/DataLabel.js +8 -6
- package/es-modules/Core/Series/OverlappingDataLabels.js +5 -2
- package/es-modules/Core/Series/Point.js +3 -3
- package/es-modules/Core/Series/Series.js +37 -21
- package/es-modules/Core/Series/Series3D.js +2 -2
- package/es-modules/Core/Templating.js +2 -2
- package/es-modules/Core/Tooltip.js +11 -7
- package/es-modules/Core/Utilities.js +4 -3
- package/es-modules/Data/Connectors/DataConnector.js +2 -2
- package/es-modules/Data/Connectors/GoogleSheetsConnector.js +2 -2
- package/es-modules/Data/DataTable.js +17 -0
- package/es-modules/Extensions/Annotations/Annotation.js +4 -4
- package/es-modules/Extensions/Annotations/AnnotationChart.js +2 -2
- package/es-modules/Extensions/Annotations/ControlPoint.js +2 -2
- package/es-modules/Extensions/Annotations/Controllables/ControllableLabel.js +2 -2
- package/es-modules/Extensions/Annotations/EventEmitter.js +4 -4
- package/es-modules/Extensions/Annotations/NavigationBindings.js +6 -3
- package/es-modules/Extensions/Annotations/NavigationBindingsUtilities.js +2 -2
- package/es-modules/Extensions/Annotations/Popup/Popup.js +3 -2
- package/es-modules/Extensions/Annotations/Popup/PopupAnnotations.js +4 -6
- package/es-modules/Extensions/Annotations/Types/Measure.js +3 -3
- package/es-modules/Extensions/Annotations/Types/VerticalLine.js +3 -3
- package/es-modules/Extensions/Boost/BoostChart.js +11 -4
- package/es-modules/Extensions/Boost/BoostSeries.js +8 -9
- package/es-modules/Extensions/Boost/WGLRenderer.js +9 -6
- package/es-modules/Extensions/Boost/WGLShader.js +3 -3
- package/es-modules/Extensions/BoostCanvas.js +2 -2
- package/es-modules/Extensions/Breadcrumbs/Breadcrumbs.js +5 -4
- package/es-modules/Extensions/DataGrouping/DataGrouping.js +2 -2
- package/es-modules/Extensions/DataGrouping/DataGroupingAxisComposition.js +4 -3
- package/es-modules/Extensions/DataGrouping/DataGroupingSeriesComposition.js +2 -2
- package/es-modules/Extensions/DraggablePoints/DragDropProps.js +2 -3
- package/es-modules/Extensions/ExportData/ExportData.js +17 -16
- package/es-modules/Extensions/Exporting/Exporting.js +7 -7
- package/es-modules/Extensions/MouseWheelZoom/MouseWheelZoom.js +2 -2
- package/es-modules/Extensions/Pane/PaneComposition.js +2 -2
- package/es-modules/Extensions/ParallelCoordinates/ParallelAxis.js +2 -2
- package/es-modules/Extensions/PatternFill.js +7 -5
- package/es-modules/Extensions/PriceIndication.js +5 -4
- package/es-modules/Extensions/SeriesLabel/SeriesLabel.js +7 -7
- package/es-modules/Extensions/Sonification/MIDI.js +2 -3
- package/es-modules/Extensions/Sonification/Sonification.js +2 -2
- package/es-modules/Extensions/Sonification/SonificationSpeaker.js +3 -2
- package/es-modules/Extensions/Sonification/SynthPatch.js +3 -3
- package/es-modules/Extensions/Sonification/TimelineFromChart.js +11 -11
- package/es-modules/Gantt/Legacy.js +2 -2
- package/es-modules/Gantt/Pathfinder.js +3 -3
- package/es-modules/Gantt/PathfinderAlgorithms.js +4 -3
- package/es-modules/Gantt/Tree.js +1 -1
- package/es-modules/Maps/MapNavigation.js +4 -4
- package/es-modules/Maps/MapPointer.js +2 -2
- package/es-modules/Maps/MapView.js +2 -2
- package/es-modules/Series/ArcDiagram/ArcDiagramSeries.js +8 -6
- package/es-modules/Series/Area/AreaSeries.js +4 -5
- package/es-modules/Series/BoxPlot/BoxPlotSeries.js +13 -4
- package/es-modules/Series/Bubble/BubbleLegendItem.js +10 -6
- package/es-modules/Series/Bubble/BubbleSeries.js +10 -9
- package/es-modules/Series/Bullet/BulletSeries.js +17 -10
- package/es-modules/Series/CenteredUtilities.js +7 -5
- package/es-modules/Series/Column/ColumnSeries.js +2 -2
- package/es-modules/Series/Column3D/Column3DComposition.js +6 -5
- package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +4 -4
- package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +4 -2
- package/es-modules/Series/Cylinder/CylinderComposition.js +2 -2
- package/es-modules/Series/DataModifyComposition.js +9 -7
- package/es-modules/Series/DotPlot/DotPlotSeries.js +3 -2
- package/es-modules/Series/Dumbbell/DumbbellPoint.js +14 -3
- package/es-modules/Series/Dumbbell/DumbbellSeries.js +24 -7
- package/es-modules/Series/FlowMap/FlowMapPoint.js +5 -3
- package/es-modules/Series/FlowMap/FlowMapSeries.js +17 -9
- package/es-modules/Series/Funnel/FunnelSeries.js +2 -2
- package/es-modules/Series/Funnel3D/Funnel3DSeries.js +7 -5
- package/es-modules/Series/Gauge/GaugeSeries.js +2 -2
- package/es-modules/Series/GeoHeatmap/GeoHeatmapSeries.js +4 -4
- package/es-modules/Series/Heatmap/HeatmapPoint.js +6 -6
- package/es-modules/Series/Heatmap/HeatmapPointOptions.js +12 -0
- package/es-modules/Series/Heatmap/HeatmapSeries.js +13 -13
- package/es-modules/Series/Heatmap/HeatmapSeriesOptions.js +12 -0
- package/es-modules/Series/Histogram/HistogramPoint.js +17 -0
- package/es-modules/Series/Histogram/HistogramPointOptions.js +12 -0
- package/es-modules/Series/Histogram/HistogramSeries.js +14 -2
- package/es-modules/Series/Histogram/HistogramSeriesOptions.js +12 -0
- package/es-modules/Series/InterpolationUtilities.js +5 -5
- package/es-modules/Series/Item/ItemPointOptions.js +14 -0
- package/es-modules/Series/Item/ItemSeries.js +18 -6
- package/es-modules/Series/Item/ItemSeriesOptions.js +14 -0
- package/es-modules/Series/Map/MapPoint.js +5 -3
- package/es-modules/Series/Map/MapSeries.js +5 -8
- package/es-modules/Series/Networkgraph/NetworkgraphPoint.js +3 -3
- package/es-modules/Series/Networkgraph/NetworkgraphSeries.js +4 -2
- package/es-modules/Series/Networkgraph/ReingoldFruchtermanLayout.js +18 -9
- package/es-modules/Series/NodesComposition.js +9 -10
- package/es-modules/Series/Organization/OrganizationPoint.js +3 -2
- package/es-modules/Series/PackedBubble/PackedBubbleLayout.js +3 -3
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +5 -5
- package/es-modules/Series/Pictorial/PictorialSeries.js +4 -2
- package/es-modules/Series/Pie/PieDataLabel.js +2 -2
- package/es-modules/Series/Pie/PiePoint.js +2 -2
- package/es-modules/Series/Pie/PieSeries.js +3 -2
- package/es-modules/Series/Pie3D/Pie3DSeries.js +8 -4
- package/es-modules/Series/PolarComposition.js +8 -7
- package/es-modules/Series/Sankey/SankeySeries.js +11 -5
- package/es-modules/Series/Scatter/ScatterSeries.js +6 -5
- package/es-modules/Series/SolidGauge/SolidGaugeSeries.js +2 -2
- package/es-modules/Series/Spline/SplineSeries.js +5 -5
- package/es-modules/Series/TiledWebMap/TiledWebMapSeries.js +8 -6
- package/es-modules/Series/Tilemap/TilemapShapes.js +2 -2
- package/es-modules/Series/Timeline/TimelinePoint.js +2 -2
- package/es-modules/Series/Timeline/TimelineSeries.js +4 -3
- package/es-modules/Series/TreeUtilities.js +16 -7
- package/es-modules/Series/Treegraph/TreegraphLink.js +2 -2
- package/es-modules/Series/Treemap/TreemapPoint.js +2 -2
- package/es-modules/Series/Treemap/TreemapSeries.js +14 -11
- package/es-modules/Series/VariablePie/VariablePieSeries.js +6 -4
- package/es-modules/Series/Variwide/VariwideSeries.js +2 -2
- package/es-modules/Series/Waterfall/WaterfallSeries.js +2 -2
- package/es-modules/Series/Windbarb/WindbarbSeries.js +2 -2
- package/es-modules/Shared/TimeBase.js +8 -2
- package/es-modules/Shared/Utilities.js +9 -7
- package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +3 -3
- package/es-modules/Stock/Indicators/DPO/DPOIndicator.js +4 -3
- package/es-modules/Stock/Indicators/RSI/RSIIndicator.js +1 -1
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +2 -2
- package/es-modules/Stock/Navigator/ChartNavigatorComposition.js +4 -4
- package/es-modules/Stock/Navigator/Navigator.js +26 -26
- package/es-modules/Stock/Navigator/StandaloneNavigator.js +4 -4
- package/es-modules/Stock/RangeSelector/RangeSelector.js +15 -11
- package/es-modules/Stock/RangeSelector/RangeSelectorComposition.js +3 -3
- package/es-modules/Stock/Scrollbar/Scrollbar.js +8 -7
- package/es-modules/Stock/StockTools/StockToolbar.js +5 -5
- package/es-modules/Stock/StockTools/StockTools.js +2 -2
- package/es-modules/Stock/StockTools/StockToolsGui.js +4 -2
- package/es-modules/masters/highcharts-3d.src.js +1 -1
- package/es-modules/masters/highcharts-autoload.src.js +1 -1
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +1 -1
- package/es-modules/masters/highcharts.src.js +7 -2
- package/es-modules/masters/highmaps.src.js +1 -1
- package/es-modules/masters/highstock.src.js +1 -1
- package/es-modules/masters/i18n/fr-FR.src.d.ts +1 -1
- package/es-modules/masters/i18n/fr-FR.src.js +1 -1
- package/es-modules/masters/i18n/nb-NO.src.d.ts +1 -1
- package/es-modules/masters/i18n/nb-NO.src.js +1 -1
- package/es-modules/masters/i18n/zh-CN.src.d.ts +1 -1
- package/es-modules/masters/i18n/zh-CN.src.js +1 -1
- package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
- package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
- package/es-modules/masters/indicators/ao.src.js +1 -1
- package/es-modules/masters/indicators/apo.src.js +1 -1
- package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
- package/es-modules/masters/indicators/aroon.src.js +1 -1
- package/es-modules/masters/indicators/atr.src.js +1 -1
- package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
- package/es-modules/masters/indicators/cci.src.js +1 -1
- package/es-modules/masters/indicators/chaikin.src.js +1 -1
- package/es-modules/masters/indicators/cmf.src.js +1 -1
- package/es-modules/masters/indicators/cmo.src.js +1 -1
- package/es-modules/masters/indicators/dema.src.js +1 -1
- package/es-modules/masters/indicators/disparity-index.src.js +1 -1
- package/es-modules/masters/indicators/dmi.src.js +1 -1
- package/es-modules/masters/indicators/dpo.src.js +1 -1
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/masters/indicators/indicators-all.src.js +1 -1
- package/es-modules/masters/indicators/indicators.src.js +1 -1
- package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
- package/es-modules/masters/indicators/klinger.src.js +1 -1
- package/es-modules/masters/indicators/macd.src.js +1 -1
- package/es-modules/masters/indicators/mfi.src.js +1 -1
- package/es-modules/masters/indicators/momentum.src.js +1 -1
- package/es-modules/masters/indicators/natr.src.js +1 -1
- package/es-modules/masters/indicators/obv.src.js +1 -1
- package/es-modules/masters/indicators/pivot-points.src.js +1 -1
- package/es-modules/masters/indicators/ppo.src.js +1 -1
- package/es-modules/masters/indicators/price-channel.src.js +1 -1
- package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
- package/es-modules/masters/indicators/psar.src.js +1 -1
- package/es-modules/masters/indicators/regressions.src.js +1 -1
- package/es-modules/masters/indicators/roc.src.js +1 -1
- package/es-modules/masters/indicators/rsi.src.js +1 -1
- package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
- package/es-modules/masters/indicators/stochastic.src.js +1 -1
- package/es-modules/masters/indicators/supertrend.src.js +1 -1
- package/es-modules/masters/indicators/tema.src.js +1 -1
- package/es-modules/masters/indicators/trendline.src.js +1 -1
- package/es-modules/masters/indicators/trix.src.js +1 -1
- package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
- package/es-modules/masters/indicators/vwap.src.js +1 -1
- package/es-modules/masters/indicators/williams-r.src.js +1 -1
- package/es-modules/masters/indicators/wma.src.js +1 -1
- package/es-modules/masters/indicators/zigzag.src.js +1 -1
- package/es-modules/masters/modules/accessibility.src.js +1 -1
- package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
- package/es-modules/masters/modules/annotations.src.js +1 -1
- package/es-modules/masters/modules/arc-diagram.src.js +1 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
- package/es-modules/masters/modules/boost-canvas.src.js +1 -1
- package/es-modules/masters/modules/boost.src.js +1 -1
- package/es-modules/masters/modules/broken-axis.src.js +1 -1
- package/es-modules/masters/modules/bullet.src.js +1 -1
- package/es-modules/masters/modules/coloraxis.src.js +1 -1
- package/es-modules/masters/modules/contour.src.js +1 -1
- package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
- package/es-modules/masters/modules/cylinder.src.js +1 -1
- package/es-modules/masters/modules/data-sorting.src.js +1 -1
- package/es-modules/masters/modules/data-tools.src.js +1 -1
- package/es-modules/masters/modules/data.src.js +1 -1
- package/es-modules/masters/modules/datagrouping.src.js +1 -1
- package/es-modules/masters/modules/debugger.src.js +1 -1
- package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
- package/es-modules/masters/modules/dotplot.src.js +1 -1
- package/es-modules/masters/modules/drag-panes.src.js +1 -1
- package/es-modules/masters/modules/draggable-points.src.js +1 -1
- package/es-modules/masters/modules/drilldown.src.js +1 -1
- package/es-modules/masters/modules/dumbbell.src.js +1 -1
- package/es-modules/masters/modules/export-data.src.js +1 -1
- package/es-modules/masters/modules/exporting.src.js +1 -1
- package/es-modules/masters/modules/flowmap.src.js +1 -1
- package/es-modules/masters/modules/full-screen.src.js +1 -1
- package/es-modules/masters/modules/funnel.src.js +1 -1
- package/es-modules/masters/modules/funnel3d.src.js +1 -1
- package/es-modules/masters/modules/gantt.src.js +1 -1
- package/es-modules/masters/modules/geoheatmap.src.js +1 -1
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +1 -1
- package/es-modules/masters/modules/heikinashi.src.js +1 -1
- package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
- package/es-modules/masters/modules/item-series.src.js +1 -1
- package/es-modules/masters/modules/lollipop.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +1 -1
- package/es-modules/masters/modules/marker-clusters.src.js +1 -1
- package/es-modules/masters/modules/mouse-wheel-zoom.src.js +1 -1
- package/es-modules/masters/modules/navigator.src.js +1 -1
- package/es-modules/masters/modules/networkgraph.src.js +1 -1
- package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
- package/es-modules/masters/modules/non-cartesian-zoom.src.js +1 -1
- package/es-modules/masters/modules/offline-exporting.src.js +1 -1
- package/es-modules/masters/modules/organization.src.js +1 -1
- package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
- package/es-modules/masters/modules/pareto.src.js +1 -1
- package/es-modules/masters/modules/pathfinder.src.js +1 -1
- package/es-modules/masters/modules/pattern-fill.src.js +1 -1
- package/es-modules/masters/modules/pictorial.src.js +1 -1
- package/es-modules/masters/modules/pointandfigure.src.js +1 -1
- package/es-modules/masters/modules/price-indicator.src.js +1 -1
- package/es-modules/masters/modules/pyramid3d.src.js +1 -1
- package/es-modules/masters/modules/renko.src.js +1 -1
- package/es-modules/masters/modules/sankey.src.js +1 -1
- package/es-modules/masters/modules/series-label.src.js +1 -1
- package/es-modules/masters/modules/series-on-point.src.js +1 -1
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/sonification.src.js +1 -1
- package/es-modules/masters/modules/static-scale.src.js +1 -1
- package/es-modules/masters/modules/stock-tools.src.js +1 -1
- package/es-modules/masters/modules/stock.src.js +1 -1
- package/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/es-modules/masters/modules/sunburst.src.js +1 -1
- package/es-modules/masters/modules/textpath.src.js +1 -1
- package/es-modules/masters/modules/tiledwebmap.src.js +1 -1
- package/es-modules/masters/modules/tilemap.src.js +1 -1
- package/es-modules/masters/modules/timeline.src.js +1 -1
- package/es-modules/masters/modules/treegraph.src.js +1 -1
- package/es-modules/masters/modules/treegrid.src.js +1 -1
- package/es-modules/masters/modules/treemap.src.js +1 -1
- package/es-modules/masters/modules/variable-pie.src.js +1 -1
- package/es-modules/masters/modules/variwide.src.js +1 -1
- package/es-modules/masters/modules/vector.src.js +1 -1
- package/es-modules/masters/modules/venn.src.js +1 -1
- package/es-modules/masters/modules/windbarb.src.js +1 -1
- package/es-modules/masters/modules/wordcloud.src.js +1 -1
- package/es-modules/masters/modules/xrange.src.js +1 -1
- package/es-modules/masters/standalone-navigator.src.js +1 -1
- package/es-modules/masters/themes/adaptive.src.js +1 -1
- package/es-modules/masters/themes/avocado.src.js +1 -1
- package/es-modules/masters/themes/dark-unica.src.js +1 -1
- package/es-modules/masters/themes/grid-light.src.js +1 -1
- package/es-modules/masters/themes/high-contrast.src.js +1 -1
- package/es-modules/masters/themes/sand-signika.src.js +1 -1
- package/es-modules/masters/themes/sunset.src.js +1 -1
- package/es-modules/tsconfig.tsbuildinfo +1 -1
- package/esm/highcharts-3d.js +2 -2
- package/esm/highcharts-3d.src.js +40 -32
- package/esm/highcharts-autoload.js +1 -1
- package/esm/highcharts-autoload.src.js +1 -1
- package/esm/highcharts-gantt.js +1 -1
- package/esm/highcharts-gantt.src.js +1 -1
- package/esm/highcharts-more.js +2 -2
- package/esm/highcharts-more.src.js +90 -56
- package/esm/highcharts.js +4 -4
- package/esm/highcharts.src.js +312 -207
- package/esm/highmaps.js +1 -1
- package/esm/highmaps.src.js +1 -1
- package/esm/highstock.js +1 -1
- package/esm/highstock.src.js +1 -1
- package/esm/i18n/fr-FR.js +1 -1
- package/esm/i18n/fr-FR.src.js +1 -1
- package/esm/i18n/nb-NO.js +1 -1
- package/esm/i18n/nb-NO.src.js +1 -1
- package/esm/i18n/zh-CN.js +1 -1
- package/esm/i18n/zh-CN.src.js +1 -1
- package/esm/indicators/acceleration-bands.js +1 -1
- package/esm/indicators/acceleration-bands.src.js +1 -1
- package/esm/indicators/accumulation-distribution.js +1 -1
- package/esm/indicators/accumulation-distribution.src.js +1 -1
- package/esm/indicators/ao.js +1 -1
- package/esm/indicators/ao.src.js +1 -1
- package/esm/indicators/apo.js +1 -1
- package/esm/indicators/apo.src.js +1 -1
- package/esm/indicators/aroon-oscillator.js +1 -1
- package/esm/indicators/aroon-oscillator.src.js +1 -1
- package/esm/indicators/aroon.js +2 -2
- package/esm/indicators/aroon.src.js +3 -3
- package/esm/indicators/atr.js +1 -1
- package/esm/indicators/atr.src.js +1 -1
- package/esm/indicators/bollinger-bands.js +1 -1
- package/esm/indicators/bollinger-bands.src.js +1 -1
- package/esm/indicators/cci.js +1 -1
- package/esm/indicators/cci.src.js +1 -1
- package/esm/indicators/chaikin.js +1 -1
- package/esm/indicators/chaikin.src.js +1 -1
- package/esm/indicators/cmf.js +1 -1
- package/esm/indicators/cmf.src.js +1 -1
- package/esm/indicators/cmo.js +1 -1
- package/esm/indicators/cmo.src.js +1 -1
- package/esm/indicators/dema.js +1 -1
- package/esm/indicators/dema.src.js +1 -1
- package/esm/indicators/disparity-index.js +1 -1
- package/esm/indicators/disparity-index.src.js +1 -1
- package/esm/indicators/dmi.js +1 -1
- package/esm/indicators/dmi.src.js +1 -1
- package/esm/indicators/dpo.js +2 -2
- package/esm/indicators/dpo.src.js +4 -3
- package/esm/indicators/ichimoku-kinko-hyo.js +1 -1
- package/esm/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/esm/indicators/indicators-all.js +2 -2
- package/esm/indicators/indicators-all.src.js +8 -7
- package/esm/indicators/indicators.js +2 -2
- package/esm/indicators/indicators.src.js +2 -2
- package/esm/indicators/keltner-channels.js +1 -1
- package/esm/indicators/keltner-channels.src.js +1 -1
- package/esm/indicators/klinger.js +1 -1
- package/esm/indicators/klinger.src.js +1 -1
- package/esm/indicators/macd.js +1 -1
- package/esm/indicators/macd.src.js +1 -1
- package/esm/indicators/mfi.js +1 -1
- package/esm/indicators/mfi.src.js +1 -1
- package/esm/indicators/momentum.js +1 -1
- package/esm/indicators/momentum.src.js +1 -1
- package/esm/indicators/natr.js +1 -1
- package/esm/indicators/natr.src.js +1 -1
- package/esm/indicators/obv.js +1 -1
- package/esm/indicators/obv.src.js +1 -1
- package/esm/indicators/pivot-points.js +1 -1
- package/esm/indicators/pivot-points.src.js +1 -1
- package/esm/indicators/ppo.js +1 -1
- package/esm/indicators/ppo.src.js +1 -1
- package/esm/indicators/price-channel.js +1 -1
- package/esm/indicators/price-channel.src.js +1 -1
- package/esm/indicators/price-envelopes.js +1 -1
- package/esm/indicators/price-envelopes.src.js +1 -1
- package/esm/indicators/psar.js +1 -1
- package/esm/indicators/psar.src.js +1 -1
- package/esm/indicators/regressions.js +1 -1
- package/esm/indicators/regressions.src.js +1 -1
- package/esm/indicators/roc.js +1 -1
- package/esm/indicators/roc.src.js +1 -1
- package/esm/indicators/rsi.js +1 -1
- package/esm/indicators/rsi.src.js +2 -2
- package/esm/indicators/slow-stochastic.js +1 -1
- package/esm/indicators/slow-stochastic.src.js +1 -1
- package/esm/indicators/stochastic.js +1 -1
- package/esm/indicators/stochastic.src.js +1 -1
- package/esm/indicators/supertrend.js +1 -1
- package/esm/indicators/supertrend.src.js +1 -1
- package/esm/indicators/tema.js +1 -1
- package/esm/indicators/tema.src.js +1 -1
- package/esm/indicators/trendline.js +1 -1
- package/esm/indicators/trendline.src.js +1 -1
- package/esm/indicators/trix.js +1 -1
- package/esm/indicators/trix.src.js +1 -1
- package/esm/indicators/volume-by-price.js +1 -1
- package/esm/indicators/volume-by-price.src.js +1 -1
- package/esm/indicators/vwap.js +1 -1
- package/esm/indicators/vwap.src.js +1 -1
- package/esm/indicators/williams-r.js +1 -1
- package/esm/indicators/williams-r.src.js +1 -1
- package/esm/indicators/wma.js +1 -1
- package/esm/indicators/wma.src.js +1 -1
- package/esm/indicators/zigzag.js +1 -1
- package/esm/indicators/zigzag.src.js +1 -1
- package/esm/modules/accessibility.js +2 -2
- package/esm/modules/accessibility.src.js +69 -63
- package/esm/modules/annotations-advanced.js +3 -3
- package/esm/modules/annotations-advanced.src.js +25 -23
- package/esm/modules/annotations.js +3 -3
- package/esm/modules/annotations.src.js +21 -19
- package/esm/modules/arc-diagram.js +2 -2
- package/esm/modules/arc-diagram.src.js +16 -15
- package/esm/modules/arrow-symbols.js +1 -1
- package/esm/modules/arrow-symbols.src.js +1 -1
- package/esm/modules/boost-canvas.js +2 -2
- package/esm/modules/boost-canvas.src.js +29 -20
- package/esm/modules/boost.js +2 -2
- package/esm/modules/boost.src.js +28 -19
- package/esm/modules/broken-axis.js +2 -2
- package/esm/modules/broken-axis.src.js +6 -5
- package/esm/modules/bullet.js +2 -2
- package/esm/modules/bullet.src.js +17 -10
- package/esm/modules/coloraxis.js +2 -2
- package/esm/modules/coloraxis.src.js +18 -11
- package/esm/modules/contour.js +1 -1
- package/esm/modules/contour.src.js +1 -1
- package/esm/modules/current-date-indicator.js +1 -1
- package/esm/modules/current-date-indicator.src.js +1 -1
- package/esm/modules/cylinder.js +2 -2
- package/esm/modules/cylinder.src.js +9 -10
- package/esm/modules/data-sorting.js +1 -1
- package/esm/modules/data-sorting.src.js +1 -1
- package/esm/modules/data-tools.js +2 -2
- package/esm/modules/data-tools.src.js +20 -3
- package/esm/modules/data.js +1 -1
- package/esm/modules/data.src.js +1 -1
- package/esm/modules/datagrouping.js +2 -2
- package/esm/modules/datagrouping.src.js +6 -5
- package/esm/modules/debugger.js +1 -1
- package/esm/modules/debugger.src.js +1 -1
- package/esm/modules/dependency-wheel.js +1 -1
- package/esm/modules/dependency-wheel.src.js +1 -1
- package/esm/modules/dotplot.js +2 -2
- package/esm/modules/dotplot.src.js +3 -2
- package/esm/modules/drag-panes.js +1 -1
- package/esm/modules/drag-panes.src.js +1 -1
- package/esm/modules/draggable-points.js +2 -2
- package/esm/modules/draggable-points.src.js +2 -3
- package/esm/modules/drilldown.js +2 -2
- package/esm/modules/drilldown.src.js +5 -4
- package/esm/modules/dumbbell.js +2 -2
- package/esm/modules/dumbbell.src.js +37 -9
- package/esm/modules/export-data.js +2 -2
- package/esm/modules/export-data.src.js +17 -16
- package/esm/modules/exporting.js +2 -2
- package/esm/modules/exporting.src.js +7 -7
- package/esm/modules/flowmap.js +2 -2
- package/esm/modules/flowmap.src.js +21 -11
- package/esm/modules/full-screen.js +1 -1
- package/esm/modules/full-screen.src.js +1 -1
- package/esm/modules/funnel.js +2 -2
- package/esm/modules/funnel.src.js +2 -2
- package/esm/modules/funnel3d.js +2 -2
- package/esm/modules/funnel3d.src.js +14 -13
- package/esm/modules/gantt.js +2 -2
- package/esm/modules/gantt.src.js +93 -76
- package/esm/modules/geoheatmap.js +2 -2
- package/esm/modules/geoheatmap.src.js +8 -8
- package/esm/modules/grid-axis.js +2 -2
- package/esm/modules/grid-axis.src.js +4 -4
- package/esm/modules/heatmap.js +2 -2
- package/esm/modules/heatmap.src.js +22 -22
- package/esm/modules/heikinashi.js +1 -1
- package/esm/modules/heikinashi.src.js +1 -1
- package/esm/modules/histogram-bellcurve.js +1 -1
- package/esm/modules/histogram-bellcurve.src.js +15 -3
- package/esm/modules/hollowcandlestick.js +1 -1
- package/esm/modules/hollowcandlestick.src.js +1 -1
- package/esm/modules/item-series.js +2 -2
- package/esm/modules/item-series.src.js +18 -6
- package/esm/modules/lollipop.js +1 -1
- package/esm/modules/lollipop.src.js +1 -1
- package/esm/modules/map.js +2 -2
- package/esm/modules/map.src.js +65 -57
- package/esm/modules/marker-clusters.js +1 -1
- package/esm/modules/marker-clusters.src.js +1 -1
- package/esm/modules/mouse-wheel-zoom.js +2 -2
- package/esm/modules/mouse-wheel-zoom.src.js +3 -3
- package/esm/modules/navigator.js +2 -2
- package/esm/modules/navigator.src.js +47 -45
- package/esm/modules/networkgraph.js +2 -2
- package/esm/modules/networkgraph.src.js +31 -21
- package/esm/modules/no-data-to-display.js +1 -1
- package/esm/modules/no-data-to-display.src.js +1 -1
- package/esm/modules/non-cartesian-zoom.js +1 -1
- package/esm/modules/non-cartesian-zoom.src.js +1 -1
- package/esm/modules/offline-exporting.js +1 -1
- package/esm/modules/offline-exporting.src.js +1 -1
- package/esm/modules/organization.js +2 -2
- package/esm/modules/organization.src.js +3 -2
- package/esm/modules/parallel-coordinates.js +2 -2
- package/esm/modules/parallel-coordinates.src.js +2 -2
- package/esm/modules/pareto.js +1 -1
- package/esm/modules/pareto.src.js +1 -1
- package/esm/modules/pathfinder.js +2 -2
- package/esm/modules/pathfinder.src.js +7 -6
- package/esm/modules/pattern-fill.js +2 -2
- package/esm/modules/pattern-fill.src.js +7 -5
- package/esm/modules/pictorial.js +2 -2
- package/esm/modules/pictorial.src.js +10 -6
- package/esm/modules/pointandfigure.js +1 -1
- package/esm/modules/pointandfigure.src.js +1 -1
- package/esm/modules/price-indicator.js +2 -2
- package/esm/modules/price-indicator.src.js +5 -4
- package/esm/modules/pyramid3d.js +1 -1
- package/esm/modules/pyramid3d.src.js +1 -1
- package/esm/modules/renko.js +1 -1
- package/esm/modules/renko.src.js +1 -1
- package/esm/modules/sankey.js +2 -2
- package/esm/modules/sankey.src.js +34 -20
- package/esm/modules/series-label.js +2 -2
- package/esm/modules/series-label.src.js +7 -7
- package/esm/modules/series-on-point.js +1 -1
- package/esm/modules/series-on-point.src.js +1 -1
- package/esm/modules/solid-gauge.js +2 -2
- package/esm/modules/solid-gauge.src.js +2 -2
- package/esm/modules/sonification.js +2 -2
- package/esm/modules/sonification.src.js +19 -19
- package/esm/modules/static-scale.js +1 -1
- package/esm/modules/static-scale.src.js +1 -1
- package/esm/modules/stock-tools.js +3 -3
- package/esm/modules/stock-tools.src.js +15 -10
- package/esm/modules/stock.js +2 -2
- package/esm/modules/stock.src.js +90 -76
- package/esm/modules/streamgraph.js +1 -1
- package/esm/modules/streamgraph.src.js +1 -1
- package/esm/modules/sunburst.js +2 -2
- package/esm/modules/sunburst.src.js +41 -26
- package/esm/modules/textpath.js +1 -1
- package/esm/modules/textpath.src.js +1 -1
- package/esm/modules/tiledwebmap.js +2 -2
- package/esm/modules/tiledwebmap.src.js +8 -6
- package/esm/modules/tilemap.js +2 -2
- package/esm/modules/tilemap.src.js +3 -3
- package/esm/modules/timeline.js +2 -2
- package/esm/modules/timeline.src.js +5 -4
- package/esm/modules/treegraph.js +2 -2
- package/esm/modules/treegraph.src.js +17 -8
- package/esm/modules/treegrid.js +2 -2
- package/esm/modules/treegrid.src.js +28 -18
- package/esm/modules/treemap.js +2 -2
- package/esm/modules/treemap.src.js +35 -22
- package/esm/modules/variable-pie.js +2 -2
- package/esm/modules/variable-pie.src.js +6 -4
- package/esm/modules/variwide.js +2 -2
- package/esm/modules/variwide.src.js +2 -2
- package/esm/modules/vector.js +1 -1
- package/esm/modules/vector.src.js +1 -1
- package/esm/modules/venn.js +1 -1
- package/esm/modules/venn.src.js +1 -1
- package/esm/modules/windbarb.js +2 -2
- package/esm/modules/windbarb.src.js +2 -2
- package/esm/modules/wordcloud.js +1 -1
- package/esm/modules/wordcloud.src.js +1 -1
- package/esm/modules/xrange.js +1 -1
- package/esm/modules/xrange.src.js +1 -1
- package/esm/standalone-navigator.js +4 -4
- package/esm/standalone-navigator.src.js +355 -249
- package/esm/themes/adaptive.js +1 -1
- package/esm/themes/adaptive.src.js +1 -1
- package/esm/themes/avocado.js +1 -1
- package/esm/themes/avocado.src.js +1 -1
- package/esm/themes/dark-unica.js +1 -1
- package/esm/themes/dark-unica.src.js +1 -1
- package/esm/themes/grid-light.js +1 -1
- package/esm/themes/grid-light.src.js +1 -1
- package/esm/themes/high-contrast.js +1 -1
- package/esm/themes/high-contrast.src.js +1 -1
- package/esm/themes/sand-signika.js +1 -1
- package/esm/themes/sand-signika.src.js +1 -1
- package/esm/themes/sunset.js +1 -1
- package/esm/themes/sunset.src.js +1 -1
- package/highcharts-3d.js +2 -2
- package/highcharts-3d.src.js +40 -32
- package/highcharts-autoload.d.ts +8 -2
- package/highcharts-autoload.js +4 -4
- package/highcharts-autoload.src.d.ts +8 -2
- package/highcharts-autoload.src.js +313 -208
- package/highcharts-gantt.js +4 -4
- package/highcharts-gantt.src.js +404 -283
- package/highcharts-more.js +2 -2
- package/highcharts-more.src.js +90 -56
- package/highcharts.d.ts +61 -4
- package/highcharts.js +4 -4
- package/highcharts.src.d.ts +61 -4
- package/highcharts.src.js +312 -207
- package/highmaps.js +4 -4
- package/highmaps.src.js +390 -272
- package/highstock.js +4 -4
- package/highstock.src.js +413 -293
- package/i18n/fr-FR.js +1 -1
- package/i18n/fr-FR.src.js +1 -1
- package/i18n/nb-NO.js +1 -1
- package/i18n/nb-NO.src.js +1 -1
- package/i18n/zh-CN.js +1 -1
- package/i18n/zh-CN.src.js +1 -1
- package/indicators/acceleration-bands.js +1 -1
- package/indicators/acceleration-bands.src.js +1 -1
- package/indicators/accumulation-distribution.js +1 -1
- package/indicators/accumulation-distribution.src.js +1 -1
- package/indicators/ao.js +1 -1
- package/indicators/ao.src.js +1 -1
- package/indicators/apo.js +1 -1
- package/indicators/apo.src.js +1 -1
- package/indicators/aroon-oscillator.js +1 -1
- package/indicators/aroon-oscillator.src.js +1 -1
- package/indicators/aroon.js +2 -2
- package/indicators/aroon.src.js +3 -3
- package/indicators/atr.js +1 -1
- package/indicators/atr.src.js +1 -1
- package/indicators/bollinger-bands.js +1 -1
- package/indicators/bollinger-bands.src.js +1 -1
- package/indicators/cci.js +1 -1
- package/indicators/cci.src.js +1 -1
- package/indicators/chaikin.js +1 -1
- package/indicators/chaikin.src.js +1 -1
- package/indicators/cmf.js +1 -1
- package/indicators/cmf.src.js +1 -1
- package/indicators/cmo.js +1 -1
- package/indicators/cmo.src.js +1 -1
- package/indicators/dema.js +1 -1
- package/indicators/dema.src.js +1 -1
- package/indicators/disparity-index.js +1 -1
- package/indicators/disparity-index.src.js +1 -1
- package/indicators/dmi.js +1 -1
- package/indicators/dmi.src.js +1 -1
- package/indicators/dpo.js +2 -2
- package/indicators/dpo.src.js +4 -3
- package/indicators/ichimoku-kinko-hyo.js +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/indicators/indicators-all.js +2 -2
- package/indicators/indicators-all.src.js +8 -7
- package/indicators/indicators.js +2 -2
- package/indicators/indicators.src.js +2 -2
- package/indicators/keltner-channels.js +1 -1
- package/indicators/keltner-channels.src.js +1 -1
- package/indicators/klinger.js +1 -1
- package/indicators/klinger.src.js +1 -1
- package/indicators/macd.js +1 -1
- package/indicators/macd.src.js +1 -1
- package/indicators/mfi.js +1 -1
- package/indicators/mfi.src.js +1 -1
- package/indicators/momentum.js +1 -1
- package/indicators/momentum.src.js +1 -1
- package/indicators/natr.js +1 -1
- package/indicators/natr.src.js +1 -1
- package/indicators/obv.js +1 -1
- package/indicators/obv.src.js +1 -1
- package/indicators/pivot-points.js +1 -1
- package/indicators/pivot-points.src.js +1 -1
- package/indicators/ppo.js +1 -1
- package/indicators/ppo.src.js +1 -1
- package/indicators/price-channel.js +1 -1
- package/indicators/price-channel.src.js +1 -1
- package/indicators/price-envelopes.js +1 -1
- package/indicators/price-envelopes.src.js +1 -1
- package/indicators/psar.js +1 -1
- package/indicators/psar.src.js +1 -1
- package/indicators/regressions.js +1 -1
- package/indicators/regressions.src.js +1 -1
- package/indicators/roc.js +1 -1
- package/indicators/roc.src.js +1 -1
- package/indicators/rsi.js +1 -1
- package/indicators/rsi.src.js +2 -2
- package/indicators/slow-stochastic.js +1 -1
- package/indicators/slow-stochastic.src.js +1 -1
- package/indicators/stochastic.js +1 -1
- package/indicators/stochastic.src.js +1 -1
- package/indicators/supertrend.js +1 -1
- package/indicators/supertrend.src.js +1 -1
- package/indicators/tema.js +1 -1
- package/indicators/tema.src.js +1 -1
- package/indicators/trendline.js +1 -1
- package/indicators/trendline.src.js +1 -1
- package/indicators/trix.js +1 -1
- package/indicators/trix.src.js +1 -1
- package/indicators/volume-by-price.js +1 -1
- package/indicators/volume-by-price.src.js +1 -1
- package/indicators/vwap.js +1 -1
- package/indicators/vwap.src.js +1 -1
- package/indicators/williams-r.js +1 -1
- package/indicators/williams-r.src.js +1 -1
- package/indicators/wma.js +1 -1
- package/indicators/wma.src.js +1 -1
- package/indicators/zigzag.js +1 -1
- package/indicators/zigzag.src.js +1 -1
- package/modules/accessibility.js +2 -2
- package/modules/accessibility.src.js +69 -63
- package/modules/annotations-advanced.js +3 -3
- package/modules/annotations-advanced.src.js +25 -23
- package/modules/annotations.js +3 -3
- package/modules/annotations.src.js +21 -19
- package/modules/arc-diagram.js +2 -2
- package/modules/arc-diagram.src.js +16 -15
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.js +2 -2
- package/modules/boost-canvas.src.js +29 -20
- package/modules/boost.js +2 -2
- package/modules/boost.src.js +28 -19
- package/modules/broken-axis.js +2 -2
- package/modules/broken-axis.src.js +6 -5
- package/modules/bullet.js +2 -2
- package/modules/bullet.src.js +17 -10
- package/modules/coloraxis.js +2 -2
- package/modules/coloraxis.src.js +18 -11
- package/modules/contour.js +4 -4
- package/modules/contour.src.js +19 -12
- package/modules/current-date-indicator.js +1 -1
- package/modules/current-date-indicator.src.js +1 -1
- package/modules/cylinder.js +2 -2
- package/modules/cylinder.src.js +9 -10
- package/modules/data-sorting.js +1 -1
- package/modules/data-sorting.src.js +1 -1
- package/modules/data-tools.js +2 -2
- package/modules/data-tools.src.js +20 -3
- package/modules/data.js +1 -1
- package/modules/data.src.js +1 -1
- package/modules/datagrouping.js +2 -2
- package/modules/datagrouping.src.js +6 -5
- package/modules/debugger.js +1 -1
- package/modules/debugger.src.js +1 -1
- package/modules/dependency-wheel.js +1 -1
- package/modules/dependency-wheel.src.js +1 -1
- package/modules/dotplot.js +2 -2
- package/modules/dotplot.src.js +3 -2
- package/modules/drag-panes.js +1 -1
- package/modules/drag-panes.src.js +1 -1
- package/modules/draggable-points.js +2 -2
- package/modules/draggable-points.src.js +2 -3
- package/modules/drilldown.js +2 -2
- package/modules/drilldown.src.js +5 -4
- package/modules/dumbbell.js +2 -2
- package/modules/dumbbell.src.js +37 -9
- package/modules/export-data.js +2 -2
- package/modules/export-data.src.js +17 -16
- package/modules/exporting.js +2 -2
- package/modules/exporting.src.js +7 -7
- package/modules/flowmap.js +2 -2
- package/modules/flowmap.src.js +21 -11
- package/modules/full-screen.js +1 -1
- package/modules/full-screen.src.js +1 -1
- package/modules/funnel.js +2 -2
- package/modules/funnel.src.js +2 -2
- package/modules/funnel3d.js +2 -2
- package/modules/funnel3d.src.js +14 -13
- package/modules/gantt.js +6 -6
- package/modules/gantt.src.js +96 -79
- package/modules/geoheatmap.d.ts +0 -12
- package/modules/geoheatmap.js +2 -2
- package/modules/geoheatmap.src.d.ts +0 -12
- package/modules/geoheatmap.src.js +8 -8
- package/modules/grid-axis.js +2 -2
- package/modules/grid-axis.src.js +4 -4
- package/modules/heatmap.d.ts +0 -12
- package/modules/heatmap.js +4 -4
- package/modules/heatmap.src.d.ts +0 -12
- package/modules/heatmap.src.js +40 -33
- package/modules/heikinashi.js +1 -1
- package/modules/heikinashi.src.js +1 -1
- package/modules/histogram-bellcurve.js +1 -1
- package/modules/histogram-bellcurve.src.js +15 -3
- package/modules/hollowcandlestick.js +1 -1
- package/modules/hollowcandlestick.src.js +1 -1
- package/modules/item-series.js +2 -2
- package/modules/item-series.src.js +18 -6
- package/modules/lollipop.js +1 -1
- package/modules/lollipop.src.js +1 -1
- package/modules/map.d.ts +0 -12
- package/modules/map.js +4 -4
- package/modules/map.src.d.ts +0 -12
- package/modules/map.src.js +83 -68
- package/modules/marker-clusters.js +1 -1
- package/modules/marker-clusters.src.js +1 -1
- package/modules/mouse-wheel-zoom.js +2 -2
- package/modules/mouse-wheel-zoom.src.js +3 -3
- package/modules/navigator.js +2 -2
- package/modules/navigator.src.js +47 -45
- package/modules/networkgraph.js +2 -2
- package/modules/networkgraph.src.js +31 -21
- package/modules/no-data-to-display.js +1 -1
- package/modules/no-data-to-display.src.js +1 -1
- package/modules/non-cartesian-zoom.js +1 -1
- package/modules/non-cartesian-zoom.src.js +1 -1
- package/modules/offline-exporting.js +1 -1
- package/modules/offline-exporting.src.js +1 -1
- package/modules/organization.js +2 -2
- package/modules/organization.src.js +3 -2
- package/modules/parallel-coordinates.js +2 -2
- package/modules/parallel-coordinates.src.js +2 -2
- package/modules/pareto.js +1 -1
- package/modules/pareto.src.js +1 -1
- package/modules/pathfinder.js +2 -2
- package/modules/pathfinder.src.js +7 -6
- package/modules/pattern-fill.js +2 -2
- package/modules/pattern-fill.src.js +7 -5
- package/modules/pictorial.js +2 -2
- package/modules/pictorial.src.js +10 -6
- package/modules/pointandfigure.js +1 -1
- package/modules/pointandfigure.src.js +1 -1
- package/modules/price-indicator.js +2 -2
- package/modules/price-indicator.src.js +5 -4
- package/modules/pyramid3d.js +1 -1
- package/modules/pyramid3d.src.js +1 -1
- package/modules/renko.js +1 -1
- package/modules/renko.src.js +1 -1
- package/modules/sankey.js +2 -2
- package/modules/sankey.src.js +34 -20
- package/modules/series-label.js +2 -2
- package/modules/series-label.src.js +7 -7
- package/modules/series-on-point.js +1 -1
- package/modules/series-on-point.src.js +1 -1
- package/modules/solid-gauge.js +2 -2
- package/modules/solid-gauge.src.js +2 -2
- package/modules/sonification.js +2 -2
- package/modules/sonification.src.js +19 -19
- package/modules/static-scale.js +1 -1
- package/modules/static-scale.src.js +1 -1
- package/modules/stock-tools.js +3 -3
- package/modules/stock-tools.src.js +15 -10
- package/modules/stock.js +6 -6
- package/modules/stock.src.js +105 -89
- package/modules/streamgraph.js +1 -1
- package/modules/streamgraph.src.js +1 -1
- package/modules/sunburst.js +2 -2
- package/modules/sunburst.src.js +41 -26
- package/modules/textpath.js +1 -1
- package/modules/textpath.src.js +1 -1
- package/modules/tiledwebmap.js +2 -2
- package/modules/tiledwebmap.src.js +8 -6
- package/modules/tilemap.js +2 -2
- package/modules/tilemap.src.js +3 -3
- package/modules/timeline.js +2 -2
- package/modules/timeline.src.js +5 -4
- package/modules/treegraph.js +2 -2
- package/modules/treegraph.src.js +17 -8
- package/modules/treegrid.js +2 -2
- package/modules/treegrid.src.js +28 -18
- package/modules/treemap.js +2 -2
- package/modules/treemap.src.js +35 -22
- package/modules/variable-pie.js +2 -2
- package/modules/variable-pie.src.js +6 -4
- package/modules/variwide.js +2 -2
- package/modules/variwide.src.js +2 -2
- package/modules/vector.js +1 -1
- package/modules/vector.src.js +1 -1
- package/modules/venn.js +1 -1
- package/modules/venn.src.js +1 -1
- package/modules/windbarb.js +2 -2
- package/modules/windbarb.src.js +2 -2
- package/modules/wordcloud.js +1 -1
- package/modules/wordcloud.src.js +1 -1
- package/modules/xrange.js +1 -1
- package/modules/xrange.src.js +1 -1
- package/package.json +2 -3
- package/standalone-navigator.js +4 -4
- package/standalone-navigator.src.js +355 -249
- package/themes/adaptive.js +1 -1
- package/themes/adaptive.src.js +1 -1
- package/themes/avocado.js +1 -1
- package/themes/avocado.src.js +1 -1
- package/themes/dark-unica.js +1 -1
- package/themes/dark-unica.src.js +1 -1
- package/themes/grid-light.js +1 -1
- package/themes/grid-light.src.js +1 -1
- package/themes/high-contrast.js +1 -1
- package/themes/high-contrast.src.js +1 -1
- package/themes/sand-signika.js +1 -1
- package/themes/sand-signika.src.js +1 -1
- package/themes/sunset.js +1 -1
- package/themes/sunset.src.js +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// SPDX-License-Identifier: LicenseRef-Highcharts
|
|
2
2
|
/**
|
|
3
|
-
* @license Highcharts JS v13.0.
|
|
3
|
+
* @license Highcharts JS v13.0.2 (2026-08-27)
|
|
4
4
|
* @module highcharts/modules/annotations-advanced
|
|
5
5
|
* @requires highcharts
|
|
6
6
|
*
|
|
@@ -181,7 +181,7 @@ var highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default
|
|
|
181
181
|
function chartAddAnnotation(options, redraw) {
|
|
182
182
|
const annotation = this.initAnnotation(options);
|
|
183
183
|
this.options.annotations.push(annotation.options);
|
|
184
|
-
if (
|
|
184
|
+
if (redraw ?? true) {
|
|
185
185
|
annotation.redraw();
|
|
186
186
|
annotation.graphic.attr({
|
|
187
187
|
opacity: 1
|
|
@@ -1379,7 +1379,8 @@ class EventEmitter {
|
|
|
1379
1379
|
emitter.removeMouseUp = (0,highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_.addEvent)(doc, isTouchDevice || firesTouchEvents ? 'touchend' : 'mouseup', function () {
|
|
1380
1380
|
// Sometimes the target is the annotation and sometimes its the
|
|
1381
1381
|
// controllable
|
|
1382
|
-
const annotation = (
|
|
1382
|
+
const annotation = ((emitter.target && emitter.target.annotation) ??
|
|
1383
|
+
emitter.target);
|
|
1383
1384
|
if (annotation) {
|
|
1384
1385
|
// Keep annotation selected after dragging control point
|
|
1385
1386
|
annotation.cancelClick = emitter.hasDragged;
|
|
@@ -1388,8 +1389,7 @@ class EventEmitter {
|
|
|
1388
1389
|
emitter.chart.hasDraggedAnnotation = false;
|
|
1389
1390
|
if (emitter.hasDragged) {
|
|
1390
1391
|
// ControlPoints vs Annotation:
|
|
1391
|
-
(0,highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_.fireEvent)((
|
|
1392
|
-
emitter), 'afterUpdate');
|
|
1392
|
+
(0,highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_.fireEvent)((annotation ?? emitter), 'afterUpdate');
|
|
1393
1393
|
}
|
|
1394
1394
|
emitter.hasDragged = false;
|
|
1395
1395
|
emitter.onMouseUp();
|
|
@@ -1478,7 +1478,7 @@ class ControlPoint extends Annotations_EventEmitter {
|
|
|
1478
1478
|
this.chart = chart;
|
|
1479
1479
|
this.target = target;
|
|
1480
1480
|
this.options = options;
|
|
1481
|
-
this.index = (
|
|
1481
|
+
this.index = (options.index ?? index);
|
|
1482
1482
|
}
|
|
1483
1483
|
/* *
|
|
1484
1484
|
*
|
|
@@ -1630,7 +1630,7 @@ function getAssignedAxis(coords) {
|
|
|
1630
1630
|
const extremes = coord.axis.getExtremes(), axisMin = extremes.min, axisMax = extremes.max,
|
|
1631
1631
|
// Correct axis edges when axis has series
|
|
1632
1632
|
// with pointRange (like column)
|
|
1633
|
-
minPointOffset = (
|
|
1633
|
+
minPointOffset = (coord.axis.minPointOffset ?? 0);
|
|
1634
1634
|
return (0,highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_.isNumber)(axisMin) && (0,highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_.isNumber)(axisMax) &&
|
|
1635
1635
|
coord.value >= (axisMin - minPointOffset) &&
|
|
1636
1636
|
coord.value <= (axisMax + minPointOffset) &&
|
|
@@ -3870,7 +3870,7 @@ class ControllableLabel extends Controllables_Controllable {
|
|
|
3870
3870
|
if (itemOptions.distance && tooltip) {
|
|
3871
3871
|
itemPosition = tooltip.getPosition.call({
|
|
3872
3872
|
chart,
|
|
3873
|
-
distance: (
|
|
3873
|
+
distance: (itemOptions.distance ?? 16),
|
|
3874
3874
|
getPlayingField: tooltip.getPlayingField,
|
|
3875
3875
|
pointer: tooltip.pointer
|
|
3876
3876
|
}, width, height, {
|
|
@@ -4366,11 +4366,9 @@ function addToolbar(chart, options, callback) {
|
|
|
4366
4366
|
className: 'highcharts-annotation-label'
|
|
4367
4367
|
}, void 0, popupDiv);
|
|
4368
4368
|
label.setAttribute('aria-label', 'Annotation type');
|
|
4369
|
-
label.appendChild(PopupAnnotations_doc.createTextNode((
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
// Basic shapes:
|
|
4373
|
-
options.shapes && options.shapes[0].type, '')));
|
|
4369
|
+
label.appendChild(PopupAnnotations_doc.createTextNode(((lang[options.langKey] || options.langKey) ??
|
|
4370
|
+
(options.shapes && options.shapes[0].type) ??
|
|
4371
|
+
'')));
|
|
4374
4372
|
// Add buttons
|
|
4375
4373
|
let button = this.addButton(popupDiv, lang.editButton || 'Edit', 'edit', popupDiv, () => {
|
|
4376
4374
|
showForm.call(this, 'annotation-edit', chart, options, callback);
|
|
@@ -5423,7 +5421,8 @@ class Popup extends Shared_BaseForm {
|
|
|
5423
5421
|
* Return created input element.
|
|
5424
5422
|
*/
|
|
5425
5423
|
addInput(option, indicatorType, parentDiv, inputAttributes) {
|
|
5426
|
-
const optionParamList = option.split('.'), optionName = optionParamList[optionParamList.length - 1], lang = this.lang, inputName = 'highcharts-' + indicatorType + '-' +
|
|
5424
|
+
const optionParamList = option.split('.'), optionName = optionParamList[optionParamList.length - 1], lang = this.lang, inputName = 'highcharts-' + indicatorType + '-' +
|
|
5425
|
+
(inputAttributes.htmlFor ?? optionName);
|
|
5427
5426
|
if (!optionName.match(/^\d+$/)) {
|
|
5428
5427
|
// Add label
|
|
5429
5428
|
(0,highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_.createElement)('label', {
|
|
@@ -6046,7 +6045,7 @@ class Annotation extends Annotations_EventEmitter {
|
|
|
6046
6045
|
if (!item.graphic) {
|
|
6047
6046
|
this.renderItem(item);
|
|
6048
6047
|
}
|
|
6049
|
-
item.redraw((
|
|
6048
|
+
item.redraw((animation ?? true) && item.graphic.placed);
|
|
6050
6049
|
if (item.points.length) {
|
|
6051
6050
|
adjustVisibility(item);
|
|
6052
6051
|
}
|
|
@@ -6189,7 +6188,7 @@ class Annotation extends Annotations_EventEmitter {
|
|
|
6189
6188
|
* annotation's visibility is toggled.
|
|
6190
6189
|
*/
|
|
6191
6190
|
setVisibility(visible) {
|
|
6192
|
-
const options = this.options, navigation = this.chart.navigationBindings, visibility = (
|
|
6191
|
+
const options = this.options, navigation = this.chart.navigationBindings, visibility = (visible ?? !options.visible);
|
|
6193
6192
|
this.graphic.attr('visibility', visibility ? 'inherit' : 'hidden');
|
|
6194
6193
|
if (!visibility) {
|
|
6195
6194
|
const setItemControlPointsVisibility = function (item) {
|
|
@@ -6225,7 +6224,7 @@ class Annotation extends Annotations_EventEmitter {
|
|
|
6225
6224
|
// Update options in chart options, used in exporting (#9767, #21507):
|
|
6226
6225
|
chart.options.annotations[userOptionsIndex] = this.options;
|
|
6227
6226
|
this.isUpdating = true;
|
|
6228
|
-
if (
|
|
6227
|
+
if (redraw ?? true) {
|
|
6229
6228
|
chart.drawAnnotations();
|
|
6230
6229
|
}
|
|
6231
6230
|
(0,highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_.fireEvent)(this, 'afterUpdate');
|
|
@@ -7334,7 +7333,7 @@ class NavigationBindings {
|
|
|
7334
7333
|
let parent = config;
|
|
7335
7334
|
path.forEach((name, index) => {
|
|
7336
7335
|
if (name !== '__proto__' && name !== 'constructor') {
|
|
7337
|
-
const nextName = (
|
|
7336
|
+
const nextName = (path[index + 1] ?? '');
|
|
7338
7337
|
if (pathLength === index) {
|
|
7339
7338
|
// Last index, put value:
|
|
7340
7339
|
parent[name] = value;
|
|
@@ -7380,7 +7379,10 @@ class NavigationBindings {
|
|
|
7380
7379
|
* Annotation options to be displayed in popup box
|
|
7381
7380
|
*/
|
|
7382
7381
|
annotationToFields(annotation) {
|
|
7383
|
-
const options = annotation.options, editables = NavigationBindings.annotationsEditable, nestedEditables = editables.nestedOptions, type =
|
|
7382
|
+
const options = annotation.options, editables = NavigationBindings.annotationsEditable, nestedEditables = editables.nestedOptions, type = options.type ??
|
|
7383
|
+
options.shapes?.[0]?.type ??
|
|
7384
|
+
options.labels?.[0]?.type ??
|
|
7385
|
+
'label', nonEditables = NavigationBindings.annotationsNonEditable[options.langKey] || [], visualOptions = {
|
|
7384
7386
|
langKey: options.langKey,
|
|
7385
7387
|
type: type
|
|
7386
7388
|
};
|
|
@@ -9359,7 +9361,7 @@ class VerticalLine extends Annotations_Annotation {
|
|
|
9359
9361
|
*
|
|
9360
9362
|
* */
|
|
9361
9363
|
static connectorFirstPoint(target) {
|
|
9362
|
-
const annotation = target.annotation, chart = annotation.chart, inverted = chart.inverted, point = annotation.points[0], left = (
|
|
9364
|
+
const annotation = target.annotation, chart = annotation.chart, inverted = chart.inverted, point = annotation.points[0], left = (point.series.yAxis?.left ?? 0), top = (point.series.yAxis?.top ?? 0), offset = annotation.options.typeOptions?.label?.offset || 0, y = Annotations_MockPoint.pointToPixels(point, true)[inverted ? 'x' : 'y'];
|
|
9363
9365
|
return {
|
|
9364
9366
|
x: point.x,
|
|
9365
9367
|
xAxis: point.series.xAxis,
|
|
@@ -9368,7 +9370,7 @@ class VerticalLine extends Annotations_Annotation {
|
|
|
9368
9370
|
};
|
|
9369
9371
|
}
|
|
9370
9372
|
static connectorSecondPoint(target) {
|
|
9371
|
-
const annotation = target.annotation, chart = annotation.chart, inverted = chart.inverted, typeOptions = annotation.options.typeOptions, point = annotation.points[0], left = (
|
|
9373
|
+
const annotation = target.annotation, chart = annotation.chart, inverted = chart.inverted, typeOptions = annotation.options.typeOptions, point = annotation.points[0], left = ((point.series.yAxis && point.series.yAxis.left) ?? 0), top = ((point.series.yAxis && point.series.yAxis.top) ?? 0), y = Annotations_MockPoint.pointToPixels(point, true)[inverted ? 'x' : 'y'];
|
|
9372
9374
|
let yOffset = typeOptions?.yOffset || 0;
|
|
9373
9375
|
if ((typeOptions?.label?.offset || 0) < 0) {
|
|
9374
9376
|
yOffset *= -1;
|
|
@@ -10050,8 +10052,8 @@ class Measure extends Annotations_Annotation {
|
|
|
10050
10052
|
return {
|
|
10051
10053
|
x: annotation.xAxisMin,
|
|
10052
10054
|
y: annotation.yAxisMin,
|
|
10053
|
-
xAxis: (
|
|
10054
|
-
yAxis: (
|
|
10055
|
+
xAxis: (typeOptions.xAxis ?? options.xAxis),
|
|
10056
|
+
yAxis: (typeOptions.yAxis ?? options.yAxis)
|
|
10055
10057
|
};
|
|
10056
10058
|
},
|
|
10057
10059
|
text: (formatter?.call(this, this) ||
|
package/modules/annotations.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
!/**
|
|
2
|
-
* Highcharts JS v13.0.
|
|
2
|
+
* Highcharts JS v13.0.2 (2026-08-27)
|
|
3
3
|
* @module highcharts/modules/annotations
|
|
4
4
|
* @requires highcharts
|
|
5
5
|
*
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* A commercial license may be required depending on use,
|
|
12
12
|
* see www.highcharts.com/license
|
|
13
|
-
*/function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(t._Highcharts,t._Highcharts.SeriesRegistry,t._Highcharts.Templating,t._Highcharts.AST,t._Highcharts.Color):"function"==typeof define&&define.amd?define("highcharts/modules/annotations",["highcharts/highcharts"],function(t){return e(t,t.SeriesRegistry,t.Templating,t.AST,t.Color)}):"object"==typeof exports?exports["highcharts/modules/annotations"]=e(t._Highcharts,t._Highcharts.SeriesRegistry,t._Highcharts.Templating,t._Highcharts.AST,t._Highcharts.Color):t.Highcharts=e(t.Highcharts,t.Highcharts.SeriesRegistry,t.Highcharts.Templating,t.Highcharts.AST,t.Highcharts.Color)}("u"<typeof window?this:window,(t,e,i,s,o)=>(()=>{"use strict";var n,a,r,h,l,c={660(t){t.exports=s},620(t){t.exports=o},512(t){t.exports=e},984(t){t.exports=i},944(e){e.exports=t}};let p={};function d(t){let e=p[t];if(void 0!==e)return e.exports;let i=p[t]={exports:{}};return c[t](i,i.exports,d),i.exports}d.n=t=>{let e=t&&t.__esModule?()=>t.default:()=>t;return d.d(e,{a:e}),e},d.d=(t,e)=>{if(Array.isArray(e))for(var i=0;i<e.length;){var s=e[i++],o=e[i++];d.o(t,s)?0===o&&i++:0===o?Object.defineProperty(t,s,{enumerable:!0,value:e[i++]}):Object.defineProperty(t,s,{enumerable:!0,get:o})}else for(var s in e)d.o(e,s)&&!d.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},d.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let u={};d.d(u,{default:()=>ee});var g=d(944),m=d.n(g);function f(t,e){let i=this.initAnnotation(t);return this.options.annotations.push(i.options),(0,g.pick)(e,!0)&&(i.redraw(),i.graphic.attr({opacity:1})),i}function v(){let t=this;t.plotBoxClip=this.renderer.clipRect(this.plotBox),t.controlPointsGroup=t.renderer.g("control-points").attr({zIndex:99}).clip(t.plotBoxClip).add(),t.options.annotations.forEach((e,i)=>{if(!t.annotations.some(t=>t.options===e)){let s=t.initAnnotation(e);t.options.annotations[i]=s.options}}),t.drawAnnotations(),(0,g.addEvent)(t,"redraw",t.drawAnnotations),(0,g.addEvent)(t,"destroy",function(){t.plotBoxClip.destroy(),t.controlPointsGroup.destroy()}),(0,g.addEvent)(t,"exportData",function(e){let i=t.annotations,s=(this.options.exporting&&this.options.exporting.csv||{}).columnHeaderFormatter,o=!e.dataRows[1].xValues,n=t.options.lang&&t.options.lang.exportData&&t.options.lang.exportData.annotationHeader,a=e.dataRows[0].length,r=t.options.exporting?.csv?.annotations?.itemDelimiter,h=t.options.exporting?.csv?.annotations?.join;i.forEach(t=>{t.options.labelOptions?.includeInDataExport&&t.labels.forEach(t=>{if(t.options.text){let i=t.options.text;t.points.forEach(t=>{let s=t.x,o=t.series.xAxis?t.series.xAxis.index:-1,n=!1;if(-1===o){let t=e.dataRows[0].length,a=Array(t);for(let e=0;e<t;++e)a[e]="";a.push(i),a.xValues=[],a.xValues[o]=s,e.dataRows.push(a),n=!0}if(n||e.dataRows.forEach(t=>{!n&&t.xValues&&void 0!==o&&s===t.xValues[o]&&(h&&t.length>a?t[t.length-1]+=r+i:t.push(i),n=!0)}),!n){let t=e.dataRows[0].length,n=Array(t);for(let e=0;e<t;++e)n[e]="";n[0]=s,n.push(i),n.xValues=[],void 0!==o&&(n.xValues[o]=s),e.dataRows.push(n)}})}})});let l=0;e.dataRows.forEach(t=>{l=Math.max(l,t.length)});let c=l-e.dataRows[0].length;for(let t=0;t<c;t++){let i=function(t){let e;return s&&!1!==(e=s(t))?e:(e=n+" "+t,o)?{columnTitle:e,topLevelColumnTitle:e}:e}(t+1);o?(e.dataRows[0].push(i.topLevelColumnTitle),e.dataRows[1].push(i.columnTitle)):e.dataRows[0].push(i)}})}function y(){this.plotBoxClip.attr(this.plotBox),this.annotations.forEach(t=>{t.redraw(),t.graphic.animate({opacity:1},t.animationConfig)})}function x(t){let e=this.annotations,i="annotations"===t.coll?t:(0,g.find)(e,function(e){return e.options.id===t});i&&((0,g.fireEvent)(i,"remove"),(0,g.erase)(this.options.annotations,i.options),(0,g.erase)(e,i),i.destroy())}function b(){let t=this.options.annotations,e=this.userOptions.annotations;this.annotations=[],(0,g.isArray)(this.options.annotations)||(this.options.annotations=[]),(0,g.isObject)(e,!0)&&(0,g.isObject)(t,!0)&&this.options.annotations.push(t)}function A(t){this.chart.hasDraggedAnnotation||t.apply(this,Array.prototype.slice.call(arguments,1))}(a||(a={})).compose=function(t,e,i){let s=e.prototype;if(!s.addAnnotation){let o=i.prototype;(0,g.addEvent)(e,"afterInit",b),s.addAnnotation=f,s.callbacks.push(v),s.collectionsWithInit.annotations=[f],s.collectionsWithUpdate.push("annotations"),s.drawAnnotations=y,s.removeAnnotation=x,s.initAnnotation=function(e){let i=new(t.types[e.type]||t)(this,e);return this.annotations.push(i),i},(0,g.wrap)(o,"onContainerMouseDown",A)}};let E=a,k={visible:!0,animation:{},crop:!0,draggable:"xy",labelOptions:{align:"center",allowOverlap:!1,backgroundColor:"rgba(0, 0, 0, 0.75)",borderColor:"var(--highcharts-neutral-color-100)",borderRadius:3,borderWidth:1,className:"highcharts-no-tooltip",crop:!1,formatter:function(){return(0,g.defined)(this.y)?""+this.y:"Annotation label"},includeInDataExport:!0,overflow:"justify",padding:5,shadow:!1,shape:"callout",style:{fontSize:"0.7em",fontWeight:"normal",color:"contrast"},useHTML:!1,verticalAlign:"bottom",x:0,y:-16},shapeOptions:{stroke:"rgba(0, 0, 0, 0.75)",strokeWidth:1,fill:"rgba(0, 0, 0, 0.75)",r:0,snap:2},controlPointOptions:{events:{},style:{cursor:"pointer",fill:"var(--highcharts-background-color)",stroke:"var(--highcharts-neutral-color-100)","stroke-width":2},height:10,symbol:"circle",visible:!1,width:10},events:{},typeOptions:{},types:{},zIndex:6},{doc:w,isTouchDevice:C}=m(),P=class{addEvents(){let t=this,e=function(e){(0,g.addEvent)(e,C?"touchstart":"mousedown",e=>{t.onMouseDown(e)},{passive:!1})};if(e(this.graphic.element),(t.labels||[]).forEach(t=>{t.options.useHTML&&t.graphic.text&&!t.graphic.text.foreignObject&&e(t.graphic.text.element)}),(0,g.objectEach)(t.options.events,(e,i)=>{let s=function(s){"click"===i&&t.cancelClick||e.call(t,t.chart.pointer?.normalize(s),t.target,t)};-1===(t.nonDOMEvents||[]).indexOf(i)?((0,g.addEvent)(t.graphic.element,i,s,{passive:!1}),t.graphic.div&&(0,g.addEvent)(t.graphic.div,i,s,{passive:!1})):(0,g.addEvent)(t,i,s,{passive:!1})}),t.options.draggable&&((0,g.addEvent)(t,"drag",t.onDrag),!t.graphic.renderer.styledMode)){let e={cursor:{x:"ew-resize",y:"ns-resize",xy:"move"}[t.options.draggable]};t.graphic.css(e),(t.labels||[]).forEach(t=>{t.options.useHTML&&t.graphic.text&&!t.graphic.text.foreignObject&&t.graphic.text.css(e)})}t.isUpdating||(0,g.fireEvent)(t,"add")}destroy(){this.removeDocEvents(),(0,g.removeEvent)(this),this.hcEvents=null}mouseMoveToRadians(t,e,i){let s=t.prevChartY-i,o=t.prevChartX-e,n=t.chartY-i,a=t.chartX-e,r;return this.chart.inverted&&(r=o,o=s,s=r,r=a,a=n,n=r),Math.atan2(n,a)-Math.atan2(s,o)}mouseMoveToScale(t,e,i){let s=t.prevChartX-e,o=t.prevChartY-i,n=t.chartX-e,a=t.chartY-i,r=(n||1)/(s||1),h=(a||1)/(o||1);if(this.chart.inverted){let t=h;h=r,r=t}return{x:r,y:h}}mouseMoveToTranslation(t){let e=t.chartX-t.prevChartX,i=t.chartY-t.prevChartY,s;return this.chart.inverted&&(s=i,i=e,e=s),{x:e,y:i}}onDrag(t){if(this.chart.isInsidePlot(t.chartX-this.chart.plotLeft,t.chartY-this.chart.plotTop,{visiblePlotOnly:!0})){let e=this.mouseMoveToTranslation(t);"x"===this.options.draggable&&(e.y=0),"y"===this.options.draggable&&(e.x=0),this.points.length?this.translate(e.x,e.y):(this.shapes.forEach(t=>t.translate(e.x,e.y)),this.labels.forEach(t=>t.translate(e.x,e.y))),this.redraw(!1)}}onMouseDown(t){if(t.preventDefault&&t.preventDefault(),2===t.button)return;let e=this,i=e.chart.pointer,s=t?.sourceCapabilities?.firesTouchEvents||!1,o=(t=i?.normalize(t)||t).chartX,n=t.chartY;e.cancelClick=!1,e.chart.hasDraggedAnnotation=!0,e.removeDrag=(0,g.addEvent)(w,C||s?"touchmove":"mousemove",function(t){e.hasDragged=!0,(t=i?.normalize(t)||t).prevChartX=o,t.prevChartY=n,(0,g.fireEvent)(e,"drag",t),o=t.chartX,n=t.chartY},C||s?{passive:!1}:void 0),e.removeMouseUp=(0,g.addEvent)(w,C||s?"touchend":"mouseup",function(){let t=(0,g.pick)(e.target&&e.target.annotation,e.target);t&&(t.cancelClick=e.hasDragged),e.cancelClick=e.hasDragged,e.chart.hasDraggedAnnotation=!1,e.hasDragged&&(0,g.fireEvent)((0,g.pick)(t,e),"afterUpdate"),e.hasDragged=!1,e.onMouseUp()},C||s?{passive:!1}:void 0)}onMouseUp(){this.removeDocEvents()}removeDocEvents(){this.removeDrag&&(this.removeDrag=this.removeDrag()),this.removeMouseUp&&(this.removeMouseUp=this.removeMouseUp())}},O=class extends P{constructor(t,e,i,s){super(),this.nonDOMEvents=["drag"],this.chart=t,this.target=e,this.options=i,this.index=(0,g.pick)(i.index,s)}destroy(){super.destroy(),this.graphic&&(this.graphic=this.graphic.destroy()),this.chart=null,this.target=null,this.options=null}redraw(t){this.graphic[t?"animate":"attr"](this.options.positioner.call(this,this.target,this))}render(){let t=this.chart,e=this.options;this.graphic=t.renderer.symbol(e.symbol,0,0,e.width,e.height).add(t.controlPointsGroup).css(e.style),this.setVisibility(e.visible),this.addEvents()}setVisibility(t){this.graphic[t?"show":"hide"](),this.options.visible=t}update(t){let e=this.chart,i=this.target,s=this.index,o=(0,g.merge)(!0,this.options,t);this.destroy(),this.constructor(e,i,o,s),this.render(e.controlPointsGroup),this.redraw()}},M={backgroundColor:"color",backgroundColors:"color",borderColor:"color",borderRadius:"string",color:"color",fill:"color",fontSize:"string",labels:"string",name:"string",stroke:"color",title:"string"},N={annotationsFieldsTypes:M,getAssignedAxis:function(t){return t.filter(t=>{let e=t.axis.getExtremes(),i=e.min,s=e.max,o=(0,g.pick)(t.axis.minPointOffset,0);return(0,g.isNumber)(i)&&(0,g.isNumber)(s)&&t.value>=i-o&&t.value<=s+o&&!t.axis.options.isInternal})[0]},getAxisFromOptions:function(t,e,i){return(0,g.isNumber)(i)?t[e][i]:(0,g.defined)(i)?(0,g.find)(t[e],t=>t.options.id===i):void 0},getFieldType:function(t,e){let i=M[t],s=typeof e;return(0,g.defined)(i)&&(s=i),({string:"text",number:"number",boolean:"checkbox",color:"color"})[s]}};var B=d(512),T=d.n(B);let{getAxisFromOptions:S}=N,{series:{prototype:L}}=T();class I{static fromPoint(t){return new I(t.series.chart,null,{x:t.x,y:t.y,xAxis:t.series.xAxis,yAxis:t.series.yAxis})}static pointToPixels(t,e){let i=t.series,s=i.chart,o=t.plotX||0,n=t.plotY||0,a;return s.inverted&&(t.mock?(o=t.plotY,n=t.plotX):(o=s.plotWidth-(t.plotY||0),n=s.plotHeight-(t.plotX||0))),i&&!e&&(o+=(a=i.getPlotBox()).translateX,n+=a.translateY),{x:o,y:n}}static pointToOptions(t){return{x:t.x,y:t.y,xAxis:t.series.xAxis,yAxis:t.series.yAxis}}constructor(t,e,i){this.mock=!0,this.point=this,this.series={visible:!0,chart:t,getPlotBox:L.getPlotBox},this.target=e||null,this.options=i,this.applyOptions(this.getOptions())}applyOptions(t){this.command=t.command,this.setAxis(t,"x"),this.setAxis(t,"y"),this.refresh()}getOptions(){return this.hasDynamicOptions()&&"function"==typeof this.options?this.options(this.target):this.options}hasDynamicOptions(){return"function"==typeof this.options}isInsidePlot(){let t=this.plotX,e=this.plotY,i=this.series.xAxis,s=this.series.yAxis,o={x:t,y:e,isInsidePlot:!0,options:{}};return i&&(o.isInsidePlot=(0,g.defined)(t)&&t>=0&&t<=i.len),s&&(o.isInsidePlot=o.isInsidePlot&&(0,g.defined)(e)&&e>=0&&e<=s.len),(0,g.fireEvent)(this.series.chart,"afterIsInsidePlot",o),o.isInsidePlot}refresh(){let t=this.series,e=t.xAxis,i=t.yAxis,s=this.getOptions();e?(this.x=s.x,this.plotX=e.toPixels(s.x,!0)):(this.x=void 0,this.plotX=s.x),i?(this.y=s.y,this.plotY=i.toPixels(s.y,!0)):(this.y=null,this.plotY=s.y),this.isInside=this.isInsidePlot()}refreshOptions(){let t=this.series,e=t.xAxis,i=t.yAxis;this.x=this.options.x=e?this.options.x=e.toValue(this.plotX,!0):this.plotX,this.y=this.options.y=i?i.toValue(this.plotY,!0):this.plotY}rotate(t,e,i){if(!this.hasDynamicOptions()){let s=Math.cos(i),o=Math.sin(i),n=this.plotX-t,a=this.plotY-e;this.plotX=n*s-a*o+t,this.plotY=n*o+a*s+e,this.refreshOptions()}}scale(t,e,i,s){if(!this.hasDynamicOptions()){let o=this.plotX*i,n=this.plotY*s;this.plotX=(1-i)*t+o,this.plotY=(1-s)*e+n,this.refreshOptions()}}setAxis(t,e){let i=e+"Axis",s=t[i],o=this.series.chart;this.series[i]="object"==typeof s?s:S(o,i,s)||null}toAnchor(){let t=[this.plotX,this.plotY,0,0];return this.series.chart.inverted&&(t[0]=this.plotY,t[1]=this.plotX),t}translate(t,e,i,s){this.hasDynamicOptions()||(this.plotX+=i,this.plotY+=s,this.refreshOptions())}}!function(t){function e(){let t=this.controlPoints,e=this.options.controlPoints||[];e.forEach((i,s)=>{let o=(0,g.merge)(this.options.controlPointOptions,i);o.index||(o.index=s),e[s]=o,t.push(new O(this.chart,this,o))})}function i(t){let e=t.series.getPlotBox(),i=t.series.chart,s=t.mock?t.toAnchor():i.tooltip&&i.tooltip.getAnchor.call({chart:t.series.chart},t)||[0,0,0,0],o={x:s[0]+(this.options.x||0),y:s[1]+(this.options.y||0),height:s[2]||0,width:s[3]||0};return{relativePosition:o,absolutePosition:(0,g.merge)(o,{x:o.x+(t.mock?e.translateX:i.plotLeft),y:o.y+(t.mock?e.translateY:i.plotTop)})}}function s(){this.controlPoints.forEach(t=>t.destroy()),this.chart=null,this.controlPoints=null,this.points=null,this.options=null,this.annotation&&(this.annotation=null)}function o(){let t=this.options;return t.points||t.point&&(0,g.splat)(t.point)}function n(){let t,e,i=this.getPointsOptions(),s=this.points,o=i?.length||0;for(t=0;t<o;t++){if(!(e=this.point(i[t],s[t]))){s.length=0;return}e.mock&&e.refresh(),s[t]=e}return s}function a(t,e){if(t&&t.series)return t;if(!e||null===e.series){if((0,g.isObject)(t))e=new I(this.chart,this,t);else if((0,g.isString)(t))e=this.chart.get(t)||null;else if("function"==typeof t){let i=t.call(e,this);e=i.series?i:new I(this.chart,this,t)}}return e}function r(t){this.controlPoints.forEach(e=>e.redraw(t))}function h(){this.controlPoints.forEach(t=>t.render())}function l(t,e,i,s,o){if(this.chart.inverted){let t=e;e=i,i=t}this.points.forEach((n,a)=>this.transformPoint(t,e,i,s,o,a),this)}function c(t,e,i,s,o,n){let a=this.points[n];a.mock||(a=this.points[n]=I.fromPoint(a)),a[t](e,i,s,o)}function p(t,e){this.transform("translate",null,null,t,e)}function d(t,e,i){this.transformPoint("translate",null,null,t,e,i)}t.compose=function(t){let u=t.prototype;u.addControlPoints||(0,g.merge)(!0,u,{addControlPoints:e,anchor:i,destroyControlTarget:s,getPointsOptions:o,linkPoints:n,point:a,redrawControlPoints:r,renderControlPoints:h,transform:l,transformPoint:c,translate:p,translatePoint:d})}}(r||(r={}));let D=r;class Y{constructor(t,e,i,s){this.annotation=t,this.chart=t.chart,this.collection="label"===s?"labels":"shapes",this.controlPoints=[],this.options=e,this.points=[],this.index=i,this.itemType=s,this.init(t,e,i)}attr(){this.graphic.attr.apply(this.graphic,arguments)}attrsFromOptions(t){let e,i,s=this.constructor.attrsMap,o={},n=this.chart.styledMode;for(e in t)i=s[e],void 0===s[e]||n&&-1!==["fill","stroke","stroke-width"].indexOf(i)||(o[i]=t[e]);return o}destroy(){this.graphic&&(this.graphic=this.graphic.destroy()),this.tracker&&(this.tracker=this.tracker.destroy()),this.destroyControlTarget()}calculateAnnotationSize(t,e,i){let s=i.toPixels(t,!0);return Math.abs(i.toPixels(t+e,!0)-s)}init(t,e,i){this.annotation=t,this.chart=t.chart,this.options=e,this.points=[],this.controlPoints=[],this.index=i,this.linkPoints(),this.addControlPoints()}redraw(t){this.redrawControlPoints(t)}render(t){this.options.className&&this.graphic&&this.graphic.addClass(this.options.className),this.renderControlPoints()}rotate(t,e,i){this.transform("rotate",t,e,i)}scale(t,e,i,s){this.transform("scale",t,e,i,s)}setControlPointsVisibility(t){this.controlPoints.forEach(e=>{e.setVisibility(t)})}shouldBeDrawn(){return!!this.points.length}translateShape(t,e,i){let s=this.annotation.chart,o=this.annotation.userOptions,n=s.annotations.indexOf(this.annotation),a=s.options.annotations[n];this.translatePoint(t,e,0),i&&this.translatePoint(t,e,1),a[this.collection][this.index].point=this.options.point,o[this.collection][this.index].point=this.options.point}update(t){let e=this.annotation,i=(0,g.merge)(!0,this.options,t),s=this.graphic.parentGroup,o=this.constructor;this.destroy();let n=new o(e,i,this.index,this.itemType);(0,g.merge)(!0,this,n),this.render(s),this.redraw()}}D.compose(Y);let X=Y,{defaultMarkers:F}={defaultMarkers:{arrow:{tagName:"marker",attributes:{id:"arrow",refY:5,refX:9,markerWidth:10,markerHeight:10},children:[{tagName:"path",attributes:{d:"M 0 0 L 10 5 L 0 10 Z","stroke-width":0}}]},"reverse-arrow":{tagName:"marker",attributes:{id:"reverse-arrow",refY:5,refX:1,markerWidth:10,markerHeight:10},children:[{tagName:"path",attributes:{d:"M 0 5 L 10 0 L 10 10 Z","stroke-width":0}}]}}},R=j("marker-end"),U=j("marker-start"),W="rgba(192,192,192,"+(m().svg?1e-4:.002)+")";function j(t){return function(e){this.attr(t,"url(#"+e+")")}}function H(){this.options.defs=(0,g.merge)(F,this.options.defs||{})}function z(t,e){let i={attributes:{id:t}},s={stroke:e.color||"none",fill:e.color||"rgba(0, 0, 0, 0.75)"};i.children=e.children&&e.children.map(function(t){return(0,g.merge)(s,t)});let o=(0,g.merge)(!0,{attributes:{markerWidth:20,markerHeight:20,refX:0,refY:0,orient:"auto"}},e,i),n=this.definition(o);return n.id=t,n}class V extends X{static compose(t,e){let i=e.prototype;i.addMarker||((0,g.addEvent)(t,"afterGetContainer",H),i.addMarker=z)}constructor(t,e,i){super(t,e,i,"shape"),this.type="path"}init(t,e,i){(0,g.defined)(e.yAxis)&&e.points.forEach(t=>{t&&"string"!=typeof t&&(t.yAxis=e.yAxis)}),(0,g.defined)(e.xAxis)&&e.points.forEach(t=>{t&&"string"!=typeof t&&(t.xAxis=e.xAxis)}),super.init(t,e,i)}toD(){let t=this.options.d;if(t)return"function"==typeof t?t.call(this):t;let e=this.points,i=e.length,s=[],o=i,n=e[0],a=o&&this.anchor(n).absolutePosition,r=0,h;if(a)for(s.push(["M",a.x,a.y]);++r<i&&o;)h=(n=e[r]).command||"L",a=this.anchor(n).absolutePosition,"M"===h||"L"===h?s.push([h,a.x,a.y]):"Z"===h&&s.push([h]),o=n.series.visible;return o&&this.graphic?this.chart.renderer.crispLine(s,this.graphic.strokeWidth()):null}shouldBeDrawn(){return super.shouldBeDrawn()||!!this.options.d}render(t){let e=this.options,i=this.attrsFromOptions(e);this.graphic=this.annotation.chart.renderer.path([["M",0,0]]).attr(i).add(t),this.tracker=this.annotation.chart.renderer.path([["M",0,0]]).addClass("highcharts-tracker-line").attr({zIndex:2}).add(t),this.annotation.chart.styledMode||this.tracker.attr({"stroke-linejoin":"round",stroke:W,fill:W,"stroke-width":this.graphic.strokeWidth()+2*e.snap}),super.render(),(0,g.extend)(this.graphic,{markerStartSetter:U,markerEndSetter:R}),this.setMarkers(this)}redraw(t){if(this.graphic){let e=this.toD(),i=t?"animate":"attr";e?(this.graphic[i]({d:e}),this.tracker[i]({d:e})):(this.graphic.attr({d:"M 0 -9000000000"}),this.tracker.attr({d:"M 0 -9000000000"})),this.graphic.placed=this.tracker.placed=!!e}super.redraw(t)}setMarkers(t){let e=t.options,i=t.chart,s=i.options.defs,o=e.fill,n=(0,g.defined)(o)&&"none"!==o?o:e.stroke;["markerStart","markerEnd"].forEach(function(o){let a,r,h,l,c=e[o];if(c){for(h in s)if((c===((a=s[h]).attributes&&a.attributes.id)||c===a.id)&&"marker"===a.tagName){r=a;break}r&&(l=t[o]=i.renderer.addMarker((e.id||(0,g.uniqueKey)())+"-"+c,(0,g.merge)(r,{color:n})),t.attr(o,l.getAttribute("id")))}})}}V.attrsMap={dashStyle:"dashstyle",strokeWidth:"stroke-width",stroke:"stroke",fill:"fill",zIndex:"zIndex"};class q extends X{constructor(t,e,i){super(t,e,i,"shape"),this.type="rect",this.translate=super.translateShape}init(t,e,i){let{point:s,xAxis:o,yAxis:n}=e;s&&"string"!=typeof s&&((0,g.defined)(o)&&(s.xAxis=o),(0,g.defined)(n)&&(s.yAxis=n)),super.init(t,e,i)}render(t){let e=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.rect(0,-9e9,0,0).attr(e).add(t),super.render()}redraw(t){if(this.graphic){let e=this.points[0],i=this.anchor(e).absolutePosition,s=this.options.width||0,o=this.options.height||0;if(i){let n=(0,g.defined)(this.options.xAxis)?this.chart.xAxis[this.options.xAxis]:void 0,a=(0,g.defined)(this.options.yAxis)?this.chart.yAxis[this.options.yAxis]:void 0;n&&(0,g.defined)(e.x)&&(s=this.calculateAnnotationSize(e.x,s,n)),a&&(0,g.defined)(e.y)&&(o=this.calculateAnnotationSize(e.y,o,a)),this.graphic[t?"animate":"attr"]({x:i.x,y:i.y,width:s,height:o})}else this.attr({x:0,y:-9e9});this.graphic.placed=!!i}super.redraw(t)}}q.attrsMap=(0,g.merge)(V.attrsMap,{width:"width",height:"height"});class $ extends X{constructor(t,e,i){super(t,e,i,"shape"),this.type="circle",this.translate=super.translateShape}init(t,e,i){let{point:s,xAxis:o,yAxis:n}=e;s&&"string"!=typeof s&&((0,g.defined)(o)&&(s.xAxis=o),(0,g.defined)(n)&&(s.yAxis=n)),super.init(t,e,i)}redraw(t){if(this.graphic){let e=this.points[0],i=this.anchor(e).absolutePosition,s=this.options.r||0;if(i){let o=(0,g.defined)(this.options.yAxis)?this.chart.yAxis[this.options.yAxis]:void 0;o&&(0,g.defined)(e.y)&&(s=this.calculateAnnotationSize(e.y,s,o)),this.graphic[t?"animate":"attr"]({x:i.x,y:i.y,r:s})}else this.graphic.attr({x:0,y:-9e9});this.graphic.placed=!!i}super.redraw.call(this,t)}render(t){let e=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.circle(0,-9e9,0).attr(e).add(t),super.render()}setRadius(t){this.options.r=t}}$.attrsMap=(0,g.merge)(V.attrsMap,{r:"r"});class _ extends X{constructor(t,e,i){super(t,e,i,"shape"),this.type="ellipse"}init(t,e,i){(0,g.defined)(e.yAxis)&&e.points.forEach(t=>{t&&"string"!=typeof t&&(t.yAxis=e.yAxis)}),(0,g.defined)(e.xAxis)&&e.points.forEach(t=>{t&&"string"!=typeof t&&(t.xAxis=e.xAxis)}),super.init(t,e,i)}render(t){this.graphic=this.annotation.chart.renderer.createElement("ellipse").attr(this.attrsFromOptions(this.options)).add(t),super.render()}translate(t,e){super.translateShape(t,e,!0)}getDistanceFromLine(t,e,i,s){return Math.abs((e.y-t.y)*i-(e.x-t.x)*s+e.x*t.y-e.y*t.x)/Math.sqrt((e.y-t.y)*(e.y-t.y)+(e.x-t.x)*(e.x-t.x))}getAttrs(t,e){let i=t.x,s=t.y,o=e.x,n=e.y,a=(i+o)/2,r=Math.sqrt((i-o)*(i-o)/4+(s-n)*(s-n)/4),h=180*Math.atan((n-s)/(o-i))/Math.PI;return a<i&&(h+=180),{cx:a,cy:(s+n)/2,rx:r,ry:this.getRY(),angle:h}}getRY(){let t=this.getYAxis();return(0,g.defined)(t)?Math.abs(t.toPixels(this.options.ry)-t.toPixels(0)):this.options.ry}getYAxis(){let t=this.options.yAxis;return this.chart.yAxis[t]}getAbsolutePosition(t){return this.anchor(t).absolutePosition}redraw(t){if(this.graphic){let e=this.getAbsolutePosition(this.points[0]),i=this.getAbsolutePosition(this.points[1]),s=this.getAttrs(e,i);e?this.graphic[t?"animate":"attr"]({cx:s.cx,cy:s.cy,rx:s.rx,ry:s.ry,rotation:s.angle,rotationOriginX:s.cx,rotationOriginY:s.cy}):this.graphic.attr({x:0,y:-9e9}),this.graphic.placed=!!e}super.redraw(t)}setYRadius(t){let e=this.annotation.userOptions.shapes;this.options.ry=t,e&&e[0]&&(e[0].ry=t,e[0].ry=t)}}_.attrsMap=(0,g.merge)(V.attrsMap,{ry:"ry"});var G=d(984),K=d.n(G);let{format:Z}=K();function J(t,e,i,s,o){let n=o&&o.anchorX,a=o&&o.anchorY,r,h,l=i/2;return(0,g.isNumber)(n)&&(0,g.isNumber)(a)&&(r=[["M",n,a]],(h=e-a)<0&&(h=-s-h),h<i&&(l=n<t+i/2?h:i-h),a>e+s?r.push(["L",t+l,e+s]):a<e?r.push(["L",t+l,e]):n<t?r.push(["L",t,e+s/2]):n>t+i&&r.push(["L",t+i,e+s/2])),r||[]}class Q extends X{static alignedPosition(t,e){return{x:Math.round((e.x||0)+(t.x||0)+(e.width-(t.width||0))*(0,g.getAlignFactor)(t.align)),y:Math.round((e.y||0)+(t.y||0)+(e.height-(t.height||0))*(0,g.getAlignFactor)(t.verticalAlign))}}static compose(t){t.prototype.symbols.connector=J}static justifiedOptions(t,e,i,s){let o,n=i.align,a=i.verticalAlign,r=e.box?0:e.padding||0,h=e.getBBox(),l={align:n,verticalAlign:a,x:i.x,y:i.y,width:e.width,height:e.height},c=(s.x||0)-t.plotLeft,p=(s.y||0)-t.plotTop;return(o=c+r)<0&&("right"===n?l.align="left":l.x=(l.x||0)-o),(o=c+h.width-r)>t.plotWidth&&("left"===n?l.align="right":l.x=(l.x||0)+t.plotWidth-o),(o=p+r)<0&&("bottom"===a?l.verticalAlign="top":l.y=(l.y||0)-o),(o=p+h.height-r)>t.plotHeight&&("top"===a?l.verticalAlign="bottom":l.y=(l.y||0)+t.plotHeight-o),l}constructor(t,e,i){super(t,e,i,"label")}translatePoint(t,e){super.translatePoint(t,e,0)}translate(t,e){var i,s;let o=this.annotation.chart,n=this.annotation.userOptions,a=o.annotations.indexOf(this.annotation),r=o.options.annotations[a];if(o.inverted){let i=t;t=e,e=i}(i=this.options).x||(i.x=0),(s=this.options).y||(s.y=0),this.options.x+=t,this.options.y+=e,r[this.collection][this.index].x=this.options.x,r[this.collection][this.index].y=this.options.y,n[this.collection][this.index].x=this.options.x,n[this.collection][this.index].y=this.options.y}render(t){let e=this.options,i=this.attrsFromOptions(e),s=e.style,o=this.annotation.chart.options.chart,n=o.plotBackgroundColor||o.backgroundColor;if(this.graphic=this.annotation.chart.renderer.label("",0,-9999,e.shape,void 0,void 0,e.useHTML,void 0,"annotation-label").attr(i).add(t),!this.annotation.chart.styledMode){if(s?.color==="contrast"){let t=!e.shape||Q.shapesWithoutBackground.indexOf(e.shape)>-1||"none"===e.backgroundColor?n:e.backgroundColor;s.color=this.annotation.chart.renderer.getContrast("string"==typeof t?t:"string"==typeof n?n:"#ffffff")}this.graphic.css(e.style||{}).shadow(e.shadow)}this.graphic.labelrank=e.labelrank,super.render()}redraw(t){let e=this.options,i=this.text||e.format||e.text,s=this.graphic,o=this.points[0];if(!s)return void this.redraw(t);s.attr({text:i?Z(String(i),o,this.annotation.chart):e.formatter.call(o,o)});let n=this.anchor(o),a=this.position(n);a?(s.alignAttr=a,a.anchorX=n.absolutePosition.x,a.anchorY=n.absolutePosition.y,s[t?"animate":"attr"](a)):s.attr({x:0,y:-9999}),s.placed=!!a,super.redraw(t)}anchor(t){let e=super.anchor.apply(this,arguments),i=this.options.x||0,s=this.options.y||0;return e.absolutePosition.x-=i,e.absolutePosition.y-=s,e.relativePosition.x-=i,e.relativePosition.y-=s,e}position(t){let e=this.graphic,i=this.annotation.chart,s=i.tooltip,o=this.points[0],n=this.options,a=t.absolutePosition,r=t.relativePosition,h,l,c,p,d=o.series.visible&&I.prototype.isInsidePlot.call(o);if(e&&d){let{width:t=0,height:u=0}=e;n.distance&&s?h=s.getPosition.call({chart:i,distance:(0,g.pick)(n.distance,16),getPlayingField:s.getPlayingField,pointer:s.pointer},t,u,{plotX:r.x,plotY:r.y,negative:o.negative,ttBelow:o.ttBelow,h:r.height||r.width}):n.positioner?h=n.positioner.call(this,this):(l={x:a.x,y:a.y,width:0,height:0},h=Q.alignedPosition((0,g.extend)(n,{width:t,height:u}),l),"justify"===this.options.overflow&&(h=Q.alignedPosition(Q.justifiedOptions(i,e,n,h),l))),n.crop&&(c=h.x-i.plotLeft,p=h.y-i.plotTop,d=i.isInsidePlot(c,p)&&i.isInsidePlot(c+t,p+u))}return d?h:null}}Q.attrsMap={backgroundColor:"fill",borderColor:"stroke",borderWidth:"stroke-width",zIndex:"zIndex",borderRadius:"r",padding:"padding"},Q.shapesWithoutBackground=["connector"];class tt extends X{constructor(t,e,i){super(t,e,i,"shape"),this.type="image",this.translate=super.translateShape}render(t){let e=this.attrsFromOptions(this.options),i=this.options;this.graphic=this.annotation.chart.renderer.image(i.src,0,-9e9,i.width,i.height).attr(e).add(t),this.graphic.width=i.width,this.graphic.height=i.height,super.render()}redraw(t){if(this.graphic){let e=this.anchor(this.points[0]),i=Q.prototype.position.call(this,e);i?this.graphic[t?"animate":"attr"]({x:i.x,y:i.y}):this.graphic.attr({x:0,y:-9e9}),this.graphic.placed=!!i}super.redraw(t)}}tt.attrsMap={width:"width",height:"height",zIndex:"zIndex"};var te=d(660),ti=d.n(te);let ts=t=>`<?xml version="1.0" encoding="utf-8"?>
|
|
13
|
+
*/function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(t._Highcharts,t._Highcharts.SeriesRegistry,t._Highcharts.Templating,t._Highcharts.AST,t._Highcharts.Color):"function"==typeof define&&define.amd?define("highcharts/modules/annotations",["highcharts/highcharts"],function(t){return e(t,t.SeriesRegistry,t.Templating,t.AST,t.Color)}):"object"==typeof exports?exports["highcharts/modules/annotations"]=e(t._Highcharts,t._Highcharts.SeriesRegistry,t._Highcharts.Templating,t._Highcharts.AST,t._Highcharts.Color):t.Highcharts=e(t.Highcharts,t.Highcharts.SeriesRegistry,t.Highcharts.Templating,t.Highcharts.AST,t.Highcharts.Color)}("u"<typeof window?this:window,(t,e,i,s,o)=>(()=>{"use strict";var n,a,r,h,l,c={660(t){t.exports=s},620(t){t.exports=o},512(t){t.exports=e},984(t){t.exports=i},944(e){e.exports=t}};let p={};function d(t){let e=p[t];if(void 0!==e)return e.exports;let i=p[t]={exports:{}};return c[t](i,i.exports,d),i.exports}d.n=t=>{let e=t&&t.__esModule?()=>t.default:()=>t;return d.d(e,{a:e}),e},d.d=(t,e)=>{if(Array.isArray(e))for(var i=0;i<e.length;){var s=e[i++],o=e[i++];d.o(t,s)?0===o&&i++:0===o?Object.defineProperty(t,s,{enumerable:!0,value:e[i++]}):Object.defineProperty(t,s,{enumerable:!0,get:o})}else for(var s in e)d.o(e,s)&&!d.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},d.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let u={};d.d(u,{default:()=>ee});var g=d(944),m=d.n(g);function f(t,e){let i=this.initAnnotation(t);return this.options.annotations.push(i.options),(e??!0)&&(i.redraw(),i.graphic.attr({opacity:1})),i}function v(){let t=this;t.plotBoxClip=this.renderer.clipRect(this.plotBox),t.controlPointsGroup=t.renderer.g("control-points").attr({zIndex:99}).clip(t.plotBoxClip).add(),t.options.annotations.forEach((e,i)=>{if(!t.annotations.some(t=>t.options===e)){let s=t.initAnnotation(e);t.options.annotations[i]=s.options}}),t.drawAnnotations(),(0,g.addEvent)(t,"redraw",t.drawAnnotations),(0,g.addEvent)(t,"destroy",function(){t.plotBoxClip.destroy(),t.controlPointsGroup.destroy()}),(0,g.addEvent)(t,"exportData",function(e){let i=t.annotations,s=(this.options.exporting&&this.options.exporting.csv||{}).columnHeaderFormatter,o=!e.dataRows[1].xValues,n=t.options.lang&&t.options.lang.exportData&&t.options.lang.exportData.annotationHeader,a=e.dataRows[0].length,r=t.options.exporting?.csv?.annotations?.itemDelimiter,h=t.options.exporting?.csv?.annotations?.join;i.forEach(t=>{t.options.labelOptions?.includeInDataExport&&t.labels.forEach(t=>{if(t.options.text){let i=t.options.text;t.points.forEach(t=>{let s=t.x,o=t.series.xAxis?t.series.xAxis.index:-1,n=!1;if(-1===o){let t=e.dataRows[0].length,a=Array(t);for(let e=0;e<t;++e)a[e]="";a.push(i),a.xValues=[],a.xValues[o]=s,e.dataRows.push(a),n=!0}if(n||e.dataRows.forEach(t=>{!n&&t.xValues&&void 0!==o&&s===t.xValues[o]&&(h&&t.length>a?t[t.length-1]+=r+i:t.push(i),n=!0)}),!n){let t=e.dataRows[0].length,n=Array(t);for(let e=0;e<t;++e)n[e]="";n[0]=s,n.push(i),n.xValues=[],void 0!==o&&(n.xValues[o]=s),e.dataRows.push(n)}})}})});let l=0;e.dataRows.forEach(t=>{l=Math.max(l,t.length)});let c=l-e.dataRows[0].length;for(let t=0;t<c;t++){let i=function(t){let e;return s&&!1!==(e=s(t))?e:(e=n+" "+t,o)?{columnTitle:e,topLevelColumnTitle:e}:e}(t+1);o?(e.dataRows[0].push(i.topLevelColumnTitle),e.dataRows[1].push(i.columnTitle)):e.dataRows[0].push(i)}})}function y(){this.plotBoxClip.attr(this.plotBox),this.annotations.forEach(t=>{t.redraw(),t.graphic.animate({opacity:1},t.animationConfig)})}function x(t){let e=this.annotations,i="annotations"===t.coll?t:(0,g.find)(e,function(e){return e.options.id===t});i&&((0,g.fireEvent)(i,"remove"),(0,g.erase)(this.options.annotations,i.options),(0,g.erase)(e,i),i.destroy())}function b(){let t=this.options.annotations,e=this.userOptions.annotations;this.annotations=[],(0,g.isArray)(this.options.annotations)||(this.options.annotations=[]),(0,g.isObject)(e,!0)&&(0,g.isObject)(t,!0)&&this.options.annotations.push(t)}function A(t){this.chart.hasDraggedAnnotation||t.apply(this,Array.prototype.slice.call(arguments,1))}(a||(a={})).compose=function(t,e,i){let s=e.prototype;if(!s.addAnnotation){let o=i.prototype;(0,g.addEvent)(e,"afterInit",b),s.addAnnotation=f,s.callbacks.push(v),s.collectionsWithInit.annotations=[f],s.collectionsWithUpdate.push("annotations"),s.drawAnnotations=y,s.removeAnnotation=x,s.initAnnotation=function(e){let i=new(t.types[e.type]||t)(this,e);return this.annotations.push(i),i},(0,g.wrap)(o,"onContainerMouseDown",A)}};let E=a,w={visible:!0,animation:{},crop:!0,draggable:"xy",labelOptions:{align:"center",allowOverlap:!1,backgroundColor:"rgba(0, 0, 0, 0.75)",borderColor:"var(--highcharts-neutral-color-100)",borderRadius:3,borderWidth:1,className:"highcharts-no-tooltip",crop:!1,formatter:function(){return(0,g.defined)(this.y)?""+this.y:"Annotation label"},includeInDataExport:!0,overflow:"justify",padding:5,shadow:!1,shape:"callout",style:{fontSize:"0.7em",fontWeight:"normal",color:"contrast"},useHTML:!1,verticalAlign:"bottom",x:0,y:-16},shapeOptions:{stroke:"rgba(0, 0, 0, 0.75)",strokeWidth:1,fill:"rgba(0, 0, 0, 0.75)",r:0,snap:2},controlPointOptions:{events:{},style:{cursor:"pointer",fill:"var(--highcharts-background-color)",stroke:"var(--highcharts-neutral-color-100)","stroke-width":2},height:10,symbol:"circle",visible:!1,width:10},events:{},typeOptions:{},types:{},zIndex:6},{doc:k,isTouchDevice:C}=m(),P=class{addEvents(){let t=this,e=function(e){(0,g.addEvent)(e,C?"touchstart":"mousedown",e=>{t.onMouseDown(e)},{passive:!1})};if(e(this.graphic.element),(t.labels||[]).forEach(t=>{t.options.useHTML&&t.graphic.text&&!t.graphic.text.foreignObject&&e(t.graphic.text.element)}),(0,g.objectEach)(t.options.events,(e,i)=>{let s=function(s){"click"===i&&t.cancelClick||e.call(t,t.chart.pointer?.normalize(s),t.target,t)};-1===(t.nonDOMEvents||[]).indexOf(i)?((0,g.addEvent)(t.graphic.element,i,s,{passive:!1}),t.graphic.div&&(0,g.addEvent)(t.graphic.div,i,s,{passive:!1})):(0,g.addEvent)(t,i,s,{passive:!1})}),t.options.draggable&&((0,g.addEvent)(t,"drag",t.onDrag),!t.graphic.renderer.styledMode)){let e={cursor:{x:"ew-resize",y:"ns-resize",xy:"move"}[t.options.draggable]};t.graphic.css(e),(t.labels||[]).forEach(t=>{t.options.useHTML&&t.graphic.text&&!t.graphic.text.foreignObject&&t.graphic.text.css(e)})}t.isUpdating||(0,g.fireEvent)(t,"add")}destroy(){this.removeDocEvents(),(0,g.removeEvent)(this),this.hcEvents=null}mouseMoveToRadians(t,e,i){let s=t.prevChartY-i,o=t.prevChartX-e,n=t.chartY-i,a=t.chartX-e,r;return this.chart.inverted&&(r=o,o=s,s=r,r=a,a=n,n=r),Math.atan2(n,a)-Math.atan2(s,o)}mouseMoveToScale(t,e,i){let s=t.prevChartX-e,o=t.prevChartY-i,n=t.chartX-e,a=t.chartY-i,r=(n||1)/(s||1),h=(a||1)/(o||1);if(this.chart.inverted){let t=h;h=r,r=t}return{x:r,y:h}}mouseMoveToTranslation(t){let e=t.chartX-t.prevChartX,i=t.chartY-t.prevChartY,s;return this.chart.inverted&&(s=i,i=e,e=s),{x:e,y:i}}onDrag(t){if(this.chart.isInsidePlot(t.chartX-this.chart.plotLeft,t.chartY-this.chart.plotTop,{visiblePlotOnly:!0})){let e=this.mouseMoveToTranslation(t);"x"===this.options.draggable&&(e.y=0),"y"===this.options.draggable&&(e.x=0),this.points.length?this.translate(e.x,e.y):(this.shapes.forEach(t=>t.translate(e.x,e.y)),this.labels.forEach(t=>t.translate(e.x,e.y))),this.redraw(!1)}}onMouseDown(t){if(t.preventDefault&&t.preventDefault(),2===t.button)return;let e=this,i=e.chart.pointer,s=t?.sourceCapabilities?.firesTouchEvents||!1,o=(t=i?.normalize(t)||t).chartX,n=t.chartY;e.cancelClick=!1,e.chart.hasDraggedAnnotation=!0,e.removeDrag=(0,g.addEvent)(k,C||s?"touchmove":"mousemove",function(t){e.hasDragged=!0,(t=i?.normalize(t)||t).prevChartX=o,t.prevChartY=n,(0,g.fireEvent)(e,"drag",t),o=t.chartX,n=t.chartY},C||s?{passive:!1}:void 0),e.removeMouseUp=(0,g.addEvent)(k,C||s?"touchend":"mouseup",function(){let t=(e.target&&e.target.annotation)??e.target;t&&(t.cancelClick=e.hasDragged),e.cancelClick=e.hasDragged,e.chart.hasDraggedAnnotation=!1,e.hasDragged&&(0,g.fireEvent)(t??e,"afterUpdate"),e.hasDragged=!1,e.onMouseUp()},C||s?{passive:!1}:void 0)}onMouseUp(){this.removeDocEvents()}removeDocEvents(){this.removeDrag&&(this.removeDrag=this.removeDrag()),this.removeMouseUp&&(this.removeMouseUp=this.removeMouseUp())}},O=class extends P{constructor(t,e,i,s){super(),this.nonDOMEvents=["drag"],this.chart=t,this.target=e,this.options=i,this.index=i.index??s}destroy(){super.destroy(),this.graphic&&(this.graphic=this.graphic.destroy()),this.chart=null,this.target=null,this.options=null}redraw(t){this.graphic[t?"animate":"attr"](this.options.positioner.call(this,this.target,this))}render(){let t=this.chart,e=this.options;this.graphic=t.renderer.symbol(e.symbol,0,0,e.width,e.height).add(t.controlPointsGroup).css(e.style),this.setVisibility(e.visible),this.addEvents()}setVisibility(t){this.graphic[t?"show":"hide"](),this.options.visible=t}update(t){let e=this.chart,i=this.target,s=this.index,o=(0,g.merge)(!0,this.options,t);this.destroy(),this.constructor(e,i,o,s),this.render(e.controlPointsGroup),this.redraw()}},M={backgroundColor:"color",backgroundColors:"color",borderColor:"color",borderRadius:"string",color:"color",fill:"color",fontSize:"string",labels:"string",name:"string",stroke:"color",title:"string"},N={annotationsFieldsTypes:M,getAssignedAxis:function(t){return t.filter(t=>{let e=t.axis.getExtremes(),i=e.min,s=e.max,o=t.axis.minPointOffset??0;return(0,g.isNumber)(i)&&(0,g.isNumber)(s)&&t.value>=i-o&&t.value<=s+o&&!t.axis.options.isInternal})[0]},getAxisFromOptions:function(t,e,i){return(0,g.isNumber)(i)?t[e][i]:(0,g.defined)(i)?(0,g.find)(t[e],t=>t.options.id===i):void 0},getFieldType:function(t,e){let i=M[t],s=typeof e;return(0,g.defined)(i)&&(s=i),({string:"text",number:"number",boolean:"checkbox",color:"color"})[s]}};var B=d(512),T=d.n(B);let{getAxisFromOptions:S}=N,{series:{prototype:L}}=T();class I{static fromPoint(t){return new I(t.series.chart,null,{x:t.x,y:t.y,xAxis:t.series.xAxis,yAxis:t.series.yAxis})}static pointToPixels(t,e){let i=t.series,s=i.chart,o=t.plotX||0,n=t.plotY||0,a;return s.inverted&&(t.mock?(o=t.plotY,n=t.plotX):(o=s.plotWidth-(t.plotY||0),n=s.plotHeight-(t.plotX||0))),i&&!e&&(o+=(a=i.getPlotBox()).translateX,n+=a.translateY),{x:o,y:n}}static pointToOptions(t){return{x:t.x,y:t.y,xAxis:t.series.xAxis,yAxis:t.series.yAxis}}constructor(t,e,i){this.mock=!0,this.point=this,this.series={visible:!0,chart:t,getPlotBox:L.getPlotBox},this.target=e||null,this.options=i,this.applyOptions(this.getOptions())}applyOptions(t){this.command=t.command,this.setAxis(t,"x"),this.setAxis(t,"y"),this.refresh()}getOptions(){return this.hasDynamicOptions()&&"function"==typeof this.options?this.options(this.target):this.options}hasDynamicOptions(){return"function"==typeof this.options}isInsidePlot(){let t=this.plotX,e=this.plotY,i=this.series.xAxis,s=this.series.yAxis,o={x:t,y:e,isInsidePlot:!0,options:{}};return i&&(o.isInsidePlot=(0,g.defined)(t)&&t>=0&&t<=i.len),s&&(o.isInsidePlot=o.isInsidePlot&&(0,g.defined)(e)&&e>=0&&e<=s.len),(0,g.fireEvent)(this.series.chart,"afterIsInsidePlot",o),o.isInsidePlot}refresh(){let t=this.series,e=t.xAxis,i=t.yAxis,s=this.getOptions();e?(this.x=s.x,this.plotX=e.toPixels(s.x,!0)):(this.x=void 0,this.plotX=s.x),i?(this.y=s.y,this.plotY=i.toPixels(s.y,!0)):(this.y=null,this.plotY=s.y),this.isInside=this.isInsidePlot()}refreshOptions(){let t=this.series,e=t.xAxis,i=t.yAxis;this.x=this.options.x=e?this.options.x=e.toValue(this.plotX,!0):this.plotX,this.y=this.options.y=i?i.toValue(this.plotY,!0):this.plotY}rotate(t,e,i){if(!this.hasDynamicOptions()){let s=Math.cos(i),o=Math.sin(i),n=this.plotX-t,a=this.plotY-e;this.plotX=n*s-a*o+t,this.plotY=n*o+a*s+e,this.refreshOptions()}}scale(t,e,i,s){if(!this.hasDynamicOptions()){let o=this.plotX*i,n=this.plotY*s;this.plotX=(1-i)*t+o,this.plotY=(1-s)*e+n,this.refreshOptions()}}setAxis(t,e){let i=e+"Axis",s=t[i],o=this.series.chart;this.series[i]="object"==typeof s?s:S(o,i,s)||null}toAnchor(){let t=[this.plotX,this.plotY,0,0];return this.series.chart.inverted&&(t[0]=this.plotY,t[1]=this.plotX),t}translate(t,e,i,s){this.hasDynamicOptions()||(this.plotX+=i,this.plotY+=s,this.refreshOptions())}}!function(t){function e(){let t=this.controlPoints,e=this.options.controlPoints||[];e.forEach((i,s)=>{let o=(0,g.merge)(this.options.controlPointOptions,i);o.index||(o.index=s),e[s]=o,t.push(new O(this.chart,this,o))})}function i(t){let e=t.series.getPlotBox(),i=t.series.chart,s=t.mock?t.toAnchor():i.tooltip&&i.tooltip.getAnchor.call({chart:t.series.chart},t)||[0,0,0,0],o={x:s[0]+(this.options.x||0),y:s[1]+(this.options.y||0),height:s[2]||0,width:s[3]||0};return{relativePosition:o,absolutePosition:(0,g.merge)(o,{x:o.x+(t.mock?e.translateX:i.plotLeft),y:o.y+(t.mock?e.translateY:i.plotTop)})}}function s(){this.controlPoints.forEach(t=>t.destroy()),this.chart=null,this.controlPoints=null,this.points=null,this.options=null,this.annotation&&(this.annotation=null)}function o(){let t=this.options;return t.points||t.point&&(0,g.splat)(t.point)}function n(){let t,e,i=this.getPointsOptions(),s=this.points,o=i?.length||0;for(t=0;t<o;t++){if(!(e=this.point(i[t],s[t]))){s.length=0;return}e.mock&&e.refresh(),s[t]=e}return s}function a(t,e){if(t&&t.series)return t;if(!e||null===e.series){if((0,g.isObject)(t))e=new I(this.chart,this,t);else if((0,g.isString)(t))e=this.chart.get(t)||null;else if("function"==typeof t){let i=t.call(e,this);e=i.series?i:new I(this.chart,this,t)}}return e}function r(t){this.controlPoints.forEach(e=>e.redraw(t))}function h(){this.controlPoints.forEach(t=>t.render())}function l(t,e,i,s,o){if(this.chart.inverted){let t=e;e=i,i=t}this.points.forEach((n,a)=>this.transformPoint(t,e,i,s,o,a),this)}function c(t,e,i,s,o,n){let a=this.points[n];a.mock||(a=this.points[n]=I.fromPoint(a)),a[t](e,i,s,o)}function p(t,e){this.transform("translate",null,null,t,e)}function d(t,e,i){this.transformPoint("translate",null,null,t,e,i)}t.compose=function(t){let u=t.prototype;u.addControlPoints||(0,g.merge)(!0,u,{addControlPoints:e,anchor:i,destroyControlTarget:s,getPointsOptions:o,linkPoints:n,point:a,redrawControlPoints:r,renderControlPoints:h,transform:l,transformPoint:c,translate:p,translatePoint:d})}}(r||(r={}));let D=r;class Y{constructor(t,e,i,s){this.annotation=t,this.chart=t.chart,this.collection="label"===s?"labels":"shapes",this.controlPoints=[],this.options=e,this.points=[],this.index=i,this.itemType=s,this.init(t,e,i)}attr(){this.graphic.attr.apply(this.graphic,arguments)}attrsFromOptions(t){let e,i,s=this.constructor.attrsMap,o={},n=this.chart.styledMode;for(e in t)i=s[e],void 0===s[e]||n&&-1!==["fill","stroke","stroke-width"].indexOf(i)||(o[i]=t[e]);return o}destroy(){this.graphic&&(this.graphic=this.graphic.destroy()),this.tracker&&(this.tracker=this.tracker.destroy()),this.destroyControlTarget()}calculateAnnotationSize(t,e,i){let s=i.toPixels(t,!0);return Math.abs(i.toPixels(t+e,!0)-s)}init(t,e,i){this.annotation=t,this.chart=t.chart,this.options=e,this.points=[],this.controlPoints=[],this.index=i,this.linkPoints(),this.addControlPoints()}redraw(t){this.redrawControlPoints(t)}render(t){this.options.className&&this.graphic&&this.graphic.addClass(this.options.className),this.renderControlPoints()}rotate(t,e,i){this.transform("rotate",t,e,i)}scale(t,e,i,s){this.transform("scale",t,e,i,s)}setControlPointsVisibility(t){this.controlPoints.forEach(e=>{e.setVisibility(t)})}shouldBeDrawn(){return!!this.points.length}translateShape(t,e,i){let s=this.annotation.chart,o=this.annotation.userOptions,n=s.annotations.indexOf(this.annotation),a=s.options.annotations[n];this.translatePoint(t,e,0),i&&this.translatePoint(t,e,1),a[this.collection][this.index].point=this.options.point,o[this.collection][this.index].point=this.options.point}update(t){let e=this.annotation,i=(0,g.merge)(!0,this.options,t),s=this.graphic.parentGroup,o=this.constructor;this.destroy();let n=new o(e,i,this.index,this.itemType);(0,g.merge)(!0,this,n),this.render(s),this.redraw()}}D.compose(Y);let X=Y,{defaultMarkers:F}={defaultMarkers:{arrow:{tagName:"marker",attributes:{id:"arrow",refY:5,refX:9,markerWidth:10,markerHeight:10},children:[{tagName:"path",attributes:{d:"M 0 0 L 10 5 L 0 10 Z","stroke-width":0}}]},"reverse-arrow":{tagName:"marker",attributes:{id:"reverse-arrow",refY:5,refX:1,markerWidth:10,markerHeight:10},children:[{tagName:"path",attributes:{d:"M 0 5 L 10 0 L 10 10 Z","stroke-width":0}}]}}},R=j("marker-end"),U=j("marker-start"),W="rgba(192,192,192,"+(m().svg?1e-4:.002)+")";function j(t){return function(e){this.attr(t,"url(#"+e+")")}}function H(){this.options.defs=(0,g.merge)(F,this.options.defs||{})}function z(t,e){let i={attributes:{id:t}},s={stroke:e.color||"none",fill:e.color||"rgba(0, 0, 0, 0.75)"};i.children=e.children&&e.children.map(function(t){return(0,g.merge)(s,t)});let o=(0,g.merge)(!0,{attributes:{markerWidth:20,markerHeight:20,refX:0,refY:0,orient:"auto"}},e,i),n=this.definition(o);return n.id=t,n}class V extends X{static compose(t,e){let i=e.prototype;i.addMarker||((0,g.addEvent)(t,"afterGetContainer",H),i.addMarker=z)}constructor(t,e,i){super(t,e,i,"shape"),this.type="path"}init(t,e,i){(0,g.defined)(e.yAxis)&&e.points.forEach(t=>{t&&"string"!=typeof t&&(t.yAxis=e.yAxis)}),(0,g.defined)(e.xAxis)&&e.points.forEach(t=>{t&&"string"!=typeof t&&(t.xAxis=e.xAxis)}),super.init(t,e,i)}toD(){let t=this.options.d;if(t)return"function"==typeof t?t.call(this):t;let e=this.points,i=e.length,s=[],o=i,n=e[0],a=o&&this.anchor(n).absolutePosition,r=0,h;if(a)for(s.push(["M",a.x,a.y]);++r<i&&o;)h=(n=e[r]).command||"L",a=this.anchor(n).absolutePosition,"M"===h||"L"===h?s.push([h,a.x,a.y]):"Z"===h&&s.push([h]),o=n.series.visible;return o&&this.graphic?this.chart.renderer.crispLine(s,this.graphic.strokeWidth()):null}shouldBeDrawn(){return super.shouldBeDrawn()||!!this.options.d}render(t){let e=this.options,i=this.attrsFromOptions(e);this.graphic=this.annotation.chart.renderer.path([["M",0,0]]).attr(i).add(t),this.tracker=this.annotation.chart.renderer.path([["M",0,0]]).addClass("highcharts-tracker-line").attr({zIndex:2}).add(t),this.annotation.chart.styledMode||this.tracker.attr({"stroke-linejoin":"round",stroke:W,fill:W,"stroke-width":this.graphic.strokeWidth()+2*e.snap}),super.render(),(0,g.extend)(this.graphic,{markerStartSetter:U,markerEndSetter:R}),this.setMarkers(this)}redraw(t){if(this.graphic){let e=this.toD(),i=t?"animate":"attr";e?(this.graphic[i]({d:e}),this.tracker[i]({d:e})):(this.graphic.attr({d:"M 0 -9000000000"}),this.tracker.attr({d:"M 0 -9000000000"})),this.graphic.placed=this.tracker.placed=!!e}super.redraw(t)}setMarkers(t){let e=t.options,i=t.chart,s=i.options.defs,o=e.fill,n=(0,g.defined)(o)&&"none"!==o?o:e.stroke;["markerStart","markerEnd"].forEach(function(o){let a,r,h,l,c=e[o];if(c){for(h in s)if((c===((a=s[h]).attributes&&a.attributes.id)||c===a.id)&&"marker"===a.tagName){r=a;break}r&&(l=t[o]=i.renderer.addMarker((e.id||(0,g.uniqueKey)())+"-"+c,(0,g.merge)(r,{color:n})),t.attr(o,l.getAttribute("id")))}})}}V.attrsMap={dashStyle:"dashstyle",strokeWidth:"stroke-width",stroke:"stroke",fill:"fill",zIndex:"zIndex"};class q extends X{constructor(t,e,i){super(t,e,i,"shape"),this.type="rect",this.translate=super.translateShape}init(t,e,i){let{point:s,xAxis:o,yAxis:n}=e;s&&"string"!=typeof s&&((0,g.defined)(o)&&(s.xAxis=o),(0,g.defined)(n)&&(s.yAxis=n)),super.init(t,e,i)}render(t){let e=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.rect(0,-9e9,0,0).attr(e).add(t),super.render()}redraw(t){if(this.graphic){let e=this.points[0],i=this.anchor(e).absolutePosition,s=this.options.width||0,o=this.options.height||0;if(i){let n=(0,g.defined)(this.options.xAxis)?this.chart.xAxis[this.options.xAxis]:void 0,a=(0,g.defined)(this.options.yAxis)?this.chart.yAxis[this.options.yAxis]:void 0;n&&(0,g.defined)(e.x)&&(s=this.calculateAnnotationSize(e.x,s,n)),a&&(0,g.defined)(e.y)&&(o=this.calculateAnnotationSize(e.y,o,a)),this.graphic[t?"animate":"attr"]({x:i.x,y:i.y,width:s,height:o})}else this.attr({x:0,y:-9e9});this.graphic.placed=!!i}super.redraw(t)}}q.attrsMap=(0,g.merge)(V.attrsMap,{width:"width",height:"height"});class $ extends X{constructor(t,e,i){super(t,e,i,"shape"),this.type="circle",this.translate=super.translateShape}init(t,e,i){let{point:s,xAxis:o,yAxis:n}=e;s&&"string"!=typeof s&&((0,g.defined)(o)&&(s.xAxis=o),(0,g.defined)(n)&&(s.yAxis=n)),super.init(t,e,i)}redraw(t){if(this.graphic){let e=this.points[0],i=this.anchor(e).absolutePosition,s=this.options.r||0;if(i){let o=(0,g.defined)(this.options.yAxis)?this.chart.yAxis[this.options.yAxis]:void 0;o&&(0,g.defined)(e.y)&&(s=this.calculateAnnotationSize(e.y,s,o)),this.graphic[t?"animate":"attr"]({x:i.x,y:i.y,r:s})}else this.graphic.attr({x:0,y:-9e9});this.graphic.placed=!!i}super.redraw.call(this,t)}render(t){let e=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.circle(0,-9e9,0).attr(e).add(t),super.render()}setRadius(t){this.options.r=t}}$.attrsMap=(0,g.merge)(V.attrsMap,{r:"r"});class _ extends X{constructor(t,e,i){super(t,e,i,"shape"),this.type="ellipse"}init(t,e,i){(0,g.defined)(e.yAxis)&&e.points.forEach(t=>{t&&"string"!=typeof t&&(t.yAxis=e.yAxis)}),(0,g.defined)(e.xAxis)&&e.points.forEach(t=>{t&&"string"!=typeof t&&(t.xAxis=e.xAxis)}),super.init(t,e,i)}render(t){this.graphic=this.annotation.chart.renderer.createElement("ellipse").attr(this.attrsFromOptions(this.options)).add(t),super.render()}translate(t,e){super.translateShape(t,e,!0)}getDistanceFromLine(t,e,i,s){return Math.abs((e.y-t.y)*i-(e.x-t.x)*s+e.x*t.y-e.y*t.x)/Math.sqrt((e.y-t.y)*(e.y-t.y)+(e.x-t.x)*(e.x-t.x))}getAttrs(t,e){let i=t.x,s=t.y,o=e.x,n=e.y,a=(i+o)/2,r=Math.sqrt((i-o)*(i-o)/4+(s-n)*(s-n)/4),h=180*Math.atan((n-s)/(o-i))/Math.PI;return a<i&&(h+=180),{cx:a,cy:(s+n)/2,rx:r,ry:this.getRY(),angle:h}}getRY(){let t=this.getYAxis();return(0,g.defined)(t)?Math.abs(t.toPixels(this.options.ry)-t.toPixels(0)):this.options.ry}getYAxis(){let t=this.options.yAxis;return this.chart.yAxis[t]}getAbsolutePosition(t){return this.anchor(t).absolutePosition}redraw(t){if(this.graphic){let e=this.getAbsolutePosition(this.points[0]),i=this.getAbsolutePosition(this.points[1]),s=this.getAttrs(e,i);e?this.graphic[t?"animate":"attr"]({cx:s.cx,cy:s.cy,rx:s.rx,ry:s.ry,rotation:s.angle,rotationOriginX:s.cx,rotationOriginY:s.cy}):this.graphic.attr({x:0,y:-9e9}),this.graphic.placed=!!e}super.redraw(t)}setYRadius(t){let e=this.annotation.userOptions.shapes;this.options.ry=t,e&&e[0]&&(e[0].ry=t,e[0].ry=t)}}_.attrsMap=(0,g.merge)(V.attrsMap,{ry:"ry"});var G=d(984),K=d.n(G);let{format:Z}=K();function J(t,e,i,s,o){let n=o&&o.anchorX,a=o&&o.anchorY,r,h,l=i/2;return(0,g.isNumber)(n)&&(0,g.isNumber)(a)&&(r=[["M",n,a]],(h=e-a)<0&&(h=-s-h),h<i&&(l=n<t+i/2?h:i-h),a>e+s?r.push(["L",t+l,e+s]):a<e?r.push(["L",t+l,e]):n<t?r.push(["L",t,e+s/2]):n>t+i&&r.push(["L",t+i,e+s/2])),r||[]}class Q extends X{static alignedPosition(t,e){return{x:Math.round((e.x||0)+(t.x||0)+(e.width-(t.width||0))*(0,g.getAlignFactor)(t.align)),y:Math.round((e.y||0)+(t.y||0)+(e.height-(t.height||0))*(0,g.getAlignFactor)(t.verticalAlign))}}static compose(t){t.prototype.symbols.connector=J}static justifiedOptions(t,e,i,s){let o,n=i.align,a=i.verticalAlign,r=e.box?0:e.padding||0,h=e.getBBox(),l={align:n,verticalAlign:a,x:i.x,y:i.y,width:e.width,height:e.height},c=(s.x||0)-t.plotLeft,p=(s.y||0)-t.plotTop;return(o=c+r)<0&&("right"===n?l.align="left":l.x=(l.x||0)-o),(o=c+h.width-r)>t.plotWidth&&("left"===n?l.align="right":l.x=(l.x||0)+t.plotWidth-o),(o=p+r)<0&&("bottom"===a?l.verticalAlign="top":l.y=(l.y||0)-o),(o=p+h.height-r)>t.plotHeight&&("top"===a?l.verticalAlign="bottom":l.y=(l.y||0)+t.plotHeight-o),l}constructor(t,e,i){super(t,e,i,"label")}translatePoint(t,e){super.translatePoint(t,e,0)}translate(t,e){var i,s;let o=this.annotation.chart,n=this.annotation.userOptions,a=o.annotations.indexOf(this.annotation),r=o.options.annotations[a];if(o.inverted){let i=t;t=e,e=i}(i=this.options).x||(i.x=0),(s=this.options).y||(s.y=0),this.options.x+=t,this.options.y+=e,r[this.collection][this.index].x=this.options.x,r[this.collection][this.index].y=this.options.y,n[this.collection][this.index].x=this.options.x,n[this.collection][this.index].y=this.options.y}render(t){let e=this.options,i=this.attrsFromOptions(e),s=e.style,o=this.annotation.chart.options.chart,n=o.plotBackgroundColor||o.backgroundColor;if(this.graphic=this.annotation.chart.renderer.label("",0,-9999,e.shape,void 0,void 0,e.useHTML,void 0,"annotation-label").attr(i).add(t),!this.annotation.chart.styledMode){if(s?.color==="contrast"){let t=!e.shape||Q.shapesWithoutBackground.indexOf(e.shape)>-1||"none"===e.backgroundColor?n:e.backgroundColor;s.color=this.annotation.chart.renderer.getContrast("string"==typeof t?t:"string"==typeof n?n:"#ffffff")}this.graphic.css(e.style||{}).shadow(e.shadow)}this.graphic.labelrank=e.labelrank,super.render()}redraw(t){let e=this.options,i=this.text||e.format||e.text,s=this.graphic,o=this.points[0];if(!s)return void this.redraw(t);s.attr({text:i?Z(String(i),o,this.annotation.chart):e.formatter.call(o,o)});let n=this.anchor(o),a=this.position(n);a?(s.alignAttr=a,a.anchorX=n.absolutePosition.x,a.anchorY=n.absolutePosition.y,s[t?"animate":"attr"](a)):s.attr({x:0,y:-9999}),s.placed=!!a,super.redraw(t)}anchor(t){let e=super.anchor.apply(this,arguments),i=this.options.x||0,s=this.options.y||0;return e.absolutePosition.x-=i,e.absolutePosition.y-=s,e.relativePosition.x-=i,e.relativePosition.y-=s,e}position(t){let e=this.graphic,i=this.annotation.chart,s=i.tooltip,o=this.points[0],n=this.options,a=t.absolutePosition,r=t.relativePosition,h,l,c,p,d=o.series.visible&&I.prototype.isInsidePlot.call(o);if(e&&d){let{width:t=0,height:u=0}=e;n.distance&&s?h=s.getPosition.call({chart:i,distance:n.distance??16,getPlayingField:s.getPlayingField,pointer:s.pointer},t,u,{plotX:r.x,plotY:r.y,negative:o.negative,ttBelow:o.ttBelow,h:r.height||r.width}):n.positioner?h=n.positioner.call(this,this):(l={x:a.x,y:a.y,width:0,height:0},h=Q.alignedPosition((0,g.extend)(n,{width:t,height:u}),l),"justify"===this.options.overflow&&(h=Q.alignedPosition(Q.justifiedOptions(i,e,n,h),l))),n.crop&&(c=h.x-i.plotLeft,p=h.y-i.plotTop,d=i.isInsidePlot(c,p)&&i.isInsidePlot(c+t,p+u))}return d?h:null}}Q.attrsMap={backgroundColor:"fill",borderColor:"stroke",borderWidth:"stroke-width",zIndex:"zIndex",borderRadius:"r",padding:"padding"},Q.shapesWithoutBackground=["connector"];class tt extends X{constructor(t,e,i){super(t,e,i,"shape"),this.type="image",this.translate=super.translateShape}render(t){let e=this.attrsFromOptions(this.options),i=this.options;this.graphic=this.annotation.chart.renderer.image(i.src,0,-9e9,i.width,i.height).attr(e).add(t),this.graphic.width=i.width,this.graphic.height=i.height,super.render()}redraw(t){if(this.graphic){let e=this.anchor(this.points[0]),i=Q.prototype.position.call(this,e);i?this.graphic[t?"animate":"attr"]({x:i.x,y:i.y}):this.graphic.attr({x:0,y:-9e9}),this.graphic.placed=!!i}super.redraw(t)}}tt.attrsMap={width:"width",height:"height",zIndex:"zIndex"};var te=d(660),ti=d.n(te);let ts=t=>`<?xml version="1.0" encoding="utf-8"?>
|
|
14
14
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 ${t} ${t}">`,to="#4B4B4D",tn={"close.svg":`${ts(32)}
|
|
15
15
|
<polygon fill="${to}" points="24.308,8.756 23.248,7.695 16.002,14.941 8.757,7.695 7.695,8.754 14.941,16.001 7.696,23.246
|
|
16
16
|
8.755,24.308 16.002,17.061 23.247,24.307 24.308,23.248 17.062,16.001"/>
|
|
@@ -31,4 +31,4 @@
|
|
|
31
31
|
M7.686,20.375l9.939-9.939l1.439,1.439l-9.939,9.939L7.686,20.375z M18.686,9.375l0.939-0.939l3.939,3.939l-0.939,0.939
|
|
32
32
|
L18.686,9.375z M6.974,21.784l3.242,3.242l-4.215,0.973L6.974,21.784z"/>
|
|
33
33
|
</svg>
|
|
34
|
-
`},ta=(t,e,i)=>{let s,o=i[t];return"renderer"===e&&o?(o=encodeURIComponent(o),s=`url("data:image/svg+xml;charset=utf-8,${o}")`):s=e.startsWith("http")&&e.match(/\.(png|svg|jpe?g|gif)$/ig)?'url("'+e+'")':`url("${e}${t}")`,s},tr=class{constructor(t,e){this.iconsURL=e,this.container=this.createPopupContainer(t),this.closeButton=this.addCloseButton()}createPopupContainer(t,e="highcharts-popup highcharts-no-tooltip"){return(0,g.createElement)("div",{className:e},void 0,t)}addCloseButton(t="highcharts-popup-close"){let e=(0,g.createElement)("button",{className:t},void 0,this.container);return(0,g.createElement)("span",{className:"highcharts-icon"},{backgroundImage:ta("close.svg",this.iconsURL,tn)},e),["click","touchstart"].forEach(t=>{(0,g.addEvent)(e,t,this.closeButtonEvents.bind(this))}),(0,g.addEvent)(document,"keydown",t=>{"Escape"===t.code&&this.closeButtonEvents()}),e}closeButtonEvents(){this.closePopup()}showPopup(t="highcharts-annotation-toolbar"){let e=this.container,i=this.closeButton;this.type=void 0,e.innerHTML=ti().emptyHTML,e.className.indexOf(t)>=0&&(e.classList.remove(t),e.removeAttribute("style")),e.appendChild(i),e.style.display="block",e.style.height=""}closePopup(){this.container.style.display="none"}};var th=d(620),tl=d.n(th);let{doc:tc,isFirefox:tp}=m();function td(t,e,i,s,o,n){let a,r;if(!e)return;let h=this.addInput,l=this.lang;(0,g.objectEach)(s,(s,n)=>{a=""!==i?i+"."+n:n,(0,g.isObject)(s)&&(!(0,g.isArray)(s)||(0,g.isArray)(s)&&(0,g.isObject)(s[0])?((r=l[n]||n).match(/\d/g)||o.push([!0,r,t]),td.call(this,t,e,a,s,o,!1)):o.push([this,a,"annotation",t,s]))}),n&&((0,g.stableSort)(o,t=>t[1].match(/format/g)?-1:1),tp&&o.reverse(),o.forEach(t=>{!0===t[0]?(0,g.createElement)("span",{className:"highcharts-annotation-title"},void 0,t[2]).appendChild(tc.createTextNode(t[1])):(t[4]={value:t[4][0],type:t[4][1]},h.apply(t[0],t.splice(1)))}))}let{doc:tu}=m(),{seriesTypes:tg}=T();(n=h||(h={}))[n["params.algorithm"]=0]="params.algorithm",n[n["params.average"]=1]="params.average";let tm={"algorithm-pivotpoints":["standard","fibonacci","camarilla"],"average-disparityindex":["sma","ema","dema","tema","wma"]};function tf(t){let e=(0,g.createElement)("div",{className:"highcharts-popup-lhs-col"},void 0,t),i=(0,g.createElement)("div",{className:"highcharts-popup-rhs-col"},void 0,t);return(0,g.createElement)("div",{className:"highcharts-popup-rhs-col-wrapper"},void 0,i),{lhsCol:e,rhsCol:i}}function tv(t,e,i,s){let o=e.params||e.options.params;s.innerHTML=ti().emptyHTML,(0,g.createElement)("h3",{className:"highcharts-indicator-title"},void 0,s).appendChild(tu.createTextNode(tC(e,i).indicatorFullName)),(0,g.createElement)("input",{type:"hidden",name:"highcharts-type-"+i,value:i},void 0,s),tP.call(this,i,"series",t,s,e,e.linkedParent&&e.linkedParent.options.id),o.volumeSeriesID&&tP.call(this,i,"volume",t,s,e,e.linkedParent&&o.volumeSeriesID),tx.call(this,t,"params",o,i,s)}function ty(t,e,i,s){function o(e,i){let s=m.parentNode.children[1];tv.call(n,t,e,i,m),s&&(s.style.display="block"),l&&e.options&&(0,g.createElement)("input",{type:"hidden",name:"highcharts-id-"+i,value:e.options.id},void 0,m).setAttribute("highcharts-data-series-id",e.options.id)}let n=this,a=n.lang,r=e.querySelectorAll(".highcharts-popup-lhs-col")[0],h=e.querySelectorAll(".highcharts-popup-rhs-col")[0],l="edit"===i,c=l?t.series:t.options.plotOptions||{};if(!t&&c)return;let p,d=[];l||(0,g.isArray)(c)?(0,g.isArray)(c)&&(d=tw.call(this,c)):d=tk.call(this,c,s),(0,g.stableSort)(d,(t,e)=>{let i=t.indicatorFullName.toLowerCase(),s=e.indicatorFullName.toLowerCase();return i<s?-1:+(i>s)}),r.children[1]&&r.children[1].remove();let u=(0,g.createElement)("ul",{className:"highcharts-indicator-list"},void 0,r),m=h.querySelectorAll(".highcharts-popup-rhs-col-wrapper")[0];if(d.forEach(t=>{let{indicatorFullName:e,indicatorType:i,series:s}=t;p=(0,g.createElement)("li",{className:"highcharts-indicator-list"},void 0,u);let n=(0,g.createElement)("button",{className:"highcharts-indicator-list-item",textContent:e},void 0,p);["click","touchstart"].forEach(t=>{(0,g.addEvent)(n,t,function(){o(s,i)})})}),d.length>0){let{series:t,indicatorType:e}=d[0];o(t,e)}else l||(ti().setElementHTML(m.parentNode.children[0],a.noFilterMatch||""),m.parentNode.children[1].style.display="none")}function tx(t,e,i,s,o){if(!t)return;let n=this.addInput;(0,g.objectEach)(i,(i,a)=>{let r=e+"."+a;if((0,g.defined)(i)&&r)if((0,g.isObject)(i)&&(n.call(this,r,s,o,{}),tx.call(this,t,r,i,s,o)),r in h){let n=tA.call(this,s,r,o);tE.call(this,t,e,n,s,a,i)}else"params.volumeSeriesID"===r||(0,g.isArray)(i)||n.call(this,r,s,o,{value:i,type:"number"})})}function tb(t,e){let i=this,s=e.querySelectorAll(".highcharts-popup-lhs-col")[0],o=this.lang.clearFilter,n=(0,g.createElement)("div",{className:"highcharts-input-wrapper"},void 0,s),a=function(e){ty.call(i,t,i.container,"add",e)},r=this.addInput("searchIndicators","input",n,{value:"",type:"text",htmlFor:"search-indicators",labelClassName:"highcharts-input-search-indicators-label"}),h=(0,g.createElement)("a",{textContent:o},void 0,n);r.classList.add("highcharts-input-search-indicators"),h.classList.add("clear-filter-button"),(0,g.addEvent)(r,"input",function(){a(this.value),this.value.length?h.style.display="inline-block":h.style.display="none"}),["click","touchstart"].forEach(t=>{(0,g.addEvent)(h,t,function(){r.value="",a(""),h.style.display="none"})})}function tA(t,e,i){let s=e.split("."),o=s[s.length-1],n="highcharts-"+e+"-type-"+t,a=this.lang;(0,g.createElement)("label",{htmlFor:n},null,i).appendChild(tu.createTextNode(a[o]||e));let r=(0,g.createElement)("select",{name:n,className:"highcharts-popup-field",id:"highcharts-select-"+e},null,i);return r.setAttribute("id","highcharts-select-"+e),r}function tE(t,e,i,s,o,n,a){"series"===e||"volume"===e?t.series.forEach(t=>{let s=t.options,o=s.name||s.params?t.name:s.id||"";"highcharts-navigator-series"!==s.id&&s.id!==(a&&a.options&&a.options.id)&&((0,g.defined)(n)||"volume"!==e||"column"!==t.type||(n=s.id),(0,g.createElement)("option",{value:s.id},void 0,i).appendChild(tu.createTextNode(o)))}):s&&o&&tm[o+"-"+s].forEach(t=>{(0,g.createElement)("option",{value:t},void 0,i).appendChild(tu.createTextNode(t))}),(0,g.defined)(n)&&(i.value=n)}function tk(t,e){let i,s=this.chart&&this.chart.options.lang,o=s&&s.navigation&&s.navigation.popup&&s.navigation.popup.indicatorAliases,n=new Map;return(0,g.objectEach)(t,(t,s)=>{let a=t&&t.options;if(t.params||a&&a.params){let{indicatorFullName:a,indicatorType:r}=tC(t,s);if(e){let s=RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i"),h=o&&o[r]&&o[r].join(" ")||"";(a.match(s)||h.match(s))&&(i={indicatorFullName:a,indicatorType:r,series:t},n.set(r.toLowerCase(),i))}else i={indicatorFullName:a,indicatorType:r,series:t},n.set(r.toLowerCase(),i)}}),Array.from(n.values())}function tw(t){let e=[];return t.forEach(t=>{t.is("sma")&&e.push({indicatorFullName:t.name,indicatorType:t.type,series:t})}),e}function tC(t,e){let i=t.options,s=tg[e]&&tg[e].prototype.nameBase||e.toUpperCase(),o=e;return i&&i.type&&(o=t.options.type,s=t.name),{indicatorFullName:s,indicatorType:o}}function tP(t,e,i,s,o,n){if(!i)return;let a=tA.call(this,t,e,s);tE.call(this,i,e,a,void 0,void 0,void 0,o),(0,g.defined)(n)&&(a.value=n)}let{doc:tO}=m();function tM(){let t=this.container;return(0,g.createElement)("div",{className:"highcharts-tab-item-content highcharts-no-mousewheel"},void 0,t)}function tN(t,e){let i=this.container,s=this.lang,o="highcharts-tab-item";0===e&&(o+=" highcharts-tab-disabled");let n=(0,g.createElement)("button",{className:o},void 0,i);return n.appendChild(tO.createTextNode(s[t+"Button"]||t)),n.setAttribute("highcharts-data-tab-type",t),n}function tB(){let t=this.container,e=t.querySelectorAll(".highcharts-tab-item"),i=t.querySelectorAll(".highcharts-tab-item-content");for(let t=0;t<e.length;t++)e[t].classList.remove("highcharts-tab-item-active"),i[t].classList.remove("highcharts-tab-item-show")}function tT(t,e){let i=this.container.querySelectorAll(".highcharts-tab-item-content");t.className+=" highcharts-tab-item-active",i[e].className+=" highcharts-tab-item-show"}function tS(t){let e=this;this.container.querySelectorAll(".highcharts-tab-item").forEach((i,s)=>{(0!==t||"edit"!==i.getAttribute("highcharts-data-tab-type"))&&["click","touchstart"].forEach(t=>{(0,g.addEvent)(i,t,function(){tB.call(e),tT.call(e,this,s)})})})}let{doc:tL}=m(),{getOptions:tI}=m();class tD extends tr{constructor(t,e,i){super(t,e),this.chart=i,this.lang=(tI().lang.navigation||{}).popup||{},(0,g.addEvent)(this.container,"mousedown",()=>{let t=i&&i.navigationBindings&&i.navigationBindings.activeAnnotation;if(t){t.cancelClick=!0;let e=(0,g.addEvent)(tL,"click",()=>{setTimeout(()=>{t.cancelClick=!1},0),e()})}})}addInput(t,e,i,s){let o=t.split("."),n=o[o.length-1],a=this.lang,r="highcharts-"+e+"-"+(0,g.pick)(s.htmlFor,n);if(n.match(/^\d+$/)||(0,g.createElement)("label",{htmlFor:r,className:s.labelClassName},void 0,i).appendChild(tL.createTextNode(a[n]||n)),"color"===s.type&&this.chart?.container)return this.createColorInput(t,r,s,i,this.chart.container);let h=(0,g.createElement)("input",{name:r,value:s.value,type:s.type,className:"highcharts-popup-field"},void 0,i);return h.setAttribute("highcharts-data-name",t),h}createColorInput(t,e,i,s,o){let{value:n,alpha:a}=function(t,e){let i=t=>("0"+Math.round(t).toString(16)).slice(-2).toUpperCase(),s=t=>{let[e,s,o,n]=tl().parse(t).rgba;return{value:"#"+i(e)+i(s)+i(o),alpha:n}};if(t.startsWith("rgb")||t.startsWith("rgba"))return s(t);if(t.startsWith("color")||t.startsWith("var")){let o=tL.createElement("span");o.style.setProperty("color",t),e.appendChild(o);let n=window.getComputedStyle(o).color;if(e.removeChild(o),n.startsWith("color")){let t=n.match(RegExp("color\\s*\\(\\s*srgb\\s+([\\d.]+)\\s+([\\d.]+)\\s+([\\d.]+)\\s+(?:\\s*\\/\\s*([\\d.]+))?\\s*\\)"));if(t){let e=Math.round(255*parseFloat(t[1])),s=Math.round(255*parseFloat(t[2])),o=Math.round(255*parseFloat(t[3])),n=t[4]?parseFloat(t[4]):1;return{value:"#"+i(e)+i(s)+i(o),alpha:n}}}if(n.startsWith("rgb")||n.startsWith("rgba"))return s(n)}return{value:t,alpha:1}}(i.value||"",o),r=tl().parse(i.value||"").rgba[3],h=isNaN(r)?a:r,l=(0,g.createElement)("div",{className:"highcharts-popup-color-wrapper"},void 0,s),c=(0,g.createElement)("input",{type:"color",value:n,className:"highcharts-popup-field highcharts-popup-field-color"},void 0,l),p=(0,g.createElement)("input",{name:e,id:e,value:n,type:"text",className:"highcharts-popup-field highcharts-popup-field-text"},void 0,l);p.setAttribute("highcharts-data-name",t);let d=(0,g.createElement)("span",{className:"highcharts-popup-color-separator"},void 0,l),u=(0,g.createElement)("input",{type:"number",value:String(Math.round(100*h)),className:"highcharts-popup-field highcharts-popup-opacity-percentage",min:"0",max:"100",step:"1"},void 0,l),m=(0,g.createElement)("span",{className:"highcharts-popup-opacity-percent-suffix"},void 0,l);m.appendChild(tL.createTextNode(" %"));let f=(0,g.createElement)("input",{type:"range",value:String(Math.round(100*h)),className:"highcharts-popup-opacity-slider",min:"0",max:"100",step:"1"},void 0,s);f.style.setProperty("--highcharts-popup-opacity-track-color",n),f.style.setProperty("display","none");let v=()=>{let t=/^#[0-9A-Fa-f]{6}$/.test(p.value);d.style.display=t?"":"none",u.style.display=t?"":"none",m.style.display=t?"":"none"};v();let y=t=>{let e=t.target,i=(0,g.clamp)(Number(e.value),0,100);f.value=String(i),u.value=String(Math.round(i))},x=t=>{t.target===c?p.value=c.value.toUpperCase():c.value=p.value,f.style.setProperty("--highcharts-popup-opacity-track-color",c.value),v()};return(0,g.addEvent)(s,"mousedown",t=>{t.target!==u&&t.target!==f&&(f.style.display="none")}),(0,g.addEvent)(u,"focus",()=>{f.style.display=""}),(0,g.addEvent)(u,"input",y),(0,g.addEvent)(f,"input",y),(0,g.addEvent)(c,"input",x),(0,g.addEvent)(p,"input",x),l}closeButtonEvents(){if(this.chart){let t=this.chart.navigationBindings;(0,g.fireEvent)(t,"closePopup"),t&&t.selectedButtonElement&&(0,g.fireEvent)(t,"deselectButton",{button:t.selectedButtonElement})}else super.closeButtonEvents()}addButton(t,e,i,s,o){let n=(0,g.createElement)("button",void 0,void 0,t);return n.appendChild(tL.createTextNode(e)),o&&["click","touchstart"].forEach(t=>{(0,g.addEvent)(n,t,()=>{let t,e,n,a,r;return this.closePopup(),o((t=Array.prototype.slice.call(s.querySelectorAll("input")),e=Array.prototype.slice.call(s.querySelectorAll("select")),n=s.querySelectorAll("#highcharts-select-series > option:checked")[0],a=s.querySelectorAll("#highcharts-select-volume > option:checked")[0],r={actionType:i,linkedTo:n&&n.getAttribute("value")||"",fields:{}},t.forEach(t=>{let e=t.getAttribute("highcharts-data-name");if(t.getAttribute("highcharts-data-series-id"))r.seriesId=t.value;else if(e){let i=t.closest(".highcharts-popup-color-wrapper"),s=i?.querySelector(".highcharts-popup-opacity-percentage"),o=s?Number(s.value)/100:1;if(s){let i=tl().parse(t.value).rgba;r.fields[e]=Number.isNaN(i[0])?t.value:`rgba(${i[0]},${i[1]},${i[2]},${o})`}else r.fields[e]=t.value}else r.type=t.value}),e.forEach(t=>{let e=t.id;if("highcharts-select-series"!==e&&"highcharts-select-volume"!==e){let i=e.split("highcharts-select-")[1];r.fields[i]=t.value}}),a&&(r.fields["params.volumeSeriesID"]=a.getAttribute("value")||""),r))})}),n}showForm(t,e,i,s){e&&(this.showPopup(),"indicators"===t&&this.indicators.addForm.call(this,e,i,s),"annotation-toolbar"===t&&this.annotations.addToolbar.call(this,e,i,s),"annotation-edit"===t&&this.annotations.addForm.call(this,e,i,s),"flag"===t&&this.annotations.addForm.call(this,e,i,s,!0),this.type=t,this.container.style.height=this.container.offsetHeight+"px")}}(0,g.extend)(tD.prototype,{annotations:{addForm:function(t,e,i,s){if(!t)return;let o=this.container,n=this.lang,a=(0,g.createElement)("h2",{className:"highcharts-popup-main-title"},void 0,o);a.appendChild(tc.createTextNode(n[e.langKey]||e.langKey||"")),a=(0,g.createElement)("div",{className:"highcharts-popup-lhs-col highcharts-popup-lhs-full"},void 0,o);let r=(0,g.createElement)("div",{className:"highcharts-popup-bottom-row"},void 0,o);td.call(this,a,t,"",e,[],!0),this.addButton(r,s?n.addButton||"Add":n.saveButton||"Save",s?"add":"save",o,i)},addToolbar:function(t,e,i){let s=this.lang,o=this.container,n=this.showForm,a="highcharts-annotation-toolbar";-1===o.className.indexOf(a)&&(o.className+=" "+a+" highcharts-no-mousewheel"),t&&(o.style.top=t.plotTop+10+"px");let r=(0,g.createElement)("p",{className:"highcharts-annotation-label"},void 0,o);r.setAttribute("aria-label","Annotation type"),r.appendChild(tc.createTextNode((0,g.pick)(s[e.langKey]||e.langKey,e.shapes&&e.shapes[0].type,"")));let h=this.addButton(o,s.editButton||"Edit","edit",o,()=>{n.call(this,"annotation-edit",t,e,i)});h.className+=" highcharts-annotation-edit-button",(0,g.createElement)("span",{className:"highcharts-icon"},{backgroundImage:ta("edit.svg",this.iconsURL,tn)},h),h=this.addButton(o,s.removeButton||"Remove","remove",o,i),h.className+=" highcharts-annotation-remove-button",(0,g.createElement)("span",{className:"highcharts-icon"},{backgroundImage:ta("destroy.svg",this.iconsURL,tn)},h)}},indicators:{addForm:function(t,e,i){let s,o=this.lang;if(!t)return;this.tabs.init.call(this,t);let n=this.container.querySelectorAll(".highcharts-tab-item-content");tf(n[0]),tb.call(this,t,n[0]),ty.call(this,t,n[0],"add"),s=n[0].querySelectorAll(".highcharts-popup-rhs-col")[0],this.addButton(s,o.addButton||"add","add",s,i),tf(n[1]),ty.call(this,t,n[1],"edit"),s=n[1].querySelectorAll(".highcharts-popup-rhs-col")[0],this.addButton(s,o.saveButton||"save","edit",s,i),this.addButton(s,o.removeButton||"remove","remove",s,i)},getAmount:function(){let t=0;return this.series.forEach(e=>{(e.params||e.options.params)&&t++}),t}},tabs:{init:function(t){if(!t)return;let e=this.indicators.getAmount.call(t),i=tN.call(this,"add");tN.call(this,"edit",e),tM.call(this),tM.call(this),tS.call(this,e),tT.call(this,i,0)}}});let{composed:tY}=m();function tX(){this.popup&&this.popup.closePopup()}function tF(t){this.popup||(this.popup=new tD(this.chart.container,this.chart.options.navigation.iconsURL||this.chart.options.stockTools&&this.chart.options.stockTools.gui.iconsURL||"renderer",this.chart)),this.popup.showForm(t.formType,this.chart,t.options,t.onSubmit)}function tR(t,e){this.inClass(e.target,"highcharts-popup")||t.apply(this,Array.prototype.slice.call(arguments,1))}let tU=function(t,e){(0,g.pushUnique)(tY,"Popup")&&((0,g.addEvent)(t,"closePopup",tX),(0,g.addEvent)(t,"showPopup",tF),(0,g.wrap)(e.prototype,"onContainerMouseDown",tR))},{defaultOptions:tW}=m();function tj(t,e){let i={};return["labels","shapes"].forEach(s=>{let o=t[s],n=e[s];o&&(n?i[s]=(0,g.splat)(n).map((t,e)=>(0,g.merge)(o[e],t)):i[s]=t[s])}),i}class tH extends P{static compose(t,e,i,s){E.compose(tH,t,i),Q.compose(s),V.compose(t,s),e.compose(tH,t),tU(e,i)}constructor(t,e){super(),this.coll="annotations",this.chart=t,this.points=[],this.controlPoints=[],this.coll="annotations",this.index=-1,this.labels=[],this.shapes=[],this.setOptions(e),this.userOptions=e;const i=tj(this.options,e);this.options.labels=i.labels,this.options.shapes=i.shapes,this.init(t,this.options)}addClipPaths(){this.setClipAxes(),this.clipXAxis&&this.clipYAxis&&this.options.crop&&(this.clipRect=this.chart.renderer.clipRect(this.getClipBox()))}addLabels(){let t=this.options.labels||[];t.forEach((e,i)=>{let s=this.initLabel(e,i);(0,g.merge)(!0,t[i],s.options)})}addShapes(){let t=this.options.shapes||[];t.forEach((e,i)=>{let s=this.initShape(e,i);(0,g.merge)(!0,t[i],s.options)})}destroy(){let t=this.chart,e=function(t){t.destroy()};this.labels.forEach(e),this.shapes.forEach(e),this.clipXAxis=null,this.clipYAxis=null,(0,g.erase)(t.labelCollectors,this.labelCollector),super.destroy(),this.destroyControlTarget(),(0,g.destroyObjectProperties)(this,t)}destroyItem(t){(0,g.erase)(this[t.itemType+"s"],t),t.destroy()}getClipBox(){if(this.clipXAxis&&this.clipYAxis)return{x:this.clipXAxis.left,y:this.clipYAxis.top,width:this.clipXAxis.width,height:this.clipYAxis.height}}initProperties(t,e){this.setOptions(e);let i=tj(this.options,e);this.options.labels=i.labels,this.options.shapes=i.shapes,this.chart=t,this.points=[],this.controlPoints=[],this.coll="annotations",this.userOptions=e,this.labels=[],this.shapes=[]}init(t,e,i=this.index){let s=this.chart,o=this.options.animation;this.index=i,this.linkPoints(),this.addControlPoints(),this.addShapes(),this.addLabels(),this.setLabelCollector(),this.animationConfig=(0,g.getDeferredAnimation)(s,o)}initLabel(t,e){this.options.labelOptions?.align;let i=new Q(this,(0,g.merge)(this.options.labelOptions,{controlPointOptions:this.options.controlPointOptions},t),e);return i.itemType="label",this.labels.push(i),i}initShape(t,e){let i=(0,g.merge)(this.options.shapeOptions,{controlPointOptions:this.options.controlPointOptions},t),s=new tH.shapesMap[i.type||"rect"](this,i,e);return s.itemType="shape",this.shapes.push(s),s}redraw(t){this.linkPoints(),this.graphic||this.render(),this.clipRect&&this.clipRect.animate(this.getClipBox()),this.redrawItems(this.shapes,t),this.redrawItems(this.labels,t),this.redrawControlPoints(t)}redrawItem(t,e){if(t.linkPoints(),t.shouldBeDrawn()){let i,s;t.graphic||this.renderItem(t),t.redraw((0,g.pick)(e,!0)&&t.graphic.placed),t.points.length&&(i=t.graphic,s=t.points.some(t=>!1!==t.series.visible&&!1!==t.visible),i&&(s?"hidden"===i.visibility&&i.show():i.hide()))}else this.destroyItem(t)}redrawItems(t,e){let i=t.length;for(;i--;)this.redrawItem(t[i],e)}remove(){return this.chart.removeAnnotation(this)}render(){let t=this.chart.renderer;this.graphic=t.g("annotation").addClass(this.options.className||"").attr({opacity:0,zIndex:this.options.zIndex,visibility:this.options.visible?"inherit":"hidden"}).add(),this.shapesGroup=t.g("annotation-shapes").add(this.graphic),this.options.crop&&this.shapesGroup.clip(this.chart.plotBoxClip),this.labelsGroup=t.g("annotation-labels").attr({translateX:0,translateY:0}).add(this.graphic),this.addClipPaths(),this.clipRect&&this.graphic.clip(this.clipRect),this.renderItems(this.shapes),this.renderItems(this.labels),this.addEvents(),this.renderControlPoints()}renderItem(t){t.render("label"===t.itemType?this.labelsGroup:this.shapesGroup)}renderItems(t){let e=t.length;for(;e--;)this.renderItem(t[e])}setClipAxes(){let t=this.chart.xAxis,e=this.chart.yAxis,i=[...this.options.labels??[],...this.options.shapes??[]].reduce((i,s)=>{let o=s&&(s.point||"points"in s&&s.points?.[0]);return[t[o&&o.xAxis]||i[0],e[o&&o.yAxis]||i[1]]},[]);this.clipXAxis=i[0],this.clipYAxis=i[1]}setControlPointsVisibility(t){let e=function(e){e.setControlPointsVisibility(t)};this.controlPoints.forEach(e=>{e.setVisibility(t)}),this.shapes.forEach(e),this.labels.forEach(e)}setLabelCollector(){let t=this;t.labelCollector=function(){return t.labels.reduce(function(t,e){return e.options.allowOverlap||t.push(e.graphic),t},[])},t.chart.labelCollectors.push(t.labelCollector)}setOptions(t){var e;this.options=(0,g.merge)(this.defaultOptions,t.type&&this.defaultOptions.types?.[t.type]||{},t),(e=this.options).typeOptions||(e.typeOptions={})}setVisibility(t){let e=this.options,i=this.chart.navigationBindings,s=(0,g.pick)(t,!e.visible);if(this.graphic.attr("visibility",s?"inherit":"hidden"),!s){let t=function(t){t.setControlPointsVisibility(s)};this.shapes.forEach(t),this.labels.forEach(t),i.activeAnnotation===this&&i.popup&&"annotation-toolbar"===i.popup.type&&(0,g.fireEvent)(i,"closePopup")}e.visible=s}update(t,e){let i=this.chart,s=tj(this.userOptions,t),o=i.annotations.indexOf(this),n=(0,g.merge)(!0,this.userOptions,t);n.labels=s.labels,n.shapes=s.shapes,this.destroy(),this.initProperties(i,n),this.init(i,n),i.options.annotations[o]=this.options,this.isUpdating=!0,(0,g.pick)(e,!0)&&i.drawAnnotations(),(0,g.fireEvent)(this,"afterUpdate"),this.isUpdating=!1}}tH.ControlPoint=O,tH.MockPoint=I,tH.shapesMap={rect:q,circle:$,ellipse:_,path:V,image:tt},tH.types={},tH.prototype.defaultOptions=k,tW.annotations=k,tH.prototype.nonDOMEvents=["add","afterUpdate","drag","remove"],D.compose(tH);var tz=l||(l={});tz.compose=function(t){return t.navigation||(t.navigation=new tV(t)),t};class tV{constructor(t){this.updates=[],this.chart=t}addUpdate(t){this.chart.navigation.updates.push(t)}update(t,e){this.updates.forEach(i=>{i.call(this.chart,t,e)})}}tz.Additions=tV;let tq=l,{getAssignedAxis:t$}=N,t_={lang:{navigation:{popup:{simpleShapes:"Simple shapes",lines:"Lines",circle:"Circle",ellipse:"Ellipse",rectangle:"Rectangle",label:"Label",shapeOptions:"Shape options",typeOptions:"Details",fill:"Fill",format:"Text",strokeWidth:"Line width",stroke:"Line color",title:"Title",name:"Name",labelOptions:"Label options",labels:"Labels",backgroundColor:"Background color",backgroundColors:"Background colors",borderColor:"Border color",borderRadius:"Border radius",borderWidth:"Border width",style:"Style",padding:"Padding",fontSize:"Font size",color:"Color",height:"Height",shapes:"Shape options"}}},navigation:{bindingsClassName:"highcharts-bindings-container",bindings:{circleAnnotation:{className:"highcharts-circle-annotation",start:function(t){let e=this.chart.pointer?.getCoordinates(t),i=e&&t$(e.xAxis),s=e&&t$(e.yAxis),o=this.chart.options.navigation;if(i&&s)return this.chart.addAnnotation((0,g.merge)({langKey:"circle",type:"basicAnnotation",shapes:[{type:"circle",point:{x:i.value,y:s.value,xAxis:i.axis.index,yAxis:s.axis.index},r:5}]},o.annotationsOptions,o.bindings.circleAnnotation.annotationsOptions))},steps:[function(t,e){let i,s=e.options.shapes,o=s&&s[0]&&s[0].point||{};if((0,g.isNumber)(o.xAxis)&&(0,g.isNumber)(o.yAxis)){let e=this.chart.inverted,s=this.chart.xAxis[o.xAxis].toPixels(o.x),n=this.chart.yAxis[o.yAxis].toPixels(o.y);i=Math.max(Math.sqrt(Math.pow(e?n-t.chartX:s-t.chartX,2)+Math.pow(e?s-t.chartY:n-t.chartY,2)),5)}e.update({shapes:[{r:i}]})}]},ellipseAnnotation:{className:"highcharts-ellipse-annotation",start:function(t){let e=this.chart.pointer?.getCoordinates(t),i=e&&t$(e.xAxis),s=e&&t$(e.yAxis),o=this.chart.options.navigation;if(i&&s)return this.chart.addAnnotation((0,g.merge)({langKey:"ellipse",type:"basicAnnotation",shapes:[{type:"ellipse",xAxis:i.axis.index,yAxis:s.axis.index,points:[{x:i.value,y:s.value},{x:i.value,y:s.value}],ry:1}]},o.annotationsOptions,o.bindings.ellipseAnnotation.annotationsOptions))},steps:[function(t,e){let i=e.shapes[0],s=i.getAbsolutePosition(i.points[1]);i.translatePoint(t.chartX-s.x,t.chartY-s.y,1),i.redraw(!1)},function(t,e){let i=e.shapes[0],s=i.getAbsolutePosition(i.points[0]),o=i.getAbsolutePosition(i.points[1]),n=i.getDistanceFromLine(s,o,t.chartX,t.chartY),a=i.getYAxis(),r=Math.abs(a.toValue(0)-a.toValue(n));i.setYRadius(r),i.redraw(!1)}]},rectangleAnnotation:{className:"highcharts-rectangle-annotation",start:function(t){let e=this.chart.pointer?.getCoordinates(t),i=e&&t$(e.xAxis),s=e&&t$(e.yAxis);if(!i||!s)return;let o=i.value,n=s.value,a=i.axis.index,r=s.axis.index,h=this.chart.options.navigation;return this.chart.addAnnotation((0,g.merge)({langKey:"rectangle",type:"basicAnnotation",shapes:[{type:"path",points:[{xAxis:a,yAxis:r,x:o,y:n},{xAxis:a,yAxis:r,x:o,y:n},{xAxis:a,yAxis:r,x:o,y:n},{xAxis:a,yAxis:r,x:o,y:n},{command:"Z"}]}]},h.annotationsOptions,h.bindings.rectangleAnnotation.annotationsOptions))},steps:[function(t,e){let i=e.options.shapes,s=i&&i[0]&&i[0].points||[],o=this.chart.pointer?.getCoordinates(t),n=o&&t$(o.xAxis),a=o&&t$(o.yAxis);if(n&&a){let t=n.value,i=a.value;s[1].x=t,s[2].x=t,s[2].y=i,s[3].y=i,e.update({shapes:[{points:s}]})}}]},labelAnnotation:{className:"highcharts-label-annotation",start:function(t){let e=this.chart.pointer?.getCoordinates(t),i=e&&t$(e.xAxis),s=e&&t$(e.yAxis),o=this.chart.options.navigation;if(i&&s)return this.chart.addAnnotation((0,g.merge)({langKey:"label",type:"basicAnnotation",labelOptions:{format:"{y:.2f}",overflow:"none",crop:!0},labels:[{point:{xAxis:i.axis.index,yAxis:s.axis.index,x:i.value,y:s.value}}]},o.annotationsOptions,o.bindings.labelAnnotation.annotationsOptions))}}},events:{},annotationsOptions:{animation:{defer:0}}}},{setOptions:tG}=m(),{format:tK}=K(),{composed:tZ,doc:tJ,win:tQ}=m(),{getAssignedAxis:t0,getFieldType:t1}=N;function t2(){this.chart.navigationBindings&&this.chart.navigationBindings.deselectAnnotation()}function t9(){this.navigationBindings&&this.navigationBindings.destroy()}function t5(){let t=this.options;t&&t.navigation&&t.navigation.bindings&&(this.navigationBindings=new t8(this,t.navigation),this.navigationBindings.initEvents(),this.navigationBindings.initUpdate())}function t7(){let t=this.navigationBindings,e="highcharts-disabled-btn";if(this&&t){let i=!1;if(this.series.forEach(t=>{!t.options.isInternal&&t.visible&&(i=!0)}),this.navigationBindings&&this.navigationBindings.container&&this.navigationBindings.container[0]){let s=this.navigationBindings.container[0];(0,g.objectEach)(t.boundClassNames,(t,o)=>{let n=s.querySelectorAll("."+o);if(n)for(let s=0;s<n.length;s++){let o=n[s],a=o.className;"normal"===t.noDataState||i?-1!==a.indexOf(e)&&o.classList.remove(e):-1===a.indexOf(e)&&(o.className+=" "+e)}})}}}function t3(){this.deselectAnnotation()}function t4(){this.selectedButtonElement=null}function t6(t){let e,i,s=t.prototype.defaultOptions.events&&t.prototype.defaultOptions.events.click;function o(t){let e=this,i=e.chart.navigationBindings,o=i.activeAnnotation;s&&s.call(e,t),o!==e?(i.deselectAnnotation(),i.activeAnnotation=e,e.setControlPointsVisibility(!0),(0,g.fireEvent)(i,"showPopup",{annotation:e,formType:"annotation-toolbar",options:i.annotationToFields(e),onSubmit:function(t){if("remove"===t.actionType)i.activeAnnotation=!1,i.chart.removeAnnotation(e);else{let s={};i.fieldsToOptions(t.fields,s),i.deselectAnnotation();let o=s.typeOptions;"measure"===e.options.type&&(o.crosshairY.enabled=0!==o.crosshairY.strokeWidth,o.crosshairX.enabled=0!==o.crosshairX.strokeWidth),e.update(s)}}})):(0,g.fireEvent)(i,"closePopup"),t.activeAnnotation=!0}(0,g.merge)(!0,t.prototype.defaultOptions.events,{click:o,touchstart:function(t){e=t.touches[0].clientX,i=t.touches[0].clientY},touchend:function(t){e&&Math.sqrt(Math.pow(e-t.changedTouches[0].clientX,2)+Math.pow(i-t.changedTouches[0].clientY,2))>=4||o.call(this,t)}})}class t8{static compose(t,e){(0,g.pushUnique)(tZ,"NavigationBindings")&&((0,g.addEvent)(t,"remove",t2),t6(t),(0,g.objectEach)(t.types,t=>{t6(t)}),(0,g.addEvent)(e,"destroy",t9),(0,g.addEvent)(e,"load",t5),(0,g.addEvent)(e,"render",t7),(0,g.addEvent)(t8,"closePopup",t3),(0,g.addEvent)(t8,"deselectButton",t4),tG(t_))}constructor(t,e){this.boundClassNames=void 0,this.chart=t,this.options=e,this.eventsToUnbind=[],this.container=this.chart.container.getElementsByClassName(this.options.bindingsClassName||""),this.container.length||(this.container=tJ.getElementsByClassName(this.options.bindingsClassName||""))}getCoords(t){let e=this.chart.pointer?.getCoordinates(t);return[e&&t0(e.xAxis),e&&t0(e.yAxis)]}initEvents(){let t=this,e=t.chart,i=t.container,s=t.options;t.boundClassNames={},(0,g.objectEach)(s.bindings||{},e=>{t.boundClassNames[e.className]=e}),[].forEach.call(i,e=>{t.eventsToUnbind.push((0,g.addEvent)(e,"click",i=>{let s=t.getButtonEvents(e,i);s&&!s.button.classList.contains("highcharts-disabled-btn")&&t.bindingsButtonClick(s.button,s.events,i)}))}),(0,g.objectEach)(s.events||{},(e,i)=>{(0,g.isFunction)(e)&&t.eventsToUnbind.push((0,g.addEvent)(t,i,e,{passive:!1}))}),t.eventsToUnbind.push((0,g.addEvent)(e.container,"click",function(i){!e.cancelClick&&e.isInsidePlot(i.chartX-e.plotLeft,i.chartY-e.plotTop,{visiblePlotOnly:!0})&&t.bindingsChartClick(this,i)})),t.eventsToUnbind.push((0,g.addEvent)(e.container,m().isTouchDevice?"touchmove":"mousemove",function(e){t.bindingsContainerMouseMove(this,e)},m().isTouchDevice?{passive:!1}:void 0))}initUpdate(){let t=this;tq.compose(this.chart).navigation.addUpdate(e=>{t.update(e)})}bindingsButtonClick(t,e,i){let s=this.chart,o=s.renderer.boxWrapper,n=!0;this.selectedButtonElement&&(this.selectedButtonElement.classList===t.classList&&(n=!1),(0,g.fireEvent)(this,"deselectButton",{button:this.selectedButtonElement}),this.nextEvent&&(this.currentUserDetails&&"annotations"===this.currentUserDetails.coll&&s.removeAnnotation(this.currentUserDetails),this.mouseMoveEvent=this.nextEvent=!1)),n?(this.selectedButton=e,this.selectedButtonElement=t,(0,g.fireEvent)(this,"selectButton",{button:t}),e.init&&e.init.call(this,t,i),(e.start||e.steps)&&s.renderer.boxWrapper.addClass("highcharts-draw-mode")):(s.stockTools&&t.classList.remove("highcharts-active"),o.removeClass("highcharts-draw-mode"),this.nextEvent=!1,this.mouseMoveEvent=!1,this.selectedButton=null)}bindingsChartClick(t,e){t=this.chart;let i=this.activeAnnotation,s=this.selectedButton,o=t.renderer.boxWrapper;i&&(i.cancelClick||e.activeAnnotation||!e.target.parentNode||function(t,e){let i=tQ.Element.prototype,s=i.matches||i.msMatchesSelector||i.webkitMatchesSelector,o=null;if(i.closest)o=i.closest.call(t,e);else do{if(s.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return o}(e.target,".highcharts-popup")?i.cancelClick&&setTimeout(()=>{i.cancelClick=!1},0):(0,g.fireEvent)(this,"closePopup")),s&&s.start&&(this.nextEvent?(this.nextEvent(e,this.currentUserDetails),this.steps&&(this.stepIndex++,s.steps[this.stepIndex]?this.mouseMoveEvent=this.nextEvent=s.steps[this.stepIndex]:((0,g.fireEvent)(this,"deselectButton",{button:this.selectedButtonElement}),o.removeClass("highcharts-draw-mode"),s.end&&s.end.call(this,e,this.currentUserDetails),this.nextEvent=!1,this.mouseMoveEvent=!1,this.selectedButton=null))):(this.currentUserDetails=s.start.call(this,e),this.currentUserDetails&&s.steps?(this.stepIndex=0,this.steps=!0,this.mouseMoveEvent=this.nextEvent=s.steps[this.stepIndex]):((0,g.fireEvent)(this,"deselectButton",{button:this.selectedButtonElement}),o.removeClass("highcharts-draw-mode"),this.steps=!1,this.selectedButton=null,s.end&&s.end.call(this,e,this.currentUserDetails))))}bindingsContainerMouseMove(t,e){this.mouseMoveEvent&&this.mouseMoveEvent(e,this.currentUserDetails)}fieldsToOptions(t,e){return(0,g.objectEach)(t,(t,i)=>{let s=parseFloat(t),o=i.split("."),n=o.length-1;if(!(0,g.isNumber)(s)||t.match(/px|em/g)||i.match(/format/g)||i.match(/title/g)||(t=s),"undefined"!==t){let i=e;o.forEach((e,s)=>{if("__proto__"!==e&&"constructor"!==e){let a=(0,g.pick)(o[s+1],"");n===s?i[e]=t:(i[e]||(i[e]=a.match(/\d/g)?[]:{}),i=i[e])}})}}),e}deselectAnnotation(){this.activeAnnotation&&(this.activeAnnotation.setControlPointsVisibility(!1),this.activeAnnotation=!1)}annotationToFields(t){let e=t.options,i=t8.annotationsEditable,s=i.nestedOptions,o=(0,g.pick)(e.type,e.shapes?.[0]?.type,e.labels?.[0]?.type,"label"),n=t8.annotationsNonEditable[e.langKey]||[],a={langKey:e.langKey,type:o};function r(e,i,o,a,h){let l;o&&(0,g.defined)(e)&&-1===n.indexOf(i)&&((o.indexOf&&o.indexOf(i))>=0||o[i]||!0===o)&&((0,g.isArray)(e)?(a[i]=[],e.forEach((t,e)=>{(0,g.isObject)(t)?(a[i][e]={},(0,g.objectEach)(t,(t,o)=>{r(t,o,s[i],a[i][e],i)})):r(t,0,s[i],a[i],i)})):(0,g.isObject)(e)?(l={},(0,g.isArray)(a)?(a.push(l),l[i]={},l=l[i]):a[i]=l,(0,g.objectEach)(e,(t,e)=>{r(t,e,0===i?o:s[i],l,i)})):"format"===i?a[i]=[tK(e,t.labels[0].points[0]).toString(),"text"]:(0,g.isArray)(a)?a.push([e,t1(h,e)]):a[i]=[e,t1(i,e)])}return(0,g.objectEach)(e,(t,n)=>{"typeOptions"===n&&"basicAnnotation"!==a.type?(a[n]={},(0,g.objectEach)(e[n],(t,e)=>{r(t,e,s,a[n],e)})):r(t,n,i[o],a,n)}),a}getClickedClassNames(t,e){let i=e.target,s=[],o;for(;i&&i.tagName&&((o=(0,g.attr)(i,"class"))&&(s=s.concat(o.split(" ").map(t=>[t,i]))),(i=i.parentNode)!==t););return s}getButtonEvents(t,e){let i,s=this;return this.getClickedClassNames(t,e).forEach(t=>{s.boundClassNames[t[0]]&&!i&&(i={events:s.boundClassNames[t[0]],button:t[1]})}),i}update(t){this.options=(0,g.merge)(!0,this.options,t),this.removeEvents(),this.initEvents()}removeEvents(){this.eventsToUnbind.forEach(t=>t())}destroy(){this.removeEvents()}}t8.annotationsEditable={nestedOptions:{labelOptions:["style","format","backgroundColor"],labels:["style"],label:["style"],style:["fontSize","color"],background:["fill","strokeWidth","stroke"],innerBackground:["fill","strokeWidth","stroke"],outerBackground:["fill","strokeWidth","stroke"],shapeOptions:["fill","strokeWidth","stroke"],shapes:["fill","strokeWidth","stroke"],line:["strokeWidth","stroke"],backgroundColors:[!0],connector:["fill","strokeWidth","stroke"],crosshairX:["strokeWidth","stroke"],crosshairY:["strokeWidth","stroke"]},circle:["shapes"],ellipse:["shapes"],verticalLine:[],label:["labelOptions"],measure:["background","crosshairY","crosshairX"],fibonacci:[],tunnel:["background","line","height"],pitchfork:["innerBackground","outerBackground"],rect:["shapes"],crookedLine:[],basicAnnotation:["shapes","labelOptions"]},t8.annotationsNonEditable={rectangle:["crosshairX","crosshairY","labelOptions"],ellipse:["labelOptions"],circle:["labelOptions"]};let et=m();et.Annotation=et.Annotation||tH,et.NavigationBindings=et.NavigationBindings||t8,et.Annotation.compose(et.Chart,et.NavigationBindings,et.Pointer,et.SVGRenderer);let ee=m();return u.default})());
|
|
34
|
+
`},ta=(t,e,i)=>{let s,o=i[t];return"renderer"===e&&o?(o=encodeURIComponent(o),s=`url("data:image/svg+xml;charset=utf-8,${o}")`):s=e.startsWith("http")&&e.match(/\.(png|svg|jpe?g|gif)$/ig)?'url("'+e+'")':`url("${e}${t}")`,s},tr=class{constructor(t,e){this.iconsURL=e,this.container=this.createPopupContainer(t),this.closeButton=this.addCloseButton()}createPopupContainer(t,e="highcharts-popup highcharts-no-tooltip"){return(0,g.createElement)("div",{className:e},void 0,t)}addCloseButton(t="highcharts-popup-close"){let e=(0,g.createElement)("button",{className:t},void 0,this.container);return(0,g.createElement)("span",{className:"highcharts-icon"},{backgroundImage:ta("close.svg",this.iconsURL,tn)},e),["click","touchstart"].forEach(t=>{(0,g.addEvent)(e,t,this.closeButtonEvents.bind(this))}),(0,g.addEvent)(document,"keydown",t=>{"Escape"===t.code&&this.closeButtonEvents()}),e}closeButtonEvents(){this.closePopup()}showPopup(t="highcharts-annotation-toolbar"){let e=this.container,i=this.closeButton;this.type=void 0,e.innerHTML=ti().emptyHTML,e.className.indexOf(t)>=0&&(e.classList.remove(t),e.removeAttribute("style")),e.appendChild(i),e.style.display="block",e.style.height=""}closePopup(){this.container.style.display="none"}};var th=d(620),tl=d.n(th);let{doc:tc,isFirefox:tp}=m();function td(t,e,i,s,o,n){let a,r;if(!e)return;let h=this.addInput,l=this.lang;(0,g.objectEach)(s,(s,n)=>{a=""!==i?i+"."+n:n,(0,g.isObject)(s)&&(!(0,g.isArray)(s)||(0,g.isArray)(s)&&(0,g.isObject)(s[0])?((r=l[n]||n).match(/\d/g)||o.push([!0,r,t]),td.call(this,t,e,a,s,o,!1)):o.push([this,a,"annotation",t,s]))}),n&&((0,g.stableSort)(o,t=>t[1].match(/format/g)?-1:1),tp&&o.reverse(),o.forEach(t=>{!0===t[0]?(0,g.createElement)("span",{className:"highcharts-annotation-title"},void 0,t[2]).appendChild(tc.createTextNode(t[1])):(t[4]={value:t[4][0],type:t[4][1]},h.apply(t[0],t.splice(1)))}))}let{doc:tu}=m(),{seriesTypes:tg}=T();(n=h||(h={}))[n["params.algorithm"]=0]="params.algorithm",n[n["params.average"]=1]="params.average";let tm={"algorithm-pivotpoints":["standard","fibonacci","camarilla"],"average-disparityindex":["sma","ema","dema","tema","wma"]};function tf(t){let e=(0,g.createElement)("div",{className:"highcharts-popup-lhs-col"},void 0,t),i=(0,g.createElement)("div",{className:"highcharts-popup-rhs-col"},void 0,t);return(0,g.createElement)("div",{className:"highcharts-popup-rhs-col-wrapper"},void 0,i),{lhsCol:e,rhsCol:i}}function tv(t,e,i,s){let o=e.params||e.options.params;s.innerHTML=ti().emptyHTML,(0,g.createElement)("h3",{className:"highcharts-indicator-title"},void 0,s).appendChild(tu.createTextNode(tC(e,i).indicatorFullName)),(0,g.createElement)("input",{type:"hidden",name:"highcharts-type-"+i,value:i},void 0,s),tP.call(this,i,"series",t,s,e,e.linkedParent&&e.linkedParent.options.id),o.volumeSeriesID&&tP.call(this,i,"volume",t,s,e,e.linkedParent&&o.volumeSeriesID),tx.call(this,t,"params",o,i,s)}function ty(t,e,i,s){function o(e,i){let s=m.parentNode.children[1];tv.call(n,t,e,i,m),s&&(s.style.display="block"),l&&e.options&&(0,g.createElement)("input",{type:"hidden",name:"highcharts-id-"+i,value:e.options.id},void 0,m).setAttribute("highcharts-data-series-id",e.options.id)}let n=this,a=n.lang,r=e.querySelectorAll(".highcharts-popup-lhs-col")[0],h=e.querySelectorAll(".highcharts-popup-rhs-col")[0],l="edit"===i,c=l?t.series:t.options.plotOptions||{};if(!t&&c)return;let p,d=[];l||(0,g.isArray)(c)?(0,g.isArray)(c)&&(d=tk.call(this,c)):d=tw.call(this,c,s),(0,g.stableSort)(d,(t,e)=>{let i=t.indicatorFullName.toLowerCase(),s=e.indicatorFullName.toLowerCase();return i<s?-1:+(i>s)}),r.children[1]&&r.children[1].remove();let u=(0,g.createElement)("ul",{className:"highcharts-indicator-list"},void 0,r),m=h.querySelectorAll(".highcharts-popup-rhs-col-wrapper")[0];if(d.forEach(t=>{let{indicatorFullName:e,indicatorType:i,series:s}=t;p=(0,g.createElement)("li",{className:"highcharts-indicator-list"},void 0,u);let n=(0,g.createElement)("button",{className:"highcharts-indicator-list-item",textContent:e},void 0,p);["click","touchstart"].forEach(t=>{(0,g.addEvent)(n,t,function(){o(s,i)})})}),d.length>0){let{series:t,indicatorType:e}=d[0];o(t,e)}else l||(ti().setElementHTML(m.parentNode.children[0],a.noFilterMatch||""),m.parentNode.children[1].style.display="none")}function tx(t,e,i,s,o){if(!t)return;let n=this.addInput;(0,g.objectEach)(i,(i,a)=>{let r=e+"."+a;if((0,g.defined)(i)&&r)if((0,g.isObject)(i)&&(n.call(this,r,s,o,{}),tx.call(this,t,r,i,s,o)),r in h){let n=tA.call(this,s,r,o);tE.call(this,t,e,n,s,a,i)}else"params.volumeSeriesID"===r||(0,g.isArray)(i)||n.call(this,r,s,o,{value:i,type:"number"})})}function tb(t,e){let i=this,s=e.querySelectorAll(".highcharts-popup-lhs-col")[0],o=this.lang.clearFilter,n=(0,g.createElement)("div",{className:"highcharts-input-wrapper"},void 0,s),a=function(e){ty.call(i,t,i.container,"add",e)},r=this.addInput("searchIndicators","input",n,{value:"",type:"text",htmlFor:"search-indicators",labelClassName:"highcharts-input-search-indicators-label"}),h=(0,g.createElement)("a",{textContent:o},void 0,n);r.classList.add("highcharts-input-search-indicators"),h.classList.add("clear-filter-button"),(0,g.addEvent)(r,"input",function(){a(this.value),this.value.length?h.style.display="inline-block":h.style.display="none"}),["click","touchstart"].forEach(t=>{(0,g.addEvent)(h,t,function(){r.value="",a(""),h.style.display="none"})})}function tA(t,e,i){let s=e.split("."),o=s[s.length-1],n="highcharts-"+e+"-type-"+t,a=this.lang;(0,g.createElement)("label",{htmlFor:n},null,i).appendChild(tu.createTextNode(a[o]||e));let r=(0,g.createElement)("select",{name:n,className:"highcharts-popup-field",id:"highcharts-select-"+e},null,i);return r.setAttribute("id","highcharts-select-"+e),r}function tE(t,e,i,s,o,n,a){"series"===e||"volume"===e?t.series.forEach(t=>{let s=t.options,o=s.name||s.params?t.name:s.id||"";"highcharts-navigator-series"!==s.id&&s.id!==(a&&a.options&&a.options.id)&&((0,g.defined)(n)||"volume"!==e||"column"!==t.type||(n=s.id),(0,g.createElement)("option",{value:s.id},void 0,i).appendChild(tu.createTextNode(o)))}):s&&o&&tm[o+"-"+s].forEach(t=>{(0,g.createElement)("option",{value:t},void 0,i).appendChild(tu.createTextNode(t))}),(0,g.defined)(n)&&(i.value=n)}function tw(t,e){let i,s=this.chart&&this.chart.options.lang,o=s&&s.navigation&&s.navigation.popup&&s.navigation.popup.indicatorAliases,n=new Map;return(0,g.objectEach)(t,(t,s)=>{let a=t&&t.options;if(t.params||a&&a.params){let{indicatorFullName:a,indicatorType:r}=tC(t,s);if(e){let s=RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i"),h=o&&o[r]&&o[r].join(" ")||"";(a.match(s)||h.match(s))&&(i={indicatorFullName:a,indicatorType:r,series:t},n.set(r.toLowerCase(),i))}else i={indicatorFullName:a,indicatorType:r,series:t},n.set(r.toLowerCase(),i)}}),Array.from(n.values())}function tk(t){let e=[];return t.forEach(t=>{t.is("sma")&&e.push({indicatorFullName:t.name,indicatorType:t.type,series:t})}),e}function tC(t,e){let i=t.options,s=tg[e]&&tg[e].prototype.nameBase||e.toUpperCase(),o=e;return i&&i.type&&(o=t.options.type,s=t.name),{indicatorFullName:s,indicatorType:o}}function tP(t,e,i,s,o,n){if(!i)return;let a=tA.call(this,t,e,s);tE.call(this,i,e,a,void 0,void 0,void 0,o),(0,g.defined)(n)&&(a.value=n)}let{doc:tO}=m();function tM(){let t=this.container;return(0,g.createElement)("div",{className:"highcharts-tab-item-content highcharts-no-mousewheel"},void 0,t)}function tN(t,e){let i=this.container,s=this.lang,o="highcharts-tab-item";0===e&&(o+=" highcharts-tab-disabled");let n=(0,g.createElement)("button",{className:o},void 0,i);return n.appendChild(tO.createTextNode(s[t+"Button"]||t)),n.setAttribute("highcharts-data-tab-type",t),n}function tB(){let t=this.container,e=t.querySelectorAll(".highcharts-tab-item"),i=t.querySelectorAll(".highcharts-tab-item-content");for(let t=0;t<e.length;t++)e[t].classList.remove("highcharts-tab-item-active"),i[t].classList.remove("highcharts-tab-item-show")}function tT(t,e){let i=this.container.querySelectorAll(".highcharts-tab-item-content");t.className+=" highcharts-tab-item-active",i[e].className+=" highcharts-tab-item-show"}function tS(t){let e=this;this.container.querySelectorAll(".highcharts-tab-item").forEach((i,s)=>{(0!==t||"edit"!==i.getAttribute("highcharts-data-tab-type"))&&["click","touchstart"].forEach(t=>{(0,g.addEvent)(i,t,function(){tB.call(e),tT.call(e,this,s)})})})}let{doc:tL}=m(),{getOptions:tI}=m();class tD extends tr{constructor(t,e,i){super(t,e),this.chart=i,this.lang=(tI().lang.navigation||{}).popup||{},(0,g.addEvent)(this.container,"mousedown",()=>{let t=i&&i.navigationBindings&&i.navigationBindings.activeAnnotation;if(t){t.cancelClick=!0;let e=(0,g.addEvent)(tL,"click",()=>{setTimeout(()=>{t.cancelClick=!1},0),e()})}})}addInput(t,e,i,s){let o=t.split("."),n=o[o.length-1],a=this.lang,r="highcharts-"+e+"-"+(s.htmlFor??n);if(n.match(/^\d+$/)||(0,g.createElement)("label",{htmlFor:r,className:s.labelClassName},void 0,i).appendChild(tL.createTextNode(a[n]||n)),"color"===s.type&&this.chart?.container)return this.createColorInput(t,r,s,i,this.chart.container);let h=(0,g.createElement)("input",{name:r,value:s.value,type:s.type,className:"highcharts-popup-field"},void 0,i);return h.setAttribute("highcharts-data-name",t),h}createColorInput(t,e,i,s,o){let{value:n,alpha:a}=function(t,e){let i=t=>("0"+Math.round(t).toString(16)).slice(-2).toUpperCase(),s=t=>{let[e,s,o,n]=tl().parse(t).rgba;return{value:"#"+i(e)+i(s)+i(o),alpha:n}};if(t.startsWith("rgb")||t.startsWith("rgba"))return s(t);if(t.startsWith("color")||t.startsWith("var")){let o=tL.createElement("span");o.style.setProperty("color",t),e.appendChild(o);let n=window.getComputedStyle(o).color;if(e.removeChild(o),n.startsWith("color")){let t=n.match(RegExp("color\\s*\\(\\s*srgb\\s+([\\d.]+)\\s+([\\d.]+)\\s+([\\d.]+)\\s+(?:\\s*\\/\\s*([\\d.]+))?\\s*\\)"));if(t){let e=Math.round(255*parseFloat(t[1])),s=Math.round(255*parseFloat(t[2])),o=Math.round(255*parseFloat(t[3])),n=t[4]?parseFloat(t[4]):1;return{value:"#"+i(e)+i(s)+i(o),alpha:n}}}if(n.startsWith("rgb")||n.startsWith("rgba"))return s(n)}return{value:t,alpha:1}}(i.value||"",o),r=tl().parse(i.value||"").rgba[3],h=isNaN(r)?a:r,l=(0,g.createElement)("div",{className:"highcharts-popup-color-wrapper"},void 0,s),c=(0,g.createElement)("input",{type:"color",value:n,className:"highcharts-popup-field highcharts-popup-field-color"},void 0,l),p=(0,g.createElement)("input",{name:e,id:e,value:n,type:"text",className:"highcharts-popup-field highcharts-popup-field-text"},void 0,l);p.setAttribute("highcharts-data-name",t);let d=(0,g.createElement)("span",{className:"highcharts-popup-color-separator"},void 0,l),u=(0,g.createElement)("input",{type:"number",value:String(Math.round(100*h)),className:"highcharts-popup-field highcharts-popup-opacity-percentage",min:"0",max:"100",step:"1"},void 0,l),m=(0,g.createElement)("span",{className:"highcharts-popup-opacity-percent-suffix"},void 0,l);m.appendChild(tL.createTextNode(" %"));let f=(0,g.createElement)("input",{type:"range",value:String(Math.round(100*h)),className:"highcharts-popup-opacity-slider",min:"0",max:"100",step:"1"},void 0,s);f.style.setProperty("--highcharts-popup-opacity-track-color",n),f.style.setProperty("display","none");let v=()=>{let t=/^#[0-9A-Fa-f]{6}$/.test(p.value);d.style.display=t?"":"none",u.style.display=t?"":"none",m.style.display=t?"":"none"};v();let y=t=>{let e=t.target,i=(0,g.clamp)(Number(e.value),0,100);f.value=String(i),u.value=String(Math.round(i))},x=t=>{t.target===c?p.value=c.value.toUpperCase():c.value=p.value,f.style.setProperty("--highcharts-popup-opacity-track-color",c.value),v()};return(0,g.addEvent)(s,"mousedown",t=>{t.target!==u&&t.target!==f&&(f.style.display="none")}),(0,g.addEvent)(u,"focus",()=>{f.style.display=""}),(0,g.addEvent)(u,"input",y),(0,g.addEvent)(f,"input",y),(0,g.addEvent)(c,"input",x),(0,g.addEvent)(p,"input",x),l}closeButtonEvents(){if(this.chart){let t=this.chart.navigationBindings;(0,g.fireEvent)(t,"closePopup"),t&&t.selectedButtonElement&&(0,g.fireEvent)(t,"deselectButton",{button:t.selectedButtonElement})}else super.closeButtonEvents()}addButton(t,e,i,s,o){let n=(0,g.createElement)("button",void 0,void 0,t);return n.appendChild(tL.createTextNode(e)),o&&["click","touchstart"].forEach(t=>{(0,g.addEvent)(n,t,()=>{let t,e,n,a,r;return this.closePopup(),o((t=Array.prototype.slice.call(s.querySelectorAll("input")),e=Array.prototype.slice.call(s.querySelectorAll("select")),n=s.querySelectorAll("#highcharts-select-series > option:checked")[0],a=s.querySelectorAll("#highcharts-select-volume > option:checked")[0],r={actionType:i,linkedTo:n&&n.getAttribute("value")||"",fields:{}},t.forEach(t=>{let e=t.getAttribute("highcharts-data-name");if(t.getAttribute("highcharts-data-series-id"))r.seriesId=t.value;else if(e){let i=t.closest(".highcharts-popup-color-wrapper"),s=i?.querySelector(".highcharts-popup-opacity-percentage"),o=s?Number(s.value)/100:1;if(s){let i=tl().parse(t.value).rgba;r.fields[e]=Number.isNaN(i[0])?t.value:`rgba(${i[0]},${i[1]},${i[2]},${o})`}else r.fields[e]=t.value}else r.type=t.value}),e.forEach(t=>{let e=t.id;if("highcharts-select-series"!==e&&"highcharts-select-volume"!==e){let i=e.split("highcharts-select-")[1];r.fields[i]=t.value}}),a&&(r.fields["params.volumeSeriesID"]=a.getAttribute("value")||""),r))})}),n}showForm(t,e,i,s){e&&(this.showPopup(),"indicators"===t&&this.indicators.addForm.call(this,e,i,s),"annotation-toolbar"===t&&this.annotations.addToolbar.call(this,e,i,s),"annotation-edit"===t&&this.annotations.addForm.call(this,e,i,s),"flag"===t&&this.annotations.addForm.call(this,e,i,s,!0),this.type=t,this.container.style.height=this.container.offsetHeight+"px")}}(0,g.extend)(tD.prototype,{annotations:{addForm:function(t,e,i,s){if(!t)return;let o=this.container,n=this.lang,a=(0,g.createElement)("h2",{className:"highcharts-popup-main-title"},void 0,o);a.appendChild(tc.createTextNode(n[e.langKey]||e.langKey||"")),a=(0,g.createElement)("div",{className:"highcharts-popup-lhs-col highcharts-popup-lhs-full"},void 0,o);let r=(0,g.createElement)("div",{className:"highcharts-popup-bottom-row"},void 0,o);td.call(this,a,t,"",e,[],!0),this.addButton(r,s?n.addButton||"Add":n.saveButton||"Save",s?"add":"save",o,i)},addToolbar:function(t,e,i){let s=this.lang,o=this.container,n=this.showForm,a="highcharts-annotation-toolbar";-1===o.className.indexOf(a)&&(o.className+=" "+a+" highcharts-no-mousewheel"),t&&(o.style.top=t.plotTop+10+"px");let r=(0,g.createElement)("p",{className:"highcharts-annotation-label"},void 0,o);r.setAttribute("aria-label","Annotation type"),r.appendChild(tc.createTextNode((s[e.langKey]||e.langKey)??(e.shapes&&e.shapes[0].type)??""));let h=this.addButton(o,s.editButton||"Edit","edit",o,()=>{n.call(this,"annotation-edit",t,e,i)});h.className+=" highcharts-annotation-edit-button",(0,g.createElement)("span",{className:"highcharts-icon"},{backgroundImage:ta("edit.svg",this.iconsURL,tn)},h),h=this.addButton(o,s.removeButton||"Remove","remove",o,i),h.className+=" highcharts-annotation-remove-button",(0,g.createElement)("span",{className:"highcharts-icon"},{backgroundImage:ta("destroy.svg",this.iconsURL,tn)},h)}},indicators:{addForm:function(t,e,i){let s,o=this.lang;if(!t)return;this.tabs.init.call(this,t);let n=this.container.querySelectorAll(".highcharts-tab-item-content");tf(n[0]),tb.call(this,t,n[0]),ty.call(this,t,n[0],"add"),s=n[0].querySelectorAll(".highcharts-popup-rhs-col")[0],this.addButton(s,o.addButton||"add","add",s,i),tf(n[1]),ty.call(this,t,n[1],"edit"),s=n[1].querySelectorAll(".highcharts-popup-rhs-col")[0],this.addButton(s,o.saveButton||"save","edit",s,i),this.addButton(s,o.removeButton||"remove","remove",s,i)},getAmount:function(){let t=0;return this.series.forEach(e=>{(e.params||e.options.params)&&t++}),t}},tabs:{init:function(t){if(!t)return;let e=this.indicators.getAmount.call(t),i=tN.call(this,"add");tN.call(this,"edit",e),tM.call(this),tM.call(this),tS.call(this,e),tT.call(this,i,0)}}});let{composed:tY}=m();function tX(){this.popup&&this.popup.closePopup()}function tF(t){this.popup||(this.popup=new tD(this.chart.container,this.chart.options.navigation.iconsURL||this.chart.options.stockTools&&this.chart.options.stockTools.gui.iconsURL||"renderer",this.chart)),this.popup.showForm(t.formType,this.chart,t.options,t.onSubmit)}function tR(t,e){this.inClass(e.target,"highcharts-popup")||t.apply(this,Array.prototype.slice.call(arguments,1))}let tU=function(t,e){(0,g.pushUnique)(tY,"Popup")&&((0,g.addEvent)(t,"closePopup",tX),(0,g.addEvent)(t,"showPopup",tF),(0,g.wrap)(e.prototype,"onContainerMouseDown",tR))},{defaultOptions:tW}=m();function tj(t,e){let i={};return["labels","shapes"].forEach(s=>{let o=t[s],n=e[s];o&&(n?i[s]=(0,g.splat)(n).map((t,e)=>(0,g.merge)(o[e],t)):i[s]=t[s])}),i}class tH extends P{static compose(t,e,i,s){E.compose(tH,t,i),Q.compose(s),V.compose(t,s),e.compose(tH,t),tU(e,i)}constructor(t,e){super(),this.coll="annotations",this.chart=t,this.points=[],this.controlPoints=[],this.coll="annotations",this.index=-1,this.labels=[],this.shapes=[],this.setOptions(e),this.userOptions=e;const i=tj(this.options,e);this.options.labels=i.labels,this.options.shapes=i.shapes,this.init(t,this.options)}addClipPaths(){this.setClipAxes(),this.clipXAxis&&this.clipYAxis&&this.options.crop&&(this.clipRect=this.chart.renderer.clipRect(this.getClipBox()))}addLabels(){let t=this.options.labels||[];t.forEach((e,i)=>{let s=this.initLabel(e,i);(0,g.merge)(!0,t[i],s.options)})}addShapes(){let t=this.options.shapes||[];t.forEach((e,i)=>{let s=this.initShape(e,i);(0,g.merge)(!0,t[i],s.options)})}destroy(){let t=this.chart,e=function(t){t.destroy()};this.labels.forEach(e),this.shapes.forEach(e),this.clipXAxis=null,this.clipYAxis=null,(0,g.erase)(t.labelCollectors,this.labelCollector),super.destroy(),this.destroyControlTarget(),(0,g.destroyObjectProperties)(this,t)}destroyItem(t){(0,g.erase)(this[t.itemType+"s"],t),t.destroy()}getClipBox(){if(this.clipXAxis&&this.clipYAxis)return{x:this.clipXAxis.left,y:this.clipYAxis.top,width:this.clipXAxis.width,height:this.clipYAxis.height}}initProperties(t,e){this.setOptions(e);let i=tj(this.options,e);this.options.labels=i.labels,this.options.shapes=i.shapes,this.chart=t,this.points=[],this.controlPoints=[],this.coll="annotations",this.userOptions=e,this.labels=[],this.shapes=[]}init(t,e,i=this.index){let s=this.chart,o=this.options.animation;this.index=i,this.linkPoints(),this.addControlPoints(),this.addShapes(),this.addLabels(),this.setLabelCollector(),this.animationConfig=(0,g.getDeferredAnimation)(s,o)}initLabel(t,e){this.options.labelOptions?.align;let i=new Q(this,(0,g.merge)(this.options.labelOptions,{controlPointOptions:this.options.controlPointOptions},t),e);return i.itemType="label",this.labels.push(i),i}initShape(t,e){let i=(0,g.merge)(this.options.shapeOptions,{controlPointOptions:this.options.controlPointOptions},t),s=new tH.shapesMap[i.type||"rect"](this,i,e);return s.itemType="shape",this.shapes.push(s),s}redraw(t){this.linkPoints(),this.graphic||this.render(),this.clipRect&&this.clipRect.animate(this.getClipBox()),this.redrawItems(this.shapes,t),this.redrawItems(this.labels,t),this.redrawControlPoints(t)}redrawItem(t,e){if(t.linkPoints(),t.shouldBeDrawn()){let i,s;t.graphic||this.renderItem(t),t.redraw((e??!0)&&t.graphic.placed),t.points.length&&(i=t.graphic,s=t.points.some(t=>!1!==t.series.visible&&!1!==t.visible),i&&(s?"hidden"===i.visibility&&i.show():i.hide()))}else this.destroyItem(t)}redrawItems(t,e){let i=t.length;for(;i--;)this.redrawItem(t[i],e)}remove(){return this.chart.removeAnnotation(this)}render(){let t=this.chart.renderer;this.graphic=t.g("annotation").addClass(this.options.className||"").attr({opacity:0,zIndex:this.options.zIndex,visibility:this.options.visible?"inherit":"hidden"}).add(),this.shapesGroup=t.g("annotation-shapes").add(this.graphic),this.options.crop&&this.shapesGroup.clip(this.chart.plotBoxClip),this.labelsGroup=t.g("annotation-labels").attr({translateX:0,translateY:0}).add(this.graphic),this.addClipPaths(),this.clipRect&&this.graphic.clip(this.clipRect),this.renderItems(this.shapes),this.renderItems(this.labels),this.addEvents(),this.renderControlPoints()}renderItem(t){t.render("label"===t.itemType?this.labelsGroup:this.shapesGroup)}renderItems(t){let e=t.length;for(;e--;)this.renderItem(t[e])}setClipAxes(){let t=this.chart.xAxis,e=this.chart.yAxis,i=[...this.options.labels??[],...this.options.shapes??[]].reduce((i,s)=>{let o=s&&(s.point||"points"in s&&s.points?.[0]);return[t[o&&o.xAxis]||i[0],e[o&&o.yAxis]||i[1]]},[]);this.clipXAxis=i[0],this.clipYAxis=i[1]}setControlPointsVisibility(t){let e=function(e){e.setControlPointsVisibility(t)};this.controlPoints.forEach(e=>{e.setVisibility(t)}),this.shapes.forEach(e),this.labels.forEach(e)}setLabelCollector(){let t=this;t.labelCollector=function(){return t.labels.reduce(function(t,e){return e.options.allowOverlap||t.push(e.graphic),t},[])},t.chart.labelCollectors.push(t.labelCollector)}setOptions(t){var e;this.options=(0,g.merge)(this.defaultOptions,t.type&&this.defaultOptions.types?.[t.type]||{},t),(e=this.options).typeOptions||(e.typeOptions={})}setVisibility(t){let e=this.options,i=this.chart.navigationBindings,s=t??!e.visible;if(this.graphic.attr("visibility",s?"inherit":"hidden"),!s){let t=function(t){t.setControlPointsVisibility(s)};this.shapes.forEach(t),this.labels.forEach(t),i.activeAnnotation===this&&i.popup&&"annotation-toolbar"===i.popup.type&&(0,g.fireEvent)(i,"closePopup")}e.visible=s}update(t,e){let i=this.chart,s=tj(this.userOptions,t),o=i.annotations.indexOf(this),n=(0,g.merge)(!0,this.userOptions,t);n.labels=s.labels,n.shapes=s.shapes,this.destroy(),this.initProperties(i,n),this.init(i,n),i.options.annotations[o]=this.options,this.isUpdating=!0,(e??!0)&&i.drawAnnotations(),(0,g.fireEvent)(this,"afterUpdate"),this.isUpdating=!1}}tH.ControlPoint=O,tH.MockPoint=I,tH.shapesMap={rect:q,circle:$,ellipse:_,path:V,image:tt},tH.types={},tH.prototype.defaultOptions=w,tW.annotations=w,tH.prototype.nonDOMEvents=["add","afterUpdate","drag","remove"],D.compose(tH);var tz=l||(l={});tz.compose=function(t){return t.navigation||(t.navigation=new tV(t)),t};class tV{constructor(t){this.updates=[],this.chart=t}addUpdate(t){this.chart.navigation.updates.push(t)}update(t,e){this.updates.forEach(i=>{i.call(this.chart,t,e)})}}tz.Additions=tV;let tq=l,{getAssignedAxis:t$}=N,t_={lang:{navigation:{popup:{simpleShapes:"Simple shapes",lines:"Lines",circle:"Circle",ellipse:"Ellipse",rectangle:"Rectangle",label:"Label",shapeOptions:"Shape options",typeOptions:"Details",fill:"Fill",format:"Text",strokeWidth:"Line width",stroke:"Line color",title:"Title",name:"Name",labelOptions:"Label options",labels:"Labels",backgroundColor:"Background color",backgroundColors:"Background colors",borderColor:"Border color",borderRadius:"Border radius",borderWidth:"Border width",style:"Style",padding:"Padding",fontSize:"Font size",color:"Color",height:"Height",shapes:"Shape options"}}},navigation:{bindingsClassName:"highcharts-bindings-container",bindings:{circleAnnotation:{className:"highcharts-circle-annotation",start:function(t){let e=this.chart.pointer?.getCoordinates(t),i=e&&t$(e.xAxis),s=e&&t$(e.yAxis),o=this.chart.options.navigation;if(i&&s)return this.chart.addAnnotation((0,g.merge)({langKey:"circle",type:"basicAnnotation",shapes:[{type:"circle",point:{x:i.value,y:s.value,xAxis:i.axis.index,yAxis:s.axis.index},r:5}]},o.annotationsOptions,o.bindings.circleAnnotation.annotationsOptions))},steps:[function(t,e){let i,s=e.options.shapes,o=s&&s[0]&&s[0].point||{};if((0,g.isNumber)(o.xAxis)&&(0,g.isNumber)(o.yAxis)){let e=this.chart.inverted,s=this.chart.xAxis[o.xAxis].toPixels(o.x),n=this.chart.yAxis[o.yAxis].toPixels(o.y);i=Math.max(Math.sqrt(Math.pow(e?n-t.chartX:s-t.chartX,2)+Math.pow(e?s-t.chartY:n-t.chartY,2)),5)}e.update({shapes:[{r:i}]})}]},ellipseAnnotation:{className:"highcharts-ellipse-annotation",start:function(t){let e=this.chart.pointer?.getCoordinates(t),i=e&&t$(e.xAxis),s=e&&t$(e.yAxis),o=this.chart.options.navigation;if(i&&s)return this.chart.addAnnotation((0,g.merge)({langKey:"ellipse",type:"basicAnnotation",shapes:[{type:"ellipse",xAxis:i.axis.index,yAxis:s.axis.index,points:[{x:i.value,y:s.value},{x:i.value,y:s.value}],ry:1}]},o.annotationsOptions,o.bindings.ellipseAnnotation.annotationsOptions))},steps:[function(t,e){let i=e.shapes[0],s=i.getAbsolutePosition(i.points[1]);i.translatePoint(t.chartX-s.x,t.chartY-s.y,1),i.redraw(!1)},function(t,e){let i=e.shapes[0],s=i.getAbsolutePosition(i.points[0]),o=i.getAbsolutePosition(i.points[1]),n=i.getDistanceFromLine(s,o,t.chartX,t.chartY),a=i.getYAxis(),r=Math.abs(a.toValue(0)-a.toValue(n));i.setYRadius(r),i.redraw(!1)}]},rectangleAnnotation:{className:"highcharts-rectangle-annotation",start:function(t){let e=this.chart.pointer?.getCoordinates(t),i=e&&t$(e.xAxis),s=e&&t$(e.yAxis);if(!i||!s)return;let o=i.value,n=s.value,a=i.axis.index,r=s.axis.index,h=this.chart.options.navigation;return this.chart.addAnnotation((0,g.merge)({langKey:"rectangle",type:"basicAnnotation",shapes:[{type:"path",points:[{xAxis:a,yAxis:r,x:o,y:n},{xAxis:a,yAxis:r,x:o,y:n},{xAxis:a,yAxis:r,x:o,y:n},{xAxis:a,yAxis:r,x:o,y:n},{command:"Z"}]}]},h.annotationsOptions,h.bindings.rectangleAnnotation.annotationsOptions))},steps:[function(t,e){let i=e.options.shapes,s=i&&i[0]&&i[0].points||[],o=this.chart.pointer?.getCoordinates(t),n=o&&t$(o.xAxis),a=o&&t$(o.yAxis);if(n&&a){let t=n.value,i=a.value;s[1].x=t,s[2].x=t,s[2].y=i,s[3].y=i,e.update({shapes:[{points:s}]})}}]},labelAnnotation:{className:"highcharts-label-annotation",start:function(t){let e=this.chart.pointer?.getCoordinates(t),i=e&&t$(e.xAxis),s=e&&t$(e.yAxis),o=this.chart.options.navigation;if(i&&s)return this.chart.addAnnotation((0,g.merge)({langKey:"label",type:"basicAnnotation",labelOptions:{format:"{y:.2f}",overflow:"none",crop:!0},labels:[{point:{xAxis:i.axis.index,yAxis:s.axis.index,x:i.value,y:s.value}}]},o.annotationsOptions,o.bindings.labelAnnotation.annotationsOptions))}}},events:{},annotationsOptions:{animation:{defer:0}}}},{setOptions:tG}=m(),{format:tK}=K(),{composed:tZ,doc:tJ,win:tQ}=m(),{getAssignedAxis:t0,getFieldType:t1}=N;function t2(){this.chart.navigationBindings&&this.chart.navigationBindings.deselectAnnotation()}function t9(){this.navigationBindings&&this.navigationBindings.destroy()}function t5(){let t=this.options;t&&t.navigation&&t.navigation.bindings&&(this.navigationBindings=new t8(this,t.navigation),this.navigationBindings.initEvents(),this.navigationBindings.initUpdate())}function t7(){let t=this.navigationBindings,e="highcharts-disabled-btn";if(this&&t){let i=!1;if(this.series.forEach(t=>{!t.options.isInternal&&t.visible&&(i=!0)}),this.navigationBindings&&this.navigationBindings.container&&this.navigationBindings.container[0]){let s=this.navigationBindings.container[0];(0,g.objectEach)(t.boundClassNames,(t,o)=>{let n=s.querySelectorAll("."+o);if(n)for(let s=0;s<n.length;s++){let o=n[s],a=o.className;"normal"===t.noDataState||i?-1!==a.indexOf(e)&&o.classList.remove(e):-1===a.indexOf(e)&&(o.className+=" "+e)}})}}}function t3(){this.deselectAnnotation()}function t4(){this.selectedButtonElement=null}function t6(t){let e,i,s=t.prototype.defaultOptions.events&&t.prototype.defaultOptions.events.click;function o(t){let e=this,i=e.chart.navigationBindings,o=i.activeAnnotation;s&&s.call(e,t),o!==e?(i.deselectAnnotation(),i.activeAnnotation=e,e.setControlPointsVisibility(!0),(0,g.fireEvent)(i,"showPopup",{annotation:e,formType:"annotation-toolbar",options:i.annotationToFields(e),onSubmit:function(t){if("remove"===t.actionType)i.activeAnnotation=!1,i.chart.removeAnnotation(e);else{let s={};i.fieldsToOptions(t.fields,s),i.deselectAnnotation();let o=s.typeOptions;"measure"===e.options.type&&(o.crosshairY.enabled=0!==o.crosshairY.strokeWidth,o.crosshairX.enabled=0!==o.crosshairX.strokeWidth),e.update(s)}}})):(0,g.fireEvent)(i,"closePopup"),t.activeAnnotation=!0}(0,g.merge)(!0,t.prototype.defaultOptions.events,{click:o,touchstart:function(t){e=t.touches[0].clientX,i=t.touches[0].clientY},touchend:function(t){e&&Math.sqrt(Math.pow(e-t.changedTouches[0].clientX,2)+Math.pow(i-t.changedTouches[0].clientY,2))>=4||o.call(this,t)}})}class t8{static compose(t,e){(0,g.pushUnique)(tZ,"NavigationBindings")&&((0,g.addEvent)(t,"remove",t2),t6(t),(0,g.objectEach)(t.types,t=>{t6(t)}),(0,g.addEvent)(e,"destroy",t9),(0,g.addEvent)(e,"load",t5),(0,g.addEvent)(e,"render",t7),(0,g.addEvent)(t8,"closePopup",t3),(0,g.addEvent)(t8,"deselectButton",t4),tG(t_))}constructor(t,e){this.boundClassNames=void 0,this.chart=t,this.options=e,this.eventsToUnbind=[],this.container=this.chart.container.getElementsByClassName(this.options.bindingsClassName||""),this.container.length||(this.container=tJ.getElementsByClassName(this.options.bindingsClassName||""))}getCoords(t){let e=this.chart.pointer?.getCoordinates(t);return[e&&t0(e.xAxis),e&&t0(e.yAxis)]}initEvents(){let t=this,e=t.chart,i=t.container,s=t.options;t.boundClassNames={},(0,g.objectEach)(s.bindings||{},e=>{t.boundClassNames[e.className]=e}),[].forEach.call(i,e=>{t.eventsToUnbind.push((0,g.addEvent)(e,"click",i=>{let s=t.getButtonEvents(e,i);s&&!s.button.classList.contains("highcharts-disabled-btn")&&t.bindingsButtonClick(s.button,s.events,i)}))}),(0,g.objectEach)(s.events||{},(e,i)=>{(0,g.isFunction)(e)&&t.eventsToUnbind.push((0,g.addEvent)(t,i,e,{passive:!1}))}),t.eventsToUnbind.push((0,g.addEvent)(e.container,"click",function(i){!e.cancelClick&&e.isInsidePlot(i.chartX-e.plotLeft,i.chartY-e.plotTop,{visiblePlotOnly:!0})&&t.bindingsChartClick(this,i)})),t.eventsToUnbind.push((0,g.addEvent)(e.container,m().isTouchDevice?"touchmove":"mousemove",function(e){t.bindingsContainerMouseMove(this,e)},m().isTouchDevice?{passive:!1}:void 0))}initUpdate(){let t=this;tq.compose(this.chart).navigation.addUpdate(e=>{t.update(e)})}bindingsButtonClick(t,e,i){let s=this.chart,o=s.renderer.boxWrapper,n=!0;this.selectedButtonElement&&(this.selectedButtonElement.classList===t.classList&&(n=!1),(0,g.fireEvent)(this,"deselectButton",{button:this.selectedButtonElement}),this.nextEvent&&(this.currentUserDetails&&"annotations"===this.currentUserDetails.coll&&s.removeAnnotation(this.currentUserDetails),this.mouseMoveEvent=this.nextEvent=!1)),n?(this.selectedButton=e,this.selectedButtonElement=t,(0,g.fireEvent)(this,"selectButton",{button:t}),e.init&&e.init.call(this,t,i),(e.start||e.steps)&&s.renderer.boxWrapper.addClass("highcharts-draw-mode")):(s.stockTools&&t.classList.remove("highcharts-active"),o.removeClass("highcharts-draw-mode"),this.nextEvent=!1,this.mouseMoveEvent=!1,this.selectedButton=null)}bindingsChartClick(t,e){t=this.chart;let i=this.activeAnnotation,s=this.selectedButton,o=t.renderer.boxWrapper;i&&(i.cancelClick||e.activeAnnotation||!e.target.parentNode||function(t,e){let i=tQ.Element.prototype,s=i.matches||i.msMatchesSelector||i.webkitMatchesSelector,o=null;if(i.closest)o=i.closest.call(t,e);else do{if(s.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return o}(e.target,".highcharts-popup")?i.cancelClick&&setTimeout(()=>{i.cancelClick=!1},0):(0,g.fireEvent)(this,"closePopup")),s&&s.start&&(this.nextEvent?(this.nextEvent(e,this.currentUserDetails),this.steps&&(this.stepIndex++,s.steps[this.stepIndex]?this.mouseMoveEvent=this.nextEvent=s.steps[this.stepIndex]:((0,g.fireEvent)(this,"deselectButton",{button:this.selectedButtonElement}),o.removeClass("highcharts-draw-mode"),s.end&&s.end.call(this,e,this.currentUserDetails),this.nextEvent=!1,this.mouseMoveEvent=!1,this.selectedButton=null))):(this.currentUserDetails=s.start.call(this,e),this.currentUserDetails&&s.steps?(this.stepIndex=0,this.steps=!0,this.mouseMoveEvent=this.nextEvent=s.steps[this.stepIndex]):((0,g.fireEvent)(this,"deselectButton",{button:this.selectedButtonElement}),o.removeClass("highcharts-draw-mode"),this.steps=!1,this.selectedButton=null,s.end&&s.end.call(this,e,this.currentUserDetails))))}bindingsContainerMouseMove(t,e){this.mouseMoveEvent&&this.mouseMoveEvent(e,this.currentUserDetails)}fieldsToOptions(t,e){return(0,g.objectEach)(t,(t,i)=>{let s=parseFloat(t),o=i.split("."),n=o.length-1;if(!(0,g.isNumber)(s)||t.match(/px|em/g)||i.match(/format/g)||i.match(/title/g)||(t=s),"undefined"!==t){let i=e;o.forEach((e,s)=>{if("__proto__"!==e&&"constructor"!==e){let a=o[s+1]??"";n===s?i[e]=t:(i[e]||(i[e]=a.match(/\d/g)?[]:{}),i=i[e])}})}}),e}deselectAnnotation(){this.activeAnnotation&&(this.activeAnnotation.setControlPointsVisibility(!1),this.activeAnnotation=!1)}annotationToFields(t){let e=t.options,i=t8.annotationsEditable,s=i.nestedOptions,o=e.type??e.shapes?.[0]?.type??e.labels?.[0]?.type??"label",n=t8.annotationsNonEditable[e.langKey]||[],a={langKey:e.langKey,type:o};function r(e,i,o,a,h){let l;o&&(0,g.defined)(e)&&-1===n.indexOf(i)&&((o.indexOf&&o.indexOf(i))>=0||o[i]||!0===o)&&((0,g.isArray)(e)?(a[i]=[],e.forEach((t,e)=>{(0,g.isObject)(t)?(a[i][e]={},(0,g.objectEach)(t,(t,o)=>{r(t,o,s[i],a[i][e],i)})):r(t,0,s[i],a[i],i)})):(0,g.isObject)(e)?(l={},(0,g.isArray)(a)?(a.push(l),l[i]={},l=l[i]):a[i]=l,(0,g.objectEach)(e,(t,e)=>{r(t,e,0===i?o:s[i],l,i)})):"format"===i?a[i]=[tK(e,t.labels[0].points[0]).toString(),"text"]:(0,g.isArray)(a)?a.push([e,t1(h,e)]):a[i]=[e,t1(i,e)])}return(0,g.objectEach)(e,(t,n)=>{"typeOptions"===n&&"basicAnnotation"!==a.type?(a[n]={},(0,g.objectEach)(e[n],(t,e)=>{r(t,e,s,a[n],e)})):r(t,n,i[o],a,n)}),a}getClickedClassNames(t,e){let i=e.target,s=[],o;for(;i&&i.tagName&&((o=(0,g.attr)(i,"class"))&&(s=s.concat(o.split(" ").map(t=>[t,i]))),(i=i.parentNode)!==t););return s}getButtonEvents(t,e){let i,s=this;return this.getClickedClassNames(t,e).forEach(t=>{s.boundClassNames[t[0]]&&!i&&(i={events:s.boundClassNames[t[0]],button:t[1]})}),i}update(t){this.options=(0,g.merge)(!0,this.options,t),this.removeEvents(),this.initEvents()}removeEvents(){this.eventsToUnbind.forEach(t=>t())}destroy(){this.removeEvents()}}t8.annotationsEditable={nestedOptions:{labelOptions:["style","format","backgroundColor"],labels:["style"],label:["style"],style:["fontSize","color"],background:["fill","strokeWidth","stroke"],innerBackground:["fill","strokeWidth","stroke"],outerBackground:["fill","strokeWidth","stroke"],shapeOptions:["fill","strokeWidth","stroke"],shapes:["fill","strokeWidth","stroke"],line:["strokeWidth","stroke"],backgroundColors:[!0],connector:["fill","strokeWidth","stroke"],crosshairX:["strokeWidth","stroke"],crosshairY:["strokeWidth","stroke"]},circle:["shapes"],ellipse:["shapes"],verticalLine:[],label:["labelOptions"],measure:["background","crosshairY","crosshairX"],fibonacci:[],tunnel:["background","line","height"],pitchfork:["innerBackground","outerBackground"],rect:["shapes"],crookedLine:[],basicAnnotation:["shapes","labelOptions"]},t8.annotationsNonEditable={rectangle:["crosshairX","crosshairY","labelOptions"],ellipse:["labelOptions"],circle:["labelOptions"]};let et=m();et.Annotation=et.Annotation||tH,et.NavigationBindings=et.NavigationBindings||t8,et.Annotation.compose(et.Chart,et.NavigationBindings,et.Pointer,et.SVGRenderer);let ee=m();return u.default})());
|