!/** * Highstock JS v11.4.1 (2024-04-04) * * Indicator series type for Highcharts Stock * * (c) 2010-2024 Paweł Fus * * 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/pivot-points",["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 a(t,e,a,o){t.hasOwnProperty(e)||(t[e]=o.apply(null,a),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}a(e,"Stock/Indicators/PivotPoints/PivotPointsPoint.js",[e["Core/Series/SeriesRegistry.js"]],function(t){let e=t.seriesTypes.sma.prototype.pointClass;function a(e,a){let o=e.series.pointArrayMap,n,s=o.length;for(t.seriesTypes.sma.prototype.pointClass.prototype[a].call(e);s--;)e[n="dataLabel"+o[s]]&&e[n].element&&e[n].destroy(),e[n]=null}return class extends e{destroyElements(){a(this,"destroyElements")}destroy(){a(this,"destroyElements")}}}),a(e,"Stock/Indicators/PivotPoints/PivotPointsIndicator.js",[e["Stock/Indicators/PivotPoints/PivotPointsPoint.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,a){let{sma:o}=e.seriesTypes,{merge:n,extend:s,defined:i,isArray:l}=a;class r extends o{toYData(t){return[t.P]}translate(){let t=this;super.translate.apply(t),t.points.forEach(function(e){t.pointArrayMap.forEach(function(a){i(e[a])&&(e["plot"+a]=t.yAxis.toPixels(e[a],!0))})}),t.plotEndPoint=t.xAxis.toPixels(t.endPoint,!0)}getGraphPath(t){let e=this,a=[[],[],[],[],[],[],[],[],[]],o=e.pointArrayMap.length,n=e.plotEndPoint,s=[],l,r,p=t.length,d;for(;p--;){for(d=0,r=t[p];d{s=s.concat(super.getGraphPath.call(e,t))}),s}drawDataLabels(){let t,e,a,o;let n=this,s=n.pointArrayMap;n.options.dataLabels.enabled&&(e=n.points.length,s.concat([!1]).forEach((i,l)=>{for(o=e;o--;)a=n.points[o],i?(a.y=a[i],a.pivotLine=i,a.plotY=a["plot"+i],t=a["dataLabel"+i],l&&(a["dataLabel"+s[l-1]]=a.dataLabel),a.dataLabels||(a.dataLabels=[]),a.dataLabels[0]=a.dataLabel=t=t&&t.element?t:null):a["dataLabel"+s[l-1]]=a.dataLabel;super.drawDataLabels.call(n)}))}getValues(t,e){let a,o,n,s,i,r,p;let d=e.period,u=t.xData,c=t.yData,h=c?c.length:0,f=this[e.algorithm+"Placement"],P=[],y=[],m=[];if(!(u.length