"use strict";!function(e){"object"==typeof module&&module.exports?module.exports=e.default=e:"function"==typeof define&&define.amd?define("highcharts/indicators/bollinger-bands",["highcharts","highcharts/modules/stock"],function(t){return e(t),e.Highcharts=t,e}):e("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){t=t?t._modules:{};function e(t,e,o,i){t.hasOwnProperty(e)||(t[e]=i.apply(null,o))}e(t,"Mixins/MultipleLines.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(t,e){var c=e.defined,h=e.error,d=e.merge,u=t.seriesTypes.sma;return{pointArrayMap:["top","bottom"],pointValKey:"top",linesApiNames:["bottomLine"],getTranslatedLinesNames:function(e){var o=[];return(this.pointArrayMap||[]).forEach(function(t){t!==e&&o.push("plot"+t.charAt(0).toUpperCase()+t.slice(1))}),o},toYData:function(e){var o=[];return(this.pointArrayMap||[]).forEach(function(t){o.push(e[t])}),o},translate:function(){var i,n=this,t=n.pointArrayMap,r=n.getTranslatedLinesNames();u.prototype.translate.apply(n,arguments),n.points.forEach(function(o){t.forEach(function(t,e){null!==(i=o[t])&&(o[r[e]]=n.yAxis.toPixels(i,!0))})})},drawGraph:function(){var o,i=this,t=i.pointValKey,e=i.linesApiNames,n=i.points,r=n.length,a=i.options,s=i.graph,p={options:{gapSize:a.gapSize}},l=[];i.getTranslatedLinesNames(t).forEach(function(t,e){for(l[e]=[];r--;)o=n[r],l[e].push({x:o.x,plotX:o.plotX,plotY:o[t],isNull:!c(o[t])});r=n.length}),e.forEach(function(t,e){l[e]?(i.points=l[e],a[t]?i.options=d(a[t].styles,p):h('Error: "There is no '+t+' in DOCS options declared. Check if linesApiNames are consistent with your DOCS line names." at mixin/multiple-line.js:34'),i.graph=i["graph"+t],u.prototype.drawGraph.call(i),i["graph"+t]=i.graph):h('Error: "'+t+" doesn't have equivalent in pointArrayMap. To many elements in linesApiNames relative to pointArrayMap.\"")}),i.points=n,i.options=a,i.graph=s,u.prototype.drawGraph.call(i)}}}),e(t,"Stock/Indicators/BB/BBIndicator.js",[t["Mixins/MultipleLines.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,m,e){var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=m.seriesTypes.sma,r=e.extend,g=e.isArray,a=e.merge;var s,n=(o(p,s=n),p.prototype.init=function(){m.seriesTypes.sma.prototype.init.apply(this,arguments),this.options=a({topLine:{styles:{lineColor:this.color}},bottomLine:{styles:{lineColor:this.color}}},this.options)},p.prototype.getValues=function(t,e){var o,i,n,r,a,s,p=e.period,l=e.standardDeviation,c=t.xData,h=t.yData,d=h?h.length:0,u=[],f=[],y=[];if(!(c.length
● {series.name}
Top: {point.top}
Middle: {point.middle}
Bottom: {point.bottom}
'},marker:{enabled:!1},dataGrouping:{approximation:"averages"}}),p);function p(){var t=null!==s&&s.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return r(n.prototype,{pointArrayMap:["top","middle","bottom"],pointValKey:"middle",nameComponents:["period","standardDeviation"],linesApiNames:["topLine","bottomLine"],drawGraph:t.drawGraph,getTranslatedLinesNames:t.getTranslatedLinesNames,translate:t.translate,toYData:t.toYData}),m.registerSeriesType("bb",n),n}),e(t,"masters/indicators/bollinger-bands.src.js",[],function(){})});