highcharts 13.0.0 → 13.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 (1264) hide show
  1. package/bower.json +1 -1
  2. package/css/highcharts.css +2 -1
  3. package/es-modules/Accessibility/A11yI18n.js +4 -4
  4. package/es-modules/Accessibility/Accessibility.js +38 -1
  5. package/es-modules/Accessibility/Components/InfoRegionsComponent.js +6 -4
  6. package/es-modules/Accessibility/Components/LegendComponent.js +3 -4
  7. package/es-modules/Accessibility/Components/NavigatorComponent.js +3 -4
  8. package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +13 -10
  9. package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +8 -4
  10. package/es-modules/Accessibility/Components/ZoomComponent.js +2 -2
  11. package/es-modules/Accessibility/FocusBorder.js +2 -2
  12. package/es-modules/Accessibility/Options/A11yDefaults.js +12 -3
  13. package/es-modules/Accessibility/Options/DeprecatedOptions.js +1 -2
  14. package/es-modules/Accessibility/ProxyElement.js +1 -0
  15. package/es-modules/Core/Animation/AnimationUtilities.js +34 -43
  16. package/es-modules/Core/Animation/Fx.js +16 -19
  17. package/es-modules/Core/Axis/Axis.js +49 -59
  18. package/es-modules/Core/Axis/Axis3DComposition.js +8 -6
  19. package/es-modules/Core/Axis/AxisDefaults.js +12 -2
  20. package/es-modules/Core/Axis/BrokenAxis.js +6 -5
  21. package/es-modules/Core/Axis/Color/ColorAxis.js +24 -12
  22. package/es-modules/Core/Axis/Color/ColorAxisComposition.js +3 -3
  23. package/es-modules/Core/Axis/GridAxis.js +12 -5
  24. package/es-modules/Core/Axis/LogarithmicAxis.js +5 -3
  25. package/es-modules/Core/Axis/NavigatorAxisComposition.js +2 -2
  26. package/es-modules/Core/Axis/OrdinalAxis.js +21 -11
  27. package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +3 -2
  28. package/es-modules/Core/Axis/RadialAxis.js +23 -22
  29. package/es-modules/Core/Axis/ScrollbarAxis.js +3 -3
  30. package/es-modules/Core/Axis/Stacking/StackItem.js +5 -5
  31. package/es-modules/Core/Axis/Stacking/StackingAxis.js +5 -6
  32. package/es-modules/Core/Axis/Tick.js +10 -11
  33. package/es-modules/Core/Axis/TreeGrid/TreeGridAxis.js +1 -1
  34. package/es-modules/Core/Axis/TreeGrid/TreeGridTick.js +3 -3
  35. package/es-modules/Core/Chart/Chart.js +58 -53
  36. package/es-modules/Core/Chart/Chart3D.js +3 -3
  37. package/es-modules/Core/Chart/ChartDefaults.js +24 -1
  38. package/es-modules/Core/Chart/MapChart.js +7 -10
  39. package/es-modules/Core/Chart/StockChart.js +15 -11
  40. package/es-modules/Core/Color/Color.js +3 -1
  41. package/es-modules/Core/Defaults.js +44 -2
  42. package/es-modules/Core/Globals.js +1 -1
  43. package/es-modules/Core/Legend/Legend.js +20 -17
  44. package/es-modules/Core/Legend/LegendSymbol.js +2 -2
  45. package/es-modules/Core/MSPointer.js +2 -2
  46. package/es-modules/Core/Math3D.js +6 -7
  47. package/es-modules/Core/Pointer.js +20 -10
  48. package/es-modules/Core/Renderer/HTML/AST.js +5 -1
  49. package/es-modules/Core/Renderer/HTML/HTMLElement.js +23 -16
  50. package/es-modules/Core/Renderer/RendererUtilities.js +2 -2
  51. package/es-modules/Core/Renderer/SVG/SVGElement.js +12 -11
  52. package/es-modules/Core/Renderer/SVG/SVGElement3D.js +2 -2
  53. package/es-modules/Core/Renderer/SVG/SVGLabel.js +5 -5
  54. package/es-modules/Core/Renderer/SVG/SVGRenderer.js +6 -6
  55. package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +13 -12
  56. package/es-modules/Core/Renderer/SVG/Symbols.js +6 -5
  57. package/es-modules/Core/Renderer/SVG/TextBuilder.js +2 -2
  58. package/es-modules/Core/Responsive.js +7 -5
  59. package/es-modules/Core/Series/DataLabel.js +9 -8
  60. package/es-modules/Core/Series/OverlappingDataLabels.js +5 -2
  61. package/es-modules/Core/Series/Point.js +31 -24
  62. package/es-modules/Core/Series/Series.js +125 -82
  63. package/es-modules/Core/Series/Series3D.js +2 -2
  64. package/es-modules/Core/Series/SeriesDefaults.js +33 -0
  65. package/es-modules/Core/Templating.js +18 -15
  66. package/es-modules/Core/Tooltip.js +12 -9
  67. package/es-modules/Core/Utilities.js +4 -3
  68. package/es-modules/Data/Connectors/DataConnector.js +2 -2
  69. package/es-modules/Data/Connectors/GoogleSheetsConnector.js +2 -2
  70. package/es-modules/Data/DataTable.js +17 -0
  71. package/es-modules/Data/DataTableCore.js +1 -1
  72. package/es-modules/Extensions/Annotations/Annotation.js +5 -6
  73. package/es-modules/Extensions/Annotations/AnnotationChart.js +2 -2
  74. package/es-modules/Extensions/Annotations/AnnotationDefaults.js +4 -4
  75. package/es-modules/Extensions/Annotations/ControlPoint.js +2 -2
  76. package/es-modules/Extensions/Annotations/Controllables/ControllableLabel.js +2 -2
  77. package/es-modules/Extensions/Annotations/EventEmitter.js +4 -4
  78. package/es-modules/Extensions/Annotations/MockPoint.js +7 -9
  79. package/es-modules/Extensions/Annotations/NavigationBindings.js +6 -3
  80. package/es-modules/Extensions/Annotations/NavigationBindingsUtilities.js +31 -4
  81. package/es-modules/Extensions/Annotations/Popup/Popup.js +3 -2
  82. package/es-modules/Extensions/Annotations/Popup/PopupAnnotations.js +6 -8
  83. package/es-modules/Extensions/Annotations/Types/CrookedLine.js +4 -4
  84. package/es-modules/Extensions/Annotations/Types/Measure.js +28 -10
  85. package/es-modules/Extensions/Annotations/Types/TimeCycles.js +4 -2
  86. package/es-modules/Extensions/Annotations/Types/Tunnel.js +3 -1
  87. package/es-modules/Extensions/Annotations/Types/VerticalLine.js +3 -3
  88. package/es-modules/Extensions/Boost/Boost.js +13 -0
  89. package/es-modules/Extensions/Boost/BoostChart.js +11 -4
  90. package/es-modules/Extensions/Boost/BoostSeries.js +17 -11
  91. package/es-modules/Extensions/Boost/WGLRenderer.js +9 -6
  92. package/es-modules/Extensions/Boost/WGLShader.js +3 -3
  93. package/es-modules/Extensions/BoostCanvas.js +2 -2
  94. package/es-modules/Extensions/BorderRadius.js +12 -10
  95. package/es-modules/Extensions/Breadcrumbs/Breadcrumbs.js +6 -5
  96. package/es-modules/Extensions/DataGrouping/DataGrouping.js +2 -2
  97. package/es-modules/Extensions/DataGrouping/DataGroupingAxisComposition.js +4 -3
  98. package/es-modules/Extensions/DataGrouping/DataGroupingSeriesComposition.js +2 -2
  99. package/es-modules/Extensions/DraggablePoints/DragDropProps.js +2 -3
  100. package/es-modules/Extensions/DraggablePoints/DraggableChart.js +1 -2
  101. package/es-modules/Extensions/Drilldown/Drilldown.js +1 -2
  102. package/es-modules/Extensions/Drilldown/DrilldownSeries.js +1 -2
  103. package/es-modules/Extensions/ExportData/ExportData.js +21 -16
  104. package/es-modules/Extensions/Exporting/Exporting.js +28 -28
  105. package/es-modules/Extensions/Exporting/ExportingDefaults.js +32 -0
  106. package/es-modules/Extensions/MarkerClusters/MarkerClusterScatter.js +1 -2
  107. package/es-modules/Extensions/MarkerClusters/MarkerClusters.js +1 -2
  108. package/es-modules/Extensions/MouseWheelZoom/MouseWheelZoom.js +2 -2
  109. package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +31 -4
  110. package/es-modules/Extensions/Pane/PaneComposition.js +2 -2
  111. package/es-modules/Extensions/Pane/PaneDefaults.js +1 -1
  112. package/es-modules/Extensions/ParallelCoordinates/ParallelAxis.js +2 -2
  113. package/es-modules/Extensions/ParallelCoordinates/ParallelCoordinates.js +3 -0
  114. package/es-modules/Extensions/PatternFill.js +7 -5
  115. package/es-modules/Extensions/PriceIndication.js +5 -4
  116. package/es-modules/Extensions/ScrollablePlotArea.js +8 -2
  117. package/es-modules/Extensions/SeriesLabel/SeriesLabel.js +8 -9
  118. package/es-modules/Extensions/Sonification/MIDI.js +2 -3
  119. package/es-modules/Extensions/Sonification/Sonification.js +2 -2
  120. package/es-modules/Extensions/Sonification/SonificationSpeaker.js +3 -2
  121. package/es-modules/Extensions/Sonification/SynthPatch.js +4 -4
  122. package/es-modules/Extensions/Sonification/TimelineFromChart.js +11 -11
  123. package/es-modules/Gantt/Legacy.js +2 -2
  124. package/es-modules/Gantt/Pathfinder.js +3 -3
  125. package/es-modules/Gantt/PathfinderAlgorithms.js +4 -3
  126. package/es-modules/Gantt/Tree.js +1 -1
  127. package/es-modules/Maps/GeoJSONComposition.js +14 -1
  128. package/es-modules/Maps/MapNavigation.js +4 -4
  129. package/es-modules/Maps/MapPointer.js +2 -2
  130. package/es-modules/Maps/MapView.js +3 -3
  131. package/es-modules/Series/ArcDiagram/ArcDiagramSeries.js +8 -6
  132. package/es-modules/Series/Area/AreaSeries.js +4 -5
  133. package/es-modules/Series/AreaRange/AreaRangeSeries.js +87 -147
  134. package/es-modules/Series/AreaRange/AreaRangeSeriesDefaults.js +42 -4
  135. package/es-modules/Series/Bellcurve/BellcurveSeries.js +10 -6
  136. package/es-modules/Series/BoxPlot/BoxPlotSeries.js +40 -32
  137. package/es-modules/Series/BoxPlot/BoxPlotSeriesDefaults.js +33 -1
  138. package/es-modules/Series/Bubble/BubbleLegendItem.js +10 -6
  139. package/es-modules/Series/Bubble/BubbleSeries.js +25 -9
  140. package/es-modules/Series/Bullet/BulletSeries.js +17 -10
  141. package/es-modules/Series/Candlestick/CandlestickSeries.js +3 -3
  142. package/es-modules/Series/CenteredUtilities.js +12 -9
  143. package/es-modules/Series/ColorMapComposition.js +7 -4
  144. package/es-modules/Series/Column/ColumnPoint.js +2 -0
  145. package/es-modules/Series/Column/ColumnSeries.js +14 -14
  146. package/es-modules/Series/Column/ColumnSeriesDefaults.js +4 -2
  147. package/es-modules/Series/Column3D/Column3DComposition.js +22 -19
  148. package/es-modules/Series/ColumnPyramid/ColumnPyramidPoint.js +18 -0
  149. package/es-modules/Series/ColumnPyramid/ColumnPyramidPointOptions.js +12 -0
  150. package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +7 -6
  151. package/es-modules/Series/ColumnPyramid/ColumnPyramidSeriesOptions.js +12 -0
  152. package/es-modules/Series/ColumnRange/ColumnRangePoint.js +2 -0
  153. package/es-modules/Series/ColumnRange/ColumnRangePointOptions.js +12 -0
  154. package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +13 -144
  155. package/es-modules/Series/ColumnRange/ColumnRangeSeriesDefaults.js +148 -0
  156. package/es-modules/Series/ColumnRange/ColumnRangeSeriesOptions.js +12 -0
  157. package/es-modules/Series/Contour/ContourPoint.js +2 -0
  158. package/es-modules/Series/Contour/ContourSeries.js +1 -0
  159. package/es-modules/Series/Contour/ContourSeriesDefaults.js +7 -0
  160. package/es-modules/Series/Contour/ContourShader.js +9 -1
  161. package/es-modules/Series/CrossSymbol.js +3 -2
  162. package/es-modules/Series/Cylinder/CylinderComposition.js +12 -12
  163. package/es-modules/Series/Cylinder/CylinderPoint.js +2 -0
  164. package/es-modules/Series/Cylinder/CylinderPointOptions.js +15 -0
  165. package/es-modules/Series/Cylinder/CylinderSeries.js +2 -1
  166. package/es-modules/Series/Cylinder/CylinderSeriesOptions.js +15 -0
  167. package/es-modules/Series/Cylinder/SVGElement3DCylinder.js +2 -0
  168. package/es-modules/Series/DataModifyComposition.js +9 -7
  169. package/es-modules/Series/DependencyWheel/DependencyWheelPoint.js +3 -1
  170. package/es-modules/Series/DependencyWheel/DependencyWheelPointOptions.js +14 -0
  171. package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +8 -8
  172. package/es-modules/Series/DependencyWheel/DependencyWheelSeriesOptions.js +14 -0
  173. package/es-modules/Series/DerivedComposition.js +9 -8
  174. package/es-modules/Series/DotPlot/DotPlotPoint.js +18 -0
  175. package/es-modules/Series/DotPlot/DotPlotPointOptions.js +12 -0
  176. package/es-modules/Series/DotPlot/DotPlotSeries.js +6 -4
  177. package/es-modules/Series/DotPlot/DotPlotSeriesOptions.js +12 -0
  178. package/es-modules/Series/DragNodesComposition.js +11 -8
  179. package/es-modules/Series/DrawPointUtilities.js +3 -1
  180. package/es-modules/Series/Dumbbell/DumbbellPoint.js +19 -6
  181. package/es-modules/Series/Dumbbell/DumbbellPointOptions.js +12 -0
  182. package/es-modules/Series/Dumbbell/DumbbellSeries.js +33 -15
  183. package/es-modules/Series/Dumbbell/DumbbellSeriesOptions.js +12 -0
  184. package/es-modules/Series/ErrorBar/ErrorBarPoint.js +18 -0
  185. package/es-modules/Series/ErrorBar/ErrorBarPointOptions.js +12 -0
  186. package/es-modules/Series/ErrorBar/ErrorBarSeries.js +6 -9
  187. package/es-modules/Series/ErrorBar/ErrorBarSeriesDefaults.js +15 -1
  188. package/es-modules/Series/ErrorBar/ErrorBarSeriesOptions.js +12 -0
  189. package/es-modules/Series/Flags/FlagsSeries.js +5 -14
  190. package/es-modules/Series/Flags/FlagsSeriesDefaults.js +2 -1
  191. package/es-modules/Series/FlowMap/FlowMapPoint.js +5 -3
  192. package/es-modules/Series/FlowMap/FlowMapSeries.js +17 -9
  193. package/es-modules/Series/Funnel/FunnelSeries.js +25 -26
  194. package/es-modules/Series/Funnel/FunnelSeriesDefaults.js +12 -0
  195. package/es-modules/Series/Funnel3D/Funnel3DSeries.js +7 -5
  196. package/es-modules/Series/Gantt/GanttSeries.js +2 -1
  197. package/es-modules/Series/Gauge/GaugeSeries.js +2 -2
  198. package/es-modules/Series/GeoHeatmap/GeoHeatmapSeries.js +9 -9
  199. package/es-modules/Series/GraphLayoutComposition.js +3 -3
  200. package/es-modules/Series/Heatmap/HeatmapPoint.js +6 -6
  201. package/es-modules/Series/Heatmap/HeatmapPointOptions.js +12 -0
  202. package/es-modules/Series/Heatmap/HeatmapSeries.js +13 -13
  203. package/es-modules/Series/Heatmap/HeatmapSeriesOptions.js +12 -0
  204. package/es-modules/Series/Histogram/HistogramPoint.js +17 -0
  205. package/es-modules/Series/Histogram/HistogramPointOptions.js +12 -0
  206. package/es-modules/Series/Histogram/HistogramSeries.js +15 -3
  207. package/es-modules/Series/Histogram/HistogramSeriesOptions.js +12 -0
  208. package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +9 -9
  209. package/es-modules/Series/InterpolationUtilities.js +5 -5
  210. package/es-modules/Series/Item/ItemPointOptions.js +14 -0
  211. package/es-modules/Series/Item/ItemSeries.js +18 -6
  212. package/es-modules/Series/Item/ItemSeriesOptions.js +14 -0
  213. package/es-modules/Series/Map/MapPoint.js +5 -3
  214. package/es-modules/Series/Map/MapSeries.js +6 -10
  215. package/es-modules/Series/Map/MapSeriesDefaults.js +11 -1
  216. package/es-modules/Series/Networkgraph/NetworkgraphPoint.js +3 -3
  217. package/es-modules/Series/Networkgraph/NetworkgraphSeries.js +14 -9
  218. package/es-modules/Series/Networkgraph/NetworkgraphSeriesDefaults.js +12 -0
  219. package/es-modules/Series/Networkgraph/ReingoldFruchtermanLayout.js +18 -9
  220. package/es-modules/Series/NodesComposition.js +9 -10
  221. package/es-modules/Series/OHLC/OHLCPoint.js +2 -2
  222. package/es-modules/Series/OHLC/OHLCSeries.js +1 -0
  223. package/es-modules/Series/Organization/OrganizationPoint.js +3 -2
  224. package/es-modules/Series/Organization/OrganizationSeries.js +29 -7
  225. package/es-modules/Series/Organization/OrganizationSeriesDefaults.js +11 -4
  226. package/es-modules/Series/PackedBubble/PackedBubbleLayout.js +3 -3
  227. package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +5 -5
  228. package/es-modules/Series/Pictorial/PictorialSeries.js +4 -2
  229. package/es-modules/Series/Pie/PieDataLabel.js +2 -2
  230. package/es-modules/Series/Pie/PiePoint.js +3 -4
  231. package/es-modules/Series/Pie/PieSeries.js +3 -2
  232. package/es-modules/Series/Pie3D/Pie3DSeries.js +8 -4
  233. package/es-modules/Series/PolarComposition.js +13 -14
  234. package/es-modules/Series/Polygon/PolygonSeries.js +2 -2
  235. package/es-modules/Series/Polygon/PolygonSeriesDefaults.js +20 -0
  236. package/es-modules/Series/RangeDataLabel.js +128 -0
  237. package/es-modules/Series/Sankey/SankeySeries.js +13 -7
  238. package/es-modules/Series/Sankey/SankeySeriesDefaults.js +2 -2
  239. package/es-modules/Series/Scatter/ScatterSeries.js +6 -5
  240. package/es-modules/Series/Scatter/ScatterSeriesDefaults.js +2 -0
  241. package/es-modules/Series/SimulationSeriesUtilities.js +1 -2
  242. package/es-modules/Series/SolidGauge/SolidGaugeSeries.js +4 -4
  243. package/es-modules/Series/Spline/SplineSeries.js +5 -5
  244. package/es-modules/Series/Sunburst/SunburstSeriesDefaults.js +8 -0
  245. package/es-modules/Series/TiledWebMap/TiledWebMapSeries.js +20 -12
  246. package/es-modules/Series/Tilemap/TilemapSeriesDefaults.js +2 -1
  247. package/es-modules/Series/Tilemap/TilemapShapes.js +2 -2
  248. package/es-modules/Series/Timeline/TimelinePoint.js +2 -2
  249. package/es-modules/Series/Timeline/TimelineSeries.js +13 -6
  250. package/es-modules/Series/TreeUtilities.js +16 -7
  251. package/es-modules/Series/Treegraph/TreegraphLink.js +2 -2
  252. package/es-modules/Series/Treegraph/TreegraphSeries.js +22 -13
  253. package/es-modules/Series/Treemap/TreemapPoint.js +2 -2
  254. package/es-modules/Series/Treemap/TreemapSeries.js +14 -11
  255. package/es-modules/Series/Treemap/TreemapSeriesDefaults.js +22 -1
  256. package/es-modules/Series/VariablePie/VariablePieSeries.js +6 -4
  257. package/es-modules/Series/VariablePie/VariablePieSeriesDefaults.js +3 -2
  258. package/es-modules/Series/Variwide/VariwideSeries.js +2 -2
  259. package/es-modules/Series/Vector/VectorSeries.js +7 -9
  260. package/es-modules/Series/Venn/VennSeries.js +3 -4
  261. package/es-modules/Series/Waterfall/WaterfallSeries.js +3 -3
  262. package/es-modules/Series/Windbarb/WindbarbSeries.js +8 -10
  263. package/es-modules/Series/XRange/XRangeSeries.js +8 -8
  264. package/es-modules/Shared/TimeBase.js +13 -8
  265. package/es-modules/Shared/Utilities.js +9 -7
  266. package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +3 -3
  267. package/es-modules/Stock/Indicators/DPO/DPOIndicator.js +4 -3
  268. package/es-modules/Stock/Indicators/RSI/RSIIndicator.js +1 -1
  269. package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +2 -2
  270. package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +1 -2
  271. package/es-modules/Stock/Navigator/ChartNavigatorComposition.js +4 -4
  272. package/es-modules/Stock/Navigator/Navigator.js +26 -26
  273. package/es-modules/Stock/Navigator/NavigatorDefaults.js +9 -2
  274. package/es-modules/Stock/Navigator/NavigatorSymbols.js +2 -1
  275. package/es-modules/Stock/Navigator/StandaloneNavigator.js +55 -14
  276. package/es-modules/Stock/RangeSelector/RangeSelector.js +15 -11
  277. package/es-modules/Stock/RangeSelector/RangeSelectorComposition.js +3 -3
  278. package/es-modules/Stock/Scrollbar/Scrollbar.js +8 -7
  279. package/es-modules/Stock/StockTools/StockToolbar.js +6 -6
  280. package/es-modules/Stock/StockTools/StockTools.js +2 -2
  281. package/es-modules/Stock/StockTools/StockToolsBindings.js +7 -7
  282. package/es-modules/Stock/StockTools/StockToolsGui.js +6 -4
  283. package/es-modules/masters/highcharts-3d.src.js +1 -1
  284. package/es-modules/masters/highcharts-autoload.src.js +1 -1
  285. package/es-modules/masters/highcharts-gantt.src.js +1 -1
  286. package/es-modules/masters/highcharts-more.src.js +1 -1
  287. package/es-modules/masters/highcharts.src.js +13 -8
  288. package/es-modules/masters/highmaps.src.js +1 -1
  289. package/es-modules/masters/highstock.src.js +1 -1
  290. package/es-modules/masters/i18n/fr-FR.src.d.ts +1 -1
  291. package/es-modules/masters/i18n/fr-FR.src.js +1 -1
  292. package/es-modules/masters/i18n/nb-NO.src.d.ts +1 -1
  293. package/es-modules/masters/i18n/nb-NO.src.js +1 -1
  294. package/es-modules/masters/i18n/zh-CN.src.d.ts +1 -1
  295. package/es-modules/masters/i18n/zh-CN.src.js +1 -1
  296. package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
  297. package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
  298. package/es-modules/masters/indicators/ao.src.js +1 -1
  299. package/es-modules/masters/indicators/apo.src.js +1 -1
  300. package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
  301. package/es-modules/masters/indicators/aroon.src.js +1 -1
  302. package/es-modules/masters/indicators/atr.src.js +1 -1
  303. package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
  304. package/es-modules/masters/indicators/cci.src.js +1 -1
  305. package/es-modules/masters/indicators/chaikin.src.js +1 -1
  306. package/es-modules/masters/indicators/cmf.src.js +1 -1
  307. package/es-modules/masters/indicators/cmo.src.js +1 -1
  308. package/es-modules/masters/indicators/dema.src.js +1 -1
  309. package/es-modules/masters/indicators/disparity-index.src.js +1 -1
  310. package/es-modules/masters/indicators/dmi.src.js +1 -1
  311. package/es-modules/masters/indicators/dpo.src.js +1 -1
  312. package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
  313. package/es-modules/masters/indicators/indicators-all.src.js +1 -1
  314. package/es-modules/masters/indicators/indicators.src.js +1 -1
  315. package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
  316. package/es-modules/masters/indicators/klinger.src.js +1 -1
  317. package/es-modules/masters/indicators/macd.src.js +1 -1
  318. package/es-modules/masters/indicators/mfi.src.js +1 -1
  319. package/es-modules/masters/indicators/momentum.src.js +1 -1
  320. package/es-modules/masters/indicators/natr.src.js +1 -1
  321. package/es-modules/masters/indicators/obv.src.js +1 -1
  322. package/es-modules/masters/indicators/pivot-points.src.js +1 -1
  323. package/es-modules/masters/indicators/ppo.src.js +1 -1
  324. package/es-modules/masters/indicators/price-channel.src.js +1 -1
  325. package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
  326. package/es-modules/masters/indicators/psar.src.js +1 -1
  327. package/es-modules/masters/indicators/regressions.src.js +1 -1
  328. package/es-modules/masters/indicators/roc.src.js +1 -1
  329. package/es-modules/masters/indicators/rsi.src.js +1 -1
  330. package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
  331. package/es-modules/masters/indicators/stochastic.src.js +1 -1
  332. package/es-modules/masters/indicators/supertrend.src.js +1 -1
  333. package/es-modules/masters/indicators/tema.src.js +1 -1
  334. package/es-modules/masters/indicators/trendline.src.js +1 -1
  335. package/es-modules/masters/indicators/trix.src.js +1 -1
  336. package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
  337. package/es-modules/masters/indicators/vwap.src.js +1 -1
  338. package/es-modules/masters/indicators/williams-r.src.js +1 -1
  339. package/es-modules/masters/indicators/wma.src.js +1 -1
  340. package/es-modules/masters/indicators/zigzag.src.js +1 -1
  341. package/es-modules/masters/modules/accessibility.src.js +1 -1
  342. package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
  343. package/es-modules/masters/modules/annotations.src.js +1 -1
  344. package/es-modules/masters/modules/arc-diagram.src.js +1 -1
  345. package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
  346. package/es-modules/masters/modules/boost-canvas.src.js +1 -1
  347. package/es-modules/masters/modules/boost.src.js +1 -1
  348. package/es-modules/masters/modules/broken-axis.src.js +1 -1
  349. package/es-modules/masters/modules/bullet.src.js +1 -1
  350. package/es-modules/masters/modules/coloraxis.src.js +1 -1
  351. package/es-modules/masters/modules/contour.src.js +1 -1
  352. package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
  353. package/es-modules/masters/modules/cylinder.src.js +1 -1
  354. package/es-modules/masters/modules/data-sorting.src.js +1 -1
  355. package/es-modules/masters/modules/data-tools.src.js +1 -1
  356. package/es-modules/masters/modules/data.src.js +1 -1
  357. package/es-modules/masters/modules/datagrouping.src.js +1 -1
  358. package/es-modules/masters/modules/debugger.src.js +1 -1
  359. package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
  360. package/es-modules/masters/modules/dotplot.src.js +1 -1
  361. package/es-modules/masters/modules/drag-panes.src.js +1 -1
  362. package/es-modules/masters/modules/draggable-points.src.js +1 -1
  363. package/es-modules/masters/modules/drilldown.src.js +1 -1
  364. package/es-modules/masters/modules/dumbbell.src.js +1 -1
  365. package/es-modules/masters/modules/export-data.src.js +1 -1
  366. package/es-modules/masters/modules/exporting.src.js +1 -1
  367. package/es-modules/masters/modules/flowmap.src.js +2 -1
  368. package/es-modules/masters/modules/full-screen.src.js +1 -1
  369. package/es-modules/masters/modules/funnel.src.js +1 -1
  370. package/es-modules/masters/modules/funnel3d.src.js +1 -1
  371. package/es-modules/masters/modules/gantt.src.js +1 -1
  372. package/es-modules/masters/modules/geoheatmap.src.js +1 -1
  373. package/es-modules/masters/modules/grid-axis.src.js +1 -1
  374. package/es-modules/masters/modules/heatmap.src.js +1 -1
  375. package/es-modules/masters/modules/heikinashi.src.js +1 -1
  376. package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
  377. package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
  378. package/es-modules/masters/modules/item-series.src.js +1 -1
  379. package/es-modules/masters/modules/lollipop.src.js +1 -1
  380. package/es-modules/masters/modules/map.src.js +1 -1
  381. package/es-modules/masters/modules/marker-clusters.src.js +1 -1
  382. package/es-modules/masters/modules/mouse-wheel-zoom.src.js +1 -1
  383. package/es-modules/masters/modules/navigator.src.js +1 -1
  384. package/es-modules/masters/modules/networkgraph.src.js +1 -1
  385. package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
  386. package/es-modules/masters/modules/non-cartesian-zoom.src.js +1 -1
  387. package/es-modules/masters/modules/offline-exporting.src.js +1 -1
  388. package/es-modules/masters/modules/organization.src.js +1 -1
  389. package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
  390. package/es-modules/masters/modules/pareto.src.js +1 -1
  391. package/es-modules/masters/modules/pathfinder.src.js +1 -1
  392. package/es-modules/masters/modules/pattern-fill.src.js +1 -1
  393. package/es-modules/masters/modules/pictorial.src.js +1 -1
  394. package/es-modules/masters/modules/pointandfigure.src.js +1 -1
  395. package/es-modules/masters/modules/price-indicator.src.js +1 -1
  396. package/es-modules/masters/modules/pyramid3d.src.js +1 -1
  397. package/es-modules/masters/modules/renko.src.js +1 -1
  398. package/es-modules/masters/modules/sankey.src.js +1 -1
  399. package/es-modules/masters/modules/series-label.src.js +1 -1
  400. package/es-modules/masters/modules/series-on-point.src.js +1 -1
  401. package/es-modules/masters/modules/solid-gauge.src.js +1 -1
  402. package/es-modules/masters/modules/sonification.src.js +1 -1
  403. package/es-modules/masters/modules/static-scale.src.js +1 -1
  404. package/es-modules/masters/modules/stock-tools.src.js +1 -1
  405. package/es-modules/masters/modules/stock.src.js +1 -1
  406. package/es-modules/masters/modules/streamgraph.src.js +1 -1
  407. package/es-modules/masters/modules/sunburst.src.js +3 -2
  408. package/es-modules/masters/modules/textpath.src.js +1 -1
  409. package/es-modules/masters/modules/tiledwebmap.src.js +1 -1
  410. package/es-modules/masters/modules/tilemap.src.js +1 -1
  411. package/es-modules/masters/modules/timeline.src.js +1 -1
  412. package/es-modules/masters/modules/treegraph.src.js +1 -1
  413. package/es-modules/masters/modules/treegrid.src.js +1 -1
  414. package/es-modules/masters/modules/treemap.src.js +1 -1
  415. package/es-modules/masters/modules/variable-pie.src.js +1 -1
  416. package/es-modules/masters/modules/variwide.src.js +1 -1
  417. package/es-modules/masters/modules/vector.src.js +1 -1
  418. package/es-modules/masters/modules/venn.src.js +1 -1
  419. package/es-modules/masters/modules/windbarb.src.js +1 -1
  420. package/es-modules/masters/modules/wordcloud.src.js +1 -1
  421. package/es-modules/masters/modules/xrange.src.js +1 -1
  422. package/es-modules/masters/standalone-navigator.src.js +1 -1
  423. package/es-modules/masters/themes/adaptive.src.js +1 -1
  424. package/es-modules/masters/themes/avocado.src.js +1 -1
  425. package/es-modules/masters/themes/dark-unica.src.js +1 -1
  426. package/es-modules/masters/themes/grid-light.src.js +1 -1
  427. package/es-modules/masters/themes/high-contrast.src.js +1 -1
  428. package/es-modules/masters/themes/sand-signika.src.js +1 -1
  429. package/es-modules/masters/themes/sunset.src.js +1 -1
  430. package/es-modules/tsconfig.tsbuildinfo +1 -1
  431. package/esm/highcharts-3d.js +2 -2
  432. package/esm/highcharts-3d.src.js +78 -55
  433. package/esm/highcharts-autoload.js +2 -2
  434. package/esm/highcharts-autoload.src.js +22 -8
  435. package/esm/highcharts-gantt.js +2 -2
  436. package/esm/highcharts-gantt.src.js +1 -24
  437. package/esm/highcharts-more.js +2 -2
  438. package/esm/highcharts-more.src.js +1198 -981
  439. package/esm/highcharts.js +5 -5
  440. package/esm/highcharts.src.js +702 -515
  441. package/esm/highmaps.js +2 -2
  442. package/esm/highmaps.src.js +1 -24
  443. package/esm/highstock.js +2 -2
  444. package/esm/highstock.src.js +1 -24
  445. package/esm/i18n/fr-FR.js +2 -2
  446. package/esm/i18n/fr-FR.src.js +22 -8
  447. package/esm/i18n/nb-NO.js +2 -2
  448. package/esm/i18n/nb-NO.src.js +22 -8
  449. package/esm/i18n/zh-CN.js +2 -2
  450. package/esm/i18n/zh-CN.src.js +22 -8
  451. package/esm/indicators/acceleration-bands.js +2 -2
  452. package/esm/indicators/acceleration-bands.src.js +22 -8
  453. package/esm/indicators/accumulation-distribution.js +2 -2
  454. package/esm/indicators/accumulation-distribution.src.js +22 -8
  455. package/esm/indicators/ao.js +2 -2
  456. package/esm/indicators/ao.src.js +22 -8
  457. package/esm/indicators/apo.js +2 -2
  458. package/esm/indicators/apo.src.js +22 -8
  459. package/esm/indicators/aroon-oscillator.js +2 -2
  460. package/esm/indicators/aroon-oscillator.src.js +22 -8
  461. package/esm/indicators/aroon.js +2 -2
  462. package/esm/indicators/aroon.src.js +24 -10
  463. package/esm/indicators/atr.js +2 -2
  464. package/esm/indicators/atr.src.js +22 -8
  465. package/esm/indicators/bollinger-bands.js +2 -2
  466. package/esm/indicators/bollinger-bands.src.js +22 -8
  467. package/esm/indicators/cci.js +2 -2
  468. package/esm/indicators/cci.src.js +22 -8
  469. package/esm/indicators/chaikin.js +2 -2
  470. package/esm/indicators/chaikin.src.js +22 -8
  471. package/esm/indicators/cmf.js +2 -2
  472. package/esm/indicators/cmf.src.js +22 -8
  473. package/esm/indicators/cmo.js +2 -2
  474. package/esm/indicators/cmo.src.js +22 -8
  475. package/esm/indicators/dema.js +2 -2
  476. package/esm/indicators/dema.src.js +22 -8
  477. package/esm/indicators/disparity-index.js +2 -2
  478. package/esm/indicators/disparity-index.src.js +22 -8
  479. package/esm/indicators/dmi.js +2 -2
  480. package/esm/indicators/dmi.src.js +22 -8
  481. package/esm/indicators/dpo.js +2 -2
  482. package/esm/indicators/dpo.src.js +25 -10
  483. package/esm/indicators/ichimoku-kinko-hyo.js +2 -2
  484. package/esm/indicators/ichimoku-kinko-hyo.src.js +22 -8
  485. package/esm/indicators/indicators-all.js +2 -2
  486. package/esm/indicators/indicators-all.src.js +31 -17
  487. package/esm/indicators/indicators.js +2 -2
  488. package/esm/indicators/indicators.src.js +24 -10
  489. package/esm/indicators/keltner-channels.js +2 -2
  490. package/esm/indicators/keltner-channels.src.js +22 -8
  491. package/esm/indicators/klinger.js +2 -2
  492. package/esm/indicators/klinger.src.js +22 -8
  493. package/esm/indicators/macd.js +2 -2
  494. package/esm/indicators/macd.src.js +22 -8
  495. package/esm/indicators/mfi.js +2 -2
  496. package/esm/indicators/mfi.src.js +22 -8
  497. package/esm/indicators/momentum.js +2 -2
  498. package/esm/indicators/momentum.src.js +22 -8
  499. package/esm/indicators/natr.js +2 -2
  500. package/esm/indicators/natr.src.js +22 -8
  501. package/esm/indicators/obv.js +2 -2
  502. package/esm/indicators/obv.src.js +22 -8
  503. package/esm/indicators/pivot-points.js +2 -2
  504. package/esm/indicators/pivot-points.src.js +22 -8
  505. package/esm/indicators/ppo.js +2 -2
  506. package/esm/indicators/ppo.src.js +22 -8
  507. package/esm/indicators/price-channel.js +2 -2
  508. package/esm/indicators/price-channel.src.js +22 -8
  509. package/esm/indicators/price-envelopes.js +2 -2
  510. package/esm/indicators/price-envelopes.src.js +22 -8
  511. package/esm/indicators/psar.js +2 -2
  512. package/esm/indicators/psar.src.js +22 -8
  513. package/esm/indicators/regressions.js +2 -2
  514. package/esm/indicators/regressions.src.js +22 -8
  515. package/esm/indicators/roc.js +2 -2
  516. package/esm/indicators/roc.src.js +22 -8
  517. package/esm/indicators/rsi.js +2 -2
  518. package/esm/indicators/rsi.src.js +23 -9
  519. package/esm/indicators/slow-stochastic.js +2 -2
  520. package/esm/indicators/slow-stochastic.src.js +22 -8
  521. package/esm/indicators/stochastic.js +2 -2
  522. package/esm/indicators/stochastic.src.js +22 -8
  523. package/esm/indicators/supertrend.js +2 -2
  524. package/esm/indicators/supertrend.src.js +22 -8
  525. package/esm/indicators/tema.js +2 -2
  526. package/esm/indicators/tema.src.js +22 -8
  527. package/esm/indicators/trendline.js +2 -2
  528. package/esm/indicators/trendline.src.js +22 -8
  529. package/esm/indicators/trix.js +2 -2
  530. package/esm/indicators/trix.src.js +22 -8
  531. package/esm/indicators/volume-by-price.js +2 -2
  532. package/esm/indicators/volume-by-price.src.js +23 -10
  533. package/esm/indicators/vwap.js +2 -2
  534. package/esm/indicators/vwap.src.js +22 -8
  535. package/esm/indicators/williams-r.js +2 -2
  536. package/esm/indicators/williams-r.src.js +22 -8
  537. package/esm/indicators/wma.js +2 -2
  538. package/esm/indicators/wma.src.js +22 -8
  539. package/esm/indicators/zigzag.js +2 -2
  540. package/esm/indicators/zigzag.src.js +22 -8
  541. package/esm/modules/accessibility.js +2 -2
  542. package/esm/modules/accessibility.src.js +564 -92
  543. package/esm/modules/annotations-advanced.js +11 -11
  544. package/esm/modules/annotations-advanced.src.js +224 -162
  545. package/esm/modules/annotations.js +11 -11
  546. package/esm/modules/annotations.src.js +184 -144
  547. package/esm/modules/arc-diagram.js +2 -2
  548. package/esm/modules/arc-diagram.src.js +37 -22
  549. package/esm/modules/arrow-symbols.js +3 -3
  550. package/esm/modules/arrow-symbols.src.js +22 -8
  551. package/esm/modules/boost-canvas.js +2 -2
  552. package/esm/modules/boost-canvas.src.js +60 -30
  553. package/esm/modules/boost.js +2 -2
  554. package/esm/modules/boost.src.js +72 -29
  555. package/esm/modules/broken-axis.js +2 -2
  556. package/esm/modules/broken-axis.src.js +27 -12
  557. package/esm/modules/bullet.js +2 -2
  558. package/esm/modules/bullet.src.js +38 -17
  559. package/esm/modules/coloraxis.js +2 -2
  560. package/esm/modules/coloraxis.src.js +47 -21
  561. package/esm/modules/contour.js +3 -3
  562. package/esm/modules/contour.src.js +46 -13
  563. package/esm/modules/current-date-indicator.js +2 -2
  564. package/esm/modules/current-date-indicator.src.js +22 -8
  565. package/esm/modules/cylinder.js +2 -2
  566. package/esm/modules/cylinder.src.js +46 -28
  567. package/esm/modules/data-sorting.js +2 -2
  568. package/esm/modules/data-sorting.src.js +22 -8
  569. package/esm/modules/data-tools.js +2 -2
  570. package/esm/modules/data-tools.src.js +44 -13
  571. package/esm/modules/data.js +4 -4
  572. package/esm/modules/data.src.js +23 -9
  573. package/esm/modules/datagrouping.js +2 -2
  574. package/esm/modules/datagrouping.src.js +28 -13
  575. package/esm/modules/debugger.js +2 -2
  576. package/esm/modules/debugger.src.js +22 -8
  577. package/esm/modules/dependency-wheel.js +2 -2
  578. package/esm/modules/dependency-wheel.src.js +428 -17
  579. package/esm/modules/dotplot.js +2 -2
  580. package/esm/modules/dotplot.src.js +27 -11
  581. package/esm/modules/drag-panes.js +2 -2
  582. package/esm/modules/drag-panes.src.js +22 -8
  583. package/esm/modules/draggable-points.js +2 -2
  584. package/esm/modules/draggable-points.src.js +24 -12
  585. package/esm/modules/drilldown.js +2 -2
  586. package/esm/modules/drilldown.src.js +38 -25
  587. package/esm/modules/dumbbell.js +2 -2
  588. package/esm/modules/dumbbell.src.js +72 -27
  589. package/esm/modules/export-data.js +2 -2
  590. package/esm/modules/export-data.src.js +42 -23
  591. package/esm/modules/exporting.js +2 -2
  592. package/esm/modules/exporting.src.js +83 -37
  593. package/esm/modules/flowmap.js +3 -2
  594. package/esm/modules/flowmap.src.js +43 -18
  595. package/esm/modules/full-screen.js +2 -2
  596. package/esm/modules/full-screen.src.js +22 -8
  597. package/esm/modules/funnel.js +2 -2
  598. package/esm/modules/funnel.src.js +73 -42
  599. package/esm/modules/funnel3d.js +2 -2
  600. package/esm/modules/funnel3d.src.js +35 -20
  601. package/esm/modules/gantt.js +2 -2
  602. package/esm/modules/gantt.src.js +542 -100
  603. package/esm/modules/geoheatmap.js +2 -2
  604. package/esm/modules/geoheatmap.src.js +35 -21
  605. package/esm/modules/grid-axis.js +2 -2
  606. package/esm/modules/grid-axis.src.js +33 -12
  607. package/esm/modules/heatmap.js +2 -2
  608. package/esm/modules/heatmap.src.js +50 -33
  609. package/esm/modules/heikinashi.js +2 -2
  610. package/esm/modules/heikinashi.src.js +22 -8
  611. package/esm/modules/histogram-bellcurve.js +2 -2
  612. package/esm/modules/histogram-bellcurve.src.js +56 -25
  613. package/esm/modules/hollowcandlestick.js +2 -2
  614. package/esm/modules/hollowcandlestick.src.js +31 -17
  615. package/esm/modules/item-series.js +2 -2
  616. package/esm/modules/item-series.src.js +72 -13
  617. package/esm/modules/lollipop.js +2 -2
  618. package/esm/modules/lollipop.src.js +22 -8
  619. package/esm/modules/map.js +2 -2
  620. package/esm/modules/map.src.js +148 -91
  621. package/esm/modules/marker-clusters.js +2 -2
  622. package/esm/modules/marker-clusters.src.js +25 -13
  623. package/esm/modules/mouse-wheel-zoom.js +2 -2
  624. package/esm/modules/mouse-wheel-zoom.src.js +54 -13
  625. package/esm/modules/navigator.js +2 -2
  626. package/esm/modules/navigator.src.js +534 -74
  627. package/esm/modules/networkgraph.js +2 -2
  628. package/esm/modules/networkgraph.src.js +87 -46
  629. package/esm/modules/no-data-to-display.js +2 -2
  630. package/esm/modules/no-data-to-display.src.js +22 -8
  631. package/esm/modules/non-cartesian-zoom.js +2 -2
  632. package/esm/modules/non-cartesian-zoom.src.js +22 -8
  633. package/esm/modules/offline-exporting.js +2 -2
  634. package/esm/modules/offline-exporting.src.js +53 -12
  635. package/esm/modules/organization.js +4 -2
  636. package/esm/modules/organization.src.js +63 -19
  637. package/esm/modules/parallel-coordinates.js +2 -2
  638. package/esm/modules/parallel-coordinates.src.js +26 -9
  639. package/esm/modules/pareto.js +2 -2
  640. package/esm/modules/pareto.src.js +31 -16
  641. package/esm/modules/pathfinder.js +2 -2
  642. package/esm/modules/pathfinder.src.js +28 -13
  643. package/esm/modules/pattern-fill.js +2 -2
  644. package/esm/modules/pattern-fill.src.js +28 -12
  645. package/esm/modules/pictorial.js +2 -2
  646. package/esm/modules/pictorial.src.js +36 -19
  647. package/esm/modules/pointandfigure.js +2 -2
  648. package/esm/modules/pointandfigure.src.js +26 -11
  649. package/esm/modules/price-indicator.js +2 -2
  650. package/esm/modules/price-indicator.src.js +26 -11
  651. package/esm/modules/pyramid3d.js +2 -2
  652. package/esm/modules/pyramid3d.src.js +22 -8
  653. package/esm/modules/renko.js +2 -2
  654. package/esm/modules/renko.src.js +22 -8
  655. package/esm/modules/sankey.js +2 -2
  656. package/esm/modules/sankey.src.js +59 -31
  657. package/esm/modules/series-label.js +2 -2
  658. package/esm/modules/series-label.src.js +31 -18
  659. package/esm/modules/series-on-point.js +2 -2
  660. package/esm/modules/series-on-point.src.js +23 -9
  661. package/esm/modules/solid-gauge.js +2 -2
  662. package/esm/modules/solid-gauge.src.js +40 -20
  663. package/esm/modules/sonification.js +2 -2
  664. package/esm/modules/sonification.src.js +45 -30
  665. package/esm/modules/static-scale.js +2 -2
  666. package/esm/modules/static-scale.src.js +22 -8
  667. package/esm/modules/stock-tools.js +3 -3
  668. package/esm/modules/stock-tools.src.js +73 -27
  669. package/esm/modules/stock.js +2 -2
  670. package/esm/modules/stock.src.js +554 -122
  671. package/esm/modules/streamgraph.js +2 -2
  672. package/esm/modules/streamgraph.src.js +22 -8
  673. package/esm/modules/sunburst.js +2 -2
  674. package/esm/modules/sunburst.src.js +110 -45
  675. package/esm/modules/textpath.js +2 -2
  676. package/esm/modules/textpath.src.js +22 -8
  677. package/esm/modules/tiledwebmap.js +3 -3
  678. package/esm/modules/tiledwebmap.src.js +44 -19
  679. package/esm/modules/tilemap.js +2 -2
  680. package/esm/modules/tilemap.src.js +27 -12
  681. package/esm/modules/timeline.js +2 -2
  682. package/esm/modules/timeline.src.js +35 -14
  683. package/esm/modules/treegraph.js +2 -2
  684. package/esm/modules/treegraph.src.js +59 -27
  685. package/esm/modules/treegrid.js +2 -2
  686. package/esm/modules/treegrid.src.js +58 -27
  687. package/esm/modules/treemap.js +2 -2
  688. package/esm/modules/treemap.src.js +89 -36
  689. package/esm/modules/variable-pie.js +2 -2
  690. package/esm/modules/variable-pie.src.js +30 -13
  691. package/esm/modules/variwide.js +2 -2
  692. package/esm/modules/variwide.src.js +23 -9
  693. package/esm/modules/vector.js +2 -2
  694. package/esm/modules/vector.src.js +28 -16
  695. package/esm/modules/venn.js +2 -2
  696. package/esm/modules/venn.src.js +28 -13
  697. package/esm/modules/windbarb.js +2 -2
  698. package/esm/modules/windbarb.src.js +29 -17
  699. package/esm/modules/wordcloud.js +2 -2
  700. package/esm/modules/wordcloud.src.js +25 -9
  701. package/esm/modules/xrange.js +2 -2
  702. package/esm/modules/xrange.src.js +29 -15
  703. package/esm/standalone-navigator.js +5 -5
  704. package/esm/standalone-navigator.src.js +808 -570
  705. package/esm/themes/adaptive.js +3 -3
  706. package/esm/themes/adaptive.src.js +22 -8
  707. package/esm/themes/avocado.js +2 -2
  708. package/esm/themes/avocado.src.js +22 -8
  709. package/esm/themes/dark-unica.js +2 -2
  710. package/esm/themes/dark-unica.src.js +22 -8
  711. package/esm/themes/grid-light.js +2 -2
  712. package/esm/themes/grid-light.src.js +22 -8
  713. package/esm/themes/high-contrast.js +2 -2
  714. package/esm/themes/high-contrast.src.js +22 -8
  715. package/esm/themes/sand-signika.js +2 -2
  716. package/esm/themes/sand-signika.src.js +22 -8
  717. package/esm/themes/sunset.js +2 -2
  718. package/esm/themes/sunset.src.js +22 -8
  719. package/highcharts-3d.js +2 -2
  720. package/highcharts-3d.src.js +116 -92
  721. package/highcharts-autoload.d.ts +15 -5
  722. package/highcharts-autoload.js +4 -4
  723. package/highcharts-autoload.src.d.ts +15 -5
  724. package/highcharts-autoload.src.js +724 -499
  725. package/highcharts-gantt.js +4 -4
  726. package/highcharts-gantt.src.js +851 -590
  727. package/highcharts-more.d.ts +7 -3
  728. package/highcharts-more.js +2 -2
  729. package/highcharts-more.src.d.ts +7 -3
  730. package/highcharts-more.src.js +1313 -1095
  731. package/highcharts.d.ts +34795 -25647
  732. package/highcharts.js +4 -4
  733. package/highcharts.src.d.ts +34795 -25647
  734. package/highcharts.src.js +723 -498
  735. package/highmaps.js +4 -4
  736. package/highmaps.src.js +863 -583
  737. package/highstock.js +4 -4
  738. package/highstock.src.js +899 -619
  739. package/i18n/fr-FR.js +2 -2
  740. package/i18n/fr-FR.src.js +32 -16
  741. package/i18n/nb-NO.js +2 -2
  742. package/i18n/nb-NO.src.js +32 -16
  743. package/i18n/zh-CN.js +2 -2
  744. package/i18n/zh-CN.src.js +32 -16
  745. package/indicators/acceleration-bands.js +2 -2
  746. package/indicators/acceleration-bands.src.js +31 -16
  747. package/indicators/accumulation-distribution.js +2 -2
  748. package/indicators/accumulation-distribution.src.js +31 -16
  749. package/indicators/ao.js +2 -2
  750. package/indicators/ao.src.js +31 -16
  751. package/indicators/apo.js +2 -2
  752. package/indicators/apo.src.js +31 -16
  753. package/indicators/aroon-oscillator.js +2 -2
  754. package/indicators/aroon-oscillator.src.js +31 -16
  755. package/indicators/aroon.js +2 -2
  756. package/indicators/aroon.src.js +33 -18
  757. package/indicators/atr.js +2 -2
  758. package/indicators/atr.src.js +31 -16
  759. package/indicators/bollinger-bands.js +2 -2
  760. package/indicators/bollinger-bands.src.js +31 -16
  761. package/indicators/cci.js +2 -2
  762. package/indicators/cci.src.js +31 -16
  763. package/indicators/chaikin.js +2 -2
  764. package/indicators/chaikin.src.js +31 -16
  765. package/indicators/cmf.js +2 -2
  766. package/indicators/cmf.src.js +31 -16
  767. package/indicators/cmo.js +2 -2
  768. package/indicators/cmo.src.js +31 -16
  769. package/indicators/dema.js +2 -2
  770. package/indicators/dema.src.js +31 -16
  771. package/indicators/disparity-index.js +2 -2
  772. package/indicators/disparity-index.src.js +31 -16
  773. package/indicators/dmi.js +2 -2
  774. package/indicators/dmi.src.js +31 -16
  775. package/indicators/dpo.js +2 -2
  776. package/indicators/dpo.src.js +34 -18
  777. package/indicators/ichimoku-kinko-hyo.js +2 -2
  778. package/indicators/ichimoku-kinko-hyo.src.js +41 -26
  779. package/indicators/indicators-all.js +2 -2
  780. package/indicators/indicators-all.src.js +52 -37
  781. package/indicators/indicators.js +2 -2
  782. package/indicators/indicators.src.js +39 -24
  783. package/indicators/keltner-channels.js +2 -2
  784. package/indicators/keltner-channels.src.js +31 -16
  785. package/indicators/klinger.js +2 -2
  786. package/indicators/klinger.src.js +31 -16
  787. package/indicators/macd.js +2 -2
  788. package/indicators/macd.src.js +31 -16
  789. package/indicators/mfi.js +2 -2
  790. package/indicators/mfi.src.js +31 -16
  791. package/indicators/momentum.js +2 -2
  792. package/indicators/momentum.src.js +31 -16
  793. package/indicators/natr.js +2 -2
  794. package/indicators/natr.src.js +31 -16
  795. package/indicators/obv.js +2 -2
  796. package/indicators/obv.src.js +31 -16
  797. package/indicators/pivot-points.js +2 -2
  798. package/indicators/pivot-points.src.js +31 -16
  799. package/indicators/ppo.js +2 -2
  800. package/indicators/ppo.src.js +31 -16
  801. package/indicators/price-channel.js +2 -2
  802. package/indicators/price-channel.src.js +31 -16
  803. package/indicators/price-envelopes.js +2 -2
  804. package/indicators/price-envelopes.src.js +31 -16
  805. package/indicators/psar.js +2 -2
  806. package/indicators/psar.src.js +31 -16
  807. package/indicators/regressions.js +2 -2
  808. package/indicators/regressions.src.js +31 -16
  809. package/indicators/roc.js +2 -2
  810. package/indicators/roc.src.js +31 -16
  811. package/indicators/rsi.js +2 -2
  812. package/indicators/rsi.src.js +32 -17
  813. package/indicators/slow-stochastic.js +2 -2
  814. package/indicators/slow-stochastic.src.js +31 -16
  815. package/indicators/stochastic.js +2 -2
  816. package/indicators/stochastic.src.js +31 -16
  817. package/indicators/supertrend.js +2 -2
  818. package/indicators/supertrend.src.js +31 -16
  819. package/indicators/tema.js +2 -2
  820. package/indicators/tema.src.js +31 -16
  821. package/indicators/trendline.js +2 -2
  822. package/indicators/trendline.src.js +31 -16
  823. package/indicators/trix.js +2 -2
  824. package/indicators/trix.src.js +31 -16
  825. package/indicators/volume-by-price.js +2 -2
  826. package/indicators/volume-by-price.src.js +32 -18
  827. package/indicators/vwap.js +2 -2
  828. package/indicators/vwap.src.js +31 -16
  829. package/indicators/williams-r.js +2 -2
  830. package/indicators/williams-r.src.js +31 -16
  831. package/indicators/wma.js +2 -2
  832. package/indicators/wma.src.js +31 -16
  833. package/indicators/zigzag.js +2 -2
  834. package/indicators/zigzag.src.js +31 -16
  835. package/modules/accessibility.d.ts +47 -0
  836. package/modules/accessibility.js +2 -2
  837. package/modules/accessibility.src.d.ts +47 -0
  838. package/modules/accessibility.src.js +603 -130
  839. package/modules/annotations-advanced.js +11 -11
  840. package/modules/annotations-advanced.src.js +246 -183
  841. package/modules/annotations.js +11 -11
  842. package/modules/annotations.src.js +206 -165
  843. package/modules/arc-diagram.js +2 -2
  844. package/modules/arc-diagram.src.js +58 -42
  845. package/modules/arrow-symbols.js +2 -2
  846. package/modules/arrow-symbols.src.js +28 -13
  847. package/modules/boost-canvas.js +2 -2
  848. package/modules/boost-canvas.src.js +69 -38
  849. package/modules/boost.js +2 -2
  850. package/modules/boost.src.js +81 -37
  851. package/modules/broken-axis.js +2 -2
  852. package/modules/broken-axis.src.js +36 -20
  853. package/modules/bullet.js +2 -2
  854. package/modules/bullet.src.js +50 -28
  855. package/modules/coloraxis.js +2 -2
  856. package/modules/coloraxis.src.js +65 -38
  857. package/modules/contour.js +5 -5
  858. package/modules/contour.src.js +91 -44
  859. package/modules/current-date-indicator.js +2 -2
  860. package/modules/current-date-indicator.src.js +28 -13
  861. package/modules/cylinder.js +2 -2
  862. package/modules/cylinder.src.js +67 -48
  863. package/modules/data-sorting.js +2 -2
  864. package/modules/data-sorting.src.js +28 -13
  865. package/modules/data-tools.js +2 -2
  866. package/modules/data-tools.src.js +50 -18
  867. package/modules/data.js +2 -2
  868. package/modules/data.src.js +50 -35
  869. package/modules/datagrouping.js +2 -2
  870. package/modules/datagrouping.src.js +42 -26
  871. package/modules/debugger.js +2 -2
  872. package/modules/debugger.src.js +28 -13
  873. package/modules/dependency-wheel.d.ts +7 -1
  874. package/modules/dependency-wheel.js +2 -2
  875. package/modules/dependency-wheel.src.d.ts +7 -1
  876. package/modules/dependency-wheel.src.js +440 -28
  877. package/modules/dotplot.js +2 -2
  878. package/modules/dotplot.src.js +36 -19
  879. package/modules/drag-panes.js +2 -2
  880. package/modules/drag-panes.src.js +28 -13
  881. package/modules/draggable-points.js +2 -2
  882. package/modules/draggable-points.src.js +30 -17
  883. package/modules/drilldown.js +2 -2
  884. package/modules/drilldown.src.js +49 -35
  885. package/modules/dumbbell.js +2 -2
  886. package/modules/dumbbell.src.js +86 -40
  887. package/modules/export-data.d.ts +66 -1
  888. package/modules/export-data.js +2 -2
  889. package/modules/export-data.src.d.ts +66 -1
  890. package/modules/export-data.src.js +56 -36
  891. package/modules/exporting.d.ts +0 -103
  892. package/modules/exporting.js +2 -2
  893. package/modules/exporting.src.d.ts +0 -103
  894. package/modules/exporting.src.js +97 -50
  895. package/modules/flowmap.js +3 -2
  896. package/modules/flowmap.src.js +52 -26
  897. package/modules/full-screen.js +2 -2
  898. package/modules/full-screen.src.js +31 -16
  899. package/modules/funnel.d.ts +3 -3
  900. package/modules/funnel.js +2 -2
  901. package/modules/funnel.src.d.ts +3 -3
  902. package/modules/funnel.src.js +82 -50
  903. package/modules/funnel3d.js +2 -2
  904. package/modules/funnel3d.src.js +56 -40
  905. package/modules/gantt.d.ts +47 -0
  906. package/modules/gantt.js +8 -8
  907. package/modules/gantt.src.d.ts +47 -0
  908. package/modules/gantt.src.js +602 -156
  909. package/modules/geoheatmap.d.ts +13 -12
  910. package/modules/geoheatmap.js +2 -2
  911. package/modules/geoheatmap.src.d.ts +13 -12
  912. package/modules/geoheatmap.src.js +44 -29
  913. package/modules/grid-axis.js +2 -2
  914. package/modules/grid-axis.src.js +42 -20
  915. package/modules/heatmap.d.ts +0 -12
  916. package/modules/heatmap.js +4 -4
  917. package/modules/heatmap.src.d.ts +0 -12
  918. package/modules/heatmap.src.js +102 -71
  919. package/modules/heikinashi.js +2 -2
  920. package/modules/heikinashi.src.js +31 -16
  921. package/modules/histogram-bellcurve.js +2 -2
  922. package/modules/histogram-bellcurve.src.js +70 -38
  923. package/modules/hollowcandlestick.js +2 -2
  924. package/modules/hollowcandlestick.src.js +45 -30
  925. package/modules/item-series.js +2 -2
  926. package/modules/item-series.src.js +81 -21
  927. package/modules/lollipop.js +2 -2
  928. package/modules/lollipop.src.js +36 -21
  929. package/modules/map.d.ts +0 -20
  930. package/modules/map.js +4 -4
  931. package/modules/map.src.d.ts +0 -20
  932. package/modules/map.src.js +212 -140
  933. package/modules/marker-clusters.js +2 -2
  934. package/modules/marker-clusters.src.js +31 -18
  935. package/modules/mouse-wheel-zoom.js +2 -2
  936. package/modules/mouse-wheel-zoom.src.js +60 -18
  937. package/modules/navigator.d.ts +47 -0
  938. package/modules/navigator.js +2 -2
  939. package/modules/navigator.src.d.ts +47 -0
  940. package/modules/navigator.src.js +556 -95
  941. package/modules/networkgraph.js +2 -2
  942. package/modules/networkgraph.src.js +99 -57
  943. package/modules/no-data-to-display.js +2 -2
  944. package/modules/no-data-to-display.src.js +31 -16
  945. package/modules/non-cartesian-zoom.js +2 -2
  946. package/modules/non-cartesian-zoom.src.js +28 -13
  947. package/modules/offline-exporting.js +2 -2
  948. package/modules/offline-exporting.src.js +67 -25
  949. package/modules/organization.js +4 -2
  950. package/modules/organization.src.js +75 -30
  951. package/modules/parallel-coordinates.js +2 -2
  952. package/modules/parallel-coordinates.src.js +37 -19
  953. package/modules/pareto.js +2 -2
  954. package/modules/pareto.src.js +45 -29
  955. package/modules/pathfinder.js +2 -2
  956. package/modules/pathfinder.src.js +37 -21
  957. package/modules/pattern-fill.js +2 -2
  958. package/modules/pattern-fill.src.js +34 -17
  959. package/modules/pictorial.js +2 -2
  960. package/modules/pictorial.src.js +62 -43
  961. package/modules/pointandfigure.js +2 -2
  962. package/modules/pointandfigure.src.js +35 -19
  963. package/modules/price-indicator.js +2 -2
  964. package/modules/price-indicator.src.js +32 -16
  965. package/modules/pyramid3d.js +2 -2
  966. package/modules/pyramid3d.src.js +31 -16
  967. package/modules/renko.js +2 -2
  968. package/modules/renko.src.js +34 -19
  969. package/modules/sankey.js +2 -2
  970. package/modules/sankey.src.js +80 -51
  971. package/modules/series-label.js +2 -2
  972. package/modules/series-label.src.js +42 -28
  973. package/modules/series-on-point.js +2 -2
  974. package/modules/series-on-point.src.js +40 -25
  975. package/modules/solid-gauge.d.ts +3 -3
  976. package/modules/solid-gauge.js +2 -2
  977. package/modules/solid-gauge.src.d.ts +3 -3
  978. package/modules/solid-gauge.src.js +54 -33
  979. package/modules/sonification.js +2 -2
  980. package/modules/sonification.src.js +56 -40
  981. package/modules/static-scale.js +2 -2
  982. package/modules/static-scale.src.js +28 -13
  983. package/modules/stock-tools.js +3 -3
  984. package/modules/stock-tools.src.js +90 -43
  985. package/modules/stock.d.ts +47 -0
  986. package/modules/stock.js +6 -6
  987. package/modules/stock.src.d.ts +47 -0
  988. package/modules/stock.src.js +650 -185
  989. package/modules/streamgraph.js +2 -2
  990. package/modules/streamgraph.src.js +31 -16
  991. package/modules/sunburst.js +2 -2
  992. package/modules/sunburst.src.js +137 -71
  993. package/modules/textpath.js +2 -2
  994. package/modules/textpath.src.js +28 -13
  995. package/modules/tiledwebmap.js +3 -3
  996. package/modules/tiledwebmap.src.js +65 -32
  997. package/modules/tilemap.js +2 -2
  998. package/modules/tilemap.src.js +41 -25
  999. package/modules/timeline.js +2 -2
  1000. package/modules/timeline.src.js +47 -25
  1001. package/modules/treegraph.js +2 -2
  1002. package/modules/treegraph.src.js +83 -50
  1003. package/modules/treegrid.js +2 -2
  1004. package/modules/treegrid.src.js +76 -44
  1005. package/modules/treemap.js +2 -2
  1006. package/modules/treemap.src.js +116 -62
  1007. package/modules/variable-pie.js +2 -2
  1008. package/modules/variable-pie.src.js +39 -21
  1009. package/modules/variwide.js +2 -2
  1010. package/modules/variwide.src.js +32 -17
  1011. package/modules/vector.js +2 -2
  1012. package/modules/vector.src.js +37 -24
  1013. package/modules/venn.js +2 -2
  1014. package/modules/venn.src.js +42 -26
  1015. package/modules/windbarb.js +2 -2
  1016. package/modules/windbarb.src.js +51 -38
  1017. package/modules/wordcloud.js +2 -2
  1018. package/modules/wordcloud.src.js +34 -17
  1019. package/modules/xrange.js +2 -2
  1020. package/modules/xrange.src.js +43 -28
  1021. package/options/abands.d.ts +722 -83
  1022. package/options/abands.src.d.ts +722 -83
  1023. package/options/ad.d.ts +381 -26
  1024. package/options/ad.src.d.ts +381 -26
  1025. package/options/ao.d.ts +744 -70
  1026. package/options/ao.src.d.ts +744 -70
  1027. package/options/apo.d.ts +381 -26
  1028. package/options/apo.src.d.ts +381 -26
  1029. package/options/arcdiagram.d.ts +80 -534
  1030. package/options/arcdiagram.src.d.ts +80 -534
  1031. package/options/area.d.ts +432 -129
  1032. package/options/area.src.d.ts +432 -129
  1033. package/options/arearange.d.ts +46 -4
  1034. package/options/arearange.src.d.ts +46 -4
  1035. package/options/areaspline.d.ts +141 -866
  1036. package/options/areaspline.src.d.ts +141 -866
  1037. package/options/areasplinerange.d.ts +221 -871
  1038. package/options/areasplinerange.src.d.ts +221 -871
  1039. package/options/aroon.d.ts +432 -124
  1040. package/options/aroon.src.d.ts +432 -124
  1041. package/options/aroonoscillator.d.ts +127 -689
  1042. package/options/aroonoscillator.src.d.ts +127 -689
  1043. package/options/atr.d.ts +381 -71
  1044. package/options/atr.src.d.ts +381 -71
  1045. package/options/bar.d.ts +103 -12
  1046. package/options/bar.src.d.ts +103 -12
  1047. package/options/bb.d.ts +87 -762
  1048. package/options/bb.src.d.ts +87 -762
  1049. package/options/bellcurve.d.ts +87 -364
  1050. package/options/bellcurve.src.d.ts +87 -364
  1051. package/options/boxplot.d.ts +82 -13
  1052. package/options/boxplot.src.d.ts +82 -13
  1053. package/options/bubble.d.ts +83 -874
  1054. package/options/bubble.src.d.ts +83 -874
  1055. package/options/bullet.d.ts +354 -717
  1056. package/options/bullet.src.d.ts +354 -717
  1057. package/options/candlestick.d.ts +99 -1214
  1058. package/options/candlestick.src.d.ts +99 -1214
  1059. package/options/cci.d.ts +381 -26
  1060. package/options/cci.src.d.ts +381 -26
  1061. package/options/chaikin.d.ts +728 -83
  1062. package/options/chaikin.src.d.ts +728 -83
  1063. package/options/cmf.d.ts +381 -26
  1064. package/options/cmf.src.d.ts +381 -26
  1065. package/options/cmo.d.ts +730 -79
  1066. package/options/cmo.src.d.ts +730 -79
  1067. package/options/column.d.ts +1265 -99
  1068. package/options/column.src.d.ts +1265 -99
  1069. package/options/columnpyramid.d.ts +102 -1158
  1070. package/options/columnpyramid.src.d.ts +102 -1158
  1071. package/options/columnrange.d.ts +952 -95
  1072. package/options/columnrange.src.d.ts +952 -95
  1073. package/options/contour.d.ts +31 -443
  1074. package/options/contour.src.d.ts +31 -443
  1075. package/options/cylinder.d.ts +100 -12
  1076. package/options/cylinder.src.d.ts +100 -12
  1077. package/options/dema.d.ts +80 -736
  1078. package/options/dema.src.d.ts +80 -736
  1079. package/options/dependencywheel.d.ts +599 -218
  1080. package/options/dependencywheel.src.d.ts +599 -218
  1081. package/options/disparityindex.d.ts +84 -365
  1082. package/options/disparityindex.src.d.ts +84 -365
  1083. package/options/dmi.d.ts +86 -775
  1084. package/options/dmi.src.d.ts +86 -775
  1085. package/options/dpo.d.ts +83 -365
  1086. package/options/dpo.src.d.ts +83 -365
  1087. package/options/dumbbell.d.ts +27 -4
  1088. package/options/dumbbell.src.d.ts +27 -4
  1089. package/options/ema.d.ts +81 -703
  1090. package/options/ema.src.d.ts +81 -703
  1091. package/options/errorbar.d.ts +91 -1161
  1092. package/options/errorbar.src.d.ts +91 -1161
  1093. package/options/flags.d.ts +98 -1192
  1094. package/options/flags.src.d.ts +98 -1192
  1095. package/options/flowmap.d.ts +48 -373
  1096. package/options/flowmap.src.d.ts +48 -373
  1097. package/options/funnel.d.ts +40 -3
  1098. package/options/funnel.src.d.ts +40 -3
  1099. package/options/gantt.d.ts +37 -40
  1100. package/options/gantt.src.d.ts +37 -40
  1101. package/options/gauge.d.ts +398 -472
  1102. package/options/gauge.src.d.ts +398 -472
  1103. package/options/geoheatmap.d.ts +462 -63
  1104. package/options/geoheatmap.src.d.ts +462 -63
  1105. package/options/heatmap.d.ts +31 -380
  1106. package/options/heatmap.src.d.ts +31 -380
  1107. package/options/heikinashi.d.ts +20 -2
  1108. package/options/heikinashi.src.d.ts +20 -2
  1109. package/options/hlc.d.ts +20 -2
  1110. package/options/hlc.src.d.ts +20 -2
  1111. package/options/ikh.d.ts +750 -103
  1112. package/options/ikh.src.d.ts +750 -103
  1113. package/options/item.d.ts +34 -74
  1114. package/options/item.src.d.ts +34 -74
  1115. package/options/keltnerchannels.d.ts +87 -708
  1116. package/options/keltnerchannels.src.d.ts +87 -708
  1117. package/options/klinger.d.ts +34 -365
  1118. package/options/klinger.src.d.ts +34 -365
  1119. package/options/line.d.ts +151 -851
  1120. package/options/line.src.d.ts +151 -851
  1121. package/options/linearregression.d.ts +960 -85
  1122. package/options/linearregression.src.d.ts +960 -85
  1123. package/options/linearregressionangle.d.ts +96 -699
  1124. package/options/linearregressionangle.src.d.ts +96 -699
  1125. package/options/linearregressionintercept.d.ts +381 -26
  1126. package/options/linearregressionintercept.src.d.ts +381 -26
  1127. package/options/linearregressionslope.d.ts +381 -26
  1128. package/options/linearregressionslope.src.d.ts +381 -26
  1129. package/options/lollipop.d.ts +214 -851
  1130. package/options/lollipop.src.d.ts +214 -851
  1131. package/options/macd.d.ts +386 -83
  1132. package/options/macd.src.d.ts +386 -83
  1133. package/options/map.d.ts +470 -36
  1134. package/options/map.src.d.ts +470 -36
  1135. package/options/mapbubble.d.ts +43 -532
  1136. package/options/mapbubble.src.d.ts +43 -532
  1137. package/options/mapline.d.ts +135 -58
  1138. package/options/mapline.src.d.ts +135 -58
  1139. package/options/mappoint.d.ts +205 -283
  1140. package/options/mappoint.src.d.ts +205 -283
  1141. package/options/mfi.d.ts +772 -82
  1142. package/options/mfi.src.d.ts +772 -82
  1143. package/options/momentum.d.ts +381 -71
  1144. package/options/momentum.src.d.ts +381 -71
  1145. package/options/natr.d.ts +776 -75
  1146. package/options/natr.src.d.ts +776 -75
  1147. package/options/networkgraph.d.ts +184 -207
  1148. package/options/networkgraph.src.d.ts +184 -207
  1149. package/options/obv.d.ts +426 -26
  1150. package/options/obv.src.d.ts +426 -26
  1151. package/options/ohlc.d.ts +77 -14
  1152. package/options/ohlc.src.d.ts +77 -14
  1153. package/options/packedbubble.d.ts +76 -696
  1154. package/options/packedbubble.src.d.ts +76 -696
  1155. package/options/pareto.d.ts +28 -364
  1156. package/options/pareto.src.d.ts +28 -364
  1157. package/options/pc.d.ts +724 -85
  1158. package/options/pc.src.d.ts +724 -85
  1159. package/options/pictorial.d.ts +1093 -58
  1160. package/options/pictorial.src.d.ts +1093 -58
  1161. package/options/pie.d.ts +595 -129
  1162. package/options/pie.src.d.ts +595 -129
  1163. package/options/pivotpoints.d.ts +34 -365
  1164. package/options/pivotpoints.src.d.ts +34 -365
  1165. package/options/pointandfigure.d.ts +10 -50
  1166. package/options/pointandfigure.src.d.ts +10 -50
  1167. package/options/polygon.d.ts +803 -74
  1168. package/options/polygon.src.d.ts +803 -74
  1169. package/options/ppo.d.ts +34 -365
  1170. package/options/ppo.src.d.ts +34 -365
  1171. package/options/priceenvelopes.d.ts +93 -719
  1172. package/options/priceenvelopes.src.d.ts +93 -719
  1173. package/options/psar.d.ts +34 -365
  1174. package/options/psar.src.d.ts +34 -365
  1175. package/options/pyramid.d.ts +35 -3
  1176. package/options/pyramid.src.d.ts +35 -3
  1177. package/options/renko.d.ts +25 -2
  1178. package/options/renko.src.d.ts +25 -2
  1179. package/options/roc.d.ts +78 -712
  1180. package/options/roc.src.d.ts +78 -712
  1181. package/options/rsi.d.ts +34 -365
  1182. package/options/rsi.src.d.ts +34 -365
  1183. package/options/sankey.d.ts +27 -5
  1184. package/options/sankey.src.d.ts +27 -5
  1185. package/options/scatter.d.ts +896 -290
  1186. package/options/scatter.src.d.ts +896 -290
  1187. package/options/series.d.ts +938 -83
  1188. package/options/series.src.d.ts +938 -83
  1189. package/options/slowstochastic.d.ts +381 -26
  1190. package/options/slowstochastic.src.d.ts +381 -26
  1191. package/options/sma.d.ts +729 -79
  1192. package/options/sma.src.d.ts +729 -79
  1193. package/options/solidgauge.d.ts +882 -105
  1194. package/options/solidgauge.src.d.ts +882 -105
  1195. package/options/spline.d.ts +389 -90
  1196. package/options/spline.src.d.ts +389 -90
  1197. package/options/stochastic.d.ts +83 -716
  1198. package/options/stochastic.src.d.ts +83 -716
  1199. package/options/streamgraph.d.ts +97 -364
  1200. package/options/streamgraph.src.d.ts +97 -364
  1201. package/options/sunburst.d.ts +87 -19
  1202. package/options/sunburst.src.d.ts +87 -19
  1203. package/options/supertrend.d.ts +77 -749
  1204. package/options/supertrend.src.d.ts +77 -749
  1205. package/options/tema.d.ts +83 -365
  1206. package/options/tema.src.d.ts +83 -365
  1207. package/options/tiledwebmap.d.ts +13 -72
  1208. package/options/tiledwebmap.src.d.ts +13 -72
  1209. package/options/tilemap.d.ts +372 -533
  1210. package/options/tilemap.src.d.ts +372 -533
  1211. package/options/timeline.d.ts +49 -154
  1212. package/options/timeline.src.d.ts +49 -154
  1213. package/options/treegraph.d.ts +174 -696
  1214. package/options/treegraph.src.d.ts +174 -696
  1215. package/options/treemap.d.ts +468 -1079
  1216. package/options/treemap.src.d.ts +468 -1079
  1217. package/options/trendline.d.ts +381 -26
  1218. package/options/trendline.src.d.ts +381 -26
  1219. package/options/trix.d.ts +712 -82
  1220. package/options/trix.src.d.ts +712 -82
  1221. package/options/variablepie.d.ts +130 -587
  1222. package/options/variablepie.src.d.ts +130 -587
  1223. package/options/variwide.d.ts +1123 -94
  1224. package/options/variwide.src.d.ts +1123 -94
  1225. package/options/vbp.d.ts +57 -383
  1226. package/options/vbp.src.d.ts +57 -383
  1227. package/options/vector.d.ts +22 -58
  1228. package/options/vector.src.d.ts +22 -58
  1229. package/options/venn.d.ts +32 -78
  1230. package/options/venn.src.d.ts +32 -78
  1231. package/options/vwap.d.ts +122 -703
  1232. package/options/vwap.src.d.ts +122 -703
  1233. package/options/waterfall.d.ts +139 -1150
  1234. package/options/waterfall.src.d.ts +139 -1150
  1235. package/options/williamsr.d.ts +381 -76
  1236. package/options/williamsr.src.d.ts +381 -76
  1237. package/options/windbarb.d.ts +39 -2
  1238. package/options/windbarb.src.d.ts +39 -2
  1239. package/options/wma.d.ts +78 -704
  1240. package/options/wma.src.d.ts +78 -704
  1241. package/options/wordcloud.d.ts +98 -595
  1242. package/options/wordcloud.src.d.ts +98 -595
  1243. package/options/xrange.d.ts +166 -1056
  1244. package/options/xrange.src.d.ts +166 -1056
  1245. package/options/zigzag.d.ts +34 -410
  1246. package/options/zigzag.src.d.ts +34 -410
  1247. package/package.json +1 -1
  1248. package/standalone-navigator.js +4 -4
  1249. package/standalone-navigator.src.js +829 -553
  1250. package/themes/adaptive.js +2 -2
  1251. package/themes/adaptive.src.js +33 -18
  1252. package/themes/avocado.js +2 -2
  1253. package/themes/avocado.src.js +28 -13
  1254. package/themes/dark-unica.js +2 -2
  1255. package/themes/dark-unica.src.js +28 -13
  1256. package/themes/grid-light.js +2 -2
  1257. package/themes/grid-light.src.js +28 -13
  1258. package/themes/high-contrast.js +2 -2
  1259. package/themes/high-contrast.src.js +28 -13
  1260. package/themes/sand-signika.js +2 -2
  1261. package/themes/sand-signika.src.js +28 -13
  1262. package/themes/sunset.js +2 -2
  1263. package/themes/sunset.src.js +28 -13
  1264. package/css/.stylelintrc.json +0 -8
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Highstock JS v13.0.0 (2026-06-11)
2
+ * Highstock JS v13.0.2 (2026-08-27)
3
3
  * @module highcharts/indicators/indicators-all
