highcharts 9.3.1 → 9.3.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 (752) hide show
  1. package/bower.json +1 -1
  2. package/css/annotations/popup.css +1 -1
  3. package/css/highcharts.css +2 -2
  4. package/css/highcharts.scss +1 -1
  5. package/css/stocktools/gui.css +1 -1
  6. package/css/themes/dark-unica.css +2 -2
  7. package/css/themes/grid-light.css +2 -2
  8. package/css/themes/sand-signika.css +2 -2
  9. package/es-modules/Accessibility/A11yI18n.js +1 -5
  10. package/es-modules/Accessibility/Accessibility.js +11 -5
  11. package/es-modules/Accessibility/AccessibilityComponent.js +1 -1
  12. package/es-modules/Accessibility/Components/AnnotationsA11y.js +9 -5
  13. package/es-modules/Accessibility/Components/ContainerComponent.js +1 -1
  14. package/es-modules/Accessibility/Components/InfoRegionsComponent.js +8 -19
  15. package/es-modules/Accessibility/Components/LegendComponent.js +176 -86
  16. package/es-modules/Accessibility/Components/MenuComponent.js +1 -10
  17. package/es-modules/Accessibility/Components/RangeSelectorComponent.js +10 -13
  18. package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +15 -6
  19. package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +8 -4
  20. package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +3 -1
  21. package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +16 -41
  22. package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +20 -31
  23. package/es-modules/Accessibility/Components/ZoomComponent.js +135 -57
  24. package/es-modules/Accessibility/FocusBorder.js +0 -5
  25. package/es-modules/Accessibility/HighContrastMode.js +2 -1
  26. package/es-modules/Accessibility/KeyboardNavigation.js +5 -4
  27. package/es-modules/Accessibility/Options/DeprecatedOptions.js +12 -5
  28. package/es-modules/Accessibility/Options/LangOptions.js +3 -3
  29. package/es-modules/Accessibility/ProxyElement.js +12 -6
  30. package/es-modules/Accessibility/ProxyProvider.js +0 -3
  31. package/es-modules/Accessibility/Utils/Announcer.js +2 -2
  32. package/es-modules/Accessibility/Utils/ChartUtilities.js +17 -32
  33. package/es-modules/Accessibility/Utils/HTMLUtilities.js +0 -12
  34. package/es-modules/Core/Animation/Fx.js +5 -14
  35. package/es-modules/Core/Axis/Axis.js +42 -68
  36. package/es-modules/Core/Axis/Axis3D.js +10 -4
  37. package/es-modules/Core/Axis/BrokenAxis.js +17 -11
  38. package/es-modules/Core/Axis/Color/ColorAxis.js +7 -4
  39. package/es-modules/Core/Axis/Color/ColorAxisComposition.js +3 -3
  40. package/es-modules/Core/Axis/DateTimeAxis.js +3 -14
  41. package/es-modules/Core/Axis/GridAxis.js +26 -16
  42. package/es-modules/Core/Axis/NavigatorAxis.js +0 -5
  43. package/es-modules/Core/Axis/OrdinalAxis.js +83 -79
  44. package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js +0 -5
  45. package/es-modules/Core/Axis/RadialAxis.js +7 -28
  46. package/es-modules/Core/Axis/ScrollbarAxis.js +18 -10
  47. package/es-modules/Core/Axis/StackingAxis.js +2 -1
  48. package/es-modules/Core/Axis/Tick.js +2 -4
  49. package/es-modules/Core/Axis/TreeGridAxis.js +26 -17
  50. package/es-modules/Core/Axis/TreeGridTick.js +4 -1
  51. package/es-modules/Core/Axis/WaterfallAxis.js +1 -1
  52. package/es-modules/Core/Axis/ZAxis.js +1 -1
  53. package/es-modules/Core/Chart/Chart.js +42 -44
  54. package/es-modules/Core/Chart/Chart3D.js +23 -10
  55. package/es-modules/Core/Chart/GanttChart.js +4 -4
  56. package/es-modules/Core/Chart/MapChart.js +3 -3
  57. package/es-modules/Core/Chart/StockChart.js +10 -23
  58. package/es-modules/Core/DefaultOptions.js +3 -2
  59. package/es-modules/Core/Geometry/CircleUtilities.js +2 -1
  60. package/es-modules/Core/Globals.js +1 -1
  61. package/es-modules/Core/HttpUtilities.js +5 -4
  62. package/es-modules/Core/Legend/Legend.js +12 -13
  63. package/es-modules/Core/Navigator.js +34 -22
  64. package/es-modules/Core/Pointer.js +13 -9
  65. package/es-modules/Core/Renderer/HTML/AST.js +27 -14
  66. package/es-modules/Core/Renderer/HTML/HTMLElement.js +4 -2
  67. package/es-modules/Core/Renderer/HTML/HTMLRenderer.js +8 -6
  68. package/es-modules/Core/Renderer/RendererUtilities.js +2 -2
  69. package/es-modules/Core/Renderer/SVG/SVGElement.js +8 -16
  70. package/es-modules/Core/Renderer/SVG/SVGLabel.js +17 -8
  71. package/es-modules/Core/Renderer/SVG/SVGRenderer.js +5 -12
  72. package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +12 -5
  73. package/es-modules/Core/Renderer/SVG/TextBuilder.js +16 -10
  74. package/es-modules/Core/Responsive.js +2 -3
  75. package/es-modules/Core/Scrollbar.js +14 -12
  76. package/es-modules/Core/Series/DataLabel.js +17 -12
  77. package/es-modules/Core/Series/Point.js +17 -16
  78. package/es-modules/Core/Series/Series.js +44 -73
  79. package/es-modules/Core/Series/SeriesDefaults.js +5 -4
  80. package/es-modules/Core/Time.js +14 -11
  81. package/es-modules/Core/Tooltip.js +19 -36
  82. package/es-modules/Core/Utilities.js +5 -17
  83. package/es-modules/Data/DataConverter.js +0 -6
  84. package/es-modules/Data/DataSeriesConverter.js +9 -5
  85. package/es-modules/Data/DataTable.js +2 -1
  86. package/es-modules/Data/Modifiers/DataModifier.js +1 -1
  87. package/es-modules/Data/Parsers/CSVParser.js +3 -2
  88. package/es-modules/Data/Parsers/GoogleSheetsParser.js +5 -2
  89. package/es-modules/Data/Stores/CSVStore.js +2 -2
  90. package/es-modules/Data/Stores/DataStore.js +1 -1
  91. package/es-modules/Data/Stores/GoogleSheetsStore.js +3 -1
  92. package/es-modules/Data/Stores/HTMLTableStore.js +3 -1
  93. package/es-modules/Extensions/Annotations/Annotations.js +11 -10
  94. package/es-modules/Extensions/Annotations/ControlPoint.js +0 -2
  95. package/es-modules/Extensions/Annotations/Controllables/ControllableCircle.js +1 -1
  96. package/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +1 -1
  97. package/es-modules/Extensions/Annotations/Controllables/ControllableImage.js +1 -1
  98. package/es-modules/Extensions/Annotations/Controllables/ControllableLabel.js +3 -6
  99. package/es-modules/Extensions/Annotations/Controllables/ControllablePath.js +3 -2
  100. package/es-modules/Extensions/Annotations/Controllables/ControllableRect.js +1 -1
  101. package/es-modules/Extensions/Annotations/Mixins/ControllableMixin.js +6 -3
  102. package/es-modules/Extensions/Annotations/Mixins/EventEmitterMixin.js +0 -1
  103. package/es-modules/Extensions/Annotations/Mixins/MarkerMixin.js +5 -4
  104. package/es-modules/Extensions/Annotations/NavigationBindings.js +34 -29
  105. package/es-modules/Extensions/Annotations/Popup.js +40 -32
  106. package/es-modules/Extensions/Annotations/Types/CrookedLine.js +4 -2
  107. package/es-modules/Extensions/Annotations/Types/ElliottWave.js +1 -1
  108. package/es-modules/Extensions/Annotations/Types/Measure.js +15 -11
  109. package/es-modules/Extensions/Annotations/Types/Pitchfork.js +2 -1
  110. package/es-modules/Extensions/Annotations/Types/TimeCycles.js +8 -4
  111. package/es-modules/Extensions/Annotations/Types/Tunnel.js +10 -5
  112. package/es-modules/Extensions/Boost/BoostOverrides.js +3 -9
  113. package/es-modules/Extensions/Boost/BoostUtils.js +0 -6
  114. package/es-modules/Extensions/Boost/WGLRenderer.js +16 -12
  115. package/es-modules/Extensions/Boost/WGLShader.js +9 -8
  116. package/es-modules/Extensions/Boost/WGLVBuffer.js +4 -7
  117. package/es-modules/Extensions/Data.js +4 -48
  118. package/es-modules/Extensions/DataGrouping.js +22 -15
  119. package/es-modules/Extensions/DraggablePoints.js +7 -8
  120. package/es-modules/Extensions/Drilldown.js +9 -4
  121. package/es-modules/Extensions/ExportData.js +6 -5
  122. package/es-modules/Extensions/Exporting/Exporting.js +23 -37
  123. package/es-modules/Extensions/FullScreen.js +4 -3
  124. package/es-modules/Extensions/GeoJSON.js +3 -3
  125. package/es-modules/Extensions/MarkerClusters.js +3 -1
  126. package/es-modules/Extensions/Math3D.js +4 -4
  127. package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +23 -24
  128. package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
  129. package/es-modules/Extensions/Oldie/Oldie.js +13 -77
  130. package/es-modules/Extensions/Oldie/VMLAxis3D.js +5 -1
  131. package/es-modules/Extensions/OverlappingDataLabels.js +10 -6
  132. package/es-modules/Extensions/Pane.js +6 -6
  133. package/es-modules/Extensions/ParallelCoordinates.js +5 -3
  134. package/es-modules/Extensions/PatternFill.js +17 -11
  135. package/es-modules/Extensions/Polar.js +6 -3
  136. package/es-modules/Extensions/PriceIndication.js +2 -1
  137. package/es-modules/Extensions/RangeSelector.js +19 -55
  138. package/es-modules/Extensions/ScrollablePlotArea.js +2 -2
  139. package/es-modules/Extensions/SeriesLabel.js +1 -1
  140. package/es-modules/Extensions/Sonification/ChartSonify.js +32 -26
  141. package/es-modules/Extensions/Sonification/Instrument.js +12 -15
  142. package/es-modules/Extensions/Sonification/PointSonify.js +12 -8
  143. package/es-modules/Extensions/Sonification/SeriesSonify.js +33 -18
  144. package/es-modules/Extensions/Sonification/SignalHandler.js +4 -6
  145. package/es-modules/Extensions/Sonification/Sonification.js +1 -1
  146. package/es-modules/Extensions/Sonification/SonificationUtilities.js +11 -7
  147. package/es-modules/Extensions/Sonification/Timeline.js +2 -7
  148. package/es-modules/Extensions/Sonification/TimelineEvent.js +0 -1
  149. package/es-modules/Extensions/Sonification/TimelinePath.js +8 -8
  150. package/es-modules/Extensions/Stacking.js +5 -23
  151. package/es-modules/Extensions/Themes/BrandDark.js +293 -0
  152. package/es-modules/Extensions/Themes/BrandLight.js +259 -0
  153. package/es-modules/Extensions/Themes/DarkUnica.js +4 -2
  154. package/es-modules/Extensions/Themes/Grid.js +4 -2
  155. package/es-modules/Extensions/Themes/GridLight.js +4 -2
  156. package/es-modules/Gantt/Connection.js +2 -2
  157. package/es-modules/Gantt/Pathfinder.js +6 -5
  158. package/es-modules/Gantt/PathfinderAlgorithms.js +12 -12
  159. package/es-modules/Maps/MapNavigation.js +6 -7
  160. package/es-modules/Maps/MapPointer.js +2 -1
  161. package/es-modules/Maps/MapSymbols.js +23 -3
  162. package/es-modules/Maps/MapViewOptionsDefault.js +1 -1
  163. package/es-modules/Series/Area/AreaSeries.js +13 -13
  164. package/es-modules/Series/Area3DSeries.js +4 -2
  165. package/es-modules/Series/AreaRange/AreaRangeSeries.js +24 -12
  166. package/es-modules/Series/Bellcurve/BellcurveSeries.js +2 -1
  167. package/es-modules/Series/Bubble/BubbleLegendItem.js +2 -12
  168. package/es-modules/Series/Candlestick/CandlestickSeries.js +0 -1
  169. package/es-modules/Series/ColorMapMixin.js +84 -0
  170. package/es-modules/Series/Column/ColumnSeries.js +16 -14
  171. package/es-modules/Series/Column3D/Column3DComposition.js +1 -2
  172. package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +5 -2
  173. package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +2 -1
  174. package/es-modules/Series/Cylinder/CylinderComposition.js +36 -4
  175. package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +1 -1
  176. package/es-modules/Series/Dumbbell/DumbbellPoint.js +0 -1
  177. package/es-modules/Series/Dumbbell/DumbbellSeries.js +0 -3
  178. package/es-modules/Series/Flags/FlagsSymbols.js +2 -2
  179. package/es-modules/Series/Funnel3D/Funnel3DComposition.js +14 -8
  180. package/es-modules/Series/Funnel3D/Funnel3DSeries.js +2 -1
  181. package/es-modules/Series/Gantt/GanttPoint.js +1 -1
  182. package/es-modules/Series/Gantt/GanttSeries.js +3 -1
  183. package/es-modules/Series/HLC/HLCSeries.js +1 -6
  184. package/es-modules/Series/Heatmap/HeatmapPoint.js +10 -10
  185. package/es-modules/Series/Heatmap/HeatmapSeries.js +9 -10
  186. package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +8 -6
  187. package/es-modules/Series/Histogram/HistogramSeries.js +4 -4
  188. package/es-modules/Series/HollowCandlestick/HollowCandlestickPoint.js +1 -4
  189. package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +19 -20
  190. package/es-modules/Series/Item/ItemSeries.js +4 -5
  191. package/es-modules/Series/Map/MapPoint.js +6 -0
  192. package/es-modules/Series/Map/MapSeries.js +24 -25
  193. package/es-modules/Series/MapLine/MapLineSeries.js +0 -4
  194. package/es-modules/Series/Networkgraph/DraggableNodes.js +0 -4
  195. package/es-modules/Series/Networkgraph/Integrations.js +8 -22
  196. package/es-modules/Series/Networkgraph/Networkgraph.js +1 -5
  197. package/es-modules/Series/Networkgraph/QuadTree.js +1 -3
  198. package/es-modules/Series/NodesComposition.js +2 -1
  199. package/es-modules/Series/OHLC/OHLCPoint.js +0 -1
  200. package/es-modules/Series/OHLC/OHLCSeries.js +1 -1
  201. package/es-modules/Series/Organization/OrganizationSeries.js +4 -2
  202. package/es-modules/Series/PackedBubble/PackedBubbleComposition.js +1 -0
  203. package/es-modules/Series/PackedBubble/PackedBubblePoint.js +1 -1
  204. package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +2 -4
  205. package/es-modules/Series/Pie/PiePoint.js +2 -2
  206. package/es-modules/Series/Pie/PieSeries.js +1 -1
  207. package/es-modules/Series/Pie3D/Pie3DComposition.js +2 -1
  208. package/es-modules/Series/Pie3D/Pie3DPoint.js +2 -1
  209. package/es-modules/Series/Pie3D/Pie3DSeries.js +1 -1
  210. package/es-modules/Series/Pyramid3D/Pyramid3DSeries.js +2 -1
  211. package/es-modules/Series/Sankey/SankeySeries.js +3 -2
  212. package/es-modules/Series/SolidGauge/SolidGaugeComposition.js +3 -1
  213. package/es-modules/Series/Spline/SplineSeries.js +0 -8
  214. package/es-modules/Series/Sunburst/SunburstSeries.js +2 -2
  215. package/es-modules/Series/Sunburst/SunburstUtilities.js +3 -2
  216. package/es-modules/Series/Tilemap/TilemapPoint.js +0 -2
  217. package/es-modules/Series/Tilemap/TilemapShapes.js +0 -7
  218. package/es-modules/Series/TreeUtilities.js +2 -2
  219. package/es-modules/Series/Treemap/TreemapSeries.js +18 -21
  220. package/es-modules/Series/Variwide/VariwideSeries.js +5 -1
  221. package/es-modules/Series/Venn/VennSeries.js +6 -9
  222. package/es-modules/Series/Venn/VennUtils.js +8 -7
  223. package/es-modules/Series/Waterfall/WaterfallSeries.js +6 -3
  224. package/es-modules/Series/Wordcloud/WordcloudSeries.js +2 -2
  225. package/es-modules/Series/Wordcloud/WordcloudUtils.js +6 -10
  226. package/es-modules/Series/XRange/XRangePoint.js +6 -12
  227. package/es-modules/Series/XRange/XRangeSeries.js +4 -20
  228. package/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +12 -0
  229. package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +1 -0
  230. package/es-modules/Stock/Indicators/BB/BBIndicator.js +12 -0
  231. package/es-modules/Stock/Indicators/CMF/CMFIndicator.js +35 -15
  232. package/es-modules/Stock/Indicators/DMI/DMIIndicator.js +9 -5
  233. package/es-modules/Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js +2 -1
  234. package/es-modules/Stock/Indicators/IKH/IKHIndicator.js +6 -6
  235. package/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +12 -0
  236. package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +8 -3
  237. package/es-modules/Stock/Indicators/LinearRegression/LinearRegression.js +30 -12
  238. package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +1 -1
  239. package/es-modules/Stock/Indicators/MultipleLinesComposition.js +70 -6
  240. package/es-modules/Stock/Indicators/PC/PCIndicator.js +11 -0
  241. package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +2 -1
  242. package/es-modules/Stock/Indicators/RSI/RSIIndicator.js +2 -1
  243. package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +2 -3
  244. package/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +3 -1
  245. package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +3 -3
  246. package/es-modules/Stock/Indicators/VWAP/VWAPIndicator.js +19 -7
  247. package/es-modules/Stock/StockToolsBindings.js +13 -6
  248. package/es-modules/Stock/StockToolsGui.js +34 -23
  249. package/es-modules/masters/highcharts-3d.src.js +1 -1
  250. package/es-modules/masters/highcharts-gantt.src.js +1 -1
  251. package/es-modules/masters/highcharts-more.src.js +1 -1
  252. package/es-modules/masters/highcharts.src.js +1 -1
  253. package/es-modules/masters/highmaps.src.js +1 -1
  254. package/es-modules/masters/highstock.src.js +1 -1
  255. package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
  256. package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
  257. package/es-modules/masters/indicators/ao.src.js +1 -1
  258. package/es-modules/masters/indicators/apo.src.js +1 -1
  259. package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
  260. package/es-modules/masters/indicators/aroon.src.js +1 -1
  261. package/es-modules/masters/indicators/atr.src.js +1 -1
  262. package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
  263. package/es-modules/masters/indicators/cci.src.js +1 -1
  264. package/es-modules/masters/indicators/chaikin.src.js +1 -1
  265. package/es-modules/masters/indicators/cmf.src.js +1 -1
  266. package/es-modules/masters/indicators/cmo.src.js +1 -1
  267. package/es-modules/masters/indicators/dema.src.js +1 -1
  268. package/es-modules/masters/indicators/disparity-index.src.js +1 -1
  269. package/es-modules/masters/indicators/dmi.src.js +1 -1
  270. package/es-modules/masters/indicators/dpo.src.js +1 -1
  271. package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
  272. package/es-modules/masters/indicators/indicators-all.src.js +1 -1
  273. package/es-modules/masters/indicators/indicators.src.js +1 -1
  274. package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
  275. package/es-modules/masters/indicators/klinger.src.js +1 -1
  276. package/es-modules/masters/indicators/macd.src.js +1 -1
  277. package/es-modules/masters/indicators/mfi.src.js +1 -1
  278. package/es-modules/masters/indicators/momentum.src.js +1 -1
  279. package/es-modules/masters/indicators/natr.src.js +1 -1
  280. package/es-modules/masters/indicators/obv.src.js +1 -1
  281. package/es-modules/masters/indicators/pivot-points.src.js +1 -1
  282. package/es-modules/masters/indicators/ppo.src.js +1 -1
  283. package/es-modules/masters/indicators/price-channel.src.js +1 -1
  284. package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
  285. package/es-modules/masters/indicators/psar.src.js +1 -1
  286. package/es-modules/masters/indicators/regressions.src.js +1 -1
  287. package/es-modules/masters/indicators/roc.src.js +1 -1
  288. package/es-modules/masters/indicators/rsi.src.js +1 -1
  289. package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
  290. package/es-modules/masters/indicators/stochastic.src.js +1 -1
  291. package/es-modules/masters/indicators/supertrend.src.js +1 -1
  292. package/es-modules/masters/indicators/tema.src.js +1 -1
  293. package/es-modules/masters/indicators/trendline.src.js +1 -1
  294. package/es-modules/masters/indicators/trix.src.js +1 -1
  295. package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
  296. package/es-modules/masters/indicators/vwap.src.js +1 -1
  297. package/es-modules/masters/indicators/williams-r.src.js +1 -1
  298. package/es-modules/masters/indicators/wma.src.js +1 -1
  299. package/es-modules/masters/indicators/zigzag.src.js +1 -1
  300. package/es-modules/masters/modules/accessibility.src.js +2 -2
  301. package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
  302. package/es-modules/masters/modules/annotations.src.js +1 -1
  303. package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
  304. package/es-modules/masters/modules/boost-canvas.src.js +1 -1
  305. package/es-modules/masters/modules/boost.src.js +1 -1
  306. package/es-modules/masters/modules/broken-axis.src.js +1 -1
  307. package/es-modules/masters/modules/bullet.src.js +1 -1
  308. package/es-modules/masters/modules/coloraxis.src.js +1 -1
  309. package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
  310. package/es-modules/masters/modules/cylinder.src.js +1 -1
  311. package/es-modules/masters/modules/data.src.js +1 -1
  312. package/es-modules/masters/modules/datagrouping.src.js +1 -1
  313. package/es-modules/masters/modules/debugger.src.js +1 -1
  314. package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
  315. package/es-modules/masters/modules/dotplot.src.js +1 -1
  316. package/es-modules/masters/modules/drag-panes.src.js +1 -1
  317. package/es-modules/masters/modules/draggable-points.src.js +1 -1
  318. package/es-modules/masters/modules/drilldown.src.js +1 -1
  319. package/es-modules/masters/modules/dumbbell.src.js +1 -1
  320. package/es-modules/masters/modules/export-data.src.js +1 -1
  321. package/es-modules/masters/modules/exporting.src.js +1 -1
  322. package/es-modules/masters/modules/full-screen.src.js +1 -1
  323. package/es-modules/masters/modules/funnel.src.js +1 -1
  324. package/es-modules/masters/modules/funnel3d.src.js +1 -1
  325. package/es-modules/masters/modules/gantt.src.js +1 -1
  326. package/es-modules/masters/modules/grid-axis.src.js +1 -1
  327. package/es-modules/masters/modules/heatmap.src.js +1 -1
  328. package/es-modules/masters/modules/heikinashi.src.js +1 -1
  329. package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
  330. package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
  331. package/es-modules/masters/modules/item-series.src.js +1 -1
  332. package/es-modules/masters/modules/lollipop.src.js +1 -1
  333. package/es-modules/masters/modules/map.src.js +1 -1
  334. package/es-modules/masters/modules/marker-clusters.src.js +1 -1
  335. package/es-modules/masters/modules/networkgraph.src.js +1 -1
  336. package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
  337. package/es-modules/masters/modules/offline-exporting.src.js +1 -1
  338. package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
  339. package/es-modules/masters/modules/oldie.src.js +1 -1
  340. package/es-modules/masters/modules/organization.src.js +1 -1
  341. package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
  342. package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
  343. package/es-modules/masters/modules/pareto.src.js +1 -1
  344. package/es-modules/masters/modules/pathfinder.src.js +1 -1
  345. package/es-modules/masters/modules/pattern-fill.src.js +1 -1
  346. package/es-modules/masters/modules/price-indicator.src.js +1 -1
  347. package/es-modules/masters/modules/pyramid3d.src.js +1 -1
  348. package/es-modules/masters/modules/sankey.src.js +1 -1
  349. package/es-modules/masters/modules/series-label.src.js +1 -1
  350. package/es-modules/masters/modules/solid-gauge.src.js +1 -1
  351. package/es-modules/masters/modules/sonification.src.js +1 -1
  352. package/es-modules/masters/modules/static-scale.src.js +1 -1
  353. package/es-modules/masters/modules/stock-tools.src.js +1 -1
  354. package/es-modules/masters/modules/stock.src.js +1 -1
  355. package/es-modules/masters/modules/streamgraph.src.js +1 -1
  356. package/es-modules/masters/modules/sunburst.src.js +1 -1
  357. package/es-modules/masters/modules/tilemap.src.js +1 -1
  358. package/es-modules/masters/modules/timeline.src.js +1 -1
  359. package/es-modules/masters/modules/treegrid.src.js +1 -1
  360. package/es-modules/masters/modules/treemap.src.js +1 -1
  361. package/es-modules/masters/modules/variable-pie.src.js +1 -1
  362. package/es-modules/masters/modules/variwide.src.js +1 -1
  363. package/es-modules/masters/modules/vector.src.js +1 -1
  364. package/es-modules/masters/modules/venn.src.js +1 -1
  365. package/es-modules/masters/modules/windbarb.src.js +1 -1
  366. package/es-modules/masters/modules/wordcloud.src.js +1 -1
  367. package/es-modules/masters/modules/xrange.src.js +1 -1
  368. package/es-modules/masters/themes/avocado.src.js +1 -1
  369. package/es-modules/masters/themes/brand-dark.src.js +14 -0
  370. package/es-modules/masters/themes/brand-light.src.js +14 -0
  371. package/es-modules/masters/themes/dark-blue.src.js +1 -1
  372. package/es-modules/masters/themes/dark-green.src.js +1 -1
  373. package/es-modules/masters/themes/dark-unica.src.js +1 -1
  374. package/es-modules/masters/themes/gray.src.js +1 -1
  375. package/es-modules/masters/themes/grid-light.src.js +1 -1
  376. package/es-modules/masters/themes/grid.src.js +1 -1
  377. package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
  378. package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
  379. package/es-modules/masters/themes/sand-signika.src.js +1 -1
  380. package/es-modules/masters/themes/skies.src.js +1 -1
  381. package/es-modules/masters/themes/sunset.src.js +1 -1
  382. package/highcharts-3d.js +1 -1
  383. package/highcharts-3d.js.map +1 -1
  384. package/highcharts-3d.src.js +65 -35
  385. package/highcharts-gantt.js +799 -799
  386. package/highcharts-gantt.js.map +1 -1
  387. package/highcharts-gantt.src.js +589 -698
  388. package/highcharts-more.js +1 -1
  389. package/highcharts-more.js.map +1 -1
  390. package/highcharts-more.src.js +73 -103
  391. package/highcharts.d.ts +5586 -1709
  392. package/highcharts.js +577 -577
  393. package/highcharts.js.map +1 -1
  394. package/highcharts.src.d.ts +5586 -1709
  395. package/highcharts.src.js +391 -486
  396. package/highmaps.js +723 -723
  397. package/highmaps.js.map +1 -1
  398. package/highmaps.src.js +552 -656
  399. package/highstock.js +782 -782
  400. package/highstock.js.map +1 -1
  401. package/highstock.src.js +612 -731
  402. package/indicators/acceleration-bands.d.ts +17 -1
  403. package/indicators/acceleration-bands.js +11 -10
  404. package/indicators/acceleration-bands.js.map +1 -1
  405. package/indicators/acceleration-bands.src.d.ts +17 -1
  406. package/indicators/acceleration-bands.src.js +88 -6
  407. package/indicators/accumulation-distribution.js +1 -1
  408. package/indicators/accumulation-distribution.src.js +1 -1
  409. package/indicators/ao.js +1 -1
  410. package/indicators/ao.src.js +1 -1
  411. package/indicators/apo.js +1 -1
  412. package/indicators/apo.src.js +1 -1
  413. package/indicators/aroon-oscillator.d.ts +17 -1
  414. package/indicators/aroon-oscillator.js +10 -9
  415. package/indicators/aroon-oscillator.js.map +1 -1
  416. package/indicators/aroon-oscillator.src.d.ts +17 -1
  417. package/indicators/aroon-oscillator.src.js +76 -6
  418. package/indicators/aroon.d.ts +17 -1
  419. package/indicators/aroon.js +11 -9
  420. package/indicators/aroon.js.map +1 -1
  421. package/indicators/aroon.src.d.ts +17 -1
  422. package/indicators/aroon.src.js +77 -6
  423. package/indicators/atr.js +1 -1
  424. package/indicators/atr.src.js +1 -1
  425. package/indicators/bollinger-bands.d.ts +17 -1
  426. package/indicators/bollinger-bands.js +12 -10
  427. package/indicators/bollinger-bands.js.map +1 -1
  428. package/indicators/bollinger-bands.src.d.ts +17 -1
  429. package/indicators/bollinger-bands.src.js +88 -6
  430. package/indicators/cci.js +1 -1
  431. package/indicators/cci.src.js +1 -1
  432. package/indicators/chaikin.js +1 -1
  433. package/indicators/chaikin.src.js +1 -1
  434. package/indicators/cmf.js +1 -1
  435. package/indicators/cmf.js.map +1 -1
  436. package/indicators/cmf.src.js +36 -16
  437. package/indicators/cmo.js +1 -1
  438. package/indicators/cmo.src.js +1 -1
  439. package/indicators/dema.js +1 -1
  440. package/indicators/dema.src.js +1 -1
  441. package/indicators/disparity-index.js +1 -1
  442. package/indicators/disparity-index.js.map +1 -1
  443. package/indicators/disparity-index.src.js +3 -2
  444. package/indicators/dmi.js +12 -11
  445. package/indicators/dmi.js.map +1 -1
  446. package/indicators/dmi.src.js +85 -11
  447. package/indicators/dpo.js +1 -1
  448. package/indicators/dpo.src.js +1 -1
  449. package/indicators/ichimoku-kinko-hyo.js +1 -1
  450. package/indicators/ichimoku-kinko-hyo.js.map +1 -1
  451. package/indicators/ichimoku-kinko-hyo.src.js +7 -7
  452. package/indicators/indicators-all.d.ts +17 -1
  453. package/indicators/indicators-all.js +198 -197
  454. package/indicators/indicators-all.js.map +1 -1
  455. package/indicators/indicators-all.src.d.ts +17 -1
  456. package/indicators/indicators-all.src.js +246 -65
  457. package/indicators/indicators.js +1 -1
  458. package/indicators/indicators.js.map +1 -1
  459. package/indicators/indicators.src.js +3 -4
  460. package/indicators/keltner-channels.d.ts +17 -1
  461. package/indicators/keltner-channels.js +11 -10
  462. package/indicators/keltner-channels.js.map +1 -1
  463. package/indicators/keltner-channels.src.d.ts +17 -1
  464. package/indicators/keltner-channels.src.js +88 -6
  465. package/indicators/klinger.js +14 -12
  466. package/indicators/klinger.js.map +1 -1
  467. package/indicators/klinger.src.js +84 -9
  468. package/indicators/macd.js +1 -1
  469. package/indicators/macd.js.map +1 -1
  470. package/indicators/macd.src.js +2 -2
  471. package/indicators/mfi.js +1 -1
  472. package/indicators/mfi.src.js +1 -1
  473. package/indicators/momentum.js +1 -1
  474. package/indicators/momentum.src.js +1 -1
  475. package/indicators/natr.js +1 -1
  476. package/indicators/natr.src.js +1 -1
  477. package/indicators/obv.js +1 -1
  478. package/indicators/obv.src.js +1 -1
  479. package/indicators/pivot-points.js +1 -1
  480. package/indicators/pivot-points.js.map +1 -1
  481. package/indicators/pivot-points.src.js +3 -2
  482. package/indicators/ppo.js +1 -1
  483. package/indicators/ppo.src.js +1 -1
  484. package/indicators/price-channel.d.ts +17 -1
  485. package/indicators/price-channel.js +11 -9
  486. package/indicators/price-channel.js.map +1 -1
  487. package/indicators/price-channel.src.d.ts +17 -1
  488. package/indicators/price-channel.src.js +87 -6
  489. package/indicators/price-envelopes.js +1 -1
  490. package/indicators/price-envelopes.src.js +1 -1
  491. package/indicators/psar.js +1 -1
  492. package/indicators/psar.src.js +1 -1
  493. package/indicators/regressions.js +1 -1
  494. package/indicators/regressions.js.map +1 -1
  495. package/indicators/regressions.src.js +31 -13
  496. package/indicators/roc.js +1 -1
  497. package/indicators/roc.src.js +1 -1
  498. package/indicators/rsi.js +1 -1
  499. package/indicators/rsi.js.map +1 -1
  500. package/indicators/rsi.src.js +3 -2
  501. package/indicators/slow-stochastic.js +1 -1
  502. package/indicators/slow-stochastic.src.js +1 -1
  503. package/indicators/stochastic.d.ts +17 -1
  504. package/indicators/stochastic.js +12 -10
  505. package/indicators/stochastic.js.map +1 -1
  506. package/indicators/stochastic.src.d.ts +17 -1
  507. package/indicators/stochastic.src.js +79 -7
  508. package/indicators/supertrend.js +1 -1
  509. package/indicators/supertrend.src.js +1 -1
  510. package/indicators/tema.js +1 -1
  511. package/indicators/tema.src.js +1 -1
  512. package/indicators/trendline.js +1 -1
  513. package/indicators/trendline.src.js +1 -1
  514. package/indicators/trix.js +1 -1
  515. package/indicators/trix.src.js +1 -1
  516. package/indicators/volume-by-price.js +1 -1
  517. package/indicators/volume-by-price.src.js +4 -4
  518. package/indicators/vwap.js +1 -1
  519. package/indicators/vwap.js.map +1 -1
  520. package/indicators/vwap.src.js +20 -8
  521. package/indicators/williams-r.js +1 -1
  522. package/indicators/williams-r.src.js +1 -1
  523. package/indicators/wma.js +1 -1
  524. package/indicators/wma.src.js +1 -1
  525. package/indicators/zigzag.js +1 -1
  526. package/indicators/zigzag.src.js +1 -1
  527. package/modules/accessibility.d.ts +0 -35
  528. package/modules/accessibility.js +225 -222
  529. package/modules/accessibility.js.map +1 -1
  530. package/modules/accessibility.src.d.ts +0 -35
  531. package/modules/accessibility.src.js +503 -418
  532. package/modules/annotations-advanced.js +128 -128
  533. package/modules/annotations-advanced.js.map +1 -1
  534. package/modules/annotations-advanced.src.js +152 -124
  535. package/modules/annotations.js +122 -122
  536. package/modules/annotations.js.map +1 -1
  537. package/modules/annotations.src.js +112 -100
  538. package/modules/arrow-symbols.js +1 -1
  539. package/modules/arrow-symbols.src.js +1 -1
  540. package/modules/boost-canvas.js +1 -1
  541. package/modules/boost-canvas.src.js +1 -1
  542. package/modules/boost.js +1 -1
  543. package/modules/boost.js.map +1 -1
  544. package/modules/boost.src.js +33 -43
  545. package/modules/broken-axis.js +1 -1
  546. package/modules/broken-axis.js.map +1 -1
  547. package/modules/broken-axis.src.js +18 -12
  548. package/modules/bullet.js +1 -1
  549. package/modules/bullet.src.js +1 -1
  550. package/modules/coloraxis.js +1 -1
  551. package/modules/coloraxis.js.map +1 -1
  552. package/modules/coloraxis.src.js +11 -8
  553. package/modules/current-date-indicator.js +1 -1
  554. package/modules/current-date-indicator.src.js +1 -1
  555. package/modules/cylinder.js +1 -1
  556. package/modules/cylinder.js.map +1 -1
  557. package/modules/cylinder.src.js +37 -5
  558. package/modules/data.d.ts +6 -6
  559. package/modules/data.js +31 -31
  560. package/modules/data.js.map +1 -1
  561. package/modules/data.src.d.ts +6 -6
  562. package/modules/data.src.js +10 -53
  563. package/modules/datagrouping.js +2 -2
  564. package/modules/datagrouping.js.map +1 -1
  565. package/modules/datagrouping.src.js +23 -16
  566. package/modules/debugger.js +1 -1
  567. package/modules/debugger.src.js +1 -1
  568. package/modules/dependency-wheel.js +3 -3
  569. package/modules/dependency-wheel.js.map +1 -1
  570. package/modules/dependency-wheel.src.js +2 -2
  571. package/modules/dotplot.js +1 -1
  572. package/modules/dotplot.src.js +1 -1
  573. package/modules/drag-panes.js +1 -1
  574. package/modules/drag-panes.src.js +1 -1
  575. package/modules/draggable-points.js +1 -1
  576. package/modules/draggable-points.js.map +1 -1
  577. package/modules/draggable-points.src.js +8 -9
  578. package/modules/drilldown.js +1 -1
  579. package/modules/drilldown.js.map +1 -1
  580. package/modules/drilldown.src.js +10 -5
  581. package/modules/dumbbell.js +1 -1
  582. package/modules/dumbbell.js.map +1 -1
  583. package/modules/dumbbell.src.js +1 -5
  584. package/modules/export-data.js +19 -19
  585. package/modules/export-data.js.map +1 -1
  586. package/modules/export-data.src.js +7 -6
  587. package/modules/exporting.js +1 -1
  588. package/modules/exporting.js.map +1 -1
  589. package/modules/exporting.src.js +33 -45
  590. package/modules/full-screen.js +1 -1
  591. package/modules/full-screen.js.map +1 -1
  592. package/modules/full-screen.src.js +5 -4
  593. package/modules/funnel.js +1 -1
  594. package/modules/funnel.src.js +1 -1
  595. package/modules/funnel3d.js +1 -1
  596. package/modules/funnel3d.js.map +1 -1
  597. package/modules/funnel3d.src.js +17 -10
  598. package/modules/gantt.js +1 -1
  599. package/modules/gantt.js.map +1 -1
  600. package/modules/gantt.src.js +199 -213
  601. package/modules/grid-axis.js +1 -1
  602. package/modules/grid-axis.js.map +1 -1
  603. package/modules/grid-axis.src.js +27 -19
  604. package/modules/heatmap.js +39 -39
  605. package/modules/heatmap.js.map +1 -1
  606. package/modules/heatmap.src.js +88 -112
  607. package/modules/heikinashi.js +1 -1
  608. package/modules/heikinashi.js.map +1 -1
  609. package/modules/heikinashi.src.js +9 -7
  610. package/modules/histogram-bellcurve.js +1 -1
  611. package/modules/histogram-bellcurve.js.map +1 -1
  612. package/modules/histogram-bellcurve.src.js +7 -6
  613. package/modules/hollowcandlestick.js +1 -1
  614. package/modules/hollowcandlestick.js.map +1 -1
  615. package/modules/hollowcandlestick.src.js +21 -25
  616. package/modules/item-series.js +6 -6
  617. package/modules/item-series.js.map +1 -1
  618. package/modules/item-series.src.js +6 -6
  619. package/modules/lollipop.js +1 -1
  620. package/modules/lollipop.src.js +1 -1
  621. package/modules/map.d.ts +2 -0
  622. package/modules/map.js +144 -144
  623. package/modules/map.js.map +1 -1
  624. package/modules/map.src.d.ts +2 -0
  625. package/modules/map.src.js +162 -171
  626. package/modules/marker-clusters.js +1 -1
  627. package/modules/marker-clusters.js.map +1 -1
  628. package/modules/marker-clusters.src.js +4 -2
  629. package/modules/networkgraph.js +1 -1
  630. package/modules/networkgraph.js.map +1 -1
  631. package/modules/networkgraph.src.js +13 -36
  632. package/modules/no-data-to-display.js +1 -1
  633. package/modules/no-data-to-display.src.js +1 -1
  634. package/modules/offline-exporting.js +18 -18
  635. package/modules/offline-exporting.js.map +1 -1
  636. package/modules/offline-exporting.src.js +27 -32
  637. package/modules/oldie-polyfills.js +1 -1
  638. package/modules/oldie-polyfills.src.js +1 -1
  639. package/modules/oldie.js +2 -2
  640. package/modules/oldie.js.map +1 -1
  641. package/modules/oldie.src.js +19 -79
  642. package/modules/organization.js +1 -1
  643. package/modules/organization.js.map +1 -1
  644. package/modules/organization.src.js +5 -3
  645. package/modules/overlapping-datalabels.js +1 -1
  646. package/modules/overlapping-datalabels.src.js +1 -1
  647. package/modules/parallel-coordinates.js +1 -1
  648. package/modules/parallel-coordinates.js.map +1 -1
  649. package/modules/parallel-coordinates.src.js +6 -4
  650. package/modules/pareto.js +1 -1
  651. package/modules/pareto.src.js +1 -1
  652. package/modules/pathfinder.js +1 -1
  653. package/modules/pathfinder.js.map +1 -1
  654. package/modules/pathfinder.src.js +21 -20
  655. package/modules/pattern-fill.js +1 -1
  656. package/modules/pattern-fill.js.map +1 -1
  657. package/modules/pattern-fill.src.js +18 -12
  658. package/modules/price-indicator.js +1 -1
  659. package/modules/price-indicator.js.map +1 -1
  660. package/modules/price-indicator.src.js +3 -2
  661. package/modules/pyramid3d.js +1 -1
  662. package/modules/pyramid3d.js.map +1 -1
  663. package/modules/pyramid3d.src.js +3 -2
  664. package/modules/sankey.js +1 -1
  665. package/modules/sankey.js.map +1 -1
  666. package/modules/sankey.src.js +8 -6
  667. package/modules/series-label.js +1 -1
  668. package/modules/series-label.js.map +1 -1
  669. package/modules/series-label.src.js +2 -2
  670. package/modules/solid-gauge.js +1 -1
  671. package/modules/solid-gauge.js.map +1 -1
  672. package/modules/solid-gauge.src.js +17 -2
  673. package/modules/sonification.js +53 -53
  674. package/modules/sonification.js.map +1 -1
  675. package/modules/sonification.src.js +121 -103
  676. package/modules/static-scale.js +1 -1
  677. package/modules/static-scale.src.js +1 -1
  678. package/modules/stock-tools.js +66 -66
  679. package/modules/stock-tools.js.map +1 -1
  680. package/modules/stock-tools.src.js +119 -96
  681. package/modules/stock.js +3 -3
  682. package/modules/stock.js.map +1 -1
  683. package/modules/stock.src.js +222 -246
  684. package/modules/streamgraph.js +1 -1
  685. package/modules/streamgraph.src.js +1 -1
  686. package/modules/sunburst.js +60 -61
  687. package/modules/sunburst.js.map +1 -1
  688. package/modules/sunburst.src.js +83 -113
  689. package/modules/tilemap.js +1 -1
  690. package/modules/tilemap.js.map +1 -1
  691. package/modules/tilemap.src.js +1 -10
  692. package/modules/timeline.js +1 -1
  693. package/modules/timeline.src.js +1 -1
  694. package/modules/treegrid.js +1 -1
  695. package/modules/treegrid.js.map +1 -1
  696. package/modules/treegrid.src.js +76 -50
  697. package/modules/treemap.js +41 -41
  698. package/modules/treemap.js.map +1 -1
  699. package/modules/treemap.src.js +78 -109
  700. package/modules/variable-pie.js +1 -1
  701. package/modules/variable-pie.src.js +1 -1
  702. package/modules/variwide.js +1 -1
  703. package/modules/variwide.js.map +1 -1
  704. package/modules/variwide.src.js +7 -3
  705. package/modules/vector.js +1 -1
  706. package/modules/vector.src.js +1 -1
  707. package/modules/venn.js +1 -1
  708. package/modules/venn.js.map +1 -1
  709. package/modules/venn.src.js +17 -18
  710. package/modules/windbarb.js +1 -1
  711. package/modules/windbarb.src.js +1 -1
  712. package/modules/wordcloud.js +1 -1
  713. package/modules/wordcloud.js.map +1 -1
  714. package/modules/wordcloud.src.js +9 -13
  715. package/modules/xrange.js +1 -1
  716. package/modules/xrange.js.map +1 -1
  717. package/modules/xrange.src.js +11 -33
  718. package/package.json +1 -1
  719. package/themes/avocado.js +1 -1
  720. package/themes/avocado.src.js +1 -1
  721. package/themes/brand-dark.js +15 -0
  722. package/themes/brand-dark.js.map +1 -0
  723. package/themes/brand-dark.src.js +328 -0
  724. package/themes/brand-light.js +15 -0
  725. package/themes/brand-light.js.map +1 -0
  726. package/themes/brand-light.src.js +294 -0
  727. package/themes/dark-blue.js +1 -1
  728. package/themes/dark-blue.src.js +1 -1
  729. package/themes/dark-green.js +1 -1
  730. package/themes/dark-green.src.js +1 -1
  731. package/themes/dark-unica.js +1 -1
  732. package/themes/dark-unica.js.map +1 -1
  733. package/themes/dark-unica.src.js +5 -3
  734. package/themes/gray.js +1 -1
  735. package/themes/gray.src.js +1 -1
  736. package/themes/grid-light.js +1 -1
  737. package/themes/grid-light.js.map +1 -1
  738. package/themes/grid-light.src.js +5 -3
  739. package/themes/grid.js +1 -1
  740. package/themes/grid.js.map +1 -1
  741. package/themes/grid.src.js +5 -3
  742. package/themes/high-contrast-dark.js +1 -1
  743. package/themes/high-contrast-dark.src.js +1 -1
  744. package/themes/high-contrast-light.js +1 -1
  745. package/themes/high-contrast-light.src.js +1 -1
  746. package/themes/sand-signika.js +1 -1
  747. package/themes/sand-signika.src.js +1 -1
  748. package/themes/skies.js +1 -1
  749. package/themes/skies.src.js +1 -1
  750. package/themes/sunset.js +1 -1
  751. package/themes/sunset.src.js +1 -1
  752. package/es-modules/Series/ColorMapComposition.js +0 -109
