highcharts 12.0.1 → 12.0.2

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 (304) hide show
  1. package/bower.json +1 -1
  2. package/es-modules/Core/Axis/Axis.js +1 -1
  3. package/es-modules/Core/Renderer/SVG/SVGElement.js +8 -2
  4. package/es-modules/Core/Renderer/SVG/TextBuilder.js +1 -1
  5. package/es-modules/Core/Tooltip.js +2 -1
  6. package/es-modules/Core/Utilities.js +53 -53
  7. package/es-modules/Extensions/Boost/WGLRenderer.js +12 -4
  8. package/es-modules/Extensions/Drilldown/Drilldown.js +3 -3
  9. package/es-modules/Series/Line/LineSeries.js +2 -4
  10. package/es-modules/Stock/RangeSelector/RangeSelector.js +1 -1
  11. package/es-modules/tsconfig.tsbuildinfo +1 -1
  12. package/highcharts-3d.js +2 -2
  13. package/highcharts-3d.src.js +5 -5
  14. package/highcharts-gantt.js +5 -5
  15. package/highcharts-gantt.src.js +30 -25
  16. package/highcharts-more.js +2 -2
  17. package/highcharts-more.src.js +5 -5
  18. package/highcharts.js +3 -3
  19. package/highcharts.src.js +24 -19
  20. package/highmaps.js +5 -5
  21. package/highmaps.src.js +27 -22
  22. package/highstock.js +5 -5
  23. package/highstock.src.js +30 -25
  24. package/indicators/acceleration-bands.js +2 -2
  25. package/indicators/acceleration-bands.src.js +5 -5
  26. package/indicators/accumulation-distribution.js +2 -2
  27. package/indicators/accumulation-distribution.src.js +5 -5
  28. package/indicators/ao.js +2 -2
  29. package/indicators/ao.src.js +5 -5
  30. package/indicators/apo.js +2 -2
  31. package/indicators/apo.src.js +5 -5
  32. package/indicators/aroon-oscillator.js +2 -2
  33. package/indicators/aroon-oscillator.src.js +5 -5
  34. package/indicators/aroon.js +2 -2
  35. package/indicators/aroon.src.js +5 -5
  36. package/indicators/atr.js +2 -2
  37. package/indicators/atr.src.js +5 -5
  38. package/indicators/bollinger-bands.js +2 -2
  39. package/indicators/bollinger-bands.src.js +5 -5
  40. package/indicators/cci.js +2 -2
  41. package/indicators/cci.src.js +5 -5
  42. package/indicators/chaikin.js +2 -2
  43. package/indicators/chaikin.src.js +5 -5
  44. package/indicators/cmf.js +2 -2
  45. package/indicators/cmf.src.js +5 -5
  46. package/indicators/cmo.js +2 -2
  47. package/indicators/cmo.src.js +5 -5
  48. package/indicators/dema.js +2 -2
  49. package/indicators/dema.src.js +5 -5
  50. package/indicators/disparity-index.js +2 -2
  51. package/indicators/disparity-index.src.js +5 -5
  52. package/indicators/dmi.js +2 -2
  53. package/indicators/dmi.src.js +5 -5
  54. package/indicators/dpo.js +2 -2
  55. package/indicators/dpo.src.js +5 -5
  56. package/indicators/ema.js +1 -1
  57. package/indicators/ema.src.js +4 -4
  58. package/indicators/ichimoku-kinko-hyo.js +2 -2
  59. package/indicators/ichimoku-kinko-hyo.src.js +5 -5
  60. package/indicators/indicators-all.js +2 -2
  61. package/indicators/indicators-all.src.js +5 -5
  62. package/indicators/indicators.js +2 -2
  63. package/indicators/indicators.src.js +5 -5
  64. package/indicators/keltner-channels.js +2 -2
  65. package/indicators/keltner-channels.src.js +5 -5
  66. package/indicators/klinger.js +2 -2
  67. package/indicators/klinger.src.js +5 -5
  68. package/indicators/macd.js +2 -2
  69. package/indicators/macd.src.js +5 -5
  70. package/indicators/mfi.js +2 -2
  71. package/indicators/mfi.src.js +5 -5
  72. package/indicators/momentum.js +2 -2
  73. package/indicators/momentum.src.js +5 -5
  74. package/indicators/natr.js +2 -2
  75. package/indicators/natr.src.js +5 -5
  76. package/indicators/obv.js +2 -2
  77. package/indicators/obv.src.js +5 -5
  78. package/indicators/pivot-points.js +2 -2
  79. package/indicators/pivot-points.src.js +5 -5
  80. package/indicators/ppo.js +2 -2
  81. package/indicators/ppo.src.js +5 -5
  82. package/indicators/price-channel.js +2 -2
  83. package/indicators/price-channel.src.js +5 -5
  84. package/indicators/price-envelopes.js +2 -2
  85. package/indicators/price-envelopes.src.js +5 -5
  86. package/indicators/psar.js +2 -2
  87. package/indicators/psar.src.js +5 -5
  88. package/indicators/regressions.js +2 -2
  89. package/indicators/regressions.src.js +5 -5
  90. package/indicators/roc.js +2 -2
  91. package/indicators/roc.src.js +5 -5
  92. package/indicators/rsi.js +2 -2
  93. package/indicators/rsi.src.js +5 -5
  94. package/indicators/slow-stochastic.js +2 -2
  95. package/indicators/slow-stochastic.src.js +5 -5
  96. package/indicators/stochastic.js +2 -2
  97. package/indicators/stochastic.src.js +5 -5
  98. package/indicators/supertrend.js +2 -2
  99. package/indicators/supertrend.src.js +5 -5
  100. package/indicators/tema.js +2 -2
  101. package/indicators/tema.src.js +5 -5
  102. package/indicators/trendline.js +2 -2
  103. package/indicators/trendline.src.js +5 -5
  104. package/indicators/trix.js +2 -2
  105. package/indicators/trix.src.js +5 -5
  106. package/indicators/volume-by-price.js +2 -2
  107. package/indicators/volume-by-price.src.js +5 -5
  108. package/indicators/vwap.js +2 -2
  109. package/indicators/vwap.src.js +5 -5
  110. package/indicators/williams-r.js +2 -2
  111. package/indicators/williams-r.src.js +5 -5
  112. package/indicators/wma.js +2 -2
  113. package/indicators/wma.src.js +5 -5
  114. package/indicators/zigzag.js +2 -2
  115. package/indicators/zigzag.src.js +5 -5
  116. package/modules/accessibility.js +2 -2
  117. package/modules/accessibility.src.js +5 -5
  118. package/modules/annotations-advanced.js +4 -4
  119. package/modules/annotations-advanced.src.js +8 -8
  120. package/modules/annotations.js +2 -2
  121. package/modules/annotations.src.js +7 -7
  122. package/modules/arc-diagram.js +2 -2
  123. package/modules/arc-diagram.src.js +5 -5
  124. package/modules/arrow-symbols.js +2 -2
  125. package/modules/arrow-symbols.src.js +5 -5
  126. package/modules/boost-canvas.js +2 -2
  127. package/modules/boost-canvas.src.js +21 -10
  128. package/modules/boost.js +2 -2
  129. package/modules/boost.src.js +21 -10
  130. package/modules/broken-axis.js +2 -2
  131. package/modules/broken-axis.src.js +5 -5
  132. package/modules/bullet.js +2 -2
  133. package/modules/bullet.src.js +5 -5
  134. package/modules/coloraxis.js +2 -2
  135. package/modules/coloraxis.src.js +5 -5
  136. package/modules/current-date-indicator.js +2 -2
  137. package/modules/current-date-indicator.src.js +5 -5
  138. package/modules/cylinder.js +2 -2
  139. package/modules/cylinder.src.js +5 -5
  140. package/modules/data-tools.js +2 -2
  141. package/modules/data-tools.src.js +5 -5
  142. package/modules/data.js +2 -2
  143. package/modules/data.src.js +5 -5
  144. package/modules/datagrouping.js +2 -2
  145. package/modules/datagrouping.src.js +5 -5
  146. package/modules/debugger.js +2 -2
  147. package/modules/debugger.src.js +5 -5
  148. package/modules/dependency-wheel.js +2 -2
  149. package/modules/dependency-wheel.src.js +5 -5
  150. package/modules/dotplot.js +2 -2
  151. package/modules/dotplot.src.js +5 -5
  152. package/modules/drag-panes.js +2 -2
  153. package/modules/drag-panes.src.js +5 -5
  154. package/modules/draggable-points.js +2 -2
  155. package/modules/draggable-points.src.js +5 -5
  156. package/modules/drilldown.js +2 -2
  157. package/modules/drilldown.src.js +8 -8
  158. package/modules/dumbbell.js +2 -2
  159. package/modules/dumbbell.src.js +5 -5
  160. package/modules/export-data.js +2 -2
  161. package/modules/export-data.src.js +5 -5
  162. package/modules/exporting.js +2 -2
  163. package/modules/exporting.src.js +5 -5
  164. package/modules/flowmap.js +2 -2
  165. package/modules/flowmap.src.js +5 -5
  166. package/modules/full-screen.js +2 -2
  167. package/modules/full-screen.src.js +5 -5
  168. package/modules/funnel.js +2 -2
  169. package/modules/funnel.src.js +5 -5
  170. package/modules/funnel3d.js +2 -2
  171. package/modules/funnel3d.src.js +5 -5
  172. package/modules/gantt.js +5 -5
  173. package/modules/gantt.src.js +9 -9
  174. package/modules/geoheatmap.js +2 -2
  175. package/modules/geoheatmap.src.js +5 -5
  176. package/modules/grid-axis.js +2 -2
  177. package/modules/grid-axis.src.js +5 -5
  178. package/modules/heatmap.js +3 -3
  179. package/modules/heatmap.src.js +6 -6
  180. package/modules/heikinashi.js +2 -2
  181. package/modules/heikinashi.src.js +5 -5
  182. package/modules/histogram-bellcurve.js +2 -2
  183. package/modules/histogram-bellcurve.src.js +5 -5
  184. package/modules/hollowcandlestick.js +2 -2
  185. package/modules/hollowcandlestick.src.js +5 -5
  186. package/modules/item-series.js +2 -2
  187. package/modules/item-series.src.js +5 -5
  188. package/modules/lollipop.js +2 -2
  189. package/modules/lollipop.src.js +5 -5
  190. package/modules/map.js +4 -4
  191. package/modules/map.src.js +6 -6
  192. package/modules/marker-clusters.js +2 -2
  193. package/modules/marker-clusters.src.js +5 -5
  194. package/modules/mouse-wheel-zoom.js +2 -2
  195. package/modules/mouse-wheel-zoom.src.js +5 -5
  196. package/modules/navigator.js +2 -2
  197. package/modules/navigator.src.js +5 -5
  198. package/modules/networkgraph.js +2 -2
  199. package/modules/networkgraph.src.js +5 -5
  200. package/modules/no-data-to-display.js +2 -2
  201. package/modules/no-data-to-display.src.js +5 -5
  202. package/modules/offline-exporting.js +2 -2
  203. package/modules/offline-exporting.src.js +6 -6
  204. package/modules/organization.js +2 -2
  205. package/modules/organization.src.js +5 -5
  206. package/modules/overlapping-datalabels.js +2 -2
  207. package/modules/overlapping-datalabels.src.js +5 -5
  208. package/modules/parallel-coordinates.js +2 -2
  209. package/modules/parallel-coordinates.src.js +5 -5
  210. package/modules/pareto.js +2 -2
  211. package/modules/pareto.src.js +5 -5
  212. package/modules/pathfinder.js +2 -2
  213. package/modules/pathfinder.src.js +5 -5
  214. package/modules/pattern-fill.js +2 -2
  215. package/modules/pattern-fill.src.js +5 -5
  216. package/modules/pictorial.js +2 -2
  217. package/modules/pictorial.src.js +5 -5
  218. package/modules/pointandfigure.js +2 -2
  219. package/modules/pointandfigure.src.js +5 -5
  220. package/modules/price-indicator.js +2 -2
  221. package/modules/price-indicator.src.js +5 -5
  222. package/modules/pyramid3d.js +2 -2
  223. package/modules/pyramid3d.src.js +5 -5
  224. package/modules/renko.js +2 -2
  225. package/modules/renko.src.js +5 -5
  226. package/modules/sankey.js +2 -2
  227. package/modules/sankey.src.js +5 -5
  228. package/modules/series-label.js +2 -2
  229. package/modules/series-label.src.js +5 -5
  230. package/modules/series-on-point.js +2 -2
  231. package/modules/series-on-point.src.js +5 -5
  232. package/modules/solid-gauge.js +2 -2
  233. package/modules/solid-gauge.src.js +5 -5
  234. package/modules/sonification.js +2 -2
  235. package/modules/sonification.src.js +5 -5
  236. package/modules/static-scale.js +2 -2
  237. package/modules/static-scale.src.js +5 -5
  238. package/modules/stock-tools.js +2 -2
  239. package/modules/stock-tools.src.js +7 -7
  240. package/modules/stock.js +5 -5
  241. package/modules/stock.src.js +9 -9
  242. package/modules/streamgraph.js +2 -2
  243. package/modules/streamgraph.src.js +5 -5
  244. package/modules/sunburst.js +2 -2
  245. package/modules/sunburst.src.js +5 -5
  246. package/modules/textpath.js +2 -2
  247. package/modules/textpath.src.js +5 -5
  248. package/modules/tiledwebmap.js +2 -2
  249. package/modules/tiledwebmap.src.js +5 -5
  250. package/modules/tilemap.js +2 -2
  251. package/modules/tilemap.src.js +5 -5
  252. package/modules/timeline.js +2 -2
  253. package/modules/timeline.src.js +5 -5
  254. package/modules/treegraph.js +2 -2
  255. package/modules/treegraph.src.js +5 -5
  256. package/modules/treegrid.js +2 -2
  257. package/modules/treegrid.src.js +5 -5
  258. package/modules/treemap.js +2 -2
  259. package/modules/treemap.src.js +5 -5
  260. package/modules/variable-pie.js +2 -2
  261. package/modules/variable-pie.src.js +5 -5
  262. package/modules/variwide.js +2 -2
  263. package/modules/variwide.src.js +5 -5
  264. package/modules/vector.js +2 -2
  265. package/modules/vector.src.js +5 -5
  266. package/modules/venn.js +2 -2
  267. package/modules/venn.src.js +5 -5
  268. package/modules/windbarb.js +2 -2
  269. package/modules/windbarb.src.js +5 -5
  270. package/modules/wordcloud.js +2 -2
  271. package/modules/wordcloud.src.js +5 -5
  272. package/modules/xrange.js +2 -2
  273. package/modules/xrange.src.js +5 -5
  274. package/package.json +1 -1
  275. package/standalone-navigator.js +3 -3
  276. package/standalone-navigator.src.js +25 -20
  277. package/themes/avocado.js +2 -2
  278. package/themes/avocado.src.js +5 -5
  279. package/themes/brand-dark.js +2 -2
  280. package/themes/brand-dark.src.js +5 -5
  281. package/themes/brand-light.js +2 -2
  282. package/themes/brand-light.src.js +5 -5
  283. package/themes/dark-blue.js +2 -2
  284. package/themes/dark-blue.src.js +5 -5
  285. package/themes/dark-green.js +2 -2
  286. package/themes/dark-green.src.js +5 -5
  287. package/themes/dark-unica.js +2 -2
  288. package/themes/dark-unica.src.js +5 -5
  289. package/themes/gray.js +2 -2
  290. package/themes/gray.src.js +5 -5
  291. package/themes/grid-light.js +2 -2
  292. package/themes/grid-light.src.js +5 -5
  293. package/themes/grid.js +2 -2
  294. package/themes/grid.src.js +5 -5
  295. package/themes/high-contrast-dark.js +2 -2
  296. package/themes/high-contrast-dark.src.js +5 -5
  297. package/themes/high-contrast-light.js +2 -2
  298. package/themes/high-contrast-light.src.js +5 -5
  299. package/themes/sand-signika.js +2 -2
  300. package/themes/sand-signika.src.js +5 -5
  301. package/themes/skies.js +2 -2
  302. package/themes/skies.src.js +5 -5
  303. package/themes/sunset.js +2 -2
  304. package/themes/sunset.src.js +5 -5
