/**
 * Highcharts JS v11.2.0 (2023-10-30)
 *
 * Pareto series type for Highcharts
 *
 * (c) 2010-2021 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(s){return e(s),e.Highcharts=s,e}):e("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(e){"use strict";var s=e?e._modules:{};function t(e,s,t,i){e.hasOwnProperty(s)||(e[s]=i.apply(null,t),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:e[s]}})))}t(s,"Series/DerivedComposition.js",[s["Core/Globals.js"],s["Core/Series/Series.js"],s["Core/Utilities.js"]],function(e,s,t){var i;let{noop:r}=e,{addEvent:o,defined:n}=t;return function(e){let i=[];function a(){s.prototype.init.apply(this,arguments),this.initialised=!1,this.baseSeries=null,this.eventRemovers=[],this.addEvents()}function d(){let e=this.chart,s=this.options.baseSeries,t=n(s)&&(e.series[s]||e.get(s));this.baseSeries=t||null}function h(){this.eventRemovers.push(o(this.chart,"afterLinkSeries",()=>{this.setBaseSeries(),this.baseSeries&&!this.initialised&&(this.setDerivedData(),this.addBaseSeriesEvents(),this.initialised=!0)}))}function u(){this.eventRemovers.push(o(this.baseSeries,"updatedData",()=>{this.setDerivedData()}),o(this.baseSeries,"destroy",()=>{this.baseSeries=null,this.initialised=!1}))}function l(){this.eventRemovers.forEach(e=>{e()}),s.prototype.destroy.apply(this,arguments)}e.hasDerivedData=!0,e.setDerivedData=r,e.compose=function(e){if(t.pushUnique(i,e)){let s=e.prototype;s.addBaseSeriesEvents=u,s.addEvents=h,s.destroy=l,s.init=a,s.setBaseSeries=d}return e},e.init=a,e.setBaseSeries=d,e.addEvents=h,e.addBaseSeriesEvents=u,e.destroy=l}(i||(i={})),i}),t(s,"Series/ParetoSeries/ParetoSeriesDefaults.js",[],function(){return{zIndex:3}}),t(s,"Series/ParetoSeries/ParetoSeries.js",[s["Series/DerivedComposition.js"],s["Series/ParetoSeries/ParetoSeriesDefaults.js"],s["Core/Series/SeriesRegistry.js"],s["Core/Utilities.js"]],function(e,s,t,i){let{line:r}=t.seriesTypes,{correctFloat:o,merge:n,extend:a}=i;class d extends r{constructor(){super(...arguments),this.data=void 0,this.points=void 0,this.options=void 0}sumPointsPercents(e,s,t,i){let r=[],n=0,a=0,d=0,h;for(let u of e)null!==u&&(i?a+=u:(h=u/t*100,r.push([s[n],o(d+h)]),d+=h)),++n;return i?a:r}setDerivedData(){let e=this.baseSeries.xData,s=this.baseSeries.yData,t=this.sumPointsPercents(s,e,null,!0);this.setData(this.sumPointsPercents(s,e,t,!1),!1)}}return d.defaultOptions=n(r.defaultOptions,s),a(d.prototype,{hasDerivedData:e.hasDerivedData}),e.compose(d),t.registerSeriesType("pareto",d),d}),t(s,"masters/modules/pareto.src.js",[],function(){})});//# sourceMappingURL=pareto.js.map