!/**
 * Highstock JS v12.6.0 (2026-04-13)
 * @module highcharts/indicators/wma
 * @requires highcharts
 * @requires highcharts/modules/stock
 *
 * Indicator series type for Highcharts Stock
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Kacper Madej
 *
 * 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/wma",["highcharts/highcharts"],function(t){return r(t,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/indicators/wma"]=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,n={512:function(t){t.exports=r},944:function(r){r.exports=t}},o={};function i(t){var r=o[t];if(void 0!==r)return r.exports;var e=o[t]={exports:{}};return n[t](e,e.exports,i),e.exports}i.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(r,{a:r}),r},i.d=function(t,r){for(var e in r)i.o(r,e)&&!i.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},i.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)};var u={};i.d(u,{default:function(){return j}});var a=i(944),c=i.n(a),s=i(512),f=i.n(s),p=function(t,r,e){if(e||2==arguments.length)for(var n,o=0,i=r.length;o<i;o++)!n&&o in r||(n||(n=Array.prototype.slice.call(r,0,o)),n[o]=r[o]);return t.concat(n||Array.prototype.slice.call(r))};function h(t){return y(t)&&"number"==typeof t.nodeType}function l(t){var r=Object.prototype.toString.call(t);return"[object Array]"===r||"[object Array Iterator]"===r}function y(t,r){return!!t&&"object"==typeof t&&(!r||!l(t))}c().doc,c().win,Array.prototype.find;var d=(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 n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}),g=f().seriesTypes.sma;function v(t,r,e,n,o){var i=r[n],u=o<0?e[n]:e[n][o];t.push([i,u])}function _(t,r,e,n){var o=t.length,i=t.reduce(function(t,r,e){return[null,t[1]+r[1]*(e+1)]})[1]/((o+1)/2*o),u=r[n-1];return t.shift(),[u,i]}var b=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return d(r,t),r.prototype.getValues=function(t,r){var e,n,o=r.period,i=t.xData,u=t.yData,a=u?u.length:0,c=i[0],s=[],f=[],p=[],h=1,y=-1,d=u[0];if(!(i.length<o)){l(u[0])&&(y=r.index,d=u[0][y]);for(var g=[[c,d]];h!==o;)v(g,i,u,h,y),h++;for(e=h;e<a;e++)n=_(g,i,u,e),s.push(n),f.push(n[0]),p.push(n[1]),v(g,i,u,e,y);return n=_(g,i,u,e),s.push(n),f.push(n[0]),p.push(n[1]),{values:s,xData:f,yData:p}}},r.defaultOptions=function(t){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];var n,o=p([t],r,!0),i={},u=function(t,r){return"object"!=typeof t&&(t={}),function(t,r,e){for(var n in t)Object.hasOwnProperty.call(t,n)&&r.call((0,t[n]),t[n],n,t)}(r,function(e,n){if("__proto__"!==n&&"constructor"!==n){var o;!y(e,!0)||(o=null==e?void 0:e.constructor,y(e,!0)&&!h(e)&&(null==o?void 0:o.name)&&"Object"!==o.name)||h(e)?t[n]=r[n]:t[n]=u(t[n]||{},e)}}),t};!0===t&&(i=o[1],o=Array.prototype.slice.call(o,2));var a=o.length;for(n=0;n<a;n++)i=u(i,o[n]);return i}(g.defaultOptions,{params:{index:3,period:9}}),r}(g);f().registerSeriesType("wma",b);var j=c();return u.default}()});