!/**
 * Highstock JS v12.5.0 (2026-01-12)
 * @module highcharts/indicators/apo
 * @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(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(e._Highcharts,e._Highcharts.SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/indicators/apo",["highcharts/highcharts"],function(e){return t(e,e.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/indicators/apo"]=t(e._Highcharts,e._Highcharts.SeriesRegistry):e.Highcharts=t(e.Highcharts,e.Highcharts.SeriesRegistry)}("u"<typeof window?this:window,(e,t)=>(()=>{"use strict";var r={512:e=>{e.exports=t},944:t=>{t.exports=e}},s={};function o(e){var t=s[e];if(void 0!==t)return t.exports;var i=s[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i={};o.d(i,{default:()=>g});var a=o(944),n=o.n(a),p=o(512),h=o.n(p);let{ema:d}=h().seriesTypes,{extend:u,merge:c,error:l}=n();class f extends d{getValues(e,t){let r,s,o=t.periods,i=t.index,a=[],n=[],p=[];if(2!==o.length||o[1]<=o[0])return void l('Error: "APO requires two periods. Notice, first period should be lower than the second one."');let h=super.getValues.call(this,e,{index:i,period:o[0]}),d=super.getValues.call(this,e,{index:i,period:o[1]});if(!h||!d)return;let u=o[1]-o[0];for(s=0;s<d.yData.length;s++)r=h.yData[s+u]-d.yData[s],a.push([d.xData[s],r]),n.push(d.xData[s]),p.push(r);return{values:a,xData:n,yData:p}}}f.defaultOptions=c(d.defaultOptions,{params:{period:void 0,periods:[10,20]}}),u(f.prototype,{nameBase:"APO",nameComponents:["periods"]}),h().registerSeriesType("apo",f);let g=n();return i.default})());