highcharts 13.0.2 → 13.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1166) hide show
  1. package/bower.json +1 -1
  2. package/css/highcharts.css +6 -2
  3. package/es-modules/Accessibility/Components/InfoRegionsComponent.js +10 -6
  4. package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +2 -1
  5. package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +25 -1
  6. package/es-modules/Accessibility/KeyboardNavigation.js +1 -1
  7. package/es-modules/Accessibility/Utils/HTMLUtilities.js +13 -3
  8. package/es-modules/Core/Animation/AnimationUtilities.js +7 -2
  9. package/es-modules/Core/Animation/Fx.js +1 -0
  10. package/es-modules/Core/Axis/Axis.js +181 -211
  11. package/es-modules/Core/Axis/Axis3DComposition.js +13 -15
  12. package/es-modules/Core/Axis/AxisDefaults.js +9 -8
  13. package/es-modules/Core/Axis/BrokenAxis.js +5 -4
  14. package/es-modules/Core/Axis/Color/ColorAxis.js +66 -54
  15. package/es-modules/Core/Axis/Color/ColorAxisComposition.js +3 -0
  16. package/es-modules/Core/Axis/Color/ColorAxisDefaults.js +6 -4
  17. package/es-modules/Core/Axis/DateTimeAxis.js +4 -3
  18. package/es-modules/Core/Axis/GridAxis.js +17 -13
  19. package/es-modules/Core/Axis/LogarithmicAxis.js +4 -3
  20. package/es-modules/Core/Axis/NavigatorAxisComposition.js +3 -4
  21. package/es-modules/Core/Axis/OrdinalAxis.js +0 -15
  22. package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +135 -72
  23. package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js +72 -124
  24. package/es-modules/Core/Axis/RadialAxis.js +50 -7
  25. package/es-modules/Core/Axis/ScrollbarAxis.js +3 -0
  26. package/es-modules/Core/Axis/Stacking/StackItem.js +49 -75
  27. package/es-modules/Core/Axis/Stacking/StackingAxis.js +34 -22
  28. package/es-modules/Core/Axis/Tick.js +95 -92
  29. package/es-modules/Core/Axis/TreeGrid/TreeGridAxis.js +9 -13
  30. package/es-modules/Core/Axis/WaterfallAxis.js +1 -1
  31. package/es-modules/Core/Chart/Chart.js +13 -4
  32. package/es-modules/Core/Chart/StockChart.js +20 -26
  33. package/es-modules/Core/Defaults.js +18 -0
  34. package/es-modules/Core/Globals.js +9 -7
  35. package/es-modules/Core/Pointer.js +7 -8
  36. package/es-modules/Core/Renderer/HTML/AST.js +19 -12
  37. package/es-modules/Core/Renderer/HTML/HTMLElement.js +5 -1
  38. package/es-modules/Core/Renderer/SVG/SVGElement.js +1 -0
  39. package/es-modules/Core/Renderer/SVG/SVGRenderer.js +1 -1
  40. package/es-modules/Core/Renderer/SVG/Symbols.js +1 -1
  41. package/es-modules/Core/Renderer/SVG/TextBuilder.js +6 -2
  42. package/es-modules/Core/Series/OverlappingDataLabels.js +41 -32
  43. package/es-modules/Core/Series/Point.js +14 -11
  44. package/es-modules/Core/Series/Series.js +21 -10
  45. package/es-modules/Core/Tooltip.js +35 -40
  46. package/es-modules/Data/DataCursor.js +3 -2
  47. package/es-modules/Data/DataTable.js +21 -2
  48. package/es-modules/Data/DataTableCore.js +28 -4
  49. package/es-modules/Data/Formula/FormulaParser.js +30 -10
  50. package/es-modules/Extensions/Annotations/Annotation.js +5 -7
  51. package/es-modules/Extensions/Annotations/AnnotationChart.js +2 -1
  52. package/es-modules/Extensions/Boost/BoostSeries.js +4 -13
  53. package/es-modules/Extensions/Breadcrumbs/Breadcrumbs.js +6 -4
  54. package/es-modules/Extensions/Breadcrumbs/BreadcrumbsDefaults.js +1 -1
  55. package/es-modules/Extensions/Data.js +4 -2
  56. package/es-modules/Extensions/DragPanes/DragPanes.js +6 -9
  57. package/es-modules/Extensions/Drilldown/Drilldown.js +9 -4
  58. package/es-modules/Extensions/ExportData/ExportData.js +24 -4
  59. package/es-modules/Extensions/Pane/Pane.js +1 -1
  60. package/es-modules/Extensions/ParallelCoordinates/ParallelAxis.js +5 -4
  61. package/es-modules/Extensions/StaticScale.js +13 -11
  62. package/es-modules/Series/Area/AreaSeriesDefaults.js +1 -1
  63. package/es-modules/Series/AreaRange/AreaRangeSeriesDefaults.js +1 -1
  64. package/es-modules/Series/AreaSpline/AreaSplineSeries.js +1 -1
  65. package/es-modules/Series/AreaSplineRange/AreaSplineRangeSeries.js +1 -1
  66. package/es-modules/Series/Bar/BarSeries.js +1 -1
  67. package/es-modules/Series/Bellcurve/BellcurveSeriesDefaults.js +1 -1
  68. package/es-modules/Series/BoxPlot/BoxPlotSeriesDefaults.js +1 -1
  69. package/es-modules/Series/Bubble/BubbleSeries.js +1 -1
  70. package/es-modules/Series/Bullet/BulletSeriesDefaults.js +1 -1
  71. package/es-modules/Series/Candlestick/CandlestickSeriesDefaults.js +1 -1
  72. package/es-modules/Series/Column/ColumnSeriesDefaults.js +6 -3
  73. package/es-modules/Series/ColumnPyramid/ColumnPyramidSeriesDefaults.js +2 -3
  74. package/es-modules/Series/ColumnRange/ColumnRangeSeriesDefaults.js +1 -1
  75. package/es-modules/Series/Contour/ContourSeriesDefaults.js +12 -14
  76. package/es-modules/Series/ErrorBar/ErrorBarSeriesDefaults.js +1 -1
  77. package/es-modules/Series/Flags/FlagsPoint.js +4 -2
  78. package/es-modules/Series/Flags/FlagsPointOptions.js +12 -0
  79. package/es-modules/Series/Flags/FlagsSeries.js +8 -7
  80. package/es-modules/Series/Flags/FlagsSeriesDefaults.js +7 -7
  81. package/es-modules/Series/Flags/FlagsSeriesOptions.js +12 -0
  82. package/es-modules/Series/Flags/FlagsSymbols.js +5 -3
  83. package/es-modules/Series/Funnel/FunnelSeriesDefaults.js +1 -1
  84. package/es-modules/Series/Gauge/GaugeSeries.js +1 -1
  85. package/es-modules/Series/GeoHeatmap/GeoHeatmapSeries.js +1 -1
  86. package/es-modules/Series/HLC/HLCSeriesDefaults.js +1 -7
  87. package/es-modules/Series/Heatmap/HeatmapSeriesDefaults.js +1 -1
  88. package/es-modules/Series/HeikinAshi/HeikinAshiSeriesDefaults.js +1 -1
  89. package/es-modules/Series/Histogram/HistogramSeriesDefaults.js +1 -1
  90. package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +1 -1
  91. package/es-modules/Series/Item/ItemSeriesDefaults.js +1 -1
  92. package/es-modules/Series/Line/LineSeries.js +0 -1
  93. package/es-modules/Series/Map/MapSeriesDefaults.js +1 -1
  94. package/es-modules/Series/MapBubble/MapBubbleSeries.js +0 -1
  95. package/es-modules/Series/MapLine/MapLineSeriesDefaults.js +1 -1
  96. package/es-modules/Series/MapPoint/MapPointSeriesDefaults.js +0 -1
  97. package/es-modules/Series/Networkgraph/ReingoldFruchtermanLayout.js +5 -5
  98. package/es-modules/Series/OHLC/OHLCSeriesDefaults.js +0 -1
  99. package/es-modules/Series/PackedBubble/PackedBubbleChart.js +18 -0
  100. package/es-modules/Series/PackedBubble/PackedBubbleDataLabelOptions.js +12 -0
  101. package/es-modules/Series/PackedBubble/PackedBubbleIntegration.js +3 -3
  102. package/es-modules/Series/PackedBubble/PackedBubbleLayout.js +2 -2
  103. package/es-modules/Series/PackedBubble/PackedBubblePoint.js +1 -1
  104. package/es-modules/Series/PackedBubble/PackedBubblePointOptions.js +12 -0
  105. package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +20 -20
  106. package/es-modules/Series/PackedBubble/PackedBubbleSeriesDefaults.js +2 -2
  107. package/es-modules/Series/PackedBubble/PackedBubbleSeriesOptions.js +12 -0
  108. package/es-modules/Series/ParetoSeries/ParetoPoint.js +17 -0
  109. package/es-modules/Series/ParetoSeries/ParetoPointOptions.js +12 -0
  110. package/es-modules/Series/ParetoSeries/ParetoSeries.js +3 -3
  111. package/es-modules/Series/ParetoSeries/ParetoSeriesDefaults.js +1 -1
  112. package/es-modules/Series/ParetoSeries/ParetoSeriesOptions.js +12 -0
  113. package/es-modules/Series/PathUtilities.js +3 -1
  114. package/es-modules/Series/Pictorial/PictorialPointOptions.js +12 -0
  115. package/es-modules/Series/Pictorial/PictorialSeries.js +5 -25
  116. package/es-modules/Series/Pictorial/PictorialSeriesDefaults.js +45 -0
  117. package/es-modules/Series/Pictorial/PictorialSeriesOptions.js +12 -0
  118. package/es-modules/Series/Pie/PieSeriesDefaults.js +1 -1
  119. package/es-modules/Series/Pie3D/Pie3DPoint.js +1 -1
  120. package/es-modules/Series/Pie3D/Pie3DSeries.js +6 -6
  121. package/es-modules/Series/PolarComposition.js +22 -21
  122. package/es-modules/Series/Polygon/PolygonPoint.js +17 -0
  123. package/es-modules/Series/Polygon/PolygonPointOptions.js +12 -0
  124. package/es-modules/Series/Polygon/PolygonSeriesDefaults.js +1 -1
  125. package/es-modules/Series/Polygon/PolygonSeriesOptions.js +12 -0
  126. package/es-modules/Series/Pyramid/PyramidPoint.js +19 -0
  127. package/es-modules/Series/Pyramid/PyramidPointOptions.js +14 -0
  128. package/es-modules/Series/Pyramid/PyramidSeries.js +1 -1
  129. package/es-modules/Series/Pyramid/PyramidSeriesDefaults.js +1 -1
  130. package/es-modules/Series/Pyramid/PyramidSeriesOptions.js +14 -0
  131. package/es-modules/Series/Pyramid3D/Pyramid3DPoint.js +19 -0
  132. package/es-modules/Series/Pyramid3D/Pyramid3DPointOptions.js +14 -0
  133. package/es-modules/Series/Pyramid3D/Pyramid3DSeries.js +1 -1
  134. package/es-modules/Series/Pyramid3D/Pyramid3DSeriesOptions.js +14 -0
  135. package/es-modules/Series/Renko/RenkoSeriesDefaults.js +1 -2
  136. package/es-modules/Series/Sankey/SankeySeriesDefaults.js +6 -7
  137. package/es-modules/Series/Scatter/ScatterSeriesDefaults.js +1 -1
  138. package/es-modules/Series/SolidGauge/SolidGaugeSeriesDefaults.js +1 -1
  139. package/es-modules/Series/Spline/SplineSeries.js +1 -1
  140. package/es-modules/Series/Streamgraph/StreamgraphSeriesDefaults.js +1 -1
  141. package/es-modules/Series/Sunburst/SunburstSeriesDefaults.js +1 -1
  142. package/es-modules/Series/TiledWebMap/TiledWebMapSeriesDefaults.js +2 -2
  143. package/es-modules/Series/Tilemap/TilemapSeriesDefaults.js +1 -1
  144. package/es-modules/Series/Timeline/TimelineSeriesDefaults.js +1 -1
  145. package/es-modules/Series/Treemap/TreemapSeriesDefaults.js +1 -1
  146. package/es-modules/Series/VariablePie/VariablePieSeriesDefaults.js +1 -1
  147. package/es-modules/Series/Variwide/VariwideComposition.js +11 -8
  148. package/es-modules/Series/Vector/VectorSeriesDefaults.js +1 -1
  149. package/es-modules/Series/Venn/VennSeriesDefaults.js +1 -1
  150. package/es-modules/Series/Waterfall/WaterfallSeriesDefaults.js +1 -1
  151. package/es-modules/Series/Windbarb/WindbarbSeriesDefaults.js +1 -1
  152. package/es-modules/Shared/Utilities.js +7 -0
  153. package/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +1 -1
  154. package/es-modules/Stock/Indicators/AD/ADIndicator.js +0 -1
  155. package/es-modules/Stock/Indicators/AO/AOIndicator.js +1 -1
  156. package/es-modules/Stock/Indicators/APO/APOIndicator.js +1 -1
  157. package/es-modules/Stock/Indicators/ATR/ATRIndicator.js +0 -1
  158. package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +1 -1
  159. package/es-modules/Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js +2 -2
  160. package/es-modules/Stock/Indicators/BB/BBIndicator.js +0 -1
  161. package/es-modules/Stock/Indicators/CCI/CCIIndicator.js +0 -1
  162. package/es-modules/Stock/Indicators/CMF/CMFIndicator.js +0 -1
  163. package/es-modules/Stock/Indicators/CMO/CMOIndicator.js +0 -1
  164. package/es-modules/Stock/Indicators/Chaikin/ChaikinIndicator.js +1 -1
  165. package/es-modules/Stock/Indicators/DEMA/DEMAIndicator.js +1 -1
  166. package/es-modules/Stock/Indicators/DMI/DMIIndicator.js +3 -3
  167. package/es-modules/Stock/Indicators/DPO/DPOIndicator.js +1 -1
  168. package/es-modules/Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js +3 -3
  169. package/es-modules/Stock/Indicators/EMA/EMAIndicator.js +0 -1
  170. package/es-modules/Stock/Indicators/IKH/IKHIndicator.js +0 -1
  171. package/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +1 -1
  172. package/es-modules/Stock/Indicators/LinearRegression/LinearRegressionIndicator.js +0 -1
  173. package/es-modules/Stock/Indicators/LinearRegressionAngle/LinearRegressionAngleIndicator.js +0 -1
  174. package/es-modules/Stock/Indicators/LinearRegressionIntercept/LinearRegressionInterceptIndicator.js +0 -1
  175. package/es-modules/Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopesIndicator.js +0 -1
  176. package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +0 -1
  177. package/es-modules/Stock/Indicators/MFI/MFIIndicator.js +0 -1
  178. package/es-modules/Stock/Indicators/Momentum/MomentumIndicator.js +0 -1
  179. package/es-modules/Stock/Indicators/NATR/NATRIndicator.js +0 -1
  180. package/es-modules/Stock/Indicators/OBV/OBVIndicator.js +0 -1
  181. package/es-modules/Stock/Indicators/PC/PCIndicator.js +1 -1
  182. package/es-modules/Stock/Indicators/PPO/PPOIndicator.js +1 -1
  183. package/es-modules/Stock/Indicators/PSAR/PSARIndicator.js +0 -1
  184. package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +0 -1
  185. package/es-modules/Stock/Indicators/PriceEnvelopes/PriceEnvelopesIndicator.js +0 -1
  186. package/es-modules/Stock/Indicators/ROC/ROCIndicator.js +0 -1
  187. package/es-modules/Stock/Indicators/RSI/RSIIndicator.js +0 -1
  188. package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +1 -1
  189. package/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +3 -3
  190. package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +1 -1
  191. package/es-modules/Stock/Indicators/TEMA/TEMAIndicator.js +1 -1
  192. package/es-modules/Stock/Indicators/TRIX/TRIXIndicator.js +1 -1
  193. package/es-modules/Stock/Indicators/TrendLine/TrendLineIndicator.js +0 -1
  194. package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +1 -1
  195. package/es-modules/Stock/Indicators/VWAP/VWAPIndicator.js +0 -1
  196. package/es-modules/Stock/Indicators/WMA/WMAIndicator.js +0 -1
  197. package/es-modules/Stock/Indicators/WilliamsR/WilliamsRIndicator.js +1 -1
  198. package/es-modules/Stock/Indicators/Zigzag/ZigzagIndicator.js +0 -1
  199. package/es-modules/Stock/Navigator/ChartNavigatorComposition.js +5 -5
  200. package/es-modules/Stock/Navigator/Navigator.js +1 -5
  201. package/es-modules/Stock/Navigator/StandaloneNavigator.js +38 -8
  202. package/es-modules/Stock/RangeSelector/RangeSelectorComposition.js +2 -2
  203. package/es-modules/Stock/Scrollbar/ScrollbarDefaults.js +1 -3
  204. package/es-modules/masters/highcharts-3d.src.js +1 -1
  205. package/es-modules/masters/highcharts-autoload.src.js +1 -1
  206. package/es-modules/masters/highcharts-gantt.src.js +1 -1
  207. package/es-modules/masters/highcharts-more.src.js +1 -1
  208. package/es-modules/masters/highcharts.src.js +1 -1
  209. package/es-modules/masters/highmaps.src.js +1 -1
  210. package/es-modules/masters/highstock.src.js +1 -1
  211. package/es-modules/masters/i18n/fr-FR.src.d.ts +1 -1
  212. package/es-modules/masters/i18n/fr-FR.src.js +1 -1
  213. package/es-modules/masters/i18n/nb-NO.src.d.ts +1 -1
  214. package/es-modules/masters/i18n/nb-NO.src.js +1 -1
  215. package/es-modules/masters/i18n/zh-CN.src.d.ts +1 -1
  216. package/es-modules/masters/i18n/zh-CN.src.js +1 -1
  217. package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
  218. package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
  219. package/es-modules/masters/indicators/ao.src.js +1 -1
  220. package/es-modules/masters/indicators/apo.src.js +1 -1
  221. package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
  222. package/es-modules/masters/indicators/aroon.src.js +1 -1
  223. package/es-modules/masters/indicators/atr.src.js +1 -1
  224. package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
  225. package/es-modules/masters/indicators/cci.src.js +1 -1
  226. package/es-modules/masters/indicators/chaikin.src.js +1 -1
  227. package/es-modules/masters/indicators/cmf.src.js +1 -1
  228. package/es-modules/masters/indicators/cmo.src.js +1 -1
  229. package/es-modules/masters/indicators/dema.src.js +1 -1
  230. package/es-modules/masters/indicators/disparity-index.src.js +1 -1
  231. package/es-modules/masters/indicators/dmi.src.js +1 -1
  232. package/es-modules/masters/indicators/dpo.src.js +1 -1
  233. package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
  234. package/es-modules/masters/indicators/indicators-all.src.js +1 -1
  235. package/es-modules/masters/indicators/indicators.src.js +1 -1
  236. package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
  237. package/es-modules/masters/indicators/klinger.src.js +1 -1
  238. package/es-modules/masters/indicators/macd.src.js +1 -1
  239. package/es-modules/masters/indicators/mfi.src.js +1 -1
  240. package/es-modules/masters/indicators/momentum.src.js +1 -1
  241. package/es-modules/masters/indicators/natr.src.js +1 -1
  242. package/es-modules/masters/indicators/obv.src.js +1 -1
  243. package/es-modules/masters/indicators/pivot-points.src.js +1 -1
  244. package/es-modules/masters/indicators/ppo.src.js +1 -1
  245. package/es-modules/masters/indicators/price-channel.src.js +1 -1
  246. package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
  247. package/es-modules/masters/indicators/psar.src.js +1 -1
  248. package/es-modules/masters/indicators/regressions.src.js +1 -1
  249. package/es-modules/masters/indicators/roc.src.js +1 -1
  250. package/es-modules/masters/indicators/rsi.src.js +1 -1
  251. package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
  252. package/es-modules/masters/indicators/stochastic.src.js +1 -1
  253. package/es-modules/masters/indicators/supertrend.src.js +1 -1
  254. package/es-modules/masters/indicators/tema.src.js +1 -1
  255. package/es-modules/masters/indicators/trendline.src.js +1 -1
  256. package/es-modules/masters/indicators/trix.src.js +1 -1
  257. package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
  258. package/es-modules/masters/indicators/vwap.src.js +1 -1
  259. package/es-modules/masters/indicators/williams-r.src.js +1 -1
  260. package/es-modules/masters/indicators/wma.src.js +1 -1
  261. package/es-modules/masters/indicators/zigzag.src.js +1 -1
  262. package/es-modules/masters/modules/accessibility.src.js +1 -1
  263. package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
  264. package/es-modules/masters/modules/annotations.src.js +1 -1
  265. package/es-modules/masters/modules/arc-diagram.src.js +1 -1
  266. package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
  267. package/es-modules/masters/modules/boost-canvas.src.js +1 -1
  268. package/es-modules/masters/modules/boost.src.js +1 -1
  269. package/es-modules/masters/modules/broken-axis.src.js +1 -1
  270. package/es-modules/masters/modules/bullet.src.js +1 -1
  271. package/es-modules/masters/modules/coloraxis.src.js +1 -1
  272. package/es-modules/masters/modules/contour.src.js +1 -1
  273. package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
  274. package/es-modules/masters/modules/cylinder.src.js +1 -1
  275. package/es-modules/masters/modules/data-sorting.src.js +1 -1
  276. package/es-modules/masters/modules/data-tools.src.js +1 -1
  277. package/es-modules/masters/modules/data.src.js +1 -1
  278. package/es-modules/masters/modules/datagrouping.src.js +1 -1
  279. package/es-modules/masters/modules/debugger.src.js +1 -1
  280. package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
  281. package/es-modules/masters/modules/dotplot.src.js +1 -1
  282. package/es-modules/masters/modules/drag-panes.src.js +1 -1
  283. package/es-modules/masters/modules/draggable-points.src.js +1 -1
  284. package/es-modules/masters/modules/drilldown.src.js +1 -1
  285. package/es-modules/masters/modules/dumbbell.src.js +1 -1
  286. package/es-modules/masters/modules/export-data.src.js +1 -1
  287. package/es-modules/masters/modules/exporting.src.js +1 -1
  288. package/es-modules/masters/modules/flowmap.src.js +1 -1
  289. package/es-modules/masters/modules/full-screen.src.js +1 -1
  290. package/es-modules/masters/modules/funnel.src.js +1 -1
  291. package/es-modules/masters/modules/funnel3d.src.js +1 -1
  292. package/es-modules/masters/modules/gantt.src.js +1 -1
  293. package/es-modules/masters/modules/geoheatmap.src.js +1 -1
  294. package/es-modules/masters/modules/grid-axis.src.js +1 -1
  295. package/es-modules/masters/modules/heatmap.src.js +1 -1
  296. package/es-modules/masters/modules/heikinashi.src.js +1 -1
  297. package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
  298. package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
  299. package/es-modules/masters/modules/item-series.src.js +1 -1
  300. package/es-modules/masters/modules/lollipop.src.js +1 -1
  301. package/es-modules/masters/modules/map.src.js +1 -1
  302. package/es-modules/masters/modules/marker-clusters.src.js +1 -1
  303. package/es-modules/masters/modules/mouse-wheel-zoom.src.js +1 -1
  304. package/es-modules/masters/modules/navigator.src.js +1 -1
  305. package/es-modules/masters/modules/networkgraph.src.js +1 -1
  306. package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
  307. package/es-modules/masters/modules/non-cartesian-zoom.src.js +1 -1
  308. package/es-modules/masters/modules/offline-exporting.src.js +1 -1
  309. package/es-modules/masters/modules/organization.src.js +1 -1
  310. package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
  311. package/es-modules/masters/modules/pareto.src.js +1 -1
  312. package/es-modules/masters/modules/pathfinder.src.js +1 -1
  313. package/es-modules/masters/modules/pattern-fill.src.js +1 -1
  314. package/es-modules/masters/modules/pictorial.src.js +1 -1
  315. package/es-modules/masters/modules/pointandfigure.src.js +1 -1
  316. package/es-modules/masters/modules/price-indicator.src.js +1 -1
  317. package/es-modules/masters/modules/pyramid3d.src.js +1 -1
  318. package/es-modules/masters/modules/renko.src.js +1 -1
  319. package/es-modules/masters/modules/sankey.src.js +1 -1
  320. package/es-modules/masters/modules/series-label.src.js +1 -1
  321. package/es-modules/masters/modules/series-on-point.src.js +1 -1
  322. package/es-modules/masters/modules/solid-gauge.src.js +1 -1
  323. package/es-modules/masters/modules/sonification.src.js +1 -1
  324. package/es-modules/masters/modules/static-scale.src.js +1 -1
  325. package/es-modules/masters/modules/stock-tools.src.js +1 -1
  326. package/es-modules/masters/modules/stock.src.js +1 -1
  327. package/es-modules/masters/modules/streamgraph.src.js +1 -1
  328. package/es-modules/masters/modules/sunburst.src.js +1 -1
  329. package/es-modules/masters/modules/textpath.src.js +1 -1
  330. package/es-modules/masters/modules/tiledwebmap.src.js +1 -1
  331. package/es-modules/masters/modules/tilemap.src.js +1 -1
  332. package/es-modules/masters/modules/timeline.src.js +1 -1
  333. package/es-modules/masters/modules/treegraph.src.js +1 -1
  334. package/es-modules/masters/modules/treegrid.src.js +1 -1
  335. package/es-modules/masters/modules/treemap.src.js +1 -1
  336. package/es-modules/masters/modules/variable-pie.src.js +1 -1
  337. package/es-modules/masters/modules/variwide.src.js +1 -1
  338. package/es-modules/masters/modules/vector.src.js +1 -1
  339. package/es-modules/masters/modules/venn.src.js +1 -1
  340. package/es-modules/masters/modules/windbarb.src.js +1 -1
  341. package/es-modules/masters/modules/wordcloud.src.js +1 -1
  342. package/es-modules/masters/modules/xrange.src.js +1 -1
  343. package/es-modules/masters/standalone-navigator.src.js +1 -1
  344. package/es-modules/masters/themes/adaptive.src.js +1 -1
  345. package/es-modules/masters/themes/avocado.src.js +1 -1
  346. package/es-modules/masters/themes/dark-unica.src.js +1 -1
  347. package/es-modules/masters/themes/grid-light.src.js +1 -1
  348. package/es-modules/masters/themes/high-contrast.src.js +1 -1
  349. package/es-modules/masters/themes/sand-signika.src.js +1 -1
  350. package/es-modules/masters/themes/sunset.src.js +1 -1
  351. package/es-modules/tsconfig.tsbuildinfo +1 -1
  352. package/esm/highcharts-3d.js +2 -2
  353. package/esm/highcharts-3d.src.js +38 -61
  354. package/esm/highcharts-autoload.js +2 -2
  355. package/esm/highcharts-autoload.src.js +18 -39
  356. package/esm/highcharts-gantt.js +1 -1
  357. package/esm/highcharts-gantt.src.js +1 -1
  358. package/esm/highcharts-more.js +2 -2
  359. package/esm/highcharts-more.src.js +142 -120
  360. package/esm/highcharts.js +4 -4
  361. package/esm/highcharts.src.js +825 -751
  362. package/esm/highmaps.js +1 -1
  363. package/esm/highmaps.src.js +1 -1
  364. package/esm/highstock.js +1 -1
  365. package/esm/highstock.src.js +1 -1
  366. package/esm/i18n/fr-FR.js +2 -2
  367. package/esm/i18n/fr-FR.src.js +17 -38
  368. package/esm/i18n/nb-NO.js +2 -2
  369. package/esm/i18n/nb-NO.src.js +17 -38
  370. package/esm/i18n/zh-CN.js +2 -2
  371. package/esm/i18n/zh-CN.src.js +17 -38
  372. package/esm/indicators/acceleration-bands.js +2 -2
  373. package/esm/indicators/acceleration-bands.src.js +18 -39
  374. package/esm/indicators/accumulation-distribution.js +2 -2
  375. package/esm/indicators/accumulation-distribution.src.js +17 -39
  376. package/esm/indicators/ao.js +2 -2
  377. package/esm/indicators/ao.src.js +18 -39
  378. package/esm/indicators/apo.js +2 -2
  379. package/esm/indicators/apo.src.js +18 -39
  380. package/esm/indicators/aroon-oscillator.js +2 -2
  381. package/esm/indicators/aroon-oscillator.src.js +19 -40
  382. package/esm/indicators/aroon.js +2 -2
  383. package/esm/indicators/aroon.src.js +18 -39
  384. package/esm/indicators/atr.js +2 -2
  385. package/esm/indicators/atr.src.js +17 -39
  386. package/esm/indicators/bollinger-bands.js +2 -2
  387. package/esm/indicators/bollinger-bands.src.js +17 -39
  388. package/esm/indicators/cci.js +2 -2
  389. package/esm/indicators/cci.src.js +17 -39
  390. package/esm/indicators/chaikin.js +2 -2
  391. package/esm/indicators/chaikin.src.js +18 -40
  392. package/esm/indicators/cmf.js +2 -2
  393. package/esm/indicators/cmf.src.js +17 -39
  394. package/esm/indicators/cmo.js +2 -2
  395. package/esm/indicators/cmo.src.js +17 -39
  396. package/esm/indicators/dema.js +2 -2
  397. package/esm/indicators/dema.src.js +18 -39
  398. package/esm/indicators/disparity-index.js +2 -2
  399. package/esm/indicators/disparity-index.src.js +20 -41
  400. package/esm/indicators/dmi.js +2 -2
  401. package/esm/indicators/dmi.src.js +20 -41
  402. package/esm/indicators/dpo.js +2 -2
  403. package/esm/indicators/dpo.src.js +18 -39
  404. package/esm/indicators/ichimoku-kinko-hyo.js +2 -2
  405. package/esm/indicators/ichimoku-kinko-hyo.src.js +18 -40
  406. package/esm/indicators/indicators-all.js +2 -2
  407. package/esm/indicators/indicators-all.src.js +76 -99
  408. package/esm/indicators/indicators.js +2 -2
  409. package/esm/indicators/indicators.src.js +48 -46
  410. package/esm/indicators/keltner-channels.js +2 -2
  411. package/esm/indicators/keltner-channels.src.js +18 -39
  412. package/esm/indicators/klinger.js +2 -2
  413. package/esm/indicators/klinger.src.js +17 -38
  414. package/esm/indicators/macd.js +2 -2
  415. package/esm/indicators/macd.src.js +17 -39
  416. package/esm/indicators/mfi.js +2 -2
  417. package/esm/indicators/mfi.src.js +17 -39
  418. package/esm/indicators/momentum.js +2 -2
  419. package/esm/indicators/momentum.src.js +17 -39
  420. package/esm/indicators/natr.js +2 -2
  421. package/esm/indicators/natr.src.js +17 -39
  422. package/esm/indicators/obv.js +2 -2
  423. package/esm/indicators/obv.src.js +17 -39
  424. package/esm/indicators/pivot-points.js +2 -2
  425. package/esm/indicators/pivot-points.src.js +17 -39
  426. package/esm/indicators/ppo.js +2 -2
  427. package/esm/indicators/ppo.src.js +18 -39
  428. package/esm/indicators/price-channel.js +2 -2
  429. package/esm/indicators/price-channel.src.js +18 -39
  430. package/esm/indicators/price-envelopes.js +2 -2
  431. package/esm/indicators/price-envelopes.src.js +17 -39
  432. package/esm/indicators/psar.js +2 -2
  433. package/esm/indicators/psar.src.js +17 -39
  434. package/esm/indicators/regressions.js +2 -2
  435. package/esm/indicators/regressions.src.js +17 -42
  436. package/esm/indicators/roc.js +2 -2
  437. package/esm/indicators/roc.src.js +17 -39
  438. package/esm/indicators/rsi.js +2 -2
  439. package/esm/indicators/rsi.src.js +17 -39
  440. package/esm/indicators/slow-stochastic.js +2 -2
  441. package/esm/indicators/slow-stochastic.src.js +17 -38
  442. package/esm/indicators/stochastic.js +2 -2
  443. package/esm/indicators/stochastic.src.js +20 -41
  444. package/esm/indicators/supertrend.js +2 -2
  445. package/esm/indicators/supertrend.src.js +19 -40
  446. package/esm/indicators/tema.js +2 -2
  447. package/esm/indicators/tema.src.js +18 -39
  448. package/esm/indicators/trendline.js +2 -2
  449. package/esm/indicators/trendline.src.js +17 -39
  450. package/esm/indicators/trix.js +2 -2
  451. package/esm/indicators/trix.src.js +18 -39
  452. package/esm/indicators/volume-by-price.js +2 -2
  453. package/esm/indicators/volume-by-price.src.js +18 -39
  454. package/esm/indicators/vwap.js +2 -2
  455. package/esm/indicators/vwap.src.js +17 -39
  456. package/esm/indicators/williams-r.js +2 -2
  457. package/esm/indicators/williams-r.src.js +18 -39
  458. package/esm/indicators/wma.js +2 -2
  459. package/esm/indicators/wma.src.js +17 -39
  460. package/esm/indicators/zigzag.js +2 -2
  461. package/esm/indicators/zigzag.src.js +17 -39
  462. package/esm/modules/accessibility.js +2 -2
  463. package/esm/modules/accessibility.src.js +90 -76
  464. package/esm/modules/annotations-advanced.js +3 -3
  465. package/esm/modules/annotations-advanced.src.js +36 -58
  466. package/esm/modules/annotations.js +3 -3
  467. package/esm/modules/annotations.src.js +36 -58
  468. package/esm/modules/arc-diagram.js +2 -2
  469. package/esm/modules/arc-diagram.src.js +18 -39
  470. package/esm/modules/arrow-symbols.js +3 -3
  471. package/esm/modules/arrow-symbols.src.js +17 -38
  472. package/esm/modules/boost-canvas.js +2 -2
  473. package/esm/modules/boost-canvas.src.js +57 -63
  474. package/esm/modules/boost.js +2 -2
  475. package/esm/modules/boost.src.js +56 -62
  476. package/esm/modules/broken-axis.js +2 -2
  477. package/esm/modules/broken-axis.src.js +21 -41
  478. package/esm/modules/bullet.js +2 -2
  479. package/esm/modules/bullet.src.js +18 -39
  480. package/esm/modules/coloraxis.js +2 -2
  481. package/esm/modules/coloraxis.src.js +92 -96
  482. package/esm/modules/contour.js +3 -3
  483. package/esm/modules/contour.src.js +29 -52
  484. package/esm/modules/current-date-indicator.js +2 -2
  485. package/esm/modules/current-date-indicator.src.js +17 -38
  486. package/esm/modules/cylinder.js +2 -2
  487. package/esm/modules/cylinder.src.js +18 -39
  488. package/esm/modules/data-sorting.js +2 -2
  489. package/esm/modules/data-sorting.src.js +18 -39
  490. package/esm/modules/data-tools.js +2 -2
  491. package/esm/modules/data-tools.src.js +110 -67
  492. package/esm/modules/data.js +4 -4
  493. package/esm/modules/data.src.js +53 -48
  494. package/esm/modules/datagrouping.js +2 -2
  495. package/esm/modules/datagrouping.src.js +52 -48
  496. package/esm/modules/debugger.js +2 -2
  497. package/esm/modules/debugger.src.js +17 -38
  498. package/esm/modules/dependency-wheel.js +2 -2
  499. package/esm/modules/dependency-wheel.src.js +17 -38
  500. package/esm/modules/dotplot.js +2 -2
  501. package/esm/modules/dotplot.src.js +17 -38
  502. package/esm/modules/drag-panes.js +2 -2
  503. package/esm/modules/drag-panes.src.js +22 -46
  504. package/esm/modules/draggable-points.js +2 -2
  505. package/esm/modules/draggable-points.src.js +17 -38
  506. package/esm/modules/drilldown.js +2 -2
  507. package/esm/modules/drilldown.src.js +40 -54
  508. package/esm/modules/dumbbell.js +2 -2
  509. package/esm/modules/dumbbell.src.js +18 -39
  510. package/esm/modules/export-data.js +2 -2
  511. package/esm/modules/export-data.src.js +42 -43
  512. package/esm/modules/exporting.js +2 -2
  513. package/esm/modules/exporting.src.js +26 -47
  514. package/esm/modules/flowmap.js +2 -2
  515. package/esm/modules/flowmap.src.js +17 -38
  516. package/esm/modules/full-screen.js +2 -2
  517. package/esm/modules/full-screen.src.js +17 -38
  518. package/esm/modules/funnel.js +2 -2
  519. package/esm/modules/funnel.src.js +21 -42
  520. package/esm/modules/funnel3d.js +2 -2
  521. package/esm/modules/funnel3d.src.js +18 -39
  522. package/esm/modules/gantt.js +2 -2
  523. package/esm/modules/gantt.src.js +84 -104
  524. package/esm/modules/geoheatmap.js +2 -2
  525. package/esm/modules/geoheatmap.src.js +18 -39
  526. package/esm/modules/grid-axis.js +2 -2
  527. package/esm/modules/grid-axis.src.js +34 -51
  528. package/esm/modules/heatmap.js +2 -2
  529. package/esm/modules/heatmap.src.js +20 -41
  530. package/esm/modules/heikinashi.js +2 -2
  531. package/esm/modules/heikinashi.src.js +18 -39
  532. package/esm/modules/histogram-bellcurve.js +2 -2
  533. package/esm/modules/histogram-bellcurve.src.js +19 -40
  534. package/esm/modules/hollowcandlestick.js +2 -2
  535. package/esm/modules/hollowcandlestick.src.js +18 -39
  536. package/esm/modules/item-series.js +2 -2
  537. package/esm/modules/item-series.src.js +19 -40
  538. package/esm/modules/lollipop.js +2 -2
  539. package/esm/modules/lollipop.src.js +18 -39
  540. package/esm/modules/map.js +2 -2
  541. package/esm/modules/map.src.js +64 -63
  542. package/esm/modules/marker-clusters.js +2 -2
  543. package/esm/modules/marker-clusters.src.js +49 -46
  544. package/esm/modules/mouse-wheel-zoom.js +2 -2
  545. package/esm/modules/mouse-wheel-zoom.src.js +17 -38
  546. package/esm/modules/navigator.js +2 -2
  547. package/esm/modules/navigator.src.js +72 -67
  548. package/esm/modules/networkgraph.js +2 -2
  549. package/esm/modules/networkgraph.src.js +24 -45
  550. package/esm/modules/no-data-to-display.js +2 -2
  551. package/esm/modules/no-data-to-display.src.js +17 -38
  552. package/esm/modules/non-cartesian-zoom.js +2 -2
  553. package/esm/modules/non-cartesian-zoom.src.js +17 -38
  554. package/esm/modules/offline-exporting.js +2 -2
  555. package/esm/modules/offline-exporting.src.js +19 -40
  556. package/esm/modules/organization.js +2 -2
  557. package/esm/modules/organization.src.js +20 -39
  558. package/esm/modules/parallel-coordinates.js +2 -2
  559. package/esm/modules/parallel-coordinates.src.js +24 -44
  560. package/esm/modules/pareto.js +2 -2
  561. package/esm/modules/pareto.src.js +21 -42
  562. package/esm/modules/pathfinder.js +2 -2
  563. package/esm/modules/pathfinder.src.js +20 -39
  564. package/esm/modules/pattern-fill.js +2 -2
  565. package/esm/modules/pattern-fill.src.js +17 -38
  566. package/esm/modules/pictorial.js +2 -2
  567. package/esm/modules/pictorial.src.js +71 -65
  568. package/esm/modules/pointandfigure.js +2 -2
  569. package/esm/modules/pointandfigure.src.js +47 -44
  570. package/esm/modules/price-indicator.js +2 -2
  571. package/esm/modules/price-indicator.src.js +17 -38
  572. package/esm/modules/pyramid3d.js +2 -2
  573. package/esm/modules/pyramid3d.src.js +18 -39
  574. package/esm/modules/renko.js +2 -2
  575. package/esm/modules/renko.src.js +18 -40
  576. package/esm/modules/sankey.js +2 -2
  577. package/esm/modules/sankey.src.js +24 -46
  578. package/esm/modules/series-label.js +2 -2
  579. package/esm/modules/series-label.src.js +17 -38
  580. package/esm/modules/series-on-point.js +2 -2
  581. package/esm/modules/series-on-point.src.js +47 -44
  582. package/esm/modules/solid-gauge.js +2 -2
  583. package/esm/modules/solid-gauge.src.js +18 -39
  584. package/esm/modules/sonification.js +2 -2
  585. package/esm/modules/sonification.src.js +18 -39
  586. package/esm/modules/static-scale.js +2 -2
  587. package/esm/modules/static-scale.src.js +30 -49
  588. package/esm/modules/stock-tools.js +2 -2
  589. package/esm/modules/stock-tools.src.js +29 -50
  590. package/esm/modules/stock.js +2 -2
  591. package/esm/modules/stock.src.js +117 -141
  592. package/esm/modules/streamgraph.js +2 -2
  593. package/esm/modules/streamgraph.src.js +18 -39
  594. package/esm/modules/sunburst.js +2 -2
  595. package/esm/modules/sunburst.src.js +38 -57
  596. package/esm/modules/textpath.js +2 -2
  597. package/esm/modules/textpath.src.js +17 -38
  598. package/esm/modules/tiledwebmap.js +3 -3
  599. package/esm/modules/tiledwebmap.src.js +19 -40
  600. package/esm/modules/tilemap.js +2 -2
  601. package/esm/modules/tilemap.src.js +22 -40
  602. package/esm/modules/timeline.js +2 -2
  603. package/esm/modules/timeline.src.js +19 -40
  604. package/esm/modules/treegraph.js +2 -2
  605. package/esm/modules/treegraph.src.js +23 -42
  606. package/esm/modules/treegrid.js +2 -2
  607. package/esm/modules/treegrid.src.js +47 -67
  608. package/esm/modules/treemap.js +2 -2
  609. package/esm/modules/treemap.src.js +34 -53
  610. package/esm/modules/variable-pie.js +2 -2
  611. package/esm/modules/variable-pie.src.js +19 -40
  612. package/esm/modules/variwide.js +2 -2
  613. package/esm/modules/variwide.src.js +28 -46
  614. package/esm/modules/vector.js +2 -2
  615. package/esm/modules/vector.src.js +18 -39
  616. package/esm/modules/venn.js +2 -2
  617. package/esm/modules/venn.src.js +18 -39
  618. package/esm/modules/windbarb.js +2 -2
  619. package/esm/modules/windbarb.src.js +18 -39
  620. package/esm/modules/wordcloud.js +2 -2
  621. package/esm/modules/wordcloud.src.js +18 -39
  622. package/esm/modules/xrange.js +2 -2
  623. package/esm/modules/xrange.src.js +18 -39
  624. package/esm/standalone-navigator.js +4 -4
  625. package/esm/standalone-navigator.src.js +877 -777
  626. package/esm/themes/adaptive.js +2 -2
  627. package/esm/themes/adaptive.src.js +17 -38
  628. package/esm/themes/avocado.js +2 -2
  629. package/esm/themes/avocado.src.js +17 -38
  630. package/esm/themes/dark-unica.js +2 -2
  631. package/esm/themes/dark-unica.src.js +17 -38
  632. package/esm/themes/grid-light.js +2 -2
  633. package/esm/themes/grid-light.src.js +17 -38
  634. package/esm/themes/high-contrast.js +2 -2
  635. package/esm/themes/high-contrast.src.js +17 -38
  636. package/esm/themes/sand-signika.js +2 -2
  637. package/esm/themes/sand-signika.src.js +17 -38
  638. package/esm/themes/sunset.js +2 -2
  639. package/esm/themes/sunset.src.js +17 -38
  640. package/highcharts-3d.js +2 -2
  641. package/highcharts-3d.src.js +43 -66
  642. package/highcharts-autoload.d.ts +0 -1
  643. package/highcharts-autoload.js +4 -4
  644. package/highcharts-autoload.src.d.ts +0 -1
  645. package/highcharts-autoload.src.js +834 -779
  646. package/highcharts-gantt.js +4 -4
  647. package/highcharts-gantt.src.js +896 -840
  648. package/highcharts-more.d.ts +10 -0
  649. package/highcharts-more.js +2 -2
  650. package/highcharts-more.src.d.ts +10 -0
  651. package/highcharts-more.src.js +147 -125
  652. package/highcharts.d.ts +2785 -80144
  653. package/highcharts.js +4 -4
  654. package/highcharts.src.d.ts +2785 -80144
  655. package/highcharts.src.js +833 -778
  656. package/highmaps.js +4 -4
  657. package/highmaps.src.js +916 -846
  658. package/highstock.js +4 -4
  659. package/highstock.src.js +904 -875
  660. package/i18n/fr-FR.js +2 -2
  661. package/i18n/fr-FR.src.js +26 -37
  662. package/i18n/nb-NO.js +2 -2
  663. package/i18n/nb-NO.src.js +26 -37
  664. package/i18n/zh-CN.js +2 -2
  665. package/i18n/zh-CN.src.js +26 -37
  666. package/indicators/acceleration-bands.js +2 -2
  667. package/indicators/acceleration-bands.src.js +23 -44
  668. package/indicators/accumulation-distribution.js +2 -2
  669. package/indicators/accumulation-distribution.src.js +22 -44
  670. package/indicators/ao.js +2 -2
  671. package/indicators/ao.src.js +23 -44
  672. package/indicators/apo.js +2 -2
  673. package/indicators/apo.src.js +23 -44
  674. package/indicators/aroon-oscillator.js +2 -2
  675. package/indicators/aroon-oscillator.src.js +24 -45
  676. package/indicators/aroon.js +2 -2
  677. package/indicators/aroon.src.js +23 -44
  678. package/indicators/atr.js +2 -2
  679. package/indicators/atr.src.js +22 -44
  680. package/indicators/bollinger-bands.js +2 -2
  681. package/indicators/bollinger-bands.src.js +22 -44
  682. package/indicators/cci.js +2 -2
  683. package/indicators/cci.src.js +22 -44
  684. package/indicators/chaikin.js +2 -2
  685. package/indicators/chaikin.src.js +23 -45
  686. package/indicators/cmf.js +2 -2
  687. package/indicators/cmf.src.js +22 -44
  688. package/indicators/cmo.js +2 -2
  689. package/indicators/cmo.src.js +22 -44
  690. package/indicators/dema.js +2 -2
  691. package/indicators/dema.src.js +23 -44
  692. package/indicators/disparity-index.js +2 -2
  693. package/indicators/disparity-index.src.js +25 -46
  694. package/indicators/dmi.js +2 -2
  695. package/indicators/dmi.src.js +25 -46
  696. package/indicators/dpo.js +2 -2
  697. package/indicators/dpo.src.js +23 -44
  698. package/indicators/ichimoku-kinko-hyo.js +2 -2
  699. package/indicators/ichimoku-kinko-hyo.src.js +23 -45
  700. package/indicators/indicators-all.js +2 -2
  701. package/indicators/indicators-all.src.js +81 -104
  702. package/indicators/indicators.js +2 -2
  703. package/indicators/indicators.src.js +53 -51
  704. package/indicators/keltner-channels.js +2 -2
  705. package/indicators/keltner-channels.src.js +23 -44
  706. package/indicators/klinger.js +2 -2
  707. package/indicators/klinger.src.js +22 -43
  708. package/indicators/macd.js +2 -2
  709. package/indicators/macd.src.js +22 -44
  710. package/indicators/mfi.js +2 -2
  711. package/indicators/mfi.src.js +22 -44
  712. package/indicators/momentum.js +2 -2
  713. package/indicators/momentum.src.js +22 -44
  714. package/indicators/natr.js +2 -2
  715. package/indicators/natr.src.js +22 -44
  716. package/indicators/obv.js +2 -2
  717. package/indicators/obv.src.js +22 -44
  718. package/indicators/pivot-points.js +2 -2
  719. package/indicators/pivot-points.src.js +22 -44
  720. package/indicators/ppo.js +2 -2
  721. package/indicators/ppo.src.js +23 -44
  722. package/indicators/price-channel.js +2 -2
  723. package/indicators/price-channel.src.js +23 -44
  724. package/indicators/price-envelopes.js +2 -2
  725. package/indicators/price-envelopes.src.js +22 -44
  726. package/indicators/psar.js +2 -2
  727. package/indicators/psar.src.js +22 -44
  728. package/indicators/regressions.js +2 -2
  729. package/indicators/regressions.src.js +22 -47
  730. package/indicators/roc.js +2 -2
  731. package/indicators/roc.src.js +22 -44
  732. package/indicators/rsi.js +2 -2
  733. package/indicators/rsi.src.js +22 -44
  734. package/indicators/slow-stochastic.js +2 -2
  735. package/indicators/slow-stochastic.src.js +22 -43
  736. package/indicators/stochastic.js +2 -2
  737. package/indicators/stochastic.src.js +25 -46
  738. package/indicators/supertrend.js +2 -2
  739. package/indicators/supertrend.src.js +24 -45
  740. package/indicators/tema.js +2 -2
  741. package/indicators/tema.src.js +23 -44
  742. package/indicators/trendline.js +2 -2
  743. package/indicators/trendline.src.js +22 -44
  744. package/indicators/trix.js +2 -2
  745. package/indicators/trix.src.js +23 -44
  746. package/indicators/volume-by-price.js +2 -2
  747. package/indicators/volume-by-price.src.js +23 -44
  748. package/indicators/vwap.js +2 -2
  749. package/indicators/vwap.src.js +22 -44
  750. package/indicators/williams-r.js +2 -2
  751. package/indicators/williams-r.src.js +23 -44
  752. package/indicators/wma.js +2 -2
  753. package/indicators/wma.src.js +22 -44
  754. package/indicators/zigzag.js +2 -2
  755. package/indicators/zigzag.src.js +22 -44
  756. package/modules/accessibility.js +2 -2
  757. package/modules/accessibility.src.js +95 -81
  758. package/modules/annotations-advanced.js +9 -9
  759. package/modules/annotations-advanced.src.js +41 -63
  760. package/modules/annotations.js +3 -3
  761. package/modules/annotations.src.js +41 -63
  762. package/modules/arc-diagram.js +2 -2
  763. package/modules/arc-diagram.src.js +23 -44
  764. package/modules/arrow-symbols.js +2 -2
  765. package/modules/arrow-symbols.src.js +17 -38
  766. package/modules/boost-canvas.js +2 -2
  767. package/modules/boost-canvas.src.js +62 -68
  768. package/modules/boost.js +2 -2
  769. package/modules/boost.src.js +61 -67
  770. package/modules/broken-axis.js +2 -2
  771. package/modules/broken-axis.src.js +26 -46
  772. package/modules/bullet.js +2 -2
  773. package/modules/bullet.src.js +23 -44
  774. package/modules/coloraxis.js +2 -2
  775. package/modules/coloraxis.src.js +97 -101
  776. package/modules/contour.js +5 -5
  777. package/modules/contour.src.js +111 -117
  778. package/modules/current-date-indicator.js +2 -2
  779. package/modules/current-date-indicator.src.js +17 -38
  780. package/modules/cylinder.js +2 -2
  781. package/modules/cylinder.src.js +23 -44
  782. package/modules/data-sorting.js +2 -2
  783. package/modules/data-sorting.src.js +18 -39
  784. package/modules/data-tools.js +2 -2
  785. package/modules/data-tools.src.js +110 -67
  786. package/modules/data.js +4 -4
  787. package/modules/data.src.js +58 -53
  788. package/modules/datagrouping.js +2 -2
  789. package/modules/datagrouping.src.js +57 -53
  790. package/modules/debugger.js +2 -2
  791. package/modules/debugger.src.js +17 -38
  792. package/modules/dependency-wheel.js +2 -2
  793. package/modules/dependency-wheel.src.js +22 -43
  794. package/modules/dotplot.js +2 -2
  795. package/modules/dotplot.src.js +22 -43
  796. package/modules/drag-panes.js +2 -2
  797. package/modules/drag-panes.src.js +22 -46
  798. package/modules/draggable-points.js +2 -2
  799. package/modules/draggable-points.src.js +17 -38
  800. package/modules/drilldown.js +2 -2
  801. package/modules/drilldown.src.js +45 -59
  802. package/modules/dumbbell.js +2 -2
  803. package/modules/dumbbell.src.js +23 -44
  804. package/modules/export-data.js +2 -2
  805. package/modules/export-data.src.js +47 -48
  806. package/modules/exporting.js +2 -2
  807. package/modules/exporting.src.js +31 -52
  808. package/modules/flowmap.js +2 -2
  809. package/modules/flowmap.src.js +22 -43
  810. package/modules/full-screen.js +2 -2
  811. package/modules/full-screen.src.js +22 -43
  812. package/modules/funnel.js +2 -2
  813. package/modules/funnel.src.js +26 -47
  814. package/modules/funnel3d.js +2 -2
  815. package/modules/funnel3d.src.js +23 -44
  816. package/modules/gantt.js +8 -8
  817. package/modules/gantt.src.js +93 -113
  818. package/modules/geoheatmap.js +2 -2
  819. package/modules/geoheatmap.src.js +23 -44
  820. package/modules/grid-axis.js +2 -2
  821. package/modules/grid-axis.src.js +39 -56
  822. package/modules/heatmap.js +4 -4
  823. package/modules/heatmap.src.js +101 -105
  824. package/modules/heikinashi.js +2 -2
  825. package/modules/heikinashi.src.js +23 -44
  826. package/modules/histogram-bellcurve.js +2 -2
  827. package/modules/histogram-bellcurve.src.js +24 -45
  828. package/modules/hollowcandlestick.js +2 -2
  829. package/modules/hollowcandlestick.src.js +23 -44
  830. package/modules/item-series.js +2 -2
  831. package/modules/item-series.src.js +24 -45
  832. package/modules/lollipop.js +2 -2
  833. package/modules/lollipop.src.js +23 -44
  834. package/modules/map.js +4 -4
  835. package/modules/map.src.js +146 -128
  836. package/modules/marker-clusters.js +2 -2
  837. package/modules/marker-clusters.src.js +49 -46
  838. package/modules/mouse-wheel-zoom.js +2 -2
  839. package/modules/mouse-wheel-zoom.src.js +17 -38
  840. package/modules/navigator.js +2 -2
  841. package/modules/navigator.src.js +77 -72
  842. package/modules/networkgraph.js +2 -2
  843. package/modules/networkgraph.src.js +29 -50
  844. package/modules/no-data-to-display.js +2 -2
  845. package/modules/no-data-to-display.src.js +22 -43
  846. package/modules/non-cartesian-zoom.js +2 -2
  847. package/modules/non-cartesian-zoom.src.js +17 -38
  848. package/modules/offline-exporting.js +2 -2
  849. package/modules/offline-exporting.src.js +24 -45
  850. package/modules/organization.js +3 -3
  851. package/modules/organization.src.js +25 -44
  852. package/modules/parallel-coordinates.js +2 -2
  853. package/modules/parallel-coordinates.src.js +29 -49
  854. package/modules/pareto.js +2 -2
  855. package/modules/pareto.src.js +26 -47
  856. package/modules/pathfinder.js +2 -2
  857. package/modules/pathfinder.src.js +25 -44
  858. package/modules/pattern-fill.js +2 -2
  859. package/modules/pattern-fill.src.js +17 -38
  860. package/modules/pictorial.js +2 -2
  861. package/modules/pictorial.src.js +76 -70
  862. package/modules/pointandfigure.js +2 -2
  863. package/modules/pointandfigure.src.js +52 -49
  864. package/modules/price-indicator.js +2 -2
  865. package/modules/price-indicator.src.js +17 -38
  866. package/modules/pyramid3d.js +2 -2
  867. package/modules/pyramid3d.src.js +23 -44
  868. package/modules/renko.js +2 -2
  869. package/modules/renko.src.js +23 -45
  870. package/modules/sankey.js +2 -2
  871. package/modules/sankey.src.js +29 -51
  872. package/modules/series-label.js +2 -2
  873. package/modules/series-label.src.js +22 -43
  874. package/modules/series-on-point.js +2 -2
  875. package/modules/series-on-point.src.js +52 -49
  876. package/modules/solid-gauge.js +2 -2
  877. package/modules/solid-gauge.src.js +23 -44
  878. package/modules/sonification.js +2 -2
  879. package/modules/sonification.src.js +23 -44
  880. package/modules/static-scale.js +2 -2
  881. package/modules/static-scale.src.js +30 -49
  882. package/modules/stock-tools.js +2 -2
  883. package/modules/stock-tools.src.js +34 -55
  884. package/modules/stock.js +6 -6
  885. package/modules/stock.src.js +132 -154
  886. package/modules/streamgraph.js +2 -2
  887. package/modules/streamgraph.src.js +23 -44
  888. package/modules/sunburst.js +2 -2
  889. package/modules/sunburst.src.js +43 -62
  890. package/modules/textpath.js +2 -2
  891. package/modules/textpath.src.js +17 -38
  892. package/modules/tiledwebmap.js +3 -3
  893. package/modules/tiledwebmap.src.js +24 -45
  894. package/modules/tilemap.js +2 -2
  895. package/modules/tilemap.src.js +27 -45
  896. package/modules/timeline.js +2 -2
  897. package/modules/timeline.src.js +24 -45
  898. package/modules/treegraph.js +2 -2
  899. package/modules/treegraph.src.js +28 -47
  900. package/modules/treegrid.js +2 -2
  901. package/modules/treegrid.src.js +52 -72
  902. package/modules/treemap.js +2 -2
  903. package/modules/treemap.src.js +39 -58
  904. package/modules/variable-pie.js +2 -2
  905. package/modules/variable-pie.src.js +24 -45
  906. package/modules/variwide.js +2 -2
  907. package/modules/variwide.src.js +33 -51
  908. package/modules/vector.js +2 -2
  909. package/modules/vector.src.js +23 -44
  910. package/modules/venn.js +2 -2
  911. package/modules/venn.src.js +23 -44
  912. package/modules/windbarb.js +2 -2
  913. package/modules/windbarb.src.js +23 -44
  914. package/modules/wordcloud.js +2 -2
  915. package/modules/wordcloud.src.js +23 -44
  916. package/modules/xrange.js +2 -2
  917. package/modules/xrange.src.js +23 -44
  918. package/options/abands.d.ts +183 -8
  919. package/options/abands.src.d.ts +183 -8
  920. package/options/ad.d.ts +176 -5
  921. package/options/ad.src.d.ts +176 -5
  922. package/options/ao.d.ts +202 -0
  923. package/options/ao.src.d.ts +202 -0
  924. package/options/apo.d.ts +178 -8
  925. package/options/apo.src.d.ts +178 -8
  926. package/options/arcdiagram.d.ts +785 -0
  927. package/options/arcdiagram.src.d.ts +785 -0
  928. package/options/area.d.ts +226 -0
  929. package/options/area.src.d.ts +226 -0
  930. package/options/arearange.d.ts +229 -8
  931. package/options/arearange.src.d.ts +229 -8
  932. package/options/areaspline.d.ts +1344 -8
  933. package/options/areaspline.src.d.ts +1344 -8
  934. package/options/areasplinerange.d.ts +972 -8
  935. package/options/areasplinerange.src.d.ts +972 -8
  936. package/options/aroon.d.ts +219 -0
  937. package/options/aroon.src.d.ts +219 -0
  938. package/options/aroonoscillator.d.ts +1140 -8
  939. package/options/aroonoscillator.src.d.ts +1140 -8
  940. package/options/atr.d.ts +210 -0
  941. package/options/atr.src.d.ts +210 -0
  942. package/options/bar.d.ts +183 -10
  943. package/options/bar.src.d.ts +183 -10
  944. package/options/bb.d.ts +1232 -0
  945. package/options/bb.src.d.ts +1232 -0
  946. package/options/bellcurve.d.ts +1167 -8
  947. package/options/bellcurve.src.d.ts +1167 -8
  948. package/options/boxplot.d.ts +163 -10
  949. package/options/boxplot.src.d.ts +163 -10
  950. package/options/bubble.d.ts +1005 -8
  951. package/options/bubble.src.d.ts +1005 -8
  952. package/options/bullet.d.ts +953 -8
  953. package/options/bullet.src.d.ts +953 -8
  954. package/options/candlestick.d.ts +1309 -8
  955. package/options/candlestick.src.d.ts +1309 -8
  956. package/options/cci.d.ts +210 -0
  957. package/options/cci.src.d.ts +210 -0
  958. package/options/chaikin.d.ts +180 -8
  959. package/options/chaikin.src.d.ts +180 -8
  960. package/options/cmf.d.ts +211 -0
  961. package/options/cmf.src.d.ts +211 -0
  962. package/options/cmo.d.ts +175 -5
  963. package/options/cmo.src.d.ts +175 -5
  964. package/options/column.d.ts +252 -2
  965. package/options/column.src.d.ts +252 -2
  966. package/options/columnpyramid.d.ts +1296 -0
  967. package/options/columnpyramid.src.d.ts +1296 -0
  968. package/options/columnrange.d.ts +216 -2
  969. package/options/columnrange.src.d.ts +216 -2
  970. package/options/contour.d.ts +1148 -0
  971. package/options/contour.src.d.ts +1148 -0
  972. package/options/cylinder.d.ts +183 -2
  973. package/options/cylinder.src.d.ts +183 -2
  974. package/options/dema.d.ts +1181 -0
  975. package/options/dema.src.d.ts +1181 -0
  976. package/options/dependencywheel.d.ts +315 -0
  977. package/options/dependencywheel.src.d.ts +315 -0
  978. package/options/disparityindex.d.ts +1157 -8
  979. package/options/disparityindex.src.d.ts +1157 -8
  980. package/options/dmi.d.ts +1227 -0
  981. package/options/dmi.src.d.ts +1227 -0
  982. package/options/dpo.d.ts +1140 -8
  983. package/options/dpo.src.d.ts +1140 -8
  984. package/options/dumbbell.d.ts +286 -0
  985. package/options/dumbbell.src.d.ts +286 -0
  986. package/options/ema.d.ts +1156 -5
  987. package/options/ema.src.d.ts +1156 -5
  988. package/options/errorbar.d.ts +1286 -0
  989. package/options/errorbar.src.d.ts +1286 -0
  990. package/options/flags.d.ts +1269 -8
  991. package/options/flags.src.d.ts +1269 -8
  992. package/options/flowmap.d.ts +551 -0
  993. package/options/flowmap.src.d.ts +551 -0
  994. package/options/funnel.d.ts +728 -10
  995. package/options/funnel.src.d.ts +728 -10
  996. package/options/gantt.d.ts +1011 -0
  997. package/options/gantt.src.d.ts +1011 -0
  998. package/options/gauge.d.ts +675 -0
  999. package/options/gauge.src.d.ts +675 -0
  1000. package/options/geoheatmap.d.ts +585 -8
  1001. package/options/geoheatmap.src.d.ts +585 -8
  1002. package/options/heatmap.d.ts +1054 -8
  1003. package/options/heatmap.src.d.ts +1054 -8
  1004. package/options/heikinashi.d.ts +178 -10
  1005. package/options/heikinashi.src.d.ts +178 -10
  1006. package/options/histogram.d.ts +1226 -0
  1007. package/options/histogram.src.d.ts +1226 -0
  1008. package/options/hlc.d.ts +223 -2
  1009. package/options/hlc.src.d.ts +223 -2
  1010. package/options/hollowcandlestick.d.ts +1335 -0
  1011. package/options/hollowcandlestick.src.d.ts +1335 -0
  1012. package/options/ikh.d.ts +228 -5
  1013. package/options/ikh.src.d.ts +228 -5
  1014. package/options/item.d.ts +217 -8
  1015. package/options/item.src.d.ts +217 -8
  1016. package/options/keltnerchannels.d.ts +1220 -0
  1017. package/options/keltnerchannels.src.d.ts +1220 -0
  1018. package/options/klinger.d.ts +1162 -0
  1019. package/options/klinger.src.d.ts +1162 -0
  1020. package/options/line.d.ts +1377 -8
  1021. package/options/line.src.d.ts +1377 -8
  1022. package/options/linearregression.d.ts +199 -5
  1023. package/options/linearregression.src.d.ts +199 -5
  1024. package/options/linearregressionangle.d.ts +1157 -5
  1025. package/options/linearregressionangle.src.d.ts +1157 -5
  1026. package/options/linearregressionintercept.d.ts +240 -0
  1027. package/options/linearregressionintercept.src.d.ts +240 -0
  1028. package/options/linearregressionslope.d.ts +240 -0
  1029. package/options/linearregressionslope.src.d.ts +240 -0
  1030. package/options/lollipop.d.ts +949 -0
  1031. package/options/lollipop.src.d.ts +949 -0
  1032. package/options/macd.d.ts +254 -0
  1033. package/options/macd.src.d.ts +254 -0
  1034. package/options/map.d.ts +150 -8
  1035. package/options/map.src.d.ts +150 -8
  1036. package/options/mapbubble.d.ts +1016 -8
  1037. package/options/mapbubble.src.d.ts +1016 -8
  1038. package/options/mapline.d.ts +994 -0
  1039. package/options/mapline.src.d.ts +994 -0
  1040. package/options/mappoint.d.ts +1105 -1
  1041. package/options/mappoint.src.d.ts +1105 -1
  1042. package/options/mfi.d.ts +181 -5
  1043. package/options/mfi.src.d.ts +181 -5
  1044. package/options/momentum.d.ts +215 -0
  1045. package/options/momentum.src.d.ts +215 -0
  1046. package/options/natr.d.ts +170 -5
  1047. package/options/natr.src.d.ts +170 -5
  1048. package/options/networkgraph.d.ts +365 -0
  1049. package/options/networkgraph.src.d.ts +365 -0
  1050. package/options/obv.d.ts +170 -5
  1051. package/options/obv.src.d.ts +170 -5
  1052. package/options/ohlc.d.ts +183 -7
  1053. package/options/ohlc.src.d.ts +183 -7
  1054. package/options/organization.d.ts +808 -0
  1055. package/options/organization.src.d.ts +808 -0
  1056. package/options/packedbubble.d.ts +877 -8
  1057. package/options/packedbubble.src.d.ts +877 -8
  1058. package/options/pareto.d.ts +1028 -0
  1059. package/options/pareto.src.d.ts +1028 -0
  1060. package/options/pc.d.ts +183 -8
  1061. package/options/pc.src.d.ts +183 -8
  1062. package/options/pictorial.d.ts +202 -2
  1063. package/options/pictorial.src.d.ts +202 -2
  1064. package/options/pie.d.ts +196 -8
  1065. package/options/pie.src.d.ts +196 -8
  1066. package/options/pivotpoints.d.ts +1199 -0
  1067. package/options/pivotpoints.src.d.ts +1199 -0
  1068. package/options/pointandfigure.d.ts +980 -0
  1069. package/options/pointandfigure.src.d.ts +980 -0
  1070. package/options/polygon.d.ts +234 -0
  1071. package/options/polygon.src.d.ts +234 -0
  1072. package/options/ppo.d.ts +1156 -8
  1073. package/options/ppo.src.d.ts +1156 -8
  1074. package/options/priceenvelopes.d.ts +1229 -0
  1075. package/options/priceenvelopes.src.d.ts +1229 -0
  1076. package/options/psar.d.ts +1156 -5
  1077. package/options/psar.src.d.ts +1156 -5
  1078. package/options/pyramid.d.ts +837 -2
  1079. package/options/pyramid.src.d.ts +837 -2
  1080. package/options/renko.d.ts +247 -10
  1081. package/options/renko.src.d.ts +247 -10
  1082. package/options/roc.d.ts +1215 -0
  1083. package/options/roc.src.d.ts +1215 -0
  1084. package/options/rsi.d.ts +1157 -5
  1085. package/options/rsi.src.d.ts +1157 -5
  1086. package/options/sankey.d.ts +276 -8
  1087. package/options/sankey.src.d.ts +276 -8
  1088. package/options/scatter.d.ts +3043 -1018
  1089. package/options/scatter.src.d.ts +3043 -1018
  1090. package/options/series.d.ts +175 -0
  1091. package/options/series.src.d.ts +175 -0
  1092. package/options/slowstochastic.d.ts +183 -0
  1093. package/options/slowstochastic.src.d.ts +183 -0
  1094. package/options/sma.d.ts +211 -0
  1095. package/options/sma.src.d.ts +211 -0
  1096. package/options/solidgauge.d.ts +218 -0
  1097. package/options/solidgauge.src.d.ts +218 -0
  1098. package/options/spline.d.ts +230 -0
  1099. package/options/spline.src.d.ts +230 -0
  1100. package/options/stochastic.d.ts +1170 -8
  1101. package/options/stochastic.src.d.ts +1170 -8
  1102. package/options/streamgraph.d.ts +1345 -8
  1103. package/options/streamgraph.src.d.ts +1345 -8
  1104. package/options/sunburst.d.ts +286 -9
  1105. package/options/sunburst.src.d.ts +286 -9
  1106. package/options/supertrend.d.ts +1208 -0
  1107. package/options/supertrend.src.d.ts +1208 -0
  1108. package/options/tema.d.ts +1140 -8
  1109. package/options/tema.src.d.ts +1140 -8
  1110. package/options/tiledwebmap.d.ts +164 -0
  1111. package/options/tiledwebmap.src.d.ts +164 -0
  1112. package/options/tilemap.d.ts +687 -0
  1113. package/options/tilemap.src.d.ts +687 -0
  1114. package/options/timeline.d.ts +282 -0
  1115. package/options/timeline.src.d.ts +282 -0
  1116. package/options/treegraph.d.ts +982 -0
  1117. package/options/treegraph.src.d.ts +982 -0
  1118. package/options/treemap.d.ts +1396 -22
  1119. package/options/treemap.src.d.ts +1396 -22
  1120. package/options/trendline.d.ts +211 -0
  1121. package/options/trendline.src.d.ts +211 -0
  1122. package/options/trix.d.ts +178 -8
  1123. package/options/trix.src.d.ts +178 -8
  1124. package/options/variablepie.d.ts +686 -8
  1125. package/options/variablepie.src.d.ts +686 -8
  1126. package/options/variwide.d.ts +178 -2
  1127. package/options/variwide.src.d.ts +178 -2
  1128. package/options/vbp.d.ts +576 -0
  1129. package/options/vbp.src.d.ts +576 -0
  1130. package/options/vector.d.ts +660 -0
  1131. package/options/vector.src.d.ts +660 -0
  1132. package/options/venn.d.ts +654 -0
  1133. package/options/venn.src.d.ts +654 -0
  1134. package/options/vwap.d.ts +1157 -5
  1135. package/options/vwap.src.d.ts +1157 -5
  1136. package/options/waterfall.d.ts +1254 -8
  1137. package/options/waterfall.src.d.ts +1254 -8
  1138. package/options/williamsr.d.ts +209 -0
  1139. package/options/williamsr.src.d.ts +209 -0
  1140. package/options/windbarb.d.ts +222 -2
  1141. package/options/windbarb.src.d.ts +222 -2
  1142. package/options/wma.d.ts +1156 -5
  1143. package/options/wma.src.d.ts +1156 -5
  1144. package/options/wordcloud.d.ts +682 -0
  1145. package/options/wordcloud.src.d.ts +682 -0
  1146. package/options/xrange.d.ts +1168 -0
  1147. package/options/xrange.src.d.ts +1168 -0
  1148. package/options/zigzag.d.ts +1197 -0
  1149. package/options/zigzag.src.d.ts +1197 -0
  1150. package/package.json +1 -1
  1151. package/standalone-navigator.js +4 -4
  1152. package/standalone-navigator.src.js +885 -804
  1153. package/themes/adaptive.js +2 -2
  1154. package/themes/adaptive.src.js +22 -43
  1155. package/themes/avocado.js +2 -2
  1156. package/themes/avocado.src.js +17 -38
  1157. package/themes/dark-unica.js +2 -2
  1158. package/themes/dark-unica.src.js +17 -38
  1159. package/themes/grid-light.js +2 -2
  1160. package/themes/grid-light.src.js +17 -38
  1161. package/themes/high-contrast.js +2 -2
  1162. package/themes/high-contrast.src.js +17 -38
  1163. package/themes/sand-signika.js +2 -2
  1164. package/themes/sand-signika.src.js +17 -38
  1165. package/themes/sunset.js +2 -2
  1166. package/themes/sunset.src.js +17 -38
