highcharts 9.3.3 → 10.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/css/highcharts.css +19 -2
- package/css/highcharts.scss +17 -2
- package/css/themes/dark-unica.css +19 -2
- package/css/themes/grid-light.css +19 -2
- package/css/themes/sand-signika.css +19 -2
- package/es-modules/Accessibility/A11yI18n.js +4 -4
- package/es-modules/Accessibility/Accessibility.js +3 -4
- package/es-modules/Accessibility/Components/AnnotationsA11y.js +3 -3
- package/es-modules/Accessibility/Components/ContainerComponent.js +11 -10
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +18 -11
- package/es-modules/Accessibility/Components/LegendComponent.js +34 -26
- package/es-modules/Accessibility/Components/MenuComponent.js +7 -6
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +5 -3
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +7 -6
- package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +1 -1
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +3 -2
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +34 -18
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +96 -39
- package/es-modules/Accessibility/Components/ZoomComponent.js +43 -80
- package/es-modules/Accessibility/FocusBorder.js +6 -5
- package/es-modules/Accessibility/HighContrastMode.js +3 -3
- package/es-modules/Accessibility/KeyboardNavigation.js +113 -98
- package/es-modules/Accessibility/Options/{Options.js → A11yDefaults.js} +72 -4
- package/es-modules/Accessibility/Options/DeprecatedOptions.js +12 -2
- package/es-modules/Accessibility/Options/{LangOptions.js → LangDefaults.js} +46 -31
- package/es-modules/Accessibility/ProxyElement.js +14 -6
- package/es-modules/Accessibility/ProxyProvider.js +10 -2
- package/es-modules/Accessibility/Utils/ChartUtilities.js +10 -5
- package/es-modules/Core/Animation/Fx.js +1 -1
- package/es-modules/Core/Axis/Axis.js +197 -91
- package/es-modules/Core/Axis/AxisDefaults.js +8 -8
- package/es-modules/Core/Axis/Color/ColorAxis.js +26 -7
- package/es-modules/Core/Axis/Color/ColorAxisDefaults.js +3 -3
- package/es-modules/Core/Axis/DateTimeAxis.js +5 -3
- package/es-modules/Core/Axis/GridAxis.js +821 -821
- package/es-modules/Core/Axis/LogarithmicAxis.js +1 -1
- package/es-modules/Core/Axis/OrdinalAxis.js +26 -3
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +3 -3
- package/es-modules/Core/Axis/StackingAxis.js +0 -1
- package/es-modules/Core/Axis/Tick.js +22 -18
- package/es-modules/Core/Axis/TreeGridTick.js +13 -2
- package/es-modules/Core/Axis/ZAxis.js +3 -1
- package/es-modules/Core/Chart/Chart.js +27 -8
- package/es-modules/Core/Chart/Chart3D.js +1 -11
- package/es-modules/Core/Chart/ChartDefaults.js +46 -14
- package/es-modules/Core/Chart/GanttChart.js +3 -1
- package/es-modules/Core/Chart/MapChart.js +4 -7
- package/es-modules/Core/Chart/StockChart.js +7 -5
- package/es-modules/Core/Color/Color.js +1 -1
- package/es-modules/Core/DefaultOptions.js +19 -15
- package/es-modules/Core/Geometry/PolygonClip.js +84 -0
- package/es-modules/Core/Globals.js +4 -18
- package/es-modules/Core/HttpUtilities.js +46 -39
- package/es-modules/Core/Legend/Legend.js +14 -12
- package/es-modules/Core/MSPointer.js +3 -1
- package/es-modules/Core/Navigator.js +16 -13
- package/es-modules/Core/Pointer.js +16 -12
- package/es-modules/Core/Renderer/HTML/AST.js +68 -8
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +3 -1
- package/es-modules/Core/Renderer/HTML/HTMLRenderer.js +3 -1
- package/es-modules/Core/Renderer/SVG/SVGElement.js +54 -70
- package/es-modules/Core/Renderer/SVG/SVGElement3D.js +17 -5
- package/es-modules/Core/Renderer/SVG/SVGLabel.js +3 -1
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +60 -55
- package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +4 -2
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +12 -10
- package/es-modules/Core/Scrollbar.js +9 -5
- package/es-modules/Core/ScrollbarDefaults.js +8 -8
- package/es-modules/Core/Series/DataLabel.js +67 -38
- package/es-modules/Core/Series/Point.js +11 -2
- package/es-modules/Core/Series/Series.js +57 -27
- package/es-modules/Core/Series/Series3D.js +3 -1
- package/es-modules/Core/Series/SeriesDefaults.js +7 -4
- package/es-modules/Core/Time.js +6 -7
- package/es-modules/Core/Tooltip.js +17 -34
- package/es-modules/Core/Utilities.js +33 -33
- package/es-modules/Data/DataConverter.js +1 -1
- package/es-modules/Data/DataTable.js +12 -10
- package/es-modules/Data/Modifiers/ChainModifier.js +3 -1
- package/es-modules/Data/Modifiers/GroupModifier.js +3 -1
- package/es-modules/Data/Modifiers/InvertModifier.js +9 -7
- package/es-modules/Data/Modifiers/RangeModifier.js +3 -1
- package/es-modules/Data/Modifiers/SeriesPointsModifier.js +3 -1
- package/es-modules/Data/Modifiers/SortModifier.js +3 -1
- package/es-modules/Data/Parsers/CSVParser.js +3 -1
- package/es-modules/Data/Parsers/DataParser.js +1 -1
- package/es-modules/Data/Parsers/GoogleSheetsParser.js +3 -2
- package/es-modules/Data/Parsers/HTMLTableParser.js +3 -1
- package/es-modules/Data/Stores/CSVStore.js +8 -5
- package/es-modules/Data/Stores/GoogleSheetsStore.js +3 -1
- package/es-modules/Data/Stores/HTMLTableStore.js +3 -1
- package/es-modules/Extensions/Annotations/{Annotations.js → Annotation.js} +30 -11
- package/es-modules/Extensions/Annotations/AnnotationsDefaults.js +0 -0
- package/es-modules/Extensions/Annotations/ControlPoint.js +1 -1
- package/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +5 -2
- package/es-modules/Extensions/Annotations/MockPoint.js +1 -1
- package/es-modules/Extensions/Annotations/NavigationBindings.js +16 -5
- package/es-modules/Extensions/Annotations/Popup.js +2 -2
- package/es-modules/Extensions/Annotations/Types/BasicAnnotation.js +18 -12
- package/es-modules/Extensions/Annotations/Types/CrookedLine.js +4 -2
- package/es-modules/Extensions/Annotations/Types/ElliottWave.js +4 -2
- package/es-modules/Extensions/Annotations/Types/Fibonacci.js +5 -3
- package/es-modules/Extensions/Annotations/Types/FibonacciTimeZones.js +4 -2
- package/es-modules/Extensions/Annotations/Types/InfinityLine.js +4 -2
- package/es-modules/Extensions/Annotations/Types/Measure.js +4 -2
- package/es-modules/Extensions/Annotations/Types/Pitchfork.js +4 -2
- package/es-modules/Extensions/Annotations/Types/TimeCycles.js +4 -2
- package/es-modules/Extensions/Annotations/Types/Tunnel.js +5 -2
- package/es-modules/Extensions/Annotations/Types/VerticalLine.js +4 -2
- package/es-modules/Extensions/Boost/BoostAttach.js +5 -1
- package/es-modules/Extensions/Boost/BoostInit.js +9 -3
- package/es-modules/Extensions/Boost/BoostOptions.js +26 -0
- package/es-modules/Extensions/Boost/Boostables.js +1 -0
- package/es-modules/Extensions/Boost/WGLRenderer.js +48 -37
- package/es-modules/Extensions/Boost/WGLShader.js +4 -3
- package/es-modules/Extensions/BoostCanvas.js +11 -5
- package/es-modules/Extensions/Breadcrumbs.js +898 -0
- package/es-modules/Extensions/CurrentDateIndication.js +1 -1
- package/es-modules/Extensions/Data.js +661 -613
- package/es-modules/Extensions/DataGrouping.js +8 -3
- package/es-modules/Extensions/Debugger/ErrorMessages.js +4 -0
- package/es-modules/Extensions/DownloadURL.js +3 -3
- package/es-modules/Extensions/DragPanes.js +1 -1
- package/es-modules/Extensions/DraggablePoints.js +9 -7
- package/es-modules/Extensions/Drilldown.js +152 -97
- package/es-modules/Extensions/ExportData.js +58 -9
- package/es-modules/Extensions/Exporting/Exporting.js +34 -23
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +56 -8
- package/es-modules/Extensions/FullScreen.js +121 -54
- package/es-modules/Extensions/GeoJSON.js +149 -125
- package/es-modules/Extensions/MarkerClusters.js +36 -22
- package/es-modules/Extensions/NoDataToDisplay.js +1 -1
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +110 -22
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
- package/es-modules/Extensions/Oldie/Oldie.js +2 -2
- package/es-modules/Extensions/OverlappingDataLabels.js +5 -4
- package/es-modules/Extensions/Pane.js +3 -3
- package/es-modules/Extensions/ParallelCoordinates.js +1 -1
- package/es-modules/Extensions/PatternFill.js +14 -2
- package/es-modules/Extensions/RangeSelector.js +29 -18
- package/es-modules/Extensions/ScrollablePlotArea.js +8 -4
- package/es-modules/Extensions/{SeriesLabel.js → SeriesLabel/SeriesLabel.js} +262 -384
- package/es-modules/Extensions/SeriesLabel/SeriesLabelDefaults.js +124 -0
- package/es-modules/Extensions/SeriesLabel/SeriesLabelUtilities.js +67 -0
- package/es-modules/Extensions/Sonification/Earcon.js +1 -1
- package/es-modules/Extensions/Stacking.js +5 -4
- package/es-modules/Extensions/Themes/HighContrastDark.js +10 -10
- package/es-modules/Extensions/Themes/HighContrastLight.js +10 -10
- package/es-modules/Maps/MapNavigation.js +49 -12
- package/es-modules/Maps/MapPointer.js +16 -0
- package/es-modules/Maps/MapUtilities.js +56 -0
- package/es-modules/Maps/MapView.js +619 -137
- package/es-modules/Maps/MapViewInsetsOptionsDefault.js +148 -0
- package/es-modules/Maps/MapViewOptionsDefault.js +60 -20
- package/es-modules/Maps/Projection.js +182 -88
- package/es-modules/Maps/Projections/EqualEarth.js +15 -6
- package/es-modules/Maps/Projections/LambertConformalConic.js +27 -19
- package/es-modules/Maps/Projections/Miller.js +23 -10
- package/es-modules/Maps/Projections/Orthographic.js +21 -10
- package/es-modules/Maps/Projections/WebMercator.js +25 -13
- package/es-modules/Series/ArcDiagram/ArcDiagramPoint.js +79 -0
- package/es-modules/Series/ArcDiagram/ArcDiagramSeries.js +591 -0
- package/es-modules/Series/Area/AreaSeries.js +21 -14
- package/es-modules/Series/AreaRange/AreaRangePoint.js +24 -11
- package/es-modules/Series/AreaRange/AreaRangeSeries.js +154 -147
- package/es-modules/Series/AreaSpline/AreaSplineSeries.js +45 -41
- package/es-modules/Series/AreaSplineRange/AreaSplineRangeSeries.js +43 -43
- package/es-modules/Series/Bar/BarSeries.js +3 -1
- package/es-modules/Series/Bellcurve/BellcurveSeries.js +3 -1
- package/es-modules/Series/BoxPlot/BoxPlotSeries.js +4 -2
- package/es-modules/Series/Bubble/BubbleLegendDefaults.js +1 -1
- package/es-modules/Series/Bubble/BubblePoint.js +3 -1
- package/es-modules/Series/Bubble/BubbleSeries.js +15 -6
- package/es-modules/Series/Bullet/BulletPoint.js +3 -1
- package/es-modules/Series/Bullet/BulletSeries.js +4 -3
- package/es-modules/Series/Candlestick/CandlestickSeries.js +5 -3
- package/es-modules/Series/CenteredUtilities.js +8 -2
- package/es-modules/Series/ColorMapComposition.js +111 -0
- package/es-modules/Series/Column/ColumnSeries.js +10 -7
- package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +3 -1
- package/es-modules/Series/ColumnRange/ColumnRangePoint.js +17 -13
- package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +60 -57
- package/es-modules/Series/Cylinder/CylinderPoint.js +3 -1
- package/es-modules/Series/Cylinder/CylinderSeries.js +3 -1
- package/es-modules/Series/DataModifyComposition.js +1 -0
- package/es-modules/Series/DependencyWheel/DependencyWheelPoint.js +3 -1
- package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +5 -3
- package/es-modules/Series/DotPlot/DotPlotSeries.js +3 -1
- package/es-modules/Series/DrawPointUtilities.js +87 -0
- package/es-modules/Series/Dumbbell/DumbbellPoint.js +3 -1
- package/es-modules/Series/Dumbbell/DumbbellSeries.js +4 -2
- package/es-modules/Series/ErrorBar/ErrorBarSeries.js +4 -2
- package/es-modules/Series/Flags/FlagsPoint.js +4 -1
- package/es-modules/Series/Flags/FlagsSeries.js +13 -16
- package/es-modules/Series/Funnel/FunnelSeries.js +5 -3
- package/es-modules/Series/Funnel3D/Funnel3DPoint.js +3 -1
- package/es-modules/Series/Funnel3D/Funnel3DSeries.js +3 -1
- package/es-modules/Series/Gantt/GanttPoint.js +3 -1
- package/es-modules/Series/Gantt/GanttSeries.js +3 -1
- package/es-modules/Series/Gauge/GaugePoint.js +3 -1
- package/es-modules/Series/Gauge/GaugeSeries.js +196 -174
- package/es-modules/Series/HLC/HLCPoint.js +3 -1
- package/es-modules/Series/HLC/HLCSeries.js +4 -2
- package/es-modules/Series/Heatmap/HeatmapPoint.js +7 -5
- package/es-modules/Series/Heatmap/HeatmapSeries.js +29 -33
- package/es-modules/Series/HeikinAshi/HeikinAshiPoint.js +3 -1
- package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +3 -1
- package/es-modules/Series/Histogram/HistogramSeries.js +3 -1
- package/es-modules/Series/HollowCandlestick/HollowCandlestickPoint.js +3 -1
- package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +11 -9
- package/es-modules/Series/Item/ItemPoint.js +3 -1
- package/es-modules/Series/Item/ItemSeries.js +3 -1
- package/es-modules/Series/Line/LineSeries.js +4 -2
- package/es-modules/Series/Lollipop/LollipopPoint.js +3 -1
- package/es-modules/Series/Lollipop/LollipopSeries.js +4 -2
- package/es-modules/Series/Map/MapPoint.js +32 -7
- package/es-modules/Series/Map/MapSeries.js +298 -189
- package/es-modules/Series/MapBubble/MapBubblePoint.js +19 -25
- package/es-modules/Series/MapBubble/MapBubbleSeries.js +61 -2
- package/es-modules/Series/MapLine/MapLineSeries.js +18 -1
- package/es-modules/Series/MapPoint/MapPointPoint.js +6 -10
- package/es-modules/Series/MapPoint/MapPointSeries.js +50 -16
- package/es-modules/Series/Networkgraph/Networkgraph.js +3 -1
- package/es-modules/Series/NodesComposition.js +101 -49
- package/es-modules/Series/OHLC/OHLCPoint.js +3 -1
- package/es-modules/Series/OHLC/OHLCSeries.js +10 -1
- package/es-modules/Series/Organization/OrganizationPoint.js +71 -3
- package/es-modules/Series/Organization/OrganizationSeries.js +84 -28
- package/es-modules/Series/PackedBubble/PackedBubbleComposition.js +0 -2
- package/es-modules/Series/PackedBubble/PackedBubblePoint.js +3 -1
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +3 -1
- package/es-modules/Series/ParetoSeries/ParetoSeries.js +3 -1
- package/es-modules/Series/Pie/PieDataLabel.js +4 -2
- package/es-modules/Series/Pie/PiePoint.js +15 -6
- package/es-modules/Series/Pie/PieSeries.js +51 -37
- package/es-modules/Series/Pie3D/Pie3DPoint.js +3 -1
- package/es-modules/Series/Pie3D/Pie3DSeries.js +22 -1
- package/es-modules/Series/PolarComposition.js +819 -0
- package/es-modules/Series/Polygon/PolygonSeries.js +3 -1
- package/es-modules/Series/Pyramid/PyramidSeries.js +3 -1
- package/es-modules/Series/Pyramid3D/Pyramid3DSeries.js +3 -1
- package/es-modules/Series/Sankey/SankeyColumnComposition.js +193 -0
- package/es-modules/Series/Sankey/SankeyPoint.js +40 -2
- package/es-modules/Series/Sankey/SankeySeries.js +35 -136
- package/es-modules/Series/Scatter/ScatterSeries.js +11 -6
- package/es-modules/Series/Scatter3D/Scatter3DPoint.js +3 -1
- package/es-modules/Series/Scatter3D/Scatter3DSeries.js +3 -1
- package/es-modules/Series/SeriesOnPointComposition.js +391 -0
- package/es-modules/Series/SolidGauge/SolidGaugeSeries.js +5 -3
- package/es-modules/Series/Spline/SplineSeries.js +13 -4
- package/es-modules/Series/Streamgraph/StreamgraphSeries.js +3 -1
- package/es-modules/Series/Sunburst/SunburstPoint.js +3 -3
- package/es-modules/Series/Sunburst/SunburstSeries.js +21 -5
- package/es-modules/Series/Tilemap/TilemapPoint.js +3 -1
- package/es-modules/Series/Tilemap/TilemapSeries.js +3 -1
- package/es-modules/Series/Timeline/TimelinePoint.js +3 -1
- package/es-modules/Series/Timeline/TimelineSeries.js +6 -4
- package/es-modules/Series/Treemap/TreemapPoint.js +8 -4
- package/es-modules/Series/Treemap/TreemapSeries.js +97 -87
- package/es-modules/Series/VariablePie/VariablePieSeries.js +3 -1
- package/es-modules/Series/Variwide/VariwidePoint.js +3 -1
- package/es-modules/Series/Variwide/VariwideSeries.js +3 -1
- package/es-modules/Series/Vector/VectorSeries.js +3 -1
- package/es-modules/Series/Venn/VennPoint.js +5 -5
- package/es-modules/Series/Venn/VennSeries.js +9 -6
- package/es-modules/Series/Waterfall/WaterfallPoint.js +3 -1
- package/es-modules/Series/Waterfall/WaterfallSeries.js +16 -12
- package/es-modules/Series/Windbarb/WindbarbPoint.js +3 -1
- package/es-modules/Series/Windbarb/WindbarbSeries.js +3 -1
- package/es-modules/Series/Wordcloud/WordcloudPoint.js +6 -6
- package/es-modules/Series/Wordcloud/WordcloudSeries.js +11 -8
- package/es-modules/Series/XRange/XRangePoint.js +3 -1
- package/es-modules/Series/XRange/XRangeSeries.js +3 -1
- package/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +3 -1
- package/es-modules/Stock/Indicators/AD/ADIndicator.js +3 -1
- package/es-modules/Stock/Indicators/AO/AOIndicator.js +5 -3
- package/es-modules/Stock/Indicators/APO/APOIndicator.js +3 -1
- package/es-modules/Stock/Indicators/ATR/ATRIndicator.js +3 -1
- package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +3 -1
- package/es-modules/Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js +3 -1
- package/es-modules/Stock/Indicators/BB/BBIndicator.js +6 -4
- package/es-modules/Stock/Indicators/CCI/CCIIndicator.js +3 -1
- package/es-modules/Stock/Indicators/CMF/CMFIndicator.js +3 -1
- package/es-modules/Stock/Indicators/CMO/CMOIndicator.js +3 -1
- package/es-modules/Stock/Indicators/Chaikin/ChaikinIndicator.js +3 -1
- package/es-modules/Stock/Indicators/DEMA/DEMAIndicator.js +3 -1
- package/es-modules/Stock/Indicators/DMI/DMIIndicator.js +13 -7
- package/es-modules/Stock/Indicators/DPO/DPOIndicator.js +3 -1
- package/es-modules/Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js +3 -1
- package/es-modules/Stock/Indicators/EMA/EMAIndicator.js +3 -1
- package/es-modules/Stock/Indicators/IKH/IKHIndicator.js +3 -1
- package/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +3 -1
- package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +3 -1
- package/es-modules/Stock/Indicators/LinearRegression/LinearRegression.js +3 -1
- package/es-modules/Stock/Indicators/LinearRegressionAngle/LinearRegressionAngle.js +3 -1
- package/es-modules/Stock/Indicators/LinearRegressionIntercept/LinearRegressionIntercept.js +3 -1
- package/es-modules/Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopes.js +3 -1
- package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +26 -13
- package/es-modules/Stock/Indicators/MFI/MFIIndicator.js +3 -1
- package/es-modules/Stock/Indicators/Momentum/MomentumIndicator.js +3 -1
- package/es-modules/Stock/Indicators/MultipleLinesComposition.js +85 -95
- package/es-modules/Stock/Indicators/NATR/NATRIndicator.js +3 -1
- package/es-modules/Stock/Indicators/OBV/OBVIndicator.js +3 -1
- package/es-modules/Stock/Indicators/PC/PCIndicator.js +3 -1
- package/es-modules/Stock/Indicators/PPO/PPOIndicator.js +3 -1
- package/es-modules/Stock/Indicators/PSAR/PSARIndicator.js +3 -1
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +3 -1
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsPoint.js +3 -1
- package/es-modules/Stock/Indicators/PriceEnvelopes/PriceEnvelopesIndicator.js +3 -1
- package/es-modules/Stock/Indicators/ROC/ROCIndicator.js +3 -1
- package/es-modules/Stock/Indicators/RSI/RSIIndicator.js +3 -1
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +12 -3
- package/es-modules/Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js +3 -1
- package/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +3 -1
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +6 -4
- package/es-modules/Stock/Indicators/TEMA/TEMAIndicator.js +3 -1
- package/es-modules/Stock/Indicators/TRIX/TRIXIndicator.js +3 -1
- package/es-modules/Stock/Indicators/TrendLine/TrendLineIndicator.js +3 -1
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +3 -1
- package/es-modules/Stock/Indicators/VBP/VBPPoint.js +3 -1
- package/es-modules/Stock/Indicators/VWAP/VWAPIndicator.js +3 -1
- package/es-modules/Stock/Indicators/WMA/WMAIndicator.js +3 -1
- package/es-modules/Stock/Indicators/WilliamsR/WilliamsRIndicator.js +3 -1
- package/es-modules/Stock/Indicators/Zigzag/ZigzagIndicator.js +3 -1
- package/es-modules/Stock/StockToolsBindings.js +51 -43
- package/es-modules/Stock/StockToolsGui.js +1 -1
- package/es-modules/masters/highcharts-3d.src.js +1 -1
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +4 -4
- package/es-modules/masters/highcharts.src.js +1 -1
- package/es-modules/masters/highmaps.src.js +1 -1
- package/es-modules/masters/highstock.src.js +1 -1
- package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
- package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
- package/es-modules/masters/indicators/ao.src.js +1 -1
- package/es-modules/masters/indicators/apo.src.js +1 -1
- package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
- package/es-modules/masters/indicators/aroon.src.js +1 -1
- package/es-modules/masters/indicators/atr.src.js +1 -1
- package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
- package/es-modules/masters/indicators/cci.src.js +1 -1
- package/es-modules/masters/indicators/chaikin.src.js +1 -1
- package/es-modules/masters/indicators/cmf.src.js +1 -1
- package/es-modules/masters/indicators/cmo.src.js +1 -1
- package/es-modules/masters/indicators/dema.src.js +1 -1
- package/es-modules/masters/indicators/disparity-index.src.js +1 -1
- package/es-modules/masters/indicators/dmi.src.js +1 -1
- package/es-modules/masters/indicators/dpo.src.js +1 -1
- package/es-modules/masters/indicators/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 +2 -2
- package/es-modules/masters/modules/annotations.src.js +2 -2
- package/es-modules/masters/modules/arc-diagram.src.js +14 -0
- 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 +2 -1
- package/es-modules/masters/modules/datagrouping.src.js +1 -1
- package/es-modules/masters/modules/debugger.src.js +1 -1
- package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
- package/es-modules/masters/modules/dotplot.src.js +1 -1
- package/es-modules/masters/modules/drag-panes.src.js +1 -1
- package/es-modules/masters/modules/draggable-points.src.js +1 -1
- package/es-modules/masters/modules/drilldown.src.js +2 -1
- package/es-modules/masters/modules/dumbbell.src.js +1 -1
- package/es-modules/masters/modules/export-data.src.js +1 -1
- package/es-modules/masters/modules/exporting.src.js +1 -1
- package/es-modules/masters/modules/full-screen.src.js +1 -1
- package/es-modules/masters/modules/funnel.src.js +1 -1
- package/es-modules/masters/modules/funnel3d.src.js +1 -1
- package/es-modules/masters/modules/gantt.src.js +1 -1
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +1 -1
- package/es-modules/masters/modules/heikinashi.src.js +1 -1
- package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
- package/es-modules/masters/modules/item-series.src.js +1 -1
- package/es-modules/masters/modules/lollipop.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +5 -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 +5 -2
- package/es-modules/masters/modules/series-on-point.src.js +16 -0
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/sonification.src.js +2 -6
- package/es-modules/masters/modules/static-scale.src.js +1 -1
- package/es-modules/masters/modules/stock-tools.src.js +1 -1
- package/es-modules/masters/modules/stock.src.js +1 -1
- package/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/es-modules/masters/modules/sunburst.src.js +1 -1
- package/es-modules/masters/modules/tilemap.src.js +1 -1
- package/es-modules/masters/modules/timeline.src.js +1 -1
- package/es-modules/masters/modules/treegrid.src.js +1 -1
- package/es-modules/masters/modules/treemap.src.js +5 -1
- package/es-modules/masters/modules/variable-pie.src.js +1 -1
- package/es-modules/masters/modules/variwide.src.js +1 -1
- package/es-modules/masters/modules/vector.src.js +1 -1
- package/es-modules/masters/modules/venn.src.js +1 -1
- package/es-modules/masters/modules/windbarb.src.js +1 -1
- package/es-modules/masters/modules/wordcloud.src.js +1 -1
- package/es-modules/masters/modules/xrange.src.js +1 -1
- package/es-modules/masters/themes/avocado.src.js +1 -1
- package/es-modules/masters/themes/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 +99 -98
- package/highcharts-3d.js.map +1 -1
- package/highcharts-3d.src.js +51 -21
- package/highcharts-gantt.js +811 -801
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +2020 -1607
- package/highcharts-more.d.ts +10 -0
- package/highcharts-more.js +194 -194
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.d.ts +10 -0
- package/highcharts-more.src.js +3512 -3364
- package/highcharts.d.ts +12336 -965
- package/highcharts.js +595 -586
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +12336 -965
- package/highcharts.src.js +1047 -665
- package/highmaps.js +763 -728
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +4482 -2639
- package/highstock.js +798 -788
- package/highstock.js.map +1 -1
- package/highstock.src.js +1177 -739
- package/indicators/acceleration-bands.d.ts +1 -17
- package/indicators/acceleration-bands.js +11 -11
- package/indicators/acceleration-bands.js.map +1 -1
- package/indicators/acceleration-bands.src.d.ts +1 -17
- package/indicators/acceleration-bands.src.js +99 -100
- package/indicators/accumulation-distribution.js +5 -5
- package/indicators/accumulation-distribution.js.map +1 -1
- package/indicators/accumulation-distribution.src.js +11 -2
- package/indicators/ao.js +6 -6
- package/indicators/ao.js.map +1 -1
- package/indicators/ao.src.js +13 -4
- package/indicators/apo.js +5 -5
- package/indicators/apo.js.map +1 -1
- package/indicators/apo.src.js +11 -2
- package/indicators/aroon-oscillator.d.ts +1 -17
- package/indicators/aroon-oscillator.js +10 -10
- package/indicators/aroon-oscillator.js.map +1 -1
- package/indicators/aroon-oscillator.src.d.ts +1 -17
- package/indicators/aroon-oscillator.src.js +99 -100
- package/indicators/aroon.d.ts +1 -17
- package/indicators/aroon.js +11 -11
- package/indicators/aroon.js.map +1 -1
- package/indicators/aroon.src.d.ts +1 -17
- package/indicators/aroon.src.js +99 -100
- package/indicators/atr.js +5 -5
- package/indicators/atr.js.map +1 -1
- package/indicators/atr.src.js +11 -2
- package/indicators/bollinger-bands.d.ts +1 -17
- package/indicators/bollinger-bands.js +11 -12
- package/indicators/bollinger-bands.js.map +1 -1
- package/indicators/bollinger-bands.src.d.ts +1 -17
- package/indicators/bollinger-bands.src.js +102 -103
- package/indicators/cci.js +5 -5
- package/indicators/cci.js.map +1 -1
- package/indicators/cci.src.js +11 -2
- package/indicators/chaikin.js +8 -8
- package/indicators/chaikin.js.map +1 -1
- package/indicators/chaikin.src.js +11 -2
- package/indicators/cmf.js +6 -6
- package/indicators/cmf.js.map +1 -1
- package/indicators/cmf.src.js +11 -2
- package/indicators/cmo.js +5 -5
- package/indicators/cmo.js.map +1 -1
- package/indicators/cmo.src.js +11 -2
- package/indicators/dema.js +5 -5
- package/indicators/dema.js.map +1 -1
- package/indicators/dema.src.js +11 -2
- package/indicators/disparity-index.js +6 -6
- package/indicators/disparity-index.js.map +1 -1
- package/indicators/disparity-index.src.js +11 -2
- package/indicators/dmi.js +12 -12
- package/indicators/dmi.js.map +1 -1
- package/indicators/dmi.src.js +109 -106
- package/indicators/dpo.js +5 -5
- package/indicators/dpo.js.map +1 -1
- package/indicators/dpo.src.js +11 -2
- package/indicators/ema.js +2 -1
- package/indicators/ema.js.map +1 -1
- package/indicators/ema.src.js +10 -1
- package/indicators/ichimoku-kinko-hyo.js +16 -16
- package/indicators/ichimoku-kinko-hyo.js.map +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +11 -2
- package/indicators/indicators-all.d.ts +1 -17
- package/indicators/indicators-all.js +198 -196
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.d.ts +1 -17
- package/indicators/indicators-all.src.js +151 -129
- package/indicators/indicators.js +13 -12
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +21 -5
- package/indicators/keltner-channels.d.ts +1 -17
- package/indicators/keltner-channels.js +11 -11
- package/indicators/keltner-channels.js.map +1 -1
- package/indicators/keltner-channels.src.d.ts +1 -17
- package/indicators/keltner-channels.src.js +99 -100
- package/indicators/klinger.js +14 -14
- package/indicators/klinger.js.map +1 -1
- package/indicators/klinger.src.js +99 -100
- package/indicators/macd.js +13 -11
- package/indicators/macd.js.map +1 -1
- package/indicators/macd.src.js +35 -14
- package/indicators/mfi.js +6 -6
- package/indicators/mfi.js.map +1 -1
- package/indicators/mfi.src.js +11 -2
- package/indicators/momentum.js +5 -5
- package/indicators/momentum.js.map +1 -1
- package/indicators/momentum.src.js +11 -2
- package/indicators/natr.js +5 -4
- package/indicators/natr.js.map +1 -1
- package/indicators/natr.src.js +11 -2
- package/indicators/obv.js +5 -5
- package/indicators/obv.js.map +1 -1
- package/indicators/obv.src.js +11 -2
- package/indicators/pivot-points.js +11 -11
- package/indicators/pivot-points.js.map +1 -1
- package/indicators/pivot-points.src.js +11 -2
- package/indicators/ppo.js +5 -5
- package/indicators/ppo.js.map +1 -1
- package/indicators/ppo.src.js +11 -2
- package/indicators/price-channel.d.ts +1 -17
- package/indicators/price-channel.js +11 -11
- package/indicators/price-channel.js.map +1 -1
- package/indicators/price-channel.src.d.ts +1 -17
- package/indicators/price-channel.src.js +99 -100
- package/indicators/price-envelopes.js +8 -8
- package/indicators/price-envelopes.js.map +1 -1
- package/indicators/price-envelopes.src.js +11 -2
- package/indicators/psar.js +7 -6
- package/indicators/psar.js.map +1 -1
- package/indicators/psar.src.js +11 -2
- package/indicators/regressions.js +12 -12
- package/indicators/regressions.js.map +1 -1
- package/indicators/regressions.src.js +11 -2
- package/indicators/roc.js +5 -5
- package/indicators/roc.js.map +1 -1
- package/indicators/roc.src.js +11 -2
- package/indicators/rsi.js +6 -5
- package/indicators/rsi.js.map +1 -1
- package/indicators/rsi.src.js +11 -2
- package/indicators/slow-stochastic.js +5 -5
- package/indicators/slow-stochastic.js.map +1 -1
- package/indicators/slow-stochastic.src.js +11 -2
- package/indicators/stochastic.d.ts +1 -17
- package/indicators/stochastic.js +12 -12
- package/indicators/stochastic.js.map +1 -1
- package/indicators/stochastic.src.d.ts +1 -17
- package/indicators/stochastic.src.js +99 -100
- package/indicators/supertrend.js +10 -10
- package/indicators/supertrend.js.map +1 -1
- package/indicators/supertrend.src.js +14 -5
- package/indicators/tema.js +6 -6
- package/indicators/tema.js.map +1 -1
- package/indicators/tema.src.js +11 -2
- package/indicators/trendline.js +5 -5
- package/indicators/trendline.js.map +1 -1
- package/indicators/trendline.src.js +11 -2
- package/indicators/trix.js +4 -4
- package/indicators/trix.js.map +1 -1
- package/indicators/trix.src.js +11 -2
- package/indicators/volume-by-price.js +17 -17
- package/indicators/volume-by-price.js.map +1 -1
- package/indicators/volume-by-price.src.js +11 -2
- package/indicators/vwap.js +5 -5
- package/indicators/vwap.js.map +1 -1
- package/indicators/vwap.src.js +11 -2
- package/indicators/williams-r.js +6 -5
- package/indicators/williams-r.js.map +1 -1
- package/indicators/williams-r.src.js +11 -2
- package/indicators/wma.js +5 -5
- package/indicators/wma.js.map +1 -1
- package/indicators/wma.src.js +11 -2
- package/indicators/zigzag.js +6 -6
- package/indicators/zigzag.js.map +1 -1
- package/indicators/zigzag.src.js +11 -2
- package/lib/jspdf.js +299 -184
- package/lib/jspdf.src.js +25266 -18067
- package/lib/svg2pdf.js +35 -31
- package/lib/svg2pdf.src.js +5721 -4179
- package/modules/accessibility.js +242 -237
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.js +599 -390
- package/modules/annotations-advanced.js +192 -192
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +96 -47
- package/modules/annotations.js +126 -126
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +67 -25
- package/modules/arc-diagram.js +25 -0
- package/modules/arc-diagram.js.map +1 -0
- package/modules/arc-diagram.src.js +778 -0
- package/modules/arrow-symbols.js +4 -3
- package/modules/arrow-symbols.js.map +1 -1
- package/modules/arrow-symbols.src.js +11 -2
- package/modules/boost-canvas.js +16 -15
- package/modules/boost-canvas.js.map +1 -1
- package/modules/boost-canvas.src.js +22 -7
- package/modules/boost.js +81 -79
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.js +90 -51
- package/modules/broken-axis.js +13 -13
- package/modules/broken-axis.js.map +1 -1
- package/modules/broken-axis.src.js +11 -2
- package/modules/bullet.js +9 -9
- package/modules/bullet.js.map +1 -1
- package/modules/bullet.src.js +12 -6
- package/modules/coloraxis.js +24 -24
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +37 -11
- package/modules/current-date-indicator.js +5 -4
- package/modules/current-date-indicator.js.map +1 -1
- package/modules/current-date-indicator.src.js +12 -3
- package/modules/cylinder.js +11 -11
- package/modules/cylinder.js.map +1 -1
- package/modules/cylinder.src.js +11 -2
- package/modules/data.d.ts +12 -12
- package/modules/data.js +33 -33
- package/modules/data.js.map +1 -1
- package/modules/data.src.d.ts +12 -12
- package/modules/data.src.js +906 -846
- package/modules/datagrouping.js +21 -20
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.js +19 -5
- package/modules/debugger.js +8 -7
- package/modules/debugger.js.map +1 -1
- package/modules/debugger.src.js +15 -2
- package/modules/dependency-wheel.js +12 -11
- package/modules/dependency-wheel.js.map +1 -1
- package/modules/dependency-wheel.src.js +14 -5
- package/modules/dotplot.js +6 -6
- package/modules/dotplot.js.map +1 -1
- package/modules/dotplot.src.js +11 -2
- package/modules/drag-panes.js +10 -10
- package/modules/drag-panes.js.map +1 -1
- package/modules/drag-panes.src.js +12 -3
- package/modules/draggable-points.js +35 -34
- package/modules/draggable-points.js.map +1 -1
- package/modules/draggable-points.src.js +20 -9
- package/modules/drilldown.d.ts +19 -0
- package/modules/drilldown.js +37 -25
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.d.ts +19 -0
- package/modules/drilldown.src.js +1124 -108
- package/modules/dumbbell.d.ts +4 -0
- package/modules/dumbbell.js +17 -17
- package/modules/dumbbell.js.map +1 -1
- package/modules/dumbbell.src.d.ts +4 -0
- package/modules/dumbbell.src.js +34 -13
- package/modules/export-data.js +24 -21
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +87 -14
- package/modules/exporting.d.ts +8 -8
- package/modules/exporting.js +39 -39
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.d.ts +8 -8
- package/modules/exporting.src.js +270 -135
- package/modules/full-screen.js +8 -7
- package/modules/full-screen.js.map +1 -1
- package/modules/full-screen.src.js +135 -58
- package/modules/funnel.js +12 -12
- package/modules/funnel.js.map +1 -1
- package/modules/funnel.src.js +13 -4
- package/modules/funnel3d.js +21 -21
- package/modules/funnel3d.js.map +1 -1
- package/modules/funnel3d.src.js +11 -2
- package/modules/gantt.js +218 -217
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +983 -943
- package/modules/grid-axis.js +23 -23
- package/modules/grid-axis.js.map +1 -1
- package/modules/grid-axis.src.js +900 -890
- package/modules/heatmap.js +40 -39
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +160 -113
- package/modules/heikinashi.js +8 -8
- package/modules/heikinashi.js.map +1 -1
- package/modules/heikinashi.src.js +11 -2
- package/modules/histogram-bellcurve.js +13 -13
- package/modules/histogram-bellcurve.js.map +1 -1
- package/modules/histogram-bellcurve.src.js +11 -2
- package/modules/hollowcandlestick.js +9 -9
- package/modules/hollowcandlestick.js.map +1 -1
- package/modules/hollowcandlestick.src.js +19 -10
- package/modules/item-series.js +12 -12
- package/modules/item-series.js.map +1 -1
- package/modules/item-series.src.js +11 -2
- package/modules/lollipop.js +7 -7
- package/modules/lollipop.js.map +1 -1
- package/modules/lollipop.src.js +12 -3
- package/modules/map.d.ts +80 -43
- package/modules/map.js +171 -144
- package/modules/map.js.map +1 -1
- package/modules/map.src.d.ts +80 -43
- package/modules/map.src.js +8292 -6822
- package/modules/marker-clusters.js +36 -36
- package/modules/marker-clusters.js.map +1 -1
- package/modules/marker-clusters.src.js +48 -28
- package/modules/networkgraph.d.ts +1 -12
- package/modules/networkgraph.js +46 -45
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.d.ts +1 -12
- package/modules/networkgraph.src.js +127 -55
- package/modules/no-data-to-display.js +5 -5
- package/modules/no-data-to-display.js.map +1 -1
- package/modules/no-data-to-display.src.js +12 -3
- package/modules/offline-exporting.js +20 -18
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +129 -28
- package/modules/oldie-polyfills.js +7 -7
- package/modules/oldie-polyfills.js.map +1 -1
- package/modules/oldie-polyfills.src.js +11 -2
- package/modules/oldie.js +30 -30
- package/modules/oldie.js.map +1 -1
- package/modules/oldie.src.js +13 -4
- package/modules/organization.js +16 -14
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +168 -34
- package/modules/overlapping-datalabels.js +3 -2
- package/modules/overlapping-datalabels.js.map +1 -1
- package/modules/overlapping-datalabels.src.js +11 -2
- package/modules/parallel-coordinates.js +11 -11
- package/modules/parallel-coordinates.js.map +1 -1
- package/modules/parallel-coordinates.src.js +12 -3
- package/modules/pareto.js +7 -7
- package/modules/pareto.js.map +1 -1
- package/modules/pareto.src.js +11 -2
- package/modules/pathfinder.js +31 -31
- package/modules/pathfinder.js.map +1 -1
- package/modules/pathfinder.src.js +11 -2
- package/modules/pattern-fill.js +15 -14
- package/modules/pattern-fill.js.map +1 -1
- package/modules/pattern-fill.src.js +25 -3
- package/modules/price-indicator.js +5 -5
- package/modules/price-indicator.js.map +1 -1
- package/modules/price-indicator.src.js +11 -2
- package/modules/pyramid3d.js +4 -4
- package/modules/pyramid3d.js.map +1 -1
- package/modules/pyramid3d.src.js +11 -2
- package/modules/sankey.d.ts +1 -12
- package/modules/sankey.js +32 -29
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.d.ts +1 -12
- package/modules/sankey.src.js +422 -207
- package/modules/series-label.js +18 -17
- package/modules/series-label.js.map +1 -1
- package/modules/series-label.src.js +482 -386
- package/modules/series-on-point.js +18 -0
- package/modules/series-on-point.js.map +1 -0
- package/modules/series-on-point.src.js +464 -0
- package/modules/solid-gauge.js +10 -10
- package/modules/solid-gauge.js.map +1 -1
- package/modules/solid-gauge.src.js +15 -6
- package/modules/sonification.js +59 -59
- package/modules/sonification.js.map +1 -1
- package/modules/sonification.src.js +13 -8
- package/modules/static-scale.js +5 -4
- package/modules/static-scale.js.map +1 -1
- package/modules/static-scale.src.js +11 -2
- package/modules/stock-tools.js +167 -167
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.js +118 -67
- package/modules/stock.js +205 -204
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.js +141 -76
- package/modules/streamgraph.js +5 -4
- package/modules/streamgraph.js.map +1 -1
- package/modules/streamgraph.src.js +11 -2
- package/modules/sunburst.d.ts +3 -0
- package/modules/sunburst.js +73 -60
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.d.ts +3 -0
- package/modules/sunburst.src.js +1391 -406
- package/modules/tilemap.js +17 -17
- package/modules/tilemap.js.map +1 -1
- package/modules/tilemap.src.js +11 -2
- package/modules/timeline.js +18 -18
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +14 -5
- package/modules/treegrid.js +57 -56
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +913 -892
- package/modules/treemap.d.ts +3 -0
- package/modules/treemap.js +54 -41
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.d.ts +3 -0
- package/modules/treemap.src.js +1229 -255
- package/modules/variable-pie.js +9 -9
- package/modules/variable-pie.js.map +1 -1
- package/modules/variable-pie.src.js +11 -2
- package/modules/variwide.js +12 -12
- package/modules/variwide.js.map +1 -1
- package/modules/variwide.src.js +11 -2
- package/modules/vector.js +8 -7
- package/modules/vector.js.map +1 -1
- package/modules/vector.src.js +11 -2
- package/modules/venn.js +31 -31
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +88 -105
- package/modules/windbarb.js +15 -15
- package/modules/windbarb.js.map +1 -1
- package/modules/windbarb.src.js +11 -2
- package/modules/wordcloud.js +23 -23
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +92 -109
- package/modules/xrange.js +16 -16
- package/modules/xrange.js.map +1 -1
- package/modules/xrange.src.js +11 -2
- package/package.json +1 -1
- package/themes/avocado.js +4 -3
- package/themes/avocado.js.map +1 -1
- package/themes/avocado.src.js +11 -2
- package/themes/brand-dark.js +9 -8
- package/themes/brand-dark.js.map +1 -1
- package/themes/brand-dark.src.js +11 -2
- package/themes/brand-light.js +8 -8
- package/themes/brand-light.js.map +1 -1
- package/themes/brand-light.src.js +11 -2
- package/themes/dark-blue.js +9 -8
- package/themes/dark-blue.js.map +1 -1
- package/themes/dark-blue.src.js +11 -2
- package/themes/dark-green.js +9 -8
- package/themes/dark-green.js.map +1 -1
- package/themes/dark-green.src.js +11 -2
- package/themes/dark-unica.js +8 -7
- package/themes/dark-unica.js.map +1 -1
- package/themes/dark-unica.src.js +11 -2
- package/themes/gray.js +9 -8
- package/themes/gray.js.map +1 -1
- package/themes/gray.src.js +11 -2
- package/themes/grid-light.js +5 -4
- package/themes/grid-light.js.map +1 -1
- package/themes/grid-light.src.js +11 -2
- package/themes/grid.js +5 -5
- package/themes/grid.js.map +1 -1
- package/themes/grid.src.js +11 -2
- package/themes/high-contrast-dark.js +7 -7
- package/themes/high-contrast-dark.js.map +1 -1
- package/themes/high-contrast-dark.src.js +21 -12
- package/themes/high-contrast-light.js +3 -3
- package/themes/high-contrast-light.js.map +1 -1
- package/themes/high-contrast-light.src.js +21 -12
- package/themes/sand-signika.js +5 -5
- package/themes/sand-signika.js.map +1 -1
- package/themes/sand-signika.src.js +11 -2
- package/themes/skies.js +5 -5
- package/themes/skies.js.map +1 -1
- package/themes/skies.src.js +11 -2
- package/themes/sunset.js +3 -3
- package/themes/sunset.js.map +1 -1
- package/themes/sunset.src.js +11 -2
- package/es-modules/Extensions/Polar.js +0 -740
- package/es-modules/Maps/ProjectionDefinition.js +0 -9
- package/es-modules/Series/ColorMapMixin.js +0 -84
- package/es-modules/Series/DrawPointComposition.js +0 -111
package/modules/map.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Highmaps JS
|
|
2
|
+
Highmaps JS v10.2.0 (2022-07-05)
|
|
3
3
|
|
|
4
4
|
Highmaps as a plugin for Highcharts or Highcharts Stock.
|
|
5
5
|
|
|
@@ -7,147 +7,174 @@
|
|
|
7
7
|
|
|
8
8
|
License: www.highcharts.com/license
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
function
|
|
14
|
-
"undefined"!==typeof
|
|
15
|
-
|
|
16
|
-
h);-1===
|
|
17
|
-
offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0}});
|
|
18
|
-
function(){var a=function(
|
|
19
|
-
"colorAxis";
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
this.options.crosshair=this.options.marker};
|
|
23
|
-
return 1-(this.max-a)/(this.max-this.min||1)};
|
|
24
|
-
this.legendGroup,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
typeof
|
|
28
|
-
(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!==typeof this.crosshair||this.cross.attr({fill:this.crosshair.color}))}};
|
|
29
|
-
this.series.forEach(function(a){a.isDirtyData=!0});(a.dataClasses&&
|
|
30
|
-
[].slice.call(arguments))};
|
|
31
|
-
(
|
|
32
|
-
f.keepProps);"";return
|
|
33
|
-
{zoomIn:"Zoom in",zoomOut:"Zoom out"});return
|
|
34
|
-
|
|
35
|
-
"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
.
|
|
47
|
-
c,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
function(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
g&&(e.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
function(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
n=p
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
b.
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
b.
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
this.
|
|
85
|
-
|
|
86
|
-
this))
|
|
87
|
-
|
|
88
|
-
b
|
|
89
|
-
this.
|
|
90
|
-
|
|
91
|
-
[
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
0,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
{
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
b
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
c[
|
|
119
|
-
|
|
120
|
-
this.points.forEach(function(
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
b.
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
(
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
f.
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
c
|
|
152
|
-
|
|
10
|
+
(function(b){"object"===typeof module&&module.exports?(b["default"]=b,module.exports=b):"function"===typeof define&&define.amd?define("highcharts/modules/map",["highcharts"],function(v){b(v);b.Highcharts=v;return b}):b("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(b){function v(b,l,q,k){b.hasOwnProperty(l)||(b[l]=k.apply(null,q),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:l,module:b[l]}})))}b=b?b._modules:{};v(b,"Core/Axis/Color/ColorAxisComposition.js",
|
|
11
|
+
[b["Core/Color/Color.js"],b["Core/Utilities.js"]],function(b,l){var q=b.parse,k=l.addEvent,p=l.extend,h=l.merge,e=l.pick,t=l.splat,n;(function(d){function n(){var f=this,m=this.options;this.colorAxis=[];m.colorAxis&&(m.colorAxis=t(m.colorAxis),m.colorAxis.forEach(function(m,a){m.index=a;new B(f,m)}))}function a(f){var m=this,a=function(a){a=f.allItems.indexOf(a);-1!==a&&(m.destroyItem(f.allItems[a]),f.allItems.splice(a,1))},c=[],w,x;(this.chart.colorAxis||[]).forEach(function(f){(w=f.options)&&w.showInLegend&&
|
|
12
|
+
(w.dataClasses&&w.visible?c=c.concat(f.getDataClassLegendSymbols()):w.visible&&c.push(f),f.series.forEach(function(f){if(!f.options.showInLegend||w.dataClasses)"point"===f.options.legendType?f.points.forEach(function(f){a(f)}):a(f)}))});for(x=c.length;x--;)f.allItems.unshift(c[x])}function c(f){f.visible&&f.item.legendColor&&f.item.legendSymbol.attr({fill:f.item.legendColor})}function g(){var f=this.chart.colorAxis;f&&f.forEach(function(f,m,a){f.update({},a)})}function u(){(this.chart.colorAxis&&
|
|
13
|
+
this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function D(){var f=this.axisTypes;f?-1===f.indexOf("colorAxis")&&f.push("colorAxis"):this.axisTypes=["colorAxis"]}function F(f){var m=this,a=f?"show":"hide";m.visible=m.options.visible=!!f;["graphic","dataLabel"].forEach(function(f){if(m[f])m[f][a]()});this.series.buildKDTree()}function r(){var f=this,m=this.options.nullColor,a=this.colorAxis,c=this.colorKey;(this.data.length?this.data:this.points).forEach(function(w){var x=w.getNestedProperty(c);
|
|
14
|
+
(x=w.options.color||(w.isNull||null===w.value?m:a&&"undefined"!==typeof x?a.toColor(x,w):w.color||f.color))&&w.color!==x&&(w.color=x,"point"===f.options.legendType&&w.legendItem&&f.chart.legend.colorizeItem(w,w.visible))})}function z(f){var m=f.prototype.createAxis;f.prototype.createAxis=function(f,a){if("colorAxis"!==f)return m.apply(this,arguments);var c=new B(this,h(a.axis,{index:this[f].length,isX:!1}));this.isDirtyLegend=!0;this.axes.forEach(function(f){f.series=[]});this.series.forEach(function(f){f.bindAxes();
|
|
15
|
+
f.isDirtyData=!0});e(a.redraw,!0)&&this.redraw(a.animation);return c}}function x(){this.elem.attr("fill",q(this.start).tweenTo(q(this.end),this.pos),void 0,!0)}function f(){this.elem.attr("stroke",q(this.start).tweenTo(q(this.end),this.pos),void 0,!0)}var m=[],B;d.compose=function(d,h,e,y,w){B||(B=d);-1===m.indexOf(h)&&(m.push(h),d=h.prototype,d.collectionsWithUpdate.push("colorAxis"),d.collectionsWithInit.colorAxis=[d.addColorAxis],k(h,"afterGetAxes",n),z(h));-1===m.indexOf(e)&&(m.push(e),h=e.prototype,
|
|
16
|
+
h.fillSetter=x,h.strokeSetter=f);-1===m.indexOf(y)&&(m.push(y),k(y,"afterGetAllItems",a),k(y,"afterColorizeItem",c),k(y,"afterUpdate",g));-1===m.indexOf(w)&&(m.push(w),p(w.prototype,{optionalAxis:"colorAxis",translateColors:r}),p(w.prototype.pointClass.prototype,{setVisible:F}),k(w,"afterTranslate",u),k(w,"bindAxes",D))};d.pointSetVisible=F})(n||(n={}));return n});v(b,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,
|
|
17
|
+
startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0}});v(b,"Core/Axis/Color/ColorAxis.js",[b["Core/Axis/Axis.js"],b["Core/Color/Color.js"],b["Core/Axis/Color/ColorAxisComposition.js"],b["Core/Axis/Color/ColorAxisDefaults.js"],b["Core/Globals.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,l,
|
|
18
|
+
q,k,p,h,e,t){var n=this&&this.__extends||function(){var a=function(c,g){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,f){a.__proto__=f}||function(a,f){for(var m in f)f.hasOwnProperty(m)&&(a[m]=f[m])};return a(c,g)};return function(c,g){function x(){this.constructor=c}a(c,g);c.prototype=null===g?Object.create(g):(x.prototype=g.prototype,new x)}}(),d=l.parse,y=p.noop,a=e.series,c=t.extend,g=t.isNumber,u=t.merge,D=t.pick;l=function(e){function r(a,c){var f=e.call(this,a,c)||this;
|
|
19
|
+
f.beforePadding=!1;f.chart=void 0;f.coll="colorAxis";f.dataClasses=void 0;f.legendItem=void 0;f.legendItems=void 0;f.name="";f.options=void 0;f.stops=void 0;f.visible=!0;f.init(a,c);return f}n(r,e);r.compose=function(a,c,f,m){q.compose(r,a,c,f,m)};r.prototype.init=function(a,c){var f=a.options.legend||{},m=c.layout?"vertical"!==c.layout:"vertical"!==f.layout,g=c.visible;f=u(r.defaultColorAxisOptions,c,{showEmpty:!1,title:null,visible:f.enabled&&!1!==g});this.coll="colorAxis";this.side=c.side||m?2:
|
|
20
|
+
1;this.reversed=c.reversed||!m;this.opposite=!m;e.prototype.init.call(this,a,f);this.userOptions.visible=g;c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=m;this.zoomEnabled=!1};r.prototype.initDataClasses=function(a){var c=this.chart,f=this.options,m=a.dataClasses.length,g,z=0,r=c.options.chart.colorCount;this.dataClasses=g=[];this.legendItems=[];(a.dataClasses||[]).forEach(function(a,x){a=u(a);g.push(a);if(c.styledMode||!a.color)"category"===f.dataClassColor?(c.styledMode||(x=
|
|
21
|
+
c.options.colors,r=x.length,a.color=x[z]),a.colorIndex=z,z++,z===r&&(z=0)):a.color=d(f.minColor).tweenTo(d(f.maxColor),2>m?.5:x/(m-1))})};r.prototype.hasData=function(){return!!(this.tickPositions||[]).length};r.prototype.setTickPositions=function(){if(!this.dataClasses)return e.prototype.setTickPositions.call(this)};r.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(a){a.color=d(a[1])})};r.prototype.setOptions=
|
|
22
|
+
function(a){e.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker};r.prototype.setAxisSize=function(){var a=this.legendSymbol,c=this.chart,f=c.options.legend||{},m,g;a?(this.left=f=a.attr("x"),this.top=m=a.attr("y"),this.width=g=a.attr("width"),this.height=a=a.attr("height"),this.right=c.chartWidth-f-g,this.bottom=c.chartHeight-m-a,this.len=this.horiz?g:a,this.pos=this.horiz?f:m):this.len=(this.horiz?f.symbolWidth:f.symbolHeight)||r.defaultLegendLength};r.prototype.normalizedValue=
|
|
23
|
+
function(a){this.logarithmic&&(a=this.logarithmic.log2lin(a));return 1-(this.max-a)/(this.max-this.min||1)};r.prototype.toColor=function(a,c){var f=this.dataClasses,m=this.stops,g;if(f)for(g=f.length;g--;){var x=f[g];var u=x.from;m=x.to;if(("undefined"===typeof u||a>=u)&&("undefined"===typeof m||a<=m)){var d=x.color;c&&(c.dataClass=g,c.colorIndex=x.colorIndex);break}}else{a=this.normalizedValue(a);for(g=m.length;g--&&!(a>m[g][0]););u=m[g]||m[g+1];m=m[g+1]||u;a=1-(m[0]-a)/(m[0]-u[0]||1);d=u.color.tweenTo(m.color,
|
|
24
|
+
a)}return d};r.prototype.getOffset=function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];if(a){this.axisParent=a;e.prototype.getOffset.call(this);var f=this.chart.legend;f.allItems.forEach(function(a){a instanceof r&&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]=c}};r.prototype.setLegendColor=function(){var a=this.reversed,c=a?1:0;a=a?0:1;c=this.horiz?[c,0,a,0]:
|
|
25
|
+
[0,a,0,c];this.legendColor={linearGradient:{x1:c[0],y1:c[1],x2:c[2],y2:c[3]},stops:this.stops}};r.prototype.drawLegendSymbol=function(a,c){var f=a.padding,m=a.options,g=this.horiz,x=D(m.symbolWidth,g?r.defaultLegendLength:12),u=D(m.symbolHeight,g?12:r.defaultLegendLength),d=D(m.labelPadding,g?16:30);m=D(m.itemDistance,10);this.setLegendColor();c.legendSymbol||(c.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,x,u).attr({zIndex:1}).add(c.legendGroup));this.legendItemWidth=x+f+(g?m:this.options.labels.x+
|
|
26
|
+
this.maxLabelLength);this.legendItemHeight=u+f+(g?d:0)};r.prototype.setState=function(a){this.series.forEach(function(c){c.setState(a)})};r.prototype.setVisible=function(){};r.prototype.getSeriesExtremes=function(){var c=this.series,g=c.length,f;this.dataMin=Infinity;for(this.dataMax=-Infinity;g--;){var m=c[g];var u=m.colorKey=D(m.options.colorKey,m.colorKey,m.pointValKey,m.zoneAxis,"y");var d=m.pointArrayMap;var r=m[u+"Min"]&&m[u+"Max"];if(m[u+"Data"])var e=m[u+"Data"];else if(d){e=[];d=d.indexOf(u);
|
|
27
|
+
var n=m.yData;if(0<=d&&n)for(f=0;f<n.length;f++)e.push(D(n[f][d],n[f]))}else e=m.yData;r?(m.minColorValue=m[u+"Min"],m.maxColorValue=m[u+"Max"]):(e=a.prototype.getExtremes.call(m,e),m.minColorValue=e.dataMin,m.maxColorValue=e.dataMax);"undefined"!==typeof m.minColorValue&&(this.dataMin=Math.min(this.dataMin,m.minColorValue),this.dataMax=Math.max(this.dataMax,m.maxColorValue));r||a.prototype.applyExtremes.call(m)}};r.prototype.drawCrosshair=function(a,c){var f=c&&c.plotX,m=c&&c.plotY,g=this.pos,u=
|
|
28
|
+
this.len;if(c){var d=this.toPixels(c.getNestedProperty(c.series.colorKey));d<g?d=g-2:d>g+u&&(d=g+u+2);c.plotX=d;c.plotY=this.len-d;e.prototype.drawCrosshair.call(this,a,c);c.plotX=f;c.plotY=m;this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!==typeof this.crosshair||this.cross.attr({fill:this.crosshair.color}))}};r.prototype.getPlotLinePath=function(a){var c=
|
|
29
|
+
this.left,f=a.translatedValue,m=this.top;return g(f)?this.horiz?[["M",f-4,m-6],["L",f+4,m-6],["L",f,m],["Z"]]:[["M",c,f],["L",c-6,f+6],["L",c-6,f-6],["Z"]]:e.prototype.getPlotLinePath.call(this,a)};r.prototype.update=function(a,c){var f=this.chart.legend;this.series.forEach(function(a){a.isDirtyData=!0});(a.dataClasses&&f.allItems||this.dataClasses)&&this.destroyItems();e.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),f.colorizeItem(this,!0))};r.prototype.destroyItems=function(){var a=
|
|
30
|
+
this.chart;this.legendItem?a.legend.destroyItem(this):this.legendItems&&this.legendItems.forEach(function(c){a.legend.destroyItem(c)});a.isDirtyLegend=!0};r.prototype.destroy=function(){this.chart.isDirtyLegend=!0;this.destroyItems();e.prototype.destroy.apply(this,[].slice.call(arguments))};r.prototype.remove=function(a){this.destroyItems();e.prototype.remove.call(this,a)};r.prototype.getDataClassLegendSymbols=function(){var a=this,g=a.chart,f=a.legendItems,m=g.options.legend,u=m.valueDecimals,d=
|
|
31
|
+
m.valueSuffix||"",r;f.length||a.dataClasses.forEach(function(m,x){var w=m.from,A=m.to,L=g.numberFormatter,J=!0;r="";"undefined"===typeof w?r="< ":"undefined"===typeof A&&(r="> ");"undefined"!==typeof w&&(r+=L(w,u)+d);"undefined"!==typeof w&&"undefined"!==typeof A&&(r+=" - ");"undefined"!==typeof A&&(r+=L(A,u)+d);f.push(c({chart:g,name:r,options:{},drawLegendSymbol:h.drawRectangle,visible:!0,setState:y,isDataClass:!0,setVisible:function(){this.visible=J=a.visible=!J;a.series.forEach(function(a){a.points.forEach(function(a){a.dataClass===
|
|
32
|
+
x&&a.setVisible(J)})});g.legend.colorizeItem(this,J)}},m))});return f};r.defaultColorAxisOptions=k;r.defaultLegendLength=200;r.keepProps=["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"];return r}(b);Array.prototype.push.apply(b.keepProps,l.keepProps);"";return l});v(b,"Maps/MapNavigationOptionsDefault.js",[b["Core/DefaultOptions.js"],b["Core/Utilities.js"]],function(b,l){l=l.extend;var q={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,
|
|
33
|
+
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};l(b.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});return b.defaultOptions.mapNavigation=q});v(b,"Maps/MapNavigation.js",[b["Core/Chart/Chart.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,l,q){function k(a){a&&
|
|
34
|
+
(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function p(a){this.navButtons=[];this.init(a)}var h=l.doc,e=q.addEvent,t=q.extend,n=q.isNumber,d=q.merge,y=q.objectEach,a=q.pick;p.prototype.init=function(a){this.chart=a};p.prototype.update=function(c){var g=this,u=this.chart,n=u.options.mapNavigation,h,r=function(a){this.handler.call(u,a);k(a)},p=g.navButtons;c&&(n=u.options.mapNavigation=d(u.options.mapNavigation,c));for(;p.length;)p.pop().destroy();
|
|
35
|
+
a(n.enableButtons,n.enabled)&&!u.renderer.forExport&&(g.navButtonsGroup||(g.navButtonsGroup=u.renderer.g().attr({zIndex:4}).add()),y(n.buttons,function(a,f){a=d(n.buttonOptions,a);!u.styledMode&&a.theme&&(h=a.theme,h.style=d(a.theme.style,a.style));var c=u.renderer.button(a.text||"",0,0,r,h,void 0,void 0,void 0,"zoomIn"===f?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[f]).attr({width:a.width,height:a.height,title:u.options.lang[f],
|
|
36
|
+
padding:a.padding,zIndex:5}).add(g.navButtonsGroup);c.handler=a.onclick;e(c.element,"dblclick",k);p.push(c);t(a,{width:c.width,height:2*c.height});if(u.hasLoaded)c.align(a,!1,a.alignTo);else var x=e(u,"load",function(){c.element&&c.align(a,!1,a.alignTo);x()})}),c=function(){var a=u.exportingGroup&&u.exportingGroup.getBBox();if(a){var f=g.navButtonsGroup.getBBox();if(!(f.x>=a.x+a.width||f.x+f.width<=a.x||f.y>=a.y+a.height||f.y+f.height<=a.y)){var c=-f.y-f.height+a.y-5;a=a.y+a.height-f.y+5;g.navButtonsGroup.attr({translateY:"bottom"===
|
|
37
|
+
(n.buttonOptions&&n.buttonOptions.verticalAlign)?c:a})}}},u.hasLoaded||e(u,"render",c));this.updateEvents(n)};p.prototype.updateEvents=function(c){var g=this.chart;a(c.enableDoubleClickZoom,c.enabled)||c.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||e(g.container,"dblclick",function(a){g.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());a(c.enableMouseWheelZoom,c.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||e(g.container,
|
|
38
|
+
void 0!==h.onwheel?"wheel":void 0!==h.onmousewheel?"mousewheel":"DOMMouseScroll",function(a){g.pointer.inClass(a.target,"highcharts-no-mousewheel")||(g.pointer.onContainerMouseWheel(a),k(a));return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};t(b.prototype,{fitToBox:function(a,g){[["x","width"],["y","height"]].forEach(function(c){var d=c[0];c=c[1];a[d]+a[c]>g[d]+g[c]&&(a[c]>g[c]?(a[c]=g[c],a[d]=g[d]):a[d]=g[d]+g[c]-a[c]);a[c]>g[c]&&(a[c]=g[c]);a[d]<g[d]&&(a[d]=g[d])});
|
|
39
|
+
return a},mapZoom:function(a,g,d,e,h){this.mapView&&(n(a)&&(a=Math.log(a)/Math.log(.5)),this.mapView.zoomBy(a,n(g)&&n(d)?this.mapView.projection.inverse([g,d]):void 0,n(e)&&n(h)?[e,h]:void 0))}});e(b,"beforeRender",function(){this.mapNavigation=new p(this);this.mapNavigation.update()});l.MapNavigation=p});v(b,"Maps/MapPointer.js",[b["Core/Pointer.js"],b["Core/Utilities.js"]],function(b,l){var q=l.defined,k=l.extend,p=l.pick;l=l.wrap;var h=b.prototype.normalize,e=0,t;k(b.prototype,{normalize:function(n,
|
|
40
|
+
d){var e=this.chart;n=h.call(this,n,d);e&&e.mapView&&(d=e.mapView.pixelsToLonLat({x:n.chartX-e.plotLeft,y:n.chartY-e.plotTop}))&&k(n,d);return n},onContainerDblClick:function(e){var d=this.chart;e=this.normalize(e);d.options.mapNavigation.enableDoubleClickZoomTo?d.pointer.inClass(e.target,"highcharts-tracker")&&d.hoverPoint&&d.hoverPoint.zoomTo():d.isInsidePlot(e.chartX-d.plotLeft,e.chartY-d.plotTop)&&d.mapZoom(.5,void 0,void 0,e.chartX,e.chartY)},onContainerMouseWheel:function(n){var d=this.chart;
|
|
41
|
+
n=this.normalize(n);var h=q(n.wheelDelta)&&-n.wheelDelta/120||n.deltaY||n.detail;1<=Math.abs(h)&&(e+=Math.abs(h),t&&clearTimeout(t),t=setTimeout(function(){e=0},50));10>e&&d.isInsidePlot(n.chartX-d.plotLeft,n.chartY-d.plotTop)&&d.mapView&&d.mapView.zoomBy((d.options.mapNavigation.mouseWheelSensitivity-1)*-h,void 0,[n.chartX,n.chartY],1>Math.abs(h)?!1:void 0)}});l(b.prototype,"zoomOption",function(e){var d=this.chart.options.mapNavigation;p(d.enableTouchZoom,d.enabled)&&(this.chart.options.chart.pinchType=
|
|
42
|
+
"xy");e.apply(this,[].slice.call(arguments,1))});l(b.prototype,"pinchTranslate",function(e,d,h,a,c,g,u){e.call(this,d,h,a,c,g,u);"map"===this.chart.options.chart.type&&this.hasZoom&&(e=a.scaleX>a.scaleY,this.pinchTranslateDirection(!e,d,h,a,c,g,u,e?a.scaleX:a.scaleY))})});v(b,"Series/ColorMapComposition.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,l){var q=b.seriesTypes.column.prototype,k=l.addEvent,p=l.defined,h;(function(e){function h(d){this.moveToTopOnHover&&this.graphic&&
|
|
43
|
+
this.graphic.attr({zIndex:d&&"hover"===d.state?1:0})}var n=[];e.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value&&(void 0===this.value||!isNaN(this.value))}};e.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(d){var e={};!p(d.color)||d.state&&"normal"!==
|
|
44
|
+
d.state||(e[this.colorProp||"fill"]=d.color);return e},pointAttribs:q.pointAttribs};e.compose=function(d){var e=d.prototype.pointClass;-1===n.indexOf(e)&&(n.push(e),k(e,"afterSetState",h));return d}})(h||(h={}));return h});v(b,"Maps/MapSymbols.js",[b["Core/Renderer/SVG/SVGRenderer.js"]],function(b){function l(b,k,p,h,e,t,n,d){return[["M",b+e,k],["L",b+p-t,k],["C",b+p-t/2,k,b+p,k+t/2,b+p,k+t],["L",b+p,k+h-n],["C",b+p,k+h-n/2,b+p-n/2,k+h,b+p-n,k+h],["L",b+d,k+h],["C",b+d/2,k+h,b,k+h-d/2,b,k+h-d],["L",
|
|
45
|
+
b,k+e],["C",b,k+e/2,b+e/2,k,b+e,k],["Z"]]}b=b.prototype.symbols;b.bottombutton=function(b,k,p,h,e){e=e&&e.r||0;return l(b-1,k-1,p,h,0,0,e,e)};b.topbutton=function(b,k,p,h,e){e=e&&e.r||0;return l(b-1,k-1,p,h,e,e,0,0)};return b});v(b,"Core/Chart/MapChart.js",[b["Core/Chart/Chart.js"],b["Core/DefaultOptions.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Utilities.js"]],function(b,l,q,k){var p=this&&this.__extends||function(){var e=function(d,b){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
|
|
46
|
+
function(a,c){a.__proto__=c}||function(a,c){for(var g in c)c.hasOwnProperty(g)&&(a[g]=c[g])};return e(d,b)};return function(d,b){function a(){this.constructor=d}e(d,b);d.prototype=null===b?Object.create(b):(a.prototype=b.prototype,new a)}}(),h=l.getOptions,e=k.merge,t=k.pick;b=function(b){function d(){return null!==b&&b.apply(this,arguments)||this}p(d,b);d.prototype.init=function(d,a){var c=h().credits;d=e({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:t(c.mapText,' \u00a9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),
|
|
47
|
+
mapTextFull:t(c.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},d);b.prototype.init.call(this,d,a)};return d}(b);(function(e){e.maps={};e.mapChart=function(d,b,a){return new e(d,b,a)};e.splitPath=function(d){"string"===typeof d&&(d=d.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,""),d=d.split(/[ ,;]+/).map(function(d){return/[A-za-z]/.test(d)?d:parseFloat(d)}));return q.prototype.pathToSegments(d)}})(b||(b={}));return b});v(b,"Maps/MapUtilities.js",[],
|
|
48
|
+
function(){return{boundsFromPath:function(b){var l=-Number.MAX_VALUE,q=Number.MAX_VALUE,k=-Number.MAX_VALUE,p=Number.MAX_VALUE,h;b.forEach(function(e){var b=e[e.length-2];e=e[e.length-1];"number"===typeof b&&"number"===typeof e&&(q=Math.min(q,b),l=Math.max(l,b),p=Math.min(p,e),k=Math.max(k,e),h=!0)});if(h)return{x1:q,y1:p,x2:l,y2:k}},pointInPolygon:function(b,l){var q,k=!1,p=b.x,h=b.y;b=0;for(q=l.length-1;b<l.length;q=b++){var e=l[b][1]>h;var t=l[q][1]>h;e!==t&&p<(l[q][0]-l[b][0])*(h-l[b][1])/(l[q][1]-
|
|
49
|
+
l[b][1])+l[b][0]&&(k=!k)}return k}}});v(b,"Series/Map/MapPoint.js",[b["Series/ColorMapComposition.js"],b["Maps/MapUtilities.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,l,q,k){var p=this&&this.__extends||function(){var d=function(b,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var c in g)g.hasOwnProperty(c)&&(a[c]=g[c])};return d(b,a)};return function(b,a){function c(){this.constructor=b}d(b,a);b.prototype=
|
|
50
|
+
null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),h=l.boundsFromPath,e=k.extend,t=k.isNumber,n=k.pick;l=function(b){function d(){var a=null!==b&&b.apply(this,arguments)||this;a.options=void 0;a.path=void 0;a.series=void 0;return a}p(d,b);d.getProjectedPath=function(a,c){a.projectedPath||(c&&a.geometry?(c.hasCoordinates=!0,a.projectedPath=c.path(a.geometry)):a.projectedPath=a.path);return a.projectedPath||[]};d.prototype.applyOptions=function(a,c){var g=this.series;a=b.prototype.applyOptions.call(this,
|
|
51
|
+
a,c);c=g.joinBy;g.mapData&&g.mapMap&&(c=b.prototype.getNestedProperty.call(a,c[1]),(g="undefined"!==typeof c&&g.mapMap[c])?e(a,g):a.value=a.value||null);return a};d.prototype.getProjectedBounds=function(a){a=d.getProjectedPath(this,a);a=h(a);var c=this.properties;if(a){var g=c&&c["hc-middle-x"];c=c&&c["hc-middle-y"];a.midX=a.x1+(a.x2-a.x1)*n(this.middleX,t(g)?g:.5);g=n(this.middleY,t(c)?c:.5);this.geometry||(g=1-g);a.midY=a.y2-(a.y2-a.y1)*g;return a}};d.prototype.onMouseOver=function(a){k.clearTimeout(this.colorInterval);
|
|
52
|
+
if(!this.isNull||this.series.options.nullInteraction)b.prototype.onMouseOver.call(this,a);else this.series.onMouseOut(a)};d.prototype.zoomTo=function(){var a=this.series.chart;a.mapView&&this.bounds&&(a.mapView.fitToBounds(this.bounds,void 0,!1),this.series.isDirty=!0,a.redraw())};return d}(q.seriesTypes.scatter.prototype.pointClass);e(l.prototype,{dataLabelOnNull:b.pointMembers.dataLabelOnNull,moveToTopOnHover:b.pointMembers.moveToTopOnHover,isValid:b.pointMembers.isValid});return l});v(b,"Maps/MapViewOptionsDefault.js",
|
|
53
|
+
[],function(){return{center:[0,0],maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0}});v(b,"Maps/MapViewInsetsOptionsDefault.js",[],function(){return{borderColor:"#cccccc",borderWidth:1,center:[0,0],padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}});v(b,"Extensions/GeoJSON.js",[b["Core/Chart/Chart.js"],b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,l,q,k){function p(a,c){c||(c=Object.keys(a.objects)[0]);c=
|
|
54
|
+
a.objects[c];if(c["hc-decoded-geojson"])return c["hc-decoded-geojson"];var g=a.arcs;if(a.transform){var b=a.transform,d=b.scale,e=b.translate;g=a.arcs.map(function(a){var c=0,f=0;return a.map(function(a){a=a.slice();a[0]=(c+=a[0])*d[0]+e[0];a[1]=(f+=a[1])*d[1]+e[1];return a})})}var r=function(a){return"number"===typeof a[0]?a.reduce(function(a,f,c){var m=0>f?g[~f]:g[f];0>f?(m=m.slice(0,0===c?m.length:m.length-1),m.reverse()):c&&(m=m.slice(1));return a.concat(m)},[]):a.map(r)};b=c.geometries.map(function(a){return{type:"Feature",
|
|
55
|
+
properties:a.properties,geometry:{type:a.type,coordinates:a.coordinates||r(a.arcs)}}});a={type:"FeatureCollection",copyright:a.copyright,copyrightShort:a.copyrightShort,copyrightUrl:a.copyrightUrl,features:b,"hc-recommended-mapview":c["hc-recommended-mapview"],bbox:a.bbox,title:a.title};return c["hc-decoded-geojson"]=a}function h(a,c,g){void 0===c&&(c="map");var b=[];a="Topology"===a.type?p(a):a;a.features.forEach(function(a){var g=a.geometry||{},e=g.type;g=g.coordinates;a=a.properties;var u;"map"!==
|
|
56
|
+
c&&"mapbubble"!==c||"Polygon"!==e&&"MultiPolygon"!==e?"mapline"!==c||"LineString"!==e&&"MultiLineString"!==e?"mappoint"===c&&"Point"===e&&g.length&&(u={geometry:{coordinates:g,type:e}}):g.length&&(u={geometry:{coordinates:g,type:e}}):g.length&&(u={geometry:{coordinates:g,type:e}});u&&(e=a&&(a.name||a.NAME),b.push(d(u,{name:"string"===typeof e?e:void 0,properties:a})))});g&&a.copyrightShort&&(g.chart.mapCredits=e(g.chart.options.credits.mapText,{geojson:a}),g.chart.mapCreditsFull=e(g.chart.options.credits.mapTextFull,
|
|
57
|
+
{geojson:a}));return b}var e=l.format,t=q.win,n=k.error,d=k.extend,y=k.merge;l=k.wrap;"";b.prototype.transformFromLatLon=function(a,c){var g=this.options.chart.proj4||t.proj4;if(g){var b=c.jsonmarginX;b=void 0===b?0:b;var d=c.jsonmarginY;d=void 0===d?0:d;var e=c.jsonres;e=void 0===e?1:e;var r=c.scale;r=void 0===r?1:r;var h=c.xoffset;h=void 0===h?0:h;var p=c.xpan;p=void 0===p?0:p;var f=c.yoffset;f=void 0===f?0:f;var m=c.ypan;m=void 0===m?0:m;a=g(c.crs,[a.lon,a.lat]);g=c.cosAngle||c.rotation&&Math.cos(c.rotation);
|
|
58
|
+
var k=c.sinAngle||c.rotation&&Math.sin(c.rotation);c=c.rotation?[a[0]*g+a[1]*k,-a[0]*k+a[1]*g]:a;return{x:((c[0]-h)*r+p)*e+b,y:-(((f-c[1])*r+m)*e-d)}}n(21,!1,this)};b.prototype.transformToLatLon=function(a,c){var g=this.options.chart.proj4||t.proj4;if(!g)n(21,!1,this);else if(null!==a.y){var b=c.jsonmarginX,d=c.jsonmarginY,e=c.jsonres;e=void 0===e?1:e;var r=c.scale;r=void 0===r?1:r;var h=c.xoffset,p=c.xpan,f=c.yoffset,m=c.ypan;a={x:((a.x-(void 0===b?0:b))/e-(void 0===p?0:p))/r+(void 0===h?0:h),y:((a.y-
|
|
59
|
+
(void 0===d?0:d))/e+(void 0===m?0:m))/r+(void 0===f?0:f)};b=c.cosAngle||c.rotation&&Math.cos(c.rotation);d=c.sinAngle||c.rotation&&Math.sin(c.rotation);c=g(c.crs,"WGS84",c.rotation?{x:a.x*b+a.y*-d,y:a.x*d+a.y*b}:a);return{lat:c.y,lon:c.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)};l(b.prototype,"addCredits",function(a,c){c=y(!0,this.options.credits,
|
|
60
|
+
c);this.mapCredits&&(c.href=null);a.call(this,c);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})});q.geojson=h;return{geojson:h,topo2geo:p}});v(b,"Core/Geometry/PolygonClip.js",[],function(){var b=function(b,p,h){return(p[0]-b[0])*(h[1]-b[1])>(p[1]-b[1])*(h[0]-b[0])},l=function(b,p,h,e){var k=[b[0]-p[0],b[1]-p[1]],n=[h[0]-e[0],h[1]-e[1]];b=b[0]*p[1]-b[1]*p[0];h=h[0]*e[1]-h[1]*e[0];e=1/(k[0]*n[1]-k[1]*n[0]);k=[(b*n[0]-h*k[0])*e,(b*n[1]-h*k[1])*e];k.isIntersection=
|
|
61
|
+
!0;return k},q;(function(k){k.clipLineString=function(b,h){var e=[];b=k.clipPolygon(b,h,!1);for(h=1;h<b.length;h++)b[h].isIntersection&&b[h-1].isIntersection&&(e.push(b.splice(0,h)),h=0),h===b.length-1&&e.push(b);return e};k.clipPolygon=function(p,h,e){void 0===e&&(e=!0);for(var k=h[h.length-1],n,d,q=p,a=0;a<h.length;a++){var c=q;p=h[a];q=[];n=e?c[c.length-1]:c[0];for(var g=0;g<c.length;g++)d=c[g],b(k,p,d)?(b(k,p,n)||q.push(l(k,p,n,d)),q.push(d)):b(k,p,n)&&q.push(l(k,p,n,d)),n=d;k=p}return q}})(q||
|
|
62
|
+
(q={}));return q});v(b,"Maps/Projections/LambertConformalConic.js",[],function(){var b=Math.sign||function(b){return 0===b?0:0<b?1:-1},l=Math.PI/180,q=Math.PI/2;return function(){function k(p){var h,e=(p.parallels||[]).map(function(b){return b*l}),k=e[0]||0;e=null!==(h=e[1])&&void 0!==h?h:k;h=Math.cos(k);"object"===typeof p.projectedBounds&&(this.projectedBounds=p.projectedBounds);p=k===e?Math.sin(k):Math.log(h/Math.cos(e))/Math.log(Math.tan((q+e)/2)/Math.tan((q+k)/2));1e-10>Math.abs(p)&&(p=1e-10*
|
|
63
|
+
(b(p)||1));this.n=p;this.c=h*Math.pow(Math.tan((q+k)/2),p)/p}k.prototype.forward=function(b){var h=b[0]*l,e=this.c,k=this.n,n=this.projectedBounds;b=b[1]*l;0<e?b<-q+.000001&&(b=-q+.000001):b>q-.000001&&(b=q-.000001);var d=e/Math.pow(Math.tan((q+b)/2),k);b=d*Math.sin(k*h)*63.78137;h=63.78137*(e-d*Math.cos(k*h));e=[b,h];n&&(b<n.x1||b>n.x2||h<n.y1||h>n.y2)&&(e.outside=!0);return e};k.prototype.inverse=function(k){var h=k[0]/63.78137,e=this.c,p=this.n;k=e-k[1]/63.78137;var n=b(p)*Math.sqrt(h*h+k*k),d=
|
|
64
|
+
Math.atan2(h,Math.abs(k))*b(k);0>k*p&&(d-=Math.PI*b(h)*b(k));return[d/p/l,(2*Math.atan(Math.pow(e/n,1/p))-q)/l]};return k}()});v(b,"Maps/Projections/EqualEarth.js",[],function(){var b=Math.sqrt(3)/2;return function(){function l(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}l.prototype.forward=function(l){var k=Math.PI/180,p=Math.asin(b*Math.sin(l[1]*k)),h=p*p,e=h*h*h;return[l[0]*k*Math.cos(p)*74.03120656864502/(b*(1.340264+3*-.081106*h+e*(7*
|
|
65
|
+
.000893+.034164*h))),74.03120656864502*p*(1.340264+-.081106*h+e*(.000893+.003796*h))]};l.prototype.inverse=function(l){var k=l[0]/74.03120656864502;l=l[1]/74.03120656864502;var p=180/Math.PI,h=l,e;for(e=0;12>e;++e){var q=h*h;var n=q*q*q;var d=h*(1.340264+-.081106*q+n*(.000893+.003796*q))-l;q=1.340264+3*-.081106*q+n*(7*.000893+.034164*q);h-=d/=q;if(1e-9>Math.abs(d))break}q=h*h;return[p*b*k*(1.340264+3*-.081106*q+q*q*q*(7*.000893+.034164*q))/Math.cos(h),p*Math.asin(Math.sin(h)/b)]};return l}()});v(b,
|
|
66
|
+
"Maps/Projections/Miller.js",[],function(){var b=Math.PI/4,l=Math.PI/180;return function(){function q(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}q.prototype.forward=function(k){return[k[0]*l*63.78137,79.7267125*Math.log(Math.tan(b+.4*k[1]*l))]};q.prototype.inverse=function(k){return[k[0]/63.78137/l,2.5*(Math.atan(Math.exp(k[1]/63.78137*.8))-b)/l]};return q}()});v(b,"Maps/Projections/Orthographic.js",[],function(){var b=Math.PI/180;return function(){function l(){this.antimeridianCutting=
|
|
67
|
+
!1;this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,y2:63.78460826781007}}l.prototype.forward=function(l){var k=l[0];l=l[1]*b;l=[Math.cos(l)*Math.sin(k*b)*63.78460826781007,63.78460826781007*Math.sin(l)];if(-90>k||90<k)l.outside=!0;return l};l.prototype.inverse=function(l){var k=l[0]/63.78460826781007;l=l[1]/63.78460826781007;var p=Math.sqrt(k*k+l*l),h=Math.asin(p),e=Math.sin(h);return[Math.atan2(k*e,p*Math.cos(h))/b,Math.asin(p&&l*e/p)/b]};return l}()});v(b,"Maps/Projections/WebMercator.js",
|
|
68
|
+
[],function(){var b=Math.PI/180;return function(){function l(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071};this.maxLatitude=85.0511287798}l.prototype.forward=function(l){var k=Math.sin(l[1]*b);k=[63.78137*l[0]*b,63.78137*Math.log((1+k)/(1-k))/2];85.0511287798<Math.abs(l[1])&&(k.outside=!0);return k};l.prototype.inverse=function(l){return[l[0]/(63.78137*b),(2*Math.atan(Math.exp(l[1]/63.78137))-Math.PI/2)/b]};return l}()});v(b,"Maps/Projections/ProjectionRegistry.js",
|
|
69
|
+
[b["Maps/Projections/LambertConformalConic.js"],b["Maps/Projections/EqualEarth.js"],b["Maps/Projections/Miller.js"],b["Maps/Projections/Orthographic.js"],b["Maps/Projections/WebMercator.js"]],function(b,l,q,k,p){return{EqualEarth:l,LambertConformalConic:b,Miller:q,Orthographic:k,WebMercator:p}});v(b,"Maps/Projection.js",[b["Core/Geometry/PolygonClip.js"],b["Maps/Projections/ProjectionRegistry.js"],b["Core/Utilities.js"]],function(b,l,q){var k=this&&this.__spreadArray||function(b,a,c){if(c||2===arguments.length)for(var g=
|
|
70
|
+
0,d=a.length,e;g<d;g++)!e&&g in a||(e||(e=Array.prototype.slice.call(a,0,g)),e[g]=a[g]);return b.concat(e||Array.prototype.slice.call(a))},p=b.clipLineString,h=b.clipPolygon,e=q.clamp,t=q.erase,n=2*Math.PI/360,d=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 c=a.name,g=a.projectedBounds,d=a.rotation;this.rotator=d?this.getRotator(d):void 0;if(c=c?b.registry[c]:
|
|
71
|
+
void 0)this.def=new c(a);var e=this.def,h=this.rotator;e&&(this.maxLatitude=e.maxLatitude||90,this.hasGeoProjection=!0);h&&e?(this.forward=function(a){return e.forward(h.forward(a))},this.inverse=function(a){return h.inverse(e.inverse(a))}):e?(this.forward=function(a){return e.forward(a)},this.inverse=function(a){return e.inverse(a)}):h&&(this.forward=h.forward,this.inverse=h.inverse);this.bounds="world"===g?e&&e.bounds:g}b.add=function(a,c){b.registry[a]=c};b.greatCircle=function(a,b,g){var c=Math.atan2,
|
|
72
|
+
e=Math.cos,d=Math.sin,h=Math.sqrt,k=a[1]*n,l=a[0]*n,f=b[1]*n,m=b[0]*n,p=f-k,q=m-l;p=d(p/2)*d(p/2)+e(k)*e(f)*d(q/2)*d(q/2);p=2*c(h(p),h(1-p));var t=Math.round(6371E3*p/5E5);q=[];g&&q.push(a);if(1<t)for(t=a=1/t;.999>t;t+=a){var C=d((1-t)*p)/d(p),G=d(t*p)/d(p),w=C*e(k)*e(l)+G*e(f)*e(m),A=C*e(k)*d(l)+G*e(f)*d(m);C=C*d(k)+G*d(f);C=c(C,h(w*w+A*A));w=c(A,w);q.push([w/n,C/n])}g&&q.push(b);return q};b.insertGreatCircles=function(a){for(var c=a.length-1;c--;)if(10<Math.max(Math.abs(a[c][0]-a[c+1][0]),Math.abs(a[c][1]-
|
|
73
|
+
a[c+1][1]))){var g=b.greatCircle(a[c],a[c+1]);g.length&&a.splice.apply(a,k([c+1,0],g,!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||{},g=b.x2,e=b.y1,d=b.y2,h=function(a,b,f){var c=a[0];a=a[1];var g=b?0:1;if("number"===typeof f&&c[b]>=f!==a[b]>=f)return c=c[g]+(f-c[b])/(a[b]-c[b])*(a[g]-c[g]),b?[c,f]:[f,c]},k=a[0];if(b=h(a,0,b.x1))k=b,a[1]=b;else if(b=h(a,0,g))k=b,a[1]=b;if(b=h(a,1,e))k=
|
|
74
|
+
b;else if(b=h(a,1,d))k=b;return k};b.prototype.getRotator=function(a){var b=a[0]*n,g=(a[1]||0)*n;a=(a[2]||0)*n;var e=Math.cos(g),d=Math.sin(g),h=Math.cos(a),k=Math.sin(a);if(0!==b||0!==g||0!==a)return{forward:function(a){var c=a[0]*n+b,f=a[1]*n,g=Math.cos(f);a=Math.cos(c)*g;c=Math.sin(c)*g;f=Math.sin(f);g=f*e+a*d;return[Math.atan2(c*h-g*k,a*e-f*d)/n,Math.asin(g*h+c*k)/n]},inverse:function(a){var c=a[0]*n,f=a[1]*n,g=Math.cos(f);a=Math.cos(c)*g;c=Math.sin(c)*g;f=Math.sin(f);g=f*h-c*k;return[(Math.atan2(c*
|
|
75
|
+
h+f*k,a*e+g*d)-b)/n,Math.asin(g*e-a*d)/n]}}};b.prototype.forward=function(a){return a};b.prototype.inverse=function(a){return a};b.prototype.cutOnAntimeridian=function(a,c){var g=[],h=[a];a.forEach(function(b,f){var d=a[f-1];if(!f){if(!c)return;d=a[a.length-1]}var m=d[0],w=b[0];(-90>m||90<m)&&(-90>w||90<w)&&0<m!==0<w&&(w=e((180-(m+360)%360)/((w+360)%360-(m+360)%360),0,1),g.push({i:f,lat:d[1]+w*(b[1]-d[1]),direction:0>m?1:-1,previousLonLat:d,lonLat:b}))});if(g.length)if(c){if(1===g.length%2){var l=
|
|
76
|
+
g.slice().sort(function(a,b){return Math.abs(b.lat)-Math.abs(a.lat)})[0];t(g,l)}for(var n=g.length-2;0<=n;){var r=g[n].i,p=d(180+.000001*g[n].direction),x=d(180-.000001*g[n].direction);r=a.splice.apply(a,k([r,g[n+1].i-r],b.greatCircle([p,g[n].lat],[p,g[n+1].lat],!0),!1));r.push.apply(r,b.greatCircle([x,g[n+1].lat],[x,g[n].lat],!0));h.push(r);n-=2}if(l)for(p=0;p<h.length;p++){n=l.direction;var f=l.lat;x=h[p];r=x.indexOf(l.lonLat);if(-1<r){p=(0>f?-1:1)*this.maxLatitude;var m=d(180+.000001*n),q=d(180-
|
|
77
|
+
.000001*n);f=b.greatCircle([m,f],[m,p],!0);for(m+=120*n;-180<m&&180>m;m+=120*n)f.push([m,p]);f.push.apply(f,b.greatCircle([q,p],[q,l.lat],!0));x.splice.apply(x,k([r,0],f,!1));break}}}else for(n=g.length;n--;)r=g[n].i,r=a.splice(r,a.length,[d(180+.000001*g[n].direction),g[n].lat]),r.unshift([d(180-.000001*g[n].direction),g[n].lat]),h.push(r);return h};b.prototype.path=function(a){var c=this,g=this.bounds,d=this.def,e=this.rotator,k=[],n="Polygon"===a.type||"MultiPolygon"===a.type,l=this.hasGeoProjection,
|
|
78
|
+
x=!d||!1!==d.antimeridianCutting,f=x?e:void 0,m=x?d||this:this,q;g&&(q=[[g.x1,g.y1],[g.x2,g.y1],[g.x2,g.y2],[g.x1,g.y2]]);var t=function(a){a=a.map(function(a){if(x){f&&(a=f.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 d=[a];l&&(b.insertGreatCircles(a),x&&(d=c.cutOnAntimeridian(a,n)));d.forEach(function(a){if(!(2>a.length)){var f=!1,c=!1,d=function(a){f?k.push(["L",a[0],a[1]]):(k.push(["M",a[0],a[1]]),f=!0)},e=!1,r=!1,u=a.map(function(a){a=
|
|
79
|
+
m.forward(a);a.outside?e=!0:r=!0;Infinity===a[1]?a[1]=1E10:-Infinity===a[1]&&(a[1]=-1E10);return a});if(x){n&&u.push(u[0]);if(e){if(!r)return;if(q)if(n)u=h(u,q);else if(g){p(u,q).forEach(function(a){f=!1;a.forEach(d)});return}}u.forEach(d)}else for(var K=0;K<u.length;K++){var t=a[K],B=u[K];if(B.outside)c=!0;else{if(n&&!G){var G=t;a.push(t);u.push(B)}c&&z&&(n&&l?b.greatCircle(z,t).forEach(function(a){return d(m.forward(a))}):f=!1);d(B);var z=t;c=!1}}}})};"LineString"===a.type?t(a.coordinates):"MultiLineString"===
|
|
80
|
+
a.type?a.coordinates.forEach(function(a){return t(a)}):"Polygon"===a.type?(a.coordinates.forEach(function(a){return t(a)}),k.length&&k.push(["Z"])):"MultiPolygon"===a.type&&(a.coordinates.forEach(function(a){a.forEach(function(a){return t(a)})}),k.length&&k.push(["Z"]));return k};b.registry=l;return b}()});v(b,"Maps/MapView.js",[b["Maps/MapViewOptionsDefault.js"],b["Maps/MapViewInsetsOptionsDefault.js"],b["Extensions/GeoJSON.js"],b["Core/Chart/MapChart.js"],b["Maps/MapUtilities.js"],b["Maps/Projection.js"],
|
|
81
|
+
b["Core/Utilities.js"]],function(b,l,q,k,p,h,e){var t=this&&this.__extends||function(){var a=function(b,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f])};return a(b,f)};return function(b,f){function c(){this.constructor=b}a(b,f);b.prototype=null===f?Object.create(f):(c.prototype=f.prototype,new c)}}(),n=this&&this.__spreadArray||function(a,b,f){if(f||2===arguments.length)for(var c=0,g=b.length,d;c<
|
|
82
|
+
g;c++)!d&&c in b||(d||(d=Array.prototype.slice.call(b,0,c)),d[c]=b[c]);return a.concat(d||Array.prototype.slice.call(b))},d=q.topo2geo,y=k.maps,a=p.boundsFromPath,c=p.pointInPolygon,g=e.addEvent,u=e.clamp,D=e.fireEvent,F=e.isArray,r=e.isNumber,z=e.isObject,x=e.isString,f=e.merge,m=e.pick,B=e.relativeLength,H=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)},I=function(){function a(c,d){var e=this;this.insets=[];this.padding=[0,0,
|
|
83
|
+
0,0];this.eventsToUnbind=[];var m;if(!(this instanceof C)){var w=n([c.options.chart.map],(c.options.series||[]).map(function(a){return a.mapData}),!0).map(function(a){return e.getGeoMap(a)}),k=[];w.forEach(function(a){a&&(m||(m=a["hc-recommended-mapview"]),a.bbox&&(a=a.bbox,k.push({x1:a[0],y1:a[1],x2:a[2],y2:a[3]})))});var A=k.length&&a.compositeBounds(k);if(A){var l=A.x1;var p=A.y1,u=A.x2;A=A.y2;l=180<u-l&&90<A-p?{name:"EqualEarth"}:{name:"LambertConformalConic",parallels:[p,A],rotation:[-(l+u)/
|
|
84
|
+
2]}}this.geoMap=w[0]}this.userOptions=d||{};w=f(b,{projection:l},m,d);A=m&&m.insets;d=d&&d.insets;A&&d&&(w.insets=a.mergeInsets(A,d));this.chart=c;this.center=w.center;this.options=w;this.projection=new h(w.projection);this.playingField=c.plotBox;this.zoom=w.zoom||0;this.createInsets();this.eventsToUnbind.push(g(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&&r(e.userOptions.zoom)&&(e.zoom=
|
|
85
|
+
e.userOptions.zoom),e.userOptions.center&&f(!0,e.center,e.userOptions.center)}));this.setUpEvents()}a.mergeInsets=function(a,b){var c=function(a){var b={};a.forEach(function(a,f){b[a&&a.id||"i".concat(f)]=a});return b},d=f(c(a),c(b));return Object.keys(d).map(function(a){return d[a]})};a.prototype.createInsets=function(){var a=this,b=this.options,c=b.insets;c&&c.forEach(function(c){c=new C(a,f(b.insetOptions,c));a.insets.push(c)})};a.prototype.fitToBounds=function(a,b,c,f){void 0===c&&(c=!0);var d=
|
|
86
|
+
a||this.getProjectedBounds();if(d){var g=m(b,a?0:this.options.padding);b=this.getField(!1);g=F(g)?g:[g,g,g,g];this.padding=[B(g[0],b.height),B(g[1],b.width),B(g[2],b.height),B(g[3],b.width)];this.playingField=this.getField();b=H(d,this.playingField);a||(this.minZoom=b);a=this.projection.inverse([(d.x2+d.x1)/2,(d.y2+d.y1)/2]);this.setView(a,b,c,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-
|
|
87
|
+
a[0]-a[2]}};a.prototype.getGeoMap=function(a){if(x(a))return y[a];if(z(a,!0)){if("FeatureCollection"===a.type)return a;if("Topology"===a.type)return d(a)}};a.prototype.getMapBBox=function(){var a=this.getProjectedBounds(),b=this.getScale();if(a){var c=this.padding,f=this.projectedUnitsToPixels({x:a.x1,y:a.y2});return{width:(a.x2-a.x1)*b+c[1]+c[3],height:(a.y2-a.y1)*b+c[0]+c[2],x:f.x-c[3],y:f.y-c[0]}}};a.prototype.getProjectedBounds=function(){var b=this.chart.series.reduce(function(a,b){var c=b.getProjectedBounds&&
|
|
88
|
+
b.getProjectedBounds();c&&!1!==b.options.affectsMapView&&a.push(c);return a},[]);return this.projection.bounds||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,c=a.y,f=a.width;a=a.height;var d=this.projection.forward(this.center),g=this.projection.hasCoordinates?-1:1,e=this.getScale();g*=e;return{scaleX:e,scaleY:g,translateX:b+f/2-d[0]*e,translateY:c+a/2-d[1]*g}};a.prototype.lonLatToPixels=
|
|
89
|
+
function(a){if(a=this.lonLatToProjectedUnits(a))return this.projectedUnitsToPixels(a)};a.prototype.lonLatToProjectedUnits=function(a){var b=this.chart,f=b.mapTransforms;if(f){for(var d in f)if(Object.hasOwnProperty.call(f,d)&&f[d].hitZone){var g=b.transformFromLatLon(a,f[d]);if(g&&c(g,f[d].hitZone.coordinates[0]))return g}return b.transformFromLatLon(a,f["default"])}f=0;for(d=this.insets;f<d.length;f++)if(b=d[f],b.options.geoBounds&&c({x:a.lon,y:a.lat},b.options.geoBounds.coordinates[0]))return a=
|
|
90
|
+
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,a.lat]);if(!a.outside)return{x:a[0],y:a[1]}};a.prototype.projectedUnitsToLonLat=function(a){var b=this.chart,f=b.mapTransforms;if(f){for(var d in f)if(Object.hasOwnProperty.call(f,d)&&f[d].hitZone&&c(a,f[d].hitZone.coordinates[0]))return b.transformToLatLon(a,f[d]);return b.transformToLatLon(a,f["default"])}f=this.projectedUnitsToPixels(a);d=0;for(var g=this.insets;d<
|
|
91
|
+
g.length;d++)if(b=g[d],b.hitZone&&c(f,b.hitZone.coordinates[0]))return a=b.pixelsToProjectedUnits(f),a=b.projection.inverse([a.x,a.y]),{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,f,c){void 0===f&&(f=!0);a&&(this.center=a);"number"===typeof b&&("number"===typeof this.minZoom&&(b=Math.max(b,this.minZoom)),
|
|
92
|
+
"number"===typeof this.options.maxZoom&&(b=Math.min(b,this.options.maxZoom)),r(b)&&(this.zoom=b));var d=this.getProjectedBounds();if(d){a=this.projection.forward(this.center);var g=this.playingField;b=g.x;var e=g.y,m=g.width;g=g.height;var h=this.getScale(),k=this.projectedUnitsToPixels({x:d.x1,y:d.y1}),n=this.projectedUnitsToPixels({x:d.x2,y:d.y2});d=[(d.x1+d.x2)/2,(d.y1+d.y2)/2];var l=k.x,p=n.y;n=n.x;k=k.y;n-l<m?a[0]=d[0]:l<b&&n<b+m?a[0]+=Math.max(l-b,n-m-b)/h:n>b+m&&l>b&&(a[0]+=Math.min(n-m-b,
|
|
93
|
+
l-b)/h);k-p<g?a[1]=d[1]:p<e&&k<e+g?a[1]-=Math.max(p-e,k-g-e)/h:k>e+g&&p>e&&(a[1]-=Math.min(k-g-e,p-e)/h);this.center=this.projection.inverse(a);this.insets.forEach(function(a){a.options.field&&(a.hitZone=a.getHitZone(),a.playingField=a.getField())});this.render()}D(this,"afterSetView");f&&this.redraw(c)};a.prototype.projectedUnitsToPixels=function(a){var b=this.getScale(),f=this.projection.forward(this.center),c=this.playingField;return{x:c.x+c.width/2-b*(f[0]-a.x),y:c.y+c.height/2+b*(f[1]-a.y)}};
|
|
94
|
+
a.prototype.pixelsToLonLat=function(a){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(a))};a.prototype.pixelsToProjectedUnits=function(a){var b=a.x;a=a.y;var f=this.getScale(),c=this.projection.forward(this.center),d=this.playingField;return{x:c[0]+(b-(d.x+d.width/2))/f,y:c[1]-(a-(d.y+d.height/2))/f}};a.prototype.setUpEvents=function(){var a=this,b=this.chart,f,c,d,e=function(g){var e=b.pointer.pinchDown,m=a.projection,h=b.mouseDownX,k=b.mouseDownY;1===e.length&&(h=e[0].chartX,k=e[0].chartY);
|
|
95
|
+
if("number"===typeof h&&"number"===typeof k){var n=""+h+",".concat(k),l=g.originalEvent;e=l.chartX;l=l.chartY;n!==c&&(c=n,f=a.projection.forward(a.center),d=(a.projection.options.rotation||[0,0]).slice());n=(n=m.def&&m.def.bounds)&&H(n,a.playingField)||-Infinity;"Orthographic"===m.options.name&&(a.minZoom||Infinity)<1.1*n?(m=440/(a.getScale()*Math.min(b.plotWidth,b.plotHeight)),d&&(h=(h-e)*m-d[0],k=u(-d[1]-(k-l)*m,-80,80),e=a.zoom,a.update({projection:{rotation:[-h,-k]}},!1),a.zoom=e,b.redraw(!1))):
|
|
96
|
+
(m=a.getScale(),k=a.projection.inverse([f[0]+(h-e)/m,f[1]-(k-l)/m]),a.setView(k,void 0,!0,!1));g.preventDefault()}};g(b,"pan",e);g(b,"touchpan",e);g(b,"selection",function(f){if(f.resetSelection)a.zoomBy();else{var c=f.x-b.plotLeft,d=f.y-b.plotTop,g=a.pixelsToProjectedUnits({x:c,y:d}),e=g.y;g=g.x;c=a.pixelsToProjectedUnits({x:c+f.width,y:d+f.height});a.fitToBounds({x1:g,y1:e,x2:c.x,y2:c.y},void 0,!0,f.originalEvent.touches?!1:void 0);/^touch/.test(f.originalEvent.type)||b.showResetZoom();f.preventDefault()}})};
|
|
97
|
+
a.prototype.render=function(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())};a.prototype.update=function(a,b,c){void 0===b&&(b=!0);var d=a.projection;d=d&&h.toString(d)!==h.toString(this.options.projection);var g=!1;f(!0,this.userOptions,a);f(!0,this.options,a);"insets"in a&&(this.insets.forEach(function(a){return a.destroy()}),this.insets.length=0,g=!0);if(d||g)this.chart.series.forEach(function(a){var b=a.transformGroups;a.clearBounds&&a.clearBounds();a.isDirty=
|
|
98
|
+
!0;a.isDirtyData=!0;if(g&&b)for(;1<b.length;)(a=b.pop())&&a.destroy()}),d&&(this.projection=new h(this.options.projection)),g&&this.createInsets(),a.center||r(a.zoom)||this.fitToBounds(void 0,void 0,!1);(a.center||r(a.zoom))&&this.setView(this.options.center,a.zoom,!1);b&&this.chart.redraw(c)};a.prototype.zoomBy=function(a,b,f,c){var d=this.chart,g=this.projection.forward(this.center);b=b?this.projection.forward(b):[];var e=b[0],m=b[1];"number"===typeof a?(a=this.zoom+a,b=void 0,f&&(e=f[0],m=f[1],
|
|
99
|
+
f=this.getScale(),e=e-d.plotLeft-d.plotWidth/2,d=m-d.plotTop-d.plotHeight/2,e=g[0]+e/f,m=g[1]+d/f),"number"===typeof e&&"number"===typeof m&&(f=1-Math.pow(2,this.zoom)/Math.pow(2,a),e=g[0]-e,d=g[1]-m,g[0]-=e*f,g[1]+=d*f,b=this.projection.inverse(g)),this.setView(b,a,void 0,c)):this.fitToBounds(void 0,void 0,void 0,c)};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);
|
|
100
|
+
return a},f(a[0]))};return a}(),C=function(b){function d(c,d){var g=b.call(this,c.chart,d)||this;g.id=d.id;g.mapView=c;g.options=f(l,d);g.allBounds=[];g.options.geoBounds&&(c=c.projection.path(g.options.geoBounds),g.geoBoundsProjectedBox=a(c),g.geoBoundsProjectedPolygon=c.map(function(a){return[a[1]||0,a[2]||0]}));return g}t(d,b);d.prototype.getField=function(a){void 0===a&&(a=!0);var f=this.hitZone;if(f){var c=a?this.padding:[0,0,0,0];f=f.coordinates[0];var d=f.map(function(a){return a[0]}),g=f.map(function(a){return a[1]});
|
|
101
|
+
f=Math.min.apply(0,d)+c[3];d=Math.max.apply(0,d)-c[1];var e=Math.min.apply(0,g)+c[0];c=Math.max.apply(0,g)-c[2];if(r(f)&&r(e))return{x:f,y:e,width:d-f,height:c-e}}return b.prototype.getField.call(this,a)};d.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 g="mapBoundingBox"===c.relativeTo&&b.getMapBBox()||f(a.plotBox,{x:0,y:0});d=d.map(function(a){return[B(""+a[0]+"%",g.width,g.x),B(""+a[1]+"%",g.height,
|
|
102
|
+
g.y)]})}return{type:"Polygon",coordinates:[d]}}};d.prototype.getProjectedBounds=function(){return I.compositeBounds(this.allBounds)};d.prototype.isInside=function(a){var b=this.geoBoundsProjectedBox,f=this.geoBoundsProjectedPolygon;return!!(b&&a.x>=b.x1&&a.x<=b.x2&&a.y>=b.y1&&a.y<=b.y2&&f&&c(a,f))};d.prototype.render=function(){var a=this.chart,b=this.mapView,f=this.options,c=f.borderPath||f.field;if(c&&b.group){var d=!0;this.border||(this.border=a.renderer.path().addClass("highcharts-mapview-inset-border").add(b.group),
|
|
103
|
+
d=!1);a.styledMode||this.border.attr({stroke:f.borderColor,"stroke-width":f.borderWidth});var g=Math.round(this.border.strokeWidth())%2/2,e="mapBoundingBox"===f.relativeTo&&b.getMapBBox()||b.playingField;b=(c.coordinates||[]).reduce(function(b,c){return c.reduce(function(b,c,d){var m=c[0];c=c[1];"percent"===f.units&&(m=a.plotLeft+B(""+m+"%",e.width,e.x),c=a.plotTop+B(""+c+"%",e.height,e.y));m=Math.floor(m)+g;c=Math.floor(c)+g;b.push(0===d?["M",m,c]:["L",m,c]);return b},b)},[]);this.border[d?"animate":
|
|
104
|
+
"attr"]({d:b})}};d.prototype.destroy=function(){this.border&&(this.border=this.border.destroy());this.eventsToUnbind.forEach(function(a){return a()})};d.prototype.setUpEvents=function(){};return d}(I);g(k,"afterInit",function(){this.mapView=new I(this,this.options.mapView)});return I});v(b,"Series/Map/MapSeries.js",[b["Core/Animation/AnimationUtilities.js"],b["Series/ColorMapComposition.js"],b["Series/CenteredUtilities.js"],b["Core/Globals.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Chart/MapChart.js"],
|
|
105
|
+
b["Series/Map/MapPoint.js"],b["Maps/MapView.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Utilities.js"]],function(b,l,q,k,p,h,e,t,n,d,y,a){var c=this&&this.__extends||function(){var a=function(b,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f])};return a(b,f)};return function(b,f){function c(){this.constructor=b}a(b,f);b.prototype=
|
|
106
|
+
null===f?Object.create(f):(c.prototype=f.prototype,new c)}}(),g=b.animObject;b=k.noop;var u=h.splitPath;h=d.seriesTypes;var D=h.column,F=h.scatter;h=a.extend;var r=a.find,z=a.fireEvent,x=a.getNestedProperty,f=a.isArray,m=a.isNumber,B=a.isObject,H=a.merge,I=a.objectEach,C=a.pick,G=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}c(b,a);b.prototype.animate=
|
|
107
|
+
function(a){var b=this.chart,f=this.group,c=g(this.options.animation);b.renderer.isSVG&&(a?f.attr({translateX:b.plotLeft+b.plotWidth/2,translateY:b.plotTop+b.plotHeight/2,scaleX:.001,scaleY:.001}):f.animate({translateX:b.plotLeft,translateY:b.plotTop,scaleX:1,scaleY:1},c))};b.prototype.animateDrilldown=function(a){var b=this.chart,f=this.group;b.renderer.isSVG&&(a?f.attr({translateX:b.plotLeft+b.plotWidth/2,translateY:b.plotTop+b.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01}):(f.animate({translateX:b.plotLeft,
|
|
108
|
+
translateY:b.plotTop,scaleX:1,scaleY:1,opacity:1},this.chart.options.drilldown.animation),b.drilldown&&b.drilldown.fadeInGroup(this.dataLabelsGroup)))};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){D.prototype.animateDrillupTo.call(this,a)};b.prototype.clearBounds=function(){this.points.forEach(function(a){delete a.bounds;
|
|
109
|
+
delete a.insetIndex;delete a.projectedPath});delete this.bounds};b.prototype.doFullTranslate=function(){return!(!(this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML)&&this.hasRendered)};b.prototype.drawMapDataLabels=function(){n.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};b.prototype.drawPoints=function(){var a=this,b=this,f=this.chart,c=this.group,d=this.transformGroups,g=void 0===d?[]:d,e=f.mapView,m=f.renderer;e&&(this.transformGroups=
|
|
110
|
+
g,g[0]||(g[0]=m.g().add(c)),e.insets.forEach(function(a,b){g[b+1]||g.push(m.g().add(c))}),this.doFullTranslate()&&(this.points.forEach(function(b){var c=b.graphic,d=b.shapeArgs;b.group=g["number"===typeof b.insetIndex?b.insetIndex+1:0];c&&c.parentGroup!==b.group&&c.add(b.group);d&&f.hasRendered&&!f.styledMode&&(d.fill=a.pointAttribs(b,b.state).fill)}),D.prototype.drawPoints.apply(this),this.points.forEach(function(c){var d=c.graphic;if(d){var g=d.animate,e="";c.name&&(e+="highcharts-name-"+c.name.replace(/ /g,
|
|
111
|
+
"-").toLowerCase());c.properties&&c.properties["hc-key"]&&(e+=" highcharts-key-"+c.properties["hc-key"].toString().toLowerCase());e&&d.addClass(e);f.styledMode&&d.css(a.pointAttribs(c,c.selected&&"select"||void 0));d.animate=function(a,c,e){var m=!1;if(a["stroke-width"]){var h=C(b.getStrokeWidth(b.options),1)/(f.mapView&&f.mapView.getScale()||1);"inherit"===d["stroke-width"]&&(d["stroke-width"]=h);"inherit"===a["stroke-width"]&&(a["stroke-width"]=h,m=!0)}return g.call(d,a,c,m?function(){d.attr({"stroke-width":"inherit"});
|
|
112
|
+
e&&e.apply(this,arguments)}:e)}}})),g.forEach(function(b,c){var d=(0===c?e:e.insets[c-1]).getSVGTransform(),g=C(a.getStrokeWidth(a.options),1),h=d.scaleX,k=0<d.scaleY?1:-1;if(m.globalAnimation&&f.hasRendered){var n=Number(b.attr("translateX")),l=Number(b.attr("translateY")),p=Number(b.attr("scaleX"));b.attr({animator:0}).animate({animator:1},{step:function(a,f){a=p+(h-p)*f.pos;b.attr({translateX:n+(d.translateX-n)*f.pos,translateY:l+(d.translateY-l)*f.pos,scaleX:a,scaleY:a*k});b.element.setAttribute("stroke-width",
|
|
113
|
+
g/a)}})}else b.attr(d),b.element.setAttribute("stroke-width",g/h)}),this.drawMapDataLabels())};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=u(a.path):f(a.path)&&"M"===a.path[0]&&(a.path=y.prototype.pathToSegments(a.path));if(!a.bounds){var g=a.getProjectedBounds(c);if(g){a.labelrank=C(a.labelrank,(g.x2-g.x1)*(g.y2-g.y1));
|
|
114
|
+
var e=g.midX,h=g.midY;if(b&&m(e)&&m(h)){var k=r(b,function(a){return a.isInside({x:e,y:h})});k&&(delete a.projectedPath,(g=a.getProjectedBounds(k.projection))&&k.allBounds.push(g),a.insetIndex=b.indexOf(k))}a.bounds=g}}a.bounds&&void 0===a.insetIndex&&d.push(a.bounds)}});this.bounds=t.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};
|
|
115
|
+
b.prototype.pointAttribs=function(a,b){var f=a.series.chart,c=f.mapView;f=f.styledMode?this.colorAttribs(a):D.prototype.pointAttribs.call(this,a,b);var d=this.getStrokeWidth(a.options);b&&(a=H(this.options.states[b],a.options.states&&a.options.states[b]||{}),d=this.getStrokeWidth(a));d&&c&&(d/=c.getScale());a=this.getStrokeWidth(this.options);f.dashstyle&&c&&m(a)&&(d=a/c.getScale());f["stroke-width"]=C(d,"inherit");return f};b.prototype.updateData=function(){return this.processedData?!1:a.prototype.updateData.apply(this,
|
|
116
|
+
arguments)};b.prototype.setData=function(b,f,c,d){void 0===f&&(f=!0);delete this.bounds;a.prototype.setData.call(this,b,!1,void 0,d);this.processData();this.generatePoints();f&&this.chart.redraw(c)};b.prototype.processData=function(){var a=this.options,b=a.data,c=this.chart.options.chart,d=this.joinBy,g=a.keys||this.pointArrayMap,h=[],n={},l=this.chart.mapView;l=l&&(B(a.mapData,!0)?l.getGeoMap(a.mapData):l.geoMap);var p=this.chart.mapTransforms;(this.chart.mapTransforms=p=c.mapTransforms||l&&l["hc-transform"]||
|
|
117
|
+
p)&&I(p,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});if(f(a.mapData))var u=a.mapData;else l&&"FeatureCollection"===l.type&&(this.mapTitle=l.title,u=k.geojson(l,this.type,this));var r=this.processedData=[];b&&b.forEach(function(c,h){var k=0;if(m(c))r[h]={value:c};else if(f(c)){r[h]={};!a.keys&&c.length>g.length&&"string"===typeof c[0]&&(r[h]["hc-key"]=c[0],++k);for(var n=0;n<g.length;++n,++k)g[n]&&"undefined"!==typeof c[k]&&(0<g[n].indexOf(".")?e.prototype.setNestedProperty(r[h],
|
|
118
|
+
c[k],g[n]):r[h][g[n]]=c[k])}else r[h]=b[h];d&&"_i"===d[0]&&(r[h]._i=h)});if(u){this.mapData=u;this.mapMap={};for(p=0;p<u.length;p++)c=u[p],l=c.properties,c._i=p,d[0]&&l&&l[d[0]]&&(c[d[0]]=l[d[0]]),n[c[d[0]]]=c;this.mapMap=n;if(d[1]){var q=d[1];r.forEach(function(a){a=x(q,a);n[a]&&h.push(n[a])})}if(a.allAreas){if(d[1]){var t=d[1];r.forEach(function(a){h.push(x(t,a))})}var z="|"+h.map(function(a){return a&&a[d[0]]}).join("|")+"|";u.forEach(function(a){d[0]&&-1!==z.indexOf("|"+a[d[0]]+"|")||r.push(H(a,
|
|
119
|
+
{value:null}))})}}this.processedXData=Array(r.length)};b.prototype.setOptions=function(a){a=n.prototype.setOptions.call(this,a);var b=a.joinBy;null===b&&(b="_i");b=this.joinBy=G(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||m(b.userOptions.zoom)?this.getProjectedBounds():
|
|
120
|
+
b.fitToBounds(void 0,void 0,!1));if(b){var f=b.getSVGTransform();this.points.forEach(function(d){var g=m(d.insetIndex)&&b.insets[d.insetIndex].getSVGTransform()||f;g&&d.bounds&&m(d.bounds.midX)&&m(d.bounds.midY)&&(d.plotX=d.bounds.midX*g.scaleX+g.translateX,d.plotY=d.bounds.midY*g.scaleY+g.translateY);a&&(d.shapeType="path",d.shapeArgs={d:e.getProjectedPath(d,c)})})}z(this,"afterTranslate")};b.defaultOptions=H(F.defaultOptions,{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){var a=
|
|
121
|
+
this.series.chart.numberFormatter,b=this.point.value;return m(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"},inactive:{opacity:1}}});return b}(F);h(a.prototype,{type:"map",axisTypes:l.seriesMembers.axisTypes,
|
|
122
|
+
colorAttribs:l.seriesMembers.colorAttribs,colorKey:l.seriesMembers.colorKey,directTouch:!0,drawDataLabels:b,drawGraph:b,drawLegendSymbol:p.drawRectangle,forceDL:!0,getCenter:q.getCenter,getExtremesFromAll:!0,getSymbol:b,isCartesian:!1,parallelArrays:l.seriesMembers.parallelArrays,pointArrayMap:l.seriesMembers.pointArrayMap,pointClass:e,preserveAspectRatio:!0,searchPoint:b,trackerGroups:l.seriesMembers.trackerGroups,useMapGeometry:!0});l.compose(a);d.registerSeriesType("map",a);"";return a});v(b,"Series/MapLine/MapLineSeries.js",
|
|
123
|
+
[b["Series/Map/MapSeries.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,l,q){var k=this&&this.__extends||function(){var b=function(e,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return b(e,d)};return function(e,d){function h(){this.constructor=e}b(e,d);e.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)}}(),p=l.series,h=q.extend,e=q.merge;q=function(h){function n(){var b=
|
|
124
|
+
null!==h&&h.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}k(n,h);n.prototype.pointAttribs=function(d,e){d=b.prototype.pointAttribs.call(this,d,e);d.fill=this.options.fillColor;return d};n.defaultOptions=e(b.defaultOptions,{lineWidth:1,fillColor:"none"});return n}(b);h(q.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:p.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}});l.registerSeriesType("mapline",q);"";
|
|
125
|
+
return q});v(b,"Series/MapPoint/MapPointPoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,l){var q=this&&this.__extends||function(){var b=function(h,e){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var d in e)e.hasOwnProperty(d)&&(b[d]=e[d])};return b(h,e)};return function(h,e){function k(){this.constructor=h}b(h,e);h.prototype=null===e?Object.create(e):(k.prototype=e.prototype,new k)}}(),k=l.isNumber;return function(b){function h(){var e=
|
|
126
|
+
null!==b&&b.apply(this,arguments)||this;e.options=void 0;e.series=void 0;return e}q(h,b);h.prototype.isValid=function(){return!!(this.options.geometry||k(this.x)&&k(this.y)||k(this.options.lon)&&k(this.options.lat))};return h}(b.seriesTypes.scatter.prototype.pointClass)});v(b,"Series/MapPoint/MapPointSeries.js",[b["Core/Globals.js"],b["Series/MapPoint/MapPointPoint.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,l,q,k){var p=this&&this.__extends||function(){var b=function(a,
|
|
127
|
+
c){b=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 b(a,c)};return function(a,c){function d(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}();b=b.noop;var h=q.seriesTypes.scatter,e=k.extend,t=k.fireEvent,n=k.isNumber,d=k.merge;k=function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.chart=void 0;a.data=void 0;a.options=void 0;
|
|
128
|
+
a.points=void 0;return a}p(a,b);a.prototype.drawDataLabels=function(){b.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};a.prototype.projectPoint=function(a){var b=this.chart.mapView;if(b){var c=a.geometry,d=a.lon;a=a.lat;c=c&&"Point"===c.type&&c.coordinates;n(d)&&n(a)&&(c=[d,a]);if(c)return b.lonLatToProjectedUnits({lon:c[0],lat:c[1]})}};a.prototype.translate=function(){var a=this,b=this.chart.mapView;this.processedXData||this.processData();
|
|
129
|
+
this.generatePoints();this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds());if(b){var d=b.projection.hasCoordinates;this.points.forEach(function(c){var g=c.x;g=void 0===g?void 0:g;var e=c.y;e=void 0===e?void 0:e;var h=a.projectPoint(c.options);h?(g=h.x,e=h.y):c.bounds&&(g=c.bounds.midX,e=c.bounds.midY);n(g)&&n(e)?(g=b.projectedUnitsToPixels({x:g,y:e}),c.plotX=g.x,c.plotY=d?g.y:a.chart.plotHeight-g.y):c.y=c.plotX=c.plotY=void 0;c.isInside=a.isPointInside(c);c.zone=
|
|
130
|
+
a.zones.length?c.getZone():void 0})}t(this,"afterTranslate")};a.defaultOptions=d(h.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}}});return a}(h);e(k.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:l,searchPoint:b,useMapGeometry:!0});q.registerSeriesType("mappoint",k);"";return k});v(b,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,
|
|
131
|
+
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",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}});v(b,"Series/Bubble/BubbleLegendItem.js",[b["Core/Color/Color.js"],b["Core/FormatUtilities.js"],
|
|
132
|
+
b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,l,q,k){var p=b.parse,h=q.noop,e=k.arrayMax,t=k.arrayMin,n=k.isNumber,d=k.merge,y=k.pick,a=k.stableSort;"";return function(){function b(a,b){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legendSymbol=this.legendItemWidth=this.legendItemHeight=this.legendItem=this.legendGroup=this.legend=this.fontMetrics=this.chart=void 0;this.setState=h;this.init(a,b)}b.prototype.init=function(a,b){this.options=
|
|
133
|
+
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 c=this.chart,d=this.options,g=y(b.options.itemDistance,20),e=d.ranges,h=d.connectorDistance;this.fontMetrics=c.renderer.fontMetrics(d.labels.style.fontSize);e&&e.length&&n(e[0].value)?(a(e,function(a,b){return b.value-a.value}),this.ranges=e,this.setOptions(),this.render(),b=this.getMaxLabelSize(),e=this.ranges[0].radius,c=
|
|
134
|
+
2*e,h=h-e+b.width,h=0<h?h:0,this.maxLabel=b,this.movementX="left"===d.labels.align?h:0,this.legendItemWidth=c+h+g,this.legendItemHeight=c+this.fontMetrics.h/2):b.options.bubbleLegend.autoRanges=!0};b.prototype.setOptions=function(){var a=this.ranges,b=this.options,c=this.chart.series[b.seriesIndex],e=this.legend.baseline,h={zIndex:b.zIndex,"stroke-width":b.borderWidth},k={zIndex:b.zIndex,"stroke-width":b.connectorWidth},l={align:this.legend.options.rtl||"left"===b.labels.align?"right":"left",zIndex:b.zIndex},
|
|
135
|
+
f=c.options.marker.fillOpacity,m=this.chart.styledMode;a.forEach(function(g,n){m||(h.stroke=y(g.borderColor,b.borderColor,c.color),h.fill=y(g.color,b.color,1!==f?p(c.color).setOpacity(f).get("rgba"):c.color),k.stroke=y(g.connectorColor,b.connectorColor,c.color));a[n].radius=this.getRangeRadius(g.value);a[n]=d(a[n],{center:a[0].radius-a[n].radius+e});m||d(!0,a[n],{bubbleAttribs:d(h),connectorAttribs:d(k),labelAttribs:l})},this)};b.prototype.getRangeRadius=function(a){var b=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,
|
|
136
|
+
b.ranges[b.ranges.length-1].value,b.ranges[0].value,b.minSize,b.maxSize,a)};b.prototype.render=function(){var a=this.chart.renderer,b=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]});this.legendSymbol=a.g("bubble-legend");this.legendItem=a.g("bubble-legend-item");this.legendSymbol.translateX=0;this.legendSymbol.translateY=0;this.ranges.forEach(function(a){a.value>=b&&this.renderRange(a)},this);this.legendSymbol.add(this.legendItem);this.legendItem.add(this.legendGroup);
|
|
137
|
+
this.hideOverlappingLabels()};b.prototype.renderRange=function(a){var b=this.options,c=b.labels,d=this.chart,e=d.series[b.seriesIndex],g=d.renderer,h=this.symbols;d=h.labels;var f=a.center,m=Math.abs(a.radius),k=b.connectorDistance||0,n=c.align,l=b.connectorWidth,p=this.ranges[0].radius||0,q=f-m-b.borderWidth/2+l/2,t=this.fontMetrics;t=t.f/2-(t.h-t.f)/2;var y=g.styledMode;k=this.legend.options.rtl||"left"===n?-k:k;"center"===n&&(k=0,b.connectorDistance=0,a.labelAttribs.align="center");n=q+b.labels.y;
|
|
138
|
+
var v=p+k+b.labels.x;h.bubbleItems.push(g.circle(p,f+((q%1?1:.5)-(l%2?0:.5)),m).attr(y?{}:a.bubbleAttribs).addClass((y?"highcharts-color-"+e.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(b.className||"")).add(this.legendSymbol));h.connectors.push(g.path(g.crispLine([["M",p,q],["L",p+k,q]],b.connectorWidth)).attr(y?{}:a.connectorAttribs).addClass((y?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(b.connectorClassName||"")).add(this.legendSymbol));
|
|
139
|
+
a=g.text(this.formatLabel(a),v,n+t).attr(y?{}:a.labelAttribs).css(y?{}:c.style).addClass("highcharts-bubble-legend-labels "+(b.labels.className||"")).add(this.legendSymbol);d.push(a);a.placed=!0;a.alignAttr={x:v,y:n+t}};b.prototype.getMaxLabelSize=function(){var a,b;this.symbols.labels.forEach(function(c){b=c.getBBox(!0);a=a?b.width>a.width?b:a:b});return a||{}};b.prototype.formatLabel=function(a){var b=this.options,c=b.labels.formatter;b=b.labels.format;var d=this.chart.numberFormatter;return b?
|
|
140
|
+
l.format(b,a):c?c.call(a):d(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,c){a.newOpacity?a.newOpacity!==a.oldOpacity&&b.connectors[c].show():b.connectors[c].hide()}))};b.prototype.getRanges=function(){var a=this.legend.bubbleLegend,b=a.options.ranges,c,h=Number.MAX_VALUE,k=-Number.MAX_VALUE;a.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&
|
|
141
|
+
(c=a.zData.filter(n),c.length&&(h=y(a.options.zMin,Math.min(h,Math.max(t(c),!1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),k=y(a.options.zMax,Math.max(k,e(c)))))});var l=h===k?[{value:k}]:[{value:h},{value:(h+k)/2},{value:k,autoRanges:!0}];b.length&&b[0].radius&&l.reverse();l.forEach(function(a,c){b&&b[c]&&(l[c]=d(b[c],a))});return l};b.prototype.predictBubbleSizes=function(){var a=this.chart,b=this.fontMetrics,c=a.legend.options,d=c.floating,e=(c="horizontal"===c.layout)?
|
|
142
|
+
a.legend.lastLineHeight:0,h=a.plotSizeX,k=a.plotSizeY,f=a.series[this.options.seriesIndex],m=f.getPxExtremes();a=Math.ceil(m.minPxSize);m=Math.ceil(m.maxPxSize);var l=Math.min(k,h);f=f.options.maxSize;if(d||!/%$/.test(f))b=m;else if(f=parseFloat(f),b=(l+e-b.h/2)*f/100/(f/100+1),c&&k-b>=h||!c&&h-b>=k)b=m;return[a,Math.ceil(b)]};b.prototype.updateRanges=function(a,b){var c=this.legend.options.bubbleLegend;c.minSize=a;c.maxSize=b;c.ranges=this.getRanges()};b.prototype.correctSizes=function(){var a=this.legend,
|
|
143
|
+
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}()});v(b,"Series/Bubble/BubbleLegendComposition.js",[b["Series/Bubble/BubbleLegendDefaults.js"],b["Series/Bubble/BubbleLegendItem.js"],b["Core/DefaultOptions.js"],b["Core/Utilities.js"]],function(b,l,q,k){var p=q.setOptions,h=k.addEvent,e=k.objectEach,t=k.wrap,n;(function(d){function k(b,d,g){var f=this.legend,
|
|
144
|
+
m=0<=a(this);if(f&&f.options.enabled&&f.bubbleLegend&&f.options.bubbleLegend.autoRanges&&m){var h=f.bubbleLegend.options;m=f.bubbleLegend.predictBubbleSizes();f.bubbleLegend.updateRanges(m[0],m[1]);h.placed||(f.group.placed=!1,f.allItems.forEach(function(a){a.legendGroup.translateY=null}));f.render();this.getMargins();this.axes.forEach(function(a){a.visible&&a.render();h.placed||(a.setScale(),a.updateNames(),e(a.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});h.placed=!0;this.getMargins();b.call(this,
|
|
145
|
+
d,g);f.bubbleLegend.correctSizes();q(f,c(f))}else b.call(this,d,g),f&&f.options.enabled&&f.bubbleLegend&&(f.render(),q(f,c(f)))}function a(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 c(a){a=a.allItems;var b=[],c=a.length,f,d=0;for(f=0;f<c;f++)if(a[f].legendItemHeight&&(a[f].itemHeight=a[f].legendItemHeight),a[f]===a[c-1]||a[f+1]&&a[f]._legendItemPos[1]!==a[f+1]._legendItemPos[1]){b.push({height:0});var e=b[b.length-
|
|
146
|
+
1];for(d;d<=f;d++)a[d].itemHeight>e.height&&(e.height=a[d].itemHeight);e.step=f}return b}function g(b){var c=this.bubbleLegend,d=this.options,f=d.bubbleLegend,e=a(this.chart);c&&c.ranges&&c.ranges.length&&(f.ranges.length&&(f.autoRanges=!!f.ranges[0].autoRanges),this.destroyItem(c));0<=e&&d.enabled&&f.enabled&&(f.seriesIndex=e,this.bubbleLegend=new l(f,this),this.bubbleLegend.addToLegend(b.allItems))}function n(){var b=this.chart,c=this.visible,d=this.chart.legend;d&&d.bubbleLegend&&(this.visible=
|
|
147
|
+
!c,this.ignoreSeries=c,b=0<=a(b),d.bubbleLegend.visible!==b&&(d.update({bubbleLegend:{enabled:b}}),d.bubbleLegend.visible=b),this.visible=c)}function q(a,b){var c=a.options.rtl,d,e,g,h=0;a.allItems.forEach(function(a,f){d=a.legendGroup.translateX;e=a._legendItemPos[1];if((g=a.movementX)||c&&a.ranges)g=c?d-a.options.maxSize/2:d+g,a.legendGroup.attr({translateX:g});f>b[h].step&&h++;a.legendGroup.attr({translateY:Math.round(e+b[h].height/2)});a._legendItemPos[1]=e+b[h].height/2})}var v=[];d.compose=
|
|
148
|
+
function(a,c,d){-1===v.indexOf(a)&&(v.push(a),p({legend:{bubbleLegend:b}}),t(a.prototype,"drawChartBox",k));-1===v.indexOf(c)&&(v.push(c),h(c,"afterGetAllItems",g));-1===v.indexOf(d)&&(v.push(d),h(d,"legendItemClick",n))}})(n||(n={}));return n});v(b,"Series/Bubble/BubblePoint.js",[b["Core/Series/Point.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,l,q){var k=this&&this.__extends||function(){var b=function(h,e){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,
|
|
149
|
+
e){b.__proto__=e}||function(b,e){for(var d in e)e.hasOwnProperty(d)&&(b[d]=e[d])};return b(h,e)};return function(h,e){function k(){this.constructor=h}b(h,e);h.prototype=null===e?Object.create(e):(k.prototype=e.prototype,new k)}}();q=q.extend;l=function(l){function h(){var b=null!==l&&l.apply(this,arguments)||this;b.options=void 0;b.series=void 0;return b}k(h,l);h.prototype.haloPath=function(e){return b.prototype.haloPath.call(this,0===e?0:(this.marker?this.marker.radius||0:0)+e)};return h}(l.seriesTypes.scatter.prototype.pointClass);
|
|
150
|
+
q(l.prototype,{ttBelow:!1});return l});v(b,"Series/Bubble/BubbleSeries.js",[b["Core/Axis/Axis.js"],b["Series/Bubble/BubbleLegendComposition.js"],b["Series/Bubble/BubblePoint.js"],b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,l,q,k,p,h,e,t){var n=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)&&
|
|
151
|
+
(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=k.parse;k=p.noop;var y=e.seriesTypes;p=y.column;var a=y.scatter;y=t.addEvent;var c=t.arrayMax,g=t.arrayMin,u=t.clamp,v=t.extend,E=t.isNumber,r=t.merge,z=t.pick;t=function(b){function f(){var a=null!==b&&b.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=
|
|
152
|
+
void 0;a.zData=void 0;return a}n(f,b);f.prototype.animate=function(a){!a&&this.points.length<this.options.animationLimit&&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)};f.prototype.getRadii=function(){var a=this,b=this.zData,c=this.yData,d=[],f=this.chart.bubbleZExtremes;var e=this.getPxExtremes();var g=e.minPxSize,h=e.maxPxSize;if(!f){var k=Number.MAX_VALUE,
|
|
153
|
+
l=-Number.MAX_VALUE,n;this.chart.series.forEach(function(b){b.bubblePadding&&(b.visible||!a.chart.options.chart.ignoreHiddenSeries)&&(b=(b.onPoint||b).getZExtremes())&&(k=Math.min(k||b.zMin,b.zMin),l=Math.max(l||b.zMax,b.zMax),n=!0)});n?(f={zMin:k,zMax:l},this.chart.bubbleZExtremes=f):f={zMin:0,zMax:0}}var p=0;for(e=b.length;p<e;p++){var q=b[p];d.push(this.getRadius(f.zMin,f.zMax,g,h,q,c&&c[p]))}this.radii=d};f.prototype.getRadius=function(a,b,c,d,f,e){var g=this.options,h="width"!==g.sizeBy,k=g.zThreshold,
|
|
154
|
+
m=b-a,l=.5;if(null===e||null===f)return null;if(E(f)){g.sizeByAbsoluteValue&&(f=Math.abs(f-k),m=Math.max(b-k,Math.abs(a-k)),a=0);if(f<a)return c/2-1;0<m&&(l=(f-a)/m)}h&&0<=l&&(l=Math.sqrt(l));return Math.ceil(c+l*(d-c))/2};f.prototype.hasData=function(){return!!this.processedXData.length};f.prototype.pointAttribs=function(a,b){var c=this.options.marker.fillOpacity;a=h.prototype.pointAttribs.call(this,a,b);1!==c&&(a.fill=d(a.fill).setOpacity(c).get("rgba"));return a};f.prototype.translate=function(){b.prototype.translate.call(this);
|
|
155
|
+
this.getRadii();this.translateBubble()};f.prototype.translateBubble=function(){for(var a=this.data,b=this.radii,c=this.getPxExtremes().minPxSize,d=a.length;d--;){var f=a[d],e=b?b[d]:0;E(e)&&e>=c/2?(f.marker=v(f.marker,{radius:e,width:2*e,height:2*e}),f.dlBox={x:f.plotX-e,y:f.plotY-e,width:2*e,height:2*e}):(f.shapeArgs=f.dlBox=void 0,f.plotY=0,f.marker={width:0,height:0})}};f.prototype.getPxExtremes=function(){var a=Math.min(this.chart.plotWidth,this.chart.plotHeight),b=function(b){if("string"===typeof b){var c=
|
|
156
|
+
/%$/.test(b);b=parseInt(b,10)}return c?a*b/100:b},c=b(z(this.options.minSize,8));b=Math.max(b(z(this.options.maxSize,"20%")),c);return{minPxSize:c,maxPxSize:b}};f.prototype.getZExtremes=function(){var a=this.options,b=(this.zData||[]).filter(E);if(b.length){var d=z(a.zMin,u(g(b),!1===a.displayNegative?a.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));a=z(a.zMax,c(b));if(E(d)&&E(a))return{zMin:d,zMax:a}}};f.compose=l.compose;f.defaultOptions=r(a.defaultOptions,{dataLabels:{formatter:function(){var a=
|
|
157
|
+
this.series.chart.numberFormatter,b=this.point.z;return E(b)?a(b,-1):""},inside:!0,verticalAlign:"middle"},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 f}(a);v(t.prototype,{alignDataLabel:p.prototype.alignDataLabel,applyZones:k,bubblePadding:!0,
|
|
158
|
+
buildKDTree:k,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:q,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});y(t,"updatedData",function(a){delete a.target.chart.bubbleZExtremes});b.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,e=b,g=this.isXAxis,h=g?"xData":"yData",k=this.min,l=this.max-k,n=b/l,p;this.series.forEach(function(b){if(b.bubblePadding&&(b.visible||!c.options.chart.ignoreHiddenSeries)){p=
|
|
159
|
+
a.allowZoomOutside=!0;var f=b[h];g&&((b.onPoint||b).getRadii(0,0,b),b.onPoint&&(b.radii=b.onPoint.radii));if(0<l)for(var m=f.length;m--;)if(E(f[m])&&a.dataMin<=f[m]&&f[m]<=a.max){var q=b.radii&&b.radii[m]||0;d=Math.min((f[m]-k)*n-q,d);e=Math.max((f[m]-k)*n+q,e)}}});p&&0<l&&!this.logarithmic&&(e-=b,n*=(b+Math.max(0,d)-Math.min(e,b))/b,[["min","userMin",d],["max","userMax",e]].forEach(function(b){"undefined"===typeof z(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/n)}))};e.registerSeriesType("bubble",t);
|
|
160
|
+
"";"";return t});v(b,"Series/MapBubble/MapBubblePoint.js",[b["Series/Map/MapPoint.js"],b["Core/Series/SeriesRegistry.js"]],function(b,l){var q=this&&this.__extends||function(){var b=function(h,e){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,e){b.__proto__=e}||function(b,e){for(var d in e)e.hasOwnProperty(d)&&(b[d]=e[d])};return b(h,e)};return function(h,e){function k(){this.constructor=h}b(h,e);h.prototype=null===e?Object.create(e):(k.prototype=e.prototype,new k)}}();l=l.seriesTypes;
|
|
161
|
+
var k=l.map;return function(l){function h(){var e=null!==l&&l.apply(this,arguments)||this;e.applyOptions=k.prototype.pointClass.prototype.applyOptions;e.getProjectedBounds=b.prototype.getProjectedBounds;return e}q(h,l);h.prototype.isValid=function(){return"number"===typeof this.z};return h}(l.bubble.prototype.pointClass)});v(b,"Series/MapBubble/MapBubbleSeries.js",[b["Series/Bubble/BubbleSeries.js"],b["Series/MapBubble/MapBubblePoint.js"],b["Series/Map/MapSeries.js"],b["Core/Series/SeriesRegistry.js"],
|
|
162
|
+
b["Core/Utilities.js"]],function(b,l,q,k,p){var h=this&&this.__extends||function(){var b=function(d,a){b=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 b(d,a)};return function(d,a){function c(){this.constructor=d}b(d,a);d.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),e=k.seriesTypes.mappoint,t=p.extend,n=p.merge;p=function(d){function k(){var a=null!==d&&d.apply(this,
|
|
163
|
+
arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}h(k,d);k.prototype.searchPoint=function(a,b){return this.searchKDTree({clientX:a.chartX-this.chart.plotLeft,plotY:a.chartY-this.chart.plotTop},b,a)};k.prototype.translate=function(){e.prototype.translate.call(this);this.getRadii();this.translateBubble()};k.compose=b.compose;k.defaultOptions=n(b.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}});return k}(b);t(p.prototype,
|
|
164
|
+
{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:q.prototype.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:l,processData:q.prototype.processData,projectPoint:e.prototype.projectPoint,setData:q.prototype.setData,setOptions:q.prototype.setOptions,updateData:q.prototype.updateData,useMapGeometry:!0,xyFromShape:!0});k.registerSeriesType("mapbubble",p);"";return p});v(b,"Series/Heatmap/HeatmapPoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,
|
|
165
|
+
l){var q=this&&this.__extends||function(){var b=function(e,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return b(e,d)};return function(e,d){function h(){this.constructor=e}b(e,d);e.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)}}(),k=l.clamp,p=l.defined,h=l.extend,e=l.pick;b=function(b){function h(){var d=null!==b&&b.apply(this,arguments)||this;d.options=void 0;d.series=
|
|
166
|
+
void 0;d.value=void 0;d.x=void 0;d.y=void 0;return d}q(h,b);h.prototype.applyOptions=function(d,e){d=b.prototype.applyOptions.call(this,d,e);d.formatPrefix=d.isNull||null===d.value?"null":"point";return d};h.prototype.getCellAttributes=function(){var b=this.series,h=b.options,a=(h.colsize||1)/2,c=(h.rowsize||1)/2,g=b.xAxis,l=b.yAxis,n=this.options.marker||b.options.marker;b=b.pointPlacementToXValue();var q=e(this.pointPadding,h.pointPadding,0),r={x1:k(Math.round(g.len-g.translate(this.x-a,!1,!0,!1,
|
|
167
|
+
!0,-b)),-g.len,2*g.len),x2:k(Math.round(g.len-g.translate(this.x+a,!1,!0,!1,!0,-b)),-g.len,2*g.len),y1:k(Math.round(l.translate(this.y-c,!1,!0,!1,!0)),-l.len,2*l.len),y2:k(Math.round(l.translate(this.y+c,!1,!0,!1,!0)),-l.len,2*l.len)};[["width","x"],["height","y"]].forEach(function(a){var b=a[0];a=a[1];var c=a+"1",d=a+"2",e=Math.abs(r[c]-r[d]),g=n&&n.lineWidth||0,h=Math.abs(r[c]+r[d])/2;b=n&&n[b];p(b)&&b<e&&(b=b/2+g/2,r[c]=h-b,r[d]=h+b);q&&("y"===a&&(c=d,d=a+"1"),r[c]+=q,r[d]-=q)});return r};h.prototype.haloPath=
|
|
168
|
+
function(b){if(!b)return[];var d=this.shapeArgs;return["M",d.x-b,d.y-b,"L",d.x-b,d.y+d.height+b,d.x+d.width+b,d.y+d.height+b,d.x+d.width+b,d.y-b,"Z"]};h.prototype.isValid=function(){return Infinity!==this.value&&-Infinity!==this.value};return h}(b.seriesTypes.scatter.prototype.pointClass);h(b.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1});return b});v(b,"Series/Heatmap/HeatmapSeries.js",[b["Core/Color/Color.js"],b["Series/ColorMapComposition.js"],b["Series/Heatmap/HeatmapPoint.js"],
|
|
169
|
+
b["Core/Legend/LegendSymbol.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Utilities.js"]],function(b,l,q,k,p,h,e){var t=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,
|
|
170
|
+
new d)}}(),n=p.series,d=p.seriesTypes,v=d.column,a=d.scatter,c=h.prototype.symbols,g=e.extend,u=e.fireEvent,E=e.isNumber,F=e.merge,r=e.pick;h=function(d){function e(){var a=null!==d&&d.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}t(e,d);e.prototype.drawPoints=function(){var a=this;if((this.options.marker||{}).enabled||this._hasPointMarkers)n.prototype.drawPoints.call(this),this.points.forEach(function(b){b.graphic&&
|
|
171
|
+
(b.graphic[a.chart.styledMode?"css":"animate"](a.colorAttribs(b)),null===b.value&&b.graphic.addClass("highcharts-null-point"))})};e.prototype.getExtremes=function(){var a=n.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;E(b)&&(this.valueMin=b);E(a)&&(this.valueMax=a);return n.prototype.getExtremes.call(this)};e.prototype.getValidPoints=function(a,b){return n.prototype.getValidPoints.call(this,a,b,!0)};e.prototype.hasData=function(){return!!this.processedXData.length};e.prototype.init=
|
|
172
|
+
function(){n.prototype.init.apply(this,arguments);var a=this.options;a.pointRange=r(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1;c.ellipse=c.circle;a.marker&&(a.marker.r=a.borderRadius)};e.prototype.markerAttribs=function(a,b){var c=a.marker||{},d=this.options.marker||{},e=a.shapeArgs||{},f={};if(a.hasImage)return{x:a.plotX,y:a.plotY};if(b){var g=d.states[b]||{};var h=c.states&&c.states[b]||{};[["width","x"],["height","y"]].forEach(function(a){f[a[0]]=(h[a[0]]||g[a[0]]||e[a[0]])+
|
|
173
|
+
(h[a[0]+"Plus"]||g[a[0]+"Plus"]||0);f[a[1]]=e[a[1]]+(e[a[0]]-f[a[0]])/2})}return b?f:e};e.prototype.pointAttribs=function(a,c){var d=n.prototype.pointAttribs.call(this,a,c),e=this.options||{},f=this.chart.options.plotOptions||{},g=f.series||{},h=f.heatmap||{};f=a&&a.options.borderColor||e.borderColor||h.borderColor||g.borderColor;g=a&&a.options.borderWidth||e.borderWidth||h.borderWidth||g.borderWidth||d["stroke-width"];d.stroke=a&&a.marker&&a.marker.lineColor||e.marker&&e.marker.lineColor||f||this.color;
|
|
174
|
+
d["stroke-width"]=g;c&&(a=F(e.states[c],e.marker&&e.marker.states[c],a&&a.options.states&&a.options.states[c]||{}),c=a.brightness,d.fill=a.color||b.parse(d.fill).brighten(c||0).get(),d.stroke=a.lineColor);return d};e.prototype.setClip=function(a){var b=this.chart;n.prototype.setClip.apply(this,arguments);(!1!==this.options.clip||a)&&this.markerGroup.clip((a||this.clipBox)&&this.sharedClipKey?b.sharedClips[this.sharedClipKey]:b.clipRect)};e.prototype.translate=function(){var a=this.options,b=a.marker&&
|
|
175
|
+
a.marker.symbol||"rect",d=c[b]?b:"rect",e=-1!==["circle","square"].indexOf(d);this.generatePoints();this.points.forEach(function(f){var h=f.getCellAttributes(),k={};k.x=Math.min(h.x1,h.x2);k.y=Math.min(h.y1,h.y2);k.width=Math.max(Math.abs(h.x2-h.x1),0);k.height=Math.max(Math.abs(h.y2-h.y1),0);var l=f.hasImage=0===(f.marker&&f.marker.symbol||b||"").indexOf("url");if(e){var m=Math.abs(k.width-k.height);k.x=Math.min(h.x1,h.x2)+(k.width<k.height?0:m/2);k.y=Math.min(h.y1,h.y2)+(k.width<k.height?m/2:0);
|
|
176
|
+
k.width=k.height=Math.min(k.width,k.height)}m={plotX:(h.x1+h.x2)/2,plotY:(h.y1+h.y2)/2,clientX:(h.x1+h.x2)/2,shapeType:"path",shapeArgs:F(!0,k,{d:c[d](k.x,k.y,k.width,k.height,{r:a.borderRadius})})};l&&(f.marker={width:k.width,height:k.height});g(f,m)});u(this,"afterTranslate")};e.defaultOptions=F(a.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return E(b)?a(b,-1):""},inside:!0,
|
|
177
|
+
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 e}(a);g(h.prototype,{axisTypes:l.seriesMembers.axisTypes,colorKey:l.seriesMembers.colorKey,directTouch:!0,getExtremesFromAll:!0,parallelArrays:l.seriesMembers.parallelArrays,pointArrayMap:["y","value"],pointClass:q,trackerGroups:l.seriesMembers.trackerGroups,
|
|
178
|
+
alignDataLabel:v.prototype.alignDataLabel,colorAttribs:l.seriesMembers.colorAttribs,drawLegendSymbol:k.drawRectangle,getSymbol:n.prototype.getSymbol});l.compose(h);p.registerSeriesType("heatmap",h);"";"";return h});v(b,"masters/modules/map.src.js",[b["Core/Globals.js"],b["Core/Axis/Color/ColorAxis.js"],b["Series/MapBubble/MapBubbleSeries.js"],b["Core/Chart/MapChart.js"],b["Maps/MapView.js"],b["Maps/Projection.js"]],function(b,l,q,k,p,h){b.ColorAxis=l;b.MapChart=k;b.mapChart=b.Map=k.mapChart;b.MapView=
|
|
179
|
+
p;b.maps=k.maps;b.Projection=h;l.compose(b.Chart,b.Fx,b.Legend,b.Series);q.compose(b.Chart,b.Legend,b.Series)})});
|
|
153
180
|
//# sourceMappingURL=map.js.map
|