highcharts 9.2.2 → 9.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -6
- package/bower.json +1 -1
- package/css/annotations/popup.css +48 -8
- package/css/annotations/popup.scss +70 -22
- package/css/highcharts.css +45 -0
- package/css/highcharts.scss +40 -0
- package/css/themes/dark-unica.css +45 -0
- package/css/themes/grid-light.css +45 -0
- package/css/themes/sand-signika.css +45 -0
- package/es-modules/Accessibility/A11yI18n.js +273 -224
- package/es-modules/Accessibility/Accessibility.js +233 -128
- package/es-modules/Accessibility/AccessibilityComponent.js +79 -314
- package/es-modules/Accessibility/Components/AnnotationsA11y.js +10 -0
- package/es-modules/Accessibility/Components/ContainerComponent.js +52 -27
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +46 -23
- package/es-modules/Accessibility/Components/LegendComponent.js +97 -65
- package/es-modules/Accessibility/Components/MenuComponent.js +59 -40
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +5 -8
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +152 -115
- package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +133 -68
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +64 -27
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +38 -21
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +380 -325
- package/es-modules/Accessibility/Components/ZoomComponent.js +28 -20
- package/es-modules/Accessibility/FocusBorder.js +192 -147
- package/es-modules/Accessibility/HighContrastMode.js +78 -66
- package/es-modules/Accessibility/HighContrastTheme.js +10 -0
- package/es-modules/Accessibility/KeyboardNavigation.js +144 -70
- package/es-modules/Accessibility/KeyboardNavigationHandler.js +71 -44
- package/es-modules/Accessibility/Options/DeprecatedOptions.js +11 -1
- package/es-modules/Accessibility/Options/LangOptions.js +1 -2
- package/es-modules/Accessibility/Options/Options.js +32 -17
- package/es-modules/Accessibility/ProxyElement.js +212 -0
- package/es-modules/Accessibility/ProxyProvider.js +305 -0
- package/es-modules/Accessibility/Utils/Announcer.js +15 -8
- package/es-modules/Accessibility/Utils/ChartUtilities.js +41 -16
- package/es-modules/Accessibility/Utils/DOMElementProvider.js +27 -15
- package/es-modules/Accessibility/Utils/EventProvider.js +27 -17
- package/es-modules/Accessibility/Utils/HTMLUtilities.js +125 -30
- package/es-modules/Core/Axis/Axis.js +37 -30
- package/es-modules/Core/Axis/AxisDefaults.js +35 -24
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +54 -4
- package/es-modules/Core/Axis/Color/ColorAxisDefaults.js +5 -5
- package/es-modules/Core/Axis/OrdinalAxis.js +8 -12
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +4 -5
- package/es-modules/Core/Axis/ScrollbarAxis.js +10 -3
- package/es-modules/Core/Axis/TreeGridAxis.js +2 -2
- package/es-modules/Core/Axis/TreeGridTick.js +1 -2
- package/es-modules/Core/Chart/Chart.js +2 -3
- package/es-modules/Core/Chart/ChartDefaults.js +3 -4
- package/es-modules/Core/Chart/ChartNavigationComposition.js +92 -0
- package/es-modules/Core/Chart/MapChart.js +10 -22
- package/es-modules/Core/Chart/StockChart.js +3 -293
- package/es-modules/Core/Color/Palettes.js +22 -0
- package/es-modules/Core/DefaultOptions.js +19 -17
- package/es-modules/Core/Foundation.js +39 -31
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/HttpUtilities.js +3 -3
- package/es-modules/Core/Legend/Legend.js +7 -3
- package/es-modules/Core/Navigator.js +7 -8
- package/es-modules/Core/Pointer.js +39 -36
- package/es-modules/Core/Renderer/HTML/AST.js +2 -0
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +23 -18
- package/es-modules/Core/Renderer/SVG/SVGElement.js +3 -4
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +21 -18
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +3 -3
- package/es-modules/Core/ScrollbarDefaults.js +10 -9
- package/es-modules/Core/Series/DataLabel.js +2 -3
- package/es-modules/Core/Series/Point.js +5 -3
- package/es-modules/Core/Series/Series.js +153 -162
- package/es-modules/Core/Series/SeriesDefaults.js +3 -4
- package/es-modules/Core/Series/SeriesRegistry.js +1 -2
- package/es-modules/Core/Tooltip.js +44 -17
- package/es-modules/Core/Utilities.js +15 -7
- package/es-modules/Data/DataConverter.js +489 -0
- package/es-modules/Data/DataPromise.js +252 -0
- package/es-modules/Data/DataSeriesConverter.js +203 -0
- package/es-modules/Data/DataTable.js +1204 -0
- package/es-modules/Data/Modifiers/ChainModifier.js +299 -0
- package/es-modules/Data/Modifiers/DataModifier.js +303 -0
- package/es-modules/Data/Modifiers/GroupModifier.js +144 -0
- package/es-modules/Data/Modifiers/InvertModifier.js +254 -0
- package/es-modules/Data/Modifiers/RangeModifier.js +143 -0
- package/es-modules/Data/Modifiers/SeriesPointsModifier.js +110 -0
- package/es-modules/Data/Modifiers/SortModifier.js +249 -0
- package/es-modules/Data/Parsers/CSVParser.js +399 -0
- package/es-modules/Data/Parsers/DataParser.js +101 -0
- package/es-modules/Data/Parsers/GoogleSheetsParser.js +220 -0
- package/es-modules/Data/Parsers/HTMLTableParser.js +213 -0
- package/es-modules/Data/Stores/CSVStore.js +317 -0
- package/es-modules/Data/Stores/DataStore.js +276 -0
- package/es-modules/Data/Stores/GoogleSheetsStore.js +167 -0
- package/es-modules/Data/Stores/HTMLTableStore.js +351 -0
- package/es-modules/Extensions/Annotations/Annotations.js +61 -11
- package/es-modules/Extensions/Annotations/ControlPoint.js +1 -1
- package/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +199 -0
- package/es-modules/Extensions/Annotations/Mixins/ControllableMixin.js +7 -1
- package/es-modules/Extensions/Annotations/NavigationBindings.js +68 -19
- package/es-modules/Extensions/Annotations/Popup.js +479 -141
- package/es-modules/Extensions/Annotations/Types/BasicAnnotation.js +51 -2
- package/es-modules/Extensions/Annotations/Types/CrookedLine.js +1 -1
- package/es-modules/Extensions/Annotations/Types/Fibonacci.js +2 -3
- package/es-modules/Extensions/Annotations/Types/FibonacciTimeZones.js +219 -0
- package/es-modules/Extensions/Annotations/Types/InfinityLine.js +1 -1
- package/es-modules/Extensions/Annotations/Types/Measure.js +14 -8
- package/es-modules/Extensions/Annotations/Types/Pitchfork.js +5 -5
- package/es-modules/Extensions/Annotations/Types/TimeCycles.js +207 -0
- package/es-modules/Extensions/Annotations/Types/Tunnel.js +3 -5
- package/es-modules/Extensions/Annotations/Types/VerticalLine.js +1 -1
- package/es-modules/Extensions/Boost/BoostOverrides.js +3 -1
- package/es-modules/Extensions/Boost/WGLShader.js +4 -3
- package/es-modules/Extensions/BoostCanvas.js +1 -2
- package/es-modules/Extensions/CurrentDateIndication.js +2 -3
- package/es-modules/Extensions/DataGrouping.js +31 -18
- package/es-modules/Extensions/DownloadURL.js +2 -2
- package/es-modules/Extensions/DragPanes.js +1 -2
- package/es-modules/Extensions/Drilldown.js +2 -3
- package/es-modules/Extensions/Exporting/Exporting.js +8 -7
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +8 -15
- package/es-modules/Extensions/GeoJSON.js +39 -63
- package/es-modules/Extensions/MarkerClusters.js +115 -97
- package/es-modules/Extensions/NoDataToDisplay.js +1 -2
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +9 -8
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
- package/es-modules/Extensions/Oldie/Oldie.js +2 -3
- package/es-modules/Extensions/Pane.js +5 -6
- package/es-modules/Extensions/RangeSelector.js +3 -4
- package/es-modules/Extensions/Sonification/ChartSonify.js +247 -637
- package/es-modules/Extensions/Sonification/Earcon.js +136 -102
- package/es-modules/Extensions/Sonification/Instrument.js +496 -426
- package/es-modules/Extensions/Sonification/MusicalFrequencies.js +10 -0
- package/es-modules/Extensions/Sonification/Options.js +10 -0
- package/es-modules/Extensions/Sonification/PointSonify.js +203 -152
- package/es-modules/Extensions/Sonification/SeriesSonify.js +459 -0
- package/es-modules/Extensions/Sonification/SignalHandler.js +124 -0
- package/es-modules/Extensions/Sonification/Sonification.js +26 -52
- package/es-modules/Extensions/Sonification/{Utilities.js → SonificationUtilities.js} +62 -84
- package/es-modules/Extensions/Sonification/Timeline.js +255 -567
- package/es-modules/Extensions/Sonification/TimelineEvent.js +158 -0
- package/es-modules/Extensions/Sonification/TimelinePath.js +311 -0
- package/es-modules/Maps/MapNavigation.js +27 -64
- package/es-modules/Maps/MapNavigationOptionsDefault.js +3 -0
- package/es-modules/Maps/MapPointer.js +7 -5
- package/es-modules/Maps/MapView.js +450 -0
- package/es-modules/Maps/MapViewOptionsDefault.js +95 -0
- package/es-modules/Maps/Projection.js +433 -0
- package/es-modules/Maps/ProjectionDefinition.js +9 -0
- package/es-modules/Maps/Projections/EqualEarth.js +42 -0
- package/es-modules/Maps/Projections/Miller.js +17 -0
- package/es-modules/Maps/Projections/Orthographic.js +26 -0
- package/es-modules/Maps/Projections/ProjectionRegistry.js +17 -0
- package/es-modules/Maps/Projections/WebMercator.js +25 -0
- package/es-modules/Series/AreaRange/AreaRangeSeries.js +4 -5
- package/es-modules/Series/Bellcurve/BellcurveSeries.js +2 -8
- package/es-modules/Series/BoxPlot/BoxPlotSeries.js +1 -2
- package/es-modules/Series/Bubble/BubbleLegendDefaults.js +1 -2
- package/es-modules/Series/Bubble/BubbleLegendItem.js +3 -3
- package/es-modules/Series/Bubble/BubblePoint.js +5 -0
- package/es-modules/Series/Bubble/BubbleSeries.js +90 -50
- package/es-modules/Series/Candlestick/CandlestickSeries.js +10 -18
- package/es-modules/{Mixins/CenteredSeries.js → Series/CenteredUtilities.js} +45 -23
- package/es-modules/Series/ColorMapComposition.js +109 -0
- package/es-modules/Series/Column/ColumnDataLabel.js +5 -5
- package/es-modules/Series/Column/ColumnSeries.js +3 -4
- package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +6 -6
- package/es-modules/Series/DataModifyComposition.js +539 -0
- package/es-modules/Series/DependencyWheel/DependencyWheelPoint.js +2 -6
- package/es-modules/Series/DerivedComposition.js +137 -0
- package/es-modules/Series/DrawPointComposition.js +111 -0
- package/es-modules/Series/Dumbbell/DumbbellSeries.js +2 -3
- package/es-modules/Series/ErrorBar/ErrorBarSeries.js +1 -2
- package/es-modules/Series/Flags/FlagsSeries.js +18 -25
- package/es-modules/Series/Funnel/FunnelSeries.js +6 -5
- package/es-modules/Series/Gantt/GanttSeries.js +0 -2
- package/es-modules/Series/Gauge/GaugePoint.js +1 -1
- package/es-modules/Series/Gauge/GaugeSeries.js +7 -7
- package/es-modules/Series/HLC/HLCPoint.js +55 -0
- package/es-modules/Series/HLC/HLCSeries.js +383 -0
- package/es-modules/Series/Heatmap/HeatmapPoint.js +3 -4
- package/es-modules/Series/Heatmap/HeatmapSeries.js +19 -6
- package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +2 -3
- package/es-modules/Series/Histogram/HistogramSeries.js +3 -7
- package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +9 -10
- package/es-modules/Series/Line/LineSeries.js +1 -2
- package/es-modules/Series/Map/MapPoint.js +23 -16
- package/es-modules/Series/Map/MapSeries.js +268 -309
- package/es-modules/Series/MapBubble/MapBubblePoint.js +0 -3
- package/es-modules/Series/MapBubble/MapBubbleSeries.js +10 -1
- package/es-modules/Series/MapPoint/MapPointPoint.js +5 -1
- package/es-modules/Series/MapPoint/MapPointSeries.js +87 -4
- package/es-modules/Series/Networkgraph/Networkgraph.js +5 -5
- package/es-modules/{Mixins/Nodes.js → Series/NodesComposition.js} +76 -29
- package/es-modules/Series/OHLC/OHLCPoint.js +2 -6
- package/es-modules/Series/OHLC/OHLCSeries.js +55 -183
- package/es-modules/{Mixins/OnSeries.js → Series/OnSeriesComposition.js} +53 -21
- package/es-modules/Series/Organization/OrganizationSeries.js +2 -3
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +46 -6
- package/es-modules/Series/ParetoSeries/ParetoSeries.js +3 -7
- package/es-modules/Series/Pie/PieDataLabel.js +1 -2
- package/es-modules/Series/Pie/PieSeries.js +6 -7
- package/es-modules/Series/Sankey/SankeyPoint.js +0 -4
- package/es-modules/Series/Sankey/SankeySeries.js +89 -20
- package/es-modules/Series/Sunburst/SunburstPoint.js +2 -3
- package/es-modules/Series/Sunburst/SunburstSeries.js +4 -4
- package/es-modules/Series/Tilemap/TilemapPoint.js +2 -3
- package/es-modules/Series/Timeline/TimelineSeries.js +3 -4
- package/es-modules/{Mixins/TreeSeries.js → Series/TreeUtilities.js} +86 -76
- package/es-modules/Series/Treemap/TreemapPoint.js +2 -2
- package/es-modules/Series/Treemap/TreemapSeries.js +8 -8
- package/es-modules/Series/Venn/VennPoint.js +16 -7
- package/es-modules/Series/Venn/VennSeries.js +5 -8
- package/es-modules/Series/Venn/VennUtils.js +550 -439
- package/es-modules/Series/Waterfall/WaterfallSeries.js +2 -3
- package/es-modules/Series/Windbarb/WindbarbSeries.js +23 -24
- package/es-modules/Series/Wordcloud/WordcloudPoint.js +8 -6
- package/es-modules/Series/Wordcloud/WordcloudSeries.js +24 -20
- package/es-modules/Series/Wordcloud/WordcloudUtils.js +673 -484
- package/es-modules/Series/XRange/XRangePoint.js +1 -0
- package/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +3 -6
- package/es-modules/Stock/Indicators/AO/AOIndicator.js +2 -3
- package/es-modules/Stock/Indicators/APO/APOIndicator.js +14 -20
- package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +3 -6
- package/es-modules/Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js +11 -13
- package/es-modules/Stock/Indicators/ArrayUtilities.js +47 -0
- package/es-modules/Stock/Indicators/BB/BBIndicator.js +27 -11
- package/es-modules/Stock/Indicators/Chaikin/ChaikinIndicator.js +6 -12
- package/es-modules/Stock/Indicators/DEMA/DEMAIndicator.js +1 -11
- package/es-modules/Stock/Indicators/DMI/DMIIndicator.js +19 -11
- package/es-modules/Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js +17 -11
- package/es-modules/Stock/Indicators/EMA/EMAIndicator.js +1 -3
- package/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +11 -9
- package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +8 -16
- package/es-modules/Stock/Indicators/LinearRegression/LinearRegression.js +2 -2
- package/es-modules/Stock/Indicators/LinearRegressionAngle/LinearRegressionAngle.js +2 -2
- package/es-modules/Stock/Indicators/LinearRegressionIntercept/LinearRegressionIntercept.js +2 -2
- package/es-modules/Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopes.js +2 -2
- package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +1 -2
- package/es-modules/{Mixins/MultipleLines.js → Stock/Indicators/MultipleLinesComposition.js} +136 -87
- package/es-modules/Stock/Indicators/NATR/NATRIndicator.js +1 -3
- package/es-modules/Stock/Indicators/PC/PCIndicator.js +14 -13
- package/es-modules/Stock/Indicators/PPO/PPOIndicator.js +1 -11
- package/es-modules/Stock/Indicators/SMA/SMAComposition.js +0 -26
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +9 -32
- package/es-modules/Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js +0 -8
- package/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +15 -8
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +4 -6
- package/es-modules/Stock/Indicators/TEMA/TEMAIndicator.js +26 -11
- package/es-modules/Stock/Indicators/TRIX/TRIXIndicator.js +6 -12
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +20 -3
- package/es-modules/Stock/Indicators/WilliamsR/WilliamsRIndicator.js +2 -3
- package/es-modules/Stock/StockToolsBindings.js +144 -42
- package/es-modules/Stock/StockToolsGui.js +405 -11
- package/es-modules/masters/highcharts-3d.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 +1 -1
- package/es-modules/masters/highmaps.src.js +1 -1
- package/es-modules/masters/highstock.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/ema.src.js +4 -10
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/masters/indicators/indicators-all.src.js +2 -2
- package/es-modules/masters/indicators/indicators.src.js +2 -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 +16 -2
- package/es-modules/masters/modules/annotations-advanced.src.js +3 -1
- package/es-modules/masters/modules/annotations.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/current-date-indicator.src.js +1 -1
- package/es-modules/masters/modules/cylinder.src.js +1 -1
- package/es-modules/masters/modules/data.src.js +6 -3
- 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/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/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +1 -2
- 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 -3
- package/es-modules/masters/modules/marker-clusters.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/offline-exporting.src.js +1 -1
- package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
- package/es-modules/masters/modules/oldie.src.js +1 -1
- package/es-modules/masters/modules/organization.src.js +1 -1
- package/es-modules/masters/modules/overlapping-datalabels.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/price-indicator.src.js +1 -1
- package/es-modules/masters/modules/pyramid3d.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/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/sonification.src.js +33 -2
- 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 +4 -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/tilemap.src.js +1 -1
- package/es-modules/masters/modules/timeline.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/themes/avocado.src.js +1 -1
- package/es-modules/masters/themes/dark-blue.src.js +1 -1
- package/es-modules/masters/themes/dark-green.src.js +1 -1
- package/es-modules/masters/themes/dark-unica.src.js +1 -1
- package/es-modules/masters/themes/gray.src.js +1 -1
- package/es-modules/masters/themes/grid-light.src.js +1 -1
- package/es-modules/masters/themes/grid.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
- package/es-modules/masters/themes/sand-signika.src.js +1 -1
- package/es-modules/masters/themes/skies.src.js +1 -1
- package/es-modules/masters/themes/sunset.src.js +1 -1
- package/highcharts-3d.js +1 -1
- package/highcharts-3d.src.js +1 -1
- package/highcharts-gantt.js +801 -804
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +775 -739
- package/highcharts-more.js +194 -193
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.js +207 -119
- package/highcharts.d.ts +9670 -4217
- package/highcharts.js +585 -588
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +9670 -4217
- package/highcharts.src.js +608 -587
- package/highmaps.js +726 -708
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +2708 -1587
- package/highstock.js +788 -783
- package/highstock.js.map +1 -1
- package/highstock.src.js +1896 -1267
- package/indicators/acceleration-bands.js +10 -9
- package/indicators/acceleration-bands.js.map +1 -1
- package/indicators/acceleration-bands.src.js +156 -112
- package/indicators/accumulation-distribution.js +1 -1
- package/indicators/accumulation-distribution.src.js +1 -1
- package/indicators/ao.js +6 -6
- package/indicators/ao.js.map +1 -1
- package/indicators/ao.src.js +4 -4
- package/indicators/apo.js +5 -6
- package/indicators/apo.js.map +1 -1
- package/indicators/apo.src.js +16 -84
- package/indicators/aroon-oscillator.js +9 -9
- package/indicators/aroon-oscillator.js.map +1 -1
- package/indicators/aroon-oscillator.src.js +160 -177
- package/indicators/aroon.js +9 -9
- package/indicators/aroon.js.map +1 -1
- package/indicators/aroon.src.js +156 -112
- package/indicators/atr.js +1 -1
- package/indicators/atr.src.js +1 -1
- package/indicators/bollinger-bands.js +10 -9
- package/indicators/bollinger-bands.js.map +1 -1
- package/indicators/bollinger-bands.src.js +180 -117
- package/indicators/cci.js +1 -1
- package/indicators/cci.src.js +1 -1
- package/indicators/chaikin.js +8 -9
- package/indicators/chaikin.js.map +1 -1
- package/indicators/chaikin.src.js +8 -76
- 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 +5 -6
- package/indicators/dema.js.map +1 -1
- package/indicators/dema.src.js +3 -75
- package/indicators/disparity-index.js +6 -7
- package/indicators/disparity-index.js.map +1 -1
- package/indicators/disparity-index.src.js +19 -74
- package/indicators/dmi.js +11 -11
- package/indicators/dmi.js.map +1 -1
- package/indicators/dmi.src.js +173 -116
- package/indicators/dpo.js +1 -1
- package/indicators/dpo.src.js +1 -1
- package/indicators/ema.js +1 -13
- package/indicators/ema.js.map +1 -1
- package/indicators/ema.src.js +7 -188
- package/indicators/ichimoku-kinko-hyo.js +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/indicators/indicators-all.js +197 -203
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.js +649 -720
- package/indicators/indicators.js +12 -12
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +188 -124
- package/indicators/keltner-channels.js +10 -10
- package/indicators/keltner-channels.js.map +1 -1
- package/indicators/keltner-channels.src.js +164 -118
- package/indicators/klinger.js +12 -13
- package/indicators/klinger.js.map +1 -1
- package/indicators/klinger.src.js +161 -184
- package/indicators/macd.js +2 -2
- package/indicators/macd.js.map +1 -1
- package/indicators/macd.src.js +2 -3
- 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 +3 -3
- package/indicators/natr.js.map +1 -1
- package/indicators/natr.src.js +2 -4
- 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 +5 -6
- package/indicators/ppo.js.map +1 -1
- package/indicators/ppo.src.js +3 -75
- package/indicators/price-channel.js +9 -9
- package/indicators/price-channel.js.map +1 -1
- package/indicators/price-channel.src.js +207 -168
- 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 +9 -9
- package/indicators/roc.js +1 -1
- package/indicators/roc.src.js +1 -1
- package/indicators/rsi.js +1 -1
- package/indicators/rsi.src.js +1 -1
- package/indicators/slow-stochastic.js +5 -6
- package/indicators/slow-stochastic.js.map +1 -1
- package/indicators/slow-stochastic.src.js +2 -72
- package/indicators/stochastic.js +10 -10
- package/indicators/stochastic.js.map +1 -1
- package/indicators/stochastic.src.js +209 -164
- package/indicators/supertrend.js +10 -10
- package/indicators/supertrend.js.map +1 -1
- package/indicators/supertrend.src.js +6 -7
- package/indicators/tema.js +6 -7
- package/indicators/tema.js.map +1 -1
- package/indicators/tema.src.js +28 -75
- package/indicators/trendline.js +1 -1
- package/indicators/trendline.src.js +1 -1
- package/indicators/trix.js +4 -5
- package/indicators/trix.js.map +1 -1
- package/indicators/trix.src.js +8 -76
- package/indicators/volume-by-price.js +16 -16
- package/indicators/volume-by-price.js.map +1 -1
- package/indicators/volume-by-price.src.js +21 -3
- package/indicators/vwap.js +1 -1
- package/indicators/vwap.src.js +1 -1
- package/indicators/williams-r.js +5 -6
- package/indicators/williams-r.js.map +1 -1
- package/indicators/williams-r.src.js +41 -51
- 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.d.ts +5 -0
- package/modules/accessibility.js +234 -216
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.d.ts +5 -0
- package/modules/accessibility.src.js +9709 -8608
- package/modules/annotations-advanced.d.ts +30 -0
- package/modules/annotations-advanced.js +191 -165
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.d.ts +30 -0
- package/modules/annotations-advanced.src.js +1578 -320
- package/modules/annotations.js +121 -107
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +958 -229
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.js +15 -15
- package/modules/boost-canvas.js.map +1 -1
- package/modules/boost-canvas.src.js +3 -3
- package/modules/boost.js +79 -79
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.js +10 -9
- package/modules/broken-axis.js +1 -1
- package/modules/broken-axis.src.js +1 -1
- package/modules/bullet.js +1 -1
- package/modules/bullet.src.js +1 -1
- package/modules/coloraxis.js +24 -24
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +69 -98
- package/modules/current-date-indicator.js +4 -4
- package/modules/current-date-indicator.js.map +1 -1
- package/modules/current-date-indicator.src.js +4 -4
- package/modules/cylinder.js +1 -1
- package/modules/cylinder.src.js +1 -1
- package/modules/data.js +19 -19
- package/modules/data.js.map +1 -1
- package/modules/data.src.js +9 -6
- package/modules/datagrouping.js +20 -20
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.js +33 -19
- package/modules/debugger.js +1 -1
- package/modules/debugger.src.js +1 -1
- package/modules/dependency-wheel.js +11 -11
- package/modules/dependency-wheel.js.map +1 -1
- package/modules/dependency-wheel.src.js +4 -7
- package/modules/dotplot.js +1 -1
- package/modules/dotplot.src.js +1 -1
- package/modules/drag-panes.js +8 -8
- package/modules/drag-panes.js.map +1 -1
- package/modules/drag-panes.src.js +3 -3
- package/modules/draggable-points.js +1 -1
- package/modules/draggable-points.src.js +1 -1
- package/modules/drilldown.js +24 -24
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.js +4 -4
- package/modules/dumbbell.js +17 -17
- package/modules/dumbbell.js.map +1 -1
- package/modules/dumbbell.src.js +4 -4
- package/modules/export-data.js +1 -1
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +3 -3
- package/modules/exporting.js +39 -38
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.js +98 -67
- package/modules/full-screen.js +1 -1
- package/modules/full-screen.src.js +1 -1
- package/modules/funnel.js +12 -12
- package/modules/funnel.js.map +1 -1
- package/modules/funnel.src.js +9 -6
- package/modules/funnel3d.js +1 -1
- package/modules/funnel3d.src.js +1 -1
- package/modules/gantt.js +217 -218
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +167 -152
- package/modules/grid-axis.js +1 -1
- package/modules/grid-axis.src.js +1 -1
- package/modules/heatmap.js +39 -39
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +177 -162
- package/modules/heikinashi.js +1 -1
- package/modules/heikinashi.src.js +4 -4
- package/modules/histogram-bellcurve.js +13 -13
- package/modules/histogram-bellcurve.js.map +1 -1
- package/modules/histogram-bellcurve.src.js +91 -86
- package/modules/hollowcandlestick.js +9 -9
- package/modules/hollowcandlestick.js.map +1 -1
- package/modules/hollowcandlestick.src.js +11 -11
- package/modules/item-series.js +1 -1
- package/modules/item-series.src.js +1 -1
- package/modules/lollipop.js +1 -1
- package/modules/lollipop.src.js +1 -1
- package/modules/map.d.ts +136 -14
- package/modules/map.js +142 -122
- package/modules/map.js.map +1 -1
- package/modules/map.src.d.ts +136 -14
- package/modules/map.src.js +2129 -1029
- package/modules/marker-clusters.js +36 -36
- package/modules/marker-clusters.js.map +1 -1
- package/modules/marker-clusters.src.js +173 -142
- package/modules/networkgraph.d.ts +12 -1
- package/modules/networkgraph.js +49 -49
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.d.ts +12 -1
- package/modules/networkgraph.src.js +91 -43
- package/modules/no-data-to-display.js +5 -5
- package/modules/no-data-to-display.js.map +1 -1
- package/modules/no-data-to-display.src.js +3 -3
- package/modules/offline-exporting.js +17 -17
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +13 -13
- package/modules/oldie-polyfills.js +1 -1
- package/modules/oldie-polyfills.src.js +1 -1
- package/modules/oldie.js +26 -26
- package/modules/oldie.js.map +1 -1
- package/modules/oldie.src.js +4 -4
- package/modules/organization.js +13 -13
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +4 -4
- package/modules/overlapping-datalabels.js +1 -1
- package/modules/overlapping-datalabels.src.js +1 -1
- package/modules/parallel-coordinates.js +1 -1
- package/modules/parallel-coordinates.src.js +1 -1
- package/modules/pareto.js +7 -7
- package/modules/pareto.js.map +1 -1
- package/modules/pareto.src.js +89 -78
- package/modules/pathfinder.js +1 -1
- package/modules/pathfinder.src.js +1 -1
- package/modules/pattern-fill.js +1 -1
- package/modules/pattern-fill.src.js +1 -1
- package/modules/price-indicator.js +1 -1
- package/modules/price-indicator.src.js +1 -1
- package/modules/pyramid3d.js +1 -1
- package/modules/pyramid3d.src.js +1 -1
- package/modules/sankey.d.ts +12 -1
- package/modules/sankey.js +29 -29
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.d.ts +12 -1
- package/modules/sankey.src.js +300 -176
- package/modules/series-label.js +1 -1
- package/modules/series-label.src.js +1 -1
- package/modules/solid-gauge.js +1 -1
- package/modules/solid-gauge.src.js +1 -1
- package/modules/sonification.js +59 -55
- package/modules/sonification.js.map +1 -1
- package/modules/sonification.src.js +3034 -2553
- package/modules/static-scale.js +1 -1
- package/modules/static-scale.src.js +1 -1
- package/modules/stock-tools.js +177 -164
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.js +1001 -131
- package/modules/stock.d.ts +39 -6
- package/modules/stock.js +204 -196
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.d.ts +39 -6
- package/modules/stock.src.js +1689 -1081
- package/modules/streamgraph.js +1 -1
- package/modules/streamgraph.src.js +1 -1
- package/modules/sunburst.js +61 -60
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.js +329 -266
- package/modules/tilemap.js +17 -17
- package/modules/tilemap.js.map +1 -1
- package/modules/tilemap.src.js +3 -4
- package/modules/timeline.js +18 -18
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +5 -5
- package/modules/treegrid.js +56 -57
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +126 -120
- package/modules/treemap.js +41 -41
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.js +319 -254
- package/modules/variable-pie.js +1 -1
- package/modules/variable-pie.src.js +1 -1
- package/modules/variwide.js +1 -1
- package/modules/variwide.src.js +1 -1
- package/modules/vector.js +1 -1
- package/modules/vector.src.js +1 -1
- package/modules/venn.js +31 -31
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +731 -721
- package/modules/windbarb.js +15 -15
- package/modules/windbarb.js.map +1 -1
- package/modules/windbarb.src.js +90 -62
- package/modules/wordcloud.js +23 -24
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +897 -949
- package/modules/xrange.js +2 -2
- package/modules/xrange.js.map +1 -1
- package/modules/xrange.src.js +2 -1
- package/package.json +1 -1
- package/themes/avocado.js +1 -1
- package/themes/avocado.src.js +1 -1
- package/themes/dark-blue.js +1 -1
- package/themes/dark-blue.src.js +1 -1
- package/themes/dark-green.js +1 -1
- package/themes/dark-green.src.js +1 -1
- package/themes/dark-unica.js +1 -1
- package/themes/dark-unica.src.js +1 -1
- package/themes/gray.js +1 -1
- package/themes/gray.src.js +1 -1
- package/themes/grid-light.js +1 -1
- package/themes/grid-light.src.js +1 -1
- package/themes/grid.js +1 -1
- package/themes/grid.src.js +1 -1
- package/themes/high-contrast-dark.js +1 -1
- package/themes/high-contrast-dark.src.js +1 -1
- package/themes/high-contrast-light.js +1 -1
- package/themes/high-contrast-light.src.js +1 -1
- package/themes/sand-signika.js +1 -1
- package/themes/sand-signika.src.js +1 -1
- package/themes/skies.js +1 -1
- package/themes/skies.src.js +1 -1
- package/themes/sunset.js +1 -1
- package/themes/sunset.src.js +1 -1
- package/es-modules/Core/Axis/MapAxis.js +0 -157
- package/es-modules/Core/Color/Palette.js +0 -82
- package/es-modules/Extensions/Sonification/InstrumentDefinitions.js +0 -32
- package/es-modules/Mixins/ColorMapSeries.js +0 -82
- package/es-modules/Mixins/ColorSeries.js +0 -77
- package/es-modules/Mixins/DerivedSeries.js +0 -118
- package/es-modules/Mixins/DrawPoint.js +0 -81
- package/es-modules/Mixins/IndicatorRequired.js +0 -56
- package/es-modules/Mixins/Navigation.js +0 -54
- package/es-modules/Mixins/NelderMead.js +0 -132
- package/es-modules/Mixins/Polygon.js +0 -259
- package/es-modules/Mixins/ReduceArray.js +0 -54
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Highcharts JS v9.
|
|
2
|
+
Highcharts JS v9.3.0 (2021-10-21)
|
|
3
3
|
|
|
4
4
|
Annotations module
|
|
5
5
|
|
|
@@ -7,168 +7,194 @@
|
|
|
7
7
|
|
|
8
8
|
License: www.highcharts.com/license
|
|
9
9
|
*/
|
|
10
|
-
'use strict';(function(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
(
|
|
15
|
-
this.options.draggable&&(a.y=0);"y"===this.options.draggable&&(a.x=0);this.points.length?this.translate(a.x,a.y):(this.shapes.forEach(function(
|
|
16
|
-
b.prevChartY;if(this.chart.inverted){var
|
|
17
|
-
a){this.addEvents=
|
|
18
|
-
|
|
19
|
-
this.chart,b=this.target,a=this.index;
|
|
20
|
-
this.target=b||null;this.options=a;this.applyOptions(this.getOptions())}
|
|
21
|
-
|
|
22
|
-
0];this.series.chart.inverted&&(e[0]=this.plotY,e[1]=this.plotX);return e};
|
|
23
|
-
e=e.yAxis;var a=this.getOptions();b?(this.x=a.x,this.plotX=b.toPixels(a.x,!0)):(this.x=null,this.plotX=a.x);e?(this.y=a.y,this.plotY=e.toPixels(a.y,!0)):(this.y=null,this.plotY=a.y);this.isInside=this.isInsidePlot()};
|
|
24
|
-
function(e,b,a){if(!this.hasDynamicOptions()){var
|
|
25
|
-
|
|
26
|
-
this.constructor.attrsMap,b={},
|
|
27
|
-
point:function(a,
|
|
28
|
-
e(this.options.controlPointOptions,
|
|
29
|
-
e){var h=this.points[e];h.mock||(h=this.points[e]=
|
|
30
|
-
this.options.point},rotate:function(a,
|
|
31
|
-
null)},update:function(a){var
|
|
32
|
-
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}}]}};
|
|
33
|
-
a)});b=e(!0,{attributes:{markerWidth:20,markerHeight:20,refX:0,refY:0,orient:"auto"}},b,
|
|
34
|
-
b())+"-"+
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
this.graphic.strokeWidth()):null};e.prototype.shouldBeDrawn=function(){return
|
|
38
|
-
stroke:
|
|
39
|
-
strokeWidth:"stroke-width",stroke:"stroke",fill:"fill",zIndex:"zIndex"};return e}()});v(
|
|
40
|
-
this.getPointsOptions=
|
|
41
|
-
function(
|
|
42
|
-
[
|
|
43
|
-
|
|
44
|
-
function(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
d
|
|
55
|
-
|
|
56
|
-
function(f){var
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
function(a){
|
|
66
|
-
|
|
67
|
-
return
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
(
|
|
79
|
-
a.options.
|
|
80
|
-
|
|
81
|
-
a.
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
{
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
a.
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
function(
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
function(){
|
|
118
|
-
|
|
119
|
-
b
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
this.
|
|
137
|
-
|
|
138
|
-
this.
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
"
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
a
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
(a.
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
10
|
+
'use strict';(function(c){"object"===typeof module&&module.exports?(c["default"]=c,module.exports=c):"function"===typeof define&&define.amd?define("highcharts/modules/annotations-advanced",["highcharts"],function(v){c(v);c.Highcharts=v;return c}):c("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(c){function v(g,c,n,l){g.hasOwnProperty(c)||(g[c]=l.apply(null,n))}c=c?c._modules:{};v(c,"Extensions/Annotations/Mixins/EventEmitterMixin.js",[c["Core/Globals.js"],c["Core/Utilities.js"]],function(g,
|
|
11
|
+
c){var k=c.addEvent,l=c.fireEvent,q=c.objectEach,m=c.pick,e=c.removeEvent;return{addEvents:function(){var b=this,a=function(a){k(a,g.isTouchDevice?"touchstart":"mousedown",function(a){b.onMouseDown(a)},{passive:!1})};a(this.graphic.element);(b.labels||[]).forEach(function(d){d.options.useHTML&&d.graphic.text&&a(d.graphic.text.element)});q(b.options.events,function(a,d){var p=function(p){"click"===d&&b.cancelClick||a.call(b,b.chart.pointer.normalize(p),b.target)};if(-1===(b.nonDOMEvents||[]).indexOf(d))b.graphic.on(d,
|
|
12
|
+
p);else k(b,d,p,{passive:!1})});if(b.options.draggable&&(k(b,"drag",b.onDrag),!b.graphic.renderer.styledMode)){var d={cursor:{x:"ew-resize",y:"ns-resize",xy:"move"}[b.options.draggable]};b.graphic.css(d);(b.labels||[]).forEach(function(a){a.options.useHTML&&a.graphic.text&&a.graphic.text.css(d)})}b.isUpdating||l(b,"add")},removeDocEvents:function(){this.removeDrag&&(this.removeDrag=this.removeDrag());this.removeMouseUp&&(this.removeMouseUp=this.removeMouseUp())},onMouseDown:function(b){var a=this,
|
|
13
|
+
d=a.chart.pointer;b.preventDefault&&b.preventDefault();if(2!==b.button){b=d.normalize(b);var h=b.chartX;var f=b.chartY;a.cancelClick=!1;a.chart.hasDraggedAnnotation=!0;a.removeDrag=k(g.doc,g.isTouchDevice?"touchmove":"mousemove",function(b){a.hasDragged=!0;b=d.normalize(b);b.prevChartX=h;b.prevChartY=f;l(a,"drag",b);h=b.chartX;f=b.chartY},g.isTouchDevice?{passive:!1}:void 0);a.removeMouseUp=k(g.doc,g.isTouchDevice?"touchend":"mouseup",function(d){var b=m(a.target&&a.target.annotation,a.target);b&&
|
|
14
|
+
(b.cancelClick=a.hasDragged);a.cancelClick=a.hasDragged;a.hasDragged=!1;a.chart.hasDraggedAnnotation=!1;l(m(b,a),"afterUpdate");a.onMouseUp(d)},g.isTouchDevice?{passive:!1}:void 0)}},onMouseUp:function(b){var a=this.chart;b=this.target||this;var d=a.options.annotations;a=a.annotations.indexOf(b);this.removeDocEvents();d[a]=b.options},onDrag:function(b){if(this.chart.isInsidePlot(b.chartX-this.chart.plotLeft,b.chartY-this.chart.plotTop,{visiblePlotOnly:!0})){var a=this.mouseMoveToTranslation(b);"x"===
|
|
15
|
+
this.options.draggable&&(a.y=0);"y"===this.options.draggable&&(a.x=0);this.points.length?this.translate(a.x,a.y):(this.shapes.forEach(function(d){d.translate(a.x,a.y)}),this.labels.forEach(function(d){d.translate(a.x,a.y)}));this.redraw(!1)}},mouseMoveToRadians:function(b,a,d){var h=b.prevChartY-d,f=b.prevChartX-a;d=b.chartY-d;b=b.chartX-a;this.chart.inverted&&(a=f,f=h,h=a,a=b,b=d,d=a);return Math.atan2(d,b)-Math.atan2(h,f)},mouseMoveToTranslation:function(b){var a=b.chartX-b.prevChartX;b=b.chartY-
|
|
16
|
+
b.prevChartY;if(this.chart.inverted){var d=b;b=a;a=d}return{x:a,y:b}},mouseMoveToScale:function(b,a,d){a=(b.chartX-a||1)/(b.prevChartX-a||1);b=(b.chartY-d||1)/(b.prevChartY-d||1);this.chart.inverted&&(d=b,b=a,a=d);return{x:a,y:b}},destroy:function(){this.removeDocEvents();e(this);this.hcEvents=null}}});v(c,"Extensions/Annotations/ControlPoint.js",[c["Core/Utilities.js"],c["Extensions/Annotations/Mixins/EventEmitterMixin.js"]],function(g,c){var k=g.merge,l=g.pick;return function(){function g(g,e,b,
|
|
17
|
+
a){this.addEvents=c.addEvents;this.graphic=void 0;this.mouseMoveToRadians=c.mouseMoveToRadians;this.mouseMoveToScale=c.mouseMoveToScale;this.mouseMoveToTranslation=c.mouseMoveToTranslation;this.onDrag=c.onDrag;this.onMouseDown=c.onMouseDown;this.onMouseUp=c.onMouseUp;this.removeDocEvents=c.removeDocEvents;this.nonDOMEvents=["drag"];this.chart=g;this.target=e;this.options=b;this.index=l(b.index,a)}g.prototype.setVisibility=function(g){this.graphic.attr("visibility",g?"visible":"hidden");this.options.visible=
|
|
18
|
+
g};g.prototype.render=function(){var g=this.chart,e=this.options;this.graphic=g.renderer.symbol(e.symbol,0,0,e.width,e.height).add(g.controlPointsGroup).css(e.style);this.setVisibility(e.visible);this.addEvents()};g.prototype.redraw=function(g){this.graphic[g?"animate":"attr"](this.options.positioner.call(this,this.target))};g.prototype.destroy=function(){c.destroy.call(this);this.graphic&&(this.graphic=this.graphic.destroy());this.options=this.target=this.chart=null};g.prototype.update=function(g){var e=
|
|
19
|
+
this.chart,b=this.target,a=this.index;g=k(!0,this.options,g);this.destroy();this.constructor(e,b,g,a);this.render(e.controlPointsGroup);this.redraw()};return g}()});v(c,"Extensions/Annotations/MockPoint.js",[c["Core/Series/Series.js"],c["Core/Utilities.js"],c["Core/Axis/Axis.js"]],function(g,c,n){var l=c.defined,k=c.fireEvent;return function(){function c(e,b,a){this.y=this.x=this.ttBelow=this.plotY=this.plotX=this.negative=this.isInside=void 0;this.mock=!0;this.series={visible:!0,chart:e,getPlotBox:g.prototype.getPlotBox};
|
|
20
|
+
this.target=b||null;this.options=a;this.applyOptions(this.getOptions())}c.fromPoint=function(e){return new c(e.series.chart,null,{x:e.x,y:e.y,xAxis:e.series.xAxis,yAxis:e.series.yAxis})};c.pointToPixels=function(e,b){var a=e.series,d=a.chart,h=e.plotX,f=e.plotY;d.inverted&&(e.mock?(h=e.plotY,f=e.plotX):(h=d.plotWidth-e.plotY,f=d.plotHeight-e.plotX));a&&!b&&(e=a.getPlotBox(),h+=e.translateX,f+=e.translateY);return{x:h,y:f}};c.pointToOptions=function(e){return{x:e.x,y:e.y,xAxis:e.series.xAxis,yAxis:e.series.yAxis}};
|
|
21
|
+
c.prototype.hasDynamicOptions=function(){return"function"===typeof this.options};c.prototype.getOptions=function(){return this.hasDynamicOptions()?this.options(this.target):this.options};c.prototype.applyOptions=function(e){this.command=e.command;this.setAxis(e,"x");this.setAxis(e,"y");this.refresh()};c.prototype.setAxis=function(e,b){b+="Axis";e=e[b];var a=this.series.chart;this.series[b]=e instanceof n?e:l(e)?a[b][e]||a.get(e):null};c.prototype.toAnchor=function(){var e=[this.plotX,this.plotY,0,
|
|
22
|
+
0];this.series.chart.inverted&&(e[0]=this.plotY,e[1]=this.plotX);return e};c.prototype.getLabelConfig=function(){return{x:this.x,y:this.y,point:this}};c.prototype.isInsidePlot=function(){var e=this.plotX,b=this.plotY,a=this.series.xAxis,d=this.series.yAxis,h={x:e,y:b,isInsidePlot:!0};a&&(h.isInsidePlot=l(e)&&0<=e&&e<=a.len);d&&(h.isInsidePlot=h.isInsidePlot&&l(b)&&0<=b&&b<=d.len);k(this.series.chart,"afterIsInsidePlot",h);return h.isInsidePlot};c.prototype.refresh=function(){var e=this.series,b=e.xAxis;
|
|
23
|
+
e=e.yAxis;var a=this.getOptions();b?(this.x=a.x,this.plotX=b.toPixels(a.x,!0)):(this.x=null,this.plotX=a.x);e?(this.y=a.y,this.plotY=e.toPixels(a.y,!0)):(this.y=null,this.plotY=a.y);this.isInside=this.isInsidePlot()};c.prototype.translate=function(e,b,a,d){this.hasDynamicOptions()||(this.plotX+=a,this.plotY+=d,this.refreshOptions())};c.prototype.scale=function(e,b,a,d){if(!this.hasDynamicOptions()){var h=this.plotY*d;this.plotX=(1-a)*e+this.plotX*a;this.plotY=(1-d)*b+h;this.refreshOptions()}};c.prototype.rotate=
|
|
24
|
+
function(e,b,a){if(!this.hasDynamicOptions()){var d=Math.cos(a);a=Math.sin(a);var h=this.plotX,f=this.plotY;h-=e;f-=b;this.plotX=h*d-f*a+e;this.plotY=h*a+f*d+b;this.refreshOptions()}};c.prototype.refreshOptions=function(){var e=this.series,b=e.xAxis;e=e.yAxis;this.x=this.options.x=b?this.options.x=b.toValue(this.plotX,!0):this.plotX;this.y=this.options.y=e?e.toValue(this.plotY,!0):this.plotY};return c}()});v(c,"Extensions/Annotations/Mixins/ControllableMixin.js",[c["Extensions/Annotations/ControlPoint.js"],
|
|
25
|
+
c["Extensions/Annotations/MockPoint.js"],c["Core/Tooltip.js"],c["Core/Utilities.js"]],function(g,c,n,l){var k=l.isObject,m=l.isString,e=l.merge,b=l.splat;return{init:function(a,d,b){this.annotation=a;this.chart=a.chart;this.options=d;this.points=[];this.controlPoints=[];this.index=b;this.linkPoints();this.addControlPoints()},attr:function(){this.graphic.attr.apply(this.graphic,arguments)},getPointsOptions:function(){var a=this.options;return a.points||a.point&&b(a.point)},attrsFromOptions:function(a){var d=
|
|
26
|
+
this.constructor.attrsMap,b={},f,p=this.chart.styledMode;for(f in a){var e=d[f];!e||p&&-1!==["fill","stroke","stroke-width"].indexOf(e)||(b[e]=a[f])}return b},anchor:function(a){var d=a.series.getPlotBox(),b=a.series.chart,f=a.mock?a.toAnchor():n.prototype.getAnchor.call({chart:a.series.chart},a);f={x:f[0]+(this.options.x||0),y:f[1]+(this.options.y||0),height:f[2]||0,width:f[3]||0};return{relativePosition:f,absolutePosition:e(f,{x:f.x+(a.mock?d.translateX:b.plotLeft),y:f.y+(a.mock?d.translateY:b.plotTop)})}},
|
|
27
|
+
point:function(a,d){if(a&&a.series)return a;d&&null!==d.series||(k(a)?d=new c(this.chart,this,a):m(a)?d=this.chart.get(a)||null:"function"===typeof a&&(d=a.call(d,this),d=d.series?d:new c(this.chart,this,a)));return d},linkPoints:function(){var a=this.getPointsOptions(),d=this.points,b=a&&a.length||0,f;for(f=0;f<b;f++){var p=this.point(a[f],d[f]);if(!p){d.length=0;return}p.mock&&p.refresh();d[f]=p}return d},addControlPoints:function(){var a=this.options.controlPoints;(a||[]).forEach(function(d,b){d=
|
|
28
|
+
e(this.options.controlPointOptions,d);d.index||(d.index=b);a[b]=d;this.controlPoints.push(new g(this.chart,this,d))},this)},shouldBeDrawn:function(){return!!this.points.length},render:function(a){this.controlPoints.forEach(function(a){a.render()})},redraw:function(a){this.controlPoints.forEach(function(d){d.redraw(a)})},transform:function(a,d,b,f,p){if(this.chart.inverted){var h=d;d=b;b=h}this.points.forEach(function(h,e){this.transformPoint(a,d,b,f,p,e)},this)},transformPoint:function(a,d,b,f,p,
|
|
29
|
+
e){var h=this.points[e];h.mock||(h=this.points[e]=c.fromPoint(h));h[a](d,b,f,p)},translate:function(a,d){this.transform("translate",null,null,a,d)},translatePoint:function(a,d,b){this.transformPoint("translate",null,null,a,d,b)},translateShape:function(a,d,b){var f=this.annotation.chart,p=this.annotation.userOptions,h=f.annotations.indexOf(this.annotation);f=f.options.annotations[h];this.translatePoint(a,d,0);b&&this.translatePoint(a,d,1);f[this.collection][this.index].point=this.options.point;p[this.collection][this.index].point=
|
|
30
|
+
this.options.point},rotate:function(a,d,b){this.transform("rotate",a,d,b)},scale:function(a,d,b,f){this.transform("scale",a,d,b,f)},setControlPointsVisibility:function(a){this.controlPoints.forEach(function(d){d.setVisibility(a)})},destroy:function(){this.graphic&&(this.graphic=this.graphic.destroy());this.tracker&&(this.tracker=this.tracker.destroy());this.controlPoints.forEach(function(a){a.destroy()});this.options=this.controlPoints=this.points=this.chart=null;this.annotation&&(this.annotation=
|
|
31
|
+
null)},update:function(a){var d=this.annotation;a=e(!0,this.options,a);var b=this.graphic.parentGroup;this.destroy();this.constructor(d,a,this.index);this.render(b);this.redraw()}}});v(c,"Extensions/Annotations/Mixins/MarkerMixin.js",[c["Core/Chart/Chart.js"],c["Core/Renderer/SVG/SVGRenderer.js"],c["Core/Utilities.js"]],function(g,c,n){function l(a){return function(d){this.attr(a,"url(#"+d+")")}}var k=n.addEvent,m=n.defined,e=n.merge,b=n.uniqueKey,a={arrow:{tagName:"marker",attributes:{id:"arrow",
|
|
32
|
+
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}}]}};c.prototype.addMarker=function(a,b){var d={attributes:{id:a}},p={stroke:b.color||"none",fill:b.color||"rgba(0, 0, 0, 0.75)"};d.children=b.children&&b.children.map(function(a){return e(p,
|
|
33
|
+
a)});b=e(!0,{attributes:{markerWidth:20,markerHeight:20,refX:0,refY:0,orient:"auto"}},b,d);b=this.definition(b);b.id=a;return b};c={markerEndSetter:l("marker-end"),markerStartSetter:l("marker-start"),setItemMarkers:function(a){var d=a.options,f=a.chart,p=f.options.defs,r=d.fill,g=m(r)&&"none"!==r?r:d.stroke;["markerStart","markerEnd"].forEach(function(h){var r=d[h],c;if(r){for(c in p){var y=p[c];if((r===(y.attributes&&y.attributes.id)||r===y.id)&&"marker"===y.tagName){var B=y;break}}B&&(r=a[h]=f.renderer.addMarker((d.id||
|
|
34
|
+
b())+"-"+r,e(B,{color:g})),a.attr(h,r.getAttribute("id")))}})}};k(g,"afterGetContainer",function(){this.options.defs=e(a,this.options.defs||{})});return c});v(c,"Extensions/Annotations/Controllables/ControllablePath.js",[c["Extensions/Annotations/Mixins/ControllableMixin.js"],c["Core/Globals.js"],c["Extensions/Annotations/Mixins/MarkerMixin.js"],c["Core/Utilities.js"]],function(g,c,n,l){var k=l.extend,m="rgba(192,192,192,"+(c.svg?.0001:.002)+")";return function(){function e(b,a,d){this.addControlPoints=
|
|
35
|
+
g.addControlPoints;this.anchor=g.anchor;this.attr=g.attr;this.attrsFromOptions=g.attrsFromOptions;this.destroy=g.destroy;this.getPointsOptions=g.getPointsOptions;this.init=g.init;this.linkPoints=g.linkPoints;this.point=g.point;this.rotate=g.rotate;this.scale=g.scale;this.setControlPointsVisibility=g.setControlPointsVisibility;this.setMarkers=n.setItemMarkers;this.transform=g.transform;this.transformPoint=g.transformPoint;this.translate=g.translate;this.translatePoint=g.translatePoint;this.translateShape=
|
|
36
|
+
g.translateShape;this.update=g.update;this.type="path";this.init(b,a,d);this.collection="shapes"}e.prototype.toD=function(){var b=this.options.d;if(b)return"function"===typeof b?b.call(this):b;b=this.points;var a=b.length,d=a,h=b[0],f=d&&this.anchor(h).absolutePosition,p=0,e=[];if(f)for(e.push(["M",f.x,f.y]);++p<a&&d;)h=b[p],d=h.command||"L",f=this.anchor(h).absolutePosition,"M"===d?e.push([d,f.x,f.y]):"L"===d?e.push([d,f.x,f.y]):"Z"===d&&e.push([d]),d=h.series.visible;return d?this.chart.renderer.crispLine(e,
|
|
37
|
+
this.graphic.strokeWidth()):null};e.prototype.shouldBeDrawn=function(){return g.shouldBeDrawn.call(this)||!!this.options.d};e.prototype.render=function(b){var a=this.options,d=this.attrsFromOptions(a);this.graphic=this.annotation.chart.renderer.path([["M",0,0]]).attr(d).add(b);a.className&&this.graphic.addClass(a.className);this.tracker=this.annotation.chart.renderer.path([["M",0,0]]).addClass("highcharts-tracker-line").attr({zIndex:2}).add(b);this.annotation.chart.styledMode||this.tracker.attr({"stroke-linejoin":"round",
|
|
38
|
+
stroke:m,fill:m,"stroke-width":this.graphic.strokeWidth()+2*a.snap});g.render.call(this);k(this.graphic,{markerStartSetter:n.markerStartSetter,markerEndSetter:n.markerEndSetter});this.setMarkers(this)};e.prototype.redraw=function(b){var a=this.toD(),d=b?"animate":"attr";a?(this.graphic[d]({d:a}),this.tracker[d]({d:a})):(this.graphic.attr({d:"M 0 -9000000000"}),this.tracker.attr({d:"M 0 -9000000000"}));this.graphic.placed=this.tracker.placed=!!a;g.redraw.call(this,b)};e.attrsMap={dashStyle:"dashstyle",
|
|
39
|
+
strokeWidth:"stroke-width",stroke:"stroke",fill:"fill",zIndex:"zIndex"};return e}()});v(c,"Extensions/Annotations/Controllables/ControllableRect.js",[c["Extensions/Annotations/Mixins/ControllableMixin.js"],c["Extensions/Annotations/Controllables/ControllablePath.js"],c["Core/Utilities.js"]],function(g,c,n){var l=n.merge;return function(){function k(c,e,b){this.addControlPoints=g.addControlPoints;this.anchor=g.anchor;this.attr=g.attr;this.attrsFromOptions=g.attrsFromOptions;this.destroy=g.destroy;
|
|
40
|
+
this.getPointsOptions=g.getPointsOptions;this.init=g.init;this.linkPoints=g.linkPoints;this.point=g.point;this.rotate=g.rotate;this.scale=g.scale;this.setControlPointsVisibility=g.setControlPointsVisibility;this.shouldBeDrawn=g.shouldBeDrawn;this.transform=g.transform;this.transformPoint=g.transformPoint;this.translatePoint=g.translatePoint;this.translateShape=g.translateShape;this.update=g.update;this.type="rect";this.translate=g.translateShape;this.init(c,e,b);this.collection="shapes"}k.prototype.render=
|
|
41
|
+
function(c){var e=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.rect(0,-9E9,0,0).attr(e).add(c);g.render.call(this)};k.prototype.redraw=function(c){var e=this.anchor(this.points[0]).absolutePosition;if(e)this.graphic[c?"animate":"attr"]({x:e.x,y:e.y,width:this.options.width,height:this.options.height});else this.attr({x:0,y:-9E9});this.graphic.placed=!!e;g.redraw.call(this,c)};k.attrsMap=l(c.attrsMap,{width:"width",height:"height"});return k}()});v(c,"Extensions/Annotations/Controllables/ControllableCircle.js",
|
|
42
|
+
[c["Extensions/Annotations/Mixins/ControllableMixin.js"],c["Extensions/Annotations/Controllables/ControllablePath.js"],c["Core/Utilities.js"]],function(g,c,n){var l=n.merge;return function(){function k(c,e,b){this.addControlPoints=g.addControlPoints;this.anchor=g.anchor;this.attr=g.attr;this.attrsFromOptions=g.attrsFromOptions;this.destroy=g.destroy;this.getPointsOptions=g.getPointsOptions;this.init=g.init;this.linkPoints=g.linkPoints;this.point=g.point;this.rotate=g.rotate;this.scale=g.scale;this.setControlPointsVisibility=
|
|
43
|
+
g.setControlPointsVisibility;this.shouldBeDrawn=g.shouldBeDrawn;this.transform=g.transform;this.transformPoint=g.transformPoint;this.translatePoint=g.translatePoint;this.translateShape=g.translateShape;this.update=g.update;this.type="circle";this.translate=g.translateShape;this.init(c,e,b);this.collection="shapes"}k.prototype.render=function(c){var e=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.circle(0,-9E9,0).attr(e).add(c);g.render.call(this)};k.prototype.redraw=
|
|
44
|
+
function(c){var e=this.anchor(this.points[0]).absolutePosition;if(e)this.graphic[c?"animate":"attr"]({x:e.x,y:e.y,r:this.options.r});else this.graphic.attr({x:0,y:-9E9});this.graphic.placed=!!e;g.redraw.call(this,c)};k.prototype.setRadius=function(c){this.options.r=c};k.attrsMap=l(c.attrsMap,{r:"r"});return k}()});v(c,"Extensions/Annotations/Controllables/ControllableEllipse.js",[c["Extensions/Annotations/Mixins/ControllableMixin.js"],c["Extensions/Annotations/Controllables/ControllablePath.js"],
|
|
45
|
+
c["Core/Utilities.js"]],function(c,k,n){var g=n.merge,q=n.defined;return function(){function m(e,b,a){this.addControlPoints=c.addControlPoints;this.anchor=c.anchor;this.attr=c.attr;this.attrsFromOptions=c.attrsFromOptions;this.destroy=c.destroy;this.getPointsOptions=c.getPointsOptions;this.linkPoints=c.linkPoints;this.point=c.point;this.scale=c.scale;this.setControlPointsVisibility=c.setControlPointsVisibility;this.shouldBeDrawn=c.shouldBeDrawn;this.transform=c.transform;this.translatePoint=c.translatePoint;
|
|
46
|
+
this.transformPoint=c.transformPoint;this.type="ellipse";this.init(e,b,a);this.collection="shapes"}m.prototype.init=function(e,b,a){q(b.yAxis)&&b.points.forEach(function(a){a.yAxis=b.yAxis});q(b.xAxis)&&b.points.forEach(function(a){a.xAxis=b.xAxis});c.init.call(this,e,b,a)};m.prototype.render=function(e){this.graphic=this.annotation.chart.renderer.createElement("ellipse").attr(this.attrsFromOptions(this.options)).add(e);c.render.call(this)};m.prototype.translate=function(e,b){c.translateShape.call(this,
|
|
47
|
+
e,b,!0)};m.prototype.getDistanceFromLine=function(e,b,a,d){return Math.abs((b.y-e.y)*a-(b.x-e.x)*d+b.x*e.y-b.y*e.x)/Math.sqrt((b.y-e.y)*(b.y-e.y)+(b.x-e.x)*(b.x-e.x))};m.prototype.getAttrs=function(e,b){var a=e.x,d=e.y,h=b.x,f=b.y;b=(a+h)/2;e=(d+f)/2;var p=Math.sqrt((a-h)*(a-h)/4+(d-f)*(d-f)/4);d=180*Math.atan((f-d)/(h-a))/Math.PI;b<a&&(d+=180);a=this.getRY();return{cx:b,cy:e,rx:p,ry:a,angle:d}};m.prototype.getRY=function(){var e=this.getYAxis();return q(e)?Math.abs(e.toPixels(this.options.ry)-e.toPixels(0)):
|
|
48
|
+
this.options.ry};m.prototype.getYAxis=function(){return this.chart.yAxis[this.options.yAxis]};m.prototype.getAbsolutePosition=function(e){return this.anchor(e).absolutePosition};m.prototype.redraw=function(e){var b=this.getAbsolutePosition(this.points[0]),a=this.getAbsolutePosition(this.points[1]);a=this.getAttrs(b,a);if(b)this.graphic[e?"animate":"attr"]({cx:a.cx,cy:a.cy,rx:a.rx,ry:a.ry,rotation:a.angle,rotationOriginX:a.cx,rotationOriginY:a.cy});else this.graphic.attr({x:0,y:-9E9});this.graphic.placed=
|
|
49
|
+
!!b;c.redraw.call(this,e)};m.prototype.setYRadius=function(e){this.options.ry=e;this.annotation.userOptions.shapes[0].ry=e;this.annotation.options.shapes[0].ry=e};m.attrsMap=g(k.attrsMap,{ry:"ry"});return m}()});v(c,"Extensions/Annotations/Controllables/ControllableLabel.js",[c["Extensions/Annotations/Mixins/ControllableMixin.js"],c["Core/FormatUtilities.js"],c["Extensions/Annotations/MockPoint.js"],c["Core/Renderer/SVG/SVGRenderer.js"],c["Core/Tooltip.js"],c["Core/Utilities.js"]],function(c,k,n,
|
|
50
|
+
l,q,m){var e=k.format;k=l.prototype.symbols;var b=m.extend,a=m.isNumber,d=m.pick;m=function(){function a(a,b,d){this.addControlPoints=c.addControlPoints;this.attr=c.attr;this.attrsFromOptions=c.attrsFromOptions;this.destroy=c.destroy;this.getPointsOptions=c.getPointsOptions;this.init=c.init;this.linkPoints=c.linkPoints;this.point=c.point;this.rotate=c.rotate;this.scale=c.scale;this.setControlPointsVisibility=c.setControlPointsVisibility;this.shouldBeDrawn=c.shouldBeDrawn;this.transform=c.transform;
|
|
51
|
+
this.transformPoint=c.transformPoint;this.translateShape=c.translateShape;this.update=c.update;this.init(a,b,d);this.collection="labels"}a.alignedPosition=function(a,b){var d=a.align,p=a.verticalAlign,f=(b.x||0)+(a.x||0),h=(b.y||0)+(a.y||0),e,c;"right"===d?e=1:"center"===d&&(e=2);e&&(f+=(b.width-(a.width||0))/e);"bottom"===p?c=1:"middle"===p&&(c=2);c&&(h+=(b.height-(a.height||0))/c);return{x:Math.round(f),y:Math.round(h)}};a.justifiedOptions=function(a,b,d,h){var f=d.align,p=d.verticalAlign,e=b.box?
|
|
52
|
+
0:b.padding||0,c=b.getBBox();b={align:f,verticalAlign:p,x:d.x,y:d.y,width:b.width,height:b.height};d=(h.x||0)-a.plotLeft;h=(h.y||0)-a.plotTop;var r=d+e;0>r&&("right"===f?b.align="left":b.x=(b.x||0)-r);r=d+c.width-e;r>a.plotWidth&&("left"===f?b.align="right":b.x=(b.x||0)+a.plotWidth-r);r=h+e;0>r&&("bottom"===p?b.verticalAlign="top":b.y=(b.y||0)-r);r=h+c.height-e;r>a.plotHeight&&("top"===p?b.verticalAlign="bottom":b.y=(b.y||0)+a.plotHeight-r);return b};a.prototype.translatePoint=function(a,b){c.translatePoint.call(this,
|
|
53
|
+
a,b,0)};a.prototype.translate=function(a,b){var d=this.annotation.chart,f=this.annotation.userOptions,p=d.annotations.indexOf(this.annotation);p=d.options.annotations[p];d.inverted&&(d=a,a=b,b=d);this.options.x+=a;this.options.y+=b;p[this.collection][this.index].x=this.options.x;p[this.collection][this.index].y=this.options.y;f[this.collection][this.index].x=this.options.x;f[this.collection][this.index].y=this.options.y};a.prototype.render=function(b){var d=this.options,f=this.attrsFromOptions(d),
|
|
54
|
+
h=d.style;this.graphic=this.annotation.chart.renderer.label("",0,-9999,d.shape,null,null,d.useHTML,null,"annotation-label").attr(f).add(b);this.annotation.chart.styledMode||("contrast"===h.color&&(h.color=this.annotation.chart.renderer.getContrast(-1<a.shapesWithoutBackground.indexOf(d.shape)?"#FFFFFF":d.backgroundColor)),this.graphic.css(d.style).shadow(d.shadow));d.className&&this.graphic.addClass(d.className);this.graphic.labelrank=d.labelrank;c.render.call(this)};a.prototype.redraw=function(a){var b=
|
|
55
|
+
this.options,d=this.text||b.format||b.text,f=this.graphic,h=this.points[0];f.attr({text:d?e(d,h.getLabelConfig(),this.annotation.chart):b.formatter.call(h,this)});b=this.anchor(h);(d=this.position(b))?(f.alignAttr=d,d.anchorX=b.absolutePosition.x,d.anchorY=b.absolutePosition.y,f[a?"animate":"attr"](d)):f.attr({x:0,y:-9999});f.placed=!!d;c.redraw.call(this,a)};a.prototype.anchor=function(a){var b=c.anchor.apply(this,arguments),d=this.options.x||0,f=this.options.y||0;b.absolutePosition.x-=d;b.absolutePosition.y-=
|
|
56
|
+
f;b.relativePosition.x-=d;b.relativePosition.y-=f;return b};a.prototype.position=function(f){var h=this.graphic,e=this.annotation.chart,c=this.points[0],g=this.options,m=f.absolutePosition,k=f.relativePosition,l=c.series.visible&&n.prototype.isInsidePlot.call(c);f=h.width;f=void 0===f?0:f;var z=h.height;z=void 0===z?0:z;if(l){if(g.distance)var u=q.prototype.getPosition.call({chart:e,distance:d(g.distance,16)},f,z,{plotX:k.x,plotY:k.y,negative:c.negative,ttBelow:c.ttBelow,h:k.height||k.width});else g.positioner?
|
|
57
|
+
u=g.positioner.call(this):(c={x:m.x,y:m.y,width:0,height:0},u=a.alignedPosition(b(g,{width:f,height:z}),c),"justify"===this.options.overflow&&(u=a.alignedPosition(a.justifiedOptions(e,h,g,u),c)));g.crop&&(h=u.x-e.plotLeft,g=u.y-e.plotTop,l=e.isInsidePlot(h,g)&&e.isInsidePlot(h+f,g+z))}return l?u:null};a.attrsMap={backgroundColor:"fill",borderColor:"stroke",borderWidth:"stroke-width",zIndex:"zIndex",borderRadius:"r",padding:"padding"};a.shapesWithoutBackground=["connector"];return a}();k.connector=
|
|
58
|
+
function(b,d,p,e,c){var f=c&&c.anchorX;c=c&&c.anchorY;var h=p/2;if(a(f)&&a(c)){var r=[["M",f,c]];var g=d-c;0>g&&(g=-e-g);g<p&&(h=f<b+p/2?g:p-g);c>d+e?r.push(["L",b+h,d+e]):c<d?r.push(["L",b+h,d]):f<b?r.push(["L",b,d+e/2]):f>b+p&&r.push(["L",b+p,d+e/2])}return r||[]};return m});v(c,"Extensions/Annotations/Controllables/ControllableImage.js",[c["Extensions/Annotations/Controllables/ControllableLabel.js"],c["Extensions/Annotations/Mixins/ControllableMixin.js"]],function(c,k){return function(){function g(c,
|
|
59
|
+
g,m){this.addControlPoints=k.addControlPoints;this.anchor=k.anchor;this.attr=k.attr;this.attrsFromOptions=k.attrsFromOptions;this.destroy=k.destroy;this.getPointsOptions=k.getPointsOptions;this.init=k.init;this.linkPoints=k.linkPoints;this.point=k.point;this.rotate=k.rotate;this.scale=k.scale;this.setControlPointsVisibility=k.setControlPointsVisibility;this.shouldBeDrawn=k.shouldBeDrawn;this.transform=k.transform;this.transformPoint=k.transformPoint;this.translatePoint=k.translatePoint;this.translateShape=
|
|
60
|
+
k.translateShape;this.update=k.update;this.type="image";this.translate=k.translateShape;this.init(c,g,m);this.collection="shapes"}g.prototype.render=function(c){var g=this.attrsFromOptions(this.options),m=this.options;this.graphic=this.annotation.chart.renderer.image(m.src,0,-9E9,m.width,m.height).attr(g).add(c);this.graphic.width=m.width;this.graphic.height=m.height;k.render.call(this)};g.prototype.redraw=function(g){var l=this.anchor(this.points[0]);if(l=c.prototype.position.call(this,l))this.graphic[g?
|
|
61
|
+
"animate":"attr"]({x:l.x,y:l.y});else this.graphic.attr({x:0,y:-9E9});this.graphic.placed=!!l;k.redraw.call(this,g)};g.attrsMap={width:"width",height:"height",zIndex:"zIndex"};return g}()});v(c,"Extensions/Annotations/Annotations.js",[c["Core/Animation/AnimationUtilities.js"],c["Core/Chart/Chart.js"],c["Extensions/Annotations/Mixins/ControllableMixin.js"],c["Extensions/Annotations/Controllables/ControllableRect.js"],c["Extensions/Annotations/Controllables/ControllableCircle.js"],c["Extensions/Annotations/Controllables/ControllableEllipse.js"],
|
|
62
|
+
c["Extensions/Annotations/Controllables/ControllablePath.js"],c["Extensions/Annotations/Controllables/ControllableImage.js"],c["Extensions/Annotations/Controllables/ControllableLabel.js"],c["Extensions/Annotations/ControlPoint.js"],c["Extensions/Annotations/Mixins/EventEmitterMixin.js"],c["Core/Globals.js"],c["Extensions/Annotations/MockPoint.js"],c["Core/Pointer.js"],c["Core/Utilities.js"]],function(c,k,n,l,q,m,e,b,a,d,h,f,p,r,y){var g=c.getDeferredAnimation;c=k.prototype;var E=y.addEvent,D=y.defined,
|
|
63
|
+
A=y.destroyObjectProperties,z=y.erase,u=y.extend,x=y.find,C=y.fireEvent,t=y.merge,w=y.pick,G=y.splat;y=y.wrap;var F=function(){function f(a,b){this.annotation=void 0;this.coll="annotations";this.shapesGroup=this.labelsGroup=this.labelCollector=this.group=this.graphic=this.animationConfig=this.collection=void 0;this.chart=a;this.points=[];this.controlPoints=[];this.coll="annotations";this.labels=[];this.shapes=[];this.options=t(this.defaultOptions,b);this.userOptions=b;b=this.getLabelsAndShapesOptions(this.options,
|
|
64
|
+
b);this.options.labels=b.labels;this.options.shapes=b.shapes;this.init(a,this.options)}f.prototype.init=function(){var a=this.chart,b=this.options.animation;this.linkPoints();this.addControlPoints();this.addShapes();this.addLabels();this.setLabelCollector();this.animationConfig=g(a,b)};f.prototype.getLabelsAndShapesOptions=function(a,b){var d={};["labels","shapes"].forEach(function(f){a[f]&&(d[f]=b[f]?G(b[f]).map(function(b,d){return t(a[f][d],b)}):a[f])});return d};f.prototype.addShapes=function(){(this.options.shapes||
|
|
65
|
+
[]).forEach(function(a,b){a=this.initShape(a,b);t(!0,this.options.shapes[b],a.options)},this)};f.prototype.addLabels=function(){(this.options.labels||[]).forEach(function(a,b){a=this.initLabel(a,b);t(!0,this.options.labels[b],a.options)},this)};f.prototype.addClipPaths=function(){this.setClipAxes();this.clipXAxis&&this.clipYAxis&&this.options.crop&&(this.clipRect=this.chart.renderer.clipRect(this.getClipBox()))};f.prototype.setClipAxes=function(){var a=this.chart.xAxis,b=this.chart.yAxis,d=(this.options.labels||
|
|
66
|
+
[]).concat(this.options.shapes||[]).reduce(function(d,f){f=f&&(f.point||f.points&&f.points[0]);return[a[f&&f.xAxis]||d[0],b[f&&f.yAxis]||d[1]]},[]);this.clipXAxis=d[0];this.clipYAxis=d[1]};f.prototype.getClipBox=function(){if(this.clipXAxis&&this.clipYAxis)return{x:this.clipXAxis.left,y:this.clipYAxis.top,width:this.clipXAxis.width,height:this.clipYAxis.height}};f.prototype.setLabelCollector=function(){var a=this;a.labelCollector=function(){return a.labels.reduce(function(a,b){b.options.allowOverlap||
|
|
67
|
+
a.push(b.graphic);return a},[])};a.chart.labelCollectors.push(a.labelCollector)};f.prototype.setOptions=function(a){this.options=t(this.defaultOptions,a)};f.prototype.redraw=function(a){this.linkPoints();this.graphic||this.render();this.clipRect&&this.clipRect.animate(this.getClipBox());this.redrawItems(this.shapes,a);this.redrawItems(this.labels,a);n.redraw.call(this,a)};f.prototype.redrawItems=function(a,b){for(var d=a.length;d--;)this.redrawItem(a[d],b)};f.prototype.renderItems=function(a){for(var b=
|
|
68
|
+
a.length;b--;)this.renderItem(a[b])};f.prototype.render=function(){var a=this.chart.renderer;this.graphic=a.g("annotation").attr({opacity:0,zIndex:this.options.zIndex,visibility:this.options.visible?"visible":"hidden"}).add();this.shapesGroup=a.g("annotation-shapes").add(this.graphic);this.options.crop&&this.shapesGroup.clip(this.chart.plotBoxClip);this.labelsGroup=a.g("annotation-labels").attr({translateX:0,translateY:0}).add(this.graphic);this.addClipPaths();this.clipRect&&this.graphic.clip(this.clipRect);
|
|
69
|
+
this.renderItems(this.shapes);this.renderItems(this.labels);this.addEvents();n.render.call(this)};f.prototype.setVisibility=function(a){var b=this.options,d=this.chart.navigationBindings;a=w(a,!b.visible);this.graphic.attr("visibility",a?"visible":"hidden");a||(this.setControlPointsVisibility(!1),d.activeAnnotation===this&&d.popup&&"annotation-toolbar"===d.popup.formType&&C(d,"closePopup"));b.visible=a};f.prototype.setControlPointsVisibility=function(a){var b=function(b){b.setControlPointsVisibility(a)};
|
|
70
|
+
n.setControlPointsVisibility.call(this,a);this.shapes.forEach(b);this.labels.forEach(b)};f.prototype.destroy=function(){var a=this.chart,b=function(a){a.destroy()};this.labels.forEach(b);this.shapes.forEach(b);this.clipYAxis=this.clipXAxis=null;z(a.labelCollectors,this.labelCollector);h.destroy.call(this);n.destroy.call(this);A(this,a)};f.prototype.remove=function(){return this.chart.removeAnnotation(this)};f.prototype.update=function(a,b){var d=this.chart,f=this.getLabelsAndShapesOptions(this.userOptions,
|
|
71
|
+
a),h=d.annotations.indexOf(this);a=t(!0,this.userOptions,a);a.labels=f.labels;a.shapes=f.shapes;this.destroy();this.constructor(d,a);d.options.annotations[h]=a;this.isUpdating=!0;w(b,!0)&&d.redraw();C(this,"afterUpdate");this.isUpdating=!1};f.prototype.initShape=function(a,b){a=t(this.options.shapeOptions,{controlPointOptions:this.options.controlPointOptions},a);b=new f.shapesMap[a.type](this,a,b);b.itemType="shape";this.shapes.push(b);return b};f.prototype.initLabel=function(b,d){b=t(this.options.labelOptions,
|
|
72
|
+
{controlPointOptions:this.options.controlPointOptions},b);d=new a(this,b,d);d.itemType="label";this.labels.push(d);return d};f.prototype.redrawItem=function(a,b){a.linkPoints();a.shouldBeDrawn()?(a.graphic||this.renderItem(a),a.redraw(w(b,!0)&&a.graphic.placed),a.points.length&&this.adjustVisibility(a)):this.destroyItem(a)};f.prototype.adjustVisibility=function(a){var b=!1,d=a.graphic;a.points.forEach(function(a){!1!==a.series.visible&&!1!==a.visible&&(b=!0)});b?"hidden"===d.visibility&&d.show():
|
|
73
|
+
d.hide()};f.prototype.destroyItem=function(a){z(this[a.itemType+"s"],a);a.destroy()};f.prototype.renderItem=function(a){a.render("label"===a.itemType?this.labelsGroup:this.shapesGroup)};f.ControlPoint=d;f.MockPoint=p;f.shapesMap={rect:l,circle:q,ellipse:m,path:e,image:b};f.types={};return f}();t(!0,F.prototype,n,h,t(F.prototype,{nonDOMEvents:["add","afterUpdate","drag","remove"],defaultOptions:{visible:!0,animation:{},crop:!0,draggable:"xy",labelOptions:{align:"center",allowOverlap:!1,backgroundColor:"rgba(0, 0, 0, 0.75)",
|
|
74
|
+
borderColor:"#000000",borderRadius:3,borderWidth:1,className:"highcharts-no-tooltip",crop:!1,formatter:function(){return D(this.y)?this.y:"Annotation label"},includeInDataExport:!0,overflow:"justify",padding:5,shadow:!1,shape:"callout",style:{fontSize:"11px",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:{symbol:"circle",width:10,height:10,style:{cursor:"pointer",
|
|
75
|
+
fill:"#ffffff",stroke:"#000000","stroke-width":2},visible:!1,events:{}},events:{},zIndex:6}}));f.extendAnnotation=function(a,b,d,f){b=b||F;u(a.prototype,t(b.prototype,d));a.prototype.defaultOptions=t(a.prototype.defaultOptions,f||{})};u(c,{initAnnotation:function(a){a=new (F.types[a.type]||F)(this,a);this.annotations.push(a);return a},addAnnotation:function(a,b){a=this.initAnnotation(a);this.options.annotations.push(a.options);w(b,!0)&&(a.redraw(),a.graphic.attr({opacity:1}));return a},removeAnnotation:function(a){var b=
|
|
76
|
+
this.annotations,d="annotations"===a.coll?a:x(b,function(b){return b.options.id===a});d&&(C(d,"remove"),z(this.options.annotations,d.options),z(b,d),d.destroy())},drawAnnotations:function(){this.plotBoxClip.attr(this.plotBox);this.annotations.forEach(function(a){a.redraw();a.graphic.animate({opacity:1},a.animationConfig)})}});c.collectionsWithUpdate.push("annotations");c.collectionsWithInit.annotations=[c.addAnnotation];E(k,"afterInit",function(){this.annotations=[];this.options.annotations||(this.options.annotations=
|
|
77
|
+
[])});c.callbacks.push(function(a){a.plotBoxClip=this.renderer.clipRect(this.plotBox);a.controlPointsGroup=a.renderer.g("control-points").attr({zIndex:99}).clip(a.plotBoxClip).add();a.options.annotations.forEach(function(b,d){if(!a.annotations.some(function(a){return a.options===b})){var f=a.initAnnotation(b);a.options.annotations[d]=f.options}});a.drawAnnotations();E(a,"redraw",a.drawAnnotations);E(a,"destroy",function(){a.plotBoxClip.destroy();a.controlPointsGroup.destroy()});E(a,"exportData",function(b){var d=
|
|
78
|
+
(this.options.exporting&&this.options.exporting.csv||{}).columnHeaderFormatter,f=!b.dataRows[1].xValues,h=a.options.lang&&a.options.lang.exportData&&a.options.lang.exportData.annotationHeader,c=function(a){if(d){var b=d(a);if(!1!==b)return b}b=h+" "+a;return f?{columnTitle:b,topLevelColumnTitle:b}:b},e=b.dataRows[0].length,p=a.options.exporting&&a.options.exporting.csv&&a.options.exporting.csv.annotations&&a.options.exporting.csv.annotations.itemDelimiter,r=a.options.exporting&&a.options.exporting.csv&&
|
|
79
|
+
a.options.exporting.csv.annotations&&a.options.exporting.csv.annotations.join;a.annotations.forEach(function(a){a.options.labelOptions.includeInDataExport&&a.labels.forEach(function(a){if(a.options.text){var d=a.options.text;a.points.forEach(function(a){var f=a.x,h=a.series.xAxis?a.series.xAxis.options.index:-1,c=!1;if(-1===h){a=b.dataRows[0].length;for(var t=Array(a),w=0;w<a;++w)t[w]="";t.push(d);t.xValues=[];t.xValues[h]=f;b.dataRows.push(t);c=!0}c||b.dataRows.forEach(function(a,b){!c&&a.xValues&&
|
|
80
|
+
void 0!==h&&f===a.xValues[h]&&(r&&a.length>e?a[a.length-1]+=p+d:a.push(d),c=!0)});if(!c){a=b.dataRows[0].length;t=Array(a);for(w=0;w<a;++w)t[w]="";t[0]=f;t.push(d);t.xValues=[];void 0!==h&&(t.xValues[h]=f);b.dataRows.push(t)}})}})});var t=0;b.dataRows.forEach(function(a){t=Math.max(t,a.length)});for(var g=t-b.dataRows[0].length,w=0;w<g;w++){var G=c(w+1);f?(b.dataRows[0].push(G.topLevelColumnTitle),b.dataRows[1].push(G.columnTitle)):b.dataRows[0].push(G)}})});y(r.prototype,"onContainerMouseDown",function(a){this.chart.hasDraggedAnnotation||
|
|
81
|
+
a.apply(this,Array.prototype.slice.call(arguments,1))});f.Annotation=F;"";return F});v(c,"Extensions/Annotations/Types/BasicAnnotation.js",[c["Extensions/Annotations/Annotations.js"],c["Extensions/Annotations/MockPoint.js"],c["Core/Utilities.js"]],function(c,k,n){var g=this&&this.__extends||function(){var c=function(e,b){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return c(e,b)};return function(e,
|
|
82
|
+
b){function a(){this.constructor=e}c(e,b);e.prototype=null===b?Object.create(b):(a.prototype=b.prototype,new a)}}();n=n.merge;var q=function(m){function e(b,a){return m.call(this,b,a)||this}g(e,m);e.prototype.addControlPoints=function(){var b=this.options,a=e.basicControlPoints,d=this.basicType;(b.labels||b.shapes).forEach(function(b){b.controlPoints=a[d]})};e.prototype.init=function(){var b=this.options;b.shapes?(delete b.labelOptions,this.basicType=b.shapes[0].type?b.shapes[0].type:"rectangle"):
|
|
83
|
+
(delete b.shapes,this.basicType="label");c.prototype.init.apply(this,arguments)};e.basicControlPoints={label:[{symbol:"triangle-down",positioner:function(b){if(!b.graphic.placed)return{x:0,y:-9E7};b=k.pointToPixels(b.points[0]);return{x:b.x-this.graphic.width/2,y:b.y-this.graphic.height/2}},events:{drag:function(b,a){b=this.mouseMoveToTranslation(b);a.translatePoint(b.x,b.y);a.annotation.userOptions.labels[0].point=a.options.point;a.redraw(!1)}}},{symbol:"square",positioner:function(b){return b.graphic.placed?
|
|
84
|
+
{x:b.graphic.alignAttr.x-this.graphic.width/2,y:b.graphic.alignAttr.y-this.graphic.height/2}:{x:0,y:-9E7}},events:{drag:function(b,a){b=this.mouseMoveToTranslation(b);a.translate(b.x,b.y);a.annotation.userOptions.labels[0].point=a.options.point;a.redraw(!1)}}}],rectangle:[{positioner:function(b){b=k.pointToPixels(b.points[2]);return{x:b.x-4,y:b.y-4}},events:{drag:function(b,a){var d=a.annotation,c=this.chart.pointer.getCoordinates(b);b=c.xAxis[0].value;c=c.yAxis[0].value;var f=a.options.points;f[1].x=
|
|
85
|
+
b;f[2].x=b;f[2].y=c;f[3].y=c;d.userOptions.shapes[0].points=a.options.points;d.redraw(!1)}}}],circle:[{positioner:function(b){var a=k.pointToPixels(b.points[0]);b=b.options.r;return{x:a.x+b*Math.cos(Math.PI/4)-this.graphic.width/2,y:a.y+b*Math.sin(Math.PI/4)-this.graphic.height/2}},events:{drag:function(b,a){var d=a.annotation;b=this.mouseMoveToTranslation(b);a.setRadius(Math.max(a.options.r+b.y/Math.sin(Math.PI/4),5));d.userOptions.shapes[0].r=a.options.r;d.userOptions.shapes[0].point=a.options.point;
|
|
86
|
+
a.redraw(!1)}}}],ellipse:[{positioner:function(b){b=b.getAbsolutePosition(b.points[0]);return{x:b.x-this.graphic.width/2,y:b.y-this.graphic.height/2}},events:{drag:function(b,a){var d=a.getAbsolutePosition(a.points[0]);a.translatePoint(b.chartX-d.x,b.chartY-d.y,0);a.redraw(!1)}}},{positioner:function(b){b=b.getAbsolutePosition(b.points[1]);return{x:b.x-this.graphic.width/2,y:b.y-this.graphic.height/2}},events:{drag:function(b,a){var d=a.getAbsolutePosition(a.points[1]);a.translatePoint(b.chartX-d.x,
|
|
87
|
+
b.chartY-d.y,1);a.redraw(!1)}}},{positioner:function(b){var a=b.getAbsolutePosition(b.points[0]),d=b.getAbsolutePosition(b.points[1]);b=b.getAttrs(a,d);return{x:b.cx-this.graphic.width/2+b.ry*Math.sin(b.angle*Math.PI/180),y:b.cy-this.graphic.height/2-b.ry*Math.cos(b.angle*Math.PI/180)}},events:{drag:function(b,a){var d=a.getAbsolutePosition(a.points[0]),c=a.getAbsolutePosition(a.points[1]);b=a.getDistanceFromLine(d,c,b.chartX,b.chartY);d=a.getYAxis();b=Math.abs(d.toValue(0)-d.toValue(b));a.setYRadius(b);
|
|
88
|
+
a.redraw(!1)}}}]};return e}(c);q.prototype.defaultOptions=n(c.prototype.defaultOptions,{});return c.types.basicAnnotation=q});v(c,"Extensions/Annotations/Types/CrookedLine.js",[c["Extensions/Annotations/Annotations.js"],c["Extensions/Annotations/ControlPoint.js"],c["Extensions/Annotations/MockPoint.js"],c["Core/Utilities.js"]],function(c,k,n,l){var g=this&&this.__extends||function(){var c=function(b,a){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,
|
|
89
|
+
b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return c(b,a)};return function(b,a){function d(){this.constructor=b}c(b,a);b.prototype=null===a?Object.create(a):(d.prototype=a.prototype,new d)}}(),m=l.merge;l=function(c){function b(a,b){return c.call(this,a,b)||this}g(b,c);b.prototype.setClipAxes=function(){this.clipXAxis=this.chart.xAxis[this.options.typeOptions.xAxis];this.clipYAxis=this.chart.yAxis[this.options.typeOptions.yAxis]};b.prototype.getPointsOptions=function(){var a=this.options.typeOptions;
|
|
90
|
+
return(a.points||[]).map(function(b){b.xAxis=a.xAxis;b.yAxis=a.yAxis;return b})};b.prototype.getControlPointsOptions=function(){return this.getPointsOptions()};b.prototype.addControlPoints=function(){this.getControlPointsOptions().forEach(function(a,b){b=new k(this.chart,this,m(this.options.controlPointOptions,a.controlPoint),b);this.controlPoints.push(b);a.controlPoint=b.options},this)};b.prototype.addShapes=function(){var a=this.options.typeOptions,b=this.initShape(m(a.line,{type:"path",points:this.points.map(function(a,
|
|
91
|
+
b){return function(a){return a.annotation.points[b]}})}),0);a.line=b.options};return b}(c);l.prototype.defaultOptions=m(c.prototype.defaultOptions,{typeOptions:{xAxis:0,yAxis:0,line:{fill:"none"}},controlPointOptions:{positioner:function(c){var b=this.graphic;c=n.pointToPixels(c.points[this.index]);return{x:c.x-b.width/2,y:c.y-b.height/2}},events:{drag:function(c,b){b.chart.isInsidePlot(c.chartX-b.chart.plotLeft,c.chartY-b.chart.plotTop,{visiblePlotOnly:!0})&&(c=this.mouseMoveToTranslation(c),b.translatePoint(c.x,
|
|
92
|
+
c.y,this.index),b.options.typeOptions.points[this.index].x=b.points[this.index].x,b.options.typeOptions.points[this.index].y=b.points[this.index].y,b.redraw(!1))}}}});return c.types.crookedLine=l});v(c,"Extensions/Annotations/Types/ElliottWave.js",[c["Extensions/Annotations/Annotations.js"],c["Extensions/Annotations/Types/CrookedLine.js"],c["Core/Utilities.js"]],function(c,k,n){var g=this&&this.__extends||function(){var c=function(e,b){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,
|
|
93
|
+
b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return c(e,b)};return function(e,b){function a(){this.constructor=e}c(e,b);e.prototype=null===b?Object.create(b):(a.prototype=b.prototype,new a)}}(),q=n.merge;n=function(c){function e(b,a){return c.call(this,b,a)||this}g(e,c);e.prototype.addLabels=function(){this.getPointsOptions().forEach(function(b,a){var d=this.initLabel(q(b.label,{text:this.options.typeOptions.labels[a],point:function(b){return b.annotation.points[a]}}),
|
|
94
|
+
!1);b.label=d.options},this)};return e}(k);n.prototype.defaultOptions=q(k.prototype.defaultOptions,{typeOptions:{labels:"(0) (A) (B) (C) (D) (E)".split(" "),line:{strokeWidth:1}},labelOptions:{align:"center",allowOverlap:!0,crop:!0,overflow:"none",type:"rect",backgroundColor:"none",borderWidth:0,y:-5}});return c.types.elliottWave=n});v(c,"Extensions/Annotations/Types/Tunnel.js",[c["Extensions/Annotations/Annotations.js"],c["Extensions/Annotations/ControlPoint.js"],c["Extensions/Annotations/Types/CrookedLine.js"],
|
|
95
|
+
c["Extensions/Annotations/MockPoint.js"],c["Core/Utilities.js"]],function(c,k,n,l,q){var g=this&&this.__extends||function(){var b=function(a,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(a,d)};return function(a,d){function c(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)}}(),e=q.merge;q=function(b){function a(a,c){return b.call(this,
|
|
96
|
+
a,c)||this}g(a,b);a.prototype.getPointsOptions=function(){var a=n.prototype.getPointsOptions.call(this);a[2]=this.heightPointOptions(a[1]);a[3]=this.heightPointOptions(a[0]);return a};a.prototype.getControlPointsOptions=function(){return this.getPointsOptions().slice(0,2)};a.prototype.heightPointOptions=function(a){a=e(a);a.y+=this.options.typeOptions.height;return a};a.prototype.addControlPoints=function(){n.prototype.addControlPoints.call(this);var a=this.options,b=a.typeOptions;a=new k(this.chart,
|
|
97
|
+
this,e(a.controlPointOptions,b.heightControlPoint),2);this.controlPoints.push(a);b.heightControlPoint=a.options};a.prototype.addShapes=function(){this.addLine();this.addBackground()};a.prototype.addLine=function(){var a=this.initShape(e(this.options.typeOptions.line,{type:"path",points:[this.points[0],this.points[1],function(a){a=l.pointToOptions(a.annotation.points[2]);a.command="M";return a},this.points[3]]}),0);this.options.typeOptions.line=a.options};a.prototype.addBackground=function(){var a=
|
|
98
|
+
this.initShape(e(this.options.typeOptions.background,{type:"path",points:this.points.slice()}),1);this.options.typeOptions.background=a.options};a.prototype.translateSide=function(a,b,f){f=Number(f);var d=0===f?3:2;this.translatePoint(a,b,f);this.translatePoint(a,b,d)};a.prototype.translateHeight=function(a){this.translatePoint(0,a,2);this.translatePoint(0,a,3);this.options.typeOptions.height=this.points[3].y-this.points[0].y};return a}(n);q.prototype.defaultOptions=e(n.prototype.defaultOptions,{typeOptions:{background:{fill:"rgba(130, 170, 255, 0.4)",
|
|
99
|
+
strokeWidth:0},line:{strokeWidth:1},height:-2,heightControlPoint:{positioner:function(b){var a=l.pointToPixels(b.points[2]);b=l.pointToPixels(b.points[3]);var d=(a.x+b.x)/2;return{x:d-this.graphic.width/2,y:(b.y-a.y)/(b.x-a.x)*(d-a.x)+a.y-this.graphic.height/2}},events:{drag:function(b,a){a.chart.isInsidePlot(b.chartX-a.chart.plotLeft,b.chartY-a.chart.plotTop,{visiblePlotOnly:!0})&&(a.translateHeight(this.mouseMoveToTranslation(b).y),a.redraw(!1))}}}},controlPointOptions:{events:{drag:function(b,
|
|
100
|
+
a){a.chart.isInsidePlot(b.chartX-a.chart.plotLeft,b.chartY-a.chart.plotTop,{visiblePlotOnly:!0})&&(b=this.mouseMoveToTranslation(b),a.translateSide(b.x,b.y,!!this.index),a.redraw(!1))}}}});return c.types.tunnel=q});v(c,"Extensions/Annotations/Types/InfinityLine.js",[c["Extensions/Annotations/Annotations.js"],c["Extensions/Annotations/Types/CrookedLine.js"],c["Extensions/Annotations/MockPoint.js"],c["Core/Utilities.js"]],function(c,k,n,l){var g=this&&this.__extends||function(){var c=function(b,a){c=
|
|
101
|
+
Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return c(b,a)};return function(b,a){function d(){this.constructor=b}c(b,a);b.prototype=null===a?Object.create(a):(d.prototype=a.prototype,new d)}}(),m=l.merge;l=function(c){function b(a,b){return c.call(this,a,b)||this}g(b,c);b.edgePoint=function(a,d){return function(c){c=c.annotation;var f=c.points,p=c.options.typeOptions.type;if("horizontalLine"===p||
|
|
102
|
+
"verticalLine"===p)f=[f[0],new n(c.chart,f[0].target,{x:f[0].x+ +("horizontalLine"===p),y:f[0].y+ +("verticalLine"===p),xAxis:f[0].options.xAxis,yAxis:f[0].options.yAxis})];return b.findEdgePoint(f[a],f[d])}};b.findEdgeCoordinate=function(a,b,c,f){var d="x"===c?"y":"x";return(b[c]-a[c])*(f-a[d])/(b[d]-a[d])+a[c]};b.findEdgePoint=function(a,d){var c=a.series.chart,f=a.series.xAxis,p=d.series.yAxis,e=n.pointToPixels(a);d=n.pointToPixels(d);var g=d.x-e.x,k=d.y-e.y,l=f.left,m=l+f.width;f=p.top;p=f+p.height;
|
|
103
|
+
m=0>g?l:m;var q=0>k?f:p;l={x:0===g?e.x:m,y:0===k?e.y:q};0!==g&&0!==k&&(g=b.findEdgeCoordinate(e,d,"y",m),e=b.findEdgeCoordinate(e,d,"x",q),g>=f&&g<=p?(l.x=m,l.y=g):(l.x=e,l.y=q));l.x-=c.plotLeft;l.y-=c.plotTop;a.series.chart.inverted&&(a=l.x,l.x=l.y,l.y=a);return l};b.prototype.addShapes=function(){var a=this.options.typeOptions,d=[this.points[0],b.endEdgePoint];a.type.match(/line/gi)&&(d[0]=b.startEdgePoint);d=this.initShape(m(a.line,{type:"path",points:d}),0);a.line=d.options};b.endEdgePoint=b.edgePoint(0,
|
|
104
|
+
1);b.startEdgePoint=b.edgePoint(1,0);return b}(k);l.prototype.defaultOptions=m(k.prototype.defaultOptions,{});c.types.infinityLine=l;"";return l});v(c,"Extensions/Annotations/Types/TimeCycles.js",[c["Extensions/Annotations/Annotations.js"],c["Extensions/Annotations/Types/CrookedLine.js"],c["Extensions/Annotations/ControlPoint.js"],c["Core/Utilities.js"]],function(c,k,n,l){function g(a,b,c,e){for(var d=[],f=1;f<=b;f++)d.push(["A",a/2,a/2,0,1,1,c+f*a,e]);return d}var m=this&&this.__extends||function(){var a=
|
|
105
|
+
function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function c(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)}}(),e=l.merge,b=l.isNumber,a=l.defined;l=function(d){function c(){return null!==d&&d.apply(this,arguments)||this}m(c,d);c.prototype.init=function(b,c,e){a(c.yAxis)&&c.points.forEach(function(a){a.yAxis=
|
|
106
|
+
c.yAxis});a(c.xAxis)&&c.points.forEach(function(a){a.xAxis=c.xAxis});d.prototype.init.call(this,b,c,e)};c.prototype.setPath=function(){this.shapes[0].options.d=this.getPath()};c.prototype.getPath=function(){return[["M",this.startX,this.y]].concat(g(this.pixelInterval,this.numberOfCircles,this.startX,this.y))};c.prototype.addShapes=function(){var a=this.options.typeOptions;this.setPathProperties();var b=this.initShape(e(a.line,{type:"path",d:this.getPath(),points:this.options.points}),0);a.line=b.options};
|
|
107
|
+
c.prototype.addControlPoints=function(){var a=this,b=this.options,d=b.typeOptions;b.controlPointOptions.style.cursor=this.chart.inverted?"ns-resize":"ew-resize";d.controlPointOptions.forEach(function(d){d=e(b.controlPointOptions,d);d=new n(a.chart,a,d,0);a.controlPoints.push(d)})};c.prototype.setPathProperties=function(){var a=this.options.typeOptions,d=a.points;if(d){var c=d[0],e=this.chart.xAxis[a.xAxis||0],h=this.chart.yAxis[a.yAxis||0];a=c.x;var g=c.y;c=d[1].x;a&&c&&(d=b(g)?h.toPixels(g):h.top+
|
|
108
|
+
h.height,a=b(a)?e.toPixels(a):e.left,h=b(c)?e.toPixels(c):e.left+30,h=Math.round(Math.max(Math.abs(h-a),2)),c=Math.floor(e.len/h)+2,this.startX=a-(Math.floor((a-e.left)/h)+1)*h,this.y=d,this.pixelInterval=h,this.numberOfCircles=c)}};c.prototype.redraw=function(a){this.setPathProperties();this.setPath();d.prototype.redraw.call(this,a)};return c}(k);l.prototype.defaultOptions=e(k.prototype.defaultOptions,{typeOptions:{controlPointOptions:[{positioner:function(a){return{x:a.anchor(a.points[0]).absolutePosition.x-
|
|
109
|
+
this.graphic.width/2,y:a.y-this.graphic.height}},events:{drag:function(a,b){var d=b.anchor(b.points[0]).absolutePosition;b.translatePoint(a.chartX-d.x,0,0);b.redraw(!1)}}},{positioner:function(a){return{x:a.anchor(a.points[1]).absolutePosition.x-this.graphic.width/2,y:a.y-this.graphic.height}},events:{drag:function(a,b){var d=b.anchor(b.points[1]).absolutePosition;b.translatePoint(a.chartX-d.x,0,1);b.redraw(!1)}}}]}});c.types.timeCycles=l;"";return l});v(c,"Extensions/Annotations/Types/Fibonacci.js",
|
|
110
|
+
[c["Extensions/Annotations/Annotations.js"],c["Extensions/Annotations/MockPoint.js"],c["Extensions/Annotations/Types/Tunnel.js"],c["Core/Utilities.js"]],function(c,k,n,l){var g=this&&this.__extends||function(){var b=function(a,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(a,d)};return function(a,d){function c(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(c.prototype=
|
|
111
|
+
d.prototype,new c)}}(),m=l.merge,e=function(b,a){return function(){var d=this.annotation;if(!d.startRetracements||!d.endRetracements)return[];var c=this.anchor(d.startRetracements[b]).absolutePosition,f=this.anchor(d.endRetracements[b]).absolutePosition;c=[["M",Math.round(c.x),Math.round(c.y)],["L",Math.round(f.x),Math.round(f.y)]];a&&(f=this.anchor(d.endRetracements[b-1]).absolutePosition,d=this.anchor(d.startRetracements[b-1]).absolutePosition,c.push(["L",Math.round(f.x),Math.round(f.y)],["L",Math.round(d.x),
|
|
112
|
+
Math.round(d.y)]));return c}};l=function(b){function a(a,c){return b.call(this,a,c)||this}g(a,b);a.prototype.linkPoints=function(){b.prototype.linkPoints.call(this);this.linkRetracementsPoints()};a.prototype.linkRetracementsPoints=function(){var b=this.points,c=b[0].y-b[3].y,f=b[1].y-b[2].y,e=b[0].x,g=b[1].x;a.levels.forEach(function(a,d){var p=b[0].y-c*a;a=b[1].y-f*a;this.startRetracements=this.startRetracements||[];this.endRetracements=this.endRetracements||[];this.linkRetracementPoint(d,e,p,this.startRetracements);
|
|
113
|
+
this.linkRetracementPoint(d,g,a,this.endRetracements)},this)};a.prototype.linkRetracementPoint=function(a,b,c,e){var d=e[a],f=this.options.typeOptions;d?(d.options.x=b,d.options.y=c,d.refresh()):e[a]=new k(this.chart,this,{x:b,y:c,xAxis:f.xAxis,yAxis:f.yAxis})};a.prototype.addShapes=function(){a.levels.forEach(function(a,b){var d=this.options.typeOptions;a=d.backgroundColors;var c=d.lineColor;d=d.lineColors;this.initShape({type:"path",d:e(b),stroke:d[b]||c},b);0<b&&this.initShape({type:"path",fill:a[b-
|
|
114
|
+
1],strokeWidth:0,d:e(b,!0)})},this)};a.prototype.addLabels=function(){a.levels.forEach(function(a,b){var d=this.options.typeOptions;a=this.initLabel(m(d.labels[b],{point:function(a){return k.pointToOptions(a.annotation.startRetracements[b])},text:a.toString()}));d.labels[b]=a.options},this)};a.levels=[0,.236,.382,.5,.618,.786,1];return a}(n);l.prototype.defaultOptions=m(n.prototype.defaultOptions,{typeOptions:{height:2,backgroundColors:"rgba(130, 170, 255, 0.4);rgba(139, 191, 216, 0.4);rgba(150, 216, 192, 0.4);rgba(156, 229, 161, 0.4);rgba(162, 241, 130, 0.4);rgba(169, 255, 101, 0.4)".split(";"),
|
|
115
|
+
lineColor:"#999999",lineColors:[],labels:[]},labelOptions:{allowOverlap:!0,align:"right",backgroundColor:"none",borderWidth:0,crop:!1,overflow:"none",shape:"rect",style:{color:"grey"},verticalAlign:"middle",y:0}});return c.types.fibonacci=l});v(c,"Extensions/Annotations/Types/FibonacciTimeZones.js",[c["Extensions/Annotations/Annotations.js"],c["Extensions/Annotations/ControlPoint.js"],c["Extensions/Annotations/Types/CrookedLine.js"],c["Extensions/Annotations/Types/InfinityLine.js"],c["Extensions/Annotations/MockPoint.js"],
|
|
116
|
+
c["Core/Utilities.js"]],function(c,k,n,l,q,m){var e=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),b=m.merge;m=function(a){function d(){return null!==a&&a.apply(this,arguments)||this}e(d,a);d.prototype.edgePoint=
|
|
117
|
+
function(a,b,d){return function(c){var f=c.annotation.chart;c=c.annotation.points;var e=c[0].series.xAxis.toValue(c[0].plotX+(f.inverted?f.plotTop:f.plotLeft)+d*(1<c.length?c[1].plotX-c[0].plotX:0));c=[new q(f,c[0].target,{x:e,y:0,xAxis:c[0].options.xAxis,yAxis:c[0].options.yAxis}),new q(f,c[0].target,{x:e,y:1,xAxis:c[0].options.xAxis,yAxis:c[0].options.yAxis})];return l.findEdgePoint(c[a],c[b])}};d.prototype.addShapes=function(){for(var a=1,d=1,c=0;11>c;c++){var e=c?a:0;e=[this.edgePoint(1,0,e),
|
|
118
|
+
this.edgePoint(0,1,e)];d=a+d;a=d-a;1===c&&(this.secondLineEdgePoints=[e[0],e[1]]);this.initShape(b(this.options.typeOptions.line,{type:"path",points:e}),c)}};d.prototype.addControlPoints=function(){var a=this.options,d=a.typeOptions;a=new k(this.chart,this,b(a.controlPointOptions,d.controlPointOptions),0);this.controlPoints.push(a);d.controlPointOptions=a.options};return d}(n);m.prototype.defaultOptions=b(n.prototype.defaultOptions,{typeOptions:{line:{stroke:"rgba(0, 0, 0, 0.75)",strokeWidth:1,fill:void 0},
|
|
119
|
+
controlPointOptions:{positioner:function(){var a=this.target,b=this.graphic,c=a.secondLineEdgePoints,f={annotation:a};var e=c[0](f).y;var g=c[1](f).y;a=this.chart.plotLeft;var l=this.chart.plotTop;c=c[0](f).x;e=(e+g)/2;this.chart.inverted&&(e=[e,c],c=e[0],e=e[1]);return{x:a+c-b.width/2,y:l+e-b.height/2}},events:{drag:function(a,b){b.chart.isInsidePlot(a.chartX-b.chart.plotLeft,a.chartY-b.chart.plotTop,{visiblePlotOnly:!0})&&(a=this.mouseMoveToTranslation(a),b.translatePoint(a.x,0,1),b.redraw(!1))}}}}});
|
|
120
|
+
c.types.fibonacciTimeZones=m;"";return m});v(c,"Extensions/Annotations/Types/Pitchfork.js",[c["Extensions/Annotations/Annotations.js"],c["Extensions/Annotations/Types/InfinityLine.js"],c["Extensions/Annotations/MockPoint.js"],c["Core/Utilities.js"]],function(c,k,n,l){var g=this&&this.__extends||function(){var c=function(b,a){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return c(b,a)};return function(b,
|
|
121
|
+
a){function d(){this.constructor=b}c(b,a);b.prototype=null===a?Object.create(a):(d.prototype=a.prototype,new d)}}(),m=l.merge;l=function(c){function b(a,b){return c.call(this,a,b)||this}g(b,c);b.outerLineEdgePoint=function(a){return function(d){var c=d.annotation,f=c.points;return b.findEdgePoint(f[a],f[0],new n(c.chart,d,c.midPointOptions()))}};b.findEdgePoint=function(a,b,c){b=Math.atan2(c.plotY-b.plotY,c.plotX-b.plotX);return{x:a.plotX+1E7*Math.cos(b),y:a.plotY+1E7*Math.sin(b)}};b.middleLineEdgePoint=
|
|
122
|
+
function(a){var b=a.annotation;return k.findEdgePoint(b.points[0],new n(b.chart,a,b.midPointOptions()))};b.prototype.midPointOptions=function(){var a=this.points;return{x:(a[1].x+a[2].x)/2,y:(a[1].y+a[2].y)/2,xAxis:a[0].series.xAxis,yAxis:a[0].series.yAxis}};b.prototype.addShapes=function(){this.addLines();this.addBackgrounds()};b.prototype.addLines=function(){this.initShape({type:"path",points:[this.points[0],b.middleLineEdgePoint]},0);this.initShape({type:"path",points:[this.points[1],b.topLineEdgePoint]},
|
|
123
|
+
1);this.initShape({type:"path",points:[this.points[2],b.bottomLineEdgePoint]},2)};b.prototype.addBackgrounds=function(){var a=this.shapes,b=this.options.typeOptions,c=this.initShape(m(b.innerBackground,{type:"path",points:[function(a){var b=a.annotation;a=b.points;b=b.midPointOptions();return{x:(a[1].x+b.x)/2,y:(a[1].y+b.y)/2,xAxis:b.xAxis,yAxis:b.yAxis}},a[1].points[1],a[2].points[1],function(a){var b=a.annotation;a=b.points;b=b.midPointOptions();return{x:(b.x+a[2].x)/2,y:(b.y+a[2].y)/2,xAxis:b.xAxis,
|
|
124
|
+
yAxis:b.yAxis}}]}),3);a=this.initShape(m(b.outerBackground,{type:"path",points:[this.points[1],a[1].points[1],a[2].points[1],this.points[2]]}),4);b.innerBackground=c.options;b.outerBackground=a.options};b.topLineEdgePoint=b.outerLineEdgePoint(1);b.bottomLineEdgePoint=b.outerLineEdgePoint(0);return b}(k);l.prototype.defaultOptions=m(k.prototype.defaultOptions,{typeOptions:{innerBackground:{fill:"rgba(130, 170, 255, 0.4)",strokeWidth:0},outerBackground:{fill:"rgba(156, 229, 161, 0.4)",strokeWidth:0}}});
|
|
125
|
+
return c.types.pitchfork=l});v(c,"Extensions/Annotations/Types/VerticalLine.js",[c["Extensions/Annotations/Annotations.js"],c["Extensions/Annotations/MockPoint.js"],c["Core/Utilities.js"]],function(c,k,n){var g=this&&this.__extends||function(){var c=function(b,a){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return c(b,a)};return function(b,a){function d(){this.constructor=b}c(b,a);b.prototype=
|
|
126
|
+
null===a?Object.create(a):(d.prototype=a.prototype,new d)}}(),q=n.merge,m=n.pick;n=function(c){function b(a,b){return c.call(this,a,b)||this}g(b,c);b.connectorFirstPoint=function(a){var b=a.annotation;a=b.chart;var c=a.inverted,f=b.points[0],e=m(f.series.yAxis&&f.series.yAxis.left,0),g=m(f.series.yAxis&&f.series.yAxis.top,0);b=b.options.typeOptions.label.offset;var l=k.pointToPixels(f,!0)[c?"x":"y"];return{x:f.x,xAxis:f.series.xAxis,y:l+b+(c?e-a.plotLeft:g-a.plotTop)}};b.connectorSecondPoint=function(a){var b=
|
|
127
|
+
a.annotation;a=b.chart;var c=a.inverted,e=b.options.typeOptions;b=b.points[0];var g=m(b.series.yAxis&&b.series.yAxis.left,0),r=m(b.series.yAxis&&b.series.yAxis.top,0),l=e.yOffset,n=k.pointToPixels(b,!0)[c?"x":"y"];0>e.label.offset&&(l*=-1);return{x:b.x,xAxis:b.series.xAxis,y:n+l+(c?g-a.plotLeft:r-a.plotTop)}};b.prototype.getPointsOptions=function(){return[this.options.typeOptions.point]};b.prototype.addShapes=function(){var a=this.options.typeOptions,c=this.initShape(q(a.connector,{type:"path",points:[b.connectorFirstPoint,
|
|
128
|
+
b.connectorSecondPoint]}),0);a.connector=c.options};b.prototype.addLabels=function(){var a=this.options.typeOptions,b=a.label,c=0,e=b.offset,g=0>b.offset?"bottom":"top",r="center";this.chart.inverted&&(c=b.offset,e=0,g="middle",r=0>b.offset?"right":"left");b=this.initLabel(q(b,{verticalAlign:g,align:r,x:c,y:e}));a.label=b.options};return b}(c);n.prototype.defaultOptions=q(c.prototype.defaultOptions,{typeOptions:{yOffset:10,label:{offset:-40,point:function(c){return c.annotation.points[0]},allowOverlap:!0,
|
|
129
|
+
backgroundColor:"none",borderWidth:0,crop:!0,overflow:"none",shape:"rect",text:"{y:.2f}"},connector:{strokeWidth:1,markerEnd:"arrow"}}});return c.types.verticalLine=n});v(c,"Extensions/Annotations/Types/Measure.js",[c["Extensions/Annotations/Annotations.js"],c["Extensions/Annotations/ControlPoint.js"],c["Core/Utilities.js"]],function(c,k,n){var g=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&
|
|
130
|
+
(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),q=n.defined,m=n.extend,e=n.isNumber,b=n.merge,a=n.pick,d=function(d){function f(a,b){return d.call(this,a,b)||this}g(f,d);f.prototype.init=function(a,b,d){c.prototype.init.call(this,a,b,d);this.resizeY=this.resizeX=this.offsetY=this.offsetX=0;f.calculations.init.call(this);this.addValues();this.addShapes()};f.prototype.setClipAxes=function(){this.clipXAxis=
|
|
131
|
+
this.chart.xAxis[this.options.typeOptions.xAxis];this.clipYAxis=this.chart.yAxis[this.options.typeOptions.yAxis]};f.prototype.pointsOptions=function(){return this.options.points};f.prototype.shapePointsOptions=function(){var a=this.options.typeOptions,b=a.xAxis;a=a.yAxis;return[{x:this.xAxisMin,y:this.yAxisMin,xAxis:b,yAxis:a},{x:this.xAxisMax,y:this.yAxisMin,xAxis:b,yAxis:a},{x:this.xAxisMax,y:this.yAxisMax,xAxis:b,yAxis:a},{x:this.xAxisMin,y:this.yAxisMax,xAxis:b,yAxis:a}]};f.prototype.addControlPoints=
|
|
132
|
+
function(){var a=this.chart.inverted,b=this.options.controlPointOptions,c=this.options.typeOptions.selectType;q(this.userOptions.controlPointOptions&&this.userOptions.controlPointOptions.style.cursor)||("x"===c?b.style.cursor=a?"ns-resize":"ew-resize":"y"===c&&(b.style.cursor=a?"ew-resize":"ns-resize"));a=new k(this.chart,this,this.options.controlPointOptions,0);this.controlPoints.push(a);"xy"!==c&&(a=new k(this.chart,this,this.options.controlPointOptions,1),this.controlPoints.push(a))};f.prototype.addValues=
|
|
133
|
+
function(b){var c=this.options.typeOptions,d=c.label.formatter;f.calculations.recalculate.call(this,b);c.label.enabled&&(0<this.labels.length?this.labels[0].text=d&&d.call(this)||f.calculations.defaultFormatter.call(this):this.initLabel(m({shape:"rect",backgroundColor:"none",color:"black",borderWidth:0,dashStyle:"Dash",overflow:"allow",align:"left",y:0,x:0,verticalAlign:"top",crop:!0,xAxis:0,yAxis:0,point:function(b){var d=b.annotation;b=b.options;return{x:d.xAxisMin,y:d.yAxisMin,xAxis:a(c.xAxis,
|
|
134
|
+
b.xAxis),yAxis:a(c.yAxis,b.yAxis)}},text:d&&d.call(this)||f.calculations.defaultFormatter.call(this)},c.label),void 0))};f.prototype.addShapes=function(){this.addCrosshairs();this.addBackground()};f.prototype.addBackground=function(){"undefined"!==typeof this.shapePointsOptions()[0].x&&this.initShape(m({type:"path",points:this.shapePointsOptions()},this.options.typeOptions.background),2)};f.prototype.addCrosshairs=function(){var a=this.chart,c=this.options.typeOptions,d=this.options.typeOptions.point,
|
|
135
|
+
e=a.xAxis[c.xAxis],f=a.yAxis[c.yAxis],g=a.inverted;a=e.toPixels(this.xAxisMin);e=e.toPixels(this.xAxisMax);var h=f.toPixels(this.yAxisMin),l=f.toPixels(this.yAxisMax),u={point:d,type:"path"};d=[];f=[];g&&(g=a,a=h,h=g,g=e,e=l,l=g);c.crosshairX.enabled&&(d=[["M",a,h+(l-h)/2],["L",e,h+(l-h)/2]]);c.crosshairY.enabled&&(f=[["M",a+(e-a)/2,h],["L",a+(e-a)/2,l]]);0<this.shapes.length?(this.shapes[0].options.d=d,this.shapes[1].options.d=f):(a=b(u,c.crosshairX),c=b(u,c.crosshairY),this.initShape(m({d:d},a),
|
|
136
|
+
0),this.initShape(m({d:f},c),1))};f.prototype.onDrag=function(a){var b=this.mouseMoveToTranslation(a),c=this.options.typeOptions.selectType;a="y"===c?0:b.x;b="x"===c?0:b.y;this.translate(a,b);this.offsetX+=a;this.offsetY+=b;this.redraw(!1,!1,!0)};f.prototype.resize=function(a,b,c,d){var e=this.shapes[2];"x"===d?0===c?(e.translatePoint(a,0,0),e.translatePoint(a,b,3)):(e.translatePoint(a,0,1),e.translatePoint(a,b,2)):"y"===d?0===c?(e.translatePoint(0,b,0),e.translatePoint(0,b,1)):(e.translatePoint(0,
|
|
137
|
+
b,2),e.translatePoint(0,b,3)):(e.translatePoint(a,0,1),e.translatePoint(a,b,2),e.translatePoint(0,b,3));f.calculations.updateStartPoints.call(this,!1,!0,c,a,b);this.options.typeOptions.background.height=Math.abs(this.startYMax-this.startYMin);this.options.typeOptions.background.width=Math.abs(this.startXMax-this.startXMin)};f.prototype.redraw=function(a,b,c){this.linkPoints();this.graphic||this.render();c&&f.calculations.updateStartPoints.call(this,!0,!1);this.clipRect&&this.clipRect.animate(this.getClipBox());
|
|
138
|
+
this.addValues(b);this.addCrosshairs();this.redrawItems(this.shapes,a);this.redrawItems(this.labels,a);this.controlPoints.forEach(function(a){a.redraw()})};f.prototype.translate=function(a,b){this.shapes.forEach(function(c){c.translate(a,b)});this.options.typeOptions.point.x=this.startXMin;this.options.typeOptions.point.y=this.startYMin};f.calculations={init:function(){var a=this.options.typeOptions,b=this.chart,c=f.calculations.getPointPos,d=b.inverted,g=b.xAxis[a.xAxis];b=b.yAxis[a.yAxis];var h=
|
|
139
|
+
a.background,l=d?h.height:h.width;h=d?h.width:h.height;var k=a.selectType,u=d?g.left:b.top;d=d?b.top:g.left;this.startXMin=a.point.x;this.startYMin=a.point.y;e(l)?this.startXMax=this.startXMin+l:this.startXMax=c(g,this.startXMin,parseFloat(l));e(h)?this.startYMax=this.startYMin-h:this.startYMax=c(b,this.startYMin,parseFloat(h));"x"===k?(this.startYMin=b.toValue(u),this.startYMax=b.toValue(u+b.len)):"y"===k&&(this.startXMin=g.toValue(d),this.startXMax=g.toValue(d+g.len))},recalculate:function(a){var b=
|
|
140
|
+
f.calculations,c=this.options.typeOptions,d=this.chart.xAxis[c.xAxis];c=this.chart.yAxis[c.yAxis];var e=f.calculations.getPointPos,g=this.offsetX,h=this.offsetY;this.xAxisMin=e(d,this.startXMin,g);this.xAxisMax=e(d,this.startXMax,g);this.yAxisMin=e(c,this.startYMin,h);this.yAxisMax=e(c,this.startYMax,h);this.min=b.min.call(this);this.max=b.max.call(this);this.average=b.average.call(this);this.bins=b.bins.call(this);a&&this.resize(0,0)},getPointPos:function(a,b,c){return a.toValue(a.toPixels(b)+c)},
|
|
141
|
+
updateStartPoints:function(a,b,c,d,e){var g=this.options.typeOptions,h=g.selectType,l=this.chart.xAxis[g.xAxis];g=this.chart.yAxis[g.yAxis];var u=f.calculations.getPointPos,x=this.startXMin,k=this.startXMax,t=this.startYMin,w=this.startYMax,G=this.offsetX,F=this.offsetY;b&&("x"===h?0===c?this.startXMin=u(l,x,d):this.startXMax=u(l,k,d):"y"===h?0===c?this.startYMin=u(g,t,e):this.startYMax=u(g,w,e):(this.startXMax=u(l,k,d),this.startYMax=u(g,w,e)));a&&(this.startXMin=u(l,x,G),this.startXMax=u(l,k,G),
|
|
142
|
+
this.startYMin=u(g,t,F),this.startYMax=u(g,w,F),this.offsetY=this.offsetX=0)},defaultFormatter:function(){return"Min: "+this.min+"<br>Max: "+this.max+"<br>Average: "+this.average+"<br>Bins: "+this.bins},getExtremes:function(a,b,c,d){return{xAxisMin:Math.min(b,a),xAxisMax:Math.max(b,a),yAxisMin:Math.min(d,c),yAxisMax:Math.max(d,c)}},min:function(){var a=Infinity,b=this.chart.series,c=f.calculations.getExtremes(this.xAxisMin,this.xAxisMax,this.yAxisMin,this.yAxisMax),d=!1;b.forEach(function(b){b.visible&&
|
|
143
|
+
"highcharts-navigator-series"!==b.options.id&&b.points.forEach(function(b){!b.isNull&&b.y<a&&b.x>c.xAxisMin&&b.x<=c.xAxisMax&&b.y>c.yAxisMin&&b.y<=c.yAxisMax&&(a=b.y,d=!0)})});d||(a="");return a},max:function(){var a=-Infinity,b=this.chart.series,c=f.calculations.getExtremes(this.xAxisMin,this.xAxisMax,this.yAxisMin,this.yAxisMax),d=!1;b.forEach(function(b){b.visible&&"highcharts-navigator-series"!==b.options.id&&b.points.forEach(function(b){!b.isNull&&b.y>a&&b.x>c.xAxisMin&&b.x<=c.xAxisMax&&b.y>
|
|
144
|
+
c.yAxisMin&&b.y<=c.yAxisMax&&(a=b.y,d=!0)})});d||(a="");return a},average:function(){var a="";""!==this.max&&""!==this.min&&(a=(this.max+this.min)/2);return a},bins:function(){var a=0,b=this.chart.series,c=f.calculations.getExtremes(this.xAxisMin,this.xAxisMax,this.yAxisMin,this.yAxisMax),d=!1;b.forEach(function(b){b.visible&&"highcharts-navigator-series"!==b.options.id&&b.points.forEach(function(b){!b.isNull&&b.x>c.xAxisMin&&b.x<=c.xAxisMax&&b.y>c.yAxisMin&&b.y<=c.yAxisMax&&(a++,d=!0)})});d||(a=
|
|
145
|
+
"");return a}};return f}(c);d.prototype.defaultOptions=b(c.prototype.defaultOptions,{typeOptions:{selectType:"xy",xAxis:0,yAxis:0,background:{fill:"rgba(130, 170, 255, 0.4)",strokeWidth:0,stroke:void 0},crosshairX:{enabled:!0,zIndex:6,dashStyle:"Dash",markerEnd:"arrow"},crosshairY:{enabled:!0,zIndex:6,dashStyle:"Dash",markerEnd:"arrow"},label:{enabled:!0,style:{fontSize:"11px",color:"#666666"},formatter:void 0}},controlPointOptions:{positioner:function(a){var b=this.index,c=a.chart,e=a.options,g=
|
|
146
|
+
e.typeOptions,h=g.selectType;e=e.controlPointOptions;var l=c.inverted,k=c.xAxis[g.xAxis];c=c.yAxis[g.yAxis];g=a.xAxisMax;var m=a.yAxisMax,n=d.calculations.getExtremes(a.xAxisMin,a.xAxisMax,a.yAxisMin,a.yAxisMax);"x"===h&&(m=(n.yAxisMax-n.yAxisMin)/2,0===b&&(g=a.xAxisMin));"y"===h&&(g=n.xAxisMin+(n.xAxisMax-n.xAxisMin)/2,0===b&&(m=a.yAxisMin));l?(a=c.toPixels(m),b=k.toPixels(g)):(a=k.toPixels(g),b=c.toPixels(m));return{x:a-e.width/2,y:b-e.height/2}},events:{drag:function(a,b){var c=this.mouseMoveToTranslation(a);
|
|
147
|
+
a=b.options.typeOptions.selectType;var d="y"===a?0:c.x;c="x"===a?0:c.y;b.resize(d,c,this.index,a);b.resizeX+=d;b.resizeY+=c;b.redraw(!1,!0)}}}});return c.types.measure=d});v(c,"Core/Chart/ChartNavigationComposition.js",[],function(){var c;(function(c){c.compose=function(c){c.navigation||(c.navigation=new g(c));return c};var g=function(){function c(c){this.updates=[];this.chart=c}c.prototype.addUpdate=function(c){this.chart.navigation.updates.push(c)};c.prototype.update=function(c,g){var e=this;this.updates.forEach(function(b){b.call(e.chart,
|
|
148
|
+
c,g)})};return c}();c.Additions=g})(c||(c={}));return c});v(c,"Extensions/Annotations/NavigationBindings.js",[c["Extensions/Annotations/Annotations.js"],c["Core/Chart/Chart.js"],c["Core/Chart/ChartNavigationComposition.js"],c["Core/FormatUtilities.js"],c["Core/Globals.js"],c["Core/DefaultOptions.js"],c["Core/Utilities.js"]],function(c,k,n,l,q,m,e){function b(a,b){var c=x.Element.prototype,d=c.matches||c.msMatchesSelector||c.webkitMatchesSelector,e=null;if(c.closest)e=c.closest.call(a,b);else{do{if(d.call(a,
|
|
149
|
+
b))return a;a=a.parentElement||a.parentNode}while(null!==a&&1===a.nodeType)}return e}function a(a){var b=a.prototype.defaultOptions.events&&a.prototype.defaultOptions.events.click;D(!0,a.prototype.defaultOptions.events,{click:function(a){var c=this,d=c.chart.navigationBindings,e=d.activeAnnotation;b&&b.call(c,a);e!==c?(d.deselectAnnotation(),d.activeAnnotation=c,c.setControlPointsVisibility(!0),p(d,"showPopup",{annotation:c,formType:"annotation-toolbar",options:d.annotationToFields(c),onSubmit:function(a){var b=
|
|
150
|
+
{};"remove"===a.actionType?(d.activeAnnotation=!1,d.chart.removeAnnotation(c)):(d.fieldsToOptions(a.fields,b),d.deselectAnnotation(),a=b.typeOptions,"measure"===c.options.type&&(a.crosshairY.enabled=0!==a.crosshairY.strokeWidth,a.crosshairX.enabled=0!==a.crosshairX.strokeWidth),c.update(b))}})):p(d,"closePopup");a.activeAnnotation=!0}})}var d=l.format;l=m.setOptions;var g=e.addEvent,f=e.attr,p=e.fireEvent,r=e.isArray,v=e.isFunction,B=e.isNumber,E=e.isObject,D=e.merge,A=e.objectEach,z=e.pick,u=q.doc,
|
|
151
|
+
x=q.win,C=function(){function a(a,b){this.selectedButton=this.boundClassNames=void 0;this.chart=a;this.options=b;this.eventsToUnbind=[];this.container=u.getElementsByClassName(this.options.bindingsClassName||"")}a.prototype.initEvents=function(){var a=this,b=a.chart,c=a.container,d=a.options;a.boundClassNames={};A(d.bindings||{},function(b){a.boundClassNames[b.className]=b});[].forEach.call(c,function(b){a.eventsToUnbind.push(g(b,"click",function(c){var d=a.getButtonEvents(b,c);d&&-1===d.button.className.indexOf("highcharts-disabled-btn")&&
|
|
152
|
+
a.bindingsButtonClick(d.button,d.events,c)}))});A(d.events||{},function(b,c){v(b)&&a.eventsToUnbind.push(g(a,c,b,{passive:!1}))});a.eventsToUnbind.push(g(b.container,"click",function(c){!b.cancelClick&&b.isInsidePlot(c.chartX-b.plotLeft,c.chartY-b.plotTop,{visiblePlotOnly:!0})&&a.bindingsChartClick(this,c)}));a.eventsToUnbind.push(g(b.container,q.isTouchDevice?"touchmove":"mousemove",function(b){a.bindingsContainerMouseMove(this,b)},q.isTouchDevice?{passive:!1}:void 0))};a.prototype.initUpdate=function(){var a=
|
|
153
|
+
this;n.compose(this.chart).navigation.addUpdate(function(b){a.update(b)})};a.prototype.bindingsButtonClick=function(a,b,c){var d=this.chart;this.selectedButtonElement&&(p(this,"deselectButton",{button:this.selectedButtonElement}),this.nextEvent&&(this.currentUserDetails&&"annotations"===this.currentUserDetails.coll&&d.removeAnnotation(this.currentUserDetails),this.mouseMoveEvent=this.nextEvent=!1));this.selectedButton=b;this.selectedButtonElement=a;p(this,"selectButton",{button:a});b.init&&b.init.call(this,
|
|
154
|
+
a,c);(b.start||b.steps)&&d.renderer.boxWrapper.addClass("highcharts-draw-mode")};a.prototype.bindingsChartClick=function(a,c){a=this.chart;var d=this.activeAnnotation,e=this.selectedButton;a=a.renderer.boxWrapper;d&&(d.cancelClick||c.activeAnnotation||!c.target.parentNode||b(c.target,".highcharts-popup")?d.cancelClick&&setTimeout(function(){d.cancelClick=!1},0):p(this,"closePopup"));e&&e.start&&(this.nextEvent?(this.nextEvent(c,this.currentUserDetails),this.steps&&(this.stepIndex++,e.steps[this.stepIndex]?
|
|
155
|
+
this.mouseMoveEvent=this.nextEvent=e.steps[this.stepIndex]:(p(this,"deselectButton",{button:this.selectedButtonElement}),a.removeClass("highcharts-draw-mode"),e.end&&e.end.call(this,c,this.currentUserDetails),this.mouseMoveEvent=this.nextEvent=!1,this.selectedButton=null))):(this.currentUserDetails=e.start.call(this,c))&&e.steps?(this.stepIndex=0,this.steps=!0,this.mouseMoveEvent=this.nextEvent=e.steps[this.stepIndex]):(p(this,"deselectButton",{button:this.selectedButtonElement}),a.removeClass("highcharts-draw-mode"),
|
|
156
|
+
this.steps=!1,this.selectedButton=null,e.end&&e.end.call(this,c,this.currentUserDetails)))};a.prototype.bindingsContainerMouseMove=function(a,b){this.mouseMoveEvent&&this.mouseMoveEvent(b,this.currentUserDetails)};a.prototype.fieldsToOptions=function(a,b){A(a,function(a,c){var d=parseFloat(a),e=c.split("."),f=b,g=e.length-1;!B(d)||a.match(/px/g)||c.match(/format/g)||(a=d);""!==a&&"undefined"!==a&&e.forEach(function(b,c){var d=z(e[c+1],"");g===c?f[b]=a:(f[b]||(f[b]=d.match(/\d/g)?[]:{}),f=f[b])})});
|
|
157
|
+
return b};a.prototype.deselectAnnotation=function(){this.activeAnnotation&&(this.activeAnnotation.setControlPointsVisibility(!1),this.activeAnnotation=!1)};a.prototype.annotationToFields=function(b){function c(a,e,f,w){if(f&&a&&-1===u.indexOf(e)&&(0<=(f.indexOf&&f.indexOf(e))||f[e]||!0===f))if(r(a))w[e]=[],a.forEach(function(a,b){E(a)?(w[e][b]={},A(a,function(a,d){c(a,d,g[e],w[e][b])})):c(a,0,g[e],w[e])});else if(E(a)){var x={};r(w)?(w.push(x),x[e]={},x=x[e]):w[e]=x;A(a,function(a,b){c(a,b,0===e?
|
|
158
|
+
f:g[e],x)})}else"format"===e?w[e]=[d(a,b.labels[0].points[0]).toString(),"text"]:r(w)?w.push([a,t(a)]):w[e]=[a,t(a)]}var e=b.options,f=a.annotationsEditable,g=f.nestedOptions,t=this.utils.getFieldType,w=z(e.type,e.shapes&&e.shapes[0]&&e.shapes[0].type,e.labels&&e.labels[0]&&e.labels[0].itemType,"label"),u=a.annotationsNonEditable[e.langKey]||[],x={langKey:e.langKey,type:w};A(e,function(a,b){"typeOptions"===b?(x[b]={},A(e[b],function(a,d){c(a,d,g,x[b],!0)})):c(a,b,f[w],x)});return x};a.prototype.getClickedClassNames=
|
|
159
|
+
function(a,b){var c=b.target;b=[];for(var d;c&&((d=f(c,"class"))&&(b=b.concat(d.split(" ").map(function(a){return[a,c]}))),c=c.parentNode,c!==a););return b};a.prototype.getButtonEvents=function(a,b){var c=this,d;this.getClickedClassNames(a,b).forEach(function(a){c.boundClassNames[a[0]]&&!d&&(d={events:c.boundClassNames[a[0]],button:a[1]})});return d};a.prototype.update=function(a){this.options=D(!0,this.options,a);this.removeEvents();this.initEvents()};a.prototype.removeEvents=function(){this.eventsToUnbind.forEach(function(a){a()})};
|
|
160
|
+
a.prototype.destroy=function(){this.removeEvents()};a.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",
|
|
161
|
+
"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"]};a.annotationsNonEditable={rectangle:["crosshairX","crosshairY","labelOptions"],ellipse:["labelOptions"],circle:["labelOptions"]};
|
|
162
|
+
return a}();C.prototype.utils={getFieldType:function(a){return{string:"text",number:"number","boolean":"checkbox"}[typeof a]},updateRectSize:function(a,b){var c=b.chart,d=b.options.typeOptions,e=B(d.xAxis)&&c.xAxis[d.xAxis],f=B(d.yAxis)&&c.yAxis[d.yAxis];e&&f&&(e=e.toValue(a[e.horiz?"chartX":"chartY"]),a=f.toValue(a[f.horiz?"chartX":"chartY"]),f=e-d.point.x,d=d.point.y-a,b.update({typeOptions:{background:{width:c.inverted?d:f,height:c.inverted?f:d}}}))},getAssignedAxis:function(a){return a.filter(function(a){var b=
|
|
163
|
+
a.axis.getExtremes(),c=b.min;b=b.max;var d=z(a.axis.minPointOffset,0);return B(c)&&B(b)&&a.value>=c-d&&a.value<=b+d&&!a.axis.options.isInternal})[0]}};k.prototype.initNavigationBindings=function(){var a=this.options;a&&a.navigation&&a.navigation.bindings&&(this.navigationBindings=new C(this,a.navigation),this.navigationBindings.initEvents(),this.navigationBindings.initUpdate())};g(k,"load",function(){this.initNavigationBindings()});g(k,"destroy",function(){this.navigationBindings&&this.navigationBindings.destroy()});
|
|
164
|
+
g(C,"deselectButton",function(){this.selectedButtonElement=null});g(c,"remove",function(){this.chart.navigationBindings&&this.chart.navigationBindings.deselectAnnotation()});q.Annotation&&(a(c),A(c.types,function(b){a(b)}));l({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",
|
|
165
|
+
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(a){var b=this.chart.pointer.getCoordinates(a);
|
|
166
|
+
a=this.utils.getAssignedAxis(b.xAxis);b=this.utils.getAssignedAxis(b.yAxis);var c=this.chart.options.navigation;if(a&&b)return this.chart.addAnnotation(D({langKey:"circle",type:"basicAnnotation",shapes:[{type:"circle",point:{x:a.value,y:b.value,xAxis:a.axis.options.index,yAxis:b.axis.options.index},r:5}]},c.annotationsOptions,c.bindings.circleAnnotation.annotationsOptions))},steps:[function(a,b){var c=b.options.shapes[0].point;if(B(c.xAxis)&&B(c.yAxis)){var d=this.chart.inverted;var e=this.chart.xAxis[c.xAxis].toPixels(c.x);
|
|
167
|
+
c=this.chart.yAxis[c.yAxis].toPixels(c.y);d=Math.max(Math.sqrt(Math.pow(d?c-a.chartX:e-a.chartX,2)+Math.pow(d?e-a.chartY:c-a.chartY,2)),5)}b.update({shapes:[{r:d}]})}]},ellipseAnnotation:{className:"highcharts-ellipse-annotation",start:function(a){var b=this.chart.pointer.getCoordinates(a);a=this.utils.getAssignedAxis(b.xAxis);b=this.utils.getAssignedAxis(b.yAxis);var c=this.chart.options.navigation;if(a&&b)return this.chart.addAnnotation(D({langKey:"ellipse",type:"basicAnnotation",shapes:[{type:"ellipse",
|
|
168
|
+
xAxis:a.axis.options.index,yAxis:b.axis.options.index,points:[{x:a.value,y:b.value},{x:a.value,y:b.value}],ry:1}]},c.annotationsOptions,c.bindings.ellipseAnnotation.annotationOptions))},steps:[function(a,b){b=b.shapes[0];var c=b.getAbsolutePosition(b.points[1]);b.translatePoint(a.chartX-c.x,a.chartY-c.y,1);b.redraw(!1)},function(a,b){b=b.shapes[0];var c=b.getAbsolutePosition(b.points[0]),d=b.getAbsolutePosition(b.points[1]);a=b.getDistanceFromLine(c,d,a.chartX,a.chartY);c=b.getYAxis();a=Math.abs(c.toValue(0)-
|
|
169
|
+
c.toValue(a));b.setYRadius(a);b.redraw(!1)}]},rectangleAnnotation:{className:"highcharts-rectangle-annotation",start:function(a){a=this.chart.pointer.getCoordinates(a);var b=this.utils.getAssignedAxis(a.xAxis),c=this.utils.getAssignedAxis(a.yAxis);if(b&&c){a=b.value;var d=c.value;b=b.axis.options.index;c=c.axis.options.index;var e=this.chart.options.navigation;return this.chart.addAnnotation(D({langKey:"rectangle",type:"basicAnnotation",shapes:[{type:"path",points:[{xAxis:b,yAxis:c,x:a,y:d},{xAxis:b,
|
|
170
|
+
yAxis:c,x:a,y:d},{xAxis:b,yAxis:c,x:a,y:d},{xAxis:b,yAxis:c,x:a,y:d},{command:"Z"}]}]},e.annotationsOptions,e.bindings.rectangleAnnotation.annotationsOptions))}},steps:[function(a,b){var c=b.options.shapes[0].points,d=this.chart.pointer.getCoordinates(a);a=this.utils.getAssignedAxis(d.xAxis);d=this.utils.getAssignedAxis(d.yAxis);a&&d&&(a=a.value,d=d.value,c[1].x=a,c[2].x=a,c[2].y=d,c[3].y=d,b.update({shapes:[{points:c}]}))}]},labelAnnotation:{className:"highcharts-label-annotation",start:function(a){var b=
|
|
171
|
+
this.chart.pointer.getCoordinates(a);a=this.utils.getAssignedAxis(b.xAxis);b=this.utils.getAssignedAxis(b.yAxis);var c=this.chart.options.navigation;if(a&&b)return this.chart.addAnnotation(D({langKey:"label",type:"basicAnnotation",labelOptions:{format:"{y:.2f}"},labels:[{point:{xAxis:a.axis.options.index,yAxis:b.axis.options.index,x:a.value,y:b.value},overflow:"none",crop:!0}]},c.annotationsOptions,c.bindings.labelAnnotation.annotationsOptions))}}},events:{},annotationsOptions:{animation:{defer:0}}}});
|
|
172
|
+
g(k,"render",function(){var a=this,b=a.navigationBindings;if(a&&b){var c=!1;a.series.forEach(function(a){!a.options.isInternal&&a.visible&&(c=!0)});A(b.boundClassNames,function(b,d){if(a.navigationBindings&&a.navigationBindings.container&&a.navigationBindings.container[0]&&(d=a.navigationBindings.container[0].querySelectorAll("."+d)))for(var e=0;e<d.length;e++){var f=d[e];"normal"===b.noDataState?-1!==f.className.indexOf("highcharts-disabled-btn")&&f.classList.remove("highcharts-disabled-btn"):c?
|
|
173
|
+
-1!==f.className.indexOf("highcharts-disabled-btn")&&f.classList.remove("highcharts-disabled-btn"):-1===f.className.indexOf("highcharts-disabled-btn")&&(f.className+=" highcharts-disabled-btn")}})}});g(C,"closePopup",function(){this.deselectAnnotation()});return C});v(c,"Extensions/Annotations/Popup.js",[c["Core/Globals.js"],c["Extensions/Annotations/NavigationBindings.js"],c["Core/DefaultOptions.js"],c["Core/Pointer.js"],c["Core/Utilities.js"]],function(c,k,n,l,q){var g=c.doc,e=c.isFirefox,b=n.getOptions,
|
|
174
|
+
a=q.addEvent,d=q.createElement,h=q.defined,f=q.fireEvent,p=q.isArray,r=q.isObject,v=q.objectEach,B=q.pick,E=q.stableSort;n=q.wrap;var D=/\d/g,A;(function(a){a[a["params.algorithm"]=0]="params.algorithm";a[a["params.average"]=1]="params.average"})(A||(A={}));var z={"algorithm-pivotpoints":["standard","fibonacci","camarilla"],"average-disparityindex":["sma","ema","dema","tema","wma"]};n(l.prototype,"onContainerMouseDown",function(a,b){this.inClass(b.target,"highcharts-popup")||a.apply(this,Array.prototype.slice.call(arguments,
|
|
175
|
+
1))});c.Popup=function(a,b,c){this.init(a,b,c)};c.Popup.prototype={init:function(b,e,f){this.chart=f;this.container=d("div",{className:"highcharts-popup highcharts-no-tooltip"},void 0,b);a(this.container,"mousedown",function(){var b=f&&f.navigationBindings&&f.navigationBindings.activeAnnotation;if(b){b.cancelClick=!0;var d=a(c.doc,"click",function(){setTimeout(function(){b.cancelClick=!1},0);d()})}});this.lang=this.getLangpack();this.iconsURL=e;this.addCloseBtn()},addCloseBtn:function(){var b=this,
|
|
176
|
+
c=this.iconsURL;var e=d("div",{className:"highcharts-popup-close"},void 0,this.container);e.style["background-image"]="url("+(c.match(/png|svg|jpeg|jpg|gif/ig)?c:c+"close.svg")+")";["click","touchstart"].forEach(function(c){a(e,c,function(){b.chart?f(b.chart.navigationBindings,"closePopup"):b.closePopup()})})},addColsContainer:function(a){var b=d("div",{className:"highcharts-popup-lhs-col"},void 0,a);a=d("div",{className:"highcharts-popup-rhs-col"},void 0,a);d("div",{className:"highcharts-popup-rhs-col-wrapper"},
|
|
177
|
+
void 0,a);return{lhsCol:b,rhsCol:a}},addInput:function(a,b,c,e){var f=a.split(".");f=f[f.length-1];var u=this.lang;b="highcharts-"+b+"-"+B(e.htmlFor,f);b.match(D)||d("label",{htmlFor:b,className:e.labelClassName},void 0,c).appendChild(g.createTextNode(u[f]||f));c=d("input",{name:b,value:e.value,type:e.type,className:"highcharts-popup-field"},void 0,c);c.setAttribute("highcharts-data-name",a);return c},addButton:function(b,c,e,f,h){var u=this,x=this.closePopup,l=this.getFields;var k=d("button",void 0,
|
|
178
|
+
void 0,b);k.appendChild(g.createTextNode(c));h&&["click","touchstart"].forEach(function(b){a(k,b,function(){x.call(u);return h(l(f,e))})});return k},getFields:function(a,b){var c=Array.prototype.slice.call(a.querySelectorAll("input")),d=Array.prototype.slice.call(a.querySelectorAll("select")),e=a.querySelectorAll("#highcharts-select-series > option:checked")[0];a=a.querySelectorAll("#highcharts-select-volume > option:checked")[0];var f={actionType:b,linkedTo:e&&e.getAttribute("value")||"",fields:{}};
|
|
179
|
+
c.forEach(function(a){var b=a.getAttribute("highcharts-data-name");a.getAttribute("highcharts-data-series-id")?f.seriesId=a.value:b?f.fields[b]=a.value:f.type=a.value});d.forEach(function(a){var b=a.id;"highcharts-select-series"!==b&&"highcharts-select-volume"!==b&&(b=b.split("highcharts-select-")[1],f.fields[b]=a.value)});a&&(f.fields["params.volumeSeriesID"]=a.getAttribute("value")||"");return f},showPopup:function(){var a=this.container,b=a.querySelectorAll(".highcharts-popup-close")[0];this.formType=
|
|
180
|
+
void 0;a.innerHTML="";0<=a.className.indexOf("highcharts-annotation-toolbar")&&(a.classList.remove("highcharts-annotation-toolbar"),a.removeAttribute("style"));a.appendChild(b);a.style.display="block";a.style.height=""},closePopup:function(){B(this.popup&&this.popup.container,this.container).style.display="none"},showForm:function(a,b,c,d){b&&(this.popup=b.navigationBindings.popup,this.showPopup(),"indicators"===a&&this.indicators.addForm.call(this,b,c,d),"annotation-toolbar"===a&&this.annotations.addToolbar.call(this,
|
|
181
|
+
b,c,d),"annotation-edit"===a&&this.annotations.addForm.call(this,b,c,d),"flag"===a&&this.annotations.addForm.call(this,b,c,d,!0),this.formType=a,this.container.style.height=this.container.offsetHeight+"px")},getLangpack:function(){return b().lang.navigation.popup},annotations:{addToolbar:function(a,b,c){var e=this,f=this.lang,h=this.popup.container,l=this.showForm;-1===h.className.indexOf("highcharts-annotation-toolbar")&&(h.className+=" highcharts-annotation-toolbar");a&&(h.style.top=a.plotTop+10+
|
|
182
|
+
"px");d("span",void 0,void 0,h).appendChild(g.createTextNode(B(f[b.langKey]||b.langKey,b.shapes&&b.shapes[0].type)));var k=this.addButton(h,f.removeButton||"remove","remove",h,c);k.className+=" highcharts-annotation-remove-button";k.style["background-image"]="url("+this.iconsURL+"destroy.svg)";k=this.addButton(h,f.editButton||"edit","edit",h,function(){l.call(e,"annotation-edit",a,b,c)});k.className+=" highcharts-annotation-edit-button";k.style["background-image"]="url("+this.iconsURL+"edit.svg)"},
|
|
183
|
+
addForm:function(a,b,c,e){var f=this.popup.container,h=this.lang;if(a){var k=d("h2",{className:"highcharts-popup-main-title"},void 0,f);k.appendChild(g.createTextNode(h[b.langKey]||b.langKey||""));k=d("div",{className:"highcharts-popup-lhs-col highcharts-popup-lhs-full"},void 0,f);var l=d("div",{className:"highcharts-popup-bottom-row"},void 0,f);this.annotations.addFormFields.call(this,k,a,"",b,[],!0);this.addButton(l,e?h.addButton||"add":h.saveButton||"save",e?"add":"save",f,c)}},addFormFields:function(a,
|
|
184
|
+
b,c,f,h,k){var l=this,u=this.annotations.addFormFields,x=this.addInput,t=this.lang,m,n;b&&(v(f,function(d,e){m=""!==c?c+"."+e:e;r(d)&&(!p(d)||p(d)&&r(d[0])?(n=t[e]||e,n.match(D)||h.push([!0,n,a]),u.call(l,a,b,m,d,h,!1)):h.push([l,m,"annotation",a,d]))}),k&&(E(h,function(a){return a[1].match(/format/g)?-1:1}),e&&h.reverse(),h.forEach(function(a){!0===a[0]?d("span",{className:"highcharts-annotation-title"},void 0,a[2]).appendChild(g.createTextNode(a[1])):(a[4]={value:a[4][0],type:a[4][1]},x.apply(a[0],
|
|
185
|
+
a.splice(1)))})))}},indicators:{addForm:function(a,b,c){var d=this.indicators,e=this.lang;if(a){this.tabs.init.call(this,a);b=this.popup.container.querySelectorAll(".highcharts-tab-item-content");this.addColsContainer(b[0]);d.addSearchBox.call(this,a,b[0]);d.addIndicatorList.call(this,a,b[0],"add");var f=b[0].querySelectorAll(".highcharts-popup-rhs-col")[0];this.addButton(f,e.addButton||"add","add",f,c);this.addColsContainer(b[1]);d.addIndicatorList.call(this,a,b[1],"edit");f=b[1].querySelectorAll(".highcharts-popup-rhs-col")[0];
|
|
186
|
+
this.addButton(f,e.saveButton||"save","edit",f,c);this.addButton(f,e.removeButton||"remove","remove",f,c)}},filterSeries:function(a,b){var c=this.indicators,d=this.chart&&this.chart.options.lang,e=d&&d.navigation&&d.navigation.popup&&d.navigation.popup.indicatorAliases,f=[],g;v(a,function(a,d){var h=a.options;if(a.params||h&&h.params)if(h=c.getNameType(a,d),d=h.indicatorFullName,h=h.indicatorType,b){var k=b.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");k=new RegExp(k,"i");var l=e&&e[h]&&e[h].join(" ")||"";
|
|
187
|
+
if(d.match(k)||l.match(k))g={indicatorFullName:d,indicatorType:h,series:a},f.push(g)}else g={indicatorFullName:d,indicatorType:h,series:a},f.push(g)});return f},filterSeriesArray:function(a){var b=[],c;a.forEach(function(a){a.is("sma")&&(c={indicatorFullName:a.name,indicatorType:a.type,series:a},b.push(c))});return b},addIndicatorList:function(b,c,e,f){var h=this,k=h.indicators,l=h.lang,m=c.querySelectorAll(".highcharts-popup-lhs-col")[0];c=c.querySelectorAll(".highcharts-popup-rhs-col")[0];var n=
|
|
188
|
+
"edit"===e,u=this.indicators.addFormFields;e=n?b.series:b.options.plotOptions||{};if(b||!e){var x,t=[];n||p(e)?p(e)&&(t=k.filterSeriesArray.call(this,e)):t=k.filterSeries.call(this,e,f);E(t,function(a,b){a=a.indicatorFullName.toLowerCase();b=b.indicatorFullName.toLowerCase();return a<b?-1:a>b?1:0});m.children[1]&&m.children[1].remove();var C=d("ul",{className:"highcharts-indicator-list"},void 0,m);var q=c.querySelectorAll(".highcharts-popup-rhs-col-wrapper")[0];t.forEach(function(c){var e=c.indicatorFullName,
|
|
189
|
+
f=c.indicatorType,k=c.series;x=d("li",{className:"highcharts-indicator-list"},void 0,C);x.appendChild(g.createTextNode(e));["click","touchstart"].forEach(function(c){a(x,c,function(){var a=q.parentNode.children[1];u.call(h,b,k,f,q);a&&(a.style.display="block");n&&k.options&&d("input",{type:"hidden",name:"highcharts-id-"+f,value:k.options.id},void 0,q).setAttribute("highcharts-data-series-id",k.options.id)})})});0<C.childNodes.length?C.childNodes[0].click():n||(q.parentNode.children[0].innerHTML=l.noFilterMatch||
|
|
190
|
+
"",q.parentNode.children[1].style.display="none")}},addSearchBox:function(b,c){var e=this,f=c.querySelectorAll(".highcharts-popup-lhs-col")[0];c=this.lang.clearFilter;f=d("div",{className:"highcharts-input-wrapper"},void 0,f);var g=function(a){e.indicators.addIndicatorList.call(e,b,e.container,"add",a)},h=this.addInput("searchIndicators","input",f,{value:"",type:"text",htmlFor:"search-indicators",labelClassName:"highcharts-input-search-indicators-label"}),k=d("a",{textContent:c},void 0,f);h.classList.add("highcharts-input-search-indicators");
|
|
191
|
+
k.classList.add("clear-filter-button");a(h,"input",function(a){g(this.value);k.style.display=this.value.length?"inline-block":"none"});["click","touchstart"].forEach(function(b){a(k,b,function(){h.value="";g("");k.style.display="none"})})},addSelection:function(a,b,c){var e=b.split(".");e=e[e.length-1];a="highcharts-"+b+"-type-"+a;var f=this.lang;d("label",{htmlFor:a},null,c).appendChild(g.createTextNode(f[e]||b));c=d("select",{name:a,className:"highcharts-popup-field",id:"highcharts-select-"+b},
|
|
192
|
+
null,c);c.setAttribute("id","highcharts-select-"+b);return c},addSelectionOptions:function(a,b,c,e,f,k,l){"series"===b||"volume"===b?a.series.forEach(function(a){var e=a.options,f=e.name||e.params?a.name:e.id||"";"highcharts-navigator-series"!==e.id&&e.id!==(l&&l.options&&l.options.id)&&(h(k)||"volume"!==b||"column"!==a.type||(k=e.id),d("option",{value:e.id},void 0,c).appendChild(g.createTextNode(f)))}):e&&f&&z[f+"-"+e].forEach(function(a){d("option",{value:a},void 0,c).appendChild(g.createTextNode(a))});
|
|
193
|
+
h(k)&&(c.value=k)},getNameType:function(a,b){var d=a.options,e=c.seriesTypes;e=e[b]&&e[b].prototype.nameBase||b.toUpperCase();d&&d.type&&(b=a.options.type,e=a.name);return{indicatorFullName:e,indicatorType:b}},listAllSeries:function(a,b,c,d,e,f){var g=this.indicators;c&&(a=g.addSelection.call(this,a,b,d),g.addSelectionOptions.call(this,c,b,a,void 0,void 0,void 0,e),h(f)&&(a.value=f))},addFormFields:function(a,b,c,e){var f=b.params||b.options.params,h=this.indicators.getNameType;e.innerHTML="";d("h3",
|
|
194
|
+
{className:"highcharts-indicator-title"},void 0,e).appendChild(g.createTextNode(h(b,c).indicatorFullName));d("input",{type:"hidden",name:"highcharts-type-"+c,value:c},void 0,e);this.indicators.listAllSeries.call(this,c,"series",a,e,b,b.linkedParent&&b.linkedParent.options.id);f.volumeSeriesID&&this.indicators.listAllSeries.call(this,c,"volume",a,e,b,b.linkedParent&&f.volumeSeriesID);this.indicators.addParamInputs.call(this,a,"params",f,c,e)},addParamInputs:function(a,b,c,d,e){var f=this,g=f.indicators,
|
|
195
|
+
k=this.indicators.addParamInputs,l=this.addInput,m;a&&v(c,function(c,n){m=b+"."+n;if(h(c)&&m)if(r(c)&&(l.call(f,m,d,e,{}),k.call(f,a,m,c,d,e)),m in A){var u=g.addSelection.call(f,d,m,e);g.addSelectionOptions.call(f,a,b,u,d,n,c)}else"params.volumeSeriesID"===m||p(c)||l.call(f,m,d,e,{value:c,type:"text"})})},getAmount:function(){var a=0;this.series.forEach(function(b){var c=b.options;(b.params||c&&c.params)&&a++});return a}},tabs:{init:function(a){var b=this.tabs,c=this.indicators.getAmount.call(a);
|
|
196
|
+
a&&(a=b.addMenuItem.call(this,"add"),b.addMenuItem.call(this,"edit",c),b.addContentItem.call(this,"add"),b.addContentItem.call(this,"edit"),b.switchTabs.call(this,c),b.selectTab.call(this,a,0))},addMenuItem:function(a,b){var c=this.popup.container,e="highcharts-tab-item",f=this.lang;0===b&&(e+=" highcharts-tab-disabled");b=d("span",{className:e},void 0,c);b.appendChild(g.createTextNode(f[a+"Button"]||a));b.setAttribute("highcharts-data-tab-type",a);return b},addContentItem:function(){return d("div",
|
|
197
|
+
{className:"highcharts-tab-item-content highcharts-no-mousewheel"},void 0,this.popup.container)},switchTabs:function(b){var c=this,d;this.popup.container.querySelectorAll(".highcharts-tab-item").forEach(function(e,f){d=e.getAttribute("highcharts-data-tab-type");"edit"===d&&0===b||["click","touchstart"].forEach(function(b){a(e,b,function(){c.tabs.deselectAll.call(c);c.tabs.selectTab.call(c,this,f)})})})},selectTab:function(a,b){var c=this.popup.container.querySelectorAll(".highcharts-tab-item-content");
|
|
198
|
+
a.className+=" highcharts-tab-item-active";c[b].className+=" highcharts-tab-item-show"},deselectAll:function(){var a=this.popup.container,b=a.querySelectorAll(".highcharts-tab-item");a=a.querySelectorAll(".highcharts-tab-item-content");var c;for(c=0;c<b.length;c++)b[c].classList.remove("highcharts-tab-item-active"),a[c].classList.remove("highcharts-tab-item-show")}}};a(k,"showPopup",function(a){this.popup||(this.popup=new c.Popup(this.chart.container,this.chart.options.navigation.iconsURL||this.chart.options.stockTools&&
|
|
199
|
+
this.chart.options.stockTools.gui.iconsURL||"https://code.highcharts.com/9.3.0/gfx/stock-icons/",this.chart));this.popup.showForm(a.formType,this.chart,a.options,a.onSubmit)});a(k,"closePopup",function(){this.popup&&this.popup.closePopup()});return c.Popup});v(c,"masters/modules/annotations-advanced.src.js",[],function(){})});
|
|
174
200
|
//# sourceMappingURL=annotations-advanced.js.map
|