/** * Highstock JS v11.2.0 (2023-10-30) * * Indicator series type for Highstock * * (c) 2010-2021 Rafal Sebestjanski * * License: www.highcharts.com/license */!function(t){"object"==typeof module&&module.exports?(t.default=t,module.exports=t):"function"==typeof define&&define.amd?define("highcharts/indicators/disparity-index",["highcharts","highcharts/modules/stock"],function(e){return t(e),t.Highcharts=e,t}):t("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){"use strict";var e=t?t._modules:{};function r(t,e,r,i){t.hasOwnProperty(e)||(t[e]=i.apply(null,r),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}r(e,"Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e){var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),n=t.seriesTypes.sma,a=e.correctFloat,o=e.defined,s=e.extend,p=e.isArray,d=e.merge,u=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.averageIndicator=void 0,t.data=void 0,t.options=void 0,t.points=void 0,t}return i(r,e),r.prototype.init=function(){var e=arguments,r=e[1].params,i=r&&r.average?r.average:void 0;this.averageIndicator=t.seriesTypes[i]||n,this.averageIndicator.prototype.init.apply(this,e)},r.prototype.calculateDisparityIndex=function(t,e){return a(t-e)/e*100},r.prototype.getValues=function(t,e){var r=e.index,i=t.xData,n=t.yData,a=n?n.length:0,s=[],d=[],u=[],c=this.averageIndicator,l=p(n[0]),f=c.prototype.getValues(t,e),y=f.yData,h=i.indexOf(f.xData[0]);if(y&&0!==y.length&&o(r)&&!(n.length<=h)){for(var v=h;v