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