highcharts 10.2.1 → 10.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/es-modules/Accessibility/Accessibility.js +1 -1
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +9 -6
- package/es-modules/Accessibility/Components/LegendComponent.js +36 -32
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +1 -1
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +16 -16
- package/es-modules/Accessibility/Options/LangDefaults.js +4 -0
- package/es-modules/Core/Axis/Axis.js +42 -32
- package/es-modules/Core/Axis/Axis3DComposition.js +501 -0
- package/es-modules/Core/Axis/Axis3DDefaults.js +130 -0
- package/es-modules/Core/Axis/AxisDefaults.js +20 -7
- package/es-modules/Core/Axis/Color/ColorAxis.js +46 -52
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +4 -2
- package/es-modules/Core/Axis/NavigatorAxisComposition.js +161 -0
- package/es-modules/Core/Axis/OrdinalAxis.js +2 -1
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +1 -1
- package/es-modules/Core/Axis/RadialAxis.js +19 -5
- package/es-modules/Core/Axis/Tick.js +1 -1
- package/es-modules/Core/Axis/Tick3DComposition.js +71 -0
- package/es-modules/Core/Chart/Chart.js +16 -20
- package/es-modules/Core/Chart/Chart3D.js +4 -4
- package/es-modules/Core/Chart/ChartDefaults.js +33 -43
- package/es-modules/Core/Chart/GanttChart.js +1 -1
- package/es-modules/Core/Chart/MapChart.js +1 -1
- package/es-modules/Core/Chart/StockChart.js +11 -28
- package/es-modules/Core/{DefaultOptions.js → Defaults.js} +21 -37
- package/es-modules/Core/FormatUtilities.js +1 -1
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/Legend/Legend.js +114 -110
- package/es-modules/Core/Legend/LegendSymbol.js +9 -6
- package/es-modules/Core/MSPointer.js +4 -2
- package/es-modules/Core/Pointer.js +125 -75
- package/es-modules/Core/Renderer/SVG/SVGElement.js +0 -3
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +28 -14
- package/es-modules/Core/Series/DataLabel.js +8 -5
- package/es-modules/Core/Series/Point.js +38 -22
- package/es-modules/Core/Series/Series.js +12 -9
- package/es-modules/Core/Series/SeriesDefaults.js +36 -24
- package/es-modules/Core/Series/SeriesRegistry.js +2 -2
- package/es-modules/Core/Time.js +6 -5
- package/es-modules/Core/Tooltip.js +6 -28
- package/es-modules/Core/Utilities.js +6 -8
- package/es-modules/Extensions/Annotations/Annotation.js +1 -1
- package/es-modules/Extensions/Annotations/AnnotationDefaults.js +13 -8
- package/es-modules/Extensions/Annotations/MockPoint.js +2 -1
- package/es-modules/Extensions/Annotations/NavigationBindings.js +4 -5
- package/es-modules/Extensions/Annotations/NavigationBindingsDefaults.js +1 -1
- package/es-modules/Extensions/Annotations/Popup/Popup.js +2 -2
- package/es-modules/Extensions/Annotations/Popup/PopupAnnotations.js +4 -4
- package/es-modules/Extensions/Annotations/Popup/PopupComposition.js +1 -1
- package/es-modules/Extensions/Boost/BoostSeries.js +11 -8
- package/es-modules/Extensions/Breadcrumbs.js +2 -2
- package/es-modules/Extensions/Data.js +2 -2
- package/es-modules/Extensions/DataGrouping/ApproximationDefaults.js +157 -0
- package/es-modules/Extensions/DataGrouping/ApproximationRegistry.js +35 -0
- package/es-modules/Extensions/DataGrouping/DataGrouping.js +469 -0
- package/es-modules/Extensions/DataGrouping/DataGroupingAxisComposition.js +174 -0
- package/es-modules/Extensions/DataGrouping/DataGroupingDefaults.js +143 -0
- package/es-modules/Extensions/DataGrouping/DataGroupingSeriesComposition.js +479 -0
- package/es-modules/Extensions/Debugger/Debugger.js +1 -1
- package/es-modules/Extensions/DraggablePoints.js +6 -2
- package/es-modules/Extensions/Drilldown.js +3 -5
- package/es-modules/Extensions/ExportData/ExportData.js +31 -5
- package/es-modules/Extensions/Exporting/Exporting.js +47 -60
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +22 -24
- package/es-modules/Extensions/GeoJSON.js +3 -1
- package/es-modules/Extensions/MarkerClusters.js +1 -1
- package/es-modules/Extensions/NoDataToDisplay.js +1 -1
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +5 -5
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
- package/es-modules/Extensions/Oldie/Oldie.js +3 -3
- package/es-modules/Extensions/Oldie/VMLRenderer3D.js +1 -1
- package/es-modules/Extensions/OldiePolyfills.js +3 -1
- package/es-modules/Extensions/Pane.js +42 -5
- package/es-modules/Extensions/ParallelCoordinates.js +5 -1
- package/es-modules/Extensions/PatternFill.js +10 -10
- package/es-modules/Extensions/SeriesLabel/SeriesLabel.js +2 -2
- package/es-modules/Extensions/SeriesLabel/SeriesLabelDefaults.js +4 -0
- package/es-modules/Extensions/Sonification/Sonification.js +1 -1
- package/es-modules/Extensions/Themes/Avocado.js +1 -1
- package/es-modules/Extensions/Themes/BrandDark.js +1 -1
- package/es-modules/Extensions/Themes/BrandLight.js +1 -1
- package/es-modules/Extensions/Themes/DarkBlue.js +1 -1
- package/es-modules/Extensions/Themes/DarkGreen.js +1 -1
- package/es-modules/Extensions/Themes/DarkUnica.js +1 -1
- package/es-modules/Extensions/Themes/Gray.js +1 -1
- package/es-modules/Extensions/Themes/Grid.js +1 -1
- package/es-modules/Extensions/Themes/GridLight.js +1 -1
- package/es-modules/Extensions/Themes/HighContrastDark.js +1 -1
- package/es-modules/Extensions/Themes/HighContrastLight.js +1 -1
- package/es-modules/Extensions/Themes/SandSignika.js +1 -1
- package/es-modules/Extensions/Themes/Skies.js +1 -1
- package/es-modules/Extensions/Themes/Sunset.js +1 -1
- package/es-modules/Gantt/Connection.js +5 -5
- package/es-modules/Gantt/Pathfinder.js +6 -6
- package/es-modules/Maps/MapNavigation.js +1 -1
- package/es-modules/Maps/{MapNavigationOptionsDefault.js → MapNavigationDefaults.js} +4 -4
- package/es-modules/Maps/MapViewOptionsDefault.js +4 -4
- package/es-modules/Series/ArcDiagram/ArcDiagramSeries.js +3 -5
- package/es-modules/Series/AreaRange/AreaRangePoint.js +6 -10
- package/es-modules/Series/AreaRange/AreaRangeSeries.js +59 -48
- package/es-modules/Series/BoxPlot/BoxPlotSeries.js +4 -1
- package/es-modules/Series/Bubble/BubbleLegendComposition.js +22 -16
- package/es-modules/Series/Bubble/BubbleLegendItem.js +17 -21
- package/es-modules/Series/Candlestick/CandlestickSeries.js +15 -175
- package/es-modules/Series/Candlestick/CandlestickSeriesDefaults.js +179 -0
- package/es-modules/Series/Column/ColumnSeries.js +25 -506
- package/es-modules/Series/Column/ColumnSeriesDefaults.js +487 -0
- package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +40 -36
- package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +2 -106
- package/es-modules/Series/DependencyWheel/DependencyWheelSeriesDefaults.js +183 -0
- package/es-modules/Series/DotPlot/DotPlotSeries.js +11 -12
- package/es-modules/Series/DrawPointUtilities.js +2 -14
- package/es-modules/Series/Dumbbell/DumbbellPoint.js +5 -4
- package/es-modules/Series/Dumbbell/DumbbellSeries.js +11 -7
- package/es-modules/Series/ErrorBar/ErrorBarSeries.js +19 -136
- package/es-modules/Series/ErrorBar/ErrorBarSeriesDefaults.js +147 -0
- package/es-modules/Series/Flags/FlagsPoint.js +2 -3
- package/es-modules/Series/Flags/FlagsSeries.js +31 -298
- package/es-modules/Series/Flags/FlagsSeriesDefaults.js +295 -0
- package/es-modules/Series/Flags/FlagsSymbols.js +96 -71
- package/es-modules/Series/HLC/HLCPoint.js +2 -2
- package/es-modules/Series/HLC/HLCSeries.js +7 -172
- package/es-modules/Series/HLC/HLCSeriesDefaults.js +184 -0
- package/es-modules/Series/Heatmap/HeatmapSeries.js +3 -0
- package/es-modules/Series/HeikinAshi/HeikinAshiPoint.js +3 -20
- package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +78 -139
- package/es-modules/Series/HeikinAshi/HeikinAshiSeriesDefaults.js +102 -0
- package/es-modules/Series/Item/ItemPoint.js +0 -1
- package/es-modules/Series/Item/ItemSeries.js +13 -8
- package/es-modules/Series/Line/LineSeries.js +8 -4
- package/es-modules/Series/Map/MapPoint.js +19 -1
- package/es-modules/Series/Map/MapSeries.js +7 -3
- package/es-modules/Series/MapBubble/MapBubbleSeries.js +4 -0
- package/es-modules/Series/MapPoint/MapPointPoint.js +0 -5
- package/es-modules/Series/MapPoint/MapPointSeries.js +24 -9
- package/es-modules/Series/Networkgraph/NetworkgraphSeries.js +2 -5
- package/es-modules/Series/Networkgraph/NetworkgraphSeriesDefaults.js +2 -0
- package/es-modules/Series/OHLC/OHLCPoint.js +0 -2
- package/es-modules/Series/OHLC/OHLCSeries.js +64 -160
- package/es-modules/Series/OHLC/OHLCSeriesDefaults.js +151 -0
- package/es-modules/Series/Organization/OrganizationPoint.js +0 -2
- package/es-modules/Series/Organization/OrganizationSeries.js +96 -469
- package/es-modules/Series/Organization/OrganizationSeriesDefaults.js +415 -0
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +3 -10
- package/es-modules/Series/PackedBubble/PackedBubbleSeriesDefaults.js +2 -0
- package/es-modules/Series/PathUtilities.js +74 -0
- package/es-modules/Series/Pie/PieSeries.js +2 -644
- package/es-modules/Series/Pie/PieSeriesDefaults.js +660 -0
- package/es-modules/Series/PolarComposition.js +233 -15
- package/es-modules/Series/Sankey/SankeySeries.js +27 -530
- package/es-modules/Series/Sankey/SankeySeriesDefaults.js +522 -0
- package/es-modules/Series/Scatter/ScatterSeries.js +2 -172
- package/es-modules/Series/Scatter/ScatterSeriesDefaults.js +188 -0
- package/es-modules/Series/SolidGauge/SolidGaugeSeries.js +12 -182
- package/es-modules/Series/SolidGauge/SolidGaugeSeriesDefaults.js +199 -0
- package/es-modules/Series/Sunburst/SunburstNode.js +34 -0
- package/es-modules/Series/Sunburst/SunburstPoint.js +2 -1
- package/es-modules/Series/Sunburst/SunburstSeries.js +3 -1
- package/es-modules/Series/Timeline/TimelineSeries.js +2 -231
- package/es-modules/Series/Timeline/TimelineSeriesDefaults.js +248 -0
- package/es-modules/Series/TreeUtilities.js +1 -2
- package/es-modules/Series/Treegraph/TreegraphLayout.js +338 -0
- package/es-modules/Series/Treegraph/TreegraphLink.js +92 -0
- package/es-modules/Series/Treegraph/TreegraphNode.js +206 -0
- package/es-modules/Series/Treegraph/TreegraphPoint.js +175 -0
- package/es-modules/Series/Treegraph/TreegraphSeries.js +510 -0
- package/es-modules/Series/Treegraph/TreegraphSeriesDefaults.js +231 -0
- package/es-modules/Series/Treemap/TreemapNode.js +48 -0
- package/es-modules/Series/Treemap/TreemapPoint.js +2 -1
- package/es-modules/Series/Treemap/TreemapSeries.js +29 -27
- package/es-modules/Series/Variwide/VariwideComposition.js +70 -26
- package/es-modules/Series/Variwide/VariwidePoint.js +8 -7
- package/es-modules/Series/Variwide/VariwideSeries.js +19 -14
- package/es-modules/Series/Vector/VectorSeries.js +2 -2
- package/es-modules/Series/Venn/VennSeries.js +14 -0
- package/es-modules/Series/Waterfall/WaterfallSeries.js +0 -1
- package/es-modules/Series/Windbarb/WindbarbSeries.js +3 -2
- package/es-modules/Series/Wordcloud/WordcloudSeries.js +3 -0
- package/es-modules/Stock/Indicators/AO/AOIndicator.js +1 -2
- package/es-modules/Stock/Indicators/BB/BBIndicator.js +15 -4
- package/es-modules/Stock/Indicators/IKH/IKHIndicator.js +21 -18
- package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +1 -2
- package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +1 -2
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +1 -1
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +0 -1
- package/es-modules/Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js +3 -4
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +1 -2
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +6 -7
- package/es-modules/{Core → Stock/Navigator}/Navigator.js +112 -686
- package/es-modules/Stock/Navigator/NavigatorComposition.js +218 -0
- package/es-modules/Stock/Navigator/NavigatorDefaults.js +490 -0
- package/es-modules/Stock/Navigator/NavigatorSymbols.js +44 -0
- package/es-modules/{Extensions → Stock/RangeSelector}/RangeSelector.js +154 -818
- package/es-modules/Stock/RangeSelector/RangeSelectorComposition.js +286 -0
- package/es-modules/Stock/RangeSelector/RangeSelectorDefaults.js +521 -0
- package/es-modules/{Core → Stock/Scrollbar}/Scrollbar.js +4 -4
- package/es-modules/{Core → Stock/Scrollbar}/ScrollbarDefaults.js +1 -1
- package/es-modules/Stock/{StockToolbar.js → StockTools/StockToolbar.js} +2 -2
- package/es-modules/Stock/{StockTools.js → StockTools/StockTools.js} +3 -3
- package/es-modules/Stock/{StockToolsBindings.js → StockTools/StockToolsBindings.js} +3 -3
- package/es-modules/Stock/{StockToolsDefaults.js → StockTools/StockToolsDefaults.js} +4 -4
- package/es-modules/Stock/{StockToolsGui.js → StockTools/StockToolsGui.js} +4 -4
- package/es-modules/Stock/{StockToolsUtilities.js → StockTools/StockToolsUtilities.js} +4 -4
- package/es-modules/masters/highcharts-3d.src.js +3 -5
- 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 +6 -6
- 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/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/masters/indicators/indicators-all.src.js +1 -1
- package/es-modules/masters/indicators/indicators.src.js +1 -1
- package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
- package/es-modules/masters/indicators/klinger.src.js +1 -1
- package/es-modules/masters/indicators/macd.src.js +1 -1
- package/es-modules/masters/indicators/mfi.src.js +1 -1
- package/es-modules/masters/indicators/momentum.src.js +1 -1
- package/es-modules/masters/indicators/natr.src.js +1 -1
- package/es-modules/masters/indicators/obv.src.js +1 -1
- package/es-modules/masters/indicators/pivot-points.src.js +1 -1
- package/es-modules/masters/indicators/ppo.src.js +1 -1
- package/es-modules/masters/indicators/price-channel.src.js +1 -1
- package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
- package/es-modules/masters/indicators/psar.src.js +1 -1
- package/es-modules/masters/indicators/regressions.src.js +1 -1
- package/es-modules/masters/indicators/roc.src.js +1 -1
- package/es-modules/masters/indicators/rsi.src.js +1 -1
- package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
- package/es-modules/masters/indicators/stochastic.src.js +1 -1
- package/es-modules/masters/indicators/supertrend.src.js +1 -1
- package/es-modules/masters/indicators/tema.src.js +1 -1
- package/es-modules/masters/indicators/trendline.src.js +1 -1
- package/es-modules/masters/indicators/trix.src.js +1 -1
- package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
- package/es-modules/masters/indicators/vwap.src.js +1 -1
- package/es-modules/masters/indicators/williams-r.src.js +1 -1
- package/es-modules/masters/indicators/wma.src.js +1 -1
- package/es-modules/masters/indicators/zigzag.src.js +1 -1
- package/es-modules/masters/modules/accessibility.src.js +1 -1
- package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
- package/es-modules/masters/modules/annotations.src.js +1 -1
- package/es-modules/masters/modules/arc-diagram.src.js +1 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
- package/es-modules/masters/modules/boost-canvas.src.js +1 -1
- package/es-modules/masters/modules/boost.src.js +1 -1
- package/es-modules/masters/modules/broken-axis.src.js +1 -1
- package/es-modules/masters/modules/bullet.src.js +1 -1
- package/es-modules/masters/modules/coloraxis.src.js +1 -1
- package/es-modules/masters/modules/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 +1 -1
- package/es-modules/masters/modules/datagrouping.src.js +11 -3
- 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 +9 -5
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +1 -1
- package/es-modules/masters/modules/heikinashi.src.js +5 -2
- package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
- package/es-modules/masters/modules/item-series.src.js +1 -1
- package/es-modules/masters/modules/lollipop.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +1 -1
- package/es-modules/masters/modules/marker-clusters.src.js +1 -1
- package/es-modules/masters/modules/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/series-on-point.src.js +1 -1
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/sonification.src.js +1 -1
- package/es-modules/masters/modules/static-scale.src.js +1 -1
- package/es-modules/masters/modules/stock-tools.src.js +4 -4
- package/es-modules/masters/modules/stock.src.js +17 -11
- 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/treegraph.src.js +13 -0
- 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 +5 -2
- 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/brand-dark.src.js +1 -1
- package/es-modules/masters/themes/brand-light.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 +97 -98
- package/highcharts-3d.js.map +1 -1
- package/highcharts-3d.src.js +476 -449
- package/highcharts-gantt.js +811 -808
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +14619 -14112
- package/highcharts-more.d.ts +0 -8
- package/highcharts-more.js +208 -201
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.d.ts +0 -8
- package/highcharts-more.src.js +679 -289
- package/highcharts.d.ts +30739 -6156
- package/highcharts.js +590 -589
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +30739 -6156
- package/highcharts.src.js +1988 -1799
- package/highmaps.js +759 -757
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +2339 -2077
- package/highstock.js +802 -794
- package/highstock.js.map +1 -1
- package/highstock.src.js +12349 -11416
- package/indicators/acceleration-bands.js +1 -1
- package/indicators/acceleration-bands.src.js +1 -1
- package/indicators/accumulation-distribution.js +1 -1
- package/indicators/accumulation-distribution.src.js +1 -1
- package/indicators/ao.js +6 -6
- package/indicators/ao.js.map +1 -1
- package/indicators/ao.src.js +4 -3
- package/indicators/apo.js +1 -1
- package/indicators/apo.src.js +1 -1
- package/indicators/aroon-oscillator.js +1 -1
- package/indicators/aroon-oscillator.src.js +1 -1
- package/indicators/aroon.js +1 -1
- package/indicators/aroon.src.js +1 -1
- package/indicators/atr.js +1 -1
- package/indicators/atr.src.js +1 -1
- package/indicators/bollinger-bands.js +1 -1
- package/indicators/bollinger-bands.js.map +1 -1
- package/indicators/bollinger-bands.src.js +16 -5
- package/indicators/cci.js +1 -1
- package/indicators/cci.src.js +1 -1
- package/indicators/chaikin.js +1 -1
- package/indicators/chaikin.src.js +1 -1
- package/indicators/cmf.js +1 -1
- package/indicators/cmf.src.js +1 -1
- package/indicators/cmo.d.ts +17 -0
- package/indicators/cmo.js +1 -1
- package/indicators/cmo.src.d.ts +17 -0
- package/indicators/cmo.src.js +1 -1
- package/indicators/dema.js +1 -1
- package/indicators/dema.src.js +1 -1
- package/indicators/disparity-index.d.ts +17 -0
- package/indicators/disparity-index.js +1 -1
- package/indicators/disparity-index.src.d.ts +17 -0
- package/indicators/disparity-index.src.js +1 -1
- package/indicators/dmi.d.ts +17 -0
- package/indicators/dmi.js +1 -1
- package/indicators/dmi.src.d.ts +17 -0
- package/indicators/dmi.src.js +1 -1
- package/indicators/dpo.js +1 -1
- package/indicators/dpo.src.js +1 -1
- package/indicators/ichimoku-kinko-hyo.js +14 -14
- package/indicators/ichimoku-kinko-hyo.js.map +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +22 -19
- package/indicators/indicators-all.js +198 -199
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.js +63 -57
- package/indicators/indicators.js +13 -13
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +1 -15
- package/indicators/keltner-channels.js +1 -1
- package/indicators/keltner-channels.src.js +1 -1
- package/indicators/klinger.d.ts +17 -0
- package/indicators/klinger.js +12 -12
- package/indicators/klinger.js.map +1 -1
- package/indicators/klinger.src.d.ts +17 -0
- package/indicators/klinger.src.js +4 -3
- package/indicators/macd.js +1 -1
- package/indicators/macd.js.map +1 -1
- package/indicators/macd.src.js +4 -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 +1 -1
- package/indicators/natr.src.js +1 -1
- package/indicators/obv.d.ts +17 -0
- package/indicators/obv.js +1 -1
- package/indicators/obv.src.d.ts +17 -0
- package/indicators/obv.src.js +1 -1
- package/indicators/pivot-points.js +2 -2
- package/indicators/pivot-points.js.map +1 -1
- package/indicators/pivot-points.src.js +2 -2
- package/indicators/ppo.js +1 -1
- package/indicators/ppo.src.js +1 -1
- package/indicators/price-channel.js +1 -1
- package/indicators/price-channel.src.js +1 -1
- package/indicators/price-envelopes.js +1 -1
- package/indicators/price-envelopes.src.js +1 -1
- package/indicators/psar.js +1 -1
- package/indicators/psar.src.js +1 -1
- package/indicators/regressions.js +1 -1
- package/indicators/regressions.src.js +1 -1
- package/indicators/roc.js +1 -1
- package/indicators/roc.src.js +1 -1
- package/indicators/rsi.js +1 -1
- package/indicators/rsi.src.js +1 -1
- package/indicators/slow-stochastic.js +5 -5
- package/indicators/slow-stochastic.js.map +1 -1
- package/indicators/slow-stochastic.src.js +6 -5
- package/indicators/stochastic.js +1 -1
- package/indicators/stochastic.src.js +1 -1
- package/indicators/supertrend.js +7 -7
- package/indicators/supertrend.js.map +1 -1
- package/indicators/supertrend.src.js +4 -3
- package/indicators/tema.js +1 -1
- package/indicators/tema.src.js +1 -1
- package/indicators/trendline.js +1 -1
- package/indicators/trendline.src.js +1 -1
- package/indicators/trix.js +1 -1
- package/indicators/trix.src.js +1 -1
- package/indicators/volume-by-price.js +17 -17
- package/indicators/volume-by-price.js.map +1 -1
- package/indicators/volume-by-price.src.js +9 -8
- package/indicators/vwap.js +1 -1
- package/indicators/vwap.src.js +1 -1
- package/indicators/williams-r.js +1 -1
- package/indicators/williams-r.src.js +1 -1
- package/indicators/wma.js +1 -1
- package/indicators/wma.src.js +1 -1
- package/indicators/zigzag.js +1 -1
- package/indicators/zigzag.src.js +1 -1
- package/modules/accessibility.js +214 -213
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.js +991 -835
- package/modules/annotations-advanced.js +16 -16
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +29 -24
- package/modules/annotations.js +91 -91
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +29 -24
- package/modules/arc-diagram.d.ts +17 -0
- package/modules/arc-diagram.js +15 -15
- package/modules/arc-diagram.js.map +1 -1
- package/modules/arc-diagram.src.d.ts +17 -0
- package/modules/arc-diagram.src.js +6 -6
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.js +19 -19
- package/modules/boost-canvas.js.map +1 -1
- package/modules/boost-canvas.src.js +13 -8
- package/modules/boost.js +37 -37
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.js +13 -8
- 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 +25 -24
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +77 -58
- package/modules/current-date-indicator.js +1 -1
- package/modules/current-date-indicator.src.js +1 -1
- package/modules/cylinder.js +1 -1
- package/modules/cylinder.src.js +1 -1
- package/modules/data.js +27 -27
- package/modules/data.js.map +1 -1
- package/modules/data.src.js +3 -3
- package/modules/datagrouping.d.ts +31 -0
- package/modules/datagrouping.js +23 -21
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.d.ts +31 -0
- package/modules/datagrouping.src.js +921 -640
- package/modules/debugger.js +3 -3
- package/modules/debugger.js.map +1 -1
- package/modules/debugger.src.js +2 -2
- package/modules/dependency-wheel.js +12 -12
- package/modules/dependency-wheel.js.map +1 -1
- package/modules/dependency-wheel.src.js +191 -108
- package/modules/dotplot.js +6 -6
- package/modules/dotplot.js.map +1 -1
- package/modules/dotplot.src.js +10 -13
- package/modules/drag-panes.js +1 -1
- package/modules/drag-panes.src.js +1 -1
- package/modules/draggable-points.js +5 -5
- package/modules/draggable-points.js.map +1 -1
- package/modules/draggable-points.src.js +7 -3
- package/modules/drilldown.js +37 -37
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.js +5 -6
- package/modules/dumbbell.js +17 -17
- package/modules/dumbbell.js.map +1 -1
- package/modules/dumbbell.src.js +27 -22
- package/modules/export-data.js +26 -25
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +33 -6
- package/modules/exporting.js +36 -35
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.js +81 -88
- package/modules/full-screen.js +1 -1
- package/modules/full-screen.src.js +1 -1
- package/modules/funnel.js +1 -1
- package/modules/funnel.src.js +1 -1
- package/modules/funnel3d.js +1 -1
- package/modules/funnel3d.src.js +1 -1
- package/modules/gantt.js +221 -219
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +12842 -12524
- package/modules/grid-axis.js +1 -1
- package/modules/grid-axis.src.js +1 -1
- package/modules/heatmap.js +40 -40
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +80 -58
- package/modules/heikinashi.d.ts +17 -0
- package/modules/heikinashi.js +9 -8
- package/modules/heikinashi.js.map +1 -1
- package/modules/heikinashi.src.d.ts +17 -0
- package/modules/heikinashi.src.js +192 -165
- package/modules/histogram-bellcurve.js +1 -1
- package/modules/histogram-bellcurve.src.js +1 -1
- package/modules/hollowcandlestick.d.ts +17 -0
- package/modules/hollowcandlestick.js +1 -1
- package/modules/hollowcandlestick.src.d.ts +17 -0
- package/modules/hollowcandlestick.src.js +1 -1
- package/modules/item-series.js +12 -12
- package/modules/item-series.js.map +1 -1
- package/modules/item-series.src.js +14 -10
- package/modules/lollipop.js +1 -1
- package/modules/lollipop.src.js +1 -1
- package/modules/map.js +172 -171
- package/modules/map.js.map +1 -1
- package/modules/map.src.js +194 -121
- package/modules/marker-clusters.js +2 -2
- package/modules/marker-clusters.js.map +1 -1
- package/modules/marker-clusters.src.js +2 -2
- package/modules/networkgraph.js +8 -8
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.js +5 -6
- package/modules/no-data-to-display.js +4 -4
- package/modules/no-data-to-display.js.map +1 -1
- package/modules/no-data-to-display.src.js +2 -2
- package/modules/offline-exporting.js +4 -4
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +7 -7
- package/modules/oldie-polyfills.js +7 -7
- package/modules/oldie-polyfills.js.map +1 -1
- package/modules/oldie-polyfills.src.js +9 -7
- package/modules/oldie.js +30 -30
- package/modules/oldie.js.map +1 -1
- package/modules/oldie.src.js +5 -5
- package/modules/organization.js +18 -16
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +659 -495
- package/modules/overlapping-datalabels.js +1 -1
- package/modules/overlapping-datalabels.src.js +1 -1
- package/modules/parallel-coordinates.js +10 -10
- package/modules/parallel-coordinates.js.map +1 -1
- package/modules/parallel-coordinates.src.js +6 -2
- package/modules/pareto.js +1 -1
- package/modules/pareto.src.js +1 -1
- package/modules/pathfinder.js +31 -31
- package/modules/pathfinder.js.map +1 -1
- package/modules/pathfinder.src.js +19 -23
- package/modules/pattern-fill.js +2 -2
- package/modules/pattern-fill.js.map +1 -1
- package/modules/pattern-fill.src.js +11 -11
- 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.js +33 -32
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.js +571 -550
- package/modules/series-label.js +17 -17
- package/modules/series-label.js.map +1 -1
- package/modules/series-label.src.js +7 -3
- package/modules/series-on-point.d.ts +17 -0
- package/modules/series-on-point.js +1 -1
- package/modules/series-on-point.src.d.ts +17 -0
- package/modules/series-on-point.src.js +1 -1
- package/modules/solid-gauge.js +11 -10
- package/modules/solid-gauge.js.map +1 -1
- package/modules/solid-gauge.src.js +220 -192
- package/modules/sonification.js +2 -2
- package/modules/sonification.js.map +1 -1
- package/modules/sonification.src.js +2 -2
- package/modules/static-scale.js +1 -1
- package/modules/static-scale.src.js +1 -1
- package/modules/stock-tools.js +59 -59
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.js +19 -21
- package/modules/stock.d.ts +26 -6
- package/modules/stock.js +212 -205
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.d.ts +26 -6
- package/modules/stock.src.js +11361 -10617
- package/modules/streamgraph.js +1 -1
- package/modules/streamgraph.src.js +1 -1
- package/modules/sunburst.js +75 -73
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.js +133 -57
- package/modules/tilemap.js +1 -1
- package/modules/tilemap.src.js +1 -1
- package/modules/timeline.js +18 -18
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +257 -233
- package/modules/treegraph.d.ts +17 -0
- package/modules/treegraph.js +44 -0
- package/modules/treegraph.js.map +1 -0
- package/modules/treegraph.src.d.ts +17 -0
- package/modules/treegraph.src.js +1829 -0
- package/modules/treegrid.js +2 -2
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +2 -3
- package/modules/treemap.js +54 -53
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.js +90 -52
- package/modules/variable-pie.js +1 -1
- package/modules/variable-pie.src.js +1 -1
- package/modules/variwide.js +12 -12
- package/modules/variwide.js.map +1 -1
- package/modules/variwide.src.js +158 -106
- package/modules/vector.js +1 -1
- package/modules/vector.src.js +3 -3
- package/modules/venn.js +31 -31
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +17 -16
- package/modules/windbarb.js +15 -15
- package/modules/windbarb.js.map +1 -1
- package/modules/windbarb.src.js +41 -4
- package/modules/wordcloud.js +23 -23
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +6 -15
- package/modules/xrange.js +1 -1
- package/modules/xrange.src.js +1 -1
- package/package.json +1 -1
- package/themes/avocado.js +2 -3
- package/themes/avocado.js.map +1 -1
- package/themes/avocado.src.js +2 -2
- package/themes/brand-dark.d.ts +22 -0
- package/themes/brand-dark.js +3 -3
- package/themes/brand-dark.js.map +1 -1
- package/themes/brand-dark.src.d.ts +22 -0
- package/themes/brand-dark.src.js +2 -2
- package/themes/brand-light.d.ts +22 -0
- package/themes/brand-light.js +2 -2
- package/themes/brand-light.js.map +1 -1
- package/themes/brand-light.src.d.ts +22 -0
- package/themes/brand-light.src.js +2 -2
- package/themes/dark-blue.js +2 -2
- package/themes/dark-blue.js.map +1 -1
- package/themes/dark-blue.src.js +2 -2
- package/themes/dark-green.js +2 -2
- package/themes/dark-green.js.map +1 -1
- package/themes/dark-green.src.js +2 -2
- package/themes/dark-unica.js +2 -2
- package/themes/dark-unica.js.map +1 -1
- package/themes/dark-unica.src.js +2 -2
- package/themes/gray.js +2 -2
- package/themes/gray.js.map +1 -1
- package/themes/gray.src.js +2 -2
- package/themes/grid-light.js +2 -2
- package/themes/grid-light.js.map +1 -1
- package/themes/grid-light.src.js +2 -2
- package/themes/grid.js +2 -2
- package/themes/grid.js.map +1 -1
- package/themes/grid.src.js +2 -2
- package/themes/high-contrast-dark.d.ts +22 -0
- package/themes/high-contrast-dark.js +2 -2
- package/themes/high-contrast-dark.js.map +1 -1
- package/themes/high-contrast-dark.src.d.ts +22 -0
- package/themes/high-contrast-dark.src.js +2 -2
- package/themes/high-contrast-light.d.ts +22 -0
- package/themes/high-contrast-light.js +2 -2
- package/themes/high-contrast-light.js.map +1 -1
- package/themes/high-contrast-light.src.d.ts +22 -0
- package/themes/high-contrast-light.src.js +2 -2
- package/themes/sand-signika.js +2 -2
- package/themes/sand-signika.js.map +1 -1
- package/themes/sand-signika.src.js +2 -2
- package/themes/skies.js +2 -2
- package/themes/skies.js.map +1 -1
- package/themes/skies.src.js +2 -2
- package/themes/sunset.js +2 -2
- package/themes/sunset.js.map +1 -1
- package/themes/sunset.src.js +2 -2
- package/es-modules/Core/Axis/Axis3D.js +0 -612
- package/es-modules/Core/Axis/NavigatorAxis.js +0 -159
- package/es-modules/Core/Axis/Tick3D.js +0 -68
- package/es-modules/Extensions/DataGrouping.js +0 -1177
- package/es-modules/Stock/Indicators/SMA/SMAComposition.js +0 -12
package/highmaps.js
CHANGED
|
@@ -1,769 +1,771 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Highmaps JS v10.
|
|
2
|
+
Highmaps JS v10.3.1 (2022-10-31)
|
|
3
3
|
|
|
4
4
|
(c) 2011-2021 Torstein Honsi
|
|
5
5
|
|
|
6
6
|
License: www.highcharts.com/license
|
|
7
7
|
*/
|
|
8
|
-
(function(
|
|
9
|
-
{};
|
|
8
|
+
(function(Z,J){"object"===typeof module&&module.exports?(J["default"]=J,module.exports=Z.document?J(Z):J):"function"===typeof define&&define.amd?define("highcharts/highmaps",function(){return J(Z)}):(Z.Highcharts&&Z.Highcharts.error(16,!0),Z.Highcharts=J(Z))})("undefined"!==typeof window?window:this,function(Z){function J(b,K,e,C){b.hasOwnProperty(K)||(b[K]=C.apply(null,e),"function"===typeof CustomEvent&&Z.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:K,module:b[K]}})))}var e=
|
|
9
|
+
{};J(e,"Core/Globals.js",[],function(){var b;(function(b){b.SVG_NS="http://www.w3.org/2000/svg";b.product="Highcharts";b.version="10.3.1";b.win="undefined"!==typeof Z?Z:{};b.doc=b.win.document;b.svg=b.doc&&b.doc.createElementNS&&!!b.doc.createElementNS(b.SVG_NS,"svg").createSVGRect;b.userAgent=b.win.navigator&&b.win.navigator.userAgent||"";b.isChrome=-1!==b.userAgent.indexOf("Chrome");b.isFirefox=-1!==b.userAgent.indexOf("Firefox");b.isMS=/(edge|msie|trident)/i.test(b.userAgent)&&!b.win.opera;b.isSafari=
|
|
10
10
|
!b.isChrome&&-1!==b.userAgent.indexOf("Safari");b.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(b.userAgent);b.isWebKit=-1!==b.userAgent.indexOf("AppleWebKit");b.deg2rad=2*Math.PI/360;b.hasBidiBug=b.isFirefox&&4>parseInt(b.userAgent.split("Firefox/")[1],10);b.hasTouch=!!b.win.TouchEvent;b.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];b.noop=function(){};b.supportsPassiveEvents=function(){var e=!1;if(!b.isMS){var K=Object.defineProperty({},"passive",{get:function(){e=!0}});
|
|
11
|
-
b.win.addEventListener&&b.win.removeEventListener&&(b.win.addEventListener("testPassive",b.noop,K),b.win.removeEventListener("testPassive",b.noop,K))}return e}();b.charts=[];b.dateFormats={};b.seriesTypes={};b.symbolSizes={};b.chartCount=0})(b||(b={}));"";return b});
|
|
12
|
-
if("undefined"!==typeof H){var
|
|
13
|
-
function
|
|
14
|
-
typeof c&&null!==c}function a(c,
|
|
15
|
-
|
|
16
|
-
"padding-bottom",!0)||0));
|
|
17
|
-
"function"===typeof c&&c.prototype||c;if(Object.hasOwnProperty.call(
|
|
18
|
-
type:
|
|
19
|
-
function(c,
|
|
20
|
-
[].slice.call(arguments);if(this[0])return c[0]?(new (b[
|
|
21
|
-
H.passive?-1!==
|
|
22
|
-
createElement:function(c,
|
|
23
|
-
new c;
|
|
24
|
-
isObject:F,isString:
|
|
25
|
-
a?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===H&&(1===
|
|
26
|
-
(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
K(
|
|
32
|
-
1!==
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
this.timezoneOffset){if("Milliseconds"===a||"Seconds"===a||"Minutes"===a&&0===this.getTimezoneOffset(
|
|
36
|
-
d)&&a.timezoneOffset||void 0;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=d&&!(!a.getTimezoneOffset&&!a.timezone)};
|
|
37
|
-
this,d=this.options,
|
|
38
|
-
var
|
|
39
|
-
function(c,
|
|
40
|
-
Math.floor(
|
|
41
|
-
|
|
42
|
-
c)&&(
|
|
43
|
-
|
|
11
|
+
b.win.addEventListener&&b.win.removeEventListener&&(b.win.addEventListener("testPassive",b.noop,K),b.win.removeEventListener("testPassive",b.noop,K))}return e}();b.charts=[];b.dateFormats={};b.seriesTypes={};b.symbolSizes={};b.chartCount=0})(b||(b={}));"";return b});J(e,"Core/Utilities.js",[e["Core/Globals.js"]],function(b){function e(c,g,h,H){var z=g?"Highcharts error":"Highcharts warning";32===c&&(c=""+z+": Deprecated member");var a=m(c),G=a?""+z+" #"+c+": www.highcharts.com/errors/"+c+"/":c.toString();
|
|
12
|
+
if("undefined"!==typeof H){var n="";a&&(G+="?");w(H,function(c,g){n+="\n - ".concat(g,": ").concat(c);a&&(G+=encodeURI(g)+"="+encodeURI(c))});G+=n}t(b,"displayError",{chart:h,code:c,message:G,params:H},function(){if(g)throw Error(G);r.console&&-1===e.messages.indexOf(G)&&console.warn(G)});e.messages.push(G)}function u(c,g){var z={};w(c,function(H,h){if(F(c[h],!0)&&!c.nodeType&&g[h])H=u(c[h],g[h]),Object.keys(H).length&&(z[h]=H);else if(F(c[h])||c[h]!==g[h]||h in c&&!(h in g))z[h]=c[h]});return z}
|
|
13
|
+
function C(c,g){return parseInt(c,g||10)}function B(c){return"string"===typeof c}function q(c){c=Object.prototype.toString.call(c);return"[object Array]"===c||"[object Array Iterator]"===c}function F(c,g){return!!c&&"object"===typeof c&&(!g||!q(c))}function x(c){return F(c)&&"number"===typeof c.nodeType}function v(c){var g=c&&c.constructor;return!(!F(c,!0)||x(c)||!g||!g.name||"Object"===g.name)}function m(c){return"number"===typeof c&&!isNaN(c)&&Infinity>c&&-Infinity<c}function l(c){return"undefined"!==
|
|
14
|
+
typeof c&&null!==c}function a(c,g,h){var H=B(g)&&!l(h),z,a=function(g,h){l(g)?c.setAttribute(h,g):H?(z=c.getAttribute(h))||"class"!==h||(z=c.getAttribute(h+"Name")):c.removeAttribute(h)};B(g)?a(h,g):w(g,a);return z}function f(c,g){var h;c||(c={});for(h in g)c[h]=g[h];return c}function d(){for(var c=arguments,g=c.length,h=0;h<g;h++){var H=c[h];if("undefined"!==typeof H&&null!==H)return H}}function k(c,g){b.isMS&&!b.svg&&g&&l(g.opacity)&&(g.filter="alpha(opacity=".concat(100*g.opacity,")"));f(c.style,
|
|
15
|
+
g)}function p(c){return Math.pow(10,Math.floor(Math.log(c)/Math.LN10))}function E(c,g){return 1E14<c?c:parseFloat(c.toPrecision(g||14))}function A(c,g,h){var H=b.getStyle||A;if("width"===g)return g=Math.min(c.offsetWidth,c.scrollWidth),h=c.getBoundingClientRect&&c.getBoundingClientRect().width,h<g&&h>=g-1&&(g=Math.floor(h)),Math.max(0,g-(H(c,"padding-left",!0)||0)-(H(c,"padding-right",!0)||0));if("height"===g)return Math.max(0,Math.min(c.offsetHeight,c.scrollHeight)-(H(c,"padding-top",!0)||0)-(H(c,
|
|
16
|
+
"padding-bottom",!0)||0));r.getComputedStyle||e(27,!0);if(c=r.getComputedStyle(c,void 0)){var z=c.getPropertyValue(g);d(h,"opacity"!==g)&&(z=C(z))}return z}function w(c,g,h){for(var H in c)Object.hasOwnProperty.call(c,H)&&g.call(h||c[H],c[H],H,c)}function I(c,g,h){function H(g,h){var H=c.removeEventListener||b.removeEventListenerPolyfill;H&&H.call(c,g,h,!1)}function a(h){var z;if(c.nodeName){if(g){var a={};a[g]=!0}else a=h;w(a,function(c,g){if(h[g])for(z=h[g].length;z--;)H(g,h[g][z].fn)})}}var z=
|
|
17
|
+
"function"===typeof c&&c.prototype||c;if(Object.hasOwnProperty.call(z,"hcEvents")){var n=z.hcEvents;g?(z=n[g]||[],h?(n[g]=z.filter(function(c){return h!==c.fn}),H(g,h)):(a(n),n[g]=[])):(a(n),delete z.hcEvents)}}function t(c,g,h,H){h=h||{};if(y.createEvent&&(c.dispatchEvent||c.fireEvent&&c!==b)){var a=y.createEvent("Events");a.initEvent(g,!0,!0);h=f(a,h);c.dispatchEvent?c.dispatchEvent(h):c.fireEvent(g,h)}else if(c.hcEvents){h.target||f(h,{preventDefault:function(){h.defaultPrevented=!0},target:c,
|
|
18
|
+
type:g});a=[];for(var z=c,n=!1;z.hcEvents;)Object.hasOwnProperty.call(z,"hcEvents")&&z.hcEvents[g]&&(a.length&&(n=!0),a.unshift.apply(a,z.hcEvents[g])),z=Object.getPrototypeOf(z);n&&a.sort(function(c,g){return c.order-g.order});a.forEach(function(g){!1===g.fn.call(c,h)&&h.preventDefault()})}H&&!h.defaultPrevented&&H.call(c,h)}var h=b.charts,y=b.doc,r=b.win;(e||(e={})).messages=[];Math.easeInOutSine=function(c){return-.5*(Math.cos(Math.PI*c)-1)};var n=Array.prototype.find?function(c,g){return c.find(g)}:
|
|
19
|
+
function(c,g){var h,H=c.length;for(h=0;h<H;h++)if(g(c[h],h))return c[h]};w({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(c,g){b[g]=function(h){var H;e(32,!1,void 0,(H={},H["Highcharts.".concat(g)]="use Array.".concat(c),H));return Array.prototype[c].apply(h,[].slice.call(arguments,1))}});var g,D=function(){var c=Math.random().toString(36).substring(2,9)+"-",h=0;return function(){return"highcharts-"+(g?"":c)+h++}}();r.jQuery&&(r.jQuery.fn.highcharts=function(){var c=
|
|
20
|
+
[].slice.call(arguments);if(this[0])return c[0]?(new (b[B(c[0])?c.shift():"Chart"])(this[0],c[0],c[1]),this):h[a(this[0],"data-highcharts-chart")]});n={addEvent:function(c,g,h,H){void 0===H&&(H={});var a="function"===typeof c&&c.prototype||c;Object.hasOwnProperty.call(a,"hcEvents")||(a.hcEvents={});a=a.hcEvents;b.Point&&c instanceof b.Point&&c.series&&c.series.chart&&(c.series.chart.runTrackerClick=!0);var z=c.addEventListener||b.addEventListenerPolyfill;z&&z.call(c,g,h,b.supportsPassiveEvents?{passive:void 0===
|
|
21
|
+
H.passive?-1!==g.indexOf("touch"):H.passive,capture:!1}:!1);a[g]||(a[g]=[]);a[g].push({fn:h,order:"number"===typeof H.order?H.order:Infinity});a[g].sort(function(c,g){return c.order-g.order});return function(){I(c,g,h)}},arrayMax:function(c){for(var g=c.length,h=c[0];g--;)c[g]>h&&(h=c[g]);return h},arrayMin:function(c){for(var g=c.length,h=c[0];g--;)c[g]<h&&(h=c[g]);return h},attr:a,clamp:function(c,g,h){return c>g?c<h?c:h:g},cleanRecursively:u,clearTimeout:function(c){l(c)&&clearTimeout(c)},correctFloat:E,
|
|
22
|
+
createElement:function(c,g,h,H,a){c=y.createElement(c);g&&f(c,g);a&&k(c,{padding:"0",border:"none",margin:"0"});h&&k(c,h);H&&H.appendChild(c);return c},css:k,defined:l,destroyObjectProperties:function(c,g){w(c,function(h,H){h&&h!==g&&h.destroy&&h.destroy();delete c[H]})},discardElement:function(c){c&&c.parentElement&&c.parentElement.removeChild(c)},erase:function(c,g){for(var h=c.length;h--;)if(c[h]===g){c.splice(h,1);break}},error:e,extend:f,extendClass:function(c,g){var h=function(){};h.prototype=
|
|
23
|
+
new c;f(h.prototype,g);return h},find:n,fireEvent:t,getMagnitude:p,getNestedProperty:function(c,g){for(c=c.split(".");c.length&&l(g);){var h=c.shift();if("undefined"===typeof h||"__proto__"===h)return;g=g[h];if(!l(g)||"function"===typeof g||"number"===typeof g.nodeType||g===r)return}return g},getStyle:A,inArray:function(c,g,h){e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return g.indexOf(c,h)},isArray:q,isClass:v,isDOMElement:x,isFunction:function(c){return"function"===typeof c},isNumber:m,
|
|
24
|
+
isObject:F,isString:B,keys:function(c){e(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(c)},merge:function(){var c,g=arguments,h={},H=function(c,g){"object"!==typeof c&&(c={});w(g,function(h,a){"__proto__"!==a&&"constructor"!==a&&(!F(h,!0)||v(h)||x(h)?c[a]=g[a]:c[a]=H(c[a]||{},h))});return c};!0===g[0]&&(h=g[1],g=Array.prototype.slice.call(g,2));var a=g.length;for(c=0;c<a;c++)h=H(h,g[c]);return h},normalizeTickInterval:function(c,g,h,H,a){var n=c;h=d(h,p(c));var r=c/h;g||(g=
|
|
25
|
+
a?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===H&&(1===h?g=g.filter(function(c){return 0===c%1}):.1>=h&&(g=[1/h])));for(H=0;H<g.length&&!(n=g[H],a&&n*h>=c||!a&&r<=(g[H]+(g[H+1]||g[H]))/2);H++);return n=E(n*h,-Math.round(Math.log(.001)/Math.LN10))},objectEach:w,offset:function(c){var g=y.documentElement;c=c.parentElement||c.parentNode?c.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:c.top+(r.pageYOffset||g.scrollTop)-(g.clientTop||0),left:c.left+(r.pageXOffset||g.scrollLeft)-
|
|
26
|
+
(g.clientLeft||0),width:c.width,height:c.height}},pad:function(c,g,h){return Array((g||2)+1-String(c).replace("-","").length).join(h||"0")+c},pick:d,pInt:C,relativeLength:function(c,g,h){return/%$/.test(c)?g*parseFloat(c)/100+(h||0):parseFloat(c)},removeEvent:I,splat:function(c){return q(c)?c:[c]},stableSort:function(c,g){var h=c.length,H,a;for(a=0;a<h;a++)c[a].safeI=a;c.sort(function(c,h){H=g(c,h);return 0===H?c.safeI-h.safeI:H});for(a=0;a<h;a++)delete c[a].safeI},syncTimeout:function(c,g,h){if(0<
|
|
27
|
+
g)return setTimeout(c,g,h);c.call(0,h);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5},uniqueKey:D,useSerialIds:function(c){return g=d(c,g)},wrap:function(c,g,h){var a=c[g];c[g]=function(){var c=arguments,g=this;return h.apply(this,[function(){return a.apply(g,arguments.length?arguments:c)}].concat([].slice.call(arguments)))}}};"";return n});J(e,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,
|
|
28
|
+
type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}});J(e,"Core/Color/Color.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,
|
|
29
|
+
e){var K=e.isNumber,C=e.merge,B=e.pInt;e=function(){function e(F){this.rgba=[NaN,NaN,NaN,NaN];this.input=F;var x=b.Color;if(x&&x!==e)return new x(F);if(!(this instanceof e))return new e(F);this.init(F)}e.parse=function(b){return b?new e(b):e.None};e.prototype.init=function(b){var x;if("object"===typeof b&&"undefined"!==typeof b.stops)this.stops=b.stops.map(function(a){return new e(a[1])});else if("string"===typeof b){this.input=b=e.names[b.toLowerCase()]||b;if("#"===b.charAt(0)){var v=b.length;var m=
|
|
30
|
+
parseInt(b.substr(1),16);7===v?x=[(m&16711680)>>16,(m&65280)>>8,m&255,1]:4===v&&(x=[(m&3840)>>4|(m&3840)>>8,(m&240)>>4|m&240,(m&15)<<4|m&15,1])}if(!x)for(m=e.parsers.length;m--&&!x;){var l=e.parsers[m];(v=l.regex.exec(b))&&(x=l.parse(v))}}x&&(this.rgba=x)};e.prototype.get=function(b){var x=this.input,v=this.rgba;if("object"===typeof x&&"undefined"!==typeof this.stops){var m=C(x);m.stops=[].slice.call(m.stops);this.stops.forEach(function(l,a){m.stops[a]=[m.stops[a][0],l.get(b)]});return m}return v&&
|
|
31
|
+
K(v[0])?"rgb"===b||!b&&1===v[3]?"rgb("+v[0]+","+v[1]+","+v[2]+")":"a"===b?"".concat(v[3]):"rgba("+v.join(",")+")":x};e.prototype.brighten=function(b){var x=this.rgba;if(this.stops)this.stops.forEach(function(m){m.brighten(b)});else if(K(b)&&0!==b)for(var v=0;3>v;v++)x[v]+=B(255*b),0>x[v]&&(x[v]=0),255<x[v]&&(x[v]=255);return this};e.prototype.setOpacity=function(b){this.rgba[3]=b;return this};e.prototype.tweenTo=function(b,x){var v=this.rgba,m=b.rgba;if(!K(v[0])||!K(m[0]))return b.input||"none";b=
|
|
32
|
+
1!==m[3]||1!==v[3];return(b?"rgba(":"rgb(")+Math.round(m[0]+(v[0]-m[0])*(1-x))+","+Math.round(m[1]+(v[1]-m[1])*(1-x))+","+Math.round(m[2]+(v[2]-m[2])*(1-x))+(b?","+(m[3]+(v[3]-m[3])*(1-x)):"")+")"};e.names={white:"#ffffff",black:"#000000"};e.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(b){return[B(b[1]),B(b[2]),B(b[3]),parseFloat(b[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(b){return[B(b[1]),
|
|
33
|
+
B(b[2]),B(b[3]),1]}}];e.None=new e("");return e}();"";return e});J(e,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}});J(e,"Core/Time.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e){var u=b.win,K=e.defined,B=e.error,q=e.extend,F=e.isObject,x=e.merge,v=e.objectEach,m=e.pad,l=e.pick,a=e.splat,f=e.timeUnits,d=b.isSafari&&u.Intl&&u.Intl.DateTimeFormat.prototype.formatRange,k=b.isSafari&&
|
|
34
|
+
u.Intl&&!u.Intl.DateTimeFormat.prototype.formatRange;e=function(){function p(a){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=u.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(a)}p.prototype.get=function(a,d){if(this.variableTimezone||this.timezoneOffset){var f=d.getTime(),k=f-this.getTimezoneOffset(d);d.setTime(k);a=d["getUTC"+a]();d.setTime(f);return a}return this.useUTC?d["getUTC"+a]():d["get"+a]()};p.prototype.set=function(a,f,k){if(this.variableTimezone||
|
|
35
|
+
this.timezoneOffset){if("Milliseconds"===a||"Seconds"===a||"Minutes"===a&&0===this.getTimezoneOffset(f)%36E5)return f["setUTC"+a](k);var p=this.getTimezoneOffset(f);p=f.getTime()-p;f.setTime(p);f["setUTC"+a](k);a=this.getTimezoneOffset(f);p=f.getTime()+a;return f.setTime(p)}return this.useUTC||d&&"FullYear"===a?f["setUTC"+a](k):f["set"+a](k)};p.prototype.update=function(a){void 0===a&&(a={});var d=l(a.useUTC,!0);this.options=a=x(!0,this.options,a);this.Date=a.Date||u.Date||Date;this.timezoneOffset=
|
|
36
|
+
(this.useUTC=d)&&a.timezoneOffset||void 0;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=d&&!(!a.getTimezoneOffset&&!a.timezone)};p.prototype.makeTime=function(a,d,f,p,t,h){if(this.useUTC){var y=this.Date.UTC.apply(0,arguments);var r=this.getTimezoneOffset(y);y+=r;var n=this.getTimezoneOffset(y);r!==n?y+=n-r:r-36E5!==this.getTimezoneOffset(y-36E5)||k||(y-=36E5)}else y=(new this.Date(a,d,l(f,1),l(p,0),l(t,0),l(h,0))).getTime();return y};p.prototype.timezoneOffsetFunction=
|
|
37
|
+
function(){var a=this,d=this.options,f=d.getTimezoneOffset,k=d.moment||u.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a.toString())).getTimezoneOffset()};if(d.timezone){if(k)return function(a){return 6E4*-k.tz(a,d.timezone).utcOffset()};B(25)}return this.useUTC&&f?function(a){return 6E4*f(a.valueOf())}:function(){return 6E4*(a.timezoneOffset||0)}};p.prototype.dateFormat=function(a,d,f){if(!K(d)||isNaN(d))return b.defaultOptions.lang&&b.defaultOptions.lang.invalidDate||"";a=l(a,"%Y-%m-%d %H:%M:%S");
|
|
38
|
+
var k=this,t=new this.Date(d),h=this.get("Hours",t),y=this.get("Day",t),r=this.get("Date",t),n=this.get("Month",t),g=this.get("FullYear",t),D=b.defaultOptions.lang,c=D&&D.weekdays,z=D&&D.shortWeekdays;t=q({a:z?z[y]:c[y].substr(0,3),A:c[y],d:m(r),e:m(r,2," "),w:y,b:D.shortMonths[n],B:D.months[n],m:m(n+1),o:n+1,y:g.toString().substr(2,2),Y:g,H:m(h),k:h,I:m(h%12||12),l:h%12||12,M:m(this.get("Minutes",t)),p:12>h?"AM":"PM",P:12>h?"am":"pm",S:m(t.getSeconds()),L:m(Math.floor(d%1E3),3)},b.dateFormats);v(t,
|
|
39
|
+
function(c,g){for(;-1!==a.indexOf("%"+g);)a=a.replace("%"+g,"function"===typeof c?c.call(k,d):c)});return f?a.substr(0,1).toUpperCase()+a.substr(1):a};p.prototype.resolveDTLFormat=function(d){return F(d,!0)?d:(d=a(d),{main:d[0],from:d[1],to:d[2]})};p.prototype.getTimeTicks=function(a,d,k,p){var t=this,h=[],y={},r=new t.Date(d),n=a.unitRange,g=a.count||1,D;p=l(p,1);if(K(d)){t.set("Milliseconds",r,n>=f.second?0:g*Math.floor(t.get("Milliseconds",r)/g));n>=f.second&&t.set("Seconds",r,n>=f.minute?0:g*
|
|
40
|
+
Math.floor(t.get("Seconds",r)/g));n>=f.minute&&t.set("Minutes",r,n>=f.hour?0:g*Math.floor(t.get("Minutes",r)/g));n>=f.hour&&t.set("Hours",r,n>=f.day?0:g*Math.floor(t.get("Hours",r)/g));n>=f.day&&t.set("Date",r,n>=f.month?1:Math.max(1,g*Math.floor(t.get("Date",r)/g)));if(n>=f.month){t.set("Month",r,n>=f.year?0:g*Math.floor(t.get("Month",r)/g));var c=t.get("FullYear",r)}n>=f.year&&t.set("FullYear",r,c-c%g);n===f.week&&(c=t.get("Day",r),t.set("Date",r,t.get("Date",r)-c+p+(c<p?-7:0)));c=t.get("FullYear",
|
|
41
|
+
r);p=t.get("Month",r);var z=t.get("Date",r),G=t.get("Hours",r);d=r.getTime();!t.variableTimezone&&t.useUTC||!K(k)||(D=k-d>4*f.month||t.getTimezoneOffset(d)!==t.getTimezoneOffset(k));d=r.getTime();for(r=1;d<k;)h.push(d),d=n===f.year?t.makeTime(c+r*g,0):n===f.month?t.makeTime(c,p+r*g):!D||n!==f.day&&n!==f.week?D&&n===f.hour&&1<g?t.makeTime(c,p,z,G+r*g):d+n*g:t.makeTime(c,p,z+r*g*(n===f.day?1:7)),r++;h.push(d);n<=f.hour&&1E4>h.length&&h.forEach(function(c){0===c%18E5&&"000000000"===t.dateFormat("%H%M%S%L",
|
|
42
|
+
c)&&(y[c]="day")})}h.info=q(a,{higherRanks:y,totalRange:n*g});return h};p.prototype.getDateFormat=function(a,d,k,p){var t=this.dateFormat("%m-%d %H:%M:%S.%L",d),h={millisecond:15,second:12,minute:9,hour:6,day:3},y="millisecond";for(r in f){if(a===f.week&&+this.dateFormat("%w",d)===k&&"00:00:00.000"===t.substr(6)){var r="week";break}if(f[r]>a){r=y;break}if(h[r]&&t.substr(h[r])!=="01-01 00:00:00.000".substr(h[r]))break;"week"!==r&&(y=r)}return this.resolveDTLFormat(p[r]).main};return p}();"";return e});
|
|
43
|
+
J(e,"Core/Defaults.js",[e["Core/Chart/ChartDefaults.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Color/Palettes.js"],e["Core/Time.js"],e["Core/Utilities.js"]],function(b,e,u,C,B,q){e=e.parse;var K=q.merge,x={colors:C.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
|
|
44
44
|
weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:b,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},
|
|
45
45
|
labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",
|
|
46
|
-
width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:
|
|
47
|
-
month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:
|
|
48
|
-
href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};
|
|
49
|
-
e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,
|
|
50
|
-
b;else a=this.toD||[];this.elem.attr("d",a,void 0,!0)};b.prototype.update=function(){var b=this.elem,
|
|
51
|
-
1);b.timers.length&&
|
|
52
|
-
this.end;this.pos=1;this.update();var
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
a||
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"string"===typeof a?this.parseMarkup(a):a}
|
|
59
|
-
|
|
60
|
-
a.attributes||{};
|
|
61
|
-
else{var
|
|
46
|
+
width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:u.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",
|
|
47
|
+
month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:u.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,
|
|
48
|
+
href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};x.chart.styledMode=!1;"";var v=new B(K(x.global,x.time));b={defaultOptions:x,defaultTime:v,getOptions:function(){return x},setOptions:function(m){K(!0,x,m);if(m.time||m.global)u.time?u.time.update(K(x.global,x.time,m.global,m.time)):u.time=v;return x}};"";return b});J(e,"Core/Animation/Fx.js",[e["Core/Color/Color.js"],
|
|
49
|
+
e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,u){var K=b.parse,B=e.win,q=u.isNumber,F=u.objectEach;return function(){function b(b,m,l){this.pos=NaN;this.options=m;this.elem=b;this.prop=l}b.prototype.dSetter=function(){var b=this.paths,m=b&&b[0];b=b&&b[1];var l=this.now||0,a=[];if(1!==l&&m&&b)if(m.length===b.length&&1>l)for(var f=0;f<b.length;f++){for(var d=m[f],k=b[f],p=[],E=0;E<k.length;E++){var A=d[E],w=k[E];q(A)&&q(w)&&("A"!==k[0]||4!==E&&5!==E)?p[E]=A+l*(w-A):p[E]=w}a.push(p)}else a=
|
|
50
|
+
b;else a=this.toD||[];this.elem.attr("d",a,void 0,!0)};b.prototype.update=function(){var b=this.elem,m=this.prop,l=this.now,a=this.options.step;if(this[m+"Setter"])this[m+"Setter"]();else b.attr?b.element&&b.attr(m,l,null,!0):b.style[m]=l+this.unit;a&&a.call(b,l,this)};b.prototype.run=function(v,m,l){var a=this,f=a.options,d=function(f){return d.stopped?!1:a.step(f)},k=B.requestAnimationFrame||function(a){setTimeout(a,13)},p=function(){for(var a=0;a<b.timers.length;a++)b.timers[a]()||b.timers.splice(a--,
|
|
51
|
+
1);b.timers.length&&k(p)};v!==m||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=v,this.end=m,this.unit=l,this.now=this.start,this.pos=0,d.elem=this.elem,d.prop=this.prop,d()&&1===b.timers.push(d)&&k(p)):(delete f.curAnim[this.prop],f.complete&&0===Object.keys(f.curAnim).length&&f.complete.call(this.elem))};b.prototype.step=function(b){var m=+new Date,l=this.options,a=this.elem,f=l.complete,d=l.duration,k=l.curAnim;if(a.attr&&!a.element)b=!1;else if(b||m>=d+this.startTime){this.now=
|
|
52
|
+
this.end;this.pos=1;this.update();var p=k[this.prop]=!0;F(k,function(a){!0!==a&&(p=!1)});p&&f&&f.call(a);b=!1}else this.pos=l.easing((m-this.startTime)/d),this.now=this.start+(this.end-this.start)*this.pos,this.update(),b=!0;return b};b.prototype.initPath=function(b,m,l){function a(a,h){for(;a.length<I;){var d=a[0],f=h[I-a.length];f&&"M"===d[0]&&(a[0]="C"===f[0]?["C",d[1],d[2],d[1],d[2],d[1],d[2]]:["L",d[1],d[2]]);a.unshift(d);p&&(d=a.pop(),a.push(a[a.length-1],d))}}function f(a,h){for(;a.length<
|
|
53
|
+
I;)if(h=a[Math.floor(a.length/E)-1].slice(),"C"===h[0]&&(h[1]=h[5],h[2]=h[6]),p){var d=a[Math.floor(a.length/E)].slice();a.splice(a.length/2,0,h,d)}else a.push(h)}var d=b.startX,k=b.endX;l=l.slice();var p=b.isArea,E=p?2:1;m=m&&m.slice();if(!m)return[l,l];if(d&&k&&k.length){for(b=0;b<d.length;b++)if(d[b]===k[0]){var A=b;break}else if(d[0]===k[k.length-d.length+b]){A=b;var w=!0;break}else if(d[d.length-1]===k[k.length-d.length+b]){A=d.length-b;break}"undefined"===typeof A&&(m=[])}if(m.length&&q(A)){var I=
|
|
54
|
+
l.length+A*E;w?(a(m,l),f(l,m)):(a(l,m),f(m,l))}return[m,l]};b.prototype.fillSetter=function(){b.prototype.strokeSetter.apply(this,arguments)};b.prototype.strokeSetter=function(){this.elem.attr(this.prop,K(this.start).tweenTo(K(this.end),this.pos),void 0,!0)};b.timers=[];return b}()});J(e,"Core/Animation/AnimationUtilities.js",[e["Core/Animation/Fx.js"],e["Core/Utilities.js"]],function(b,e){function u(a){return v(a)?m({duration:500,defer:0},a):{duration:a?500:0,defer:0}}function K(a,d){for(var f=b.timers.length;f--;)b.timers[f].elem!==
|
|
55
|
+
a||d&&d!==b.timers[f].prop||(b.timers[f].stopped=!0)}var B=e.defined,q=e.getStyle,F=e.isArray,x=e.isNumber,v=e.isObject,m=e.merge,l=e.objectEach,a=e.pick;return{animate:function(a,d,k){var f,E="",A,w;if(!v(k)){var I=arguments;k={duration:I[2],easing:I[3],complete:I[4]}}x(k.duration)||(k.duration=400);k.easing="function"===typeof k.easing?k.easing:Math[k.easing]||Math.easeInOutSine;k.curAnim=m(d);l(d,function(t,h){K(a,h);w=new b(a,k,h);A=void 0;"d"===h&&F(d.d)?(w.paths=w.initPath(a,a.pathArray,d.d),
|
|
56
|
+
w.toD=d.d,f=0,A=1):a.attr?f=a.attr(h):(f=parseFloat(q(a,h))||0,"opacity"!==h&&(E="px"));A||(A=t);"string"===typeof A&&A.match("px")&&(A=A.replace(/px/g,""));w.run(f,A,E)})},animObject:u,getDeferredAnimation:function(a,d,k){var f=u(d),l=0,A=0;(k?[k]:a.series).forEach(function(a){a=u(a.options.animation);l=d&&B(d.defer)?f.defer:Math.max(l,a.duration+a.defer);A=Math.min(f.duration,a.duration)});a.renderer.forExport&&(l=0);return{defer:Math.max(0,l-A),duration:Math.min(l,A)}},setAnimation:function(f,
|
|
57
|
+
d){d.renderer.globalAnimation=a(f,d.options.chart.animation,!0)},stop:K}});J(e,"Core/Renderer/HTML/AST.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e){var u=b.SVG_NS,K=e.attr,B=e.createElement,q=e.css,F=e.error,x=e.isFunction,v=e.isString,m=e.objectEach,l=e.splat,a=(e=b.win.trustedTypes)&&x(e.createPolicy)&&e.createPolicy("highcharts",{createHTML:function(a){return a}}),f=a?a.createHTML(""):"";try{var d=!!(new DOMParser).parseFromString(f,"text/html")}catch(k){d=!1}x=function(){function k(a){this.nodes=
|
|
58
|
+
"string"===typeof a?this.parseMarkup(a):a}k.filterUserAttributes=function(a){m(a,function(d,f){var p=!0;-1===k.allowedAttributes.indexOf(f)&&(p=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(f)&&(p=v(d)&&k.allowedReferences.some(function(a){return 0===d.indexOf(a)}));p||(F(33,!1,void 0,{"Invalid attribute in config":"".concat(f)}),delete a[f])});return a};k.parseStyle=function(a){return a.split(";").reduce(function(a,d){d=d.split(":").map(function(a){return a.trim()});var f=d.shift();
|
|
59
|
+
f&&d.length&&(a[f.replace(/-([a-z])/g,function(a){return a[1].toUpperCase()})]=d.join(":"));return a},{})};k.setElementHTML=function(a,d){a.innerHTML=k.emptyHTML;d&&(new k(d)).addToDOM(a)};k.prototype.addToDOM=function(a){function d(a,f){var p;l(a).forEach(function(a){var h=a.tagName,y=a.textContent?b.doc.createTextNode(a.textContent):void 0,r=k.bypassHTMLFiltering;if(h)if("#text"===h)var n=y;else if(-1!==k.allowedTags.indexOf(h)||r){h=b.doc.createElementNS("svg"===h?u:f.namespaceURI||u,h);var g=
|
|
60
|
+
a.attributes||{};m(a,function(a,c){"tagName"!==c&&"attributes"!==c&&"children"!==c&&"style"!==c&&"textContent"!==c&&(g[c]=a)});K(h,r?g:k.filterUserAttributes(g));a.style&&q(h,a.style);y&&h.appendChild(y);d(a.children||[],h);n=h}else F(33,!1,void 0,{"Invalid tagName in config":h});n&&f.appendChild(n);p=n});return p}return d(this.nodes,a)};k.prototype.parseMarkup=function(f){var p=[];f=f.trim().replace(/ style=(["'])/g," data-style=$1");if(d)f=(new DOMParser).parseFromString(a?a.createHTML(f):f,"text/html");
|
|
61
|
+
else{var l=B("div");l.innerHTML=f;f={body:l}}var w=function(a,d){var h=a.nodeName.toLowerCase(),f={tagName:h};"#text"===h&&(f.textContent=a.textContent||"");if(h=a.attributes){var r={};[].forEach.call(h,function(g){"data-style"===g.name?f.style=k.parseStyle(g.value):r[g.name]=g.value});f.attributes=r}if(a.childNodes.length){var n=[];[].forEach.call(a.childNodes,function(g){w(g,n)});n.length&&(f.children=n)}d.push(f)};[].forEach.call(f.body.childNodes,function(a){return w(a,p)});return p};k.allowedAttributes=
|
|
62
62
|
"aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" ");
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
var
|
|
76
|
-
|
|
77
|
-
c,
|
|
78
|
-
")":"none")};
|
|
79
|
-
(
|
|
80
|
-
(
|
|
81
|
-
c.width)var
|
|
82
|
-
"3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(c=
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
this[
|
|
86
|
-
"font-size"):
|
|
87
|
-
if(
|
|
88
|
-
|
|
89
|
-
function(c){this.inverted=c;this.updateTransform();return this};
|
|
90
|
-
c&&this.safeRemoveChild(c)};
|
|
91
|
-
this,
|
|
92
|
-
dy:0}),delete
|
|
93
|
-
var
|
|
94
|
-
|
|
95
|
-
this["stroke-width"]),this.hasStroke=!0)};
|
|
96
|
-
|
|
97
|
-
">")};
|
|
98
|
-
0,
|
|
99
|
-
this[
|
|
100
|
-
|
|
101
|
-
b.prototype.scaleXSetter=b.prototype.scaleYSetter=b.prototype.translateXSetter=b.prototype.translateYSetter=b.prototype.verticalAlignSetter=function(c,
|
|
102
|
-
(e={}));return e});
|
|
103
|
-
|
|
104
|
-
(
|
|
105
|
-
a-this.ySetting)};
|
|
106
|
-
this.box&&(this.box=this.box.destroy());b.prototype.destroy.call(this)};
|
|
107
|
-
parseInt(this["stroke-width"],10):0)%2/2};
|
|
108
|
-
(this.updateBoxSize(),this.box&&this.box.shadow(a));return this};
|
|
109
|
-
|
|
110
|
-
a.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),a.add(this)),a=this.getCrispAdjust(),
|
|
111
|
-
|
|
112
|
-
0)+
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
6,e],["L",
|
|
117
|
-
e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,
|
|
118
|
-
this.svgElement,
|
|
119
|
-
|
|
120
|
-
else break;[].forEach.call(
|
|
121
|
-
a.truncate(
|
|
122
|
-
|
|
123
|
-
a.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(d,a||this.svgElement.element).h};
|
|
124
|
-
|
|
125
|
-
function(a,
|
|
126
|
-
a.textContent="":
|
|
127
|
-
e["Core/Renderer/SVG/Symbols.js"],e["Core/Renderer/SVG/TextBuilder.js"],e["Core/Utilities.js"]],function(b,e,
|
|
128
|
-
this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0;this.init(c,a,
|
|
129
|
-
[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(a.createTextNode("Created with Highcharts 10.
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
b.filterUserAttributes(
|
|
135
|
-
|
|
136
|
-
function(c,a,
|
|
137
|
-
|
|
138
|
-
return
|
|
139
|
-
"href",a):c.setAttribute("hc-svg-href",a)};c(
|
|
140
|
-
|
|
141
|
-
a
|
|
142
|
-
a.body.appendChild(this));
|
|
143
|
-
if(
|
|
144
|
-
this.style&&this.style.fontSize:a&&
|
|
145
|
-
"string"===typeof a[
|
|
146
|
-
[e["Core/Globals.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(b,e,
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
this.renderer,
|
|
150
|
-
this.textAlign].join(),c=void 0;c=!1;if(
|
|
151
|
-
this.setSpanRotation(
|
|
152
|
-
d+"% "+
|
|
153
|
-
a){function
|
|
154
|
-
"visibility"].forEach(function(
|
|
155
|
-
(this.htmlUpdateTransform(),this.doTransform=!1)};
|
|
156
|
-
|
|
157
|
-
translateYSetter:
|
|
158
|
-
week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,
|
|
159
|
-
reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",
|
|
160
|
-
{reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var b=this.axis.chart.numberFormatter;return b(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};
|
|
161
|
-
b.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};b.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};b.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(b||(b={}));return b});
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
c)};
|
|
166
|
-
function(d,
|
|
167
|
-
h.offset-(
|
|
168
|
-
(c.y-
|
|
169
|
-
d+(
|
|
170
|
-
K)));else if(
|
|
171
|
-
f.isNew||
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
a=a.y;var
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
function(b,e,
|
|
178
|
-
b=function(){function b(c,a){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=
|
|
179
|
-
this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0;this.init(c,a)}b.prototype.init=function(c,a){var
|
|
180
|
-
this.opposite);this.side=
|
|
181
|
-
this.isLinked=
|
|
182
|
-
|
|
183
|
-
var
|
|
184
|
-
function(){var c=this,a=c.chart,
|
|
185
|
-
|
|
186
|
-
this,
|
|
187
|
-
b.prototype.toValue=function(c,a){return this.translate(c-(a?0:this.pos),!0,!this.horiz,void 0,!0)};b.prototype.getPlotLinePath=function(c){function a(c,a,
|
|
188
|
-
c,function(c){
|
|
189
|
-
var
|
|
190
|
-
|
|
191
|
-
c.xData;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
typeof
|
|
195
|
-
a&&
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
this.adjustForMinRange();!(
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
this.tickInterval));c=
|
|
202
|
-
b=(
|
|
203
|
-
200)))if(this.dateTime)
|
|
204
|
-
else
|
|
205
|
-
function(c,a,
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
c.endOnTick&&(
|
|
209
|
-
g[0]:Math.min(
|
|
210
|
-
1);c.finalTickAmt=void 0}}};b.prototype.setScale=function(){var c=!1,a=!1;this.series.forEach(function(
|
|
211
|
-
(this.isDirty=
|
|
212
|
-
this.dataMax,b=this.options,
|
|
213
|
-
this.width=Math.round(
|
|
214
|
-
max:c?
|
|
215
|
-
195<a&&345>a&&(c.align="left")});return c.align};b.prototype.tickSize=function(c){var a=this.options,
|
|
216
|
-
this.ticks[c]&&this.ticks[c].label)};b.prototype.unsquish=function(){var c=this.options.labels,
|
|
217
|
-
|
|
218
|
-
if(void 0!==c)return parseInt(String(c),10);if(
|
|
219
|
-
this.maxLabelLength=
|
|
220
|
-
this.labelAlign;
|
|
221
|
-
this.options.showEmpty&&
|
|
222
|
-
this.axisTitle.isNew=!0);
|
|
223
|
-
1,1,-1][
|
|
224
|
-
|
|
225
|
-
f.offset=
|
|
226
|
-
2),d[
|
|
227
|
-
this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))};b.prototype.getTitlePosition=function(){var c=this.horiz,a=this.left,
|
|
228
|
-
0)+[-
|
|
229
|
-
!0,-1),d[c].render(a)};b.prototype.render=function(){var a=this,
|
|
230
|
-
a.getMinorTickPositions().forEach(function(c){a.renderMinorTick(c,
|
|
231
|
-
|
|
232
|
-
(
|
|
233
|
-
function(a){var
|
|
234
|
-
delete
|
|
235
|
-
chartX:c&&c.chartX,chartY:c&&c.chartY,point:a});
|
|
236
|
-
g.show().attr({d:
|
|
237
|
-
c);this.destroy(!0);this.init(
|
|
238
|
-
b.keepProps="extKey hcEvents names series userMax userMin".split(" ");return b}();"";return b});
|
|
239
|
-
a.keepProps.push("dateTime"),a.prototype.getTimeTicks=
|
|
240
|
-
1][0]])/2);e++);
|
|
241
|
-
|
|
242
|
-
function(a,
|
|
243
|
-
a=
|
|
244
|
-
b.erase,
|
|
245
|
-
1;if(b&&
|
|
246
|
-
"plotLines")};b.prototype.addPlotBandOrLine=function(b,a){var
|
|
247
|
-
[d.plotLines||[],
|
|
248
|
-
F=e.erase,
|
|
249
|
-
|
|
250
|
-
acrossPanes:
|
|
251
|
-
x)):
|
|
252
|
-
|
|
253
|
-
e["Core/Renderer/RendererRegistry.js"],e["Core/Utilities.js"]],function(b,e,
|
|
254
|
-
b.prototype.applyFilter=function(){var a=this.chart;a.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+a.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{"in":"SourceAlpha",stdDeviation:1}},
|
|
255
|
-
function(a){return a.map(function(a){var
|
|
256
|
-
!0));return
|
|
257
|
-
l,d.chartY-
|
|
258
|
-
|
|
259
|
-
this.chart.options.chart.style;var p=
|
|
260
|
-
d||this.label.attr({fill:
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
this.
|
|
287
|
-
this.
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
(
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
a.
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
2<
|
|
308
|
-
chartY:
|
|
309
|
-
"afterGetHoverData",
|
|
310
|
-
function(a,b){for(var
|
|
311
|
-
b.changedTouches)[0]:b
|
|
312
|
-
g(d,"click",b)))};b.prototype.onContainerMouseDown=function(a){var
|
|
313
|
-
d&&(a.relatedTarget||a.toElement)&&(d.pointer.reset(),d.pointer.chartPosition=void 0)
|
|
314
|
-
|
|
315
|
-
function(a){
|
|
316
|
-
"highcharts-tracker")&&
|
|
317
|
-
|
|
318
|
-
0)))};b.prototype.pinchTranslate=function(a,b,f,
|
|
319
|
-
|
|
320
|
-
"undefined"===typeof c.plotX&&(a=!1)});if(a)c&&
|
|
321
|
-
this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());
|
|
322
|
-
c.tooltipOptions.followPointer&&!c.tooltipOptions.split;var
|
|
323
|
-
h
|
|
324
|
-
c})));g||!
|
|
325
|
-
d.onmousemove=this.onContainerMouseMove.bind(this);d.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(
|
|
326
|
-
|
|
327
|
-
d&&d.mouseIsDown||(b.hoverChartIndex=a.index)};b.prototype.touch=function(a,
|
|
328
|
-
b.prototype.touchSelect=function(a){return!(!this.chart.options.chart.zooming.singleTouch||!a.touches||1!==a.touches.length)};b.prototype.zoomOption=function(a){var
|
|
329
|
-
function(b,e,
|
|
330
|
-
b}||function(a,
|
|
331
|
-
function(a){a(this.chart.container,
|
|
332
|
-
function(a){
|
|
333
|
-
(this.hasZoom||
|
|
334
|
-
x=
|
|
335
|
-
void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=a;this.init(a,
|
|
336
|
-
8);this.options=a;this.chart.styledMode||(this.itemStyle=a.itemStyle,this.itemHiddenStyle=
|
|
337
|
-
!0;
|
|
338
|
-
{item:a,visible:
|
|
339
|
-
b.prototype.destroyItem=function(a){var
|
|
340
|
-
b=this.clipHeight||this.legendHeight,c=this.titleHeight;if(a){var f=a.translateY;this.allItems.forEach(function(
|
|
341
|
-
this.chart.styledMode||this.title.css(c.style),this.title.add(this.group)),c.width||this.title.css({width:this.maxLegendWidth+"px"}),a=this.title.getBBox(),
|
|
342
|
-
0,k=this.itemStyle,
|
|
343
|
-
|
|
344
|
-
a),this.setItemEvents&&this.setItemEvents(a,
|
|
345
|
-
a.itemHeight=Math.round(
|
|
346
|
-
Math.max(
|
|
347
|
-
function(){var a=this.options;return this.proximate?a.align.charAt(0)+"tv":a.floating?"":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)};b.prototype.adjustMargins=function(a,
|
|
348
|
-
b.prototype.proximatePositions=function(){var a=this.chart,
|
|
349
|
-
|
|
350
|
-
"").attr({zIndex:7}).add(),this.contentGroup=
|
|
351
|
-
this.lastLineHeight+this.titleHeight;
|
|
352
|
-
this.align();this.proximate||this.positionItems();
|
|
353
|
-
"top":c.verticalAlign}),!0,a)};b.prototype.handleOverflow=function(a){var
|
|
354
|
-
|
|
355
|
-
d=
|
|
356
|
-
this.pager.add(
|
|
357
|
-
this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(a){a.attr({"class":1===
|
|
358
|
-
"pointer"}),this.down.attr({fill:
|
|
359
|
-
(g?"point":"series")+"-active",
|
|
360
|
-
function(c){var
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
e["Core/
|
|
364
|
-
|
|
365
|
-
this.
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
!
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
this.layOutTitles();for(a=
|
|
373
|
-
a.setScale()});this.getMargins();c.forEach(function(a){a.isDirty&&(
|
|
374
|
-
b.prototype.get=function(a){function c(c){return c.id===a||c.options&&c.options.id===a}for(var
|
|
375
|
-
function(){return this.series.reduce(function(a,c){c.getPointsCollection().forEach(function(c){N(c.selectedStaging,c.selected)&&a.push(c)});return a},[])};b.prototype.getSelectedSeries=function(){return this.series.filter(function(a){return a.selected})};b.prototype.setTitle=function(a,c,
|
|
376
|
-
fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
var
|
|
380
|
-
c.parentNode||(c.hcOrigDetached=!0,
|
|
381
|
-
this.options,
|
|
382
|
-
height:e+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},
|
|
383
|
-
else this.renderer.setStyle(
|
|
384
|
-
this,c=a.axisOffset=[0,0,0,0],
|
|
385
|
-
c.containerHeight)
|
|
386
|
-
|
|
387
|
-
"resize");
|
|
388
|
-
c?
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
a.borderColor,h["stroke-width"]=
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
a.render()})};b.prototype.renderLabels=function(){var a=this,c=a.options.labels;c.items&&c.items.forEach(function(
|
|
395
|
-
this.getStacks();this.getMargins(!0);this.setChartSize();
|
|
396
|
-
this.seriesGroup||(this.seriesGroup=
|
|
397
|
-
this.credits.css(
|
|
398
|
-
|
|
399
|
-
a.getAxes();(
|
|
400
|
-
this.setReflow(this.options.chart.reflow);this.warnIfA11yModuleNotLoaded();this.hasLoaded=!0};b.prototype.warnIfA11yModuleNotLoaded=function(){var a=this.options,c=this.title;a&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":c&&c.element.textContent||""}),a.accessibility&&!1===a.accessibility.enabled||
|
|
401
|
-
!1,this))};b.prototype.addSeries=function(a,c,
|
|
402
|
-
function(a,c){a=new e(this,
|
|
403
|
-
null,
|
|
404
|
-
complete:function(){
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
b.prototype.pan=function(a,c){var
|
|
412
|
-
!
|
|
413
|
-
Math.max(N(a.options.threshold,-Infinity),c.dataMax,
|
|
414
|
-
!1),h=!0),
|
|
415
|
-
propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});"";return b});
|
|
416
|
-
0},
|
|
417
|
-
b.baseline-
|
|
63
|
+
k.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");k.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead tbody tspan td th tr u ul #text".split(" ");k.emptyHTML=f;k.bypassHTMLFiltering=!1;return k}();"";return x});
|
|
64
|
+
J(e,"Core/FormatUtilities.js",[e["Core/Defaults.js"],e["Core/Utilities.js"]],function(b,e){function u(b,l,a,f){b=+b||0;l=+l;var d=K.lang,k=(b.toString().split(".")[1]||"").split("e")[0].length,p=b.toString().split("e"),E=l;if(-1===l)l=Math.min(k,20);else if(!F(l))l=2;else if(l&&p[1]&&0>p[1]){var A=l+ +p[1];0<=A?(p[0]=(+p[0]).toExponential(A).split("e")[0],l=A):(p[0]=p[0].split(".")[0]||0,b=20>l?(p[0]*Math.pow(10,p[1])).toFixed(l):0,p[1]=0)}A=(Math.abs(p[1]?p[0]:b)+Math.pow(10,-Math.max(l,k)-1)).toFixed(l);
|
|
65
|
+
k=String(v(A));var w=3<k.length?k.length%3:0;a=x(a,d.decimalPoint);f=x(f,d.thousandsSep);b=(0>b?"-":"")+(w?k.substr(0,w)+f:"");b=0>+p[1]&&!E?"0":b+k.substr(w).replace(/(\d{3})(?=\d)/g,"$1"+f);l&&(b+=a+A.slice(-l));p[1]&&0!==+b&&(b+="e"+p[1]);return b}var K=b.defaultOptions,B=b.defaultTime,q=e.getNestedProperty,F=e.isNumber,x=e.pick,v=e.pInt;return{dateFormat:function(b,l,a){return B.dateFormat(b,l,a)},format:function(b,l,a){var f="{",d=!1,k=/f$/,p=/\.([0-9])/,E=K.lang,A=a&&a.time||B;a=a&&a.numberFormatter||
|
|
66
|
+
u;for(var w=[];b;){var m=b.indexOf(f);if(-1===m)break;var t=b.slice(0,m);if(d){t=t.split(":");f=q(t.shift()||"",l);if(t.length&&"number"===typeof f)if(t=t.join(":"),k.test(t)){var h=parseInt((t.match(p)||["","-1"])[1],10);null!==f&&(f=a(f,h,E.decimalPoint,-1<t.indexOf(",")?E.thousandsSep:""))}else f=A.dateFormat(t,f);w.push(f)}else w.push(t);b=b.slice(m+1);f=(d=!d)?"}":"{"}w.push(b);return w.join("")},numberFormat:u}});J(e,"Core/Renderer/RendererUtilities.js",[e["Core/Utilities.js"]],function(b){var e=
|
|
67
|
+
b.clamp,u=b.pick,C=b.stableSort,B;(function(b){function q(b,v,m){var l=b,a=l.reducedLen||v,f=function(a,d){return(d.rank||0)-(a.rank||0)},d=function(a,d){return a.target-d.target},k,p=!0,E=[],A=0;for(k=b.length;k--;)A+=b[k].size;if(A>a){C(b,f);for(A=k=0;A<=a;)A+=b[k].size,k++;E=b.splice(k-1,b.length)}C(b,d);for(b=b.map(function(a){return{size:a.size,targets:[a.target],align:u(a.align,.5)}});p;){for(k=b.length;k--;)a=b[k],f=(Math.min.apply(0,a.targets)+Math.max.apply(0,a.targets))/2,a.pos=e(f-a.size*
|
|
68
|
+
a.align,0,v-a.size);k=b.length;for(p=!1;k--;)0<k&&b[k-1].pos+b[k-1].size>b[k].pos&&(b[k-1].size+=b[k].size,b[k-1].targets=b[k-1].targets.concat(b[k].targets),b[k-1].align=.5,b[k-1].pos+b[k-1].size>v&&(b[k-1].pos=v-b[k-1].size),b.splice(k,1),p=!0)}l.push.apply(l,E);k=0;b.some(function(a){var d=0;return(a.targets||[]).some(function(){l[k].pos=a.pos+d;if("undefined"!==typeof m&&Math.abs(l[k].pos-l[k].target)>m)return l.slice(0,k+1).forEach(function(a){return delete a.pos}),l.reducedLen=(l.reducedLen||
|
|
69
|
+
v)-.1*v,l.reducedLen>.1*v&&q(l,v,m),!0;d+=l[k].size;k++;return!1})});C(l,d);return l}b.distribute=q})(B||(B={}));return B});J(e,"Core/Renderer/SVG/SVGElement.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,u,C){var B=b.animate,q=b.animObject,K=b.stop,x=u.deg2rad,v=u.doc,m=u.svg,l=u.SVG_NS,a=u.win,f=C.addEvent,d=C.attr,k=C.createElement,p=C.css,E=C.defined,A=C.erase,w=C.extend,I=C.fireEvent,t=C.isArray,h=C.isFunction,
|
|
70
|
+
y=C.isString,r=C.merge,n=C.objectEach,g=C.pick,D=C.pInt,c=C.syncTimeout,z=C.uniqueKey;b=function(){function G(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=l;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}G.prototype._defaultGetter=function(c){c=g(this[c+"Value"],this[c],this.element?this.element.getAttribute(c):null,0);/^[\-0-9\.]+$/.test(c)&&(c=parseFloat(c));return c};G.prototype._defaultSetter=function(c,
|
|
71
|
+
g,a){a.setAttribute(g,c)};G.prototype.add=function(c){var g=this.renderer,a=this.element;c&&(this.parentGroup=c);this.parentInverted=c&&c.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&g.buildText(this);this.added=!0;if(!c||c.handleZ||this.zIndex)var h=this.zIndexSetter();h||(c?c.element:g.box).appendChild(a);if(this.onAdd)this.onAdd();return this};G.prototype.addClass=function(c,g){var a=g?"":this.attr("class")||"";c=(c||"").split(/ /g).reduce(function(c,g){-1===a.indexOf(g)&&
|
|
72
|
+
c.push(g);return c},a?[a]:[]).join(" ");c!==a&&this.attr("class",c);return this};G.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};G.prototype.align=function(c,a,h){var d={},H=this.renderer,f=H.alignedObjects,n,r,k;if(c){if(this.alignOptions=c,this.alignByTranslate=a,!h||y(h))this.alignTo=n=h||"renderer",A(f,this),f.push(this),h=void 0}else c=this.alignOptions,a=this.alignByTranslate,n=this.alignTo;h=g(h,H[n],"scrollablePlotBox"===n?H.plotBox:void 0,
|
|
73
|
+
H);n=c.align;var z=c.verticalAlign;H=(h.x||0)+(c.x||0);f=(h.y||0)+(c.y||0);"right"===n?r=1:"center"===n&&(r=2);r&&(H+=(h.width-(c.width||0))/r);d[a?"translateX":"x"]=Math.round(H);"bottom"===z?k=1:"middle"===z&&(k=2);k&&(f+=(h.height-(c.height||0))/k);d[a?"translateY":"y"]=Math.round(f);this[this.placed?"animate":"attr"](d);this.placed=!0;this.alignAttr=d;return this};G.prototype.alignSetter=function(c){var g={left:"start",center:"middle",right:"end"};g[c]&&(this.alignValue=c,this.element.setAttribute("text-anchor",
|
|
74
|
+
g[c]))};G.prototype.animate=function(a,h,d){var H=this,f=q(g(h,this.renderer.globalAnimation,!0));h=f.defer;g(v.hidden,v.msHidden,v.webkitHidden,!1)&&(f.duration=0);0!==f.duration?(d&&(f.complete=d),c(function(){H.element&&B(H,a,f)},h)):(this.attr(a,void 0,d||f.complete),n(a,function(c,g){f.step&&f.step.call(this,c,{prop:g,pos:1,elem:this})},this));return this};G.prototype.applyTextOutline=function(c){var g=this.element;-1!==c.indexOf("contrast")&&(c=c.replace(/contrast/g,this.renderer.getContrast(g.style.fill)));
|
|
75
|
+
var a=c.split(" ");c=a[a.length-1];if((a=a[0])&&"none"!==a&&u.svg){this.fakeTS=!0;a=a.replace(/(^[\d\.]+)(.*?)$/g,function(c,g,a){return 2*Number(g)+a});this.removeTextOutline();var h=v.createElementNS(l,"tspan");d(h,{"class":"highcharts-text-outline",fill:c,stroke:c,"stroke-width":a,"stroke-linejoin":"round"});c=g.querySelector("textPath")||g;[].forEach.call(c.childNodes,function(c){var g=c.cloneNode(!0);g.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(c){return g.removeAttribute(c)});
|
|
76
|
+
h.appendChild(g)});var f=0;[].forEach.call(c.querySelectorAll("text tspan"),function(c){f+=Number(c.getAttribute("dy"))});a=v.createElementNS(l,"tspan");a.textContent="\u200b";d(a,{x:Number(g.getAttribute("x")),dy:-f});h.appendChild(a);c.insertBefore(h,c.firstChild)}};G.prototype.attr=function(c,g,a,h){var d=this.element,f=this.symbolCustomAttribs,H,r=this,k,z;if("string"===typeof c&&"undefined"!==typeof g){var D=c;c={};c[D]=g}"string"===typeof c?r=(this[c+"Getter"]||this._defaultGetter).call(this,
|
|
77
|
+
c,d):(n(c,function(g,a){k=!1;h||K(this,a);this.symbolName&&-1!==f.indexOf(a)&&(H||(this.symbolAttr(c),H=!0),k=!0);!this.rotation||"x"!==a&&"y"!==a||(this.doTransform=!0);k||(z=this[a+"Setter"]||this._defaultSetter,z.call(this,g,a,d),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(a)&&this.updateShadows(a,g,z))},this),this.afterSetters());a&&a.call(this);return r};G.prototype.clip=function(c){return this.attr("clip-path",c?"url("+this.renderer.url+"#"+c.id+
|
|
78
|
+
")":"none")};G.prototype.crisp=function(c,g){g=g||c.strokeWidth||0;var a=Math.round(g)%2/2;c.x=Math.floor(c.x||this.x||0)+a;c.y=Math.floor(c.y||this.y||0)+a;c.width=Math.floor((c.width||this.width||0)-2*a);c.height=Math.floor((c.height||this.height||0)-2*a);E(c.strokeWidth)&&(c.strokeWidth=g);return c};G.prototype.complexColor=function(c,g,a){var h=this.renderer,d,f,H,k,D,y,p,G,l,b,w=[],A;I(this.renderer,"complexColor",{args:arguments},function(){c.radialGradient?f="radialGradient":c.linearGradient&&
|
|
79
|
+
(f="linearGradient");if(f){H=c[f];D=h.gradients;y=c.stops;l=a.radialReference;t(H)&&(c[f]=H={x1:H[0],y1:H[1],x2:H[2],y2:H[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===f&&l&&!E(H.gradientUnits)&&(k=H,H=r(H,h.getRadialAttr(l,k),{gradientUnits:"userSpaceOnUse"}));n(H,function(c,g){"id"!==g&&w.push(g,c)});n(y,function(c){w.push(c)});w=w.join(",");if(D[w])b=D[w].attr("id");else{H.id=b=z();var Q=D[w]=h.createElement(f).attr(H).add(h.defs);Q.radAttr=k;Q.stops=[];y.forEach(function(c){0===c[1].indexOf("rgba")?
|
|
80
|
+
(d=e.parse(c[1]),p=d.get("rgb"),G=d.get("a")):(p=c[1],G=1);c=h.createElement("stop").attr({offset:c[0],"stop-color":p,"stop-opacity":G}).add(Q);Q.stops.push(c)})}A="url("+h.url+"#"+b+")";a.setAttribute(g,A);a.gradient=w;c.toString=function(){return A}}})};G.prototype.css=function(c){var g=this.styles,a={},h=this.element,d=!g;c.color&&(c.fill=c.color);g&&n(c,function(c,h){g&&g[h]!==c&&(a[h]=c,d=!0)});if(d){g&&(c=w(g,a));if(null===c.width||"auto"===c.width)delete this.textWidth;else if("text"===h.nodeName.toLowerCase()&&
|
|
81
|
+
c.width)var f=this.textWidth=D(c.width);this.styles=c;f&&!m&&this.renderer.forExport&&delete c.width;var H=r(c);h.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(c){return H&&delete H[c]});p(h,H);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),c.textOutline&&this.applyTextOutline(c.textOutline))}return this};G.prototype.dashstyleSetter=function(c){var a=this["stroke-width"];"inherit"===a&&(a=1);if(c=c&&c.toLowerCase()){var h=c.replace("shortdashdotdot",
|
|
82
|
+
"3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(c=h.length;c--;)h[c]=""+D(h[c])*g(a,NaN);c=h.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",c)}};G.prototype.destroy=function(){var c=this,g=c.element||{},a=c.renderer,h=g.ownerSVGElement,d=a.isSVG&&"SPAN"===g.nodeName&&c.parentGroup||void 0;g.onclick=g.onmouseout=
|
|
83
|
+
g.onmouseover=g.onmousemove=g.point=null;K(c);if(c.clipPath&&h){var f=c.clipPath;[].forEach.call(h.querySelectorAll("[clip-path],[CLIP-PATH]"),function(c){-1<c.getAttribute("clip-path").indexOf(f.element.id)&&c.removeAttribute("clip-path")});c.clipPath=f.destroy()}if(c.stops){for(h=0;h<c.stops.length;h++)c.stops[h].destroy();c.stops.length=0;c.stops=void 0}c.safeRemoveChild(g);for(a.styledMode||c.destroyShadows();d&&d.div&&0===d.div.childNodes.length;)g=d.parentGroup,c.safeRemoveChild(d.div),delete d.div,
|
|
84
|
+
d=g;c.alignTo&&A(a.alignedObjects,c);n(c,function(g,a){c[a]&&c[a].parentGroup===c&&c[a].destroy&&c[a].destroy();delete c[a]})};G.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(c){this.safeRemoveChild(c)},this);this.shadows=void 0};G.prototype.dSetter=function(c,g,a){t(c)&&("string"===typeof c[0]&&(c=this.renderer.pathToSegments(c)),this.pathArray=c,c=c.reduce(function(c,g,a){return g&&g.join?(a?c+" ":"")+g.join(" "):(g||"").toString()},""));/(NaN| {2}|^$)/.test(c)&&(c="M 0 0");
|
|
85
|
+
this[g]!==c&&(a.setAttribute(g,c),this[g]=c)};G.prototype.fadeOut=function(c){var a=this;a.animate({opacity:0},{duration:g(c,150),complete:function(){a.hide()}})};G.prototype.fillSetter=function(c,g,a){"string"===typeof c?a.setAttribute(g,c):c&&this.complexColor(c,g,a)};G.prototype.getBBox=function(c,a){var d=this.alignValue,f=this.element,n=this.renderer,r=this.styles,k=this.textStr,z=n.cache,D=n.cacheKeys,y=f.namespaceURI===this.SVG_NS;a=g(a,this.rotation,0);var t=n.styledMode?f&&G.prototype.getStyle.call(f,
|
|
86
|
+
"font-size"):r&&r.fontSize,H;if(E(k)){var l=k.toString();-1===l.indexOf("<")&&(l=l.replace(/[0-9]/g,"0"));l+=["",a,t,this.textWidth,d,r&&r.textOverflow,r&&r.fontWeight].join()}l&&!c&&(H=z[l]);if(!H){if(y||n.forExport){try{var b=this.fakeTS&&function(c){var g=f.querySelector(".highcharts-text-outline");g&&p(g,{display:c})};h(b)&&b("none");H=f.getBBox?w({},f.getBBox()):{width:f.offsetWidth,height:f.offsetHeight,x:0,y:0};h(b)&&b("")}catch(V){""}if(!H||0>H.width)H={x:0,y:0,width:0,height:0}}else H=this.htmlGetBBox();
|
|
87
|
+
if(n.isSVG&&(n=H.width,c=H.height,y&&(H.height=c={"11px,17":14,"13px,20":16}[""+(t||"")+",".concat(Math.round(c))]||c),a)){y=Number(f.getAttribute("y")||0)-H.y;d={right:1,center:.5}[d||0]||0;r=a*x;t=(a-90)*x;var A=n*Math.cos(r);a=n*Math.sin(r);b=Math.cos(t);r=Math.sin(t);n=H.x+d*(n-A)+y*b;t=n+A;b=t-c*b;A=b-A;y=H.y+y-d*a+y*r;d=y+a;c=d-c*r;a=c-a;H.x=Math.min(n,t,b,A);H.y=Math.min(y,d,c,a);H.width=Math.max(n,t,b,A)-H.x;H.height=Math.max(y,d,c,a)-H.y}if(l&&(""===k||0<H.height)){for(;250<D.length;)delete z[D.shift()];
|
|
88
|
+
z[l]||D.push(l);z[l]=H}}return H};G.prototype.getStyle=function(c){return a.getComputedStyle(this.element||this,"").getPropertyValue(c)};G.prototype.hasClass=function(c){return-1!==(""+this.attr("class")).split(" ").indexOf(c)};G.prototype.hide=function(){return this.attr({visibility:"hidden"})};G.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};G.prototype.init=function(c,g){this.element="span"===g?k(g):v.createElementNS(this.SVG_NS,g);this.renderer=c;I(this,"afterInit")};G.prototype.invert=
|
|
89
|
+
function(c){this.inverted=c;this.updateTransform();return this};G.prototype.on=function(c,g){var a=this.onEvents;if(a[c])a[c]();a[c]=f(this.element,c,g);return this};G.prototype.opacitySetter=function(c,g,a){this.opacity=c=Number(Number(c).toFixed(3));a.setAttribute(g,c)};G.prototype.removeClass=function(c){return this.attr("class",(""+this.attr("class")).replace(y(c)?new RegExp("(^| )".concat(c,"( |$)")):c," ").replace(/ +/g," ").trim())};G.prototype.removeTextOutline=function(){var c=this.element.querySelector("tspan.highcharts-text-outline");
|
|
90
|
+
c&&this.safeRemoveChild(c)};G.prototype.safeRemoveChild=function(c){var g=c.parentNode;g&&g.removeChild(c)};G.prototype.setRadialReference=function(c){var g=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=c;g&&g.radAttr&&g.animate(this.renderer.getRadialAttr(c,g.radAttr));return this};G.prototype.setTextPath=function(c,g){var a=this;g=r(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},g);var h=this.renderer.url,d=this.text||
|
|
91
|
+
this,n=d.textPath,k=g.attributes,D=g.enabled;c=c||n&&n.path;n&&n.undo();c&&D?(g=f(d,"afterModifyTree",function(g){if(c&&D){var f=c.attr("id");f||c.attr("id",f=z());var n={x:0,y:0};E(k.dx)&&(n.dx=k.dx,delete k.dx);E(k.dy)&&(n.dy=k.dy,delete k.dy);d.attr(n);a.attr({transform:""});a.box&&(a.box=a.box.destroy());n=g.nodes.slice(0);g.nodes.length=0;g.nodes[0]={tagName:"textPath",attributes:w(k,{"text-anchor":k.textAnchor,href:""+h+"#".concat(f)}),children:n}}}),d.textPath={path:c,undo:g}):(d.attr({dx:0,
|
|
92
|
+
dy:0}),delete d.textPath);this.added&&(d.textCache="",this.renderer.buildText(d));return this};G.prototype.shadow=function(c,g,a){var h=[],f=this.element,r=this.oldShadowOptions,k={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},D=!1,z;!0===c?z=k:"object"===typeof c&&(z=w(k,c));z&&(z&&r&&n(z,function(c,g){c!==r[g]&&(D=!0)}),D&&this.destroyShadows(),this.oldShadowOptions=z);if(!z)this.destroyShadows();else if(!this.shadows){var y=z.opacity/z.width;
|
|
93
|
+
var t=this.parentInverted?"translate(".concat(z.offsetY,", ").concat(z.offsetX,")"):"translate(".concat(z.offsetX,", ").concat(z.offsetY,")");for(k=1;k<=z.width;k++){var p=f.cloneNode(!1);var G=2*z.width+1-2*k;d(p,{stroke:c.color||"#000000","stroke-opacity":y*k,"stroke-width":G,transform:t,fill:"none"});p.setAttribute("class",(p.getAttribute("class")||"")+" highcharts-shadow");a&&(d(p,"height",Math.max(d(p,"height")-G,0)),p.cutHeight=G);g?g.element.appendChild(p):f.parentNode&&f.parentNode.insertBefore(p,
|
|
94
|
+
f);h.push(p)}this.shadows=h}return this};G.prototype.show=function(c){void 0===c&&(c=!0);return this.attr({visibility:c?"inherit":"visible"})};G.prototype.strokeSetter=function(c,g,a){this[g]=c;this.stroke&&this["stroke-width"]?(G.prototype.fillSetter.call(this,this.stroke,"stroke",a),a.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===g&&0===c&&this.hasStroke?(a.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(a.setAttribute("stroke-width",
|
|
95
|
+
this["stroke-width"]),this.hasStroke=!0)};G.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var c=this.getStyle("stroke-width"),g=0;if(c.indexOf("px")===c.length-2)g=D(c);else if(""!==c){var a=v.createElementNS(l,"rect");d(a,{width:c,"stroke-width":0});this.element.parentNode.appendChild(a);g=a.getBBox().width;a.parentNode.removeChild(a)}return g};G.prototype.symbolAttr=function(c){var a=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(h){a[h]=
|
|
96
|
+
g(c[h],a[h])});a.attr({d:a.renderer.symbols[a.symbolName](a.x,a.y,a.width,a.height,a)})};G.prototype.textSetter=function(c){c!==this.textStr&&(delete this.textPxLength,this.textStr=c,this.added&&this.renderer.buildText(this))};G.prototype.titleSetter=function(c){var a=this.element,h=a.getElementsByTagName("title")[0]||v.createElementNS(this.SVG_NS,"title");a.insertBefore?a.insertBefore(h,a.firstChild):a.appendChild(h);h.textContent=String(g(c,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,
|
|
97
|
+
">")};G.prototype.toFront=function(){var c=this.element;c.parentNode.appendChild(c);return this};G.prototype.translate=function(c,g){return this.attr({translateX:c,translateY:g})};G.prototype.updateShadows=function(c,g,a){var h=this.shadows;if(h)for(var d=h.length;d--;)a.call(h[d],"height"===c?Math.max(g-(h[d].cutHeight||0),0):"d"===c?this.d:g,c,h[d])};G.prototype.updateTransform=function(){var c=this.scaleX,a=this.scaleY,h=this.inverted,d=this.rotation,f=this.matrix,n=this.element,r=this.translateX||
|
|
98
|
+
0,k=this.translateY||0;h&&(r+=this.width,k+=this.height);r=["translate("+r+","+k+")"];E(f)&&r.push("matrix("+f.join(",")+")");h?r.push("rotate(90) scale(-1,1)"):d&&r.push("rotate("+d+" "+g(this.rotationOriginX,n.getAttribute("x"),0)+" "+g(this.rotationOriginY,n.getAttribute("y")||0)+")");(E(c)||E(a))&&r.push("scale("+g(c,1)+" "+g(a,1)+")");r.length&&!(this.text||this).textPath&&n.setAttribute("transform",r.join(" "))};G.prototype.visibilitySetter=function(c,g,a){"inherit"===c?a.removeAttribute(g):
|
|
99
|
+
this[g]!==c&&a.setAttribute(g,c);this[g]=c};G.prototype.xGetter=function(c){"circle"===this.element.nodeName&&("x"===c?c="cx":"y"===c&&(c="cy"));return this._defaultGetter(c)};G.prototype.zIndexSetter=function(c,g){var a=this.renderer,h=this.parentGroup,d=(h||a).element||a.box,f=this.element;a=d===a.box;var n=!1;var r=this.added;var k;E(c)?(f.setAttribute("data-z-index",c),c=+c,this[g]===c&&(r=!1)):E(this[g])&&f.removeAttribute("data-z-index");this[g]=c;if(r){(c=this.zIndex)&&h&&(h.handleZ=!0);g=
|
|
100
|
+
d.childNodes;for(k=g.length-1;0<=k&&!n;k--){h=g[k];r=h.getAttribute("data-z-index");var z=!E(r);if(h!==f)if(0>c&&z&&!a&&!k)d.insertBefore(f,g[k]),n=!0;else if(D(r)<=c||z&&(!E(c)||0<=c))d.insertBefore(f,g[k+1]||null),n=!0}n||(d.insertBefore(f,g[a?3:0]||null),n=!0)}return n};return G}();b.prototype["stroke-widthSetter"]=b.prototype.strokeSetter;b.prototype.yGetter=b.prototype.xGetter;b.prototype.matrixSetter=b.prototype.rotationOriginXSetter=b.prototype.rotationOriginYSetter=b.prototype.rotationSetter=
|
|
101
|
+
b.prototype.scaleXSetter=b.prototype.scaleYSetter=b.prototype.translateXSetter=b.prototype.translateYSetter=b.prototype.verticalAlignSetter=function(c,g){this[g]=c;this.doTransform=!0};"";return b});J(e,"Core/Renderer/RendererRegistry.js",[e["Core/Globals.js"]],function(b){var e;(function(e){e.rendererTypes={};var u;e.getRendererType=function(b){void 0===b&&(b=u);return e.rendererTypes[b]||e.rendererTypes[u]};e.registerRendererType=function(K,q,F){e.rendererTypes[K]=q;if(!u||F)u=K,b.Renderer=q}})(e||
|
|
102
|
+
(e={}));return e});J(e,"Core/Renderer/SVG/SVGLabel.js",[e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(b,e){var u=this&&this.__extends||function(){var b=function(l,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var f in d)d.hasOwnProperty(f)&&(a[f]=d[f])};return b(l,a)};return function(l,a){function f(){this.constructor=l}b(l,a);l.prototype=null===a?Object.create(a):(f.prototype=a.prototype,new f)}}(),K=e.defined,
|
|
103
|
+
B=e.extend,q=e.isNumber,F=e.merge,x=e.pick,v=e.removeEvent;return function(m){function l(a,f,d,k,p,b,A,w,I,t){var h=m.call(this)||this;h.paddingLeftSetter=h.paddingSetter;h.paddingRightSetter=h.paddingSetter;h.init(a,"g");h.textStr=f;h.x=d;h.y=k;h.anchorX=b;h.anchorY=A;h.baseline=I;h.className=t;h.addClass("button"===t?"highcharts-no-tooltip":"highcharts-label");t&&h.addClass("highcharts-"+t);h.text=a.text(void 0,0,0,w).attr({zIndex:1});var y;"string"===typeof p&&((y=/^url\((.*?)\)$/.test(p))||h.renderer.symbols[p])&&
|
|
104
|
+
(h.symbolKey=p);h.bBox=l.emptyBBox;h.padding=3;h.baselineOffset=0;h.needsBox=a.styledMode||y;h.deferredAttr={};h.alignFactor=0;return h}u(l,m);l.prototype.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==this.alignFactor&&(this.alignFactor=a,this.bBox&&q(this.xSetting)&&this.attr({x:this.xSetting}))};l.prototype.anchorXSetter=function(a,f){this.anchorX=a;this.boxAttr(f,Math.round(a)-this.getCrispAdjust()-this.xSetting)};l.prototype.anchorYSetter=function(a,f){this.anchorY=a;this.boxAttr(f,
|
|
105
|
+
a-this.ySetting)};l.prototype.boxAttr=function(a,f){this.box?this.box.attr(a,f):this.deferredAttr[a]=f};l.prototype.css=function(a){if(a){var f={};a=F(a);l.textProps.forEach(function(d){"undefined"!==typeof a[d]&&(f[d]=a[d],delete a[d])});this.text.css(f);var d="width"in f;"fontSize"in f||"fontWeight"in f?this.updateTextPadding():d&&this.updateBoxSize()}return b.prototype.css.call(this,a)};l.prototype.destroy=function(){v(this.element,"mouseenter");v(this.element,"mouseleave");this.text&&this.text.destroy();
|
|
106
|
+
this.box&&(this.box=this.box.destroy());b.prototype.destroy.call(this)};l.prototype.fillSetter=function(a,f){a&&(this.needsBox=!0);this.fill=a;this.boxAttr(f,a)};l.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var a=this.padding,f=x(this.paddingLeft,a);return{width:this.width,height:this.height,x:this.bBox.x-f,y:this.bBox.y-a}};l.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?
|
|
107
|
+
parseInt(this["stroke-width"],10):0)%2/2};l.prototype.heightSetter=function(a){this.heightSetting=a};l.prototype.onAdd=function(){var a=this.textStr;this.text.add(this);this.attr({text:K(a)?a:"",x:this.x,y:this.y});this.box&&K(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};l.prototype.paddingSetter=function(a,f){q(a)?a!==this[f]&&(this[f]=a,this.updateTextPadding()):this[f]=void 0};l.prototype.rSetter=function(a,f){this.boxAttr(f,a)};l.prototype.shadow=function(a){a&&!this.renderer.styledMode&&
|
|
108
|
+
(this.updateBoxSize(),this.box&&this.box.shadow(a));return this};l.prototype.strokeSetter=function(a,f){this.stroke=a;this.boxAttr(f,a)};l.prototype["stroke-widthSetter"]=function(a,f){a&&(this.needsBox=!0);this["stroke-width"]=a;this.boxAttr(f,a)};l.prototype["text-alignSetter"]=function(a){this.textAlign=a};l.prototype.textSetter=function(a){"undefined"!==typeof a&&this.text.attr({text:a});this.updateTextPadding()};l.prototype.updateBoxSize=function(){var a=this.text,f=a.element.style,d={},k=this.padding,
|
|
109
|
+
p=this.bBox=q(this.widthSetting)&&q(this.heightSetting)&&!this.textAlign||!K(a.textStr)?l.emptyBBox:a.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||p.height||0)+2*k;f=this.renderer.fontMetrics(f&&f.fontSize,a);this.baselineOffset=k+Math.min((this.text.firstLineMetrics||f).b,p.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-f.h)/2);this.needsBox&&!a.textPath&&(this.box||(a=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),
|
|
110
|
+
a.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),a.add(this)),a=this.getCrispAdjust(),d.x=a,d.y=(this.baseline?-this.baselineOffset:0)+a,d.width=Math.round(this.width),d.height=Math.round(this.height),this.box.attr(B(d,this.deferredAttr)),this.deferredAttr={})};l.prototype.updateTextPadding=function(){var a=this.text;if(!a.textPath){this.updateBoxSize();var f=this.baseline?0:this.baselineOffset,d=x(this.paddingLeft,this.padding);
|
|
111
|
+
K(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(d+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(d!==a.x||f!==a.y)a.attr("x",d),a.hasBoxWidthChanged&&(this.bBox=a.getBBox(!0)),"undefined"!==typeof f&&a.attr("y",f);a.x=d;a.y=f}};l.prototype.widthSetter=function(a){this.widthSetting=q(a)?a:void 0};l.prototype.getPaddedWidth=function(){var a=this.padding,f=x(this.paddingLeft,a);a=x(this.paddingRight,a);return(this.widthSetting||this.bBox.width||
|
|
112
|
+
0)+f+a};l.prototype.xSetter=function(a){this.x=a;this.alignFactor&&(a-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(a);this.attr("translateX",this.xSetting)};l.prototype.ySetter=function(a){this.ySetting=this.y=Math.round(a);this.attr("translateY",this.ySetting)};l.emptyBBox={width:0,height:0,x:0,y:0};l.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return l}(b)});
|
|
113
|
+
J(e,"Core/Renderer/SVG/Symbols.js",[e["Core/Utilities.js"]],function(b){function e(b,e,m,l,a){var f=[];if(a){var d=a.start||0,k=F(a.r,m);m=F(a.r,l||m);var p=(a.end||0)-.001;l=a.innerR;var E=F(a.open,.001>Math.abs((a.end||0)-d-2*Math.PI)),A=Math.cos(d),w=Math.sin(d),I=Math.cos(p),t=Math.sin(p);d=F(a.longArc,.001>p-d-Math.PI?0:1);f.push(["M",b+k*A,e+m*w],["A",k,m,0,d,F(a.clockwise,1),b+k*I,e+m*t]);B(l)&&f.push(E?["M",b+l*I,e+l*t]:["L",b+l*I,e+l*t],["A",l,l,0,d,B(a.clockwise)?1-a.clockwise:0,b+l*A,e+
|
|
114
|
+
l*w]);E||f.push(["Z"])}return f}function u(b,e,m,l,a){return a&&a.r?C(b,e,m,l,a):[["M",b,e],["L",b+m,e],["L",b+m,e+l],["L",b,e+l],["Z"]]}function C(b,e,m,l,a){a=a&&a.r||0;return[["M",b+a,e],["L",b+m-a,e],["C",b+m,e,b+m,e,b+m,e+a],["L",b+m,e+l-a],["C",b+m,e+l,b+m,e+l,b+m-a,e+l],["L",b+a,e+l],["C",b,e+l,b,e+l,b,e+l-a],["L",b,e+a],["C",b,e,b,e,b+a,e]]}var B=b.defined,q=b.isNumber,F=b.pick;return{arc:e,callout:function(b,e,m,l,a){var f=Math.min(a&&a.r||0,m,l),d=f+6,k=a&&a.anchorX;a=a&&a.anchorY||0;var p=
|
|
115
|
+
C(b,e,m,l,{r:f});if(!q(k))return p;b+k>=m?a>e+d&&a<e+l-d?p.splice(3,1,["L",b+m,a-6],["L",b+m+6,a],["L",b+m,a+6],["L",b+m,e+l-f]):p.splice(3,1,["L",b+m,l/2],["L",k,a],["L",b+m,l/2],["L",b+m,e+l-f]):0>=b+k?a>e+d&&a<e+l-d?p.splice(7,1,["L",b,a+6],["L",b-6,a],["L",b,a-6],["L",b,e+f]):p.splice(7,1,["L",b,l/2],["L",k,a],["L",b,l/2],["L",b,e+f]):a&&a>l&&k>b+d&&k<b+m-d?p.splice(5,1,["L",k+6,e+l],["L",k,e+l+6],["L",k-6,e+l],["L",b+f,e+l]):a&&0>a&&k>b+d&&k<b+m-d&&p.splice(1,1,["L",k-6,e],["L",k,e-6],["L",k+
|
|
116
|
+
6,e],["L",m-f,e]);return p},circle:function(b,v,m,l){return e(b+m/2,v+l/2,m/2,l/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(b,e,m,l){return[["M",b+m/2,e],["L",b+m,e+l/2],["L",b+m/2,e+l],["L",b,e+l/2],["Z"]]},rect:u,roundedRect:C,square:u,triangle:function(b,e,m,l){return[["M",b+m/2,e],["L",b+m,e+l],["L",b,e+l],["Z"]]},"triangle-down":function(b,e,m,l){return[["M",b,e],["L",b+m,e],["L",b+m/2,e+l],["Z"]]}}});J(e,"Core/Renderer/SVG/TextBuilder.js",[e["Core/Renderer/HTML/AST.js"],
|
|
117
|
+
e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,u){var K=e.doc,B=e.SVG_NS,q=e.win,F=u.attr,x=u.extend,v=u.fireEvent,m=u.isString,l=u.objectEach,a=u.pick;return function(){function f(a){var d=a.styles;this.renderer=a.renderer;this.svgElement=a;this.width=a.textWidth;this.textLineHeight=d&&d.lineHeight;this.textOutline=d&&d.textOutline;this.ellipsis=!(!d||"ellipsis"!==d.textOverflow);this.noWrap=!(!d||"nowrap"!==d.whiteSpace);this.fontSize=d&&d.fontSize}f.prototype.buildSVG=function(){var d=
|
|
118
|
+
this.svgElement,f=d.element,p=d.renderer,l=a(d.textStr,"").toString(),A=-1!==l.indexOf("<"),w=f.childNodes;p=this.width&&!d.added&&p.box;var e=/<br.*?>/g,t=[l,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(t!==d.textCache){d.textCache=t;delete d.actualWidth;for(t=w.length;t--;)f.removeChild(w[t]);A||this.ellipsis||this.width||d.textPath||-1!==l.indexOf(" ")&&(!this.noWrap||e.test(l))?""!==l&&(p&&p.appendChild(f),l=new b(l),this.modifyTree(l.nodes),
|
|
119
|
+
l.addToDOM(f),this.modifyDOM(),this.ellipsis&&-1!==(f.textContent||"").indexOf("\u2026")&&d.attr("title",this.unescapeEntities(d.textStr||"",["<",">"])),p&&p.removeChild(f)):f.appendChild(K.createTextNode(this.unescapeEntities(l)));m(this.textOutline)&&d.applyTextOutline&&d.applyTextOutline(this.textOutline)}};f.prototype.modifyDOM=function(){var a=this,f=this.svgElement,b=F(f.element,"x");f.firstLineMetrics=void 0;for(var l;l=f.element.firstChild;)if(/^[\s\u200B]*$/.test(l.textContent||" "))f.element.removeChild(l);
|
|
120
|
+
else break;[].forEach.call(f.element.querySelectorAll("tspan.highcharts-br"),function(d,h){d.nextSibling&&d.previousSibling&&(0===h&&1===d.previousSibling.nodeType&&(f.firstLineMetrics=f.renderer.fontMetrics(void 0,d.previousSibling)),F(d,{dy:a.getLineHeight(d.nextSibling),x:b}))});var A=this.width||0;if(A){var w=function(d,h){var k=d.textContent||"",r=k.replace(/([^\^])-/g,"$1- ").split(" "),n=!a.noWrap&&(1<r.length||1<f.element.childNodes.length),g=a.getLineHeight(h),D=0,c=f.actualWidth;if(a.ellipsis)k&&
|
|
121
|
+
a.truncate(d,k,void 0,0,Math.max(0,A-parseInt(a.fontSize||12,10)),function(c,a){return c.substring(0,a)+"\u2026"});else if(n){k=[];for(n=[];h.firstChild&&h.firstChild!==d;)n.push(h.firstChild),h.removeChild(h.firstChild);for(;r.length;)r.length&&!a.noWrap&&0<D&&(k.push(d.textContent||""),d.textContent=r.join(" ").replace(/- /g,"-")),a.truncate(d,void 0,r,0===D?c||0:0,A,function(c,a){return r.slice(0,a).join(" ").replace(/- /g,"-")}),c=f.actualWidth,D++;n.forEach(function(c){h.insertBefore(c,d)});
|
|
122
|
+
k.forEach(function(c){h.insertBefore(K.createTextNode(c),d);c=K.createElementNS(B,"tspan");c.textContent="\u200b";F(c,{dy:g,x:b});h.insertBefore(c,d)})}},e=function(a){[].slice.call(a.childNodes).forEach(function(h){h.nodeType===q.Node.TEXT_NODE?w(h,a):(-1!==h.className.baseVal.indexOf("highcharts-br")&&(f.actualWidth=0),e(h))})};e(f.element)}};f.prototype.getLineHeight=function(a){var d;a=a.nodeType===q.Node.TEXT_NODE?a.parentElement:a;this.renderer.styledMode||(d=a&&/(px|em)$/.test(a.style.fontSize)?
|
|
123
|
+
a.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(d,a||this.svgElement.element).h};f.prototype.modifyTree=function(a){var d=this,f=function(k,b){var p=k.attributes;p=void 0===p?{}:p;var l=k.children,t=k.style;t=void 0===t?{}:t;var h=k.tagName,y=d.renderer.styledMode;if("b"===h||"strong"===h)y?p["class"]="highcharts-strong":t.fontWeight="bold";else if("i"===h||"em"===h)y?p["class"]="highcharts-emphasized":
|
|
124
|
+
t.fontStyle="italic";t&&t.color&&(t.fill=t.color);"br"===h?(p["class"]="highcharts-br",k.textContent="\u200b",(b=a[b+1])&&b.textContent&&(b.textContent=b.textContent.replace(/^ +/gm,""))):"a"===h&&l&&l.some(function(a){return"#text"===a.tagName})&&(k.children=[{children:l,tagName:"tspan"}]);"#text"!==h&&"a"!==h&&(k.tagName="tspan");x(k,{attributes:p,style:t});l&&l.filter(function(a){return"#text"!==a.tagName}).forEach(f)};a.forEach(f);v(this.svgElement,"afterModifyTree",{nodes:a})};f.prototype.truncate=
|
|
125
|
+
function(a,f,b,l,e,w){var d=this.svgElement,k=d.renderer,h=d.rotation,y=[],r=b?1:0,n=(f||b||"").length,g=n,D,c=function(c,g){g=g||c;var h=a.parentNode;if(h&&"undefined"===typeof y[g])if(h.getSubStringLength)try{y[g]=l+h.getSubStringLength(0,b?g+1:g)}catch(P){""}else k.getSpanWidth&&(a.textContent=w(f||b,c),y[g]=l+k.getSpanWidth(d,a));return y[g]};d.rotation=0;var z=c(a.textContent.length);if(l+z>e){for(;r<=n;)g=Math.ceil((r+n)/2),b&&(D=w(b,g)),z=c(g,D&&D.length-1),r===n?r=n+1:z>e?n=g-1:r=g;0===n?
|
|
126
|
+
a.textContent="":f&&n===f.length-1||(a.textContent=D||w(f||b,g))}b&&b.splice(0,g);d.actualWidth=z;d.rotation=h};f.prototype.unescapeEntities=function(a,f){l(this.renderer.escapes,function(d,b){f&&-1!==f.indexOf(d)||(a=a.toString().replace(new RegExp(d,"g"),b))});return a};return f}()});J(e,"Core/Renderer/SVG/SVGRenderer.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGLabel.js"],
|
|
127
|
+
e["Core/Renderer/SVG/Symbols.js"],e["Core/Renderer/SVG/TextBuilder.js"],e["Core/Utilities.js"]],function(b,e,u,C,B,q,F,x,v){var m=u.charts,l=u.deg2rad,a=u.doc,f=u.isFirefox,d=u.isMS,k=u.isWebKit,p=u.noop,E=u.SVG_NS,A=u.symbolSizes,w=u.win,I=v.addEvent,t=v.attr,h=v.createElement,y=v.css,r=v.defined,n=v.destroyObjectProperties,g=v.extend,D=v.isArray,c=v.isNumber,z=v.isObject,G=v.isString,H=v.merge,O=v.pick,P=v.pInt,K=v.uniqueKey,Y;u=function(){function p(c,a,g,h,d,f,n){this.width=this.url=this.style=
|
|
128
|
+
this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0;this.init(c,a,g,h,d,f,n)}p.prototype.init=function(c,g,h,d,n,r,z){var D=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}),b=D.element;z||D.css(this.getStyle(d));c.appendChild(b);t(c,"dir","ltr");-1===c.innerHTML.indexOf("xmlns")&&t(b,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=b;this.boxWrapper=D;this.alignedObjects=
|
|
129
|
+
[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(a.createTextNode("Created with Highcharts 10.3.1"));this.defs=this.createElement("defs").add();this.allowHTML=r;this.forExport=n;this.styledMode=z;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(g,h,!1);var k;f&&c.getBoundingClientRect&&(g=function(){y(c,{left:0,top:0});k=c.getBoundingClientRect();y(c,{left:Math.ceil(k.left)-k.left+"px",top:Math.ceil(k.top)-k.top+"px"})},g(),this.unSubPixelFix=
|
|
130
|
+
I(w,"resize",g))};p.prototype.definition=function(c){return(new b([c])).addToDOM(this.defs.element)};p.prototype.getReferenceURL=function(){if((f||k)&&a.getElementsByTagName("base").length){if(!r(Y)){var c=K();c=(new b([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:c},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(c,")"),fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(a.body);
|
|
131
|
+
y(c,{position:"fixed",top:0,left:0,zIndex:9E5});var g=a.elementFromPoint(6,6);Y="hitme"===(g&&g.id);a.body.removeChild(c)}if(Y)return w.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};p.prototype.getStyle=function(c){return this.style=g({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},c)};p.prototype.setStyle=function(c){this.boxWrapper.css(this.getStyle(c))};p.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};
|
|
132
|
+
p.prototype.destroy=function(){var c=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();n(this.gradients||{});this.gradients=null;c&&(this.defs=c.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};p.prototype.createElement=function(c){var a=new this.Element;a.init(this,c);return a};p.prototype.getRadialAttr=function(c,a){return{cx:c[0]-c[2]/2+(a.cx||0)*c[2],cy:c[1]-c[2]/2+(a.cy||0)*c[2],r:(a.r||0)*c[2]}};p.prototype.buildText=function(c){(new x(c)).buildSVG()};
|
|
133
|
+
p.prototype.getContrast=function(c){c=e.parse(c).rgba.map(function(c){c/=255;return.03928>=c?c/12.92:Math.pow((c+.055)/1.055,2.4)});c=.2126*c[0]+.7152*c[1]+.0722*c[2];return 1.05/(c+.05)>(c+.05)/.05?"#FFFFFF":"#000000"};p.prototype.button=function(c,a,h,f,n,r,D,k,p,y){void 0===n&&(n={});var l=this.label(c,a,h,p,void 0,void 0,y,void 0,"button"),t=this.styledMode;c=n.states||{};var G=0;n=H(n);delete n.states;var Q=H({color:"#333333",cursor:"pointer",fontWeight:"normal"},n.style);delete n.style;var e=
|
|
134
|
+
b.filterUserAttributes(n);l.attr(H({padding:8,r:2},e));if(!t){e=H({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},e);r=H(e,{fill:"#e6e6e6"},b.filterUserAttributes(r||c.hover||{}));var w=r.style;delete r.style;D=H(e,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},b.filterUserAttributes(D||c.select||{}));var A=D.style;delete D.style;k=H(e,{style:{color:"#cccccc"}},b.filterUserAttributes(k||c.disabled||{}));var E=k.style;delete k.style}I(l.element,d?"mouseover":"mouseenter",function(){3!==
|
|
135
|
+
G&&l.setState(1)});I(l.element,d?"mouseout":"mouseleave",function(){3!==G&&l.setState(G)});l.setState=function(c){1!==c&&(l.state=G=c);l.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][c||0]);t||(l.attr([e,r,D,k][c||0]),c=[Q,w,A,E][c||0],z(c)&&l.css(c))};t||(l.attr(e).css(g({cursor:"default"},Q)),y&&l.text.css({pointerEvents:"none"}));return l.on("touchstart",function(c){return c.stopPropagation()}).on("click",
|
|
136
|
+
function(c){3!==G&&f.call(l,c)})};p.prototype.crispLine=function(c,a,g){void 0===g&&(g="round");var h=c[0],d=c[1];r(h[1])&&h[1]===d[1]&&(h[1]=d[1]=Math[g](h[1])-a%2/2);r(h[2])&&h[2]===d[2]&&(h[2]=d[2]=Math[g](h[2])+a%2/2);return c};p.prototype.path=function(c){var a=this.styledMode?{}:{fill:"none"};D(c)?a.d=c:z(c)&&g(a,c);return this.createElement("path").attr(a)};p.prototype.circle=function(c,a,g){c=z(c)?c:"undefined"===typeof c?{}:{x:c,y:a,r:g};a=this.createElement("circle");a.xSetter=a.ySetter=
|
|
137
|
+
function(c,a,g){g.setAttribute("c"+a,c)};return a.attr(c)};p.prototype.arc=function(c,a,g,h,d,f){z(c)?(h=c,a=h.y,g=h.r,c=h.x):h={innerR:h,start:d,end:f};c=this.symbol("arc",c,a,g,g,h);c.r=g;return c};p.prototype.rect=function(c,a,g,h,d,f){d=z(c)?c.r:d;var n=this.createElement("rect");c=z(c)?c:"undefined"===typeof c?{}:{x:c,y:a,width:Math.max(g,0),height:Math.max(h,0)};this.styledMode||("undefined"!==typeof f&&(c["stroke-width"]=f,c=n.crisp(c)),c.fill="none");d&&(c.r=d);n.rSetter=function(c,a,g){n.r=
|
|
138
|
+
c;t(g,{rx:c,ry:c})};n.rGetter=function(){return n.r||0};return n.attr(c)};p.prototype.setSize=function(c,a,g){this.width=c;this.height=a;this.boxWrapper.animate({width:c,height:a},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:O(g,!0)?void 0:0});this.alignElements()};p.prototype.g=function(c){var a=this.createElement("g");return c?a.attr({"class":"highcharts-"+c}):a};p.prototype.image=function(a,g,h,d,f,n){var r={preserveAspectRatio:"none"},D=function(c,
|
|
139
|
+
a){c.setAttributeNS?c.setAttributeNS("http://www.w3.org/1999/xlink","href",a):c.setAttribute("hc-svg-href",a)};c(g)&&(r.x=g);c(h)&&(r.y=h);c(d)&&(r.width=d);c(f)&&(r.height=f);var k=this.createElement("image").attr(r);g=function(c){D(k.element,a);n.call(k,c)};n?(D(k.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),h=new w.Image,I(h,"load",g),h.src=a,h.complete&&g({})):D(k.element,a);return k};p.prototype.symbol=function(c,d,f,n,k,D){var z=this,b=/^url\((.*?)\)$/,
|
|
140
|
+
p=b.test(c),l=!p&&(this.symbols[c]?c:"circle"),G=l&&this.symbols[l],Q;if(G){"number"===typeof d&&(Q=G.call(this.symbols,Math.round(d||0),Math.round(f||0),n||0,k||0,D));var H=this.path(Q);z.styledMode||H.attr("fill","none");g(H,{symbolName:l||void 0,x:d,y:f,width:n,height:k});D&&g(H,D)}else if(p){var e=c.match(b)[1];var w=H=this.image(e);w.imgwidth=O(A[e]&&A[e].width,D&&D.width);w.imgheight=O(A[e]&&A[e].height,D&&D.height);var E=function(c){return c.attr({width:c.width,height:c.height})};["width",
|
|
141
|
+
"height"].forEach(function(c){w[c+"Setter"]=function(c,a){this[a]=c;c=this.alignByTranslate;var g=this.element,h=this.width,d=this.height,f=this.imgwidth,n=this.imgheight,k=this["img"+a];if(r(k)){var z=1;D&&"within"===D.backgroundSize&&h&&d?(z=Math.min(h/f,d/n),k=Math.round(k*z),t(g,{width:Math.round(f*z),height:Math.round(n*z)})):g&&g.setAttribute(a,k);c||this.translate(((h||0)-k*z)/2,((d||0)-k*z)/2)}}});r(d)&&w.attr({x:d,y:f});w.isImg=!0;r(w.imgwidth)&&r(w.imgheight)?E(w):(w.attr({width:0,height:0}),
|
|
142
|
+
h("img",{onload:function(){var c=m[z.chartIndex];0===this.width&&(y(this,{position:"absolute",top:"-999em"}),a.body.appendChild(this));A[e]={width:this.width,height:this.height};w.imgwidth=this.width;w.imgheight=this.height;w.element&&E(w);this.parentNode&&this.parentNode.removeChild(this);z.imgCount--;if(!z.imgCount&&c&&!c.hasLoaded)c.onload()},src:e}),this.imgCount++)}return H};p.prototype.clipRect=function(c,a,g,h){var d=K()+"-",f=this.createElement("clipPath").attr({id:d}).add(this.defs);c=this.rect(c,
|
|
143
|
+
a,g,h,0).add(f);c.id=d;c.clipPath=f;c.count=0;return c};p.prototype.text=function(c,a,g,h){var d={};if(h&&(this.allowHTML||!this.forExport))return this.html(c,a,g);d.x=Math.round(a||0);g&&(d.y=Math.round(g));r(c)&&(d.text=c);c=this.createElement("text").attr(d);if(!h||this.forExport&&!this.allowHTML)c.xSetter=function(c,a,g){for(var h=g.getElementsByTagName("tspan"),d=g.getAttribute(a),f=0,n;f<h.length;f++)n=h[f],n.getAttribute(a)===d&&n.setAttribute(a,c);g.setAttribute(a,c)};return c};p.prototype.fontMetrics=
|
|
144
|
+
function(c,a){c=!this.styledMode&&/px/.test(c)||!w.getComputedStyle?c||a&&a.style&&a.style.fontSize||this.style&&this.style.fontSize:a&&B.prototype.getStyle.call(a,"font-size");c=/px/.test(c)?P(c):12;a=24>c?c+3:Math.round(1.2*c);return{h:a,b:Math.round(.8*a),f:c}};p.prototype.rotCorr=function(c,a,g){var h=c;a&&g&&(h=Math.max(h*Math.cos(a*l),4));return{x:-c/3*Math.sin(a*l),y:h}};p.prototype.pathToSegments=function(a){for(var g=[],h=[],d={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},f=0;f<a.length;f++)G(h[0])&&
|
|
145
|
+
c(a[f])&&h.length===d[h[0].toUpperCase()]&&a.splice(f,0,h[0].replace("M","L").replace("m","l")),"string"===typeof a[f]&&(h.length&&g.push(h.slice(0)),h.length=0),h.push(a[f]);g.push(h.slice(0));return g};p.prototype.label=function(c,a,g,h,d,f,n,r,k){return new q(this,c,a,g,h,d,f,n,r,k)};p.prototype.alignElements=function(){this.alignedObjects.forEach(function(c){return c.align()})};return p}();g(u.prototype,{Element:B,SVG_NS:E,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:F,
|
|
146
|
+
draw:p});C.registerRendererType("svg",u,!0);"";return u});J(e,"Core/Renderer/HTML/HTMLElement.js",[e["Core/Globals.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(b,e,u){var K=this&&this.__extends||function(){var a=function(d,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var f in d)d.hasOwnProperty(f)&&(a[f]=d[f])};return a(d,f)};return function(d,f){function k(){this.constructor=d}a(d,f);d.prototype=null===f?
|
|
147
|
+
Object.create(f):(k.prototype=f.prototype,new k)}}(),B=b.isFirefox,q=b.isMS,F=b.isWebKit,x=b.win,v=u.css,m=u.defined,l=u.extend,a=u.pick,f=u.pInt;return function(d){function k(){return null!==d&&d.apply(this,arguments)||this}K(k,d);k.compose=function(a){if(-1===k.composedClasses.indexOf(a)){k.composedClasses.push(a);var d=k.prototype,f=a.prototype;f.getSpanCorrection=d.getSpanCorrection;f.htmlCss=d.htmlCss;f.htmlGetBBox=d.htmlGetBBox;f.htmlUpdateTransform=d.htmlUpdateTransform;f.setSpanRotation=d.setSpanRotation}return a};
|
|
148
|
+
k.prototype.getSpanCorrection=function(a,d,f){this.xCorr=-a*f;this.yCorr=-d};k.prototype.htmlCss=function(d){var f="SPAN"===this.element.tagName&&d&&"width"in d,k=a(f&&d.width,void 0);if(f){delete d.width;this.textWidth=k;var b=!0}d&&"ellipsis"===d.textOverflow&&(d.whiteSpace="nowrap",d.overflow="hidden");this.styles=l(this.styles,d);v(this.element,d);b&&this.htmlUpdateTransform();return this};k.prototype.htmlGetBBox=function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,
|
|
149
|
+
height:a.offsetHeight}};k.prototype.htmlUpdateTransform=function(){if(this.added){var a=this.renderer,d=this.element,k=this.translateX||0,b=this.translateY||0,l=this.x||0,t=this.y||0,h=this.textAlign||"left",y={left:0,center:.5,right:1}[h],r=this.styles;r=r&&r.whiteSpace;v(d,{marginLeft:k,marginTop:b});!a.styledMode&&this.shadows&&this.shadows.forEach(function(c){v(c,{marginLeft:k+1,marginTop:b+1})});this.inverted&&[].forEach.call(d.childNodes,function(c){a.invertChild(c,d)});if("SPAN"===d.tagName){var n=
|
|
150
|
+
this.rotation,g=this.textWidth&&f(this.textWidth),D=[n,h,d.innerHTML,this.textWidth,this.textAlign].join(),c=void 0;c=!1;if(g!==this.oldTextWidth){if(this.textPxLength)var z=this.textPxLength;else v(d,{width:"",whiteSpace:r||"nowrap"}),z=d.offsetWidth;(g>this.oldTextWidth||z>g)&&(/[ \-]/.test(d.textContent||d.innerText)||"ellipsis"===d.style.textOverflow)&&(v(d,{width:z>g||n?g+"px":"auto",display:"block",whiteSpace:r||"normal"}),this.oldTextWidth=g,c=!0)}this.hasBoxWidthChanged=c;D!==this.cTT&&(c=
|
|
151
|
+
a.fontMetrics(d.style.fontSize,d).b,!m(n)||n===(this.oldRotation||0)&&h===this.oldAlign||this.setSpanRotation(n,y,c),this.getSpanCorrection(!m(n)&&this.textPxLength||d.offsetWidth,c,y,n,h));v(d,{left:l+(this.xCorr||0)+"px",top:t+(this.yCorr||0)+"px"});this.cTT=D;this.oldRotation=n;this.oldAlign=h}}else this.alignOnAdd=!0};k.prototype.setSpanRotation=function(a,d,f){var k={},b=q&&!/Edge/.test(x.navigator.userAgent)?"-ms-transform":F?"-webkit-transform":B?"MozTransform":x.opera?"-o-transform":void 0;
|
|
152
|
+
b&&(k[b]=k.transform="rotate("+a+"deg)",k[b+(B?"Origin":"-origin")]=k.transformOrigin=100*d+"% "+f+"px",v(this.element,k))};k.composedClasses=[];return k}(e)});J(e,"Core/Renderer/HTML/HTMLRenderer.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],function(b,e,u,C){var K=this&&this.__extends||function(){var b=function(l,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,
|
|
153
|
+
d){for(var f in d)d.hasOwnProperty(f)&&(a[f]=d[f])};return b(l,a)};return function(l,a){function f(){this.constructor=l}b(l,a);l.prototype=null===a?Object.create(a):(f.prototype=a.prototype,new f)}}(),q=C.attr,F=C.createElement,x=C.extend,v=C.pick;return function(m){function l(){return null!==m&&m.apply(this,arguments)||this}K(l,m);l.compose=function(a){-1===l.composedClasses.indexOf(a)&&(l.composedClasses.push(a),a.prototype.html=l.prototype.html);return a};l.prototype.html=function(a,f,d){var k=
|
|
154
|
+
this.createElement("span"),l=k.element,m=k.renderer,A=m.isSVG,w=function(a,d){["opacity","visibility"].forEach(function(h){a[h+"Setter"]=function(f,r,n){var g=a.div?a.div.style:d;e.prototype[h+"Setter"].call(this,f,r,n);g&&(g[r]=f)}});a.addedSetters=!0};k.textSetter=function(a){a!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,b.setElementHTML(this.element,v(a,"")),this.textStr=a,k.doTransform=!0)};A&&w(k,k.element.style);k.xSetter=k.ySetter=k.alignSetter=k.rotationSetter=function(a,d){"align"===
|
|
155
|
+
d?k.alignValue=k.textAlign=a:k[d]=a;k.doTransform=!0};k.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};k.attr({text:a,x:Math.round(f),y:Math.round(d)}).css({position:"absolute"});m.styledMode||k.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});l.style.whiteSpace="nowrap";k.css=k.htmlCss;A&&(k.add=function(a){var d=m.box.parentNode,h=[];if(this.parentGroup=a){var f=a.div;if(!f){for(;a;)h.push(a),a=a.parentGroup;h.reverse().forEach(function(a){function n(g,
|
|
156
|
+
h){a[h]=g;"translateX"===h?c.left=g+"px":c.top=g+"px";a.doTransform=!0}var g=q(a.element,"class"),r=a.styles||{};f=a.div=a.div||F("div",g?{className:g}:void 0,{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px",display:a.display,opacity:a.opacity,cursor:r.cursor,pointerEvents:r.pointerEvents,visibility:a.visibility},f||d);var c=f.style;x(a,{classSetter:function(c){return function(a){this.element.setAttribute("class",a);c.className=a}}(f),on:function(){h[0].div&&k.on.apply({element:h[0].div,
|
|
157
|
+
onEvents:a.onEvents},arguments);return a},translateXSetter:n,translateYSetter:n});a.addedSetters||w(a)})}}else f=d;f.appendChild(l);k.added=!0;k.alignOnAdd&&k.htmlUpdateTransform();return k});return k};l.composedClasses=[];return l}(u)});J(e,"Core/Axis/AxisDefaults.js",[],function(){var b;(function(b){b.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},
|
|
158
|
+
minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,
|
|
159
|
+
minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",
|
|
160
|
+
gridLineWidth:void 0,tickColor:"#ccd6eb"};b.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var b=this.axis.chart.numberFormatter;return b(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};
|
|
161
|
+
b.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};b.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};b.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};b.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(b||(b={}));return b});J(e,"Core/Foundation.js",[e["Core/Utilities.js"]],function(b){var e=b.addEvent,u=b.isFunction,C=b.objectEach,B=b.removeEvent,q;(function(b){b.registerEventOptions=function(b,v){b.eventOptions=
|
|
162
|
+
b.eventOptions||{};C(v.events,function(m,l){b.eventOptions[l]!==m&&(b.eventOptions[l]&&(B(b,l,b.eventOptions[l]),delete b.eventOptions[l]),u(m)&&(b.eventOptions[l]=m,e(b,l,m)))})}})(q||(q={}));return q});J(e,"Core/Axis/Tick.js",[e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,u){var K=e.deg2rad,B=u.clamp,q=u.correctFloat,F=u.defined,x=u.destroyObjectProperties,v=u.extend,m=u.fireEvent,l=u.isNumber,a=u.merge,f=u.objectEach,d=u.pick;e=function(){function k(a,d,
|
|
163
|
+
f,b,k){this.isNewLabel=this.isNew=!0;this.axis=a;this.pos=d;this.type=f||"";this.parameters=k||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;m(this,"init");f||b||this.addLabel()}k.prototype.addLabel=function(){var a=this,f=a.axis,k=f.options,e=f.chart,I=f.categories,t=f.logarithmic,h=f.names,y=a.pos,r=d(a.options&&a.options.labels,k.labels),n=f.tickPositions,g=y===n[0],D=y===n[n.length-1],c=(!r.step||1===r.step)&&1===f.tickInterval;n=n.info;var z=a.label,
|
|
164
|
+
G;I=this.parameters.category||(I?d(I[y],h[y],y):y);t&&l(I)&&(I=q(t.lin2log(I)));if(f.dateTime)if(n){var H=e.time.resolveDTLFormat(k.dateTimeLabelFormats[!k.grid&&n.higherRanks[y]||n.unitName]);var O=H.main}else l(I)&&(O=f.dateTime.getXDateFormat(I,k.dateTimeLabelFormats||{}));a.isFirst=g;a.isLast=D;var P={axis:f,chart:e,dateTimeLabelFormat:O,isFirst:g,isLast:D,pos:y,tick:a,tickPositionInfo:n,value:I};m(this,"labelFormat",P);var x=function(c){return r.formatter?r.formatter.call(c,c):r.format?(c.text=
|
|
165
|
+
f.defaultLabelFormatter.call(c,c),b.format(r.format,c,e)):f.defaultLabelFormatter.call(c,c)};k=x.call(P,P);var u=H&&H.list;a.shortenLabel=u?function(){for(G=0;G<u.length;G++)if(v(P,{dateTimeLabelFormat:u[G]}),z.attr({text:x.call(P,P)}),z.getBBox().width<f.getSlotWidth(a)-2*r.padding)return;z.attr({text:""})}:void 0;c&&f._addedPlotLB&&a.moveLabel(k,r);F(z)||a.movedLabel?z&&z.textStr!==k&&!c&&(!z.textWidth||r.style.width||z.styles.width||z.css({width:null}),z.attr({text:k}),z.textPxLength=z.getBBox().width):
|
|
166
|
+
(a.label=z=a.createLabel({x:0,y:0},k,r),a.rotation=0)};k.prototype.createLabel=function(d,f,k){var b=this.axis,l=b.chart;if(d=F(f)&&k.enabled?l.renderer.text(f,d.x,d.y,k.useHTML).add(b.labelGroup):null)l.styledMode||d.css(a(k.style)),d.textPxLength=d.getBBox().width;return d};k.prototype.destroy=function(){x(this,this.axis)};k.prototype.getPosition=function(a,d,f,k){var b=this.axis,l=b.chart,h=k&&l.oldChartHeight||l.chartHeight;a={x:a?q(b.translate(d+f,void 0,void 0,k)+b.transB):b.left+b.offset+(b.opposite?
|
|
167
|
+
(k&&l.oldChartWidth||l.chartWidth)-b.right-b.left:0),y:a?h-b.bottom+b.offset-(b.opposite?b.height:0):q(h-b.translate(d+f,void 0,void 0,k)-b.transB)};a.y=B(a.y,-1E5,1E5);m(this,"afterGetPosition",{pos:a});return a};k.prototype.getLabelPosition=function(a,d,f,b,k,l,h,y){var r=this.axis,n=r.transA,g=r.isLinked&&r.linkedParent?r.linkedParent.reversed:r.reversed,D=r.staggerLines,c=r.tickRotCorr||{x:0,y:0},z=b||r.reserveSpaceDefault?0:-r.labelOffset*("center"===r.labelAlign?.5:1),t={};f=0===r.side?f.rotation?
|
|
168
|
+
-8:-f.getBBox().height:2===r.side?c.y+8:Math.cos(f.rotation*K)*(c.y-f.getBBox(!1,0).height/2);F(k.y)&&(f=0===r.side&&r.horiz?k.y+f:k.y);a=a+k.x+z+c.x-(l&&b?l*n*(g?-1:1):0);d=d+f-(l&&!b?l*n*(g?1:-1):0);D&&(b=h/(y||1)%D,r.opposite&&(b=D-b-1),d+=r.labelOffset/D*b);t.x=a;t.y=Math.round(d);m(this,"afterGetLabelPosition",{pos:t,tickmarkOffset:l,index:h});return t};k.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};k.prototype.getMarkPath=function(a,
|
|
169
|
+
d,f,b,k,l){return l.crispLine([["M",a,d],["L",a+(k?0:-f),d+(k?f:0)]],b)};k.prototype.handleOverflow=function(a){var f=this.axis,b=f.options.labels,k=a.x,l=f.chart.chartWidth,t=f.chart.spacing,h=d(f.labelLeft,Math.min(f.pos,t[3]));t=d(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,l-t[1]));var y=this.label,r=this.rotation,n={left:0,center:.5,right:1}[f.labelAlign||y.attr("align")],g=y.getBBox().width,D=f.getSlotWidth(this),c={},z=D,G=1,p;if(r||"justify"!==b.overflow)0>r&&k-n*g<h?p=Math.round(k/Math.cos(r*
|
|
170
|
+
K)-h):0<r&&k+n*g>t&&(p=Math.round((l-k)/Math.cos(r*K)));else if(l=k+(1-n)*g,k-n*g<h?z=a.x+z*(1-n)-h:l>t&&(z=t-a.x+z*n,G=-1),z=Math.min(D,z),z<D&&"center"===f.labelAlign&&(a.x+=G*(D-z-n*(D-Math.min(g,z)))),g>z||f.autoRotation&&(y.styles||{}).width)p=z;p&&(this.shortenLabel?this.shortenLabel():(c.width=Math.floor(p)+"px",(b.style||{}).textOverflow||(c.textOverflow="ellipsis"),y.css(c)))};k.prototype.moveLabel=function(a,d){var b=this,k=b.label,l=b.axis,t=l.reversed,h=!1;k&&k.textStr===a?(b.movedLabel=
|
|
171
|
+
k,h=!0,delete b.label):f(l.ticks,function(d){h||d.isNew||d===b||!d.label||d.label.textStr!==a||(b.movedLabel=d.label,h=!0,d.labelPos=b.movedLabel.xy,delete d.label)});if(!h&&(b.labelPos||k)){var y=b.labelPos||k.xy;k=l.horiz?t?0:l.width+l.left:y.x;l=l.horiz?y.y:t?l.width+l.left:0;b.movedLabel=b.createLabel({x:k,y:l},a,d);b.movedLabel&&b.movedLabel.attr({opacity:0})}};k.prototype.render=function(a,f,b){var k=this.axis,l=k.horiz,t=this.pos,h=d(this.tickmarkOffset,k.tickmarkOffset);t=this.getPosition(l,
|
|
172
|
+
t,h,f);h=t.x;var y=t.y;k=l&&h===k.pos+k.len||!l&&y===k.pos?-1:1;l=d(b,this.label&&this.label.newOpacity,1);b=d(b,1);this.isActive=!0;this.renderGridLine(f,b,k);this.renderMark(t,b,k);this.renderLabel(t,f,l,a);this.isNew=!1;m(this,"afterRender")};k.prototype.renderGridLine=function(a,f,b){var k=this.axis,l=k.options,t={},h=this.pos,y=this.type,r=d(this.tickmarkOffset,k.tickmarkOffset),n=k.chart.renderer,g=this.gridLine,D=l.gridLineWidth,c=l.gridLineColor,z=l.gridLineDashStyle;"minor"===this.type&&
|
|
173
|
+
(D=l.minorGridLineWidth,c=l.minorGridLineColor,z=l.minorGridLineDashStyle);g||(k.chart.styledMode||(t.stroke=c,t["stroke-width"]=D||0,t.dashstyle=z),y||(t.zIndex=1),a&&(f=0),this.gridLine=g=n.path().attr(t).addClass("highcharts-"+(y?y+"-":"")+"grid-line").add(k.gridGroup));if(g&&(b=k.getPlotLinePath({value:h+r,lineWidth:g.strokeWidth()*b,force:"pass",old:a})))g[a||this.isNew?"attr":"animate"]({d:b,opacity:f})};k.prototype.renderMark=function(a,f,b){var k=this.axis,l=k.options,t=k.chart.renderer,h=
|
|
174
|
+
this.type,y=k.tickSize(h?h+"Tick":"tick"),r=a.x;a=a.y;var n=d(l["minor"!==h?"tickWidth":"minorTickWidth"],!h&&k.isXAxis?1:0);l=l["minor"!==h?"tickColor":"minorTickColor"];var g=this.mark,D=!g;y&&(k.opposite&&(y[0]=-y[0]),g||(this.mark=g=t.path().addClass("highcharts-"+(h?h+"-":"")+"tick").add(k.axisGroup),k.chart.styledMode||g.attr({stroke:l,"stroke-width":n})),g[D?"attr":"animate"]({d:this.getMarkPath(r,a,y[0],g.strokeWidth()*b,k.horiz,t),opacity:f}))};k.prototype.renderLabel=function(a,f,k,b){var p=
|
|
175
|
+
this.axis,t=p.horiz,h=p.options,y=this.label,r=h.labels,n=r.step;p=d(this.tickmarkOffset,p.tickmarkOffset);var g=a.x;a=a.y;var D=!0;y&&l(g)&&(y.xy=a=this.getLabelPosition(g,a,y,t,r,p,b,n),this.isFirst&&!this.isLast&&!h.showFirstLabel||this.isLast&&!this.isFirst&&!h.showLastLabel?D=!1:!t||r.step||r.rotation||f||0===k||this.handleOverflow(a),n&&b%n&&(D=!1),D&&l(a.y)?(a.opacity=k,y[this.isNewLabel?"attr":"animate"](a).show(!0),this.isNewLabel=!1):(y.hide(),this.isNewLabel=!0))};k.prototype.replaceMovedLabel=
|
|
176
|
+
function(){var a=this.label,d=this.axis,f=d.reversed;if(a&&!this.isNew){var k=d.horiz?f?d.left:d.width+d.left:a.xy.x;f=d.horiz?a.xy.y:f?d.width+d.top:d.top;a.animate({x:k,y:f,opacity:0},void 0,a.destroy);delete this.label}d.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return k}();"";return e});J(e,"Core/Axis/Axis.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/AxisDefaults.js"],e["Core/Color/Color.js"],e["Core/Defaults.js"],e["Core/Foundation.js"],e["Core/Globals.js"],
|
|
177
|
+
e["Core/Axis/Tick.js"],e["Core/Utilities.js"]],function(b,e,u,C,B,q,F,x){var v=b.animObject,m=C.defaultOptions,l=B.registerEventOptions,a=q.deg2rad,f=x.arrayMax,d=x.arrayMin,k=x.clamp,p=x.correctFloat,E=x.defined,A=x.destroyObjectProperties,w=x.erase,I=x.error,t=x.extend,h=x.fireEvent,y=x.isArray,r=x.isNumber,n=x.isString,g=x.merge,D=x.normalizeTickInterval,c=x.objectEach,z=x.pick,G=x.relativeLength,H=x.removeEvent,O=x.splat,P=x.syncTimeout,K=function(c,a){return D(a,void 0,void 0,z(c.options.allowDecimals,
|
|
178
|
+
.5>a||void 0!==c.tickAmount),!!c.tickAmount)};b=function(){function b(c,a){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=
|
|
179
|
+
this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0;this.init(c,a)}b.prototype.init=function(c,a){var g=a.isX;this.chart=c;this.horiz=c.inverted&&!this.isZAxis?!g:g;this.isXAxis=g;this.coll=this.coll||(g?"xAxis":"yAxis");h(this,
|
|
180
|
+
"init",{userOptions:a});this.opposite=z(a.opposite,this.opposite);this.side=z(a.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(a);var d=this.options,f=d.labels,b=d.type;this.userOptions=a;this.minPixelPadding=0;this.reversed=z(d.reversed,this.reversed);this.visible=d.visible;this.zoomEnabled=d.zoomEnabled;this.hasNames="category"===b||!0===d.categories;this.categories=d.categories||(this.hasNames?[]:void 0);this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups=
|
|
181
|
+
{};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=E(d.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=d.minRange||d.maxZoom;this.range=d.range;this.offset=d.offset||0;this.min=this.max=null;a=z(d.crosshair,O(c.options.tooltip.crosshairs)[g?0:1]);this.crosshair=!0===a?{}:a;-1===c.axes.indexOf(this)&&(g?c.axes.splice(c.xAxis.length,0,this):c.axes.push(this),c[this.coll].push(this));this.series=
|
|
182
|
+
this.series||[];c.inverted&&!this.isZAxis&&g&&"undefined"===typeof this.reversed&&(this.reversed=!0);this.labelRotation=r(f.rotation)?f.rotation:void 0;l(this,d);h(this,"afterInit")};b.prototype.setOptions=function(c){this.options=g(e.defaultXAxisOptions,"yAxis"===this.coll&&e.defaultYAxisOptions,[e.defaultTopAxisOptions,e.defaultRightAxisOptions,e.defaultBottomAxisOptions,e.defaultLeftAxisOptions][this.side],g(m[this.coll],c));h(this,"afterSetOptions",{userOptions:c})};b.prototype.defaultLabelFormatter=
|
|
183
|
+
function(c){var a=this.axis;c=this.chart.numberFormatter;var g=r(this.value)?this.value:NaN,h=a.chart.time,d=this.dateTimeLabelFormat,f=m.lang,b=f.numericSymbols;f=f.numericSymbolMagnitude||1E3;var n=a.logarithmic?Math.abs(g):a.tickInterval,k=b&&b.length;if(a.categories)var l="".concat(this.value);else if(d)l=h.dateFormat(d,g);else if(k&&1E3<=n)for(;k--&&"undefined"===typeof l;)a=Math.pow(f,k+1),n>=a&&0===10*g%a&&null!==b[k]&&0!==g&&(l=c(g/a,-1)+b[k]);"undefined"===typeof l&&(l=1E4<=Math.abs(g)?c(g,
|
|
184
|
+
-1):c(g,-1,void 0,""));return l};b.prototype.getSeriesExtremes=function(){var c=this,a=c.chart,g;h(this,"getSeriesExtremes",null,function(){c.hasVisibleSeries=!1;c.dataMin=c.dataMax=c.threshold=null;c.softThreshold=!c.isXAxis;c.stacking&&c.stacking.buildStacks();c.series.forEach(function(h){if(h.visible||!a.options.chart.ignoreHiddenSeries){var d=h.options,f=d.threshold;c.hasVisibleSeries=!0;c.positiveValuesOnly&&0>=f&&(f=null);if(c.isXAxis){if(d=h.xData,d.length){d=c.logarithmic?d.filter(c.validatePositiveValue):
|
|
185
|
+
d;g=h.getXExtremes(d);var b=g.min;var n=g.max;r(b)||b instanceof Date||(d=d.filter(r),g=h.getXExtremes(d),b=g.min,n=g.max);d.length&&(c.dataMin=Math.min(z(c.dataMin,b),b),c.dataMax=Math.max(z(c.dataMax,n),n))}}else if(h=h.applyExtremes(),r(h.dataMin)&&(b=h.dataMin,c.dataMin=Math.min(z(c.dataMin,b),b)),r(h.dataMax)&&(n=h.dataMax,c.dataMax=Math.max(z(c.dataMax,n),n)),E(f)&&(c.threshold=f),!d.softThreshold||c.positiveValuesOnly)c.softThreshold=!1}})});h(this,"afterGetSeriesExtremes")};b.prototype.translate=
|
|
186
|
+
function(c,a,g,h,d,f){var b=this.linkedParent||this,n=h&&b.old?b.old.min:b.min;if(!r(n))return NaN;var k=b.minPixelPadding;d=(b.isOrdinal||b.brokenAxis&&b.brokenAxis.hasBreaks||b.logarithmic&&d)&&b.lin2val;var l=1,D=0;h=h&&b.old?b.old.transA:b.transA;h||(h=b.transA);g&&(l*=-1,D=b.len);b.reversed&&(l*=-1,D-=l*(b.sector||b.len));a?(f=(c*l+D-k)/h+n,d&&(f=b.lin2val(f))):(d&&(c=b.val2lin(c)),c=l*(c-n)*h,f=(b.isRadial?c:p(c))+D+l*k+(r(f)?h*f:0));return f};b.prototype.toPixels=function(c,a){return this.translate(c,
|
|
187
|
+
!1,!this.horiz,void 0,!0)+(a?0:this.pos)};b.prototype.toValue=function(c,a){return this.translate(c-(a?0:this.pos),!0,!this.horiz,void 0,!0)};b.prototype.getPlotLinePath=function(c){function a(c,a,g){if("pass"!==e&&c<a||c>g)e?c=k(c,a,g):A=!0;return c}var g=this,d=g.chart,f=g.left,b=g.top,n=c.old,l=c.value,D=c.lineWidth,y=n&&d.oldChartHeight||d.chartHeight,t=n&&d.oldChartWidth||d.chartWidth,G=g.transB,p=c.translatedValue,e=c.force,H,Q,m,w,A;c={value:l,lineWidth:D,old:n,force:e,acrossPanes:c.acrossPanes,
|
|
188
|
+
translatedValue:p};h(this,"getPlotLinePath",c,function(c){p=z(p,g.translate(l,void 0,void 0,n));p=k(p,-1E5,1E5);H=m=Math.round(p+G);Q=w=Math.round(y-p-G);r(p)?g.horiz?(Q=b,w=y-g.bottom,H=m=a(H,f,f+g.width)):(H=f,m=t-g.right,Q=w=a(Q,b,b+g.height)):(A=!0,e=!1);c.path=A&&!e?null:d.renderer.crispLine([["M",H,Q],["L",m,w]],D||1)});return c.path};b.prototype.getLinearTickPositions=function(c,a,g){var h=p(Math.floor(a/c)*c);g=p(Math.ceil(g/c)*c);var d=[],f;p(h+c)===h&&(f=20);if(this.single)return[a];for(a=
|
|
189
|
+
h;a<=g;){d.push(a);a=p(a+c,f);if(a===b)break;var b=a}return d};b.prototype.getMinorTickInterval=function(){var c=this.options;return!0===c.minorTicks?z(c.minorTickInterval,"auto"):!1===c.minorTicks?null:c.minorTickInterval};b.prototype.getMinorTickPositions=function(){var c=this.options,a=this.tickPositions,g=this.minorTickInterval,h=this.pointRangePadding||0,d=this.min-h;h=this.max+h;var f=h-d,b=[];if(f&&f/g<this.len/3){var n=this.logarithmic;if(n)this.paddedTicks.forEach(function(c,a,h){a&&b.push.apply(b,
|
|
190
|
+
n.getLogTickPositions(g,h[a-1],h[a],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())b=b.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(g),d,h,c.startOfWeek));else for(c=d+(a[0]-d)%g;c<=h&&c!==b[0];c+=g)b.push(c)}0!==b.length&&this.trimTicks(b);return b};b.prototype.adjustForMinRange=function(){var c=this.options,a=this.logarithmic,g=this.min,h=this.max,b=0,n,k,l,r;this.isXAxis&&"undefined"===typeof this.minRange&&!a&&(E(c.min)||E(c.max)||E(c.floor)||E(c.ceiling)?
|
|
191
|
+
this.minRange=null:(this.series.forEach(function(c){l=c.xData;r=c.xIncrement?1:l.length-1;if(1<l.length)for(n=r;0<n;n--)if(k=l[n]-l[n-1],!b||k<b)b=k}),this.minRange=Math.min(5*b,this.dataMax-this.dataMin)));if(h-g<this.minRange){var D=this.dataMax-this.dataMin>=this.minRange;var y=this.minRange;var t=(y-h+g)/2;t=[g-t,z(c.min,g-t)];D&&(t[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);g=f(t);h=[g+y,z(c.max,g+y)];D&&(h[2]=a?a.log2lin(this.dataMax):this.dataMax);h=d(h);h-g<y&&
|
|
192
|
+
(t[0]=h-y,t[1]=z(c.min,h-y),g=f(t))}this.min=g;this.max=h};b.prototype.getClosest=function(){var c;this.categories?c=1:this.series.forEach(function(a){var g=a.closestPointRange,h=a.visible||!a.chart.options.chart.ignoreHiddenSeries;!a.noSharedTooltip&&E(g)&&h&&(c=E(c)?Math.min(c,g):g)});return c};b.prototype.nameToX=function(c){var a=y(this.options.categories),g=a?this.categories:this.names,h=c.options.x;c.series.requireSorting=!1;E(h)||(h=this.options.uniqueNames&&g?a?g.indexOf(c.name):z(g.keys[c.name],
|
|
193
|
+
-1):c.series.autoIncrement());if(-1===h){if(!a&&g)var d=g.length}else d=h;"undefined"!==typeof d?(this.names[d]=c.name,this.names.keys[c.name]=d):c.x&&(d=c.x);return d};b.prototype.updateNames=function(){var c=this,a=this.names;0<a.length&&(Object.keys(a.keys).forEach(function(c){delete a.keys[c]}),a.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(a){a.xIncrement=null;if(!a.points||a.isDirtyData)c.max=Math.max(c.max,a.xData.length-1),a.processData(),a.generatePoints();
|
|
194
|
+
a.data.forEach(function(g,h){if(g&&g.options&&"undefined"!==typeof g.name){var d=c.nameToX(g);"undefined"!==typeof d&&d!==g.x&&(g.x=d,a.xData[h]=d)}})}))};b.prototype.setAxisTranslation=function(){var c=this,a=c.max-c.min,g=c.linkedParent,d=!!c.categories,f=c.isXAxis,b=c.axisPointRange||0,k=0,l=0,r=c.transA;if(f||d||b){var D=c.getClosest();g?(k=g.minPointOffset,l=g.pointRangePadding):c.series.forEach(function(a){var g=d?1:f?z(a.options.pointRange,D,0):c.axisPointRange||0,h=a.options.pointPlacement;
|
|
195
|
+
b=Math.max(b,g);if(!c.single||d)a=a.is("xrange")?!f:f,k=Math.max(k,a&&n(h)?0:g/2),l=Math.max(l,a&&"on"===h?0:g)});g=c.ordinal&&c.ordinal.slope&&D?c.ordinal.slope/D:1;c.minPointOffset=k*=g;c.pointRangePadding=l*=g;c.pointRange=Math.min(b,c.single&&d?1:a);f&&(c.closestPointRange=D)}c.translationSlope=c.transA=r=c.staticScale||c.len/(a+l||1);c.transB=c.horiz?c.left:c.bottom;c.minPixelPadding=r*k;h(this,"afterSetAxisTranslation")};b.prototype.minFromRange=function(){return this.max-this.range};b.prototype.setTickInterval=
|
|
196
|
+
function(c){var a=this.chart,g=this.logarithmic,d=this.options,f=this.isXAxis,b=this.isLinked,n=d.tickPixelInterval,k=this.categories,l=this.softThreshold,D=d.maxPadding,y=d.minPadding,t=r(d.tickInterval)&&0<=d.tickInterval?d.tickInterval:void 0,G=r(this.threshold)?this.threshold:null;this.dateTime||k||b||this.getTickAmount();var e=z(this.userMin,d.min);var H=z(this.userMax,d.max);if(b){this.linkedParent=a[this.coll][d.linkedTo];var m=this.linkedParent.getExtremes();this.min=z(m.min,m.dataMin);this.max=
|
|
197
|
+
z(m.max,m.dataMax);d.type!==this.linkedParent.options.type&&I(11,1,a)}else{if(l&&E(G))if(this.dataMin>=G)m=G,y=0;else if(this.dataMax<=G){var w=G;D=0}this.min=z(e,m,this.dataMin);this.max=z(H,w,this.dataMax)}g&&(this.positiveValuesOnly&&!c&&0>=Math.min(this.min,z(this.dataMin,this.min))&&I(10,1,a),this.min=p(g.log2lin(this.min),16),this.max=p(g.log2lin(this.max),16));this.range&&E(this.max)&&(this.userMin=this.min=e=Math.max(this.dataMin,this.minFromRange()),this.userMax=H=this.max,this.range=null);
|
|
198
|
+
h(this,"foundExtremes");this.beforePadding&&this.beforePadding();this.adjustForMinRange();!(k||this.axisPointRange||this.stacking&&this.stacking.usePercentage||b)&&E(this.min)&&E(this.max)&&(a=this.max-this.min)&&(!E(e)&&y&&(this.min-=a*y),!E(H)&&D&&(this.max+=a*D));r(this.userMin)||(r(d.softMin)&&d.softMin<this.min&&(this.min=e=d.softMin),r(d.floor)&&(this.min=Math.max(this.min,d.floor)));r(this.userMax)||(r(d.softMax)&&d.softMax>this.max&&(this.max=H=d.softMax),r(d.ceiling)&&(this.max=Math.min(this.max,
|
|
199
|
+
d.ceiling)));l&&E(this.dataMin)&&(G=G||0,!E(e)&&this.min<G&&this.dataMin>=G?this.min=this.options.minRange?Math.min(G,this.max-this.minRange):G:!E(H)&&this.max>G&&this.dataMax<=G&&(this.max=this.options.minRange?Math.max(G,this.min+this.minRange):G));r(this.min)&&r(this.max)&&!this.chart.polar&&this.min>this.max&&(E(this.options.min)?this.max=this.min:E(this.options.max)&&(this.min=this.max));this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:b&&
|
|
200
|
+
this.linkedParent&&!t&&n===this.linkedParent.options.tickPixelInterval?t=this.linkedParent.tickInterval:z(t,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,k?1:(this.max-this.min)*n/Math.max(this.len,n));if(f&&!c){var A=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(c){c.forceCrop=c.forceCropping&&c.forceCropping();c.processData(A)});h(this,"postProcessData",{hasExtremesChanged:A})}this.setAxisTranslation();h(this,"initialAxisTranslation");
|
|
201
|
+
this.pointRange&&!t&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));c=z(d.minTickInterval,this.dateTime&&!this.series.some(function(c){return c.noSharedTooltip})?this.closestPointRange:0);!t&&this.tickInterval<c&&(this.tickInterval=c);this.dateTime||this.logarithmic||t||(this.tickInterval=K(this,this.tickInterval));this.tickAmount||(this.tickInterval=this.unsquish());this.setTickPositions()};b.prototype.setTickPositions=function(){var c=this.options,a=c.tickPositions,g=c.tickPositioner,
|
|
202
|
+
d=this.getMinorTickInterval(),f=this.hasVerticalPanning(),b="colorAxis"===this.coll,n=(b||!f)&&c.startOnTick;f=(b||!f)&&c.endOnTick;b=[];var k;this.tickmarkOffset=this.categories&&"between"===c.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&E(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==c.allowDecimals);if(a)b=a.slice();else if(r(this.min)&&r(this.max)){if(this.ordinal&&
|
|
203
|
+
this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)b=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,c.units),this.min,this.max,c.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)b=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(d=c=this.tickInterval;d<=2*c;)if(b=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&
|
|
204
|
+
b.length>this.tickAmount)this.tickInterval=K(this,d*=1.1);else break;else b=[this.min,this.max],I(19,!1,this.chart);b.length>this.len&&(b=[b[0],b[b.length-1]],b[0]===b[1]&&(b.length=1));g&&(this.tickPositions=b,(k=g.apply(this,[this.min,this.max]))&&(b=k))}this.tickPositions=b;this.paddedTicks=b.slice(0);this.trimTicks(b,n,f);!this.isLinked&&r(this.min)&&r(this.max)&&(this.single&&2>b.length&&!this.categories&&!this.series.some(function(c){return c.is("heatmap")&&"between"===c.options.pointPlacement})&&
|
|
205
|
+
(this.min-=.5,this.max+=.5),a||k||this.adjustTickAmount());h(this,"afterSetTickPositions")};b.prototype.trimTicks=function(c,a,g){var d=c[0],f=c[c.length-1],b=!this.isOrdinal&&this.minPointOffset||0;h(this,"trimTicks");if(!this.isLinked){if(a&&-Infinity!==d)this.min=d;else for(;this.min-b>c[0];)c.shift();if(g)this.max=f;else for(;this.max+b<c[c.length-1];)c.pop();0===c.length&&E(d)&&!this.options.tickPositions&&c.push((f+d)/2)}};b.prototype.alignToOthers=function(){var c=this,a=[this],g=c.options,
|
|
206
|
+
h="yAxis"===this.coll&&this.chart.options.chart.alignThresholds,d=[],f;c.thresholdAlignment=void 0;if((!1!==this.chart.options.chart.alignTicks&&g.alignTicks||h)&&!1!==g.startOnTick&&!1!==g.endOnTick&&!c.logarithmic){var b=function(c){var a=c.options;return[c.horiz?a.left:a.top,a.width,a.height,a.pane].join()},n=b(this);this.chart[this.coll].forEach(function(g){var h=g.series;h.length&&h.some(function(c){return c.visible})&&g!==c&&b(g)===n&&(f=!0,a.push(g))})}if(f&&h){a.forEach(function(a){a=a.getThresholdAlignment(c);
|
|
207
|
+
r(a)&&d.push(a)});var k=1<d.length?d.reduce(function(c,a){return c+a},0)/d.length:void 0;a.forEach(function(c){c.thresholdAlignment=k})}return f};b.prototype.getThresholdAlignment=function(c){(!r(this.dataMin)||this!==c&&this.series.some(function(c){return c.isDirty||c.isDirtyData}))&&this.getSeriesExtremes();if(r(this.threshold))return c=k((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(c=1-c),c};b.prototype.getTickAmount=function(){var c=this.options,
|
|
208
|
+
a=c.tickPixelInterval,g=c.tickAmount;!E(c.tickInterval)&&!g&&this.len<a&&!this.isRadial&&!this.logarithmic&&c.startOnTick&&c.endOnTick&&(g=2);!g&&this.alignToOthers()&&(g=Math.ceil(this.len/a)+1);4>g&&(this.finalTickAmt=g,g=5);this.tickAmount=g};b.prototype.adjustTickAmount=function(){var c=this,a=c.finalTickAmt,g=c.max,h=c.min,d=c.options,f=c.tickPositions,b=c.tickAmount,n=c.thresholdAlignment,k=f&&f.length,l=z(c.threshold,c.softThreshold?0:null);var D=c.tickInterval;if(r(n)){var y=.5>n?Math.ceil(n*
|
|
209
|
+
(b-1)):Math.floor(n*(b-1));d.reversed&&(y=b-1-y)}if(c.hasData()&&r(h)&&r(g)){n=function(){c.transA*=(k-1)/(b-1);c.min=d.startOnTick?f[0]:Math.min(h,f[0]);c.max=d.endOnTick?f[f.length-1]:Math.max(g,f[f.length-1])};if(r(y)&&r(c.threshold)){for(;f[y]!==l||f.length!==b||f[0]>h||f[f.length-1]<g;){f.length=0;for(f.push(c.threshold);f.length<b;)void 0===f[y]||f[y]>c.threshold?f.unshift(p(f[0]-D)):f.push(p(f[f.length-1]+D));if(D>8*c.tickInterval)break;D*=2}n()}else if(k<b){for(;f.length<b;)f.length%2||h===
|
|
210
|
+
l?f.push(p(f[f.length-1]+D)):f.unshift(p(f[0]-D));n()}if(E(a)){for(D=l=f.length;D--;)(3===a&&1===D%2||2>=a&&0<D&&D<l-1)&&f.splice(D,1);c.finalTickAmt=void 0}}};b.prototype.setScale=function(){var c=!1,a=!1;this.series.forEach(function(g){c=c||g.isDirtyData||g.isDirty;a=a||g.xAxis&&g.xAxis.isDirty||!1});this.setAxisSize();var g=this.len!==(this.old&&this.old.len);g||c||a||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?
|
|
211
|
+
(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=g||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();c&&this.panningState&&(this.panningState.isDirty=!0);h(this,"afterSetScale")};b.prototype.setExtremes=function(c,a,g,d,f){var b=this,n=b.chart;g=z(g,!0);b.series.forEach(function(c){delete c.kdTree});f=t(f,{min:c,max:a});h(b,"setExtremes",f,
|
|
212
|
+
function(){b.userMin=c;b.userMax=a;b.eventArgs=f;g&&n.redraw(d)})};b.prototype.zoom=function(c,a){var g=this,d=this.dataMin,f=this.dataMax,b=this.options,n=Math.min(d,z(b.min,d)),k=Math.max(f,z(b.max,f));c={newMin:c,newMax:a};h(this,"zoom",c,function(c){var a=c.newMin,h=c.newMax;if(a!==g.min||h!==g.max)g.allowZoomOutside||(E(d)&&(a<n&&(a=n),a>k&&(a=k)),E(f)&&(h<n&&(h=n),h>k&&(h=k))),g.displayBtn="undefined"!==typeof a||"undefined"!==typeof h,g.setExtremes(a,h,!1,void 0,{trigger:"zoom"});c.zoomed=
|
|
213
|
+
!0});return c.zoomed};b.prototype.setAxisSize=function(){var c=this.chart,a=this.options,g=a.offsets||[0,0,0,0],h=this.horiz,d=this.width=Math.round(G(z(a.width,c.plotWidth-g[3]+g[1]),c.plotWidth)),f=this.height=Math.round(G(z(a.height,c.plotHeight-g[0]+g[2]),c.plotHeight)),b=this.top=Math.round(G(z(a.top,c.plotTop+g[0]),c.plotHeight,c.plotTop));a=this.left=Math.round(G(z(a.left,c.plotLeft+g[3]),c.plotWidth,c.plotLeft));this.bottom=c.chartHeight-f-b;this.right=c.chartWidth-d-a;this.len=Math.max(h?
|
|
214
|
+
d:f,0);this.pos=h?a:b};b.prototype.getExtremes=function(){var c=this.logarithmic;return{min:c?p(c.lin2log(this.min)):this.min,max:c?p(c.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};b.prototype.getThreshold=function(c){var a=this.logarithmic,g=a?a.lin2log(this.min):this.min;a=a?a.lin2log(this.max):this.max;null===c||-Infinity===c?c=g:Infinity===c?c=a:g>c?c=g:a<c&&(c=a);return this.translate(c,0,1,0,1)};b.prototype.autoLabelAlign=
|
|
215
|
+
function(c){var a=(z(c,0)-90*this.side+720)%360;c={align:"center"};h(this,"autoLabelAlign",c,function(c){15<a&&165>a?c.align="right":195<a&&345>a&&(c.align="left")});return c.align};b.prototype.tickSize=function(c){var a=this.options,g=z(a["tick"===c?"tickWidth":"minorTickWidth"],"tick"===c&&this.isXAxis&&!this.categories?1:0),d=a["tick"===c?"tickLength":"minorTickLength"];if(g&&d){"inside"===a[c+"Position"]&&(d=-d);var f=[d,g]}c={tickSize:f};h(this,"afterTickSize",c);return c.tickSize};b.prototype.labelMetrics=
|
|
216
|
+
function(){var c=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[c]&&this.ticks[c].label)};b.prototype.unsquish=function(){var c=this.options.labels,g=this.horiz,h=this.tickInterval,d=this.len/(((this.categories?1:0)+this.max-this.min)/h),f=c.rotation,b=this.labelMetrics(),n=Math.max(this.max-this.min,0),k=function(c){var a=c/(d||1);a=1<a?Math.ceil(a):1;a*h>n&&Infinity!==c&&Infinity!==d&&n&&(a=Math.ceil(n/h));return p(a*
|
|
217
|
+
h)},l=h,D=Number.MAX_VALUE;if(g){if(!c.staggerLines)if(r(f))var y=[f];else d<c.autoRotationLimit&&(y=c.autoRotation);if(y)for(var t=g=void 0,G=0,e=y;G<e.length;G++){var H=e[G];if(H===f||H&&-90<=H&&90>=H)if(g=k(Math.abs(b.h/Math.sin(a*H))),t=g+Math.abs(H/360),t<D){D=t;var m=H;l=g}}}else l=k(b.h);this.autoRotation=y;this.labelRotation=z(m,r(f)?f:0);return c.step?h:l};b.prototype.getSlotWidth=function(c){var a=this.chart,g=this.horiz,h=this.options.labels,d=Math.max(this.tickPositions.length-(this.categories?
|
|
218
|
+
0:1),1),f=a.margin[3];if(c&&r(c.slotWidth))return c.slotWidth;if(g&&2>h.step)return h.rotation?0:(this.staggerLines||1)*this.len/d;if(!g){c=h.style.width;if(void 0!==c)return parseInt(String(c),10);if(f)return f-a.spacing[3]}return.33*a.chartWidth};b.prototype.renderUnsquish=function(){var c=this.chart,a=c.renderer,g=this.tickPositions,h=this.ticks,d=this.options.labels,f=d.style,b=this.horiz,k=this.getSlotWidth(),l=Math.max(1,Math.round(k-2*d.padding)),D={},r=this.labelMetrics(),z=f.textOverflow,
|
|
219
|
+
y=0;n(d.rotation)||(D.rotation=d.rotation||0);g.forEach(function(c){c=h[c];c.movedLabel&&c.replaceMovedLabel();c&&c.label&&c.label.textPxLength>y&&(y=c.label.textPxLength)});this.maxLabelLength=y;if(this.autoRotation)y>l&&y>r.h?D.rotation=this.labelRotation:this.labelRotation=0;else if(k){var t=l;if(!z){var G="clip";for(l=g.length;!b&&l--;){var e=g[l];if(e=h[e].label)e.styles&&"ellipsis"===e.styles.textOverflow?e.css({textOverflow:"clip"}):e.textPxLength>k&&e.css({width:k+"px"}),e.getBBox().height>
|
|
220
|
+
this.len/g.length-(r.h-r.f)&&(e.specificTextOverflow="ellipsis")}}}D.rotation&&(t=y>.5*c.chartHeight?.33*c.chartHeight:y,z||(G="ellipsis"));if(this.labelAlign=d.align||this.autoLabelAlign(this.labelRotation))D.align=this.labelAlign;g.forEach(function(c){var a=(c=h[c])&&c.label,g=f.width,d={};a&&(a.attr(D),c.shortenLabel?c.shortenLabel():t&&!g&&"nowrap"!==f.whiteSpace&&(t<a.textPxLength||"SPAN"===a.element.tagName)?(d.width=t+"px",z||(d.textOverflow=a.specificTextOverflow||G),a.css(d)):a.styles&&a.styles.width&&
|
|
221
|
+
!d.width&&!g&&a.css({width:null}),delete a.specificTextOverflow,c.rotation=D.rotation)},this);this.tickRotCorr=a.rotCorr(r.b,this.labelRotation||0,0!==this.side)};b.prototype.hasData=function(){return this.series.some(function(c){return c.hasData()})||this.options.showEmpty&&E(this.min)&&E(this.max)};b.prototype.addTitle=function(c){var a=this.chart.renderer,h=this.horiz,d=this.opposite,f=this.options.title,b=this.chart.styledMode,n;this.axisTitle||((n=f.textAlign)||(n=(h?{low:"left",middle:"center",
|
|
222
|
+
high:"right"}:{low:d?"right":"left",middle:"center",high:d?"left":"right"})[f.align]),this.axisTitle=a.text(f.text||"",0,0,f.useHTML).attr({zIndex:7,rotation:f.rotation,align:n}).addClass("highcharts-axis-title"),b||this.axisTitle.css(g(f.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0);b||f.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[c?"show":"hide"](c)};b.prototype.generateTick=function(c){var a=this.ticks;a[c]?a[c].addLabel():a[c]=new F(this,
|
|
223
|
+
c)};b.prototype.getOffset=function(){var a=this,g=this,d=g.chart,f=g.horiz,b=g.options,n=g.side,k=g.ticks,l=g.tickPositions,D=g.coll,r=g.axisParent,y=d.renderer,t=d.inverted&&!g.isZAxis?[1,0,3,2][n]:n,G=g.hasData(),e=b.title,p=b.labels,H=d.axisOffset;d=d.clipOffset;var m=[-1,1,1,-1][n],w=b.className,A,I=0,O=0,v=0;g.showAxis=A=G||b.showEmpty;g.staggerLines=g.horiz&&p.staggerLines||void 0;if(!g.axisGroup){var P=function(c,g,d){return y.g(c).attr({zIndex:d}).addClass("highcharts-".concat(D.toLowerCase()).concat(g,
|
|
224
|
+
" ")+(a.isRadial?"highcharts-radial-axis".concat(g," "):"")+(w||"")).add(r)};g.gridGroup=P("grid","-grid",b.gridZIndex);g.axisGroup=P("axis","",b.zIndex);g.labelGroup=P("axis-labels","-labels",p.zIndex)}G||g.isLinked?(l.forEach(function(c){g.generateTick(c)}),g.renderUnsquish(),g.reserveSpaceDefault=0===n||2===n||{1:"left",3:"right"}[n]===g.labelAlign,z(p.reserveSpace,"center"===g.labelAlign?!0:null,g.reserveSpaceDefault)&&l.forEach(function(c){v=Math.max(k[c].getLabelSize(),v)}),g.staggerLines&&
|
|
225
|
+
(v*=g.staggerLines),g.labelOffset=v*(g.opposite?-1:1)):c(k,function(c,a){c.destroy();delete k[a]});if(e&&e.text&&!1!==e.enabled&&(g.addTitle(A),A&&!1!==e.reserveSpace)){g.titleOffset=I=g.axisTitle.getBBox()[f?"height":"width"];var x=e.offset;O=E(x)?0:z(e.margin,f?5:10)}g.renderLine();g.offset=m*z(b.offset,H[n]?H[n]+(b.margin||0):0);g.tickRotCorr=g.tickRotCorr||{x:0,y:0};e=0===n?-g.labelMetrics().h:2===n?g.tickRotCorr.y:0;G=Math.abs(v)+O;v&&(G=G-e+m*(f?z(p.y,g.tickRotCorr.y+8*m):p.x));g.axisTitleMargin=
|
|
226
|
+
z(x,G);g.getMaxLabelDimensions&&(g.maxLabelDimensions=g.getMaxLabelDimensions(k,l));"colorAxis"!==D&&(f=this.tickSize("tick"),H[n]=Math.max(H[n],(g.axisTitleMargin||0)+I+m*g.offset,G,l&&l.length&&f?f[0]+m*g.offset:0),b=!g.axisLine||b.offset?0:2*Math.floor(g.axisLine.strokeWidth()/2),d[t]=Math.max(d[t],b));h(this,"afterGetOffset")};b.prototype.getLinePath=function(c){var a=this.chart,g=this.opposite,d=this.offset,h=this.horiz,f=this.left+(g?this.width:0)+d;d=a.chartHeight-this.bottom-(g?this.height:
|
|
227
|
+
0)+d;g&&(c*=-1);return a.renderer.crispLine([["M",h?this.left:f,h?d:this.top],["L",h?a.chartWidth-this.right:f,h?d:a.chartHeight-this.bottom]],c)};b.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))};b.prototype.getTitlePosition=function(){var c=this.horiz,a=this.left,g=this.top,d=this.len,
|
|
228
|
+
f=this.options.title,b=c?a:g,n=this.opposite,k=this.offset,l=f.x,D=f.y,r=this.axisTitle,z=this.chart.renderer.fontMetrics(f.style.fontSize,r);r=r?Math.max(r.getBBox(!1,0).height-z.h-1,0):0;d={low:b+(c?0:d),middle:b+d/2,high:b+(c?d:0)}[f.align];a=(c?g+this.height:a)+(c?1:-1)*(n?-1:1)*(this.axisTitleMargin||0)+[-r,r,z.f,-r][this.side];c={x:c?d+l:a+(n?this.width:0)+k+l,y:c?a+D-(n?this.height:0)+k:d+D};h(this,"afterGetTitlePosition",{titlePosition:c});return c};b.prototype.renderMinorTick=function(c,
|
|
229
|
+
a){var g=this.minorTicks;g[c]||(g[c]=new F(this,c,"minor"));a&&g[c].isNew&&g[c].render(null,!0);g[c].render(null,!1,1)};b.prototype.renderTick=function(c,a,g){var d=this.ticks;if(!this.isLinked||c>=this.min&&c<=this.max||this.grid&&this.grid.isColumn)d[c]||(d[c]=new F(this,c)),g&&d[c].isNew&&d[c].render(a,!0,-1),d[c].render(a)};b.prototype.render=function(){var a=this,g=a.chart,d=a.logarithmic,f=a.options,b=a.isLinked,n=a.tickPositions,k=a.axisTitle,l=a.ticks,D=a.minorTicks,z=a.alternateBands,y=f.stackLabels,
|
|
230
|
+
t=f.alternateGridColor,G=a.tickmarkOffset,e=a.axisLine,p=a.showAxis,H=v(g.renderer.globalAnimation),m,w;a.labelEdge.length=0;a.overlap=!1;[l,D,z].forEach(function(a){c(a,function(c){c.isActive=!1})});if(a.hasData()||b){var A=a.chart.hasRendered&&a.old&&r(a.old.min);a.minorTickInterval&&!a.categories&&a.getMinorTickPositions().forEach(function(c){a.renderMinorTick(c,A)});n.length&&(n.forEach(function(c,g){a.renderTick(c,g,A)}),G&&(0===a.min||a.single)&&(l[-1]||(l[-1]=new F(a,-1,null,!0)),l[-1].render(-1)));
|
|
231
|
+
t&&n.forEach(function(c,h){w="undefined"!==typeof n[h+1]?n[h+1]+G:a.max-G;0===h%2&&c<a.max&&w<=a.max+(g.polar?-G:G)&&(z[c]||(z[c]=new q.PlotLineOrBand(a)),m=c+G,z[c].options={from:d?d.lin2log(m):m,to:d?d.lin2log(w):w,color:t,className:"highcharts-alternate-grid"},z[c].render(),z[c].isActive=!0)});a._addedPlotLB||(a._addedPlotLB=!0,(f.plotLines||[]).concat(f.plotBands||[]).forEach(function(c){a.addPlotBandOrLine(c)}))}[l,D,z].forEach(function(a){var d=[],h=H.duration;c(a,function(c,a){c.isActive||
|
|
232
|
+
(c.render(a,!1,0),c.isActive=!1,d.push(a))});P(function(){for(var c=d.length;c--;)a[d[c]]&&!a[d[c]].isActive&&(a[d[c]].destroy(),delete a[d[c]])},a!==z&&g.hasRendered&&h?h:0)});e&&(e[e.isPlaced?"animate":"attr"]({d:this.getLinePath(e.strokeWidth())}),e.isPlaced=!0,e[p?"show":"hide"](p));k&&p&&(f=a.getTitlePosition(),k[k.isNew?"attr":"animate"](f),k.isNew=!1);y&&y.enabled&&a.stacking&&a.stacking.renderStackTotals();a.old={len:a.len,max:a.max,min:a.min,transA:a.transA,userMax:a.userMax,userMin:a.userMin};
|
|
233
|
+
a.isDirty=!1;h(this,"afterRender")};b.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(c){c.render()}));this.series.forEach(function(c){c.isDirty=!0})};b.prototype.getKeepProps=function(){return this.keepProps||b.keepProps};b.prototype.destroy=function(a){var g=this,d=g.plotLinesAndBands,f=this.eventOptions;h(this,"destroy",{keepEvents:a});a||H(g);[g.ticks,g.minorTicks,g.alternateBands].forEach(function(c){A(c)});if(d)for(a=d.length;a--;)d[a].destroy();
|
|
234
|
+
"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(c){g[c]&&(g[c]=g[c].destroy())});for(var b in g.plotLinesAndBandsGroups)g.plotLinesAndBandsGroups[b]=g.plotLinesAndBandsGroups[b].destroy();c(g,function(c,a){-1===g.getKeepProps().indexOf(a)&&delete g[a]});this.eventOptions=f};b.prototype.drawCrosshair=function(c,a){var g=this.crosshair,d=z(g&&g.snap,!0),f=this.chart,b,n=this.cross;h(this,"drawCrosshair",{e:c,point:a});c||(c=this.cross&&this.cross.e);if(g&&
|
|
235
|
+
!1!==(E(a)||!d)){d?E(a)&&(b=z("colorAxis"!==this.coll?a.crosshairPos:null,this.isXAxis?a.plotX:this.len-a.plotY)):b=c&&(this.horiz?c.chartX-this.pos:this.len-c.chartY+this.pos);if(E(b)){var k={value:a&&(this.isXAxis?a.x:z(a.stackY,a.y)),translatedValue:b};f.polar&&t(k,{isCrosshair:!0,chartX:c&&c.chartX,chartY:c&&c.chartY,point:a});k=this.getPlotLinePath(k)||null}if(!E(k)){this.hideCrosshair();return}d=this.categories&&!this.isRadial;n||(this.cross=n=f.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+
|
|
236
|
+
(d?"category ":"thin ")+(g.className||"")).attr({zIndex:z(g.zIndex,2)}).add(),f.styledMode||(n.attr({stroke:g.color||(d?u.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":z(g.width,1)}).css({"pointer-events":"none"}),g.dashStyle&&n.attr({dashstyle:g.dashStyle})));n.show().attr({d:k});d&&!g.width&&n.attr({"stroke-width":this.transA});this.cross.e=c}else this.hideCrosshair();h(this,"afterDrawCrosshair",{e:c,point:a})};b.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();
|
|
237
|
+
h(this,"afterHideCrosshair")};b.prototype.hasVerticalPanning=function(){var c=this.chart.options.chart.panning;return!!(c&&c.enabled&&/y/.test(c.type))};b.prototype.validatePositiveValue=function(c){return r(c)&&0<c};b.prototype.update=function(c,a){var d=this.chart;c=g(this.userOptions,c);this.destroy(!0);this.init(d,c);d.isDirtyBox=!0;z(a,!0)&&d.redraw()};b.prototype.remove=function(c){for(var a=this.chart,g=this.coll,d=this.series,h=d.length;h--;)d[h]&&d[h].remove(!1);w(a.axes,this);w(a[g],this);
|
|
238
|
+
a[g].forEach(function(c,a){c.options.index=c.userOptions.index=a});this.destroy();a.isDirtyBox=!0;z(c,!0)&&a.redraw()};b.prototype.setTitle=function(c,a){this.update({title:c},a)};b.prototype.setCategories=function(c,a){this.update({categories:c},a)};b.defaultOptions=e.defaultXAxisOptions;b.keepProps="extKey hcEvents names series userMax userMin".split(" ");return b}();"";return b});J(e,"Core/Axis/DateTimeAxis.js",[e["Core/Utilities.js"]],function(b){var e=b.addEvent,u=b.getMagnitude,C=b.normalizeTickInterval,
|
|
239
|
+
B=b.timeUnits,q;(function(b){function x(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function v(a){"datetime"!==a.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new l(this))}var m=[];b.compose=function(a){-1===m.indexOf(a)&&(m.push(a),a.keepProps.push("dateTime"),a.prototype.getTimeTicks=x,e(a,"init",v));return a};var l=function(){function a(a){this.axis=a}a.prototype.normalizeTimeTickInterval=function(a,d){var f=d||[["millisecond",[1,2,5,10,20,25,50,
|
|
240
|
+
100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];d=f[f.length-1];var b=B[d[0]],l=d[1],e;for(e=0;e<f.length&&!(d=f[e],b=B[d[0]],l=d[1],f[e+1]&&a<=(b*l[l.length-1]+B[f[e+1][0]])/2);e++);b===B.year&&a<5*b&&(l=[1,2,5]);a=C(a/b,l,"year"===d[0]?Math.max(u(a/b),1):1);return{unitRange:b,count:a,unitName:d[0]}};a.prototype.getXDateFormat=function(a,d){var f=this.axis,b=f.chart.time;return f.closestPointRange?
|
|
241
|
+
b.getDateFormat(f.closestPointRange,a,f.options.startOfWeek,d)||b.resolveDTLFormat(d.year).main:b.resolveDTLFormat(d.day).main};return a}();b.Additions=l})(q||(q={}));return q});J(e,"Core/Axis/LogarithmicAxis.js",[e["Core/Utilities.js"]],function(b){var e=b.addEvent,u=b.normalizeTickInterval,C=b.pick,B;(function(b){function q(b){var a=this.logarithmic;"logarithmic"!==b.userOptions.type?this.logarithmic=void 0:a||(this.logarithmic=new m(this))}function x(){var b=this.logarithmic;b&&(this.lin2val=function(a){return b.lin2log(a)},
|
|
242
|
+
this.val2lin=function(a){return b.log2lin(a)})}var v=[];b.compose=function(b){-1===v.indexOf(b)&&(v.push(b),b.keepProps.push("logarithmic"),e(b,"init",q),e(b,"afterInit",x));return b};var m=function(){function b(a){this.axis=a}b.prototype.getLogTickPositions=function(a,f,d,b){var k=this.axis,l=k.len,e=k.options,m=[];b||(this.minorAutoInterval=void 0);if(.5<=a)a=Math.round(a),m=k.getLinearTickPositions(a,f,d);else if(.08<=a){var I=Math.floor(f),t,h=e=void 0;for(l=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,
|
|
243
|
+
2,3,4,5,6,7,8,9];I<d+1&&!h;I++){var y=l.length;for(t=0;t<y&&!h;t++){var r=this.log2lin(this.lin2log(I)*l[t]);r>f&&(!b||e<=d)&&"undefined"!==typeof e&&m.push(e);e>d&&(h=!0);e=r}}}else f=this.lin2log(f),d=this.lin2log(d),a=b?k.getMinorTickInterval():e.tickInterval,a=C("auto"===a?null:a,this.minorAutoInterval,e.tickPixelInterval/(b?5:1)*(d-f)/((b?l/k.tickPositions.length:l)||1)),a=u(a),m=k.getLinearTickPositions(a,f,d).map(this.log2lin),b||(this.minorAutoInterval=a/5);b||(k.tickInterval=a);return m};
|
|
244
|
+
b.prototype.lin2log=function(a){return Math.pow(10,a)};b.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};return b}();b.Additions=m})(B||(B={}));return B});J(e,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[e["Core/Utilities.js"]],function(b){var e=b.erase,u=b.extend,C=b.isNumber,B;(function(b){var q=[],x;b.compose=function(b,l){x||(x=b);-1===q.indexOf(l)&&(q.push(l),u(l.prototype,v.prototype));return l};var v=function(){function b(){}b.prototype.getPlotBandPath=function(b,a,f){void 0===
|
|
245
|
+
f&&(f=this.options);var d=this.getPlotLinePath({value:a,force:!0,acrossPanes:f.acrossPanes}),k=[],l=this.horiz;a=!C(this.min)||!C(this.max)||b<this.min&&a<this.min||b>this.max&&a>this.max;b=this.getPlotLinePath({value:b,force:!0,acrossPanes:f.acrossPanes});f=1;if(b&&d){if(a){var e=b.toString()===d.toString();f=0}for(a=0;a<b.length;a+=2){var m=b[a],w=b[a+1],I=d[a],t=d[a+1];"M"!==m[0]&&"L"!==m[0]||"M"!==w[0]&&"L"!==w[0]||"M"!==I[0]&&"L"!==I[0]||"M"!==t[0]&&"L"!==t[0]||(l&&I[1]===m[1]?(I[1]+=f,t[1]+=
|
|
246
|
+
f):l||I[2]!==m[2]||(I[2]+=f,t[2]+=f),k.push(["M",m[1],m[2]],["L",w[1],w[2]],["L",t[1],t[2]],["L",I[1],I[2]],["Z"]));k.isFlat=e}}return k};b.prototype.addPlotBand=function(b){return this.addPlotBandOrLine(b,"plotBands")};b.prototype.addPlotLine=function(b){return this.addPlotBandOrLine(b,"plotLines")};b.prototype.addPlotBandOrLine=function(b,a){var f=this,d=this.userOptions,k=new x(this,b);this.visible&&(k=k.render());if(k){this._addedPlotLB||(this._addedPlotLB=!0,(d.plotLines||[]).concat(d.plotBands||
|
|
247
|
+
[]).forEach(function(a){f.addPlotBandOrLine(a)}));if(a){var l=d[a]||[];l.push(b);d[a]=l}this.plotLinesAndBands.push(k)}return k};b.prototype.removePlotBandOrLine=function(b){var a=this.plotLinesAndBands,f=this.options,d=this.userOptions;if(a){for(var k=a.length;k--;)a[k].id===b&&a[k].destroy();[f.plotLines||[],d.plotLines||[],f.plotBands||[],d.plotBands||[]].forEach(function(a){for(k=a.length;k--;)(a[k]||{}).id===b&&e(a,a[k])})}};b.prototype.removePlotBand=function(b){this.removePlotBandOrLine(b)};
|
|
248
|
+
b.prototype.removePlotLine=function(b){this.removePlotBandOrLine(b)};return b}()})(B||(B={}));return B});J(e,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[e["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],e["Core/Utilities.js"]],function(b,e){var u=e.arrayMax,K=e.arrayMin,B=e.defined,q=e.destroyObjectProperties,F=e.erase,x=e.fireEvent,v=e.merge,m=e.objectEach,l=e.pick;e=function(){function a(a,d){this.axis=a;d&&(this.options=d,this.id=d.id)}a.compose=function(f){return b.compose(a,f)};a.prototype.render=
|
|
249
|
+
function(){x(this,"render");var a=this,d=a.axis,b=d.horiz,e=d.logarithmic,E=a.options,A=E.color,w=l(E.zIndex,0),I=E.events,t={},h=d.chart.renderer,y=E.label,r=a.label,n=E.to,g=E.from,D=E.value,c=a.svgElem,z=[],G=B(g)&&B(n);z=B(D);var H=!c,O={"class":"highcharts-plot-"+(G?"band ":"line ")+(E.className||"")},P=G?"bands":"lines";e&&(g=e.log2lin(g),n=e.log2lin(n),D=e.log2lin(D));d.chart.styledMode||(z?(O.stroke=A||"#999999",O["stroke-width"]=l(E.width,1),E.dashStyle&&(O.dashstyle=E.dashStyle)):G&&(O.fill=
|
|
250
|
+
A||"#e6ebf5",E.borderWidth&&(O.stroke=E.borderColor,O["stroke-width"]=E.borderWidth)));t.zIndex=w;P+="-"+w;(e=d.plotLinesAndBandsGroups[P])||(d.plotLinesAndBandsGroups[P]=e=h.g("plot-"+P).attr(t).add());H&&(a.svgElem=c=h.path().attr(O).add(e));if(z)z=d.getPlotLinePath({value:D,lineWidth:c.strokeWidth(),acrossPanes:E.acrossPanes});else if(G)z=d.getPlotBandPath(g,n,E);else return;!a.eventsAdded&&I&&(m(I,function(g,d){c.on(d,function(c){I[d].apply(a,[c])})}),a.eventsAdded=!0);(H||!c.d)&&z&&z.length?
|
|
251
|
+
c.attr({d:z}):c&&(z?(c.show(),c.animate({d:z})):c.d&&(c.hide(),r&&(a.label=r=r.destroy())));y&&(B(y.text)||B(y.formatter))&&z&&z.length&&0<d.width&&0<d.height&&!z.isFlat?(y=v({align:b&&G&&"center",x:b?!G&&4:10,verticalAlign:!b&&G&&"middle",y:b?G?16:10:G?6:-4,rotation:b&&!G&&90},y),this.renderLabel(y,z,G,w)):r&&r.hide();return a};a.prototype.renderLabel=function(a,d,b,l){var f=this.axis,k=f.chart.renderer,e=this.label;e||(this.label=e=k.text(this.getLabelText(a),0,0,a.useHTML).attr({align:a.textAlign||
|
|
252
|
+
a.align,rotation:a.rotation,"class":"highcharts-plot-"+(b?"band":"line")+"-label "+(a.className||""),zIndex:l}).add(),f.chart.styledMode||e.css(v({textOverflow:"ellipsis"},a.style)));l=d.xBounds||[d[0][1],d[1][1],b?d[2][1]:d[0][1]];d=d.yBounds||[d[0][2],d[1][2],b?d[2][2]:d[0][2]];b=K(l);k=K(d);e.align(a,!1,{x:b,y:k,width:u(l)-b,height:u(d)-k});e.alignValue&&"left"!==e.alignValue||e.css({width:(90===e.rotation?f.height-(e.alignAttr.y-f.top):f.width-(e.alignAttr.x-f.left))+"px"});e.show(!0)};a.prototype.getLabelText=
|
|
253
|
+
function(a){return B(a.formatter)?a.formatter.call(this):a.text};a.prototype.destroy=function(){F(this.axis.plotLinesAndBands,this);delete this.axis;q(this)};return a}();"";"";return e});J(e,"Core/Tooltip.js",[e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Utilities.js"]],function(b,e,u,C,B){var q=b.format,F=e.doc,x=u.distribute,v=B.clamp,m=B.css,l=B.defined,a=B.discardElement,f=B.extend,d=B.fireEvent,k=B.isArray,
|
|
254
|
+
p=B.isNumber,E=B.isString,A=B.merge,w=B.pick,I=B.splat,t=B.syncTimeout;b=function(){function h(a,d){this.allowShared=!0;this.container=void 0;this.crosshairs=[];this.distance=0;this.isHidden=!0;this.isSticky=!1;this.now={};this.options={};this.outside=!1;this.chart=a;this.init(a,d)}h.prototype.applyFilter=function(){var a=this.chart;a.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+a.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{"in":"SourceAlpha",stdDeviation:1}},
|
|
255
|
+
{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{"in":"SourceGraphic"}}]}]})};h.prototype.bodyFormatter=function(a){return a.map(function(a){var d=a.series.tooltipOptions;return(d[(a.point.formatPrefix||"point")+"Formatter"]||a.point.tooltipFormatter).call(a.point,d[(a.point.formatPrefix||"point")+"Format"]||"")})};h.prototype.cleanSplit=
|
|
256
|
+
function(a){this.chart.series.forEach(function(d){var h=d&&d.tt;h&&(!h.isActive||a?d.tt=h.destroy():h.isActive=!1)})};h.prototype.defaultFormatter=function(a){var d=this.points||I(this);var h=[a.tooltipFooterHeaderFormatter(d[0])];h=h.concat(a.bodyFormatter(d));h.push(a.tooltipFooterHeaderFormatter(d[0],!0));return h};h.prototype.destroy=function(){this.label&&(this.label=this.label.destroy());this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),
|
|
257
|
+
a(this.container));B.clearTimeout(this.hideTimer);B.clearTimeout(this.tooltipTimeout)};h.prototype.getAnchor=function(a,d){var h=this.chart,g=h.pointer,b=h.inverted,c=h.plotTop,f=h.plotLeft,k,l,r=0,y=0;a=I(a);this.followPointer&&d?("undefined"===typeof d.chartX&&(d=g.normalize(d)),g=[d.chartX-f,d.chartY-c]):a[0].tooltipPos?g=a[0].tooltipPos:(a.forEach(function(a){k=a.series.yAxis;l=a.series.xAxis;r+=a.plotX||0;y+=a.plotLow?(a.plotLow+(a.plotHigh||0))/2:a.plotY||0;l&&k&&(b?(r+=c+h.plotHeight-l.len-
|
|
258
|
+
l.pos,y+=f+h.plotWidth-k.len-k.pos):(r+=l.pos-f,y+=k.pos-c))}),r/=a.length,y/=a.length,g=[b?h.plotWidth-y:r,b?h.plotHeight-r:y],this.shared&&1<a.length&&d&&(b?g[0]=d.chartX-f:g[1]=d.chartY-c));return g.map(Math.round)};h.prototype.getLabel=function(){var a=this,d=this.chart.styledMode,h=this.options,g=this.split&&this.allowShared,b="tooltip"+(l(h.className)?" "+h.className:""),c=h.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),f,k=this.chart.renderer;if(a.label){var t=!a.label.hasClass("highcharts-label");
|
|
259
|
+
(g&&!t||!g&&t)&&a.destroy()}if(!this.label){if(this.outside){t=this.chart.options.chart.style;var p=C.getRendererType();this.container=f=e.doc.createElement("div");f.className="highcharts-tooltip-container";m(f,{position:"absolute",top:"1px",pointerEvents:c,zIndex:Math.max(this.options.style.zIndex||0,(t&&t.zIndex||0)+3)});e.doc.body.appendChild(f);this.renderer=k=new p(f,0,0,t,void 0,void 0,k.styledMode)}g?this.label=k.g(b):(this.label=k.label("",0,0,h.shape,void 0,void 0,h.useHTML,void 0,b).attr({padding:h.padding,
|
|
260
|
+
r:h.borderRadius}),d||this.label.attr({fill:h.backgroundColor,"stroke-width":h.borderWidth}).css(h.style).css({pointerEvents:c}).shadow(h.shadow));d&&h.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"}));if(a.outside&&!a.split){var w=this.label,A=w.xSetter,E=w.ySetter;w.xSetter=function(c){A.call(w,a.distance);f.style.left=c+"px"};w.ySetter=function(c){E.call(w,a.distance);f.style.top=c+"px"}}this.label.attr({zIndex:8}).add()}return this.label};h.prototype.getPosition=
|
|
261
|
+
function(a,d,h){var g=this.chart,f=this.distance,c={},b=g.inverted&&h.h||0,n=this.outside,k=n?F.documentElement.clientWidth-2*f:g.chartWidth,l=n?Math.max(F.body.scrollHeight,F.documentElement.scrollHeight,F.body.offsetHeight,F.documentElement.offsetHeight,F.documentElement.clientHeight):g.chartHeight,r=g.pointer.getChartPosition(),y=function(c){var b="x"===c;return[c,b?k:l,b?a:d].concat(n?[b?a*r.scaleX:d*r.scaleY,b?r.left-f+(h.plotX+g.plotLeft)*r.scaleX:r.top-f+(h.plotY+g.plotTop)*r.scaleY,0,b?k:
|
|
262
|
+
l]:[b?a:d,b?h.plotX+g.plotLeft:h.plotY+g.plotTop,b?g.plotLeft:g.plotTop,b?g.plotLeft+g.plotWidth:g.plotTop+g.plotHeight])},t=y("y"),e=y("x"),p;y=!!h.negative;!g.polar&&g.hoverSeries&&g.hoverSeries.yAxis&&g.hoverSeries.yAxis.reversed&&(y=!y);var m=!this.followPointer&&w(h.ttBelow,!g.inverted===y),A=function(a,g,d,h,k,l,D){var z=n?"y"===a?f*r.scaleY:f*r.scaleX:f,y=(d-h)/2,t=h<k-f,e=k+f+h<g,G=k-z-d+y;k=k+z-y;if(m&&e)c[a]=k;else if(!m&&t)c[a]=G;else if(t)c[a]=Math.min(D-h,0>G-b?G:G-b);else if(e)c[a]=
|
|
263
|
+
Math.max(l,k+b+d>g?k:k+b);else return!1},E=function(a,g,d,h,b){var n;b<f||b>g-f?n=!1:c[a]=b<d/2?1:b>g-h/2?g-h-2:b-d/2;return n},I=function(c){var a=t;t=e;e=a;p=c},v=function(){!1!==A.apply(0,t)?!1!==E.apply(0,e)||p||(I(!0),v()):p?c.x=c.y=0:(I(!0),v())};(g.inverted||1<this.len)&&I();v();return c};h.prototype.hide=function(a){var d=this;B.clearTimeout(this.hideTimer);a=w(a,this.options.hideDelay);this.isHidden||(this.hideTimer=t(function(){d.getLabel().fadeOut(a?void 0:a);d.isHidden=!0},a))};h.prototype.init=
|
|
264
|
+
function(a,d){this.chart=a;this.options=d;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=d.split&&!a.inverted&&!a.polar;this.shared=d.shared||this.split;this.outside=w(d.outside,!(!a.scrollablePixelsX&&!a.scrollablePixelsY))};h.prototype.shouldStickOnContact=function(a){return!(this.followPointer||!this.options.stickOnContact||a&&!this.chart.pointer.inClass(a.target,"highcharts-tooltip"))};h.prototype.move=function(a,d,h,g){var b=this,c=b.now,n=!1!==b.options.animation&&!b.isHidden&&
|
|
265
|
+
(1<Math.abs(a-c.x)||1<Math.abs(d-c.y)),k=b.followPointer||1<b.len;f(c,{x:n?(2*c.x+a)/3:a,y:n?(c.y+d)/2:d,anchorX:k?void 0:n?(2*c.anchorX+h)/3:h,anchorY:k?void 0:n?(c.anchorY+g)/2:g});b.getLabel().attr(c);b.drawTracker();n&&(B.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){b&&b.move(a,d,h,g)},32))};h.prototype.refresh=function(a,h){var b=this.chart,g=this.options,f=I(a),c=f[0],l=[],r=g.formatter||this.defaultFormatter,t=this.shared,e=b.styledMode,y={};if(g.enabled&&c.series){B.clearTimeout(this.hideTimer);
|
|
266
|
+
this.allowShared=!(!k(a)&&a.series&&a.series.noSharedTooltip);this.followPointer=!this.split&&c.series.tooltipOptions.followPointer;a=this.getAnchor(a,h);var p=a[0],m=a[1];t&&this.allowShared?(b.pointer.applyInactiveState(f),f.forEach(function(c){c.setState("hover");l.push(c.getLabelConfig())}),y={x:c.category,y:c.y},y.points=l):y=c.getLabelConfig();this.len=l.length;r=r.call(y,this);t=c.series;this.distance=w(t.tooltipOptions.distance,16);if(!1===r)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(r,
|
|
267
|
+
f);else{var A=p,E=m;h&&b.pointer.isDirectTouch&&(A=h.chartX-b.plotLeft,E=h.chartY-b.plotTop);if(b.polar||!1===t.options.clip||f.some(function(c){return c.series.shouldShowTooltip(A,E)}))h=this.getLabel(),g.style.width&&!e||h.css({width:this.chart.spacingBox.width+"px"}),h.attr({text:r&&r.join?r.join(""):r}),h.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+w(c.colorIndex,t.colorIndex)),e||h.attr({stroke:g.borderColor||c.color||t.color||"#666666"}),this.updatePosition({plotX:p,
|
|
268
|
+
plotY:m,negative:c.negative,ttBelow:c.ttBelow,h:a[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();this.isHidden=!1}d(this,"refresh")}};h.prototype.renderSplit=function(a,d){function h(c,a,d,h,b){void 0===b&&(b=!0);d?(a=C?0:ea,c=v(c-h/2,R.left,R.right-h-(g.outside?S:0))):(a-=N,c=b?c-h-u:c+u,c=v(c,b?c:R.left,R.right));return{x:c,y:a}}var g=this,b=g.chart,c=g.chart,k=c.chartWidth,l=c.chartHeight,r=c.plotHeight,t=c.plotLeft,e=c.plotTop,y=c.pointer,p=c.scrollablePixelsY;
|
|
269
|
+
p=void 0===p?0:p;var m=c.scrollablePixelsX,A=c.scrollingContainer;A=void 0===A?{scrollLeft:0,scrollTop:0}:A;var I=A.scrollLeft;A=A.scrollTop;var q=c.styledMode,u=g.distance,B=g.options,X=g.options.positioner,R=g.outside&&"number"!==typeof m?F.documentElement.getBoundingClientRect():{left:I,right:I+k,top:A,bottom:A+l},U=g.getLabel(),K=this.renderer||b.renderer,C=!(!b.xAxis[0]||!b.xAxis[0].opposite);b=y.getChartPosition();var S=b.left;b=b.top;var N=e+A,ca=0,ea=r-p;E(a)&&(a=[!1,a]);a=a.slice(0,d.length+
|
|
270
|
+
1).reduce(function(c,a,b){if(!1!==a&&""!==a){b=d[b-1]||{isHeader:!0,plotX:d[0].plotX,plotY:r,series:{}};var f=b.isHeader,k=f?g:b.series;a=a.toString();var n=k.tt,l=b.isHeader;var D=b.series;var z="highcharts-color-"+w(b.colorIndex,D.colorIndex,"none");n||(n={padding:B.padding,r:B.borderRadius},q||(n.fill=B.backgroundColor,n["stroke-width"]=B.borderWidth),n=K.label("",0,0,B[l?"headerShape":"shape"],void 0,void 0,B.useHTML).addClass((l?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+z).attr(n).add(U));
|
|
271
|
+
n.isActive=!0;n.attr({text:a});q||n.css(B.style).shadow(B.shadow).attr({stroke:B.borderColor||b.color||D.color||"#333333"});k=k.tt=n;l=k.getBBox();a=l.width+k.strokeWidth();f&&(ca=l.height,ea+=ca,C&&(N-=ca));D=b.plotX;D=void 0===D?0:D;z=b.plotY;z=void 0===z?0:z;n=b.series;if(b.isHeader){D=t+D;var y=e+r/2}else{var G=n.xAxis,p=n.yAxis;D=G.pos+v(D,-u,G.len+u);n.shouldShowTooltip(0,p.pos-e+z,{ignoreX:!0})&&(y=p.pos+z)}D=v(D,R.left-u,R.right+u);"number"===typeof y?(l=l.height+1,z=X?X.call(g,a,l,b):h(D,
|
|
272
|
+
y,f,a),c.push({align:X?0:void 0,anchorX:D,anchorY:y,boxWidth:a,point:b,rank:w(z.rank,f?1:0),size:l,target:z.y,tt:k,x:z.x})):k.isActive=!1}return c},[]);!X&&a.some(function(c){var a=(g.outside?S:0)+c.anchorX;return a<R.left&&a+c.boxWidth<R.right?!0:a<S-R.left+c.boxWidth&&R.right-a>a})&&(a=a.map(function(c){var a=h(c.anchorX,c.anchorY,c.point.isHeader,c.boxWidth,!1);return f(c,{target:a.y,x:a.x})}));g.cleanSplit();x(a,ea);var J=S,da=S;a.forEach(function(c){var a=c.x,d=c.boxWidth;c=c.isHeader;c||(g.outside&&
|
|
273
|
+
S+a<J&&(J=S+a),!c&&g.outside&&J+d>da&&(da=S+a))});a.forEach(function(c){var a=c.x,d=c.anchorX,h=c.pos,b=c.point.isHeader;h={visibility:"undefined"===typeof h?"hidden":"inherit",x:a,y:h+N,anchorX:d,anchorY:c.anchorY};if(g.outside&&a<d){var f=S-J;0<f&&(b||(h.x=a+f,h.anchorX=d+f),b&&(h.x=(da-J)/2,h.anchorX=d+f))}c.tt.attr(h)});a=g.container;p=g.renderer;g.outside&&a&&p&&(c=U.getBBox(),p.setSize(c.width+c.x,c.height+c.y,!1),a.style.left=J+"px",a.style.top=b+"px")};h.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var a=
|
|
274
|
+
this.chart,d=this.label,h=this.shared?a.hoverPoints:a.hoverPoint;if(d&&h){var g={x:0,y:0,width:0,height:0};h=this.getAnchor(h);var b=d.getBBox();h[0]+=a.plotLeft-d.translateX;h[1]+=a.plotTop-d.translateY;g.x=Math.min(0,h[0]);g.y=Math.min(0,h[1]);g.width=0>h[0]?Math.max(Math.abs(h[0]),b.width-h[0]):Math.max(Math.abs(h[0]),b.width);g.height=0>h[1]?Math.max(Math.abs(h[1]),b.height-Math.abs(h[1])):Math.max(Math.abs(h[1]),b.height);this.tracker?this.tracker.attr(g):(this.tracker=d.renderer.rect(g).addClass("highcharts-tracker").add(d),
|
|
275
|
+
a.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()};h.prototype.styledModeFormat=function(a){return a.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')};h.prototype.tooltipFooterHeaderFormatter=function(a,h){var b=a.series,g=b.tooltipOptions,f=b.xAxis,c=f&&f.dateTime;f={isFooter:h,labelConfig:a};var k=g.xDateFormat,l=g[h?"footerFormat":"headerFormat"];
|
|
276
|
+
d(this,"headerFormatter",f,function(d){c&&!k&&p(a.key)&&(k=c.getXDateFormat(a.key,g.dateTimeLabelFormats));c&&k&&(a.point&&a.point.tooltipDateKeys||["key"]).forEach(function(c){l=l.replace("{point."+c+"}","{point."+c+":"+k+"}")});b.chart.styledMode&&(l=this.styledModeFormat(l));d.text=q(l,{point:a,series:b},this.chart)});return f.text};h.prototype.update=function(a){this.destroy();A(!0,this.chart.options.tooltip.userOptions,a);this.init(this.chart,A(!0,this.options,a))};h.prototype.updatePosition=
|
|
277
|
+
function(a){var d=this.chart,h=this.options,g=d.pointer,b=this.getLabel();g=g.getChartPosition();var c=(h.positioner||this.getPosition).call(this,b.width,b.height,a),f=a.plotX+d.plotLeft;a=a.plotY+d.plotTop;if(this.outside){h=h.borderWidth+2*this.distance;this.renderer.setSize(b.width+h,b.height+h,!1);if(1!==g.scaleX||1!==g.scaleY)m(this.container,{transform:"scale(".concat(g.scaleX,", ").concat(g.scaleY,")")}),f*=g.scaleX,a*=g.scaleY;f+=g.left-c.x;a+=g.top-c.y}this.move(Math.round(c.x),Math.round(c.y||
|
|
278
|
+
0),f,a)};return h}();"";return b});J(e,"Core/Series/Point.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/Defaults.js"],e["Core/FormatUtilities.js"],e["Core/Utilities.js"]],function(b,e,u,C,B){var q=e.animObject,F=u.defaultOptions,x=C.format,v=B.addEvent,m=B.defined,l=B.erase,a=B.extend,f=B.fireEvent,d=B.getNestedProperty,k=B.isArray,p=B.isFunction,E=B.isNumber,A=B.isObject,w=B.merge,I=B.objectEach,t=B.pick,h=B.syncTimeout,y=B.removeEvent,r=B.uniqueKey;e=function(){function n(){this.colorIndex=
|
|
279
|
+
this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=!1;this.percentage=this.options=this.name=void 0;this.selected=!1;this.total=this.shapeArgs=this.series=void 0;this.visible=!0;this.x=void 0}n.prototype.animateBeforeDestroy=function(){var g=this,d={x:g.startXPos,opacity:0},c=g.getGraphicalProps();c.singular.forEach(function(c){g[c]=g[c].animate("dataLabel"===c?{x:g[c].startXPos,y:g[c].startYPos,opacity:0}:d)});c.plural.forEach(function(c){g[c].forEach(function(c){c.element&&
|
|
280
|
+
c.animate(a({x:g.startXPos},c.startYPos?{x:c.startXPos,y:c.startYPos}:{}))})})};n.prototype.applyOptions=function(g,d){var c=this.series,h=c.options.pointValKey||c.pointValKey;g=n.prototype.optionsToObject.call(this,g);a(this,g);this.options=this.options?a(this.options,g):g;g.group&&delete this.group;g.dataLabels&&delete this.dataLabels;h&&(this.y=n.prototype.getNestedProperty.call(this,h));this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point";this.selected&&(this.state="select");
|
|
281
|
+
"name"in this&&"undefined"===typeof d&&c.xAxis&&c.xAxis.hasNames&&(this.x=c.xAxis.nameToX(this));"undefined"===typeof this.x&&c?this.x="undefined"===typeof d?c.autoIncrement():d:E(g.x)&&c.options.relativeXValue&&(this.x=c.autoIncrement(g.x));return this};n.prototype.destroy=function(){function a(){if(d.graphic||d.graphics||d.dataLabel||d.dataLabels)y(d),d.destroyElements();for(n in d)d[n]=null}var d=this,c=d.series,b=c.chart;c=c.options.dataSorting;var f=b.hoverPoints,k=q(d.series.chart.renderer.globalAnimation),
|
|
282
|
+
n;d.legendItem&&b.legend.destroyItem(d);f&&(d.setState(),l(f,d),f.length||(b.hoverPoints=null));if(d===b.hoverPoint)d.onMouseOut();c&&c.enabled?(this.animateBeforeDestroy(),h(a,k.duration)):a();b.pointCount--};n.prototype.destroyElements=function(a){var g=this;a=g.getGraphicalProps(a);a.singular.forEach(function(c){g[c]=g[c].destroy()});a.plural.forEach(function(c){g[c].forEach(function(c){c.element&&c.destroy()});delete g[c]})};n.prototype.firePointEvent=function(a,d,c){var g=this,h=this.series.options;
|
|
283
|
+
(h.point.events[a]||g.options&&g.options.events&&g.options.events[a])&&g.importEvents();"click"===a&&h.allowPointSelect&&(c=function(c){g.select&&g.select(null,c.ctrlKey||c.metaKey||c.shiftKey)});f(g,a,d,c)};n.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?
|
|
284
|
+
" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};n.prototype.getGraphicalProps=function(a){var g=this,c=[],d={singular:[],plural:[]},h;a=a||{graphic:1,dataLabel:1};a.graphic&&c.push("graphic","shadowGroup");a.dataLabel&&c.push("dataLabel","dataLabelPath","dataLabelUpper","connector");for(h=c.length;h--;){var b=c[h];g[b]&&d.singular.push(b)}["graphic","dataLabel","connector"].forEach(function(c){var h=c+"s";a[c]&&g[h]&&d.plural.push(h)});
|
|
285
|
+
return d};n.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}};n.prototype.getNestedProperty=function(a){if(a)return 0===a.indexOf("custom.")?d(a,this.options):this[a]};n.prototype.getZone=function(){var a=this.series,d=a.zones;a=a.zoneAxis||"y";var c,h=0;for(c=d[h];this[a]>=c.value;)c=d[++h];this.nonZonedColor||(this.nonZonedColor=
|
|
286
|
+
this.color);this.color=c&&c.color&&!this.options.color?c.color:this.nonZonedColor;return c};n.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType};n.prototype.init=function(a,d,c){this.series=a;this.applyOptions(d,c);this.id=m(this.id)?this.id:r();this.resolveColor();a.chart.pointCount++;f(this,"afterInit");return this};n.prototype.isValid=function(){return null!==this.x&&E(this.y)};n.prototype.optionsToObject=function(a){var g=
|
|
287
|
+
this.series,c=g.options.keys,d=c||g.pointArrayMap||["y"],h=d.length,b={},f=0,l=0;if(E(a)||null===a)b[d[0]]=a;else if(k(a))for(!c&&a.length>h&&(g=typeof a[0],"string"===g?b.name=a[0]:"number"===g&&(b.x=a[0]),f++);l<h;)c&&"undefined"===typeof a[f]||(0<d[l].indexOf(".")?n.prototype.setNestedProperty(b,a[f],d[l]):b[d[l]]=a[f]),f++,l++;else"object"===typeof a&&(b=a,a.dataLabels&&(g._hasPointLabels=!0),a.marker&&(g._hasPointMarkers=!0));return b};n.prototype.resolveColor=function(){var a=this.series,d=
|
|
288
|
+
a.chart.styledMode;var c=a.chart.options.chart.colorCount;delete this.nonZonedColor;if(a.options.colorByPoint){if(!d){c=a.options.colors||a.chart.options.colors;var h=c[a.colorCounter];c=c.length}d=a.colorCounter;a.colorCounter++;a.colorCounter===c&&(a.colorCounter=0)}else d||(h=a.color),d=a.colorIndex;this.colorIndex=t(this.options.colorIndex,d);this.color=t(this.options.color,h)};n.prototype.setNestedProperty=function(a,d,c){c.split(".").reduce(function(c,a,g,h){c[a]=h.length-1===g?d:A(c[a],!0)?
|
|
289
|
+
c[a]:{};return c[a]},a);return a};n.prototype.shouldDraw=function(){return!this.isNull};n.prototype.tooltipFormatter=function(a){var g=this.series,c=g.tooltipOptions,d=t(c.valueDecimals,""),h=c.valuePrefix||"",b=c.valueSuffix||"";g.chart.styledMode&&(a=g.chart.tooltip.styledModeFormat(a));(g.pointArrayMap||["y"]).forEach(function(c){c="{point."+c;if(h||b)a=a.replace(RegExp(c+"}","g"),h+c+"}"+b);a=a.replace(RegExp(c+"}","g"),c+":,."+d+"f}")});return x(a,{point:this,series:this.series},g.chart)};n.prototype.update=
|
|
290
|
+
function(a,d,c,h){function g(){b.applyOptions(a);var g=k&&b.hasMockGraphic;g=null===b.y?!g:g;k&&g&&(b.graphic=k.destroy(),delete b.hasMockGraphic);A(a,!0)&&(k&&k.element&&a&&a.marker&&"undefined"!==typeof a.marker.symbol&&(b.graphic=k.destroy()),a&&a.dataLabels&&b.dataLabel&&(b.dataLabel=b.dataLabel.destroy()),b.connector&&(b.connector=b.connector.destroy()));r=b.index;f.updateParallelArrays(b,r);l.data[r]=A(l.data[r],!0)||A(a,!0)?b.options:t(a,l.data[r]);f.isDirty=f.isDirtyData=!0;!f.fixedBox&&f.hasCartesianSeries&&
|
|
291
|
+
(n.isDirtyBox=!0);"point"===l.legendType&&(n.isDirtyLegend=!0);d&&n.redraw(c)}var b=this,f=b.series,k=b.graphic,n=f.chart,l=f.options,r;d=t(d,!0);!1===h?g():b.firePointEvent("update",{options:a},g)};n.prototype.remove=function(a,d){this.series.removePoint(this.series.data.indexOf(this),a,d)};n.prototype.select=function(a,d){var c=this,g=c.series,h=g.chart;this.selectedStaging=a=t(a,!c.selected);c.firePointEvent(a?"select":"unselect",{accumulate:d},function(){c.selected=c.options.selected=a;g.options.data[g.data.indexOf(c)]=
|
|
292
|
+
c.options;c.setState(a&&"select");d||h.getSelectedPoints().forEach(function(a){var g=a.series;a.selected&&a!==c&&(a.selected=a.options.selected=!1,g.options.data[g.data.indexOf(a)]=a.options,a.setState(h.hoverPoints&&g.options.inactiveOtherPoints?"inactive":""),a.firePointEvent("unselect"))})});delete this.selectedStaging};n.prototype.onMouseOver=function(a){var g=this.series.chart,c=g.pointer;a=a?c.normalize(a):c.getChartCoordinatesFromPoint(this,g.inverted);c.runPointActions(a,this)};n.prototype.onMouseOut=
|
|
293
|
+
function(){var a=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(a.hoverPoints||[]).forEach(function(a){a.setState()});a.hoverPoints=a.hoverPoint=null};n.prototype.importEvents=function(){if(!this.hasImportedEvents){var a=this,d=w(a.series.options.point,a.options).events;a.events=d;I(d,function(c,g){p(c)&&v(a,g,c)});this.hasImportedEvents=!0}};n.prototype.setState=function(g,d){var c=this.series,h=this.state,k=c.options.states[g||"normal"]||{},n=F.plotOptions[c.type].marker&&
|
|
294
|
+
c.options.marker,l=n&&!1===n.enabled,r=n&&n.states&&n.states[g||"normal"]||{},e=!1===r.enabled,D=this.marker||{},y=c.chart,p=n&&c.markerAttribs,m=c.halo,w,A=c.stateMarkerGraphic;g=g||"";if(!(g===this.state&&!d||this.selected&&"select"!==g||!1===k.enabled||g&&(e||l&&!1===r.enabled)||g&&D.states&&D.states[g]&&!1===D.states[g].enabled)){this.state=g;p&&(w=c.markerAttribs(this,g));if(this.graphic&&!this.hasMockGraphic){h&&this.graphic.removeClass("highcharts-point-"+h);g&&this.graphic.addClass("highcharts-point-"+
|
|
295
|
+
g);if(!y.styledMode){h=c.pointAttribs(this,g);var I=t(y.options.chart.animation,k.animation);var v=h.opacity;E(v)&&((this.dataLabels||[]).forEach(function(c){c&&!c.hasClass("highcharts-data-label-hidden")&&c.animate({opacity:v},I)}),this.connector&&this.connector.animate({opacity:v},I));this.graphic.animate(h,I)}w&&this.graphic.animate(w,t(y.options.chart.animation,r.animation,n.animation));A&&A.hide()}else{if(g&&r){n=D.symbol||c.symbol;A&&A.currentSymbol!==n&&(A=A.destroy());if(w)if(A)A[d?"animate":
|
|
296
|
+
"attr"]({x:w.x,y:w.y});else n&&(c.stateMarkerGraphic=A=y.renderer.symbol(n,w.x,w.y,w.width,w.height).add(c.markerGroup),A.currentSymbol=n);!y.styledMode&&A&&"inactive"!==this.state&&A.attr(c.pointAttribs(this,g))}A&&(A[g&&this.isInside?"show":"hide"](),A.element.point=this,A.addClass(this.getClassName(),!0))}k=k.halo;w=(A=this.graphic||A)&&A.visibility||"inherit";k&&k.size&&A&&"hidden"!==w&&!this.isCluster?(m||(c.halo=m=y.renderer.path().add(A.parentGroup)),m.show()[d?"animate":"attr"]({d:this.haloPath(k.size)}),
|
|
297
|
+
m.attr({"class":"highcharts-halo highcharts-color-"+t(this.colorIndex,c.colorIndex)+(this.className?" "+this.className:""),visibility:w,zIndex:-1}),m.point=this,y.styledMode||m.attr(a({fill:this.color||c.color,"fill-opacity":k.opacity},b.filterUserAttributes(k.attributes||{})))):m&&m.point&&m.point.haloPath&&m.animate({d:m.point.haloPath(0)},null,m.hide);f(this,"afterSetState",{state:g})}};n.prototype.haloPath=function(a){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-a,this.plotY-
|
|
298
|
+
a,2*a,2*a)};return n}();"";return e});J(e,"Core/Pointer.js",[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Tooltip.js"],e["Core/Utilities.js"]],function(b,e,u,C){var B=b.parse,q=e.charts,F=e.noop,x=C.addEvent,v=C.attr,m=C.css,l=C.defined,a=C.extend,f=C.find,d=C.fireEvent,k=C.isNumber,p=C.isObject,E=C.objectEach,A=C.offset,w=C.pick,I=C.splat;b=function(){function b(a,d){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=a;this.hasDragged=!1;this.options=
|
|
299
|
+
d;this.init(a,d)}b.prototype.applyInactiveState=function(a){var d=[],h;(a||[]).forEach(function(a){h=a.series;d.push(h);h.linkedParent&&d.push(h.linkedParent);h.linkedSeries&&(d=d.concat(h.linkedSeries));h.navigatorSeries&&d.push(h.navigatorSeries)});this.chart.series.forEach(function(a){-1===d.indexOf(a)?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})};b.prototype.destroy=function(){var a=this;this.eventsToUnbind.forEach(function(a){return a()});this.eventsToUnbind=
|
|
300
|
+
[];e.chartCount||(b.unbindDocumentMouseUp&&(b.unbindDocumentMouseUp=b.unbindDocumentMouseUp()),b.unbindDocumentTouchEnd&&(b.unbindDocumentTouchEnd=b.unbindDocumentTouchEnd()));clearInterval(a.tooltipTimeout);E(a,function(d,h){a[h]=void 0})};b.prototype.getSelectionMarkerAttrs=function(a,b){var h=this,f={args:{chartX:a,chartY:b},attrs:{},shapeType:"rect"};d(this,"getSelectionMarkerAttrs",f,function(g){var d=h.chart,c=h.mouseDownX;c=void 0===c?0:c;var f=h.mouseDownY;f=void 0===f?0:f;var k=h.zoomHor,
|
|
301
|
+
n=h.zoomVert;g=g.attrs;g.x=d.plotLeft;g.y=d.plotTop;g.width=k?1:d.plotWidth;g.height=n?1:d.plotHeight;k&&(d=a-c,g.width=Math.abs(d),g.x=(0<d?0:d)+c);n&&(d=b-f,g.height=Math.abs(d),g.y=(0<d?0:d)+f)});return f};b.prototype.drag=function(a){var d=this.chart,h=d.options.chart,b=d.plotLeft,g=d.plotTop,f=d.plotWidth,c=d.plotHeight,k=this.mouseDownX||0,l=this.mouseDownY||0,e=p(h.panning)?h.panning&&h.panning.enabled:h.panning,t=h.panKey&&a[h.panKey+"Key"],m=a.chartX,w=a.chartY,A=this.selectionMarker;A&&
|
|
302
|
+
A.touch||(m<b?m=b:m>b+f&&(m=b+f),w<g?w=g:w>g+c&&(w=g+c),this.hasDragged=Math.sqrt(Math.pow(k-m,2)+Math.pow(l-w,2)),10<this.hasDragged&&(b=d.isInsidePlot(k-b,l-g,{visiblePlotOnly:!0}),w=this.getSelectionMarkerAttrs(m,w),m=w.shapeType,w=w.attrs,!d.hasCartesianSeries&&!d.mapView||!this.zoomX&&!this.zoomY||!b||t||A||(this.selectionMarker=A=d.renderer[m](),A.attr({"class":"highcharts-selection-marker",zIndex:7}).add(),d.styledMode||A.attr({fill:h.selectionMarkerFill||B("#335cad").setOpacity(.25).get()})),
|
|
303
|
+
A&&A.attr(w),b&&!A&&e&&d.pan(a,h.panning)))};b.prototype.dragStart=function(a){var d=this.chart;d.mouseIsDown=a.type;d.cancelClick=!1;d.mouseDownX=this.mouseDownX=a.chartX;d.mouseDownY=this.mouseDownY=a.chartY};b.prototype.getSelectionBox=function(a){var b={args:{marker:a},result:{}};d(this,"getSelectionBox",b,function(d){d.result={x:a.attr?+a.attr("x"):a.x,y:a.attr?+a.attr("y"):a.y,width:a.attr?a.attr("width"):a.width,height:a.attr?a.attr("height"):a.height}});return b.result};b.prototype.drop=function(b){var h=
|
|
304
|
+
this,f=this.chart,n=this.hasPinched;if(this.selectionMarker){var g=this.getSelectionBox(this.selectionMarker),e=g.x,c=g.y,t=g.width,G=g.height,p={originalEvent:b,xAxis:[],yAxis:[],x:e,y:c,width:t,height:G},w=!!f.mapView;if(this.hasDragged||n)f.axes.forEach(function(a){if(a.zoomEnabled&&l(a.min)&&(n||h[{xAxis:"zoomX",yAxis:"zoomY"}[a.coll]])&&k(e)&&k(c)&&k(t)&&k(G)){var g=a.horiz,d="touchend"===b.type?a.minPixelPadding:0,f=a.toValue((g?e:c)+d);g=a.toValue((g?e+t:c+G)-d);p[a.coll].push({axis:a,min:Math.min(f,
|
|
305
|
+
g),max:Math.max(f,g)});w=!0}}),w&&d(f,"selection",p,function(c){f.zoom(a(c,n?{animation:!1}:null))});k(f.index)&&(this.selectionMarker=this.selectionMarker.destroy());n&&this.scaleGroups()}f&&k(f.index)&&(m(f.container,{cursor:f._cursor}),f.cancelClick=10<this.hasDragged,f.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])};b.prototype.findNearestKDPoint=function(a,d,b){var h;a.forEach(function(a){var g=!(a.noSharedTooltip&&d)&&0>a.options.findNearestPointBy.indexOf("y");a=a.searchPoint(b,
|
|
306
|
+
g);if((g=p(a,!0)&&a.series)&&!(g=!p(h,!0))){g=h.distX-a.distX;var c=h.dist-a.dist,f=(a.series.group&&a.series.group.zIndex)-(h.series.group&&h.series.group.zIndex);g=0<(0!==g&&d?g:0!==c?c:0!==f?f:h.series.index>a.series.index?-1:1)}g&&(h=a)});return h};b.prototype.getChartCoordinatesFromPoint=function(a,d){var b=a.series,h=b.xAxis;b=b.yAxis;var g=a.shapeArgs;if(h&&b){var f=w(a.clientX,a.plotX),c=a.plotY||0;a.isNode&&g&&k(g.x)&&k(g.y)&&(f=g.x,c=g.y);return d?{chartX:b.len+b.pos-c,chartY:h.len+h.pos-
|
|
307
|
+
f}:{chartX:f+h.pos,chartY:c+b.pos}}if(g&&g.x&&g.y)return{chartX:g.x,chartY:g.y}};b.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var a=this.chart.container,d=A(a);this.chartPosition={left:d.left,top:d.top,scaleX:1,scaleY:1};var b=a.offsetWidth;a=a.offsetHeight;2<b&&2<a&&(this.chartPosition.scaleX=d.width/b,this.chartPosition.scaleY=d.height/a);return this.chartPosition};b.prototype.getCoordinates=function(a){var d={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(b){d[b.isXAxis?
|
|
308
|
+
"xAxis":"yAxis"].push({axis:b,value:b.toValue(a[b.horiz?"chartX":"chartY"])})});return d};b.prototype.getHoverData=function(a,b,k,n,g,l){var c=[];n=!(!n||!a);var h=function(a){return a.visible&&!(!g&&a.directTouch)&&w(a.options.enableMouseTracking,!0)},e={chartX:l?l.chartX:void 0,chartY:l?l.chartY:void 0,shared:g};d(this,"beforeGetHoverData",e);var r=b&&!b.stickyTracking?[b]:k.filter(function(a){return a.stickyTracking&&(e.filter||h)(a)});var t=n||!l?a:this.findNearestKDPoint(r,g,l);b=t&&t.series;
|
|
309
|
+
t&&(g&&!b.noSharedTooltip?(r=k.filter(function(a){return e.filter?e.filter(a):h(a)&&!a.noSharedTooltip}),r.forEach(function(a){var g=f(a.points,function(a){return a.x===t.x&&!a.isNull});p(g)&&(a.boosted&&a.boost&&(g=a.boost.getPoint(g)),c.push(g))})):c.push(t));e={hoverPoint:t};d(this,"afterGetHoverData",e);return{hoverPoint:e.hoverPoint,hoverSeries:b,hoverPoints:c}};b.prototype.getPointFromEvent=function(a){a=a.target;for(var d;a&&!d;)d=a.point,a=a.parentNode;return d};b.prototype.onTrackerMouseOut=
|
|
310
|
+
function(a){a=a.relatedTarget||a.toElement;var d=this.chart.hoverSeries;this.isDirectTouch=!1;if(!(!d||!a||d.stickyTracking||this.inClass(a,"highcharts-tooltip")||this.inClass(a,"highcharts-series-"+d.index)&&this.inClass(a,"highcharts-tracker")))d.onMouseOut()};b.prototype.inClass=function(a,d){for(var b;a;){if(b=v(a,"class")){if(-1!==b.indexOf(d))return!0;if(-1!==b.indexOf("highcharts-container"))return!1}a=a.parentElement}};b.prototype.init=function(a,d){this.options=d;this.chart=a;this.runChartClick=
|
|
311
|
+
!(!d.chart.events||!d.chart.events.click);this.pinchDown=[];this.lastValidTouch={};u&&(a.tooltip=new u(a,d.tooltip));this.setDOMEvents()};b.prototype.normalize=function(d,b){var h=d.touches,f=h?h.length?h.item(0):w(h.changedTouches,d.changedTouches)[0]:d;b||(b=this.getChartPosition());h=f.pageX-b.left;f=f.pageY-b.top;h/=b.scaleX;f/=b.scaleY;return a(d,{chartX:Math.round(h),chartY:Math.round(f)})};b.prototype.onContainerClick=function(b){var h=this.chart,f=h.hoverPoint;b=this.normalize(b);var k=h.plotLeft,
|
|
312
|
+
g=h.plotTop;h.cancelClick||(f&&this.inClass(b.target,"highcharts-tracker")?(d(f.series,"click",a(b,{point:f})),h.hoverPoint&&f.firePointEvent("click",b)):(a(b,this.getCoordinates(b)),h.isInsidePlot(b.chartX-k,b.chartY-g,{visiblePlotOnly:!0})&&d(h,"click",b)))};b.prototype.onContainerMouseDown=function(a){var d=1===((a.buttons||a.button)&1);a=this.normalize(a);if(e.isFirefox&&0!==a.button)this.onContainerMouseMove(a);if("undefined"===typeof a.button||d)this.zoomOption(a),d&&a.preventDefault&&a.preventDefault(),
|
|
313
|
+
this.dragStart(a)};b.prototype.onContainerMouseLeave=function(a){var d=q[w(b.hoverChartIndex,-1)],h=this.chart.tooltip;a=this.normalize(a);d&&(a.relatedTarget||a.toElement)&&(d.pointer.reset(),d.pointer.chartPosition=void 0);h&&!h.isHidden&&this.reset()};b.prototype.onContainerMouseEnter=function(a){delete this.chartPosition};b.prototype.onContainerMouseMove=function(a){var d=this.chart,b=d.tooltip;a=this.normalize(a);this.setHoverChartIndex();a.preventDefault||(a.returnValue=!1);("mousedown"===d.mouseIsDown||
|
|
314
|
+
this.touchSelect(a))&&this.drag(a);d.openMenu||!this.inClass(a.target,"highcharts-tracker")&&!d.isInsidePlot(a.chartX-d.plotLeft,a.chartY-d.plotTop,{visiblePlotOnly:!0})||b&&b.shouldStickOnContact(a)||(this.inClass(a.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))};b.prototype.onDocumentTouchEnd=function(a){var d=q[w(b.hoverChartIndex,-1)];d&&d.pointer.drop(a)};b.prototype.onContainerTouchMove=function(a){if(this.touchSelect(a))this.onContainerMouseMove(a);else this.touch(a)};
|
|
315
|
+
b.prototype.onContainerTouchStart=function(a){if(this.touchSelect(a))this.onContainerMouseDown(a);else this.zoomOption(a),this.touch(a,!0)};b.prototype.onDocumentMouseMove=function(a){var d=this.chart,b=d.tooltip,h=this.chartPosition;a=this.normalize(a,h);!h||d.isInsidePlot(a.chartX-d.plotLeft,a.chartY-d.plotTop,{visiblePlotOnly:!0})||b&&b.shouldStickOnContact(a)||this.inClass(a.target,"highcharts-tracker")||this.reset()};b.prototype.onDocumentMouseUp=function(a){var d=q[w(b.hoverChartIndex,-1)];
|
|
316
|
+
d&&d.pointer.drop(a)};b.prototype.pinch=function(b){var f=this,h=f.chart,k=f.pinchDown,g=b.touches||[],l=g.length,c=f.lastValidTouch,e=f.hasZoom,t={},p=1===l&&(f.inClass(b.target,"highcharts-tracker")&&h.runTrackerClick||f.runChartClick),m={},A=f.chart.tooltip;A=1===l&&w(A&&A.options.followTouchMove,!0);var E=f.selectionMarker;1<l?f.initiated=!0:A&&(f.initiated=!1);e&&f.initiated&&!p&&!1!==b.cancelable&&b.preventDefault();[].map.call(g,function(a){return f.normalize(a)});"touchstart"===b.type?([].forEach.call(g,
|
|
317
|
+
function(a,c){k[c]={chartX:a.chartX,chartY:a.chartY}}),c.x=[k[0].chartX,k[1]&&k[1].chartX],c.y=[k[0].chartY,k[1]&&k[1].chartY],h.axes.forEach(function(a){if(a.zoomEnabled){var c=h.bounds[a.horiz?"h":"v"],d=a.minPixelPadding,g=a.toPixels(Math.min(w(a.options.min,a.dataMin),a.dataMin)),b=a.toPixels(Math.max(w(a.options.max,a.dataMax),a.dataMax)),f=Math.max(g,b);c.min=Math.min(a.pos,Math.min(g,b)-d);c.max=Math.max(a.pos+a.len,f+d)}}),f.res=!0):A?this.runPointActions(f.normalize(b)):k.length&&(d(h,"touchpan",
|
|
318
|
+
{originalEvent:b},function(){E||(f.selectionMarker=E=a({destroy:F,touch:!0},h.plotBox));f.pinchTranslate(k,g,t,E,m,c);f.hasPinched=e;f.scaleGroups(t,m)}),f.res&&(f.res=!1,this.reset(!1,0)))};b.prototype.pinchTranslate=function(a,d,b,f,g,k){this.zoomHor&&this.pinchTranslateDirection(!0,a,d,b,f,g,k);this.zoomVert&&this.pinchTranslateDirection(!1,a,d,b,f,g,k)};b.prototype.pinchTranslateDirection=function(a,d,b,f,g,k,c,l){var h=this.chart,n=a?"x":"y",e=a?"X":"Y",t="chart"+e,r=a?"width":"height",z=h["plot"+
|
|
319
|
+
(a?"Left":"Top")],D=h.inverted,p=h.bounds[a?"h":"v"],m=1===d.length,y=d[0][t],w=!m&&d[1][t];d=function(){"number"===typeof x&&20<Math.abs(y-w)&&(I=l||Math.abs(v-x)/Math.abs(y-w));E=(z-v)/I+y;A=h["plot"+(a?"Width":"Height")]/I};var A,E,I=l||1,v=b[0][t],x=!m&&b[1][t];d();b=E;if(b<p.min){b=p.min;var q=!0}else b+A>p.max&&(b=p.max-A,q=!0);q?(v-=.8*(v-c[n][0]),"number"===typeof x&&(x-=.8*(x-c[n][1])),d()):c[n]=[v,x];D||(k[n]=E-z,k[r]=A);k=D?1/I:I;g[r]=A;g[n]=b;f[D?a?"scaleY":"scaleX":"scale"+e]=I;f["translate"+
|
|
320
|
+
e]=k*z+(v-k*y)};b.prototype.reset=function(a,d){var b=this.chart,f=b.hoverSeries,g=b.hoverPoint,h=b.hoverPoints,c=b.tooltip,k=c&&c.shared?h:g;a&&k&&I(k).forEach(function(c){c.series.isCartesian&&"undefined"===typeof c.plotX&&(a=!1)});if(a)c&&k&&I(k).length&&(c.refresh(k),c.shared&&h?h.forEach(function(a){a.setState(a.state,!0);a.series.isCartesian&&(a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,a),a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a))}):g&&(g.setState(g.state,
|
|
321
|
+
!0),b.axes.forEach(function(a){a.crosshair&&g.series[a.coll]===a&&a.drawCrosshair(null,g)})));else{if(g)g.onMouseOut();h&&h.forEach(function(a){a.setState()});if(f)f.onMouseOut();c&&c.hide(d);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());b.axes.forEach(function(a){a.hideCrosshair()});this.hoverX=b.hoverPoints=b.hoverPoint=null}};b.prototype.runPointActions=function(a,d){var h=this.chart,k=h.tooltip&&h.tooltip.options.enabled?h.tooltip:void 0,g=k?k.shared:!1,l=d||h.hoverPoint,c=
|
|
322
|
+
l&&l.series||h.hoverSeries;d=this.getHoverData(l,c,h.series,(!a||"touchmove"!==a.type)&&(!!d||c&&c.directTouch&&this.isDirectTouch),g,a);l=d.hoverPoint;c=d.hoverSeries;var e=d.hoverPoints;d=c&&c.tooltipOptions.followPointer&&!c.tooltipOptions.split;var t=g&&c&&!c.noSharedTooltip;if(l&&(l!==h.hoverPoint||k&&k.isHidden)){(h.hoverPoints||[]).forEach(function(a){-1===e.indexOf(a)&&a.setState()});if(h.hoverSeries!==c)c.onMouseOver();this.applyInactiveState(e);(e||[]).forEach(function(a){a.setState("hover")});
|
|
323
|
+
h.hoverPoint&&h.hoverPoint.firePointEvent("mouseOut");if(!l.series)return;h.hoverPoints=e;h.hoverPoint=l;l.firePointEvent("mouseOver",void 0,function(){k&&l&&k.refresh(t?e:l,a)})}else d&&k&&!k.isHidden&&(g=k.getAnchor([{}],a),h.isInsidePlot(g[0],g[1],{visiblePlotOnly:!0})&&k.updatePosition({plotX:g[0],plotY:g[1]}));this.unDocMouseMove||(this.unDocMouseMove=x(h.container.ownerDocument,"mousemove",function(a){var c=q[b.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(a)}),this.eventsToUnbind.push(this.unDocMouseMove));
|
|
324
|
+
h.axes.forEach(function(c){var d=w((c.crosshair||{}).snap,!0),g;d&&((g=h.hoverPoint)&&g.series[c.coll]===c||(g=f(e,function(a){return a.series&&a.series[c.coll]===c})));g||!d?c.drawCrosshair(a,g):c.hideCrosshair()})};b.prototype.scaleGroups=function(a,d){var b=this.chart;b.series.forEach(function(f){var g=a||f.getPlotBox();f.group&&(f.xAxis&&f.xAxis.zoomEnabled||b.mapView)&&(f.group.attr(g),f.markerGroup&&(f.markerGroup.attr(g),f.markerGroup.clip(d?b.clipRect:null)),f.dataLabelsGroup&&f.dataLabelsGroup.attr(g))});
|
|
325
|
+
b.clipRect.attr(d||b.clipBox)};b.prototype.setDOMEvents=function(){var a=this,d=this.chart.container,f=d.ownerDocument;d.onmousedown=this.onContainerMouseDown.bind(this);d.onmousemove=this.onContainerMouseMove.bind(this);d.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(x(d,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(x(d,"mouseleave",this.onContainerMouseLeave.bind(this)));b.unbindDocumentMouseUp||(b.unbindDocumentMouseUp=x(f,"mouseup",this.onDocumentMouseUp.bind(this)));
|
|
326
|
+
for(var k=this.chart.renderTo.parentElement;k&&"BODY"!==k.tagName;)this.eventsToUnbind.push(x(k,"scroll",function(){delete a.chartPosition})),k=k.parentElement;e.hasTouch&&(this.eventsToUnbind.push(x(d,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(x(d,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),b.unbindDocumentTouchEnd||(b.unbindDocumentTouchEnd=x(f,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};b.prototype.setHoverChartIndex=
|
|
327
|
+
function(){var a=this.chart,d=e.charts[w(b.hoverChartIndex,-1)];if(d&&d!==a)d.pointer.onContainerMouseLeave({relatedTarget:a.container});d&&d.mouseIsDown||(b.hoverChartIndex=a.index)};b.prototype.touch=function(a,d){var b=this.chart,f;this.setHoverChartIndex();if(1===a.touches.length)if(a=this.normalize(a),(f=b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop,{visiblePlotOnly:!0}))&&!b.openMenu){d&&this.runPointActions(a);if("touchmove"===a.type){d=this.pinchDown;var g=d[0]?4<=Math.sqrt(Math.pow(d[0].chartX-
|
|
328
|
+
a.chartX,2)+Math.pow(d[0].chartY-a.chartY,2)):!1}w(g,!0)&&this.pinch(a)}else d&&this.reset();else 2===a.touches.length&&this.pinch(a)};b.prototype.touchSelect=function(a){return!(!this.chart.options.chart.zooming.singleTouch||!a.touches||1!==a.touches.length)};b.prototype.zoomOption=function(a){var d=this.chart,b=d.options.chart;d=d.inverted;var f=b.zooming.type||"";/touch/.test(a.type)&&(f=w(b.zooming.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=b=/y/.test(f);this.zoomHor=a&&!d||b&&d;this.zoomVert=
|
|
329
|
+
b&&!d||a&&d;this.hasZoom=a||b};return b}();"";return b});J(e,"Core/MSPointer.js",[e["Core/Globals.js"],e["Core/Pointer.js"],e["Core/Utilities.js"]],function(b,e,u){function C(){var a=[];a.item=function(a){return this[a]};f(p,function(d){a.push({pageX:d.pageX,pageY:d.pageY,target:d.target})});return a}function B(a,d,b,f){var h=F[e.hoverChartIndex||NaN];"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!h||(h=h.pointer,f(a),h[d]({type:b,target:a.currentTarget,preventDefault:v,touches:C()}))}
|
|
330
|
+
var q=this&&this.__extends||function(){var a=function(d,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(d,b)};return function(d,b){function f(){this.constructor=d}a(d,b);d.prototype=null===b?Object.create(b):(f.prototype=b.prototype,new f)}}(),F=b.charts,x=b.doc,v=b.noop,m=b.win,l=u.addEvent,a=u.css,f=u.objectEach,d=u.pick,k=u.removeEvent,p={},E=!!m.PointerEvent;return function(f){function e(){return null!==
|
|
331
|
+
f&&f.apply(this,arguments)||this}q(e,f);e.isRequired=function(){return!(b.hasTouch||!m.PointerEvent&&!m.MSPointerEvent)};e.prototype.batchMSEvents=function(a){a(this.chart.container,E?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,E?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(x,E?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};e.prototype.destroy=function(){this.batchMSEvents(k);f.prototype.destroy.call(this)};e.prototype.init=function(d,b){f.prototype.init.call(this,
|
|
332
|
+
d,b);this.hasZoom&&a(d.container,{"-ms-touch-action":"none","touch-action":"none"})};e.prototype.onContainerPointerDown=function(a){B(a,"onContainerTouchStart","touchstart",function(a){p[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})};e.prototype.onContainerPointerMove=function(a){B(a,"onContainerTouchMove","touchmove",function(a){p[a.pointerId]={pageX:a.pageX,pageY:a.pageY};p[a.pointerId].target||(p[a.pointerId].target=a.currentTarget)})};e.prototype.onDocumentPointerUp=function(a){B(a,
|
|
333
|
+
"onDocumentTouchEnd","touchend",function(a){delete p[a.pointerId]})};e.prototype.setDOMEvents=function(){var a=this.chart.tooltip;f.prototype.setDOMEvents.call(this);(this.hasZoom||d(a&&a.options.followTouchMove,!0))&&this.batchMSEvents(l)};return e}(e)});J(e,"Core/Legend/Legend.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Series/Point.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Utilities.js"]],function(b,e,u,C,B,q){var F=b.animObject,
|
|
334
|
+
x=b.setAnimation,v=e.format,m=u.marginNames,l=B.distribute,a=q.addEvent,f=q.createElement,d=q.css,k=q.defined,p=q.discardElement,E=q.find,A=q.fireEvent,w=q.isNumber,I=q.merge,t=q.pick,h=q.relativeLength,y=q.stableSort,r=q.syncTimeout;b=function(){function b(a,d){this.allItems=[];this.contentGroup=this.box=void 0;this.display=!1;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=
|
|
335
|
+
this.itemMarginBottom=this.itemHeight=this.initialItemY=0;this.options=void 0;this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup=void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=a;this.init(a,d)}b.prototype.init=function(d,b){this.chart=d;this.setOptions(b);b.enabled&&(this.render(),a(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=a(this.chart,"render",function(){this.legend.proximatePositions();
|
|
336
|
+
this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};b.prototype.setOptions=function(a){var d=t(a.padding,8);this.options=a;this.chart.styledMode||(this.itemStyle=a.itemStyle,this.itemHiddenStyle=I(this.itemStyle,a.itemHiddenStyle));this.itemMarginTop=a.itemMarginTop||0;this.itemMarginBottom=a.itemMarginBottom||0;this.padding=d;this.initialItemY=d-5;this.symbolWidth=t(a.symbolWidth,16);this.pages=[];this.proximate="proximate"===a.layout&&!this.chart.inverted;this.baseline=void 0};
|
|
337
|
+
b.prototype.update=function(a,d){var c=this.chart;this.setOptions(I(!0,this.options,a));this.destroy();c.isDirtyLegend=c.isDirtyBox=!0;t(d,!0)&&c.redraw();A(this,"afterUpdate")};b.prototype.colorizeItem=function(a,d){var c=a.legendItem||{},b=c.group,g=c.label,f=c.line;c=c.symbol;if(b)b[d?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var h=this.options;b=this.itemHiddenStyle.color;h=d?h.itemStyle.color:b;var k=d?a.color||b:b,l=a.options&&a.options.marker,n={fill:k};
|
|
338
|
+
g&&g.css({fill:h,color:h});f&&f.attr({stroke:k});c&&(l&&c.isMarker&&(n=a.pointAttribs(),d||(n.stroke=n.fill=b)),c.attr(n))}A(this,"afterColorizeItem",{item:a,visible:d})};b.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};b.prototype.positionItem=function(a){var d=this,c=a.legendItem||{},b=c.group,g=c.x;g=void 0===g?0:g;c=c.y;c=void 0===c?0:c;var f=this.options,h=f.symbolPadding,l=!f.rtl;f=a.checkbox;b&&b.element&&(h=
|
|
339
|
+
{translateX:l?g:this.legendWidth-g-2*h-4,translateY:c},b[k(b.translateY)?"animate":"attr"](h,void 0,function(){A(d,"afterPositionItem",{item:a})}));f&&(f.x=g,f.y=c)};b.prototype.destroyItem=function(a){for(var d=a.checkbox,c=a.legendItem||{},b=0,g=["group","label","line","symbol"];b<g.length;b++){var f=g[b];c[f]&&(c[f]=c[f].destroy())}d&&p(d);a.legendItem=void 0};b.prototype.destroy=function(){for(var a=0,d=this.getAllItems();a<d.length;a++)this.destroyItem(d[a]);a=0;for(d="clipRect up down pager nav box title group".split(" ");a<
|
|
340
|
+
d.length;a++){var c=d[a];this[c]&&(this[c]=this[c].destroy())}this.display=null};b.prototype.positionCheckboxes=function(){var a=this.group&&this.group.alignAttr,b=this.clipHeight||this.legendHeight,c=this.titleHeight;if(a){var f=a.translateY;this.allItems.forEach(function(g){var h=g.checkbox;if(h){var k=f+c+h.y+(this.scrollOffset||0)+3;d(h,{left:a.translateX+g.checkboxOffset+h.x-20+"px",top:k+"px",display:this.proximate||k>f-6&&k<f+b-6?"":"none"})}},this)}};b.prototype.renderTitle=function(){var a=
|
|
341
|
+
this.options,d=this.padding,c=a.title,b=0;c.text&&(this.title||(this.title=this.chart.renderer.label(c.text,d-3,d-4,void 0,void 0,void 0,a.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(c.style),this.title.add(this.group)),c.width||this.title.css({width:this.maxLegendWidth+"px"}),a=this.title.getBBox(),b=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:b}));this.titleHeight=b};b.prototype.setText=function(a){var d=this.options;a.legendItem.label.attr({text:d.labelFormat?
|
|
342
|
+
v(d.labelFormat,a,this.chart):d.labelFormatter.call(a)})};b.prototype.renderItem=function(a){var d=a.legendItem=a.legendItem||{},c=this.chart,b=c.renderer,g=this.options,f=this.symbolWidth,h=g.symbolPadding||0,k=this.itemStyle,l=this.itemHiddenStyle,n="horizontal"===g.layout?t(g.itemDistance,20):0,e=!g.rtl,p=!a.series,r=!p&&a.series.drawLegendSymbol?a.series:a,m=r.options,w=this.createCheckboxForItem&&m&&m.showCheckbox,A=g.useHTML,y=a.options.className,E=d.label;m=f+h+n+(w?20:0);E||(d.group=b.g("legend-item").addClass("highcharts-"+
|
|
343
|
+
r.type+"-series highcharts-color-"+a.colorIndex+(y?" "+y:"")+(p?" highcharts-series-"+a.index:"")).attr({zIndex:1}).add(this.scrollGroup),d.label=E=b.text("",e?f+h:-h,this.baseline||0,A),c.styledMode||E.css(I(a.visible?k:l)),E.attr({align:e?"left":"right",zIndex:2}).add(d.group),this.baseline||(this.fontMetrics=b.fontMetrics(c.styledMode?12:k.fontSize,E),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,E.attr("y",this.baseline),this.symbolHeight=g.symbolHeight||this.fontMetrics.f,g.squareSymbol&&
|
|
344
|
+
(this.symbolWidth=t(g.symbolWidth,Math.max(this.symbolHeight,16)),m=this.symbolWidth+h+n+(w?20:0),e&&E.attr("x",this.symbolWidth+h))),r.drawLegendSymbol(this,a),this.setItemEvents&&this.setItemEvents(a,E,A));w&&!a.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(a);this.colorizeItem(a,a.visible);!c.styledMode&&k.width||E.css({width:(g.itemWidth||this.widthOption||c.spacingBox.width)-m+"px"});this.setText(a);c=E.getBBox();b=this.fontMetrics&&this.fontMetrics.h||0;a.itemWidth=a.checkboxOffset=
|
|
345
|
+
g.itemWidth||d.labelWidth||c.width+m;this.maxItemWidth=Math.max(this.maxItemWidth,a.itemWidth);this.totalItemWidth+=a.itemWidth;this.itemHeight=a.itemHeight=Math.round(d.labelHeight||(c.height>1.5*b?c.height:b))};b.prototype.layoutItem=function(a){var d=this.options,c=this.padding,b="horizontal"===d.layout,g=a.itemHeight,f=this.itemMarginBottom,h=this.itemMarginTop,k=b?t(d.itemDistance,20):0,l=this.maxLegendWidth;d=d.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:a.itemWidth;var n=a.legendItem||
|
|
346
|
+
{};b&&this.itemX-c+d>l&&(this.itemX=c,this.lastLineHeight&&(this.itemY+=h+this.lastLineHeight+f),this.lastLineHeight=0);this.lastItemY=h+this.itemY+f;this.lastLineHeight=Math.max(g,this.lastLineHeight);n.x=this.itemX;n.y=this.itemY;b?this.itemX+=d:(this.itemY+=h+g+f,this.lastLineHeight=g);this.offsetWidth=this.widthOption||Math.max((b?this.itemX-c-(a.checkbox?0:k):d)+c,this.offsetWidth)};b.prototype.getAllItems=function(){var a=[];this.chart.series.forEach(function(d){var c=d&&d.options;d&&t(c.showInLegend,
|
|
347
|
+
k(c.linkedTo)?!1:void 0,!0)&&(a=a.concat((d.legendItem||{}).labels||("point"===c.legendType?d.data:d)))});A(this,"afterGetAllItems",{allItems:a});return a};b.prototype.getAlignment=function(){var a=this.options;return this.proximate?a.align.charAt(0)+"tv":a.floating?"":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)};b.prototype.adjustMargins=function(a,d){var c=this.chart,b=this.options,g=this.getAlignment();g&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(f,
|
|
348
|
+
h){f.test(g)&&!k(a[h])&&(c[m[h]]=Math.max(c[m[h]],c.legend[(h+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][h]*b[h%2?"x":"y"]+t(b.margin,12)+d[h]+(c.titleOffset[h]||0)))})};b.prototype.proximatePositions=function(){var a=this.chart,d=[],c="left"===this.options.align;this.allItems.forEach(function(b){var g;var f=c;if(b.yAxis){b.xAxis.options.reversed&&(f=!f);b.points&&(g=E(f?b.points:b.points.slice(0).reverse(),function(a){return w(a.plotY)}));f=this.itemMarginTop+b.legendItem.label.getBBox().height+
|
|
349
|
+
this.itemMarginBottom;var h=b.yAxis.top-a.plotTop;b.visible?(g=g?g.plotY:b.yAxis.height,g+=h-.3*f):g=h+b.yAxis.height;d.push({target:g,size:f,item:b})}},this);for(var b,f=0,h=l(d,a.plotHeight);f<h.length;f++){var k=h[f];b=k.item.legendItem||{};k.pos&&(b.y=a.plotTop-a.spacing[0]+k.pos)}};b.prototype.render=function(){var a=this.chart,d=a.renderer,c=this.options,b=this.padding,f=this.getAllItems(),k=this.group,l=this.box;this.itemX=b;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=
|
|
350
|
+
h(c.width,a.spacingBox.width-b);var n=a.spacingBox.width-2*b-c.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(n/=2);this.maxLegendWidth=this.widthOption||n;k||(this.group=k=d.g("legend").addClass(c.className||"").attr({zIndex:7}).add(),this.contentGroup=d.g().attr({zIndex:1}).add(k),this.scrollGroup=d.g().add(this.contentGroup));this.renderTitle();y(f,function(a,c){return(a.options&&a.options.legendIndex||0)-(c.options&&c.options.legendIndex||0)});c.reversed&&f.reverse();this.allItems=
|
|
351
|
+
f;this.display=n=!!f.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;f.forEach(this.renderItem,this);f.forEach(this.layoutItem,this);f=(this.widthOption||this.offsetWidth)+b;var e=this.lastItemY+this.lastLineHeight+this.titleHeight;e=this.handleOverflow(e);e+=b;l||(this.box=l=d.rect().addClass("highcharts-legend-box").attr({r:c.borderRadius}).add(k));a.styledMode||l.attr({stroke:c.borderColor,"stroke-width":c.borderWidth||0,fill:c.backgroundColor||"none"}).shadow(c.shadow);
|
|
352
|
+
if(0<f&&0<e)l[l.placed?"animate":"attr"](l.crisp.call({},{x:0,y:0,width:f,height:e},l.strokeWidth()));k[n?"show":"hide"]();a.styledMode&&"none"===k.getStyle("display")&&(f=e=0);this.legendWidth=f;this.legendHeight=e;n&&this.align();this.proximate||this.positionItems();A(this,"afterRender")};b.prototype.align=function(a){void 0===a&&(a=this.chart.spacingBox);var d=this.chart,c=this.options,b=a.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<d.titleOffset[0]?b+=d.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&
|
|
353
|
+
0<d.titleOffset[2]&&(b-=d.titleOffset[2]);b!==a.y&&(a=I(a,{y:b}));d.hasRendered||(this.group.placed=!1);this.group.align(I(c,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":c.verticalAlign}),!0,a)};b.prototype.handleOverflow=function(a){var d=this,c=this.chart,b=c.renderer,g=this.options,f=g.y,h="top"===g.verticalAlign,k=this.padding,l=g.maxHeight,n=g.navigation,e=t(n.animation,!0),p=n.arrowSize||12,r=this.pages,m=this.allItems,w=function(a){"number"===typeof a?
|
|
354
|
+
x.attr({height:a}):x&&(d.clipRect=x.destroy(),d.contentGroup.clip());d.contentGroup.div&&(d.contentGroup.div.style.clip=a?"rect("+k+"px,9999px,"+(k+a)+"px,0)":"auto")},A=function(a){d[a]=b.circle(0,0,1.3*p).translate(p/2,p/2).add(I);c.styledMode||d[a].attr("fill","rgba(0,0,0,0.0001)");return d[a]},y,E,v;f=c.spacingBox.height+(h?-f:f)-k;var I=this.nav,x=this.clipRect;"horizontal"!==g.layout||"middle"===g.verticalAlign||g.floating||(f/=2);l&&(f=Math.min(f,l));r.length=0;a&&0<f&&a>f&&!1!==n.enabled?
|
|
355
|
+
(this.clipHeight=y=Math.max(f-20-this.titleHeight-k,0),this.currentPage=t(this.currentPage,1),this.fullHeight=a,m.forEach(function(a,c){v=a.legendItem||{};a=v.y||0;var d=Math.round(v.label.getBBox().height),b=r.length;if(!b||a-r[b-1]>y&&(E||a)!==r[b-1])r.push(E||a),b++;v.pageIx=b-1;E&&((m[c-1].legendItem||{}).pageIx=b-1);c===m.length-1&&a+d-r[b-1]>y&&d<=y&&(r.push(a),v.pageIx=b);a!==E&&(E=a)}),x||(x=d.clipRect=b.clipRect(0,k,9999,0),d.contentGroup.clip(x)),w(y),I||(this.nav=I=b.g().attr({zIndex:1}).add(this.group),
|
|
356
|
+
this.up=b.symbol("triangle",0,0,p,p).add(I),A("upTracker").on("click",function(){d.scroll(-1,e)}),this.pager=b.text("",15,10).addClass("highcharts-legend-navigation"),!c.styledMode&&n.style&&this.pager.css(n.style),this.pager.add(I),this.down=b.symbol("triangle-down",0,0,p,p).add(I),A("downTracker").on("click",function(){d.scroll(1,e)})),d.scroll(0),a=f):I&&(w(),this.nav=I.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a};b.prototype.scroll=function(a,d){var c=this,b=this.chart,
|
|
357
|
+
g=this.pages,f=g.length,h=this.clipHeight,k=this.options.navigation,l=this.pager,n=this.padding,e=this.currentPage+a;e>f&&(e=f);0<e&&("undefined"!==typeof d&&x(d,b),this.nav.attr({translateX:n,translateY:h+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(a){a.attr({"class":1===e?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),l.attr({text:e+"/"+f}),[this.down,this.downTracker].forEach(function(a){a.attr({x:18+this.pager.getBBox().width,
|
|
358
|
+
"class":e===f?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),b.styledMode||(this.up.attr({fill:1===e?k.inactiveColor:k.activeColor}),this.upTracker.css({cursor:1===e?"default":"pointer"}),this.down.attr({fill:e===f?k.inactiveColor:k.activeColor}),this.downTracker.css({cursor:e===f?"default":"pointer"})),this.scrollOffset=-g[e-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=e,this.positionCheckboxes(),a=F(t(d,b.renderer.globalAnimation,
|
|
359
|
+
!0)),r(function(){A(c,"afterScroll",{currentPage:e})},a.duration))};b.prototype.setItemEvents=function(a,d,c){var b=this,g=a.legendItem||{},f=b.chart.renderer.boxWrapper,h=a instanceof C,k="highcharts-legend-"+(h?"point":"series")+"-active",l=b.chart.styledMode,n=function(c){b.allItems.forEach(function(d){a!==d&&[d].concat(d.linkedSeries||[]).forEach(function(a){a.setState(c,!h)})})},e=0;for(c=c?[d,g.symbol]:[g.group];e<c.length;e++)if(g=c[e])g.on("mouseover",function(){a.visible&&n("inactive");a.setState("hover");
|
|
360
|
+
a.visible&&f.addClass(k);l||d.css(b.options.itemHoverStyle)}).on("mouseout",function(){b.chart.styledMode||d.css(I(a.visible?b.itemStyle:b.itemHiddenStyle));n("");f.removeClass(k);a.setState()}).on("click",function(c){var d=function(){a.setVisible&&a.setVisible();n(a.visible?"inactive":"")};f.removeClass(k);c={browserEvent:c};a.firePointEvent?a.firePointEvent("legendItemClick",c,d):A(a,"legendItemClick",c,d)})};b.prototype.createCheckboxForItem=function(d){d.checkbox=f("input",{type:"checkbox",className:"highcharts-legend-checkbox",
|
|
361
|
+
checked:d.selected,defaultChecked:d.selected},this.options.itemCheckboxStyle,this.chart.container);a(d.checkbox,"click",function(a){A(d.series||d,"checkboxClick",{checked:a.target.checked,item:d},function(){d.select()})})};return b}();"";return b});J(e,"Core/Series/SeriesRegistry.js",[e["Core/Globals.js"],e["Core/Defaults.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(b,e,u,C){var B=e.defaultOptions,q=C.extendClass,F=C.merge,x;(function(e){function m(b,a){var f=B.plotOptions||{},
|
|
362
|
+
d=a.defaultOptions,k=a.prototype;k.type=b;k.pointClass||(k.pointClass=u);d&&(f[b]=d);e.seriesTypes[b]=a}e.seriesTypes=b.seriesTypes;e.registerSeriesType=m;e.seriesType=function(b,a,f,d,k){var l=B.plotOptions||{};a=a||"";l[b]=F(l[a],f);m(b,q(e.seriesTypes[a]||function(){},d));e.seriesTypes[b].prototype.type=b;k&&(e.seriesTypes[b].prototype.pointClass=q(u,k));return e.seriesTypes[b]}})(x||(x={}));return x});J(e,"Core/Chart/Chart.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],
|
|
363
|
+
e["Core/Defaults.js"],e["Core/FormatUtilities.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Legend/Legend.js"],e["Core/MSPointer.js"],e["Core/Pointer.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Time.js"],e["Core/Utilities.js"],e["Core/Renderer/HTML/AST.js"]],function(b,e,u,C,B,q,F,x,v,m,l,a,f,d,k){var p=b.animate,E=b.animObject,A=b.setAnimation,w=u.defaultOptions,I=u.defaultTime,t=C.numberFormat,h=B.registerEventOptions,
|
|
364
|
+
y=q.charts,r=q.doc,n=q.marginNames,g=q.svg,D=q.win,c=l.seriesTypes,z=d.addEvent,G=d.attr,H=d.cleanRecursively,O=d.createElement,K=d.css,T=d.defined,Y=d.discardElement,Q=d.erase,L=d.error,ba=d.extend,J=d.find,M=d.fireEvent,aa=d.getStyle,X=d.isArray,R=d.isNumber,U=d.isObject,W=d.isString,V=d.merge,S=d.objectEach,N=d.pick,ca=d.pInt,ea=d.relativeLength,fa=d.removeEvent,da=d.splat,ha=d.syncTimeout,ia=d.uniqueKey;b=function(){function b(a,c,d){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=
|
|
365
|
+
this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0;this.sharedClips={};this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0;this.getArgs(a,c,d)}b.chart=function(a,c,
|
|
366
|
+
d){return new b(a,c,d)};b.prototype.getArgs=function(a,c,d){W(a)||a.nodeName?(this.renderTo=a,this.init(c,d)):this.init(a,c)};b.prototype.init=function(a,c){var d=a.plotOptions||{};M(this,"init",{args:arguments},function(){var b=V(w,a),g=b.chart;S(b.plotOptions,function(a,c){U(a)&&(a.tooltip=d[c]&&V(d[c].tooltip)||void 0)});b.tooltip.userOptions=a.chart&&a.chart.forExport&&a.tooltip.userOptions||a.tooltip;this.userOptions=a;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=
|
|
367
|
+
[];this.callback=c;this.isResizing=0;var k=g.zooming=g.zooming||{};a.chart&&!a.chart.zooming&&(k.resetButton=g.resetZoomButton);k.key=N(k.key,g.zoomKey);k.pinchType=N(k.pinchType,g.pinchType);k.singleTouch=N(k.singleTouch,g.zoomBySingleTouch);k.type=N(k.type,g.zoomType);this.options=b;this.axes=[];this.series=[];this.time=a.time&&Object.keys(a.time).length?new f(a.time):q.time;this.numberFormatter=g.numberFormatter||t;this.styledMode=g.styledMode;this.hasCartesianSeries=g.showAxes;this.index=y.length;
|
|
368
|
+
y.push(this);q.chartCount++;h(this,g);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;M(this,"afterInit");this.firstRender()})};b.prototype.initSeries=function(a){var d=this.options.chart;d=a.type||d.type||d.defaultSeriesType;var b=c[d];b||L(17,!0,this,{missingModuleFor:d});d=new b;"function"===typeof d.init&&d.init(this,a);return d};b.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(a){a.points||a.data||!a.enabledDataSorting||a.setData(a.options.data,
|
|
369
|
+
!1)})};b.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(a,c){return a.linkedSeries.length||c.linkedSeries.length?c.linkedSeries.length-a.linkedSeries.length:0})};b.prototype.orderSeries=function(a){var c=this.series;a=a||0;for(var d=c.length;a<d;++a)c[a]&&(c[a].index=a,c[a].name=c[a].getName())};b.prototype.isInsidePlot=function(a,c,d){void 0===d&&(d={});var b=this.inverted,g=this.plotBox,f=this.plotLeft,h=this.plotTop,k=this.scrollablePlotBox,l=0;var e=0;d.visiblePlotOnly&&
|
|
370
|
+
this.scrollingContainer&&(e=this.scrollingContainer,l=e.scrollLeft,e=e.scrollTop);var n=d.series;g=d.visiblePlotOnly&&k||g;k=d.inverted?c:a;c=d.inverted?a:c;a={x:k,y:c,isInsidePlot:!0,options:d};if(!d.ignoreX){var t=n&&(b&&!this.polar?n.yAxis:n.xAxis)||{pos:f,len:Infinity};k=d.paneCoordinates?t.pos+k:f+k;k>=Math.max(l+f,t.pos)&&k<=Math.min(l+f+g.width,t.pos+t.len)||(a.isInsidePlot=!1)}!d.ignoreY&&a.isInsidePlot&&(b=d.axis&&!d.axis.isXAxis&&d.axis||n&&(b?n.xAxis:n.yAxis)||{pos:h,len:Infinity},d=d.paneCoordinates?
|
|
371
|
+
b.pos+c:h+c,d>=Math.max(e+h,b.pos)&&d<=Math.min(e+h+g.height,b.pos+b.len)||(a.isInsidePlot=!1));M(this,"afterIsInsidePlot",a);return a.isInsidePlot};b.prototype.redraw=function(a){M(this,"beforeRedraw");var c=this.hasCartesianSeries?this.axes:this.colorAxis||[],d=this.series,b=this.pointer,g=this.legend,f=this.userOptions.legend,h=this.renderer,k=h.isHidden(),l=[],e=this.isDirtyBox,n=this.isDirtyLegend;this.setResponsive&&this.setResponsive(!1);A(this.hasRendered?a:!1,this);k&&this.temporaryDisplay();
|
|
372
|
+
this.layOutTitles();for(a=d.length;a--;){var t=d[a];if(t.options.stacking||t.options.centerInCategory){var p=!0;if(t.isDirty){var r=!0;break}}}if(r)for(a=d.length;a--;)t=d[a],t.options.stacking&&(t.isDirty=!0);d.forEach(function(a){a.isDirty&&("point"===a.options.legendType?("function"===typeof a.updateTotals&&a.updateTotals(),n=!0):f&&(f.labelFormatter||f.labelFormat)&&(n=!0));a.isDirtyData&&M(a,"updatedData")});n&&g&&g.options.enabled&&(g.render(),this.isDirtyLegend=!1);p&&this.getStacks();c.forEach(function(a){a.updateNames();
|
|
373
|
+
a.setScale()});this.getMargins();c.forEach(function(a){a.isDirty&&(e=!0)});c.forEach(function(a){var c=a.min+","+a.max;a.extKey!==c&&(a.extKey=c,l.push(function(){M(a,"afterSetExtremes",ba(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(e||p)&&a.redraw()});e&&this.drawChartBox();M(this,"predraw");d.forEach(function(a){(e||a.isDirty)&&a.visible&&a.redraw();a.isDirtyData=!1});b&&b.reset(!0);h.draw();M(this,"redraw");M(this,"render");k&&this.temporaryDisplay(!0);l.forEach(function(a){a.call()})};
|
|
374
|
+
b.prototype.get=function(a){function c(c){return c.id===a||c.options&&c.options.id===a}for(var d=this.series,b=J(this.axes,c)||J(this.series,c),g=0;!b&&g<d.length;g++)b=J(d[g].points||[],c);return b};b.prototype.getAxes=function(){var a=this,c=this.options,d=c.xAxis=da(c.xAxis||{});c=c.yAxis=da(c.yAxis||{});M(this,"getAxes");d.forEach(function(a,c){a.index=c;a.isX=!0});c.forEach(function(a,c){a.index=c});d.concat(c).forEach(function(c){new e(a,c)});M(this,"afterGetAxes")};b.prototype.getSelectedPoints=
|
|
375
|
+
function(){return this.series.reduce(function(a,c){c.getPointsCollection().forEach(function(c){N(c.selectedStaging,c.selected)&&a.push(c)});return a},[])};b.prototype.getSelectedSeries=function(){return this.series.filter(function(a){return a.selected})};b.prototype.setTitle=function(a,c,d){this.applyDescription("title",a);this.applyDescription("subtitle",c);this.applyDescription("caption",void 0);this.layOutTitles(d)};b.prototype.applyDescription=function(a,c){var d=this,b="title"===a?{color:"#333333",
|
|
376
|
+
fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};b=this.options[a]=V(!this.styledMode&&{style:b},this.options[a],c);var g=this[a];g&&c&&(this[a]=g=g.destroy());b&&!g&&(g=this.renderer.text(b.text,0,0,b.useHTML).attr({align:b.align,"class":"highcharts-"+a,zIndex:b.zIndex||4}).add(),g.update=function(c){d[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[a]](c)},this.styledMode||g.css(b.style),this[a]=g)};b.prototype.layOutTitles=function(a){var c=[0,0,0],d=this.renderer,
|
|
377
|
+
b=this.spacingBox;["title","subtitle","caption"].forEach(function(a){var g=this[a],f=this.options[a],h=f.verticalAlign||"top";a="title"===a?"top"===h?-3:0:"top"===h?c[0]+2:0;var k;if(g){this.styledMode||(k=f.style&&f.style.fontSize);k=d.fontMetrics(k,g).b;g.css({width:(f.width||b.width+(f.widthAdjust||0))+"px"});var l=Math.round(g.getBBox(f.useHTML).height);g.align(ba({y:"bottom"===h?k:a+k,height:l},f),!1,"spacingBox");f.floating||("top"===h?c[0]=Math.ceil(c[0]+l):"bottom"===h&&(c[2]=Math.ceil(c[2]+
|
|
378
|
+
l)))}},this);c[0]&&"top"===(this.options.title.verticalAlign||"top")&&(c[0]+=this.options.title.margin);c[2]&&"bottom"===this.options.caption.verticalAlign&&(c[2]+=this.options.caption.margin);var g=!this.titleOffset||this.titleOffset.join(",")!==c.join(",");this.titleOffset=c;M(this,"afterLayOutTitles");!this.isDirtyBox&&g&&(this.isDirtyBox=this.isDirtyLegend=g,this.hasRendered&&N(a,!0)&&this.isDirtyBox&&this.redraw())};b.prototype.getChartSize=function(){var a=this.options.chart,c=a.width;a=a.height;
|
|
379
|
+
var d=this.renderTo;T(c)||(this.containerWidth=aa(d,"width"));T(a)||(this.containerHeight=aa(d,"height"));this.chartWidth=Math.max(0,c||this.containerWidth||600);this.chartHeight=Math.max(0,ea(a,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};b.prototype.temporaryDisplay=function(a){var c=this.renderTo;if(a)for(;c&&c.style;)c.hcOrigStyle&&(K(c,c.hcOrigStyle),delete c.hcOrigStyle),c.hcOrigDetached&&(r.body.removeChild(c),c.hcOrigDetached=!1),c=c.parentNode;else for(;c&&c.style;){r.body.contains(c)||
|
|
380
|
+
c.parentNode||(c.hcOrigDetached=!0,r.body.appendChild(c));if("none"===aa(c,"display",!1)||c.hcOricDetached)c.hcOrigStyle={display:c.style.display,height:c.style.height,overflow:c.style.overflow},a={display:"block",overflow:"hidden"},c!==this.renderTo&&(a.height=0),K(c,a),c.offsetWidth||c.style.setProperty("display","block","important");c=c.parentNode;if(c===r.body)break}};b.prototype.setClassName=function(a){this.container.className="highcharts-container "+(a||"")};b.prototype.getContainer=function(){var c=
|
|
381
|
+
this.options,d=c.chart,b=ia(),f,h=this.renderTo;h||(this.renderTo=h=d.renderTo);W(h)&&(this.renderTo=h=r.getElementById(h));h||L(13,!0,this);var l=ca(G(h,"data-highcharts-chart"));R(l)&&y[l]&&y[l].hasRendered&&y[l].destroy();G(h,"data-highcharts-chart",this.index);h.innerHTML=k.emptyHTML;d.skipClone||h.offsetWidth||this.temporaryDisplay();this.getChartSize();l=this.chartWidth;var e=this.chartHeight;K(h,{overflow:"hidden"});this.styledMode||(f=ba({position:"relative",overflow:"hidden",width:l+"px",
|
|
382
|
+
height:e+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},d.style||{}));this.container=b=O("div",{id:b},f,h);this._cursor=b.style.cursor;this.renderer=new (d.renderer||!g?m.getRendererType(d.renderer):a)(b,l,e,void 0,d.forExport,c.exporting&&c.exporting.allowHTML,this.styledMode);A(void 0,this);this.setClassName(d.className);if(this.styledMode)for(var n in c.defs)this.renderer.definition(c.defs[n]);
|
|
383
|
+
else this.renderer.setStyle(d.style);this.renderer.chartIndex=this.index;M(this,"afterGetContainer")};b.prototype.getMargins=function(a){var c=this.spacing,d=this.margin,b=this.titleOffset;this.resetMargins();b[0]&&!T(d[0])&&(this.plotTop=Math.max(this.plotTop,b[0]+c[0]));b[2]&&!T(d[2])&&(this.marginBottom=Math.max(this.marginBottom,b[2]+c[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(d,c);M(this,"getMargins");a||this.getAxisMargins()};b.prototype.getAxisMargins=function(){var a=
|
|
384
|
+
this,c=a.axisOffset=[0,0,0,0],d=a.colorAxis,b=a.margin,g=function(a){a.forEach(function(a){a.visible&&a.getOffset()})};a.hasCartesianSeries?g(a.axes):d&&d.length&&g(d);n.forEach(function(d,g){T(b[g])||(a[d]+=c[g])});a.setChartSize()};b.prototype.reflow=function(a){var c=this,b=c.options.chart,g=c.renderTo,f=T(b.width)&&T(b.height),h=b.width||aa(g,"width");b=b.height||aa(g,"height");g=a?a.target:D;delete c.pointer.chartPosition;if(!f&&!c.isPrinting&&h&&b&&(g===D||g===r)){if(h!==c.containerWidth||b!==
|
|
385
|
+
c.containerHeight)d.clearTimeout(c.reflowTimeout),c.reflowTimeout=ha(function(){c.container&&c.setSize(void 0,void 0,!1)},a?100:0);c.containerWidth=h;c.containerHeight=b}};b.prototype.setReflow=function(a){var c=this;!1===a||this.unbindReflow?!1===a&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=z(D,"resize",function(a){c.options&&c.reflow(a)}),z(this,"destroy",this.unbindReflow))};b.prototype.setSize=function(a,c,d){var b=this,g=b.renderer;b.isResizing+=1;A(d,b);d=
|
|
386
|
+
g.globalAnimation;b.oldChartHeight=b.chartHeight;b.oldChartWidth=b.chartWidth;"undefined"!==typeof a&&(b.options.chart.width=a);"undefined"!==typeof c&&(b.options.chart.height=c);b.getChartSize();b.styledMode||(d?p:K)(b.container,{width:b.chartWidth+"px",height:b.chartHeight+"px"},d);b.setChartSize(!0);g.setSize(b.chartWidth,b.chartHeight,d);b.axes.forEach(function(a){a.isDirty=!0;a.setScale()});b.isDirtyLegend=!0;b.isDirtyBox=!0;b.layOutTitles();b.getMargins();b.redraw(d);b.oldChartHeight=null;M(b,
|
|
387
|
+
"resize");ha(function(){b&&M(b,"endResize",null,function(){--b.isResizing})},E(d).duration)};b.prototype.setChartSize=function(a){var c=this.inverted,d=this.renderer,b=this.chartWidth,g=this.chartHeight,f=this.options.chart,h=this.spacing,k=this.clipOffset,l,e,n,t;this.plotLeft=l=Math.round(this.plotLeft);this.plotTop=e=Math.round(this.plotTop);this.plotWidth=n=Math.max(0,Math.round(b-l-this.marginRight));this.plotHeight=t=Math.max(0,Math.round(g-e-this.marginBottom));this.plotSizeX=c?t:n;this.plotSizeY=
|
|
388
|
+
c?n:t;this.plotBorderWidth=f.plotBorderWidth||0;this.spacingBox=d.spacingBox={x:h[3],y:h[0],width:b-h[3]-h[1],height:g-h[0]-h[2]};this.plotBox=d.plotBox={x:l,y:e,width:n,height:t};c=2*Math.floor(this.plotBorderWidth/2);b=Math.ceil(Math.max(c,k[3])/2);g=Math.ceil(Math.max(c,k[0])/2);this.clipBox={x:b,y:g,width:Math.floor(this.plotSizeX-Math.max(c,k[1])/2-b),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(c,k[2])/2-g))};a||(this.axes.forEach(function(a){a.setAxisSize();a.setAxisTranslation()}),
|
|
389
|
+
d.alignElements());M(this,"afterSetChartSize",{skipAxes:a})};b.prototype.resetMargins=function(){M(this,"resetMargins");var a=this,c=a.options.chart;["margin","spacing"].forEach(function(d){var b=c[d],g=U(b)?b:[b,b,b,b];["Top","Right","Bottom","Left"].forEach(function(b,f){a[d][f]=N(c[d+b],g[f])})});n.forEach(function(c,d){a[c]=N(a.margin[d],a.spacing[d])});a.axisOffset=[0,0,0,0];a.clipOffset=[0,0,0,0]};b.prototype.drawChartBox=function(){var a=this.options.chart,c=this.renderer,d=this.chartWidth,
|
|
390
|
+
b=this.chartHeight,g=this.styledMode,f=this.plotBGImage,h=a.backgroundColor,k=a.plotBackgroundColor,l=a.plotBackgroundImage,e=this.plotLeft,n=this.plotTop,t=this.plotWidth,p=this.plotHeight,r=this.plotBox,m=this.clipRect,z=this.clipBox,D=this.chartBackground,G=this.plotBackground,w=this.plotBorder,A,y="animate";D||(this.chartBackground=D=c.rect().addClass("highcharts-background").add(),y="attr");if(g)var E=A=D.strokeWidth();else{E=a.borderWidth||0;A=E+(a.shadow?8:0);h={fill:h||"none"};if(E||D["stroke-width"])h.stroke=
|
|
391
|
+
a.borderColor,h["stroke-width"]=E;D.attr(h).shadow(a.shadow)}D[y]({x:A/2,y:A/2,width:d-A-E%2,height:b-A-E%2,r:a.borderRadius});y="animate";G||(y="attr",this.plotBackground=G=c.rect().addClass("highcharts-plot-background").add());G[y](r);g||(G.attr({fill:k||"none"}).shadow(a.plotShadow),l&&(f?(l!==f.attr("href")&&f.attr("href",l),f.animate(r)):this.plotBGImage=c.image(l,e,n,t,p).add()));m?m.animate({width:z.width,height:z.height}):this.clipRect=c.clipRect(z);y="animate";w||(y="attr",this.plotBorder=
|
|
392
|
+
w=c.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());g||w.attr({stroke:a.plotBorderColor,"stroke-width":a.plotBorderWidth||0,fill:"none"});w[y](w.crisp({x:e,y:n,width:t,height:p},-w.strokeWidth()));this.isDirtyBox=!1;M(this,"afterDrawChartBox")};b.prototype.propFromSeries=function(){var a=this,d=a.options.chart,b=a.options.series,g,f,h;["inverted","angular","polar"].forEach(function(k){f=c[d.type||d.defaultSeriesType];h=d[k]||f&&f.prototype[k];for(g=b&&b.length;!h&&g--;)(f=c[b[g].type])&&
|
|
393
|
+
f.prototype[k]&&(h=!0);a[k]=h})};b.prototype.linkSeries=function(){var a=this,c=a.series;c.forEach(function(a){a.linkedSeries.length=0});c.forEach(function(c){var d=c.options.linkedTo;W(d)&&(d=":previous"===d?a.series[c.index-1]:a.get(d))&&d.linkedParent!==c&&(d.linkedSeries.push(c),c.linkedParent=d,d.enabledDataSorting&&c.setDataSortingOptions(),c.visible=N(c.options.visible,d.options.visible,c.visible))});M(this,"afterLinkSeries")};b.prototype.renderSeries=function(){this.series.forEach(function(a){a.translate();
|
|
394
|
+
a.render()})};b.prototype.renderLabels=function(){var a=this,c=a.options.labels;c.items&&c.items.forEach(function(d){var b=ba(c.style,d.style),g=ca(b.left)+a.plotLeft,f=ca(b.top)+a.plotTop+12;delete b.left;delete b.top;a.renderer.text(d.html,g,f).attr({zIndex:2}).css(b).add()})};b.prototype.render=function(){var a=this.axes,c=this.colorAxis,d=this.renderer,b=this.options,g=function(a){a.forEach(function(a){a.visible&&a.render()})},f=0;this.setTitle();this.legend=new F(this,b.legend);this.getStacks&&
|
|
395
|
+
this.getStacks();this.getMargins(!0);this.setChartSize();b=this.plotWidth;a.some(function(a){if(a.horiz&&a.visible&&a.options.labels.enabled&&a.series.length)return f=21,!0});var h=this.plotHeight=Math.max(this.plotHeight-f,0);a.forEach(function(a){a.setScale()});this.getAxisMargins();var k=1.1<b/this.plotWidth,l=1.05<h/this.plotHeight;if(k||l)a.forEach(function(a){(a.horiz&&k||!a.horiz&&l)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?g(a):c&&c.length&&g(c);
|
|
396
|
+
this.seriesGroup||(this.seriesGroup=d.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=!0};b.prototype.addCredits=function(a){var c=this,d=V(!0,this.options.credits,a);d.enabled&&!this.credits&&(this.credits=this.renderer.text(d.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){d.href&&(D.location.href=d.href)}).attr({align:d.position.align,zIndex:8}),c.styledMode||
|
|
397
|
+
this.credits.css(d.style),this.credits.add().align(d.position),this.credits.update=function(a){c.credits=c.credits.destroy();c.addCredits(a)})};b.prototype.destroy=function(){var a=this,c=a.axes,d=a.series,b=a.container,g=b&&b.parentNode,f;M(a,"destroy");a.renderer.forExport?Q(y,a):y[a.index]=void 0;q.chartCount--;a.renderTo.removeAttribute("data-highcharts-chart");fa(a);for(f=c.length;f--;)c[f]=c[f].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(f=d.length;f--;)d[f]=
|
|
398
|
+
d[f].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(c){var d=a[c];d&&d.destroy&&(a[c]=d.destroy())});b&&(b.innerHTML=k.emptyHTML,fa(b),g&&Y(b));S(a,function(c,d){delete a[d]})};b.prototype.firstRender=function(){var a=this,c=a.options;if(!a.isReadyToRender||a.isReadyToRender()){a.getContainer();a.resetMargins();a.setChartSize();a.propFromSeries();
|
|
399
|
+
a.getAxes();(X(c.series)?c.series:[]).forEach(function(c){a.initSeries(c)});a.linkSeries();a.setSeriesData();M(a,"beforeRender");v&&(x.isRequired()?a.pointer=new x(a,c):a.pointer=new v(a,c));a.render();a.pointer.getChartPosition();if(!a.renderer.imgCount&&!a.hasLoaded)a.onload();a.temporaryDisplay(!0)}};b.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(a){a&&"undefined"!==typeof this.index&&a.apply(this,[this])},this);M(this,"load");M(this,"render");T(this.index)&&
|
|
400
|
+
this.setReflow(this.options.chart.reflow);this.warnIfA11yModuleNotLoaded();this.hasLoaded=!0};b.prototype.warnIfA11yModuleNotLoaded=function(){var a=this.options,c=this.title;a&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":c&&c.element.textContent||""}),a.accessibility&&!1===a.accessibility.enabled||L('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',
|
|
401
|
+
!1,this))};b.prototype.addSeries=function(a,c,d){var b=this,g;a&&(c=N(c,!0),M(b,"addSeries",{options:a},function(){g=b.initSeries(a);b.isDirtyLegend=!0;b.linkSeries();g.enabledDataSorting&&g.setData(a.data,!1);M(b,"afterAddSeries",{series:g});c&&b.redraw(d)}));return g};b.prototype.addAxis=function(a,c,d,b){return this.createAxis(c?"xAxis":"yAxis",{axis:a,redraw:d,animation:b})};b.prototype.addColorAxis=function(a,c,d){return this.createAxis("colorAxis",{axis:a,redraw:c,animation:d})};b.prototype.createAxis=
|
|
402
|
+
function(a,c){a=new e(this,V(c.axis,{index:this[a].length,isX:"xAxis"===a}));N(c.redraw,!0)&&this.redraw(c.animation);return a};b.prototype.showLoading=function(a){var c=this,d=c.options,b=d.loading,g=function(){f&&K(f,{left:c.plotLeft+"px",top:c.plotTop+"px",width:c.plotWidth+"px",height:c.plotHeight+"px"})},f=c.loadingDiv,h=c.loadingSpan;f||(c.loadingDiv=f=O("div",{className:"highcharts-loading highcharts-loading-hidden"},null,c.container));h||(c.loadingSpan=h=O("span",{className:"highcharts-loading-inner"},
|
|
403
|
+
null,f),z(c,"redraw",g));f.className="highcharts-loading";k.setElementHTML(h,N(a,d.lang.loading,""));c.styledMode||(K(f,ba(b.style,{zIndex:10})),K(h,b.labelStyle),c.loadingShown||(K(f,{opacity:0,display:""}),p(f,{opacity:b.style.opacity||.5},{duration:b.showDuration||0})));c.loadingShown=!0;g()};b.prototype.hideLoading=function(){var a=this.options,c=this.loadingDiv;c&&(c.className="highcharts-loading highcharts-loading-hidden",this.styledMode||p(c,{opacity:0},{duration:a.loading.hideDuration||100,
|
|
404
|
+
complete:function(){K(c,{display:"none"})}}));this.loadingShown=!1};b.prototype.update=function(a,c,d,b){var g=this,k={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},l=a.isResponsiveOptions,e=[],n,t;M(g,"update",{options:a});l||g.setResponsive(!1,!0);a=H(a,g.options);g.userOptions=V(g.userOptions,a);var p=a.chart;if(p){V(!0,g.options.chart,p);"className"in p&&g.setClassName(p.className);"reflow"in p&&g.setReflow(p.reflow);if("inverted"in p||"polar"in p||"type"in
|
|
405
|
+
p){g.propFromSeries();var r=!0}"alignTicks"in p&&(r=!0);"events"in p&&h(this,p);S(p,function(a,c){-1!==g.propsRequireUpdateSeries.indexOf("chart."+c)&&(n=!0);-1!==g.propsRequireDirtyBox.indexOf(c)&&(g.isDirtyBox=!0);-1!==g.propsRequireReflow.indexOf(c)&&(l?g.isDirtyBox=!0:t=!0)});!g.styledMode&&p.style&&g.renderer.setStyle(g.options.chart.style||{})}!g.styledMode&&a.colors&&(this.options.colors=a.colors);a.time&&(this.time===I&&(this.time=new f(a.time)),V(!0,g.options.time,a.time));S(a,function(c,
|
|
406
|
+
d){if(g[d]&&"function"===typeof g[d].update)g[d].update(c,!1);else if("function"===typeof g[k[d]])g[k[d]](c);else"colors"!==d&&-1===g.collectionsWithUpdate.indexOf(d)&&V(!0,g.options[d],a[d]);"chart"!==d&&-1!==g.propsRequireUpdateSeries.indexOf(d)&&(n=!0)});this.collectionsWithUpdate.forEach(function(c){if(a[c]){var b=[];g[c].forEach(function(a,c){a.options.isInternal||b.push(N(a.options.index,c))});da(a[c]).forEach(function(a,f){var h=T(a.id),k;h&&(k=g.get(a.id));!k&&g[c]&&(k=g[c][b?b[f]:f])&&h&&
|
|
407
|
+
T(k.options.id)&&(k=void 0);k&&k.coll===c&&(k.update(a,!1),d&&(k.touched=!0));!k&&d&&g.collectionsWithInit[c]&&(g.collectionsWithInit[c][0].apply(g,[a].concat(g.collectionsWithInit[c][1]||[]).concat([!1])).touched=!0)});d&&g[c].forEach(function(a){a.touched||a.options.isInternal?delete a.touched:e.push(a)})}});e.forEach(function(a){a.chart&&a.remove&&a.remove(!1)});r&&g.axes.forEach(function(a){a.update({},!1)});n&&g.getSeriesOrderByLinks().forEach(function(a){a.chart&&a.update({},!1)},this);r=p&&
|
|
408
|
+
p.width;p=p&&(W(p.height)?ea(p.height,r||g.chartWidth):p.height);t||R(r)&&r!==g.chartWidth||R(p)&&p!==g.chartHeight?g.setSize(r,p,b):N(c,!0)&&g.redraw(b);M(g,"afterUpdate",{options:a,redraw:c,animation:b})};b.prototype.setSubtitle=function(a,c){this.applyDescription("subtitle",a);this.layOutTitles(c)};b.prototype.setCaption=function(a,c){this.applyDescription("caption",a);this.layOutTitles(c)};b.prototype.showResetZoom=function(){function a(){c.zoomOut()}var c=this,d=w.lang,b=c.options.chart.zooming.resetButton,
|
|
409
|
+
g=b.theme,f="chart"===b.relativeTo||"spacingBox"===b.relativeTo?null:"scrollablePlotBox";M(this,"beforeShowResetZoom",null,function(){c.resetZoomButton=c.renderer.button(d.resetZoom,null,null,a,g).attr({align:b.position.align,title:d.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(b.position,!1,f)});M(this,"afterShowResetZoom")};b.prototype.zoomOut=function(){M(this,"selection",{resetSelection:!0},this.zoom)};b.prototype.zoom=function(a){var c=this,d=c.pointer,b=!1,g;!a||a.resetSelection?
|
|
410
|
+
(c.axes.forEach(function(a){g=a.zoom()}),d.initiated=!1):a.xAxis.concat(a.yAxis).forEach(function(a){var f=a.axis;if(d[f.isXAxis?"zoomX":"zoomY"]&&T(d.mouseDownX)&&T(d.mouseDownY)&&c.isInsidePlot(d.mouseDownX-c.plotLeft,d.mouseDownY-c.plotTop,{axis:f})||!T(c.inverted?d.mouseDownX:d.mouseDownY))g=f.zoom(a.min,a.max),f.displayBtn&&(b=!0)});var f=c.resetZoomButton;b&&!f?c.showResetZoom():!b&&U(f)&&(c.resetZoomButton=f.destroy());g&&c.redraw(N(c.options.chart.animation,a&&a.animation,100>c.pointCount))};
|
|
411
|
+
b.prototype.pan=function(a,c){var d=this,b=d.hoverPoints;c="object"===typeof c?c:{enabled:c,type:"x"};var g=d.options.chart;g&&g.panning&&(g.panning=c);var f=c.type,h;M(this,"pan",{originalEvent:a},function(){b&&b.forEach(function(a){a.setState()});var c=d.xAxis;"xy"===f?c=c.concat(d.yAxis):"y"===f&&(c=d.yAxis);var g={};c.forEach(function(c){if(c.options.panningEnabled&&!c.options.isInternal){var b=c.horiz,k=a[b?"chartX":"chartY"];b=b?"mouseDownX":"mouseDownY";var l=d[b],e=c.minPointOffset||0,n=c.reversed&&
|
|
412
|
+
!d.inverted||!c.reversed&&d.inverted?-1:1,t=c.getExtremes(),p=c.toValue(l-k,!0)+e*n,r=c.toValue(l+c.len-k,!0)-(e*n||c.isXAxis&&c.pointRangePadding||0),m=r<p;n=c.hasVerticalPanning();l=m?r:p;p=m?p:r;var z=c.panningState;!n||c.isXAxis||z&&!z.isDirty||c.series.forEach(function(a){var c=a.getProcessedData(!0);c=a.getExtremes(c.yData,!0);z||(z={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});R(c.dataMin)&&R(c.dataMax)&&(z.startMin=Math.min(N(a.options.threshold,Infinity),c.dataMin,z.startMin),z.startMax=
|
|
413
|
+
Math.max(N(a.options.threshold,-Infinity),c.dataMax,z.startMax))});n=Math.min(N(z&&z.startMin,t.dataMin),e?t.min:c.toValue(c.toPixels(t.min)-c.minPixelPadding));r=Math.max(N(z&&z.startMax,t.dataMax),e?t.max:c.toValue(c.toPixels(t.max)+c.minPixelPadding));c.panningState=z;c.isOrdinal||(e=n-l,0<e&&(p+=e,l=n),e=p-r,0<e&&(p=r,l-=e),c.series.length&&l!==t.min&&p!==t.max&&l>=n&&p<=r&&(c.setExtremes(l,p,!1,!1,{trigger:"pan"}),!d.resetZoomButton&&l!==n&&p!==r&&f.match("y")&&(d.showResetZoom(),c.displayBtn=
|
|
414
|
+
!1),h=!0),g[b]=k)}});S(g,function(a,c){d[c]=a});h&&d.redraw(!1);K(d.container,{cursor:"move"})})};return b}();ba(b.prototype,{callbacks:[],collectionsWithInit:{xAxis:[b.prototype.addAxis,[!0]],yAxis:[b.prototype.addAxis,[!1]],series:[b.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),
|
|
415
|
+
propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});"";return b});J(e,"Core/Legend/LegendSymbol.js",[e["Core/Utilities.js"]],function(b){var e=b.merge,u=b.pick,C;(function(b){b.drawLineMarker=function(b){var q=this.legendItem=this.legendItem||{},x=this.options,v=b.symbolWidth,m=b.symbolHeight,l=m/2,a=this.chart.renderer,f=q.group;b=b.baseline-Math.round(.3*b.fontMetrics.b);var d={},k=x.marker;this.chart.styledMode||
|
|
416
|
+
(d={"stroke-width":x.lineWidth||0},x.dashStyle&&(d.dashstyle=x.dashStyle));q.line=a.path([["M",0,b],["L",v,b]]).addClass("highcharts-graph").attr(d).add(f);k&&!1!==k.enabled&&v&&(x=Math.min(u(k.radius,l),l),0===this.symbol.indexOf("url")&&(k=e(k,{width:m,height:m}),x=0),q.symbol=q=a.symbol(this.symbol,v/2-x,b-x,2*x,2*x,k).addClass("highcharts-point").add(f),q.isMarker=!0)};b.drawRectangle=function(b,e){e=e.legendItem||{};var x=b.symbolHeight,v=b.options.squareSymbol;e.symbol=this.chart.renderer.rect(v?
|
|
417
|
+
(b.symbolWidth-x)/2:0,b.baseline-x+1,v?x:b.symbolWidth,x,u(b.options.symbolRadius,x/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.group)}})(C||(C={}));return C});J(e,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",
|
|
418
418
|
lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var b=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":b(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},
|
|
419
|
-
select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"}});
|
|
420
|
-
|
|
421
|
-
this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}b.prototype.init=function(a,b){
|
|
422
|
-
b.allowPointSelect)a.runTrackerClick=!0;
|
|
423
|
-
this.options.index,b;if(
|
|
424
|
-
b.isDirty=!0;
|
|
425
|
-
this.yData&&0<this.yData.length};b.prototype.autoIncrement=function(a){var c=this.options,b=c.pointIntervalUnit,
|
|
426
|
-
b.prototype.setDataSortingOptions=function(){var a=this.options;c(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});
|
|
427
|
-
|
|
428
|
-
(b={value:g[this.zoneAxis+"Threshold"]||g.threshold||0,className:"highcharts-negative"},c||(b.color=g.negativeColor,b.fillColor=g.negativeFillColor),
|
|
429
|
-
"Count"],
|
|
430
|
-
function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};b.prototype.findPointIndex=function(a,c){var b=a.id,
|
|
431
|
-
c.options.x===a.x}),h=
|
|
432
|
-
a)||{},
|
|
433
|
-
|
|
434
|
-
delete
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
c){a.x=c},this);c.linkedSeries&&c.linkedSeries.forEach(function(c){var b=c.options,
|
|
438
|
-
var
|
|
439
|
-
b.prototype.processData=function(a){var c=this.xAxis;if(this.isCartesian&&!this.isDirty&&!c.isDirty&&!this.yAxis.isDirty&&!a)return!1;a=this.getProcessedData();this.cropped=a.cropped;this.cropStart=a.cropStart;this.processedXData=a.xData;this.processedYData=a.yData;this.closestPointRange=this.basePointRange=a.closestPointRange;
|
|
440
|
-
h;b<
|
|
441
|
-
[
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
k;if(!1!==b.enabled||this._hasPointMarkers)for(h=0;h<a.length;h++){var
|
|
452
|
-
|
|
453
|
-
h&&h+(
|
|
454
|
-
{};a=
|
|
455
|
-
c.chart.legend.destroyItem(c);for(
|
|
456
|
-
|
|
457
|
-
y:0,width:
|
|
458
|
-
function(a){function c(){["group","markerGroup"].forEach(function(c){b[c]&&(
|
|
459
|
-
this.opacity);h&&(this[a]=
|
|
460
|
-
a.plotLeft,translateY:b?b.top:a.plotTop,scaleX:1,scaleY:1}};b.prototype.removeEvents=function(a){a||
|
|
461
|
-
a.plotGroup("markerGroup","markers",
|
|
462
|
-
|
|
463
|
-
plotY:d
|
|
464
|
-
a.type?0:1)};b.prototype.searchKDTree=function(a,c,b){function
|
|
465
|
-
h=this.kdAxisArray[1],k=c?"distX":"dist";c=-1<
|
|
466
|
-
typeof a.plotX&&0<=a.plotY&&a.plotY<=(
|
|
467
|
-
"highcharts-tracker-line").add(a.group),
|
|
468
|
-
c,b,
|
|
469
|
-
b&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
"clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==a.visible&&
|
|
473
|
-
"transformGroup"].concat(
|
|
474
|
-
(a=
|
|
475
|
-
this.userOptions.name=a;this.chart.isDirtyLegend=!0};b.prototype.hasOptionChanged=function(a){var c=this.options[a],b=this.chart.options.plotOptions,
|
|
476
|
-
this.options,c=this.chart,b=c.tooltip,
|
|
477
|
-
b.dataLabelsGroup].forEach(function(c){c&&(b.state&&c.removeClass("highcharts-series-"+b.state),a&&c.addClass("highcharts-series-"+a))}),b.state=a,!b.chart.styledMode)){if(h[a]&&!1===h[a].enabled)return;a&&(
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
(this.checkbox.checked=a);
|
|
481
|
-
requireSorting:!0,sorted:!0});
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(b.overflowX="auto");this.scrollablePixelsY&&(b.overflowY="auto");this.scrollingParent=
|
|
485
|
-
this.innerContainer.appendChild(this.container);this.setUpScrolling=null};
|
|
486
|
-
|
|
487
|
-
function(){var b=!this.fixedDiv,
|
|
488
|
-
this.scrollableMask=
|
|
489
|
-
0);
|
|
490
|
-
|
|
491
|
-
1],["L",
|
|
492
|
-
|
|
493
|
-
b.prototype.render=function(b){var a=this.axis.chart,
|
|
494
|
-
this.label.add(b));this.label.labelrank=a.plotSizeY};b.prototype.setOffset=function(b,a,d,
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
e["Core/Series/SeriesRegistry.js"],e["Core/Axis/Stacking/StackItem.js"],e["Core/Utilities.js"]],function(b,e,
|
|
498
|
-
function
|
|
499
|
-
|
|
500
|
-
function
|
|
501
|
-
var
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
this.stacks=this.oldStacks;
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
center:2}[
|
|
510
|
-
|
|
511
|
-
e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,
|
|
512
|
-
|
|
513
|
-
b[0],
|
|
514
|
-
|
|
515
|
-
(a[
|
|
516
|
-
this,
|
|
517
|
-
d?"rightNull":"leftNull",e=
|
|
518
|
-
drawLegendSymbol:e.drawRectangle});
|
|
519
|
-
(
|
|
520
|
-
|
|
521
|
-
[e["Series/Spline/SplineSeries.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
.
|
|
526
|
-
|
|
527
|
-
b.
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
(
|
|
535
|
-
(
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
[e["Core/Animation/AnimationUtilities.js"],e["Core/FormatUtilities.js"],e["Core/Utilities.js"]],function(b,e,
|
|
539
|
-
paneCoordinates:!0,series:
|
|
540
|
-
this.xAxis.len-
|
|
541
|
-
x+
|
|
542
|
-
|
|
543
|
-
6);
|
|
544
|
-
"Formatter"]||
|
|
545
|
-
typeof a&&delete
|
|
546
|
-
q.label(w,0,0,
|
|
547
|
-
"afterDrawDataLabels")}function
|
|
548
|
-
"bottom",b.inside=!0):
|
|
549
|
-
b.
|
|
550
|
-
e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,
|
|
551
|
-
y:
|
|
552
|
-
e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,
|
|
553
|
-
arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
[e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Utilities.js"]],function(b,e,
|
|
558
|
-
0>
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
b
|
|
563
|
-
|
|
564
|
-
a,
|
|
565
|
-
e
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
b
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
a.
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
void 0)}
|
|
595
|
-
e["Core/
|
|
596
|
-
e["
|
|
597
|
-
w
|
|
598
|
-
|
|
599
|
-
b.
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
a)}
|
|
614
|
-
|
|
615
|
-
this.
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
this.
|
|
633
|
-
|
|
634
|
-
b
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
a
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
a.
|
|
644
|
-
|
|
645
|
-
b
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
(void 0===
|
|
649
|
-
b
|
|
650
|
-
|
|
651
|
-
(
|
|
652
|
-
(b
|
|
653
|
-
|
|
654
|
-
.
|
|
655
|
-
"Maps/Projections/
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
.
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
b.
|
|
678
|
-
|
|
679
|
-
b.
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
a.
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
f.
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
function(a){var
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
b.prototype.
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
c
|
|
708
|
-
|
|
709
|
-
b.
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
a=
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
a.
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
h({
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
e
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
if(
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
(
|
|
761
|
-
|
|
762
|
-
(
|
|
763
|
-
|
|
764
|
-
a.
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
419
|
+
select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"}});J(e,"Core/Series/Series.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Defaults.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/Point.js"],e["Core/Series/SeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(b,e,u,C,B,q,F,x,v,m){var l=
|
|
420
|
+
b.animObject,a=b.setAnimation,f=e.defaultOptions,d=u.registerEventOptions,k=C.hasTouch,p=C.svg,E=C.win,A=x.seriesTypes,w=m.addEvent,I=m.arrayMax,t=m.arrayMin,h=m.clamp,y=m.cleanRecursively,r=m.correctFloat,n=m.defined,g=m.erase,D=m.error,c=m.extend,z=m.find,G=m.fireEvent,H=m.getNestedProperty,O=m.isArray,K=m.isNumber,T=m.isString,Y=m.merge,Q=m.objectEach,L=m.pick,ba=m.removeEvent,J=m.splat,M=m.syncTimeout;b=function(){function b(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=
|
|
421
|
+
this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}b.prototype.init=function(a,b){G(this,"init",{options:b});var g=this,f=a.series;this.eventsToUnbind=[];g.chart=a;g.options=g.setOptions(b);b=g.options;g.linkedSeries=[];g.bindAxes();c(g,{name:b.name,state:"",visible:!1!==b.visible,selected:!0===b.selected});d(this,b);var h=b.events;if(h&&h.click||b.point&&b.point.events&&b.point.events.click||
|
|
422
|
+
b.allowPointSelect)a.runTrackerClick=!0;g.getColor();g.getSymbol();g.parallelArrays.forEach(function(a){g[a+"Data"]||(g[a+"Data"]=[])});g.isCartesian&&(a.hasCartesianSeries=!0);var k;f.length&&(k=f[f.length-1]);g._i=L(k&&k._i,-1)+1;g.opacity=g.options.opacity;a.orderSeries(this.insert(f));b.dataSorting&&b.dataSorting.enabled?g.setDataSortingOptions():g.points||g.data||g.setData(b.data,!1);G(this,"afterInit")};b.prototype.is=function(a){return A[a]&&this instanceof A[a]};b.prototype.insert=function(a){var c=
|
|
423
|
+
this.options.index,b;if(K(c)){for(b=a.length;b--;)if(c>=L(a[b].options.index,a[b]._i)){a.splice(b+1,0,this);break}-1===b&&a.unshift(this);b+=1}else a.push(this);return L(b,a.length-1)};b.prototype.bindAxes=function(){var a=this,c=a.options,b=a.chart,d;G(this,"bindAxes",null,function(){(a.axisTypes||[]).forEach(function(g){var f=0;b[g].forEach(function(b){d=b.options;if(c[g]===f&&!d.isInternal||"undefined"!==typeof c[g]&&c[g]===d.id||"undefined"===typeof c[g]&&0===d.index)a.insert(b.series),a[g]=b,
|
|
424
|
+
b.isDirty=!0;d.isInternal||f++});a[g]||a.optionalAxis===g||D(18,!0,b)})});G(this,"afterBindAxes")};b.prototype.updateParallelArrays=function(a,c){var b=a.series,d=arguments,g=K(c)?function(d){var g="y"===d&&b.toYData?b.toYData(a):a[d];b[d+"Data"][c]=g}:function(a){Array.prototype[c].apply(b[a+"Data"],Array.prototype.slice.call(d,2))};b.parallelArrays.forEach(g)};b.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&
|
|
425
|
+
this.yData&&0<this.yData.length};b.prototype.autoIncrement=function(a){var c=this.options,b=c.pointIntervalUnit,d=c.relativeXValue,g=this.chart.time,f=this.xIncrement,h;f=L(f,c.pointStart,0);this.pointInterval=h=L(this.pointInterval,c.pointInterval,1);d&&K(a)&&(h*=a);b&&(c=new g.Date(f),"day"===b?g.set("Date",c,g.get("Date",c)+h):"month"===b?g.set("Month",c,g.get("Month",c)+h):"year"===b&&g.set("FullYear",c,g.get("FullYear",c)+h),h=c.getTime()-f);if(d&&K(a))return f+h;this.xIncrement=f+h;return f};
|
|
426
|
+
b.prototype.setDataSortingOptions=function(){var a=this.options;c(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});n(a.pointRange)||(a.pointRange=1)};b.prototype.setOptions=function(a){var c=this.chart,b=c.options,d=b.plotOptions,g=c.userOptions||{};a=Y(a);c=c.styledMode;var h={plotOptions:d,userOptions:a};G(this,"setOptions",h);var k=h.plotOptions[this.type],l=g.plotOptions||{};this.userOptions=h.userOptions;g=Y(k,d.series,g.plotOptions&&g.plotOptions[this.type],a);this.tooltipOptions=
|
|
427
|
+
Y(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,b.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,a.tooltip);this.stickyTracking=L(a.stickyTracking,l[this.type]&&l[this.type].stickyTracking,l.series&&l.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:g.stickyTracking);null===k.marker&&delete g.marker;this.zoneAxis=g.zoneAxis;d=this.zones=(g.zones||[]).slice();!g.negativeColor&&!g.negativeFillColor||g.zones||
|
|
428
|
+
(b={value:g[this.zoneAxis+"Threshold"]||g.threshold||0,className:"highcharts-negative"},c||(b.color=g.negativeColor,b.fillColor=g.negativeFillColor),d.push(b));d.length&&n(d[d.length-1].value)&&d.push(c?{}:{color:this.color,fillColor:this.fillColor});G(this,"afterSetOptions",{options:g});return g};b.prototype.getName=function(){return L(this.options.name,"Series "+(this.index+1))};b.prototype.getCyclic=function(a,c,b){var d=this.chart,g=this.userOptions,f=a+"Index",h=a+"Counter",k=b?b.length:L(d.options.chart[a+
|
|
429
|
+
"Count"],d[a+"Count"]);if(!c){var l=L(g[f],g["_"+f]);n(l)||(d.series.length||(d[h]=0),g["_"+f]=l=d[h]%k,d[h]+=1);b&&(c=b[l])}"undefined"!==typeof l&&(this[f]=l);this[a]=c};b.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||f.plotOptions[this.type].color,this.chart.options.colors)};b.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]};b.prototype.getSymbol=
|
|
430
|
+
function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};b.prototype.findPointIndex=function(a,c){var b=a.id,d=a.x,g=this.points,f=this.options.dataSorting,h,k;if(b)f=this.chart.get(b),f instanceof q&&(h=f);else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)if(h=function(c){return!c.touched&&c.index===a.index},f&&f.matchByName?h=function(c){return!c.touched&&c.name===a.name}:this.options.relativeXValue&&(h=function(c){return!c.touched&&
|
|
431
|
+
c.options.x===a.x}),h=z(g,h),!h)return;if(h){var l=h&&h.index;"undefined"!==typeof l&&(k=!0)}"undefined"===typeof l&&K(d)&&(l=this.xData.indexOf(d,c));-1!==l&&"undefined"!==typeof l&&this.cropped&&(l=l>=this.cropStart?l-this.cropStart:l);!k&&K(l)&&g[l]&&g[l].touched&&(l=void 0);return l};b.prototype.updateData=function(a,c){var b=this.options,d=b.dataSorting,g=this.points,f=[],h=this.requireSorting,k=a.length===g.length,l,e,t,p=!0;this.xIncrement=null;a.forEach(function(a,c){var e=n(a)&&this.pointClass.prototype.optionsToObject.call({series:this},
|
|
432
|
+
a)||{},p=e.x;if(e.id||K(p)){if(e=this.findPointIndex(e,t),-1===e||"undefined"===typeof e?f.push(a):g[e]&&a!==b.data[e]?(g[e].update(a,!1,null,!1),g[e].touched=!0,h&&(t=e+1)):g[e]&&(g[e].touched=!0),!k||c!==e||d&&d.enabled||this.hasDerivedData)l=!0}else f.push(a)},this);if(l)for(a=g.length;a--;)(e=g[a])&&!e.touched&&e.remove&&e.remove(!1,c);else!k||d&&d.enabled?p=!1:(a.forEach(function(a,c){a!==g[c].y&&g[c].update&&g[c].update(a,!1,null,!1)}),f.length=0);g.forEach(function(a){a&&(a.touched=!1)});if(!p)return!1;
|
|
433
|
+
f.forEach(function(a){this.addPoint(a,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=I(this.xData),this.autoIncrement());return!0};b.prototype.setData=function(a,c,b,d){void 0===c&&(c=!0);var g=this,f=g.points,h=f&&f.length||0,k=g.options,l=g.chart,e=k.dataSorting,n=g.xAxis,t=k.turboThreshold,p=this.xData,r=this.yData,m=g.pointArrayMap;m=m&&m.length;var z=k.keys,G,w=0,A=1,y=null;if(!l.options.chart.allowMutatingData){k.data&&delete g.options.data;g.userOptions.data&&
|
|
434
|
+
delete g.userOptions.data;var E=Y(!0,a)}a=E||a||[];E=a.length;e&&e.enabled&&(a=this.sortData(a));l.options.chart.allowMutatingData&&!1!==d&&E&&h&&!g.cropped&&!g.hasGroupedData&&g.visible&&!g.boosted&&(G=this.updateData(a,b));if(!G){g.xIncrement=null;g.colorCounter=0;this.parallelArrays.forEach(function(a){g[a+"Data"].length=0});if(t&&E>t)if(y=g.getFirstValidPoint(a),K(y))for(b=0;b<E;b++)p[b]=this.autoIncrement(),r[b]=a[b];else if(O(y))if(m)if(y.length===m)for(b=0;b<E;b++)p[b]=this.autoIncrement(),
|
|
435
|
+
r[b]=a[b];else for(b=0;b<E;b++)d=a[b],p[b]=d[0],r[b]=d.slice(1,m+1);else if(z&&(w=z.indexOf("x"),A=z.indexOf("y"),w=0<=w?w:0,A=0<=A?A:1),1===y.length&&(A=0),w===A)for(b=0;b<E;b++)p[b]=this.autoIncrement(),r[b]=a[b][A];else for(b=0;b<E;b++)d=a[b],p[b]=d[w],r[b]=d[A];else D(12,!1,l);else for(b=0;b<E;b++)"undefined"!==typeof a[b]&&(d={series:g},g.pointClass.prototype.applyOptions.apply(d,[a[b]]),g.updateParallelArrays(d,b));r&&T(r[0])&&D(14,!0,l);g.data=[];g.options.data=g.userOptions.data=a;for(b=h;b--;)f[b]&&
|
|
436
|
+
f[b].destroy&&f[b].destroy();n&&(n.minRange=n.userMinRange);g.isDirty=l.isDirtyBox=!0;g.isDirtyData=!!f;b=!1}"point"===k.legendType&&(this.processData(),this.generatePoints());c&&l.redraw(b)};b.prototype.sortData=function(a){var c=this,b=c.options.dataSorting.sortKey||"y",d=function(a,c){return n(c)&&a.pointClass.prototype.optionsToObject.call({series:a},c)||{}};a.forEach(function(b,g){a[g]=d(c,b);a[g].index=g},this);a.concat().sort(function(a,c){a=H(b,a);c=H(b,c);return c<a?-1:c>a?1:0}).forEach(function(a,
|
|
437
|
+
c){a.x=c},this);c.linkedSeries&&c.linkedSeries.forEach(function(c){var b=c.options,g=b.data;b.dataSorting&&b.dataSorting.enabled||!g||(g.forEach(function(b,f){g[f]=d(c,b);a[f]&&(g[f].x=a[f].x,g[f].index=f)}),c.setData(g,!1))});return a};b.prototype.getProcessedData=function(a){var c=this.xAxis,b=this.options,d=b.cropThreshold,g=a||this.getExtremesFromAll||b.getExtremesFromAll,f=this.isCartesian;a=c&&c.val2lin;b=!(!c||!c.logarithmic);var h=0,k=this.xData,l=this.yData,e=this.requireSorting;var n=!1;
|
|
438
|
+
var t=k.length;if(c){n=c.getExtremes();var p=n.min;var r=n.max;n=!(!c.categories||c.names.length)}if(f&&this.sorted&&!g&&(!d||t>d||this.forceCrop))if(k[t-1]<p||k[0]>r)k=[],l=[];else if(this.yData&&(k[0]<p||k[t-1]>r)){var m=this.cropData(this.xData,this.yData,p,r);k=m.xData;l=m.yData;h=m.start;m=!0}for(d=k.length||1;--d;)if(c=b?a(k[d])-a(k[d-1]):k[d]-k[d-1],0<c&&("undefined"===typeof z||c<z))var z=c;else 0>c&&e&&!n&&(D(15,!1,this.chart),e=!1);return{xData:k,yData:l,cropped:m,cropStart:h,closestPointRange:z}};
|
|
439
|
+
b.prototype.processData=function(a){var c=this.xAxis;if(this.isCartesian&&!this.isDirty&&!c.isDirty&&!this.yAxis.isDirty&&!a)return!1;a=this.getProcessedData();this.cropped=a.cropped;this.cropStart=a.cropStart;this.processedXData=a.xData;this.processedYData=a.yData;this.closestPointRange=this.basePointRange=a.closestPointRange;G(this,"afterProcessData")};b.prototype.cropData=function(a,c,b,d,g){var f=a.length,h,k=0,l=f;g=L(g,this.cropShoulder);for(h=0;h<f;h++)if(a[h]>=b){k=Math.max(0,h-g);break}for(b=
|
|
440
|
+
h;b<f;b++)if(a[b]>d){l=b+g;break}return{xData:a.slice(k,l),yData:c.slice(k,l),start:k,end:l}};b.prototype.generatePoints=function(){var a=this.options,b=this.processedData||a.data,d=this.processedXData,g=this.processedYData,f=this.pointClass,h=d.length,k=this.cropStart||0,l=this.hasGroupedData,e=a.keys,n=[];a=a.dataGrouping&&a.dataGrouping.groupAll?k:0;var t,p,r=this.data;if(!r&&!l){var m=[];m.length=b.length;r=this.data=m}e&&l&&(this.options.keys=!1);for(p=0;p<h;p++){m=k+p;if(l){var z=(new f).init(this,
|
|
441
|
+
[d[p]].concat(J(g[p])));z.dataGroup=this.groupMap[a+p];z.dataGroup.options&&(z.options=z.dataGroup.options,c(z,z.dataGroup.options),delete z.dataLabels)}else(z=r[m])||"undefined"===typeof b[m]||(r[m]=z=(new f).init(this,b[m],d[p]));z&&(z.index=l?a+p:m,n[p]=z)}this.options.keys=e;if(r&&(h!==(t=r.length)||l))for(p=0;p<t;p++)p!==k||l||(p+=h),r[p]&&(r[p].destroyElements(),r[p].plotX=void 0);this.data=r;this.points=n;G(this,"afterGeneratePoints")};b.prototype.getXExtremes=function(a){return{min:t(a),max:I(a)}};
|
|
442
|
+
b.prototype.getExtremes=function(a,c){var b=this.xAxis,d=this.yAxis,g=this.processedXData||this.xData,f=[],h=this.requireSorting?this.cropShoulder:0;d=d?d.positiveValuesOnly:!1;var k,l=0,e=0,n=0;a=a||this.stackedYData||this.processedYData||[];var p=a.length;if(b){var r=b.getExtremes();l=r.min;e=r.max}for(k=0;k<p;k++){var m=g[k];r=a[k];var z=(K(r)||O(r))&&(r.length||0<r||!d);m=c||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!b||(g[k+h]||m)>=l&&(g[k-h]||m)<=e;if(z&&m)if(z=
|
|
443
|
+
r.length)for(;z--;)K(r[z])&&(f[n++]=r[z]);else f[n++]=r}a={activeYData:f,dataMin:t(f),dataMax:I(f)};G(this,"afterGetExtremes",{dataExtremes:a});return a};b.prototype.applyExtremes=function(){var a=this.getExtremes();this.dataMin=a.dataMin;this.dataMax=a.dataMax;return a};b.prototype.getFirstValidPoint=function(a){for(var c=a.length,b=0,d=null;null===d&&b<c;)d=a[b],b++;return d};b.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,
|
|
444
|
+
b=this.xAxis,d=b.categories,g=this.enabledDataSorting,f=this.yAxis,k=this.points,l=k.length,e=this.pointPlacementToXValue(),t=!!e,p=a.threshold,m=a.startFromThreshold?p:0,z=this.zoneAxis||"y",D,w,A=Number.MAX_VALUE;for(D=0;D<l;D++){var y=k[D],E=y.x,H=void 0,v=void 0,I=y.y,x=y.low,u=c&&f.stacking&&f.stacking.stacks[(this.negStacks&&I<(m?0:p)?"-":"")+this.stackKey];if(f.positiveValuesOnly&&!f.validatePositiveValue(I)||b.positiveValuesOnly&&!b.validatePositiveValue(E))y.isNull=!0;y.plotX=w=r(h(b.translate(E,
|
|
445
|
+
0,0,0,1,e,"flags"===this.type),-1E5,1E5));if(c&&this.visible&&u&&u[E]){var q=this.getStackIndicator(q,E,this.index);y.isNull||(H=u[E],v=H.points[q.key])}O(v)&&(x=v[0],I=v[1],x===m&&q.key===u[E].base&&(x=L(K(p)&&p,f.min)),f.positiveValuesOnly&&0>=x&&(x=null),y.total=y.stackTotal=H.total,y.percentage=H.total&&y.y/H.total*100,y.stackY=I,this.irregularWidths||H.setOffset(this.pointXOffset||0,this.barW||0));y.yBottom=n(x)?h(f.translate(x,0,1,0,1),-1E5,1E5):null;this.dataModify&&(I=this.dataModify.modifyValue(I,
|
|
446
|
+
D));y.plotY=void 0;K(I)&&(H=f.translate(I,!1,!0,!1,!0),"undefined"!==typeof H&&(y.plotY=h(H,-1E5,1E5)));y.isInside=this.isPointInside(y);y.clientX=t?r(b.translate(E,0,0,0,1,e)):w;y.negative=y[z]<(a[z+"Threshold"]||p||0);y.category=L(d&&d[y.x],y.x);if(!y.isNull&&!1!==y.visible){"undefined"!==typeof B&&(A=Math.min(A,Math.abs(w-B)));var B=w}y.zone=this.zones.length?y.getZone():void 0;!y.graphic&&this.group&&g&&(y.isNew=!0)}this.closestPointRangePx=A;G(this,"afterTranslate")};b.prototype.getValidPoints=
|
|
447
|
+
function(a,c,b){var d=this.chart;return(a||this.points||[]).filter(function(a){return c&&!d.isInsidePlot(a.plotX,a.plotY,{inverted:d.inverted})?!1:!1!==a.visible&&(b||!a.isNull)})};b.prototype.getClipBox=function(){var a=this.chart,c=this.xAxis,b=this.yAxis,d=Y(a.clipBox);c&&c.len!==a.plotSizeX&&(d.width=c.len);b&&b.len!==a.plotSizeY&&(d.height=b.len);return d};b.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)};b.prototype.setClip=
|
|
448
|
+
function(){var a=this.chart,c=this.group,b=this.markerGroup,d=a.sharedClips;a=a.renderer;var g=this.getClipBox(),f=this.getSharedClipKey(),h=d[f];h?h.animate(g):d[f]=h=a.clipRect(g);c&&c.clip(!1===this.options.clip?void 0:h);b&&b.clip()};b.prototype.animate=function(a){var c=this.chart,b=this.group,d=this.markerGroup,g=c.inverted,f=l(this.options.animation),h=[this.getSharedClipKey(),f.duration,f.easing,f.defer].join(),k=c.sharedClips[h],e=c.sharedClips[h+"m"];if(a&&b)f=this.getClipBox(),k?k.attr("height",
|
|
449
|
+
f.height):(f.width=0,g&&(f.x=c.plotHeight),k=c.renderer.clipRect(f),c.sharedClips[h]=k,e=c.renderer.clipRect({x:g?(c.plotSizeX||0)+99:-99,y:g?-c.plotLeft:-c.plotTop,width:99,height:g?c.chartWidth:c.chartHeight}),c.sharedClips[h+"m"]=e),b.clip(k),d&&d.clip(e);else if(k&&!k.hasClass("highcharts-animating")){c=this.getClipBox();var n=f.step;d&&d.element.childNodes.length&&(f.step=function(a,c){n&&n.apply(c,arguments);e&&e.element&&e.attr(c.prop,"width"===c.prop?a+99:a)});k.addClass("highcharts-animating").animate(c,
|
|
450
|
+
f)}};b.prototype.afterAnimate=function(){var a=this;this.setClip();Q(this.chart.sharedClips,function(c,b,d){c&&!a.chart.container.querySelector('[clip-path="url(#'.concat(c.id,')"]'))&&(c.destroy(),delete d[b])});this.finishedAnimating=!0;G(this,"afterAnimate")};b.prototype.drawPoints=function(a){void 0===a&&(a=this.points);var c=this.chart,b=this.options.marker,d=this[this.specialGroup]||this.markerGroup,g=this.xAxis,f=L(b.enabled,!g||g.isRadial?!0:null,this.closestPointRangePx>=b.enabledThreshold*
|
|
451
|
+
b.radius),h,k;if(!1!==b.enabled||this._hasPointMarkers)for(h=0;h<a.length;h++){var l=a[h];var e=(k=l.graphic)?"animate":"attr";var n=l.marker||{};var t=!!l.marker;if((f&&"undefined"===typeof n.enabled||n.enabled)&&!l.isNull&&!1!==l.visible){var p=L(n.symbol,this.symbol,"rect");var r=this.markerAttribs(l,l.selected&&"select");this.enabledDataSorting&&(l.startXPos=g.reversed?-(r.width||0):g.width);var m=!1!==l.isInside;k?k[m?"show":"hide"](m).animate(r):m&&(0<(r.width||0)||l.hasImage)&&(l.graphic=k=
|
|
452
|
+
c.renderer.symbol(p,r.x,r.y,r.width,r.height,t?n:b).add(d),this.enabledDataSorting&&c.hasRendered&&(k.attr({x:l.startXPos}),e="animate"));k&&"animate"===e&&k[m?"show":"hide"](m).animate(r);if(k&&!c.styledMode)k[e](this.pointAttribs(l,l.selected&&"select"));k&&k.addClass(l.getClassName(),!0)}else k&&(l.graphic=k.destroy())}};b.prototype.markerAttribs=function(a,c){var b=this.options,d=b.marker,g=a.marker||{},f=g.symbol||d.symbol,h=L(g.radius,d&&d.radius);c&&(d=d.states[c],c=g.states&&g.states[c],h=
|
|
453
|
+
L(c&&c.radius,d&&d.radius,h&&h+(d&&d.radiusPlus||0)));a.hasImage=f&&0===f.indexOf("url");a.hasImage&&(h=0);a=K(h)?{x:b.crisp?Math.floor(a.plotX-h):a.plotX-h,y:a.plotY-h}:{};h&&(a.width=a.height=2*h);return a};b.prototype.pointAttribs=function(a,c){var b=this.options.marker,d=a&&a.options,g=d&&d.marker||{},f=d&&d.color,h=a&&a.color,k=a&&a.zone&&a.zone.color,l=this.color;a=L(g.lineWidth,b.lineWidth);d=1;l=f||k||h||l;f=g.fillColor||b.fillColor||l;h=g.lineColor||b.lineColor||l;c=c||"normal";b=b.states[c]||
|
|
454
|
+
{};c=g.states&&g.states[c]||{};a=L(c.lineWidth,b.lineWidth,a+L(c.lineWidthPlus,b.lineWidthPlus,0));f=c.fillColor||b.fillColor||f;h=c.lineColor||b.lineColor||h;d=L(c.opacity,b.opacity,d);return{stroke:h,"stroke-width":a,fill:f,opacity:d}};b.prototype.destroy=function(a){var c=this,b=c.chart,d=/AppleWebKit\/533/.test(E.navigator.userAgent),f=c.data||[],h,k,l,e;G(c,"destroy",{keepEventsForUpdate:a});this.removeEvents(a);(c.axisTypes||[]).forEach(function(a){(e=c[a])&&e.series&&(g(e.series,c),e.isDirty=
|
|
455
|
+
e.forceRedraw=!0)});c.legendItem&&c.chart.legend.destroyItem(c);for(k=f.length;k--;)(l=f[k])&&l.destroy&&l.destroy();c.clips&&c.clips.forEach(function(a){return a.destroy()});m.clearTimeout(c.animationTimeout);Q(c,function(a,c){a instanceof v&&!a.survive&&(h=d&&"group"===c?"hide":"destroy",a[h]())});b.hoverSeries===c&&(b.hoverSeries=void 0);g(b.series,c);b.orderSeries();Q(c,function(b,d){a&&"hcEvents"===d||delete c[d]})};b.prototype.applyZones=function(){var a=this,c=this.chart,b=c.renderer,d=this.zones,
|
|
456
|
+
g=this.clips||[],f=this.graph,k=this.area,l=Math.max(c.plotWidth,c.plotHeight),e=this[(this.zoneAxis||"y")+"Axis"],n=c.inverted,t,p,r,m,z,y,D,w,G=!1;if(d.length&&(f||k)&&e&&"undefined"!==typeof e.min){var A=e.reversed;var E=e.horiz;f&&!this.showLine&&f.hide();k&&k.hide();var H=e.getExtremes();d.forEach(function(d,v){t=A?E?c.plotWidth:0:E?0:e.toPixels(H.min)||0;t=h(L(p,t),0,l);p=h(Math.round(e.toPixels(L(d.value,H.max),!0)||0),0,l);G&&(t=p=e.toPixels(H.max));m=Math.abs(t-p);z=Math.min(t,p);y=Math.max(t,
|
|
457
|
+
p);e.isXAxis?(r={x:n?y:z,y:0,width:m,height:l},E||(r.x=c.plotHeight-r.x)):(r={x:0,y:n?y:z,width:l,height:m},E&&(r.y=c.plotWidth-r.y));n&&b.isVML&&(r=e.isXAxis?{x:0,y:A?z:y,height:r.width,width:c.chartWidth}:{x:r.y-c.plotLeft-c.spacingBox.x,y:0,width:r.height,height:c.chartHeight});g[v]?g[v].animate(r):g[v]=b.clipRect(r);D=a["zone-area-"+v];w=a["zone-graph-"+v];f&&w&&w.clip(g[v]);k&&D&&D.clip(g[v]);G=d.value>H.max;a.resetZones&&0===p&&(p=void 0)});this.clips=g}else a.visible&&(f&&f.show(),k&&k.show())};
|
|
458
|
+
b.prototype.invertGroups=function(a){function c(){["group","markerGroup"].forEach(function(c){b[c]&&(d.renderer.isVML&&b[c].attr({width:b.yAxis.len,height:b.xAxis.len}),b[c].width=b.yAxis.len,b[c].height=b.xAxis.len,b[c].invert(b.isRadialSeries?!1:a))})}var b=this,d=b.chart;b.xAxis&&(b.eventsToUnbind.push(w(d,"resize",c)),c(),b.invertGroups=c)};b.prototype.plotGroup=function(a,c,b,d,g){var f=this[a],h=!f;b={visibility:b,zIndex:d||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===
|
|
459
|
+
this.state||(b.opacity=this.opacity);h&&(this[a]=f=this.chart.renderer.g().add(g));f.addClass("highcharts-"+c+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(n(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(f.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);f.attr(b)[h?"attr":"animate"](this.getPlotBox());return f};b.prototype.getPlotBox=function(){var a=this.chart,c=this.xAxis,b=this.yAxis;a.inverted&&(c=b,b=this.xAxis);
|
|
460
|
+
return{translateX:c?c.left:a.plotLeft,translateY:b?b.top:a.plotTop,scaleX:1,scaleY:1}};b.prototype.removeEvents=function(a){a||ba(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind.length=0)};b.prototype.render=function(){var a=this,c=a.chart,b=a.options,d=l(b.animation),g=a.visible?"inherit":"hidden",f=b.zIndex,h=a.hasRendered,k=c.seriesGroup,e=c.inverted;c=!a.finishedAnimating&&c.renderer.isSVG?d.duration:0;G(this,"render");var n=a.plotGroup("group",
|
|
461
|
+
"series",g,f,k);a.markerGroup=a.plotGroup("markerGroup","markers",g,f,k);!1!==b.clip&&a.setClip();a.animate&&c&&a.animate(!0);n.inverted=L(a.invertible,a.isCartesian)?e:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.visible&&a.drawPoints();a.drawDataLabels&&a.drawDataLabels();a.redrawPoints&&a.redrawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(e);a.animate&&c&&a.animate();h||(c&&d.defer&&(c+=d.defer),a.animationTimeout=M(function(){a.afterAnimate()},
|
|
462
|
+
c||0));a.isDirty=!1;a.hasRendered=!0;G(a,"afterRender")};b.prototype.redraw=function(){var a=this.chart,c=this.isDirty||this.isDirtyData,b=this.group,d=this.xAxis,g=this.yAxis;b&&(a.inverted&&b.attr({width:a.plotWidth,height:a.plotHeight}),b.animate({translateX:L(d&&d.left,a.plotLeft),translateY:L(g&&g.top,a.plotTop)}));this.translate();this.render();c&&delete this.kdTree};b.prototype.searchPoint=function(a,c){var b=this.xAxis,d=this.yAxis,g=this.chart.inverted;return this.searchKDTree({clientX:g?
|
|
463
|
+
b.len-a.chartY+b.pos:a.chartX-b.pos,plotY:g?d.len-a.chartX+d.pos:a.chartY-d.pos},c,a)};b.prototype.buildKDTree=function(a){function c(a,d,g){var f=a&&a.length;if(f){var h=b.kdAxisArray[d%g];a.sort(function(a,c){return a[h]-c[h]});f=Math.floor(f/2);return{point:a[f],left:c(a.slice(0,f),d+1,g),right:c(a.slice(f+1),d+1,g)}}}this.buildingKdTree=!0;var b=this,d=-1<b.options.findNearestPointBy.indexOf("y")?2:1;delete b.kdTree;M(function(){b.kdTree=c(b.getValidPoints(null,!b.directTouch),d,d);b.buildingKdTree=
|
|
464
|
+
!1},b.options.kdNow||a&&"touchstart"===a.type?0:1)};b.prototype.searchKDTree=function(a,c,b){function d(a,c,b,l){var e=c.point,t=g.kdAxisArray[b%l],p=e,r=n(a[f])&&n(e[f])?Math.pow(a[f]-e[f],2):null;var m=n(a[h])&&n(e[h])?Math.pow(a[h]-e[h],2):null;m=(r||0)+(m||0);e.dist=n(m)?Math.sqrt(m):Number.MAX_VALUE;e.distX=n(r)?Math.sqrt(r):Number.MAX_VALUE;t=a[t]-e[t];m=0>t?"left":"right";r=0>t?"right":"left";c[m]&&(m=d(a,c[m],b+1,l),p=m[k]<p[k]?m:e);c[r]&&Math.sqrt(t*t)<p[k]&&(a=d(a,c[r],b+1,l),p=a[k]<p[k]?
|
|
465
|
+
a:p);return p}var g=this,f=this.kdAxisArray[0],h=this.kdAxisArray[1],k=c?"distX":"dist";c=-1<g.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(b);if(this.kdTree)return d(a,this.kdTree,c,c)};b.prototype.pointPlacementToXValue=function(){var a=this.options,c=a.pointRange,b=this.xAxis;a=a.pointPlacement;"between"===a&&(a=b.reversed?-.5:.5);return K(a)?a*(c||b.pointRange):0};b.prototype.isPointInside=function(a){var c=this.chart,b=this.xAxis,d=this.yAxis;
|
|
466
|
+
return"undefined"!==typeof a.plotY&&"undefined"!==typeof a.plotX&&0<=a.plotY&&a.plotY<=(d?d.len:c.plotHeight)&&0<=a.plotX&&a.plotX<=(b?b.len:c.plotWidth)};b.prototype.drawTracker=function(){var a=this,c=a.options,b=c.trackByArea,d=[].concat(b?a.areaPath:a.graphPath),g=a.chart,f=g.pointer,h=g.renderer,l=g.options.tooltip.snap,e=a.tracker,n=function(c){if(g.hoverSeries!==a)a.onMouseOver()},t="rgba(192,192,192,"+(p?.0001:.002)+")";e?e.attr({d:d}):a.graph&&(a.tracker=h.path(d).attr({visibility:a.visible?
|
|
467
|
+
"inherit":"hidden",zIndex:2}).addClass(b?"highcharts-tracker-area":"highcharts-tracker-line").add(a.group),g.styledMode||a.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:t,fill:b?t:"none","stroke-width":a.graph.strokeWidth()+(b?0:2*l)}),[a.tracker,a.markerGroup,a.dataLabelsGroup].forEach(function(a){if(a&&(a.addClass("highcharts-tracker").on("mouseover",n).on("mouseout",function(a){f.onTrackerMouseOut(a)}),c.cursor&&!g.styledMode&&a.css({cursor:c.cursor}),k))a.on("touchstart",
|
|
468
|
+
n)}));G(this,"afterDrawTracker")};b.prototype.addPoint=function(a,c,b,d,g){var f=this.options,h=this.data,k=this.chart,l=this.xAxis;l=l&&l.hasNames&&l.names;var e=f.data,n=this.xData,t;c=L(c,!0);var p={series:this};this.pointClass.prototype.applyOptions.apply(p,[a]);var r=p.x;var m=n.length;if(this.requireSorting&&r<n[m-1])for(t=!0;m&&n[m-1]>r;)m--;this.updateParallelArrays(p,"splice",m,0,0);this.updateParallelArrays(p,m);l&&p.name&&(l[r]=p.name);e.splice(m,0,a);if(t||this.processedData)this.data.splice(m,
|
|
469
|
+
0,null),this.processData();"point"===f.legendType&&this.generatePoints();b&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(p,"shift"),e.shift()));!1!==g&&G(this,"addPoint",{point:p});this.isDirtyData=this.isDirty=!0;c&&k.redraw(d)};b.prototype.removePoint=function(c,b,d){var g=this,f=g.data,h=f[c],k=g.points,l=g.chart,e=function(){k&&k.length===f.length&&k.splice(c,1);f.splice(c,1);g.options.data.splice(c,1);g.updateParallelArrays(h||{series:g},"splice",c,1);h&&h.destroy();
|
|
470
|
+
g.isDirty=!0;g.isDirtyData=!0;b&&l.redraw()};a(d,l);b=L(b,!0);h?h.firePointEvent("remove",null,e):e()};b.prototype.remove=function(a,c,b,d){function g(){f.destroy(d);h.isDirtyLegend=h.isDirtyBox=!0;h.linkSeries();L(a,!0)&&h.redraw(c)}var f=this,h=f.chart;!1!==b?G(f,"remove",null,g):g()};b.prototype.update=function(a,b){a=y(a,this.userOptions);G(this,"update",{options:a});var d=this,g=d.chart,f=d.userOptions,h=d.initialType||d.type,k=g.options.plotOptions,l=A[h].prototype,e=d.finishedAnimating&&{animation:!1},
|
|
471
|
+
n={},t=["eventOptions","navigatorSeries","baseSeries"],p=a.type||f.type||g.options.chart.type,r=!(this.hasDerivedData||p&&p!==this.type||"undefined"!==typeof a.pointStart||"undefined"!==typeof a.pointInterval||"undefined"!==typeof a.relativeXValue||a.joinBy||a.mapData||d.hasOptionChanged("dataGrouping")||d.hasOptionChanged("pointStart")||d.hasOptionChanged("pointInterval")||d.hasOptionChanged("pointIntervalUnit")||d.hasOptionChanged("keys"));p=p||h;r&&(t.push("data","isDirtyData","points","processedData",
|
|
472
|
+
"processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==a.visible&&t.push("area","graph"),d.parallelArrays.forEach(function(a){t.push(a+"Data")}),a.data&&(a.dataSorting&&c(d.options.dataSorting,a.dataSorting),this.setData(a.data,!1)));a=Y(f,e,{index:"undefined"===typeof f.index?d.index:f.index,pointStart:L(k&&k.series&&k.series.pointStart,f.pointStart,d.xData[0])},!r&&{data:d.options.data},
|
|
473
|
+
a);r&&a.data&&(a.data=d.options.data);t=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(t);t.forEach(function(a){t[a]=d[a];delete d[a]});k=!1;if(A[p]){if(k=p!==d.type,d.remove(!1,!1,!1,!0),k)if(Object.setPrototypeOf)Object.setPrototypeOf(d,A[p].prototype);else{e=Object.hasOwnProperty.call(d,"hcEvents")&&d.hcEvents;for(m in l)d[m]=void 0;c(d,A[p].prototype);e?d.hcEvents=e:delete d.hcEvents}}else D(17,!0,g,{missingModuleFor:p});t.forEach(function(a){d[a]=t[a]});d.init(g,
|
|
474
|
+
a);if(r&&this.points){a=d.options;if(!1===a.visible)n.graphic=1,n.dataLabel=1;else if(!d._hasPointLabels){l=a.marker;var m=a.dataLabels;!l||!1!==l.enabled&&(f.marker&&f.marker.symbol)===l.symbol||(n.graphic=1);m&&!1===m.enabled&&(n.dataLabel=1)}f=0;for(l=this.points;f<l.length;f++)(m=l[f])&&m.series&&(m.resolveColor(),Object.keys(n).length&&m.destroyElements(n),!1===a.showInLegend&&m.legendItem&&g.legend.destroyItem(m))}d.initialType=h;g.linkSeries();k&&d.linkedSeries.length&&(d.isDirtyData=!0);G(this,
|
|
475
|
+
"afterUpdate");L(b,!0)&&g.redraw(r?void 0:!1)};b.prototype.setName=function(a){this.name=this.options.name=this.userOptions.name=a;this.chart.isDirtyLegend=!0};b.prototype.hasOptionChanged=function(a){var c=this.options[a],b=this.chart.options.plotOptions,d=this.userOptions[a];return d?c!==d:c!==L(b&&b[this.type]&&b[this.type][a],b&&b.series&&b.series[a],c)};b.prototype.onMouseOver=function(){var a=this.chart,c=a.hoverSeries;a.pointer.setHoverChartIndex();if(c&&c!==this)c.onMouseOut();this.options.events.mouseOver&&
|
|
476
|
+
G(this,"mouseOver");this.setState("hover");a.hoverSeries=this};b.prototype.onMouseOut=function(){var a=this.options,c=this.chart,b=c.tooltip,d=c.hoverPoint;c.hoverSeries=null;if(d)d.onMouseOut();this&&a.events.mouseOut&&G(this,"mouseOut");!b||this.stickyTracking||b.shared&&!this.noSharedTooltip||b.hide();c.series.forEach(function(a){a.setState("",!0)})};b.prototype.setState=function(a,c){var b=this,d=b.options,g=b.graph,f=d.inactiveOtherPoints,h=d.states,k=L(h[a||"normal"]&&h[a||"normal"].animation,
|
|
477
|
+
b.chart.options.chart.animation),l=d.lineWidth,e=0,n=d.opacity;a=a||"";if(b.state!==a&&([b.group,b.markerGroup,b.dataLabelsGroup].forEach(function(c){c&&(b.state&&c.removeClass("highcharts-series-"+b.state),a&&c.addClass("highcharts-series-"+a))}),b.state=a,!b.chart.styledMode)){if(h[a]&&!1===h[a].enabled)return;a&&(l=h[a].lineWidth||l+(h[a].lineWidthPlus||0),n=L(h[a].opacity,n));if(g&&!g.dashstyle)for(d={"stroke-width":l},g.animate(d,k);b["zone-graph-"+e];)b["zone-graph-"+e].animate(d,k),e+=1;f||
|
|
478
|
+
[b.group,b.markerGroup,b.dataLabelsGroup,b.labelBySeries].forEach(function(a){a&&a.animate({opacity:n},k)})}c&&f&&b.points&&b.setAllPointsToState(a||void 0)};b.prototype.setAllPointsToState=function(a){this.points.forEach(function(c){c.setState&&c.setState(a)})};b.prototype.setVisible=function(a,c){var b=this,d=b.chart,g=d.options.chart.ignoreHiddenSeries,f=b.visible,h=(b.visible=a=b.options.visible=b.userOptions.visible="undefined"===typeof a?!f:a)?"show":"hide";["group","dataLabelsGroup","markerGroup",
|
|
479
|
+
"tracker","tt"].forEach(function(a){if(b[a])b[a][h]()});if(d.hoverSeries===b||(d.hoverPoint&&d.hoverPoint.series)===b)b.onMouseOut();b.legendItem&&d.legend.colorizeItem(b,a);b.isDirty=!0;b.options.stacking&&d.series.forEach(function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});b.linkedSeries.forEach(function(c){c.setVisible(a,!1)});g&&(d.isDirtyBox=!0);G(b,h);!1!==c&&d.redraw()};b.prototype.show=function(){this.setVisible(!0)};b.prototype.hide=function(){this.setVisible(!1)};b.prototype.select=
|
|
480
|
+
function(a){this.selected=a=this.options.selected="undefined"===typeof a?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);G(this,a?"select":"unselect")};b.prototype.shouldShowTooltip=function(a,c,b){void 0===b&&(b={});b.series=this;b.visiblePlotOnly=!0;return this.chart.isInsidePlot(a,c,b)};b.defaultOptions=F;b.types=x.seriesTypes;b.registerType=x.registerSeriesType;return b}();c(b.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:B.drawLineMarker,
|
|
481
|
+
isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:q,requireSorting:!0,sorted:!0});x.series=b;"";"";return b});J(e,"Extensions/ScrollablePlotArea.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/Chart/Chart.js"],e["Core/Series/Series.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Utilities.js"]],function(b,e,u,C,B,q){var K=b.stop,x=q.addEvent,v=q.createElement,m=q.defined,l=q.merge,a=q.pick;x(u,"afterSetChartSize",function(a){var b=
|
|
482
|
+
this.options.chart.scrollablePlotArea,f=b&&b.minWidth;b=b&&b.minHeight;if(!this.renderer.forExport){if(f){if(this.scrollablePixelsX=f=Math.max(0,f-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=l(this.plotBox);this.plotBox.width=this.plotWidth+=f;this.inverted?this.clipBox.height+=f:this.clipBox.width+=f;var p={1:{name:"right",value:f}}}}else b&&(this.scrollablePixelsY=f=Math.max(0,b-this.chartHeight),m(f)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=l(this.plotBox),
|
|
483
|
+
this.plotBox.height=this.plotHeight+=f,this.inverted?this.clipBox.width+=f:this.clipBox.height+=f,p={2:{name:"bottom",value:f}}));p&&!a.skipAxes&&this.axes.forEach(function(a){p[a.side]?a.getPlotLinePath=function(){var b=p[a.side].name,d=this[b];this[b]=d-p[a.side].value;var f=e.prototype.getPlotLinePath.apply(this,arguments);this[b]=d;return f}:(a.setAxisSize(),a.setAxisTranslation())})}});x(u,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),
|
|
484
|
+
this.applyFixed()):this.fixedDiv&&this.applyFixed()});u.prototype.setUpScrolling=function(){var a=this,b={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(b.overflowX="auto");this.scrollablePixelsY&&(b.overflowY="auto");this.scrollingParent=v("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=v("div",{className:"highcharts-scrolling"},b,this.scrollingParent);x(this.scrollingContainer,"scroll",
|
|
485
|
+
function(){a.pointer&&delete a.pointer.chartPosition});this.innerContainer=v("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};u.prototype.moveFixedElements=function(){var a=this.container,b=this.fixedRenderer,k=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),
|
|
486
|
+
l;this.scrollablePixelsX&&!this.inverted?l=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?l=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?l=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(l=".highcharts-yaxis");l&&k.push(""+l+":not(.highcharts-radial-axis)",""+l+"-labels:not(.highcharts-radial-axis-labels)");k.forEach(function(d){[].forEach.call(a.querySelectorAll(d),function(a){(a.namespaceURI===b.SVG_NS?b.box:b.box.parentNode).appendChild(a);a.style.pointerEvents=
|
|
487
|
+
"auto"})})};u.prototype.applyFixed=function(){var b=!this.fixedDiv,d=this.options.chart,k=d.scrollablePlotArea,l=B.getRendererType();b?(this.fixedDiv=v("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(d.style&&d.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=d=new l(this.fixedDiv,this.chartWidth,
|
|
488
|
+
this.chartHeight,this.options.chart.style),this.scrollableMask=d.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":a(k.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),x(this,"afterShowResetZoom",this.moveFixedElements),x(this,"afterApplyDrilldown",this.moveFixedElements),x(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||b)this.scrollableDirty=!1,this.moveFixedElements();
|
|
489
|
+
d=this.chartWidth+(this.scrollablePixelsX||0);l=this.chartHeight+(this.scrollablePixelsY||0);K(this.container);this.container.style.width=d+"px";this.container.style.height=l+"px";this.renderer.boxWrapper.attr({width:d,height:l,viewBox:[0,0,d,l].join(" ")});this.chartBackground.attr({width:d,height:l});this.scrollingContainer.style.height=this.chartHeight+"px";b&&(k.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*k.scrollPositionX),k.scrollPositionY&&(this.scrollingContainer.scrollTop=
|
|
490
|
+
this.scrollablePixelsY*k.scrollPositionY));l=this.axisOffset;b=this.plotTop-l[0]-1;k=this.plotLeft-l[3]-1;d=this.plotTop+this.plotHeight+l[2]+1;l=this.plotLeft+this.plotWidth+l[1]+1;var e=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),m=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);b=this.scrollablePixelsX?[["M",0,b],["L",this.plotLeft-1,b],["L",this.plotLeft-1,d],["L",0,d],["Z"],["M",e,b],["L",this.chartWidth,b],["L",this.chartWidth,d],["L",e,d],["Z"]]:this.scrollablePixelsY?
|
|
491
|
+
[["M",k,0],["L",k,this.plotTop-1],["L",l,this.plotTop-1],["L",l,0],["Z"],["M",k,m],["L",k,this.chartHeight],["L",l,this.chartHeight],["L",l,m],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:b})};x(e,"afterInit",function(){this.chart.scrollableDirty=!0});x(C,"show",function(){this.chart.scrollableDirty=!0});""});J(e,"Core/Axis/Stacking/StackItem.js",[e["Core/FormatUtilities.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,u){var K=b.format,
|
|
492
|
+
B=e.series,q=u.defined,F=u.destroyObjectProperties,x=u.isNumber,v=u.pick;b=function(){function b(b,a,f,d,k){var l=b.chart.inverted;this.axis=b;this.isNegative=f;this.options=a=a||{};this.x=d;this.cumulative=this.total=null;this.points={};this.hasValidPoints=!1;this.stack=k;this.rightCliff=this.leftCliff=0;this.alignOptions={align:a.align||(l?f?"left":"right":"center"),verticalAlign:a.verticalAlign||(l?"middle":f?"bottom":"top"),y:a.y,x:a.x};this.textAlign=a.textAlign||(l?f?"right":"left":"center")}
|
|
493
|
+
b.prototype.destroy=function(){F(this,this.axis)};b.prototype.render=function(b){var a=this.axis.chart,f=this.options,d=f.format;d=d?K(d,this,a):f.formatter.call(this);this.label?this.label.attr({text:d,visibility:"hidden"}):(this.label=a.renderer.label(d,null,null,f.shape,null,null,f.useHTML,!1,"stack-labels"),d={r:f.borderRadius||0,text:d,rotation:f.rotation,padding:v(f.padding,5),visibility:"hidden"},a.styledMode||(d.fill=f.backgroundColor,d.stroke=f.borderColor,d["stroke-width"]=f.borderWidth,
|
|
494
|
+
this.label.css(f.style)),this.label.attr(d),this.label.added||this.label.add(b));this.label.labelrank=a.plotSizeY};b.prototype.setOffset=function(b,a,f,d,k){var l=this.axis,e=l.chart;d=l.translate(l.stacking.usePercentage?100:d?d:this.total,0,0,0,1);f=l.translate(f?f:0);b=v(k,e.xAxis[0].translate(this.x))+b;l=q(d)&&this.getStackBox(e,this,b,d,a,Math.abs(d-f),l);a=this.label;f=this.isNegative;var m=this.textAlign;a&&l&&(b=a.getBBox(),k=a.padding,d="justify"===v(this.options.overflow,"justify"),m="left"===
|
|
495
|
+
m?e.inverted?-k:k:"right"===m?b.width:e.inverted&&"center"===m?b.width/2:e.inverted?f?b.width+k:-k:b.width/2,f=e.inverted?b.height/2:f?-k:b.height,this.alignOptions.x=v(this.options.x,0),this.alignOptions.y=v(this.options.y,0),l.x-=m,l.y-=f,a.align(this.alignOptions,null,l),e.isInsidePlot(a.alignAttr.x+m-this.alignOptions.x,a.alignAttr.y+f-this.alignOptions.y)?a.show():(a.hide(),d=!1),d&&B.prototype.justifyDataLabel.call(this.axis,a,this.alignOptions,a.alignAttr,b,l),a.attr({x:a.alignAttr.x,y:a.alignAttr.y}),
|
|
496
|
+
v(!d&&this.options.crop,!0)&&((e=x(a.x)&&x(a.y)&&e.isInsidePlot(a.x-k+a.width,a.y)&&e.isInsidePlot(a.x+k,a.y))||a.hide()))};b.prototype.getStackBox=function(b,a,f,d,k,e,m){var l=a.axis.reversed,p=b.inverted,E=m.height+m.pos-(p?b.plotLeft:b.plotTop);a=a.isNegative&&!l||!a.isNegative&&l;return{x:p?a?d-m.right:d-e+m.pos-b.plotLeft:f+b.xAxis[0].transB-b.plotLeft,y:p?m.height-f-k:a?E-d-e:E-d,width:p?e:k,height:p?k:e}};return b}();"";return b});J(e,"Core/Axis/Stacking/StackingAxis.js",[e["Core/Animation/AnimationUtilities.js"],
|
|
497
|
+
e["Core/Axis/Axis.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Axis/Stacking/StackItem.js"],e["Core/Utilities.js"]],function(b,e,u,C,B){function q(){var a=this,c=a.inverted;a.yAxis.forEach(function(a){a.stacking&&a.stacking.stacks&&a.hasVisibleSeries&&(a.stacking.oldStacks=a.stacking.stacks)});a.series.forEach(function(b){var d=b.xAxis&&b.xAxis.options||{};!b.options.stacking||!0!==b.visible&&!1!==a.options.chart.ignoreHiddenSeries||(b.stackKey=[b.type,r(b.options.stack,""),c?d.top:d.left,c?d.height:
|
|
498
|
+
d.width].join())})}function K(){var a=this.stacking;if(a){var c=a.stacks;y(c,function(a,b){w(a);c[b]=null});a&&a.stackTotalGroup&&a.stackTotalGroup.destroy()}}function x(){this.stacking||(this.stacking=new n(this))}function v(a,c,b,d){!A(a)||a.x!==c||d&&a.stackKey!==d?a={x:c,index:0,key:d,stackKey:d}:a.index++;a.key=[b,c,a.index].join();return a}function m(){var a=this,c=a.stackKey,b=a.yAxis.stacking.stacks,d=a.processedXData,g=a[a.options.stacking+"Stacker"],f;g&&[c,"-"+c].forEach(function(c){for(var h=
|
|
499
|
+
d.length,k,l;h--;)k=d[h],f=a.getStackIndicator(f,k,a.index,c),(l=(k=b[c]&&b[c][k])&&k.points[f.key])&&g.call(a,l,k,h)})}function l(a,c,b){c=c.total?100/c.total:0;a[0]=E(a[0]*c);a[1]=E(a[1]*c);this.stackedYData[b]=a[1]}function a(){var a=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?k.setStackedPoints.call(this,"group"):a&&y(a.stacks,function(c,b){"group"===b.slice(-5)&&(y(c,function(a){return a.destroy()}),
|
|
500
|
+
delete a.stacks[b])})}function f(a){var c=a||this.options.stacking;if(c&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var b=this.processedXData,d=this.processedYData,g=[],f=d.length,h=this.options,k=h.threshold,l=r(h.startFromThreshold&&k,0);h=h.stack;a=a?""+this.type+",".concat(c):this.stackKey;var e="-"+a,n=this.negStacks,p=this.yAxis,m=p.stacking.stacks,y=p.stacking.oldStacks,w,D;p.stacking.stacksTouched+=1;for(D=0;D<f;D++){var v=b[D];var I=d[D];var x=this.getStackIndicator(x,
|
|
501
|
+
v,this.index);var u=x.key;var q=(w=n&&I<(l?0:k))?e:a;m[q]||(m[q]={});m[q][v]||(y[q]&&y[q][v]?(m[q][v]=y[q][v],m[q][v].total=null):m[q][v]=new C(p,p.options.stackLabels,!!w,v,h));q=m[q][v];null!==I?(q.points[u]=q.points[this.index]=[r(q.cumulative,l)],A(q.cumulative)||(q.base=u),q.touched=p.stacking.stacksTouched,0<x.index&&!1===this.singleStacks&&(q.points[u][0]=q.points[this.index+","+v+",0"][0])):q.points[u]=q.points[this.index]=null;"percent"===c?(w=w?a:e,n&&m[w]&&m[w][v]?(w=m[w][v],q.total=w.total=
|
|
502
|
+
Math.max(w.total,q.total)+Math.abs(I)||0):q.total=E(q.total+(Math.abs(I)||0))):"group"===c?(t(I)&&(I=I[0]),null!==I&&(q.total=(q.total||0)+1)):q.total=E(q.total+(I||0));q.cumulative="group"===c?(q.total||1)-1:r(q.cumulative,l)+(I||0);null!==I&&(q.points[u].push(q.cumulative),g[D]=q.cumulative,q.hasValidPoints=!0)}"percent"===c&&(p.stacking.usePercentage=!0);"group"!==c&&(this.stackedYData=g);p.stacking.oldStacks={}}}var d=b.getDeferredAnimation,k=u.series.prototype,p=B.addEvent,E=B.correctFloat,A=
|
|
503
|
+
B.defined,w=B.destroyObjectProperties,I=B.fireEvent,t=B.isArray,h=B.isNumber,y=B.objectEach,r=B.pick,n=function(){function a(a){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=a}a.prototype.buildStacks=function(){var a=this.axis,b=a.series,d=a.options.reversedStacks,g=b.length,f;if(!a.isXAxis){this.usePercentage=!1;for(f=g;f--;){var h=b[d?f:g-f-1];h.setStackedPoints();h.setGroupedPoints()}for(f=0;f<g;f++)b[f].modifyStacks();I(a,"afterBuildStacks")}};a.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var a=
|
|
504
|
+
this.stacks=this.oldStacks;y(a,function(a){y(a,function(a){a.cumulative=a.total})})}};a.prototype.resetStacks=function(){var a=this,b=a.stacks;a.axis.isXAxis||y(b,function(c){y(c,function(b,d){h(b.touched)&&b.touched<a.stacksTouched?(b.destroy(),delete c[d]):(b.total=null,b.cumulative=null)})})};a.prototype.renderStackTotals=function(){var a=this.axis,b=a.chart,g=b.renderer,f=this.stacks;a=d(b,a.options.stackLabels&&a.options.stackLabels.animation||!1);var h=this.stackTotalGroup=this.stackTotalGroup||
|
|
505
|
+
g.g("stack-labels").attr({zIndex:6,opacity:0}).add();h.translate(b.plotLeft,b.plotTop);y(f,function(a){y(a,function(a){a.render(h)})});h.animate({opacity:1},a)};return a}(),g;(function(b){var c=[];b.compose=function(b,d,g){-1===c.indexOf(b)&&(c.push(b),p(b,"init",x),p(b,"destroy",K));-1===c.indexOf(d)&&(c.push(d),d.prototype.getStacks=q);-1===c.indexOf(g)&&(c.push(g),b=g.prototype,b.getStackIndicator=v,b.modifyStacks=m,b.percentStacker=l,b.setGroupedPoints=a,b.setStackedPoints=f)}})(g||(g={}));return g});
|
|
506
|
+
J(e,"Series/Line/LineSeries.js",[e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,u){var K=this&&this.__extends||function(){var b=function(e,v){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,l){b.__proto__=l}||function(b,l){for(var a in l)l.hasOwnProperty(a)&&(b[a]=l[a])};return b(e,v)};return function(e,v){function m(){this.constructor=e}b(e,v);e.prototype=null===v?Object.create(v):(m.prototype=v.prototype,new m)}}(),B=u.defined,
|
|
507
|
+
q=u.merge;u=function(e){function x(){var b=null!==e&&e.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}K(x,e);x.prototype.drawGraph=function(){var b=this,e=this.options,l=(this.gappedPath||this.getGraphPath).call(this),a=this.chart.styledMode,f=[["graph","highcharts-graph"]];a||f[0].push(e.lineColor||this.color||"#cccccc",e.dashStyle);f=b.getZonesGraphs(f);f.forEach(function(d,f){var k=d[0],m=b[k],A=m?"animate":"attr";m?(m.endX=b.preventGraphAnimation?null:l.xMap,
|
|
508
|
+
m.animate({d:l})):l.length&&(b[k]=m=b.chart.renderer.path(l).addClass(d[1]).attr({zIndex:1}).add(b.group));m&&!a&&(k={stroke:d[2],"stroke-width":e.lineWidth,fill:b.fillGraph&&b.color||"none"},d[3]?k.dashstyle=d[3]:"square"!==e.linecap&&(k["stroke-linecap"]=k["stroke-linejoin"]="round"),m[A](k).shadow(2>f&&e.shadow));m&&(m.startX=l.xMap,m.isArea=l.isArea)})};x.prototype.getGraphPath=function(b,e,l){var a=this,f=a.options,d=[],k=[],p,m=f.step;b=b||a.points;var A=b.reversed;A&&b.reverse();(m={right:1,
|
|
509
|
+
center:2}[m]||m&&3)&&A&&(m=4-m);b=this.getValidPoints(b,!1,!(f.connectNulls&&!e&&!l));b.forEach(function(w,A){var t=w.plotX,h=w.plotY,y=b[A-1];(w.leftCliff||y&&y.rightCliff)&&!l&&(p=!0);w.isNull&&!B(e)&&0<A?p=!f.connectNulls:w.isNull&&!e?p=!0:(0===A||p?A=[["M",w.plotX,w.plotY]]:a.getPointSpline?A=[a.getPointSpline(b,w,A)]:m?(A=1===m?[["L",y.plotX,h]]:2===m?[["L",(y.plotX+t)/2,y.plotY],["L",(y.plotX+t)/2,h]]:[["L",t,y.plotY]],A.push(["L",t,h])):A=[["L",t,h]],k.push(w.x),m&&(k.push(w.x),2===m&&k.push(w.x)),
|
|
510
|
+
d.push.apply(d,A),p=!1)});d.xMap=k;return a.graphPath=d};x.prototype.getZonesGraphs=function(b){this.zones.forEach(function(e,l){l=["zone-graph-"+l,"highcharts-graph highcharts-zone-graph-"+l+" "+(e.className||"")];this.chart.styledMode||l.push(e.color||this.color,e.dashStyle||this.options.dashStyle);b.push(l)},this);return b};x.defaultOptions=q(b.defaultOptions,{});return x}(b);e.registerSeriesType("line",u);"";return u});J(e,"Series/Area/AreaSeries.js",[e["Core/Color/Color.js"],e["Core/Legend/LegendSymbol.js"],
|
|
511
|
+
e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,u,C){var B=this&&this.__extends||function(){var b=function(a,f){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,f)};return function(a,f){function d(){this.constructor=a}b(a,f);a.prototype=null===f?Object.create(f):(d.prototype=f.prototype,new d)}}(),q=b.parse,K=u.seriesTypes.line;b=C.extend;var x=C.merge,v=C.objectEach,
|
|
512
|
+
m=C.pick;C=function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}B(a,b);a.prototype.drawGraph=function(){this.areaPath=[];b.prototype.drawGraph.apply(this);var a=this,d=this.areaPath,k=this.options,l=[["area","highcharts-area",this.color,k.fillColor]];this.zones.forEach(function(b,d){l.push(["zone-area-"+d,"highcharts-area highcharts-zone-area-"+d+" "+b.className,b.color||a.color,b.fillColor||k.fillColor])});l.forEach(function(b){var f=
|
|
513
|
+
b[0],l={},e=a[f],t=e?"animate":"attr";e?(e.endX=a.preventGraphAnimation?null:d.xMap,e.animate({d:d})):(l.zIndex=0,e=a[f]=a.chart.renderer.path(d).addClass(b[1]).add(a.group),e.isArea=!0);a.chart.styledMode||(l.fill=m(b[3],q(b[2]).setOpacity(m(k.fillOpacity,.75)).get()));e[t](l);e.startX=d.xMap;e.shiftUnit=k.step?2:1})};a.prototype.getGraphPath=function(a){var b=K.prototype.getGraphPath,f=this.options,l=f.stacking,e=this.yAxis,A=[],w=[],v=this.index,t=e.stacking.stacks[this.stackKey],h=f.threshold,
|
|
514
|
+
y=Math.round(e.getThreshold(f.threshold));f=m(f.connectNulls,"percent"===l);var r=function(b,d,g){var f=a[b];b=l&&t[f.x].points[v];var k=f[g+"Null"]||0;g=f[g+"Cliff"]||0;f=!0;if(g||k){var n=(k?b[0]:b[1])+g;var r=b[0]+g;f=!!k}else!l&&a[d]&&a[d].isNull&&(n=r=h);"undefined"!==typeof n&&(w.push({plotX:c,plotY:null===n?y:e.getThreshold(n),isNull:f,isCliff:!0}),A.push({plotX:c,plotY:null===r?y:e.getThreshold(r),doCurve:!1}))};a=a||this.points;l&&(a=this.getStackPoints(a));for(var n=0,g=a.length;n<g;++n){l||
|
|
515
|
+
(a[n].leftCliff=a[n].rightCliff=a[n].leftNull=a[n].rightNull=void 0);var D=a[n].isNull;var c=m(a[n].rectPlotX,a[n].plotX);var z=l?m(a[n].yBottom,y):y;if(!D||f)f||r(n,n-1,"left"),D&&!l&&f||(w.push(a[n]),A.push({x:n,plotX:c,plotY:z})),f||r(n,n+1,"right")}r=b.call(this,w,!0,!0);A.reversed=!0;D=b.call(this,A,!0,!0);(z=D[0])&&"M"===z[0]&&(D[0]=["L",z[1],z[2]]);D=r.concat(D);D.length&&D.push(["Z"]);b=b.call(this,w,!1,f);D.xMap=r.xMap;this.areaPath=D;return b};a.prototype.getStackPoints=function(a){var b=
|
|
516
|
+
this,f=[],l=[],e=this.xAxis,A=this.yAxis,w=A.stacking.stacks[this.stackKey],I={},t=A.series,h=t.length,y=A.options.reversedStacks?1:-1,r=t.indexOf(b);a=a||this.points;if(this.options.stacking){for(var n=0;n<a.length;n++)a[n].leftNull=a[n].rightNull=void 0,I[a[n].x]=a[n];v(w,function(a,c){null!==a.total&&l.push(c)});l.sort(function(a,c){return a-c});var g=t.map(function(a){return a.visible});l.forEach(function(a,c){var d=0,k,n;if(I[a]&&!I[a].isNull)f.push(I[a]),[-1,1].forEach(function(d){var f=1===
|
|
517
|
+
d?"rightNull":"leftNull",e=w[l[c+d]],m=0;if(e)for(var p=r;0<=p&&p<h;){var z=t[p].index;k=e.points[z];k||(z===b.index?I[a][f]=!0:g[p]&&(n=w[a].points[z])&&(m-=n[1]-n[0]));p+=y}I[a][1===d?"rightCliff":"leftCliff"]=m});else{for(var p=r;0<=p&&p<h;){if(k=w[a].points[t[p].index]){d=k[1];break}p+=y}d=m(d,0);d=A.translate(d,0,1,0,1);f.push({isNull:!0,plotX:e.translate(a,0,0,0,1),x:a,plotY:d,yBottom:d})}})}return f};a.defaultOptions=x(K.defaultOptions,{threshold:0});return a}(K);b(C.prototype,{singleStacks:!1,
|
|
518
|
+
drawLegendSymbol:e.drawRectangle});u.registerSeriesType("area",C);"";return C});J(e,"Series/Spline/SplineSeries.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e){var u=this&&this.__extends||function(){var b=function(e,v){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,l){b.__proto__=l}||function(b,l){for(var a in l)l.hasOwnProperty(a)&&(b[a]=l[a])};return b(e,v)};return function(e,v){function m(){this.constructor=e}b(e,v);e.prototype=null===v?Object.create(v):
|
|
519
|
+
(m.prototype=v.prototype,new m)}}(),K=b.seriesTypes.line,B=e.merge,q=e.pick;e=function(b){function e(){var e=null!==b&&b.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}u(e,b);e.prototype.getPointSpline=function(b,e,l){var a=e.plotX||0,f=e.plotY||0,d=b[l-1];l=b[l+1];if(d&&!d.isNull&&!1!==d.doCurve&&!e.isCliff&&l&&!l.isNull&&!1!==l.doCurve&&!e.isCliff){b=d.plotY||0;var k=l.plotX||0;l=l.plotY||0;var p=0;var m=(1.5*a+(d.plotX||0))/2.5;var A=(1.5*f+b)/2.5;k=(1.5*a+
|
|
520
|
+
k)/2.5;var w=(1.5*f+l)/2.5;k!==m&&(p=(w-A)*(k-a)/(k-m)+f-w);A+=p;w+=p;A>b&&A>f?(A=Math.max(b,f),w=2*f-A):A<b&&A<f&&(A=Math.min(b,f),w=2*f-A);w>l&&w>f?(w=Math.max(l,f),A=2*f-w):w<l&&w<f&&(w=Math.min(l,f),A=2*f-w);e.rightContX=k;e.rightContY=w}e=["C",q(d.rightContX,d.plotX,0),q(d.rightContY,d.plotY,0),q(m,a,0),q(A,f,0),a,f];d.rightContX=d.rightContY=void 0;return e};e.defaultOptions=B(K.defaultOptions);return e}(K);b.registerSeriesType("spline",e);"";return e});J(e,"Series/AreaSpline/AreaSplineSeries.js",
|
|
521
|
+
[e["Series/Spline/SplineSeries.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,u,C){var B=this&&this.__extends||function(){var b=function(l,a){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(l,a)};return function(l,a){function f(){this.constructor=l}b(l,a);l.prototype=null===a?Object.create(a):(f.prototype=a.prototype,new f)}}(),
|
|
522
|
+
q=u.seriesTypes,K=q.area;q=q.area.prototype;var x=C.extend,v=C.merge;C=function(e){function l(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}B(l,e);l.defaultOptions=v(b.defaultOptions,K.defaultOptions);return l}(b);x(C.prototype,{getGraphPath:q.getGraphPath,getStackPoints:q.getStackPoints,drawGraph:q.drawGraph,drawLegendSymbol:e.drawRectangle});u.registerSeriesType("areaspline",C);"";return C});J(e,"Series/Column/ColumnSeriesDefaults.js",[],
|
|
523
|
+
function(){"";return{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}});J(e,"Series/Column/ColumnSeries.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Color/Color.js"],e["Series/Column/ColumnSeriesDefaults.js"],
|
|
524
|
+
e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,u,C,B,q,F,x){var v=this&&this.__extends||function(){var a=function(b,d){a=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 a(b,d)};return function(b,d){function g(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(g.prototype=
|
|
525
|
+
d.prototype,new g)}}(),m=b.animObject,l=e.parse,a=C.hasTouch;b=C.noop;var f=x.clamp,d=x.css,k=x.defined,p=x.extend,E=x.fireEvent,A=x.isArray,w=x.isNumber,I=x.merge,t=x.pick,h=x.objectEach;x=function(b){function e(){var a=null!==b&&b.apply(this,arguments)||this;a.borderWidth=void 0;a.data=void 0;a.group=void 0;a.options=void 0;a.points=void 0;return a}v(e,b);e.prototype.animate=function(a){var b=this,d=this.yAxis,c=b.options,h=this.chart.inverted,k={},e=h?"translateX":"translateY";if(a)k.scaleY=.001,
|
|
526
|
+
a=f(d.toPixels(c.threshold),d.pos,d.pos+d.len),h?k.translateX=a-d.len:k.translateY=a,b.clipBox&&b.setClip(),b.group.attr(k);else{var l=Number(b.group.attr(e));b.group.animate({scaleY:1},p(m(b.options.animation),{step:function(a,c){b.group&&(k[e]=l+c.pos*(d.pos-l),b.group.attr(k))}}))}};e.prototype.init=function(a,d){b.prototype.init.apply(this,arguments);var g=this;a=g.chart;a.hasRendered&&a.series.forEach(function(a){a.type===g.type&&(a.isDirty=!0)})};e.prototype.getColumnMetrics=function(){var a=
|
|
527
|
+
this,b=a.options,d=a.xAxis,c=a.yAxis,f=d.options.reversedStacks;f=d.reversed&&!f||!d.reversed&&f;var h={},k,e=0;!1===b.grouping?e=1:a.chart.series.forEach(function(b){var d=b.yAxis,g=b.options;if(b.type===a.type&&(b.visible||!a.chart.options.chart.ignoreHiddenSeries)&&c.len===d.len&&c.pos===d.pos){if(g.stacking&&"group"!==g.stacking){k=b.stackKey;"undefined"===typeof h[k]&&(h[k]=e++);var f=h[k]}else!1!==g.grouping&&(f=e++);b.columnIndex=f}});var l=Math.min(Math.abs(d.transA)*(d.ordinal&&d.ordinal.slope||
|
|
528
|
+
b.pointRange||d.closestPointRange||d.tickInterval||1),d.len),p=l*b.groupPadding,r=(l-2*p)/(e||1);b=Math.min(b.maxPointWidth||d.len,t(b.pointWidth,r*(1-2*b.pointPadding)));a.columnMetrics={width:b,offset:(r-b)/2+(p+((a.columnIndex||0)+(f?1:0))*r-l/2)*(f?-1:1),paddedWidth:r,columnCount:e};return a.columnMetrics};e.prototype.crispCol=function(a,b,d,c){var g=this.chart,f=this.borderWidth,h=-(f%2?.5:0);f=f%2?.5:1;g.inverted&&g.renderer.isVML&&(f+=1);this.options.crisp&&(d=Math.round(a+d)+h,a=Math.round(a)+
|
|
529
|
+
h,d-=a);c=Math.round(b+c)+f;h=.5>=Math.abs(b)&&.5<c;b=Math.round(b)+f;c-=b;h&&c&&(--b,c+=1);return{x:a,y:b,width:d,height:c}};e.prototype.adjustForMissingColumns=function(a,b,d,c){var g=this,f=this.options.stacking;if(!d.isNull&&1<c.columnCount){var k=this.yAxis.options.reversedStacks,e=0,l=k?0:-c.columnCount;h(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(a){if("number"===typeof d.x){var c=a[d.x.toString()];c&&(a=c.points[g.index],f?(a&&(e=l),c.hasValidPoints&&(k?l++:l--)):A(a)&&(a=Object.keys(c.points).filter(function(a){return!a.match(",")&&
|
|
530
|
+
c.points[a]&&1<c.points[a].length}).map(parseFloat).sort(function(a,c){return c-a}),e=a.indexOf(g.index),l=a.length))}});a=(d.plotX||0)+((l-1)*c.paddedWidth+b)/2-b-e*c.paddedWidth}return a};e.prototype.translate=function(){var a=this,b=a.chart,d=a.options,c=a.dense=2>a.closestPointRange*a.xAxis.transA;c=a.borderWidth=t(d.borderWidth,c?0:1);var h=a.xAxis,e=a.yAxis,l=d.threshold,r=a.translatedThreshold=e.getThreshold(l),p=t(d.minPointLength,5),m=a.getColumnMetrics(),y=m.width,A=a.pointXOffset=m.offset,
|
|
531
|
+
E=a.dataMin,I=a.dataMax,v=a.barW=Math.max(y,1+2*c);b.inverted&&(r-=.5);d.pointPadding&&(v=Math.ceil(v));q.prototype.translate.apply(a);a.points.forEach(function(c){var g=t(c.yBottom,r),n=999+Math.abs(g),z=c.plotX||0;n=f(c.plotY,-n,e.len+n);var G=Math.min(n,g),D=Math.max(n,g)-G,H=y,q=z+A,x=v;p&&Math.abs(D)<p&&(D=p,z=!e.reversed&&!c.negative||e.reversed&&c.negative,w(l)&&w(I)&&c.y===l&&I<=l&&(e.min||0)<l&&(E!==I||(e.max||0)<=l)&&(z=!z),G=Math.abs(G-r)>p?g-p:r-(z?p:0));k(c.options.pointWidth)&&(H=x=
|
|
532
|
+
Math.ceil(c.options.pointWidth),q-=Math.round((H-y)/2));d.centerInCategory&&(q=a.adjustForMissingColumns(q,H,c,m));c.barX=q;c.pointWidth=H;c.tooltipPos=b.inverted?[f(e.len+e.pos-b.plotLeft-n,e.pos-b.plotLeft,e.len+e.pos-b.plotLeft),h.len+h.pos-b.plotTop-q-x/2,D]:[h.left-b.plotLeft+q+x/2,f(n+e.pos-b.plotTop,e.pos-b.plotTop,e.len+e.pos-b.plotTop),D];c.shapeType=a.pointClass.prototype.shapeType||"rect";c.shapeArgs=a.crispCol.apply(a,c.isNull?[q,r,x,0]:[q,G,x,D])})};e.prototype.drawGraph=function(){this.group[this.dense?
|
|
533
|
+
"addClass":"removeClass"]("highcharts-dense-data")};e.prototype.pointAttribs=function(a,b){var d=this.options,c=this.pointAttrToOptions||{},g=c.stroke||"borderColor",f=c["stroke-width"]||"borderWidth",h=a&&a.color||this.color,k=a&&a[g]||d[g]||h;c=a&&a.options.dashStyle||d.dashStyle;var e=a&&a[f]||d[f]||this[f]||0,n=t(a&&a.opacity,d.opacity,1);if(a&&this.zones.length){var p=a.getZone();h=a.options.color||p&&(p.color||a.nonZonedColor)||this.color;p&&(k=p.borderColor||k,c=p.dashStyle||c,e=p.borderWidth||
|
|
534
|
+
e)}b&&a&&(a=I(d.states[b],a.options.states&&a.options.states[b]||{}),b=a.brightness,h=a.color||"undefined"!==typeof b&&l(h).brighten(a.brightness).get()||h,k=a[g]||k,e=a[f]||e,c=a.dashStyle||c,n=t(a.opacity,n));g={fill:h,stroke:k,"stroke-width":e,opacity:n};c&&(g.dashstyle=c);return g};e.prototype.drawPoints=function(a){void 0===a&&(a=this.points);var b=this,d=this.chart,c=b.options,f=d.renderer,h=c.animationLimit||250,k;a.forEach(function(a){var g=a.graphic,e=!!g,l=g&&d.pointCount<h?"animate":"attr";
|
|
535
|
+
if(w(a.plotY)&&null!==a.y){k=a.shapeArgs;g&&a.hasNewShapeType()&&(g=g.destroy());b.enabledDataSorting&&(a.startXPos=b.xAxis.reversed?-(k?k.width||0:0):b.xAxis.width);g||(a.graphic=g=f[a.shapeType](k).add(a.group||b.group))&&b.enabledDataSorting&&d.hasRendered&&d.pointCount<h&&(g.attr({x:a.startXPos}),e=!0,l="animate");if(g&&e)g[l](I(k));if(c.borderRadius)g[l]({r:c.borderRadius});d.styledMode||g[l](b.pointAttribs(a,a.selected&&"select")).shadow(!1!==a.allowShadow&&c.shadow,null,c.stacking&&!c.borderRadius);
|
|
536
|
+
g&&(g.addClass(a.getClassName(),!0),g.attr({visibility:a.visible?"inherit":"hidden"}))}else g&&(a.graphic=g.destroy())})};e.prototype.drawTracker=function(){var b=this,g=b.chart,f=g.pointer,c=function(a){var c=f.getPointFromEvent(a);"undefined"!==typeof c&&(f.isDirectTouch=!0,c.onMouseOver(a))},h;b.points.forEach(function(a){h=A(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[];a.graphic&&(a.graphic.element.point=a);h.forEach(function(c){c.div?c.div.point=a:c.element.point=a})});b._hasTracking||
|
|
537
|
+
(b.trackerGroups.forEach(function(h){if(b[h]){b[h].addClass("highcharts-tracker").on("mouseover",c).on("mouseout",function(a){f.onTrackerMouseOut(a)});if(a)b[h].on("touchstart",c);!g.styledMode&&b.options.cursor&&b[h].css(d).css({cursor:b.options.cursor})}}),b._hasTracking=!0);E(this,"afterDrawTracker")};e.prototype.remove=function(){var a=this,b=a.chart;b.hasRendered&&b.series.forEach(function(b){b.type===a.type&&(b.isDirty=!0)});q.prototype.remove.apply(a,arguments)};e.defaultOptions=I(q.defaultOptions,
|
|
538
|
+
u);return e}(q);p(x.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:B.drawRectangle,getSymbol:b,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});F.registerSeriesType("column",x);"";return x});J(e,"Core/Series/DataLabel.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/FormatUtilities.js"],e["Core/Utilities.js"]],function(b,e,u){var K=b.getDeferredAnimation,B=e.format,q=u.defined,F=u.extend,x=u.fireEvent,v=u.isArray,m=u.isString,l=u.merge,a=u.objectEach,f=u.pick,d=u.splat,k;
|
|
539
|
+
(function(b){function k(a,b,d,h,c){var g=this,k=this.chart,e=this.isCartesian&&k.inverted,l=this.enabledDataSorting,n=f(a.dlBox&&a.dlBox.centerX,a.plotX),t=a.plotY,p=d.rotation,m=d.align,r=q(n)&&q(t)&&k.isInsidePlot(n,Math.round(t),{inverted:e,paneCoordinates:!0,series:g}),y=function(d){l&&g.xAxis&&!w&&g.setDataLabelStartPos(a,b,c,r,d)},w="justify"===f(d.overflow,l?"none":"justify"),A=this.visible&&!1!==a.visible&&(a.series.forceDL||l&&!w||r||f(d.inside,!!this.options.stacking)&&h&&k.isInsidePlot(n,
|
|
540
|
+
e?h.x+1:h.y+h.height-1,{inverted:e,paneCoordinates:!0,series:g}));if(A&&q(n)&&q(t)){p&&b.attr({align:m});m=b.getBBox(!0);var E=[0,0];var I=k.renderer.fontMetrics(k.styledMode?void 0:d.style.fontSize,b).b;h=F({x:e?this.yAxis.len-t:n,y:Math.round(e?this.xAxis.len-n:t),width:0,height:0},h);F(d,{width:m.width,height:m.height});p?(w=!1,E=k.renderer.rotCorr(I,p),n={x:h.x+(d.x||0)+h.width/2+E.x,y:h.y+(d.y||0)+{top:0,middle:.5,bottom:1}[d.verticalAlign]*h.height},E=[m.x-Number(b.attr("x")),m.y-Number(b.attr("y"))],
|
|
541
|
+
y(n),b[c?"attr":"animate"](n)):(y(h),b.align(d,void 0,h),n=b.alignAttr);w&&0<=h.height?this.justifyDataLabel(b,d,n,m,h,c):f(d.crop,!0)&&(h=n.x,y=n.y,h+=E[0],y+=E[1],A=k.isInsidePlot(h,y,{paneCoordinates:!0,series:g})&&k.isInsidePlot(h+m.width,y+m.height,{paneCoordinates:!0,series:g}));if(d.shape&&!p)b[c?"attr":"animate"]({anchorX:e?k.plotWidth-a.plotY:a.plotX,anchorY:e?k.plotHeight-a.plotX:a.plotY})}c&&l&&(b.placed=!1);A||l&&!w?b.show():(b.hide(),b.placed=!1)}function e(a,b){var d=b.filter;return d?
|
|
542
|
+
(b=d.operator,a=a[d.property],d=d.value,">"===b&&a>d||"<"===b&&a<d||">="===b&&a>=d||"<="===b&&a<=d||"=="===b&&a==d||"==="===b&&a===d?!0:!1):!0}function p(b){void 0===b&&(b=this.points);var h=this,g=h.chart,k=h.options,c=h.hasRendered||0,l=g.renderer,p=g.options.chart,r=p.backgroundColor;p=p.plotBackgroundColor;var y=l.getContrast(m(p)&&p||m(r)&&r||"#000000"),w=k.dataLabels,A;r=w.animation;r=w.defer?K(g,r,h):{defer:0,duration:0};w=t(t(g.options.plotOptions&&g.options.plotOptions.series&&g.options.plotOptions.series.dataLabels,
|
|
543
|
+
g.options.plotOptions&&g.options.plotOptions[h.type]&&g.options.plotOptions[h.type].dataLabels),w);x(this,"drawDataLabels");if(v(w)||w.enabled||h._hasPointLabels){var E=h.plotGroup("dataLabelsGroup","data-labels",c?"inherit":"hidden",w.zIndex||6);E.attr({opacity:+c});!c&&(c=h.dataLabelsGroup)&&(h.visible&&E.show(),c[k.animation?"animate":"attr"]({opacity:1},r));b.forEach(function(c){A=d(t(w,c.dlOptions||c.options&&c.options.dataLabels));A.forEach(function(b,d){var n=b.enabled&&(!c.isNull||c.dataLabelOnNull)&&
|
|
544
|
+
e(c,b),t=c.connectors?c.connectors[d]:c.connector,p=c.dataLabels?c.dataLabels[d]:c.dataLabel,m=!p,r=f(b.distance,c.labelDistance);if(n){var w=c.getLabelConfig();var z=f(b[c.formatPrefix+"Format"],b.format);w=q(z)?B(z,w,g):(b[c.formatPrefix+"Formatter"]||b.formatter).call(w,b);z=b.style;var A=b.rotation;g.styledMode||(z.color=f(b.color,z.color,h.color,"#000000"),"contrast"===z.color?(c.contrastColor=l.getContrast(c.color||h.color),z.color=!q(r)&&b.inside||0>r||k.stacking?c.contrastColor:y):delete c.contrastColor,
|
|
545
|
+
k.cursor&&(z.cursor=k.cursor));var I={r:b.borderRadius||0,rotation:A,padding:b.padding,zIndex:1};g.styledMode||(I.fill=b.backgroundColor,I.stroke=b.borderColor,I["stroke-width"]=b.borderWidth);a(I,function(a,c){"undefined"===typeof a&&delete I[c]})}!p||n&&q(w)&&!!p.div===!!b.useHTML&&(p.rotation&&b.rotation||p.rotation===b.rotation)||(m=!0,c.dataLabel=p=c.dataLabel&&c.dataLabel.destroy(),c.dataLabels&&(1===c.dataLabels.length?delete c.dataLabels:delete c.dataLabels[d]),d||delete c.dataLabel,t&&(c.connector=
|
|
546
|
+
c.connector.destroy(),c.connectors&&(1===c.connectors.length?delete c.connectors:delete c.connectors[d])));n&&q(w)?(p?I.text=w:(c.dataLabels=c.dataLabels||[],p=c.dataLabels[d]=A?l.text(w,0,0,b.useHTML).addClass("highcharts-data-label"):l.label(w,0,0,b.shape,null,null,b.useHTML,null,"data-label"),d||(c.dataLabel=p),p.addClass(" highcharts-data-label-color-"+c.colorIndex+" "+(b.className||"")+(b.useHTML?" highcharts-tracker":""))),p.options=b,p.attr(I),g.styledMode||p.css(z).shadow(b.shadow),(d=b[c.formatPrefix+
|
|
547
|
+
"TextPath"]||b.textPath)&&!b.useHTML&&(p.setTextPath(c.getDataLabelPath&&c.getDataLabelPath(p)||c.graphic,d),c.dataLabelPath&&!d.enabled&&(c.dataLabelPath=c.dataLabelPath.destroy())),p.added||p.add(E),h.alignDataLabel(c,p,b,null,m)):p&&p.hide()})})}x(this,"afterDrawDataLabels")}function I(a,b,d,f,c,h){var g=this.chart,k=b.align,e=b.verticalAlign,l=a.box?0:a.padding||0,n=b.x;n=void 0===n?0:n;var t=b.y;t=void 0===t?0:t;var p=(d.x||0)+l;if(0>p){"right"===k&&0<=n?(b.align="left",b.inside=!0):n-=p;var m=
|
|
548
|
+
!0}p=(d.x||0)+f.width-l;p>g.plotWidth&&("left"===k&&0>=n?(b.align="right",b.inside=!0):n+=g.plotWidth-p,m=!0);p=d.y+l;0>p&&("bottom"===e&&0<=t?(b.verticalAlign="top",b.inside=!0):t-=p,m=!0);p=(d.y||0)+f.height-l;p>g.plotHeight&&("top"===e&&0>=t?(b.verticalAlign="bottom",b.inside=!0):t+=g.plotHeight-p,m=!0);m&&(b.x=n,b.y=t,a.placed=!h,a.align(b,void 0,c));return m}function t(a,b){var d=[],f;if(v(a)&&!v(b))d=a.map(function(a){return l(a,b)});else if(v(b)&&!v(a))d=b.map(function(c){return l(a,c)});else if(v(a)||
|
|
549
|
+
v(b))for(f=Math.max(a.length,b.length);f--;)d[f]=l(a[f],b[f]);else d=l(a,b);return d}function h(a,b,d,f,c){var g=this.chart,h=g.inverted,k=this.xAxis,e=k.reversed,l=h?b.height/2:b.width/2;a=(a=a.pointWidth)?a/2:0;b.startXPos=h?c.x:e?-l-a:k.width-l+a;b.startYPos=h?e?this.yAxis.height-l+a:-l-a:c.y;f?"hidden"===b.visibility&&(b.show(),b.attr({opacity:0}).animate({opacity:1})):b.attr({opacity:1}).animate({opacity:0},void 0,b.hide);g.hasRendered&&(d&&b.attr({x:b.startXPos,y:b.startYPos}),b.placed=!0)}
|
|
550
|
+
var y=[];b.compose=function(a){if(-1===y.indexOf(a)){var b=a.prototype;y.push(a);b.alignDataLabel=k;b.drawDataLabels=p;b.justifyDataLabel=I;b.setDataLabelStartPos=h}}})(k||(k={}));"";return k});J(e,"Series/Column/ColumnDataLabel.js",[e["Core/Series/DataLabel.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,u){var K=e.series,B=u.merge,q=u.pick,F;(function(e){function v(b,a,f,d,k){var e=this.chart.inverted,l=b.series,m=(l.xAxis?l.xAxis.len:this.chart.plotSizeX)||0;l=(l.yAxis?
|
|
551
|
+
l.yAxis.len:this.chart.plotSizeY)||0;var w=b.dlBox||b.shapeArgs,I=q(b.below,b.plotY>q(this.translatedThreshold,l)),t=q(f.inside,!!this.options.stacking);w&&(d=B(w),0>d.y&&(d.height+=d.y,d.y=0),w=d.y+d.height-l,0<w&&w<d.height&&(d.height-=w),e&&(d={x:l-d.y-d.height,y:m-d.x-d.width,width:d.height,height:d.width}),t||(e?(d.x+=I?0:d.width,d.width=0):(d.y+=I?d.height:0,d.height=0)));f.align=q(f.align,!e||t?"center":I?"right":"left");f.verticalAlign=q(f.verticalAlign,e||t?"middle":I?"top":"bottom");K.prototype.alignDataLabel.call(this,
|
|
552
|
+
b,a,f,d,k);f.inside&&b.contrastColor&&a.css({color:b.contrastColor})}var m=[];e.compose=function(e){b.compose(K);-1===m.indexOf(e)&&(m.push(e),e.prototype.alignDataLabel=v)}})(F||(F={}));return F});J(e,"Series/Bar/BarSeries.js",[e["Series/Column/ColumnSeries.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,u){var K=this&&this.__extends||function(){var b=function(e,v){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var a in e)e.hasOwnProperty(a)&&
|
|
553
|
+
(b[a]=e[a])};return b(e,v)};return function(e,v){function m(){this.constructor=e}b(e,v);e.prototype=null===v?Object.create(v):(m.prototype=v.prototype,new m)}}(),B=u.extend,q=u.merge;u=function(e){function x(){var b=null!==e&&e.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}K(x,e);x.defaultOptions=q(b.defaultOptions,{});return x}(b);B(u.prototype,{inverted:!0});e.registerSeriesType("bar",u);"";return u});J(e,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){"";
|
|
554
|
+
return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}});J(e,"Series/Scatter/ScatterSeries.js",[e["Series/Scatter/ScatterSeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,u){var K=this&&this.__extends||function(){var b=function(e,a){b=Object.setPrototypeOf||
|
|
555
|
+
{__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(e,a)};return function(e,a){function f(){this.constructor=e}b(e,a);e.prototype=null===a?Object.create(a):(f.prototype=a.prototype,new f)}}(),B=e.seriesTypes,q=B.column,F=B.line;B=u.addEvent;var x=u.extend,v=u.merge;u=function(e){function l(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}K(l,e);l.prototype.applyJitter=
|
|
556
|
+
function(){var a=this,b=this.options.jitter,d=this.points.length;b&&this.points.forEach(function(f,e){["x","y"].forEach(function(k,l){var p="plot"+k.toUpperCase();if(b[k]&&!f.isNull){var m=a[k+"Axis"];var t=b[k]*m.transA;if(m&&!m.isLog){var h=Math.max(0,f[p]-t);m=Math.min(m.len,f[p]+t);l=1E4*Math.sin(e+l*d);f[p]=h+(m-h)*(l-Math.floor(l));"x"===k&&(f.clientX=f.plotX)}}})})};l.prototype.drawGraph=function(){this.options.lineWidth?e.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};
|
|
557
|
+
l.defaultOptions=v(F.defaultOptions,b);return l}(F);x(u.prototype,{drawTracker:q.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});B(u,"afterTranslate",function(){this.applyJitter()});e.registerSeriesType("scatter",u);return u});J(e,"Series/CenteredUtilities.js",[e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Utilities.js"]],function(b,e,u){var K=b.deg2rad,B=u.fireEvent,q=u.isNumber,F=u.pick,
|
|
558
|
+
x=u.relativeLength,v;(function(b){b.getCenter=function(){var b=this.options,a=this.chart,f=2*(b.slicedOffset||0),d=a.plotWidth-2*f,k=a.plotHeight-2*f,p=b.center,m=Math.min(d,k),A=b.thickness,w=b.size,I=b.innerSize||0;"string"===typeof w&&(w=parseFloat(w));"string"===typeof I&&(I=parseFloat(I));b=[F(p[0],"50%"),F(p[1],"50%"),F(w&&0>w?void 0:b.size,"100%"),F(I&&0>I?void 0:b.innerSize||0,"0%")];!a.angular||this instanceof e||(b[3]=0);for(p=0;4>p;++p)w=b[p],a=2>p||2===p&&/%$/.test(w),b[p]=x(w,[d,k,m,
|
|
559
|
+
b[2]][p])+(a?f:0);b[3]>b[2]&&(b[3]=b[2]);q(A)&&2*A<b[2]&&0<A&&(b[3]=b[2]-2*A);B(this,"afterGetCenter",{positions:b});return b};b.getStartAndEndRadians=function(b,a){b=q(b)?b:0;a=q(a)&&a>b&&360>a-b?a:b+360;return{start:K*(b+-90),end:K*(a+-90)}}})(v||(v={}));"";return v});J(e,"Series/Pie/PiePoint.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(b,e,u){var K=this&&this.__extends||function(){var b=function(a,f){b=Object.setPrototypeOf||{__proto__:[]}instanceof
|
|
560
|
+
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,f)};return function(a,f){function d(){this.constructor=a}b(a,f);a.prototype=null===f?Object.create(f):(d.prototype=f.prototype,new d)}}(),B=b.setAnimation,q=u.addEvent,F=u.defined;b=u.extend;var x=u.isNumber,v=u.pick,m=u.relativeLength;e=function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.labelDistance=void 0;a.options=void 0;a.series=void 0;return a}K(a,b);a.prototype.getConnectorPath=
|
|
561
|
+
function(){var a=this.labelPosition,b=this.series.options.dataLabels,k=this.connectorShapes,e=b.connectorShape;k[e]&&(e=k[e]);return e.call(this,{x:a.final.x,y:a.final.y,alignment:a.alignment},a.connectorPosition,b)};a.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};a.prototype.haloPath=function(a){var b=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(b.x,b.y,b.r+a,b.r+a,{innerR:b.r-1,start:b.start,
|
|
562
|
+
end:b.end})};a.prototype.init=function(){var a=this;b.prototype.init.apply(this,arguments);this.name=v(this.name,"Slice");var d=function(b){a.slice("select"===b.type)};q(this,"select",d);q(this,"unselect",d);return this};a.prototype.isValid=function(){return x(this.y)&&0<=this.y};a.prototype.setVisible=function(a,b){var d=this,f=this.series,e=f.chart,l=f.options.ignoreHiddenPoint;b=v(b,l);a!==this.visible&&(this.visible=this.options.visible=a="undefined"===typeof a?!this.visible:a,f.options.data[f.data.indexOf(this)]=
|
|
563
|
+
this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(b){if(d[b])d[b][a?"show":"hide"](a)}),this.legendItem&&e.legend.colorizeItem(this,a),a||"hover"!==this.state||this.setState(""),l&&(f.isDirty=!0),b&&e.redraw())};a.prototype.slice=function(a,b,k){var d=this.series;B(k,d.chart);v(b,!0);this.sliced=this.options.sliced=F(a)?a:!this.sliced;d.options.data[d.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};
|
|
564
|
+
return a}(e);b(e.prototype,{connectorShapes:{fixedOffset:function(b,a,f){var d=a.breakAt;a=a.touchingSliceAt;return[["M",b.x,b.y],f.softConnector?["C",b.x+("left"===b.alignment?-5:5),b.y,2*d.x-a.x,2*d.y-a.y,d.x,d.y]:["L",d.x,d.y],["L",a.x,a.y]]},straight:function(b,a){a=a.touchingSliceAt;return[["M",b.x,b.y],["L",a.x,a.y]]},crookedLine:function(b,a,f){a=a.touchingSliceAt;var d=this.series,k=d.center[0],e=d.chart.plotWidth,l=d.chart.plotLeft;d=b.alignment;var A=this.shapeArgs.r;f=m(f.crookDistance,
|
|
565
|
+
1);e="left"===d?k+A+(e+l-k-A)*(1-f):l+(k-A)*f;f=["L",e,b.y];k=!0;if("left"===d?e>b.x||e<a.x:e<b.x||e>a.x)k=!1;b=[["M",b.x,b.y]];k&&b.push(f);b.push(["L",a.x,a.y]);return b}}});return e});J(e,"Series/Pie/PieSeriesDefaults.js",[],function(){"";return{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},
|
|
566
|
+
fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}});J(e,"Series/Pie/PieSeries.js",[e["Series/CenteredUtilities.js"],e["Series/Column/ColumnSeries.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Series/Pie/PiePoint.js"],e["Series/Pie/PieSeriesDefaults.js"],e["Core/Series/Series.js"],
|
|
567
|
+
e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/Symbols.js"],e["Core/Utilities.js"]],function(b,e,u,C,B,q,F,x,v,m){var l=this&&this.__extends||function(){var a=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 f(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),a=b.getStartAndEndRadians;
|
|
568
|
+
u=u.noop;var f=m.clamp,d=m.extend,k=m.fireEvent,p=m.merge,E=m.pick,A=m.relativeLength;m=function(b){function d(){var a=null!==b&&b.apply(this,arguments)||this;a.center=void 0;a.data=void 0;a.maxLabelDistance=void 0;a.options=void 0;a.points=void 0;return a}l(d,b);d.prototype.animate=function(a){var b=this,d=b.points,f=b.startAngleRad;a||d.forEach(function(a){var d=a.graphic,h=a.shapeArgs;d&&h&&(d.attr({r:E(a.startR,b.center&&b.center[3]/2),start:f,end:f}),d.animate({r:h.r,start:h.start,end:h.end},
|
|
569
|
+
b.options.animation))})};d.prototype.drawEmpty=function(){var a=this.startAngleRad,b=this.endAngleRad,d=this.options;if(0===this.total&&this.center){var f=this.center[0];var k=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(f,k,this.center[1]/2,0,a,b).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:v.arc(f,k,this.center[2]/2,0,{start:a,end:b,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":d.borderWidth,fill:d.fillColor||"none",
|
|
570
|
+
stroke:d.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())};d.prototype.drawPoints=function(){var a=this.chart.renderer;this.points.forEach(function(b){b.graphic&&b.hasNewShapeType()&&(b.graphic=b.graphic.destroy());b.graphic||(b.graphic=a[b.shapeType](b.shapeArgs).add(b.series.group),b.delayedRendering=!0)})};d.prototype.generatePoints=function(){b.prototype.generatePoints.call(this);this.updateTotals()};d.prototype.getX=function(a,b,d){var h=this.center,k=this.radii?this.radii[d.index]||
|
|
571
|
+
0:h[2]/2;a=Math.asin(f((a-h[1])/(k+d.labelDistance),-1,1));return h[0]+(b?-1:1)*Math.cos(a)*(k+d.labelDistance)+(0<d.labelDistance?(b?-1:1)*this.options.dataLabels.padding:0)};d.prototype.hasData=function(){return!!this.processedXData.length};d.prototype.redrawPoints=function(){var a=this,b=a.chart,d=b.renderer,f=a.options.shadow,k,g,e,c;this.drawEmpty();!f||a.shadowGroup||b.styledMode||(a.shadowGroup=d.g("shadow").attr({zIndex:-1}).add(a.group));a.points.forEach(function(h){var l={};g=h.graphic;
|
|
572
|
+
if(!h.isNull&&g){var n=void 0;c=h.shapeArgs;k=h.getTranslate();b.styledMode||(n=h.shadowGroup,f&&!n&&(n=h.shadowGroup=d.g("shadow").add(a.shadowGroup)),n&&n.attr(k),e=a.pointAttribs(h,h.selected&&"select"));h.delayedRendering?(g.setRadialReference(a.center).attr(c).attr(k),b.styledMode||g.attr(e).attr({"stroke-linejoin":"round"}).shadow(f,n),h.delayedRendering=!1):(g.setRadialReference(a.center),b.styledMode||p(!0,l,e),p(!0,l,c,k),g.animate(l));g.attr({visibility:h.visible?"inherit":"hidden"});g.addClass(h.getClassName(),
|
|
573
|
+
!0)}else g&&(h.graphic=g.destroy())})};d.prototype.sortByAngle=function(a,b){a.sort(function(a,d){return"undefined"!==typeof a.angle&&(d.angle-a.angle)*b})};d.prototype.translate=function(b){k(this,"translate");this.generatePoints();var d=this.options,f=d.slicedOffset,e=f+(d.borderWidth||0),l=a(d.startAngle,d.endAngle),g=this.startAngleRad=l.start;l=(this.endAngleRad=l.end)-g;var p=this.points,c=d.dataLabels.distance;d=d.ignoreHiddenPoint;var t=p.length,m,w=0;b||(this.center=b=this.getCenter());for(m=
|
|
574
|
+
0;m<t;m++){var v=p[m];var I=g+w*l;!v.isValid()||d&&!v.visible||(w+=v.percentage/100);var q=g+w*l;var x={x:b[0],y:b[1],r:b[2]/2,innerR:b[3]/2,start:Math.round(1E3*I)/1E3,end:Math.round(1E3*q)/1E3};v.shapeType="arc";v.shapeArgs=x;v.labelDistance=E(v.options.dataLabels&&v.options.dataLabels.distance,c);v.labelDistance=A(v.labelDistance,x.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,v.labelDistance);q=(q+I)/2;q>1.5*Math.PI?q-=2*Math.PI:q<-Math.PI/2&&(q+=2*Math.PI);v.slicedTranslation={translateX:Math.round(Math.cos(q)*
|
|
575
|
+
f),translateY:Math.round(Math.sin(q)*f)};x=Math.cos(q)*b[2]/2;var u=Math.sin(q)*b[2]/2;v.tooltipPos=[b[0]+.7*x,b[1]+.7*u];v.half=q<-Math.PI/2||q>Math.PI/2?1:0;v.angle=q;I=Math.min(e,v.labelDistance/5);v.labelPosition={natural:{x:b[0]+x+Math.cos(q)*v.labelDistance,y:b[1]+u+Math.sin(q)*v.labelDistance},"final":{},alignment:0>v.labelDistance?"center":v.half?"right":"left",connectorPosition:{breakAt:{x:b[0]+x+Math.cos(q)*I,y:b[1]+u+Math.sin(q)*I},touchingSliceAt:{x:b[0]+x,y:b[1]+u}}}}k(this,"afterTranslate")};
|
|
576
|
+
d.prototype.updateTotals=function(){var a=this.points,b=a.length,d=this.options.ignoreHiddenPoint,f,k=0;for(f=0;f<b;f++){var g=a[f];!g.isValid()||d&&!g.visible||(k+=g.y)}this.total=k;for(f=0;f<b;f++)g=a[f],g.percentage=0<k&&(g.visible||!d)?g.y/k*100:0,g.total=k};d.defaultOptions=p(F.defaultOptions,q);return d}(F);d(m.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:C.drawRectangle,drawTracker:e.prototype.drawTracker,getCenter:b.getCenter,getSymbol:u,isCartesian:!1,noSharedTooltip:!0,
|
|
577
|
+
pointAttribs:e.prototype.pointAttribs,pointClass:B,requireSorting:!1,searchPoint:u,trackerGroups:["group","dataLabelsGroup"]});x.registerSeriesType("pie",m);return m});J(e,"Series/Pie/PieDataLabel.js",[e["Core/Series/DataLabel.js"],e["Core/Globals.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,u,C,B){var q=e.noop,K=u.distribute,x=C.series,v=B.arrayMax,m=B.clamp,l=B.defined,a=B.merge,f=B.pick,d=B.relativeLength,k;(function(k){function e(){var b=
|
|
578
|
+
this,d=b.data,k=b.chart,e=b.options.dataLabels||{},g=e.connectorPadding,p=k.plotWidth,c=k.plotHeight,m=k.plotLeft,t=Math.round(k.chartWidth/3),w=b.center,A=w[2]/2,E=w[1],I=[[],[]],q=[0,0,0,0],u=b.dataLabelPositioners,B,C,F,J,aa,X,R,U,W,V,S,N;b.visible&&(e.enabled||b._hasPointLabels)&&(d.forEach(function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),x.prototype.drawDataLabels.apply(b),d.forEach(function(a){a.dataLabel&&
|
|
579
|
+
(a.visible?(I[a.half].push(a),a.dataLabel._pos=null,!l(e.style.width)&&!l(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>t&&(a.dataLabel.css({width:Math.round(.7*t)+"px"}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&&delete a.dataLabels))}),I.forEach(function(a,d){var h=a.length,n=[],t;if(h){b.sortByAngle(a,d-.5);if(0<b.maxLabelDistance){var r=Math.max(0,E-A-b.maxLabelDistance);
|
|
580
|
+
var y=Math.min(E+A+b.maxLabelDistance,k.plotHeight);a.forEach(function(a){0<a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,E-A-a.labelDistance),a.bottom=Math.min(E+A+a.labelDistance,k.plotHeight),t=a.dataLabel.getBBox().height||21,a.distributeBox={target:a.labelPosition.natural.y-a.top+t/2,size:t,rank:a.y},n.push(a.distributeBox))});r=y+t-r;K(n,r,r/5)}for(S=0;S<h;S++){B=a[S];X=B.labelPosition;J=B.dataLabel;V=!1===B.visible?"hidden":"inherit";W=r=X.natural.y;n&&l(B.distributeBox)&&("undefined"===
|
|
581
|
+
typeof B.distributeBox.pos?V="hidden":(R=B.distributeBox.size,W=u.radialDistributionY(B)));delete B.positionIndex;if(e.justify)U=u.justify(B,A,w);else switch(e.alignTo){case "connectors":U=u.alignToConnectors(a,d,p,m);break;case "plotEdges":U=u.alignToPlotEdges(J,d,p,m);break;default:U=u.radialDistributionX(b,B,W,r)}J._attr={visibility:V,align:X.alignment};N=B.options.dataLabels||{};J._pos={x:U+f(N.x,e.x)+({left:g,right:-g}[X.alignment]||0),y:W+f(N.y,e.y)-10};X.final.x=U;X.final.y=W;f(e.crop,!0)&&
|
|
582
|
+
(aa=J.getBBox().width,r=null,U-aa<g&&1===d?(r=Math.round(aa-U+g),q[3]=Math.max(r,q[3])):U+aa>p-g&&0===d&&(r=Math.round(U+aa-p+g),q[1]=Math.max(r,q[1])),0>W-R/2?q[0]=Math.max(Math.round(-W+R/2),q[0]):W+R/2>c&&(q[2]=Math.max(Math.round(W+R/2-c),q[2])),J.sideOverflow=r)}}}),0===v(q)||this.verifyDataLabelOverflow(q))&&(this.placeDataLabels(),this.points.forEach(function(c){N=a(e,c.options.dataLabels);if(C=f(N.connectorWidth,1)){var d;F=c.connector;if((J=c.dataLabel)&&J._pos&&c.visible&&0<c.labelDistance){V=
|
|
583
|
+
J._attr.visibility;if(d=!F)c.connector=F=k.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+c.colorIndex+(c.className?" "+c.className:"")).add(b.dataLabelsGroup),k.styledMode||F.attr({"stroke-width":C,stroke:N.connectorColor||c.color||"#666666"});F[d?"attr":"animate"]({d:c.getConnectorPath()});F.attr("visibility",V)}else F&&(c.connector=F.destroy())}}))}function p(){this.points.forEach(function(a){var b=a.dataLabel,d;b&&a.visible&&((d=b._pos)?(b.sideOverflow&&(b._attr.width=
|
|
584
|
+
Math.max(b.getBBox().width-b.sideOverflow,0),b.css({width:b._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),b.shortened=!0),b.attr(b._attr),b[b.moved?"animate":"attr"](d),b.moved=!0):b&&b.attr({y:-9999}));delete a.distributeBox},this)}function w(a){var b=this.center,f=this.options,h=f.center,g=f.minSize||80,k=null!==f.size;if(!k){if(null!==h[0])var c=Math.max(b[2]-Math.max(a[1],a[3]),g);else c=Math.max(b[2]-a[1]-a[3],g),b[0]+=(a[3]-a[1])/2;null!==h[1]?
|
|
585
|
+
c=m(c,g,b[2]-Math.max(a[0],a[2])):(c=m(c,g,b[2]-a[0]-a[2]),b[1]+=(a[0]-a[2])/2);c<b[2]?(b[2]=c,b[3]=Math.min(f.thickness?Math.max(0,c-2*f.thickness):Math.max(0,d(f.innerSize||0,c)),c),this.translate(b),this.drawDataLabels&&this.drawDataLabels()):k=!0}return k}var I=[],t={radialDistributionY:function(a){return a.top+a.distributeBox.pos},radialDistributionX:function(a,b,d,f){return a.getX(d<b.top+2||d>b.bottom-2?f:d,b.half,b)},justify:function(a,b,d){return d[0]+(a.half?-1:1)*(b+a.labelDistance)},alignToPlotEdges:function(a,
|
|
586
|
+
b,d,f){a=a.getBBox().width;return b?a+f:d-a-f},alignToConnectors:function(a,b,d,f){var g=0,h;a.forEach(function(a){h=a.dataLabel.getBBox().width;h>g&&(g=h)});return b?g+f:d-g-f}};k.compose=function(a){b.compose(x);-1===I.indexOf(a)&&(I.push(a),a=a.prototype,a.dataLabelPositioners=t,a.alignDataLabel=q,a.drawDataLabels=e,a.placeDataLabels=p,a.verifyDataLabelOverflow=w)}})(k||(k={}));return k});J(e,"Extensions/OverlappingDataLabels.js",[e["Core/Chart/Chart.js"],e["Core/Utilities.js"]],function(b,e){function u(b,
|
|
587
|
+
e){var a=!1;if(b){var f=b.newOpacity;b.oldOpacity!==f&&(b.alignAttr&&b.placed?(b[f?"removeClass":"addClass"]("highcharts-data-label-hidden"),a=!0,b.alignAttr.opacity=f,b[b.isOld?"animate":"attr"](b.alignAttr,null,function(){e.styledMode||b.css({pointerEvents:f?"auto":"none"})}),B(e,"afterHideOverlappingLabel")):b.attr({opacity:f}));b.isOld=!0}return a}var K=e.addEvent,B=e.fireEvent,q=e.isArray,F=e.isNumber,x=e.objectEach,v=e.pick;K(b,"render",function(){var b=this,e=[];(this.labelCollectors||[]).forEach(function(a){e=
|
|
588
|
+
e.concat(a())});(this.yAxis||[]).forEach(function(a){a.stacking&&a.options.stackLabels&&!a.options.stackLabels.allowOverlap&&x(a.stacking.stacks,function(a){x(a,function(a){a.label&&e.push(a.label)})})});(this.series||[]).forEach(function(a){var f=a.options.dataLabels;a.visible&&(!1!==f.enabled||a._hasPointLabels)&&(f=function(a){return a.forEach(function(a){a.visible&&(q(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[]).forEach(function(d){var f=d.options;d.labelrank=v(f.labelrank,a.labelrank,
|
|
589
|
+
a.shapeArgs&&a.shapeArgs.height);f.allowOverlap?(d.oldOpacity=d.opacity,d.newOpacity=1,u(d,b)):e.push(d)})})},f(a.nodes||[]),f(a.points))});this.hideOverlappingLabels(e)});b.prototype.hideOverlappingLabels=function(b){var e=this,a=b.length,f=e.renderer,d,k,p,m=!1;var A=function(a){var b,d=a.box?0:a.padding||0,e=b=0,k;if(a&&(!a.alignAttr||a.placed)){var g=a.alignAttr||{x:a.attr("x"),y:a.attr("y")};var l=a.parentGroup;a.width||(b=a.getBBox(),a.width=b.width,a.height=b.height,b=f.fontMetrics(null,a.element).h);
|
|
590
|
+
var c=a.width-2*d;(k={left:"0",center:"0.5",right:"1"}[a.alignValue])?e=+k*c:F(a.x)&&Math.round(a.x)!==a.translateX&&(e=a.x-a.translateX);return{x:g.x+(l.translateX||0)+d-(e||0),y:g.y+(l.translateY||0)+d-b,width:a.width-2*d,height:a.height-2*d}}};for(k=0;k<a;k++)if(d=b[k])d.oldOpacity=d.opacity,d.newOpacity=1,d.absoluteBox=A(d);b.sort(function(a,b){return(b.labelrank||0)-(a.labelrank||0)});for(k=0;k<a;k++){var w=(A=b[k])&&A.absoluteBox;for(d=k+1;d<a;++d){var v=(p=b[d])&&p.absoluteBox;!w||!v||A===
|
|
591
|
+
p||0===A.newOpacity||0===p.newOpacity||"hidden"===A.visibility||"hidden"===p.visibility||v.x>=w.x+w.width||v.x+v.width<=w.x||v.y>=w.y+w.height||v.y+v.height<=w.y||((A.labelrank<p.labelrank?A:p).newOpacity=0)}}b.forEach(function(a){u(a,e)&&(m=!0)});m&&B(e,"afterHideAllOverlappingLabels")}});J(e,"Core/Responsive.js",[e["Core/Utilities.js"]],function(b){var e=b.extend,u=b.find,C=b.isArray,B=b.isObject,q=b.merge,F=b.objectEach,x=b.pick,v=b.splat,m=b.uniqueKey,l;(function(a){var b=[];a.compose=function(a){-1===
|
|
592
|
+
b.indexOf(a)&&(b.push(a),e(a.prototype,d.prototype));return a};var d=function(){function a(){}a.prototype.currentOptions=function(a){function b(a,f,h,e){var k;F(a,function(a,g){if(!e&&-1<d.collectionsWithUpdate.indexOf(g)&&f[g])for(a=v(a),h[g]=[],k=0;k<Math.max(a.length,f[g].length);k++)f[g][k]&&(void 0===a[k]?h[g][k]=f[g][k]:(h[g][k]={},b(a[k],f[g][k],h[g][k],e+1)));else B(a)?(h[g]=C(a)?[]:{},b(a,f[g]||{},h[g],e+1)):h[g]="undefined"===typeof f[g]?null:f[g]})}var d=this,f={};b(a,this.options,f,0);
|
|
593
|
+
return f};a.prototype.matchResponsiveRule=function(a,b){var d=a.condition;(d.callback||function(){return this.chartWidth<=x(d.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=x(d.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=x(d.minWidth,0)&&this.chartHeight>=x(d.minHeight,0)}).call(this)&&b.push(a._id)};a.prototype.setResponsive=function(a,b){var d=this,f=this.options.responsive,e=this.currentResponsive,k=[];!b&&f&&f.rules&&f.rules.forEach(function(a){"undefined"===typeof a._id&&(a._id=m());d.matchResponsiveRule(a,
|
|
594
|
+
k)},this);b=q.apply(void 0,k.map(function(a){return u((f||{}).rules||[],function(b){return b._id===a})}).map(function(a){return a&&a.chartOptions}));b.isResponsiveOptions=!0;k=k.toString()||void 0;k!==(e&&e.ruleIds)&&(e&&this.update(e.undoOptions,a,!0),k?(e=this.currentOptions(b),e.isResponsiveOptions=!0,this.currentResponsive={ruleIds:k,mergedOptions:b,undoOptions:e},this.update(b,a,!0)):this.currentResponsive=void 0)};return a}()})(l||(l={}));"";"";return l});J(e,"masters/highcharts.src.js",[e["Core/Globals.js"],
|
|
595
|
+
e["Core/Utilities.js"],e["Core/Defaults.js"],e["Core/Animation/Fx.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/Renderer/HTML/AST.js"],e["Core/FormatUtilities.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Renderer/HTML/HTMLElement.js"],e["Core/Renderer/HTML/HTMLRenderer.js"],e["Core/Axis/Axis.js"],e["Core/Axis/DateTimeAxis.js"],e["Core/Axis/LogarithmicAxis.js"],e["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],
|
|
596
|
+
e["Core/Axis/Tick.js"],e["Core/Tooltip.js"],e["Core/Series/Point.js"],e["Core/Pointer.js"],e["Core/MSPointer.js"],e["Core/Legend/Legend.js"],e["Core/Chart/Chart.js"],e["Core/Axis/Stacking/StackingAxis.js"],e["Core/Axis/Stacking/StackItem.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Series/Column/ColumnSeries.js"],e["Series/Column/ColumnDataLabel.js"],e["Series/Pie/PieSeries.js"],e["Series/Pie/PieDataLabel.js"],e["Core/Series/DataLabel.js"],e["Core/Responsive.js"],e["Core/Color/Color.js"],
|
|
597
|
+
e["Core/Time.js"]],function(b,e,u,C,B,q,F,x,v,m,l,a,f,d,k,p,E,A,w,I,t,h,y,r,n,g,D,c,z,G,H,O,P,T,J){b.animate=B.animate;b.animObject=B.animObject;b.getDeferredAnimation=B.getDeferredAnimation;b.setAnimation=B.setAnimation;b.stop=B.stop;b.timers=C.timers;b.AST=q;b.Axis=f;b.Chart=y;b.chart=y.chart;b.Fx=C;b.Legend=h;b.PlotLineOrBand=p;b.Point=w;b.Pointer=t.isRequired()?t:I;b.Series=g;b.StackItem=n;b.SVGElement=v;b.SVGRenderer=m;b.Tick=E;b.Time=J;b.Tooltip=A;b.Color=T;b.color=T.parse;a.compose(m);l.compose(v);
|
|
598
|
+
b.defaultOptions=u.defaultOptions;b.getOptions=u.getOptions;b.time=u.defaultTime;b.setOptions=u.setOptions;b.dateFormat=F.dateFormat;b.format=F.format;b.numberFormat=F.numberFormat;b.addEvent=e.addEvent;b.arrayMax=e.arrayMax;b.arrayMin=e.arrayMin;b.attr=e.attr;b.clearTimeout=e.clearTimeout;b.correctFloat=e.correctFloat;b.createElement=e.createElement;b.css=e.css;b.defined=e.defined;b.destroyObjectProperties=e.destroyObjectProperties;b.discardElement=e.discardElement;b.distribute=x.distribute;b.erase=
|
|
599
|
+
e.erase;b.error=e.error;b.extend=e.extend;b.extendClass=e.extendClass;b.find=e.find;b.fireEvent=e.fireEvent;b.getMagnitude=e.getMagnitude;b.getStyle=e.getStyle;b.inArray=e.inArray;b.isArray=e.isArray;b.isClass=e.isClass;b.isDOMElement=e.isDOMElement;b.isFunction=e.isFunction;b.isNumber=e.isNumber;b.isObject=e.isObject;b.isString=e.isString;b.keys=e.keys;b.merge=e.merge;b.normalizeTickInterval=e.normalizeTickInterval;b.objectEach=e.objectEach;b.offset=e.offset;b.pad=e.pad;b.pick=e.pick;b.pInt=e.pInt;
|
|
600
|
+
b.relativeLength=e.relativeLength;b.removeEvent=e.removeEvent;b.seriesType=D.seriesType;b.splat=e.splat;b.stableSort=e.stableSort;b.syncTimeout=e.syncTimeout;b.timeUnits=e.timeUnits;b.uniqueKey=e.uniqueKey;b.useSerialIds=e.useSerialIds;b.wrap=e.wrap;z.compose(c);O.compose(g);d.compose(f);k.compose(f);H.compose(G);p.compose(f);P.compose(y);r.compose(f,y,g);return b});J(e,"Core/Axis/Color/ColorAxisComposition.js",[e["Core/Color/Color.js"],e["Core/Utilities.js"]],function(b,e){var u=b.parse,C=e.addEvent,
|
|
601
|
+
B=e.extend,q=e.merge,F=e.pick,x=e.splat,v;(function(b){function e(){var a=this,b=this.options;this.colorAxis=[];b.colorAxis&&(b.colorAxis=x(b.colorAxis),b.colorAxis.forEach(function(b,d){b.index=d;new y(a,b)}))}function a(a){var b=this,d=function(c){c=a.allItems.indexOf(c);-1!==c&&(b.destroyItem(a.allItems[c]),a.allItems.splice(c,1))},f=[],c,h;(this.chart.colorAxis||[]).forEach(function(a){(c=a.options)&&c.showInLegend&&(c.dataClasses&&c.visible?f=f.concat(a.getDataClassLegendSymbols()):c.visible&&
|
|
602
|
+
f.push(a),a.series.forEach(function(a){if(!a.options.showInLegend||c.dataClasses)"point"===a.options.legendType?a.points.forEach(function(a){d(a)}):d(a)}))});for(h=f.length;h--;)a.allItems.unshift(f[h])}function f(a){a.visible&&a.item.legendColor&&a.item.legendItem.symbol.attr({fill:a.item.legendColor})}function d(){var a=this.chart.colorAxis;a&&a.forEach(function(a,b,d){a.update({},d)})}function k(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function p(){var a=
|
|
603
|
+
this.axisTypes;a?-1===a.indexOf("colorAxis")&&a.push("colorAxis"):this.axisTypes=["colorAxis"]}function m(a){var b=this,d=a?"show":"hide";b.visible=b.options.visible=!!a;["graphic","dataLabel"].forEach(function(a){if(b[a])b[a][d]()});this.series.buildKDTree()}function A(){var a=this,b=this.options.nullColor,d=this.colorAxis,f=this.colorKey;(this.data.length?this.data:this.points).forEach(function(c){var g=c.getNestedProperty(f);(g=c.options.color||(c.isNull||null===c.value?b:d&&"undefined"!==typeof g?
|
|
604
|
+
d.toColor(g,c):c.color||a.color))&&c.color!==g&&(c.color=g,"point"===a.options.legendType&&c.legendItem&&c.legendItem.label&&a.chart.legend.colorizeItem(c,c.visible))})}function w(a){var b=a.prototype.createAxis;a.prototype.createAxis=function(a,d){if("colorAxis"!==a)return b.apply(this,arguments);var c=new y(this,q(d.axis,{index:this[a].length,isX:!1}));this.isDirtyLegend=!0;this.axes.forEach(function(a){a.series=[]});this.series.forEach(function(a){a.bindAxes();a.isDirtyData=!0});F(d.redraw,!0)&&
|
|
605
|
+
this.redraw(d.animation);return c}}function v(){this.elem.attr("fill",u(this.start).tweenTo(u(this.end),this.pos),void 0,!0)}function t(){this.elem.attr("stroke",u(this.start).tweenTo(u(this.end),this.pos),void 0,!0)}var h=[],y;b.compose=function(b,l,g,q,c){y||(y=b);-1===h.indexOf(l)&&(h.push(l),b=l.prototype,b.collectionsWithUpdate.push("colorAxis"),b.collectionsWithInit.colorAxis=[b.addColorAxis],C(l,"afterGetAxes",e),w(l));-1===h.indexOf(g)&&(h.push(g),l=g.prototype,l.fillSetter=v,l.strokeSetter=
|
|
606
|
+
t);-1===h.indexOf(q)&&(h.push(q),C(q,"afterGetAllItems",a),C(q,"afterColorizeItem",f),C(q,"afterUpdate",d));-1===h.indexOf(c)&&(h.push(c),B(c.prototype,{optionalAxis:"colorAxis",translateColors:A}),B(c.prototype.pointClass.prototype,{setVisible:m}),C(c,"afterTranslate",k),C(c,"bindAxes",p))};b.pointSetVisible=m})(v||(v={}));return v});J(e,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,
|
|
607
|
+
offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0}});J(e,"Core/Axis/Color/ColorAxis.js",[e["Core/Axis/Axis.js"],e["Core/Color/Color.js"],e["Core/Axis/Color/ColorAxisComposition.js"],e["Core/Axis/Color/ColorAxisDefaults.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,u,C,B,q,F,x){var v=this&&this.__extends||
|
|
608
|
+
function(){var a=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 f(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),m=e.parse,l=F.series,a=x.extend,f=x.isNumber,d=x.merge,k=x.pick;e=function(b){function e(a,d){var f=b.call(this,a,d)||this;f.beforePadding=!1;f.chart=void 0;f.coll="colorAxis";
|
|
609
|
+
f.dataClasses=void 0;f.name="";f.options=void 0;f.stops=void 0;f.visible=!0;f.init(a,d);return f}v(e,b);e.compose=function(a,b,d,f){u.compose(e,a,b,d,f)};e.prototype.init=function(a,f){var k=a.options.legend||{},l=f.layout?"vertical"!==f.layout:"vertical"!==k.layout,h=f.visible;k=d(e.defaultColorAxisOptions,f,{showEmpty:!1,title:null,visible:k.enabled&&!1!==h});this.coll="colorAxis";this.side=f.side||l?2:1;this.reversed=f.reversed||!l;this.opposite=!l;b.prototype.init.call(this,a,k);this.userOptions.visible=
|
|
610
|
+
h;f.dataClasses&&this.initDataClasses(f);this.initStops();this.horiz=l;this.zoomEnabled=!1};e.prototype.initDataClasses=function(a){var b=this.chart,f=this.legendItem=this.legendItem||{},e=a.dataClasses.length,h=this.options,k,l=0,p=b.options.chart.colorCount;this.dataClasses=k=[];f.labels=[];(a.dataClasses||[]).forEach(function(a,f){a=d(a);k.push(a);if(b.styledMode||!a.color)"category"===h.dataClassColor?(b.styledMode||(f=b.options.colors,p=f.length,a.color=f[l]),a.colorIndex=l,l++,l===p&&(l=0)):
|
|
611
|
+
a.color=m(h.minColor).tweenTo(m(h.maxColor),2>e?.5:f/(e-1))})};e.prototype.hasData=function(){return!!(this.tickPositions||[]).length};e.prototype.setTickPositions=function(){if(!this.dataClasses)return b.prototype.setTickPositions.call(this)};e.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(a){a.color=m(a[1])})};e.prototype.setOptions=function(a){b.prototype.setOptions.call(this,a);this.options.crosshair=
|
|
612
|
+
this.options.marker};e.prototype.setAxisSize=function(){var a=this.legendItem&&this.legendItem.symbol,b=this.chart,d=b.options.legend||{},f,h;a?(this.left=d=a.attr("x"),this.top=f=a.attr("y"),this.width=h=a.attr("width"),this.height=a=a.attr("height"),this.right=b.chartWidth-d-h,this.bottom=b.chartHeight-f-a,this.len=this.horiz?h:a,this.pos=this.horiz?d:f):this.len=(this.horiz?d.symbolWidth:d.symbolHeight)||e.defaultLegendLength};e.prototype.normalizedValue=function(a){this.logarithmic&&(a=this.logarithmic.log2lin(a));
|
|
613
|
+
return 1-(this.max-a)/(this.max-this.min||1)};e.prototype.toColor=function(a,b){var d=this.dataClasses,f=this.stops,h;if(d)for(h=d.length;h--;){var e=d[h];var k=e.from;f=e.to;if(("undefined"===typeof k||a>=k)&&("undefined"===typeof f||a<=f)){var l=e.color;b&&(b.dataClass=h,b.colorIndex=e.colorIndex);break}}else{a=this.normalizedValue(a);for(h=f.length;h--&&!(a>f[h][0]););k=f[h]||f[h+1];f=f[h+1]||k;a=1-(f[0]-a)/(f[0]-k[0]||1);l=k.color.tweenTo(f.color,a)}return l};e.prototype.getOffset=function(){var a=
|
|
614
|
+
this.legendItem&&this.legendItem.group,d=this.chart.axisOffset[this.side];if(a){this.axisParent=a;b.prototype.getOffset.call(this);var f=this.chart.legend;f.allItems.forEach(function(a){a instanceof e&&a.drawLegendSymbol(f,a)});f.render();this.chart.getMargins(!0);this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width);this.chart.axisOffset[this.side]=d}};e.prototype.setLegendColor=function(){var a=this.reversed,b=a?1:0;a=a?0:1;b=this.horiz?[b,0,a,0]:[0,a,0,b];this.legendColor={linearGradient:{x1:b[0],
|
|
615
|
+
y1:b[1],x2:b[2],y2:b[3]},stops:this.stops}};e.prototype.drawLegendSymbol=function(a,b){b=b.legendItem||{};var d=a.padding,f=a.options,h=k(f.itemDistance,10),l=this.horiz,p=k(f.symbolWidth,l?e.defaultLegendLength:12),m=k(f.symbolHeight,l?12:e.defaultLegendLength);f=k(f.labelPadding,l?16:30);this.setLegendColor();b.symbol||(b.symbol=this.chart.renderer.rect(0,a.baseline-11,p,m).attr({zIndex:1}).add(b.group));b.labelWidth=p+d+(l?h:this.options.labels.x+this.maxLabelLength);b.labelHeight=m+d+(l?f:0)};
|
|
616
|
+
e.prototype.setState=function(a){this.series.forEach(function(b){b.setState(a)})};e.prototype.setVisible=function(){};e.prototype.getSeriesExtremes=function(){var a=this.series,b=a.length,d;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;){var f=a[b];var h=f.colorKey=k(f.options.colorKey,f.colorKey,f.pointValKey,f.zoneAxis,"y");var e=f.pointArrayMap;var p=f[h+"Min"]&&f[h+"Max"];if(f[h+"Data"])var m=f[h+"Data"];else if(e){m=[];e=e.indexOf(h);var g=f.yData;if(0<=e&&g)for(d=0;d<g.length;d++)m.push(k(g[d][e],
|
|
617
|
+
g[d]))}else m=f.yData;p?(f.minColorValue=f[h+"Min"],f.maxColorValue=f[h+"Max"]):(m=l.prototype.getExtremes.call(f,m),f.minColorValue=m.dataMin,f.maxColorValue=m.dataMax);"undefined"!==typeof f.minColorValue&&(this.dataMin=Math.min(this.dataMin,f.minColorValue),this.dataMax=Math.max(this.dataMax,f.maxColorValue));p||l.prototype.applyExtremes.call(f)}};e.prototype.drawCrosshair=function(a,d){var f=this.legendItem||{},e=d&&d.plotX,h=d&&d.plotY,k=this.pos,l=this.len;if(d){var p=this.toPixels(d.getNestedProperty(d.series.colorKey));
|
|
618
|
+
p<k?p=k-2:p>k+l&&(p=k+l+2);d.plotX=p;d.plotY=this.len-p;b.prototype.drawCrosshair.call(this,a,d);d.plotX=e;d.plotY=h;this.cross&&!this.cross.addedToColorAxis&&f.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(f.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!==typeof this.crosshair||this.cross.attr({fill:this.crosshair.color}))}};e.prototype.getPlotLinePath=function(a){var d=this.left,e=a.translatedValue,k=this.top;return f(e)?this.horiz?[["M",e-4,k-6],["L",e+
|
|
619
|
+
4,k-6],["L",e,k],["Z"]]:[["M",d,e],["L",d-6,e+6],["L",d-6,e-6],["Z"]]:b.prototype.getPlotLinePath.call(this,a)};e.prototype.update=function(a,d){var f=this.chart.legend;this.series.forEach(function(a){a.isDirtyData=!0});(a.dataClasses&&f.allItems||this.dataClasses)&&this.destroyItems();b.prototype.update.call(this,a,d);this.legendItem&&this.legendItem.label&&(this.setLegendColor(),f.colorizeItem(this,!0))};e.prototype.destroyItems=function(){var a=this.chart,b=this.legendItem||{};if(b.label)a.legend.destroyItem(this);
|
|
620
|
+
else if(b.labels){var d=0;for(b=b.labels;d<b.length;d++)a.legend.destroyItem(b[d])}a.isDirtyLegend=!0};e.prototype.destroy=function(){this.chart.isDirtyLegend=!0;this.destroyItems();b.prototype.destroy.apply(this,[].slice.call(arguments))};e.prototype.remove=function(a){this.destroyItems();b.prototype.remove.call(this,a)};e.prototype.getDataClassLegendSymbols=function(){var b=this,d=b.chart,f=b.legendItem&&b.legendItem.labels||[],e=d.options.legend,h=k(e.valueDecimals,-1),l=k(e.valueSuffix,""),p=
|
|
621
|
+
function(a){return b.series.reduce(function(b,c){b.push.apply(b,c.points.filter(function(b){return b.dataClass===a}));return b},[])},m;f.length||b.dataClasses.forEach(function(g,e){var c=g.from,k=g.to,n=d.numberFormatter,t=!0;m="";"undefined"===typeof c?m="< ":"undefined"===typeof k&&(m="> ");"undefined"!==typeof c&&(m+=n(c,h)+l);"undefined"!==typeof c&&"undefined"!==typeof k&&(m+=" - ");"undefined"!==typeof k&&(m+=n(k,h)+l);f.push(a({chart:d,name:m,options:{},drawLegendSymbol:q.drawRectangle,visible:!0,
|
|
622
|
+
isDataClass:!0,setState:function(a){for(var b=0,c=p(e);b<c.length;b++)c[b].setState(a)},setVisible:function(){this.visible=t=b.visible=!t;for(var a=0,c=p(e);a<c.length;a++)c[a].setVisible(t);d.legend.colorizeItem(this,t)}},g))});return f};e.defaultColorAxisOptions=C;e.defaultLegendLength=200;e.keepProps=["legendItem"];return e}(b);Array.prototype.push.apply(b.keepProps,e.keepProps);"";return e});J(e,"Maps/MapNavigationDefaults.js",[e["Core/Defaults.js"],e["Core/Utilities.js"]],function(b,e){e=e.extend;
|
|
623
|
+
var u={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1};e(b.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});return b.defaultOptions.mapNavigation=u});J(e,"Maps/MapNavigation.js",[e["Core/Chart/Chart.js"],
|
|
624
|
+
e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,u){function C(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function B(a){this.navButtons=[];this.init(a)}var q=e.doc,F=u.addEvent,x=u.extend,v=u.isNumber,m=u.merge,l=u.objectEach,a=u.pick;B.prototype.init=function(a){this.chart=a};B.prototype.update=function(b){var d=this,f=this.chart,e=f.options.mapNavigation,v,A=function(a){this.handler.call(f,a);C(a)},w=d.navButtons;b&&(e=f.options.mapNavigation=
|
|
625
|
+
m(f.options.mapNavigation,b));for(;w.length;)w.pop().destroy();a(e.enableButtons,e.enabled)&&!f.renderer.forExport&&(d.navButtonsGroup||(d.navButtonsGroup=f.renderer.g().attr({zIndex:4}).add()),l(e.buttons,function(a,b){a=m(e.buttonOptions,a);!f.styledMode&&a.theme&&(v=a.theme,v.style=m(a.theme.style,a.style));var h=f.renderer.button(a.text||"",0,0,A,v,void 0,void 0,void 0,"zoomIn"===b?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[b]).attr({width:a.width,
|
|
626
|
+
height:a.height,title:f.options.lang[b],padding:a.padding,zIndex:5}).add(d.navButtonsGroup);h.handler=a.onclick;F(h.element,"dblclick",C);w.push(h);x(a,{width:h.width,height:2*h.height});if(f.hasLoaded)h.align(a,!1,a.alignTo);else var k=F(f,"load",function(){h.element&&h.align(a,!1,a.alignTo);k()})}),b=function(){var a=f.exportingGroup&&f.exportingGroup.getBBox();if(a){var b=d.navButtonsGroup.getBBox();if(!(b.x>=a.x+a.width||b.x+b.width<=a.x||b.y>=a.y+a.height||b.y+b.height<=a.y)){var h=-b.y-b.height+
|
|
627
|
+
a.y-5;a=a.y+a.height-b.y+5;d.navButtonsGroup.attr({translateY:"bottom"===(e.buttonOptions&&e.buttonOptions.verticalAlign)?h:a})}}},f.hasLoaded||F(f,"render",b));this.updateEvents(e)};B.prototype.updateEvents=function(b){var d=this.chart;a(b.enableDoubleClickZoom,b.enabled)||b.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||F(d.container,"dblclick",function(a){d.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());a(b.enableMouseWheelZoom,
|
|
628
|
+
b.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||F(d.container,void 0!==q.onwheel?"wheel":void 0!==q.onmousewheel?"mousewheel":"DOMMouseScroll",function(a){d.pointer.inClass(a.target,"highcharts-no-mousewheel")||(d.pointer.onContainerMouseWheel(a),C(a));return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};x(b.prototype,{fitToBox:function(a,b){[["x","width"],["y","height"]].forEach(function(d){var f=d[0];d=d[1];a[f]+a[d]>b[f]+b[d]&&(a[d]>b[d]?(a[d]=b[d],a[f]=b[f]):
|
|
629
|
+
a[f]=b[f]+b[d]-a[d]);a[d]>b[d]&&(a[d]=b[d]);a[f]<b[f]&&(a[f]=b[f])});return a},mapZoom:function(a,b,e,l,m){this.mapView&&(v(a)&&(a=Math.log(a)/Math.log(.5)),this.mapView.zoomBy(a,v(b)&&v(e)?this.mapView.projection.inverse([b,e]):void 0,v(l)&&v(m)?[l,m]:void 0))}});F(b,"beforeRender",function(){this.mapNavigation=new B(this);this.mapNavigation.update()});e.MapNavigation=B});J(e,"Maps/MapPointer.js",[e["Core/Pointer.js"],e["Core/Utilities.js"]],function(b,e){var u=e.defined,C=e.extend,B=e.pick;e=e.wrap;
|
|
630
|
+
var q=b.prototype.normalize,F=0,x;C(b.prototype,{normalize:function(b,e){var l=this.chart;b=q.call(this,b,e);l&&l.mapView&&(e=l.mapView.pixelsToLonLat({x:b.chartX-l.plotLeft,y:b.chartY-l.plotTop}))&&C(b,e);return b},onContainerDblClick:function(b){var e=this.chart;b=this.normalize(b);e.options.mapNavigation.enableDoubleClickZoomTo?e.pointer.inClass(b.target,"highcharts-tracker")&&e.hoverPoint&&e.hoverPoint.zoomTo():e.isInsidePlot(b.chartX-e.plotLeft,b.chartY-e.plotTop)&&e.mapZoom(.5,void 0,void 0,
|
|
631
|
+
b.chartX,b.chartY)},onContainerMouseWheel:function(b){var e=this.chart;b=this.normalize(b);var l=u(b.wheelDelta)&&-b.wheelDelta/120||b.deltaY||b.detail;1<=Math.abs(l)&&(F+=Math.abs(l),x&&clearTimeout(x),x=setTimeout(function(){F=0},50));10>F&&e.isInsidePlot(b.chartX-e.plotLeft,b.chartY-e.plotTop)&&e.mapView&&e.mapView.zoomBy((e.options.mapNavigation.mouseWheelSensitivity-1)*-l,void 0,[b.chartX,b.chartY],1>Math.abs(l)?!1:void 0)}});e(b.prototype,"zoomOption",function(b){var e=this.chart.options.mapNavigation;
|
|
632
|
+
B(e.enableTouchZoom,e.enabled)&&(this.chart.options.chart.zooming.pinchType="xy");b.apply(this,[].slice.call(arguments,1))});e(b.prototype,"pinchTranslate",function(b,e,l,a,f,d,k){b.call(this,e,l,a,f,d,k);"map"===this.chart.options.chart.type&&this.hasZoom&&(b=a.scaleX>a.scaleY,this.pinchTranslateDirection(!b,e,l,a,f,d,k,b?a.scaleX:a.scaleY))})});J(e,"Series/ColorMapComposition.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e){var u=b.seriesTypes.column.prototype,C=e.addEvent,
|
|
633
|
+
B=e.defined,q;(function(b){function e(b){this.moveToTopOnHover&&this.graphic&&this.graphic.attr({zIndex:b&&"hover"===b.state?1:0})}var q=[];b.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value&&(void 0===this.value||!isNaN(this.value))}};b.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],
|
|
634
|
+
colorAttribs:function(b){var e={};!B(b.color)||b.state&&"normal"!==b.state||(e[this.colorProp||"fill"]=b.color);return e},pointAttribs:u.pointAttribs};b.compose=function(b){var l=b.prototype.pointClass;-1===q.indexOf(l)&&(q.push(l),C(l,"afterSetState",e));return b}})(q||(q={}));return q});J(e,"Maps/MapSymbols.js",[e["Core/Renderer/SVG/SVGRenderer.js"]],function(b){function e(b,e,B,q,F,x,v,m){return[["M",b+F,e],["L",b+B-x,e],["C",b+B-x/2,e,b+B,e+x/2,b+B,e+x],["L",b+B,e+q-v],["C",b+B,e+q-v/2,b+B-v/
|
|
635
|
+
2,e+q,b+B-v,e+q],["L",b+m,e+q],["C",b+m/2,e+q,b,e+q-m/2,b,e+q-m],["L",b,e+F],["C",b,e+F/2,b+F/2,e,b+F,e],["Z"]]}b=b.prototype.symbols;b.bottombutton=function(b,C,B,q,F){F=F&&F.r||0;return e(b-1,C-1,B,q,0,0,F,F)};b.topbutton=function(b,C,B,q,F){F=F&&F.r||0;return e(b-1,C-1,B,q,F,F,0,0)};return b});J(e,"Core/Chart/MapChart.js",[e["Core/Chart/Chart.js"],e["Core/Defaults.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],function(b,e,u,C){var B=this&&this.__extends||function(){var b=function(e,
|
|
636
|
+
l){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(e,l)};return function(e,l){function a(){this.constructor=e}b(e,l);e.prototype=null===l?Object.create(l):(a.prototype=l.prototype,new a)}}(),q=e.getOptions,F=C.merge,x=C.pick;b=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}B(e,b);e.prototype.init=function(e,a){var f=q().credits;e=F({chart:{panning:{enabled:!0,type:"xy"},
|
|
637
|
+
type:"map"},credits:{mapText:x(f.mapText,' \u00a9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:x(f.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},e);b.prototype.init.call(this,e,a)};return e}(b);(function(b){b.maps={};b.mapChart=function(e,l,a){return new b(e,l,a)};b.splitPath=function(b){"string"===typeof b&&(b=b.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,""),b=b.split(/[ ,;]+/).map(function(b){return/[A-za-z]/.test(b)?
|
|
638
|
+
b:parseFloat(b)}));return u.prototype.pathToSegments(b)}})(b||(b={}));return b});J(e,"Maps/MapUtilities.js",[],function(){return{boundsFromPath:function(b){var e=-Number.MAX_VALUE,u=Number.MAX_VALUE,C=-Number.MAX_VALUE,B=Number.MAX_VALUE,q;b.forEach(function(b){var x=b[b.length-2];b=b[b.length-1];"number"===typeof x&&"number"===typeof b&&(u=Math.min(u,x),e=Math.max(e,x),B=Math.min(B,b),C=Math.max(C,b),q=!0)});if(q)return{x1:u,y1:B,x2:e,y2:C}},pointInPolygon:function(b,e){var u,C=!1,B=b.x,q=b.y;b=
|
|
639
|
+
0;for(u=e.length-1;b<e.length;u=b++){var F=e[b][1]>q;var x=e[u][1]>q;F!==x&&B<(e[u][0]-e[b][0])*(q-e[b][1])/(e[u][1]-e[b][1])+e[b][0]&&(C=!C)}return C}}});J(e,"Series/Map/MapPoint.js",[e["Series/ColorMapComposition.js"],e["Maps/MapUtilities.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,u,C){var B=this&&this.__extends||function(){var b=function(e,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&
|
|
640
|
+
(a[d]=b[d])};return b(e,a)};return function(e,a){function f(){this.constructor=e}b(e,a);e.prototype=null===a?Object.create(a):(f.prototype=a.prototype,new f)}}(),q=e.boundsFromPath,F=C.extend,x=C.isNumber,v=C.pick;e=function(b){function e(){var a=null!==b&&b.apply(this,arguments)||this;a.options=void 0;a.path=void 0;a.series=void 0;return a}B(e,b);e.getProjectedPath=function(a,b){a.projectedPath||(b&&a.geometry?(b.hasCoordinates=!0,a.projectedPath=b.path(a.geometry)):a.projectedPath=a.path);return a.projectedPath||
|
|
641
|
+
[]};e.prototype.applyOptions=function(a,f){var d=this.series;a=b.prototype.applyOptions.call(this,a,f);f=d.joinBy;d.mapData&&d.mapMap&&(f=b.prototype.getNestedProperty.call(a,f[1]),(d="undefined"!==typeof f&&d.mapMap[f])?F(a,d):a.value=a.value||null);return a};e.prototype.getProjectedBounds=function(a){a=e.getProjectedPath(this,a);a=q(a);var b=this.properties;if(a){var d=b&&b["hc-middle-x"];b=b&&b["hc-middle-y"];a.midX=a.x1+(a.x2-a.x1)*v(this.middleX,x(d)?d:.5);d=v(this.middleY,x(b)?b:.5);this.geometry||
|
|
642
|
+
(d=1-d);a.midY=a.y2-(a.y2-a.y1)*d;return a}};e.prototype.onMouseOver=function(a){C.clearTimeout(this.colorInterval);if(!this.isNull&&this.visible||this.series.options.nullInteraction)b.prototype.onMouseOver.call(this,a);else this.series.onMouseOut(a)};e.prototype.setVisible=function(a){var b=a?"show":"hide";this.visible=this.options.visible=!!a;if(this.dataLabel)this.dataLabel[b]();this.graphic&&this.graphic.attr(this.series.pointAttribs(this))};e.prototype.zoomTo=function(){var a=this.series.chart;
|
|
643
|
+
a.mapView&&this.bounds&&(a.mapView.fitToBounds(this.bounds,void 0,!1),this.series.isDirty=!0,a.redraw())};return e}(u.seriesTypes.scatter.prototype.pointClass);F(e.prototype,{dataLabelOnNull:b.pointMembers.dataLabelOnNull,moveToTopOnHover:b.pointMembers.moveToTopOnHover,isValid:b.pointMembers.isValid});return e});J(e,"Maps/MapViewOptionsDefault.js",[],function(){return{center:[0,0],maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0}});J(e,"Maps/MapViewInsetsOptionsDefault.js",
|
|
644
|
+
[],function(){return{borderColor:"#cccccc",borderWidth:1,center:[0,0],padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}});J(e,"Extensions/GeoJSON.js",[e["Core/Chart/Chart.js"],e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,u,C){function B(a,b){b||(b=Object.keys(a.objects)[0]);b=a.objects[b];if(b["hc-decoded-geojson"])return b["hc-decoded-geojson"];var d=a.arcs;if(a.transform){var f=a.transform,e=f.scale,l=f.translate;d=a.arcs.map(function(a){var b=
|
|
645
|
+
0,d=0;return a.map(function(a){a=a.slice();a[0]=(b+=a[0])*e[0]+l[0];a[1]=(d+=a[1])*e[1]+l[1];return a})})}var m=function(a){return"number"===typeof a[0]?a.reduce(function(a,b,f){var e=0>b?d[~b]:d[b];0>b?(e=e.slice(0,0===f?e.length:e.length-1),e.reverse()):f&&(e=e.slice(1));return a.concat(e)},[]):a.map(m)};f=b.geometries.map(function(a){return{type:"Feature",properties:a.properties,geometry:{type:a.type,coordinates:a.coordinates||m(a.arcs)}}});a={type:"FeatureCollection",copyright:a.copyright,copyrightShort:a.copyrightShort,
|
|
646
|
+
copyrightUrl:a.copyrightUrl,features:f,"hc-recommended-mapview":b["hc-recommended-mapview"],bbox:a.bbox,title:a.title};return b["hc-decoded-geojson"]=a}function q(a,b,d){void 0===b&&(b="map");var f=[];a="Topology"===a.type?B(a):a;a.features.forEach(function(a){var d=a.geometry||{},e=d.type;d=d.coordinates;a=a.properties;var k;"map"!==b&&"mapbubble"!==b||"Polygon"!==e&&"MultiPolygon"!==e?"mapline"!==b||"LineString"!==e&&"MultiLineString"!==e?"mappoint"===b&&"Point"===e&&d.length&&(k={geometry:{coordinates:d,
|
|
647
|
+
type:e}}):d.length&&(k={geometry:{coordinates:d,type:e}}):d.length&&(k={geometry:{coordinates:d,type:e}});if(k){e=a&&(a.name||a.NAME);d=a&&a.lon;var l=a&&a.lat;f.push(m(k,{lat:"number"===typeof l?l:void 0,lon:"number"===typeof d?d:void 0,name:"string"===typeof e?e:void 0,properties:a}))}});d&&a.copyrightShort&&(d.chart.mapCredits=F(d.chart.options.credits.mapText,{geojson:a}),d.chart.mapCreditsFull=F(d.chart.options.credits.mapTextFull,{geojson:a}));return f}var F=e.format,x=u.win,v=C.error,m=C.extend,
|
|
648
|
+
l=C.merge;e=C.wrap;"";b.prototype.transformFromLatLon=function(a,b){var d=this.options.chart.proj4||x.proj4;if(d){var f=b.jsonmarginX;f=void 0===f?0:f;var e=b.jsonmarginY;e=void 0===e?0:e;var l=b.jsonres;l=void 0===l?1:l;var m=b.scale;m=void 0===m?1:m;var w=b.xoffset;w=void 0===w?0:w;var q=b.xpan;q=void 0===q?0:q;var t=b.yoffset;t=void 0===t?0:t;var h=b.ypan;h=void 0===h?0:h;a=d(b.crs,[a.lon,a.lat]);d=b.cosAngle||b.rotation&&Math.cos(b.rotation);var y=b.sinAngle||b.rotation&&Math.sin(b.rotation);
|
|
649
|
+
b=b.rotation?[a[0]*d+a[1]*y,-a[0]*y+a[1]*d]:a;return{x:((b[0]-w)*m+q)*l+f,y:-(((t-b[1])*m+h)*l-e)}}v(21,!1,this)};b.prototype.transformToLatLon=function(a,b){var d=this.options.chart.proj4||x.proj4;if(!d)v(21,!1,this);else if(null!==a.y){var f=b.jsonmarginX,e=b.jsonmarginY,l=b.jsonres;l=void 0===l?1:l;var m=b.scale;m=void 0===m?1:m;var w=b.xoffset,q=b.xpan,t=b.yoffset,h=b.ypan;a={x:((a.x-(void 0===f?0:f))/l-(void 0===q?0:q))/m+(void 0===w?0:w),y:((a.y-(void 0===e?0:e))/l+(void 0===h?0:h))/m+(void 0===
|
|
650
|
+
t?0:t)};f=b.cosAngle||b.rotation&&Math.cos(b.rotation);e=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=d(b.crs,"WGS84",b.rotation?{x:a.x*f+a.y*-e,y:a.x*e+a.y*f}:a);return{lat:b.y,lon:b.x}}};b.prototype.fromPointToLatLon=function(a){return this.mapView&&this.mapView.projectedUnitsToLonLat(a)};b.prototype.fromLatLonToPoint=function(a){return this.mapView&&this.mapView.lonLatToProjectedUnits(a)};e(b.prototype,"addCredits",function(a,b){b=l(!0,this.options.credits,b);this.mapCredits&&(b.href=null);a.call(this,
|
|
651
|
+
b);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})});u.geojson=q;return{geojson:q,topo2geo:B}});J(e,"Core/Geometry/PolygonClip.js",[],function(){var b=function(b,e,q){return(e[0]-b[0])*(q[1]-b[1])>(e[1]-b[1])*(q[0]-b[0])},e=function(b,e,q,u){var x=[b[0]-e[0],b[1]-e[1]],v=[q[0]-u[0],q[1]-u[1]];b=b[0]*e[1]-b[1]*e[0];q=q[0]*u[1]-q[1]*u[0];u=1/(x[0]*v[1]-x[1]*v[0]);x=[(b*v[0]-q*x[0])*u,(b*v[1]-q*x[1])*u];x.isIntersection=!0;return x},u;(function(u){u.clipLineString=function(b,
|
|
652
|
+
e){var q=[];b=u.clipPolygon(b,e,!1);for(e=1;e<b.length;e++)b[e].isIntersection&&b[e-1].isIntersection&&(q.push(b.splice(0,e)),e=0),e===b.length-1&&q.push(b);return q};u.clipPolygon=function(u,q,C){void 0===C&&(C=!0);for(var x=q[q.length-1],v,m,l=u,a=0;a<q.length;a++){var f=l;u=q[a];l=[];v=C?f[f.length-1]:f[0];for(var d=0;d<f.length;d++)m=f[d],b(x,u,m)?(b(x,u,v)||l.push(e(x,u,v,m)),l.push(m)):b(x,u,v)&&l.push(e(x,u,v,m)),v=m;x=u}return l}})(u||(u={}));return u});J(e,"Maps/Projections/LambertConformalConic.js",
|
|
653
|
+
[],function(){var b=Math.sign||function(b){return 0===b?0:0<b?1:-1},e=Math.PI/180,u=Math.PI/2;return function(){function C(B){var q,C=(B.parallels||[]).map(function(b){return b*e}),x=C[0]||0;C=null!==(q=C[1])&&void 0!==q?q:x;q=Math.cos(x);"object"===typeof B.projectedBounds&&(this.projectedBounds=B.projectedBounds);B=x===C?Math.sin(x):Math.log(q/Math.cos(C))/Math.log(Math.tan((u+C)/2)/Math.tan((u+x)/2));1e-10>Math.abs(B)&&(B=1e-10*(b(B)||1));this.n=B;this.c=q*Math.pow(Math.tan((u+x)/2),B)/B}C.prototype.forward=
|
|
654
|
+
function(b){var q=b[0]*e,B=this.c,x=this.n,v=this.projectedBounds;b=b[1]*e;0<B?b<-u+.000001&&(b=-u+.000001):b>u-.000001&&(b=u-.000001);var m=B/Math.pow(Math.tan((u+b)/2),x);b=m*Math.sin(x*q)*63.78137;q=63.78137*(B-m*Math.cos(x*q));B=[b,q];v&&(b<v.x1||b>v.x2||q<v.y1||q>v.y2)&&(B.outside=!0);return B};C.prototype.inverse=function(B){var q=B[0]/63.78137,C=this.c,x=this.n;B=C-B[1]/63.78137;var v=b(x)*Math.sqrt(q*q+B*B),m=Math.atan2(q,Math.abs(B))*b(B);0>B*x&&(m-=Math.PI*b(q)*b(B));return[m/x/e,(2*Math.atan(Math.pow(C/
|
|
655
|
+
v,1/x))-u)/e]};return C}()});J(e,"Maps/Projections/EqualEarth.js",[],function(){var b=Math.sqrt(3)/2;return function(){function e(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}e.prototype.forward=function(e){var u=Math.PI/180,B=Math.asin(b*Math.sin(e[1]*u)),q=B*B,F=q*q*q;return[e[0]*u*Math.cos(B)*74.03120656864502/(b*(1.340264+3*-.081106*q+F*(7*.000893+.034164*q))),74.03120656864502*B*(1.340264+-.081106*q+F*(.000893+.003796*q))]};e.prototype.inverse=
|
|
656
|
+
function(e){var u=e[0]/74.03120656864502;e=e[1]/74.03120656864502;var B=180/Math.PI,q=e,F;for(F=0;12>F;++F){var x=q*q;var v=x*x*x;var m=q*(1.340264+-.081106*x+v*(.000893+.003796*x))-e;x=1.340264+3*-.081106*x+v*(7*.000893+.034164*x);q-=m/=x;if(1e-9>Math.abs(m))break}x=q*q;return[B*b*u*(1.340264+3*-.081106*x+x*x*x*(7*.000893+.034164*x))/Math.cos(q),B*Math.asin(Math.sin(q)/b)]};return e}()});J(e,"Maps/Projections/Miller.js",[],function(){var b=Math.PI/4,e=Math.PI/180;return function(){function u(){this.bounds=
|
|
657
|
+
{x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}u.prototype.forward=function(u){return[u[0]*e*63.78137,79.7267125*Math.log(Math.tan(b+.4*u[1]*e))]};u.prototype.inverse=function(u){return[u[0]/63.78137/e,2.5*(Math.atan(Math.exp(u[1]/63.78137*.8))-b)/e]};return u}()});J(e,"Maps/Projections/Orthographic.js",[],function(){var b=Math.PI/180;return function(){function e(){this.antimeridianCutting=!1;this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,
|
|
658
|
+
y2:63.78460826781007}}e.prototype.forward=function(e){var u=e[0];e=e[1]*b;e=[Math.cos(e)*Math.sin(u*b)*63.78460826781007,63.78460826781007*Math.sin(e)];if(-90>u||90<u)e.outside=!0;return e};e.prototype.inverse=function(e){var u=e[0]/63.78460826781007;e=e[1]/63.78460826781007;var B=Math.sqrt(u*u+e*e),q=Math.asin(B),F=Math.sin(q);return[Math.atan2(u*F,B*Math.cos(q))/b,Math.asin(B&&e*F/B)/b]};return e}()});J(e,"Maps/Projections/WebMercator.js",[],function(){var b=Math.PI/180;return function(){function e(){this.bounds=
|
|
659
|
+
{x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071};this.maxLatitude=85.0511287798}e.prototype.forward=function(e){var u=Math.sin(e[1]*b);u=[63.78137*e[0]*b,63.78137*Math.log((1+u)/(1-u))/2];85.0511287798<Math.abs(e[1])&&(u.outside=!0);return u};e.prototype.inverse=function(e){return[e[0]/(63.78137*b),(2*Math.atan(Math.exp(e[1]/63.78137))-Math.PI/2)/b]};return e}()});J(e,"Maps/Projections/ProjectionRegistry.js",[e["Maps/Projections/LambertConformalConic.js"],
|
|
660
|
+
e["Maps/Projections/EqualEarth.js"],e["Maps/Projections/Miller.js"],e["Maps/Projections/Orthographic.js"],e["Maps/Projections/WebMercator.js"]],function(b,e,u,C,B){return{EqualEarth:e,LambertConformalConic:b,Miller:u,Orthographic:C,WebMercator:B}});J(e,"Maps/Projection.js",[e["Core/Geometry/PolygonClip.js"],e["Maps/Projections/ProjectionRegistry.js"],e["Core/Utilities.js"]],function(b,e,u){var C=this&&this.__spreadArray||function(b,a,f){if(f||2===arguments.length)for(var d=0,e=a.length,l;d<e;d++)!l&&
|
|
661
|
+
d in a||(l||(l=Array.prototype.slice.call(a,0,d)),l[d]=a[d]);return b.concat(l||Array.prototype.slice.call(a))},B=b.clipLineString,q=b.clipPolygon,F=u.clamp,x=u.erase,v=2*Math.PI/360,m=function(b){-180>b&&(b+=360);180<b&&(b-=360);return b};return function(){function b(a){void 0===a&&(a={});this.hasGeoProjection=this.hasCoordinates=!1;this.maxLatitude=90;this.options=a;var f=a.name,d=a.projectedBounds,e=a.rotation;this.rotator=e?this.getRotator(e):void 0;if(f=f?b.registry[f]:void 0)this.def=new f(a);
|
|
662
|
+
var l=this.def,m=this.rotator;l&&(this.maxLatitude=l.maxLatitude||90,this.hasGeoProjection=!0);m&&l?(this.forward=function(a){return l.forward(m.forward(a))},this.inverse=function(a){return m.inverse(l.inverse(a))}):l?(this.forward=function(a){return l.forward(a)},this.inverse=function(a){return l.inverse(a)}):m&&(this.forward=m.forward,this.inverse=m.inverse);this.bounds="world"===d?l&&l.bounds:d}b.add=function(a,f){b.registry[a]=f};b.greatCircle=function(a,b,d){var f=Math.atan2,e=Math.cos,l=Math.sin,
|
|
663
|
+
m=Math.sqrt,w=a[1]*v,q=a[0]*v,t=b[1]*v,h=b[0]*v,y=t-w,r=h-q;y=l(y/2)*l(y/2)+e(w)*e(t)*l(r/2)*l(r/2);y=2*f(m(y),m(1-y));var n=Math.round(6371E3*y/5E5);r=[];d&&r.push(a);if(1<n)for(n=a=1/n;.999>n;n+=a){var g=l((1-n)*y)/l(y),x=l(n*y)/l(y),c=g*e(w)*e(q)+x*e(t)*e(h),z=g*e(w)*l(q)+x*e(t)*l(h);g=g*l(w)+x*l(t);g=f(g,m(c*c+z*z));c=f(z,c);r.push([c/v,g/v])}d&&r.push(b);return r};b.insertGreatCircles=function(a){for(var f=a.length-1;f--;)if(10<Math.max(Math.abs(a[f][0]-a[f+1][0]),Math.abs(a[f][1]-a[f+1][1]))){var d=
|
|
664
|
+
b.greatCircle(a[f],a[f+1]);d.length&&a.splice.apply(a,C([f+1,0],d,!1))}};b.toString=function(a){a=a||{};var b=a.rotation;return[a.name,b&&b.join(",")].join(";")};b.prototype.lineIntersectsBounds=function(a){var b=this.bounds||{},d=b.x2,e=b.y1,l=b.y2,m=function(a,b,d){var f=a[0];a=a[1];var e=b?0:1;if("number"===typeof d&&f[b]>=d!==a[b]>=d)return f=f[e]+(d-f[b])/(a[b]-f[b])*(a[e]-f[e]),b?[f,d]:[d,f]},q=a[0];if(b=m(a,0,b.x1))q=b,a[1]=b;else if(b=m(a,0,d))q=b,a[1]=b;if(b=m(a,1,e))q=b;else if(b=m(a,1,
|
|
665
|
+
l))q=b;return q};b.prototype.getRotator=function(a){var b=a[0]*v,d=(a[1]||0)*v;a=(a[2]||0)*v;var e=Math.cos(d),l=Math.sin(d),m=Math.cos(a),q=Math.sin(a);if(0!==b||0!==d||0!==a)return{forward:function(a){var d=a[0]*v+b,f=a[1]*v,h=Math.cos(f);a=Math.cos(d)*h;d=Math.sin(d)*h;f=Math.sin(f);h=f*e+a*l;return[Math.atan2(d*m-h*q,a*e-f*l)/v,Math.asin(h*m+d*q)/v]},inverse:function(a){var d=a[0]*v,f=a[1]*v,h=Math.cos(f);a=Math.cos(d)*h;d=Math.sin(d)*h;f=Math.sin(f);h=f*m-d*q;return[(Math.atan2(d*m+f*q,a*e+h*
|
|
666
|
+
l)-b)/v,Math.asin(h*e-a*l)/v]}}};b.prototype.forward=function(a){return a};b.prototype.inverse=function(a){return a};b.prototype.cutOnAntimeridian=function(a,f){var d=[],e=[a];a.forEach(function(b,e){var g=a[e-1];if(!e){if(!f)return;g=a[a.length-1]}var h=g[0],c=b[0];(-90>h||90<h)&&(-90>c||90<c)&&0<h!==0<c&&(c=F((180-(h+360)%360)/((c+360)%360-(h+360)%360),0,1),d.push({i:e,lat:g[1]+c*(b[1]-g[1]),direction:0>h?1:-1,previousLonLat:g,lonLat:b}))});if(d.length)if(f){if(1===d.length%2){var l=d.slice().sort(function(a,
|
|
667
|
+
b){return Math.abs(b.lat)-Math.abs(a.lat)})[0];x(d,l)}for(var q=d.length-2;0<=q;){var v=d[q].i,w=m(180+.000001*d[q].direction),u=m(180-.000001*d[q].direction);v=a.splice.apply(a,C([v,d[q+1].i-v],b.greatCircle([w,d[q].lat],[w,d[q+1].lat],!0),!1));v.push.apply(v,b.greatCircle([u,d[q+1].lat],[u,d[q].lat],!0));e.push(v);q-=2}if(l)for(w=0;w<e.length;w++){q=l.direction;var t=l.lat;u=e[w];v=u.indexOf(l.lonLat);if(-1<v){w=(0>t?-1:1)*this.maxLatitude;var h=m(180+.000001*q),y=m(180-.000001*q);t=b.greatCircle([h,
|
|
668
|
+
t],[h,w],!0);for(h+=120*q;-180<h&&180>h;h+=120*q)t.push([h,w]);t.push.apply(t,b.greatCircle([y,w],[y,l.lat],!0));u.splice.apply(u,C([v,0],t,!1));break}}}else for(q=d.length;q--;)v=d[q].i,v=a.splice(v,a.length,[m(180+.000001*d[q].direction),d[q].lat]),v.unshift([m(180-.000001*d[q].direction),d[q].lat]),e.push(v);return e};b.prototype.path=function(a){var f=this,d=this.bounds,e=this.def,l=this.rotator,m=[],v="Polygon"===a.type||"MultiPolygon"===a.type,w=this.hasGeoProjection,x=!e||!1!==e.antimeridianCutting,
|
|
669
|
+
t=x?l:void 0,h=x?e||this:this,y;d&&(y=[[d.x1,d.y1],[d.x2,d.y1],[d.x2,d.y2],[d.x1,d.y2]]);var r=function(a){a=a.map(function(a){if(x){t&&(a=t.forward(a));var b=a[0];.000001>Math.abs(b-180)&&(b=180>b?179.999999:180.000001);a=[b,a[1]]}return a});var g=[a];w&&(b.insertGreatCircles(a),x&&(g=f.cutOnAntimeridian(a,v)));g.forEach(function(a){if(!(2>a.length)){var c=!1,f=!1,g=function(a){c?m.push(["L",a[0],a[1]]):(m.push(["M",a[0],a[1]]),c=!0)},e=!1,k=!1,l=a.map(function(a){a=h.forward(a);a.outside?e=!0:k=
|
|
670
|
+
!0;Infinity===a[1]?a[1]=1E10:-Infinity===a[1]&&(a[1]=-1E10);return a});if(x){v&&l.push(l[0]);if(e){if(!k)return;if(y)if(v)l=q(l,y);else if(d){B(l,y).forEach(function(a){c=!1;a.forEach(g)});return}}l.forEach(g)}else for(var n=0;n<l.length;n++){var p=a[n],t=l[n];if(t.outside)f=!0;else{if(v&&!r){var r=p;a.push(p);l.push(t)}f&&u&&(v&&w?b.greatCircle(u,p).forEach(function(a){return g(h.forward(a))}):c=!1);g(t);var u=p;f=!1}}}})};"LineString"===a.type?r(a.coordinates):"MultiLineString"===a.type?a.coordinates.forEach(function(a){return r(a)}):
|
|
671
|
+
"Polygon"===a.type?(a.coordinates.forEach(function(a){return r(a)}),m.length&&m.push(["Z"])):"MultiPolygon"===a.type&&(a.coordinates.forEach(function(a){a.forEach(function(a){return r(a)})}),m.length&&m.push(["Z"]));return m};b.registry=e;return b}()});J(e,"Maps/MapView.js",[e["Maps/MapViewOptionsDefault.js"],e["Maps/MapViewInsetsOptionsDefault.js"],e["Extensions/GeoJSON.js"],e["Core/Chart/MapChart.js"],e["Maps/MapUtilities.js"],e["Maps/Projection.js"],e["Core/Utilities.js"]],function(b,e,u,C,B,q,
|
|
672
|
+
F){var x=this&&this.__extends||function(){var a=function(b,d){a=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 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)}}(),v=this&&this.__spreadArray||function(a,b,d){if(d||2===arguments.length)for(var c=0,f=b.length,g;c<f;c++)!g&&c in b||(g||(g=Array.prototype.slice.call(b,
|
|
673
|
+
0,c)),g[c]=b[c]);return a.concat(g||Array.prototype.slice.call(b))},m=u.topo2geo,l=C.maps,a=B.boundsFromPath,f=B.pointInPolygon,d=F.addEvent,k=F.clamp,p=F.fireEvent,E=F.isArray,A=F.isNumber,w=F.isObject,I=F.isString,t=F.merge,h=F.pick,y=F.relativeLength,r=function(a,b){return Math.log(400.979322/Math.max((a.x2-a.x1)/(b.width/256),(a.y2-a.y1)/(b.height/256)))/Math.log(2)},n=function(){function a(c,f){var e=this;this.insets=[];this.padding=[0,0,0,0];this.eventsToUnbind=[];var h;if(!(this instanceof
|
|
674
|
+
g)){var k=v([c.options.chart.map],(c.options.series||[]).map(function(a){return a.mapData}),!0).map(function(a){return e.getGeoMap(a)}),l=[];k.forEach(function(a){a&&(h||(h=a["hc-recommended-mapview"]),a.bbox&&(a=a.bbox,l.push({x1:a[0],y1:a[1],x2:a[2],y2:a[3]})))});var m=l.length&&a.compositeBounds(l);if(m){var n=m.x1;var p=m.y1,r=m.x2;m=m.y2;n=180<r-n&&90<m-p?{name:"EqualEarth"}:{name:"LambertConformalConic",parallels:[p,m],rotation:[-(n+r)/2]}}this.geoMap=k[0]}this.userOptions=f||{};k=t(b,{projection:n},
|
|
675
|
+
h,f);m=h&&h.insets;f=f&&f.insets;m&&f&&(k.insets=a.mergeInsets(m,f));this.chart=c;this.center=k.center;this.options=k;this.projection=new q(k.projection);this.playingField=c.plotBox;this.zoom=k.zoom||0;this.createInsets();this.eventsToUnbind.push(d(c,"afterSetChartSize",function(){e.playingField=e.getField();if(void 0===e.minZoom||e.minZoom===e.zoom)e.fitToBounds(void 0,void 0,!1),!e.chart.hasRendered&&A(e.userOptions.zoom)&&(e.zoom=e.userOptions.zoom),e.userOptions.center&&t(!0,e.center,e.userOptions.center)}));
|
|
676
|
+
this.setUpEvents()}a.mergeInsets=function(a,b){var c=function(a){var b={};a.forEach(function(a,c){b[a&&a.id||"i".concat(c)]=a});return b},d=t(c(a),c(b));return Object.keys(d).map(function(a){return d[a]})};a.prototype.createInsets=function(){var a=this,b=this.options,d=b.insets;d&&d.forEach(function(c){c=new g(a,t(b.insetOptions,c));a.insets.push(c)})};a.prototype.fitToBounds=function(a,b,d,f){void 0===d&&(d=!0);var c=a||this.getProjectedBounds();if(c){var e=h(b,a?0:this.options.padding);b=this.getField(!1);
|
|
677
|
+
e=E(e)?e:[e,e,e,e];this.padding=[y(e[0],b.height),y(e[1],b.width),y(e[2],b.height),y(e[3],b.width)];this.playingField=this.getField();b=r(c,this.playingField);a||(this.minZoom=b);a=this.projection.inverse([(c.x2+c.x1)/2,(c.y2+c.y1)/2]);this.setView(a,b,d,f)}};a.prototype.getField=function(a){void 0===a&&(a=!0);a=a?this.padding:[0,0,0,0];return{x:a[3],y:a[0],width:this.chart.plotWidth-a[1]-a[3],height:this.chart.plotHeight-a[0]-a[2]}};a.prototype.getGeoMap=function(a){if(I(a))return l[a];if(w(a,!0)){if("FeatureCollection"===
|
|
678
|
+
a.type)return a;if("Topology"===a.type)return m(a)}};a.prototype.getMapBBox=function(){var a=this.getProjectedBounds(),b=this.getScale();if(a){var d=this.padding,f=this.projectedUnitsToPixels({x:a.x1,y:a.y2});return{width:(a.x2-a.x1)*b+d[1]+d[3],height:(a.y2-a.y1)*b+d[0]+d[2],x:f.x-d[3],y:f.y-d[0]}}};a.prototype.getProjectedBounds=function(){var b=this.chart.series.reduce(function(a,b){var c=b.getProjectedBounds&&b.getProjectedBounds();c&&!1!==b.options.affectsMapView&&a.push(c);return a},[]);return this.projection.bounds||
|
|
679
|
+
a.compositeBounds(b)};a.prototype.getScale=function(){return 256/400.979322*Math.pow(2,this.zoom)};a.prototype.getSVGTransform=function(){var a=this.playingField,b=a.x,d=a.y,f=a.width;a=a.height;var e=this.projection.forward(this.center),g=this.projection.hasCoordinates?-1:1,h=this.getScale();g*=h;return{scaleX:h,scaleY:g,translateX:b+f/2-e[0]*h,translateY:d+a/2-e[1]*g}};a.prototype.lonLatToPixels=function(a){if(a=this.lonLatToProjectedUnits(a))return this.projectedUnitsToPixels(a)};a.prototype.lonLatToProjectedUnits=
|
|
680
|
+
function(a){var b=this.chart,c=b.mapTransforms;if(c){for(var d in c)if(Object.hasOwnProperty.call(c,d)&&c[d].hitZone){var e=b.transformFromLatLon(a,c[d]);if(e&&f(e,c[d].hitZone.coordinates[0]))return e}return b.transformFromLatLon(a,c["default"])}c=0;for(d=this.insets;c<d.length;c++)if(b=d[c],b.options.geoBounds&&f({x:a.lon,y:a.lat},b.options.geoBounds.coordinates[0]))return a=b.projection.forward([a.lon,a.lat]),a=b.projectedUnitsToPixels({x:a[0],y:a[1]}),this.pixelsToProjectedUnits(a);a=this.projection.forward([a.lon,
|
|
681
|
+
a.lat]);if(!a.outside)return{x:a[0],y:a[1]}};a.prototype.projectedUnitsToLonLat=function(a){var b=this.chart,c=b.mapTransforms;if(c){for(var d in c)if(Object.hasOwnProperty.call(c,d)&&c[d].hitZone&&f(a,c[d].hitZone.coordinates[0]))return b.transformToLatLon(a,c[d]);return b.transformToLatLon(a,c["default"])}c=this.projectedUnitsToPixels(a);d=0;for(var e=this.insets;d<e.length;d++)if(b=e[d],b.hitZone&&f(c,b.hitZone.coordinates[0]))return a=b.pixelsToProjectedUnits(c),a=b.projection.inverse([a.x,a.y]),
|
|
682
|
+
{lon:a[0],lat:a[1]};a=this.projection.inverse([a.x,a.y]);return{lon:a[0],lat:a[1]}};a.prototype.redraw=function(a){this.chart.series.forEach(function(a){a.useMapGeometry&&(a.isDirty=!0)});this.chart.redraw(a)};a.prototype.setView=function(a,b,d,f){void 0===d&&(d=!0);a&&(this.center=a);"number"===typeof b&&("number"===typeof this.minZoom&&(b=Math.max(b,this.minZoom)),"number"===typeof this.options.maxZoom&&(b=Math.min(b,this.options.maxZoom)),A(b)&&(this.zoom=b));var c=this.getProjectedBounds();if(c){a=
|
|
683
|
+
this.projection.forward(this.center);var e=this.playingField;b=e.x;var g=e.y,h=e.width;e=e.height;var k=this.getScale(),l=this.projectedUnitsToPixels({x:c.x1,y:c.y1}),m=this.projectedUnitsToPixels({x:c.x2,y:c.y2});c=[(c.x1+c.x2)/2,(c.y1+c.y2)/2];var n=l.x,t=m.y;m=m.x;l=l.y;m-n<h?a[0]=c[0]:n<b&&m<b+h?a[0]+=Math.max(n-b,m-h-b)/k:m>b+h&&n>b&&(a[0]+=Math.min(m-h-b,n-b)/k);l-t<e?a[1]=c[1]:t<g&&l<g+e?a[1]-=Math.max(t-g,l-e-g)/k:l>g+e&&t>g&&(a[1]-=Math.min(l-e-g,t-g)/k);this.center=this.projection.inverse(a);
|
|
684
|
+
this.insets.forEach(function(a){a.options.field&&(a.hitZone=a.getHitZone(),a.playingField=a.getField())});this.render()}p(this,"afterSetView");d&&this.redraw(f)};a.prototype.projectedUnitsToPixels=function(a){var b=this.getScale(),c=this.projection.forward(this.center),d=this.playingField;return{x:d.x+d.width/2-b*(c[0]-a.x),y:d.y+d.height/2+b*(c[1]-a.y)}};a.prototype.pixelsToLonLat=function(a){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(a))};a.prototype.pixelsToProjectedUnits=function(a){var b=
|
|
685
|
+
a.x;a=a.y;var c=this.getScale(),d=this.projection.forward(this.center),e=this.playingField;return{x:d[0]+(b-(e.x+e.width/2))/c,y:d[1]-(a-(e.y+e.height/2))/c}};a.prototype.setUpEvents=function(){var a=this,b=this.chart,e,f,g,h=function(c){var d=b.pointer.pinchDown,h=a.projection,l=b.mouseDownX,m=b.mouseDownY;1===d.length&&(l=d[0].chartX,m=d[0].chartY);if("number"===typeof l&&"number"===typeof m){var n=""+l+",".concat(m),p=c.originalEvent;d=p.chartX;p=p.chartY;n!==f&&(f=n,e=a.projection.forward(a.center),
|
|
686
|
+
g=(a.projection.options.rotation||[0,0]).slice());n=(n=h.def&&h.def.bounds)&&r(n,a.playingField)||-Infinity;"Orthographic"===h.options.name&&(a.minZoom||Infinity)<1.1*n?(h=440/(a.getScale()*Math.min(b.plotWidth,b.plotHeight)),g&&(l=(l-d)*h-g[0],m=k(-g[1]-(m-p)*h,-80,80),d=a.zoom,a.update({projection:{rotation:[-l,-m]}},!1),a.zoom=d,b.redraw(!1))):(h=a.getScale(),m=a.projection.inverse([e[0]+(l-d)/h,e[1]-(m-p)/h]),a.setView(m,void 0,!0,!1));c.preventDefault()}};d(b,"pan",h);d(b,"touchpan",h);d(b,"selection",
|
|
687
|
+
function(c){if(c.resetSelection)a.zoomBy();else{var d=c.x-b.plotLeft,e=c.y-b.plotTop,f=a.pixelsToProjectedUnits({x:d,y:e}),g=f.y;f=f.x;d=a.pixelsToProjectedUnits({x:d+c.width,y:e+c.height});a.fitToBounds({x1:f,y1:g,x2:d.x,y2:d.y},void 0,!0,c.originalEvent.touches?!1:void 0);/^touch/.test(c.originalEvent.type)||b.showResetZoom();c.preventDefault()}})};a.prototype.render=function(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())};a.prototype.update=function(a,b,d){void 0===
|
|
688
|
+
b&&(b=!0);var c=a.projection;c=c&&q.toString(c)!==q.toString(this.options.projection);var e=!1;t(!0,this.userOptions,a);t(!0,this.options,a);"insets"in a&&(this.insets.forEach(function(a){return a.destroy()}),this.insets.length=0,e=!0);if(c||e)this.chart.series.forEach(function(a){var b=a.transformGroups;a.clearBounds&&a.clearBounds();a.isDirty=!0;a.isDirtyData=!0;if(e&&b)for(;1<b.length;)(a=b.pop())&&a.destroy()}),c&&(this.projection=new q(this.options.projection)),e&&this.createInsets(),a.center||
|
|
689
|
+
A(a.zoom)||this.fitToBounds(void 0,void 0,!1);(a.center||A(a.zoom))&&this.setView(this.options.center,a.zoom,!1);b&&this.chart.redraw(d)};a.prototype.zoomBy=function(a,b,d,e){var c=this.chart,f=this.projection.forward(this.center);b=b?this.projection.forward(b):[];var g=b[0],h=b[1];"number"===typeof a?(a=this.zoom+a,b=void 0,d&&(g=d[0],h=d[1],d=this.getScale(),g=g-c.plotLeft-c.plotWidth/2,c=h-c.plotTop-c.plotHeight/2,g=f[0]+g/d,h=f[1]+c/d),"number"===typeof g&&"number"===typeof h&&(d=1-Math.pow(2,
|
|
690
|
+
this.zoom)/Math.pow(2,a),g=f[0]-g,c=f[1]-h,f[0]-=g*d,f[1]+=c*d,b=this.projection.inverse(f)),this.setView(b,a,void 0,e)):this.fitToBounds(void 0,void 0,void 0,e)};a.compositeBounds=function(a){if(a.length)return a.slice(1).reduce(function(a,b){a.x1=Math.min(a.x1,b.x1);a.y1=Math.min(a.y1,b.y1);a.x2=Math.max(a.x2,b.x2);a.y2=Math.max(a.y2,b.y2);return a},t(a[0]))};return a}(),g=function(b){function c(c,d){var f=b.call(this,c.chart,d)||this;f.id=d.id;f.mapView=c;f.options=t(e,d);f.allBounds=[];f.options.geoBounds&&
|
|
691
|
+
(c=c.projection.path(f.options.geoBounds),f.geoBoundsProjectedBox=a(c),f.geoBoundsProjectedPolygon=c.map(function(a){return[a[1]||0,a[2]||0]}));return f}x(c,b);c.prototype.getField=function(a){void 0===a&&(a=!0);var c=this.hitZone;if(c){var d=a?this.padding:[0,0,0,0];c=c.coordinates[0];var f=c.map(function(a){return a[0]}),e=c.map(function(a){return a[1]});c=Math.min.apply(0,f)+d[3];f=Math.max.apply(0,f)-d[1];var g=Math.min.apply(0,e)+d[0];d=Math.max.apply(0,e)-d[2];if(A(c)&&A(g))return{x:c,y:g,width:f-
|
|
692
|
+
c,height:d-g}}return b.prototype.getField.call(this,a)};c.prototype.getHitZone=function(){var a=this.chart,b=this.mapView,c=this.options,d=(c.field||{}).coordinates;if(d){d=d[0];if("percent"===c.units){var f="mapBoundingBox"===c.relativeTo&&b.getMapBBox()||t(a.plotBox,{x:0,y:0});d=d.map(function(a){return[y(""+a[0]+"%",f.width,f.x),y(""+a[1]+"%",f.height,f.y)]})}return{type:"Polygon",coordinates:[d]}}};c.prototype.getProjectedBounds=function(){return n.compositeBounds(this.allBounds)};c.prototype.isInside=
|
|
693
|
+
function(a){var b=this.geoBoundsProjectedBox,c=this.geoBoundsProjectedPolygon;return!!(b&&a.x>=b.x1&&a.x<=b.x2&&a.y>=b.y1&&a.y<=b.y2&&c&&f(a,c))};c.prototype.render=function(){var a=this.chart,b=this.mapView,c=this.options,d=c.borderPath||c.field;if(d&&b.group){var f=!0;this.border||(this.border=a.renderer.path().addClass("highcharts-mapview-inset-border").add(b.group),f=!1);a.styledMode||this.border.attr({stroke:c.borderColor,"stroke-width":c.borderWidth});var e=Math.round(this.border.strokeWidth())%
|
|
694
|
+
2/2,g="mapBoundingBox"===c.relativeTo&&b.getMapBBox()||b.playingField;b=(d.coordinates||[]).reduce(function(b,d){return d.reduce(function(b,d,f){var h=d[0];d=d[1];"percent"===c.units&&(h=a.plotLeft+y(""+h+"%",g.width,g.x),d=a.plotTop+y(""+d+"%",g.height,g.y));h=Math.floor(h)+e;d=Math.floor(d)+e;b.push(0===f?["M",h,d]:["L",h,d]);return b},b)},[]);this.border[f?"animate":"attr"]({d:b})}};c.prototype.destroy=function(){this.border&&(this.border=this.border.destroy());this.eventsToUnbind.forEach(function(a){return a()})};
|
|
695
|
+
c.prototype.setUpEvents=function(){};return c}(n);d(C,"afterInit",function(){this.mapView=new n(this,this.options.mapView)});return n});J(e,"Series/Map/MapSeries.js",[e["Core/Animation/AnimationUtilities.js"],e["Series/ColorMapComposition.js"],e["Series/CenteredUtilities.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Chart/MapChart.js"],e["Series/Map/MapPoint.js"],e["Maps/MapView.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],
|
|
696
|
+
e["Core/Utilities.js"]],function(b,e,u,C,B,q,F,x,v,m,l,a){var f=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)&&(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)}}(),d=b.animObject;b=C.noop;var k=q.splitPath;q=m.seriesTypes;var p=q.column,E=q.scatter;
|
|
697
|
+
q=a.extend;var A=a.find,w=a.fireEvent,I=a.getNestedProperty,t=a.isArray,h=a.isNumber,y=a.isObject,r=a.merge,n=a.objectEach,g=a.pick,D=a.splat;a=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.chart=void 0;b.data=void 0;b.group=void 0;b.joinBy=void 0;b.options=void 0;b.points=void 0;b.processedData=[];return b}f(b,a);b.prototype.animate=function(a){var b=this.chart,c=this.group,f=d(this.options.animation);b.renderer.isSVG&&(a?c.attr({translateX:b.plotLeft+b.plotWidth/2,translateY:b.plotTop+
|
|
698
|
+
b.plotHeight/2,scaleX:.001,scaleY:.001}):c.animate({translateX:b.plotLeft,translateY:b.plotTop,scaleX:1,scaleY:1},f))};b.prototype.animateDrilldown=function(a){var b=this.chart,c=this.group;b.renderer.isSVG&&(a?c.attr({translateX:b.plotLeft+b.plotWidth/2,translateY:b.plotTop+b.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01}):(c.animate({translateX:b.plotLeft,translateY:b.plotTop,scaleX:1,scaleY:1,opacity:1},this.chart.options.drilldown.animation),b.drilldown&&b.drilldown.fadeInGroup(this.dataLabelsGroup)))};
|
|
699
|
+
b.prototype.animateDrillupFrom=function(){var a=this.chart;a.renderer.isSVG&&this.group.animate({translateX:a.plotLeft+a.plotWidth/2,translateY:a.plotTop+a.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01})};b.prototype.animateDrillupTo=function(a){p.prototype.animateDrillupTo.call(this,a)};b.prototype.clearBounds=function(){this.points.forEach(function(a){delete a.bounds;delete a.insetIndex;delete a.projectedPath});delete this.bounds};b.prototype.doFullTranslate=function(){return!(!(this.isDirtyData||
|
|
700
|
+
this.chart.isResizing||this.chart.renderer.isVML)&&this.hasRendered)};b.prototype.drawMapDataLabels=function(){v.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};b.prototype.drawPoints=function(){var a=this,b=this,c=this.chart,d=this.group,f=this.transformGroups,e=void 0===f?[]:f,h=c.mapView,k=c.renderer;h&&(this.transformGroups=e,e[0]||(e[0]=k.g().add(d)),h.insets.forEach(function(a,b){e[b+1]||e.push(k.g().add(d))}),this.doFullTranslate()&&
|
|
701
|
+
(this.points.forEach(function(b){var d=b.graphic,f=b.shapeArgs;b.group=e["number"===typeof b.insetIndex?b.insetIndex+1:0];d&&d.parentGroup!==b.group&&d.add(b.group);f&&c.hasRendered&&!c.styledMode&&(f.fill=a.pointAttribs(b,b.state).fill)}),p.prototype.drawPoints.apply(this),this.points.forEach(function(d){var f=d.graphic;if(f){var e=f.animate,h="";d.name&&(h+="highcharts-name-"+d.name.replace(/ /g,"-").toLowerCase());d.properties&&d.properties["hc-key"]&&(h+=" highcharts-key-"+d.properties["hc-key"].toString().toLowerCase());
|
|
702
|
+
h&&f.addClass(h);c.styledMode&&f.css(a.pointAttribs(d,d.selected&&"select"||void 0));f.animate=function(a,d,h){var k=!1;if(a["stroke-width"]){var l=g(b.getStrokeWidth(b.options),1)/(c.mapView&&c.mapView.getScale()||1);"inherit"===f["stroke-width"]&&(f["stroke-width"]=l);"inherit"===a["stroke-width"]&&(a["stroke-width"]=l,k=!0)}return e.call(f,a,d,k?function(){f.attr({"stroke-width":"inherit"});h&&h.apply(this,arguments)}:h)}}})),e.forEach(function(b,d){var f=(0===d?h:h.insets[d-1]).getSVGTransform(),
|
|
703
|
+
e=g(a.getStrokeWidth(a.options),1),l=f.scaleX,m=0<f.scaleY?1:-1;if(k.globalAnimation&&c.hasRendered){var n=Number(b.attr("translateX")),p=Number(b.attr("translateY")),t=Number(b.attr("scaleX"));b.attr({animator:0}).animate({animator:1},{step:function(a,c){a=t+(l-t)*c.pos;b.attr({translateX:n+(f.translateX-n)*c.pos,translateY:p+(f.translateY-p)*c.pos,scaleX:a,scaleY:a*m});b.element.setAttribute("stroke-width",e/a)}})}else b.attr(f),b.element.setAttribute("stroke-width",e/l)}),this.drawMapDataLabels())};
|
|
704
|
+
b.prototype.getProjectedBounds=function(){if(!this.bounds&&this.chart.mapView){var a=this.chart.mapView,b=a.insets,c=a.projection,d=[];(this.points||[]).forEach(function(a){if(a.path||a.geometry){"string"===typeof a.path?a.path=k(a.path):t(a.path)&&"M"===a.path[0]&&(a.path=l.prototype.pathToSegments(a.path));if(!a.bounds){var f=a.getProjectedBounds(c);if(f){a.labelrank=g(a.labelrank,(f.x2-f.x1)*(f.y2-f.y1));var e=f.midX,m=f.midY;if(b&&h(e)&&h(m)){var n=A(b,function(a){return a.isInside({x:e,y:m})});
|
|
705
|
+
n&&(delete a.projectedPath,(f=a.getProjectedBounds(n.projection))&&n.allBounds.push(f),a.insetIndex=b.indexOf(n))}a.bounds=f}}a.bounds&&void 0===a.insetIndex&&d.push(a.bounds)}});this.bounds=x.compositeBounds(d)}return this.bounds};b.prototype.getStrokeWidth=function(a){var b=this.pointAttrToOptions;return a[b&&b["stroke-width"]||"borderWidth"]};b.prototype.hasData=function(){return!!this.processedXData.length};b.prototype.pointAttribs=function(a,b){var c=a.series.chart,d=c.mapView;c=c.styledMode?
|
|
706
|
+
this.colorAttribs(a):p.prototype.pointAttribs.call(this,a,b);var f=this.getStrokeWidth(a.options);b&&(b=r(this.options.states[b],a.options.states&&a.options.states[b]||{}),f=this.getStrokeWidth(b));f&&d&&(f/=d.getScale());b=this.getStrokeWidth(this.options);c.dashstyle&&d&&h(b)&&(f=b/d.getScale());a.visible||(c.fill=this.options.nullColor);c["stroke-width"]=g(f,"inherit");return c};b.prototype.updateData=function(){return this.processedData?!1:a.prototype.updateData.apply(this,arguments)};b.prototype.setData=
|
|
707
|
+
function(b,c,d,f){void 0===c&&(c=!0);delete this.bounds;a.prototype.setData.call(this,b,!1,void 0,f);this.processData();this.generatePoints();c&&this.chart.redraw(d)};b.prototype.processData=function(){var a=this.options,b=a.data,c=this.chart.options.chart,d=this.joinBy,f=a.keys||this.pointArrayMap,e=[],g={},k=this.chart.mapView;k=k&&(y(a.mapData,!0)?k.getGeoMap(a.mapData):k.geoMap);var l=this.chart.mapTransforms;(this.chart.mapTransforms=l=c.mapTransforms||k&&k["hc-transform"]||l)&&n(l,function(a){a.rotation&&
|
|
708
|
+
(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});if(t(a.mapData))var m=a.mapData;else k&&"FeatureCollection"===k.type&&(this.mapTitle=k.title,m=C.geojson(k,this.type,this));var p=this.processedData=[];b&&b.forEach(function(c,e){var g=0;if(h(c))p[e]={value:c};else if(t(c)){p[e]={};!a.keys&&c.length>f.length&&"string"===typeof c[0]&&(p[e]["hc-key"]=c[0],++g);for(var k=0;k<f.length;++k,++g)f[k]&&"undefined"!==typeof c[g]&&(0<f[k].indexOf(".")?F.prototype.setNestedProperty(p[e],c[g],
|
|
709
|
+
f[k]):p[e][f[k]]=c[g])}else p[e]=b[e];d&&"_i"===d[0]&&(p[e]._i=e)});if(m){this.mapData=m;this.mapMap={};for(l=0;l<m.length;l++)c=m[l],k=c.properties,c._i=l,d[0]&&k&&k[d[0]]&&(c[d[0]]=k[d[0]]),g[c[d[0]]]=c;this.mapMap=g;if(d[1]){var q=d[1];p.forEach(function(a){a=I(q,a);g[a]&&e.push(g[a])})}if(a.allAreas){if(d[1]){var w=d[1];p.forEach(function(a){e.push(I(w,a))})}var v="|"+e.map(function(a){return a&&a[d[0]]}).join("|")+"|";m.forEach(function(a){d[0]&&-1!==v.indexOf("|"+a[d[0]]+"|")||p.push(r(a,{value:null}))})}}this.processedXData=
|
|
710
|
+
Array(p.length)};b.prototype.setOptions=function(a){a=v.prototype.setOptions.call(this,a);var b=a.joinBy;null===b&&(b="_i");b=this.joinBy=D(b);b[1]||(b[1]=b[0]);return a};b.prototype.translate=function(){var a=this.doFullTranslate(),b=this.chart.mapView,c=b&&b.projection;!this.chart.hasRendered||!this.isDirtyData&&this.hasRendered||(this.processData(),this.generatePoints(),delete this.bounds,!b||b.userOptions.center||h(b.userOptions.zoom)?this.getProjectedBounds():b.fitToBounds(void 0,void 0,!1));
|
|
711
|
+
if(b){var d=b.getSVGTransform();this.points.forEach(function(f){var e=h(f.insetIndex)&&b.insets[f.insetIndex].getSVGTransform()||d;e&&f.bounds&&h(f.bounds.midX)&&h(f.bounds.midY)&&(f.plotX=f.bounds.midX*e.scaleX+e.translateX,f.plotY=f.bounds.midY*e.scaleY+e.translateY);a&&(f.shapeType="path",f.shapeArgs={d:F.getProjectedPath(f,c)})})}w(this,"afterTranslate")};b.defaultOptions=r(E.defaultOptions,{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){var a=this.series.chart.numberFormatter,
|
|
712
|
+
b=this.point.value;return h(b)?a(b,-1):""},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},marker:null,nullColor:"#f7f7f7",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:"#cccccc",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:"#cccccc"}}});return b}(E);q(a.prototype,{type:"map",axisTypes:e.seriesMembers.axisTypes,colorAttribs:e.seriesMembers.colorAttribs,
|
|
713
|
+
colorKey:e.seriesMembers.colorKey,directTouch:!0,drawDataLabels:b,drawGraph:b,drawLegendSymbol:B.drawRectangle,forceDL:!0,getCenter:u.getCenter,getExtremesFromAll:!0,getSymbol:b,isCartesian:!1,parallelArrays:e.seriesMembers.parallelArrays,pointArrayMap:e.seriesMembers.pointArrayMap,pointClass:F,preserveAspectRatio:!0,searchPoint:b,trackerGroups:e.seriesMembers.trackerGroups,useMapGeometry:!0});e.compose(a);m.registerSeriesType("map",a);"";return a});J(e,"Series/MapLine/MapLineSeries.js",[e["Series/Map/MapSeries.js"],
|
|
714
|
+
e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,u){var C=this&&this.__extends||function(){var b=function(e,m){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var f in a)a.hasOwnProperty(f)&&(b[f]=a[f])};return b(e,m)};return function(e,m){function l(){this.constructor=e}b(e,m);e.prototype=null===m?Object.create(m):(l.prototype=m.prototype,new l)}}(),B=e.series,q=u.extend,F=u.merge;u=function(e){function q(){var b=null!==
|
|
715
|
+
e&&e.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}C(q,e);q.prototype.pointAttribs=function(e,l){e=b.prototype.pointAttribs.call(this,e,l);e.fill=this.options.fillColor;return e};q.defaultOptions=F(b.defaultOptions,{lineWidth:1,fillColor:"none"});return q}(b);q(u.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:B.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}});e.registerSeriesType("mapline",u);"";return u});
|
|
716
|
+
J(e,"Series/MapPoint/MapPointPoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e){var u=this&&this.__extends||function(){var b=function(e,u){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var m in e)e.hasOwnProperty(m)&&(b[m]=e[m])};return b(e,u)};return function(e,u){function q(){this.constructor=e}b(e,u);e.prototype=null===u?Object.create(u):(q.prototype=u.prototype,new q)}}(),C=e.isNumber;return function(b){function e(){var e=
|
|
717
|
+
null!==b&&b.apply(this,arguments)||this;e.options=void 0;e.series=void 0;return e}u(e,b);e.prototype.isValid=function(){return!!(this.options.geometry||C(this.x)&&C(this.y)||C(this.options.lon)&&C(this.options.lat))};return e}(b.seriesTypes.scatter.prototype.pointClass)});J(e,"Series/MapPoint/MapPointSeries.js",[e["Core/Globals.js"],e["Series/MapPoint/MapPointPoint.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,u,C){var B=this&&this.__extends||function(){var a=function(b,
|
|
718
|
+
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 e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(e.prototype=d.prototype,new e)}}();b=b.noop;var q=u.seriesTypes,F=q.map,x=q.scatter;q=C.extend;var v=C.fireEvent,m=C.isNumber,l=C.merge;C=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.chart=void 0;b.data=void 0;
|
|
719
|
+
b.options=void 0;b.points=void 0;b.clearBounds=F.prototype.clearBounds;return b}B(b,a);b.prototype.drawDataLabels=function(){a.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};b.prototype.projectPoint=function(a){var b=this.chart.mapView;if(b){var d=a.geometry,e=a.lon;a=a.lat;d=d&&"Point"===d.type&&d.coordinates;m(e)&&m(a)&&(d=[e,a]);if(d)return b.lonLatToProjectedUnits({lon:d[0],lat:d[1]})}};b.prototype.translate=function(){var a=this,b=this.chart.mapView;
|
|
720
|
+
this.processedXData||this.processData();this.generatePoints();this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds());if(b){var e=b.getSVGTransform(),f=b.projection.hasCoordinates;this.points.forEach(function(d){var k=d.x;k=void 0===k?void 0:k;var l=d.y;l=void 0===l?void 0:l;var p=m(d.insetIndex)&&b.insets[d.insetIndex].getSVGTransform()||e,h=a.projectPoint(d.options)||d.properties&&a.projectPoint(d.properties);if(h)k=h.x,l=h.y;else if(d.bounds&&(k=d.bounds.midX,
|
|
721
|
+
l=d.bounds.midY,p&&m(k)&&m(l))){d.plotX=k*p.scaleX+p.translateX;d.plotY=l*p.scaleY+p.translateY;var q=!0}m(k)&&m(l)?q||(q=b.projectedUnitsToPixels({x:k,y:l}),d.plotX=q.x,d.plotY=f?q.y:a.chart.plotHeight-q.y):d.y=d.plotX=d.plotY=void 0;d.isInside=a.isPointInside(d);d.zone=a.zones.length?d.getZone():void 0})}v(this,"afterTranslate")};b.defaultOptions=l(x.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}}});return b}(x);
|
|
722
|
+
q(C.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:e,searchPoint:b,useMapGeometry:!0});u.registerSeriesType("mappoint",C);"";return C});J(e,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",
|
|
723
|
+
color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}});J(e,"Series/Bubble/BubbleLegendItem.js",[e["Core/Color/Color.js"],e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(b,e,u,C){var B=b.parse,q=u.noop,F=C.arrayMax,x=C.arrayMin,v=C.isNumber,m=C.merge,l=C.pick,a=C.stableSort;b=function(){function b(a,b){this.options=this.symbols=
|
|
724
|
+
this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legend=this.fontMetrics=this.chart=void 0;this.setState=q;this.init(a,b)}b.prototype.init=function(a,b){this.options=a;this.visible=!0;this.chart=b.chart;this.legend=b};b.prototype.addToLegend=function(a){a.splice(this.options.legendIndex,0,this)};b.prototype.drawLegendSymbol=function(b){var d=this.chart,e=l(b.options.itemDistance,20),f=this.legendItem||{},m=this.options,q=m.ranges,u=m.connectorDistance;this.fontMetrics=d.renderer.fontMetrics(m.labels.style.fontSize);
|
|
725
|
+
q&&q.length&&v(q[0].value)?(a(q,function(a,b){return b.value-a.value}),this.ranges=q,this.setOptions(),this.render(),b=this.getMaxLabelSize(),q=this.ranges[0].radius,d=2*q,u=u-q+b.width,u=0<u?u:0,this.maxLabel=b,this.movementX="left"===m.labels.align?u:0,f.labelWidth=d+u+e,f.labelHeight=d+this.fontMetrics.h/2):b.options.bubbleLegend.autoRanges=!0};b.prototype.setOptions=function(){var a=this.ranges,b=this.options,e=this.chart.series[b.seriesIndex],f=this.legend.baseline,q={zIndex:b.zIndex,"stroke-width":b.borderWidth},
|
|
726
|
+
w={zIndex:b.zIndex,"stroke-width":b.connectorWidth},v={align:this.legend.options.rtl||"left"===b.labels.align?"right":"left",zIndex:b.zIndex},t=e.options.marker.fillOpacity,h=this.chart.styledMode;a.forEach(function(d,k){h||(q.stroke=l(d.borderColor,b.borderColor,e.color),q.fill=l(d.color,b.color,1!==t?B(e.color).setOpacity(t).get("rgba"):e.color),w.stroke=l(d.connectorColor,b.connectorColor,e.color));a[k].radius=this.getRangeRadius(d.value);a[k]=m(a[k],{center:a[0].radius-a[k].radius+f});h||m(!0,
|
|
727
|
+
a[k],{bubbleAttribs:m(q),connectorAttribs:m(w),labelAttribs:v})},this)};b.prototype.getRangeRadius=function(a){var b=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,b.ranges[b.ranges.length-1].value,b.ranges[0].value,b.minSize,b.maxSize,a)};b.prototype.render=function(){var a=this.legendItem||{},b=this.chart.renderer,e=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]});a.symbol=b.g("bubble-legend");a.label=b.g("bubble-legend-item");
|
|
728
|
+
a.symbol.translateX=0;b=a.symbol.translateY=0;for(var f=this.ranges;b<f.length;b++){var l=f[b];l.value>=e&&this.renderRange(l)}a.symbol.add(a.label);a.label.add(a.group);this.hideOverlappingLabels()};b.prototype.renderRange=function(a){var b=this.options,d=b.labels,e=this.chart,f=e.series[b.seriesIndex],l=e.renderer,m=this.symbols;e=m.labels;var t=a.center,h=Math.abs(a.radius),q=b.connectorDistance||0,r=d.align,n=b.connectorWidth,g=this.ranges[0].radius||0,v=t-h-b.borderWidth/2+n/2,c=this.fontMetrics;
|
|
729
|
+
c=c.f/2-(c.h-c.f)/2;var u=l.styledMode;q=this.legend.options.rtl||"left"===r?-q:q;"center"===r&&(q=0,b.connectorDistance=0,a.labelAttribs.align="center");r=v+b.labels.y;var x=g+q+b.labels.x;m.bubbleItems.push(l.circle(g,t+((v%1?1:.5)-(n%2?0:.5)),h).attr(u?{}:a.bubbleAttribs).addClass((u?"highcharts-color-"+f.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(b.className||"")).add(this.legendItem.symbol));m.connectors.push(l.path(l.crispLine([["M",g,v],["L",g+q,v]],b.connectorWidth)).attr(u?{}:
|
|
730
|
+
a.connectorAttribs).addClass((u?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(b.connectorClassName||"")).add(this.legendItem.symbol));a=l.text(this.formatLabel(a),x,r+c).attr(u?{}:a.labelAttribs).css(u?{}:d.style).addClass("highcharts-bubble-legend-labels "+(b.labels.className||"")).add(this.legendItem.symbol);e.push(a);a.placed=!0;a.alignAttr={x:x,y:r+c}};b.prototype.getMaxLabelSize=function(){var a,b;this.symbols.labels.forEach(function(d){b=d.getBBox(!0);
|
|
731
|
+
a=a?b.width>a.width?b:a:b});return a||{}};b.prototype.formatLabel=function(a){var b=this.options,d=b.labels.formatter;b=b.labels.format;var f=this.chart.numberFormatter;return b?e.format(b,a):d?d.call(a):f(a.value,1)};b.prototype.hideOverlappingLabels=function(){var a=this.chart,b=this.symbols;!this.options.labels.allowOverlap&&b&&(a.hideOverlappingLabels(b.labels),b.labels.forEach(function(a,d){a.newOpacity?a.newOpacity!==a.oldOpacity&&b.connectors[d].show():b.connectors[d].hide()}))};b.prototype.getRanges=
|
|
732
|
+
function(){var a=this.legend.bubbleLegend,b=a.options.ranges,e,f=Number.MAX_VALUE,q=-Number.MAX_VALUE;a.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&(e=a.zData.filter(v),e.length&&(f=l(a.options.zMin,Math.min(f,Math.max(x(e),!1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),q=l(a.options.zMax,Math.max(q,F(e)))))});var w=f===q?[{value:q}]:[{value:f},{value:(f+q)/2},{value:q,autoRanges:!0}];b.length&&b[0].radius&&w.reverse();w.forEach(function(a,d){b&&b[d]&&(w[d]=
|
|
733
|
+
m(b[d],a))});return w};b.prototype.predictBubbleSizes=function(){var a=this.chart,b=this.fontMetrics,e=a.legend.options,f=e.floating,l=(e="horizontal"===e.layout)?a.legend.lastLineHeight:0,m=a.plotSizeX,q=a.plotSizeY,t=a.series[this.options.seriesIndex],h=t.getPxExtremes();a=Math.ceil(h.minPxSize);h=Math.ceil(h.maxPxSize);var y=Math.min(q,m);t=t.options.maxSize;if(f||!/%$/.test(t))b=h;else if(t=parseFloat(t),b=(y+l-b.h/2)*t/100/(t/100+1),e&&q-b>=m||!e&&m-b>=q)b=h;return[a,Math.ceil(b)]};b.prototype.updateRanges=
|
|
734
|
+
function(a,b){var d=this.legend.options.bubbleLegend;d.minSize=a;d.maxSize=b;d.ranges=this.getRanges()};b.prototype.correctSizes=function(){var a=this.legend,b=this.chart.series[this.options.seriesIndex].getPxExtremes();1<Math.abs(Math.ceil(b.maxPxSize)-this.options.maxSize)&&(this.updateRanges(this.options.minSize,b.maxPxSize),a.render())};return b}();"";return b});J(e,"Series/Bubble/BubbleLegendComposition.js",[e["Series/Bubble/BubbleLegendDefaults.js"],e["Series/Bubble/BubbleLegendItem.js"],e["Core/Defaults.js"],
|
|
735
|
+
e["Core/Utilities.js"]],function(b,e,u,C){function B(a,b,d){var e=this.legend,l=0<=q(this),k;if(e&&e.options.enabled&&e.bubbleLegend&&e.options.bubbleLegend.autoRanges&&l){var h=e.bubbleLegend.options;l=e.bubbleLegend.predictBubbleSizes();e.bubbleLegend.updateRanges(l[0],l[1]);h.placed||(e.group.placed=!1,e.allItems.forEach(function(a){k=a.legendItem||{};k.group&&(k.group.translateY=null)}));e.render();this.getMargins();this.axes.forEach(function(a){a.visible&&a.render();h.placed||(a.setScale(),a.updateNames(),
|
|
736
|
+
f(a.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});h.placed=!0;this.getMargins();a.call(this,b,d);e.bubbleLegend.correctSizes();m(e,F(e))}else a.call(this,b,d),e&&e.options.enabled&&e.bubbleLegend&&(e.render(),m(e,F(e)))}function q(a){a=a.series;for(var b=0;b<a.length;){if(a[b]&&a[b].isBubble&&a[b].visible&&a[b].zData.length)return b;b++}return-1}function F(a){a=a.allItems;var b=[],d=a.length,e,f=0;for(e=0;e<d;e++){var l=a[e].legendItem||{};var h=(a[e+1]||{}).legendItem||{};l.labelHeight&&(a[e].itemHeight=
|
|
737
|
+
l.labelHeight);if(a[e]===a[d-1]||l.y!==h.y){b.push({height:0});l=b[b.length-1];for(f;f<=e;f++)a[f].itemHeight>l.height&&(l.height=a[f].itemHeight);l.step=e}}return b}function x(a){var b=this.bubbleLegend,d=this.options,f=d.bubbleLegend,l=q(this.chart);b&&b.ranges&&b.ranges.length&&(f.ranges.length&&(f.autoRanges=!!f.ranges[0].autoRanges),this.destroyItem(b));0<=l&&d.enabled&&f.enabled&&(f.seriesIndex=l,this.bubbleLegend=new e(f,this),this.bubbleLegend.addToLegend(a.allItems))}function v(){var a=this.chart,
|
|
738
|
+
b=this.visible,d=this.chart.legend;d&&d.bubbleLegend&&(this.visible=!b,this.ignoreSeries=b,a=0<=q(a),d.bubbleLegend.visible!==a&&(d.update({bubbleLegend:{enabled:a}}),d.bubbleLegend.visible=a),this.visible=b)}function m(a,b){var d=a.options.rtl,e,f,l,h,k=0;a.allItems.forEach(function(a,m){h=a.legendItem||{};if(h.group){e=h.group.translateX||0;f=h.y||0;if((l=a.movementX)||d&&a.ranges)l=d?e-a.options.maxSize/2:e+l,h.group.attr({translateX:l});m>b[k].step&&k++;h.group.attr({translateY:Math.round(f+b[k].height/
|
|
739
|
+
2)});h.y=f+b[k].height/2}})}var l=u.setOptions,a=C.addEvent,f=C.objectEach,d=C.wrap,k=[];return{compose:function(e,f,m){-1===k.indexOf(e)&&(k.push(e),l({legend:{bubbleLegend:b}}),d(e.prototype,"drawChartBox",B));-1===k.indexOf(f)&&(k.push(f),a(f,"afterGetAllItems",x));-1===k.indexOf(m)&&(k.push(m),a(m,"legendItemClick",v))}}});J(e,"Series/Bubble/BubblePoint.js",[e["Core/Series/Point.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,u){var C=this&&this.__extends||function(){var b=
|
|
740
|
+
function(e,u){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var m in e)e.hasOwnProperty(m)&&(b[m]=e[m])};return b(e,u)};return function(e,u){function q(){this.constructor=e}b(e,u);e.prototype=null===u?Object.create(u):(q.prototype=u.prototype,new q)}}();u=u.extend;e=function(e){function q(){var b=null!==e&&e.apply(this,arguments)||this;b.options=void 0;b.series=void 0;return b}C(q,e);q.prototype.haloPath=function(e){return b.prototype.haloPath.call(this,
|
|
741
|
+
0===e?0:(this.marker?this.marker.radius||0:0)+e)};return q}(e.seriesTypes.scatter.prototype.pointClass);u(e.prototype,{ttBelow:!1});return e});J(e,"Series/Bubble/BubbleSeries.js",[e["Series/Bubble/BubbleLegendComposition.js"],e["Series/Bubble/BubblePoint.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,u,C,B,q){function F(){var a=this,b=this.len,d=this.chart,e=this.isXAxis,f=e?"xData":"yData",g=this.min,l=this.max-g,c=0,k=b,
|
|
742
|
+
m=b/l,p;this.series.forEach(function(b){if(b.bubblePadding&&(b.visible||!d.options.chart.ignoreHiddenSeries)){p=a.allowZoomOutside=!0;var h=b[f];e&&((b.onPoint||b).getRadii(0,0,b),b.onPoint&&(b.radii=b.onPoint.radii));if(0<l)for(var n=h.length;n--;)if(E(h[n])&&a.dataMin<=h[n]&&h[n]<=a.max){var t=b.radii&&b.radii[n]||0;c=Math.min((h[n]-g)*m-t,c);k=Math.max((h[n]-g)*m+t,k)}}});p&&0<l&&!this.logarithmic&&(k-=b,m*=(b+Math.max(0,c)-Math.min(k,b))/b,[["min","userMin",c],["max","userMax",k]].forEach(function(b){"undefined"===
|
|
743
|
+
typeof w(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/m)}))}var x=this&&this.__extends||function(){var a=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 e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(e.prototype=d.prototype,new e)}}(),v=u.parse;u=C.noop;var m=B.series,l=B.seriesTypes;C=l.column.prototype;var a=l.scatter;
|
|
744
|
+
l=q.addEvent;var f=q.arrayMax,d=q.arrayMin,k=q.clamp,p=q.extend,E=q.isNumber,A=q.merge,w=q.pick,I=[];q=function(e){function h(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.maxPxSize=void 0;a.minPxSize=void 0;a.options=void 0;a.points=void 0;a.radii=void 0;a.yData=void 0;a.zData=void 0;return a}x(h,e);h.compose=function(a,d,e,f){b.compose(d,e,f);-1===I.indexOf(a)&&(I.push(a),a.prototype.beforePadding=F)};h.prototype.animate=function(a){!a&&this.points.length<this.options.animationLimit&&
|
|
745
|
+
this.points.forEach(function(a){var b=a.graphic;b&&b.width&&(this.hasRendered||b.attr({x:a.plotX,y:a.plotY,width:1,height:1}),b.animate(this.markerAttribs(a),this.options.animation))},this)};h.prototype.getRadii=function(){var a=this,b=this.zData,d=this.yData,e=[],f=this.chart.bubbleZExtremes;var c=this.getPxExtremes();var h=c.minPxSize,l=c.maxPxSize;if(!f){var k=Number.MAX_VALUE,m=-Number.MAX_VALUE,p;this.chart.series.forEach(function(b){b.bubblePadding&&(b.visible||!a.chart.options.chart.ignoreHiddenSeries)&&
|
|
746
|
+
(b=(b.onPoint||b).getZExtremes())&&(k=Math.min(k||b.zMin,b.zMin),m=Math.max(m||b.zMax,b.zMax),p=!0)});p?(f={zMin:k,zMax:m},this.chart.bubbleZExtremes=f):f={zMin:0,zMax:0}}var t=0;for(c=b.length;t<c;t++){var q=b[t];e.push(this.getRadius(f.zMin,f.zMax,h,l,q,d&&d[t]))}this.radii=e};h.prototype.getRadius=function(a,b,d,e,f,c){var g=this.options,h="width"!==g.sizeBy,l=g.zThreshold,k=b-a,m=.5;if(null===c||null===f)return null;if(E(f)){g.sizeByAbsoluteValue&&(f=Math.abs(f-l),k=Math.max(b-l,Math.abs(a-l)),
|
|
747
|
+
a=0);if(f<a)return d/2-1;0<k&&(m=(f-a)/k)}h&&0<=m&&(m=Math.sqrt(m));return Math.ceil(d+m*(e-d))/2};h.prototype.hasData=function(){return!!this.processedXData.length};h.prototype.pointAttribs=function(a,b){var d=this.options.marker.fillOpacity;a=m.prototype.pointAttribs.call(this,a,b);1!==d&&(a.fill=v(a.fill).setOpacity(d).get("rgba"));return a};h.prototype.translate=function(){e.prototype.translate.call(this);this.getRadii();this.translateBubble()};h.prototype.translateBubble=function(){for(var a=
|
|
748
|
+
this.data,b=this.radii,d=this.getPxExtremes().minPxSize,e=a.length;e--;){var f=a[e],c=b?b[e]:0;E(c)&&c>=d/2?(f.marker=p(f.marker,{radius:c,width:2*c,height:2*c}),f.dlBox={x:f.plotX-c,y:f.plotY-c,width:2*c,height:2*c}):(f.shapeArgs=f.dlBox=void 0,f.plotY=0,f.marker={width:0,height:0})}};h.prototype.getPxExtremes=function(){var a=Math.min(this.chart.plotWidth,this.chart.plotHeight),b=function(b){if("string"===typeof b){var d=/%$/.test(b);b=parseInt(b,10)}return d?a*b/100:b},d=b(w(this.options.minSize,
|
|
749
|
+
8));b=Math.max(b(w(this.options.maxSize,"20%")),d);return{minPxSize:d,maxPxSize:b}};h.prototype.getZExtremes=function(){var a=this.options,b=(this.zData||[]).filter(E);if(b.length){var e=w(a.zMin,k(d(b),!1===a.displayNegative?a.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));a=w(a.zMax,f(b));if(E(e)&&E(a))return{zMin:e,zMax:a}}};h.defaultOptions=A(a.defaultOptions,{dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.z;return E(b)?a(b,-1):""},inside:!0,verticalAlign:"middle"},
|
|
750
|
+
animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"});return h}(a);p(q.prototype,{alignDataLabel:C.alignDataLabel,applyZones:u,bubblePadding:!0,buildKDTree:u,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:e,parallelArrays:["x","y",
|
|
751
|
+
"z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});l(q,"updatedData",function(a){delete a.target.chart.bubbleZExtremes});l(q,"remove",function(a){delete a.target.chart.bubbleZExtremes});B.registerSeriesType("bubble",q);"";"";return q});J(e,"Series/MapBubble/MapBubblePoint.js",[e["Series/Bubble/BubblePoint.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,u){var C=this&&this.__extends||function(){var b=function(e,u){b=Object.setPrototypeOf||
|
|
752
|
+
{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var m in e)e.hasOwnProperty(m)&&(b[m]=e[m])};return b(e,u)};return function(e,u){function q(){this.constructor=e}b(e,u);e.prototype=null===u?Object.create(u):(q.prototype=u.prototype,new q)}}();e=e.seriesTypes.map.prototype.pointClass.prototype;u=u.extend;b=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}C(e,b);e.prototype.isValid=function(){return"number"===typeof this.z};return e}(b);u(b.prototype,
|
|
753
|
+
{applyOptions:e.applyOptions,getProjectedBounds:e.getProjectedBounds});return b});J(e,"Series/MapBubble/MapBubbleSeries.js",[e["Series/Bubble/BubbleSeries.js"],e["Series/MapBubble/MapBubblePoint.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e,u,C){var B=this&&this.__extends||function(){var b=function(e,a){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(e,a)};
|
|
754
|
+
return function(e,a){function f(){this.constructor=e}b(e,a);e.prototype=null===a?Object.create(a):(f.prototype=a.prototype,new f)}}(),q=u.seriesTypes,F=q.map.prototype,x=q.mappoint.prototype;q=C.extend;var v=C.merge;C=function(e){function l(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;a.clearBounds=F.clearBounds;return a}B(l,e);l.prototype.searchPoint=function(a,b){return this.searchKDTree({clientX:a.chartX-this.chart.plotLeft,plotY:a.chartY-this.chart.plotTop},
|
|
755
|
+
b,a)};l.prototype.translate=function(){x.translate.call(this);this.getRadii();this.translateBubble()};l.defaultOptions=v(b.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}});return l}(b);q(C.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:F.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:e,processData:F.processData,projectPoint:x.projectPoint,setData:F.setData,setOptions:F.setOptions,updateData:F.updateData,
|
|
756
|
+
useMapGeometry:!0,xyFromShape:!0});u.registerSeriesType("mapbubble",C);"";return C});J(e,"Series/Heatmap/HeatmapPoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(b,e){var u=this&&this.__extends||function(){var b=function(e,m){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var e in a)a.hasOwnProperty(e)&&(b[e]=a[e])};return b(e,m)};return function(e,m){function l(){this.constructor=e}b(e,m);e.prototype=null===m?
|
|
757
|
+
Object.create(m):(l.prototype=m.prototype,new l)}}(),C=e.clamp,B=e.defined,q=e.extend,F=e.pick;b=function(b){function e(){var e=null!==b&&b.apply(this,arguments)||this;e.options=void 0;e.series=void 0;e.value=void 0;e.x=void 0;e.y=void 0;return e}u(e,b);e.prototype.applyOptions=function(e,l){e=b.prototype.applyOptions.call(this,e,l);e.formatPrefix=e.isNull||null===e.value?"null":"point";return e};e.prototype.getCellAttributes=function(){var b=this.series,e=b.options,a=(e.colsize||1)/2,f=(e.rowsize||
|
|
758
|
+
1)/2,d=b.xAxis,k=b.yAxis,p=this.options.marker||b.options.marker;b=b.pointPlacementToXValue();var q=F(this.pointPadding,e.pointPadding,0),u={x1:C(Math.round(d.len-d.translate(this.x-a,!1,!0,!1,!0,-b)),-d.len,2*d.len),x2:C(Math.round(d.len-d.translate(this.x+a,!1,!0,!1,!0,-b)),-d.len,2*d.len),y1:C(Math.round(k.translate(this.y-f,!1,!0,!1,!0)),-k.len,2*k.len),y2:C(Math.round(k.translate(this.y+f,!1,!0,!1,!0)),-k.len,2*k.len)};[["width","x"],["height","y"]].forEach(function(a){var b=a[0];a=a[1];var d=
|
|
759
|
+
a+"1",e=a+"2",f=Math.abs(u[d]-u[e]),l=p&&p.lineWidth||0,k=Math.abs(u[d]+u[e])/2;b=p&&p[b];B(b)&&b<f&&(b=b/2+l/2,u[d]=k-b,u[e]=k+b);q&&("y"===a&&(d=e,e=a+"1"),u[d]+=q,u[e]-=q)});return u};e.prototype.haloPath=function(b){if(!b)return[];var e=this.shapeArgs;return["M",e.x-b,e.y-b,"L",e.x-b,e.y+e.height+b,e.x+e.width+b,e.y+e.height+b,e.x+e.width+b,e.y-b,"Z"]};e.prototype.isValid=function(){return Infinity!==this.value&&-Infinity!==this.value};return e}(b.seriesTypes.scatter.prototype.pointClass);q(b.prototype,
|
|
760
|
+
{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1});return b});J(e,"Series/Heatmap/HeatmapSeries.js",[e["Core/Color/Color.js"],e["Series/ColorMapComposition.js"],e["Series/Heatmap/HeatmapPoint.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],function(b,e,u,C,B,q,F){var x=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,
|
|
761
|
+
b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function e(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(e.prototype=d.prototype,new e)}}(),v=B.series,m=B.seriesTypes,l=m.column,a=m.scatter,f=q.prototype.symbols,d=F.extend,k=F.fireEvent,p=F.isNumber,E=F.merge,A=F.pick;q=function(e){function l(){var a=null!==e&&e.apply(this,arguments)||this;a.colorAxis=void 0;a.data=void 0;a.options=void 0;a.points=void 0;a.valueMax=NaN;a.valueMin=NaN;return a}
|
|
762
|
+
x(l,e);l.prototype.drawPoints=function(){var a=this;if((this.options.marker||{}).enabled||this._hasPointMarkers)v.prototype.drawPoints.call(this),this.points.forEach(function(b){b.graphic&&(b.graphic[a.chart.styledMode?"css":"animate"](a.colorAttribs(b)),null===b.value&&b.graphic.addClass("highcharts-null-point"))})};l.prototype.getExtremes=function(){var a=v.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;p(b)&&(this.valueMin=b);p(a)&&(this.valueMax=a);return v.prototype.getExtremes.call(this)};
|
|
763
|
+
l.prototype.getValidPoints=function(a,b){return v.prototype.getValidPoints.call(this,a,b,!0)};l.prototype.hasData=function(){return!!this.processedXData.length};l.prototype.init=function(){v.prototype.init.apply(this,arguments);var a=this.options;a.pointRange=A(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1;f.ellipse=f.circle;a.marker&&(a.marker.r=a.borderRadius)};l.prototype.markerAttribs=function(a,b){var d=a.marker||{},e=this.options.marker||{},f=a.shapeArgs||{},g={};if(a.hasImage)return{x:a.plotX,
|
|
764
|
+
y:a.plotY};if(b){var h=e.states[b]||{};var c=d.states&&d.states[b]||{};[["width","x"],["height","y"]].forEach(function(a){g[a[0]]=(c[a[0]]||h[a[0]]||f[a[0]])+(c[a[0]+"Plus"]||h[a[0]+"Plus"]||0);g[a[1]]=f[a[1]]+(f[a[0]]-g[a[0]])/2})}return b?g:f};l.prototype.pointAttribs=function(a,d){var e=v.prototype.pointAttribs.call(this,a,d),f=this.options||{},h=this.chart.options.plotOptions||{},g=h.series||{},l=h.heatmap||{};h=a&&a.options.borderColor||f.borderColor||l.borderColor||g.borderColor;g=a&&a.options.borderWidth||
|
|
765
|
+
f.borderWidth||l.borderWidth||g.borderWidth||e["stroke-width"];e.stroke=a&&a.marker&&a.marker.lineColor||f.marker&&f.marker.lineColor||h||this.color;e["stroke-width"]=g;d&&(a=E(f.states[d],f.marker&&f.marker.states[d],a&&a.options.states&&a.options.states[d]||{}),d=a.brightness,e.fill=a.color||b.parse(e.fill).brighten(d||0).get(),e.stroke=a.lineColor);return e};l.prototype.setClip=function(a){var b=this.chart;v.prototype.setClip.apply(this,arguments);(!1!==this.options.clip||a)&&this.markerGroup.clip((a||
|
|
766
|
+
this.clipBox)&&this.sharedClipKey?b.sharedClips[this.sharedClipKey]:b.clipRect)};l.prototype.translate=function(){var a=this.options,b=a.marker&&a.marker.symbol||"rect",e=f[b]?b:"rect",l=-1!==["circle","square"].indexOf(e);this.generatePoints();this.points.forEach(function(h){var g=h.getCellAttributes(),k={};k.x=Math.min(g.x1,g.x2);k.y=Math.min(g.y1,g.y2);k.width=Math.max(Math.abs(g.x2-g.x1),0);k.height=Math.max(Math.abs(g.y2-g.y1),0);var c=h.hasImage=0===(h.marker&&h.marker.symbol||b||"").indexOf("url");
|
|
767
|
+
if(l){var m=Math.abs(k.width-k.height);k.x=Math.min(g.x1,g.x2)+(k.width<k.height?0:m/2);k.y=Math.min(g.y1,g.y2)+(k.width<k.height?m/2:0);k.width=k.height=Math.min(k.width,k.height)}m={plotX:(g.x1+g.x2)/2,plotY:(g.y1+g.y2)/2,clientX:(g.x1+g.x2)/2,shapeType:"path",shapeArgs:E(!0,k,{d:f[e](k.x,k.y,k.width,k.height,{r:a.borderRadius})})};c&&(h.marker={width:k.width,height:k.height});d(h,m)});k(this,"afterTranslate")};l.defaultOptions=E(a.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:"#f7f7f7",
|
|
768
|
+
dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return p(b)?a(b,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:{symbol:"rect",radius:0,lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}}});return l}(a);d(q.prototype,{axisTypes:e.seriesMembers.axisTypes,colorKey:e.seriesMembers.colorKey,directTouch:!0,
|
|
769
|
+
getExtremesFromAll:!0,parallelArrays:e.seriesMembers.parallelArrays,pointArrayMap:["y","value"],pointClass:u,trackerGroups:e.seriesMembers.trackerGroups,alignDataLabel:l.prototype.alignDataLabel,colorAttribs:e.seriesMembers.colorAttribs,drawLegendSymbol:C.drawRectangle,getSymbol:v.prototype.getSymbol});e.compose(q);B.registerSeriesType("heatmap",q);"";"";return q});J(e,"masters/modules/map.src.js",[e["Core/Globals.js"],e["Core/Axis/Color/ColorAxis.js"],e["Series/MapBubble/MapBubbleSeries.js"],e["Core/Chart/MapChart.js"],
|
|
770
|
+
e["Maps/MapView.js"],e["Maps/Projection.js"]],function(b,e,u,C,B,q){b.ColorAxis=e;b.MapChart=C;b.mapChart=b.Map=C.mapChart;b.MapView=B;b.maps=C.maps;b.Projection=q;e.compose(b.Chart,b.Fx,b.Legend,b.Series);u.compose(b.Axis,b.Chart,b.Legend,b.Series)});J(e,"masters/highmaps.src.js",[e["masters/highcharts.src.js"]],function(b){b.product="Highmaps";return b});e["masters/highmaps.src.js"]._modules=e;return e["masters/highmaps.src.js"]});
|
|
769
771
|
//# sourceMappingURL=highmaps.js.map
|