!/**
 * Highstock JS v11.4.0 (2024-03-04)
 *
 * Indicator series type for Highcharts Stock
 *
 * (c) 2010-2024 Wojciech Chmiel
 *
 * 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/williams-r",["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,n){t.hasOwnProperty(e)||(t[e]=n.apply(null,r),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}r(e,"Stock/Indicators/ArrayUtilities.js",[],function(){return{getArrayExtremes:function(t,e,r){return t.reduce(function(t,n){return[Math.min(t[0],n[e]),Math.max(t[1],n[r])]},[Number.MAX_VALUE,-Number.MAX_VALUE])}}}),r(e,"Stock/Indicators/WilliamsR/WilliamsRIndicator.js",[e["Stock/Indicators/ArrayUtilities.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,r){var n,i=this&&this.__extends||(n=function(t,e){return(n=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 r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=e.seriesTypes.sma,s=r.extend,a=r.isArray,u=r.merge,c=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i(r,e),r.prototype.getValues=function(e,r){var n,i,o,s,u,c,l=r.period,p=e.xData,f=e.yData,d=f?f.length:0,h=[],y=[],m=[];if(!(p.length<l)&&a(f[0])&&4===f[0].length){for(c=l-1;c<d;c++)n=f.slice(c-l+1,c+1),u=(i=t.getArrayExtremes(n,2,1))[0],o=-(((s=i[1])-f[c][3])/(s-u)*100),p[c]&&(h.push([p[c],o]),y.push(p[c]),m.push(o));return{values:h,xData:y,yData:m}}},r.defaultOptions=u(o.defaultOptions,{params:{index:void 0,period:14}}),r}(o);return s(c.prototype,{nameBase:"Williams %R"}),e.registerSeriesType("williamsr",c),c}),r(e,"masters/indicators/williams-r.src.js",[e["Core/Globals.js"]],function(t){return t})});