!/**
 * Highstock JS v12.5.0 (2026-01-12)
 * @module highcharts/indicators/psar
 * @requires highcharts
 * @requires highcharts/modules/stock
 *
 * Parabolic SAR Indicator for Highcharts Stock
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Grzegorz Blachliński
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("highcharts"),require("highcharts").SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/indicators/psar",[["highcharts/highcharts"],["highcharts/highcharts","SeriesRegistry"]],e):"object"==typeof exports?exports["highcharts/indicators/psar"]=e(require("highcharts"),require("highcharts").SeriesRegistry):t.Highcharts=e(t.Highcharts,t.Highcharts.SeriesRegistry)}(this,function(t,e){return function(){"use strict";var r,n={512:function(t){t.exports=e},944:function(e){e.exports=t}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var a={};o.d(a,{default:function(){return y}});var c=o(944),s=o.n(c),u=o(512),h=o.n(u),l=(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)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=h().seriesTypes.sma,f=s().merge;function d(t,e){return parseFloat(t.toFixed(e))}var g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.nameComponents=void 0,e}return l(e,t),e.prototype.getValues=function(t,e){var r,n,i,o,a,c,s,u,h,l,p,f,g,y,m,x,v,_,b,O,F,j,A,M,P,S,q,D,R,w,H,T,W,k=t.xData,C=t.yData,V=e.maxAccelerationFactor,z=e.increment,B=e.initialAccelerationFactor,E=e.decimals,G=e.index,I=[],J=[],K=[],L=e.initialAccelerationFactor,N=C[0][1],Q=1,U=C[0][2];if(!(G>=C.length)){for(W=0;W<G;W++)N=Math.max(C[W][1],N),U=Math.min(C[W][2],d(U,E));for(j=C[W][1]>U?1:-1,A=N-U,M=(L=e.initialAccelerationFactor)*A,I.push([k[G],U]),J.push(k[G]),K.push(d(U,E)),W=G+1;W<C.length;W++)if(S=C[W-1][2],q=C[W-2][2],D=C[W-1][1],R=C[W-2][1],H=C[W][1],T=C[W][2],null!==q&&null!==R&&null!==S&&null!==D&&null!==H&&null!==T){r=j,n=Q,i=U,o=M,a=q,c=S,s=D,u=R,h=N,U=r===n?1===r?i+o<Math.min(a,c)?i+o:Math.min(a,c):i+o>Math.max(u,s)?i+o:Math.max(u,s):h,_=j,b=N,w=1===_?H>b?H:b:T<b?T:b,O=Q,F=U,l=P=1===O&&T>F||-1===O&&H>F?1:-1,p=j,f=w,g=N,y=L,m=z,x=V,v=B,M=(L=l===p?1===l&&f>g||-1===l&&f<g?y===x?x:d(y+m,2):y:v)*(A=w-U),I.push([k[W],d(U,E)]),J.push(k[W]),K.push(d(U,E)),Q=j,j=P,N=w}return{values:I,xData:J,yData:K}}},e.defaultOptions=f(p.defaultOptions,{lineWidth:0,marker:{enabled:!0},states:{hover:{lineWidthPlus:0}},params:{period:void 0,initialAccelerationFactor:.02,maxAccelerationFactor:.2,increment:.02,index:2,decimals:4}}),e}(p);h().registerSeriesType("psar",g);var y=s();return a.default}()});