@@ -1,5 +1,5 @@
1
1
  !/**
2
- * Highcharts JS v12.0.1 (2024-11-28)
2
+ * Highcharts JS v12.0.2 (2024-12-04)
3
3
  * @module highcharts/modules/boost-canvas
4
4
  * @requires highcharts
5
5
  *
@@ -9,4 +9,4 @@
9
9
  * Author: Torstein Honsi
10
10
  *
11
11
  * License: www.highcharts.com/license
12
- */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("highcharts"),require("highcharts").Color):"function"==typeof define&&define.amd?define("highcharts/boost-canvas",[["highcharts/highcharts"],["highcharts/highcharts","Color"]],e):"object"==typeof exports?exports["highcharts/boost-canvas"]=e(require("highcharts"),require("highcharts").Color):t.Highcharts=e(t.Highcharts,t.Highcharts.Color)}(this,(t,e)=>(()=>{"use strict";let i,s;var r,o={620:t=>{t.exports=e},944:e=>{e.exports=t}},n={};function a(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={exports:{}};return o[t](i,i.exports,a),i.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var l={};a.d(l,{default:()=>tD});var h=a(944),d=/*#__PURE__*/a.n(h);let c=["area","areaspline","arearange","column","columnrange","bar","line","scatter","heatmap","bubble","treemap"],g={};c.forEach(t=>{g[t]=!0});let{composed:u}=d(),{addEvent:m,pick:p,pushUnique:f}=d();function b(t){let e=t.series,i=t.boost=t.boost||{},s=t.options.boost||{},r=p(s.seriesThreshold,50);if(e.length>=r)return!0;if(1===e.length)return!1;let o=s.allowForce;if(void 0===o){for(let e of(o=!0,t.xAxis))if(p(e.min,-1/0)>p(e.dataMin,-1/0)||p(e.max,1/0)<p(e.dataMax,1/0)){o=!1;break}}if(void 0!==i.forceChartBoost){if(o)return i.forceChartBoost;i.forceChartBoost=void 0}let n=0,a=0,l;for(let t of e)0!==(l=t.options).boostThreshold&&!1!==t.visible&&"heatmap"!==t.type&&(g[t.type]&&++n,function(...t){let e=-Number.MAX_VALUE;return t.forEach(t=>{if(null!=t&&void 0!==t.length&&t.length>0)return e=t.length,!0}),e}(t.getColumn("x",!0),l.data,t.points)>=(l.boostThreshold||Number.MAX_VALUE)&&++a);return i.forceChartBoost=o&&(n===e.length&&a===n||a>5),i.forceChartBoost}function x(t){function e(){t.boost&&t.boost.wgl&&b(t)&&t.boost.wgl.render(t)}m(t,"predraw",function(){t.boost=t.boost||{},t.boost.forceChartBoost=void 0,t.boosted=!1,t.axes.some(t=>t.isPanning)||t.boost.clear?.(),t.boost.canvas&&t.boost.wgl&&b(t)&&t.boost.wgl.allocateBuffer(t),t.boost.markerGroup&&t.xAxis&&t.xAxis.length>0&&t.yAxis&&t.yAxis.length>0&&t.boost.markerGroup.translate(t.xAxis[0].pos,t.yAxis[0].pos)}),m(t,"load",e,{order:-1}),m(t,"redraw",e);let i=-1,s=-1;m(t.pointer,"afterGetHoverData",e=>{let r=e.hoverPoint?.series;if(t.boost=t.boost||{},t.boost.markerGroup&&r){let e=t.inverted?r.yAxis:r.xAxis,o=t.inverted?r.xAxis:r.yAxis;(e&&e.pos!==i||o&&o.pos!==s)&&(t.series.forEach(t=>{t.halo?.hide()}),t.boost.markerGroup.translate(e.pos,o.pos),i=e.pos,s=o.pos)}})}let A={compose:function(t,e){return e&&f(u,"Boost.Chart")&&t.prototype.callbacks.push(x),t},getBoostClipRect:function(t,e){let i=t.navigator,s={x:t.plotLeft,y:t.plotTop,width:t.plotWidth,height:t.plotHeight};if(i&&t.inverted?(s.width+=i.top+i.height,i.opposite||(s.x=i.left)):i&&!t.inverted&&(s.height=i.top+i.height-t.plotTop),e.getClipBox){let{xAxis:i,yAxis:r}=e;if(s=e.getClipBox(),t.inverted){let t=s.width;s.width=s.height,s.height=t,s.x=r.pos,s.y=i.pos}else s.x=i.pos,s.y=r.pos}if(e===t){let e=t.inverted?t.xAxis:t.yAxis;e.length<=1&&(s.y=Math.min(e[0].pos,s.y),s.height=e[0].pos-t.plotTop+e[0].len)}return s},isChartSeriesBoosting:b};var v=a(620),y=/*#__PURE__*/a.n(v);let P={area:"LINES",arearange:"LINES",areaspline:"LINES",column:"LINES",columnrange:"LINES",bar:"LINES",line:"LINE_STRIP",scatter:"POINTS",heatmap:"TRIANGLES",treemap:"TRIANGLES",bubble:"POINTS"},{clamp:T,error:C,pick:S}=d(),E=class{constructor(t){if(this.errors=[],this.uLocations={},this.gl=t,t&&!this.createShader())return}bind(){this.gl&&this.shaderProgram&&this.gl.useProgram(this.shaderProgram)}createShader(){let t=this.stringToProgram("#version 100\n#define LN10 2.302585092994046\nprecision highp float;\nattribute vec4 aVertexPosition;\nattribute vec4 aColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform mat4 uPMatrix;\nuniform float pSize;\nuniform float translatedThreshold;\nuniform bool hasThreshold;\nuniform bool skipTranslation;\nuniform float xAxisTrans;\nuniform float xAxisMin;\nuniform float xAxisMinPad;\nuniform float xAxisPointRange;\nuniform float xAxisLen;\nuniform bool xAxisPostTranslate;\nuniform float xAxisOrdinalSlope;\nuniform float xAxisOrdinalOffset;\nuniform float xAxisPos;\nuniform bool xAxisCVSCoord;\nuniform bool xAxisIsLog;\nuniform bool xAxisReversed;\nuniform float yAxisTrans;\nuniform float yAxisMin;\nuniform float yAxisMinPad;\nuniform float yAxisPointRange;\nuniform float yAxisLen;\nuniform bool yAxisPostTranslate;\nuniform float yAxisOrdinalSlope;\nuniform float yAxisOrdinalOffset;\nuniform float yAxisPos;\nuniform bool yAxisCVSCoord;\nuniform bool yAxisIsLog;\nuniform bool yAxisReversed;\nuniform bool isBubble;\nuniform bool bubbleSizeByArea;\nuniform float bubbleZMin;\nuniform float bubbleZMax;\nuniform float bubbleZThreshold;\nuniform float bubbleMinSize;\nuniform float bubbleMaxSize;\nuniform bool bubbleSizeAbs;\nuniform bool isInverted;\nfloat bubbleRadius(){\nfloat value = aVertexPosition.w;\nfloat zMax = bubbleZMax;\nfloat zMin = bubbleZMin;\nfloat radius = 0.0;\nfloat pos = 0.0;\nfloat zRange = zMax - zMin;\nif (bubbleSizeAbs){\nvalue = value - bubbleZThreshold;\nzMax = max(zMax - bubbleZThreshold, zMin - bubbleZThreshold);\nzMin = 0.0;\n}\nif (value < zMin){\nradius = bubbleZMin / 2.0 - 1.0;\n} else {\npos = zRange > 0.0 ? (value - zMin) / zRange : 0.5;\nif (bubbleSizeByArea && pos > 0.0){\npos = sqrt(pos);\n}\nradius = ceil(bubbleMinSize + pos * (bubbleMaxSize - bubbleMinSize)) / 2.0;\n}\nreturn radius * 2.0;\n}\nfloat translate(float val,\nfloat pointPlacement,\nfloat localA,\nfloat localMin,\nfloat minPixelPadding,\nfloat pointRange,\nfloat len,\nbool cvsCoord,\nbool isLog,\nbool reversed\n){\nfloat sign = 1.0;\nfloat cvsOffset = 0.0;\nif (cvsCoord) {\nsign *= -1.0;\ncvsOffset = len;\n}\nif (isLog) {\nval = log(val) / LN10;\n}\nif (reversed) {\nsign *= -1.0;\ncvsOffset -= sign * len;\n}\nreturn sign * (val - localMin) * localA + cvsOffset + \n(sign * minPixelPadding);\n}\nfloat xToPixels(float value) {\nif (skipTranslation){\nreturn value;// + xAxisPos;\n}\nreturn translate(value, 0.0, xAxisTrans, xAxisMin, xAxisMinPad, xAxisPointRange, xAxisLen, xAxisCVSCoord, xAxisIsLog, xAxisReversed);// + xAxisPos;\n}\nfloat yToPixels(float value, float checkTreshold) {\nfloat v;\nif (skipTranslation){\nv = value;// + yAxisPos;\n} else {\nv = translate(value, 0.0, yAxisTrans, yAxisMin, yAxisMinPad, yAxisPointRange, yAxisLen, yAxisCVSCoord, yAxisIsLog, yAxisReversed);// + yAxisPos;\nif (v > yAxisLen) {\nv = yAxisLen;\n}\n}\nif (checkTreshold > 0.0 && hasThreshold) {\nv = min(v, translatedThreshold);\n}\nreturn v;\n}\nvoid main(void) {\nif (isBubble){\ngl_PointSize = bubbleRadius();\n} else {\ngl_PointSize = pSize;\n}\nvColor = aColor;\nif (skipTranslation && isInverted) {\ngl_Position = uPMatrix * vec4(aVertexPosition.y + yAxisPos, aVertexPosition.x + xAxisPos, 0.0, 1.0);\n} else if (isInverted) {\ngl_Position = uPMatrix * vec4(yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, xToPixels(aVertexPosition.x) + xAxisPos, 0.0, 1.0);\n} else {\ngl_Position = uPMatrix * vec4(xToPixels(aVertexPosition.x) + xAxisPos, yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, 0.0, 1.0);\n}\n}","vertex"),e=this.stringToProgram("precision highp float;\nuniform vec4 fillColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform sampler2D uSampler;\nuniform bool isCircle;\nuniform bool hasColor;\nvoid main(void) {\nvec4 col = fillColor;\nvec4 tcol = texture2D(uSampler, gl_PointCoord.st);\nif (hasColor) {\ncol = vColor;\n}\nif (isCircle) {\ncol *= tcol;\nif (tcol.r < 0.0) {\ndiscard;\n} else {\ngl_FragColor = col;\n}\n} else {\ngl_FragColor = col;\n}\n}","fragment"),i=t=>this.gl.getUniformLocation(this.shaderProgram,t);return t&&e?(this.shaderProgram=this.gl.createProgram(),this.gl.attachShader(this.shaderProgram,t),this.gl.attachShader(this.shaderProgram,e),this.gl.linkProgram(this.shaderProgram),this.gl.getProgramParameter(this.shaderProgram,this.gl.LINK_STATUS))?(this.gl.useProgram(this.shaderProgram),this.gl.bindAttribLocation(this.shaderProgram,0,"aVertexPosition"),this.pUniform=i("uPMatrix"),this.psUniform=i("pSize"),this.fcUniform=i("fillColor"),this.isBubbleUniform=i("isBubble"),this.bubbleSizeAbsUniform=i("bubbleSizeAbs"),this.bubbleSizeAreaUniform=i("bubbleSizeByArea"),this.uSamplerUniform=i("uSampler"),this.skipTranslationUniform=i("skipTranslation"),this.isCircleUniform=i("isCircle"),this.isInverted=i("isInverted"),!0):(this.errors.push(this.gl.getProgramInfoLog(this.shaderProgram)),this.handleErrors(),this.shaderProgram=!1,!1):(this.shaderProgram=!1,this.handleErrors(),!1)}handleErrors(){this.errors.length&&C("[highcharts boost] shader error - "+this.errors.join("\n"))}stringToProgram(t,e){let i=this.gl.createShader("vertex"===e?this.gl.VERTEX_SHADER:this.gl.FRAGMENT_SHADER);return(this.gl.shaderSource(i,t),this.gl.compileShader(i),this.gl.getShaderParameter(i,this.gl.COMPILE_STATUS))?i:(this.errors.push("when compiling "+e+" shader:\n"+this.gl.getShaderInfoLog(i)),!1)}destroy(){this.gl&&this.shaderProgram&&(this.gl.deleteProgram(this.shaderProgram),this.shaderProgram=!1)}fillColorUniform(){return this.fcUniform}getProgram(){return this.shaderProgram}pointSizeUniform(){return this.psUniform}perspectiveUniform(){return this.pUniform}reset(){this.gl&&this.shaderProgram&&(this.gl.uniform1i(this.isBubbleUniform,0),this.gl.uniform1i(this.isCircleUniform,0))}setBubbleUniforms(t,e,i,s=1){let r=t.options,o=Number.MAX_VALUE,n=-Number.MAX_VALUE;if(this.gl&&this.shaderProgram&&t.is("bubble")){let a=t.getPxExtremes();o=S(r.zMin,T(e,!1===r.displayNegative?r.zThreshold:-Number.MAX_VALUE,o)),n=S(r.zMax,Math.max(n,i)),this.gl.uniform1i(this.isBubbleUniform,1),this.gl.uniform1i(this.isCircleUniform,1),this.gl.uniform1i(this.bubbleSizeAreaUniform,"width"!==t.options.sizeBy),this.gl.uniform1i(this.bubbleSizeAbsUniform,t.options.sizeByAbsoluteValue),this.setUniform("bubbleMinSize",a.minPxSize*s),this.setUniform("bubbleMaxSize",a.maxPxSize*s),this.setUniform("bubbleZMin",o),this.setUniform("bubbleZMax",n),this.setUniform("bubbleZThreshold",t.options.zThreshold)}}setColor(t){this.gl&&this.shaderProgram&&this.gl.uniform4f(this.fcUniform,t[0]/255,t[1]/255,t[2]/255,t[3])}setDrawAsCircle(t){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.isCircleUniform,t?1:0)}setInverted(t){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.isInverted,t)}setPMatrix(t){this.gl&&this.shaderProgram&&this.gl.uniformMatrix4fv(this.pUniform,!1,t)}setPointSize(t){this.gl&&this.shaderProgram&&this.gl.uniform1f(this.psUniform,t)}setSkipTranslation(t){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.skipTranslationUniform,!0===t?1:0)}setTexture(t){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.uSamplerUniform,t)}setUniform(t,e){if(this.gl&&this.shaderProgram){let i=this.uLocations[t]=this.uLocations[t]||this.gl.getUniformLocation(this.shaderProgram,t);this.gl.uniform1f(i,e)}}},M=class{constructor(t,e,i){this.buffer=!1,this.iterator=0,this.preAllocated=!1,this.vertAttribute=!1,this.components=i||2,this.dataComponents=i,this.gl=t,this.shader=e}allocate(t){this.iterator=-1,this.preAllocated=new Float32Array(4*t)}bind(){if(!this.buffer)return!1;this.gl.vertexAttribPointer(this.vertAttribute,this.components,this.gl.FLOAT,!1,0,0)}build(t,e,i){let s;return(this.data=t||[],this.data&&0!==this.data.length||this.preAllocated)?(this.components=i||this.components,this.buffer&&this.gl.deleteBuffer(this.buffer),this.preAllocated||(s=new Float32Array(this.data)),this.buffer=this.gl.createBuffer(),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.buffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,this.preAllocated||s,this.gl.STATIC_DRAW),this.vertAttribute=this.gl.getAttribLocation(this.shader.getProgram(),e),this.gl.enableVertexAttribArray(this.vertAttribute),s=!1,!0):(this.destroy(),!1)}destroy(){this.buffer&&(this.gl.deleteBuffer(this.buffer),this.buffer=!1,this.vertAttribute=!1),this.iterator=0,this.components=this.dataComponents||2,this.data=[]}push(t,e,i,s){this.preAllocated&&(this.preAllocated[++this.iterator]=t,this.preAllocated[++this.iterator]=e,this.preAllocated[++this.iterator]=i,this.preAllocated[++this.iterator]=s)}render(t,e,i){let s=this.preAllocated?this.preAllocated.length:this.data.length;return!!this.buffer&&!!s&&((!t||t>s||t<0)&&(t=0),(!e||e>s)&&(e=s),!(t>=e)&&(i=i||"POINTS",this.gl.drawArrays(this.gl[i],t/this.components,(e-t)/this.components),!0))}},{parse:k}=y(),{doc:R,win:U}=d(),{isNumber:w,isObject:L,merge:N,objectEach:_,pick:z}=d(),D={column:!0,columnrange:!0,bar:!0,area:!0,areaspline:!0,arearange:!0},G={scatter:!0,bubble:!0},I=["webgl","experimental-webgl","moz-webgl","webkit-3d"];class B{static orthoMatrix(t,e){return[2/t,0,0,0,0,-(2/e),0,0,0,0,-2,0,-1,1,-1,1]}static seriesPointCount(t){let e,i,s;return t.boosted?(e=!!t.options.stacking,i=(t.getColumn("x").length?t.getColumn("x"):void 0)||t.options.xData||t.getColumn("x",!0),s=(e?t.data:i||t.options.data).length,"treemap"===t.type?s*=12:"heatmap"===t.type?s*=6:D[t.type]&&(s*=2),s):0}constructor(t){this.data=[],this.height=0,this.isInited=!1,this.markerData=[],this.series=[],this.textureHandles={},this.width=0,this.postRenderCallback=t,this.settings={pointSize:1,lineWidth:1,fillColor:"#AA00AA",useAlpha:!0,usePreallocated:!1,useGPUTranslations:!1,debug:{timeRendering:!1,timeSeriesProcessing:!1,timeSetup:!1,timeBufferCopy:!1,timeKDTree:!1,showSkipSummary:!1}}}getPixelRatio(){return this.settings.pixelRatio||U.devicePixelRatio||1}setOptions(t){"pixelRatio"in t||(t.pixelRatio=1),N(!0,this.settings,t)}allocateBuffer(t){let e=this.vbuffer,i=0;this.settings.usePreallocated&&(t.series.forEach(t=>{t.boosted&&(i+=B.seriesPointCount(t))}),e&&e.allocate(i))}allocateBufferForSingleSeries(t){let e=this.vbuffer,i=0;this.settings.usePreallocated&&(t.boosted&&(i=B.seriesPointCount(t)),e&&e.allocate(i))}clear(){let t=this.gl;t&&t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}pushSeriesData(t,e){let i=this.data,s=this.settings,r=this.vbuffer,o=t.pointArrayMap&&"low,high"===t.pointArrayMap.join(","),{chart:n,options:a,sorted:l,xAxis:h,yAxis:d}=t,c=!!a.stacking,g=a.data,u=t.xAxis.getExtremes(),m=u.min-(t.xAxis.minPointOffset||0),p=u.max+(t.xAxis.minPointOffset||0),f=t.yAxis.getExtremes(),b=f.min-(t.yAxis.minPointOffset||0),x=f.max+(t.yAxis.minPointOffset||0),A=(t.getColumn("x").length?t.getColumn("x"):void 0)||a.xData||t.getColumn("x",!0),v=(t.getColumn("y").length?t.getColumn("y"):void 0)||a.yData||t.getColumn("y",!0),y=(t.getColumn("z").length?t.getColumn("z"):void 0)||a.zData||t.getColumn("z",!0),P=!A||0===A.length,T=a.connectNulls,C=t.points||!1,S=c?t.data:A||g,E={x:Number.MAX_VALUE,y:0},M={x:-Number.MAX_VALUE,y:0},R=void 0===n.index,U=D[t.type],w=a.zoneAxis||"y",N=a.zones||!1,_=a.threshold,z=this.getPixelRatio(),G=t.chart.plotWidth,I=!1,B=!1,O,V,X=0,F=!1,H,Y,W,q,K=-1,j=!1,Z=!1,Q,J=!1,$=!1,tt=!1,te=!1,ti=!0,ts=!0,tr,to=!1,tn=!1,ta=0;if(a.boostData&&a.boostData.length>0)return;a.gapSize&&(tn="value"!==a.gapUnit?a.gapSize*t.closestPointRange:a.gapSize),N&&(tr=[],N.forEach((t,e)=>{if(t.color){let i=k(t.color).rgba;i[0]/=255,i[1]/=255,i[2]/=255,tr[e]=i,to||void 0!==t.value||(to=i)}}),to||(to=k(t.pointAttribs&&t.pointAttribs().fill||t.color).rgba,to[0]/=255,to[1]/=255,to[2]/=255)),n.inverted&&(G=t.chart.plotHeight),t.closestPointRangePx=Number.MAX_VALUE;let tl=t=>{t&&(e.colorData.push(t[0]),e.colorData.push(t[1]),e.colorData.push(t[2]),e.colorData.push(t[3]))},th=(t,o,n,a=1,l)=>{tl(l),1!==z&&(!s.useGPUTranslations||e.skipTranslation)&&(t*=z,o*=z,a*=z),s.usePreallocated&&r?(r.push(t,o,n?1:0,a),ta+=4):(i.push(t),i.push(o),i.push(n?z:0),i.push(a))},td=()=>{e.segments.length&&(e.segments[e.segments.length-1].to=i.length||ta)},tc=()=>{e.segments.length&&e.segments[e.segments.length-1].from===(i.length||ta)||(td(),e.segments.push({from:i.length||ta}))},tg=(t,e,i,s,r)=>{tl(r),th(t+i,e),tl(r),th(t,e),tl(r),th(t,e+s),tl(r),th(t,e+s),tl(r),th(t+i,e+s),tl(r),th(t+i,e)};if(tc(),C&&C.length>0){e.skipTranslation=!0,e.drawMode="TRIANGLES",C[0].node&&C[0].node.levelDynamic&&C.sort((t,e)=>{if(t.node){if(t.node.levelDynamic>e.node.levelDynamic)return 1;if(t.node.levelDynamic<e.node.levelDynamic)return -1}return 0}),C.forEach(e=>{let i,s;let r=e.plotY;if(void 0!==r&&!isNaN(r)&&null!==e.y&&e.shapeArgs){let{x:r=0,y:o=0,width:a=0,height:l=0}=e.shapeArgs;i=(s=n.styledMode?e.series.colorAttribs(e):s=e.series.pointAttribs(e))["stroke-width"]||0,tt=k(s.fill).rgba,tt[0]/=255,tt[1]/=255,tt[2]/=255,t.is("treemap")&&(i=i||1,V=k(s.stroke).rgba,V[0]/=255,V[1]/=255,V[2]/=255,tg(r,o,a,l,V),i/=2),t.is("heatmap")&&n.inverted&&(r=h.len-r,o=d.len-o,a=-a,l=-l),tg(r+i,o+i,a-2*i,l-2*i,tt)}}),td();return}for(;K<S.length-1;){if(void 0===(W=S[++K]))continue;if(R)break;let i=g&&g[K];if(!P&&L(i,!0)&&i.color&&(tt=k(i.color).rgba,tt[0]/=255,tt[1]/=255,tt[2]/=255),P?(H=W[0],Y=W[1],S[K+1]&&(Z=S[K+1][0]),S[K-1]&&(j=S[K-1][0]),W.length>=3&&(q=W[2],W[2]>e.zMax&&(e.zMax=W[2]),W[2]<e.zMin&&(e.zMin=W[2]))):(H=W,Y=v?.[K],S[K+1]&&(Z=S[K+1]),S[K-1]&&(j=S[K-1]),y&&y.length&&(q=y[K],y[K]>e.zMax&&(e.zMax=y[K]),y[K]<e.zMin&&(e.zMin=y[K]))),!T&&(null===H||null===Y)){tc();continue}if(Z&&Z>=m&&Z<=p&&(J=!0),j&&j>=m&&j<=p&&($=!0),o?(P&&(Y=W.slice(1,3)),Q=t.getColumn("low",!0)?.[K],Y=t.getColumn("high",!0)?.[K]||0):c&&(H=W.x,Q=(Y=W.stackY)-W.y),null!=b&&null!=x&&(ti=Y>=b&&Y<=x),H>p&&M.x<p&&(M.x=H,M.y=Y),H<m&&E.x>m&&(E.x=H,E.y=Y),null!==Y||!T){if(null===Y||!ti&&!J&&!$){tc();continue}if(l&&(Z>=m||H>=m)&&(j<=p||H<=p)&&(te=!0),te||J||$){if(tn&&H-j>tn&&tc(),N){let t;N.some((e,i)=>{let s=N[i-1];return"x"===w?void 0!==e.value&&H<=e.value&&(tr[i]&&(!s||H>=s.value)&&(t=tr[i]),!0):void 0!==e.value&&Y<=e.value&&(tr[i]&&(!s||Y>=s.value)&&(t=tr[i]),!0)}),tt=t||to||tt}if(s.useGPUTranslations||(e.skipTranslation=!0,H=h.toPixels(H,!0),Y=d.toPixels(Y,!0),!(H>G)||"POINTS"!==e.drawMode)){if(e.hasMarkers&&te&&!1!==I&&(t.closestPointRangePx=Math.min(t.closestPointRangePx,Math.abs(H-I))),!s.useGPUTranslations&&!s.usePreallocated&&I&&1>Math.abs(H-I)&&B&&1>Math.abs(Y-B)){s.debug.showSkipSummary&&++X;continue}U&&(O=Q||0,(!1===Q||void 0===Q)&&(O=Y<0?Y:0),(o||c)&&!d.logarithmic||(O=Math.max(null===_?b:_,b)),s.useGPUTranslations||(O=d.toPixels(O,!0)),th(H,O,0,0,tt)),a.step&&!ts&&th(H,B,0,2,tt),th(H,Y,0,"bubble"===t.type?q||1:2,tt),I=H,B=Y,F=!0,ts=!1}}}}s.debug.showSkipSummary&&console.log("skipped points:",X);let tu=(t,i)=>{if(s.useGPUTranslations||(e.skipTranslation=!0,t.x=h.toPixels(t.x,!0),t.y=d.toPixels(t.y,!0)),i){this.data=[t.x,t.y,0,2].concat(this.data);return}th(t.x,t.y,0,2)};!F&&!1!==T&&"line_strip"===t.drawMode&&(E.x<Number.MAX_VALUE&&tu(E,!0),M.x>-Number.MAX_VALUE&&tu(M)),td()}pushSeries(t){let e=this.markerData,i=this.series,s=this.settings;i.length>0&&i[i.length-1].hasMarkers&&(i[i.length-1].markerTo=e.length),s.debug.timeSeriesProcessing&&console.time("building "+t.type+" series");let r={segments:[],markerFrom:e.length,colorData:[],series:t,zMin:Number.MAX_VALUE,zMax:-Number.MAX_VALUE,hasMarkers:!!t.options.marker&&!1!==t.options.marker.enabled,showMarkers:!0,drawMode:P[t.type]||"LINE_STRIP"};t.index>=i.length?i.push(r):i[t.index]=r,this.pushSeriesData(t,r),s.debug.timeSeriesProcessing&&console.timeEnd("building "+t.type+" series")}flush(){let t=this.vbuffer;this.data=[],this.markerData=[],this.series=[],t&&t.destroy()}setXAxis(t){let e=this.shader;if(!e)return;let i=this.getPixelRatio();e.setUniform("xAxisTrans",t.transA*i),e.setUniform("xAxisMin",t.min),e.setUniform("xAxisMinPad",t.minPixelPadding*i),e.setUniform("xAxisPointRange",t.pointRange),e.setUniform("xAxisLen",t.len*i),e.setUniform("xAxisPos",t.pos*i),e.setUniform("xAxisCVSCoord",!t.horiz),e.setUniform("xAxisIsLog",!!t.logarithmic),e.setUniform("xAxisReversed",!!t.reversed)}setYAxis(t){let e=this.shader;if(!e)return;let i=this.getPixelRatio();e.setUniform("yAxisTrans",t.transA*i),e.setUniform("yAxisMin",t.min),e.setUniform("yAxisMinPad",t.minPixelPadding*i),e.setUniform("yAxisPointRange",t.pointRange),e.setUniform("yAxisLen",t.len*i),e.setUniform("yAxisPos",t.pos*i),e.setUniform("yAxisCVSCoord",!t.horiz),e.setUniform("yAxisIsLog",!!t.logarithmic),e.setUniform("yAxisReversed",!!t.reversed)}setThreshold(t,e){let i=this.shader;i&&(i.setUniform("hasThreshold",t),i.setUniform("translatedThreshold",e))}renderChart(t){let e=this.gl,i=this.settings,s=this.shader,r=this.vbuffer,o=this.getPixelRatio();if(!t)return!1;this.width=t.chartWidth*o,this.height=t.chartHeight*o;let n=this.height,a=this.width;if(!e||!s||!a||!n)return!1;i.debug.timeRendering&&console.time("gl rendering"),e.canvas.width=a,e.canvas.height=n,s.bind(),e.viewport(0,0,a,n),s.setPMatrix(B.orthoMatrix(a,n)),i.lineWidth>1&&!d().isMS&&e.lineWidth(i.lineWidth),r&&(r.build(this.data,"aVertexPosition",4),r.bind()),s.setInverted(t.inverted),this.series.forEach((n,a)=>{let l=n.series.options,h=l.marker,d=void 0!==l.lineWidth?l.lineWidth:1,c=l.threshold,g=w(c),u=n.series.yAxis.getThreshold(c),m=z(l.marker?l.marker.enabled:null,!!n.series.xAxis.isRadial||null,n.series.closestPointRangePx>2*((l.marker?l.marker.radius:10)||10)),p=this.textureHandles[h&&h.symbol||n.series.symbol]||this.textureHandles.circle,f,b,x,A=[];if(0!==n.segments.length&&n.segments[0].from!==n.segments[0].to&&(p.isReady&&(e.bindTexture(e.TEXTURE_2D,p.handle),s.setTexture(p.handle)),t.styledMode?n.series.markerGroup===n.series.chart.boost?.markerGroup?(delete n.series.markerGroup,n.series.markerGroup=n.series.plotGroup("markerGroup","markers","visible",1,t.seriesGroup).addClass("highcharts-tracker"),x=n.series.markerGroup.getStyle("fill"),n.series.markerGroup.destroy(),n.series.markerGroup=n.series.chart.boost?.markerGroup):x=n.series.markerGroup?.getStyle("fill"):(x="POINTS"===n.drawMode&&n.series.pointAttribs&&n.series.pointAttribs().fill||n.series.color,l.colorByPoint&&(x=n.series.chart.options.colors[a])),n.series.fillOpacity&&l.fillOpacity&&(x=new(y())(x).setOpacity(z(l.fillOpacity,1)).get()),A=k(x).rgba,i.useAlpha||(A[3]=1),"add"===l.boostBlending?(e.blendFunc(e.SRC_ALPHA,e.ONE),e.blendEquation(e.FUNC_ADD)):"mult"===l.boostBlending||"multiply"===l.boostBlending?e.blendFunc(e.DST_COLOR,e.ZERO):"darken"===l.boostBlending?(e.blendFunc(e.ONE,e.ONE),e.blendEquation(e.FUNC_MIN)):e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA),s.reset(),n.colorData.length>0?(s.setUniform("hasColor",1),(b=new M(e,s)).build(Array(n.segments[0].from).concat(n.colorData),"aColor",4),b.bind()):(s.setUniform("hasColor",0),e.disableVertexAttribArray(e.getAttribLocation(s.getProgram(),"aColor"))),s.setColor(A),this.setXAxis(n.series.xAxis),this.setYAxis(n.series.yAxis),this.setThreshold(g,u),"POINTS"===n.drawMode&&s.setPointSize(2*z(l.marker&&l.marker.radius,.5)*o),s.setSkipTranslation(n.skipTranslation),"bubble"===n.series.type&&s.setBubbleUniforms(n.series,n.zMin,n.zMax,o),s.setDrawAsCircle(G[n.series.type]||!1),r)){if(d>0||"LINE_STRIP"!==n.drawMode)for(f=0;f<n.segments.length;f++)r.render(n.segments[f].from,n.segments[f].to,n.drawMode);if(n.hasMarkers&&m)for(s.setPointSize(2*z(l.marker&&l.marker.radius,5)*o),s.setDrawAsCircle(!0),f=0;f<n.segments.length;f++)r.render(n.segments[f].from,n.segments[f].to,"POINTS")}}),i.debug.timeRendering&&console.timeEnd("gl rendering"),this.postRenderCallback&&this.postRenderCallback(this),this.flush()}render(t){if(this.clear(),t.renderer.forExport)return this.renderChart(t);this.isInited?this.renderChart(t):setTimeout(()=>{this.render(t)},1)}setSize(t,e){let i=this.shader;i&&(this.width!==t||this.height!==e)&&(this.width=t,this.height=e,i.bind(),i.setPMatrix(B.orthoMatrix(t,e)))}init(t,e){let i=this.settings;if(this.isInited=!1,!t)return!1;i.debug.timeSetup&&console.time("gl setup");for(let e=0;e<I.length&&(this.gl=t.getContext(I[e],{}),!this.gl);++e);let s=this.gl;if(!s)return!1;e||this.flush(),s.enable(s.BLEND),s.blendFunc(s.SRC_ALPHA,s.ONE_MINUS_SRC_ALPHA),s.disable(s.DEPTH_TEST),s.depthFunc(s.LESS);let r=this.shader=new E(s);if(!r)return!1;this.vbuffer=new M(s,r);let o=(t,e)=>{let i={isReady:!1,texture:R.createElement("canvas"),handle:s.createTexture()},r=i.texture.getContext("2d");this.textureHandles[t]=i,i.texture.width=512,i.texture.height=512,r.mozImageSmoothingEnabled=!1,r.webkitImageSmoothingEnabled=!1,r.msImageSmoothingEnabled=!1,r.imageSmoothingEnabled=!1,r.strokeStyle="rgba(255, 255, 255, 0)",r.fillStyle="#FFF",e(r);try{s.activeTexture(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,i.handle),s.texImage2D(s.TEXTURE_2D,0,s.RGBA,s.RGBA,s.UNSIGNED_BYTE,i.texture),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_S,s.CLAMP_TO_EDGE),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_T,s.CLAMP_TO_EDGE),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MAG_FILTER,s.LINEAR),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MIN_FILTER,s.LINEAR),s.bindTexture(s.TEXTURE_2D,null),i.isReady=!0}catch(t){}};return o("circle",t=>{t.beginPath(),t.arc(256,256,256,0,2*Math.PI),t.stroke(),t.fill()}),o("square",t=>{t.fillRect(0,0,512,512)}),o("diamond",t=>{t.beginPath(),t.moveTo(256,0),t.lineTo(512,256),t.lineTo(256,512),t.lineTo(0,256),t.lineTo(256,0),t.fill()}),o("triangle",t=>{t.beginPath(),t.moveTo(0,512),t.lineTo(256,0),t.lineTo(512,512),t.lineTo(0,512),t.fill()}),o("triangle-down",t=>{t.beginPath(),t.moveTo(0,0),t.lineTo(256,512),t.lineTo(512,0),t.lineTo(0,0),t.fill()}),this.isInited=!0,i.debug.timeSetup&&console.timeEnd("gl setup"),!0}destroy(){let t=this.gl,e=this.shader,i=this.vbuffer;this.flush(),i&&i.destroy(),e&&e.destroy(),t&&(_(this.textureHandles,e=>{e.handle&&t.deleteTexture(e.handle)}),t.canvas.width=1,t.canvas.height=1)}}let{getBoostClipRect:O,isChartSeriesBoosting:V}=A,{getOptions:X}=d(),{composed:F,doc:H,noop:Y,win:W}=d(),{addEvent:q,destroyObjectProperties:K,error:j,extend:Z,fireEvent:Q,isArray:J,isNumber:$,pick:tt,pushUnique:te,wrap:ti,defined:ts}=d();function tr(t,e){let i=e.boost;t&&i&&i.target&&i.canvas&&!V(e.chart)&&t.allocateBufferForSingleSeries(e)}function to(t){return tt(t&&t.options&&t.options.boost&&t.options.boost.enabled,!0)}function tn(t,e){let i=t.constructor,r=t.seriesGroup||e.group,o=t.chartWidth,n=t.chartHeight,a=t,l="undefined"!=typeof SVGForeignObjectElement,h=!1;V(t)?a=t:(a=e,h=!!(e.options.events?.click||e.options.point?.events?.click));let d=a.boost=a.boost||{};if(l=!1,s||(s=H.createElement("canvas")),!d.target&&(d.canvas=s,t.renderer.forExport||!l?(a.renderTarget=d.target=t.renderer.image("",0,0,o,n).addClass("highcharts-boost-canvas").add(r),d.clear=function(){d.target.attr({href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="})},d.copy=function(){d.resize(),d.target.attr({href:d.canvas.toDataURL("image/png")})}):(d.targetFo=t.renderer.createElement("foreignObject").add(r),a.renderTarget=d.target=H.createElement("canvas"),d.targetCtx=d.target.getContext("2d"),d.targetFo.element.appendChild(d.target),d.clear=function(){d.target.width=d.canvas.width,d.target.height=d.canvas.height},d.copy=function(){d.target.width=d.canvas.width,d.target.height=d.canvas.height,d.targetCtx.drawImage(d.canvas,0,0)}),d.resize=function(){o=t.chartWidth,n=t.chartHeight,(d.targetFo||d.target).attr({x:0,y:0,width:o,height:n}).css({pointerEvents:h?void 0:"none",mixedBlendMode:"normal",opacity:1}).addClass(h?"highcharts-tracker":""),a instanceof i&&a.boost?.markerGroup?.translate(t.plotLeft,t.plotTop)},d.clipRect=t.renderer.clipRect(),(d.targetFo||d.target).attr({zIndex:e.options.zIndex}),a instanceof i&&(a.boost.markerGroup=a.renderer.g().add(r).translate(e.xAxis.pos,e.yAxis.pos))),d.canvas.width=o,d.canvas.height=n,d.clipRect){let e=O(t,a),i=e.width===t.clipBox.width&&e.height===t.clipBox.height?r:d.targetFo||d.target;d.clipRect.attr(e),i?.clip(d.clipRect)}return d.resize(),d.clear(),!d.wgl&&(d.wgl=new B(t=>{t.settings.debug.timeBufferCopy&&console.time("buffer copy"),d.copy(),t.settings.debug.timeBufferCopy&&console.timeEnd("buffer copy")}),d.wgl.init(d.canvas)||j("[highcharts boost] - unable to init WebGL renderer"),d.wgl.setOptions(t.options.boost||{}),a instanceof i&&d.wgl.allocateBuffer(t)),d.wgl.setSize(o,n),d.wgl}function ta(t){let e=t.points;if(e){let t,i;for(i=0;i<e.length;i+=1)(t=e[i])&&t.destroyElements&&t.destroyElements()}for(let e of(["graph","area","tracker"].forEach(e=>{let i=t[e];i&&(t[e]=i.destroy())}),t.zones))K(e,void 0,!0)}function tl(t,e,i,s,r,o){let n=(r=r||0)+(s=s||3e3),a=!0;for(;a&&r<n&&r<t.length;)a=e(t[r],r),++r;a&&(r<t.length?o?tl(t,e,i,s,r,o):W.requestAnimationFrame?W.requestAnimationFrame(function(){tl(t,e,i,s,r)}):setTimeout(tl,0,t,e,i,s,r):i&&i())}function th(t,e){let i=t.options,s=t.dataTable.modified.rowCount,r=t.xAxis&&t.xAxis.options,o=t.yAxis&&t.yAxis.options,n=t.colorAxis&&t.colorAxis.options;return s>(i.boostThreshold||Number.MAX_VALUE)&&$(o.min)&&$(o.max)&&(!e||$(r.min)&&$(r.max))&&(!n||$(n.min)&&$(n.max))}let td=(t,e)=>!t.forceCrop&&(V(t.chart)||(e?e.length:0)>=(t.options.boostThreshold||Number.MAX_VALUE));function tc(){let t=this,e=t.chart;e.boost&&e.boost.markerGroup===t.markerGroup&&(t.markerGroup=null),e.hoverPoints&&(e.hoverPoints=e.hoverPoints.filter(function(e){return e.series===t})),e.hoverPoint&&e.hoverPoint.series===t&&(e.hoverPoint=null)}function tg(){let t=this.boost;t&&t.canvas&&t.target&&(t.wgl&&t.wgl.clear(),t.clear&&t.clear())}function tu(t){let e=t.boost;e&&e.canvas&&e.target&&e.wgl&&!V(t.chart)&&e.wgl.render(t.chart)}function tm(t,e){let i=t.options,s=t.xAxis,r=t.pointClass;if(e instanceof r)return e;let o=(t.getColumn("x").length?t.getColumn("x"):void 0)||i.xData||t.getColumn("x",!0)||!1,n=new r(t,(J(t.options.data)?t.options.data:[])[e.i],o?o[e.i]:void 0);return n.category=tt(s.categories?s.categories[n.x]:n.x,n.x),n.key=n.name??n.category,n.dist=e.dist,n.distX=e.distX,n.plotX=e.plotX,n.plotY=e.plotY,n.index=e.i,n.percentage=e.percentage,n.isInside=t.isPointInside(n),n}function tp(t){var e,i,s,r;let{options:o,xAxis:n,yAxis:a}=this;if(!this.isDirty&&!n.isDirty&&!a.isDirty&&!t)return!1;this.yAxis.setTickInterval();let l=o.boostThreshold||0,h=o.cropThreshold,d=this.getColumn("x"),c=n.getExtremes(),g=c.max??Number.MAX_VALUE,u=c.min??-Number.MAX_VALUE,m=this.getColumn("y"),p=a.getExtremes(),f=p.max??Number.MAX_VALUE,b=p.min??-Number.MAX_VALUE;if(!this.boosted&&n.old&&a.old&&u>=(n.old.min??-Number.MAX_VALUE)&&g<=(n.old.max??Number.MAX_VALUE)&&b>=(a.old.min??-Number.MAX_VALUE)&&f<=(a.old.max??Number.MAX_VALUE))return this.dataTable.modified.setColumns({x:d,y:m}),!0;let x=this.dataTable.rowCount;if(!l||x<l||h&&!this.forceCrop&&!this.getExtremesFromAll&&!o.getExtremesFromAll&&x<h)return this.dataTable.modified.setColumns({x:d,y:m}),!0;let A=[],v=[],y=[],P=!($(c.max)||$(c.min)),T=!($(p.max)||$(p.min)),C=!1,S,E=d[0],M=d[0],k,R=m?.[0],U=m?.[0];for(let t=0,e=d.length;t<e;++t)S=d[t],k=m?.[t],S>=u&&S<=g&&k>=b&&k<=f?(A.push({x:S,y:k}),v.push(S),y.push(k),P&&(E=Math.max(E,S),M=Math.min(M,S)),T&&(R=Math.max(R,k),U=Math.min(U,k))):C=!0;return P&&((e=n.options).max??(e.max=E),(i=n.options).min??(i.min=M)),T&&((s=a.options).max??(s.max=R),(r=a.options).min??(r.min=U)),this.cropped=C,this.cropStart=0,this.dataTable.modified.setColumns({x:v,y:y}),td(this,v)||(this.processedData=A),!0}function tf(){let t=this.options||{},e=this.chart,s=e.boost,r=this.boost,o=this.xAxis,n=this.yAxis,a=t.xData||this.getColumn("x",!0),l=t.yData||this.getColumn("y",!0),h=this.getColumn("low",!0),d=this.getColumn("high",!0),c=this.processedData||t.data,g=o.getExtremes(),u=g.min-(o.minPointOffset||0),m=g.max+(o.minPointOffset||0),p=n.getExtremes(),f=p.min-(n.minPointOffset||0),b=p.max+(n.minPointOffset||0),x={},A=!!this.sampling,v=t.enableMouseTracking,y=t.threshold,P=this.pointArrayMap&&"low,high"===this.pointArrayMap.join(","),T=!!t.stacking,C=this.cropStart||0,S=this.requireSorting,E=!a,M="x"===t.findNearestPointBy,k=(this.getColumn("x",!0).length?this.getColumn("x",!0):void 0)||this.options.xData||this.getColumn("x",!0),R=tt(t.lineWidth,1),U=!1,w,L=n.getThreshold(y),N,_,z,D;if(o.isPanning||n.isPanning||(U=tn(e,this),e.boosted=!0,!this.visible))return;(this.points||this.graph)&&ta(this),V(e)?(this.markerGroup&&this.markerGroup!==s?.markerGroup&&this.markerGroup.destroy(),this.markerGroup=s?.markerGroup,r&&r.target&&(this.renderTarget=r.target=r.target.destroy())):(this.markerGroup===s?.markerGroup&&(this.markerGroup=void 0),this.markerGroup=this.plotGroup("markerGroup","markers","visible",1,e.seriesGroup).addClass("highcharts-tracker"));let G=this.points=[],I=(t,s,r,a)=>{let l=!!k&&k[C+r],h=t=>{e.inverted&&(t=o.len-t,s=n.len-s),G.push({destroy:Y,x:l,clientX:t,plotX:t,plotY:s,i:C+r,percentage:a})};t=Math.ceil(t),i=M?t:t+","+s,v&&(x[i]?l===k[k.length-1]&&(G.length--,h(t)):(x[i]=!0,h(t)))};this.buildKDTree=Y,Q(this,"renderCanvas"),this.is("line")&&R>1&&r?.target&&s&&!s.lineWidthFilter&&(s.lineWidthFilter=e.renderer.definition({tagName:"filter",children:[{tagName:"feMorphology",attributes:{operator:"dilate",radius:.25*R}}],attributes:{id:"linewidth"}}),r.target.attr({filter:"url(#linewidth)"})),U&&(tr(U,this),U.pushSeries(this),tu(this));let B=U.settings;e.renderer.forExport||(B.debug.timeKDTree&&console.time("kd tree building"),tl(T?this.data.slice(C):a||c,function(t,i){let s=void 0===e.index,r,a,c,g,p,x=!1,v=!0;return!ts(t)||(!s&&(E?(r=t[0],a=t[1]):(r=t,a=l?.[i]),P?(E&&(a=t.slice(1,3)),x=h[i],a=d[i]):T&&(r=t.x,x=(a=t.stackY)-t.y,p=t.percentage),S||(v=(a||0)>=f&&a<=b),null!==a&&r>=u&&r<=m&&v&&(c=o.toPixels(r,!0),A?((void 0===z||c===w)&&(P||(x=a),(void 0===D||a>_)&&(_=a,D=i),(void 0===z||x<N)&&(N=x,z=i)),M&&c===w||(void 0!==z&&(g=n.toPixels(_,!0),L=n.toPixels(N,!0),I(c,g,D,p),L!==g&&I(c,L,z,p)),z=D=void 0,w=c)):I(c,g=Math.ceil(n.toPixels(a,!0)),i,p))),!s)},()=>{Q(this,"renderedCanvas"),delete this.buildKDTree,this.options&&this.buildKDTree(),B.debug.timeKDTree&&console.timeEnd("kd tree building")}))}function tb(t){let e=!0;if(this.chart.options&&this.chart.options.boost&&(e=void 0===this.chart.options.boost.enabled||this.chart.options.boost.enabled),!e||!this.boosted)return t.call(this);this.chart.boosted=!0;let i=tn(this.chart,this);i&&(tr(i,this),i.pushSeries(this)),tu(this)}function tx(t){if(this.boosted){if(th(this))return{};if(this.xAxis.isPanning||this.yAxis.isPanning)return this}return t.apply(this,[].slice.call(arguments,1))}function tA(t){let e=this.options.data;if(to(this.chart)&&g[this.type]){let i=this.is("scatter")&&!this.is("bubble")&&!this.is("treemap")&&!this.is("heatmap");if(!td(this,e)||i||this.is("treemap")||this.options.stacking||!th(this,!0)){if(this.boosted&&(this.xAxis?.isPanning||this.yAxis?.isPanning))return;i&&!this.yAxis.treeGrid?tp.call(this,arguments[1]):t.apply(this,[].slice.call(arguments,1)),e=this.getColumn("x",!0)}if(this.boosted=td(this,e),this.boosted){let t;!this.options.data?.length||$(t=this.getFirstValidPoint(this.options.data))||J(t)||this.is("treemap")||j(12,!1,this.chart),function(t){t.boost=t.boost||{getPoint:e=>tm(t,e)};let e=t.boost.altered=[];if(["allowDG","directTouch","stickyTracking"].forEach(i=>{e.push({prop:i,val:t[i],own:Object.hasOwnProperty.call(t,i)})}),t.allowDG=!1,t.directTouch=!1,t.stickyTracking=!0,t.finishedAnimating=!0,t.labelBySeries&&(t.labelBySeries=t.labelBySeries.destroy()),t.is("scatter")&&!t.is("treemap")&&t.data.length){for(let e of t.data)e?.destroy?.();t.data.length=0,t.points.length=0,delete t.processedData}}(this)}else!function(t){let e=t.boost,i=t.chart,s=i.boost;if(s?.markerGroup)for(let t of(s.markerGroup.destroy(),s.markerGroup=void 0,i.series))t.markerGroup=void 0,t.markerGroup=t.plotGroup("markerGroup","markers","visible",1,i.seriesGroup).addClass("highcharts-tracker");e&&((e.altered||[]).forEach(e=>{e.own?t[e.prop]=e.val:delete t[e.prop]}),e.clear&&e.clear()),(i.seriesGroup||t.group)?.clip()}(this)}else t.apply(this,[].slice.call(arguments,1))}function tv(t){let e=t.apply(this,[].slice.call(arguments,1));return this.boost&&e?this.boost.getPoint(e):e}let ty={compose:function(t,e,i){if(te(F,"Boost.Series")){let s=X().plotOptions,r=t.prototype;if(q(t,"destroy",tc),q(t,"hide",tg),i&&(r.renderCanvas=tf),ti(r,"getExtremes",tx),ti(r,"processData",tA),ti(r,"searchPoint",tv),["translate","generatePoints","drawTracker","drawPoints","render"].forEach(t=>(function(t,e,i){function s(t){let e=this.options.stacking&&("translate"===i||"generatePoints"===i);this.boosted&&!e&&to(this.chart)&&"heatmap"!==this.type&&"treemap"!==this.type&&g[this.type]&&0!==this.options.boostThreshold?"render"===i&&this.renderCanvas&&this.renderCanvas():t.call(this)}if(ti(t,i,s),"translate"===i)for(let t of["column","arearange","columnrange","heatmap","treemap"])e[t]&&ti(e[t].prototype,i,s)})(r,e,t)),c.forEach(t=>{let i=s[t];i&&(i.boostThreshold=5e3,i.boostData=[],e[t].prototype.fillOpacity=!0)}),i){let{area:t,areaspline:i,bubble:s,column:r,heatmap:o,scatter:n,treemap:a}=e;if(t&&Z(t.prototype,{fill:!0,fillOpacity:!0,sampling:!0}),i&&Z(i.prototype,{fill:!0,fillOpacity:!0,sampling:!0}),s){let t=s.prototype;delete t.buildKDTree,ti(t,"markerAttribs",function(t){return!this.boosted&&t.apply(this,[].slice.call(arguments,1))})}r&&Z(r.prototype,{fill:!0,sampling:!0}),n&&(n.prototype.fill=!0),[o,a].forEach(t=>{t&&ti(t.prototype,"drawPoints",tb)})}}return t},destroyGraphics:ta,eachAsync:tl,getPoint:tm},{getBoostClipRect:tP,isChartSeriesBoosting:tT}=A,{destroyGraphics:tC}=ty,{parse:tS}=y(),{doc:tE,noop:tM}=d(),{addEvent:tk,fireEvent:tR,isNumber:tU,merge:tw,pick:tL,wrap:tN}=d();!function(t){let e;let i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";function s(t,e,i,s,r){r&&e!==r.clientX&&(t.moveTo(r.clientX,r.yBottom),t.lineTo(r.clientX,r.plotY),t.lineTo(e,i),t.lineTo(e,s))}function r(t,e,i,s,r){t.moveTo(e,i),t.arc(e,i,this.radii&&this.radii[r],0,2*Math.PI,!1)}function o(t,e,i,s){t.rect(e-1,i,1,s-i)}function n(){this.boost&&this.boost.copy&&this.boost.copy()}function a(){let t=this.boost||{};t.target&&t.target.attr({href:i}),t.canvas&&t.canvas.getContext("2d").clearRect(0,0,t.canvas.width,t.canvas.height)}function l(){tT(this.chart)?this.boost&&this.boost.clear&&this.boost.clear():this.boost&&this.boost.copy?this.boost.copy():this.chart.boost&&this.chart.boost.copy&&this.chart.boost.copy()}function h(t,e,i){t.lineTo(e,i)}function c(){let t;let e=this.chart,s=tT(e)?e:this,r=s===e?e.seriesGroup:e.seriesGroup||this.group,o=e.chartWidth,n=e.chartHeight,a=function(t,e,i,s,r,o,n){t.call(this,i,e,s,r,o,n)},l=s.boost=s.boost||{};return t=l.targetCtx,l.canvas||(l.canvas=tE.createElement("canvas"),l.target=e.renderer.image("",0,0,o,n).addClass("highcharts-boost-canvas").add(r),t=l.targetCtx=l.canvas.getContext("2d"),e.inverted&&["moveTo","lineTo","rect","arc"].forEach(e=>{tN(t,e,a)}),l.copy=function(){l.target.attr({href:l.canvas.toDataURL("image/png")})},l.clear=function(){t.clearRect(0,0,l.canvas.width,l.canvas.height),s===l.target&&l.target.attr({href:i})},l.clipRect=e.renderer.clipRect(),l.target.clip(l.clipRect)),l.canvas.width!==o&&(l.canvas.width=o),l.canvas.height!==n&&(l.canvas.height=n),l.target.attr({x:0,y:0,width:o,height:n,style:"pointer-events: none",href:i}),l.clipRect&&l.clipRect.attr(tP(e,s)),t}function g(){let t=this,s=t.options,r=t.chart,o=t.xAxis,n=t.yAxis,a=r.options.boost||{},l={timeRendering:a.timeRendering||!1,timeSeriesProcessing:a.timeSeriesProcessing||!1,timeSetup:a.timeSetup||!1},h=t.getColumn("x",!0),c=t.getColumn("y",!0),g=s.data,u=o.getExtremes(),m=u.min,p=u.max,f=n.getExtremes(),b=f.min,x=f.max,A={},v=!!t.sampling,P=s.marker&&s.marker.radius,T=t.cvsStrokeBatch||1e3,C=s.enableMouseTracking,S=s.threshold,E=tU(S),M=n.getThreshold(S),k=t.fill,R=t.pointArrayMap&&"low,high"===t.pointArrayMap.join(","),U=!!s.stacking,w=t.cropStart||0,L=r.options.loading,N=t.requireSorting,_=s.connectNulls,z=!h,D=U?t.data:h||g,G=t.fillOpacity?y().parse(t.color).setOpacity(tL(s.fillOpacity,.75)).get():t.color,I="x"===s.findNearestPointBy,B=this.boost||{},O=t.cvsDrawPoint,V=s.lineWidth?t.cvsLineTo:void 0,X=P&&P<=1?t.cvsMarkerSquare:t.cvsMarkerCircle;B.target&&B.target.attr({href:i}),(t.points||t.graph)&&tC(t),t.plotGroup("group","series",t.visible?"visible":"hidden",s.zIndex,r.seriesGroup),t.markerGroup=t.group,tk(t,"destroy",function(){t.markerGroup=null});let F=this.points=[],H=this.getContext();if(t.buildKDTree=tM,B.clear&&B.clear(),!t.visible)return;g.length>99999&&(r.options.loading=tw(L,{labelStyle:{backgroundColor:tS("#ffffff").setOpacity(.75).get(),padding:"1em",borderRadius:"0.5em"},style:{backgroundColor:"none",opacity:1}}),d().clearTimeout(e),r.showLoading("Drawing..."),r.options.loading=L),l.timeRendering&&console.time("canvas rendering");let Y=0,W,q,K=M,j,Z,Q,J,$,tt,te=function(){k?(H.fillStyle=G,H.fill()):(H.strokeStyle=t.color,H.lineWidth=s.lineWidth,H.stroke())},ti=function(e,i,s,o){0===Y&&(H.beginPath(),V&&(H.lineJoin="round")),r.scroller&&"highcharts-navigator-series"===t.options.className?(i+=r.scroller.top,s&&(s+=r.scroller.top)):i+=r.plotTop,e+=r.plotLeft,j?H.moveTo(e,i):O?O(H,e,i,s,q):V?V(H,e,i):X&&X.call(t,H,e,i,P,o),(Y+=1)===T&&(te(),Y=0),q={clientX:e,plotY:i,yBottom:s}},ts=(this.getColumn("x").length?this.getColumn("x"):void 0)||this.options.xData||!!this.getColumn("x",!0).length&&this.getColumn("x",!0),tr=function(t,e,i){tt=I?t:t+","+e,C&&!A[tt]&&(A[tt]=!0,r.inverted&&(t=o.len-t,e=n.len-e),F.push({x:!!ts&&ts[w+i],clientX:t,plotX:t,plotY:e,i:w+i}))};ty.eachAsync(D,(e,i)=>{let s=void 0===r.index,a,l,h,d,g,u,f=!1,A=!1,y=NaN,P=NaN,T=!0;return!s&&(z?(a=e[0],l=e[1],D[i+1]&&(y=D[i+1][0]),D[i-1]&&(P=D[i-1][0])):(a=e,l=c[i],D[i+1]&&(y=D[i+1]),D[i-1]&&(P=D[i-1])),y&&y>=m&&y<=p&&(f=!0),P&&P>=m&&P<=p&&(A=!0),R?(z&&(l=e.slice(1,3)),u=l[0],l=l[1]):U&&(a=e.x,u=(l=e.stackY)-e.y),g=null===l,N||(T=l>=b&&l<=x),!g&&(a>=m&&a<=p&&T||f||A)&&(h=Math.round(o.toPixels(a,!0)),v?((void 0===J||h===W)&&(R||(u=l),(void 0===$||l>Q)&&(Q=l,$=i),(void 0===J||u<Z)&&(Z=u,J=i)),h!==W&&(void 0!==J&&(d=n.toPixels(Q,!0),K=n.toPixels(Z,!0),ti(h,E?Math.min(d,M):d,E?Math.max(K,M):K,i),tr(h,d,$),K!==d&&tr(h,K,J)),J=$=void 0,W=h)):(ti(h,d=Math.round(n.toPixels(l,!0)),K,i),tr(h,d,i))),j=g&&!_,i%5e4==0&&(t.boost&&t.boost.copy?t.boost.copy():t.chart.boost&&t.chart.boost.copy&&t.chart.boost.copy())),!s},function(){let i=r.loadingDiv,s=r.loadingShown;te(),t.canvasToSVG(),l.timeRendering&&console.timeEnd("canvas rendering"),tR(t,"renderedCanvas"),s&&(i.style.transition="opacity 250ms",i.opacity=0,r.loadingShown=!1,e=setTimeout(function(){i.parentNode&&i.parentNode.removeChild(i),r.loadingDiv=r.loadingSpan=null},250)),delete t.buildKDTree,t.buildKDTree()},r.renderer.forExport?Number.MAX_VALUE:void 0)}function u(t,e,i,s){t.moveTo(e,i),t.arc(e,i,s,0,2*Math.PI,!1)}function m(t,e,i,s){t.rect(e-s,i-s,2*s,2*s)}function p(){let t=this.chart,e=this.getContext(),i=this.chart.inverted,s=this.xAxis,r=this.yAxis;e?(this.points.forEach(o=>{let n;let a=o.plotY;if(void 0!==a&&!isNaN(a)&&null!==o.y&&e){let{x:a=0,y:l=0,width:h=0,height:d=0}=o.shapeArgs||{};n=t.styledMode?o.series.colorAttribs(o):o.series.pointAttribs(o),e.fillStyle=n.fill,i?e.fillRect(r.len-l+s.left,s.len-a+r.top,-d,-h):e.fillRect(a+s.left,l+r.top,h,d)}}),this.canvasToSVG()):this.chart.showLoading("Your browser doesn't support HTML5 canvas, <br>please use a modern browser")}t.compose=function(t,e,i){let d=e.prototype;if(!d.renderCanvas){let{area:e,bubble:f,column:b,heatmap:x,scatter:A}=i;if(t.prototype.callbacks.push(t=>{tk(t,"predraw",a),tk(t,"render",n)}),d.canvasToSVG=l,d.cvsLineTo=h,d.getContext=c,d.renderCanvas=g,e){let t=e.prototype;t.cvsDrawPoint=s,t.fill=!0,t.fillOpacity=!0,t.sampling=!0}if(f){let t=f.prototype;t.cvsMarkerCircle=r,t.cvsStrokeBatch=1}if(b){let t=b.prototype;t.cvsDrawPoint=o,t.fill=!0,t.sampling=!0}if(x&&tN(x.prototype,"drawPoints",p),A){let t=A.prototype;t.cvsMarkerCircle=u,t.cvsMarkerSquare=m,t.fill=!0}}}}(r||(r={}));let t_=r,tz=d();tz.initCanvasBoost=function(){t_.compose(tz.Chart,tz.Series,tz.seriesTypes)};let tD=d();return l.default})());
12
+ */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(t._Highcharts,t._Highcharts.Color):"function"==typeof define&&define.amd?define("highcharts/modules/boost-canvas",["highcharts/highcharts"],function(t){return e(t,t.Color)}):"object"==typeof exports?exports["highcharts/modules/boost-canvas"]=e(t._Highcharts,t._Highcharts.Color):t.Highcharts=e(t.Highcharts,t.Highcharts.Color)}("undefined"==typeof window?this:window,(t,e)=>(()=>{"use strict";let i,s;var o,r={620:t=>{t.exports=e},944:e=>{e.exports=t}},n={};function a(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={exports:{}};return r[t](i,i.exports,a),i.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var l={};a.d(l,{default:()=>tD});var h=a(944),d=/*#__PURE__*/a.n(h);let c=["area","areaspline","arearange","column","columnrange","bar","line","scatter","heatmap","bubble","treemap"],g={};c.forEach(t=>{g[t]=!0});let{composed:u}=d(),{addEvent:m,pick:p,pushUnique:f}=d();function b(t){let e=t.series,i=t.boost=t.boost||{},s=t.options.boost||{},o=p(s.seriesThreshold,50);if(e.length>=o)return!0;if(1===e.length)return!1;let r=s.allowForce;if(void 0===r){for(let e of(r=!0,t.xAxis))if(p(e.min,-1/0)>p(e.dataMin,-1/0)||p(e.max,1/0)<p(e.dataMax,1/0)){r=!1;break}}if(void 0!==i.forceChartBoost){if(r)return i.forceChartBoost;i.forceChartBoost=void 0}let n=0,a=0,l;for(let t of e)0!==(l=t.options).boostThreshold&&!1!==t.visible&&"heatmap"!==t.type&&(g[t.type]&&++n,function(...t){let e=-Number.MAX_VALUE;return t.forEach(t=>{if(null!=t&&void 0!==t.length&&t.length>0)return e=t.length,!0}),e}(t.getColumn("x",!0),l.data,t.points)>=(l.boostThreshold||Number.MAX_VALUE)&&++a);return i.forceChartBoost=r&&(n===e.length&&a===n||a>5),i.forceChartBoost}function x(t){function e(){t.boost&&t.boost.wgl&&b(t)&&t.boost.wgl.render(t)}m(t,"predraw",function(){t.boost=t.boost||{},t.boost.forceChartBoost=void 0,t.boosted=!1,t.axes.some(t=>t.isPanning)||t.boost.clear?.(),t.boost.canvas&&t.boost.wgl&&b(t)&&t.boost.wgl.allocateBuffer(t),t.boost.markerGroup&&t.xAxis&&t.xAxis.length>0&&t.yAxis&&t.yAxis.length>0&&t.boost.markerGroup.translate(t.xAxis[0].pos,t.yAxis[0].pos)}),m(t,"load",e,{order:-1}),m(t,"redraw",e);let i=-1,s=-1;m(t.pointer,"afterGetHoverData",e=>{let o=e.hoverPoint?.series;if(t.boost=t.boost||{},t.boost.markerGroup&&o){let e=t.inverted?o.yAxis:o.xAxis,r=t.inverted?o.xAxis:o.yAxis;(e&&e.pos!==i||r&&r.pos!==s)&&(t.series.forEach(t=>{t.halo?.hide()}),t.boost.markerGroup.translate(e.pos,r.pos),i=e.pos,s=r.pos)}})}let A={compose:function(t,e){return e&&f(u,"Boost.Chart")&&t.prototype.callbacks.push(x),t},getBoostClipRect:function(t,e){let i=t.navigator,s={x:t.plotLeft,y:t.plotTop,width:t.plotWidth,height:t.plotHeight};if(i&&t.inverted?(s.width+=i.top+i.height,i.opposite||(s.x=i.left)):i&&!t.inverted&&(s.height=i.top+i.height-t.plotTop),e.getClipBox){let{xAxis:i,yAxis:o}=e;if(s=e.getClipBox(),t.inverted){let t=s.width;s.width=s.height,s.height=t,s.x=o.pos,s.y=i.pos}else s.x=i.pos,s.y=o.pos}if(e===t){let e=t.inverted?t.xAxis:t.yAxis;e.length<=1&&(s.y=Math.min(e[0].pos,s.y),s.height=e[0].pos-t.plotTop+e[0].len)}return s},isChartSeriesBoosting:b};var v=a(620),y=/*#__PURE__*/a.n(v);let P={area:"LINES",arearange:"LINES",areaspline:"LINES",column:"LINES",columnrange:"LINES",bar:"LINES",line:"LINE_STRIP",scatter:"POINTS",heatmap:"TRIANGLES",treemap:"TRIANGLES",bubble:"POINTS"},{clamp:T,error:C,pick:S}=d(),E=class{constructor(t){if(this.errors=[],this.uLocations={},this.gl=t,t&&!this.createShader())return}bind(){this.gl&&this.shaderProgram&&this.gl.useProgram(this.shaderProgram)}createShader(){let t=this.stringToProgram("#version 100\n#define LN10 2.302585092994046\nprecision highp float;\nattribute vec4 aVertexPosition;\nattribute vec4 aColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform mat4 uPMatrix;\nuniform float pSize;\nuniform float translatedThreshold;\nuniform bool hasThreshold;\nuniform bool skipTranslation;\nuniform float xAxisTrans;\nuniform float xAxisMin;\nuniform float xAxisMinPad;\nuniform float xAxisPointRange;\nuniform float xAxisLen;\nuniform bool xAxisPostTranslate;\nuniform float xAxisOrdinalSlope;\nuniform float xAxisOrdinalOffset;\nuniform float xAxisPos;\nuniform bool xAxisCVSCoord;\nuniform bool xAxisIsLog;\nuniform bool xAxisReversed;\nuniform float yAxisTrans;\nuniform float yAxisMin;\nuniform float yAxisMinPad;\nuniform float yAxisPointRange;\nuniform float yAxisLen;\nuniform bool yAxisPostTranslate;\nuniform float yAxisOrdinalSlope;\nuniform float yAxisOrdinalOffset;\nuniform float yAxisPos;\nuniform bool yAxisCVSCoord;\nuniform bool yAxisIsLog;\nuniform bool yAxisReversed;\nuniform bool isBubble;\nuniform bool bubbleSizeByArea;\nuniform float bubbleZMin;\nuniform float bubbleZMax;\nuniform float bubbleZThreshold;\nuniform float bubbleMinSize;\nuniform float bubbleMaxSize;\nuniform bool bubbleSizeAbs;\nuniform bool isInverted;\nfloat bubbleRadius(){\nfloat value = aVertexPosition.w;\nfloat zMax = bubbleZMax;\nfloat zMin = bubbleZMin;\nfloat radius = 0.0;\nfloat pos = 0.0;\nfloat zRange = zMax - zMin;\nif (bubbleSizeAbs){\nvalue = value - bubbleZThreshold;\nzMax = max(zMax - bubbleZThreshold, zMin - bubbleZThreshold);\nzMin = 0.0;\n}\nif (value < zMin){\nradius = bubbleZMin / 2.0 - 1.0;\n} else {\npos = zRange > 0.0 ? (value - zMin) / zRange : 0.5;\nif (bubbleSizeByArea && pos > 0.0){\npos = sqrt(pos);\n}\nradius = ceil(bubbleMinSize + pos * (bubbleMaxSize - bubbleMinSize)) / 2.0;\n}\nreturn radius * 2.0;\n}\nfloat translate(float val,\nfloat pointPlacement,\nfloat localA,\nfloat localMin,\nfloat minPixelPadding,\nfloat pointRange,\nfloat len,\nbool cvsCoord,\nbool isLog,\nbool reversed\n){\nfloat sign = 1.0;\nfloat cvsOffset = 0.0;\nif (cvsCoord) {\nsign *= -1.0;\ncvsOffset = len;\n}\nif (isLog) {\nval = log(val) / LN10;\n}\nif (reversed) {\nsign *= -1.0;\ncvsOffset -= sign * len;\n}\nreturn sign * (val - localMin) * localA + cvsOffset + \n(sign * minPixelPadding);\n}\nfloat xToPixels(float value) {\nif (skipTranslation){\nreturn value;// + xAxisPos;\n}\nreturn translate(value, 0.0, xAxisTrans, xAxisMin, xAxisMinPad, xAxisPointRange, xAxisLen, xAxisCVSCoord, xAxisIsLog, xAxisReversed);// + xAxisPos;\n}\nfloat yToPixels(float value, float checkTreshold) {\nfloat v;\nif (skipTranslation){\nv = value;// + yAxisPos;\n} else {\nv = translate(value, 0.0, yAxisTrans, yAxisMin, yAxisMinPad, yAxisPointRange, yAxisLen, yAxisCVSCoord, yAxisIsLog, yAxisReversed);// + yAxisPos;\nif (v > yAxisLen) {\nv = yAxisLen;\n}\n}\nif (checkTreshold > 0.0 && hasThreshold) {\nv = min(v, translatedThreshold);\n}\nreturn v;\n}\nvoid main(void) {\nif (isBubble){\ngl_PointSize = bubbleRadius();\n} else {\ngl_PointSize = pSize;\n}\nvColor = aColor;\nif (skipTranslation && isInverted) {\ngl_Position = uPMatrix * vec4(aVertexPosition.y + yAxisPos, aVertexPosition.x + xAxisPos, 0.0, 1.0);\n} else if (isInverted) {\ngl_Position = uPMatrix * vec4(yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, xToPixels(aVertexPosition.x) + xAxisPos, 0.0, 1.0);\n} else {\ngl_Position = uPMatrix * vec4(xToPixels(aVertexPosition.x) + xAxisPos, yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, 0.0, 1.0);\n}\n}","vertex"),e=this.stringToProgram("precision highp float;\nuniform vec4 fillColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform sampler2D uSampler;\nuniform bool isCircle;\nuniform bool hasColor;\nvoid main(void) {\nvec4 col = fillColor;\nvec4 tcol = texture2D(uSampler, gl_PointCoord.st);\nif (hasColor) {\ncol = vColor;\n}\nif (isCircle) {\ncol *= tcol;\nif (tcol.r < 0.0) {\ndiscard;\n} else {\ngl_FragColor = col;\n}\n} else {\ngl_FragColor = col;\n}\n}","fragment"),i=t=>this.gl.getUniformLocation(this.shaderProgram,t);return t&&e?(this.shaderProgram=this.gl.createProgram(),this.gl.attachShader(this.shaderProgram,t),this.gl.attachShader(this.shaderProgram,e),this.gl.linkProgram(this.shaderProgram),this.gl.getProgramParameter(this.shaderProgram,this.gl.LINK_STATUS))?(this.gl.useProgram(this.shaderProgram),this.gl.bindAttribLocation(this.shaderProgram,0,"aVertexPosition"),this.pUniform=i("uPMatrix"),this.psUniform=i("pSize"),this.fcUniform=i("fillColor"),this.isBubbleUniform=i("isBubble"),this.bubbleSizeAbsUniform=i("bubbleSizeAbs"),this.bubbleSizeAreaUniform=i("bubbleSizeByArea"),this.uSamplerUniform=i("uSampler"),this.skipTranslationUniform=i("skipTranslation"),this.isCircleUniform=i("isCircle"),this.isInverted=i("isInverted"),!0):(this.errors.push(this.gl.getProgramInfoLog(this.shaderProgram)),this.handleErrors(),this.shaderProgram=!1,!1):(this.shaderProgram=!1,this.handleErrors(),!1)}handleErrors(){this.errors.length&&C("[highcharts boost] shader error - "+this.errors.join("\n"))}stringToProgram(t,e){let i=this.gl.createShader("vertex"===e?this.gl.VERTEX_SHADER:this.gl.FRAGMENT_SHADER);return(this.gl.shaderSource(i,t),this.gl.compileShader(i),this.gl.getShaderParameter(i,this.gl.COMPILE_STATUS))?i:(this.errors.push("when compiling "+e+" shader:\n"+this.gl.getShaderInfoLog(i)),!1)}destroy(){this.gl&&this.shaderProgram&&(this.gl.deleteProgram(this.shaderProgram),this.shaderProgram=!1)}fillColorUniform(){return this.fcUniform}getProgram(){return this.shaderProgram}pointSizeUniform(){return this.psUniform}perspectiveUniform(){return this.pUniform}reset(){this.gl&&this.shaderProgram&&(this.gl.uniform1i(this.isBubbleUniform,0),this.gl.uniform1i(this.isCircleUniform,0))}setBubbleUniforms(t,e,i,s=1){let o=t.options,r=Number.MAX_VALUE,n=-Number.MAX_VALUE;if(this.gl&&this.shaderProgram&&t.is("bubble")){let a=t.getPxExtremes();r=S(o.zMin,T(e,!1===o.displayNegative?o.zThreshold:-Number.MAX_VALUE,r)),n=S(o.zMax,Math.max(n,i)),this.gl.uniform1i(this.isBubbleUniform,1),this.gl.uniform1i(this.isCircleUniform,1),this.gl.uniform1i(this.bubbleSizeAreaUniform,"width"!==t.options.sizeBy),this.gl.uniform1i(this.bubbleSizeAbsUniform,t.options.sizeByAbsoluteValue),this.setUniform("bubbleMinSize",a.minPxSize*s),this.setUniform("bubbleMaxSize",a.maxPxSize*s),this.setUniform("bubbleZMin",r),this.setUniform("bubbleZMax",n),this.setUniform("bubbleZThreshold",t.options.zThreshold)}}setColor(t){this.gl&&this.shaderProgram&&this.gl.uniform4f(this.fcUniform,t[0]/255,t[1]/255,t[2]/255,t[3])}setDrawAsCircle(t){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.isCircleUniform,t?1:0)}setInverted(t){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.isInverted,t)}setPMatrix(t){this.gl&&this.shaderProgram&&this.gl.uniformMatrix4fv(this.pUniform,!1,t)}setPointSize(t){this.gl&&this.shaderProgram&&this.gl.uniform1f(this.psUniform,t)}setSkipTranslation(t){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.skipTranslationUniform,!0===t?1:0)}setTexture(t){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.uSamplerUniform,t)}setUniform(t,e){if(this.gl&&this.shaderProgram){let i=this.uLocations[t]=this.uLocations[t]||this.gl.getUniformLocation(this.shaderProgram,t);this.gl.uniform1f(i,e)}}},M=class{constructor(t,e,i){this.buffer=!1,this.iterator=0,this.preAllocated=!1,this.vertAttribute=!1,this.components=i||2,this.dataComponents=i,this.gl=t,this.shader=e}allocate(t){this.iterator=-1,this.preAllocated=new Float32Array(4*t)}bind(){if(!this.buffer)return!1;this.gl.vertexAttribPointer(this.vertAttribute,this.components,this.gl.FLOAT,!1,0,0)}build(t,e,i){let s;return(this.data=t||[],this.data&&0!==this.data.length||this.preAllocated)?(this.components=i||this.components,this.buffer&&this.gl.deleteBuffer(this.buffer),this.preAllocated||(s=new Float32Array(this.data)),this.buffer=this.gl.createBuffer(),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.buffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,this.preAllocated||s,this.gl.STATIC_DRAW),this.vertAttribute=this.gl.getAttribLocation(this.shader.getProgram(),e),this.gl.enableVertexAttribArray(this.vertAttribute),s=!1,!0):(this.destroy(),!1)}destroy(){this.buffer&&(this.gl.deleteBuffer(this.buffer),this.buffer=!1,this.vertAttribute=!1),this.iterator=0,this.components=this.dataComponents||2,this.data=[]}push(t,e,i,s){this.preAllocated&&(this.preAllocated[++this.iterator]=t,this.preAllocated[++this.iterator]=e,this.preAllocated[++this.iterator]=i,this.preAllocated[++this.iterator]=s)}render(t,e,i){let s=this.preAllocated?this.preAllocated.length:this.data.length;return!!this.buffer&&!!s&&((!t||t>s||t<0)&&(t=0),(!e||e>s)&&(e=s),!(t>=e)&&(i=i||"POINTS",this.gl.drawArrays(this.gl[i],t/this.components,(e-t)/this.components),!0))}},{parse:k}=y(),{doc:R,win:U}=d(),{isNumber:w,isObject:L,merge:N,objectEach:_,pick:z}=d(),D={column:!0,columnrange:!0,bar:!0,area:!0,areaspline:!0,arearange:!0},G={scatter:!0,bubble:!0},I=["webgl","experimental-webgl","moz-webgl","webkit-3d"];class B{static orthoMatrix(t,e){return[2/t,0,0,0,0,-(2/e),0,0,0,0,-2,0,-1,1,-1,1]}static seriesPointCount(t){let e,i,s;return t.boosted?(e=!!t.options.stacking,i=(t.getColumn("x").length?t.getColumn("x"):void 0)||t.options.xData||t.getColumn("x",!0),s=(e?t.data:i||t.options.data).length,"treemap"===t.type?s*=12:"heatmap"===t.type?s*=6:D[t.type]&&(s*=2),s):0}constructor(t){this.data=[],this.height=0,this.isInited=!1,this.markerData=[],this.series=[],this.textureHandles={},this.width=0,this.postRenderCallback=t,this.settings={pointSize:1,lineWidth:1,fillColor:"#AA00AA",useAlpha:!0,usePreallocated:!1,useGPUTranslations:!1,debug:{timeRendering:!1,timeSeriesProcessing:!1,timeSetup:!1,timeBufferCopy:!1,timeKDTree:!1,showSkipSummary:!1}}}getPixelRatio(){return this.settings.pixelRatio||U.devicePixelRatio||1}setOptions(t){"pixelRatio"in t||(t.pixelRatio=1),N(!0,this.settings,t)}allocateBuffer(t){let e=this.vbuffer,i=0;this.settings.usePreallocated&&(t.series.forEach(t=>{t.boosted&&(i+=B.seriesPointCount(t))}),e&&e.allocate(i))}allocateBufferForSingleSeries(t){let e=this.vbuffer,i=0;this.settings.usePreallocated&&(t.boosted&&(i=B.seriesPointCount(t)),e&&e.allocate(i))}clear(){let t=this.gl;t&&t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}pushSeriesData(t,e){let i=this.data,s=this.settings,o=this.vbuffer,r=t.pointArrayMap&&"low,high"===t.pointArrayMap.join(","),{chart:n,options:a,sorted:l,xAxis:h,yAxis:d}=t,c=!!a.stacking,g=a.data,u=t.xAxis.getExtremes(),m=u.min-(t.xAxis.minPointOffset||0),p=u.max+(t.xAxis.minPointOffset||0),f=t.yAxis.getExtremes(),b=f.min-(t.yAxis.minPointOffset||0),x=f.max+(t.yAxis.minPointOffset||0),A=(t.getColumn("x").length?t.getColumn("x"):void 0)||a.xData||t.getColumn("x",!0),v=(t.getColumn("y").length?t.getColumn("y"):void 0)||a.yData||t.getColumn("y",!0),y=(t.getColumn("z").length?t.getColumn("z"):void 0)||a.zData||t.getColumn("z",!0),P=!A||0===A.length,T=a.connectNulls,C=t.points||!1,S=c?t.data:A||g,E={x:Number.MAX_VALUE,y:0},M={x:-Number.MAX_VALUE,y:0},R=void 0===n.index,U=D[t.type],w=a.zoneAxis||"y",N=a.zones||!1,_=a.threshold,z=this.getPixelRatio(),G=t.chart.plotWidth,I=!1,B=!1,O,V,X=0,F=!1,H,Y,W,K,j=-1,Z=!1,q=!1,Q,J=!1,$=!1,tt=!1,te=!1,ti=!0,ts=!0,to,tr=!1,tn=!1,ta=0;if(a.boostData&&a.boostData.length>0)return;a.gapSize&&(tn="value"!==a.gapUnit?a.gapSize*t.closestPointRange:a.gapSize),N&&(to=[],N.forEach((t,e)=>{if(t.color){let i=k(t.color).rgba;i[0]/=255,i[1]/=255,i[2]/=255,to[e]=i,tr||void 0!==t.value||(tr=i)}}),tr||(tr=k(t.pointAttribs&&t.pointAttribs().fill||t.color).rgba,tr[0]/=255,tr[1]/=255,tr[2]/=255)),n.inverted&&(G=t.chart.plotHeight),t.closestPointRangePx=Number.MAX_VALUE;let tl=t=>{t&&(e.colorData.push(t[0]),e.colorData.push(t[1]),e.colorData.push(t[2]),e.colorData.push(t[3]))},th=(t,r,n,a=1,l)=>{tl(l),1!==z&&(!s.useGPUTranslations||e.skipTranslation)&&(t*=z,r*=z,a*=z),s.usePreallocated&&o?(o.push(t,r,n?1:0,a),ta+=4):(i.push(t),i.push(r),i.push(n?z:0),i.push(a))},td=()=>{e.segments.length&&(e.segments[e.segments.length-1].to=i.length||ta)},tc=()=>{e.segments.length&&e.segments[e.segments.length-1].from===(i.length||ta)||(td(),e.segments.push({from:i.length||ta}))},tg=(t,e,i,s,o)=>{tl(o),th(t+i,e),tl(o),th(t,e),tl(o),th(t,e+s),tl(o),th(t,e+s),tl(o),th(t+i,e+s),tl(o),th(t+i,e)};if(tc(),C&&C.length>0){e.skipTranslation=!0,e.drawMode="TRIANGLES",C[0].node&&C[0].node.levelDynamic&&C.sort((t,e)=>{if(t.node){if(t.node.levelDynamic>e.node.levelDynamic)return 1;if(t.node.levelDynamic<e.node.levelDynamic)return -1}return 0}),C.forEach(e=>{let i,s;let o=e.plotY;if(void 0!==o&&!isNaN(o)&&null!==e.y&&e.shapeArgs){let{x:o=0,y:r=0,width:a=0,height:l=0}=e.shapeArgs;i=(s=n.styledMode?e.series.colorAttribs(e):s=e.series.pointAttribs(e))["stroke-width"]||0,tt=k(s.fill).rgba,tt[0]/=255,tt[1]/=255,tt[2]/=255,t.is("treemap")&&(i=i||1,V=k(s.stroke).rgba,V[0]/=255,V[1]/=255,V[2]/=255,tg(o,r,a,l,V),i/=2),t.is("heatmap")&&n.inverted&&(o=h.len-o,r=d.len-r,a=-a,l=-l),tg(o+i,r+i,a-2*i,l-2*i,tt)}}),td();return}for(;j<S.length-1;){if(void 0===(W=S[++j]))continue;if(R)break;let i=g&&g[j];if(!P&&L(i,!0)&&i.color&&(tt=k(i.color).rgba,tt[0]/=255,tt[1]/=255,tt[2]/=255),P?(H=W[0],Y=W[1],S[j+1]&&(q=S[j+1][0]),S[j-1]&&(Z=S[j-1][0]),W.length>=3&&(K=W[2],W[2]>e.zMax&&(e.zMax=W[2]),W[2]<e.zMin&&(e.zMin=W[2]))):(H=W,Y=v?.[j],S[j+1]&&(q=S[j+1]),S[j-1]&&(Z=S[j-1]),y&&y.length&&(K=y[j],y[j]>e.zMax&&(e.zMax=y[j]),y[j]<e.zMin&&(e.zMin=y[j]))),!T&&(null===H||null===Y)){tc();continue}if(q&&q>=m&&q<=p&&(J=!0),Z&&Z>=m&&Z<=p&&($=!0),r?(P&&(Y=W.slice(1,3)),Q=t.getColumn("low",!0)?.[j],Y=t.getColumn("high",!0)?.[j]||0):c&&(H=W.x,Q=(Y=W.stackY)-W.y),null!=b&&null!=x&&(ti=Y>=b&&Y<=x),(l||ti)&&(H>p&&M.x<p&&(M.x=H,M.y=Y),H<m&&E.x>m&&(E.x=H,E.y=Y),null!==Y||!T)){if(null===Y||!ti&&!J&&!$){tc();continue}if((l&&(q>=m||H>=m)&&(Z<=p||H<=p)||!l&&H>=m&&H<=p)&&(te=!0),te||J||$){if(tn&&H-Z>tn&&tc(),N){let t;N.some((e,i)=>{let s=N[i-1];return"x"===w?void 0!==e.value&&H<=e.value&&(to[i]&&(!s||H>=s.value)&&(t=to[i]),!0):void 0!==e.value&&Y<=e.value&&(to[i]&&(!s||Y>=s.value)&&(t=to[i]),!0)}),tt=t||tr||tt}if(s.useGPUTranslations||(e.skipTranslation=!0,H=h.toPixels(H,!0),Y=d.toPixels(Y,!0),!(H>G)||"POINTS"!==e.drawMode)){if(e.hasMarkers&&te&&!1!==I&&(t.closestPointRangePx=Math.min(t.closestPointRangePx,Math.abs(H-I))),!s.useGPUTranslations&&!s.usePreallocated&&I&&1>Math.abs(H-I)&&B&&1>Math.abs(Y-B)){s.debug.showSkipSummary&&++X;continue}U&&(O=Q||0,(!1===Q||void 0===Q)&&(O=Y<0?Y:0),(r||c)&&!d.logarithmic||(O=Math.max(null===_?b:_,b)),s.useGPUTranslations||(O=d.toPixels(O,!0)),th(H,O,0,0,tt)),a.step&&!ts&&th(H,B,0,2,tt),th(H,Y,0,"bubble"===t.type?K||1:2,tt),I=H,B=Y,F=!0,ts=!1}}}}s.debug.showSkipSummary&&console.log("skipped points:",X);let tu=(t,i)=>{if(s.useGPUTranslations||(e.skipTranslation=!0,t.x=h.toPixels(t.x,!0),t.y=d.toPixels(t.y,!0)),i){this.data=[t.x,t.y,0,2].concat(this.data);return}th(t.x,t.y,0,2)};!F&&!1!==T&&"line_strip"===t.drawMode&&(E.x<Number.MAX_VALUE&&tu(E,!0),M.x>-Number.MAX_VALUE&&tu(M)),td()}pushSeries(t){let e=this.markerData,i=this.series,s=this.settings;i.length>0&&i[i.length-1].hasMarkers&&(i[i.length-1].markerTo=e.length),s.debug.timeSeriesProcessing&&console.time("building "+t.type+" series");let o={segments:[],markerFrom:e.length,colorData:[],series:t,zMin:Number.MAX_VALUE,zMax:-Number.MAX_VALUE,hasMarkers:!!t.options.marker&&!1!==t.options.marker.enabled,showMarkers:!0,drawMode:P[t.type]||"LINE_STRIP"};t.index>=i.length?i.push(o):i[t.index]=o,this.pushSeriesData(t,o),s.debug.timeSeriesProcessing&&console.timeEnd("building "+t.type+" series")}flush(){let t=this.vbuffer;this.data=[],this.markerData=[],this.series=[],t&&t.destroy()}setXAxis(t){let e=this.shader;if(!e)return;let i=this.getPixelRatio();e.setUniform("xAxisTrans",t.transA*i),e.setUniform("xAxisMin",t.min),e.setUniform("xAxisMinPad",t.minPixelPadding*i),e.setUniform("xAxisPointRange",t.pointRange),e.setUniform("xAxisLen",t.len*i),e.setUniform("xAxisPos",t.pos*i),e.setUniform("xAxisCVSCoord",!t.horiz),e.setUniform("xAxisIsLog",!!t.logarithmic),e.setUniform("xAxisReversed",!!t.reversed)}setYAxis(t){let e=this.shader;if(!e)return;let i=this.getPixelRatio();e.setUniform("yAxisTrans",t.transA*i),e.setUniform("yAxisMin",t.min),e.setUniform("yAxisMinPad",t.minPixelPadding*i),e.setUniform("yAxisPointRange",t.pointRange),e.setUniform("yAxisLen",t.len*i),e.setUniform("yAxisPos",t.pos*i),e.setUniform("yAxisCVSCoord",!t.horiz),e.setUniform("yAxisIsLog",!!t.logarithmic),e.setUniform("yAxisReversed",!!t.reversed)}setThreshold(t,e){let i=this.shader;i&&(i.setUniform("hasThreshold",t),i.setUniform("translatedThreshold",e))}renderChart(t){let e=this.gl,i=this.settings,s=this.shader,o=this.vbuffer,r=this.getPixelRatio();if(!t)return!1;this.width=t.chartWidth*r,this.height=t.chartHeight*r;let n=this.height,a=this.width;if(!e||!s||!a||!n)return!1;i.debug.timeRendering&&console.time("gl rendering"),e.canvas.width=a,e.canvas.height=n,s.bind(),e.viewport(0,0,a,n),s.setPMatrix(B.orthoMatrix(a,n)),i.lineWidth>1&&!d().isMS&&e.lineWidth(i.lineWidth),o&&(o.build(this.data,"aVertexPosition",4),o.bind()),s.setInverted(t.inverted),this.series.forEach((n,a)=>{let l=n.series.options,h=l.marker,d=void 0!==l.lineWidth?l.lineWidth:1,c=l.threshold,g=w(c),u=n.series.yAxis.getThreshold(c),m=z(l.marker?l.marker.enabled:null,!!n.series.xAxis.isRadial||null,n.series.closestPointRangePx>2*((l.marker?l.marker.radius:10)||10)),p=this.textureHandles[h&&h.symbol||n.series.symbol]||this.textureHandles.circle,f,b,x,A=[];if(0!==n.segments.length&&n.segments[0].from!==n.segments[0].to&&(p.isReady&&(e.bindTexture(e.TEXTURE_2D,p.handle),s.setTexture(p.handle)),t.styledMode?n.series.markerGroup===n.series.chart.boost?.markerGroup?(delete n.series.markerGroup,n.series.markerGroup=n.series.plotGroup("markerGroup","markers","visible",1,t.seriesGroup).addClass("highcharts-tracker"),x=n.series.markerGroup.getStyle("fill"),n.series.markerGroup.destroy(),n.series.markerGroup=n.series.chart.boost?.markerGroup):x=n.series.markerGroup?.getStyle("fill"):(x="POINTS"===n.drawMode&&n.series.pointAttribs&&n.series.pointAttribs().fill||n.series.color,l.colorByPoint&&(x=n.series.chart.options.colors[a])),n.series.fillOpacity&&l.fillOpacity&&(x=new(y())(x).setOpacity(z(l.fillOpacity,1)).get()),A=k(x).rgba,i.useAlpha||(A[3]=1),"add"===l.boostBlending?(e.blendFunc(e.SRC_ALPHA,e.ONE),e.blendEquation(e.FUNC_ADD)):"mult"===l.boostBlending||"multiply"===l.boostBlending?e.blendFunc(e.DST_COLOR,e.ZERO):"darken"===l.boostBlending?(e.blendFunc(e.ONE,e.ONE),e.blendEquation(e.FUNC_MIN)):e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA),s.reset(),n.colorData.length>0?(s.setUniform("hasColor",1),(b=new M(e,s)).build(Array(n.segments[0].from).concat(n.colorData),"aColor",4),b.bind()):(s.setUniform("hasColor",0),e.disableVertexAttribArray(e.getAttribLocation(s.getProgram(),"aColor"))),s.setColor(A),this.setXAxis(n.series.xAxis),this.setYAxis(n.series.yAxis),this.setThreshold(g,u),"POINTS"===n.drawMode&&s.setPointSize(2*z(l.marker&&l.marker.radius,.5)*r),s.setSkipTranslation(n.skipTranslation),"bubble"===n.series.type&&s.setBubbleUniforms(n.series,n.zMin,n.zMax,r),s.setDrawAsCircle(G[n.series.type]||!1),o)){if(d>0||"LINE_STRIP"!==n.drawMode)for(f=0;f<n.segments.length;f++)o.render(n.segments[f].from,n.segments[f].to,n.drawMode);if(n.hasMarkers&&m)for(s.setPointSize(2*z(l.marker&&l.marker.radius,5)*r),s.setDrawAsCircle(!0),f=0;f<n.segments.length;f++)o.render(n.segments[f].from,n.segments[f].to,"POINTS")}}),i.debug.timeRendering&&console.timeEnd("gl rendering"),this.postRenderCallback&&this.postRenderCallback(this),this.flush()}render(t){if(this.clear(),t.renderer.forExport)return this.renderChart(t);this.isInited?this.renderChart(t):setTimeout(()=>{this.render(t)},1)}setSize(t,e){let i=this.shader;i&&(this.width!==t||this.height!==e)&&(this.width=t,this.height=e,i.bind(),i.setPMatrix(B.orthoMatrix(t,e)))}init(t,e){let i=this.settings;if(this.isInited=!1,!t)return!1;i.debug.timeSetup&&console.time("gl setup");for(let e=0;e<I.length&&(this.gl=t.getContext(I[e],{}),!this.gl);++e);let s=this.gl;if(!s)return!1;e||this.flush(),s.enable(s.BLEND),s.blendFunc(s.SRC_ALPHA,s.ONE_MINUS_SRC_ALPHA),s.disable(s.DEPTH_TEST),s.depthFunc(s.LESS);let o=this.shader=new E(s);if(!o)return!1;this.vbuffer=new M(s,o);let r=(t,e)=>{let i={isReady:!1,texture:R.createElement("canvas"),handle:s.createTexture()},o=i.texture.getContext("2d");this.textureHandles[t]=i,i.texture.width=512,i.texture.height=512,o.mozImageSmoothingEnabled=!1,o.webkitImageSmoothingEnabled=!1,o.msImageSmoothingEnabled=!1,o.imageSmoothingEnabled=!1,o.strokeStyle="rgba(255, 255, 255, 0)",o.fillStyle="#FFF",e(o);try{s.activeTexture(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,i.handle),s.texImage2D(s.TEXTURE_2D,0,s.RGBA,s.RGBA,s.UNSIGNED_BYTE,i.texture),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_S,s.CLAMP_TO_EDGE),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_T,s.CLAMP_TO_EDGE),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MAG_FILTER,s.LINEAR),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MIN_FILTER,s.LINEAR),s.bindTexture(s.TEXTURE_2D,null),i.isReady=!0}catch(t){}};return r("circle",t=>{t.beginPath(),t.arc(256,256,256,0,2*Math.PI),t.stroke(),t.fill()}),r("square",t=>{t.fillRect(0,0,512,512)}),r("diamond",t=>{t.beginPath(),t.moveTo(256,0),t.lineTo(512,256),t.lineTo(256,512),t.lineTo(0,256),t.lineTo(256,0),t.fill()}),r("triangle",t=>{t.beginPath(),t.moveTo(0,512),t.lineTo(256,0),t.lineTo(512,512),t.lineTo(0,512),t.fill()}),r("triangle-down",t=>{t.beginPath(),t.moveTo(0,0),t.lineTo(256,512),t.lineTo(512,0),t.lineTo(0,0),t.fill()}),this.isInited=!0,i.debug.timeSetup&&console.timeEnd("gl setup"),!0}destroy(){let t=this.gl,e=this.shader,i=this.vbuffer;this.flush(),i&&i.destroy(),e&&e.destroy(),t&&(_(this.textureHandles,e=>{e.handle&&t.deleteTexture(e.handle)}),t.canvas.width=1,t.canvas.height=1)}}let{getBoostClipRect:O,isChartSeriesBoosting:V}=A,{getOptions:X}=d(),{composed:F,doc:H,noop:Y,win:W}=d(),{addEvent:K,destroyObjectProperties:j,error:Z,extend:q,fireEvent:Q,isArray:J,isNumber:$,pick:tt,pushUnique:te,wrap:ti,defined:ts}=d();function to(t,e){let i=e.boost;t&&i&&i.target&&i.canvas&&!V(e.chart)&&t.allocateBufferForSingleSeries(e)}function tr(t){return tt(t&&t.options&&t.options.boost&&t.options.boost.enabled,!0)}function tn(t,e){let i=t.constructor,o=t.seriesGroup||e.group,r=t.chartWidth,n=t.chartHeight,a=t,l="undefined"!=typeof SVGForeignObjectElement,h=!1;V(t)?a=t:(a=e,h=!!(e.options.events?.click||e.options.point?.events?.click));let d=a.boost=a.boost||{};if(l=!1,s||(s=H.createElement("canvas")),!d.target&&(d.canvas=s,t.renderer.forExport||!l?(a.renderTarget=d.target=t.renderer.image("",0,0,r,n).addClass("highcharts-boost-canvas").add(o),d.clear=function(){d.target.attr({href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="})},d.copy=function(){d.resize(),d.target.attr({href:d.canvas.toDataURL("image/png")})}):(d.targetFo=t.renderer.createElement("foreignObject").add(o),a.renderTarget=d.target=H.createElement("canvas"),d.targetCtx=d.target.getContext("2d"),d.targetFo.element.appendChild(d.target),d.clear=function(){d.target.width=d.canvas.width,d.target.height=d.canvas.height},d.copy=function(){d.target.width=d.canvas.width,d.target.height=d.canvas.height,d.targetCtx.drawImage(d.canvas,0,0)}),d.resize=function(){r=t.chartWidth,n=t.chartHeight,(d.targetFo||d.target).attr({x:0,y:0,width:r,height:n}).css({pointerEvents:h?void 0:"none",mixedBlendMode:"normal",opacity:1}).addClass(h?"highcharts-tracker":""),a instanceof i&&a.boost?.markerGroup?.translate(t.plotLeft,t.plotTop)},d.clipRect=t.renderer.clipRect(),(d.targetFo||d.target).attr({zIndex:e.options.zIndex}),a instanceof i&&(a.boost.markerGroup=a.renderer.g().add(o).translate(e.xAxis.pos,e.yAxis.pos))),d.canvas.width=r,d.canvas.height=n,d.clipRect){let e=O(t,a),i=e.width===t.clipBox.width&&e.height===t.clipBox.height?o:d.targetFo||d.target;d.clipRect.attr(e),i?.clip(d.clipRect)}return d.resize(),d.clear(),!d.wgl&&(d.wgl=new B(t=>{t.settings.debug.timeBufferCopy&&console.time("buffer copy"),d.copy(),t.settings.debug.timeBufferCopy&&console.timeEnd("buffer copy")}),d.wgl.init(d.canvas)||Z("[highcharts boost] - unable to init WebGL renderer"),d.wgl.setOptions(t.options.boost||{}),a instanceof i&&d.wgl.allocateBuffer(t)),d.wgl.setSize(r,n),d.wgl}function ta(t){let e=t.points;if(e){let t,i;for(i=0;i<e.length;i+=1)(t=e[i])&&t.destroyElements&&t.destroyElements()}for(let e of(["graph","area","tracker"].forEach(e=>{let i=t[e];i&&(t[e]=i.destroy())}),t.zones))j(e,void 0,!0)}function tl(t,e,i,s,o,r){let n=(o=o||0)+(s=s||3e3),a=!0;for(;a&&o<n&&o<t.length;)a=e(t[o],o),++o;a&&(o<t.length?r?tl(t,e,i,s,o,r):W.requestAnimationFrame?W.requestAnimationFrame(function(){tl(t,e,i,s,o)}):setTimeout(tl,0,t,e,i,s,o):i&&i())}function th(t,e){let i=t.options,s=t.dataTable.modified.rowCount,o=t.xAxis&&t.xAxis.options,r=t.yAxis&&t.yAxis.options,n=t.colorAxis&&t.colorAxis.options;return s>(i.boostThreshold||Number.MAX_VALUE)&&$(r.min)&&$(r.max)&&(!e||$(o.min)&&$(o.max))&&(!n||$(n.min)&&$(n.max))}let td=(t,e)=>!t.forceCrop&&(V(t.chart)||(e?e.length:0)>=(t.options.boostThreshold||Number.MAX_VALUE));function tc(){let t=this,e=t.chart;e.boost&&e.boost.markerGroup===t.markerGroup&&(t.markerGroup=null),e.hoverPoints&&(e.hoverPoints=e.hoverPoints.filter(function(e){return e.series===t})),e.hoverPoint&&e.hoverPoint.series===t&&(e.hoverPoint=null)}function tg(){let t=this.boost;t&&t.canvas&&t.target&&(t.wgl&&t.wgl.clear(),t.clear&&t.clear())}function tu(t){let e=t.boost;e&&e.canvas&&e.target&&e.wgl&&!V(t.chart)&&e.wgl.render(t.chart)}function tm(t,e){let i=t.options,s=t.xAxis,o=t.pointClass;if(e instanceof o)return e;let r=(t.getColumn("x").length?t.getColumn("x"):void 0)||i.xData||t.getColumn("x",!0)||!1,n=new o(t,(J(t.options.data)?t.options.data:[])[e.i],r?r[e.i]:void 0);return n.category=tt(s.categories?s.categories[n.x]:n.x,n.x),n.key=n.name??n.category,n.dist=e.dist,n.distX=e.distX,n.plotX=e.plotX,n.plotY=e.plotY,n.index=e.i,n.percentage=e.percentage,n.isInside=t.isPointInside(n),n}function tp(t){var e,i,s,o;let{options:r,xAxis:n,yAxis:a}=this;if(!this.isDirty&&!n.isDirty&&!a.isDirty&&!t)return!1;this.yAxis.setTickInterval();let l=r.boostThreshold||0,h=r.cropThreshold,d=this.getColumn("x"),c=n.getExtremes(),g=c.max??Number.MAX_VALUE,u=c.min??-Number.MAX_VALUE,m=this.getColumn("y"),p=a.getExtremes(),f=p.max??Number.MAX_VALUE,b=p.min??-Number.MAX_VALUE;if(!this.boosted&&n.old&&a.old&&u>=(n.old.min??-Number.MAX_VALUE)&&g<=(n.old.max??Number.MAX_VALUE)&&b>=(a.old.min??-Number.MAX_VALUE)&&f<=(a.old.max??Number.MAX_VALUE))return this.dataTable.modified.setColumns({x:d,y:m}),!0;let x=this.dataTable.rowCount;if(!l||x<l||h&&!this.forceCrop&&!this.getExtremesFromAll&&!r.getExtremesFromAll&&x<h)return this.dataTable.modified.setColumns({x:d,y:m}),!0;let A=[],v=[],y=[],P=!($(c.max)||$(c.min)),T=!($(p.max)||$(p.min)),C=!1,S,E=d[0],M=d[0],k,R=m?.[0],U=m?.[0];for(let t=0,e=d.length;t<e;++t)S=d[t],k=m?.[t],S>=u&&S<=g&&k>=b&&k<=f?(A.push({x:S,y:k}),v.push(S),y.push(k),P&&(E=Math.max(E,S),M=Math.min(M,S)),T&&(R=Math.max(R,k),U=Math.min(U,k))):C=!0;return P&&((e=n.options).max??(e.max=E),(i=n.options).min??(i.min=M)),T&&((s=a.options).max??(s.max=R),(o=a.options).min??(o.min=U)),this.cropped=C,this.cropStart=0,this.dataTable.modified.setColumns({x:v,y:y}),td(this,v)||(this.processedData=A),!0}function tf(){let t=this.options||{},e=this.chart,s=e.boost,o=this.boost,r=this.xAxis,n=this.yAxis,a=t.xData||this.getColumn("x",!0),l=t.yData||this.getColumn("y",!0),h=this.getColumn("low",!0),d=this.getColumn("high",!0),c=this.processedData||t.data,g=r.getExtremes(),u=g.min-(r.minPointOffset||0),m=g.max+(r.minPointOffset||0),p=n.getExtremes(),f=p.min-(n.minPointOffset||0),b=p.max+(n.minPointOffset||0),x={},A=!!this.sampling,v=t.enableMouseTracking,y=t.threshold,P=this.pointArrayMap&&"low,high"===this.pointArrayMap.join(","),T=!!t.stacking,C=this.cropStart||0,S=this.requireSorting,E=!a,M="x"===t.findNearestPointBy,k=(this.getColumn("x",!0).length?this.getColumn("x",!0):void 0)||this.options.xData||this.getColumn("x",!0),R=tt(t.lineWidth,1),U=!1,w,L=n.getThreshold(y),N,_,z,D;if(r.isPanning||n.isPanning||(U=tn(e,this),e.boosted=!0,!this.visible))return;(this.points||this.graph)&&ta(this),V(e)?(this.markerGroup&&this.markerGroup!==s?.markerGroup&&this.markerGroup.destroy(),this.markerGroup=s?.markerGroup,o&&o.target&&(this.renderTarget=o.target=o.target.destroy())):(this.markerGroup===s?.markerGroup&&(this.markerGroup=void 0),this.markerGroup=this.plotGroup("markerGroup","markers","visible",1,e.seriesGroup).addClass("highcharts-tracker"));let G=this.points=[],I=(t,s,o,a)=>{let l=!!k&&k[C+o],h=t=>{e.inverted&&(t=r.len-t,s=n.len-s),G.push({destroy:Y,x:l,clientX:t,plotX:t,plotY:s,i:C+o,percentage:a})};t=Math.ceil(t),i=M?t:t+","+s,v&&(x[i]?l===k[k.length-1]&&(G.length--,h(t)):(x[i]=!0,h(t)))};this.buildKDTree=Y,Q(this,"renderCanvas"),this.is("line")&&R>1&&o?.target&&s&&!s.lineWidthFilter&&(s.lineWidthFilter=e.renderer.definition({tagName:"filter",children:[{tagName:"feMorphology",attributes:{operator:"dilate",radius:.25*R}}],attributes:{id:"linewidth"}}),o.target.attr({filter:"url(#linewidth)"})),U&&(to(U,this),U.pushSeries(this),tu(this));let B=U.settings;e.renderer.forExport||(B.debug.timeKDTree&&console.time("kd tree building"),tl(T?this.data.slice(C):a||c,function(t,i){let s=void 0===e.index,o,a,c,g,p,x=!1,v=!0;return!ts(t)||(!s&&(E?(o=t[0],a=t[1]):(o=t,a=l?.[i]),P?(E&&(a=t.slice(1,3)),x=h[i],a=d[i]):T&&(o=t.x,x=(a=t.stackY)-t.y,p=t.percentage),S||(v=(a||0)>=f&&a<=b),null!==a&&o>=u&&o<=m&&v&&(c=r.toPixels(o,!0),A?((void 0===z||c===w)&&(P||(x=a),(void 0===D||a>_)&&(_=a,D=i),(void 0===z||x<N)&&(N=x,z=i)),M&&c===w||(void 0!==z&&(g=n.toPixels(_,!0),L=n.toPixels(N,!0),I(c,g,D,p),L!==g&&I(c,L,z,p)),z=D=void 0,w=c)):I(c,g=Math.ceil(n.toPixels(a,!0)),i,p))),!s)},()=>{Q(this,"renderedCanvas"),delete this.buildKDTree,this.options&&this.buildKDTree(),B.debug.timeKDTree&&console.timeEnd("kd tree building")}))}function tb(t){let e=!0;if(this.chart.options&&this.chart.options.boost&&(e=void 0===this.chart.options.boost.enabled||this.chart.options.boost.enabled),!e||!this.boosted)return t.call(this);this.chart.boosted=!0;let i=tn(this.chart,this);i&&(to(i,this),i.pushSeries(this)),tu(this)}function tx(t){if(this.boosted){if(th(this))return{};if(this.xAxis.isPanning||this.yAxis.isPanning)return this}return t.apply(this,[].slice.call(arguments,1))}function tA(t){let e=this.options.data;if(tr(this.chart)&&g[this.type]){let i=this.is("scatter")&&!this.is("bubble")&&!this.is("treemap")&&!this.is("heatmap");if(!td(this,e)||i||this.is("treemap")||this.options.stacking||!th(this,!0)){if(this.boosted&&(this.xAxis?.isPanning||this.yAxis?.isPanning))return;i&&!this.yAxis.treeGrid?tp.call(this,arguments[1]):t.apply(this,[].slice.call(arguments,1)),e=this.getColumn("x",!0)}if(this.boosted=td(this,e),this.boosted){let t;!this.options.data?.length||$(t=this.getFirstValidPoint(this.options.data))||J(t)||this.is("treemap")||Z(12,!1,this.chart),function(t){t.boost=t.boost||{getPoint:e=>tm(t,e)};let e=t.boost.altered=[];if(["allowDG","directTouch","stickyTracking"].forEach(i=>{e.push({prop:i,val:t[i],own:Object.hasOwnProperty.call(t,i)})}),t.allowDG=!1,t.directTouch=!1,t.stickyTracking=!0,t.finishedAnimating=!0,t.labelBySeries&&(t.labelBySeries=t.labelBySeries.destroy()),t.is("scatter")&&!t.is("treemap")&&t.data.length){for(let e of t.data)e?.destroy?.();t.data.length=0,t.points.length=0,delete t.processedData}}(this)}else!function(t){let e=t.boost,i=t.chart,s=i.boost;if(s?.markerGroup)for(let t of(s.markerGroup.destroy(),s.markerGroup=void 0,i.series))t.markerGroup=void 0,t.markerGroup=t.plotGroup("markerGroup","markers","visible",1,i.seriesGroup).addClass("highcharts-tracker");e&&((e.altered||[]).forEach(e=>{e.own?t[e.prop]=e.val:delete t[e.prop]}),e.clear&&e.clear()),(i.seriesGroup||t.group)?.clip()}(this)}else t.apply(this,[].slice.call(arguments,1))}function tv(t){let e=t.apply(this,[].slice.call(arguments,1));return this.boost&&e?this.boost.getPoint(e):e}let ty={compose:function(t,e,i){if(te(F,"Boost.Series")){let s=X().plotOptions,o=t.prototype;if(K(t,"destroy",tc),K(t,"hide",tg),i&&(o.renderCanvas=tf),ti(o,"getExtremes",tx),ti(o,"processData",tA),ti(o,"searchPoint",tv),["translate","generatePoints","drawTracker","drawPoints","render"].forEach(t=>(function(t,e,i){function s(t){let e=this.options.stacking&&("translate"===i||"generatePoints"===i);this.boosted&&!e&&tr(this.chart)&&"heatmap"!==this.type&&"treemap"!==this.type&&g[this.type]&&0!==this.options.boostThreshold?"render"===i&&this.renderCanvas&&this.renderCanvas():t.call(this)}if(ti(t,i,s),"translate"===i)for(let t of["column","arearange","columnrange","heatmap","treemap"])e[t]&&ti(e[t].prototype,i,s)})(o,e,t)),c.forEach(t=>{let i=s[t];i&&(i.boostThreshold=5e3,i.boostData=[],e[t].prototype.fillOpacity=!0)}),i){let{area:t,areaspline:i,bubble:s,column:o,heatmap:r,scatter:n,treemap:a}=e;if(t&&q(t.prototype,{fill:!0,fillOpacity:!0,sampling:!0}),i&&q(i.prototype,{fill:!0,fillOpacity:!0,sampling:!0}),s){let t=s.prototype;delete t.buildKDTree,ti(t,"markerAttribs",function(t){return!this.boosted&&t.apply(this,[].slice.call(arguments,1))})}o&&q(o.prototype,{fill:!0,sampling:!0}),n&&(n.prototype.fill=!0),[r,a].forEach(t=>{t&&ti(t.prototype,"drawPoints",tb)})}}return t},destroyGraphics:ta,eachAsync:tl,getPoint:tm},{getBoostClipRect:tP,isChartSeriesBoosting:tT}=A,{destroyGraphics:tC}=ty,{parse:tS}=y(),{doc:tE,noop:tM}=d(),{addEvent:tk,fireEvent:tR,isNumber:tU,merge:tw,pick:tL,wrap:tN}=d();!function(t){let e;let i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";function s(t,e,i,s,o){o&&e!==o.clientX&&(t.moveTo(o.clientX,o.yBottom),t.lineTo(o.clientX,o.plotY),t.lineTo(e,i),t.lineTo(e,s))}function o(t,e,i,s,o){t.moveTo(e,i),t.arc(e,i,this.radii&&this.radii[o],0,2*Math.PI,!1)}function r(t,e,i,s){t.rect(e-1,i,1,s-i)}function n(){this.boost&&this.boost.copy&&this.boost.copy()}function a(){let t=this.boost||{};t.target&&t.target.attr({href:i}),t.canvas&&t.canvas.getContext("2d").clearRect(0,0,t.canvas.width,t.canvas.height)}function l(){tT(this.chart)?this.boost&&this.boost.clear&&this.boost.clear():this.boost&&this.boost.copy?this.boost.copy():this.chart.boost&&this.chart.boost.copy&&this.chart.boost.copy()}function h(t,e,i){t.lineTo(e,i)}function c(){let t;let e=this.chart,s=tT(e)?e:this,o=s===e?e.seriesGroup:e.seriesGroup||this.group,r=e.chartWidth,n=e.chartHeight,a=function(t,e,i,s,o,r,n){t.call(this,i,e,s,o,r,n)},l=s.boost=s.boost||{};return t=l.targetCtx,l.canvas||(l.canvas=tE.createElement("canvas"),l.target=e.renderer.image("",0,0,r,n).addClass("highcharts-boost-canvas").add(o),t=l.targetCtx=l.canvas.getContext("2d"),e.inverted&&["moveTo","lineTo","rect","arc"].forEach(e=>{tN(t,e,a)}),l.copy=function(){l.target.attr({href:l.canvas.toDataURL("image/png")})},l.clear=function(){t.clearRect(0,0,l.canvas.width,l.canvas.height),s===l.target&&l.target.attr({href:i})},l.clipRect=e.renderer.clipRect(),l.target.clip(l.clipRect)),l.canvas.width!==r&&(l.canvas.width=r),l.canvas.height!==n&&(l.canvas.height=n),l.target.attr({x:0,y:0,width:r,height:n,style:"pointer-events: none",href:i}),l.clipRect&&l.clipRect.attr(tP(e,s)),t}function g(){let t=this,s=t.options,o=t.chart,r=t.xAxis,n=t.yAxis,a=o.options.boost||{},l={timeRendering:a.timeRendering||!1,timeSeriesProcessing:a.timeSeriesProcessing||!1,timeSetup:a.timeSetup||!1},h=t.getColumn("x",!0),c=t.getColumn("y",!0),g=s.data,u=r.getExtremes(),m=u.min,p=u.max,f=n.getExtremes(),b=f.min,x=f.max,A={},v=!!t.sampling,P=s.marker&&s.marker.radius,T=t.cvsStrokeBatch||1e3,C=s.enableMouseTracking,S=s.threshold,E=tU(S),M=n.getThreshold(S),k=t.fill,R=t.pointArrayMap&&"low,high"===t.pointArrayMap.join(","),U=!!s.stacking,w=t.cropStart||0,L=o.options.loading,N=t.requireSorting,_=s.connectNulls,z=!h,D=U?t.data:h||g,G=t.fillOpacity?y().parse(t.color).setOpacity(tL(s.fillOpacity,.75)).get():t.color,I="x"===s.findNearestPointBy,B=this.boost||{},O=t.cvsDrawPoint,V=s.lineWidth?t.cvsLineTo:void 0,X=P&&P<=1?t.cvsMarkerSquare:t.cvsMarkerCircle;B.target&&B.target.attr({href:i}),(t.points||t.graph)&&tC(t),t.plotGroup("group","series",t.visible?"visible":"hidden",s.zIndex,o.seriesGroup),t.markerGroup=t.group,tk(t,"destroy",function(){t.markerGroup=null});let F=this.points=[],H=this.getContext();if(t.buildKDTree=tM,B.clear&&B.clear(),!t.visible)return;g.length>99999&&(o.options.loading=tw(L,{labelStyle:{backgroundColor:tS("#ffffff").setOpacity(.75).get(),padding:"1em",borderRadius:"0.5em"},style:{backgroundColor:"none",opacity:1}}),d().clearTimeout(e),o.showLoading("Drawing..."),o.options.loading=L),l.timeRendering&&console.time("canvas rendering");let Y=0,W,K,j=M,Z,q,Q,J,$,tt,te=function(){k?(H.fillStyle=G,H.fill()):(H.strokeStyle=t.color,H.lineWidth=s.lineWidth,H.stroke())},ti=function(e,i,s,r){0===Y&&(H.beginPath(),V&&(H.lineJoin="round")),o.scroller&&"highcharts-navigator-series"===t.options.className?(i+=o.scroller.top,s&&(s+=o.scroller.top)):i+=o.plotTop,e+=o.plotLeft,Z?H.moveTo(e,i):O?O(H,e,i,s,K):V?V(H,e,i):X&&X.call(t,H,e,i,P,r),(Y+=1)===T&&(te(),Y=0),K={clientX:e,plotY:i,yBottom:s}},ts=(this.getColumn("x").length?this.getColumn("x"):void 0)||this.options.xData||!!this.getColumn("x",!0).length&&this.getColumn("x",!0),to=function(t,e,i){tt=I?t:t+","+e,C&&!A[tt]&&(A[tt]=!0,o.inverted&&(t=r.len-t,e=n.len-e),F.push({x:!!ts&&ts[w+i],clientX:t,plotX:t,plotY:e,i:w+i}))};ty.eachAsync(D,(e,i)=>{let s=void 0===o.index,a,l,h,d,g,u,f=!1,A=!1,y=NaN,P=NaN,T=!0;return!s&&(z?(a=e[0],l=e[1],D[i+1]&&(y=D[i+1][0]),D[i-1]&&(P=D[i-1][0])):(a=e,l=c[i],D[i+1]&&(y=D[i+1]),D[i-1]&&(P=D[i-1])),y&&y>=m&&y<=p&&(f=!0),P&&P>=m&&P<=p&&(A=!0),R?(z&&(l=e.slice(1,3)),u=l[0],l=l[1]):U&&(a=e.x,u=(l=e.stackY)-e.y),g=null===l,N||(T=l>=b&&l<=x),!g&&(a>=m&&a<=p&&T||f||A)&&(h=Math.round(r.toPixels(a,!0)),v?((void 0===J||h===W)&&(R||(u=l),(void 0===$||l>Q)&&(Q=l,$=i),(void 0===J||u<q)&&(q=u,J=i)),h!==W&&(void 0!==J&&(d=n.toPixels(Q,!0),j=n.toPixels(q,!0),ti(h,E?Math.min(d,M):d,E?Math.max(j,M):j,i),to(h,d,$),j!==d&&to(h,j,J)),J=$=void 0,W=h)):(ti(h,d=Math.round(n.toPixels(l,!0)),j,i),to(h,d,i))),Z=g&&!_,i%5e4==0&&(t.boost&&t.boost.copy?t.boost.copy():t.chart.boost&&t.chart.boost.copy&&t.chart.boost.copy())),!s},function(){let i=o.loadingDiv,s=o.loadingShown;te(),t.canvasToSVG(),l.timeRendering&&console.timeEnd("canvas rendering"),tR(t,"renderedCanvas"),s&&(i.style.transition="opacity 250ms",i.opacity=0,o.loadingShown=!1,e=setTimeout(function(){i.parentNode&&i.parentNode.removeChild(i),o.loadingDiv=o.loadingSpan=null},250)),delete t.buildKDTree,t.buildKDTree()},o.renderer.forExport?Number.MAX_VALUE:void 0)}function u(t,e,i,s){t.moveTo(e,i),t.arc(e,i,s,0,2*Math.PI,!1)}function m(t,e,i,s){t.rect(e-s,i-s,2*s,2*s)}function p(){let t=this.chart,e=this.getContext(),i=this.chart.inverted,s=this.xAxis,o=this.yAxis;e?(this.points.forEach(r=>{let n;let a=r.plotY;if(void 0!==a&&!isNaN(a)&&null!==r.y&&e){let{x:a=0,y:l=0,width:h=0,height:d=0}=r.shapeArgs||{};n=t.styledMode?r.series.colorAttribs(r):r.series.pointAttribs(r),e.fillStyle=n.fill,i?e.fillRect(o.len-l+s.left,s.len-a+o.top,-d,-h):e.fillRect(a+s.left,l+o.top,h,d)}}),this.canvasToSVG()):this.chart.showLoading("Your browser doesn't support HTML5 canvas, <br>please use a modern browser")}t.compose=function(t,e,i){let d=e.prototype;if(!d.renderCanvas){let{area:e,bubble:f,column:b,heatmap:x,scatter:A}=i;if(t.prototype.callbacks.push(t=>{tk(t,"predraw",a),tk(t,"render",n)}),d.canvasToSVG=l,d.cvsLineTo=h,d.getContext=c,d.renderCanvas=g,e){let t=e.prototype;t.cvsDrawPoint=s,t.fill=!0,t.fillOpacity=!0,t.sampling=!0}if(f){let t=f.prototype;t.cvsMarkerCircle=o,t.cvsStrokeBatch=1}if(b){let t=b.prototype;t.cvsDrawPoint=r,t.fill=!0,t.sampling=!0}if(x&&tN(x.prototype,"drawPoints",p),A){let t=A.prototype;t.cvsMarkerCircle=u,t.cvsMarkerSquare=m,t.fill=!0}}}}(o||(o={}));let t_=o,tz=d();tz.initCanvasBoost=function(){t_.compose(tz.Chart,tz.Series,tz.seriesTypes)};let tD=d();return l.default})());
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Highcharts JS v12.0.1 (2024-11-28)
2
+ * @license Highcharts JS v12.0.2 (2024-12-04)
3
3
  * @module highcharts/modules/boost-canvas
4
4
  * @requires highcharts
5
5
  *
@@ -12,14 +12,14 @@
12
12
  */
13
13
  (function webpackUniversalModuleDefinition(root, factory) {
14
14
  if(typeof exports === 'object' && typeof module === 'object')
15
- module.exports = factory(require("highcharts"), require("highcharts")["Color"]);
15
+ module.exports = factory(root["_Highcharts"], root["_Highcharts"]["Color"]);
16
16
  else if(typeof define === 'function' && define.amd)
17
- define("highcharts/boost-canvas", [["highcharts/highcharts"], ["highcharts/highcharts","Color"]], factory);
17
+ define("highcharts/modules/boost-canvas", ["highcharts/highcharts"], function (amd1) {return factory(amd1,amd1["Color"]);});
18
18
  else if(typeof exports === 'object')
19
- exports["highcharts/boost-canvas"] = factory(require("highcharts"), require("highcharts")["Color"]);
19
+ exports["highcharts/modules/boost-canvas"] = factory(root["_Highcharts"], root["_Highcharts"]["Color"]);
20
20
  else
21
21
  root["Highcharts"] = factory(root["Highcharts"], root["Highcharts"]["Color"]);
22
- })(this, (__WEBPACK_EXTERNAL_MODULE__944__, __WEBPACK_EXTERNAL_MODULE__620__) => {
22
+ })(typeof window === 'undefined' ? this : window, (__WEBPACK_EXTERNAL_MODULE__944__, __WEBPACK_EXTERNAL_MODULE__620__) => {
23
23
  return /******/ (() => { // webpackBootstrap
24
24
  /******/ "use strict";
25
25
  /******/ var __webpack_modules__ = ({
@@ -1262,7 +1262,10 @@ class WGLRenderer {
1262
1262
  *
1263
1263
  * */
1264
1264
  constructor(postRenderCallback) {
1265
- // The data to render - array of coordinates
1265
+ /**
1266
+ * The data to render - array of coordinates.
1267
+ * Repeating sequence of [x, y, checkThreshold, pointSize].
1268
+ */
1266
1269
  this.data = [];
1267
1270
  // Height of our viewport in pixels
1268
1271
  this.height = 0;
@@ -1686,6 +1689,10 @@ class WGLRenderer {
1686
1689
  typeof yMax !== 'undefined') {
1687
1690
  isYInside = y >= yMin && y <= yMax;
1688
1691
  }
1692
+ // Do not render points outside the zoomed range (#19701)
1693
+ if (!sorted && !isYInside) {
1694
+ continue;
1695
+ }
1689
1696
  if (x > xMax && closestRight.x < xMax) {
1690
1697
  closestRight.x = x;
1691
1698
  closestRight.y = y;
@@ -1704,9 +1711,10 @@ class WGLRenderer {
1704
1711
  }
1705
1712
  // The first point before and first after extremes should be
1706
1713
  // rendered (#9962, 19701)
1707
- if (sorted &&
1708
- (nx >= xMin || x >= xMin) &&
1709
- (px <= xMax || x <= xMax)) {
1714
+ // Make sure series with a single point are rendered (#21897)
1715
+ if (sorted && ((nx >= xMin || x >= xMin) &&
1716
+ (px <= xMax || x <= xMax)) ||
1717
+ !sorted && ((x >= xMin) && (x <= xMax))) {
1710
1718
  isXInside = true;
1711
1719
  }
1712
1720
  if (!isXInside && !nextInside && !prevInside) {
@@ -2908,7 +2916,10 @@ function getPoint(series, boostPoint) {
2908
2916
  * @private
2909
2917
  */
2910
2918
  function scatterProcessData(force) {
2911
- var _a, _b, _c, _d;
2919
+ var _a,
2920
+ _b,
2921
+ _c,
2922
+ _d;
2912
2923
  const series = this, { options, xAxis, yAxis } = series;
2913
2924
  // Process only on changes
2914
2925
  if (!series.isDirty &&
package/modules/boost.js CHANGED
@@ -1,5 +1,5 @@
1
1
  !/**
2
- * Highcharts JS v12.0.1 (2024-11-28)
2
+ * Highcharts JS v12.0.2 (2024-12-04)
3
3
  * @module highcharts/modules/boost
4
4
  * @requires highcharts
5
5
  *
@@ -10,4 +10,4 @@
10
10
  *
11
11
  * License: www.highcharts.com/license
12
12
  *
13
- * */function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("highcharts"),require("highcharts").Color):"function"==typeof define&&define.amd?define("highcharts/boost",[["highcharts/highcharts"],["highcharts/highcharts","Color"]],t):"object"==typeof exports?exports["highcharts/boost"]=t(require("highcharts"),require("highcharts").Color):e.Highcharts=t(e.Highcharts,e.Highcharts.Color)}(this,(e,t)=>(()=>{"use strict";let i,r;var s={620:e=>{e.exports=t},944:t=>{t.exports=e}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={exports:{}};return s[e](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var a={};n.d(a,{default:()=>eU});var l=n(944),h=/*#__PURE__*/n.n(l);let d=["area","areaspline","arearange","column","columnrange","bar","line","scatter","heatmap","bubble","treemap"],f={};d.forEach(e=>{f[e]=!0});let{composed:u}=h(),{addEvent:g,pick:m,pushUnique:c}=h();function p(e){let t=e.series,i=e.boost=e.boost||{},r=e.options.boost||{},s=m(r.seriesThreshold,50);if(t.length>=s)return!0;if(1===t.length)return!1;let o=r.allowForce;if(void 0===o){for(let t of(o=!0,e.xAxis))if(m(t.min,-1/0)>m(t.dataMin,-1/0)||m(t.max,1/0)<m(t.dataMax,1/0)){o=!1;break}}if(void 0!==i.forceChartBoost){if(o)return i.forceChartBoost;i.forceChartBoost=void 0}let n=0,a=0,l;for(let e of t)0!==(l=e.options).boostThreshold&&!1!==e.visible&&"heatmap"!==e.type&&(f[e.type]&&++n,function(...e){let t=-Number.MAX_VALUE;return e.forEach(e=>{if(null!=e&&void 0!==e.length&&e.length>0)return t=e.length,!0}),t}(e.getColumn("x",!0),l.data,e.points)>=(l.boostThreshold||Number.MAX_VALUE)&&++a);return i.forceChartBoost=o&&(n===t.length&&a===n||a>5),i.forceChartBoost}function b(e){function t(){e.boost&&e.boost.wgl&&p(e)&&e.boost.wgl.render(e)}g(e,"predraw",function(){e.boost=e.boost||{},e.boost.forceChartBoost=void 0,e.boosted=!1,e.axes.some(e=>e.isPanning)||e.boost.clear?.(),e.boost.canvas&&e.boost.wgl&&p(e)&&e.boost.wgl.allocateBuffer(e),e.boost.markerGroup&&e.xAxis&&e.xAxis.length>0&&e.yAxis&&e.yAxis.length>0&&e.boost.markerGroup.translate(e.xAxis[0].pos,e.yAxis[0].pos)}),g(e,"load",t,{order:-1}),g(e,"redraw",t);let i=-1,r=-1;g(e.pointer,"afterGetHoverData",t=>{let s=t.hoverPoint?.series;if(e.boost=e.boost||{},e.boost.markerGroup&&s){let t=e.inverted?s.yAxis:s.xAxis,o=e.inverted?s.xAxis:s.yAxis;(t&&t.pos!==i||o&&o.pos!==r)&&(e.series.forEach(e=>{e.halo?.hide()}),e.boost.markerGroup.translate(t.pos,o.pos),i=t.pos,r=o.pos)}})}let x={compose:function(e,t){return t&&c(u,"Boost.Chart")&&e.prototype.callbacks.push(b),e},getBoostClipRect:function(e,t){let i=e.navigator,r={x:e.plotLeft,y:e.plotTop,width:e.plotWidth,height:e.plotHeight};if(i&&e.inverted?(r.width+=i.top+i.height,i.opposite||(r.x=i.left)):i&&!e.inverted&&(r.height=i.top+i.height-e.plotTop),t.getClipBox){let{xAxis:i,yAxis:s}=t;if(r=t.getClipBox(),e.inverted){let e=r.width;r.width=r.height,r.height=e,r.x=s.pos,r.y=i.pos}else r.x=i.pos,r.y=s.pos}if(t===e){let t=e.inverted?e.xAxis:e.yAxis;t.length<=1&&(r.y=Math.min(t[0].pos,r.y),r.height=t[0].pos-e.plotTop+t[0].len)}return r},isChartSeriesBoosting:p};var A=n(620),y=/*#__PURE__*/n.n(A);let v={area:"LINES",arearange:"LINES",areaspline:"LINES",column:"LINES",columnrange:"LINES",bar:"LINES",line:"LINE_STRIP",scatter:"POINTS",heatmap:"TRIANGLES",treemap:"TRIANGLES",bubble:"POINTS"},{clamp:P,error:T,pick:C}=h(),k=class{constructor(e){if(this.errors=[],this.uLocations={},this.gl=e,e&&!this.createShader())return}bind(){this.gl&&this.shaderProgram&&this.gl.useProgram(this.shaderProgram)}createShader(){let e=this.stringToProgram("#version 100\n#define LN10 2.302585092994046\nprecision highp float;\nattribute vec4 aVertexPosition;\nattribute vec4 aColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform mat4 uPMatrix;\nuniform float pSize;\nuniform float translatedThreshold;\nuniform bool hasThreshold;\nuniform bool skipTranslation;\nuniform float xAxisTrans;\nuniform float xAxisMin;\nuniform float xAxisMinPad;\nuniform float xAxisPointRange;\nuniform float xAxisLen;\nuniform bool xAxisPostTranslate;\nuniform float xAxisOrdinalSlope;\nuniform float xAxisOrdinalOffset;\nuniform float xAxisPos;\nuniform bool xAxisCVSCoord;\nuniform bool xAxisIsLog;\nuniform bool xAxisReversed;\nuniform float yAxisTrans;\nuniform float yAxisMin;\nuniform float yAxisMinPad;\nuniform float yAxisPointRange;\nuniform float yAxisLen;\nuniform bool yAxisPostTranslate;\nuniform float yAxisOrdinalSlope;\nuniform float yAxisOrdinalOffset;\nuniform float yAxisPos;\nuniform bool yAxisCVSCoord;\nuniform bool yAxisIsLog;\nuniform bool yAxisReversed;\nuniform bool isBubble;\nuniform bool bubbleSizeByArea;\nuniform float bubbleZMin;\nuniform float bubbleZMax;\nuniform float bubbleZThreshold;\nuniform float bubbleMinSize;\nuniform float bubbleMaxSize;\nuniform bool bubbleSizeAbs;\nuniform bool isInverted;\nfloat bubbleRadius(){\nfloat value = aVertexPosition.w;\nfloat zMax = bubbleZMax;\nfloat zMin = bubbleZMin;\nfloat radius = 0.0;\nfloat pos = 0.0;\nfloat zRange = zMax - zMin;\nif (bubbleSizeAbs){\nvalue = value - bubbleZThreshold;\nzMax = max(zMax - bubbleZThreshold, zMin - bubbleZThreshold);\nzMin = 0.0;\n}\nif (value < zMin){\nradius = bubbleZMin / 2.0 - 1.0;\n} else {\npos = zRange > 0.0 ? (value - zMin) / zRange : 0.5;\nif (bubbleSizeByArea && pos > 0.0){\npos = sqrt(pos);\n}\nradius = ceil(bubbleMinSize + pos * (bubbleMaxSize - bubbleMinSize)) / 2.0;\n}\nreturn radius * 2.0;\n}\nfloat translate(float val,\nfloat pointPlacement,\nfloat localA,\nfloat localMin,\nfloat minPixelPadding,\nfloat pointRange,\nfloat len,\nbool cvsCoord,\nbool isLog,\nbool reversed\n){\nfloat sign = 1.0;\nfloat cvsOffset = 0.0;\nif (cvsCoord) {\nsign *= -1.0;\ncvsOffset = len;\n}\nif (isLog) {\nval = log(val) / LN10;\n}\nif (reversed) {\nsign *= -1.0;\ncvsOffset -= sign * len;\n}\nreturn sign * (val - localMin) * localA + cvsOffset + \n(sign * minPixelPadding);\n}\nfloat xToPixels(float value) {\nif (skipTranslation){\nreturn value;// + xAxisPos;\n}\nreturn translate(value, 0.0, xAxisTrans, xAxisMin, xAxisMinPad, xAxisPointRange, xAxisLen, xAxisCVSCoord, xAxisIsLog, xAxisReversed);// + xAxisPos;\n}\nfloat yToPixels(float value, float checkTreshold) {\nfloat v;\nif (skipTranslation){\nv = value;// + yAxisPos;\n} else {\nv = translate(value, 0.0, yAxisTrans, yAxisMin, yAxisMinPad, yAxisPointRange, yAxisLen, yAxisCVSCoord, yAxisIsLog, yAxisReversed);// + yAxisPos;\nif (v > yAxisLen) {\nv = yAxisLen;\n}\n}\nif (checkTreshold > 0.0 && hasThreshold) {\nv = min(v, translatedThreshold);\n}\nreturn v;\n}\nvoid main(void) {\nif (isBubble){\ngl_PointSize = bubbleRadius();\n} else {\ngl_PointSize = pSize;\n}\nvColor = aColor;\nif (skipTranslation && isInverted) {\ngl_Position = uPMatrix * vec4(aVertexPosition.y + yAxisPos, aVertexPosition.x + xAxisPos, 0.0, 1.0);\n} else if (isInverted) {\ngl_Position = uPMatrix * vec4(yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, xToPixels(aVertexPosition.x) + xAxisPos, 0.0, 1.0);\n} else {\ngl_Position = uPMatrix * vec4(xToPixels(aVertexPosition.x) + xAxisPos, yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, 0.0, 1.0);\n}\n}","vertex"),t=this.stringToProgram("precision highp float;\nuniform vec4 fillColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform sampler2D uSampler;\nuniform bool isCircle;\nuniform bool hasColor;\nvoid main(void) {\nvec4 col = fillColor;\nvec4 tcol = texture2D(uSampler, gl_PointCoord.st);\nif (hasColor) {\ncol = vColor;\n}\nif (isCircle) {\ncol *= tcol;\nif (tcol.r < 0.0) {\ndiscard;\n} else {\ngl_FragColor = col;\n}\n} else {\ngl_FragColor = col;\n}\n}","fragment"),i=e=>this.gl.getUniformLocation(this.shaderProgram,e);return e&&t?(this.shaderProgram=this.gl.createProgram(),this.gl.attachShader(this.shaderProgram,e),this.gl.attachShader(this.shaderProgram,t),this.gl.linkProgram(this.shaderProgram),this.gl.getProgramParameter(this.shaderProgram,this.gl.LINK_STATUS))?(this.gl.useProgram(this.shaderProgram),this.gl.bindAttribLocation(this.shaderProgram,0,"aVertexPosition"),this.pUniform=i("uPMatrix"),this.psUniform=i("pSize"),this.fcUniform=i("fillColor"),this.isBubbleUniform=i("isBubble"),this.bubbleSizeAbsUniform=i("bubbleSizeAbs"),this.bubbleSizeAreaUniform=i("bubbleSizeByArea"),this.uSamplerUniform=i("uSampler"),this.skipTranslationUniform=i("skipTranslation"),this.isCircleUniform=i("isCircle"),this.isInverted=i("isInverted"),!0):(this.errors.push(this.gl.getProgramInfoLog(this.shaderProgram)),this.handleErrors(),this.shaderProgram=!1,!1):(this.shaderProgram=!1,this.handleErrors(),!1)}handleErrors(){this.errors.length&&T("[highcharts boost] shader error - "+this.errors.join("\n"))}stringToProgram(e,t){let i=this.gl.createShader("vertex"===t?this.gl.VERTEX_SHADER:this.gl.FRAGMENT_SHADER);return(this.gl.shaderSource(i,e),this.gl.compileShader(i),this.gl.getShaderParameter(i,this.gl.COMPILE_STATUS))?i:(this.errors.push("when compiling "+t+" shader:\n"+this.gl.getShaderInfoLog(i)),!1)}destroy(){this.gl&&this.shaderProgram&&(this.gl.deleteProgram(this.shaderProgram),this.shaderProgram=!1)}fillColorUniform(){return this.fcUniform}getProgram(){return this.shaderProgram}pointSizeUniform(){return this.psUniform}perspectiveUniform(){return this.pUniform}reset(){this.gl&&this.shaderProgram&&(this.gl.uniform1i(this.isBubbleUniform,0),this.gl.uniform1i(this.isCircleUniform,0))}setBubbleUniforms(e,t,i,r=1){let s=e.options,o=Number.MAX_VALUE,n=-Number.MAX_VALUE;if(this.gl&&this.shaderProgram&&e.is("bubble")){let a=e.getPxExtremes();o=C(s.zMin,P(t,!1===s.displayNegative?s.zThreshold:-Number.MAX_VALUE,o)),n=C(s.zMax,Math.max(n,i)),this.gl.uniform1i(this.isBubbleUniform,1),this.gl.uniform1i(this.isCircleUniform,1),this.gl.uniform1i(this.bubbleSizeAreaUniform,"width"!==e.options.sizeBy),this.gl.uniform1i(this.bubbleSizeAbsUniform,e.options.sizeByAbsoluteValue),this.setUniform("bubbleMinSize",a.minPxSize*r),this.setUniform("bubbleMaxSize",a.maxPxSize*r),this.setUniform("bubbleZMin",o),this.setUniform("bubbleZMax",n),this.setUniform("bubbleZThreshold",e.options.zThreshold)}}setColor(e){this.gl&&this.shaderProgram&&this.gl.uniform4f(this.fcUniform,e[0]/255,e[1]/255,e[2]/255,e[3])}setDrawAsCircle(e){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.isCircleUniform,e?1:0)}setInverted(e){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.isInverted,e)}setPMatrix(e){this.gl&&this.shaderProgram&&this.gl.uniformMatrix4fv(this.pUniform,!1,e)}setPointSize(e){this.gl&&this.shaderProgram&&this.gl.uniform1f(this.psUniform,e)}setSkipTranslation(e){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.skipTranslationUniform,!0===e?1:0)}setTexture(e){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.uSamplerUniform,e)}setUniform(e,t){if(this.gl&&this.shaderProgram){let i=this.uLocations[e]=this.uLocations[e]||this.gl.getUniformLocation(this.shaderProgram,e);this.gl.uniform1f(i,t)}}},E=class{constructor(e,t,i){this.buffer=!1,this.iterator=0,this.preAllocated=!1,this.vertAttribute=!1,this.components=i||2,this.dataComponents=i,this.gl=e,this.shader=t}allocate(e){this.iterator=-1,this.preAllocated=new Float32Array(4*e)}bind(){if(!this.buffer)return!1;this.gl.vertexAttribPointer(this.vertAttribute,this.components,this.gl.FLOAT,!1,0,0)}build(e,t,i){let r;return(this.data=e||[],this.data&&0!==this.data.length||this.preAllocated)?(this.components=i||this.components,this.buffer&&this.gl.deleteBuffer(this.buffer),this.preAllocated||(r=new Float32Array(this.data)),this.buffer=this.gl.createBuffer(),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.buffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,this.preAllocated||r,this.gl.STATIC_DRAW),this.vertAttribute=this.gl.getAttribLocation(this.shader.getProgram(),t),this.gl.enableVertexAttribArray(this.vertAttribute),r=!1,!0):(this.destroy(),!1)}destroy(){this.buffer&&(this.gl.deleteBuffer(this.buffer),this.buffer=!1,this.vertAttribute=!1),this.iterator=0,this.components=this.dataComponents||2,this.data=[]}push(e,t,i,r){this.preAllocated&&(this.preAllocated[++this.iterator]=e,this.preAllocated[++this.iterator]=t,this.preAllocated[++this.iterator]=i,this.preAllocated[++this.iterator]=r)}render(e,t,i){let r=this.preAllocated?this.preAllocated.length:this.data.length;return!!this.buffer&&!!r&&((!e||e>r||e<0)&&(e=0),(!t||t>r)&&(t=r),!(e>=t)&&(i=i||"POINTS",this.gl.drawArrays(this.gl[i],e/this.components,(t-e)/this.components),!0))}},{parse:S}=y(),{doc:M,win:w}=h(),{isNumber:U,isObject:R,merge:L,objectEach:z,pick:_}=h(),N={column:!0,columnrange:!0,bar:!0,area:!0,areaspline:!0,arearange:!0},D={scatter:!0,bubble:!0},G=["webgl","experimental-webgl","moz-webgl","webkit-3d"];class I{static orthoMatrix(e,t){return[2/e,0,0,0,0,-(2/t),0,0,0,0,-2,0,-1,1,-1,1]}static seriesPointCount(e){let t,i,r;return e.boosted?(t=!!e.options.stacking,i=(e.getColumn("x").length?e.getColumn("x"):void 0)||e.options.xData||e.getColumn("x",!0),r=(t?e.data:i||e.options.data).length,"treemap"===e.type?r*=12:"heatmap"===e.type?r*=6:N[e.type]&&(r*=2),r):0}constructor(e){this.data=[],this.height=0,this.isInited=!1,this.markerData=[],this.series=[],this.textureHandles={},this.width=0,this.postRenderCallback=e,this.settings={pointSize:1,lineWidth:1,fillColor:"#AA00AA",useAlpha:!0,usePreallocated:!1,useGPUTranslations:!1,debug:{timeRendering:!1,timeSeriesProcessing:!1,timeSetup:!1,timeBufferCopy:!1,timeKDTree:!1,showSkipSummary:!1}}}getPixelRatio(){return this.settings.pixelRatio||w.devicePixelRatio||1}setOptions(e){"pixelRatio"in e||(e.pixelRatio=1),L(!0,this.settings,e)}allocateBuffer(e){let t=this.vbuffer,i=0;this.settings.usePreallocated&&(e.series.forEach(e=>{e.boosted&&(i+=I.seriesPointCount(e))}),t&&t.allocate(i))}allocateBufferForSingleSeries(e){let t=this.vbuffer,i=0;this.settings.usePreallocated&&(e.boosted&&(i=I.seriesPointCount(e)),t&&t.allocate(i))}clear(){let e=this.gl;e&&e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT)}pushSeriesData(e,t){let i=this.data,r=this.settings,s=this.vbuffer,o=e.pointArrayMap&&"low,high"===e.pointArrayMap.join(","),{chart:n,options:a,sorted:l,xAxis:h,yAxis:d}=e,f=!!a.stacking,u=a.data,g=e.xAxis.getExtremes(),m=g.min-(e.xAxis.minPointOffset||0),c=g.max+(e.xAxis.minPointOffset||0),p=e.yAxis.getExtremes(),b=p.min-(e.yAxis.minPointOffset||0),x=p.max+(e.yAxis.minPointOffset||0),A=(e.getColumn("x").length?e.getColumn("x"):void 0)||a.xData||e.getColumn("x",!0),y=(e.getColumn("y").length?e.getColumn("y"):void 0)||a.yData||e.getColumn("y",!0),v=(e.getColumn("z").length?e.getColumn("z"):void 0)||a.zData||e.getColumn("z",!0),P=!A||0===A.length,T=a.connectNulls,C=e.points||!1,k=f?e.data:A||u,E={x:Number.MAX_VALUE,y:0},M={x:-Number.MAX_VALUE,y:0},w=void 0===n.index,U=N[e.type],L=a.zoneAxis||"y",z=a.zones||!1,_=a.threshold,D=this.getPixelRatio(),G=e.chart.plotWidth,I=!1,B=!1,O,V,X=0,F=!1,H,q,W,Y,j=-1,Z=!1,K=!1,Q,J=!1,$=!1,ee=!1,et=!1,ei=!0,er=!0,es,eo=!1,en=!1,ea=0;if(a.boostData&&a.boostData.length>0)return;a.gapSize&&(en="value"!==a.gapUnit?a.gapSize*e.closestPointRange:a.gapSize),z&&(es=[],z.forEach((e,t)=>{if(e.color){let i=S(e.color).rgba;i[0]/=255,i[1]/=255,i[2]/=255,es[t]=i,eo||void 0!==e.value||(eo=i)}}),eo||(eo=S(e.pointAttribs&&e.pointAttribs().fill||e.color).rgba,eo[0]/=255,eo[1]/=255,eo[2]/=255)),n.inverted&&(G=e.chart.plotHeight),e.closestPointRangePx=Number.MAX_VALUE;let el=e=>{e&&(t.colorData.push(e[0]),t.colorData.push(e[1]),t.colorData.push(e[2]),t.colorData.push(e[3]))},eh=(e,o,n,a=1,l)=>{el(l),1!==D&&(!r.useGPUTranslations||t.skipTranslation)&&(e*=D,o*=D,a*=D),r.usePreallocated&&s?(s.push(e,o,n?1:0,a),ea+=4):(i.push(e),i.push(o),i.push(n?D:0),i.push(a))},ed=()=>{t.segments.length&&(t.segments[t.segments.length-1].to=i.length||ea)},ef=()=>{t.segments.length&&t.segments[t.segments.length-1].from===(i.length||ea)||(ed(),t.segments.push({from:i.length||ea}))},eu=(e,t,i,r,s)=>{el(s),eh(e+i,t),el(s),eh(e,t),el(s),eh(e,t+r),el(s),eh(e,t+r),el(s),eh(e+i,t+r),el(s),eh(e+i,t)};if(ef(),C&&C.length>0){t.skipTranslation=!0,t.drawMode="TRIANGLES",C[0].node&&C[0].node.levelDynamic&&C.sort((e,t)=>{if(e.node){if(e.node.levelDynamic>t.node.levelDynamic)return 1;if(e.node.levelDynamic<t.node.levelDynamic)return -1}return 0}),C.forEach(t=>{let i,r;let s=t.plotY;if(void 0!==s&&!isNaN(s)&&null!==t.y&&t.shapeArgs){let{x:s=0,y:o=0,width:a=0,height:l=0}=t.shapeArgs;i=(r=n.styledMode?t.series.colorAttribs(t):r=t.series.pointAttribs(t))["stroke-width"]||0,ee=S(r.fill).rgba,ee[0]/=255,ee[1]/=255,ee[2]/=255,e.is("treemap")&&(i=i||1,V=S(r.stroke).rgba,V[0]/=255,V[1]/=255,V[2]/=255,eu(s,o,a,l,V),i/=2),e.is("heatmap")&&n.inverted&&(s=h.len-s,o=d.len-o,a=-a,l=-l),eu(s+i,o+i,a-2*i,l-2*i,ee)}}),ed();return}for(;j<k.length-1;){if(void 0===(W=k[++j]))continue;if(w)break;let i=u&&u[j];if(!P&&R(i,!0)&&i.color&&(ee=S(i.color).rgba,ee[0]/=255,ee[1]/=255,ee[2]/=255),P?(H=W[0],q=W[1],k[j+1]&&(K=k[j+1][0]),k[j-1]&&(Z=k[j-1][0]),W.length>=3&&(Y=W[2],W[2]>t.zMax&&(t.zMax=W[2]),W[2]<t.zMin&&(t.zMin=W[2]))):(H=W,q=y?.[j],k[j+1]&&(K=k[j+1]),k[j-1]&&(Z=k[j-1]),v&&v.length&&(Y=v[j],v[j]>t.zMax&&(t.zMax=v[j]),v[j]<t.zMin&&(t.zMin=v[j]))),!T&&(null===H||null===q)){ef();continue}if(K&&K>=m&&K<=c&&(J=!0),Z&&Z>=m&&Z<=c&&($=!0),o?(P&&(q=W.slice(1,3)),Q=e.getColumn("low",!0)?.[j],q=e.getColumn("high",!0)?.[j]||0):f&&(H=W.x,Q=(q=W.stackY)-W.y),null!=b&&null!=x&&(ei=q>=b&&q<=x),H>c&&M.x<c&&(M.x=H,M.y=q),H<m&&E.x>m&&(E.x=H,E.y=q),null!==q||!T){if(null===q||!ei&&!J&&!$){ef();continue}if(l&&(K>=m||H>=m)&&(Z<=c||H<=c)&&(et=!0),et||J||$){if(en&&H-Z>en&&ef(),z){let e;z.some((t,i)=>{let r=z[i-1];return"x"===L?void 0!==t.value&&H<=t.value&&(es[i]&&(!r||H>=r.value)&&(e=es[i]),!0):void 0!==t.value&&q<=t.value&&(es[i]&&(!r||q>=r.value)&&(e=es[i]),!0)}),ee=e||eo||ee}if(r.useGPUTranslations||(t.skipTranslation=!0,H=h.toPixels(H,!0),q=d.toPixels(q,!0),!(H>G)||"POINTS"!==t.drawMode)){if(t.hasMarkers&&et&&!1!==I&&(e.closestPointRangePx=Math.min(e.closestPointRangePx,Math.abs(H-I))),!r.useGPUTranslations&&!r.usePreallocated&&I&&1>Math.abs(H-I)&&B&&1>Math.abs(q-B)){r.debug.showSkipSummary&&++X;continue}U&&(O=Q||0,(!1===Q||void 0===Q)&&(O=q<0?q:0),(o||f)&&!d.logarithmic||(O=Math.max(null===_?b:_,b)),r.useGPUTranslations||(O=d.toPixels(O,!0)),eh(H,O,0,0,ee)),a.step&&!er&&eh(H,B,0,2,ee),eh(H,q,0,"bubble"===e.type?Y||1:2,ee),I=H,B=q,F=!0,er=!1}}}}r.debug.showSkipSummary&&console.log("skipped points:",X);let eg=(e,i)=>{if(r.useGPUTranslations||(t.skipTranslation=!0,e.x=h.toPixels(e.x,!0),e.y=d.toPixels(e.y,!0)),i){this.data=[e.x,e.y,0,2].concat(this.data);return}eh(e.x,e.y,0,2)};!F&&!1!==T&&"line_strip"===e.drawMode&&(E.x<Number.MAX_VALUE&&eg(E,!0),M.x>-Number.MAX_VALUE&&eg(M)),ed()}pushSeries(e){let t=this.markerData,i=this.series,r=this.settings;i.length>0&&i[i.length-1].hasMarkers&&(i[i.length-1].markerTo=t.length),r.debug.timeSeriesProcessing&&console.time("building "+e.type+" series");let s={segments:[],markerFrom:t.length,colorData:[],series:e,zMin:Number.MAX_VALUE,zMax:-Number.MAX_VALUE,hasMarkers:!!e.options.marker&&!1!==e.options.marker.enabled,showMarkers:!0,drawMode:v[e.type]||"LINE_STRIP"};e.index>=i.length?i.push(s):i[e.index]=s,this.pushSeriesData(e,s),r.debug.timeSeriesProcessing&&console.timeEnd("building "+e.type+" series")}flush(){let e=this.vbuffer;this.data=[],this.markerData=[],this.series=[],e&&e.destroy()}setXAxis(e){let t=this.shader;if(!t)return;let i=this.getPixelRatio();t.setUniform("xAxisTrans",e.transA*i),t.setUniform("xAxisMin",e.min),t.setUniform("xAxisMinPad",e.minPixelPadding*i),t.setUniform("xAxisPointRange",e.pointRange),t.setUniform("xAxisLen",e.len*i),t.setUniform("xAxisPos",e.pos*i),t.setUniform("xAxisCVSCoord",!e.horiz),t.setUniform("xAxisIsLog",!!e.logarithmic),t.setUniform("xAxisReversed",!!e.reversed)}setYAxis(e){let t=this.shader;if(!t)return;let i=this.getPixelRatio();t.setUniform("yAxisTrans",e.transA*i),t.setUniform("yAxisMin",e.min),t.setUniform("yAxisMinPad",e.minPixelPadding*i),t.setUniform("yAxisPointRange",e.pointRange),t.setUniform("yAxisLen",e.len*i),t.setUniform("yAxisPos",e.pos*i),t.setUniform("yAxisCVSCoord",!e.horiz),t.setUniform("yAxisIsLog",!!e.logarithmic),t.setUniform("yAxisReversed",!!e.reversed)}setThreshold(e,t){let i=this.shader;i&&(i.setUniform("hasThreshold",e),i.setUniform("translatedThreshold",t))}renderChart(e){let t=this.gl,i=this.settings,r=this.shader,s=this.vbuffer,o=this.getPixelRatio();if(!e)return!1;this.width=e.chartWidth*o,this.height=e.chartHeight*o;let n=this.height,a=this.width;if(!t||!r||!a||!n)return!1;i.debug.timeRendering&&console.time("gl rendering"),t.canvas.width=a,t.canvas.height=n,r.bind(),t.viewport(0,0,a,n),r.setPMatrix(I.orthoMatrix(a,n)),i.lineWidth>1&&!h().isMS&&t.lineWidth(i.lineWidth),s&&(s.build(this.data,"aVertexPosition",4),s.bind()),r.setInverted(e.inverted),this.series.forEach((n,a)=>{let l=n.series.options,h=l.marker,d=void 0!==l.lineWidth?l.lineWidth:1,f=l.threshold,u=U(f),g=n.series.yAxis.getThreshold(f),m=_(l.marker?l.marker.enabled:null,!!n.series.xAxis.isRadial||null,n.series.closestPointRangePx>2*((l.marker?l.marker.radius:10)||10)),c=this.textureHandles[h&&h.symbol||n.series.symbol]||this.textureHandles.circle,p,b,x,A=[];if(0!==n.segments.length&&n.segments[0].from!==n.segments[0].to&&(c.isReady&&(t.bindTexture(t.TEXTURE_2D,c.handle),r.setTexture(c.handle)),e.styledMode?n.series.markerGroup===n.series.chart.boost?.markerGroup?(delete n.series.markerGroup,n.series.markerGroup=n.series.plotGroup("markerGroup","markers","visible",1,e.seriesGroup).addClass("highcharts-tracker"),x=n.series.markerGroup.getStyle("fill"),n.series.markerGroup.destroy(),n.series.markerGroup=n.series.chart.boost?.markerGroup):x=n.series.markerGroup?.getStyle("fill"):(x="POINTS"===n.drawMode&&n.series.pointAttribs&&n.series.pointAttribs().fill||n.series.color,l.colorByPoint&&(x=n.series.chart.options.colors[a])),n.series.fillOpacity&&l.fillOpacity&&(x=new(y())(x).setOpacity(_(l.fillOpacity,1)).get()),A=S(x).rgba,i.useAlpha||(A[3]=1),"add"===l.boostBlending?(t.blendFunc(t.SRC_ALPHA,t.ONE),t.blendEquation(t.FUNC_ADD)):"mult"===l.boostBlending||"multiply"===l.boostBlending?t.blendFunc(t.DST_COLOR,t.ZERO):"darken"===l.boostBlending?(t.blendFunc(t.ONE,t.ONE),t.blendEquation(t.FUNC_MIN)):t.blendFuncSeparate(t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA),r.reset(),n.colorData.length>0?(r.setUniform("hasColor",1),(b=new E(t,r)).build(Array(n.segments[0].from).concat(n.colorData),"aColor",4),b.bind()):(r.setUniform("hasColor",0),t.disableVertexAttribArray(t.getAttribLocation(r.getProgram(),"aColor"))),r.setColor(A),this.setXAxis(n.series.xAxis),this.setYAxis(n.series.yAxis),this.setThreshold(u,g),"POINTS"===n.drawMode&&r.setPointSize(2*_(l.marker&&l.marker.radius,.5)*o),r.setSkipTranslation(n.skipTranslation),"bubble"===n.series.type&&r.setBubbleUniforms(n.series,n.zMin,n.zMax,o),r.setDrawAsCircle(D[n.series.type]||!1),s)){if(d>0||"LINE_STRIP"!==n.drawMode)for(p=0;p<n.segments.length;p++)s.render(n.segments[p].from,n.segments[p].to,n.drawMode);if(n.hasMarkers&&m)for(r.setPointSize(2*_(l.marker&&l.marker.radius,5)*o),r.setDrawAsCircle(!0),p=0;p<n.segments.length;p++)s.render(n.segments[p].from,n.segments[p].to,"POINTS")}}),i.debug.timeRendering&&console.timeEnd("gl rendering"),this.postRenderCallback&&this.postRenderCallback(this),this.flush()}render(e){if(this.clear(),e.renderer.forExport)return this.renderChart(e);this.isInited?this.renderChart(e):setTimeout(()=>{this.render(e)},1)}setSize(e,t){let i=this.shader;i&&(this.width!==e||this.height!==t)&&(this.width=e,this.height=t,i.bind(),i.setPMatrix(I.orthoMatrix(e,t)))}init(e,t){let i=this.settings;if(this.isInited=!1,!e)return!1;i.debug.timeSetup&&console.time("gl setup");for(let t=0;t<G.length&&(this.gl=e.getContext(G[t],{}),!this.gl);++t);let r=this.gl;if(!r)return!1;t||this.flush(),r.enable(r.BLEND),r.blendFunc(r.SRC_ALPHA,r.ONE_MINUS_SRC_ALPHA),r.disable(r.DEPTH_TEST),r.depthFunc(r.LESS);let s=this.shader=new k(r);if(!s)return!1;this.vbuffer=new E(r,s);let o=(e,t)=>{let i={isReady:!1,texture:M.createElement("canvas"),handle:r.createTexture()},s=i.texture.getContext("2d");this.textureHandles[e]=i,i.texture.width=512,i.texture.height=512,s.mozImageSmoothingEnabled=!1,s.webkitImageSmoothingEnabled=!1,s.msImageSmoothingEnabled=!1,s.imageSmoothingEnabled=!1,s.strokeStyle="rgba(255, 255, 255, 0)",s.fillStyle="#FFF",t(s);try{r.activeTexture(r.TEXTURE0),r.bindTexture(r.TEXTURE_2D,i.handle),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,i.texture),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.bindTexture(r.TEXTURE_2D,null),i.isReady=!0}catch(e){}};return o("circle",e=>{e.beginPath(),e.arc(256,256,256,0,2*Math.PI),e.stroke(),e.fill()}),o("square",e=>{e.fillRect(0,0,512,512)}),o("diamond",e=>{e.beginPath(),e.moveTo(256,0),e.lineTo(512,256),e.lineTo(256,512),e.lineTo(0,256),e.lineTo(256,0),e.fill()}),o("triangle",e=>{e.beginPath(),e.moveTo(0,512),e.lineTo(256,0),e.lineTo(512,512),e.lineTo(0,512),e.fill()}),o("triangle-down",e=>{e.beginPath(),e.moveTo(0,0),e.lineTo(256,512),e.lineTo(512,0),e.lineTo(0,0),e.fill()}),this.isInited=!0,i.debug.timeSetup&&console.timeEnd("gl setup"),!0}destroy(){let e=this.gl,t=this.shader,i=this.vbuffer;this.flush(),i&&i.destroy(),t&&t.destroy(),e&&(z(this.textureHandles,t=>{t.handle&&e.deleteTexture(t.handle)}),e.canvas.width=1,e.canvas.height=1)}}let{getBoostClipRect:B,isChartSeriesBoosting:O}=x,{getOptions:V}=h(),{composed:X,doc:F,noop:H,win:q}=h(),{addEvent:W,destroyObjectProperties:Y,error:j,extend:Z,fireEvent:K,isArray:Q,isNumber:J,pick:$,pushUnique:ee,wrap:et,defined:ei}=h();function er(e,t){let i=t.boost;e&&i&&i.target&&i.canvas&&!O(t.chart)&&e.allocateBufferForSingleSeries(t)}function es(e){return $(e&&e.options&&e.options.boost&&e.options.boost.enabled,!0)}function eo(e,t){let i=e.constructor,s=e.seriesGroup||t.group,o=e.chartWidth,n=e.chartHeight,a=e,l="undefined"!=typeof SVGForeignObjectElement,h=!1;O(e)?a=e:(a=t,h=!!(t.options.events?.click||t.options.point?.events?.click));let d=a.boost=a.boost||{};if(l=!1,r||(r=F.createElement("canvas")),!d.target&&(d.canvas=r,e.renderer.forExport||!l?(a.renderTarget=d.target=e.renderer.image("",0,0,o,n).addClass("highcharts-boost-canvas").add(s),d.clear=function(){d.target.attr({href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="})},d.copy=function(){d.resize(),d.target.attr({href:d.canvas.toDataURL("image/png")})}):(d.targetFo=e.renderer.createElement("foreignObject").add(s),a.renderTarget=d.target=F.createElement("canvas"),d.targetCtx=d.target.getContext("2d"),d.targetFo.element.appendChild(d.target),d.clear=function(){d.target.width=d.canvas.width,d.target.height=d.canvas.height},d.copy=function(){d.target.width=d.canvas.width,d.target.height=d.canvas.height,d.targetCtx.drawImage(d.canvas,0,0)}),d.resize=function(){o=e.chartWidth,n=e.chartHeight,(d.targetFo||d.target).attr({x:0,y:0,width:o,height:n}).css({pointerEvents:h?void 0:"none",mixedBlendMode:"normal",opacity:1}).addClass(h?"highcharts-tracker":""),a instanceof i&&a.boost?.markerGroup?.translate(e.plotLeft,e.plotTop)},d.clipRect=e.renderer.clipRect(),(d.targetFo||d.target).attr({zIndex:t.options.zIndex}),a instanceof i&&(a.boost.markerGroup=a.renderer.g().add(s).translate(t.xAxis.pos,t.yAxis.pos))),d.canvas.width=o,d.canvas.height=n,d.clipRect){let t=B(e,a),i=t.width===e.clipBox.width&&t.height===e.clipBox.height?s:d.targetFo||d.target;d.clipRect.attr(t),i?.clip(d.clipRect)}return d.resize(),d.clear(),!d.wgl&&(d.wgl=new I(e=>{e.settings.debug.timeBufferCopy&&console.time("buffer copy"),d.copy(),e.settings.debug.timeBufferCopy&&console.timeEnd("buffer copy")}),d.wgl.init(d.canvas)||j("[highcharts boost] - unable to init WebGL renderer"),d.wgl.setOptions(e.options.boost||{}),a instanceof i&&d.wgl.allocateBuffer(e)),d.wgl.setSize(o,n),d.wgl}function en(e){let t=e.points;if(t){let e,i;for(i=0;i<t.length;i+=1)(e=t[i])&&e.destroyElements&&e.destroyElements()}for(let t of(["graph","area","tracker"].forEach(t=>{let i=e[t];i&&(e[t]=i.destroy())}),e.zones))Y(t,void 0,!0)}function ea(e,t,i,r,s,o){let n=(s=s||0)+(r=r||3e3),a=!0;for(;a&&s<n&&s<e.length;)a=t(e[s],s),++s;a&&(s<e.length?o?ea(e,t,i,r,s,o):q.requestAnimationFrame?q.requestAnimationFrame(function(){ea(e,t,i,r,s)}):setTimeout(ea,0,e,t,i,r,s):i&&i())}function el(e,t){let i=e.options,r=e.dataTable.modified.rowCount,s=e.xAxis&&e.xAxis.options,o=e.yAxis&&e.yAxis.options,n=e.colorAxis&&e.colorAxis.options;return r>(i.boostThreshold||Number.MAX_VALUE)&&J(o.min)&&J(o.max)&&(!t||J(s.min)&&J(s.max))&&(!n||J(n.min)&&J(n.max))}let eh=(e,t)=>!e.forceCrop&&(O(e.chart)||(t?t.length:0)>=(e.options.boostThreshold||Number.MAX_VALUE));function ed(){let e=this,t=e.chart;t.boost&&t.boost.markerGroup===e.markerGroup&&(e.markerGroup=null),t.hoverPoints&&(t.hoverPoints=t.hoverPoints.filter(function(t){return t.series===e})),t.hoverPoint&&t.hoverPoint.series===e&&(t.hoverPoint=null)}function ef(){let e=this.boost;e&&e.canvas&&e.target&&(e.wgl&&e.wgl.clear(),e.clear&&e.clear())}function eu(e){let t=e.boost;t&&t.canvas&&t.target&&t.wgl&&!O(e.chart)&&t.wgl.render(e.chart)}function eg(e,t){let i=e.options,r=e.xAxis,s=e.pointClass;if(t instanceof s)return t;let o=(e.getColumn("x").length?e.getColumn("x"):void 0)||i.xData||e.getColumn("x",!0)||!1,n=new s(e,(Q(e.options.data)?e.options.data:[])[t.i],o?o[t.i]:void 0);return n.category=$(r.categories?r.categories[n.x]:n.x,n.x),n.key=n.name??n.category,n.dist=t.dist,n.distX=t.distX,n.plotX=t.plotX,n.plotY=t.plotY,n.index=t.i,n.percentage=t.percentage,n.isInside=e.isPointInside(n),n}function em(e){var t,i,r,s;let{options:o,xAxis:n,yAxis:a}=this;if(!this.isDirty&&!n.isDirty&&!a.isDirty&&!e)return!1;this.yAxis.setTickInterval();let l=o.boostThreshold||0,h=o.cropThreshold,d=this.getColumn("x"),f=n.getExtremes(),u=f.max??Number.MAX_VALUE,g=f.min??-Number.MAX_VALUE,m=this.getColumn("y"),c=a.getExtremes(),p=c.max??Number.MAX_VALUE,b=c.min??-Number.MAX_VALUE;if(!this.boosted&&n.old&&a.old&&g>=(n.old.min??-Number.MAX_VALUE)&&u<=(n.old.max??Number.MAX_VALUE)&&b>=(a.old.min??-Number.MAX_VALUE)&&p<=(a.old.max??Number.MAX_VALUE))return this.dataTable.modified.setColumns({x:d,y:m}),!0;let x=this.dataTable.rowCount;if(!l||x<l||h&&!this.forceCrop&&!this.getExtremesFromAll&&!o.getExtremesFromAll&&x<h)return this.dataTable.modified.setColumns({x:d,y:m}),!0;let A=[],y=[],v=[],P=!(J(f.max)||J(f.min)),T=!(J(c.max)||J(c.min)),C=!1,k,E=d[0],S=d[0],M,w=m?.[0],U=m?.[0];for(let e=0,t=d.length;e<t;++e)k=d[e],M=m?.[e],k>=g&&k<=u&&M>=b&&M<=p?(A.push({x:k,y:M}),y.push(k),v.push(M),P&&(E=Math.max(E,k),S=Math.min(S,k)),T&&(w=Math.max(w,M),U=Math.min(U,M))):C=!0;return P&&((t=n.options).max??(t.max=E),(i=n.options).min??(i.min=S)),T&&((r=a.options).max??(r.max=w),(s=a.options).min??(s.min=U)),this.cropped=C,this.cropStart=0,this.dataTable.modified.setColumns({x:y,y:v}),eh(this,y)||(this.processedData=A),!0}function ec(){let e=this.options||{},t=this.chart,r=t.boost,s=this.boost,o=this.xAxis,n=this.yAxis,a=e.xData||this.getColumn("x",!0),l=e.yData||this.getColumn("y",!0),h=this.getColumn("low",!0),d=this.getColumn("high",!0),f=this.processedData||e.data,u=o.getExtremes(),g=u.min-(o.minPointOffset||0),m=u.max+(o.minPointOffset||0),c=n.getExtremes(),p=c.min-(n.minPointOffset||0),b=c.max+(n.minPointOffset||0),x={},A=!!this.sampling,y=e.enableMouseTracking,v=e.threshold,P=this.pointArrayMap&&"low,high"===this.pointArrayMap.join(","),T=!!e.stacking,C=this.cropStart||0,k=this.requireSorting,E=!a,S="x"===e.findNearestPointBy,M=(this.getColumn("x",!0).length?this.getColumn("x",!0):void 0)||this.options.xData||this.getColumn("x",!0),w=$(e.lineWidth,1),U=!1,R,L=n.getThreshold(v),z,_,N,D;if(o.isPanning||n.isPanning||(U=eo(t,this),t.boosted=!0,!this.visible))return;(this.points||this.graph)&&en(this),O(t)?(this.markerGroup&&this.markerGroup!==r?.markerGroup&&this.markerGroup.destroy(),this.markerGroup=r?.markerGroup,s&&s.target&&(this.renderTarget=s.target=s.target.destroy())):(this.markerGroup===r?.markerGroup&&(this.markerGroup=void 0),this.markerGroup=this.plotGroup("markerGroup","markers","visible",1,t.seriesGroup).addClass("highcharts-tracker"));let G=this.points=[],I=(e,r,s,a)=>{let l=!!M&&M[C+s],h=e=>{t.inverted&&(e=o.len-e,r=n.len-r),G.push({destroy:H,x:l,clientX:e,plotX:e,plotY:r,i:C+s,percentage:a})};e=Math.ceil(e),i=S?e:e+","+r,y&&(x[i]?l===M[M.length-1]&&(G.length--,h(e)):(x[i]=!0,h(e)))};this.buildKDTree=H,K(this,"renderCanvas"),this.is("line")&&w>1&&s?.target&&r&&!r.lineWidthFilter&&(r.lineWidthFilter=t.renderer.definition({tagName:"filter",children:[{tagName:"feMorphology",attributes:{operator:"dilate",radius:.25*w}}],attributes:{id:"linewidth"}}),s.target.attr({filter:"url(#linewidth)"})),U&&(er(U,this),U.pushSeries(this),eu(this));let B=U.settings;t.renderer.forExport||(B.debug.timeKDTree&&console.time("kd tree building"),ea(T?this.data.slice(C):a||f,function(e,i){let r=void 0===t.index,s,a,f,u,c,x=!1,y=!0;return!ei(e)||(!r&&(E?(s=e[0],a=e[1]):(s=e,a=l?.[i]),P?(E&&(a=e.slice(1,3)),x=h[i],a=d[i]):T&&(s=e.x,x=(a=e.stackY)-e.y,c=e.percentage),k||(y=(a||0)>=p&&a<=b),null!==a&&s>=g&&s<=m&&y&&(f=o.toPixels(s,!0),A?((void 0===N||f===R)&&(P||(x=a),(void 0===D||a>_)&&(_=a,D=i),(void 0===N||x<z)&&(z=x,N=i)),S&&f===R||(void 0!==N&&(u=n.toPixels(_,!0),L=n.toPixels(z,!0),I(f,u,D,c),L!==u&&I(f,L,N,c)),N=D=void 0,R=f)):I(f,u=Math.ceil(n.toPixels(a,!0)),i,c))),!r)},()=>{K(this,"renderedCanvas"),delete this.buildKDTree,this.options&&this.buildKDTree(),B.debug.timeKDTree&&console.timeEnd("kd tree building")}))}function ep(e){let t=!0;if(this.chart.options&&this.chart.options.boost&&(t=void 0===this.chart.options.boost.enabled||this.chart.options.boost.enabled),!t||!this.boosted)return e.call(this);this.chart.boosted=!0;let i=eo(this.chart,this);i&&(er(i,this),i.pushSeries(this)),eu(this)}function eb(e){if(this.boosted){if(el(this))return{};if(this.xAxis.isPanning||this.yAxis.isPanning)return this}return e.apply(this,[].slice.call(arguments,1))}function ex(e){let t=this.options.data;if(es(this.chart)&&f[this.type]){let i=this.is("scatter")&&!this.is("bubble")&&!this.is("treemap")&&!this.is("heatmap");if(!eh(this,t)||i||this.is("treemap")||this.options.stacking||!el(this,!0)){if(this.boosted&&(this.xAxis?.isPanning||this.yAxis?.isPanning))return;i&&!this.yAxis.treeGrid?em.call(this,arguments[1]):e.apply(this,[].slice.call(arguments,1)),t=this.getColumn("x",!0)}if(this.boosted=eh(this,t),this.boosted){let e;!this.options.data?.length||J(e=this.getFirstValidPoint(this.options.data))||Q(e)||this.is("treemap")||j(12,!1,this.chart),function(e){e.boost=e.boost||{getPoint:t=>eg(e,t)};let t=e.boost.altered=[];if(["allowDG","directTouch","stickyTracking"].forEach(i=>{t.push({prop:i,val:e[i],own:Object.hasOwnProperty.call(e,i)})}),e.allowDG=!1,e.directTouch=!1,e.stickyTracking=!0,e.finishedAnimating=!0,e.labelBySeries&&(e.labelBySeries=e.labelBySeries.destroy()),e.is("scatter")&&!e.is("treemap")&&e.data.length){for(let t of e.data)t?.destroy?.();e.data.length=0,e.points.length=0,delete e.processedData}}(this)}else!function(e){let t=e.boost,i=e.chart,r=i.boost;if(r?.markerGroup)for(let e of(r.markerGroup.destroy(),r.markerGroup=void 0,i.series))e.markerGroup=void 0,e.markerGroup=e.plotGroup("markerGroup","markers","visible",1,i.seriesGroup).addClass("highcharts-tracker");t&&((t.altered||[]).forEach(t=>{t.own?e[t.prop]=t.val:delete e[t.prop]}),t.clear&&t.clear()),(i.seriesGroup||e.group)?.clip()}(this)}else e.apply(this,[].slice.call(arguments,1))}function eA(e){let t=e.apply(this,[].slice.call(arguments,1));return this.boost&&t?this.boost.getPoint(t):t}let ey={compose:function(e,t,i){if(ee(X,"Boost.Series")){let r=V().plotOptions,s=e.prototype;if(W(e,"destroy",ed),W(e,"hide",ef),i&&(s.renderCanvas=ec),et(s,"getExtremes",eb),et(s,"processData",ex),et(s,"searchPoint",eA),["translate","generatePoints","drawTracker","drawPoints","render"].forEach(e=>(function(e,t,i){function r(e){let t=this.options.stacking&&("translate"===i||"generatePoints"===i);this.boosted&&!t&&es(this.chart)&&"heatmap"!==this.type&&"treemap"!==this.type&&f[this.type]&&0!==this.options.boostThreshold?"render"===i&&this.renderCanvas&&this.renderCanvas():e.call(this)}if(et(e,i,r),"translate"===i)for(let e of["column","arearange","columnrange","heatmap","treemap"])t[e]&&et(t[e].prototype,i,r)})(s,t,e)),d.forEach(e=>{let i=r[e];i&&(i.boostThreshold=5e3,i.boostData=[],t[e].prototype.fillOpacity=!0)}),i){let{area:e,areaspline:i,bubble:r,column:s,heatmap:o,scatter:n,treemap:a}=t;if(e&&Z(e.prototype,{fill:!0,fillOpacity:!0,sampling:!0}),i&&Z(i.prototype,{fill:!0,fillOpacity:!0,sampling:!0}),r){let e=r.prototype;delete e.buildKDTree,et(e,"markerAttribs",function(e){return!this.boosted&&e.apply(this,[].slice.call(arguments,1))})}s&&Z(s.prototype,{fill:!0,sampling:!0}),n&&(n.prototype.fill=!0),[o,a].forEach(e=>{e&&et(e.prototype,"drawPoints",ep)})}}return e},destroyGraphics:en,eachAsync:ea,getPoint:eg},ev={defaultHTMLColorMap:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",feldspar:"#d19275",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslateblue:"#8470ff",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",violetred:"#d02090",wheat:"#f5deb3",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},{doc:eP,win:eT}=h(),{addEvent:eC,error:ek}=h(),eE=["webgl","experimental-webgl","moz-webgl","webkit-3d"];function eS(){let e;if(void 0!==eT.WebGLRenderingContext){e=eP.createElement("canvas");for(let t=0;t<eE.length;++t)try{if(null!=e.getContext(eE[t]))return!0}catch(e){}}return!1}let eM={compose:function(e,t,i,r,s){let o=eS();o||(void 0!==h().initCanvasBoost?h().initCanvasBoost():ek(26)),s&&!s.names.lightgoldenrodyellow&&(s.names={...s.names,...ev.defaultHTMLColorMap}),x.compose(e,o),ey.compose(i,r,o),eC(t,"setExtremes",function(e){for(let t of[this.chart,...this.series].map(e=>e.renderTarget).filter(Boolean)){let{horiz:i,pos:r}=this,s=i?"scaleX":"scaleY",o=i?"translateX":"translateY",n=t?.[s]??1,a=1,l=0,h=1,d="none";this.isPanning&&(a=(e.scale??1)*n,l=(t?.[o]||0)-a*(e.move||0)+n*r-a*r,h=.7,d="blur(3px)"),t?.attr({[s]:a,[o]:l}).css({transition:"250ms filter, 250ms opacity",filter:d,opacity:h})}})},hasWebGLSupport:eS},ew=h();ew.hasWebGLSupport=eM.hasWebGLSupport,eM.compose(ew.Chart,ew.Axis,ew.Series,ew.seriesTypes,ew.Color);let eU=h();return a.default})());
13
+ * */function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(e._Highcharts,e._Highcharts.Color):"function"==typeof define&&define.amd?define("highcharts/modules/boost",["highcharts/highcharts"],function(e){return t(e,e.Color)}):"object"==typeof exports?exports["highcharts/modules/boost"]=t(e._Highcharts,e._Highcharts.Color):e.Highcharts=t(e.Highcharts,e.Highcharts.Color)}("undefined"==typeof window?this:window,(e,t)=>(()=>{"use strict";let i,r;var s={620:e=>{e.exports=t},944:t=>{t.exports=e}},o={};function n(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={exports:{}};return s[e](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var a={};n.d(a,{default:()=>eU});var l=n(944),h=/*#__PURE__*/n.n(l);let d=["area","areaspline","arearange","column","columnrange","bar","line","scatter","heatmap","bubble","treemap"],f={};d.forEach(e=>{f[e]=!0});let{composed:u}=h(),{addEvent:g,pick:m,pushUnique:c}=h();function p(e){let t=e.series,i=e.boost=e.boost||{},r=e.options.boost||{},s=m(r.seriesThreshold,50);if(t.length>=s)return!0;if(1===t.length)return!1;let o=r.allowForce;if(void 0===o){for(let t of(o=!0,e.xAxis))if(m(t.min,-1/0)>m(t.dataMin,-1/0)||m(t.max,1/0)<m(t.dataMax,1/0)){o=!1;break}}if(void 0!==i.forceChartBoost){if(o)return i.forceChartBoost;i.forceChartBoost=void 0}let n=0,a=0,l;for(let e of t)0!==(l=e.options).boostThreshold&&!1!==e.visible&&"heatmap"!==e.type&&(f[e.type]&&++n,function(...e){let t=-Number.MAX_VALUE;return e.forEach(e=>{if(null!=e&&void 0!==e.length&&e.length>0)return t=e.length,!0}),t}(e.getColumn("x",!0),l.data,e.points)>=(l.boostThreshold||Number.MAX_VALUE)&&++a);return i.forceChartBoost=o&&(n===t.length&&a===n||a>5),i.forceChartBoost}function b(e){function t(){e.boost&&e.boost.wgl&&p(e)&&e.boost.wgl.render(e)}g(e,"predraw",function(){e.boost=e.boost||{},e.boost.forceChartBoost=void 0,e.boosted=!1,e.axes.some(e=>e.isPanning)||e.boost.clear?.(),e.boost.canvas&&e.boost.wgl&&p(e)&&e.boost.wgl.allocateBuffer(e),e.boost.markerGroup&&e.xAxis&&e.xAxis.length>0&&e.yAxis&&e.yAxis.length>0&&e.boost.markerGroup.translate(e.xAxis[0].pos,e.yAxis[0].pos)}),g(e,"load",t,{order:-1}),g(e,"redraw",t);let i=-1,r=-1;g(e.pointer,"afterGetHoverData",t=>{let s=t.hoverPoint?.series;if(e.boost=e.boost||{},e.boost.markerGroup&&s){let t=e.inverted?s.yAxis:s.xAxis,o=e.inverted?s.xAxis:s.yAxis;(t&&t.pos!==i||o&&o.pos!==r)&&(e.series.forEach(e=>{e.halo?.hide()}),e.boost.markerGroup.translate(t.pos,o.pos),i=t.pos,r=o.pos)}})}let x={compose:function(e,t){return t&&c(u,"Boost.Chart")&&e.prototype.callbacks.push(b),e},getBoostClipRect:function(e,t){let i=e.navigator,r={x:e.plotLeft,y:e.plotTop,width:e.plotWidth,height:e.plotHeight};if(i&&e.inverted?(r.width+=i.top+i.height,i.opposite||(r.x=i.left)):i&&!e.inverted&&(r.height=i.top+i.height-e.plotTop),t.getClipBox){let{xAxis:i,yAxis:s}=t;if(r=t.getClipBox(),e.inverted){let e=r.width;r.width=r.height,r.height=e,r.x=s.pos,r.y=i.pos}else r.x=i.pos,r.y=s.pos}if(t===e){let t=e.inverted?e.xAxis:e.yAxis;t.length<=1&&(r.y=Math.min(t[0].pos,r.y),r.height=t[0].pos-e.plotTop+t[0].len)}return r},isChartSeriesBoosting:p};var A=n(620),y=/*#__PURE__*/n.n(A);let v={area:"LINES",arearange:"LINES",areaspline:"LINES",column:"LINES",columnrange:"LINES",bar:"LINES",line:"LINE_STRIP",scatter:"POINTS",heatmap:"TRIANGLES",treemap:"TRIANGLES",bubble:"POINTS"},{clamp:P,error:T,pick:C}=h(),k=class{constructor(e){if(this.errors=[],this.uLocations={},this.gl=e,e&&!this.createShader())return}bind(){this.gl&&this.shaderProgram&&this.gl.useProgram(this.shaderProgram)}createShader(){let e=this.stringToProgram("#version 100\n#define LN10 2.302585092994046\nprecision highp float;\nattribute vec4 aVertexPosition;\nattribute vec4 aColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform mat4 uPMatrix;\nuniform float pSize;\nuniform float translatedThreshold;\nuniform bool hasThreshold;\nuniform bool skipTranslation;\nuniform float xAxisTrans;\nuniform float xAxisMin;\nuniform float xAxisMinPad;\nuniform float xAxisPointRange;\nuniform float xAxisLen;\nuniform bool xAxisPostTranslate;\nuniform float xAxisOrdinalSlope;\nuniform float xAxisOrdinalOffset;\nuniform float xAxisPos;\nuniform bool xAxisCVSCoord;\nuniform bool xAxisIsLog;\nuniform bool xAxisReversed;\nuniform float yAxisTrans;\nuniform float yAxisMin;\nuniform float yAxisMinPad;\nuniform float yAxisPointRange;\nuniform float yAxisLen;\nuniform bool yAxisPostTranslate;\nuniform float yAxisOrdinalSlope;\nuniform float yAxisOrdinalOffset;\nuniform float yAxisPos;\nuniform bool yAxisCVSCoord;\nuniform bool yAxisIsLog;\nuniform bool yAxisReversed;\nuniform bool isBubble;\nuniform bool bubbleSizeByArea;\nuniform float bubbleZMin;\nuniform float bubbleZMax;\nuniform float bubbleZThreshold;\nuniform float bubbleMinSize;\nuniform float bubbleMaxSize;\nuniform bool bubbleSizeAbs;\nuniform bool isInverted;\nfloat bubbleRadius(){\nfloat value = aVertexPosition.w;\nfloat zMax = bubbleZMax;\nfloat zMin = bubbleZMin;\nfloat radius = 0.0;\nfloat pos = 0.0;\nfloat zRange = zMax - zMin;\nif (bubbleSizeAbs){\nvalue = value - bubbleZThreshold;\nzMax = max(zMax - bubbleZThreshold, zMin - bubbleZThreshold);\nzMin = 0.0;\n}\nif (value < zMin){\nradius = bubbleZMin / 2.0 - 1.0;\n} else {\npos = zRange > 0.0 ? (value - zMin) / zRange : 0.5;\nif (bubbleSizeByArea && pos > 0.0){\npos = sqrt(pos);\n}\nradius = ceil(bubbleMinSize + pos * (bubbleMaxSize - bubbleMinSize)) / 2.0;\n}\nreturn radius * 2.0;\n}\nfloat translate(float val,\nfloat pointPlacement,\nfloat localA,\nfloat localMin,\nfloat minPixelPadding,\nfloat pointRange,\nfloat len,\nbool cvsCoord,\nbool isLog,\nbool reversed\n){\nfloat sign = 1.0;\nfloat cvsOffset = 0.0;\nif (cvsCoord) {\nsign *= -1.0;\ncvsOffset = len;\n}\nif (isLog) {\nval = log(val) / LN10;\n}\nif (reversed) {\nsign *= -1.0;\ncvsOffset -= sign * len;\n}\nreturn sign * (val - localMin) * localA + cvsOffset + \n(sign * minPixelPadding);\n}\nfloat xToPixels(float value) {\nif (skipTranslation){\nreturn value;// + xAxisPos;\n}\nreturn translate(value, 0.0, xAxisTrans, xAxisMin, xAxisMinPad, xAxisPointRange, xAxisLen, xAxisCVSCoord, xAxisIsLog, xAxisReversed);// + xAxisPos;\n}\nfloat yToPixels(float value, float checkTreshold) {\nfloat v;\nif (skipTranslation){\nv = value;// + yAxisPos;\n} else {\nv = translate(value, 0.0, yAxisTrans, yAxisMin, yAxisMinPad, yAxisPointRange, yAxisLen, yAxisCVSCoord, yAxisIsLog, yAxisReversed);// + yAxisPos;\nif (v > yAxisLen) {\nv = yAxisLen;\n}\n}\nif (checkTreshold > 0.0 && hasThreshold) {\nv = min(v, translatedThreshold);\n}\nreturn v;\n}\nvoid main(void) {\nif (isBubble){\ngl_PointSize = bubbleRadius();\n} else {\ngl_PointSize = pSize;\n}\nvColor = aColor;\nif (skipTranslation && isInverted) {\ngl_Position = uPMatrix * vec4(aVertexPosition.y + yAxisPos, aVertexPosition.x + xAxisPos, 0.0, 1.0);\n} else if (isInverted) {\ngl_Position = uPMatrix * vec4(yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, xToPixels(aVertexPosition.x) + xAxisPos, 0.0, 1.0);\n} else {\ngl_Position = uPMatrix * vec4(xToPixels(aVertexPosition.x) + xAxisPos, yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, 0.0, 1.0);\n}\n}","vertex"),t=this.stringToProgram("precision highp float;\nuniform vec4 fillColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform sampler2D uSampler;\nuniform bool isCircle;\nuniform bool hasColor;\nvoid main(void) {\nvec4 col = fillColor;\nvec4 tcol = texture2D(uSampler, gl_PointCoord.st);\nif (hasColor) {\ncol = vColor;\n}\nif (isCircle) {\ncol *= tcol;\nif (tcol.r < 0.0) {\ndiscard;\n} else {\ngl_FragColor = col;\n}\n} else {\ngl_FragColor = col;\n}\n}","fragment"),i=e=>this.gl.getUniformLocation(this.shaderProgram,e);return e&&t?(this.shaderProgram=this.gl.createProgram(),this.gl.attachShader(this.shaderProgram,e),this.gl.attachShader(this.shaderProgram,t),this.gl.linkProgram(this.shaderProgram),this.gl.getProgramParameter(this.shaderProgram,this.gl.LINK_STATUS))?(this.gl.useProgram(this.shaderProgram),this.gl.bindAttribLocation(this.shaderProgram,0,"aVertexPosition"),this.pUniform=i("uPMatrix"),this.psUniform=i("pSize"),this.fcUniform=i("fillColor"),this.isBubbleUniform=i("isBubble"),this.bubbleSizeAbsUniform=i("bubbleSizeAbs"),this.bubbleSizeAreaUniform=i("bubbleSizeByArea"),this.uSamplerUniform=i("uSampler"),this.skipTranslationUniform=i("skipTranslation"),this.isCircleUniform=i("isCircle"),this.isInverted=i("isInverted"),!0):(this.errors.push(this.gl.getProgramInfoLog(this.shaderProgram)),this.handleErrors(),this.shaderProgram=!1,!1):(this.shaderProgram=!1,this.handleErrors(),!1)}handleErrors(){this.errors.length&&T("[highcharts boost] shader error - "+this.errors.join("\n"))}stringToProgram(e,t){let i=this.gl.createShader("vertex"===t?this.gl.VERTEX_SHADER:this.gl.FRAGMENT_SHADER);return(this.gl.shaderSource(i,e),this.gl.compileShader(i),this.gl.getShaderParameter(i,this.gl.COMPILE_STATUS))?i:(this.errors.push("when compiling "+t+" shader:\n"+this.gl.getShaderInfoLog(i)),!1)}destroy(){this.gl&&this.shaderProgram&&(this.gl.deleteProgram(this.shaderProgram),this.shaderProgram=!1)}fillColorUniform(){return this.fcUniform}getProgram(){return this.shaderProgram}pointSizeUniform(){return this.psUniform}perspectiveUniform(){return this.pUniform}reset(){this.gl&&this.shaderProgram&&(this.gl.uniform1i(this.isBubbleUniform,0),this.gl.uniform1i(this.isCircleUniform,0))}setBubbleUniforms(e,t,i,r=1){let s=e.options,o=Number.MAX_VALUE,n=-Number.MAX_VALUE;if(this.gl&&this.shaderProgram&&e.is("bubble")){let a=e.getPxExtremes();o=C(s.zMin,P(t,!1===s.displayNegative?s.zThreshold:-Number.MAX_VALUE,o)),n=C(s.zMax,Math.max(n,i)),this.gl.uniform1i(this.isBubbleUniform,1),this.gl.uniform1i(this.isCircleUniform,1),this.gl.uniform1i(this.bubbleSizeAreaUniform,"width"!==e.options.sizeBy),this.gl.uniform1i(this.bubbleSizeAbsUniform,e.options.sizeByAbsoluteValue),this.setUniform("bubbleMinSize",a.minPxSize*r),this.setUniform("bubbleMaxSize",a.maxPxSize*r),this.setUniform("bubbleZMin",o),this.setUniform("bubbleZMax",n),this.setUniform("bubbleZThreshold",e.options.zThreshold)}}setColor(e){this.gl&&this.shaderProgram&&this.gl.uniform4f(this.fcUniform,e[0]/255,e[1]/255,e[2]/255,e[3])}setDrawAsCircle(e){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.isCircleUniform,e?1:0)}setInverted(e){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.isInverted,e)}setPMatrix(e){this.gl&&this.shaderProgram&&this.gl.uniformMatrix4fv(this.pUniform,!1,e)}setPointSize(e){this.gl&&this.shaderProgram&&this.gl.uniform1f(this.psUniform,e)}setSkipTranslation(e){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.skipTranslationUniform,!0===e?1:0)}setTexture(e){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.uSamplerUniform,e)}setUniform(e,t){if(this.gl&&this.shaderProgram){let i=this.uLocations[e]=this.uLocations[e]||this.gl.getUniformLocation(this.shaderProgram,e);this.gl.uniform1f(i,t)}}},E=class{constructor(e,t,i){this.buffer=!1,this.iterator=0,this.preAllocated=!1,this.vertAttribute=!1,this.components=i||2,this.dataComponents=i,this.gl=e,this.shader=t}allocate(e){this.iterator=-1,this.preAllocated=new Float32Array(4*e)}bind(){if(!this.buffer)return!1;this.gl.vertexAttribPointer(this.vertAttribute,this.components,this.gl.FLOAT,!1,0,0)}build(e,t,i){let r;return(this.data=e||[],this.data&&0!==this.data.length||this.preAllocated)?(this.components=i||this.components,this.buffer&&this.gl.deleteBuffer(this.buffer),this.preAllocated||(r=new Float32Array(this.data)),this.buffer=this.gl.createBuffer(),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.buffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,this.preAllocated||r,this.gl.STATIC_DRAW),this.vertAttribute=this.gl.getAttribLocation(this.shader.getProgram(),t),this.gl.enableVertexAttribArray(this.vertAttribute),r=!1,!0):(this.destroy(),!1)}destroy(){this.buffer&&(this.gl.deleteBuffer(this.buffer),this.buffer=!1,this.vertAttribute=!1),this.iterator=0,this.components=this.dataComponents||2,this.data=[]}push(e,t,i,r){this.preAllocated&&(this.preAllocated[++this.iterator]=e,this.preAllocated[++this.iterator]=t,this.preAllocated[++this.iterator]=i,this.preAllocated[++this.iterator]=r)}render(e,t,i){let r=this.preAllocated?this.preAllocated.length:this.data.length;return!!this.buffer&&!!r&&((!e||e>r||e<0)&&(e=0),(!t||t>r)&&(t=r),!(e>=t)&&(i=i||"POINTS",this.gl.drawArrays(this.gl[i],e/this.components,(t-e)/this.components),!0))}},{parse:S}=y(),{doc:M,win:w}=h(),{isNumber:U,isObject:R,merge:L,objectEach:_,pick:z}=h(),N={column:!0,columnrange:!0,bar:!0,area:!0,areaspline:!0,arearange:!0},D={scatter:!0,bubble:!0},G=["webgl","experimental-webgl","moz-webgl","webkit-3d"];class I{static orthoMatrix(e,t){return[2/e,0,0,0,0,-(2/t),0,0,0,0,-2,0,-1,1,-1,1]}static seriesPointCount(e){let t,i,r;return e.boosted?(t=!!e.options.stacking,i=(e.getColumn("x").length?e.getColumn("x"):void 0)||e.options.xData||e.getColumn("x",!0),r=(t?e.data:i||e.options.data).length,"treemap"===e.type?r*=12:"heatmap"===e.type?r*=6:N[e.type]&&(r*=2),r):0}constructor(e){this.data=[],this.height=0,this.isInited=!1,this.markerData=[],this.series=[],this.textureHandles={},this.width=0,this.postRenderCallback=e,this.settings={pointSize:1,lineWidth:1,fillColor:"#AA00AA",useAlpha:!0,usePreallocated:!1,useGPUTranslations:!1,debug:{timeRendering:!1,timeSeriesProcessing:!1,timeSetup:!1,timeBufferCopy:!1,timeKDTree:!1,showSkipSummary:!1}}}getPixelRatio(){return this.settings.pixelRatio||w.devicePixelRatio||1}setOptions(e){"pixelRatio"in e||(e.pixelRatio=1),L(!0,this.settings,e)}allocateBuffer(e){let t=this.vbuffer,i=0;this.settings.usePreallocated&&(e.series.forEach(e=>{e.boosted&&(i+=I.seriesPointCount(e))}),t&&t.allocate(i))}allocateBufferForSingleSeries(e){let t=this.vbuffer,i=0;this.settings.usePreallocated&&(e.boosted&&(i=I.seriesPointCount(e)),t&&t.allocate(i))}clear(){let e=this.gl;e&&e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT)}pushSeriesData(e,t){let i=this.data,r=this.settings,s=this.vbuffer,o=e.pointArrayMap&&"low,high"===e.pointArrayMap.join(","),{chart:n,options:a,sorted:l,xAxis:h,yAxis:d}=e,f=!!a.stacking,u=a.data,g=e.xAxis.getExtremes(),m=g.min-(e.xAxis.minPointOffset||0),c=g.max+(e.xAxis.minPointOffset||0),p=e.yAxis.getExtremes(),b=p.min-(e.yAxis.minPointOffset||0),x=p.max+(e.yAxis.minPointOffset||0),A=(e.getColumn("x").length?e.getColumn("x"):void 0)||a.xData||e.getColumn("x",!0),y=(e.getColumn("y").length?e.getColumn("y"):void 0)||a.yData||e.getColumn("y",!0),v=(e.getColumn("z").length?e.getColumn("z"):void 0)||a.zData||e.getColumn("z",!0),P=!A||0===A.length,T=a.connectNulls,C=e.points||!1,k=f?e.data:A||u,E={x:Number.MAX_VALUE,y:0},M={x:-Number.MAX_VALUE,y:0},w=void 0===n.index,U=N[e.type],L=a.zoneAxis||"y",_=a.zones||!1,z=a.threshold,D=this.getPixelRatio(),G=e.chart.plotWidth,I=!1,B=!1,O,V,X=0,F=!1,H,W,q,Y,j=-1,Z=!1,K=!1,Q,J=!1,$=!1,ee=!1,et=!1,ei=!0,er=!0,es,eo=!1,en=!1,ea=0;if(a.boostData&&a.boostData.length>0)return;a.gapSize&&(en="value"!==a.gapUnit?a.gapSize*e.closestPointRange:a.gapSize),_&&(es=[],_.forEach((e,t)=>{if(e.color){let i=S(e.color).rgba;i[0]/=255,i[1]/=255,i[2]/=255,es[t]=i,eo||void 0!==e.value||(eo=i)}}),eo||(eo=S(e.pointAttribs&&e.pointAttribs().fill||e.color).rgba,eo[0]/=255,eo[1]/=255,eo[2]/=255)),n.inverted&&(G=e.chart.plotHeight),e.closestPointRangePx=Number.MAX_VALUE;let el=e=>{e&&(t.colorData.push(e[0]),t.colorData.push(e[1]),t.colorData.push(e[2]),t.colorData.push(e[3]))},eh=(e,o,n,a=1,l)=>{el(l),1!==D&&(!r.useGPUTranslations||t.skipTranslation)&&(e*=D,o*=D,a*=D),r.usePreallocated&&s?(s.push(e,o,n?1:0,a),ea+=4):(i.push(e),i.push(o),i.push(n?D:0),i.push(a))},ed=()=>{t.segments.length&&(t.segments[t.segments.length-1].to=i.length||ea)},ef=()=>{t.segments.length&&t.segments[t.segments.length-1].from===(i.length||ea)||(ed(),t.segments.push({from:i.length||ea}))},eu=(e,t,i,r,s)=>{el(s),eh(e+i,t),el(s),eh(e,t),el(s),eh(e,t+r),el(s),eh(e,t+r),el(s),eh(e+i,t+r),el(s),eh(e+i,t)};if(ef(),C&&C.length>0){t.skipTranslation=!0,t.drawMode="TRIANGLES",C[0].node&&C[0].node.levelDynamic&&C.sort((e,t)=>{if(e.node){if(e.node.levelDynamic>t.node.levelDynamic)return 1;if(e.node.levelDynamic<t.node.levelDynamic)return -1}return 0}),C.forEach(t=>{let i,r;let s=t.plotY;if(void 0!==s&&!isNaN(s)&&null!==t.y&&t.shapeArgs){let{x:s=0,y:o=0,width:a=0,height:l=0}=t.shapeArgs;i=(r=n.styledMode?t.series.colorAttribs(t):r=t.series.pointAttribs(t))["stroke-width"]||0,ee=S(r.fill).rgba,ee[0]/=255,ee[1]/=255,ee[2]/=255,e.is("treemap")&&(i=i||1,V=S(r.stroke).rgba,V[0]/=255,V[1]/=255,V[2]/=255,eu(s,o,a,l,V),i/=2),e.is("heatmap")&&n.inverted&&(s=h.len-s,o=d.len-o,a=-a,l=-l),eu(s+i,o+i,a-2*i,l-2*i,ee)}}),ed();return}for(;j<k.length-1;){if(void 0===(q=k[++j]))continue;if(w)break;let i=u&&u[j];if(!P&&R(i,!0)&&i.color&&(ee=S(i.color).rgba,ee[0]/=255,ee[1]/=255,ee[2]/=255),P?(H=q[0],W=q[1],k[j+1]&&(K=k[j+1][0]),k[j-1]&&(Z=k[j-1][0]),q.length>=3&&(Y=q[2],q[2]>t.zMax&&(t.zMax=q[2]),q[2]<t.zMin&&(t.zMin=q[2]))):(H=q,W=y?.[j],k[j+1]&&(K=k[j+1]),k[j-1]&&(Z=k[j-1]),v&&v.length&&(Y=v[j],v[j]>t.zMax&&(t.zMax=v[j]),v[j]<t.zMin&&(t.zMin=v[j]))),!T&&(null===H||null===W)){ef();continue}if(K&&K>=m&&K<=c&&(J=!0),Z&&Z>=m&&Z<=c&&($=!0),o?(P&&(W=q.slice(1,3)),Q=e.getColumn("low",!0)?.[j],W=e.getColumn("high",!0)?.[j]||0):f&&(H=q.x,Q=(W=q.stackY)-q.y),null!=b&&null!=x&&(ei=W>=b&&W<=x),(l||ei)&&(H>c&&M.x<c&&(M.x=H,M.y=W),H<m&&E.x>m&&(E.x=H,E.y=W),null!==W||!T)){if(null===W||!ei&&!J&&!$){ef();continue}if((l&&(K>=m||H>=m)&&(Z<=c||H<=c)||!l&&H>=m&&H<=c)&&(et=!0),et||J||$){if(en&&H-Z>en&&ef(),_){let e;_.some((t,i)=>{let r=_[i-1];return"x"===L?void 0!==t.value&&H<=t.value&&(es[i]&&(!r||H>=r.value)&&(e=es[i]),!0):void 0!==t.value&&W<=t.value&&(es[i]&&(!r||W>=r.value)&&(e=es[i]),!0)}),ee=e||eo||ee}if(r.useGPUTranslations||(t.skipTranslation=!0,H=h.toPixels(H,!0),W=d.toPixels(W,!0),!(H>G)||"POINTS"!==t.drawMode)){if(t.hasMarkers&&et&&!1!==I&&(e.closestPointRangePx=Math.min(e.closestPointRangePx,Math.abs(H-I))),!r.useGPUTranslations&&!r.usePreallocated&&I&&1>Math.abs(H-I)&&B&&1>Math.abs(W-B)){r.debug.showSkipSummary&&++X;continue}U&&(O=Q||0,(!1===Q||void 0===Q)&&(O=W<0?W:0),(o||f)&&!d.logarithmic||(O=Math.max(null===z?b:z,b)),r.useGPUTranslations||(O=d.toPixels(O,!0)),eh(H,O,0,0,ee)),a.step&&!er&&eh(H,B,0,2,ee),eh(H,W,0,"bubble"===e.type?Y||1:2,ee),I=H,B=W,F=!0,er=!1}}}}r.debug.showSkipSummary&&console.log("skipped points:",X);let eg=(e,i)=>{if(r.useGPUTranslations||(t.skipTranslation=!0,e.x=h.toPixels(e.x,!0),e.y=d.toPixels(e.y,!0)),i){this.data=[e.x,e.y,0,2].concat(this.data);return}eh(e.x,e.y,0,2)};!F&&!1!==T&&"line_strip"===e.drawMode&&(E.x<Number.MAX_VALUE&&eg(E,!0),M.x>-Number.MAX_VALUE&&eg(M)),ed()}pushSeries(e){let t=this.markerData,i=this.series,r=this.settings;i.length>0&&i[i.length-1].hasMarkers&&(i[i.length-1].markerTo=t.length),r.debug.timeSeriesProcessing&&console.time("building "+e.type+" series");let s={segments:[],markerFrom:t.length,colorData:[],series:e,zMin:Number.MAX_VALUE,zMax:-Number.MAX_VALUE,hasMarkers:!!e.options.marker&&!1!==e.options.marker.enabled,showMarkers:!0,drawMode:v[e.type]||"LINE_STRIP"};e.index>=i.length?i.push(s):i[e.index]=s,this.pushSeriesData(e,s),r.debug.timeSeriesProcessing&&console.timeEnd("building "+e.type+" series")}flush(){let e=this.vbuffer;this.data=[],this.markerData=[],this.series=[],e&&e.destroy()}setXAxis(e){let t=this.shader;if(!t)return;let i=this.getPixelRatio();t.setUniform("xAxisTrans",e.transA*i),t.setUniform("xAxisMin",e.min),t.setUniform("xAxisMinPad",e.minPixelPadding*i),t.setUniform("xAxisPointRange",e.pointRange),t.setUniform("xAxisLen",e.len*i),t.setUniform("xAxisPos",e.pos*i),t.setUniform("xAxisCVSCoord",!e.horiz),t.setUniform("xAxisIsLog",!!e.logarithmic),t.setUniform("xAxisReversed",!!e.reversed)}setYAxis(e){let t=this.shader;if(!t)return;let i=this.getPixelRatio();t.setUniform("yAxisTrans",e.transA*i),t.setUniform("yAxisMin",e.min),t.setUniform("yAxisMinPad",e.minPixelPadding*i),t.setUniform("yAxisPointRange",e.pointRange),t.setUniform("yAxisLen",e.len*i),t.setUniform("yAxisPos",e.pos*i),t.setUniform("yAxisCVSCoord",!e.horiz),t.setUniform("yAxisIsLog",!!e.logarithmic),t.setUniform("yAxisReversed",!!e.reversed)}setThreshold(e,t){let i=this.shader;i&&(i.setUniform("hasThreshold",e),i.setUniform("translatedThreshold",t))}renderChart(e){let t=this.gl,i=this.settings,r=this.shader,s=this.vbuffer,o=this.getPixelRatio();if(!e)return!1;this.width=e.chartWidth*o,this.height=e.chartHeight*o;let n=this.height,a=this.width;if(!t||!r||!a||!n)return!1;i.debug.timeRendering&&console.time("gl rendering"),t.canvas.width=a,t.canvas.height=n,r.bind(),t.viewport(0,0,a,n),r.setPMatrix(I.orthoMatrix(a,n)),i.lineWidth>1&&!h().isMS&&t.lineWidth(i.lineWidth),s&&(s.build(this.data,"aVertexPosition",4),s.bind()),r.setInverted(e.inverted),this.series.forEach((n,a)=>{let l=n.series.options,h=l.marker,d=void 0!==l.lineWidth?l.lineWidth:1,f=l.threshold,u=U(f),g=n.series.yAxis.getThreshold(f),m=z(l.marker?l.marker.enabled:null,!!n.series.xAxis.isRadial||null,n.series.closestPointRangePx>2*((l.marker?l.marker.radius:10)||10)),c=this.textureHandles[h&&h.symbol||n.series.symbol]||this.textureHandles.circle,p,b,x,A=[];if(0!==n.segments.length&&n.segments[0].from!==n.segments[0].to&&(c.isReady&&(t.bindTexture(t.TEXTURE_2D,c.handle),r.setTexture(c.handle)),e.styledMode?n.series.markerGroup===n.series.chart.boost?.markerGroup?(delete n.series.markerGroup,n.series.markerGroup=n.series.plotGroup("markerGroup","markers","visible",1,e.seriesGroup).addClass("highcharts-tracker"),x=n.series.markerGroup.getStyle("fill"),n.series.markerGroup.destroy(),n.series.markerGroup=n.series.chart.boost?.markerGroup):x=n.series.markerGroup?.getStyle("fill"):(x="POINTS"===n.drawMode&&n.series.pointAttribs&&n.series.pointAttribs().fill||n.series.color,l.colorByPoint&&(x=n.series.chart.options.colors[a])),n.series.fillOpacity&&l.fillOpacity&&(x=new(y())(x).setOpacity(z(l.fillOpacity,1)).get()),A=S(x).rgba,i.useAlpha||(A[3]=1),"add"===l.boostBlending?(t.blendFunc(t.SRC_ALPHA,t.ONE),t.blendEquation(t.FUNC_ADD)):"mult"===l.boostBlending||"multiply"===l.boostBlending?t.blendFunc(t.DST_COLOR,t.ZERO):"darken"===l.boostBlending?(t.blendFunc(t.ONE,t.ONE),t.blendEquation(t.FUNC_MIN)):t.blendFuncSeparate(t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA),r.reset(),n.colorData.length>0?(r.setUniform("hasColor",1),(b=new E(t,r)).build(Array(n.segments[0].from).concat(n.colorData),"aColor",4),b.bind()):(r.setUniform("hasColor",0),t.disableVertexAttribArray(t.getAttribLocation(r.getProgram(),"aColor"))),r.setColor(A),this.setXAxis(n.series.xAxis),this.setYAxis(n.series.yAxis),this.setThreshold(u,g),"POINTS"===n.drawMode&&r.setPointSize(2*z(l.marker&&l.marker.radius,.5)*o),r.setSkipTranslation(n.skipTranslation),"bubble"===n.series.type&&r.setBubbleUniforms(n.series,n.zMin,n.zMax,o),r.setDrawAsCircle(D[n.series.type]||!1),s)){if(d>0||"LINE_STRIP"!==n.drawMode)for(p=0;p<n.segments.length;p++)s.render(n.segments[p].from,n.segments[p].to,n.drawMode);if(n.hasMarkers&&m)for(r.setPointSize(2*z(l.marker&&l.marker.radius,5)*o),r.setDrawAsCircle(!0),p=0;p<n.segments.length;p++)s.render(n.segments[p].from,n.segments[p].to,"POINTS")}}),i.debug.timeRendering&&console.timeEnd("gl rendering"),this.postRenderCallback&&this.postRenderCallback(this),this.flush()}render(e){if(this.clear(),e.renderer.forExport)return this.renderChart(e);this.isInited?this.renderChart(e):setTimeout(()=>{this.render(e)},1)}setSize(e,t){let i=this.shader;i&&(this.width!==e||this.height!==t)&&(this.width=e,this.height=t,i.bind(),i.setPMatrix(I.orthoMatrix(e,t)))}init(e,t){let i=this.settings;if(this.isInited=!1,!e)return!1;i.debug.timeSetup&&console.time("gl setup");for(let t=0;t<G.length&&(this.gl=e.getContext(G[t],{}),!this.gl);++t);let r=this.gl;if(!r)return!1;t||this.flush(),r.enable(r.BLEND),r.blendFunc(r.SRC_ALPHA,r.ONE_MINUS_SRC_ALPHA),r.disable(r.DEPTH_TEST),r.depthFunc(r.LESS);let s=this.shader=new k(r);if(!s)return!1;this.vbuffer=new E(r,s);let o=(e,t)=>{let i={isReady:!1,texture:M.createElement("canvas"),handle:r.createTexture()},s=i.texture.getContext("2d");this.textureHandles[e]=i,i.texture.width=512,i.texture.height=512,s.mozImageSmoothingEnabled=!1,s.webkitImageSmoothingEnabled=!1,s.msImageSmoothingEnabled=!1,s.imageSmoothingEnabled=!1,s.strokeStyle="rgba(255, 255, 255, 0)",s.fillStyle="#FFF",t(s);try{r.activeTexture(r.TEXTURE0),r.bindTexture(r.TEXTURE_2D,i.handle),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,i.texture),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.bindTexture(r.TEXTURE_2D,null),i.isReady=!0}catch(e){}};return o("circle",e=>{e.beginPath(),e.arc(256,256,256,0,2*Math.PI),e.stroke(),e.fill()}),o("square",e=>{e.fillRect(0,0,512,512)}),o("diamond",e=>{e.beginPath(),e.moveTo(256,0),e.lineTo(512,256),e.lineTo(256,512),e.lineTo(0,256),e.lineTo(256,0),e.fill()}),o("triangle",e=>{e.beginPath(),e.moveTo(0,512),e.lineTo(256,0),e.lineTo(512,512),e.lineTo(0,512),e.fill()}),o("triangle-down",e=>{e.beginPath(),e.moveTo(0,0),e.lineTo(256,512),e.lineTo(512,0),e.lineTo(0,0),e.fill()}),this.isInited=!0,i.debug.timeSetup&&console.timeEnd("gl setup"),!0}destroy(){let e=this.gl,t=this.shader,i=this.vbuffer;this.flush(),i&&i.destroy(),t&&t.destroy(),e&&(_(this.textureHandles,t=>{t.handle&&e.deleteTexture(t.handle)}),e.canvas.width=1,e.canvas.height=1)}}let{getBoostClipRect:B,isChartSeriesBoosting:O}=x,{getOptions:V}=h(),{composed:X,doc:F,noop:H,win:W}=h(),{addEvent:q,destroyObjectProperties:Y,error:j,extend:Z,fireEvent:K,isArray:Q,isNumber:J,pick:$,pushUnique:ee,wrap:et,defined:ei}=h();function er(e,t){let i=t.boost;e&&i&&i.target&&i.canvas&&!O(t.chart)&&e.allocateBufferForSingleSeries(t)}function es(e){return $(e&&e.options&&e.options.boost&&e.options.boost.enabled,!0)}function eo(e,t){let i=e.constructor,s=e.seriesGroup||t.group,o=e.chartWidth,n=e.chartHeight,a=e,l="undefined"!=typeof SVGForeignObjectElement,h=!1;O(e)?a=e:(a=t,h=!!(t.options.events?.click||t.options.point?.events?.click));let d=a.boost=a.boost||{};if(l=!1,r||(r=F.createElement("canvas")),!d.target&&(d.canvas=r,e.renderer.forExport||!l?(a.renderTarget=d.target=e.renderer.image("",0,0,o,n).addClass("highcharts-boost-canvas").add(s),d.clear=function(){d.target.attr({href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="})},d.copy=function(){d.resize(),d.target.attr({href:d.canvas.toDataURL("image/png")})}):(d.targetFo=e.renderer.createElement("foreignObject").add(s),a.renderTarget=d.target=F.createElement("canvas"),d.targetCtx=d.target.getContext("2d"),d.targetFo.element.appendChild(d.target),d.clear=function(){d.target.width=d.canvas.width,d.target.height=d.canvas.height},d.copy=function(){d.target.width=d.canvas.width,d.target.height=d.canvas.height,d.targetCtx.drawImage(d.canvas,0,0)}),d.resize=function(){o=e.chartWidth,n=e.chartHeight,(d.targetFo||d.target).attr({x:0,y:0,width:o,height:n}).css({pointerEvents:h?void 0:"none",mixedBlendMode:"normal",opacity:1}).addClass(h?"highcharts-tracker":""),a instanceof i&&a.boost?.markerGroup?.translate(e.plotLeft,e.plotTop)},d.clipRect=e.renderer.clipRect(),(d.targetFo||d.target).attr({zIndex:t.options.zIndex}),a instanceof i&&(a.boost.markerGroup=a.renderer.g().add(s).translate(t.xAxis.pos,t.yAxis.pos))),d.canvas.width=o,d.canvas.height=n,d.clipRect){let t=B(e,a),i=t.width===e.clipBox.width&&t.height===e.clipBox.height?s:d.targetFo||d.target;d.clipRect.attr(t),i?.clip(d.clipRect)}return d.resize(),d.clear(),!d.wgl&&(d.wgl=new I(e=>{e.settings.debug.timeBufferCopy&&console.time("buffer copy"),d.copy(),e.settings.debug.timeBufferCopy&&console.timeEnd("buffer copy")}),d.wgl.init(d.canvas)||j("[highcharts boost] - unable to init WebGL renderer"),d.wgl.setOptions(e.options.boost||{}),a instanceof i&&d.wgl.allocateBuffer(e)),d.wgl.setSize(o,n),d.wgl}function en(e){let t=e.points;if(t){let e,i;for(i=0;i<t.length;i+=1)(e=t[i])&&e.destroyElements&&e.destroyElements()}for(let t of(["graph","area","tracker"].forEach(t=>{let i=e[t];i&&(e[t]=i.destroy())}),e.zones))Y(t,void 0,!0)}function ea(e,t,i,r,s,o){let n=(s=s||0)+(r=r||3e3),a=!0;for(;a&&s<n&&s<e.length;)a=t(e[s],s),++s;a&&(s<e.length?o?ea(e,t,i,r,s,o):W.requestAnimationFrame?W.requestAnimationFrame(function(){ea(e,t,i,r,s)}):setTimeout(ea,0,e,t,i,r,s):i&&i())}function el(e,t){let i=e.options,r=e.dataTable.modified.rowCount,s=e.xAxis&&e.xAxis.options,o=e.yAxis&&e.yAxis.options,n=e.colorAxis&&e.colorAxis.options;return r>(i.boostThreshold||Number.MAX_VALUE)&&J(o.min)&&J(o.max)&&(!t||J(s.min)&&J(s.max))&&(!n||J(n.min)&&J(n.max))}let eh=(e,t)=>!e.forceCrop&&(O(e.chart)||(t?t.length:0)>=(e.options.boostThreshold||Number.MAX_VALUE));function ed(){let e=this,t=e.chart;t.boost&&t.boost.markerGroup===e.markerGroup&&(e.markerGroup=null),t.hoverPoints&&(t.hoverPoints=t.hoverPoints.filter(function(t){return t.series===e})),t.hoverPoint&&t.hoverPoint.series===e&&(t.hoverPoint=null)}function ef(){let e=this.boost;e&&e.canvas&&e.target&&(e.wgl&&e.wgl.clear(),e.clear&&e.clear())}function eu(e){let t=e.boost;t&&t.canvas&&t.target&&t.wgl&&!O(e.chart)&&t.wgl.render(e.chart)}function eg(e,t){let i=e.options,r=e.xAxis,s=e.pointClass;if(t instanceof s)return t;let o=(e.getColumn("x").length?e.getColumn("x"):void 0)||i.xData||e.getColumn("x",!0)||!1,n=new s(e,(Q(e.options.data)?e.options.data:[])[t.i],o?o[t.i]:void 0);return n.category=$(r.categories?r.categories[n.x]:n.x,n.x),n.key=n.name??n.category,n.dist=t.dist,n.distX=t.distX,n.plotX=t.plotX,n.plotY=t.plotY,n.index=t.i,n.percentage=t.percentage,n.isInside=e.isPointInside(n),n}function em(e){var t,i,r,s;let{options:o,xAxis:n,yAxis:a}=this;if(!this.isDirty&&!n.isDirty&&!a.isDirty&&!e)return!1;this.yAxis.setTickInterval();let l=o.boostThreshold||0,h=o.cropThreshold,d=this.getColumn("x"),f=n.getExtremes(),u=f.max??Number.MAX_VALUE,g=f.min??-Number.MAX_VALUE,m=this.getColumn("y"),c=a.getExtremes(),p=c.max??Number.MAX_VALUE,b=c.min??-Number.MAX_VALUE;if(!this.boosted&&n.old&&a.old&&g>=(n.old.min??-Number.MAX_VALUE)&&u<=(n.old.max??Number.MAX_VALUE)&&b>=(a.old.min??-Number.MAX_VALUE)&&p<=(a.old.max??Number.MAX_VALUE))return this.dataTable.modified.setColumns({x:d,y:m}),!0;let x=this.dataTable.rowCount;if(!l||x<l||h&&!this.forceCrop&&!this.getExtremesFromAll&&!o.getExtremesFromAll&&x<h)return this.dataTable.modified.setColumns({x:d,y:m}),!0;let A=[],y=[],v=[],P=!(J(f.max)||J(f.min)),T=!(J(c.max)||J(c.min)),C=!1,k,E=d[0],S=d[0],M,w=m?.[0],U=m?.[0];for(let e=0,t=d.length;e<t;++e)k=d[e],M=m?.[e],k>=g&&k<=u&&M>=b&&M<=p?(A.push({x:k,y:M}),y.push(k),v.push(M),P&&(E=Math.max(E,k),S=Math.min(S,k)),T&&(w=Math.max(w,M),U=Math.min(U,M))):C=!0;return P&&((t=n.options).max??(t.max=E),(i=n.options).min??(i.min=S)),T&&((r=a.options).max??(r.max=w),(s=a.options).min??(s.min=U)),this.cropped=C,this.cropStart=0,this.dataTable.modified.setColumns({x:y,y:v}),eh(this,y)||(this.processedData=A),!0}function ec(){let e=this.options||{},t=this.chart,r=t.boost,s=this.boost,o=this.xAxis,n=this.yAxis,a=e.xData||this.getColumn("x",!0),l=e.yData||this.getColumn("y",!0),h=this.getColumn("low",!0),d=this.getColumn("high",!0),f=this.processedData||e.data,u=o.getExtremes(),g=u.min-(o.minPointOffset||0),m=u.max+(o.minPointOffset||0),c=n.getExtremes(),p=c.min-(n.minPointOffset||0),b=c.max+(n.minPointOffset||0),x={},A=!!this.sampling,y=e.enableMouseTracking,v=e.threshold,P=this.pointArrayMap&&"low,high"===this.pointArrayMap.join(","),T=!!e.stacking,C=this.cropStart||0,k=this.requireSorting,E=!a,S="x"===e.findNearestPointBy,M=(this.getColumn("x",!0).length?this.getColumn("x",!0):void 0)||this.options.xData||this.getColumn("x",!0),w=$(e.lineWidth,1),U=!1,R,L=n.getThreshold(v),_,z,N,D;if(o.isPanning||n.isPanning||(U=eo(t,this),t.boosted=!0,!this.visible))return;(this.points||this.graph)&&en(this),O(t)?(this.markerGroup&&this.markerGroup!==r?.markerGroup&&this.markerGroup.destroy(),this.markerGroup=r?.markerGroup,s&&s.target&&(this.renderTarget=s.target=s.target.destroy())):(this.markerGroup===r?.markerGroup&&(this.markerGroup=void 0),this.markerGroup=this.plotGroup("markerGroup","markers","visible",1,t.seriesGroup).addClass("highcharts-tracker"));let G=this.points=[],I=(e,r,s,a)=>{let l=!!M&&M[C+s],h=e=>{t.inverted&&(e=o.len-e,r=n.len-r),G.push({destroy:H,x:l,clientX:e,plotX:e,plotY:r,i:C+s,percentage:a})};e=Math.ceil(e),i=S?e:e+","+r,y&&(x[i]?l===M[M.length-1]&&(G.length--,h(e)):(x[i]=!0,h(e)))};this.buildKDTree=H,K(this,"renderCanvas"),this.is("line")&&w>1&&s?.target&&r&&!r.lineWidthFilter&&(r.lineWidthFilter=t.renderer.definition({tagName:"filter",children:[{tagName:"feMorphology",attributes:{operator:"dilate",radius:.25*w}}],attributes:{id:"linewidth"}}),s.target.attr({filter:"url(#linewidth)"})),U&&(er(U,this),U.pushSeries(this),eu(this));let B=U.settings;t.renderer.forExport||(B.debug.timeKDTree&&console.time("kd tree building"),ea(T?this.data.slice(C):a||f,function(e,i){let r=void 0===t.index,s,a,f,u,c,x=!1,y=!0;return!ei(e)||(!r&&(E?(s=e[0],a=e[1]):(s=e,a=l?.[i]),P?(E&&(a=e.slice(1,3)),x=h[i],a=d[i]):T&&(s=e.x,x=(a=e.stackY)-e.y,c=e.percentage),k||(y=(a||0)>=p&&a<=b),null!==a&&s>=g&&s<=m&&y&&(f=o.toPixels(s,!0),A?((void 0===N||f===R)&&(P||(x=a),(void 0===D||a>z)&&(z=a,D=i),(void 0===N||x<_)&&(_=x,N=i)),S&&f===R||(void 0!==N&&(u=n.toPixels(z,!0),L=n.toPixels(_,!0),I(f,u,D,c),L!==u&&I(f,L,N,c)),N=D=void 0,R=f)):I(f,u=Math.ceil(n.toPixels(a,!0)),i,c))),!r)},()=>{K(this,"renderedCanvas"),delete this.buildKDTree,this.options&&this.buildKDTree(),B.debug.timeKDTree&&console.timeEnd("kd tree building")}))}function ep(e){let t=!0;if(this.chart.options&&this.chart.options.boost&&(t=void 0===this.chart.options.boost.enabled||this.chart.options.boost.enabled),!t||!this.boosted)return e.call(this);this.chart.boosted=!0;let i=eo(this.chart,this);i&&(er(i,this),i.pushSeries(this)),eu(this)}function eb(e){if(this.boosted){if(el(this))return{};if(this.xAxis.isPanning||this.yAxis.isPanning)return this}return e.apply(this,[].slice.call(arguments,1))}function ex(e){let t=this.options.data;if(es(this.chart)&&f[this.type]){let i=this.is("scatter")&&!this.is("bubble")&&!this.is("treemap")&&!this.is("heatmap");if(!eh(this,t)||i||this.is("treemap")||this.options.stacking||!el(this,!0)){if(this.boosted&&(this.xAxis?.isPanning||this.yAxis?.isPanning))return;i&&!this.yAxis.treeGrid?em.call(this,arguments[1]):e.apply(this,[].slice.call(arguments,1)),t=this.getColumn("x",!0)}if(this.boosted=eh(this,t),this.boosted){let e;!this.options.data?.length||J(e=this.getFirstValidPoint(this.options.data))||Q(e)||this.is("treemap")||j(12,!1,this.chart),function(e){e.boost=e.boost||{getPoint:t=>eg(e,t)};let t=e.boost.altered=[];if(["allowDG","directTouch","stickyTracking"].forEach(i=>{t.push({prop:i,val:e[i],own:Object.hasOwnProperty.call(e,i)})}),e.allowDG=!1,e.directTouch=!1,e.stickyTracking=!0,e.finishedAnimating=!0,e.labelBySeries&&(e.labelBySeries=e.labelBySeries.destroy()),e.is("scatter")&&!e.is("treemap")&&e.data.length){for(let t of e.data)t?.destroy?.();e.data.length=0,e.points.length=0,delete e.processedData}}(this)}else!function(e){let t=e.boost,i=e.chart,r=i.boost;if(r?.markerGroup)for(let e of(r.markerGroup.destroy(),r.markerGroup=void 0,i.series))e.markerGroup=void 0,e.markerGroup=e.plotGroup("markerGroup","markers","visible",1,i.seriesGroup).addClass("highcharts-tracker");t&&((t.altered||[]).forEach(t=>{t.own?e[t.prop]=t.val:delete e[t.prop]}),t.clear&&t.clear()),(i.seriesGroup||e.group)?.clip()}(this)}else e.apply(this,[].slice.call(arguments,1))}function eA(e){let t=e.apply(this,[].slice.call(arguments,1));return this.boost&&t?this.boost.getPoint(t):t}let ey={compose:function(e,t,i){if(ee(X,"Boost.Series")){let r=V().plotOptions,s=e.prototype;if(q(e,"destroy",ed),q(e,"hide",ef),i&&(s.renderCanvas=ec),et(s,"getExtremes",eb),et(s,"processData",ex),et(s,"searchPoint",eA),["translate","generatePoints","drawTracker","drawPoints","render"].forEach(e=>(function(e,t,i){function r(e){let t=this.options.stacking&&("translate"===i||"generatePoints"===i);this.boosted&&!t&&es(this.chart)&&"heatmap"!==this.type&&"treemap"!==this.type&&f[this.type]&&0!==this.options.boostThreshold?"render"===i&&this.renderCanvas&&this.renderCanvas():e.call(this)}if(et(e,i,r),"translate"===i)for(let e of["column","arearange","columnrange","heatmap","treemap"])t[e]&&et(t[e].prototype,i,r)})(s,t,e)),d.forEach(e=>{let i=r[e];i&&(i.boostThreshold=5e3,i.boostData=[],t[e].prototype.fillOpacity=!0)}),i){let{area:e,areaspline:i,bubble:r,column:s,heatmap:o,scatter:n,treemap:a}=t;if(e&&Z(e.prototype,{fill:!0,fillOpacity:!0,sampling:!0}),i&&Z(i.prototype,{fill:!0,fillOpacity:!0,sampling:!0}),r){let e=r.prototype;delete e.buildKDTree,et(e,"markerAttribs",function(e){return!this.boosted&&e.apply(this,[].slice.call(arguments,1))})}s&&Z(s.prototype,{fill:!0,sampling:!0}),n&&(n.prototype.fill=!0),[o,a].forEach(e=>{e&&et(e.prototype,"drawPoints",ep)})}}return e},destroyGraphics:en,eachAsync:ea,getPoint:eg},ev={defaultHTMLColorMap:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",feldspar:"#d19275",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslateblue:"#8470ff",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",violetred:"#d02090",wheat:"#f5deb3",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},{doc:eP,win:eT}=h(),{addEvent:eC,error:ek}=h(),eE=["webgl","experimental-webgl","moz-webgl","webkit-3d"];function eS(){let e;if(void 0!==eT.WebGLRenderingContext){e=eP.createElement("canvas");for(let t=0;t<eE.length;++t)try{if(null!=e.getContext(eE[t]))return!0}catch(e){}}return!1}let eM={compose:function(e,t,i,r,s){let o=eS();o||(void 0!==h().initCanvasBoost?h().initCanvasBoost():ek(26)),s&&!s.names.lightgoldenrodyellow&&(s.names={...s.names,...ev.defaultHTMLColorMap}),x.compose(e,o),ey.compose(i,r,o),eC(t,"setExtremes",function(e){for(let t of[this.chart,...this.series].map(e=>e.renderTarget).filter(Boolean)){let{horiz:i,pos:r}=this,s=i?"scaleX":"scaleY",o=i?"translateX":"translateY",n=t?.[s]??1,a=1,l=0,h=1,d="none";this.isPanning&&(a=(e.scale??1)*n,l=(t?.[o]||0)-a*(e.move||0)+n*r-a*r,h=.7,d="blur(3px)"),t?.attr({[s]:a,[o]:l}).css({transition:"250ms filter, 250ms opacity",filter:d,opacity:h})}})},hasWebGLSupport:eS},ew=h();ew.hasWebGLSupport=eM.hasWebGLSupport,eM.compose(ew.Chart,ew.Axis,ew.Series,ew.seriesTypes,ew.Color);let eU=h();return a.default})());