highcharts 9.2.2 → 9.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (747) hide show
  1. package/README.md +13 -6
  2. package/bower.json +1 -1
  3. package/css/annotations/popup.css +48 -8
  4. package/css/annotations/popup.scss +70 -22
  5. package/css/highcharts.css +45 -0
  6. package/css/highcharts.scss +40 -0
  7. package/css/themes/dark-unica.css +45 -0
  8. package/css/themes/grid-light.css +45 -0
  9. package/css/themes/sand-signika.css +45 -0
  10. package/es-modules/Accessibility/A11yI18n.js +273 -224
  11. package/es-modules/Accessibility/Accessibility.js +233 -128
  12. package/es-modules/Accessibility/AccessibilityComponent.js +79 -314
  13. package/es-modules/Accessibility/Components/AnnotationsA11y.js +10 -0
  14. package/es-modules/Accessibility/Components/ContainerComponent.js +52 -27
  15. package/es-modules/Accessibility/Components/InfoRegionsComponent.js +46 -23
  16. package/es-modules/Accessibility/Components/LegendComponent.js +97 -65
  17. package/es-modules/Accessibility/Components/MenuComponent.js +59 -40
  18. package/es-modules/Accessibility/Components/RangeSelectorComponent.js +5 -8
  19. package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +152 -115
  20. package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +133 -68
  21. package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +64 -27
  22. package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +38 -21
  23. package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +380 -325
  24. package/es-modules/Accessibility/Components/ZoomComponent.js +28 -20
  25. package/es-modules/Accessibility/FocusBorder.js +192 -147
  26. package/es-modules/Accessibility/HighContrastMode.js +78 -66
  27. package/es-modules/Accessibility/HighContrastTheme.js +10 -0
  28. package/es-modules/Accessibility/KeyboardNavigation.js +144 -70
  29. package/es-modules/Accessibility/KeyboardNavigationHandler.js +71 -44
  30. package/es-modules/Accessibility/Options/DeprecatedOptions.js +11 -1
  31. package/es-modules/Accessibility/Options/LangOptions.js +1 -2
  32. package/es-modules/Accessibility/Options/Options.js +32 -17
  33. package/es-modules/Accessibility/ProxyElement.js +212 -0
  34. package/es-modules/Accessibility/ProxyProvider.js +305 -0
  35. package/es-modules/Accessibility/Utils/Announcer.js +15 -8
  36. package/es-modules/Accessibility/Utils/ChartUtilities.js +41 -16
  37. package/es-modules/Accessibility/Utils/DOMElementProvider.js +27 -15
  38. package/es-modules/Accessibility/Utils/EventProvider.js +27 -17
  39. package/es-modules/Accessibility/Utils/HTMLUtilities.js +125 -30
  40. package/es-modules/Core/Axis/Axis.js +37 -30
  41. package/es-modules/Core/Axis/AxisDefaults.js +35 -24
  42. package/es-modules/Core/Axis/Color/ColorAxisComposition.js +54 -4
  43. package/es-modules/Core/Axis/Color/ColorAxisDefaults.js +5 -5
  44. package/es-modules/Core/Axis/OrdinalAxis.js +8 -12
  45. package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +4 -5
  46. package/es-modules/Core/Axis/ScrollbarAxis.js +10 -3
  47. package/es-modules/Core/Axis/TreeGridAxis.js +2 -2
  48. package/es-modules/Core/Axis/TreeGridTick.js +1 -2
  49. package/es-modules/Core/Chart/Chart.js +2 -3
  50. package/es-modules/Core/Chart/ChartDefaults.js +3 -4
  51. package/es-modules/Core/Chart/ChartNavigationComposition.js +92 -0
  52. package/es-modules/Core/Chart/MapChart.js +10 -22
  53. package/es-modules/Core/Chart/StockChart.js +3 -293
  54. package/es-modules/Core/Color/Palettes.js +22 -0
  55. package/es-modules/Core/DefaultOptions.js +19 -17
  56. package/es-modules/Core/Foundation.js +39 -31
  57. package/es-modules/Core/Globals.js +1 -1
  58. package/es-modules/Core/HttpUtilities.js +3 -3
  59. package/es-modules/Core/Legend/Legend.js +7 -3
  60. package/es-modules/Core/Navigator.js +7 -8
  61. package/es-modules/Core/Pointer.js +39 -36
  62. package/es-modules/Core/Renderer/HTML/AST.js +2 -0
  63. package/es-modules/Core/Renderer/HTML/HTMLElement.js +23 -18
  64. package/es-modules/Core/Renderer/SVG/SVGElement.js +3 -4
  65. package/es-modules/Core/Renderer/SVG/SVGRenderer.js +21 -18
  66. package/es-modules/Core/Renderer/SVG/TextBuilder.js +3 -3
  67. package/es-modules/Core/ScrollbarDefaults.js +10 -9
  68. package/es-modules/Core/Series/DataLabel.js +2 -3
  69. package/es-modules/Core/Series/Point.js +5 -3
  70. package/es-modules/Core/Series/Series.js +153 -162
  71. package/es-modules/Core/Series/SeriesDefaults.js +3 -4
  72. package/es-modules/Core/Series/SeriesRegistry.js +1 -2
  73. package/es-modules/Core/Tooltip.js +44 -17
  74. package/es-modules/Core/Utilities.js +15 -7
  75. package/es-modules/Data/DataConverter.js +489 -0
  76. package/es-modules/Data/DataPromise.js +252 -0
  77. package/es-modules/Data/DataSeriesConverter.js +203 -0
  78. package/es-modules/Data/DataTable.js +1204 -0
  79. package/es-modules/Data/Modifiers/ChainModifier.js +299 -0
  80. package/es-modules/Data/Modifiers/DataModifier.js +303 -0
  81. package/es-modules/Data/Modifiers/GroupModifier.js +144 -0
  82. package/es-modules/Data/Modifiers/InvertModifier.js +254 -0
  83. package/es-modules/Data/Modifiers/RangeModifier.js +143 -0
  84. package/es-modules/Data/Modifiers/SeriesPointsModifier.js +110 -0
  85. package/es-modules/Data/Modifiers/SortModifier.js +249 -0
  86. package/es-modules/Data/Parsers/CSVParser.js +399 -0
  87. package/es-modules/Data/Parsers/DataParser.js +101 -0
  88. package/es-modules/Data/Parsers/GoogleSheetsParser.js +220 -0
  89. package/es-modules/Data/Parsers/HTMLTableParser.js +213 -0
  90. package/es-modules/Data/Stores/CSVStore.js +317 -0
  91. package/es-modules/Data/Stores/DataStore.js +276 -0
  92. package/es-modules/Data/Stores/GoogleSheetsStore.js +167 -0
  93. package/es-modules/Data/Stores/HTMLTableStore.js +351 -0
  94. package/es-modules/Extensions/Annotations/Annotations.js +61 -11
  95. package/es-modules/Extensions/Annotations/ControlPoint.js +1 -1
  96. package/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +199 -0
  97. package/es-modules/Extensions/Annotations/Mixins/ControllableMixin.js +7 -1
  98. package/es-modules/Extensions/Annotations/NavigationBindings.js +68 -19
  99. package/es-modules/Extensions/Annotations/Popup.js +479 -141
  100. package/es-modules/Extensions/Annotations/Types/BasicAnnotation.js +51 -2
  101. package/es-modules/Extensions/Annotations/Types/CrookedLine.js +1 -1
  102. package/es-modules/Extensions/Annotations/Types/Fibonacci.js +2 -3
  103. package/es-modules/Extensions/Annotations/Types/FibonacciTimeZones.js +219 -0
  104. package/es-modules/Extensions/Annotations/Types/InfinityLine.js +1 -1
  105. package/es-modules/Extensions/Annotations/Types/Measure.js +14 -8
  106. package/es-modules/Extensions/Annotations/Types/Pitchfork.js +5 -5
  107. package/es-modules/Extensions/Annotations/Types/TimeCycles.js +207 -0
  108. package/es-modules/Extensions/Annotations/Types/Tunnel.js +3 -5
  109. package/es-modules/Extensions/Annotations/Types/VerticalLine.js +1 -1
  110. package/es-modules/Extensions/Boost/BoostOverrides.js +3 -1
  111. package/es-modules/Extensions/Boost/WGLShader.js +4 -3
  112. package/es-modules/Extensions/BoostCanvas.js +1 -2
  113. package/es-modules/Extensions/CurrentDateIndication.js +2 -3
  114. package/es-modules/Extensions/DataGrouping.js +31 -18
  115. package/es-modules/Extensions/DownloadURL.js +2 -2
  116. package/es-modules/Extensions/DragPanes.js +1 -2
  117. package/es-modules/Extensions/Drilldown.js +2 -3
  118. package/es-modules/Extensions/Exporting/Exporting.js +8 -7
  119. package/es-modules/Extensions/Exporting/ExportingDefaults.js +8 -15
  120. package/es-modules/Extensions/GeoJSON.js +39 -63
  121. package/es-modules/Extensions/MarkerClusters.js +115 -97
  122. package/es-modules/Extensions/NoDataToDisplay.js +1 -2
  123. package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +9 -8
  124. package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
  125. package/es-modules/Extensions/Oldie/Oldie.js +2 -3
  126. package/es-modules/Extensions/Pane.js +5 -6
  127. package/es-modules/Extensions/RangeSelector.js +3 -4
  128. package/es-modules/Extensions/Sonification/ChartSonify.js +247 -637
  129. package/es-modules/Extensions/Sonification/Earcon.js +136 -102
  130. package/es-modules/Extensions/Sonification/Instrument.js +496 -426
  131. package/es-modules/Extensions/Sonification/MusicalFrequencies.js +10 -0
  132. package/es-modules/Extensions/Sonification/Options.js +10 -0
  133. package/es-modules/Extensions/Sonification/PointSonify.js +203 -152
  134. package/es-modules/Extensions/Sonification/SeriesSonify.js +459 -0
  135. package/es-modules/Extensions/Sonification/SignalHandler.js +124 -0
  136. package/es-modules/Extensions/Sonification/Sonification.js +26 -52
  137. package/es-modules/Extensions/Sonification/{Utilities.js → SonificationUtilities.js} +62 -84
  138. package/es-modules/Extensions/Sonification/Timeline.js +255 -567
  139. package/es-modules/Extensions/Sonification/TimelineEvent.js +158 -0
  140. package/es-modules/Extensions/Sonification/TimelinePath.js +311 -0
  141. package/es-modules/Maps/MapNavigation.js +27 -64
  142. package/es-modules/Maps/MapNavigationOptionsDefault.js +3 -0
  143. package/es-modules/Maps/MapPointer.js +7 -5
  144. package/es-modules/Maps/MapView.js +450 -0
  145. package/es-modules/Maps/MapViewOptionsDefault.js +95 -0
  146. package/es-modules/Maps/Projection.js +433 -0
  147. package/es-modules/Maps/ProjectionDefinition.js +9 -0
  148. package/es-modules/Maps/Projections/EqualEarth.js +42 -0
  149. package/es-modules/Maps/Projections/Miller.js +17 -0
  150. package/es-modules/Maps/Projections/Orthographic.js +26 -0
  151. package/es-modules/Maps/Projections/ProjectionRegistry.js +17 -0
  152. package/es-modules/Maps/Projections/WebMercator.js +25 -0
  153. package/es-modules/Series/AreaRange/AreaRangeSeries.js +4 -5
  154. package/es-modules/Series/Bellcurve/BellcurveSeries.js +2 -8
  155. package/es-modules/Series/BoxPlot/BoxPlotSeries.js +1 -2
  156. package/es-modules/Series/Bubble/BubbleLegendDefaults.js +1 -2
  157. package/es-modules/Series/Bubble/BubbleLegendItem.js +3 -3
  158. package/es-modules/Series/Bubble/BubblePoint.js +5 -0
  159. package/es-modules/Series/Bubble/BubbleSeries.js +90 -50
  160. package/es-modules/Series/Candlestick/CandlestickSeries.js +10 -18
  161. package/es-modules/{Mixins/CenteredSeries.js → Series/CenteredUtilities.js} +45 -23
  162. package/es-modules/Series/ColorMapComposition.js +109 -0
  163. package/es-modules/Series/Column/ColumnDataLabel.js +5 -5
  164. package/es-modules/Series/Column/ColumnSeries.js +3 -4
  165. package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +6 -6
  166. package/es-modules/Series/DataModifyComposition.js +539 -0
  167. package/es-modules/Series/DependencyWheel/DependencyWheelPoint.js +2 -6
  168. package/es-modules/Series/DerivedComposition.js +137 -0
  169. package/es-modules/Series/DrawPointComposition.js +111 -0
  170. package/es-modules/Series/Dumbbell/DumbbellSeries.js +2 -3
  171. package/es-modules/Series/ErrorBar/ErrorBarSeries.js +1 -2
  172. package/es-modules/Series/Flags/FlagsSeries.js +18 -25
  173. package/es-modules/Series/Funnel/FunnelSeries.js +6 -5
  174. package/es-modules/Series/Gantt/GanttSeries.js +0 -2
  175. package/es-modules/Series/Gauge/GaugePoint.js +1 -1
  176. package/es-modules/Series/Gauge/GaugeSeries.js +7 -7
  177. package/es-modules/Series/HLC/HLCPoint.js +55 -0
  178. package/es-modules/Series/HLC/HLCSeries.js +383 -0
  179. package/es-modules/Series/Heatmap/HeatmapPoint.js +3 -4
  180. package/es-modules/Series/Heatmap/HeatmapSeries.js +19 -6
  181. package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +2 -3
  182. package/es-modules/Series/Histogram/HistogramSeries.js +3 -7
  183. package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +9 -10
  184. package/es-modules/Series/Line/LineSeries.js +1 -2
  185. package/es-modules/Series/Map/MapPoint.js +23 -16
  186. package/es-modules/Series/Map/MapSeries.js +268 -309
  187. package/es-modules/Series/MapBubble/MapBubblePoint.js +0 -3
  188. package/es-modules/Series/MapBubble/MapBubbleSeries.js +10 -1
  189. package/es-modules/Series/MapPoint/MapPointPoint.js +5 -1
  190. package/es-modules/Series/MapPoint/MapPointSeries.js +87 -4
  191. package/es-modules/Series/Networkgraph/Networkgraph.js +5 -5
  192. package/es-modules/{Mixins/Nodes.js → Series/NodesComposition.js} +76 -29
  193. package/es-modules/Series/OHLC/OHLCPoint.js +2 -6
  194. package/es-modules/Series/OHLC/OHLCSeries.js +55 -183
  195. package/es-modules/{Mixins/OnSeries.js → Series/OnSeriesComposition.js} +53 -21
  196. package/es-modules/Series/Organization/OrganizationSeries.js +2 -3
  197. package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +46 -6
  198. package/es-modules/Series/ParetoSeries/ParetoSeries.js +3 -7
  199. package/es-modules/Series/Pie/PieDataLabel.js +1 -2
  200. package/es-modules/Series/Pie/PieSeries.js +6 -7
  201. package/es-modules/Series/Sankey/SankeyPoint.js +0 -4
  202. package/es-modules/Series/Sankey/SankeySeries.js +89 -20
  203. package/es-modules/Series/Sunburst/SunburstPoint.js +2 -3
  204. package/es-modules/Series/Sunburst/SunburstSeries.js +4 -4
  205. package/es-modules/Series/Tilemap/TilemapPoint.js +2 -3
  206. package/es-modules/Series/Timeline/TimelineSeries.js +3 -4
  207. package/es-modules/{Mixins/TreeSeries.js → Series/TreeUtilities.js} +86 -76
  208. package/es-modules/Series/Treemap/TreemapPoint.js +2 -2
  209. package/es-modules/Series/Treemap/TreemapSeries.js +8 -8
  210. package/es-modules/Series/Venn/VennPoint.js +16 -7
  211. package/es-modules/Series/Venn/VennSeries.js +5 -8
  212. package/es-modules/Series/Venn/VennUtils.js +550 -439
  213. package/es-modules/Series/Waterfall/WaterfallSeries.js +2 -3
  214. package/es-modules/Series/Windbarb/WindbarbSeries.js +23 -24
  215. package/es-modules/Series/Wordcloud/WordcloudPoint.js +8 -6
  216. package/es-modules/Series/Wordcloud/WordcloudSeries.js +24 -20
  217. package/es-modules/Series/Wordcloud/WordcloudUtils.js +673 -484
  218. package/es-modules/Series/XRange/XRangePoint.js +1 -0
  219. package/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +3 -6
  220. package/es-modules/Stock/Indicators/AO/AOIndicator.js +2 -3
  221. package/es-modules/Stock/Indicators/APO/APOIndicator.js +14 -20
  222. package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +3 -6
  223. package/es-modules/Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js +11 -13
  224. package/es-modules/Stock/Indicators/ArrayUtilities.js +47 -0
  225. package/es-modules/Stock/Indicators/BB/BBIndicator.js +27 -11
  226. package/es-modules/Stock/Indicators/Chaikin/ChaikinIndicator.js +6 -12
  227. package/es-modules/Stock/Indicators/DEMA/DEMAIndicator.js +1 -11
  228. package/es-modules/Stock/Indicators/DMI/DMIIndicator.js +19 -11
  229. package/es-modules/Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js +17 -11
  230. package/es-modules/Stock/Indicators/EMA/EMAIndicator.js +1 -3
  231. package/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +11 -9
  232. package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +8 -16
  233. package/es-modules/Stock/Indicators/LinearRegression/LinearRegression.js +2 -2
  234. package/es-modules/Stock/Indicators/LinearRegressionAngle/LinearRegressionAngle.js +2 -2
  235. package/es-modules/Stock/Indicators/LinearRegressionIntercept/LinearRegressionIntercept.js +2 -2
  236. package/es-modules/Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopes.js +2 -2
  237. package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +1 -2
  238. package/es-modules/{Mixins/MultipleLines.js → Stock/Indicators/MultipleLinesComposition.js} +136 -87
  239. package/es-modules/Stock/Indicators/NATR/NATRIndicator.js +1 -3
  240. package/es-modules/Stock/Indicators/PC/PCIndicator.js +14 -13
  241. package/es-modules/Stock/Indicators/PPO/PPOIndicator.js +1 -11
  242. package/es-modules/Stock/Indicators/SMA/SMAComposition.js +0 -26
  243. package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +9 -32
  244. package/es-modules/Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js +0 -8
  245. package/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +15 -8
  246. package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +4 -6
  247. package/es-modules/Stock/Indicators/TEMA/TEMAIndicator.js +26 -11
  248. package/es-modules/Stock/Indicators/TRIX/TRIXIndicator.js +6 -12
  249. package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +20 -3
  250. package/es-modules/Stock/Indicators/WilliamsR/WilliamsRIndicator.js +2 -3
  251. package/es-modules/Stock/StockToolsBindings.js +144 -42
  252. package/es-modules/Stock/StockToolsGui.js +405 -11
  253. package/es-modules/masters/highcharts-3d.src.js +1 -1
  254. package/es-modules/masters/highcharts-gantt.src.js +1 -1
  255. package/es-modules/masters/highcharts-more.src.js +1 -1
  256. package/es-modules/masters/highcharts.src.js +1 -1
  257. package/es-modules/masters/highmaps.src.js +1 -1
  258. package/es-modules/masters/highstock.src.js +1 -1
  259. package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
  260. package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
  261. package/es-modules/masters/indicators/ao.src.js +1 -1
  262. package/es-modules/masters/indicators/apo.src.js +1 -1
  263. package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
  264. package/es-modules/masters/indicators/aroon.src.js +1 -1
  265. package/es-modules/masters/indicators/atr.src.js +1 -1
  266. package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
  267. package/es-modules/masters/indicators/cci.src.js +1 -1
  268. package/es-modules/masters/indicators/chaikin.src.js +1 -1
  269. package/es-modules/masters/indicators/cmf.src.js +1 -1
  270. package/es-modules/masters/indicators/cmo.src.js +1 -1
  271. package/es-modules/masters/indicators/dema.src.js +1 -1
  272. package/es-modules/masters/indicators/disparity-index.src.js +1 -1
  273. package/es-modules/masters/indicators/dmi.src.js +1 -1
  274. package/es-modules/masters/indicators/dpo.src.js +1 -1
  275. package/es-modules/masters/indicators/ema.src.js +4 -10
  276. package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
  277. package/es-modules/masters/indicators/indicators-all.src.js +2 -2
  278. package/es-modules/masters/indicators/indicators.src.js +2 -1
  279. package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
  280. package/es-modules/masters/indicators/klinger.src.js +1 -1
  281. package/es-modules/masters/indicators/macd.src.js +1 -1
  282. package/es-modules/masters/indicators/mfi.src.js +1 -1
  283. package/es-modules/masters/indicators/momentum.src.js +1 -1
  284. package/es-modules/masters/indicators/natr.src.js +1 -1
  285. package/es-modules/masters/indicators/obv.src.js +1 -1
  286. package/es-modules/masters/indicators/pivot-points.src.js +1 -1
  287. package/es-modules/masters/indicators/ppo.src.js +1 -1
  288. package/es-modules/masters/indicators/price-channel.src.js +1 -1
  289. package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
  290. package/es-modules/masters/indicators/psar.src.js +1 -1
  291. package/es-modules/masters/indicators/regressions.src.js +1 -1
  292. package/es-modules/masters/indicators/roc.src.js +1 -1
  293. package/es-modules/masters/indicators/rsi.src.js +1 -1
  294. package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
  295. package/es-modules/masters/indicators/stochastic.src.js +1 -1
  296. package/es-modules/masters/indicators/supertrend.src.js +1 -1
  297. package/es-modules/masters/indicators/tema.src.js +1 -1
  298. package/es-modules/masters/indicators/trendline.src.js +1 -1
  299. package/es-modules/masters/indicators/trix.src.js +1 -1
  300. package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
  301. package/es-modules/masters/indicators/vwap.src.js +1 -1
  302. package/es-modules/masters/indicators/williams-r.src.js +1 -1
  303. package/es-modules/masters/indicators/wma.src.js +1 -1
  304. package/es-modules/masters/indicators/zigzag.src.js +1 -1
  305. package/es-modules/masters/modules/accessibility.src.js +16 -2
  306. package/es-modules/masters/modules/annotations-advanced.src.js +3 -1
  307. package/es-modules/masters/modules/annotations.src.js +1 -1
  308. package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
  309. package/es-modules/masters/modules/boost-canvas.src.js +1 -1
  310. package/es-modules/masters/modules/boost.src.js +1 -1
  311. package/es-modules/masters/modules/broken-axis.src.js +1 -1
  312. package/es-modules/masters/modules/bullet.src.js +1 -1
  313. package/es-modules/masters/modules/coloraxis.src.js +1 -1
  314. package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
  315. package/es-modules/masters/modules/cylinder.src.js +1 -1
  316. package/es-modules/masters/modules/data.src.js +6 -3
  317. package/es-modules/masters/modules/datagrouping.src.js +1 -1
  318. package/es-modules/masters/modules/debugger.src.js +1 -1
  319. package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
  320. package/es-modules/masters/modules/dotplot.src.js +1 -1
  321. package/es-modules/masters/modules/drag-panes.src.js +1 -1
  322. package/es-modules/masters/modules/draggable-points.src.js +1 -1
  323. package/es-modules/masters/modules/drilldown.src.js +1 -1
  324. package/es-modules/masters/modules/dumbbell.src.js +1 -1
  325. package/es-modules/masters/modules/export-data.src.js +1 -1
  326. package/es-modules/masters/modules/exporting.src.js +1 -1
  327. package/es-modules/masters/modules/full-screen.src.js +1 -1
  328. package/es-modules/masters/modules/funnel.src.js +1 -1
  329. package/es-modules/masters/modules/funnel3d.src.js +1 -1
  330. package/es-modules/masters/modules/gantt.src.js +1 -1
  331. package/es-modules/masters/modules/grid-axis.src.js +1 -1
  332. package/es-modules/masters/modules/heatmap.src.js +1 -2
  333. package/es-modules/masters/modules/heikinashi.src.js +1 -1
  334. package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
  335. package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
  336. package/es-modules/masters/modules/item-series.src.js +1 -1
  337. package/es-modules/masters/modules/lollipop.src.js +1 -1
  338. package/es-modules/masters/modules/map.src.js +1 -3
  339. package/es-modules/masters/modules/marker-clusters.src.js +1 -1
  340. package/es-modules/masters/modules/networkgraph.src.js +1 -1
  341. package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
  342. package/es-modules/masters/modules/offline-exporting.src.js +1 -1
  343. package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
  344. package/es-modules/masters/modules/oldie.src.js +1 -1
  345. package/es-modules/masters/modules/organization.src.js +1 -1
  346. package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
  347. package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
  348. package/es-modules/masters/modules/pareto.src.js +1 -1
  349. package/es-modules/masters/modules/pathfinder.src.js +1 -1
  350. package/es-modules/masters/modules/pattern-fill.src.js +1 -1
  351. package/es-modules/masters/modules/price-indicator.src.js +1 -1
  352. package/es-modules/masters/modules/pyramid3d.src.js +1 -1
  353. package/es-modules/masters/modules/sankey.src.js +1 -1
  354. package/es-modules/masters/modules/series-label.src.js +1 -1
  355. package/es-modules/masters/modules/solid-gauge.src.js +1 -1
  356. package/es-modules/masters/modules/sonification.src.js +33 -2
  357. package/es-modules/masters/modules/static-scale.src.js +1 -1
  358. package/es-modules/masters/modules/stock-tools.src.js +1 -1
  359. package/es-modules/masters/modules/stock.src.js +4 -1
  360. package/es-modules/masters/modules/streamgraph.src.js +1 -1
  361. package/es-modules/masters/modules/sunburst.src.js +1 -1
  362. package/es-modules/masters/modules/tilemap.src.js +1 -1
  363. package/es-modules/masters/modules/timeline.src.js +1 -1
  364. package/es-modules/masters/modules/treegrid.src.js +1 -1
  365. package/es-modules/masters/modules/treemap.src.js +1 -1
  366. package/es-modules/masters/modules/variable-pie.src.js +1 -1
  367. package/es-modules/masters/modules/variwide.src.js +1 -1
  368. package/es-modules/masters/modules/vector.src.js +1 -1
  369. package/es-modules/masters/modules/venn.src.js +1 -1
  370. package/es-modules/masters/modules/windbarb.src.js +1 -1
  371. package/es-modules/masters/modules/wordcloud.src.js +1 -1
  372. package/es-modules/masters/modules/xrange.src.js +1 -1
  373. package/es-modules/masters/themes/avocado.src.js +1 -1
  374. package/es-modules/masters/themes/dark-blue.src.js +1 -1
  375. package/es-modules/masters/themes/dark-green.src.js +1 -1
  376. package/es-modules/masters/themes/dark-unica.src.js +1 -1
  377. package/es-modules/masters/themes/gray.src.js +1 -1
  378. package/es-modules/masters/themes/grid-light.src.js +1 -1
  379. package/es-modules/masters/themes/grid.src.js +1 -1
  380. package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
  381. package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
  382. package/es-modules/masters/themes/sand-signika.src.js +1 -1
  383. package/es-modules/masters/themes/skies.src.js +1 -1
  384. package/es-modules/masters/themes/sunset.src.js +1 -1
  385. package/highcharts-3d.js +1 -1
  386. package/highcharts-3d.src.js +1 -1
  387. package/highcharts-gantt.js +801 -804
  388. package/highcharts-gantt.js.map +1 -1
  389. package/highcharts-gantt.src.js +775 -739
  390. package/highcharts-more.js +194 -193
  391. package/highcharts-more.js.map +1 -1
  392. package/highcharts-more.src.js +207 -119
  393. package/highcharts.d.ts +9670 -4217
  394. package/highcharts.js +585 -588
  395. package/highcharts.js.map +1 -1
  396. package/highcharts.src.d.ts +9670 -4217
  397. package/highcharts.src.js +608 -587
  398. package/highmaps.js +726 -708
  399. package/highmaps.js.map +1 -1
  400. package/highmaps.src.js +2708 -1587
  401. package/highstock.js +788 -783
  402. package/highstock.js.map +1 -1
  403. package/highstock.src.js +1896 -1267
  404. package/indicators/acceleration-bands.js +10 -9
  405. package/indicators/acceleration-bands.js.map +1 -1
  406. package/indicators/acceleration-bands.src.js +156 -112
  407. package/indicators/accumulation-distribution.js +1 -1
  408. package/indicators/accumulation-distribution.src.js +1 -1
  409. package/indicators/ao.js +6 -6
  410. package/indicators/ao.js.map +1 -1
  411. package/indicators/ao.src.js +4 -4
  412. package/indicators/apo.js +5 -6
  413. package/indicators/apo.js.map +1 -1
  414. package/indicators/apo.src.js +16 -84
  415. package/indicators/aroon-oscillator.js +9 -9
  416. package/indicators/aroon-oscillator.js.map +1 -1
  417. package/indicators/aroon-oscillator.src.js +160 -177
  418. package/indicators/aroon.js +9 -9
  419. package/indicators/aroon.js.map +1 -1
  420. package/indicators/aroon.src.js +156 -112
  421. package/indicators/atr.js +1 -1
  422. package/indicators/atr.src.js +1 -1
  423. package/indicators/bollinger-bands.js +10 -9
  424. package/indicators/bollinger-bands.js.map +1 -1
  425. package/indicators/bollinger-bands.src.js +180 -117
  426. package/indicators/cci.js +1 -1
  427. package/indicators/cci.src.js +1 -1
  428. package/indicators/chaikin.js +8 -9
  429. package/indicators/chaikin.js.map +1 -1
  430. package/indicators/chaikin.src.js +8 -76
  431. package/indicators/cmf.js +1 -1
  432. package/indicators/cmf.src.js +1 -1
  433. package/indicators/cmo.js +1 -1
  434. package/indicators/cmo.src.js +1 -1
  435. package/indicators/dema.js +5 -6
  436. package/indicators/dema.js.map +1 -1
  437. package/indicators/dema.src.js +3 -75
  438. package/indicators/disparity-index.js +6 -7
  439. package/indicators/disparity-index.js.map +1 -1
  440. package/indicators/disparity-index.src.js +19 -74
  441. package/indicators/dmi.js +11 -11
  442. package/indicators/dmi.js.map +1 -1
  443. package/indicators/dmi.src.js +173 -116
  444. package/indicators/dpo.js +1 -1
  445. package/indicators/dpo.src.js +1 -1
  446. package/indicators/ema.js +1 -13
  447. package/indicators/ema.js.map +1 -1
  448. package/indicators/ema.src.js +7 -188
  449. package/indicators/ichimoku-kinko-hyo.js +1 -1
  450. package/indicators/ichimoku-kinko-hyo.src.js +1 -1
  451. package/indicators/indicators-all.js +197 -203
  452. package/indicators/indicators-all.js.map +1 -1
  453. package/indicators/indicators-all.src.js +649 -720
  454. package/indicators/indicators.js +12 -12
  455. package/indicators/indicators.js.map +1 -1
  456. package/indicators/indicators.src.js +188 -124
  457. package/indicators/keltner-channels.js +10 -10
  458. package/indicators/keltner-channels.js.map +1 -1
  459. package/indicators/keltner-channels.src.js +164 -118
  460. package/indicators/klinger.js +12 -13
  461. package/indicators/klinger.js.map +1 -1
  462. package/indicators/klinger.src.js +161 -184
  463. package/indicators/macd.js +2 -2
  464. package/indicators/macd.js.map +1 -1
  465. package/indicators/macd.src.js +2 -3
  466. package/indicators/mfi.js +1 -1
  467. package/indicators/mfi.src.js +1 -1
  468. package/indicators/momentum.js +1 -1
  469. package/indicators/momentum.src.js +1 -1
  470. package/indicators/natr.js +3 -3
  471. package/indicators/natr.js.map +1 -1
  472. package/indicators/natr.src.js +2 -4
  473. package/indicators/obv.js +1 -1
  474. package/indicators/obv.src.js +1 -1
  475. package/indicators/pivot-points.js +1 -1
  476. package/indicators/pivot-points.src.js +1 -1
  477. package/indicators/ppo.js +5 -6
  478. package/indicators/ppo.js.map +1 -1
  479. package/indicators/ppo.src.js +3 -75
  480. package/indicators/price-channel.js +9 -9
  481. package/indicators/price-channel.js.map +1 -1
  482. package/indicators/price-channel.src.js +207 -168
  483. package/indicators/price-envelopes.js +1 -1
  484. package/indicators/price-envelopes.src.js +1 -1
  485. package/indicators/psar.js +1 -1
  486. package/indicators/psar.src.js +1 -1
  487. package/indicators/regressions.js +1 -1
  488. package/indicators/regressions.src.js +9 -9
  489. package/indicators/roc.js +1 -1
  490. package/indicators/roc.src.js +1 -1
  491. package/indicators/rsi.js +1 -1
  492. package/indicators/rsi.src.js +1 -1
  493. package/indicators/slow-stochastic.js +5 -6
  494. package/indicators/slow-stochastic.js.map +1 -1
  495. package/indicators/slow-stochastic.src.js +2 -72
  496. package/indicators/stochastic.js +10 -10
  497. package/indicators/stochastic.js.map +1 -1
  498. package/indicators/stochastic.src.js +209 -164
  499. package/indicators/supertrend.js +10 -10
  500. package/indicators/supertrend.js.map +1 -1
  501. package/indicators/supertrend.src.js +6 -7
  502. package/indicators/tema.js +6 -7
  503. package/indicators/tema.js.map +1 -1
  504. package/indicators/tema.src.js +28 -75
  505. package/indicators/trendline.js +1 -1
  506. package/indicators/trendline.src.js +1 -1
  507. package/indicators/trix.js +4 -5
  508. package/indicators/trix.js.map +1 -1
  509. package/indicators/trix.src.js +8 -76
  510. package/indicators/volume-by-price.js +16 -16
  511. package/indicators/volume-by-price.js.map +1 -1
  512. package/indicators/volume-by-price.src.js +21 -3
  513. package/indicators/vwap.js +1 -1
  514. package/indicators/vwap.src.js +1 -1
  515. package/indicators/williams-r.js +5 -6
  516. package/indicators/williams-r.js.map +1 -1
  517. package/indicators/williams-r.src.js +41 -51
  518. package/indicators/wma.js +1 -1
  519. package/indicators/wma.src.js +1 -1
  520. package/indicators/zigzag.js +1 -1
  521. package/indicators/zigzag.src.js +1 -1
  522. package/modules/accessibility.d.ts +5 -0
  523. package/modules/accessibility.js +234 -216
  524. package/modules/accessibility.js.map +1 -1
  525. package/modules/accessibility.src.d.ts +5 -0
  526. package/modules/accessibility.src.js +9709 -8608
  527. package/modules/annotations-advanced.d.ts +30 -0
  528. package/modules/annotations-advanced.js +191 -165
  529. package/modules/annotations-advanced.js.map +1 -1
  530. package/modules/annotations-advanced.src.d.ts +30 -0
  531. package/modules/annotations-advanced.src.js +1578 -320
  532. package/modules/annotations.js +121 -107
  533. package/modules/annotations.js.map +1 -1
  534. package/modules/annotations.src.js +958 -229
  535. package/modules/arrow-symbols.js +1 -1
  536. package/modules/arrow-symbols.src.js +1 -1
  537. package/modules/boost-canvas.js +15 -15
  538. package/modules/boost-canvas.js.map +1 -1
  539. package/modules/boost-canvas.src.js +3 -3
  540. package/modules/boost.js +79 -79
  541. package/modules/boost.js.map +1 -1
  542. package/modules/boost.src.js +10 -9
  543. package/modules/broken-axis.js +1 -1
  544. package/modules/broken-axis.src.js +1 -1
  545. package/modules/bullet.js +1 -1
  546. package/modules/bullet.src.js +1 -1
  547. package/modules/coloraxis.js +24 -24
  548. package/modules/coloraxis.js.map +1 -1
  549. package/modules/coloraxis.src.js +69 -98
  550. package/modules/current-date-indicator.js +4 -4
  551. package/modules/current-date-indicator.js.map +1 -1
  552. package/modules/current-date-indicator.src.js +4 -4
  553. package/modules/cylinder.js +1 -1
  554. package/modules/cylinder.src.js +1 -1
  555. package/modules/data.js +19 -19
  556. package/modules/data.js.map +1 -1
  557. package/modules/data.src.js +9 -6
  558. package/modules/datagrouping.js +20 -20
  559. package/modules/datagrouping.js.map +1 -1
  560. package/modules/datagrouping.src.js +33 -19
  561. package/modules/debugger.js +1 -1
  562. package/modules/debugger.src.js +1 -1
  563. package/modules/dependency-wheel.js +11 -11
  564. package/modules/dependency-wheel.js.map +1 -1
  565. package/modules/dependency-wheel.src.js +4 -7
  566. package/modules/dotplot.js +1 -1
  567. package/modules/dotplot.src.js +1 -1
  568. package/modules/drag-panes.js +8 -8
  569. package/modules/drag-panes.js.map +1 -1
  570. package/modules/drag-panes.src.js +3 -3
  571. package/modules/draggable-points.js +1 -1
  572. package/modules/draggable-points.src.js +1 -1
  573. package/modules/drilldown.js +24 -24
  574. package/modules/drilldown.js.map +1 -1
  575. package/modules/drilldown.src.js +4 -4
  576. package/modules/dumbbell.js +17 -17
  577. package/modules/dumbbell.js.map +1 -1
  578. package/modules/dumbbell.src.js +4 -4
  579. package/modules/export-data.js +1 -1
  580. package/modules/export-data.js.map +1 -1
  581. package/modules/export-data.src.js +3 -3
  582. package/modules/exporting.js +39 -38
  583. package/modules/exporting.js.map +1 -1
  584. package/modules/exporting.src.js +98 -67
  585. package/modules/full-screen.js +1 -1
  586. package/modules/full-screen.src.js +1 -1
  587. package/modules/funnel.js +12 -12
  588. package/modules/funnel.js.map +1 -1
  589. package/modules/funnel.src.js +9 -6
  590. package/modules/funnel3d.js +1 -1
  591. package/modules/funnel3d.src.js +1 -1
  592. package/modules/gantt.js +217 -218
  593. package/modules/gantt.js.map +1 -1
  594. package/modules/gantt.src.js +167 -152
  595. package/modules/grid-axis.js +1 -1
  596. package/modules/grid-axis.src.js +1 -1
  597. package/modules/heatmap.js +39 -39
  598. package/modules/heatmap.js.map +1 -1
  599. package/modules/heatmap.src.js +177 -162
  600. package/modules/heikinashi.js +1 -1
  601. package/modules/heikinashi.src.js +4 -4
  602. package/modules/histogram-bellcurve.js +13 -13
  603. package/modules/histogram-bellcurve.js.map +1 -1
  604. package/modules/histogram-bellcurve.src.js +91 -86
  605. package/modules/hollowcandlestick.js +9 -9
  606. package/modules/hollowcandlestick.js.map +1 -1
  607. package/modules/hollowcandlestick.src.js +11 -11
  608. package/modules/item-series.js +1 -1
  609. package/modules/item-series.src.js +1 -1
  610. package/modules/lollipop.js +1 -1
  611. package/modules/lollipop.src.js +1 -1
  612. package/modules/map.d.ts +136 -14
  613. package/modules/map.js +142 -122
  614. package/modules/map.js.map +1 -1
  615. package/modules/map.src.d.ts +136 -14
  616. package/modules/map.src.js +2129 -1029
  617. package/modules/marker-clusters.js +36 -36
  618. package/modules/marker-clusters.js.map +1 -1
  619. package/modules/marker-clusters.src.js +173 -142
  620. package/modules/networkgraph.d.ts +12 -1
  621. package/modules/networkgraph.js +49 -49
  622. package/modules/networkgraph.js.map +1 -1
  623. package/modules/networkgraph.src.d.ts +12 -1
  624. package/modules/networkgraph.src.js +91 -43
  625. package/modules/no-data-to-display.js +5 -5
  626. package/modules/no-data-to-display.js.map +1 -1
  627. package/modules/no-data-to-display.src.js +3 -3
  628. package/modules/offline-exporting.js +17 -17
  629. package/modules/offline-exporting.js.map +1 -1
  630. package/modules/offline-exporting.src.js +13 -13
  631. package/modules/oldie-polyfills.js +1 -1
  632. package/modules/oldie-polyfills.src.js +1 -1
  633. package/modules/oldie.js +26 -26
  634. package/modules/oldie.js.map +1 -1
  635. package/modules/oldie.src.js +4 -4
  636. package/modules/organization.js +13 -13
  637. package/modules/organization.js.map +1 -1
  638. package/modules/organization.src.js +4 -4
  639. package/modules/overlapping-datalabels.js +1 -1
  640. package/modules/overlapping-datalabels.src.js +1 -1
  641. package/modules/parallel-coordinates.js +1 -1
  642. package/modules/parallel-coordinates.src.js +1 -1
  643. package/modules/pareto.js +7 -7
  644. package/modules/pareto.js.map +1 -1
  645. package/modules/pareto.src.js +89 -78
  646. package/modules/pathfinder.js +1 -1
  647. package/modules/pathfinder.src.js +1 -1
  648. package/modules/pattern-fill.js +1 -1
  649. package/modules/pattern-fill.src.js +1 -1
  650. package/modules/price-indicator.js +1 -1
  651. package/modules/price-indicator.src.js +1 -1
  652. package/modules/pyramid3d.js +1 -1
  653. package/modules/pyramid3d.src.js +1 -1
  654. package/modules/sankey.d.ts +12 -1
  655. package/modules/sankey.js +29 -29
  656. package/modules/sankey.js.map +1 -1
  657. package/modules/sankey.src.d.ts +12 -1
  658. package/modules/sankey.src.js +300 -176
  659. package/modules/series-label.js +1 -1
  660. package/modules/series-label.src.js +1 -1
  661. package/modules/solid-gauge.js +1 -1
  662. package/modules/solid-gauge.src.js +1 -1
  663. package/modules/sonification.js +59 -55
  664. package/modules/sonification.js.map +1 -1
  665. package/modules/sonification.src.js +3034 -2553
  666. package/modules/static-scale.js +1 -1
  667. package/modules/static-scale.src.js +1 -1
  668. package/modules/stock-tools.js +177 -164
  669. package/modules/stock-tools.js.map +1 -1
  670. package/modules/stock-tools.src.js +1001 -131
  671. package/modules/stock.d.ts +39 -6
  672. package/modules/stock.js +204 -196
  673. package/modules/stock.js.map +1 -1
  674. package/modules/stock.src.d.ts +39 -6
  675. package/modules/stock.src.js +1689 -1081
  676. package/modules/streamgraph.js +1 -1
  677. package/modules/streamgraph.src.js +1 -1
  678. package/modules/sunburst.js +61 -60
  679. package/modules/sunburst.js.map +1 -1
  680. package/modules/sunburst.src.js +329 -266
  681. package/modules/tilemap.js +17 -17
  682. package/modules/tilemap.js.map +1 -1
  683. package/modules/tilemap.src.js +3 -4
  684. package/modules/timeline.js +18 -18
  685. package/modules/timeline.js.map +1 -1
  686. package/modules/timeline.src.js +5 -5
  687. package/modules/treegrid.js +56 -57
  688. package/modules/treegrid.js.map +1 -1
  689. package/modules/treegrid.src.js +126 -120
  690. package/modules/treemap.js +41 -41
  691. package/modules/treemap.js.map +1 -1
  692. package/modules/treemap.src.js +319 -254
  693. package/modules/variable-pie.js +1 -1
  694. package/modules/variable-pie.src.js +1 -1
  695. package/modules/variwide.js +1 -1
  696. package/modules/variwide.src.js +1 -1
  697. package/modules/vector.js +1 -1
  698. package/modules/vector.src.js +1 -1
  699. package/modules/venn.js +31 -31
  700. package/modules/venn.js.map +1 -1
  701. package/modules/venn.src.js +731 -721
  702. package/modules/windbarb.js +15 -15
  703. package/modules/windbarb.js.map +1 -1
  704. package/modules/windbarb.src.js +90 -62
  705. package/modules/wordcloud.js +23 -24
  706. package/modules/wordcloud.js.map +1 -1
  707. package/modules/wordcloud.src.js +897 -949
  708. package/modules/xrange.js +2 -2
  709. package/modules/xrange.js.map +1 -1
  710. package/modules/xrange.src.js +2 -1
  711. package/package.json +1 -1
  712. package/themes/avocado.js +1 -1
  713. package/themes/avocado.src.js +1 -1
  714. package/themes/dark-blue.js +1 -1
  715. package/themes/dark-blue.src.js +1 -1
  716. package/themes/dark-green.js +1 -1
  717. package/themes/dark-green.src.js +1 -1
  718. package/themes/dark-unica.js +1 -1
  719. package/themes/dark-unica.src.js +1 -1
  720. package/themes/gray.js +1 -1
  721. package/themes/gray.src.js +1 -1
  722. package/themes/grid-light.js +1 -1
  723. package/themes/grid-light.src.js +1 -1
  724. package/themes/grid.js +1 -1
  725. package/themes/grid.src.js +1 -1
  726. package/themes/high-contrast-dark.js +1 -1
  727. package/themes/high-contrast-dark.src.js +1 -1
  728. package/themes/high-contrast-light.js +1 -1
  729. package/themes/high-contrast-light.src.js +1 -1
  730. package/themes/sand-signika.js +1 -1
  731. package/themes/sand-signika.src.js +1 -1
  732. package/themes/skies.js +1 -1
  733. package/themes/skies.src.js +1 -1
  734. package/themes/sunset.js +1 -1
  735. package/themes/sunset.src.js +1 -1
  736. package/es-modules/Core/Axis/MapAxis.js +0 -157
  737. package/es-modules/Core/Color/Palette.js +0 -82
  738. package/es-modules/Extensions/Sonification/InstrumentDefinitions.js +0 -32
  739. package/es-modules/Mixins/ColorMapSeries.js +0 -82
  740. package/es-modules/Mixins/ColorSeries.js +0 -77
  741. package/es-modules/Mixins/DerivedSeries.js +0 -118
  742. package/es-modules/Mixins/DrawPoint.js +0 -81
  743. package/es-modules/Mixins/IndicatorRequired.js +0 -56
  744. package/es-modules/Mixins/Navigation.js +0 -54
  745. package/es-modules/Mixins/NelderMead.js +0 -132
  746. package/es-modules/Mixins/Polygon.js +0 -259
  747. package/es-modules/Mixins/ReduceArray.js +0 -54
package/highmaps.js CHANGED
@@ -1,715 +1,733 @@
1
1
  /*
2
- Highmaps JS v9.2.2 (2021-08-24)
2
+ Highmaps JS v9.3.0 (2021-10-21)
3
3
 
4
4
  (c) 2011-2021 Torstein Honsi
5
5
 
6
6
  License: www.highcharts.com/license
7
7
  */
8
- 'use strict';(function(aa,I){"object"===typeof module&&module.exports?(I["default"]=I,module.exports=aa.document?I(aa):I):"function"===typeof define&&define.amd?define("highcharts/highmaps",function(){return I(aa)}):(aa.Highcharts&&aa.Highcharts.error(16,!0),aa.Highcharts=I(aa))})("undefined"!==typeof window?window:this,function(aa){function I(r,a,A,y){r.hasOwnProperty(a)||(r[a]=y.apply(null,A))}var a={};I(a,"Core/Globals.js",[],function(){var r="undefined"!==typeof aa?aa:"undefined"!==typeof window?
9
- window:{},a;(function(a){a.SVG_NS="http://www.w3.org/2000/svg";a.product="Highcharts";a.version="9.2.2";a.win=r;a.doc=a.win.document;a.svg=a.doc&&a.doc.createElementNS&&!!a.doc.createElementNS(a.SVG_NS,"svg").createSVGRect;a.userAgent=a.win.navigator&&a.win.navigator.userAgent||"";a.isChrome=-1!==a.userAgent.indexOf("Chrome");a.isFirefox=-1!==a.userAgent.indexOf("Firefox");a.isMS=/(edge|msie|trident)/i.test(a.userAgent)&&!a.win.opera;a.isSafari=!a.isChrome&&-1!==a.userAgent.indexOf("Safari");a.isTouchDevice=
10
- /(Mobile|Android|Windows Phone)/.test(a.userAgent);a.isWebKit=-1!==a.userAgent.indexOf("AppleWebKit");a.deg2rad=2*Math.PI/360;a.hasBidiBug=a.isFirefox&&4>parseInt(a.userAgent.split("Firefox/")[1],10);a.hasTouch=!!a.win.TouchEvent;a.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];a.noop=function(){};a.supportsPassiveEvents=function(){var r=!1;if(!a.isMS){var v=Object.defineProperty({},"passive",{get:function(){r=!0}});a.win.addEventListener&&a.win.removeEventListener&&(a.win.addEventListener("testPassive",
11
- a.noop,v),a.win.removeEventListener("testPassive",a.noop,v))}return r}();a.charts=[];a.dateFormats={};a.seriesTypes={};a.symbolSizes={};a.chartCount=0})(a||(a={}));"";return a});I(a,"Core/Utilities.js",[a["Core/Globals.js"]],function(a){function r(c,e,b,n){var H=e?"Highcharts error":"Highcharts warning";32===c&&(c=H+": Deprecated member");var f=h(c),m=f?H+" #"+c+": www.highcharts.com/errors/"+c+"/":c.toString();if("undefined"!==typeof n){var g="";f&&(m+="?");B(n,function(c,e){g+="\n - "+e+": "+c;
12
- f&&(m+=encodeURI(e)+"="+encodeURI(c))});m+=g}u(a,"displayError",{chart:b,code:c,message:m,params:n},function(){if(e)throw Error(m);q.console&&-1===r.messages.indexOf(m)&&console.warn(m)});r.messages.push(m)}function A(c,e){var H={};B(c,function(b,n){if(D(c[n],!0)&&!c.nodeType&&e[n])b=A(c[n],e[n]),Object.keys(b).length&&(H[n]=b);else if(D(c[n])||c[n]!==e[n])H[n]=c[n]});return H}function y(c,e){return parseInt(c,e||10)}function z(c){return"string"===typeof c}function w(c){c=Object.prototype.toString.call(c);
13
- return"[object Array]"===c||"[object Array Iterator]"===c}function D(c,e){return!!c&&"object"===typeof c&&(!e||!w(c))}function t(c){return D(c)&&"number"===typeof c.nodeType}function l(c){var e=c&&c.constructor;return!(!D(c,!0)||t(c)||!e||!e.name||"Object"===e.name)}function h(c){return"number"===typeof c&&!isNaN(c)&&Infinity>c&&-Infinity<c}function d(c){return"undefined"!==typeof c&&null!==c}function b(c,e,n){var b;z(e)?d(n)?c.setAttribute(e,n):c&&c.getAttribute&&((b=c.getAttribute(e))||"class"!==
14
- e||(b=c.getAttribute(e+"Name"))):B(e,function(e,b){c.setAttribute(b,e)});return b}function g(c,e){var b;c||(c={});for(b in e)c[b]=e[b];return c}function p(){for(var c=arguments,e=c.length,b=0;b<e;b++){var n=c[b];if("undefined"!==typeof n&&null!==n)return n}}function k(c,e){a.isMS&&!a.svg&&e&&"undefined"!==typeof e.opacity&&(e.filter="alpha(opacity="+100*e.opacity+")");g(c.style,e)}function J(c,e,b,n,f){c=m.createElement(c);e&&g(c,e);f&&k(c,{padding:"0",border:"none",margin:"0"});b&&k(c,b);n&&n.appendChild(c);
15
- return c}function G(c,e){return parseFloat(c.toPrecision(e||14))}function f(c,e,b){var n=a.getStyle||f;if("width"===e)return e=Math.min(c.offsetWidth,c.scrollWidth),b=c.getBoundingClientRect&&c.getBoundingClientRect().width,b<e&&b>=e-1&&(e=Math.floor(b)),Math.max(0,e-(n(c,"padding-left",!0)||0)-(n(c,"padding-right",!0)||0));if("height"===e)return Math.max(0,Math.min(c.offsetHeight,c.scrollHeight)-(n(c,"padding-top",!0)||0)-(n(c,"padding-bottom",!0)||0));q.getComputedStyle||r(27,!0);if(c=q.getComputedStyle(c,
16
- void 0)){var m=c.getPropertyValue(e);p(b,"opacity"!==e)&&(m=y(m))}return m}function B(c,e,b){for(var n in c)Object.hasOwnProperty.call(c,n)&&e.call(b||c[n],c[n],n,c)}function x(c,e,b){function n(e,b){var n=c.removeEventListener||a.removeEventListenerPolyfill;n&&n.call(c,e,b,!1)}function f(b){var N;if(c.nodeName){if(e){var M={};M[e]=!0}else M=b;B(M,function(c,e){if(b[e])for(N=b[e].length;N--;)n(e,b[e][N].fn)})}}var m="function"===typeof c&&c.prototype||c;if(Object.hasOwnProperty.call(m,"hcEvents")){var q=
17
- m.hcEvents;e?(m=q[e]||[],b?(q[e]=m.filter(function(c){return b!==c.fn}),n(e,b)):(f(q),q[e]=[])):(f(q),delete m.hcEvents)}}function u(c,e,b,n){b=b||{};if(m.createEvent&&(c.dispatchEvent||c.fireEvent&&c!==a)){var f=m.createEvent("Events");f.initEvent(e,!0,!0);b=g(f,b);c.dispatchEvent?c.dispatchEvent(b):c.fireEvent(e,b)}else if(c.hcEvents){b.target||g(b,{preventDefault:function(){b.defaultPrevented=!0},target:c,type:e});f=[];for(var q=c,d=!1;q.hcEvents;)Object.hasOwnProperty.call(q,"hcEvents")&&q.hcEvents[e]&&
18
- (f.length&&(d=!0),f.unshift.apply(f,q.hcEvents[e])),q=Object.getPrototypeOf(q);d&&f.sort(function(c,e){return c.order-e.order});f.forEach(function(e){!1===e.fn.call(c,b)&&b.preventDefault()})}n&&!b.defaultPrevented&&n.call(c,b)}var E=a.charts,m=a.doc,q=a.win;(r||(r={})).messages=[];var e;Math.easeInOutSine=function(c){return-.5*(Math.cos(Math.PI*c)-1)};var c=Array.prototype.find?function(c,e){return c.find(e)}:function(c,e){var b,n=c.length;for(b=0;b<n;b++)if(e(c[b],b))return c[b]};B({map:"map",each:"forEach",
19
- grep:"filter",reduce:"reduce",some:"some"},function(c,e){a[e]=function(b){var n;r(32,!1,void 0,(n={},n["Highcharts."+e]="use Array."+c,n));return Array.prototype[c].apply(b,[].slice.call(arguments,1))}});var n,C=function(){var c=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"highcharts-"+(n?"":c)+e++}}();q.jQuery&&(q.jQuery.fn.highcharts=function(){var c=[].slice.call(arguments);if(this[0])return c[0]?(new (a[z(c[0])?c.shift():"Chart"])(this[0],c[0],c[1]),this):E[b(this[0],
20
- "data-highcharts-chart")]});c={addEvent:function(c,e,b,n){void 0===n&&(n={});var f="function"===typeof c&&c.prototype||c;Object.hasOwnProperty.call(f,"hcEvents")||(f.hcEvents={});f=f.hcEvents;a.Point&&c instanceof a.Point&&c.series&&c.series.chart&&(c.series.chart.runTrackerClick=!0);var q=c.addEventListener||a.addEventListenerPolyfill;q&&q.call(c,e,b,a.supportsPassiveEvents?{passive:void 0===n.passive?-1!==e.indexOf("touch"):n.passive,capture:!1}:!1);f[e]||(f[e]=[]);f[e].push({fn:b,order:"number"===
21
- typeof n.order?n.order:Infinity});f[e].sort(function(c,e){return c.order-e.order});return function(){x(c,e,b)}},arrayMax:function(c){for(var e=c.length,b=c[0];e--;)c[e]>b&&(b=c[e]);return b},arrayMin:function(c){for(var e=c.length,b=c[0];e--;)c[e]<b&&(b=c[e]);return b},attr:b,clamp:function(c,e,b){return c>e?c<b?c:b:e},cleanRecursively:A,clearTimeout:function(c){d(c)&&clearTimeout(c)},correctFloat:G,createElement:J,css:k,defined:d,destroyObjectProperties:function(c,e){B(c,function(b,n){b&&b!==e&&
22
- b.destroy&&b.destroy();delete c[n]})},discardElement:function(c){e||(e=J("div"));c&&e.appendChild(c);e.innerHTML=""},erase:function(c,e){for(var b=c.length;b--;)if(c[b]===e){c.splice(b,1);break}},error:r,extend:g,extendClass:function(c,e){var b=function(){};b.prototype=new c;g(b.prototype,e);return b},find:c,fireEvent:u,getMagnitude:function(c){return Math.pow(10,Math.floor(Math.log(c)/Math.LN10))},getNestedProperty:function(c,e){for(c=c.split(".");c.length&&d(e);){var b=c.shift();if("undefined"===
23
- typeof b||"__proto__"===b)return;e=e[b];if(!d(e)||"function"===typeof e||"number"===typeof e.nodeType||e===q)return}return e},getStyle:f,inArray:function(c,e,b){r(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return e.indexOf(c,b)},isArray:w,isClass:l,isDOMElement:t,isFunction:function(c){return"function"===typeof c},isNumber:h,isObject:D,isString:z,keys:function(c){r(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(c)},merge:function(){var c,e=arguments,b={},n=function(c,
24
- e){"object"!==typeof c&&(c={});B(e,function(b,N){"__proto__"!==N&&"constructor"!==N&&(!D(b,!0)||l(b)||t(b)?c[N]=e[N]:c[N]=n(c[N]||{},b))});return c};!0===e[0]&&(b=e[1],e=Array.prototype.slice.call(e,2));var f=e.length;for(c=0;c<f;c++)b=n(b,e[c]);return b},normalizeTickInterval:function(c,e,b,n,f){var q=c;b=p(b,1);var m=c/b;e||(e=f?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===n&&(1===b?e=e.filter(function(c){return 0===c%1}):.1>=b&&(e=[1/b])));for(n=0;n<e.length&&!(q=e[n],f&&q*b>=c||!f&&m<=(e[n]+
25
- (e[n+1]||e[n]))/2);n++);return q=G(q*b,-Math.round(Math.log(.001)/Math.LN10))},objectEach:B,offset:function(c){var e=m.documentElement;c=c.parentElement||c.parentNode?c.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:c.top+(q.pageYOffset||e.scrollTop)-(e.clientTop||0),left:c.left+(q.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:c.width,height:c.height}},pad:function(c,e,b){return Array((e||2)+1-String(c).replace("-","").length).join(b||"0")+c},pick:p,pInt:y,relativeLength:function(c,
26
- e,b){return/%$/.test(c)?e*parseFloat(c)/100+(b||0):parseFloat(c)},removeEvent:x,splat:function(c){return w(c)?c:[c]},stableSort:function(c,e){var b=c.length,n,f;for(f=0;f<b;f++)c[f].safeI=f;c.sort(function(c,b){n=e(c,b);return 0===n?c.safeI-b.safeI:n});for(f=0;f<b;f++)delete c[f].safeI},syncTimeout:function(c,e,b){if(0<e)return setTimeout(c,e,b);c.call(0,b);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5},uniqueKey:C,useSerialIds:function(c){return n=
27
- p(c,n)},wrap:function(c,e,b){var n=c[e];c[e]=function(){var c=Array.prototype.slice.call(arguments),e=arguments,f=this;f.proceed=function(){n.apply(f,arguments.length?arguments:e)};c.unshift(n);c=b.apply(this,c);f.proceed=null;return c}}};"";return c});I(a,"Core/Color/Palette.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),backgroundColor:"#ffffff",neutralColor100:"#000000",neutralColor80:"#333333",neutralColor60:"#666666",
28
- neutralColor40:"#999999",neutralColor20:"#cccccc",neutralColor10:"#e6e6e6",neutralColor5:"#f2f2f2",neutralColor3:"#f7f7f7",highlightColor100:"#003399",highlightColor80:"#335cad",highlightColor60:"#6685c2",highlightColor20:"#ccd6eb",highlightColor10:"#e6ebf5",positiveColor:"#06b535",negativeColor:"#f21313"}});I(a,"Core/Chart/ChartDefaults.js",[a["Core/Color/Palette.js"]],function(a){return{panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,
29
- spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:a.highlightColor80,backgroundColor:a.backgroundColor,plotBorderColor:a.neutralColor20}});I(a,"Core/Color/Color.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v){var r=v.isNumber,y=v.merge,z=v.pInt;v=function(){function w(r){this.rgba=[NaN,NaN,NaN,NaN];this.input=r;var t=a.Color;if(t&&t!==w)return new t(r);if(!(this instanceof w))return new w(r);
30
- this.init(r)}w.parse=function(a){return a?new w(a):w.None};w.prototype.init=function(a){var t;if("object"===typeof a&&"undefined"!==typeof a.stops)this.stops=a.stops.map(function(b){return new w(b[1])});else if("string"===typeof a){this.input=a=w.names[a.toLowerCase()]||a;if("#"===a.charAt(0)){var l=a.length;var h=parseInt(a.substr(1),16);7===l?t=[(h&16711680)>>16,(h&65280)>>8,h&255,1]:4===l&&(t=[(h&3840)>>4|(h&3840)>>8,(h&240)>>4|h&240,(h&15)<<4|h&15,1])}if(!t)for(h=w.parsers.length;h--&&!t;){var d=
31
- w.parsers[h];(l=d.regex.exec(a))&&(t=d.parse(l))}}t&&(this.rgba=t)};w.prototype.get=function(a){var t=this.input,l=this.rgba;if("object"===typeof t&&"undefined"!==typeof this.stops){var h=y(t);h.stops=[].slice.call(h.stops);this.stops.forEach(function(d,b){h.stops[b]=[h.stops[b][0],d.get(a)]});return h}return l&&r(l[0])?"rgb"===a||!a&&1===l[3]?"rgb("+l[0]+","+l[1]+","+l[2]+")":"a"===a?""+l[3]:"rgba("+l.join(",")+")":t};w.prototype.brighten=function(a){var t=this.rgba;if(this.stops)this.stops.forEach(function(h){h.brighten(a)});
32
- else if(r(a)&&0!==a)for(var l=0;3>l;l++)t[l]+=z(255*a),0>t[l]&&(t[l]=0),255<t[l]&&(t[l]=255);return this};w.prototype.setOpacity=function(a){this.rgba[3]=a;return this};w.prototype.tweenTo=function(a,t){var l=this.rgba,h=a.rgba;if(!r(l[0])||!r(h[0]))return a.input||"none";a=1!==h[3]||1!==l[3];return(a?"rgba(":"rgb(")+Math.round(h[0]+(l[0]-h[0])*(1-t))+","+Math.round(h[1]+(l[1]-h[1])*(1-t))+","+Math.round(h[2]+(l[2]-h[2])*(1-t))+(a?","+(h[3]+(l[3]-h[3])*(1-t)):"")+")"};w.names={white:"#ffffff",black:"#000000"};
33
- w.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(a){return[z(a[1]),z(a[2]),z(a[3]),parseFloat(a[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(a){return[z(a[1]),z(a[2]),z(a[3]),1]}}];w.None=new w("");return w}();"";return v});I(a,"Core/Time.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v){var r=a.win,y=v.defined,z=v.error,w=v.extend,D=v.isObject,t=v.merge,
34
- l=v.objectEach,h=v.pad,d=v.pick,b=v.splat,g=v.timeUnits,p=a.isSafari&&r.Intl&&r.Intl.DateTimeFormat.prototype.formatRange,k=a.isSafari&&r.Intl&&!r.Intl.DateTimeFormat.prototype.formatRange;v=function(){function J(b){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=r.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(b)}J.prototype.get=function(b,f){if(this.variableTimezone||this.timezoneOffset){var g=f.getTime(),d=g-this.getTimezoneOffset(f);f.setTime(d);b=f["getUTC"+
35
- b]();f.setTime(g);return b}return this.useUTC?f["getUTC"+b]():f["get"+b]()};J.prototype.set=function(b,f,g){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===b||"Seconds"===b||"Minutes"===b&&0===this.getTimezoneOffset(f)%36E5)return f["setUTC"+b](g);var d=this.getTimezoneOffset(f);d=f.getTime()-d;f.setTime(d);f["setUTC"+b](g);b=this.getTimezoneOffset(f);d=f.getTime()+b;return f.setTime(d)}return this.useUTC||p&&"FullYear"===b?f["setUTC"+b](g):f["set"+b](g)};J.prototype.update=function(b){var f=
36
- d(b&&b.useUTC,!0);this.options=b=t(!0,this.options||{},b);this.Date=b.Date||r.Date||Date;this.timezoneOffset=(this.useUTC=f)&&b.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=f&&!(!b.getTimezoneOffset&&!b.timezone)};J.prototype.makeTime=function(b,f,g,p,u,h){if(this.useUTC){var m=this.Date.UTC.apply(0,arguments);var q=this.getTimezoneOffset(m);m+=q;var e=this.getTimezoneOffset(m);q!==e?m+=e-q:q-36E5!==this.getTimezoneOffset(m-36E5)||k||(m-=36E5)}else m=(new this.Date(b,
37
- f,d(g,1),d(p,0),d(u,0),d(h,0))).getTime();return m};J.prototype.timezoneOffsetFunction=function(){var b=this,f=this.options,g=f.moment||r.moment;if(!this.useUTC)return function(b){return 6E4*(new Date(b.toString())).getTimezoneOffset()};if(f.timezone){if(g)return function(b){return 6E4*-g.tz(b,f.timezone).utcOffset()};z(25)}return this.useUTC&&f.getTimezoneOffset?function(b){return 6E4*f.getTimezoneOffset(b.valueOf())}:function(){return 6E4*(b.timezoneOffset||0)}};J.prototype.dateFormat=function(b,
38
- f,g){if(!y(f)||isNaN(f))return a.defaultOptions.lang&&a.defaultOptions.lang.invalidDate||"";b=d(b,"%Y-%m-%d %H:%M:%S");var k=this,u=new this.Date(f),p=this.get("Hours",u),m=this.get("Day",u),q=this.get("Date",u),e=this.get("Month",u),c=this.get("FullYear",u),n=a.defaultOptions.lang,C=n&&n.weekdays,B=n&&n.shortWeekdays;u=w({a:B?B[m]:C[m].substr(0,3),A:C[m],d:h(q),e:h(q,2," "),w:m,b:n.shortMonths[e],B:n.months[e],m:h(e+1),o:e+1,y:c.toString().substr(2,2),Y:c,H:h(p),k:p,I:h(p%12||12),l:p%12||12,M:h(this.get("Minutes",
39
- u)),p:12>p?"AM":"PM",P:12>p?"am":"pm",S:h(u.getSeconds()),L:h(Math.floor(f%1E3),3)},a.dateFormats);l(u,function(c,e){for(;-1!==b.indexOf("%"+e);)b=b.replace("%"+e,"function"===typeof c?c.call(k,f):c)});return g?b.substr(0,1).toUpperCase()+b.substr(1):b};J.prototype.resolveDTLFormat=function(g){return D(g,!0)?g:(g=b(g),{main:g[0],from:g[1],to:g[2]})};J.prototype.getTimeTicks=function(b,f,k,p){var u=this,h=[],m={},q=new u.Date(f),e=b.unitRange,c=b.count||1,n;p=d(p,1);if(y(f)){u.set("Milliseconds",q,
40
- e>=g.second?0:c*Math.floor(u.get("Milliseconds",q)/c));e>=g.second&&u.set("Seconds",q,e>=g.minute?0:c*Math.floor(u.get("Seconds",q)/c));e>=g.minute&&u.set("Minutes",q,e>=g.hour?0:c*Math.floor(u.get("Minutes",q)/c));e>=g.hour&&u.set("Hours",q,e>=g.day?0:c*Math.floor(u.get("Hours",q)/c));e>=g.day&&u.set("Date",q,e>=g.month?1:Math.max(1,c*Math.floor(u.get("Date",q)/c)));if(e>=g.month){u.set("Month",q,e>=g.year?0:c*Math.floor(u.get("Month",q)/c));var C=u.get("FullYear",q)}e>=g.year&&u.set("FullYear",
41
- q,C-C%c);e===g.week&&(C=u.get("Day",q),u.set("Date",q,u.get("Date",q)-C+p+(C<p?-7:0)));C=u.get("FullYear",q);p=u.get("Month",q);var B=u.get("Date",q),x=u.get("Hours",q);f=q.getTime();!u.variableTimezone&&u.useUTC||!y(k)||(n=k-f>4*g.month||u.getTimezoneOffset(f)!==u.getTimezoneOffset(k));f=q.getTime();for(q=1;f<k;)h.push(f),f=e===g.year?u.makeTime(C+q*c,0):e===g.month?u.makeTime(C,p+q*c):!n||e!==g.day&&e!==g.week?n&&e===g.hour&&1<c?u.makeTime(C,p,B,x+q*c):f+e*c:u.makeTime(C,p,B+q*c*(e===g.day?1:7)),
42
- q++;h.push(f);e<=g.hour&&1E4>h.length&&h.forEach(function(c){0===c%18E5&&"000000000"===u.dateFormat("%H%M%S%L",c)&&(m[c]="day")})}h.info=w(b,{higherRanks:m,totalRange:e*c});return h};J.prototype.getDateFormat=function(b,f,d,k){var u=this.dateFormat("%m-%d %H:%M:%S.%L",f),p={millisecond:15,second:12,minute:9,hour:6,day:3},m="millisecond";for(q in g){if(b===g.week&&+this.dateFormat("%w",f)===d&&"00:00:00.000"===u.substr(6)){var q="week";break}if(g[q]>b){q=m;break}if(p[q]&&u.substr(p[q])!=="01-01 00:00:00.000".substr(p[q]))break;
43
- "week"!==q&&(m=q)}if(q)var e=this.resolveDTLFormat(k[q]).main;return e};return J}();"";return v});I(a,"Core/DefaultOptions.js",[a["Core/Chart/ChartDefaults.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Time.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w){v=v.parse;var r=w.merge,t={colors:y.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),
44
- shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:a,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},
45
- caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:y.neutralColor80}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:y.neutralColor40,borderRadius:0,navigation:{activeColor:y.highlightColor100,inactiveColor:y.neutralColor20},itemStyle:{color:y.neutralColor80,cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},
46
- itemHoverStyle:{color:y.neutralColor100},itemHiddenStyle:{color:y.neutralColor20},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:y.backgroundColor,opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:A.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",
47
- second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:A.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:v(y.neutralColor3).setOpacity(.85).get(),borderWidth:1,
48
- shadow:!0,stickOnContact:!1,style:{color:y.neutralColor80,cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:y.neutralColor40,fontSize:"9px"},text:"Highcharts.com"}};t.chart.styledMode=!1;"";var l=new z(r(t.global,t.time));a={defaultOptions:t,defaultTime:l,getOptions:function(){return t},setOptions:function(h){r(!0,t,h);if(h.time||h.global)A.time?
49
- A.time.update(r(t.global,t.time,h.global,h.time)):A.time=l;return t}};"";return a});I(a,"Core/Animation/Fx.js",[a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v,A){var r=a.parse,z=v.win,w=A.isNumber,D=A.objectEach;return function(){function a(a,h,d){this.pos=NaN;this.options=h;this.elem=a;this.prop=d}a.prototype.dSetter=function(){var a=this.paths,h=a&&a[0];a=a&&a[1];var d=this.now||0,b=[];if(1!==d&&h&&a)if(h.length===a.length&&1>d)for(var g=0;g<a.length;g++){for(var p=
50
- h[g],k=a[g],J=[],G=0;G<k.length;G++){var f=p[G],B=k[G];w(f)&&w(B)&&("A"!==k[0]||4!==G&&5!==G)?J[G]=f+d*(B-f):J[G]=B}b.push(J)}else b=a;else b=this.toD||[];this.elem.attr("d",b,void 0,!0)};a.prototype.update=function(){var a=this.elem,h=this.prop,d=this.now,b=this.options.step;if(this[h+"Setter"])this[h+"Setter"]();else a.attr?a.element&&a.attr(h,d,null,!0):a.style[h]=d+this.unit;b&&b.call(a,d,this)};a.prototype.run=function(l,h,d){var b=this,g=b.options,p=function(g){return p.stopped?!1:b.step(g)},
51
- k=z.requestAnimationFrame||function(b){setTimeout(b,13)},J=function(){for(var b=0;b<a.timers.length;b++)a.timers[b]()||a.timers.splice(b--,1);a.timers.length&&k(J)};l!==h||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=l,this.end=h,this.unit=d,this.now=this.start,this.pos=0,p.elem=this.elem,p.prop=this.prop,p()&&1===a.timers.push(p)&&k(J)):(delete g.curAnim[this.prop],g.complete&&0===Object.keys(g.curAnim).length&&g.complete.call(this.elem))};a.prototype.step=function(a){var h=
52
- +new Date,d=this.options,b=this.elem,g=d.complete,p=d.duration,k=d.curAnim;if(b.attr&&!b.element)a=!1;else if(a||h>=p+this.startTime){this.now=this.end;this.pos=1;this.update();var J=k[this.prop]=!0;D(k,function(b){!0!==b&&(J=!1)});J&&g&&g.call(b);a=!1}else this.pos=d.easing((h-this.startTime)/p),this.now=this.start+(this.end-this.start)*this.pos,this.update(),a=!0;return a};a.prototype.initPath=function(a,h,d){function b(b,f){for(;b.length<x;){var m=b[0],q=f[x-b.length];q&&"M"===m[0]&&(b[0]="C"===
53
- q[0]?["C",m[1],m[2],m[1],m[2],m[1],m[2]]:["L",m[1],m[2]]);b.unshift(m);J&&(m=b.pop(),b.push(b[b.length-1],m))}}function g(b,f){for(;b.length<x;)if(f=b[Math.floor(b.length/G)-1].slice(),"C"===f[0]&&(f[1]=f[5],f[2]=f[6]),J){var m=b[Math.floor(b.length/G)].slice();b.splice(b.length/2,0,f,m)}else b.push(f)}var p=a.startX,k=a.endX;d=d.slice();var J=a.isArea,G=J?2:1;h=h&&h.slice();if(!h)return[d,d];if(p&&k&&k.length){for(a=0;a<p.length;a++)if(p[a]===k[0]){var f=a;break}else if(p[0]===k[k.length-p.length+
54
- a]){f=a;var B=!0;break}else if(p[p.length-1]===k[k.length-p.length+a]){f=p.length-a;break}"undefined"===typeof f&&(h=[])}if(h.length&&w(f)){var x=d.length+f*G;B?(b(h,d),g(d,h)):(b(d,h),g(h,d))}return[h,d]};a.prototype.fillSetter=function(){a.prototype.strokeSetter.apply(this,arguments)};a.prototype.strokeSetter=function(){this.elem.attr(this.prop,r(this.start).tweenTo(r(this.end),this.pos),null,!0)};a.timers=[];return a}()});I(a,"Core/Animation/AnimationUtilities.js",[a["Core/Animation/Fx.js"],a["Core/Utilities.js"]],
55
- function(a,v){function r(b){return l(b)?h({duration:500,defer:0},b):{duration:b?500:0,defer:0}}function y(b,d){for(var g=a.timers.length;g--;)a.timers[g].elem!==b||d&&d!==a.timers[g].prop||(a.timers[g].stopped=!0)}var z=v.defined,w=v.getStyle,D=v.isArray,t=v.isNumber,l=v.isObject,h=v.merge,d=v.objectEach,b=v.pick;return{animate:function(b,p,k){var g,G="",f,B;if(!l(k)){var x=arguments;k={duration:x[2],easing:x[3],complete:x[4]}}t(k.duration)||(k.duration=400);k.easing="function"===typeof k.easing?
56
- k.easing:Math[k.easing]||Math.easeInOutSine;k.curAnim=h(p);d(p,function(d,h){y(b,h);B=new a(b,k,h);f=void 0;"d"===h&&D(p.d)?(B.paths=B.initPath(b,b.pathArray,p.d),B.toD=p.d,g=0,f=1):b.attr?g=b.attr(h):(g=parseFloat(w(b,h))||0,"opacity"!==h&&(G="px"));f||(f=d);"string"===typeof f&&f.match("px")&&(f=f.replace(/px/g,""));B.run(g,f,G)})},animObject:r,getDeferredAnimation:function(b,d,k){var g=r(d),p=0,f=0;(k?[k]:b.series).forEach(function(b){b=r(b.options.animation);p=d&&z(d.defer)?g.defer:Math.max(p,
57
- b.duration+b.defer);f=Math.min(g.duration,b.duration)});b.renderer.forExport&&(p=0);return{defer:Math.max(0,p-f),duration:Math.min(p,f)}},setAnimation:function(g,d){d.renderer.globalAnimation=b(g,d.options.chart.animation,!0)},stop:y}});I(a,"Core/Renderer/HTML/AST.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v){var r=a.SVG_NS,y=v.attr,z=v.createElement,w=v.discardElement,D=v.error,t=v.isString,l=v.objectEach,h=v.splat;try{var d=!!(new DOMParser).parseFromString("","text/html")}catch(b){d=
58
- !1}v=function(){function b(b){this.nodes="string"===typeof b?this.parseMarkup(b):b}b.filterUserAttributes=function(g){l(g,function(d,k){var p=!0;-1===b.allowedAttributes.indexOf(k)&&(p=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(k)&&(p=t(d)&&b.allowedReferences.some(function(b){return 0===d.indexOf(b)}));p||(D("Highcharts warning: Invalid attribute '"+k+"' in config"),delete g[k])});return g};b.setElementHTML=function(g,d){g.innerHTML="";d&&(new b(d)).addToDOM(g)};b.prototype.addToDOM=
59
- function(d){function g(d,p){var k;h(d).forEach(function(f){var d=f.tagName,h=f.textContent?a.doc.createTextNode(f.textContent):void 0;if(d)if("#text"===d)var u=h;else if(-1!==b.allowedTags.indexOf(d)){d=a.doc.createElementNS("svg"===d?r:p.namespaceURI||r,d);var E=f.attributes||{};l(f,function(b,f){"tagName"!==f&&"attributes"!==f&&"children"!==f&&"textContent"!==f&&(E[f]=b)});y(d,b.filterUserAttributes(E));h&&d.appendChild(h);g(f.children||[],d);u=d}else D("Highcharts warning: Invalid tagName '"+d+
60
- "' in config");u&&p.appendChild(u);k=u});return k}return g(this.nodes,d)};b.prototype.parseMarkup=function(b){var g=[];b=b.trim();if(d)b=(new DOMParser).parseFromString(b,"text/html");else{var k=z("div");k.innerHTML=b;b={body:k}}var h=function(b,f){var d=b.nodeName.toLowerCase(),g={tagName:d};"#text"===d&&(g.textContent=b.textContent||"");if(d=b.attributes){var k={};[].forEach.call(d,function(b){k[b.name]=b.value});g.attributes=k}if(b.childNodes.length){var p=[];[].forEach.call(b.childNodes,function(b){h(b,
61
- p)});p.length&&(g.children=p)}f.push(g)};[].forEach.call(b.body.childNodes,function(b){return h(b,g)});k&&w(k);return g};b.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength type valign width x x1 x2 y y1 y2 zIndex".split(" ");
62
- b.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");b.allowedTags="a b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" ");return b}();"";return v});I(a,"Core/FormatUtilities.js",[a["Core/DefaultOptions.js"],
63
- a["Core/Utilities.js"]],function(a,v){function r(h,d,b,g){h=+h||0;d=+d;var p=y.lang,k=(h.toString().split(".")[1]||"").split("e")[0].length,a=h.toString().split("e"),G=d;if(-1===d)d=Math.min(k,20);else if(!D(d))d=2;else if(d&&a[1]&&0>a[1]){var f=d+ +a[1];0<=f?(a[0]=(+a[0]).toExponential(f).split("e")[0],d=f):(a[0]=a[0].split(".")[0]||0,h=20>d?(a[0]*Math.pow(10,a[1])).toFixed(d):0,a[1]=0)}f=(Math.abs(a[1]?a[0]:h)+Math.pow(10,-Math.max(d,k)-1)).toFixed(d);k=String(l(f));var B=3<k.length?k.length%3:
64
- 0;b=t(b,p.decimalPoint);g=t(g,p.thousandsSep);h=(0>h?"-":"")+(B?k.substr(0,B)+g:"");h=0>+a[1]&&!G?"0":h+k.substr(B).replace(/(\d{3})(?=\d)/g,"$1"+g);d&&(h+=b+f.slice(-d));a[1]&&0!==+h&&(h+="e"+a[1]);return h}var y=a.defaultOptions,z=a.defaultTime,w=v.getNestedProperty,D=v.isNumber,t=v.pick,l=v.pInt;return{dateFormat:function(a,d,b){return z.dateFormat(a,d,b)},format:function(a,d,b){var g="{",p=!1,k=/f$/,h=/\.([0-9])/,t=y.lang,f=b&&b.time||z;b=b&&b.numberFormatter||r;for(var B=[];a;){var x=a.indexOf(g);
65
- if(-1===x)break;var u=a.slice(0,x);if(p){u=u.split(":");g=w(u.shift()||"",d);if(u.length&&"number"===typeof g)if(u=u.join(":"),k.test(u)){var E=parseInt((u.match(h)||["","-1"])[1],10);null!==g&&(g=b(g,E,t.decimalPoint,-1<u.indexOf(",")?t.thousandsSep:""))}else g=f.dateFormat(u,g);B.push(g)}else B.push(u);a=a.slice(x+1);g=(p=!p)?"}":"{"}B.push(a);return B.join("")},numberFormat:r}});I(a,"Core/Renderer/RendererUtilities.js",[a["Core/Utilities.js"]],function(a){var r=a.clamp,A=a.pick,y=a.stableSort,
66
- z;(function(a){function w(a,l,h){var d=a,b=d.reducedLen||l,g=function(b,f){return(f.rank||0)-(b.rank||0)},p=function(b,f){return b.target-f.target},k,J=!0,G=[],f=0;for(k=a.length;k--;)f+=a[k].size;if(f>b){y(a,g);for(f=k=0;f<=b;)f+=a[k].size,k++;G=a.splice(k-1,a.length)}y(a,p);for(a=a.map(function(b){return{size:b.size,targets:[b.target],align:A(b.align,.5)}});J;){for(k=a.length;k--;)b=a[k],g=(Math.min.apply(0,b.targets)+Math.max.apply(0,b.targets))/2,b.pos=r(g-b.size*b.align,0,l-b.size);k=a.length;
67
- for(J=!1;k--;)0<k&&a[k-1].pos+a[k-1].size>a[k].pos&&(a[k-1].size+=a[k].size,a[k-1].targets=a[k-1].targets.concat(a[k].targets),a[k-1].align=.5,a[k-1].pos+a[k-1].size>l&&(a[k-1].pos=l-a[k-1].size),a.splice(k,1),J=!0)}d.push.apply(d,G);k=0;a.some(function(b){var f=0;return(b.targets||[]).some(function(){d[k].pos=b.pos+f;if("undefined"!==typeof h&&Math.abs(d[k].pos-d[k].target)>h)return d.slice(0,k+1).forEach(function(b){return delete b.pos}),d.reducedLen=(d.reducedLen||l)-.1*l,d.reducedLen>.1*l&&w(d,
68
- l,h),!0;f+=d[k].size;k++;return!1})});y(d,p);return d}a.distribute=w})(z||(z={}));return z});I(a,"Core/Renderer/SVG/SVGElement.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Renderer/HTML/AST.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w){var r=a.animate,t=a.animObject,l=a.stop,h=y.deg2rad,d=y.doc,b=y.noop,g=y.svg,p=y.SVG_NS,k=y.win,J=w.addEvent,G=w.attr,f=w.createElement,B=w.css,x=w.defined,u=w.erase,E=w.extend,
69
- m=w.fireEvent,q=w.isArray,e=w.isFunction,c=w.isNumber,n=w.isString,C=w.merge,H=w.objectEach,L=w.pick,F=w.pInt,W=w.syncTimeout,S=w.uniqueKey;a=function(){function a(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=p;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}a.prototype._defaultGetter=function(c){c=L(this[c+"Value"],this[c],this.element?this.element.getAttribute(c):null,0);/^[\-0-9\.]+$/.test(c)&&(c=parseFloat(c));
70
- return c};a.prototype._defaultSetter=function(c,b,e){e.setAttribute(b,c)};a.prototype.add=function(c){var b=this.renderer,e=this.element;c&&(this.parentGroup=c);this.parentInverted=c&&c.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&b.buildText(this);this.added=!0;if(!c||c.handleZ||this.zIndex)var n=this.zIndexSetter();n||(c?c.element:b.box).appendChild(e);if(this.onAdd)this.onAdd();return this};a.prototype.addClass=function(c,b){var e=b?"":this.attr("class")||"";c=(c||
71
- "").split(/ /g).reduce(function(c,b){-1===e.indexOf(b)&&c.push(b);return c},e?[e]:[]).join(" ");c!==e&&this.attr("class",c);return this};a.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};a.prototype.align=function(c,b,e){var f={},a=this.renderer,N=a.alignedObjects,d,q,m;if(c){if(this.alignOptions=c,this.alignByTranslate=b,!e||n(e))this.alignTo=d=e||"renderer",u(N,this),N.push(this),e=void 0}else c=this.alignOptions,b=this.alignByTranslate,d=this.alignTo;
72
- e=L(e,a[d],"scrollablePlotBox"===d?a.plotBox:void 0,a);d=c.align;var g=c.verticalAlign;a=(e.x||0)+(c.x||0);N=(e.y||0)+(c.y||0);"right"===d?q=1:"center"===d&&(q=2);q&&(a+=(e.width-(c.width||0))/q);f[b?"translateX":"x"]=Math.round(a);"bottom"===g?m=1:"middle"===g&&(m=2);m&&(N+=(e.height-(c.height||0))/m);f[b?"translateY":"y"]=Math.round(N);this[this.placed?"animate":"attr"](f);this.placed=!0;this.alignAttr=f;return this};a.prototype.alignSetter=function(c){var b={left:"start",center:"middle",right:"end"};
73
- b[c]&&(this.alignValue=c,this.element.setAttribute("text-anchor",b[c]))};a.prototype.animate=function(c,b,e){var n=this,f=t(L(b,this.renderer.globalAnimation,!0));b=f.defer;L(d.hidden,d.msHidden,d.webkitHidden,!1)&&(f.duration=0);0!==f.duration?(e&&(f.complete=e),W(function(){n.element&&r(n,c,f)},b)):(this.attr(c,void 0,e),H(c,function(c,b){f.step&&f.step.call(this,c,{prop:b,pos:1,elem:this})},this));return this};a.prototype.applyTextOutline=function(c){var b=this.element;-1!==c.indexOf("contrast")&&
74
- (c=c.replace(/contrast/g,this.renderer.getContrast(b.style.fill)));var e=c.split(" ");c=e[e.length-1];if((e=e[0])&&"none"!==e&&y.svg){this.fakeTS=!0;this.ySetter=this.xSetter;e=e.replace(/(^[\d\.]+)(.*?)$/g,function(c,b,e){return 2*Number(b)+e});this.removeTextOutline();var n=d.createElementNS(p,"tspan");G(n,{"class":"highcharts-text-outline",fill:c,stroke:c,"stroke-width":e,"stroke-linejoin":"round"});[].forEach.call(b.childNodes,function(c){var b=c.cloneNode(!0);b.removeAttribute&&["fill","stroke",
75
- "stroke-width","stroke"].forEach(function(c){return b.removeAttribute(c)});n.appendChild(b)});var f=d.createElementNS(p,"tspan");f.textContent="\u200b";["x","y"].forEach(function(c){var e=b.getAttribute(c);e&&f.setAttribute(c,e)});n.appendChild(f);b.insertBefore(n,b.firstChild)}};a.prototype.attr=function(c,b,e,n){var f=this.element,a=this.symbolCustomAttribs,d,N=this,q,M;if("string"===typeof c&&"undefined"!==typeof b){var m=c;c={};c[m]=b}"string"===typeof c?N=(this[c+"Getter"]||this._defaultGetter).call(this,
76
- c,f):(H(c,function(b,e){q=!1;n||l(this,e);this.symbolName&&-1!==a.indexOf(e)&&(d||(this.symbolAttr(c),d=!0),q=!0);!this.rotation||"x"!==e&&"y"!==e||(this.doTransform=!0);q||(M=this[e+"Setter"]||this._defaultSetter,M.call(this,b,e,f),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(e)&&this.updateShadows(e,b,M))},this),this.afterSetters());e&&e.call(this);return N};a.prototype.clip=function(c){return this.attr("clip-path",c?"url("+this.renderer.url+"#"+c.id+
77
- ")":"none")};a.prototype.crisp=function(c,e){e=e||c.strokeWidth||0;var b=Math.round(e)%2/2;c.x=Math.floor(c.x||this.x||0)+b;c.y=Math.floor(c.y||this.y||0)+b;c.width=Math.floor((c.width||this.width||0)-2*b);c.height=Math.floor((c.height||this.height||0)-2*b);x(c.strokeWidth)&&(c.strokeWidth=e);return c};a.prototype.complexColor=function(c,e,b){var n=this.renderer,f,a,d,N,g,k,p,u,h,B,E=[],F;m(this.renderer,"complexColor",{args:arguments},function(){c.radialGradient?a="radialGradient":c.linearGradient&&
78
- (a="linearGradient");if(a){d=c[a];g=n.gradients;k=c.stops;h=b.radialReference;q(d)&&(c[a]=d={x1:d[0],y1:d[1],x2:d[2],y2:d[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===a&&h&&!x(d.gradientUnits)&&(N=d,d=C(d,n.getRadialAttr(h,N),{gradientUnits:"userSpaceOnUse"}));H(d,function(c,b){"id"!==b&&E.push(b,c)});H(k,function(c){E.push(c)});E=E.join(",");if(g[E])B=g[E].attr("id");else{d.id=B=S();var m=g[E]=n.createElement(a).attr(d).add(n.defs);m.radAttr=N;m.stops=[];k.forEach(function(c){0===c[1].indexOf("rgba")?
79
- (f=A.parse(c[1]),p=f.get("rgb"),u=f.get("a")):(p=c[1],u=1);c=n.createElement("stop").attr({offset:c[0],"stop-color":p,"stop-opacity":u}).add(m);m.stops.push(c)})}F="url("+n.url+"#"+B+")";b.setAttribute(e,F);b.gradient=E;c.toString=function(){return F}}})};a.prototype.css=function(c){var b=this.styles,e={},n=this.element,f=["textOutline","textOverflow","width"],a="",d=!b;c&&c.color&&(c.fill=c.color);b&&H(c,function(c,n){b&&b[n]!==c&&(e[n]=c,d=!0)});if(d){b&&(c=E(b,e));if(c)if(null===c.width||"auto"===
80
- c.width)delete this.textWidth;else if("text"===n.nodeName.toLowerCase()&&c.width)var q=this.textWidth=F(c.width);this.styles=c;q&&!g&&this.renderer.forExport&&delete c.width;if(n.namespaceURI===this.SVG_NS){var m=function(c,b){return"-"+b.toLowerCase()};H(c,function(c,b){-1===f.indexOf(b)&&(a+=b.replace(/([A-Z])/g,m)+":"+c+";")});a&&G(n,"style",a)}else B(n,c);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),c&&c.textOutline&&this.applyTextOutline(c.textOutline))}return this};
81
- a.prototype.dashstyleSetter=function(c){var b=this["stroke-width"];"inherit"===b&&(b=1);if(c=c&&c.toLowerCase()){var e=c.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(c=e.length;c--;)e[c]=""+F(e[c])*L(b,NaN);c=e.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",c)}};a.prototype.destroy=
82
- function(){var c=this,b=c.element||{},e=c.renderer,n=b.ownerSVGElement,f=e.isSVG&&"SPAN"===b.nodeName&&c.parentGroup||void 0;b.onclick=b.onmouseout=b.onmouseover=b.onmousemove=b.point=null;l(c);if(c.clipPath&&n){var a=c.clipPath;[].forEach.call(n.querySelectorAll("[clip-path],[CLIP-PATH]"),function(c){-1<c.getAttribute("clip-path").indexOf(a.element.id)&&c.removeAttribute("clip-path")});c.clipPath=a.destroy()}if(c.stops){for(n=0;n<c.stops.length;n++)c.stops[n].destroy();c.stops.length=0;c.stops=void 0}c.safeRemoveChild(b);
83
- for(e.styledMode||c.destroyShadows();f&&f.div&&0===f.div.childNodes.length;)b=f.parentGroup,c.safeRemoveChild(f.div),delete f.div,f=b;c.alignTo&&u(e.alignedObjects,c);H(c,function(b,e){c[e]&&c[e].parentGroup===c&&c[e].destroy&&c[e].destroy();delete c[e]})};a.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(c){this.safeRemoveChild(c)},this);this.shadows=void 0};a.prototype.destroyTextPath=function(c,b){var e=c.getElementsByTagName("text")[0];if(e){if(e.removeAttribute("dx"),
84
- e.removeAttribute("dy"),b.element.setAttribute("id",""),this.textPathWrapper&&e.getElementsByTagName("textPath").length){for(c=this.textPathWrapper.element.childNodes;c.length;)e.appendChild(c[0]);e.removeChild(this.textPathWrapper.element)}}else if(c.getAttribute("dx")||c.getAttribute("dy"))c.removeAttribute("dx"),c.removeAttribute("dy");this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())};a.prototype.dSetter=function(c,b,e){q(c)&&("string"===typeof c[0]&&(c=this.renderer.pathToSegments(c)),
85
- this.pathArray=c,c=c.reduce(function(c,b,e){return b&&b.join?(e?c+" ":"")+b.join(" "):(b||"").toString()},""));/(NaN| {2}|^$)/.test(c)&&(c="M 0 0");this[b]!==c&&(e.setAttribute(b,c),this[b]=c)};a.prototype.fadeOut=function(c){var b=this;b.animate({opacity:0},{duration:L(c,150),complete:function(){b.attr({y:-9999}).hide()}})};a.prototype.fillSetter=function(c,b,e){"string"===typeof c?e.setAttribute(b,c):c&&this.complexColor(c,b,e)};a.prototype.getBBox=function(c,b){var n=this.renderer,f=this.element,
86
- d=this.styles,q=this.textStr,m=n.cache,g=n.cacheKeys,k=f.namespaceURI===this.SVG_NS;b=L(b,this.rotation,0);var p=n.styledMode?f&&a.prototype.getStyle.call(f,"font-size"):d&&d.fontSize,C;if(x(q)){var u=q.toString();-1===u.indexOf("<")&&(u=u.replace(/[0-9]/g,"0"));u+=["",b,p,this.textWidth,d&&d.textOverflow,d&&d.fontWeight].join()}u&&!c&&(C=m[u]);if(!C){if(k||n.forExport){try{var H=this.fakeTS&&function(c){var b=f.querySelector(".highcharts-text-outline");b&&B(b,{display:c})};e(H)&&H("none");C=f.getBBox?
87
- E({},f.getBBox()):{width:f.offsetWidth,height:f.offsetHeight};e(H)&&H("")}catch(Y){""}if(!C||0>C.width)C={width:0,height:0}}else C=this.htmlGetBBox();n.isSVG&&(c=C.width,n=C.height,k&&(C.height=n={"11px,17":14,"13px,20":16}[d&&d.fontSize+","+Math.round(n)]||n),b&&(d=b*h,C.width=Math.abs(n*Math.sin(d))+Math.abs(c*Math.cos(d)),C.height=Math.abs(n*Math.cos(d))+Math.abs(c*Math.sin(d))));if(u&&(""===q||0<C.height)){for(;250<g.length;)delete m[g.shift()];m[u]||g.push(u);m[u]=C}}return C};a.prototype.getStyle=
88
- function(c){return k.getComputedStyle(this.element||this,"").getPropertyValue(c)};a.prototype.hasClass=function(c){return-1!==(""+this.attr("class")).split(" ").indexOf(c)};a.prototype.hide=function(c){c?this.attr({y:-9999}):this.attr({visibility:"hidden"});return this};a.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};a.prototype.init=function(c,b){this.element="span"===b?f(b):d.createElementNS(this.SVG_NS,b);this.renderer=c;m(this,"afterInit")};a.prototype.invert=function(c){this.inverted=
89
- c;this.updateTransform();return this};a.prototype.on=function(c,b){var e=this.onEvents;if(e[c])e[c]();e[c]=J(this.element,c,b);return this};a.prototype.opacitySetter=function(c,b,e){this.opacity=c=Number(Number(c).toFixed(3));e.setAttribute(b,c)};a.prototype.removeClass=function(c){return this.attr("class",(""+this.attr("class")).replace(n(c)?new RegExp("(^| )"+c+"( |$)"):c," ").replace(/ +/g," ").trim())};a.prototype.removeTextOutline=function(){var c=this.element.querySelector("tspan.highcharts-text-outline");
90
- c&&this.safeRemoveChild(c)};a.prototype.safeRemoveChild=function(c){var b=c.parentNode;b&&b.removeChild(c)};a.prototype.setRadialReference=function(c){var b=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=c;b&&b.radAttr&&b.animate(this.renderer.getRadialAttr(c,b.radAttr));return this};a.prototype.setTextPath=function(e,n){var f=this.element,a=this.text?this.text.element:f,d={textAnchor:"text-anchor"},q=!1,m=this.textPathWrapper,g=!m;n=C(!0,{enabled:!0,
91
- attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},n);var k=v.filterUserAttributes(n.attributes);if(e&&n&&n.enabled){m&&null===m.element.parentNode?(g=!0,m=m.destroy()):m&&this.removeTextOutline.call(m.parentGroup);this.options&&this.options.padding&&(k.dx=-this.options.padding);m||(this.textPathWrapper=m=this.renderer.createElement("textPath"),q=!0);var u=m.element;(n=e.element.getAttribute("id"))||e.element.setAttribute("id",n=S());if(g)for(a.setAttribute("y",0),c(k.dx)&&a.setAttribute("x",
92
- -k.dx),e=[].slice.call(a.childNodes),g=0;g<e.length;g++){var p=e[g];p.nodeType!==Node.TEXT_NODE&&"tspan"!==p.nodeName||u.appendChild(p)}q&&m&&m.add({element:a});u.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+n);x(k.dy)&&(u.parentNode.setAttribute("dy",k.dy),delete k.dy);x(k.dx)&&(u.parentNode.setAttribute("dx",k.dx),delete k.dx);H(k,function(c,b){u.setAttribute(d[b]||b,c)});f.removeAttribute("transform");this.removeTextOutline.call(m);this.text&&!this.renderer.styledMode&&
93
- this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=b}else m&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(f,e),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};a.prototype.shadow=function(c,b,e){var n=[],f=this.element,a=this.oldShadowOptions,d={color:z.neutralColor100,offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},
94
- m=!1,q;!0===c?q=d:"object"===typeof c&&(q=E(d,c));q&&(q&&a&&H(q,function(c,b){c!==a[b]&&(m=!0)}),m&&this.destroyShadows(),this.oldShadowOptions=q);if(!q)this.destroyShadows();else if(!this.shadows){var g=q.opacity/q.width;var N=this.parentInverted?"translate("+q.offsetY+", "+q.offsetX+")":"translate("+q.offsetX+", "+q.offsetY+")";for(d=1;d<=q.width;d++){var k=f.cloneNode(!1);var C=2*q.width+1-2*d;G(k,{stroke:c.color||z.neutralColor100,"stroke-opacity":g*d,"stroke-width":C,transform:N,fill:"none"});
95
- k.setAttribute("class",(k.getAttribute("class")||"")+" highcharts-shadow");e&&(G(k,"height",Math.max(G(k,"height")-C,0)),k.cutHeight=C);b?b.element.appendChild(k):f.parentNode&&f.parentNode.insertBefore(k,f);n.push(k)}this.shadows=n}return this};a.prototype.show=function(c){return this.attr({visibility:c?"inherit":"visible"})};a.prototype.strokeSetter=function(c,b,e){this[b]=c;this.stroke&&this["stroke-width"]?(a.prototype.fillSetter.call(this,this.stroke,"stroke",e),e.setAttribute("stroke-width",
96
- this["stroke-width"]),this.hasStroke=!0):"stroke-width"===b&&0===c&&this.hasStroke?(e.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(e.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};a.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var c=this.getStyle("stroke-width"),b=0;if(c.indexOf("px")===c.length-2)b=F(c);else if(""!==c){var e=d.createElementNS(p,"rect");G(e,{width:c,"stroke-width":0});
97
- this.element.parentNode.appendChild(e);b=e.getBBox().width;e.parentNode.removeChild(e)}return b};a.prototype.symbolAttr=function(c){var b=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(e){b[e]=L(c[e],b[e])});b.attr({d:b.renderer.symbols[b.symbolName](b.x,b.y,b.width,b.height,b)})};a.prototype.textSetter=function(c){c!==this.textStr&&(delete this.textPxLength,this.textStr=c,this.added&&this.renderer.buildText(this))};a.prototype.titleSetter=function(c){var b=
98
- this.element,e=b.getElementsByTagName("title")[0]||d.createElementNS(this.SVG_NS,"title");b.insertBefore?b.insertBefore(e,b.firstChild):b.appendChild(e);e.textContent=String(L(c,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")};a.prototype.toFront=function(){var c=this.element;c.parentNode.appendChild(c);return this};a.prototype.translate=function(c,b){return this.attr({translateX:c,translateY:b})};a.prototype.updateShadows=function(c,b,e){var n=this.shadows;if(n)for(var f=n.length;f--;)e.call(n[f],
99
- "height"===c?Math.max(b-(n[f].cutHeight||0),0):"d"===c?this.d:b,c,n[f])};a.prototype.updateTransform=function(){var c=this.scaleX,b=this.scaleY,e=this.inverted,n=this.rotation,f=this.matrix,a=this.element,d=this.translateX||0,q=this.translateY||0;e&&(d+=this.width,q+=this.height);d=["translate("+d+","+q+")"];x(f)&&d.push("matrix("+f.join(",")+")");e?d.push("rotate(90) scale(-1,1)"):n&&d.push("rotate("+n+" "+L(this.rotationOriginX,a.getAttribute("x"),0)+" "+L(this.rotationOriginY,a.getAttribute("y")||
100
- 0)+")");(x(c)||x(b))&&d.push("scale("+L(c,1)+" "+L(b,1)+")");d.length&&a.setAttribute("transform",d.join(" "))};a.prototype.visibilitySetter=function(c,b,e){"inherit"===c?e.removeAttribute(b):this[b]!==c&&e.setAttribute(b,c);this[b]=c};a.prototype.xGetter=function(c){"circle"===this.element.nodeName&&("x"===c?c="cx":"y"===c&&(c="cy"));return this._defaultGetter(c)};a.prototype.zIndexSetter=function(c,b){var e=this.renderer,n=this.parentGroup,f=(n||e).element||e.box,a=this.element;e=f===e.box;var d=
101
- !1;var q=this.added;var m;x(c)?(a.setAttribute("data-z-index",c),c=+c,this[b]===c&&(q=!1)):x(this[b])&&a.removeAttribute("data-z-index");this[b]=c;if(q){(c=this.zIndex)&&n&&(n.handleZ=!0);b=f.childNodes;for(m=b.length-1;0<=m&&!d;m--){n=b[m];q=n.getAttribute("data-z-index");var g=!x(q);if(n!==a)if(0>c&&g&&!e&&!m)f.insertBefore(a,b[m]),d=!0;else if(F(q)<=c||g&&(!x(c)||0<=c))f.insertBefore(a,b[m+1]||null),d=!0}d||(f.insertBefore(a,b[e?3:0]||null),d=!0)}return d};return a}();a.prototype["stroke-widthSetter"]=
102
- a.prototype.strokeSetter;a.prototype.yGetter=a.prototype.xGetter;a.prototype.matrixSetter=a.prototype.rotationOriginXSetter=a.prototype.rotationOriginYSetter=a.prototype.rotationSetter=a.prototype.scaleXSetter=a.prototype.scaleYSetter=a.prototype.translateXSetter=a.prototype.translateYSetter=a.prototype.verticalAlignSetter=function(c,b){this[b]=c;this.doTransform=!0};"";return a});I(a,"Core/Renderer/RendererRegistry.js",[a["Core/Globals.js"]],function(a){var r;(function(r){r.rendererTypes={};var v;
103
- r.getRendererType=function(a){void 0===a&&(a=v);return r.rendererTypes[a]||r.rendererTypes[v]};r.registerRendererType=function(y,w,D){r.rendererTypes[y]=w;if(!v||D)v=y,a.Renderer=w}})(r||(r={}));return r});I(a,"Core/Renderer/SVG/SVGLabel.js",[a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,v){var r=this&&this.__extends||function(){var a=function(d,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&
104
- (b[d]=a[d])};return a(d,b)};return function(d,b){function g(){this.constructor=d}a(d,b);d.prototype=null===b?Object.create(b):(g.prototype=b.prototype,new g)}}(),y=v.defined,z=v.extend,w=v.isNumber,D=v.merge,t=v.pick,l=v.removeEvent;return function(h){function d(b,a,p,k,l,G,f,B,x,u){var g=h.call(this)||this;g.paddingLeftSetter=g.paddingSetter;g.paddingRightSetter=g.paddingSetter;g.init(b,"g");g.textStr=a;g.x=p;g.y=k;g.anchorX=G;g.anchorY=f;g.baseline=x;g.className=u;g.addClass("button"===u?"highcharts-no-tooltip":
105
- "highcharts-label");u&&g.addClass("highcharts-"+u);g.text=b.text(void 0,0,0,B).attr({zIndex:1});var m;"string"===typeof l&&((m=/^url\((.*?)\)$/.test(l))||g.renderer.symbols[l])&&(g.symbolKey=l);g.bBox=d.emptyBBox;g.padding=3;g.baselineOffset=0;g.needsBox=b.styledMode||m;g.deferredAttr={};g.alignFactor=0;return g}r(d,h);d.prototype.alignSetter=function(b){b={left:0,center:.5,right:1}[b];b!==this.alignFactor&&(this.alignFactor=b,this.bBox&&w(this.xSetting)&&this.attr({x:this.xSetting}))};d.prototype.anchorXSetter=
106
- function(b,a){this.anchorX=b;this.boxAttr(a,Math.round(b)-this.getCrispAdjust()-this.xSetting)};d.prototype.anchorYSetter=function(b,a){this.anchorY=b;this.boxAttr(a,b-this.ySetting)};d.prototype.boxAttr=function(b,a){this.box?this.box.attr(b,a):this.deferredAttr[b]=a};d.prototype.css=function(b){if(b){var g={};b=D(b);d.textProps.forEach(function(a){"undefined"!==typeof b[a]&&(g[a]=b[a],delete b[a])});this.text.css(g);var p="width"in g;"fontSize"in g||"fontWeight"in g?this.updateTextPadding():p&&
107
- this.updateBoxSize()}return a.prototype.css.call(this,b)};d.prototype.destroy=function(){l(this.element,"mouseenter");l(this.element,"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());a.prototype.destroy.call(this)};d.prototype.fillSetter=function(b,a){b&&(this.needsBox=!0);this.fill=b;this.boxAttr(a,b)};d.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var b=this.padding,a=t(this.paddingLeft,b);return{width:this.width,
108
- height:this.height,x:this.bBox.x-a,y:this.bBox.y-b}};d.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2};d.prototype.heightSetter=function(b){this.heightSetting=b};d.prototype.onAdd=function(){var b=this.textStr;this.text.add(this);this.attr({text:y(b)?b:"",x:this.x,y:this.y});this.box&&y(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};d.prototype.paddingSetter=
109
- function(b,a){w(b)?b!==this[a]&&(this[a]=b,this.updateTextPadding()):this[a]=void 0};d.prototype.rSetter=function(b,a){this.boxAttr(a,b)};d.prototype.shadow=function(b){b&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(b));return this};d.prototype.strokeSetter=function(b,a){this.stroke=b;this.boxAttr(a,b)};d.prototype["stroke-widthSetter"]=function(b,a){b&&(this.needsBox=!0);this["stroke-width"]=b;this.boxAttr(a,b)};d.prototype["text-alignSetter"]=function(b){this.textAlign=
110
- b};d.prototype.textSetter=function(b){"undefined"!==typeof b&&this.text.attr({text:b});this.updateTextPadding()};d.prototype.updateBoxSize=function(){var b=this.text.element.style,a={},p=this.padding,k=this.bBox=w(this.widthSetting)&&w(this.heightSetting)&&!this.textAlign||!y(this.text.textStr)?d.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||k.height||0)+2*p;b=this.renderer.fontMetrics(b&&b.fontSize,this.text);this.baselineOffset=p+Math.min((this.text.firstLineMetrics||
111
- b).b,k.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-b.h)/2);this.needsBox&&(this.box||(p=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),p.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),p.add(this)),p=this.getCrispAdjust(),a.x=p,a.y=(this.baseline?-this.baselineOffset:0)+p,a.width=Math.round(this.width),a.height=Math.round(this.height),this.box.attr(z(a,this.deferredAttr)),
112
- this.deferredAttr={})};d.prototype.updateTextPadding=function(){var b=this.text;this.updateBoxSize();var a=this.baseline?0:this.baselineOffset,d=t(this.paddingLeft,this.padding);y(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(d+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(d!==b.x||a!==b.y)b.attr("x",d),b.hasBoxWidthChanged&&(this.bBox=b.getBBox(!0)),"undefined"!==typeof a&&b.attr("y",a);b.x=d;b.y=a};d.prototype.widthSetter=function(b){this.widthSetting=
113
- w(b)?b:void 0};d.prototype.getPaddedWidth=function(){var b=this.padding,a=t(this.paddingLeft,b);b=t(this.paddingRight,b);return(this.widthSetting||this.bBox.width||0)+a+b};d.prototype.xSetter=function(b){this.x=b;this.alignFactor&&(b-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(b);this.attr("translateX",this.xSetting)};d.prototype.ySetter=function(b){this.ySetting=this.y=Math.round(b);this.attr("translateY",this.ySetting)};d.emptyBBox={width:0,height:0,
114
- x:0,y:0};d.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return d}(a)});I(a,"Core/Renderer/SVG/Symbols.js",[a["Core/Utilities.js"]],function(a){function r(a,l,h,d,b){var g=[];if(b){var p=b.start||0,k=D(b.r,h);h=D(b.r,d||h);var J=(b.end||0)-.001;d=b.innerR;var G=D(b.open,.001>Math.abs((b.end||0)-p-2*Math.PI)),f=Math.cos(p),B=Math.sin(p),x=Math.cos(J),u=Math.sin(J);p=D(b.longArc,.001>J-p-Math.PI?0:1);
115
- g.push(["M",a+k*f,l+h*B],["A",k,h,0,p,D(b.clockwise,1),a+k*x,l+h*u]);z(d)&&g.push(G?["M",a+d*x,l+d*u]:["L",a+d*x,l+d*u],["A",d,d,0,p,z(b.clockwise)?1-b.clockwise:0,a+d*f,l+d*B]);G||g.push(["Z"])}return g}function A(a,l,h,d,b){return b&&b.r?y(a,l,h,d,b):[["M",a,l],["L",a+h,l],["L",a+h,l+d],["L",a,l+d],["Z"]]}function y(a,l,h,d,b){b=b&&b.r||0;return[["M",a+b,l],["L",a+h-b,l],["C",a+h,l,a+h,l,a+h,l+b],["L",a+h,l+d-b],["C",a+h,l+d,a+h,l+d,a+h-b,l+d],["L",a+b,l+d],["C",a,l+d,a,l+d,a,l+d-b],["L",a,l+b],
116
- ["C",a,l,a,l,a+b,l]]}var z=a.defined,w=a.isNumber,D=a.pick;return{arc:r,callout:function(a,l,h,d,b){var g=Math.min(b&&b.r||0,h,d),p=g+6,k=b&&b.anchorX;b=b&&b.anchorY||0;var J=y(a,l,h,d,{r:g});if(!w(k))return J;a+k>=h?b>l+p&&b<l+d-p?J.splice(3,1,["L",a+h,b-6],["L",a+h+6,b],["L",a+h,b+6],["L",a+h,l+d-g]):J.splice(3,1,["L",a+h,d/2],["L",k,b],["L",a+h,d/2],["L",a+h,l+d-g]):0>=a+k?b>l+p&&b<l+d-p?J.splice(7,1,["L",a,b+6],["L",a-6,b],["L",a,b-6],["L",a,l+g]):J.splice(7,1,["L",a,d/2],["L",k,b],["L",a,d/2],
117
- ["L",a,l+g]):b&&b>d&&k>a+p&&k<a+h-p?J.splice(5,1,["L",k+6,l+d],["L",k,l+d+6],["L",k-6,l+d],["L",a+g,l+d]):b&&0>b&&k>a+p&&k<a+h-p&&J.splice(1,1,["L",k-6,l],["L",k,l-6],["L",k+6,l],["L",h-g,l]);return J},circle:function(a,l,h,d){return r(a+h/2,l+d/2,h/2,d/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(a,l,h,d){return[["M",a+h/2,l],["L",a+h,l+d/2],["L",a+h/2,l+d],["L",a,l+d/2],["Z"]]},rect:A,roundedRect:y,square:A,triangle:function(a,l,h,d){return[["M",a+h/2,l],["L",a+h,l+d],["L",a,
118
- l+d],["Z"]]},"triangle-down":function(a,l,h,d){return[["M",a,l],["L",a+h,l],["L",a+h/2,l+d],["Z"]]}}});I(a,"Core/Renderer/SVG/TextBuilder.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v,A){var r=v.doc,z=v.SVG_NS,w=A.attr,D=A.isString,t=A.objectEach,l=A.pick;return function(){function h(a){var b=a.styles;this.renderer=a.renderer;this.svgElement=a;this.width=a.textWidth;this.textLineHeight=b&&b.lineHeight;this.textOutline=b&&b.textOutline;this.ellipsis=
119
- !(!b||"ellipsis"!==b.textOverflow);this.noWrap=!(!b||"nowrap"!==b.whiteSpace);this.fontSize=b&&b.fontSize}h.prototype.buildSVG=function(){var d=this.svgElement,b=d.element,g=d.renderer,p=l(d.textStr,"").toString(),k=-1!==p.indexOf("<"),h=b.childNodes;g=this.width&&!d.added&&g.box;var G=/<br.*?>/g,f=[p,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(f!==d.textCache){d.textCache=f;delete d.actualWidth;for(f=h.length;f--;)b.removeChild(h[f]);k||this.ellipsis||
120
- this.width||-1!==p.indexOf(" ")&&(!this.noWrap||G.test(p))?""!==p&&(g&&g.appendChild(b),p=new a(p),this.modifyTree(p.nodes),p.addToDOM(d.element),this.modifyDOM(),this.ellipsis&&-1!==(b.textContent||"").indexOf("\u2026")&&d.attr("title",this.unescapeEntities(d.textStr||"",["&lt;","&gt;"])),g&&g.removeChild(b)):b.appendChild(r.createTextNode(this.unescapeEntities(p)));D(this.textOutline)&&d.applyTextOutline&&d.applyTextOutline(this.textOutline)}};h.prototype.modifyDOM=function(){var a=this,b=this.svgElement,
121
- g=w(b.element,"x");b.firstLineMetrics=void 0;for(var p;p=b.element.firstChild;)if(/^[\s\u200B]*$/.test(p.textContent||" "))b.element.removeChild(p);else break;[].forEach.call(b.element.querySelectorAll("tspan.highcharts-br"),function(f,d){f.nextSibling&&f.previousSibling&&(0===d&&1===f.previousSibling.nodeType&&(b.firstLineMetrics=b.renderer.fontMetrics(void 0,f.previousSibling)),w(f,{dy:a.getLineHeight(f.nextSibling),x:g}))});var k=this.width||0;if(k){var h=function(f,d){var p=f.textContent||"",
122
- u=p.replace(/([^\^])-/g,"$1- ").split(" "),h=!a.noWrap&&(1<u.length||1<b.element.childNodes.length),m=a.getLineHeight(d),q=0,e=b.actualWidth;if(a.ellipsis)p&&a.truncate(f,p,void 0,0,Math.max(0,k-parseInt(a.fontSize||12,10)),function(c,b){return c.substring(0,b)+"\u2026"});else if(h){p=[];for(h=[];d.firstChild&&d.firstChild!==f;)h.push(d.firstChild),d.removeChild(d.firstChild);for(;u.length;)u.length&&!a.noWrap&&0<q&&(p.push(f.textContent||""),f.textContent=u.join(" ").replace(/- /g,"-")),a.truncate(f,
123
- void 0,u,0===q?e||0:0,k,function(c,b){return u.slice(0,b).join(" ").replace(/- /g,"-")}),e=b.actualWidth,q++;h.forEach(function(c){d.insertBefore(c,f)});p.forEach(function(c){d.insertBefore(r.createTextNode(c),f);c=r.createElementNS(z,"tspan");c.textContent="\u200b";w(c,{dy:m,x:g});d.insertBefore(c,f)})}},l=function(a){[].slice.call(a.childNodes).forEach(function(f){f.nodeType===Node.TEXT_NODE?h(f,a):(-1!==f.className.baseVal.indexOf("highcharts-br")&&(b.actualWidth=0),l(f))})};l(b.element)}};h.prototype.getLineHeight=
124
- function(a){var b;a=a.nodeType===Node.TEXT_NODE?a.parentElement:a;this.renderer.styledMode||(b=a&&/(px|em)$/.test(a.style.fontSize)?a.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(b,a||this.svgElement.element).h};h.prototype.modifyTree=function(a){var b=this,d=function(g,k){var h=g.tagName,p=b.renderer.styledMode,f=g.attributes||{};if("b"===h||"strong"===h)p?f["class"]="highcharts-strong":
125
- f.style="font-weight:bold;"+(f.style||"");else if("i"===h||"em"===h)p?f["class"]="highcharts-emphasized":f.style="font-style:italic;"+(f.style||"");D(f.style)&&(f.style=f.style.replace(/(;| |^)color([ :])/,"$1fill$2"));"br"===h&&(f["class"]="highcharts-br",g.textContent="\u200b",(k=a[k+1])&&k.textContent&&(k.textContent=k.textContent.replace(/^ +/gm,"")));"#text"!==h&&"a"!==h&&(g.tagName="tspan");g.attributes=f;g.children&&g.children.filter(function(b){return"#text"!==b.tagName}).forEach(d)};a.forEach(d)};
126
- h.prototype.truncate=function(a,b,g,h,k,l){var d=this.svgElement,f=d.renderer,p=d.rotation,x=[],u=g?1:0,E=(b||g||"").length,m=E,q,e=function(c,e){e=e||c;var n=a.parentNode;if(n&&"undefined"===typeof x[e])if(n.getSubStringLength)try{x[e]=h+n.getSubStringLength(0,g?e+1:e)}catch(L){""}else f.getSpanWidth&&(a.textContent=l(b||g,c),x[e]=h+f.getSpanWidth(d,a));return x[e]};d.rotation=0;var c=e(a.textContent.length);if(h+c>k){for(;u<=E;)m=Math.ceil((u+E)/2),g&&(q=l(g,m)),c=e(m,q&&q.length-1),u===E?u=E+1:
127
- c>k?E=m-1:u=m;0===E?a.textContent="":b&&E===b.length-1||(a.textContent=q||l(b||g,m))}g&&g.splice(0,m);d.actualWidth=c;d.rotation=p};h.prototype.unescapeEntities=function(a,b){t(this.renderer.escapes,function(d,h){b&&-1!==b.indexOf(d)||(a=a.toString().replace(new RegExp(d,"g"),h))});return a};return h}()});I(a,"Core/Renderer/SVG/SVGRenderer.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Renderer/SVG/SVGElement.js"],
128
- a["Core/Renderer/SVG/SVGLabel.js"],a["Core/Renderer/SVG/Symbols.js"],a["Core/Renderer/SVG/TextBuilder.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w,D,t,l,h){var d=A.charts,b=A.deg2rad,g=A.doc,p=A.isFirefox,k=A.isMS,J=A.isWebKit,G=A.noop,f=A.SVG_NS,B=A.symbolSizes,x=A.win,u=h.addEvent,E=h.attr,m=h.createElement,q=h.css,e=h.defined,c=h.destroyObjectProperties,n=h.extend,C=h.isArray,H=h.isNumber,L=h.isObject,F=h.isString,r=h.merge,S=h.pick,R=h.pInt,T=h.uniqueKey,ba;A=function(){function f(c,b,e,
129
- a,n,f,d){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0;this.init(c,b,e,a,n,f,d)}f.prototype.init=function(c,b,e,a,n,f,d){var m=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}),k=m.element;d||m.css(this.getStyle(a));c.appendChild(k);E(c,"dir","ltr");-1===c.innerHTML.indexOf("xmlns")&&E(k,"xmlns",this.SVG_NS);this.isSVG=
130
- !0;this.box=k;this.boxWrapper=m;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(g.createTextNode("Created with Highcharts 9.2.2"));this.defs=this.createElement("defs").add();this.allowHTML=f;this.forExport=n;this.styledMode=d;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(b,e,!1);var M;p&&c.getBoundingClientRect&&(b=function(){q(c,{left:0,top:0});M=c.getBoundingClientRect();q(c,{left:Math.ceil(M.left)-M.left+
131
- "px",top:Math.ceil(M.top)-M.top+"px"})},b(),this.unSubPixelFix=u(x,"resize",b))};f.prototype.definition=function(c){return(new a([c])).addToDOM(this.defs.element)};f.prototype.getReferenceURL=function(){if((p||J)&&g.getElementsByTagName("base").length){if(!e(ba)){var c=T();c=(new a([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:c},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",
132
- width:8,height:8,"clip-path":"url(#"+c+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(g.body);q(c,{position:"fixed",top:0,left:0,zIndex:9E5});var b=g.elementFromPoint(6,6);ba="hitme"===(b&&b.id);g.body.removeChild(c)}if(ba)return x.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};f.prototype.getStyle=function(c){return this.style=n({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},c)};f.prototype.setStyle=
133
- function(c){this.boxWrapper.css(this.getStyle(c))};f.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};f.prototype.destroy=function(){var b=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();c(this.gradients||{});this.gradients=null;b&&(this.defs=b.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};f.prototype.createElement=function(c){var b=new this.Element;b.init(this,c);return b};f.prototype.getRadialAttr=function(c,b){return{cx:c[0]-
134
- c[2]/2+(b.cx||0)*c[2],cy:c[1]-c[2]/2+(b.cy||0)*c[2],r:(b.r||0)*c[2]}};f.prototype.buildText=function(c){(new l(c)).buildSVG()};f.prototype.getContrast=function(c){c=v.parse(c).rgba;c[0]*=1;c[1]*=1.2;c[2]*=.5;return 459<c[0]+c[1]+c[2]?"#000000":"#FFFFFF"};f.prototype.button=function(c,b,e,f,d,q,m,g,C,h){var p=this.label(c,b,e,C,void 0,void 0,h,void 0,"button"),M=this.styledMode,N=0,K=d?r(d):{};c=K&&K.style||{};K=a.filterUserAttributes(K);p.attr(r({padding:8,r:2},K));if(!M){K=r({fill:y.neutralColor3,
135
- stroke:y.neutralColor20,"stroke-width":1,style:{color:y.neutralColor80,cursor:"pointer",fontWeight:"normal"}},{style:c},K);var B=K.style;delete K.style;q=r(K,{fill:y.neutralColor10},a.filterUserAttributes(q||{}));var x=q.style;delete q.style;m=r(K,{fill:y.highlightColor10,style:{color:y.neutralColor100,fontWeight:"bold"}},a.filterUserAttributes(m||{}));var H=m.style;delete m.style;g=r(K,{style:{color:y.neutralColor20}},a.filterUserAttributes(g||{}));var F=g.style;delete g.style}u(p.element,k?"mouseover":
136
- "mouseenter",function(){3!==N&&p.setState(1)});u(p.element,k?"mouseout":"mouseleave",function(){3!==N&&p.setState(N)});p.setState=function(c){1!==c&&(p.state=N=c);p.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][c||0]);M||p.attr([K,q,m,g][c||0]).css([B,x,H,F][c||0])};M||p.attr(K).css(n({cursor:"default"},B));return p.on("touchstart",function(c){return c.stopPropagation()}).on("click",function(c){3!==N&&f.call(p,
137
- c)})};f.prototype.crispLine=function(c,b,a){void 0===a&&(a="round");var n=c[0],f=c[1];e(n[1])&&n[1]===f[1]&&(n[1]=f[1]=Math[a](n[1])-b%2/2);e(n[2])&&n[2]===f[2]&&(n[2]=f[2]=Math[a](n[2])+b%2/2);return c};f.prototype.path=function(c){var b=this.styledMode?{}:{fill:"none"};C(c)?b.d=c:L(c)&&n(b,c);return this.createElement("path").attr(b)};f.prototype.circle=function(c,b,e){c=L(c)?c:"undefined"===typeof c?{}:{x:c,y:b,r:e};b=this.createElement("circle");b.xSetter=b.ySetter=function(c,b,e){e.setAttribute("c"+
138
- b,c)};return b.attr(c)};f.prototype.arc=function(c,b,e,a,n,f){L(c)?(a=c,b=a.y,e=a.r,c=a.x):a={innerR:a,start:n,end:f};c=this.symbol("arc",c,b,e,e,a);c.r=e;return c};f.prototype.rect=function(c,b,e,a,n,f){n=L(c)?c.r:n;var d=this.createElement("rect");c=L(c)?c:"undefined"===typeof c?{}:{x:c,y:b,width:Math.max(e,0),height:Math.max(a,0)};this.styledMode||("undefined"!==typeof f&&(c["stroke-width"]=f,c=d.crisp(c)),c.fill="none");n&&(c.r=n);d.rSetter=function(c,b,e){d.r=c;E(e,{rx:c,ry:c})};d.rGetter=function(){return d.r||
139
- 0};return d.attr(c)};f.prototype.setSize=function(c,b,e){this.width=c;this.height=b;this.boxWrapper.animate({width:c,height:b},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:S(e,!0)?void 0:0});this.alignElements()};f.prototype.g=function(c){var b=this.createElement("g");return c?b.attr({"class":"highcharts-"+c}):b};f.prototype.image=function(c,b,e,a,f,d){var q={preserveAspectRatio:"none"},m=function(c,b){c.setAttributeNS?c.setAttributeNS("http://www.w3.org/1999/xlink",
140
- "href",b):c.setAttribute("hc-svg-href",b)};1<arguments.length&&n(q,{x:b,y:e,width:a,height:f});var g=this.createElement("image").attr(q);q=function(b){m(g.element,c);d.call(g,b)};if(d){m(g.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");var k=new x.Image;u(k,"load",q);k.src=c;k.complete&&q({})}else m(g.element,c);return g};f.prototype.symbol=function(c,b,a,f,k,u){var C=this,h=/^url\((.*?)\)$/,p=h.test(c),N=!p&&(this.symbols[c]?c:"circle"),K=N&&this.symbols[N],
141
- M;if(K){"number"===typeof b&&(M=K.call(this.symbols,Math.round(b||0),Math.round(a||0),f||0,k||0,u));var x=this.path(M);C.styledMode||x.attr("fill","none");n(x,{symbolName:N||void 0,x:b,y:a,width:f,height:k});u&&n(x,u)}else if(p){var H=c.match(h)[1];var F=x=this.image(H);F.imgwidth=S(B[H]&&B[H].width,u&&u.width);F.imgheight=S(B[H]&&B[H].height,u&&u.height);var l=function(c){return c.attr({width:c.width,height:c.height})};["width","height"].forEach(function(c){F[c+"Setter"]=function(c,b){var a=this["img"+
142
- b];this[b]=c;e(a)&&(u&&"within"===u.backgroundSize&&this.width&&this.height&&(a=Math.round(a*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(b,a),this.alignByTranslate||(c=((this[b]||0)-a)/2,this.attr("width"===b?{translateX:c}:{translateY:c})))}});e(b)&&F.attr({x:b,y:a});F.isImg=!0;e(F.imgwidth)&&e(F.imgheight)?l(F):(F.attr({width:0,height:0}),m("img",{onload:function(){var c=d[C.chartIndex];0===this.width&&(q(this,{position:"absolute",top:"-999em"}),
143
- g.body.appendChild(this));B[H]={width:this.width,height:this.height};F.imgwidth=this.width;F.imgheight=this.height;F.element&&l(F);this.parentNode&&this.parentNode.removeChild(this);C.imgCount--;if(!C.imgCount&&c&&!c.hasLoaded)c.onload()},src:H}),this.imgCount++)}return x};f.prototype.clipRect=function(c,b,e,a){var n=T()+"-",f=this.createElement("clipPath").attr({id:n}).add(this.defs);c=this.rect(c,b,e,a,0).add(f);c.id=n;c.clipPath=f;c.count=0;return c};f.prototype.text=function(c,b,a,n){var f={};
144
- if(n&&(this.allowHTML||!this.forExport))return this.html(c,b,a);f.x=Math.round(b||0);a&&(f.y=Math.round(a));e(c)&&(f.text=c);c=this.createElement("text").attr(f);if(!n||this.forExport&&!this.allowHTML)c.xSetter=function(c,b,e){for(var a=e.getElementsByTagName("tspan"),n=e.getAttribute(b),f=0,d;f<a.length;f++)d=a[f],d.getAttribute(b)===n&&d.setAttribute(b,c);e.setAttribute(b,c)};return c};f.prototype.fontMetrics=function(c,b){c=!this.styledMode&&/px/.test(c)||!x.getComputedStyle?c||b&&b.style&&b.style.fontSize||
145
- this.style&&this.style.fontSize:b&&w.prototype.getStyle.call(b,"font-size");c=/px/.test(c)?R(c):12;b=24>c?c+3:Math.round(1.2*c);return{h:b,b:Math.round(.8*b),f:c}};f.prototype.rotCorr=function(c,e,a){var f=c;e&&a&&(f=Math.max(f*Math.cos(e*b),4));return{x:-c/3*Math.sin(e*b),y:f}};f.prototype.pathToSegments=function(c){for(var b=[],e=[],a={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},f=0;f<c.length;f++)F(e[0])&&H(c[f])&&e.length===a[e[0].toUpperCase()]&&c.splice(f,0,e[0].replace("M","L").replace("m","l")),
146
- "string"===typeof c[f]&&(e.length&&b.push(e.slice(0)),e.length=0),e.push(c[f]);b.push(e.slice(0));return b};f.prototype.label=function(c,b,e,a,f,n,d,q,m){return new D(this,c,b,e,a,f,n,d,q,m)};f.prototype.alignElements=function(){this.alignedObjects.forEach(function(c){return c.align()})};return f}();n(A.prototype,{Element:w,SVG_NS:f,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:t,draw:G});z.registerRendererType("svg",A,!0);"";return A});I(a,"Core/Renderer/HTML/HTMLElement.js",
147
- [a["Core/Globals.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,v,A){var r=this&&this.__extends||function(){var b=function(a,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var f in a)a.hasOwnProperty(f)&&(b[f]=a[f])};return b(a,d)};return function(a,d){function g(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),z=a.isFirefox,w=a.isMS,D=a.isWebKit,t=a.win,
148
- l=A.css,h=A.defined,d=A.extend,b=A.pick,g=A.pInt;return function(a){function k(){return null!==a&&a.apply(this,arguments)||this}r(k,a);k.compose=function(b){if(-1===k.composedClasses.indexOf(b)){k.composedClasses.push(b);var a=k.prototype,f=b.prototype;f.getSpanCorrection=a.getSpanCorrection;f.htmlCss=a.htmlCss;f.htmlGetBBox=a.htmlGetBBox;f.htmlUpdateTransform=a.htmlUpdateTransform;f.setSpanRotation=a.setSpanRotation}return b};k.prototype.getSpanCorrection=function(b,a,f){this.xCorr=-b*f;this.yCorr=
149
- -a};k.prototype.htmlCss=function(a){var g="SPAN"===this.element.tagName&&a&&"width"in a,f=b(g&&a.width,void 0);if(g){delete a.width;this.textWidth=f;var k=!0}a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow="hidden");this.styles=d(this.styles,a);l(this.element,a);k&&this.htmlUpdateTransform();return this};k.prototype.htmlGetBBox=function(){var b=this.element;return{x:b.offsetLeft,y:b.offsetTop,width:b.offsetWidth,height:b.offsetHeight}};k.prototype.htmlUpdateTransform=function(){if(this.added){var b=
150
- this.renderer,a=this.element,f=this.translateX||0,d=this.translateY||0,k=this.x||0,u=this.y||0,p=this.textAlign||"left",m={left:0,center:.5,right:1}[p],q=this.styles;q=q&&q.whiteSpace;l(a,{marginLeft:f,marginTop:d});!b.styledMode&&this.shadows&&this.shadows.forEach(function(c){l(c,{marginLeft:f+1,marginTop:d+1})});this.inverted&&[].forEach.call(a.childNodes,function(c){b.invertChild(c,a)});if("SPAN"===a.tagName){var e=this.rotation,c=this.textWidth&&g(this.textWidth),n=[e,p,a.innerHTML,this.textWidth,
151
- this.textAlign].join(),C=void 0;(C=c!==this.oldTextWidth)&&!(C=c>this.oldTextWidth)&&((C=this.textPxLength)||(l(a,{width:"",whiteSpace:q||"nowrap"}),C=a.offsetWidth),C=C>c);C&&(/[ \-]/.test(a.textContent||a.innerText)||"ellipsis"===a.style.textOverflow)?(l(a,{width:c+"px",display:"block",whiteSpace:q||"normal"}),this.oldTextWidth=c,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;n!==this.cTT&&(C=b.fontMetrics(a.style.fontSize,a).b,!h(e)||e===(this.oldRotation||0)&&p===this.oldAlign||this.setSpanRotation(e,
152
- m,C),this.getSpanCorrection(!h(e)&&this.textPxLength||a.offsetWidth,C,m,e,p));l(a,{left:k+(this.xCorr||0)+"px",top:u+(this.yCorr||0)+"px"});this.cTT=n;this.oldRotation=e;this.oldAlign=p}}else this.alignOnAdd=!0};k.prototype.setSpanRotation=function(b,a,f){var d={},g=w&&!/Edge/.test(t.navigator.userAgent)?"-ms-transform":D?"-webkit-transform":z?"MozTransform":t.opera?"-o-transform":void 0;g&&(d[g]=d.transform="rotate("+b+"deg)",d[g+(z?"Origin":"-origin")]=d.transformOrigin=100*a+"% "+f+"px",l(this.element,
153
- d))};k.composedClasses=[];return k}(v)});I(a,"Core/Renderer/HTML/HTMLRenderer.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,v,A,y){var r=this&&this.__extends||function(){var a=function(d,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return a(d,b)};return function(d,b){function g(){this.constructor=
154
- d}a(d,b);d.prototype=null===b?Object.create(b):(g.prototype=b.prototype,new g)}}(),w=y.attr,D=y.createElement,t=y.extend,l=y.pick;return function(h){function d(){return null!==h&&h.apply(this,arguments)||this}r(d,h);d.compose=function(b){-1===d.composedClasses.indexOf(b)&&(d.composedClasses.push(b),b.prototype.html=d.prototype.html);return b};d.prototype.html=function(b,d,h){var g=this.createElement("span"),p=g.element,G=g.renderer,f=G.isSVG,B=function(b,a){["opacity","visibility"].forEach(function(f){b[f+
155
- "Setter"]=function(d,q,e){var c=b.div?b.div.style:a;v.prototype[f+"Setter"].call(this,d,q,e);c&&(c[q]=d)}});b.addedSetters=!0};g.textSetter=function(b){b!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,a.setElementHTML(this.element,l(b,"")),this.textStr=b,g.doTransform=!0)};f&&B(g,g.element.style);g.xSetter=g.ySetter=g.alignSetter=g.rotationSetter=function(b,a){"align"===a?g.alignValue=g.textAlign=b:g[a]=b;g.doTransform=!0};g.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),
156
- this.doTransform=!1)};g.attr({text:b,x:Math.round(d),y:Math.round(h)}).css({position:"absolute"});G.styledMode||g.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});p.style.whiteSpace="nowrap";g.css=g.htmlCss;f&&(g.add=function(b){var a=G.box.parentNode,f=[];if(this.parentGroup=b){var d=b.div;if(!d){for(;b;)f.push(b),b=b.parentGroup;f.reverse().forEach(function(b){function e(c,e){b[e]=c;"translateX"===e?q.left=c+"px":q.top=c+"px";b.doTransform=!0}var c=w(b.element,"class"),n=b.styles||
157
- {};d=b.div=b.div||D("div",c?{className:c}:void 0,{position:"absolute",left:(b.translateX||0)+"px",top:(b.translateY||0)+"px",display:b.display,opacity:b.opacity,cursor:n.cursor,pointerEvents:n.pointerEvents,visibility:b.visibility},d||a);var q=d.style;t(b,{classSetter:function(c){return function(b){this.element.setAttribute("class",b);c.className=b}}(d),on:function(){f[0].div&&g.on.apply({element:f[0].div,onEvents:b.onEvents},arguments);return b},translateXSetter:e,translateYSetter:e});b.addedSetters||
158
- B(b)})}}else d=a;d.appendChild(p);g.added=!0;g.alignOnAdd&&g.htmlUpdateTransform();return g});return g};d.composedClasses=[];return d}(A)});I(a,"Core/Axis/AxisDefaults.js",[a["Core/Color/Palette.js"]],function(a){var r;(function(r){r.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},
159
- week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:a.neutralColor60,cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,
160
- opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:a.neutralColor60}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:a.neutralColor5,minorGridLineWidth:1,minorTickColor:a.neutralColor40,lineColor:a.highlightColor20,lineWidth:1,gridLineColor:a.neutralColor10,gridLineWidth:void 0,
161
- tickColor:a.highlightColor20};r.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var a=this.axis.chart.numberFormatter;return a(this.total,-1)},style:{color:a.neutralColor100,fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};
162
- r.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};r.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};r.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};r.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(r||(r={}));return r});I(a,"Core/Foundation.js",[a["Core/Utilities.js"]],function(a){var r=a.addEvent,A=a.isFunction,y=a.objectEach,z=a.removeEvent;return{registerEventOptions:function(a,D){a.eventOptions=
163
- a.eventOptions||{};y(D.events,function(t,l){a.eventOptions[l]!==t&&(a.eventOptions[l]&&(z(a,l,a.eventOptions[l]),delete a.eventOptions[l]),A(t)&&(a.eventOptions[l]=t,r(a,l,t)))})}}});I(a,"Core/Axis/Tick.js",[a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v,A){var r=v.deg2rad,z=A.clamp,w=A.correctFloat,D=A.defined,t=A.destroyObjectProperties,l=A.extend,h=A.fireEvent,d=A.isNumber,b=A.merge,g=A.objectEach,p=A.pick;v=function(){function k(b,a,f,d,g){this.isNewLabel=
164
- this.isNew=!0;this.axis=b;this.pos=a;this.type=f||"";this.parameters=g||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;h(this,"init");f||d||this.addLabel()}k.prototype.addLabel=function(){var b=this,g=b.axis,f=g.options,k=g.chart,x=g.categories,u=g.logarithmic,E=g.names,m=b.pos,q=p(b.options&&b.options.labels,f.labels),e=g.tickPositions,c=m===e[0],n=m===e[e.length-1],C=(!q.step||1===q.step)&&1===g.tickInterval;e=e.info;var H=b.label,L;x=this.parameters.category||
165
- (x?p(x[m],E[m],m):m);u&&d(x)&&(x=w(u.lin2log(x)));if(g.dateTime)if(e){var F=k.time.resolveDTLFormat(f.dateTimeLabelFormats[!f.grid&&e.higherRanks[m]||e.unitName]);var r=F.main}else d(x)&&(r=g.dateTime.getXDateFormat(x,f.dateTimeLabelFormats||{}));b.isFirst=c;b.isLast=n;var t={axis:g,chart:k,dateTimeLabelFormat:r,isFirst:c,isLast:n,pos:m,tick:b,tickPositionInfo:e,value:x};h(this,"labelFormat",t);var v=function(c){return q.formatter?q.formatter.call(c,c):q.format?(c.text=g.defaultLabelFormatter.call(c),
166
- a.format(q.format,c,k)):g.defaultLabelFormatter.call(c,c)};f=v.call(t,t);var y=F&&F.list;b.shortenLabel=y?function(){for(L=0;L<y.length;L++)if(l(t,{dateTimeLabelFormat:y[L]}),H.attr({text:v.call(t,t)}),H.getBBox().width<g.getSlotWidth(b)-2*q.padding)return;H.attr({text:""})}:void 0;C&&g._addedPlotLB&&b.moveLabel(f,q);D(H)||b.movedLabel?H&&H.textStr!==f&&!C&&(!H.textWidth||q.style.width||H.styles.width||H.css({width:null}),H.attr({text:f}),H.textPxLength=H.getBBox().width):(b.label=H=b.createLabel({x:0,
167
- y:0},f,q),b.rotation=0)};k.prototype.createLabel=function(a,d,f){var g=this.axis,k=g.chart;if(a=D(d)&&f.enabled?k.renderer.text(d,a.x,a.y,f.useHTML).add(g.labelGroup):null)k.styledMode||a.css(b(f.style)),a.textPxLength=a.getBBox().width;return a};k.prototype.destroy=function(){t(this,this.axis)};k.prototype.getPosition=function(b,a,f,d){var g=this.axis,k=g.chart,p=d&&k.oldChartHeight||k.chartHeight;b={x:b?w(g.translate(a+f,null,null,d)+g.transB):g.left+g.offset+(g.opposite?(d&&k.oldChartWidth||k.chartWidth)-
168
- g.right-g.left:0),y:b?p-g.bottom+g.offset-(g.opposite?g.height:0):w(p-g.translate(a+f,null,null,d)-g.transB)};b.y=z(b.y,-1E5,1E5);h(this,"afterGetPosition",{pos:b});return b};k.prototype.getLabelPosition=function(b,a,f,d,g,k,p,m){var q=this.axis,e=q.transA,c=q.isLinked&&q.linkedParent?q.linkedParent.reversed:q.reversed,n=q.staggerLines,C=q.tickRotCorr||{x:0,y:0},u=d||q.reserveSpaceDefault?0:-q.labelOffset*("center"===q.labelAlign?.5:1),B={},F=g.y;D(F)||(F=0===q.side?f.rotation?-8:-f.getBBox().height:
169
- 2===q.side?C.y+8:Math.cos(f.rotation*r)*(C.y-f.getBBox(!1,0).height/2));b=b+g.x+u+C.x-(k&&d?k*e*(c?-1:1):0);a=a+F-(k&&!d?k*e*(c?1:-1):0);n&&(f=p/(m||1)%n,q.opposite&&(f=n-f-1),a+=q.labelOffset/n*f);B.x=b;B.y=Math.round(a);h(this,"afterGetLabelPosition",{pos:B,tickmarkOffset:k,index:p});return B};k.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};k.prototype.getMarkPath=function(b,a,f,d,g,k){return k.crispLine([["M",b,a],["L",b+(g?0:-f),
170
- a+(g?f:0)]],d)};k.prototype.handleOverflow=function(b){var a=this.axis,f=a.options.labels,d=b.x,g=a.chart.chartWidth,k=a.chart.spacing,h=p(a.labelLeft,Math.min(a.pos,k[3]));k=p(a.labelRight,Math.max(a.isRadial?0:a.pos+a.len,g-k[1]));var m=this.label,q=this.rotation,e={left:0,center:.5,right:1}[a.labelAlign||m.attr("align")],c=m.getBBox().width,n=a.getSlotWidth(this),C={},H=n,l=1,F;if(q||"justify"!==f.overflow)0>q&&d-e*c<h?F=Math.round(d/Math.cos(q*r)-h):0<q&&d+e*c>k&&(F=Math.round((g-d)/Math.cos(q*
171
- r)));else if(g=d+(1-e)*c,d-e*c<h?H=b.x+H*(1-e)-h:g>k&&(H=k-b.x+H*e,l=-1),H=Math.min(n,H),H<n&&"center"===a.labelAlign&&(b.x+=l*(n-H-e*(n-Math.min(c,H)))),c>H||a.autoRotation&&(m.styles||{}).width)F=H;F&&(this.shortenLabel?this.shortenLabel():(C.width=Math.floor(F)+"px",(f.style||{}).textOverflow||(C.textOverflow="ellipsis"),m.css(C)))};k.prototype.moveLabel=function(b,a){var f=this,d=f.label,k=f.axis,h=k.reversed,p=!1;d&&d.textStr===b?(f.movedLabel=d,p=!0,delete f.label):g(k.ticks,function(a){p||
172
- a.isNew||a===f||!a.label||a.label.textStr!==b||(f.movedLabel=a.label,p=!0,a.labelPos=f.movedLabel.xy,delete a.label)});if(!p&&(f.labelPos||d)){var m=f.labelPos||d.xy;d=k.horiz?h?0:k.width+k.left:m.x;k=k.horiz?m.y:h?k.width+k.left:0;f.movedLabel=f.createLabel({x:d,y:k},b,a);f.movedLabel&&f.movedLabel.attr({opacity:0})}};k.prototype.render=function(b,a,f){var d=this.axis,g=d.horiz,k=this.pos,l=p(this.tickmarkOffset,d.tickmarkOffset);k=this.getPosition(g,k,l,a);l=k.x;var m=k.y;d=g&&l===d.pos+d.len||
173
- !g&&m===d.pos?-1:1;g=p(f,this.label&&this.label.newOpacity,1);f=p(f,1);this.isActive=!0;this.renderGridLine(a,f,d);this.renderMark(k,f,d);this.renderLabel(k,a,g,b);this.isNew=!1;h(this,"afterRender")};k.prototype.renderGridLine=function(b,a,f){var d=this.axis,g=d.options,k={},h=this.pos,m=this.type,q=p(this.tickmarkOffset,d.tickmarkOffset),e=d.chart.renderer,c=this.gridLine,n=g.gridLineWidth,C=g.gridLineColor,H=g.gridLineDashStyle;"minor"===this.type&&(n=g.minorGridLineWidth,C=g.minorGridLineColor,
174
- H=g.minorGridLineDashStyle);c||(d.chart.styledMode||(k.stroke=C,k["stroke-width"]=n||0,k.dashstyle=H),m||(k.zIndex=1),b&&(a=0),this.gridLine=c=e.path().attr(k).addClass("highcharts-"+(m?m+"-":"")+"grid-line").add(d.gridGroup));if(c&&(f=d.getPlotLinePath({value:h+q,lineWidth:c.strokeWidth()*f,force:"pass",old:b})))c[b||this.isNew?"attr":"animate"]({d:f,opacity:a})};k.prototype.renderMark=function(b,a,f){var d=this.axis,g=d.options,k=d.chart.renderer,h=this.type,m=d.tickSize(h?h+"Tick":"tick"),q=b.x;
175
- b=b.y;var e=p(g["minor"!==h?"tickWidth":"minorTickWidth"],!h&&d.isXAxis?1:0);g=g["minor"!==h?"tickColor":"minorTickColor"];var c=this.mark,n=!c;m&&(d.opposite&&(m[0]=-m[0]),c||(this.mark=c=k.path().addClass("highcharts-"+(h?h+"-":"")+"tick").add(d.axisGroup),d.chart.styledMode||c.attr({stroke:g,"stroke-width":e})),c[n?"attr":"animate"]({d:this.getMarkPath(q,b,m[0],c.strokeWidth()*f,d.horiz,k),opacity:a}))};k.prototype.renderLabel=function(b,a,f,g){var k=this.axis,h=k.horiz,l=k.options,m=this.label,
176
- q=l.labels,e=q.step;k=p(this.tickmarkOffset,k.tickmarkOffset);var c=b.x;b=b.y;var n=!0;m&&d(c)&&(m.xy=b=this.getLabelPosition(c,b,m,h,q,k,g,e),this.isFirst&&!this.isLast&&!l.showFirstLabel||this.isLast&&!this.isFirst&&!l.showLastLabel?n=!1:!h||q.step||q.rotation||a||0===f||this.handleOverflow(b),e&&g%e&&(n=!1),n&&d(b.y)?(b.opacity=f,m[this.isNewLabel?"attr":"animate"](b),this.isNewLabel=!1):(m.attr("y",-9999),this.isNewLabel=!0))};k.prototype.replaceMovedLabel=function(){var b=this.label,a=this.axis,
177
- f=a.reversed;if(b&&!this.isNew){var d=a.horiz?f?a.left:a.width+a.left:b.xy.x;f=a.horiz?b.xy.y:f?a.width+a.top:a.top;b.animate({x:d,y:f,opacity:0},void 0,b.destroy);delete this.label}a.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return k}();"";return v});I(a,"Core/Axis/Axis.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/AxisDefaults.js"],a["Core/Color/Color.js"],a["Core/Color/Palette.js"],a["Core/DefaultOptions.js"],a["Core/Foundation.js"],a["Core/Globals.js"],a["Core/Axis/Tick.js"],
178
- a["Core/Utilities.js"]],function(a,v,A,y,z,w,D,t,l){var h=a.animObject,d=z.defaultOptions,b=w.registerEventOptions,g=D.deg2rad,p=l.arrayMax,k=l.arrayMin,r=l.clamp,G=l.correctFloat,f=l.defined,B=l.destroyObjectProperties,x=l.erase,u=l.error,E=l.extend,m=l.fireEvent,q=l.getMagnitude,e=l.isArray,c=l.isNumber,n=l.isString,C=l.merge,H=l.normalizeTickInterval,L=l.objectEach,F=l.pick,W=l.relativeLength,S=l.removeEvent,R=l.splat,T=l.syncTimeout;a=function(){function a(c,b){this.zoomEnabled=this.width=this.visible=
179
- this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=
180
- this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0;this.init(c,b)}a.prototype.init=function(a,e){var d=e.isX;this.chart=a;this.horiz=a.inverted&&!this.isZAxis?!d:d;this.isXAxis=d;this.coll=this.coll||(d?"xAxis":"yAxis");m(this,"init",{userOptions:e});this.opposite=F(e.opposite,this.opposite);this.side=F(e.side,this.side,this.horiz?
181
- this.opposite?0:2:this.opposite?1:3);this.setOptions(e);var n=this.options,g=n.labels,q=n.type;this.userOptions=e;this.minPixelPadding=0;this.reversed=F(n.reversed,this.reversed);this.visible=n.visible;this.zoomEnabled=n.zoomEnabled;this.hasNames="category"===q||!0===n.categories;this.categories=n.categories||this.hasNames;this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups={};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=f(n.linkedTo);this.ticks={};this.labelEdge=
182
- [];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=n.minRange||n.maxZoom;this.range=n.range;this.offset=n.offset||0;this.min=this.max=null;e=F(n.crosshair,R(a.options.tooltip.crosshairs)[d?0:1]);this.crosshair=!0===e?{}:e;-1===a.axes.indexOf(this)&&(d?a.axes.splice(a.xAxis.length,0,this):a.axes.push(this),a[this.coll].push(this));this.series=this.series||[];a.inverted&&!this.isZAxis&&d&&"undefined"===typeof this.reversed&&(this.reversed=
183
- !0);this.labelRotation=c(g.rotation)?g.rotation:void 0;b(this,n);m(this,"afterInit")};a.prototype.setOptions=function(c){this.options=C(v.defaultXAxisOptions,"yAxis"===this.coll&&v.defaultYAxisOptions,[v.defaultTopAxisOptions,v.defaultRightAxisOptions,v.defaultBottomAxisOptions,v.defaultLeftAxisOptions][this.side],C(d[this.coll],c));m(this,"afterSetOptions",{userOptions:c})};a.prototype.defaultLabelFormatter=function(b){var a=this.axis;b=this.chart.numberFormatter;var e=c(this.value)?this.value:NaN,
184
- f=a.chart.time,n=this.dateTimeLabelFormat,g=d.lang,m=g.numericSymbols;g=g.numericSymbolMagnitude||1E3;var q=a.logarithmic?Math.abs(e):a.tickInterval,k=m&&m.length;if(a.categories)var h=""+this.value;else if(n)h=f.dateFormat(n,e);else if(k&&1E3<=q)for(;k--&&"undefined"===typeof h;)a=Math.pow(g,k+1),q>=a&&0===10*e%a&&null!==m[k]&&0!==e&&(h=b(e/a,-1)+m[k]);"undefined"===typeof h&&(h=1E4<=Math.abs(e)?b(e,-1):b(e,-1,void 0,""));return h};a.prototype.getSeriesExtremes=function(){var b=this,a=b.chart,e;
185
- m(this,"getSeriesExtremes",null,function(){b.hasVisibleSeries=!1;b.dataMin=b.dataMax=b.threshold=null;b.softThreshold=!b.isXAxis;b.stacking&&b.stacking.buildStacks();b.series.forEach(function(n){if(n.visible||!a.options.chart.ignoreHiddenSeries){var d=n.options,g=d.threshold;b.hasVisibleSeries=!0;b.positiveValuesOnly&&0>=g&&(g=null);if(b.isXAxis){if(d=n.xData,d.length){d=b.logarithmic?d.filter(b.validatePositiveValue):d;e=n.getXExtremes(d);var m=e.min;var q=e.max;c(m)||m instanceof Date||(d=d.filter(c),
186
- e=n.getXExtremes(d),m=e.min,q=e.max);d.length&&(b.dataMin=Math.min(F(b.dataMin,m),m),b.dataMax=Math.max(F(b.dataMax,q),q))}}else if(n=n.applyExtremes(),c(n.dataMin)&&(m=n.dataMin,b.dataMin=Math.min(F(b.dataMin,m),m)),c(n.dataMax)&&(q=n.dataMax,b.dataMax=Math.max(F(b.dataMax,q),q)),f(g)&&(b.threshold=g),!d.softThreshold||b.positiveValuesOnly)b.softThreshold=!1}})});m(this,"afterGetSeriesExtremes")};a.prototype.translate=function(b,a,e,n,d,f){var g=this.linkedParent||this,m=n&&g.old?g.old.min:g.min,
187
- q=g.minPixelPadding;d=(g.isOrdinal||g.brokenAxis&&g.brokenAxis.hasBreaks||g.logarithmic&&d)&&g.lin2val;var k=1,h=0;n=n&&g.old?g.old.transA:g.transA;n||(n=g.transA);e&&(k*=-1,h=g.len);g.reversed&&(k*=-1,h-=k*(g.sector||g.len));a?(b=(b*k+h-q)/n+m,d&&(b=g.lin2val(b))):(d&&(b=g.val2lin(b)),b=c(m)?k*(b-m)*n+h+k*q+(c(f)?n*f:0):void 0);return b};a.prototype.toPixels=function(c,b){return this.translate(c,!1,!this.horiz,null,!0)+(b?0:this.pos)};a.prototype.toValue=function(c,b){return this.translate(c-(b?
188
- 0:this.pos),!0,!this.horiz,null,!0)};a.prototype.getPlotLinePath=function(b){function a(c,b,a){if("pass"!==N&&c<b||c>a)N?c=r(c,b,a):E=!0;return c}var e=this,n=e.chart,d=e.left,f=e.top,g=b.old,q=b.value,k=b.lineWidth,h=g&&n.oldChartHeight||n.chartHeight,p=g&&n.oldChartWidth||n.chartWidth,C=e.transB,u=b.translatedValue,N=b.force,H,l,B,x,E;b={value:q,lineWidth:k,old:g,force:N,acrossPanes:b.acrossPanes,translatedValue:u};m(this,"getPlotLinePath",b,function(b){u=F(u,e.translate(q,null,null,g));u=r(u,-1E5,
189
- 1E5);H=B=Math.round(u+C);l=x=Math.round(h-u-C);c(u)?e.horiz?(l=f,x=h-e.bottom,H=B=a(H,d,d+e.width)):(H=d,B=p-e.right,l=x=a(l,f,f+e.height)):(E=!0,N=!1);b.path=E&&!N?null:n.renderer.crispLine([["M",H,l],["L",B,x]],k||1)});return b.path};a.prototype.getLinearTickPositions=function(c,b,a){var e=G(Math.floor(b/c)*c);a=G(Math.ceil(a/c)*c);var n=[],d;G(e+c)===e&&(d=20);if(this.single)return[b];for(b=e;b<=a;){n.push(b);b=G(b+c,d);if(b===f)break;var f=b}return n};a.prototype.getMinorTickInterval=function(){var c=
190
- this.options;return!0===c.minorTicks?F(c.minorTickInterval,"auto"):!1===c.minorTicks?null:c.minorTickInterval};a.prototype.getMinorTickPositions=function(){var c=this.options,b=this.tickPositions,a=this.minorTickInterval,e=this.pointRangePadding||0,n=this.min-e;e=this.max+e;var d=e-n,f=[];if(d&&d/a<this.len/3){var g=this.logarithmic;if(g)this.paddedTicks.forEach(function(c,b,e){b&&f.push.apply(f,g.getLogTickPositions(a,e[b-1],e[b],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())f=
191
- f.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(a),n,e,c.startOfWeek));else for(c=n+(b[0]-n)%a;c<=e&&c!==f[0];c+=a)f.push(c)}0!==f.length&&this.trimTicks(f);return f};a.prototype.adjustForMinRange=function(){var c=this.options,b=this.logarithmic,a=this.min,e=this.max,n=0,d,g,m,q;this.isXAxis&&"undefined"===typeof this.minRange&&!b&&(f(c.min)||f(c.max)?this.minRange=null:(this.series.forEach(function(c){m=c.xData;q=c.xIncrement?1:m.length-1;if(1<m.length)for(d=q;0<d;d--)if(g=m[d]-
192
- m[d-1],!n||g<n)n=g}),this.minRange=Math.min(5*n,this.dataMax-this.dataMin)));if(e-a<this.minRange){var h=this.dataMax-this.dataMin>=this.minRange;var C=this.minRange;var u=(C-e+a)/2;u=[a-u,F(c.min,a-u)];h&&(u[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);a=p(u);e=[a+C,F(c.max,a+C)];h&&(e[2]=b?b.log2lin(this.dataMax):this.dataMax);e=k(e);e-a<C&&(u[0]=e-C,u[1]=F(c.min,e-C),a=p(u))}this.min=a;this.max=e};a.prototype.getClosest=function(){var c;this.categories?c=1:this.series.forEach(function(b){var a=
193
- b.closestPointRange,e=b.visible||!b.chart.options.chart.ignoreHiddenSeries;!b.noSharedTooltip&&f(a)&&e&&(c=f(c)?Math.min(c,a):a)});return c};a.prototype.nameToX=function(c){var b=e(this.categories),a=b?this.categories:this.names,n=c.options.x;c.series.requireSorting=!1;f(n)||(n=this.options.uniqueNames?b?a.indexOf(c.name):F(a.keys[c.name],-1):c.series.autoIncrement());if(-1===n){if(!b)var d=a.length}else d=n;"undefined"!==typeof d&&(this.names[d]=c.name,this.names.keys[c.name]=d);return d};a.prototype.updateNames=
194
- function(){var c=this,b=this.names;0<b.length&&(Object.keys(b.keys).forEach(function(c){delete b.keys[c]}),b.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(b){b.xIncrement=null;if(!b.points||b.isDirtyData)c.max=Math.max(c.max,b.xData.length-1),b.processData(),b.generatePoints();b.data.forEach(function(a,e){if(a&&a.options&&"undefined"!==typeof a.name){var n=c.nameToX(a);"undefined"!==typeof n&&n!==a.x&&(a.x=n,b.xData[e]=n)}})}))};a.prototype.setAxisTranslation=function(){var c=
195
- this,b=c.max-c.min,a=c.linkedParent,e=!!c.categories,d=c.isXAxis,f=c.axisPointRange||0,g=0,q=0,k=c.transA;if(d||e||f){var h=c.getClosest();a?(g=a.minPointOffset,q=a.pointRangePadding):c.series.forEach(function(b){var a=e?1:d?F(b.options.pointRange,h,0):c.axisPointRange||0,m=b.options.pointPlacement;f=Math.max(f,a);if(!c.single||e)b=b.is("xrange")?!d:d,g=Math.max(g,b&&n(m)?0:a/2),q=Math.max(q,b&&"on"===m?0:a)});a=c.ordinal&&c.ordinal.slope&&h?c.ordinal.slope/h:1;c.minPointOffset=g*=a;c.pointRangePadding=
196
- q*=a;c.pointRange=Math.min(f,c.single&&e?1:b);d&&(c.closestPointRange=h)}c.translationSlope=c.transA=k=c.staticScale||c.len/(b+q||1);c.transB=c.horiz?c.left:c.bottom;c.minPixelPadding=k*g;m(this,"afterSetAxisTranslation")};a.prototype.minFromRange=function(){return this.max-this.range};a.prototype.setTickInterval=function(b){var a=this,e=a.chart,n=a.logarithmic,d=a.options,g=a.isXAxis,k=a.isLinked,h=d.tickPixelInterval,C=a.categories,p=a.softThreshold,l=d.maxPadding,B=d.minPadding,N=d.tickInterval,
197
- x=c(a.threshold)?a.threshold:null;a.dateTime||C||k||this.getTickAmount();var E=F(a.userMin,d.min);var L=F(a.userMax,d.max);if(k){a.linkedParent=e[a.coll][d.linkedTo];var r=a.linkedParent.getExtremes();a.min=F(r.min,r.dataMin);a.max=F(r.max,r.dataMax);d.type!==a.linkedParent.options.type&&u(11,1,e)}else{if(p&&f(x))if(a.dataMin>=x)r=x,B=0;else if(a.dataMax<=x){var t=x;l=0}a.min=F(E,r,a.dataMin);a.max=F(L,t,a.dataMax)}n&&(a.positiveValuesOnly&&!b&&0>=Math.min(a.min,F(a.dataMin,a.min))&&u(10,1,e),a.min=
198
- G(n.log2lin(a.min),16),a.max=G(n.log2lin(a.max),16));a.range&&f(a.max)&&(a.userMin=a.min=E=Math.max(a.dataMin,a.minFromRange()),a.userMax=L=a.max,a.range=null);m(a,"foundExtremes");a.beforePadding&&a.beforePadding();a.adjustForMinRange();!(C||a.axisPointRange||a.stacking&&a.stacking.usePercentage||k)&&f(a.min)&&f(a.max)&&(e=a.max-a.min)&&(!f(E)&&B&&(a.min-=e*B),!f(L)&&l&&(a.max+=e*l));c(a.userMin)||(c(d.softMin)&&d.softMin<a.min&&(a.min=E=d.softMin),c(d.floor)&&(a.min=Math.max(a.min,d.floor)));c(a.userMax)||
199
- (c(d.softMax)&&d.softMax>a.max&&(a.max=L=d.softMax),c(d.ceiling)&&(a.max=Math.min(a.max,d.ceiling)));p&&f(a.dataMin)&&(x=x||0,!f(E)&&a.min<x&&a.dataMin>=x?a.min=a.options.minRange?Math.min(x,a.max-a.minRange):x:!f(L)&&a.max>x&&a.dataMax<=x&&(a.max=a.options.minRange?Math.max(x,a.min+a.minRange):x));c(a.min)&&c(a.max)&&!this.chart.polar&&a.min>a.max&&(f(a.options.min)?a.max=a.min:f(a.options.max)&&(a.min=a.max));a.tickInterval=a.min===a.max||"undefined"===typeof a.min||"undefined"===typeof a.max?1:
200
- k&&a.linkedParent&&!N&&h===a.linkedParent.options.tickPixelInterval?N=a.linkedParent.tickInterval:F(N,this.tickAmount?(a.max-a.min)/Math.max(this.tickAmount-1,1):void 0,C?1:(a.max-a.min)*h/Math.max(a.len,h));g&&!b&&(a.series.forEach(function(c){c.forceCrop=c.forceCropping&&c.forceCropping();c.processData(a.min!==(a.old&&a.old.min)||a.max!==(a.old&&a.old.max))}),m(this,"postProcessData"));a.setAxisTranslation();m(this,"initialAxisTranslation");a.pointRange&&!N&&(a.tickInterval=Math.max(a.pointRange,
201
- a.tickInterval));b=F(d.minTickInterval,a.dateTime&&!a.series.some(function(c){return c.noSharedTooltip})?a.closestPointRange:0);!N&&a.tickInterval<b&&(a.tickInterval=b);a.dateTime||a.logarithmic||N||(a.tickInterval=H(a.tickInterval,void 0,q(a.tickInterval),F(d.allowDecimals,.5>a.tickInterval||void 0!==this.tickAmount),!!this.tickAmount));this.tickAmount||(a.tickInterval=a.unsquish());this.setTickPositions()};a.prototype.setTickPositions=function(){var c=this.options,b=c.tickPositions,a=this.getMinorTickInterval(),
202
- e=this.hasVerticalPanning(),d="colorAxis"===this.coll,n=(d||!e)&&c.startOnTick;e=(d||!e)&&c.endOnTick;d=c.tickPositioner;this.tickmarkOffset=this.categories&&"between"===c.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===a&&this.tickInterval?this.tickInterval/5:a;this.single=this.min===this.max&&f(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==c.allowDecimals);this.tickPositions=a=b&&b.slice();!a&&(this.ordinal&&this.ordinal.positions||!((this.max-
203
- this.min)/this.tickInterval>Math.max(2*this.len,200))?a=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,c.units),this.min,this.max,c.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(a=[this.min,this.max],u(19,!1,this.chart)),a.length>this.len&&(a=[a[0],a.pop()],a[0]===a[1]&&
204
- (a.length=1)),this.tickPositions=a,d&&(d=d.apply(this,[this.min,this.max])))&&(this.tickPositions=a=d);this.paddedTicks=a.slice(0);this.trimTicks(a,n,e);this.isLinked||(this.single&&2>a.length&&!this.categories&&!this.series.some(function(c){return c.is("heatmap")&&"between"===c.options.pointPlacement})&&(this.min-=.5,this.max+=.5),b||d||this.adjustTickAmount());m(this,"afterSetTickPositions")};a.prototype.trimTicks=function(c,b,a){var e=c[0],d=c[c.length-1],n=!this.isOrdinal&&this.minPointOffset||
205
- 0;m(this,"trimTicks");if(!this.isLinked){if(b&&-Infinity!==e)this.min=e;else for(;this.min-n>c[0];)c.shift();if(a)this.max=d;else for(;this.max+n<c[c.length-1];)c.pop();0===c.length&&f(e)&&!this.options.tickPositions&&c.push((d+e)/2)}};a.prototype.alignToOthers=function(){var c={},b=this.options,a;!1!==this.chart.options.chart.alignTicks&&b.alignTicks&&!1!==b.startOnTick&&!1!==b.endOnTick&&!this.logarithmic&&this.chart[this.coll].forEach(function(b){var e=b.options;e=[b.horiz?e.left:e.top,e.width,
206
- e.height,e.pane].join();b.series.length&&(c[e]?a=!0:c[e]=1)});return a};a.prototype.getTickAmount=function(){var c=this.options,b=c.tickPixelInterval,a=c.tickAmount;!f(c.tickInterval)&&!a&&this.len<b&&!this.isRadial&&!this.logarithmic&&c.startOnTick&&c.endOnTick&&(a=2);!a&&this.alignToOthers()&&(a=Math.ceil(this.len/b)+1);4>a&&(this.finalTickAmt=a,a=5);this.tickAmount=a};a.prototype.adjustTickAmount=function(){var b=this.options,a=this.tickInterval,e=this.tickPositions,d=this.tickAmount,n=this.finalTickAmt,
207
- g=e&&e.length,m=F(this.threshold,this.softThreshold?0:null);if(this.hasData()&&c(this.min)&&c(this.max)){if(g<d){for(;e.length<d;)e.length%2||this.min===m?e.push(G(e[e.length-1]+a)):e.unshift(G(e[0]-a));this.transA*=(g-1)/(d-1);this.min=b.startOnTick?e[0]:Math.min(this.min,e[0]);this.max=b.endOnTick?e[e.length-1]:Math.max(this.max,e[e.length-1])}else g>d&&(this.tickInterval*=2,this.setTickPositions());if(f(n)){for(a=b=e.length;a--;)(3===n&&1===a%2||2>=n&&0<a&&a<b-1)&&e.splice(a,1);this.finalTickAmt=
208
- void 0}}};a.prototype.setScale=function(){var c=!1,b=!1;this.series.forEach(function(a){c=c||a.isDirtyData||a.isDirty;b=b||a.xAxis&&a.xAxis.isDirty||!1});this.setAxisSize();var a=this.len!==(this.old&&this.old.len);a||c||b||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=
209
- a||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();c&&this.panningState&&(this.panningState.isDirty=!0);m(this,"afterSetScale")};a.prototype.setExtremes=function(c,b,a,e,d){var n=this,f=n.chart;a=F(a,!0);n.series.forEach(function(c){delete c.kdTree});d=E(d,{min:c,max:b});m(n,"setExtremes",d,function(){n.userMin=c;n.userMax=b;n.eventArgs=d;a&&f.redraw(e)})};a.prototype.zoom=function(c,b){var a=this,e=this.dataMin,d=this.dataMax,
210
- n=this.options,g=Math.min(e,F(n.min,e)),q=Math.max(d,F(n.max,d));c={newMin:c,newMax:b};m(this,"zoom",c,function(c){var b=c.newMin,n=c.newMax;if(b!==a.min||n!==a.max)a.allowZoomOutside||(f(e)&&(b<g&&(b=g),b>q&&(b=q)),f(d)&&(n<g&&(n=g),n>q&&(n=q))),a.displayBtn="undefined"!==typeof b||"undefined"!==typeof n,a.setExtremes(b,n,!1,void 0,{trigger:"zoom"});c.zoomed=!0});return c.zoomed};a.prototype.setAxisSize=function(){var c=this.chart,b=this.options,a=b.offsets||[0,0,0,0],e=this.horiz,d=this.width=Math.round(W(F(b.width,
211
- c.plotWidth-a[3]+a[1]),c.plotWidth)),n=this.height=Math.round(W(F(b.height,c.plotHeight-a[0]+a[2]),c.plotHeight)),f=this.top=Math.round(W(F(b.top,c.plotTop+a[0]),c.plotHeight,c.plotTop));b=this.left=Math.round(W(F(b.left,c.plotLeft+a[3]),c.plotWidth,c.plotLeft));this.bottom=c.chartHeight-n-f;this.right=c.chartWidth-d-b;this.len=Math.max(e?d:n,0);this.pos=e?b:f};a.prototype.getExtremes=function(){var c=this.logarithmic;return{min:c?G(c.lin2log(this.min)):this.min,max:c?G(c.lin2log(this.max)):this.max,
212
- dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};a.prototype.getThreshold=function(c){var b=this.logarithmic,a=b?b.lin2log(this.min):this.min;b=b?b.lin2log(this.max):this.max;null===c||-Infinity===c?c=a:Infinity===c?c=b:a>c?c=a:b<c&&(c=b);return this.translate(c,0,1,0,1)};a.prototype.autoLabelAlign=function(c){var b=(F(c,0)-90*this.side+720)%360;c={align:"center"};m(this,"autoLabelAlign",c,function(c){15<b&&165>b?c.align="right":195<b&&345>b&&(c.align="left")});
213
- return c.align};a.prototype.tickSize=function(c){var b=this.options,a=F(b["tick"===c?"tickWidth":"minorTickWidth"],"tick"===c&&this.isXAxis&&!this.categories?1:0),e=b["tick"===c?"tickLength":"minorTickLength"];if(a&&e){"inside"===b[c+"Position"]&&(e=-e);var d=[e,a]}c={tickSize:d};m(this,"afterTickSize",c);return c.tickSize};a.prototype.labelMetrics=function(){var c=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[c]&&
214
- this.ticks[c].label)};a.prototype.unsquish=function(){var b=this.options.labels,a=this.horiz,e=this.tickInterval,d=this.len/(((this.categories?1:0)+this.max-this.min)/e),n=b.rotation,f=this.labelMetrics(),m=Math.max(this.max-this.min,0),q=function(c){var b=c/(d||1);b=1<b?Math.ceil(b):1;b*e>m&&Infinity!==c&&Infinity!==d&&m&&(b=Math.ceil(m/e));return G(b*e)},k=e,h,C,p=Number.MAX_VALUE;if(a){if(!b.staggerLines&&!b.step)if(c(n))var u=[n];else d<b.autoRotationLimit&&(u=b.autoRotation);u&&u.forEach(function(c){if(c===
215
- n||c&&-90<=c&&90>=c){C=q(Math.abs(f.h/Math.sin(g*c)));var b=C+Math.abs(c/360);b<p&&(p=b,h=c,k=C)}})}else b.step||(k=q(f.h));this.autoRotation=u;this.labelRotation=F(h,c(n)?n:0);return k};a.prototype.getSlotWidth=function(b){var a=this.chart,e=this.horiz,d=this.options.labels,n=Math.max(this.tickPositions.length-(this.categories?0:1),1),f=a.margin[3];if(b&&c(b.slotWidth))return b.slotWidth;if(e&&2>d.step)return d.rotation?0:(this.staggerLines||1)*this.len/n;if(!e){b=d.style.width;if(void 0!==b)return parseInt(String(b),
216
- 10);if(f)return f-a.spacing[3]}return.33*a.chartWidth};a.prototype.renderUnsquish=function(){var c=this.chart,b=c.renderer,a=this.tickPositions,e=this.ticks,d=this.options.labels,f=d.style,g=this.horiz,m=this.getSlotWidth(),q=Math.max(1,Math.round(m-2*d.padding)),k={},h=this.labelMetrics(),C=f.textOverflow,p=0;n(d.rotation)||(k.rotation=d.rotation||0);a.forEach(function(c){c=e[c];c.movedLabel&&c.replaceMovedLabel();c&&c.label&&c.label.textPxLength>p&&(p=c.label.textPxLength)});this.maxLabelLength=
217
- p;if(this.autoRotation)p>q&&p>h.h?k.rotation=this.labelRotation:this.labelRotation=0;else if(m){var u=q;if(!C){var H="clip";for(q=a.length;!g&&q--;){var l=a[q];if(l=e[l].label)l.styles&&"ellipsis"===l.styles.textOverflow?l.css({textOverflow:"clip"}):l.textPxLength>m&&l.css({width:m+"px"}),l.getBBox().height>this.len/a.length-(h.h-h.f)&&(l.specificTextOverflow="ellipsis")}}}k.rotation&&(u=p>.5*c.chartHeight?.33*c.chartHeight:p,C||(H="ellipsis"));if(this.labelAlign=d.align||this.autoLabelAlign(this.labelRotation))k.align=
218
- this.labelAlign;a.forEach(function(c){var b=(c=e[c])&&c.label,a=f.width,d={};b&&(b.attr(k),c.shortenLabel?c.shortenLabel():u&&!a&&"nowrap"!==f.whiteSpace&&(u<b.textPxLength||"SPAN"===b.element.tagName)?(d.width=u+"px",C||(d.textOverflow=b.specificTextOverflow||H),b.css(d)):b.styles&&b.styles.width&&!d.width&&!a&&b.css({width:null}),delete b.specificTextOverflow,c.rotation=k.rotation)},this);this.tickRotCorr=b.rotCorr(h.b,this.labelRotation||0,0!==this.side)};a.prototype.hasData=function(){return this.series.some(function(c){return c.hasData()})||
219
- this.options.showEmpty&&f(this.min)&&f(this.max)};a.prototype.addTitle=function(c){var b=this.chart.renderer,a=this.horiz,e=this.opposite,d=this.options.title,n=this.chart.styledMode,f;this.axisTitle||((f=d.textAlign)||(f=(a?{low:"left",middle:"center",high:"right"}:{low:e?"right":"left",middle:"center",high:e?"left":"right"})[d.align]),this.axisTitle=b.text(d.text||"",0,0,d.useHTML).attr({zIndex:7,rotation:d.rotation,align:f}).addClass("highcharts-axis-title"),n||this.axisTitle.css(C(d.style)),this.axisTitle.add(this.axisGroup),
220
- this.axisTitle.isNew=!0);n||d.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[c?"show":"hide"](c)};a.prototype.generateTick=function(c){var b=this.ticks;b[c]?b[c].addLabel():b[c]=new t(this,c)};a.prototype.getOffset=function(){var c=this,b=this,a=b.chart,e=a.renderer,d=b.options,n=b.tickPositions,g=b.ticks,q=b.horiz,k=b.side,h=a.inverted&&!b.isZAxis?[1,0,3,2][k]:k,C=b.hasData(),p=d.title,u=d.labels,H=a.axisOffset;a=a.clipOffset;var l=[-1,1,1,-1][k],B=d.className,
221
- x=b.axisParent,E,r=0,t=0,ha=0;b.showAxis=E=C||d.showEmpty;b.staggerLines=b.horiz&&u.staggerLines||void 0;if(!b.axisGroup){var G=function(b,a,d){return e.g(b).attr({zIndex:d}).addClass("highcharts-"+c.coll.toLowerCase()+a+" "+(c.isRadial?"highcharts-radial-axis"+a+" ":"")+(B||"")).add(x)};b.gridGroup=G("grid","-grid",d.gridZIndex);b.axisGroup=G("axis","",d.zIndex);b.labelGroup=G("axis-labels","-labels",u.zIndex)}C||b.isLinked?(n.forEach(function(c){b.generateTick(c)}),b.renderUnsquish(),b.reserveSpaceDefault=
222
- 0===k||2===k||{1:"left",3:"right"}[k]===b.labelAlign,F(u.reserveSpace,"center"===b.labelAlign?!0:null,b.reserveSpaceDefault)&&n.forEach(function(c){ha=Math.max(g[c].getLabelSize(),ha)}),b.staggerLines&&(ha*=b.staggerLines),b.labelOffset=ha*(b.opposite?-1:1)):L(g,function(c,b){c.destroy();delete g[b]});if(p&&p.text&&!1!==p.enabled&&(b.addTitle(E),E&&!1!==p.reserveSpace)){b.titleOffset=r=b.axisTitle.getBBox()[q?"height":"width"];var J=p.offset;t=f(J)?0:F(p.margin,q?5:10)}b.renderLine();b.offset=l*F(d.offset,
223
- H[k]?H[k]+(d.margin||0):0);b.tickRotCorr=b.tickRotCorr||{x:0,y:0};p=0===k?-b.labelMetrics().h:2===k?b.tickRotCorr.y:0;C=Math.abs(ha)+t;ha&&(C=C-p+l*(q?F(u.y,b.tickRotCorr.y+8*l):u.x));b.axisTitleMargin=F(J,C);b.getMaxLabelDimensions&&(b.maxLabelDimensions=b.getMaxLabelDimensions(g,n));q=this.tickSize("tick");H[k]=Math.max(H[k],(b.axisTitleMargin||0)+r+l*b.offset,C,n&&n.length&&q?q[0]+l*b.offset:0);d=d.offset?0:2*Math.floor(b.axisLine.strokeWidth()/2);a[h]=Math.max(a[h],d);m(this,"afterGetOffset")};
224
- a.prototype.getLinePath=function(c){var b=this.chart,a=this.opposite,e=this.offset,d=this.horiz,n=this.left+(a?this.width:0)+e;e=b.chartHeight-this.bottom-(a?this.height:0)+e;a&&(c*=-1);return b.renderer.crispLine([["M",d?this.left:n,d?e:this.top],["L",d?b.chartWidth-this.right:n,d?e:b.chartHeight-this.bottom]],c)};a.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,
225
- "stroke-width":this.options.lineWidth,zIndex:7}))};a.prototype.getTitlePosition=function(){var c=this.horiz,b=this.left,a=this.top,e=this.len,d=this.options.title,n=c?b:a,f=this.opposite,g=this.offset,q=d.x,k=d.y,h=this.axisTitle,C=this.chart.renderer.fontMetrics(d.style.fontSize,h);h=Math.max(h.getBBox(null,0).height-C.h-1,0);e={low:n+(c?0:e),middle:n+e/2,high:n+(c?e:0)}[d.align];b=(c?a+this.height:b)+(c?1:-1)*(f?-1:1)*this.axisTitleMargin+[-h,h,C.f,-h][this.side];c={x:c?e+q:b+(f?this.width:0)+g+
226
- q,y:c?b+k-(f?this.height:0)+g:e+k};m(this,"afterGetTitlePosition",{titlePosition:c});return c};a.prototype.renderMinorTick=function(c,b){var a=this.minorTicks;a[c]||(a[c]=new t(this,c,"minor"));b&&a[c].isNew&&a[c].render(null,!0);a[c].render(null,!1,1)};a.prototype.renderTick=function(c,b,a){var e=this.ticks;if(!this.isLinked||c>=this.min&&c<=this.max||this.grid&&this.grid.isColumn)e[c]||(e[c]=new t(this,c)),a&&e[c].isNew&&e[c].render(b,!0,-1),e[c].render(b)};a.prototype.render=function(){var b=this,
227
- a=b.chart,e=b.logarithmic,d=b.options,n=b.isLinked,f=b.tickPositions,g=b.axisTitle,q=b.ticks,k=b.minorTicks,C=b.alternateBands,p=d.stackLabels,u=d.alternateGridColor,H=b.tickmarkOffset,l=b.axisLine,F=b.showAxis,B=h(a.renderer.globalAnimation),x,E;b.labelEdge.length=0;b.overlap=!1;[q,k,C].forEach(function(c){L(c,function(c){c.isActive=!1})});if(b.hasData()||n){var r=b.chart.hasRendered&&b.old&&c(b.old.min);b.minorTickInterval&&!b.categories&&b.getMinorTickPositions().forEach(function(c){b.renderMinorTick(c,
228
- r)});f.length&&(f.forEach(function(c,a){b.renderTick(c,a,r)}),H&&(0===b.min||b.single)&&(q[-1]||(q[-1]=new t(b,-1,null,!0)),q[-1].render(-1)));u&&f.forEach(function(c,d){E="undefined"!==typeof f[d+1]?f[d+1]+H:b.max-H;0===d%2&&c<b.max&&E<=b.max+(a.polar?-H:H)&&(C[c]||(C[c]=new D.PlotLineOrBand(b)),x=c+H,C[c].options={from:e?e.lin2log(x):x,to:e?e.lin2log(E):E,color:u,className:"highcharts-alternate-grid"},C[c].render(),C[c].isActive=!0)});b._addedPlotLB||(b._addedPlotLB=!0,(d.plotLines||[]).concat(d.plotBands||
229
- []).forEach(function(c){b.addPlotBandOrLine(c)}))}[q,k,C].forEach(function(c){var b=[],e=B.duration;L(c,function(c,a){c.isActive||(c.render(a,!1,0),c.isActive=!1,b.push(a))});T(function(){for(var a=b.length;a--;)c[b[a]]&&!c[b[a]].isActive&&(c[b[a]].destroy(),delete c[b[a]])},c!==C&&a.hasRendered&&e?e:0)});l&&(l[l.isPlaced?"animate":"attr"]({d:this.getLinePath(l.strokeWidth())}),l.isPlaced=!0,l[F?"show":"hide"](F));g&&F&&(d=b.getTitlePosition(),c(d.y)?(g[g.isNew?"attr":"animate"](d),g.isNew=!1):(g.attr("y",
230
- -9999),g.isNew=!0));p&&p.enabled&&b.stacking&&b.stacking.renderStackTotals();b.old={len:b.len,max:b.max,min:b.min,transA:b.transA,userMax:b.userMax,userMin:b.userMin};b.isDirty=!1;m(this,"afterRender")};a.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(c){c.render()}));this.series.forEach(function(c){c.isDirty=!0})};a.prototype.getKeepProps=function(){return this.keepProps||a.keepProps};a.prototype.destroy=function(c){var b=this,a=b.plotLinesAndBands,
231
- e=this.eventOptions;m(this,"destroy",{keepEvents:c});c||S(b);[b.ticks,b.minorTicks,b.alternateBands].forEach(function(c){B(c)});if(a)for(c=a.length;c--;)a[c].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(c){b[c]&&(b[c]=b[c].destroy())});for(var d in b.plotLinesAndBandsGroups)b.plotLinesAndBandsGroups[d]=b.plotLinesAndBandsGroups[d].destroy();L(b,function(c,a){-1===b.getKeepProps().indexOf(a)&&delete b[a]});this.eventOptions=e};a.prototype.drawCrosshair=
232
- function(c,b){var a=this.crosshair,e=F(a&&a.snap,!0),d=this.chart,n,g=this.cross;m(this,"drawCrosshair",{e:c,point:b});c||(c=this.cross&&this.cross.e);if(a&&!1!==(f(b)||!e)){e?f(b)&&(n=F("colorAxis"!==this.coll?b.crosshairPos:null,this.isXAxis?b.plotX:this.len-b.plotY)):n=c&&(this.horiz?c.chartX-this.pos:this.len-c.chartY+this.pos);if(f(n)){var q={value:b&&(this.isXAxis?b.x:F(b.stackY,b.y)),translatedValue:n};d.polar&&E(q,{isCrosshair:!0,chartX:c&&c.chartX,chartY:c&&c.chartY,point:b});q=this.getPlotLinePath(q)||
233
- null}if(!f(q)){this.hideCrosshair();return}e=this.categories&&!this.isRadial;g||(this.cross=g=d.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(e?"category ":"thin ")+(a.className||"")).attr({zIndex:F(a.zIndex,2)}).add(),d.styledMode||(g.attr({stroke:a.color||(e?A.parse(y.highlightColor20).setOpacity(.25).get():y.neutralColor20),"stroke-width":F(a.width,1)}).css({"pointer-events":"none"}),a.dashStyle&&g.attr({dashstyle:a.dashStyle})));g.show().attr({d:q});e&&!a.width&&g.attr({"stroke-width":this.transA});
234
- this.cross.e=c}else this.hideCrosshair();m(this,"afterDrawCrosshair",{e:c,point:b})};a.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();m(this,"afterHideCrosshair")};a.prototype.hasVerticalPanning=function(){var c=this.chart.options.chart.panning;return!!(c&&c.enabled&&/y/.test(c.type))};a.prototype.validatePositiveValue=function(b){return c(b)&&0<b};a.prototype.update=function(c,b){var a=this.chart;c=C(this.userOptions,c);this.destroy(!0);this.init(a,c);a.isDirtyBox=!0;F(b,!0)&&a.redraw()};
235
- a.prototype.remove=function(c){for(var b=this.chart,a=this.coll,e=this.series,d=e.length;d--;)e[d]&&e[d].remove(!1);x(b.axes,this);x(b[a],this);b[a].forEach(function(c,b){c.options.index=c.userOptions.index=b});this.destroy();b.isDirtyBox=!0;F(c,!0)&&b.redraw()};a.prototype.setTitle=function(c,b){this.update({title:c},b)};a.prototype.setCategories=function(c,b){this.update({categories:c},b)};a.defaultOptions=v.defaultXAxisOptions;a.keepProps="extKey hcEvents names series userMax userMin".split(" ");
236
- return a}();"";return a});I(a,"Core/Axis/DateTimeAxis.js",[a["Core/Utilities.js"]],function(a){var r=a.addEvent,A=a.getMagnitude,y=a.normalizeTickInterval,z=a.timeUnits,w;(function(a){function t(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function l(b){"datetime"!==b.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new d(this))}var h=[];a.compose=function(b){-1===h.indexOf(b)&&(h.push(b),b.keepProps.push("dateTime"),b.prototype.getTimeTicks=t,r(b,"init",
237
- l));return b};var d=function(){function b(b){this.axis=b}b.prototype.normalizeTimeTickInterval=function(b,a){var d=a||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];a=d[d.length-1];var g=z[a[0]],h=a[1],f;for(f=0;f<d.length&&!(a=d[f],g=z[a[0]],h=a[1],d[f+1]&&b<=(g*h[h.length-1]+z[d[f+1][0]])/2);f++);g===z.year&&b<5*g&&(h=[1,2,5]);b=y(b/g,h,"year"===a[0]?
238
- Math.max(A(b/g),1):1);return{unitRange:g,count:b,unitName:a[0]}};b.prototype.getXDateFormat=function(b,a){var d=this.axis;return d.closestPointRange?d.chart.time.getDateFormat(d.closestPointRange,b,d.options.startOfWeek,a)||a.year:a.day};return b}();a.Additions=d})(w||(w={}));return w});I(a,"Core/Axis/LogarithmicAxis.js",[a["Core/Utilities.js"]],function(a){var r=a.addEvent,A=a.getMagnitude,y=a.normalizeTickInterval,z=a.pick,w;(function(a){function t(b){var a=this.logarithmic;"logarithmic"!==b.userOptions.type?
239
- this.logarithmic=void 0:a||(this.logarithmic=new d(this))}function l(){var b=this.logarithmic;b&&(this.lin2val=function(a){return b.lin2log(a)},this.val2lin=function(a){return b.log2lin(a)})}var h=[];a.compose=function(b){-1===h.indexOf(b)&&(h.push(b),b.keepProps.push("logarithmic"),r(b,"init",t),r(b,"afterInit",l));return b};var d=function(){function b(b){this.axis=b}b.prototype.getLogTickPositions=function(b,a,d,h){var g=this.axis,f=g.len,k=g.options,p=[];h||(this.minorAutoInterval=void 0);if(.5<=
240
- b)b=Math.round(b),p=g.getLinearTickPositions(b,a,d);else if(.08<=b){var u=Math.floor(a),l,m=k=void 0;for(f=.3<b?[1,2,4]:.15<b?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];u<d+1&&!m;u++){var q=f.length;for(l=0;l<q&&!m;l++){var e=this.log2lin(this.lin2log(u)*f[l]);e>a&&(!h||k<=d)&&"undefined"!==typeof k&&p.push(k);k>d&&(m=!0);k=e}}}else a=this.lin2log(a),d=this.lin2log(d),b=h?g.getMinorTickInterval():k.tickInterval,b=z("auto"===b?null:b,this.minorAutoInterval,k.tickPixelInterval/(h?5:1)*(d-a)/((h?f/g.tickPositions.length:
241
- f)||1)),b=y(b,void 0,A(b)),p=g.getLinearTickPositions(b,a,d).map(this.log2lin),h||(this.minorAutoInterval=b/5);h||(g.tickInterval=b);return p};b.prototype.lin2log=function(b){return Math.pow(10,b)};b.prototype.log2lin=function(b){return Math.log(b)/Math.LN10};return b}();a.Additions=d})(w||(w={}));return w});I(a,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[a["Core/Utilities.js"]],function(a){var r=a.erase,A=a.extend,y=a.isNumber,z;(function(a){var w=[],t;a.compose=function(a,d){t||(t=a);-1===
242
- w.indexOf(d)&&(w.push(d),A(d.prototype,l.prototype));return d};var l=function(){function a(){}a.prototype.getPlotBandPath=function(a,b,g){void 0===g&&(g=this.options);var d=this.getPlotLinePath({value:b,force:!0,acrossPanes:g.acrossPanes}),k=[],h=this.horiz;b=!y(this.min)||!y(this.max)||a<this.min&&b<this.min||a>this.max&&b>this.max;a=this.getPlotLinePath({value:a,force:!0,acrossPanes:g.acrossPanes});g=1;if(a&&d){if(b){var l=a.toString()===d.toString();g=0}for(b=0;b<a.length;b+=2){var f=a[b],B=a[b+
243
- 1],x=d[b],u=d[b+1];"M"!==f[0]&&"L"!==f[0]||"M"!==B[0]&&"L"!==B[0]||"M"!==x[0]&&"L"!==x[0]||"M"!==u[0]&&"L"!==u[0]||(h&&x[1]===f[1]?(x[1]+=g,u[1]+=g):h||x[2]!==f[2]||(x[2]+=g,u[2]+=g),k.push(["M",f[1],f[2]],["L",B[1],B[2]],["L",u[1],u[2]],["L",x[1],x[2]],["Z"]));k.isFlat=l}}return k};a.prototype.addPlotBand=function(a){return this.addPlotBandOrLine(a,"plotBands")};a.prototype.addPlotLine=function(a){return this.addPlotBandOrLine(a,"plotLines")};a.prototype.addPlotBandOrLine=function(a,b){var d=this,
244
- h=this.userOptions,k=new t(this,a);this.visible&&(k=k.render());if(k){this._addedPlotLB||(this._addedPlotLB=!0,(h.plotLines||[]).concat(h.plotBands||[]).forEach(function(b){d.addPlotBandOrLine(b)}));if(b){var l=h[b]||[];l.push(a);h[b]=l}this.plotLinesAndBands.push(k)}return k};a.prototype.removePlotBandOrLine=function(a){var b=this.plotLinesAndBands,d=this.options,h=this.userOptions;if(b){for(var k=b.length;k--;)b[k].id===a&&b[k].destroy();[d.plotLines||[],h.plotLines||[],d.plotBands||[],h.plotBands||
245
- []].forEach(function(b){for(k=b.length;k--;)(b[k]||{}).id===a&&r(b,b[k])})}};a.prototype.removePlotBand=function(a){this.removePlotBandOrLine(a)};a.prototype.removePlotLine=function(a){this.removePlotBandOrLine(a)};return a}()})(z||(z={}));return z});I(a,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[a["Core/Color/Palette.js"],a["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],a["Core/Utilities.js"]],function(a,v,A){var r=A.arrayMax,z=A.arrayMin,w=A.defined,D=A.destroyObjectProperties,t=A.erase,l=
246
- A.fireEvent,h=A.merge,d=A.objectEach,b=A.pick;A=function(){function g(b,a){this.axis=b;a&&(this.options=a,this.id=a.id)}g.compose=function(b){return v.compose(g,b)};g.prototype.render=function(){l(this,"render");var g=this,k=g.axis,r=k.horiz,t=k.logarithmic,f=g.options,B=f.color,x=b(f.zIndex,0),u=f.events,E={},m=k.chart.renderer,q=f.label,e=g.label,c=f.to,n=f.from,C=f.value,H=g.svgElem,L=[],F=w(n)&&w(c);L=w(C);var W=!H,v={"class":"highcharts-plot-"+(F?"band ":"line ")+(f.className||"")},D=F?"bands":
247
- "lines";t&&(n=t.log2lin(n),c=t.log2lin(c),C=t.log2lin(C));k.chart.styledMode||(L?(v.stroke=B||a.neutralColor40,v["stroke-width"]=b(f.width,1),f.dashStyle&&(v.dashstyle=f.dashStyle)):F&&(v.fill=B||a.highlightColor10,f.borderWidth&&(v.stroke=f.borderColor,v["stroke-width"]=f.borderWidth)));E.zIndex=x;D+="-"+x;(t=k.plotLinesAndBandsGroups[D])||(k.plotLinesAndBandsGroups[D]=t=m.g("plot-"+D).attr(E).add());W&&(g.svgElem=H=m.path().attr(v).add(t));if(L)L=k.getPlotLinePath({value:C,lineWidth:H.strokeWidth(),
248
- acrossPanes:f.acrossPanes});else if(F)L=k.getPlotBandPath(n,c,f);else return;!g.eventsAdded&&u&&(d(u,function(c,b){H.on(b,function(c){u[b].apply(g,[c])})}),g.eventsAdded=!0);(W||!H.d)&&L&&L.length?H.attr({d:L}):H&&(L?(H.show(!0),H.animate({d:L})):H.d&&(H.hide(),e&&(g.label=e=e.destroy())));q&&(w(q.text)||w(q.formatter))&&L&&L.length&&0<k.width&&0<k.height&&!L.isFlat?(q=h({align:r&&F&&"center",x:r?!F&&4:10,verticalAlign:!r&&F&&"middle",y:r?F?16:10:F?6:-4,rotation:r&&!F&&90},q),this.renderLabel(q,L,
249
- F,x)):e&&e.hide();return g};g.prototype.renderLabel=function(b,a,d,g){var f=this.axis,k=f.chart.renderer,p=this.label;p||(this.label=p=k.text(this.getLabelText(b),0,0,b.useHTML).attr({align:b.textAlign||b.align,rotation:b.rotation,"class":"highcharts-plot-"+(d?"band":"line")+"-label "+(b.className||""),zIndex:g}).add(),f.chart.styledMode||p.css(h({textOverflow:"ellipsis"},b.style)));g=a.xBounds||[a[0][1],a[1][1],d?a[2][1]:a[0][1]];a=a.yBounds||[a[0][2],a[1][2],d?a[2][2]:a[0][2]];d=z(g);k=z(a);p.align(b,
250
- !1,{x:d,y:k,width:r(g)-d,height:r(a)-k});p.alignValue&&"left"!==p.alignValue||p.css({width:(90===p.rotation?f.height-(p.alignAttr.y-f.top):f.width-(p.alignAttr.x-f.left))+"px"});p.show(!0)};g.prototype.getLabelText=function(b){return w(b.formatter)?b.formatter.call(this):b.text};g.prototype.destroy=function(){t(this.axis.plotLinesAndBands,this);delete this.axis;D(this)};return g}();"";"";return A});I(a,"Core/Tooltip.js",[a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],
251
- a["Core/Renderer/RendererUtilities.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w){var r=a.format,t=v.doc,l=y.distribute,h=w.addEvent,d=w.clamp,b=w.css,g=w.defined,p=w.discardElement,k=w.extend,J=w.fireEvent,G=w.isArray,f=w.isNumber,B=w.isString,x=w.merge,u=w.pick,E=w.splat,m=w.syncTimeout;a=function(){function a(b,c){this.container=void 0;this.crosshairs=[];this.distance=0;this.isHidden=!0;this.isSticky=!1;this.now={};this.options={};this.outside=!1;this.chart=
252
- b;this.init(b,c)}a.prototype.applyFilter=function(){var b=this.chart;b.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+b.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{"in":"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{"in":"SourceGraphic"}}]}]})};
253
- a.prototype.bodyFormatter=function(b){return b.map(function(c){var b=c.series.tooltipOptions;return(b[(c.point.formatPrefix||"point")+"Formatter"]||c.point.tooltipFormatter).call(c.point,b[(c.point.formatPrefix||"point")+"Format"]||"")})};a.prototype.cleanSplit=function(b){this.chart.series.forEach(function(c){var a=c&&c.tt;a&&(!a.isActive||b?c.tt=a.destroy():a.isActive=!1)})};a.prototype.defaultFormatter=function(b){var c=this.points||E(this);var a=[b.tooltipFooterHeaderFormatter(c[0])];a=a.concat(b.bodyFormatter(c));
254
- a.push(b.tooltipFooterHeaderFormatter(c[0],!0));return a};a.prototype.destroy=function(){this.label&&(this.label=this.label.destroy());this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),p(this.container));w.clearTimeout(this.hideTimer);w.clearTimeout(this.tooltipTimeout)};a.prototype.getAnchor=function(b,c){var a=this.chart,e=a.pointer,d=a.inverted,f=a.plotTop,g=a.plotLeft,m,q,k=0,h=0;b=E(b);this.followPointer&&c?("undefined"===
255
- typeof c.chartX&&(c=e.normalize(c)),e=[c.chartX-g,c.chartY-f]):b[0].tooltipPos?e=b[0].tooltipPos:(b.forEach(function(c){m=c.series.yAxis;q=c.series.xAxis;k+=c.plotX||0;h+=c.plotLow?(c.plotLow+(c.plotHigh||0))/2:c.plotY||0;q&&m&&(d?(k+=f+a.plotHeight-q.len-q.pos,h+=g+a.plotWidth-m.len-m.pos):(k+=q.pos-g,h+=m.pos-f))}),k/=b.length,h/=b.length,e=[d?a.plotWidth-h:k,d?a.plotHeight-k:h],this.shared&&1<b.length&&c&&(d?e[0]=c.chartX-g:e[1]=c.chartY-f));return e.map(Math.round)};a.prototype.getLabel=function(){var a=
256
- this,c=this.chart.styledMode,d=this.options,f="tooltip"+(g(d.className)?" "+d.className:""),m=d.style.pointerEvents||(!this.followPointer&&d.stickOnContact?"auto":"none"),q=function(){a.inContact=!0},k=function(c){var b=a.chart.hoverSeries;a.inContact=a.shouldStickOnContact()&&a.chart.pointer.inClass(c.relatedTarget,"highcharts-tooltip");if(!a.inContact&&b&&b.onMouseOut)b.onMouseOut()},u,p=this.chart.renderer;if(!this.label){if(this.outside){var l=this.chart.options.chart.style,B=z.getRendererType();
257
- this.container=u=v.doc.createElement("div");u.className="highcharts-tooltip-container";b(u,{position:"absolute",top:"1px",pointerEvents:m,zIndex:Math.max(this.options.style.zIndex||0,(l&&l.zIndex||0)+3)});h(u,"mouseenter",q);h(u,"mouseleave",k);v.doc.body.appendChild(u);this.renderer=p=new B(u,0,0,l,void 0,void 0,p.styledMode)}this.split?this.label=p.g(f):(this.label=p.label("",0,0,d.shape,void 0,void 0,d.useHTML,void 0,f).attr({padding:d.padding,r:d.borderRadius}),c||this.label.attr({fill:d.backgroundColor,
258
- "stroke-width":d.borderWidth}).css(d.style).css({pointerEvents:m}).shadow(d.shadow));c&&d.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"}));if(a.outside&&!a.split){var x=this.label,E=x.xSetter,r=x.ySetter;x.xSetter=function(c){E.call(x,a.distance);u.style.left=c+"px"};x.ySetter=function(c){r.call(x,a.distance);u.style.top=c+"px"}}this.label.on("mouseenter",q).on("mouseleave",k).attr({zIndex:8}).add()}return this.label};a.prototype.getPosition=function(b,
259
- c,a){var e=this.chart,d=this.distance,n={},f=e.inverted&&a.h||0,g=this.outside,m=g?t.documentElement.clientWidth-2*d:e.chartWidth,q=g?Math.max(t.body.scrollHeight,t.documentElement.scrollHeight,t.body.offsetHeight,t.documentElement.offsetHeight,t.documentElement.clientHeight):e.chartHeight,k=e.pointer.getChartPosition(),h=function(n){var f="x"===n;return[n,f?m:q,f?b:c].concat(g?[f?b*k.scaleX:c*k.scaleY,f?k.left-d+(a.plotX+e.plotLeft)*k.scaleX:k.top-d+(a.plotY+e.plotTop)*k.scaleY,0,f?m:q]:[f?b:c,f?
260
- a.plotX+e.plotLeft:a.plotY+e.plotTop,f?e.plotLeft:e.plotTop,f?e.plotLeft+e.plotWidth:e.plotTop+e.plotHeight])},p=h("y"),l=h("x"),B,x=!this.followPointer&&u(a.ttBelow,!e.inverted===!!a.negative),E=function(c,b,a,e,m,q,h){var C=g?"y"===c?d*k.scaleY:d*k.scaleX:d,u=(a-e)/2,p=e<m-d,l=m+d+e<b,H=m-C-a+u;m=m+C-u;if(x&&l)n[c]=m;else if(!x&&p)n[c]=H;else if(p)n[c]=Math.min(h-e,0>H-f?H:H-f);else if(l)n[c]=Math.max(q,m+f+a>b?m:m+f);else return!1},r=function(c,b,a,e,f){var g;f<d||f>b-d?g=!1:n[c]=f<a/2?1:f>b-e/
261
- 2?b-e-2:f-a/2;return g},K=function(c){var b=p;p=l;l=b;B=c},G=function(){!1!==E.apply(0,p)?!1!==r.apply(0,l)||B||(K(!0),G()):B?n.x=n.y=0:(K(!0),G())};(e.inverted||1<this.len)&&K();G();return n};a.prototype.hide=function(b){var c=this;w.clearTimeout(this.hideTimer);b=u(b,this.options.hideDelay);this.isHidden||(this.hideTimer=m(function(){c.getLabel().fadeOut(b?void 0:b);c.isHidden=!0},b))};a.prototype.init=function(b,c){this.chart=b;this.options=c;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=
262
- !0;this.split=c.split&&!b.inverted&&!b.polar;this.shared=c.shared||this.split;this.outside=u(c.outside,!(!b.scrollablePixelsX&&!b.scrollablePixelsY))};a.prototype.shouldStickOnContact=function(){return!(this.followPointer||!this.options.stickOnContact)};a.prototype.isStickyOnContact=function(){return!(!this.shouldStickOnContact()||!this.inContact)};a.prototype.move=function(b,c,a,d){var e=this,f=e.now,n=!1!==e.options.animation&&!e.isHidden&&(1<Math.abs(b-f.x)||1<Math.abs(c-f.y)),g=e.followPointer||
263
- 1<e.len;k(f,{x:n?(2*f.x+b)/3:b,y:n?(f.y+c)/2:c,anchorX:g?void 0:n?(2*f.anchorX+a)/3:a,anchorY:g?void 0:n?(f.anchorY+d)/2:d});e.getLabel().attr(f);e.drawTracker();n&&(w.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){e&&e.move(b,c,a,d)},32))};a.prototype.refresh=function(b,c){var a=this.chart,e=this.options,d=E(b),f=d[0],g=[],m=e.formatter||this.defaultFormatter,q=this.shared,k=a.styledMode,h={};if(e.enabled){w.clearTimeout(this.hideTimer);this.followPointer=!this.split&&
264
- f.series.tooltipOptions.followPointer;var p=this.getAnchor(b,c),l=p[0],B=p[1];!q||!G(b)&&b.series&&b.series.noSharedTooltip?h=f.getLabelConfig():(a.pointer.applyInactiveState(d),d.forEach(function(c){c.setState("hover");g.push(c.getLabelConfig())}),h={x:f.category,y:f.y},h.points=g);this.len=g.length;b=m.call(h,this);m=f.series;this.distance=u(m.tooltipOptions.distance,16);if(!1===b)this.hide();else{if(this.split)this.renderSplit(b,d);else if(d=l,q=B,c&&a.pointer.isDirectTouch&&(d=c.chartX-a.plotLeft,
265
- q=c.chartY-a.plotTop),a.polar||!1===m.options.clip||m.shouldShowTooltip(d,q))c=this.getLabel(),e.style.width&&!k||c.css({width:this.chart.spacingBox.width+"px"}),c.attr({text:b&&b.join?b.join(""):b}),c.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+u(f.colorIndex,m.colorIndex)),k||c.attr({stroke:e.borderColor||f.color||m.color||A.neutralColor60}),this.updatePosition({plotX:l,plotY:B,negative:f.negative,ttBelow:f.ttBelow,h:p[2]||0});else{this.hide();return}this.isHidden&&this.label&&
266
- this.label.attr({opacity:1}).show();this.isHidden=!1}J(this,"refresh")}};a.prototype.renderSplit=function(b,c){function a(c,b,a,f,n){void 0===n&&(n=!0);a?(b=Y?0:I,c=d(c-f/2,P.left,P.right-f-(e.outside?Q:0))):(b-=da,c=n?c-f-J:c+J,c=d(c,n?c:P.left,P.right));return{x:c,y:b}}var e=this,f=e.chart,g=e.chart,m=g.chartWidth,q=g.chartHeight,h=g.plotHeight,p=g.plotLeft,x=g.plotTop,E=g.pointer,r=g.scrollablePixelsY;r=void 0===r?0:r;var G=g.scrollablePixelsX,w=g.scrollingContainer;w=void 0===w?{scrollLeft:0,
267
- scrollTop:0}:w;var v=w.scrollLeft;w=w.scrollTop;var D=g.styledMode,J=e.distance,K=e.options,U=e.options.positioner,P=e.outside&&"number"!==typeof G?t.documentElement.getBoundingClientRect():{left:v,right:v+m,top:w,bottom:w+q},y=e.getLabel(),z=this.renderer||f.renderer,Y=!(!f.xAxis[0]||!f.xAxis[0].opposite);f=E.getChartPosition();var Q=f.left;f=f.top;var da=x+w,ea=0,I=h-r;B(b)&&(b=[!1,b]);b=b.slice(0,c.length+1).reduce(function(b,f,n){if(!1!==f&&""!==f){n=c[n-1]||{isHeader:!0,plotX:c[0].plotX,plotY:h,
268
- series:{}};var g=n.isHeader,m=g?e:n.series;f=f.toString();var q=m.tt,k=n.isHeader;var C=n.series;var l="highcharts-color-"+u(n.colorIndex,C.colorIndex,"none");q||(q={padding:K.padding,r:K.borderRadius},D||(q.fill=K.backgroundColor,q["stroke-width"]=K.borderWidth),q=z.label("",0,0,K[k?"headerShape":"shape"],void 0,void 0,K.useHTML).addClass((k?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+l).attr(q).add(y));q.isActive=!0;q.attr({text:f});D||q.css(K.style).shadow(K.shadow).attr({stroke:K.borderColor||
269
- n.color||C.color||A.neutralColor80});m=m.tt=q;k=m.getBBox();f=k.width+m.strokeWidth();g&&(ea=k.height,I+=ea,Y&&(da-=ea));C=n.plotX;C=void 0===C?0:C;l=n.plotY;l=void 0===l?0:l;q=n.series;if(n.isHeader){C=p+C;var H=x+h/2}else{var B=q.xAxis,F=q.yAxis;C=B.pos+d(C,-J,B.len+J);q.shouldShowTooltip(0,F.pos-x+l,{ignoreX:!0})&&(H=F.pos+l)}C=d(C,P.left-J,P.right+J);"number"===typeof H?(k=k.height+1,l=U?U.call(e,f,k,n):a(C,H,g,f),b.push({align:U?0:void 0,anchorX:C,anchorY:H,boxWidth:f,point:n,rank:u(l.rank,g?
270
- 1:0),size:k,target:l.y,tt:m,x:l.x})):m.isActive=!1}return b},[]);!U&&b.some(function(c){var b=(e.outside?Q:0)+c.anchorX;return b<P.left&&b+c.boxWidth<P.right?!0:b<Q-P.left+c.boxWidth&&P.right-b>b})&&(b=b.map(function(c){var b=a(c.anchorX,c.anchorY,c.point.isHeader,c.boxWidth,!1);return k(c,{target:b.y,x:b.x})}));e.cleanSplit();l(b,I);var ca=Q,fa=Q;b.forEach(function(c){var b=c.x,a=c.boxWidth;c=c.isHeader;c||(e.outside&&Q+b<ca&&(ca=Q+b),!c&&e.outside&&ca+a>fa&&(fa=Q+b))});b.forEach(function(c){var b=
271
- c.x,a=c.anchorX,d=c.pos,f=c.point.isHeader;d={visibility:"undefined"===typeof d?"hidden":"inherit",x:b,y:d+da,anchorX:a,anchorY:c.anchorY};if(e.outside&&b<a){var n=Q-ca;0<n&&(f||(d.x=b+n,d.anchorX=a+n),f&&(d.x=(fa-ca)/2,d.anchorX=a+n))}c.tt.attr(d)});b=e.container;r=e.renderer;e.outside&&b&&r&&(g=y.getBBox(),r.setSize(g.width+g.x,g.height+g.y,!1),b.style.left=ca+"px",b.style.top=f+"px")};a.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();
272
- else{var b=this.chart,c=this.label,a=this.shared?b.hoverPoints:b.hoverPoint;if(c&&a){var d={x:0,y:0,width:0,height:0};a=this.getAnchor(a);var f=c.getBBox();a[0]+=b.plotLeft-c.translateX;a[1]+=b.plotTop-c.translateY;d.x=Math.min(0,a[0]);d.y=Math.min(0,a[1]);d.width=0>a[0]?Math.max(Math.abs(a[0]),f.width-a[0]):Math.max(Math.abs(a[0]),f.width);d.height=0>a[1]?Math.max(Math.abs(a[1]),f.height-Math.abs(a[1])):Math.max(Math.abs(a[1]),f.height);this.tracker?this.tracker.attr(d):(this.tracker=c.renderer.rect(d).addClass("highcharts-tracker").add(c),
273
- b.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};a.prototype.styledModeFormat=function(b){return b.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')};a.prototype.tooltipFooterHeaderFormatter=function(b,c){var a=b.series,e=a.tooltipOptions,d=a.xAxis,g=d&&d.dateTime;d={isFooter:c,labelConfig:b};var m=e.xDateFormat,q=e[c?"footerFormat":"headerFormat"];J(this,"headerFormatter",d,function(c){g&&
274
- !m&&f(b.key)&&(m=g.getXDateFormat(b.key,e.dateTimeLabelFormats));g&&m&&(b.point&&b.point.tooltipDateKeys||["key"]).forEach(function(c){q=q.replace("{point."+c+"}","{point."+c+":"+m+"}")});a.chart.styledMode&&(q=this.styledModeFormat(q));c.text=r(q,{point:b,series:a},this.chart)});return d.text};a.prototype.update=function(b){this.destroy();x(!0,this.chart.options.tooltip.userOptions,b);this.init(this.chart,x(!0,this.options,b))};a.prototype.updatePosition=function(a){var c=this.chart,e=this.options,
275
- d=c.pointer,f=this.getLabel();d=d.getChartPosition();var g=(e.positioner||this.getPosition).call(this,f.width,f.height,a),m=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;if(this.outside){e=e.borderWidth+2*this.distance;this.renderer.setSize(f.width+e,f.height+e,!1);if(1!==d.scaleX||1!==d.scaleY)b(this.container,{transform:"scale("+d.scaleX+", "+d.scaleY+")"}),m*=d.scaleX,a*=d.scaleY;m+=d.left-g.x;a+=d.top-g.y}this.move(Math.round(g.x),Math.round(g.y||0),m,a)};return a}();"";return a});I(a,"Core/Series/Point.js",
276
- [a["Core/Renderer/HTML/AST.js"],a["Core/Animation/AnimationUtilities.js"],a["Core/DefaultOptions.js"],a["Core/FormatUtilities.js"],a["Core/Utilities.js"]],function(a,v,A,y,z){var r=v.animObject,D=A.defaultOptions,t=y.format,l=z.addEvent,h=z.defined,d=z.erase,b=z.extend,g=z.fireEvent,p=z.getNestedProperty,k=z.isArray,J=z.isFunction,G=z.isNumber,f=z.isObject,B=z.merge,x=z.objectEach,u=z.pick,E=z.syncTimeout,m=z.removeEvent,q=z.uniqueKey;v=function(){function e(){this.colorIndex=this.category=void 0;
277
- this.formatPrefix="point";this.id=void 0;this.isNull=!1;this.percentage=this.options=this.name=void 0;this.selected=!1;this.total=this.series=void 0;this.visible=!0;this.x=void 0}e.prototype.animateBeforeDestroy=function(){var c=this,a={x:c.startXPos,opacity:0},e=c.getGraphicalProps();e.singular.forEach(function(b){c[b]=c[b].animate("dataLabel"===b?{x:c[b].startXPos,y:c[b].startYPos,opacity:0}:a)});e.plural.forEach(function(a){c[a].forEach(function(a){a.element&&a.animate(b({x:c.startXPos},a.startYPos?
278
- {x:a.startXPos,y:a.startYPos}:{}))})})};e.prototype.applyOptions=function(c,a){var d=this.series,f=d.options.pointValKey||d.pointValKey;c=e.prototype.optionsToObject.call(this,c);b(this,c);this.options=this.options?b(this.options,c):c;c.group&&delete this.group;c.dataLabels&&delete this.dataLabels;f&&(this.y=e.prototype.getNestedProperty.call(this,f));this.formatPrefix=(this.isNull=u(this.isValid&&!this.isValid(),null===this.x||!G(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in
279
- this&&"undefined"===typeof a&&d.xAxis&&d.xAxis.hasNames&&(this.x=d.xAxis.nameToX(this));"undefined"===typeof this.x&&d?this.x="undefined"===typeof a?d.autoIncrement():a:G(c.x)&&d.options.relativeXValue&&(this.x=d.autoIncrement(c.x));return this};e.prototype.destroy=function(){function c(){if(b.graphic||b.dataLabel||b.dataLabels)m(b),b.destroyElements();for(q in b)b[q]=null}var b=this,a=b.series,e=a.chart;a=a.options.dataSorting;var f=e.hoverPoints,g=r(b.series.chart.renderer.globalAnimation),q;b.legendItem&&
280
- e.legend.destroyItem(b);f&&(b.setState(),d(f,b),f.length||(e.hoverPoints=null));if(b===e.hoverPoint)b.onMouseOut();a&&a.enabled?(this.animateBeforeDestroy(),E(c,g.duration)):c();e.pointCount--};e.prototype.destroyElements=function(c){var b=this;c=b.getGraphicalProps(c);c.singular.forEach(function(c){b[c]=b[c].destroy()});c.plural.forEach(function(c){b[c].forEach(function(c){c.element&&c.destroy()});delete b[c]})};e.prototype.firePointEvent=function(c,b,a){var e=this,d=this.series.options;(d.point.events[c]||
281
- e.options&&e.options.events&&e.options.events[c])&&e.importEvents();"click"===c&&d.allowPointSelect&&(a=function(c){e.select&&e.select(null,c.ctrlKey||c.metaKey||c.shiftKey)});g(e,c,b,a)};e.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:
282
- "")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};e.prototype.getGraphicalProps=function(c){var b=this,a=[],e={singular:[],plural:[]},d;c=c||{graphic:1,dataLabel:1};c.graphic&&a.push("graphic","upperGraphic","shadowGroup");c.dataLabel&&a.push("dataLabel","dataLabelUpper","connector");for(d=a.length;d--;){var f=a[d];b[f]&&e.singular.push(f)}["dataLabel","connector"].forEach(function(a){var d=a+"s";c[a]&&b[d]&&e.plural.push(d)});return e};e.prototype.getLabelConfig=
283
- function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}};e.prototype.getNestedProperty=function(c){if(c)return 0===c.indexOf("custom.")?p(c,this.options):this[c]};e.prototype.getZone=function(){var c=this.series,b=c.zones;c=c.zoneAxis||"y";var a,e=0;for(a=b[e];this[c]>=a.value;)a=b[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=
284
- a&&a.color&&!this.options.color?a.color:this.nonZonedColor;return a};e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType};e.prototype.init=function(c,b,a){this.series=c;this.applyOptions(b,a);this.id=h(this.id)?this.id:q();this.resolveColor();c.chart.pointCount++;g(this,"afterInit");return this};e.prototype.optionsToObject=function(c){var b=this.series,a=b.options.keys,d=a||b.pointArrayMap||["y"],f=d.length,g={},m=
285
- 0,q=0;if(G(c)||null===c)g[d[0]]=c;else if(k(c))for(!a&&c.length>f&&(b=typeof c[0],"string"===b?g.name=c[0]:"number"===b&&(g.x=c[0]),m++);q<f;)a&&"undefined"===typeof c[m]||(0<d[q].indexOf(".")?e.prototype.setNestedProperty(g,c[m],d[q]):g[d[q]]=c[m]),m++,q++;else"object"===typeof c&&(g=c,c.dataLabels&&(b._hasPointLabels=!0),c.marker&&(b._hasPointMarkers=!0));return g};e.prototype.resolveColor=function(){var c=this.series,b=c.chart.styledMode;var a=c.chart.options.chart.colorCount;delete this.nonZonedColor;
286
- if(c.options.colorByPoint){if(!b){a=c.options.colors||c.chart.options.colors;var e=a[c.colorCounter];a=a.length}b=c.colorCounter;c.colorCounter++;c.colorCounter===a&&(c.colorCounter=0)}else b||(e=c.color),b=c.colorIndex;this.colorIndex=u(this.options.colorIndex,b);this.color=u(this.options.color,e)};e.prototype.setNestedProperty=function(c,b,a){a.split(".").reduce(function(c,a,e,d){c[a]=d.length-1===e?b:f(c[a],!0)?c[a]:{};return c[a]},c);return c};e.prototype.tooltipFormatter=function(c){var b=this.series,
287
- a=b.tooltipOptions,e=u(a.valueDecimals,""),d=a.valuePrefix||"",f=a.valueSuffix||"";b.chart.styledMode&&(c=b.chart.tooltip.styledModeFormat(c));(b.pointArrayMap||["y"]).forEach(function(b){b="{point."+b;if(d||f)c=c.replace(RegExp(b+"}","g"),d+b+"}"+f);c=c.replace(RegExp(b+"}","g"),b+":,."+e+"f}")});return t(c,{point:this,series:this.series},b.chart)};e.prototype.update=function(c,b,a,e){function d(){g.applyOptions(c);var e=m&&g.hasDummyGraphic;e=null===g.y?!e:e;m&&e&&(g.graphic=m.destroy(),delete g.hasDummyGraphic);
288
- f(c,!0)&&(m&&m.element&&c&&c.marker&&"undefined"!==typeof c.marker.symbol&&(g.graphic=m.destroy()),c&&c.dataLabels&&g.dataLabel&&(g.dataLabel=g.dataLabel.destroy()),g.connector&&(g.connector=g.connector.destroy()));h=g.index;n.updateParallelArrays(g,h);k.data[h]=f(k.data[h],!0)||f(c,!0)?g.options:u(c,k.data[h]);n.isDirty=n.isDirtyData=!0;!n.fixedBox&&n.hasCartesianSeries&&(q.isDirtyBox=!0);"point"===k.legendType&&(q.isDirtyLegend=!0);b&&q.redraw(a)}var g=this,n=g.series,m=g.graphic,q=n.chart,k=n.options,
289
- h;b=u(b,!0);!1===e?d():g.firePointEvent("update",{options:c},d)};e.prototype.remove=function(c,b){this.series.removePoint(this.series.data.indexOf(this),c,b)};e.prototype.select=function(c,b){var a=this,e=a.series,d=e.chart;this.selectedStaging=c=u(c,!a.selected);a.firePointEvent(c?"select":"unselect",{accumulate:b},function(){a.selected=a.options.selected=c;e.options.data[e.data.indexOf(a)]=a.options;a.setState(c&&"select");b||d.getSelectedPoints().forEach(function(c){var b=c.series;c.selected&&
290
- c!==a&&(c.selected=c.options.selected=!1,b.options.data[b.data.indexOf(c)]=c.options,c.setState(d.hoverPoints&&b.options.inactiveOtherPoints?"inactive":""),c.firePointEvent("unselect"))})});delete this.selectedStaging};e.prototype.onMouseOver=function(c){var b=this.series.chart,a=b.pointer;c=c?a.normalize(c):a.getChartCoordinatesFromPoint(this,b.inverted);a.runPointActions(c,this)};e.prototype.onMouseOut=function(){var c=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||
291
- (c.hoverPoints||[]).forEach(function(c){c.setState()});c.hoverPoints=c.hoverPoint=null};e.prototype.importEvents=function(){if(!this.hasImportedEvents){var c=this,b=B(c.series.options.point,c.options).events;c.events=b;x(b,function(b,a){J(b)&&l(c,a,b)});this.hasImportedEvents=!0}};e.prototype.setState=function(c,e){var d=this.series,f=this.state,n=d.options.states[c||"normal"]||{},m=D.plotOptions[d.type].marker&&d.options.marker,q=m&&!1===m.enabled,k=m&&m.states&&m.states[c||"normal"]||{},h=!1===
292
- k.enabled,p=this.marker||{},l=d.chart,B=m&&d.markerAttribs,x=d.halo,E,r=d.stateMarkerGraphic;c=c||"";if(!(c===this.state&&!e||this.selected&&"select"!==c||!1===n.enabled||c&&(h||q&&!1===k.enabled)||c&&p.states&&p.states[c]&&!1===p.states[c].enabled)){this.state=c;B&&(E=d.markerAttribs(this,c));if(this.graphic&&!this.hasDummyGraphic){f&&this.graphic.removeClass("highcharts-point-"+f);c&&this.graphic.addClass("highcharts-point-"+c);if(!l.styledMode){var t=d.pointAttribs(this,c);var w=u(l.options.chart.animation,
293
- n.animation);d.options.inactiveOtherPoints&&G(t.opacity)&&((this.dataLabels||[]).forEach(function(c){c&&c.animate({opacity:t.opacity},w)}),this.connector&&this.connector.animate({opacity:t.opacity},w));this.graphic.animate(t,w)}E&&this.graphic.animate(E,u(l.options.chart.animation,k.animation,m.animation));r&&r.hide()}else{if(c&&k){f=p.symbol||d.symbol;r&&r.currentSymbol!==f&&(r=r.destroy());if(E)if(r)r[e?"animate":"attr"]({x:E.x,y:E.y});else f&&(d.stateMarkerGraphic=r=l.renderer.symbol(f,E.x,E.y,
294
- E.width,E.height).add(d.markerGroup),r.currentSymbol=f);!l.styledMode&&r&&r.attr(d.pointAttribs(this,c))}r&&(r[c&&this.isInside?"show":"hide"](),r.element.point=this,r.addClass(this.getClassName(),!0))}n=n.halo;E=(r=this.graphic||r)&&r.visibility||"inherit";n&&n.size&&r&&"hidden"!==E&&!this.isCluster?(x||(d.halo=x=l.renderer.path().add(r.parentGroup)),x.show()[e?"animate":"attr"]({d:this.haloPath(n.size)}),x.attr({"class":"highcharts-halo highcharts-color-"+u(this.colorIndex,d.colorIndex)+(this.className?
295
- " "+this.className:""),visibility:E,zIndex:-1}),x.point=this,l.styledMode||x.attr(b({fill:this.color||d.color,"fill-opacity":n.opacity},a.filterUserAttributes(n.attributes||{})))):x&&x.point&&x.point.haloPath&&x.animate({d:x.point.haloPath(0)},null,x.hide);g(this,"afterSetState",{state:c})}};e.prototype.haloPath=function(c){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-c,this.plotY-c,2*c,2*c)};return e}();"";return v});I(a,"Core/Pointer.js",[a["Core/Color/Color.js"],a["Core/Globals.js"],
296
- a["Core/Color/Palette.js"],a["Core/Tooltip.js"],a["Core/Utilities.js"]],function(a,v,A,y,z){var r=a.parse,D=v.charts,t=v.noop,l=z.addEvent,h=z.attr,d=z.css,b=z.defined,g=z.extend,p=z.find,k=z.fireEvent,J=z.isNumber,G=z.isObject,f=z.objectEach,B=z.offset,x=z.pick,u=z.splat;a=function(){function a(b,a){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=b;this.hasDragged=!1;this.options=a;this.init(b,a)}a.prototype.applyInactiveState=function(b){var a=[],
297
- e;(b||[]).forEach(function(c){e=c.series;a.push(e);e.linkedParent&&a.push(e.linkedParent);e.linkedSeries&&(a=a.concat(e.linkedSeries));e.navigatorSeries&&a.push(e.navigatorSeries)});this.chart.series.forEach(function(c){-1===a.indexOf(c)?c.setState("inactive",!0):c.options.inactiveOtherPoints&&c.setAllPointsToState("inactive")})};a.prototype.destroy=function(){var b=this;this.eventsToUnbind.forEach(function(b){return b()});this.eventsToUnbind=[];v.chartCount||(a.unbindDocumentMouseUp&&(a.unbindDocumentMouseUp=
298
- a.unbindDocumentMouseUp()),a.unbindDocumentTouchEnd&&(a.unbindDocumentTouchEnd=a.unbindDocumentTouchEnd()));clearInterval(b.tooltipTimeout);f(b,function(a,e){b[e]=void 0})};a.prototype.drag=function(b){var a=this.chart,e=a.options.chart,c=this.zoomHor,d=this.zoomVert,f=a.plotLeft,g=a.plotTop,m=a.plotWidth,k=a.plotHeight,h=this.mouseDownX||0,u=this.mouseDownY||0,p=G(e.panning)?e.panning&&e.panning.enabled:e.panning,l=e.panKey&&b[e.panKey+"Key"],B=b.chartX,x=b.chartY,t=this.selectionMarker;if(!t||!t.touch)if(B<
299
- f?B=f:B>f+m&&(B=f+m),x<g?x=g:x>g+k&&(x=g+k),this.hasDragged=Math.sqrt(Math.pow(h-B,2)+Math.pow(u-x,2)),10<this.hasDragged){var E=a.isInsidePlot(h-f,u-g,{visiblePlotOnly:!0});a.hasCartesianSeries&&(this.zoomX||this.zoomY)&&E&&!l&&!t&&(this.selectionMarker=t=a.renderer.rect(f,g,c?1:m,d?1:k,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),a.styledMode||t.attr({fill:e.selectionMarkerFill||r(A.highlightColor80).setOpacity(.25).get()}));t&&c&&(c=B-h,t.attr({width:Math.abs(c),x:(0<c?0:c)+
300
- h}));t&&d&&(c=x-u,t.attr({height:Math.abs(c),y:(0<c?0:c)+u}));E&&!t&&p&&a.pan(b,e.panning)}};a.prototype.dragStart=function(b){var a=this.chart;a.mouseIsDown=b.type;a.cancelClick=!1;a.mouseDownX=this.mouseDownX=b.chartX;a.mouseDownY=this.mouseDownY=b.chartY};a.prototype.drop=function(a){var f=this,e=this.chart,c=this.hasPinched;if(this.selectionMarker){var n={originalEvent:a,xAxis:[],yAxis:[]},m=this.selectionMarker,h=m.attr?m.attr("x"):m.x,u=m.attr?m.attr("y"):m.y,p=m.attr?m.attr("width"):m.width,
301
- l=m.attr?m.attr("height"):m.height,B;if(this.hasDragged||c)e.axes.forEach(function(e){if(e.zoomEnabled&&b(e.min)&&(c||f[{xAxis:"zoomX",yAxis:"zoomY"}[e.coll]])&&J(h)&&J(u)){var d=e.horiz,g="touchend"===a.type?e.minPixelPadding:0,m=e.toValue((d?h:u)+g);d=e.toValue((d?h+p:u+l)-g);n[e.coll].push({axis:e,min:Math.min(m,d),max:Math.max(m,d)});B=!0}}),B&&k(e,"selection",n,function(b){e.zoom(g(b,c?{animation:!1}:null))});J(e.index)&&(this.selectionMarker=this.selectionMarker.destroy());c&&this.scaleGroups()}e&&
302
- J(e.index)&&(d(e.container,{cursor:e._cursor}),e.cancelClick=10<this.hasDragged,e.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])};a.prototype.findNearestKDPoint=function(b,a,e){var c=this.chart,d=c.hoverPoint;c=c.tooltip;if(d&&c&&c.isStickyOnContact())return d;var f;b.forEach(function(c){var b=!(c.noSharedTooltip&&a)&&0>c.options.findNearestPointBy.indexOf("y");c=c.searchPoint(e,b);if((b=G(c,!0)&&c.series)&&!(b=!G(f,!0))){b=f.distX-c.distX;var d=f.dist-c.dist,g=(c.series.group&&
303
- c.series.group.zIndex)-(f.series.group&&f.series.group.zIndex);b=0<(0!==b&&a?b:0!==d?d:0!==g?g:f.series.index>c.series.index?-1:1)}b&&(f=c)});return f};a.prototype.getChartCoordinatesFromPoint=function(b,a){var e=b.series,c=e.xAxis;e=e.yAxis;var d=b.shapeArgs;if(c&&e){var f=x(b.clientX,b.plotX),g=b.plotY||0;b.isNode&&d&&J(d.x)&&J(d.y)&&(f=d.x,g=d.y);return a?{chartX:e.len+e.pos-g,chartY:c.len+c.pos-f}:{chartX:f+c.pos,chartY:g+e.pos}}if(d&&d.x&&d.y)return{chartX:d.x,chartY:d.y}};a.prototype.getChartPosition=
304
- function(){if(this.chartPosition)return this.chartPosition;var b=this.chart.container,a=B(b);this.chartPosition={left:a.left,top:a.top,scaleX:1,scaleY:1};var e=b.offsetWidth;b=b.offsetHeight;2<e&&2<b&&(this.chartPosition.scaleX=a.width/e,this.chartPosition.scaleY=a.height/b);return this.chartPosition};a.prototype.getCoordinates=function(b){var a={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(e){a[e.isXAxis?"xAxis":"yAxis"].push({axis:e,value:e.toValue(b[e.horiz?"chartX":"chartY"])})});return a};
305
- a.prototype.getHoverData=function(b,a,e,c,d,f){var g=[];c=!(!c||!b);var n={chartX:f?f.chartX:void 0,chartY:f?f.chartY:void 0,shared:d};k(this,"beforeGetHoverData",n);var m=a&&!a.stickyTracking?[a]:e.filter(function(c){return n.filter?n.filter(c):c.visible&&!(!d&&c.directTouch)&&x(c.options.enableMouseTracking,!0)&&c.stickyTracking});var q=c||!f?b:this.findNearestKDPoint(m,d,f);a=q&&q.series;q&&(d&&!a.noSharedTooltip?(m=e.filter(function(c){return n.filter?n.filter(c):c.visible&&!(!d&&c.directTouch)&&
306
- x(c.options.enableMouseTracking,!0)&&!c.noSharedTooltip}),m.forEach(function(c){var b=p(c.points,function(c){return c.x===q.x&&!c.isNull});G(b)&&(c.chart.isBoosting&&(b=c.getPoint(b)),g.push(b))})):g.push(q));n={hoverPoint:q};k(this,"afterGetHoverData",n);return{hoverPoint:n.hoverPoint,hoverSeries:a,hoverPoints:g}};a.prototype.getPointFromEvent=function(b){b=b.target;for(var a;b&&!a;)a=b.point,b=b.parentNode;return a};a.prototype.onTrackerMouseOut=function(b){b=b.relatedTarget||b.toElement;var a=
307
- this.chart.hoverSeries;this.isDirectTouch=!1;if(!(!a||!b||a.stickyTracking||this.inClass(b,"highcharts-tooltip")||this.inClass(b,"highcharts-series-"+a.index)&&this.inClass(b,"highcharts-tracker")))a.onMouseOut()};a.prototype.inClass=function(b,a){for(var e;b;){if(e=h(b,"class")){if(-1!==e.indexOf(a))return!0;if(-1!==e.indexOf("highcharts-container"))return!1}b=b.parentNode}};a.prototype.init=function(b,a){this.options=a;this.chart=b;this.runChartClick=!(!a.chart.events||!a.chart.events.click);this.pinchDown=
308
- [];this.lastValidTouch={};y&&(b.tooltip=new y(b,a.tooltip),this.followTouchMove=x(a.tooltip.followTouchMove,!0));this.setDOMEvents()};a.prototype.normalize=function(b,a){var e=b.touches,c=e?e.length?e.item(0):x(e.changedTouches,b.changedTouches)[0]:b;a||(a=this.getChartPosition());e=c.pageX-a.left;c=c.pageY-a.top;e/=a.scaleX;c/=a.scaleY;return g(b,{chartX:Math.round(e),chartY:Math.round(c)})};a.prototype.onContainerClick=function(b){var a=this.chart,e=a.hoverPoint;b=this.normalize(b);var c=a.plotLeft,
309
- d=a.plotTop;a.cancelClick||(e&&this.inClass(b.target,"highcharts-tracker")?(k(e.series,"click",g(b,{point:e})),a.hoverPoint&&e.firePointEvent("click",b)):(g(b,this.getCoordinates(b)),a.isInsidePlot(b.chartX-c,b.chartY-d,{visiblePlotOnly:!0})&&k(a,"click",b)))};a.prototype.onContainerMouseDown=function(b){var a=1===((b.buttons||b.button)&1);b=this.normalize(b);if(v.isFirefox&&0!==b.button)this.onContainerMouseMove(b);if("undefined"===typeof b.button||a)this.zoomOption(b),a&&b.preventDefault&&b.preventDefault(),
310
- this.dragStart(b)};a.prototype.onContainerMouseLeave=function(b){var d=D[x(a.hoverChartIndex,-1)],e=this.chart.tooltip;e&&e.shouldStickOnContact()&&this.inClass(b.relatedTarget,"highcharts-tooltip-container")||(b=this.normalize(b),d&&(b.relatedTarget||b.toElement)&&(d.pointer.reset(),d.pointer.chartPosition=void 0),e&&!e.isHidden&&this.reset())};a.prototype.onContainerMouseEnter=function(b){delete this.chartPosition};a.prototype.onContainerMouseMove=function(b){var a=this.chart;b=this.normalize(b);
311
- this.setHoverChartIndex();b.preventDefault||(b.returnValue=!1);("mousedown"===a.mouseIsDown||this.touchSelect(b))&&this.drag(b);a.openMenu||!this.inClass(b.target,"highcharts-tracker")&&!a.isInsidePlot(b.chartX-a.plotLeft,b.chartY-a.plotTop,{visiblePlotOnly:!0})||(this.inClass(b.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(b))};a.prototype.onDocumentTouchEnd=function(b){var d=D[x(a.hoverChartIndex,-1)];d&&d.pointer.drop(b)};a.prototype.onContainerTouchMove=function(b){if(this.touchSelect(b))this.onContainerMouseMove(b);
312
- else this.touch(b)};a.prototype.onContainerTouchStart=function(b){if(this.touchSelect(b))this.onContainerMouseDown(b);else this.zoomOption(b),this.touch(b,!0)};a.prototype.onDocumentMouseMove=function(b){var a=this.chart,e=this.chartPosition;b=this.normalize(b,e);var c=a.tooltip;!e||c&&c.isStickyOnContact()||a.isInsidePlot(b.chartX-a.plotLeft,b.chartY-a.plotTop,{visiblePlotOnly:!0})||this.inClass(b.target,"highcharts-tracker")||this.reset()};a.prototype.onDocumentMouseUp=function(b){var d=D[x(a.hoverChartIndex,
313
- -1)];d&&d.pointer.drop(b)};a.prototype.pinch=function(b){var a=this,e=a.chart,c=a.pinchDown,d=b.touches||[],f=d.length,k=a.lastValidTouch,h=a.hasZoom,m={},u=1===f&&(a.inClass(b.target,"highcharts-tracker")&&e.runTrackerClick||a.runChartClick),p={},l=a.selectionMarker;1<f?a.initiated=!0:1===f&&this.followTouchMove&&(a.initiated=!1);h&&a.initiated&&!u&&!1!==b.cancelable&&b.preventDefault();[].map.call(d,function(b){return a.normalize(b)});"touchstart"===b.type?([].forEach.call(d,function(b,a){c[a]=
314
- {chartX:b.chartX,chartY:b.chartY}}),k.x=[c[0].chartX,c[1]&&c[1].chartX],k.y=[c[0].chartY,c[1]&&c[1].chartY],e.axes.forEach(function(b){if(b.zoomEnabled){var c=e.bounds[b.horiz?"h":"v"],a=b.minPixelPadding,d=b.toPixels(Math.min(x(b.options.min,b.dataMin),b.dataMin)),f=b.toPixels(Math.max(x(b.options.max,b.dataMax),b.dataMax)),g=Math.max(d,f);c.min=Math.min(b.pos,Math.min(d,f)-a);c.max=Math.max(b.pos+b.len,g+a)}}),a.res=!0):a.followTouchMove&&1===f?this.runPointActions(a.normalize(b)):c.length&&(l||
315
- (a.selectionMarker=l=g({destroy:t,touch:!0},e.plotBox)),a.pinchTranslate(c,d,m,l,p,k),a.hasPinched=h,a.scaleGroups(m,p),a.res&&(a.res=!1,this.reset(!1,0)))};a.prototype.pinchTranslate=function(b,a,e,c,d,f){this.zoomHor&&this.pinchTranslateDirection(!0,b,a,e,c,d,f);this.zoomVert&&this.pinchTranslateDirection(!1,b,a,e,c,d,f)};a.prototype.pinchTranslateDirection=function(b,a,e,c,d,f,g,k){var n=this.chart,h=b?"x":"y",m=b?"X":"Y",q="chart"+m,u=b?"width":"height",p=n["plot"+(b?"Left":"Top")],l=n.inverted,
316
- B=n.bounds[b?"h":"v"],x=1===a.length,C=a[0][q],r=!x&&a[1][q];a=function(){"number"===typeof G&&20<Math.abs(C-r)&&(E=k||Math.abs(H-G)/Math.abs(C-r));K=(p-H)/E+C;t=n["plot"+(b?"Width":"Height")]/E};var t,K,E=k||1,H=e[0][q],G=!x&&e[1][q];a();e=K;if(e<B.min){e=B.min;var w=!0}else e+t>B.max&&(e=B.max-t,w=!0);w?(H-=.8*(H-g[h][0]),"number"===typeof G&&(G-=.8*(G-g[h][1])),a()):g[h]=[H,G];l||(f[h]=K-p,f[u]=t);f=l?1/E:E;d[u]=t;d[h]=e;c[l?b?"scaleY":"scaleX":"scale"+m]=E;c["translate"+m]=f*p+(H-f*C)};a.prototype.reset=
317
- function(b,a){var e=this.chart,c=e.hoverSeries,d=e.hoverPoint,f=e.hoverPoints,g=e.tooltip,k=g&&g.shared?f:d;b&&k&&u(k).forEach(function(c){c.series.isCartesian&&"undefined"===typeof c.plotX&&(b=!1)});if(b)g&&k&&u(k).length&&(g.refresh(k),g.shared&&f?f.forEach(function(b){b.setState(b.state,!0);b.series.isCartesian&&(b.series.xAxis.crosshair&&b.series.xAxis.drawCrosshair(null,b),b.series.yAxis.crosshair&&b.series.yAxis.drawCrosshair(null,b))}):d&&(d.setState(d.state,!0),e.axes.forEach(function(b){b.crosshair&&
318
- d.series[b.coll]===b&&b.drawCrosshair(null,d)})));else{if(d)d.onMouseOut();f&&f.forEach(function(b){b.setState()});if(c)c.onMouseOut();g&&g.hide(a);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());e.axes.forEach(function(b){b.hideCrosshair()});this.hoverX=e.hoverPoints=e.hoverPoint=null}};a.prototype.runPointActions=function(b,d){var e=this.chart,c=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,f=c?c.shared:!1,g=d||e.hoverPoint,k=g&&g.series||e.hoverSeries;d=this.getHoverData(g,
319
- k,e.series,(!b||"touchmove"!==b.type)&&(!!d||k&&k.directTouch&&this.isDirectTouch),f,b);g=d.hoverPoint;k=d.hoverSeries;var h=d.hoverPoints;d=k&&k.tooltipOptions.followPointer&&!k.tooltipOptions.split;f=f&&k&&!k.noSharedTooltip;if(g&&(g!==e.hoverPoint||c&&c.isHidden)){(e.hoverPoints||[]).forEach(function(b){-1===h.indexOf(b)&&b.setState()});if(e.hoverSeries!==k)k.onMouseOver();this.applyInactiveState(h);(h||[]).forEach(function(b){b.setState("hover")});e.hoverPoint&&e.hoverPoint.firePointEvent("mouseOut");
320
- if(!g.series)return;e.hoverPoints=h;e.hoverPoint=g;g.firePointEvent("mouseOver");c&&c.refresh(f?h:g,b)}else d&&c&&!c.isHidden&&(g=c.getAnchor([{}],b),e.isInsidePlot(g[0],g[1],{visiblePlotOnly:!0})&&c.updatePosition({plotX:g[0],plotY:g[1]}));this.unDocMouseMove||(this.unDocMouseMove=l(e.container.ownerDocument,"mousemove",function(b){var c=D[a.hoverChartIndex];if(c)c.pointer.onDocumentMouseMove(b)}),this.eventsToUnbind.push(this.unDocMouseMove));e.axes.forEach(function(c){var a=x((c.crosshair||{}).snap,
321
- !0),d;a&&((d=e.hoverPoint)&&d.series[c.coll]===c||(d=p(h,function(b){return b.series[c.coll]===c})));d||!a?c.drawCrosshair(b,d):c.hideCrosshair()})};a.prototype.scaleGroups=function(b,a){var e=this.chart;e.series.forEach(function(c){var d=b||c.getPlotBox();c.xAxis&&c.xAxis.zoomEnabled&&c.group&&(c.group.attr(d),c.markerGroup&&(c.markerGroup.attr(d),c.markerGroup.clip(a?e.clipRect:null)),c.dataLabelsGroup&&c.dataLabelsGroup.attr(d))});e.clipRect.attr(a||e.clipBox)};a.prototype.setDOMEvents=function(){var b=
322
- this,d=this.chart.container,e=d.ownerDocument;d.onmousedown=this.onContainerMouseDown.bind(this);d.onmousemove=this.onContainerMouseMove.bind(this);d.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(l(d,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(l(d,"mouseleave",this.onContainerMouseLeave.bind(this)));a.unbindDocumentMouseUp||(a.unbindDocumentMouseUp=l(e,"mouseup",this.onDocumentMouseUp.bind(this)));for(var c=this.chart.renderTo.parentElement;c&&
323
- "BODY"!==c.tagName;)this.eventsToUnbind.push(l(c,"scroll",function(){delete b.chartPosition})),c=c.parentElement;v.hasTouch&&(this.eventsToUnbind.push(l(d,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(l(d,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),a.unbindDocumentTouchEnd||(a.unbindDocumentTouchEnd=l(e,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};a.prototype.setHoverChartIndex=function(){var b=this.chart,d=v.charts[x(a.hoverChartIndex,
324
- -1)];if(d&&d!==b)d.pointer.onContainerMouseLeave({relatedTarget:!0});d&&d.mouseIsDown||(a.hoverChartIndex=b.index)};a.prototype.touch=function(b,a){var e=this.chart,c;this.setHoverChartIndex();if(1===b.touches.length)if(b=this.normalize(b),(c=e.isInsidePlot(b.chartX-e.plotLeft,b.chartY-e.plotTop,{visiblePlotOnly:!0}))&&!e.openMenu){a&&this.runPointActions(b);if("touchmove"===b.type){a=this.pinchDown;var d=a[0]?4<=Math.sqrt(Math.pow(a[0].chartX-b.chartX,2)+Math.pow(a[0].chartY-b.chartY,2)):!1}x(d,
325
- !0)&&this.pinch(b)}else a&&this.reset();else 2===b.touches.length&&this.pinch(b)};a.prototype.touchSelect=function(b){return!(!this.chart.options.chart.zoomBySingleTouch||!b.touches||1!==b.touches.length)};a.prototype.zoomOption=function(b){var a=this.chart,e=a.options.chart;a=a.inverted;var c=e.zoomType||"";/touch/.test(b.type)&&(c=x(e.pinchType,c));this.zoomX=b=/x/.test(c);this.zoomY=e=/y/.test(c);this.zoomHor=b&&!a||e&&a;this.zoomVert=e&&!a||b&&a;this.hasZoom=b||e};return a}();"";return a});I(a,
326
- "Core/MSPointer.js",[a["Core/Globals.js"],a["Core/Pointer.js"],a["Core/Utilities.js"]],function(a,v,A){function r(){var b=[];b.item=function(b){return this[b]};g(k,function(a){b.push({pageX:a.pageX,pageY:a.pageY,target:a.target})});return b}function z(b,a,d,g){var f=D[v.hoverChartIndex||NaN];"touch"!==b.pointerType&&b.pointerType!==b.MSPOINTER_TYPE_TOUCH||!f||(f=f.pointer,g(b),f[a]({type:d,target:b.currentTarget,preventDefault:l,touches:r()}))}var w=this&&this.__extends||function(){var b=function(a,
327
- d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return b(a,d)};return function(a,d){function f(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),D=a.charts,t=a.doc,l=a.noop,h=a.win,d=A.addEvent,b=A.css,g=A.objectEach,p=A.removeEvent,k={},J=!!h.PointerEvent;return function(g){function f(){return null!==g&&g.apply(this,arguments)||this}w(f,g);f.isRequired=
328
- function(){return!(a.hasTouch||!h.PointerEvent&&!h.MSPointerEvent)};f.prototype.batchMSEvents=function(b){b(this.chart.container,J?"pointerdown":"MSPointerDown",this.onContainerPointerDown);b(this.chart.container,J?"pointermove":"MSPointerMove",this.onContainerPointerMove);b(t,J?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};f.prototype.destroy=function(){this.batchMSEvents(p);g.prototype.destroy.call(this)};f.prototype.init=function(a,d){g.prototype.init.call(this,a,d);this.hasZoom&&b(a.container,
329
- {"-ms-touch-action":"none","touch-action":"none"})};f.prototype.onContainerPointerDown=function(b){z(b,"onContainerTouchStart","touchstart",function(b){k[b.pointerId]={pageX:b.pageX,pageY:b.pageY,target:b.currentTarget}})};f.prototype.onContainerPointerMove=function(b){z(b,"onContainerTouchMove","touchmove",function(b){k[b.pointerId]={pageX:b.pageX,pageY:b.pageY};k[b.pointerId].target||(k[b.pointerId].target=b.currentTarget)})};f.prototype.onDocumentPointerUp=function(b){z(b,"onDocumentTouchEnd",
330
- "touchend",function(b){delete k[b.pointerId]})};f.prototype.setDOMEvents=function(){g.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(d)};return f}(v)});I(a,"Core/Legend/Legend.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Series/Point.js"],a["Core/Renderer/RendererUtilities.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w){var r=a.animObject,t=a.setAnimation,l=v.format;a=A.isFirefox;var h=A.marginNames;
331
- A=A.win;var d=z.distribute,b=w.addEvent,g=w.createElement,p=w.css,k=w.defined,J=w.discardElement,G=w.find,f=w.fireEvent,B=w.isNumber,x=w.merge,u=w.pick,E=w.relativeLength,m=w.stableSort,q=w.syncTimeout;z=w.wrap;w=function(){function a(b,a){this.allItems=[];this.contentGroup=this.box=void 0;this.display=!1;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=
332
- this.itemHeight=this.initialItemY=0;this.options={};this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup=void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=b;this.init(b,a)}a.prototype.init=function(c,a){this.chart=c;this.setOptions(a);a.enabled&&(this.render(),b(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=b(this.chart,"render",function(){this.legend.proximatePositions();
333
- this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};a.prototype.setOptions=function(b){var a=u(b.padding,8);this.options=b;this.chart.styledMode||(this.itemStyle=b.itemStyle,this.itemHiddenStyle=x(this.itemStyle,b.itemHiddenStyle));this.itemMarginTop=b.itemMarginTop||0;this.itemMarginBottom=b.itemMarginBottom||0;this.padding=a;this.initialItemY=a-5;this.symbolWidth=u(b.symbolWidth,16);this.pages=[];this.proximate="proximate"===b.layout&&!this.chart.inverted;this.baseline=void 0};
334
- a.prototype.update=function(b,a){var c=this.chart;this.setOptions(x(!0,this.options,b));this.destroy();c.isDirtyLegend=c.isDirtyBox=!0;u(a,!0)&&c.redraw();f(this,"afterUpdate")};a.prototype.colorizeItem=function(b,a){b.legendGroup[a?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var c=this.options,e=b.legendItem,d=b.legendLine,g=b.legendSymbol,n=this.itemHiddenStyle.color;c=a?c.itemStyle.color:n;var k=a?b.color||n:n,h=b.options&&b.options.marker,m={fill:k};e&&
335
- e.css({fill:c,color:c});d&&d.attr({stroke:k});g&&(h&&g.isMarker&&(m=b.pointAttribs(),a||(m.stroke=m.fill=n)),g.attr(m))}f(this,"afterColorizeItem",{item:b,visible:a})};a.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};a.prototype.positionItem=function(b){var a=this,c=this.options,e=c.symbolPadding,d=!c.rtl,g=b._legendItemPos;c=g[0];g=g[1];var h=b.checkbox,m=b.legendGroup;m&&m.element&&(e={translateX:d?c:this.legendWidth-
336
- c-2*e-4,translateY:g},d=function(){f(a,"afterPositionItem",{item:b})},k(m.translateY)?m.animate(e,void 0,d):(m.attr(e),d()));h&&(h.x=c,h.y=g)};a.prototype.destroyItem=function(b){var a=b.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(a){b[a]&&(b[a]=b[a].destroy())});a&&J(b.checkbox)};a.prototype.destroy=function(){function b(b){this[b]&&(this[b]=this[b].destroy())}this.getAllItems().forEach(function(a){["legendItem","legendGroup"].forEach(b,a)});"clipRect up down pager nav box title group".split(" ").forEach(b,
337
- this);this.display=null};a.prototype.positionCheckboxes=function(){var b=this.group&&this.group.alignAttr,a=this.clipHeight||this.legendHeight,e=this.titleHeight;if(b){var d=b.translateY;this.allItems.forEach(function(c){var f=c.checkbox;if(f){var g=d+e+f.y+(this.scrollOffset||0)+3;p(f,{left:b.translateX+c.checkboxOffset+f.x-20+"px",top:g+"px",display:this.proximate||g>d-6&&g<d+a-6?"":"none"})}},this)}};a.prototype.renderTitle=function(){var b=this.options,a=this.padding,e=b.title,d=0;e.text&&(this.title||
338
- (this.title=this.chart.renderer.label(e.text,a-3,a-4,null,null,null,b.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(e.style),this.title.add(this.group)),e.width||this.title.css({width:this.maxLegendWidth+"px"}),b=this.title.getBBox(),d=b.height,this.offsetWidth=b.width,this.contentGroup.attr({translateY:d}));this.titleHeight=d};a.prototype.setText=function(b){var a=this.options;b.legendItem.attr({text:a.labelFormat?l(a.labelFormat,b,this.chart):a.labelFormatter.call(b)})};
339
- a.prototype.renderItem=function(b){var a=this.chart,c=a.renderer,e=this.options,d=this.symbolWidth,f=e.symbolPadding||0,g=this.itemStyle,k=this.itemHiddenStyle,h="horizontal"===e.layout?u(e.itemDistance,20):0,m=!e.rtl,q=!b.series,p=!q&&b.series.drawLegendSymbol?b.series:b,l=p.options,B=this.createCheckboxForItem&&l&&l.showCheckbox,r=e.useHTML,t=b.options.className,E=b.legendItem;l=d+f+h+(B?20:0);E||(b.legendGroup=c.g("legend-item").addClass("highcharts-"+p.type+"-series highcharts-color-"+b.colorIndex+
340
- (t?" "+t:"")+(q?" highcharts-series-"+b.index:"")).attr({zIndex:1}).add(this.scrollGroup),b.legendItem=E=c.text("",m?d+f:-f,this.baseline||0,r),a.styledMode||E.css(x(b.visible?g:k)),E.attr({align:m?"left":"right",zIndex:2}).add(b.legendGroup),this.baseline||(this.fontMetrics=c.fontMetrics(a.styledMode?12:g.fontSize,E),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,E.attr("y",this.baseline),this.symbolHeight=e.symbolHeight||this.fontMetrics.f,e.squareSymbol&&(this.symbolWidth=u(e.symbolWidth,
341
- Math.max(this.symbolHeight,16)),l=this.symbolWidth+f+h+(B?20:0),m&&E.attr("x",this.symbolWidth+f))),p.drawLegendSymbol(this,b),this.setItemEvents&&this.setItemEvents(b,E,r));B&&!b.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(b);this.colorizeItem(b,b.visible);!a.styledMode&&g.width||E.css({width:(e.itemWidth||this.widthOption||a.spacingBox.width)-l+"px"});this.setText(b);a=E.getBBox();b.itemWidth=b.checkboxOffset=e.itemWidth||b.legendItemWidth||a.width+l;this.maxItemWidth=Math.max(this.maxItemWidth,
342
- b.itemWidth);this.totalItemWidth+=b.itemWidth;this.itemHeight=b.itemHeight=Math.round(b.legendItemHeight||a.height||this.symbolHeight)};a.prototype.layoutItem=function(b){var a=this.options,c=this.padding,e="horizontal"===a.layout,d=b.itemHeight,f=this.itemMarginBottom,g=this.itemMarginTop,k=e?u(a.itemDistance,20):0,h=this.maxLegendWidth;a=a.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:b.itemWidth;e&&this.itemX-c+a>h&&(this.itemX=c,this.lastLineHeight&&(this.itemY+=g+this.lastLineHeight+
343
- f),this.lastLineHeight=0);this.lastItemY=g+this.itemY+f;this.lastLineHeight=Math.max(d,this.lastLineHeight);b._legendItemPos=[this.itemX,this.itemY];e?this.itemX+=a:(this.itemY+=g+d+f,this.lastLineHeight=d);this.offsetWidth=this.widthOption||Math.max((e?this.itemX-c-(b.checkbox?0:k):a)+c,this.offsetWidth)};a.prototype.getAllItems=function(){var b=[];this.chart.series.forEach(function(a){var c=a&&a.options;a&&u(c.showInLegend,k(c.linkedTo)?!1:void 0,!0)&&(b=b.concat(a.legendItems||("point"===c.legendType?
344
- a.data:a)))});f(this,"afterGetAllItems",{allItems:b});return b};a.prototype.getAlignment=function(){var b=this.options;return this.proximate?b.align.charAt(0)+"tv":b.floating?"":b.align.charAt(0)+b.verticalAlign.charAt(0)+b.layout.charAt(0)};a.prototype.adjustMargins=function(b,a){var c=this.chart,e=this.options,d=this.getAlignment();d&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(f,g){f.test(d)&&!k(b[g])&&(c[h[g]]=Math.max(c[h[g]],c.legend[(g+1)%2?"legendHeight":
345
- "legendWidth"]+[1,-1,-1,1][g]*e[g%2?"x":"y"]+u(e.margin,12)+a[g]+(c.titleOffset[g]||0)))})};a.prototype.proximatePositions=function(){var b=this.chart,a=[],e="left"===this.options.align;this.allItems.forEach(function(c){var d;var f=e;if(c.yAxis){c.xAxis.options.reversed&&(f=!f);c.points&&(d=G(f?c.points:c.points.slice(0).reverse(),function(b){return B(b.plotY)}));f=this.itemMarginTop+c.legendItem.getBBox().height+this.itemMarginBottom;var g=c.yAxis.top-b.plotTop;c.visible?(d=d?d.plotY:c.yAxis.height,
346
- d+=g-.3*f):d=g+c.yAxis.height;a.push({target:d,size:f,item:c})}},this);d(a,b.plotHeight).forEach(function(a){a.item._legendItemPos&&(a.item._legendItemPos[1]=b.plotTop-b.spacing[0]+a.pos)})};a.prototype.render=function(){var b=this.chart,a=b.renderer,e=this.options,d=this.padding,g=this.getAllItems(),k=this.group,h=this.box;this.itemX=d;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=E(e.width,b.spacingBox.width-d);var q=b.spacingBox.width-2*d-e.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,
347
- 2))&&(q/=2);this.maxLegendWidth=this.widthOption||q;k||(this.group=k=a.g("legend").addClass(e.className||"").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(k),this.scrollGroup=a.g().add(this.contentGroup));this.renderTitle();m(g,function(b,a){return(b.options&&b.options.legendIndex||0)-(a.options&&a.options.legendIndex||0)});e.reversed&&g.reverse();this.allItems=g;this.display=q=!!g.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;g.forEach(this.renderItem,
348
- this);g.forEach(this.layoutItem,this);g=(this.widthOption||this.offsetWidth)+d;var p=this.lastItemY+this.lastLineHeight+this.titleHeight;p=this.handleOverflow(p);p+=d;h||(this.box=h=a.rect().addClass("highcharts-legend-box").attr({r:e.borderRadius}).add(k),h.isNew=!0);b.styledMode||h.attr({stroke:e.borderColor,"stroke-width":e.borderWidth||0,fill:e.backgroundColor||"none"}).shadow(e.shadow);0<g&&0<p&&(h[h.isNew?"attr":"animate"](h.crisp.call({},{x:0,y:0,width:g,height:p},h.strokeWidth())),h.isNew=
349
- !1);h[q?"show":"hide"]();b.styledMode&&"none"===k.getStyle("display")&&(g=p=0);this.legendWidth=g;this.legendHeight=p;q&&this.align();this.proximate||this.positionItems();f(this,"afterRender")};a.prototype.align=function(b){void 0===b&&(b=this.chart.spacingBox);var a=this.chart,c=this.options,e=b.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<a.titleOffset[0]?e+=a.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<a.titleOffset[2]&&(e-=a.titleOffset[2]);e!==b.y&&(b=x(b,{y:e}));this.group.align(x(c,
350
- {width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":c.verticalAlign}),!0,b)};a.prototype.handleOverflow=function(b){var a=this,c=this.chart,e=c.renderer,d=this.options,f=d.y,g="top"===d.verticalAlign,k=this.padding,h=d.maxHeight,m=d.navigation,q=u(m.animation,!0),p=m.arrowSize||12,l=this.pages,B=this.allItems,x=function(b){"number"===typeof b?P.attr({height:b}):P&&(a.clipRect=P.destroy(),a.contentGroup.clip());a.contentGroup.div&&(a.contentGroup.div.style.clip=b?"rect("+
351
- k+"px,9999px,"+(k+b)+"px,0)":"auto")},r=function(b){a[b]=e.circle(0,0,1.3*p).translate(p/2,p/2).add(E);c.styledMode||a[b].attr("fill","rgba(0,0,0,0.0001)");return a[b]},t,K;f=c.spacingBox.height+(g?-f:f)-k;var E=this.nav,P=this.clipRect;"horizontal"!==d.layout||"middle"===d.verticalAlign||d.floating||(f/=2);h&&(f=Math.min(f,h));l.length=0;b&&0<f&&b>f&&!1!==m.enabled?(this.clipHeight=t=Math.max(f-20-this.titleHeight-k,0),this.currentPage=u(this.currentPage,1),this.fullHeight=b,B.forEach(function(b,
352
- a){var c=b._legendItemPos[1],e=Math.round(b.legendItem.getBBox().height),d=l.length;if(!d||c-l[d-1]>t&&(K||c)!==l[d-1])l.push(K||c),d++;b.pageIx=d-1;K&&(B[a-1].pageIx=d-1);a===B.length-1&&c+e-l[d-1]>t&&c!==K&&(l.push(c),b.pageIx=d);c!==K&&(K=c)}),P||(P=a.clipRect=e.clipRect(0,k,9999,0),a.contentGroup.clip(P)),x(t),E||(this.nav=E=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol("triangle",0,0,p,p).add(E),r("upTracker").on("click",function(){a.scroll(-1,q)}),this.pager=e.text("",15,10).addClass("highcharts-legend-navigation"),
353
- c.styledMode||this.pager.css(m.style),this.pager.add(E),this.down=e.symbol("triangle-down",0,0,p,p).add(E),r("downTracker").on("click",function(){a.scroll(1,q)})),a.scroll(0),b=f):E&&(x(),this.nav=E.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return b};a.prototype.scroll=function(b,a){var c=this,e=this.chart,d=this.pages,g=d.length,k=this.clipHeight,h=this.options.navigation,n=this.pager,m=this.padding,p=this.currentPage+b;p>g&&(p=g);0<p&&("undefined"!==typeof a&&t(a,e),this.nav.attr({translateX:m,
354
- translateY:k+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(b){b.attr({"class":1===p?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),n.attr({text:p+"/"+g}),[this.down,this.downTracker].forEach(function(b){b.attr({x:18+this.pager.getBBox().width,"class":p===g?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),e.styledMode||(this.up.attr({fill:1===p?h.inactiveColor:h.activeColor}),this.upTracker.css({cursor:1===
355
- p?"default":"pointer"}),this.down.attr({fill:p===g?h.inactiveColor:h.activeColor}),this.downTracker.css({cursor:p===g?"default":"pointer"})),this.scrollOffset=-d[p-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=p,this.positionCheckboxes(),b=r(u(a,e.renderer.globalAnimation,!0)),q(function(){f(c,"afterScroll",{currentPage:p})},b.duration))};a.prototype.setItemEvents=function(b,a,e){var c=this,d=c.chart.renderer.boxWrapper,g=b instanceof y,k="highcharts-legend-"+
356
- (g?"point":"series")+"-active",h=c.chart.styledMode,n=function(a){c.allItems.forEach(function(c){b!==c&&[c].concat(c.linkedSeries||[]).forEach(function(b){b.setState(a,!g)})})};(e?[a,b.legendSymbol]:[b.legendGroup]).forEach(function(e){if(e)e.on("mouseover",function(){b.visible&&n("inactive");b.setState("hover");b.visible&&d.addClass(k);h||a.css(c.options.itemHoverStyle)}).on("mouseout",function(){c.chart.styledMode||a.css(x(b.visible?c.itemStyle:c.itemHiddenStyle));n("");d.removeClass(k);b.setState()}).on("click",
357
- function(a){var c=function(){b.setVisible&&b.setVisible();n(b.visible?"inactive":"")};d.removeClass(k);a={browserEvent:a};b.firePointEvent?b.firePointEvent("legendItemClick",a,c):f(b,"legendItemClick",a,c)})})};a.prototype.createCheckboxForItem=function(a){a.checkbox=g("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:a.selected,defaultChecked:a.selected},this.options.itemCheckboxStyle,this.chart.container);b(a.checkbox,"click",function(b){f(a.series||a,"checkboxClick",{checked:b.target.checked,
358
- item:a},function(){a.select()})})};return a}();(/Trident\/7\.0/.test(A.navigator&&A.navigator.userAgent)||a)&&z(w.prototype,"positionItem",function(b,a){var c=this,e=function(){a._legendItemPos&&b.call(c,a)};e();c.bubbleLegend||setTimeout(e)});"";return w});I(a,"Core/Series/SeriesRegistry.js",[a["Core/Globals.js"],a["Core/DefaultOptions.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,v,A,y){var r=v.defaultOptions,w=y.error,D=y.extendClass,t=y.merge,l;(function(h){function d(b,a){var d=
359
- r.plotOptions||{},g=a.defaultOptions;a.prototype.pointClass||(a.prototype.pointClass=A);a.prototype.type=b;g&&(d[b]=g);h.seriesTypes[b]=a}h.seriesTypes=a.seriesTypes;h.getSeries=function(b,a){void 0===a&&(a={});var d=b.options.chart;d=a.type||d.type||d.defaultSeriesType||"";var g=h.seriesTypes[d];h||w(17,!0,b,{missingModuleFor:d});d=new g;"function"===typeof d.init&&d.init(b,a);return d};h.registerSeriesType=d;h.seriesType=function(b,a,p,k,l){var g=r.plotOptions||{};a=a||"";g[b]=t(g[a],p);d(b,D(h.seriesTypes[a]||
360
- function(){},k));h.seriesTypes[b].prototype.type=b;l&&(h.seriesTypes[b].prototype.pointClass=D(A,l));return h.seriesTypes[b]}})(l||(l={}));return l});I(a,"Core/Chart/Chart.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/Axis.js"],a["Core/FormatUtilities.js"],a["Core/Foundation.js"],a["Core/Globals.js"],a["Core/Legend/Legend.js"],a["Core/MSPointer.js"],a["Core/DefaultOptions.js"],a["Core/Color/Palette.js"],a["Core/Pointer.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Series/SeriesRegistry.js"],
361
- a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Time.js"],a["Core/Utilities.js"],a["Core/Renderer/HTML/AST.js"]],function(a,v,A,y,z,w,D,t,l,h,d,b,g,p,k,J){var r=a.animate,f=a.animObject,B=a.setAnimation,x=A.numberFormat,u=y.registerEventOptions,E=z.charts,m=z.doc,q=z.marginNames,e=z.svg,c=z.win,n=t.defaultOptions,C=t.defaultTime,H=b.seriesTypes,L=k.addEvent,F=k.attr,W=k.cleanRecursively,S=k.createElement,R=k.css,T=k.defined,ba=k.discardElement,N=k.erase,M=k.error,I=k.extend,ia=k.find,O=k.fireEvent,
362
- Z=k.getStyle,K=k.isArray,U=k.isNumber,P=k.isObject,X=k.isString,V=k.merge,Y=k.objectEach,Q=k.pick,da=k.pInt,ea=k.relativeLength,ja=k.removeEvent,ca=k.splat,fa=k.syncTimeout,ka=k.uniqueKey;a=function(){function b(b,a,c){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=
363
- this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0;this.sharedClips={};this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0;this.getArgs(b,a,c)}b.chart=function(a,c,e){return new b(a,c,e)};b.prototype.getArgs=function(b,a,c){X(b)||b.nodeName?(this.renderTo=b,this.init(a,c)):this.init(b,a)};b.prototype.init=function(b,a){var c=b.plotOptions||{};O(this,"init",{args:arguments},function(){var e=
364
- V(n,b),d=e.chart;Y(e.plotOptions,function(b,a){P(b)&&(b.tooltip=c[a]&&V(c[a].tooltip)||void 0)});e.tooltip.userOptions=b.chart&&b.chart.forExport&&b.tooltip.userOptions||b.tooltip;this.userOptions=b;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=a;this.isResizing=0;this.options=e;this.axes=[];this.series=[];this.time=b.time&&Object.keys(b.time).length?new p(b.time):z.time;this.numberFormatter=d.numberFormatter||x;this.styledMode=d.styledMode;this.hasCartesianSeries=
365
- d.showAxes;this.index=E.length;E.push(this);z.chartCount++;u(this,d);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;O(this,"afterInit");this.firstRender()})};b.prototype.initSeries=function(b){var a=this.options.chart;a=b.type||a.type||a.defaultSeriesType;var c=H[a];c||M(17,!0,this,{missingModuleFor:a});a=new c;"function"===typeof a.init&&a.init(this,b);return a};b.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(b){b.points||b.data||
366
- !b.enabledDataSorting||b.setData(b.options.data,!1)})};b.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(b,a){return b.linkedSeries.length||a.linkedSeries.length?a.linkedSeries.length-b.linkedSeries.length:0})};b.prototype.orderSeries=function(b){var a=this.series;b=b||0;for(var c=a.length;b<c;++b)a[b]&&(a[b].index=b,a[b].name=a[b].getName())};b.prototype.isInsidePlot=function(b,a,c){void 0===c&&(c={});var e=this.inverted,d=this.plotBox,f=this.plotLeft,g=this.plotTop,
367
- k=this.scrollablePlotBox,h=0;var n=0;c.visiblePlotOnly&&this.scrollingContainer&&(n=this.scrollingContainer,h=n.scrollLeft,n=n.scrollTop);var m=c.series;d=c.visiblePlotOnly&&k||d;k=c.inverted?a:b;a=c.inverted?b:a;b={x:k,y:a,isInsidePlot:!0};if(!c.ignoreX){var q=m&&(e?m.yAxis:m.xAxis)||{pos:f,len:Infinity};k=c.paneCoordinates?q.pos+k:f+k;k>=Math.max(h+f,q.pos)&&k<=Math.min(h+f+d.width,q.pos+q.len)||(b.isInsidePlot=!1)}!c.ignoreY&&b.isInsidePlot&&(e=m&&(e?m.xAxis:m.yAxis)||{pos:g,len:Infinity},c=c.paneCoordinates?
368
- e.pos+a:g+a,c>=Math.max(n+g,e.pos)&&c<=Math.min(n+g+d.height,e.pos+e.len)||(b.isInsidePlot=!1));O(this,"afterIsInsidePlot",b);return b.isInsidePlot};b.prototype.redraw=function(b){O(this,"beforeRedraw");var a=this.hasCartesianSeries?this.axes:this.colorAxis||[],c=this.series,e=this.pointer,d=this.legend,f=this.userOptions.legend,g=this.renderer,k=g.isHidden(),h=[],n=this.isDirtyBox,m=this.isDirtyLegend;this.setResponsive&&this.setResponsive(!1);B(this.hasRendered?b:!1,this);k&&this.temporaryDisplay();
369
- this.layOutTitles();for(b=c.length;b--;){var q=c[b];if(q.options.stacking||q.options.centerInCategory){var p=!0;if(q.isDirty){var u=!0;break}}}if(u)for(b=c.length;b--;)q=c[b],q.options.stacking&&(q.isDirty=!0);c.forEach(function(b){b.isDirty&&("point"===b.options.legendType?("function"===typeof b.updateTotals&&b.updateTotals(),m=!0):f&&(f.labelFormatter||f.labelFormat)&&(m=!0));b.isDirtyData&&O(b,"updatedData")});m&&d&&d.options.enabled&&(d.render(),this.isDirtyLegend=!1);p&&this.getStacks();a.forEach(function(b){b.updateNames();
370
- b.setScale()});this.getMargins();a.forEach(function(b){b.isDirty&&(n=!0)});a.forEach(function(b){var a=b.min+","+b.max;b.extKey!==a&&(b.extKey=a,h.push(function(){O(b,"afterSetExtremes",I(b.eventArgs,b.getExtremes()));delete b.eventArgs}));(n||p)&&b.redraw()});n&&this.drawChartBox();O(this,"predraw");c.forEach(function(b){(n||b.isDirty)&&b.visible&&b.redraw();b.isDirtyData=!1});e&&e.reset(!0);g.draw();O(this,"redraw");O(this,"render");k&&this.temporaryDisplay(!0);h.forEach(function(b){b.call()})};
371
- b.prototype.get=function(b){function a(a){return a.id===b||a.options&&a.options.id===b}for(var c=this.series,e=ia(this.axes,a)||ia(this.series,a),d=0;!e&&d<c.length;d++)e=ia(c[d].points||[],a);return e};b.prototype.getAxes=function(){var b=this,a=this.options,c=a.xAxis=ca(a.xAxis||{});a=a.yAxis=ca(a.yAxis||{});O(this,"getAxes");c.forEach(function(b,a){b.index=a;b.isX=!0});a.forEach(function(b,a){b.index=a});c.concat(a).forEach(function(a){new v(b,a)});O(this,"afterGetAxes")};b.prototype.getSelectedPoints=
372
- function(){return this.series.reduce(function(b,a){a.getPointsCollection().forEach(function(a){Q(a.selectedStaging,a.selected)&&b.push(a)});return b},[])};b.prototype.getSelectedSeries=function(){return this.series.filter(function(b){return b.selected})};b.prototype.setTitle=function(b,a,c){this.applyDescription("title",b);this.applyDescription("subtitle",a);this.applyDescription("caption",void 0);this.layOutTitles(c)};b.prototype.applyDescription=function(b,a){var c=this,e="title"===b?{color:l.neutralColor80,
373
- fontSize:this.options.isStock?"16px":"18px"}:{color:l.neutralColor60};e=this.options[b]=V(!this.styledMode&&{style:e},this.options[b],a);var d=this[b];d&&a&&(this[b]=d=d.destroy());e&&!d&&(d=this.renderer.text(e.text,0,0,e.useHTML).attr({align:e.align,"class":"highcharts-"+b,zIndex:e.zIndex||4}).add(),d.update=function(a){c[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[b]](a)},this.styledMode||d.css(e.style),this[b]=d)};b.prototype.layOutTitles=function(b){var a=[0,0,0],c=this.renderer,
374
- e=this.spacingBox;["title","subtitle","caption"].forEach(function(b){var d=this[b],f=this.options[b],g=f.verticalAlign||"top";b="title"===b?"top"===g?-3:0:"top"===g?a[0]+2:0;var k;if(d){this.styledMode||(k=f.style&&f.style.fontSize);k=c.fontMetrics(k,d).b;d.css({width:(f.width||e.width+(f.widthAdjust||0))+"px"});var h=Math.round(d.getBBox(f.useHTML).height);d.align(I({y:"bottom"===g?k:b+k,height:h},f),!1,"spacingBox");f.floating||("top"===g?a[0]=Math.ceil(a[0]+h):"bottom"===g&&(a[2]=Math.ceil(a[2]+
375
- h)))}},this);a[0]&&"top"===(this.options.title.verticalAlign||"top")&&(a[0]+=this.options.title.margin);a[2]&&"bottom"===this.options.caption.verticalAlign&&(a[2]+=this.options.caption.margin);var d=!this.titleOffset||this.titleOffset.join(",")!==a.join(",");this.titleOffset=a;O(this,"afterLayOutTitles");!this.isDirtyBox&&d&&(this.isDirtyBox=this.isDirtyLegend=d,this.hasRendered&&Q(b,!0)&&this.isDirtyBox&&this.redraw())};b.prototype.getChartSize=function(){var b=this.options.chart,a=b.width;b=b.height;
376
- var c=this.renderTo;T(a)||(this.containerWidth=Z(c,"width"));T(b)||(this.containerHeight=Z(c,"height"));this.chartWidth=Math.max(0,a||this.containerWidth||600);this.chartHeight=Math.max(0,ea(b,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};b.prototype.temporaryDisplay=function(b){var a=this.renderTo;if(b)for(;a&&a.style;)a.hcOrigStyle&&(R(a,a.hcOrigStyle),delete a.hcOrigStyle),a.hcOrigDetached&&(m.body.removeChild(a),a.hcOrigDetached=!1),a=a.parentNode;else for(;a&&a.style;){m.body.contains(a)||
377
- a.parentNode||(a.hcOrigDetached=!0,m.body.appendChild(a));if("none"===Z(a,"display",!1)||a.hcOricDetached)a.hcOrigStyle={display:a.style.display,height:a.style.height,overflow:a.style.overflow},b={display:"block",overflow:"hidden"},a!==this.renderTo&&(b.height=0),R(a,b),a.offsetWidth||a.style.setProperty("display","block","important");a=a.parentNode;if(a===m.body)break}};b.prototype.setClassName=function(b){this.container.className="highcharts-container "+(b||"")};b.prototype.getContainer=function(){var b=
378
- this.options,a=b.chart,c=ka(),f,k=this.renderTo;k||(this.renderTo=k=a.renderTo);X(k)&&(this.renderTo=k=m.getElementById(k));k||M(13,!0,this);var h=da(F(k,"data-highcharts-chart"));U(h)&&E[h]&&E[h].hasRendered&&E[h].destroy();F(k,"data-highcharts-chart",this.index);k.innerHTML="";a.skipClone||k.offsetWidth||this.temporaryDisplay();this.getChartSize();h=this.chartWidth;var n=this.chartHeight;R(k,{overflow:"hidden"});this.styledMode||(f=I({position:"relative",overflow:"hidden",width:h+"px",height:n+
379
- "px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},a.style||{}));this.container=c=S("div",{id:c},f,k);this._cursor=c.style.cursor;this.renderer=new (a.renderer||!e?d.getRendererType(a.renderer):g)(c,h,n,void 0,a.forExport,b.exporting&&b.exporting.allowHTML,this.styledMode);B(void 0,this);this.setClassName(a.className);if(this.styledMode)for(var q in b.defs)this.renderer.definition(b.defs[q]);
380
- else this.renderer.setStyle(a.style);this.renderer.chartIndex=this.index;O(this,"afterGetContainer")};b.prototype.getMargins=function(b){var a=this.spacing,c=this.margin,e=this.titleOffset;this.resetMargins();e[0]&&!T(c[0])&&(this.plotTop=Math.max(this.plotTop,e[0]+a[0]));e[2]&&!T(c[2])&&(this.marginBottom=Math.max(this.marginBottom,e[2]+a[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(c,a);O(this,"getMargins");b||this.getAxisMargins()};b.prototype.getAxisMargins=function(){var b=
381
- this,a=b.axisOffset=[0,0,0,0],c=b.colorAxis,e=b.margin,d=function(b){b.forEach(function(b){b.visible&&b.getOffset()})};b.hasCartesianSeries?d(b.axes):c&&c.length&&d(c);q.forEach(function(c,d){T(e[d])||(b[c]+=a[d])});b.setChartSize()};b.prototype.reflow=function(b){var a=this,e=a.options.chart,d=a.renderTo,f=T(e.width)&&T(e.height),g=e.width||Z(d,"width");e=e.height||Z(d,"height");d=b?b.target:c;delete a.pointer.chartPosition;if(!f&&!a.isPrinting&&g&&e&&(d===c||d===m)){if(g!==a.containerWidth||e!==
382
- a.containerHeight)k.clearTimeout(a.reflowTimeout),a.reflowTimeout=fa(function(){a.container&&a.setSize(void 0,void 0,!1)},b?100:0);a.containerWidth=g;a.containerHeight=e}};b.prototype.setReflow=function(b){var a=this;!1===b||this.unbindReflow?!1===b&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=L(c,"resize",function(b){a.options&&a.reflow(b)}),L(this,"destroy",this.unbindReflow))};b.prototype.setSize=function(b,a,c){var e=this,d=e.renderer;e.isResizing+=1;B(c,e);c=
383
- d.globalAnimation;e.oldChartHeight=e.chartHeight;e.oldChartWidth=e.chartWidth;"undefined"!==typeof b&&(e.options.chart.width=b);"undefined"!==typeof a&&(e.options.chart.height=a);e.getChartSize();e.styledMode||(c?r:R)(e.container,{width:e.chartWidth+"px",height:e.chartHeight+"px"},c);e.setChartSize(!0);d.setSize(e.chartWidth,e.chartHeight,c);e.axes.forEach(function(b){b.isDirty=!0;b.setScale()});e.isDirtyLegend=!0;e.isDirtyBox=!0;e.layOutTitles();e.getMargins();e.redraw(c);e.oldChartHeight=null;O(e,
384
- "resize");fa(function(){e&&O(e,"endResize",null,function(){--e.isResizing})},f(c).duration)};b.prototype.setChartSize=function(b){var a=this.inverted,c=this.renderer,e=this.chartWidth,d=this.chartHeight,f=this.options.chart,g=this.spacing,k=this.clipOffset,h,n,m,q;this.plotLeft=h=Math.round(this.plotLeft);this.plotTop=n=Math.round(this.plotTop);this.plotWidth=m=Math.max(0,Math.round(e-h-this.marginRight));this.plotHeight=q=Math.max(0,Math.round(d-n-this.marginBottom));this.plotSizeX=a?q:m;this.plotSizeY=
385
- a?m:q;this.plotBorderWidth=f.plotBorderWidth||0;this.spacingBox=c.spacingBox={x:g[3],y:g[0],width:e-g[3]-g[1],height:d-g[0]-g[2]};this.plotBox=c.plotBox={x:h,y:n,width:m,height:q};a=2*Math.floor(this.plotBorderWidth/2);e=Math.ceil(Math.max(a,k[3])/2);d=Math.ceil(Math.max(a,k[0])/2);this.clipBox={x:e,y:d,width:Math.floor(this.plotSizeX-Math.max(a,k[1])/2-e),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(a,k[2])/2-d))};b||(this.axes.forEach(function(b){b.setAxisSize();b.setAxisTranslation()}),
386
- c.alignElements());O(this,"afterSetChartSize",{skipAxes:b})};b.prototype.resetMargins=function(){O(this,"resetMargins");var b=this,a=b.options.chart;["margin","spacing"].forEach(function(c){var e=a[c],d=P(e)?e:[e,e,e,e];["Top","Right","Bottom","Left"].forEach(function(e,f){b[c][f]=Q(a[c+e],d[f])})});q.forEach(function(a,c){b[a]=Q(b.margin[c],b.spacing[c])});b.axisOffset=[0,0,0,0];b.clipOffset=[0,0,0,0]};b.prototype.drawChartBox=function(){var b=this.options.chart,a=this.renderer,c=this.chartWidth,
387
- e=this.chartHeight,d=this.styledMode,f=this.plotBGImage,g=b.backgroundColor,k=b.plotBackgroundColor,h=b.plotBackgroundImage,n=this.plotLeft,m=this.plotTop,q=this.plotWidth,p=this.plotHeight,u=this.plotBox,l=this.clipRect,B=this.clipBox,x=this.chartBackground,K=this.plotBackground,r=this.plotBorder,t,E="animate";x||(this.chartBackground=x=a.rect().addClass("highcharts-background").add(),E="attr");if(d)var C=t=x.strokeWidth();else{C=b.borderWidth||0;t=C+(b.shadow?8:0);g={fill:g||"none"};if(C||x["stroke-width"])g.stroke=
388
- b.borderColor,g["stroke-width"]=C;x.attr(g).shadow(b.shadow)}x[E]({x:t/2,y:t/2,width:c-t-C%2,height:e-t-C%2,r:b.borderRadius});E="animate";K||(E="attr",this.plotBackground=K=a.rect().addClass("highcharts-plot-background").add());K[E](u);d||(K.attr({fill:k||"none"}).shadow(b.plotShadow),h&&(f?(h!==f.attr("href")&&f.attr("href",h),f.animate(u)):this.plotBGImage=a.image(h,n,m,q,p).add()));l?l.animate({width:B.width,height:B.height}):this.clipRect=a.clipRect(B);E="animate";r||(E="attr",this.plotBorder=
389
- r=a.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());d||r.attr({stroke:b.plotBorderColor,"stroke-width":b.plotBorderWidth||0,fill:"none"});r[E](r.crisp({x:n,y:m,width:q,height:p},-r.strokeWidth()));this.isDirtyBox=!1;O(this,"afterDrawChartBox")};b.prototype.propFromSeries=function(){var b=this,a=b.options.chart,c=b.options.series,e,d,f;["inverted","angular","polar"].forEach(function(g){d=H[a.type||a.defaultSeriesType];f=a[g]||d&&d.prototype[g];for(e=c&&c.length;!f&&e--;)(d=H[c[e].type])&&
390
- d.prototype[g]&&(f=!0);b[g]=f})};b.prototype.linkSeries=function(){var b=this,a=b.series;a.forEach(function(b){b.linkedSeries.length=0});a.forEach(function(a){var c=a.options.linkedTo;X(c)&&(c=":previous"===c?b.series[a.index-1]:b.get(c))&&c.linkedParent!==a&&(c.linkedSeries.push(a),a.linkedParent=c,c.enabledDataSorting&&a.setDataSortingOptions(),a.visible=Q(a.options.visible,c.options.visible,a.visible))});O(this,"afterLinkSeries")};b.prototype.renderSeries=function(){this.series.forEach(function(b){b.translate();
391
- b.render()})};b.prototype.renderLabels=function(){var b=this,a=b.options.labels;a.items&&a.items.forEach(function(c){var e=I(a.style,c.style),d=da(e.left)+b.plotLeft,f=da(e.top)+b.plotTop+12;delete e.left;delete e.top;b.renderer.text(c.html,d,f).attr({zIndex:2}).css(e).add()})};b.prototype.render=function(){var b=this.axes,a=this.colorAxis,c=this.renderer,e=this.options,d=function(b){b.forEach(function(b){b.visible&&b.render()})},f=0;this.setTitle();this.legend=new w(this,e.legend);this.getStacks&&
392
- this.getStacks();this.getMargins(!0);this.setChartSize();e=this.plotWidth;b.some(function(b){if(b.horiz&&b.visible&&b.options.labels.enabled&&b.series.length)return f=21,!0});var g=this.plotHeight=Math.max(this.plotHeight-f,0);b.forEach(function(b){b.setScale()});this.getAxisMargins();var k=1.1<e/this.plotWidth,h=1.05<g/this.plotHeight;if(k||h)b.forEach(function(b){(b.horiz&&k||!b.horiz&&h)&&b.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?d(b):a&&a.length&&d(a);
393
- this.seriesGroup||(this.seriesGroup=c.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=!0};b.prototype.addCredits=function(b){var a=this,e=V(!0,this.options.credits,b);e.enabled&&!this.credits&&(this.credits=this.renderer.text(e.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){e.href&&(c.location.href=e.href)}).attr({align:e.position.align,zIndex:8}),a.styledMode||
394
- this.credits.css(e.style),this.credits.add().align(e.position),this.credits.update=function(b){a.credits=a.credits.destroy();a.addCredits(b)})};b.prototype.destroy=function(){var b=this,a=b.axes,c=b.series,e=b.container,d=e&&e.parentNode,f;O(b,"destroy");b.renderer.forExport?N(E,b):E[b.index]=void 0;z.chartCount--;b.renderTo.removeAttribute("data-highcharts-chart");ja(b);for(f=a.length;f--;)a[f]=a[f].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(f=c.length;f--;)c[f]=
395
- c[f].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(a){var c=b[a];c&&c.destroy&&(b[a]=c.destroy())});e&&(e.innerHTML="",ja(e),d&&ba(e));Y(b,function(a,c){delete b[c]})};b.prototype.firstRender=function(){var b=this,a=b.options;if(!b.isReadyToRender||b.isReadyToRender()){b.getContainer();b.resetMargins();b.setChartSize();b.propFromSeries();b.getAxes();
396
- (K(a.series)?a.series:[]).forEach(function(a){b.initSeries(a)});b.linkSeries();b.setSeriesData();O(b,"beforeRender");h&&(D.isRequired()?b.pointer=new D(b,a):b.pointer=new h(b,a));b.render();b.pointer.getChartPosition();if(!b.renderer.imgCount&&!b.hasLoaded)b.onload();b.temporaryDisplay(!0)}};b.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(b){b&&"undefined"!==typeof this.index&&b.apply(this,[this])},this);O(this,"load");O(this,"render");T(this.index)&&this.setReflow(this.options.chart.reflow);
397
- this.hasLoaded=!0};b.prototype.addSeries=function(b,a,c){var e=this,d;b&&(a=Q(a,!0),O(e,"addSeries",{options:b},function(){d=e.initSeries(b);e.isDirtyLegend=!0;e.linkSeries();d.enabledDataSorting&&d.setData(b.data,!1);O(e,"afterAddSeries",{series:d});a&&e.redraw(c)}));return d};b.prototype.addAxis=function(b,a,c,e){return this.createAxis(a?"xAxis":"yAxis",{axis:b,redraw:c,animation:e})};b.prototype.addColorAxis=function(b,a,c){return this.createAxis("colorAxis",{axis:b,redraw:a,animation:c})};b.prototype.createAxis=
398
- function(b,a){b=new v(this,V(a.axis,{index:this[b].length,isX:"xAxis"===b}));Q(a.redraw,!0)&&this.redraw(a.animation);return b};b.prototype.showLoading=function(b){var a=this,c=a.options,e=c.loading,d=function(){f&&R(f,{left:a.plotLeft+"px",top:a.plotTop+"px",width:a.plotWidth+"px",height:a.plotHeight+"px"})},f=a.loadingDiv,g=a.loadingSpan;f||(a.loadingDiv=f=S("div",{className:"highcharts-loading highcharts-loading-hidden"},null,a.container));g||(a.loadingSpan=g=S("span",{className:"highcharts-loading-inner"},
399
- null,f),L(a,"redraw",d));f.className="highcharts-loading";J.setElementHTML(g,Q(b,c.lang.loading,""));a.styledMode||(R(f,I(e.style,{zIndex:10})),R(g,e.labelStyle),a.loadingShown||(R(f,{opacity:0,display:""}),r(f,{opacity:e.style.opacity||.5},{duration:e.showDuration||0})));a.loadingShown=!0;d()};b.prototype.hideLoading=function(){var b=this.options,a=this.loadingDiv;a&&(a.className="highcharts-loading highcharts-loading-hidden",this.styledMode||r(a,{opacity:0},{duration:b.loading.hideDuration||100,
400
- complete:function(){R(a,{display:"none"})}}));this.loadingShown=!1};b.prototype.update=function(b,a,c,e){var d=this,f={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},g=b.isResponsiveOptions,k=[],h,n;O(d,"update",{options:b});g||d.setResponsive(!1,!0);b=W(b,d.options);d.userOptions=V(d.userOptions,b);var m=b.chart;if(m){V(!0,d.options.chart,m);"className"in m&&d.setClassName(m.className);"reflow"in m&&d.setReflow(m.reflow);if("inverted"in m||"polar"in m||"type"in
401
- m){d.propFromSeries();var q=!0}"alignTicks"in m&&(q=!0);"events"in m&&u(this,m);Y(m,function(b,a){-1!==d.propsRequireUpdateSeries.indexOf("chart."+a)&&(h=!0);-1!==d.propsRequireDirtyBox.indexOf(a)&&(d.isDirtyBox=!0);-1!==d.propsRequireReflow.indexOf(a)&&(g?d.isDirtyBox=!0:n=!0)});!d.styledMode&&m.style&&d.renderer.setStyle(d.options.chart.style||{})}!d.styledMode&&b.colors&&(this.options.colors=b.colors);b.time&&(this.time===C&&(this.time=new p(b.time)),V(!0,d.options.time,b.time));Y(b,function(a,
402
- c){if(d[c]&&"function"===typeof d[c].update)d[c].update(a,!1);else if("function"===typeof d[f[c]])d[f[c]](a);else"colors"!==c&&-1===d.collectionsWithUpdate.indexOf(c)&&V(!0,d.options[c],b[c]);"chart"!==c&&-1!==d.propsRequireUpdateSeries.indexOf(c)&&(h=!0)});this.collectionsWithUpdate.forEach(function(a){if(b[a]){var e=[];d[a].forEach(function(b,a){b.options.isInternal||e.push(Q(b.options.index,a))});ca(b[a]).forEach(function(b,f){var g=T(b.id),k;g&&(k=d.get(b.id));!k&&d[a]&&(k=d[a][e?e[f]:f])&&g&&
403
- T(k.options.id)&&(k=void 0);k&&k.coll===a&&(k.update(b,!1),c&&(k.touched=!0));!k&&c&&d.collectionsWithInit[a]&&(d.collectionsWithInit[a][0].apply(d,[b].concat(d.collectionsWithInit[a][1]||[]).concat([!1])).touched=!0)});c&&d[a].forEach(function(b){b.touched||b.options.isInternal?delete b.touched:k.push(b)})}});k.forEach(function(b){b.chart&&b.remove&&b.remove(!1)});q&&d.axes.forEach(function(b){b.update({},!1)});h&&d.getSeriesOrderByLinks().forEach(function(b){b.chart&&b.update({},!1)},this);q=m&&
404
- m.width;m=m&&(X(m.height)?ea(m.height,q||d.chartWidth):m.height);n||U(q)&&q!==d.chartWidth||U(m)&&m!==d.chartHeight?d.setSize(q,m,e):Q(a,!0)&&d.redraw(e);O(d,"afterUpdate",{options:b,redraw:a,animation:e})};b.prototype.setSubtitle=function(b,a){this.applyDescription("subtitle",b);this.layOutTitles(a)};b.prototype.setCaption=function(b,a){this.applyDescription("caption",b);this.layOutTitles(a)};b.prototype.showResetZoom=function(){function b(){a.zoomOut()}var a=this,c=n.lang,e=a.options.chart.resetZoomButton,
405
- d=e.theme,f=d.states,g="chart"===e.relativeTo||"spacingBox"===e.relativeTo?null:"scrollablePlotBox";O(this,"beforeShowResetZoom",null,function(){a.resetZoomButton=a.renderer.button(c.resetZoom,null,null,b,d,f&&f.hover).attr({align:e.position.align,title:c.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(e.position,!1,g)});O(this,"afterShowResetZoom")};b.prototype.zoomOut=function(){O(this,"selection",{resetSelection:!0},this.zoom)};b.prototype.zoom=function(b){var a=this,c=a.pointer,
406
- e=a.inverted?c.mouseDownX:c.mouseDownY,d=!1,f;!b||b.resetSelection?(a.axes.forEach(function(b){f=b.zoom()}),c.initiated=!1):b.xAxis.concat(b.yAxis).forEach(function(b){var g=b.axis,k=a.inverted?g.left:g.top,h=a.inverted?k+g.width:k+g.height,n=g.isXAxis,m=!1;if(!n&&e>=k&&e<=h||n||!T(e))m=!0;c[n?"zoomX":"zoomY"]&&m&&(f=g.zoom(b.min,b.max),g.displayBtn&&(d=!0))});var g=a.resetZoomButton;d&&!g?a.showResetZoom():!d&&P(g)&&(a.resetZoomButton=g.destroy());f&&a.redraw(Q(a.options.chart.animation,b&&b.animation,
407
- 100>a.pointCount))};b.prototype.pan=function(b,a){var c=this,e=c.hoverPoints;a="object"===typeof a?a:{enabled:a,type:"x"};var d=c.options.chart,f=c.options.mapNavigation&&c.options.mapNavigation.enabled;d&&d.panning&&(d.panning=a);var g=a.type,k;O(this,"pan",{originalEvent:b},function(){e&&e.forEach(function(b){b.setState()});var a=c.xAxis;"xy"===g?a=a.concat(c.yAxis):"y"===g&&(a=c.yAxis);var d={};a.forEach(function(a){if(a.options.panningEnabled&&!a.options.isInternal){var e=a.horiz,h=b[e?"chartX":
408
- "chartY"];e=e?"mouseDownX":"mouseDownY";var n=c[e],m=a.minPointOffset||0,q=a.reversed&&!c.inverted||!a.reversed&&c.inverted?-1:1,p=a.getExtremes(),u=a.toValue(n-h,!0)+m*q,l=a.toValue(n+a.len-h,!0)-(m*q||a.isXAxis&&a.pointRangePadding||0),B=l<u;q=a.hasVerticalPanning();n=B?l:u;u=B?u:l;var x=a.panningState;!q||a.isXAxis||x&&!x.isDirty||a.series.forEach(function(b){var a=b.getProcessedData(!0);a=b.getExtremes(a.yData,!0);x||(x={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});U(a.dataMin)&&U(a.dataMax)&&
409
- (x.startMin=Math.min(Q(b.options.threshold,Infinity),a.dataMin,x.startMin),x.startMax=Math.max(Q(b.options.threshold,-Infinity),a.dataMax,x.startMax))});q=Math.min(Q(x&&x.startMin,p.dataMin),m?p.min:a.toValue(a.toPixels(p.min)-a.minPixelPadding));l=Math.max(Q(x&&x.startMax,p.dataMax),m?p.max:a.toValue(a.toPixels(p.max)+a.minPixelPadding));a.panningState=x;a.isOrdinal||(m=q-n,0<m&&(u+=m,n=q),m=u-l,0<m&&(u=l,n-=m),a.series.length&&n!==p.min&&u!==p.max&&n>=q&&u<=l&&(a.setExtremes(n,u,!1,!1,{trigger:"pan"}),
410
- c.resetZoomButton||f||n===q||u===l||!g.match("y")||(c.showResetZoom(),a.displayBtn=!1),k=!0),d[e]=h)}});Y(d,function(b,a){c[a]=b});k&&c.redraw(!1);R(c.container,{cursor:"move"})})};return b}();I(a.prototype,{callbacks:[],collectionsWithInit:{xAxis:[a.prototype.addAxis,[!0]],yAxis:[a.prototype.addAxis,[!1]],series:[a.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
411
- propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});"";return a});I(a,"Core/Legend/LegendSymbol.js",[a["Core/Utilities.js"]],function(a){var r=a.merge,A=a.pick,y;(function(a){a.drawLineMarker=function(a){var w=this.options,t=a.symbolWidth,l=a.symbolHeight,h=l/2,d=this.chart.renderer,
412
- b=this.legendGroup;a=a.baseline-Math.round(.3*a.fontMetrics.b);var g={},p=w.marker;this.chart.styledMode||(g={"stroke-width":w.lineWidth||0},w.dashStyle&&(g.dashstyle=w.dashStyle));this.legendLine=d.path([["M",0,a],["L",t,a]]).addClass("highcharts-graph").attr(g).add(b);p&&!1!==p.enabled&&t&&(w=Math.min(A(p.radius,h),h),0===this.symbol.indexOf("url")&&(p=r(p,{width:l,height:l}),w=0),this.legendSymbol=t=d.symbol(this.symbol,t/2-w,a-w,2*w,2*w,p).addClass("highcharts-point").add(b),t.isMarker=!0)};a.drawRectangle=
413
- function(a,r){var t=a.symbolHeight,l=a.options.squareSymbol;r.legendSymbol=this.chart.renderer.rect(l?(a.symbolWidth-t)/2:0,a.baseline-t+1,l?t:a.symbolWidth,t,A(a.options.symbolRadius,t/2)).addClass("highcharts-point").attr({zIndex:3}).add(r.legendGroup)}})(y||(y={}));return y});I(a,"Core/Series/SeriesDefaults.js",[a["Core/Color/Palette.js"]],function(a){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:a.backgroundColor,
414
- lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:a.neutralColor20,lineColor:a.neutralColor100,lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var a=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":a(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},
415
- cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"}});I(a,"Core/Series/Series.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/DefaultOptions.js"],a["Core/Foundation.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Color/Palette.js"],
416
- a["Core/Series/Point.js"],a["Core/Series/SeriesDefaults.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w,D,t,l,h,d){var b=a.animObject,g=a.setAnimation,p=v.defaultOptions,k=A.registerEventOptions,r=y.hasTouch,G=y.svg,f=y.win,B=l.seriesTypes,x=d.addEvent,u=d.arrayMax,E=d.arrayMin,m=d.clamp,q=d.cleanRecursively,e=d.correctFloat,c=d.defined,n=d.erase,C=d.error,H=d.extend,L=d.find,F=d.fireEvent,W=d.getNestedProperty,S=d.isArray,
417
- R=d.isNumber,T=d.isString,ba=d.merge,N=d.objectEach,M=d.pick,I=d.removeEvent,ia=d.splat,O=d.syncTimeout;a=function(){function a(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}a.prototype.init=function(b,a){F(this,"init",{options:a});var c=this,e=b.series;this.eventsToUnbind=[];c.chart=b;c.options=c.setOptions(a);
418
- a=c.options;c.linkedSeries=[];c.bindAxes();H(c,{name:a.name,state:"",visible:!1!==a.visible,selected:!0===a.selected});k(this,a);var d=a.events;if(d&&d.click||a.point&&a.point.events&&a.point.events.click||a.allowPointSelect)b.runTrackerClick=!0;c.getColor();c.getSymbol();c.parallelArrays.forEach(function(b){c[b+"Data"]||(c[b+"Data"]=[])});c.isCartesian&&(b.hasCartesianSeries=!0);var f;e.length&&(f=e[e.length-1]);c._i=M(f&&f._i,-1)+1;c.opacity=c.options.opacity;b.orderSeries(this.insert(e));a.dataSorting&&
419
- a.dataSorting.enabled?c.setDataSortingOptions():c.points||c.data||c.setData(a.data,!1);F(this,"afterInit")};a.prototype.is=function(b){return B[b]&&this instanceof B[b]};a.prototype.insert=function(b){var a=this.options.index,c;if(R(a)){for(c=b.length;c--;)if(a>=M(b[c].options.index,b[c]._i)){b.splice(c+1,0,this);break}-1===c&&b.unshift(this);c+=1}else b.push(this);return M(c,b.length-1)};a.prototype.bindAxes=function(){var b=this,a=b.options,c=b.chart,e;F(this,"bindAxes",null,function(){(b.axisTypes||
420
- []).forEach(function(d){var f=0;c[d].forEach(function(c){e=c.options;if(a[d]===f&&!e.isInternal||"undefined"!==typeof a[d]&&a[d]===e.id||"undefined"===typeof a[d]&&0===e.index)b.insert(c.series),b[d]=c,c.isDirty=!0;e.isInternal||f++});b[d]||b.optionalAxis===d||C(18,!0,c)})});F(this,"afterBindAxes")};a.prototype.updateParallelArrays=function(b,a){var c=b.series,e=arguments,d=R(a)?function(e){var d="y"===e&&c.toYData?c.toYData(b):b[e];c[e+"Data"][a]=d}:function(b){Array.prototype[a].apply(c[b+"Data"],
421
- Array.prototype.slice.call(e,2))};c.parallelArrays.forEach(d)};a.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0<this.yData.length};a.prototype.autoIncrement=function(b){var a=this.options,c=a.pointIntervalUnit,e=a.relativeXValue,d=this.chart.time,f=this.xIncrement,g;f=M(f,a.pointStart,0);this.pointInterval=g=M(this.pointInterval,a.pointInterval,1);e&&R(b)&&(g*=b);c&&(a=new d.Date(f),"day"===c?d.set("Date",
422
- a,d.get("Date",a)+g):"month"===c?d.set("Month",a,d.get("Month",a)+g):"year"===c&&d.set("FullYear",a,d.get("FullYear",a)+g),g=a.getTime()-f);if(e&&R(b))return f+g;this.xIncrement=f+g;return f};a.prototype.setDataSortingOptions=function(){var b=this.options;H(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});c(b.pointRange)||(b.pointRange=1)};a.prototype.setOptions=function(b){var a=this.chart,e=a.options,d=e.plotOptions,f=a.userOptions||{};b=ba(b);a=a.styledMode;var g={plotOptions:d,
423
- userOptions:b};F(this,"setOptions",g);var k=g.plotOptions[this.type],h=f.plotOptions||{};this.userOptions=g.userOptions;f=ba(k,d.series,f.plotOptions&&f.plotOptions[this.type],b);this.tooltipOptions=ba(p.tooltip,p.plotOptions.series&&p.plotOptions.series.tooltip,p.plotOptions[this.type].tooltip,e.tooltip.userOptions,d.series&&d.series.tooltip,d[this.type].tooltip,b.tooltip);this.stickyTracking=M(b.stickyTracking,h[this.type]&&h[this.type].stickyTracking,h.series&&h.series.stickyTracking,this.tooltipOptions.shared&&
424
- !this.noSharedTooltip?!0:f.stickyTracking);null===k.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;d=this.zones=(f.zones||[]).slice();!f.negativeColor&&!f.negativeFillColor||f.zones||(e={value:f[this.zoneAxis+"Threshold"]||f.threshold||0,className:"highcharts-negative"},a||(e.color=f.negativeColor,e.fillColor=f.negativeFillColor),d.push(e));d.length&&c(d[d.length-1].value)&&d.push(a?{}:{color:this.color,fillColor:this.fillColor});F(this,"afterSetOptions",{options:f});return f};a.prototype.getName=
425
- function(){return M(this.options.name,"Series "+(this.index+1))};a.prototype.getCyclic=function(b,a,e){var d=this.chart,f=this.userOptions,g=b+"Index",k=b+"Counter",h=e?e.length:M(d.options.chart[b+"Count"],d[b+"Count"]);if(!a){var n=M(f[g],f["_"+g]);c(n)||(d.series.length||(d[k]=0),f["_"+g]=n=d[k]%h,d[k]+=1);e&&(a=e[n])}"undefined"!==typeof n&&(this[g]=n);this[b]=a};a.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color=w.neutralColor20:
426
- this.getCyclic("color",this.options.color||p.plotOptions[this.type].color,this.chart.options.colors)};a.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]};a.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};a.prototype.findPointIndex=function(b,a){var c=b.id,e=b.x,d=this.points,f=this.options.dataSorting,g,k;if(c)f=this.chart.get(c),f instanceof D&&(g=f);else if(this.linkedParent||this.enabledDataSorting||
427
- this.options.relativeXValue)if(g=function(a){return!a.touched&&a.index===b.index},f&&f.matchByName?g=function(a){return!a.touched&&a.name===b.name}:this.options.relativeXValue&&(g=function(a){return!a.touched&&a.options.x===b.x}),g=L(d,g),!g)return;if(g){var h=g&&g.index;"undefined"!==typeof h&&(k=!0)}"undefined"===typeof h&&R(e)&&(h=this.xData.indexOf(e,a));-1!==h&&"undefined"!==typeof h&&this.cropped&&(h=h>=this.cropStart?h-this.cropStart:h);!k&&R(h)&&d[h]&&d[h].touched&&(h=void 0);return h};a.prototype.updateData=
428
- function(b,a){var e=this.options,d=e.dataSorting,f=this.points,g=[],k=this.requireSorting,h=b.length===f.length,n,m,q,p=!0;this.xIncrement=null;b.forEach(function(b,a){var m=c(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b)||{},p=m.x;if(m.id||R(p)){if(m=this.findPointIndex(m,q),-1===m||"undefined"===typeof m?g.push(b):f[m]&&b!==e.data[m]?(f[m].update(b,!1,null,!1),f[m].touched=!0,k&&(q=m+1)):f[m]&&(f[m].touched=!0),!h||a!==m||d&&d.enabled||this.hasDerivedData)n=!0}else g.push(b)},
429
- this);if(n)for(b=f.length;b--;)(m=f[b])&&!m.touched&&m.remove&&m.remove(!1,a);else!h||d&&d.enabled?p=!1:(b.forEach(function(b,a){b!==f[a].y&&f[a].update&&f[a].update(b,!1,null,!1)}),g.length=0);f.forEach(function(b){b&&(b.touched=!1)});if(!p)return!1;g.forEach(function(b){this.addPoint(b,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=u(this.xData),this.autoIncrement());return!0};a.prototype.setData=function(b,a,c,e){var d=this,f=d.points,g=f&&f.length||
430
- 0,k=d.options,h=d.chart,n=k.dataSorting,m=d.xAxis,q=k.turboThreshold,p=this.xData,u=this.yData,l=d.pointArrayMap;l=l&&l.length;var B=k.keys,x,t=0,E=1,r=null;b=b||[];var K=b.length;a=M(a,!0);n&&n.enabled&&(b=this.sortData(b));!1!==e&&K&&g&&!d.cropped&&!d.hasGroupedData&&d.visible&&!d.isSeriesBoosting&&(x=this.updateData(b,c));if(!x){d.xIncrement=null;d.colorCounter=0;this.parallelArrays.forEach(function(b){d[b+"Data"].length=0});if(q&&K>q)if(r=d.getFirstValidPoint(b),R(r))for(c=0;c<K;c++)p[c]=this.autoIncrement(),
431
- u[c]=b[c];else if(S(r))if(l)for(c=0;c<K;c++)e=b[c],p[c]=e[0],u[c]=e.slice(1,l+1);else for(B&&(t=B.indexOf("x"),E=B.indexOf("y"),t=0<=t?t:0,E=0<=E?E:1),c=0;c<K;c++)e=b[c],p[c]=e[t],u[c]=e[E];else C(12,!1,h);else for(c=0;c<K;c++)"undefined"!==typeof b[c]&&(e={series:d},d.pointClass.prototype.applyOptions.apply(e,[b[c]]),d.updateParallelArrays(e,c));u&&T(u[0])&&C(14,!0,h);d.data=[];d.options.data=d.userOptions.data=b;for(c=g;c--;)f[c]&&f[c].destroy&&f[c].destroy();m&&(m.minRange=m.userMinRange);d.isDirty=
432
- h.isDirtyBox=!0;d.isDirtyData=!!f;c=!1}"point"===k.legendType&&(this.processData(),this.generatePoints());a&&h.redraw(c)};a.prototype.sortData=function(b){var a=this,e=a.options.dataSorting.sortKey||"y",d=function(b,a){return c(a)&&b.pointClass.prototype.optionsToObject.call({series:b},a)||{}};b.forEach(function(c,e){b[e]=d(a,c);b[e].index=e},this);b.concat().sort(function(b,a){b=W(e,b);a=W(e,a);return a<b?-1:a>b?1:0}).forEach(function(b,a){b.x=a},this);a.linkedSeries&&a.linkedSeries.forEach(function(a){var c=
433
- a.options,e=c.data;c.dataSorting&&c.dataSorting.enabled||!e||(e.forEach(function(c,f){e[f]=d(a,c);b[f]&&(e[f].x=b[f].x,e[f].index=f)}),a.setData(e,!1))});return b};a.prototype.getProcessedData=function(b){var a=this.xAxis,c=this.options,e=c.cropThreshold,d=b||this.getExtremesFromAll||c.getExtremesFromAll,f=this.isCartesian;b=a&&a.val2lin;c=!(!a||!a.logarithmic);var g=0,k=this.xData,h=this.yData,n=this.requireSorting;var m=!1;var q=k.length;if(a){m=a.getExtremes();var p=m.min;var u=m.max;m=a.categories&&
434
- !a.names.length}if(f&&this.sorted&&!d&&(!e||q>e||this.forceCrop))if(k[q-1]<p||k[0]>u)k=[],h=[];else if(this.yData&&(k[0]<p||k[q-1]>u)){var l=this.cropData(this.xData,this.yData,p,u);k=l.xData;h=l.yData;g=l.start;l=!0}for(e=k.length||1;--e;)if(a=c?b(k[e])-b(k[e-1]):k[e]-k[e-1],0<a&&("undefined"===typeof B||a<B))var B=a;else 0>a&&n&&!m&&(C(15,!1,this.chart),n=!1);return{xData:k,yData:h,cropped:l,cropStart:g,closestPointRange:B}};a.prototype.processData=function(b){var a=this.xAxis;if(this.isCartesian&&
435
- !this.isDirty&&!a.isDirty&&!this.yAxis.isDirty&&!b)return!1;b=this.getProcessedData();this.cropped=b.cropped;this.cropStart=b.cropStart;this.processedXData=b.xData;this.processedYData=b.yData;this.closestPointRange=this.basePointRange=b.closestPointRange};a.prototype.cropData=function(b,a,c,e,d){var f=b.length,g,k=0,h=f;d=M(d,this.cropShoulder);for(g=0;g<f;g++)if(b[g]>=c){k=Math.max(0,g-d);break}for(c=g;c<f;c++)if(b[c]>e){h=c+d;break}return{xData:b.slice(k,h),yData:a.slice(k,h),start:k,end:h}};a.prototype.generatePoints=
436
- function(){var b=this.options,a=b.data,c=this.processedXData,e=this.processedYData,d=this.pointClass,f=c.length,g=this.cropStart||0,k=this.hasGroupedData,h=b.keys,n=[];b=b.dataGrouping&&b.dataGrouping.groupAll?g:0;var m,q,p=this.data;if(!p&&!k){var u=[];u.length=a.length;p=this.data=u}h&&k&&(this.options.keys=!1);for(q=0;q<f;q++){u=g+q;if(k){var l=(new d).init(this,[c[q]].concat(ia(e[q])));l.dataGroup=this.groupMap[b+q];l.dataGroup.options&&(l.options=l.dataGroup.options,H(l,l.dataGroup.options),
437
- delete l.dataLabels)}else(l=p[u])||"undefined"===typeof a[u]||(p[u]=l=(new d).init(this,a[u],c[q]));l&&(l.index=k?b+q:u,n[q]=l)}this.options.keys=h;if(p&&(f!==(m=p.length)||k))for(q=0;q<m;q++)q!==g||k||(q+=f),p[q]&&(p[q].destroyElements(),p[q].plotX=void 0);this.data=p;this.points=n;F(this,"afterGeneratePoints")};a.prototype.getXExtremes=function(b){return{min:E(b),max:u(b)}};a.prototype.getExtremes=function(b,a){var c=this.xAxis,e=this.yAxis,d=this.processedXData||this.xData,f=[],g=this.requireSorting?
438
- this.cropShoulder:0;e=e?e.positiveValuesOnly:!1;var k,h=0,n=0,m=0;b=b||this.stackedYData||this.processedYData||[];var q=b.length;if(c){var p=c.getExtremes();h=p.min;n=p.max}for(k=0;k<q;k++){var l=d[k];p=b[k];var B=(R(p)||S(p))&&(p.length||0<p||!e);l=a||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!c||(d[k+g]||l)>=h&&(d[k-g]||l)<=n;if(B&&l)if(B=p.length)for(;B--;)R(p[B])&&(f[m++]=p[B]);else f[m++]=p}b={dataMin:E(f),dataMax:u(f)};F(this,"afterGetExtremes",{dataExtremes:b});
439
- return b};a.prototype.applyExtremes=function(){var b=this.getExtremes();this.dataMin=b.dataMin;this.dataMax=b.dataMax;return b};a.prototype.getFirstValidPoint=function(b){for(var a=b.length,c=0,e=null;null===e&&c<a;)e=b[c],c++;return e};a.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();var b=this.options,a=b.stacking,d=this.xAxis,f=d.categories,g=this.enabledDataSorting,k=this.yAxis,h=this.points,n=h.length,q=!!this.modifyValue,p=this.pointPlacementToXValue(),
440
- u=!!p,l=b.threshold,B=b.startFromThreshold?l:0,x=this.zoneAxis||"y",t,E,r=Number.MAX_VALUE;for(t=0;t<n;t++){var C=h[t],w=C.x,G=void 0,v=void 0,H=C.y,J=C.low,D=a&&k.stacking&&k.stacking.stacks[(this.negStacks&&H<(B?0:l)?"-":"")+this.stackKey];if(k.positiveValuesOnly&&!k.validatePositiveValue(H)||d.positiveValuesOnly&&!d.validatePositiveValue(w))C.isNull=!0;C.plotX=E=e(m(d.translate(w,0,0,0,1,p,"flags"===this.type),-1E5,1E5));if(a&&this.visible&&D&&D[w]){var y=this.getStackIndicator(y,w,this.index);
441
- C.isNull||(G=D[w],v=G.points[y.key])}S(v)&&(J=v[0],H=v[1],J===B&&y.key===D[w].base&&(J=M(R(l)&&l,k.min)),k.positiveValuesOnly&&0>=J&&(J=null),C.total=C.stackTotal=G.total,C.percentage=G.total&&C.y/G.total*100,C.stackY=H,this.irregularWidths||G.setOffset(this.pointXOffset||0,this.barW||0));C.yBottom=c(J)?m(k.translate(J,0,1,0,1),-1E5,1E5):null;q&&(H=this.modifyValue(H,C));C.plotY=void 0;R(H)&&(G=k.translate(H,!1,!0,!1,!0),"undefined"!==typeof G&&(C.plotY=m(G,-1E5,1E5)));C.isInside=this.isPointInside(C);
442
- C.clientX=u?e(d.translate(w,0,0,0,1,p)):E;C.negative=C[x]<(b[x+"Threshold"]||l||0);C.category=f&&"undefined"!==typeof f[C.x]?f[C.x]:C.x;if(!C.isNull&&!1!==C.visible){"undefined"!==typeof A&&(r=Math.min(r,Math.abs(E-A)));var A=E}C.zone=this.zones.length&&C.getZone();!C.graphic&&this.group&&g&&(C.isNew=!0)}this.closestPointRangePx=r;F(this,"afterTranslate")};a.prototype.getValidPoints=function(b,a,c){var e=this.chart;return(b||this.points||[]).filter(function(b){return a&&!e.isInsidePlot(b.plotX,b.plotY,
443
- {inverted:e.inverted})?!1:!1!==b.visible&&(c||!b.isNull)})};a.prototype.getClipBox=function(b,a){var c=this.options,e=this.chart,d=e.inverted,f=this.xAxis,g=f&&this.yAxis,k=e.options.chart.scrollablePlotArea||{};b&&!1===c.clip&&g?b=d?{y:-e.chartWidth+g.len+g.pos,height:e.chartWidth,width:e.chartHeight,x:-e.chartHeight+f.len+f.pos}:{y:-g.pos,height:e.chartHeight,width:e.chartWidth,x:-f.pos}:(b=this.clipBox||e.clipBox,a&&(b.width=e.plotSizeX,b.x=(e.scrollablePixelsX||0)*(k.scrollPositionX||0)));return a?
444
- {width:b.width,x:b.x}:b};a.prototype.getSharedClipKey=function(b){if(this.sharedClipKey)return this.sharedClipKey;var a=[b&&b.duration,b&&b.easing,b&&b.defer,this.getClipBox(b).height,this.options.xAxis,this.options.yAxis].join();if(!1!==this.options.clip||b)this.sharedClipKey=a;return a};a.prototype.setClip=function(b){var a=this.chart,c=this.options,e=a.renderer,d=a.inverted,f=this.clipBox,g=this.getClipBox(b),k=this.getSharedClipKey(b),h=a.sharedClips[k],n=a.sharedClips[k+"m"];b&&(g.width=0,d&&
445
- (g.x=a.plotHeight+(!1!==c.clip?0:a.plotTop)));h?a.hasLoaded||h.attr(g):(b&&(a.sharedClips[k+"m"]=n=e.clipRect(d?(a.plotSizeX||0)+99:-99,d?-a.plotLeft:-a.plotTop,99,d?a.chartWidth:a.chartHeight)),a.sharedClips[k]=h=e.clipRect(g),h.count={length:0});b&&!h.count[this.index]&&(h.count[this.index]=!0,h.count.length+=1);if(!1!==c.clip||b)this.group.clip(b||f?h:a.clipRect),this.markerGroup.clip(n);b||(h.count[this.index]&&(delete h.count[this.index],--h.count.length),0===h.count.length&&(f||(a.sharedClips[k]=
446
- h.destroy()),n&&(a.sharedClips[k+"m"]=n.destroy())))};a.prototype.animate=function(a){var c=this.chart,e=b(this.options.animation),d=this.sharedClipKey;if(a)this.setClip(e);else if(d){a=c.sharedClips[d];d=c.sharedClips[d+"m"];var f=this.getClipBox(e,!0);a&&a.animate(f,e);d&&d.animate({width:f.width+99,x:f.x-(c.inverted?0:99)},e)}};a.prototype.afterAnimate=function(){this.setClip();F(this,"afterAnimate");this.finishedAnimating=!0};a.prototype.drawPoints=function(){var b=this.points,a=this.chart,c=
447
- this.options.marker,e=this[this.specialGroup]||this.markerGroup,d=this.xAxis,f=M(c.enabled,!d||d.isRadial?!0:null,this.closestPointRangePx>=c.enabledThreshold*c.radius),g,k;if(!1!==c.enabled||this._hasPointMarkers)for(g=0;g<b.length;g++){var h=b[g];var n=(k=h.graphic)?"animate":"attr";var m=h.marker||{};var q=!!h.marker;if((f&&"undefined"===typeof m.enabled||m.enabled)&&!h.isNull&&!1!==h.visible){var p=M(m.symbol,this.symbol,"rect");var u=this.markerAttribs(h,h.selected&&"select");this.enabledDataSorting&&
448
- (h.startXPos=d.reversed?-(u.width||0):d.width);var l=!1!==h.isInside;k?k[l?"show":"hide"](l).animate(u):l&&(0<(u.width||0)||h.hasImage)&&(h.graphic=k=a.renderer.symbol(p,u.x,u.y,u.width,u.height,q?m:c).add(e),this.enabledDataSorting&&a.hasRendered&&(k.attr({x:h.startXPos}),n="animate"));k&&"animate"===n&&k[l?"show":"hide"](l).animate(u);if(k&&!a.styledMode)k[n](this.pointAttribs(h,h.selected&&"select"));k&&k.addClass(h.getClassName(),!0)}else k&&(h.graphic=k.destroy())}};a.prototype.markerAttribs=
449
- function(b,a){var c=this.options,e=c.marker,d=b.marker||{},f=d.symbol||e.symbol,g=M(d.radius,e.radius);a&&(e=e.states[a],a=d.states&&d.states[a],g=M(a&&a.radius,e&&e.radius,g+(e&&e.radiusPlus||0)));b.hasImage=f&&0===f.indexOf("url");b.hasImage&&(g=0);b={x:c.crisp?Math.floor(b.plotX-g):b.plotX-g,y:b.plotY-g};g&&(b.width=b.height=2*g);return b};a.prototype.pointAttribs=function(b,a){var c=this.options.marker,e=b&&b.options,d=e&&e.marker||{},f=e&&e.color,g=b&&b.color,k=b&&b.zone&&b.zone.color,h=this.color;
450
- b=M(d.lineWidth,c.lineWidth);e=1;h=f||k||g||h;f=d.fillColor||c.fillColor||h;g=d.lineColor||c.lineColor||h;a=a||"normal";c=c.states[a];a=d.states&&d.states[a]||{};b=M(a.lineWidth,c.lineWidth,b+M(a.lineWidthPlus,c.lineWidthPlus,0));f=a.fillColor||c.fillColor||f;g=a.lineColor||c.lineColor||g;e=M(a.opacity,c.opacity,e);return{stroke:g,"stroke-width":b,fill:f,opacity:e}};a.prototype.destroy=function(b){var a=this,c=a.chart,e=/AppleWebKit\/533/.test(f.navigator.userAgent),g=a.data||[],k,m,q,p;F(a,"destroy");
451
- this.removeEvents(b);(a.axisTypes||[]).forEach(function(b){(p=a[b])&&p.series&&(n(p.series,a),p.isDirty=p.forceRedraw=!0)});a.legendItem&&a.chart.legend.destroyItem(a);for(m=g.length;m--;)(q=g[m])&&q.destroy&&q.destroy();a.clips&&a.clips.forEach(function(b){return b.destroy()});d.clearTimeout(a.animationTimeout);N(a,function(b,a){b instanceof h&&!b.survive&&(k=e&&"group"===a?"hide":"destroy",b[k]())});c.hoverSeries===a&&(c.hoverSeries=void 0);n(c.series,a);c.orderSeries();N(a,function(c,e){b&&"hcEvents"===
452
- e||delete a[e]})};a.prototype.applyZones=function(){var b=this,a=this.chart,c=a.renderer,e=this.zones,d=this.clips||[],f=this.graph,g=this.area,k=Math.max(a.chartWidth,a.chartHeight),h=this[(this.zoneAxis||"y")+"Axis"],n=a.inverted,q,p,u,l,B,x,t,E,r=!1;if(e.length&&(f||g)&&h&&"undefined"!==typeof h.min){var C=h.reversed;var w=h.horiz;f&&!this.showLine&&f.hide();g&&g.hide();var G=h.getExtremes();e.forEach(function(e,v){q=C?w?a.plotWidth:0:w?0:h.toPixels(G.min)||0;q=m(M(p,q),0,k);p=m(Math.round(h.toPixels(M(e.value,
453
- G.max),!0)||0),0,k);r&&(q=p=h.toPixels(G.max));l=Math.abs(q-p);B=Math.min(q,p);x=Math.max(q,p);h.isXAxis?(u={x:n?x:B,y:0,width:l,height:k},w||(u.x=a.plotHeight-u.x)):(u={x:0,y:n?x:B,width:k,height:l},w&&(u.y=a.plotWidth-u.y));n&&c.isVML&&(u=h.isXAxis?{x:0,y:C?B:x,height:u.width,width:a.chartWidth}:{x:u.y-a.plotLeft-a.spacingBox.x,y:0,width:u.height,height:a.chartHeight});d[v]?d[v].animate(u):d[v]=c.clipRect(u);t=b["zone-area-"+v];E=b["zone-graph-"+v];f&&E&&E.clip(d[v]);g&&t&&t.clip(d[v]);r=e.value>
454
- G.max;b.resetZones&&0===p&&(p=void 0)});this.clips=d}else b.visible&&(f&&f.show(!0),g&&g.show(!0))};a.prototype.invertGroups=function(b){function a(){["group","markerGroup"].forEach(function(a){c[a]&&(e.renderer.isVML&&c[a].attr({width:c.yAxis.len,height:c.xAxis.len}),c[a].width=c.yAxis.len,c[a].height=c.xAxis.len,c[a].invert(c.isRadialSeries?!1:b))})}var c=this,e=c.chart;c.xAxis&&(c.eventsToUnbind.push(x(e,"resize",a)),a(),c.invertGroups=a)};a.prototype.plotGroup=function(b,a,e,d,f){var g=this[b],
455
- k=!g;e={visibility:e,zIndex:d||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(e.opacity=this.opacity);k&&(this[b]=g=this.chart.renderer.g().add(f));g.addClass("highcharts-"+a+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(c(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(g.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);g.attr(e)[k?"attr":"animate"](this.getPlotBox());return g};
456
- a.prototype.getPlotBox=function(){var b=this.chart,a=this.xAxis,c=this.yAxis;b.inverted&&(a=c,c=this.xAxis);return{translateX:a?a.left:b.plotLeft,translateY:c?c.top:b.plotTop,scaleX:1,scaleY:1}};a.prototype.removeEvents=function(b){b||I(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(b){b()}),this.eventsToUnbind.length=0)};a.prototype.render=function(){var a=this,c=a.chart,e=a.options,d=b(e.animation),f=a.visible?"inherit":"hidden",g=e.zIndex,k=a.hasRendered,h=c.seriesGroup,
457
- n=c.inverted,m=!a.finishedAnimating&&c.renderer.isSVG&&d.duration;F(this,"render");var q=a.plotGroup("group","series",f,g,h);a.markerGroup=a.plotGroup("markerGroup","markers",f,g,h);m&&a.animate&&a.animate(!0);q.inverted=M(a.invertible,a.isCartesian)?n:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.visible&&a.drawPoints();a.drawDataLabels&&a.drawDataLabels();a.redrawPoints&&a.redrawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(n);!1===e.clip||a.sharedClipKey||
458
- k||q.clip(c.clipRect);m&&a.animate&&a.animate();k||(m&&d.defer&&(m+=d.defer),a.animationTimeout=O(function(){a.afterAnimate()},m||0));a.isDirty=!1;a.hasRendered=!0;F(a,"afterRender")};a.prototype.redraw=function(){var b=this.chart,a=this.isDirty||this.isDirtyData,c=this.group,e=this.xAxis,d=this.yAxis;c&&(b.inverted&&c.attr({width:b.plotWidth,height:b.plotHeight}),c.animate({translateX:M(e&&e.left,b.plotLeft),translateY:M(d&&d.top,b.plotTop)}));this.translate();this.render();a&&delete this.kdTree};
459
- a.prototype.searchPoint=function(b,a){var c=this.xAxis,e=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?c.len-b.chartY+c.pos:b.chartX-c.pos,plotY:d?e.len-b.chartX+e.pos:b.chartY-e.pos},a,b)};a.prototype.buildKDTree=function(b){function a(b,e,d){var f=b&&b.length;if(f){var g=c.kdAxisArray[e%d];b.sort(function(b,a){return b[g]-a[g]});f=Math.floor(f/2);return{point:b[f],left:a(b.slice(0,f),e+1,d),right:a(b.slice(f+1),e+1,d)}}}this.buildingKdTree=!0;var c=this,e=-1<c.options.findNearestPointBy.indexOf("y")?
460
- 2:1;delete c.kdTree;O(function(){c.kdTree=a(c.getValidPoints(null,!c.directTouch),e,e);c.buildingKdTree=!1},c.options.kdNow||b&&"touchstart"===b.type?0:1)};a.prototype.searchKDTree=function(b,a,e){function d(b,a,e,n){var m=a.point,q=f.kdAxisArray[e%n],p=m,u=c(b[g])&&c(m[g])?Math.pow(b[g]-m[g],2):null;var l=c(b[k])&&c(m[k])?Math.pow(b[k]-m[k],2):null;l=(u||0)+(l||0);m.dist=c(l)?Math.sqrt(l):Number.MAX_VALUE;m.distX=c(u)?Math.sqrt(u):Number.MAX_VALUE;q=b[q]-m[q];l=0>q?"left":"right";u=0>q?"right":"left";
461
- a[l]&&(l=d(b,a[l],e+1,n),p=l[h]<p[h]?l:m);a[u]&&Math.sqrt(q*q)<p[h]&&(b=d(b,a[u],e+1,n),p=b[h]<p[h]?b:p);return p}var f=this,g=this.kdAxisArray[0],k=this.kdAxisArray[1],h=a?"distX":"dist";a=-1<f.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(e);if(this.kdTree)return d(b,this.kdTree,a,a)};a.prototype.pointPlacementToXValue=function(){var b=this.options,a=b.pointRange,c=this.xAxis;b=b.pointPlacement;"between"===b&&(b=c.reversed?-.5:.5);return R(b)?b*(a||
462
- c.pointRange):0};a.prototype.isPointInside=function(b){return"undefined"!==typeof b.plotY&&"undefined"!==typeof b.plotX&&0<=b.plotY&&b.plotY<=this.yAxis.len&&0<=b.plotX&&b.plotX<=this.xAxis.len};a.prototype.drawTracker=function(){var b=this,a=b.options,c=a.trackByArea,e=[].concat(c?b.areaPath:b.graphPath),d=b.chart,f=d.pointer,g=d.renderer,k=d.options.tooltip.snap,h=b.tracker,n=function(a){if(d.hoverSeries!==b)b.onMouseOver()},m="rgba(192,192,192,"+(G?.0001:.002)+")";h?h.attr({d:e}):b.graph&&(b.tracker=
463
- g.path(e).attr({visibility:b.visible?"visible":"hidden",zIndex:2}).addClass(c?"highcharts-tracker-area":"highcharts-tracker-line").add(b.group),d.styledMode||b.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:m,fill:c?m:"none","stroke-width":b.graph.strokeWidth()+(c?0:2*k)}),[b.tracker,b.markerGroup,b.dataLabelsGroup].forEach(function(b){if(b&&(b.addClass("highcharts-tracker").on("mouseover",n).on("mouseout",function(b){f.onTrackerMouseOut(b)}),a.cursor&&!d.styledMode&&b.css({cursor:a.cursor}),
464
- r))b.on("touchstart",n)}));F(this,"afterDrawTracker")};a.prototype.addPoint=function(b,a,c,e,d){var f=this.options,g=this.data,k=this.chart,h=this.xAxis;h=h&&h.hasNames&&h.names;var n=f.data,m=this.xData,q;a=M(a,!0);var p={series:this};this.pointClass.prototype.applyOptions.apply(p,[b]);var u=p.x;var l=m.length;if(this.requireSorting&&u<m[l-1])for(q=!0;l&&m[l-1]>u;)l--;this.updateParallelArrays(p,"splice",l,0,0);this.updateParallelArrays(p,l);h&&p.name&&(h[u]=p.name);n.splice(l,0,b);q&&(this.data.splice(l,
465
- 0,null),this.processData());"point"===f.legendType&&this.generatePoints();c&&(g[0]&&g[0].remove?g[0].remove(!1):(g.shift(),this.updateParallelArrays(p,"shift"),n.shift()));!1!==d&&F(this,"addPoint",{point:p});this.isDirtyData=this.isDirty=!0;a&&k.redraw(e)};a.prototype.removePoint=function(b,a,c){var e=this,d=e.data,f=d[b],k=e.points,h=e.chart,n=function(){k&&k.length===d.length&&k.splice(b,1);d.splice(b,1);e.options.data.splice(b,1);e.updateParallelArrays(f||{series:e},"splice",b,1);f&&f.destroy();
466
- e.isDirty=!0;e.isDirtyData=!0;a&&h.redraw()};g(c,h);a=M(a,!0);f?f.firePointEvent("remove",null,n):n()};a.prototype.remove=function(b,a,c,e){function d(){f.destroy(e);g.isDirtyLegend=g.isDirtyBox=!0;g.linkSeries();M(b,!0)&&g.redraw(a)}var f=this,g=f.chart;!1!==c?F(f,"remove",null,d):d()};a.prototype.update=function(b,a){b=q(b,this.userOptions);F(this,"update",{options:b});var c=this,e=c.chart,d=c.userOptions,f=c.initialType||c.type,g=e.options.plotOptions,k=B[f].prototype,h=c.finishedAnimating&&{animation:!1},
467
- n={},m,p=["eventOptions","navigatorSeries","baseSeries"],u=b.type||d.type||e.options.chart.type,l=!(this.hasDerivedData||u&&u!==this.type||"undefined"!==typeof b.pointStart||"undefined"!==typeof b.pointInterval||"undefined"!==typeof b.relativeXValue||c.hasOptionChanged("dataGrouping")||c.hasOptionChanged("pointStart")||c.hasOptionChanged("pointInterval")||c.hasOptionChanged("pointIntervalUnit")||c.hasOptionChanged("keys"));u=u||f;l&&(p.push("data","isDirtyData","points","processedXData","processedYData",
468
- "xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==b.visible&&p.push("area","graph"),c.parallelArrays.forEach(function(b){p.push(b+"Data")}),b.data&&(b.dataSorting&&H(c.options.dataSorting,b.dataSorting),this.setData(b.data,!1)));b=ba(d,h,{index:"undefined"===typeof d.index?c.index:d.index,pointStart:M(g&&g.series&&g.series.pointStart,d.pointStart,c.xData[0])},!l&&{data:c.options.data},b);l&&b.data&&(b.data=c.options.data);
469
- p=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(p);p.forEach(function(b){p[b]=c[b];delete c[b]});g=!1;if(B[u]){if(g=u!==c.type,c.remove(!1,!1,!1,!0),g)if(Object.setPrototypeOf)Object.setPrototypeOf(c,B[u].prototype);else{h=Object.hasOwnProperty.call(c,"hcEvents")&&c.hcEvents;for(m in k)c[m]=void 0;H(c,B[u].prototype);h?c.hcEvents=h:delete c.hcEvents}}else C(17,!0,e,{missingModuleFor:u});p.forEach(function(b){c[b]=p[b]});c.init(e,b);if(l&&this.points){var x=c.options;!1===x.visible?
470
- (n.graphic=1,n.dataLabel=1):c._hasPointLabels||(b=x.marker,k=x.dataLabels,!b||!1!==b.enabled&&(d.marker&&d.marker.symbol)===b.symbol||(n.graphic=1),k&&!1===k.enabled&&(n.dataLabel=1));this.points.forEach(function(b){b&&b.series&&(b.resolveColor(),Object.keys(n).length&&b.destroyElements(n),!1===x.showInLegend&&b.legendItem&&e.legend.destroyItem(b))},this)}c.initialType=f;e.linkSeries();g&&c.linkedSeries.length&&(c.isDirtyData=!0);F(this,"afterUpdate");M(a,!0)&&e.redraw(l?void 0:!1)};a.prototype.setName=
471
- function(b){this.name=this.options.name=this.userOptions.name=b;this.chart.isDirtyLegend=!0};a.prototype.hasOptionChanged=function(b){var a=this.options[b],c=this.chart.options.plotOptions,e=this.userOptions[b];return e?a!==e:a!==M(c&&c[this.type]&&c[this.type][b],c&&c.series&&c.series[b],a)};a.prototype.onMouseOver=function(){var b=this.chart,a=b.hoverSeries;b.pointer.setHoverChartIndex();if(a&&a!==this)a.onMouseOut();this.options.events.mouseOver&&F(this,"mouseOver");this.setState("hover");b.hoverSeries=
472
- this};a.prototype.onMouseOut=function(){var b=this.options,a=this.chart,c=a.tooltip,e=a.hoverPoint;a.hoverSeries=null;if(e)e.onMouseOut();this&&b.events.mouseOut&&F(this,"mouseOut");!c||this.stickyTracking||c.shared&&!this.noSharedTooltip||c.hide();a.series.forEach(function(b){b.setState("",!0)})};a.prototype.setState=function(b,a){var c=this,e=c.options,d=c.graph,f=e.inactiveOtherPoints,g=e.states,k=M(g[b||"normal"]&&g[b||"normal"].animation,c.chart.options.chart.animation),h=e.lineWidth,n=0,m=e.opacity;
473
- b=b||"";if(c.state!==b&&([c.group,c.markerGroup,c.dataLabelsGroup].forEach(function(a){a&&(c.state&&a.removeClass("highcharts-series-"+c.state),b&&a.addClass("highcharts-series-"+b))}),c.state=b,!c.chart.styledMode)){if(g[b]&&!1===g[b].enabled)return;b&&(h=g[b].lineWidth||h+(g[b].lineWidthPlus||0),m=M(g[b].opacity,m));if(d&&!d.dashstyle)for(e={"stroke-width":h},d.animate(e,k);c["zone-graph-"+n];)c["zone-graph-"+n].animate(e,k),n+=1;f||[c.group,c.markerGroup,c.dataLabelsGroup,c.labelBySeries].forEach(function(b){b&&
474
- b.animate({opacity:m},k)})}a&&f&&c.points&&c.setAllPointsToState(b||void 0)};a.prototype.setAllPointsToState=function(b){this.points.forEach(function(a){a.setState&&a.setState(b)})};a.prototype.setVisible=function(b,a){var c=this,e=c.chart,d=c.legendItem,f=e.options.chart.ignoreHiddenSeries,g=c.visible,k=(c.visible=b=c.options.visible=c.userOptions.visible="undefined"===typeof b?!g:b)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(b){if(c[b])c[b][k]()});if(e.hoverSeries===
475
- c||(e.hoverPoint&&e.hoverPoint.series)===c)c.onMouseOut();d&&e.legend.colorizeItem(c,b);c.isDirty=!0;c.options.stacking&&e.series.forEach(function(b){b.options.stacking&&b.visible&&(b.isDirty=!0)});c.linkedSeries.forEach(function(a){a.setVisible(b,!1)});f&&(e.isDirtyBox=!0);F(c,k);!1!==a&&e.redraw()};a.prototype.show=function(){this.setVisible(!0)};a.prototype.hide=function(){this.setVisible(!1)};a.prototype.select=function(b){this.selected=b=this.options.selected="undefined"===typeof b?!this.selected:
476
- b;this.checkbox&&(this.checkbox.checked=b);F(this,b?"select":"unselect")};a.prototype.shouldShowTooltip=function(b,a,c){void 0===c&&(c={});c.series=this;c.visiblePlotOnly=!0;return this.chart.isInsidePlot(b,a,c)};a.defaultOptions=t;return a}();H(a.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:z.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:D,requireSorting:!0,sorted:!0});l.series=
477
- a;"";"";return a});I(a,"Extensions/ScrollablePlotArea.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/Series/Series.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w){var r=a.stop,t=w.addEvent,l=w.createElement,h=w.merge,d=w.pick;t(A,"afterSetChartSize",function(b){var a=this.options.chart.scrollablePlotArea,d=a&&a.minWidth;a=a&&a.minHeight;if(!this.renderer.forExport){if(d){if(this.scrollablePixelsX=d=Math.max(0,
478
- d-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=h(this.plotBox);this.plotBox.width=this.plotWidth+=d;this.inverted?this.clipBox.height+=d:this.clipBox.width+=d;var k={1:{name:"right",value:d}}}}else a&&(this.scrollablePixelsY=d=Math.max(0,a-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=h(this.plotBox),this.plotBox.height=this.plotHeight+=d,this.inverted?this.clipBox.width+=d:this.clipBox.height+=d,k={2:{name:"bottom",value:d}});k&&!b.skipAxes&&
479
- this.axes.forEach(function(b){k[b.side]?b.getPlotLinePath=function(){var a=k[b.side].name,d=this[a];this[a]=d-k[b.side].value;var g=v.prototype.getPlotLinePath.apply(this,arguments);this[a]=d;return g}:(b.setAxisSize(),b.setAxisTranslation())})}});t(A,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});A.prototype.setUpScrolling=function(){var b=this,a={WebkitOverflowScrolling:"touch",
480
- overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(a.overflowX="auto");this.scrollablePixelsY&&(a.overflowY="auto");this.scrollingParent=l("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=l("div",{className:"highcharts-scrolling"},a,this.scrollingParent);t(this.scrollingContainer,"scroll",function(){b.pointer&&delete b.pointer.chartPosition});this.innerContainer=l("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);
481
- this.innerContainer.appendChild(this.container);this.setUpScrolling=null};A.prototype.moveFixedElements=function(){var b=this.container,a=this.fixedRenderer,d=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),k;this.scrollablePixelsX&&
482
- !this.inverted?k=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?k=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?k=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(k=".highcharts-yaxis");k&&d.push(k+":not(.highcharts-radial-axis)",k+"-labels:not(.highcharts-radial-axis-labels)");d.forEach(function(d){[].forEach.call(b.querySelectorAll(d),function(b){(b.namespaceURI===a.SVG_NS?a.box:a.box.parentNode).appendChild(b);b.style.pointerEvents="auto"})})};A.prototype.applyFixed=
483
- function(){var b=!this.fixedDiv,a=this.options.chart,h=a.scrollablePlotArea,k=z.getRendererType();b?(this.fixedDiv=l("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(a.style&&a.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=a=new k(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),
484
- this.scrollableMask=a.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":d(h.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),t(this,"afterShowResetZoom",this.moveFixedElements),t(this,"afterDrilldown",this.moveFixedElements),t(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||b)this.scrollableDirty=!1,this.moveFixedElements();a=this.chartWidth+(this.scrollablePixelsX||
485
- 0);k=this.chartHeight+(this.scrollablePixelsY||0);r(this.container);this.container.style.width=a+"px";this.container.style.height=k+"px";this.renderer.boxWrapper.attr({width:a,height:k,viewBox:[0,0,a,k].join(" ")});this.chartBackground.attr({width:a,height:k});this.scrollingContainer.style.height=this.chartHeight+"px";b&&(h.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*h.scrollPositionX),h.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*h.scrollPositionY));
486
- k=this.axisOffset;b=this.plotTop-k[0]-1;h=this.plotLeft-k[3]-1;a=this.plotTop+this.plotHeight+k[2]+1;k=this.plotLeft+this.plotWidth+k[1]+1;var w=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),v=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);b=this.scrollablePixelsX?[["M",0,b],["L",this.plotLeft-1,b],["L",this.plotLeft-1,a],["L",0,a],["Z"],["M",w,b],["L",this.chartWidth,b],["L",this.chartWidth,a],["L",w,a],["Z"]]:this.scrollablePixelsY?[["M",h,0],["L",h,this.plotTop-1],["L",k,this.plotTop-
487
- 1],["L",k,0],["Z"],["M",h,v],["L",h,this.chartHeight],["L",k,this.chartHeight],["L",k,v],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:b})};t(v,"afterInit",function(){this.chart.scrollableDirty=!0});t(y,"show",function(){this.chart.scrollableDirty=!0});""});I(a,"Core/Axis/StackingAxis.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/Axis.js"],a["Core/Utilities.js"]],function(a,v,A){var r=a.getDeferredAnimation,z=A.addEvent,w=A.destroyObjectProperties,
488
- D=A.fireEvent,t=A.isNumber,l=A.objectEach,h;(function(a){function b(){var b=this.stacking;if(b){var a=b.stacks;l(a,function(b,d){w(b);a[d]=null});b&&b.stackTotalGroup&&b.stackTotalGroup.destroy()}}function d(){this.stacking||(this.stacking=new k(this))}var h=[];a.compose=function(a){-1===h.indexOf(a)&&(h.push(a),z(a,"init",d),z(a,"destroy",b));return a};var k=function(){function b(b){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=b}b.prototype.buildStacks=function(){var b=this.axis,
489
- a=b.series,d=b.options.reversedStacks,g=a.length,k;if(!b.isXAxis){this.usePercentage=!1;for(k=g;k--;){var h=a[d?k:g-k-1];h.setStackedPoints();h.setGroupedPoints()}for(k=0;k<g;k++)a[k].modifyStacks();D(b,"afterBuildStacks")}};b.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var b=this.stacks=this.oldStacks;l(b,function(b){l(b,function(b){b.cumulative=b.total})})}};b.prototype.resetStacks=function(){var b=this,a=b.stacks;b.axis.isXAxis||l(a,function(a){l(a,function(d,f){t(d.touched)&&
490
- d.touched<b.stacksTouched?(d.destroy(),delete a[f]):(d.total=null,d.cumulative=null)})})};b.prototype.renderStackTotals=function(){var b=this.axis,a=b.chart,d=a.renderer,g=this.stacks;b=r(a,b.options.stackLabels&&b.options.stackLabels.animation||!1);var k=this.stackTotalGroup=this.stackTotalGroup||d.g("stack-labels").attr({visibility:"visible",zIndex:6,opacity:0}).add();k.translate(a.plotLeft,a.plotTop);l(g,function(b){l(b,function(b){b.render(k)})});k.animate({opacity:1},b)};return b}();a.Additions=
491
- k})(h||(h={}));return h});I(a,"Extensions/Stacking.js",[a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Axis/StackingAxis.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w,D){var t=A.format,l=D.correctFloat,h=D.defined,d=D.destroyObjectProperties,b=D.isArray,g=D.isNumber,p=D.objectEach,k=D.pick,r=function(){function b(b,a,d,g,k){var f=b.chart.inverted;this.axis=b;this.isNegative=d;this.options=a=a||{};this.x=g;this.total=
492
- null;this.points={};this.hasValidPoints=!1;this.stack=k;this.rightCliff=this.leftCliff=0;this.alignOptions={align:a.align||(f?d?"left":"right":"center"),verticalAlign:a.verticalAlign||(f?"middle":d?"bottom":"top"),y:a.y,x:a.x};this.textAlign=a.textAlign||(f?d?"right":"left":"center")}b.prototype.destroy=function(){d(this,this.axis)};b.prototype.render=function(b){var a=this.axis.chart,d=this.options,f=d.format;f=f?t(f,this,a):d.formatter.call(this);this.label?this.label.attr({text:f,visibility:"hidden"}):
493
- (this.label=a.renderer.label(f,null,null,d.shape,null,null,d.useHTML,!1,"stack-labels"),f={r:d.borderRadius||0,text:f,rotation:d.rotation,padding:k(d.padding,5),visibility:"hidden"},a.styledMode||(f.fill=d.backgroundColor,f.stroke=d.borderColor,f["stroke-width"]=d.borderWidth,this.label.css(d.style)),this.label.attr(f),this.label.added||this.label.add(b));this.label.labelrank=a.plotSizeY};b.prototype.setOffset=function(b,a,d,p,l){var f=this.axis,q=f.chart;p=f.translate(f.stacking.usePercentage?100:
494
- p?p:this.total,0,0,0,1);d=f.translate(d?d:0);d=h(p)&&Math.abs(p-d);b=k(l,q.xAxis[0].translate(this.x))+b;f=h(p)&&this.getStackBox(q,this,b,p,a,d,f);a=this.label;d=this.isNegative;b="justify"===k(this.options.overflow,"justify");var e=this.textAlign;a&&f&&(l=a.getBBox(),p=a.padding,e="left"===e?q.inverted?-p:p:"right"===e?l.width:q.inverted&&"center"===e?l.width/2:q.inverted?d?l.width+p:-p:l.width/2,d=q.inverted?l.height/2:d?-p:l.height,this.alignOptions.x=k(this.options.x,0),this.alignOptions.y=k(this.options.y,
495
- 0),f.x-=e,f.y-=d,a.align(this.alignOptions,null,f),q.isInsidePlot(a.alignAttr.x+e-this.alignOptions.x,a.alignAttr.y+d-this.alignOptions.y)?a.show():(a.alignAttr.y=-9999,b=!1),b&&z.prototype.justifyDataLabel.call(this.axis,a,this.alignOptions,a.alignAttr,l,f),a.attr({x:a.alignAttr.x,y:a.alignAttr.y}),k(!b&&this.options.crop,!0)&&((q=g(a.x)&&g(a.y)&&q.isInsidePlot(a.x-p+a.width,a.y)&&q.isInsidePlot(a.x+p,a.y))||a.hide()))};b.prototype.getStackBox=function(b,a,d,g,k,h,q){var e=a.axis.reversed,c=b.inverted,
496
- f=q.height+q.pos-(c?b.plotLeft:b.plotTop);a=a.isNegative&&!e||!a.isNegative&&e;return{x:c?a?g-q.right:g-h+q.pos-b.plotLeft:d+b.xAxis[0].transB-b.plotLeft,y:c?q.height-d-k:a?f-g-h:f-g,width:c?h:k,height:c?k:h}};return b}();v.prototype.getStacks=function(){var b=this,a=b.inverted;b.yAxis.forEach(function(b){b.stacking&&b.stacking.stacks&&b.hasVisibleSeries&&(b.stacking.oldStacks=b.stacking.stacks)});b.series.forEach(function(d){var f=d.xAxis&&d.xAxis.options||{};!d.options.stacking||!0!==d.visible&&
497
- !1!==b.options.chart.ignoreHiddenSeries||(d.stackKey=[d.type,k(d.options.stack,""),a?f.top:f.left,a?f.height:f.width].join())})};w.compose(a);z.prototype.setGroupedPoints=function(){var b=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?z.prototype.setStackedPoints.call(this,"group"):b&&p(b.stacks,function(a,d){"group"===d.slice(-5)&&(p(a,function(b){return b.destroy()}),delete b.stacks[d])})};z.prototype.setStackedPoints=
498
- function(a){var d=a||this.options.stacking;if(d&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var g=this.processedXData,p=this.processedYData,u=[],t=p.length,m=this.options,q=m.threshold,e=k(m.startFromThreshold&&q,0);m=m.stack;a=a?this.type+","+d:this.stackKey;var c="-"+a,n=this.negStacks,C=this.yAxis,w=C.stacking.stacks,v=C.stacking.oldStacks,F,D;C.stacking.stacksTouched+=1;for(D=0;D<t;D++){var G=g[D];var y=p[D];var A=this.getStackIndicator(A,G,this.index);var J=A.key;
499
- var z=(F=n&&y<(e?0:q))?c:a;w[z]||(w[z]={});w[z][G]||(v[z]&&v[z][G]?(w[z][G]=v[z][G],w[z][G].total=null):w[z][G]=new r(C,C.options.stackLabels,F,G,m));z=w[z][G];null!==y?(z.points[J]=z.points[this.index]=[k(z.cumulative,e)],h(z.cumulative)||(z.base=J),z.touched=C.stacking.stacksTouched,0<A.index&&!1===this.singleStacks&&(z.points[J][0]=z.points[this.index+","+G+",0"][0])):z.points[J]=z.points[this.index]=null;"percent"===d?(F=F?a:c,n&&w[F]&&w[F][G]?(F=w[F][G],z.total=F.total=Math.max(F.total,z.total)+
500
- Math.abs(y)||0):z.total=l(z.total+(Math.abs(y)||0))):"group"===d?(b(y)&&(y=y[0]),null!==y&&(z.total=(z.total||0)+1)):z.total=l(z.total+(y||0));z.cumulative="group"===d?(z.total||1)-1:k(z.cumulative,e)+(y||0);null!==y&&(z.points[J].push(z.cumulative),u[D]=z.cumulative,z.hasValidPoints=!0)}"percent"===d&&(C.stacking.usePercentage=!0);"group"!==d&&(this.stackedYData=u);C.stacking.oldStacks={}}};z.prototype.modifyStacks=function(){var b=this,a=b.stackKey,d=b.yAxis.stacking.stacks,g=b.processedXData,k,
501
- h=b.options.stacking;b[h+"Stacker"]&&[a,"-"+a].forEach(function(a){for(var f=g.length,e,c;f--;)if(e=g[f],k=b.getStackIndicator(k,e,b.index,a),c=(e=d[a]&&d[a][e])&&e.points[k.key])b[h+"Stacker"](c,e,f)})};z.prototype.percentStacker=function(b,a,d){a=a.total?100/a.total:0;b[0]=l(b[0]*a);b[1]=l(b[1]*a);this.stackedYData[d]=b[1]};z.prototype.getStackIndicator=function(b,a,d,g){!h(b)||b.x!==a||g&&b.key!==g?b={x:a,index:0,key:g}:b.index++;b.key=[d,a,b.index].join();return b};y.StackItem=r;"";return y.StackItem});
502
- I(a,"Series/Line/LineSeries.js",[a["Core/Color/Palette.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y){var r=this&&this.__extends||function(){var a=function(l,h){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(l,h)};return function(l,h){function d(){this.constructor=l}a(l,h);l.prototype=null===h?Object.create(h):(d.prototype=h.prototype,
503
- new d)}}(),w=y.defined,D=y.merge;y=function(t){function l(){var a=null!==t&&t.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}r(l,t);l.prototype.drawGraph=function(){var h=this,d=this.options,b=(this.gappedPath||this.getGraphPath).call(this),g=this.chart.styledMode,p=[["graph","highcharts-graph"]];g||p[0].push(d.lineColor||this.color||a.neutralColor20,d.dashStyle);p=h.getZonesGraphs(p);p.forEach(function(a,p){var k=a[0],f=h[k],l=f?"animate":"attr";f?(f.endX=h.preventGraphAnimation?
504
- null:b.xMap,f.animate({d:b})):b.length&&(h[k]=f=h.chart.renderer.path(b).addClass(a[1]).attr({zIndex:1}).add(h.group));f&&!g&&(k={stroke:a[2],"stroke-width":d.lineWidth,fill:h.fillGraph&&h.color||"none"},a[3]?k.dashstyle=a[3]:"square"!==d.linecap&&(k["stroke-linecap"]=k["stroke-linejoin"]="round"),f[l](k).shadow(2>p&&d.shadow));f&&(f.startX=b.xMap,f.isArea=b.isArea)})};l.prototype.getGraphPath=function(a,d,b){var g=this,h=g.options,k=[],l=[],t,f=h.step;a=a||g.points;var r=a.reversed;r&&a.reverse();
505
- (f={right:1,center:2}[f]||f&&3)&&r&&(f=4-f);a=this.getValidPoints(a,!1,!(h.connectNulls&&!d&&!b));a.forEach(function(p,u){var r=p.plotX,m=p.plotY,q=a[u-1];(p.leftCliff||q&&q.rightCliff)&&!b&&(t=!0);p.isNull&&!w(d)&&0<u?t=!h.connectNulls:p.isNull&&!d?t=!0:(0===u||t?u=[["M",p.plotX,p.plotY]]:g.getPointSpline?u=[g.getPointSpline(a,p,u)]:f?(u=1===f?[["L",q.plotX,m]]:2===f?[["L",(q.plotX+r)/2,q.plotY],["L",(q.plotX+r)/2,m]]:[["L",r,q.plotY]],u.push(["L",r,m])):u=[["L",r,m]],l.push(p.x),f&&(l.push(p.x),
506
- 2===f&&l.push(p.x)),k.push.apply(k,u),t=!1)});k.xMap=l;return g.graphPath=k};l.prototype.getZonesGraphs=function(a){this.zones.forEach(function(d,b){b=["zone-graph-"+b,"highcharts-graph highcharts-zone-graph-"+b+" "+(d.className||"")];this.chart.styledMode||b.push(d.color||this.color,d.dashStyle||this.options.dashStyle);a.push(b)},this);return a};l.defaultOptions=D(v.defaultOptions,{});return l}(v);A.registerSeriesType("line",y);"";return y});I(a,"Series/Area/AreaSeries.js",[a["Core/Color/Color.js"],
507
- a["Core/Legend/LegendSymbol.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y){var r=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return a(b,d)};return function(b,d){function g(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),w=a.parse,D=A.seriesTypes.line;a=
508
- y.extend;var t=y.merge,l=y.objectEach,h=y.pick;y=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}r(b,a);b.prototype.drawGraph=function(){this.areaPath=[];a.prototype.drawGraph.apply(this);var b=this,d=this.areaPath,k=this.options,l=[["area","highcharts-area",this.color,k.fillColor]];this.zones.forEach(function(a,d){l.push(["zone-area-"+d,"highcharts-area highcharts-zone-area-"+d+" "+a.className,a.color||b.color,a.fillColor||
509
- k.fillColor])});l.forEach(function(a){var f=a[0],g=b[f],p=g?"animate":"attr",l={};g?(g.endX=b.preventGraphAnimation?null:d.xMap,g.animate({d:d})):(l.zIndex=0,g=b[f]=b.chart.renderer.path(d).addClass(a[1]).add(b.group),g.isArea=!0);b.chart.styledMode||(l.fill=h(a[3],w(a[2]).setOpacity(h(k.fillOpacity,.75)).get()));g[p](l);g.startX=d.xMap;g.shiftUnit=k.step?2:1})};b.prototype.getGraphPath=function(b){var a=D.prototype.getGraphPath,d=this.options,g=d.stacking,l=this.yAxis,f,t=[],r=[],u=this.index,E=
510
- l.stacking.stacks[this.stackKey],m=d.threshold,q=Math.round(l.getThreshold(d.threshold));d=h(d.connectNulls,"percent"===g);var e=function(a,c,d){var e=b[a];a=g&&E[e.x].points[u];var f=e[d+"Null"]||0;d=e[d+"Cliff"]||0;e=!0;if(d||f){var k=(f?a[0]:a[1])+d;var h=a[0]+d;e=!!f}else!g&&b[c]&&b[c].isNull&&(k=h=m);"undefined"!==typeof k&&(r.push({plotX:n,plotY:null===k?q:l.getThreshold(k),isNull:e,isCliff:!0}),t.push({plotX:n,plotY:null===h?q:l.getThreshold(h),doCurve:!1}))};b=b||this.points;g&&(b=this.getStackPoints(b));
511
- for(f=0;f<b.length;f++){g||(b[f].leftCliff=b[f].rightCliff=b[f].leftNull=b[f].rightNull=void 0);var c=b[f].isNull;var n=h(b[f].rectPlotX,b[f].plotX);var C=g?h(b[f].yBottom,q):q;if(!c||d)d||e(f,f-1,"left"),c&&!g&&d||(r.push(b[f]),t.push({x:f,plotX:n,plotY:C})),d||e(f,f+1,"right")}f=a.call(this,r,!0,!0);t.reversed=!0;c=a.call(this,t,!0,!0);(C=c[0])&&"M"===C[0]&&(c[0]=["L",C[1],C[2]]);c=f.concat(c);c.length&&c.push(["Z"]);a=a.call(this,r,!1,d);c.xMap=f.xMap;this.areaPath=c;return a};b.prototype.getStackPoints=
512
- function(b){var a=this,d=[],g=[],t=this.xAxis,f=this.yAxis,r=f.stacking.stacks[this.stackKey],x={},u=f.series,E=u.length,m=f.options.reversedStacks?1:-1,q=u.indexOf(a);b=b||this.points;if(this.options.stacking){for(var e=0;e<b.length;e++)b[e].leftNull=b[e].rightNull=void 0,x[b[e].x]=b[e];l(r,function(b,a){null!==b.total&&g.push(a)});g.sort(function(b,a){return b-a});var c=u.map(function(b){return b.visible});g.forEach(function(b,e){var k=0,n,p;if(x[b]&&!x[b].isNull)d.push(x[b]),[-1,1].forEach(function(d){var f=
513
- 1===d?"rightNull":"leftNull",k=0,h=r[g[e+d]];if(h)for(var l=q;0<=l&&l<E;){var t=u[l].index;n=h.points[t];n||(t===a.index?x[b][f]=!0:c[l]&&(p=r[b].points[t])&&(k-=p[1]-p[0]));l+=m}x[b][1===d?"rightCliff":"leftCliff"]=k});else{for(var l=q;0<=l&&l<E;){if(n=r[b].points[u[l].index]){k=n[1];break}l+=m}k=h(k,0);k=f.translate(k,0,1,0,1);d.push({isNull:!0,plotX:t.translate(b,0,0,0,1),x:b,plotY:k,yBottom:k})}})}return d};b.defaultOptions=t(D.defaultOptions,{threshold:0});return b}(D);a(y.prototype,{singleStacks:!1,
514
- drawLegendSymbol:v.drawRectangle});A.registerSeriesType("area",y);"";return y});I(a,"Series/Spline/SplineSeries.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v){var r=this&&this.__extends||function(){var a=function(t,l){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(t,l)};return function(t,l){function h(){this.constructor=t}a(t,l);t.prototype=null===l?Object.create(l):
515
- (h.prototype=l.prototype,new h)}}(),y=a.seriesTypes.line,z=v.merge,w=v.pick;v=function(a){function t(){var l=null!==a&&a.apply(this,arguments)||this;l.data=void 0;l.options=void 0;l.points=void 0;return l}r(t,a);t.prototype.getPointSpline=function(a,h,d){var b=h.plotX||0,g=h.plotY||0,p=a[d-1];d=a[d+1];if(p&&!p.isNull&&!1!==p.doCurve&&!h.isCliff&&d&&!d.isNull&&!1!==d.doCurve&&!h.isCliff){a=p.plotY||0;var k=d.plotX||0;d=d.plotY||0;var l=0;var t=(1.5*b+(p.plotX||0))/2.5;var f=(1.5*g+a)/2.5;k=(1.5*b+
516
- k)/2.5;var r=(1.5*g+d)/2.5;k!==t&&(l=(r-f)*(k-b)/(k-t)+g-r);f+=l;r+=l;f>a&&f>g?(f=Math.max(a,g),r=2*g-f):f<a&&f<g&&(f=Math.min(a,g),r=2*g-f);r>d&&r>g?(r=Math.max(d,g),f=2*g-r):r<d&&r<g&&(r=Math.min(d,g),f=2*g-r);h.rightContX=k;h.rightContY=r}h=["C",w(p.rightContX,p.plotX,0),w(p.rightContY,p.plotY,0),w(t,b,0),w(f,g,0),b,g];p.rightContX=p.rightContY=void 0;return h};t.defaultOptions=z(y.defaultOptions);return t}(y);a.registerSeriesType("spline",v);"";return v});I(a,"Series/AreaSpline/AreaSplineSeries.js",
517
- [a["Series/Area/AreaSeries.js"],a["Series/Spline/SplineSeries.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y,z){var r=this&&this.__extends||function(){var a=function(d,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return a(d,b)};return function(d,b){function g(){this.constructor=d}a(d,b);d.prototype=null===b?Object.create(b):
518
- (g.prototype=b.prototype,new g)}}(),D=a.prototype,t=z.extend,l=z.merge;z=function(h){function d(){var b=null!==h&&h.apply(this,arguments)||this;b.data=void 0;b.points=void 0;b.options=void 0;return b}r(d,h);d.defaultOptions=l(v.defaultOptions,a.defaultOptions);return d}(v);t(z.prototype,{getGraphPath:D.getGraphPath,getStackPoints:D.getStackPoints,drawGraph:D.drawGraph,drawLegendSymbol:A.drawRectangle});y.registerSeriesType("areaspline",z);"";return z});I(a,"Series/Column/ColumnSeries.js",[a["Core/Animation/AnimationUtilities.js"],
519
- a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Color/Palette.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w,D,t){var l=this&&this.__extends||function(){var b=function(a,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(a,d)};return function(a,d){function c(){this.constructor=a}b(a,d);
520
- a.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)}}(),h=a.animObject,d=v.parse,b=A.hasTouch;a=A.noop;var g=t.clamp,p=t.css,k=t.defined,r=t.extend,G=t.fireEvent,f=t.isArray,B=t.isNumber,x=t.merge,u=t.pick,E=t.objectEach;t=function(a){function m(){var b=null!==a&&a.apply(this,arguments)||this;b.borderWidth=void 0;b.data=void 0;b.group=void 0;b.options=void 0;b.points=void 0;return b}l(m,a);m.prototype.animate=function(b){var a=this,d=this.yAxis,e=a.options,f=this.chart.inverted,
521
- k={},m=f?"translateX":"translateY";if(b)k.scaleY=.001,b=g(d.toPixels(e.threshold),d.pos,d.pos+d.len),f?k.translateX=b-d.len:k.translateY=b,a.clipBox&&a.setClip(),a.group.attr(k);else{var q=Number(a.group.attr(m));a.group.animate({scaleY:1},r(h(a.options.animation),{step:function(b,c){a.group&&(k[m]=q+c.pos*(d.pos-q),a.group.attr(k))}}))}};m.prototype.init=function(b,c){a.prototype.init.apply(this,arguments);var d=this;b=d.chart;b.hasRendered&&b.series.forEach(function(b){b.type===d.type&&(b.isDirty=
522
- !0)})};m.prototype.getColumnMetrics=function(){var b=this,a=b.options,d=b.xAxis,f=b.yAxis,g=d.options.reversedStacks;g=d.reversed&&!g||!d.reversed&&g;var k={},h,m=0;!1===a.grouping?m=1:b.chart.series.forEach(function(a){var c=a.yAxis,d=a.options;if(a.type===b.type&&(a.visible||!b.chart.options.chart.ignoreHiddenSeries)&&f.len===c.len&&f.pos===c.pos){if(d.stacking&&"group"!==d.stacking){h=a.stackKey;"undefined"===typeof k[h]&&(k[h]=m++);var e=k[h]}else!1!==d.grouping&&(e=m++);a.columnIndex=e}});var q=
523
- Math.min(Math.abs(d.transA)*(d.ordinal&&d.ordinal.slope||a.pointRange||d.closestPointRange||d.tickInterval||1),d.len),p=q*a.groupPadding,l=(q-2*p)/(m||1);a=Math.min(a.maxPointWidth||d.len,u(a.pointWidth,l*(1-2*a.pointPadding)));b.columnMetrics={width:a,offset:(l-a)/2+(p+((b.columnIndex||0)+(g?1:0))*l-q/2)*(g?-1:1),paddedWidth:l,columnCount:m};return b.columnMetrics};m.prototype.crispCol=function(b,a,d,f){var c=this.chart,e=this.borderWidth,g=-(e%2?.5:0);e=e%2?.5:1;c.inverted&&c.renderer.isVML&&(e+=
524
- 1);this.options.crisp&&(d=Math.round(b+d)+g,b=Math.round(b)+g,d-=b);f=Math.round(a+f)+e;g=.5>=Math.abs(a)&&.5<f;a=Math.round(a)+e;f-=a;g&&f&&(--a,f+=1);return{x:b,y:a,width:d,height:f}};m.prototype.adjustForMissingColumns=function(b,a,d,g){var c=this,e=this.options.stacking;if(!d.isNull&&1<g.columnCount){var k=0,h=0;E(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(b){if("number"===typeof d.x&&(b=b[d.x.toString()])){var a=b.points[c.index],g=b.total;e?(a&&(k=h),b.hasValidPoints&&h++):f(a)&&
525
- (k=a[1],h=g||0)}});b=(d.plotX||0)+((h-1)*g.paddedWidth+a)/2-a-k*g.paddedWidth}return b};m.prototype.translate=function(){var b=this,a=b.chart,d=b.options,f=b.dense=2>b.closestPointRange*b.xAxis.transA;f=b.borderWidth=u(d.borderWidth,f?0:1);var h=b.xAxis,m=b.yAxis,q=d.threshold,p=b.translatedThreshold=m.getThreshold(q),l=u(d.minPointLength,5),r=b.getColumnMetrics(),t=r.width,E=b.pointXOffset=r.offset,x=b.dataMin,v=b.dataMax,z=b.barW=Math.max(t,1+2*f);a.inverted&&(p-=.5);d.pointPadding&&(z=Math.ceil(z));
526
- w.prototype.translate.apply(b);b.points.forEach(function(c){var e=u(c.yBottom,p),f=999+Math.abs(e),n=c.plotX||0;f=g(c.plotY,-f,m.len+f);var C=Math.min(f,e),w=Math.max(f,e)-C,D=t,y=n+E,A=z;l&&Math.abs(w)<l&&(w=l,n=!m.reversed&&!c.negative||m.reversed&&c.negative,B(q)&&B(v)&&c.y===q&&v<=q&&(m.min||0)<q&&(x!==v||(m.max||0)<=q)&&(n=!n),C=Math.abs(C-p)>l?e-l:p-(n?l:0));k(c.options.pointWidth)&&(D=A=Math.ceil(c.options.pointWidth),y-=Math.round((D-t)/2));d.centerInCategory&&(y=b.adjustForMissingColumns(y,
527
- D,c,r));c.barX=y;c.pointWidth=D;c.tooltipPos=a.inverted?[g(m.len+m.pos-a.plotLeft-f,m.pos-a.plotLeft,m.len+m.pos-a.plotLeft),h.len+h.pos-a.plotTop-y-A/2,w]:[h.left-a.plotLeft+y+A/2,g(f+m.pos-a.plotTop,m.pos-a.plotTop,m.len+m.pos-a.plotTop),w];c.shapeType=b.pointClass.prototype.shapeType||"rect";c.shapeArgs=b.crispCol.apply(b,c.isNull?[y,p,A,0]:[y,C,A,w])})};m.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};m.prototype.pointAttribs=function(b,
528
- a){var c=this.options,e=this.pointAttrToOptions||{},f=e.stroke||"borderColor",g=e["stroke-width"]||"borderWidth",k=b&&b.color||this.color,h=b&&b[f]||c[f]||k;e=b&&b.options.dashStyle||c.dashStyle;var m=b&&b[g]||c[g]||this[g]||0,q=u(b&&b.opacity,c.opacity,1);if(b&&this.zones.length){var p=b.getZone();k=b.options.color||p&&(p.color||b.nonZonedColor)||this.color;p&&(h=p.borderColor||h,e=p.dashStyle||e,m=p.borderWidth||m)}a&&b&&(b=x(c.states[a],b.options.states&&b.options.states[a]||{}),a=b.brightness,
529
- k=b.color||"undefined"!==typeof a&&d(k).brighten(b.brightness).get()||k,h=b[f]||h,m=b[g]||m,e=b.dashStyle||e,q=u(b.opacity,q));f={fill:k,stroke:h,"stroke-width":m,opacity:q};e&&(f.dashstyle=e);return f};m.prototype.drawPoints=function(){var b=this,a=this.chart,d=b.options,f=a.renderer,g=d.animationLimit||250,k;b.points.forEach(function(c){var e=c.graphic,h=!!e,m=e&&a.pointCount<g?"animate":"attr";if(B(c.plotY)&&null!==c.y){k=c.shapeArgs;e&&c.hasNewShapeType()&&(e=e.destroy());b.enabledDataSorting&&
530
- (c.startXPos=b.xAxis.reversed?-(k?k.width||0:0):b.xAxis.width);e||(c.graphic=e=f[c.shapeType](k).add(c.group||b.group))&&b.enabledDataSorting&&a.hasRendered&&a.pointCount<g&&(e.attr({x:c.startXPos}),h=!0,m="animate");if(e&&h)e[m](x(k));if(d.borderRadius)e[m]({r:d.borderRadius});a.styledMode||e[m](b.pointAttribs(c,c.selected&&"select")).shadow(!1!==c.allowShadow&&d.shadow,null,d.stacking&&!d.borderRadius);e&&(e.addClass(c.getClassName(),!0),e.attr({visibility:c.visible?"inherit":"hidden"}))}else e&&
531
- (c.graphic=e.destroy())})};m.prototype.drawTracker=function(){var a=this,c=a.chart,d=c.pointer,g=function(b){var a=d.getPointFromEvent(b);"undefined"!==typeof a&&(d.isDirectTouch=!0,a.onMouseOver(b))},k;a.points.forEach(function(b){k=f(b.dataLabels)?b.dataLabels:b.dataLabel?[b.dataLabel]:[];b.graphic&&(b.graphic.element.point=b);k.forEach(function(a){a.div?a.div.point=b:a.element.point=b})});a._hasTracking||(a.trackerGroups.forEach(function(e){if(a[e]){a[e].addClass("highcharts-tracker").on("mouseover",
532
- g).on("mouseout",function(b){d.onTrackerMouseOut(b)});if(b)a[e].on("touchstart",g);!c.styledMode&&a.options.cursor&&a[e].css(p).css({cursor:a.options.cursor})}}),a._hasTracking=!0);G(this,"afterDrawTracker")};m.prototype.remove=function(){var b=this,a=b.chart;a.hasRendered&&a.series.forEach(function(a){a.type===b.type&&(a.isDirty=!0)});w.prototype.remove.apply(b,arguments)};m.defaultOptions=x(w.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,
533
- cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:z.neutralColor20,borderColor:z.neutralColor100}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:z.backgroundColor});return m}(w);r(t.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:y.drawRectangle,getSymbol:a,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});D.registerSeriesType("column",t);"";"";return t});
534
- I(a,"Core/Series/DataLabel.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/FormatUtilities.js"],a["Core/Color/Palette.js"],a["Core/Utilities.js"]],function(a,v,A,y){var r=a.getDeferredAnimation,w=v.format,D=y.defined,t=y.extend,l=y.fireEvent,h=y.isArray,d=y.merge,b=y.objectEach,g=y.pick,p=y.splat,k;(function(a){function k(b,a,c,d,f){var e=this,k=this.chart,h=this.isCartesian&&k.inverted,m=this.enabledDataSorting,n=g(b.dlBox&&b.dlBox.centerX,b.plotX,-9999),p=g(b.plotY,-9999),q=a.getBBox(),l=
535
- c.rotation,u=c.align,r=k.isInsidePlot(n,Math.round(p),{inverted:h,paneCoordinates:!0,series:e}),E=function(c){m&&e.xAxis&&!x&&e.setDataLabelStartPos(b,a,f,r,c)},x="justify"===g(c.overflow,m?"none":"justify"),B=this.visible&&!1!==b.visible&&(b.series.forceDL||m&&!x||r||g(c.inside,!!this.options.stacking)&&d&&k.isInsidePlot(n,h?d.x+1:d.y+d.height-1,{inverted:h,paneCoordinates:!0,series:e}));if(B){var C=k.renderer.fontMetrics(k.styledMode?void 0:c.style.fontSize,a).b;d=t({x:h?this.yAxis.len-p:n,y:Math.round(h?
536
- this.xAxis.len-n:p),width:0,height:0},d);t(c,{width:q.width,height:q.height});l?(x=!1,n=k.renderer.rotCorr(C,l),n={x:d.x+(c.x||0)+d.width/2+n.x,y:d.y+(c.y||0)+{top:0,middle:.5,bottom:1}[c.verticalAlign]*d.height},E(n),a[f?"attr":"animate"](n).attr({align:u}),E=(l+720)%360,E=180<E&&360>E,"left"===u?n.y-=E?q.height:0:"center"===u?(n.x-=q.width/2,n.y-=q.height/2):"right"===u&&(n.x-=q.width,n.y-=E?0:q.height),a.placed=!0,a.alignAttr=n):(E(d),a.align(c,void 0,d),n=a.alignAttr);x&&0<=d.height?this.justifyDataLabel(a,
537
- c,n,q,d,f):g(c.crop,!0)&&(B=k.isInsidePlot(n.x,n.y,{paneCoordinates:!0,series:e})&&k.isInsidePlot(n.x+q.width,n.y+q.height,{paneCoordinates:!0,series:e}));if(c.shape&&!l)a[f?"attr":"animate"]({anchorX:h?k.plotWidth-b.plotY:b.plotX,anchorY:h?k.plotHeight-b.plotX:b.plotY})}f&&m&&(a.placed=!1);B||m&&!x||(a.hide(!0),a.placed=!1)}function f(b,a){var c=a.filter;return c?(a=c.operator,b=b[c.property],c=c.value,">"===a&&b>c||"<"===a&&b<c||">="===a&&b>=c||"<="===a&&b<=c||"=="===a&&b==c||"==="===a&&b===c?!0:
538
- !1):!0}function B(){var a=this,d=a.chart,c=a.options,k=a.points,m=a.hasRendered||0,t=d.renderer,E=c.dataLabels,x,B=E.animation;B=E.defer?r(d,B,a):{defer:0,duration:0};E=u(u(d.options.plotOptions&&d.options.plotOptions.series&&d.options.plotOptions.series.dataLabels,d.options.plotOptions&&d.options.plotOptions[a.type]&&d.options.plotOptions[a.type].dataLabels),E);l(this,"drawDataLabels");if(h(E)||E.enabled||a._hasPointLabels){var v=a.plotGroup("dataLabelsGroup","data-labels",m?"inherit":"hidden",E.zIndex||
539
- 6);v.attr({opacity:+m});!m&&(m=a.dataLabelsGroup)&&(a.visible&&v.show(!0),m[c.animation?"animate":"attr"]({opacity:1},B));k.forEach(function(e){x=p(u(E,e.dlOptions||e.options&&e.options.dataLabels));x.forEach(function(k,h){var m=k.enabled&&(!e.isNull||e.dataLabelOnNull)&&f(e,k),n=e.connectors?e.connectors[h]:e.connector,p=e.dataLabels?e.dataLabels[h]:e.dataLabel,q=g(k.distance,e.labelDistance),l=!p;if(m){var u=e.getLabelConfig();var r=g(k[e.formatPrefix+"Format"],k.format);u=D(r)?w(r,u,d):(k[e.formatPrefix+
540
- "Formatter"]||k.formatter).call(u,k);r=k.style;var E=k.rotation;d.styledMode||(r.color=g(k.color,r.color,a.color,A.neutralColor100),"contrast"===r.color?(e.contrastColor=t.getContrast(e.color||a.color),r.color=!D(q)&&k.inside||0>q||c.stacking?e.contrastColor:A.neutralColor100):delete e.contrastColor,c.cursor&&(r.cursor=c.cursor));var x={r:k.borderRadius||0,rotation:E,padding:k.padding,zIndex:1};d.styledMode||(x.fill=k.backgroundColor,x.stroke=k.borderColor,x["stroke-width"]=k.borderWidth);b(x,function(b,
541
- a){"undefined"===typeof b&&delete x[a]})}!p||m&&D(u)?m&&D(u)&&(p?x.text=u:(e.dataLabels=e.dataLabels||[],p=e.dataLabels[h]=E?t.text(u,0,-9999,k.useHTML).addClass("highcharts-data-label"):t.label(u,0,-9999,k.shape,null,null,k.useHTML,null,"data-label"),h||(e.dataLabel=p),p.addClass(" highcharts-data-label-color-"+e.colorIndex+" "+(k.className||"")+(k.useHTML?" highcharts-tracker":""))),p.options=k,p.attr(x),d.styledMode||p.css(r).shadow(k.shadow),p.added||p.add(v),k.textPath&&!k.useHTML&&(p.setTextPath(e.getDataLabelPath&&
542
- e.getDataLabelPath(p)||e.graphic,k.textPath),e.dataLabelPath&&!k.textPath.enabled&&(e.dataLabelPath=e.dataLabelPath.destroy())),a.alignDataLabel(e,p,k,null,l)):(e.dataLabel=e.dataLabel&&e.dataLabel.destroy(),e.dataLabels&&(1===e.dataLabels.length?delete e.dataLabels:delete e.dataLabels[h]),h||delete e.dataLabel,n&&(e.connector=e.connector.destroy(),e.connectors&&(1===e.connectors.length?delete e.connectors:delete e.connectors[h])))})})}l(this,"afterDrawDataLabels")}function x(b,a,c,d,f,g){var e=this.chart,
543
- k=a.align,h=a.verticalAlign,m=b.box?0:b.padding||0,n=a.x;n=void 0===n?0:n;var p=a.y;p=void 0===p?0:p;var q=(c.x||0)+m;if(0>q){"right"===k&&0<=n?(a.align="left",a.inside=!0):n-=q;var l=!0}q=(c.x||0)+d.width-m;q>e.plotWidth&&("left"===k&&0>=n?(a.align="right",a.inside=!0):n+=e.plotWidth-q,l=!0);q=c.y+m;0>q&&("bottom"===h&&0<=p?(a.verticalAlign="top",a.inside=!0):p-=q,l=!0);q=(c.y||0)+d.height-m;q>e.plotHeight&&("top"===h&&0>=p?(a.verticalAlign="bottom",a.inside=!0):p+=e.plotHeight-q,l=!0);l&&(a.x=n,
544
- a.y=p,b.placed=!g,b.align(a,void 0,f));return l}function u(b,a){var c=[],e;if(h(b)&&!h(a))c=b.map(function(b){return d(b,a)});else if(h(a)&&!h(b))c=a.map(function(a){return d(b,a)});else if(h(b)||h(a))for(e=Math.max(b.length,a.length);e--;)c[e]=d(b[e],a[e]);else c=d(b,a);return c}function E(b,a,c,d,f){var e=this.chart,g=e.inverted,k=this.xAxis,h=k.reversed,m=g?a.height/2:a.width/2;b=(b=b.pointWidth)?b/2:0;a.startXPos=g?f.x:h?-m-b:k.width-m+b;a.startYPos=g?h?this.yAxis.height-m+b:-m-b:f.y;d?"hidden"===
545
- a.visibility&&(a.show(),a.attr({opacity:0}).animate({opacity:1})):a.attr({opacity:1}).animate({opacity:0},void 0,a.hide);e.hasRendered&&(c&&a.attr({x:a.startXPos,y:a.startYPos}),a.placed=!0)}var m=[];a.compose=function(b){if(-1===m.indexOf(b)){var a=b.prototype;m.push(b);a.alignDataLabel=k;a.drawDataLabels=B;a.justifyDataLabel=x;a.setDataLabelStartPos=E}}})(k||(k={}));"";return k});I(a,"Series/Column/ColumnDataLabel.js",[a["Core/Series/DataLabel.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],
546
- function(a,v,A){var r=v.series,z=A.merge,w=A.pick,D;(function(t){function l(a,b,g,h,k){var d=this.chart.inverted,p=a.series,f=a.dlBox||a.shapeArgs,l=w(a.below,a.plotY>w(this.translatedThreshold,p.yAxis.len)),t=w(g.inside,!!this.options.stacking);f&&(h=z(f),0>h.y&&(h.height+=h.y,h.y=0),f=h.y+h.height-p.yAxis.len,0<f&&f<h.height&&(h.height-=f),d&&(h={x:p.yAxis.len-h.y-h.height,y:p.xAxis.len-h.x-h.width,width:h.height,height:h.width}),t||(d?(h.x+=l?0:h.width,h.width=0):(h.y+=l?h.height:0,h.height=0)));
547
- g.align=w(g.align,!d||t?"center":l?"right":"left");g.verticalAlign=w(g.verticalAlign,d||t?"middle":l?"top":"bottom");r.prototype.alignDataLabel.call(this,a,b,g,h,k);g.inside&&a.contrastColor&&b.css({color:a.contrastColor})}var h=[];t.compose=function(d){a.compose(r);-1===h.indexOf(d)&&(h.push(d),d.prototype.alignDataLabel=l)}})(D||(D={}));return D});I(a,"Series/Bar/BarSeries.js",[a["Series/Column/ColumnSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A){var r=this&&
548
- this.__extends||function(){var a=function(r,l){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(r,l)};return function(r,l){function h(){this.constructor=r}a(r,l);r.prototype=null===l?Object.create(l):(h.prototype=l.prototype,new h)}}(),z=A.extend,w=A.merge;A=function(v){function t(){var a=null!==v&&v.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}r(t,v);
549
- t.defaultOptions=w(a.defaultOptions,{});return t}(a);z(A.prototype,{inverted:!0});v.registerSeriesType("bar",A);"";return A});I(a,"Series/Scatter/ScatterSeries.js",[a["Series/Column/ColumnSeries.js"],a["Series/Line/LineSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y){var r=this&&this.__extends||function(){var a=function(h,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&
550
- (b[d]=a[d])};return a(h,d)};return function(h,d){function b(){this.constructor=h}a(h,d);h.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),w=y.addEvent,D=y.extend,t=y.merge;y=function(a){function h(){var d=null!==a&&a.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}r(h,a);h.prototype.applyJitter=function(){var a=this,b=this.options.jitter,g=this.points.length;b&&this.points.forEach(function(d,k){["x","y"].forEach(function(h,p){var f="plot"+
551
- h.toUpperCase();if(b[h]&&!d.isNull){var l=a[h+"Axis"];var r=b[h]*l.transA;if(l&&!l.isLog){var u=Math.max(0,d[f]-r);l=Math.min(l.len,d[f]+r);p=1E4*Math.sin(k+p*g);d[f]=u+(l-u)*(p-Math.floor(p));"x"===h&&(d.clientX=d.plotX)}}})})};h.prototype.drawGraph=function(){this.options.lineWidth?a.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};h.defaultOptions=t(v.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',
552
- pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});return h}(v);D(y.prototype,{drawTracker:a.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});w(y,"afterTranslate",function(){this.applyJitter()});A.registerSeriesType("scatter",y);"";return y});I(a,"Mixins/CenteredSeries.js",[a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,v,A){var r=A.isNumber,z=A.pick,
553
- w=A.relativeLength,D=a.deg2rad;return a.CenteredSeriesMixin={getCenter:function(){var a=this.options,l=this.chart,h=2*(a.slicedOffset||0),d=l.plotWidth-2*h,b=l.plotHeight-2*h,g=a.center,p=Math.min(d,b),k=a.size,r=a.innerSize||0;"string"===typeof k&&(k=parseFloat(k));"string"===typeof r&&(r=parseFloat(r));a=[z(g[0],"50%"),z(g[1],"50%"),z(k&&0>k?void 0:a.size,"100%"),z(r&&0>r?void 0:a.innerSize||0,"0%")];!l.angular||this instanceof v||(a[3]=0);for(g=0;4>g;++g)k=a[g],l=2>g||2===g&&/%$/.test(k),a[g]=
554
- w(k,[d,b,p,a[2]][g])+(l?h:0);a[3]>a[2]&&(a[3]=a[2]);return a},getStartAndEndRadians:function(a,l){a=r(a)?a:0;l=r(l)&&l>a&&360>l-a?l:a+360;return{start:D*(a+-90),end:D*(l+-90)}}}});I(a,"Series/Pie/PiePoint.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,v,A){var r=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&
555
- (b[d]=a[d])};return a(b,d)};return function(b,d){function g(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),z=a.setAnimation,w=A.addEvent,D=A.defined;a=A.extend;var t=A.isNumber,l=A.pick,h=A.relativeLength;v=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.labelDistance=void 0;b.options=void 0;b.series=void 0;return b}r(b,a);b.prototype.getConnectorPath=function(){var b=this.labelPosition,a=this.series.options.dataLabels,
556
- d=this.connectorShapes,h=a.connectorShape;d[h]&&(h=d[h]);return h.call(this,{x:b.final.x,y:b.final.y,alignment:b.alignment},b.connectorPosition,a)};b.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};b.prototype.haloPath=function(b){var a=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(a.x,a.y,a.r+b,a.r+b,{innerR:a.r-1,start:a.start,end:a.end})};b.prototype.init=function(){var b=this;a.prototype.init.apply(this,
557
- arguments);this.name=l(this.name,"Slice");var d=function(a){b.slice("select"===a.type)};w(this,"select",d);w(this,"unselect",d);return this};b.prototype.isValid=function(){return t(this.y)&&0<=this.y};b.prototype.setVisible=function(b,a){var d=this,g=this.series,h=g.chart,f=g.options.ignoreHiddenPoint;a=l(a,f);b!==this.visible&&(this.visible=this.options.visible=b="undefined"===typeof b?!this.visible:b,g.options.data[g.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(a){if(d[a])d[a][b?
558
- "show":"hide"](b)}),this.legendItem&&h.legend.colorizeItem(this,b),b||"hover"!==this.state||this.setState(""),f&&(g.isDirty=!0),a&&h.redraw())};b.prototype.slice=function(b,a,d){var g=this.series;z(d,g.chart);l(a,!0);this.sliced=this.options.sliced=D(b)?b:!this.sliced;g.options.data[g.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return b}(v);a(v.prototype,{connectorShapes:{fixedOffset:function(a,
559
- b,g){var d=b.breakAt;b=b.touchingSliceAt;return[["M",a.x,a.y],g.softConnector?["C",a.x+("left"===a.alignment?-5:5),a.y,2*d.x-b.x,2*d.y-b.y,d.x,d.y]:["L",d.x,d.y],["L",b.x,b.y]]},straight:function(a,b){b=b.touchingSliceAt;return[["M",a.x,a.y],["L",b.x,b.y]]},crookedLine:function(a,b,g){b=b.touchingSliceAt;var d=this.series,k=d.center[0],l=d.chart.plotWidth,r=d.chart.plotLeft;d=a.alignment;var f=this.shapeArgs.r;g=h(g.crookDistance,1);l="left"===d?k+f+(l+r-k-f)*(1-g):r+(k-f)*g;g=["L",l,a.y];k=!0;if("left"===
560
- d?l>a.x||l<b.x:l<a.x||l>b.x)k=!1;a=[["M",a.x,a.y]];k&&a.push(g);a.push(["L",b.x,b.y]);return a}}});return v});I(a,"Series/Pie/PieSeries.js",[a["Mixins/CenteredSeries.js"],a["Series/Column/ColumnSeries.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Color/Palette.js"],a["Series/Pie/PiePoint.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/Symbols.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w,D,t,l,h){var d=this&&this.__extends||function(){var b=
561
- function(a,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d])};return b(a,d)};return function(a,d){function f(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),b=a.getStartAndEndRadians;A=A.noop;var g=h.clamp,p=h.extend,k=h.fireEvent,r=h.merge,G=h.pick,f=h.relativeLength;h=function(a){function h(){var b=null!==a&&a.apply(this,arguments)||this;b.center=
562
- void 0;b.data=void 0;b.maxLabelDistance=void 0;b.options=void 0;b.points=void 0;return b}d(h,a);h.prototype.animate=function(b){var a=this,d=a.points,f=a.startAngleRad;b||d.forEach(function(b){var c=b.graphic,d=b.shapeArgs;c&&d&&(c.attr({r:G(b.startR,a.center&&a.center[3]/2),start:f,end:f}),c.animate({r:d.r,start:d.start,end:d.end},a.options.animation))})};h.prototype.drawEmpty=function(){var b=this.startAngleRad,a=this.endAngleRad,d=this.options;if(0===this.total&&this.center){var f=this.center[0];
563
- var e=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(f,e,this.center[1]/2,0,b,a).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:l.arc(f,e,this.center[2]/2,0,{start:b,end:a,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":d.borderWidth,fill:d.fillColor||"none",stroke:d.color||z.neutralColor20})}else this.graph&&(this.graph=this.graph.destroy())};h.prototype.drawPoints=function(){var b=this.chart.renderer;this.points.forEach(function(a){a.graphic&&
564
- a.hasNewShapeType()&&(a.graphic=a.graphic.destroy());a.graphic||(a.graphic=b[a.shapeType](a.shapeArgs).add(a.series.group),a.delayedRendering=!0)})};h.prototype.generatePoints=function(){a.prototype.generatePoints.call(this);this.updateTotals()};h.prototype.getX=function(b,a,d){var f=this.center,e=this.radii?this.radii[d.index]||0:f[2]/2;b=Math.asin(g((b-f[1])/(e+d.labelDistance),-1,1));return f[0]+(a?-1:1)*Math.cos(b)*(e+d.labelDistance)+(0<d.labelDistance?(a?-1:1)*this.options.dataLabels.padding:
565
- 0)};h.prototype.hasData=function(){return!!this.processedXData.length};h.prototype.redrawPoints=function(){var b=this,a=b.chart,d=a.renderer,f=b.options.shadow,e,c,g,k;this.drawEmpty();!f||b.shadowGroup||a.styledMode||(b.shadowGroup=d.g("shadow").attr({zIndex:-1}).add(b.group));b.points.forEach(function(h){var m={};c=h.graphic;if(!h.isNull&&c){var n=void 0;k=h.shapeArgs;e=h.getTranslate();a.styledMode||(n=h.shadowGroup,f&&!n&&(n=h.shadowGroup=d.g("shadow").add(b.shadowGroup)),n&&n.attr(e),g=b.pointAttribs(h,
566
- h.selected&&"select"));h.delayedRendering?(c.setRadialReference(b.center).attr(k).attr(e),a.styledMode||c.attr(g).attr({"stroke-linejoin":"round"}).shadow(f,n),h.delayedRendering=!1):(c.setRadialReference(b.center),a.styledMode||r(!0,m,g),r(!0,m,k,e),c.animate(m));c.attr({visibility:h.visible?"inherit":"hidden"});c.addClass(h.getClassName(),!0)}else c&&(h.graphic=c.destroy())})};h.prototype.sortByAngle=function(b,a){b.sort(function(b,d){return"undefined"!==typeof b.angle&&(d.angle-b.angle)*a})};h.prototype.translate=
567
- function(a){this.generatePoints();var d=this.options,g=d.slicedOffset,h=g+(d.borderWidth||0),e=b(d.startAngle,d.endAngle),c=this.startAngleRad=e.start;e=(this.endAngleRad=e.end)-c;var n=this.points,l=d.dataLabels.distance;d=d.ignoreHiddenPoint;var p=n.length,u,r=0;a||(this.center=a=this.getCenter());for(u=0;u<p;u++){var t=n[u];var x=c+r*e;!t.isValid()||d&&!t.visible||(r+=t.percentage/100);var B=c+r*e;var w={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*x)/1E3,end:Math.round(1E3*B)/1E3};
568
- t.shapeType="arc";t.shapeArgs=w;t.labelDistance=G(t.options.dataLabels&&t.options.dataLabels.distance,l);t.labelDistance=f(t.labelDistance,w.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,t.labelDistance);B=(B+x)/2;B>1.5*Math.PI?B-=2*Math.PI:B<-Math.PI/2&&(B+=2*Math.PI);t.slicedTranslation={translateX:Math.round(Math.cos(B)*g),translateY:Math.round(Math.sin(B)*g)};w=Math.cos(B)*a[2]/2;var v=Math.sin(B)*a[2]/2;t.tooltipPos=[a[0]+.7*w,a[1]+.7*v];t.half=B<-Math.PI/2||B>Math.PI/2?1:0;t.angle=
569
- B;x=Math.min(h,t.labelDistance/5);t.labelPosition={natural:{x:a[0]+w+Math.cos(B)*t.labelDistance,y:a[1]+v+Math.sin(B)*t.labelDistance},"final":{},alignment:0>t.labelDistance?"center":t.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+w+Math.cos(B)*x,y:a[1]+v+Math.sin(B)*x},touchingSliceAt:{x:a[0]+w,y:a[1]+v}}}}k(this,"afterTranslate")};h.prototype.updateTotals=function(){var b=this.points,a=b.length,d=this.options.ignoreHiddenPoint,f,e=0;for(f=0;f<a;f++){var c=b[f];!c.isValid()||d&&!c.visible||
570
- (e+=c.y)}this.total=e;for(f=0;f<a;f++)c=b[f],c.percentage=0<e&&(c.visible||!d)?c.y/e*100:0,c.total=e};h.defaultOptions=r(D.defaultOptions,{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,
571
- slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:z.backgroundColor,borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}});return h}(D);p(h.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:y.drawRectangle,drawTracker:v.prototype.drawTracker,getCenter:a.getCenter,getSymbol:A,isCartesian:!1,noSharedTooltip:!0,pointAttribs:v.prototype.pointAttribs,pointClass:w,requireSorting:!1,searchPoint:A,trackerGroups:["group","dataLabelsGroup"]});t.registerSeriesType("pie",
572
- h);"";return h});I(a,"Series/Pie/PieDataLabel.js",[a["Core/Series/DataLabel.js"],a["Core/Globals.js"],a["Core/Color/Palette.js"],a["Core/Renderer/RendererUtilities.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w){var r=v.noop,t=y.distribute,l=z.series,h=w.arrayMax,d=w.clamp,b=w.defined,g=w.merge,p=w.pick,k=w.relativeLength,J;(function(w){function f(){var a=this,d=a.data,e=a.chart,c=a.options.dataLabels||{},f=c.connectorPadding,k=e.plotWidth,u=e.plotHeight,r=e.plotLeft,
573
- x=Math.round(e.chartWidth/3),E=a.center,B=E[2]/2,w=E[1],v=[[],[]],z=[0,0,0,0],D=a.dataLabelPositioners,y,G,J,I,Z,K,U,P,X,V,Y,Q;a.visible&&(c.enabled||a._hasPointLabels)&&(d.forEach(function(b){b.dataLabel&&b.visible&&b.dataLabel.shortened&&(b.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),b.dataLabel.shortened=!1)}),l.prototype.drawDataLabels.apply(a),d.forEach(function(a){a.dataLabel&&(a.visible?(v[a.half].push(a),a.dataLabel._pos=null,!b(c.style.width)&&!b(a.options.dataLabels&&
574
- a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>x&&(a.dataLabel.css({width:Math.round(.7*x)+"px"}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&&delete a.dataLabels))}),v.forEach(function(d,g){var h=d.length,m=[],n;if(h){a.sortByAngle(d,g-.5);if(0<a.maxLabelDistance){var l=Math.max(0,w-B-a.maxLabelDistance);var q=Math.min(w+B+a.maxLabelDistance,e.plotHeight);d.forEach(function(b){0<b.labelDistance&&b.dataLabel&&
575
- (b.top=Math.max(0,w-B-b.labelDistance),b.bottom=Math.min(w+B+b.labelDistance,e.plotHeight),n=b.dataLabel.getBBox().height||21,b.distributeBox={target:b.labelPosition.natural.y-b.top+n/2,size:n,rank:b.y},m.push(b.distributeBox))});l=q+n-l;t(m,l,l/5)}for(Y=0;Y<h;Y++){y=d[Y];K=y.labelPosition;I=y.dataLabel;V=!1===y.visible?"hidden":"inherit";X=l=K.natural.y;m&&b(y.distributeBox)&&("undefined"===typeof y.distributeBox.pos?V="hidden":(U=y.distributeBox.size,X=D.radialDistributionY(y)));delete y.positionIndex;
576
- if(c.justify)P=D.justify(y,B,E);else switch(c.alignTo){case "connectors":P=D.alignToConnectors(d,g,k,r);break;case "plotEdges":P=D.alignToPlotEdges(I,g,k,r);break;default:P=D.radialDistributionX(a,y,X,l)}I._attr={visibility:V,align:K.alignment};Q=y.options.dataLabels||{};I._pos={x:P+p(Q.x,c.x)+({left:f,right:-f}[K.alignment]||0),y:X+p(Q.y,c.y)-10};K.final.x=P;K.final.y=X;p(c.crop,!0)&&(Z=I.getBBox().width,l=null,P-Z<f&&1===g?(l=Math.round(Z-P+f),z[3]=Math.max(l,z[3])):P+Z>k-f&&0===g&&(l=Math.round(P+
577
- Z-k+f),z[1]=Math.max(l,z[1])),0>X-U/2?z[0]=Math.max(Math.round(-X+U/2),z[0]):X+U/2>u&&(z[2]=Math.max(Math.round(X+U/2-u),z[2])),I.sideOverflow=l)}}}),0===h(z)||this.verifyDataLabelOverflow(z))&&(this.placeDataLabels(),this.points.forEach(function(b){Q=g(c,b.options.dataLabels);if(G=p(Q.connectorWidth,1)){var d;J=b.connector;if((I=b.dataLabel)&&I._pos&&b.visible&&0<b.labelDistance){V=I._attr.visibility;if(d=!J)b.connector=J=e.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+
578
- b.colorIndex+(b.className?" "+b.className:"")).add(a.dataLabelsGroup),e.styledMode||J.attr({"stroke-width":G,stroke:Q.connectorColor||b.color||A.neutralColor60});J[d?"attr":"animate"]({d:b.getConnectorPath()});J.attr("visibility",V)}else J&&(b.connector=J.destroy())}}))}function B(){this.points.forEach(function(b){var a=b.dataLabel,d;a&&b.visible&&((d=a._pos)?(a.sideOverflow&&(a._attr.width=Math.max(a.getBBox().width-a.sideOverflow,0),a.css({width:a._attr.width+"px",textOverflow:(this.options.dataLabels.style||
579
- {}).textOverflow||"ellipsis"}),a.shortened=!0),a.attr(a._attr),a[a.moved?"animate":"attr"](d),a.moved=!0):a&&a.attr({y:-9999}));delete b.distributeBox},this)}function x(b){var a=this.center,e=this.options,c=e.center,f=e.minSize||80,g=null!==e.size;if(!g){if(null!==c[0])var h=Math.max(a[2]-Math.max(b[1],b[3]),f);else h=Math.max(a[2]-b[1]-b[3],f),a[0]+=(b[3]-b[1])/2;null!==c[1]?h=d(h,f,a[2]-Math.max(b[0],b[2])):(h=d(h,f,a[2]-b[0]-b[2]),a[1]+=(b[0]-b[2])/2);h<a[2]?(a[2]=h,a[3]=Math.min(k(e.innerSize||
580
- 0,h),h),this.translate(a),this.drawDataLabels&&this.drawDataLabels()):g=!0}return g}var u=[],E={radialDistributionY:function(b){return b.top+b.distributeBox.pos},radialDistributionX:function(b,a,d,c){return b.getX(d<a.top+2||d>a.bottom-2?c:d,a.half,a)},justify:function(b,a,d){return d[0]+(b.half?-1:1)*(a+b.labelDistance)},alignToPlotEdges:function(b,a,d,c){b=b.getBBox().width;return a?b+c:d-b-c},alignToConnectors:function(b,a,d,c){var e=0,f;b.forEach(function(b){f=b.dataLabel.getBBox().width;f>e&&
581
- (e=f)});return a?e+c:d-e-c}};w.compose=function(b){a.compose(l);-1===u.indexOf(b)&&(u.push(b),b=b.prototype,b.dataLabelPositioners=E,b.alignDataLabel=r,b.drawDataLabels=f,b.placeDataLabels=B,b.verifyDataLabelOverflow=x)}})(J||(J={}));return J});I(a,"Extensions/OverlappingDataLabels.js",[a["Core/Chart/Chart.js"],a["Core/Utilities.js"]],function(a,v){function r(a,d){var b=!1;if(a){var g=a.newOpacity;a.oldOpacity!==g&&(a.alignAttr&&a.placed?(a[g?"removeClass":"addClass"]("highcharts-data-label-hidden"),
582
- b=!0,a.alignAttr.opacity=g,a[a.isOld?"animate":"attr"](a.alignAttr,null,function(){d.styledMode||a.css({pointerEvents:g?"auto":"none"})}),z(d,"afterHideOverlappingLabel")):a.attr({opacity:g}));a.isOld=!0}return b}var y=v.addEvent,z=v.fireEvent,w=v.isArray,D=v.isNumber,t=v.objectEach,l=v.pick;y(a,"render",function(){var a=this,d=[];(this.labelCollectors||[]).forEach(function(b){d=d.concat(b())});(this.yAxis||[]).forEach(function(b){b.stacking&&b.options.stackLabels&&!b.options.stackLabels.allowOverlap&&
583
- t(b.stacking.stacks,function(b){t(b,function(b){b.label&&"hidden"!==b.label.visibility&&d.push(b.label)})})});(this.series||[]).forEach(function(b){var g=b.options.dataLabels;b.visible&&(!1!==g.enabled||b._hasPointLabels)&&(g=function(b){return b.forEach(function(b){b.visible&&(w(b.dataLabels)?b.dataLabels:b.dataLabel?[b.dataLabel]:[]).forEach(function(g){var h=g.options;g.labelrank=l(h.labelrank,b.labelrank,b.shapeArgs&&b.shapeArgs.height);h.allowOverlap?(g.oldOpacity=g.opacity,g.newOpacity=1,r(g,
584
- a)):d.push(g)})})},g(b.nodes||[]),g(b.points))});this.hideOverlappingLabels(d)});a.prototype.hideOverlappingLabels=function(a){var d=this,b=a.length,g=d.renderer,h,k,l,t=!1;var f=function(b){var a,d=b.box?0:b.padding||0,f=a=0,e;if(b&&(!b.alignAttr||b.placed)){var c=b.alignAttr||{x:b.attr("x"),y:b.attr("y")};var h=b.parentGroup;b.width||(a=b.getBBox(),b.width=a.width,b.height=a.height,a=g.fontMetrics(null,b.element).h);var k=b.width-2*d;(e={left:"0",center:"0.5",right:"1"}[b.alignValue])?f=+e*k:D(b.x)&&
585
- Math.round(b.x)!==b.translateX&&(f=b.x-b.translateX);return{x:c.x+(h.translateX||0)+d-(f||0),y:c.y+(h.translateY||0)+d-a,width:b.width-2*d,height:b.height-2*d}}};for(k=0;k<b;k++)if(h=a[k])h.oldOpacity=h.opacity,h.newOpacity=1,h.absoluteBox=f(h);a.sort(function(b,a){return(a.labelrank||0)-(b.labelrank||0)});for(k=0;k<b;k++){var B=(f=a[k])&&f.absoluteBox;for(h=k+1;h<b;++h){var x=(l=a[h])&&l.absoluteBox;!B||!x||f===l||0===f.newOpacity||0===l.newOpacity||x.x>=B.x+B.width||x.x+x.width<=B.x||x.y>=B.y+B.height||
586
- x.y+x.height<=B.y||((f.labelrank<l.labelrank?f:l).newOpacity=0)}}a.forEach(function(b){r(b,d)&&(t=!0)});t&&z(d,"afterHideAllOverlappingLabels")}});I(a,"Core/Responsive.js",[a["Core/Utilities.js"]],function(a){var r=a.extend,A=a.find,y=a.isArray,z=a.isObject,w=a.merge,D=a.objectEach,t=a.pick,l=a.splat,h=a.uniqueKey,d;(function(b){var a=[];b.compose=function(b){-1===a.indexOf(b)&&(a.push(b),r(b.prototype,d.prototype));return b};var d=function(){function b(){}b.prototype.currentOptions=function(b){function a(b,
587
- f,g,h){var k;D(b,function(b,c){if(!h&&-1<d.collectionsWithUpdate.indexOf(c)&&f[c])for(b=l(b),g[c]=[],k=0;k<Math.max(b.length,f[c].length);k++)f[c][k]&&(void 0===b[k]?g[c][k]=f[c][k]:(g[c][k]={},a(b[k],f[c][k],g[c][k],h+1)));else z(b)?(g[c]=y(b)?[]:{},a(b,f[c]||{},g[c],h+1)):g[c]="undefined"===typeof f[c]?null:f[c]})}var d=this,g={};a(b,this.options,g,0);return g};b.prototype.matchResponsiveRule=function(b,a){var d=b.condition;(d.callback||function(){return this.chartWidth<=t(d.maxWidth,Number.MAX_VALUE)&&
588
- this.chartHeight<=t(d.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=t(d.minWidth,0)&&this.chartHeight>=t(d.minHeight,0)}).call(this)&&a.push(b._id)};b.prototype.setResponsive=function(b,a){var d=this,g=this.options.responsive,k=this.currentResponsive,l=[];!a&&g&&g.rules&&g.rules.forEach(function(b){"undefined"===typeof b._id&&(b._id=h());d.matchResponsiveRule(b,l)},this);a=w.apply(void 0,l.map(function(b){return A((g||{}).rules||[],function(a){return a._id===b})}).map(function(b){return b&&b.chartOptions}));
589
- a.isResponsiveOptions=!0;l=l.toString()||void 0;l!==(k&&k.ruleIds)&&(k&&this.update(k.undoOptions,b,!0),l?(k=this.currentOptions(a),k.isResponsiveOptions=!0,this.currentResponsive={ruleIds:l,mergedOptions:a,undoOptions:k},this.update(a,b,!0)):this.currentResponsive=void 0)};return b}()})(d||(d={}));"";"";return d});I(a,"masters/highcharts.src.js",[a["Core/Globals.js"],a["Core/Utilities.js"],a["Core/DefaultOptions.js"],a["Core/Animation/Fx.js"],a["Core/Animation/AnimationUtilities.js"],a["Core/Renderer/HTML/AST.js"],
590
- a["Core/FormatUtilities.js"],a["Core/Renderer/RendererUtilities.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Renderer/HTML/HTMLElement.js"],a["Core/Renderer/HTML/HTMLRenderer.js"],a["Core/Axis/Axis.js"],a["Core/Axis/DateTimeAxis.js"],a["Core/Axis/LogarithmicAxis.js"],a["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],a["Core/Axis/Tick.js"],a["Core/Tooltip.js"],a["Core/Series/Point.js"],a["Core/Pointer.js"],a["Core/MSPointer.js"],a["Core/Legend/Legend.js"],a["Core/Chart/Chart.js"],
591
- a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Series/Column/ColumnSeries.js"],a["Series/Column/ColumnDataLabel.js"],a["Series/Pie/PieSeries.js"],a["Series/Pie/PieDataLabel.js"],a["Core/Series/DataLabel.js"],a["Core/Responsive.js"],a["Core/Color/Color.js"],a["Core/Time.js"]],function(a,v,A,y,z,w,D,t,l,h,d,b,g,p,k,J,G,f,B,x,u,E,m,q,e,c,n,C,H,L,F,I,S){a.animate=z.animate;a.animObject=z.animObject;a.getDeferredAnimation=z.getDeferredAnimation;a.setAnimation=z.setAnimation;a.stop=z.stop;
592
- a.timers=y.timers;a.AST=w;a.Axis=g;a.Chart=m;a.chart=m.chart;a.Fx=y;a.Legend=E;a.PlotLineOrBand=J;a.Point=B;a.Pointer=u.isRequired()?u:x;a.Series=q;a.SVGElement=l;a.SVGRenderer=h;a.Tick=G;a.Time=S;a.Tooltip=f;a.Color=I;a.color=I.parse;b.compose(h);d.compose(l);a.defaultOptions=A.defaultOptions;a.getOptions=A.getOptions;a.time=A.defaultTime;a.setOptions=A.setOptions;a.dateFormat=D.dateFormat;a.format=D.format;a.numberFormat=D.numberFormat;a.addEvent=v.addEvent;a.arrayMax=v.arrayMax;a.arrayMin=v.arrayMin;
593
- a.attr=v.attr;a.clearTimeout=v.clearTimeout;a.correctFloat=v.correctFloat;a.createElement=v.createElement;a.css=v.css;a.defined=v.defined;a.destroyObjectProperties=v.destroyObjectProperties;a.discardElement=v.discardElement;a.distribute=t.distribute;a.erase=v.erase;a.error=v.error;a.extend=v.extend;a.extendClass=v.extendClass;a.find=v.find;a.fireEvent=v.fireEvent;a.getMagnitude=v.getMagnitude;a.getStyle=v.getStyle;a.inArray=v.inArray;a.isArray=v.isArray;a.isClass=v.isClass;a.isDOMElement=v.isDOMElement;
594
- a.isFunction=v.isFunction;a.isNumber=v.isNumber;a.isObject=v.isObject;a.isString=v.isString;a.keys=v.keys;a.merge=v.merge;a.normalizeTickInterval=v.normalizeTickInterval;a.objectEach=v.objectEach;a.offset=v.offset;a.pad=v.pad;a.pick=v.pick;a.pInt=v.pInt;a.relativeLength=v.relativeLength;a.removeEvent=v.removeEvent;a.seriesType=e.seriesType;a.splat=v.splat;a.stableSort=v.stableSort;a.syncTimeout=v.syncTimeout;a.timeUnits=v.timeUnits;a.uniqueKey=v.uniqueKey;a.useSerialIds=v.useSerialIds;a.wrap=v.wrap;
595
- n.compose(c);L.compose(q);p.compose(g);k.compose(g);H.compose(C);J.compose(g);F.compose(m);return a});I(a,"Core/Axis/MapAxis.js",[a["Core/Axis/Axis.js"],a["Core/Utilities.js"]],function(a,v){var r=v.addEvent,y=v.pick,z=function(){return function(a){this.axis=a}}();v=function(){function a(){}a.compose=function(a){a.keepProps.push("mapAxis");r(a,"init",function(){this.mapAxis||(this.mapAxis=new z(this))});r(a,"getSeriesExtremes",function(){if(this.mapAxis){var a=[];this.isXAxis&&(this.series.forEach(function(l,
596
- h){l.useMapGeometry&&(a[h]=l.xData,l.xData=[])}),this.mapAxis.seriesXData=a)}});r(a,"afterGetSeriesExtremes",function(){if(this.mapAxis){var a=this.mapAxis.seriesXData||[],l;if(this.isXAxis){var h=y(this.dataMin,Number.MAX_VALUE);var d=y(this.dataMax,-Number.MAX_VALUE);this.series.forEach(function(b,g){b.useMapGeometry&&(h=Math.min(h,y(b.minX,h)),d=Math.max(d,y(b.maxX,d)),b.xData=a[g],l=!0)});l&&(this.dataMin=h,this.dataMax=d);this.mapAxis.seriesXData=void 0}}});r(a,"afterSetAxisTranslation",function(){if(this.mapAxis){var a=
597
- this.chart,l=a.plotWidth/a.plotHeight;a=a.xAxis[0];var h;"yAxis"===this.coll&&"undefined"!==typeof a.transA&&this.series.forEach(function(a){a.preserveAspectRatio&&(h=!0)});if(h&&(this.transA=a.transA=Math.min(this.transA,a.transA),l/=(a.max-a.min)/(this.max-this.min),l=1>l?this:a,a=(l.max-l.min)*l.transA,l.mapAxis.pixelPadding=l.len-a,l.minPixelPadding=l.mapAxis.pixelPadding/2,a=l.mapAxis.fixTo)){a=a[1]-l.toValue(a[0],!0);a*=l.transA;if(Math.abs(a)>l.minPixelPadding||l.min===l.dataMin&&l.max===l.dataMax)a=
598
- 0;l.minPixelPadding-=a}}});r(a,"render",function(){this.mapAxis&&(this.mapAxis.fixTo=void 0)})};return a}();v.compose(a);return v});I(a,"Mixins/ColorSeries.js",[],function(){return{colorPointMixin:{setVisible:function(a){var r=this,A=a?"show":"hide";r.visible=r.options.visible=!!a;["graphic","dataLabel"].forEach(function(a){if(r[a])r[a][A]()});this.series.buildKDTree()}},colorSeriesMixin:{optionalAxis:"colorAxis",translateColors:function(){var a=this,v=this.options.nullColor,A=this.colorAxis,y=this.colorKey;
599
- (this.data.length?this.data:this.points).forEach(function(r){var w=r.getNestedProperty(y);(w=r.options.color||(r.isNull||null===r.value?v:A&&"undefined"!==typeof w?A.toColor(w,r):r.color||a.color))&&r.color!==w&&(r.color=w,"point"===a.options.legendType&&r.legendItem&&a.chart.legend.colorizeItem(r,r.visible))})}}}});I(a,"Core/Axis/Color/ColorAxisComposition.js",[a["Core/Color/Color.js"],a["Mixins/ColorSeries.js"],a["Core/Utilities.js"]],function(a,v,A){var r=a.parse,z=v.colorPointMixin,w=v.colorSeriesMixin,
600
- D=A.addEvent,t=A.extend,l=A.merge,h=A.pick,d=A.splat,b;(function(a){function b(){var a=this,b=this.options;this.colorAxis=[];b.colorAxis&&(b.colorAxis=d(b.colorAxis),b.colorAxis.forEach(function(b,c){b.index=c;new q(a,b)}))}function g(a){var b=this,d=function(c){c=a.allItems.indexOf(c);-1!==c&&(b.destroyItem(a.allItems[c]),a.allItems.splice(c,1))},e=[],f,g;(this.chart.colorAxis||[]).forEach(function(a){(f=a.options)&&f.showInLegend&&(f.dataClasses&&f.visible?e=e.concat(a.getDataClassLegendSymbols()):
601
- f.visible&&e.push(a),a.series.forEach(function(a){if(!a.options.showInLegend||f.dataClasses)"point"===a.options.legendType?a.points.forEach(function(a){d(a)}):d(a)}))});for(g=e.length;g--;)a.allItems.unshift(e[g])}function v(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}function y(){var a=this.chart.colorAxis;a&&a.forEach(function(a,b,d){a.update({},d)})}function f(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}
602
- function B(){var a=this.axisTypes;a?-1===a.indexOf("colorAxis")&&a.push("colorAxis"):this.axisTypes=["colorAxis"]}function x(a){var b=a.prototype.createAxis;a.prototype.createAxis=function(a,c){if("colorAxis"!==a)return b.apply(this,arguments);var d=new q(this,l(c.axis,{index:this[a].length,isX:!1}));this.isDirtyLegend=!0;this.axes.forEach(function(a){a.series=[]});this.series.forEach(function(a){a.bindAxes();a.isDirtyData=!0});h(c.redraw,!0)&&this.redraw(c.animation);return d}}function u(){this.elem.attr("fill",
603
- r(this.start).tweenTo(r(this.end),this.pos),void 0,!0)}function E(){this.elem.attr("stroke",r(this.start).tweenTo(r(this.end),this.pos),void 0,!0)}var m=[],q;a.compose=function(a,c,d,h,k){q||(q=a);-1===m.indexOf(c)&&(m.push(c),a=c.prototype,a.collectionsWithUpdate.push("colorAxis"),a.collectionsWithInit.colorAxis=[a.addColorAxis],D(c,"afterGetAxes",b),x(c));-1===m.indexOf(d)&&(m.push(d),c=d.prototype,c.fillSetter=u,c.strokeSetter=E);-1===m.indexOf(h)&&(m.push(h),D(h,"afterGetAllItems",g),D(h,"afterColorizeItem",
604
- v),D(h,"afterUpdate",y));-1===m.indexOf(k)&&(m.push(k),t(k.prototype,w),t(k.prototype.pointClass.prototype,z),D(k,"afterTranslate",f),D(k,"bindAxes",B))}})(b||(b={}));return b});I(a,"Core/Axis/Color/ColorAxisDefaults.js",[a["Core/Color/Palette.js"]],function(a){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:a.neutralColor40},labels:{overflow:"justify",rotation:0},minColor:a.highlightColor10,
605
- maxColor:a.highlightColor100,tickLength:5,showInLegend:!0}});I(a,"Core/Axis/Color/ColorAxis.js",[a["Core/Axis/Axis.js"],a["Core/Color/Color.js"],a["Core/Axis/Color/ColorAxisComposition.js"],a["Core/Axis/Color/ColorAxisDefaults.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w,D,t){var l=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=
606
- b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function f(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}(),h=v.parse,d=z.noop,b=D.series,g=t.extend,p=t.isNumber,k=t.merge,r=t.pick;v=function(a){function f(b,d){var f=a.call(this,b,d)||this;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;
607
- f.visible=!0;f.init(b,d);return f}l(f,a);f.compose=function(a,b,d,g){A.compose(f,a,b,d,g)};f.prototype.init=function(b,d){var g=b.options.legend||{},h=d.layout?"vertical"!==d.layout:"vertical"!==g.layout,m=d.visible;g=k(f.defaultColorAxisOptions,d,{showEmpty:!1,title:null,visible:g.enabled&&!1!==m});this.coll="colorAxis";this.side=d.side||h?2:1;this.reversed=d.reversed||!h;this.opposite=!h;a.prototype.init.call(this,b,g);this.userOptions.visible=m;d.dataClasses&&this.initDataClasses(d);this.initStops();
608
- this.horiz=h;this.zoomEnabled=!1};f.prototype.initDataClasses=function(a){var b=this.chart,d=this.options,f=a.dataClasses.length,g,l=0,e=b.options.chart.colorCount;this.dataClasses=g=[];this.legendItems=[];(a.dataClasses||[]).forEach(function(a,n){a=k(a);g.push(a);if(b.styledMode||!a.color)"category"===d.dataClassColor?(b.styledMode||(n=b.options.colors,e=n.length,a.color=n[l]),a.colorIndex=l,l++,l===e&&(l=0)):a.color=h(d.minColor).tweenTo(h(d.maxColor),2>f?.5:n/(f-1))})};f.prototype.hasData=function(){return!!(this.tickPositions||
609
- []).length};f.prototype.setTickPositions=function(){if(!this.dataClasses)return a.prototype.setTickPositions.call(this)};f.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(a){a.color=h(a[1])})};f.prototype.setOptions=function(b){a.prototype.setOptions.call(this,b);this.options.crosshair=this.options.marker};f.prototype.setAxisSize=function(){var a=this.legendSymbol,b=this.chart,d=b.options.legend||{},g,
610
- h;a?(this.left=d=a.attr("x"),this.top=g=a.attr("y"),this.width=h=a.attr("width"),this.height=a=a.attr("height"),this.right=b.chartWidth-d-h,this.bottom=b.chartHeight-g-a,this.len=this.horiz?h:a,this.pos=this.horiz?d:g):this.len=(this.horiz?d.symbolWidth:d.symbolHeight)||f.defaultLegendLength};f.prototype.normalizedValue=function(a){this.logarithmic&&(a=this.logarithmic.log2lin(a));return 1-(this.max-a)/(this.max-this.min||1)};f.prototype.toColor=function(a,b){var d=this.dataClasses,f=this.stops,g;
611
- if(d)for(g=d.length;g--;){var h=d[g];var e=h.from;f=h.to;if(("undefined"===typeof e||a>=e)&&("undefined"===typeof f||a<=f)){var c=h.color;b&&(b.dataClass=g,b.colorIndex=h.colorIndex);break}}else{a=this.normalizedValue(a);for(g=f.length;g--&&!(a>f[g][0]););e=f[g]||f[g+1];f=f[g+1]||e;a=1-(f[0]-a)/(f[0]-e[0]||1);c=e.color.tweenTo(f.color,a)}return c};f.prototype.getOffset=function(){var b=this.legendGroup,d=this.chart.axisOffset[this.side];b&&(this.axisParent=b,a.prototype.getOffset.call(this),this.added||
612
- (this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=d)};f.prototype.setLegendColor=function(){var a=this.reversed,b=a?1:0;a=a?0:1;b=this.horiz?[b,0,a,0]:[0,a,0,b];this.legendColor={linearGradient:{x1:b[0],y1:b[1],x2:b[2],y2:b[3]},stops:this.stops}};f.prototype.drawLegendSymbol=function(a,b){var d=a.padding,g=a.options,h=this.horiz,k=r(g.symbolWidth,h?f.defaultLegendLength:12),e=r(g.symbolHeight,h?12:f.defaultLegendLength),c=r(g.labelPadding,h?16:30);g=r(g.itemDistance,
613
- 10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,k,e).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=k+d+(h?g:c);this.legendItemHeight=e+d+(h?c:0)};f.prototype.setState=function(a){this.series.forEach(function(b){b.setState(a)})};f.prototype.setVisible=function(){};f.prototype.getSeriesExtremes=function(){var a=this.series,d=a.length,f;this.dataMin=Infinity;for(this.dataMax=-Infinity;d--;){var g=a[d];var h=g.colorKey=r(g.options.colorKey,g.colorKey,g.pointValKey,
614
- g.zoneAxis,"y");var k=g.pointArrayMap;var e=g[h+"Min"]&&g[h+"Max"];if(g[h+"Data"])var c=g[h+"Data"];else if(k){c=[];k=k.indexOf(h);var n=g.yData;if(0<=k&&n)for(f=0;f<n.length;f++)c.push(r(n[f][k],n[f]))}else c=g.yData;e?(g.minColorValue=g[h+"Min"],g.maxColorValue=g[h+"Max"]):(c=b.prototype.getExtremes.call(g,c),g.minColorValue=c.dataMin,g.maxColorValue=c.dataMax);"undefined"!==typeof g.minColorValue&&(this.dataMin=Math.min(this.dataMin,g.minColorValue),this.dataMax=Math.max(this.dataMax,g.maxColorValue));
615
- e||b.prototype.applyExtremes.call(g)}};f.prototype.drawCrosshair=function(b,d){var f=d&&d.plotX,g=d&&d.plotY,h=this.pos,k=this.len;if(d){var e=this.toPixels(d.getNestedProperty(d.series.colorKey));e<h?e=h-2:e>h+k&&(e=h+k+2);d.plotX=e;d.plotY=this.len-e;a.prototype.drawCrosshair.call(this,b,d);d.plotX=f;d.plotY=g;this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.chart.styledMode||
616
- "object"!==typeof this.crosshair||this.cross.attr({fill:this.crosshair.color}))}};f.prototype.getPlotLinePath=function(b){var d=this.left,f=b.translatedValue,g=this.top;return p(f)?this.horiz?[["M",f-4,g-6],["L",f+4,g-6],["L",f,g],["Z"]]:[["M",d,f],["L",d-6,f+6],["L",d-6,f-6],["Z"]]:a.prototype.getPlotLinePath.call(this,b)};f.prototype.update=function(b,d){var f=this.chart.legend;this.series.forEach(function(a){a.isDirtyData=!0});(b.dataClasses&&f.allItems||this.dataClasses)&&this.destroyItems();
617
- a.prototype.update.call(this,b,d);this.legendItem&&(this.setLegendColor(),f.colorizeItem(this,!0))};f.prototype.destroyItems=function(){var a=this.chart;this.legendItem?a.legend.destroyItem(this):this.legendItems&&this.legendItems.forEach(function(b){a.legend.destroyItem(b)});a.isDirtyLegend=!0};f.prototype.destroy=function(){this.chart.isDirtyLegend=!0;this.destroyItems();a.prototype.destroy.apply(this,[].slice.call(arguments))};f.prototype.remove=function(b){this.destroyItems();a.prototype.remove.call(this,
618
- b)};f.prototype.getDataClassLegendSymbols=function(){var a=this,b=a.chart,f=a.legendItems,h=b.options.legend,k=h.valueDecimals,l=h.valueSuffix||"",e;f.length||a.dataClasses.forEach(function(c,h){var n=c.from,m=c.to,p=b.numberFormatter,q=!0;e="";"undefined"===typeof n?e="< ":"undefined"===typeof m&&(e="> ");"undefined"!==typeof n&&(e+=p(n,k)+l);"undefined"!==typeof n&&"undefined"!==typeof m&&(e+=" - ");"undefined"!==typeof m&&(e+=p(m,k)+l);f.push(g({chart:b,name:e,options:{},drawLegendSymbol:w.drawRectangle,
619
- visible:!0,setState:d,isDataClass:!0,setVisible:function(){q=a.visible=!q;a.series.forEach(function(a){a.points.forEach(function(a){a.dataClass===h&&a.setVisible(q)})});b.legend.colorizeItem(this,q)}},c))});return f};f.defaultColorAxisOptions=y;f.defaultLegendLength=200;f.keepProps=["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"];return f}(a);Array.prototype.push.apply(a.keepProps,v.keepProps);"";return v});I(a,"Mixins/ColorMapSeries.js",[a["Core/Globals.js"],a["Core/Series/Point.js"],
620
- a["Core/Utilities.js"]],function(a,v,A){var r=A.defined;A=A.addEvent;var z=a.noop;a=a.seriesTypes;A(v,"afterSetState",function(a){this.moveToTopOnHover&&this.graphic&&this.graphic.attr({zIndex:a&&"hover"===a.state?1:0})});return{colorMapPointMixin:{dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value}},colorMapSeriesMixin:{pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],trackerGroups:["group","markerGroup",
621
- "dataLabelsGroup"],getSymbol:z,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:a.column.prototype.pointAttribs,colorAttribs:function(a){var w={};!r(a.color)||a.state&&"normal"!==a.state||(w[this.colorProp||"fill"]=a.color);return w}}}});I(a,"Maps/MapNavigationOptionsDefault.js",[a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,v){v=v.extend;var r={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",
622
- 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};v(a.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});return a.defaultOptions.mapNavigation=r});I(a,"Maps/MapNavigation.js",[a["Core/Chart/Chart.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v,A){function r(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&
623
- a.stopPropagation(),a.cancelBubble=!0)}function z(a){this.init(a)}var w=v.doc,D=A.addEvent,t=A.extend,l=A.merge,h=A.objectEach,d=A.pick;z.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};z.prototype.update=function(a){var b=this.chart,p=b.options.mapNavigation,k,w,v,f,B=function(a){this.handler.call(b,a);r(a)},x=b.mapNavButtons;a&&(p=b.options.mapNavigation=l(b.options.mapNavigation,a));for(;x.length;)x.pop().destroy();d(p.enableButtons,p.enabled)&&!b.renderer.forExport&&h(p.buttons,function(a,
624
- d){a=l(p.buttonOptions,a);!b.styledMode&&a.theme&&(k=a.theme,k.style=l(a.theme.style,a.style),v=(w=k.states)&&w.hover,f=w&&w.select,delete k.states);var g=b.renderer.button(a.text||"",0,0,B,k,v,f,void 0,"zoomIn"===d?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[d]).attr({width:a.width,height:a.height,title:b.options.lang[d],padding:a.padding,zIndex:5}).add();g.handler=a.onclick;D(g.element,"dblclick",r);x.push(g);t(a,{width:g.width,
625
- height:2*g.height});if(b.hasLoaded)g.align(a,!1,a.alignTo);else var h=D(b,"load",function(){g.element&&g.align(a,!1,a.alignTo);h()})});this.updateEvents(p)};z.prototype.updateEvents=function(a){var b=this.chart;d(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||D(b.container,"dblclick",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());d(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=
626
- this.unbindMouseWheel||D(b.container,void 0!==w.onwheel?"wheel":void 0!==w.onmousewheel?"mousewheel":"DOMMouseScroll",function(a){b.pointer.inClass(a.target,"highcharts-no-mousewheel")||(b.pointer.onContainerMouseWheel(a),r(a));return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};t(a.prototype,{fitToBox:function(a,d){[["x","width"],["y","height"]].forEach(function(b){var g=b[0];b=b[1];a[g]+a[b]>d[g]+d[b]&&(a[b]>d[b]?(a[b]=d[b],a[g]=d[g]):a[g]=d[g]+d[b]-a[b]);a[b]>d[b]&&
627
- (a[b]=d[b]);a[g]<d[g]&&(a[g]=d[g])});return a},mapZoom:function(a,g,h,k,l,t){var b=this.xAxis[0],p=b.max-b.min,r=d(g,b.min+p/2),u=p*a;p=this.yAxis[0];var w=p.max-p.min,m=d(h,p.min+w/2);w*=a;r=this.fitToBox({x:r-u*(k?(k-b.pos)/b.len:.5),y:m-w*(l?(l-p.pos)/p.len:.5),width:u,height:w},{x:b.dataMin,y:p.dataMin,width:b.dataMax-b.dataMin,height:p.dataMax-p.dataMin});u=r.x<=b.dataMin&&r.width>=b.dataMax-b.dataMin&&r.y<=p.dataMin&&r.height>=p.dataMax-p.dataMin;k&&b.mapAxis&&(b.mapAxis.fixTo=[k-b.pos,g]);
628
- l&&p.mapAxis&&(p.mapAxis.fixTo=[l-p.pos,h]);"undefined"===typeof a||u?(b.setExtremes(void 0,void 0,!1),p.setExtremes(void 0,void 0,!1)):(b.setExtremes(r.x,r.x+r.width,!1),p.setExtremes(r.y,r.y+r.height,!1));this.redraw(t)}});D(a,"beforeRender",function(){this.mapNavigation=new z(this);this.mapNavigation.update()});v.MapNavigation=z});I(a,"Maps/MapPointer.js",[a["Core/Pointer.js"],a["Core/Utilities.js"]],function(a,v){var r=v.extend,y=v.pick;v=v.wrap;var z=0,w;r(a.prototype,{onContainerDblClick:function(a){var t=
629
- this.chart;a=this.normalize(a);t.options.mapNavigation.enableDoubleClickZoomTo?t.pointer.inClass(a.target,"highcharts-tracker")&&t.hoverPoint&&t.hoverPoint.zoomTo():t.isInsidePlot(a.chartX-t.plotLeft,a.chartY-t.plotTop)&&t.mapZoom(.5,t.xAxis[0].toValue(a.chartX),t.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var t=this.chart;a=this.normalize(a);var l=a.deltaY||a.detail||-(a.wheelDelta/120);1<=Math.abs(l)&&(z+=Math.abs(l),w&&clearTimeout(w),w=setTimeout(function(){z=
630
- 0},50));10>z&&t.isInsidePlot(a.chartX-t.plotLeft,a.chartY-t.plotTop)&&t.mapZoom(Math.pow(t.options.mapNavigation.mouseWheelSensitivity,l),t.xAxis[0].toValue(a.chartX),t.yAxis[0].toValue(a.chartY),a.chartX,a.chartY,1>Math.abs(l)?!1:void 0)}});v(a.prototype,"zoomOption",function(a){var t=this.chart.options.mapNavigation;y(t.enableTouchZoom,t.enabled)&&(this.chart.options.chart.pinchType="xy");a.apply(this,[].slice.call(arguments,1))});v(a.prototype,"pinchTranslate",function(a,t,l,h,d,b,g){a.call(this,
631
- t,l,h,d,b,g);"map"===this.chart.options.chart.type&&this.hasZoom&&(a=h.scaleX>h.scaleY,this.pinchTranslateDirection(!a,t,l,h,d,b,g,a?h.scaleX:h.scaleY))})});I(a,"Maps/MapSymbols.js",[a["Core/Renderer/SVG/SVGRenderer.js"]],function(a){function r(a,r,v,w,D,t,l,h){return[["M",a+D,r],["L",a+v-t,r],["C",a+v-t/2,r,a+v,r+t/2,a+v,r+t],["L",a+v,r+w-l],["C",a+v,r+w-l/2,a+v-l/2,r+w,a+v-l,r+w],["L",a+h,r+w],["C",a+h/2,r+w,a,r+w-h/2,a,r+w-h],["L",a,r+D],["C",a,r+D/2,a+D/2,r,a+D,r],["Z"]]}a=a.prototype.symbols;
632
- a.bottombutton=function(a,v,z,w,D){D=D&&D.r||0;return r(a-1,v-1,z,w,0,0,D,D)};a.topbutton=function(a,v,z,w,D){D=D&&D.r||0;return r(a-1,v-1,z,w,D,D,0,0)};return a});I(a,"Core/Chart/MapChart.js",[a["Core/Chart/Chart.js"],a["Core/DefaultOptions.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,v,A,y){var r=this&&this.__extends||function(){var a=function(h,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&
633
- (a[b]=d[b])};return a(h,d)};return function(h,d){function b(){this.constructor=h}a(h,d);h.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),w=v.getOptions,D=y.merge,t=y.pick;a=function(a){function h(){return null!==a&&a.apply(this,arguments)||this}r(h,a);h.prototype.init=function(d,b){var g={endOnTick:!1,visible:!1,minPadding:0,maxPadding:0,startOnTick:!1},h=w().credits;d=D({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:t(h.mapText,' \u00a9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),
634
- mapTextFull:t(h.mapTextFull,"{geojson.copyright}")},tooltip:{followTouchMove:!1},xAxis:g,yAxis:D(g,{reversed:!0})},d,{chart:{inverted:!1,alignTicks:!1}});a.prototype.init.call(this,d,b)};return h}(a);(function(a){a.maps={};a.mapChart=function(h,d,b){return new a(h,d,b)};a.splitPath=function(a){"string"===typeof a&&(a=a.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,""),a=a.split(/[ ,;]+/).map(function(a){return/[A-za-z]/.test(a)?a:parseFloat(a)}));return A.prototype.pathToSegments(a)}})(a||
635
- (a={}));return a});I(a,"Series/Map/MapPoint.js",[a["Mixins/ColorMapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A){var r=this&&this.__extends||function(){var a=function(r,t){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,h){a.__proto__=h}||function(a,h){for(var d in h)h.hasOwnProperty(d)&&(a[d]=h[d])};return a(r,t)};return function(r,t){function l(){this.constructor=r}a(r,t);r.prototype=null===t?Object.create(t):(l.prototype=t.prototype,
636
- new l)}}();a=a.colorMapPointMixin;var z=A.extend;v=function(a){function w(){var r=null!==a&&a.apply(this,arguments)||this;r.options=void 0;r.path=void 0;r.series=void 0;return r}r(w,a);w.prototype.applyOptions=function(r,l){var h=this.series;r=a.prototype.applyOptions.call(this,r,l);l=h.joinBy;h.mapData&&h.mapMap&&(l=a.prototype.getNestedProperty.call(r,l[1]),(l="undefined"!==typeof l&&h.mapMap[l])?(h.xyFromShape&&(r.x=l._midX,r.y=l._midY),z(r,l)):r.value=r.value||null);return r};w.prototype.onMouseOver=
637
- function(r){A.clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)a.prototype.onMouseOver.call(this,r);else this.series.onMouseOut(r)};w.prototype.zoomTo=function(){var a=this.series;a.xAxis.setExtremes(this._minX,this._maxX,!1);a.yAxis.setExtremes(this._minY,this._maxY,!1);a.chart.redraw()};return w}(v.seriesTypes.scatter.prototype.pointClass);z(v.prototype,{dataLabelOnNull:a.dataLabelOnNull,isValid:a.isValid,moveToTopOnHover:a.moveToTopOnHover});return v});
638
- I(a,"Series/Map/MapSeries.js",[a["Mixins/ColorMapSeries.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Chart/MapChart.js"],a["Series/Map/MapPoint.js"],a["Core/Color/Palette.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w,D,t,l,h){var d=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,
639
- b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function c(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)}}();a=a.colorMapSeriesMixin;var b=v.noop,g=y.maps,p=y.splitPath;y=t.seriesTypes;var k=y.column,r=y.scatter;y=h.extend;var G=h.fireEvent,f=h.getNestedProperty,B=h.isArray,x=h.isNumber,u=h.merge,E=h.objectEach,m=h.pick,q=h.splat;h=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.baseTrans=
640
- void 0;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.transformGroup=void 0;return b}d(b,a);b.prototype.animate=function(a){var b=this.options.animation,c=this.group,d=this.xAxis,e=this.yAxis,f=d.pos,g=e.pos;this.chart.renderer.isSVG&&(!0===b&&(b={duration:1E3}),a?c.attr({translateX:f+d.len/2,translateY:g+e.len/2,scaleX:.001,scaleY:.001}):c.animate({translateX:f,translateY:g,scaleX:1,scaleY:1},b))};b.prototype.animateDrilldown=function(a){var b=this.chart.plotBox,
641
- c=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],d=c.bBox,e=this.chart.options.drilldown.animation;a||(a=Math.min(d.width/b.width,d.height/b.height),c.shapeArgs={scaleX:a,scaleY:a,translateX:d.x,translateY:d.y},this.points.forEach(function(a){a.graphic&&a.graphic.attr(c.shapeArgs).animate({scaleX:1,scaleY:1,translateX:0,translateY:0},e)}))};b.prototype.animateDrillupFrom=function(a){k.prototype.animateDrillupFrom.call(this,a)};b.prototype.animateDrillupTo=function(a){k.prototype.animateDrillupTo.call(this,
642
- a)};b.prototype.doFullTranslate=function(){return this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.baseTrans};b.prototype.drawMapDataLabels=function(){D.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};b.prototype.drawPoints=function(){var a=this,b=a.xAxis,c=a.yAxis,d=a.group,e=a.chart,f=e.renderer,g=this.baseTrans;a.transformGroup||(a.transformGroup=f.g().attr({scaleX:1,scaleY:1}).add(d),a.transformGroup.survive=!0);
643
- if(a.doFullTranslate())e.hasRendered&&!e.styledMode&&a.points.forEach(function(b){b.shapeArgs&&(b.shapeArgs.fill=a.pointAttribs(b,b.state).fill)}),a.group=a.transformGroup,k.prototype.drawPoints.apply(a),a.group=d,a.points.forEach(function(b){if(b.graphic){var c="";b.name&&(c+="highcharts-name-"+b.name.replace(/ /g,"-").toLowerCase());b.properties&&b.properties["hc-key"]&&(c+=" highcharts-key-"+b.properties["hc-key"].toLowerCase());c&&b.graphic.addClass(c);e.styledMode&&b.graphic.css(a.pointAttribs(b,
644
- b.selected&&"select"||void 0))}}),this.baseTrans={originX:b.min-b.minPixelPadding/b.transA,originY:c.min-c.minPixelPadding/c.transA+(c.reversed?0:c.len/c.transA),transAX:b.transA,transAY:c.transA},this.transformGroup.animate({translateX:0,translateY:0,scaleX:1,scaleY:1});else{var h=b.transA/g.transAX;var l=c.transA/g.transAY;var p=b.toPixels(g.originX,!0);var q=c.toPixels(g.originY,!0);.99<h&&1.01>h&&.99<l&&1.01>l&&(l=h=1,p=Math.round(p),q=Math.round(q));var u=this.transformGroup;if(e.renderer.globalAnimation){var r=
645
- u.attr("translateX");var t=u.attr("translateY");var w=u.attr("scaleX");var v=u.attr("scaleY");u.attr({animator:0}).animate({animator:1},{step:function(a,b){u.attr({translateX:r+(p-r)*b.pos,translateY:t+(q-t)*b.pos,scaleX:w+(h-w)*b.pos,scaleY:v+(l-v)*b.pos})}})}else u.attr({translateX:p,translateY:q,scaleX:h,scaleY:l})}e.styledMode||d.element.setAttribute("stroke-width",m(a.options[a.pointAttrToOptions&&a.pointAttrToOptions["stroke-width"]||"borderWidth"],1)/(h||1));this.drawMapDataLabels()};b.prototype.getBox=
646
- function(a){var b=Number.MAX_VALUE,c=-b,d=b,e=-b,f=b,g=b,h=this.xAxis,k=this.yAxis,n;(a||[]).forEach(function(a){if(a.path){"string"===typeof a.path?a.path=p(a.path):"M"===a.path[0]&&(a.path=l.prototype.pathToSegments(a.path));var h=a.path||[],k=-b,q=b,u=-b,r=b,t=a.properties;a._foundBox||(h.forEach(function(a){var b=a[a.length-2];a=a[a.length-1];"number"===typeof b&&"number"===typeof a&&(q=Math.min(q,b),k=Math.max(k,b),r=Math.min(r,a),u=Math.max(u,a))}),a._midX=q+(k-q)*m(a.middleX,t&&t["hc-middle-x"],
647
- .5),a._midY=r+(u-r)*m(a.middleY,t&&t["hc-middle-y"],.5),a._maxX=k,a._minX=q,a._maxY=u,a._minY=r,a.labelrank=m(a.labelrank,(k-q)*(u-r)),a._foundBox=!0);c=Math.max(c,a._maxX);d=Math.min(d,a._minX);e=Math.max(e,a._maxY);f=Math.min(f,a._minY);g=Math.min(a._maxX-a._minX,a._maxY-a._minY,g);n=!0}});n&&(this.minY=Math.min(f,m(this.minY,b)),this.maxY=Math.max(e,m(this.maxY,-b)),this.minX=Math.min(d,m(this.minX,b)),this.maxX=Math.max(c,m(this.maxX,-b)),h&&"undefined"===typeof h.options.minRange&&(h.minRange=
648
- Math.min(5*g,(this.maxX-this.minX)/5,h.minRange||b)),k&&"undefined"===typeof k.options.minRange&&(k.minRange=Math.min(5*g,(this.maxY-this.minY)/5,k.minRange||b)))};b.prototype.getExtremes=function(){var a=D.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);x(b)&&(this.valueMin=b);x(a)&&(this.valueMax=a);return{dataMin:this.minY,dataMax:this.maxY}};b.prototype.hasData=function(){return!!this.processedXData.length};
649
- b.prototype.pointAttribs=function(a,b){b=a.series.chart.styledMode?this.colorAttribs(a):k.prototype.pointAttribs.call(this,a,b);b["stroke-width"]=m(a.options[this.pointAttrToOptions&&this.pointAttrToOptions["stroke-width"]||"borderWidth"],"inherit");return b};b.prototype.render=function(){var a=this,b=D.prototype.render;a.chart.renderer.isVML&&3E3<a.data.length?setTimeout(function(){b.call(a)}):b.call(a)};b.prototype.setData=function(a,b,c,d){var e=this.options,h=this.chart.options.chart,k=h&&h.map,
650
- l=e.mapData,m=this.joinBy,n=e.keys||this.pointArrayMap,p=[],q={},r=this.chart.mapTransforms;!l&&k&&(l="string"===typeof k?g[k]:k);a&&a.forEach(function(b,c){var d=0;if(x(b))a[c]={value:b};else if(B(b)){a[c]={};!e.keys&&b.length>n.length&&"string"===typeof b[0]&&(a[c]["hc-key"]=b[0],++d);for(var f=0;f<n.length;++f,++d)n[f]&&"undefined"!==typeof b[d]&&(0<n[f].indexOf(".")?z.prototype.setNestedProperty(a[c],b[d],n[f]):a[c][n[f]]=b[d])}m&&"_i"===m[0]&&(a[c]._i=c)});this.getBox(a);(this.chart.mapTransforms=
651
- r=h.mapTransforms||l&&l["hc-transform"]||r)&&E(r,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});if(l){"FeatureCollection"===l.type&&(this.mapTitle=l.title,l=v.geojson(l,this.type,this));this.mapData=l;this.mapMap={};for(r=0;r<l.length;r++)h=l[r],k=h.properties,h._i=r,m[0]&&k&&k[m[0]]&&(h[m[0]]=k[m[0]]),q[h[m[0]]]=h;this.mapMap=q;if(a&&m[1]){var t=m[1];a.forEach(function(a){a=f(t,a);q[a]&&p.push(q[a])})}if(e.allAreas){this.getBox(l);a=a||[];if(m[1]){var w=
652
- m[1];a.forEach(function(a){p.push(f(w,a))})}p="|"+p.map(function(a){return a&&a[m[0]]}).join("|")+"|";l.forEach(function(b){m[0]&&-1!==p.indexOf("|"+b[m[0]]+"|")||(a.push(u(b,{value:null})),d=!1)})}else this.getBox(p)}D.prototype.setData.call(this,a,b,c,d)};b.prototype.setOptions=function(a){a=D.prototype.setOptions.call(this,a);var b=a.joinBy;null===b&&(b="_i");b=this.joinBy=q(b);b[1]||(b[1]=b[0]);return a};b.prototype.translate=function(){var a=this,b=a.xAxis,c=a.yAxis,d=a.doFullTranslate();a.generatePoints();
653
- a.data.forEach(function(e){x(e._midX)&&x(e._midY)&&(e.plotX=b.toPixels(e._midX,!0),e.plotY=c.toPixels(e._midY,!0));d&&(e.shapeType="path",e.shapeArgs={d:a.translatePath(e.path)})});G(a,"afterTranslate")};b.prototype.translatePath=function(a){var b=this.xAxis,c=this.yAxis,d=b.min,e=b.transA,f=b.minPixelPadding,g=c.min,h=c.transA,k=c.minPixelPadding,l=[];a&&a.forEach(function(a){"M"===a[0]?l.push(["M",(a[1]-(d||0))*e+f,(a[2]-(g||0))*h+k]):"L"===a[0]?l.push(["L",(a[1]-(d||0))*e+f,(a[2]-(g||0))*h+k]):
654
- "C"===a[0]?l.push(["C",(a[1]-(d||0))*e+f,(a[2]-(g||0))*h+k,(a[3]-(d||0))*e+f,(a[4]-(g||0))*h+k,(a[5]-(d||0))*e+f,(a[6]-(g||0))*h+k]):"Q"===a[0]?l.push(["Q",(a[1]-(d||0))*e+f,(a[2]-(g||0))*h+k,(a[3]-(d||0))*e+f,(a[4]-(g||0))*h+k]):"Z"===a[0]&&l.push(["Z"])});return l};b.defaultOptions=u(r.defaultOptions,{animation:!1,dataLabels:{crop:!1,formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return x(b)?a(b,-1):""},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},marker:null,
655
- nullColor:w.neutralColor3,stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:w.neutralColor20,borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:w.neutralColor20},inactive:{opacity:1}}});return b}(r);y(h.prototype,{type:"map",axisTypes:a.axisTypes,colorAttribs:a.colorAttribs,colorKey:a.colorKey,directTouch:!0,drawDataLabels:b,drawGraph:b,drawLegendSymbol:A.drawRectangle,
656
- forceDL:!0,getExtremesFromAll:!0,getSymbol:a.getSymbol,parallelArrays:a.parallelArrays,pointArrayMap:a.pointArrayMap,pointClass:z,preserveAspectRatio:!0,searchPoint:b,trackerGroups:a.trackerGroups,useMapGeometry:!0});t.registerSeriesType("map",h);"";return h});I(a,"Series/MapLine/MapLineSeries.js",[a["Series/Map/MapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A){var r=this&&this.__extends||function(){var a=function(l,h){a=Object.setPrototypeOf||{__proto__:[]}instanceof
657
- Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(l,h)};return function(l,h){function d(){this.constructor=l}a(l,h);l.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)}}(),z=v.series,w=A.extend,D=A.merge;A=function(t){function l(){var a=null!==t&&t.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}r(l,t);l.prototype.pointAttribs=function(h,d){h=a.prototype.pointAttribs.call(this,h,d);h.fill=
658
- this.options.fillColor;return h};l.defaultOptions=D(a.defaultOptions,{lineWidth:1,fillColor:"none"});return l}(a);w(A.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:z.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}});v.registerSeriesType("mapline",A);"";return A});I(a,"Series/MapPoint/MapPointPoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v){var r=this&&this.__extends||function(){var a=function(r,v){a=Object.setPrototypeOf||
659
- {__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var h in l)l.hasOwnProperty(h)&&(a[h]=l[h])};return a(r,v)};return function(r,v){function t(){this.constructor=r}a(r,v);r.prototype=null===v?Object.create(v):(t.prototype=v.prototype,new t)}}(),y=v.merge;return function(a){function w(){var r=null!==a&&a.apply(this,arguments)||this;r.options=void 0;r.series=void 0;return r}r(w,a);w.prototype.applyOptions=function(r,t){r="undefined"!==typeof r.lat&&"undefined"!==typeof r.lon?
660
- y(r,this.series.chart.fromLatLonToPoint(r)):r;return a.prototype.applyOptions.call(this,r,t)};return w}(a.seriesTypes.scatter.prototype.pointClass)});I(a,"Series/MapPoint/MapPointSeries.js",[a["Series/MapPoint/MapPointPoint.js"],a["Core/Color/Palette.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y){var r=this&&this.__extends||function(){var a=function(h,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&
661
- (a[b]=d[b])};return a(h,d)};return function(h,d){function b(){this.constructor=h}a(h,d);h.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),w=A.seriesTypes.scatter,D=y.extend,t=y.merge;y=function(a){function h(){var d=null!==a&&a.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}r(h,a);h.prototype.drawDataLabels=function(){a.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};h.defaultOptions=
662
- t(w.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:v.neutralColor100}}});return h}(w);D(y.prototype,{type:"mappoint",forceDL:!0,pointClass:a});A.registerSeriesType("mappoint",y);"";return y});I(a,"Series/Bubble/BubbleLegendDefaults.js",[a["Core/Color/Palette.js"]],function(a){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,
663
- enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:a.neutralColor100},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}});I(a,"Series/Bubble/BubbleLegendItem.js",[a["Core/Color/Color.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v,A,y){var r=a.parse,w=A.noop,
664
- D=y.arrayMax,t=y.arrayMin,l=y.isNumber,h=y.merge,d=y.pick,b=y.stableSort;"";return function(){function a(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=w;this.init(a,b)}a.prototype.init=function(a,b){this.options=a;this.visible=!0;this.chart=b.chart;this.legend=b};a.prototype.addToLegend=function(a){a.splice(this.options.legendIndex,
665
- 0,this)};a.prototype.drawLegendSymbol=function(a){var g=this.chart,h=this.options,p=d(a.options.itemDistance,20),f=h.ranges,r=h.connectorDistance;this.fontMetrics=g.renderer.fontMetrics(h.labels.style.fontSize);f&&f.length&&l(f[0].value)?(b(f,function(a,b){return b.value-a.value}),this.ranges=f,this.setOptions(),this.render(),a=this.getMaxLabelSize(),f=this.ranges[0].radius,g=2*f,r=r-f+a.width,r=0<r?r:0,this.maxLabel=a,this.movementX="left"===h.labels.align?r:0,this.legendItemWidth=g+r+p,this.legendItemHeight=
666
- g+this.fontMetrics.h/2):a.options.bubbleLegend.autoRanges=!0};a.prototype.setOptions=function(){var a=this.ranges,b=this.options,g=this.chart.series[b.seriesIndex],l=this.legend.baseline,f={zIndex:b.zIndex,"stroke-width":b.borderWidth},t={zIndex:b.zIndex,"stroke-width":b.connectorWidth},w={align:this.legend.options.rtl||"left"===b.labels.align?"right":"left",zIndex:b.zIndex},u=g.options.marker.fillOpacity,v=this.chart.styledMode;a.forEach(function(k,p){v||(f.stroke=d(k.borderColor,b.borderColor,g.color),
667
- f.fill=d(k.color,b.color,1!==u?r(g.color).setOpacity(u).get("rgba"):g.color),t.stroke=d(k.connectorColor,b.connectorColor,g.color));a[p].radius=this.getRangeRadius(k.value);a[p]=h(a[p],{center:a[0].radius-a[p].radius+l});v||h(!0,a[p],{bubbleAttribs:h(f),connectorAttribs:h(t),labelAttribs:w})},this)};a.prototype.getRangeRadius=function(a){var b=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,b.ranges[b.ranges.length-1].value,b.ranges[0].value,b.minSize,b.maxSize,
668
- a)};a.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);this.hideOverlappingLabels()};a.prototype.renderRange=
669
- function(a){var b=this.options,d=b.labels,g=this.chart,f=g.series[b.seriesIndex],h=g.renderer,l=this.symbols;g=l.labels;var p=a.center,r=Math.abs(a.radius),m=b.connectorDistance||0,q=d.align,e=b.connectorWidth,c=this.ranges[0].radius||0,n=p-r-b.borderWidth/2+e/2,t=this.fontMetrics;t=t.f/2-(t.h-t.f)/2;var w=h.styledMode;m=this.legend.options.rtl||"left"===q?-m:m;"center"===q&&(m=0,b.connectorDistance=0,a.labelAttribs.align="center");q=n+b.labels.y;var v=c+m+b.labels.x;l.bubbleItems.push(h.circle(c,
670
- p+((n%1?1:.5)-(e%2?0:.5)),r).attr(w?{}:a.bubbleAttribs).addClass((w?"highcharts-color-"+f.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(b.className||"")).add(this.legendSymbol));l.connectors.push(h.path(h.crispLine([["M",c,n],["L",c+m,n]],b.connectorWidth)).attr(w?{}:a.connectorAttribs).addClass((w?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(b.connectorClassName||"")).add(this.legendSymbol));a=h.text(this.formatLabel(a),v,q+t).attr(w?{}:a.labelAttribs).css(w?
671
- {}:d.style).addClass("highcharts-bubble-legend-labels "+(b.labels.className||"")).add(this.legendSymbol);g.push(a);a.placed=!0;a.alignAttr={x:v,y:q+t}};a.prototype.getMaxLabelSize=function(){var a,b;this.symbols.labels.forEach(function(d){b=d.getBBox(!0);a=a?b.width>a.width?b:a:b});return a||{}};a.prototype.formatLabel=function(a){var b=this.options,d=b.labels.formatter;b=b.labels.format;var g=this.chart.numberFormatter;return b?v.format(b,a):d?d.call(a):g(a.value,1)};a.prototype.hideOverlappingLabels=
672
- function(){var a=this.chart,b=this.symbols;!this.options.labels.allowOverlap&&b&&(a.hideOverlappingLabels(b.labels),b.labels.forEach(function(a,d){a.newOpacity?a.newOpacity!==a.oldOpacity&&b.connectors[d].show():b.connectors[d].hide()}))};a.prototype.getRanges=function(){var a=this.legend.bubbleLegend,b=a.options.ranges,g,r=Number.MAX_VALUE,f=-Number.MAX_VALUE;a.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&(g=a.zData.filter(l),g.length&&(r=d(a.options.zMin,Math.min(r,Math.max(t(g),
673
- !1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),f=d(a.options.zMax,Math.max(f,D(g)))))});var w=r===f?[{value:f}]:[{value:r},{value:(r+f)/2},{value:f,autoRanges:!0}];b.length&&b[0].radius&&w.reverse();w.forEach(function(a,d){b&&b[d]&&(w[d]=h(b[d],a))});return w};a.prototype.predictBubbleSizes=function(){var a=this.chart,b=this.fontMetrics,d=a.legend.options,g="horizontal"===d.layout,f=g?a.legend.lastLineHeight:0,h=a.plotSizeX,l=a.plotSizeY,r=a.series[this.options.seriesIndex];
674
- a=Math.ceil(r.minPxSize);var t=Math.ceil(r.maxPxSize),m=Math.min(l,h);r=r.options.maxSize;if(d.floating||!/%$/.test(r))b=t;else if(r=parseFloat(r),b=(m+f-b.h/2)*r/100/(r/100+1),g&&l-b>=h||!g&&h-b>=l)b=t;return[a,Math.ceil(b)]};a.prototype.updateRanges=function(a,b){var d=this.legend.options.bubbleLegend;d.minSize=a;d.maxSize=b;d.ranges=this.getRanges()};a.prototype.correctSizes=function(){var a=this.legend,b=this.chart.series[this.options.seriesIndex];1<Math.abs(Math.ceil(b.maxPxSize)-this.options.maxSize)&&
675
- (this.updateRanges(this.options.minSize,b.maxPxSize),a.render())};return a}()});I(a,"Series/Bubble/BubbleLegendComposition.js",[a["Series/Bubble/BubbleLegendDefaults.js"],a["Series/Bubble/BubbleLegendItem.js"],a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,v,A,y){var r=A.setOptions,w=y.addEvent,D=y.objectEach,t=y.wrap,l;(function(h){function d(a,d,h){var f=this.legend,k=0<=b(this);if(f&&f.options.enabled&&f.bubbleLegend&&f.options.bubbleLegend.autoRanges&&k){var l=f.bubbleLegend.options;
676
- k=f.bubbleLegend.predictBubbleSizes();f.bubbleLegend.updateRanges(k[0],k[1]);l.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();l.placed||(a.setScale(),a.updateNames(),D(a.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});l.placed=!0;this.getMargins();a.call(this,d,h);f.bubbleLegend.correctSizes();z(f,g(f))}else a.call(this,d,h),f&&f.options.enabled&&f.bubbleLegend&&(f.render(),
677
- z(f,g(f)))}function b(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 g(a){a=a.allItems;var b=[],d=a.length,f,g=0;for(f=0;f<d;f++)if(a[f].legendItemHeight&&(a[f].itemHeight=a[f].legendItemHeight),a[f]===a[d-1]||a[f+1]&&a[f]._legendItemPos[1]!==a[f+1]._legendItemPos[1]){b.push({height:0});var h=b[b.length-1];for(g;g<=f;g++)a[g].itemHeight>h.height&&(h.height=a[g].itemHeight);h.step=f}return b}function l(a){var d=this.bubbleLegend,
678
- f=this.options,g=f.bubbleLegend,h=b(this.chart);d&&d.ranges&&d.ranges.length&&(g.ranges.length&&(g.autoRanges=!!g.ranges[0].autoRanges),this.destroyItem(d));0<=h&&f.enabled&&g.enabled&&(g.seriesIndex=h,this.bubbleLegend=new v(g,this),this.bubbleLegend.addToLegend(a.allItems))}function k(){var a=this.chart,d=this.visible,g=this.chart.legend;g&&g.bubbleLegend&&(this.visible=!d,this.ignoreSeries=d,a=0<=b(a),g.bubbleLegend.visible!==a&&(g.update({bubbleLegend:{enabled:a}}),g.bubbleLegend.visible=a),this.visible=
679
- d)}function z(a,b){var d=a.options.rtl,f,g,h,k=0;a.allItems.forEach(function(a,c){f=a.legendGroup.translateX;g=a._legendItemPos[1];if((h=a.movementX)||d&&a.ranges)h=d?f-a.options.maxSize/2:f+h,a.legendGroup.attr({translateX:h});c>b[k].step&&k++;a.legendGroup.attr({translateY:Math.round(g+b[k].height/2)});a._legendItemPos[1]=g+b[k].height/2})}var y=[];h.compose=function(b,g,h){-1===y.indexOf(b)&&(y.push(b),r({legend:{bubbleLegend:a}}),t(b.prototype,"drawChartBox",d));-1===y.indexOf(g)&&(y.push(g),
680
- w(g,"afterGetAllItems",l));-1===y.indexOf(h)&&(y.push(h),w(h,"legendItemClick",k))}})(l||(l={}));return l});I(a,"Series/Bubble/BubblePoint.js",[a["Core/Series/Point.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A){var r=this&&this.__extends||function(){var a=function(r,v){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var h in l)l.hasOwnProperty(h)&&(a[h]=l[h])};return a(r,v)};return function(r,v){function t(){this.constructor=
681
- r}a(r,v);r.prototype=null===v?Object.create(v):(t.prototype=v.prototype,new t)}}();A=A.extend;v=function(v){function w(){var a=null!==v&&v.apply(this,arguments)||this;a.options=void 0;a.series=void 0;return a}r(w,v);w.prototype.haloPath=function(r){return a.prototype.haloPath.call(this,0===r?0:(this.marker?this.marker.radius||0:0)+r)};return w}(v.seriesTypes.scatter.prototype.pointClass);A(v.prototype,{ttBelow:!1});return v});I(a,"Series/Bubble/BubbleSeries.js",[a["Core/Axis/Axis.js"],a["Series/Bubble/BubbleLegendComposition.js"],
682
- a["Series/Bubble/BubblePoint.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w,D,t){var l=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function f(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):
683
- (f.prototype=d.prototype,new f)}}(),h=y.parse;y=z.noop;var d=D.seriesTypes;z=d.column;var b=d.scatter,g=t.arrayMax,p=t.arrayMin,k=t.clamp,r=t.extend,G=t.isNumber,f=t.merge,B=t.pick,x=t.pInt;t=function(a){function d(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.maxPxSize=void 0;b.minPxSize=void 0;b.options=void 0;b.points=void 0;b.radii=void 0;b.yData=void 0;b.zData=void 0;return b}l(d,a);d.prototype.animate=function(a){!a&&this.points.length<this.options.animationLimit&&this.points.forEach(function(a){var b=
684
- 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)};d.prototype.getRadii=function(a,b,d){var c=this.zData,e=this.yData,f=d.minPxSize,g=d.maxPxSize,h=[];var k=0;for(d=c.length;k<d;k++){var l=c[k];h.push(this.getRadius(a,b,f,g,l,e[k]))}this.radii=h};d.prototype.getRadius=function(a,b,d,c,f,g){var e=this.options,h="width"!==e.sizeBy,k=e.zThreshold,l=b-a,m=.5;if(null===g||null===f)return null;if(G(f)){e.sizeByAbsoluteValue&&
685
- (f=Math.abs(f-k),l=Math.max(b-k,Math.abs(a-k)),a=0);if(f<a)return d/2-1;0<l&&(m=(f-a)/l)}h&&0<=m&&(m=Math.sqrt(m));return Math.ceil(d+m*(c-d))/2};d.prototype.hasData=function(){return!!this.processedXData.length};d.prototype.pointAttribs=function(a,b){var d=this.options.marker.fillOpacity;a=w.prototype.pointAttribs.call(this,a,b);1!==d&&(a.fill=h(a.fill).setOpacity(d).get("rgba"));return a};d.prototype.translate=function(){var b,d=this.data,e=this.radii;a.prototype.translate.call(this);for(b=d.length;b--;){var c=
686
- d[b];var f=e?e[b]:0;G(f)&&f>=this.minPxSize/2?(c.marker=r(c.marker,{radius:f,width:2*f,height:2*f}),c.dlBox={x:c.plotX-f,y:c.plotY-f,width:2*f,height:2*f}):c.shapeArgs=c.plotY=c.dlBox=void 0}};d.compose=v.compose;d.defaultOptions=f(b.defaultOptions,{dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.z;return G(b)?a(b,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},
687
- 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 d}(b);r(t.prototype,{alignDataLabel:z.prototype.alignDataLabel,applyZones:y,bubblePadding:!0,buildKDTree:y,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:A,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});a.prototype.beforePadding=
688
- function(){var a=this,b=this.len,d=this.chart,f=0,e=b,c=this.isXAxis,h=c?"xData":"yData",l=this.min,r={},t=Math.min(d.plotWidth,d.plotHeight),v=Number.MAX_VALUE,w=-Number.MAX_VALUE,y=this.max-l,z=b/y,A=[];this.series.forEach(function(b){var e=b.options;!b.bubblePadding||!b.visible&&d.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,A.push(b),c&&(["minSize","maxSize"].forEach(function(a){var b=e[a],c=/%$/.test(b);b=x(b);r[a]=c?t*b/100:b}),b.minPxSize=r.minSize,b.maxPxSize=Math.max(r.maxSize,
689
- r.minSize),b=b.zData.filter(G),b.length&&(v=B(e.zMin,k(p(b),!1===e.displayNegative?e.zThreshold:-Number.MAX_VALUE,v)),w=B(e.zMax,Math.max(w,g(b))))))});A.forEach(function(b){var d=b[h],g=d.length;c&&b.getRadii(v,w,b);if(0<y)for(;g--;)if(G(d[g])&&a.dataMin<=d[g]&&d[g]<=a.max){var k=b.radii?b.radii[g]:0;f=Math.min((d[g]-l)*z-k,f);e=Math.max((d[g]-l)*z+k,e)}});A.length&&0<y&&!this.logarithmic&&(e-=b,z*=(b+Math.max(0,f)-Math.min(e,b))/b,[["min","userMin",f],["max","userMax",e]].forEach(function(b){"undefined"===
690
- typeof B(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/z)}))};D.registerSeriesType("bubble",t);"";"";return t});I(a,"Series/MapBubble/MapBubblePoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v){var r=this&&this.__extends||function(){var a=function(r,l){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(r,l)};return function(r,l){function h(){this.constructor=r}a(r,
691
- l);r.prototype=null===l?Object.create(l):(h.prototype=l.prototype,new h)}}(),y=a.seriesTypes,z=y.map;a=v.extend;var w=v.merge;v=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}r(t,a);t.prototype.applyOptions=function(l,h){return l&&"undefined"!==typeof l.lat&&"undefined"!==typeof l.lon?a.prototype.applyOptions.call(this,w(l,this.series.chart.fromLatLonToPoint(l)),h):z.prototype.pointClass.prototype.applyOptions.call(this,l,h)};t.prototype.isValid=function(){return"number"===
692
- typeof this.z};return t}(y.bubble.prototype.pointClass);a(v.prototype,{ttBelow:!1});return v});I(a,"Series/MapBubble/MapBubbleSeries.js",[a["Series/Bubble/BubbleSeries.js"],a["Series/MapBubble/MapBubblePoint.js"],a["Series/Map/MapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A,y,z){var r=this&&this.__extends||function(){var a=function(h,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&
693
- (a[b]=d[b])};return a(h,d)};return function(h,d){function b(){this.constructor=h}a(h,d);h.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),D=z.extend,t=z.merge;z=function(l){function h(){var a=null!==l&&l.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}r(h,l);h.compose=a.compose;h.defaultOptions=t(a.defaultOptions,{animationLimit:500,tooltip:{pointFormat:"{point.name}: {point.z}"}});return h}(a);D(z.prototype,{type:"mapbubble",getBox:A.prototype.getBox,
694
- pointArrayMap:["z"],pointClass:v,setData:A.prototype.setData,setOptions:A.prototype.setOptions,xyFromShape:!0});y.registerSeriesType("mapbubble",z);"";return z});I(a,"Series/Heatmap/HeatmapPoint.js",[a["Mixins/ColorMapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,v,A){var r=this&&this.__extends||function(){var a=function(l,h){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&
695
- (a[d]=b[d])};return a(l,h)};return function(l,h){function d(){this.constructor=l}a(l,h);l.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)}}();a=a.colorMapPointMixin;var z=A.clamp,w=A.extend,D=A.pick;v=function(a){function l(){var h=null!==a&&a.apply(this,arguments)||this;h.options=void 0;h.series=void 0;h.value=void 0;h.x=void 0;h.y=void 0;return h}r(l,a);l.prototype.applyOptions=function(h,d){h=a.prototype.applyOptions.call(this,h,d);h.formatPrefix=h.isNull||null===h.value?"null":
696
- "point";return h};l.prototype.getCellAttributes=function(){var a=this.series,d=a.options,b=(d.colsize||1)/2,g=(d.rowsize||1)/2,l=a.xAxis,k=a.yAxis,r=this.options.marker||a.options.marker;a=a.pointPlacementToXValue();var t=D(this.pointPadding,d.pointPadding,0),f={x1:z(Math.round(l.len-(l.translate(this.x-b,!1,!0,!1,!0,-a)||0)),-l.len,2*l.len),x2:z(Math.round(l.len-(l.translate(this.x+b,!1,!0,!1,!0,-a)||0)),-l.len,2*l.len),y1:z(Math.round(k.translate(this.y-g,!1,!0,!1,!0)||0),-k.len,2*k.len),y2:z(Math.round(k.translate(this.y+
697
- g,!1,!0,!1,!0)||0),-k.len,2*k.len)};[["width","x"],["height","y"]].forEach(function(a){var b=a[0];a=a[1];var d=a+"1",g=a+"2",h=Math.abs(f[d]-f[g]),k=r&&r.lineWidth||0,e=Math.abs(f[d]+f[g])/2;r[b]&&r[b]<h&&(f[d]=e-r[b]/2-k/2,f[g]=e+r[b]/2+k/2);t&&("y"===a&&(d=g,g=a+"1"),f[d]+=t,f[g]-=t)});return f};l.prototype.haloPath=function(a){if(!a)return[];var d=this.shapeArgs;return["M",d.x-a,d.y-a,"L",d.x-a,d.y+d.height+a,d.x+d.width+a,d.y+d.height+a,d.x+d.width+a,d.y-a,"Z"]};l.prototype.isValid=function(){return Infinity!==
698
- this.value&&-Infinity!==this.value};return l}(v.seriesTypes.scatter.prototype.pointClass);w(v.prototype,{dataLabelOnNull:a.dataLabelOnNull,moveToTopOnHover:a.moveToTopOnHover});return v});I(a,"Series/Heatmap/HeatmapSeries.js",[a["Core/Color/Color.js"],a["Mixins/ColorMapSeries.js"],a["Series/Heatmap/HeatmapPoint.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Color/Palette.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,v,A,y,z,w,D,t){var l=
699
- this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return a(b,d)};return function(b,d){function f(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(f.prototype=d.prototype,new f)}}();v=v.colorMapSeriesMixin;var h=w.series,d=w.seriesTypes,b=d.column,g=d.scatter,p=D.prototype.symbols,k=t.extend,r=t.fireEvent,G=t.isNumber,f=t.merge,B=
700
- t.pick;D=function(b){function d(){var a=null!==b&&b.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}l(d,b);d.prototype.drawPoints=function(){var a=this;if((this.options.marker||{}).enabled||this._hasPointMarkers)h.prototype.drawPoints.call(this),this.points.forEach(function(b){b.graphic&&(b.graphic[a.chart.styledMode?"css":"animate"](a.colorAttribs(b)),a.options.borderRadius&&b.graphic.attr({r:a.options.borderRadius}),
701
- null===b.value&&b.graphic.addClass("highcharts-null-point"))})};d.prototype.getExtremes=function(){var a=h.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;G(b)&&(this.valueMin=b);G(a)&&(this.valueMax=a);return h.prototype.getExtremes.call(this)};d.prototype.getValidPoints=function(a,b){return h.prototype.getValidPoints.call(this,a,b,!0)};d.prototype.hasData=function(){return!!this.processedXData.length};d.prototype.init=function(){h.prototype.init.apply(this,arguments);var a=
702
- this.options;a.pointRange=B(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1;p.ellipse=p.circle};d.prototype.markerAttribs=function(a,b){var d=a.marker||{},e=this.options.marker||{},c=a.shapeArgs||{},f={};if(a.hasImage)return{x:a.plotX,y:a.plotY};if(b){var g=e.states[b]||{};var h=d.states&&d.states[b]||{};[["width","x"],["height","y"]].forEach(function(a){f[a[0]]=(h[a[0]]||g[a[0]]||c[a[0]])+(h[a[0]+"Plus"]||g[a[0]+"Plus"]||0);f[a[1]]=c[a[1]]+(c[a[0]]-f[a[0]])/2})}return b?f:c};d.prototype.pointAttribs=
703
- function(b,d){var g=h.prototype.pointAttribs.call(this,b,d),e=this.options||{},c=this.chart.options.plotOptions||{},k=c.series||{},l=c.heatmap||{};c=b&&b.options.borderColor||e.borderColor||l.borderColor||k.borderColor;k=b&&b.options.borderWidth||e.borderWidth||l.borderWidth||k.borderWidth||g["stroke-width"];g.stroke=b&&b.marker&&b.marker.lineColor||e.marker&&e.marker.lineColor||c||this.color;g["stroke-width"]=k;d&&(b=f(e.states[d],e.marker&&e.marker.states[d],b&&b.options.states&&b.options.states[d]||
704
- {}),d=b.brightness,g.fill=b.color||a.parse(g.fill).brighten(d||0).get(),g.stroke=b.lineColor);return g};d.prototype.setClip=function(a){var b=this.chart;h.prototype.setClip.apply(this,arguments);(!1!==this.options.clip||a)&&this.markerGroup.clip((a||this.clipBox)&&this.sharedClipKey?b.sharedClips[this.sharedClipKey]:b.clipRect)};d.prototype.translate=function(){var a=this.options,b=a.marker&&a.marker.symbol||"rect",d=p[b]?b:"rect",e=-1!==["circle","square"].indexOf(d);this.generatePoints();this.points.forEach(function(a){var c=
705
- a.getCellAttributes(),g={};g.x=Math.min(c.x1,c.x2);g.y=Math.min(c.y1,c.y2);g.width=Math.max(Math.abs(c.x2-c.x1),0);g.height=Math.max(Math.abs(c.y2-c.y1),0);var h=a.hasImage=0===(a.marker&&a.marker.symbol||b||"").indexOf("url");if(e){var l=Math.abs(g.width-g.height);g.x=Math.min(c.x1,c.x2)+(g.width<g.height?0:l/2);g.y=Math.min(c.y1,c.y2)+(g.width<g.height?l/2:0);g.width=g.height=Math.min(g.width,g.height)}l={plotX:(c.x1+c.x2)/2,plotY:(c.y1+c.y2)/2,clientX:(c.x1+c.x2)/2,shapeType:"path",shapeArgs:f(!0,
706
- g,{d:p[d](g.x,g.y,g.width,g.height)})};h&&(a.marker={width:g.width,height:g.height});k(a,l)});r(this,"afterTranslate")};d.defaultOptions=f(g.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:z.neutralColor3,dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return G(b)?a(b,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:{symbol:"rect",radius:0,lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,
707
- pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}}});return d}(g);k(D.prototype,{alignDataLabel:b.prototype.alignDataLabel,axisTypes:v.axisTypes,colorAttribs:v.colorAttribs,colorKey:v.colorKey,directTouch:!0,drawLegendSymbol:y.drawRectangle,getExtremesFromAll:!0,getSymbol:h.prototype.getSymbol,parallelArrays:v.parallelArrays,pointArrayMap:["y","value"],pointClass:A,trackerGroups:v.trackerGroups});w.registerSeriesType("heatmap",D);
708
- "";"";return D});I(a,"Extensions/GeoJSON.js",[a["Core/Chart/Chart.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,v,A,y){function r(a,b){var d,h=!1,k=a.x,l=a.y;a=0;for(d=b.length-1;a<b.length;d=a++){var r=b[a][1]>l;var f=b[d][1]>l;r!==f&&k<(b[d][0]-b[a][0])*(l-b[a][1])/(b[d][1]-b[a][1])+b[a][0]&&(h=!h)}return h}var w=v.format,D=A.win,t=y.error,l=y.extend,h=y.merge;v=y.wrap;"";a.prototype.transformFromLatLon=function(a,b){var d=this.userOptions.chart&&this.userOptions.chart.proj4||
709
- D.proj4;if(!d)return t(21,!1,this),{x:0,y:null};a=d(b.crs,[a.lon,a.lat]);d=b.cosAngle||b.rotation&&Math.cos(b.rotation);var h=b.sinAngle||b.rotation&&Math.sin(b.rotation);a=b.rotation?[a[0]*d+a[1]*h,-a[0]*h+a[1]*d]:a;return{x:((a[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-a[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};a.prototype.transformToLatLon=function(a,b){if("undefined"===typeof D.proj4)t(21,!1,this);else{a={x:((a.x-
710
- (b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-a.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var d=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=D.proj4(b.crs,"WGS84",b.rotation?{x:a.x*d+a.y*-h,y:a.x*h+a.y*d}:a);return{lat:b.y,lon:b.x}}};a.prototype.fromPointToLatLon=function(a){var b=this.mapTransforms,d;if(b){for(d in b)if(Object.hasOwnProperty.call(b,d)&&b[d].hitZone&&r({x:a.x,y:-a.y},
711
- b[d].hitZone.coordinates[0]))return this.transformToLatLon(a,b[d]);return this.transformToLatLon(a,b["default"])}t(22,!1,this)};a.prototype.fromLatLonToPoint=function(a){var b=this.mapTransforms,d;if(!b)return t(22,!1,this),{x:0,y:null};for(d in b)if(Object.hasOwnProperty.call(b,d)&&b[d].hitZone){var h=this.transformFromLatLon(a,b[d]);if(r({x:h.x,y:-h.y},b[d].hitZone.coordinates[0]))return h}return this.transformFromLatLon(a,b["default"])};A.geojson=function(a,b,g){var d=[],h=[],r=function(a){a.forEach(function(a,
712
- b){0===b?h.push(["M",a[0],-a[1]]):h.push(["L",a[0],-a[1]])})};b=b||"map";a.features.forEach(function(a){var f=a.geometry,g=f.type;f=f.coordinates;a=a.properties;var k;h=[];"map"===b||"mapbubble"===b?("Polygon"===g?(f.forEach(r),h.push(["Z"])):"MultiPolygon"===g&&(f.forEach(function(a){a.forEach(r)}),h.push(["Z"])),h.length&&(k={path:h})):"mapline"===b?("LineString"===g?r(f):"MultiLineString"===g&&f.forEach(r),h.length&&(k={path:h})):"mappoint"===b&&"Point"===g&&(k={x:f[0],y:-f[1]});k&&d.push(l(k,
713
- {name:a.name||a.NAME,properties:a}))});g&&a.copyrightShort&&(g.chart.mapCredits=w(g.chart.options.credits.mapText,{geojson:a}),g.chart.mapCreditsFull=w(g.chart.options.credits.mapTextFull,{geojson:a}));return d};v(a.prototype,"addCredits",function(a,b){b=h(!0,this.options.credits,b);this.mapCredits&&(b.href=null);a.call(this,b);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})});I(a,"masters/modules/map.src.js",[a["Core/Globals.js"],a["Core/Axis/Color/ColorAxis.js"],
714
- a["Series/MapBubble/MapBubbleSeries.js"],a["Core/Chart/MapChart.js"]],function(a,v,A,y){a.ColorAxis=v;a.MapChart=y;a.mapChart=a.Map=y.mapChart;a.maps=y.maps;v.compose(a.Chart,a.Fx,a.Legend,a.Series);A.compose(a.Chart,a.Legend,a.Series)});I(a,"masters/highmaps.src.js",[a["masters/highcharts.src.js"]],function(a){a.product="Highmaps";return a});a["masters/highmaps.src.js"]._modules=a;return a["masters/highmaps.src.js"]});
8
+ 'use strict';(function(Z,F){"object"===typeof module&&module.exports?(F["default"]=F,module.exports=Z.document?F(Z):F):"function"===typeof define&&define.amd?define("highcharts/highmaps",function(){return F(Z)}):(Z.Highcharts&&Z.Highcharts.error(16,!0),Z.Highcharts=F(Z))})("undefined"!==typeof window?window:this,function(Z){function F(x,b,z,B){x.hasOwnProperty(b)||(x[b]=B.apply(null,z))}var b={};F(b,"Core/Globals.js",[],function(){var x="undefined"!==typeof Z?Z:"undefined"!==typeof window?window:
9
+ {},b;(function(b){b.SVG_NS="http://www.w3.org/2000/svg";b.product="Highcharts";b.version="9.3.0";b.win=x;b.doc=b.win.document;b.svg=b.doc&&b.doc.createElementNS&&!!b.doc.createElementNS(b.SVG_NS,"svg").createSVGRect;b.userAgent=b.win.navigator&&b.win.navigator.userAgent||"";b.isChrome=-1!==b.userAgent.indexOf("Chrome");b.isFirefox=-1!==b.userAgent.indexOf("Firefox");b.isMS=/(edge|msie|trident)/i.test(b.userAgent)&&!b.win.opera;b.isSafari=!b.isChrome&&-1!==b.userAgent.indexOf("Safari");b.isTouchDevice=
10
+ /(Mobile|Android|Windows Phone)/.test(b.userAgent);b.isWebKit=-1!==b.userAgent.indexOf("AppleWebKit");b.deg2rad=2*Math.PI/360;b.hasBidiBug=b.isFirefox&&4>parseInt(b.userAgent.split("Firefox/")[1],10);b.hasTouch=!!b.win.TouchEvent;b.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];b.noop=function(){};b.supportsPassiveEvents=function(){var x=!1;if(!b.isMS){var q=Object.defineProperty({},"passive",{get:function(){x=!0}});b.win.addEventListener&&b.win.removeEventListener&&(b.win.addEventListener("testPassive",
11
+ b.noop,q),b.win.removeEventListener("testPassive",b.noop,q))}return x}();b.charts=[];b.dateFormats={};b.seriesTypes={};b.symbolSizes={};b.chartCount=0})(b||(b={}));"";return b});F(b,"Core/Utilities.js",[b["Core/Globals.js"]],function(b){function x(a,c,l,f){var I=c?"Highcharts error":"Highcharts warning";32===a&&(a=I+": Deprecated member");var t=m(a),e=t?I+" #"+a+": www.highcharts.com/errors/"+a+"/":a.toString();if("undefined"!==typeof f){var Q="";t&&(e+="?");p(f,function(a,d){Q+="\n - "+d+": "+a;
12
+ t&&(e+=encodeURI(d)+"="+encodeURI(a))});e+=Q}n(b,"displayError",{chart:l,code:a,message:e,params:f},function(){if(c)throw Error(e);d.console&&-1===x.messages.indexOf(e)&&console.warn(e)});x.messages.push(e)}function z(a,d){var c={};p(a,function(l,f){if(E(a[f],!0)&&!a.nodeType&&d[f])l=z(a[f],d[f]),Object.keys(l).length&&(c[f]=l);else if(E(a[f])||a[f]!==d[f])c[f]=a[f]});return c}function B(a,d){return parseInt(a,d||10)}function w(a){return"string"===typeof a}function D(a){a=Object.prototype.toString.call(a);
13
+ return"[object Array]"===a||"[object Array Iterator]"===a}function E(a,d){return!!a&&"object"===typeof a&&(!d||!D(a))}function k(a){return E(a)&&"number"===typeof a.nodeType}function r(a){var d=a&&a.constructor;return!(!E(a,!0)||k(a)||!d||!d.name||"Object"===d.name)}function m(a){return"number"===typeof a&&!isNaN(a)&&Infinity>a&&-Infinity<a}function h(a){return"undefined"!==typeof a&&null!==a}function a(a,d,c){var f;w(d)?h(c)?a.setAttribute(d,c):a&&a.getAttribute&&((f=a.getAttribute(d))||"class"!==
14
+ d||(f=a.getAttribute(d+"Name"))):p(d,function(d,c){h(d)?a.setAttribute(c,d):a.removeAttribute(c)});return f}function c(a,d){var c;a||(a={});for(c in d)a[c]=d[c];return a}function e(){for(var a=arguments,d=a.length,c=0;c<d;c++){var f=a[c];if("undefined"!==typeof f&&null!==f)return f}}function g(a,d){b.isMS&&!b.svg&&d&&"undefined"!==typeof d.opacity&&(d.filter="alpha(opacity="+100*d.opacity+")");c(a.style,d)}function C(a,d,f,l,e){a=t.createElement(a);d&&c(a,d);e&&g(a,{padding:"0",border:"none",margin:"0"});
15
+ f&&g(a,f);l&&l.appendChild(a);return a}function v(a,d){return 1E14<a?a:parseFloat(a.toPrecision(d||14))}function u(a,c,f){var l=b.getStyle||u;if("width"===c)return c=Math.min(a.offsetWidth,a.scrollWidth),f=a.getBoundingClientRect&&a.getBoundingClientRect().width,f<c&&f>=c-1&&(c=Math.floor(f)),Math.max(0,c-(l(a,"padding-left",!0)||0)-(l(a,"padding-right",!0)||0));if("height"===c)return Math.max(0,Math.min(a.offsetHeight,a.scrollHeight)-(l(a,"padding-top",!0)||0)-(l(a,"padding-bottom",!0)||0));d.getComputedStyle||
16
+ x(27,!0);if(a=d.getComputedStyle(a,void 0)){var t=a.getPropertyValue(c);e(f,"opacity"!==c)&&(t=B(t))}return t}function p(a,d,c){for(var f in a)Object.hasOwnProperty.call(a,f)&&d.call(c||a[f],a[f],f,a)}function A(a,d,c){function f(d,c){var f=a.removeEventListener||b.removeEventListenerPolyfill;f&&f.call(a,d,c,!1)}function l(c){var l;if(a.nodeName){if(d){var t={};t[d]=!0}else t=c;p(t,function(a,d){if(c[d])for(l=c[d].length;l--;)f(d,c[d][l].fn)})}}var t="function"===typeof a&&a.prototype||a;if(Object.hasOwnProperty.call(t,
17
+ "hcEvents")){var e=t.hcEvents;d?(t=e[d]||[],c?(e[d]=t.filter(function(a){return c!==a.fn}),f(d,c)):(l(e),e[d]=[])):(l(e),delete t.hcEvents)}}function n(a,d,f,l){f=f||{};if(t.createEvent&&(a.dispatchEvent||a.fireEvent&&a!==b)){var e=t.createEvent("Events");e.initEvent(d,!0,!0);f=c(e,f);a.dispatchEvent?a.dispatchEvent(f):a.fireEvent(d,f)}else if(a.hcEvents){f.target||c(f,{preventDefault:function(){f.defaultPrevented=!0},target:a,type:d});e=[];for(var p=a,n=!1;p.hcEvents;)Object.hasOwnProperty.call(p,
18
+ "hcEvents")&&p.hcEvents[d]&&(e.length&&(n=!0),e.unshift.apply(e,p.hcEvents[d])),p=Object.getPrototypeOf(p);n&&e.sort(function(a,d){return a.order-d.order});e.forEach(function(d){!1===d.fn.call(a,f)&&f.preventDefault()})}l&&!f.defaultPrevented&&l.call(a,f)}var f=b.charts,t=b.doc,d=b.win;(x||(x={})).messages=[];var y;Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};var l=Array.prototype.find?function(a,d){return a.find(d)}:function(a,d){var c,f=a.length;for(c=0;c<f;c++)if(d(a[c],c))return a[c]};
19
+ p({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(a,d){b[d]=function(c){var f;x(32,!1,void 0,(f={},f["Highcharts."+d]="use Array."+a,f));return Array.prototype[a].apply(c,[].slice.call(arguments,1))}});var H,K=function(){var a=Math.random().toString(36).substring(2,9)+"-",d=0;return function(){return"highcharts-"+(H?"":a)+d++}}();d.jQuery&&(d.jQuery.fn.highcharts=function(){var d=[].slice.call(arguments);if(this[0])return d[0]?(new (b[w(d[0])?d.shift():"Chart"])(this[0],
20
+ d[0],d[1]),this):f[a(this[0],"data-highcharts-chart")]});l={addEvent:function(a,d,c,f){void 0===f&&(f={});var l="function"===typeof a&&a.prototype||a;Object.hasOwnProperty.call(l,"hcEvents")||(l.hcEvents={});l=l.hcEvents;b.Point&&a instanceof b.Point&&a.series&&a.series.chart&&(a.series.chart.runTrackerClick=!0);var e=a.addEventListener||b.addEventListenerPolyfill;e&&e.call(a,d,c,b.supportsPassiveEvents?{passive:void 0===f.passive?-1!==d.indexOf("touch"):f.passive,capture:!1}:!1);l[d]||(l[d]=[]);
21
+ l[d].push({fn:c,order:"number"===typeof f.order?f.order:Infinity});l[d].sort(function(a,d){return a.order-d.order});return function(){A(a,d,c)}},arrayMax:function(a){for(var d=a.length,c=a[0];d--;)a[d]>c&&(c=a[d]);return c},arrayMin:function(a){for(var d=a.length,c=a[0];d--;)a[d]<c&&(c=a[d]);return c},attr:a,clamp:function(a,d,c){return a>d?a<c?a:c:d},cleanRecursively:z,clearTimeout:function(a){h(a)&&clearTimeout(a)},correctFloat:v,createElement:C,css:g,defined:h,destroyObjectProperties:function(a,
22
+ d){p(a,function(c,f){c&&c!==d&&c.destroy&&c.destroy();delete a[f]})},discardElement:function(a){y||(y=C("div"));a&&y.appendChild(a);y.innerHTML=""},erase:function(a,d){for(var c=a.length;c--;)if(a[c]===d){a.splice(c,1);break}},error:x,extend:c,extendClass:function(a,d){var f=function(){};f.prototype=new a;c(f.prototype,d);return f},find:l,fireEvent:n,getMagnitude:function(a){return Math.pow(10,Math.floor(Math.log(a)/Math.LN10))},getNestedProperty:function(a,c){for(a=a.split(".");a.length&&h(c);){var f=
23
+ a.shift();if("undefined"===typeof f||"__proto__"===f)return;c=c[f];if(!h(c)||"function"===typeof c||"number"===typeof c.nodeType||c===d)return}return c},getStyle:u,inArray:function(a,d,c){x(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"});return d.indexOf(a,c)},isArray:D,isClass:r,isDOMElement:k,isFunction:function(a){return"function"===typeof a},isNumber:m,isObject:E,isString:w,keys:function(a){x(32,!1,void 0,{"Highcharts.keys":"use Object.keys"});return Object.keys(a)},merge:function(){var a,
24
+ d=arguments,c={},f=function(a,d){"object"!==typeof a&&(a={});p(d,function(c,l){"__proto__"!==l&&"constructor"!==l&&(!E(c,!0)||r(c)||k(c)?a[l]=d[l]:a[l]=f(a[l]||{},c))});return a};!0===d[0]&&(c=d[1],d=Array.prototype.slice.call(d,2));var l=d.length;for(a=0;a<l;a++)c=f(c,d[a]);return c},normalizeTickInterval:function(a,d,c,f,l){var t=a;c=e(c,1);var p=a/c;d||(d=l?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===f&&(1===c?d=d.filter(function(a){return 0===a%1}):.1>=c&&(d=[1/c])));for(f=0;f<d.length&&
25
+ !(t=d[f],l&&t*c>=a||!l&&p<=(d[f]+(d[f+1]||d[f]))/2);f++);return t=v(t*c,-Math.round(Math.log(.001)/Math.LN10))},objectEach:p,offset:function(a){var c=t.documentElement;a=a.parentElement||a.parentNode?a.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:a.top+(d.pageYOffset||c.scrollTop)-(c.clientTop||0),left:a.left+(d.pageXOffset||c.scrollLeft)-(c.clientLeft||0),width:a.width,height:a.height}},pad:function(a,d,c){return Array((d||2)+1-String(a).replace("-","").length).join(c||"0")+
26
+ a},pick:e,pInt:B,relativeLength:function(a,d,c){return/%$/.test(a)?d*parseFloat(a)/100+(c||0):parseFloat(a)},removeEvent:A,splat:function(a){return D(a)?a:[a]},stableSort:function(a,d){var c=a.length,f,l;for(l=0;l<c;l++)a[l].safeI=l;a.sort(function(a,c){f=d(a,c);return 0===f?a.safeI-c.safeI:f});for(l=0;l<c;l++)delete a[l].safeI},syncTimeout:function(a,d,c){if(0<d)return setTimeout(a,d,c);a.call(0,c);return-1},timeUnits:{millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,
27
+ year:314496E5},uniqueKey:K,useSerialIds:function(a){return H=e(a,H)},wrap:function(a,d,c){var f=a[d];a[d]=function(){var a=Array.prototype.slice.call(arguments),d=arguments,l=this;l.proceed=function(){f.apply(l,arguments.length?arguments:d)};a.unshift(f);a=c.apply(this,a);l.proceed=null;return a}}};"";return l});F(b,"Core/Chart/ChartDefaults.js",[],function(){return{panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,
28
+ 10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}});F(b,"Core/Color/Color.js",[b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,q){var x=q.isNumber,B=q.merge,w=q.pInt;q=function(){function q(x){this.rgba=[NaN,NaN,NaN,NaN];this.input=x;var k=b.Color;if(k&&k!==q)return new k(x);if(!(this instanceof q))return new q(x);this.init(x)}q.parse=function(b){return b?
29
+ new q(b):q.None};q.prototype.init=function(b){var k;if("object"===typeof b&&"undefined"!==typeof b.stops)this.stops=b.stops.map(function(a){return new q(a[1])});else if("string"===typeof b){this.input=b=q.names[b.toLowerCase()]||b;if("#"===b.charAt(0)){var r=b.length;var m=parseInt(b.substr(1),16);7===r?k=[(m&16711680)>>16,(m&65280)>>8,m&255,1]:4===r&&(k=[(m&3840)>>4|(m&3840)>>8,(m&240)>>4|m&240,(m&15)<<4|m&15,1])}if(!k)for(m=q.parsers.length;m--&&!k;){var h=q.parsers[m];(r=h.regex.exec(b))&&(k=h.parse(r))}}k&&
30
+ (this.rgba=k)};q.prototype.get=function(b){var k=this.input,r=this.rgba;if("object"===typeof k&&"undefined"!==typeof this.stops){var m=B(k);m.stops=[].slice.call(m.stops);this.stops.forEach(function(h,a){m.stops[a]=[m.stops[a][0],h.get(b)]});return m}return r&&x(r[0])?"rgb"===b||!b&&1===r[3]?"rgb("+r[0]+","+r[1]+","+r[2]+")":"a"===b?""+r[3]:"rgba("+r.join(",")+")":k};q.prototype.brighten=function(b){var k=this.rgba;if(this.stops)this.stops.forEach(function(m){m.brighten(b)});else if(x(b)&&0!==b)for(var r=
31
+ 0;3>r;r++)k[r]+=w(255*b),0>k[r]&&(k[r]=0),255<k[r]&&(k[r]=255);return this};q.prototype.setOpacity=function(b){this.rgba[3]=b;return this};q.prototype.tweenTo=function(b,k){var r=this.rgba,m=b.rgba;if(!x(r[0])||!x(m[0]))return b.input||"none";b=1!==m[3]||1!==r[3];return(b?"rgba(":"rgb(")+Math.round(m[0]+(r[0]-m[0])*(1-k))+","+Math.round(m[1]+(r[1]-m[1])*(1-k))+","+Math.round(m[2]+(r[2]-m[2])*(1-k))+(b?","+(m[3]+(r[3]-m[3])*(1-k)):"")+")"};q.names={white:"#ffffff",black:"#000000"};q.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,
32
+ parse:function(b){return[w(b[1]),w(b[2]),w(b[3]),parseFloat(b[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(b){return[w(b[1]),w(b[2]),w(b[3]),1]}}];q.None=new q("");return q}();"";return q});F(b,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}});F(b,"Core/Time.js",[b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,q){var x=b.win,B=q.defined,w=
33
+ q.error,D=q.extend,E=q.isObject,k=q.merge,r=q.objectEach,m=q.pad,h=q.pick,a=q.splat,c=q.timeUnits,e=b.isSafari&&x.Intl&&x.Intl.DateTimeFormat.prototype.formatRange,g=b.isSafari&&x.Intl&&!x.Intl.DateTimeFormat.prototype.formatRange;q=function(){function C(a){this.options={};this.variableTimezone=this.useUTC=!1;this.Date=x.Date;this.getTimezoneOffset=this.timezoneOffsetFunction();this.update(a)}C.prototype.get=function(a,c){if(this.variableTimezone||this.timezoneOffset){var e=c.getTime(),g=e-this.getTimezoneOffset(c);
34
+ c.setTime(g);a=c["getUTC"+a]();c.setTime(e);return a}return this.useUTC?c["getUTC"+a]():c["get"+a]()};C.prototype.set=function(a,c,p){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===a||"Seconds"===a||"Minutes"===a&&0===this.getTimezoneOffset(c)%36E5)return c["setUTC"+a](p);var g=this.getTimezoneOffset(c);g=c.getTime()-g;c.setTime(g);c["setUTC"+a](p);a=this.getTimezoneOffset(c);g=c.getTime()+a;return c.setTime(g)}return this.useUTC||e&&"FullYear"===a?c["setUTC"+a](p):c["set"+a](p)};
35
+ C.prototype.update=function(a){var c=h(a&&a.useUTC,!0);this.options=a=k(!0,this.options||{},a);this.Date=a.Date||x.Date||Date;this.timezoneOffset=(this.useUTC=c)&&a.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();this.variableTimezone=c&&!(!a.getTimezoneOffset&&!a.timezone)};C.prototype.makeTime=function(a,c,e,A,n,f){if(this.useUTC){var t=this.Date.UTC.apply(0,arguments);var d=this.getTimezoneOffset(t);t+=d;var p=this.getTimezoneOffset(t);d!==p?t+=p-d:d-36E5!==this.getTimezoneOffset(t-
36
+ 36E5)||g||(t-=36E5)}else t=(new this.Date(a,c,h(e,1),h(A,0),h(n,0),h(f,0))).getTime();return t};C.prototype.timezoneOffsetFunction=function(){var a=this,c=this.options,e=c.moment||x.moment;if(!this.useUTC)return function(a){return 6E4*(new Date(a.toString())).getTimezoneOffset()};if(c.timezone){if(e)return function(a){return 6E4*-e.tz(a,c.timezone).utcOffset()};w(25)}return this.useUTC&&c.getTimezoneOffset?function(a){return 6E4*c.getTimezoneOffset(a.valueOf())}:function(){return 6E4*(a.timezoneOffset||
37
+ 0)}};C.prototype.dateFormat=function(a,c,e){if(!B(c)||isNaN(c))return b.defaultOptions.lang&&b.defaultOptions.lang.invalidDate||"";a=h(a,"%Y-%m-%d %H:%M:%S");var p=this,n=new this.Date(c),f=this.get("Hours",n),t=this.get("Day",n),d=this.get("Date",n),g=this.get("Month",n),l=this.get("FullYear",n),u=b.defaultOptions.lang,v=u&&u.weekdays,C=u&&u.shortWeekdays;n=D({a:C?C[t]:v[t].substr(0,3),A:v[t],d:m(d),e:m(d,2," "),w:t,b:u.shortMonths[g],B:u.months[g],m:m(g+1),o:g+1,y:l.toString().substr(2,2),Y:l,H:m(f),
38
+ k:f,I:m(f%12||12),l:f%12||12,M:m(this.get("Minutes",n)),p:12>f?"AM":"PM",P:12>f?"am":"pm",S:m(n.getSeconds()),L:m(Math.floor(c%1E3),3)},b.dateFormats);r(n,function(d,f){for(;-1!==a.indexOf("%"+f);)a=a.replace("%"+f,"function"===typeof d?d.call(p,c):d)});return e?a.substr(0,1).toUpperCase()+a.substr(1):a};C.prototype.resolveDTLFormat=function(c){return E(c,!0)?c:(c=a(c),{main:c[0],from:c[1],to:c[2]})};C.prototype.getTimeTicks=function(a,e,p,g){var n=this,f=[],t={},d=new n.Date(e),y=a.unitRange,l=a.count||
39
+ 1,A;g=h(g,1);if(B(e)){n.set("Milliseconds",d,y>=c.second?0:l*Math.floor(n.get("Milliseconds",d)/l));y>=c.second&&n.set("Seconds",d,y>=c.minute?0:l*Math.floor(n.get("Seconds",d)/l));y>=c.minute&&n.set("Minutes",d,y>=c.hour?0:l*Math.floor(n.get("Minutes",d)/l));y>=c.hour&&n.set("Hours",d,y>=c.day?0:l*Math.floor(n.get("Hours",d)/l));y>=c.day&&n.set("Date",d,y>=c.month?1:Math.max(1,l*Math.floor(n.get("Date",d)/l)));if(y>=c.month){n.set("Month",d,y>=c.year?0:l*Math.floor(n.get("Month",d)/l));var u=n.get("FullYear",
40
+ d)}y>=c.year&&n.set("FullYear",d,u-u%l);y===c.week&&(u=n.get("Day",d),n.set("Date",d,n.get("Date",d)-u+g+(u<g?-7:0)));u=n.get("FullYear",d);g=n.get("Month",d);var v=n.get("Date",d),C=n.get("Hours",d);e=d.getTime();!n.variableTimezone&&n.useUTC||!B(p)||(A=p-e>4*c.month||n.getTimezoneOffset(e)!==n.getTimezoneOffset(p));e=d.getTime();for(d=1;e<p;)f.push(e),e=y===c.year?n.makeTime(u+d*l,0):y===c.month?n.makeTime(u,g+d*l):!A||y!==c.day&&y!==c.week?A&&y===c.hour&&1<l?n.makeTime(u,g,v,C+d*l):e+y*l:n.makeTime(u,
41
+ g,v+d*l*(y===c.day?1:7)),d++;f.push(e);y<=c.hour&&1E4>f.length&&f.forEach(function(a){0===a%18E5&&"000000000"===n.dateFormat("%H%M%S%L",a)&&(t[a]="day")})}f.info=D(a,{higherRanks:t,totalRange:y*l});return f};C.prototype.getDateFormat=function(a,e,p,g){var n=this.dateFormat("%m-%d %H:%M:%S.%L",e),f={millisecond:15,second:12,minute:9,hour:6,day:3},t="millisecond";for(d in c){if(a===c.week&&+this.dateFormat("%w",e)===p&&"00:00:00.000"===n.substr(6)){var d="week";break}if(c[d]>a){d=t;break}if(f[d]&&n.substr(f[d])!==
42
+ "01-01 00:00:00.000".substr(f[d]))break;"week"!==d&&(t=d)}if(d)var y=this.resolveDTLFormat(g[d]).main;return y};return C}();"";return q});F(b,"Core/DefaultOptions.js",[b["Core/Chart/ChartDefaults.js"],b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Color/Palettes.js"],b["Core/Time.js"],b["Core/Utilities.js"]],function(b,q,z,B,w,D){q=q.parse;var x=D.merge,k={colors:B.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),
43
+ shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:b,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},
44
+ caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},
45
+ itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:z.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",
46
+ minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:z.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:q("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,
47
+ style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};k.chart.styledMode=!1;"";var r=new w(x(k.global,k.time));b={defaultOptions:k,defaultTime:r,getOptions:function(){return k},setOptions:function(m){x(!0,k,m);if(m.time||m.global)z.time?z.time.update(x(k.global,k.time,
48
+ m.global,m.time)):z.time=r;return k}};"";return b});F(b,"Core/Animation/Fx.js",[b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,q,z){var x=b.parse,w=q.win,D=z.isNumber,E=z.objectEach;return function(){function k(k,m,h){this.pos=NaN;this.options=m;this.elem=k;this.prop=h}k.prototype.dSetter=function(){var k=this.paths,m=k&&k[0];k=k&&k[1];var h=this.now||0,a=[];if(1!==h&&m&&k)if(m.length===k.length&&1>h)for(var c=0;c<k.length;c++){for(var e=m[c],g=k[c],C=[],v=0;v<g.length;v++){var u=
49
+ e[v],p=g[v];D(u)&&D(p)&&("A"!==g[0]||4!==v&&5!==v)?C[v]=u+h*(p-u):C[v]=p}a.push(C)}else a=k;else a=this.toD||[];this.elem.attr("d",a,void 0,!0)};k.prototype.update=function(){var k=this.elem,m=this.prop,h=this.now,a=this.options.step;if(this[m+"Setter"])this[m+"Setter"]();else k.attr?k.element&&k.attr(m,h,null,!0):k.style[m]=h+this.unit;a&&a.call(k,h,this)};k.prototype.run=function(b,m,h){var a=this,c=a.options,e=function(c){return e.stopped?!1:a.step(c)},g=w.requestAnimationFrame||function(a){setTimeout(a,
50
+ 13)},C=function(){for(var a=0;a<k.timers.length;a++)k.timers[a]()||k.timers.splice(a--,1);k.timers.length&&g(C)};b!==m||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=b,this.end=m,this.unit=h,this.now=this.start,this.pos=0,e.elem=this.elem,e.prop=this.prop,e()&&1===k.timers.push(e)&&g(C)):(delete c.curAnim[this.prop],c.complete&&0===Object.keys(c.curAnim).length&&c.complete.call(this.elem))};k.prototype.step=function(k){var m=+new Date,h=this.options,a=this.elem,c=h.complete,
51
+ e=h.duration,g=h.curAnim;if(a.attr&&!a.element)k=!1;else if(k||m>=e+this.startTime){this.now=this.end;this.pos=1;this.update();var C=g[this.prop]=!0;E(g,function(a){!0!==a&&(C=!1)});C&&c&&c.call(a);k=!1}else this.pos=h.easing((m-this.startTime)/e),this.now=this.start+(this.end-this.start)*this.pos,this.update(),k=!0;return k};k.prototype.initPath=function(k,m,h){function a(a,c){for(;a.length<A;){var f=a[0],d=c[A-a.length];d&&"M"===f[0]&&(a[0]="C"===d[0]?["C",f[1],f[2],f[1],f[2],f[1],f[2]]:["L",f[1],
52
+ f[2]]);a.unshift(f);C&&(f=a.pop(),a.push(a[a.length-1],f))}}function c(a,c){for(;a.length<A;)if(c=a[Math.floor(a.length/v)-1].slice(),"C"===c[0]&&(c[1]=c[5],c[2]=c[6]),C){var f=a[Math.floor(a.length/v)].slice();a.splice(a.length/2,0,c,f)}else a.push(c)}var e=k.startX,g=k.endX;h=h.slice();var C=k.isArea,v=C?2:1;m=m&&m.slice();if(!m)return[h,h];if(e&&g&&g.length){for(k=0;k<e.length;k++)if(e[k]===g[0]){var u=k;break}else if(e[0]===g[g.length-e.length+k]){u=k;var p=!0;break}else if(e[e.length-1]===g[g.length-
53
+ e.length+k]){u=e.length-k;break}"undefined"===typeof u&&(m=[])}if(m.length&&D(u)){var A=h.length+u*v;p?(a(m,h),c(h,m)):(a(h,m),c(m,h))}return[m,h]};k.prototype.fillSetter=function(){k.prototype.strokeSetter.apply(this,arguments)};k.prototype.strokeSetter=function(){this.elem.attr(this.prop,x(this.start).tweenTo(x(this.end),this.pos),null,!0)};k.timers=[];return k}()});F(b,"Core/Animation/AnimationUtilities.js",[b["Core/Animation/Fx.js"],b["Core/Utilities.js"]],function(b,q){function x(a){return r(a)?
54
+ m({duration:500,defer:0},a):{duration:a?500:0,defer:0}}function B(a,e){for(var c=b.timers.length;c--;)b.timers[c].elem!==a||e&&e!==b.timers[c].prop||(b.timers[c].stopped=!0)}var w=q.defined,D=q.getStyle,E=q.isArray,k=q.isNumber,r=q.isObject,m=q.merge,h=q.objectEach,a=q.pick;return{animate:function(a,e,g){var c,v="",u,p;if(!r(g)){var A=arguments;g={duration:A[2],easing:A[3],complete:A[4]}}k(g.duration)||(g.duration=400);g.easing="function"===typeof g.easing?g.easing:Math[g.easing]||Math.easeInOutSine;
55
+ g.curAnim=m(e);h(e,function(n,f){B(a,f);p=new b(a,g,f);u=void 0;"d"===f&&E(e.d)?(p.paths=p.initPath(a,a.pathArray,e.d),p.toD=e.d,c=0,u=1):a.attr?c=a.attr(f):(c=parseFloat(D(a,f))||0,"opacity"!==f&&(v="px"));u||(u=n);"string"===typeof u&&u.match("px")&&(u=u.replace(/px/g,""));p.run(c,u,v)})},animObject:x,getDeferredAnimation:function(a,e,g){var c=x(e),h=0,u=0;(g?[g]:a.series).forEach(function(a){a=x(a.options.animation);h=e&&w(e.defer)?c.defer:Math.max(h,a.duration+a.defer);u=Math.min(c.duration,a.duration)});
56
+ a.renderer.forExport&&(h=0);return{defer:Math.max(0,h-u),duration:Math.min(h,u)}},setAnimation:function(c,e){e.renderer.globalAnimation=a(c,e.options.chart.animation,!0)},stop:B}});F(b,"Core/Renderer/HTML/AST.js",[b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,q){var x=b.SVG_NS,B=q.attr,w=q.createElement,D=q.discardElement,E=q.error,k=q.isString,r=q.objectEach,m=q.splat;try{var h=!!(new DOMParser).parseFromString("","text/html")}catch(a){h=!1}q=function(){function a(a){this.nodes="string"===
57
+ typeof a?this.parseMarkup(a):a}a.filterUserAttributes=function(c){r(c,function(e,g){var h=!0;-1===a.allowedAttributes.indexOf(g)&&(h=!1);-1!==["background","dynsrc","href","lowsrc","src"].indexOf(g)&&(h=k(e)&&a.allowedReferences.some(function(a){return 0===e.indexOf(a)}));h||(E("Highcharts warning: Invalid attribute '"+g+"' in config"),delete c[g])});return c};a.setElementHTML=function(c,e){c.innerHTML="";e&&(new a(e)).addToDOM(c)};a.prototype.addToDOM=function(c){function e(c,h){var g;m(c).forEach(function(c){var p=
58
+ c.tagName,A=c.textContent?b.doc.createTextNode(c.textContent):void 0;if(p)if("#text"===p)var n=A;else if(-1!==a.allowedTags.indexOf(p)){p=b.doc.createElementNS("svg"===p?x:h.namespaceURI||x,p);var f=c.attributes||{};r(c,function(a,d){"tagName"!==d&&"attributes"!==d&&"children"!==d&&"textContent"!==d&&(f[d]=a)});B(p,a.filterUserAttributes(f));A&&p.appendChild(A);e(c.children||[],p);n=p}else E("Highcharts warning: Invalid tagName '"+p+"' in config");n&&h.appendChild(n);g=n});return g}return e(this.nodes,
59
+ c)};a.prototype.parseMarkup=function(a){var c=[];a=a.trim();if(h)a=(new DOMParser).parseFromString(a,"text/html");else{var g=w("div");g.innerHTML=a;a={body:g}}var k=function(a,c){var e=a.nodeName.toLowerCase(),g={tagName:e};"#text"===e&&(g.textContent=a.textContent||"");if(e=a.attributes){var n={};[].forEach.call(e,function(a){n[a.name]=a.value});g.attributes=n}if(a.childNodes.length){var f=[];[].forEach.call(a.childNodes,function(a){k(a,f)});f.length&&(g.children=f)}c.push(g)};[].forEach.call(a.body.childNodes,
60
+ function(a){return k(a,c)});g&&D(g);return c};a.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align textAnchor textLength title type valign width x x1 x2 y y1 y2 zIndex".split(" ");
61
+ a.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" ");a.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr u ul #text".split(" ");return a}();"";return q});F(b,"Core/FormatUtilities.js",[b["Core/DefaultOptions.js"],
62
+ b["Core/Utilities.js"]],function(b,q){function x(m,h,a,c){m=+m||0;h=+h;var e=B.lang,g=(m.toString().split(".")[1]||"").split("e")[0].length,C=m.toString().split("e"),v=h;if(-1===h)h=Math.min(g,20);else if(!E(h))h=2;else if(h&&C[1]&&0>C[1]){var u=h+ +C[1];0<=u?(C[0]=(+C[0]).toExponential(u).split("e")[0],h=u):(C[0]=C[0].split(".")[0]||0,m=20>h?(C[0]*Math.pow(10,C[1])).toFixed(h):0,C[1]=0)}u=(Math.abs(C[1]?C[0]:m)+Math.pow(10,-Math.max(h,g)-1)).toFixed(h);g=String(r(u));var p=3<g.length?g.length%3:
63
+ 0;a=k(a,e.decimalPoint);c=k(c,e.thousandsSep);m=(0>m?"-":"")+(p?g.substr(0,p)+c:"");m=0>+C[1]&&!v?"0":m+g.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+c);h&&(m+=a+u.slice(-h));C[1]&&0!==+m&&(m+="e"+C[1]);return m}var B=b.defaultOptions,w=b.defaultTime,D=q.getNestedProperty,E=q.isNumber,k=q.pick,r=q.pInt;return{dateFormat:function(k,h,a){return w.dateFormat(k,h,a)},format:function(k,h,a){var c="{",e=!1,g=/f$/,C=/\.([0-9])/,v=B.lang,u=a&&a.time||w;a=a&&a.numberFormatter||x;for(var p=[];k;){var A=k.indexOf(c);
64
+ if(-1===A)break;var n=k.slice(0,A);if(e){n=n.split(":");c=D(n.shift()||"",h);if(n.length&&"number"===typeof c)if(n=n.join(":"),g.test(n)){var f=parseInt((n.match(C)||["","-1"])[1],10);null!==c&&(c=a(c,f,v.decimalPoint,-1<n.indexOf(",")?v.thousandsSep:""))}else c=u.dateFormat(n,c);p.push(c)}else p.push(n);k=k.slice(A+1);c=(e=!e)?"}":"{"}p.push(k);return p.join("")},numberFormat:x}});F(b,"Core/Renderer/RendererUtilities.js",[b["Core/Utilities.js"]],function(b){var x=b.clamp,z=b.pick,B=b.stableSort,
65
+ w;(function(b){function q(k,b,m){var h=k,a=h.reducedLen||b,c=function(a,c){return(c.rank||0)-(a.rank||0)},e=function(a,c){return a.target-c.target},g,C=!0,v=[],u=0;for(g=k.length;g--;)u+=k[g].size;if(u>a){B(k,c);for(u=g=0;u<=a;)u+=k[g].size,g++;v=k.splice(g-1,k.length)}B(k,e);for(k=k.map(function(a){return{size:a.size,targets:[a.target],align:z(a.align,.5)}});C;){for(g=k.length;g--;)a=k[g],c=(Math.min.apply(0,a.targets)+Math.max.apply(0,a.targets))/2,a.pos=x(c-a.size*a.align,0,b-a.size);g=k.length;
66
+ for(C=!1;g--;)0<g&&k[g-1].pos+k[g-1].size>k[g].pos&&(k[g-1].size+=k[g].size,k[g-1].targets=k[g-1].targets.concat(k[g].targets),k[g-1].align=.5,k[g-1].pos+k[g-1].size>b&&(k[g-1].pos=b-k[g-1].size),k.splice(g,1),C=!0)}h.push.apply(h,v);g=0;k.some(function(a){var c=0;return(a.targets||[]).some(function(){h[g].pos=a.pos+c;if("undefined"!==typeof m&&Math.abs(h[g].pos-h[g].target)>m)return h.slice(0,g+1).forEach(function(a){return delete a.pos}),h.reducedLen=(h.reducedLen||b)-.1*b,h.reducedLen>.1*b&&q(h,
67
+ b,m),!0;c+=h[g].size;g++;return!1})});B(h,e);return h}b.distribute=q})(w||(w={}));return w});F(b,"Core/Renderer/SVG/SVGElement.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Renderer/HTML/AST.js"],b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,q,z,B,w){var x=b.animate,E=b.animObject,k=b.stop,r=B.deg2rad,m=B.doc,h=B.noop,a=B.svg,c=B.SVG_NS,e=B.win,g=w.addEvent,C=w.attr,v=w.createElement,u=w.css,p=w.defined,A=w.erase,n=w.extend,f=w.fireEvent,t=w.isArray,d=w.isFunction,
68
+ y=w.isNumber,l=w.isString,H=w.merge,K=w.objectEach,I=w.pick,G=w.pInt,N=w.syncTimeout,aa=w.uniqueKey;b=function(){function b(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=c;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}b.prototype._defaultGetter=function(a){a=I(this[a+"Value"],this[a],this.element?this.element.getAttribute(a):null,0);/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a));return a};b.prototype._defaultSetter=
69
+ function(a,d,c){c.setAttribute(d,a)};b.prototype.add=function(a){var d=this.renderer,c=this.element;a&&(this.parentGroup=a);this.parentInverted=a&&a.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&d.buildText(this);this.added=!0;if(!a||a.handleZ||this.zIndex)var f=this.zIndexSetter();f||(a?a.element:d.box).appendChild(c);if(this.onAdd)this.onAdd();return this};b.prototype.addClass=function(a,d){var c=d?"":this.attr("class")||"";a=(a||"").split(/ /g).reduce(function(a,d){-1===
70
+ c.indexOf(d)&&a.push(d);return a},c?[c]:[]).join(" ");a!==c&&this.attr("class",a);return this};b.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};b.prototype.align=function(a,d,c){var f={},e=this.renderer,t=e.alignedObjects,p,n,g;if(a){if(this.alignOptions=a,this.alignByTranslate=d,!c||l(c))this.alignTo=p=c||"renderer",A(t,this),t.push(this),c=void 0}else a=this.alignOptions,d=this.alignByTranslate,p=this.alignTo;c=I(c,e[p],"scrollablePlotBox"===p?
71
+ e.plotBox:void 0,e);p=a.align;var y=a.verticalAlign;e=(c.x||0)+(a.x||0);t=(c.y||0)+(a.y||0);"right"===p?n=1:"center"===p&&(n=2);n&&(e+=(c.width-(a.width||0))/n);f[d?"translateX":"x"]=Math.round(e);"bottom"===y?g=1:"middle"===y&&(g=2);g&&(t+=(c.height-(a.height||0))/g);f[d?"translateY":"y"]=Math.round(t);this[this.placed?"animate":"attr"](f);this.placed=!0;this.alignAttr=f;return this};b.prototype.alignSetter=function(a){var d={left:"start",center:"middle",right:"end"};d[a]&&(this.alignValue=a,this.element.setAttribute("text-anchor",
72
+ d[a]))};b.prototype.animate=function(a,d,c){var f=this,l=E(I(d,this.renderer.globalAnimation,!0));d=l.defer;I(m.hidden,m.msHidden,m.webkitHidden,!1)&&(l.duration=0);0!==l.duration?(c&&(l.complete=c),N(function(){f.element&&x(f,a,l)},d)):(this.attr(a,void 0,c),K(a,function(a,d){l.step&&l.step.call(this,a,{prop:d,pos:1,elem:this})},this));return this};b.prototype.applyTextOutline=function(a){var d=this.element;-1!==a.indexOf("contrast")&&(a=a.replace(/contrast/g,this.renderer.getContrast(d.style.fill)));
73
+ var f=a.split(" ");a=f[f.length-1];if((f=f[0])&&"none"!==f&&B.svg){this.fakeTS=!0;this.ySetter=this.xSetter;f=f.replace(/(^[\d\.]+)(.*?)$/g,function(a,d,c){return 2*Number(d)+c});this.removeTextOutline();var l=m.createElementNS(c,"tspan");C(l,{"class":"highcharts-text-outline",fill:a,stroke:a,"stroke-width":f,"stroke-linejoin":"round"});[].forEach.call(d.childNodes,function(a){var d=a.cloneNode(!0);d.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(a){return d.removeAttribute(a)});
74
+ l.appendChild(d)});var e=m.createElementNS(c,"tspan");e.textContent="\u200b";["x","y"].forEach(function(a){var c=d.getAttribute(a);c&&e.setAttribute(a,c)});l.appendChild(e);d.insertBefore(l,d.firstChild)}};b.prototype.attr=function(a,d,c,f){var l=this.element,e=this.symbolCustomAttribs,t,p=this,n,g;if("string"===typeof a&&"undefined"!==typeof d){var y=a;a={};a[y]=d}"string"===typeof a?p=(this[a+"Getter"]||this._defaultGetter).call(this,a,l):(K(a,function(d,c){n=!1;f||k(this,c);this.symbolName&&-1!==
75
+ e.indexOf(c)&&(t||(this.symbolAttr(a),t=!0),n=!0);!this.rotation||"x"!==c&&"y"!==c||(this.doTransform=!0);n||(g=this[c+"Setter"]||this._defaultSetter,g.call(this,d,c,l),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(c)&&this.updateShadows(c,d,g))},this),this.afterSetters());c&&c.call(this);return p};b.prototype.clip=function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")};b.prototype.crisp=function(a,d){d=d||a.strokeWidth||
76
+ 0;var c=Math.round(d)%2/2;a.x=Math.floor(a.x||this.x||0)+c;a.y=Math.floor(a.y||this.y||0)+c;a.width=Math.floor((a.width||this.width||0)-2*c);a.height=Math.floor((a.height||this.height||0)-2*c);p(a.strokeWidth)&&(a.strokeWidth=d);return a};b.prototype.complexColor=function(a,d,c){var l=this.renderer,e,n,g,y,Q,h,u,b,A,k,v=[],C;f(this.renderer,"complexColor",{args:arguments},function(){a.radialGradient?n="radialGradient":a.linearGradient&&(n="linearGradient");if(n){g=a[n];Q=l.gradients;h=a.stops;A=c.radialReference;
77
+ t(g)&&(a[n]=g={x1:g[0],y1:g[1],x2:g[2],y2:g[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===n&&A&&!p(g.gradientUnits)&&(y=g,g=H(g,l.getRadialAttr(A,y),{gradientUnits:"userSpaceOnUse"}));K(g,function(a,d){"id"!==d&&v.push(d,a)});K(h,function(a){v.push(a)});v=v.join(",");if(Q[v])k=Q[v].attr("id");else{g.id=k=aa();var f=Q[v]=l.createElement(n).attr(g).add(l.defs);f.radAttr=y;f.stops=[];h.forEach(function(a){0===a[1].indexOf("rgba")?(e=z.parse(a[1]),u=e.get("rgb"),b=e.get("a")):(u=a[1],b=1);a=
78
+ l.createElement("stop").attr({offset:a[0],"stop-color":u,"stop-opacity":b}).add(f);f.stops.push(a)})}C="url("+l.url+"#"+k+")";c.setAttribute(d,C);c.gradient=v;a.toString=function(){return C}}})};b.prototype.css=function(d){var c=this.styles,f={},l=this.element,e=["textOutline","textOverflow","width"],t="",g=!c;d&&d.color&&(d.fill=d.color);c&&K(d,function(a,d){c&&c[d]!==a&&(f[d]=a,g=!0)});if(g){c&&(d=n(c,f));if(d)if(null===d.width||"auto"===d.width)delete this.textWidth;else if("text"===l.nodeName.toLowerCase()&&
79
+ d.width)var p=this.textWidth=G(d.width);this.styles=d;p&&!a&&this.renderer.forExport&&delete d.width;if(l.namespaceURI===this.SVG_NS){var y=function(a,d){return"-"+d.toLowerCase()};K(d,function(a,d){-1===e.indexOf(d)&&(t+=d.replace(/([A-Z])/g,y)+":"+a+";")});t&&C(l,"style",t)}else u(l,d);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),d&&d.textOutline&&this.applyTextOutline(d.textOutline))}return this};b.prototype.dashstyleSetter=function(a){var d=this["stroke-width"];"inherit"===
80
+ d&&(d=1);if(a=a&&a.toLowerCase()){var c=a.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(a=c.length;a--;)c[a]=""+G(c[a])*I(d,NaN);a=c.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",a)}};b.prototype.destroy=function(){var a=this,d=a.element||{},c=a.renderer,f=d.ownerSVGElement,l=c.isSVG&&
81
+ "SPAN"===d.nodeName&&a.parentGroup||void 0;d.onclick=d.onmouseout=d.onmouseover=d.onmousemove=d.point=null;k(a);if(a.clipPath&&f){var e=a.clipPath;[].forEach.call(f.querySelectorAll("[clip-path],[CLIP-PATH]"),function(a){-1<a.getAttribute("clip-path").indexOf(e.element.id)&&a.removeAttribute("clip-path")});a.clipPath=e.destroy()}if(a.stops){for(f=0;f<a.stops.length;f++)a.stops[f].destroy();a.stops.length=0;a.stops=void 0}a.safeRemoveChild(d);for(c.styledMode||a.destroyShadows();l&&l.div&&0===l.div.childNodes.length;)d=
82
+ l.parentGroup,a.safeRemoveChild(l.div),delete l.div,l=d;a.alignTo&&A(c.alignedObjects,a);K(a,function(d,c){a[c]&&a[c].parentGroup===a&&a[c].destroy&&a[c].destroy();delete a[c]})};b.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(a){this.safeRemoveChild(a)},this);this.shadows=void 0};b.prototype.destroyTextPath=function(a,d){var c=a.getElementsByTagName("text")[0];if(c){if(c.removeAttribute("dx"),c.removeAttribute("dy"),d.element.setAttribute("id",""),this.textPathWrapper&&
83
+ c.getElementsByTagName("textPath").length){for(a=this.textPathWrapper.element.childNodes;a.length;)c.appendChild(a[0]);c.removeChild(this.textPathWrapper.element)}}else if(a.getAttribute("dx")||a.getAttribute("dy"))a.removeAttribute("dx"),a.removeAttribute("dy");this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())};b.prototype.dSetter=function(a,d,c){t(a)&&("string"===typeof a[0]&&(a=this.renderer.pathToSegments(a)),this.pathArray=a,a=a.reduce(function(a,d,c){return d&&d.join?
84
+ (c?a+" ":"")+d.join(" "):(d||"").toString()},""));/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");this[d]!==a&&(c.setAttribute(d,a),this[d]=a)};b.prototype.fadeOut=function(a){var d=this;d.animate({opacity:0},{duration:I(a,150),complete:function(){d.attr({y:-9999}).hide()}})};b.prototype.fillSetter=function(a,d,c){"string"===typeof a?c.setAttribute(d,a):a&&this.complexColor(a,d,c)};b.prototype.getBBox=function(a,c){var f=this.renderer,l=this.element,e=this.styles,t=this.textStr,g=f.cache,y=f.cacheKeys,h=l.namespaceURI===
85
+ this.SVG_NS;c=I(c,this.rotation,0);var A=f.styledMode?l&&b.prototype.getStyle.call(l,"font-size"):e&&e.fontSize,k;if(p(t)){var v=t.toString();-1===v.indexOf("<")&&(v=v.replace(/[0-9]/g,"0"));v+=["",c,A,this.textWidth,e&&e.textOverflow,e&&e.fontWeight].join()}v&&!a&&(k=g[v]);if(!k){if(h||f.forExport){try{var H=this.fakeTS&&function(a){var d=l.querySelector(".highcharts-text-outline");d&&u(d,{display:a})};d(H)&&H("none");k=l.getBBox?n({},l.getBBox()):{width:l.offsetWidth,height:l.offsetHeight};d(H)&&
86
+ H("")}catch(X){""}if(!k||0>k.width)k={width:0,height:0}}else k=this.htmlGetBBox();f.isSVG&&(a=k.width,f=k.height,h&&(k.height=f={"11px,17":14,"13px,20":16}[e&&e.fontSize+","+Math.round(f)]||f),c&&(e=c*r,k.width=Math.abs(f*Math.sin(e))+Math.abs(a*Math.cos(e)),k.height=Math.abs(f*Math.cos(e))+Math.abs(a*Math.sin(e))));if(v&&(""===t||0<k.height)){for(;250<y.length;)delete g[y.shift()];g[v]||y.push(v);g[v]=k}}return k};b.prototype.getStyle=function(a){return e.getComputedStyle(this.element||this,"").getPropertyValue(a)};
87
+ b.prototype.hasClass=function(a){return-1!==(""+this.attr("class")).split(" ").indexOf(a)};b.prototype.hide=function(a){a?this.attr({y:-9999}):this.attr({visibility:"hidden"});return this};b.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}};b.prototype.init=function(a,d){this.element="span"===d?v(d):m.createElementNS(this.SVG_NS,d);this.renderer=a;f(this,"afterInit")};b.prototype.invert=function(a){this.inverted=a;this.updateTransform();return this};b.prototype.on=function(a,d){var c=
88
+ this.onEvents;if(c[a])c[a]();c[a]=g(this.element,a,d);return this};b.prototype.opacitySetter=function(a,d,c){this.opacity=a=Number(Number(a).toFixed(3));c.setAttribute(d,a)};b.prototype.removeClass=function(a){return this.attr("class",(""+this.attr("class")).replace(l(a)?new RegExp("(^| )"+a+"( |$)"):a," ").replace(/ +/g," ").trim())};b.prototype.removeTextOutline=function(){var a=this.element.querySelector("tspan.highcharts-text-outline");a&&this.safeRemoveChild(a)};b.prototype.safeRemoveChild=function(a){var d=
89
+ a.parentNode;d&&d.removeChild(a)};b.prototype.setRadialReference=function(a){var d=this.element.gradient&&this.renderer.gradients[this.element.gradient];this.element.radialReference=a;d&&d.radAttr&&d.animate(this.renderer.getRadialAttr(a,d.radAttr));return this};b.prototype.setTextPath=function(a,d){var c=this.element,f=this.text?this.text.element:c,l={textAnchor:"text-anchor"},t=!1,g=this.textPathWrapper,n=!g;d=H(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},d);var u=q.filterUserAttributes(d.attributes);
90
+ if(a&&d&&d.enabled){g&&null===g.element.parentNode?(n=!0,g=g.destroy()):g&&this.removeTextOutline.call(g.parentGroup);this.options&&this.options.padding&&(u.dx=-this.options.padding);g||(this.textPathWrapper=g=this.renderer.createElement("textPath"),t=!0);var b=g.element;(d=a.element.getAttribute("id"))||a.element.setAttribute("id",d=aa());if(n)for(f.setAttribute("y",0),y(u.dx)&&f.setAttribute("x",-u.dx),a=[].slice.call(f.childNodes),n=0;n<a.length;n++){var A=a[n];A.nodeType!==e.Node.TEXT_NODE&&"tspan"!==
91
+ A.nodeName||b.appendChild(A)}t&&g&&g.add({element:f});b.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+d);p(u.dy)&&(b.parentNode.setAttribute("dy",u.dy),delete u.dy);p(u.dx)&&(b.parentNode.setAttribute("dx",u.dx),delete u.dx);K(u,function(a,d){b.setAttribute(l[d]||d,a)});c.removeAttribute("transform");this.removeTextOutline.call(g);this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=h}else g&&(delete this.updateTransform,
92
+ delete this.applyTextOutline,this.destroyTextPath(c,a),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this};b.prototype.shadow=function(a,d,c){var f=[],l=this.element,e=this.oldShadowOptions,t={color:"#000000",offsetX:this.parentInverted?-1:1,offsetY:this.parentInverted?-1:1,opacity:.15,width:3},g=!1,p;!0===a?p=t:"object"===typeof a&&(p=n(t,a));p&&(p&&e&&K(p,function(a,d){a!==e[d]&&(g=!0)}),g&&this.destroyShadows(),this.oldShadowOptions=
93
+ p);if(!p)this.destroyShadows();else if(!this.shadows){var y=p.opacity/p.width;var h=this.parentInverted?"translate("+p.offsetY+", "+p.offsetX+")":"translate("+p.offsetX+", "+p.offsetY+")";for(t=1;t<=p.width;t++){var u=l.cloneNode(!1);var b=2*p.width+1-2*t;C(u,{stroke:a.color||"#000000","stroke-opacity":y*t,"stroke-width":b,transform:h,fill:"none"});u.setAttribute("class",(u.getAttribute("class")||"")+" highcharts-shadow");c&&(C(u,"height",Math.max(C(u,"height")-b,0)),u.cutHeight=b);d?d.element.appendChild(u):
94
+ l.parentNode&&l.parentNode.insertBefore(u,l);f.push(u)}this.shadows=f}return this};b.prototype.show=function(a){return this.attr({visibility:a?"inherit":"visible"})};b.prototype.strokeSetter=function(a,d,c){this[d]=a;this.stroke&&this["stroke-width"]?(b.prototype.fillSetter.call(this,this.stroke,"stroke",c),c.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===d&&0===a&&this.hasStroke?(c.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&
95
+ (c.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};b.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var a=this.getStyle("stroke-width"),d=0;if(a.indexOf("px")===a.length-2)d=G(a);else if(""!==a){var f=m.createElementNS(c,"rect");C(f,{width:a,"stroke-width":0});this.element.parentNode.appendChild(f);d=f.getBBox().width;f.parentNode.removeChild(f)}return d};b.prototype.symbolAttr=function(a){var d=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(c){d[c]=
96
+ I(a[c],d[c])});d.attr({d:d.renderer.symbols[d.symbolName](d.x,d.y,d.width,d.height,d)})};b.prototype.textSetter=function(a){a!==this.textStr&&(delete this.textPxLength,this.textStr=a,this.added&&this.renderer.buildText(this))};b.prototype.titleSetter=function(a){var d=this.element,c=d.getElementsByTagName("title")[0]||m.createElementNS(this.SVG_NS,"title");d.insertBefore?d.insertBefore(c,d.firstChild):d.appendChild(c);c.textContent=String(I(a,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,
97
+ ">")};b.prototype.toFront=function(){var a=this.element;a.parentNode.appendChild(a);return this};b.prototype.translate=function(a,d){return this.attr({translateX:a,translateY:d})};b.prototype.updateShadows=function(a,d,c){var f=this.shadows;if(f)for(var l=f.length;l--;)c.call(f[l],"height"===a?Math.max(d-(f[l].cutHeight||0),0):"d"===a?this.d:d,a,f[l])};b.prototype.updateTransform=function(){var a=this.scaleX,d=this.scaleY,c=this.inverted,f=this.rotation,l=this.matrix,e=this.element,t=this.translateX||
98
+ 0,g=this.translateY||0;c&&(t+=this.width,g+=this.height);t=["translate("+t+","+g+")"];p(l)&&t.push("matrix("+l.join(",")+")");c?t.push("rotate(90) scale(-1,1)"):f&&t.push("rotate("+f+" "+I(this.rotationOriginX,e.getAttribute("x"),0)+" "+I(this.rotationOriginY,e.getAttribute("y")||0)+")");(p(a)||p(d))&&t.push("scale("+I(a,1)+" "+I(d,1)+")");t.length&&e.setAttribute("transform",t.join(" "))};b.prototype.visibilitySetter=function(a,d,c){"inherit"===a?c.removeAttribute(d):this[d]!==a&&c.setAttribute(d,
99
+ a);this[d]=a};b.prototype.xGetter=function(a){"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy"));return this._defaultGetter(a)};b.prototype.zIndexSetter=function(a,d){var c=this.renderer,f=this.parentGroup,l=(f||c).element||c.box,e=this.element;c=l===c.box;var t=!1;var g=this.added;var n;p(a)?(e.setAttribute("data-z-index",a),a=+a,this[d]===a&&(g=!1)):p(this[d])&&e.removeAttribute("data-z-index");this[d]=a;if(g){(a=this.zIndex)&&f&&(f.handleZ=!0);d=l.childNodes;for(n=d.length-1;0<=
100
+ n&&!t;n--){f=d[n];g=f.getAttribute("data-z-index");var y=!p(g);if(f!==e)if(0>a&&y&&!c&&!n)l.insertBefore(e,d[n]),t=!0;else if(G(g)<=a||y&&(!p(a)||0<=a))l.insertBefore(e,d[n+1]||null),t=!0}t||(l.insertBefore(e,d[c?3:0]||null),t=!0)}return t};return b}();b.prototype["stroke-widthSetter"]=b.prototype.strokeSetter;b.prototype.yGetter=b.prototype.xGetter;b.prototype.matrixSetter=b.prototype.rotationOriginXSetter=b.prototype.rotationOriginYSetter=b.prototype.rotationSetter=b.prototype.scaleXSetter=b.prototype.scaleYSetter=
101
+ b.prototype.translateXSetter=b.prototype.translateYSetter=b.prototype.verticalAlignSetter=function(a,d){this[d]=a;this.doTransform=!0};"";return b});F(b,"Core/Renderer/RendererRegistry.js",[b["Core/Globals.js"]],function(b){var x;(function(x){x.rendererTypes={};var q;x.getRendererType=function(b){void 0===b&&(b=q);return x.rendererTypes[b]||x.rendererTypes[q]};x.registerRendererType=function(w,z,E){x.rendererTypes[w]=z;if(!q||E)q=w,b.Renderer=z}})(x||(x={}));return x});F(b,"Core/Renderer/SVG/SVGLabel.js",
102
+ [b["Core/Renderer/SVG/SVGElement.js"],b["Core/Utilities.js"]],function(b,q){var x=this&&this.__extends||function(){var b=function(h,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var c in e)e.hasOwnProperty(c)&&(a[c]=e[c])};return b(h,a)};return function(h,a){function c(){this.constructor=h}b(h,a);h.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),B=q.defined,w=q.extend,D=q.isNumber,E=q.merge,k=q.pick,r=q.removeEvent;
103
+ return function(m){function h(a,c,e,g,b,k,u,p,A,n){var f=m.call(this)||this;f.paddingLeftSetter=f.paddingSetter;f.paddingRightSetter=f.paddingSetter;f.init(a,"g");f.textStr=c;f.x=e;f.y=g;f.anchorX=k;f.anchorY=u;f.baseline=A;f.className=n;f.addClass("button"===n?"highcharts-no-tooltip":"highcharts-label");n&&f.addClass("highcharts-"+n);f.text=a.text(void 0,0,0,p).attr({zIndex:1});var t;"string"===typeof b&&((t=/^url\((.*?)\)$/.test(b))||f.renderer.symbols[b])&&(f.symbolKey=b);f.bBox=h.emptyBBox;f.padding=
104
+ 3;f.baselineOffset=0;f.needsBox=a.styledMode||t;f.deferredAttr={};f.alignFactor=0;return f}x(h,m);h.prototype.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==this.alignFactor&&(this.alignFactor=a,this.bBox&&D(this.xSetting)&&this.attr({x:this.xSetting}))};h.prototype.anchorXSetter=function(a,c){this.anchorX=a;this.boxAttr(c,Math.round(a)-this.getCrispAdjust()-this.xSetting)};h.prototype.anchorYSetter=function(a,c){this.anchorY=a;this.boxAttr(c,a-this.ySetting)};h.prototype.boxAttr=function(a,
105
+ c){this.box?this.box.attr(a,c):this.deferredAttr[a]=c};h.prototype.css=function(a){if(a){var c={};a=E(a);h.textProps.forEach(function(e){"undefined"!==typeof a[e]&&(c[e]=a[e],delete a[e])});this.text.css(c);var e="width"in c;"fontSize"in c||"fontWeight"in c?this.updateTextPadding():e&&this.updateBoxSize()}return b.prototype.css.call(this,a)};h.prototype.destroy=function(){r(this.element,"mouseenter");r(this.element,"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());
106
+ b.prototype.destroy.call(this)};h.prototype.fillSetter=function(a,c){a&&(this.needsBox=!0);this.fill=a;this.boxAttr(c,a)};h.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var a=this.padding,c=k(this.paddingLeft,a);return{width:this.width,height:this.height,x:this.bBox.x-c,y:this.bBox.y-a}};h.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],
107
+ 10):0)%2/2};h.prototype.heightSetter=function(a){this.heightSetting=a};h.prototype.onAdd=function(){var a=this.textStr;this.text.add(this);this.attr({text:B(a)?a:"",x:this.x,y:this.y});this.box&&B(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};h.prototype.paddingSetter=function(a,c){D(a)?a!==this[c]&&(this[c]=a,this.updateTextPadding()):this[c]=void 0};h.prototype.rSetter=function(a,c){this.boxAttr(c,a)};h.prototype.shadow=function(a){a&&!this.renderer.styledMode&&(this.updateBoxSize(),
108
+ this.box&&this.box.shadow(a));return this};h.prototype.strokeSetter=function(a,c){this.stroke=a;this.boxAttr(c,a)};h.prototype["stroke-widthSetter"]=function(a,c){a&&(this.needsBox=!0);this["stroke-width"]=a;this.boxAttr(c,a)};h.prototype["text-alignSetter"]=function(a){this.textAlign=a};h.prototype.textSetter=function(a){"undefined"!==typeof a&&this.text.attr({text:a});this.updateTextPadding()};h.prototype.updateBoxSize=function(){var a=this.text.element.style,c={},e=this.padding,g=this.bBox=D(this.widthSetting)&&
109
+ D(this.heightSetting)&&!this.textAlign||!B(this.text.textStr)?h.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height=(this.heightSetting||g.height||0)+2*e;a=this.renderer.fontMetrics(a&&a.fontSize,this.text);this.baselineOffset=e+Math.min((this.text.firstLineMetrics||a).b,g.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-a.h)/2);this.needsBox&&(this.box||(e=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),e.addClass(("button"===
110
+ this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),e.add(this)),e=this.getCrispAdjust(),c.x=e,c.y=(this.baseline?-this.baselineOffset:0)+e,c.width=Math.round(this.width),c.height=Math.round(this.height),this.box.attr(w(c,this.deferredAttr)),this.deferredAttr={})};h.prototype.updateTextPadding=function(){var a=this.text;this.updateBoxSize();var c=this.baseline?0:this.baselineOffset,e=k(this.paddingLeft,this.padding);B(this.widthSetting)&&this.bBox&&
111
+ ("center"===this.textAlign||"right"===this.textAlign)&&(e+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(e!==a.x||c!==a.y)a.attr("x",e),a.hasBoxWidthChanged&&(this.bBox=a.getBBox(!0)),"undefined"!==typeof c&&a.attr("y",c);a.x=e;a.y=c};h.prototype.widthSetter=function(a){this.widthSetting=D(a)?a:void 0};h.prototype.getPaddedWidth=function(){var a=this.padding,c=k(this.paddingLeft,a);a=k(this.paddingRight,a);return(this.widthSetting||this.bBox.width||0)+c+a};h.prototype.xSetter=
112
+ function(a){this.x=a;this.alignFactor&&(a-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(a);this.attr("translateX",this.xSetting)};h.prototype.ySetter=function(a){this.ySetting=this.y=Math.round(a);this.attr("translateY",this.ySetting)};h.emptyBBox={width:0,height:0,x:0,y:0};h.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return h}(b)});F(b,"Core/Renderer/SVG/Symbols.js",
113
+ [b["Core/Utilities.js"]],function(b){function x(b,r,m,h,a){var c=[];if(a){var e=a.start||0,g=E(a.r,m);m=E(a.r,h||m);var k=(a.end||0)-.001;h=a.innerR;var v=E(a.open,.001>Math.abs((a.end||0)-e-2*Math.PI)),u=Math.cos(e),p=Math.sin(e),A=Math.cos(k),n=Math.sin(k);e=E(a.longArc,.001>k-e-Math.PI?0:1);c.push(["M",b+g*u,r+m*p],["A",g,m,0,e,E(a.clockwise,1),b+g*A,r+m*n]);w(h)&&c.push(v?["M",b+h*A,r+h*n]:["L",b+h*A,r+h*n],["A",h,h,0,e,w(a.clockwise)?1-a.clockwise:0,b+h*u,r+h*p]);v||c.push(["Z"])}return c}function z(b,
114
+ r,m,h,a){return a&&a.r?B(b,r,m,h,a):[["M",b,r],["L",b+m,r],["L",b+m,r+h],["L",b,r+h],["Z"]]}function B(b,r,m,h,a){a=a&&a.r||0;return[["M",b+a,r],["L",b+m-a,r],["C",b+m,r,b+m,r,b+m,r+a],["L",b+m,r+h-a],["C",b+m,r+h,b+m,r+h,b+m-a,r+h],["L",b+a,r+h],["C",b,r+h,b,r+h,b,r+h-a],["L",b,r+a],["C",b,r,b,r,b+a,r]]}var w=b.defined,D=b.isNumber,E=b.pick;return{arc:x,callout:function(b,r,m,h,a){var c=Math.min(a&&a.r||0,m,h),e=c+6,g=a&&a.anchorX;a=a&&a.anchorY||0;var k=B(b,r,m,h,{r:c});if(!D(g))return k;b+g>=m?
115
+ a>r+e&&a<r+h-e?k.splice(3,1,["L",b+m,a-6],["L",b+m+6,a],["L",b+m,a+6],["L",b+m,r+h-c]):k.splice(3,1,["L",b+m,h/2],["L",g,a],["L",b+m,h/2],["L",b+m,r+h-c]):0>=b+g?a>r+e&&a<r+h-e?k.splice(7,1,["L",b,a+6],["L",b-6,a],["L",b,a-6],["L",b,r+c]):k.splice(7,1,["L",b,h/2],["L",g,a],["L",b,h/2],["L",b,r+c]):a&&a>h&&g>b+e&&g<b+m-e?k.splice(5,1,["L",g+6,r+h],["L",g,r+h+6],["L",g-6,r+h],["L",b+c,r+h]):a&&0>a&&g>b+e&&g<b+m-e&&k.splice(1,1,["L",g-6,r],["L",g,r-6],["L",g+6,r],["L",m-c,r]);return k},circle:function(b,
116
+ r,m,h){return x(b+m/2,r+h/2,m/2,h/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(b,r,m,h){return[["M",b+m/2,r],["L",b+m,r+h/2],["L",b+m/2,r+h],["L",b,r+h/2],["Z"]]},rect:z,roundedRect:B,square:z,triangle:function(b,r,m,h){return[["M",b+m/2,r],["L",b+m,r+h],["L",b,r+h],["Z"]]},"triangle-down":function(b,r,m,h){return[["M",b,r],["L",b+m,r],["L",b+m/2,r+h],["Z"]]}}});F(b,"Core/Renderer/SVG/TextBuilder.js",[b["Core/Renderer/HTML/AST.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,
117
+ q,z){var x=q.doc,w=q.SVG_NS,D=q.win,E=z.attr,k=z.isString,r=z.objectEach,m=z.pick;return function(){function h(a){var c=a.styles;this.renderer=a.renderer;this.svgElement=a;this.width=a.textWidth;this.textLineHeight=c&&c.lineHeight;this.textOutline=c&&c.textOutline;this.ellipsis=!(!c||"ellipsis"!==c.textOverflow);this.noWrap=!(!c||"nowrap"!==c.whiteSpace);this.fontSize=c&&c.fontSize}h.prototype.buildSVG=function(){var a=this.svgElement,c=a.element,e=a.renderer,g=m(a.textStr,"").toString(),h=-1!==g.indexOf("<"),
118
+ v=c.childNodes;e=this.width&&!a.added&&e.box;var u=/<br.*?>/g,p=[g,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(p!==a.textCache){a.textCache=p;delete a.actualWidth;for(p=v.length;p--;)c.removeChild(v[p]);h||this.ellipsis||this.width||-1!==g.indexOf(" ")&&(!this.noWrap||u.test(g))?""!==g&&(e&&e.appendChild(c),g=new b(g),this.modifyTree(g.nodes),g.addToDOM(a.element),this.modifyDOM(),this.ellipsis&&-1!==(c.textContent||"").indexOf("\u2026")&&a.attr("title",
119
+ this.unescapeEntities(a.textStr||"",["&lt;","&gt;"])),e&&e.removeChild(c)):c.appendChild(x.createTextNode(this.unescapeEntities(g)));k(this.textOutline)&&a.applyTextOutline&&a.applyTextOutline(this.textOutline)}};h.prototype.modifyDOM=function(){var a=this,c=this.svgElement,e=E(c.element,"x");c.firstLineMetrics=void 0;for(var g;g=c.element.firstChild;)if(/^[\s\u200B]*$/.test(g.textContent||" "))c.element.removeChild(g);else break;[].forEach.call(c.element.querySelectorAll("tspan.highcharts-br"),function(g,
120
+ b){g.nextSibling&&g.previousSibling&&(0===b&&1===g.previousSibling.nodeType&&(c.firstLineMetrics=c.renderer.fontMetrics(void 0,g.previousSibling)),E(g,{dy:a.getLineHeight(g.nextSibling),x:e}))});var b=this.width||0;if(b){var h=function(g,u){var n=g.textContent||"",f=n.replace(/([^\^])-/g,"$1- ").split(" "),t=!a.noWrap&&(1<f.length||1<c.element.childNodes.length),d=a.getLineHeight(u),p=0,l=c.actualWidth;if(a.ellipsis)n&&a.truncate(g,n,void 0,0,Math.max(0,b-parseInt(a.fontSize||12,10)),function(a,d){return a.substring(0,
121
+ d)+"\u2026"});else if(t){n=[];for(t=[];u.firstChild&&u.firstChild!==g;)t.push(u.firstChild),u.removeChild(u.firstChild);for(;f.length;)f.length&&!a.noWrap&&0<p&&(n.push(g.textContent||""),g.textContent=f.join(" ").replace(/- /g,"-")),a.truncate(g,void 0,f,0===p?l||0:0,b,function(a,d){return f.slice(0,d).join(" ").replace(/- /g,"-")}),l=c.actualWidth,p++;t.forEach(function(a){u.insertBefore(a,g)});n.forEach(function(a){u.insertBefore(x.createTextNode(a),g);a=x.createElementNS(w,"tspan");a.textContent=
122
+ "\u200b";E(a,{dy:d,x:e});u.insertBefore(a,g)})}},u=function(a){[].slice.call(a.childNodes).forEach(function(e){e.nodeType===D.Node.TEXT_NODE?h(e,a):(-1!==e.className.baseVal.indexOf("highcharts-br")&&(c.actualWidth=0),u(e))})};u(c.element)}};h.prototype.getLineHeight=function(a){var c;a=a.nodeType===D.Node.TEXT_NODE?a.parentElement:a;this.renderer.styledMode||(c=a&&/(px|em)$/.test(a.style.fontSize)?a.style.fontSize:this.fontSize||this.renderer.style.fontSize||12);return this.textLineHeight?parseInt(this.textLineHeight.toString(),
123
+ 10):this.renderer.fontMetrics(c,a||this.svgElement.element).h};h.prototype.modifyTree=function(a){var c=this,e=function(g,b){var h=g.tagName,u=c.renderer.styledMode,p=g.attributes||{};if("b"===h||"strong"===h)u?p["class"]="highcharts-strong":p.style="font-weight:bold;"+(p.style||"");else if("i"===h||"em"===h)u?p["class"]="highcharts-emphasized":p.style="font-style:italic;"+(p.style||"");k(p.style)&&(p.style=p.style.replace(/(;| |^)color([ :])/,"$1fill$2"));"br"===h&&(p["class"]="highcharts-br",g.textContent=
124
+ "\u200b",(b=a[b+1])&&b.textContent&&(b.textContent=b.textContent.replace(/^ +/gm,"")));"#text"!==h&&"a"!==h&&(g.tagName="tspan");g.attributes=p;g.children&&g.children.filter(function(a){return"#text"!==a.tagName}).forEach(e)};a.forEach(e)};h.prototype.truncate=function(a,c,e,g,b,h){var u=this.svgElement,p=u.renderer,A=u.rotation,n=[],f=e?1:0,t=(c||e||"").length,d=t,y,l=function(d,f){f=f||d;var l=a.parentNode;if(l&&"undefined"===typeof n[f])if(l.getSubStringLength)try{n[f]=g+l.getSubStringLength(0,
125
+ e?f+1:f)}catch(N){""}else p.getSpanWidth&&(a.textContent=h(c||e,d),n[f]=g+p.getSpanWidth(u,a));return n[f]};u.rotation=0;var v=l(a.textContent.length);if(g+v>b){for(;f<=t;)d=Math.ceil((f+t)/2),e&&(y=h(e,d)),v=l(d,y&&y.length-1),f===t?f=t+1:v>b?t=d-1:f=d;0===t?a.textContent="":c&&t===c.length-1||(a.textContent=y||h(c||e,d))}e&&e.splice(0,d);u.actualWidth=v;u.rotation=A};h.prototype.unescapeEntities=function(a,c){r(this.renderer.escapes,function(e,g){c&&-1!==c.indexOf(e)||(a=a.toString().replace(new RegExp(e,
126
+ "g"),g))});return a};return h}()});F(b,"Core/Renderer/SVG/SVGRenderer.js",[b["Core/Renderer/HTML/AST.js"],b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Renderer/RendererRegistry.js"],b["Core/Renderer/SVG/SVGElement.js"],b["Core/Renderer/SVG/SVGLabel.js"],b["Core/Renderer/SVG/Symbols.js"],b["Core/Renderer/SVG/TextBuilder.js"],b["Core/Utilities.js"]],function(b,q,z,B,w,D,E,k,r){var m=z.charts,h=z.deg2rad,a=z.doc,c=z.isFirefox,e=z.isMS,g=z.isWebKit,C=z.noop,v=z.SVG_NS,u=z.symbolSizes,p=z.win,
127
+ A=r.addEvent,n=r.attr,f=r.createElement,t=r.css,d=r.defined,y=r.destroyObjectProperties,l=r.extend,H=r.isArray,K=r.isNumber,I=r.isObject,G=r.isString,N=r.merge,x=r.pick,P=r.pInt,S=r.uniqueKey,U;z=function(){function v(a,d,c,f,l,e,t){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0;this.init(a,d,c,f,l,e,t)}v.prototype.init=function(d,f,l,e,g,
128
+ b,y){var u=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"}),h=u.element;y||u.css(this.getStyle(e));d.appendChild(h);n(d,"dir","ltr");-1===d.innerHTML.indexOf("xmlns")&&n(h,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=h;this.boxWrapper=u;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(a.createTextNode("Created with Highcharts 9.3.0"));this.defs=this.createElement("defs").add();this.allowHTML=b;this.forExport=g;this.styledMode=
129
+ y;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(f,l,!1);var v;c&&d.getBoundingClientRect&&(f=function(){t(d,{left:0,top:0});v=d.getBoundingClientRect();t(d,{left:Math.ceil(v.left)-v.left+"px",top:Math.ceil(v.top)-v.top+"px"})},f(),this.unSubPixelFix=A(p,"resize",f))};v.prototype.definition=function(a){return(new b([a])).addToDOM(this.defs.element)};v.prototype.getReferenceURL=function(){if((c||g)&&a.getElementsByTagName("base").length){if(!d(U)){var f=S();f=(new b([{tagName:"svg",
130
+ attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:f},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+f+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(a.body);t(f,{position:"fixed",top:0,left:0,zIndex:9E5});var l=a.elementFromPoint(6,6);U="hitme"===(l&&l.id);a.body.removeChild(f)}if(U)return p.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,
131
+ "\\$1").replace(/ /g,"%20")}return""};v.prototype.getStyle=function(a){return this.style=l({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},a)};v.prototype.setStyle=function(a){this.boxWrapper.css(this.getStyle(a))};v.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};v.prototype.destroy=function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();y(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());
132
+ this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null};v.prototype.createElement=function(a){var d=new this.Element;d.init(this,a);return d};v.prototype.getRadialAttr=function(a,d){return{cx:a[0]-a[2]/2+(d.cx||0)*a[2],cy:a[1]-a[2]/2+(d.cy||0)*a[2],r:(d.r||0)*a[2]}};v.prototype.buildText=function(a){(new k(a)).buildSVG()};v.prototype.getContrast=function(a){a=q.parse(a).rgba;a[0]*=1;a[1]*=1.2;a[2]*=.5;return 459<a[0]+a[1]+a[2]?"#000000":"#FFFFFF"};v.prototype.button=function(a,d,
133
+ c,f,t,g,n,p,y,u){var h=this.label(a,d,c,y,void 0,void 0,u,void 0,"button"),v=this.styledMode,H=0,k=t?N(t):{};a=k&&k.style||{};k=b.filterUserAttributes(k);h.attr(N({padding:8,r:2},k));if(!v){k=N({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},{style:a},k);var m=k.style;delete k.style;g=N(k,{fill:"#e6e6e6"},b.filterUserAttributes(g||{}));var L=g.style;delete g.style;n=N(k,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},b.filterUserAttributes(n||
134
+ {}));var C=n.style;delete n.style;p=N(k,{style:{color:"#cccccc"}},b.filterUserAttributes(p||{}));var Q=p.style;delete p.style}A(h.element,e?"mouseover":"mouseenter",function(){3!==H&&h.setState(1)});A(h.element,e?"mouseout":"mouseleave",function(){3!==H&&h.setState(H)});h.setState=function(a){1!==a&&(h.state=H=a);h.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][a||0]);v||h.attr([k,g,n,p][a||0]).css([m,L,C,Q][a||
135
+ 0])};v||h.attr(k).css(l({cursor:"default"},m));return h.on("touchstart",function(a){return a.stopPropagation()}).on("click",function(a){3!==H&&f.call(h,a)})};v.prototype.crispLine=function(a,c,f){void 0===f&&(f="round");var l=a[0],e=a[1];d(l[1])&&l[1]===e[1]&&(l[1]=e[1]=Math[f](l[1])-c%2/2);d(l[2])&&l[2]===e[2]&&(l[2]=e[2]=Math[f](l[2])+c%2/2);return a};v.prototype.path=function(a){var d=this.styledMode?{}:{fill:"none"};H(a)?d.d=a:I(a)&&l(d,a);return this.createElement("path").attr(d)};v.prototype.circle=
136
+ function(a,d,c){a=I(a)?a:"undefined"===typeof a?{}:{x:a,y:d,r:c};d=this.createElement("circle");d.xSetter=d.ySetter=function(a,d,c){c.setAttribute("c"+d,a)};return d.attr(a)};v.prototype.arc=function(a,d,c,f,l,e){I(a)?(f=a,d=f.y,c=f.r,a=f.x):f={innerR:f,start:l,end:e};a=this.symbol("arc",a,d,c,c,f);a.r=c;return a};v.prototype.rect=function(a,d,c,f,l,e){l=I(a)?a.r:l;var t=this.createElement("rect");a=I(a)?a:"undefined"===typeof a?{}:{x:a,y:d,width:Math.max(c,0),height:Math.max(f,0)};this.styledMode||
137
+ ("undefined"!==typeof e&&(a["stroke-width"]=e,a=t.crisp(a)),a.fill="none");l&&(a.r=l);t.rSetter=function(a,d,c){t.r=a;n(c,{rx:a,ry:a})};t.rGetter=function(){return t.r||0};return t.attr(a)};v.prototype.setSize=function(a,d,c){this.width=a;this.height=d;this.boxWrapper.animate({width:a,height:d},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:x(c,!0)?void 0:0});this.alignElements()};v.prototype.g=function(a){var d=this.createElement("g");return a?d.attr({"class":"highcharts-"+
138
+ a}):d};v.prototype.image=function(a,d,c,f,l,e){var t={preserveAspectRatio:"none"},g=function(a,d){a.setAttributeNS?a.setAttributeNS("http://www.w3.org/1999/xlink","href",d):a.setAttribute("hc-svg-href",d)};K(d)&&(t.x=d);K(c)&&(t.y=c);K(f)&&(t.width=f);K(l)&&(t.height=l);var b=this.createElement("image").attr(t);d=function(d){g(b.element,a);e.call(b,d)};e?(g(b.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),c=new p.Image,A(c,"load",d),c.src=a,c.complete&&d({})):
139
+ g(b.element,a);return b};v.prototype.symbol=function(c,e,g,b,n,p){var y=this,h=/^url\((.*?)\)$/,v=h.test(c),A=!v&&(this.symbols[c]?c:"circle"),k=A&&this.symbols[A],H;if(k){"number"===typeof e&&(H=k.call(this.symbols,Math.round(e||0),Math.round(g||0),b||0,n||0,p));var C=this.path(H);y.styledMode||C.attr("fill","none");l(C,{symbolName:A||void 0,x:e,y:g,width:b,height:n});p&&l(C,p)}else if(v){var L=c.match(h)[1];var Q=C=this.image(L);Q.imgwidth=x(u[L]&&u[L].width,p&&p.width);Q.imgheight=x(u[L]&&u[L].height,
140
+ p&&p.height);var K=function(a){return a.attr({width:a.width,height:a.height})};["width","height"].forEach(function(a){Q[a+"Setter"]=function(a,c){var f=this["img"+c];this[c]=a;d(f)&&(p&&"within"===p.backgroundSize&&this.width&&this.height&&(f=Math.round(f*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(c,f),this.alignByTranslate||(a=((this[c]||0)-f)/2,this.attr("width"===c?{translateX:a}:{translateY:a})))}});d(e)&&Q.attr({x:e,y:g});Q.isImg=!0;
141
+ d(Q.imgwidth)&&d(Q.imgheight)?K(Q):(Q.attr({width:0,height:0}),f("img",{onload:function(){var d=m[y.chartIndex];0===this.width&&(t(this,{position:"absolute",top:"-999em"}),a.body.appendChild(this));u[L]={width:this.width,height:this.height};Q.imgwidth=this.width;Q.imgheight=this.height;Q.element&&K(Q);this.parentNode&&this.parentNode.removeChild(this);y.imgCount--;if(!y.imgCount&&d&&!d.hasLoaded)d.onload()},src:L}),this.imgCount++)}return C};v.prototype.clipRect=function(a,d,c,f){var l=S()+"-",e=
142
+ this.createElement("clipPath").attr({id:l}).add(this.defs);a=this.rect(a,d,c,f,0).add(e);a.id=l;a.clipPath=e;a.count=0;return a};v.prototype.text=function(a,c,f,l){var e={};if(l&&(this.allowHTML||!this.forExport))return this.html(a,c,f);e.x=Math.round(c||0);f&&(e.y=Math.round(f));d(a)&&(e.text=a);a=this.createElement("text").attr(e);if(!l||this.forExport&&!this.allowHTML)a.xSetter=function(a,d,c){for(var f=c.getElementsByTagName("tspan"),l=c.getAttribute(d),e=0,t;e<f.length;e++)t=f[e],t.getAttribute(d)===
143
+ l&&t.setAttribute(d,a);c.setAttribute(d,a)};return a};v.prototype.fontMetrics=function(a,d){a=!this.styledMode&&/px/.test(a)||!p.getComputedStyle?a||d&&d.style&&d.style.fontSize||this.style&&this.style.fontSize:d&&w.prototype.getStyle.call(d,"font-size");a=/px/.test(a)?P(a):12;d=24>a?a+3:Math.round(1.2*a);return{h:d,b:Math.round(.8*d),f:a}};v.prototype.rotCorr=function(a,d,c){var f=a;d&&c&&(f=Math.max(f*Math.cos(d*h),4));return{x:-a/3*Math.sin(d*h),y:f}};v.prototype.pathToSegments=function(a){for(var d=
144
+ [],c=[],f={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},l=0;l<a.length;l++)G(c[0])&&K(a[l])&&c.length===f[c[0].toUpperCase()]&&a.splice(l,0,c[0].replace("M","L").replace("m","l")),"string"===typeof a[l]&&(c.length&&d.push(c.slice(0)),c.length=0),c.push(a[l]);d.push(c.slice(0));return d};v.prototype.label=function(a,d,c,f,l,e,t,g,b){return new D(this,a,d,c,f,l,e,t,g,b)};v.prototype.alignElements=function(){this.alignedObjects.forEach(function(a){return a.align()})};return v}();l(z.prototype,{Element:w,SVG_NS:v,
145
+ escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:E,draw:C});B.registerRendererType("svg",z,!0);"";return z});F(b,"Core/Renderer/HTML/HTMLElement.js",[b["Core/Globals.js"],b["Core/Renderer/SVG/SVGElement.js"],b["Core/Utilities.js"]],function(b,q,z){var x=this&&this.__extends||function(){var a=function(c,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var e in c)c.hasOwnProperty(e)&&(a[e]=c[e])};return a(c,e)};return function(c,
146
+ e){function g(){this.constructor=c}a(c,e);c.prototype=null===e?Object.create(e):(g.prototype=e.prototype,new g)}}(),w=b.isFirefox,D=b.isMS,E=b.isWebKit,k=b.win,r=z.css,m=z.defined,h=z.extend,a=z.pick,c=z.pInt;return function(e){function g(){return null!==e&&e.apply(this,arguments)||this}x(g,e);g.compose=function(a){if(-1===g.composedClasses.indexOf(a)){g.composedClasses.push(a);var c=g.prototype,e=a.prototype;e.getSpanCorrection=c.getSpanCorrection;e.htmlCss=c.htmlCss;e.htmlGetBBox=c.htmlGetBBox;
147
+ e.htmlUpdateTransform=c.htmlUpdateTransform;e.setSpanRotation=c.setSpanRotation}return a};g.prototype.getSpanCorrection=function(a,c,e){this.xCorr=-a*e;this.yCorr=-c};g.prototype.htmlCss=function(c){var e="SPAN"===this.element.tagName&&c&&"width"in c,g=a(e&&c.width,void 0);if(e){delete c.width;this.textWidth=g;var b=!0}c&&"ellipsis"===c.textOverflow&&(c.whiteSpace="nowrap",c.overflow="hidden");this.styles=h(this.styles,c);r(this.element,c);b&&this.htmlUpdateTransform();return this};g.prototype.htmlGetBBox=
148
+ function(){var a=this.element;return{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};g.prototype.htmlUpdateTransform=function(){if(this.added){var a=this.renderer,e=this.element,g=this.translateX||0,b=this.translateY||0,h=this.x||0,n=this.y||0,f=this.textAlign||"left",t={left:0,center:.5,right:1}[f],d=this.styles;d=d&&d.whiteSpace;r(e,{marginLeft:g,marginTop:b});!a.styledMode&&this.shadows&&this.shadows.forEach(function(a){r(a,{marginLeft:g+1,marginTop:b+1})});this.inverted&&
149
+ [].forEach.call(e.childNodes,function(d){a.invertChild(d,e)});if("SPAN"===e.tagName){var y=this.rotation,l=this.textWidth&&c(this.textWidth),k=[y,f,e.innerHTML,this.textWidth,this.textAlign].join(),K=void 0;K=!1;if(l!==this.oldTextWidth){if(this.textPxLength)var I=this.textPxLength;else r(e,{width:"",whiteSpace:d||"nowrap"}),I=e.offsetWidth;(l>this.oldTextWidth||I>l)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(r(e,{width:I>l||y?l+"px":"auto",display:"block",whiteSpace:d||
150
+ "normal"}),this.oldTextWidth=l,K=!0)}this.hasBoxWidthChanged=K;k!==this.cTT&&(K=a.fontMetrics(e.style.fontSize,e).b,!m(y)||y===(this.oldRotation||0)&&f===this.oldAlign||this.setSpanRotation(y,t,K),this.getSpanCorrection(!m(y)&&this.textPxLength||e.offsetWidth,K,t,y,f));r(e,{left:h+(this.xCorr||0)+"px",top:n+(this.yCorr||0)+"px"});this.cTT=k;this.oldRotation=y;this.oldAlign=f}}else this.alignOnAdd=!0};g.prototype.setSpanRotation=function(a,c,e){var g={},b=D&&!/Edge/.test(k.navigator.userAgent)?"-ms-transform":
151
+ E?"-webkit-transform":w?"MozTransform":k.opera?"-o-transform":void 0;b&&(g[b]=g.transform="rotate("+a+"deg)",g[b+(w?"Origin":"-origin")]=g.transformOrigin=100*c+"% "+e+"px",r(this.element,g))};g.composedClasses=[];return g}(q)});F(b,"Core/Renderer/HTML/HTMLRenderer.js",[b["Core/Renderer/HTML/AST.js"],b["Core/Renderer/SVG/SVGElement.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Utilities.js"]],function(b,q,z,B){var x=this&&this.__extends||function(){var b=function(h,a){b=Object.setPrototypeOf||
152
+ {__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var c in e)e.hasOwnProperty(c)&&(a[c]=e[c])};return b(h,a)};return function(h,a){function c(){this.constructor=h}b(h,a);h.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),D=B.attr,E=B.createElement,k=B.extend,r=B.pick;return function(m){function h(){return null!==m&&m.apply(this,arguments)||this}x(h,m);h.compose=function(a){-1===h.composedClasses.indexOf(a)&&(h.composedClasses.push(a),a.prototype.html=
153
+ h.prototype.html);return a};h.prototype.html=function(a,c,e){var g=this.createElement("span"),h=g.element,v=g.renderer,u=v.isSVG,p=function(a,c){["opacity","visibility"].forEach(function(f){a[f+"Setter"]=function(e,d,g){var l=a.div?a.div.style:c;q.prototype[f+"Setter"].call(this,e,d,g);l&&(l[d]=e)}});a.addedSetters=!0};g.textSetter=function(a){a!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,b.setElementHTML(this.element,r(a,"")),this.textStr=a,g.doTransform=!0)};u&&p(g,g.element.style);
154
+ g.xSetter=g.ySetter=g.alignSetter=g.rotationSetter=function(a,c){"align"===c?g.alignValue=g.textAlign=a:g[c]=a;g.doTransform=!0};g.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};g.attr({text:a,x:Math.round(c),y:Math.round(e)}).css({position:"absolute"});v.styledMode||g.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});h.style.whiteSpace="nowrap";g.css=g.htmlCss;u&&(g.add=function(a){var c=v.box.parentNode,f=[];if(this.parentGroup=a){var e=
155
+ a.div;if(!e){for(;a;)f.push(a),a=a.parentGroup;f.reverse().forEach(function(a){function d(d,c){a[c]=d;"translateX"===c?b.left=d+"px":b.top=d+"px";a.doTransform=!0}var l=D(a.element,"class"),t=a.styles||{};e=a.div=a.div||E("div",l?{className:l}:void 0,{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px",display:a.display,opacity:a.opacity,cursor:t.cursor,pointerEvents:t.pointerEvents,visibility:a.visibility},e||c);var b=e.style;k(a,{classSetter:function(a){return function(d){this.element.setAttribute("class",
156
+ d);a.className=d}}(e),on:function(){f[0].div&&g.on.apply({element:f[0].div,onEvents:a.onEvents},arguments);return a},translateXSetter:d,translateYSetter:d});a.addedSetters||p(a)})}}else e=c;e.appendChild(h);g.added=!0;g.alignOnAdd&&g.htmlUpdateTransform();return g});return g};h.composedClasses=[];return h}(z)});F(b,"Core/Axis/AxisDefaults.js",[],function(){var b;(function(b){b.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",
157
+ range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,
158
+ minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",
159
+ lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"};b.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var b=this.axis.chart.numberFormatter;return b(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",
160
+ textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};b.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};b.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};b.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};b.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(b||(b={}));return b});F(b,"Core/Foundation.js",[b["Core/Utilities.js"]],function(b){var x=b.addEvent,z=b.isFunction,B=b.objectEach,w=b.removeEvent,
161
+ D;(function(b){b.registerEventOptions=function(b,r){b.eventOptions=b.eventOptions||{};B(r.events,function(k,h){b.eventOptions[h]!==k&&(b.eventOptions[h]&&(w(b,h,b.eventOptions[h]),delete b.eventOptions[h]),z(k)&&(b.eventOptions[h]=k,x(b,h,k)))})}})(D||(D={}));return D});F(b,"Core/Axis/Tick.js",[b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,q,z){var x=q.deg2rad,w=z.clamp,D=z.correctFloat,E=z.defined,k=z.destroyObjectProperties,r=z.extend,m=z.fireEvent,h=z.isNumber,
162
+ a=z.merge,c=z.objectEach,e=z.pick;q=function(){function g(a,c,e,b,g){this.isNewLabel=this.isNew=!0;this.axis=a;this.pos=c;this.type=e||"";this.parameters=g||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;m(this,"init");e||b||this.addLabel()}g.prototype.addLabel=function(){var a=this,c=a.axis,g=c.options,p=c.chart,A=c.categories,n=c.logarithmic,f=c.names,t=a.pos,d=e(a.options&&a.options.labels,g.labels),y=c.tickPositions,l=t===y[0],k=t===y[y.length-1],K=
163
+ (!d.step||1===d.step)&&1===c.tickInterval;y=y.info;var I=a.label,G;A=this.parameters.category||(A?e(A[t],f[t],t):t);n&&h(A)&&(A=D(n.lin2log(A)));if(c.dateTime)if(y){var N=p.time.resolveDTLFormat(g.dateTimeLabelFormats[!g.grid&&y.higherRanks[t]||y.unitName]);var x=N.main}else h(A)&&(x=c.dateTime.getXDateFormat(A,g.dateTimeLabelFormats||{}));a.isFirst=l;a.isLast=k;var q={axis:c,chart:p,dateTimeLabelFormat:x,isFirst:l,isLast:k,pos:t,tick:a,tickPositionInfo:y,value:A};m(this,"labelFormat",q);var w=function(a){return d.formatter?
164
+ d.formatter.call(a,a):d.format?(a.text=c.defaultLabelFormatter.call(a),b.format(d.format,a,p)):c.defaultLabelFormatter.call(a,a)};g=w.call(q,q);var z=N&&N.list;a.shortenLabel=z?function(){for(G=0;G<z.length;G++)if(r(q,{dateTimeLabelFormat:z[G]}),I.attr({text:w.call(q,q)}),I.getBBox().width<c.getSlotWidth(a)-2*d.padding)return;I.attr({text:""})}:void 0;K&&c._addedPlotLB&&a.moveLabel(g,d);E(I)||a.movedLabel?I&&I.textStr!==g&&!K&&(!I.textWidth||d.style.width||I.styles.width||I.css({width:null}),I.attr({text:g}),
165
+ I.textPxLength=I.getBBox().width):(a.label=I=a.createLabel({x:0,y:0},g,d),a.rotation=0)};g.prototype.createLabel=function(c,e,b){var g=this.axis,h=g.chart;if(c=E(e)&&b.enabled?h.renderer.text(e,c.x,c.y,b.useHTML).add(g.labelGroup):null)h.styledMode||c.css(a(b.style)),c.textPxLength=c.getBBox().width;return c};g.prototype.destroy=function(){k(this,this.axis)};g.prototype.getPosition=function(a,c,e,b){var g=this.axis,n=g.chart,f=b&&n.oldChartHeight||n.chartHeight;a={x:a?D(g.translate(c+e,null,null,
166
+ b)+g.transB):g.left+g.offset+(g.opposite?(b&&n.oldChartWidth||n.chartWidth)-g.right-g.left:0),y:a?f-g.bottom+g.offset-(g.opposite?g.height:0):D(f-g.translate(c+e,null,null,b)-g.transB)};a.y=w(a.y,-1E5,1E5);m(this,"afterGetPosition",{pos:a});return a};g.prototype.getLabelPosition=function(a,c,e,b,g,n,f,t){var d=this.axis,p=d.transA,l=d.isLinked&&d.linkedParent?d.linkedParent.reversed:d.reversed,h=d.staggerLines,u=d.tickRotCorr||{x:0,y:0},k=b||d.reserveSpaceDefault?0:-d.labelOffset*("center"===d.labelAlign?
167
+ .5:1),v={},A=g.y;E(A)||(A=0===d.side?e.rotation?-8:-e.getBBox().height:2===d.side?u.y+8:Math.cos(e.rotation*x)*(u.y-e.getBBox(!1,0).height/2));a=a+g.x+k+u.x-(n&&b?n*p*(l?-1:1):0);c=c+A-(n&&!b?n*p*(l?1:-1):0);h&&(e=f/(t||1)%h,d.opposite&&(e=h-e-1),c+=d.labelOffset/h*e);v.x=a;v.y=Math.round(c);m(this,"afterGetLabelPosition",{pos:v,tickmarkOffset:n,index:f});return v};g.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0};g.prototype.getMarkPath=
168
+ function(a,c,e,b,g,n){return n.crispLine([["M",a,c],["L",a+(g?0:-e),c+(g?e:0)]],b)};g.prototype.handleOverflow=function(a){var c=this.axis,b=c.options.labels,g=a.x,h=c.chart.chartWidth,n=c.chart.spacing,f=e(c.labelLeft,Math.min(c.pos,n[3]));n=e(c.labelRight,Math.max(c.isRadial?0:c.pos+c.len,h-n[1]));var t=this.label,d=this.rotation,y={left:0,center:.5,right:1}[c.labelAlign||t.attr("align")],l=t.getBBox().width,k=c.getSlotWidth(this),m={},I=k,G=1,r;if(d||"justify"!==b.overflow)0>d&&g-y*l<f?r=Math.round(g/
169
+ Math.cos(d*x)-f):0<d&&g+y*l>n&&(r=Math.round((h-g)/Math.cos(d*x)));else if(h=g+(1-y)*l,g-y*l<f?I=a.x+I*(1-y)-f:h>n&&(I=n-a.x+I*y,G=-1),I=Math.min(k,I),I<k&&"center"===c.labelAlign&&(a.x+=G*(k-I-y*(k-Math.min(l,I)))),l>I||c.autoRotation&&(t.styles||{}).width)r=I;r&&(this.shortenLabel?this.shortenLabel():(m.width=Math.floor(r)+"px",(b.style||{}).textOverflow||(m.textOverflow="ellipsis"),t.css(m)))};g.prototype.moveLabel=function(a,e){var b=this,g=b.label,h=b.axis,n=h.reversed,f=!1;g&&g.textStr===a?
170
+ (b.movedLabel=g,f=!0,delete b.label):c(h.ticks,function(d){f||d.isNew||d===b||!d.label||d.label.textStr!==a||(b.movedLabel=d.label,f=!0,d.labelPos=b.movedLabel.xy,delete d.label)});if(!f&&(b.labelPos||g)){var t=b.labelPos||g.xy;g=h.horiz?n?0:h.width+h.left:t.x;h=h.horiz?t.y:n?h.width+h.left:0;b.movedLabel=b.createLabel({x:g,y:h},a,e);b.movedLabel&&b.movedLabel.attr({opacity:0})}};g.prototype.render=function(a,c,b){var g=this.axis,h=g.horiz,n=this.pos,f=e(this.tickmarkOffset,g.tickmarkOffset);n=this.getPosition(h,
171
+ n,f,c);f=n.x;var t=n.y;g=h&&f===g.pos+g.len||!h&&t===g.pos?-1:1;h=e(b,this.label&&this.label.newOpacity,1);b=e(b,1);this.isActive=!0;this.renderGridLine(c,b,g);this.renderMark(n,b,g);this.renderLabel(n,c,h,a);this.isNew=!1;m(this,"afterRender")};g.prototype.renderGridLine=function(a,c,b){var g=this.axis,h=g.options,n={},f=this.pos,t=this.type,d=e(this.tickmarkOffset,g.tickmarkOffset),y=g.chart.renderer,l=this.gridLine,k=h.gridLineWidth,u=h.gridLineColor,m=h.gridLineDashStyle;"minor"===this.type&&
172
+ (k=h.minorGridLineWidth,u=h.minorGridLineColor,m=h.minorGridLineDashStyle);l||(g.chart.styledMode||(n.stroke=u,n["stroke-width"]=k||0,n.dashstyle=m),t||(n.zIndex=1),a&&(c=0),this.gridLine=l=y.path().attr(n).addClass("highcharts-"+(t?t+"-":"")+"grid-line").add(g.gridGroup));if(l&&(b=g.getPlotLinePath({value:f+d,lineWidth:l.strokeWidth()*b,force:"pass",old:a})))l[a||this.isNew?"attr":"animate"]({d:b,opacity:c})};g.prototype.renderMark=function(a,c,b){var g=this.axis,h=g.options,n=g.chart.renderer,f=
173
+ this.type,t=g.tickSize(f?f+"Tick":"tick"),d=a.x;a=a.y;var y=e(h["minor"!==f?"tickWidth":"minorTickWidth"],!f&&g.isXAxis?1:0);h=h["minor"!==f?"tickColor":"minorTickColor"];var l=this.mark,k=!l;t&&(g.opposite&&(t[0]=-t[0]),l||(this.mark=l=n.path().addClass("highcharts-"+(f?f+"-":"")+"tick").add(g.axisGroup),g.chart.styledMode||l.attr({stroke:h,"stroke-width":y})),l[k?"attr":"animate"]({d:this.getMarkPath(d,a,t[0],l.strokeWidth()*b,g.horiz,n),opacity:c}))};g.prototype.renderLabel=function(a,c,g,b){var p=
174
+ this.axis,n=p.horiz,f=p.options,t=this.label,d=f.labels,y=d.step;p=e(this.tickmarkOffset,p.tickmarkOffset);var l=a.x;a=a.y;var k=!0;t&&h(l)&&(t.xy=a=this.getLabelPosition(l,a,t,n,d,p,b,y),this.isFirst&&!this.isLast&&!f.showFirstLabel||this.isLast&&!this.isFirst&&!f.showLastLabel?k=!1:!n||d.step||d.rotation||c||0===g||this.handleOverflow(a),y&&b%y&&(k=!1),k&&h(a.y)?(a.opacity=g,t[this.isNewLabel?"attr":"animate"](a),this.isNewLabel=!1):(t.attr("y",-9999),this.isNewLabel=!0))};g.prototype.replaceMovedLabel=
175
+ function(){var a=this.label,c=this.axis,e=c.reversed;if(a&&!this.isNew){var g=c.horiz?e?c.left:c.width+c.left:a.xy.x;e=c.horiz?a.xy.y:e?c.width+c.top:c.top;a.animate({x:g,y:e,opacity:0},void 0,a.destroy);delete this.label}c.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return g}();"";return q});F(b,"Core/Axis/Axis.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Axis/AxisDefaults.js"],b["Core/Color/Color.js"],b["Core/DefaultOptions.js"],b["Core/Foundation.js"],b["Core/Globals.js"],
176
+ b["Core/Axis/Tick.js"],b["Core/Utilities.js"]],function(b,q,z,B,w,D,E,k){var r=b.animObject,m=B.defaultOptions,h=w.registerEventOptions,a=D.deg2rad,c=k.arrayMax,e=k.arrayMin,g=k.clamp,C=k.correctFloat,v=k.defined,u=k.destroyObjectProperties,p=k.erase,A=k.error,n=k.extend,f=k.fireEvent,t=k.getMagnitude,d=k.isArray,y=k.isNumber,l=k.isString,H=k.merge,K=k.normalizeTickInterval,I=k.objectEach,G=k.pick,N=k.relativeLength,x=k.removeEvent,P=k.splat,S=k.syncTimeout;b=function(){function b(a,c){this.zoomEnabled=
177
+ this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=
178
+ this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0;this.init(a,c)}b.prototype.init=function(a,c){var d=c.isX;this.chart=a;this.horiz=a.inverted&&!this.isZAxis?!d:d;this.isXAxis=d;this.coll=this.coll||(d?"xAxis":"yAxis");f(this,"init",{userOptions:c});this.opposite=G(c.opposite,this.opposite);this.side=G(c.side,
179
+ this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(c);var l=this.options,e=l.labels,b=l.type;this.userOptions=c;this.minPixelPadding=0;this.reversed=G(l.reversed,this.reversed);this.visible=l.visible;this.zoomEnabled=l.zoomEnabled;this.hasNames="category"===b||!0===l.categories;this.categories=l.categories||this.hasNames;this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups={};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=v(l.linkedTo);this.ticks=
180
+ {};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=l.minRange||l.maxZoom;this.range=l.range;this.offset=l.offset||0;this.min=this.max=null;c=G(l.crosshair,P(a.options.tooltip.crosshairs)[d?0:1]);this.crosshair=!0===c?{}:c;-1===a.axes.indexOf(this)&&(d?a.axes.splice(a.xAxis.length,0,this):a.axes.push(this),a[this.coll].push(this));this.series=this.series||[];a.inverted&&!this.isZAxis&&d&&"undefined"===typeof this.reversed&&
181
+ (this.reversed=!0);this.labelRotation=y(e.rotation)?e.rotation:void 0;h(this,l);f(this,"afterInit")};b.prototype.setOptions=function(a){this.options=H(q.defaultXAxisOptions,"yAxis"===this.coll&&q.defaultYAxisOptions,[q.defaultTopAxisOptions,q.defaultRightAxisOptions,q.defaultBottomAxisOptions,q.defaultLeftAxisOptions][this.side],H(m[this.coll],a));f(this,"afterSetOptions",{userOptions:a})};b.prototype.defaultLabelFormatter=function(a){var c=this.axis;a=this.chart.numberFormatter;var d=y(this.value)?
182
+ this.value:NaN,f=c.chart.time,l=this.dateTimeLabelFormat,e=m.lang,b=e.numericSymbols;e=e.numericSymbolMagnitude||1E3;var g=c.logarithmic?Math.abs(d):c.tickInterval,t=b&&b.length;if(c.categories)var n=""+this.value;else if(l)n=f.dateFormat(l,d);else if(t&&1E3<=g)for(;t--&&"undefined"===typeof n;)c=Math.pow(e,t+1),g>=c&&0===10*d%c&&null!==b[t]&&0!==d&&(n=a(d/c,-1)+b[t]);"undefined"===typeof n&&(n=1E4<=Math.abs(d)?a(d,-1):a(d,-1,void 0,""));return n};b.prototype.getSeriesExtremes=function(){var a=this,
183
+ c=a.chart,d;f(this,"getSeriesExtremes",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.stacking&&a.stacking.buildStacks();a.series.forEach(function(f){if(f.visible||!c.options.chart.ignoreHiddenSeries){var l=f.options,e=l.threshold;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=e&&(e=null);if(a.isXAxis){if(l=f.xData,l.length){l=a.logarithmic?l.filter(a.validatePositiveValue):l;d=f.getXExtremes(l);var b=d.min;var g=d.max;y(b)||b instanceof Date||
184
+ (l=l.filter(y),d=f.getXExtremes(l),b=d.min,g=d.max);l.length&&(a.dataMin=Math.min(G(a.dataMin,b),b),a.dataMax=Math.max(G(a.dataMax,g),g))}}else if(f=f.applyExtremes(),y(f.dataMin)&&(b=f.dataMin,a.dataMin=Math.min(G(a.dataMin,b),b)),y(f.dataMax)&&(g=f.dataMax,a.dataMax=Math.max(G(a.dataMax,g),g)),v(e)&&(a.threshold=e),!l.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});f(this,"afterGetSeriesExtremes")};b.prototype.translate=function(a,c,d,f,l,e){var b=this.linkedParent||this,g=f&&b.old?
185
+ b.old.min:b.min,t=b.minPixelPadding;l=(b.isOrdinal||b.brokenAxis&&b.brokenAxis.hasBreaks||b.logarithmic&&l)&&b.lin2val;var n=1,h=0;f=f&&b.old?b.old.transA:b.transA;f||(f=b.transA);d&&(n*=-1,h=b.len);b.reversed&&(n*=-1,h-=n*(b.sector||b.len));c?(a=(a*n+h-t)/f+g,l&&(a=b.lin2val(a))):(l&&(a=b.val2lin(a)),a=y(g)?n*(a-g)*f+h+n*t+(y(e)?f*e:0):void 0);return a};b.prototype.toPixels=function(a,c){return this.translate(a,!1,!this.horiz,null,!0)+(c?0:this.pos)};b.prototype.toValue=function(a,c){return this.translate(a-
186
+ (c?0:this.pos),!0,!this.horiz,null,!0)};b.prototype.getPlotLinePath=function(a){function c(a,c,d){if("pass"!==H&&a<c||a>d)H?a=g(a,c,d):r=!0;return a}var d=this,l=d.chart,e=d.left,b=d.top,t=a.old,n=a.value,h=a.lineWidth,p=t&&l.oldChartHeight||l.chartHeight,k=t&&l.oldChartWidth||l.chartWidth,u=d.transB,m=a.translatedValue,H=a.force,v,A,K,I,r;a={value:n,lineWidth:h,old:t,force:H,acrossPanes:a.acrossPanes,translatedValue:m};f(this,"getPlotLinePath",a,function(a){m=G(m,d.translate(n,null,null,t));m=g(m,
187
+ -1E5,1E5);v=K=Math.round(m+u);A=I=Math.round(p-m-u);y(m)?d.horiz?(A=b,I=p-d.bottom,v=K=c(v,e,e+d.width)):(v=e,K=k-d.right,A=I=c(A,b,b+d.height)):(r=!0,H=!1);a.path=r&&!H?null:l.renderer.crispLine([["M",v,A],["L",K,I]],h||1)});return a.path};b.prototype.getLinearTickPositions=function(a,c,d){var f=C(Math.floor(c/a)*a);d=C(Math.ceil(d/a)*a);var l=[],e;C(f+a)===f&&(e=20);if(this.single)return[c];for(c=f;c<=d;){l.push(c);c=C(c+a,e);if(c===b)break;var b=c}return l};b.prototype.getMinorTickInterval=function(){var a=
188
+ this.options;return!0===a.minorTicks?G(a.minorTickInterval,"auto"):!1===a.minorTicks?null:a.minorTickInterval};b.prototype.getMinorTickPositions=function(){var a=this.options,c=this.tickPositions,d=this.minorTickInterval,f=this.pointRangePadding||0,l=this.min-f;f=this.max+f;var e=f-l,b=[];if(e&&e/d<this.len/3){var g=this.logarithmic;if(g)this.paddedTicks.forEach(function(a,c,f){c&&b.push.apply(b,g.getLogTickPositions(d,f[c-1],f[c],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())b=
189
+ b.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(d),l,f,a.startOfWeek));else for(a=l+(c[0]-l)%d;a<=f&&a!==b[0];a+=d)b.push(a)}0!==b.length&&this.trimTicks(b);return b};b.prototype.adjustForMinRange=function(){var a=this.options,d=this.logarithmic,f=this.min,l=this.max,b=0,g,t,n,h;this.isXAxis&&"undefined"===typeof this.minRange&&!d&&(v(a.min)||v(a.max)||v(a.floor)||v(a.ceiling)?this.minRange=null:(this.series.forEach(function(a){n=a.xData;h=a.xIncrement?1:n.length-1;if(1<n.length)for(g=
190
+ h;0<g;g--)if(t=n[g]-n[g-1],!b||t<b)b=t}),this.minRange=Math.min(5*b,this.dataMax-this.dataMin)));if(l-f<this.minRange){var y=this.dataMax-this.dataMin>=this.minRange;var p=this.minRange;var k=(p-l+f)/2;k=[f-k,G(a.min,f-k)];y&&(k[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);f=c(k);l=[f+p,G(a.max,f+p)];y&&(l[2]=d?d.log2lin(this.dataMax):this.dataMax);l=e(l);l-f<p&&(k[0]=l-p,k[1]=G(a.min,l-p),f=c(k))}this.min=f;this.max=l};b.prototype.getClosest=function(){var a;this.categories?
191
+ a=1:this.series.forEach(function(c){var d=c.closestPointRange,f=c.visible||!c.chart.options.chart.ignoreHiddenSeries;!c.noSharedTooltip&&v(d)&&f&&(a=v(a)?Math.min(a,d):d)});return a};b.prototype.nameToX=function(a){var c=d(this.categories),f=c?this.categories:this.names,l=a.options.x;a.series.requireSorting=!1;v(l)||(l=this.options.uniqueNames?c?f.indexOf(a.name):G(f.keys[a.name],-1):a.series.autoIncrement());if(-1===l){if(!c)var b=f.length}else b=l;"undefined"!==typeof b&&(this.names[b]=a.name,this.names.keys[a.name]=
192
+ b);return b};b.prototype.updateNames=function(){var a=this,c=this.names;0<c.length&&(Object.keys(c.keys).forEach(function(a){delete c.keys[a]}),c.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(c){c.xIncrement=null;if(!c.points||c.isDirtyData)a.max=Math.max(a.max,c.xData.length-1),c.processData(),c.generatePoints();c.data.forEach(function(d,f){if(d&&d.options&&"undefined"!==typeof d.name){var l=a.nameToX(d);"undefined"!==typeof l&&l!==d.x&&(d.x=l,c.xData[f]=l)}})}))};b.prototype.setAxisTranslation=
193
+ function(){var a=this,c=a.max-a.min,d=a.linkedParent,b=!!a.categories,e=a.isXAxis,g=a.axisPointRange||0,t=0,n=0,h=a.transA;if(e||b||g){var y=a.getClosest();d?(t=d.minPointOffset,n=d.pointRangePadding):a.series.forEach(function(c){var d=b?1:e?G(c.options.pointRange,y,0):a.axisPointRange||0,f=c.options.pointPlacement;g=Math.max(g,d);if(!a.single||b)c=c.is("xrange")?!e:e,t=Math.max(t,c&&l(f)?0:d/2),n=Math.max(n,c&&"on"===f?0:d)});d=a.ordinal&&a.ordinal.slope&&y?a.ordinal.slope/y:1;a.minPointOffset=t*=
194
+ d;a.pointRangePadding=n*=d;a.pointRange=Math.min(g,a.single&&b?1:c);e&&(a.closestPointRange=y)}a.translationSlope=a.transA=h=a.staticScale||a.len/(c+n||1);a.transB=a.horiz?a.left:a.bottom;a.minPixelPadding=h*t;f(this,"afterSetAxisTranslation")};b.prototype.minFromRange=function(){return this.max-this.range};b.prototype.setTickInterval=function(a){var c=this.chart,d=this.logarithmic,l=this.options,b=this.isXAxis,e=this.isLinked,g=l.tickPixelInterval,n=this.categories,h=this.softThreshold,p=l.maxPadding,
195
+ k=l.minPadding,u=y(l.tickInterval)&&0<=l.tickInterval?l.tickInterval:void 0,m=y(this.threshold)?this.threshold:null;this.dateTime||n||e||this.getTickAmount();var H=G(this.userMin,l.min);var I=G(this.userMax,l.max);if(e){this.linkedParent=c[this.coll][l.linkedTo];var r=this.linkedParent.getExtremes();this.min=G(r.min,r.dataMin);this.max=G(r.max,r.dataMax);l.type!==this.linkedParent.options.type&&A(11,1,c)}else{if(h&&v(m))if(this.dataMin>=m)r=m,k=0;else if(this.dataMax<=m){var Q=m;p=0}this.min=G(H,
196
+ r,this.dataMin);this.max=G(I,Q,this.dataMax)}d&&(this.positiveValuesOnly&&!a&&0>=Math.min(this.min,G(this.dataMin,this.min))&&A(10,1,c),this.min=C(d.log2lin(this.min),16),this.max=C(d.log2lin(this.max),16));this.range&&v(this.max)&&(this.userMin=this.min=H=Math.max(this.dataMin,this.minFromRange()),this.userMax=I=this.max,this.range=null);f(this,"foundExtremes");this.beforePadding&&this.beforePadding();this.adjustForMinRange();!(n||this.axisPointRange||this.stacking&&this.stacking.usePercentage||
197
+ e)&&v(this.min)&&v(this.max)&&(c=this.max-this.min)&&(!v(H)&&k&&(this.min-=c*k),!v(I)&&p&&(this.max+=c*p));y(this.userMin)||(y(l.softMin)&&l.softMin<this.min&&(this.min=H=l.softMin),y(l.floor)&&(this.min=Math.max(this.min,l.floor)));y(this.userMax)||(y(l.softMax)&&l.softMax>this.max&&(this.max=I=l.softMax),y(l.ceiling)&&(this.max=Math.min(this.max,l.ceiling)));h&&v(this.dataMin)&&(m=m||0,!v(H)&&this.min<m&&this.dataMin>=m?this.min=this.options.minRange?Math.min(m,this.max-this.minRange):m:!v(I)&&
198
+ this.max>m&&this.dataMax<=m&&(this.max=this.options.minRange?Math.max(m,this.min+this.minRange):m));y(this.min)&&y(this.max)&&!this.chart.polar&&this.min>this.max&&(v(this.options.min)?this.max=this.min:v(this.options.max)&&(this.min=this.max));this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:e&&this.linkedParent&&!u&&g===this.linkedParent.options.tickPixelInterval?u=this.linkedParent.tickInterval:G(u,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-
199
+ 1,1):void 0,n?1:(this.max-this.min)*g/Math.max(this.len,g));if(b&&!a){var N=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(a){a.forceCrop=a.forceCropping&&a.forceCropping();a.processData(N)});f(this,"postProcessData",{hasExtemesChanged:N})}this.setAxisTranslation();f(this,"initialAxisTranslation");this.pointRange&&!u&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));a=G(l.minTickInterval,this.dateTime&&!this.series.some(function(a){return a.noSharedTooltip})?
200
+ this.closestPointRange:0);!u&&this.tickInterval<a&&(this.tickInterval=a);this.dateTime||this.logarithmic||u||(this.tickInterval=K(this.tickInterval,void 0,t(this.tickInterval),G(l.allowDecimals,.5>this.tickInterval||void 0!==this.tickAmount),!!this.tickAmount));this.tickAmount||(this.tickInterval=this.unsquish());this.setTickPositions()};b.prototype.setTickPositions=function(){var a=this.options,c=a.tickPositions,d=this.getMinorTickInterval(),l=this.hasVerticalPanning(),b="colorAxis"===this.coll,
201
+ e=(b||!l)&&a.startOnTick;l=(b||!l)&&a.endOnTick;b=a.tickPositioner;this.tickmarkOffset=this.categories&&"between"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&v(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=c&&c.slice();!d&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?
202
+ d=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(d=[this.min,this.max],A(19,!1,this.chart)),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,b&&(b=b.apply(this,
203
+ [this.min,this.max])))&&(this.tickPositions=d=b);this.paddedTicks=d.slice(0);this.trimTicks(d,e,l);this.isLinked||(this.single&&2>d.length&&!this.categories&&!this.series.some(function(a){return a.is("heatmap")&&"between"===a.options.pointPlacement})&&(this.min-=.5,this.max+=.5),c||b||this.adjustTickAmount());f(this,"afterSetTickPositions")};b.prototype.trimTicks=function(a,c,d){var l=a[0],b=a[a.length-1],e=!this.isOrdinal&&this.minPointOffset||0;f(this,"trimTicks");if(!this.isLinked){if(c&&-Infinity!==
204
+ l)this.min=l;else for(;this.min-e>a[0];)a.shift();if(d)this.max=b;else for(;this.max+e<a[a.length-1];)a.pop();0===a.length&&v(l)&&!this.options.tickPositions&&a.push((b+l)/2)}};b.prototype.alignToOthers=function(){var a={},c=this.options,d;!1!==this.chart.options.chart.alignTicks&&c.alignTicks&&!1!==c.startOnTick&&!1!==c.endOnTick&&!this.logarithmic&&this.chart[this.coll].forEach(function(c){var f=c.options;f=[c.horiz?f.left:f.top,f.width,f.height,f.pane].join();c.series.length&&(a[f]?d=!0:a[f]=1)});
205
+ return d};b.prototype.getTickAmount=function(){var a=this.options,c=a.tickPixelInterval,d=a.tickAmount;!v(a.tickInterval)&&!d&&this.len<c&&!this.isRadial&&!this.logarithmic&&a.startOnTick&&a.endOnTick&&(d=2);!d&&this.alignToOthers()&&(d=Math.ceil(this.len/c)+1);4>d&&(this.finalTickAmt=d,d=5);this.tickAmount=d};b.prototype.adjustTickAmount=function(){var a=this.options,c=this.tickInterval,d=this.tickPositions,f=this.tickAmount,l=this.finalTickAmt,b=d&&d.length,e=G(this.threshold,this.softThreshold?
206
+ 0:null);if(this.hasData()&&y(this.min)&&y(this.max)){if(b<f){for(;d.length<f;)d.length%2||this.min===e?d.push(C(d[d.length-1]+c)):d.unshift(C(d[0]-c));this.transA*=(b-1)/(f-1);this.min=a.startOnTick?d[0]:Math.min(this.min,d[0]);this.max=a.endOnTick?d[d.length-1]:Math.max(this.max,d[d.length-1])}else b>f&&(this.tickInterval*=2,this.setTickPositions());if(v(l)){for(c=a=d.length;c--;)(3===l&&1===c%2||2>=l&&0<c&&c<a-1)&&d.splice(c,1);this.finalTickAmt=void 0}}};b.prototype.setScale=function(){var a=!1,
207
+ c=!1;this.series.forEach(function(d){a=a||d.isDirtyData||d.isDirty;c=c||d.xAxis&&d.xAxis.isDirty||!1});this.setAxisSize();var d=this.len!==(this.old&&this.old.len);d||a||c||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=d||this.min!==(this.old&&this.old.min)||this.max!==
208
+ (this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks();a&&this.panningState&&(this.panningState.isDirty=!0);f(this,"afterSetScale")};b.prototype.setExtremes=function(a,c,d,l,b){var e=this,g=e.chart;d=G(d,!0);e.series.forEach(function(a){delete a.kdTree});b=n(b,{min:a,max:c});f(e,"setExtremes",b,function(){e.userMin=a;e.userMax=c;e.eventArgs=b;d&&g.redraw(l)})};b.prototype.zoom=function(a,c){var d=this,l=this.dataMin,b=this.dataMax,e=this.options,g=Math.min(l,G(e.min,l)),t=Math.max(b,
209
+ G(e.max,b));a={newMin:a,newMax:c};f(this,"zoom",a,function(a){var c=a.newMin,f=a.newMax;if(c!==d.min||f!==d.max)d.allowZoomOutside||(v(l)&&(c<g&&(c=g),c>t&&(c=t)),v(b)&&(f<g&&(f=g),f>t&&(f=t))),d.displayBtn="undefined"!==typeof c||"undefined"!==typeof f,d.setExtremes(c,f,!1,void 0,{trigger:"zoom"});a.zoomed=!0});return a.zoomed};b.prototype.setAxisSize=function(){var a=this.chart,c=this.options,d=c.offsets||[0,0,0,0],f=this.horiz,l=this.width=Math.round(N(G(c.width,a.plotWidth-d[3]+d[1]),a.plotWidth)),
210
+ b=this.height=Math.round(N(G(c.height,a.plotHeight-d[0]+d[2]),a.plotHeight)),e=this.top=Math.round(N(G(c.top,a.plotTop+d[0]),a.plotHeight,a.plotTop));c=this.left=Math.round(N(G(c.left,a.plotLeft+d[3]),a.plotWidth,a.plotLeft));this.bottom=a.chartHeight-b-e;this.right=a.chartWidth-l-c;this.len=Math.max(f?l:b,0);this.pos=f?c:e};b.prototype.getExtremes=function(){var a=this.logarithmic;return{min:a?C(a.lin2log(this.min)):this.min,max:a?C(a.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,
211
+ userMin:this.userMin,userMax:this.userMax}};b.prototype.getThreshold=function(a){var c=this.logarithmic,d=c?c.lin2log(this.min):this.min;c=c?c.lin2log(this.max):this.max;null===a||-Infinity===a?a=d:Infinity===a?a=c:d>a?a=d:c<a&&(a=c);return this.translate(a,0,1,0,1)};b.prototype.autoLabelAlign=function(a){var c=(G(a,0)-90*this.side+720)%360;a={align:"center"};f(this,"autoLabelAlign",a,function(a){15<c&&165>c?a.align="right":195<c&&345>c&&(a.align="left")});return a.align};b.prototype.tickSize=function(a){var c=
212
+ this.options,d=G(c["tick"===a?"tickWidth":"minorTickWidth"],"tick"===a&&this.isXAxis&&!this.categories?1:0),l=c["tick"===a?"tickLength":"minorTickLength"];if(d&&l){"inside"===c[a+"Position"]&&(l=-l);var b=[l,d]}a={tickSize:b};f(this,"afterTickSize",a);return a.tickSize};b.prototype.labelMetrics=function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)};b.prototype.unsquish=function(){var c=
213
+ this.options.labels,d=this.horiz,f=this.tickInterval,l=this.len/(((this.categories?1:0)+this.max-this.min)/f),b=c.rotation,e=this.labelMetrics(),g=Math.max(this.max-this.min,0),t=function(a){var c=a/(l||1);c=1<c?Math.ceil(c):1;c*f>g&&Infinity!==a&&Infinity!==l&&g&&(c=Math.ceil(g/f));return C(c*f)},n=f,h,p,k=Number.MAX_VALUE;if(d){if(!c.staggerLines&&!c.step)if(y(b))var u=[b];else l<c.autoRotationLimit&&(u=c.autoRotation);u&&u.forEach(function(c){if(c===b||c&&-90<=c&&90>=c){p=t(Math.abs(e.h/Math.sin(a*
214
+ c)));var d=p+Math.abs(c/360);d<k&&(k=d,h=c,n=p)}})}else c.step||(n=t(e.h));this.autoRotation=u;this.labelRotation=G(h,y(b)?b:0);return n};b.prototype.getSlotWidth=function(a){var c=this.chart,d=this.horiz,f=this.options.labels,l=Math.max(this.tickPositions.length-(this.categories?0:1),1),b=c.margin[3];if(a&&y(a.slotWidth))return a.slotWidth;if(d&&2>f.step)return f.rotation?0:(this.staggerLines||1)*this.len/l;if(!d){a=f.style.width;if(void 0!==a)return parseInt(String(a),10);if(b)return b-c.spacing[3]}return.33*
215
+ c.chartWidth};b.prototype.renderUnsquish=function(){var a=this.chart,c=a.renderer,d=this.tickPositions,f=this.ticks,b=this.options.labels,e=b.style,g=this.horiz,t=this.getSlotWidth(),n=Math.max(1,Math.round(t-2*b.padding)),h={},y=this.labelMetrics(),p=e.textOverflow,k=0;l(b.rotation)||(h.rotation=b.rotation||0);d.forEach(function(a){a=f[a];a.movedLabel&&a.replaceMovedLabel();a&&a.label&&a.label.textPxLength>k&&(k=a.label.textPxLength)});this.maxLabelLength=k;if(this.autoRotation)k>n&&k>y.h?h.rotation=
216
+ this.labelRotation:this.labelRotation=0;else if(t){var u=n;if(!p){var m="clip";for(n=d.length;!g&&n--;){var H=d[n];if(H=f[H].label)H.styles&&"ellipsis"===H.styles.textOverflow?H.css({textOverflow:"clip"}):H.textPxLength>t&&H.css({width:t+"px"}),H.getBBox().height>this.len/d.length-(y.h-y.f)&&(H.specificTextOverflow="ellipsis")}}}h.rotation&&(u=k>.5*a.chartHeight?.33*a.chartHeight:k,p||(m="ellipsis"));if(this.labelAlign=b.align||this.autoLabelAlign(this.labelRotation))h.align=this.labelAlign;d.forEach(function(a){var c=
217
+ (a=f[a])&&a.label,d=e.width,l={};c&&(c.attr(h),a.shortenLabel?a.shortenLabel():u&&!d&&"nowrap"!==e.whiteSpace&&(u<c.textPxLength||"SPAN"===c.element.tagName)?(l.width=u+"px",p||(l.textOverflow=c.specificTextOverflow||m),c.css(l)):c.styles&&c.styles.width&&!l.width&&!d&&c.css({width:null}),delete c.specificTextOverflow,a.rotation=h.rotation)},this);this.tickRotCorr=c.rotCorr(y.b,this.labelRotation||0,0!==this.side)};b.prototype.hasData=function(){return this.series.some(function(a){return a.hasData()})||
218
+ this.options.showEmpty&&v(this.min)&&v(this.max)};b.prototype.addTitle=function(a){var c=this.chart.renderer,d=this.horiz,f=this.opposite,l=this.options.title,b=this.chart.styledMode,e;this.axisTitle||((e=l.textAlign)||(e=(d?{low:"left",middle:"center",high:"right"}:{low:f?"right":"left",middle:"center",high:f?"left":"right"})[l.align]),this.axisTitle=c.text(l.text||"",0,0,l.useHTML).attr({zIndex:7,rotation:l.rotation,align:e}).addClass("highcharts-axis-title"),b||this.axisTitle.css(H(l.style)),this.axisTitle.add(this.axisGroup),
219
+ this.axisTitle.isNew=!0);b||l.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"});this.axisTitle[a?"show":"hide"](a)};b.prototype.generateTick=function(a){var c=this.ticks;c[a]?c[a].addLabel():c[a]=new E(this,a)};b.prototype.getOffset=function(){var a=this,c=this,d=c.chart,l=c.horiz,b=c.options,e=c.side,g=c.ticks,t=c.tickPositions,n=c.coll,h=c.axisParent,y=d.renderer,p=d.inverted&&!c.isZAxis?[1,0,3,2][e]:e,k=c.hasData(),u=b.title,m=b.labels,H=d.axisOffset;d=d.clipOffset;var A=[-1,
220
+ 1,1,-1][e],K=b.className,r,C=0,N=0,x=0;c.showAxis=r=k||b.showEmpty;c.staggerLines=c.horiz&&m.staggerLines||void 0;if(!c.axisGroup){var q=function(c,d,f){return y.g(c).attr({zIndex:f}).addClass("highcharts-"+n.toLowerCase()+d+" "+(a.isRadial?"highcharts-radial-axis"+d+" ":"")+(K||"")).add(h)};c.gridGroup=q("grid","-grid",b.gridZIndex);c.axisGroup=q("axis","",b.zIndex);c.labelGroup=q("axis-labels","-labels",m.zIndex)}k||c.isLinked?(t.forEach(function(a){c.generateTick(a)}),c.renderUnsquish(),c.reserveSpaceDefault=
221
+ 0===e||2===e||{1:"left",3:"right"}[e]===c.labelAlign,G(m.reserveSpace,"center"===c.labelAlign?!0:null,c.reserveSpaceDefault)&&t.forEach(function(a){x=Math.max(g[a].getLabelSize(),x)}),c.staggerLines&&(x*=c.staggerLines),c.labelOffset=x*(c.opposite?-1:1)):I(g,function(a,c){a.destroy();delete g[c]});if(u&&u.text&&!1!==u.enabled&&(c.addTitle(r),r&&!1!==u.reserveSpace)){c.titleOffset=C=c.axisTitle.getBBox()[l?"height":"width"];var E=u.offset;N=v(E)?0:G(u.margin,l?5:10)}c.renderLine();c.offset=A*G(b.offset,
222
+ H[e]?H[e]+(b.margin||0):0);c.tickRotCorr=c.tickRotCorr||{x:0,y:0};u=0===e?-c.labelMetrics().h:2===e?c.tickRotCorr.y:0;k=Math.abs(x)+N;x&&(k=k-u+A*(l?G(m.y,c.tickRotCorr.y+8*A):m.x));c.axisTitleMargin=G(E,k);c.getMaxLabelDimensions&&(c.maxLabelDimensions=c.getMaxLabelDimensions(g,t));"colorAxis"!==n&&(l=this.tickSize("tick"),H[e]=Math.max(H[e],(c.axisTitleMargin||0)+C+A*c.offset,k,t&&t.length&&l?l[0]+A*c.offset:0),b=!c.axisLine||b.offset?0:2*Math.floor(c.axisLine.strokeWidth()/2),d[p]=Math.max(d[p],
223
+ b));f(this,"afterGetOffset")};b.prototype.getLinePath=function(a){var c=this.chart,d=this.opposite,f=this.offset,l=this.horiz,b=this.left+(d?this.width:0)+f;f=c.chartHeight-this.bottom-(d?this.height:0)+f;d&&(a*=-1);return c.renderer.crispLine([["M",l?this.left:b,l?f:this.top],["L",l?c.chartWidth-this.right:b,l?f:c.chartHeight-this.bottom]],a)};b.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||
224
+ this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))};b.prototype.getTitlePosition=function(){var a=this.horiz,c=this.left,d=this.top,l=this.len,b=this.options.title,e=a?c:d,g=this.opposite,t=this.offset,n=b.x,h=b.y,y=this.axisTitle,p=this.chart.renderer.fontMetrics(b.style.fontSize,y);y=Math.max(y.getBBox(null,0).height-p.h-1,0);l={low:e+(a?0:l),middle:e+l/2,high:e+(a?l:0)}[b.align];c=(a?d+this.height:c)+(a?1:-1)*(g?-1:1)*this.axisTitleMargin+[-y,y,
225
+ p.f,-y][this.side];a={x:a?l+n:c+(g?this.width:0)+t+n,y:a?c+h-(g?this.height:0)+t:l+h};f(this,"afterGetTitlePosition",{titlePosition:a});return a};b.prototype.renderMinorTick=function(a,c){var d=this.minorTicks;d[a]||(d[a]=new E(this,a,"minor"));c&&d[a].isNew&&d[a].render(null,!0);d[a].render(null,!1,1)};b.prototype.renderTick=function(a,c,d){var f=this.ticks;if(!this.isLinked||a>=this.min&&a<=this.max||this.grid&&this.grid.isColumn)f[a]||(f[a]=new E(this,a)),d&&f[a].isNew&&f[a].render(c,!0,-1),f[a].render(c)};
226
+ b.prototype.render=function(){var a=this,c=a.chart,d=a.logarithmic,l=a.options,b=a.isLinked,e=a.tickPositions,g=a.axisTitle,t=a.ticks,n=a.minorTicks,h=a.alternateBands,p=l.stackLabels,k=l.alternateGridColor,u=a.tickmarkOffset,m=a.axisLine,H=a.showAxis,v=r(c.renderer.globalAnimation),A,K;a.labelEdge.length=0;a.overlap=!1;[t,n,h].forEach(function(a){I(a,function(a){a.isActive=!1})});if(a.hasData()||b){var G=a.chart.hasRendered&&a.old&&y(a.old.min);a.minorTickInterval&&!a.categories&&a.getMinorTickPositions().forEach(function(c){a.renderMinorTick(c,
227
+ G)});e.length&&(e.forEach(function(c,d){a.renderTick(c,d,G)}),u&&(0===a.min||a.single)&&(t[-1]||(t[-1]=new E(a,-1,null,!0)),t[-1].render(-1)));k&&e.forEach(function(f,l){K="undefined"!==typeof e[l+1]?e[l+1]+u:a.max-u;0===l%2&&f<a.max&&K<=a.max+(c.polar?-u:u)&&(h[f]||(h[f]=new D.PlotLineOrBand(a)),A=f+u,h[f].options={from:d?d.lin2log(A):A,to:d?d.lin2log(K):K,color:k,className:"highcharts-alternate-grid"},h[f].render(),h[f].isActive=!0)});a._addedPlotLB||(a._addedPlotLB=!0,(l.plotLines||[]).concat(l.plotBands||
228
+ []).forEach(function(c){a.addPlotBandOrLine(c)}))}[t,n,h].forEach(function(a){var d=[],f=v.duration;I(a,function(a,c){a.isActive||(a.render(c,!1,0),a.isActive=!1,d.push(c))});S(function(){for(var c=d.length;c--;)a[d[c]]&&!a[d[c]].isActive&&(a[d[c]].destroy(),delete a[d[c]])},a!==h&&c.hasRendered&&f?f:0)});m&&(m[m.isPlaced?"animate":"attr"]({d:this.getLinePath(m.strokeWidth())}),m.isPlaced=!0,m[H?"show":"hide"](H));g&&H&&(l=a.getTitlePosition(),y(l.y)?(g[g.isNew?"attr":"animate"](l),g.isNew=!1):(g.attr("y",
229
+ -9999),g.isNew=!0));p&&p.enabled&&a.stacking&&a.stacking.renderStackTotals();a.old={len:a.len,max:a.max,min:a.min,transA:a.transA,userMax:a.userMax,userMin:a.userMin};a.isDirty=!1;f(this,"afterRender")};b.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(a){a.render()}));this.series.forEach(function(a){a.isDirty=!0})};b.prototype.getKeepProps=function(){return this.keepProps||b.keepProps};b.prototype.destroy=function(a){var c=this,d=c.plotLinesAndBands,
230
+ l=this.eventOptions;f(this,"destroy",{keepEvents:a});a||x(c);[c.ticks,c.minorTicks,c.alternateBands].forEach(function(a){u(a)});if(d)for(a=d.length;a--;)d[a].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(a){c[a]&&(c[a]=c[a].destroy())});for(var b in c.plotLinesAndBandsGroups)c.plotLinesAndBandsGroups[b]=c.plotLinesAndBandsGroups[b].destroy();I(c,function(a,d){-1===c.getKeepProps().indexOf(d)&&delete c[d]});this.eventOptions=l};b.prototype.drawCrosshair=
231
+ function(a,c){var d=this.crosshair,l=G(d&&d.snap,!0),b=this.chart,e,g=this.cross;f(this,"drawCrosshair",{e:a,point:c});a||(a=this.cross&&this.cross.e);if(d&&!1!==(v(c)||!l)){l?v(c)&&(e=G("colorAxis"!==this.coll?c.crosshairPos:null,this.isXAxis?c.plotX:this.len-c.plotY)):e=a&&(this.horiz?a.chartX-this.pos:this.len-a.chartY+this.pos);if(v(e)){var t={value:c&&(this.isXAxis?c.x:G(c.stackY,c.y)),translatedValue:e};b.polar&&n(t,{isCrosshair:!0,chartX:a&&a.chartX,chartY:a&&a.chartY,point:c});t=this.getPlotLinePath(t)||
232
+ null}if(!v(t)){this.hideCrosshair();return}l=this.categories&&!this.isRadial;g||(this.cross=g=b.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(l?"category ":"thin ")+(d.className||"")).attr({zIndex:G(d.zIndex,2)}).add(),b.styledMode||(g.attr({stroke:d.color||(l?z.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":G(d.width,1)}).css({"pointer-events":"none"}),d.dashStyle&&g.attr({dashstyle:d.dashStyle})));g.show().attr({d:t});l&&!d.width&&g.attr({"stroke-width":this.transA});
233
+ this.cross.e=a}else this.hideCrosshair();f(this,"afterDrawCrosshair",{e:a,point:c})};b.prototype.hideCrosshair=function(){this.cross&&this.cross.hide();f(this,"afterHideCrosshair")};b.prototype.hasVerticalPanning=function(){var a=this.chart.options.chart.panning;return!!(a&&a.enabled&&/y/.test(a.type))};b.prototype.validatePositiveValue=function(a){return y(a)&&0<a};b.prototype.update=function(a,c){var d=this.chart;a=H(this.userOptions,a);this.destroy(!0);this.init(d,a);d.isDirtyBox=!0;G(c,!0)&&d.redraw()};
234
+ b.prototype.remove=function(a){for(var c=this.chart,d=this.coll,f=this.series,l=f.length;l--;)f[l]&&f[l].remove(!1);p(c.axes,this);p(c[d],this);c[d].forEach(function(a,c){a.options.index=a.userOptions.index=c});this.destroy();c.isDirtyBox=!0;G(a,!0)&&c.redraw()};b.prototype.setTitle=function(a,c){this.update({title:a},c)};b.prototype.setCategories=function(a,c){this.update({categories:a},c)};b.defaultOptions=q.defaultXAxisOptions;b.keepProps="extKey hcEvents names series userMax userMin".split(" ");
235
+ return b}();"";return b});F(b,"Core/Axis/DateTimeAxis.js",[b["Core/Utilities.js"]],function(b){var x=b.addEvent,z=b.getMagnitude,B=b.normalizeTickInterval,w=b.timeUnits,D;(function(b){function k(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function r(a){"datetime"!==a.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new h(this))}var m=[];b.compose=function(a){-1===m.indexOf(a)&&(m.push(a),a.keepProps.push("dateTime"),a.prototype.getTimeTicks=k,x(a,"init",
236
+ r));return a};var h=function(){function a(a){this.axis=a}a.prototype.normalizeTimeTickInterval=function(a,b){var c=b||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];b=c[c.length-1];var e=w[b[0]],h=b[1],k;for(k=0;k<c.length&&!(b=c[k],e=w[b[0]],h=b[1],c[k+1]&&a<=(e*h[h.length-1]+w[c[k+1][0]])/2);k++);e===w.year&&a<5*e&&(h=[1,2,5]);a=B(a/e,h,"year"===b[0]?
237
+ Math.max(z(a/e),1):1);return{unitRange:e,count:a,unitName:b[0]}};a.prototype.getXDateFormat=function(a,b){var c=this.axis;return c.closestPointRange?c.chart.time.getDateFormat(c.closestPointRange,a,c.options.startOfWeek,b)||b.year:b.day};return a}();b.Additions=h})(D||(D={}));return D});F(b,"Core/Axis/LogarithmicAxis.js",[b["Core/Utilities.js"]],function(b){var x=b.addEvent,z=b.getMagnitude,B=b.normalizeTickInterval,w=b.pick,D;(function(b){function k(a){var c=this.logarithmic;"logarithmic"!==a.userOptions.type?
238
+ this.logarithmic=void 0:c||(this.logarithmic=new h(this))}function r(){var a=this.logarithmic;a&&(this.lin2val=function(c){return a.lin2log(c)},this.val2lin=function(c){return a.log2lin(c)})}var m=[];b.compose=function(a){-1===m.indexOf(a)&&(m.push(a),a.keepProps.push("logarithmic"),x(a,"init",k),x(a,"afterInit",r));return a};var h=function(){function a(a){this.axis=a}a.prototype.getLogTickPositions=function(a,b,g,h){var c=this.axis,e=c.len,p=c.options,k=[];h||(this.minorAutoInterval=void 0);if(.5<=
239
+ a)a=Math.round(a),k=c.getLinearTickPositions(a,b,g);else if(.08<=a){var n=Math.floor(b),f,t=p=void 0;for(e=.3<a?[1,2,4]:.15<a?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];n<g+1&&!t;n++){var d=e.length;for(f=0;f<d&&!t;f++){var y=this.log2lin(this.lin2log(n)*e[f]);y>b&&(!h||p<=g)&&"undefined"!==typeof p&&k.push(p);p>g&&(t=!0);p=y}}}else b=this.lin2log(b),g=this.lin2log(g),a=h?c.getMinorTickInterval():p.tickInterval,a=w("auto"===a?null:a,this.minorAutoInterval,p.tickPixelInterval/(h?5:1)*(g-b)/((h?e/c.tickPositions.length:
240
+ e)||1)),a=B(a,void 0,z(a)),k=c.getLinearTickPositions(a,b,g).map(this.log2lin),h||(this.minorAutoInterval=a/5);h||(c.tickInterval=a);return k};a.prototype.lin2log=function(a){return Math.pow(10,a)};a.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};return a}();b.Additions=h})(D||(D={}));return D});F(b,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[b["Core/Utilities.js"]],function(b){var x=b.erase,z=b.extend,B=b.isNumber,w;(function(b){var q=[],k;b.compose=function(b,h){k||(k=b);-1===
241
+ q.indexOf(h)&&(q.push(h),z(h.prototype,r.prototype));return h};var r=function(){function b(){}b.prototype.getPlotBandPath=function(b,a,c){void 0===c&&(c=this.options);var e=this.getPlotLinePath({value:a,force:!0,acrossPanes:c.acrossPanes}),g=[],h=this.horiz;a=!B(this.min)||!B(this.max)||b<this.min&&a<this.min||b>this.max&&a>this.max;b=this.getPlotLinePath({value:b,force:!0,acrossPanes:c.acrossPanes});c=1;if(b&&e){if(a){var k=b.toString()===e.toString();c=0}for(a=0;a<b.length;a+=2){var u=b[a],p=b[a+
242
+ 1],m=e[a],n=e[a+1];"M"!==u[0]&&"L"!==u[0]||"M"!==p[0]&&"L"!==p[0]||"M"!==m[0]&&"L"!==m[0]||"M"!==n[0]&&"L"!==n[0]||(h&&m[1]===u[1]?(m[1]+=c,n[1]+=c):h||m[2]!==u[2]||(m[2]+=c,n[2]+=c),g.push(["M",u[1],u[2]],["L",p[1],p[2]],["L",n[1],n[2]],["L",m[1],m[2]],["Z"]));g.isFlat=k}}return g};b.prototype.addPlotBand=function(b){return this.addPlotBandOrLine(b,"plotBands")};b.prototype.addPlotLine=function(b){return this.addPlotBandOrLine(b,"plotLines")};b.prototype.addPlotBandOrLine=function(b,a){var c=this,
243
+ e=this.userOptions,g=new k(this,b);this.visible&&(g=g.render());if(g){this._addedPlotLB||(this._addedPlotLB=!0,(e.plotLines||[]).concat(e.plotBands||[]).forEach(function(a){c.addPlotBandOrLine(a)}));if(a){var h=e[a]||[];h.push(b);e[a]=h}this.plotLinesAndBands.push(g)}return g};b.prototype.removePlotBandOrLine=function(b){var a=this.plotLinesAndBands,c=this.options,e=this.userOptions;if(a){for(var g=a.length;g--;)a[g].id===b&&a[g].destroy();[c.plotLines||[],e.plotLines||[],c.plotBands||[],e.plotBands||
244
+ []].forEach(function(a){for(g=a.length;g--;)(a[g]||{}).id===b&&x(a,a[g])})}};b.prototype.removePlotBand=function(b){this.removePlotBandOrLine(b)};b.prototype.removePlotLine=function(b){this.removePlotBandOrLine(b)};return b}()})(w||(w={}));return w});F(b,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[b["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],b["Core/Utilities.js"]],function(b,q){var x=q.arrayMax,B=q.arrayMin,w=q.defined,D=q.destroyObjectProperties,E=q.erase,k=q.fireEvent,r=q.merge,m=q.objectEach,
245
+ h=q.pick;q=function(){function a(a,b){this.axis=a;b&&(this.options=b,this.id=b.id)}a.compose=function(c){return b.compose(a,c)};a.prototype.render=function(){k(this,"render");var a=this,b=a.axis,g=b.horiz,C=b.logarithmic,v=a.options,u=v.color,p=h(v.zIndex,0),A=v.events,n={},f=b.chart.renderer,t=v.label,d=a.label,y=v.to,l=v.from,H=v.value,K=a.svgElem,I=[],G=w(l)&&w(y);I=w(H);var N=!K,x={"class":"highcharts-plot-"+(G?"band ":"line ")+(v.className||"")},q=G?"bands":"lines";C&&(l=C.log2lin(l),y=C.log2lin(y),
246
+ H=C.log2lin(H));b.chart.styledMode||(I?(x.stroke=u||"#999999",x["stroke-width"]=h(v.width,1),v.dashStyle&&(x.dashstyle=v.dashStyle)):G&&(x.fill=u||"#e6ebf5",v.borderWidth&&(x.stroke=v.borderColor,x["stroke-width"]=v.borderWidth)));n.zIndex=p;q+="-"+p;(C=b.plotLinesAndBandsGroups[q])||(b.plotLinesAndBandsGroups[q]=C=f.g("plot-"+q).attr(n).add());N&&(a.svgElem=K=f.path().attr(x).add(C));if(I)I=b.getPlotLinePath({value:H,lineWidth:K.strokeWidth(),acrossPanes:v.acrossPanes});else if(G)I=b.getPlotBandPath(l,
247
+ y,v);else return;!a.eventsAdded&&A&&(m(A,function(c,d){K.on(d,function(c){A[d].apply(a,[c])})}),a.eventsAdded=!0);(N||!K.d)&&I&&I.length?K.attr({d:I}):K&&(I?(K.show(!0),K.animate({d:I})):K.d&&(K.hide(),d&&(a.label=d=d.destroy())));t&&(w(t.text)||w(t.formatter))&&I&&I.length&&0<b.width&&0<b.height&&!I.isFlat?(t=r({align:g&&G&&"center",x:g?!G&&4:10,verticalAlign:!g&&G&&"middle",y:g?G?16:10:G?6:-4,rotation:g&&!G&&90},t),this.renderLabel(t,I,G,p)):d&&d.hide();return a};a.prototype.renderLabel=function(a,
248
+ b,g,h){var c=this.axis,e=c.chart.renderer,p=this.label;p||(this.label=p=e.text(this.getLabelText(a),0,0,a.useHTML).attr({align:a.textAlign||a.align,rotation:a.rotation,"class":"highcharts-plot-"+(g?"band":"line")+"-label "+(a.className||""),zIndex:h}).add(),c.chart.styledMode||p.css(r({textOverflow:"ellipsis"},a.style)));h=b.xBounds||[b[0][1],b[1][1],g?b[2][1]:b[0][1]];b=b.yBounds||[b[0][2],b[1][2],g?b[2][2]:b[0][2]];g=B(h);e=B(b);p.align(a,!1,{x:g,y:e,width:x(h)-g,height:x(b)-e});p.alignValue&&"left"!==
249
+ p.alignValue||p.css({width:(90===p.rotation?c.height-(p.alignAttr.y-c.top):c.width-(p.alignAttr.x-c.left))+"px"});p.show(!0)};a.prototype.getLabelText=function(a){return w(a.formatter)?a.formatter.call(this):a.text};a.prototype.destroy=function(){E(this.axis.plotLinesAndBands,this);delete this.axis;D(this)};return a}();"";"";return q});F(b,"Core/Tooltip.js",[b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Renderer/RendererUtilities.js"],b["Core/Renderer/RendererRegistry.js"],b["Core/Utilities.js"]],
250
+ function(b,q,z,B,w){var x=b.format,E=q.doc,k=z.distribute,r=w.addEvent,m=w.clamp,h=w.css,a=w.defined,c=w.discardElement,e=w.extend,g=w.fireEvent,C=w.isArray,v=w.isNumber,u=w.isString,p=w.merge,A=w.pick,n=w.splat,f=w.syncTimeout;b=function(){function b(a,c){this.allowShared=!0;this.container=void 0;this.crosshairs=[];this.distance=0;this.isHidden=!0;this.isSticky=!1;this.now={};this.options={};this.outside=!1;this.chart=a;this.init(a,c)}b.prototype.applyFilter=function(){var a=this.chart;a.renderer.definition({tagName:"filter",
251
+ attributes:{id:"drop-shadow-"+a.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{"in":"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{"in":"SourceGraphic"}}]}]})};b.prototype.bodyFormatter=function(a){return a.map(function(a){var c=a.series.tooltipOptions;return(c[(a.point.formatPrefix||
252
+ "point")+"Formatter"]||a.point.tooltipFormatter).call(a.point,c[(a.point.formatPrefix||"point")+"Format"]||"")})};b.prototype.cleanSplit=function(a){this.chart.series.forEach(function(c){var d=c&&c.tt;d&&(!d.isActive||a?c.tt=d.destroy():d.isActive=!1)})};b.prototype.defaultFormatter=function(a){var c=this.points||n(this);var d=[a.tooltipFooterHeaderFormatter(c[0])];d=d.concat(a.bodyFormatter(c));d.push(a.tooltipFooterHeaderFormatter(c[0],!0));return d};b.prototype.destroy=function(){this.label&&(this.label=
253
+ this.label.destroy());this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),c(this.container));w.clearTimeout(this.hideTimer);w.clearTimeout(this.tooltipTimeout)};b.prototype.getAnchor=function(a,c){var d=this.chart,b=d.pointer,f=d.inverted,e=d.plotTop,g=d.plotLeft,t,h,p=0,y=0;a=n(a);this.followPointer&&c?("undefined"===typeof c.chartX&&(c=b.normalize(c)),b=[c.chartX-g,c.chartY-e]):a[0].tooltipPos?b=a[0].tooltipPos:(a.forEach(function(a){t=
254
+ a.series.yAxis;h=a.series.xAxis;p+=a.plotX||0;y+=a.plotLow?(a.plotLow+(a.plotHigh||0))/2:a.plotY||0;h&&t&&(f?(p+=e+d.plotHeight-h.len-h.pos,y+=g+d.plotWidth-t.len-t.pos):(p+=h.pos-g,y+=t.pos-e))}),p/=a.length,y/=a.length,b=[f?d.plotWidth-y:p,f?d.plotHeight-p:y],this.shared&&1<a.length&&c&&(f?b[0]=c.chartX-g:b[1]=c.chartY-e));return b.map(Math.round)};b.prototype.getLabel=function(){var c=this,b=this.chart.styledMode,f=this.options,e=this.split&&this.allowShared,g="tooltip"+(a(f.className)?" "+f.className:
255
+ ""),t=f.style.pointerEvents||(!this.followPointer&&f.stickOnContact?"auto":"none"),n=function(){c.inContact=!0},p=function(a){var d=c.chart.hoverSeries;c.inContact=c.shouldStickOnContact()&&c.chart.pointer.inClass(a.relatedTarget,"highcharts-tooltip");if(!c.inContact&&d&&d.onMouseOut)d.onMouseOut()},k,m=this.chart.renderer;if(c.label){var u=!c.label.hasClass("highcharts-label");(e&&!u||!e&&u)&&c.destroy()}if(!this.label){if(this.outside){u=this.chart.options.chart.style;var A=B.getRendererType();
256
+ this.container=k=q.doc.createElement("div");k.className="highcharts-tooltip-container";h(k,{position:"absolute",top:"1px",pointerEvents:t,zIndex:Math.max(this.options.style.zIndex||0,(u&&u.zIndex||0)+3)});r(k,"mouseenter",n);r(k,"mouseleave",p);q.doc.body.appendChild(k);this.renderer=m=new A(k,0,0,u,void 0,void 0,m.styledMode)}e?this.label=m.g(g):(this.label=m.label("",0,0,f.shape,void 0,void 0,f.useHTML,void 0,g).attr({padding:f.padding,r:f.borderRadius}),b||this.label.attr({fill:f.backgroundColor,
257
+ "stroke-width":f.borderWidth}).css(f.style).css({pointerEvents:t}).shadow(f.shadow));b&&f.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"}));if(c.outside&&!c.split){var v=this.label,C=v.xSetter,x=v.ySetter;v.xSetter=function(a){C.call(v,c.distance);k.style.left=a+"px"};v.ySetter=function(a){x.call(v,c.distance);k.style.top=a+"px"}}this.label.on("mouseenter",n).on("mouseleave",p).attr({zIndex:8}).add()}return this.label};b.prototype.getPosition=function(a,
258
+ c,b){var d=this.chart,f=this.distance,l={},e=d.inverted&&b.h||0,g=this.outside,t=g?E.documentElement.clientWidth-2*f:d.chartWidth,n=g?Math.max(E.body.scrollHeight,E.documentElement.scrollHeight,E.body.offsetHeight,E.documentElement.offsetHeight,E.documentElement.clientHeight):d.chartHeight,h=d.pointer.getChartPosition(),p=function(l){var e="x"===l;return[l,e?t:n,e?a:c].concat(g?[e?a*h.scaleX:c*h.scaleY,e?h.left-f+(b.plotX+d.plotLeft)*h.scaleX:h.top-f+(b.plotY+d.plotTop)*h.scaleY,0,e?t:n]:[e?a:c,e?
259
+ b.plotX+d.plotLeft:b.plotY+d.plotTop,e?d.plotLeft:d.plotTop,e?d.plotLeft+d.plotWidth:d.plotTop+d.plotHeight])},y=p("y"),k=p("x"),m;p=!!b.negative;!d.polar&&d.hoverSeries&&d.hoverSeries.yAxis&&d.hoverSeries.yAxis.reversed&&(p=!p);var u=!this.followPointer&&A(b.ttBelow,!d.inverted===p),v=function(a,c,d,b,t,n,p){var y=g?"y"===a?f*h.scaleY:f*h.scaleX:f,k=(d-b)/2,m=b<t-f,H=t+f+b<c,v=t-y-d+k;t=t+y-k;if(u&&H)l[a]=t;else if(!u&&m)l[a]=v;else if(m)l[a]=Math.min(p-b,0>v-e?v:v-e);else if(H)l[a]=Math.max(n,t+
260
+ e+d>c?t:t+e);else return!1},r=function(a,c,d,b,e){var g;e<f||e>c-f?g=!1:l[a]=e<d/2?1:e>c-b/2?c-b-2:e-d/2;return g},L=function(a){var c=y;y=k;k=c;m=a},C=function(){!1!==v.apply(0,y)?!1!==r.apply(0,k)||m||(L(!0),C()):m?l.x=l.y=0:(L(!0),C())};(d.inverted||1<this.len)&&L();C();return l};b.prototype.hide=function(a){var c=this;w.clearTimeout(this.hideTimer);a=A(a,this.options.hideDelay);this.isHidden||(this.hideTimer=f(function(){c.getLabel().fadeOut(a?void 0:a);c.isHidden=!0},a))};b.prototype.init=function(a,
261
+ c){this.chart=a;this.options=c;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=c.split&&!a.inverted&&!a.polar;this.shared=c.shared||this.split;this.outside=A(c.outside,!(!a.scrollablePixelsX&&!a.scrollablePixelsY))};b.prototype.shouldStickOnContact=function(){return!(this.followPointer||!this.options.stickOnContact)};b.prototype.isStickyOnContact=function(){return!(!this.shouldStickOnContact()||!this.inContact)};b.prototype.move=function(a,c,b,f){var d=this,l=d.now,g=!1!==d.options.animation&&
262
+ !d.isHidden&&(1<Math.abs(a-l.x)||1<Math.abs(c-l.y)),t=d.followPointer||1<d.len;e(l,{x:g?(2*l.x+a)/3:a,y:g?(l.y+c)/2:c,anchorX:t?void 0:g?(2*l.anchorX+b)/3:b,anchorY:t?void 0:g?(l.anchorY+f)/2:f});d.getLabel().attr(l);d.drawTracker();g&&(w.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){d&&d.move(a,c,b,f)},32))};b.prototype.refresh=function(a,c){var d=this.chart,b=this.options,f=n(a),e=f[0],t=[],h=b.formatter||this.defaultFormatter,p=this.shared,k=d.styledMode,y={};if(b.enabled){w.clearTimeout(this.hideTimer);
263
+ this.allowShared=!(!C(a)&&a.series&&a.series.noSharedTooltip);this.followPointer=!this.split&&e.series.tooltipOptions.followPointer;a=this.getAnchor(a,c);var m=a[0],u=a[1];p&&this.allowShared?(d.pointer.applyInactiveState(f),f.forEach(function(a){a.setState("hover");t.push(a.getLabelConfig())}),y={x:e.category,y:e.y},y.points=t):y=e.getLabelConfig();this.len=t.length;h=h.call(y,this);p=e.series;this.distance=A(p.tooltipOptions.distance,16);if(!1===h)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(h,
264
+ f);else{var v=m,r=u;c&&d.pointer.isDirectTouch&&(v=c.chartX-d.plotLeft,r=c.chartY-d.plotTop);if(d.polar||!1===p.options.clip||f.some(function(a){return a.series.shouldShowTooltip(v,r)}))c=this.getLabel(),b.style.width&&!k||c.css({width:this.chart.spacingBox.width+"px"}),c.attr({text:h&&h.join?h.join(""):h}),c.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+A(e.colorIndex,p.colorIndex)),k||c.attr({stroke:b.borderColor||e.color||p.color||"#666666"}),this.updatePosition({plotX:m,
265
+ plotY:u,negative:e.negative,ttBelow:e.ttBelow,h:a[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show();this.isHidden=!1}g(this,"refresh")}};b.prototype.renderSplit=function(a,c){function d(a,c,d,f,l){void 0===l&&(l=!0);d?(c=X?0:F,a=m(a-f/2,R.left,R.right-f-(b.outside?O:0))):(c-=da,a=l?a-f-z:a+z,a=m(a,l?a:R.left,R.right));return{x:a,y:c}}var b=this,f=b.chart,g=b.chart,t=g.chartWidth,n=g.chartHeight,h=g.plotHeight,p=g.plotLeft,y=g.plotTop,v=g.pointer,r=g.scrollablePixelsY;
266
+ r=void 0===r?0:r;var C=g.scrollablePixelsX,x=g.scrollingContainer;x=void 0===x?{scrollLeft:0,scrollTop:0}:x;var q=x.scrollLeft;x=x.scrollTop;var w=g.styledMode,z=b.distance,L=b.options,T=b.options.positioner,R=b.outside&&"number"!==typeof C?E.documentElement.getBoundingClientRect():{left:q,right:q+t,top:x,bottom:x+n},D=b.getLabel(),B=this.renderer||f.renderer,X=!(!f.xAxis[0]||!f.xAxis[0].opposite);f=v.getChartPosition();var O=f.left;f=f.top;var da=y+x,ea=0,F=h-r;u(a)&&(a=[!1,a]);a=a.slice(0,c.length+
267
+ 1).reduce(function(a,f,l){if(!1!==f&&""!==f){l=c[l-1]||{isHeader:!0,plotX:c[0].plotX,plotY:h,series:{}};var e=l.isHeader,g=e?b:l.series;f=f.toString();var t=g.tt,n=l.isHeader;var k=l.series;var u="highcharts-color-"+A(l.colorIndex,k.colorIndex,"none");t||(t={padding:L.padding,r:L.borderRadius},w||(t.fill=L.backgroundColor,t["stroke-width"]=L.borderWidth),t=B.label("",0,0,L[n?"headerShape":"shape"],void 0,void 0,L.useHTML).addClass((n?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+u).attr(t).add(D));
268
+ t.isActive=!0;t.attr({text:f});w||t.css(L.style).shadow(L.shadow).attr({stroke:L.borderColor||l.color||k.color||"#333333"});g=g.tt=t;n=g.getBBox();f=n.width+g.strokeWidth();e&&(ea=n.height,F+=ea,X&&(da-=ea));k=l.plotX;k=void 0===k?0:k;u=l.plotY;u=void 0===u?0:u;t=l.series;if(l.isHeader){k=p+k;var v=y+h/2}else{var H=t.xAxis,r=t.yAxis;k=H.pos+m(k,-z,H.len+z);t.shouldShowTooltip(0,r.pos-y+u,{ignoreX:!0})&&(v=r.pos+u)}k=m(k,R.left-z,R.right+z);"number"===typeof v?(n=n.height+1,u=T?T.call(b,f,n,l):d(k,
269
+ v,e,f),a.push({align:T?0:void 0,anchorX:k,anchorY:v,boxWidth:f,point:l,rank:A(u.rank,e?1:0),size:n,target:u.y,tt:g,x:u.x})):g.isActive=!1}return a},[]);!T&&a.some(function(a){var c=(b.outside?O:0)+a.anchorX;return c<R.left&&c+a.boxWidth<R.right?!0:c<O-R.left+a.boxWidth&&R.right-c>c})&&(a=a.map(function(a){var c=d(a.anchorX,a.anchorY,a.point.isHeader,a.boxWidth,!1);return e(a,{target:c.y,x:c.x})}));b.cleanSplit();k(a,F);var ba=O,fa=O;a.forEach(function(a){var c=a.x,d=a.boxWidth;a=a.isHeader;a||(b.outside&&
270
+ O+c<ba&&(ba=O+c),!a&&b.outside&&ba+d>fa&&(fa=O+c))});a.forEach(function(a){var c=a.x,d=a.anchorX,f=a.pos,l=a.point.isHeader;f={visibility:"undefined"===typeof f?"hidden":"inherit",x:c,y:f+da,anchorX:d,anchorY:a.anchorY};if(b.outside&&c<d){var e=O-ba;0<e&&(l||(f.x=c+e,f.anchorX=d+e),l&&(f.x=(fa-ba)/2,f.anchorX=d+e))}a.tt.attr(f)});a=b.container;r=b.renderer;b.outside&&a&&r&&(g=D.getBBox(),r.setSize(g.width+g.x,g.height+g.y,!1),a.style.left=ba+"px",a.style.top=f+"px")};b.prototype.drawTracker=function(){if(this.followPointer||
271
+ !this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var a=this.chart,c=this.label,b=this.shared?a.hoverPoints:a.hoverPoint;if(c&&b){var f={x:0,y:0,width:0,height:0};b=this.getAnchor(b);var e=c.getBBox();b[0]+=a.plotLeft-c.translateX;b[1]+=a.plotTop-c.translateY;f.x=Math.min(0,b[0]);f.y=Math.min(0,b[1]);f.width=0>b[0]?Math.max(Math.abs(b[0]),e.width-b[0]):Math.max(Math.abs(b[0]),e.width);f.height=0>b[1]?Math.max(Math.abs(b[1]),e.height-Math.abs(b[1])):Math.max(Math.abs(b[1]),e.height);
272
+ this.tracker?this.tracker.attr(f):(this.tracker=c.renderer.rect(f).addClass("highcharts-tracker").add(c),a.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};b.prototype.styledModeFormat=function(a){return a.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')};b.prototype.tooltipFooterHeaderFormatter=function(a,c){var d=a.series,b=d.tooltipOptions,f=d.xAxis,e=f&&f.dateTime;f={isFooter:c,
273
+ labelConfig:a};var t=b.xDateFormat,n=b[c?"footerFormat":"headerFormat"];g(this,"headerFormatter",f,function(c){e&&!t&&v(a.key)&&(t=e.getXDateFormat(a.key,b.dateTimeLabelFormats));e&&t&&(a.point&&a.point.tooltipDateKeys||["key"]).forEach(function(a){n=n.replace("{point."+a+"}","{point."+a+":"+t+"}")});d.chart.styledMode&&(n=this.styledModeFormat(n));c.text=x(n,{point:a,series:d},this.chart)});return f.text};b.prototype.update=function(a){this.destroy();p(!0,this.chart.options.tooltip.userOptions,a);
274
+ this.init(this.chart,p(!0,this.options,a))};b.prototype.updatePosition=function(a){var c=this.chart,d=this.options,b=c.pointer,f=this.getLabel();b=b.getChartPosition();var e=(d.positioner||this.getPosition).call(this,f.width,f.height,a),g=a.plotX+c.plotLeft;a=a.plotY+c.plotTop;if(this.outside){d=d.borderWidth+2*this.distance;this.renderer.setSize(f.width+d,f.height+d,!1);if(1!==b.scaleX||1!==b.scaleY)h(this.container,{transform:"scale("+b.scaleX+", "+b.scaleY+")"}),g*=b.scaleX,a*=b.scaleY;g+=b.left-
275
+ e.x;a+=b.top-e.y}this.move(Math.round(e.x),Math.round(e.y||0),g,a)};return b}();"";return b});F(b,"Core/Series/Point.js",[b["Core/Renderer/HTML/AST.js"],b["Core/Animation/AnimationUtilities.js"],b["Core/DefaultOptions.js"],b["Core/FormatUtilities.js"],b["Core/Utilities.js"]],function(b,q,z,B,w){var x=q.animObject,E=z.defaultOptions,k=B.format,r=w.addEvent,m=w.defined,h=w.erase,a=w.extend,c=w.fireEvent,e=w.getNestedProperty,g=w.isArray,C=w.isFunction,v=w.isNumber,u=w.isObject,p=w.merge,A=w.objectEach,
276
+ n=w.pick,f=w.syncTimeout,t=w.removeEvent,d=w.uniqueKey;q=function(){function y(){this.colorIndex=this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=!1;this.percentage=this.options=this.name=void 0;this.selected=!1;this.total=this.series=void 0;this.visible=!0;this.x=void 0}y.prototype.animateBeforeDestroy=function(){var c=this,d={x:c.startXPos,opacity:0},b=c.getGraphicalProps();b.singular.forEach(function(a){c[a]=c[a].animate("dataLabel"===a?{x:c[a].startXPos,y:c[a].startYPos,
277
+ opacity:0}:d)});b.plural.forEach(function(d){c[d].forEach(function(d){d.element&&d.animate(a({x:c.startXPos},d.startYPos?{x:d.startXPos,y:d.startYPos}:{}))})})};y.prototype.applyOptions=function(c,d){var b=this.series,f=b.options.pointValKey||b.pointValKey;c=y.prototype.optionsToObject.call(this,c);a(this,c);this.options=this.options?a(this.options,c):c;c.group&&delete this.group;c.dataLabels&&delete this.dataLabels;f&&(this.y=y.prototype.getNestedProperty.call(this,f));this.formatPrefix=(this.isNull=
278
+ n(this.isValid&&!this.isValid(),null===this.x||!v(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof d&&b.xAxis&&b.xAxis.hasNames&&(this.x=b.xAxis.nameToX(this));"undefined"===typeof this.x&&b?this.x="undefined"===typeof d?b.autoIncrement():d:v(c.x)&&b.options.relativeXValue&&(this.x=b.autoIncrement(c.x));return this};y.prototype.destroy=function(){function a(){if(c.graphic||c.dataLabel||c.dataLabels)t(c),c.destroyElements();for(n in c)c[n]=null}var c=
279
+ this,d=c.series,b=d.chart;d=d.options.dataSorting;var e=b.hoverPoints,g=x(c.series.chart.renderer.globalAnimation),n;c.legendItem&&b.legend.destroyItem(c);e&&(c.setState(),h(e,c),e.length||(b.hoverPoints=null));if(c===b.hoverPoint)c.onMouseOut();d&&d.enabled?(this.animateBeforeDestroy(),f(a,g.duration)):a();b.pointCount--};y.prototype.destroyElements=function(a){var c=this;a=c.getGraphicalProps(a);a.singular.forEach(function(a){c[a]=c[a].destroy()});a.plural.forEach(function(a){c[a].forEach(function(a){a.element&&
280
+ a.destroy()});delete c[a]})};y.prototype.firePointEvent=function(a,d,b){var f=this,e=this.series.options;(e.point.events[a]||f.options&&f.options.events&&f.options.events[a])&&f.importEvents();"click"===a&&e.allowPointSelect&&(b=function(a){f.select&&f.select(null,a.ctrlKey||a.metaKey||a.shiftKey)});c(f,a,d,b)};y.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+
281
+ ("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};y.prototype.getGraphicalProps=function(a){var c=this,d=[],b={singular:[],plural:[]},f;a=a||{graphic:1,dataLabel:1};a.graphic&&d.push("graphic","upperGraphic","shadowGroup");a.dataLabel&&d.push("dataLabel","dataLabelUpper","connector");for(f=d.length;f--;){var e=d[f];c[e]&&
282
+ b.singular.push(e)}["dataLabel","connector"].forEach(function(d){var f=d+"s";a[d]&&c[f]&&b.plural.push(f)});return b};y.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}};y.prototype.getNestedProperty=function(a){if(a)return 0===a.indexOf("custom.")?e(a,this.options):this[a]};y.prototype.getZone=function(){var a=this.series,
283
+ c=a.zones;a=a.zoneAxis||"y";var d,b=0;for(d=c[b];this[a]>=d.value;)d=c[++b];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=d&&d.color&&!this.options.color?d.color:this.nonZonedColor;return d};y.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType};y.prototype.init=function(a,b,f){this.series=a;this.applyOptions(b,f);this.id=m(this.id)?this.id:d();this.resolveColor();a.chart.pointCount++;c(this,"afterInit");
284
+ return this};y.prototype.optionsToObject=function(a){var c=this.series,d=c.options.keys,b=d||c.pointArrayMap||["y"],f=b.length,e={},l=0,t=0;if(v(a)||null===a)e[b[0]]=a;else if(g(a))for(!d&&a.length>f&&(c=typeof a[0],"string"===c?e.name=a[0]:"number"===c&&(e.x=a[0]),l++);t<f;)d&&"undefined"===typeof a[l]||(0<b[t].indexOf(".")?y.prototype.setNestedProperty(e,a[l],b[t]):e[b[t]]=a[l]),l++,t++;else"object"===typeof a&&(e=a,a.dataLabels&&(c._hasPointLabels=!0),a.marker&&(c._hasPointMarkers=!0));return e};
285
+ y.prototype.resolveColor=function(){var a=this.series,c=a.chart.styledMode;var d=a.chart.options.chart.colorCount;delete this.nonZonedColor;if(a.options.colorByPoint){if(!c){d=a.options.colors||a.chart.options.colors;var b=d[a.colorCounter];d=d.length}c=a.colorCounter;a.colorCounter++;a.colorCounter===d&&(a.colorCounter=0)}else c||(b=a.color),c=a.colorIndex;this.colorIndex=n(this.options.colorIndex,c);this.color=n(this.options.color,b)};y.prototype.setNestedProperty=function(a,c,d){d.split(".").reduce(function(a,
286
+ d,b,f){a[d]=f.length-1===b?c:u(a[d],!0)?a[d]:{};return a[d]},a);return a};y.prototype.tooltipFormatter=function(a){var c=this.series,d=c.tooltipOptions,b=n(d.valueDecimals,""),f=d.valuePrefix||"",e=d.valueSuffix||"";c.chart.styledMode&&(a=c.chart.tooltip.styledModeFormat(a));(c.pointArrayMap||["y"]).forEach(function(c){c="{point."+c;if(f||e)a=a.replace(RegExp(c+"}","g"),f+c+"}"+e);a=a.replace(RegExp(c+"}","g"),c+":,."+b+"f}")});return k(a,{point:this,series:this.series},c.chart)};y.prototype.update=
287
+ function(a,c,d,b){function f(){e.applyOptions(a);var b=g&&e.hasDummyGraphic;b=null===e.y?!b:b;g&&b&&(e.graphic=g.destroy(),delete e.hasDummyGraphic);u(a,!0)&&(g&&g.element&&a&&a.marker&&"undefined"!==typeof a.marker.symbol&&(e.graphic=g.destroy()),a&&a.dataLabels&&e.dataLabel&&(e.dataLabel=e.dataLabel.destroy()),e.connector&&(e.connector=e.connector.destroy()));p=e.index;l.updateParallelArrays(e,p);h.data[p]=u(h.data[p],!0)||u(a,!0)?e.options:n(a,h.data[p]);l.isDirty=l.isDirtyData=!0;!l.fixedBox&&
288
+ l.hasCartesianSeries&&(t.isDirtyBox=!0);"point"===h.legendType&&(t.isDirtyLegend=!0);c&&t.redraw(d)}var e=this,l=e.series,g=e.graphic,t=l.chart,h=l.options,p;c=n(c,!0);!1===b?f():e.firePointEvent("update",{options:a},f)};y.prototype.remove=function(a,c){this.series.removePoint(this.series.data.indexOf(this),a,c)};y.prototype.select=function(a,c){var d=this,b=d.series,f=b.chart;this.selectedStaging=a=n(a,!d.selected);d.firePointEvent(a?"select":"unselect",{accumulate:c},function(){d.selected=d.options.selected=
289
+ a;b.options.data[b.data.indexOf(d)]=d.options;d.setState(a&&"select");c||f.getSelectedPoints().forEach(function(a){var c=a.series;a.selected&&a!==d&&(a.selected=a.options.selected=!1,c.options.data[c.data.indexOf(a)]=a.options,a.setState(f.hoverPoints&&c.options.inactiveOtherPoints?"inactive":""),a.firePointEvent("unselect"))})});delete this.selectedStaging};y.prototype.onMouseOver=function(a){var c=this.series.chart,d=c.pointer;a=a?d.normalize(a):d.getChartCoordinatesFromPoint(this,c.inverted);d.runPointActions(a,
290
+ this)};y.prototype.onMouseOut=function(){var a=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(a.hoverPoints||[]).forEach(function(a){a.setState()});a.hoverPoints=a.hoverPoint=null};y.prototype.importEvents=function(){if(!this.hasImportedEvents){var a=this,c=p(a.series.options.point,a.options).events;a.events=c;A(c,function(c,d){C(c)&&r(a,d,c)});this.hasImportedEvents=!0}};y.prototype.setState=function(d,f){var e=this.series,l=this.state,g=e.options.states[d||
291
+ "normal"]||{},t=E.plotOptions[e.type].marker&&e.options.marker,h=t&&!1===t.enabled,p=t&&t.states&&t.states[d||"normal"]||{},k=!1===p.enabled,y=this.marker||{},u=e.chart,m=t&&e.markerAttribs,A=e.halo,r,H=e.stateMarkerGraphic;d=d||"";if(!(d===this.state&&!f||this.selected&&"select"!==d||!1===g.enabled||d&&(k||h&&!1===p.enabled)||d&&y.states&&y.states[d]&&!1===y.states[d].enabled)){this.state=d;m&&(r=e.markerAttribs(this,d));if(this.graphic&&!this.hasDummyGraphic){l&&this.graphic.removeClass("highcharts-point-"+
292
+ l);d&&this.graphic.addClass("highcharts-point-"+d);if(!u.styledMode){var C=e.pointAttribs(this,d);var L=n(u.options.chart.animation,g.animation);e.options.inactiveOtherPoints&&v(C.opacity)&&((this.dataLabels||[]).forEach(function(a){a&&a.animate({opacity:C.opacity},L)}),this.connector&&this.connector.animate({opacity:C.opacity},L));this.graphic.animate(C,L)}r&&this.graphic.animate(r,n(u.options.chart.animation,p.animation,t.animation));H&&H.hide()}else{if(d&&p){l=y.symbol||e.symbol;H&&H.currentSymbol!==
293
+ l&&(H=H.destroy());if(r)if(H)H[f?"animate":"attr"]({x:r.x,y:r.y});else l&&(e.stateMarkerGraphic=H=u.renderer.symbol(l,r.x,r.y,r.width,r.height).add(e.markerGroup),H.currentSymbol=l);!u.styledMode&&H&&"inactive"!==this.state&&H.attr(e.pointAttribs(this,d))}H&&(H[d&&this.isInside?"show":"hide"](),H.element.point=this,H.addClass(this.getClassName(),!0))}g=g.halo;r=(H=this.graphic||H)&&H.visibility||"inherit";g&&g.size&&H&&"hidden"!==r&&!this.isCluster?(A||(e.halo=A=u.renderer.path().add(H.parentGroup)),
294
+ A.show()[f?"animate":"attr"]({d:this.haloPath(g.size)}),A.attr({"class":"highcharts-halo highcharts-color-"+n(this.colorIndex,e.colorIndex)+(this.className?" "+this.className:""),visibility:r,zIndex:-1}),A.point=this,u.styledMode||A.attr(a({fill:this.color||e.color,"fill-opacity":g.opacity},b.filterUserAttributes(g.attributes||{})))):A&&A.point&&A.point.haloPath&&A.animate({d:A.point.haloPath(0)},null,A.hide);c(this,"afterSetState",{state:d})}};y.prototype.haloPath=function(a){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-
295
+ a,this.plotY-a,2*a,2*a)};return y}();"";return q});F(b,"Core/Pointer.js",[b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Tooltip.js"],b["Core/Utilities.js"]],function(b,q,z,B){var x=b.parse,D=q.charts,E=q.noop,k=B.addEvent,r=B.attr,m=B.css,h=B.defined,a=B.extend,c=B.find,e=B.fireEvent,g=B.isNumber,C=B.isObject,v=B.objectEach,u=B.offset,p=B.pick,A=B.splat;b=function(){function b(a,c){this.lastValidTouch={};this.pinchDown=[];this.runChartClick=!1;this.eventsToUnbind=[];this.chart=a;this.hasDragged=
296
+ !1;this.options=c;this.init(a,c)}b.prototype.applyInactiveState=function(a){var c=[],d;(a||[]).forEach(function(a){d=a.series;c.push(d);d.linkedParent&&c.push(d.linkedParent);d.linkedSeries&&(c=c.concat(d.linkedSeries));d.navigatorSeries&&c.push(d.navigatorSeries)});this.chart.series.forEach(function(a){-1===c.indexOf(a)?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})};b.prototype.destroy=function(){var a=this;this.eventsToUnbind.forEach(function(a){return a()});
297
+ this.eventsToUnbind=[];q.chartCount||(b.unbindDocumentMouseUp&&(b.unbindDocumentMouseUp=b.unbindDocumentMouseUp()),b.unbindDocumentTouchEnd&&(b.unbindDocumentTouchEnd=b.unbindDocumentTouchEnd()));clearInterval(a.tooltipTimeout);v(a,function(c,d){a[d]=void 0})};b.prototype.drag=function(a){var c=this.chart,d=c.options.chart,b=this.zoomHor,f=this.zoomVert,e=c.plotLeft,g=c.plotTop,h=c.plotWidth,n=c.plotHeight,p=this.mouseDownX||0,k=this.mouseDownY||0,u=C(d.panning)?d.panning&&d.panning.enabled:d.panning,
298
+ m=d.panKey&&a[d.panKey+"Key"],v=a.chartX,A=a.chartY,r=this.selectionMarker;if(!r||!r.touch)if(v<e?v=e:v>e+h&&(v=e+h),A<g?A=g:A>g+n&&(A=g+n),this.hasDragged=Math.sqrt(Math.pow(p-v,2)+Math.pow(k-A,2)),10<this.hasDragged){var q=c.isInsidePlot(p-e,k-g,{visiblePlotOnly:!0});!c.hasCartesianSeries&&!c.mapView||!this.zoomX&&!this.zoomY||!q||m||r||(this.selectionMarker=r=c.renderer.rect(e,g,b?1:h,f?1:n,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),c.styledMode||r.attr({fill:d.selectionMarkerFill||
299
+ x("#335cad").setOpacity(.25).get()}));r&&b&&(b=v-p,r.attr({width:Math.abs(b),x:(0<b?0:b)+p}));r&&f&&(b=A-k,r.attr({height:Math.abs(b),y:(0<b?0:b)+k}));q&&!r&&u&&c.pan(a,d.panning)}};b.prototype.dragStart=function(a){var c=this.chart;c.mouseIsDown=a.type;c.cancelClick=!1;c.mouseDownX=this.mouseDownX=a.chartX;c.mouseDownY=this.mouseDownY=a.chartY};b.prototype.drop=function(c){var b=this,d=this.chart,f=this.hasPinched;if(this.selectionMarker){var l=this.selectionMarker,n=l.attr?l.attr("x"):l.x,p=l.attr?
300
+ l.attr("y"):l.y,k=l.attr?l.attr("width"):l.width,u=l.attr?l.attr("height"):l.height,v={originalEvent:c,xAxis:[],yAxis:[],x:n,y:p,width:k,height:u},A=!!d.mapView;if(this.hasDragged||f)d.axes.forEach(function(a){if(a.zoomEnabled&&h(a.min)&&(f||b[{xAxis:"zoomX",yAxis:"zoomY"}[a.coll]])&&g(n)&&g(p)){var d=a.horiz,e="touchend"===c.type?a.minPixelPadding:0,l=a.toValue((d?n:p)+e);d=a.toValue((d?n+k:p+u)-e);v[a.coll].push({axis:a,min:Math.min(l,d),max:Math.max(l,d)});A=!0}}),A&&e(d,"selection",v,function(c){d.zoom(a(c,
301
+ f?{animation:!1}:null))});g(d.index)&&(this.selectionMarker=this.selectionMarker.destroy());f&&this.scaleGroups()}d&&g(d.index)&&(m(d.container,{cursor:d._cursor}),d.cancelClick=10<this.hasDragged,d.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])};b.prototype.findNearestKDPoint=function(a,c,d){var b=this.chart,f=b.hoverPoint;b=b.tooltip;if(f&&b&&b.isStickyOnContact())return f;var e;a.forEach(function(a){var b=!(a.noSharedTooltip&&c)&&0>a.options.findNearestPointBy.indexOf("y");a=
302
+ a.searchPoint(d,b);if((b=C(a,!0)&&a.series)&&!(b=!C(e,!0))){b=e.distX-a.distX;var f=e.dist-a.dist,g=(a.series.group&&a.series.group.zIndex)-(e.series.group&&e.series.group.zIndex);b=0<(0!==b&&c?b:0!==f?f:0!==g?g:e.series.index>a.series.index?-1:1)}b&&(e=a)});return e};b.prototype.getChartCoordinatesFromPoint=function(a,c){var d=a.series,b=d.xAxis;d=d.yAxis;var f=a.shapeArgs;if(b&&d){var e=p(a.clientX,a.plotX),t=a.plotY||0;a.isNode&&f&&g(f.x)&&g(f.y)&&(e=f.x,t=f.y);return c?{chartX:d.len+d.pos-t,chartY:b.len+
303
+ b.pos-e}:{chartX:e+b.pos,chartY:t+d.pos}}if(f&&f.x&&f.y)return{chartX:f.x,chartY:f.y}};b.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var a=this.chart.container,c=u(a);this.chartPosition={left:c.left,top:c.top,scaleX:1,scaleY:1};var d=a.offsetWidth;a=a.offsetHeight;2<d&&2<a&&(this.chartPosition.scaleX=c.width/d,this.chartPosition.scaleY=c.height/a);return this.chartPosition};b.prototype.getCoordinates=function(a){var c={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(d){c[d.isXAxis?
304
+ "xAxis":"yAxis"].push({axis:d,value:d.toValue(a[d.horiz?"chartX":"chartY"])})});return c};b.prototype.getHoverData=function(a,b,d,g,l,h){var f=[];g=!(!g||!a);var t={chartX:h?h.chartX:void 0,chartY:h?h.chartY:void 0,shared:l};e(this,"beforeGetHoverData",t);var n=b&&!b.stickyTracking?[b]:d.filter(function(a){return t.filter?t.filter(a):a.visible&&!(!l&&a.directTouch)&&p(a.options.enableMouseTracking,!0)&&a.stickyTracking});var k=g||!h?a:this.findNearestKDPoint(n,l,h);b=k&&k.series;k&&(l&&!b.noSharedTooltip?
305
+ (n=d.filter(function(a){return t.filter?t.filter(a):a.visible&&!(!l&&a.directTouch)&&p(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),n.forEach(function(a){var d=c(a.points,function(a){return a.x===k.x&&!a.isNull});C(d)&&(a.chart.isBoosting&&(d=a.getPoint(d)),f.push(d))})):f.push(k));t={hoverPoint:k};e(this,"afterGetHoverData",t);return{hoverPoint:t.hoverPoint,hoverSeries:b,hoverPoints:f}};b.prototype.getPointFromEvent=function(a){a=a.target;for(var c;a&&!c;)c=a.point,a=a.parentNode;return c};
306
+ b.prototype.onTrackerMouseOut=function(a){a=a.relatedTarget||a.toElement;var c=this.chart.hoverSeries;this.isDirectTouch=!1;if(!(!c||!a||c.stickyTracking||this.inClass(a,"highcharts-tooltip")||this.inClass(a,"highcharts-series-"+c.index)&&this.inClass(a,"highcharts-tracker")))c.onMouseOut()};b.prototype.inClass=function(a,c){for(var d;a;){if(d=r(a,"class")){if(-1!==d.indexOf(c))return!0;if(-1!==d.indexOf("highcharts-container"))return!1}a=a.parentNode}};b.prototype.init=function(a,c){this.options=
307
+ c;this.chart=a;this.runChartClick=!(!c.chart.events||!c.chart.events.click);this.pinchDown=[];this.lastValidTouch={};z&&(a.tooltip=new z(a,c.tooltip),this.followTouchMove=p(c.tooltip.followTouchMove,!0));this.setDOMEvents()};b.prototype.normalize=function(c,b){var d=c.touches,f=d?d.length?d.item(0):p(d.changedTouches,c.changedTouches)[0]:c;b||(b=this.getChartPosition());d=f.pageX-b.left;f=f.pageY-b.top;d/=b.scaleX;f/=b.scaleY;return a(c,{chartX:Math.round(d),chartY:Math.round(f)})};b.prototype.onContainerClick=
308
+ function(c){var b=this.chart,d=b.hoverPoint;c=this.normalize(c);var f=b.plotLeft,g=b.plotTop;b.cancelClick||(d&&this.inClass(c.target,"highcharts-tracker")?(e(d.series,"click",a(c,{point:d})),b.hoverPoint&&d.firePointEvent("click",c)):(a(c,this.getCoordinates(c)),b.isInsidePlot(c.chartX-f,c.chartY-g,{visiblePlotOnly:!0})&&e(b,"click",c)))};b.prototype.onContainerMouseDown=function(a){var c=1===((a.buttons||a.button)&1);a=this.normalize(a);if(q.isFirefox&&0!==a.button)this.onContainerMouseMove(a);
309
+ if("undefined"===typeof a.button||c)this.zoomOption(a),c&&a.preventDefault&&a.preventDefault(),this.dragStart(a)};b.prototype.onContainerMouseLeave=function(a){var c=D[p(b.hoverChartIndex,-1)],d=this.chart.tooltip;d&&d.shouldStickOnContact()&&this.inClass(a.relatedTarget,"highcharts-tooltip-container")||(a=this.normalize(a),c&&(a.relatedTarget||a.toElement)&&(c.pointer.reset(),c.pointer.chartPosition=void 0),d&&!d.isHidden&&this.reset())};b.prototype.onContainerMouseEnter=function(a){delete this.chartPosition};
310
+ b.prototype.onContainerMouseMove=function(a){var c=this.chart;a=this.normalize(a);this.setHoverChartIndex();a.preventDefault||(a.returnValue=!1);("mousedown"===c.mouseIsDown||this.touchSelect(a))&&this.drag(a);c.openMenu||!this.inClass(a.target,"highcharts-tracker")&&!c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop,{visiblePlotOnly:!0})||(this.inClass(a.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))};b.prototype.onDocumentTouchEnd=function(a){var c=D[p(b.hoverChartIndex,
311
+ -1)];c&&c.pointer.drop(a)};b.prototype.onContainerTouchMove=function(a){if(this.touchSelect(a))this.onContainerMouseMove(a);else this.touch(a)};b.prototype.onContainerTouchStart=function(a){if(this.touchSelect(a))this.onContainerMouseDown(a);else this.zoomOption(a),this.touch(a,!0)};b.prototype.onDocumentMouseMove=function(a){var c=this.chart,d=this.chartPosition;a=this.normalize(a,d);var b=c.tooltip;!d||b&&b.isStickyOnContact()||c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop,{visiblePlotOnly:!0})||
312
+ this.inClass(a.target,"highcharts-tracker")||this.reset()};b.prototype.onDocumentMouseUp=function(a){var c=D[p(b.hoverChartIndex,-1)];c&&c.pointer.drop(a)};b.prototype.pinch=function(c){var b=this,d=b.chart,f=b.pinchDown,g=c.touches||[],h=g.length,n=b.lastValidTouch,k=b.hasZoom,u={},m=1===h&&(b.inClass(c.target,"highcharts-tracker")&&d.runTrackerClick||b.runChartClick),v={},A=b.selectionMarker;1<h?b.initiated=!0:1===h&&this.followTouchMove&&(b.initiated=!1);k&&b.initiated&&!m&&!1!==c.cancelable&&
313
+ c.preventDefault();[].map.call(g,function(a){return b.normalize(a)});"touchstart"===c.type?([].forEach.call(g,function(a,c){f[c]={chartX:a.chartX,chartY:a.chartY}}),n.x=[f[0].chartX,f[1]&&f[1].chartX],n.y=[f[0].chartY,f[1]&&f[1].chartY],d.axes.forEach(function(a){if(a.zoomEnabled){var c=d.bounds[a.horiz?"h":"v"],b=a.minPixelPadding,f=a.toPixels(Math.min(p(a.options.min,a.dataMin),a.dataMin)),e=a.toPixels(Math.max(p(a.options.max,a.dataMax),a.dataMax)),g=Math.max(f,e);c.min=Math.min(a.pos,Math.min(f,
314
+ e)-b);c.max=Math.max(a.pos+a.len,g+b)}}),b.res=!0):b.followTouchMove&&1===h?this.runPointActions(b.normalize(c)):f.length&&(e(d,"touchpan",{originalEvent:c},function(){A||(b.selectionMarker=A=a({destroy:E,touch:!0},d.plotBox));b.pinchTranslate(f,g,u,A,v,n);b.hasPinched=k;b.scaleGroups(u,v)}),b.res&&(b.res=!1,this.reset(!1,0)))};b.prototype.pinchTranslate=function(a,c,d,b,e,g){this.zoomHor&&this.pinchTranslateDirection(!0,a,c,d,b,e,g);this.zoomVert&&this.pinchTranslateDirection(!1,a,c,d,b,e,g)};b.prototype.pinchTranslateDirection=
315
+ function(a,c,d,b,e,g,h,n){var f=this.chart,l=a?"x":"y",t=a?"X":"Y",p="chart"+t,k=a?"width":"height",u=f["plot"+(a?"Left":"Top")],m=f.inverted,y=f.bounds[a?"h":"v"],v=1===c.length,A=c[0][p],r=!v&&c[1][p];c=function(){"number"===typeof q&&20<Math.abs(A-r)&&(H=n||Math.abs(x-q)/Math.abs(A-r));L=(u-x)/H+A;C=f["plot"+(a?"Width":"Height")]/H};var C,L,H=n||1,x=d[0][p],q=!v&&d[1][p];c();d=L;if(d<y.min){d=y.min;var I=!0}else d+C>y.max&&(d=y.max-C,I=!0);I?(x-=.8*(x-h[l][0]),"number"===typeof q&&(q-=.8*(q-h[l][1])),
316
+ c()):h[l]=[x,q];m||(g[l]=L-u,g[k]=C);g=m?1/H:H;e[k]=C;e[l]=d;b[m?a?"scaleY":"scaleX":"scale"+t]=H;b["translate"+t]=g*u+(x-g*A)};b.prototype.reset=function(a,c){var d=this.chart,b=d.hoverSeries,f=d.hoverPoint,e=d.hoverPoints,g=d.tooltip,h=g&&g.shared?e:f;a&&h&&A(h).forEach(function(c){c.series.isCartesian&&"undefined"===typeof c.plotX&&(a=!1)});if(a)g&&h&&A(h).length&&(g.refresh(h),g.shared&&e?e.forEach(function(a){a.setState(a.state,!0);a.series.isCartesian&&(a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,
317
+ a),a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a))}):f&&(f.setState(f.state,!0),d.axes.forEach(function(a){a.crosshair&&f.series[a.coll]===a&&a.drawCrosshair(null,f)})));else{if(f)f.onMouseOut();e&&e.forEach(function(a){a.setState()});if(b)b.onMouseOut();g&&g.hide(c);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());d.axes.forEach(function(a){a.hideCrosshair()});this.hoverX=d.hoverPoints=d.hoverPoint=null}};b.prototype.runPointActions=function(a,e){var d=this.chart,
318
+ f=d.tooltip&&d.tooltip.options.enabled?d.tooltip:void 0,g=f?f.shared:!1,h=e||d.hoverPoint,n=h&&h.series||d.hoverSeries;e=this.getHoverData(h,n,d.series,(!a||"touchmove"!==a.type)&&(!!e||n&&n.directTouch&&this.isDirectTouch),g,a);h=e.hoverPoint;n=e.hoverSeries;var t=e.hoverPoints;e=n&&n.tooltipOptions.followPointer&&!n.tooltipOptions.split;g=g&&n&&!n.noSharedTooltip;if(h&&(h!==d.hoverPoint||f&&f.isHidden)){(d.hoverPoints||[]).forEach(function(a){-1===t.indexOf(a)&&a.setState()});if(d.hoverSeries!==
319
+ n)n.onMouseOver();this.applyInactiveState(t);(t||[]).forEach(function(a){a.setState("hover")});d.hoverPoint&&d.hoverPoint.firePointEvent("mouseOut");if(!h.series)return;d.hoverPoints=t;d.hoverPoint=h;h.firePointEvent("mouseOver");f&&f.refresh(g?t:h,a)}else e&&f&&!f.isHidden&&(h=f.getAnchor([{}],a),d.isInsidePlot(h[0],h[1],{visiblePlotOnly:!0})&&f.updatePosition({plotX:h[0],plotY:h[1]}));this.unDocMouseMove||(this.unDocMouseMove=k(d.container.ownerDocument,"mousemove",function(a){var c=D[b.hoverChartIndex];
320
+ if(c)c.pointer.onDocumentMouseMove(a)}),this.eventsToUnbind.push(this.unDocMouseMove));d.axes.forEach(function(b){var f=p((b.crosshair||{}).snap,!0),e;f&&((e=d.hoverPoint)&&e.series[b.coll]===b||(e=c(t,function(a){return a.series[b.coll]===b})));e||!f?b.drawCrosshair(a,e):b.hideCrosshair()})};b.prototype.scaleGroups=function(a,c){var d=this.chart;d.series.forEach(function(b){var f=a||b.getPlotBox();b.group&&(b.xAxis&&b.xAxis.zoomEnabled||d.mapView)&&(b.group.attr(f),b.markerGroup&&(b.markerGroup.attr(f),
321
+ b.markerGroup.clip(c?d.clipRect:null)),b.dataLabelsGroup&&b.dataLabelsGroup.attr(f))});d.clipRect.attr(c||d.clipBox)};b.prototype.setDOMEvents=function(){var a=this,c=this.chart.container,d=c.ownerDocument;c.onmousedown=this.onContainerMouseDown.bind(this);c.onmousemove=this.onContainerMouseMove.bind(this);c.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(k(c,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(k(c,"mouseleave",this.onContainerMouseLeave.bind(this)));
322
+ b.unbindDocumentMouseUp||(b.unbindDocumentMouseUp=k(d,"mouseup",this.onDocumentMouseUp.bind(this)));for(var e=this.chart.renderTo.parentElement;e&&"BODY"!==e.tagName;)this.eventsToUnbind.push(k(e,"scroll",function(){delete a.chartPosition})),e=e.parentElement;q.hasTouch&&(this.eventsToUnbind.push(k(c,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(k(c,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),b.unbindDocumentTouchEnd||(b.unbindDocumentTouchEnd=
323
+ k(d,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};b.prototype.setHoverChartIndex=function(){var a=this.chart,c=q.charts[p(b.hoverChartIndex,-1)];if(c&&c!==a)c.pointer.onContainerMouseLeave({relatedTarget:!0});c&&c.mouseIsDown||(b.hoverChartIndex=a.index)};b.prototype.touch=function(a,c){var d=this.chart,b;this.setHoverChartIndex();if(1===a.touches.length)if(a=this.normalize(a),(b=d.isInsidePlot(a.chartX-d.plotLeft,a.chartY-d.plotTop,{visiblePlotOnly:!0}))&&!d.openMenu){c&&this.runPointActions(a);
324
+ if("touchmove"===a.type){c=this.pinchDown;var f=c[0]?4<=Math.sqrt(Math.pow(c[0].chartX-a.chartX,2)+Math.pow(c[0].chartY-a.chartY,2)):!1}p(f,!0)&&this.pinch(a)}else c&&this.reset();else 2===a.touches.length&&this.pinch(a)};b.prototype.touchSelect=function(a){return!(!this.chart.options.chart.zoomBySingleTouch||!a.touches||1!==a.touches.length)};b.prototype.zoomOption=function(a){var c=this.chart,d=c.options.chart;c=c.inverted;var b=d.zoomType||"";/touch/.test(a.type)&&(b=p(d.pinchType,b));this.zoomX=
325
+ a=/x/.test(b);this.zoomY=d=/y/.test(b);this.zoomHor=a&&!c||d&&c;this.zoomVert=d&&!c||a&&c;this.hasZoom=a||d};return b}();"";return b});F(b,"Core/MSPointer.js",[b["Core/Globals.js"],b["Core/Pointer.js"],b["Core/Utilities.js"]],function(b,q,z){function x(){var a=[];a.item=function(a){return this[a]};c(g,function(c){a.push({pageX:c.pageX,pageY:c.pageY,target:c.target})});return a}function w(a,c,b,e){var g=E[q.hoverChartIndex||NaN];"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!g||
326
+ (g=g.pointer,e(a),g[c]({type:b,target:a.currentTarget,preventDefault:r,touches:x()}))}var D=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(c,b)};return function(c,b){function e(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}(),E=b.charts,k=b.doc,r=b.noop,m=b.win,h=z.addEvent,a=z.css,
327
+ c=z.objectEach,e=z.removeEvent,g={},C=!!m.PointerEvent;return function(c){function u(){return null!==c&&c.apply(this,arguments)||this}D(u,c);u.isRequired=function(){return!(b.hasTouch||!m.PointerEvent&&!m.MSPointerEvent)};u.prototype.batchMSEvents=function(a){a(this.chart.container,C?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,C?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(k,C?"pointerup":"MSPointerUp",this.onDocumentPointerUp)};u.prototype.destroy=
328
+ function(){this.batchMSEvents(e);c.prototype.destroy.call(this)};u.prototype.init=function(b,e){c.prototype.init.call(this,b,e);this.hasZoom&&a(b.container,{"-ms-touch-action":"none","touch-action":"none"})};u.prototype.onContainerPointerDown=function(a){w(a,"onContainerTouchStart","touchstart",function(a){g[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})};u.prototype.onContainerPointerMove=function(a){w(a,"onContainerTouchMove","touchmove",function(a){g[a.pointerId]={pageX:a.pageX,
329
+ pageY:a.pageY};g[a.pointerId].target||(g[a.pointerId].target=a.currentTarget)})};u.prototype.onDocumentPointerUp=function(a){w(a,"onDocumentTouchEnd","touchend",function(a){delete g[a.pointerId]})};u.prototype.setDOMEvents=function(){c.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(h)};return u}(q)});F(b,"Core/Legend/Legend.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Series/Point.js"],b["Core/Renderer/RendererUtilities.js"],
330
+ b["Core/Utilities.js"]],function(b,q,z,B,w,D){var x=b.animObject,k=b.setAnimation,r=q.format;b=z.isFirefox;var m=z.marginNames;z=z.win;var h=w.distribute,a=D.addEvent,c=D.createElement,e=D.css,g=D.defined,C=D.discardElement,v=D.find,u=D.fireEvent,p=D.isNumber,A=D.merge,n=D.pick,f=D.relativeLength,t=D.stableSort,d=D.syncTimeout;w=D.wrap;D=function(){function b(a,c){this.allItems=[];this.contentGroup=this.box=void 0;this.display=!1;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=
331
+ this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0;this.options={};this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup=void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=a;this.init(a,c)}b.prototype.init=function(c,d){this.chart=c;this.setOptions(d);d.enabled&&(this.render(),a(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),
332
+ this.proximate?this.unchartrender=a(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};b.prototype.setOptions=function(a){var c=n(a.padding,8);this.options=a;this.chart.styledMode||(this.itemStyle=a.itemStyle,this.itemHiddenStyle=A(this.itemStyle,a.itemHiddenStyle));this.itemMarginTop=a.itemMarginTop||0;this.itemMarginBottom=a.itemMarginBottom||0;this.padding=c;this.initialItemY=c-5;this.symbolWidth=n(a.symbolWidth,
333
+ 16);this.pages=[];this.proximate="proximate"===a.layout&&!this.chart.inverted;this.baseline=void 0};b.prototype.update=function(a,c){var d=this.chart;this.setOptions(A(!0,this.options,a));this.destroy();d.isDirtyLegend=d.isDirtyBox=!0;n(c,!0)&&d.redraw();u(this,"afterUpdate")};b.prototype.colorizeItem=function(a,c){a.legendGroup[c?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var d=this.options,b=a.legendItem,e=a.legendLine,f=a.legendSymbol,g=this.itemHiddenStyle.color;
334
+ d=c?d.itemStyle.color:g;var l=c?a.color||g:g,h=a.options&&a.options.marker,n={fill:l};b&&b.css({fill:d,color:d});e&&e.attr({stroke:l});f&&(h&&f.isMarker&&(n=a.pointAttribs(),c||(n.stroke=n.fill=g)),f.attr(n))}u(this,"afterColorizeItem",{item:a,visible:c})};b.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()};b.prototype.positionItem=function(a){var c=this,d=this.options,b=d.symbolPadding,e=!d.rtl,f=a._legendItemPos;d=
335
+ f[0];f=f[1];var l=a.checkbox,h=a.legendGroup;h&&h.element&&(b={translateX:e?d:this.legendWidth-d-2*b-4,translateY:f},e=function(){u(c,"afterPositionItem",{item:a})},g(h.translateY)?h.animate(b,void 0,e):(h.attr(b),e()));l&&(l.x=d,l.y=f)};b.prototype.destroyItem=function(a){var c=a.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(c){a[c]&&(a[c]=a[c].destroy())});c&&C(a.checkbox)};b.prototype.destroy=function(){function a(a){this[a]&&(this[a]=this[a].destroy())}this.getAllItems().forEach(function(c){["legendItem",
336
+ "legendGroup"].forEach(a,c)});"clipRect up down pager nav box title group".split(" ").forEach(a,this);this.display=null};b.prototype.positionCheckboxes=function(){var a=this.group&&this.group.alignAttr,c=this.clipHeight||this.legendHeight,d=this.titleHeight;if(a){var b=a.translateY;this.allItems.forEach(function(f){var g=f.checkbox;if(g){var l=b+d+g.y+(this.scrollOffset||0)+3;e(g,{left:a.translateX+f.checkboxOffset+g.x-20+"px",top:l+"px",display:this.proximate||l>b-6&&l<b+c-6?"":"none"})}},this)}};
337
+ b.prototype.renderTitle=function(){var a=this.options,c=this.padding,d=a.title,b=0;d.text&&(this.title||(this.title=this.chart.renderer.label(d.text,c-3,c-4,null,null,null,a.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(d.style),this.title.add(this.group)),d.width||this.title.css({width:this.maxLegendWidth+"px"}),a=this.title.getBBox(),b=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:b}));this.titleHeight=b};b.prototype.setText=function(a){var c=
338
+ this.options;a.legendItem.attr({text:c.labelFormat?r(c.labelFormat,a,this.chart):c.labelFormatter.call(a)})};b.prototype.renderItem=function(a){var c=this.chart,d=c.renderer,b=this.options,e=this.symbolWidth,f=b.symbolPadding||0,g=this.itemStyle,l=this.itemHiddenStyle,h="horizontal"===b.layout?n(b.itemDistance,20):0,t=!b.rtl,p=!a.series,k=!p&&a.series.drawLegendSymbol?a.series:a,u=k.options,m=this.createCheckboxForItem&&u&&u.showCheckbox,r=b.useHTML,v=a.options.className,y=a.legendItem;u=e+f+h+(m?
339
+ 20:0);y||(a.legendGroup=d.g("legend-item").addClass("highcharts-"+k.type+"-series highcharts-color-"+a.colorIndex+(v?" "+v:"")+(p?" highcharts-series-"+a.index:"")).attr({zIndex:1}).add(this.scrollGroup),a.legendItem=y=d.text("",t?e+f:-f,this.baseline||0,r),c.styledMode||y.css(A(a.visible?g:l)),y.attr({align:t?"left":"right",zIndex:2}).add(a.legendGroup),this.baseline||(this.fontMetrics=d.fontMetrics(c.styledMode?12:g.fontSize,y),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,y.attr("y",this.baseline),
340
+ this.symbolHeight=b.symbolHeight||this.fontMetrics.f,b.squareSymbol&&(this.symbolWidth=n(b.symbolWidth,Math.max(this.symbolHeight,16)),u=this.symbolWidth+f+h+(m?20:0),t&&y.attr("x",this.symbolWidth+f))),k.drawLegendSymbol(this,a),this.setItemEvents&&this.setItemEvents(a,y,r));m&&!a.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(a);this.colorizeItem(a,a.visible);!c.styledMode&&g.width||y.css({width:(b.itemWidth||this.widthOption||c.spacingBox.width)-u+"px"});this.setText(a);c=y.getBBox();
341
+ a.itemWidth=a.checkboxOffset=b.itemWidth||a.legendItemWidth||c.width+u;this.maxItemWidth=Math.max(this.maxItemWidth,a.itemWidth);this.totalItemWidth+=a.itemWidth;this.itemHeight=a.itemHeight=Math.round(a.legendItemHeight||c.height||this.symbolHeight)};b.prototype.layoutItem=function(a){var c=this.options,d=this.padding,b="horizontal"===c.layout,e=a.itemHeight,f=this.itemMarginBottom,g=this.itemMarginTop,l=b?n(c.itemDistance,20):0,h=this.maxLegendWidth;c=c.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:
342
+ a.itemWidth;b&&this.itemX-d+c>h&&(this.itemX=d,this.lastLineHeight&&(this.itemY+=g+this.lastLineHeight+f),this.lastLineHeight=0);this.lastItemY=g+this.itemY+f;this.lastLineHeight=Math.max(e,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];b?this.itemX+=c:(this.itemY+=g+e+f,this.lastLineHeight=e);this.offsetWidth=this.widthOption||Math.max((b?this.itemX-d-(a.checkbox?0:l):c)+d,this.offsetWidth)};b.prototype.getAllItems=function(){var a=[];this.chart.series.forEach(function(c){var d=c&&
343
+ c.options;c&&n(d.showInLegend,g(d.linkedTo)?!1:void 0,!0)&&(a=a.concat(c.legendItems||("point"===d.legendType?c.data:c)))});u(this,"afterGetAllItems",{allItems:a});return a};b.prototype.getAlignment=function(){var a=this.options;return this.proximate?a.align.charAt(0)+"tv":a.floating?"":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)};b.prototype.adjustMargins=function(a,c){var d=this.chart,b=this.options,e=this.getAlignment();e&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(f,
344
+ l){f.test(e)&&!g(a[l])&&(d[m[l]]=Math.max(d[m[l]],d.legend[(l+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][l]*b[l%2?"x":"y"]+n(b.margin,12)+c[l]+(d.titleOffset[l]||0)))})};b.prototype.proximatePositions=function(){var a=this.chart,c=[],d="left"===this.options.align;this.allItems.forEach(function(b){var e;var f=d;if(b.yAxis){b.xAxis.options.reversed&&(f=!f);b.points&&(e=v(f?b.points:b.points.slice(0).reverse(),function(a){return p(a.plotY)}));f=this.itemMarginTop+b.legendItem.getBBox().height+this.itemMarginBottom;
345
+ var g=b.yAxis.top-a.plotTop;b.visible?(e=e?e.plotY:b.yAxis.height,e+=g-.3*f):e=g+b.yAxis.height;c.push({target:e,size:f,item:b})}},this);h(c,a.plotHeight).forEach(function(c){c.item._legendItemPos&&(c.item._legendItemPos[1]=a.plotTop-a.spacing[0]+c.pos)})};b.prototype.render=function(){var a=this.chart,c=a.renderer,d=this.options,b=this.padding,e=this.getAllItems(),g=this.group,h=this.box;this.itemX=b;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=f(d.width,a.spacingBox.width-
346
+ b);var n=a.spacingBox.width-2*b-d.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(n/=2);this.maxLegendWidth=this.widthOption||n;g||(this.group=g=c.g("legend").addClass(d.className||"").attr({zIndex:7}).add(),this.contentGroup=c.g().attr({zIndex:1}).add(g),this.scrollGroup=c.g().add(this.contentGroup));this.renderTitle();t(e,function(a,c){return(a.options&&a.options.legendIndex||0)-(c.options&&c.options.legendIndex||0)});d.reversed&&e.reverse();this.allItems=e;this.display=n=!!e.length;
347
+ this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;e.forEach(this.renderItem,this);e.forEach(this.layoutItem,this);e=(this.widthOption||this.offsetWidth)+b;var p=this.lastItemY+this.lastLineHeight+this.titleHeight;p=this.handleOverflow(p);p+=b;h||(this.box=h=c.rect().addClass("highcharts-legend-box").attr({r:d.borderRadius}).add(g),h.isNew=!0);a.styledMode||h.attr({stroke:d.borderColor,"stroke-width":d.borderWidth||0,fill:d.backgroundColor||"none"}).shadow(d.shadow);0<e&&
348
+ 0<p&&(h[h.isNew?"attr":"animate"](h.crisp.call({},{x:0,y:0,width:e,height:p},h.strokeWidth())),h.isNew=!1);h[n?"show":"hide"]();a.styledMode&&"none"===g.getStyle("display")&&(e=p=0);this.legendWidth=e;this.legendHeight=p;n&&this.align();this.proximate||this.positionItems();u(this,"afterRender")};b.prototype.align=function(a){void 0===a&&(a=this.chart.spacingBox);var c=this.chart,d=this.options,b=a.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<c.titleOffset[0]?b+=c.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&
349
+ 0<c.titleOffset[2]&&(b-=c.titleOffset[2]);b!==a.y&&(a=A(a,{y:b}));this.group.align(A(d,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":d.verticalAlign}),!0,a)};b.prototype.handleOverflow=function(a){var c=this,d=this.chart,b=d.renderer,e=this.options,f=e.y,g="top"===e.verticalAlign,h=this.padding,l=e.maxHeight,t=e.navigation,p=n(t.animation,!0),k=t.arrowSize||12,u=this.pages,m=this.allItems,y=function(a){"number"===typeof a?x.attr({height:a}):x&&(c.clipRect=x.destroy(),
350
+ c.contentGroup.clip());c.contentGroup.div&&(c.contentGroup.div.style.clip=a?"rect("+h+"px,9999px,"+(h+a)+"px,0)":"auto")},r=function(a){c[a]=b.circle(0,0,1.3*k).translate(k/2,k/2).add(C);d.styledMode||c[a].attr("fill","rgba(0,0,0,0.0001)");return c[a]},v,A;f=d.spacingBox.height+(g?-f:f)-h;var C=this.nav,x=this.clipRect;"horizontal"!==e.layout||"middle"===e.verticalAlign||e.floating||(f/=2);l&&(f=Math.min(f,l));u.length=0;a&&0<f&&a>f&&!1!==t.enabled?(this.clipHeight=v=Math.max(f-20-this.titleHeight-
351
+ h,0),this.currentPage=n(this.currentPage,1),this.fullHeight=a,m.forEach(function(a,c){var d=a._legendItemPos[1],b=Math.round(a.legendItem.getBBox().height),e=u.length;if(!e||d-u[e-1]>v&&(A||d)!==u[e-1])u.push(A||d),e++;a.pageIx=e-1;A&&(m[c-1].pageIx=e-1);c===m.length-1&&d+b-u[e-1]>v&&b<=v&&(u.push(d),a.pageIx=e);d!==A&&(A=d)}),x||(x=c.clipRect=b.clipRect(0,h,9999,0),c.contentGroup.clip(x)),y(v),C||(this.nav=C=b.g().attr({zIndex:1}).add(this.group),this.up=b.symbol("triangle",0,0,k,k).add(C),r("upTracker").on("click",
352
+ function(){c.scroll(-1,p)}),this.pager=b.text("",15,10).addClass("highcharts-legend-navigation"),d.styledMode||this.pager.css(t.style),this.pager.add(C),this.down=b.symbol("triangle-down",0,0,k,k).add(C),r("downTracker").on("click",function(){c.scroll(1,p)})),c.scroll(0),a=f):C&&(y(),this.nav=C.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a};b.prototype.scroll=function(a,c){var b=this,e=this.chart,f=this.pages,g=f.length,h=this.clipHeight,l=this.options.navigation,t=this.pager,
353
+ p=this.padding,m=this.currentPage+a;m>g&&(m=g);0<m&&("undefined"!==typeof c&&k(c,e),this.nav.attr({translateX:p,translateY:h+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(a){a.attr({"class":1===m?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),t.attr({text:m+"/"+g}),[this.down,this.downTracker].forEach(function(a){a.attr({x:18+this.pager.getBBox().width,"class":m===g?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},
354
+ this),e.styledMode||(this.up.attr({fill:1===m?l.inactiveColor:l.activeColor}),this.upTracker.css({cursor:1===m?"default":"pointer"}),this.down.attr({fill:m===g?l.inactiveColor:l.activeColor}),this.downTracker.css({cursor:m===g?"default":"pointer"})),this.scrollOffset=-f[m-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=m,this.positionCheckboxes(),a=x(n(c,e.renderer.globalAnimation,!0)),d(function(){u(b,"afterScroll",{currentPage:m})},a.duration))};b.prototype.setItemEvents=
355
+ function(a,c,d){var b=this,e=b.chart.renderer.boxWrapper,f=a instanceof B,g="highcharts-legend-"+(f?"point":"series")+"-active",h=b.chart.styledMode,l=function(c){b.allItems.forEach(function(d){a!==d&&[d].concat(d.linkedSeries||[]).forEach(function(a){a.setState(c,!f)})})};(d?[c,a.legendSymbol]:[a.legendGroup]).forEach(function(d){if(d)d.on("mouseover",function(){a.visible&&l("inactive");a.setState("hover");a.visible&&e.addClass(g);h||c.css(b.options.itemHoverStyle)}).on("mouseout",function(){b.chart.styledMode||
356
+ c.css(A(a.visible?b.itemStyle:b.itemHiddenStyle));l("");e.removeClass(g);a.setState()}).on("click",function(c){var d=function(){a.setVisible&&a.setVisible();l(a.visible?"inactive":"")};e.removeClass(g);c={browserEvent:c};a.firePointEvent?a.firePointEvent("legendItemClick",c,d):u(a,"legendItemClick",c,d)})})};b.prototype.createCheckboxForItem=function(d){d.checkbox=c("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:d.selected,defaultChecked:d.selected},this.options.itemCheckboxStyle,
357
+ this.chart.container);a(d.checkbox,"click",function(a){u(d.series||d,"checkboxClick",{checked:a.target.checked,item:d},function(){d.select()})})};return b}();(/Trident\/7\.0/.test(z.navigator&&z.navigator.userAgent)||b)&&w(D.prototype,"positionItem",function(a,c){var d=this,b=function(){c._legendItemPos&&a.call(d,c)};b();d.bubbleLegend||setTimeout(b)});"";return D});F(b,"Core/Series/SeriesRegistry.js",[b["Core/Globals.js"],b["Core/DefaultOptions.js"],b["Core/Series/Point.js"],b["Core/Utilities.js"]],
358
+ function(b,q,z,B){var x=q.defaultOptions,D=B.error,E=B.extendClass,k=B.merge,r;(function(m){function h(a,c){var b=x.plotOptions||{},g=c.defaultOptions;c.prototype.pointClass||(c.prototype.pointClass=z);c.prototype.type=a;g&&(b[a]=g);m.seriesTypes[a]=c}m.seriesTypes=b.seriesTypes;m.getSeries=function(a,c){void 0===c&&(c={});var b=a.options.chart;b=c.type||b.type||b.defaultSeriesType||"";var g=m.seriesTypes[b];m||D(17,!0,a,{missingModuleFor:b});b=new g;"function"===typeof b.init&&b.init(a,c);return b};
359
+ m.registerSeriesType=h;m.seriesType=function(a,c,b,g,r){var e=x.plotOptions||{};c=c||"";e[a]=k(e[c],b);h(a,E(m.seriesTypes[c]||function(){},g));m.seriesTypes[a].prototype.type=a;r&&(m.seriesTypes[a].prototype.pointClass=E(z,r));return m.seriesTypes[a]}})(r||(r={}));return r});F(b,"Core/Chart/Chart.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Axis/Axis.js"],b["Core/FormatUtilities.js"],b["Core/Foundation.js"],b["Core/Globals.js"],b["Core/Legend/Legend.js"],b["Core/MSPointer.js"],b["Core/DefaultOptions.js"],
360
+ b["Core/Pointer.js"],b["Core/Renderer/RendererRegistry.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Time.js"],b["Core/Utilities.js"],b["Core/Renderer/HTML/AST.js"]],function(b,q,z,B,w,D,E,k,r,m,h,a,c,e,g){var C=b.animate,v=b.animObject,u=b.setAnimation,p=z.numberFormat,A=B.registerEventOptions,n=w.charts,f=w.doc,t=w.marginNames,d=w.svg,y=w.win,l=k.defaultOptions,x=k.defaultTime,K=h.seriesTypes,I=e.addEvent,G=e.attr,N=e.cleanRecursively,aa=e.createElement,P=
361
+ e.css,S=e.defined,U=e.discardElement,F=e.erase,J=e.error,ca=e.extend,ha=e.find,M=e.fireEvent,Y=e.getStyle,L=e.isArray,T=e.isNumber,R=e.isObject,W=e.isString,V=e.merge,X=e.objectEach,O=e.pick,da=e.pInt,ea=e.relativeLength,ia=e.removeEvent,ba=e.splat,fa=e.syncTimeout,ja=e.uniqueKey;b=function(){function b(a,c,b){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=
362
+ this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0;this.sharedClips={};this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0;this.getArgs(a,c,b)}b.chart=function(a,c,d){return new b(a,c,d)};b.prototype.getArgs=function(a,c,b){W(a)||a.nodeName?(this.renderTo=a,this.init(c,b)):this.init(a,c)};b.prototype.init=
363
+ function(a,b){var d=a.plotOptions||{};M(this,"init",{args:arguments},function(){var e=V(l,a),f=e.chart;X(e.plotOptions,function(a,c){R(a)&&(a.tooltip=d[c]&&V(d[c].tooltip)||void 0)});e.tooltip.userOptions=a.chart&&a.chart.forExport&&a.tooltip.userOptions||a.tooltip;this.userOptions=a;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=b;this.isResizing=0;this.options=e;this.axes=[];this.series=[];this.time=a.time&&Object.keys(a.time).length?new c(a.time):w.time;
364
+ this.numberFormatter=f.numberFormatter||p;this.styledMode=f.styledMode;this.hasCartesianSeries=f.showAxes;this.index=n.length;n.push(this);w.chartCount++;A(this,f);this.xAxis=[];this.yAxis=[];this.pointCount=this.colorCounter=this.symbolCounter=0;M(this,"afterInit");this.firstRender()})};b.prototype.initSeries=function(a){var c=this.options.chart;c=a.type||c.type||c.defaultSeriesType;var b=K[c];b||J(17,!0,this,{missingModuleFor:c});c=new b;"function"===typeof c.init&&c.init(this,a);return c};b.prototype.setSeriesData=
365
+ function(){this.getSeriesOrderByLinks().forEach(function(a){a.points||a.data||!a.enabledDataSorting||a.setData(a.options.data,!1)})};b.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(a,c){return a.linkedSeries.length||c.linkedSeries.length?c.linkedSeries.length-a.linkedSeries.length:0})};b.prototype.orderSeries=function(a){var c=this.series;a=a||0;for(var b=c.length;a<b;++a)c[a]&&(c[a].index=a,c[a].name=c[a].getName())};b.prototype.isInsidePlot=function(a,c,b){void 0===
366
+ b&&(b={});var d=this.inverted,e=this.plotBox,f=this.plotLeft,g=this.plotTop,h=this.scrollablePlotBox,l=0;var n=0;b.visiblePlotOnly&&this.scrollingContainer&&(n=this.scrollingContainer,l=n.scrollLeft,n=n.scrollTop);var t=b.series;e=b.visiblePlotOnly&&h||e;h=b.inverted?c:a;c=b.inverted?a:c;a={x:h,y:c,isInsidePlot:!0};if(!b.ignoreX){var p=t&&(d?t.yAxis:t.xAxis)||{pos:f,len:Infinity};h=b.paneCoordinates?p.pos+h:f+h;h>=Math.max(l+f,p.pos)&&h<=Math.min(l+f+e.width,p.pos+p.len)||(a.isInsidePlot=!1)}!b.ignoreY&&
367
+ a.isInsidePlot&&(d=t&&(d?t.xAxis:t.yAxis)||{pos:g,len:Infinity},b=b.paneCoordinates?d.pos+c:g+c,b>=Math.max(n+g,d.pos)&&b<=Math.min(n+g+e.height,d.pos+d.len)||(a.isInsidePlot=!1));M(this,"afterIsInsidePlot",a);return a.isInsidePlot};b.prototype.redraw=function(a){M(this,"beforeRedraw");var c=this.hasCartesianSeries?this.axes:this.colorAxis||[],b=this.series,d=this.pointer,e=this.legend,f=this.userOptions.legend,g=this.renderer,h=g.isHidden(),l=[],n=this.isDirtyBox,t=this.isDirtyLegend;this.setResponsive&&
368
+ this.setResponsive(!1);u(this.hasRendered?a:!1,this);h&&this.temporaryDisplay();this.layOutTitles();for(a=b.length;a--;){var p=b[a];if(p.options.stacking||p.options.centerInCategory){var k=!0;if(p.isDirty){var m=!0;break}}}if(m)for(a=b.length;a--;)p=b[a],p.options.stacking&&(p.isDirty=!0);b.forEach(function(a){a.isDirty&&("point"===a.options.legendType?("function"===typeof a.updateTotals&&a.updateTotals(),t=!0):f&&(f.labelFormatter||f.labelFormat)&&(t=!0));a.isDirtyData&&M(a,"updatedData")});t&&e&&
369
+ e.options.enabled&&(e.render(),this.isDirtyLegend=!1);k&&this.getStacks();c.forEach(function(a){a.updateNames();a.setScale()});this.getMargins();c.forEach(function(a){a.isDirty&&(n=!0)});c.forEach(function(a){var c=a.min+","+a.max;a.extKey!==c&&(a.extKey=c,l.push(function(){M(a,"afterSetExtremes",ca(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(n||k)&&a.redraw()});n&&this.drawChartBox();M(this,"predraw");b.forEach(function(a){(n||a.isDirty)&&a.visible&&a.redraw();a.isDirtyData=!1});d&&d.reset(!0);
370
+ g.draw();M(this,"redraw");M(this,"render");h&&this.temporaryDisplay(!0);l.forEach(function(a){a.call()})};b.prototype.get=function(a){function c(c){return c.id===a||c.options&&c.options.id===a}for(var b=this.series,d=ha(this.axes,c)||ha(this.series,c),e=0;!d&&e<b.length;e++)d=ha(b[e].points||[],c);return d};b.prototype.getAxes=function(){var a=this,c=this.options,b=c.xAxis=ba(c.xAxis||{});c=c.yAxis=ba(c.yAxis||{});M(this,"getAxes");b.forEach(function(a,c){a.index=c;a.isX=!0});c.forEach(function(a,
371
+ c){a.index=c});b.concat(c).forEach(function(c){new q(a,c)});M(this,"afterGetAxes")};b.prototype.getSelectedPoints=function(){return this.series.reduce(function(a,c){c.getPointsCollection().forEach(function(c){O(c.selectedStaging,c.selected)&&a.push(c)});return a},[])};b.prototype.getSelectedSeries=function(){return this.series.filter(function(a){return a.selected})};b.prototype.setTitle=function(a,c,b){this.applyDescription("title",a);this.applyDescription("subtitle",c);this.applyDescription("caption",
372
+ void 0);this.layOutTitles(b)};b.prototype.applyDescription=function(a,c){var b=this,d="title"===a?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};d=this.options[a]=V(!this.styledMode&&{style:d},this.options[a],c);var e=this[a];e&&c&&(this[a]=e=e.destroy());d&&!e&&(e=this.renderer.text(d.text,0,0,d.useHTML).attr({align:d.align,"class":"highcharts-"+a,zIndex:d.zIndex||4}).add(),e.update=function(c){b[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[a]](c)},
373
+ this.styledMode||e.css(d.style),this[a]=e)};b.prototype.layOutTitles=function(a){var c=[0,0,0],b=this.renderer,d=this.spacingBox;["title","subtitle","caption"].forEach(function(a){var e=this[a],f=this.options[a],g=f.verticalAlign||"top";a="title"===a?"top"===g?-3:0:"top"===g?c[0]+2:0;var h;if(e){this.styledMode||(h=f.style&&f.style.fontSize);h=b.fontMetrics(h,e).b;e.css({width:(f.width||d.width+(f.widthAdjust||0))+"px"});var l=Math.round(e.getBBox(f.useHTML).height);e.align(ca({y:"bottom"===g?h:a+
374
+ h,height:l},f),!1,"spacingBox");f.floating||("top"===g?c[0]=Math.ceil(c[0]+l):"bottom"===g&&(c[2]=Math.ceil(c[2]+l)))}},this);c[0]&&"top"===(this.options.title.verticalAlign||"top")&&(c[0]+=this.options.title.margin);c[2]&&"bottom"===this.options.caption.verticalAlign&&(c[2]+=this.options.caption.margin);var e=!this.titleOffset||this.titleOffset.join(",")!==c.join(",");this.titleOffset=c;M(this,"afterLayOutTitles");!this.isDirtyBox&&e&&(this.isDirtyBox=this.isDirtyLegend=e,this.hasRendered&&O(a,!0)&&
375
+ this.isDirtyBox&&this.redraw())};b.prototype.getChartSize=function(){var a=this.options.chart,c=a.width;a=a.height;var b=this.renderTo;S(c)||(this.containerWidth=Y(b,"width"));S(a)||(this.containerHeight=Y(b,"height"));this.chartWidth=Math.max(0,c||this.containerWidth||600);this.chartHeight=Math.max(0,ea(a,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))};b.prototype.temporaryDisplay=function(a){var c=this.renderTo;if(a)for(;c&&c.style;)c.hcOrigStyle&&(P(c,c.hcOrigStyle),delete c.hcOrigStyle),
376
+ c.hcOrigDetached&&(f.body.removeChild(c),c.hcOrigDetached=!1),c=c.parentNode;else for(;c&&c.style;){f.body.contains(c)||c.parentNode||(c.hcOrigDetached=!0,f.body.appendChild(c));if("none"===Y(c,"display",!1)||c.hcOricDetached)c.hcOrigStyle={display:c.style.display,height:c.style.height,overflow:c.style.overflow},a={display:"block",overflow:"hidden"},c!==this.renderTo&&(a.height=0),P(c,a),c.offsetWidth||c.style.setProperty("display","block","important");c=c.parentNode;if(c===f.body)break}};b.prototype.setClassName=
377
+ function(a){this.container.className="highcharts-container "+(a||"")};b.prototype.getContainer=function(){var c=this.options,b=c.chart,e=ja(),g,h=this.renderTo;h||(this.renderTo=h=b.renderTo);W(h)&&(this.renderTo=h=f.getElementById(h));h||J(13,!0,this);var l=da(G(h,"data-highcharts-chart"));T(l)&&n[l]&&n[l].hasRendered&&n[l].destroy();G(h,"data-highcharts-chart",this.index);h.innerHTML="";b.skipClone||h.offsetWidth||this.temporaryDisplay();this.getChartSize();l=this.chartWidth;var t=this.chartHeight;
378
+ P(h,{overflow:"hidden"});this.styledMode||(g=ca({position:"relative",overflow:"hidden",width:l+"px",height:t+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},b.style||{}));this.container=e=aa("div",{id:e},g,h);this._cursor=e.style.cursor;this.renderer=new (b.renderer||!d?m.getRendererType(b.renderer):a)(e,l,t,void 0,b.forExport,c.exporting&&c.exporting.allowHTML,this.styledMode);u(void 0,
379
+ this);this.setClassName(b.className);if(this.styledMode)for(var p in c.defs)this.renderer.definition(c.defs[p]);else this.renderer.setStyle(b.style);this.renderer.chartIndex=this.index;M(this,"afterGetContainer")};b.prototype.getMargins=function(a){var c=this.spacing,b=this.margin,d=this.titleOffset;this.resetMargins();d[0]&&!S(b[0])&&(this.plotTop=Math.max(this.plotTop,d[0]+c[0]));d[2]&&!S(b[2])&&(this.marginBottom=Math.max(this.marginBottom,d[2]+c[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(b,
380
+ c);M(this,"getMargins");a||this.getAxisMargins()};b.prototype.getAxisMargins=function(){var a=this,c=a.axisOffset=[0,0,0,0],b=a.colorAxis,d=a.margin,e=function(a){a.forEach(function(a){a.visible&&a.getOffset()})};a.hasCartesianSeries?e(a.axes):b&&b.length&&e(b);t.forEach(function(b,e){S(d[e])||(a[b]+=c[e])});a.setChartSize()};b.prototype.reflow=function(a){var c=this,b=c.options.chart,d=c.renderTo,g=S(b.width)&&S(b.height),h=b.width||Y(d,"width");b=b.height||Y(d,"height");d=a?a.target:y;delete c.pointer.chartPosition;
381
+ if(!g&&!c.isPrinting&&h&&b&&(d===y||d===f)){if(h!==c.containerWidth||b!==c.containerHeight)e.clearTimeout(c.reflowTimeout),c.reflowTimeout=fa(function(){c.container&&c.setSize(void 0,void 0,!1)},a?100:0);c.containerWidth=h;c.containerHeight=b}};b.prototype.setReflow=function(a){var c=this;!1===a||this.unbindReflow?!1===a&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=I(y,"resize",function(a){c.options&&c.reflow(a)}),I(this,"destroy",this.unbindReflow))};b.prototype.setSize=
382
+ function(a,c,b){var d=this,e=d.renderer;d.isResizing+=1;u(b,d);b=e.globalAnimation;d.oldChartHeight=d.chartHeight;d.oldChartWidth=d.chartWidth;"undefined"!==typeof a&&(d.options.chart.width=a);"undefined"!==typeof c&&(d.options.chart.height=c);d.getChartSize();d.styledMode||(b?C:P)(d.container,{width:d.chartWidth+"px",height:d.chartHeight+"px"},b);d.setChartSize(!0);e.setSize(d.chartWidth,d.chartHeight,b);d.axes.forEach(function(a){a.isDirty=!0;a.setScale()});d.isDirtyLegend=!0;d.isDirtyBox=!0;d.layOutTitles();
383
+ d.getMargins();d.redraw(b);d.oldChartHeight=null;M(d,"resize");fa(function(){d&&M(d,"endResize",null,function(){--d.isResizing})},v(b).duration)};b.prototype.setChartSize=function(a){var c=this.inverted,b=this.renderer,d=this.chartWidth,e=this.chartHeight,f=this.options.chart,g=this.spacing,h=this.clipOffset,l,n,t,p;this.plotLeft=l=Math.round(this.plotLeft);this.plotTop=n=Math.round(this.plotTop);this.plotWidth=t=Math.max(0,Math.round(d-l-this.marginRight));this.plotHeight=p=Math.max(0,Math.round(e-
384
+ n-this.marginBottom));this.plotSizeX=c?p:t;this.plotSizeY=c?t:p;this.plotBorderWidth=f.plotBorderWidth||0;this.spacingBox=b.spacingBox={x:g[3],y:g[0],width:d-g[3]-g[1],height:e-g[0]-g[2]};this.plotBox=b.plotBox={x:l,y:n,width:t,height:p};c=2*Math.floor(this.plotBorderWidth/2);d=Math.ceil(Math.max(c,h[3])/2);e=Math.ceil(Math.max(c,h[0])/2);this.clipBox={x:d,y:e,width:Math.floor(this.plotSizeX-Math.max(c,h[1])/2-d),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(c,h[2])/2-e))};a||(this.axes.forEach(function(a){a.setAxisSize();
385
+ a.setAxisTranslation()}),b.alignElements());M(this,"afterSetChartSize",{skipAxes:a})};b.prototype.resetMargins=function(){M(this,"resetMargins");var a=this,c=a.options.chart;["margin","spacing"].forEach(function(b){var d=c[b],e=R(d)?d:[d,d,d,d];["Top","Right","Bottom","Left"].forEach(function(d,f){a[b][f]=O(c[b+d],e[f])})});t.forEach(function(c,b){a[c]=O(a.margin[b],a.spacing[b])});a.axisOffset=[0,0,0,0];a.clipOffset=[0,0,0,0]};b.prototype.drawChartBox=function(){var a=this.options.chart,c=this.renderer,
386
+ b=this.chartWidth,d=this.chartHeight,e=this.styledMode,f=this.plotBGImage,g=a.backgroundColor,h=a.plotBackgroundColor,l=a.plotBackgroundImage,n=this.plotLeft,t=this.plotTop,p=this.plotWidth,k=this.plotHeight,m=this.plotBox,u=this.clipRect,r=this.clipBox,y=this.chartBackground,v=this.plotBackground,A=this.plotBorder,C,L="animate";y||(this.chartBackground=y=c.rect().addClass("highcharts-background").add(),L="attr");if(e)var x=C=y.strokeWidth();else{x=a.borderWidth||0;C=x+(a.shadow?8:0);g={fill:g||"none"};
387
+ if(x||y["stroke-width"])g.stroke=a.borderColor,g["stroke-width"]=x;y.attr(g).shadow(a.shadow)}y[L]({x:C/2,y:C/2,width:b-C-x%2,height:d-C-x%2,r:a.borderRadius});L="animate";v||(L="attr",this.plotBackground=v=c.rect().addClass("highcharts-plot-background").add());v[L](m);e||(v.attr({fill:h||"none"}).shadow(a.plotShadow),l&&(f?(l!==f.attr("href")&&f.attr("href",l),f.animate(m)):this.plotBGImage=c.image(l,n,t,p,k).add()));u?u.animate({width:r.width,height:r.height}):this.clipRect=c.clipRect(r);L="animate";
388
+ A||(L="attr",this.plotBorder=A=c.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());e||A.attr({stroke:a.plotBorderColor,"stroke-width":a.plotBorderWidth||0,fill:"none"});A[L](A.crisp({x:n,y:t,width:p,height:k},-A.strokeWidth()));this.isDirtyBox=!1;M(this,"afterDrawChartBox")};b.prototype.propFromSeries=function(){var a=this,c=a.options.chart,b=a.options.series,d,e,f;["inverted","angular","polar"].forEach(function(g){e=K[c.type||c.defaultSeriesType];f=c[g]||e&&e.prototype[g];for(d=b&&
389
+ b.length;!f&&d--;)(e=K[b[d].type])&&e.prototype[g]&&(f=!0);a[g]=f})};b.prototype.linkSeries=function(){var a=this,c=a.series;c.forEach(function(a){a.linkedSeries.length=0});c.forEach(function(c){var b=c.options.linkedTo;W(b)&&(b=":previous"===b?a.series[c.index-1]:a.get(b))&&b.linkedParent!==c&&(b.linkedSeries.push(c),c.linkedParent=b,b.enabledDataSorting&&c.setDataSortingOptions(),c.visible=O(c.options.visible,b.options.visible,c.visible))});M(this,"afterLinkSeries")};b.prototype.renderSeries=function(){this.series.forEach(function(a){a.translate();
390
+ a.render()})};b.prototype.renderLabels=function(){var a=this,c=a.options.labels;c.items&&c.items.forEach(function(b){var d=ca(c.style,b.style),e=da(d.left)+a.plotLeft,f=da(d.top)+a.plotTop+12;delete d.left;delete d.top;a.renderer.text(b.html,e,f).attr({zIndex:2}).css(d).add()})};b.prototype.render=function(){var a=this.axes,c=this.colorAxis,b=this.renderer,d=this.options,e=function(a){a.forEach(function(a){a.visible&&a.render()})},f=0;this.setTitle();this.legend=new D(this,d.legend);this.getStacks&&
391
+ this.getStacks();this.getMargins(!0);this.setChartSize();d=this.plotWidth;a.some(function(a){if(a.horiz&&a.visible&&a.options.labels.enabled&&a.series.length)return f=21,!0});var g=this.plotHeight=Math.max(this.plotHeight-f,0);a.forEach(function(a){a.setScale()});this.getAxisMargins();var h=1.1<d/this.plotWidth,l=1.05<g/this.plotHeight;if(h||l)a.forEach(function(a){(a.horiz&&h||!a.horiz&&l)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?e(a):c&&c.length&&e(c);
392
+ this.seriesGroup||(this.seriesGroup=b.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.hasRendered=!0};b.prototype.addCredits=function(a){var c=this,b=V(!0,this.options.credits,a);b.enabled&&!this.credits&&(this.credits=this.renderer.text(b.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){b.href&&(y.location.href=b.href)}).attr({align:b.position.align,zIndex:8}),c.styledMode||
393
+ this.credits.css(b.style),this.credits.add().align(b.position),this.credits.update=function(a){c.credits=c.credits.destroy();c.addCredits(a)})};b.prototype.destroy=function(){var a=this,c=a.axes,b=a.series,d=a.container,e=d&&d.parentNode,f;M(a,"destroy");a.renderer.forExport?F(n,a):n[a.index]=void 0;w.chartCount--;a.renderTo.removeAttribute("data-highcharts-chart");ia(a);for(f=c.length;f--;)c[f]=c[f].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(f=b.length;f--;)b[f]=
394
+ b[f].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(c){var b=a[c];b&&b.destroy&&(a[c]=b.destroy())});d&&(d.innerHTML="",ia(d),e&&U(d));X(a,function(c,b){delete a[b]})};b.prototype.firstRender=function(){var a=this,c=a.options;if(!a.isReadyToRender||a.isReadyToRender()){a.getContainer();a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();
395
+ (L(c.series)?c.series:[]).forEach(function(c){a.initSeries(c)});a.linkSeries();a.setSeriesData();M(a,"beforeRender");r&&(E.isRequired()?a.pointer=new E(a,c):a.pointer=new r(a,c));a.render();a.pointer.getChartPosition();if(!a.renderer.imgCount&&!a.hasLoaded)a.onload();a.temporaryDisplay(!0)}};b.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(a){a&&"undefined"!==typeof this.index&&a.apply(this,[this])},this);M(this,"load");M(this,"render");S(this.index)&&this.setReflow(this.options.chart.reflow);
396
+ this.hasLoaded=!0};b.prototype.addSeries=function(a,c,b){var d=this,e;a&&(c=O(c,!0),M(d,"addSeries",{options:a},function(){e=d.initSeries(a);d.isDirtyLegend=!0;d.linkSeries();e.enabledDataSorting&&e.setData(a.data,!1);M(d,"afterAddSeries",{series:e});c&&d.redraw(b)}));return e};b.prototype.addAxis=function(a,c,b,d){return this.createAxis(c?"xAxis":"yAxis",{axis:a,redraw:b,animation:d})};b.prototype.addColorAxis=function(a,c,b){return this.createAxis("colorAxis",{axis:a,redraw:c,animation:b})};b.prototype.createAxis=
397
+ function(a,c){a=new q(this,V(c.axis,{index:this[a].length,isX:"xAxis"===a}));O(c.redraw,!0)&&this.redraw(c.animation);return a};b.prototype.showLoading=function(a){var c=this,b=c.options,d=b.loading,e=function(){f&&P(f,{left:c.plotLeft+"px",top:c.plotTop+"px",width:c.plotWidth+"px",height:c.plotHeight+"px"})},f=c.loadingDiv,h=c.loadingSpan;f||(c.loadingDiv=f=aa("div",{className:"highcharts-loading highcharts-loading-hidden"},null,c.container));h||(c.loadingSpan=h=aa("span",{className:"highcharts-loading-inner"},
398
+ null,f),I(c,"redraw",e));f.className="highcharts-loading";g.setElementHTML(h,O(a,b.lang.loading,""));c.styledMode||(P(f,ca(d.style,{zIndex:10})),P(h,d.labelStyle),c.loadingShown||(P(f,{opacity:0,display:""}),C(f,{opacity:d.style.opacity||.5},{duration:d.showDuration||0})));c.loadingShown=!0;e()};b.prototype.hideLoading=function(){var a=this.options,c=this.loadingDiv;c&&(c.className="highcharts-loading highcharts-loading-hidden",this.styledMode||C(c,{opacity:0},{duration:a.loading.hideDuration||100,
399
+ complete:function(){P(c,{display:"none"})}}));this.loadingShown=!1};b.prototype.update=function(a,b,d,e){var f=this,g={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},h=a.isResponsiveOptions,l=[],n,t;M(f,"update",{options:a});h||f.setResponsive(!1,!0);a=N(a,f.options);f.userOptions=V(f.userOptions,a);var p=a.chart;if(p){V(!0,f.options.chart,p);"className"in p&&f.setClassName(p.className);"reflow"in p&&f.setReflow(p.reflow);if("inverted"in p||"polar"in p||"type"in
400
+ p){f.propFromSeries();var k=!0}"alignTicks"in p&&(k=!0);"events"in p&&A(this,p);X(p,function(a,c){-1!==f.propsRequireUpdateSeries.indexOf("chart."+c)&&(n=!0);-1!==f.propsRequireDirtyBox.indexOf(c)&&(f.isDirtyBox=!0);-1!==f.propsRequireReflow.indexOf(c)&&(h?f.isDirtyBox=!0:t=!0)});!f.styledMode&&p.style&&f.renderer.setStyle(f.options.chart.style||{})}!f.styledMode&&a.colors&&(this.options.colors=a.colors);a.time&&(this.time===x&&(this.time=new c(a.time)),V(!0,f.options.time,a.time));X(a,function(c,
401
+ b){if(f[b]&&"function"===typeof f[b].update)f[b].update(c,!1);else if("function"===typeof f[g[b]])f[g[b]](c);else"colors"!==b&&-1===f.collectionsWithUpdate.indexOf(b)&&V(!0,f.options[b],a[b]);"chart"!==b&&-1!==f.propsRequireUpdateSeries.indexOf(b)&&(n=!0)});this.collectionsWithUpdate.forEach(function(c){if(a[c]){var b=[];f[c].forEach(function(a,c){a.options.isInternal||b.push(O(a.options.index,c))});ba(a[c]).forEach(function(a,e){var g=S(a.id),h;g&&(h=f.get(a.id));!h&&f[c]&&(h=f[c][b?b[e]:e])&&g&&
402
+ S(h.options.id)&&(h=void 0);h&&h.coll===c&&(h.update(a,!1),d&&(h.touched=!0));!h&&d&&f.collectionsWithInit[c]&&(f.collectionsWithInit[c][0].apply(f,[a].concat(f.collectionsWithInit[c][1]||[]).concat([!1])).touched=!0)});d&&f[c].forEach(function(a){a.touched||a.options.isInternal?delete a.touched:l.push(a)})}});l.forEach(function(a){a.chart&&a.remove&&a.remove(!1)});k&&f.axes.forEach(function(a){a.update({},!1)});n&&f.getSeriesOrderByLinks().forEach(function(a){a.chart&&a.update({},!1)},this);k=p&&
403
+ p.width;p=p&&(W(p.height)?ea(p.height,k||f.chartWidth):p.height);t||T(k)&&k!==f.chartWidth||T(p)&&p!==f.chartHeight?f.setSize(k,p,e):O(b,!0)&&f.redraw(e);M(f,"afterUpdate",{options:a,redraw:b,animation:e})};b.prototype.setSubtitle=function(a,c){this.applyDescription("subtitle",a);this.layOutTitles(c)};b.prototype.setCaption=function(a,c){this.applyDescription("caption",a);this.layOutTitles(c)};b.prototype.showResetZoom=function(){function a(){c.zoomOut()}var c=this,b=l.lang,d=c.options.chart.resetZoomButton,
404
+ e=d.theme,f=e.states,g="chart"===d.relativeTo||"spacingBox"===d.relativeTo?null:"scrollablePlotBox";M(this,"beforeShowResetZoom",null,function(){c.resetZoomButton=c.renderer.button(b.resetZoom,null,null,a,e,f&&f.hover).attr({align:d.position.align,title:b.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(d.position,!1,g)});M(this,"afterShowResetZoom")};b.prototype.zoomOut=function(){M(this,"selection",{resetSelection:!0},this.zoom)};b.prototype.zoom=function(a){var c=this,b=c.pointer,
405
+ d=c.inverted?b.mouseDownX:b.mouseDownY,e=!1,f;!a||a.resetSelection?(c.axes.forEach(function(a){f=a.zoom()}),b.initiated=!1):a.xAxis.concat(a.yAxis).forEach(function(a){var g=a.axis,h=c.inverted?g.left:g.top,l=c.inverted?h+g.width:h+g.height,n=g.isXAxis,p=!1;if(!n&&d>=h&&d<=l||n||!S(d))p=!0;b[n?"zoomX":"zoomY"]&&p&&(f=g.zoom(a.min,a.max),g.displayBtn&&(e=!0))});var g=c.resetZoomButton;e&&!g?c.showResetZoom():!e&&R(g)&&(c.resetZoomButton=g.destroy());f&&c.redraw(O(c.options.chart.animation,a&&a.animation,
406
+ 100>c.pointCount))};b.prototype.pan=function(a,c){var b=this,d=b.hoverPoints;c="object"===typeof c?c:{enabled:c,type:"x"};var e=b.options.chart,f=b.options.mapNavigation&&b.options.mapNavigation.enabled;e&&e.panning&&(e.panning=c);var g=c.type,h;M(this,"pan",{originalEvent:a},function(){d&&d.forEach(function(a){a.setState()});var c=b.xAxis;"xy"===g?c=c.concat(b.yAxis):"y"===g&&(c=b.yAxis);var e={};c.forEach(function(c){if(c.options.panningEnabled&&!c.options.isInternal){var d=c.horiz,l=a[d?"chartX":
407
+ "chartY"];d=d?"mouseDownX":"mouseDownY";var n=b[d],p=c.minPointOffset||0,t=c.reversed&&!b.inverted||!c.reversed&&b.inverted?-1:1,k=c.getExtremes(),m=c.toValue(n-l,!0)+p*t,u=c.toValue(n+c.len-l,!0)-(p*t||c.isXAxis&&c.pointRangePadding||0),y=u<m;t=c.hasVerticalPanning();n=y?u:m;m=y?m:u;var r=c.panningState;!t||c.isXAxis||r&&!r.isDirty||c.series.forEach(function(a){var c=a.getProcessedData(!0);c=a.getExtremes(c.yData,!0);r||(r={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE});T(c.dataMin)&&T(c.dataMax)&&
408
+ (r.startMin=Math.min(O(a.options.threshold,Infinity),c.dataMin,r.startMin),r.startMax=Math.max(O(a.options.threshold,-Infinity),c.dataMax,r.startMax))});t=Math.min(O(r&&r.startMin,k.dataMin),p?k.min:c.toValue(c.toPixels(k.min)-c.minPixelPadding));u=Math.max(O(r&&r.startMax,k.dataMax),p?k.max:c.toValue(c.toPixels(k.max)+c.minPixelPadding));c.panningState=r;c.isOrdinal||(p=t-n,0<p&&(m+=p,n=t),p=m-u,0<p&&(m=u,n-=p),c.series.length&&n!==k.min&&m!==k.max&&n>=t&&m<=u&&(c.setExtremes(n,m,!1,!1,{trigger:"pan"}),
409
+ b.resetZoomButton||f||n===t||m===u||!g.match("y")||(b.showResetZoom(),c.displayBtn=!1),h=!0),e[d]=l)}});X(e,function(a,c){b[c]=a});h&&b.redraw(!1);P(b.container,{cursor:"move"})})};return b}();ca(b.prototype,{callbacks:[],collectionsWithInit:{xAxis:[b.prototype.addAxis,[!0]],yAxis:[b.prototype.addAxis,[!1]],series:[b.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),
410
+ propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")});"";return b});F(b,"Core/Legend/LegendSymbol.js",[b["Core/Utilities.js"]],function(b){var x=b.merge,z=b.pick,B;(function(b){b.drawLineMarker=function(b){var q=this.options,k=b.symbolWidth,r=b.symbolHeight,m=r/2,h=this.chart.renderer,
411
+ a=this.legendGroup;b=b.baseline-Math.round(.3*b.fontMetrics.b);var c={},e=q.marker;this.chart.styledMode||(c={"stroke-width":q.lineWidth||0},q.dashStyle&&(c.dashstyle=q.dashStyle));this.legendLine=h.path([["M",0,b],["L",k,b]]).addClass("highcharts-graph").attr(c).add(a);e&&!1!==e.enabled&&k&&(q=Math.min(z(e.radius,m),m),0===this.symbol.indexOf("url")&&(e=x(e,{width:r,height:r}),q=0),this.legendSymbol=k=h.symbol(this.symbol,k/2-q,b-q,2*q,2*q,e).addClass("highcharts-point").add(a),k.isMarker=!0)};b.drawRectangle=
412
+ function(b,x){var k=b.symbolHeight,r=b.options.squareSymbol;x.legendSymbol=this.chart.renderer.rect(r?(b.symbolWidth-k)/2:0,b.baseline-k+1,r?k:b.symbolWidth,k,z(b.options.symbolRadius,k/2)).addClass("highcharts-point").attr({zIndex:3}).add(x.legendGroup)}})(B||(B={}));return B});F(b,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},
413
+ hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var b=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":b(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},
414
+ hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"}});F(b,"Core/Series/Series.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/DefaultOptions.js"],b["Core/Foundation.js"],b["Core/Globals.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Series/Point.js"],b["Core/Series/SeriesDefaults.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/SVGElement.js"],
415
+ b["Core/Utilities.js"]],function(b,q,z,B,w,D,E,k,r,m){var h=b.animObject,a=b.setAnimation,c=q.defaultOptions,e=z.registerEventOptions,g=B.hasTouch,C=B.svg,v=B.win,u=k.seriesTypes,p=m.addEvent,A=m.arrayMax,n=m.arrayMin,f=m.clamp,t=m.cleanRecursively,d=m.correctFloat,y=m.defined,l=m.erase,x=m.error,K=m.extend,I=m.find,G=m.fireEvent,N=m.getNestedProperty,aa=m.isArray,P=m.isNumber,S=m.isString,U=m.merge,F=m.objectEach,J=m.pick,ca=m.removeEvent,ha=m.splat,M=m.syncTimeout;b=function(){function b(){this.zones=
416
+ this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}b.prototype.init=function(a,c){G(this,"init",{options:c});var b=this,d=a.series;this.eventsToUnbind=[];b.chart=a;b.options=b.setOptions(c);c=b.options;b.linkedSeries=[];b.bindAxes();K(b,{name:c.name,state:"",visible:!1!==c.visible,selected:!0===c.selected});e(this,c);var f=
417
+ c.events;if(f&&f.click||c.point&&c.point.events&&c.point.events.click||c.allowPointSelect)a.runTrackerClick=!0;b.getColor();b.getSymbol();b.parallelArrays.forEach(function(a){b[a+"Data"]||(b[a+"Data"]=[])});b.isCartesian&&(a.hasCartesianSeries=!0);var g;d.length&&(g=d[d.length-1]);b._i=J(g&&g._i,-1)+1;b.opacity=b.options.opacity;a.orderSeries(this.insert(d));c.dataSorting&&c.dataSorting.enabled?b.setDataSortingOptions():b.points||b.data||b.setData(c.data,!1);G(this,"afterInit")};b.prototype.is=function(a){return u[a]&&
418
+ this instanceof u[a]};b.prototype.insert=function(a){var c=this.options.index,b;if(P(c)){for(b=a.length;b--;)if(c>=J(a[b].options.index,a[b]._i)){a.splice(b+1,0,this);break}-1===b&&a.unshift(this);b+=1}else a.push(this);return J(b,a.length-1)};b.prototype.bindAxes=function(){var a=this,c=a.options,b=a.chart,d;G(this,"bindAxes",null,function(){(a.axisTypes||[]).forEach(function(e){var f=0;b[e].forEach(function(b){d=b.options;if(c[e]===f&&!d.isInternal||"undefined"!==typeof c[e]&&c[e]===d.id||"undefined"===
419
+ typeof c[e]&&0===d.index)a.insert(b.series),a[e]=b,b.isDirty=!0;d.isInternal||f++});a[e]||a.optionalAxis===e||x(18,!0,b)})});G(this,"afterBindAxes")};b.prototype.updateParallelArrays=function(a,c){var b=a.series,d=arguments,e=P(c)?function(d){var e="y"===d&&b.toYData?b.toYData(a):a[d];b[d+"Data"][c]=e}:function(a){Array.prototype[c].apply(b[a+"Data"],Array.prototype.slice.call(d,2))};b.parallelArrays.forEach(e)};b.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&
420
+ "undefined"!==typeof this.dataMin||this.visible&&this.yData&&0<this.yData.length};b.prototype.autoIncrement=function(a){var c=this.options,b=c.pointIntervalUnit,d=c.relativeXValue,e=this.chart.time,f=this.xIncrement,g;f=J(f,c.pointStart,0);this.pointInterval=g=J(this.pointInterval,c.pointInterval,1);d&&P(a)&&(g*=a);b&&(c=new e.Date(f),"day"===b?e.set("Date",c,e.get("Date",c)+g):"month"===b?e.set("Month",c,e.get("Month",c)+g):"year"===b&&e.set("FullYear",c,e.get("FullYear",c)+g),g=c.getTime()-f);if(d&&
421
+ P(a))return f+g;this.xIncrement=f+g;return f};b.prototype.setDataSortingOptions=function(){var a=this.options;K(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1});y(a.pointRange)||(a.pointRange=1)};b.prototype.setOptions=function(a){var b=this.chart,d=b.options,e=d.plotOptions,f=b.userOptions||{};a=U(a);b=b.styledMode;var g={plotOptions:e,userOptions:a};G(this,"setOptions",g);var h=g.plotOptions[this.type],l=f.plotOptions||{};this.userOptions=g.userOptions;f=U(h,e.series,f.plotOptions&&
422
+ f.plotOptions[this.type],a);this.tooltipOptions=U(c.tooltip,c.plotOptions.series&&c.plotOptions.series.tooltip,c.plotOptions[this.type].tooltip,d.tooltip.userOptions,e.series&&e.series.tooltip,e[this.type].tooltip,a.tooltip);this.stickyTracking=J(a.stickyTracking,l[this.type]&&l[this.type].stickyTracking,l.series&&l.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:f.stickyTracking);null===h.marker&&delete f.marker;this.zoneAxis=f.zoneAxis;e=this.zones=(f.zones||[]).slice();
423
+ !f.negativeColor&&!f.negativeFillColor||f.zones||(d={value:f[this.zoneAxis+"Threshold"]||f.threshold||0,className:"highcharts-negative"},b||(d.color=f.negativeColor,d.fillColor=f.negativeFillColor),e.push(d));e.length&&y(e[e.length-1].value)&&e.push(b?{}:{color:this.color,fillColor:this.fillColor});G(this,"afterSetOptions",{options:f});return f};b.prototype.getName=function(){return J(this.options.name,"Series "+(this.index+1))};b.prototype.getCyclic=function(a,c,b){var d=this.chart,e=this.userOptions,
424
+ f=a+"Index",g=a+"Counter",h=b?b.length:J(d.options.chart[a+"Count"],d[a+"Count"]);if(!c){var l=J(e[f],e["_"+f]);y(l)||(d.series.length||(d[g]=0),e["_"+f]=l=d[g]%h,d[g]+=1);b&&(c=b[l])}"undefined"!==typeof l&&(this[f]=l);this[a]=c};b.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||c.plotOptions[this.type].color,this.chart.options.colors)};b.prototype.getPointsCollection=function(){return(this.hasGroupedData?
425
+ this.points:this.data)||[]};b.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)};b.prototype.findPointIndex=function(a,c){var b=a.id,d=a.x,e=this.points,f=this.options.dataSorting,g,h;if(b)f=this.chart.get(b),f instanceof D&&(g=f);else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)if(g=function(c){return!c.touched&&c.index===a.index},f&&f.matchByName?g=function(c){return!c.touched&&c.name===a.name}:this.options.relativeXValue&&
426
+ (g=function(c){return!c.touched&&c.options.x===a.x}),g=I(e,g),!g)return;if(g){var l=g&&g.index;"undefined"!==typeof l&&(h=!0)}"undefined"===typeof l&&P(d)&&(l=this.xData.indexOf(d,c));-1!==l&&"undefined"!==typeof l&&this.cropped&&(l=l>=this.cropStart?l-this.cropStart:l);!h&&P(l)&&e[l]&&e[l].touched&&(l=void 0);return l};b.prototype.updateData=function(a,c){var b=this.options,d=b.dataSorting,e=this.points,f=[],g=this.requireSorting,h=a.length===e.length,l,n,p,t=!0;this.xIncrement=null;a.forEach(function(a,
427
+ c){var n=y(a)&&this.pointClass.prototype.optionsToObject.call({series:this},a)||{},t=n.x;if(n.id||P(t)){if(n=this.findPointIndex(n,p),-1===n||"undefined"===typeof n?f.push(a):e[n]&&a!==b.data[n]?(e[n].update(a,!1,null,!1),e[n].touched=!0,g&&(p=n+1)):e[n]&&(e[n].touched=!0),!h||c!==n||d&&d.enabled||this.hasDerivedData)l=!0}else f.push(a)},this);if(l)for(a=e.length;a--;)(n=e[a])&&!n.touched&&n.remove&&n.remove(!1,c);else!h||d&&d.enabled?t=!1:(a.forEach(function(a,c){a!==e[c].y&&e[c].update&&e[c].update(a,
428
+ !1,null,!1)}),f.length=0);e.forEach(function(a){a&&(a.touched=!1)});if(!t)return!1;f.forEach(function(a){this.addPoint(a,!1,null,null,!1)},this);null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=A(this.xData),this.autoIncrement());return!0};b.prototype.setData=function(a,c,b,d){var e=this,f=e.points,g=f&&f.length||0,h=e.options,l=e.chart,n=h.dataSorting,p=e.xAxis,t=h.turboThreshold,k=this.xData,m=this.yData,u=e.pointArrayMap;u=u&&u.length;var r=h.keys,y,v=0,A=1,C=null;a=a||[];
429
+ var q=a.length;c=J(c,!0);n&&n.enabled&&(a=this.sortData(a));!1!==d&&q&&g&&!e.cropped&&!e.hasGroupedData&&e.visible&&!e.isSeriesBoosting&&(y=this.updateData(a,b));if(!y){e.xIncrement=null;e.colorCounter=0;this.parallelArrays.forEach(function(a){e[a+"Data"].length=0});if(t&&q>t)if(C=e.getFirstValidPoint(a),P(C))for(b=0;b<q;b++)k[b]=this.autoIncrement(),m[b]=a[b];else if(aa(C))if(u)if(C.length===u)for(b=0;b<q;b++)k[b]=this.autoIncrement(),m[b]=a[b];else for(b=0;b<q;b++)d=a[b],k[b]=d[0],m[b]=d.slice(1,
430
+ u+1);else if(r&&(v=r.indexOf("x"),A=r.indexOf("y"),v=0<=v?v:0,A=0<=A?A:1),1===C.length&&(A=0),v===A)for(b=0;b<q;b++)k[b]=this.autoIncrement(),m[b]=a[b][A];else for(b=0;b<q;b++)d=a[b],k[b]=d[v],m[b]=d[A];else x(12,!1,l);else for(b=0;b<q;b++)"undefined"!==typeof a[b]&&(d={series:e},e.pointClass.prototype.applyOptions.apply(d,[a[b]]),e.updateParallelArrays(d,b));m&&S(m[0])&&x(14,!0,l);e.data=[];e.options.data=e.userOptions.data=a;for(b=g;b--;)f[b]&&f[b].destroy&&f[b].destroy();p&&(p.minRange=p.userMinRange);
431
+ e.isDirty=l.isDirtyBox=!0;e.isDirtyData=!!f;b=!1}"point"===h.legendType&&(this.processData(),this.generatePoints());c&&l.redraw(b)};b.prototype.sortData=function(a){var c=this,b=c.options.dataSorting.sortKey||"y",d=function(a,c){return y(c)&&a.pointClass.prototype.optionsToObject.call({series:a},c)||{}};a.forEach(function(b,e){a[e]=d(c,b);a[e].index=e},this);a.concat().sort(function(a,c){a=N(b,a);c=N(b,c);return c<a?-1:c>a?1:0}).forEach(function(a,c){a.x=c},this);c.linkedSeries&&c.linkedSeries.forEach(function(c){var b=
432
+ c.options,e=b.data;b.dataSorting&&b.dataSorting.enabled||!e||(e.forEach(function(b,f){e[f]=d(c,b);a[f]&&(e[f].x=a[f].x,e[f].index=f)}),c.setData(e,!1))});return a};b.prototype.getProcessedData=function(a){var c=this.xAxis,b=this.options,d=b.cropThreshold,e=a||this.getExtremesFromAll||b.getExtremesFromAll,f=this.isCartesian;a=c&&c.val2lin;b=!(!c||!c.logarithmic);var g=0,h=this.xData,l=this.yData,n=this.requireSorting;var p=!1;var t=h.length;if(c){p=c.getExtremes();var k=p.min;var m=p.max;p=c.categories&&
433
+ !c.names.length}if(f&&this.sorted&&!e&&(!d||t>d||this.forceCrop))if(h[t-1]<k||h[0]>m)h=[],l=[];else if(this.yData&&(h[0]<k||h[t-1]>m)){var u=this.cropData(this.xData,this.yData,k,m);h=u.xData;l=u.yData;g=u.start;u=!0}for(d=h.length||1;--d;)if(c=b?a(h[d])-a(h[d-1]):h[d]-h[d-1],0<c&&("undefined"===typeof r||c<r))var r=c;else 0>c&&n&&!p&&(x(15,!1,this.chart),n=!1);return{xData:h,yData:l,cropped:u,cropStart:g,closestPointRange:r}};b.prototype.processData=function(a){var c=this.xAxis;if(this.isCartesian&&
434
+ !this.isDirty&&!c.isDirty&&!this.yAxis.isDirty&&!a)return!1;a=this.getProcessedData();this.cropped=a.cropped;this.cropStart=a.cropStart;this.processedXData=a.xData;this.processedYData=a.yData;this.closestPointRange=this.basePointRange=a.closestPointRange;G(this,"afterProcessData")};b.prototype.cropData=function(a,c,b,d,e){var f=a.length,g,h=0,l=f;e=J(e,this.cropShoulder);for(g=0;g<f;g++)if(a[g]>=b){h=Math.max(0,g-e);break}for(b=g;b<f;b++)if(a[b]>d){l=b+e;break}return{xData:a.slice(h,l),yData:c.slice(h,
435
+ l),start:h,end:l}};b.prototype.generatePoints=function(){var a=this.options,c=a.data,b=this.processedXData,d=this.processedYData,e=this.pointClass,f=b.length,g=this.cropStart||0,h=this.hasGroupedData,l=a.keys,n=[];a=a.dataGrouping&&a.dataGrouping.groupAll?g:0;var p,t,k=this.data;if(!k&&!h){var m=[];m.length=c.length;k=this.data=m}l&&h&&(this.options.keys=!1);for(t=0;t<f;t++){m=g+t;if(h){var u=(new e).init(this,[b[t]].concat(ha(d[t])));u.dataGroup=this.groupMap[a+t];u.dataGroup.options&&(u.options=
436
+ u.dataGroup.options,K(u,u.dataGroup.options),delete u.dataLabels)}else(u=k[m])||"undefined"===typeof c[m]||(k[m]=u=(new e).init(this,c[m],b[t]));u&&(u.index=h?a+t:m,n[t]=u)}this.options.keys=l;if(k&&(f!==(p=k.length)||h))for(t=0;t<p;t++)t!==g||h||(t+=f),k[t]&&(k[t].destroyElements(),k[t].plotX=void 0);this.data=k;this.points=n;G(this,"afterGeneratePoints")};b.prototype.getXExtremes=function(a){return{min:n(a),max:A(a)}};b.prototype.getExtremes=function(a,c){var b=this.xAxis,d=this.yAxis,e=this.processedXData||
437
+ this.xData,f=[],g=this.requireSorting?this.cropShoulder:0;d=d?d.positiveValuesOnly:!1;var h,l=0,p=0,t=0;a=a||this.stackedYData||this.processedYData||[];var k=a.length;if(b){var m=b.getExtremes();l=m.min;p=m.max}for(h=0;h<k;h++){var u=e[h];m=a[h];var r=(P(m)||aa(m))&&(m.length||0<m||!d);u=c||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!b||(e[h+g]||u)>=l&&(e[h-g]||u)<=p;if(r&&u)if(r=m.length)for(;r--;)P(m[r])&&(f[t++]=m[r]);else f[t++]=m}a={activeYData:f,dataMin:n(f),dataMax:A(f)};
438
+ G(this,"afterGetExtremes",{dataExtremes:a});return a};b.prototype.applyExtremes=function(){var a=this.getExtremes();this.dataMin=a.dataMin;this.dataMax=a.dataMax;return a};b.prototype.getFirstValidPoint=function(a){for(var c=a.length,b=0,d=null;null===d&&b<c;)d=a[b],b++;return d};b.prototype.translate=function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,c=a.stacking,b=this.xAxis,e=b.categories,g=this.enabledDataSorting,h=this.yAxis,l=this.points,n=l.length,p=
439
+ this.pointPlacementToXValue(),t=!!p,k=a.threshold,m=a.startFromThreshold?k:0,u=this.zoneAxis||"y",r,v,A=Number.MAX_VALUE;for(r=0;r<n;r++){var C=l[r],x=C.x,q=void 0,E=void 0,w=C.y,z=C.low,H=c&&h.stacking&&h.stacking.stacks[(this.negStacks&&w<(m?0:k)?"-":"")+this.stackKey];if(h.positiveValuesOnly&&!h.validatePositiveValue(w)||b.positiveValuesOnly&&!b.validatePositiveValue(x))C.isNull=!0;C.plotX=v=d(f(b.translate(x,0,0,0,1,p,"flags"===this.type),-1E5,1E5));if(c&&this.visible&&H&&H[x]){var I=this.getStackIndicator(I,
440
+ x,this.index);C.isNull||(q=H[x],E=q.points[I.key])}aa(E)&&(z=E[0],w=E[1],z===m&&I.key===H[x].base&&(z=J(P(k)&&k,h.min)),h.positiveValuesOnly&&0>=z&&(z=null),C.total=C.stackTotal=q.total,C.percentage=q.total&&C.y/q.total*100,C.stackY=w,this.irregularWidths||q.setOffset(this.pointXOffset||0,this.barW||0));C.yBottom=y(z)?f(h.translate(z,0,1,0,1),-1E5,1E5):null;this.dataModify&&(w=this.dataModify.modifyValue(w,r));C.plotY=void 0;P(w)&&(q=h.translate(w,!1,!0,!1,!0),"undefined"!==typeof q&&(C.plotY=f(q,
441
+ -1E5,1E5)));C.isInside=this.isPointInside(C);C.clientX=t?d(b.translate(x,0,0,0,1,p)):v;C.negative=C[u]<(a[u+"Threshold"]||k||0);C.category=e&&"undefined"!==typeof e[C.x]?e[C.x]:C.x;if(!C.isNull&&!1!==C.visible){"undefined"!==typeof D&&(A=Math.min(A,Math.abs(v-D)));var D=v}C.zone=this.zones.length?C.getZone():void 0;!C.graphic&&this.group&&g&&(C.isNew=!0)}this.closestPointRangePx=A;G(this,"afterTranslate")};b.prototype.getValidPoints=function(a,c,b){var d=this.chart;return(a||this.points||[]).filter(function(a){return c&&
442
+ !d.isInsidePlot(a.plotX,a.plotY,{inverted:d.inverted})?!1:!1!==a.visible&&(b||!a.isNull)})};b.prototype.getClipBox=function(){var a=this.chart,c=this.xAxis,b=this.yAxis,d=U(a.clipBox);c&&c.len!==a.plotSizeX&&(d.width=c.len);b&&b.len!==a.plotSizeY&&(d.height=b.len);return d};b.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)};b.prototype.setClip=function(){var a=this.chart,c=this.group,b=this.markerGroup,d=a.sharedClips;a=a.renderer;
443
+ var e=this.getClipBox(),f=this.getSharedClipKey(),g=d[f];g?g.animate(e):d[f]=g=a.clipRect(e);c&&c.clip(!1===this.options.clip?void 0:g);b&&b.clip()};b.prototype.animate=function(a){var c=this.chart,b=this.group,d=this.markerGroup,e=c.inverted,f=h(this.options.animation),g=[this.getSharedClipKey(),f.duration,f.easing,f.defer].join(),l=c.sharedClips[g],n=c.sharedClips[g+"m"];if(a&&b)f=this.getClipBox(),l?l.attr("height",f.height):(f.width=0,e&&(f.x=c.plotHeight),l=c.renderer.clipRect(f),c.sharedClips[g]=
444
+ l,n=c.renderer.clipRect({x:e?(c.plotSizeX||0)+99:-99,y:e?-c.plotLeft:-c.plotTop,width:99,height:e?c.chartWidth:c.chartHeight}),c.sharedClips[g+"m"]=n),b.clip(l),d&&d.clip(n);else if(l&&!l.hasClass("highcharts-animating")){c=this.getClipBox();var p=f.step;d&&d.element.childNodes.length&&(f.step=function(a,c){p&&p.apply(c,arguments);n&&n.element&&n.attr(c.prop,"width"===c.prop?a+99:a)});l.addClass("highcharts-animating").animate(c,f)}};b.prototype.afterAnimate=function(){var a=this;this.setClip();F(this.chart.sharedClips,
445
+ function(c,b,d){c&&!a.chart.container.querySelector('[clip-path="url(#'+c.id+')"]')&&(c.destroy(),delete d[b])});this.finishedAnimating=!0;G(this,"afterAnimate")};b.prototype.drawPoints=function(){var a=this.points,c=this.chart,b=this.options.marker,d=this[this.specialGroup]||this.markerGroup,e=this.xAxis,f=J(b.enabled,!e||e.isRadial?!0:null,this.closestPointRangePx>=b.enabledThreshold*b.radius),g,h;if(!1!==b.enabled||this._hasPointMarkers)for(g=0;g<a.length;g++){var l=a[g];var n=(h=l.graphic)?"animate":
446
+ "attr";var p=l.marker||{};var t=!!l.marker;if((f&&"undefined"===typeof p.enabled||p.enabled)&&!l.isNull&&!1!==l.visible){var k=J(p.symbol,this.symbol,"rect");var m=this.markerAttribs(l,l.selected&&"select");this.enabledDataSorting&&(l.startXPos=e.reversed?-(m.width||0):e.width);var u=!1!==l.isInside;h?h[u?"show":"hide"](u).animate(m):u&&(0<(m.width||0)||l.hasImage)&&(l.graphic=h=c.renderer.symbol(k,m.x,m.y,m.width,m.height,t?p:b).add(d),this.enabledDataSorting&&c.hasRendered&&(h.attr({x:l.startXPos}),
447
+ n="animate"));h&&"animate"===n&&h[u?"show":"hide"](u).animate(m);if(h&&!c.styledMode)h[n](this.pointAttribs(l,l.selected&&"select"));h&&h.addClass(l.getClassName(),!0)}else h&&(l.graphic=h.destroy())}};b.prototype.markerAttribs=function(a,c){var b=this.options,d=b.marker,e=a.marker||{},f=e.symbol||d.symbol,g=J(e.radius,d.radius);c&&(d=d.states[c],c=e.states&&e.states[c],g=J(c&&c.radius,d&&d.radius,g+(d&&d.radiusPlus||0)));a.hasImage=f&&0===f.indexOf("url");a.hasImage&&(g=0);a={x:b.crisp?Math.floor(a.plotX-
448
+ g):a.plotX-g,y:a.plotY-g};g&&(a.width=a.height=2*g);return a};b.prototype.pointAttribs=function(a,c){var b=this.options.marker,d=a&&a.options,e=d&&d.marker||{},f=d&&d.color,g=a&&a.color,h=a&&a.zone&&a.zone.color,l=this.color;a=J(e.lineWidth,b.lineWidth);d=1;l=f||h||g||l;f=e.fillColor||b.fillColor||l;g=e.lineColor||b.lineColor||l;c=c||"normal";b=b.states[c]||{};c=e.states&&e.states[c]||{};a=J(c.lineWidth,b.lineWidth,a+J(c.lineWidthPlus,b.lineWidthPlus,0));f=c.fillColor||b.fillColor||f;g=c.lineColor||
449
+ b.lineColor||g;d=J(c.opacity,b.opacity,d);return{stroke:g,"stroke-width":a,fill:f,opacity:d}};b.prototype.destroy=function(a){var c=this,b=c.chart,d=/AppleWebKit\/533/.test(v.navigator.userAgent),e=c.data||[],f,g,h,n;G(c,"destroy");this.removeEvents(a);(c.axisTypes||[]).forEach(function(a){(n=c[a])&&n.series&&(l(n.series,c),n.isDirty=n.forceRedraw=!0)});c.legendItem&&c.chart.legend.destroyItem(c);for(g=e.length;g--;)(h=e[g])&&h.destroy&&h.destroy();c.clips&&c.clips.forEach(function(a){return a.destroy()});
450
+ m.clearTimeout(c.animationTimeout);F(c,function(a,c){a instanceof r&&!a.survive&&(f=d&&"group"===c?"hide":"destroy",a[f]())});b.hoverSeries===c&&(b.hoverSeries=void 0);l(b.series,c);b.orderSeries();F(c,function(b,d){a&&"hcEvents"===d||delete c[d]})};b.prototype.applyZones=function(){var a=this,c=this.chart,b=c.renderer,d=this.zones,e=this.clips||[],g=this.graph,h=this.area,l=Math.max(c.chartWidth,c.chartHeight),n=this[(this.zoneAxis||"y")+"Axis"],p=c.inverted,t,k,m,u,r,y,v,A,C=!1;if(d.length&&(g||
451
+ h)&&n&&"undefined"!==typeof n.min){var x=n.reversed;var q=n.horiz;g&&!this.showLine&&g.hide();h&&h.hide();var E=n.getExtremes();d.forEach(function(d,w){t=x?q?c.plotWidth:0:q?0:n.toPixels(E.min)||0;t=f(J(k,t),0,l);k=f(Math.round(n.toPixels(J(d.value,E.max),!0)||0),0,l);C&&(t=k=n.toPixels(E.max));u=Math.abs(t-k);r=Math.min(t,k);y=Math.max(t,k);n.isXAxis?(m={x:p?y:r,y:0,width:u,height:l},q||(m.x=c.plotHeight-m.x)):(m={x:0,y:p?y:r,width:l,height:u},q&&(m.y=c.plotWidth-m.y));p&&b.isVML&&(m=n.isXAxis?{x:0,
452
+ y:x?r:y,height:m.width,width:c.chartWidth}:{x:m.y-c.plotLeft-c.spacingBox.x,y:0,width:m.height,height:c.chartHeight});e[w]?e[w].animate(m):e[w]=b.clipRect(m);v=a["zone-area-"+w];A=a["zone-graph-"+w];g&&A&&A.clip(e[w]);h&&v&&v.clip(e[w]);C=d.value>E.max;a.resetZones&&0===k&&(k=void 0)});this.clips=e}else a.visible&&(g&&g.show(!0),h&&h.show(!0))};b.prototype.invertGroups=function(a){function c(){["group","markerGroup"].forEach(function(c){b[c]&&(d.renderer.isVML&&b[c].attr({width:b.yAxis.len,height:b.xAxis.len}),
453
+ b[c].width=b.yAxis.len,b[c].height=b.xAxis.len,b[c].invert(b.isRadialSeries?!1:a))})}var b=this,d=b.chart;b.xAxis&&(b.eventsToUnbind.push(p(d,"resize",c)),c(),b.invertGroups=c)};b.prototype.plotGroup=function(a,c,b,d,e){var f=this[a],g=!f;b={visibility:b,zIndex:d||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(b.opacity=this.opacity);g&&(this[a]=f=this.chart.renderer.g().add(e));f.addClass("highcharts-"+c+" highcharts-series-"+this.index+" highcharts-"+this.type+
454
+ "-series "+(y(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(f.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);f.attr(b)[g?"attr":"animate"](this.getPlotBox());return f};b.prototype.getPlotBox=function(){var a=this.chart,c=this.xAxis,b=this.yAxis;a.inverted&&(c=b,b=this.xAxis);return{translateX:c?c.left:a.plotLeft,translateY:b?b.top:a.plotTop,scaleX:1,scaleY:1}};b.prototype.removeEvents=function(a){a||ca(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(a){a()}),
455
+ this.eventsToUnbind.length=0)};b.prototype.render=function(){var a=this,c=a.chart,b=a.options,d=h(b.animation),e=a.visible?"inherit":"hidden",f=b.zIndex,g=a.hasRendered,l=c.seriesGroup,n=c.inverted;c=!a.finishedAnimating&&c.renderer.isSVG?d.duration:0;G(this,"render");var p=a.plotGroup("group","series",e,f,l);a.markerGroup=a.plotGroup("markerGroup","markers",e,f,l);!1!==b.clip&&a.setClip();a.animate&&c&&a.animate(!0);p.inverted=J(a.invertible,a.isCartesian)?n:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());
456
+ a.visible&&a.drawPoints();a.drawDataLabels&&a.drawDataLabels();a.redrawPoints&&a.redrawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(n);a.animate&&c&&a.animate();g||(c&&d.defer&&(c+=d.defer),a.animationTimeout=M(function(){a.afterAnimate()},c||0));a.isDirty=!1;a.hasRendered=!0;G(a,"afterRender")};b.prototype.redraw=function(){var a=this.chart,c=this.isDirty||this.isDirtyData,b=this.group,d=this.xAxis,e=this.yAxis;b&&(a.inverted&&b.attr({width:a.plotWidth,
457
+ height:a.plotHeight}),b.animate({translateX:J(d&&d.left,a.plotLeft),translateY:J(e&&e.top,a.plotTop)}));this.translate();this.render();c&&delete this.kdTree};b.prototype.searchPoint=function(a,c){var b=this.xAxis,d=this.yAxis,e=this.chart.inverted;return this.searchKDTree({clientX:e?b.len-a.chartY+b.pos:a.chartX-b.pos,plotY:e?d.len-a.chartX+d.pos:a.chartY-d.pos},c,a)};b.prototype.buildKDTree=function(a){function c(a,d,e){var f=a&&a.length;if(f){var g=b.kdAxisArray[d%e];a.sort(function(a,c){return a[g]-
458
+ c[g]});f=Math.floor(f/2);return{point:a[f],left:c(a.slice(0,f),d+1,e),right:c(a.slice(f+1),d+1,e)}}}this.buildingKdTree=!0;var b=this,d=-1<b.options.findNearestPointBy.indexOf("y")?2:1;delete b.kdTree;M(function(){b.kdTree=c(b.getValidPoints(null,!b.directTouch),d,d);b.buildingKdTree=!1},b.options.kdNow||a&&"touchstart"===a.type?0:1)};b.prototype.searchKDTree=function(a,c,b){function d(a,c,b,l){var n=c.point,p=e.kdAxisArray[b%l],t=n,k=y(a[f])&&y(n[f])?Math.pow(a[f]-n[f],2):null;var m=y(a[g])&&y(n[g])?
459
+ Math.pow(a[g]-n[g],2):null;m=(k||0)+(m||0);n.dist=y(m)?Math.sqrt(m):Number.MAX_VALUE;n.distX=y(k)?Math.sqrt(k):Number.MAX_VALUE;p=a[p]-n[p];m=0>p?"left":"right";k=0>p?"right":"left";c[m]&&(m=d(a,c[m],b+1,l),t=m[h]<t[h]?m:n);c[k]&&Math.sqrt(p*p)<t[h]&&(a=d(a,c[k],b+1,l),t=a[h]<t[h]?a:t);return t}var e=this,f=this.kdAxisArray[0],g=this.kdAxisArray[1],h=c?"distX":"dist";c=-1<e.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(b);if(this.kdTree)return d(a,
460
+ this.kdTree,c,c)};b.prototype.pointPlacementToXValue=function(){var a=this.options,c=a.pointRange,b=this.xAxis;a=a.pointPlacement;"between"===a&&(a=b.reversed?-.5:.5);return P(a)?a*(c||b.pointRange):0};b.prototype.isPointInside=function(a){var c=this.chart,b=this.xAxis,d=this.yAxis;return"undefined"!==typeof a.plotY&&"undefined"!==typeof a.plotX&&0<=a.plotY&&a.plotY<=(d?d.len:c.plotHeight)&&0<=a.plotX&&a.plotX<=(b?b.len:c.plotWidth)};b.prototype.drawTracker=function(){var a=this,c=a.options,b=c.trackByArea,
461
+ d=[].concat(b?a.areaPath:a.graphPath),e=a.chart,f=e.pointer,h=e.renderer,l=e.options.tooltip.snap,n=a.tracker,p=function(c){if(e.hoverSeries!==a)a.onMouseOver()},t="rgba(192,192,192,"+(C?.0001:.002)+")";n?n.attr({d:d}):a.graph&&(a.tracker=h.path(d).attr({visibility:a.visible?"visible":"hidden",zIndex:2}).addClass(b?"highcharts-tracker-area":"highcharts-tracker-line").add(a.group),e.styledMode||a.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:t,fill:b?t:"none","stroke-width":a.graph.strokeWidth()+
462
+ (b?0:2*l)}),[a.tracker,a.markerGroup,a.dataLabelsGroup].forEach(function(a){if(a&&(a.addClass("highcharts-tracker").on("mouseover",p).on("mouseout",function(a){f.onTrackerMouseOut(a)}),c.cursor&&!e.styledMode&&a.css({cursor:c.cursor}),g))a.on("touchstart",p)}));G(this,"afterDrawTracker")};b.prototype.addPoint=function(a,c,b,d,e){var f=this.options,g=this.data,h=this.chart,l=this.xAxis;l=l&&l.hasNames&&l.names;var n=f.data,p=this.xData,t;c=J(c,!0);var k={series:this};this.pointClass.prototype.applyOptions.apply(k,
463
+ [a]);var m=k.x;var u=p.length;if(this.requireSorting&&m<p[u-1])for(t=!0;u&&p[u-1]>m;)u--;this.updateParallelArrays(k,"splice",u,0,0);this.updateParallelArrays(k,u);l&&k.name&&(l[m]=k.name);n.splice(u,0,a);t&&(this.data.splice(u,0,null),this.processData());"point"===f.legendType&&this.generatePoints();b&&(g[0]&&g[0].remove?g[0].remove(!1):(g.shift(),this.updateParallelArrays(k,"shift"),n.shift()));!1!==e&&G(this,"addPoint",{point:k});this.isDirtyData=this.isDirty=!0;c&&h.redraw(d)};b.prototype.removePoint=
464
+ function(c,b,d){var e=this,f=e.data,g=f[c],h=e.points,l=e.chart,n=function(){h&&h.length===f.length&&h.splice(c,1);f.splice(c,1);e.options.data.splice(c,1);e.updateParallelArrays(g||{series:e},"splice",c,1);g&&g.destroy();e.isDirty=!0;e.isDirtyData=!0;b&&l.redraw()};a(d,l);b=J(b,!0);g?g.firePointEvent("remove",null,n):n()};b.prototype.remove=function(a,c,b,d){function e(){f.destroy(d);g.isDirtyLegend=g.isDirtyBox=!0;g.linkSeries();J(a,!0)&&g.redraw(c)}var f=this,g=f.chart;!1!==b?G(f,"remove",null,
465
+ e):e()};b.prototype.update=function(a,c){a=t(a,this.userOptions);G(this,"update",{options:a});var b=this,d=b.chart,e=b.userOptions,f=b.initialType||b.type,g=d.options.plotOptions,h=u[f].prototype,l=b.finishedAnimating&&{animation:!1},n={},p,k=["eventOptions","navigatorSeries","baseSeries"],m=a.type||e.type||d.options.chart.type,r=!(this.hasDerivedData||m&&m!==this.type||"undefined"!==typeof a.pointStart||"undefined"!==typeof a.pointInterval||"undefined"!==typeof a.relativeXValue||b.hasOptionChanged("dataGrouping")||
466
+ b.hasOptionChanged("pointStart")||b.hasOptionChanged("pointInterval")||b.hasOptionChanged("pointIntervalUnit")||b.hasOptionChanged("keys"));m=m||f;r&&(k.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==a.visible&&k.push("area","graph"),b.parallelArrays.forEach(function(a){k.push(a+"Data")}),a.data&&(a.dataSorting&&K(b.options.dataSorting,a.dataSorting),
467
+ this.setData(a.data,!1)));a=U(e,l,{index:"undefined"===typeof e.index?b.index:e.index,pointStart:J(g&&g.series&&g.series.pointStart,e.pointStart,b.xData[0])},!r&&{data:b.options.data},a);r&&a.data&&(a.data=b.options.data);k=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(k);k.forEach(function(a){k[a]=b[a];delete b[a]});g=!1;if(u[m]){if(g=m!==b.type,b.remove(!1,!1,!1,!0),g)if(Object.setPrototypeOf)Object.setPrototypeOf(b,u[m].prototype);else{l=Object.hasOwnProperty.call(b,"hcEvents")&&
468
+ b.hcEvents;for(p in h)b[p]=void 0;K(b,u[m].prototype);l?b.hcEvents=l:delete b.hcEvents}}else x(17,!0,d,{missingModuleFor:m});k.forEach(function(a){b[a]=k[a]});b.init(d,a);if(r&&this.points){var y=b.options;!1===y.visible?(n.graphic=1,n.dataLabel=1):b._hasPointLabels||(a=y.marker,h=y.dataLabels,!a||!1!==a.enabled&&(e.marker&&e.marker.symbol)===a.symbol||(n.graphic=1),h&&!1===h.enabled&&(n.dataLabel=1));this.points.forEach(function(a){a&&a.series&&(a.resolveColor(),Object.keys(n).length&&a.destroyElements(n),
469
+ !1===y.showInLegend&&a.legendItem&&d.legend.destroyItem(a))},this)}b.initialType=f;d.linkSeries();g&&b.linkedSeries.length&&(b.isDirtyData=!0);G(this,"afterUpdate");J(c,!0)&&d.redraw(r?void 0:!1)};b.prototype.setName=function(a){this.name=this.options.name=this.userOptions.name=a;this.chart.isDirtyLegend=!0};b.prototype.hasOptionChanged=function(a){var c=this.options[a],b=this.chart.options.plotOptions,d=this.userOptions[a];return d?c!==d:c!==J(b&&b[this.type]&&b[this.type][a],b&&b.series&&b.series[a],
470
+ c)};b.prototype.onMouseOver=function(){var a=this.chart,c=a.hoverSeries;a.pointer.setHoverChartIndex();if(c&&c!==this)c.onMouseOut();this.options.events.mouseOver&&G(this,"mouseOver");this.setState("hover");a.hoverSeries=this};b.prototype.onMouseOut=function(){var a=this.options,c=this.chart,b=c.tooltip,d=c.hoverPoint;c.hoverSeries=null;if(d)d.onMouseOut();this&&a.events.mouseOut&&G(this,"mouseOut");!b||this.stickyTracking||b.shared&&!this.noSharedTooltip||b.hide();c.series.forEach(function(a){a.setState("",
471
+ !0)})};b.prototype.setState=function(a,c){var b=this,d=b.options,e=b.graph,f=d.inactiveOtherPoints,g=d.states,h=J(g[a||"normal"]&&g[a||"normal"].animation,b.chart.options.chart.animation),l=d.lineWidth,n=0,p=d.opacity;a=a||"";if(b.state!==a&&([b.group,b.markerGroup,b.dataLabelsGroup].forEach(function(c){c&&(b.state&&c.removeClass("highcharts-series-"+b.state),a&&c.addClass("highcharts-series-"+a))}),b.state=a,!b.chart.styledMode)){if(g[a]&&!1===g[a].enabled)return;a&&(l=g[a].lineWidth||l+(g[a].lineWidthPlus||
472
+ 0),p=J(g[a].opacity,p));if(e&&!e.dashstyle)for(d={"stroke-width":l},e.animate(d,h);b["zone-graph-"+n];)b["zone-graph-"+n].animate(d,h),n+=1;f||[b.group,b.markerGroup,b.dataLabelsGroup,b.labelBySeries].forEach(function(a){a&&a.animate({opacity:p},h)})}c&&f&&b.points&&b.setAllPointsToState(a||void 0)};b.prototype.setAllPointsToState=function(a){this.points.forEach(function(c){c.setState&&c.setState(a)})};b.prototype.setVisible=function(a,c){var b=this,d=b.chart,e=b.legendItem,f=d.options.chart.ignoreHiddenSeries,
473
+ g=b.visible,h=(b.visible=a=b.options.visible=b.userOptions.visible="undefined"===typeof a?!g:a)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(a){if(b[a])b[a][h]()});if(d.hoverSeries===b||(d.hoverPoint&&d.hoverPoint.series)===b)b.onMouseOut();e&&d.legend.colorizeItem(b,a);b.isDirty=!0;b.options.stacking&&d.series.forEach(function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});b.linkedSeries.forEach(function(c){c.setVisible(a,!1)});f&&(d.isDirtyBox=!0);
474
+ G(b,h);!1!==c&&d.redraw()};b.prototype.show=function(){this.setVisible(!0)};b.prototype.hide=function(){this.setVisible(!1)};b.prototype.select=function(a){this.selected=a=this.options.selected="undefined"===typeof a?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);G(this,a?"select":"unselect")};b.prototype.shouldShowTooltip=function(a,c,b){void 0===b&&(b={});b.series=this;b.visiblePlotOnly=!0;return this.chart.isInsidePlot(a,c,b)};b.defaultOptions=E;return b}();K(b.prototype,{axisTypes:["xAxis",
475
+ "yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:w.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:D,requireSorting:!0,sorted:!0});k.series=b;"";"";return b});F(b,"Extensions/ScrollablePlotArea.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Axis/Axis.js"],b["Core/Chart/Chart.js"],b["Core/Series/Series.js"],b["Core/Renderer/RendererRegistry.js"],b["Core/Utilities.js"]],function(b,q,z,B,w,D){var x=b.stop,k=
476
+ D.addEvent,r=D.createElement,m=D.merge,h=D.pick;k(z,"afterSetChartSize",function(a){var c=this.options.chart.scrollablePlotArea,b=c&&c.minWidth;c=c&&c.minHeight;if(!this.renderer.forExport){if(b){if(this.scrollablePixelsX=b=Math.max(0,b-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=m(this.plotBox);this.plotBox.width=this.plotWidth+=b;this.inverted?this.clipBox.height+=b:this.clipBox.width+=b;var g={1:{name:"right",value:b}}}}else c&&(this.scrollablePixelsY=b=Math.max(0,
477
+ c-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=m(this.plotBox),this.plotBox.height=this.plotHeight+=b,this.inverted?this.clipBox.width+=b:this.clipBox.height+=b,g={2:{name:"bottom",value:b}});g&&!a.skipAxes&&this.axes.forEach(function(a){g[a.side]?a.getPlotLinePath=function(){var c=g[a.side].name,b=this[c];this[c]=b-g[a.side].value;var e=q.prototype.getPlotLinePath.apply(this,arguments);this[c]=b;return e}:(a.setAxisSize(),a.setAxisTranslation())})}});k(z,"render",function(){this.scrollablePixelsX||
478
+ this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});z.prototype.setUpScrolling=function(){var a=this,c={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(c.overflowX="auto");this.scrollablePixelsY&&(c.overflowY="auto");this.scrollingParent=r("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=r("div",{className:"highcharts-scrolling"},
479
+ c,this.scrollingParent);k(this.scrollingContainer,"scroll",function(){a.pointer&&delete a.pointer.chartPosition});this.innerContainer=r("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};z.prototype.moveFixedElements=function(){var a=this.container,c=this.fixedRenderer,b=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),
480
+ g;this.scrollablePixelsX&&!this.inverted?g=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?g=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?g=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(g=".highcharts-yaxis");g&&b.push(g+":not(.highcharts-radial-axis)",g+"-labels:not(.highcharts-radial-axis-labels)");b.forEach(function(b){[].forEach.call(a.querySelectorAll(b),function(a){(a.namespaceURI===c.SVG_NS?c.box:c.box.parentNode).appendChild(a);a.style.pointerEvents="auto"})})};
481
+ z.prototype.applyFixed=function(){var a=!this.fixedDiv,c=this.options.chart,b=c.scrollablePlotArea,g=w.getRendererType();a?(this.fixedDiv=r("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(c.style&&c.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=c=new g(this.fixedDiv,this.chartWidth,this.chartHeight,
482
+ this.options.chart.style),this.scrollableMask=c.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":h(b.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),k(this,"afterShowResetZoom",this.moveFixedElements),k(this,"afterDrilldown",this.moveFixedElements),k(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||a)this.scrollableDirty=!1,this.moveFixedElements();c=this.chartWidth+
483
+ (this.scrollablePixelsX||0);g=this.chartHeight+(this.scrollablePixelsY||0);x(this.container);this.container.style.width=c+"px";this.container.style.height=g+"px";this.renderer.boxWrapper.attr({width:c,height:g,viewBox:[0,0,c,g].join(" ")});this.chartBackground.attr({width:c,height:g});this.scrollingContainer.style.height=this.chartHeight+"px";a&&(b.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*b.scrollPositionX),b.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*
484
+ b.scrollPositionY));g=this.axisOffset;a=this.plotTop-g[0]-1;b=this.plotLeft-g[3]-1;c=this.plotTop+this.plotHeight+g[2]+1;g=this.plotLeft+this.plotWidth+g[1]+1;var m=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),v=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);a=this.scrollablePixelsX?[["M",0,a],["L",this.plotLeft-1,a],["L",this.plotLeft-1,c],["L",0,c],["Z"],["M",m,a],["L",this.chartWidth,a],["L",this.chartWidth,c],["L",m,c],["Z"]]:this.scrollablePixelsY?[["M",b,0],["L",b,this.plotTop-
485
+ 1],["L",g,this.plotTop-1],["L",g,0],["Z"],["M",b,v],["L",b,this.chartHeight],["L",g,this.chartHeight],["L",g,v],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:a})};k(q,"afterInit",function(){this.chart.scrollableDirty=!0});k(B,"show",function(){this.chart.scrollableDirty=!0});""});F(b,"Core/Axis/StackingAxis.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Axis/Axis.js"],b["Core/Utilities.js"]],function(b,q,z){var x=b.getDeferredAnimation,w=z.addEvent,D=
486
+ z.destroyObjectProperties,E=z.fireEvent,k=z.isNumber,r=z.objectEach,m;(function(b){function a(){var a=this.stacking;if(a){var c=a.stacks;r(c,function(a,b){D(a);c[b]=null});a&&a.stackTotalGroup&&a.stackTotalGroup.destroy()}}function c(){this.stacking||(this.stacking=new g(this))}var e=[];b.compose=function(b){-1===e.indexOf(b)&&(e.push(b),w(b,"init",c),w(b,"destroy",a));return b};var g=function(){function a(a){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=a}a.prototype.buildStacks=
487
+ function(){var a=this.axis,c=a.series,b=a.options.reversedStacks,e=c.length,g;if(!a.isXAxis){this.usePercentage=!1;for(g=e;g--;){var f=c[b?g:e-g-1];f.setStackedPoints();f.setGroupedPoints()}for(g=0;g<e;g++)c[g].modifyStacks();E(a,"afterBuildStacks")}};a.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var a=this.stacks=this.oldStacks;r(a,function(a){r(a,function(a){a.cumulative=a.total})})}};a.prototype.resetStacks=function(){var a=this,c=a.stacks;a.axis.isXAxis||r(c,function(c){r(c,
488
+ function(b,e){k(b.touched)&&b.touched<a.stacksTouched?(b.destroy(),delete c[e]):(b.total=null,b.cumulative=null)})})};a.prototype.renderStackTotals=function(){var a=this.axis,c=a.chart,b=c.renderer,e=this.stacks;a=x(c,a.options.stackLabels&&a.options.stackLabels.animation||!1);var g=this.stackTotalGroup=this.stackTotalGroup||b.g("stack-labels").attr({visibility:"visible",zIndex:6,opacity:0}).add();g.translate(c.plotLeft,c.plotTop);r(e,function(a){r(a,function(a){a.render(g)})});g.animate({opacity:1},
489
+ a)};return a}();b.Additions=g})(m||(m={}));return m});F(b,"Extensions/Stacking.js",[b["Core/Axis/Axis.js"],b["Core/Chart/Chart.js"],b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Series/Series.js"],b["Core/Axis/StackingAxis.js"],b["Core/Utilities.js"]],function(b,q,z,B,w,D,E){var k=z.format,r=E.correctFloat,m=E.defined,h=E.destroyObjectProperties,a=E.isArray,c=E.isNumber,e=E.objectEach,g=E.pick,C=function(){function a(a,c,b,e,f){var g=a.chart.inverted;this.axis=a;this.isNegative=b;this.options=
490
+ c=c||{};this.x=e;this.total=null;this.points={};this.hasValidPoints=!1;this.stack=f;this.rightCliff=this.leftCliff=0;this.alignOptions={align:c.align||(g?b?"left":"right":"center"),verticalAlign:c.verticalAlign||(g?"middle":b?"bottom":"top"),y:c.y,x:c.x};this.textAlign=c.textAlign||(g?b?"right":"left":"center")}a.prototype.destroy=function(){h(this,this.axis)};a.prototype.render=function(a){var c=this.axis.chart,b=this.options,e=b.format;e=e?k(e,this,c):b.formatter.call(this);this.label?this.label.attr({text:e,
491
+ visibility:"hidden"}):(this.label=c.renderer.label(e,null,null,b.shape,null,null,b.useHTML,!1,"stack-labels"),e={r:b.borderRadius||0,text:e,rotation:b.rotation,padding:g(b.padding,5),visibility:"hidden"},c.styledMode||(e.fill=b.backgroundColor,e.stroke=b.borderColor,e["stroke-width"]=b.borderWidth,this.label.css(b.style)),this.label.attr(e),this.label.added||this.label.add(a));this.label.labelrank=c.plotSizeY};a.prototype.setOffset=function(a,b,e,h,f){var n=this.axis,d=n.chart;h=n.translate(n.stacking.usePercentage?
492
+ 100:h?h:this.total,0,0,0,1);e=n.translate(e?e:0);e=m(h)&&Math.abs(h-e);a=g(f,d.xAxis[0].translate(this.x))+a;n=m(h)&&this.getStackBox(d,this,a,h,b,e,n);b=this.label;e=this.isNegative;a="justify"===g(this.options.overflow,"justify");var k=this.textAlign;b&&n&&(f=b.getBBox(),h=b.padding,k="left"===k?d.inverted?-h:h:"right"===k?f.width:d.inverted&&"center"===k?f.width/2:d.inverted?e?f.width+h:-h:f.width/2,e=d.inverted?f.height/2:e?-h:f.height,this.alignOptions.x=g(this.options.x,0),this.alignOptions.y=
493
+ g(this.options.y,0),n.x-=k,n.y-=e,b.align(this.alignOptions,null,n),d.isInsidePlot(b.alignAttr.x+k-this.alignOptions.x,b.alignAttr.y+e-this.alignOptions.y)?b.show():(b.alignAttr.y=-9999,a=!1),a&&w.prototype.justifyDataLabel.call(this.axis,b,this.alignOptions,b.alignAttr,f,n),b.attr({x:b.alignAttr.x,y:b.alignAttr.y}),g(!a&&this.options.crop,!0)&&((d=c(b.x)&&c(b.y)&&d.isInsidePlot(b.x-h+b.width,b.y)&&d.isInsidePlot(b.x+h,b.y))||b.hide()))};a.prototype.getStackBox=function(a,c,b,e,f,g,d){var h=c.axis.reversed,
494
+ l=a.inverted,n=d.height+d.pos-(l?a.plotLeft:a.plotTop);c=c.isNegative&&!h||!c.isNegative&&h;return{x:l?c?e-d.right:e-g+d.pos-a.plotLeft:b+a.xAxis[0].transB-a.plotLeft,y:l?d.height-b-f:c?n-e-g:n-e,width:l?g:f,height:l?f:g}};return a}();q.prototype.getStacks=function(){var a=this,c=a.inverted;a.yAxis.forEach(function(a){a.stacking&&a.stacking.stacks&&a.hasVisibleSeries&&(a.stacking.oldStacks=a.stacking.stacks)});a.series.forEach(function(b){var e=b.xAxis&&b.xAxis.options||{};!b.options.stacking||!0!==
495
+ b.visible&&!1!==a.options.chart.ignoreHiddenSeries||(b.stackKey=[b.type,g(b.options.stack,""),c?e.top:e.left,c?e.height:e.width].join())})};D.compose(b);w.prototype.setGroupedPoints=function(){var a=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?w.prototype.setStackedPoints.call(this,"group"):a&&e(a.stacks,function(c,b){"group"===b.slice(-5)&&(e(c,function(a){return a.destroy()}),delete a.stacks[b])})};
496
+ w.prototype.setStackedPoints=function(c){var b=c||this.options.stacking;if(b&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var e=this.processedXData,h=this.processedYData,n=[],f=h.length,k=this.options,d=k.threshold,y=g(k.startFromThreshold&&d,0);k=k.stack;c=c?this.type+","+b:this.stackKey;var l="-"+c,v=this.negStacks,x=this.yAxis,q=x.stacking.stacks,w=x.stacking.oldStacks,E,z;x.stacking.stacksTouched+=1;for(z=0;z<f;z++){var D=e[z];var B=h[z];var U=this.getStackIndicator(U,
497
+ D,this.index);var F=U.key;var J=(E=v&&B<(y?0:d))?l:c;q[J]||(q[J]={});q[J][D]||(w[J]&&w[J][D]?(q[J][D]=w[J][D],q[J][D].total=null):q[J][D]=new C(x,x.options.stackLabels,E,D,k));J=q[J][D];null!==B?(J.points[F]=J.points[this.index]=[g(J.cumulative,y)],m(J.cumulative)||(J.base=F),J.touched=x.stacking.stacksTouched,0<U.index&&!1===this.singleStacks&&(J.points[F][0]=J.points[this.index+","+D+",0"][0])):J.points[F]=J.points[this.index]=null;"percent"===b?(E=E?c:l,v&&q[E]&&q[E][D]?(E=q[E][D],J.total=E.total=
498
+ Math.max(E.total,J.total)+Math.abs(B)||0):J.total=r(J.total+(Math.abs(B)||0))):"group"===b?(a(B)&&(B=B[0]),null!==B&&(J.total=(J.total||0)+1)):J.total=r(J.total+(B||0));J.cumulative="group"===b?(J.total||1)-1:g(J.cumulative,y)+(B||0);null!==B&&(J.points[F].push(J.cumulative),n[z]=J.cumulative,J.hasValidPoints=!0)}"percent"===b&&(x.stacking.usePercentage=!0);"group"!==b&&(this.stackedYData=n);x.stacking.oldStacks={}}};w.prototype.modifyStacks=function(){var a=this,c=a.stackKey,b=a.yAxis.stacking.stacks,
499
+ e=a.processedXData,g,f=a.options.stacking;a[f+"Stacker"]&&[c,"-"+c].forEach(function(c){for(var d=e.length,h,l;d--;)if(h=e[d],g=a.getStackIndicator(g,h,a.index,c),l=(h=b[c]&&b[c][h])&&h.points[g.key])a[f+"Stacker"](l,h,d)})};w.prototype.percentStacker=function(a,c,b){c=c.total?100/c.total:0;a[0]=r(a[0]*c);a[1]=r(a[1]*c);this.stackedYData[b]=a[1]};w.prototype.getStackIndicator=function(a,c,b,e){!m(a)||a.x!==c||e&&a.key!==e?a={x:c,index:0,key:e}:a.index++;a.key=[b,c,a.index].join();return a};B.StackItem=
500
+ C;"";return B.StackItem});F(b,"Series/Line/LineSeries.js",[b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,q,z){var x=this&&this.__extends||function(){var b=function(k,r){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,h){b.__proto__=h}||function(b,h){for(var a in h)h.hasOwnProperty(a)&&(b[a]=h[a])};return b(k,r)};return function(k,r){function m(){this.constructor=k}b(k,r);k.prototype=null===r?Object.create(r):(m.prototype=r.prototype,
501
+ new m)}}(),w=z.defined,D=z.merge;z=function(q){function k(){var b=null!==q&&q.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}x(k,q);k.prototype.drawGraph=function(){var b=this,k=this.options,h=(this.gappedPath||this.getGraphPath).call(this),a=this.chart.styledMode,c=[["graph","highcharts-graph"]];a||c[0].push(k.lineColor||this.color||"#cccccc",k.dashStyle);c=b.getZonesGraphs(c);c.forEach(function(c,g){var e=c[0],m=b[e],u=m?"animate":"attr";m?(m.endX=b.preventGraphAnimation?
502
+ null:h.xMap,m.animate({d:h})):h.length&&(b[e]=m=b.chart.renderer.path(h).addClass(c[1]).attr({zIndex:1}).add(b.group));m&&!a&&(e={stroke:c[2],"stroke-width":k.lineWidth,fill:b.fillGraph&&b.color||"none"},c[3]?e.dashstyle=c[3]:"square"!==k.linecap&&(e["stroke-linecap"]=e["stroke-linejoin"]="round"),m[u](e).shadow(2>g&&k.shadow));m&&(m.startX=h.xMap,m.isArea=h.isArea)})};k.prototype.getGraphPath=function(b,k,h){var a=this,c=a.options,e=[],g=[],m,r=c.step;b=b||a.points;var u=b.reversed;u&&b.reverse();
503
+ (r={right:1,center:2}[r]||r&&3)&&u&&(r=4-r);b=this.getValidPoints(b,!1,!(c.connectNulls&&!k&&!h));b.forEach(function(p,u){var n=p.plotX,f=p.plotY,t=b[u-1];(p.leftCliff||t&&t.rightCliff)&&!h&&(m=!0);p.isNull&&!w(k)&&0<u?m=!c.connectNulls:p.isNull&&!k?m=!0:(0===u||m?u=[["M",p.plotX,p.plotY]]:a.getPointSpline?u=[a.getPointSpline(b,p,u)]:r?(u=1===r?[["L",t.plotX,f]]:2===r?[["L",(t.plotX+n)/2,t.plotY],["L",(t.plotX+n)/2,f]]:[["L",n,t.plotY]],u.push(["L",n,f])):u=[["L",n,f]],g.push(p.x),r&&(g.push(p.x),
504
+ 2===r&&g.push(p.x)),e.push.apply(e,u),m=!1)});e.xMap=g;return a.graphPath=e};k.prototype.getZonesGraphs=function(b){this.zones.forEach(function(k,h){h=["zone-graph-"+h,"highcharts-graph highcharts-zone-graph-"+h+" "+(k.className||"")];this.chart.styledMode||h.push(k.color||this.color,k.dashStyle||this.options.dashStyle);b.push(h)},this);return b};k.defaultOptions=D(b.defaultOptions,{});return k}(b);q.registerSeriesType("line",z);"";return z});F(b,"Series/Area/AreaSeries.js",[b["Core/Color/Color.js"],
505
+ b["Core/Legend/LegendSymbol.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,q,z,B){var x=this&&this.__extends||function(){var b=function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return b(a,c)};return function(a,c){function e(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),D=b.parse,E=z.seriesTypes.line;b=
506
+ B.extend;var k=B.merge,r=B.objectEach,m=B.pick;B=function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}x(a,b);a.prototype.drawGraph=function(){this.areaPath=[];b.prototype.drawGraph.apply(this);var a=this,e=this.areaPath,g=this.options,h=[["area","highcharts-area",this.color,g.fillColor]];this.zones.forEach(function(c,b){h.push(["zone-area-"+b,"highcharts-area highcharts-zone-area-"+b+" "+c.className,c.color||a.color,c.fillColor||
507
+ g.fillColor])});h.forEach(function(c){var b=c[0],h=a[b],k=h?"animate":"attr",n={};h?(h.endX=a.preventGraphAnimation?null:e.xMap,h.animate({d:e})):(n.zIndex=0,h=a[b]=a.chart.renderer.path(e).addClass(c[1]).add(a.group),h.isArea=!0);a.chart.styledMode||(n.fill=m(c[3],D(c[2]).setOpacity(m(g.fillOpacity,.75)).get()));h[k](n);h.startX=e.xMap;h.shiftUnit=g.step?2:1})};a.prototype.getGraphPath=function(a){var c=E.prototype.getGraphPath,b=this.options,h=b.stacking,k=this.yAxis,u,p=[],r=[],n=this.index,f=
508
+ k.stacking.stacks[this.stackKey],t=b.threshold,d=Math.round(k.getThreshold(b.threshold));b=m(b.connectNulls,"percent"===h);var y=function(c,b,e){var g=a[c];c=h&&f[g.x].points[n];var l=g[e+"Null"]||0;e=g[e+"Cliff"]||0;g=!0;if(e||l){var m=(l?c[0]:c[1])+e;var u=c[0]+e;g=!!l}else!h&&a[b]&&a[b].isNull&&(m=u=t);"undefined"!==typeof m&&(r.push({plotX:x,plotY:null===m?d:k.getThreshold(m),isNull:g,isCliff:!0}),p.push({plotX:x,plotY:null===u?d:k.getThreshold(u),doCurve:!1}))};a=a||this.points;h&&(a=this.getStackPoints(a));
509
+ for(u=0;u<a.length;u++){h||(a[u].leftCliff=a[u].rightCliff=a[u].leftNull=a[u].rightNull=void 0);var l=a[u].isNull;var x=m(a[u].rectPlotX,a[u].plotX);var q=h?m(a[u].yBottom,d):d;if(!l||b)b||y(u,u-1,"left"),l&&!h&&b||(r.push(a[u]),p.push({x:u,plotX:x,plotY:q})),b||y(u,u+1,"right")}u=c.call(this,r,!0,!0);p.reversed=!0;l=c.call(this,p,!0,!0);(q=l[0])&&"M"===q[0]&&(l[0]=["L",q[1],q[2]]);l=u.concat(l);l.length&&l.push(["Z"]);c=c.call(this,r,!1,b);l.xMap=u.xMap;this.areaPath=l;return c};a.prototype.getStackPoints=
510
+ function(a){var c=this,b=[],h=[],k=this.xAxis,u=this.yAxis,p=u.stacking.stacks[this.stackKey],A={},n=u.series,f=n.length,t=u.options.reversedStacks?1:-1,d=n.indexOf(c);a=a||this.points;if(this.options.stacking){for(var y=0;y<a.length;y++)a[y].leftNull=a[y].rightNull=void 0,A[a[y].x]=a[y];r(p,function(a,c){null!==a.total&&h.push(c)});h.sort(function(a,c){return a-c});var l=n.map(function(a){return a.visible});h.forEach(function(a,e){var g=0,r,y;if(A[a]&&!A[a].isNull)b.push(A[a]),[-1,1].forEach(function(b){var g=
511
+ 1===b?"rightNull":"leftNull",k=0,m=p[h[e+b]];if(m)for(var u=d;0<=u&&u<f;){var v=n[u].index;r=m.points[v];r||(v===c.index?A[a][g]=!0:l[u]&&(y=p[a].points[v])&&(k-=y[1]-y[0]));u+=t}A[a][1===b?"rightCliff":"leftCliff"]=k});else{for(var v=d;0<=v&&v<f;){if(r=p[a].points[n[v].index]){g=r[1];break}v+=t}g=m(g,0);g=u.translate(g,0,1,0,1);b.push({isNull:!0,plotX:k.translate(a,0,0,0,1),x:a,plotY:g,yBottom:g})}})}return b};a.defaultOptions=k(E.defaultOptions,{threshold:0});return a}(E);b(B.prototype,{singleStacks:!1,
512
+ drawLegendSymbol:q.drawRectangle});z.registerSeriesType("area",B);"";return B});F(b,"Series/Spline/SplineSeries.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,q){var x=this&&this.__extends||function(){var b=function(k,r){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,h){b.__proto__=h}||function(b,h){for(var a in h)h.hasOwnProperty(a)&&(b[a]=h[a])};return b(k,r)};return function(k,r){function m(){this.constructor=k}b(k,r);k.prototype=null===r?Object.create(r):
513
+ (m.prototype=r.prototype,new m)}}(),B=b.seriesTypes.line,w=q.merge,D=q.pick;q=function(b){function k(){var k=null!==b&&b.apply(this,arguments)||this;k.data=void 0;k.options=void 0;k.points=void 0;return k}x(k,b);k.prototype.getPointSpline=function(b,k,h){var a=k.plotX||0,c=k.plotY||0,e=b[h-1];h=b[h+1];if(e&&!e.isNull&&!1!==e.doCurve&&!k.isCliff&&h&&!h.isNull&&!1!==h.doCurve&&!k.isCliff){b=e.plotY||0;var g=h.plotX||0;h=h.plotY||0;var m=0;var r=(1.5*a+(e.plotX||0))/2.5;var u=(1.5*c+b)/2.5;g=(1.5*a+
514
+ g)/2.5;var p=(1.5*c+h)/2.5;g!==r&&(m=(p-u)*(g-a)/(g-r)+c-p);u+=m;p+=m;u>b&&u>c?(u=Math.max(b,c),p=2*c-u):u<b&&u<c&&(u=Math.min(b,c),p=2*c-u);p>h&&p>c?(p=Math.max(h,c),u=2*c-p):p<h&&p<c&&(p=Math.min(h,c),u=2*c-p);k.rightContX=g;k.rightContY=p}k=["C",D(e.rightContX,e.plotX,0),D(e.rightContY,e.plotY,0),D(r,a,0),D(u,c,0),a,c];e.rightContX=e.rightContY=void 0;return k};k.defaultOptions=w(B.defaultOptions);return k}(B);b.registerSeriesType("spline",q);"";return q});F(b,"Series/AreaSpline/AreaSplineSeries.js",
515
+ [b["Series/Area/AreaSeries.js"],b["Series/Spline/SplineSeries.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,q,z,B,w){var x=this&&this.__extends||function(){var b=function(h,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(h,a)};return function(h,a){function c(){this.constructor=h}b(h,a);h.prototype=null===a?Object.create(a):
516
+ (c.prototype=a.prototype,new c)}}(),E=b.prototype,k=w.extend,r=w.merge;w=function(k){function h(){var a=null!==k&&k.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}x(h,k);h.defaultOptions=r(q.defaultOptions,b.defaultOptions);return h}(q);k(w.prototype,{getGraphPath:E.getGraphPath,getStackPoints:E.getStackPoints,drawGraph:E.drawGraph,drawLegendSymbol:z.drawRectangle});B.registerSeriesType("areaspline",w);"";return w});F(b,"Series/Column/ColumnSeries.js",[b["Core/Animation/AnimationUtilities.js"],
517
+ b["Core/Color/Color.js"],b["Core/Globals.js"],b["Core/Legend/LegendSymbol.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,q,z,B,w,D,E){var k=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(c,b)};return function(c,b){function d(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):
518
+ (d.prototype=b.prototype,new d)}}(),r=b.animObject,m=q.parse,h=z.hasTouch;b=z.noop;var a=E.clamp,c=E.css,e=E.defined,g=E.extend,C=E.fireEvent,v=E.isArray,u=E.isNumber,p=E.merge,A=E.pick,n=E.objectEach;E=function(b){function f(){var a=null!==b&&b.apply(this,arguments)||this;a.borderWidth=void 0;a.data=void 0;a.group=void 0;a.options=void 0;a.points=void 0;return a}k(f,b);f.prototype.animate=function(c){var b=this,d=this.yAxis,e=b.options,f=this.chart.inverted,h={},n=f?"translateX":"translateY";if(c)h.scaleY=
519
+ .001,c=a(d.toPixels(e.threshold),d.pos,d.pos+d.len),f?h.translateX=c-d.len:h.translateY=c,b.clipBox&&b.setClip(),b.group.attr(h);else{var k=Number(b.group.attr(n));b.group.animate({scaleY:1},g(r(b.options.animation),{step:function(a,c){b.group&&(h[n]=k+c.pos*(d.pos-k),b.group.attr(h))}}))}};f.prototype.init=function(a,c){b.prototype.init.apply(this,arguments);var d=this;a=d.chart;a.hasRendered&&a.series.forEach(function(a){a.type===d.type&&(a.isDirty=!0)})};f.prototype.getColumnMetrics=function(){var a=
520
+ this,c=a.options,b=a.xAxis,e=a.yAxis,f=b.options.reversedStacks;f=b.reversed&&!f||!b.reversed&&f;var g={},h,n=0;!1===c.grouping?n=1:a.chart.series.forEach(function(c){var b=c.yAxis,d=c.options;if(c.type===a.type&&(c.visible||!a.chart.options.chart.ignoreHiddenSeries)&&e.len===b.len&&e.pos===b.pos){if(d.stacking&&"group"!==d.stacking){h=c.stackKey;"undefined"===typeof g[h]&&(g[h]=n++);var f=g[h]}else!1!==d.grouping&&(f=n++);c.columnIndex=f}});var k=Math.min(Math.abs(b.transA)*(b.ordinal&&b.ordinal.slope||
521
+ c.pointRange||b.closestPointRange||b.tickInterval||1),b.len),t=k*c.groupPadding,p=(k-2*t)/(n||1);c=Math.min(c.maxPointWidth||b.len,A(c.pointWidth,p*(1-2*c.pointPadding)));a.columnMetrics={width:c,offset:(p-c)/2+(t+((a.columnIndex||0)+(f?1:0))*p-k/2)*(f?-1:1),paddedWidth:p,columnCount:n};return a.columnMetrics};f.prototype.crispCol=function(a,c,b,e){var d=this.chart,f=this.borderWidth,g=-(f%2?.5:0);f=f%2?.5:1;d.inverted&&d.renderer.isVML&&(f+=1);this.options.crisp&&(b=Math.round(a+b)+g,a=Math.round(a)+
522
+ g,b-=a);e=Math.round(c+e)+f;g=.5>=Math.abs(c)&&.5<e;c=Math.round(c)+f;e-=c;g&&e&&(--c,e+=1);return{x:a,y:c,width:b,height:e}};f.prototype.adjustForMissingColumns=function(a,c,b,e){var d=this,f=this.options.stacking;if(!b.isNull&&1<e.columnCount){var g=0,h=0;n(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(a){if("number"===typeof b.x&&(a=a[b.x.toString()])){var c=a.points[d.index],e=a.total;f?(c&&(g=h),a.hasValidPoints&&h++):v(c)&&(g=c[1],h=e||0)}});a=(b.plotX||0)+((h-1)*e.paddedWidth+c)/
523
+ 2-c-g*e.paddedWidth}return a};f.prototype.translate=function(){var c=this,b=c.chart,f=c.options,g=c.dense=2>c.closestPointRange*c.xAxis.transA;g=c.borderWidth=A(f.borderWidth,g?0:1);var h=c.xAxis,n=c.yAxis,k=f.threshold,t=c.translatedThreshold=n.getThreshold(k),p=A(f.minPointLength,5),m=c.getColumnMetrics(),r=m.width,v=c.pointXOffset=m.offset,q=c.dataMin,C=c.dataMax,x=c.barW=Math.max(r,1+2*g);b.inverted&&(t-=.5);f.pointPadding&&(x=Math.ceil(x));w.prototype.translate.apply(c);c.points.forEach(function(d){var g=
524
+ A(d.yBottom,t),l=999+Math.abs(g),y=d.plotX||0;l=a(d.plotY,-l,n.len+l);var w=Math.min(l,g),E=Math.max(l,g)-w,z=r,D=y+v,G=x;p&&Math.abs(E)<p&&(E=p,y=!n.reversed&&!d.negative||n.reversed&&d.negative,u(k)&&u(C)&&d.y===k&&C<=k&&(n.min||0)<k&&(q!==C||(n.max||0)<=k)&&(y=!y),w=Math.abs(w-t)>p?g-p:t-(y?p:0));e(d.options.pointWidth)&&(z=G=Math.ceil(d.options.pointWidth),D-=Math.round((z-r)/2));f.centerInCategory&&(D=c.adjustForMissingColumns(D,z,d,m));d.barX=D;d.pointWidth=z;d.tooltipPos=b.inverted?[a(n.len+
525
+ n.pos-b.plotLeft-l,n.pos-b.plotLeft,n.len+n.pos-b.plotLeft),h.len+h.pos-b.plotTop-D-G/2,E]:[h.left-b.plotLeft+D+G/2,a(l+n.pos-b.plotTop,n.pos-b.plotTop,n.len+n.pos-b.plotTop),E];d.shapeType=c.pointClass.prototype.shapeType||"rect";d.shapeArgs=c.crispCol.apply(c,d.isNull?[D,t,G,0]:[D,w,G,E])})};f.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};f.prototype.pointAttribs=function(a,c){var b=this.options,d=this.pointAttrToOptions||{},e=d.stroke||
526
+ "borderColor",f=d["stroke-width"]||"borderWidth",g=a&&a.color||this.color,h=a&&a[e]||b[e]||g;d=a&&a.options.dashStyle||b.dashStyle;var n=a&&a[f]||b[f]||this[f]||0,k=A(a&&a.opacity,b.opacity,1);if(a&&this.zones.length){var t=a.getZone();g=a.options.color||t&&(t.color||a.nonZonedColor)||this.color;t&&(h=t.borderColor||h,d=t.dashStyle||d,n=t.borderWidth||n)}c&&a&&(a=p(b.states[c],a.options.states&&a.options.states[c]||{}),c=a.brightness,g=a.color||"undefined"!==typeof c&&m(g).brighten(a.brightness).get()||
527
+ g,h=a[e]||h,n=a[f]||n,d=a.dashStyle||d,k=A(a.opacity,k));e={fill:g,stroke:h,"stroke-width":n,opacity:k};d&&(e.dashstyle=d);return e};f.prototype.drawPoints=function(){var a=this,c=this.chart,b=a.options,e=c.renderer,f=b.animationLimit||250,g;a.points.forEach(function(d){var h=d.graphic,l=!!h,n=h&&c.pointCount<f?"animate":"attr";if(u(d.plotY)&&null!==d.y){g=d.shapeArgs;h&&d.hasNewShapeType()&&(h=h.destroy());a.enabledDataSorting&&(d.startXPos=a.xAxis.reversed?-(g?g.width||0:0):a.xAxis.width);h||(d.graphic=
528
+ h=e[d.shapeType](g).add(d.group||a.group))&&a.enabledDataSorting&&c.hasRendered&&c.pointCount<f&&(h.attr({x:d.startXPos}),l=!0,n="animate");if(h&&l)h[n](p(g));if(b.borderRadius)h[n]({r:b.borderRadius});c.styledMode||h[n](a.pointAttribs(d,d.selected&&"select")).shadow(!1!==d.allowShadow&&b.shadow,null,b.stacking&&!b.borderRadius);h&&(h.addClass(d.getClassName(),!0),h.attr({visibility:d.visible?"inherit":"hidden"}))}else h&&(d.graphic=h.destroy())})};f.prototype.drawTracker=function(){var a=this,b=
529
+ a.chart,e=b.pointer,f=function(a){var c=e.getPointFromEvent(a);"undefined"!==typeof c&&(e.isDirectTouch=!0,c.onMouseOver(a))},g;a.points.forEach(function(a){g=v(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[];a.graphic&&(a.graphic.element.point=a);g.forEach(function(c){c.div?c.div.point=a:c.element.point=a})});a._hasTracking||(a.trackerGroups.forEach(function(d){if(a[d]){a[d].addClass("highcharts-tracker").on("mouseover",f).on("mouseout",function(a){e.onTrackerMouseOut(a)});if(h)a[d].on("touchstart",
530
+ f);!b.styledMode&&a.options.cursor&&a[d].css(c).css({cursor:a.options.cursor})}}),a._hasTracking=!0);C(this,"afterDrawTracker")};f.prototype.remove=function(){var a=this,c=a.chart;c.hasRendered&&c.series.forEach(function(c){c.type===a.type&&(c.isDirty=!0)});w.prototype.remove.apply(a,arguments)};f.defaultOptions=p(w.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},
531
+ select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"});return f}(w);g(E.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:B.drawRectangle,getSymbol:b,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]});D.registerSeriesType("column",E);"";"";return E});F(b,"Core/Series/DataLabel.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/FormatUtilities.js"],
532
+ b["Core/Utilities.js"]],function(b,q,z){var x=b.getDeferredAnimation,w=q.format,D=z.defined,E=z.extend,k=z.fireEvent,r=z.isArray,m=z.merge,h=z.objectEach,a=z.pick,c=z.splat,e;(function(b){function e(c,b,e,f,g){var d=this,h=this.chart,n=this.isCartesian&&h.inverted,l=this.enabledDataSorting,k=a(c.dlBox&&c.dlBox.centerX,c.plotX,-9999),t=a(c.plotY,-9999),p=b.getBBox(),m=e.rotation,u=e.align,r=h.isInsidePlot(k,Math.round(t),{inverted:n,paneCoordinates:!0,series:d}),y=function(a){l&&d.xAxis&&!A&&d.setDataLabelStartPos(c,
533
+ b,g,r,a)},A="justify"===a(e.overflow,l?"none":"justify"),v=this.visible&&!1!==c.visible&&(c.series.forceDL||l&&!A||r||a(e.inside,!!this.options.stacking)&&f&&h.isInsidePlot(k,n?f.x+1:f.y+f.height-1,{inverted:n,paneCoordinates:!0,series:d}));if(v){var q=h.renderer.fontMetrics(h.styledMode?void 0:e.style.fontSize,b).b;f=E({x:n?this.yAxis.len-t:k,y:Math.round(n?this.xAxis.len-k:t),width:0,height:0},f);E(e,{width:p.width,height:p.height});m?(A=!1,k=h.renderer.rotCorr(q,m),k={x:f.x+(e.x||0)+f.width/2+
534
+ k.x,y:f.y+(e.y||0)+{top:0,middle:.5,bottom:1}[e.verticalAlign]*f.height},y(k),b[g?"attr":"animate"](k).attr({align:u}),y=(m+720)%360,y=180<y&&360>y,"left"===u?k.y-=y?p.height:0:"center"===u?(k.x-=p.width/2,k.y-=p.height/2):"right"===u&&(k.x-=p.width,k.y-=y?0:p.height),b.placed=!0,b.alignAttr=k):(y(f),b.align(e,void 0,f),k=b.alignAttr);A&&0<=f.height?this.justifyDataLabel(b,e,k,p,f,g):a(e.crop,!0)&&(v=h.isInsidePlot(k.x,k.y,{paneCoordinates:!0,series:d})&&h.isInsidePlot(k.x+p.width,k.y+p.height,{paneCoordinates:!0,
535
+ series:d}));if(e.shape&&!m)b[g?"attr":"animate"]({anchorX:n?h.plotWidth-c.plotY:c.plotX,anchorY:n?h.plotHeight-c.plotX:c.plotY})}g&&l&&(b.placed=!1);v||l&&!A||(b.hide(!0),b.placed=!1)}function g(a,c){var b=c.filter;return b?(c=b.operator,a=a[b.property],b=b.value,">"===c&&a>b||"<"===c&&a<b||">="===c&&a>=b||"<="===c&&a<=b||"=="===c&&a==b||"==="===c&&a===b?!0:!1):!0}function u(){var b=this,d=b.chart,e=b.options,f=b.points,n=b.hasRendered||0,p=d.renderer,m=e.dataLabels,u,v=m.animation;v=m.defer?x(d,
536
+ v,b):{defer:0,duration:0};m=A(A(d.options.plotOptions&&d.options.plotOptions.series&&d.options.plotOptions.series.dataLabels,d.options.plotOptions&&d.options.plotOptions[b.type]&&d.options.plotOptions[b.type].dataLabels),m);k(this,"drawDataLabels");if(r(m)||m.enabled||b._hasPointLabels){var q=b.plotGroup("dataLabelsGroup","data-labels",n?"inherit":"hidden",m.zIndex||6);q.attr({opacity:+n});!n&&(n=b.dataLabelsGroup)&&(b.visible&&q.show(!0),n[e.animation?"animate":"attr"]({opacity:1},v));f.forEach(function(f){u=
537
+ c(A(m,f.dlOptions||f.options&&f.options.dataLabels));u.forEach(function(c,n){var l=c.enabled&&(!f.isNull||f.dataLabelOnNull)&&g(f,c),k=f.connectors?f.connectors[n]:f.connector,t=f.dataLabels?f.dataLabels[n]:f.dataLabel,m=a(c.distance,f.labelDistance),u=!t;if(l){var r=f.getLabelConfig();var A=a(c[f.formatPrefix+"Format"],c.format);r=D(A)?w(A,r,d):(c[f.formatPrefix+"Formatter"]||c.formatter).call(r,c);A=c.style;var y=c.rotation;d.styledMode||(A.color=a(c.color,A.color,b.color,"#000000"),"contrast"===
538
+ A.color?(f.contrastColor=p.getContrast(f.color||b.color),A.color=!D(m)&&c.inside||0>m||e.stacking?f.contrastColor:"#000000"):delete f.contrastColor,e.cursor&&(A.cursor=e.cursor));var v={r:c.borderRadius||0,rotation:y,padding:c.padding,zIndex:1};d.styledMode||(v.fill=c.backgroundColor,v.stroke=c.borderColor,v["stroke-width"]=c.borderWidth);h(v,function(a,c){"undefined"===typeof a&&delete v[c]})}!t||l&&D(r)?l&&D(r)&&(t?v.text=r:(f.dataLabels=f.dataLabels||[],t=f.dataLabels[n]=y?p.text(r,0,-9999,c.useHTML).addClass("highcharts-data-label"):
539
+ p.label(r,0,-9999,c.shape,null,null,c.useHTML,null,"data-label"),n||(f.dataLabel=t),t.addClass(" highcharts-data-label-color-"+f.colorIndex+" "+(c.className||"")+(c.useHTML?" highcharts-tracker":""))),t.options=c,t.attr(v),d.styledMode||t.css(A).shadow(c.shadow),t.added||t.add(q),c.textPath&&!c.useHTML&&(t.setTextPath(f.getDataLabelPath&&f.getDataLabelPath(t)||f.graphic,c.textPath),f.dataLabelPath&&!c.textPath.enabled&&(f.dataLabelPath=f.dataLabelPath.destroy())),b.alignDataLabel(f,t,c,null,u)):(f.dataLabel=
540
+ f.dataLabel&&f.dataLabel.destroy(),f.dataLabels&&(1===f.dataLabels.length?delete f.dataLabels:delete f.dataLabels[n]),n||delete f.dataLabel,k&&(f.connector=f.connector.destroy(),f.connectors&&(1===f.connectors.length?delete f.connectors:delete f.connectors[n])))})})}k(this,"afterDrawDataLabels")}function p(a,c,b,e,f,g){var d=this.chart,h=c.align,n=c.verticalAlign,l=a.box?0:a.padding||0,k=c.x;k=void 0===k?0:k;var p=c.y;p=void 0===p?0:p;var t=(b.x||0)+l;if(0>t){"right"===h&&0<=k?(c.align="left",c.inside=
541
+ !0):k-=t;var m=!0}t=(b.x||0)+e.width-l;t>d.plotWidth&&("left"===h&&0>=k?(c.align="right",c.inside=!0):k+=d.plotWidth-t,m=!0);t=b.y+l;0>t&&("bottom"===n&&0<=p?(c.verticalAlign="top",c.inside=!0):p-=t,m=!0);t=(b.y||0)+e.height-l;t>d.plotHeight&&("top"===n&&0>=p?(c.verticalAlign="bottom",c.inside=!0):p+=d.plotHeight-t,m=!0);m&&(c.x=k,c.y=p,a.placed=!g,a.align(c,void 0,f));return m}function A(a,c){var b=[],d;if(r(a)&&!r(c))b=a.map(function(a){return m(a,c)});else if(r(c)&&!r(a))b=c.map(function(c){return m(a,
542
+ c)});else if(r(a)||r(c))for(d=Math.max(a.length,c.length);d--;)b[d]=m(a[d],c[d]);else b=m(a,c);return b}function n(a,c,b,e,f){var d=this.chart,g=d.inverted,h=this.xAxis,n=h.reversed,k=g?c.height/2:c.width/2;a=(a=a.pointWidth)?a/2:0;c.startXPos=g?f.x:n?-k-a:h.width-k+a;c.startYPos=g?n?this.yAxis.height-k+a:-k-a:f.y;e?"hidden"===c.visibility&&(c.show(),c.attr({opacity:0}).animate({opacity:1})):c.attr({opacity:1}).animate({opacity:0},void 0,c.hide);d.hasRendered&&(b&&c.attr({x:c.startXPos,y:c.startYPos}),
543
+ c.placed=!0)}var f=[];b.compose=function(a){if(-1===f.indexOf(a)){var c=a.prototype;f.push(a);c.alignDataLabel=e;c.drawDataLabels=u;c.justifyDataLabel=p;c.setDataLabelStartPos=n}}})(e||(e={}));"";return e});F(b,"Series/Column/ColumnDataLabel.js",[b["Core/Series/DataLabel.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,q,z){var x=q.series,w=z.merge,D=z.pick,E;(function(k){function r(b,a,c,e,g){var h=this.chart.inverted,k=b.series,m=(k.xAxis?k.xAxis.len:this.chart.plotSizeX)||
544
+ 0;k=(k.yAxis?k.yAxis.len:this.chart.plotSizeY)||0;var p=b.dlBox||b.shapeArgs,r=D(b.below,b.plotY>D(this.translatedThreshold,k)),n=D(c.inside,!!this.options.stacking);p&&(e=w(p),0>e.y&&(e.height+=e.y,e.y=0),p=e.y+e.height-k,0<p&&p<e.height&&(e.height-=p),h&&(e={x:k-e.y-e.height,y:m-e.x-e.width,width:e.height,height:e.width}),n||(h?(e.x+=r?0:e.width,e.width=0):(e.y+=r?e.height:0,e.height=0)));c.align=D(c.align,!h||n?"center":r?"right":"left");c.verticalAlign=D(c.verticalAlign,h||n?"middle":r?"top":
545
+ "bottom");x.prototype.alignDataLabel.call(this,b,a,c,e,g);c.inside&&b.contrastColor&&a.css({color:b.contrastColor})}var m=[];k.compose=function(h){b.compose(x);-1===m.indexOf(h)&&(m.push(h),h.prototype.alignDataLabel=r)}})(E||(E={}));return E});F(b,"Series/Bar/BarSeries.js",[b["Series/Column/ColumnSeries.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,q,z){var x=this&&this.__extends||function(){var b=function(k,r){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
546
+ function(b,h){b.__proto__=h}||function(b,h){for(var a in h)h.hasOwnProperty(a)&&(b[a]=h[a])};return b(k,r)};return function(k,r){function m(){this.constructor=k}b(k,r);k.prototype=null===r?Object.create(r):(m.prototype=r.prototype,new m)}}(),w=z.extend,D=z.merge;z=function(q){function k(){var b=null!==q&&q.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}x(k,q);k.defaultOptions=D(b.defaultOptions,{});return k}(b);w(z.prototype,{inverted:!0});q.registerSeriesType("bar",
547
+ z);"";return z});F(b,"Series/Scatter/ScatterSeries.js",[b["Series/Column/ColumnSeries.js"],b["Series/Line/LineSeries.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,q,z,B){var x=this&&this.__extends||function(){var b=function(k,h){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return b(k,h)};return function(k,h){function a(){this.constructor=k}b(k,h);k.prototype=null===
548
+ h?Object.create(h):(a.prototype=h.prototype,new a)}}(),D=B.addEvent,E=B.extend,k=B.merge;B=function(b){function m(){var h=null!==b&&b.apply(this,arguments)||this;h.data=void 0;h.options=void 0;h.points=void 0;return h}x(m,b);m.prototype.applyJitter=function(){var b=this,a=this.options.jitter,c=this.points.length;a&&this.points.forEach(function(e,g){["x","y"].forEach(function(h,k){var m="plot"+h.toUpperCase();if(a[h]&&!e.isNull){var p=b[h+"Axis"];var r=a[h]*p.transA;if(p&&!p.isLog){var n=Math.max(0,
549
+ e[m]-r);p=Math.min(p.len,e[m]+r);k=1E4*Math.sin(g+k*c);e[m]=n+(p-n)*(k-Math.floor(k));"x"===h&&(e.clientX=e.plotX)}}})})};m.prototype.drawGraph=function(){this.options.lineWidth?b.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())};m.defaultOptions=k(q.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}});
550
+ return m}(q);E(B.prototype,{drawTracker:b.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});D(B,"afterTranslate",function(){this.applyJitter()});z.registerSeriesType("scatter",B);"";return B});F(b,"Series/CenteredUtilities.js",[b["Core/Globals.js"],b["Core/Series/Series.js"],b["Core/Utilities.js"]],function(b,q,z){var x=b.deg2rad,w=z.isNumber,D=z.pick,E=z.relativeLength,k;(function(b){b.getCenter=function(){var b=
551
+ this.options,h=this.chart,a=2*(b.slicedOffset||0),c=h.plotWidth-2*a,e=h.plotHeight-2*a,g=b.center,k=Math.min(c,e),r=b.size,u=b.innerSize||0;"string"===typeof r&&(r=parseFloat(r));"string"===typeof u&&(u=parseFloat(u));b=[D(g[0],"50%"),D(g[1],"50%"),D(r&&0>r?void 0:b.size,"100%"),D(u&&0>u?void 0:b.innerSize||0,"0%")];!h.angular||this instanceof q||(b[3]=0);for(g=0;4>g;++g)r=b[g],h=2>g||2===g&&/%$/.test(r),b[g]=E(r,[c,e,k,b[2]][g])+(h?a:0);b[3]>b[2]&&(b[3]=b[2]);return b};b.getStartAndEndRadians=function(b,
552
+ h){b=w(b)?b:0;h=w(h)&&h>b&&360>h-b?h:b+360;return{start:x*(b+-90),end:x*(h+-90)}}})(k||(k={}));"";return k});F(b,"Series/Pie/PiePoint.js",[b["Core/Animation/AnimationUtilities.js"],b["Core/Series/Point.js"],b["Core/Utilities.js"]],function(b,q,z){var x=this&&this.__extends||function(){var b=function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return b(a,c)};return function(a,c){function e(){this.constructor=
553
+ a}b(a,c);a.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),w=b.setAnimation,D=z.addEvent,E=z.defined;b=z.extend;var k=z.isNumber,r=z.pick,m=z.relativeLength;q=function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.labelDistance=void 0;a.options=void 0;a.series=void 0;return a}x(a,b);a.prototype.getConnectorPath=function(){var a=this.labelPosition,b=this.series.options.dataLabels,g=this.connectorShapes,h=b.connectorShape;g[h]&&(h=g[h]);return h.call(this,{x:a.final.x,
554
+ y:a.final.y,alignment:a.alignment},a.connectorPosition,b)};a.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};a.prototype.haloPath=function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:c.r-1,start:c.start,end:c.end})};a.prototype.init=function(){var a=this;b.prototype.init.apply(this,arguments);this.name=r(this.name,"Slice");var e=function(c){a.slice("select"===
555
+ c.type)};D(this,"select",e);D(this,"unselect",e);return this};a.prototype.isValid=function(){return k(this.y)&&0<=this.y};a.prototype.setVisible=function(a,b){var c=this,e=this.series,h=e.chart,k=e.options.ignoreHiddenPoint;b=r(b,k);a!==this.visible&&(this.visible=this.options.visible=a="undefined"===typeof a?!this.visible:a,e.options.data[e.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(b){if(c[b])c[b][a?"show":"hide"](a)}),this.legendItem&&h.legend.colorizeItem(this,
556
+ a),a||"hover"!==this.state||this.setState(""),k&&(e.isDirty=!0),b&&h.redraw())};a.prototype.slice=function(a,b,g){var c=this.series;w(g,c.chart);r(b,!0);this.sliced=this.options.sliced=E(a)?a:!this.sliced;c.options.data[c.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return a}(q);b(q.prototype,{connectorShapes:{fixedOffset:function(b,a,c){var e=a.breakAt;a=a.touchingSliceAt;return[["M",b.x,
557
+ b.y],c.softConnector?["C",b.x+("left"===b.alignment?-5:5),b.y,2*e.x-a.x,2*e.y-a.y,e.x,e.y]:["L",e.x,e.y],["L",a.x,a.y]]},straight:function(b,a){a=a.touchingSliceAt;return[["M",b.x,b.y],["L",a.x,a.y]]},crookedLine:function(b,a,c){a=a.touchingSliceAt;var e=this.series,g=e.center[0],h=e.chart.plotWidth,k=e.chart.plotLeft;e=b.alignment;var u=this.shapeArgs.r;c=m(c.crookDistance,1);h="left"===e?g+u+(h+k-g-u)*(1-c):k+(g-u)*c;c=["L",h,b.y];g=!0;if("left"===e?h>b.x||h<a.x:h<b.x||h>a.x)g=!1;b=[["M",b.x,b.y]];
558
+ g&&b.push(c);b.push(["L",a.x,a.y]);return b}}});return q});F(b,"Series/Pie/PieSeries.js",[b["Series/CenteredUtilities.js"],b["Series/Column/ColumnSeries.js"],b["Core/Globals.js"],b["Core/Legend/LegendSymbol.js"],b["Series/Pie/PiePoint.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/Symbols.js"],b["Core/Utilities.js"]],function(b,q,z,B,w,D,E,k,r){var m=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
559
+ function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(c,b)};return function(c,b){function e(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}(),h=b.getStartAndEndRadians;z=z.noop;var a=r.clamp,c=r.extend,e=r.fireEvent,g=r.merge,x=r.pick,v=r.relativeLength;r=function(c){function b(){var a=null!==c&&c.apply(this,arguments)||this;a.center=void 0;a.data=void 0;a.maxLabelDistance=void 0;a.options=void 0;a.points=
560
+ void 0;return a}m(b,c);b.prototype.animate=function(a){var c=this,b=c.points,e=c.startAngleRad;a||b.forEach(function(a){var b=a.graphic,d=a.shapeArgs;b&&d&&(b.attr({r:x(a.startR,c.center&&c.center[3]/2),start:e,end:e}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))})};b.prototype.drawEmpty=function(){var a=this.startAngleRad,c=this.endAngleRad,b=this.options;if(0===this.total&&this.center){var e=this.center[0];var d=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(e,
561
+ d,this.center[1]/2,0,a,c).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:k.arc(e,d,this.center[2]/2,0,{start:a,end:c,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":b.borderWidth,fill:b.fillColor||"none",stroke:b.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())};b.prototype.drawPoints=function(){var a=this.chart.renderer;this.points.forEach(function(c){c.graphic&&c.hasNewShapeType()&&(c.graphic=c.graphic.destroy());c.graphic||
562
+ (c.graphic=a[c.shapeType](c.shapeArgs).add(c.series.group),c.delayedRendering=!0)})};b.prototype.generatePoints=function(){c.prototype.generatePoints.call(this);this.updateTotals()};b.prototype.getX=function(c,b,e){var f=this.center,d=this.radii?this.radii[e.index]||0:f[2]/2;c=Math.asin(a((c-f[1])/(d+e.labelDistance),-1,1));return f[0]+(b?-1:1)*Math.cos(c)*(d+e.labelDistance)+(0<e.labelDistance?(b?-1:1)*this.options.dataLabels.padding:0)};b.prototype.hasData=function(){return!!this.processedXData.length};
563
+ b.prototype.redrawPoints=function(){var a=this,c=a.chart,b=c.renderer,e=a.options.shadow,d,h,k,p;this.drawEmpty();!e||a.shadowGroup||c.styledMode||(a.shadowGroup=b.g("shadow").attr({zIndex:-1}).add(a.group));a.points.forEach(function(f){var n={};h=f.graphic;if(!f.isNull&&h){var l=void 0;p=f.shapeArgs;d=f.getTranslate();c.styledMode||(l=f.shadowGroup,e&&!l&&(l=f.shadowGroup=b.g("shadow").add(a.shadowGroup)),l&&l.attr(d),k=a.pointAttribs(f,f.selected&&"select"));f.delayedRendering?(h.setRadialReference(a.center).attr(p).attr(d),
564
+ c.styledMode||h.attr(k).attr({"stroke-linejoin":"round"}).shadow(e,l),f.delayedRendering=!1):(h.setRadialReference(a.center),c.styledMode||g(!0,n,k),g(!0,n,p,d),h.animate(n));h.attr({visibility:f.visible?"inherit":"hidden"});h.addClass(f.getClassName(),!0)}else h&&(f.graphic=h.destroy())})};b.prototype.sortByAngle=function(a,c){a.sort(function(a,b){return"undefined"!==typeof a.angle&&(b.angle-a.angle)*c})};b.prototype.translate=function(a){this.generatePoints();var c=this.options,b=c.slicedOffset,
565
+ g=b+(c.borderWidth||0),d=h(c.startAngle,c.endAngle),k=this.startAngleRad=d.start;d=(this.endAngleRad=d.end)-k;var l=this.points,p=c.dataLabels.distance;c=c.ignoreHiddenPoint;var m=l.length,u,r=0;a||(this.center=a=this.getCenter());for(u=0;u<m;u++){var A=l[u];var q=k+r*d;!A.isValid()||c&&!A.visible||(r+=A.percentage/100);var C=k+r*d;var w={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:Math.round(1E3*q)/1E3,end:Math.round(1E3*C)/1E3};A.shapeType="arc";A.shapeArgs=w;A.labelDistance=x(A.options.dataLabels&&
566
+ A.options.dataLabels.distance,p);A.labelDistance=v(A.labelDistance,w.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,A.labelDistance);C=(C+q)/2;C>1.5*Math.PI?C-=2*Math.PI:C<-Math.PI/2&&(C+=2*Math.PI);A.slicedTranslation={translateX:Math.round(Math.cos(C)*b),translateY:Math.round(Math.sin(C)*b)};w=Math.cos(C)*a[2]/2;var E=Math.sin(C)*a[2]/2;A.tooltipPos=[a[0]+.7*w,a[1]+.7*E];A.half=C<-Math.PI/2||C>Math.PI/2?1:0;A.angle=C;q=Math.min(g,A.labelDistance/5);A.labelPosition={natural:{x:a[0]+w+
567
+ Math.cos(C)*A.labelDistance,y:a[1]+E+Math.sin(C)*A.labelDistance},"final":{},alignment:0>A.labelDistance?"center":A.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+w+Math.cos(C)*q,y:a[1]+E+Math.sin(C)*q},touchingSliceAt:{x:a[0]+w,y:a[1]+E}}}}e(this,"afterTranslate")};b.prototype.updateTotals=function(){var a=this.points,c=a.length,b=this.options.ignoreHiddenPoint,e,d=0;for(e=0;e<c;e++){var g=a[e];!g.isValid()||b&&!g.visible||(d+=g.y)}this.total=d;for(e=0;e<c;e++)g=a[e],g.percentage=0<d&&(g.visible||
568
+ !b)?g.y/d*100:0,g.total=d};b.defaultOptions=g(D.defaultOptions,{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",
569
+ borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}});return b}(D);c(r.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:B.drawRectangle,drawTracker:q.prototype.drawTracker,getCenter:b.getCenter,getSymbol:z,isCartesian:!1,noSharedTooltip:!0,pointAttribs:q.prototype.pointAttribs,pointClass:w,requireSorting:!1,searchPoint:z,trackerGroups:["group","dataLabelsGroup"]});E.registerSeriesType("pie",r);"";return r});F(b,"Series/Pie/PieDataLabel.js",[b["Core/Series/DataLabel.js"],
570
+ b["Core/Globals.js"],b["Core/Renderer/RendererUtilities.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,q,z,B,w){var x=q.noop,E=z.distribute,k=B.series,r=w.arrayMax,m=w.clamp,h=w.defined,a=w.merge,c=w.pick,e=w.relativeLength,g;(function(g){function v(){var b=this,e=b.data,d=b.chart,g=b.options.dataLabels||{},l=g.connectorPadding,n=d.plotWidth,p=d.plotHeight,m=d.plotLeft,u=Math.round(d.chartWidth/3),A=b.center,v=A[2]/2,q=A[1],x=[[],[]],C=[0,0,0,0],w=b.dataLabelPositioners,
571
+ z,D,B,F,Y,L,T,R,W,V,X,O;b.visible&&(g.enabled||b._hasPointLabels)&&(e.forEach(function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),k.prototype.drawDataLabels.apply(b),e.forEach(function(a){a.dataLabel&&(a.visible?(x[a.half].push(a),a.dataLabel._pos=null,!h(g.style.width)&&!h(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>u&&(a.dataLabel.css({width:Math.round(.7*
572
+ u)+"px"}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&&delete a.dataLabels))}),x.forEach(function(a,e){var f=a.length,k=[],t;if(f){b.sortByAngle(a,e-.5);if(0<b.maxLabelDistance){var u=Math.max(0,q-v-b.maxLabelDistance);var r=Math.min(q+v+b.maxLabelDistance,d.plotHeight);a.forEach(function(a){0<a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,q-v-a.labelDistance),a.bottom=Math.min(q+v+a.labelDistance,d.plotHeight),t=a.dataLabel.getBBox().height||
573
+ 21,a.distributeBox={target:a.labelPosition.natural.y-a.top+t/2,size:t,rank:a.y},k.push(a.distributeBox))});u=r+t-u;E(k,u,u/5)}for(X=0;X<f;X++){z=a[X];L=z.labelPosition;F=z.dataLabel;V=!1===z.visible?"hidden":"inherit";W=u=L.natural.y;k&&h(z.distributeBox)&&("undefined"===typeof z.distributeBox.pos?V="hidden":(T=z.distributeBox.size,W=w.radialDistributionY(z)));delete z.positionIndex;if(g.justify)R=w.justify(z,v,A);else switch(g.alignTo){case "connectors":R=w.alignToConnectors(a,e,n,m);break;case "plotEdges":R=
574
+ w.alignToPlotEdges(F,e,n,m);break;default:R=w.radialDistributionX(b,z,W,u)}F._attr={visibility:V,align:L.alignment};O=z.options.dataLabels||{};F._pos={x:R+c(O.x,g.x)+({left:l,right:-l}[L.alignment]||0),y:W+c(O.y,g.y)-10};L.final.x=R;L.final.y=W;c(g.crop,!0)&&(Y=F.getBBox().width,u=null,R-Y<l&&1===e?(u=Math.round(Y-R+l),C[3]=Math.max(u,C[3])):R+Y>n-l&&0===e&&(u=Math.round(R+Y-n+l),C[1]=Math.max(u,C[1])),0>W-T/2?C[0]=Math.max(Math.round(-W+T/2),C[0]):W+T/2>p&&(C[2]=Math.max(Math.round(W+T/2-p),C[2])),
575
+ F.sideOverflow=u)}}}),0===r(C)||this.verifyDataLabelOverflow(C))&&(this.placeDataLabels(),this.points.forEach(function(e){O=a(g,e.options.dataLabels);if(D=c(O.connectorWidth,1)){var f;B=e.connector;if((F=e.dataLabel)&&F._pos&&e.visible&&0<e.labelDistance){V=F._attr.visibility;if(f=!B)e.connector=B=d.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+e.colorIndex+(e.className?" "+e.className:"")).add(b.dataLabelsGroup),d.styledMode||B.attr({"stroke-width":D,stroke:O.connectorColor||
576
+ e.color||"#666666"});B[f?"attr":"animate"]({d:e.getConnectorPath()});B.attr("visibility",V)}else B&&(e.connector=B.destroy())}}))}function u(){this.points.forEach(function(a){var c=a.dataLabel,b;c&&a.visible&&((b=c._pos)?(c.sideOverflow&&(c._attr.width=Math.max(c.getBBox().width-c.sideOverflow,0),c.css({width:c._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),c.shortened=!0),c.attr(c._attr),c[c.moved?"animate":"attr"](b),c.moved=!0):c&&c.attr({y:-9999}));
577
+ delete a.distributeBox},this)}function p(a){var c=this.center,b=this.options,f=b.center,g=b.minSize||80,h=null!==b.size;if(!h){if(null!==f[0])var k=Math.max(c[2]-Math.max(a[1],a[3]),g);else k=Math.max(c[2]-a[1]-a[3],g),c[0]+=(a[3]-a[1])/2;null!==f[1]?k=m(k,g,c[2]-Math.max(a[0],a[2])):(k=m(k,g,c[2]-a[0]-a[2]),c[1]+=(a[0]-a[2])/2);k<c[2]?(c[2]=k,c[3]=Math.min(e(b.innerSize||0,k),k),this.translate(c),this.drawDataLabels&&this.drawDataLabels()):h=!0}return h}var A=[],n={radialDistributionY:function(a){return a.top+
578
+ a.distributeBox.pos},radialDistributionX:function(a,c,b,e){return a.getX(b<c.top+2||b>c.bottom-2?e:b,c.half,c)},justify:function(a,c,b){return b[0]+(a.half?-1:1)*(c+a.labelDistance)},alignToPlotEdges:function(a,c,b,e){a=a.getBBox().width;return c?a+e:b-a-e},alignToConnectors:function(a,c,b,e){var d=0,f;a.forEach(function(a){f=a.dataLabel.getBBox().width;f>d&&(d=f)});return c?d+e:b-d-e}};g.compose=function(a){b.compose(k);-1===A.indexOf(a)&&(A.push(a),a=a.prototype,a.dataLabelPositioners=n,a.alignDataLabel=
579
+ x,a.drawDataLabels=v,a.placeDataLabels=u,a.verifyDataLabelOverflow=p)}})(g||(g={}));return g});F(b,"Extensions/OverlappingDataLabels.js",[b["Core/Chart/Chart.js"],b["Core/Utilities.js"]],function(b,q){function x(b,h){var a=!1;if(b){var c=b.newOpacity;b.oldOpacity!==c&&(b.alignAttr&&b.placed?(b[c?"removeClass":"addClass"]("highcharts-data-label-hidden"),a=!0,b.alignAttr.opacity=c,b[b.isOld?"animate":"attr"](b.alignAttr,null,function(){h.styledMode||b.css({pointerEvents:c?"auto":"none"})}),w(h,"afterHideOverlappingLabel")):
580
+ b.attr({opacity:c}));b.isOld=!0}return a}var B=q.addEvent,w=q.fireEvent,D=q.isArray,E=q.isNumber,k=q.objectEach,r=q.pick;B(b,"render",function(){var b=this,h=[];(this.labelCollectors||[]).forEach(function(a){h=h.concat(a())});(this.yAxis||[]).forEach(function(a){a.stacking&&a.options.stackLabels&&!a.options.stackLabels.allowOverlap&&k(a.stacking.stacks,function(a){k(a,function(a){a.label&&"hidden"!==a.label.visibility&&h.push(a.label)})})});(this.series||[]).forEach(function(a){var c=a.options.dataLabels;
581
+ a.visible&&(!1!==c.enabled||a._hasPointLabels)&&(c=function(a){return a.forEach(function(a){a.visible&&(D(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[]).forEach(function(c){var e=c.options;c.labelrank=r(e.labelrank,a.labelrank,a.shapeArgs&&a.shapeArgs.height);e.allowOverlap?(c.oldOpacity=c.opacity,c.newOpacity=1,x(c,b)):h.push(c)})})},c(a.nodes||[]),c(a.points))});this.hideOverlappingLabels(h)});b.prototype.hideOverlappingLabels=function(b){var h=this,a=b.length,c=h.renderer,e,g,k,m=!1;
582
+ var u=function(a){var b,e=a.box?0:a.padding||0,d=b=0,g;if(a&&(!a.alignAttr||a.placed)){var h=a.alignAttr||{x:a.attr("x"),y:a.attr("y")};var k=a.parentGroup;a.width||(b=a.getBBox(),a.width=b.width,a.height=b.height,b=c.fontMetrics(null,a.element).h);var n=a.width-2*e;(g={left:"0",center:"0.5",right:"1"}[a.alignValue])?d=+g*n:E(a.x)&&Math.round(a.x)!==a.translateX&&(d=a.x-a.translateX);return{x:h.x+(k.translateX||0)+e-(d||0),y:h.y+(k.translateY||0)+e-b,width:a.width-2*e,height:a.height-2*e}}};for(g=
583
+ 0;g<a;g++)if(e=b[g])e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=u(e);b.sort(function(a,c){return(c.labelrank||0)-(a.labelrank||0)});for(g=0;g<a;g++){var p=(u=b[g])&&u.absoluteBox;for(e=g+1;e<a;++e){var r=(k=b[e])&&k.absoluteBox;!p||!r||u===k||0===u.newOpacity||0===k.newOpacity||r.x>=p.x+p.width||r.x+r.width<=p.x||r.y>=p.y+p.height||r.y+r.height<=p.y||((u.labelrank<k.labelrank?u:k).newOpacity=0)}}b.forEach(function(a){x(a,h)&&(m=!0)});m&&w(h,"afterHideAllOverlappingLabels")}});F(b,"Core/Responsive.js",
584
+ [b["Core/Utilities.js"]],function(b){var q=b.extend,x=b.find,B=b.isArray,w=b.isObject,D=b.merge,E=b.objectEach,k=b.pick,r=b.splat,m=b.uniqueKey,h;(function(a){var c=[];a.compose=function(a){-1===c.indexOf(a)&&(c.push(a),q(a.prototype,b.prototype));return a};var b=function(){function a(){}a.prototype.currentOptions=function(a){function c(a,e,f,g){var d;E(a,function(a,h){if(!g&&-1<b.collectionsWithUpdate.indexOf(h)&&e[h])for(a=r(a),f[h]=[],d=0;d<Math.max(a.length,e[h].length);d++)e[h][d]&&(void 0===
585
+ a[d]?f[h][d]=e[h][d]:(f[h][d]={},c(a[d],e[h][d],f[h][d],g+1)));else w(a)?(f[h]=B(a)?[]:{},c(a,e[h]||{},f[h],g+1)):f[h]="undefined"===typeof e[h]?null:e[h]})}var b=this,e={};c(a,this.options,e,0);return e};a.prototype.matchResponsiveRule=function(a,c){var b=a.condition;(b.callback||function(){return this.chartWidth<=k(b.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=k(b.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=k(b.minWidth,0)&&this.chartHeight>=k(b.minHeight,0)}).call(this)&&c.push(a._id)};a.prototype.setResponsive=
586
+ function(a,c){var b=this,e=this.options.responsive,g=this.currentResponsive,h=[];!c&&e&&e.rules&&e.rules.forEach(function(a){"undefined"===typeof a._id&&(a._id=m());b.matchResponsiveRule(a,h)},this);c=D.apply(void 0,h.map(function(a){return x((e||{}).rules||[],function(c){return c._id===a})}).map(function(a){return a&&a.chartOptions}));c.isResponsiveOptions=!0;h=h.toString()||void 0;h!==(g&&g.ruleIds)&&(g&&this.update(g.undoOptions,a,!0),h?(g=this.currentOptions(c),g.isResponsiveOptions=!0,this.currentResponsive=
587
+ {ruleIds:h,mergedOptions:c,undoOptions:g},this.update(c,a,!0)):this.currentResponsive=void 0)};return a}()})(h||(h={}));"";"";return h});F(b,"masters/highcharts.src.js",[b["Core/Globals.js"],b["Core/Utilities.js"],b["Core/DefaultOptions.js"],b["Core/Animation/Fx.js"],b["Core/Animation/AnimationUtilities.js"],b["Core/Renderer/HTML/AST.js"],b["Core/FormatUtilities.js"],b["Core/Renderer/RendererUtilities.js"],b["Core/Renderer/SVG/SVGElement.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Renderer/HTML/HTMLElement.js"],
588
+ b["Core/Renderer/HTML/HTMLRenderer.js"],b["Core/Axis/Axis.js"],b["Core/Axis/DateTimeAxis.js"],b["Core/Axis/LogarithmicAxis.js"],b["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],b["Core/Axis/Tick.js"],b["Core/Tooltip.js"],b["Core/Series/Point.js"],b["Core/Pointer.js"],b["Core/MSPointer.js"],b["Core/Legend/Legend.js"],b["Core/Chart/Chart.js"],b["Core/Series/Series.js"],b["Core/Series/SeriesRegistry.js"],b["Series/Column/ColumnSeries.js"],b["Series/Column/ColumnDataLabel.js"],b["Series/Pie/PieSeries.js"],
589
+ b["Series/Pie/PieDataLabel.js"],b["Core/Series/DataLabel.js"],b["Core/Responsive.js"],b["Core/Color/Color.js"],b["Core/Time.js"]],function(b,q,z,B,w,D,E,k,r,m,h,a,c,e,g,C,v,u,p,A,n,f,t,d,y,l,H,K,I,G,N,F,P){b.animate=w.animate;b.animObject=w.animObject;b.getDeferredAnimation=w.getDeferredAnimation;b.setAnimation=w.setAnimation;b.stop=w.stop;b.timers=B.timers;b.AST=D;b.Axis=c;b.Chart=t;b.chart=t.chart;b.Fx=B;b.Legend=f;b.PlotLineOrBand=C;b.Point=p;b.Pointer=n.isRequired()?n:A;b.Series=d;b.SVGElement=
590
+ r;b.SVGRenderer=m;b.Tick=v;b.Time=P;b.Tooltip=u;b.Color=F;b.color=F.parse;a.compose(m);h.compose(r);b.defaultOptions=z.defaultOptions;b.getOptions=z.getOptions;b.time=z.defaultTime;b.setOptions=z.setOptions;b.dateFormat=E.dateFormat;b.format=E.format;b.numberFormat=E.numberFormat;b.addEvent=q.addEvent;b.arrayMax=q.arrayMax;b.arrayMin=q.arrayMin;b.attr=q.attr;b.clearTimeout=q.clearTimeout;b.correctFloat=q.correctFloat;b.createElement=q.createElement;b.css=q.css;b.defined=q.defined;b.destroyObjectProperties=
591
+ q.destroyObjectProperties;b.discardElement=q.discardElement;b.distribute=k.distribute;b.erase=q.erase;b.error=q.error;b.extend=q.extend;b.extendClass=q.extendClass;b.find=q.find;b.fireEvent=q.fireEvent;b.getMagnitude=q.getMagnitude;b.getStyle=q.getStyle;b.inArray=q.inArray;b.isArray=q.isArray;b.isClass=q.isClass;b.isDOMElement=q.isDOMElement;b.isFunction=q.isFunction;b.isNumber=q.isNumber;b.isObject=q.isObject;b.isString=q.isString;b.keys=q.keys;b.merge=q.merge;b.normalizeTickInterval=q.normalizeTickInterval;
592
+ b.objectEach=q.objectEach;b.offset=q.offset;b.pad=q.pad;b.pick=q.pick;b.pInt=q.pInt;b.relativeLength=q.relativeLength;b.removeEvent=q.removeEvent;b.seriesType=y.seriesType;b.splat=q.splat;b.stableSort=q.stableSort;b.syncTimeout=q.syncTimeout;b.timeUnits=q.timeUnits;b.uniqueKey=q.uniqueKey;b.useSerialIds=q.useSerialIds;b.wrap=q.wrap;H.compose(l);G.compose(d);e.compose(c);g.compose(c);I.compose(K);C.compose(c);N.compose(t);return b});F(b,"Core/Axis/Color/ColorAxisComposition.js",[b["Core/Color/Color.js"],
593
+ b["Core/Utilities.js"]],function(b,q){var x=b.parse,B=q.addEvent,w=q.extend,D=q.merge,E=q.pick,k=q.splat,r;(function(b){function h(){var a=this,c=this.options;this.colorAxis=[];c.colorAxis&&(c.colorAxis=k(c.colorAxis),c.colorAxis.forEach(function(c,b){c.index=b;new t(a,c)}))}function a(a){var c=this,b=function(b){b=a.allItems.indexOf(b);-1!==b&&(c.destroyItem(a.allItems[b]),a.allItems.splice(b,1))},d=[],e,f;(this.chart.colorAxis||[]).forEach(function(a){(e=a.options)&&e.showInLegend&&(e.dataClasses&&
594
+ e.visible?d=d.concat(a.getDataClassLegendSymbols()):e.visible&&d.push(a),a.series.forEach(function(a){if(!a.options.showInLegend||e.dataClasses)"point"===a.options.legendType?a.points.forEach(function(a){b(a)}):b(a)}))});for(f=d.length;f--;)a.allItems.unshift(d[f])}function c(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}function e(){var a=this.chart.colorAxis;a&&a.forEach(function(a,c,b){a.update({},b)})}function g(){(this.chart.colorAxis&&this.chart.colorAxis.length||
595
+ this.colorAttribs)&&this.translateColors()}function m(){var a=this.axisTypes;a?-1===a.indexOf("colorAxis")&&a.push("colorAxis"):this.axisTypes=["colorAxis"]}function r(a){var c=this,b=a?"show":"hide";c.visible=c.options.visible=!!a;["graphic","dataLabel"].forEach(function(a){if(c[a])c[a][b]()});this.series.buildKDTree()}function u(){var a=this,c=this.options.nullColor,b=this.colorAxis,e=this.colorKey;(this.data.length?this.data:this.points).forEach(function(d){var f=d.getNestedProperty(e);(f=d.options.color||
596
+ (d.isNull||null===d.value?c:b&&"undefined"!==typeof f?b.toColor(f,d):d.color||a.color))&&d.color!==f&&(d.color=f,"point"===a.options.legendType&&d.legendItem&&a.chart.legend.colorizeItem(d,d.visible))})}function p(a){var c=a.prototype.createAxis;a.prototype.createAxis=function(a,b){if("colorAxis"!==a)return c.apply(this,arguments);var d=new t(this,D(b.axis,{index:this[a].length,isX:!1}));this.isDirtyLegend=!0;this.axes.forEach(function(a){a.series=[]});this.series.forEach(function(a){a.bindAxes();
597
+ a.isDirtyData=!0});E(b.redraw,!0)&&this.redraw(b.animation);return d}}function q(){this.elem.attr("fill",x(this.start).tweenTo(x(this.end),this.pos),void 0,!0)}function n(){this.elem.attr("stroke",x(this.start).tweenTo(x(this.end),this.pos),void 0,!0)}var f=[],t;b.compose=function(b,k,l,A,v){t||(t=b);-1===f.indexOf(k)&&(f.push(k),b=k.prototype,b.collectionsWithUpdate.push("colorAxis"),b.collectionsWithInit.colorAxis=[b.addColorAxis],B(k,"afterGetAxes",h),p(k));-1===f.indexOf(l)&&(f.push(l),k=l.prototype,
598
+ k.fillSetter=q,k.strokeSetter=n);-1===f.indexOf(A)&&(f.push(A),B(A,"afterGetAllItems",a),B(A,"afterColorizeItem",c),B(A,"afterUpdate",e));-1===f.indexOf(v)&&(f.push(v),w(v.prototype,{optionalAxis:"colorAxis",translateColors:u}),w(v.prototype.pointClass.prototype,{setVisible:r}),B(v,"afterTranslate",g),B(v,"bindAxes",m))};b.pointSetVisible=r})(r||(r={}));return r});F(b,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,
599
+ 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}});F(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,q,
600
+ z,B,w,D,E,k){var r=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(c,b)};return function(c,b){function e(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}(),m=q.parse,h=w.noop,a=E.series,c=k.extend,e=k.isNumber,g=k.merge,C=k.pick;q=function(b){function k(a,c){var e=b.call(this,a,c)||this;
601
+ e.beforePadding=!1;e.chart=void 0;e.coll="colorAxis";e.dataClasses=void 0;e.legendItem=void 0;e.legendItems=void 0;e.name="";e.options=void 0;e.stops=void 0;e.visible=!0;e.init(a,c);return e}r(k,b);k.compose=function(a,c,b,e){z.compose(k,a,c,b,e)};k.prototype.init=function(a,c){var e=a.options.legend||{},f=c.layout?"vertical"!==c.layout:"vertical"!==e.layout,h=c.visible;e=g(k.defaultColorAxisOptions,c,{showEmpty:!1,title:null,visible:e.enabled&&!1!==h});this.coll="colorAxis";this.side=c.side||f?2:
602
+ 1;this.reversed=c.reversed||!f;this.opposite=!f;b.prototype.init.call(this,a,e);this.userOptions.visible=h;c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=f;this.zoomEnabled=!1};k.prototype.initDataClasses=function(a){var c=this.chart,b=this.options,e=a.dataClasses.length,h,d=0,k=c.options.chart.colorCount;this.dataClasses=h=[];this.legendItems=[];(a.dataClasses||[]).forEach(function(a,f){a=g(a);h.push(a);if(c.styledMode||!a.color)"category"===b.dataClassColor?(c.styledMode||(f=
603
+ c.options.colors,k=f.length,a.color=f[d]),a.colorIndex=d,d++,d===k&&(d=0)):a.color=m(b.minColor).tweenTo(m(b.maxColor),2>e?.5:f/(e-1))})};k.prototype.hasData=function(){return!!(this.tickPositions||[]).length};k.prototype.setTickPositions=function(){if(!this.dataClasses)return b.prototype.setTickPositions.call(this)};k.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(a){a.color=m(a[1])})};k.prototype.setOptions=
604
+ function(a){b.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker};k.prototype.setAxisSize=function(){var a=this.legendSymbol,c=this.chart,b=c.options.legend||{},e,g;a?(this.left=b=a.attr("x"),this.top=e=a.attr("y"),this.width=g=a.attr("width"),this.height=a=a.attr("height"),this.right=c.chartWidth-b-g,this.bottom=c.chartHeight-e-a,this.len=this.horiz?g:a,this.pos=this.horiz?b:e):this.len=(this.horiz?b.symbolWidth:b.symbolHeight)||k.defaultLegendLength};k.prototype.normalizedValue=
605
+ function(a){this.logarithmic&&(a=this.logarithmic.log2lin(a));return 1-(this.max-a)/(this.max-this.min||1)};k.prototype.toColor=function(a,c){var b=this.dataClasses,e=this.stops,g;if(b)for(g=b.length;g--;){var d=b[g];var h=d.from;e=d.to;if(("undefined"===typeof h||a>=h)&&("undefined"===typeof e||a<=e)){var k=d.color;c&&(c.dataClass=g,c.colorIndex=d.colorIndex);break}}else{a=this.normalizedValue(a);for(g=e.length;g--&&!(a>e[g][0]););h=e[g]||e[g+1];e=e[g+1]||h;a=1-(e[0]-a)/(e[0]-h[0]||1);k=h.color.tweenTo(e.color,
606
+ a)}return k};k.prototype.getOffset=function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,b.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=c)};k.prototype.setLegendColor=function(){var a=this.reversed,c=a?1:0;a=a?0:1;c=this.horiz?[c,0,a,0]:[0,a,0,c];this.legendColor={linearGradient:{x1:c[0],y1:c[1],x2:c[2],y2:c[3]},stops:this.stops}};k.prototype.drawLegendSymbol=function(a,
607
+ c){var b=a.padding,e=a.options,g=this.horiz,d=C(e.symbolWidth,g?k.defaultLegendLength:12),h=C(e.symbolHeight,g?12:k.defaultLegendLength),l=C(e.labelPadding,g?16:30);e=C(e.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,d,h).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=d+b+(g?e:l);this.legendItemHeight=h+b+(g?l:0)};k.prototype.setState=function(a){this.series.forEach(function(c){c.setState(a)})};k.prototype.setVisible=function(){};k.prototype.getSeriesExtremes=
608
+ function(){var c=this.series,b=c.length,e;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;){var f=c[b];var g=f.colorKey=C(f.options.colorKey,f.colorKey,f.pointValKey,f.zoneAxis,"y");var d=f.pointArrayMap;var h=f[g+"Min"]&&f[g+"Max"];if(f[g+"Data"])var k=f[g+"Data"];else if(d){k=[];d=d.indexOf(g);var m=f.yData;if(0<=d&&m)for(e=0;e<m.length;e++)k.push(C(m[e][d],m[e]))}else k=f.yData;h?(f.minColorValue=f[g+"Min"],f.maxColorValue=f[g+"Max"]):(k=a.prototype.getExtremes.call(f,k),f.minColorValue=k.dataMin,
609
+ f.maxColorValue=k.dataMax);"undefined"!==typeof f.minColorValue&&(this.dataMin=Math.min(this.dataMin,f.minColorValue),this.dataMax=Math.max(this.dataMax,f.maxColorValue));h||a.prototype.applyExtremes.call(f)}};k.prototype.drawCrosshair=function(a,c){var e=c&&c.plotX,f=c&&c.plotY,g=this.pos,d=this.len;if(c){var h=this.toPixels(c.getNestedProperty(c.series.colorKey));h<g?h=g-2:h>g+d&&(h=g+d+2);c.plotX=h;c.plotY=this.len-h;b.prototype.drawCrosshair.call(this,a,c);c.plotX=e;c.plotY=f;this.cross&&!this.cross.addedToColorAxis&&
610
+ 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}))}};k.prototype.getPlotLinePath=function(a){var c=this.left,g=a.translatedValue,f=this.top;return e(g)?this.horiz?[["M",g-4,f-6],["L",g+4,f-6],["L",g,f],["Z"]]:[["M",c,g],["L",c-6,g+6],["L",c-6,g-6],["Z"]]:b.prototype.getPlotLinePath.call(this,a)};k.prototype.update=function(a,
611
+ c){var e=this.chart.legend;this.series.forEach(function(a){a.isDirtyData=!0});(a.dataClasses&&e.allItems||this.dataClasses)&&this.destroyItems();b.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),e.colorizeItem(this,!0))};k.prototype.destroyItems=function(){var a=this.chart;this.legendItem?a.legend.destroyItem(this):this.legendItems&&this.legendItems.forEach(function(c){a.legend.destroyItem(c)});a.isDirtyLegend=!0};k.prototype.destroy=function(){this.chart.isDirtyLegend=!0;
612
+ this.destroyItems();b.prototype.destroy.apply(this,[].slice.call(arguments))};k.prototype.remove=function(a){this.destroyItems();b.prototype.remove.call(this,a)};k.prototype.getDataClassLegendSymbols=function(){var a=this,b=a.chart,e=a.legendItems,f=b.options.legend,g=f.valueDecimals,d=f.valueSuffix||"",k;e.length||a.dataClasses.forEach(function(f,n){var l=f.from,m=f.to,p=b.numberFormatter,t=!0;k="";"undefined"===typeof l?k="< ":"undefined"===typeof m&&(k="> ");"undefined"!==typeof l&&(k+=p(l,g)+
613
+ d);"undefined"!==typeof l&&"undefined"!==typeof m&&(k+=" - ");"undefined"!==typeof m&&(k+=p(m,g)+d);e.push(c({chart:b,name:k,options:{},drawLegendSymbol:D.drawRectangle,visible:!0,setState:h,isDataClass:!0,setVisible:function(){t=a.visible=!t;a.series.forEach(function(a){a.points.forEach(function(a){a.dataClass===n&&a.setVisible(t)})});b.legend.colorizeItem(this,t)}},f))});return e};k.defaultColorAxisOptions=B;k.defaultLegendLength=200;k.keepProps=["legendGroup","legendItemHeight","legendItemWidth",
614
+ "legendItem","legendSymbol"];return k}(b);Array.prototype.push.apply(b.keepProps,q.keepProps);"";return q});F(b,"Maps/MapNavigationOptionsDefault.js",[b["Core/DefaultOptions.js"],b["Core/Utilities.js"]],function(b,q){q=q.extend;var x={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},
615
+ text:"-",y:28}},mouseWheelSensitivity:1.1};q(b.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});return b.defaultOptions.mapNavigation=x});F(b,"Maps/MapNavigation.js",[b["Core/Chart/Chart.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,q,z){function x(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function w(a){this.init(a)}var D=q.doc,E=z.addEvent,k=z.extend,r=z.merge,m=z.objectEach,h=z.pick;w.prototype.init=function(a){this.chart=
616
+ a;a.mapNavButtons=[]};w.prototype.update=function(a){var c=this.chart,b=c.options.mapNavigation,g,q,v,u,p=function(a){this.handler.call(c,a);x(a)},A=c.mapNavButtons;a&&(b=c.options.mapNavigation=r(c.options.mapNavigation,a));for(;A.length;)A.pop().destroy();h(b.enableButtons,b.enabled)&&!c.renderer.forExport&&m(b.buttons,function(a,e){a=r(b.buttonOptions,a);!c.styledMode&&a.theme&&(g=a.theme,g.style=r(a.theme.style,a.style),v=(q=g.states)&&q.hover,u=q&&q.select,delete g.states);var f=c.renderer.button(a.text||
617
+ "",0,0,p,g,v,u,void 0,"zoomIn"===e?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[e]).attr({width:a.width,height:a.height,title:c.options.lang[e],padding:a.padding,zIndex:5}).add();f.handler=a.onclick;E(f.element,"dblclick",x);A.push(f);k(a,{width:f.width,height:2*f.height});if(c.hasLoaded)f.align(a,!1,a.alignTo);else var d=E(c,"load",function(){f.element&&f.align(a,!1,a.alignTo);d()})});this.updateEvents(b)};w.prototype.updateEvents=
618
+ function(a){var c=this.chart;h(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||E(c.container,"dblclick",function(a){c.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());h(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||E(c.container,void 0!==D.onwheel?"wheel":void 0!==D.onmousewheel?"mousewheel":"DOMMouseScroll",function(a){c.pointer.inClass(a.target,"highcharts-no-mousewheel")||
619
+ (c.pointer.onContainerMouseWheel(a),x(a));return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};k(b.prototype,{fitToBox:function(a,c){[["x","width"],["y","height"]].forEach(function(b){var e=b[0];b=b[1];a[e]+a[b]>c[e]+c[b]&&(a[b]>c[b]?(a[b]=c[b],a[e]=c[e]):a[e]=c[e]+c[b]-a[b]);a[b]>c[b]&&(a[b]=c[b]);a[e]<c[e]&&(a[e]=c[e])});return a},mapZoom:function(a,c,b,g,h){this.mapView&&("number"===typeof a&&(a=Math.log(a)/Math.log(.5)),this.mapView.zoomBy(a,"number"===typeof c&&
620
+ "number"===typeof b?this.mapView.projection.inverse([c,b]):void 0,"number"===typeof g&&"number"===typeof h?[g,h]:void 0))}});E(b,"beforeRender",function(){this.mapNavigation=new w(this);this.mapNavigation.update()});q.MapNavigation=w});F(b,"Maps/MapPointer.js",[b["Core/Pointer.js"],b["Core/Utilities.js"]],function(b,q){var x=q.defined,B=q.extend,w=q.pick;q=q.wrap;var D=0,E;B(b.prototype,{onContainerDblClick:function(b){var k=this.chart;b=this.normalize(b);k.options.mapNavigation.enableDoubleClickZoomTo?
621
+ k.pointer.inClass(b.target,"highcharts-tracker")&&k.hoverPoint&&k.hoverPoint.zoomTo():k.isInsidePlot(b.chartX-k.plotLeft,b.chartY-k.plotTop)&&k.mapZoom(.5,void 0,void 0,b.chartX,b.chartY)},onContainerMouseWheel:function(b){var k=this.chart;b=this.normalize(b);var m=x(b.wheelDelta)&&-b.wheelDelta/120||b.deltaY||b.detail;1<=Math.abs(m)&&(D+=Math.abs(m),E&&clearTimeout(E),E=setTimeout(function(){D=0},50));10>D&&k.isInsidePlot(b.chartX-k.plotLeft,b.chartY-k.plotTop)&&k.mapView&&k.mapView.zoomBy((k.options.mapNavigation.mouseWheelSensitivity-
622
+ 1)*-m,void 0,[b.chartX,b.chartY],1>Math.abs(m)?!1:void 0)}});q(b.prototype,"zoomOption",function(b){var k=this.chart.options.mapNavigation;w(k.enableTouchZoom,k.enabled)&&(this.chart.options.chart.pinchType="xy");b.apply(this,[].slice.call(arguments,1))});q(b.prototype,"pinchTranslate",function(b,r,m,h,a,c,e){b.call(this,r,m,h,a,c,e);"map"===this.chart.options.chart.type&&this.hasZoom&&(b=h.scaleX>h.scaleY,this.pinchTranslateDirection(!b,r,m,h,a,c,e,b?h.scaleX:h.scaleY))})});F(b,"Series/ColorMapComposition.js",
623
+ [b["Core/Utilities.js"]],function(b){var q=b.defined,x=b.wrap,B={pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],trackerGroups:["group","markerGroup","dataLabelsGroup"],parallelArrays:["x","y","value"],colorKey:"value"},w;(function(b){function w(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value}function k(b){var a={};!q(b.color)||b.state&&"normal"!==b.state||(a[this.colorProp||"fill"]=b.color);return a}function r(b,a,c){b=b.call(this,a,c);a.moveToTopOnHover&&
624
+ (b.zIndex="hover"===c?1:0);return b}b.colorMapSeriesMixin=B;var m=[];b.compose=function(b,a){a&&-1===m.indexOf(a)&&(m.push(a),a=a.prototype,a.dataLabelOnNull=!0,a.moveToTopOnHover=!0,a.isValid=w);-1===m.indexOf(b)&&(m.push(b),a=b.prototype,a.colorAttribs=k,x(a,"pointAttribs",r));return b};b.seriesColorAttribs=k})(w||(w={}));return w});F(b,"Maps/MapViewOptionsDefault.js",[],function(){return{center:[0,0],maxZoom:void 0,padding:0,projection:void 0,zoom:void 0}});F(b,"Maps/Projections/EqualEarth.js",
625
+ [],function(){var b=Math.sqrt(3)/2;return{forward:function(q){var x=Math.PI/180,B=Math.asin(b*Math.sin(q[1]*x)),w=B*B,D=w*w*w;return[q[0]*x*Math.cos(B)/(b*(1.340264+3*-.081106*w+D*(7*.000893+.034164*w))),B*(1.340264+-.081106*w+D*(.000893+.003796*w))]},inverse:function(q){var x=180/Math.PI,B=q[1],w;for(w=0;12>w;++w){var D=B*B;var E=D*D*D;var k=B*(1.340264+-.081106*D+E*(.000893+.003796*D))-q[1];D=1.340264+3*-.081106*D+E*(7*.000893+.034164*D);B-=k/=D;if(1e-9>Math.abs(k))break}D=B*B;return[x*b*q[0]*(1.340264+
626
+ 3*-.081106*D+D*D*D*(7*.000893+.034164*D))/Math.cos(B),x*Math.asin(Math.sin(B)/b)]}}});F(b,"Maps/Projections/Miller.js",[],function(){var b=Math.PI/4,q=Math.PI/180;return{forward:function(x){return[x[0]*q,1.25*Math.log(Math.tan(b+.4*x[1]*q))]},inverse:function(x){return[x[0]/q,2.5*(Math.atan(Math.exp(.8*x[1]))-b)/q]}}});F(b,"Maps/Projections/Orthographic.js",[],function(){var b=Math.PI/180;return{forward:function(q){var x=q[0];if(-90>x||90<x)return[NaN,NaN];q=q[1]*b;return[Math.cos(q)*Math.sin(x*b),
627
+ Math.sin(q)]},inverse:function(q){var x=q[0];q=q[1];var B=Math.sqrt(x*x+q*q),w=Math.asin(B),D=Math.sin(w);return[Math.atan2(x*D,B*Math.cos(w))/b,Math.asin(B&&q*D/B)/b]}}});F(b,"Maps/Projections/WebMercator.js",[],function(){var b=Math.PI/180;return{forward:function(q){if(85.0511287798<Math.abs(q[1]))return[NaN,NaN];var x=Math.sin(q[1]*b);return[6378137*q[0]*b,6378137*Math.log((1+x)/(1-x))/2]},inverse:function(q){return[q[0]/(6378137*b),(2*Math.atan(Math.exp(q[1]/6378137))-Math.PI/2)/b]},maxLatitude:85.0511287798}});
628
+ F(b,"Maps/Projections/ProjectionRegistry.js",[b["Maps/Projections/EqualEarth.js"],b["Maps/Projections/Miller.js"],b["Maps/Projections/Orthographic.js"],b["Maps/Projections/WebMercator.js"]],function(b,q,z,B){return{EqualEarth:b,Miller:q,Orthographic:z,WebMercator:B}});F(b,"Maps/Projection.js",[b["Maps/Projections/ProjectionRegistry.js"],b["Core/Utilities.js"]],function(b,q){var x=this&&this.__spreadArrays||function(){for(var b=0,k=0,r=arguments.length;k<r;k++)b+=arguments[k].length;b=Array(b);var m=
629
+ 0;for(k=0;k<r;k++)for(var h=arguments[k],a=0,c=h.length;a<c;a++,m++)b[m]=h[a];return b},B=q.erase,w=2*Math.PI/360,D=function(b){-180>b&&(b+=360);180<b&&(b-=360);return b};return function(){function q(b){void 0===b&&(b={});this.hasGeoProjection=this.hasCoordinates=!1;this.maxLatitude=90;this.options=b;var k=b.name;this.rotator=(b=b.rotation)?this.getRotator(b):void 0;var m=this.def=k?q.registry[k]:void 0,h=this.rotator;m&&(this.maxLatitude=m.maxLatitude||90,this.hasGeoProjection=!0);h&&m?(this.forward=
630
+ function(a){a=h.forward(a);return m.forward(a)},this.inverse=function(a){a=m.inverse(a);return h.inverse(a)}):m?(this.forward=m.forward,this.inverse=m.inverse):h&&(this.forward=h.forward,this.inverse=h.inverse)}q.add=function(b,r){q.registry[b]=r};q.greatCircle=function(b,r,m){var h=Math.atan2,a=Math.cos,c=Math.sin,e=Math.sqrt,g=b[1]*w,k=b[0]*w,q=r[1]*w,u=r[0]*w,p=q-g,A=u-k;p=c(p/2)*c(p/2)+a(g)*a(q)*c(A/2)*c(A/2);p=2*h(e(p),e(1-p));var n=Math.round(6371E3*p/5E5);A=[];m&&A.push(b);if(1<n)for(n=b=1/
631
+ n;.999>n;n+=b){var f=c((1-n)*p)/c(p),t=c(n*p)/c(p),d=f*a(g)*a(k)+t*a(q)*a(u),y=f*a(g)*c(k)+t*a(q)*c(u);f=f*c(g)+t*c(q);f=h(f,e(d*d+y*y));d=h(y,d);A.push([d/w,f/w])}m&&A.push(r);return A};q.insertGreatCircles=function(b){for(var k=b.length-1;k--;)if(10<Math.max(Math.abs(b[k][0]-b[k+1][0]),Math.abs(b[k][1]-b[k+1][1]))){var m=q.greatCircle(b[k],b[k+1]);m.length&&b.splice.apply(b,x([k+1,0],m))}};q.toString=function(b){b=b||{};var k=b.rotation;return[b.name,k&&k.join(",")].join(";")};q.prototype.getRotator=
632
+ function(b){var k=b[0]*w,m=(b[1]||0)*w;b=(b[2]||0)*w;var h=Math.cos(m),a=Math.sin(m),c=Math.cos(b),e=Math.sin(b);if(0!==k||0!==m||0!==b)return{forward:function(b){var g=b[0]*w+k,m=b[1]*w,u=Math.cos(m);b=Math.cos(g)*u;g=Math.sin(g)*u;m=Math.sin(m);u=m*h+b*a;return[Math.atan2(g*c-u*e,b*h-m*a)/w,Math.asin(u*c+g*e)/w]},inverse:function(b){var g=b[0]*w,m=b[1]*w,u=Math.cos(m);b=Math.cos(g)*u;g=Math.sin(g)*u;m=Math.sin(m);u=m*c-g*e;return[(Math.atan2(g*c+m*e,b*h+u*a)-k)/w,Math.asin(u*h-b*a)/w]}}};q.prototype.forward=
633
+ function(b){return b};q.prototype.inverse=function(b){return b};q.prototype.clipOnAntimeridian=function(b,r){var k=[],h=[b];b.forEach(function(a,c){var e=b[c-1];if(!c){if(!r)return;e=b[b.length-1]}var g=e[0],f=a[0];(-90>g||90<g)&&(-90>f||90<f)&&0<g!==0<f&&k.push({i:c,lat:e[1]+(180-e[0])/(a[0]-e[0])*(a[1]-e[1]),direction:0>g?1:-1,previousLonLat:e,lonLat:a})});if(k.length)if(r){if(1===k.length%2){var a=k.slice().sort(function(a,b){return Math.abs(b.lat)-Math.abs(a.lat)})[0];B(k,a)}for(var c=k.length-
634
+ 2;0<=c;){var e=k[c].i,g=D(180+.000001*k[c].direction),C=D(180-.000001*k[c].direction);e=b.splice.apply(b,x([e,k[c+1].i-e],q.greatCircle([g,k[c].lat],[g,k[c+1].lat],!0)));e.push.apply(e,q.greatCircle([C,k[c+1].lat],[C,k[c].lat],!0));h.push(e);c-=2}if(a)for(e=0;e<h.length;e++)if(c=h[e],C=c.indexOf(a.lonLat),-1<C){e=(0>a.lat?-1:1)*this.maxLatitude;g=D(180+.000001*a.direction);var v=D(180-.000001*a.direction);a=q.greatCircle([g,a.lat],[g,e],!0).concat(q.greatCircle([v,e],[v,a.lat],!0));c.splice.apply(c,
635
+ x([C,0],a));break}}else for(c=k.length;c--;)e=k[c].i,e=b.splice(e,b.length,[D(180+.000001*k[c].direction),k[c].lat]),e.unshift([D(180-.000001*k[c].direction),k[c].lat]),h.push(e);return h};q.prototype.path=function(b){var k=this,m=this.def,h=this.rotator,a=[],c="Polygon"===b.type||"MultiPolygon"===b.type,e=this.hasGeoProjection,g="Orthographic"!==this.options.name,C=g?h:void 0,v=g?m||this:this,u=function(b){b=b.map(function(a){if(g){C&&(a=C.forward(a));var b=a[0];.000001>Math.abs(b-180)&&(b=180>b?
636
+ 179.999999:180.000001);a=[b,a[1]]}return a});var h=[b];e&&(q.insertGreatCircles(b),g&&(h=k.clipOnAntimeridian(b,c)));h.forEach(function(b){if(!(2>b.length))for(var f=!1,g,d,h=!1,l=function(b){f?a.push(["L",b[0],b[1]]):(a.push(["M",b[0],b[1]]),f=!0)},n=0;n<b.length;n++){var m=b[n],p=v.forward(m);isNaN(p[0])||isNaN(p[1])||e&&!(m[1]<=k.maxLatitude&&m[1]>=-k.maxLatitude)?h=!0:(c&&!g&&(g=m,b.push(m)),h&&d&&(c&&e?q.greatCircle(d,m).forEach(function(a){return l(v.forward(a))}):f=!1),l(p),d=m,h=!1)}})};"LineString"===
637
+ b.type?u(b.coordinates):"MultiLineString"===b.type?b.coordinates.forEach(function(a){return u(a)}):"Polygon"===b.type?(b.coordinates.forEach(function(a){return u(a)}),a.length&&a.push(["Z"])):"MultiPolygon"===b.type&&(b.coordinates.forEach(function(a){a.forEach(function(a){return u(a)})}),a.length&&a.push(["Z"]));return a};q.registry=b;return q}()});F(b,"Maps/MapView.js",[b["Maps/MapViewOptionsDefault.js"],b["Maps/Projection.js"],b["Core/Utilities.js"]],function(b,q,z){var x=z.addEvent,w=z.clamp,
638
+ D=z.fireEvent,E=z.isNumber,k=z.merge,r=z.pick,m=z.relativeLength;return function(){function h(a,c){var e=this;this.userOptions=c||{};c=k(b,c);this.chart=a;this.center=c.center;this.options=c;this.projection=new q(c.projection);this.zoom=c.zoom||0;x(a,"afterSetChartSize",function(){if(void 0===e.minZoom||e.minZoom===e.zoom)e.fitToBounds(void 0,void 0,!1),E(e.userOptions.zoom)&&(e.zoom=e.userOptions.zoom),e.userOptions.center&&k(!0,e.center,e.userOptions.center)});var g,h,m;c=function(b){var c=a.pointer.pinchDown,
639
+ k=a.mouseDownX,n=a.mouseDownY;1===c.length&&(k=c[0].chartX,n=c[0].chartY);if("number"===typeof k&&"number"===typeof n){var f=k+","+n,t=b.originalEvent;c=t.chartX;t=t.chartY;f!==h&&(h=f,g=e.projection.forward(e.center),m=(e.projection.options.rotation||[0,0]).slice());"Orthographic"===e.projection.options.name&&25.2>(e.minZoom||Infinity)?(f=28E3/(e.getScale()*Math.min(a.plotWidth,a.plotHeight)),m&&(k=(k-c)*f-m[0],n=w(-m[1]-(n-t)*f,-80,80),e.update({projection:{rotation:[-k,-n]},center:[k,n],zoom:e.zoom},
640
+ !0,!1))):(f=e.getScale(),n=e.projection.inverse([g[0]+(k-c)/f,g[1]-(n-t)/f]),e.setView(n,void 0,!0,!1));b.preventDefault()}};x(a,"pan",c);x(a,"touchpan",c);x(a,"selection",function(b){if(b.resetSelection)e.zoomBy();else{var c=b.x-a.plotLeft,g=b.y-a.plotTop,h=e.pixelsToProjectedUnits({x:c,y:g}),f=h.y;h=h.x;c=e.pixelsToProjectedUnits({x:c+b.width,y:g+b.height});e.fitToBounds({x1:h,y1:f,x2:c.x,y2:c.y},void 0,!0,b.originalEvent.touches?!1:void 0);/^touch/.test(b.originalEvent.type)||a.showResetZoom();
641
+ b.preventDefault()}})}h.prototype.fitToBounds=function(a,b,e,g){void 0===e&&(e=!0);var c=a||this.getProjectedBounds();if(c){var h=this.chart,k=h.plotWidth;h=h.plotHeight;var p=r(b,a?0:this.options.padding);b=m(p,k);p=m(p,h);k=Math.log(40097932.2/Math.max((c.x2-c.x1)/((k-b)/256),(c.y2-c.y1)/((h-p)/256)))/Math.log(2);a||(this.minZoom=k);a=this.projection.inverse([(c.x2+c.x1)/2,(c.y2+c.y1)/2]);this.setView(a,k,e,g)}};h.prototype.getProjectedBounds=function(){var a=this.chart.series.reduce(function(a,
642
+ b){(b=b.getProjectedBounds&&b.getProjectedBounds())&&a.push(b);return a},[]);return h.compositeBounds(a)};h.prototype.getScale=function(){return 256/40097932.2*Math.pow(2,this.zoom)};h.prototype.redraw=function(a){this.chart.series.forEach(function(a){a.useMapGeometry&&(a.isDirty=!0)});this.chart.redraw(a)};h.prototype.setView=function(a,b,e,g){void 0===e&&(e=!0);var c=!1;a&&(this.center=a);"number"===typeof b&&("number"===typeof this.minZoom&&(b=Math.max(b,this.minZoom)),"number"===typeof this.options.maxZoom&&
643
+ (b=Math.min(b,this.options.maxZoom)),c=b>this.zoom,this.zoom=b);var h=this.getProjectedBounds();if(h&&!c){c=this.projection.forward(this.center);b=this.chart;a=b.plotWidth;b=b.plotHeight;var k=this.getScale(),m=this.projectedUnitsToPixels({x:h.x1,y:h.y1}),r=this.projectedUnitsToPixels({x:h.x2,y:h.y2});h=[(h.x1+h.x2)/2,(h.y1+h.y2)/2];var n=m.x,f=r.y;r=r.x;m=m.y;r-n<a?c[0]=h[0]:0>n&&r<a?c[0]+=Math.max(n,r-a)/k:r>a&&0<n&&(c[0]+=Math.min(r-a,n)/k);m-f<b?c[1]=h[1]:0>f&&m<b?c[1]-=Math.max(f,m-b)/k:m>b&&
644
+ 0<f&&(c[1]-=Math.min(m-b,f)/k);this.center=this.projection.inverse(c)}D(this,"afterSetView");e&&this.redraw(g)};h.prototype.projectedUnitsToPixels=function(a){var b=this.getScale(),e=this.projection.forward(this.center);return{x:this.chart.plotWidth/2-b*(e[0]-a.x),y:this.chart.plotHeight/2+b*(e[1]-a.y)}};h.prototype.pixelsToProjectedUnits=function(a){var b=a.x;a=a.y;var e=this.getScale(),g=this.projection.forward(this.center);return{x:g[0]+(b-this.chart.plotWidth/2)/e,y:g[1]-(a-this.chart.plotHeight/
645
+ 2)/e}};h.prototype.update=function(a,b,e){void 0===b&&(b=!0);var c=a.projection;c=c&&q.toString(c)!==q.toString(this.options.projection);k(!0,this.userOptions,a);k(!0,this.options,a);c&&(this.chart.series.forEach(function(a){a.clearBounds&&a.clearBounds();a.isDirty=!0;a.isDirtyData=!0}),this.projection=new q(this.options.projection),a.center||E(a.zoom)||this.fitToBounds(void 0,void 0,!1));(a.center||E(a.zoom))&&this.setView(this.options.center,a.zoom,!1);b&&this.chart.redraw(e)};h.prototype.zoomBy=
646
+ function(a,b,e,g){var c=this.chart,h=this.projection.forward(this.center);b=b?this.projection.forward(b):[];var k=b[0],m=b[1];"number"===typeof a?(a=this.zoom+a,b=void 0,e&&(k=e[0],m=e[1],e=this.getScale(),k=k-c.plotLeft-c.plotWidth/2,c=m-c.plotTop-c.plotHeight/2,k=h[0]+k/e,m=h[1]+c/e),"number"===typeof k&&"number"===typeof m&&(e=1-Math.pow(2,this.zoom)/Math.pow(2,a),k=h[0]-k,c=h[1]-m,h[0]-=k*e,h[1]+=c*e,b=this.projection.inverse(h)),this.setView(b,a,void 0,g)):this.fitToBounds(void 0,void 0,void 0,
647
+ g)};h.compositeBounds=function(a){if(a.length)return a.slice(1).reduce(function(a,b){a.x1=Math.min(a.x1,b.x1);a.y1=Math.min(a.y1,b.y1);a.x2=Math.max(a.x2,b.x2);a.y2=Math.max(a.y2,b.y2);return a},k(a[0]))};return h}()});F(b,"Maps/MapSymbols.js",[b["Core/Renderer/SVG/SVGRenderer.js"]],function(b){function q(b,q,w,x,E,k,r,m){return[["M",b+E,q],["L",b+w-k,q],["C",b+w-k/2,q,b+w,q+k/2,b+w,q+k],["L",b+w,q+x-r],["C",b+w,q+x-r/2,b+w-r/2,q+x,b+w-r,q+x],["L",b+m,q+x],["C",b+m/2,q+x,b,q+x-m/2,b,q+x-m],["L",b,
648
+ q+E],["C",b,q+E/2,b+E/2,q,b+E,q],["Z"]]}b=b.prototype.symbols;b.bottombutton=function(b,x,w,D,E){E=E&&E.r||0;return q(b-1,x-1,w,D,0,0,E,E)};b.topbutton=function(b,x,w,D,E){E=E&&E.r||0;return q(b-1,x-1,w,D,E,E,0,0)};return b});F(b,"Core/Chart/MapChart.js",[b["Core/Chart/Chart.js"],b["Core/DefaultOptions.js"],b["Maps/MapView.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Utilities.js"]],function(b,q,z,B,w){var x=this&&this.__extends||function(){var b=function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof
649
+ 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 e(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),E=q.getOptions,k=w.addEvent,r=w.merge,m=w.pick;b=function(b){function a(){return null!==b&&b.apply(this,arguments)||this}x(a,b);a.prototype.init=function(a,e){k(this,"afterInit",function(){this.mapView=new z(this,this.options.mapView)});var c=E().credits;
650
+ a=r({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:m(c.mapText,' \u00a9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:m(c.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},a);b.prototype.init.call(this,a,e)};return a}(b);(function(b){b.maps={};b.mapChart=function(a,c,e){return new b(a,c,e)};b.splitPath=function(a){"string"===typeof a&&(a=a.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,""),a=a.split(/[ ,;]+/).map(function(a){return/[A-za-z]/.test(a)?
651
+ a:parseFloat(a)}));return B.prototype.pathToSegments(a)}})(b||(b={}));return b});F(b,"Series/Map/MapPoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,q){var x=this&&this.__extends||function(){var b=function(q,x){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,r){b.__proto__=r}||function(b,r){for(var k in r)r.hasOwnProperty(k)&&(b[k]=r[k])};return b(q,x)};return function(q,x){function k(){this.constructor=q}b(q,x);q.prototype=null===x?Object.create(x):
652
+ (k.prototype=x.prototype,new k)}}(),B=q.extend;return function(b){function w(){var q=null!==b&&b.apply(this,arguments)||this;q.options=void 0;q.path=void 0;q.series=void 0;return q}x(w,b);w.getProjectedPath=function(b,k){b.projectedPath||(k&&b.geometry?(k.hasCoordinates=!0,b.projectedPath=k.path(b.geometry)):b.projectedPath=b.path);return b.projectedPath||[]};w.prototype.applyOptions=function(q,k){var r=this.series;q=b.prototype.applyOptions.call(this,q,k);k=r.joinBy;r.mapData&&r.mapMap&&(k=b.prototype.getNestedProperty.call(q,
653
+ k[1]),(r="undefined"!==typeof k&&r.mapMap[k])?B(q,r):q.value=q.value||null);return q};w.prototype.onMouseOver=function(x){q.clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)b.prototype.onMouseOver.call(this,x);else this.series.onMouseOut(x)};w.prototype.zoomTo=function(){var b=this.series.chart;b.mapView&&this.bounds&&(b.mapView.fitToBounds(this.bounds,void 0,!1),this.series.isDirty=!0,b.redraw())};return w}(b.seriesTypes.scatter.prototype.pointClass)});F(b,
654
+ "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"],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,q,z,B,w,D,E,k,r,m,h,a){var c=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||
655
+ {__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),e=b.animObject;b=q.colorMapSeriesMixin;var g=B.noop,x=D.maps,v=D.splitPath;D=m.seriesTypes;var u=D.column,p=D.scatter;D=a.extend;var A=a.fireEvent,n=a.getNestedProperty,f=a.isArray,t=a.isNumber,d=a.merge,y=a.objectEach,l=a.pick,
656
+ H=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.transformGroup=void 0;return b}c(b,a);b.prototype.animate=function(a){var b=this.chart,c=this.group,d=e(this.options.animation);b.renderer.isSVG&&(a?c.attr({translateX:b.plotLeft+b.plotWidth/2,translateY:b.plotTop+b.plotHeight/2,scaleX:.001,scaleY:.001}):c.animate({translateX:b.plotLeft,translateY:b.plotTop,scaleX:1,scaleY:1},
657
+ d))};b.prototype.animateDrilldown=function(a){var b=this.chart,c=this.group;b.renderer.isSVG&&(a?c.attr({translateX:b.plotLeft+b.plotWidth/2,translateY:b.plotTop+b.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01}):c.animate({translateX:b.plotLeft,translateY:b.plotTop,scaleX:1,scaleY:1,opacity:1}))};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})};
658
+ b.prototype.animateDrillupTo=function(a){u.prototype.animateDrillupTo.call(this,a)};b.prototype.clearBounds=function(){this.points.forEach(function(a){delete a.bounds;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(){r.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};b.prototype.drawPoints=
659
+ function(){var a=this,b=this.chart,c=this.group,d=this.svgTransform,e=b.mapView,f=b.renderer;this.transformGroup||(this.transformGroup=f.g().add(c),this.transformGroup.survive=!0);this.doFullTranslate()&&(b.hasRendered&&!b.styledMode&&this.points.forEach(function(b){b.shapeArgs&&(b.shapeArgs.fill=a.pointAttribs(b,b.state).fill)}),this.group=this.transformGroup,u.prototype.drawPoints.apply(this),this.group=c,this.points.forEach(function(c){if(c.graphic){var d="";c.name&&(d+="highcharts-name-"+c.name.replace(/ /g,
660
+ "-").toLowerCase());c.properties&&c.properties["hc-key"]&&(d+=" highcharts-key-"+c.properties["hc-key"].toLowerCase());d&&c.graphic.addClass(d);b.styledMode&&c.graphic.css(a.pointAttribs(c,c.selected&&"select"||void 0))}}));if(e&&d){var g=l(this.options[this.pointAttrToOptions&&this.pointAttrToOptions["stroke-width"]||"borderWidth"],1),h=d.scaleX,k=0<d.scaleY?1:-1,n=this.transformGroup;if(f.globalAnimation&&b.hasRendered){var m=Number(n.attr("translateX")),p=Number(n.attr("translateY")),t=Number(n.attr("scaleX"));
661
+ n.attr({animator:0}).animate({animator:1},{step:function(a,b){a=t+(h-t)*b.pos;n.attr({translateX:m+(d.translateX-m)*b.pos,translateY:p+(d.translateY-p)*b.pos,scaleX:a,scaleY:a*k});c.element.setAttribute("stroke-width",g/a)}})}else n.attr(d),c.element.setAttribute("stroke-width",g/h)}this.drawMapDataLabels()};b.prototype.getProjectedBounds=function(){if(!this.bounds){var a=Number.MAX_VALUE,b=this.chart.mapView&&this.chart.mapView.projection,c=[];(this.points||[]).forEach(function(d){if(d.path||d.geometry){"string"===
662
+ typeof d.path?d.path=v(d.path):f(d.path)&&"M"===d.path[0]&&(d.path=h.prototype.pathToSegments(d.path));if(!d.bounds){var e=E.getProjectedPath(d,b),g=d.properties,k=-a,n=a,m=-a,p=a,r;e.forEach(function(a){var b=a[a.length-2];a=a[a.length-1];"number"===typeof b&&"number"===typeof a&&(n=Math.min(n,b),k=Math.max(k,b),p=Math.min(p,a),m=Math.max(m,a),r=!0)});r&&(e=g&&g["hc-middle-x"],e=n+(k-n)*l(d.middleX,t(e)?e:.5),g=g&&g["hc-middle-y"],g=l(d.middleY,t(g)?g:.5),d.geometry||(g=1-g),d.bounds={midX:e,midY:m-
663
+ (m-p)*g,x1:n,y1:p,x2:k,y2:m},d.labelrank=l(d.labelrank,(k-n)*(m-p)))}d.bounds&&c.push(d.bounds)}});this.bounds=k.compositeBounds(c)}return this.bounds};b.prototype.hasData=function(){return!!this.processedXData.length};b.prototype.pointAttribs=function(a,b){var c=a.series.chart,d=c.mapView;b=c.styledMode?this.colorAttribs(a):u.prototype.pointAttribs.call(this,a,b);(a=a.options[this.pointAttrToOptions&&this.pointAttrToOptions["stroke-width"]||"borderWidth"])&&d&&(a/=d.getScale());b.dashstyle&&d&&this.options.borderWidth&&
664
+ (a=this.options.borderWidth/d.getScale());b["stroke-width"]=l(a,"inherit");return b};b.prototype.setData=function(a,b,c,e){var g=this.options,h=this.chart.options.chart,k=h&&h.map,l=g.mapData,m=this.joinBy,p=g.keys||this.pointArrayMap,u=[],q={},v=this.chart.mapTransforms;!l&&k&&(l="string"===typeof k?x[k]:k);a&&a.forEach(function(b,c){var d=0;if(t(b))a[c]={value:b};else if(f(b)){a[c]={};!g.keys&&b.length>p.length&&"string"===typeof b[0]&&(a[c]["hc-key"]=b[0],++d);for(var e=0;e<p.length;++e,++d)p[e]&&
665
+ "undefined"!==typeof b[d]&&(0<p[e].indexOf(".")?E.prototype.setNestedProperty(a[c],b[d],p[e]):a[c][p[e]]=b[d])}m&&"_i"===m[0]&&(a[c]._i=c)});(this.chart.mapTransforms=v=h.mapTransforms||l&&l["hc-transform"]||v)&&y(v,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});if(l){"FeatureCollection"===l.type&&(this.mapTitle=l.title,l=B.geojson(l,this.type,this));this.mapData=l;this.mapMap={};for(v=0;v<l.length;v++)h=l[v],k=h.properties,h._i=v,m[0]&&k&&k[m[0]]&&(h[m[0]]=
666
+ k[m[0]]),q[h[m[0]]]=h;this.mapMap=q;if(a&&m[1]){var w=m[1];a.forEach(function(a){a=n(w,a);q[a]&&u.push(q[a])})}if(g.allAreas){a=a||[];if(m[1]){var A=m[1];a.forEach(function(a){u.push(n(A,a))})}u="|"+u.map(function(a){return a&&a[m[0]]}).join("|")+"|";l.forEach(function(b){m[0]&&-1!==u.indexOf("|"+b[m[0]]+"|")||(a.push(d(b,{value:null})),e=!1)})}}r.prototype.setData.call(this,a,b,c,e);this.processData();this.generatePoints()};b.prototype.setOptions=function(a){a=r.prototype.setOptions.call(this,a);
667
+ var b=a.joinBy;null===b&&(b="_i");b=this.joinBy=H(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,this.getProjectedBounds());var d;if(b){var e=b.getScale(),f=b.projection.forward(b.center);b=b.projection.hasCoordinates?-1:1;this.svgTransform=d={scaleX:e,scaleY:e*b,translateX:this.chart.plotWidth/
668
+ 2-f[0]*e,translateY:this.chart.plotHeight/2-f[1]*e*b}}this.points.forEach(function(b){d&&b.bounds&&t(b.bounds.midX)&&t(b.bounds.midY)&&(b.plotX=b.bounds.midX*d.scaleX+d.translateX,b.plotY=b.bounds.midY*d.scaleY+d.translateY);a&&(b.shapeType="path",b.shapeArgs={d:E.getProjectedPath(b,c)})});A(this,"afterTranslate")};b.defaultOptions=d(p.defaultOptions,{animation:!1,dataLabels:{crop:!1,formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return t(b)?a(b,-1):""},inside:!0,
669
+ 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}(p);D(a.prototype,{type:"map",axisTypes:["colorAxis"],colorKey:"value",directTouch:!0,drawDataLabels:g,drawGraph:g,drawLegendSymbol:w.drawRectangle,
670
+ forceDL:!0,getCenter:z.getCenter,getExtremesFromAll:!0,getSymbol:g,isCartesian:!1,parallelArrays:b.parallelArrays,pointArrayMap:b.pointArrayMap,pointClass:E,preserveAspectRatio:!0,searchPoint:g,trackerGroups:b.trackerGroups,useMapGeometry:!0});q.compose(a,E);m.registerSeriesType("map",a);"";return a});F(b,"Series/MapLine/MapLineSeries.js",[b["Series/Map/MapSeries.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,q,z){var x=this&&this.__extends||function(){var b=function(k,
671
+ m){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(k,m)};return function(k,m){function h(){this.constructor=k}b(k,m);k.prototype=null===m?Object.create(m):(h.prototype=m.prototype,new h)}}(),w=q.series,D=z.extend,E=z.merge;z=function(k){function r(){var b=null!==k&&k.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}x(r,k);r.prototype.pointAttribs=function(k,
672
+ h){k=b.prototype.pointAttribs.call(this,k,h);k.fill=this.options.fillColor;return k};r.defaultOptions=E(b.defaultOptions,{lineWidth:1,fillColor:"none"});return r}(b);D(z.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:w.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}});q.registerSeriesType("mapline",z);"";return z});F(b,"Series/MapPoint/MapPointPoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,q){var x=this&&this.__extends||
673
+ function(){var b=function(q,k){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,k){b.__proto__=k}||function(b,k){for(var h in k)k.hasOwnProperty(h)&&(b[h]=k[h])};return b(q,k)};return function(q,k){function r(){this.constructor=q}b(q,k);q.prototype=null===k?Object.create(k):(r.prototype=k.prototype,new r)}}(),B=q.isNumber,w=q.merge;return function(b){function q(){var k=null!==b&&b.apply(this,arguments)||this;k.options=void 0;k.series=void 0;return k}x(q,b);q.prototype.applyOptions=
674
+ function(k,r){k="undefined"!==typeof k.lat&&"undefined"!==typeof k.lon?w(k,this.series.chart.fromLatLonToPoint(k)):k;return b.prototype.applyOptions.call(this,k,r)};q.prototype.isValid=function(){return!!(this.options.geometry||B(this.x)&&B(this.y))};return q}(b.seriesTypes.scatter.prototype.pointClass)});F(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,q,z,B){var x=this&&this.__extends||
675
+ function(){var b=function(a,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 e(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}();b=b.noop;var D=z.seriesTypes.scatter,E=B.extend,k=B.fireEvent,r=B.isNumber,m=B.merge;B=function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;
676
+ a.options=void 0;a.points=void 0;return a}x(a,b);a.prototype.drawDataLabels=function(){b.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};a.prototype.translate=function(){var a=this,b=this.chart.mapView;this.processedXData||this.processData();this.generatePoints();if(b){var g=b.projection,h=g.forward,m=g.hasCoordinates;this.points.forEach(function(c){var e=c.x;e=void 0===e?void 0:e;var g=c.y;g=void 0===g?void 0:g;var k=c.options.geometry;(k=
677
+ k&&"Point"===k.type&&k.coordinates)?(g=h(k),e=g[0],g=g[1]):c.bounds&&(e=c.bounds.midX,g=c.bounds.midY);r(e)&&r(g)?(e=b.projectedUnitsToPixels({x:e,y:g}),c.plotX=e.x,c.plotY=m?e.y:a.chart.plotHeight-e.y):(c.plotX=void 0,c.plotY=void 0);c.isInside=a.isPointInside(c);c.zone=a.zones.length?c.getZone():void 0})}k(this,"afterTranslate")};a.defaultOptions=m(D.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}}});return a}(D);
678
+ E(B.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:q,searchPoint:b});z.registerSeriesType("mappoint",B);"";return B});F(b,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:"#000000"},
679
+ 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}});F(b,"Series/Bubble/BubbleLegendItem.js",[b["Core/Color/Color.js"],b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,q,z,B){var x=b.parse,D=z.noop,E=B.arrayMax,k=B.arrayMin,r=B.isNumber,m=B.merge,h=B.pick,a=B.stableSort;"";return function(){function b(a,b){this.options=this.symbols=this.visible=
680
+ 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=D;this.init(a,b)}b.prototype.init=function(a,b){this.options=a;this.visible=!0;this.chart=b.chart;this.legend=b};b.prototype.addToLegend=function(a){a.splice(this.options.legendIndex,0,this)};b.prototype.drawLegendSymbol=function(b){var c=this.chart,e=this.options,k=h(b.options.itemDistance,
681
+ 20),m=e.ranges,p=e.connectorDistance;this.fontMetrics=c.renderer.fontMetrics(e.labels.style.fontSize);m&&m.length&&r(m[0].value)?(a(m,function(a,b){return b.value-a.value}),this.ranges=m,this.setOptions(),this.render(),b=this.getMaxLabelSize(),m=this.ranges[0].radius,c=2*m,p=p-m+b.width,p=0<p?p:0,this.maxLabel=b,this.movementX="left"===e.labels.align?p:0,this.legendItemWidth=c+p+k,this.legendItemHeight=c+this.fontMetrics.h/2):b.options.bubbleLegend.autoRanges=!0};b.prototype.setOptions=function(){var a=
682
+ this.ranges,b=this.options,c=this.chart.series[b.seriesIndex],k=this.legend.baseline,r={zIndex:b.zIndex,"stroke-width":b.borderWidth},p={zIndex:b.zIndex,"stroke-width":b.connectorWidth},q={align:this.legend.options.rtl||"left"===b.labels.align?"right":"left",zIndex:b.zIndex},n=c.options.marker.fillOpacity,f=this.chart.styledMode;a.forEach(function(e,d){f||(r.stroke=h(e.borderColor,b.borderColor,c.color),r.fill=h(e.color,b.color,1!==n?x(c.color).setOpacity(n).get("rgba"):c.color),p.stroke=h(e.connectorColor,
683
+ b.connectorColor,c.color));a[d].radius=this.getRangeRadius(e.value);a[d]=m(a[d],{center:a[0].radius-a[d].radius+k});f||m(!0,a[d],{bubbleAttribs:m(r),connectorAttribs:m(p),labelAttribs:q})},this)};b.prototype.getRangeRadius=function(a){var b=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,b.ranges[b.ranges.length-1].value,b.ranges[0].value,b.minSize,b.maxSize,a)};b.prototype.render=function(){var a=this.chart.renderer,b=this.options.zThreshold;this.symbols||(this.symbols=
684
+ {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);this.hideOverlappingLabels()};b.prototype.renderRange=function(a){var b=this.options,c=b.labels,e=this.chart,h=e.series[b.seriesIndex],k=e.renderer,m=this.symbols;e=m.labels;
685
+ var n=a.center,f=Math.abs(a.radius),t=b.connectorDistance||0,d=c.align,r=b.connectorWidth,l=this.ranges[0].radius||0,q=n-f-b.borderWidth/2+r/2,x=this.fontMetrics;x=x.f/2-(x.h-x.f)/2;var w=k.styledMode;t=this.legend.options.rtl||"left"===d?-t:t;"center"===d&&(t=0,b.connectorDistance=0,a.labelAttribs.align="center");d=q+b.labels.y;var z=l+t+b.labels.x;m.bubbleItems.push(k.circle(l,n+((q%1?1:.5)-(r%2?0:.5)),f).attr(w?{}:a.bubbleAttribs).addClass((w?"highcharts-color-"+h.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+
686
+ (b.className||"")).add(this.legendSymbol));m.connectors.push(k.path(k.crispLine([["M",l,q],["L",l+t,q]],b.connectorWidth)).attr(w?{}:a.connectorAttribs).addClass((w?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(b.connectorClassName||"")).add(this.legendSymbol));a=k.text(this.formatLabel(a),z,d+x).attr(w?{}:a.labelAttribs).css(w?{}:c.style).addClass("highcharts-bubble-legend-labels "+(b.labels.className||"")).add(this.legendSymbol);e.push(a);a.placed=
687
+ !0;a.alignAttr={x:z,y:d+x}};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 e=this.chart.numberFormatter;return b?q.format(b,a):c?c.call(a):e(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,
688
+ 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,q=Number.MAX_VALUE,u=-Number.MAX_VALUE;a.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&(c=a.zData.filter(r),c.length&&(q=h(a.options.zMin,Math.min(q,Math.max(k(c),!1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),u=h(a.options.zMax,Math.max(u,E(c)))))});var p=q===u?[{value:u}]:[{value:q},
689
+ {value:(q+u)/2},{value:u,autoRanges:!0}];b.length&&b[0].radius&&p.reverse();p.forEach(function(a,c){b&&b[c]&&(p[c]=m(b[c],a))});return p};b.prototype.predictBubbleSizes=function(){var a=this.chart,b=this.fontMetrics,c=a.legend.options,h=c.floating,k=(c="horizontal"===c.layout)?a.legend.lastLineHeight:0,m=a.plotSizeX,r=a.plotSizeY,n=a.series[this.options.seriesIndex],f=n.getPxExtremes();a=Math.ceil(f.minPxSize);f=Math.ceil(f.maxPxSize);var t=Math.min(r,m);n=n.options.maxSize;if(h||!/%$/.test(n))b=
690
+ f;else if(n=parseFloat(n),b=(t+k-b.h/2)*n/100/(n/100+1),c&&r-b>=m||!c&&m-b>=r)b=f;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,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}()});F(b,"Series/Bubble/BubbleLegendComposition.js",
691
+ [b["Series/Bubble/BubbleLegendDefaults.js"],b["Series/Bubble/BubbleLegendItem.js"],b["Core/DefaultOptions.js"],b["Core/Utilities.js"]],function(b,q,z,B){var x=z.setOptions,D=B.addEvent,E=B.objectEach,k=B.wrap,r;(function(m){function h(b,e,g){var h=this.legend,f=0<=a(this);if(h&&h.options.enabled&&h.bubbleLegend&&h.options.bubbleLegend.autoRanges&&f){var k=h.bubbleLegend.options;f=h.bubbleLegend.predictBubbleSizes();h.bubbleLegend.updateRanges(f[0],f[1]);k.placed||(h.group.placed=!1,h.allItems.forEach(function(a){a.legendGroup.translateY=
692
+ null}));h.render();this.getMargins();this.axes.forEach(function(a){a.visible&&a.render();k.placed||(a.setScale(),a.updateNames(),E(a.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});k.placed=!0;this.getMargins();b.call(this,e,g);h.bubbleLegend.correctSizes();r(h,c(h))}else b.call(this,e,g),h&&h.options.enabled&&h.bubbleLegend&&(h.render(),r(h,c(h)))}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;
693
+ var b=[],c=a.length,e,f=0;for(e=0;e<c;e++)if(a[e].legendItemHeight&&(a[e].itemHeight=a[e].legendItemHeight),a[e]===a[c-1]||a[e+1]&&a[e]._legendItemPos[1]!==a[e+1]._legendItemPos[1]){b.push({height:0});var g=b[b.length-1];for(f;f<=e;f++)a[f].itemHeight>g.height&&(g.height=a[f].itemHeight);g.step=e}return b}function e(b){var c=this.bubbleLegend,e=this.options,g=e.bubbleLegend,f=a(this.chart);c&&c.ranges&&c.ranges.length&&(g.ranges.length&&(g.autoRanges=!!g.ranges[0].autoRanges),this.destroyItem(c));
694
+ 0<=f&&e.enabled&&g.enabled&&(g.seriesIndex=f,this.bubbleLegend=new q(g,this),this.bubbleLegend.addToLegend(b.allItems))}function g(){var b=this.chart,c=this.visible,e=this.chart.legend;e&&e.bubbleLegend&&(this.visible=!c,this.ignoreSeries=c,b=0<=a(b),e.bubbleLegend.visible!==b&&(e.update({bubbleLegend:{enabled:b}}),e.bubbleLegend.visible=b),this.visible=c)}function r(a,b){var c=a.options.rtl,e,f,g,d=0;a.allItems.forEach(function(a,h){e=a.legendGroup.translateX;f=a._legendItemPos[1];if((g=a.movementX)||
695
+ c&&a.ranges)g=c?e-a.options.maxSize/2:e+g,a.legendGroup.attr({translateX:g});h>b[d].step&&d++;a.legendGroup.attr({translateY:Math.round(f+b[d].height/2)});a._legendItemPos[1]=f+b[d].height/2})}var v=[];m.compose=function(a,c,m){-1===v.indexOf(a)&&(v.push(a),x({legend:{bubbleLegend:b}}),k(a.prototype,"drawChartBox",h));-1===v.indexOf(c)&&(v.push(c),D(c,"afterGetAllItems",e));-1===v.indexOf(m)&&(v.push(m),D(m,"legendItemClick",g))}})(r||(r={}));return r});F(b,"Series/Bubble/BubblePoint.js",[b["Core/Series/Point.js"],
696
+ b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,q,z){var x=this&&this.__extends||function(){var b=function(q,x){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,r){b.__proto__=r}||function(b,r){for(var k in r)r.hasOwnProperty(k)&&(b[k]=r[k])};return b(q,x)};return function(q,x){function k(){this.constructor=q}b(q,x);q.prototype=null===x?Object.create(x):(k.prototype=x.prototype,new k)}}();z=z.extend;q=function(q){function w(){var b=null!==q&&q.apply(this,arguments)||
697
+ this;b.options=void 0;b.series=void 0;return b}x(w,q);w.prototype.haloPath=function(q){return b.prototype.haloPath.call(this,0===q?0:(this.marker?this.marker.radius||0:0)+q)};return w}(q.seriesTypes.scatter.prototype.pointClass);z(q.prototype,{ttBelow:!1});return q});F(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"],
698
+ b["Core/Utilities.js"]],function(b,q,z,B,w,D,E,k){var r=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 e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),m=B.parse;B=w.noop;var h=E.seriesTypes;w=h.column;var a=h.scatter;h=k.addEvent;var c=k.arrayMax,
699
+ e=k.arrayMin,g=k.clamp,x=k.extend,v=k.isNumber,u=k.merge,p=k.pick;k=function(b){function h(){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=void 0;a.zData=void 0;return a}r(h,b);h.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),
700
+ this.options.animation))},this)};h.prototype.getRadii=function(){var a=this,b=this.zData,c=this.yData,e=[],g=this.chart.bubbleZExtremes;var h=this.getPxExtremes();var k=h.minPxSize,m=h.maxPxSize;if(!g){var n=Number.MAX_VALUE,p=-Number.MAX_VALUE,r;this.chart.series.forEach(function(b){b.bubblePadding&&(b.visible||!a.chart.options.chart.ignoreHiddenSeries)&&(b=b.getZExtremes())&&(n=Math.min(n||b.zMin,b.zMin),p=Math.max(p||b.zMax,b.zMax),r=!0)});r?(g={zMin:n,zMax:p},this.chart.bubbleZExtremes=g):g={zMin:0,
701
+ zMax:0}}var q=0;for(h=b.length;q<h;q++){var u=b[q];e.push(this.getRadius(g.zMin,g.zMax,k,m,u,c[q]))}this.radii=e};h.prototype.getRadius=function(a,b,c,e,g,h){var d=this.options,f="width"!==d.sizeBy,k=d.zThreshold,l=b-a,m=.5;if(null===h||null===g)return null;if(v(g)){d.sizeByAbsoluteValue&&(g=Math.abs(g-k),l=Math.max(b-k,Math.abs(a-k)),a=0);if(g<a)return c/2-1;0<l&&(m=(g-a)/l)}f&&0<=m&&(m=Math.sqrt(m));return Math.ceil(c+m*(e-c))/2};h.prototype.hasData=function(){return!!this.processedXData.length};
702
+ h.prototype.pointAttribs=function(a,b){var c=this.options.marker.fillOpacity;a=D.prototype.pointAttribs.call(this,a,b);1!==c&&(a.fill=m(a.fill).setOpacity(c).get("rgba"));return a};h.prototype.translate=function(){b.prototype.translate.call(this);this.getRadii();this.translateBubble()};h.prototype.translateBubble=function(){for(var a=this.data,b=this.radii,c=this.getPxExtremes().minPxSize,e=a.length;e--;){var g=a[e],h=b?b[e]:0;v(h)&&h>=c/2?(g.marker=x(g.marker,{radius:h,width:2*h,height:2*h}),g.dlBox=
703
+ {x:g.plotX-h,y:g.plotY-h,width:2*h,height:2*h}):g.shapeArgs=g.plotY=g.dlBox=void 0}};h.prototype.getPxExtremes=function(){var a=Math.min(this.chart.plotWidth,this.chart.plotHeight),b=function(b){if("string"===typeof b){var c=/%$/.test(b);b=parseInt(b,10)}return c?a*b/100:b},c=b(p(this.options.minSize,8));b=Math.max(b(p(this.options.maxSize,"20%")),c);return{minPxSize:c,maxPxSize:b}};h.prototype.getZExtremes=function(){var a=this.options,b=(this.zData||[]).filter(v);if(b.length){var d=p(a.zMin,g(e(b),
704
+ !1===a.displayNegative?a.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));a=p(a.zMax,c(b));if(v(d)&&v(a))return{zMin:d,zMax:a}}};h.compose=q.compose;h.defaultOptions=u(a.defaultOptions,{dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.z;return v(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,
705
+ states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"});return h}(a);x(k.prototype,{alignDataLabel:w.prototype.alignDataLabel,applyZones:B,bubblePadding:!0,buildKDTree:B,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:z,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});h(k,"updatedData",function(a){delete a.target.chart.bubbleZExtremes});b.prototype.beforePadding=
706
+ function(){var a=this,b=this.len,c=this.chart,e=0,d=b,g=this.isXAxis,h=g?"xData":"yData",k=this.min,m=this.max-k,r=b/m,q;this.series.forEach(function(b){if(b.bubblePadding&&(b.visible||!c.options.chart.ignoreHiddenSeries)){q=a.allowZoomOutside=!0;var f=b[h];g&&b.getRadii(0,0,b);if(0<m)for(var l=f.length;l--;)if(v(f[l])&&a.dataMin<=f[l]&&f[l]<=a.max){var n=b.radii&&b.radii[l]||0;e=Math.min((f[l]-k)*r-n,e);d=Math.max((f[l]-k)*r+n,d)}}});q&&0<m&&!this.logarithmic&&(d-=b,r*=(b+Math.max(0,e)-Math.min(d,
707
+ b))/b,[["min","userMin",e],["max","userMax",d]].forEach(function(b){"undefined"===typeof p(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/r)}))};E.registerSeriesType("bubble",k);"";"";return k});F(b,"Series/MapBubble/MapBubblePoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,q){var x=this&&this.__extends||function(){var b=function(q,k){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,k){b.__proto__=k}||function(b,k){for(var h in k)k.hasOwnProperty(h)&&(b[h]=
708
+ k[h])};return b(q,k)};return function(q,k){function r(){this.constructor=q}b(q,k);q.prototype=null===k?Object.create(k):(r.prototype=k.prototype,new r)}}();b=b.seriesTypes;var B=b.map,w=q.merge;return function(b){function q(){return null!==b&&b.apply(this,arguments)||this}x(q,b);q.prototype.applyOptions=function(k,r){return k&&"undefined"!==typeof k.lat&&"undefined"!==typeof k.lon?b.prototype.applyOptions.call(this,w(k,this.series.chart.fromLatLonToPoint(k)),r):B.prototype.pointClass.prototype.applyOptions.call(this,
709
+ k,r)};q.prototype.isValid=function(){return"number"===typeof this.z};return q}(b.bubble.prototype.pointClass)});F(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"],b["Core/Utilities.js"]],function(b,q,z,B,w){var x=this&&this.__extends||function(){var b=function(h,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&
710
+ (a[c]=b[c])};return b(h,a)};return function(h,a){function c(){this.constructor=h}b(h,a);h.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}}(),E=B.seriesTypes.mappoint,k=w.extend,r=w.merge;w=function(k){function h(){var a=null!==k&&k.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}x(h,k);h.prototype.translate=function(){E.prototype.translate.call(this);this.getRadii();this.translateBubble()};h.compose=b.compose;h.defaultOptions=r(b.defaultOptions,
711
+ {animationLimit:500,tooltip:{pointFormat:"{point.name}: {point.z}"}});return h}(b);k(w.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:z.prototype.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:q,setData:z.prototype.setData,setOptions:z.prototype.setOptions,useMapGeometry:!0,xyFromShape:!0});B.registerSeriesType("mapbubble",w);"";return w});F(b,"Series/Heatmap/HeatmapPoint.js",[b["Core/Series/SeriesRegistry.js"],b["Core/Utilities.js"]],function(b,q){var x=
712
+ this&&this.__extends||function(){var b=function(k,r){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,h){b.__proto__=h}||function(b,h){for(var a in h)h.hasOwnProperty(a)&&(b[a]=h[a])};return b(k,r)};return function(k,r){function m(){this.constructor=k}b(k,r);k.prototype=null===r?Object.create(r):(m.prototype=r.prototype,new m)}}(),B=q.clamp,w=q.extend,D=q.pick;b=function(b){function k(){var k=null!==b&&b.apply(this,arguments)||this;k.options=void 0;k.series=void 0;k.value=void 0;
713
+ k.x=void 0;k.y=void 0;return k}x(k,b);k.prototype.applyOptions=function(k,m){k=b.prototype.applyOptions.call(this,k,m);k.formatPrefix=k.isNull||null===k.value?"null":"point";return k};k.prototype.getCellAttributes=function(){var b=this.series,k=b.options,h=(k.colsize||1)/2,a=(k.rowsize||1)/2,c=b.xAxis,e=b.yAxis,g=this.options.marker||b.options.marker;b=b.pointPlacementToXValue();var q=D(this.pointPadding,k.pointPadding,0),v={x1:B(Math.round(c.len-(c.translate(this.x-h,!1,!0,!1,!0,-b)||0)),-c.len,
714
+ 2*c.len),x2:B(Math.round(c.len-(c.translate(this.x+h,!1,!0,!1,!0,-b)||0)),-c.len,2*c.len),y1:B(Math.round(e.translate(this.y-a,!1,!0,!1,!0)||0),-e.len,2*e.len),y2:B(Math.round(e.translate(this.y+a,!1,!0,!1,!0)||0),-e.len,2*e.len)};[["width","x"],["height","y"]].forEach(function(a){var b=a[0];a=a[1];var c=a+"1",e=a+"2",f=Math.abs(v[c]-v[e]),h=g&&g.lineWidth||0,d=Math.abs(v[c]+v[e])/2;g[b]&&g[b]<f&&(v[c]=d-g[b]/2-h/2,v[e]=d+g[b]/2+h/2);q&&("y"===a&&(c=e,e=a+"1"),v[c]+=q,v[e]-=q)});return v};k.prototype.haloPath=
715
+ function(b){if(!b)return[];var k=this.shapeArgs;return["M",k.x-b,k.y-b,"L",k.x-b,k.y+k.height+b,k.x+k.width+b,k.y+k.height+b,k.x+k.width+b,k.y-b,"Z"]};k.prototype.isValid=function(){return Infinity!==this.value&&-Infinity!==this.value};return k}(b.seriesTypes.scatter.prototype.pointClass);w(b.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1});return b});F(b,"Series/Heatmap/HeatmapSeries.js",[b["Core/Color/Color.js"],b["Series/ColorMapComposition.js"],b["Series/Heatmap/HeatmapPoint.js"],
716
+ b["Core/Legend/LegendSymbol.js"],b["Core/Series/SeriesRegistry.js"],b["Core/Renderer/SVG/SVGRenderer.js"],b["Core/Utilities.js"]],function(b,q,z,B,w,D,E){var k=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 e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,
717
+ new e)}}(),r=q.colorMapSeriesMixin,m=w.series,h=w.seriesTypes,a=h.column,c=h.scatter,e=D.prototype.symbols,g=E.extend,x=E.fireEvent,v=E.isNumber,u=E.merge,p=E.pick;D=function(a){function h(){var b=null!==a&&a.apply(this,arguments)||this;b.colorAxis=void 0;b.data=void 0;b.options=void 0;b.points=void 0;b.valueMax=NaN;b.valueMin=NaN;return b}k(h,a);h.prototype.drawPoints=function(){var a=this;if((this.options.marker||{}).enabled||this._hasPointMarkers)m.prototype.drawPoints.call(this),this.points.forEach(function(b){b.graphic&&
718
+ (b.graphic[a.chart.styledMode?"css":"animate"](a.colorAttribs(b)),a.options.borderRadius&&b.graphic.attr({r:a.options.borderRadius}),(b.shapeArgs||{}).r=a.options.borderRadius,(b.shapeArgs||{}).d=b.graphic.pathArray,null===b.value&&b.graphic.addClass("highcharts-null-point"))})};h.prototype.getExtremes=function(){var a=m.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;v(b)&&(this.valueMin=b);v(a)&&(this.valueMax=a);return m.prototype.getExtremes.call(this)};h.prototype.getValidPoints=
719
+ function(a,b){return m.prototype.getValidPoints.call(this,a,b,!0)};h.prototype.hasData=function(){return!!this.processedXData.length};h.prototype.init=function(){m.prototype.init.apply(this,arguments);var a=this.options;a.pointRange=p(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1;e.ellipse=e.circle};h.prototype.markerAttribs=function(a,b){var c=a.marker||{},e=this.options.marker||{},f=a.shapeArgs||{},g={};if(a.hasImage)return{x:a.plotX,y:a.plotY};if(b){var h=e.states[b]||{};var k=
720
+ c.states&&c.states[b]||{};[["width","x"],["height","y"]].forEach(function(a){g[a[0]]=(k[a[0]]||h[a[0]]||f[a[0]])+(k[a[0]+"Plus"]||h[a[0]+"Plus"]||0);g[a[1]]=f[a[1]]+(f[a[0]]-g[a[0]])/2})}return b?g:f};h.prototype.pointAttribs=function(a,c){var d=m.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||
721
+ g.borderWidth||d["stroke-width"];d.stroke=a&&a.marker&&a.marker.lineColor||e.marker&&e.marker.lineColor||f||this.color;d["stroke-width"]=g;c&&(a=u(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};h.prototype.setClip=function(a){var b=this.chart;m.prototype.setClip.apply(this,arguments);(!1!==this.options.clip||a)&&this.markerGroup.clip((a||this.clipBox)&&this.sharedClipKey?
722
+ b.sharedClips[this.sharedClipKey]:b.clipRect)};h.prototype.translate=function(){var a=this.options,b=a.marker&&a.marker.symbol||"rect",c=e[b]?b:"rect",h=-1!==["circle","square"].indexOf(c);this.generatePoints();this.points.forEach(function(a){var d=a.getCellAttributes(),f={};f.x=Math.min(d.x1,d.x2);f.y=Math.min(d.y1,d.y2);f.width=Math.max(Math.abs(d.x2-d.x1),0);f.height=Math.max(Math.abs(d.y2-d.y1),0);var k=a.hasImage=0===(a.marker&&a.marker.symbol||b||"").indexOf("url");if(h){var l=Math.abs(f.width-
723
+ f.height);f.x=Math.min(d.x1,d.x2)+(f.width<f.height?0:l/2);f.y=Math.min(d.y1,d.y2)+(f.width<f.height?l/2:0);f.width=f.height=Math.min(f.width,f.height)}l={plotX:(d.x1+d.x2)/2,plotY:(d.y1+d.y2)/2,clientX:(d.x1+d.x2)/2,shapeType:"path",shapeArgs:u(!0,f,{d:e[c](f.x,f.y,f.width,f.height)})};k&&(a.marker={width:f.width,height:f.height});g(a,l)});x(this,"afterTranslate")};h.defaultOptions=u(c.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){var a=
724
+ this.series.chart.numberFormatter,b=this.point.value;return v(b)?a(b,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:{symbol:"rect",radius:0,lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}}});return h}(c);g(D.prototype,{alignDataLabel:a.prototype.alignDataLabel,axisTypes:r.axisTypes,colorKey:"value",directTouch:!0,drawLegendSymbol:B.drawRectangle,
725
+ getExtremesFromAll:!0,getSymbol:m.prototype.getSymbol,parallelArrays:r.parallelArrays,pointArrayMap:["y","value"],pointClass:z,trackerGroups:r.trackerGroups});q.compose(D);w.registerSeriesType("heatmap",D);"";"";return D});F(b,"Extensions/GeoJSON.js",[b["Core/Chart/Chart.js"],b["Core/FormatUtilities.js"],b["Core/Globals.js"],b["Core/Utilities.js"]],function(b,q,z,B){function x(b,a){var c,e=!1,g=b.x,h=b.y;b=0;for(c=a.length-1;b<a.length;c=b++){var k=a[b][1]>h;var m=a[c][1]>h;k!==m&&g<(a[c][0]-a[b][0])*
726
+ (h-a[b][1])/(a[c][1]-a[b][1])+a[b][0]&&(e=!e)}return e}var D=q.format,E=z.win,k=B.error,r=B.extend,m=B.merge;q=B.wrap;"";b.prototype.transformFromLatLon=function(b,a){var c=this.options.chart.proj4||E.proj4;if(!c)return k(21,!1,this),{x:0,y:null};var e=a.jsonmarginX;e=void 0===e?0:e;var g=a.jsonmarginY;g=void 0===g?0:g;var h=a.jsonres;h=void 0===h?1:h;var m=a.scale;m=void 0===m?1:m;var q=a.xoffset;q=void 0===q?0:q;var p=a.xpan;p=void 0===p?0:p;var r=a.yoffset;r=void 0===r?0:r;var n=a.ypan;n=void 0===
727
+ n?0:n;b=c(a.crs,[b.lon,b.lat]);c=a.cosAngle||a.rotation&&Math.cos(a.rotation);var f=a.sinAngle||a.rotation&&Math.sin(a.rotation);a=a.rotation?[b[0]*c+b[1]*f,-b[0]*f+b[1]*c]:b;return{x:((a[0]-q)*m+p)*h+e,y:-(((r-a[1])*m+n)*h-g)}};b.prototype.transformToLatLon=function(b,a){if(!this.options.chart.proj4&&!E.proj4)k(21,!1,this);else if(null!==b.y){var c=a.jsonmarginX,e=a.jsonmarginY,g=a.jsonres;g=void 0===g?1:g;var h=a.scale;h=void 0===h?1:h;var m=a.xoffset,q=a.xpan,p=a.yoffset,r=a.ypan;b={x:((b.x-(void 0===
728
+ c?0:c))/g-(void 0===q?0:q))/h+(void 0===m?0:m),y:((b.y-(void 0===e?0:e))/g+(void 0===r?0:r))/h+(void 0===p?0:p)};c=a.cosAngle||a.rotation&&Math.cos(a.rotation);e=a.sinAngle||a.rotation&&Math.sin(a.rotation);a=E.proj4(a.crs,"WGS84",a.rotation?{x:b.x*c+b.y*-e,y:b.x*e+b.y*c}:b);return{lat:a.y,lon:a.x}}};b.prototype.fromPointToLatLon=function(b){var a=this.mapTransforms;if(a){for(var c in a)if(Object.hasOwnProperty.call(a,c)&&a[c].hitZone&&x(b,a[c].hitZone.coordinates[0]))return this.transformToLatLon(b,
729
+ a[c]);return this.transformToLatLon(b,a["default"])}k(22,!1,this)};b.prototype.fromLatLonToPoint=function(b){var a=this.mapTransforms,c;if(!a)return k(22,!1,this),{x:0,y:null};for(c in a)if(Object.hasOwnProperty.call(a,c)&&a[c].hitZone){var e=this.transformFromLatLon(b,a[c]);if(x(e,a[c].hitZone.coordinates[0]))return e}return this.transformFromLatLon(b,a["default"])};z.geojson=function(b,a,c){void 0===a&&(a="map");var e=[];b.features.forEach(function(b){var c=b.geometry||{},g=c.type;c=c.coordinates;
730
+ b=b.properties;var h;"map"!==a&&"mapbubble"!==a||"Polygon"!==g&&"MultiPolygon"!==g?"mapline"!==a||"LineString"!==g&&"MultiLineString"!==g?"mappoint"===a&&"Point"===g&&c.length&&(h={geometry:{coordinates:c,type:g}}):c.length&&(h={geometry:{coordinates:c,type:g}}):c.length&&(h={geometry:{coordinates:c,type:g}});h&&e.push(r(h,{name:b.name||b.NAME,properties:b}))});c&&b.copyrightShort&&(c.chart.mapCredits=D(c.chart.options.credits.mapText,{geojson:b}),c.chart.mapCreditsFull=D(c.chart.options.credits.mapTextFull,
731
+ {geojson:b}));return e};q(b.prototype,"addCredits",function(b,a){a=m(!0,this.options.credits,a);this.mapCredits&&(a.href=null);b.call(this,a);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})});F(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"]],function(b,q,z,B){b.ColorAxis=q;b.MapChart=B;b.mapChart=b.Map=B.mapChart;b.maps=B.maps;q.compose(b.Chart,b.Fx,b.Legend,
732
+ b.Series);z.compose(b.Chart,b.Legend,b.Series)});F(b,"masters/highmaps.src.js",[b["masters/highcharts.src.js"]],function(b){b.product="Highmaps";return b});b["masters/highmaps.src.js"]._modules=b;return b["masters/highmaps.src.js"]});
715
733
  //# sourceMappingURL=highmaps.js.map