!/**
 * Highstock JS v13.0.0 (2026-06-11)
 * @module highcharts/indicators/aroon
 * @requires highcharts
 * @requires highcharts/modules/stock
 *
 * Indicator series type for Highcharts Stock
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Wojciech Chmiel
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(t._Highcharts,t._Highcharts.SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/indicators/aroon",["highcharts/highcharts"],function(t){return r(t,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/indicators/aroon"]=r(t._Highcharts,t._Highcharts.SeriesRegistry):t.Highcharts=r(t.Highcharts,t.Highcharts.SeriesRegistry)}("u"<typeof window?this:window,function(t,r){return function(){"use strict";var e,o,n={512:function(t){t.exports=r},944:function(r){r.exports=t}},i={};function a(t){var r=i[t];if(void 0!==r)return r.exports;var e=i[t]={exports:{}};return n[t](e,e.exports,a),e.exports}a.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(r,{a:r}),r},a.d=function(t,r){for(var e in r)a.o(r,e)&&!a.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},a.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)};var s={};a.d(s,{default:function(){return v}});var p=a(944),l=a.n(p),h=a(512),c=a.n(h),u=c().seriesTypes.sma.prototype;!function(t){var r=["bottomLine"],e=["top","bottom"],o=["top"];function n(t){return"plot"+t.charAt(0).toUpperCase()+t.slice(1)}function i(t,r){var e=[];return(t.pointArrayMap||[]).forEach(function(t){t!==r&&e.push(n(t))}),e}function a(){var t,r=this,e=r.pointValKey,o=r.linesApiNames,a=r.areaLinesNames,s=r.points,l=r.options,h=r.graph,c={options:{gapSize:l.gapSize}},f=[],y=i(r,e),d=s.length;if(y.forEach(function(r,e){for(f[e]=[];d--;)t=s[d],f[e].push({x:t.x,plotX:t.plotX,plotY:t[r],isNull:!(0,p.defined)(t[r])});d=s.length}),r.userOptions.fillColor&&a.length){var g=f[y.indexOf(n(a[0]))],m=1===a.length?s:f[y.indexOf(n(a[1]))],v=r.color;r.points=m,r.nextPoints=g,r.color=r.userOptions.fillColor,r.options=(0,p.merge)(s,c),r.graph=r.area,r.fillGraph=!0,u.drawGraph.call(r),r.area=r.graph,delete r.nextPoints,delete r.fillGraph,r.color=v}o.forEach(function(t,e){f[e]?(r.points=f[e],l[t]?r.options=(0,p.merge)(l[t].styles,c):(0,p.error)('Error: "There is no '+t+' in DOCS options declared. Check if linesApiNames are consistent with your DOCS line names."'),r.graph=r["graph"+t],u.drawGraph.call(r),r["graph"+t]=r.graph):(0,p.error)('Error: "'+t+" doesn't have equivalent in pointArrayMap. To many elements in linesApiNames relative to pointArrayMap.\"")}),r.points=s,r.options=l,r.graph=h,u.drawGraph.call(r)}function s(t){var r,e=[],o=[];if(t=t||this.points,this.fillGraph&&this.nextPoints){if((r=u.getGraphPath.call(this,this.nextPoints))&&r.length){r[0][0]="L",e=u.getGraphPath.call(this,t),o=r.slice(0,e.length);for(var n=o.length-1;n>=0;n--)e.push(o[n])}}else e=u.getGraphPath.apply(this,arguments);return e}function l(t){var r=[];return(this.pointArrayMap||[]).forEach(function(e){r.push(t[e])}),r}function h(){var t,r=this,e=this.pointArrayMap,o=[];o=i(this),u.translate.apply(this,arguments),this.points.forEach(function(n){e.forEach(function(e,i){t=n[e],r.dataModify&&(t=r.dataModify.modifyValue(t)),null!==t&&(n[o[i]]=r.yAxis.toPixels(t,!0))})})}t.compose=function(t){var n=t.prototype;return n.linesApiNames=n.linesApiNames||r.slice(),n.pointArrayMap=n.pointArrayMap||e.slice(),n.pointValKey=n.pointValKey||"top",n.areaLinesNames=n.areaLinesNames||o.slice(),n.drawGraph=a,n.getGraphPath=s,n.toYData=l,n.translate=h,t}}(o||(o={}));var f=o,y=(e=function(t,r){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)r.hasOwnProperty(e)&&(t[e]=r[e])})(t,r)},function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}),d=c().seriesTypes.sma;function g(t,r){var e,o=t[0],n=0;for(e=1;e<t.length;e++)("max"===r&&t[e]>=o||"min"===r&&t[e]<=o)&&(o=t[e],n=e);return n}var m=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return y(r,t),r.prototype.getValues=function(t,r){var e,o,n,i,a,s=r.period,l=t.xData,h=t.yData,c=h?h.length:0,u=[],f=[],y=[];for(i=s-1;i<c;i++)n=g((a=h.slice(i-s+1,i+2)).map(function(t){return(0,p.pick)(t[2],t)}),"min"),e=g(a.map(function(t){return(0,p.pick)(t[1],t)}),"max")/s*100,o=n/s*100,l[i+1]&&(u.push([l[i+1],e,o]),f.push(l[i+1]),y.push([e,o]));return{values:u,xData:f,yData:y}},r.defaultOptions=(0,p.merge)(d.defaultOptions,{params:{index:void 0,period:25},marker:{enabled:!1},tooltip:{pointFormat:'<span style="color:{point.color}">●</span><b> {series.name}</b><br/>Aroon Up: {point.y}<br/>Aroon Down: {point.aroonDown}<br/>'},aroonDown:{styles:{lineWidth:1,lineColor:void 0}},dataGrouping:{approximation:"averages"}}),r}(d);(0,p.extend)(m.prototype,{areaLinesNames:[],linesApiNames:["aroonDown"],nameBase:"Aroon",pointArrayMap:["y","aroonDown"],pointValKey:"y"}),f.compose(m),c().registerSeriesType("aroon",m);var v=l();return s.default}()});