@@ -1,5 +1,5 @@
1
1
  let t;/**
2
- * Highmaps JS v13.0.2 (2026-08-27)
2
+ * Highmaps JS v13.1.1 (2026-09-20)
3
3
  * @module highcharts/modules/map
4
4
  * @requires highcharts
5
5
  *
@@ -10,4 +10,4 @@ let t;/**
10
10
  *
11
11
  * A commercial license may be required depending on use,
12
12
  * see www.highcharts.com/license
13
- */import*as e from"../highcharts.js";import"./coloraxis.js";let i={};i.n=t=>{let e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{if(Array.isArray(e))for(var o=0;o<e.length;){var s=e[o++],r=e[o++];i.o(t,s)?0===r&&o++:0===r?Object.defineProperty(t,s,{enumerable:!0,value:e[o++]}):Object.defineProperty(t,s,{enumerable:!0,get:r})}else for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let o=e.default;var s,r,a,n,l,h,p,d,c=i.n(o);let u={lang:{zoomIn:"Zoom in",zoomOut:"Zoom out"},mapNavigation:{buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{color:"var(--highcharts-neutral-color-60)",fontSize:"1em",fontWeight:"bold"},theme:{fill:"var(--highcharts-background-color)",stroke:"var(--highcharts-neutral-color-10)","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}};!function(t){let e,i=0;function s(t){let e=this.chart;t=this.normalize(t),e.options.mapNavigation.enableDoubleClickZoomTo?e.pointer.inClass(t.target,"highcharts-tracker")&&e.hoverPoint&&e.hoverPoint.zoomTo():e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)&&e.mapZoom(.5,void 0,void 0,t.chartX,t.chartY)}function r(t){let s=this.chart;t=this.normalize(t);let r=(0,o.defined)(t.wheelDelta)&&-t.wheelDelta/120||t.deltaY||t.detail;Math.abs(r)>=1&&(i+=Math.abs(r),e&&(0,o.internalClearTimeout)(e),e=setTimeout(()=>{i=0},50)),i<10&&s.isInsidePlot(t.chartX-s.plotLeft,t.chartY-s.plotTop)&&s.mapView&&s.mapView.zoomBy(-((s.options.mapNavigation.mouseWheelSensitivity-1)*r),void 0,[t.chartX,t.chartY],!(1>Math.abs(r))&&void 0)}function a(t,e,i){let s=this.chart;if(e=t.call(this,e,i),s&&s.mapView){let t=s.mapView.pixelsToLonLat({x:e.chartX-s.plotLeft,y:e.chartY-s.plotTop});t&&(0,o.extend)(e,t)}return e}function n(t){let e=this.chart.options.mapNavigation;e&&(e.enableTouchZoom??e.enabled)&&(this.chart.zooming.pinchType="xy"),t.apply(this,[].slice.call(arguments,1))}t.compose=function(t){let e=t.prototype;e.onContainerDblClick||((0,o.extend)(e,{onContainerDblClick:s,onContainerMouseWheel:r}),(0,o.wrap)(e,"normalize",a),(0,o.wrap)(e,"zoomOption",n))}}(n||(n={}));let m=n;function g(e,i,o,s,r){if(r){let t=r?.r||0;r.brBoxY=i-t,r.brBoxHeight=s+t}return t.roundedRect(e,i,o,s,r)}function b(e,i,o,s,r){if(r){let t=r?.r||0;r.brBoxHeight=s+t}return t.roundedRect(e,i,o,s,r)}let f=function(e){(t=e.prototype.symbols).bottombutton=g,t.topbutton=b},{setOptions:y}=c(),{composed:x}=c();function M(t){t&&(t.preventDefault?.(),t.stopPropagation?.(),t.cancelBubble=!0)}class v{static compose(t,e,i){m.compose(e),f(i),(0,o.pushUnique)(x,"Map.Navigation")&&((0,o.addEvent)(t,"beforeRender",function(){this.mapNavigation=new v(this),this.mapNavigation.update()}),y(u))}constructor(t){this.chart=t,this.navButtons=[]}update(t){let e=this,i=e.chart,s=e.navButtons,r=function(t){this.handler.call(i,t),M(t)},a=i.options.mapNavigation;for(t&&(a=i.options.mapNavigation=(0,o.merge)(i.options.mapNavigation,t));s.length;)s.pop()?.destroy();!i.renderer.forExport&&(a.enableButtons??a.enabled)&&(e.navButtonsGroup||(e.navButtonsGroup=i.renderer.g().attr({zIndex:7}).add()),(0,o.objectEach)(a.buttons,(t,n)=>{let l={padding:(t=(0,o.merge)(a.buttonOptions,t)).padding};!i.styledMode&&t.theme&&((0,o.extend)(l,t.theme),l.style=(0,o.merge)(t.theme.style,t.style));let{text:h,width:p=0,height:d=0,padding:c=0}=t,u=i.renderer.button("+"!==h&&"-"!==h&&h||"",0,0,r,l,void 0,void 0,void 0,"zoomIn"===n?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+({zoomIn:"zoom-in",zoomOut:"zoom-out"})[n]).attr({width:p,height:d,title:i.options.lang[n],zIndex:5}).add(e.navButtonsGroup);if("+"===h||"-"===h){let e=p+1,o=[["M",c+3,c+d/2],["L",c+e-3,c+d/2]];"+"===h&&o.push(["M",c+e/2,c+3],["L",c+e/2,c+d-3]),i.renderer.path(o).addClass("highcharts-button-symbol").attr(i.styledMode?{}:{stroke:t.style?.color,"stroke-width":3,"stroke-linecap":"round"}).add(u)}if(u.handler=t.onclick,(0,o.addEvent)(u.element,"dblclick",M),s.push(u),(0,o.extend)(t,{width:u.width,height:2*(u.height||0)}),i.hasLoaded)u.align(t,!1,t.alignTo);else{let e=(0,o.addEvent)(i,"load",()=>{u.element&&u.align(t,!1,t.alignTo),e()})}}),i.hasLoaded||(0,o.addEvent)(i,"render",function(){let t=i.exporting?.group?.getBBox();if(t){let i=e.navButtonsGroup.getBBox();if(!(i.x>=t.x+t.width||i.x+i.width<=t.x||i.y>=t.y+t.height||i.y+i.height<=t.y)){let o=-i.y-i.height+t.y-5,s=t.y+t.height-i.y+5,r=a.buttonOptions&&a.buttonOptions.verticalAlign;e.navButtonsGroup.attr({translateY:"bottom"===r?o:s})}}})),this.updateEvents(a)}updateEvents(t){let e=this.chart;(t.enableDoubleClickZoom??t.enabled)||t.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||(0,o.addEvent)(e.container,"dblclick",function(t){e.pointer.onContainerDblClick(t)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),t.enableMouseWheelZoom??t.enabled?this.unbindMouseWheel=this.unbindMouseWheel||(0,o.addEvent)(e.container,"wheel",function(t){if(!e.pointer.inClass(t.target,"highcharts-no-mousewheel")){let i=e.mapView?.zoom;e.pointer.onContainerMouseWheel(t),i!==e.mapView?.zoom&&M(t)}return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())}}let w=e.default.SeriesRegistry;var T=i.n(w);let P=e.default.SVGElement;var C=i.n(P);let{column:{prototype:j}}=T().seriesTypes;var L=l||(l={});function A(t){let e=this.series,i=e.chart.renderer;this.moveToTopOnHover&&this.graphic&&(e.stateMarkerGraphic||(e.stateMarkerGraphic=new(C())(i,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),t?.state==="hover"?(this.graphic.attr({id:this.id}),e.stateMarkerGraphic.attr({href:`${i.url}#${this.id}`,visibility:"visible"})):e.stateMarkerGraphic.attr({href:""}))}L.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&this.value!==1/0&&this.value!==-1/0&&(void 0===this.value||!isNaN(this.value))}},L.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(t){let e={};return(0,o.defined)(t.color)&&(!t.state||"normal"===t.state)&&(e[this.colorProp||"fill"]=t.color),e},pointAttribs:j.pointAttribs},L.compose=function(t){let e=t.prototype.pointClass;return(0,o.addEvent)(e,"afterSetState",A),t};let k=l,{deg2rad:z}=c();(s=h||(h={})).getCenter=function(){let t=this.options,e=this.chart,i=2*(t.slicedOffset||0),s=e.plotWidth-2*i,r=e.plotHeight-2*i,a=t.center,n=Math.min(s,r),l=t.thickness,h,p=t.size,d=t.innerSize||0,c,u;"string"==typeof p&&(p=parseFloat(p)),"string"==typeof d&&(d=parseFloat(d));let m=[a?.[0]??"50%",a?.[1]??"50%",(p&&p<0?void 0:t.size)??"100%",(d&&d<0?void 0:t.innerSize||0)??"0%"];for(c=0;c<4;++c)u=m[c],h=c<2||2===c&&/%$/.test(u),m[c]=(0,o.relativeLength)(u,[s,r,n,m[2]][c])+(h?i:0);return m[3]>m[2]&&(m[3]=m[2]),(0,o.isNumber)(l)&&2*l<m[2]&&l>0&&(m[3]=m[2]-2*l),(0,o.fireEvent)(this,"afterGetCenter",{positions:m}),m},s.getStartAndEndRadians=function(t,e){let i=(0,o.isNumber)(t)?t:0,s=(0,o.isNumber)(e)&&e>i&&e-i<360?e:i+360;return{start:z*(i+-90),end:z*(s+-90)}};let E=h,{setLength:N,splice:B}={convertToNumber:function(t,e){switch(typeof t){case"boolean":return+!!t;case"number":return isNaN(t)&&!e?null:t;default:return isNaN(t=parseFloat(`${t??""}`))&&!e?null:t}},setLength:function(t,e,i){return Array.isArray(t)?(t.length=e,t):t[i?"subarray":"slice"](0,e)},splice:function(t,e,i,o,s=[]){if(Array.isArray(t))return Array.isArray(s)||(s=Array.from(s)),{removed:t.splice(e,i,...s),array:t};let r=Object.getPrototypeOf(t).constructor,a=t[o?"subarray":"slice"](e,e+i),n=new r(t.length-i+s.length);return n.set(t.subarray(0,e),0),n.set(s,e),n.set(t.subarray(e+i),e+s.length),{removed:a,array:n}}},S=class{constructor(t={}){this.isDataTable=!0,this.autoId=!t.id,this.columns={},this.id=t.id||(0,o.uniqueKey)(),this.rowCount=0,this.versionTag=(0,o.uniqueKey)();let e=0;(0,o.objectEach)(t.columns||{},(t,i)=>{this.columns[i]=t.slice(),e=Math.max(e,t.length)}),this.applyRowCount(e)}applyRowCount(t){this.rowCount=t,(0,o.objectEach)(this.columns,(e,i)=>{e.length!==t&&(this.columns[i]=N(e,t))})}deleteRows(t,e=1){if(e>0&&t<this.rowCount){let i=0;(0,o.objectEach)(this.columns,(o,s)=>{this.columns[s]=B(o,t,e).array,i=o.length}),this.rowCount=i}(0,o.fireEvent)(this,"afterDeleteRows",{rowIndex:t,rowCount:e}),this.versionTag=(0,o.uniqueKey)()}getColumn(t,e){return this.columns[t]}getColumns(t,e){return(t||Object.keys(this.columns)).reduce((t,e)=>(t[e]=this.columns[e],t),{})}getRowObject(t,e){let i={},o=this.columns;for(let s of(e??(e=Object.keys(this.columns)),e))i[s]=o[s]?.[t];return i}setColumn(t,e=[],i=0,o){this.setColumns({[t]:e},i,o)}setColumns(t,e,i){let s=this.rowCount;(0,o.objectEach)(t,(t,e)=>{this.columns[e]=t.slice(),s=t.length}),this.applyRowCount(s),i?.silent||((0,o.fireEvent)(this,"afterSetColumns"),this.versionTag=(0,o.uniqueKey)())}setRow(t,e=this.rowCount,i,s){var r;let{columns:a}=this,n=i?this.rowCount+1:e+1,l=Object.keys(t);if(s?.addColumns!==!1)for(let t=0,e=l.length;t<e;t++)a[r=l[t]]||(a[r]=Array(this.rowCount));(0,o.objectEach)(a,(o,s)=>{o&&(i?o=B(o,e,0,!0,[t[s]]).array:o[e]=s in t?t[s]:o[e],a[s]=o)}),this.applyRowCount(Math.max(n,this.rowCount)),s?.silent||((0,o.fireEvent)(this,"afterSetRows",{rowIndex:e}),this.versionTag=(0,o.uniqueKey)())}getModified(){return this.modified||this}},O=e.default.Chart;var D=i.n(O);let I=e.default.SVGRenderer;var V=i.n(I);let{getOptions:R}=c();class X extends D(){init(t,e){let i=R().credits,s=(0,o.merge)({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:i.mapText??' \xa9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>',mapTextFull:i.mapTextFull??"{geojson.copyright}"},mapView:{},tooltip:{followTouchMove:!1}},t);super.init(s,e)}mapZoom(t,e,i,s,r){this.mapView&&((0,o.isNumber)(t)&&(t=Math.log(t)/Math.log(.5)),this.mapView.zoomBy(t,(0,o.isNumber)(e)&&(0,o.isNumber)(i)?this.mapView.projection.inverse([e,i]):void 0,(0,o.isNumber)(s)&&(0,o.isNumber)(r)?[s,r]:void 0))}update(t){t.chart&&"map"in t.chart&&this.mapView?.recommendMapView(this,[t.chart.map,...(this.options.series||[]).map(t=>t.mapData)],!0),super.update.apply(this,arguments)}}(r=X||(X={})).maps={},r.mapChart=function(t,e,i){let o=new r(t,e,i);return o.promise??o},r.splitPath=function(t){let e;return e="string"==typeof t?(t=t.replace(/([A-Z])/gi," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map(t=>/[A-Z]/i.test(t)?t:parseFloat(t)):t,V().prototype.pathToSegments(e)};let G=X,F={boundsFromPath:function(t){let e=-Number.MAX_VALUE,i=Number.MAX_VALUE,o=-Number.MAX_VALUE,s=Number.MAX_VALUE,r;if(t.forEach(t=>{let a=t[t.length-2],n=t[t.length-1];"number"==typeof a&&"number"==typeof n&&(i=Math.min(i,a),e=Math.max(e,a),s=Math.min(s,n),o=Math.max(o,n),r=!0)}),r)return{x1:i,y1:s,x2:e,y2:o}}},{boundsFromPath:Y}=F,U=T().seriesTypes.scatter.prototype.pointClass;class Z extends U{static getProjectedPath(t,e){return t.projectedPath||(e&&t.geometry?(e.hasCoordinates=!0,t.projectedPath=e.path(t.geometry)):t.projectedPath=t.path),t.projectedPath||[]}applyOptions(t,e,i){let s=this.series,r=super.applyOptions(t,e,i),a=s.joinBy;if(s.mapData&&s.mapMap){let t=a[1],e=super.getNestedProperty(t),i=void 0!==e&&s.mapMap[e];i?(0,o.extend)(r,{...i,name:r.name??i.name}):-1!==s.pointArrayMap.indexOf("value")&&(r.value=r.value||null)}return r}getProjectedBounds(t){let e=Y(Z.getProjectedPath(this,t)),i=this.properties,s=this.series.chart.mapView;if(e){let r=i?.["hc-middle-lon"],a=i?.["hc-middle-lat"];if(s&&(0,o.isNumber)(r)&&(0,o.isNumber)(a)){let i=t.forward([r,a]);e.midX=i[0],e.midY=i[1]}else{let t=i?.["hc-middle-x"],s=i?.["hc-middle-y"];e.midX=e.x1+(e.x2-e.x1)*(this.middleX??((0,o.isNumber)(t)?t:.5));let r=this.middleY??((0,o.isNumber)(s)?s:.5);this.geometry||(r=1-r),e.midY=e.y2-(e.y2-e.y1)*r}return e}}onMouseOver(t){(0,o.internalClearTimeout)(this.colorInterval),!this.isNull&&this.visible||this.series.options.nullInteraction?super.onMouseOver.call(this,t):this.series.onMouseOut()}setVisible(t){this.visible=this.options.visible=!!t,this.dataLabel&&this.dataLabel[t?"show":"hide"](),this.graphic&&this.graphic.attr(this.series.pointAttribs(this))}zoomTo(t){let e=this.series.chart,i=e.mapView,s=this.bounds;if(i&&s){let r=(0,o.isNumber)(this.insetIndex)&&i.insets[this.insetIndex];if(r){let t=r.projectedUnitsToPixels({x:s.x1,y:s.y1}),e=r.projectedUnitsToPixels({x:s.x2,y:s.y2}),o=i.pixelsToProjectedUnits({x:t.x,y:t.y}),a=i.pixelsToProjectedUnits({x:e.x,y:e.y});s={x1:o.x,y1:o.y,x2:a.x,y2:a.y}}i.fitToBounds(s,void 0,!1),this.series.isDirty=!0,e.redraw(t)}}}(0,o.extend)(Z.prototype,{dataLabelOnNull:k.pointMembers.dataLabelOnNull,moveToTopOnHover:k.pointMembers.moveToTopOnHover,isValid:k.pointMembers.isValid});let W={center:[0,0],fitToGeometry:void 0,maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0,insetOptions:{borderColor:"var(--highcharts-neutral-color-20)",borderWidth:1,padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}},H=e.default.Templating;var _=i.n(H);let{win:q}=c(),{format:K}=_();!function(t){function e(t){return this.mapView?.lonLatToProjectedUnits(t)}function i(t){return this.mapView?.projectedUnitsToLonLat(t)}function s(t,e){let i=this.options.chart.proj4||q.proj4;if(!i)return void(0,o.error)(21,!1,this);let{jsonmarginX:s=0,jsonmarginY:r=0,jsonres:a=1,scale:n=1,xoffset:l=0,xpan:h=0,yoffset:p=0,ypan:d=0}=e,c=i(e.crs,[t.lon,t.lat]),u=e.cosAngle||e.rotation&&Math.cos(e.rotation),m=e.sinAngle||e.rotation&&Math.sin(e.rotation),g=e.rotation?[c[0]*u+c[1]*m,-c[0]*m+c[1]*u]:c;return{x:((g[0]-l)*n+h)*a+s,y:-(((p-g[1])*n+d)*a-r)}}function r(t,e){let i=this.options.chart.proj4||q.proj4;if(!i)return void(0,o.error)(21,!1,this);if(null===t.y)return;let{jsonmarginX:s=0,jsonmarginY:r=0,jsonres:a=1,scale:n=1,xoffset:l=0,xpan:h=0,yoffset:p=0,ypan:d=0}=e,c={x:((t.x-s)/a-h)/n+l,y:((t.y-r)/a+d)/n+p},u=e.cosAngle||e.rotation&&Math.cos(e.rotation),m=e.sinAngle||e.rotation&&Math.sin(e.rotation),g=i(e.crs,"WGS84",e.rotation?{x:c.x*u+-(c.y*m),y:c.x*m+c.y*u}:c);return{lat:g.y,lon:g.x}}function a(t,e){e||(e=Object.keys(t.objects)[0]);let i=t.objects[e];if(i["hc-decoded-geojson"]&&i["hc-decoded-geojson"].title===t.title)return i["hc-decoded-geojson"];let o=t.arcs;if(t.transform){let e,i,s,r=t.arcs,{scale:a,translate:n}=t.transform;o=[];for(let t=0,l=r.length;t<l;++t){let l=r[t];o.push(e=[]),i=0,s=0;for(let t=0,o=l.length;t<o;++t)e.push([(i+=l[t][0])*a[0]+n[0],(s+=l[t][1])*a[1]+n[1]])}}let s=t=>"number"==typeof t[0]?t.reduce((t,e,i)=>{let s=e<0?o[~e]:o[e];return e<0?(s=s.slice(0,0===i?s.length:s.length-1)).reverse():i&&(s=s.slice(1)),t.concat(s)},[]):t.map(s),r=i.geometries,a=[];for(let t=0,e=r.length;t<e;++t)a.push({type:"Feature",properties:r[t].properties,geometry:{type:r[t].type,coordinates:r[t].coordinates||s(r[t].arcs)}});let n={type:"FeatureCollection",copyright:t.copyright,copyrightShort:t.copyrightShort,copyrightUrl:t.copyrightUrl,features:a,"hc-recommended-mapview":i["hc-recommended-mapview"],bbox:t.bbox,title:t.title};return i["hc-decoded-geojson"]=n,n}function n(t,e){e=(0,o.merge)(!0,this.options.credits,e),t.call(this,e),this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})}t.compose=function(t){let a=t.prototype;a.transformFromLatLon||(a.fromLatLonToPoint=e,a.fromPointToLatLon=i,a.transformFromLatLon=s,a.transformToLatLon=r,(0,o.wrap)(a,"addCredits",n))},t.geojson=function(t,e="map",i){let s=[],r="Topology"===t.type?a(t):t,n=r.features;for(let t=0,i=n.length;t<i;++t){let i,r=n[t],a=r.geometry||{},l=a.type,h=a.coordinates,p=r.properties;if(("map"===e||"mapbubble"===e)&&("Polygon"===l||"MultiPolygon"===l)||"mapline"===e&&("LineString"===l||"MultiLineString"===l)?h.length&&(i={geometry:{coordinates:h,type:l}}):"mappoint"===e&&"Point"===l&&h.length&&(i={geometry:{coordinates:h,type:l}}),i){let t=p&&(p.name||p.NAME),e=p&&p.lon,r=p&&p.lat;s.push((0,o.extend)(i,{lat:"number"==typeof r?r:void 0,lon:"number"==typeof e?e:void 0,name:"string"==typeof t?t:void 0,properties:p}))}}return i&&r.copyrightShort&&(i.chart.mapCredits=K(i.chart.options.credits?.mapText,{geojson:r}),i.chart.mapCreditsFull=K(i.chart.options.credits?.mapTextFull,{geojson:r})),s},t.topo2geo=a}(p||(p={}));let $=p;(a=d||(d={})).getCenterOfPoints=function(t){let e=t.reduce((t,e)=>(t.x+=e.x,t.y+=e.y,t),{x:0,y:0});return{x:e.x/t.length,y:e.y/t.length}},a.getDistanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},a.getAngleBetweenPoints=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)},a.pointInPolygon=function({x:t,y:e},i){let o=i.length,s,r,a=!1;for(s=0,r=o-1;s<o;r=s++){let[o,n]=i[s],[l,h]=i[r];n>e!=h>e&&t<(l-o)*(e-n)/(h-n)+o&&(a=!a)}return a};let J=d;function Q(t,e,i=!0){let o=e[e.length-1],s,r,a,n=t;for(let t=0;t<e.length;t++){let l=n;s=e[t],n=[],r=i?l[l.length-1]:l[0];for(let t=0;t<l.length;t++)tt(o,s,a=l[t])?(tt(o,s,r)||n.push(te(o,s,r,a)),n.push(a)):tt(o,s,r)&&n.push(te(o,s,r,a)),r=a;o=s}return n}function tt(t,e,i){return(e[0]-t[0])*(i[1]-t[1])>(e[1]-t[1])*(i[0]-t[0])}function te(t,e,i,o){let s=[t[0]-e[0],t[1]-e[1]],r=[i[0]-o[0],i[1]-o[1]],a=t[0]*e[1]-t[1]*e[0],n=i[0]*o[1]-i[1]*o[0],l=1/(s[0]*r[1]-s[1]*r[0]),h=[(a*r[0]-n*s[0])*l,(a*r[1]-n*s[1])*l];return h.isIntersection=!0,h}let ti=Math.sign||(t=>0===t?0:t>0?1:-1),to=Math.PI/180,ts=Math.PI/2,tr=t=>Math.tan((ts+t)/2),ta=class{constructor(t){let e=(t.parallels||[]).map(t=>t*to),i=e[0]||0,o=e[1]??i,s=Math.cos(i);"object"==typeof t.projectedBounds&&(this.projectedBounds=t.projectedBounds);let r=i===o?Math.sin(i):Math.log(s/Math.cos(o))/Math.log(tr(o)/tr(i));1e-10>Math.abs(r)&&(r=1e-10*(ti(r)||1)),this.n=r,this.c=s*Math.pow(tr(i),r)/r}forward(t){let{c:e,n:i,projectedBounds:o}=this,s=t[0]*to,r=t[1]*to;e>0?r<-ts+1e-6&&(r=-ts+1e-6):r>ts-1e-6&&(r=ts-1e-6);let a=e/Math.pow(tr(r),i),n=a*Math.sin(i*s)*63.78137,l=(e-a*Math.cos(i*s))*63.78137,h=[n,l];return o&&(n<o.x1||n>o.x2||l<o.y1||l>o.y2)&&(h.outside=!0),h}inverse(t){let{c:e,n:i}=this,o=t[0]/63.78137,s=e-t[1]/63.78137,r=ti(i)*Math.sqrt(o*o+s*s),a=Math.atan2(o,Math.abs(s))*ti(s);return s*i<0&&(a-=Math.PI*ti(o)*ti(s)),[a/i/to,(2*Math.atan(Math.pow(e/r,1/i))-ts)/to]}},tn=Math.sqrt(3)/2,tl=class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}forward(t){let e=Math.PI/180,i=Math.asin(tn*Math.sin(t[1]*e)),o=i*i,s=o*o*o;return[t[0]*e*Math.cos(i)*74.03120656864502/(tn*(1.340264+-.24331799999999998*o+s*(.0062510000000000005+.034164*o))),74.03120656864502*i*(1.340264+-.081106*o+s*(893e-6+.003796*o))]}inverse(t){let e=t[0]/74.03120656864502,i=t[1]/74.03120656864502,o=180/Math.PI,s=i,r,a,n,l;for(let t=0;t<12&&(a=(r=s*s)*r*r,n=s*(1.340264+-.081106*r+a*(893e-6+.003796*r))-i,s-=l=n/(1.340264+-.24331799999999998*r+a*(.0062510000000000005+.034164*r)),!(1e-9>Math.abs(l)));++t);a=(r=s*s)*r*r;let h=o*tn*e*(1.340264+-.24331799999999998*r+a*(.0062510000000000005+.034164*r))/Math.cos(s),p=o*Math.asin(Math.sin(s)/tn);return Math.abs(h)>180?[NaN,NaN]:[h,p]}},th=Math.PI/4,tp=Math.PI/180,td=class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}forward(t){return[t[0]*tp*63.78137,79.7267125*Math.log(Math.tan(th+.4*t[1]*tp))]}inverse(t){return[t[0]/63.78137/tp,2.5*(Math.atan(Math.exp(.8*(t[1]/63.78137)))-th)/tp]}},tc=Math.PI/180,tu=class{constructor(){this.antimeridianCutting=!1,this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,y2:63.78460826781007}}forward(t){let e=t[0],i=t[1]*tc,o=[Math.cos(i)*Math.sin(e*tc)*63.78460826781007,63.78460826781007*Math.sin(i)];return(e<-90||e>90)&&(o.outside=!0),o}inverse(t){let e=t[0]/63.78460826781007,i=t[1]/63.78460826781007,o=Math.sqrt(e*e+i*i),s=Math.asin(o),r=Math.sin(s);return[Math.atan2(e*r,o*Math.cos(s))/tc,Math.asin(o&&i*r/o)/tc]}},tm=Math.PI/180,tg=class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071},this.maxLatitude=85.0511287798}forward(t){let e=Math.sin(t[1]*tm),i=[63.78137*t[0]*tm,63.78137*Math.log((1+e)/(1-e))/2];return Math.abs(t[1])>this.maxLatitude&&(i.outside=!0),i}inverse(t){return[t[0]/(63.78137*tm),(2*Math.atan(Math.exp(t[1]/63.78137))-Math.PI/2)/tm]}},{clipLineString:tb,clipPolygon:tf}={clipLineString:function(t,e){let i=[],o=Q(t,e,!1);for(let t=1;t<o.length;t++)o[t].isIntersection&&o[t-1].isIntersection&&(i.push(o.splice(0,t)),t=0),t===o.length-1&&i.push(o);return i},clipPolygon:Q},ty=2*Math.PI/360,tx=t=>(t<-180&&(t+=360),t>180&&(t-=360),t),tM=t=>(1-Math.cos(t))/2;class tv{static add(t,e){tv.registry[t]=e}static distance(t,e){let i,o,s,r,a,{atan2:n,sqrt:l}=Math,h=(i=Math.cos,o=t[1]*ty,s=t[0]*ty,r=e[1]*ty,a=e[0]*ty,tM(r-o)+i(o)*i(r)*tM(a-s));return 6371e3*(2*n(l(h),l(1-h)))}static geodesic(t,e,i,o=5e5){let{atan2:s,cos:r,sin:a,sqrt:n}=Math,l=tv.distance,h=t[1]*ty,p=t[0]*ty,d=e[1]*ty,c=e[0]*ty,u=r(h)*r(p),m=r(d)*r(c),g=r(h)*a(p),b=r(d)*a(c),f=a(h),y=a(d),x=l(t,e),M=x/6371e3,v=a(M),w=Math.round(x/o),T=[];if(i&&T.push(t),w>1){let t=1/w;for(let e=t;e<.999;e+=t){let t=a((1-e)*M)/v,i=a(e*M)/v,o=t*u+i*m,r=t*g+i*b,l=s(t*f+i*y,n(o*o+r*r)),h=s(r,o);T.push([h/ty,l/ty])}}return i&&T.push(e),T}static insertGeodesics(t){let e=t.length-1;for(;e--;)if(Math.max(Math.abs(t[e][0]-t[e+1][0]),Math.abs(t[e][1]-t[e+1][1]))>10){let i=tv.geodesic(t[e],t[e+1]);i.length&&t.splice(e+1,0,...i)}}static toString(t){let{name:e,rotation:i}=t||{};return[e,i&&i.join(",")].join(";")}constructor(t={}){this.hasCoordinates=!1,this.hasGeoProjection=!1,this.maxLatitude=90,this.options=t;let{name:e,projectedBounds:i,rotation:o}=t;this.rotator=o?this.getRotator(o):void 0;let s=e?tv.registry[e]:void 0;s&&(this.def=new s(t));let{def:r,rotator:a}=this;r&&(this.maxLatitude=r.maxLatitude||90,this.hasGeoProjection=!0),a&&r?(this.forward=t=>r.forward(a.forward(t)),this.inverse=t=>a.inverse(r.inverse(t))):r?(this.forward=t=>r.forward(t),this.inverse=t=>r.inverse(t)):a&&(this.forward=a.forward,this.inverse=a.inverse),this.bounds="world"===i?r&&r.bounds:i}lineIntersectsBounds(t){let{x1:e,x2:i,y1:o,y2:s}=this.bounds||{},r=(t,e,i)=>{let[o,s]=t,r=+!e;if("number"==typeof i&&o[e]>=i!=s[e]>=i){let t=(i-o[e])/(s[e]-o[e]),a=o[r]+t*(s[r]-o[r]);return e?[a,i]:[i,a]}},a,n=t[0];return(a=r(t,0,e))?(n=a,t[1]=a):(a=r(t,0,i))&&(n=a,t[1]=a),(a=r(t,1,o))?n=a:(a=r(t,1,s))&&(n=a),n}getRotator(t){let e=t[0]*ty,i=(t[1]||0)*ty,o=(t[2]||0)*ty,s=Math.cos(i),r=Math.sin(i),a=Math.cos(o),n=Math.sin(o);if(0!==e||0!==i||0!==o)return{forward:t=>{let i=t[0]*ty+e,o=t[1]*ty,l=Math.cos(o),h=Math.cos(i)*l,p=Math.sin(i)*l,d=Math.sin(o),c=d*s+h*r;return[Math.atan2(p*a-c*n,h*s-d*r)/ty,Math.asin(c*a+p*n)/ty]},inverse:t=>{let i=t[0]*ty,o=t[1]*ty,l=Math.cos(o),h=Math.cos(i)*l,p=Math.sin(i)*l,d=Math.sin(o),c=d*a-p*n;return[(Math.atan2(p*a+d*n,h*s+c*r)-e)/ty,Math.asin(c*s-h*r)/ty]}}}forward(t){return t}inverse(t){return t}cutOnAntimeridian(t,e){let i,s=[],r=[t];for(let i=0,r=t.length;i<r;++i){let r=t[i],a=t[i-1];if(!i){if(!e)continue;a=t[t.length-1]}let n=a[0],l=r[0];if((n<-90||n>90)&&(l<-90||l>90)&&n>0!=l>0){let t=(0,o.clamp)((180-(n+360)%360)/((l+360)%360-(n+360)%360),0,1),e=a[1]+t*(r[1]-a[1]);s.push({i,lat:e,direction:n<0?1:-1,previousLonLat:a,lonLat:r})}}if(s.length)if(e){s.length%2==1&&(i=s.slice().sort((t,e)=>Math.abs(e.lat)-Math.abs(t.lat))[0],(0,o.erase)(s,i));let e=s.length-2;for(;e>=0;){let i=s[e].i,o=tx(180+1e-6*s[e].direction),a=tx(180-1e-6*s[e].direction),n=t.splice(i,s[e+1].i-i,...tv.geodesic([o,s[e].lat],[o,s[e+1].lat],!0));n.push(...tv.geodesic([a,s[e+1].lat],[a,s[e].lat],!0)),r.push(n),e-=2}if(i)for(let t=0;t<r.length;t++){let{direction:e,lat:o}=i,s=r[t],a=s.indexOf(i.lonLat);if(a>-1){let t=(o<0?-1:1)*this.maxLatitude,r=tx(180+1e-6*e),n=tx(180-1e-6*e),l=tv.geodesic([r,o],[r,t],!0);for(let i=r+120*e;i>-180&&i<180;i+=120*e)l.push([i,t]);l.push(...tv.geodesic([n,t],[n,i.lat],!0)),s.splice(a,0,...l);break}}}else{let e=s.length;for(;e--;){let i=s[e].i,o=t.splice(i,t.length,[tx(180+1e-6*s[e].direction),s[e].lat]);o.unshift([tx(180-1e-6*s[e].direction),s[e].lat]),r.push(o)}}return r}path(t){let e,{bounds:i,def:o,rotator:s}=this,r=[],a="Polygon"===t.type||"MultiPolygon"===t.type,n=this.hasGeoProjection,l=!o||!1!==o.antimeridianCutting,h=l?s:void 0,p=l&&o||this;i&&(e=[[i.x1,i.y1],[i.x2,i.y1],[i.x2,i.y2],[i.x1,i.y2]]);let d=t=>{let o=t.map(t=>{if(l){h&&(t=h.forward(t));let e=t[0];1e-6>Math.abs(e-180)&&(e=e<180?179.999999:180.000001),t=[e,t[1]]}return t}),s=[o];n&&(tv.insertGeodesics(o),l&&(s=this.cutOnAntimeridian(o,a))),s.forEach(t=>{let o,s;if(t.length<2)return;let h=!1,d=!1,c=t=>{h?r.push(["L",t[0],t[1]]):(r.push(["M",t[0],t[1]]),h=!0)},u=!1,m=!1,g=t.map(t=>{let e=p.forward(t);return e.outside?u=!0:m=!0,e[1]===1/0?e[1]=1e10:e[1]===-1/0&&(e[1]=-1e10),e});if(l){if(a&&g.push(g[0]),u){if(!m)return;if(e){if(a)g=tf(g,e);else if(i)return void tb(g,e).forEach(t=>{h=!1,t.forEach(c)})}}g.forEach(c)}else for(let e=0;e<g.length;e++){let i=t[e],r=g[e];r.outside?d=!0:(a&&!o&&(o=i,t.push(i),g.push(r)),d&&s&&(a&&n?tv.geodesic(s,i).forEach(t=>c(p.forward(t))):h=!1),c(r),s=i,d=!1)}})};return"LineString"===t.type?d(t.coordinates):"MultiLineString"===t.type?t.coordinates.forEach(t=>d(t)):"Polygon"===t.type?(t.coordinates.forEach(t=>d(t)),r.length&&r.push(["Z"])):"MultiPolygon"===t.type&&(t.coordinates.forEach(t=>{t.forEach(t=>d(t))}),r.length&&r.push(["Z"])),r}}tv.registry={EqualEarth:tl,LambertConformalConic:ta,Miller:td,Orthographic:tu,WebMercator:tg};let{composed:tw}=c(),{pointInPolygon:tT}=J,{topo2geo:tP}=$,{boundsFromPath:tC}=F,tj={};function tL(t,e){let{width:i,height:o}=e;return Math.log(400.979322/Math.max((t.x2-t.x1)/(i/256),(t.y2-t.y1)/(o/256)))/Math.log(2)}function tA(t){t.seriesOptions.mapData&&this.mapView?.recommendMapView(this,[this.options.chart.map,t.seriesOptions.mapData],this.options.drilldown?.mapZooming)}class tk{static compose(t){(0,o.pushUnique)(tw,"MapView")&&(tj=t.maps,(0,o.addEvent)(t,"afterInit",function(){this.mapView=new tk(this,this.options.mapView)},{order:0}),(0,o.addEvent)(t,"addSeriesAsDrilldown",tA),(0,o.addEvent)(t,"afterDrillUp",tA))}static compositeBounds(t){if(t.length)return t.slice(1).reduce((t,e)=>(t.x1=Math.min(t.x1,e.x1),t.y1=Math.min(t.y1,e.y1),t.x2=Math.max(t.x2,e.x2),t.y2=Math.max(t.y2,e.y2),t),(0,o.merge)(t[0]))}static mergeInsets(t,e){let i=t=>{let e={};return t.forEach((t,i)=>{e[t&&t.id||`i${i}`]=t}),e},s=(0,o.merge)(i(t),i(e));return Object.keys(s).map(t=>s[t])}constructor(t,e){this.allowTransformAnimation=!0,this.eventsToUnbind=[],this.insets=[],this.padding=[0,0,0,0],this.recommendedMapView={},this instanceof tz||this.recommendMapView(t,[t.options.chart.map,...(t.options.series||[]).map(t=>t.mapData)]),this.userOptions=e||{};let i=(0,o.merge)(W,this.recommendedMapView,e),s=this.recommendedMapView?.insets,r=e&&e.insets;s&&r&&(i.insets=tk.mergeInsets(s,r)),this.chart=t,this.center=i.center,this.options=i,this.projection=new tv(i.projection),this.playingField=t.plotBox,this.zoom=i.zoom||0,this.minZoom=i.minZoom,this.createInsets(),this.eventsToUnbind.push((0,o.addEvent)(t,"afterSetChartSize",()=>{this.playingField=this.getField(),(void 0===this.minZoom||this.minZoom===this.zoom)&&(this.fitToBounds(void 0,void 0,!1),!this.chart.hasRendered&&(0,o.isNumber)(this.userOptions.zoom)&&(this.zoom=this.userOptions.zoom),this.userOptions.center&&(0,o.merge)(!0,this.center,this.userOptions.center))})),this.setUpEvents()}createInsets(){let t=this.options,e=t.insets;e&&e.forEach(e=>{let i=new tz(this,(0,o.merge)(t.insetOptions,e));this.insets.push(i)})}fitToBounds(t,e,i=!0,s){let r=t||this.getProjectedBounds();if(r){let a=e??(t?0:this.options.padding),n=this.getField(!1),l=(0,o.isArray)(a)?a:[a,a,a,a];this.padding=[(0,o.relativeLength)(l[0],n.height),(0,o.relativeLength)(l[1],n.width),(0,o.relativeLength)(l[2],n.height),(0,o.relativeLength)(l[3],n.width)],this.playingField=this.getField();let h=tL(r,this.playingField);t||(this.minZoom=h);let p=this.projection.inverse([(r.x2+r.x1)/2,(r.y2+r.y1)/2]);this.setView(p,h,i,s)}}getField(t=!0){let e=t?this.padding:[0,0,0,0];return{x:e[3],y:e[0],width:this.chart.plotWidth-e[1]-e[3],height:this.chart.plotHeight-e[0]-e[2]}}getGeoMap(t){if((0,o.isString)(t))return tj[t]&&"Topology"===tj[t].type?tP(tj[t]):tj[t];if((0,o.isObject)(t,!0)){if("FeatureCollection"===t.type)return t;if("Topology"===t.type)return tP(t)}}getMapBBox(){let t=this.getProjectedBounds(),e=this.getScale();if(t){let i=this.padding,o=this.projectedUnitsToPixels({x:t.x1,y:t.y2});return{width:(t.x2-t.x1)*e+i[1]+i[3],height:(t.y2-t.y1)*e+i[0]+i[2],x:o.x-i[3],y:o.y-i[0]}}}getProjectedBounds(){let t=this.projection,e=this.chart.series.reduce((t,e)=>{let i=e.getProjectedBounds&&e.getProjectedBounds();return i&&!1!==e.options.affectsMapView&&t.push(i),t},[]),i=this.options.fitToGeometry;if(i){if(!this.fitToGeometryCache)if("MultiPoint"===i.type){let e=i.coordinates.map(e=>t.forward(e)),o=e.map(t=>t[0]),s=e.map(t=>t[1]);this.fitToGeometryCache={x1:Math.min.apply(0,o),x2:Math.max.apply(0,o),y1:Math.min.apply(0,s),y2:Math.max.apply(0,s)}}else this.fitToGeometryCache=tC(t.path(i));return this.fitToGeometryCache}return this.projection.bounds||tk.compositeBounds(e)}getScale(){return 256/400.979322*Math.pow(2,this.zoom)}getSVGTransform(){let{x:t,y:e,width:i,height:o}=this.playingField,s=this.projection.forward(this.center),r=this.projection.hasCoordinates?-1:1,a=this.getScale(),n=a*r,l=t+i/2-s[0]*a,h=e+o/2-s[1]*n;return{scaleX:a,scaleY:n,translateX:l,translateY:h}}lonLatToPixels(t){let e=this.lonLatToProjectedUnits(t);if(e)return this.projectedUnitsToPixels(e)}lonLatToProjectedUnits(t){let e=this.chart,i=e.mapTransforms;if(i){for(let o in i)if(Object.hasOwnProperty.call(i,o)&&i[o].hitZone){let s=e.transformFromLatLon(t,i[o]);if(s&&tT(s,i[o].hitZone.coordinates[0]))return s}return e.transformFromLatLon(t,i.default)}for(let e of this.insets)if(e.options.geoBounds&&tT({x:t.lon,y:t.lat},e.options.geoBounds.coordinates[0])){let i=e.projection.forward([t.lon,t.lat]),o=e.projectedUnitsToPixels({x:i[0],y:i[1]});return this.pixelsToProjectedUnits(o)}let o=this.projection.forward([t.lon,t.lat]);if(!o.outside)return{x:o[0],y:o[1]}}pixelsToLonLat(t){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(t))}pixelsToProjectedUnits(t){let{x:e,y:i}=t,o=this.getScale(),s=this.projection.forward(this.center),r=this.playingField,a=r.x+r.width/2,n=r.y+r.height/2;return{x:s[0]+(e-a)/o,y:s[1]-(i-n)/o}}projectedUnitsToLonLat(t){let e=this.chart,i=e.mapTransforms;if(i){for(let o in i)if(Object.hasOwnProperty.call(i,o)&&i[o].hitZone&&tT(t,i[o].hitZone.coordinates[0]))return e.transformToLatLon(t,i[o]);return e.transformToLatLon(t,i.default)}let o=this.projectedUnitsToPixels(t);for(let t of this.insets)if(t.hitZone&&tT(o,t.hitZone.coordinates[0])){let e=t.pixelsToProjectedUnits(o),i=t.projection.inverse([e.x,e.y]);return{lon:i[0],lat:i[1]}}let s=this.projection.inverse([t.x,t.y]);return{lon:s[0],lat:s[1]}}projectedUnitsToPixels(t){let e=this.getScale(),i=this.projection.forward(this.center),o=this.playingField,s=o.x+o.width/2,r=o.y+o.height/2;return{x:s-e*(i[0]-t.x),y:r+e*(i[1]-t.y)}}recommendMapView(t,e,i=!1){this.recommendedMapView={};let s=e.map(t=>this.getGeoMap(t)),r=[];s.forEach(t=>{if(t&&(Object.keys(this.recommendedMapView).length||(this.recommendedMapView=t["hc-recommended-mapview"]||{}),t.bbox)){let[e,i,o,s]=t.bbox;r.push({x1:e,y1:i,x2:o,y2:s})}});let a=r.length&&tk.compositeBounds(r);(0,o.fireEvent)(this,"onRecommendMapView",{geoBounds:a,chart:t},function(){if(a&&this.recommendedMapView){if(!this.recommendedMapView.projection){let{x1:t,y1:e,x2:i,y2:o}=a;this.recommendedMapView.projection=i-t>180&&o-e>90?{name:"EqualEarth",parallels:[0,0],rotation:[0]}:{name:"LambertConformalConic",parallels:[e,o],rotation:[-(t+i)/2]}}this.recommendedMapView.insets||(this.recommendedMapView.insets=void 0)}}),this.geoMap=s[0],i&&t.hasRendered&&!t.userOptions.mapView?.projection&&this.recommendedMapView&&this.update(this.recommendedMapView)}redraw(t){this.chart.series.forEach(t=>{t.useMapGeometry&&(t.isDirty=!0)}),this.chart.redraw(t)}setView(t,e,i=!0,s){t&&(this.center=t),"number"==typeof e&&("number"==typeof this.minZoom&&(e=Math.max(e,this.minZoom)),"number"==typeof this.options.maxZoom&&(e=Math.min(e,this.options.maxZoom)),(0,o.isNumber)(e)&&(this.zoom=e));let r=this.getProjectedBounds();if(r){let t=this.projection.forward(this.center),{x:e,y:i,width:o,height:s}=this.playingField,a=this.getScale(),n=this.projectedUnitsToPixels({x:r.x1,y:r.y1}),l=this.projectedUnitsToPixels({x:r.x2,y:r.y2}),h=[(r.x1+r.x2)/2,(r.y1+r.y2)/2];if(!this.chart.series.some(t=>t.isDrilling)){let r=n.x,p=l.y,d=l.x,c=n.y;d-r<o?t[0]=h[0]:r<e&&d<e+o?t[0]+=Math.max(r-e,d-o-e)/a:d>e+o&&r>e&&(t[0]+=Math.min(d-o-e,r-e)/a),c-p<s?t[1]=h[1]:p<i&&c<i+s?t[1]-=Math.max(p-i,c-s-i)/a:c>i+s&&p>i&&(t[1]-=Math.min(c-s-i,p-i)/a),this.center=this.projection.inverse(t)}this.insets.forEach(t=>{t.options.field&&(t.hitZone=t.getHitZone(),t.playingField=t.getField())}),this.render()}(0,o.fireEvent)(this,"afterSetView"),i&&this.redraw(s)}setUpEvents(){let t,e,i,{chart:s}=this,r=r=>{let{lastTouches:a,pinchDown:n}=s.pointer,l=this.projection,h=r.touches,{mouseDownX:p,mouseDownY:d}=s,c=0;if(n?.length===1?(p=n[0].chartX,d=n[0].chartY):n?.length===2&&(p=(n[0].chartX+n[1].chartX)/2,d=(n[0].chartY+n[1].chartY)/2),h?.length===2&&a&&(c=Math.log(Math.sqrt(Math.pow(a[0].chartX-a[1].chartX,2)+Math.pow(a[0].chartY-a[1].chartY,2))/Math.sqrt(Math.pow(h[0].chartX-h[1].chartX,2)+Math.pow(h[0].chartY-h[1].chartY,2)))/Math.log(.5)),(0,o.isNumber)(p)&&(0,o.isNumber)(d)){let a=`${p},${d}`,{chartX:n,chartY:u}=r.originalEvent;h?.length===2&&(n=(h[0].chartX+h[1].chartX)/2,u=(h[0].chartY+h[1].chartY)/2),a!==e&&(e=a,t=this.projection.forward(this.center),i=(this.projection.options.rotation||[0,0]).slice());let m=l.def&&l.def.bounds,g=m&&tL(m,this.playingField)||-1/0;if("Orthographic"===l.options.name&&2>(h?.length||0)&&(this.minZoom||1/0)<1.3*g){let t=440/(this.getScale()*Math.min(s.plotWidth,s.plotHeight));if(i){let e=(p-n)*t-i[0],r=(0,o.clamp)(-i[1]-(d-u)*t,-80,80),a=this.zoom;this.update({projection:{rotation:[-e,-r]}},!1),this.fitToBounds(void 0,void 0,!1),this.zoom=a,s.redraw(!1)}}else if((0,o.isNumber)(n)&&(0,o.isNumber)(u)){let e=this.getScale(),i=this.projection.hasCoordinates?1:-1,o=this.projection.inverse([t[0]+(p-n)/e,t[1]-(d-u)/e*i]);isNaN(o[0]+o[1])||this.zoomBy(c,o,void 0,!1)}r.preventDefault()}};(0,o.addEvent)(s,"pan",r),(0,o.addEvent)(s,"touchpan",r),(0,o.addEvent)(s,"selection",t=>{if(t.resetSelection)this.zoomBy();else{let e=t.x-s.plotLeft,i=t.y-s.plotTop,{y:o,x:r}=this.pixelsToProjectedUnits({x:e,y:i}),{y:a,x:n}=this.pixelsToProjectedUnits({x:e+t.width,y:i+t.height});this.fitToBounds({x1:r,y1:o,x2:n,y2:a},void 0,!0,!t.originalEvent.touches&&void 0),/^touch/.test(t.originalEvent.type)||s.showResetZoom(),t.preventDefault()}})}render(){let t=this.chart;this.group?this.groupClipRect&&this.groupClipRect.animate(t.plotBox):(this.groupClipRect=t.renderer.clipRect(t.plotBox),this.group=t.renderer.g("map-view").attr({zIndex:4}).clip(this.groupClipRect).add())}update(t,e=!0,i){let s=t.projection,r=s&&tv.toString(s)!==tv.toString(this.options.projection),a=!1;(0,o.merge)(!0,this.userOptions,t),(0,o.merge)(!0,this.options,t),"insets"in t&&(this.insets.forEach(t=>t.destroy()),this.insets.length=0,a=!0),(r||"fitToGeometry"in t)&&delete this.fitToGeometryCache,(r||a)&&(this.chart.series.forEach(t=>{let e=t.transformGroups;if(t.clearBounds&&t.clearBounds(),t.isDirty=!0,t.isDirtyData=!0,a&&e)for(;e.length>1;){let t=e.pop();t&&t.destroy()}}),r&&(this.projection=new tv(this.options.projection)),a&&this.createInsets(),!t.center&&Object.hasOwnProperty.call(t,"zoom")&&!(0,o.isNumber)(t.zoom)&&this.fitToBounds(void 0,void 0,!1)),t.center||(0,o.isNumber)(t.zoom)?this.setView(this.options.center,t.zoom,!1):"fitToGeometry"in t&&this.fitToBounds(void 0,void 0,!1),e&&this.redraw(i)}zoomBy(t,e,i,o){let s=this.chart,r=this.projection.forward(this.center);if("number"==typeof t){let a,n,l,h=this.zoom+t;if(i){let[t,e]=i,o=this.getScale(),a=t-s.plotLeft-s.plotWidth/2,h=e-s.plotTop-s.plotHeight/2;n=r[0]+a/o,l=r[1]+h/o}if("number"==typeof n&&"number"==typeof l){let t=1-Math.pow(2,this.zoom)/Math.pow(2,h),e=r[0]-n,i=r[1]-l;r[0]-=e*t,r[1]+=i*t,a=this.projection.inverse(r)}this.setView(e||a,h,void 0,o)}else this.fitToBounds(void 0,void 0,void 0,o)}}class tz extends tk{constructor(t,e){if(super(t.chart,e),this.id=e.id,this.mapView=t,this.options=(0,o.merge)({center:[0,0]},t.options.insetOptions,e),this.allBounds=[],this.options.geoBounds){let e=t.projection.path(this.options.geoBounds);this.geoBoundsProjectedBox=tC(e),this.geoBoundsProjectedPolygon=e.map(t=>[t[1]||0,t[2]||0])}}getField(t=!0){let e=this.hitZone;if(e){let i=t?this.padding:[0,0,0,0],s=e.coordinates[0],r=s.map(t=>t[0]),a=s.map(t=>t[1]),n=Math.min.apply(0,r)+i[3],l=Math.max.apply(0,r)-i[1],h=Math.min.apply(0,a)+i[0],p=Math.max.apply(0,a)-i[2];if((0,o.isNumber)(n)&&(0,o.isNumber)(h))return{x:n,y:h,width:l-n,height:p-h}}return super.getField.call(this,t)}getHitZone(){let{chart:t,mapView:e,options:i}=this,{coordinates:s}=i.field||{};if(s){let r=s[0];if("percent"===i.units){let s="mapBoundingBox"===i.relativeTo&&e.getMapBBox()||(0,o.merge)(t.plotBox,{x:0,y:0});r=r.map(t=>[(0,o.relativeLength)(`${t[0]}%`,s.width,s.x),(0,o.relativeLength)(`${t[1]}%`,s.height,s.y)])}return{type:"Polygon",coordinates:[r]}}}getProjectedBounds(){return tk.compositeBounds(this.allBounds)}isInside(t){let{geoBoundsProjectedBox:e,geoBoundsProjectedPolygon:i}=this;return!!(e&&t.x>=e.x1&&t.x<=e.x2&&t.y>=e.y1&&t.y<=e.y2&&i&&tT(t,i))}render(){let{chart:t,mapView:e,options:i}=this,s=i.borderPath||i.field;if(s&&e.group){let r=!0;this.border||(this.border=t.renderer.path().addClass("highcharts-mapview-inset-border").add(e.group),r=!1),t.styledMode||this.border.attr({stroke:i.borderColor,"stroke-width":i.borderWidth});let a=this.border.strokeWidth(),n="mapBoundingBox"===i.relativeTo&&e.getMapBBox()||e.playingField,l=(s.coordinates||[]).reduce((e,s)=>s.reduce((e,s,r)=>{let[l,h]=s;return"percent"===i.units&&(l=t.plotLeft+(0,o.relativeLength)(`${l}%`,n.width,n.x),h=t.plotTop+(0,o.relativeLength)(`${h}%`,n.height,n.y)),l=(0,o.crisp)(l,a),h=(0,o.crisp)(h,a),e.push(0===r?["M",l,h]:["L",l,h]),e},e),[]);this.border[r?"animate":"attr"]({d:l})}}destroy(){this.border&&(this.border=this.border.destroy()),this.eventsToUnbind.forEach(t=>t())}setUpEvents(){}}let{noop:tE}=c(),{splitPath:tN}=G,{column:tB,scatter:tS}=T().seriesTypes;class tO extends tS{constructor(){super(...arguments),this.tupleKey="hc-key"}animate(t){let{chart:e,group:i}=this,s=(0,o.animObject)(this.options.animation);t?i.attr({translateX:e.plotLeft+e.plotWidth/2,translateY:e.plotTop+e.plotHeight/2,scaleX:.001,scaleY:.001}):i.animate({translateX:e.plotLeft,translateY:e.plotTop,scaleX:1,scaleY:1},s)}clearBounds(){this.points.forEach(t=>{delete t.bounds,delete t.insetIndex,delete t.projectedPath}),delete this.bounds}doFullTranslate(){return!!(this.isDirtyData||this.chart.isResizing||!this.hasRendered)}drawMapDataLabels(){super.drawDataLabels(),this.dataLabelsGroups?.forEach(t=>t?.clip(this.chart.clipRect))}drawPoints(){let t=this,{chart:e,group:i,transformGroups:s=[]}=this,{mapView:r,renderer:a}=e;if(r){this.transformGroups=s,s[0]||(s[0]=a.g().add(i));for(let t=0,e=r.insets.length;t<e;++t)s[t+1]||s.push(a.g().add(i));this.doFullTranslate()&&(this.points.forEach(t=>{let{graphic:e}=t;t.group=s["number"==typeof t.insetIndex?t.insetIndex+1:0],e&&e.parentGroup!==t.group&&e.add(t.group)}),tB.prototype.drawPoints.apply(this),this.points.forEach(i=>{let s=i.graphic;if(s){let r=s.animate,a="";i.name&&(a+="highcharts-name-"+i.name.replace(/ /g,"-").toLowerCase()),i.properties?.["hc-key"]&&(a+=" highcharts-key-"+i.properties["hc-key"].toString().toLowerCase()),a&&s.addClass(a),e.styledMode&&s.css(this.pointAttribs(i,i.selected&&"select"||void 0)),s.attr({visibility:!i.visible&&(i.visible||i.isNull)?"hidden":"inherit"}),s.animate=function(i,a,n){let l=(0,o.isNumber)(i["stroke-width"])&&!(0,o.isNumber)(s["stroke-width"]),h=(0,o.isNumber)(s["stroke-width"])&&!(0,o.isNumber)(i["stroke-width"]);if(l||h){let o=(t.getStrokeWidth(t.options)??1)/(e.mapView?.getScale()||1);l&&(s["stroke-width"]=o),h&&(i["stroke-width"]=o)}return r.call(s,i,a,h?function(){s.element.removeAttribute("stroke-width"),delete s["stroke-width"],n&&n.apply(this,arguments)}:n)}}})),s.forEach((i,s)=>{let n=(0===s?r:r.insets[s-1]).getSVGTransform(),l=this.getStrokeWidth(this.options)??1,h=n.scaleX,p=n.scaleY>0?1:-1,d=e=>{(t.points||[]).forEach(t=>{let i,o=t.graphic;o?.["stroke-width"]&&(i=this.getStrokeWidth(t.options))&&o.attr({"stroke-width":i/e})})};if(a.globalAnimation&&e.hasRendered&&r.allowTransformAnimation){let t=Number(i.attr("translateX")),e=Number(i.attr("translateY")),s=Number(i.attr("scaleX")),r=(o,r)=>{let a=s+(h-s)*r.pos;i.attr({translateX:t+(n.translateX-t)*r.pos,translateY:e+(n.translateY-e)*r.pos,scaleX:a,scaleY:a*p,"stroke-width":l/a}),d(a)},c=(0,o.merge)((0,o.animObject)(a.globalAnimation)),u=c.step;c.step=function(){u&&u.apply(this,arguments),r.apply(this,arguments)},i.attr({animator:0}).animate({animator:1},c,(function(){"boolean"!=typeof a.globalAnimation&&a.globalAnimation.complete&&a.globalAnimation.complete({applyDrilldown:!0}),(0,o.fireEvent)(this,"mapZoomComplete")}).bind(this))}else(0,o.stop)(i),i.attr((0,o.merge)(n,{"stroke-width":l/h})),d(h)}),this.isDrilling||this.drawMapDataLabels()}}getProjectedBounds(){if(!this.bounds&&this.chart.mapView){let{insets:t,projection:e}=this.chart.mapView,i=[];(this.points||[]).forEach(s=>{if(s.path||s.geometry){if("string"==typeof s.path?s.path=tN(s.path):(0,o.isArray)(s.path)&&"M"===s.path[0]&&(s.path=this.chart.renderer.pathToSegments(s.path)),!s.bounds){let i=s.getProjectedBounds(e);if(i){s.labelrank=s.labelrank??(i.x2-i.x1)*(i.y2-i.y1);let{midX:e,midY:r}=i;if(t&&(0,o.isNumber)(e)&&(0,o.isNumber)(r)){let a=(0,o.find)(t,t=>t.isInside({x:e,y:r}));a&&(delete s.projectedPath,(i=s.getProjectedBounds(a.projection))&&a.allBounds.push(i),s.insetIndex=t.indexOf(a))}s.bounds=i}}s.bounds&&void 0===s.insetIndex&&i.push(s.bounds)}}),this.bounds=tk.compositeBounds(i)}return this.bounds}getStrokeWidth(t){let e=this.pointAttrToOptions;return t[e?.["stroke-width"]||"borderWidth"]}hasData(){return!!this.dataTable.getModified().rowCount}pointAttribs(t,e){let{mapView:i,styledMode:s}=(t?.series||this).chart,r=s&&t?this.colorAttribs(t):tB.prototype.pointAttribs.call(this,t,e),a=this.getStrokeWidth(t?.options||{});if(e){let i=(0,o.merge)(this.options.states?.[e],t?.options.states?.[e]||{}),s=this.getStrokeWidth(i);(0,o.defined)(s)&&(a=s),r.stroke=i.borderColor??t?.color}a&&i&&(a/=i.getScale());let n=this.getStrokeWidth(this.options);return r.dashstyle&&i&&(0,o.isNumber)(n)&&(a=n/i.getScale()),t?.visible===!1&&(r.fill=this.options.nullColor),t?.isNull&&this.options.nullInteraction&&(r.opacity=1),(0,o.defined)(a)?r["stroke-width"]=a:delete r["stroke-width"],r["stroke-linecap"]=r["stroke-linejoin"]=this.options.linecap,r}matchPoints(){return!this.hasProcessedDataTable&&super.matchPoints.apply(this,arguments)}setData(t,e=!0,i,o){delete this.bounds,super.setData(t,!1,void 0,o),this.processData(),this.generatePoints(),e&&this.chart.redraw(i)}getDataColumnKeys(){return this.pointArrayMap}processData(){let t,e,i,s=this.options,r=this.dataTable,a=this.chart,n=a.options.chart,l=this.joinBy,h=[],p={},d=this.chart.mapView,u=d&&((0,o.isObject)(s.mapData,!0)?d.getGeoMap(s.mapData):d.geoMap),m=a.mapTransforms=n.mapTransforms||u?.["hc-transform"]||a.mapTransforms,g=new S;if(this.hasProcessedDataTable=!0,m&&(0,o.objectEach)(m,t=>{t.rotation&&(t.cosAngle=Math.cos(t.rotation),t.sinAngle=Math.sin(t.rotation))}),(0,o.isArray)(s.mapData)?i=s.mapData:u?.type==="FeatureCollection"&&(this.mapTitle=u.title,i=c().geojson(u,this.type,this)),Object.entries(r.columns).forEach(([t,e])=>{g.setColumn(t,e)}),"_i"===l[0]&&g.setColumn("_i",Array.from({length:g.rowCount},(t,e)=>e)),i){this.mapData=i,this.mapMap={};for(let o=0;o<i.length;o++)e=(t=i[o]).properties,t._i=o,l[0]&&e&&e[l[0]]&&(t[l[0]]=e[l[0]]),p[t[l[0]]]=t;if(this.mapMap=p,l[1]){let t=l[1];for(let e=0;e<g.rowCount;e++){let i="_i"===t?e:(0,o.getNestedProperty)(t,g.getRowObject(e));p[i]&&h.push(p[i])}}if(s.allAreas){let t="|"+h.map(function(t){return t&&t[l[0]]}).join("|")+"|";i.forEach(e=>{l[0]&&-1!==t.indexOf("|"+e[l[0]]+"|")||g.setRow((0,o.merge)(e,{value:null}))})}}this.dataTable.modified=g}setOptions(t){let e=super.setOptions(t),i=e.joinBy;return null===e.joinBy&&(i="_i"),i&&(this.joinBy=(0,o.splat)(i),this.joinBy[1]||(this.joinBy[1]=this.joinBy[0])),e}translate(){let t=this.doFullTranslate(),e=this.chart.mapView,i=e?.projection;if(this.chart.hasRendered&&(this.isDirtyData||!this.hasRendered)&&(this.processData(),this.generatePoints(),delete this.bounds,!e||e.userOptions.center||(0,o.isNumber)(e.userOptions.zoom)||e.zoom!==e.minZoom?this.getProjectedBounds():e.fitToBounds(void 0,void 0,!1)),e){let s=e.getSVGTransform();this.points.forEach(r=>{let a=(0,o.isNumber)(r.insetIndex)&&e.insets[r.insetIndex].getSVGTransform()||s;a&&r.bounds&&(0,o.isNumber)(r.bounds.midX)&&(0,o.isNumber)(r.bounds.midY)&&(r.plotX=r.bounds.midX*a.scaleX+a.translateX,r.plotY=r.bounds.midY*a.scaleY+a.translateY),t&&(r.shapeType="path",r.shapeArgs={d:Z.getProjectedPath(r,i)}),!r.hiddenInDataClass&&(r.projectedPath&&!r.projectedPath.length?r.setVisible(!1):r.visible||r.setVisible(!0))})}(0,o.fireEvent)(this,"afterTranslate")}update(t){t.mapData&&this.chart.mapView?.recommendMapView(this.chart,[this.chart.options.chart.map,...(this.chart.options.series||[]).map((e,i)=>i===this._i?t.mapData:e.mapData)],!0),super.update.apply(this,arguments)}}tO.defaultOptions=(0,o.merge)(tS.defaultOptions,{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,distance:0,formatter:function(){let{numberFormatter:t}=this.series.chart,{value:e}=this.point;return(0,o.isNumber)(e)?t(e,-1):this.point.name||""},inside:!0,overflow:!1,padding:[0,2],verticalAlign:"middle"},linecap:"round",marker:null,nullColor:"var(--highcharts-neutral-color-3)",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:"var(--highcharts-neutral-color-20)",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:void 0,borderColor:"var(--highcharts-neutral-color-60)",borderWidth:2},normal:{animation:!0},select:{color:"var(--highcharts-neutral-color-20)"}},legendSymbol:"rectangle"}),(0,o.extend)(tO.prototype,{type:"map",axisTypes:k.seriesMembers.axisTypes,colorAttribs:k.seriesMembers.colorAttribs,colorKey:k.seriesMembers.colorKey,directTouch:!0,drawDataLabels:tE,drawGraph:tE,forceDL:!0,getCenter:E.getCenter,getExtremesFromAll:!0,getSymbol:tE,isCartesian:!1,parallelArrays:k.seriesMembers.parallelArrays,pointArrayMap:k.seriesMembers.pointArrayMap,pointClass:Z,preserveAspectRatio:!0,searchPoint:tE,trackerGroups:k.seriesMembers.trackerGroups,useMapGeometry:!0}),k.compose(tO),T().registerSeriesType("map",tO);let tD=tO;class tI extends tD{pointAttribs(t,e){let i=super.pointAttribs(t,e);return i.fill=this.options.fillColor,i}}tI.defaultOptions=(0,o.merge)(tD.defaultOptions,{lineWidth:1,fillColor:"none",legendSymbol:"lineMarker"}),(0,o.extend)(tI.prototype,{type:"mapline",colorProp:"stroke",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),T().registerSeriesType("mapline",tI);let{scatter:tV}=T().seriesTypes;class tR extends tV.prototype.pointClass{isValid(){return!!(this.options.geometry||(0,o.isNumber)(this.x)&&(0,o.isNumber)(this.y)||(0,o.isNumber)(this.options.lon)&&(0,o.isNumber)(this.options.lat))}}i.d({},{});let{noop:tX}=c(),{map:tG,scatter:tF}=T().seriesTypes;class tY extends tF{constructor(){super(...arguments),this.clearBounds=tG.prototype.clearBounds}drawDataLabels(){super.drawDataLabels(),this.dataLabelsGroups?.forEach(t=>{t?.clip(this.chart.clipRect)})}projectPoint(t){let e=this.chart.mapView;if(e){let{geometry:i,lon:s,lat:r}=t,a=i&&"Point"===i.type&&i.coordinates;if((0,o.isNumber)(s)&&(0,o.isNumber)(r)&&(a=[s,r]),a)return e.lonLatToProjectedUnits({lon:a[0],lat:a[1]})}}translate(){let t=this.chart.mapView;if(this.generatePoints(),this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds()),t){let e=t.getSVGTransform(),{hasCoordinates:i}=t.projection;this.points.forEach(s=>{let r,{x:a,y:n}=s,l=(0,o.isNumber)(s.insetIndex)&&t.insets[s.insetIndex].getSVGTransform()||e,h=this.projectPoint(s.options)||s.properties&&this.projectPoint(s.properties);if(h?(a=h.x,n=h.y):s.bounds&&(a=s.bounds.midX,n=s.bounds.midY,l&&(0,o.isNumber)(a)&&(0,o.isNumber)(n)&&(s.plotX=a*l.scaleX+l.translateX,s.plotY=n*l.scaleY+l.translateY,r=!0)),(0,o.isNumber)(a)&&(0,o.isNumber)(n)){if(!r){let e=t.projectedUnitsToPixels({x:a,y:n});s.plotX=e.x,s.plotY=i?e.y:this.chart.plotHeight-e.y}}else s.y=s.plotX=s.plotY=void 0;s.isInside=this.isPointInside(s),s.zone=this.zones.length?s.getZone():void 0})}(0,o.fireEvent)(this,"afterTranslate")}}tY.defaultOptions=(0,o.merge)(tF.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"var(--highcharts-neutral-color-100)"}},legendSymbol:"lineMarker",stickyTracking:!0,tooltip:{pointFormat:"{#if point.name}{point.name}{else}Lat: {point.lat}, Lon: {point.lon}{/if}"}}),V().prototype.symbols.mapmarker=(t,e,i,o,s)=>{let r,a,n=s&&"legend"===s.context;n?(r=t+i/2,a=e+o):s&&"number"==typeof s.anchorX&&"number"==typeof s.anchorY?(r=s.anchorX,a=s.anchorY):(r=t+i/2,a=e+o/2,e-=o);let l=n?o/3:o/2;return[["M",r,a],["C",r,a,r-l,e+1.5*l,r-l,e+l],["A",l,l,1,1,1,r+l,e+l],["C",r+l,e+1.5*l,r,a,r,a],["Z"]]},(0,o.extend)(tY.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:tR,searchPoint:tX,useMapGeometry:!0}),T().registerSeriesType("mappoint",tY);let tU={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:"0.9em",color:"var(--highcharts-neutral-color-100)"},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},{noop:tZ}=c(),tW=class{constructor(t,e){this.setState=tZ,this.init(t,e)}init(t,e){this.options=t,this.visible=!0,this.chart=e.chart,this.legend=e}addToLegend(t){t.splice(this.options.legendIndex,0,this)}drawLegendSymbol(t){let e,i=t.options.itemDistance??20,s=this.legendItem||{},r=this.options,a=r.ranges,n=r.connectorDistance;if(!a||!a.length||!(0,o.isNumber)(a[0].value)){t.options.bubbleLegend.autoRanges=!0;return}(0,o.stableSort)(a,function(t,e){return e.value-t.value}),this.ranges=a,this.setOptions(),this.render();let l=this.getMaxLabelSize(),h=this.ranges[0].radius,p=2*h;e=(e=n-h+l.width)>0?e:0,this.maxLabel=l,this.movementX="left"===r.labels.align?e:0,s.labelWidth=p+e+i,s.labelHeight=p+l.height/2}setOptions(){let t=this.ranges,e=this.options,i=this.chart.series[e.seriesIndex],s=this.legend.baseline,r={zIndex:e.zIndex,"stroke-width":e.borderWidth},a={zIndex:e.zIndex,"stroke-width":e.connectorWidth},n={align:this.legend.options.rtl||"left"===e.labels.align?"right":"left",zIndex:e.zIndex},l=i.options.marker.fillOpacity,h=this.chart.styledMode;t.forEach(function(p,d){h||(r.stroke=p.borderColor??e.borderColor??i.color,r.fill=p.color||e.color,r.fill||(r.fill=i.color,r["fill-opacity"]=l??1),a.stroke=p.connectorColor??e.connectorColor??i.color),t[d].radius=this.getRangeRadius(p.value),t[d]=(0,o.merge)(t[d],{center:t[0].radius-t[d].radius+s}),h||(0,o.merge)(!0,t[d],{bubbleAttribs:(0,o.merge)(r),connectorAttribs:(0,o.merge)(a),labelAttribs:n})},this)}getRangeRadius(t){let e=this.options,i=this.options.seriesIndex,o=this.chart.series[i],s=e.ranges[0].value,r=e.ranges[e.ranges.length-1].value,a=e.minSize,n=e.maxSize;return o.getRadius.call(this,r,s,a,n,t)}render(){let t=this.legendItem||{},e=this.chart.renderer,i=this.options.zThreshold;for(let o of(this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),t.symbol=e.g("bubble-legend"),t.label=e.g("bubble-legend-item").css(this.legend.itemStyle||{}),t.symbol.translateX=0,t.symbol.translateY=0,t.symbol.add(t.label),t.label.add(t.group),this.ranges))o.value>=i&&this.renderRange(o);this.hideOverlappingLabels()}renderRange(t){let e=this.ranges[0],i=this.legend,o=this.options,s=o.labels,r=this.chart,a=r.series[o.seriesIndex],n=r.renderer,l=this.symbols,h=l.labels,p=t.center,d=Math.abs(t.radius),c=o.connectorDistance||0,u=s.align,m=i.options.rtl,g=o.borderWidth,b=o.connectorWidth,f=e.radius||0,y=p-d-g/2+b/2,x=(y%1?1:.5)-(b%2?0:.5),M=n.styledMode,v=m||"left"===u?-c:c;"center"===u&&(v=0,o.connectorDistance=0,t.labelAttribs.align="center"),l.bubbleItems.push(n.circle(f,p+x,d).attr(M?{}:t.bubbleAttribs).addClass((M?"highcharts-color-"+a.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(o.className||"")).add(this.legendItem.symbol)),l.connectors.push(n.path(n.crispLine([["M",f,y],["L",f+v,y]],o.connectorWidth)).attr(M?{}:t.connectorAttribs).addClass((M?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(o.connectorClassName||"")).add(this.legendItem.symbol));let w=n.text(this.formatLabel(t)).attr(M?{}:t.labelAttribs).css(M?{}:s.style).addClass("highcharts-bubble-legend-labels "+(o.labels.className||"")).add(this.legendItem.symbol),T={x:f+v+o.labels.x,y:y+o.labels.y+.4*w.getBBox().height};w.attr(T),h.push(w),w.placed=!0,w.alignAttr=T}getMaxLabelSize(){let t,e;return this.symbols.labels.forEach(function(i){e=i.getBBox(!0),t=t?e.width>t.width?e:t:e}),t||{}}formatLabel(t){let e=this.options,i=e.labels.formatter,o=e.labels.format,{numberFormatter:s}=this.chart;return o?_().format(o,t,this.chart):i?i.call(t,t):s(t.value,1)}hideOverlappingLabels(){let t=this.chart,e=this.options.labels.allowOverlap,i=this.symbols;!e&&i&&(t.hideOverlappingLabels(i.labels),i.labels.forEach(function(t,e){t.newOpacity?t.newOpacity!==t.oldOpacity&&i.connectors[e].show():i.connectors[e].hide()}))}getRanges(){let t=this.legend.bubbleLegend,e=t.chart.series,i=t.options.ranges,s,r,a=Number.MAX_VALUE,n=-Number.MAX_VALUE;return e.forEach(function(t){t.isBubble&&!t.ignoreSeries&&(r=t.getColumn("z").filter(o.isNumber)).length&&(a=t.options.zMin??Math.min(a,Math.max((0,o.arrayMin)(r),!1===t.options.displayNegative?t.options.zThreshold:-Number.MAX_VALUE)),n=t.options.zMax??Math.max(n,(0,o.arrayMax)(r)))}),s=a===n?[{value:n}]:[{value:a},{value:(a+n)/2},{value:n,autoRanges:!0}],i.length&&i[0].radius&&s.reverse(),s.forEach(function(t,e){i&&i[e]&&(s[e]=(0,o.merge)(i[e],t))}),s}predictBubbleSizes(){let t=this.chart,e=t.legend.options,i=e.floating,o="horizontal"===e.layout,s=o?t.legend.lastLineHeight:0,r=t.plotSizeX,a=t.plotSizeY,n=t.series[this.options.seriesIndex],l=n.getPxExtremes(),h=Math.ceil(l.minPxSize),p=Math.ceil(l.maxPxSize),d=Math.min(a,r),c,u=n.options.maxSize;return i||!/%$/.test(u)?c=p:(c=(d+s)*(u=parseFloat(u))/100/(u/100+1),(o&&a-c>=r||!o&&r-c>=a)&&(c=p)),[h,Math.ceil(c)]}updateRanges(t,e){let i=this.legend.options.bubbleLegend;i.minSize=t,i.maxSize=e,i.ranges=this.getRanges()}correctSizes(){let t=this.legend,e=this.chart.series[this.options.seriesIndex].getPxExtremes();Math.abs(Math.ceil(e.maxPxSize)-this.options.maxSize)>1&&(this.updateRanges(this.options.minSize,e.maxPxSize),t.render())}},{setOptions:tH}=c(),{composed:t_}=c();function tq(t,e,i){let s,r,a,n=this.legend,l=tK(this)>=0;n&&n.options.enabled&&n.bubbleLegend&&n.options.bubbleLegend.autoRanges&&l?(s=n.bubbleLegend.options,r=n.bubbleLegend.predictBubbleSizes(),n.bubbleLegend.updateRanges(r[0],r[1]),s.placed||(n.group.placed=!1,n.allItems.forEach(t=>{(a=t.legendItem||{}).group&&(a.group.translateY=void 0)})),n.render(),s.placed||(this.getMargins(),this.axes.forEach(t=>{t.setScale(),t.updateNames(),(0,o.objectEach)(t.ticks,function(t){t.isNew=!0,t.isNewLabel=!0})}),this.getMargins()),s.placed=!0,t.call(this,e,i),n.bubbleLegend.correctSizes()):(t.call(this,e,i),n&&n.options.enabled&&n.bubbleLegend&&n.render())}function tK(t){let e=t.series,i=0;for(;i<e.length;){if(e[i]&&e[i].isBubble&&e[i].visible&&e[i].dataTable.rowCount)return i;i++}return -1}function t$(t){let e=this.bubbleLegend,i=this.options,o=i.bubbleLegend,s=tK(this.chart);e&&e.ranges&&e.ranges.length&&(o.ranges.length&&(o.autoRanges=!!o.ranges[0].autoRanges),this.destroyItem(e)),s>=0&&i.enabled&&o.enabled&&(o.seriesIndex=s,this.bubbleLegend=new tW(o,this),this.bubbleLegend.addToLegend(t.allItems))}function tJ(){if(this.bubbleLegend){let t=this.allItems,e=this.options.rtl,i=function(t){let e=t.allItems,i=[],o=e.length,s,r,a,n=0,l=0;for(n=0;n<o;n++)if(r=e[n].legendItem||{},a=(e[n+1]||{}).legendItem||{},r.labelHeight&&(e[n].itemHeight=r.labelHeight),e[n]===e[o-1]||r.y!==a.y){for(i.push({height:0}),s=i[i.length-1];l<=n;l++)e[l].itemHeight>s.height&&(s.height=e[l].itemHeight);s.step=n}return i}(this),o,s,r,a,n=0;t.forEach((t,l)=>{(a=t.legendItem||{}).group&&(o=a.group.translateX||0,s=a.y||0,((r=t.movementX)||e&&t.ranges)&&(r=e?o-t.options.maxSize/2:o+r,a.group.attr({translateX:r})),l>i[n].step&&n++,a.group.attr({translateY:Math.round(s+i[n].height/2)}),a.y=s+i[n].height/2)})}}function tQ(t){let e;if(t.defaultPrevented)return!1;let i=t.legendItem,o=this.chart,s=i.visible;this&&this.bubbleLegend&&(i.visible=!s,i.ignoreSeries=s,e=tK(o)>=0,this.bubbleLegend.visible!==e&&(this.update({bubbleLegend:{enabled:e}}),this.bubbleLegend.visible=e),i.visible=s)}let t0=function(t,e){(0,o.pushUnique)(t_,"Series.BubbleLegend")&&(tH({legend:{bubbleLegend:tU}}),(0,o.wrap)(t.prototype,"drawChartBox",tq),(0,o.addEvent)(e,"afterGetAllItems",t$),(0,o.addEvent)(e,"afterRender",tJ),(0,o.addEvent)(e,"itemClick",tQ))},t1=e.default.Point;var t2=i.n(t1);let{seriesTypes:{scatter:{prototype:{pointClass:t3}}}}=T();class t6 extends t3{haloPath(t){let e=(t&&this.marker&&this.marker.radius||0)+t;if(this.series.chart.inverted){let t=this.pos()||[0,0],{xAxis:i,yAxis:o,chart:s}=this.series,r=2*e;return s.renderer.symbols.circle((i?.len||0)-t[1]-e,(o?.len||0)-t[0]-e,r,r)}return t2().prototype.haloPath.call(this,e)}}(0,o.extend)(t6.prototype,{ttBelow:!1});let t8=t6,{composed:t7,noop:t9}=c(),{series:t4,seriesTypes:{column:{prototype:t5},scatter:et}}=T();function ee(){let t=this.len,{coll:e,isXAxis:i,min:s}=this,r=(this.max||0)-(s||0),a=0,n=t,l=t/r,h;("xAxis"===e||"yAxis"===e)&&(this.series.forEach(t=>{if(t.bubblePadding&&t.reserveSpace()){this.allowZoomOutside=!0,h=!0;let e=t.getColumn(i?"x":"y");if(i&&((t.onPoint||t).getRadii(0,0,t),t.onPoint&&(t.radii=t.onPoint.radii)),r>0){let i=e.length;for(;i--;)if((0,o.isNumber)(e[i])&&this.dataMin<=e[i]&&e[i]<=this.max){let o=t.radii&&t.radii[i]||0;a=Math.min((e[i]-s)*l-o,a),n=Math.max((e[i]-s)*l+o,n)}}}}),h&&r>0&&!this.logarithmic&&(n-=t,l*=(t+Math.max(0,a)-Math.min(n,t))/t,[["min","userMin",a],["max","userMax",n]].forEach(t=>{void 0===(this.options[t[0]]??this[t[1]])&&(this[t[0]]+=t[2]/l)})))}function ei(){let{ticks:t,tickPositions:e,dataMin:i=0,dataMax:o=0,categories:s}=this,r=this.options.type;if((s?.length||"category"===r)&&this.series.find(t=>t.bubblePadding)){let s=e.length;for(;s--;){let r=t[e[s]],a=r.pos||0;(a>o||a<i)&&r.label?.hide()}}}class eo extends et{static compose(t,e,i){t0(e,i),(0,o.pushUnique)(t7,"Series.Bubble")&&((0,o.addEvent)(t,"foundExtremes",ee),(0,o.addEvent)(t,"afterRender",ei))}animate(t){!t&&this.points.length<this.options.animationLimit&&this.points.forEach(function(t){let{graphic:e,plotX:i=0,plotY:o=0}=t;e&&e.width&&(this.hasRendered||e.attr({x:i,y:o,width:1,height:1}),e.animate(this.markerAttribs(t),this.options.animation))},this)}getRadii(){let t=[...this.getColumn("z",!1,!0)],e=this.getColumn("y"),i=[],o,s,r,a=this.chart.bubbleZExtremes,{minPxSize:n,maxPxSize:l}=this.getPxExtremes();if(!a){let t,e=Number.MAX_VALUE,i=-Number.MAX_VALUE;this.chart.series.forEach(o=>{if(o.bubblePadding&&o.reserveSpace()){let s=(o.onPoint||o).getZExtremes();s&&(e=Math.min(e??s.zMin,s.zMin),i=Math.max(i??s.zMax,s.zMax),t=!0)}}),t?(a={zMin:e,zMax:i},this.chart.bubbleZExtremes=a):a={zMin:0,zMax:0}}for(s=0,o=t.length;s<o;s++)r=t[s],i.push(this.getRadius(a.zMin,a.zMax,n,l,r,e&&e[s]));this.radii=i}getRadius(t,e,i,s,r,a){let n=this.options,l="width"!==n.sizeBy,h=n.zThreshold,p=e-t,d=.5;if(null===a||null===r)return null;if((0,o.isNumber)(r)){if(n.sizeByAbsoluteValue&&(r=Math.abs(r-h),e=p=Math.max(e-h,Math.abs(t-h)),t=0),r<t)return i/2-1;p>0&&(d=(r-t)/p)}return l&&d>=0&&(d=Math.sqrt(d)),Math.ceil(i+d*(s-i))/2}hasData(){return!!this.dataTable.rowCount}markerAttribs(t,e){let i=super.markerAttribs(t,e),{height:s=0,width:r=0}=i;return this.chart.inverted?(0,o.extend)(i,{x:(t.plotX||0)-r/2,y:(t.plotY||0)-s/2}):i}pointAttribs(t,e){let i=this.options.marker,o=i?.fillOpacity,s=t4.prototype.pointAttribs.call(this,t,e);return s["fill-opacity"]=o??1,s}translate(){super.translate.call(this),this.getRadii(),this.translateBubble()}translateBubble(){let{options:t,radii:e}=this,{minPxSize:i}=this.getPxExtremes();this.data.concat(this.condemnedPoints).forEach((s,r)=>{let{plotX:a=0,plotY:n=0}=s,l=s.condemned?s.marker?.radius||0:e?e[r]:0;"z"===this.zoneAxis&&(s.negative=(s.z||0)<(t.zThreshold||0)),(0,o.isNumber)(l)&&(s.marker=(0,o.extend)(s.marker,{radius:l,width:2*l,height:2*l})),(0,o.isNumber)(l)&&l>=i/2?s.dlBox={x:a-l,y:n-l,width:2*l,height:2*l}:(s.shapeArgs=s.plotY=s.dlBox=void 0,s.isInside=!1)})}getPxExtremes(){let t=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=e=>{let i;return"string"==typeof e&&(i=/%$/.test(e),e=parseInt(e,10)),i?t*e/100:e},i=e(this.options.minSize??8),o=Math.max(e(this.options.maxSize??"20%"),i);return{minPxSize:i,maxPxSize:o}}getZExtremes(){let t=this.options,e=this.getColumn("z").filter(o.isNumber);if(e.length){let i=t.zMin??(0,o.clamp)((0,o.arrayMin)(e),!1===t.displayNegative?t.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE),s=t.zMax??(0,o.arrayMax)(e);if((0,o.isNumber)(i)&&(0,o.isNumber)(s))return{zMin:i,zMax:s}}}searchKDTree(t,e,i,o=t9,s=t9){return o=(t,e,i)=>{let o=t[i]||0,s=e[i]||0,r,a=!1;return o===s?r=t.index>e.index?t:e:o<0&&s<0?(r=o-(t.marker?.radius||0)>=s-(e.marker?.radius||0)?t:e,a=!0):r=o<s?t:e,[r,a]},s=(t,e,i)=>!i&&t>e||t<e,super.searchKDTree(t,e,i,o,s)}}eo.defaultOptions=(0,o.merge)(et.defaultOptions,{dataLabels:{formatter:function(){let{numberFormatter:t}=this.series.chart,{z:e}=this.point;return(0,o.isNumber)(e)?t(e,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),(0,o.extend)(eo.prototype,{alignDataLabel:t5.alignDataLabel,applyZones:t9,bubblePadding:!0,isBubble:!0,keysAffectYAxis:["y"],pointArrayMap:["y","z"],pointClass:t8,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),(0,o.addEvent)(eo,"updatedData",t=>{delete t.target.chart.bubbleZExtremes}),(0,o.addEvent)(eo,"remove",t=>{delete t.target.chart.bubbleZExtremes}),(0,o.addEvent)(eo,"update",t=>{let e=t.target.options;((0,o.defined)(e.zMin)||(0,o.defined)(e.zMax))&&delete t.target.chart.bubbleZExtremes}),T().registerSeriesType("bubble",eo);let es=eo,{seriesTypes:{map:{prototype:{pointClass:{prototype:er}}}}}=T();class ea extends t8{isValid(){return"number"==typeof this.z}}(0,o.extend)(ea.prototype,{applyOptions:er.applyOptions,getProjectedBounds:er.getProjectedBounds});let{seriesTypes:{map:{prototype:en},mappoint:{prototype:el}}}=T();class eh extends es{constructor(){super(...arguments),this.clearBounds=en.clearBounds}searchPoint(t,e){return this.searchKDTree({plotX:t.chartX-this.chart.plotLeft,plotY:t.chartY-this.chart.plotTop},e,t)}translate(){el.translate.call(this),this.getRadii(),this.translateBubble()}}eh.defaultOptions=(0,o.merge)(es.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"},stickyTracking:!0}),(0,o.extend)(eh.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:en.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:ea,processData:en.processData,projectPoint:el.projectPoint,kdAxisArray:["plotX","plotY"],setData:en.setData,setOptions:en.setOptions,useMapGeometry:!0,xyFromShape:!0}),T().registerSeriesType("mapbubble",eh);let ep=e.default.Color;var ed=i.n(ep);let{scatter:{prototype:{pointClass:ec}}}=T().seriesTypes;class eu extends ec{applyOptions(t,e){return(this.isNull||null===this.value)&&delete this.color,super.applyOptions(t,e),this.formatPrefix=this.isNull||null===this.value?"null":"point",this}getCellAttributes(){let t=this.series,e=t.options,i=(e.colsize||1)/2,s=(e.rowsize||1)/2,r=t.xAxis,a=t.yAxis,n=this.options.marker||t.options.marker,l=t.pointPlacementToXValue(),h=this.pointPadding??e.pointPadding??0,p={x1:(0,o.clamp)(Math.round(r.len-r.translate(this.x-i,!1,!0,!1,!0,-l)),-r.len,2*r.len),x2:(0,o.clamp)(Math.round(r.len-r.translate(this.x+i,!1,!0,!1,!0,-l)),-r.len,2*r.len),y1:(0,o.clamp)(Math.round(a.translate(this.y-s,!1,!0,!1,!0)),-a.len,2*a.len),y2:(0,o.clamp)(Math.round(a.translate(this.y+s,!1,!0,!1,!0)),-a.len,2*a.len)};for(let t of[["width","x"],["height","y"]]){let e=t[0],i=t[1],s=i+"1",l=i+"2",d=Math.abs(p[s]-p[l]),c=n&&n.lineWidth||0,u=Math.abs(p[s]+p[l])/2,m=n&&n[e];if((0,o.defined)(m)&&m<d){let t=m/2+c/2;p[s]=u-t,p[l]=u+t}h&&(("x"===i&&r.reversed||"y"===i&&!a.reversed)&&(s=l,l=i+"1"),p[s]+=h,p[l]-=h)}return p}haloPath(t){if(!t)return[];let{x:e=0,y:i=0,width:o=0,height:s=0}=this.shapeArgs||{};return[["M",e-t,i-t],["L",e-t,i+s+t],["L",e+o+t,i+s+t],["L",e+o+t,i-t],["Z"]]}isValid(){return this.value!==1/0&&this.value!==-1/0}}(0,o.extend)(eu.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1});let{doc:em}=c(),{series:eg,seriesTypes:{column:eb,scatter:ef}}=T(),{prototype:{symbols:ey}}=V(),{colorFromPoint:ex,getContext:eM}={colorFromPoint:function(t,e){let i=e.series.colorAxis;if(i){let s=i.toColor(t||0,e).split(")")[0].split("(")[1].split(",").map(t=>parseFloat(t)??parseInt(t,10));return s[3]=(s[3]??1)*255,(0,o.defined)(t)&&e.visible||(s[3]=0),s}return[0,0,0,0]},getContext:function(t){let{canvas:e,context:i}=t;return e&&i?.clearRect?(i.clearRect(0,0,e.width,e.height),i):(t.canvas=em.createElement("canvas"),t.context=t.canvas.getContext("2d",{willReadFrequently:!0})||void 0,t.context)}};class ev extends ef{constructor(){super(...arguments),this.valueMax=NaN,this.valueMin=NaN,this.isDirtyCanvas=!0}drawPoints(){let t=this,e=t.options,i=e.interpolation,o=e.marker||{};if(i){let{image:e,chart:i,xAxis:o,yAxis:s}=t,{reversed:r=!1,len:a}=o,{reversed:n=!1,len:l}=s,h={width:a,height:l};if(!e||t.isDirtyData||t.isDirtyCanvas){let a=eM(t),{canvas:l,options:{colsize:p=1,rowsize:d=1},points:c,points:{length:u}}=t,m=i.colorAxis&&i.colorAxis[0];if(l&&a&&m){let{min:m,max:g}=o.getExtremes(),{min:b,max:f}=s.getExtremes(),y=g-m,x=f-b,M=Math.round(y/p/8*8),v=Math.round(x/d/8*8),[w,T]=[[M,M/y,r,"ceil"],[v,v/x,!n,"floor"]].map(([t,e,i,o])=>i?i=>Math[o](t-e*i):t=>Math[o](e*t)),P=l.width=M+1,C=P*(l.height=v+1),j=(u-1)/C,L=new Uint8ClampedArray(4*C),A=(t,e)=>4*Math.ceil(P*T(e-b)+w(t-m));t.buildKDTree();for(let t=0;t<C;t++){let e=c[Math.ceil(j*t)],{x:i,y:o}=e;L.set(ex(e.value,e),A(i,o))}a.putImageData(new ImageData(L,P),0,0),e?e.attr({...h,href:l.toDataURL("image/png",1)}):(t.directTouch=!1,t.image=i.renderer.image(l.toDataURL("image/png",1)).attr(h).add(t.group))}t.isDirtyCanvas=!1}else(e.width!==a||e.height!==l)&&e.attr(h)}else(o.enabled||t._hasPointMarkers)&&(eg.prototype.drawPoints.call(t),t.points.forEach(e=>{e.graphic&&(e.graphic[t.chart.styledMode?"css":"animate"](t.colorAttribs(e)),null===e.value&&e.graphic.addClass("highcharts-null-point"))}))}getSymbol(){this.symbol=this.options.marker?.symbol||"rect"}getExtremes(){let{dataMin:t,dataMax:e}=eg.prototype.getExtremes.call(this,this.getColumn("value"));return(0,o.isNumber)(t)&&(this.valueMin=t),(0,o.isNumber)(e)&&(this.valueMax=e),eg.prototype.getExtremes.call(this)}getValidPoints(t,e){return eg.prototype.getValidPoints.call(this,t,e,!0)}hasData(){return!!this.dataTable.rowCount}init(){super.init.apply(this,arguments);let t=this.options;t.pointRange=t.pointRange??(t.colsize||1),this.yAxis.axisPointRange=t.rowsize||1,ey.ellipse=ey.circle,t.marker&&(0,o.isNumber)(t.borderRadius)&&(t.marker.r=t.borderRadius);let e=this.canvas=document.createElement("canvas");e&&(this.context=e?.getContext("webgpu"))}markerAttribs(t,e){let i=t.shapeArgs||{};if(t.hasImage)return{x:t.plotX,y:t.plotY};if(e&&"normal"!==e){let o=t.options.marker||{},s=this.options.marker||{},r=s.states?.[e]||{},a=o.states?.[e]||{},n=(a.width||r.width||i.width||0)+(a.widthPlus||r.widthPlus||0),l=(a.height||r.height||i.height||0)+(a.heightPlus||r.heightPlus||0);return{x:(i.x||0)+((i.width||0)-n)/2,y:(i.y||0)+((i.height||0)-l)/2,width:n,height:l}}return i}pointAttribs(t,e){let i=eg.prototype.pointAttribs.call(this,t,e),s=this.options||{},r=this.chart.options.plotOptions||{},a=r.series||{},n=r.heatmap||{},l=t?.options.borderColor||s.borderColor||n.borderColor||a.borderColor,h=t?.options.borderWidth||s.borderWidth||n.borderWidth||a.borderWidth||i["stroke-width"];if(i.stroke=t?.marker?.lineColor||s.marker?.lineColor||l||this.color,i["stroke-width"]=h,e&&"normal"!==e){let r=(0,o.merge)(s.states?.[e],s.marker?.states?.[e],t?.options.marker?.states?.[e]||{});i.fill=r.color||ed().parse(i.fill).brighten(r.brightness||0).get(),i.stroke=r.lineColor||i.stroke}return i}translate(){let{borderRadius:t,marker:e}=this.options,i=e?.symbol||"rect",s=ey[i]?i:"rect",r=-1!==["circle","square"].indexOf(s);for(let e of(this.generatePoints(),this.points)){let a=e.getCellAttributes(),n=Math.min(a.x1,a.x2),l=Math.min(a.y1,a.y2),h=Math.max(Math.abs(a.x2-a.x1),0),p=Math.max(Math.abs(a.y2-a.y1),0);if(e.hasImage=0===(e.marker?.symbol||i||"").indexOf("url"),r){let t=Math.abs(h-p);n=Math.min(a.x1,a.x2)+(h<p?0:t/2),l=Math.min(a.y1,a.y2)+(h<p?t/2:0),h=p=Math.min(h,p)}e.hasImage&&(e.marker={width:h,height:p}),e.plotX=e.clientX=(a.x1+a.x2)/2,e.plotY=(a.y1+a.y2)/2,e.shapeType="path",e.shapeArgs=(0,o.merge)(!0,{x:n,y:l,width:h,height:p},{d:ey[s](n,l,h,p,{r:(0,o.isNumber)(t)?t:0})})}(0,o.fireEvent)(this,"afterTranslate")}}ev.defaultOptions=(0,o.merge)(ef.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,interpolation:!1,nullColor:"var(--highcharts-neutral-color-3)",dataLabels:{formatter:function(){let{numberFormatter:t}=this.series.chart,{value:e}=this.point;return(0,o.isNumber)(e)?t(e,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:"allow",padding:0},marker:{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}},legendSymbol:"rectangle"}),(0,o.addEvent)(ev,"afterDataClassLegendClick",function(){this.isDirtyCanvas=!0,this.drawPoints(),this.options.enableMouseTracking&&this.drawTracker()}),(0,o.extend)(ev.prototype,{axisTypes:k.seriesMembers.axisTypes,colorKey:k.seriesMembers.colorKey,directTouch:!0,getExtremesFromAll:!0,keysAffectYAxis:["y"],parallelArrays:k.seriesMembers.parallelArrays,pointArrayMap:["y","value"],pointClass:eu,specialGroup:"group",trackerGroups:k.seriesMembers.trackerGroups,alignDataLabel:eb.prototype.alignDataLabel,colorAttribs:k.seriesMembers.colorAttribs}),k.compose(ev),T().registerSeriesType("heatmap",ev);let ew=c();ew.ColorMapComposition=k,ew.MapChart=ew.MapChart||G,ew.MapNavigation=ew.MapNavigation||v,ew.MapView=ew.MapView||tk,ew.Projection=ew.Projection||tv,ew.mapChart=ew.Map=ew.MapChart.mapChart,ew.maps=ew.MapChart.maps,ew.geojson=$.geojson,ew.topo2geo=$.topo2geo,$.compose(ew.Chart),eh.compose(ew.Axis,ew.Chart,ew.Legend),v.compose(G,ew.Pointer,ew.SVGRenderer),tk.compose(G);let eT=c();export{eT as default};
13
+ */import*as e from"../highcharts.js";import"./coloraxis.js";let i={};i.n=t=>{let e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var o in e)i.o(e,o)&&!i.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let o=e.default;var s,r,a,n,l,h,p,d,c=i.n(o);let u={lang:{zoomIn:"Zoom in",zoomOut:"Zoom out"},mapNavigation:{buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{color:"var(--highcharts-neutral-color-60)",fontSize:"1em",fontWeight:"bold"},theme:{fill:"var(--highcharts-background-color)",stroke:"var(--highcharts-neutral-color-10)","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}};!function(t){let e,i=0;function s(t){let e=this.chart;t=this.normalize(t),e.options.mapNavigation.enableDoubleClickZoomTo?e.pointer.inClass(t.target,"highcharts-tracker")&&e.hoverPoint&&e.hoverPoint.zoomTo():e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)&&e.mapZoom(.5,void 0,void 0,t.chartX,t.chartY)}function r(t){let s=this.chart;t=this.normalize(t);let r=(0,o.defined)(t.wheelDelta)&&-t.wheelDelta/120||t.deltaY||t.detail;Math.abs(r)>=1&&(i+=Math.abs(r),e&&(0,o.internalClearTimeout)(e),e=setTimeout(()=>{i=0},50)),i<10&&s.isInsidePlot(t.chartX-s.plotLeft,t.chartY-s.plotTop)&&s.mapView&&s.mapView.zoomBy(-((s.options.mapNavigation.mouseWheelSensitivity-1)*r),void 0,[t.chartX,t.chartY],!(1>Math.abs(r))&&void 0)}function a(t,e,i){let s=this.chart;if(e=t.call(this,e,i),s&&s.mapView){let t=s.mapView.pixelsToLonLat({x:e.chartX-s.plotLeft,y:e.chartY-s.plotTop});t&&(0,o.extend)(e,t)}return e}function n(t){let e=this.chart.options.mapNavigation;e&&(e.enableTouchZoom??e.enabled)&&(this.chart.zooming.pinchType="xy"),t.apply(this,[].slice.call(arguments,1))}t.compose=function(t){let e=t.prototype;e.onContainerDblClick||((0,o.extend)(e,{onContainerDblClick:s,onContainerMouseWheel:r}),(0,o.wrap)(e,"normalize",a),(0,o.wrap)(e,"zoomOption",n))}}(n||(n={}));let m=n;function g(e,i,o,s,r){if(r){let t=r?.r||0;r.brBoxY=i-t,r.brBoxHeight=s+t}return t.roundedRect(e,i,o,s,r)}function b(e,i,o,s,r){if(r){let t=r?.r||0;r.brBoxHeight=s+t}return t.roundedRect(e,i,o,s,r)}let f=function(e){(t=e.prototype.symbols).bottombutton=g,t.topbutton=b},{setOptions:y}=c(),{composed:x}=c();function M(t){t&&(t.preventDefault?.(),t.stopPropagation?.(),t.cancelBubble=!0)}let v=class t{static compose(e,i,s){m.compose(i),f(s),(0,o.pushUnique)(x,"Map.Navigation")&&((0,o.addEvent)(e,"beforeRender",function(){this.mapNavigation=new t(this),this.mapNavigation.update()}),y(u))}constructor(t){this.chart=t,this.navButtons=[]}update(t){let e=this,i=e.chart,s=e.navButtons,r=function(t){this.handler.call(i,t),M(t)},a=i.options.mapNavigation;for(t&&(a=i.options.mapNavigation=(0,o.merge)(i.options.mapNavigation,t));s.length;)s.pop()?.destroy();!i.renderer.forExport&&(a.enableButtons??a.enabled)&&(e.navButtonsGroup||(e.navButtonsGroup=i.renderer.g().attr({zIndex:7}).add()),(0,o.objectEach)(a.buttons,(t,n)=>{let l={padding:(t=(0,o.merge)(a.buttonOptions,t)).padding};!i.styledMode&&t.theme&&((0,o.extend)(l,t.theme),l.style=(0,o.merge)(t.theme.style,t.style));let{text:h,width:p=0,height:d=0,padding:c=0}=t,u=i.renderer.button("+"!==h&&"-"!==h&&h||"",0,0,r,l,void 0,void 0,void 0,"zoomIn"===n?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+({zoomIn:"zoom-in",zoomOut:"zoom-out"})[n]).attr({width:p,height:d,title:i.options.lang[n],zIndex:5}).add(e.navButtonsGroup);if("+"===h||"-"===h){let e=p+1,o=[["M",c+3,c+d/2],["L",c+e-3,c+d/2]];"+"===h&&o.push(["M",c+e/2,c+3],["L",c+e/2,c+d-3]),i.renderer.path(o).addClass("highcharts-button-symbol").attr(i.styledMode?{}:{stroke:t.style?.color,"stroke-width":3,"stroke-linecap":"round"}).add(u)}if(u.handler=t.onclick,(0,o.addEvent)(u.element,"dblclick",M),s.push(u),(0,o.extend)(t,{width:u.width,height:2*(u.height||0)}),i.hasLoaded)u.align(t,!1,t.alignTo);else{let e=(0,o.addEvent)(i,"load",()=>{u.element&&u.align(t,!1,t.alignTo),e()})}}),i.hasLoaded||(0,o.addEvent)(i,"render",function(){let t=i.exporting?.group?.getBBox();if(t){let i=e.navButtonsGroup.getBBox();if(!(i.x>=t.x+t.width||i.x+i.width<=t.x||i.y>=t.y+t.height||i.y+i.height<=t.y)){let o=-i.y-i.height+t.y-5,s=t.y+t.height-i.y+5,r=a.buttonOptions&&a.buttonOptions.verticalAlign;e.navButtonsGroup.attr({translateY:"bottom"===r?o:s})}}})),this.updateEvents(a)}updateEvents(t){let e=this.chart;(t.enableDoubleClickZoom??t.enabled)||t.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||(0,o.addEvent)(e.container,"dblclick",function(t){e.pointer.onContainerDblClick(t)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),t.enableMouseWheelZoom??t.enabled?this.unbindMouseWheel=this.unbindMouseWheel||(0,o.addEvent)(e.container,"wheel",function(t){if(!e.pointer.inClass(t.target,"highcharts-no-mousewheel")){let i=e.mapView?.zoom;e.pointer.onContainerMouseWheel(t),i!==e.mapView?.zoom&&M(t)}return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())}},w=e.default.SeriesRegistry;var T=i.n(w);let P=e.default.SVGElement;var C=i.n(P);let{column:{prototype:j}}=T().seriesTypes;var L=l||(l={});function A(t){let e=this.series,i=e.chart.renderer;this.moveToTopOnHover&&this.graphic&&(e.stateMarkerGraphic||(e.stateMarkerGraphic=new(C())(i,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),t?.state==="hover"?(this.graphic.attr({id:this.id}),e.stateMarkerGraphic.attr({href:`${i.url}#${this.id}`,visibility:"visible"})):e.stateMarkerGraphic.attr({href:""}))}L.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&1/0!==this.value&&-1/0!==this.value&&(void 0===this.value||!isNaN(this.value))}},L.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(t){let e={};return(0,o.defined)(t.color)&&(!t.state||"normal"===t.state)&&(e[this.colorProp||"fill"]=t.color),e},pointAttribs:j.pointAttribs},L.compose=function(t){let e=t.prototype.pointClass;return(0,o.addEvent)(e,"afterSetState",A),t};let k=l,{deg2rad:z}=c();(s=h||(h={})).getCenter=function(){let t=this.options,e=this.chart,i=2*(t.slicedOffset||0),s=e.plotWidth-2*i,r=e.plotHeight-2*i,a=t.center,n=Math.min(s,r),l=t.thickness,h,p=t.size,d=t.innerSize||0,c,u;"string"==typeof p&&(p=parseFloat(p)),"string"==typeof d&&(d=parseFloat(d));let m=[a?.[0]??"50%",a?.[1]??"50%",(p&&p<0?void 0:t.size)??"100%",(d&&d<0?void 0:t.innerSize||0)??"0%"];for(c=0;c<4;++c)u=m[c],h=c<2||2===c&&/%$/.test(u),m[c]=(0,o.relativeLength)(u,[s,r,n,m[2]][c])+(h?i:0);return m[3]>m[2]&&(m[3]=m[2]),(0,o.isNumber)(l)&&2*l<m[2]&&l>0&&(m[3]=m[2]-2*l),(0,o.fireEvent)(this,"afterGetCenter",{positions:m}),m},s.getStartAndEndRadians=function(t,e){let i=(0,o.isNumber)(t)?t:0,s=(0,o.isNumber)(e)&&e>i&&e-i<360?e:i+360;return{start:z*(i+-90),end:z*(s+-90)}};let E=h,{setLength:B,splice:N}={convertToNumber:function(t,e){switch(typeof t){case"boolean":return+!!t;case"number":return isNaN(t)&&!e?null:t;default:return isNaN(t=parseFloat(`${t??""}`))&&!e?null:t}},setLength:function(t,e,i){return Array.isArray(t)?(t.length=e,t):t[i?"subarray":"slice"](0,e)},splice:function(t,e,i,o,s=[]){if(Array.isArray(t))return Array.isArray(s)||(s=Array.from(s)),{removed:t.splice(e,i,...s),array:t};let r=Object.getPrototypeOf(t).constructor,a=t[o?"subarray":"slice"](e,e+i),n=new r(t.length-i+s.length);return n.set(t.subarray(0,e),0),n.set(s,e),n.set(t.subarray(e+i),e+s.length),{removed:a,array:n}}},S=class{constructor(t={}){this.isDataTable=!0;let e=this.isPollutingKey(t.id)?void 0:t.id;this.autoId=!e,this.columns={},this.id=e||(0,o.uniqueKey)(),this.rowCount=0,this.versionTag=(0,o.uniqueKey)();let i=0;(0,o.objectEach)(t.columns||{},(t,e)=>{"__proto__"!==e&&"constructor"!==e&&(this.columns[e]=t.slice(),i=Math.max(i,t.length))}),this.applyRowCount(i)}isPollutingKey(t){return"__proto__"===t||"constructor"===t}applyRowCount(t){this.rowCount=t,(0,o.objectEach)(this.columns,(e,i)=>{e.length!==t&&(this.columns[i]=B(e,t))})}deleteRows(t,e=1){if(e>0&&t<this.rowCount){let i=0;(0,o.objectEach)(this.columns,(o,s)=>{this.columns[s]=N(o,t,e).array,i=o.length}),this.rowCount=i}(0,o.fireEvent)(this,"afterDeleteRows",{rowIndex:t,rowCount:e}),this.versionTag=(0,o.uniqueKey)()}getColumn(t,e){return this.columns[t]}getColumns(t,e){return(t||Object.keys(this.columns)).reduce((t,e)=>(t[e]=this.columns[e],t),{})}getRowObject(t,e){let i={},o=this.columns;for(let s of(e??(e=Object.keys(this.columns)),e))i[s]=o[s]?.[t];return i}setColumn(t,e=[],i=0,o){this.setColumns({[t]:e},i,o)}setColumns(t,e,i){let s=this.rowCount;(0,o.objectEach)(t,(t,e)=>{"__proto__"!==e&&"constructor"!==e&&(this.columns[e]=t.slice(),s=t.length)}),this.applyRowCount(s),i?.silent||((0,o.fireEvent)(this,"afterSetColumns"),this.versionTag=(0,o.uniqueKey)())}setRow(t,e=this.rowCount,i,s){let{columns:r}=this,a=i?this.rowCount+1:e+1,n=Object.keys(t);if(s?.addColumns!==!1)for(let t=0,e=n.length;t<e;t++){let e=n[t];this.isPollutingKey(e)||Object.hasOwnProperty.call(r,e)||(r[e]=Array(this.rowCount))}(0,o.objectEach)(r,(o,s)=>{o&&(i?o=N(o,e,0,!0,[t[s]]).array:o[e]=s in t?t[s]:o[e],r[s]=o)}),this.applyRowCount(Math.max(a,this.rowCount)),s?.silent||((0,o.fireEvent)(this,"afterSetRows",{rowIndex:e}),this.versionTag=(0,o.uniqueKey)())}getModified(){return this.modified||this}},O=e.default.Chart;var D=i.n(O);let I=e.default.SVGRenderer;var V=i.n(I);let{getOptions:R}=c();class X extends D(){init(t,e){let i=R().credits,s=(0,o.merge)({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:i.mapText??' \xa9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>',mapTextFull:i.mapTextFull??"{geojson.copyright}"},mapView:{},tooltip:{followTouchMove:!1}},t);super.init(s,e)}mapZoom(t,e,i,s,r){this.mapView&&((0,o.isNumber)(t)&&(t=Math.log(t)/Math.log(.5)),this.mapView.zoomBy(t,(0,o.isNumber)(e)&&(0,o.isNumber)(i)?this.mapView.projection.inverse([e,i]):void 0,(0,o.isNumber)(s)&&(0,o.isNumber)(r)?[s,r]:void 0))}update(t){t.chart&&"map"in t.chart&&this.mapView?.recommendMapView(this,[t.chart.map,...(this.options.series||[]).map(t=>t.mapData)],!0),super.update.apply(this,arguments)}}(r=X||(X={})).maps={},r.mapChart=function(t,e,i){let o=new r(t,e,i);return o.promise??o},r.splitPath=function(t){let e;return e="string"==typeof t?(t=t.replace(/([A-Z])/gi," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map(t=>/[A-Z]/i.test(t)?t:parseFloat(t)):t,V().prototype.pathToSegments(e)};let G=X,F={boundsFromPath:function(t){let e=-Number.MAX_VALUE,i=Number.MAX_VALUE,o=-Number.MAX_VALUE,s=Number.MAX_VALUE,r;if(t.forEach(t=>{let a=t[t.length-2],n=t[t.length-1];"number"==typeof a&&"number"==typeof n&&(i=Math.min(i,a),e=Math.max(e,a),s=Math.min(s,n),o=Math.max(o,n),r=!0)}),r)return{x1:i,y1:s,x2:e,y2:o}}},{boundsFromPath:Y}=F,U=T().seriesTypes.scatter.prototype.pointClass;class Z extends U{static getProjectedPath(t,e){return t.projectedPath||(e&&t.geometry?(e.hasCoordinates=!0,t.projectedPath=e.path(t.geometry)):t.projectedPath=t.path),t.projectedPath||[]}applyOptions(t,e,i){let s=this.series,r=super.applyOptions(t,e,i),a=s.joinBy;if(s.mapData&&s.mapMap){let t=a[1],e=super.getNestedProperty(t),i=void 0!==e&&s.mapMap[e];i?(0,o.extend)(r,{...i,name:r.name??i.name}):-1!==s.pointArrayMap.indexOf("value")&&(r.value=r.value||null)}return r}getProjectedBounds(t){let e=Y(Z.getProjectedPath(this,t)),i=this.properties,s=this.series.chart.mapView;if(e){let r=i?.["hc-middle-lon"],a=i?.["hc-middle-lat"];if(s&&(0,o.isNumber)(r)&&(0,o.isNumber)(a)){let i=t.forward([r,a]);e.midX=i[0],e.midY=i[1]}else{let t=i?.["hc-middle-x"],s=i?.["hc-middle-y"];e.midX=e.x1+(e.x2-e.x1)*(this.middleX??((0,o.isNumber)(t)?t:.5));let r=this.middleY??((0,o.isNumber)(s)?s:.5);this.geometry||(r=1-r),e.midY=e.y2-(e.y2-e.y1)*r}return e}}onMouseOver(t){(0,o.internalClearTimeout)(this.colorInterval),!this.isNull&&this.visible||this.series.options.nullInteraction?super.onMouseOver.call(this,t):this.series.onMouseOut()}setVisible(t){this.visible=this.options.visible=!!t,this.dataLabel&&this.dataLabel[t?"show":"hide"](),this.graphic&&this.graphic.attr(this.series.pointAttribs(this))}zoomTo(t){let e=this.series.chart,i=e.mapView,s=this.bounds;if(i&&s){let r=(0,o.isNumber)(this.insetIndex)&&i.insets[this.insetIndex];if(r){let t=r.projectedUnitsToPixels({x:s.x1,y:s.y1}),e=r.projectedUnitsToPixels({x:s.x2,y:s.y2}),o=i.pixelsToProjectedUnits({x:t.x,y:t.y}),a=i.pixelsToProjectedUnits({x:e.x,y:e.y});s={x1:o.x,y1:o.y,x2:a.x,y2:a.y}}i.fitToBounds(s,void 0,!1),this.series.isDirty=!0,e.redraw(t)}}}(0,o.extend)(Z.prototype,{dataLabelOnNull:k.pointMembers.dataLabelOnNull,moveToTopOnHover:k.pointMembers.moveToTopOnHover,isValid:k.pointMembers.isValid});let W={center:[0,0],fitToGeometry:void 0,maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0,insetOptions:{borderColor:"var(--highcharts-neutral-color-20)",borderWidth:1,padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}},_=e.default.Templating;var H=i.n(_);let{win:q}=c(),{format:K}=H();!function(t){function e(t){return this.mapView?.lonLatToProjectedUnits(t)}function i(t){return this.mapView?.projectedUnitsToLonLat(t)}function s(t,e){let i=this.options.chart.proj4||q.proj4;if(!i)return void(0,o.error)(21,!1,this);let{jsonmarginX:s=0,jsonmarginY:r=0,jsonres:a=1,scale:n=1,xoffset:l=0,xpan:h=0,yoffset:p=0,ypan:d=0}=e,c=i(e.crs,[t.lon,t.lat]),u=e.cosAngle||e.rotation&&Math.cos(e.rotation),m=e.sinAngle||e.rotation&&Math.sin(e.rotation),g=e.rotation?[c[0]*u+c[1]*m,-c[0]*m+c[1]*u]:c;return{x:((g[0]-l)*n+h)*a+s,y:-(((p-g[1])*n+d)*a-r)}}function r(t,e){let i=this.options.chart.proj4||q.proj4;if(!i)return void(0,o.error)(21,!1,this);if(null===t.y)return;let{jsonmarginX:s=0,jsonmarginY:r=0,jsonres:a=1,scale:n=1,xoffset:l=0,xpan:h=0,yoffset:p=0,ypan:d=0}=e,c={x:((t.x-s)/a-h)/n+l,y:((t.y-r)/a+d)/n+p},u=e.cosAngle||e.rotation&&Math.cos(e.rotation),m=e.sinAngle||e.rotation&&Math.sin(e.rotation),g=i(e.crs,"WGS84",e.rotation?{x:c.x*u+-(c.y*m),y:c.x*m+c.y*u}:c);return{lat:g.y,lon:g.x}}function a(t,e){e||(e=Object.keys(t.objects)[0]);let i=t.objects[e];if(i["hc-decoded-geojson"]&&i["hc-decoded-geojson"].title===t.title)return i["hc-decoded-geojson"];let o=t.arcs;if(t.transform){let e,i,s,r=t.arcs,{scale:a,translate:n}=t.transform;o=[];for(let t=0,l=r.length;t<l;++t){let l=r[t];o.push(e=[]),i=0,s=0;for(let t=0,o=l.length;t<o;++t)e.push([(i+=l[t][0])*a[0]+n[0],(s+=l[t][1])*a[1]+n[1]])}}let s=t=>"number"==typeof t[0]?t.reduce((t,e,i)=>{let s=e<0?o[~e]:o[e];return e<0?(s=s.slice(0,0===i?s.length:s.length-1)).reverse():i&&(s=s.slice(1)),t.concat(s)},[]):t.map(s),r=i.geometries,a=[];for(let t=0,e=r.length;t<e;++t)a.push({type:"Feature",properties:r[t].properties,geometry:{type:r[t].type,coordinates:r[t].coordinates||s(r[t].arcs)}});let n={type:"FeatureCollection",copyright:t.copyright,copyrightShort:t.copyrightShort,copyrightUrl:t.copyrightUrl,features:a,"hc-recommended-mapview":i["hc-recommended-mapview"],bbox:t.bbox,title:t.title};return i["hc-decoded-geojson"]=n,n}function n(t,e){e=(0,o.merge)(!0,this.options.credits,e),t.call(this,e),this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})}t.compose=function(t){let a=t.prototype;a.transformFromLatLon||(a.fromLatLonToPoint=e,a.fromPointToLatLon=i,a.transformFromLatLon=s,a.transformToLatLon=r,(0,o.wrap)(a,"addCredits",n))},t.geojson=function(t,e="map",i){let s=[],r="Topology"===t.type?a(t):t,n=r.features;for(let t=0,i=n.length;t<i;++t){let i,r=n[t],a=r.geometry||{},l=a.type,h=a.coordinates,p=r.properties;if(("map"===e||"mapbubble"===e)&&("Polygon"===l||"MultiPolygon"===l)||"mapline"===e&&("LineString"===l||"MultiLineString"===l)?h.length&&(i={geometry:{coordinates:h,type:l}}):"mappoint"===e&&"Point"===l&&h.length&&(i={geometry:{coordinates:h,type:l}}),i){let t=p&&(p.name||p.NAME),e=p&&p.lon,r=p&&p.lat;s.push((0,o.extend)(i,{lat:"number"==typeof r?r:void 0,lon:"number"==typeof e?e:void 0,name:"string"==typeof t?t:void 0,properties:p}))}}return i&&r.copyrightShort&&(i.chart.mapCredits=K(i.chart.options.credits?.mapText,{geojson:r}),i.chart.mapCreditsFull=K(i.chart.options.credits?.mapTextFull,{geojson:r})),s},t.topo2geo=a}(p||(p={}));let $=p;(a=d||(d={})).getCenterOfPoints=function(t){let e=t.reduce((t,e)=>(t.x+=e.x,t.y+=e.y,t),{x:0,y:0});return{x:e.x/t.length,y:e.y/t.length}},a.getDistanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},a.getAngleBetweenPoints=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)},a.pointInPolygon=function({x:t,y:e},i){let o=i.length,s,r,a=!1;for(s=0,r=o-1;s<o;r=s++){let[o,n]=i[s],[l,h]=i[r];n>e!=h>e&&t<(l-o)*(e-n)/(h-n)+o&&(a=!a)}return a};let J=d;function Q(t,e,i=!0){let o=e[e.length-1],s,r,a,n=t;for(let t=0;t<e.length;t++){let l=n;s=e[t],n=[],r=i?l[l.length-1]:l[0];for(let t=0;t<l.length;t++)tt(o,s,a=l[t])?(tt(o,s,r)||n.push(te(o,s,r,a)),n.push(a)):tt(o,s,r)&&n.push(te(o,s,r,a)),r=a;o=s}return n}function tt(t,e,i){return(e[0]-t[0])*(i[1]-t[1])>(e[1]-t[1])*(i[0]-t[0])}function te(t,e,i,o){let s=[t[0]-e[0],t[1]-e[1]],r=[i[0]-o[0],i[1]-o[1]],a=t[0]*e[1]-t[1]*e[0],n=i[0]*o[1]-i[1]*o[0],l=1/(s[0]*r[1]-s[1]*r[0]),h=[(a*r[0]-n*s[0])*l,(a*r[1]-n*s[1])*l];return h.isIntersection=!0,h}let ti=Math.sign||(t=>0===t?0:t>0?1:-1),to=Math.PI/180,ts=Math.PI/2,tr=t=>Math.tan((ts+t)/2),ta=class{constructor(t){let e=(t.parallels||[]).map(t=>t*to),i=e[0]||0,o=e[1]??i,s=Math.cos(i);"object"==typeof t.projectedBounds&&(this.projectedBounds=t.projectedBounds);let r=i===o?Math.sin(i):Math.log(s/Math.cos(o))/Math.log(tr(o)/tr(i));1e-10>Math.abs(r)&&(r=1e-10*(ti(r)||1)),this.n=r,this.c=s*Math.pow(tr(i),r)/r}forward(t){let{c:e,n:i,projectedBounds:o}=this,s=t[0]*to,r=t[1]*to;e>0?r<-ts+1e-6&&(r=-ts+1e-6):r>ts-1e-6&&(r=ts-1e-6);let a=e/Math.pow(tr(r),i),n=a*Math.sin(i*s)*63.78137,l=(e-a*Math.cos(i*s))*63.78137,h=[n,l];return o&&(n<o.x1||n>o.x2||l<o.y1||l>o.y2)&&(h.outside=!0),h}inverse(t){let{c:e,n:i}=this,o=t[0]/63.78137,s=e-t[1]/63.78137,r=ti(i)*Math.sqrt(o*o+s*s),a=Math.atan2(o,Math.abs(s))*ti(s);return s*i<0&&(a-=Math.PI*ti(o)*ti(s)),[a/i/to,(2*Math.atan(Math.pow(e/r,1/i))-ts)/to]}},tn=Math.sqrt(3)/2,tl=class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}forward(t){let e=Math.PI/180,i=Math.asin(tn*Math.sin(t[1]*e)),o=i*i,s=o*o*o;return[t[0]*e*Math.cos(i)*74.03120656864502/(tn*(1.340264+-3*.081106*o+s*(7*893e-6+.034164*o))),74.03120656864502*i*(1.340264+-.081106*o+s*(893e-6+.003796*o))]}inverse(t){let e=t[0]/74.03120656864502,i=t[1]/74.03120656864502,o=180/Math.PI,s=i,r,a,n,l;for(let t=0;t<12&&(a=(r=s*s)*r*r,n=s*(1.340264+-.081106*r+a*(893e-6+.003796*r))-i,s-=l=n/(1.340264+-3*.081106*r+a*(7*893e-6+.034164*r)),!(1e-9>Math.abs(l)));++t);a=(r=s*s)*r*r;let h=o*tn*e*(1.340264+-3*.081106*r+a*(7*893e-6+.034164*r))/Math.cos(s),p=o*Math.asin(Math.sin(s)/tn);return Math.abs(h)>180?[0/0,0/0]:[h,p]}},th=Math.PI/4,tp=Math.PI/180,td=class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}forward(t){return[t[0]*tp*63.78137,79.7267125*Math.log(Math.tan(th+.4*t[1]*tp))]}inverse(t){return[t[0]/63.78137/tp,2.5*(Math.atan(Math.exp(.8*(t[1]/63.78137)))-th)/tp]}},tc=Math.PI/180,tu=class{constructor(){this.antimeridianCutting=!1,this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,y2:63.78460826781007}}forward(t){let e=t[0],i=t[1]*tc,o=[Math.cos(i)*Math.sin(e*tc)*63.78460826781007,63.78460826781007*Math.sin(i)];return(e<-90||e>90)&&(o.outside=!0),o}inverse(t){let e=t[0]/63.78460826781007,i=t[1]/63.78460826781007,o=Math.sqrt(e*e+i*i),s=Math.asin(o),r=Math.sin(s);return[Math.atan2(e*r,o*Math.cos(s))/tc,Math.asin(o&&i*r/o)/tc]}},tm=Math.PI/180,tg=class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071},this.maxLatitude=85.0511287798}forward(t){let e=Math.sin(t[1]*tm),i=[63.78137*t[0]*tm,63.78137*Math.log((1+e)/(1-e))/2];return Math.abs(t[1])>this.maxLatitude&&(i.outside=!0),i}inverse(t){return[t[0]/(63.78137*tm),(2*Math.atan(Math.exp(t[1]/63.78137))-Math.PI/2)/tm]}},{clipLineString:tb,clipPolygon:tf}={clipLineString:function(t,e){let i=[],o=Q(t,e,!1);for(let t=1;t<o.length;t++)o[t].isIntersection&&o[t-1].isIntersection&&(i.push(o.splice(0,t)),t=0),t===o.length-1&&i.push(o);return i},clipPolygon:Q},ty=2*Math.PI/360,tx=t=>(t<-180&&(t+=360),t>180&&(t-=360),t),tM=t=>(1-Math.cos(t))/2;class tv{static add(t,e){tv.registry[t]=e}static distance(t,e){let i,o,s,r,a,{atan2:n,sqrt:l}=Math,h=(i=Math.cos,o=t[1]*ty,s=t[0]*ty,r=e[1]*ty,a=e[0]*ty,tM(r-o)+i(o)*i(r)*tM(a-s));return 6371e3*(2*n(l(h),l(1-h)))}static geodesic(t,e,i,o=5e5){let{atan2:s,cos:r,sin:a,sqrt:n}=Math,l=tv.distance,h=t[1]*ty,p=t[0]*ty,d=e[1]*ty,c=e[0]*ty,u=r(h)*r(p),m=r(d)*r(c),g=r(h)*a(p),b=r(d)*a(c),f=a(h),y=a(d),x=l(t,e),M=x/6371e3,v=a(M),w=Math.round(x/o),T=[];if(i&&T.push(t),w>1){let t=1/w;for(let e=t;e<.999;e+=t){let t=a((1-e)*M)/v,i=a(e*M)/v,o=t*u+i*m,r=t*g+i*b,l=s(t*f+i*y,n(o*o+r*r)),h=s(r,o);T.push([h/ty,l/ty])}}return i&&T.push(e),T}static insertGeodesics(t){let e=t.length-1;for(;e--;)if(Math.max(Math.abs(t[e][0]-t[e+1][0]),Math.abs(t[e][1]-t[e+1][1]))>10){let i=tv.geodesic(t[e],t[e+1]);i.length&&t.splice(e+1,0,...i)}}static toString(t){let{name:e,rotation:i}=t||{};return[e,i&&i.join(",")].join(";")}constructor(t={}){this.hasCoordinates=!1,this.hasGeoProjection=!1,this.maxLatitude=90,this.options=t;let{name:e,projectedBounds:i,rotation:o}=t;this.rotator=o?this.getRotator(o):void 0;let s=e?tv.registry[e]:void 0;s&&(this.def=new s(t));let{def:r,rotator:a}=this;r&&(this.maxLatitude=r.maxLatitude||90,this.hasGeoProjection=!0),a&&r?(this.forward=t=>r.forward(a.forward(t)),this.inverse=t=>a.inverse(r.inverse(t))):r?(this.forward=t=>r.forward(t),this.inverse=t=>r.inverse(t)):a&&(this.forward=a.forward,this.inverse=a.inverse),this.bounds="world"===i?r&&r.bounds:i}lineIntersectsBounds(t){let{x1:e,x2:i,y1:o,y2:s}=this.bounds||{},r=(t,e,i)=>{let[o,s]=t,r=+!e;if("number"==typeof i&&o[e]>=i!=s[e]>=i){let t=(i-o[e])/(s[e]-o[e]),a=o[r]+t*(s[r]-o[r]);return e?[a,i]:[i,a]}},a,n=t[0];return(a=r(t,0,e))?(n=a,t[1]=a):(a=r(t,0,i))&&(n=a,t[1]=a),(a=r(t,1,o))?n=a:(a=r(t,1,s))&&(n=a),n}getRotator(t){let e=t[0]*ty,i=(t[1]||0)*ty,o=(t[2]||0)*ty,s=Math.cos(i),r=Math.sin(i),a=Math.cos(o),n=Math.sin(o);if(0!==e||0!==i||0!==o)return{forward:t=>{let i=t[0]*ty+e,o=t[1]*ty,l=Math.cos(o),h=Math.cos(i)*l,p=Math.sin(i)*l,d=Math.sin(o),c=d*s+h*r;return[Math.atan2(p*a-c*n,h*s-d*r)/ty,Math.asin(c*a+p*n)/ty]},inverse:t=>{let i=t[0]*ty,o=t[1]*ty,l=Math.cos(o),h=Math.cos(i)*l,p=Math.sin(i)*l,d=Math.sin(o),c=d*a-p*n;return[(Math.atan2(p*a+d*n,h*s+c*r)-e)/ty,Math.asin(c*s-h*r)/ty]}}}forward(t){return t}inverse(t){return t}cutOnAntimeridian(t,e){let i,s=[],r=[t];for(let i=0,r=t.length;i<r;++i){let r=t[i],a=t[i-1];if(!i){if(!e)continue;a=t[t.length-1]}let n=a[0],l=r[0];if((n<-90||n>90)&&(l<-90||l>90)&&n>0!=l>0){let t=(0,o.clamp)((180-(n+360)%360)/((l+360)%360-(n+360)%360),0,1),e=a[1]+t*(r[1]-a[1]);s.push({i,lat:e,direction:n<0?1:-1,previousLonLat:a,lonLat:r})}}if(s.length)if(e){s.length%2==1&&(i=s.slice().sort((t,e)=>Math.abs(e.lat)-Math.abs(t.lat))[0],(0,o.erase)(s,i));let e=s.length-2;for(;e>=0;){let i=s[e].i,o=tx(180+1e-6*s[e].direction),a=tx(180-1e-6*s[e].direction),n=t.splice(i,s[e+1].i-i,...tv.geodesic([o,s[e].lat],[o,s[e+1].lat],!0));n.push(...tv.geodesic([a,s[e+1].lat],[a,s[e].lat],!0)),r.push(n),e-=2}if(i)for(let t=0;t<r.length;t++){let{direction:e,lat:o}=i,s=r[t],a=s.indexOf(i.lonLat);if(a>-1){let t=(o<0?-1:1)*this.maxLatitude,r=tx(180+1e-6*e),n=tx(180-1e-6*e),l=tv.geodesic([r,o],[r,t],!0);for(let i=r+120*e;i>-180&&i<180;i+=120*e)l.push([i,t]);l.push(...tv.geodesic([n,t],[n,i.lat],!0)),s.splice(a,0,...l);break}}}else{let e=s.length;for(;e--;){let i=s[e].i,o=t.splice(i,t.length,[tx(180+1e-6*s[e].direction),s[e].lat]);o.unshift([tx(180-1e-6*s[e].direction),s[e].lat]),r.push(o)}}return r}path(t){let e,{bounds:i,def:o,rotator:s}=this,r=[],a="Polygon"===t.type||"MultiPolygon"===t.type,n=this.hasGeoProjection,l=!o||!1!==o.antimeridianCutting,h=l?s:void 0,p=l&&o||this;i&&(e=[[i.x1,i.y1],[i.x2,i.y1],[i.x2,i.y2],[i.x1,i.y2]]);let d=t=>{let o=t.map(t=>{if(l){h&&(t=h.forward(t));let e=t[0];1e-6>Math.abs(e-180)&&(e=e<180?180-1e-6:180+1e-6),t=[e,t[1]]}return t}),s=[o];n&&(tv.insertGeodesics(o),l&&(s=this.cutOnAntimeridian(o,a))),s.forEach(t=>{let o,s;if(t.length<2)return;let h=!1,d=!1,c=t=>{h?r.push(["L",t[0],t[1]]):(r.push(["M",t[0],t[1]]),h=!0)},u=!1,m=!1,g=t.map(t=>{let e=p.forward(t);return e.outside?u=!0:m=!0,1/0===e[1]?e[1]=1e10:-1/0===e[1]&&(e[1]=-1e10),e});if(l){if(a&&g.push(g[0]),u){if(!m)return;if(e){if(a)g=tf(g,e);else if(i)return void tb(g,e).forEach(t=>{h=!1,t.forEach(c)})}}g.forEach(c)}else for(let e=0;e<g.length;e++){let i=t[e],r=g[e];r.outside?d=!0:(a&&!o&&(o=i,t.push(i),g.push(r)),d&&s&&(a&&n?tv.geodesic(s,i).forEach(t=>c(p.forward(t))):h=!1),c(r),s=i,d=!1)}})};return"LineString"===t.type?d(t.coordinates):"MultiLineString"===t.type?t.coordinates.forEach(t=>d(t)):"Polygon"===t.type?(t.coordinates.forEach(t=>d(t)),r.length&&r.push(["Z"])):"MultiPolygon"===t.type&&(t.coordinates.forEach(t=>{t.forEach(t=>d(t))}),r.length&&r.push(["Z"])),r}}tv.registry={EqualEarth:tl,LambertConformalConic:ta,Miller:td,Orthographic:tu,WebMercator:tg};let{composed:tw}=c(),{pointInPolygon:tT}=J,{topo2geo:tP}=$,{boundsFromPath:tC}=F,tj={};function tL(t,e){let{width:i,height:o}=e;return Math.log(400.979322/Math.max((t.x2-t.x1)/(i/256),(t.y2-t.y1)/(o/256)))/Math.log(2)}function tA(t){t.seriesOptions.mapData&&this.mapView?.recommendMapView(this,[this.options.chart.map,t.seriesOptions.mapData],this.options.drilldown?.mapZooming)}class tk{static compose(t){(0,o.pushUnique)(tw,"MapView")&&(tj=t.maps,(0,o.addEvent)(t,"afterInit",function(){this.mapView=new tk(this,this.options.mapView)},{order:0}),(0,o.addEvent)(t,"addSeriesAsDrilldown",tA),(0,o.addEvent)(t,"afterDrillUp",tA))}static compositeBounds(t){if(t.length)return t.slice(1).reduce((t,e)=>(t.x1=Math.min(t.x1,e.x1),t.y1=Math.min(t.y1,e.y1),t.x2=Math.max(t.x2,e.x2),t.y2=Math.max(t.y2,e.y2),t),(0,o.merge)(t[0]))}static mergeInsets(t,e){let i=t=>{let e={};return t.forEach((t,i)=>{e[t&&t.id||`i${i}`]=t}),e},s=(0,o.merge)(i(t),i(e));return Object.keys(s).map(t=>s[t])}constructor(t,e){this.allowTransformAnimation=!0,this.eventsToUnbind=[],this.insets=[],this.padding=[0,0,0,0],this.recommendedMapView={},this instanceof tz||this.recommendMapView(t,[t.options.chart.map,...(t.options.series||[]).map(t=>t.mapData)]),this.userOptions=e||{};let i=(0,o.merge)(W,this.recommendedMapView,e),s=this.recommendedMapView?.insets,r=e&&e.insets;s&&r&&(i.insets=tk.mergeInsets(s,r)),this.chart=t,this.center=i.center,this.options=i,this.projection=new tv(i.projection),this.playingField=t.plotBox,this.zoom=i.zoom||0,this.minZoom=i.minZoom,this.createInsets(),this.eventsToUnbind.push((0,o.addEvent)(t,"afterSetChartSize",()=>{this.playingField=this.getField(),(void 0===this.minZoom||this.minZoom===this.zoom)&&(this.fitToBounds(void 0,void 0,!1),!this.chart.hasRendered&&(0,o.isNumber)(this.userOptions.zoom)&&(this.zoom=this.userOptions.zoom),this.userOptions.center&&(0,o.merge)(!0,this.center,this.userOptions.center))})),this.setUpEvents()}createInsets(){let t=this.options,e=t.insets;e&&e.forEach(e=>{let i=new tz(this,(0,o.merge)(t.insetOptions,e));this.insets.push(i)})}fitToBounds(t,e,i=!0,s){let r=t||this.getProjectedBounds();if(r){let a=e??(t?0:this.options.padding),n=this.getField(!1),l=(0,o.isArray)(a)?a:[a,a,a,a];this.padding=[(0,o.relativeLength)(l[0],n.height),(0,o.relativeLength)(l[1],n.width),(0,o.relativeLength)(l[2],n.height),(0,o.relativeLength)(l[3],n.width)],this.playingField=this.getField();let h=tL(r,this.playingField);t||(this.minZoom=h);let p=this.projection.inverse([(r.x2+r.x1)/2,(r.y2+r.y1)/2]);this.setView(p,h,i,s)}}getField(t=!0){let e=t?this.padding:[0,0,0,0];return{x:e[3],y:e[0],width:this.chart.plotWidth-e[1]-e[3],height:this.chart.plotHeight-e[0]-e[2]}}getGeoMap(t){if((0,o.isString)(t))return tj[t]&&"Topology"===tj[t].type?tP(tj[t]):tj[t];if((0,o.isObject)(t,!0)){if("FeatureCollection"===t.type)return t;if("Topology"===t.type)return tP(t)}}getMapBBox(){let t=this.getProjectedBounds(),e=this.getScale();if(t){let i=this.padding,o=this.projectedUnitsToPixels({x:t.x1,y:t.y2});return{width:(t.x2-t.x1)*e+i[1]+i[3],height:(t.y2-t.y1)*e+i[0]+i[2],x:o.x-i[3],y:o.y-i[0]}}}getProjectedBounds(){let t=this.projection,e=this.chart.series.reduce((t,e)=>{let i=e.getProjectedBounds&&e.getProjectedBounds();return i&&!1!==e.options.affectsMapView&&t.push(i),t},[]),i=this.options.fitToGeometry;if(i){if(!this.fitToGeometryCache)if("MultiPoint"===i.type){let e=i.coordinates.map(e=>t.forward(e)),o=e.map(t=>t[0]),s=e.map(t=>t[1]);this.fitToGeometryCache={x1:Math.min.apply(0,o),x2:Math.max.apply(0,o),y1:Math.min.apply(0,s),y2:Math.max.apply(0,s)}}else this.fitToGeometryCache=tC(t.path(i));return this.fitToGeometryCache}return this.projection.bounds||tk.compositeBounds(e)}getScale(){return 256/400.979322*Math.pow(2,this.zoom)}getSVGTransform(){let{x:t,y:e,width:i,height:o}=this.playingField,s=this.projection.forward(this.center),r=this.projection.hasCoordinates?-1:1,a=this.getScale(),n=a*r,l=t+i/2-s[0]*a,h=e+o/2-s[1]*n;return{scaleX:a,scaleY:n,translateX:l,translateY:h}}lonLatToPixels(t){let e=this.lonLatToProjectedUnits(t);if(e)return this.projectedUnitsToPixels(e)}lonLatToProjectedUnits(t){let e=this.chart,i=e.mapTransforms;if(i){for(let o in i)if(Object.hasOwnProperty.call(i,o)&&i[o].hitZone){let s=e.transformFromLatLon(t,i[o]);if(s&&tT(s,i[o].hitZone.coordinates[0]))return s}return e.transformFromLatLon(t,i.default)}for(let e of this.insets)if(e.options.geoBounds&&tT({x:t.lon,y:t.lat},e.options.geoBounds.coordinates[0])){let i=e.projection.forward([t.lon,t.lat]),o=e.projectedUnitsToPixels({x:i[0],y:i[1]});return this.pixelsToProjectedUnits(o)}let o=this.projection.forward([t.lon,t.lat]);if(!o.outside)return{x:o[0],y:o[1]}}pixelsToLonLat(t){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(t))}pixelsToProjectedUnits(t){let{x:e,y:i}=t,o=this.getScale(),s=this.projection.forward(this.center),r=this.playingField,a=r.x+r.width/2,n=r.y+r.height/2;return{x:s[0]+(e-a)/o,y:s[1]-(i-n)/o}}projectedUnitsToLonLat(t){let e=this.chart,i=e.mapTransforms;if(i){for(let o in i)if(Object.hasOwnProperty.call(i,o)&&i[o].hitZone&&tT(t,i[o].hitZone.coordinates[0]))return e.transformToLatLon(t,i[o]);return e.transformToLatLon(t,i.default)}let o=this.projectedUnitsToPixels(t);for(let t of this.insets)if(t.hitZone&&tT(o,t.hitZone.coordinates[0])){let e=t.pixelsToProjectedUnits(o),i=t.projection.inverse([e.x,e.y]);return{lon:i[0],lat:i[1]}}let s=this.projection.inverse([t.x,t.y]);return{lon:s[0],lat:s[1]}}projectedUnitsToPixels(t){let e=this.getScale(),i=this.projection.forward(this.center),o=this.playingField,s=o.x+o.width/2,r=o.y+o.height/2;return{x:s-e*(i[0]-t.x),y:r+e*(i[1]-t.y)}}recommendMapView(t,e,i=!1){this.recommendedMapView={};let s=e.map(t=>this.getGeoMap(t)),r=[];s.forEach(t=>{if(t&&(Object.keys(this.recommendedMapView).length||(this.recommendedMapView=t["hc-recommended-mapview"]||{}),t.bbox)){let[e,i,o,s]=t.bbox;r.push({x1:e,y1:i,x2:o,y2:s})}});let a=r.length&&tk.compositeBounds(r);(0,o.fireEvent)(this,"onRecommendMapView",{geoBounds:a,chart:t},function(){if(a&&this.recommendedMapView){if(!this.recommendedMapView.projection){let{x1:t,y1:e,x2:i,y2:o}=a;this.recommendedMapView.projection=i-t>180&&o-e>90?{name:"EqualEarth",parallels:[0,0],rotation:[0]}:{name:"LambertConformalConic",parallels:[e,o],rotation:[-(t+i)/2]}}this.recommendedMapView.insets||(this.recommendedMapView.insets=void 0)}}),this.geoMap=s[0],i&&t.hasRendered&&!t.userOptions.mapView?.projection&&this.recommendedMapView&&this.update(this.recommendedMapView)}redraw(t){this.chart.series.forEach(t=>{t.useMapGeometry&&(t.isDirty=!0)}),this.chart.redraw(t)}setView(t,e,i=!0,s){t&&(this.center=t),"number"==typeof e&&("number"==typeof this.minZoom&&(e=Math.max(e,this.minZoom)),"number"==typeof this.options.maxZoom&&(e=Math.min(e,this.options.maxZoom)),(0,o.isNumber)(e)&&(this.zoom=e));let r=this.getProjectedBounds();if(r){let t=this.projection.forward(this.center),{x:e,y:i,width:o,height:s}=this.playingField,a=this.getScale(),n=this.projectedUnitsToPixels({x:r.x1,y:r.y1}),l=this.projectedUnitsToPixels({x:r.x2,y:r.y2}),h=[(r.x1+r.x2)/2,(r.y1+r.y2)/2];if(!this.chart.series.some(t=>t.isDrilling)){let r=n.x,p=l.y,d=l.x,c=n.y;d-r<o?t[0]=h[0]:r<e&&d<e+o?t[0]+=Math.max(r-e,d-o-e)/a:d>e+o&&r>e&&(t[0]+=Math.min(d-o-e,r-e)/a),c-p<s?t[1]=h[1]:p<i&&c<i+s?t[1]-=Math.max(p-i,c-s-i)/a:c>i+s&&p>i&&(t[1]-=Math.min(c-s-i,p-i)/a),this.center=this.projection.inverse(t)}this.insets.forEach(t=>{t.options.field&&(t.hitZone=t.getHitZone(),t.playingField=t.getField())}),this.render()}(0,o.fireEvent)(this,"afterSetView"),i&&this.redraw(s)}setUpEvents(){let t,e,i,{chart:s}=this,r=r=>{let{lastTouches:a,pinchDown:n}=s.pointer,l=this.projection,h=r.touches,{mouseDownX:p,mouseDownY:d}=s,c=0;if(n?.length===1?(p=n[0].chartX,d=n[0].chartY):n?.length===2&&(p=(n[0].chartX+n[1].chartX)/2,d=(n[0].chartY+n[1].chartY)/2),h?.length===2&&a&&(c=Math.log(Math.sqrt(Math.pow(a[0].chartX-a[1].chartX,2)+Math.pow(a[0].chartY-a[1].chartY,2))/Math.sqrt(Math.pow(h[0].chartX-h[1].chartX,2)+Math.pow(h[0].chartY-h[1].chartY,2)))/Math.log(.5)),(0,o.isNumber)(p)&&(0,o.isNumber)(d)){let a=`${p},${d}`,{chartX:n,chartY:u}=r.originalEvent;h?.length===2&&(n=(h[0].chartX+h[1].chartX)/2,u=(h[0].chartY+h[1].chartY)/2),a!==e&&(e=a,t=this.projection.forward(this.center),i=(this.projection.options.rotation||[0,0]).slice());let m=l.def&&l.def.bounds,g=m&&tL(m,this.playingField)||-1/0;if("Orthographic"===l.options.name&&2>(h?.length||0)&&(this.minZoom||1/0)<1.3*g){let t=440/(this.getScale()*Math.min(s.plotWidth,s.plotHeight));if(i){let e=(p-n)*t-i[0],r=(0,o.clamp)(-i[1]-(d-u)*t,-80,80),a=this.zoom;this.update({projection:{rotation:[-e,-r]}},!1),this.fitToBounds(void 0,void 0,!1),this.zoom=a,s.redraw(!1)}}else if((0,o.isNumber)(n)&&(0,o.isNumber)(u)){let e=this.getScale(),i=this.projection.hasCoordinates?1:-1,o=this.projection.inverse([t[0]+(p-n)/e,t[1]-(d-u)/e*i]);isNaN(o[0]+o[1])||this.zoomBy(c,o,void 0,!1)}r.preventDefault()}};(0,o.addEvent)(s,"pan",r),(0,o.addEvent)(s,"touchpan",r),(0,o.addEvent)(s,"selection",t=>{if(t.resetSelection)this.zoomBy();else{let e=t.x-s.plotLeft,i=t.y-s.plotTop,{y:o,x:r}=this.pixelsToProjectedUnits({x:e,y:i}),{y:a,x:n}=this.pixelsToProjectedUnits({x:e+t.width,y:i+t.height});this.fitToBounds({x1:r,y1:o,x2:n,y2:a},void 0,!0,!t.originalEvent.touches&&void 0),/^touch/.test(t.originalEvent.type)||s.showResetZoom(),t.preventDefault()}})}render(){let t=this.chart;this.group?this.groupClipRect&&this.groupClipRect.animate(t.plotBox):(this.groupClipRect=t.renderer.clipRect(t.plotBox),this.group=t.renderer.g("map-view").attr({zIndex:4}).clip(this.groupClipRect).add())}update(t,e=!0,i){let s=t.projection,r=s&&tv.toString(s)!==tv.toString(this.options.projection),a=!1;(0,o.merge)(!0,this.userOptions,t),(0,o.merge)(!0,this.options,t),"insets"in t&&(this.insets.forEach(t=>t.destroy()),this.insets.length=0,a=!0),(r||"fitToGeometry"in t)&&delete this.fitToGeometryCache,(r||a)&&(this.chart.series.forEach(t=>{let e=t.transformGroups;if(t.clearBounds&&t.clearBounds(),t.isDirty=!0,t.isDirtyData=!0,a&&e)for(;e.length>1;){let t=e.pop();t&&t.destroy()}}),r&&(this.projection=new tv(this.options.projection)),a&&this.createInsets(),!t.center&&Object.hasOwnProperty.call(t,"zoom")&&!(0,o.isNumber)(t.zoom)&&this.fitToBounds(void 0,void 0,!1)),t.center||(0,o.isNumber)(t.zoom)?this.setView(this.options.center,t.zoom,!1):"fitToGeometry"in t&&this.fitToBounds(void 0,void 0,!1),e&&this.redraw(i)}zoomBy(t,e,i,o){let s=this.chart,r=this.projection.forward(this.center);if("number"==typeof t){let a,n,l,h=this.zoom+t;if(i){let[t,e]=i,o=this.getScale(),a=t-s.plotLeft-s.plotWidth/2,h=e-s.plotTop-s.plotHeight/2;n=r[0]+a/o,l=r[1]+h/o}if("number"==typeof n&&"number"==typeof l){let t=1-Math.pow(2,this.zoom)/Math.pow(2,h),e=r[0]-n,i=r[1]-l;r[0]-=e*t,r[1]+=i*t,a=this.projection.inverse(r)}this.setView(e||a,h,void 0,o)}else this.fitToBounds(void 0,void 0,void 0,o)}}class tz extends tk{constructor(t,e){if(super(t.chart,e),this.id=e.id,this.mapView=t,this.options=(0,o.merge)({center:[0,0]},t.options.insetOptions,e),this.allBounds=[],this.options.geoBounds){let e=t.projection.path(this.options.geoBounds);this.geoBoundsProjectedBox=tC(e),this.geoBoundsProjectedPolygon=e.map(t=>[t[1]||0,t[2]||0])}}getField(t=!0){let e=this.hitZone;if(e){let i=t?this.padding:[0,0,0,0],s=e.coordinates[0],r=s.map(t=>t[0]),a=s.map(t=>t[1]),n=Math.min.apply(0,r)+i[3],l=Math.max.apply(0,r)-i[1],h=Math.min.apply(0,a)+i[0],p=Math.max.apply(0,a)-i[2];if((0,o.isNumber)(n)&&(0,o.isNumber)(h))return{x:n,y:h,width:l-n,height:p-h}}return super.getField.call(this,t)}getHitZone(){let{chart:t,mapView:e,options:i}=this,{coordinates:s}=i.field||{};if(s){let r=s[0];if("percent"===i.units){let s="mapBoundingBox"===i.relativeTo&&e.getMapBBox()||(0,o.merge)(t.plotBox,{x:0,y:0});r=r.map(t=>[(0,o.relativeLength)(`${t[0]}%`,s.width,s.x),(0,o.relativeLength)(`${t[1]}%`,s.height,s.y)])}return{type:"Polygon",coordinates:[r]}}}getProjectedBounds(){return tk.compositeBounds(this.allBounds)}isInside(t){let{geoBoundsProjectedBox:e,geoBoundsProjectedPolygon:i}=this;return!!(e&&t.x>=e.x1&&t.x<=e.x2&&t.y>=e.y1&&t.y<=e.y2&&i&&tT(t,i))}render(){let{chart:t,mapView:e,options:i}=this,s=i.borderPath||i.field;if(s&&e.group){let r=!0;this.border||(this.border=t.renderer.path().addClass("highcharts-mapview-inset-border").add(e.group),r=!1),t.styledMode||this.border.attr({stroke:i.borderColor,"stroke-width":i.borderWidth});let a=this.border.strokeWidth(),n="mapBoundingBox"===i.relativeTo&&e.getMapBBox()||e.playingField,l=(s.coordinates||[]).reduce((e,s)=>s.reduce((e,s,r)=>{let[l,h]=s;return"percent"===i.units&&(l=t.plotLeft+(0,o.relativeLength)(`${l}%`,n.width,n.x),h=t.plotTop+(0,o.relativeLength)(`${h}%`,n.height,n.y)),l=(0,o.crisp)(l,a),h=(0,o.crisp)(h,a),e.push(0===r?["M",l,h]:["L",l,h]),e},e),[]);this.border[r?"animate":"attr"]({d:l})}}destroy(){this.border&&(this.border=this.border.destroy()),this.eventsToUnbind.forEach(t=>t())}setUpEvents(){}}let{noop:tE}=c(),{splitPath:tB}=G,{column:tN,scatter:tS}=T().seriesTypes;class tO extends tS{constructor(){super(...arguments),this.tupleKey="hc-key"}animate(t){let{chart:e,group:i}=this,s=(0,o.animObject)(this.options.animation);t?i.attr({translateX:e.plotLeft+e.plotWidth/2,translateY:e.plotTop+e.plotHeight/2,scaleX:.001,scaleY:.001}):i.animate({translateX:e.plotLeft,translateY:e.plotTop,scaleX:1,scaleY:1},s)}clearBounds(){this.points.forEach(t=>{delete t.bounds,delete t.insetIndex,delete t.projectedPath}),delete this.bounds}doFullTranslate(){return!!(this.isDirtyData||this.chart.isResizing||!this.hasRendered)}drawMapDataLabels(){super.drawDataLabels(),this.dataLabelsGroups?.forEach(t=>t?.clip(this.chart.clipRect))}drawPoints(){let t=this,{chart:e,group:i,transformGroups:s=[]}=this,{mapView:r,renderer:a}=e;if(r){this.transformGroups=s,s[0]||(s[0]=a.g().add(i));for(let t=0,e=r.insets.length;t<e;++t)s[t+1]||s.push(a.g().add(i));this.doFullTranslate()&&(this.points.forEach(t=>{let{graphic:e}=t;t.group=s["number"==typeof t.insetIndex?t.insetIndex+1:0],e&&e.parentGroup!==t.group&&e.add(t.group)}),tN.prototype.drawPoints.apply(this),this.points.forEach(i=>{let s=i.graphic;if(s){let r=s.animate,a="";i.name&&(a+="highcharts-name-"+i.name.replace(/ /g,"-").toLowerCase()),i.properties?.["hc-key"]&&(a+=" highcharts-key-"+i.properties["hc-key"].toString().toLowerCase()),a&&s.addClass(a),e.styledMode&&s.css(this.pointAttribs(i,i.selected&&"select"||void 0)),s.attr({visibility:!i.visible&&(i.visible||i.isNull)?"hidden":"inherit"}),s.animate=function(i,a,n){let l=(0,o.isNumber)(i["stroke-width"])&&!(0,o.isNumber)(s["stroke-width"]),h=(0,o.isNumber)(s["stroke-width"])&&!(0,o.isNumber)(i["stroke-width"]);if(l||h){let o=(t.getStrokeWidth(t.options)??1)/(e.mapView?.getScale()||1);l&&(s["stroke-width"]=o),h&&(i["stroke-width"]=o)}return r.call(s,i,a,h?function(){s.element.removeAttribute("stroke-width"),delete s["stroke-width"],n&&n.apply(this,arguments)}:n)}}})),s.forEach((i,s)=>{let n=(0===s?r:r.insets[s-1]).getSVGTransform(),l=this.getStrokeWidth(this.options)??1,h=n.scaleX,p=n.scaleY>0?1:-1,d=e=>{(t.points||[]).forEach(t=>{let i,o=t.graphic;o?.["stroke-width"]&&(i=this.getStrokeWidth(t.options))&&o.attr({"stroke-width":i/e})})};if(a.globalAnimation&&e.hasRendered&&r.allowTransformAnimation){let t=Number(i.attr("translateX")),e=Number(i.attr("translateY")),s=Number(i.attr("scaleX")),r=(o,r)=>{let a=s+(h-s)*r.pos;i.attr({translateX:t+(n.translateX-t)*r.pos,translateY:e+(n.translateY-e)*r.pos,scaleX:a,scaleY:a*p,"stroke-width":l/a}),d(a)},c=(0,o.merge)((0,o.animObject)(a.globalAnimation)),u=c.step;c.step=function(){u&&u.apply(this,arguments),r.apply(this,arguments)},i.attr({animator:0}).animate({animator:1},c,(function(){"boolean"!=typeof a.globalAnimation&&a.globalAnimation.complete&&a.globalAnimation.complete({applyDrilldown:!0}),(0,o.fireEvent)(this,"mapZoomComplete")}).bind(this))}else(0,o.stop)(i),i.attr((0,o.merge)(n,{"stroke-width":l/h})),d(h)}),this.isDrilling||this.drawMapDataLabels()}}getProjectedBounds(){if(!this.bounds&&this.chart.mapView){let{insets:t,projection:e}=this.chart.mapView,i=[];(this.points||[]).forEach(s=>{if(s.path||s.geometry){if("string"==typeof s.path?s.path=tB(s.path):(0,o.isArray)(s.path)&&"M"===s.path[0]&&(s.path=this.chart.renderer.pathToSegments(s.path)),!s.bounds){let i=s.getProjectedBounds(e);if(i){s.labelrank=s.labelrank??(i.x2-i.x1)*(i.y2-i.y1);let{midX:e,midY:r}=i;if(t&&(0,o.isNumber)(e)&&(0,o.isNumber)(r)){let a=(0,o.find)(t,t=>t.isInside({x:e,y:r}));a&&(delete s.projectedPath,(i=s.getProjectedBounds(a.projection))&&a.allBounds.push(i),s.insetIndex=t.indexOf(a))}s.bounds=i}}s.bounds&&void 0===s.insetIndex&&i.push(s.bounds)}}),this.bounds=tk.compositeBounds(i)}return this.bounds}getStrokeWidth(t){let e=this.pointAttrToOptions;return t[e?.["stroke-width"]||"borderWidth"]}hasData(){return!!this.dataTable.getModified().rowCount}pointAttribs(t,e){let{mapView:i,styledMode:s}=(t?.series||this).chart,r=s&&t?this.colorAttribs(t):tN.prototype.pointAttribs.call(this,t,e),a=this.getStrokeWidth(t?.options||{});if(e){let i=(0,o.merge)(this.options.states?.[e],t?.options.states?.[e]||{}),s=this.getStrokeWidth(i);(0,o.defined)(s)&&(a=s),r.stroke=i.borderColor??t?.color}a&&i&&(a/=i.getScale());let n=this.getStrokeWidth(this.options);return r.dashstyle&&i&&(0,o.isNumber)(n)&&(a=n/i.getScale()),t?.visible===!1&&(r.fill=this.options.nullColor),t?.isNull&&this.options.nullInteraction&&(r.opacity=1),(0,o.defined)(a)?r["stroke-width"]=a:delete r["stroke-width"],r["stroke-linecap"]=r["stroke-linejoin"]=this.options.linecap,r}matchPoints(){return!this.hasProcessedDataTable&&super.matchPoints.apply(this,arguments)}setData(t,e=!0,i,o){delete this.bounds,super.setData(t,!1,void 0,o),this.processData(),this.generatePoints(),e&&this.chart.redraw(i)}getDataColumnKeys(){return this.pointArrayMap}processData(){let t,e,i,s=this.options,r=this.dataTable,a=this.chart,n=a.options.chart,l=this.joinBy,h=[],p={},d=this.chart.mapView,u=d&&((0,o.isObject)(s.mapData,!0)?d.getGeoMap(s.mapData):d.geoMap),m=a.mapTransforms=n.mapTransforms||u?.["hc-transform"]||a.mapTransforms,g=new S;if(this.hasProcessedDataTable=!0,m&&(0,o.objectEach)(m,t=>{t.rotation&&(t.cosAngle=Math.cos(t.rotation),t.sinAngle=Math.sin(t.rotation))}),(0,o.isArray)(s.mapData)?i=s.mapData:u?.type==="FeatureCollection"&&(this.mapTitle=u.title,i=c().geojson(u,this.type,this)),Object.entries(r.columns).forEach(([t,e])=>{g.setColumn(t,e)}),"_i"===l[0]&&g.setColumn("_i",Array.from({length:g.rowCount},(t,e)=>e)),i){this.mapData=i,this.mapMap={};for(let o=0;o<i.length;o++)e=(t=i[o]).properties,t._i=o,l[0]&&e&&e[l[0]]&&(t[l[0]]=e[l[0]]),p[t[l[0]]]=t;if(this.mapMap=p,l[1]){let t=l[1];for(let e=0;e<g.rowCount;e++){let i="_i"===t?e:(0,o.getNestedProperty)(t,g.getRowObject(e));p[i]&&h.push(p[i])}}if(s.allAreas){let t="|"+h.map(function(t){return t&&t[l[0]]}).join("|")+"|";i.forEach(e=>{l[0]&&-1!==t.indexOf("|"+e[l[0]]+"|")||g.setRow((0,o.merge)(e,{value:null}))})}}this.dataTable.modified=g}setOptions(t){let e=super.setOptions(t),i=e.joinBy;return null===e.joinBy&&(i="_i"),i&&(this.joinBy=(0,o.splat)(i),this.joinBy[1]||(this.joinBy[1]=this.joinBy[0])),e}translate(){let t=this.doFullTranslate(),e=this.chart.mapView,i=e?.projection;if(this.chart.hasRendered&&(this.isDirtyData||!this.hasRendered)&&(this.processData(),this.generatePoints(),delete this.bounds,!e||e.userOptions.center||(0,o.isNumber)(e.userOptions.zoom)||e.zoom!==e.minZoom?this.getProjectedBounds():e.fitToBounds(void 0,void 0,!1)),e){let s=e.getSVGTransform();this.points.forEach(r=>{let a=(0,o.isNumber)(r.insetIndex)&&e.insets[r.insetIndex].getSVGTransform()||s;a&&r.bounds&&(0,o.isNumber)(r.bounds.midX)&&(0,o.isNumber)(r.bounds.midY)&&(r.plotX=r.bounds.midX*a.scaleX+a.translateX,r.plotY=r.bounds.midY*a.scaleY+a.translateY),t&&(r.shapeType="path",r.shapeArgs={d:Z.getProjectedPath(r,i)}),!r.hiddenInDataClass&&(r.projectedPath&&!r.projectedPath.length?r.setVisible(!1):r.visible||r.setVisible(!0))})}(0,o.fireEvent)(this,"afterTranslate")}update(t){t.mapData&&this.chart.mapView?.recommendMapView(this.chart,[this.chart.options.chart.map,...(this.chart.options.series||[]).map((e,i)=>i===this._i?t.mapData:e.mapData)],!0),super.update.apply(this,arguments)}}tO.defaultOptions=(0,o.merge)(tS.defaultOptions,{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,distance:0,formatter:function(){let{numberFormatter:t}=this.series.chart,{value:e}=this.point;return(0,o.isNumber)(e)?t(e,-1):this.point.name||""},inside:!0,overflow:!1,padding:[0,2],verticalAlign:"middle"},linecap:"round",marker:null,nullColor:"var(--highcharts-neutral-color-3)",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:"var(--highcharts-neutral-color-20)",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:void 0,borderColor:"var(--highcharts-neutral-color-60)",borderWidth:2},normal:{animation:!0},select:{color:"var(--highcharts-neutral-color-20)"}},legendSymbol:"rectangle"}),(0,o.extend)(tO.prototype,{type:"map",axisTypes:k.seriesMembers.axisTypes,colorAttribs:k.seriesMembers.colorAttribs,colorKey:k.seriesMembers.colorKey,directTouch:!0,drawDataLabels:tE,drawGraph:tE,forceDL:!0,getCenter:E.getCenter,getExtremesFromAll:!0,getSymbol:tE,isCartesian:!1,parallelArrays:k.seriesMembers.parallelArrays,pointArrayMap:k.seriesMembers.pointArrayMap,pointClass:Z,preserveAspectRatio:!0,searchPoint:tE,trackerGroups:k.seriesMembers.trackerGroups,useMapGeometry:!0}),k.compose(tO),T().registerSeriesType("map",tO);let tD=tO;class tI extends tD{pointAttribs(t,e){let i=super.pointAttribs(t,e);return i.fill=this.options.fillColor,i}}tI.defaultOptions=(0,o.merge)(tD.defaultOptions,{lineWidth:1,fillColor:"none",legendSymbol:"lineMarker"}),(0,o.extend)(tI.prototype,{type:"mapline",colorProp:"stroke",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),T().registerSeriesType("mapline",tI);let{scatter:tV}=T().seriesTypes;class tR extends tV.prototype.pointClass{isValid(){return!!(this.options.geometry||(0,o.isNumber)(this.x)&&(0,o.isNumber)(this.y)||(0,o.isNumber)(this.options.lon)&&(0,o.isNumber)(this.options.lat))}}i.d({},{});let{noop:tX}=c(),{map:tG,scatter:tF}=T().seriesTypes;class tY extends tF{constructor(){super(...arguments),this.clearBounds=tG.prototype.clearBounds}drawDataLabels(){super.drawDataLabels(),this.dataLabelsGroups?.forEach(t=>{t?.clip(this.chart.clipRect)})}projectPoint(t){let e=this.chart.mapView;if(e){let{geometry:i,lon:s,lat:r}=t,a=i&&"Point"===i.type&&i.coordinates;if((0,o.isNumber)(s)&&(0,o.isNumber)(r)&&(a=[s,r]),a)return e.lonLatToProjectedUnits({lon:a[0],lat:a[1]})}}translate(){let t=this.chart.mapView;if(this.generatePoints(),this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds()),t){let e=t.getSVGTransform(),{hasCoordinates:i}=t.projection;this.points.forEach(s=>{let r,{x:a,y:n}=s,l=(0,o.isNumber)(s.insetIndex)&&t.insets[s.insetIndex].getSVGTransform()||e,h=this.projectPoint(s.options)||s.properties&&this.projectPoint(s.properties);if(h?(a=h.x,n=h.y):s.bounds&&(a=s.bounds.midX,n=s.bounds.midY,l&&(0,o.isNumber)(a)&&(0,o.isNumber)(n)&&(s.plotX=a*l.scaleX+l.translateX,s.plotY=n*l.scaleY+l.translateY,r=!0)),(0,o.isNumber)(a)&&(0,o.isNumber)(n)){if(!r){let e=t.projectedUnitsToPixels({x:a,y:n});s.plotX=e.x,s.plotY=i?e.y:this.chart.plotHeight-e.y}}else s.y=s.plotX=s.plotY=void 0;s.isInside=this.isPointInside(s),s.zone=this.zones.length?s.getZone():void 0})}(0,o.fireEvent)(this,"afterTranslate")}}tY.defaultOptions=(0,o.merge)(tF.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"var(--highcharts-neutral-color-100)"}},legendSymbol:"lineMarker",stickyTracking:!0,tooltip:{pointFormat:"{#if point.name}{point.name}{else}Lat: {point.lat}, Lon: {point.lon}{/if}"}}),V().prototype.symbols.mapmarker=(t,e,i,o,s)=>{let r,a,n=s&&"legend"===s.context;n?(r=t+i/2,a=e+o):s&&"number"==typeof s.anchorX&&"number"==typeof s.anchorY?(r=s.anchorX,a=s.anchorY):(r=t+i/2,a=e+o/2,e-=o);let l=n?o/3:o/2;return[["M",r,a],["C",r,a,r-l,e+1.5*l,r-l,e+l],["A",l,l,1,1,1,r+l,e+l],["C",r+l,e+1.5*l,r,a,r,a],["Z"]]},(0,o.extend)(tY.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:tR,searchPoint:tX,useMapGeometry:!0}),T().registerSeriesType("mappoint",tY);let tU={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:"0.9em",color:"var(--highcharts-neutral-color-100)"},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},{noop:tZ}=c(),tW=class{constructor(t,e){this.setState=tZ,this.init(t,e)}init(t,e){this.options=t,this.visible=!0,this.chart=e.chart,this.legend=e}addToLegend(t){t.splice(this.options.legendIndex,0,this)}drawLegendSymbol(t){let e,i=t.options.itemDistance??20,s=this.legendItem||{},r=this.options,a=r.ranges,n=r.connectorDistance;if(!a||!a.length||!(0,o.isNumber)(a[0].value)){t.options.bubbleLegend.autoRanges=!0;return}(0,o.stableSort)(a,function(t,e){return e.value-t.value}),this.ranges=a,this.setOptions(),this.render();let l=this.getMaxLabelSize(),h=this.ranges[0].radius,p=2*h;e=(e=n-h+l.width)>0?e:0,this.maxLabel=l,this.movementX="left"===r.labels.align?e:0,s.labelWidth=p+e+i,s.labelHeight=p+l.height/2}setOptions(){let t=this.ranges,e=this.options,i=this.chart.series[e.seriesIndex],s=this.legend.baseline,r={zIndex:e.zIndex,"stroke-width":e.borderWidth},a={zIndex:e.zIndex,"stroke-width":e.connectorWidth},n={align:this.legend.options.rtl||"left"===e.labels.align?"right":"left",zIndex:e.zIndex},l=i.options.marker.fillOpacity,h=this.chart.styledMode;t.forEach(function(p,d){h||(r.stroke=p.borderColor??e.borderColor??i.color,r.fill=p.color||e.color,r.fill||(r.fill=i.color,r["fill-opacity"]=l??1),a.stroke=p.connectorColor??e.connectorColor??i.color),t[d].radius=this.getRangeRadius(p.value),t[d]=(0,o.merge)(t[d],{center:t[0].radius-t[d].radius+s}),h||(0,o.merge)(!0,t[d],{bubbleAttribs:(0,o.merge)(r),connectorAttribs:(0,o.merge)(a),labelAttribs:n})},this)}getRangeRadius(t){let e=this.options,i=this.options.seriesIndex,o=this.chart.series[i],s=e.ranges[0].value,r=e.ranges[e.ranges.length-1].value,a=e.minSize,n=e.maxSize;return o.getRadius.call(this,r,s,a,n,t)}render(){let t=this.legendItem||{},e=this.chart.renderer,i=this.options.zThreshold;for(let o of(this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),t.symbol=e.g("bubble-legend"),t.label=e.g("bubble-legend-item").css(this.legend.itemStyle||{}),t.symbol.translateX=0,t.symbol.translateY=0,t.symbol.add(t.label),t.label.add(t.group),this.ranges))o.value>=i&&this.renderRange(o);this.hideOverlappingLabels()}renderRange(t){let e=this.ranges[0],i=this.legend,o=this.options,s=o.labels,r=this.chart,a=r.series[o.seriesIndex],n=r.renderer,l=this.symbols,h=l.labels,p=t.center,d=Math.abs(t.radius),c=o.connectorDistance||0,u=s.align,m=i.options.rtl,g=o.borderWidth,b=o.connectorWidth,f=e.radius||0,y=p-d-g/2+b/2,x=(y%1?1:.5)-(b%2?0:.5),M=n.styledMode,v=m||"left"===u?-c:c;"center"===u&&(v=0,o.connectorDistance=0,t.labelAttribs.align="center"),l.bubbleItems.push(n.circle(f,p+x,d).attr(M?{}:t.bubbleAttribs).addClass((M?"highcharts-color-"+a.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(o.className||"")).add(this.legendItem.symbol)),l.connectors.push(n.path(n.crispLine([["M",f,y],["L",f+v,y]],o.connectorWidth)).attr(M?{}:t.connectorAttribs).addClass((M?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(o.connectorClassName||"")).add(this.legendItem.symbol));let w=n.text(this.formatLabel(t)).attr(M?{}:t.labelAttribs).css(M?{}:s.style).addClass("highcharts-bubble-legend-labels "+(o.labels.className||"")).add(this.legendItem.symbol),T={x:f+v+o.labels.x,y:y+o.labels.y+.4*w.getBBox().height};w.attr(T),h.push(w),w.placed=!0,w.alignAttr=T}getMaxLabelSize(){let t,e;return this.symbols.labels.forEach(function(i){e=i.getBBox(!0),t=t?e.width>t.width?e:t:e}),t||{}}formatLabel(t){let e=this.options,i=e.labels.formatter,o=e.labels.format,{numberFormatter:s}=this.chart;return o?H().format(o,t,this.chart):i?i.call(t,t):s(t.value,1)}hideOverlappingLabels(){let t=this.chart,e=this.options.labels.allowOverlap,i=this.symbols;!e&&i&&(t.hideOverlappingLabels(i.labels),i.labels.forEach(function(t,e){t.newOpacity?t.newOpacity!==t.oldOpacity&&i.connectors[e].show():i.connectors[e].hide()}))}getRanges(){let t=this.legend.bubbleLegend,e=t.chart.series,i=t.options.ranges,s,r,a=Number.MAX_VALUE,n=-Number.MAX_VALUE;return e.forEach(function(t){t.isBubble&&!t.ignoreSeries&&(r=t.getColumn("z").filter(o.isNumber)).length&&(a=t.options.zMin??Math.min(a,Math.max((0,o.arrayMin)(r),!1===t.options.displayNegative?t.options.zThreshold:-Number.MAX_VALUE)),n=t.options.zMax??Math.max(n,(0,o.arrayMax)(r)))}),s=a===n?[{value:n}]:[{value:a},{value:(a+n)/2},{value:n,autoRanges:!0}],i.length&&i[0].radius&&s.reverse(),s.forEach(function(t,e){i&&i[e]&&(s[e]=(0,o.merge)(i[e],t))}),s}predictBubbleSizes(){let t=this.chart,e=t.legend.options,i=e.floating,o="horizontal"===e.layout,s=o?t.legend.lastLineHeight:0,r=t.plotSizeX,a=t.plotSizeY,n=t.series[this.options.seriesIndex],l=n.getPxExtremes(),h=Math.ceil(l.minPxSize),p=Math.ceil(l.maxPxSize),d=Math.min(a,r),c,u=n.options.maxSize;return i||!/%$/.test(u)?c=p:(c=(d+s)*(u=parseFloat(u))/100/(u/100+1),(o&&a-c>=r||!o&&r-c>=a)&&(c=p)),[h,Math.ceil(c)]}updateRanges(t,e){let i=this.legend.options.bubbleLegend;i.minSize=t,i.maxSize=e,i.ranges=this.getRanges()}correctSizes(){let t=this.legend,e=this.chart.series[this.options.seriesIndex].getPxExtremes();Math.abs(Math.ceil(e.maxPxSize)-this.options.maxSize)>1&&(this.updateRanges(this.options.minSize,e.maxPxSize),t.render())}},{setOptions:t_}=c(),{composed:tH}=c();function tq(t,e,i){let s,r,a,n=this.legend,l=tK(this)>=0;n&&n.options.enabled&&n.bubbleLegend&&n.options.bubbleLegend.autoRanges&&l?(s=n.bubbleLegend.options,r=n.bubbleLegend.predictBubbleSizes(),n.bubbleLegend.updateRanges(r[0],r[1]),s.placed||(n.group.placed=!1,n.allItems.forEach(t=>{(a=t.legendItem||{}).group&&(a.group.translateY=void 0)})),n.render(),s.placed||(this.getMargins(),this.axes.forEach(t=>{t.setScale(),t.updateNames(),(0,o.objectEach)(t.ticks,function(t){t.isNew=!0,t.isNewLabel=!0})}),this.getMargins()),s.placed=!0,t.call(this,e,i),n.bubbleLegend.correctSizes()):(t.call(this,e,i),n&&n.options.enabled&&n.bubbleLegend&&n.render())}function tK(t){let e=t.series,i=0;for(;i<e.length;){if(e[i]&&e[i].isBubble&&e[i].visible&&e[i].dataTable.rowCount)return i;i++}return -1}function t$(t){let e=this.bubbleLegend,i=this.options,o=i.bubbleLegend,s=tK(this.chart);e&&e.ranges&&e.ranges.length&&(o.ranges.length&&(o.autoRanges=!!o.ranges[0].autoRanges),this.destroyItem(e)),s>=0&&i.enabled&&o.enabled&&(o.seriesIndex=s,this.bubbleLegend=new tW(o,this),this.bubbleLegend.addToLegend(t.allItems))}function tJ(){if(this.bubbleLegend){let t=this.allItems,e=this.options.rtl,i=function(t){let e=t.allItems,i=[],o=e.length,s,r,a,n=0,l=0;for(n=0;n<o;n++)if(r=e[n].legendItem||{},a=(e[n+1]||{}).legendItem||{},r.labelHeight&&(e[n].itemHeight=r.labelHeight),e[n]===e[o-1]||r.y!==a.y){for(i.push({height:0}),s=i[i.length-1];l<=n;l++)e[l].itemHeight>s.height&&(s.height=e[l].itemHeight);s.step=n}return i}(this),o,s,r,a,n=0;t.forEach((t,l)=>{(a=t.legendItem||{}).group&&(o=a.group.translateX||0,s=a.y||0,((r=t.movementX)||e&&t.ranges)&&(r=e?o-t.options.maxSize/2:o+r,a.group.attr({translateX:r})),l>i[n].step&&n++,a.group.attr({translateY:Math.round(s+i[n].height/2)}),a.y=s+i[n].height/2)})}}function tQ(t){let e;if(t.defaultPrevented)return!1;let i=t.legendItem,o=this.chart,s=i.visible;this&&this.bubbleLegend&&(i.visible=!s,i.ignoreSeries=s,e=tK(o)>=0,this.bubbleLegend.visible!==e&&(this.update({bubbleLegend:{enabled:e}}),this.bubbleLegend.visible=e),i.visible=s)}let t0=function(t,e){(0,o.pushUnique)(tH,"Series.BubbleLegend")&&(t_({legend:{bubbleLegend:tU}}),(0,o.wrap)(t.prototype,"drawChartBox",tq),(0,o.addEvent)(e,"afterGetAllItems",t$),(0,o.addEvent)(e,"afterRender",tJ),(0,o.addEvent)(e,"itemClick",tQ))},t1=e.default.Point;var t2=i.n(t1);let{seriesTypes:{scatter:{prototype:{pointClass:t3}}}}=T();class t6 extends t3{haloPath(t){let e=(t&&this.marker&&this.marker.radius||0)+t;if(this.series.chart.inverted){let t=this.pos()||[0,0],{xAxis:i,yAxis:o,chart:s}=this.series,r=2*e;return s.renderer.symbols.circle((i?.len||0)-t[1]-e,(o?.len||0)-t[0]-e,r,r)}return t2().prototype.haloPath.call(this,e)}}(0,o.extend)(t6.prototype,{ttBelow:!1});let t8=t6,{composed:t7,noop:t4}=c(),{series:t5,seriesTypes:{column:{prototype:t9},scatter:et}}=T();function ee(){let t=this.len,{coll:e,isXAxis:i,min:s}=this,r=(this.max||0)-(s||0),a=0,n=t,l=t/r,h;("xAxis"===e||"yAxis"===e)&&(this.series.forEach(t=>{if(t.bubblePadding&&t.reserveSpace()){this.allowZoomOutside=!0,h=!0;let e=t.getColumn(i?"x":"y");if(i&&((t.onPoint||t).getRadii(0,0,t),t.onPoint&&(t.radii=t.onPoint.radii)),r>0){let i=e.length;for(;i--;)if((0,o.isNumber)(e[i])&&this.dataMin<=e[i]&&e[i]<=this.max){let o=t.radii&&t.radii[i]||0;a=Math.min((e[i]-s)*l-o,a),n=Math.max((e[i]-s)*l+o,n)}}}}),h&&r>0&&!this.logarithmic&&(n-=t,l*=(t+Math.max(0,a)-Math.min(n,t))/t,[["min","userMin",a],["max","userMax",n]].forEach(t=>{void 0===(this.options[t[0]]??this[t[1]])&&(this[t[0]]+=t[2]/l)})))}function ei(){let{ticks:t,tickPositions:e,dataMin:i=0,dataMax:o=0,categories:s}=this,r=this.options.type;if((s?.length||"category"===r)&&this.series.find(t=>t.bubblePadding)){let s=e.length;for(;s--;){let r=t[e[s]],a=r.pos||0;(a>o||a<i)&&r.label?.hide()}}}class eo extends et{static compose(t,e,i){t0(e,i),(0,o.pushUnique)(t7,"Series.Bubble")&&((0,o.addEvent)(t,"foundExtremes",ee),(0,o.addEvent)(t,"afterRender",ei))}animate(t){!t&&this.points.length<this.options.animationLimit&&this.points.forEach(function(t){let{graphic:e,plotX:i=0,plotY:o=0}=t;e&&e.width&&(this.hasRendered||e.attr({x:i,y:o,width:1,height:1}),e.animate(this.markerAttribs(t),this.options.animation))},this)}getRadii(){let t=[...this.getColumn("z",!1,!0)],e=this.getColumn("y"),i=[],o,s,r,a=this.chart.bubbleZExtremes,{minPxSize:n,maxPxSize:l}=this.getPxExtremes();if(!a){let t,e=Number.MAX_VALUE,i=-Number.MAX_VALUE;this.chart.series.forEach(o=>{if(o.bubblePadding&&o.reserveSpace()){let s=(o.onPoint||o).getZExtremes();s&&(e=Math.min(e??s.zMin,s.zMin),i=Math.max(i??s.zMax,s.zMax),t=!0)}}),t?(a={zMin:e,zMax:i},this.chart.bubbleZExtremes=a):a={zMin:0,zMax:0}}for(s=0,o=t.length;s<o;s++)r=t[s],i.push(this.getRadius(a.zMin,a.zMax,n,l,r,e&&e[s]));this.radii=i}getRadius(t,e,i,s,r,a){let n=this.options,l="width"!==n.sizeBy,h=n.zThreshold,p=e-t,d=.5;if(null===a||null===r)return null;if((0,o.isNumber)(r)){if(n.sizeByAbsoluteValue&&(r=Math.abs(r-h),e=p=Math.max(e-h,Math.abs(t-h)),t=0),r<t)return i/2-1;p>0&&(d=(r-t)/p)}return l&&d>=0&&(d=Math.sqrt(d)),Math.ceil(i+d*(s-i))/2}hasData(){return!!this.dataTable.rowCount}markerAttribs(t,e){let i=super.markerAttribs(t,e),{height:s=0,width:r=0}=i;return this.chart.inverted?(0,o.extend)(i,{x:(t.plotX||0)-r/2,y:(t.plotY||0)-s/2}):i}pointAttribs(t,e){let i=this.options.marker,o=i?.fillOpacity,s=t5.prototype.pointAttribs.call(this,t,e);return s["fill-opacity"]=o??1,s}translate(){super.translate.call(this),this.getRadii(),this.translateBubble()}translateBubble(){let{options:t,radii:e}=this,{minPxSize:i}=this.getPxExtremes();this.data.concat(this.condemnedPoints).forEach((s,r)=>{let{plotX:a=0,plotY:n=0}=s,l=s.condemned?s.marker?.radius||0:e?e[r]:0;"z"===this.zoneAxis&&(s.negative=(s.z||0)<(t.zThreshold||0)),(0,o.isNumber)(l)&&(s.marker=(0,o.extend)(s.marker,{radius:l,width:2*l,height:2*l})),(0,o.isNumber)(l)&&l>=i/2?s.dlBox={x:a-l,y:n-l,width:2*l,height:2*l}:(s.shapeArgs=s.plotY=s.dlBox=void 0,s.isInside=!1)})}getPxExtremes(){let t=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=e=>{let i;return"string"==typeof e&&(i=/%$/.test(e),e=parseInt(e,10)),i?t*e/100:e},i=e(this.options.minSize??8),o=Math.max(e(this.options.maxSize??"20%"),i);return{minPxSize:i,maxPxSize:o}}getZExtremes(){let t=this.options,e=this.getColumn("z").filter(o.isNumber);if(e.length){let i=t.zMin??(0,o.clamp)((0,o.arrayMin)(e),!1===t.displayNegative?t.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE),s=t.zMax??(0,o.arrayMax)(e);if((0,o.isNumber)(i)&&(0,o.isNumber)(s))return{zMin:i,zMax:s}}}searchKDTree(t,e,i,o=t4,s=t4){return o=(t,e,i)=>{let o=t[i]||0,s=e[i]||0,r,a=!1;return o===s?r=t.index>e.index?t:e:o<0&&s<0?(r=o-(t.marker?.radius||0)>=s-(e.marker?.radius||0)?t:e,a=!0):r=o<s?t:e,[r,a]},s=(t,e,i)=>!i&&t>e||t<e,super.searchKDTree(t,e,i,o,s)}}eo.defaultOptions=(0,o.merge)(et.defaultOptions,{dataLabels:{formatter:function(){let{numberFormatter:t}=this.series.chart,{z:e}=this.point;return(0,o.isNumber)(e)?t(e,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),(0,o.extend)(eo.prototype,{alignDataLabel:t9.alignDataLabel,applyZones:t4,bubblePadding:!0,isBubble:!0,keysAffectYAxis:["y"],pointArrayMap:["y","z"],pointClass:t8,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),(0,o.addEvent)(eo,"updatedData",t=>{delete t.target.chart.bubbleZExtremes}),(0,o.addEvent)(eo,"remove",t=>{delete t.target.chart.bubbleZExtremes}),(0,o.addEvent)(eo,"update",t=>{let e=t.target.options;((0,o.defined)(e.zMin)||(0,o.defined)(e.zMax))&&delete t.target.chart.bubbleZExtremes}),T().registerSeriesType("bubble",eo);let es=eo,{seriesTypes:{map:{prototype:{pointClass:{prototype:er}}}}}=T();class ea extends t8{isValid(){return"number"==typeof this.z}}(0,o.extend)(ea.prototype,{applyOptions:er.applyOptions,getProjectedBounds:er.getProjectedBounds});let{seriesTypes:{map:{prototype:en},mappoint:{prototype:el}}}=T();class eh extends es{constructor(){super(...arguments),this.clearBounds=en.clearBounds}searchPoint(t,e){return this.searchKDTree({plotX:t.chartX-this.chart.plotLeft,plotY:t.chartY-this.chart.plotTop},e,t)}translate(){el.translate.call(this),this.getRadii(),this.translateBubble()}}eh.defaultOptions=(0,o.merge)(es.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"},stickyTracking:!0}),(0,o.extend)(eh.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:en.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:ea,processData:en.processData,projectPoint:el.projectPoint,kdAxisArray:["plotX","plotY"],setData:en.setData,setOptions:en.setOptions,useMapGeometry:!0,xyFromShape:!0}),T().registerSeriesType("mapbubble",eh);let ep=e.default.Color;var ed=i.n(ep);let{scatter:{prototype:{pointClass:ec}}}=T().seriesTypes;class eu extends ec{applyOptions(t,e){return(this.isNull||null===this.value)&&delete this.color,super.applyOptions(t,e),this.formatPrefix=this.isNull||null===this.value?"null":"point",this}getCellAttributes(){let t=this.series,e=t.options,i=(e.colsize||1)/2,s=(e.rowsize||1)/2,r=t.xAxis,a=t.yAxis,n=this.options.marker||t.options.marker,l=t.pointPlacementToXValue(),h=this.pointPadding??e.pointPadding??0,p={x1:(0,o.clamp)(Math.round(r.len-r.translate(this.x-i,!1,!0,!1,!0,-l)),-r.len,2*r.len),x2:(0,o.clamp)(Math.round(r.len-r.translate(this.x+i,!1,!0,!1,!0,-l)),-r.len,2*r.len),y1:(0,o.clamp)(Math.round(a.translate(this.y-s,!1,!0,!1,!0)),-a.len,2*a.len),y2:(0,o.clamp)(Math.round(a.translate(this.y+s,!1,!0,!1,!0)),-a.len,2*a.len)};for(let t of[["width","x"],["height","y"]]){let e=t[0],i=t[1],s=i+"1",l=i+"2",d=Math.abs(p[s]-p[l]),c=n&&n.lineWidth||0,u=Math.abs(p[s]+p[l])/2,m=n&&n[e];if((0,o.defined)(m)&&m<d){let t=m/2+c/2;p[s]=u-t,p[l]=u+t}h&&(("x"===i&&r.reversed||"y"===i&&!a.reversed)&&(s=l,l=i+"1"),p[s]+=h,p[l]-=h)}return p}haloPath(t){if(!t)return[];let{x:e=0,y:i=0,width:o=0,height:s=0}=this.shapeArgs||{};return[["M",e-t,i-t],["L",e-t,i+s+t],["L",e+o+t,i+s+t],["L",e+o+t,i-t],["Z"]]}isValid(){return 1/0!==this.value&&-1/0!==this.value}}(0,o.extend)(eu.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1});let{doc:em}=c(),{series:eg,seriesTypes:{column:eb,scatter:ef}}=T(),{prototype:{symbols:ey}}=V(),{colorFromPoint:ex,getContext:eM}={colorFromPoint:function(t,e){let i=e.series.colorAxis;if(i){let s=i.toColor(t||0,e).split(")")[0].split("(")[1].split(",").map(t=>parseFloat(t)??parseInt(t,10));return s[3]=(s[3]??1)*255,(0,o.defined)(t)&&e.visible||(s[3]=0),s}return[0,0,0,0]},getContext:function(t){let{canvas:e,context:i}=t;return e&&i?.clearRect?(i.clearRect(0,0,e.width,e.height),i):(t.canvas=em.createElement("canvas"),t.context=t.canvas.getContext("2d",{willReadFrequently:!0})||void 0,t.context)}};class ev extends ef{constructor(){super(...arguments),this.valueMax=0/0,this.valueMin=0/0,this.isDirtyCanvas=!0}drawPoints(){let t=this,e=t.options,i=e.interpolation,o=e.marker||{};if(i){let{image:e,chart:i,xAxis:o,yAxis:s}=t,{reversed:r=!1,len:a}=o,{reversed:n=!1,len:l}=s,h={width:a,height:l};if(!e||t.isDirtyData||t.isDirtyCanvas){let a=eM(t),{canvas:l,options:{colsize:p=1,rowsize:d=1},points:c,points:{length:u}}=t,m=i.colorAxis&&i.colorAxis[0];if(l&&a&&m){let{min:m,max:g}=o.getExtremes(),{min:b,max:f}=s.getExtremes(),y=g-m,x=f-b,M=Math.round(y/p/8*8),v=Math.round(x/d/8*8),[w,T]=[[M,M/y,r,"ceil"],[v,v/x,!n,"floor"]].map(([t,e,i,o])=>i?i=>Math[o](t-e*i):t=>Math[o](e*t)),P=l.width=M+1,C=P*(l.height=v+1),j=(u-1)/C,L=new Uint8ClampedArray(4*C),A=(t,e)=>4*Math.ceil(P*T(e-b)+w(t-m));t.buildKDTree();for(let t=0;t<C;t++){let e=c[Math.ceil(j*t)],{x:i,y:o}=e;L.set(ex(e.value,e),A(i,o))}a.putImageData(new ImageData(L,P),0,0),e?e.attr({...h,href:l.toDataURL("image/png",1)}):(t.directTouch=!1,t.image=i.renderer.image(l.toDataURL("image/png",1)).attr(h).add(t.group))}t.isDirtyCanvas=!1}else(e.width!==a||e.height!==l)&&e.attr(h)}else(o.enabled||t._hasPointMarkers)&&(eg.prototype.drawPoints.call(t),t.points.forEach(e=>{e.graphic&&(e.graphic[t.chart.styledMode?"css":"animate"](t.colorAttribs(e)),null===e.value&&e.graphic.addClass("highcharts-null-point"))}))}getSymbol(){this.symbol=this.options.marker?.symbol||"rect"}getExtremes(){let{dataMin:t,dataMax:e}=eg.prototype.getExtremes.call(this,this.getColumn("value"));return(0,o.isNumber)(t)&&(this.valueMin=t),(0,o.isNumber)(e)&&(this.valueMax=e),eg.prototype.getExtremes.call(this)}getValidPoints(t,e){return eg.prototype.getValidPoints.call(this,t,e,!0)}hasData(){return!!this.dataTable.rowCount}init(){super.init.apply(this,arguments);let t=this.options;t.pointRange=t.pointRange??(t.colsize||1),this.yAxis.axisPointRange=t.rowsize||1,ey.ellipse=ey.circle,t.marker&&(0,o.isNumber)(t.borderRadius)&&(t.marker.r=t.borderRadius);let e=this.canvas=document.createElement("canvas");e&&(this.context=e?.getContext("webgpu"))}markerAttribs(t,e){let i=t.shapeArgs||{};if(t.hasImage)return{x:t.plotX,y:t.plotY};if(e&&"normal"!==e){let o=t.options.marker||{},s=this.options.marker||{},r=s.states?.[e]||{},a=o.states?.[e]||{},n=(a.width||r.width||i.width||0)+(a.widthPlus||r.widthPlus||0),l=(a.height||r.height||i.height||0)+(a.heightPlus||r.heightPlus||0);return{x:(i.x||0)+((i.width||0)-n)/2,y:(i.y||0)+((i.height||0)-l)/2,width:n,height:l}}return i}pointAttribs(t,e){let i=eg.prototype.pointAttribs.call(this,t,e),s=this.options||{},r=this.chart.options.plotOptions||{},a=r.series||{},n=r.heatmap||{},l=t?.options.borderColor||s.borderColor||n.borderColor||a.borderColor,h=t?.options.borderWidth||s.borderWidth||n.borderWidth||a.borderWidth||i["stroke-width"];if(i.stroke=t?.marker?.lineColor||s.marker?.lineColor||l||this.color,i["stroke-width"]=h,e&&"normal"!==e){let r=(0,o.merge)(s.states?.[e],s.marker?.states?.[e],t?.options.marker?.states?.[e]||{});i.fill=r.color||ed().parse(i.fill).brighten(r.brightness||0).get(),i.stroke=r.lineColor||i.stroke}return i}translate(){let{borderRadius:t,marker:e}=this.options,i=e?.symbol||"rect",s=ey[i]?i:"rect",r=-1!==["circle","square"].indexOf(s);for(let e of(this.generatePoints(),this.points)){let a=e.getCellAttributes(),n=Math.min(a.x1,a.x2),l=Math.min(a.y1,a.y2),h=Math.max(Math.abs(a.x2-a.x1),0),p=Math.max(Math.abs(a.y2-a.y1),0);if(e.hasImage=0===(e.marker?.symbol||i||"").indexOf("url"),r){let t=Math.abs(h-p);n=Math.min(a.x1,a.x2)+(h<p?0:t/2),l=Math.min(a.y1,a.y2)+(h<p?t/2:0),h=p=Math.min(h,p)}e.hasImage&&(e.marker={width:h,height:p}),e.plotX=e.clientX=(a.x1+a.x2)/2,e.plotY=(a.y1+a.y2)/2,e.shapeType="path",e.shapeArgs=(0,o.merge)(!0,{x:n,y:l,width:h,height:p},{d:ey[s](n,l,h,p,{r:(0,o.isNumber)(t)?t:0})})}(0,o.fireEvent)(this,"afterTranslate")}}ev.defaultOptions=(0,o.merge)(ef.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,interpolation:!1,nullColor:"var(--highcharts-neutral-color-3)",dataLabels:{formatter:function(){let{numberFormatter:t}=this.series.chart,{value:e}=this.point;return(0,o.isNumber)(e)?t(e,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:"allow",padding:0},marker:{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}},legendSymbol:"rectangle"}),(0,o.addEvent)(ev,"afterDataClassLegendClick",function(){this.isDirtyCanvas=!0,this.drawPoints(),this.options.enableMouseTracking&&this.drawTracker()}),(0,o.extend)(ev.prototype,{axisTypes:k.seriesMembers.axisTypes,colorKey:k.seriesMembers.colorKey,directTouch:!0,getExtremesFromAll:!0,keysAffectYAxis:["y"],parallelArrays:k.seriesMembers.parallelArrays,pointArrayMap:["y","value"],pointClass:eu,specialGroup:"group",trackerGroups:k.seriesMembers.trackerGroups,alignDataLabel:eb.prototype.alignDataLabel,colorAttribs:k.seriesMembers.colorAttribs}),k.compose(ev),T().registerSeriesType("heatmap",ev);let ew=c();ew.ColorMapComposition=k,ew.MapChart=ew.MapChart||G,ew.MapNavigation=ew.MapNavigation||v,ew.MapView=ew.MapView||tk,ew.Projection=ew.Projection||tv,ew.mapChart=ew.Map=ew.MapChart.mapChart,ew.maps=ew.MapChart.maps,ew.geojson=$.geojson,ew.topo2geo=$.topo2geo,$.compose(ew.Chart),eh.compose(ew.Axis,ew.Chart,ew.Legend),v.compose(G,ew.Pointer,ew.SVGRenderer),tk.compose(G);let eT=c();export{eT as default};