/**
 * Highcharts JS v11.3.0 (2024-01-10)
 *
 * Pareto series type for Highcharts
 *
 * (c) 2010-2024 Sebastian Bochan
 *
 * License: www.highcharts.com/license
 */!function(e){"object"==typeof module&&module.exports?(e.default=e,module.exports=e):"function"==typeof define&&define.amd?define("highcharts/modules/pareto",["highcharts"],function(t){return e(t),e.Highcharts=t,e}):e("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(e){"use strict";var t=e?e._modules:{};function s(e,t,s,i){e.hasOwnProperty(t)||(e[t]=i.apply(null,s),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:t,module:e[t]}})))}s(t,"Series/DerivedComposition.js",[t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(e,t,s){var i,r=e.noop,n=s.addEvent,o=s.defined;return function(e){function s(){t.prototype.init.apply(this,arguments),this.initialised=!1,this.baseSeries=null,this.eventRemovers=[],this.addEvents()}function i(){var e=this.chart,t=this.options.baseSeries,s=o(t)&&(e.series[t]||e.get(t));this.baseSeries=s||null}function a(){var e=this;this.eventRemovers.push(n(this.chart,"afterLinkSeries",function(){e.setBaseSeries(),e.baseSeries&&!e.initialised&&(e.setDerivedData(),e.addBaseSeriesEvents(),e.initialised=!0)}))}function u(){var e=this;this.eventRemovers.push(n(this.baseSeries,"updatedData",function(){e.setDerivedData()}),n(this.baseSeries,"destroy",function(){e.baseSeries=null,e.initialised=!1}))}function d(){this.eventRemovers.forEach(function(e){e()}),t.prototype.destroy.apply(this,arguments)}e.hasDerivedData=!0,e.setDerivedData=r,e.compose=function(e){var t=e.prototype;return t.addBaseSeriesEvents=u,t.addEvents=a,t.destroy=d,t.init=s,t.setBaseSeries=i,e},e.init=s,e.setBaseSeries=i,e.addEvents=a,e.addBaseSeriesEvents=u,e.destroy=d}(i||(i={})),i}),s(t,"Series/ParetoSeries/ParetoSeriesDefaults.js",[],function(){return{zIndex:3}}),s(t,"Series/ParetoSeries/ParetoSeries.js",[t["Series/DerivedComposition.js"],t["Series/ParetoSeries/ParetoSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,t,s,i){var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)}),o=s.seriesTypes.line,a=i.correctFloat,u=i.merge,d=i.extend,c=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return n(s,e),s.prototype.sumPointsPercents=function(e,t,s,i){for(var r,n=[],o=0,u=0,d=0,c=0;c<e.length;c++){var p=e[c];null!==p&&(i?u+=p:(r=p/s*100,n.push([t[o],a(d+r)]),d+=r)),++o}return i?u:n},s.prototype.setDerivedData=function(){var e=this.baseSeries.xData,t=this.baseSeries.yData,s=this.sumPointsPercents(t,e,null,!0);this.setData(this.sumPointsPercents(t,e,s,!1),!1)},s.defaultOptions=u(o.defaultOptions,t),s}(o);return d(c.prototype,{hasDerivedData:e.hasDerivedData}),e.compose(c),s.registerSeriesType("pareto",c),c}),s(t,"masters/modules/pareto.src.js",[],function(){})});