4
4
  * @requires highcharts
5
5
  * @requires highcharts/modules/stock
@@ -11,4 +11,4 @@
11
11
  *
12
12
  * A commercial license may be required depending on use,
13
13
  * see www.highcharts.com/license
14
- */import*as e from"../highcharts.js";import*as t from"../modules/datagrouping.js";var s,a={};a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var s in t)a.o(t,s)&&!a.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);let o=e.default;var i=a.n(o);let r=e.default.Chart;var n=a.n(r);let{setLength:l,splice:p}={convertToNumber:function(e,t){switch(typeof e){case"boolean":return+!!e;case"number":return isNaN(e)&&!t?null:e;default:return isNaN(e=parseFloat(`${e??""}`))&&!t?null:e}},setLength:function(e,t,s){return Array.isArray(e)?(e.length=t,e):e[s?"subarray":"slice"](0,t)},splice:function(e,t,s,a,o=[]){if(Array.isArray(e))return Array.isArray(o)||(o=Array.from(o)),{removed:e.splice(t,s,...o),array:e};let i=Object.getPrototypeOf(e).constructor,r=e[a?"subarray":"slice"](t,t+s),n=new i(e.length-s+o.length);return n.set(e.subarray(0,t),0),n.set(o,t),n.set(e.subarray(t+s),t+o.length),{removed:r,array:n}}},u=class{constructor(e={}){this.isDataTable=!0,this.autoId=!e.id,this.columns={},this.id=e.id||(0,o.uniqueKey)(),this.rowCount=0,this.versionTag=(0,o.uniqueKey)();let t=0;(0,o.objectEach)(e.columns||{},(e,s)=>{this.columns[s]=e.slice(),t=Math.max(t,e.length)}),this.applyRowCount(t)}applyRowCount(e){this.rowCount=e,(0,o.objectEach)(this.columns,(t,s)=>{t.length!==e&&(this.columns[s]=l(t,e))})}deleteRows(e,t=1){if(t>0&&e<this.rowCount){let s=0;(0,o.objectEach)(this.columns,(a,o)=>{this.columns[o]=p(a,e,t).array,s=a.length}),this.rowCount=s}(0,o.fireEvent)(this,"afterDeleteRows",{rowIndex:e,rowCount:t}),this.versionTag=(0,o.uniqueKey)()}getColumn(e,t){return this.columns[e]}getColumns(e,t){return(e||Object.keys(this.columns)).reduce((e,t)=>(e[t]=this.columns[t],e),{})}getRowObject(e,t){let s={},a=this.columns;for(let o of(t??(t=Object.keys(this.columns)),t))s[o]=a[o]?.[e];return s}setColumn(e,t=[],s=0,a){this.setColumns({[e]:t},s,a)}setColumns(e,t,s){let a=this.rowCount;(0,o.objectEach)(e,(e,t)=>{this.columns[t]=e.slice(),a=e.length}),this.applyRowCount(a),s?.silent||((0,o.fireEvent)(this,"afterSetColumns"),this.versionTag=(0,o.uniqueKey)())}setRow(e,t=this.rowCount,s,a){var i;let{columns:r}=this,n=s?this.rowCount+1:t+1,l=Object.keys(e);if(a?.addColumns!==!1)for(let e=0,t=l.length;e<t;e++)r[i=l[e]]||(r[i]=Array(this.rowCount));(0,o.objectEach)(r,(a,o)=>{a&&(s?a=p(a,t,0,!0,[e[o]]).array:a[t]=o in e?e[o]:a[t],r[o]=a)}),this.applyRowCount(Math.max(n,this.rowCount)),a?.silent||((0,o.fireEvent)(this,"afterSetRows",{rowIndex:t}),this.versionTag=(0,o.uniqueKey)())}getModified(){return this.modified||this}},h=e.default.SeriesRegistry;var d=a.n(h);let{line:c}=d().seriesTypes,m=(e,t)=>{let s=[],a=e.pointArrayMap,o=t&&e.dataTable.getModified()||e.dataTable;if(!a)return e.getColumn("y",t);let i=a.map(s=>e.getColumn(s,t));for(let e=0;e<o.rowCount;e++){let t=a.map((t,s)=>i[s]?.[e]||0);s.push(t)}return s};class g extends c{destroy(){this.dataEventsToUnbind.forEach(function(e){e()}),super.destroy.apply(this,arguments)}getName(){let e=[],t=this.name;return t||((this.nameComponents||[]).forEach(function(t,s){e.push(this.options.params[t]+(0,o.pick)(this.nameSuffixes[s],""))},this),t=(this.nameBase||this.type.toUpperCase())+(this.nameComponents?" ("+e.join(", ")+")":"")),t}getValues(e,t){let s=t.period,a=e.xData||[],i=e.yData,r=i.length,n=[],l=[],p=[],u,h=-1,d=0,c,m=0;if(!(a.length<s)){for((0,o.isArray)(i[0])&&(h=t.index?t.index:0);d<s-1;)m+=h<0?i[d]:i[d][h],d++;for(u=d;u<r;u++)m+=h<0?i[u]:i[u][h],c=[a[u],m/s],n.push(c),l.push(c[0]),p.push(c[1]),m-=h<0?i[u-d]:i[u-d][h];return{values:n,xData:l,yData:p}}}init(e,t){let s=this;super.init.call(s,e,t);let a=(0,o.addEvent)(n(),"afterLinkSeries",function({isUpdating:t}){if(t)return;let a=!!s.dataEventsToUnbind.length;if(!s.linkedParent)return(0,o.error)("Series "+s.options.linkedTo+" not found! Check `linkedTo`.",!1,e);if(!a&&(s.dataEventsToUnbind.push((0,o.addEvent)(s.linkedParent,"updatedData",function(){s.recalculateValues()})),s.calculateOn.xAxis&&s.dataEventsToUnbind.push((0,o.addEvent)(s.linkedParent.xAxis,s.calculateOn.xAxis,function(){s.recalculateValues()}))),"init"===s.calculateOn.chart)s.closestPointRange||s.recalculateValues();else if(!a){let e=(0,o.addEvent)(s.chart,s.calculateOn.chart,function(){s.recalculateValues(),e()})}},{order:0});s.dataEventsToUnbind=[],s.eventsToUnbind.push(a)}recalculateValues(){let e=this.dataTable,t=this.dataTable.rowCount,s=!0,a,i,r=this.linkedParent.yData,n=this.linkedParent.processedYData;this.linkedParent.xData=this.linkedParent.getColumn("x"),this.linkedParent.yData=m(this.linkedParent),this.linkedParent.processedYData=m(this.linkedParent,!0);let l=this.linkedParent.options&&this.linkedParent.dataTable.rowCount&&this.getValues(this.linkedParent,this.options.params)||{values:[],xData:[],yData:[]};l.xData.length=l.values.length,delete this.linkedParent.xData,this.linkedParent.yData=r,this.linkedParent.processedYData=n;let p=this.pointArrayMap||["y"],h={};if(l.yData.forEach(e=>{p.forEach((t,s)=>{let a=h[t]||[];a.push((0,o.isArray)(e)?e[s]:e),h[t]||(h[t]=a)})}),t&&!this.hasGroupedData&&this.visible&&this.points)if(this.cropped){this.xAxis&&(a=this.xAxis.min,i=this.xAxis.max);let t=this.cropData(e,a,i);this.setData(t.modified,!1)}else(this.updateAllPoints||l.xData.length!==t-1&&l.xData.length!==t+1)&&(s=!1,this.setData(new u({columns:{x:l.xData,...h}}),!1));s&&(h.x=l.xData,l.values.reduce((e,t,s)=>(Object.keys(t).forEach(a=>{e[a]||(e[a]=[]),e[a][s]=t[a]}),e),h),e.setColumns(h),delete this.xColumn,delete this.xColumnIsNumbers),this.calculateOn.xAxis&&this.getColumn("x",!0).length&&(this.isDirty=!0,this.redraw()),this.isDirtyData=!!this.linkedSeries.length,(0,o.fireEvent)(this,"updatedData")}processData(){let e=this.options.compareToMain,t=this.linkedParent;super.processData.apply(this,arguments),this.dataModify&&t&&t.dataModify&&t.dataModify.compareValue&&e&&(this.dataModify.compareValue=t.dataModify.compareValue)}}g.defaultOptions=(0,o.merge)(c.defaultOptions,{name:void 0,tooltip:{valueDecimals:4},linkedTo:void 0,compareToMain:!1,params:{index:3,period:14}}),(0,o.extend)(g.prototype,{calculateOn:{chart:"init"},hasDerivedData:!0,nameComponents:["period"],nameSuffixes:[],useCommonDataGrouping:!0}),d().registerSeriesType("sma",g);let{sma:y}=d().seriesTypes;class f extends y{accumulatePeriodPoints(e,t,s){let a=0,o=0;for(;o<e;)a+=t<0?s[o]:s[o][t],o++;return a}calculateEma(e,t,s,a,i,r,n){let l=e[s-1],p=r<0?t[s-1]:t[s-1][r];return[l,void 0===i?n:(0,o.correctFloat)(p*a+i*(1-a))]}getValues(e,t){let s=t.period,a=e.xData,i=e.yData,r=i?i.length:0,n=2/(s+1),l=[],p=[],u=[],h,d,c,m=-1,g=0;if(!(r<s)){for((0,o.isArray)(i[0])&&(m=t.index?t.index:0),g=this.accumulatePeriodPoints(s,m,i)/s,c=s;c<r+1;c++)d=this.calculateEma(a,i,c,n,h,m,g),l.push(d),p.push(d[0]),u.push(d[1]),h=d[1];return{values:l,xData:p,yData:u}}}}f.defaultOptions=(0,o.merge)(y.defaultOptions,{params:{index:3,period:9}}),d().registerSeriesType("ema",f);let{sma:x}=d().seriesTypes;class v extends x{static populateAverage(e,t,s,a,o){let i=t[a][1],r=t[a][2],n=t[a][3],l=s[a],p=n===i&&n===r||i===r?0:(2*n-r-i)/(i-r)*l;return[e[a],p]}getValues(e,t){let s,a,i,r=t.period,n=e.xData,l=e.yData,p=t.volumeSeriesID,u=e.chart.get(p),h=u?.getColumn("y"),d=l?l.length:0,c=[],m=[],g=[];if(!(n.length<=r)||!d||4===l[0].length){if(!u)return void(0,o.error)("Series "+p+" not found! Check `volumeSeriesID`.",!0,e.chart);for(a=r;a<d;a++)s=c.length,i=v.populateAverage(n,l,h,a,r),s>0&&(i[1]+=c[s-1][1]),c.push(i),m.push(i[0]),g.push(i[1]);return{values:c,xData:m,yData:g}}}}v.defaultOptions=(0,o.merge)(x.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume"}}),(0,o.extend)(v.prototype,{nameComponents:!1,nameBase:"Accumulation/Distribution"}),d().registerSeriesType("ad",v);let{noop:D}=i(),{column:{prototype:A},sma:S}=d().seriesTypes;class b extends S{drawGraph(){let e,t=this.options,s=this.points,a=this.userOptions.color,o=t.greaterBarColor,i=t.lowerBarColor,r=s[0];if(!a&&r)for(e=1,r.color=o;e<s.length;e++)s[e].y>s[e-1].y?s[e].color=o:s[e].y<s[e-1].y?s[e].color=i:s[e].color=s[e-1].color}getValues(e){let t=e.xData||[],s=e.yData||[],a=s.length,i=[],r=[],n=[],l,p,u,h,d,c,m,g,y=0,f=0;if(!(t.length<=34)&&(0,o.isArray)(s[0])&&4===s[0].length){for(m=0;m<33;m++)c=(s[m][1]+s[m][2])/2,m>=29&&(f=(0,o.correctFloat)(f+c)),y=(0,o.correctFloat)(y+c);for(g=33;g<a;g++)c=(s[g][1]+s[g][2])/2,f=(0,o.correctFloat)(f+c),y=(0,o.correctFloat)(y+c),l=f/5,p=y/34,u=(0,o.correctFloat)(l-p),i.push([t[g],u]),r.push(t[g]),n.push(u),h=g+1-5,d=g+1-34,f=(0,o.correctFloat)(f-(s[h][1]+s[h][2])/2),y=(0,o.correctFloat)(y-(s[d][1]+s[d][2])/2);return{values:i,xData:r,yData:n}}}}b.defaultOptions=(0,o.merge)(S.defaultOptions,{params:{index:void 0,period:void 0},greaterBarColor:"var(--highcharts-positive-color)",lowerBarColor:"var(--highcharts-negative-color)",threshold:0,groupPadding:.2,pointPadding:.2,crisp:!1,states:{hover:{halo:{size:0}}}}),(0,o.extend)(b.prototype,{nameBase:"AO",nameComponents:void 0,markerAttribs:D,getColumnMetrics:A.getColumnMetrics,crispCol:A.crispCol,translate:A.translate,drawPoints:A.drawPoints}),d().registerSeriesType("ao",b);let{sma:{prototype:C}}=d().seriesTypes;!function(e){let t=["bottomLine"],s=["top","bottom"],a=["top"];function i(e){return"plot"+e.charAt(0).toUpperCase()+e.slice(1)}function r(e,t){let s=[];return(e.pointArrayMap||[]).forEach(e=>{e!==t&&s.push(i(e))}),s}function n(){let e=this,t=e.pointValKey,s=e.linesApiNames,a=e.areaLinesNames,n=e.points,l=e.options,p=e.graph,u={options:{gapSize:l.gapSize}},h=[],d=r(e,t),c=n.length,m;if(d.forEach((e,t)=>{for(h[t]=[];c--;)m=n[c],h[t].push({x:m.x,plotX:m.plotX,plotY:m[e],isNull:!(0,o.defined)(m[e])});c=n.length}),e.userOptions.fillColor&&a.length){let t=h[d.indexOf(i(a[0]))],s=1===a.length?n:h[d.indexOf(i(a[1]))],r=e.color;e.points=s,e.nextPoints=t,e.color=e.userOptions.fillColor,e.options=(0,o.merge)(n,u),e.graph=e.area,e.fillGraph=!0,C.drawGraph.call(e),e.area=e.graph,delete e.nextPoints,delete e.fillGraph,e.color=r}s.forEach((t,s)=>{h[s]?(e.points=h[s],l[t]?e.options=(0,o.merge)(l[t].styles,u):(0,o.error)('Error: "There is no '+t+' in DOCS options declared. Check if linesApiNames are consistent with your DOCS line names."'),e.graph=e["graph"+t],C.drawGraph.call(e),e["graph"+t]=e.graph):(0,o.error)('Error: "'+t+" doesn't have equivalent in pointArrayMap. To many elements in linesApiNames relative to pointArrayMap.\"")}),e.points=n,e.options=l,e.graph=p,C.drawGraph.call(e)}function l(e){let t,s=[],a=[];if(e=e||this.points,this.fillGraph&&this.nextPoints){if((t=C.getGraphPath.call(this,this.nextPoints))&&t.length){t[0][0]="L",s=C.getGraphPath.call(this,e),a=t.slice(0,s.length);for(let e=a.length-1;e>=0;e--)s.push(a[e])}}else s=C.getGraphPath.apply(this,arguments);return s}function p(e){let t=[];return(this.pointArrayMap||[]).forEach(s=>{t.push(e[s])}),t}function u(){let e=this.pointArrayMap,t=[],s;t=r(this),C.translate.apply(this,arguments),this.points.forEach(a=>{e.forEach((e,o)=>{s=a[e],this.dataModify&&(s=this.dataModify.modifyValue(s)),null!==s&&(a[t[o]]=this.yAxis.toPixels(s,!0))})})}e.compose=function(e){let o=e.prototype;return o.linesApiNames=o.linesApiNames||t.slice(),o.pointArrayMap=o.pointArrayMap||s.slice(),o.pointValKey=o.pointValKey||"top",o.areaLinesNames=o.areaLinesNames||a.slice(),o.drawGraph=n,o.getGraphPath=l,o.toYData=p,o.translate=u,e}}(s||(s={}));let T=s,{sma:P}=d().seriesTypes;function M(e,t){let s=e[0],a=0,o;for(o=1;o<e.length;o++)("max"===t&&e[o]>=s||"min"===t&&e[o]<=s)&&(s=e[o],a=o);return a}class V extends P{getValues(e,t){let s,a,i,r,n,l=t.period,p=e.xData,u=e.yData,h=u?u.length:0,d=[],c=[],m=[];for(r=l-1;r<h;r++)i=M((n=u.slice(r-l+1,r+2)).map(function(e){return(0,o.pick)(e[2],e)}),"min"),s=M(n.map(function(e){return(0,o.pick)(e[1],e)}),"max")/l*100,a=i/l*100,p[r+1]&&(d.push([p[r+1],s,a]),c.push(p[r+1]),m.push([s,a]));return{values:d,xData:c,yData:m}}}V.defaultOptions=(0,o.merge)(P.defaultOptions,{params:{index:void 0,period:25},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">●</span><b> {series.name}</b><br/>Aroon Up: {point.y}<br/>Aroon Down: {point.aroonDown}<br/>'},aroonDown:{styles:{lineWidth:1,lineColor:void 0}},dataGrouping:{approximation:"averages"}}),(0,o.extend)(V.prototype,{areaLinesNames:[],linesApiNames:["aroonDown"],nameBase:"Aroon",pointArrayMap:["y","aroonDown"],pointValKey:"y"}),T.compose(V),d().registerSeriesType("aroon",V);let{aroon:k}=d().seriesTypes;class O extends k{getValues(e,t){let s,a,o=[],i=[],r=[],n=super.getValues.call(this,e,t);for(a=0;a<n.yData.length;a++)s=n.yData[a][0]-n.yData[a][1],o.push([n.xData[a],s]),i.push(n.xData[a]),r.push(s);return{values:o,xData:i,yData:r}}}O.defaultOptions=(0,o.merge)(k.defaultOptions,{tooltip:{pointFormat:'<span style="color:{point.color}">●</span><b> {series.name}</b>: {point.y}'}}),(0,o.extend)(O.prototype,{nameBase:"Aroon Oscillator",linesApiNames:[],pointArrayMap:["y"],pointValKey:"y"}),T.compose(k),d().registerSeriesType("aroonoscillator",O);let{sma:L}=d().seriesTypes;function w(e,t){return Math.max(e[1]-e[2],void 0===t?0:Math.abs(e[1]-t[3]),void 0===t?0:Math.abs(e[2]-t[3]))}class E extends L{getValues(e,t){let s=t.period,a=e.xData,i=e.yData,r=i?i.length:0,n=[[a[0],i[0]]],l=[],p=[],u=[],h,d,c=0,m=1,g=0;if(!(a.length<=s)&&(0,o.isArray)(i[0])&&4===i[0].length){for(d=1;d<=r;d++){var y,f,x,v,D;!function(e,t,s,a){let o=t[a],i=s[a];e.push([o,i])}(n,a,i,d),s<m?(c=(y=a,f=i,x=d,v=s,D=c,h=[y[x-1],(D*(v-1)+w(f[x-1],f[x-2]))/v])[1],l.push(h),p.push(h[0]),u.push(h[1])):(s===m?(c=g/(d-1),l.push([a[d-1],c]),p.push(a[d-1]),u.push(c)):g+=w(i[d-1],i[d-2]),m++)}return{values:l,xData:p,yData:u}}}}E.defaultOptions=(0,o.merge)(L.defaultOptions,{params:{index:void 0}}),d().registerSeriesType("atr",E);let{sma:I}=d().seriesTypes;class N extends I{init(){d().seriesTypes.sma.prototype.init.apply(this,arguments),this.options=(0,o.merge)({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)}getValues(e,t){let s,a,i,r,n,l,p,u,h,c=t.period,m=t.standardDeviation,g=[],y=[],f=e.xData,x=e.yData,v=x?x.length:0,D=[];if(f.length<c)return;let A=(0,o.isArray)(x[0]);for(h=c;h<=v;h++)n=f.slice(h-c,h),l=x.slice(h-c,h),r=(u=d().seriesTypes.sma.prototype.getValues.call(this,{xData:n,yData:l},t)).xData[0],s=u.yData[0],p=function(e,t,s,a){let o=e.length,i=0,r,n=0;for(;i<o;i++)n+=(r=(s?e[i][t]:e[i])-a)*r;return Math.sqrt(n/=o-1)}(l,t.index,A,s),a=s+m*p,i=s-m*p,D.push([r,a,s,i]),g.push(r),y.push([a,s,i]);return{values:D,xData:g,yData:y}}}N.defaultOptions=(0,o.merge)(I.defaultOptions,{params:{period:20,standardDeviation:2,index:3},bottomLine:{styles:{lineWidth:1,lineColor:void 0}},topLine:{styles:{lineWidth:1,lineColor:void 0}},tooltip:{pointFormat:'<span style="color:{point.color}">●</span><b> {series.name}</b><br/>Top: {point.top}<br/>Middle: {point.middle}<br/>Bottom: {point.bottom}<br/>'},marker:{enabled:!1},dataGrouping:{approximation:"averages"}}),(0,o.extend)(N.prototype,{areaLinesNames:["top","bottom"],linesApiNames:["topLine","bottomLine"],nameComponents:["period","standardDeviation"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"}),T.compose(N),d().registerSeriesType("bb",N);let{sma:F}=d().seriesTypes;class B extends F{getValues(e,t){let s=t.period,a=e.xData,i=e.yData,r=i?i.length:0,n=[],l=[],p=[],u=[],h,d,c=[],m,g=1,y,f,x,v;if(!(a.length<=s)&&(0,o.isArray)(i[0])&&4===i[0].length){for(;g<s;)d=i[g-1],n.push((d[1]+d[2]+d[3])/3),g++;for(v=s;v<=r;v++)f=((d=i[v-1])[1]+d[2]+d[3])/3,m=n.push(f),y=(c=n.slice(m-s)).reduce(function(e,t){return e+t},0)/s,x=function(e,t){let s=e.length,a=0,o;for(o=0;o<s;o++)a+=Math.abs(t-e[o]);return a}(c,y)/s,h=(f-y)/(.015*x),l.push([a[v-1],h]),p.push(a[v-1]),u.push(h);return{values:l,xData:p,yData:u}}}}B.defaultOptions=(0,o.merge)(F.defaultOptions,{params:{index:void 0}}),d().registerSeriesType("cci",B);let{sma:G}=d().seriesTypes;class W extends G{constructor(){super(...arguments),this.nameBase="Chaikin Money Flow"}isValid(){let e=this.chart,t=this.options,s=this.linkedParent,a=this.volumeSeries||(this.volumeSeries=e.get(t.params.volumeSeriesID)),o=s?.pointArrayMap?.length===4;function i(e){return e.dataTable.rowCount>=t.params.period}return!!(s&&a&&i(s)&&i(a)&&o)}getValues(e,t){if(this.isValid())return this.getMoneyFlow(e.xData,e.yData,this.volumeSeries.getColumn("y"),t.period)}getMoneyFlow(e,t,s,a){let o=t.length,i=[],r=[],n=[],l=[],p,u,h=-1,d=0,c=0;function m(e,t){let s=e[1],a=e[2],o=e[3];return null!==t&&null!==s&&null!==a&&null!==o&&s!==a?(o-a-(s-o))/(s-a)*t:(h=p,null)}if(a>0&&a<=o){for(p=0;p<a;p++)i[p]=m(t[p],s[p]),d+=s[p],c+=i[p];for(r.push(e[p-1]),n.push(p-h>=a&&0!==d?c/d:null),l.push([r[0],n[0]]);p<o;p++)i[p]=m(t[p],s[p]),d-=s[p-a],d+=s[p],c-=i[p-a],c+=i[p],u=[e[p],p-h>=a?c/d:null],r.push(u[0]),n.push(u[1]),l.push([u[0],u[1]])}return{values:l,xData:r,yData:n}}}W.defaultOptions=(0,o.merge)(G.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume"}}),d().registerSeriesType("cmf",W);let{sma:z}=d().seriesTypes;class Y extends z{calculateDM(e,t,s){let a,i=e[t][1],r=e[t][2],n=e[t-1][1],l=e[t-1][2];return a=i-n>l-r?s?Math.max(i-n,0):0:s?0:Math.max(l-r,0),(0,o.correctFloat)(a)}calculateDI(e,t){return e/t*100}calculateDX(e,t){return(0,o.correctFloat)(Math.abs(e-t)/Math.abs(e+t)*100)}smoothValues(e,t,s){return(0,o.correctFloat)(e-e/s+t)}getTR(e,t){return(0,o.correctFloat)(Math.max(e[1]-e[2],t?Math.abs(e[1]-t[3]):0,t?Math.abs(e[2]-t[3]):0))}getValues(e,t){let s=t.period,a=e.xData,i=e.yData,r=i?i.length:0,n=[],l=[],p=[];if(a.length<=s||!(0,o.isArray)(i[0])||4!==i[0].length)return;let u=0,h=0,d=0,c;for(c=1;c<r;c++){let e,t,o,r,m,g,y,f,x;c<=s?(r=this.calculateDM(i,c,!0),m=this.calculateDM(i,c),g=this.getTR(i[c],i[c-1]),u+=r,h+=m,d+=g,c===s&&(y=this.calculateDI(u,d),f=this.calculateDI(h,d),x=this.calculateDX(u,h),n.push([a[c],x,y,f]),l.push(a[c]),p.push([x,y,f]))):(r=this.calculateDM(i,c,!0),m=this.calculateDM(i,c),g=this.getTR(i[c],i[c-1]),e=this.smoothValues(u,r,s),t=this.smoothValues(h,m,s),o=this.smoothValues(d,g,s),u=e,h=t,d=o,y=this.calculateDI(u,d),f=this.calculateDI(h,d),x=this.calculateDX(u,h),n.push([a[c],x,y,f]),l.push(a[c]),p.push([x,y,f]))}return{values:n,xData:l,yData:p}}}Y.defaultOptions=(0,o.merge)(z.defaultOptions,{params:{index:void 0},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color: {point.color}">●</span><b> {series.name}</b><br/><span style="color: {point.color}">DX</span>: {point.y}<br/><span style="color: {point.series.options.plusDILine.styles.lineColor}">+DI</span>: {point.plusDI}<br/><span style="color: {point.series.options.minusDILine.styles.lineColor}">-DI</span>: {point.minusDI}<br/>'},plusDILine:{styles:{lineWidth:1,lineColor:"var(--highcharts-positive-color)"}},minusDILine:{styles:{lineWidth:1,lineColor:"var(--highcharts-negative-color)"}},dataGrouping:{approximation:"averages"}}),(0,o.extend)(Y.prototype,{areaLinesNames:[],nameBase:"DMI",linesApiNames:["plusDILine","minusDILine"],pointArrayMap:["y","plusDI","minusDI"],parallelArrays:["x","y","plusDI","minusDI"],pointValKey:"y"}),T.compose(Y),d().registerSeriesType("dmi",Y);let{sma:X}=d().seriesTypes;function R(e,t,s,a,i){let r=(0,o.pick)(t[s][a],t[s]);return i?(0,o.correctFloat)(e-r):(0,o.correctFloat)(e+r)}class K extends X{getValues(e,t){let s=t.period,a=t.index,i=Math.floor(s/2+1),r=s+i,n=e.xData||[],l=e.yData||[],p=l.length,u=[],h=[],d=[],c,m,g,y,f,x=0;if(!(n.length<=r)){for(y=0;y<s-1;y++)x=R(x,l,y,a);for(f=0;f<=p-r;f++)m=f+s-1,g=f+r-1,x=R(x,l,m,a),c=(0,o.pick)(l[g][a],l[g])-x/s,x=R(x,l,f,a,!0),u.push([n[g],c]),h.push(n[g]),d.push(c);return{values:u,xData:h,yData:d}}}}K.defaultOptions=(0,o.merge)(X.defaultOptions,{params:{index:0,period:21}}),(0,o.extend)(K.prototype,{nameBase:"DPO"}),d().registerSeriesType("dpo",K);let{ema:j}=d().seriesTypes;class U extends j{getValues(e,t){let s,a,i=t.periods,r=t.period,n=[],l=[],p=[];if(2!==i.length||i[1]<=i[0])return void(0,o.error)('Error: "Chaikin requires two periods. Notice, first period should be lower than the second one."');let u=v.prototype.getValues.call(this,e,{volumeSeriesID:t.volumeSeriesID,period:r});if(!u)return;let h=super.getValues.call(this,u,{period:i[0]}),d=super.getValues.call(this,u,{period:i[1]});if(!h||!d)return;let c=i[1]-i[0];for(a=0;a<d.yData.length;a++)s=(0,o.correctFloat)(h.yData[a+c]-d.yData[a]),n.push([d.xData[a],s]),l.push(d.xData[a]),p.push(s);return{values:n,xData:l,yData:p}}}U.defaultOptions=(0,o.merge)(j.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume",period:9,periods:[3,10]}}),(0,o.extend)(U.prototype,{nameBase:"Chaikin Osc",nameComponents:["periods"]}),d().registerSeriesType("chaikin",U);let{sma:Z}=d().seriesTypes;class q extends Z{getValues(e,t){let s=t.period,a=e.xData,i=e.yData,r=i?i.length:0,n=[],l=[],p=[],u,h=t.index,d;if(a.length<s)return;(0,o.isNumber)(i[0])?d=i:(h=Math.min(h,i[0].length-1),d=i.map(e=>e[h]));let c=0,m=0,g=0,y;for(let e=s;e>0;e--)d[e]>d[e-1]?m+=d[e]-d[e-1]:d[e]<d[e-1]&&(g+=d[e-1]-d[e]);for(y=m+g>0?100*(m-g)/(m+g):0,l.push(a[s]),p.push(y),n.push([a[s],y]),u=s+1;u<r;u++)c=Math.abs(d[u-s-1]-d[u-s]),d[u]>d[u-1]?m+=d[u]-d[u-1]:d[u]<d[u-1]&&(g+=d[u-1]-d[u]),d[u-s]>d[u-s-1]?m-=c:g-=c,y=m+g>0?100*(m-g)/(m+g):0,l.push(a[u]),p.push(y),n.push([a[u],y]);return{values:n,xData:l,yData:p}}}q.defaultOptions=(0,o.merge)(Z.defaultOptions,{params:{period:20,index:3}}),d().registerSeriesType("cmo",q);let{ema:$}=d().seriesTypes;class _ extends ${getEMA(e,t,s,a,o,i){return super.calculateEma(i||[],e,void 0===o?1:o,this.EMApercent,t,void 0===a?-1:a,s)}getValues(e,t){let s=t.period,a=[],i=2*s,r=e.xData,n=e.yData,l=n?n.length:0,p=[],u=[],h=[],d=0,c=0,m,g,y,f,x=-1,v,D=0;if(this.EMApercent=2/(s+1),!(l<2*s-1)){for((0,o.isArray)(n[0])&&(x=t.index?t.index:0),D=(d=super.accumulatePeriodPoints(s,x,n))/s,d=0,f=s;f<l+2;f++)f<l+1&&(c=this.getEMA(n,g,D,x,f)[1],a.push(c)),g=c,f<i?d+=c:(f===i&&(D=d/s),c=a[f-s-1],m=this.getEMA([c],y,D)[1],v=[r[f-2],(0,o.correctFloat)(2*c-m)],p.push(v),u.push(v[0]),h.push(v[1]),y=m);return{values:p,xData:u,yData:h}}}}_.defaultOptions=(0,o.merge)($.defaultOptions),d().registerSeriesType("dema",_);let{ema:H}=d().seriesTypes;class J extends H{getEMA(e,t,s,a,o,i){return super.calculateEma(i||[],e,void 0===o?1:o,this.EMApercent,t,void 0===a?-1:a,s)}getTemaPoint(e,t,s,a){return[e[a-3],(0,o.correctFloat)(3*s.level1-3*s.level2+s.level3)]}getValues(e,t){let s=t.period,a=2*s,i=3*s,r=e.xData,n=e.yData,l=n?n.length:0,p=[],u=[],h=[],d=[],c=[],m={},g=-1,y=0,f=0,x,v,D,A;if(this.EMApercent=2/(s+1),!(l<3*s-2)){for((0,o.isArray)(n[0])&&(g=t.index?t.index:0),f=(y=super.accumulatePeriodPoints(s,g,n))/s,y=0,D=s;D<l+3;D++)D<l+1&&(m.level1=this.getEMA(n,x,f,g,D)[1],d.push(m.level1)),x=m.level1,D<a?y+=m.level1:(D===a&&(f=y/s,y=0),m.level1=d[D-s-1],m.level2=this.getEMA([m.level1],v,f)[1],c.push(m.level2),v=m.level2,D<i?y+=m.level2:(D===i&&(f=y/s),D===l+1&&(m.level1=d[D-s-1],m.level2=this.getEMA([m.level1],v,f)[1],c.push(m.level2)),m.level1=d[D-s-2],m.level2=c[D-2*s-1],m.level3=this.getEMA([m.level2],m.prevLevel3,f)[1],(A=this.getTemaPoint(r,i,m,D))&&(p.push(A),u.push(A[0]),h.push(A[1])),m.prevLevel3=m.level3));return{values:p,xData:u,yData:h}}}}J.defaultOptions=(0,o.merge)(H.defaultOptions),d().registerSeriesType("tema",J);let{tema:Q}=d().seriesTypes;class ee extends Q{getTemaPoint(e,t,s,a){if(a>t)return[e[a-3],0!==s.prevLevel3?(0,o.correctFloat)(s.level3-s.prevLevel3)/s.prevLevel3*100:null]}}ee.defaultOptions=(0,o.merge)(Q.defaultOptions),d().registerSeriesType("trix",ee);let{ema:et}=d().seriesTypes;class es extends et{getValues(e,t){let s,a,i=t.periods,r=t.index,n=[],l=[],p=[];if(2!==i.length||i[1]<=i[0])return void(0,o.error)('Error: "APO requires two periods. Notice, first period should be lower than the second one."');let u=super.getValues.call(this,e,{index:r,period:i[0]}),h=super.getValues.call(this,e,{index:r,period:i[1]});if(!u||!h)return;let d=i[1]-i[0];for(a=0;a<h.yData.length;a++)s=u.yData[a+d]-h.yData[a],n.push([h.xData[a],s]),l.push(h.xData[a]),p.push(s);return{values:n,xData:l,yData:p}}}es.defaultOptions=(0,o.merge)(et.defaultOptions,{params:{period:void 0,periods:[10,20]}}),(0,o.extend)(es.prototype,{nameBase:"APO",nameComponents:["periods"]}),d().registerSeriesType("apo",es);let ea=t.default.dataGrouping.approximations;var eo=a.n(ea);let ei=e.default.Color,{parse:er}=a.n(ei)(),{sma:en}=d().seriesTypes;function el(e){return{high:e.reduce(function(e,t){return Math.max(e,t[1])},-1/0),low:e.reduce(function(e,t){return Math.min(e,t[2])},1/0)}}function ep(e){let t=e.indicator;t.points=e.points,t.nextPoints=e.nextPoints,t.color=e.color,t.options=(0,o.merge)(e.options.senkouSpan.styles,e.gap),t.graph=e.graph,t.fillGraph=!0,d().seriesTypes.sma.prototype.drawGraph.call(t)}class eu extends en{constructor(){super(...arguments),this.data=[],this.options={},this.points=[],this.graphCollection=[]}init(){super.init.apply(this,arguments),this.options=(0,o.merge)({tenkanLine:{styles:{lineColor:this.color}},kijunLine:{styles:{lineColor:this.color}},chikouLine:{styles:{lineColor:this.color}},senkouSpanA:{styles:{lineColor:this.color,fill:er(this.color).setOpacity(.5).get()}},senkouSpanB:{styles:{lineColor:this.color,fill:er(this.color).setOpacity(.5).get()}},senkouSpan:{styles:{fill:er(this.color).setOpacity(.2).get()}}},this.options)}toYData(e){return[e.tenkanSen,e.kijunSen,e.chikouSpan,e.senkouSpanA,e.senkouSpanB]}translate(){for(let e of(d().seriesTypes.sma.prototype.translate.apply(this),this.points))for(let t of this.pointArrayMap){let s=e[t];(0,o.isNumber)(s)&&(e["plot"+t]=this.yAxis.toPixels(s,!0),e.plotY=e["plot"+t],e.tooltipPos=[e.plotX,e["plot"+t]],e.isNull=!1)}}drawGraph(){let e=this,t=e.points,s=e.options,a=e.graph,i=e.color,r={options:{gapSize:s.gapSize}},n=e.pointArrayMap.length,l=[[],[],[],[],[],[]],p={tenkanLine:l[0],kijunLine:l[1],chikouLine:l[2],senkouSpanA:l[3],senkouSpanB:l[4],senkouSpan:l[5]},u=[],h=e.options.senkouSpan,c=h.color||h.styles.fill,m=h.negativeColor,g=[[],[]],y=[[],[]],f=t.length,x=0,v,D,A,S,b,C,T,P,M,V,k,O,L;for(e.ikhMap=p;f--;){for(A=0,D=t[f];A<n;A++)v=e.pointArrayMap[A],(0,o.defined)(D[v])&&l[A].push({plotX:D.plotX,plotY:D["plot"+v],isNull:!1});if(m&&f!==t.length-1){let e=p.senkouSpanB.length-1,t=function(e,t,s,a){if(e&&t&&s&&a){let o=t.plotX-e.plotX,i=t.plotY-e.plotY,r=a.plotX-s.plotX,n=a.plotY-s.plotY,l=e.plotX-s.plotX,p=e.plotY-s.plotY,u=(-i*l+o*p)/(-r*i+o*n),h=(r*p-n*l)/(-r*i+o*n);if(u>=0&&u<=1&&h>=0&&h<=1)return{plotX:e.plotX+h*o,plotY:e.plotY+h*i}}}(p.senkouSpanA[e-1],p.senkouSpanA[e],p.senkouSpanB[e-1],p.senkouSpanB[e]);if(t){let s={plotX:t.plotX,plotY:t.plotY,isNull:!1,intersectPoint:!0};p.senkouSpanA.splice(e,0,s),p.senkouSpanB.splice(e,0,s),u.push(e)}}}if((0,o.objectEach)(p,(t,a)=>{s[a]&&"senkouSpan"!==a&&(e.points=l[x],e.options=(0,o.merge)(s[a].styles,r),e.graph=e["graph"+a],e.fillGraph=!1,e.color=i,d().seriesTypes.sma.prototype.drawGraph.call(e),e["graph"+a]=e.graph),x++}),e.graphCollection)for(let t of e.graphCollection)e[t].destroy(),delete e[t];if(e.graphCollection=[],m&&p.senkouSpanA[0]&&p.senkouSpanB[0]){for(u.unshift(0),u.push(p.senkouSpanA.length-1),O=0;O<u.length-1;O++)if(S=u[O],b=u[O+1],C=p.senkouSpanB.slice(S,b+1),T=p.senkouSpanA.slice(S,b+1),Math.floor(C.length/2)>=1){let e=Math.floor(C.length/2);if(C[e].plotY===T[e].plotY){for(L=0,P=0,M=0;L<C.length;L++)P+=C[L].plotY,M+=T[L].plotY;g[k=P>M?0:1]=g[k].concat(C),y[k]=y[k].concat(T)}else g[k=C[e].plotY>T[e].plotY?0:1]=g[k].concat(C),y[k]=y[k].concat(T)}else g[k=C[0].plotY>T[0].plotY?0:1]=g[k].concat(C),y[k]=y[k].concat(T);["graphsenkouSpanColor","graphsenkouSpanNegativeColor"].forEach(function(t,a){g[a].length&&y[a].length&&(V=0===a?c:m,ep({indicator:e,points:g[a],nextPoints:y[a],color:V,options:s,gap:r,graph:e[t]}),e[t]=e.graph,e.graphCollection.push(t))})}else ep({indicator:e,points:p.senkouSpanB,nextPoints:p.senkouSpanA,color:c,options:s,gap:r,graph:e.graphsenkouSpan}),e.graphsenkouSpan=e.graph;delete e.nextPoints,delete e.fillGraph,e.points=t,e.options=s,e.graph=a,e.color=i}getGraphPath(e){let t=[],s,a=[];if(e=e||this.points,this.fillGraph&&this.nextPoints){if((s=d().seriesTypes.sma.prototype.getGraphPath.call(this,this.nextPoints))&&s.length){s[0][0]="L",t=d().seriesTypes.sma.prototype.getGraphPath.call(this,e),a=s.slice(0,t.length);for(let e=a.length-1;e>=0;e--)t.push(a[e])}}else t=d().seriesTypes.sma.prototype.getGraphPath.apply(this,arguments);return t}getValues(e,t){let s,a,i,r,n,l,p,u,h,d,c=t.period,m=t.periodTenkan,g=t.periodSenkouSpanB,y=e.xData,f=e.yData,x=e.xAxis,v=f&&f.length||0,D=(0,o.getClosestDistance)(x.series.map(e=>e.getColumn("x"))),A=[],S=[];if(y.length<=c||!(0,o.isArray)(f[0])||4!==f[0].length)return;let b=y[0]-c*D;for(n=0;n<c;n++)S.push(b+n*D);for(n=0;n<v;n++)n>=m&&(l=((a=el(f.slice(n-m,n))).high+a.low)/2),n>=c&&(h=(l+(p=((i=el(f.slice(n-c,n))).high+i.low)/2))/2),n>=g&&(d=((r=el(f.slice(n-g,n))).high+r.low)/2),u=f[n][3],s=y[n],void 0===A[n]&&(A[n]=[]),void 0===A[n+c-1]&&(A[n+c-1]=[]),A[n+c-1][0]=l,A[n+c-1][1]=p,A[n+c-1][2]=void 0,void 0===A[n+1]&&(A[n+1]=[]),A[n+1][2]=u,n<=c&&(A[n+c-1][3]=void 0,A[n+c-1][4]=void 0),void 0===A[n+2*c-2]&&(A[n+2*c-2]=[]),A[n+2*c-2][3]=h,A[n+2*c-2][4]=d,S.push(s);for(n=1;n<=c;n++)S.push(s+n*D);return{values:A,xData:S,yData:A}}}eu.defaultOptions=(0,o.merge)(en.defaultOptions,{params:{index:void 0,period:26,periodTenkan:9,periodSenkouSpanB:52},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>TENKAN SEN: {point.tenkanSen:.3f}<br/>KIJUN SEN: {point.kijunSen:.3f}<br/>CHIKOU SPAN: {point.chikouSpan:.3f}<br/>SENKOU SPAN A: {point.senkouSpanA:.3f}<br/>SENKOU SPAN B: {point.senkouSpanB:.3f}<br/>'},tenkanLine:{styles:{lineWidth:1,lineColor:void 0}},kijunLine:{styles:{lineWidth:1,lineColor:void 0}},chikouLine:{styles:{lineWidth:1,lineColor:void 0}},senkouSpanA:{styles:{lineWidth:1,lineColor:void 0}},senkouSpanB:{styles:{lineWidth:1,lineColor:void 0}},senkouSpan:{styles:{fill:"rgba(255, 0, 0, 0.5)"}},dataGrouping:{approximation:"ichimoku-averages"}}),(0,o.extend)(eu.prototype,{pointArrayMap:["tenkanSen","kijunSen","chikouSpan","senkouSpanA","senkouSpanB"],pointValKey:"tenkanSen",nameComponents:["periodSenkouSpanB","period","periodTenkan"]}),eo()["ichimoku-averages"]=function(){let e,t=[];return[].forEach.call(arguments,function(s,a){t.push(eo().average(s)),e=!e&&void 0===t[a]}),e?void 0:t},d().registerSeriesType("ikh",eu);let{sma:eh}=d().seriesTypes;class ed extends eh{init(){d().seriesTypes.sma.prototype.init.apply(this,arguments),this.options=(0,o.merge)({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)}getValues(e,t){let s,a,i,r,n,l,p,u=t.period,h=t.periodATR,c=t.multiplierATR,m=t.index,g=e.yData,y=g?g.length:0,f=[],x=d().seriesTypes.ema.prototype.getValues(e,{period:u,index:m}),v=d().seriesTypes.atr.prototype.getValues(e,{period:h}),D=[],A=[];if(!(y<u)){for(p=u;p<=y;p++)n=x.values[p-u],l=v.values[p-h],r=n[0],a=(0,o.correctFloat)(n[1]+c*l[1]),i=(0,o.correctFloat)(n[1]-c*l[1]),s=n[1],f.push([r,a,s,i]),D.push(r),A.push([a,s,i]);return{values:f,xData:D,yData:A}}}}ed.defaultOptions=(0,o.merge)(eh.defaultOptions,{params:{index:0,period:20,periodATR:10,multiplierATR:2},bottomLine:{styles:{lineWidth:1,lineColor:void 0}},topLine:{styles:{lineWidth:1,lineColor:void 0}},tooltip:{pointFormat:'<span style="color:{point.color}">●</span><b> {series.name}</b><br/>Upper Channel: {point.top}<br/>EMA({series.options.params.period}): {point.middle}<br/>Lower Channel: {point.bottom}<br/>'},marker:{enabled:!1},dataGrouping:{approximation:"averages"},lineWidth:1}),(0,o.extend)(ed.prototype,{nameBase:"Keltner Channels",areaLinesNames:["top","bottom"],nameComponents:["period","periodATR","multiplierATR"],linesApiNames:["topLine","bottomLine"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"}),T.compose(ed),d().registerSeriesType("keltnerchannels",ed);let{ema:ec,sma:em}=d().seriesTypes;class eg extends em{calculateTrend(e,t){return e[t][1]+e[t][2]+e[t][3]>e[t-1][1]+e[t-1][2]+e[t-1][3]?1:-1}isValidData(e){let t=this.chart,s=this.options,a=this.linkedParent,i=(0,o.isArray)(e)&&4===e.length,r=this.volumeSeries||(this.volumeSeries=t.get(s.params.volumeSeriesID));return r||(0,o.error)("Series "+s.params.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,a.chart),!!([a,r].every(function(e){return e&&e.dataTable.rowCount>=s.params.slowAvgPeriod})&&i)}getCM(e,t,s,a,i){return(0,o.correctFloat)(t+(s===a?e:i))}getDM(e,t){return(0,o.correctFloat)(e-t)}getVolumeForce(e){let t=[],s=0,a,o=1,i=0,r=e[0][1]-e[0][2],n=0,l;for(;o<e.length;o++)l=this.calculateTrend(e,o),a=this.getDM(e[o][1],e[o][2]),s=this.getCM(i,a,l,n,r),t.push([this.volumeSeries.getColumn("y")[o]*l*Math.abs(2*(a/s-1))*100]),n=l,i=s,r=a;return t}getEMA(e,t,s,a,o,i,r){return ec.prototype.calculateEma(r||[],e,void 0===i?1:i,a,t,void 0===o?-1:o,s)}getSMA(e,t,s){return ec.prototype.accumulatePeriodPoints(e,t,s)/e}getValues(e,t){let s=[],a=e.xData,i=e.yData,r=[],n=[],l=[],p,u=0,h=0,d,c,m,g=null;if(!this.isValidData(i[0]))return;let y=this.getVolumeForce(i),f=this.getSMA(t.fastAvgPeriod,0,y),x=this.getSMA(t.slowAvgPeriod,0,y),v=2/(t.fastAvgPeriod+1),D=2/(t.slowAvgPeriod+1);for(;u<i.length;u++)u>=t.fastAvgPeriod&&(c=h=this.getEMA(y,c,f,v,0,u,a)[1]),u>=t.slowAvgPeriod&&(m=d=this.getEMA(y,m,x,D,0,u,a)[1],l.push(p=(0,o.correctFloat)(h-d)),l.length>=t.signalPeriod&&(g=l.slice(-t.signalPeriod).reduce((e,t)=>e+t)/t.signalPeriod),s.push([a[u],p,g]),r.push(a[u]),n.push([p,g]));return{values:s,xData:r,yData:n}}}eg.defaultOptions=(0,o.merge)(em.defaultOptions,{params:{fastAvgPeriod:34,slowAvgPeriod:55,signalPeriod:13,volumeSeriesID:"volume"},signalLine:{styles:{lineWidth:1,lineColor:"#ff0000"}},dataGrouping:{approximation:"averages"},tooltip:{pointFormat:'<span style="color: {point.color}">●</span><b> {series.name}</b><br/><span style="color: {point.color}">Klinger</span>: {point.y}<br/><span style="color: {point.series.options.signalLine.styles.lineColor}">Signal</span>: {point.signal}<br/>'}}),(0,o.extend)(eg.prototype,{areaLinesNames:[],linesApiNames:["signalLine"],nameBase:"Klinger",nameComponents:["fastAvgPeriod","slowAvgPeriod"],pointArrayMap:["y","signal"],parallelArrays:["x","y","signal"],pointValKey:"y"}),T.compose(eg),d().registerSeriesType("klinger",eg);let{noop:ey}=i(),{sma:ef}=d().seriesTypes;class ex extends ef{init(){d().seriesTypes.sma.prototype.init.apply(this,arguments);let e=this.color,t=this.colorIndex;this.options&&((0,o.defined)(this.colorIndex)&&(this.options.signalLine?.styles&&!this.options.signalLine.styles.lineColor&&(this.options.colorIndex=this.colorIndex+1,this.getCyclic("color",void 0,this.chart.options.colors),this.options.signalLine.styles.lineColor=this.color),this.options.macdLine?.styles&&!this.options.macdLine.styles.lineColor&&(this.options.colorIndex=this.colorIndex+1,this.getCyclic("color",void 0,this.chart.options.colors),this.options.macdLine.styles.lineColor=this.color)),this.macdZones={zones:this.options.macdLine?.zones,startIndex:0},this.signalZones={zones:this.macdZones.zones?.concat(this.options.signalLine.zones),startIndex:this.macdZones.zones?.length}),this.color=e,this.colorIndex=t}toYData(e){return[e.y,e.signal,e.MACD]}translate(){let e=this,t=["plotSignal","plotMACD"];i().seriesTypes.column.prototype.translate.apply(e),e.points.forEach(function(s){[s.signal,s.MACD].forEach(function(a,o){null!==a&&(s[t[o]]=e.yAxis.toPixels(a,!0))})})}destroy(){this.graph=null,this.graphmacd=this.graphmacd&&this.graphmacd.destroy(),this.graphsignal=this.graphsignal&&this.graphsignal.destroy(),d().seriesTypes.sma.prototype.destroy.apply(this,arguments)}drawGraph(){let e=this,t=e.points,s=e.options,a=e.zones,i={options:{gapSize:s.gapSize}},r=[[],[]],n,l=t.length;for(;l--;)n=t[l],(0,o.defined)(n.plotMACD)&&r[0].push({plotX:n.plotX,plotY:n.plotMACD,isNull:!(0,o.defined)(n.plotMACD)}),(0,o.defined)(n.plotSignal)&&r[1].push({plotX:n.plotX,plotY:n.plotSignal,isNull:!(0,o.defined)(n.plotMACD)});["macd","signal"].forEach((t,a)=>{e.points=r[a],e.options=(0,o.merge)(s[`${t}Line`]?.styles||{},i),e.graph=e[`graph${t}`],e.zones=(e[`${t}Zones`].zones||[]).slice(e[`${t}Zones`].startIndex||0),d().seriesTypes.sma.prototype.drawGraph.call(e),e[`graph${t}`]=e.graph}),e.points=t,e.options=s,e.zones=a}applyZones(){let e=this.zones;this.zones=this.signalZones.zones,d().seriesTypes.sma.prototype.applyZones.call(this),this.graphmacd&&this.options.macdLine.zones.length&&this.graphmacd.hide(),this.zones=e}getValues(e,t){let s=t.longPeriod-t.shortPeriod,a=[],i=[],r=[],n,l,p,u=0,h=[];if(!(e.xData.length<t.longPeriod+t.signalPeriod)){for(p=0,n=d().seriesTypes.ema.prototype.getValues(e,{period:t.shortPeriod,index:t.index}),l=d().seriesTypes.ema.prototype.getValues(e,{period:t.longPeriod,index:t.index}),n=n.values,l=l.values;p<=n.length;p++)(0,o.defined)(l[p])&&(0,o.defined)(l[p][1])&&(0,o.defined)(n[p+s])&&(0,o.defined)(n[p+s][0])&&a.push([n[p+s][0],0,null,n[p+s][1]-l[p][1]]);for(p=0;p<a.length;p++)i.push(a[p][0]),r.push([0,null,a[p][3]]);for(p=0,h=(h=d().seriesTypes.ema.prototype.getValues({xData:i,yData:r},{period:t.signalPeriod,index:2})).values;p<a.length;p++)a[p][0]>=h[0][0]&&(a[p][2]=h[u][1],r[p]=[0,h[u][1],a[p][3]],null===a[p][3]?(a[p][1]=0,r[p][0]=0):(a[p][1]=(0,o.correctFloat)(a[p][3]-h[u][1]),r[p][0]=(0,o.correctFloat)(a[p][3]-h[u][1])),u++);return{values:a,xData:i,yData:r}}}}ex.defaultOptions=(0,o.merge)(ef.defaultOptions,{params:{shortPeriod:12,longPeriod:26,signalPeriod:9,period:26},signalLine:{zones:[],styles:{lineWidth:1,lineColor:void 0}},macdLine:{zones:[],styles:{lineWidth:1,lineColor:void 0}},threshold:0,groupPadding:.1,pointPadding:.1,crisp:!1,states:{hover:{halo:{size:0}}},tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>Value: {point.MACD}<br/>Signal: {point.signal}<br/>Histogram: {point.y}<br/>'},dataGrouping:{approximation:"averages"},minPointLength:0}),(0,o.extend)(ex.prototype,{nameComponents:["longPeriod","shortPeriod","signalPeriod"],pointArrayMap:["y","signal","MACD"],parallelArrays:["x","y","signal","MACD"],pointValKey:"y",markerAttribs:ey,getColumnMetrics:i().seriesTypes.column.prototype.getColumnMetrics,crispCol:i().seriesTypes.column.prototype.crispCol,drawPoints:i().seriesTypes.column.prototype.drawPoints}),d().registerSeriesType("macd",ex);let{sma:ev}=d().seriesTypes;function eD(e){return e.reduce(function(e,t){return e+t})}function eA(e){return(e[1]+e[2]+e[3])/3}class eS extends ev{getValues(e,t){let s=t.period,a=e.xData,i=e.yData,r=i?i.length:0,n=t.decimals,l=e.chart.get(t.volumeSeriesID),p=l?.getColumn("y")||[],u=[],h=[],d=[],c=[],m=[],g,y,f,x,v,D,A=!1,S=1;if(!l)return void(0,o.error)("Series "+t.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,e.chart);if(!(a.length<=s)&&(0,o.isArray)(i[0])&&4===i[0].length&&p){for(g=eA(i[S]);S<s+1;)y=g,A=(g=eA(i[S]))>=y,f=g*p[S],c.push(A?f:0),m.push(A?0:f),S++;for(D=S-1;D<r;D++){var b;D>S-1&&(c.shift(),m.shift(),y=g,A=(g=eA(i[D]))>y,f=g*p[D],c.push(A?f:0),m.push(A?0:f)),x=eD(m),b=100-100/(1+eD(c)/x),v=parseFloat(b.toFixed(n)),u.push([a[D],v]),h.push(a[D]),d.push(v)}return{values:u,xData:h,yData:d}}}}eS.defaultOptions=(0,o.merge)(ev.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume",decimals:4}}),(0,o.extend)(eS.prototype,{nameBase:"Money Flow Index"}),d().registerSeriesType("mfi",eS);let{sma:eb}=d().seriesTypes;function eC(e,t,s,a,o){let i=t[s-1][o]-t[s-a-1][o];return[e[s-1],i]}class eT extends eb{getValues(e,t){let s,a,i=t.period,r=t.index,n=e.xData,l=e.yData,p=l?l.length:0,u=[],h=[],d=[];if(!(n.length<=i)&&(0,o.isArray)(l[0])){for(s=i+1;s<p;s++)a=eC(n,l,s,i,r),u.push(a),h.push(a[0]),d.push(a[1]);return a=eC(n,l,s,i,r),u.push(a),h.push(a[0]),d.push(a[1]),{values:u,xData:h,yData:d}}}}eT.defaultOptions=(0,o.merge)(eb.defaultOptions,{params:{index:3}}),(0,o.extend)(eT.prototype,{nameBase:"Momentum"}),d().registerSeriesType("momentum",eT);let{atr:eP}=d().seriesTypes;class eM extends eP{getValues(e,t){let s=super.getValues.apply(this,arguments),a=s.values.length,o=e.yData,i=0,r=t.period-1;if(s){for(;i<a;i++)s.yData[i]=s.values[i][1]/o[r][3]*100,s.values[i][1]=s.yData[i],r++;return s}}}eM.defaultOptions=(0,o.merge)(eP.defaultOptions,{tooltip:{valueSuffix:"%"}}),d().registerSeriesType("natr",eM);let{sma:eV}=d().seriesTypes;class ek extends eV{getValues(e,t){let s=e.chart.get(t.volumeSeriesID),a=e.xData,i=e.yData,r=[],n=[],l=[],p=!(0,o.isNumber)(i[0]),u=[],h=1,d=0,c=0,m=0,g=0,y;if(!s)return void(0,o.error)("Series "+t.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,e.chart);for(y=s.getColumn("y"),u=[a[0],d],m=p?i[0][3]:i[0],r.push(u),n.push(a[0]),l.push(u[1]);h<i.length;h++)c=(g=p?i[h][3]:i[h])>m?d+y[h]:g===m?d:d-y[h],u=[a[h],c],d=c,m=g,r.push(u),n.push(a[h]),l.push(u[1]);return{values:r,xData:n,yData:l}}}ek.defaultOptions=(0,o.merge)(eV.defaultOptions,{marker:{enabled:!1},params:{index:void 0,period:void 0,volumeSeriesID:"volume"},tooltip:{valueDecimals:0}}),(0,o.extend)(ek.prototype,{nameComponents:void 0}),d().registerSeriesType("obv",ek);let eO=d().seriesTypes.sma.prototype.pointClass;function eL(e,t){let s=e.series.pointArrayMap,a,o=s.length;for(d().seriesTypes.sma.prototype.pointClass.prototype[t].call(e);o--;)e[a="dataLabel"+s[o]]&&e[a].element&&e[a].destroy(),e[a]=null}let{sma:ew}=d().seriesTypes;class eE extends ew{toYData(e){return[e.P]}translate(){let e=this;super.translate.apply(e),e.points.forEach(function(t){e.pointArrayMap.forEach(function(s){(0,o.defined)(t[s])&&(t["plot"+s]=e.yAxis.toPixels(t[s],!0))})}),e.plotEndPoint=e.xAxis.toPixels(e.endPoint,!0)}getGraphPath(e){let t=this,s=[[],[],[],[],[],[],[],[],[]],a=t.pointArrayMap.length,i=t.plotEndPoint,r=[],n,l,p=e.length,u;for(;p--;){for(u=0,l=e[p];u<a;u++)n=t.pointArrayMap[u],(0,o.defined)(l[n])&&s[u].push({plotX:l.plotX,plotY:l["plot"+n],isNull:!1},{plotX:i,plotY:l["plot"+n],isNull:!1},{plotX:i,plotY:null,isNull:!0});i=l.plotX}return s.forEach(e=>{r=r.concat(super.getGraphPath.call(t,e))}),r}drawDataLabels(){let e,t,s,a,o=this,i=o.pointArrayMap;o.options.dataLabels.enabled&&(t=o.points.length,i.concat([!1]).forEach((r,n)=>{for(a=t;a--;)s=o.points[a],r?(s.y=s[r],s.pivotLine=r,s.plotY=s["plot"+r],e=s["dataLabel"+r],n&&(s["dataLabel"+i[n-1]]=s.dataLabel),s.dataLabels||(s.dataLabels=[]),s.dataLabels[0]=s.dataLabel=e=e&&e.element?e:null):s["dataLabel"+i[n-1]]=s.dataLabel;super.drawDataLabels.call(o)}))}getValues(e,t){let s,a,i,r,n,l,p,u=t.period,h=e.xData,d=e.yData,c=d?d.length:0,m=this[t.algorithm+"Placement"],g=[],y=[],f=[];if(!(h.length<u)&&(0,o.isArray)(d[0])&&4===d[0].length){for(p=u+1;p<=c+u;p+=u)i=h.slice(p-u-1,p),r=d.slice(p-u-1,p),a=i.length,s=i[a-1],l=m(this.getPivotAndHLC(r)),n=g.push([s].concat(l)),y.push(s),f.push(g[n-1].slice(1));return this.endPoint=i[0]+(s-i[0])/a*u,{values:g,xData:y,yData:f}}}getPivotAndHLC(e){let t=e[e.length-1][3],s=-1/0,a=1/0;return e.forEach(function(e){s=Math.max(s,e[1]),a=Math.min(a,e[2])}),[(s+a+t)/3,s,a,t]}standardPlacement(e){let t=e[1]-e[2];return[null,null,e[0]+t,2*e[0]-e[2],e[0],2*e[0]-e[1],e[0]-t,null,null]}camarillaPlacement(e){let t=e[1]-e[2];return[e[3]+1.5*t,e[3]+1.25*t,e[3]+1.1666*t,e[3]+1.0833*t,e[0],e[3]-1.0833*t,e[3]-1.1666*t,e[3]-1.25*t,e[3]-1.5*t]}fibonacciPlacement(e){let t=e[1]-e[2];return[null,e[0]+t,e[0]+.618*t,e[0]+.382*t,e[0],e[0]-.382*t,e[0]-.618*t,e[0]-t,null]}}eE.defaultOptions=(0,o.merge)(ew.defaultOptions,{params:{index:void 0,period:28,algorithm:"standard"},marker:{enabled:!1},enableMouseTracking:!1,dataLabels:{enabled:!0,format:"{point.pivotLine}"},dataGrouping:{approximation:"averages"}}),(0,o.extend)(eE.prototype,{nameBase:"Pivot Points",pointArrayMap:["R4","R3","R2","R1","P","S1","S2","S3","S4"],pointValKey:"P",pointClass:class extends eO{destroyElements(){eL(this,"destroyElements")}destroy(){eL(this,"destroyElements")}}}),d().registerSeriesType("pivotpoints",eE);let{ema:eI}=d().seriesTypes;class eN extends eI{getValues(e,t){let s,a,i=t.periods,r=t.index,n=[],l=[],p=[];if(2!==i.length||i[1]<=i[0])return void(0,o.error)('Error: "PPO requires two periods. Notice, first period should be lower than the second one."');let u=super.getValues.call(this,e,{index:r,period:i[0]}),h=super.getValues.call(this,e,{index:r,period:i[1]});if(!u||!h)return;let d=i[1]-i[0];for(a=0;a<h.yData.length;a++)s=(0,o.correctFloat)((u.yData[a+d]-h.yData[a])/h.yData[a]*100),n.push([h.xData[a],s]),l.push(h.xData[a]),p.push(s);return{values:n,xData:l,yData:p}}}eN.defaultOptions=(0,o.merge)(eI.defaultOptions,{params:{period:void 0,periods:[12,26]}}),(0,o.extend)(eN.prototype,{nameBase:"PPO",nameComponents:["periods"]}),d().registerSeriesType("ppo",eN);let eF=function(e,t,s){return e.reduce((e,a)=>[Math.min(e[0],a[t]),Math.max(e[1],a[s])],[Number.MAX_VALUE,-Number.MAX_VALUE])},{sma:eB}=d().seriesTypes;class eG extends eB{getValues(e,t){let s,a,o,i,r,n,l=t.period,p=e.xData,u=e.yData,h=u?u.length:0,d=[],c=[],m=[];if(!(h<l)){for(n=l;n<=h;n++)i=p[n-1],s=((a=(r=eF(u.slice(n-l,n),2,1))[1])+(o=r[0]))/2,d.push([i,a,s,o]),c.push(i),m.push([a,s,o]);return{values:d,xData:c,yData:m}}}}eG.defaultOptions=(0,o.merge)(eB.defaultOptions,{params:{index:void 0,period:20},lineWidth:1,topLine:{styles:{lineColor:"var(--highcharts-color-2)",lineWidth:1}},bottomLine:{styles:{lineColor:"var(--highcharts-color-8)",lineWidth:1}},dataGrouping:{approximation:"averages"}}),(0,o.extend)(eG.prototype,{areaLinesNames:["top","bottom"],nameBase:"Price Channel",nameComponents:["period"],linesApiNames:["topLine","bottomLine"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"}),T.compose(eG),d().registerSeriesType("pc",eG);let{sma:eW}=d().seriesTypes;class ez extends eW{init(){super.init.apply(this,arguments),this.options=(0,o.merge)({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)}getValues(e,t){let s,a,i,r,n,l,p,u,h=t.period,d=t.topBand,c=t.bottomBand,m=e.xData,g=e.yData,y=g?g.length:0,f=[],x=[],v=[];if(!(m.length<h)&&(0,o.isArray)(g[0])&&4===g[0].length){for(u=h;u<=y;u++)n=m.slice(u-h,u),l=g.slice(u-h,u),r=(p=super.getValues({xData:n,yData:l},t)).xData[0],a=(s=p.yData[0])*(1+d),i=s*(1-c),f.push([r,a,s,i]),x.push(r),v.push([a,s,i]);return{values:f,xData:x,yData:v}}}}ez.defaultOptions=(0,o.merge)(eW.defaultOptions,{marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">●</span><b> {series.name}</b><br/>Top: {point.top}<br/>Middle: {point.middle}<br/>Bottom: {point.bottom}<br/>'},params:{period:20,topBand:.1,bottomBand:.1},bottomLine:{styles:{lineWidth:1,lineColor:void 0}},topLine:{styles:{lineWidth:1}},dataGrouping:{approximation:"averages"}}),(0,o.extend)(ez.prototype,{areaLinesNames:["top","bottom"],linesApiNames:["topLine","bottomLine"],nameComponents:["period","topBand","bottomBand"],nameBase:"Price envelopes",pointArrayMap:["top","middle","bottom"],parallelArrays:["x","y","top","bottom"],pointValKey:"middle"}),T.compose(ez),d().registerSeriesType("priceenvelopes",ez);let{sma:eY}=d().seriesTypes;function eX(e,t){return parseFloat(e.toFixed(t))}class eR extends eY{constructor(){super(...arguments),this.nameComponents=void 0}getValues(e,t){let s=e.xData,a=e.yData,o=t.maxAccelerationFactor,i=t.increment,r=t.initialAccelerationFactor,n=t.decimals,l=t.index,p=[],u=[],h=[],d=t.initialAccelerationFactor,c,m=a[0][1],g,y,f,x=1,v,D,A,S,b=a[0][2],C,T,P,M;if(!(l>=a.length)){for(M=0;M<l;M++)m=Math.max(a[M][1],m),b=Math.min(a[M][2],eX(b,n));for(c=a[M][1]>b?1:-1,g=m-b,y=(d=t.initialAccelerationFactor)*g,p.push([s[l],b]),u.push(s[l]),h.push(eX(b,n)),M=l+1;M<a.length;M++)if(v=a[M-1][2],D=a[M-2][2],A=a[M-1][1],S=a[M-2][1],T=a[M][1],P=a[M][2],null!==D&&null!==S&&null!==v&&null!==A&&null!==T&&null!==P){var V,k,O,L,w,E,I,N,F,B,G,W,z,Y,X,R,K,j,U,Z,q;w=c,E=x,I=b,N=y,F=D,B=v,G=A,W=S,z=m,b=w===E?1===w?I+N<Math.min(F,B)?I+N:Math.min(F,B):I+N>Math.max(W,G)?I+N:Math.max(W,G):z,V=c,k=m,C=1===V?T>k?T:k:P<k?P:k,O=x,L=b,Y=f=1===O&&P>L||-1===O&&T>L?1:-1,X=c,R=C,K=m,j=d,U=i,Z=o,q=r,y=(d=Y===X?1===Y&&R>K||-1===Y&&R<K?j===Z?Z:eX(j+U,2):j:q)*(g=C-b),p.push([s[M],eX(b,n)]),u.push(s[M]),h.push(eX(b,n)),x=c,c=f,m=C}return{values:p,xData:u,yData:h}}}}eR.defaultOptions=(0,o.merge)(eY.defaultOptions,{lineWidth:0,marker:{enabled:!0},states:{hover:{lineWidthPlus:0}},params:{period:void 0,initialAccelerationFactor:.02,maxAccelerationFactor:.2,increment:.02,index:2,decimals:4}}),d().registerSeriesType("psar",eR);let{sma:eK}=d().seriesTypes;class ej extends eK{getValues(e,t){let s=t.period,a=e.xData,i=e.yData,r=i?i.length:0,n=[],l=[],p=[],u,h=-1,d;if(!(a.length<=s)){for((0,o.isArray)(i[0])&&(h=t.index),u=s;u<r;u++)d=function(e,t,s,a,o){let i,r;return r=o<0?(i=t[s-a])?(t[s]-i)/i*100:null:(i=t[s-a][o])?(t[s][o]-i)/i*100:null,[e[s],r]}(a,i,u,s,h),n.push(d),l.push(d[0]),p.push(d[1]);return{values:n,xData:l,yData:p}}}}ej.defaultOptions=(0,o.merge)(eK.defaultOptions,{params:{index:3,period:9}}),(0,o.extend)(ej.prototype,{nameBase:"Rate of Change"}),d().registerSeriesType("roc",ej);let{sma:eU}=d().seriesTypes;function eZ(e,t){return parseFloat(e.toFixed(t))}class eq extends eU{getValues(e,t){let s=t.period,a=e.xData,i=e.yData,r=i?i.length:0,n=t.decimals,l=[],p=[],u=[],h=0,d=0,c=t.index,m=1,g,y,f,x,v,D;if(!(a.length<s)){for((0,o.isNumber)(i[0])?D=i:(c=Math.min(c,i[0].length-1),D=i.map(e=>e[c]));m<s;)(y=eZ(D[m]-D[m-1],n))>0?h+=y:d+=Math.abs(y),m++;for(f=eZ(h/(s-1),n),x=eZ(d/(s-1),n),v=m;v<r;v++)(y=eZ(D[v]-D[v-1],n))>0?(h=y,d=0):(h=0,d=Math.abs(y)),f=eZ((f*(s-1)+h)/s,n),g=0===(x=eZ((x*(s-1)+d)/s,n))?100:0===f?0:eZ(100-100/(1+f/x),n),l.push([a[v],g]),p.push(a[v]),u.push(g);return{values:l,xData:p,yData:u}}}}eq.defaultOptions=(0,o.merge)(eU.defaultOptions,{params:{decimals:4,index:3}}),d().registerSeriesType("rsi",eq);let{sma:e$}=d().seriesTypes;class e_ extends e${init(){super.init.apply(this,arguments),this.options=(0,o.merge)({smoothedLine:{styles:{lineColor:this.color}}},this.options)}getValues(e,t){let s=t.periods[0],a=t.periods[1],i=e.xData,r=e.yData,n=r?r.length:0,l=[],p=[],u=[],h,d,c=null,m,g;if(n<s||!(0,o.isArray)(r[0])||4!==r[0].length)return;let y=!0,f=0;for(g=s-1;g<n;g++){if(h=(m=eF(r.slice(g-s+1,g+1),2,1))[0],isNaN(d=(r[g][3]-h)/(m[1]-h)*100)&&y){f++;continue}y&&!isNaN(d)&&(y=!1);let e=p.push(i[g]);isNaN(d)?u.push([u[e-2]&&"number"==typeof u[e-2][0]?u[e-2][0]:null,null]):u.push([d,null]),g>=f+(s-1)+(a-1)&&(c=super.getValues({xData:p.slice(-a),yData:u.slice(-a)},{period:a}).yData[0]),l.push([i[g],d,c]),u[e-1][1]=c}return{values:l,xData:p,yData:u}}}e_.defaultOptions=(0,o.merge)(e$.defaultOptions,{params:{index:void 0,period:void 0,periods:[14,3]},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">●</span><b> {series.name}</b><br/>%K: {point.y}<br/>%D: {point.smoothed}<br/>'},smoothedLine:{styles:{lineWidth:1,lineColor:void 0}},dataGrouping:{approximation:"averages"}}),(0,o.extend)(e_.prototype,{areaLinesNames:[],nameComponents:["periods"],nameBase:"Stochastic",pointArrayMap:["y","smoothed"],parallelArrays:["x","y","smoothed"],pointValKey:"y",linesApiNames:["smoothedLine"]}),T.compose(e_),d().registerSeriesType("stochastic",e_);let{sma:eH,stochastic:eJ}=d().seriesTypes;class eQ extends eJ{getValues(e,t){let s=t.periods,a=super.getValues.call(this,e,t),o={values:[],xData:[],yData:[]};if(!a)return;o.xData=a.xData.slice(s[1]-1);let i=a.yData.slice(s[1]-1),r=eH.prototype.getValues.call(this,{xData:o.xData,yData:i},{index:1,period:s[2]});if(r){for(let e=0,t=o.xData.length;e<t;e++)o.yData[e]=[i[e][1],r.yData[e-s[2]+1]||null],o.values[e]=[o.xData[e],i[e][1],r.yData[e-s[2]+1]||null];return o}}}eQ.defaultOptions=(0,o.merge)(eJ.defaultOptions,{params:{periods:[14,3,3]}}),(0,o.extend)(eQ.prototype,{nameBase:"Slow Stochastic"}),d().registerSeriesType("slowstochastic",eQ);let{atr:e0,sma:e1}=d().seriesTypes;function e2(e,t){return{index:t,close:e.getColumn("close")[t],x:e.getColumn("x")[t]}}class e3 extends e1{init(){let e=this;super.init.apply(e,arguments);let t=(0,o.addEvent)(this.chart.constructor,"afterLinkSeries",()=>{let{linkedParent:s,options:a}=e;a&&s&&(a.cropThreshold=(s.options.cropThreshold??0)-((a.params?.period??0)-1)),t()},{order:1})}drawGraph(){let e=this,t=e.options,s=e.linkedParent,a=s.getColumn("x"),i=s?s.points:[],r=e.points,n=e.graph,l=i.length-r.length,p=l>0?l:0,u={options:{gapSize:t.gapSize}},h={top:[],bottom:[],intersect:[]},d={top:{styles:{lineWidth:t.lineWidth,lineColor:t.fallingTrendColor||t.color,dashStyle:t.dashStyle}},bottom:{styles:{lineWidth:t.lineWidth,lineColor:t.risingTrendColor||t.color,dashStyle:t.dashStyle}},intersect:t.changeTrendLine},c,m,g,y,f,x,v,D,A,S=r.length;for(;S--;)c=r[S],m=r[S-1],g=i[S-1+p],y=i[S-2+p],f=i[S+p],x=i[S+p+1],v=c.options.color,D={x:c.x,plotX:c.plotX,plotY:c.plotY,isNull:!1},!y&&g&&(0,o.isNumber)(a[g.index-1])&&(y=e2(s,g.index-1)),!x&&f&&(0,o.isNumber)(a[f.index+1])&&(x=e2(s,f.index+1)),!g&&y&&(0,o.isNumber)(a[y.index+1])?g=e2(s,y.index+1):!g&&f&&(0,o.isNumber)(a[f.index-1])&&(g=e2(s,f.index-1)),c&&g&&f&&y&&c.x!==g.x&&(c.x===f.x?(y=g,g=f):c.x===y.x?(g=y,y={close:s.getColumn("close")[g.index-1],x:a[g.index-1]}):x&&c.x===x.x&&(g=x,y=f)),m&&y&&g?(A={x:m.x,plotX:m.plotX,plotY:m.plotY,isNull:!1},c.y>=g.close&&m.y>=y.close?(c.color=v||t.fallingTrendColor||t.color,h.top.push(D)):c.y<g.close&&m.y<y.close?(c.color=v||t.risingTrendColor||t.color,h.bottom.push(D)):(h.intersect.push(D),h.intersect.push(A),h.intersect.push((0,o.merge)(A,{isNull:!0})),c.y>=g.close&&m.y<y.close?(c.color=v||t.fallingTrendColor||t.color,m.color=v||t.risingTrendColor||t.color,h.top.push(D),h.top.push((0,o.merge)(A,{isNull:!0}))):c.y<g.close&&m.y>=y.close&&(c.color=v||t.risingTrendColor||t.color,m.color=v||t.fallingTrendColor||t.color,h.bottom.push(D),h.bottom.push((0,o.merge)(A,{isNull:!0}))))):g&&(c.y>=g.close?(c.color=v||t.fallingTrendColor||t.color,h.top.push(D)):(c.color=v||t.risingTrendColor||t.color,h.bottom.push(D)));(0,o.objectEach)(h,function(t,s){e.points=t,e.options=(0,o.merge)(d[s].styles,u),e.graph=e["graph"+s+"Line"],e1.prototype.drawGraph.call(e),e["graph"+s+"Line"]=e.graph}),e.points=r,e.options=t,e.graph=n}getValues(e,t){let s=t.period,a=t.multiplier,i=e.xData,r=e.yData,n=[],l=[],p=[],u=0===s?0:s-1,h=[],d=[],c=[],m,g,y,f,x,v,D,A,S;if(!(i.length<=s)&&(0,o.isArray)(r[0])&&4===r[0].length&&!(s<0)){for(S=0,c=e0.prototype.getValues.call(this,e,{period:s}).yData;S<c.length;S++)A=r[u+S],D=r[u+S-1]||[],f=h[S-1],x=d[S-1],v=p[S-1],0===S&&(f=x=v=0),m=(0,o.correctFloat)((A[1]+A[2])/2+a*c[S]),g=(0,o.correctFloat)((A[1]+A[2])/2-a*c[S]),m<f||D[3]>f?h[S]=m:h[S]=f,g>x||D[3]<x?d[S]=g:d[S]=x,v===f&&A[3]<h[S]||v===x&&A[3]<d[S]?y=h[S]:(v===f&&A[3]>h[S]||v===x&&A[3]>d[S])&&(y=d[S]),n.push([i[u+S],y]),l.push(i[u+S]),p.push(y);return{values:n,xData:l,yData:p}}}}e3.defaultOptions=(0,o.merge)(e1.defaultOptions,{params:{index:void 0,multiplier:3,period:10},risingTrendColor:"var(--highcharts-positive-color)",fallingTrendColor:"var(--highcharts-negative-color)",changeTrendLine:{styles:{lineWidth:1,lineColor:"var(--highcharts-neutral-color-80)",dashStyle:"LongDash"}}}),(0,o.extend)(e3.prototype,{nameBase:"Supertrend",nameComponents:["multiplier","period"]}),d().registerSeriesType("supertrend",e3);let{sma:{prototype:{pointClass:e4}}}=d().seriesTypes,e5=class extends e4{destroy(){this.negativeGraphic&&(this.negativeGraphic=this.negativeGraphic.destroy()),super.destroy.apply(this,arguments)}},{animObject:e6}=i(),{noop:e8}=i(),{column:{prototype:e9},sma:e7}=d().seriesTypes,te=Math.abs;class tt extends e7{init(e,t){let s=this;delete t.data,super.init.apply(s,arguments);let a=(0,o.addEvent)(this.chart.constructor,"afterLinkSeries",function(){if(s.options){let t=s.options.params,a=s.linkedParent,o=t?.volumeSeriesID?e.get(t?.volumeSeriesID):void 0;a&&o&&s.addCustomEvents(a,o)}a()},{order:1});return s}addCustomEvents(e,t){let s=this,a=()=>{s.chart.redraw(),s.setData([]),s.zoneStarts=[],s.zoneLinesSVG&&(s.zoneLinesSVG=s.zoneLinesSVG.destroy())};return s.dataEventsToUnbind.push((0,o.addEvent)(e,"remove",function(){a()})),t&&s.dataEventsToUnbind.push((0,o.addEvent)(t,"remove",function(){a()})),s}animate(e){let t=this,s=t.chart.inverted,a=t.group,i={};if(!e&&a){let e=s?t.yAxis.top:t.xAxis.left;s?(a["forceAnimate:translateY"]=!0,i.translateY=e):(a["forceAnimate:translateX"]=!0,i.translateX=e),a.animate(i,(0,o.extend)(e6(t.options.animation),{step:function(e,s){t.group.attr({scaleX:Math.max(.001,s.pos)})}}))}}drawPoints(){this.options.volumeDivision.enabled&&(this.posNegVolume(!0,!0),e9.drawPoints.apply(this,arguments),this.posNegVolume(!1,!1)),e9.drawPoints.apply(this,arguments)}posNegVolume(e,t){let s=t?["positive","negative"]:["negative","positive"],a=this.options.volumeDivision,o=this.points.length,i=[],r=[],n=0,l,p,u,h;for(e?(this.posWidths=i,this.negWidths=r):(i=this.posWidths,r=this.negWidths);n<o;n++)(h=this.points[n])[s[0]+"Graphic"]=h.graphic,h.graphic=h[s[1]+"Graphic"],e&&(l=h.shapeArgs.width,(u=(p=this.priceZones[n]).wholeVolumeData)?(i.push(l/u*p.positiveVolumeData),r.push(l/u*p.negativeVolumeData)):(i.push(0),r.push(0))),h.color=t?a.styles.positiveColor:a.styles.negativeColor,h.shapeArgs.width=t?this.posWidths[n]:this.negWidths[n],h.shapeArgs.x=t?h.shapeArgs.x:this.posWidths[n]}translate(){let e=this,t=e.options,s=e.chart,a=e.yAxis,i=a.min,r=e.options.zoneLines,n=e.priceZones,l=0,p,u,h,d,c,m,g,y,f,x,v;e9.translate.apply(e);let D=e.points;D.length&&(y=t.pointPadding<.5?t.pointPadding:.1,p=e.volumeDataArray,u=(0,o.arrayMax)(p),h=s.plotWidth/2,f=s.plotTop,d=te(a.toPixels(i)-a.toPixels(i+e.rangeStep)),m=te(a.toPixels(i)-a.toPixels(i+e.rangeStep)),y&&(c=te(d*(1-2*y)),l=te((d-c)/2),d=te(c)),D.forEach(function(t,s){x=t.barX=t.plotX=0,v=t.plotY=a.toPixels(n[s].start)-f-(a.reversed?d-m:d)-l,t.pointWidth=g=(0,o.correctFloat)(h*n[s].wholeVolumeData/u),t.shapeArgs=e.crispCol.apply(e,[x,v,g,d]),t.volumeNeg=n[s].negativeVolumeData,t.volumePos=n[s].positiveVolumeData,t.volumeAll=n[s].wholeVolumeData,delete t.origin,t.isInside=e.isPointInside(t)}),r.enabled&&e.drawZones(s,a,e.zoneStarts,r.styles))}getExtremes(){let e,t=this.options.compare,s=this.options.cumulative;return this.options.compare?(this.options.compare=void 0,e=super.getExtremes(),this.options.compare=t):this.options.cumulative?(this.options.cumulative=!1,e=super.getExtremes(),this.options.cumulative=s):e=super.getExtremes(),e}getValues(e,t){let s=e.getColumn("x",!0),a=e.processedYData,i=this.chart,r=t.ranges,n=[],l=[],p=[],u=i.get(t.volumeSeriesID);if(!e.chart)return void(0,o.error)("Base series not found! In case it has been removed, add a new one.",!0,i);if(!u||!u.getColumn("x",!0).length){let e=u&&!u.getColumn("x",!0).length?" does not contain any data.":" not found! Check `volumeSeriesID`.";(0,o.error)("Series "+t.volumeSeriesID+e,!0,i);return}let h=(0,o.isArray)(a[0]);return h&&4!==a[0].length?void(0,o.error)("Type of "+e.name+" series is different than line, OHLC or candlestick.",!0,i):((this.priceZones=this.specifyZones(h,s,a,r,u)).forEach(function(e,t){n.push([e.x,e.end]),l.push(n[t][0]),p.push(n[t][1])}),{values:n,xData:l,yData:p})}specifyZones(e,t,s,a,i){let r=!!e&&function(e){let t=e.length,s=e[0][3],a=s,o=1,i;for(;o<t;o++)(i=e[o][3])<s&&(s=i),i>a&&(a=i);return{min:s,max:a}}(s),n=this.zoneStarts=[],l=[],p=r?r.min:(0,o.arrayMin)(s),u=r?r.max:(0,o.arrayMax)(s),h=0,d=1,c=this.linkedParent;if(!this.options.compareToMain&&c.dataModify&&(p=c.dataModify.modifyValue(p),u=c.dataModify.modifyValue(u)),!(0,o.defined)(p)||!(0,o.defined)(u))return this.points.length&&(this.setData([]),this.zoneStarts=[],this.zoneLinesSVG&&(this.zoneLinesSVG=this.zoneLinesSVG.destroy())),[];let m=this.rangeStep=(0,o.correctFloat)(u-p)/a;for(n.push(p);h<a-1;h++)n.push((0,o.correctFloat)(n[h]+m));n.push(u);let g=n.length;for(;d<g;d++)l.push({index:d-1,x:t[0],start:n[d-1],end:n[d]});return this.volumePerZone(e,l,i,t,s)}volumePerZone(e,t,s,a,o){let i,r,n,l,p,u=this,h=s.getColumn("x",!0),d=s.getColumn("y",!0),c=t.length-1,m=o.length,g=d.length;return te(m-g)&&(a[0]!==h[0]&&d.unshift(0),a[m-1]!==h[g-1]&&d.push(0)),u.volumeDataArray=[],t.forEach(function(t){for(p=0,t.wholeVolumeData=0,t.positiveVolumeData=0,t.negativeVolumeData=0;p<m;p++){r=!1,n=!1,l=e?o[p][3]:o[p],i=p?e?o[p-1][3]:o[p-1]:l;let s=u.linkedParent;!u.options.compareToMain&&s.dataModify&&(l=s.dataModify.modifyValue(l),i=s.dataModify.modifyValue(i)),l<=t.start&&0===t.index&&(r=!0),l>=t.end&&t.index===c&&(n=!0),(l>t.start||r)&&(l<t.end||n)&&(t.wholeVolumeData+=d[p],i>l?t.negativeVolumeData+=d[p]:t.positiveVolumeData+=d[p])}u.volumeDataArray.push(t.wholeVolumeData)}),t}drawZones(e,t,s,a){let o=e.renderer,i=e.plotWidth,r=e.plotTop,n=this.zoneLinesSVG,l=[],p;s.forEach(function(s){p=t.toPixels(s)-r,l=l.concat(e.renderer.crispLine([["M",0,p],["L",i,p]],a.lineWidth))}),n?n.animate({d:l}):n=this.zoneLinesSVG=o.path(l).attr({"stroke-width":a.lineWidth,stroke:a.color,dashstyle:a.dashStyle,zIndex:this.group.zIndex+.1}).add(this.group)}}tt.defaultOptions=(0,o.merge)(e7.defaultOptions,{params:{index:void 0,period:void 0,ranges:12,volumeSeriesID:"volume"},zoneLines:{enabled:!0,styles:{color:"#0A9AC9",dashStyle:"LongDash",lineWidth:1}},volumeDivision:{enabled:!0,styles:{positiveColor:"rgba(144, 237, 125, 0.8)",negativeColor:"rgba(244, 91, 91, 0.8)"}},animationLimit:1e3,enableMouseTracking:!1,pointPadding:0,zIndex:-1,crisp:!0,dataGrouping:{enabled:!1},dataLabels:{align:"left",allowOverlap:!0,distance:0,enabled:!0,format:"P: {point.volumePos:.2f} | N: {point.volumeNeg:.2f}",padding:0,style:{fontSize:"0.5em"},verticalAlign:"top"}}),(0,o.extend)(tt.prototype,{nameBase:"Volume by Price",nameComponents:["ranges"],calculateOn:{chart:"render",xAxis:"afterSetExtremes"},pointClass:e5,markerAttribs:e8,drawGraph:e8,getColumnMetrics:e9.getColumnMetrics,crispCol:e9.crispCol}),d().registerSeriesType("vbp",tt);let{sma:ts}=d().seriesTypes;class ta extends ts{getValues(e,t){let s=e.chart,a=e.xData,i=e.yData,r=t.period,n=!0,l;return(l=s.get(t.volumeSeriesID))?((0,o.isArray)(i[0])||(n=!1),this.calculateVWAPValues(n,a,i,l,r)):void(0,o.error)("Series "+t.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,s)}calculateVWAPValues(e,t,s,a,o){let i,r,n,l,p,u,h=a.getColumn("y"),d=h.length,c=t.length,m=[],g=[],y=[],f=[],x=[];for(p=0,i=c<=d?c:d,u=0;p<i;p++)r=(e?(s[p][1]+s[p][2]+s[p][3])/3:s[p])*h[p],n=u?m[p-1]+r:r,l=u?g[p-1]+h[p]:h[p],m.push(n),g.push(l),x.push([t[p],n/l]),y.push(x[p][0]),f.push(x[p][1]),++u===o&&(u=0);return{values:x,xData:y,yData:f}}}ta.defaultOptions=(0,o.merge)(ts.defaultOptions,{params:{index:void 0,period:30,volumeSeriesID:"volume"}}),d().registerSeriesType("vwap",ta);let{sma:to}=d().seriesTypes;class ti extends to{getValues(e,t){let s,a,i,r,n,l=t.period,p=e.xData,u=e.yData,h=u?u.length:0,d=[],c=[],m=[];if(!(p.length<l)&&(0,o.isArray)(u[0])&&4===u[0].length){for(n=l-1;n<h;n++)r=(s=eF(u.slice(n-l+1,n+1),2,1))[0],a=-(((i=s[1])-u[n][3])/(i-r)*100),p[n]&&(d.push([p[n],a]),c.push(p[n]),m.push(a));return{values:d,xData:c,yData:m}}}}ti.defaultOptions=(0,o.merge)(to.defaultOptions,{params:{index:void 0,period:14}}),(0,o.extend)(ti.prototype,{nameBase:"Williams %R"}),d().registerSeriesType("williamsr",ti);let{sma:tr}=d().seriesTypes;function tn(e,t,s,a,o){let i=t[a],r=o<0?s[a]:s[a][o];e.push([i,r])}function tl(e,t,s,a){let o=e.length,i=e.reduce(function(e,t,s){return[null,e[1]+t[1]*(s+1)]})[1]/((o+1)/2*o),r=t[a-1];return e.shift(),[r,i]}class tp extends tr{getValues(e,t){let s=t.period,a=e.xData,i=e.yData,r=i?i.length:0,n=a[0],l=[],p=[],u=[],h=1,d=-1,c,m,g=i[0];if(a.length<s)return;(0,o.isArray)(i[0])&&(d=t.index,g=i[0][d]);let y=[[n,g]];for(;h!==s;)tn(y,a,i,h,d),h++;for(c=h;c<r;c++)l.push(m=tl(y,a,i,c)),p.push(m[0]),u.push(m[1]),tn(y,a,i,c,d);return l.push(m=tl(y,a,i,c)),p.push(m[0]),u.push(m[1]),{values:l,xData:p,yData:u}}}tp.defaultOptions=(0,o.merge)(tr.defaultOptions,{params:{index:3,period:9}}),d().registerSeriesType("wma",tp);let{sma:tu}=d().seriesTypes;class th extends tu{getValues(e,t){let s=t.lowIndex,a=t.highIndex,o=t.deviation/100,i={low:1+o,high:1-o},r=e.xData,n=e.yData,l=n?n.length:0,p=[],u=[],h=[],d,c,m,g,y=!1,f=!1;if(!r||r.length<=1||l&&(void 0===n[0][s]||void 0===n[0][a]))return;let x=n[0][s],v=n[0][a];for(d=1;d<l;d++)n[d][s]<=v*i.high?(p.push([r[0],v]),m=[r[d],n[d][s]],g=!0,y=!0):n[d][a]>=x*i.low&&(p.push([r[0],x]),m=[r[d],n[d][a]],g=!1,y=!0),y&&(u.push(p[0][0]),h.push(p[0][1]),c=d++,d=l);for(d=c;d<l;d++)g?(n[d][s]<=m[1]&&(m=[r[d],n[d][s]]),n[d][a]>=m[1]*i.low&&(f=a)):(n[d][a]>=m[1]&&(m=[r[d],n[d][a]]),n[d][s]<=m[1]*i.high&&(f=s)),!1!==f&&(p.push(m),u.push(m[0]),h.push(m[1]),m=[r[d],n[d][f]],g=!g,f=!1);let D=p.length;return 0!==D&&p[D-1][0]<r[l-1]&&(p.push(m),u.push(m[0]),h.push(m[1])),{values:p,xData:u,yData:h}}}th.defaultOptions=(0,o.merge)(tu.defaultOptions,{params:{index:void 0,period:void 0,lowIndex:2,highIndex:1,deviation:1}}),(0,o.extend)(th.prototype,{nameComponents:["deviation"],nameSuffixes:["%"],nameBase:"Zig Zag"}),d().registerSeriesType("zigzag",th);let{sma:td}=d().seriesTypes;class tc extends td{getRegressionLineParameters(e,t){let s=this.options.params.index,a=function(e,t){return(0,o.isArray)(e)?e[t]:e},i=e.reduce(function(e,t){return t+e},0),r=t.reduce(function(e,t){return a(t,s)+e},0),n=i/e.length,l=r/t.length,p,u,h=0,d=0;for(u=0;u<e.length;u++)h+=(p=e[u]-n)*(a(t[u],s)-l),d+=Math.pow(p,2);let c=d?h/d:0;return{slope:c,intercept:l-c*n}}getEndPointY(e,t){return e.slope*t+e.intercept}transformXData(e,t){let s=e[0];return e.map(function(e){return(e-s)/t})}findClosestDistance(e){let t,s,a;for(a=1;a<e.length-1;a++)(t=e[a]-e[a-1])>0&&(void 0===s||t<s)&&(s=t);return s}getValues(e,t){let s,a,i,r,n,l,p,u,h,d=e.xData,c=e.yData,m=t.period,g={xData:[],yData:[],values:[]},y=this.options.params.xAxisUnit||this.findClosestDistance(d);for(a=m-1;a<=d.length-1;a++)i=a-m+1,r=a+1,n=d[a],p=d.slice(i,r),u=c.slice(i,r),h=this.transformXData(p,y),s=this.getRegressionLineParameters(h,u),l=this.getEndPointY(s,h[h.length-1]),g.values.push({regressionLineParameters:s,x:n,y:l}),(0,o.isArray)(g.xData)&&g.xData.push(n),(0,o.isArray)(g.yData)&&g.yData.push(l);return g}}tc.defaultOptions=(0,o.merge)(td.defaultOptions,{params:{xAxisUnit:null},tooltip:{valueDecimals:4}}),(0,o.extend)(tc.prototype,{nameBase:"Linear Regression Indicator"}),d().registerSeriesType("linearregression",tc),d().registerSeriesType("linearRegression",tc);let{linearregression:tm}=d().seriesTypes;class tg extends tm{getEndPointY(e){return e.slope}}tg.defaultOptions=(0,o.merge)(tm.defaultOptions),(0,o.extend)(tg.prototype,{nameBase:"Linear Regression Slope Indicator"}),d().registerSeriesType("linearregressionslope",tg),d().registerSeriesType("linearRegressionSlope",tg);let{linearregression:ty}=d().seriesTypes;class tf extends ty{getEndPointY(e){return e.intercept}}tf.defaultOptions=(0,o.merge)(ty.defaultOptions),(0,o.extend)(tf.prototype,{nameBase:"Linear Regression Intercept Indicator"}),d().registerSeriesType("linearregressionintercept",tf),d().registerSeriesType("linearRegressionIntercept",tf);let{linearregression:tx}=d().seriesTypes;class tv extends tx{slopeToAngle(e){return 180/Math.PI*Math.atan(e)}getEndPointY(e){return this.slopeToAngle(e.slope)}}tv.defaultOptions=(0,o.merge)(tx.defaultOptions,{tooltip:{pointFormat:'<span style="color:{point.color}">●</span>{series.name}: <b>{point.y}\xb0</b><br/>'}}),(0,o.extend)(tv.prototype,{nameBase:"Linear Regression Angle Indicator"}),d().registerSeriesType("linearregressionangle",tv),d().registerSeriesType("linearRegressionAngle",tv);let{sma:tD}=d().seriesTypes;class tA extends tD{getValues(e,t){let s,a,i,r,n,l,p,u,h,d,c,m=t.period,g=t.factor,y=t.index,f=e.xData,x=e.yData,v=x?x.length:0,D=[],A=[],S=[],b=[],C=[];if(!(v<m)){for(c=0;c<=v;c++){if(c<v){var T,P,M,V;T=x[c][2],P=x[c][1],n=(0,o.correctFloat)(P-T)/((0,o.correctFloat)(P+T)/2)*1e3*g,D.push((M=x[c][1],M*(0,o.correctFloat)(1+2*n))),A.push((V=x[c][2],V*(0,o.correctFloat)(1-2*n)))}c>=m&&(h=f.slice(c-m,c),d=x.slice(c-m,c),p=super.getValues.call(this,{xData:h,yData:D.slice(c-m,c)},{period:m}),u=super.getValues.call(this,{xData:h,yData:A.slice(c-m,c)},{period:m}),r=(l=super.getValues.call(this,{xData:h,yData:d},{period:m,index:y})).xData[0],a=p.yData[0],i=u.yData[0],s=l.yData[0],S.push([r,a,s,i]),b.push(r),C.push([a,s,i]))}return{values:S,xData:b,yData:C}}}}tA.defaultOptions=(0,o.merge)(tD.defaultOptions,{params:{period:20,factor:.001,index:3},lineWidth:1,topLine:{styles:{lineWidth:1}},bottomLine:{styles:{lineWidth:1}},dataGrouping:{approximation:"averages"}}),(0,o.extend)(tA.prototype,{areaLinesNames:["top","bottom"],linesApiNames:["topLine","bottomLine"],nameBase:"Acceleration Bands",nameComponents:["period","factor"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"}),T.compose(tA),d().registerSeriesType("abands",tA);let{sma:tS}=d().seriesTypes;class tb extends tS{constructor(){super(...arguments),this.updateAllPoints=!0}getValues(e,t){let s=e.xData,a=e.yData,i=[],r=[],n=[],l=[],p=t.index,u=0,h=0,d=0,c=0,m=0;for(let e=0;e<s.length;e++)(0===e||s[e]!==s[e-1])&&m++,i.push(m);for(let e=0;e<i.length;e++)d+=i[e],c+=(0,o.isArray)(a[e])?a[e][p]:a[e];let g=d/i.length,y=c/a.length;for(let e=0;e<i.length;e++){let t=(0,o.isArray)(a[e])?a[e][p]:a[e];u+=(i[e]-g)*(t-y),h+=Math.pow(i[e]-g,2)}for(let e=0;e<i.length;e++){if(s[e]===n[n.length-1])continue;let t=s[e],a=y+u/h*(i[e]-g);r.push([t,a]),n.push(t),l.push(a)}return{xData:n,yData:l,values:r}}}tb.defaultOptions=(0,o.merge)(tS.defaultOptions,{params:{period:void 0,index:3}}),(0,o.extend)(tb.prototype,{nameBase:"Trendline",nameComponents:void 0}),d().registerSeriesType("trendline",tb);let{sma:tC}=d().seriesTypes;class tT extends tC{init(){let e=arguments,t=e[1].params,s=t&&t.average?t.average:void 0;this.averageIndicator=d().seriesTypes[s]||tC,this.averageIndicator.prototype.init.apply(this,e)}calculateDisparityIndex(e,t){return(0,o.correctFloat)(e-t)/t*100}getValues(e,t){let s=t.index,a=e.xData,i=e.yData,r=i?i.length:0,n=[],l=[],p=[],u=this.averageIndicator,h=(0,o.isArray)(i[0]),d=u.prototype.getValues(e,t),c=d.yData,m=a.indexOf(d.xData[0]);if(c&&0!==c.length&&(0,o.defined)(s)&&!(i.length<=m)){for(let e=m;e<r;e++){let t=this.calculateDisparityIndex(h?i[e][s]:i[e],c[e-m]);n.push([a[e],t]),l.push(a[e]),p.push(t)}return{values:n,xData:l,yData:p}}}}tT.defaultOptions=(0,o.merge)(tC.defaultOptions,{params:{average:"sma",index:3},marker:{enabled:!1},dataGrouping:{approximation:"averages"}}),(0,o.extend)(tT.prototype,{nameBase:"Disparity Index",nameComponents:["period","average"]}),d().registerSeriesType("disparityindex",tT);let tP=i();tP.MultipleLinesComposition=tP.MultipleLinesComposition||T;let tM=i();export{tM as default};
14
+ */import*as e from"../highcharts.js";import*as t from"../modules/datagrouping.js";let s={};s.n=e=>{let t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{if(Array.isArray(t))for(var a=0;a<t.length;){var o=t[a++],i=t[a++];s.o(e,o)?0===i&&a++:0===i?Object.defineProperty(e,o,{enumerable:!0,value:t[a++]}):Object.defineProperty(e,o,{enumerable:!0,get:i})}else for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);let a=e.default;var o,i=s.n(a);let r=e.default.Chart;var n=s.n(r);let{setLength:l,splice:p}={convertToNumber:function(e,t){switch(typeof e){case"boolean":return+!!e;case"number":return isNaN(e)&&!t?null:e;default:return isNaN(e=parseFloat(`${e??""}`))&&!t?null:e}},setLength:function(e,t,s){return Array.isArray(e)?(e.length=t,e):e[s?"subarray":"slice"](0,t)},splice:function(e,t,s,a,o=[]){if(Array.isArray(e))return Array.isArray(o)||(o=Array.from(o)),{removed:e.splice(t,s,...o),array:e};let i=Object.getPrototypeOf(e).constructor,r=e[a?"subarray":"slice"](t,t+s),n=new i(e.length-s+o.length);return n.set(e.subarray(0,t),0),n.set(o,t),n.set(e.subarray(t+s),t+o.length),{removed:r,array:n}}},u=class{constructor(e={}){this.isDataTable=!0,this.autoId=!e.id,this.columns={},this.id=e.id||(0,a.uniqueKey)(),this.rowCount=0,this.versionTag=(0,a.uniqueKey)();let t=0;(0,a.objectEach)(e.columns||{},(e,s)=>{this.columns[s]=e.slice(),t=Math.max(t,e.length)}),this.applyRowCount(t)}applyRowCount(e){this.rowCount=e,(0,a.objectEach)(this.columns,(t,s)=>{t.length!==e&&(this.columns[s]=l(t,e))})}deleteRows(e,t=1){if(t>0&&e<this.rowCount){let s=0;(0,a.objectEach)(this.columns,(a,o)=>{this.columns[o]=p(a,e,t).array,s=a.length}),this.rowCount=s}(0,a.fireEvent)(this,"afterDeleteRows",{rowIndex:e,rowCount:t}),this.versionTag=(0,a.uniqueKey)()}getColumn(e,t){return this.columns[e]}getColumns(e,t){return(e||Object.keys(this.columns)).reduce((e,t)=>(e[t]=this.columns[t],e),{})}getRowObject(e,t){let s={},a=this.columns;for(let o of(t??(t=Object.keys(this.columns)),t))s[o]=a[o]?.[e];return s}setColumn(e,t=[],s=0,a){this.setColumns({[e]:t},s,a)}setColumns(e,t,s){let o=this.rowCount;(0,a.objectEach)(e,(e,t)=>{this.columns[t]=e.slice(),o=e.length}),this.applyRowCount(o),s?.silent||((0,a.fireEvent)(this,"afterSetColumns"),this.versionTag=(0,a.uniqueKey)())}setRow(e,t=this.rowCount,s,o){var i;let{columns:r}=this,n=s?this.rowCount+1:t+1,l=Object.keys(e);if(o?.addColumns!==!1)for(let e=0,t=l.length;e<t;e++)r[i=l[e]]||(r[i]=Array(this.rowCount));(0,a.objectEach)(r,(a,o)=>{a&&(s?a=p(a,t,0,!0,[e[o]]).array:a[t]=o in e?e[o]:a[t],r[o]=a)}),this.applyRowCount(Math.max(n,this.rowCount)),o?.silent||((0,a.fireEvent)(this,"afterSetRows",{rowIndex:t}),this.versionTag=(0,a.uniqueKey)())}getModified(){return this.modified||this}},h=e.default.SeriesRegistry;var d=s.n(h);let{line:c}=d().seriesTypes,m=(e,t)=>{let s=[],a=e.pointArrayMap,o=t&&e.dataTable.getModified()||e.dataTable;if(!a)return e.getColumn("y",t);let i=a.map(s=>e.getColumn(s,t));for(let e=0;e<o.rowCount;e++){let t=a.map((t,s)=>i[s]?.[e]||0);s.push(t)}return s};class g extends c{destroy(){this.dataEventsToUnbind.forEach(function(e){e()}),super.destroy.apply(this,arguments)}getName(){let e=[],t=this.name;return t||((this.nameComponents||[]).forEach(function(t,s){e.push(this.options.params[t]+(this.nameSuffixes[s]??""))},this),t=(this.nameBase||this.type.toUpperCase())+(this.nameComponents?" ("+e.join(", ")+")":"")),t}getValues(e,t){let s=t.period,o=e.xData||[],i=e.yData,r=i.length,n=[],l=[],p=[],u,h=-1,d=0,c,m=0;if(!(o.length<s)){for((0,a.isArray)(i[0])&&(h=t.index?t.index:0);d<s-1;)m+=h<0?i[d]:i[d][h],d++;for(u=d;u<r;u++)m+=h<0?i[u]:i[u][h],c=[o[u],m/s],n.push(c),l.push(c[0]),p.push(c[1]),m-=h<0?i[u-d]:i[u-d][h];return{values:n,xData:l,yData:p}}}init(e,t){let s=this;super.init.call(s,e,t);let o=(0,a.addEvent)(n(),"afterLinkSeries",function({isUpdating:t}){if(t)return;let o=!!s.dataEventsToUnbind.length;if(!s.linkedParent)return(0,a.error)("Series "+s.options.linkedTo+" not found! Check `linkedTo`.",!1,e);if(!o&&(s.dataEventsToUnbind.push((0,a.addEvent)(s.linkedParent,"updatedData",function(){s.recalculateValues()})),s.calculateOn.xAxis&&s.dataEventsToUnbind.push((0,a.addEvent)(s.linkedParent.xAxis,s.calculateOn.xAxis,function(){s.recalculateValues()}))),"init"===s.calculateOn.chart)s.closestPointRange||s.recalculateValues();else if(!o){let e=(0,a.addEvent)(s.chart,s.calculateOn.chart,function(){s.recalculateValues(),e()})}},{order:0});s.dataEventsToUnbind=[],s.eventsToUnbind.push(o)}recalculateValues(){let e=this.dataTable,t=this.dataTable.rowCount,s=!0,o,i,r=this.linkedParent.yData,n=this.linkedParent.processedYData;this.linkedParent.xData=this.linkedParent.getColumn("x"),this.linkedParent.yData=m(this.linkedParent),this.linkedParent.processedYData=m(this.linkedParent,!0);let l=this.linkedParent.options&&this.linkedParent.dataTable.rowCount&&this.getValues(this.linkedParent,this.options.params)||{values:[],xData:[],yData:[]};l.xData.length=l.values.length,delete this.linkedParent.xData,this.linkedParent.yData=r,this.linkedParent.processedYData=n;let p=this.pointArrayMap||["y"],h={};if(l.yData.forEach(e=>{p.forEach((t,s)=>{let o=h[t]||[];o.push((0,a.isArray)(e)?e[s]:e),h[t]||(h[t]=o)})}),t&&!this.hasGroupedData&&this.visible&&this.points)if(this.cropped){this.xAxis&&(o=this.xAxis.min,i=this.xAxis.max);let t=this.cropData(e,o,i);this.setData(t.modified,!1)}else(this.updateAllPoints||l.xData.length!==t-1&&l.xData.length!==t+1)&&(s=!1,this.setData(new u({columns:{x:l.xData,...h}}),!1));s&&(h.x=l.xData,l.values.reduce((e,t,s)=>(Object.keys(t).forEach(a=>{e[a]||(e[a]=[]),e[a][s]=t[a]}),e),h),e.setColumns(h),delete this.xColumn,delete this.xColumnIsNumbers),this.calculateOn.xAxis&&this.getColumn("x",!0).length&&(this.isDirty=!0,this.redraw()),this.isDirtyData=!!this.linkedSeries.length,(0,a.fireEvent)(this,"updatedData")}processData(){let e=this.options.compareToMain,t=this.linkedParent;super.processData.apply(this,arguments),this.dataModify&&t&&t.dataModify&&t.dataModify.compareValue&&e&&(this.dataModify.compareValue=t.dataModify.compareValue)}}g.defaultOptions=(0,a.merge)(c.defaultOptions,{name:void 0,tooltip:{valueDecimals:4},linkedTo:void 0,compareToMain:!1,params:{index:3,period:14}}),(0,a.extend)(g.prototype,{calculateOn:{chart:"init"},hasDerivedData:!0,nameComponents:["period"],nameSuffixes:[],useCommonDataGrouping:!0}),d().registerSeriesType("sma",g);let{sma:y}=d().seriesTypes;class f extends y{accumulatePeriodPoints(e,t,s){let a=0,o=0;for(;o<e;)a+=t<0?s[o]:s[o][t],o++;return a}calculateEma(e,t,s,o,i,r,n){let l=e[s-1],p=r<0?t[s-1]:t[s-1][r];return[l,void 0===i?n:(0,a.correctFloat)(p*o+i*(1-o))]}getValues(e,t){let s=t.period,o=e.xData,i=e.yData,r=i?i.length:0,n=2/(s+1),l=[],p=[],u=[],h,d,c,m=-1,g=0;if(!(r<s)){for((0,a.isArray)(i[0])&&(m=t.index?t.index:0),g=this.accumulatePeriodPoints(s,m,i)/s,c=s;c<r+1;c++)d=this.calculateEma(o,i,c,n,h,m,g),l.push(d),p.push(d[0]),u.push(d[1]),h=d[1];return{values:l,xData:p,yData:u}}}}f.defaultOptions=(0,a.merge)(y.defaultOptions,{params:{index:3,period:9}}),d().registerSeriesType("ema",f);let{sma:x}=d().seriesTypes;class v extends x{static populateAverage(e,t,s,a,o){let i=t[a][1],r=t[a][2],n=t[a][3],l=s[a],p=n===i&&n===r||i===r?0:(2*n-r-i)/(i-r)*l;return[e[a],p]}getValues(e,t){let s,o,i,r=t.period,n=e.xData,l=e.yData,p=t.volumeSeriesID,u=e.chart.get(p),h=u?.getColumn("y"),d=l?l.length:0,c=[],m=[],g=[];if(!(n.length<=r)||!d||4===l[0].length){if(!u)return void(0,a.error)("Series "+p+" not found! Check `volumeSeriesID`.",!0,e.chart);for(o=r;o<d;o++)s=c.length,i=v.populateAverage(n,l,h,o,r),s>0&&(i[1]+=c[s-1][1]),c.push(i),m.push(i[0]),g.push(i[1]);return{values:c,xData:m,yData:g}}}}v.defaultOptions=(0,a.merge)(x.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume"}}),(0,a.extend)(v.prototype,{nameComponents:!1,nameBase:"Accumulation/Distribution"}),d().registerSeriesType("ad",v);let{noop:D}=i(),{column:{prototype:A},sma:b}=d().seriesTypes;class S extends b{drawGraph(){let e,t=this.options,s=this.points,a=this.userOptions.color,o=t.greaterBarColor,i=t.lowerBarColor,r=s[0];if(!a&&r)for(e=1,r.color=o;e<s.length;e++)s[e].y>s[e-1].y?s[e].color=o:s[e].y<s[e-1].y?s[e].color=i:s[e].color=s[e-1].color}getValues(e){let t=e.xData||[],s=e.yData||[],o=s.length,i=[],r=[],n=[],l,p,u,h,d,c,m,g,y=0,f=0;if(!(t.length<=34)&&(0,a.isArray)(s[0])&&4===s[0].length){for(m=0;m<33;m++)c=(s[m][1]+s[m][2])/2,m>=29&&(f=(0,a.correctFloat)(f+c)),y=(0,a.correctFloat)(y+c);for(g=33;g<o;g++)c=(s[g][1]+s[g][2])/2,f=(0,a.correctFloat)(f+c),y=(0,a.correctFloat)(y+c),l=f/5,p=y/34,u=(0,a.correctFloat)(l-p),i.push([t[g],u]),r.push(t[g]),n.push(u),h=g+1-5,d=g+1-34,f=(0,a.correctFloat)(f-(s[h][1]+s[h][2])/2),y=(0,a.correctFloat)(y-(s[d][1]+s[d][2])/2);return{values:i,xData:r,yData:n}}}}S.defaultOptions=(0,a.merge)(b.defaultOptions,{params:{index:void 0,period:void 0},greaterBarColor:"var(--highcharts-positive-color)",lowerBarColor:"var(--highcharts-negative-color)",threshold:0,groupPadding:.2,pointPadding:.2,crisp:!1,states:{hover:{halo:{size:0}}}}),(0,a.extend)(S.prototype,{nameBase:"AO",nameComponents:void 0,markerAttribs:D,getColumnMetrics:A.getColumnMetrics,crispCol:A.crispCol,translate:A.translate,drawPoints:A.drawPoints}),d().registerSeriesType("ao",S);let{sma:{prototype:C}}=d().seriesTypes;!function(e){let t=["bottomLine"],s=["top","bottom"],o=["top"];function i(e){return"plot"+e.charAt(0).toUpperCase()+e.slice(1)}function r(e,t){let s=[];return(e.pointArrayMap||[]).forEach(e=>{e!==t&&s.push(i(e))}),s}function n(){let e=this,t=e.pointValKey,s=e.linesApiNames,o=e.areaLinesNames,n=e.points,l=e.options,p=e.graph,u={options:{gapSize:l.gapSize}},h=[],d=r(e,t),c=n.length,m;if(d.forEach((e,t)=>{for(h[t]=[];c--;)m=n[c],h[t].push({x:m.x,plotX:m.plotX,plotY:m[e],isNull:!(0,a.defined)(m[e])});c=n.length}),e.userOptions.fillColor&&o.length){let t=h[d.indexOf(i(o[0]))],s=1===o.length?n:h[d.indexOf(i(o[1]))],r=e.color;e.points=s,e.nextPoints=t,e.color=e.userOptions.fillColor,e.options=(0,a.merge)(n,u),e.graph=e.area,e.fillGraph=!0,C.drawGraph.call(e),e.area=e.graph,delete e.nextPoints,delete e.fillGraph,e.color=r}s.forEach((t,s)=>{h[s]?(e.points=h[s],l[t]?e.options=(0,a.merge)(l[t].styles,u):(0,a.error)('Error: "There is no '+t+' in DOCS options declared. Check if linesApiNames are consistent with your DOCS line names."'),e.graph=e["graph"+t],C.drawGraph.call(e),e["graph"+t]=e.graph):(0,a.error)('Error: "'+t+" doesn't have equivalent in pointArrayMap. To many elements in linesApiNames relative to pointArrayMap.\"")}),e.points=n,e.options=l,e.graph=p,C.drawGraph.call(e)}function l(e){let t,s=[],a=[];if(e=e||this.points,this.fillGraph&&this.nextPoints){if((t=C.getGraphPath.call(this,this.nextPoints))&&t.length){t[0][0]="L",s=C.getGraphPath.call(this,e),a=t.slice(0,s.length);for(let e=a.length-1;e>=0;e--)s.push(a[e])}}else s=C.getGraphPath.apply(this,arguments);return s}function p(e){let t=[];return(this.pointArrayMap||[]).forEach(s=>{t.push(e[s])}),t}function u(){let e=this.pointArrayMap,t=[],s;t=r(this),C.translate.apply(this,arguments),this.points.forEach(a=>{e.forEach((e,o)=>{s=a[e],this.dataModify&&(s=this.dataModify.modifyValue(s)),null!==s&&(a[t[o]]=this.yAxis.toPixels(s,!0))})})}e.compose=function(e){let a=e.prototype;return a.linesApiNames=a.linesApiNames||t.slice(),a.pointArrayMap=a.pointArrayMap||s.slice(),a.pointValKey=a.pointValKey||"top",a.areaLinesNames=a.areaLinesNames||o.slice(),a.drawGraph=n,a.getGraphPath=l,a.toYData=p,a.translate=u,e}}(o||(o={}));let T=o,{sma:P}=d().seriesTypes;function M(e,t){let s=e[0],a=0,o;for(o=1;o<e.length;o++)("max"===t&&e[o]>=s||"min"===t&&e[o]<=s)&&(s=e[o],a=o);return a}class V extends P{getValues(e,t){let s,a,o,i,r,n=t.period,l=e.xData,p=e.yData,u=p?p.length:0,h=[],d=[],c=[];for(i=n-1;i<u;i++)o=M((r=p.slice(i-n+1,i+2)).map(function(e){return e[2]??e}),"min"),s=M(r.map(function(e){return e[1]??e}),"max")/n*100,a=o/n*100,l[i+1]&&(h.push([l[i+1],s,a]),d.push(l[i+1]),c.push([s,a]));return{values:h,xData:d,yData:c}}}V.defaultOptions=(0,a.merge)(P.defaultOptions,{params:{index:void 0,period:25},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">●</span><b> {series.name}</b><br/>Aroon Up: {point.y}<br/>Aroon Down: {point.aroonDown}<br/>'},aroonDown:{styles:{lineWidth:1,lineColor:void 0}},dataGrouping:{approximation:"averages"}}),(0,a.extend)(V.prototype,{areaLinesNames:[],linesApiNames:["aroonDown"],nameBase:"Aroon",pointArrayMap:["y","aroonDown"],pointValKey:"y"}),T.compose(V),d().registerSeriesType("aroon",V);let{aroon:O}=d().seriesTypes;class L extends O{getValues(e,t){let s,a,o=[],i=[],r=[],n=super.getValues.call(this,e,t);for(a=0;a<n.yData.length;a++)s=n.yData[a][0]-n.yData[a][1],o.push([n.xData[a],s]),i.push(n.xData[a]),r.push(s);return{values:o,xData:i,yData:r}}}L.defaultOptions=(0,a.merge)(O.defaultOptions,{tooltip:{pointFormat:'<span style="color:{point.color}">●</span><b> {series.name}</b>: {point.y}'}}),(0,a.extend)(L.prototype,{nameBase:"Aroon Oscillator",linesApiNames:[],pointArrayMap:["y"],pointValKey:"y"}),T.compose(O),d().registerSeriesType("aroonoscillator",L);let{sma:k}=d().seriesTypes;function w(e,t){return Math.max(e[1]-e[2],void 0===t?0:Math.abs(e[1]-t[3]),void 0===t?0:Math.abs(e[2]-t[3]))}class E extends k{getValues(e,t){let s=t.period,o=e.xData,i=e.yData,r=i?i.length:0,n=[[o[0],i[0]]],l=[],p=[],u=[],h,d,c=0,m=1,g=0;if(!(o.length<=s)&&(0,a.isArray)(i[0])&&4===i[0].length){for(d=1;d<=r;d++){var y,f,x,v,D;!function(e,t,s,a){let o=t[a],i=s[a];e.push([o,i])}(n,o,i,d),s<m?(c=(y=o,f=i,x=d,v=s,D=c,h=[y[x-1],(D*(v-1)+w(f[x-1],f[x-2]))/v])[1],l.push(h),p.push(h[0]),u.push(h[1])):(s===m?(c=g/(d-1),l.push([o[d-1],c]),p.push(o[d-1]),u.push(c)):g+=w(i[d-1],i[d-2]),m++)}return{values:l,xData:p,yData:u}}}}E.defaultOptions=(0,a.merge)(k.defaultOptions,{params:{index:void 0}}),d().registerSeriesType("atr",E);let{sma:I}=d().seriesTypes;class N extends I{init(){d().seriesTypes.sma.prototype.init.apply(this,arguments),this.options=(0,a.merge)({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)}getValues(e,t){let s,o,i,r,n,l,p,u,h,c=t.period,m=t.standardDeviation,g=[],y=[],f=e.xData,x=e.yData,v=x?x.length:0,D=[];if(f.length<c)return;let A=(0,a.isArray)(x[0]);for(h=c;h<=v;h++)n=f.slice(h-c,h),l=x.slice(h-c,h),r=(u=d().seriesTypes.sma.prototype.getValues.call(this,{xData:n,yData:l},t)).xData[0],s=u.yData[0],p=function(e,t,s,a){let o=e.length,i=0,r,n=0;for(;i<o;i++)n+=(r=(s?e[i][t]:e[i])-a)*r;return Math.sqrt(n/=o-1)}(l,t.index,A,s),o=s+m*p,i=s-m*p,D.push([r,o,s,i]),g.push(r),y.push([o,s,i]);return{values:D,xData:g,yData:y}}}N.defaultOptions=(0,a.merge)(I.defaultOptions,{params:{period:20,standardDeviation:2,index:3},bottomLine:{styles:{lineWidth:1,lineColor:void 0}},topLine:{styles:{lineWidth:1,lineColor:void 0}},tooltip:{pointFormat:'<span style="color:{point.color}">●</span><b> {series.name}</b><br/>Top: {point.top}<br/>Middle: {point.middle}<br/>Bottom: {point.bottom}<br/>'},marker:{enabled:!1},dataGrouping:{approximation:"averages"}}),(0,a.extend)(N.prototype,{areaLinesNames:["top","bottom"],linesApiNames:["topLine","bottomLine"],nameComponents:["period","standardDeviation"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"}),T.compose(N),d().registerSeriesType("bb",N);let{sma:F}=d().seriesTypes;class B extends F{getValues(e,t){let s=t.period,o=e.xData,i=e.yData,r=i?i.length:0,n=[],l=[],p=[],u=[],h,d,c=[],m,g=1,y,f,x,v;if(!(o.length<=s)&&(0,a.isArray)(i[0])&&4===i[0].length){for(;g<s;)d=i[g-1],n.push((d[1]+d[2]+d[3])/3),g++;for(v=s;v<=r;v++)f=((d=i[v-1])[1]+d[2]+d[3])/3,m=n.push(f),y=(c=n.slice(m-s)).reduce(function(e,t){return e+t},0)/s,x=function(e,t){let s=e.length,a=0,o;for(o=0;o<s;o++)a+=Math.abs(t-e[o]);return a}(c,y)/s,h=(f-y)/(.015*x),l.push([o[v-1],h]),p.push(o[v-1]),u.push(h);return{values:l,xData:p,yData:u}}}}B.defaultOptions=(0,a.merge)(F.defaultOptions,{params:{index:void 0}}),d().registerSeriesType("cci",B);let{sma:G}=d().seriesTypes;class W extends G{constructor(){super(...arguments),this.nameBase="Chaikin Money Flow"}isValid(){let e=this.chart,t=this.options,s=this.linkedParent,a=this.volumeSeries||(this.volumeSeries=e.get(t.params.volumeSeriesID)),o=s?.pointArrayMap?.length===4;function i(e){return e.dataTable.rowCount>=t.params.period}return!!(s&&a&&i(s)&&i(a)&&o)}getValues(e,t){if(this.isValid())return this.getMoneyFlow(e.xData,e.yData,this.volumeSeries.getColumn("y"),t.period)}getMoneyFlow(e,t,s,a){let o=t.length,i=[],r=[],n=[],l=[],p,u,h=-1,d=0,c=0;function m(e,t){let s=e[1],a=e[2],o=e[3];return null!==t&&null!==s&&null!==a&&null!==o&&s!==a?(o-a-(s-o))/(s-a)*t:(h=p,null)}if(a>0&&a<=o){for(p=0;p<a;p++)i[p]=m(t[p],s[p]),d+=s[p],c+=i[p];for(r.push(e[p-1]),n.push(p-h>=a&&0!==d?c/d:null),l.push([r[0],n[0]]);p<o;p++)i[p]=m(t[p],s[p]),d-=s[p-a],d+=s[p],c-=i[p-a],c+=i[p],u=[e[p],p-h>=a?c/d:null],r.push(u[0]),n.push(u[1]),l.push([u[0],u[1]])}return{values:l,xData:r,yData:n}}}W.defaultOptions=(0,a.merge)(G.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume"}}),d().registerSeriesType("cmf",W);let{sma:z}=d().seriesTypes;class Y extends z{calculateDM(e,t,s){let o,i=e[t][1],r=e[t][2],n=e[t-1][1],l=e[t-1][2];return o=i-n>l-r?s?Math.max(i-n,0):0:s?0:Math.max(l-r,0),(0,a.correctFloat)(o)}calculateDI(e,t){return e/t*100}calculateDX(e,t){return(0,a.correctFloat)(Math.abs(e-t)/Math.abs(e+t)*100)}smoothValues(e,t,s){return(0,a.correctFloat)(e-e/s+t)}getTR(e,t){return(0,a.correctFloat)(Math.max(e[1]-e[2],t?Math.abs(e[1]-t[3]):0,t?Math.abs(e[2]-t[3]):0))}getValues(e,t){let s=t.period,o=e.xData,i=e.yData,r=i?i.length:0,n=[],l=[],p=[];if(o.length<=s||!(0,a.isArray)(i[0])||4!==i[0].length)return;let u=0,h=0,d=0,c;for(c=1;c<r;c++){let e,t,a,r,m,g,y,f,x;c<=s?(r=this.calculateDM(i,c,!0),m=this.calculateDM(i,c),g=this.getTR(i[c],i[c-1]),u+=r,h+=m,d+=g,c===s&&(y=this.calculateDI(u,d),f=this.calculateDI(h,d),x=this.calculateDX(u,h),n.push([o[c],x,y,f]),l.push(o[c]),p.push([x,y,f]))):(r=this.calculateDM(i,c,!0),m=this.calculateDM(i,c),g=this.getTR(i[c],i[c-1]),e=this.smoothValues(u,r,s),t=this.smoothValues(h,m,s),a=this.smoothValues(d,g,s),u=e,h=t,d=a,y=this.calculateDI(u,d),f=this.calculateDI(h,d),x=this.calculateDX(u,h),n.push([o[c],x,y,f]),l.push(o[c]),p.push([x,y,f]))}return{values:n,xData:l,yData:p}}}Y.defaultOptions=(0,a.merge)(z.defaultOptions,{params:{index:void 0},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color: {point.color}">●</span><b> {series.name}</b><br/><span style="color: {point.color}">DX</span>: {point.y}<br/><span style="color: {point.series.options.plusDILine.styles.lineColor}">+DI</span>: {point.plusDI}<br/><span style="color: {point.series.options.minusDILine.styles.lineColor}">-DI</span>: {point.minusDI}<br/>'},plusDILine:{styles:{lineWidth:1,lineColor:"var(--highcharts-positive-color)"}},minusDILine:{styles:{lineWidth:1,lineColor:"var(--highcharts-negative-color)"}},dataGrouping:{approximation:"averages"}}),(0,a.extend)(Y.prototype,{areaLinesNames:[],nameBase:"DMI",linesApiNames:["plusDILine","minusDILine"],pointArrayMap:["y","plusDI","minusDI"],parallelArrays:["x","y","plusDI","minusDI"],pointValKey:"y"}),T.compose(Y),d().registerSeriesType("dmi",Y);let{sma:X}=d().seriesTypes;function R(e,t,s,o,i){let r=t[s][o]??t[s];return i?(0,a.correctFloat)(e-r):(0,a.correctFloat)(e+r)}class K extends X{getValues(e,t){let s=t.period,a=t.index,o=Math.floor(s/2+1),i=s+o,r=e.xData||[],n=e.yData||[],l=n.length,p=[],u=[],h=[],d,c,m,g,y,f=0;if(!(r.length<=i)){for(g=0;g<s-1;g++)f=R(f,n,g,a);for(y=0;y<=l-i;y++)c=y+s-1,m=y+i-1,f=R(f,n,c,a),d=(n[m][a]??n[m])-f/s,f=R(f,n,y,a,!0),p.push([r[m],d]),u.push(r[m]),h.push(d);return{values:p,xData:u,yData:h}}}}K.defaultOptions=(0,a.merge)(X.defaultOptions,{params:{index:0,period:21}}),(0,a.extend)(K.prototype,{nameBase:"DPO"}),d().registerSeriesType("dpo",K);let{ema:j}=d().seriesTypes;class U extends j{getValues(e,t){let s,o,i=t.periods,r=t.period,n=[],l=[],p=[];if(2!==i.length||i[1]<=i[0])return void(0,a.error)('Error: "Chaikin requires two periods. Notice, first period should be lower than the second one."');let u=v.prototype.getValues.call(this,e,{volumeSeriesID:t.volumeSeriesID,period:r});if(!u)return;let h=super.getValues.call(this,u,{period:i[0]}),d=super.getValues.call(this,u,{period:i[1]});if(!h||!d)return;let c=i[1]-i[0];for(o=0;o<d.yData.length;o++)s=(0,a.correctFloat)(h.yData[o+c]-d.yData[o]),n.push([d.xData[o],s]),l.push(d.xData[o]),p.push(s);return{values:n,xData:l,yData:p}}}U.defaultOptions=(0,a.merge)(j.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume",period:9,periods:[3,10]}}),(0,a.extend)(U.prototype,{nameBase:"Chaikin Osc",nameComponents:["periods"]}),d().registerSeriesType("chaikin",U);let{sma:Z}=d().seriesTypes;class q extends Z{getValues(e,t){let s=t.period,o=e.xData,i=e.yData,r=i?i.length:0,n=[],l=[],p=[],u,h=t.index,d;if(o.length<s)return;(0,a.isNumber)(i[0])?d=i:(h=Math.min(h,i[0].length-1),d=i.map(e=>e[h]));let c=0,m=0,g=0,y;for(let e=s;e>0;e--)d[e]>d[e-1]?m+=d[e]-d[e-1]:d[e]<d[e-1]&&(g+=d[e-1]-d[e]);for(y=m+g>0?100*(m-g)/(m+g):0,l.push(o[s]),p.push(y),n.push([o[s],y]),u=s+1;u<r;u++)c=Math.abs(d[u-s-1]-d[u-s]),d[u]>d[u-1]?m+=d[u]-d[u-1]:d[u]<d[u-1]&&(g+=d[u-1]-d[u]),d[u-s]>d[u-s-1]?m-=c:g-=c,y=m+g>0?100*(m-g)/(m+g):0,l.push(o[u]),p.push(y),n.push([o[u],y]);return{values:n,xData:l,yData:p}}}q.defaultOptions=(0,a.merge)(Z.defaultOptions,{params:{period:20,index:3}}),d().registerSeriesType("cmo",q);let{ema:$}=d().seriesTypes;class _ extends ${getEMA(e,t,s,a,o,i){return super.calculateEma(i||[],e,void 0===o?1:o,this.EMApercent,t,void 0===a?-1:a,s)}getValues(e,t){let s=t.period,o=[],i=2*s,r=e.xData,n=e.yData,l=n?n.length:0,p=[],u=[],h=[],d=0,c=0,m,g,y,f,x=-1,v,D=0;if(this.EMApercent=2/(s+1),!(l<2*s-1)){for((0,a.isArray)(n[0])&&(x=t.index?t.index:0),D=(d=super.accumulatePeriodPoints(s,x,n))/s,d=0,f=s;f<l+2;f++)f<l+1&&(c=this.getEMA(n,g,D,x,f)[1],o.push(c)),g=c,f<i?d+=c:(f===i&&(D=d/s),c=o[f-s-1],m=this.getEMA([c],y,D)[1],v=[r[f-2],(0,a.correctFloat)(2*c-m)],p.push(v),u.push(v[0]),h.push(v[1]),y=m);return{values:p,xData:u,yData:h}}}}_.defaultOptions=(0,a.merge)($.defaultOptions),d().registerSeriesType("dema",_);let{ema:H}=d().seriesTypes;class J extends H{getEMA(e,t,s,a,o,i){return super.calculateEma(i||[],e,void 0===o?1:o,this.EMApercent,t,void 0===a?-1:a,s)}getTemaPoint(e,t,s,o){return[e[o-3],(0,a.correctFloat)(3*s.level1-3*s.level2+s.level3)]}getValues(e,t){let s=t.period,o=2*s,i=3*s,r=e.xData,n=e.yData,l=n?n.length:0,p=[],u=[],h=[],d=[],c=[],m={},g=-1,y=0,f=0,x,v,D,A;if(this.EMApercent=2/(s+1),!(l<3*s-2)){for((0,a.isArray)(n[0])&&(g=t.index?t.index:0),f=(y=super.accumulatePeriodPoints(s,g,n))/s,y=0,D=s;D<l+3;D++)D<l+1&&(m.level1=this.getEMA(n,x,f,g,D)[1],d.push(m.level1)),x=m.level1,D<o?y+=m.level1:(D===o&&(f=y/s,y=0),m.level1=d[D-s-1],m.level2=this.getEMA([m.level1],v,f)[1],c.push(m.level2),v=m.level2,D<i?y+=m.level2:(D===i&&(f=y/s),D===l+1&&(m.level1=d[D-s-1],m.level2=this.getEMA([m.level1],v,f)[1],c.push(m.level2)),m.level1=d[D-s-2],m.level2=c[D-2*s-1],m.level3=this.getEMA([m.level2],m.prevLevel3,f)[1],(A=this.getTemaPoint(r,i,m,D))&&(p.push(A),u.push(A[0]),h.push(A[1])),m.prevLevel3=m.level3));return{values:p,xData:u,yData:h}}}}J.defaultOptions=(0,a.merge)(H.defaultOptions),d().registerSeriesType("tema",J);let{tema:Q}=d().seriesTypes;class ee extends Q{getTemaPoint(e,t,s,o){if(o>t)return[e[o-3],0!==s.prevLevel3?(0,a.correctFloat)(s.level3-s.prevLevel3)/s.prevLevel3*100:null]}}ee.defaultOptions=(0,a.merge)(Q.defaultOptions),d().registerSeriesType("trix",ee);let{ema:et}=d().seriesTypes;class es extends et{getValues(e,t){let s,o,i=t.periods,r=t.index,n=[],l=[],p=[];if(2!==i.length||i[1]<=i[0])return void(0,a.error)('Error: "APO requires two periods. Notice, first period should be lower than the second one."');let u=super.getValues.call(this,e,{index:r,period:i[0]}),h=super.getValues.call(this,e,{index:r,period:i[1]});if(!u||!h)return;let d=i[1]-i[0];for(o=0;o<h.yData.length;o++)s=u.yData[o+d]-h.yData[o],n.push([h.xData[o],s]),l.push(h.xData[o]),p.push(s);return{values:n,xData:l,yData:p}}}es.defaultOptions=(0,a.merge)(et.defaultOptions,{params:{period:void 0,periods:[10,20]}}),(0,a.extend)(es.prototype,{nameBase:"APO",nameComponents:["periods"]}),d().registerSeriesType("apo",es);let ea=t.default.dataGrouping.approximations;var eo=s.n(ea);let ei=e.default.Color,{parse:er}=s.n(ei)(),{sma:en}=d().seriesTypes;function el(e){return{high:e.reduce(function(e,t){return Math.max(e,t[1])},-1/0),low:e.reduce(function(e,t){return Math.min(e,t[2])},1/0)}}function ep(e){let t=e.indicator;t.points=e.points,t.nextPoints=e.nextPoints,t.color=e.color,t.options=(0,a.merge)(e.options.senkouSpan.styles,e.gap),t.graph=e.graph,t.fillGraph=!0,d().seriesTypes.sma.prototype.drawGraph.call(t)}class eu extends en{constructor(){super(...arguments),this.data=[],this.options={},this.points=[],this.graphCollection=[]}init(){super.init.apply(this,arguments),this.options=(0,a.merge)({tenkanLine:{styles:{lineColor:this.color}},kijunLine:{styles:{lineColor:this.color}},chikouLine:{styles:{lineColor:this.color}},senkouSpanA:{styles:{lineColor:this.color,fill:er(this.color).setOpacity(.5).get()}},senkouSpanB:{styles:{lineColor:this.color,fill:er(this.color).setOpacity(.5).get()}},senkouSpan:{styles:{fill:er(this.color).setOpacity(.2).get()}}},this.options)}toYData(e){return[e.tenkanSen,e.kijunSen,e.chikouSpan,e.senkouSpanA,e.senkouSpanB]}translate(){for(let e of(d().seriesTypes.sma.prototype.translate.apply(this),this.points))for(let t of this.pointArrayMap){let s=e[t];(0,a.isNumber)(s)&&(e["plot"+t]=this.yAxis.toPixels(s,!0),e.plotY=e["plot"+t],e.tooltipPos=[e.plotX,e["plot"+t]],e.isNull=!1)}}drawGraph(){let e=this,t=e.points,s=e.options,o=e.graph,i=e.color,r={options:{gapSize:s.gapSize}},n=e.pointArrayMap.length,l=[[],[],[],[],[],[]],p={tenkanLine:l[0],kijunLine:l[1],chikouLine:l[2],senkouSpanA:l[3],senkouSpanB:l[4],senkouSpan:l[5]},u=[],h=e.options.senkouSpan,c=h.color||h.styles.fill,m=h.negativeColor,g=[[],[]],y=[[],[]],f=t.length,x=0,v,D,A,b,S,C,T,P,M,V,O,L,k;for(e.ikhMap=p;f--;){for(A=0,D=t[f];A<n;A++)v=e.pointArrayMap[A],(0,a.defined)(D[v])&&l[A].push({plotX:D.plotX,plotY:D["plot"+v],isNull:!1});if(m&&f!==t.length-1){let e=p.senkouSpanB.length-1,t=function(e,t,s,a){if(e&&t&&s&&a){let o=t.plotX-e.plotX,i=t.plotY-e.plotY,r=a.plotX-s.plotX,n=a.plotY-s.plotY,l=e.plotX-s.plotX,p=e.plotY-s.plotY,u=(-i*l+o*p)/(-r*i+o*n),h=(r*p-n*l)/(-r*i+o*n);if(u>=0&&u<=1&&h>=0&&h<=1)return{plotX:e.plotX+h*o,plotY:e.plotY+h*i}}}(p.senkouSpanA[e-1],p.senkouSpanA[e],p.senkouSpanB[e-1],p.senkouSpanB[e]);if(t){let s={plotX:t.plotX,plotY:t.plotY,isNull:!1,intersectPoint:!0};p.senkouSpanA.splice(e,0,s),p.senkouSpanB.splice(e,0,s),u.push(e)}}}if((0,a.objectEach)(p,(t,o)=>{s[o]&&"senkouSpan"!==o&&(e.points=l[x],e.options=(0,a.merge)(s[o].styles,r),e.graph=e["graph"+o],e.fillGraph=!1,e.color=i,d().seriesTypes.sma.prototype.drawGraph.call(e),e["graph"+o]=e.graph),x++}),e.graphCollection)for(let t of e.graphCollection)e[t].destroy(),delete e[t];if(e.graphCollection=[],m&&p.senkouSpanA[0]&&p.senkouSpanB[0]){for(u.unshift(0),u.push(p.senkouSpanA.length-1),L=0;L<u.length-1;L++)if(b=u[L],S=u[L+1],C=p.senkouSpanB.slice(b,S+1),T=p.senkouSpanA.slice(b,S+1),Math.floor(C.length/2)>=1){let e=Math.floor(C.length/2);if(C[e].plotY===T[e].plotY){for(k=0,P=0,M=0;k<C.length;k++)P+=C[k].plotY,M+=T[k].plotY;g[O=P>M?0:1]=g[O].concat(C),y[O]=y[O].concat(T)}else g[O=C[e].plotY>T[e].plotY?0:1]=g[O].concat(C),y[O]=y[O].concat(T)}else g[O=C[0].plotY>T[0].plotY?0:1]=g[O].concat(C),y[O]=y[O].concat(T);["graphsenkouSpanColor","graphsenkouSpanNegativeColor"].forEach(function(t,a){g[a].length&&y[a].length&&(V=0===a?c:m,ep({indicator:e,points:g[a],nextPoints:y[a],color:V,options:s,gap:r,graph:e[t]}),e[t]=e.graph,e.graphCollection.push(t))})}else ep({indicator:e,points:p.senkouSpanB,nextPoints:p.senkouSpanA,color:c,options:s,gap:r,graph:e.graphsenkouSpan}),e.graphsenkouSpan=e.graph;delete e.nextPoints,delete e.fillGraph,e.points=t,e.options=s,e.graph=o,e.color=i}getGraphPath(e){let t=[],s,a=[];if(e=e||this.points,this.fillGraph&&this.nextPoints){if((s=d().seriesTypes.sma.prototype.getGraphPath.call(this,this.nextPoints))&&s.length){s[0][0]="L",t=d().seriesTypes.sma.prototype.getGraphPath.call(this,e),a=s.slice(0,t.length);for(let e=a.length-1;e>=0;e--)t.push(a[e])}}else t=d().seriesTypes.sma.prototype.getGraphPath.apply(this,arguments);return t}getValues(e,t){let s,o,i,r,n,l,p,u,h,d,c=t.period,m=t.periodTenkan,g=t.periodSenkouSpanB,y=e.xData,f=e.yData,x=e.xAxis,v=f&&f.length||0,D=(0,a.getClosestDistance)(x.series.map(e=>e.getColumn("x"))),A=[],b=[];if(y.length<=c||!(0,a.isArray)(f[0])||4!==f[0].length)return;let S=y[0]-c*D;for(n=0;n<c;n++)b.push(S+n*D);for(n=0;n<v;n++)n>=m&&(l=((o=el(f.slice(n-m,n))).high+o.low)/2),n>=c&&(h=(l+(p=((i=el(f.slice(n-c,n))).high+i.low)/2))/2),n>=g&&(d=((r=el(f.slice(n-g,n))).high+r.low)/2),u=f[n][3],s=y[n],void 0===A[n]&&(A[n]=[]),void 0===A[n+c-1]&&(A[n+c-1]=[]),A[n+c-1][0]=l,A[n+c-1][1]=p,A[n+c-1][2]=void 0,void 0===A[n+1]&&(A[n+1]=[]),A[n+1][2]=u,n<=c&&(A[n+c-1][3]=void 0,A[n+c-1][4]=void 0),void 0===A[n+2*c-2]&&(A[n+2*c-2]=[]),A[n+2*c-2][3]=h,A[n+2*c-2][4]=d,b.push(s);for(n=1;n<=c;n++)b.push(s+n*D);return{values:A,xData:b,yData:A}}}eu.defaultOptions=(0,a.merge)(en.defaultOptions,{params:{index:void 0,period:26,periodTenkan:9,periodSenkouSpanB:52},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>TENKAN SEN: {point.tenkanSen:.3f}<br/>KIJUN SEN: {point.kijunSen:.3f}<br/>CHIKOU SPAN: {point.chikouSpan:.3f}<br/>SENKOU SPAN A: {point.senkouSpanA:.3f}<br/>SENKOU SPAN B: {point.senkouSpanB:.3f}<br/>'},tenkanLine:{styles:{lineWidth:1,lineColor:void 0}},kijunLine:{styles:{lineWidth:1,lineColor:void 0}},chikouLine:{styles:{lineWidth:1,lineColor:void 0}},senkouSpanA:{styles:{lineWidth:1,lineColor:void 0}},senkouSpanB:{styles:{lineWidth:1,lineColor:void 0}},senkouSpan:{styles:{fill:"rgba(255, 0, 0, 0.5)"}},dataGrouping:{approximation:"ichimoku-averages"}}),(0,a.extend)(eu.prototype,{pointArrayMap:["tenkanSen","kijunSen","chikouSpan","senkouSpanA","senkouSpanB"],pointValKey:"tenkanSen",nameComponents:["periodSenkouSpanB","period","periodTenkan"]}),eo()["ichimoku-averages"]=function(){let e,t=[];return[].forEach.call(arguments,function(s,a){t.push(eo().average(s)),e=!e&&void 0===t[a]}),e?void 0:t},d().registerSeriesType("ikh",eu);let{sma:eh}=d().seriesTypes;class ed extends eh{init(){d().seriesTypes.sma.prototype.init.apply(this,arguments),this.options=(0,a.merge)({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)}getValues(e,t){let s,o,i,r,n,l,p,u=t.period,h=t.periodATR,c=t.multiplierATR,m=t.index,g=e.yData,y=g?g.length:0,f=[],x=d().seriesTypes.ema.prototype.getValues(e,{period:u,index:m}),v=d().seriesTypes.atr.prototype.getValues(e,{period:h}),D=[],A=[];if(!(y<u)){for(p=u;p<=y;p++)n=x.values[p-u],l=v.values[p-h],r=n[0],o=(0,a.correctFloat)(n[1]+c*l[1]),i=(0,a.correctFloat)(n[1]-c*l[1]),s=n[1],f.push([r,o,s,i]),D.push(r),A.push([o,s,i]);return{values:f,xData:D,yData:A}}}}ed.defaultOptions=(0,a.merge)(eh.defaultOptions,{params:{index:0,period:20,periodATR:10,multiplierATR:2},bottomLine:{styles:{lineWidth:1,lineColor:void 0}},topLine:{styles:{lineWidth:1,lineColor:void 0}},tooltip:{pointFormat:'<span style="color:{point.color}">●</span><b> {series.name}</b><br/>Upper Channel: {point.top}<br/>EMA({series.options.params.period}): {point.middle}<br/>Lower Channel: {point.bottom}<br/>'},marker:{enabled:!1},dataGrouping:{approximation:"averages"},lineWidth:1}),(0,a.extend)(ed.prototype,{nameBase:"Keltner Channels",areaLinesNames:["top","bottom"],nameComponents:["period","periodATR","multiplierATR"],linesApiNames:["topLine","bottomLine"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"}),T.compose(ed),d().registerSeriesType("keltnerchannels",ed);let{ema:ec,sma:em}=d().seriesTypes;class eg extends em{calculateTrend(e,t){return e[t][1]+e[t][2]+e[t][3]>e[t-1][1]+e[t-1][2]+e[t-1][3]?1:-1}isValidData(e){let t=this.chart,s=this.options,o=this.linkedParent,i=(0,a.isArray)(e)&&4===e.length,r=this.volumeSeries||(this.volumeSeries=t.get(s.params.volumeSeriesID));return r||(0,a.error)("Series "+s.params.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,o.chart),!!([o,r].every(function(e){return e&&e.dataTable.rowCount>=s.params.slowAvgPeriod})&&i)}getCM(e,t,s,o,i){return(0,a.correctFloat)(t+(s===o?e:i))}getDM(e,t){return(0,a.correctFloat)(e-t)}getVolumeForce(e){let t=[],s=0,a,o=1,i=0,r=e[0][1]-e[0][2],n=0,l;for(;o<e.length;o++)l=this.calculateTrend(e,o),a=this.getDM(e[o][1],e[o][2]),s=this.getCM(i,a,l,n,r),t.push([this.volumeSeries.getColumn("y")[o]*l*Math.abs(2*(a/s-1))*100]),n=l,i=s,r=a;return t}getEMA(e,t,s,a,o,i,r){return ec.prototype.calculateEma(r||[],e,void 0===i?1:i,a,t,void 0===o?-1:o,s)}getSMA(e,t,s){return ec.prototype.accumulatePeriodPoints(e,t,s)/e}getValues(e,t){let s=[],o=e.xData,i=e.yData,r=[],n=[],l=[],p,u=0,h=0,d,c,m,g=null;if(!this.isValidData(i[0]))return;let y=this.getVolumeForce(i),f=this.getSMA(t.fastAvgPeriod,0,y),x=this.getSMA(t.slowAvgPeriod,0,y),v=2/(t.fastAvgPeriod+1),D=2/(t.slowAvgPeriod+1);for(;u<i.length;u++)u>=t.fastAvgPeriod&&(c=h=this.getEMA(y,c,f,v,0,u,o)[1]),u>=t.slowAvgPeriod&&(m=d=this.getEMA(y,m,x,D,0,u,o)[1],l.push(p=(0,a.correctFloat)(h-d)),l.length>=t.signalPeriod&&(g=l.slice(-t.signalPeriod).reduce((e,t)=>e+t)/t.signalPeriod),s.push([o[u],p,g]),r.push(o[u]),n.push([p,g]));return{values:s,xData:r,yData:n}}}eg.defaultOptions=(0,a.merge)(em.defaultOptions,{params:{fastAvgPeriod:34,slowAvgPeriod:55,signalPeriod:13,volumeSeriesID:"volume"},signalLine:{styles:{lineWidth:1,lineColor:"#ff0000"}},dataGrouping:{approximation:"averages"},tooltip:{pointFormat:'<span style="color: {point.color}">●</span><b> {series.name}</b><br/><span style="color: {point.color}">Klinger</span>: {point.y}<br/><span style="color: {point.series.options.signalLine.styles.lineColor}">Signal</span>: {point.signal}<br/>'}}),(0,a.extend)(eg.prototype,{areaLinesNames:[],linesApiNames:["signalLine"],nameBase:"Klinger",nameComponents:["fastAvgPeriod","slowAvgPeriod"],pointArrayMap:["y","signal"],parallelArrays:["x","y","signal"],pointValKey:"y"}),T.compose(eg),d().registerSeriesType("klinger",eg);let{noop:ey}=i(),{sma:ef}=d().seriesTypes;class ex extends ef{init(){d().seriesTypes.sma.prototype.init.apply(this,arguments);let e=this.color,t=this.colorIndex;this.options&&((0,a.defined)(this.colorIndex)&&(this.options.signalLine?.styles&&!this.options.signalLine.styles.lineColor&&(this.options.colorIndex=this.colorIndex+1,this.getCyclic("color",void 0,this.chart.options.colors),this.options.signalLine.styles.lineColor=this.color),this.options.macdLine?.styles&&!this.options.macdLine.styles.lineColor&&(this.options.colorIndex=this.colorIndex+1,this.getCyclic("color",void 0,this.chart.options.colors),this.options.macdLine.styles.lineColor=this.color)),this.macdZones={zones:this.options.macdLine?.zones,startIndex:0},this.signalZones={zones:this.macdZones.zones?.concat(this.options.signalLine.zones),startIndex:this.macdZones.zones?.length}),this.color=e,this.colorIndex=t}toYData(e){return[e.y,e.signal,e.MACD]}translate(){let e=this,t=["plotSignal","plotMACD"];i().seriesTypes.column.prototype.translate.apply(e),e.points.forEach(function(s){[s.signal,s.MACD].forEach(function(a,o){null!==a&&(s[t[o]]=e.yAxis.toPixels(a,!0))})})}destroy(){this.graph=null,this.graphmacd=this.graphmacd&&this.graphmacd.destroy(),this.graphsignal=this.graphsignal&&this.graphsignal.destroy(),d().seriesTypes.sma.prototype.destroy.apply(this,arguments)}drawGraph(){let e=this,t=e.points,s=e.options,o=e.zones,i={options:{gapSize:s.gapSize}},r=[[],[]],n,l=t.length;for(;l--;)n=t[l],(0,a.defined)(n.plotMACD)&&r[0].push({plotX:n.plotX,plotY:n.plotMACD,isNull:!(0,a.defined)(n.plotMACD)}),(0,a.defined)(n.plotSignal)&&r[1].push({plotX:n.plotX,plotY:n.plotSignal,isNull:!(0,a.defined)(n.plotMACD)});["macd","signal"].forEach((t,o)=>{e.points=r[o],e.options=(0,a.merge)(s[`${t}Line`]?.styles||{},i),e.graph=e[`graph${t}`],e.zones=(e[`${t}Zones`].zones||[]).slice(e[`${t}Zones`].startIndex||0),d().seriesTypes.sma.prototype.drawGraph.call(e),e[`graph${t}`]=e.graph}),e.points=t,e.options=s,e.zones=o}applyZones(){let e=this.zones;this.zones=this.signalZones.zones,d().seriesTypes.sma.prototype.applyZones.call(this),this.graphmacd&&this.options.macdLine.zones.length&&this.graphmacd.hide(),this.zones=e}getValues(e,t){let s=t.longPeriod-t.shortPeriod,o=[],i=[],r=[],n,l,p,u=0,h=[];if(!(e.xData.length<t.longPeriod+t.signalPeriod)){for(p=0,n=d().seriesTypes.ema.prototype.getValues(e,{period:t.shortPeriod,index:t.index}),l=d().seriesTypes.ema.prototype.getValues(e,{period:t.longPeriod,index:t.index}),n=n.values,l=l.values;p<=n.length;p++)(0,a.defined)(l[p])&&(0,a.defined)(l[p][1])&&(0,a.defined)(n[p+s])&&(0,a.defined)(n[p+s][0])&&o.push([n[p+s][0],0,null,n[p+s][1]-l[p][1]]);for(p=0;p<o.length;p++)i.push(o[p][0]),r.push([0,null,o[p][3]]);for(p=0,h=(h=d().seriesTypes.ema.prototype.getValues({xData:i,yData:r},{period:t.signalPeriod,index:2})).values;p<o.length;p++)o[p][0]>=h[0][0]&&(o[p][2]=h[u][1],r[p]=[0,h[u][1],o[p][3]],null===o[p][3]?(o[p][1]=0,r[p][0]=0):(o[p][1]=(0,a.correctFloat)(o[p][3]-h[u][1]),r[p][0]=(0,a.correctFloat)(o[p][3]-h[u][1])),u++);return{values:o,xData:i,yData:r}}}}ex.defaultOptions=(0,a.merge)(ef.defaultOptions,{params:{shortPeriod:12,longPeriod:26,signalPeriod:9,period:26},signalLine:{zones:[],styles:{lineWidth:1,lineColor:void 0}},macdLine:{zones:[],styles:{lineWidth:1,lineColor:void 0}},threshold:0,groupPadding:.1,pointPadding:.1,crisp:!1,states:{hover:{halo:{size:0}}},tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>Value: {point.MACD}<br/>Signal: {point.signal}<br/>Histogram: {point.y}<br/>'},dataGrouping:{approximation:"averages"},minPointLength:0}),(0,a.extend)(ex.prototype,{nameComponents:["longPeriod","shortPeriod","signalPeriod"],pointArrayMap:["y","signal","MACD"],parallelArrays:["x","y","signal","MACD"],pointValKey:"y",markerAttribs:ey,getColumnMetrics:i().seriesTypes.column.prototype.getColumnMetrics,crispCol:i().seriesTypes.column.prototype.crispCol,drawPoints:i().seriesTypes.column.prototype.drawPoints}),d().registerSeriesType("macd",ex);let{sma:ev}=d().seriesTypes;function eD(e){return e.reduce(function(e,t){return e+t})}function eA(e){return(e[1]+e[2]+e[3])/3}class eb extends ev{getValues(e,t){let s=t.period,o=e.xData,i=e.yData,r=i?i.length:0,n=t.decimals,l=e.chart.get(t.volumeSeriesID),p=l?.getColumn("y")||[],u=[],h=[],d=[],c=[],m=[],g,y,f,x,v,D,A=!1,b=1;if(!l)return void(0,a.error)("Series "+t.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,e.chart);if(!(o.length<=s)&&(0,a.isArray)(i[0])&&4===i[0].length&&p){for(g=eA(i[b]);b<s+1;)y=g,A=(g=eA(i[b]))>=y,f=g*p[b],c.push(A?f:0),m.push(A?0:f),b++;for(D=b-1;D<r;D++){var S;D>b-1&&(c.shift(),m.shift(),y=g,A=(g=eA(i[D]))>y,f=g*p[D],c.push(A?f:0),m.push(A?0:f)),x=eD(m),S=100-100/(1+eD(c)/x),v=parseFloat(S.toFixed(n)),u.push([o[D],v]),h.push(o[D]),d.push(v)}return{values:u,xData:h,yData:d}}}}eb.defaultOptions=(0,a.merge)(ev.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume",decimals:4}}),(0,a.extend)(eb.prototype,{nameBase:"Money Flow Index"}),d().registerSeriesType("mfi",eb);let{sma:eS}=d().seriesTypes;function eC(e,t,s,a,o){let i=t[s-1][o]-t[s-a-1][o];return[e[s-1],i]}class eT extends eS{getValues(e,t){let s,o,i=t.period,r=t.index,n=e.xData,l=e.yData,p=l?l.length:0,u=[],h=[],d=[];if(!(n.length<=i)&&(0,a.isArray)(l[0])){for(s=i+1;s<p;s++)o=eC(n,l,s,i,r),u.push(o),h.push(o[0]),d.push(o[1]);return o=eC(n,l,s,i,r),u.push(o),h.push(o[0]),d.push(o[1]),{values:u,xData:h,yData:d}}}}eT.defaultOptions=(0,a.merge)(eS.defaultOptions,{params:{index:3}}),(0,a.extend)(eT.prototype,{nameBase:"Momentum"}),d().registerSeriesType("momentum",eT);let{atr:eP}=d().seriesTypes;class eM extends eP{getValues(e,t){let s=super.getValues.apply(this,arguments),a=s.values.length,o=e.yData,i=0,r=t.period-1;if(s){for(;i<a;i++)s.yData[i]=s.values[i][1]/o[r][3]*100,s.values[i][1]=s.yData[i],r++;return s}}}eM.defaultOptions=(0,a.merge)(eP.defaultOptions,{tooltip:{valueSuffix:"%"}}),d().registerSeriesType("natr",eM);let{sma:eV}=d().seriesTypes;class eO extends eV{getValues(e,t){let s=e.chart.get(t.volumeSeriesID),o=e.xData,i=e.yData,r=[],n=[],l=[],p=!(0,a.isNumber)(i[0]),u=[],h=1,d=0,c=0,m=0,g=0,y;if(!s)return void(0,a.error)("Series "+t.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,e.chart);for(y=s.getColumn("y"),u=[o[0],d],m=p?i[0][3]:i[0],r.push(u),n.push(o[0]),l.push(u[1]);h<i.length;h++)c=(g=p?i[h][3]:i[h])>m?d+y[h]:g===m?d:d-y[h],u=[o[h],c],d=c,m=g,r.push(u),n.push(o[h]),l.push(u[1]);return{values:r,xData:n,yData:l}}}eO.defaultOptions=(0,a.merge)(eV.defaultOptions,{marker:{enabled:!1},params:{index:void 0,period:void 0,volumeSeriesID:"volume"},tooltip:{valueDecimals:0}}),(0,a.extend)(eO.prototype,{nameComponents:void 0}),d().registerSeriesType("obv",eO);let eL=d().seriesTypes.sma.prototype.pointClass;function ek(e,t){let s=e.series.pointArrayMap,a,o=s.length;for(d().seriesTypes.sma.prototype.pointClass.prototype[t].call(e);o--;)e[a="dataLabel"+s[o]]&&e[a].element&&e[a].destroy(),e[a]=null}let{sma:ew}=d().seriesTypes;class eE extends ew{toYData(e){return[e.P]}translate(){let e=this;super.translate.apply(e),e.points.forEach(function(t){e.pointArrayMap.forEach(function(s){(0,a.defined)(t[s])&&(t["plot"+s]=e.yAxis.toPixels(t[s],!0))})}),e.plotEndPoint=e.xAxis.toPixels(e.endPoint,!0)}getGraphPath(e){let t=this,s=[[],[],[],[],[],[],[],[],[]],o=t.pointArrayMap.length,i=t.plotEndPoint,r=[],n,l,p=e.length,u;for(;p--;){for(u=0,l=e[p];u<o;u++)n=t.pointArrayMap[u],(0,a.defined)(l[n])&&s[u].push({plotX:l.plotX,plotY:l["plot"+n],isNull:!1},{plotX:i,plotY:l["plot"+n],isNull:!1},{plotX:i,plotY:null,isNull:!0});i=l.plotX}return s.forEach(e=>{r=r.concat(super.getGraphPath.call(t,e))}),r}drawDataLabels(){let e,t,s,a,o=this,i=o.pointArrayMap;o.options.dataLabels.enabled&&(t=o.points.length,i.concat([!1]).forEach((r,n)=>{for(a=t;a--;)s=o.points[a],r?(s.y=s[r],s.pivotLine=r,s.plotY=s["plot"+r],e=s["dataLabel"+r],n&&(s["dataLabel"+i[n-1]]=s.dataLabel),s.dataLabels||(s.dataLabels=[]),s.dataLabels[0]=s.dataLabel=e=e&&e.element?e:null):s["dataLabel"+i[n-1]]=s.dataLabel;super.drawDataLabels.call(o)}))}getValues(e,t){let s,o,i,r,n,l,p,u=t.period,h=e.xData,d=e.yData,c=d?d.length:0,m=this[t.algorithm+"Placement"],g=[],y=[],f=[];if(!(h.length<u)&&(0,a.isArray)(d[0])&&4===d[0].length){for(p=u+1;p<=c+u;p+=u)i=h.slice(p-u-1,p),r=d.slice(p-u-1,p),o=i.length,s=i[o-1],l=m(this.getPivotAndHLC(r)),n=g.push([s].concat(l)),y.push(s),f.push(g[n-1].slice(1));return this.endPoint=i[0]+(s-i[0])/o*u,{values:g,xData:y,yData:f}}}getPivotAndHLC(e){let t=e[e.length-1][3],s=-1/0,a=1/0;return e.forEach(function(e){s=Math.max(s,e[1]),a=Math.min(a,e[2])}),[(s+a+t)/3,s,a,t]}standardPlacement(e){let t=e[1]-e[2];return[null,null,e[0]+t,2*e[0]-e[2],e[0],2*e[0]-e[1],e[0]-t,null,null]}camarillaPlacement(e){let t=e[1]-e[2];return[e[3]+1.5*t,e[3]+1.25*t,e[3]+1.1666*t,e[3]+1.0833*t,e[0],e[3]-1.0833*t,e[3]-1.1666*t,e[3]-1.25*t,e[3]-1.5*t]}fibonacciPlacement(e){let t=e[1]-e[2];return[null,e[0]+t,e[0]+.618*t,e[0]+.382*t,e[0],e[0]-.382*t,e[0]-.618*t,e[0]-t,null]}}eE.defaultOptions=(0,a.merge)(ew.defaultOptions,{params:{index:void 0,period:28,algorithm:"standard"},marker:{enabled:!1},enableMouseTracking:!1,dataLabels:{enabled:!0,format:"{point.pivotLine}"},dataGrouping:{approximation:"averages"}}),(0,a.extend)(eE.prototype,{nameBase:"Pivot Points",pointArrayMap:["R4","R3","R2","R1","P","S1","S2","S3","S4"],pointValKey:"P",pointClass:class extends eL{destroyElements(){ek(this,"destroyElements")}destroy(){ek(this,"destroyElements")}}}),d().registerSeriesType("pivotpoints",eE);let{ema:eI}=d().seriesTypes;class eN extends eI{getValues(e,t){let s,o,i=t.periods,r=t.index,n=[],l=[],p=[];if(2!==i.length||i[1]<=i[0])return void(0,a.error)('Error: "PPO requires two periods. Notice, first period should be lower than the second one."');let u=super.getValues.call(this,e,{index:r,period:i[0]}),h=super.getValues.call(this,e,{index:r,period:i[1]});if(!u||!h)return;let d=i[1]-i[0];for(o=0;o<h.yData.length;o++)s=(0,a.correctFloat)((u.yData[o+d]-h.yData[o])/h.yData[o]*100),n.push([h.xData[o],s]),l.push(h.xData[o]),p.push(s);return{values:n,xData:l,yData:p}}}eN.defaultOptions=(0,a.merge)(eI.defaultOptions,{params:{period:void 0,periods:[12,26]}}),(0,a.extend)(eN.prototype,{nameBase:"PPO",nameComponents:["periods"]}),d().registerSeriesType("ppo",eN);let eF=function(e,t,s){return e.reduce((e,a)=>[Math.min(e[0],a[t]),Math.max(e[1],a[s])],[Number.MAX_VALUE,-Number.MAX_VALUE])},{sma:eB}=d().seriesTypes;class eG extends eB{getValues(e,t){let s,a,o,i,r,n,l=t.period,p=e.xData,u=e.yData,h=u?u.length:0,d=[],c=[],m=[];if(!(h<l)){for(n=l;n<=h;n++)i=p[n-1],s=((a=(r=eF(u.slice(n-l,n),2,1))[1])+(o=r[0]))/2,d.push([i,a,s,o]),c.push(i),m.push([a,s,o]);return{values:d,xData:c,yData:m}}}}eG.defaultOptions=(0,a.merge)(eB.defaultOptions,{params:{index:void 0,period:20},lineWidth:1,topLine:{styles:{lineColor:"var(--highcharts-color-2)",lineWidth:1}},bottomLine:{styles:{lineColor:"var(--highcharts-color-8)",lineWidth:1}},dataGrouping:{approximation:"averages"}}),(0,a.extend)(eG.prototype,{areaLinesNames:["top","bottom"],nameBase:"Price Channel",nameComponents:["period"],linesApiNames:["topLine","bottomLine"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"}),T.compose(eG),d().registerSeriesType("pc",eG);let{sma:eW}=d().seriesTypes;class ez extends eW{init(){super.init.apply(this,arguments),this.options=(0,a.merge)({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)}getValues(e,t){let s,o,i,r,n,l,p,u,h=t.period,d=t.topBand,c=t.bottomBand,m=e.xData,g=e.yData,y=g?g.length:0,f=[],x=[],v=[];if(!(m.length<h)&&(0,a.isArray)(g[0])&&4===g[0].length){for(u=h;u<=y;u++)n=m.slice(u-h,u),l=g.slice(u-h,u),r=(p=super.getValues({xData:n,yData:l},t)).xData[0],o=(s=p.yData[0])*(1+d),i=s*(1-c),f.push([r,o,s,i]),x.push(r),v.push([o,s,i]);return{values:f,xData:x,yData:v}}}}ez.defaultOptions=(0,a.merge)(eW.defaultOptions,{marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">●</span><b> {series.name}</b><br/>Top: {point.top}<br/>Middle: {point.middle}<br/>Bottom: {point.bottom}<br/>'},params:{period:20,topBand:.1,bottomBand:.1},bottomLine:{styles:{lineWidth:1,lineColor:void 0}},topLine:{styles:{lineWidth:1}},dataGrouping:{approximation:"averages"}}),(0,a.extend)(ez.prototype,{areaLinesNames:["top","bottom"],linesApiNames:["topLine","bottomLine"],nameComponents:["period","topBand","bottomBand"],nameBase:"Price envelopes",pointArrayMap:["top","middle","bottom"],parallelArrays:["x","y","top","bottom"],pointValKey:"middle"}),T.compose(ez),d().registerSeriesType("priceenvelopes",ez);let{sma:eY}=d().seriesTypes;function eX(e,t){return parseFloat(e.toFixed(t))}class eR extends eY{constructor(){super(...arguments),this.nameComponents=void 0}getValues(e,t){let s=e.xData,a=e.yData,o=t.maxAccelerationFactor,i=t.increment,r=t.initialAccelerationFactor,n=t.decimals,l=t.index,p=[],u=[],h=[],d=t.initialAccelerationFactor,c,m=a[0][1],g,y,f,x=1,v,D,A,b,S=a[0][2],C,T,P,M;if(!(l>=a.length)){for(M=0;M<l;M++)m=Math.max(a[M][1],m),S=Math.min(a[M][2],eX(S,n));for(c=a[M][1]>S?1:-1,g=m-S,y=(d=t.initialAccelerationFactor)*g,p.push([s[l],S]),u.push(s[l]),h.push(eX(S,n)),M=l+1;M<a.length;M++)if(v=a[M-1][2],D=a[M-2][2],A=a[M-1][1],b=a[M-2][1],T=a[M][1],P=a[M][2],null!==D&&null!==b&&null!==v&&null!==A&&null!==T&&null!==P){var V,O,L,k,w,E,I,N,F,B,G,W,z,Y,X,R,K,j,U,Z,q;w=c,E=x,I=S,N=y,F=D,B=v,G=A,W=b,z=m,S=w===E?1===w?I+N<Math.min(F,B)?I+N:Math.min(F,B):I+N>Math.max(W,G)?I+N:Math.max(W,G):z,V=c,O=m,C=1===V?T>O?T:O:P<O?P:O,L=x,k=S,Y=f=1===L&&P>k||-1===L&&T>k?1:-1,X=c,R=C,K=m,j=d,U=i,Z=o,q=r,y=(d=Y===X?1===Y&&R>K||-1===Y&&R<K?j===Z?Z:eX(j+U,2):j:q)*(g=C-S),p.push([s[M],eX(S,n)]),u.push(s[M]),h.push(eX(S,n)),x=c,c=f,m=C}return{values:p,xData:u,yData:h}}}}eR.defaultOptions=(0,a.merge)(eY.defaultOptions,{lineWidth:0,marker:{enabled:!0},states:{hover:{lineWidthPlus:0}},params:{period:void 0,initialAccelerationFactor:.02,maxAccelerationFactor:.2,increment:.02,index:2,decimals:4}}),d().registerSeriesType("psar",eR);let{sma:eK}=d().seriesTypes;class ej extends eK{getValues(e,t){let s=t.period,o=e.xData,i=e.yData,r=i?i.length:0,n=[],l=[],p=[],u,h=-1,d;if(!(o.length<=s)){for((0,a.isArray)(i[0])&&(h=t.index),u=s;u<r;u++)d=function(e,t,s,a,o){let i,r;return r=o<0?(i=t[s-a])?(t[s]-i)/i*100:null:(i=t[s-a][o])?(t[s][o]-i)/i*100:null,[e[s],r]}(o,i,u,s,h),n.push(d),l.push(d[0]),p.push(d[1]);return{values:n,xData:l,yData:p}}}}ej.defaultOptions=(0,a.merge)(eK.defaultOptions,{params:{index:3,period:9}}),(0,a.extend)(ej.prototype,{nameBase:"Rate of Change"}),d().registerSeriesType("roc",ej);let{sma:eU}=d().seriesTypes;function eZ(e,t){return parseFloat(e.toFixed(t))}class eq extends eU{getValues(e,t){let s=t.period,o=e.xData,i=e.yData,r=i?i.length:0,n=t.decimals,l=[],p=[],u=[],h=0,d=0,c=t.index,m=1,g,y,f,x,v,D;if(!(o.length<s)){for((0,a.isNumber)(i[0])?D=i:(c=Math.min(c,i[0].length-1),D=i.map(e=>e[c]));m<s;)(y=eZ(D[m]-D[m-1],n))>0?h+=y:d+=Math.abs(y),m++;for(f=eZ(h/(s-1),n),x=eZ(d/(s-1),n),v=m;v<r;v++)(y=eZ(D[v]-D[v-1],n))>0?(h=y,d=0):(h=0,d=Math.abs(y)),f=eZ((f*(s-1)+h)/s,n),g=0===(x=eZ((x*(s-1)+d)/s,n))?100:0===f?0:eZ(100-100/(1+f/x),n),l.push([o[v],g]),p.push(o[v]),u.push(g);return{values:l,xData:p,yData:u}}}}eq.defaultOptions=(0,a.merge)(eU.defaultOptions,{params:{decimals:4,index:3}}),d().registerSeriesType("rsi",eq);let{sma:e$}=d().seriesTypes;class e_ extends e${init(){super.init.apply(this,arguments),this.options=(0,a.merge)({smoothedLine:{styles:{lineColor:this.color}}},this.options)}getValues(e,t){let s=t.periods[0],o=t.periods[1],i=e.xData,r=e.yData,n=r?r.length:0,l=[],p=[],u=[],h,d,c=null,m,g;if(n<s||!(0,a.isArray)(r[0])||4!==r[0].length)return;let y=!0,f=0;for(g=s-1;g<n;g++){if(h=(m=eF(r.slice(g-s+1,g+1),2,1))[0],isNaN(d=(r[g][3]-h)/(m[1]-h)*100)&&y){f++;continue}y&&!isNaN(d)&&(y=!1);let e=p.push(i[g]);isNaN(d)?u.push([u[e-2]&&"number"==typeof u[e-2][0]?u[e-2][0]:null,null]):u.push([d,null]),g>=f+(s-1)+(o-1)&&(c=super.getValues({xData:p.slice(-o),yData:u.slice(-o)},{period:o}).yData[0]),l.push([i[g],d,c]),u[e-1][1]=c}return{values:l,xData:p,yData:u}}}e_.defaultOptions=(0,a.merge)(e$.defaultOptions,{params:{index:void 0,period:void 0,periods:[14,3]},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">●</span><b> {series.name}</b><br/>%K: {point.y}<br/>%D: {point.smoothed}<br/>'},smoothedLine:{styles:{lineWidth:1,lineColor:void 0}},dataGrouping:{approximation:"averages"}}),(0,a.extend)(e_.prototype,{areaLinesNames:[],nameComponents:["periods"],nameBase:"Stochastic",pointArrayMap:["y","smoothed"],parallelArrays:["x","y","smoothed"],pointValKey:"y",linesApiNames:["smoothedLine"]}),T.compose(e_),d().registerSeriesType("stochastic",e_);let{sma:eH,stochastic:eJ}=d().seriesTypes;class eQ extends eJ{getValues(e,t){let s=t.periods,a=super.getValues.call(this,e,t),o={values:[],xData:[],yData:[]};if(!a)return;o.xData=a.xData.slice(s[1]-1);let i=a.yData.slice(s[1]-1),r=eH.prototype.getValues.call(this,{xData:o.xData,yData:i},{index:1,period:s[2]});if(r){for(let e=0,t=o.xData.length;e<t;e++)o.yData[e]=[i[e][1],r.yData[e-s[2]+1]||null],o.values[e]=[o.xData[e],i[e][1],r.yData[e-s[2]+1]||null];return o}}}eQ.defaultOptions=(0,a.merge)(eJ.defaultOptions,{params:{periods:[14,3,3]}}),(0,a.extend)(eQ.prototype,{nameBase:"Slow Stochastic"}),d().registerSeriesType("slowstochastic",eQ);let{atr:e0,sma:e1}=d().seriesTypes;function e2(e,t){return{index:t,close:e.getColumn("close")[t],x:e.getColumn("x")[t]}}class e3 extends e1{init(){let e=this;super.init.apply(e,arguments);let t=(0,a.addEvent)(this.chart.constructor,"afterLinkSeries",()=>{let{linkedParent:s,options:a}=e;a&&s&&(a.cropThreshold=(s.options.cropThreshold??0)-((a.params?.period??0)-1)),t()},{order:1})}drawGraph(){let e=this,t=e.options,s=e.linkedParent,o=s.getColumn("x"),i=s?s.points:[],r=e.points,n=e.graph,l=i.length-r.length,p=l>0?l:0,u={options:{gapSize:t.gapSize}},h={top:[],bottom:[],intersect:[]},d={top:{styles:{lineWidth:t.lineWidth,lineColor:t.fallingTrendColor||t.color,dashStyle:t.dashStyle}},bottom:{styles:{lineWidth:t.lineWidth,lineColor:t.risingTrendColor||t.color,dashStyle:t.dashStyle}},intersect:t.changeTrendLine},c,m,g,y,f,x,v,D,A,b=r.length;for(;b--;)c=r[b],m=r[b-1],g=i[b-1+p],y=i[b-2+p],f=i[b+p],x=i[b+p+1],v=c.options.color,D={x:c.x,plotX:c.plotX,plotY:c.plotY,isNull:!1},!y&&g&&(0,a.isNumber)(o[g.index-1])&&(y=e2(s,g.index-1)),!x&&f&&(0,a.isNumber)(o[f.index+1])&&(x=e2(s,f.index+1)),!g&&y&&(0,a.isNumber)(o[y.index+1])?g=e2(s,y.index+1):!g&&f&&(0,a.isNumber)(o[f.index-1])&&(g=e2(s,f.index-1)),c&&g&&f&&y&&c.x!==g.x&&(c.x===f.x?(y=g,g=f):c.x===y.x?(g=y,y={close:s.getColumn("close")[g.index-1],x:o[g.index-1]}):x&&c.x===x.x&&(g=x,y=f)),m&&y&&g?(A={x:m.x,plotX:m.plotX,plotY:m.plotY,isNull:!1},c.y>=g.close&&m.y>=y.close?(c.color=v||t.fallingTrendColor||t.color,h.top.push(D)):c.y<g.close&&m.y<y.close?(c.color=v||t.risingTrendColor||t.color,h.bottom.push(D)):(h.intersect.push(D),h.intersect.push(A),h.intersect.push((0,a.merge)(A,{isNull:!0})),c.y>=g.close&&m.y<y.close?(c.color=v||t.fallingTrendColor||t.color,m.color=v||t.risingTrendColor||t.color,h.top.push(D),h.top.push((0,a.merge)(A,{isNull:!0}))):c.y<g.close&&m.y>=y.close&&(c.color=v||t.risingTrendColor||t.color,m.color=v||t.fallingTrendColor||t.color,h.bottom.push(D),h.bottom.push((0,a.merge)(A,{isNull:!0}))))):g&&(c.y>=g.close?(c.color=v||t.fallingTrendColor||t.color,h.top.push(D)):(c.color=v||t.risingTrendColor||t.color,h.bottom.push(D)));(0,a.objectEach)(h,function(t,s){e.points=t,e.options=(0,a.merge)(d[s].styles,u),e.graph=e["graph"+s+"Line"],e1.prototype.drawGraph.call(e),e["graph"+s+"Line"]=e.graph}),e.points=r,e.options=t,e.graph=n}getValues(e,t){let s=t.period,o=t.multiplier,i=e.xData,r=e.yData,n=[],l=[],p=[],u=0===s?0:s-1,h=[],d=[],c=[],m,g,y,f,x,v,D,A,b;if(!(i.length<=s)&&(0,a.isArray)(r[0])&&4===r[0].length&&!(s<0)){for(b=0,c=e0.prototype.getValues.call(this,e,{period:s}).yData;b<c.length;b++)A=r[u+b],D=r[u+b-1]||[],f=h[b-1],x=d[b-1],v=p[b-1],0===b&&(f=x=v=0),m=(0,a.correctFloat)((A[1]+A[2])/2+o*c[b]),g=(0,a.correctFloat)((A[1]+A[2])/2-o*c[b]),m<f||D[3]>f?h[b]=m:h[b]=f,g>x||D[3]<x?d[b]=g:d[b]=x,v===f&&A[3]<h[b]||v===x&&A[3]<d[b]?y=h[b]:(v===f&&A[3]>h[b]||v===x&&A[3]>d[b])&&(y=d[b]),n.push([i[u+b],y]),l.push(i[u+b]),p.push(y);return{values:n,xData:l,yData:p}}}}e3.defaultOptions=(0,a.merge)(e1.defaultOptions,{params:{index:void 0,multiplier:3,period:10},risingTrendColor:"var(--highcharts-positive-color)",fallingTrendColor:"var(--highcharts-negative-color)",changeTrendLine:{styles:{lineWidth:1,lineColor:"var(--highcharts-neutral-color-80)",dashStyle:"LongDash"}}}),(0,a.extend)(e3.prototype,{nameBase:"Supertrend",nameComponents:["multiplier","period"]}),d().registerSeriesType("supertrend",e3);let{sma:{prototype:{pointClass:e4}}}=d().seriesTypes,e5=class extends e4{destroy(){this.negativeGraphic&&(this.negativeGraphic=this.negativeGraphic.destroy()),super.destroy.apply(this,arguments)}},{noop:e6}=i(),{column:{prototype:e8},sma:e9}=d().seriesTypes,e7=Math.abs;class te extends e9{init(e,t){let s=this;delete t.data,super.init.apply(s,arguments);let o=(0,a.addEvent)(this.chart.constructor,"afterLinkSeries",function(){if(s.options){let t=s.options.params,a=s.linkedParent,o=t?.volumeSeriesID?e.get(t?.volumeSeriesID):void 0;a&&o&&s.addCustomEvents(a,o)}o()},{order:1});return s}addCustomEvents(e,t){let s=this,o=()=>{s.chart.redraw(),s.setData([]),s.zoneStarts=[],s.zoneLinesSVG&&(s.zoneLinesSVG=s.zoneLinesSVG.destroy())};return s.dataEventsToUnbind.push((0,a.addEvent)(e,"remove",function(){o()})),t&&s.dataEventsToUnbind.push((0,a.addEvent)(t,"remove",function(){o()})),s}animate(e){let t=this,s=t.chart.inverted,o=t.group,i={};if(!e&&o){let e=s?t.yAxis.top:t.xAxis.left;s?(o["forceAnimate:translateY"]=!0,i.translateY=e):(o["forceAnimate:translateX"]=!0,i.translateX=e),o.animate(i,(0,a.extend)((0,a.animObject)(t.options.animation),{step:function(e,s){t.group.attr({scaleX:Math.max(.001,s.pos)})}}))}}drawPoints(){this.options.volumeDivision.enabled&&(this.posNegVolume(!0,!0),e8.drawPoints.apply(this,arguments),this.posNegVolume(!1,!1)),e8.drawPoints.apply(this,arguments)}posNegVolume(e,t){let s=t?["positive","negative"]:["negative","positive"],a=this.options.volumeDivision,o=this.points.length,i=[],r=[],n=0,l,p,u,h;for(e?(this.posWidths=i,this.negWidths=r):(i=this.posWidths,r=this.negWidths);n<o;n++)(h=this.points[n])[s[0]+"Graphic"]=h.graphic,h.graphic=h[s[1]+"Graphic"],e&&(l=h.shapeArgs.width,(u=(p=this.priceZones[n]).wholeVolumeData)?(i.push(l/u*p.positiveVolumeData),r.push(l/u*p.negativeVolumeData)):(i.push(0),r.push(0))),h.color=t?a.styles.positiveColor:a.styles.negativeColor,h.shapeArgs.width=t?this.posWidths[n]:this.negWidths[n],h.shapeArgs.x=t?h.shapeArgs.x:this.posWidths[n]}translate(){let e=this,t=e.options,s=e.chart,o=e.yAxis,i=o.min,r=e.options.zoneLines,n=e.priceZones,l=0,p,u,h,d,c,m,g,y,f,x,v;e8.translate.apply(e);let D=e.points;D.length&&(y=t.pointPadding<.5?t.pointPadding:.1,p=e.volumeDataArray,u=(0,a.arrayMax)(p),h=s.plotWidth/2,f=s.plotTop,d=e7(o.toPixels(i)-o.toPixels(i+e.rangeStep)),m=e7(o.toPixels(i)-o.toPixels(i+e.rangeStep)),y&&(c=e7(d*(1-2*y)),l=e7((d-c)/2),d=e7(c)),D.forEach(function(t,s){x=t.barX=t.plotX=0,v=t.plotY=o.toPixels(n[s].start)-f-(o.reversed?d-m:d)-l,t.pointWidth=g=(0,a.correctFloat)(h*n[s].wholeVolumeData/u),t.shapeArgs=e.crispCol.apply(e,[x,v,g,d]),t.volumeNeg=n[s].negativeVolumeData,t.volumePos=n[s].positiveVolumeData,t.volumeAll=n[s].wholeVolumeData,delete t.origin,t.isInside=e.isPointInside(t)}),r.enabled&&e.drawZones(s,o,e.zoneStarts,r.styles))}getExtremes(){let e,t=this.options.compare,s=this.options.cumulative;return this.options.compare?(this.options.compare=void 0,e=super.getExtremes(),this.options.compare=t):this.options.cumulative?(this.options.cumulative=!1,e=super.getExtremes(),this.options.cumulative=s):e=super.getExtremes(),e}getValues(e,t){let s=e.getColumn("x",!0),o=e.processedYData,i=this.chart,r=t.ranges,n=[],l=[],p=[],u=i.get(t.volumeSeriesID);if(!e.chart)return void(0,a.error)("Base series not found! In case it has been removed, add a new one.",!0,i);if(!u||!u.getColumn("x",!0).length){let e=u&&!u.getColumn("x",!0).length?" does not contain any data.":" not found! Check `volumeSeriesID`.";(0,a.error)("Series "+t.volumeSeriesID+e,!0,i);return}let h=(0,a.isArray)(o[0]);return h&&4!==o[0].length?void(0,a.error)("Type of "+e.name+" series is different than line, OHLC or candlestick.",!0,i):((this.priceZones=this.specifyZones(h,s,o,r,u)).forEach(function(e,t){n.push([e.x,e.end]),l.push(n[t][0]),p.push(n[t][1])}),{values:n,xData:l,yData:p})}specifyZones(e,t,s,o,i){let r=!!e&&function(e){let t=e.length,s=e[0][3],a=s,o=1,i;for(;o<t;o++)(i=e[o][3])<s&&(s=i),i>a&&(a=i);return{min:s,max:a}}(s),n=this.zoneStarts=[],l=[],p=r?r.min:(0,a.arrayMin)(s),u=r?r.max:(0,a.arrayMax)(s),h=0,d=1,c=this.linkedParent;if(!this.options.compareToMain&&c.dataModify&&(p=c.dataModify.modifyValue(p),u=c.dataModify.modifyValue(u)),!(0,a.defined)(p)||!(0,a.defined)(u))return this.points.length&&(this.setData([]),this.zoneStarts=[],this.zoneLinesSVG&&(this.zoneLinesSVG=this.zoneLinesSVG.destroy())),[];let m=this.rangeStep=(0,a.correctFloat)(u-p)/o;for(n.push(p);h<o-1;h++)n.push((0,a.correctFloat)(n[h]+m));n.push(u);let g=n.length;for(;d<g;d++)l.push({index:d-1,x:t[0],start:n[d-1],end:n[d]});return this.volumePerZone(e,l,i,t,s)}volumePerZone(e,t,s,a,o){let i,r,n,l,p,u=this,h=s.getColumn("x",!0),d=s.getColumn("y",!0),c=t.length-1,m=o.length,g=d.length;return e7(m-g)&&(a[0]!==h[0]&&d.unshift(0),a[m-1]!==h[g-1]&&d.push(0)),u.volumeDataArray=[],t.forEach(function(t){for(p=0,t.wholeVolumeData=0,t.positiveVolumeData=0,t.negativeVolumeData=0;p<m;p++){r=!1,n=!1,l=e?o[p][3]:o[p],i=p?e?o[p-1][3]:o[p-1]:l;let s=u.linkedParent;!u.options.compareToMain&&s.dataModify&&(l=s.dataModify.modifyValue(l),i=s.dataModify.modifyValue(i)),l<=t.start&&0===t.index&&(r=!0),l>=t.end&&t.index===c&&(n=!0),(l>t.start||r)&&(l<t.end||n)&&(t.wholeVolumeData+=d[p],i>l?t.negativeVolumeData+=d[p]:t.positiveVolumeData+=d[p])}u.volumeDataArray.push(t.wholeVolumeData)}),t}drawZones(e,t,s,a){let o=e.renderer,i=e.plotWidth,r=e.plotTop,n=this.zoneLinesSVG,l=[],p;s.forEach(function(s){p=t.toPixels(s)-r,l=l.concat(e.renderer.crispLine([["M",0,p],["L",i,p]],a.lineWidth))}),n?n.animate({d:l}):n=this.zoneLinesSVG=o.path(l).attr({"stroke-width":a.lineWidth,stroke:a.color,dashstyle:a.dashStyle,zIndex:this.group.zIndex+.1}).add(this.group)}}te.defaultOptions=(0,a.merge)(e9.defaultOptions,{params:{index:void 0,period:void 0,ranges:12,volumeSeriesID:"volume"},zoneLines:{enabled:!0,styles:{color:"#0A9AC9",dashStyle:"LongDash",lineWidth:1}},volumeDivision:{enabled:!0,styles:{positiveColor:"rgba(144, 237, 125, 0.8)",negativeColor:"rgba(244, 91, 91, 0.8)"}},animationLimit:1e3,enableMouseTracking:!1,pointPadding:0,zIndex:-1,crisp:!0,dataGrouping:{enabled:!1},dataLabels:{align:"left",allowOverlap:!0,distance:0,enabled:!0,format:"P: {point.volumePos:.2f} | N: {point.volumeNeg:.2f}",padding:0,style:{fontSize:"0.5em"},verticalAlign:"top"}}),(0,a.extend)(te.prototype,{nameBase:"Volume by Price",nameComponents:["ranges"],calculateOn:{chart:"render",xAxis:"afterSetExtremes"},pointClass:e5,markerAttribs:e6,drawGraph:e6,getColumnMetrics:e8.getColumnMetrics,crispCol:e8.crispCol}),d().registerSeriesType("vbp",te);let{sma:tt}=d().seriesTypes;class ts extends tt{getValues(e,t){let s=e.chart,o=e.xData,i=e.yData,r=t.period,n=!0,l;return(l=s.get(t.volumeSeriesID))?((0,a.isArray)(i[0])||(n=!1),this.calculateVWAPValues(n,o,i,l,r)):void(0,a.error)("Series "+t.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,s)}calculateVWAPValues(e,t,s,a,o){let i,r,n,l,p,u,h=a.getColumn("y"),d=h.length,c=t.length,m=[],g=[],y=[],f=[],x=[];for(p=0,i=c<=d?c:d,u=0;p<i;p++)r=(e?(s[p][1]+s[p][2]+s[p][3])/3:s[p])*h[p],n=u?m[p-1]+r:r,l=u?g[p-1]+h[p]:h[p],m.push(n),g.push(l),x.push([t[p],n/l]),y.push(x[p][0]),f.push(x[p][1]),++u===o&&(u=0);return{values:x,xData:y,yData:f}}}ts.defaultOptions=(0,a.merge)(tt.defaultOptions,{params:{index:void 0,period:30,volumeSeriesID:"volume"}}),d().registerSeriesType("vwap",ts);let{sma:ta}=d().seriesTypes;class to extends ta{getValues(e,t){let s,o,i,r,n,l=t.period,p=e.xData,u=e.yData,h=u?u.length:0,d=[],c=[],m=[];if(!(p.length<l)&&(0,a.isArray)(u[0])&&4===u[0].length){for(n=l-1;n<h;n++)r=(s=eF(u.slice(n-l+1,n+1),2,1))[0],o=-(((i=s[1])-u[n][3])/(i-r)*100),p[n]&&(d.push([p[n],o]),c.push(p[n]),m.push(o));return{values:d,xData:c,yData:m}}}}to.defaultOptions=(0,a.merge)(ta.defaultOptions,{params:{index:void 0,period:14}}),(0,a.extend)(to.prototype,{nameBase:"Williams %R"}),d().registerSeriesType("williamsr",to);let{sma:ti}=d().seriesTypes;function tr(e,t,s,a,o){let i=t[a],r=o<0?s[a]:s[a][o];e.push([i,r])}function tn(e,t,s,a){let o=e.length,i=e.reduce(function(e,t,s){return[null,e[1]+t[1]*(s+1)]})[1]/((o+1)/2*o),r=t[a-1];return e.shift(),[r,i]}class tl extends ti{getValues(e,t){let s=t.period,o=e.xData,i=e.yData,r=i?i.length:0,n=o[0],l=[],p=[],u=[],h=1,d=-1,c,m,g=i[0];if(o.length<s)return;(0,a.isArray)(i[0])&&(d=t.index,g=i[0][d]);let y=[[n,g]];for(;h!==s;)tr(y,o,i,h,d),h++;for(c=h;c<r;c++)l.push(m=tn(y,o,i,c)),p.push(m[0]),u.push(m[1]),tr(y,o,i,c,d);return l.push(m=tn(y,o,i,c)),p.push(m[0]),u.push(m[1]),{values:l,xData:p,yData:u}}}tl.defaultOptions=(0,a.merge)(ti.defaultOptions,{params:{index:3,period:9}}),d().registerSeriesType("wma",tl);let{sma:tp}=d().seriesTypes;class tu extends tp{getValues(e,t){let s=t.lowIndex,a=t.highIndex,o=t.deviation/100,i={low:1+o,high:1-o},r=e.xData,n=e.yData,l=n?n.length:0,p=[],u=[],h=[],d,c,m,g,y=!1,f=!1;if(!r||r.length<=1||l&&(void 0===n[0][s]||void 0===n[0][a]))return;let x=n[0][s],v=n[0][a];for(d=1;d<l;d++)n[d][s]<=v*i.high?(p.push([r[0],v]),m=[r[d],n[d][s]],g=!0,y=!0):n[d][a]>=x*i.low&&(p.push([r[0],x]),m=[r[d],n[d][a]],g=!1,y=!0),y&&(u.push(p[0][0]),h.push(p[0][1]),c=d++,d=l);for(d=c;d<l;d++)g?(n[d][s]<=m[1]&&(m=[r[d],n[d][s]]),n[d][a]>=m[1]*i.low&&(f=a)):(n[d][a]>=m[1]&&(m=[r[d],n[d][a]]),n[d][s]<=m[1]*i.high&&(f=s)),!1!==f&&(p.push(m),u.push(m[0]),h.push(m[1]),m=[r[d],n[d][f]],g=!g,f=!1);let D=p.length;return 0!==D&&p[D-1][0]<r[l-1]&&(p.push(m),u.push(m[0]),h.push(m[1])),{values:p,xData:u,yData:h}}}tu.defaultOptions=(0,a.merge)(tp.defaultOptions,{params:{index:void 0,period:void 0,lowIndex:2,highIndex:1,deviation:1}}),(0,a.extend)(tu.prototype,{nameComponents:["deviation"],nameSuffixes:["%"],nameBase:"Zig Zag"}),d().registerSeriesType("zigzag",tu);let{sma:th}=d().seriesTypes;class td extends th{getRegressionLineParameters(e,t){let s=this.options.params.index,o=function(e,t){return(0,a.isArray)(e)?e[t]:e},i=e.reduce(function(e,t){return t+e},0),r=t.reduce(function(e,t){return o(t,s)+e},0),n=i/e.length,l=r/t.length,p,u,h=0,d=0;for(u=0;u<e.length;u++)h+=(p=e[u]-n)*(o(t[u],s)-l),d+=Math.pow(p,2);let c=d?h/d:0;return{slope:c,intercept:l-c*n}}getEndPointY(e,t){return e.slope*t+e.intercept}transformXData(e,t){let s=e[0];return e.map(function(e){return(e-s)/t})}findClosestDistance(e){let t,s,a;for(a=1;a<e.length-1;a++)(t=e[a]-e[a-1])>0&&(void 0===s||t<s)&&(s=t);return s}getValues(e,t){let s,o,i,r,n,l,p,u,h,d=e.xData,c=e.yData,m=t.period,g={xData:[],yData:[],values:[]},y=this.options.params.xAxisUnit||this.findClosestDistance(d);for(o=m-1;o<=d.length-1;o++)i=o-m+1,r=o+1,n=d[o],p=d.slice(i,r),u=c.slice(i,r),h=this.transformXData(p,y),s=this.getRegressionLineParameters(h,u),l=this.getEndPointY(s,h[h.length-1]),g.values.push({regressionLineParameters:s,x:n,y:l}),(0,a.isArray)(g.xData)&&g.xData.push(n),(0,a.isArray)(g.yData)&&g.yData.push(l);return g}}td.defaultOptions=(0,a.merge)(th.defaultOptions,{params:{xAxisUnit:null},tooltip:{valueDecimals:4}}),(0,a.extend)(td.prototype,{nameBase:"Linear Regression Indicator"}),d().registerSeriesType("linearregression",td),d().registerSeriesType("linearRegression",td);let{linearregression:tc}=d().seriesTypes;class tm extends tc{getEndPointY(e){return e.slope}}tm.defaultOptions=(0,a.merge)(tc.defaultOptions),(0,a.extend)(tm.prototype,{nameBase:"Linear Regression Slope Indicator"}),d().registerSeriesType("linearregressionslope",tm),d().registerSeriesType("linearRegressionSlope",tm);let{linearregression:tg}=d().seriesTypes;class ty extends tg{getEndPointY(e){return e.intercept}}ty.defaultOptions=(0,a.merge)(tg.defaultOptions),(0,a.extend)(ty.prototype,{nameBase:"Linear Regression Intercept Indicator"}),d().registerSeriesType("linearregressionintercept",ty),d().registerSeriesType("linearRegressionIntercept",ty);let{linearregression:tf}=d().seriesTypes;class tx extends tf{slopeToAngle(e){return 180/Math.PI*Math.atan(e)}getEndPointY(e){return this.slopeToAngle(e.slope)}}tx.defaultOptions=(0,a.merge)(tf.defaultOptions,{tooltip:{pointFormat:'<span style="color:{point.color}">●</span>{series.name}: <b>{point.y}\xb0</b><br/>'}}),(0,a.extend)(tx.prototype,{nameBase:"Linear Regression Angle Indicator"}),d().registerSeriesType("linearregressionangle",tx),d().registerSeriesType("linearRegressionAngle",tx);let{sma:tv}=d().seriesTypes;class tD extends tv{getValues(e,t){let s,o,i,r,n,l,p,u,h,d,c,m=t.period,g=t.factor,y=t.index,f=e.xData,x=e.yData,v=x?x.length:0,D=[],A=[],b=[],S=[],C=[];if(!(v<m)){for(c=0;c<=v;c++){if(c<v){var T,P,M,V;T=x[c][2],P=x[c][1],n=(0,a.correctFloat)(P-T)/((0,a.correctFloat)(P+T)/2)*1e3*g,D.push((M=x[c][1],M*(0,a.correctFloat)(1+2*n))),A.push((V=x[c][2],V*(0,a.correctFloat)(1-2*n)))}c>=m&&(h=f.slice(c-m,c),d=x.slice(c-m,c),p=super.getValues.call(this,{xData:h,yData:D.slice(c-m,c)},{period:m}),u=super.getValues.call(this,{xData:h,yData:A.slice(c-m,c)},{period:m}),r=(l=super.getValues.call(this,{xData:h,yData:d},{period:m,index:y})).xData[0],o=p.yData[0],i=u.yData[0],s=l.yData[0],b.push([r,o,s,i]),S.push(r),C.push([o,s,i]))}return{values:b,xData:S,yData:C}}}}tD.defaultOptions=(0,a.merge)(tv.defaultOptions,{params:{period:20,factor:.001,index:3},lineWidth:1,topLine:{styles:{lineWidth:1}},bottomLine:{styles:{lineWidth:1}},dataGrouping:{approximation:"averages"}}),(0,a.extend)(tD.prototype,{areaLinesNames:["top","bottom"],linesApiNames:["topLine","bottomLine"],nameBase:"Acceleration Bands",nameComponents:["period","factor"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"}),T.compose(tD),d().registerSeriesType("abands",tD);let{sma:tA}=d().seriesTypes;class tb extends tA{constructor(){super(...arguments),this.updateAllPoints=!0}getValues(e,t){let s=e.xData,o=e.yData,i=[],r=[],n=[],l=[],p=t.index,u=0,h=0,d=0,c=0,m=0;for(let e=0;e<s.length;e++)(0===e||s[e]!==s[e-1])&&m++,i.push(m);for(let e=0;e<i.length;e++)d+=i[e],c+=(0,a.isArray)(o[e])?o[e][p]:o[e];let g=d/i.length,y=c/o.length;for(let e=0;e<i.length;e++){let t=(0,a.isArray)(o[e])?o[e][p]:o[e];u+=(i[e]-g)*(t-y),h+=Math.pow(i[e]-g,2)}for(let e=0;e<i.length;e++){if(s[e]===n[n.length-1])continue;let t=s[e],a=y+u/h*(i[e]-g);r.push([t,a]),n.push(t),l.push(a)}return{xData:n,yData:l,values:r}}}tb.defaultOptions=(0,a.merge)(tA.defaultOptions,{params:{period:void 0,index:3}}),(0,a.extend)(tb.prototype,{nameBase:"Trendline",nameComponents:void 0}),d().registerSeriesType("trendline",tb);let{sma:tS}=d().seriesTypes;class tC extends tS{init(){let e=arguments,t=e[1].params,s=t&&t.average?t.average:void 0;this.averageIndicator=d().seriesTypes[s]||tS,this.averageIndicator.prototype.init.apply(this,e)}calculateDisparityIndex(e,t){return(0,a.correctFloat)(e-t)/t*100}getValues(e,t){let s=t.index,o=e.xData,i=e.yData,r=i?i.length:0,n=[],l=[],p=[],u=this.averageIndicator,h=(0,a.isArray)(i[0]),d=u.prototype.getValues(e,t),c=d.yData,m=o.indexOf(d.xData[0]);if(c&&0!==c.length&&(0,a.defined)(s)&&!(i.length<=m)){for(let e=m;e<r;e++){let t=this.calculateDisparityIndex(h?i[e][s]:i[e],c[e-m]);n.push([o[e],t]),l.push(o[e]),p.push(t)}return{values:n,xData:l,yData:p}}}}tC.defaultOptions=(0,a.merge)(tS.defaultOptions,{params:{average:"sma",index:3},marker:{enabled:!1},dataGrouping:{approximation:"averages"}}),(0,a.extend)(tC.prototype,{nameBase:"Disparity Index",nameComponents:["period","average"]}),d().registerSeriesType("disparityindex",tC);let tT=i();tT.MultipleLinesComposition=tT.MultipleLinesComposition||T;let tP=i();export{tP as default};
@@ -1,6 +1,6 @@
1
1
  // SPDX-License-Identifier: LicenseRef-Highcharts
2
2
  /**
3
- * @license Highstock JS v13.0.0 (2026-06-11)
3
+ * @license Highstock JS v13.0.2 (2026-08-27)
4
4
  * @module highcharts/indicators/indicators-all
5
5
  * @requires highcharts
6
6
  * @requires highcharts/modules/stock
@@ -16,14 +16,14 @@
16
16
  import * as __WEBPACK_EXTERNAL_MODULE__highcharts_src_js_8202131d__ from "../highcharts.src.js";
17
17
  import * as __WEBPACK_EXTERNAL_MODULE__modules_datagrouping_src_js_b7a4250c__ from "../modules/datagrouping.src.js";
18
18
  /******/ // The require scope
19
- /******/ var __webpack_require__ = {};
19
+ /******/ const __webpack_require__ = {};
20
20
  /******/
21
21
  /************************************************************************/
22
22
  /******/ /* webpack/runtime/compat get default export */
23
23
  /******/ (() => {
24
24
  /******/ // getDefaultExport function for compatibility with non-harmony modules
25
25
  /******/ __webpack_require__.n = (module) => {
26
- /******/ var getter = module && module.__esModule ?
26
+ /******/ const getter = module && module.__esModule ?
27
27
  /******/ () => (module['default']) :
28
28
  /******/ () => (module);
29
29
  /******/ __webpack_require__.d(getter, { a: getter });
@@ -33,11 +33,26 @@ import * as __WEBPACK_EXTERNAL_MODULE__modules_datagrouping_src_js_b7a4250c__ fr
33
33
  /******/
34
34
  /******/ /* webpack/runtime/define property getters */
35
35
  /******/ (() => {
36
- /******/ // define getter functions for harmony exports
36
+ /******/ // define getter/value functions for harmony exports
37
37
  /******/ __webpack_require__.d = (exports, definition) => {
38
- /******/ for(var key in definition) {
39
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
40
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
38
+ /******/ if(Array.isArray(definition)) {
39
+ /******/ var i = 0;
40
+ /******/ while(i < definition.length) {
41
+ /******/ var key = definition[i++];
42
+ /******/ var binding = definition[i++];
43
+ /******/ if(!__webpack_require__.o(exports, key)) {
44
+ /******/ if(binding === 0) {
45
+ /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
46
+ /******/ } else {
47
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
48
+ /******/ }
49
+ /******/ } else if(binding === 0) { i++; }
50
+ /******/ }
51
+ /******/ } else {
52
+ /******/ for(var key in definition) {
53
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
54
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
55
+ /******/ }
41
56
  /******/ }
42
57
  /******/ }
43
58
  /******/ };
@@ -49,7 +64,6 @@ import * as __WEBPACK_EXTERNAL_MODULE__modules_datagrouping_src_js_b7a4250c__ fr
49
64
  /******/ })();
50
65
  /******/
51
66
  /************************************************************************/
52
- var __webpack_exports__ = {};
53
67
 
54
68
  ;// external ["../highcharts.src.js","default"]
55
69
  const external_highcharts_src_js_default_namespaceObject = __WEBPACK_EXTERNAL_MODULE__highcharts_src_js_8202131d__["default"];
@@ -320,7 +334,7 @@ class DataTableCore {
320
334
  * Fetches the given column by the canonical column ID. Simplified version
321
335
  * of the full `DataTable.getRow` method, always returning by reference.
322
336
  *
323
- * @function Highcharts.DataTable#setColumn
337
+ * @function Highcharts.DataTable#getColumn
324
338
  *
325
339
  * @param {string} columnId
326
340
  * ID of the column to get.
@@ -626,7 +640,7 @@ class SMAIndicator extends LineSeries {
626
640
  if (!name) {
627
641
  (this.nameComponents || []).forEach(function (component, index) {
628
642
  params.push(this.options.params[component] +
629
- (0,external_highcharts_src_js_default_namespaceObject.pick)(this.nameSuffixes[index], ''));
643
+ (this.nameSuffixes[index] ?? ''));
630
644
  }, this);
631
645
  name = (this.nameBase || this.type.toUpperCase()) +
632
646
  (this.nameComponents ? ' (' + params.join(', ') + ')' : '');
@@ -1776,10 +1790,10 @@ class AroonIndicator extends AroonIndicator_SMAIndicator {
1776
1790
  for (i = period - 1; i < yValLen; i++) {
1777
1791
  slicedY = yVal.slice(i - period + 1, i + 2);
1778
1792
  xLow = getExtremeIndexInArray(slicedY.map(function (elem) {
1779
- return (0,external_highcharts_src_js_default_namespaceObject.pick)(elem[low], elem);
1793
+ return (elem[low] ?? elem);
1780
1794
  }), 'min');
1781
1795
  xHigh = getExtremeIndexInArray(slicedY.map(function (elem) {
1782
- return (0,external_highcharts_src_js_default_namespaceObject.pick)(elem[high], elem);
1796
+ return (elem[high] ?? elem);
1783
1797
  }), 'max');
1784
1798
  aroonUp = (xHigh / period) * 100;
1785
1799
  aroonDown = (xLow / period) * 100;
@@ -3055,7 +3069,7 @@ const { sma: DPOIndicator_SMAIndicator } = (external_highcharts_src_js_default_S
3055
3069
  // Utils:
3056
3070
  /** @internal */
3057
3071
  function accumulatePoints(sum, yVal, i, index, subtract) {
3058
- const price = (0,external_highcharts_src_js_default_namespaceObject.pick)(yVal[i][index], yVal[i]);
3072
+ const price = (yVal[i][index] ?? yVal[i]);
3059
3073
  if (subtract) {
3060
3074
  return (0,external_highcharts_src_js_default_namespaceObject.correctFloat)(sum - price);
3061
3075
  }
@@ -3100,7 +3114,8 @@ class DPOIndicator extends DPOIndicator_SMAIndicator {
3100
3114
  rangeIndex = j + range - 1;
3101
3115
  // Adding the last period point
3102
3116
  sum = accumulatePoints(sum, yVal, periodIndex, index);
3103
- price = (0,external_highcharts_src_js_default_namespaceObject.pick)(yVal[rangeIndex][index], yVal[rangeIndex]);
3117
+ price = yVal[rangeIndex][index] ??
3118
+ yVal[rangeIndex];
3104
3119
  oscillator = price - sum / period;
3105
3120
  // Subtracting the first period point
3106
3121
  sum = accumulatePoints(sum, yVal, j, index, true);
@@ -7640,7 +7655,7 @@ class RSIIndicator extends RSIIndicator_SMAIndicator {
7640
7655
  // Cause we need to calculate change between two points
7641
7656
  RSI = [], xData = [], yData = [];
7642
7657
  let gain = 0, loss = 0, index = params.index, range = 1, RSIPoint, change, avgGain, avgLoss, i, values;
7643
- if ((xVal.length < period)) {
7658
+ if (xVal.length < period) {
7644
7659
  return;
7645
7660
  }
7646
7661
  if ((0,external_highcharts_src_js_default_namespaceObject.isNumber)(yVal[0])) {
@@ -8646,7 +8661,6 @@ class VBPPoint extends VBPPoint_SMAPoint {
8646
8661
 
8647
8662
 
8648
8663
 
8649
- const { animObject } = (external_highcharts_src_js_default_default());
8650
8664
 
8651
8665
  const { noop: VBPIndicator_noop } = (external_highcharts_src_js_default_default());
8652
8666
 
@@ -8768,7 +8782,7 @@ class VBPIndicator extends VBPIndicator_SMAIndicator {
8768
8782
  group['forceAnimate:translateX'] = true;
8769
8783
  attr.translateX = position;
8770
8784
  }
8771
- group.animate(attr, (0,external_highcharts_src_js_default_namespaceObject.extend)(animObject(series.options.animation), {
8785
+ group.animate(attr, (0,external_highcharts_src_js_default_namespaceObject.extend)((0,external_highcharts_src_js_default_namespaceObject.animObject)(series.options.animation), {
8772
8786
  step: function (val, fx) {
8773
8787
  series.group.attr({
8774
8788
  scaleX: Math.max(0.001, fx.pos)
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Highstock JS v13.0.0 (2026-06-11)
2
+ * Highstock JS v13.0.2 (2026-08-27)
3
3
  * @module highcharts/indicators/indicators
4
4
  * @requires highcharts
5
5
  * @requires highcharts/modules/stock
@@ -11,4 +11,4 @@
11
11
  *
12
12
  * A commercial license may be required depending on use,
13
13
  * see www.highcharts.com/license
14
- */import*as t from"../highcharts.js";var e,a={};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);let i=t.default;var s=a.n(i);let n=t.default.Chart;var r=a.n(n);let{setLength:o,splice:l}={convertToNumber:function(t,e){switch(typeof t){case"boolean":return+!!t;case"number":return isNaN(t)&&!e?null:t;default:return isNaN(t=parseFloat(`${t??""}`))&&!e?null:t}},setLength:function(t,e,a){return Array.isArray(t)?(t.length=e,t):t[a?"subarray":"slice"](0,e)},splice:function(t,e,a,i,s=[]){if(Array.isArray(t))return Array.isArray(s)||(s=Array.from(s)),{removed:t.splice(e,a,...s),array:t};let n=Object.getPrototypeOf(t).constructor,r=t[i?"subarray":"slice"](e,e+a),o=new n(t.length-a+s.length);return o.set(t.subarray(0,e),0),o.set(s,e),o.set(t.subarray(e+a),e+s.length),{removed:r,array:o}}},h=class{constructor(t={}){this.isDataTable=!0,this.autoId=!t.id,this.columns={},this.id=t.id||(0,i.uniqueKey)(),this.rowCount=0,this.versionTag=(0,i.uniqueKey)();let e=0;(0,i.objectEach)(t.columns||{},(t,a)=>{this.columns[a]=t.slice(),e=Math.max(e,t.length)}),this.applyRowCount(e)}applyRowCount(t){this.rowCount=t,(0,i.objectEach)(this.columns,(e,a)=>{e.length!==t&&(this.columns[a]=o(e,t))})}deleteRows(t,e=1){if(e>0&&t<this.rowCount){let a=0;(0,i.objectEach)(this.columns,(i,s)=>{this.columns[s]=l(i,t,e).array,a=i.length}),this.rowCount=a}(0,i.fireEvent)(this,"afterDeleteRows",{rowIndex:t,rowCount:e}),this.versionTag=(0,i.uniqueKey)()}getColumn(t,e){return this.columns[t]}getColumns(t,e){return(t||Object.keys(this.columns)).reduce((t,e)=>(t[e]=this.columns[e],t),{})}getRowObject(t,e){let a={},i=this.columns;for(let s of(e??(e=Object.keys(this.columns)),e))a[s]=i[s]?.[t];return a}setColumn(t,e=[],a=0,i){this.setColumns({[t]:e},a,i)}setColumns(t,e,a){let s=this.rowCount;(0,i.objectEach)(t,(t,e)=>{this.columns[e]=t.slice(),s=t.length}),this.applyRowCount(s),a?.silent||((0,i.fireEvent)(this,"afterSetColumns"),this.versionTag=(0,i.uniqueKey)())}setRow(t,e=this.rowCount,a,s){var n;let{columns:r}=this,o=a?this.rowCount+1:e+1,h=Object.keys(t);if(s?.addColumns!==!1)for(let t=0,e=h.length;t<e;t++)r[n=h[t]]||(r[n]=Array(this.rowCount));(0,i.objectEach)(r,(i,s)=>{i&&(a?i=l(i,e,0,!0,[t[s]]).array:i[e]=s in t?t[s]:i[e],r[s]=i)}),this.applyRowCount(Math.max(o,this.rowCount)),s?.silent||((0,i.fireEvent)(this,"afterSetRows",{rowIndex:e}),this.versionTag=(0,i.uniqueKey)())}getModified(){return this.modified||this}},u=t.default.SeriesRegistry;var p=a.n(u);let{line:c}=p().seriesTypes,d=(t,e)=>{let a=[],i=t.pointArrayMap,s=e&&t.dataTable.getModified()||t.dataTable;if(!i)return t.getColumn("y",e);let n=i.map(a=>t.getColumn(a,e));for(let t=0;t<s.rowCount;t++){let e=i.map((e,a)=>n[a]?.[t]||0);a.push(e)}return a};class f extends c{destroy(){this.dataEventsToUnbind.forEach(function(t){t()}),super.destroy.apply(this,arguments)}getName(){let t=[],e=this.name;return e||((this.nameComponents||[]).forEach(function(e,a){t.push(this.options.params[e]+(0,i.pick)(this.nameSuffixes[a],""))},this),e=(this.nameBase||this.type.toUpperCase())+(this.nameComponents?" ("+t.join(", ")+")":"")),e}getValues(t,e){let a=e.period,s=t.xData||[],n=t.yData,r=n.length,o=[],l=[],h=[],u,p=-1,c=0,d,f=0;if(!(s.length<a)){for((0,i.isArray)(n[0])&&(p=e.index?e.index:0);c<a-1;)f+=p<0?n[c]:n[c][p],c++;for(u=c;u<r;u++)f+=p<0?n[u]:n[u][p],d=[s[u],f/a],o.push(d),l.push(d[0]),h.push(d[1]),f-=p<0?n[u-c]:n[u-c][p];return{values:o,xData:l,yData:h}}}init(t,e){let a=this;super.init.call(a,t,e);let s=(0,i.addEvent)(r(),"afterLinkSeries",function({isUpdating:e}){if(e)return;let s=!!a.dataEventsToUnbind.length;if(!a.linkedParent)return(0,i.error)("Series "+a.options.linkedTo+" not found! Check `linkedTo`.",!1,t);if(!s&&(a.dataEventsToUnbind.push((0,i.addEvent)(a.linkedParent,"updatedData",function(){a.recalculateValues()})),a.calculateOn.xAxis&&a.dataEventsToUnbind.push((0,i.addEvent)(a.linkedParent.xAxis,a.calculateOn.xAxis,function(){a.recalculateValues()}))),"init"===a.calculateOn.chart)a.closestPointRange||a.recalculateValues();else if(!s){let t=(0,i.addEvent)(a.chart,a.calculateOn.chart,function(){a.recalculateValues(),t()})}},{order:0});a.dataEventsToUnbind=[],a.eventsToUnbind.push(s)}recalculateValues(){let t=this.dataTable,e=this.dataTable.rowCount,a=!0,s,n,r=this.linkedParent.yData,o=this.linkedParent.processedYData;this.linkedParent.xData=this.linkedParent.getColumn("x"),this.linkedParent.yData=d(this.linkedParent),this.linkedParent.processedYData=d(this.linkedParent,!0);let l=this.linkedParent.options&&this.linkedParent.dataTable.rowCount&&this.getValues(this.linkedParent,this.options.params)||{values:[],xData:[],yData:[]};l.xData.length=l.values.length,delete this.linkedParent.xData,this.linkedParent.yData=r,this.linkedParent.processedYData=o;let u=this.pointArrayMap||["y"],p={};if(l.yData.forEach(t=>{u.forEach((e,a)=>{let s=p[e]||[];s.push((0,i.isArray)(t)?t[a]:t),p[e]||(p[e]=s)})}),e&&!this.hasGroupedData&&this.visible&&this.points)if(this.cropped){this.xAxis&&(s=this.xAxis.min,n=this.xAxis.max);let e=this.cropData(t,s,n);this.setData(e.modified,!1)}else(this.updateAllPoints||l.xData.length!==e-1&&l.xData.length!==e+1)&&(a=!1,this.setData(new h({columns:{x:l.xData,...p}}),!1));a&&(p.x=l.xData,l.values.reduce((t,e,a)=>(Object.keys(e).forEach(i=>{t[i]||(t[i]=[]),t[i][a]=e[i]}),t),p),t.setColumns(p),delete this.xColumn,delete this.xColumnIsNumbers),this.calculateOn.xAxis&&this.getColumn("x",!0).length&&(this.isDirty=!0,this.redraw()),this.isDirtyData=!!this.linkedSeries.length,(0,i.fireEvent)(this,"updatedData")}processData(){let t=this.options.compareToMain,e=this.linkedParent;super.processData.apply(this,arguments),this.dataModify&&e&&e.dataModify&&e.dataModify.compareValue&&t&&(this.dataModify.compareValue=e.dataModify.compareValue)}}f.defaultOptions=(0,i.merge)(c.defaultOptions,{name:void 0,tooltip:{valueDecimals:4},linkedTo:void 0,compareToMain:!1,params:{index:3,period:14}}),(0,i.extend)(f.prototype,{calculateOn:{chart:"init"},hasDerivedData:!0,nameComponents:["period"],nameSuffixes:[],useCommonDataGrouping:!0}),p().registerSeriesType("sma",f);let{sma:m}=p().seriesTypes;class y extends m{accumulatePeriodPoints(t,e,a){let i=0,s=0;for(;s<t;)i+=e<0?a[s]:a[s][e],s++;return i}calculateEma(t,e,a,s,n,r,o){let l=t[a-1],h=r<0?e[a-1]:e[a-1][r];return[l,void 0===n?o:(0,i.correctFloat)(h*s+n*(1-s))]}getValues(t,e){let a=e.period,s=t.xData,n=t.yData,r=n?n.length:0,o=2/(a+1),l=[],h=[],u=[],p,c,d,f=-1,m=0;if(!(r<a)){for((0,i.isArray)(n[0])&&(f=e.index?e.index:0),m=this.accumulatePeriodPoints(a,f,n)/a,d=a;d<r+1;d++)c=this.calculateEma(s,n,d,o,p,f,m),l.push(c),h.push(c[0]),u.push(c[1]),p=c[1];return{values:l,xData:h,yData:u}}}}y.defaultOptions=(0,i.merge)(m.defaultOptions,{params:{index:3,period:9}}),p().registerSeriesType("ema",y);let{sma:{prototype:g}}=p().seriesTypes;!function(t){let e=["bottomLine"],a=["top","bottom"],s=["top"];function n(t){return"plot"+t.charAt(0).toUpperCase()+t.slice(1)}function r(t,e){let a=[];return(t.pointArrayMap||[]).forEach(t=>{t!==e&&a.push(n(t))}),a}function o(){let t=this,e=t.pointValKey,a=t.linesApiNames,s=t.areaLinesNames,o=t.points,l=t.options,h=t.graph,u={options:{gapSize:l.gapSize}},p=[],c=r(t,e),d=o.length,f;if(c.forEach((t,e)=>{for(p[e]=[];d--;)f=o[d],p[e].push({x:f.x,plotX:f.plotX,plotY:f[t],isNull:!(0,i.defined)(f[t])});d=o.length}),t.userOptions.fillColor&&s.length){let e=p[c.indexOf(n(s[0]))],a=1===s.length?o:p[c.indexOf(n(s[1]))],r=t.color;t.points=a,t.nextPoints=e,t.color=t.userOptions.fillColor,t.options=(0,i.merge)(o,u),t.graph=t.area,t.fillGraph=!0,g.drawGraph.call(t),t.area=t.graph,delete t.nextPoints,delete t.fillGraph,t.color=r}a.forEach((e,a)=>{p[a]?(t.points=p[a],l[e]?t.options=(0,i.merge)(l[e].styles,u):(0,i.error)('Error: "There is no '+e+' in DOCS options declared. Check if linesApiNames are consistent with your DOCS line names."'),t.graph=t["graph"+e],g.drawGraph.call(t),t["graph"+e]=t.graph):(0,i.error)('Error: "'+e+" doesn't have equivalent in pointArrayMap. To many elements in linesApiNames relative to pointArrayMap.\"")}),t.points=o,t.options=l,t.graph=h,g.drawGraph.call(t)}function l(t){let e,a=[],i=[];if(t=t||this.points,this.fillGraph&&this.nextPoints){if((e=g.getGraphPath.call(this,this.nextPoints))&&e.length){e[0][0]="L",a=g.getGraphPath.call(this,t),i=e.slice(0,a.length);for(let t=i.length-1;t>=0;t--)a.push(i[t])}}else a=g.getGraphPath.apply(this,arguments);return a}function h(t){let e=[];return(this.pointArrayMap||[]).forEach(a=>{e.push(t[a])}),e}function u(){let t=this.pointArrayMap,e=[],a;e=r(this),g.translate.apply(this,arguments),this.points.forEach(i=>{t.forEach((t,s)=>{a=i[t],this.dataModify&&(a=this.dataModify.modifyValue(a)),null!==a&&(i[e[s]]=this.yAxis.toPixels(a,!0))})})}t.compose=function(t){let i=t.prototype;return i.linesApiNames=i.linesApiNames||e.slice(),i.pointArrayMap=i.pointArrayMap||a.slice(),i.pointValKey=i.pointValKey||"top",i.areaLinesNames=i.areaLinesNames||s.slice(),i.drawGraph=o,i.getGraphPath=l,i.toYData=h,i.translate=u,t}}(e||(e={}));let x=e,C=s();C.MultipleLinesComposition=C.MultipleLinesComposition||x;let D=s();export{D as default};
14
+ */import*as t from"../highcharts.js";let e={};e.n=t=>{let a=t&&t.__esModule?()=>t.default:()=>t;return e.d(a,{a:a}),a},e.d=(t,a)=>{if(Array.isArray(a))for(var i=0;i<a.length;){var s=a[i++],n=a[i++];e.o(t,s)?0===n&&i++:0===n?Object.defineProperty(t,s,{enumerable:!0,value:a[i++]}):Object.defineProperty(t,s,{enumerable:!0,get:n})}else for(var s in a)e.o(a,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:a[s]})},e.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let a=t.default;var i,s=e.n(a);let n=t.default.Chart;var r=e.n(n);let{setLength:o,splice:l}={convertToNumber:function(t,e){switch(typeof t){case"boolean":return+!!t;case"number":return isNaN(t)&&!e?null:t;default:return isNaN(t=parseFloat(`${t??""}`))&&!e?null:t}},setLength:function(t,e,a){return Array.isArray(t)?(t.length=e,t):t[a?"subarray":"slice"](0,e)},splice:function(t,e,a,i,s=[]){if(Array.isArray(t))return Array.isArray(s)||(s=Array.from(s)),{removed:t.splice(e,a,...s),array:t};let n=Object.getPrototypeOf(t).constructor,r=t[i?"subarray":"slice"](e,e+a),o=new n(t.length-a+s.length);return o.set(t.subarray(0,e),0),o.set(s,e),o.set(t.subarray(e+a),e+s.length),{removed:r,array:o}}},h=class{constructor(t={}){this.isDataTable=!0,this.autoId=!t.id,this.columns={},this.id=t.id||(0,a.uniqueKey)(),this.rowCount=0,this.versionTag=(0,a.uniqueKey)();let e=0;(0,a.objectEach)(t.columns||{},(t,a)=>{this.columns[a]=t.slice(),e=Math.max(e,t.length)}),this.applyRowCount(e)}applyRowCount(t){this.rowCount=t,(0,a.objectEach)(this.columns,(e,a)=>{e.length!==t&&(this.columns[a]=o(e,t))})}deleteRows(t,e=1){if(e>0&&t<this.rowCount){let i=0;(0,a.objectEach)(this.columns,(a,s)=>{this.columns[s]=l(a,t,e).array,i=a.length}),this.rowCount=i}(0,a.fireEvent)(this,"afterDeleteRows",{rowIndex:t,rowCount:e}),this.versionTag=(0,a.uniqueKey)()}getColumn(t,e){return this.columns[t]}getColumns(t,e){return(t||Object.keys(this.columns)).reduce((t,e)=>(t[e]=this.columns[e],t),{})}getRowObject(t,e){let a={},i=this.columns;for(let s of(e??(e=Object.keys(this.columns)),e))a[s]=i[s]?.[t];return a}setColumn(t,e=[],a=0,i){this.setColumns({[t]:e},a,i)}setColumns(t,e,i){let s=this.rowCount;(0,a.objectEach)(t,(t,e)=>{this.columns[e]=t.slice(),s=t.length}),this.applyRowCount(s),i?.silent||((0,a.fireEvent)(this,"afterSetColumns"),this.versionTag=(0,a.uniqueKey)())}setRow(t,e=this.rowCount,i,s){var n;let{columns:r}=this,o=i?this.rowCount+1:e+1,h=Object.keys(t);if(s?.addColumns!==!1)for(let t=0,e=h.length;t<e;t++)r[n=h[t]]||(r[n]=Array(this.rowCount));(0,a.objectEach)(r,(a,s)=>{a&&(i?a=l(a,e,0,!0,[t[s]]).array:a[e]=s in t?t[s]:a[e],r[s]=a)}),this.applyRowCount(Math.max(o,this.rowCount)),s?.silent||((0,a.fireEvent)(this,"afterSetRows",{rowIndex:e}),this.versionTag=(0,a.uniqueKey)())}getModified(){return this.modified||this}},u=t.default.SeriesRegistry;var p=e.n(u);let{line:c}=p().seriesTypes,d=(t,e)=>{let a=[],i=t.pointArrayMap,s=e&&t.dataTable.getModified()||t.dataTable;if(!i)return t.getColumn("y",e);let n=i.map(a=>t.getColumn(a,e));for(let t=0;t<s.rowCount;t++){let e=i.map((e,a)=>n[a]?.[t]||0);a.push(e)}return a};class f extends c{destroy(){this.dataEventsToUnbind.forEach(function(t){t()}),super.destroy.apply(this,arguments)}getName(){let t=[],e=this.name;return e||((this.nameComponents||[]).forEach(function(e,a){t.push(this.options.params[e]+(this.nameSuffixes[a]??""))},this),e=(this.nameBase||this.type.toUpperCase())+(this.nameComponents?" ("+t.join(", ")+")":"")),e}getValues(t,e){let i=e.period,s=t.xData||[],n=t.yData,r=n.length,o=[],l=[],h=[],u,p=-1,c=0,d,f=0;if(!(s.length<i)){for((0,a.isArray)(n[0])&&(p=e.index?e.index:0);c<i-1;)f+=p<0?n[c]:n[c][p],c++;for(u=c;u<r;u++)f+=p<0?n[u]:n[u][p],d=[s[u],f/i],o.push(d),l.push(d[0]),h.push(d[1]),f-=p<0?n[u-c]:n[u-c][p];return{values:o,xData:l,yData:h}}}init(t,e){let i=this;super.init.call(i,t,e);let s=(0,a.addEvent)(r(),"afterLinkSeries",function({isUpdating:e}){if(e)return;let s=!!i.dataEventsToUnbind.length;if(!i.linkedParent)return(0,a.error)("Series "+i.options.linkedTo+" not found! Check `linkedTo`.",!1,t);if(!s&&(i.dataEventsToUnbind.push((0,a.addEvent)(i.linkedParent,"updatedData",function(){i.recalculateValues()})),i.calculateOn.xAxis&&i.dataEventsToUnbind.push((0,a.addEvent)(i.linkedParent.xAxis,i.calculateOn.xAxis,function(){i.recalculateValues()}))),"init"===i.calculateOn.chart)i.closestPointRange||i.recalculateValues();else if(!s){let t=(0,a.addEvent)(i.chart,i.calculateOn.chart,function(){i.recalculateValues(),t()})}},{order:0});i.dataEventsToUnbind=[],i.eventsToUnbind.push(s)}recalculateValues(){let t=this.dataTable,e=this.dataTable.rowCount,i=!0,s,n,r=this.linkedParent.yData,o=this.linkedParent.processedYData;this.linkedParent.xData=this.linkedParent.getColumn("x"),this.linkedParent.yData=d(this.linkedParent),this.linkedParent.processedYData=d(this.linkedParent,!0);let l=this.linkedParent.options&&this.linkedParent.dataTable.rowCount&&this.getValues(this.linkedParent,this.options.params)||{values:[],xData:[],yData:[]};l.xData.length=l.values.length,delete this.linkedParent.xData,this.linkedParent.yData=r,this.linkedParent.processedYData=o;let u=this.pointArrayMap||["y"],p={};if(l.yData.forEach(t=>{u.forEach((e,i)=>{let s=p[e]||[];s.push((0,a.isArray)(t)?t[i]:t),p[e]||(p[e]=s)})}),e&&!this.hasGroupedData&&this.visible&&this.points)if(this.cropped){this.xAxis&&(s=this.xAxis.min,n=this.xAxis.max);let e=this.cropData(t,s,n);this.setData(e.modified,!1)}else(this.updateAllPoints||l.xData.length!==e-1&&l.xData.length!==e+1)&&(i=!1,this.setData(new h({columns:{x:l.xData,...p}}),!1));i&&(p.x=l.xData,l.values.reduce((t,e,a)=>(Object.keys(e).forEach(i=>{t[i]||(t[i]=[]),t[i][a]=e[i]}),t),p),t.setColumns(p),delete this.xColumn,delete this.xColumnIsNumbers),this.calculateOn.xAxis&&this.getColumn("x",!0).length&&(this.isDirty=!0,this.redraw()),this.isDirtyData=!!this.linkedSeries.length,(0,a.fireEvent)(this,"updatedData")}processData(){let t=this.options.compareToMain,e=this.linkedParent;super.processData.apply(this,arguments),this.dataModify&&e&&e.dataModify&&e.dataModify.compareValue&&t&&(this.dataModify.compareValue=e.dataModify.compareValue)}}f.defaultOptions=(0,a.merge)(c.defaultOptions,{name:void 0,tooltip:{valueDecimals:4},linkedTo:void 0,compareToMain:!1,params:{index:3,period:14}}),(0,a.extend)(f.prototype,{calculateOn:{chart:"init"},hasDerivedData:!0,nameComponents:["period"],nameSuffixes:[],useCommonDataGrouping:!0}),p().registerSeriesType("sma",f);let{sma:m}=p().seriesTypes;class y extends m{accumulatePeriodPoints(t,e,a){let i=0,s=0;for(;s<t;)i+=e<0?a[s]:a[s][e],s++;return i}calculateEma(t,e,i,s,n,r,o){let l=t[i-1],h=r<0?e[i-1]:e[i-1][r];return[l,void 0===n?o:(0,a.correctFloat)(h*s+n*(1-s))]}getValues(t,e){let i=e.period,s=t.xData,n=t.yData,r=n?n.length:0,o=2/(i+1),l=[],h=[],u=[],p,c,d,f=-1,m=0;if(!(r<i)){for((0,a.isArray)(n[0])&&(f=e.index?e.index:0),m=this.accumulatePeriodPoints(i,f,n)/i,d=i;d<r+1;d++)c=this.calculateEma(s,n,d,o,p,f,m),l.push(c),h.push(c[0]),u.push(c[1]),p=c[1];return{values:l,xData:h,yData:u}}}}y.defaultOptions=(0,a.merge)(m.defaultOptions,{params:{index:3,period:9}}),p().registerSeriesType("ema",y);let{sma:{prototype:g}}=p().seriesTypes;!function(t){let e=["bottomLine"],i=["top","bottom"],s=["top"];function n(t){return"plot"+t.charAt(0).toUpperCase()+t.slice(1)}function r(t,e){let a=[];return(t.pointArrayMap||[]).forEach(t=>{t!==e&&a.push(n(t))}),a}function o(){let t=this,e=t.pointValKey,i=t.linesApiNames,s=t.areaLinesNames,o=t.points,l=t.options,h=t.graph,u={options:{gapSize:l.gapSize}},p=[],c=r(t,e),d=o.length,f;if(c.forEach((t,e)=>{for(p[e]=[];d--;)f=o[d],p[e].push({x:f.x,plotX:f.plotX,plotY:f[t],isNull:!(0,a.defined)(f[t])});d=o.length}),t.userOptions.fillColor&&s.length){let e=p[c.indexOf(n(s[0]))],i=1===s.length?o:p[c.indexOf(n(s[1]))],r=t.color;t.points=i,t.nextPoints=e,t.color=t.userOptions.fillColor,t.options=(0,a.merge)(o,u),t.graph=t.area,t.fillGraph=!0,g.drawGraph.call(t),t.area=t.graph,delete t.nextPoints,delete t.fillGraph,t.color=r}i.forEach((e,i)=>{p[i]?(t.points=p[i],l[e]?t.options=(0,a.merge)(l[e].styles,u):(0,a.error)('Error: "There is no '+e+' in DOCS options declared. Check if linesApiNames are consistent with your DOCS line names."'),t.graph=t["graph"+e],g.drawGraph.call(t),t["graph"+e]=t.graph):(0,a.error)('Error: "'+e+" doesn't have equivalent in pointArrayMap. To many elements in linesApiNames relative to pointArrayMap.\"")}),t.points=o,t.options=l,t.graph=h,g.drawGraph.call(t)}function l(t){let e,a=[],i=[];if(t=t||this.points,this.fillGraph&&this.nextPoints){if((e=g.getGraphPath.call(this,this.nextPoints))&&e.length){e[0][0]="L",a=g.getGraphPath.call(this,t),i=e.slice(0,a.length);for(let t=i.length-1;t>=0;t--)a.push(i[t])}}else a=g.getGraphPath.apply(this,arguments);return a}function h(t){let e=[];return(this.pointArrayMap||[]).forEach(a=>{e.push(t[a])}),e}function u(){let t=this.pointArrayMap,e=[],a;e=r(this),g.translate.apply(this,arguments),this.points.forEach(i=>{t.forEach((t,s)=>{a=i[t],this.dataModify&&(a=this.dataModify.modifyValue(a)),null!==a&&(i[e[s]]=this.yAxis.toPixels(a,!0))})})}t.compose=function(t){let a=t.prototype;return a.linesApiNames=a.linesApiNames||e.slice(),a.pointArrayMap=a.pointArrayMap||i.slice(),a.pointValKey=a.pointValKey||"top",a.areaLinesNames=a.areaLinesNames||s.slice(),a.drawGraph=o,a.getGraphPath=l,a.toYData=h,a.translate=u,t}}(i||(i={}));let x=i,C=s();C.MultipleLinesComposition=C.MultipleLinesComposition||x;let D=s();export{D as default};