!/**
 * Highcharts JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/variwide
 * @requires highcharts
 *
 * Highcharts variwide module
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Torstein Hønsi
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */function(t,i){"object"==typeof exports&&"object"==typeof module?module.exports=i(t._Highcharts,t._Highcharts.SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/modules/variwide",["highcharts/highcharts"],function(t){return i(t,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/modules/variwide"]=i(t._Highcharts,t._Highcharts.SeriesRegistry):t.Highcharts=i(t.Highcharts,t.Highcharts.SeriesRegistry)}("u"<typeof window?this:window,function(t,i){return function(){"use strict";var r,e,s={512:function(t){t.exports=i},944:function(i){i.exports=t}},o={};function n(t){var i=o[t];if(void 0!==i)return i.exports;var r=o[t]={exports:{}};return s[t](r,r.exports,n),r.exports}n.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(i,{a:i}),i},n.d=function(t,i){for(var r in i)n.o(i,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:i[r]})},n.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)};var a={};n.d(a,{default:function(){return k}});var p=n(944),h=n.n(p),c=n(512),l=n.n(c),u=h().composed;function d(t){var i;this.variwide&&this.cross&&this.cross.attr("stroke-width",null==(i=t.point)?void 0:i.crosshairWidth)}function f(){var t=this;this.chart.labelCollectors.push(function(){return t.variwide?t.tickPositions.filter(function(i){return!!t.ticks[i].label}).map(function(i,r){var e,s=t.ticks[i].label;return s.labelrank=null==(e=t.zData)?void 0:e[r],s}):[]})}function v(t){var i=this.axis,r=i.horiz?"x":"y";i.variwide&&(this[r+"Orig"]=t.pos[r],this.postTranslate(t.pos,r,this.pos))}function y(t,i,r){var e=this.axis,s=t[i]-e.pos;e.horiz||(s=e.len-s),s=e.series[0].postTranslate(r,s),e.horiz||(s=e.len-s),t[i]=e.pos+s}function x(t,i,r,e,s,o,n,a){var p=Array.prototype.slice.call(arguments,1),h=s?"x":"y";this.axis.variwide&&"number"==typeof this[h+"Orig"]&&(p[+!s]=this[h+"Orig"]);var c=t.apply(this,p);return this.axis.variwide&&this.axis.categories&&this.postTranslate(c,h,this.pos),c}var g=function(t,i){if((0,p.pushUnique)(u,"Variwide")){var r=i.prototype;(0,p.addEvent)(t,"afterDrawCrosshair",d),(0,p.addEvent)(t,"afterRender",f),(0,p.addEvent)(i,"afterGetPosition",v),r.postTranslate=y,(0,p.wrap)(r,"getLabelPosition",x)}},w=(r=function(t,i){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])})(t,i)},function(t,i){function e(){this.constructor=t}r(t,i),t.prototype=null===i?Object.create(i):(e.prototype=i.prototype,new e)}),m=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return w(i,t),i.prototype.isValid=function(){return(0,p.isNumber)(this.y)&&(0,p.isNumber)(this.z)},i}(l().seriesTypes.column.prototype.pointClass),b={pointPadding:0,groupPadding:0},O=(e=function(t,i){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])})(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 r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}),_=l().seriesTypes.column,A=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return O(i,t),i.prototype.processData=function(t){this.totalZ=0,this.relZ=[],l().seriesTypes.column.prototype.processData.call(this,t);var i=this.getColumn("z");(this.xAxis.reversed?i.slice().reverse():i).forEach(function(t,i){this.relZ[i]=this.totalZ,this.totalZ+=t},this),this.xAxis.categories&&(this.xAxis.variwide=!0,this.xAxis.zData=i)},i.prototype.postTranslate=function(t,i,r){var e=this.xAxis,s=this.relZ,o=e.reversed?s.length-t:t,n=e.reversed?-1:1,a=e.toPixels(e.reversed?(e.dataMax||0)+e.pointRange:e.dataMin||0),h=e.toPixels(e.reversed?e.dataMin||0:(e.dataMax||0)+e.pointRange),c=Math.abs(h-a),l=this.totalZ,u=this.chart.inverted?h-(this.chart.plotTop-n*e.minPixelPadding):a-this.chart.plotLeft-n*e.minPixelPadding,d=o/s.length*c,f=(o+n)/s.length*c,v=(0,p.pick)(s[o],l)/l*c,y=(0,p.pick)(s[o+n],l)/l*c;return r&&(r.crosshairWidth=y-v),u+v+(i-(u+d))*(y-v)/(f-d)},i.prototype.translate=function(){this.crispOption=this.options.crisp,this.options.crisp=!1,t.prototype.translate.call(this),this.options.crisp=this.crispOption},i.prototype.correctStackLabels=function(){for(var t,i,r,e,s=this.options,o=this.yAxis,n=0,a=this.points;n<a.length;n++){var p=a[n];e=p.x,i=p.shapeArgs.width,(r=o.stacking.stacks[(this.negStacks&&p.y<(s.startFromThreshold?0:s.threshold)?"-":"")+this.stackKey])&&(t=r[e])&&!p.isNull&&t.setOffset(-(i/2)||0,i||0,void 0,void 0,p.plotX,this.xAxis)}},i.prototype.getXExtremes=function(t){var i=(0,p.arrayMax)(t),r=this.getColumn("z")[t.indexOf(i)];return{min:(0,p.arrayMin)(t),max:i+(this.xAxis.categories?0:r)}},i.compose=g,i.defaultOptions=(0,p.merge)(_.defaultOptions,b),i}(_);(0,p.addEvent)(A,"afterColumnTranslate",function(){for(var t=this.xAxis,i=this.chart.inverted,r=-1,e=0,s=this.points;e<s.length;e++){var o=s[e];++r;var n=o.shapeArgs||{},a=n.x,h=void 0===a?0:a,c=n.width,l=void 0===c?0:c,u=o.plotX,d=void 0===u?0:u,f=o.tooltipPos,v=o.z,y=void 0===v?0:v,x=void 0,g=void 0;t.variwide?(x=this.postTranslate(r,h,o),g=this.postTranslate(r,h+l)):(x=d,g=t.translate(o.x+y,!1,!1,!1,!0)),this.crispOption&&(x=(0,p.crisp)(x,this.borderWidth),g=(0,p.crisp)(g,this.borderWidth)),n.x=x,n.width=Math.max(g-x,1),o.plotX=(x+g)/2,f&&(i?f[1]=t.len-n.x-n.width/2:f[0]=n.x+n.width/2)}this.options.stacking&&this.correctStackLabels()},{order:2}),(0,p.extend)(A.prototype,{irregularWidths:!0,keysAffectYAxis:["y"],pointArrayMap:["y","z"],parallelArrays:["x","y","z"],pointClass:m}),l().registerSeriesType("variwide",A);var P=h();A.compose(P.Axis,P.Tick);var k=h();return a.default}()});