/** * Highcharts JS v11.2.0 (2023-10-30) * * Highcharts variwide module * * (c) 2010-2021 Torstein Honsi * * License: www.highcharts.com/license */!function(t){"object"==typeof module&&module.exports?(t.default=t,module.exports=t):"function"==typeof define&&define.amd?define("highcharts/modules/variwide",["highcharts"],function(i){return t(i),t.Highcharts=i,t}):t("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){"use strict";var i=t?t._modules:{};function e(t,i,e,s){t.hasOwnProperty(i)||(t[i]=s.apply(null,e),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:t[i]}})))}e(i,"Series/Variwide/VariwideComposition.js",[i["Core/Utilities.js"]],function(t){var i=t.addEvent,e=t.wrap,s=[];function r(t){this.variwide&&this.cross&&this.cross.attr("stroke-width",t.point&&t.point.crosshairWidth)}function o(){var t=this;!this.horiz&&this.variwide&&this.chart.labelCollectors.push(function(){return t.tickPositions.filter(function(i){return!!t.ticks[i].label}).map(function(i,e){var s=t.ticks[i].label;return s.labelrank=t.zData[e],s})})}function n(t){var i=this.axis,e=i.horiz?"x":"y";i.variwide&&(this[e+"Orig"]=t.pos[e],this.postTranslate(t.pos,e,this.pos))}function a(t,i,e){var s=this.axis,r=t[i]-s.pos;s.horiz||(r=s.len-r),r=s.series[0].postTranslate(e,r),s.horiz||(r=s.len-r),t[i]=s.pos+r}function p(t,i,e,s,r,o,n,a){var p=Array.prototype.slice.call(arguments,1),h=r?"x":"y";this.axis.variwide&&"number"==typeof this[h+"Orig"]&&(p[r?0:1]=this[h+"Orig"]);var l=t.apply(this,p);return this.axis.variwide&&this.axis.categories&&this.postTranslate(l,h,this.pos),l}return{compose:function(h,l){if(t.pushUnique(s,h)&&(i(h,"afterDrawCrosshair",r),i(h,"afterRender",o)),t.pushUnique(s,l)){i(l,"afterGetPosition",n);var c=l.prototype;c.postTranslate=a,e(c,"getLabelPosition",p)}}}}),e(i,"Series/Variwide/VariwidePoint.js",[i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,i){var e,s=this&&this.__extends||(e=function(t,i){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}),r=t.seriesTypes.column.prototype.pointClass,o=i.isNumber;return function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.crosshairWidth=void 0,i.options=void 0,i.series=void 0,i}return s(i,t),i.prototype.isValid=function(){return o(this.y)&&o(this.z)},i}(r)}),e(i,"Series/Variwide/VariwideSeriesDefaults.js",[],function(){return{pointPadding:0,groupPadding:0}}),e(i,"Series/Variwide/VariwideSeries.js",[i["Core/Series/SeriesRegistry.js"],i["Series/Variwide/VariwideComposition.js"],i["Series/Variwide/VariwidePoint.js"],i["Series/Variwide/VariwideSeriesDefaults.js"],i["Core/Utilities.js"]],function(t,i,e,s,r){var o,n=this&&this.__extends||(o=function(t,i){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function e(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}),a=t.seriesTypes.column,p=r.addEvent,h=r.extend,l=r.merge,c=r.pick,d=function(e){function r(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t.relZ=void 0,t.totalZ=void 0,t.zData=void 0,t}return n(r,e),r.prototype.processData=function(i){this.totalZ=0,this.relZ=[],t.seriesTypes.column.prototype.processData.call(this,i),(this.xAxis.reversed?this.zData.slice().reverse():this.zData).forEach(function(t,i){this.relZ[i]=this.totalZ,this.totalZ+=t},this),this.xAxis.categories&&(this.xAxis.variwide=!0,this.xAxis.zData=this.zData)},r.prototype.postTranslate=function(t,i,e){var s=this.xAxis,r=this.relZ,o=s.reversed?r.length-t:t,n=s.reversed?-1:1,a=s.toPixels(s.reversed?(s.dataMax||0)+s.pointRange:s.dataMin||0),p=s.toPixels(s.reversed?s.dataMin||0:(s.dataMax||0)+s.pointRange),h=Math.abs(p-a),l=this.totalZ,d=this.chart.inverted?p-(this.chart.plotTop-n*s.minPixelPadding):a-this.chart.plotLeft-n*s.minPixelPadding,u=o/r.length*h,f=(o+n)/r.length*h,v=c(r[o],l)/l*h,y=c(r[o+n],l)/l*h;return e&&(e.crosshairWidth=y-v),d+v+(i-(d+u))*(y-v)/(f-u)},r.prototype.translate=function(){this.crispOption=this.options.crisp,this.options.crisp=!1,e.prototype.translate.call(this),this.options.crisp=this.crispOption},r.prototype.correctStackLabels=function(){for(var t,i,e,s,r=this.options,o=this.yAxis,n=0,a=this.points;n