@@ -1,5 +1,5 @@
1
1
  /*
2
- Highstock JS v9.3.1 (2021-11-05)
2
+ Highstock JS v9.3.2 (2021-11-29)
3
3
 
4
4
  All technical indicators for Highcharts Stock
5
5
 
@@ -7,200 +7,201 @@
7
7
 
8
8
  License: www.highcharts.com/license
9
9
  */
10
- 'use strict';(function(f){"object"===typeof module&&module.exports?(f["default"]=f,module.exports=f):"function"===typeof define&&define.amd?define("highcharts/indicators/indicators-all",["highcharts","highcharts/modules/stock"],function(v){f(v);f.Highcharts=v;return f}):f("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(f){function v(f,d,g,l){f.hasOwnProperty(d)||(f[d]=l.apply(null,g))}f=f?f._modules:{};v(f,"Stock/Indicators/SMA/SMAComposition.js",[f["Core/Series/SeriesRegistry.js"],
11
- f["Core/Utilities.js"]],function(f,d){});v(f,"Stock/Indicators/SMA/SMAIndicator.js",[f["Core/Chart/Chart.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=this&&this.__extends||function(){var c=function(b,a){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,b){c.__proto__=b}||function(c,b){for(var a in b)b.hasOwnProperty(a)&&(c[a]=b[a])};return c(b,a)};return function(b,a){function m(){this.constructor=b}c(b,a);b.prototype=null===a?Object.create(a):
12
- (m.prototype=a.prototype,new m)}}(),k=d.seriesTypes.line,p=g.addEvent,r=g.error,h=g.extend,e=g.isArray,a=g.merge,b=g.pick,c=g.splat;g=function(m){function w(){var c=null!==m&&m.apply(this,arguments)||this;c.data=void 0;c.dataEventsToUnbind=void 0;c.linkedParent=void 0;c.options=void 0;c.points=void 0;return c}l(w,m);w.prototype.destroy=function(){this.dataEventsToUnbind.forEach(function(c){c()});m.prototype.destroy.apply(this,arguments)};w.prototype.getName=function(){var c=this.name,a=[];c||((this.nameComponents||
13
- []).forEach(function(c,m){a.push(this.options.params[c]+b(this.nameSuffixes[m],""))},this),c=(this.nameBase||this.type.toUpperCase())+(this.nameComponents?" ("+a.join(", ")+")":""));return c};w.prototype.getValues=function(c,b){var a=b.period,m=c.xData;c=c.yData;var w=c.length,y=0,A=0,h=[],d=[],g=[],f=-1;if(!(m.length<a)){for(e(c[0])&&(f=b.index?b.index:0);y<a-1;)A+=0>f?c[y]:c[y][f],y++;for(b=y;b<w;b++){A+=0>f?c[b]:c[b][f];var r=[m[b],A/a];h.push(r);d.push(r[0]);g.push(r[1]);A-=0>f?c[b-y]:c[b-y][f]}return{values:h,
14
- xData:d,yData:g}}};w.prototype.init=function(c,b){var a=this;m.prototype.init.call(a,c,b);b=p(f,"afterLinkSeries",function(){var b=!!a.dataEventsToUnbind.length;if(a.linkedParent)if(b||(a.dataEventsToUnbind.push(p(a.linkedParent,"updatedData",function(){a.recalculateValues()})),a.calculateOn.xAxis&&a.dataEventsToUnbind.push(p(a.linkedParent.xAxis,a.calculateOn.xAxis,function(){a.recalculateValues()}))),"init"===a.calculateOn.chart)a.processedYData||a.recalculateValues();else{if(!b)var m=p(a.chart,
15
- a.calculateOn.chart,function(){a.recalculateValues();m()})}else return r("Series "+a.options.linkedTo+" not found! Check `linkedTo`.",!1,c)},{order:0});a.dataEventsToUnbind=[];a.eventsToUnbind.push(b)};w.prototype.recalculateValues=function(){var a=this.points||[],b=(this.xData||[]).length,m=this.getValues(this.linkedParent,this.options.params)||{values:[],xData:[],yData:[]},e=[],w=!0;if(b&&!this.hasGroupedData&&this.visible&&this.points)if(this.cropped){if(this.xAxis){var h=this.xAxis.min;var d=
16
- this.xAxis.max}b=this.cropData(m.xData,m.yData,h,d);for(h=0;h<b.xData.length;h++)e.push([b.xData[h]].concat(c(b.yData[h])));b=m.xData.indexOf(this.xData[0]);h=m.xData.indexOf(this.xData[this.xData.length-1]);-1===b&&h===m.xData.length-2&&e[0][0]===a[0].x&&e.shift();this.updateData(e)}else m.xData.length!==b-1&&m.xData.length!==b+1&&(w=!1,this.updateData(m.values));w&&(this.xData=m.xData,this.yData=m.yData,this.options.data=m.values);this.calculateOn.xAxis&&this.processedXData&&(delete this.processedXData,
17
- this.isDirty=!0,this.redraw());this.isDirtyData=!1};w.prototype.processData=function(){var c=this.options.compareToMain,b=this.linkedParent;m.prototype.processData.apply(this,arguments);this.dataModify&&b&&b.dataModify&&b.dataModify.compareValue&&c&&(this.dataModify.compareValue=b.dataModify.compareValue)};w.defaultOptions=a(k.defaultOptions,{name:void 0,tooltip:{valueDecimals:4},linkedTo:void 0,compareToMain:!1,params:{index:3,period:14}});return w}(k);h(g.prototype,{calculateOn:{chart:"init"},hasDerivedData:!0,
18
- nameComponents:["period"],nameSuffixes:[],useCommonDataGrouping:!0});d.registerSeriesType("sma",g);"";return g});v(f,"Stock/Indicators/EMA/EMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var h=function(e,a){h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var a in c)c.hasOwnProperty(a)&&(b[a]=c[a])};return h(e,a)};return function(e,a){function b(){this.constructor=
19
- e}h(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,k=d.correctFloat,p=d.isArray,r=d.merge;d=function(h){function e(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,h);e.prototype.accumulatePeriodPoints=function(a,b,c){for(var m=0,e=0,A;e<a;)A=0>b?c[e]:c[e][b],m+=A,e++;return m};e.prototype.calculateEma=function(a,b,c,m,e,A,y){a=a[c-1];b=0>A?b[c-1]:b[c-1][A];m="undefined"===typeof e?y:k(b*
20
- m+e*(1-m));return[a,m]};e.prototype.getValues=function(a,b){var c=b.period,m=a.xData,e=(a=a.yData)?a.length:0,A=2/(c+1),y=[],h=[],d=[],q=-1;if(!(e<c)){p(a[0])&&(q=b.index?b.index:0);b=this.accumulatePeriodPoints(c,q,a);for(b/=c;c<e+1;c++){var n=this.calculateEma(m,a,c,A,n,q,b);y.push(n);h.push(n[0]);d.push(n[1]);n=n[1]}return{values:y,xData:h,yData:d}}};e.defaultOptions=r(l.defaultOptions,{params:{index:3,period:9}});return e}(l);f.registerSeriesType("ema",d);"";return d});v(f,"Stock/Indicators/AD/ADIndicator.js",
21
- [f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var h=function(e,a){h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var a in c)c.hasOwnProperty(a)&&(b[a]=c[a])};return h(e,a)};return function(e,a){function b(){this.constructor=e}h(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,k=d.error,p=d.extend,r=d.merge;d=function(h){function e(){var a=
22
- null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,h);e.populateAverage=function(a,b,c,m,e){e=b[m][1];var w=b[m][2];b=b[m][3];c=c[m];return[a[m],b===e&&b===w||e===w?0:(2*b-w-e)/(e-w)*c]};e.prototype.getValues=function(a,b){var c=b.period,m=a.xData,w=a.yData,A=b.volumeSeriesID,y=a.chart.get(A);b=y&&y.yData;var h=w?w.length:0,d=[],q=[],n=[];if(!(m.length<=c&&h&&4!==w[0].length)){if(y){for(A=c;A<h;A++)a=d.length,y=e.populateAverage(m,w,b,A,c),0<a&&(y[1]+=
23
- d[a-1][1]),d.push(y),q.push(y[0]),n.push(y[1]);return{values:d,xData:q,yData:n}}k("Series "+A+" not found! Check `volumeSeriesID`.",!0,a.chart)}};e.defaultOptions=r(l.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume"}});return e}(l);p(d.prototype,{nameComponents:!1,nameBase:"Accumulation/Distribution"});f.registerSeriesType("ad",d);"";return d});v(f,"Stock/Indicators/AO/AOIndicator.js",[f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=
24
- this&&this.__extends||function(){var b=function(c,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var b in a)a.hasOwnProperty(b)&&(c[b]=a[b])};return b(c,a)};return function(c,a){function m(){this.constructor=c}b(c,a);c.prototype=null===a?Object.create(a):(m.prototype=a.prototype,new m)}}();f=f.noop;var k=d.seriesTypes,p=k.sma;k=k.column;var r=g.extend,h=g.merge,e=g.correctFloat,a=g.isArray;g=function(b){function c(){var c=null!==b&&b.apply(this,
25
- arguments)||this;c.data=void 0;c.options=void 0;c.points=void 0;return c}l(c,b);c.prototype.drawGraph=function(){var c=this.options,a=this.points,b=c.greaterBarColor;c=c.lowerBarColor;var e=a[0];if(!this.userOptions.color&&e)for(e.color=b,e=1;e<a.length;e++)a[e].color=a[e].y>a[e-1].y?b:a[e].y<a[e-1].y?c:a[e-1].color};c.prototype.getValues=function(c){var b=c.xData||[];c=c.yData||[];var m=c.length,y=[],h=[],d=[],q=0,n=0,B;if(!(34>=b.length)&&a(c[0])&&4===c[0].length){for(B=0;33>B;B++){var t=(c[B][1]+
26
- c[B][2])/2;29<=B&&(q=e(q+t));n=e(n+t)}for(B=33;B<m;B++){t=(c[B][1]+c[B][2])/2;q=e(q+t);n=e(n+t);t=q/5;var u=n/34;t=e(t-u);y.push([b[B],t]);h.push(b[B]);d.push(t);t=B+1-5;u=B+1-34;q=e(q-(c[t][1]+c[t][2])/2);n=e(n-(c[u][1]+c[u][2])/2)}return{values:y,xData:h,yData:d}}};c.defaultOptions=h(p.defaultOptions,{params:{index:void 0,period:void 0},greaterBarColor:"#06b535",lowerBarColor:"#f21313",threshold:0,groupPadding:.2,pointPadding:.2,crisp:!1,states:{hover:{halo:{size:0}}}});return c}(p);r(g.prototype,
27
- {nameBase:"AO",nameComponents:!1,markerAttribs:f,getColumnMetrics:k.prototype.getColumnMetrics,crispCol:k.prototype.crispCol,translate:k.prototype.translate,drawPoints:k.prototype.drawPoints});d.registerSeriesType("ao",g);"";return g});v(f,"Stock/Indicators/MultipleLinesComposition.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=f.seriesTypes.sma,l=d.defined,k=d.error,p=d.merge,r;(function(h){function e(){var c=this,a=c.linesApiNames,b=c.points,m=c.options,e=c.graph,
28
- w={options:{gapSize:m.gapSize}},h=[],A=c.getTranslatedLinesNames(c.pointValKey),d=b.length,f;A.forEach(function(c,a){for(h[a]=[];d--;)f=b[d],h[a].push({x:f.x,plotX:f.plotX,plotY:f[c],isNull:!l(f[c])});d=b.length});a.forEach(function(a,b){h[b]?(c.points=h[b],m[a]?c.options=p(m[a].styles,w):k('Error: "There is no '+a+' in DOCS options declared. Check if linesApiNames are consistent with your DOCS line names." at mixin/multiple-line.js:34'),c.graph=c["graph"+a],g.prototype.drawGraph.call(c),c["graph"+
29
- a]=c.graph):k('Error: "'+a+" doesn't have equivalent in pointArrayMap. To many elements in linesApiNames relative to pointArrayMap.\"")});c.points=b;c.options=m;c.graph=e;g.prototype.drawGraph.call(c)}function a(c){var a=[];(this.pointArrayMap||[]).forEach(function(b){b!==c&&a.push("plot"+b.charAt(0).toUpperCase()+b.slice(1))});return a}function b(c){var a=[];(this.pointArrayMap||[]).forEach(function(b){a.push(c[b])});return a}function c(){var c=this,a=c.pointArrayMap,b=[],m;b=c.getTranslatedLinesNames();
30
- g.prototype.translate.apply(c,arguments);c.points.forEach(function(e){a.forEach(function(a,w){m=e[a];c.dataModify&&(m=c.dataModify.modifyValue(m));null!==m&&(e[b[w]]=c.yAxis.toPixels(m,!0))})})}var m=[],w=["bottomLine"],A=["top","bottom"];h.compose=function(h){if(-1===m.indexOf(h)){m.push(h);var d=h.prototype;d.linesApiNames=d.linesApiNames||w.slice();d.pointArrayMap=d.pointArrayMap||A.slice();d.pointValKey=d.pointValKey||"top";d.drawGraph=e;d.toYData=b;d.translate=c;d.getTranslatedLinesNames=a}return h}})(r||
31
- (r={}));return r});v(f,"Stock/Indicators/Aroon/AroonIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){function l(a,b){var c=a[0],m=0,e;for(e=1;e<a.length;e++)if("max"===b&&a[e]>=c||"min"===b&&a[e]<=c)c=a[e],m=e;return m}var k=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var b in a)a.hasOwnProperty(b)&&
32
- (c[b]=a[b])};return a(b,c)};return function(b,c){function m(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(m.prototype=c.prototype,new m)}}(),p=d.seriesTypes.sma,r=g.extend,h=g.merge,e=g.pick;g=function(a){function b(){var c=null!==a&&a.apply(this,arguments)||this;c.data=void 0;c.options=void 0;c.points=void 0;return c}k(b,a);b.prototype.getValues=function(c,a){a=a.period;var b=c.xData,m=(c=c.yData)?c.length:0,h=[],d=[],f=[],q;for(q=a-1;q<m;q++){var n=c.slice(q-a+1,q+2);var B=
33
- l(n.map(function(c){return e(c[2],c)}),"min");n=l(n.map(function(c){return e(c[1],c)}),"max");n=n/a*100;B=B/a*100;b[q+1]&&(h.push([b[q+1],n,B]),d.push(b[q+1]),f.push([n,B]))}return{values:h,xData:d,yData:f}};b.defaultOptions=h(p.defaultOptions,{params:{index:void 0,period:25},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b><br/>Aroon Up: {point.y}<br/>Aroon Down: {point.aroonDown}<br/>'},aroonDown:{styles:{lineWidth:1,lineColor:void 0}},
34
- dataGrouping:{approximation:"averages"}});return b}(p);r(g.prototype,{linesApiNames:["aroonDown"],nameBase:"Aroon",pointArrayMap:["y","aroonDown"],pointValKey:"y"});f.compose(g);d.registerSeriesType("aroon",g);"";return g});v(f,"Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=this&&this.__extends||function(){var e=function(a,b){e=Object.setPrototypeOf||
35
- {__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var b in a)a.hasOwnProperty(b)&&(c[b]=a[b])};return e(a,b)};return function(a,b){function c(){this.constructor=a}e(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=d.seriesTypes.aroon,p=g.extend,r=g.merge,h=d.seriesTypes.aroon;g=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}l(a,e);a.prototype.getValues=function(a,
36
- c){var b=[],e=[],d=[];a=h.prototype.getValues.call(this,a,c);for(c=0;c<a.yData.length;c++){var y=a.yData[c][0];var z=a.yData[c][1];y-=z;b.push([a.xData[c],y]);e.push(a.xData[c]);d.push(y)}return{values:b,xData:e,yData:d}};a.defaultOptions=r(k.defaultOptions,{tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b>: {point.y}'}});return a}(k);p(g.prototype,{nameBase:"Aroon Oscillator",linesApiNames:[],pointArrayMap:["y"],pointValKey:"y"});f.compose(k);d.registerSeriesType("aroonoscillator",
37
- g);"";return g});v(f,"Stock/Indicators/ATR/ATRIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){function g(h,e){return Math.max(h[1]-h[2],"undefined"===typeof e?0:Math.abs(h[1]-e[3]),"undefined"===typeof e?0:Math.abs(h[2]-e[3]))}var l=this&&this.__extends||function(){var h=function(e,a){h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return h(e,a)};return function(e,
38
- a){function b(){this.constructor=e}h(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),k=f.seriesTypes.sma,p=d.isArray,r=d.merge;d=function(h){function e(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}l(e,h);e.prototype.getValues=function(a,b){b=b.period;var c=a.xData,m=(a=a.yData)?a.length:0,e=1,h=0,d=0,z=[],f=[],q=[],n;var B=[[c[0],a[0]]];if(!(c.length<=b)&&p(a[0])&&4===a[0].length){for(n=1;n<=m;n++)if(B.push([c[n],
39
- a[n]]),b<e){var t=b;var u=c[n-1],r=g(a[n-1],a[n-2]);t=[u,(h*(t-1)+r)/t];h=t[1];z.push(t);f.push(t[0]);q.push(t[1])}else b===e?(h=d/(n-1),z.push([c[n-1],h]),f.push(c[n-1]),q.push(h)):d+=g(a[n-1],a[n-2]),e++;return{values:z,xData:f,yData:q}}};e.defaultOptions=r(k.defaultOptions,{params:{index:void 0}});return e}(k);f.registerSeriesType("atr",d);"";return d});v(f,"Stock/Indicators/BB/BBIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],
40
- function(f,d,g){var l=this&&this.__extends||function(){var e=function(a,b){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var b in a)a.hasOwnProperty(b)&&(c[b]=a[b])};return e(a,b)};return function(a,b){function c(){this.constructor=a}e(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=d.seriesTypes.sma,p=g.extend,r=g.isArray,h=g.merge;g=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=
41
- void 0;a.options=void 0;a.points=void 0;return a}l(a,e);a.prototype.init=function(){d.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=h({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)};a.prototype.getValues=function(a,c){var b=c.period,e=c.standardDeviation,h=a.xData,y=(a=a.yData)?a.length:0,z=[],f=[],q=[],n;if(!(h.length<b)){var B=r(a[0]);for(n=b;n<=y;n++){var t=h.slice(n-b,n);var u=a.slice(n-b,n);var g=d.seriesTypes.sma.prototype.getValues.call(this,
42
- {xData:t,yData:u},c);t=g.xData[0];g=g.yData[0];for(var l=0,k=u.length,p=0;p<k;p++){var x=(B?u[p][c.index]:u[p])-g;l+=x*x}x=Math.sqrt(l/(k-1));u=g+e*x;x=g-e*x;z.push([t,u,g,x]);f.push(t);q.push([u,g,x])}return{values:z,xData:f,yData:q}}};a.defaultOptions=h(k.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}">\u25cf</span><b> {series.name}</b><br/>Top: {point.top}<br/>Middle: {point.middle}<br/>Bottom: {point.bottom}<br/>'},
43
- marker:{enabled:!1},dataGrouping:{approximation:"averages"}});return a}(k);p(g.prototype,{pointArrayMap:["top","middle","bottom"],pointValKey:"middle",nameComponents:["period","standardDeviation"],linesApiNames:["topLine","bottomLine"]});f.compose(g);d.registerSeriesType("bb",g);"";return g});v(f,"Stock/Indicators/CCI/CCIIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){function g(h){return h.reduce(function(e,a){return e+a},0)}var l=this&&this.__extends||function(){var h=
44
- function(e,a){h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return h(e,a)};return function(e,a){function b(){this.constructor=e}h(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),k=f.seriesTypes.sma,p=d.isArray,r=d.merge;d=function(h){function e(){var a=null!==h&&h.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}l(e,h);e.prototype.getValues=
45
- function(a,b){b=b.period;var c=a.xData,m=(a=a.yData)?a.length:0,e=[],h=1,d=[],z=[],f=[];if(!(c.length<=b)&&p(a[0])&&4===a[0].length){for(;h<b;){var q=a[h-1];e.push((q[1]+q[2]+q[3])/3);h++}for(h=b;h<=m;h++){q=a[h-1];q=(q[1]+q[2]+q[3])/3;var n=e.push(q);var B=e.slice(n-b);n=g(B)/b;var t,u=B.length,r=0;for(t=0;t<u;t++)r+=Math.abs(n-B[t]);B=r/b;q=(q-n)/(.015*B);d.push([c[h-1],q]);z.push(c[h-1]);f.push(q)}return{values:d,xData:z,yData:f}}};e.defaultOptions=r(k.defaultOptions,{params:{index:void 0}});return e}(k);
46
- f.registerSeriesType("cci",d);"";return d});v(f,"Stock/Indicators/CMF/CMFIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(f,h){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var b in a)a.hasOwnProperty(b)&&(e[b]=a[b])};return d(f,h)};return function(f,h){function e(){this.constructor=f}d(f,h);f.prototype=null===h?Object.create(h):(e.prototype=h.prototype,
47
- new e)}}(),l=f.seriesTypes.sma,k=d.merge;d=function(d){function f(){var h=null!==d&&d.apply(this,arguments)||this;h.data=void 0;h.options=void 0;h.points=void 0;h.volumeSeries=void 0;h.linkedParent=void 0;h.yData=void 0;h.nameBase="Chaikin Money Flow";return h}g(f,d);f.prototype.isValid=function(){var h=this.chart,e=this.options,a=this.linkedParent;h=this.volumeSeries||(this.volumeSeries=h.get(e.params.volumeSeriesID));var b=a&&a.yData&&4===a.yData[0].length;return!!(a&&h&&a.xData&&a.xData.length>=
48
- e.params.period&&h.xData&&h.xData.length>=e.params.period&&b)};f.prototype.getValues=function(h,e){if(this.isValid())return this.getMoneyFlow(h.xData,h.yData,this.volumeSeries.yData,e.period)};f.prototype.getMoneyFlow=function(h,e,a,b){function c(a,c){var b=a[1],m=a[2];a=a[3];return null!==c&&null!==b&&null!==m&&null!==a&&b!==m?(a-m-(b-a))/(b-m)*c:(B=n,null)}var m=e.length,w=[],d=0,y=0,z=[],f=[],q=[],n,B=-1;if(0<b&&b<=m){for(n=0;n<b;n++)w[n]=c(e[n],a[n]),d+=a[n],y+=w[n];z.push(h[n-1]);f.push(n-B>=
49
- b&&0!==d?y/d:null);for(q.push([z[0],f[0]]);n<m;n++){w[n]=c(e[n],a[n]);d-=a[n-b];d+=a[n];y-=w[n-b];y+=w[n];var t=[h[n],n-B>=b?y/d:null];z.push(t[0]);f.push(t[1]);q.push([t[0],t[1]])}}return{values:q,xData:z,yData:f}};f.defaultOptions=k(l.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume"}});return f}(l);f.registerSeriesType("cmf",d);"";return d});v(f,"Stock/Indicators/DMI/DMIIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],
50
- function(f,d,g){var l=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(b,c)};return function(b,c){function m(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(m.prototype=c.prototype,new m)}}(),k=d.seriesTypes.sma,p=g.correctFloat,r=g.extend,h=g.isArray,e=g.merge;g=function(a){function b(){var c=null!==a&&a.apply(this,arguments)||
51
- this;c.options=void 0;return c}l(b,a);b.prototype.calculateDM=function(a,b,e){var c=a[b][1],m=a[b][2],w=a[b-1][1];a=a[b-1][2];return p(c-w>a-m?e?Math.max(c-w,0):0:e?0:Math.max(a-m,0))};b.prototype.calculateDI=function(a,b){return a/b*100};b.prototype.calculateDX=function(a,b){return p(Math.abs(a-b)/Math.abs(a+b)*100)};b.prototype.smoothValues=function(a,b,e){return p(a-a/e+b)};b.prototype.getTR=function(a,b){return p(Math.max(a[1]-a[2],b?Math.abs(a[1]-b[3]):0,b?Math.abs(a[2]-b[3]):0))};b.prototype.getValues=
52
- function(a,b){b=b.period;var c=a.xData,m=(a=a.yData)?a.length:0,e=[],d=[],f=[];if(!(c.length<=b)&&h(a[0])&&4===a[0].length){var q=0,n=0,B=0,t;for(t=1;t<m;t++)if(t<=b){var u=this.calculateDM(a,t,!0);var g=this.calculateDM(a,t);var l=this.getTR(a[t],a[t-1]);q+=u;n+=g;B+=l;t===b&&(l=this.calculateDI(q,B),g=this.calculateDI(n,B),u=this.calculateDX(q,n),e.push([c[t],u,l,g]),d.push(c[t]),f.push([u,l,g]))}else u=this.calculateDM(a,t,!0),g=this.calculateDM(a,t),l=this.getTR(a[t],a[t-1]),q=this.smoothValues(q,
53
- u,b),n=this.smoothValues(n,g,b),B=this.smoothValues(B,l,b),l=this.calculateDI(q,B),g=this.calculateDI(n,B),u=this.calculateDX(q,n),e.push([c[t],u,l,g]),d.push(c[t]),f.push([u,l,g]);return{values:e,xData:d,yData:f}}};b.defaultOptions=e(k.defaultOptions,{params:{index:void 0},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color: {point.color}">\u25cf</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/>'},
54
- plusDILine:{styles:{lineWidth:1,lineColor:"#06b535"}},minusDILine:{styles:{lineWidth:1,lineColor:"#f21313"}},dataGrouping:{approximation:"averages"}});return b}(k);r(g.prototype,{nameBase:"DMI",linesApiNames:["plusDILine","minusDILine"],pointArrayMap:["y","plusDI","minusDI"],parallelArrays:["x","y","plusDI","minusDI"],pointValKey:"y"});f.compose(g);d.registerSeriesType("dmi",g);"";return g});v(f,"Stock/Indicators/DPO/DPOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,
55
- d){function g(a,b,c,m,w){b=e(b[c][m],b[c]);return w?h(a-b):h(a+b)}var l=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(b,c)};return function(b,c){function m(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(m.prototype=c.prototype,new m)}}(),k=f.seriesTypes.sma,p=d.extend,r=d.merge,h=d.correctFloat,e=d.pick;d=function(a){function b(){var c=
56
- null!==a&&a.apply(this,arguments)||this;c.options=void 0;c.data=void 0;c.points=void 0;return c}l(b,a);b.prototype.getValues=function(a,b){var c=b.period;b=b.index;var m=c+Math.floor(c/2+1),h=a.xData||[];a=a.yData||[];var d=a.length,f=[],q=[],n=[],B=0,t,u;if(!(h.length<=m)){for(t=0;t<c-1;t++)B=g(B,a,t,b);for(u=0;u<=d-m;u++){var l=u+c-1;t=u+m-1;B=g(B,a,l,b);l=e(a[t][b],a[t]);l-=B/c;B=g(B,a,u,b,!0);f.push([h[t],l]);q.push(h[t]);n.push(l)}return{values:f,xData:q,yData:n}}};b.defaultOptions=r(k.defaultOptions,
57
- {params:{index:0,period:21}});return b}(k);p(d.prototype,{nameBase:"DPO"});f.registerSeriesType("dpo",d);"";return d});v(f,"Stock/Indicators/Chaikin/ChaikinIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function m(){this.constructor=
58
- b}a(b,c);b.prototype=null===c?Object.create(c):(m.prototype=c.prototype,new m)}}(),l=f.seriesTypes,k=l.ad,p=l.ema,r=d.correctFloat;l=d.extend;var h=d.merge,e=d.error;d=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}g(b,a);b.prototype.getValues=function(a,b){var c=b.periods,m=b.period,h=[],d=[],f=[],q;if(2!==c.length||c[1]<=c[0])e('Error: "Chaikin requires two periods. Notice, first period should be lower than the second one."');
59
- else if(b=k.prototype.getValues.call(this,a,{volumeSeriesID:b.volumeSeriesID,period:m}))if(a=p.prototype.getValues.call(this,b,{period:c[0]}),b=p.prototype.getValues.call(this,b,{period:c[1]}),a&&b){c=c[1]-c[0];for(q=0;q<b.yData.length;q++)m=r(a.yData[q+c]-b.yData[q]),h.push([b.xData[q],m]),d.push(b.xData[q]),f.push(m);return{values:h,xData:d,yData:f}}};b.defaultOptions=h(p.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume",period:9,periods:[3,10]}});return b}(p);l(d.prototype,{nameBase:"Chaikin Osc",
60
- nameComponents:["periods"]});f.registerSeriesType("chaikin",d);"";return d});v(f,"Stock/Indicators/CMO/CMOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(h,e){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(h,e)};return function(h,e){function a(){this.constructor=h}d(h,e);h.prototype=null===e?Object.create(e):
61
- (a.prototype=e.prototype,new a)}}(),l=f.seriesTypes.sma,k=d.isNumber,p=d.merge;d=function(d){function h(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}g(h,d);h.prototype.getValues=function(e,a){var b=a.period,c=e.xData,m=e.yData;e=m?m.length:0;var d=[],h=[],f=[],z,g=a.index;if(!(c.length<b)){k(m[0])?a=m:(g=Math.min(g,m[0].length-1),a=m.map(function(a){return a[g]}));var q=0,n=m=0;for(z=b;0<z;z--)a[z]>a[z-1]?m+=a[z]-a[z-1]:a[z]<a[z-1]&&(n+=a[z-
62
- 1]-a[z]);q=0<m+n?100*(m-n)/(m+n):0;h.push(c[b]);f.push(q);d.push([c[b],q]);for(z=b+1;z<e;z++)q=Math.abs(a[z-b-1]-a[z-b]),a[z]>a[z-1]?m+=a[z]-a[z-1]:a[z]<a[z-1]&&(n+=a[z-1]-a[z]),a[z-b]>a[z-b-1]?m-=q:n-=q,q=0<m+n?100*(m-n)/(m+n):0,h.push(c[z]),f.push(q),d.push([c[z],q]);return{values:d,xData:h,yData:f}}};h.defaultOptions=p(l.defaultOptions,{params:{period:20,index:3}});return h}(l);f.registerSeriesType("cmo",d);"";return d});v(f,"Stock/Indicators/DEMA/DEMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],
63
- f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(e,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return d(e,a)};return function(e,a){function b(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.ema,k=d.correctFloat,p=d.isArray,r=d.merge;d=function(d){function e(){var a=null!==d&&d.apply(this,
64
- arguments)||this;a.EMApercent=void 0;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,d);e.prototype.getEMA=function(a,b,c,m,e,d){return l.prototype.calculateEma(d||[],a,"undefined"===typeof e?1:e,this.EMApercent,b,"undefined"===typeof m?-1:m,c)};e.prototype.getValues=function(a,b){var c=b.period,m=2*c,e=a.xData,d=(a=a.yData)?a.length:0,h=-1,f=[],g=[],q=[],n=0,B=[],t;this.EMApercent=2/(c+1);if(!(d<2*c-1)){p(a[0])&&(h=b.index?b.index:0);b=l.prototype.accumulatePeriodPoints(c,h,a);var u=
65
- b/c;b=0;for(t=c;t<d+2;t++){t<d+1&&(n=this.getEMA(a,r,u,h,t)[1],B.push(n));var r=n;if(t<m)b+=n;else{t===m&&(u=b/c);n=B[t-c-1];var J=this.getEMA([n],J,u)[1];var x=[e[t-2],k(2*n-J)];f.push(x);g.push(x[0]);q.push(x[1])}}return{values:f,xData:g,yData:q}}};e.defaultOptions=r(l.defaultOptions);return e}(l);f.registerSeriesType("dema",d);"";return d});v(f,"Stock/Indicators/TEMA/TEMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=
66
- function(e,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return d(e,a)};return function(e,a){function b(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.ema,k=d.correctFloat,p=d.isArray,r=d.merge;d=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.EMApercent=void 0;a.data=void 0;a.options=void 0;a.points=
67
- void 0;return a}g(e,d);e.prototype.getEMA=function(a,b,c,m,e,d){return l.prototype.calculateEma(d||[],a,"undefined"===typeof e?1:e,this.EMApercent,b,"undefined"===typeof m?-1:m,c)};e.prototype.getTemaPoint=function(a,b,c,m){return[a[m-3],k(3*c.level1-3*c.level2+c.level3)]};e.prototype.getValues=function(a,b){var c=b.period,m=2*c,e=3*c,d=a.xData,h=(a=a.yData)?a.length:0,f=-1,g=[],q=[],n=[],B=[],t=[],u,r,k={};this.EMApercent=2/(c+1);if(!(h<3*c-2)){p(a[0])&&(f=b.index?b.index:0);b=l.prototype.accumulatePeriodPoints(c,
68
- f,a);var x=b/c;b=0;for(u=c;u<h+3;u++){u<h+1&&(k.level1=this.getEMA(a,F,x,f,u)[1],B.push(k.level1));var F=k.level1;if(u<m)b+=k.level1;else{u===m&&(x=b/c,b=0);k.level1=B[u-c-1];k.level2=this.getEMA([k.level1],P,x)[1];t.push(k.level2);var P=k.level2;if(u<e)b+=k.level2;else{u===e&&(x=b/c);u===h+1&&(k.level1=B[u-c-1],k.level2=this.getEMA([k.level1],P,x)[1],t.push(k.level2));k.level1=B[u-c-2];k.level2=t[u-2*c-1];k.level3=this.getEMA([k.level2],k.prevLevel3,x)[1];if(r=this.getTemaPoint(d,e,k,u))g.push(r),
69
- q.push(r[0]),n.push(r[1]);k.prevLevel3=k.level3}}}return{values:g,xData:q,yData:n}}};e.defaultOptions=r(l.defaultOptions);return e}(l);f.registerSeriesType("tema",d);"";return d});v(f,"Stock/Indicators/TRIX/TRIXIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(h,e){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=
70
- b[c])};return d(h,e)};return function(h,e){function a(){this.constructor=h}d(h,e);h.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),l=f.seriesTypes.tema,k=d.correctFloat,p=d.merge;d=function(d){function h(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}g(h,d);h.prototype.getTemaPoint=function(e,a,b,c){if(c>a)return[e[c-3],0!==b.prevLevel3?k(b.level3-b.prevLevel3)/b.prevLevel3*100:null]};h.defaultOptions=p(l.defaultOptions);
71
- return h}(l);f.registerSeriesType("trix",d);"";return d});v(f,"Stock/Indicators/APO/APOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(e,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return d(e,a)};return function(e,a){function b(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(b.prototype=
72
- a.prototype,new b)}}(),l=f.seriesTypes.ema,k=d.extend,p=d.merge,r=d.error;d=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,d);e.prototype.getValues=function(a,b){var c=b.periods,m=b.index;b=[];var e=[],d=[],h;if(2!==c.length||c[1]<=c[0])r('Error: "APO requires two periods. Notice, first period should be lower than the second one."');else{var f=l.prototype.getValues.call(this,a,{index:m,period:c[0]});a=l.prototype.getValues.call(this,
73
- a,{index:m,period:c[1]});if(f&&a){c=c[1]-c[0];for(h=0;h<a.yData.length;h++)m=f.yData[h+c]-a.yData[h],b.push([a.xData[h],m]),e.push(a.xData[h]),d.push(m);return{values:b,xData:e,yData:d}}}};e.defaultOptions=p(l.defaultOptions,{params:{period:void 0,periods:[10,20]}});return e}(l);k(d.prototype,{nameBase:"APO",nameComponents:["periods"]});f.registerSeriesType("apo",d);"";return d});v(f,"Stock/Indicators/IKH/IKHIndicator.js",[f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],
74
- f["Core/Utilities.js"]],function(f,d,g,l){function k(a){return a.reduce(function(a,b){return Math.max(a,b[1])},-Infinity)}function p(a){return a.reduce(function(a,b){return Math.min(a,b[2])},Infinity)}function r(a){return{high:k(a),low:p(a)}}function h(a){var b,c,m,e,d;a.series.forEach(function(a){if(a.xData)for(e=a.xData,d=c=a.xIncrement?1:e.length-1;0<d;d--)if(m=e[d]-e[d-1],"undefined"===typeof b||m<b)b=m});return b}function e(a,b,c,m){if(a&&b&&c&&m){var e=b.plotX-a.plotX;b=b.plotY-a.plotY;var d=
75
- m.plotX-c.plotX;m=m.plotY-c.plotY;var h=a.plotX-c.plotX,w=a.plotY-c.plotY;c=(-b*h+e*w)/(-d*b+e*m);d=(d*w-m*h)/(-d*b+e*m);if(0<=c&&1>=c&&0<=d&&1>=d)return{plotX:a.plotX+d*e,plotY:a.plotY+d*b}}return!1}function a(a){var b=a.indicator;b.points=a.points;b.nextPoints=a.nextPoints;b.color=a.color;b.options=z(a.options.senkouSpan.styles,a.gap);b.graph=a.graph;b.fillGraph=!0;g.seriesTypes.sma.prototype.drawGraph.call(b)}var b=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof
76
- Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function m(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(m.prototype=c.prototype,new m)}}(),c=f.parse,m=g.seriesTypes.sma,w=l.defined;f=l.extend;var A=l.isArray,y=l.isNumber,z=l.merge,S=l.objectEach;d.approximations["ichimoku-averages"]=function(){var a=[],b;[].forEach.call(arguments,function(c,m){a.push(d.approximations.average(c));b=!b&&"undefined"===
77
- typeof a[m]});return b?void 0:a};l=function(d){function f(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;a.graphCollection=void 0;a.graphsenkouSpan=void 0;a.ikhMap=void 0;a.nextPoints=void 0;return a}b(f,d);f.prototype.init=function(){g.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=z({tenkanLine:{styles:{lineColor:this.color}},kijunLine:{styles:{lineColor:this.color}},chikouLine:{styles:{lineColor:this.color}},senkouSpanA:{styles:{lineColor:this.color,
78
- fill:c(this.color).setOpacity(.5).get()}},senkouSpanB:{styles:{lineColor:this.color,fill:c(this.color).setOpacity(.5).get()}},senkouSpan:{styles:{fill:c(this.color).setOpacity(.2).get()}}},this.options)};f.prototype.toYData=function(a){return[a.tenkanSen,a.kijunSen,a.chikouSpan,a.senkouSpanA,a.senkouSpanB]};f.prototype.translate=function(){var a=this;g.seriesTypes.sma.prototype.translate.apply(a);a.points.forEach(function(b){a.pointArrayMap.forEach(function(c){var m=b[c];y(m)&&(b["plot"+c]=a.yAxis.toPixels(m,
79
- !0),b.plotY=b["plot"+c],b.tooltipPos=[b.plotX,b["plot"+c]],b.isNull=!1)})})};f.prototype.drawGraph=function(){var b=this,c=b.points,m=c.length,d=b.options,h=b.graph,f=b.color,y={options:{gapSize:d.gapSize}},A=b.pointArrayMap.length,q=[[],[],[],[],[],[]],n={tenkanLine:q[0],kijunLine:q[1],chikouLine:q[2],senkouSpanA:q[3],senkouSpanB:q[4],senkouSpan:q[5]},l=[],k=b.options.senkouSpan,r=k.color||k.styles.fill,p=k.negativeColor,x=[[],[]],v=[[],[]],Q=0,K,R,N;for(b.ikhMap=n;m--;){var D=c[m];for(K=0;K<A;K++)k=
80
- b.pointArrayMap[K],w(D[k])&&q[K].push({plotX:D.plotX,plotY:D["plot"+k],isNull:!1});p&&m!==c.length-1&&(k=n.senkouSpanB.length-1,D=e(n.senkouSpanA[k-1],n.senkouSpanA[k],n.senkouSpanB[k-1],n.senkouSpanB[k]),K={plotX:D.plotX,plotY:D.plotY,isNull:!1,intersectPoint:!0},D&&(n.senkouSpanA.splice(k,0,K),n.senkouSpanB.splice(k,0,K),l.push(k)))}S(n,function(a,c){d[c]&&"senkouSpan"!==c&&(b.points=q[Q],b.options=z(d[c].styles,y),b.graph=b["graph"+c],b.fillGraph=!1,b.color=f,g.seriesTypes.sma.prototype.drawGraph.call(b),
81
- b["graph"+c]=b.graph);Q++});b.graphCollection&&b.graphCollection.forEach(function(a){b[a].destroy();delete b[a]});b.graphCollection=[];if(p&&n.senkouSpanA[0]&&n.senkouSpanB[0]){l.unshift(0);l.push(n.senkouSpanA.length-1);for(A=0;A<l.length-1;A++){k=l[A];D=l[A+1];m=n.senkouSpanB.slice(k,D+1);k=n.senkouSpanA.slice(k,D+1);if(1<=Math.floor(m.length/2))if(D=Math.floor(m.length/2),m[D].plotY===k[D].plotY){for(N=K=D=0;N<m.length;N++)D+=m[N].plotY,K+=k[N].plotY;D=D>K?0:1}else D=m[D].plotY>k[D].plotY?0:1;
82
- else D=m[0].plotY>k[0].plotY?0:1;x[D]=x[D].concat(m);v[D]=v[D].concat(k)}["graphsenkouSpanColor","graphsenkouSpanNegativeColor"].forEach(function(c,m){x[m].length&&v[m].length&&(R=0===m?r:p,a({indicator:b,points:x[m],nextPoints:v[m],color:R,options:d,gap:y,graph:b[c]}),b[c]=b.graph,b.graphCollection.push(c))})}else a({indicator:b,points:n.senkouSpanB,nextPoints:n.senkouSpanA,color:r,options:d,gap:y,graph:b.graphsenkouSpan}),b.graphsenkouSpan=b.graph;delete b.nextPoints;delete b.fillGraph;b.points=
83
- c;b.options=d;b.graph=h;b.color=f};f.prototype.getGraphPath=function(a){var b=[],c;a=a||this.points;if(this.fillGraph&&this.nextPoints){if((c=g.seriesTypes.sma.prototype.getGraphPath.call(this,this.nextPoints))&&c.length){c[0][0]="L";b=g.seriesTypes.sma.prototype.getGraphPath.call(this,a);c=c.slice(0,b.length);for(var m=c.length-1;0<=m;m--)b.push(c[m])}}else b=g.seriesTypes.sma.prototype.getGraphPath.apply(this,arguments);return b};f.prototype.getValues=function(a,b){var c=b.period,m=b.periodTenkan;
84
- b=b.periodSenkouSpanB;var e=a.xData,d=a.yData,f=d&&d.length||0;a=h(a.xAxis);var w=[],y=[],n;if(!(e.length<=c)&&A(d[0])&&4===d[0].length){var q=e[0]-c*a;for(n=0;n<c;n++)y.push(q+n*a);for(n=0;n<f;n++){if(n>=m){var z=d.slice(n-m,n);z=r(z);z=(z.high+z.low)/2}if(n>=c){var g=d.slice(n-c,n);g=r(g);g=(g.high+g.low)/2;var t=(z+g)/2}if(n>=b){var k=d.slice(n-b,n);k=r(k);k=(k.high+k.low)/2}q=d[n][3];var l=e[n];"undefined"===typeof w[n]&&(w[n]=[]);"undefined"===typeof w[n+c]&&(w[n+c]=[]);w[n+c][0]=z;w[n+c][1]=
85
- g;w[n+c][2]=void 0;w[n][2]=q;n<=c&&(w[n+c][3]=void 0,w[n+c][4]=void 0);"undefined"===typeof w[n+2*c]&&(w[n+2*c]=[]);w[n+2*c][3]=t;w[n+2*c][4]=k;y.push(l)}for(n=1;n<=c;n++)y.push(l+n*a);return{values:w,xData:y,yData:w}}};f.defaultOptions=z(m.defaultOptions,{params:{index:void 0,period:26,periodTenkan:9,periodSenkouSpanB:52},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</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/>'},
86
- 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"}});return f}(m);f(l.prototype,{pointArrayMap:["tenkanSen","kijunSen","chikouSpan","senkouSpanA","senkouSpanB"],pointValKey:"tenkanSen",nameComponents:["periodSenkouSpanB",
87
- "period","periodTenkan"]});g.registerSeriesType("ikh",l);"";return l});v(f,"Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=this&&this.__extends||function(){var e=function(a,b){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return e(a,b)};return function(a,
88
- b){function c(){this.constructor=a}e(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=d.seriesTypes.sma,p=g.correctFloat,r=g.extend,h=g.merge;g=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}l(a,e);a.prototype.init=function(){d.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=h({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)};
89
- a.prototype.getValues=function(a,c){var b=c.period,e=c.periodATR,h=c.multiplierATR,f=a.yData;f=f?f.length:0;var z=[];c=d.seriesTypes.ema.prototype.getValues(a,{period:b,index:c.index});var g=d.seriesTypes.atr.prototype.getValues(a,{period:e}),q=[],n=[],k;if(!(f<b)){for(k=b;k<=f;k++){var t=c.values[k-b];var l=g.values[k-e];var r=t[0];a=p(t[1]+h*l[1]);l=p(t[1]-h*l[1]);t=t[1];z.push([r,a,t,l]);q.push(r);n.push([a,t,l])}return{values:z,xData:q,yData:n}}};a.defaultOptions=h(k.defaultOptions,{params:{index:0,
90
- 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}">\u25cf</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});return a}(k);r(g.prototype,{nameBase:"Keltner Channels",nameComponents:["period",
91
- "periodATR","multiplierATR"],linesApiNames:["topLine","bottomLine"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});f.compose(g);d.registerSeriesType("keltnerchannels",g);"";return g});v(f,"Stock/Indicators/Klinger/KlingerIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,
92
- b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function m(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(m.prototype=c.prototype,new m)}}(),k=d.seriesTypes,p=k.sma,r=k.ema,h=g.correctFloat,e=g.error;k=g.extend;var a=g.isArray,b=g.merge;g=function(c){function m(){var a=null!==c&&c.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;a.volumeSeries=void 0;return a}l(m,c);m.prototype.calculateTrend=
93
- function(a,b){return a[b][1]+a[b][2]+a[b][3]>a[b-1][1]+a[b-1][2]+a[b-1][3]?1:-1};m.prototype.isValidData=function(b){var c=this.chart,m=this.options,d=this.linkedParent;b=a(b)&&4===b.length;(c=this.volumeSeries||(this.volumeSeries=c.get(m.params.volumeSeriesID)))||e("Series "+m.params.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,d.chart);return!(![d,c].every(function(a){return a&&a.xData&&a.xData.length>=m.params.slowAvgPeriod})||!b)};m.prototype.getCM=function(a,b,c,m,e){return h(b+(c===
94
- m?a:e))};m.prototype.getDM=function(a,b){return h(a-b)};m.prototype.getVolumeForce=function(a){var b=[],c=1;var m=0;var e=a[0][1]-a[0][2];var d=0;for(c;c<a.length;c++){var h=this.calculateTrend(a,c);var f=this.getDM(a[c][1],a[c][2]);m=this.getCM(m,f,h,d,e);d=this.volumeSeries.yData[c]*h*Math.abs(2*(f/m-1))*100;b.push([d]);d=h;e=f}return b};m.prototype.getEMA=function(a,b,c,m,e,d,h){return r.prototype.calculateEma(h||[],a,"undefined"===typeof d?1:d,m,b,"undefined"===typeof e?-1:e,c)};m.prototype.getSMA=
95
- function(a,b,c){return r.prototype.accumulatePeriodPoints(a,b,c)/a};m.prototype.getValues=function(a,b){var c=[],m=a.xData;a=a.yData;var e=[],d=[],f=[],w,g=0,k=0,l=void 0,A=void 0,r=null;if(this.isValidData(a[0])){var p=this.getVolumeForce(a),x=this.getSMA(b.fastAvgPeriod,0,p),C=this.getSMA(b.slowAvgPeriod,0,p),M=2/(b.fastAvgPeriod+1),v=2/(b.slowAvgPeriod+1);for(g;g<a.length;g++)g>=b.fastAvgPeriod&&(l=k=this.getEMA(p,l,x,M,0,g,m)[1]),g>=b.slowAvgPeriod&&(A=w=this.getEMA(p,A,C,v,0,g,m)[1],w=h(k-w),
96
- f.push(w),f.length>=b.signalPeriod&&(r=f.slice(-b.signalPeriod).reduce(function(a,b){return a+b})/b.signalPeriod),c.push([m[g],w,r]),e.push(m[g]),d.push([w,r]));return{values:c,xData:e,yData:d}}};m.defaultOptions=b(p.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}">\u25cf</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/>'}});
97
- return m}(p);k(g.prototype,{linesApiNames:["signalLine"],nameBase:"Klinger",nameComponents:["fastAvgPeriod","slowAvgPeriod"],pointArrayMap:["y","signal"],parallelArrays:["x","y","signal"],pointValKey:"y"});f.compose(g);d.registerSeriesType("klinger",g);"";return g});v(f,"Stock/Indicators/MACD/MACDIndicator.js",[f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=this&&this.__extends||function(){var a=function(b,m){a=Object.setPrototypeOf||{__proto__:[]}instanceof
98
- Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,m)};return function(b,m){function c(){this.constructor=b}a(b,m);b.prototype=null===m?Object.create(m):(c.prototype=m.prototype,new c)}}(),k=f.noop,p=d.seriesTypes.sma,r=g.extend,h=g.correctFloat,e=g.defined,a=g.merge;g=function(b){function c(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;a.currentLineZone=void 0;a.graphmacd=void 0;a.graphsignal=
99
- void 0;a.macdZones=void 0;a.signalZones=void 0;return a}l(c,b);c.prototype.init=function(){d.seriesTypes.sma.prototype.init.apply(this,arguments);this.options&&(this.options=a({signalLine:{styles:{lineColor:this.color}},macdLine:{styles:{color:this.color}}},this.options),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.resetZones=!0)};c.prototype.toYData=function(a){return[a.y,
100
- a.signal,a.MACD]};c.prototype.translate=function(){var a=this,b=["plotSignal","plotMACD"];f.seriesTypes.column.prototype.translate.apply(a);a.points.forEach(function(c){[c.signal,c.MACD].forEach(function(m,e){null!==m&&(c[b[e]]=a.yAxis.toPixels(m,!0))})})};c.prototype.destroy=function(){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)};c.prototype.drawGraph=
101
- function(){for(var b=this,c=b.points,h=c.length,f=b.options,g=b.zones,k={options:{gapSize:f.gapSize}},q=[[],[]],n;h--;)n=c[h],e(n.plotMACD)&&q[0].push({plotX:n.plotX,plotY:n.plotMACD,isNull:!e(n.plotMACD)}),e(n.plotSignal)&&q[1].push({plotX:n.plotX,plotY:n.plotSignal,isNull:!e(n.plotMACD)});["macd","signal"].forEach(function(c,m){b.points=q[m];b.options=a(f[c+"Line"].styles,k);b.graph=b["graph"+c];b.currentLineZone=c+"Zones";b.zones=b[b.currentLineZone].zones;d.seriesTypes.sma.prototype.drawGraph.call(b);
102
- b["graph"+c]=b.graph});b.points=c;b.options=f;b.zones=g;b.currentLineZone=null};c.prototype.getZonesGraphs=function(a){var c=b.prototype.getZonesGraphs.call(this,a),m=c;this.currentLineZone&&(m=c.splice(this[this.currentLineZone].startIndex+1),m.length?m.splice(0,0,a[0]):m=[a[0]]);return m};c.prototype.applyZones=function(){var a=this.zones;this.zones=this.signalZones.zones;d.seriesTypes.sma.prototype.applyZones.call(this);this.graphmacd&&this.options.macdLine.zones.length&&this.graphmacd.hide();
103
- this.zones=a};c.prototype.getValues=function(a,b){var c=b.longPeriod-b.shortPeriod,m=0,f=[],g=[],w=[];if(!(a.xData.length<b.longPeriod+b.signalPeriod)){var n=d.seriesTypes.ema.prototype.getValues(a,{period:b.shortPeriod,index:b.index});var k=d.seriesTypes.ema.prototype.getValues(a,{period:b.longPeriod,index:b.index});n=n.values;k=k.values;for(a=0;a<=n.length;a++)e(k[a])&&e(k[a][1])&&e(n[a+c])&&e(n[a+c][0])&&f.push([n[a+c][0],0,null,n[a+c][1]-k[a][1]]);for(a=0;a<f.length;a++)g.push(f[a][0]),w.push([0,
104
- null,f[a][3]]);b=d.seriesTypes.ema.prototype.getValues({xData:g,yData:w},{period:b.signalPeriod,index:2});b=b.values;for(a=0;a<f.length;a++)f[a][0]>=b[0][0]&&(f[a][2]=b[m][1],w[a]=[0,b[m][1],f[a][3]],null===f[a][3]?(f[a][1]=0,w[a][0]=0):(f[a][1]=h(f[a][3]-b[m][1]),w[a][0]=h(f[a][3]-b[m][1])),m++);return{values:f,xData:g,yData:w}}};c.defaultOptions=a(p.defaultOptions,{params:{shortPeriod:12,longPeriod:26,signalPeriod:9,period:26},signalLine:{zones:[],styles:{lineWidth:1,lineColor:void 0}},macdLine:{zones:[],
105
- 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}">\u25cf</span> <b> {series.name}</b><br/>Value: {point.MACD}<br/>Signal: {point.signal}<br/>Histogram: {point.y}<br/>'},dataGrouping:{approximation:"averages"},minPointLength:0});return c}(p);r(g.prototype,{nameComponents:["longPeriod","shortPeriod","signalPeriod"],pointArrayMap:["y","signal","MACD"],parallelArrays:["x","y",
106
- "signal","MACD"],pointValKey:"y",markerAttribs:k,getColumnMetrics:f.seriesTypes.column.prototype.getColumnMetrics,crispCol:f.seriesTypes.column.prototype.crispCol,drawPoints:f.seriesTypes.column.prototype.drawPoints});d.registerSeriesType("macd",g);"";return g});v(f,"Stock/Indicators/MFI/MFIIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){function g(a){return a.reduce(function(a,b){return a+b})}function l(a){return(a[1]+a[2]+a[3])/3}var k=this&&this.__extends||
107
- function(){var a=function(b,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,e)};return function(b,e){function c(){this.constructor=b}a(b,e);b.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}(),p=f.seriesTypes.sma,r=d.extend,h=d.merge,e=d.error,a=d.isArray;d=function(b){function c(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=
108
- void 0;return a}k(c,b);c.prototype.getValues=function(b,c){var m=c.period,d=b.xData,h=b.yData,f=h?h.length:0,q=c.decimals,n=1,w=b.chart.get(c.volumeSeriesID),k=w&&w.yData,u=[],r=[],p=[],x=[],F=[];if(!w)e("Series "+c.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,b.chart);else if(!(d.length<=m)&&a(h[0])&&4===h[0].length&&k){for(b=l(h[n]);n<m+1;)c=b,b=l(h[n]),c=b>=c,w=b*k[n],x.push(c?w:0),F.push(c?0:w),n++;for(m=n-1;m<f;m++)m>n-1&&(x.shift(),F.shift(),c=b,b=l(h[m]),c=b>c,w=b*k[m],x.push(c?
109
- w:0),F.push(c?0:w)),c=g(F),w=g(x),c=w/c,c=parseFloat((100-100/(1+c)).toFixed(q)),u.push([d[m],c]),r.push(d[m]),p.push(c);return{values:u,xData:r,yData:p}}};c.defaultOptions=h(p.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume",decimals:4}});return c}(p);r(d.prototype,{nameBase:"Money Flow Index"});f.registerSeriesType("mfi",d);"";return d});v(f,"Stock/Indicators/Momentum/MomentumIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||
110
- function(){var d=function(e,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return d(e,a)};return function(e,a){function b(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,k=d.extend,p=d.isArray,r=d.merge;d=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;
111
- return a}g(e,d);e.prototype.getValues=function(a,b){var c=b.period;b=b.index;var e=a.xData,d=(a=a.yData)?a.length:0,h=[],f=[],g=[],k;if(!(e.length<=c)&&p(a[0])){for(k=c+1;k<d;k++){var q=[e[k-1],a[k-1][b]-a[k-c-1][b]];h.push(q);f.push(q[0]);g.push(q[1])}q=[e[k-1],a[k-1][b]-a[k-c-1][b]];h.push(q);f.push(q[0]);g.push(q[1]);return{values:h,xData:f,yData:g}}};e.defaultOptions=r(l.defaultOptions,{params:{index:3}});return e}(l);k(d.prototype,{nameBase:"Momentum"});f.registerSeriesType("momentum",d);"";
112
- return d});v(f,"Stock/Indicators/NATR/NATRIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(f,h){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var b in a)a.hasOwnProperty(b)&&(e[b]=a[b])};return d(f,h)};return function(f,h){function e(){this.constructor=f}d(f,h);f.prototype=null===h?Object.create(h):(e.prototype=h.prototype,new e)}}(),l=f.seriesTypes.atr,
113
- k=d.merge;d=function(d){function f(){var f=null!==d&&d.apply(this,arguments)||this;f.data=void 0;f.points=void 0;f.options=void 0;return f}g(f,d);f.prototype.getValues=function(d,e){var a=l.prototype.getValues.apply(this,arguments),b=a.values.length,c=e.period-1,m=d.yData,f=0;if(a){for(;f<b;f++)a.yData[f]=a.values[f][1]/m[c][3]*100,a.values[f][1]=a.yData[f],c++;return a}};f.defaultOptions=k(l.defaultOptions,{tooltip:{valueSuffix:"%"}});return f}(l);f.registerSeriesType("natr",d);"";return d});v(f,
114
- "Stock/Indicators/OBV/OBVIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var e=function(a,b){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return e(a,b)};return function(a,b){function c(){this.constructor=a}e(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),l=f.seriesTypes.sma,k=d.isNumber,
115
- p=d.error,r=d.extend,h=d.merge;d=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}g(a,e);a.prototype.getValues=function(a,c){var b=a.chart.get(c.volumeSeriesID),e=a.xData,d=a.yData,f=[],h=[],g=[],q=!k(d[0]),n=1,l=0;if(b){b=b.yData;a=[e[0],l];var t=q?d[0][3]:d[0];f.push(a);h.push(e[0]);g.push(a[1]);for(n;n<d.length;n++)c=q?d[n][3]:d[n],l=c>t?l+b[n]:c===t?l:l-b[n],a=[e[n],l],t=c,f.push(a),h.push(e[n]),g.push(a[1]);return{values:f,
116
- xData:h,yData:g}}p("Series "+c.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,a.chart)};a.defaultOptions=h(l.defaultOptions,{marker:{enabled:!1},params:{index:void 0,period:void 0,volumeSeriesID:"volume"},tooltip:{valueDecimals:0}});return a}(l);r(d.prototype,{nameComponents:void 0});f.registerSeriesType("obv",d);"";return d});v(f,"Stock/Indicators/PivotPoints/PivotPointsPoint.js",[f["Core/Series/SeriesRegistry.js"]],function(f){function d(d,g){var k=d.series.pointArrayMap,l=k.length;for(f.seriesTypes.sma.prototype.pointClass.prototype[g].call(d);l--;)g=
117
- "dataLabel"+k[l],d[g]&&d[g].element&&d[g].destroy(),d[g]=null}var g=this&&this.__extends||function(){var d=function(f,g){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var e in f)f.hasOwnProperty(e)&&(d[e]=f[e])};return d(f,g)};return function(f,g){function k(){this.constructor=f}d(f,g);f.prototype=null===g?Object.create(g):(k.prototype=g.prototype,new k)}}();return function(f){function k(){var d=null!==f&&f.apply(this,arguments)||this;d.P=
118
- void 0;d.pivotLine=void 0;d.series=void 0;return d}g(k,f);k.prototype.destroyElements=function(){d(this,"destroyElements")};k.prototype.destroy=function(){d(this,"destroyElements")};return k}(f.seriesTypes.sma.prototype.pointClass)});v(f,"Stock/Indicators/PivotPoints/PivotPointsIndicator.js",[f["Stock/Indicators/PivotPoints/PivotPointsPoint.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||
119
- {__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),k=d.seriesTypes.sma,p=g.merge,r=g.extend,h=g.defined,e=g.isArray;g=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;b.endPoint=void 0;b.plotEndPoint=void 0;return b}
120
- l(b,a);b.prototype.toYData=function(a){return[a.P]};b.prototype.translate=function(){var a=this;d.seriesTypes.sma.prototype.translate.apply(a);a.points.forEach(function(b){a.pointArrayMap.forEach(function(c){h(b[c])&&(b["plot"+c]=a.yAxis.toPixels(b[c],!0))})});a.plotEndPoint=a.xAxis.toPixels(a.endPoint,!0)};b.prototype.getGraphPath=function(a){for(var b=this,c=a.length,e=[[],[],[],[],[],[],[],[],[]],f=[],g=b.plotEndPoint,k=b.pointArrayMap.length,q,n,l;c--;){n=a[c];for(l=0;l<k;l++)q=b.pointArrayMap[l],
121
- h(n[q])&&e[l].push({plotX:n.plotX,plotY:n["plot"+q],isNull:!1},{plotX:g,plotY:n["plot"+q],isNull:!1},{plotX:g,plotY:null,isNull:!0});g=n.plotX}e.forEach(function(a){f=f.concat(d.seriesTypes.sma.prototype.getGraphPath.call(b,a))});return f};b.prototype.drawDataLabels=function(){var a=this,b=a.pointArrayMap,e,f,h;if(a.options.dataLabels.enabled){var g=a.points.length;b.concat([!1]).forEach(function(c,m){for(h=g;h--;)f=a.points[h],c?(f.y=f[c],f.pivotLine=c,f.plotY=f["plot"+c],e=f["dataLabel"+c],m&&(f["dataLabel"+
122
- b[m-1]]=f.dataLabel),f.dataLabels||(f.dataLabels=[]),f.dataLabels[0]=f.dataLabel=e=e&&e.element?e:null):f["dataLabel"+b[m-1]]=f.dataLabel;d.seriesTypes.sma.prototype.drawDataLabels.apply(a,arguments)})}};b.prototype.getValues=function(a,b){var c=b.period,d=a.xData,m=(a=a.yData)?a.length:0;b=this[b.algorithm+"Placement"];var f=[],h=[],g=[],n;if(!(d.length<c)&&e(a[0])&&4===a[0].length){for(n=c+1;n<=m+c;n+=c){var k=d.slice(n-c-1,n);var l=a.slice(n-c-1,n);var u=k.length;var r=k[u-1];l=this.getPivotAndHLC(l);
123
- l=b(l);l=f.push([r].concat(l));h.push(r);g.push(f[l-1].slice(1))}this.endPoint=k[0]+(r-k[0])/u*c;return{values:f,xData:h,yData:g}}};b.prototype.getPivotAndHLC=function(a){var b=-Infinity,c=Infinity,e=a[a.length-1][3];a.forEach(function(a){b=Math.max(b,a[1]);c=Math.min(c,a[2])});return[(b+c+e)/3,b,c,e]};b.prototype.standardPlacement=function(a){var b=a[1]-a[2];return[null,null,a[0]+b,2*a[0]-a[2],a[0],2*a[0]-a[1],a[0]-b,null,null]};b.prototype.camarillaPlacement=function(a){var b=a[1]-a[2];return[a[3]+
124
- 1.5*b,a[3]+1.25*b,a[3]+1.1666*b,a[3]+1.0833*b,a[0],a[3]-1.0833*b,a[3]-1.1666*b,a[3]-1.25*b,a[3]-1.5*b]};b.prototype.fibonacciPlacement=function(a){var b=a[1]-a[2];return[null,a[0]+b,a[0]+.618*b,a[0]+.382*b,a[0],a[0]-.382*b,a[0]-.618*b,a[0]-b,null]};b.defaultOptions=p(k.defaultOptions,{params:{index:void 0,period:28,algorithm:"standard"},marker:{enabled:!1},enableMouseTracking:!1,dataLabels:{enabled:!0,format:"{point.pivotLine}"},dataGrouping:{approximation:"averages"}});return b}(k);r(g.prototype,
125
- {nameBase:"Pivot Points",pointArrayMap:"R4 R3 R2 R1 P S1 S2 S3 S4".split(" "),pointValKey:"P",pointClass:f});d.registerSeriesType("pivotpoints",g);"";return g});v(f,"Stock/Indicators/PPO/PPOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var e=function(a,b){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return e(a,b)};
126
- return function(a,b){function c(){this.constructor=a}e(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),l=f.seriesTypes.ema,k=d.correctFloat,p=d.extend,r=d.merge,h=d.error;d=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(a,e);a.prototype.getValues=function(a,c){var b=c.periods,e=c.index;c=[];var d=[],f=[],g;if(2!==b.length||b[1]<=b[0])h('Error: "PPO requires two periods. Notice, first period should be lower than the second one."');
127
- else{var r=l.prototype.getValues.call(this,a,{index:e,period:b[0]});a=l.prototype.getValues.call(this,a,{index:e,period:b[1]});if(r&&a){b=b[1]-b[0];for(g=0;g<a.yData.length;g++)e=k((r.yData[g+b]-a.yData[g])/a.yData[g]*100),c.push([a.xData[g],e]),d.push(a.xData[g]),f.push(e);return{values:c,xData:d,yData:f}}}};a.defaultOptions=r(l.defaultOptions,{params:{period:void 0,periods:[12,26]}});return a}(l);p(d.prototype,{nameBase:"PPO",nameComponents:["periods"]});f.registerSeriesType("ppo",d);"";return d});
128
- v(f,"Stock/Indicators/ArrayUtilities.js",[],function(){return{getArrayExtremes:function(f,d,g){return f.reduce(function(f,k){return[Math.min(f[0],k[d]),Math.max(f[1],k[g])]},[Number.MAX_VALUE,-Number.MAX_VALUE])}}});v(f,"Stock/Indicators/PC/PCIndicator.js",[f["Stock/Indicators/ArrayUtilities.js"],f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Color/Palettes.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g,l,k){var p=this&&this.__extends||function(){var a=function(b,
129
- c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),r=l.seriesTypes.sma,h=k.merge;k=k.extend;var e=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}p(b,a);b.prototype.getValues=
130
- function(a,b){b=b.period;var c=a.xData,e=(a=a.yData)?a.length:0,d=[],m=[],h=[],g;if(!(e<b)){for(g=b;g<=e;g++){var n=c[g-1];var k=a.slice(g-b,g);var l=f.getArrayExtremes(k,2,1);k=l[1];var u=l[0];l=(k+u)/2;d.push([n,k,l,u]);m.push(n);h.push([k,l,u])}return{values:d,xData:m,yData:h}}};b.defaultOptions=h(r.defaultOptions,{params:{index:void 0,period:20},lineWidth:1,topLine:{styles:{lineColor:g.colors[2],lineWidth:1}},bottomLine:{styles:{lineColor:g.colors[8],lineWidth:1}},dataGrouping:{approximation:"averages"}});
131
- return b}(r);k(e.prototype,{nameBase:"Price Channel",nameComponents:["period"],linesApiNames:["topLine","bottomLine"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});d.compose(e);l.registerSeriesType("pc",e);"";return e});v(f,"Stock/Indicators/PriceEnvelopes/PriceEnvelopesIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(e,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,
132
- c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return d(e,a)};return function(e,a){function b(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,k=d.extend,p=d.isArray,r=d.merge;d=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,d);e.prototype.init=function(){f.seriesTypes.sma.prototype.init.apply(this,arguments);
133
- this.options=r({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)};e.prototype.toYData=function(a){return[a.top,a.middle,a.bottom]};e.prototype.translate=function(){var a=this,b=["plotTop","plotMiddle","plotBottom"];f.seriesTypes.sma.prototype.translate.apply(a);a.points.forEach(function(c){[c.top,c.middle,c.bottom].forEach(function(e,d){null!==e&&(c[b[d]]=a.yAxis.toPixels(e,!0))})})};e.prototype.drawGraph=function(){for(var a=this,b=a.points,c=b.length,
134
- e=a.options,d=a.graph,h={options:{gapSize:e.gapSize}},g=[[],[]],k;c--;)k=b[c],g[0].push({plotX:k.plotX,plotY:k.plotTop,isNull:k.isNull}),g[1].push({plotX:k.plotX,plotY:k.plotBottom,isNull:k.isNull});["topLine","bottomLine"].forEach(function(b,c){a.points=g[c];a.options=r(e[b].styles,h);a.graph=a["graph"+b];f.seriesTypes.sma.prototype.drawGraph.call(a);a["graph"+b]=a.graph});a.points=b;a.options=e;a.graph=d;f.seriesTypes.sma.prototype.drawGraph.call(a)};e.prototype.getValues=function(a,b){var c=b.period,
135
- e=b.topBand,d=b.bottomBand,h=a.xData,g=(a=a.yData)?a.length:0,k=[],l=[],q=[],n;if(!(h.length<c)&&p(a[0])&&4===a[0].length){for(n=c;n<=g;n++){var r=h.slice(n-c,n);var t=a.slice(n-c,n);t=f.seriesTypes.sma.prototype.getValues.call(this,{xData:r,yData:t},b);r=t.xData[0];t=t.yData[0];var u=t*(1+e);var O=t*(1-d);k.push([r,u,t,O]);l.push(r);q.push([u,t,O])}return{values:k,xData:l,yData:q}}};e.defaultOptions=r(l.defaultOptions,{marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b><br/>Top: {point.top}<br/>Middle: {point.middle}<br/>Bottom: {point.bottom}<br/>'},
136
- params:{period:20,topBand:.1,bottomBand:.1},bottomLine:{styles:{lineWidth:1,lineColor:void 0}},topLine:{styles:{lineWidth:1}},dataGrouping:{approximation:"averages"}});return e}(l);k(d.prototype,{nameComponents:["period","topBand","bottomBand"],nameBase:"Price envelopes",pointArrayMap:["top","middle","bottom"],parallelArrays:["x","y","top","bottom"],pointValKey:"middle"});f.registerSeriesType("priceenvelopes",d);"";return d});v(f,"Stock/Indicators/PSAR/PSARIndicator.js",[f["Core/Series/SeriesRegistry.js"],
137
- f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(f,e){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(f,e)};return function(f,e){function a(){this.constructor=f}d(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),l=f.seriesTypes.sma,k=d.merge;d=d.extend;var p=function(d){function f(){var e=null!==d&&d.apply(this,arguments)||
138
- this;e.data=void 0;e.points=void 0;e.options=void 0;return e}g(f,d);f.prototype.getValues=function(e,a){var b=e.xData;e=e.yData;var c=e[0][1],d=a.maxAccelerationFactor,f=a.increment,h=a.initialAccelerationFactor,g=e[0][2],k=a.decimals,l=a.index,q=[],n=[],r=[],t=1,u;if(!(l>=e.length)){for(u=0;u<l;u++)c=Math.max(e[u][1],c),g=Math.min(e[u][2],parseFloat(g.toFixed(k)));var p=e[u][1]>g?1:-1;a=a.initialAccelerationFactor;var J=a*(c-g);q.push([b[l],g]);n.push(b[l]);r.push(parseFloat(g.toFixed(k)));for(u=
139
- l+1;u<e.length;u++){l=e[u-1][2];var x=e[u-2][2];var F=e[u-1][1];var v=e[u-2][1];var C=e[u][1];var M=e[u][2];null!==x&&null!==v&&null!==l&&null!==F&&null!==C&&null!==M&&(g=p===t?1===p?g+J<Math.min(x,l)?g+J:Math.min(x,l):g+J>Math.max(v,F)?g+J:Math.max(v,F):c,l=1===p?C>c?C:c:M<c?M:c,C=1===t&&M>g||-1===t&&C>g?1:-1,t=C,J=l,M=f,x=d,F=h,a=t===p?1===t&&J>c?a===x?x:parseFloat((a+M).toFixed(2)):-1===t&&J<c?a===x?x:parseFloat((a+M).toFixed(2)):a:F,c=l-g,J=a*c,q.push([b[u],parseFloat(g.toFixed(k))]),n.push(b[u]),
140
- r.push(parseFloat(g.toFixed(k))),t=p,p=C,c=l)}return{values:q,xData:n,yData:r}}};f.defaultOptions=k(l.defaultOptions,{lineWidth:0,marker:{enabled:!0},states:{hover:{lineWidthPlus:0}},params:{period:void 0,initialAccelerationFactor:.02,maxAccelerationFactor:.2,increment:.02,index:2,decimals:4}});return f}(l);d(p.prototype,{nameComponents:void 0});f.registerSeriesType("psar",p);"";return p});v(f,"Stock/Indicators/ROC/ROCIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,
141
- d){var g=this&&this.__extends||function(){var d=function(e,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return d(e,a)};return function(e,a){function b(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,k=d.isArray,p=d.merge;d=d.extend;var r=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;
142
- a.options=void 0;a.points=void 0;return a}g(e,d);e.prototype.getValues=function(a,b){var c=b.period,e=a.xData,d=(a=a.yData)?a.length:0,f=[],h=[],g=[],l=-1;if(!(e.length<=c)){k(a[0])&&(l=b.index);for(b=c;b<d;b++){var q=0>l?(q=a[b-c])?(a[b]-q)/q*100:null:(q=a[b-c][l])?(a[b][l]-q)/q*100:null;q=[e[b],q];f.push(q);h.push(q[0]);g.push(q[1])}return{values:f,xData:h,yData:g}}};e.defaultOptions=p(l.defaultOptions,{params:{index:3,period:9}});return e}(l);d(r.prototype,{nameBase:"Rate of Change"});f.registerSeriesType("roc",
143
- r);"";return r});v(f,"Stock/Indicators/RSI/RSIIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(f,e){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(f,e)};return function(f,e){function a(){this.constructor=f}d(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),l=f.seriesTypes.sma,
144
- k=d.isNumber,p=d.merge;d=function(d){function f(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.points=void 0;e.options=void 0;return e}g(f,d);f.prototype.getValues=function(e,a){var b=a.period,c=e.xData,d=e.yData;e=d?d.length:0;var f=a.decimals,h=1,g=[],l=[],r=[],q=a.index,n=a=0,p;if(!(c.length<b)){if(k(d[0]))var t=d;else q=Math.min(q,d[0].length-1),t=d.map(function(a){return a[q]});for(;h<b;){var u=parseFloat((t[h]-t[h-1]).toFixed(f));0<u?a+=u:n+=Math.abs(u);h++}d=parseFloat((a/
145
- (b-1)).toFixed(f));for(p=parseFloat((n/(b-1)).toFixed(f));h<e;h++)u=parseFloat((t[h]-t[h-1]).toFixed(f)),0<u?(a=u,n=0):(a=0,n=Math.abs(u)),d=parseFloat(((d*(b-1)+a)/b).toFixed(f)),p=parseFloat(((p*(b-1)+n)/b).toFixed(f)),a=0===p?100:0===d?0:parseFloat((100-100/(1+d/p)).toFixed(f)),g.push([c[h],a]),l.push(c[h]),r.push(a);return{values:g,xData:l,yData:r}}};f.defaultOptions=p(l.defaultOptions,{params:{decimals:4,index:3}});return f}(l);f.registerSeriesType("rsi",d);"";return d});v(f,"Stock/Indicators/Stochastic/StochasticIndicator.js",
146
- [f["Stock/Indicators/ArrayUtilities.js"],f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g,l){var k=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=
147
- c.prototype,new e)}}(),p=g.seriesTypes.sma,r=l.extend,h=l.isArray,e=l.merge;l=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}k(b,a);b.prototype.init=function(){g.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=e({smoothedLine:{styles:{lineColor:this.color}}},this.options)};b.prototype.getValues=function(a,b){var c=b.periods[0];b=b.periods[1];var e=a.xData,d=(a=a.yData)?a.length:0,m=[],k=[],l=[],n=null,
148
- r;if(!(d<c)&&h(a[0])&&4===a[0].length){for(r=c-1;r<d;r++){var t=a.slice(r-c+1,r+1);var u=f.getArrayExtremes(t,2,1);var p=u[0];t=a[r][3]-p;p=u[1]-p;t=t/p*100;k.push(e[r]);l.push([t,null]);r>=c-1+(b-1)&&(n=g.seriesTypes.sma.prototype.getValues.call(this,{xData:k.slice(-b),yData:l.slice(-b)},{period:b}),n=n.yData[0]);m.push([e[r],t,n]);l[l.length-1][1]=n}return{values:m,xData:k,yData:l}}};b.defaultOptions=e(p.defaultOptions,{params:{index:void 0,period:void 0,periods:[14,3]},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b><br/>%K: {point.y}<br/>%D: {point.smoothed}<br/>'},
149
- smoothedLine:{styles:{lineWidth:1,lineColor:void 0}},dataGrouping:{approximation:"averages"}});return b}(p);r(l.prototype,{nameComponents:["periods"],nameBase:"Stochastic",pointArrayMap:["y","smoothed"],parallelArrays:["x","y","smoothed"],pointValKey:"y",linesApiNames:["smoothedLine"]});d.compose(l);g.registerSeriesType("stochastic",l);"";return l});v(f,"Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&
150
- this.__extends||function(){var d=function(e,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return d(e,a)};return function(e,a){function b(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.stochastic,k=f.seriesTypes,p=d.extend,r=d.merge;d=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=
151
- void 0;a.points=void 0;return a}g(e,d);e.prototype.getValues=function(a,b){var c=b.periods,e=k.stochastic.prototype.getValues.call(this,a,b);a={values:[],xData:[],yData:[]};b=0;if(e){a.xData=e.xData.slice(c[1]-1);e=e.yData.slice(c[1]-1);var d=k.sma.prototype.getValues.call(this,{xData:a.xData,yData:e},{index:1,period:c[2]});if(d){for(var f=a.xData.length;b<f;b++)a.yData[b]=[e[b][1],d.yData[b-c[2]+1]||null],a.values[b]=[a.xData[b],e[b][1],d.yData[b-c[2]+1]||null];return a}}};e.defaultOptions=r(l.defaultOptions,
152
- {params:{periods:[14,3,3]}});return e}(l);p(d.prototype,{nameBase:"Slow Stochastic"});f.registerSeriesType("slowstochastic",d);"";return d});v(f,"Stock/Indicators/Supertrend/SupertrendIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"],f["Core/Chart/StockChart.js"]],function(f,d,g){function l(a,b,c){return{index:b,close:a.yData[b][c],x:a.xData[b]}}var k=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=
153
- b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),p=f.seriesTypes,r=p.atr,h=p.sma,e=d.addEvent,a=d.correctFloat,b=d.isArray;p=d.extend;var c=d.merge,m=d.objectEach;d=function(d){function f(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.linkedParent=void 0;a.options=void 0;a.points=void 0;return a}k(f,d);f.prototype.init=
154
- function(){var a;h.prototype.init.apply(this,arguments);var b=this,c=e(g,"afterLinkSeries",function(){if(b.options){var e=b.options;a=b.linkedParent.options;e.cropThreshold=a.cropThreshold-(e.params.period-1)}c()},{order:1})};f.prototype.drawGraph=function(){var a=this,b=a.options,e=a.linkedParent,d=e?e.points:[],f=a.points,g=a.graph,k=f.length,u=d.length-k;u=0<u?u:0;for(var r={options:{gapSize:b.gapSize}},p={top:[],bottom:[],intersect:[]},w={top:{styles:{lineWidth:b.lineWidth,lineColor:b.fallingTrendColor||
155
- b.color,dashStyle:b.dashStyle}},bottom:{styles:{lineWidth:b.lineWidth,lineColor:b.risingTrendColor||b.color,dashStyle:b.dashStyle}},intersect:b.changeTrendLine},A,x,C,v,E,G,H,I;k--;)A=f[k],x=f[k-1],C=d[k-1+u],v=d[k-2+u],E=d[k+u],G=d[k+u+1],H=A.options.color,I={x:A.x,plotX:A.plotX,plotY:A.plotY,isNull:!1},!v&&C&&e.yData[C.index-1]&&(v=l(e,C.index-1,3)),!G&&E&&e.yData[E.index+1]&&(G=l(e,E.index+1,3)),!C&&v&&e.yData[v.index+1]?C=l(e,v.index+1,3):!C&&E&&e.yData[E.index-1]&&(C=l(e,E.index-1,3)),A&&C&&
156
- E&&v&&A.x!==C.x&&(A.x===E.x?(v=C,C=E):A.x===v.x?(C=v,v={close:e.yData[C.index-1][3],x:e.xData[C.index-1]}):G&&A.x===G.x&&(C=G,v=E)),x&&v&&C?(E={x:x.x,plotX:x.plotX,plotY:x.plotY,isNull:!1},A.y>=C.close&&x.y>=v.close?(A.color=H||b.fallingTrendColor||b.color,p.top.push(I)):A.y<C.close&&x.y<v.close?(A.color=H||b.risingTrendColor||b.color,p.bottom.push(I)):(p.intersect.push(I),p.intersect.push(E),p.intersect.push(c(E,{isNull:!0})),A.y>=C.close&&x.y<v.close?(A.color=H||b.fallingTrendColor||b.color,x.color=
157
- H||b.risingTrendColor||b.color,p.top.push(I),p.top.push(c(E,{isNull:!0}))):A.y<C.close&&x.y>=v.close&&(A.color=H||b.risingTrendColor||b.color,x.color=H||b.fallingTrendColor||b.color,p.bottom.push(I),p.bottom.push(c(E,{isNull:!0}))))):C&&(A.y>=C.close?(A.color=H||b.fallingTrendColor||b.color,p.top.push(I)):(A.color=H||b.risingTrendColor||b.color,p.bottom.push(I)));m(p,function(b,e){a.points=b;a.options=c(w[e].styles,r);a.graph=a["graph"+e+"Line"];h.prototype.drawGraph.call(a);a["graph"+e+"Line"]=a.graph});
158
- a.points=f;a.options=b;a.graph=g};f.prototype.getValues=function(c,e){var d=e.period;e=e.multiplier;var f=c.xData,m=c.yData,h=[],g=[],k=[],l=0===d?0:d-1,p=[],w=[],y;if(!(f.length<=d||!b(m[0])||4!==m[0].length||0>d)){c=r.prototype.getValues.call(this,c,{period:d}).yData;for(y=0;y<c.length;y++){var z=m[l+y];var A=m[l+y-1]||[];var x=p[y-1];var v=w[y-1];var G=k[y-1];0===y&&(x=v=G=0);d=a((z[1]+z[2])/2+e*c[y]);var H=a((z[1]+z[2])/2-e*c[y]);p[y]=d<x||A[3]>x?d:x;w[y]=H>v||A[3]<v?H:v;if(G===x&&z[3]<p[y]||
159
- G===v&&z[3]<w[y])var I=p[y];else if(G===x&&z[3]>p[y]||G===v&&z[3]>w[y])I=w[y];h.push([f[l+y],I]);g.push(f[l+y]);k.push(I)}return{values:h,xData:g,yData:k}}};f.defaultOptions=c(h.defaultOptions,{params:{index:void 0,multiplier:3,period:10},risingTrendColor:"#06b535",fallingTrendColor:"#f21313",changeTrendLine:{styles:{lineWidth:1,lineColor:"#333333",dashStyle:"LongDash"}}});return f}(h);p(d.prototype,{nameBase:"Supertrend",nameComponents:["multiplier","period"]});f.registerSeriesType("supertrend",
160
- d);"";return d});v(f,"Stock/Indicators/VBP/VBPPoint.js",[f["Core/Series/Point.js"],f["Core/Series/SeriesRegistry.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(f,g){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var e in f)f.hasOwnProperty(e)&&(d[e]=f[e])};return d(f,g)};return function(f,g){function k(){this.constructor=f}d(f,g);f.prototype=null===g?Object.create(g):(k.prototype=g.prototype,new k)}}();return function(d){function k(){return null!==
161
- d&&d.apply(this,arguments)||this}g(k,d);k.prototype.destroy=function(){this.negativeGraphic&&(this.negativeGraphic=this.negativeGraphic.destroy());return f.prototype.destroy.apply(this,arguments)};return k}(d.seriesTypes.sma.prototype.pointClass)});v(f,"Stock/Indicators/VBP/VBPIndicator.js",[f["Stock/Indicators/VBP/VBPPoint.js"],f["Core/Animation/AnimationUtilities.js"],f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"],f["Core/Chart/StockChart.js"]],function(f,d,g,l,k,
162
- p){var r=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),h=d.animObject;d=g.noop;var e=l.seriesTypes.sma,a=k.addEvent,b=k.arrayMax,c=k.arrayMin,m=k.correctFloat,w=k.defined,A=k.error,y=k.extend,z=k.isArray,
163
- v=k.merge,q=Math.abs,n=l.seriesTypes.column.prototype;k=function(d){function f(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.negWidths=void 0;a.options=void 0;a.points=void 0;a.posWidths=void 0;a.priceZones=void 0;a.rangeStep=void 0;a.volumeDataArray=void 0;a.zoneStarts=void 0;a.zoneLinesSVG=void 0;return a}r(f,d);f.prototype.init=function(b){var c=this,e,d,f;g.seriesTypes.sma.prototype.init.apply(c,arguments);var m=a(p,"afterLinkSeries",function(){c.options&&(e=c.options.params,
164
- d=c.linkedParent,f=b.get(e.volumeSeriesID),c.addCustomEvents(d,f));m()},{order:1});return c};f.prototype.addCustomEvents=function(b,c){function e(){d.chart.redraw();d.setData([]);d.zoneStarts=[];d.zoneLinesSVG&&(d.zoneLinesSVG=d.zoneLinesSVG.destroy())}var d=this;d.dataEventsToUnbind.push(a(b,"remove",function(){e()}));c&&d.dataEventsToUnbind.push(a(c,"remove",function(){e()}));return d};f.prototype.animate=function(a){var b=this,c=b.chart.inverted,e=b.group,d={};!a&&e&&(a=c?b.yAxis.top:b.xAxis.left,
165
- c?(e["forceAnimate:translateY"]=!0,d.translateY=a):(e["forceAnimate:translateX"]=!0,d.translateX=a),e.animate(d,y(h(b.options.animation),{step:function(a,c){b.group.attr({scaleX:Math.max(.001,c.pos)})}})))};f.prototype.drawPoints=function(){this.options.volumeDivision.enabled&&(this.posNegVolume(!0,!0),n.drawPoints.apply(this,arguments),this.posNegVolume(!1,!1));n.drawPoints.apply(this,arguments)};f.prototype.posNegVolume=function(a,b){var c=b?["positive","negative"]:["negative","positive"],e=this.options.volumeDivision,
166
- d=this.points.length,f=[],m=[],h=0,g;a?(this.posWidths=f,this.negWidths=m):(f=this.posWidths,m=this.negWidths);for(;h<d;h++){var k=this.points[h];k[c[0]+"Graphic"]=k.graphic;k.graphic=k[c[1]+"Graphic"];if(a){var n=k.shapeArgs.width;var l=this.priceZones[h];(g=l.wholeVolumeData)?(f.push(n/g*l.positiveVolumeData),m.push(n/g*l.negativeVolumeData)):(f.push(0),m.push(0))}k.color=b?e.styles.positiveColor:e.styles.negativeColor;k.shapeArgs.width=b?this.posWidths[h]:this.negWidths[h];k.shapeArgs.x=b?k.shapeArgs.x:
167
- this.posWidths[h]}};f.prototype.translate=function(){var a=this,c=a.options,e=a.chart,d=a.yAxis,f=d.min,h=a.options.zoneLines,g=a.priceZones,k=0,l,r,t;n.translate.apply(a);var p=a.points;if(p.length){var w=.5>c.pointPadding?c.pointPadding:.1;c=a.volumeDataArray;var y=b(c);var z=e.plotWidth/2;var A=e.plotTop;var B=q(d.toPixels(f)-d.toPixels(f+a.rangeStep));var v=q(d.toPixels(f)-d.toPixels(f+a.rangeStep));w&&(f=q(B*(1-2*w)),k=q((B-f)/2),B=q(f));p.forEach(function(b,c){r=b.barX=b.plotX=0;t=b.plotY=d.toPixels(g[c].start)-
168
- A-(d.reversed?B-v:B)-k;l=m(z*g[c].wholeVolumeData/y);b.pointWidth=l;b.shapeArgs=a.crispCol.apply(a,[r,t,l,B]);b.volumeNeg=g[c].negativeVolumeData;b.volumePos=g[c].positiveVolumeData;b.volumeAll=g[c].wholeVolumeData});h.enabled&&a.drawZones(e,d,a.zoneStarts,h.styles)}};f.prototype.getValues=function(a,b){var c=a.processedXData,e=a.processedYData,d=this.chart,f=b.ranges,m=[],h=[],g=[],k;if(a.chart)if(k=d.get(b.volumeSeriesID))if((b=z(e[0]))&&4!==e[0].length)A("Type of "+a.name+" series is different than line, OHLC or candlestick.",
169
- !0,d);else return(this.priceZones=this.specifyZones(b,c,e,f,k)).forEach(function(a,b){m.push([a.x,a.end]);h.push(m[b][0]);g.push(m[b][1])}),{values:m,xData:h,yData:g};else A("Series "+b.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,d);else A("Base series not found! In case it has been removed, add a new one.",!0,d)};f.prototype.specifyZones=function(a,e,d,f,h){if(a){var g=d.length;for(var k=d[0][3],n=k,l=1,q;l<g;l++)q=d[l][3],q<k&&(k=q),q>n&&(n=q);g={min:k,max:n}}else g=!1;g=(k=g)?k.min:
170
- c(d);q=k?k.max:b(d);k=this.zoneStarts=[];n=[];var r=0;l=1;var t=this.linkedParent;!this.options.compareToMain&&t.dataModify&&(g=t.dataModify.modifyValue(g),q=t.dataModify.modifyValue(q));if(!w(g)||!w(q))return this.points.length&&(this.setData([]),this.zoneStarts=[],this.zoneLinesSVG&&(this.zoneLinesSVG=this.zoneLinesSVG.destroy())),[];t=this.rangeStep=m(q-g)/f;for(k.push(g);r<f-1;r++)k.push(m(k[r]+t));k.push(q);for(f=k.length;l<f;l++)n.push({index:l-1,x:e[0],start:k[l-1],end:k[l]});return this.volumePerZone(a,
171
- n,h,e,d)};f.prototype.volumePerZone=function(a,b,c,e,d){var f=this,m=c.processedXData,h=c.processedYData,g=b.length-1,k=d.length;c=h.length;var n,l,t,r,p;q(k-c)&&(e[0]!==m[0]&&h.unshift(0),e[k-1]!==m[c-1]&&h.push(0));f.volumeDataArray=[];b.forEach(function(b){b.wholeVolumeData=0;b.positiveVolumeData=0;for(p=b.negativeVolumeData=0;p<k;p++){t=l=!1;r=a?d[p][3]:d[p];n=p?a?d[p-1][3]:d[p-1]:r;var c=f.linkedParent;!f.options.compareToMain&&c.dataModify&&(r=c.dataModify.modifyValue(r),n=c.dataModify.modifyValue(n));
172
- r<=b.start&&0===b.index&&(l=!0);r>=b.end&&b.index===g&&(t=!0);(r>b.start||l)&&(r<b.end||t)&&(b.wholeVolumeData+=h[p],n>r?b.negativeVolumeData+=h[p]:b.positiveVolumeData+=h[p])}f.volumeDataArray.push(b.wholeVolumeData)});return b};f.prototype.drawZones=function(a,b,c,e){var d=a.renderer,f=this.zoneLinesSVG,m=[],h=a.plotWidth,g=a.plotTop,k;c.forEach(function(c){k=b.toPixels(c)-g;m=m.concat(a.renderer.crispLine([["M",0,k],["L",h,k]],e.lineWidth))});f?f.animate({d:m}):f=this.zoneLinesSVG=d.path(m).attr({"stroke-width":e.lineWidth,
173
- stroke:e.color,dashstyle:e.dashStyle,zIndex:this.group.zIndex+.1}).add(this.group)};f.defaultOptions=v(e.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:{allowOverlap:!0,
174
- enabled:!0,format:"P: {point.volumePos:.2f} | N: {point.volumeNeg:.2f}",padding:0,style:{fontSize:"7px"},verticalAlign:"top"}});return f}(e);y(k.prototype,{nameBase:"Volume by Price",nameComponents:["ranges"],calculateOn:{chart:"render",xAxis:"afterSetExtremes"},pointClass:f,markerAttribs:d,drawGraph:d,getColumnMetrics:n.getColumnMetrics,crispCol:n.crispCol});l.registerSeriesType("vbp",k);"";return k});v(f,"Stock/Indicators/VWAP/VWAPIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],
175
- function(f,d){var g=this&&this.__extends||function(){var d=function(e,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return d(e,a)};return function(e,a){function b(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,k=d.error,p=d.isArray,r=d.merge;d=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=
176
- void 0;a.points=void 0;a.options=void 0;return a}g(e,d);e.prototype.getValues=function(a,b){var c=a.chart,e=a.xData;a=a.yData;var d=b.period,f=!0,h;if(h=c.get(b.volumeSeriesID))return p(a[0])||(f=!1),this.calculateVWAPValues(f,e,a,h,d);k("Series "+b.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,c)};e.prototype.calculateVWAPValues=function(a,b,c,e,d){var f=e.yData,m=e.xData.length,h=b.length;e=[];var g=[],k=[],n=[],l=[],r;m=h<=m?h:m;for(r=h=0;h<m;h++){var p=a?(c[h][1]+c[h][2]+c[h][3])/3:
177
- c[h];p*=f[h];p=r?e[h-1]+p:p;var w=r?g[h-1]+f[h]:f[h];e.push(p);g.push(w);l.push([b[h],p/w]);k.push(l[h][0]);n.push(l[h][1]);r++;r===d&&(r=0)}return{values:l,xData:k,yData:n}};e.defaultOptions=r(l.defaultOptions,{params:{index:void 0,period:30,volumeSeriesID:"volume"}});return e}(l);f.registerSeriesType("vwap",d);"";return d});v(f,"Stock/Indicators/WilliamsR/WilliamsRIndicator.js",[f["Stock/Indicators/ArrayUtilities.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=
178
- this&&this.__extends||function(){var e=function(a,b){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return e(a,b)};return function(a,b){function c(){this.constructor=a}e(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=d.seriesTypes.sma,p=g.extend,r=g.isArray,h=g.merge;g=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=
179
- void 0;a.points=void 0;return a}l(a,e);a.prototype.getValues=function(a,c){c=c.period;var b=a.xData,e=(a=a.yData)?a.length:0,d=[],h=[],g=[],k;if(!(b.length<c)&&r(a[0])&&4===a[0].length){for(k=c-1;k<e;k++){var l=a.slice(k-c+1,k+1);var n=f.getArrayExtremes(l,2,1);l=n[0];n=n[1];var p=a[k][3];l=(n-p)/(n-l)*-100;b[k]&&(d.push([b[k],l]),h.push(b[k]),g.push(l))}return{values:d,xData:h,yData:g}}};a.defaultOptions=h(k.defaultOptions,{params:{index:void 0,period:14}});return a}(k);p(g.prototype,{nameBase:"Williams %R"});
180
- d.registerSeriesType("williamsr",g);"";return g});v(f,"Stock/Indicators/WMA/WMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){function g(e,a){a*=(a+1)/2;return e.reduce(function(a,c,e){return[null,a[1]+c[1]*(e+1)]})[1]/a}function l(e,a,b,c){b=g(e,e.length);a=a[c-1];e.shift();return[a,b]}var k=this&&this.__extends||function(){var e=function(a,b){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&
181
- (a[c]=b[c])};return e(a,b)};return function(a,b){function c(){this.constructor=a}e(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),p=f.seriesTypes.sma,r=d.isArray,h=d.merge;d=function(e){function a(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}k(a,e);a.prototype.getValues=function(a,c){var b=c.period,e=a.xData,d=(a=a.yData)?a.length:0,f=1,h=e[0],g=a[0],k=[],n=[],p=[],t=-1;if(!(e.length<b)){r(a[0])&&(t=c.index,
182
- g=a[0][t]);for(c=[[h,g]];f!==b;)c.push([e[f],0>t?a[f]:a[f][t]]),f++;for(b=f;b<d;b++)f=l(c,e,a,b),k.push(f),n.push(f[0]),p.push(f[1]),c.push([e[b],0>t?a[b]:a[b][t]]);f=l(c,e,a,b);k.push(f);n.push(f[0]);p.push(f[1]);return{values:k,xData:n,yData:p}}};a.defaultOptions=h(p.defaultOptions,{params:{index:3,period:9}});return a}(p);f.registerSeriesType("wma",d);"";return d});v(f,"Stock/Indicators/Zigzag/ZigzagIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&
183
- this.__extends||function(){var d=function(f,e){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(f,e)};return function(f,e){function a(){this.constructor=f}d(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),l=f.seriesTypes.sma,k=d.merge;d=d.extend;var p=function(d){function f(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.points=void 0;e.options=
184
- void 0;return e}g(f,d);f.prototype.getValues=function(e,a){var b=a.lowIndex,c=a.highIndex,d=a.deviation/100;a=1+d;var f=1-d;d=e.xData;var h=e.yData;e=h?h.length:0;var g=[],k=[],l=[],q,n,p=!1,r=!1;if(!(!d||1>=d.length||e&&("undefined"===typeof h[0][b]||"undefined"===typeof h[0][c]))){var u=h[0][b];var v=h[0][c];for(q=1;q<e;q++){if(h[q][b]<=v*f){g.push([d[0],v]);var x=[d[q],h[q][b]];p=n=!0}else h[q][c]>=u*a&&(g.push([d[0],u]),x=[d[q],h[q][c]],n=!1,p=!0);if(p){k.push(g[0][0]);l.push(g[0][1]);var L=q++;
185
- q=e}}for(q=L;q<e;q++)n?(h[q][b]<=x[1]&&(x=[d[q],h[q][b]]),h[q][c]>=x[1]*a&&(r=c)):(h[q][c]>=x[1]&&(x=[d[q],h[q][c]]),h[q][b]<=x[1]*f&&(r=b)),!1!==r&&(g.push(x),k.push(x[0]),l.push(x[1]),x=[d[q],h[q][r]],n=!n,r=!1);b=g.length;0!==b&&g[b-1][0]<d[e-1]&&(g.push(x),k.push(x[0]),l.push(x[1]));return{values:g,xData:k,yData:l}}};f.defaultOptions=k(l.defaultOptions,{params:{index:void 0,period:void 0,lowIndex:2,highIndex:1,deviation:1}});return f}(l);d(p.prototype,{nameComponents:["deviation"],nameSuffixes:["%"],
186
- nameBase:"Zig Zag"});f.registerSeriesType("zigzag",p);"";return p});v(f,"Stock/Indicators/LinearRegression/LinearRegression.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(e,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return d(e,a)};return function(e,a){function b(){this.constructor=e}d(e,a);e.prototype=null===
187
- a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,k=d.isArray,p=d.extend,r=d.merge;d=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,d);e.prototype.getRegressionLineParameters=function(a,b){var c=this.options.params.index,e=function(a,b){return k(a)?a[b]:a},d=a.reduce(function(a,b){return b+a},0),f=b.reduce(function(a,b){return e(b,c)+a},0);d/=a.length;f/=b.length;var h=0,g=0,l;for(l=0;l<a.length;l++){var p=
188
- a[l]-d;var n=e(b[l],c)-f;h+=p*n;g+=Math.pow(p,2)}a=g?h/g:0;return{slope:a,intercept:f-a*d}};e.prototype.getEndPointY=function(a,b){return a.slope*b+a.intercept};e.prototype.transformXData=function(a,b){var c=a[0];return a.map(function(a){return(a-c)/b})};e.prototype.findClosestDistance=function(a){var b,c;for(c=1;c<a.length-1;c++){var e=a[c]-a[c-1];0<e&&("undefined"===typeof b||e<b)&&(b=e)}return b};e.prototype.getValues=function(a,b){var c=a.xData;a=a.yData;b=b.period;var e,d={xData:[],yData:[],
189
- values:[]},f=this.options.params.xAxisUnit||this.findClosestDistance(c);for(e=b-1;e<=c.length-1;e++){var h=e-b+1;var g=e+1;var k=c[e];var l=c.slice(h,g);h=a.slice(h,g);g=this.transformXData(l,f);l=this.getRegressionLineParameters(g,h);h=this.getEndPointY(l,g[g.length-1]);d.values.push({regressionLineParameters:l,x:k,y:h});d.xData.push(k);d.yData.push(h)}return d};e.defaultOptions=r(l.defaultOptions,{params:{xAxisUnit:null},tooltip:{valueDecimals:4}});return e}(l);p(d.prototype,{nameBase:"Linear Regression Indicator"});
190
- f.registerSeriesType("linearRegression",d);"";return d});v(f,"Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopes.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(f,e){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(f,e)};return function(f,e){function a(){this.constructor=f}d(f,e);f.prototype=null===
191
- e?Object.create(e):(a.prototype=e.prototype,new a)}}(),l=f.seriesTypes.linearRegression,k=d.extend,p=d.merge;d=function(d){function f(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}g(f,d);f.prototype.getEndPointY=function(e){return e.slope};f.defaultOptions=p(l.defaultOptions);return f}(l);k(d.prototype,{nameBase:"Linear Regression Slope Indicator"});f.registerSeriesType("linearRegressionSlope",d);"";return d});v(f,"Stock/Indicators/LinearRegressionIntercept/LinearRegressionIntercept.js",
192
- [f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(f,e){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(f,e)};return function(f,e){function a(){this.constructor=f}d(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),l=f.seriesTypes.linearRegression,k=d.extend,p=d.merge;d=function(d){function f(){var e=
193
- null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;return e}g(f,d);f.prototype.getEndPointY=function(d){return d.intercept};f.defaultOptions=p(l.defaultOptions);return f}(l);k(d.prototype,{nameBase:"Linear Regression Intercept Indicator"});f.registerSeriesType("linearRegressionIntercept",d);"";return d});v(f,"Stock/Indicators/LinearRegressionAngle/LinearRegressionAngle.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||
194
- function(){var d=function(f,e){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(f,e)};return function(f,e){function a(){this.constructor=f}d(f,e);f.prototype=null===e?Object.create(e):(a.prototype=e.prototype,new a)}}(),l=f.seriesTypes.linearRegression,k=d.extend,p=d.merge;d=function(d){function f(){var e=null!==d&&d.apply(this,arguments)||this;e.data=void 0;e.options=void 0;e.points=void 0;
195
- return e}g(f,d);f.prototype.slopeToAngle=function(d){return 180/Math.PI*Math.atan(d)};f.prototype.getEndPointY=function(d){return this.slopeToAngle(d.slope)};f.defaultOptions=p(l.defaultOptions,{tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span>{series.name}: <b>{point.y}\u00b0</b><br/>'}});return f}(l);k(d.prototype,{nameBase:"Linear Regression Angle Indicator"});f.registerSeriesType("linearRegressionAngle",d);"";return d});v(f,"Stock/Indicators/ABands/ABandsIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],
196
- f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d,g){var l=this&&this.__extends||function(){var d=function(a,b){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(a,b)};return function(a,b){function c(){this.constructor=a}d(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),k=d.seriesTypes.sma,p=g.correctFloat,r=g.extend,h=g.merge;g=function(d){function a(){var a=
197
- null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}l(a,d);a.prototype.getValues=function(a,c){var b=c.period,e=c.factor;c=c.index;var f=a.xData,g=(a=a.yData)?a.length:0,h=[],k=[],l=[],n=[],r=[],t;if(!(g<b)){for(t=0;t<=g;t++){if(t<g){var u=a[t][2];var v=a[t][1];var x=e;u=p(v-u)/(p(v+u)/2)*1E3*x;h.push(a[t][1]*p(1+2*u));k.push(a[t][2]*p(1-2*u))}if(t>=b){u=f.slice(t-b,t);var L=a.slice(t-b,t);x=d.prototype.getValues.call(this,{xData:u,yData:h.slice(t-b,t)},
198
- {period:b});v=d.prototype.getValues.call(this,{xData:u,yData:k.slice(t-b,t)},{period:b});L=d.prototype.getValues.call(this,{xData:u,yData:L},{period:b,index:c});u=L.xData[0];x=x.yData[0];v=v.yData[0];L=L.yData[0];l.push([u,x,L,v]);n.push(u);r.push([x,L,v])}}return{values:l,xData:n,yData:r}}};a.defaultOptions=h(k.defaultOptions,{params:{period:20,factor:.001,index:3},lineWidth:1,topLine:{styles:{lineWidth:1}},bottomLine:{styles:{lineWidth:1}},dataGrouping:{approximation:"averages"}});return a}(k);
199
- r(g.prototype,{linesApiNames:["topLine","bottomLine"],nameBase:"Acceleration Bands",nameComponents:["period","factor"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});f.compose(g);d.registerSeriesType("abands",g);"";return g});v(f,"Stock/Indicators/TrendLine/TrendLineIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var d=function(e,a){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=
200
- c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return d(e,a)};return function(e,a){function b(){this.constructor=e}d(e,a);e.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,k=d.extend,p=d.merge,r=d.isArray;d=function(d){function e(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}g(e,d);e.prototype.getValues=function(a,b){var c=a.xData,d=a.yData;a=[];var e=[],f=[],g=0,h=0,k=0,l=0,n=
201
- c.length,p=b.index;for(b=0;b<n;b++){var t=c[b];var u=r(d[b])?d[b][p]:d[b];g+=t;h+=u;k+=t*u;l+=t*t}d=(n*k-g*h)/(n*l-g*g);isNaN(d)&&(d=0);g=(h-d*g)/n;for(b=0;b<n;b++)t=c[b],u=d*t+g,a[b]=[t,u],e[b]=t,f[b]=u;return{xData:e,yData:f,values:a}};e.defaultOptions=p(l.defaultOptions,{params:{period:void 0,index:3}});return e}(l);k(d.prototype,{nameBase:"Trendline",nameComponents:!1});f.registerSeriesType("trendline",d);"";return d});v(f,"Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js",[f["Core/Series/SeriesRegistry.js"],
202
- f["Core/Utilities.js"]],function(f,d){var g=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),l=f.seriesTypes.sma,k=d.correctFloat,p=d.defined,r=d.extend,h=d.isArray,e=d.merge;d=function(a){function b(){var b=
203
- null!==a&&a.apply(this,arguments)||this;b.averageIndicator=void 0;b.data=void 0;b.options=void 0;b.points=void 0;return b}g(b,a);b.prototype.init=function(){var a=arguments,b=a[1].params;this.averageIndicator=f.seriesTypes[b&&b.average?b.average:void 0]||l;this.averageIndicator.prototype.init.apply(this,a)};b.prototype.calculateDisparityIndex=function(a,b){return k(a-b)/b*100};b.prototype.getValues=function(a,b){var c=b.index,d=a.xData,e=a.yData,f=e?e.length:0,g=[],k=[],l=[],m=this.averageIndicator,
204
- r=h(e[0]);b=m.prototype.getValues(a,b);a=b.yData;b=d.indexOf(b.xData[0]);if(a&&0!==a.length&&p(c)&&!(e.length<=b)){for(m=b;m<f;m++){var u=this.calculateDisparityIndex(r?e[m][c]:e[m],a[m-b]);g.push([d[m],u]);k.push(d[m]);l.push(u)}return{values:g,xData:k,yData:l}}};b.defaultOptions=e(l.defaultOptions,{params:{average:"sma",index:3},marker:{enabled:!1},dataGrouping:{approximation:"averages"}});return b}(l);r(d.prototype,{nameBase:"Disparity Index",nameComponents:["period","average"]});f.registerSeriesType("disparityindex",
205
- d);"";return d});v(f,"masters/indicators/indicators-all.src.js",[],function(){})});
10
+ 'use strict';(function(f){"object"===typeof module&&module.exports?(f["default"]=f,module.exports=f):"function"===typeof define&&define.amd?define("highcharts/indicators/indicators-all",["highcharts","highcharts/modules/stock"],function(v){f(v);f.Highcharts=v;return f}):f("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(f){function v(f,e,h,m){f.hasOwnProperty(e)||(f[e]=m.apply(null,h))}f=f?f._modules:{};v(f,"Stock/Indicators/SMA/SMAComposition.js",[f["Core/Series/SeriesRegistry.js"],
11
+ f["Core/Utilities.js"]],function(f,e){});v(f,"Stock/Indicators/SMA/SMAIndicator.js",[f["Core/Chart/Chart.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,h){var m=this&&this.__extends||function(){var c=function(b,a){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,b){c.__proto__=b}||function(c,b){for(var a in b)b.hasOwnProperty(a)&&(c[a]=b[a])};return c(b,a)};return function(b,a){function k(){this.constructor=b}c(b,a);b.prototype=null===a?Object.create(a):
12
+ (k.prototype=a.prototype,new k)}}(),l=e.seriesTypes.line,p=h.addEvent,t=h.error,g=h.extend,d=h.isArray,a=h.merge,b=h.pick,c=h.splat;h=function(k){function w(){var c=null!==k&&k.apply(this,arguments)||this;c.data=void 0;c.dataEventsToUnbind=void 0;c.linkedParent=void 0;c.options=void 0;c.points=void 0;return c}m(w,k);w.prototype.destroy=function(){this.dataEventsToUnbind.forEach(function(c){c()});k.prototype.destroy.apply(this,arguments)};w.prototype.getName=function(){var c=this.name,a=[];c||((this.nameComponents||
13
+ []).forEach(function(c,k){a.push(this.options.params[c]+b(this.nameSuffixes[k],""))},this),c=(this.nameBase||this.type.toUpperCase())+(this.nameComponents?" ("+a.join(", ")+")":""));return c};w.prototype.getValues=function(c,b){var a=b.period,k=c.xData;c=c.yData;var w=c.length,x=0,B=0,g=[],e=[],h=[],f=-1;if(!(k.length<a)){for(d(c[0])&&(f=b.index?b.index:0);x<a-1;)B+=0>f?c[x]:c[x][f],x++;for(b=x;b<w;b++){B+=0>f?c[b]:c[b][f];var t=[k[b],B/a];g.push(t);e.push(t[0]);h.push(t[1]);B-=0>f?c[b-x]:c[b-x][f]}return{values:g,
14
+ xData:e,yData:h}}};w.prototype.init=function(c,b){var a=this;k.prototype.init.call(a,c,b);b=p(f,"afterLinkSeries",function(){var b=!!a.dataEventsToUnbind.length;if(a.linkedParent)if(b||(a.dataEventsToUnbind.push(p(a.linkedParent,"updatedData",function(){a.recalculateValues()})),a.calculateOn.xAxis&&a.dataEventsToUnbind.push(p(a.linkedParent.xAxis,a.calculateOn.xAxis,function(){a.recalculateValues()}))),"init"===a.calculateOn.chart)a.processedYData||a.recalculateValues();else{if(!b)var k=p(a.chart,
15
+ a.calculateOn.chart,function(){a.recalculateValues();k()})}else return t("Series "+a.options.linkedTo+" not found! Check `linkedTo`.",!1,c)},{order:0});a.dataEventsToUnbind=[];a.eventsToUnbind.push(b)};w.prototype.recalculateValues=function(){var a=this.points||[],b=(this.xData||[]).length,k=this.getValues(this.linkedParent,this.options.params)||{values:[],xData:[],yData:[]},d=[],w=!0;if(b&&!this.hasGroupedData&&this.visible&&this.points)if(this.cropped){if(this.xAxis){var n=this.xAxis.min;var g=
16
+ this.xAxis.max}b=this.cropData(k.xData,k.yData,n,g);for(n=0;n<b.xData.length;n++)d.push([b.xData[n]].concat(c(b.yData[n])));b=k.xData.indexOf(this.xData[0]);n=k.xData.indexOf(this.xData[this.xData.length-1]);-1===b&&n===k.xData.length-2&&d[0][0]===a[0].x&&d.shift();this.updateData(d)}else k.xData.length!==b-1&&k.xData.length!==b+1&&(w=!1,this.updateData(k.values));w&&(this.xData=k.xData,this.yData=k.yData,this.options.data=k.values);this.calculateOn.xAxis&&this.processedXData&&(delete this.processedXData,
17
+ this.isDirty=!0,this.redraw());this.isDirtyData=!1};w.prototype.processData=function(){var c=this.options.compareToMain,b=this.linkedParent;k.prototype.processData.apply(this,arguments);this.dataModify&&b&&b.dataModify&&b.dataModify.compareValue&&c&&(this.dataModify.compareValue=b.dataModify.compareValue)};w.defaultOptions=a(l.defaultOptions,{name:void 0,tooltip:{valueDecimals:4},linkedTo:void 0,compareToMain:!1,params:{index:3,period:14}});return w}(l);g(h.prototype,{calculateOn:{chart:"init"},hasDerivedData:!0,
18
+ nameComponents:["period"],nameSuffixes:[],useCommonDataGrouping:!0});e.registerSeriesType("sma",h);"";return h});v(f,"Stock/Indicators/EMA/EMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var h=this&&this.__extends||function(){var g=function(d,a){g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var a in c)c.hasOwnProperty(a)&&(b[a]=c[a])};return g(d,a)};return function(d,a){function b(){this.constructor=
19
+ d}g(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.sma,l=e.correctFloat,p=e.isArray,t=e.merge;e=function(g){function d(){var a=null!==g&&g.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}h(d,g);d.prototype.accumulatePeriodPoints=function(a,b,c){for(var k=0,d=0,x;d<a;)x=0>b?c[d]:c[d][b],k+=x,d++;return k};d.prototype.calculateEma=function(a,b,c,k,d,x,g){a=a[c-1];b=0>x?b[c-1]:b[c-1][x];k="undefined"===typeof d?g:l(b*
20
+ k+d*(1-k));return[a,k]};d.prototype.getValues=function(a,b){var c=b.period,k=a.xData,d=(a=a.yData)?a.length:0,x=2/(c+1),g=[],e=[],h=[],r=-1;if(!(d<c)){p(a[0])&&(r=b.index?b.index:0);b=this.accumulatePeriodPoints(c,r,a);for(b/=c;c<d+1;c++){var n=this.calculateEma(k,a,c,x,n,r,b);g.push(n);e.push(n[0]);h.push(n[1]);n=n[1]}return{values:g,xData:e,yData:h}}};d.defaultOptions=t(m.defaultOptions,{params:{index:3,period:9}});return d}(m);f.registerSeriesType("ema",e);"";return e});v(f,"Stock/Indicators/AD/ADIndicator.js",
21
+ [f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var h=this&&this.__extends||function(){var g=function(d,a){g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var a in c)c.hasOwnProperty(a)&&(b[a]=c[a])};return g(d,a)};return function(d,a){function b(){this.constructor=d}g(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.sma,l=e.error,p=e.extend,t=e.merge;e=function(g){function d(){var a=
22
+ null!==g&&g.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}h(d,g);d.populateAverage=function(a,b,c,k,d){d=b[k][1];var w=b[k][2];b=b[k][3];c=c[k];return[a[k],b===d&&b===w||d===w?0:(2*b-w-d)/(d-w)*c]};d.prototype.getValues=function(a,b){var c=b.period,k=a.xData,w=a.yData,x=b.volumeSeriesID,g=a.chart.get(x);b=g&&g.yData;var e=w?w.length:0,h=[],r=[],n=[];if(!(k.length<=c&&e&&4!==w[0].length)){if(g){for(x=c;x<e;x++)a=h.length,g=d.populateAverage(k,w,b,x,c),0<a&&(g[1]+=
23
+ h[a-1][1]),h.push(g),r.push(g[0]),n.push(g[1]);return{values:h,xData:r,yData:n}}l("Series "+x+" not found! Check `volumeSeriesID`.",!0,a.chart)}};d.defaultOptions=t(m.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume"}});return d}(m);p(e.prototype,{nameComponents:!1,nameBase:"Accumulation/Distribution"});f.registerSeriesType("ad",e);"";return e});v(f,"Stock/Indicators/AO/AOIndicator.js",[f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,h){var m=
24
+ this&&this.__extends||function(){var b=function(c,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var b in a)a.hasOwnProperty(b)&&(c[b]=a[b])};return b(c,a)};return function(c,a){function k(){this.constructor=c}b(c,a);c.prototype=null===a?Object.create(a):(k.prototype=a.prototype,new k)}}();f=f.noop;var l=e.seriesTypes,p=l.sma;l=l.column;var t=h.extend,g=h.merge,d=h.correctFloat,a=h.isArray;h=function(b){function c(){var c=null!==b&&b.apply(this,
25
+ arguments)||this;c.data=void 0;c.options=void 0;c.points=void 0;return c}m(c,b);c.prototype.drawGraph=function(){var c=this.options,a=this.points,b=c.greaterBarColor;c=c.lowerBarColor;var d=a[0];if(!this.userOptions.color&&d)for(d.color=b,d=1;d<a.length;d++)a[d].color=a[d].y>a[d-1].y?b:a[d].y<a[d-1].y?c:a[d-1].color};c.prototype.getValues=function(c){var b=c.xData||[];c=c.yData||[];var k=c.length,g=[],e=[],h=[],r=0,n=0,A;if(!(34>=b.length)&&a(c[0])&&4===c[0].length){for(A=0;33>A;A++){var q=(c[A][1]+
26
+ c[A][2])/2;29<=A&&(r=d(r+q));n=d(n+q)}for(A=33;A<k;A++){q=(c[A][1]+c[A][2])/2;r=d(r+q);n=d(n+q);q=r/5;var u=n/34;q=d(q-u);g.push([b[A],q]);e.push(b[A]);h.push(q);q=A+1-5;u=A+1-34;r=d(r-(c[q][1]+c[q][2])/2);n=d(n-(c[u][1]+c[u][2])/2)}return{values:g,xData:e,yData:h}}};c.defaultOptions=g(p.defaultOptions,{params:{index:void 0,period:void 0},greaterBarColor:"#06b535",lowerBarColor:"#f21313",threshold:0,groupPadding:.2,pointPadding:.2,crisp:!1,states:{hover:{halo:{size:0}}}});return c}(p);t(h.prototype,
27
+ {nameBase:"AO",nameComponents:!1,markerAttribs:f,getColumnMetrics:l.prototype.getColumnMetrics,crispCol:l.prototype.crispCol,translate:l.prototype.translate,drawPoints:l.prototype.drawPoints});e.registerSeriesType("ao",h);"";return h});v(f,"Stock/Indicators/MultipleLinesComposition.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var h=f.seriesTypes.sma,m=e.defined,l=e.error,p=e.merge,t;(function(g){function d(c){var a,b=[];c=c||this.points;if(this.fillGraph&&this.nextPoints){if((a=
28
+ h.prototype.getGraphPath.call(this,this.nextPoints))&&a.length){a[0][0]="L";b=h.prototype.getGraphPath.call(this,c);a=a.slice(0,b.length);for(var k=a.length-1;0<=k;k--)b.push(a[k])}}else b=h.prototype.getGraphPath.apply(this,arguments);return b}function a(){var a=this,b=a.linesApiNames,k=a.areaLinesNames,d=a.points,w=a.options,g=a.graph,x={options:{gapSize:w.gapSize}},e=[],B=a.getTranslatedLinesNames(a.pointValKey),z=d.length,L;B.forEach(function(a,c){for(e[c]=[];z--;)L=d[z],e[c].push({x:L.x,plotX:L.plotX,
29
+ plotY:L[a],isNull:!m(L[a])});z=d.length});if(this.userOptions.fillColor&&k.length){var t=B.indexOf(c(k[0]));t=e[t];k=1===k.length?d:e[B.indexOf(c(k[1]))];B=a.color;a.points=k;a.nextPoints=t;a.color=this.userOptions.fillColor;a.options=p(d,x);a.graph=a.area;a.fillGraph=!0;f.seriesTypes.sma.prototype.drawGraph.call(a);a.area=a.graph;delete a.nextPoints;delete a.fillGraph;a.color=B}b.forEach(function(c,b){e[b]?(a.points=e[b],w[c]?a.options=p(w[c].styles,x):l('Error: "There is no '+c+' in DOCS options declared. Check if linesApiNames are consistent with your DOCS line names." at mixin/multiple-line.js:34'),
30
+ a.graph=a["graph"+c],h.prototype.drawGraph.call(a),a["graph"+c]=a.graph):l('Error: "'+c+" doesn't have equivalent in pointArrayMap. To many elements in linesApiNames relative to pointArrayMap.\"")});a.points=d;a.options=w;a.graph=g;h.prototype.drawGraph.call(a)}function b(a){var b=[];(this.pointArrayMap||[]).forEach(function(k){k!==a&&b.push(c(k))});return b}function c(a){return"plot"+a.charAt(0).toUpperCase()+a.slice(1)}function k(a){var c=[];(this.pointArrayMap||[]).forEach(function(b){c.push(a[b])});
31
+ return c}function w(){var a=this,c=a.pointArrayMap,b=[],k;b=a.getTranslatedLinesNames();h.prototype.translate.apply(a,arguments);a.points.forEach(function(d){c.forEach(function(c,w){k=d[c];a.dataModify&&(k=a.dataModify.modifyValue(k));null!==k&&(d[b[w]]=a.yAxis.toPixels(k,!0))})})}var x=[],e=["bottomLine"],z=["top","bottom"],L=["top"];g.compose=function(c){if(-1===x.indexOf(c)){x.push(c);var g=c.prototype;g.linesApiNames=g.linesApiNames||e.slice();g.pointArrayMap=g.pointArrayMap||z.slice();g.pointValKey=
32
+ g.pointValKey||"top";g.areaLinesNames=g.areaLinesNames||L.slice();g.drawGraph=a;g.getGraphPath=d;g.toYData=k;g.translate=w;g.getTranslatedLinesNames=b}return c}})(t||(t={}));return t});v(f,"Stock/Indicators/Aroon/AroonIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,h){function m(a,b){var c=a[0],k=0,d;for(d=1;d<a.length;d++)if("max"===b&&a[d]>=c||"min"===b&&a[d]<=c)c=a[d],k=d;return k}var l=this&&this.__extends||
33
+ function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(b,c)};return function(b,c){function k(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(k.prototype=c.prototype,new k)}}(),p=e.seriesTypes.sma,t=h.extend,g=h.merge,d=h.pick;h=function(a){function b(){var c=null!==a&&a.apply(this,arguments)||this;c.data=void 0;c.options=void 0;c.points=void 0;return c}
34
+ l(b,a);b.prototype.getValues=function(a,b){b=b.period;var c=a.xData,k=(a=a.yData)?a.length:0,g=[],e=[],h=[],r;for(r=b-1;r<k;r++){var n=a.slice(r-b+1,r+2);var A=m(n.map(function(a){return d(a[2],a)}),"min");n=m(n.map(function(a){return d(a[1],a)}),"max");n=n/b*100;A=A/b*100;c[r+1]&&(g.push([c[r+1],n,A]),e.push(c[r+1]),h.push([n,A]))}return{values:g,xData:e,yData:h}};b.defaultOptions=g(p.defaultOptions,{params:{index:void 0,period:25},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b><br/>Aroon Up: {point.y}<br/>Aroon Down: {point.aroonDown}<br/>'},
35
+ aroonDown:{styles:{lineWidth:1,lineColor:void 0}},dataGrouping:{approximation:"averages"}});return b}(p);t(h.prototype,{areaLinesNames:[],linesApiNames:["aroonDown"],nameBase:"Aroon",pointArrayMap:["y","aroonDown"],pointValKey:"y"});f.compose(h);e.registerSeriesType("aroon",h);"";return h});v(f,"Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,h){var m=this&&this.__extends||
36
+ function(){var d=function(a,b){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(a,b)};return function(a,b){function c(){this.constructor=a}d(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),l=e.seriesTypes.aroon,p=h.extend,t=h.merge,g=e.seriesTypes.aroon;h=function(d){function a(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=
37
+ void 0;return a}m(a,d);a.prototype.getValues=function(a,c){var b=[],d=[],x=[];a=g.prototype.getValues.call(this,a,c);for(c=0;c<a.yData.length;c++){var e=a.yData[c][0];var z=a.yData[c][1];e-=z;b.push([a.xData[c],e]);d.push(a.xData[c]);x.push(e)}return{values:b,xData:d,yData:x}};a.defaultOptions=t(l.defaultOptions,{tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b>: {point.y}'}});return a}(l);p(h.prototype,{nameBase:"Aroon Oscillator",linesApiNames:[],pointArrayMap:["y"],
38
+ pointValKey:"y"});f.compose(l);e.registerSeriesType("aroonoscillator",h);"";return h});v(f,"Stock/Indicators/ATR/ATRIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){function h(g,d){return Math.max(g[1]-g[2],"undefined"===typeof d?0:Math.abs(g[1]-d[3]),"undefined"===typeof d?0:Math.abs(g[2]-d[3]))}var m=this&&this.__extends||function(){var g=function(d,a){g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&
39
+ (a[b]=c[b])};return g(d,a)};return function(d,a){function b(){this.constructor=d}g(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,p=e.isArray,t=e.merge;e=function(g){function d(){var a=null!==g&&g.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}m(d,g);d.prototype.getValues=function(a,b){b=b.period;var c=a.xData,k=(a=a.yData)?a.length:0,d=1,g=0,e=0,z=[],f=[],r=[],n;var A=[[c[0],a[0]]];if(!(c.length<=b)&&p(a[0])&&
40
+ 4===a[0].length){for(n=1;n<=k;n++)if(A.push([c[n],a[n]]),b<d){var q=b;var u=c[n-1],t=h(a[n-1],a[n-2]);q=[u,(g*(q-1)+t)/q];g=q[1];z.push(q);f.push(q[0]);r.push(q[1])}else b===d?(g=e/(n-1),z.push([c[n-1],g]),f.push(c[n-1]),r.push(g)):e+=h(a[n-1],a[n-2]),d++;return{values:z,xData:f,yData:r}}};d.defaultOptions=t(l.defaultOptions,{params:{index:void 0}});return d}(l);f.registerSeriesType("atr",e);"";return e});v(f,"Stock/Indicators/BB/BBIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],
41
+ f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,h){var m=this&&this.__extends||function(){var d=function(a,b){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(a,b)};return function(a,b){function c(){this.constructor=a}d(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),l=e.seriesTypes.sma,p=h.extend,t=h.isArray,g=h.merge;h=function(d){function a(){var a=
42
+ null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}m(a,d);a.prototype.init=function(){e.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=g({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)};a.prototype.getValues=function(a,c){var b=c.period,d=c.standardDeviation,g=a.xData,B=(a=a.yData)?a.length:0,z=[],f=[],r=[],n;if(!(g.length<b)){var A=t(a[0]);for(n=b;n<=B;n++){var q=g.slice(n-b,n);var u=
43
+ a.slice(n-b,n);var h=e.seriesTypes.sma.prototype.getValues.call(this,{xData:q,yData:u},c);q=h.xData[0];h=h.yData[0];for(var m=0,l=u.length,p=0;p<l;p++){var y=(A?u[p][c.index]:u[p])-h;m+=y*y}y=Math.sqrt(m/(l-1));u=h+d*y;y=h-d*y;z.push([q,u,h,y]);f.push(q);r.push([u,h,y])}return{values:z,xData:f,yData:r}}};a.defaultOptions=g(l.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}">\u25cf</span><b> {series.name}</b><br/>Top: {point.top}<br/>Middle: {point.middle}<br/>Bottom: {point.bottom}<br/>'},
44
+ marker:{enabled:!1},dataGrouping:{approximation:"averages"}});return a}(l);p(h.prototype,{areaLinesNames:["top","bottom"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle",nameComponents:["period","standardDeviation"],linesApiNames:["topLine","bottomLine"]});f.compose(h);e.registerSeriesType("bb",h);"";return h});v(f,"Stock/Indicators/CCI/CCIIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){function h(g){return g.reduce(function(d,a){return d+a},0)}
45
+ var m=this&&this.__extends||function(){var g=function(d,a){g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return g(d,a)};return function(d,a){function b(){this.constructor=d}g(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),l=f.seriesTypes.sma,p=e.isArray,t=e.merge;e=function(g){function d(){var a=null!==g&&g.apply(this,arguments)||this;a.data=void 0;a.points=void 0;
46
+ a.options=void 0;return a}m(d,g);d.prototype.getValues=function(a,b){b=b.period;var c=a.xData,k=(a=a.yData)?a.length:0,d=[],g=1,e=[],z=[],f=[];if(!(c.length<=b)&&p(a[0])&&4===a[0].length){for(;g<b;){var r=a[g-1];d.push((r[1]+r[2]+r[3])/3);g++}for(g=b;g<=k;g++){r=a[g-1];r=(r[1]+r[2]+r[3])/3;var n=d.push(r);var A=d.slice(n-b);n=h(A)/b;var q,u=A.length,t=0;for(q=0;q<u;q++)t+=Math.abs(n-A[q]);A=t/b;r=(r-n)/(.015*A);e.push([c[g-1],r]);z.push(c[g-1]);f.push(r)}return{values:e,xData:z,yData:f}}};d.defaultOptions=
47
+ t(l.defaultOptions,{params:{index:void 0}});return d}(l);f.registerSeriesType("cci",e);"";return e});v(f,"Stock/Indicators/CMF/CMFIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var h=this&&this.__extends||function(){var e=function(f,g){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,a){d.__proto__=a}||function(d,a){for(var b in a)a.hasOwnProperty(b)&&(d[b]=a[b])};return e(f,g)};return function(f,g){function d(){this.constructor=f}e(f,g);
48
+ f.prototype=null===g?Object.create(g):(d.prototype=g.prototype,new d)}}(),m=f.seriesTypes.sma,l=e.merge;e=function(e){function f(){var g=null!==e&&e.apply(this,arguments)||this;g.data=void 0;g.options=void 0;g.points=void 0;g.volumeSeries=void 0;g.linkedParent=void 0;g.yData=void 0;g.nameBase="Chaikin Money Flow";return g}h(f,e);f.prototype.isValid=function(){var g=this.chart,d=this.options,a=this.linkedParent;g=this.volumeSeries||(this.volumeSeries=g.get(d.params.volumeSeriesID));var b=a&&a.yData&&
49
+ 4===a.yData[0].length;return!!(a&&g&&a.xData&&a.xData.length>=d.params.period&&g.xData&&g.xData.length>=d.params.period&&b)};f.prototype.getValues=function(g,d){if(this.isValid())return this.getMoneyFlow(g.xData,g.yData,this.volumeSeries.yData,d.period)};f.prototype.getMoneyFlow=function(g,d,a,b){function c(a,c){var b=a[1],k=a[2];a=a[3];return null!==c&&null!==b&&null!==k&&null!==a&&b!==k?(a-k-(b-a))/(b-k)*c:(A=n,null)}var k=d.length,w=[],e=0,B=0,z=[],f=[],r=[],n,A=-1;if(0<b&&b<=k){for(n=0;n<b;n++)w[n]=
50
+ c(d[n],a[n]),e+=a[n],B+=w[n];z.push(g[n-1]);f.push(n-A>=b&&0!==e?B/e:null);for(r.push([z[0],f[0]]);n<k;n++){w[n]=c(d[n],a[n]);e-=a[n-b];e+=a[n];B-=w[n-b];B+=w[n];var q=[g[n],n-A>=b?B/e:null];z.push(q[0]);f.push(q[1]);r.push([q[0],q[1]])}}return{values:r,xData:z,yData:f}};f.defaultOptions=l(m.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume"}});return f}(m);f.registerSeriesType("cmf",e);"";return e});v(f,"Stock/Indicators/DMI/DMIIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],
51
+ f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,h){var m=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(b,c)};return function(b,c){function k(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(k.prototype=c.prototype,new k)}}(),l=e.seriesTypes.sma,p=h.correctFloat,t=h.extend,g=h.isArray,d=h.merge;
52
+ h=function(a){function b(){var c=null!==a&&a.apply(this,arguments)||this;c.options=void 0;return c}m(b,a);b.prototype.calculateDM=function(a,b,d){var c=a[b][1],k=a[b][2],w=a[b-1][1];a=a[b-1][2];return p(c-w>a-k?d?Math.max(c-w,0):0:d?0:Math.max(a-k,0))};b.prototype.calculateDI=function(a,b){return a/b*100};b.prototype.calculateDX=function(a,b){return p(Math.abs(a-b)/Math.abs(a+b)*100)};b.prototype.smoothValues=function(a,b,d){return p(a-a/d+b)};b.prototype.getTR=function(a,b){return p(Math.max(a[1]-
53
+ a[2],b?Math.abs(a[1]-b[3]):0,b?Math.abs(a[2]-b[3]):0))};b.prototype.getValues=function(a,b){b=b.period;var c=a.xData,k=(a=a.yData)?a.length:0,d=[],e=[],f=[];if(!(c.length<=b)&&g(a[0])&&4===a[0].length){var r=0,n=0,A=0,q;for(q=1;q<k;q++)if(q<=b){var u=this.calculateDM(a,q,!0);var h=this.calculateDM(a,q);var m=this.getTR(a[q],a[q-1]);r+=u;n+=h;A+=m;q===b&&(m=this.calculateDI(r,A),h=this.calculateDI(n,A),u=this.calculateDX(r,n),d.push([c[q],u,m,h]),e.push(c[q]),f.push([u,m,h]))}else u=this.calculateDM(a,
54
+ q,!0),h=this.calculateDM(a,q),m=this.getTR(a[q],a[q-1]),r=this.smoothValues(r,u,b),n=this.smoothValues(n,h,b),A=this.smoothValues(A,m,b),m=this.calculateDI(r,A),h=this.calculateDI(n,A),u=this.calculateDX(r,n),d.push([c[q],u,m,h]),e.push(c[q]),f.push([u,m,h]);return{values:d,xData:e,yData:f}}};b.defaultOptions=d(l.defaultOptions,{params:{index:void 0},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color: {point.color}">\u25cf</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/>'},
55
+ plusDILine:{styles:{lineWidth:1,lineColor:"#06b535"}},minusDILine:{styles:{lineWidth:1,lineColor:"#f21313"}},dataGrouping:{approximation:"averages"}});return b}(l);t(h.prototype,{areaLinesNames:[],nameBase:"DMI",linesApiNames:["plusDILine","minusDILine"],pointArrayMap:["y","plusDI","minusDI"],parallelArrays:["x","y","plusDI","minusDI"],pointValKey:"y"});f.compose(h);e.registerSeriesType("dmi",h);"";return h});v(f,"Stock/Indicators/DPO/DPOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],
56
+ function(f,e){function h(a,b,c,k,w){b=d(b[c][k],b[c]);return w?g(a-b):g(a+b)}var m=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function k(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(k.prototype=c.prototype,new k)}}(),l=f.seriesTypes.sma,p=e.extend,t=e.merge,g=e.correctFloat,d=e.pick;
57
+ e=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.options=void 0;b.data=void 0;b.points=void 0;return b}m(b,a);b.prototype.getValues=function(a,b){var c=b.period;b=b.index;var k=c+Math.floor(c/2+1),g=a.xData||[];a=a.yData||[];var e=a.length,f=[],r=[],n=[],A=0,q,u;if(!(g.length<=k)){for(q=0;q<c-1;q++)A=h(A,a,q,b);for(u=0;u<=e-k;u++){var m=u+c-1;q=u+k-1;A=h(A,a,m,b);m=d(a[q][b],a[q]);m-=A/c;A=h(A,a,u,b,!0);f.push([g[q],m]);r.push(g[q]);n.push(m)}return{values:f,xData:r,yData:n}}};
58
+ b.defaultOptions=t(l.defaultOptions,{params:{index:0,period:21}});return b}(l);p(e.prototype,{nameBase:"DPO"});f.registerSeriesType("dpo",e);"";return e});v(f,"Stock/Indicators/Chaikin/ChaikinIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var h=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};
59
+ return function(b,c){function k(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(k.prototype=c.prototype,new k)}}(),m=f.seriesTypes,l=m.ad,p=m.ema,t=e.correctFloat;m=e.extend;var g=e.merge,d=e.error;e=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}h(b,a);b.prototype.getValues=function(a,b){var c=b.periods,k=b.period,g=[],e=[],f=[],r;if(2!==c.length||c[1]<=c[0])d('Error: "Chaikin requires two periods. Notice, first period should be lower than the second one."');
60
+ else if(b=l.prototype.getValues.call(this,a,{volumeSeriesID:b.volumeSeriesID,period:k}))if(a=p.prototype.getValues.call(this,b,{period:c[0]}),b=p.prototype.getValues.call(this,b,{period:c[1]}),a&&b){c=c[1]-c[0];for(r=0;r<b.yData.length;r++)k=t(a.yData[r+c]-b.yData[r]),g.push([b.xData[r],k]),e.push(b.xData[r]),f.push(k);return{values:g,xData:e,yData:f}}};b.defaultOptions=g(p.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume",period:9,periods:[3,10]}});return b}(p);m(e.prototype,{nameBase:"Chaikin Osc",
61
+ nameComponents:["periods"]});f.registerSeriesType("chaikin",e);"";return e});v(f,"Stock/Indicators/CMO/CMOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var h=this&&this.__extends||function(){var e=function(g,d){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return e(g,d)};return function(g,d){function a(){this.constructor=g}e(g,d);g.prototype=null===d?Object.create(d):
62
+ (a.prototype=d.prototype,new a)}}(),m=f.seriesTypes.sma,l=e.isNumber,p=e.merge;e=function(e){function g(){var d=null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}h(g,e);g.prototype.getValues=function(d,a){var b=a.period,c=d.xData,k=d.yData;d=k?k.length:0;var g=[],e=[],f=[],z,h=a.index;if(!(c.length<b)){l(k[0])?a=k:(h=Math.min(h,k[0].length-1),a=k.map(function(a){return a[h]}));var r=0,n=k=0;for(z=b;0<z;z--)a[z]>a[z-1]?k+=a[z]-a[z-1]:a[z]<a[z-1]&&(n+=a[z-
63
+ 1]-a[z]);r=0<k+n?100*(k-n)/(k+n):0;e.push(c[b]);f.push(r);g.push([c[b],r]);for(z=b+1;z<d;z++)r=Math.abs(a[z-b-1]-a[z-b]),a[z]>a[z-1]?k+=a[z]-a[z-1]:a[z]<a[z-1]&&(n+=a[z-1]-a[z]),a[z-b]>a[z-b-1]?k-=r:n-=r,r=0<k+n?100*(k-n)/(k+n):0,e.push(c[z]),f.push(r),g.push([c[z],r]);return{values:g,xData:e,yData:f}}};g.defaultOptions=p(m.defaultOptions,{params:{period:20,index:3}});return g}(m);f.registerSeriesType("cmo",e);"";return e});v(f,"Stock/Indicators/DEMA/DEMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],
64
+ f["Core/Utilities.js"]],function(f,e){var h=this&&this.__extends||function(){var g=function(d,a){g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return g(d,a)};return function(d,a){function b(){this.constructor=d}g(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.ema,l=e.correctFloat,p=e.isArray,t=e.merge;e=function(g){function d(){var a=null!==g&&g.apply(this,
65
+ arguments)||this;a.EMApercent=void 0;a.data=void 0;a.options=void 0;a.points=void 0;return a}h(d,g);d.prototype.getEMA=function(a,b,c,k,d,g){return m.prototype.calculateEma(g||[],a,"undefined"===typeof d?1:d,this.EMApercent,b,"undefined"===typeof k?-1:k,c)};d.prototype.getValues=function(a,b){var c=b.period,k=2*c,d=a.xData,g=(a=a.yData)?a.length:0,e=-1,f=[],h=[],r=[],n=0,A=[],q;this.EMApercent=2/(c+1);if(!(g<2*c-1)){p(a[0])&&(e=b.index?b.index:0);b=m.prototype.accumulatePeriodPoints(c,e,a);var u=
66
+ b/c;b=0;for(q=c;q<g+2;q++){q<g+1&&(n=this.getEMA(a,t,u,e,q)[1],A.push(n));var t=n;if(q<k)b+=n;else{q===k&&(u=b/c);n=A[q-c-1];var J=this.getEMA([n],J,u)[1];var y=[d[q-2],l(2*n-J)];f.push(y);h.push(y[0]);r.push(y[1])}}return{values:f,xData:h,yData:r}}};d.defaultOptions=t(m.defaultOptions);return d}(m);f.registerSeriesType("dema",e);"";return e});v(f,"Stock/Indicators/TEMA/TEMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var h=this&&this.__extends||function(){var g=
67
+ function(d,a){g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return g(d,a)};return function(d,a){function b(){this.constructor=d}g(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.ema,l=e.correctFloat,p=e.isArray,t=e.merge;e=function(g){function d(){var a=null!==g&&g.apply(this,arguments)||this;a.EMApercent=void 0;a.data=void 0;a.options=void 0;a.points=
68
+ void 0;return a}h(d,g);d.prototype.getEMA=function(a,b,c,k,d,g){return m.prototype.calculateEma(g||[],a,"undefined"===typeof d?1:d,this.EMApercent,b,"undefined"===typeof k?-1:k,c)};d.prototype.getTemaPoint=function(a,b,c,k){return[a[k-3],l(3*c.level1-3*c.level2+c.level3)]};d.prototype.getValues=function(a,b){var c=b.period,k=2*c,d=3*c,g=a.xData,e=(a=a.yData)?a.length:0,f=-1,h=[],r=[],n=[],A=[],q=[],u,t,l={};this.EMApercent=2/(c+1);if(!(e<3*c-2)){p(a[0])&&(f=b.index?b.index:0);b=m.prototype.accumulatePeriodPoints(c,
69
+ f,a);var y=b/c;b=0;for(u=c;u<e+3;u++){u<e+1&&(l.level1=this.getEMA(a,F,y,f,u)[1],A.push(l.level1));var F=l.level1;if(u<k)b+=l.level1;else{u===k&&(y=b/c,b=0);l.level1=A[u-c-1];l.level2=this.getEMA([l.level1],Q,y)[1];q.push(l.level2);var Q=l.level2;if(u<d)b+=l.level2;else{u===d&&(y=b/c);u===e+1&&(l.level1=A[u-c-1],l.level2=this.getEMA([l.level1],Q,y)[1],q.push(l.level2));l.level1=A[u-c-2];l.level2=q[u-2*c-1];l.level3=this.getEMA([l.level2],l.prevLevel3,y)[1];if(t=this.getTemaPoint(g,d,l,u))h.push(t),
70
+ r.push(t[0]),n.push(t[1]);l.prevLevel3=l.level3}}}return{values:h,xData:r,yData:n}}};d.defaultOptions=t(m.defaultOptions);return d}(m);f.registerSeriesType("tema",e);"";return e});v(f,"Stock/Indicators/TRIX/TRIXIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var h=this&&this.__extends||function(){var e=function(g,d){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=
71
+ b[c])};return e(g,d)};return function(g,d){function a(){this.constructor=g}e(g,d);g.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),m=f.seriesTypes.tema,l=e.correctFloat,p=e.merge;e=function(e){function g(){var d=null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}h(g,e);g.prototype.getTemaPoint=function(d,a,b,c){if(c>a)return[d[c-3],0!==b.prevLevel3?l(b.level3-b.prevLevel3)/b.prevLevel3*100:null]};g.defaultOptions=p(m.defaultOptions);
72
+ return g}(m);f.registerSeriesType("trix",e);"";return e});v(f,"Stock/Indicators/APO/APOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var h=this&&this.__extends||function(){var g=function(d,a){g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return g(d,a)};return function(d,a){function b(){this.constructor=d}g(d,a);d.prototype=null===a?Object.create(a):(b.prototype=
73
+ a.prototype,new b)}}(),m=f.seriesTypes.ema,l=e.extend,p=e.merge,t=e.error;e=function(g){function d(){var a=null!==g&&g.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}h(d,g);d.prototype.getValues=function(a,b){var c=b.periods,k=b.index;b=[];var d=[],g=[],e;if(2!==c.length||c[1]<=c[0])t('Error: "APO requires two periods. Notice, first period should be lower than the second one."');else{var f=m.prototype.getValues.call(this,a,{index:k,period:c[0]});a=m.prototype.getValues.call(this,
74
+ a,{index:k,period:c[1]});if(f&&a){c=c[1]-c[0];for(e=0;e<a.yData.length;e++)k=f.yData[e+c]-a.yData[e],b.push([a.xData[e],k]),d.push(a.xData[e]),g.push(k);return{values:b,xData:d,yData:g}}}};d.defaultOptions=p(m.defaultOptions,{params:{period:void 0,periods:[10,20]}});return d}(m);l(e.prototype,{nameBase:"APO",nameComponents:["periods"]});f.registerSeriesType("apo",e);"";return e});v(f,"Stock/Indicators/IKH/IKHIndicator.js",[f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],
75
+ f["Core/Utilities.js"]],function(f,e,h,m){function l(a){return a.reduce(function(a,b){return Math.max(a,b[1])},-Infinity)}function p(a){return a.reduce(function(a,b){return Math.min(a,b[2])},Infinity)}function t(a){return{high:l(a),low:p(a)}}function g(a){var b,c,k,d,g;a.series.forEach(function(a){if(a.xData)for(d=a.xData,g=c=a.xIncrement?1:d.length-1;0<g;g--)if(k=d[g]-d[g-1],"undefined"===typeof b||k<b)b=k});return b}function d(a,b,c,k){if(a&&b&&c&&k){var d=b.plotX-a.plotX;b=b.plotY-a.plotY;var g=
76
+ k.plotX-c.plotX;k=k.plotY-c.plotY;var e=a.plotX-c.plotX,w=a.plotY-c.plotY;c=(-b*e+d*w)/(-g*b+d*k);g=(g*w-k*e)/(-g*b+d*k);if(0<=c&&1>=c&&0<=g&&1>=g)return{plotX:a.plotX+g*d,plotY:a.plotY+g*b}}return!1}function a(a){var b=a.indicator;b.points=a.points;b.nextPoints=a.nextPoints;b.color=a.color;b.options=z(a.options.senkouSpan.styles,a.gap);b.graph=a.graph;b.fillGraph=!0;h.seriesTypes.sma.prototype.drawGraph.call(b)}var b=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof
77
+ Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function k(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(k.prototype=c.prototype,new k)}}(),c=f.parse,k=h.seriesTypes.sma,w=m.defined;f=m.extend;var x=m.isArray,B=m.isNumber,z=m.merge,L=m.objectEach;e.approximations["ichimoku-averages"]=function(){var a=[],b;[].forEach.call(arguments,function(c,k){a.push(e.approximations.average(c));b=!b&&"undefined"===
78
+ typeof a[k]});return b?void 0:a};m=function(e){function f(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;a.graphCollection=void 0;a.graphsenkouSpan=void 0;a.ikhMap=void 0;a.nextPoints=void 0;return a}b(f,e);f.prototype.init=function(){h.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=z({tenkanLine:{styles:{lineColor:this.color}},kijunLine:{styles:{lineColor:this.color}},chikouLine:{styles:{lineColor:this.color}},senkouSpanA:{styles:{lineColor:this.color,
79
+ fill:c(this.color).setOpacity(.5).get()}},senkouSpanB:{styles:{lineColor:this.color,fill:c(this.color).setOpacity(.5).get()}},senkouSpan:{styles:{fill:c(this.color).setOpacity(.2).get()}}},this.options)};f.prototype.toYData=function(a){return[a.tenkanSen,a.kijunSen,a.chikouSpan,a.senkouSpanA,a.senkouSpanB]};f.prototype.translate=function(){var a=this;h.seriesTypes.sma.prototype.translate.apply(a);a.points.forEach(function(b){a.pointArrayMap.forEach(function(c){var k=b[c];B(k)&&(b["plot"+c]=a.yAxis.toPixels(k,
80
+ !0),b.plotY=b["plot"+c],b.tooltipPos=[b.plotX,b["plot"+c]],b.isNull=!1)})})};f.prototype.drawGraph=function(){var b=this,c=b.points,k=c.length,g=b.options,e=b.graph,f=b.color,x={options:{gapSize:g.gapSize}},n=b.pointArrayMap.length,r=[[],[],[],[],[],[]],B={tenkanLine:r[0],kijunLine:r[1],chikouLine:r[2],senkouSpanA:r[3],senkouSpanB:r[4],senkouSpan:r[5]},m=[],l=b.options.senkouSpan,t=l.color||l.styles.fill,p=l.negativeColor,y=[[],[]],v=[[],[]],R=0,K,S,O;for(b.ikhMap=B;k--;){var D=c[k];for(K=0;K<n;K++)l=
81
+ b.pointArrayMap[K],w(D[l])&&r[K].push({plotX:D.plotX,plotY:D["plot"+l],isNull:!1});p&&k!==c.length-1&&(l=B.senkouSpanB.length-1,D=d(B.senkouSpanA[l-1],B.senkouSpanA[l],B.senkouSpanB[l-1],B.senkouSpanB[l]),K={plotX:D.plotX,plotY:D.plotY,isNull:!1,intersectPoint:!0},D&&(B.senkouSpanA.splice(l,0,K),B.senkouSpanB.splice(l,0,K),m.push(l)))}L(B,function(a,c){g[c]&&"senkouSpan"!==c&&(b.points=r[R],b.options=z(g[c].styles,x),b.graph=b["graph"+c],b.fillGraph=!1,b.color=f,h.seriesTypes.sma.prototype.drawGraph.call(b),
82
+ b["graph"+c]=b.graph);R++});b.graphCollection&&b.graphCollection.forEach(function(a){b[a].destroy();delete b[a]});b.graphCollection=[];if(p&&B.senkouSpanA[0]&&B.senkouSpanB[0]){m.unshift(0);m.push(B.senkouSpanA.length-1);for(n=0;n<m.length-1;n++){l=m[n];D=m[n+1];k=B.senkouSpanB.slice(l,D+1);l=B.senkouSpanA.slice(l,D+1);if(1<=Math.floor(k.length/2))if(D=Math.floor(k.length/2),k[D].plotY===l[D].plotY){for(O=K=D=0;O<k.length;O++)D+=k[O].plotY,K+=l[O].plotY;D=D>K?0:1}else D=k[D].plotY>l[D].plotY?0:1;
83
+ else D=k[0].plotY>l[0].plotY?0:1;y[D]=y[D].concat(k);v[D]=v[D].concat(l)}["graphsenkouSpanColor","graphsenkouSpanNegativeColor"].forEach(function(c,k){y[k].length&&v[k].length&&(S=0===k?t:p,a({indicator:b,points:y[k],nextPoints:v[k],color:S,options:g,gap:x,graph:b[c]}),b[c]=b.graph,b.graphCollection.push(c))})}else a({indicator:b,points:B.senkouSpanB,nextPoints:B.senkouSpanA,color:t,options:g,gap:x,graph:b.graphsenkouSpan}),b.graphsenkouSpan=b.graph;delete b.nextPoints;delete b.fillGraph;b.points=
84
+ c;b.options=g;b.graph=e;b.color=f};f.prototype.getGraphPath=function(a){var b=[],c;a=a||this.points;if(this.fillGraph&&this.nextPoints){if((c=h.seriesTypes.sma.prototype.getGraphPath.call(this,this.nextPoints))&&c.length){c[0][0]="L";b=h.seriesTypes.sma.prototype.getGraphPath.call(this,a);c=c.slice(0,b.length);for(var k=c.length-1;0<=k;k--)b.push(c[k])}}else b=h.seriesTypes.sma.prototype.getGraphPath.apply(this,arguments);return b};f.prototype.getValues=function(a,b){var c=b.period,k=b.periodTenkan;
85
+ b=b.periodSenkouSpanB;var d=a.xData,e=a.yData,w=e&&e.length||0;a=g(a.xAxis);var f=[],B=[],n;if(!(d.length<=c)&&x(e[0])&&4===e[0].length){var r=d[0]-c*a;for(n=0;n<c;n++)B.push(r+n*a);for(n=0;n<w;n++){if(n>=k){var h=e.slice(n-k,n);h=t(h);h=(h.high+h.low)/2}if(n>=c){var z=e.slice(n-c,n);z=t(z);z=(z.high+z.low)/2;var q=(h+z)/2}if(n>=b){var l=e.slice(n-b,n);l=t(l);l=(l.high+l.low)/2}r=e[n][3];var m=d[n];"undefined"===typeof f[n]&&(f[n]=[]);"undefined"===typeof f[n+c]&&(f[n+c]=[]);f[n+c][0]=h;f[n+c][1]=
86
+ z;f[n+c][2]=void 0;f[n][2]=r;n<=c&&(f[n+c][3]=void 0,f[n+c][4]=void 0);"undefined"===typeof f[n+2*c]&&(f[n+2*c]=[]);f[n+2*c][3]=q;f[n+2*c][4]=l;B.push(m)}for(n=1;n<=c;n++)B.push(m+n*a);return{values:f,xData:B,yData:f}}};f.defaultOptions=z(k.defaultOptions,{params:{index:void 0,period:26,periodTenkan:9,periodSenkouSpanB:52},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</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/>'},
87
+ 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"}});return f}(k);f(m.prototype,{pointArrayMap:["tenkanSen","kijunSen","chikouSpan","senkouSpanA","senkouSpanB"],pointValKey:"tenkanSen",nameComponents:["periodSenkouSpanB",
88
+ "period","periodTenkan"]});h.registerSeriesType("ikh",m);"";return m});v(f,"Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,h){var m=this&&this.__extends||function(){var d=function(a,b){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(a,b)};return function(a,
89
+ b){function c(){this.constructor=a}d(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),l=e.seriesTypes.sma,p=h.correctFloat,t=h.extend,g=h.merge;h=function(d){function a(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}m(a,d);a.prototype.init=function(){e.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=g({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)};
90
+ a.prototype.getValues=function(a,c){var b=c.period,d=c.periodATR,g=c.multiplierATR,f=a.yData;f=f?f.length:0;var h=[];c=e.seriesTypes.ema.prototype.getValues(a,{period:b,index:c.index});var l=e.seriesTypes.atr.prototype.getValues(a,{period:d}),r=[],n=[],m;if(!(f<b)){for(m=b;m<=f;m++){var q=c.values[m-b];var u=l.values[m-d];var t=q[0];a=p(q[1]+g*u[1]);u=p(q[1]-g*u[1]);q=q[1];h.push([t,a,q,u]);r.push(t);n.push([a,q,u])}return{values:h,xData:r,yData:n}}};a.defaultOptions=g(l.defaultOptions,{params:{index:0,
91
+ 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}">\u25cf</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});return a}(l);t(h.prototype,{nameBase:"Keltner Channels",areaLinesNames:["top",
92
+ "bottom"],nameComponents:["period","periodATR","multiplierATR"],linesApiNames:["topLine","bottomLine"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});f.compose(h);e.registerSeriesType("keltnerchannels",h);"";return h});v(f,"Stock/Indicators/Klinger/KlingerIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,h){var m=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof
93
+ Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function k(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(k.prototype=c.prototype,new k)}}(),l=e.seriesTypes,p=l.sma,t=l.ema,g=h.correctFloat,d=h.error;l=h.extend;var a=h.isArray,b=h.merge;h=function(c){function k(){var a=null!==c&&c.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;a.volumeSeries=void 0;return a}m(k,c);
94
+ k.prototype.calculateTrend=function(a,b){return a[b][1]+a[b][2]+a[b][3]>a[b-1][1]+a[b-1][2]+a[b-1][3]?1:-1};k.prototype.isValidData=function(b){var c=this.chart,k=this.options,g=this.linkedParent;b=a(b)&&4===b.length;(c=this.volumeSeries||(this.volumeSeries=c.get(k.params.volumeSeriesID)))||d("Series "+k.params.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,g.chart);return!(![g,c].every(function(a){return a&&a.xData&&a.xData.length>=k.params.slowAvgPeriod})||!b)};k.prototype.getCM=function(a,
95
+ b,c,k,d){return g(b+(c===k?a:d))};k.prototype.getDM=function(a,b){return g(a-b)};k.prototype.getVolumeForce=function(a){var b=[],c=1;var k=0;var d=a[0][1]-a[0][2];var g=0;for(c;c<a.length;c++){var e=this.calculateTrend(a,c);var f=this.getDM(a[c][1],a[c][2]);k=this.getCM(k,f,e,g,d);g=this.volumeSeries.yData[c]*e*Math.abs(2*(f/k-1))*100;b.push([g]);g=e;d=f}return b};k.prototype.getEMA=function(a,b,c,k,d,g,e){return t.prototype.calculateEma(e||[],a,"undefined"===typeof g?1:g,k,b,"undefined"===typeof d?
96
+ -1:d,c)};k.prototype.getSMA=function(a,b,c){return t.prototype.accumulatePeriodPoints(a,b,c)/a};k.prototype.getValues=function(a,b){var c=[],k=a.xData;a=a.yData;var d=[],e=[],f=[],w,h=0,x=0,l=void 0,m=void 0,t=null;if(this.isValidData(a[0])){var p=this.getVolumeForce(a),y=this.getSMA(b.fastAvgPeriod,0,p),C=this.getSMA(b.slowAvgPeriod,0,p),N=2/(b.fastAvgPeriod+1),v=2/(b.slowAvgPeriod+1);for(h;h<a.length;h++)h>=b.fastAvgPeriod&&(l=x=this.getEMA(p,l,y,N,0,h,k)[1]),h>=b.slowAvgPeriod&&(m=w=this.getEMA(p,
97
+ m,C,v,0,h,k)[1],w=g(x-w),f.push(w),f.length>=b.signalPeriod&&(t=f.slice(-b.signalPeriod).reduce(function(a,b){return a+b})/b.signalPeriod),c.push([k[h],w,t]),d.push(k[h]),e.push([w,t]));return{values:c,xData:d,yData:e}}};k.defaultOptions=b(p.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}">\u25cf</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/>'}});
98
+ return k}(p);l(h.prototype,{areaLinesNames:[],linesApiNames:["signalLine"],nameBase:"Klinger",nameComponents:["fastAvgPeriod","slowAvgPeriod"],pointArrayMap:["y","signal"],parallelArrays:["x","y","signal"],pointValKey:"y"});f.compose(h);e.registerSeriesType("klinger",h);"";return h});v(f,"Stock/Indicators/MACD/MACDIndicator.js",[f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,h){var m=this&&this.__extends||function(){var a=function(b,k){a=Object.setPrototypeOf||
99
+ {__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,k)};return function(b,k){function c(){this.constructor=b}a(b,k);b.prototype=null===k?Object.create(k):(c.prototype=k.prototype,new c)}}(),l=f.noop,p=e.seriesTypes.sma,t=h.extend,g=h.correctFloat,d=h.defined,a=h.merge;h=function(b){function c(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;a.currentLineZone=void 0;a.graphmacd=
100
+ void 0;a.graphsignal=void 0;a.macdZones=void 0;a.signalZones=void 0;return a}m(c,b);c.prototype.init=function(){e.seriesTypes.sma.prototype.init.apply(this,arguments);this.options&&(this.options=a({signalLine:{styles:{lineColor:this.color}},macdLine:{styles:{color:this.color}}},this.options),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.resetZones=!0)};
101
+ c.prototype.toYData=function(a){return[a.y,a.signal,a.MACD]};c.prototype.translate=function(){var a=this,b=["plotSignal","plotMACD"];f.seriesTypes.column.prototype.translate.apply(a);a.points.forEach(function(c){[c.signal,c.MACD].forEach(function(k,d){null!==k&&(c[b[d]]=a.yAxis.toPixels(k,!0))})})};c.prototype.destroy=function(){this.graph=null;this.graphmacd=this.graphmacd&&this.graphmacd.destroy();this.graphsignal=this.graphsignal&&this.graphsignal.destroy();e.seriesTypes.sma.prototype.destroy.apply(this,
102
+ arguments)};c.prototype.drawGraph=function(){for(var b=this,c=b.points,g=c.length,f=b.options,h=b.zones,l={options:{gapSize:f.gapSize}},r=[[],[]],n;g--;)n=c[g],d(n.plotMACD)&&r[0].push({plotX:n.plotX,plotY:n.plotMACD,isNull:!d(n.plotMACD)}),d(n.plotSignal)&&r[1].push({plotX:n.plotX,plotY:n.plotSignal,isNull:!d(n.plotMACD)});["macd","signal"].forEach(function(c,k){b.points=r[k];b.options=a(f[c+"Line"].styles,l);b.graph=b["graph"+c];b.currentLineZone=c+"Zones";b.zones=b[b.currentLineZone].zones;e.seriesTypes.sma.prototype.drawGraph.call(b);
103
+ b["graph"+c]=b.graph});b.points=c;b.options=f;b.zones=h;b.currentLineZone=null};c.prototype.getZonesGraphs=function(a){var c=b.prototype.getZonesGraphs.call(this,a),k=c;this.currentLineZone&&(k=c.splice(this[this.currentLineZone].startIndex+1),k.length?k.splice(0,0,a[0]):k=[a[0]]);return k};c.prototype.applyZones=function(){var a=this.zones;this.zones=this.signalZones.zones;e.seriesTypes.sma.prototype.applyZones.call(this);this.graphmacd&&this.options.macdLine.zones.length&&this.graphmacd.hide();
104
+ this.zones=a};c.prototype.getValues=function(a,b){var c=b.longPeriod-b.shortPeriod,k=0,f=[],h=[],r=[];if(!(a.xData.length<b.longPeriod+b.signalPeriod)){var n=e.seriesTypes.ema.prototype.getValues(a,{period:b.shortPeriod,index:b.index});var w=e.seriesTypes.ema.prototype.getValues(a,{period:b.longPeriod,index:b.index});n=n.values;w=w.values;for(a=0;a<=n.length;a++)d(w[a])&&d(w[a][1])&&d(n[a+c])&&d(n[a+c][0])&&f.push([n[a+c][0],0,null,n[a+c][1]-w[a][1]]);for(a=0;a<f.length;a++)h.push(f[a][0]),r.push([0,
105
+ null,f[a][3]]);b=e.seriesTypes.ema.prototype.getValues({xData:h,yData:r},{period:b.signalPeriod,index:2});b=b.values;for(a=0;a<f.length;a++)f[a][0]>=b[0][0]&&(f[a][2]=b[k][1],r[a]=[0,b[k][1],f[a][3]],null===f[a][3]?(f[a][1]=0,r[a][0]=0):(f[a][1]=g(f[a][3]-b[k][1]),r[a][0]=g(f[a][3]-b[k][1])),k++);return{values:f,xData:h,yData:r}}};c.defaultOptions=a(p.defaultOptions,{params:{shortPeriod:12,longPeriod:26,signalPeriod:9,period:26},signalLine:{zones:[],styles:{lineWidth:1,lineColor:void 0}},macdLine:{zones:[],
106
+ 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}">\u25cf</span> <b> {series.name}</b><br/>Value: {point.MACD}<br/>Signal: {point.signal}<br/>Histogram: {point.y}<br/>'},dataGrouping:{approximation:"averages"},minPointLength:0});return c}(p);t(h.prototype,{nameComponents:["longPeriod","shortPeriod","signalPeriod"],pointArrayMap:["y","signal","MACD"],parallelArrays:["x","y",
107
+ "signal","MACD"],pointValKey:"y",markerAttribs:l,getColumnMetrics:f.seriesTypes.column.prototype.getColumnMetrics,crispCol:f.seriesTypes.column.prototype.crispCol,drawPoints:f.seriesTypes.column.prototype.drawPoints});e.registerSeriesType("macd",h);"";return h});v(f,"Stock/Indicators/MFI/MFIIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){function h(a){return a.reduce(function(a,b){return a+b})}function m(a){return(a[1]+a[2]+a[3])/3}var l=this&&this.__extends||
108
+ function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function c(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)}}(),p=f.seriesTypes.sma,t=e.extend,g=e.merge,d=e.error,a=e.isArray;e=function(b){function c(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=
109
+ void 0;return a}l(c,b);c.prototype.getValues=function(b,c){var k=c.period,g=b.xData,e=b.yData,f=e?e.length:0,r=c.decimals,n=1,w=b.chart.get(c.volumeSeriesID),q=w&&w.yData,l=[],t=[],p=[],y=[],F=[];if(!w)d("Series "+c.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,b.chart);else if(!(g.length<=k)&&a(e[0])&&4===e[0].length&&q){for(b=m(e[n]);n<k+1;)c=b,b=m(e[n]),c=b>=c,w=b*q[n],y.push(c?w:0),F.push(c?0:w),n++;for(k=n-1;k<f;k++)k>n-1&&(y.shift(),F.shift(),c=b,b=m(e[k]),c=b>c,w=b*q[k],y.push(c?
110
+ w:0),F.push(c?0:w)),c=h(F),w=h(y),c=w/c,c=parseFloat((100-100/(1+c)).toFixed(r)),l.push([g[k],c]),t.push(g[k]),p.push(c);return{values:l,xData:t,yData:p}}};c.defaultOptions=g(p.defaultOptions,{params:{index:void 0,volumeSeriesID:"volume",decimals:4}});return c}(p);t(e.prototype,{nameBase:"Money Flow Index"});f.registerSeriesType("mfi",e);"";return e});v(f,"Stock/Indicators/Momentum/MomentumIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var h=this&&this.__extends||
111
+ function(){var g=function(d,a){g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return g(d,a)};return function(d,a){function b(){this.constructor=d}g(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.sma,l=e.extend,p=e.isArray,t=e.merge;e=function(g){function d(){var a=null!==g&&g.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;
112
+ return a}h(d,g);d.prototype.getValues=function(a,b){var c=b.period;b=b.index;var d=a.xData,g=(a=a.yData)?a.length:0,e=[],f=[],h=[],l;if(!(d.length<=c)&&p(a[0])){for(l=c+1;l<g;l++){var r=[d[l-1],a[l-1][b]-a[l-c-1][b]];e.push(r);f.push(r[0]);h.push(r[1])}r=[d[l-1],a[l-1][b]-a[l-c-1][b]];e.push(r);f.push(r[0]);h.push(r[1]);return{values:e,xData:f,yData:h}}};d.defaultOptions=t(m.defaultOptions,{params:{index:3}});return d}(m);l(e.prototype,{nameBase:"Momentum"});f.registerSeriesType("momentum",e);"";
113
+ return e});v(f,"Stock/Indicators/NATR/NATRIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var h=this&&this.__extends||function(){var e=function(f,g){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,a){d.__proto__=a}||function(d,a){for(var b in a)a.hasOwnProperty(b)&&(d[b]=a[b])};return e(f,g)};return function(f,g){function d(){this.constructor=f}e(f,g);f.prototype=null===g?Object.create(g):(d.prototype=g.prototype,new d)}}(),m=f.seriesTypes.atr,
114
+ l=e.merge;e=function(e){function f(){var g=null!==e&&e.apply(this,arguments)||this;g.data=void 0;g.points=void 0;g.options=void 0;return g}h(f,e);f.prototype.getValues=function(e,d){var a=m.prototype.getValues.apply(this,arguments),b=a.values.length,c=d.period-1,k=e.yData,g=0;if(a){for(;g<b;g++)a.yData[g]=a.values[g][1]/k[c][3]*100,a.values[g][1]=a.yData[g],c++;return a}};f.defaultOptions=l(m.defaultOptions,{tooltip:{valueSuffix:"%"}});return f}(m);f.registerSeriesType("natr",e);"";return e});v(f,
115
+ "Stock/Indicators/OBV/OBVIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var h=this&&this.__extends||function(){var d=function(a,b){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(a,b)};return function(a,b){function c(){this.constructor=a}d(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),m=f.seriesTypes.sma,l=e.isNumber,
116
+ p=e.error,t=e.extend,g=e.merge;e=function(d){function a(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.points=void 0;a.options=void 0;return a}h(a,d);a.prototype.getValues=function(a,c){var b=a.chart.get(c.volumeSeriesID),d=a.xData,g=a.yData,e=[],f=[],h=[],r=!l(g[0]),n=1,m=0;if(b){b=b.yData;a=[d[0],m];var q=r?g[0][3]:g[0];e.push(a);f.push(d[0]);h.push(a[1]);for(n;n<g.length;n++)c=r?g[n][3]:g[n],m=c>q?m+b[n]:c===q?m:m-b[n],a=[d[n],m],q=c,e.push(a),f.push(d[n]),h.push(a[1]);return{values:e,
117
+ xData:f,yData:h}}p("Series "+c.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,a.chart)};a.defaultOptions=g(m.defaultOptions,{marker:{enabled:!1},params:{index:void 0,period:void 0,volumeSeriesID:"volume"},tooltip:{valueDecimals:0}});return a}(m);t(e.prototype,{nameComponents:void 0});f.registerSeriesType("obv",e);"";return e});v(f,"Stock/Indicators/PivotPoints/PivotPointsPoint.js",[f["Core/Series/SeriesRegistry.js"]],function(f){function e(e,h){var l=e.series.pointArrayMap,m=l.length;for(f.seriesTypes.sma.prototype.pointClass.prototype[h].call(e);m--;)h=
118
+ "dataLabel"+l[m],e[h]&&e[h].element&&e[h].destroy(),e[h]=null}var h=this&&this.__extends||function(){var e=function(f,h){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,g){e.__proto__=g}||function(e,g){for(var d in g)g.hasOwnProperty(d)&&(e[d]=g[d])};return e(f,h)};return function(f,h){function l(){this.constructor=f}e(f,h);f.prototype=null===h?Object.create(h):(l.prototype=h.prototype,new l)}}();return function(f){function l(){var e=null!==f&&f.apply(this,arguments)||this;e.P=
119
+ void 0;e.pivotLine=void 0;e.series=void 0;return e}h(l,f);l.prototype.destroyElements=function(){e(this,"destroyElements")};l.prototype.destroy=function(){e(this,"destroyElements")};return l}(f.seriesTypes.sma.prototype.pointClass)});v(f,"Stock/Indicators/PivotPoints/PivotPointsIndicator.js",[f["Stock/Indicators/PivotPoints/PivotPointsPoint.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,h){var m=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||
120
+ {__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),l=e.seriesTypes.sma,p=h.merge,t=h.extend,g=h.defined,d=h.isArray;h=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;b.endPoint=void 0;b.plotEndPoint=void 0;return b}
121
+ m(b,a);b.prototype.toYData=function(a){return[a.P]};b.prototype.translate=function(){var a=this;e.seriesTypes.sma.prototype.translate.apply(a);a.points.forEach(function(b){a.pointArrayMap.forEach(function(c){g(b[c])&&(b["plot"+c]=a.yAxis.toPixels(b[c],!0))})});a.plotEndPoint=a.xAxis.toPixels(a.endPoint,!0)};b.prototype.getGraphPath=function(a){for(var b=this,c=a.length,d=[[],[],[],[],[],[],[],[],[]],f=[],h=b.plotEndPoint,l=b.pointArrayMap.length,r,n,m;c--;){n=a[c];for(m=0;m<l;m++)r=b.pointArrayMap[m],
122
+ g(n[r])&&d[m].push({plotX:n.plotX,plotY:n["plot"+r],isNull:!1},{plotX:h,plotY:n["plot"+r],isNull:!1},{plotX:h,plotY:null,isNull:!0});h=n.plotX}d.forEach(function(a){f=f.concat(e.seriesTypes.sma.prototype.getGraphPath.call(b,a))});return f};b.prototype.drawDataLabels=function(){var a=this,b=a.pointArrayMap,d,g,f;if(a.options.dataLabels.enabled){var h=a.points.length;b.concat([!1]).forEach(function(c,k){for(f=h;f--;)g=a.points[f],c?(g.y=g[c],g.pivotLine=c,g.plotY=g["plot"+c],d=g["dataLabel"+c],k&&(g["dataLabel"+
123
+ b[k-1]]=g.dataLabel),g.dataLabels||(g.dataLabels=[]),g.dataLabels[0]=g.dataLabel=d=d&&d.element?d:null):g["dataLabel"+b[k-1]]=g.dataLabel;e.seriesTypes.sma.prototype.drawDataLabels.apply(a,arguments)})}};b.prototype.getValues=function(a,b){var c=b.period,k=a.xData,g=(a=a.yData)?a.length:0;b=this[b.algorithm+"Placement"];var e=[],f=[],h=[],n;if(!(k.length<c)&&d(a[0])&&4===a[0].length){for(n=c+1;n<=g+c;n+=c){var l=k.slice(n-c-1,n);var q=a.slice(n-c-1,n);var m=l.length;var t=l[m-1];q=this.getPivotAndHLC(q);
124
+ q=b(q);q=e.push([t].concat(q));f.push(t);h.push(e[q-1].slice(1))}this.endPoint=l[0]+(t-l[0])/m*c;return{values:e,xData:f,yData:h}}};b.prototype.getPivotAndHLC=function(a){var b=-Infinity,c=Infinity,d=a[a.length-1][3];a.forEach(function(a){b=Math.max(b,a[1]);c=Math.min(c,a[2])});return[(b+c+d)/3,b,c,d]};b.prototype.standardPlacement=function(a){var b=a[1]-a[2];return[null,null,a[0]+b,2*a[0]-a[2],a[0],2*a[0]-a[1],a[0]-b,null,null]};b.prototype.camarillaPlacement=function(a){var b=a[1]-a[2];return[a[3]+
125
+ 1.5*b,a[3]+1.25*b,a[3]+1.1666*b,a[3]+1.0833*b,a[0],a[3]-1.0833*b,a[3]-1.1666*b,a[3]-1.25*b,a[3]-1.5*b]};b.prototype.fibonacciPlacement=function(a){var b=a[1]-a[2];return[null,a[0]+b,a[0]+.618*b,a[0]+.382*b,a[0],a[0]-.382*b,a[0]-.618*b,a[0]-b,null]};b.defaultOptions=p(l.defaultOptions,{params:{index:void 0,period:28,algorithm:"standard"},marker:{enabled:!1},enableMouseTracking:!1,dataLabels:{enabled:!0,format:"{point.pivotLine}"},dataGrouping:{approximation:"averages"}});return b}(l);t(h.prototype,
126
+ {nameBase:"Pivot Points",pointArrayMap:"R4 R3 R2 R1 P S1 S2 S3 S4".split(" "),pointValKey:"P",pointClass:f});e.registerSeriesType("pivotpoints",h);"";return h});v(f,"Stock/Indicators/PPO/PPOIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var h=this&&this.__extends||function(){var d=function(a,b){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(a,b)};
127
+ return function(a,b){function c(){this.constructor=a}d(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),m=f.seriesTypes.ema,l=e.correctFloat,p=e.extend,t=e.merge,g=e.error;e=function(d){function a(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}h(a,d);a.prototype.getValues=function(a,c){var b=c.periods,d=c.index;c=[];var e=[],f=[],h;if(2!==b.length||b[1]<=b[0])g('Error: "PPO requires two periods. Notice, first period should be lower than the second one."');
128
+ else{var t=m.prototype.getValues.call(this,a,{index:d,period:b[0]});a=m.prototype.getValues.call(this,a,{index:d,period:b[1]});if(t&&a){b=b[1]-b[0];for(h=0;h<a.yData.length;h++)d=l((t.yData[h+b]-a.yData[h])/a.yData[h]*100),c.push([a.xData[h],d]),e.push(a.xData[h]),f.push(d);return{values:c,xData:e,yData:f}}}};a.defaultOptions=t(m.defaultOptions,{params:{period:void 0,periods:[12,26]}});return a}(m);p(e.prototype,{nameBase:"PPO",nameComponents:["periods"]});f.registerSeriesType("ppo",e);"";return e});
129
+ v(f,"Stock/Indicators/ArrayUtilities.js",[],function(){return{getArrayExtremes:function(f,e,h){return f.reduce(function(f,l){return[Math.min(f[0],l[e]),Math.max(f[1],l[h])]},[Number.MAX_VALUE,-Number.MAX_VALUE])}}});v(f,"Stock/Indicators/PC/PCIndicator.js",[f["Stock/Indicators/ArrayUtilities.js"],f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Color/Palettes.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,h,m,l){var p=this&&this.__extends||function(){var a=function(b,
130
+ c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),t=m.seriesTypes.sma,g=l.merge;l=l.extend;var d=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}p(b,a);b.prototype.getValues=
131
+ function(a,b){b=b.period;var c=a.xData,d=(a=a.yData)?a.length:0,e=[],g=[],k=[],h;if(!(d<b)){for(h=b;h<=d;h++){var n=c[h-1];var l=a.slice(h-b,h);var q=f.getArrayExtremes(l,2,1);l=q[1];var m=q[0];q=(l+m)/2;e.push([n,l,q,m]);g.push(n);k.push([l,q,m])}return{values:e,xData:g,yData:k}}};b.defaultOptions=g(t.defaultOptions,{params:{index:void 0,period:20},lineWidth:1,topLine:{styles:{lineColor:h.colors[2],lineWidth:1}},bottomLine:{styles:{lineColor:h.colors[8],lineWidth:1}},dataGrouping:{approximation:"averages"}});
132
+ return b}(t);l(d.prototype,{areaLinesNames:["top","bottom"],nameBase:"Price Channel",nameComponents:["period"],linesApiNames:["topLine","bottomLine"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});e.compose(d);m.registerSeriesType("pc",d);"";return d});v(f,"Stock/Indicators/PriceEnvelopes/PriceEnvelopesIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var h=this&&this.__extends||function(){var e=function(d,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof
133
+ Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return e(d,a)};return function(d,a){function b(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.sma,l=e.extend,p=e.isArray,t=e.merge;e=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}h(d,e);d.prototype.init=function(){f.seriesTypes.sma.prototype.init.apply(this,
134
+ arguments);this.options=t({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)};d.prototype.toYData=function(a){return[a.top,a.middle,a.bottom]};d.prototype.translate=function(){var a=this,b=["plotTop","plotMiddle","plotBottom"];f.seriesTypes.sma.prototype.translate.apply(a);a.points.forEach(function(c){[c.top,c.middle,c.bottom].forEach(function(d,e){null!==d&&(c[b[e]]=a.yAxis.toPixels(d,!0))})})};d.prototype.drawGraph=function(){for(var a=this,b=a.points,
135
+ c=b.length,d=a.options,e=a.graph,g={options:{gapSize:d.gapSize}},h=[[],[]],l;c--;)l=b[c],h[0].push({plotX:l.plotX,plotY:l.plotTop,isNull:l.isNull}),h[1].push({plotX:l.plotX,plotY:l.plotBottom,isNull:l.isNull});["topLine","bottomLine"].forEach(function(b,c){a.points=h[c];a.options=t(d[b].styles,g);a.graph=a["graph"+b];f.seriesTypes.sma.prototype.drawGraph.call(a);a["graph"+b]=a.graph});a.points=b;a.options=d;a.graph=e;f.seriesTypes.sma.prototype.drawGraph.call(a)};d.prototype.getValues=function(a,
136
+ b){var c=b.period,d=b.topBand,e=b.bottomBand,g=a.xData,h=(a=a.yData)?a.length:0,l=[],m=[],r=[],n;if(!(g.length<c)&&p(a[0])&&4===a[0].length){for(n=c;n<=h;n++){var t=g.slice(n-c,n);var q=a.slice(n-c,n);q=f.seriesTypes.sma.prototype.getValues.call(this,{xData:t,yData:q},b);t=q.xData[0];q=q.yData[0];var u=q*(1+d);var P=q*(1-e);l.push([t,u,q,P]);m.push(t);r.push([u,q,P])}return{values:l,xData:m,yData:r}}};d.defaultOptions=t(m.defaultOptions,{marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b><br/>Top: {point.top}<br/>Middle: {point.middle}<br/>Bottom: {point.bottom}<br/>'},
137
+ params:{period:20,topBand:.1,bottomBand:.1},bottomLine:{styles:{lineWidth:1,lineColor:void 0}},topLine:{styles:{lineWidth:1}},dataGrouping:{approximation:"averages"}});return d}(m);l(e.prototype,{nameComponents:["period","topBand","bottomBand"],nameBase:"Price envelopes",pointArrayMap:["top","middle","bottom"],parallelArrays:["x","y","top","bottom"],pointValKey:"middle"});f.registerSeriesType("priceenvelopes",e);"";return e});v(f,"Stock/Indicators/PSAR/PSARIndicator.js",[f["Core/Series/SeriesRegistry.js"],
138
+ f["Core/Utilities.js"]],function(f,e){var h=this&&this.__extends||function(){var e=function(g,d){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return e(g,d)};return function(g,d){function a(){this.constructor=g}e(g,d);g.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),m=f.seriesTypes.sma,l=e.merge;e=e.extend;var p=function(e){function g(){var d=null!==e&&e.apply(this,arguments)||
139
+ this;d.data=void 0;d.points=void 0;d.options=void 0;return d}h(g,e);g.prototype.getValues=function(d,a){var b=d.xData;d=d.yData;var c=d[0][1],e=a.maxAccelerationFactor,g=a.increment,f=a.initialAccelerationFactor,h=d[0][2],l=a.decimals,m=a.index,r=[],n=[],t=[],q=1,u;if(!(m>=d.length)){for(u=0;u<m;u++)c=Math.max(d[u][1],c),h=Math.min(d[u][2],parseFloat(h.toFixed(l)));var p=d[u][1]>h?1:-1;a=a.initialAccelerationFactor;var J=a*(c-h);r.push([b[m],h]);n.push(b[m]);t.push(parseFloat(h.toFixed(l)));for(u=
140
+ m+1;u<d.length;u++){m=d[u-1][2];var y=d[u-2][2];var F=d[u-1][1];var v=d[u-2][1];var C=d[u][1];var N=d[u][2];null!==y&&null!==v&&null!==m&&null!==F&&null!==C&&null!==N&&(h=p===q?1===p?h+J<Math.min(y,m)?h+J:Math.min(y,m):h+J>Math.max(v,F)?h+J:Math.max(v,F):c,m=1===p?C>c?C:c:N<c?N:c,C=1===q&&N>h||-1===q&&C>h?1:-1,q=C,J=m,N=g,y=e,F=f,a=q===p?1===q&&J>c?a===y?y:parseFloat((a+N).toFixed(2)):-1===q&&J<c?a===y?y:parseFloat((a+N).toFixed(2)):a:F,c=m-h,J=a*c,r.push([b[u],parseFloat(h.toFixed(l))]),n.push(b[u]),
141
+ t.push(parseFloat(h.toFixed(l))),q=p,p=C,c=m)}return{values:r,xData:n,yData:t}}};g.defaultOptions=l(m.defaultOptions,{lineWidth:0,marker:{enabled:!0},states:{hover:{lineWidthPlus:0}},params:{period:void 0,initialAccelerationFactor:.02,maxAccelerationFactor:.2,increment:.02,index:2,decimals:4}});return g}(m);e(p.prototype,{nameComponents:void 0});f.registerSeriesType("psar",p);"";return p});v(f,"Stock/Indicators/ROC/ROCIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,
142
+ e){var h=this&&this.__extends||function(){var e=function(d,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return e(d,a)};return function(d,a){function b(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.sma,l=e.isArray,p=e.merge;e=e.extend;var t=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;
143
+ a.options=void 0;a.points=void 0;return a}h(d,e);d.prototype.getValues=function(a,b){var c=b.period,d=a.xData,e=(a=a.yData)?a.length:0,g=[],f=[],h=[],m=-1;if(!(d.length<=c)){l(a[0])&&(m=b.index);for(b=c;b<e;b++){var r=0>m?(r=a[b-c])?(a[b]-r)/r*100:null:(r=a[b-c][m])?(a[b][m]-r)/r*100:null;r=[d[b],r];g.push(r);f.push(r[0]);h.push(r[1])}return{values:g,xData:f,yData:h}}};d.defaultOptions=p(m.defaultOptions,{params:{index:3,period:9}});return d}(m);e(t.prototype,{nameBase:"Rate of Change"});f.registerSeriesType("roc",
144
+ t);"";return t});v(f,"Stock/Indicators/RSI/RSIIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var h=this&&this.__extends||function(){var e=function(f,d){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return e(f,d)};return function(f,d){function a(){this.constructor=f}e(f,d);f.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),m=f.seriesTypes.sma,
145
+ l=e.isNumber,p=e.merge;e=function(e){function f(){var d=null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.points=void 0;d.options=void 0;return d}h(f,e);f.prototype.getValues=function(d,a){var b=a.period,c=d.xData,e=d.yData;d=e?e.length:0;var f=a.decimals,g=1,h=[],m=[],t=[],r=a.index,n=a=0,p;if(!(c.length<b)){if(l(e[0]))var q=e;else r=Math.min(r,e[0].length-1),q=e.map(function(a){return a[r]});for(;g<b;){var u=parseFloat((q[g]-q[g-1]).toFixed(f));0<u?a+=u:n+=Math.abs(u);g++}e=parseFloat((a/
146
+ (b-1)).toFixed(f));for(p=parseFloat((n/(b-1)).toFixed(f));g<d;g++)u=parseFloat((q[g]-q[g-1]).toFixed(f)),0<u?(a=u,n=0):(a=0,n=Math.abs(u)),e=parseFloat(((e*(b-1)+a)/b).toFixed(f)),p=parseFloat(((p*(b-1)+n)/b).toFixed(f)),a=0===p?100:0===e?0:parseFloat((100-100/(1+e/p)).toFixed(f)),h.push([c[g],a]),m.push(c[g]),t.push(a);return{values:h,xData:m,yData:t}}};f.defaultOptions=p(m.defaultOptions,{params:{decimals:4,index:3}});return f}(m);f.registerSeriesType("rsi",e);"";return e});v(f,"Stock/Indicators/Stochastic/StochasticIndicator.js",
147
+ [f["Stock/Indicators/ArrayUtilities.js"],f["Stock/Indicators/MultipleLinesComposition.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,h,m){var l=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=
148
+ c.prototype,new d)}}(),p=h.seriesTypes.sma,t=m.extend,g=m.isArray,d=m.merge;m=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}l(b,a);b.prototype.init=function(){h.seriesTypes.sma.prototype.init.apply(this,arguments);this.options=d({smoothedLine:{styles:{lineColor:this.color}}},this.options)};b.prototype.getValues=function(a,b){var c=b.periods[0];b=b.periods[1];var d=a.xData,e=(a=a.yData)?a.length:0,k=[],l=[],m=[],n=null,
149
+ t;if(!(e<c)&&g(a[0])&&4===a[0].length){for(t=c-1;t<e;t++){var q=a.slice(t-c+1,t+1);var u=f.getArrayExtremes(q,2,1);var p=u[0];q=a[t][3]-p;p=u[1]-p;q=q/p*100;l.push(d[t]);m.push([q,null]);t>=c-1+(b-1)&&(n=h.seriesTypes.sma.prototype.getValues.call(this,{xData:l.slice(-b),yData:m.slice(-b)},{period:b}),n=n.yData[0]);k.push([d[t],q,n]);m[m.length-1][1]=n}return{values:k,xData:l,yData:m}}};b.defaultOptions=d(p.defaultOptions,{params:{index:void 0,period:void 0,periods:[14,3]},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span><b> {series.name}</b><br/>%K: {point.y}<br/>%D: {point.smoothed}<br/>'},
150
+ smoothedLine:{styles:{lineWidth:1,lineColor:void 0}},dataGrouping:{approximation:"averages"}});return b}(p);t(m.prototype,{areaLinesNames:[],nameComponents:["periods"],nameBase:"Stochastic",pointArrayMap:["y","smoothed"],parallelArrays:["x","y","smoothed"],pointValKey:"y",linesApiNames:["smoothedLine"]});e.compose(m);h.registerSeriesType("stochastic",m);"";return m});v(f,"Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,
151
+ e){var h=this&&this.__extends||function(){var e=function(d,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return e(d,a)};return function(d,a){function b(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.stochastic,l=f.seriesTypes,p=e.extend,t=e.merge;e=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data=
152
+ void 0;a.options=void 0;a.points=void 0;return a}h(d,e);d.prototype.getValues=function(a,b){var c=b.periods,d=l.stochastic.prototype.getValues.call(this,a,b);a={values:[],xData:[],yData:[]};b=0;if(d){a.xData=d.xData.slice(c[1]-1);d=d.yData.slice(c[1]-1);var e=l.sma.prototype.getValues.call(this,{xData:a.xData,yData:d},{index:1,period:c[2]});if(e){for(var f=a.xData.length;b<f;b++)a.yData[b]=[d[b][1],e.yData[b-c[2]+1]||null],a.values[b]=[a.xData[b],d[b][1],e.yData[b-c[2]+1]||null];return a}}};d.defaultOptions=
153
+ t(m.defaultOptions,{params:{periods:[14,3,3]}});return d}(m);p(e.prototype,{nameBase:"Slow Stochastic"});f.registerSeriesType("slowstochastic",e);"";return e});v(f,"Stock/Indicators/Supertrend/SupertrendIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"],f["Core/Chart/StockChart.js"]],function(f,e,h){function m(a,b,c){return{index:b,close:a.yData[b][c],x:a.xData[b]}}var l=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
154
+ function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),p=f.seriesTypes,t=p.atr,g=p.sma,d=e.addEvent,a=e.correctFloat,b=e.isArray;p=e.extend;var c=e.merge,k=e.objectEach;e=function(e){function f(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.linkedParent=void 0;a.options=void 0;a.points=void 0;return a}
155
+ l(f,e);f.prototype.init=function(){var a;g.prototype.init.apply(this,arguments);var b=this,c=d(h,"afterLinkSeries",function(){if(b.options){var d=b.options;a=b.linkedParent.options;d.cropThreshold=a.cropThreshold-(d.params.period-1)}c()},{order:1})};f.prototype.drawGraph=function(){var a=this,b=a.options,d=a.linkedParent,e=d?d.points:[],f=a.points,h=a.graph,l=f.length,u=e.length-l;u=0<u?u:0;for(var t={options:{gapSize:b.gapSize}},p={top:[],bottom:[],intersect:[]},w={top:{styles:{lineWidth:b.lineWidth,
156
+ lineColor:b.fallingTrendColor||b.color,dashStyle:b.dashStyle}},bottom:{styles:{lineWidth:b.lineWidth,lineColor:b.risingTrendColor||b.color,dashStyle:b.dashStyle}},intersect:b.changeTrendLine},x,y,C,v,E,G,H,I;l--;)x=f[l],y=f[l-1],C=e[l-1+u],v=e[l-2+u],E=e[l+u],G=e[l+u+1],H=x.options.color,I={x:x.x,plotX:x.plotX,plotY:x.plotY,isNull:!1},!v&&C&&d.yData[C.index-1]&&(v=m(d,C.index-1,3)),!G&&E&&d.yData[E.index+1]&&(G=m(d,E.index+1,3)),!C&&v&&d.yData[v.index+1]?C=m(d,v.index+1,3):!C&&E&&d.yData[E.index-
157
+ 1]&&(C=m(d,E.index-1,3)),x&&C&&E&&v&&x.x!==C.x&&(x.x===E.x?(v=C,C=E):x.x===v.x?(C=v,v={close:d.yData[C.index-1][3],x:d.xData[C.index-1]}):G&&x.x===G.x&&(C=G,v=E)),y&&v&&C?(E={x:y.x,plotX:y.plotX,plotY:y.plotY,isNull:!1},x.y>=C.close&&y.y>=v.close?(x.color=H||b.fallingTrendColor||b.color,p.top.push(I)):x.y<C.close&&y.y<v.close?(x.color=H||b.risingTrendColor||b.color,p.bottom.push(I)):(p.intersect.push(I),p.intersect.push(E),p.intersect.push(c(E,{isNull:!0})),x.y>=C.close&&y.y<v.close?(x.color=H||b.fallingTrendColor||
158
+ b.color,y.color=H||b.risingTrendColor||b.color,p.top.push(I),p.top.push(c(E,{isNull:!0}))):x.y<C.close&&y.y>=v.close&&(x.color=H||b.risingTrendColor||b.color,y.color=H||b.fallingTrendColor||b.color,p.bottom.push(I),p.bottom.push(c(E,{isNull:!0}))))):C&&(x.y>=C.close?(x.color=H||b.fallingTrendColor||b.color,p.top.push(I)):(x.color=H||b.risingTrendColor||b.color,p.bottom.push(I)));k(p,function(b,d){a.points=b;a.options=c(w[d].styles,t);a.graph=a["graph"+d+"Line"];g.prototype.drawGraph.call(a);a["graph"+
159
+ d+"Line"]=a.graph});a.points=f;a.options=b;a.graph=h};f.prototype.getValues=function(c,d){var e=d.period;d=d.multiplier;var f=c.xData,g=c.yData,k=[],h=[],l=[],m=0===e?0:e-1,p=[],w=[],x;if(!(f.length<=e||!b(g[0])||4!==g[0].length||0>e)){c=t.prototype.getValues.call(this,c,{period:e}).yData;for(x=0;x<c.length;x++){var z=g[m+x];var B=g[m+x-1]||[];var y=p[x-1];var v=w[x-1];var G=l[x-1];0===x&&(y=v=G=0);e=a((z[1]+z[2])/2+d*c[x]);var H=a((z[1]+z[2])/2-d*c[x]);p[x]=e<y||B[3]>y?e:y;w[x]=H>v||B[3]<v?H:v;if(G===
160
+ y&&z[3]<p[x]||G===v&&z[3]<w[x])var I=p[x];else if(G===y&&z[3]>p[x]||G===v&&z[3]>w[x])I=w[x];k.push([f[m+x],I]);h.push(f[m+x]);l.push(I)}return{values:k,xData:h,yData:l}}};f.defaultOptions=c(g.defaultOptions,{params:{index:void 0,multiplier:3,period:10},risingTrendColor:"#06b535",fallingTrendColor:"#f21313",changeTrendLine:{styles:{lineWidth:1,lineColor:"#333333",dashStyle:"LongDash"}}});return f}(g);p(e.prototype,{nameBase:"Supertrend",nameComponents:["multiplier","period"]});f.registerSeriesType("supertrend",
161
+ e);"";return e});v(f,"Stock/Indicators/VBP/VBPPoint.js",[f["Core/Series/Point.js"],f["Core/Series/SeriesRegistry.js"]],function(f,e){var h=this&&this.__extends||function(){var e=function(f,h){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,f){e.__proto__=f}||function(e,f){for(var d in f)f.hasOwnProperty(d)&&(e[d]=f[d])};return e(f,h)};return function(f,h){function l(){this.constructor=f}e(f,h);f.prototype=null===h?Object.create(h):(l.prototype=h.prototype,new l)}}();return function(e){function l(){return null!==
162
+ e&&e.apply(this,arguments)||this}h(l,e);l.prototype.destroy=function(){this.negativeGraphic&&(this.negativeGraphic=this.negativeGraphic.destroy());return f.prototype.destroy.apply(this,arguments)};return l}(e.seriesTypes.sma.prototype.pointClass)});v(f,"Stock/Indicators/VBP/VBPIndicator.js",[f["Stock/Indicators/VBP/VBPPoint.js"],f["Core/Animation/AnimationUtilities.js"],f["Core/Globals.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"],f["Core/Chart/StockChart.js"]],function(f,e,h,m,l,
163
+ p){var t=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),g=e.animObject;e=h.noop;var d=m.seriesTypes.sma,a=l.addEvent,b=l.arrayMax,c=l.arrayMin,k=l.correctFloat,w=l.defined,x=l.error,B=l.extend,z=l.isArray,
164
+ v=l.merge,r=Math.abs,n=m.seriesTypes.column.prototype;l=function(e){function f(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.negWidths=void 0;a.options=void 0;a.points=void 0;a.posWidths=void 0;a.priceZones=void 0;a.rangeStep=void 0;a.volumeDataArray=void 0;a.zoneStarts=void 0;a.zoneLinesSVG=void 0;return a}t(f,e);f.prototype.init=function(b){var c=this,d,e,f;h.seriesTypes.sma.prototype.init.apply(c,arguments);var g=a(p,"afterLinkSeries",function(){c.options&&(d=c.options.params,
165
+ e=c.linkedParent,f=b.get(d.volumeSeriesID),c.addCustomEvents(e,f));g()},{order:1});return c};f.prototype.addCustomEvents=function(b,c){function d(){e.chart.redraw();e.setData([]);e.zoneStarts=[];e.zoneLinesSVG&&(e.zoneLinesSVG=e.zoneLinesSVG.destroy())}var e=this;e.dataEventsToUnbind.push(a(b,"remove",function(){d()}));c&&e.dataEventsToUnbind.push(a(c,"remove",function(){d()}));return e};f.prototype.animate=function(a){var b=this,c=b.chart.inverted,d=b.group,e={};!a&&d&&(a=c?b.yAxis.top:b.xAxis.left,
166
+ c?(d["forceAnimate:translateY"]=!0,e.translateY=a):(d["forceAnimate:translateX"]=!0,e.translateX=a),d.animate(e,B(g(b.options.animation),{step:function(a,c){b.group.attr({scaleX:Math.max(.001,c.pos)})}})))};f.prototype.drawPoints=function(){this.options.volumeDivision.enabled&&(this.posNegVolume(!0,!0),n.drawPoints.apply(this,arguments),this.posNegVolume(!1,!1));n.drawPoints.apply(this,arguments)};f.prototype.posNegVolume=function(a,b){var c=b?["positive","negative"]:["negative","positive"],d=this.options.volumeDivision,
167
+ e=this.points.length,f=[],g=[],k=0,h;a?(this.posWidths=f,this.negWidths=g):(f=this.posWidths,g=this.negWidths);for(;k<e;k++){var n=this.points[k];n[c[0]+"Graphic"]=n.graphic;n.graphic=n[c[1]+"Graphic"];if(a){var l=n.shapeArgs.width;var m=this.priceZones[k];(h=m.wholeVolumeData)?(f.push(l/h*m.positiveVolumeData),g.push(l/h*m.negativeVolumeData)):(f.push(0),g.push(0))}n.color=b?d.styles.positiveColor:d.styles.negativeColor;n.shapeArgs.width=b?this.posWidths[k]:this.negWidths[k];n.shapeArgs.x=b?n.shapeArgs.x:
168
+ this.posWidths[k]}};f.prototype.translate=function(){var a=this,c=a.options,d=a.chart,e=a.yAxis,f=e.min,g=a.options.zoneLines,h=a.priceZones,l=0,m,q,t;n.translate.apply(a);var p=a.points;if(p.length){var w=.5>c.pointPadding?c.pointPadding:.1;c=a.volumeDataArray;var x=b(c);var z=d.plotWidth/2;var B=d.plotTop;var A=r(e.toPixels(f)-e.toPixels(f+a.rangeStep));var v=r(e.toPixels(f)-e.toPixels(f+a.rangeStep));w&&(f=r(A*(1-2*w)),l=r((A-f)/2),A=r(f));p.forEach(function(b,c){q=b.barX=b.plotX=0;t=b.plotY=e.toPixels(h[c].start)-
169
+ B-(e.reversed?A-v:A)-l;m=k(z*h[c].wholeVolumeData/x);b.pointWidth=m;b.shapeArgs=a.crispCol.apply(a,[q,t,m,A]);b.volumeNeg=h[c].negativeVolumeData;b.volumePos=h[c].positiveVolumeData;b.volumeAll=h[c].wholeVolumeData});g.enabled&&a.drawZones(d,e,a.zoneStarts,g.styles)}};f.prototype.getValues=function(a,b){var c=a.processedXData,d=a.processedYData,e=this.chart,f=b.ranges,g=[],k=[],h=[],n;if(a.chart)if(n=e.get(b.volumeSeriesID))if((b=z(d[0]))&&4!==d[0].length)x("Type of "+a.name+" series is different than line, OHLC or candlestick.",
170
+ !0,e);else return(this.priceZones=this.specifyZones(b,c,d,f,n)).forEach(function(a,b){g.push([a.x,a.end]);k.push(g[b][0]);h.push(g[b][1])}),{values:g,xData:k,yData:h};else x("Series "+b.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,e);else x("Base series not found! In case it has been removed, add a new one.",!0,e)};f.prototype.specifyZones=function(a,d,e,f,g){if(a){var h=e.length;for(var n=e[0][3],l=n,m=1,r;m<h;m++)r=e[m][3],r<n&&(n=r),r>l&&(l=r);h={min:n,max:l}}else h=!1;h=(n=h)?n.min:
171
+ c(e);r=n?n.max:b(e);n=this.zoneStarts=[];l=[];var q=0;m=1;var t=this.linkedParent;!this.options.compareToMain&&t.dataModify&&(h=t.dataModify.modifyValue(h),r=t.dataModify.modifyValue(r));if(!w(h)||!w(r))return this.points.length&&(this.setData([]),this.zoneStarts=[],this.zoneLinesSVG&&(this.zoneLinesSVG=this.zoneLinesSVG.destroy())),[];t=this.rangeStep=k(r-h)/f;for(n.push(h);q<f-1;q++)n.push(k(n[q]+t));n.push(r);for(f=n.length;m<f;m++)l.push({index:m-1,x:d[0],start:n[m-1],end:n[m]});return this.volumePerZone(a,
172
+ l,g,d,e)};f.prototype.volumePerZone=function(a,b,c,d,e){var f=this,g=c.processedXData,k=c.processedYData,h=b.length-1,n=e.length;c=k.length;var l,m,q,t,p;r(n-c)&&(d[0]!==g[0]&&k.unshift(0),d[n-1]!==g[c-1]&&k.push(0));f.volumeDataArray=[];b.forEach(function(b){b.wholeVolumeData=0;b.positiveVolumeData=0;for(p=b.negativeVolumeData=0;p<n;p++){q=m=!1;t=a?e[p][3]:e[p];l=p?a?e[p-1][3]:e[p-1]:t;var c=f.linkedParent;!f.options.compareToMain&&c.dataModify&&(t=c.dataModify.modifyValue(t),l=c.dataModify.modifyValue(l));
173
+ t<=b.start&&0===b.index&&(m=!0);t>=b.end&&b.index===h&&(q=!0);(t>b.start||m)&&(t<b.end||q)&&(b.wholeVolumeData+=k[p],l>t?b.negativeVolumeData+=k[p]:b.positiveVolumeData+=k[p])}f.volumeDataArray.push(b.wholeVolumeData)});return b};f.prototype.drawZones=function(a,b,c,d){var e=a.renderer,f=this.zoneLinesSVG,g=[],k=a.plotWidth,h=a.plotTop,n;c.forEach(function(c){n=b.toPixels(c)-h;g=g.concat(a.renderer.crispLine([["M",0,n],["L",k,n]],d.lineWidth))});f?f.animate({d:g}):f=this.zoneLinesSVG=e.path(g).attr({"stroke-width":d.lineWidth,
174
+ stroke:d.color,dashstyle:d.dashStyle,zIndex:this.group.zIndex+.1}).add(this.group)};f.defaultOptions=v(d.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:{allowOverlap:!0,
175
+ enabled:!0,format:"P: {point.volumePos:.2f} | N: {point.volumeNeg:.2f}",padding:0,style:{fontSize:"7px"},verticalAlign:"top"}});return f}(d);B(l.prototype,{nameBase:"Volume by Price",nameComponents:["ranges"],calculateOn:{chart:"render",xAxis:"afterSetExtremes"},pointClass:f,markerAttribs:e,drawGraph:e,getColumnMetrics:n.getColumnMetrics,crispCol:n.crispCol});m.registerSeriesType("vbp",l);"";return l});v(f,"Stock/Indicators/VWAP/VWAPIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],
176
+ function(f,e){var h=this&&this.__extends||function(){var e=function(d,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return e(d,a)};return function(d,a){function b(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.sma,l=e.error,p=e.isArray,t=e.merge;e=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data=
177
+ void 0;a.points=void 0;a.options=void 0;return a}h(d,e);d.prototype.getValues=function(a,b){var c=a.chart,d=a.xData;a=a.yData;var e=b.period,f=!0,g;if(g=c.get(b.volumeSeriesID))return p(a[0])||(f=!1),this.calculateVWAPValues(f,d,a,g,e);l("Series "+b.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,c)};d.prototype.calculateVWAPValues=function(a,b,c,d,e){var f=d.yData,g=d.xData.length,k=b.length;d=[];var h=[],l=[],n=[],m=[],q;g=k<=g?k:g;for(q=k=0;k<g;k++){var t=a?(c[k][1]+c[k][2]+c[k][3])/3:
178
+ c[k];t*=f[k];t=q?d[k-1]+t:t;var p=q?h[k-1]+f[k]:f[k];d.push(t);h.push(p);m.push([b[k],t/p]);l.push(m[k][0]);n.push(m[k][1]);q++;q===e&&(q=0)}return{values:m,xData:l,yData:n}};d.defaultOptions=t(m.defaultOptions,{params:{index:void 0,period:30,volumeSeriesID:"volume"}});return d}(m);f.registerSeriesType("vwap",e);"";return e});v(f,"Stock/Indicators/WilliamsR/WilliamsRIndicator.js",[f["Stock/Indicators/ArrayUtilities.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,h){var m=
179
+ this&&this.__extends||function(){var d=function(a,b){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(a,b)};return function(a,b){function c(){this.constructor=a}d(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),l=e.seriesTypes.sma,p=h.extend,t=h.isArray,g=h.merge;h=function(d){function a(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=
180
+ void 0;a.points=void 0;return a}m(a,d);a.prototype.getValues=function(a,c){c=c.period;var b=a.xData,d=(a=a.yData)?a.length:0,e=[],g=[],h=[],l;if(!(b.length<c)&&t(a[0])&&4===a[0].length){for(l=c-1;l<d;l++){var m=a.slice(l-c+1,l+1);var n=f.getArrayExtremes(m,2,1);m=n[0];n=n[1];var p=a[l][3];m=(n-p)/(n-m)*-100;b[l]&&(e.push([b[l],m]),g.push(b[l]),h.push(m))}return{values:e,xData:g,yData:h}}};a.defaultOptions=g(l.defaultOptions,{params:{index:void 0,period:14}});return a}(l);p(h.prototype,{nameBase:"Williams %R"});
181
+ e.registerSeriesType("williamsr",h);"";return h});v(f,"Stock/Indicators/WMA/WMAIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){function h(d,a){a*=(a+1)/2;return d.reduce(function(a,c,d){return[null,a[1]+c[1]*(d+1)]})[1]/a}function m(d,a,b,c){b=h(d,d.length);a=a[c-1];d.shift();return[a,b]}var l=this&&this.__extends||function(){var d=function(a,b){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&
182
+ (a[c]=b[c])};return d(a,b)};return function(a,b){function c(){this.constructor=a}d(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),p=f.seriesTypes.sma,t=e.isArray,g=e.merge;e=function(d){function a(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}l(a,d);a.prototype.getValues=function(a,c){var b=c.period,d=a.xData,e=(a=a.yData)?a.length:0,f=1,g=d[0],h=a[0],l=[],n=[],p=[],q=-1;if(!(d.length<b)){t(a[0])&&(q=c.index,
183
+ h=a[0][q]);for(c=[[g,h]];f!==b;)c.push([d[f],0>q?a[f]:a[f][q]]),f++;for(b=f;b<e;b++)f=m(c,d,a,b),l.push(f),n.push(f[0]),p.push(f[1]),c.push([d[b],0>q?a[b]:a[b][q]]);f=m(c,d,a,b);l.push(f);n.push(f[0]);p.push(f[1]);return{values:l,xData:n,yData:p}}};a.defaultOptions=g(p.defaultOptions,{params:{index:3,period:9}});return a}(p);f.registerSeriesType("wma",e);"";return e});v(f,"Stock/Indicators/Zigzag/ZigzagIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var h=this&&
184
+ this.__extends||function(){var e=function(f,d){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return e(f,d)};return function(f,d){function a(){this.constructor=f}e(f,d);f.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),m=f.seriesTypes.sma,l=e.merge;e=e.extend;var p=function(e){function f(){var d=null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.points=void 0;d.options=
185
+ void 0;return d}h(f,e);f.prototype.getValues=function(d,a){var b=a.lowIndex,c=a.highIndex,e=a.deviation/100;a=1+e;var f=1-e;e=d.xData;var g=d.yData;d=g?g.length:0;var h=[],l=[],m=[],r,n,t=!1,q=!1;if(!(!e||1>=e.length||d&&("undefined"===typeof g[0][b]||"undefined"===typeof g[0][c]))){var p=g[0][b];var v=g[0][c];for(r=1;r<d;r++){if(g[r][b]<=v*f){h.push([e[0],v]);var y=[e[r],g[r][b]];t=n=!0}else g[r][c]>=p*a&&(h.push([e[0],p]),y=[e[r],g[r][c]],n=!1,t=!0);if(t){l.push(h[0][0]);m.push(h[0][1]);var M=r++;
186
+ r=d}}for(r=M;r<d;r++)n?(g[r][b]<=y[1]&&(y=[e[r],g[r][b]]),g[r][c]>=y[1]*a&&(q=c)):(g[r][c]>=y[1]&&(y=[e[r],g[r][c]]),g[r][b]<=y[1]*f&&(q=b)),!1!==q&&(h.push(y),l.push(y[0]),m.push(y[1]),y=[e[r],g[r][q]],n=!n,q=!1);b=h.length;0!==b&&h[b-1][0]<e[d-1]&&(h.push(y),l.push(y[0]),m.push(y[1]));return{values:h,xData:l,yData:m}}};f.defaultOptions=l(m.defaultOptions,{params:{index:void 0,period:void 0,lowIndex:2,highIndex:1,deviation:1}});return f}(m);e(p.prototype,{nameComponents:["deviation"],nameSuffixes:["%"],
187
+ nameBase:"Zig Zag"});f.registerSeriesType("zigzag",p);"";return p});v(f,"Stock/Indicators/LinearRegression/LinearRegression.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var h=this&&this.__extends||function(){var e=function(d,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return e(d,a)};return function(d,a){function b(){this.constructor=d}e(d,a);d.prototype=null===
188
+ a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.sma,l=e.isArray,p=e.extend,t=e.merge;e=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}h(d,e);d.prototype.getRegressionLineParameters=function(a,b){var c=this.options.params.index,d=function(a,b){return l(a)?a[b]:a},e=a.reduce(function(a,b){return b+a},0),f=b.reduce(function(a,b){return d(b,c)+a},0);e/=a.length;f/=b.length;var g=0,h=0,m;for(m=0;m<a.length;m++){var r=
189
+ a[m]-e;var n=d(b[m],c)-f;g+=r*n;h+=Math.pow(r,2)}a=h?g/h:0;return{slope:a,intercept:f-a*e}};d.prototype.getEndPointY=function(a,b){return a.slope*b+a.intercept};d.prototype.transformXData=function(a,b){var c=a[0];return a.map(function(a){return(a-c)/b})};d.prototype.findClosestDistance=function(a){var b,c;for(c=1;c<a.length-1;c++){var d=a[c]-a[c-1];0<d&&("undefined"===typeof b||d<b)&&(b=d)}return b};d.prototype.getValues=function(a,b){var c=a.xData;a=a.yData;b=b.period;var d,e={xData:[],yData:[],
190
+ values:[]},f=this.options.params.xAxisUnit||this.findClosestDistance(c);for(d=b-1;d<=c.length-1;d++){var g=d-b+1;var h=d+1;var l=c[d];var m=c.slice(g,h);g=a.slice(g,h);h=this.transformXData(m,f);m=this.getRegressionLineParameters(h,g);g=this.getEndPointY(m,h[h.length-1]);e.values.push({regressionLineParameters:m,x:l,y:g});e.xData.push(l);e.yData.push(g)}return e};d.defaultOptions=t(m.defaultOptions,{params:{xAxisUnit:null},tooltip:{valueDecimals:4}});return d}(m);p(e.prototype,{nameBase:"Linear Regression Indicator"});
191
+ f.registerSeriesType("linearRegression",e);"";return e});v(f,"Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopes.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var h=this&&this.__extends||function(){var e=function(f,d){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return e(f,d)};return function(f,d){function a(){this.constructor=f}e(f,d);f.prototype=null===
192
+ d?Object.create(d):(a.prototype=d.prototype,new a)}}(),m=f.seriesTypes.linearRegression,l=e.extend,p=e.merge;e=function(e){function f(){var d=null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}h(f,e);f.prototype.getEndPointY=function(d){return d.slope};f.defaultOptions=p(m.defaultOptions);return f}(m);l(e.prototype,{nameBase:"Linear Regression Slope Indicator"});f.registerSeriesType("linearRegressionSlope",e);"";return e});v(f,"Stock/Indicators/LinearRegressionIntercept/LinearRegressionIntercept.js",
193
+ [f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var h=this&&this.__extends||function(){var e=function(f,d){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return e(f,d)};return function(f,d){function a(){this.constructor=f}e(f,d);f.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),m=f.seriesTypes.linearRegression,l=e.extend,p=e.merge;e=function(e){function f(){var d=
194
+ null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}h(f,e);f.prototype.getEndPointY=function(d){return d.intercept};f.defaultOptions=p(m.defaultOptions);return f}(m);l(e.prototype,{nameBase:"Linear Regression Intercept Indicator"});f.registerSeriesType("linearRegressionIntercept",e);"";return e});v(f,"Stock/Indicators/LinearRegressionAngle/LinearRegressionAngle.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var h=this&&this.__extends||
195
+ function(){var e=function(f,d){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return e(f,d)};return function(f,d){function a(){this.constructor=f}e(f,d);f.prototype=null===d?Object.create(d):(a.prototype=d.prototype,new a)}}(),m=f.seriesTypes.linearRegression,l=e.extend,p=e.merge;e=function(e){function f(){var d=null!==e&&e.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;
196
+ return d}h(f,e);f.prototype.slopeToAngle=function(d){return 180/Math.PI*Math.atan(d)};f.prototype.getEndPointY=function(d){return this.slopeToAngle(d.slope)};f.defaultOptions=p(m.defaultOptions,{tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span>{series.name}: <b>{point.y}\u00b0</b><br/>'}});return f}(m);l(e.prototype,{nameBase:"Linear Regression Angle Indicator"});f.registerSeriesType("linearRegressionAngle",e);"";return e});v(f,"Stock/Indicators/ABands/ABandsIndicator.js",[f["Stock/Indicators/MultipleLinesComposition.js"],
197
+ f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e,h){var m=this&&this.__extends||function(){var d=function(a,b){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return d(a,b)};return function(a,b){function c(){this.constructor=a}d(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}(),l=e.seriesTypes.sma,p=h.correctFloat,t=h.extend,g=h.merge;h=function(d){function a(){var a=
198
+ null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}m(a,d);a.prototype.getValues=function(a,c){var b=c.period,e=c.factor;c=c.index;var f=a.xData,g=(a=a.yData)?a.length:0,h=[],l=[],m=[],n=[],t=[],q;if(!(g<b)){for(q=0;q<=g;q++){if(q<g){var u=a[q][2];var v=a[q][1];var y=e;u=p(v-u)/(p(v+u)/2)*1E3*y;h.push(a[q][1]*p(1+2*u));l.push(a[q][2]*p(1-2*u))}if(q>=b){u=f.slice(q-b,q);var M=a.slice(q-b,q);y=d.prototype.getValues.call(this,{xData:u,yData:h.slice(q-b,q)},
199
+ {period:b});v=d.prototype.getValues.call(this,{xData:u,yData:l.slice(q-b,q)},{period:b});M=d.prototype.getValues.call(this,{xData:u,yData:M},{period:b,index:c});u=M.xData[0];y=y.yData[0];v=v.yData[0];M=M.yData[0];m.push([u,y,M,v]);n.push(u);t.push([y,M,v])}}return{values:m,xData:n,yData:t}}};a.defaultOptions=g(l.defaultOptions,{params:{period:20,factor:.001,index:3},lineWidth:1,topLine:{styles:{lineWidth:1}},bottomLine:{styles:{lineWidth:1}},dataGrouping:{approximation:"averages"}});return a}(l);
200
+ t(h.prototype,{areaLinesNames:["top","bottom"],linesApiNames:["topLine","bottomLine"],nameBase:"Acceleration Bands",nameComponents:["period","factor"],pointArrayMap:["top","middle","bottom"],pointValKey:"middle"});f.compose(h);e.registerSeriesType("abands",h);"";return h});v(f,"Stock/Indicators/TrendLine/TrendLineIndicator.js",[f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var h=this&&this.__extends||function(){var e=function(d,a){e=Object.setPrototypeOf||{__proto__:[]}instanceof
201
+ Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return e(d,a)};return function(d,a){function b(){this.constructor=d}e(d,a);d.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}}(),m=f.seriesTypes.sma,l=e.extend,p=e.merge,t=e.isArray;e=function(e){function d(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}h(d,e);d.prototype.getValues=function(a,b){var c=a.xData,d=a.yData;a=[];
202
+ var e=[],f=[],g=0,h=0,l=0,m=0,n=c.length,p=b.index;for(b=0;b<n;b++){var q=c[b];var u=t(d[b])?d[b][p]:d[b];g+=q;h+=u;l+=q*u;m+=q*q}d=(n*l-g*h)/(n*m-g*g);isNaN(d)&&(d=0);g=(h-d*g)/n;for(b=0;b<n;b++)q=c[b],u=d*q+g,a[b]=[q,u],e[b]=q,f[b]=u;return{xData:e,yData:f,values:a}};d.defaultOptions=p(m.defaultOptions,{params:{period:void 0,index:3}});return d}(m);l(e.prototype,{nameBase:"Trendline",nameComponents:!1});f.registerSeriesType("trendline",e);"";return e});v(f,"Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js",
203
+ [f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(f,e){var h=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),m=f.seriesTypes.sma,l=e.correctFloat,p=e.defined,t=e.extend,g=e.isArray,
204
+ d=e.merge;e=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.averageIndicator=void 0;b.data=void 0;b.options=void 0;b.points=void 0;return b}h(b,a);b.prototype.init=function(){var a=arguments,b=a[1].params;this.averageIndicator=f.seriesTypes[b&&b.average?b.average:void 0]||m;this.averageIndicator.prototype.init.apply(this,a)};b.prototype.calculateDisparityIndex=function(a,b){return l(a-b)/b*100};b.prototype.getValues=function(a,b){var c=b.index,d=a.xData,e=a.yData,f=e?e.length:
205
+ 0,h=[],k=[],l=[],m=this.averageIndicator,q=g(e[0]);b=m.prototype.getValues(a,b);a=b.yData;b=d.indexOf(b.xData[0]);if(a&&0!==a.length&&p(c)&&!(e.length<=b)){for(m=b;m<f;m++){var t=this.calculateDisparityIndex(q?e[m][c]:e[m],a[m-b]);h.push([d[m],t]);k.push(d[m]);l.push(t)}return{values:h,xData:k,yData:l}}};b.defaultOptions=d(m.defaultOptions,{params:{average:"sma",index:3},marker:{enabled:!1},dataGrouping:{approximation:"averages"}});return b}(m);t(e.prototype,{nameBase:"Disparity Index",nameComponents:["period",
206
+ "average"]});f.registerSeriesType("disparityindex",e);"";return e});v(f,"masters/indicators/indicators-all.src.js",[],function(){})});
206
207
  //# sourceMappingURL=indicators-all.js.map