!/**
 * Highcharts Gantt JS v12.6.0 (2026-04-13)
 * @module highcharts/modules/grid-axis
 * @requires highcharts
 *
 * GridAxis
 *
 * (c) 2016-2026 Highsoft AS
 * Author: Lars A. V. Cabrera
 *
 * 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.Axis):"function"==typeof define&&define.amd?define("highcharts/modules/grid-axis",["highcharts/highcharts"],function(t){return i(t,t.Axis)}):"object"==typeof exports?exports["highcharts/modules/grid-axis"]=i(t._Highcharts,t._Highcharts.Axis):t.Highcharts=i(t.Highcharts,t.Highcharts.Axis)}("u"<typeof window?this:window,function(t,i){return function(){"use strict";var e,r,n={532:function(t){t.exports=i},944:function(i){i.exports=t}},s={};function o(t){var i=s[t];if(void 0!==i)return i.exports;var e=s[t]={exports:{}};return n[t](e,e.exports,o),e.exports}o.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(i,{a:i}),i},o.d=function(t,i){for(var e in i)o.o(i,e)&&!o.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:i[e]})},o.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)};var a={};o.d(a,{default:function(){return q}});var h=o(944),l=o.n(h),d=o(532),c=o.n(d),u=function(t,i,e){if(e||2==arguments.length)for(var r,n=0,s=i.length;n<s;n++)!r&&n in i||(r||(r=Array.prototype.slice.call(i,0,n)),r[n]=i[n]);return t.concat(r||Array.prototype.slice.call(i))};function f(t,i,e,r){void 0===r&&(r={});var n="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(n,"hcEvents")||(n.hcEvents={});var s=n.hcEvents;l().Point&&t instanceof l().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var o=t.addEventListener;o&&o.call(t,i,e,!!l().supportsPassiveEvents&&{passive:void 0===r.passive?-1!==i.indexOf("touch"):r.passive,capture:!1}),s[i]||(s[i]=[]);var a={fn:e,order:"number"==typeof r.order?r.order:1/0};return s[i].push(a),s[i].sort(function(t,i){return t.order-i.order}),function(){!function(t,i,e){function r(i,e){var r=t.removeEventListener;r&&r.call(t,i,e,!1)}function n(e){var n,s;t.nodeName&&(i?(n={})[i]=!0:n=e,P(n,function(t,i){if(e[i])for(s=e[i].length;s--;)r(i,e[i][s].fn)}))}var s="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(s,"hcEvents")){var o=s.hcEvents;if(i){var a=o[i]||[];e?(o[i]=a.filter(function(t){return e!==t.fn}),r(i,e)):(n(o),o[i]=[])}else n(o),delete s.hcEvents}}(t,i,e)}}function p(t){return null!=t}function g(t,i){for(var e=t.length;e--;)if(t[e]===i){t.splice(e,1);break}}l().doc,l().win;var v=Array.prototype.find?function(t,i){return t.find(i)}:function(t,i){var e,r=t.length;for(e=0;e<r;e++)if(i(t[e],e))return t[e]};function m(t){return b(t)&&"number"==typeof t.nodeType}function x(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function k(t){var i=Object.prototype.toString.call(t);return"[object Array]"===i||"[object Array Iterator]"===i}function b(t,i){return!!t&&"object"==typeof t&&(!i||!k(t))}function y(t){for(var i=[],e=1;e<arguments.length;e++)i[e-1]=arguments[e];var r,n=u([t],i,!0),s={},o=function(t,i){return"object"!=typeof t&&(t={}),P(i,function(e,r){if("__proto__"!==r&&"constructor"!==r){var n;!b(e,!0)||(n=null==e?void 0:e.constructor,b(e,!0)&&!m(e)&&(null==n?void 0:n.name)&&"Object"!==n.name)||m(e)?t[r]=i[r]:t[r]=o(t[r]||{},e)}}),t};!0===t&&(s=n[1],n=Array.prototype.slice.call(n,2));var a=n.length;for(r=0;r<a;r++)s=o(s,n[r]);return s}function P(t,i,e){for(var r in t)Object.hasOwnProperty.call(t,r)&&i.call(e||t[r],t[r],r,t)}function w(){for(var t=arguments,i=t.length,e=0;e<i;e++){var r=t[e];if(null!=r)return r}}function L(t,i,e){var r=t[i];t[i]=function(){var t=arguments,i=this;return e.apply(this,[function(){return r.apply(i,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}}var O=l().dateFormats;(e=r||(r={}))[e.top=0]="top",e[e.right=1]="right",e[e.bottom=2]="bottom",e[e.left=3]="left";function B(t,i){var e={width:0,height:0};if(i.forEach(function(i){var r,n=t[i],s=0,o=0;b(n,!0)&&(s=(r=b(n.label,!0)?n.label:{}).getBBox?r.getBBox().height:0,r.textStr&&!x(r.textPxLength)&&(r.textPxLength=r.getBBox().width),o=x(r.textPxLength)?Math.round(r.textPxLength):0,r.textStr&&(o=Math.round(r.getBBox().width)),e.height=Math.max(s,e.height),e.width=Math.max(o,e.width))}),"treegrid"===this.type&&this.treeGrid&&this.treeGrid.mapOfPosToGridNode){var r=this.treeGrid.mapOfPosToGridNode[-1].height||0;e.width+=this.options.labels.indentation*(r-1)}return e}function T(t){var i=this.grid,e=3===this.side;if(e||t.apply(this),!(null==i?void 0:i.isColumn)){var r=(null==i?void 0:i.columns)||[];e&&(r=r.slice().reverse()),r.forEach(function(t){t.getOffset()})}e&&t.apply(this)}function E(t){if(!0===(this.options.grid||{}).enabled){var i=this.axisTitle,e=this.height,n=this.horiz,s=this.left,o=this.offset,a=this.opposite,h=this.options,l=this.top,d=this.width,c=this.tickSize(),u=null==i?void 0:i.getBBox().width,f=h.title.x,p=h.title.y,g=w(h.title.margin,n?5:10),v=i?this.chart.renderer.fontMetrics(i).f:0,m=(n?l+e:s)+(n?1:-1)*(a?-1:1)*(c?c[0]/2:0)+(this.side===r.bottom?v:0);t.titlePosition.x=n?s-(u||0)/2-g+f:m+(a?d:0)+o+f,t.titlePosition.y=n?m-(a?e:0)+(a?v:-v)/2+o+p:l-g+p}}function A(){var t,i=this.chart,e=this.options.grid,r=void 0===e?{}:e,n=this.userOptions;if(r.enabled&&((t=this.options).labels.align=w(t.labels.align,"center"),this.categories||(t.showLastLabel=!1),this.labelRotation=0,t.labels.rotation=0,t.minTickInterval=1),r.columns)for(var s=this.grid.columns=[],o=this.grid.columnIndex=0;++o<r.columns.length;){var a=y(n,r.columns[o],{isInternal:!0,linkedTo:0,scrollbar:{enabled:!1}},{grid:{columns:void 0}}),h=new(c())(this.chart,a,this.coll);h.grid.isColumn=!0,h.grid.columnIndex=o,g(i.axes,h),g(i[this.coll]||[],h),s.push(h)}}function M(){var t,i,e=this.axisTitle,n=this.grid,s=this.options;if(!0===(s.grid||{}).enabled){var o=this.min||0,a=this.max||0,h=this.ticks[this.tickPositions[0]];if(e&&!this.chart.styledMode&&(null==h?void 0:h.slotWidth)&&!this.options.title.style.width&&e.css({width:""+h.slotWidth+"px"}),this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,this.tickPositions),this.rightWall&&this.rightWall.destroy(),(null==(t=this.grid)?void 0:t.isOuterAxis())&&this.axisLine){var l=s.lineWidth;if(l){var d=this.getLinePath(l),c=d[0],u=d[1],f=(this.tickSize("tick")||[1])[0]*(this.side===r.top||this.side===r.left?-1:1);if("M"===c[0]&&"L"===u[0]&&(this.horiz?(c[2]+=f,u[2]+=f):(c[1]+=f,u[1]+=f)),!this.horiz&&this.chart.marginRight){var p=["L",this.left,c[2]||0],g=[c,p],v=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(a+this.tickmarkOffset)],m=[["M",u[1]||0,this.toPixels(a+this.tickmarkOffset)],v];this.grid.upperBorder||o%1==0||(this.grid.upperBorder=this.grid.renderBorder(g)),this.grid.upperBorder&&(this.grid.upperBorder.attr({stroke:s.lineColor,"stroke-width":s.lineWidth}),this.grid.upperBorder.animate({d:g})),this.grid.lowerBorder||a%1==0||(this.grid.lowerBorder=this.grid.renderBorder(m)),this.grid.lowerBorder&&(this.grid.lowerBorder.attr({stroke:s.lineColor,"stroke-width":s.lineWidth}),this.grid.lowerBorder.animate({d:m}))}this.grid.axisLineExtra?(this.grid.axisLineExtra.attr({stroke:s.lineColor,"stroke-width":s.lineWidth}),this.grid.axisLineExtra.animate({d:d})):this.grid.axisLineExtra=this.grid.renderBorder(d),this.axisLine[this.showAxis?"show":"hide"]()}}if(((null==n?void 0:n.columns)||[]).forEach(function(t){return t.render()}),!this.horiz&&this.chart.hasRendered&&(this.scrollbar||(null==(i=this.linkedParent)?void 0:i.scrollbar))&&this.tickPositions.length){for(var x=this.tickmarkOffset,k=this.tickPositions[this.tickPositions.length-1],b=this.tickPositions[0],y=void 0,P=void 0;(y=this.hiddenLabels.pop())&&y.element;)y.show();for(;(P=this.hiddenMarks.pop())&&P.element;)P.show();(y=this.ticks[b].label)&&(o-b>x?this.hiddenLabels.push(y.hide()):y.show()),(y=this.ticks[k].label)&&(k-a>x?this.hiddenLabels.push(y.hide()):y.show());var w=this.ticks[k].mark;w&&k-a<x&&k-a>0&&this.ticks[k].isLast&&this.hiddenMarks.push(w.hide())}}}function W(){var t,i=null==(t=this.tickPositions)?void 0:t.info,e=this.options,r=e.grid||{},n=this.userOptions.labels||{};r.enabled&&(this.horiz?(this.series.forEach(function(t){t.options.pointRange=0}),i&&e.dateTimeLabelFormats&&e.labels&&!p(n.align)&&(!1===e.dateTimeLabelFormats[i.unitName].range||i.count>1)&&(e.labels.align="left",p(n.x)||(e.labels.x=3))):"treegrid"!==this.type&&this.grid&&this.grid.columns&&(this.minPointOffset=this.tickInterval))}function S(t){var i,e=this.options,r=t.userOptions,n=e&&b(e.grid,!0)?e.grid:{};!0===n.enabled&&(i=y(!0,{className:"highcharts-grid-axis "+(r.className||""),dateTimeLabelFormats:{hour:{list:["%[HM]","%[H]"]},day:{list:["%[AeB]","%[aeb]","%[E]"]},week:{list:["Week %W","W%W"]},month:{list:["%[B]","%[b]","%o"]}},grid:{borderWidth:1},labels:{padding:2,style:{fontSize:"0.9em"}},margin:0,title:{text:null,reserveSpace:!1,rotation:0,style:{textOverflow:"ellipsis"}},units:[["millisecond",[1,10,100]],["second",[1,10]],["minute",[1,5,15]],["hour",[1,6]],["day",[1]],["week",[1]],["month",[1]],["year",null]]},r),"xAxis"===this.coll&&(p(r.linkedTo)&&!p(r.tickPixelInterval)&&(i.tickPixelInterval=350),!(!p(r.tickPixelInterval)&&p(r.linkedTo))||p(r.tickPositioner)||p(r.tickInterval)||p(r.units)||(i.tickPositioner=function(t,e){var r,n,s=null==(n=null==(r=this.linkedParent)?void 0:r.tickPositions)?void 0:n.info;if(s){for(var o=i.units||[],a=void 0,l=1,d="year",c=0;c<o.length;c++){var u=o[c];if(u&&u[0]===s.unitName){a=c;break}}var f=x(a)&&o[a+1];if(f){d=f[0]||"year";var p=f[1];l=(null==p?void 0:p[0])||1}else"year"===s.unitName&&(l=10*s.count);var g=h.timeUnits[d];return this.tickInterval=g*l,this.chart.time.getTimeTicks({unitRange:g,count:l,unitName:d},t,e,this.options.startOfWeek)}})),y(!0,this.options,i),this.horiz&&(e.minPadding=w(r.minPadding,0),e.maxPadding=w(r.maxPadding,0)),x(e.grid.borderWidth)&&(e.tickWidth=e.lineWidth=n.borderWidth))}function z(t){var i=t.userOptions,e=(null==i?void 0:i.grid)||{},r=e.columns;e.enabled&&r&&y(!0,this.options,r[0])}function I(){(this.grid.columns||[]).forEach(function(t){return t.setScale()})}function C(t){var i=this.horiz,e=this.maxLabelDimensions,r=this.options.grid,n=void 0===r?{}:r;if(n.enabled&&e){var s=2*this.options.labels.distance,o=i?n.cellHeight||s+e.height:s+e.width;k(t.tickSize)?t.tickSize[0]=o:t.tickSize=[o,0]}}function j(){this.axes.forEach(function(t){var i;((null==(i=t.grid)?void 0:i.columns)||[]).forEach(function(t){t.setAxisSize(),t.setAxisTranslation()})})}function H(t){var i=this.grid;(i.columns||[]).forEach(function(i){return i.destroy(t.keepEvents)}),i.columns=void 0}function N(t){var i=t.userOptions||{},e=i.grid||{};e.enabled&&p(e.borderColor)&&(i.tickColor=i.lineColor=e.borderColor),this.grid||(this.grid=new D(this)),this.hiddenLabels=[],this.hiddenMarks=[]}function _(t){var i=this.label,e=this.axis,n=e.reversed,s=e.chart,o=e.options.grid||{},a=e.options.labels,h=a.align,l=r[e.side],d=t.tickmarkOffset,c=e.tickPositions,u=this.pos-d,f=x(c[t.index+1])?c[t.index+1]-d:(e.max||0)+d,p=e.tickSize("tick"),g=p?p[0]:0,v=p?p[1]/2:0;if(!0===o.enabled){var m,k=void 0,b=void 0,y=void 0;if("top"===l?m=(k=e.top+e.offset)-g:"bottom"===l?k=(m=s.chartHeight-e.bottom+e.offset)+g:(k=e.top+e.len-(e.translate(n?f:u)||0),m=e.top+e.len-(e.translate(n?u:f)||0)),"right"===l?y=(b=s.chartWidth-e.right+e.offset)+g:"left"===l?b=(y=e.left+e.offset)-g:(b=Math.round(e.left+(e.translate(n?f:u)||0))-v,y=Math.min(Math.round(e.left+(e.translate(n?u:f)||0))-v,e.left+e.len)),this.slotWidth=y-b,t.pos.x="left"===h?b:"right"===h?y:b+(y-b)/2,t.pos.y=m+(k-m)/2,i){var P=s.renderer.fontMetrics(i),w=i.getBBox().height;if(a.useHTML)t.pos.y+=P.b+-(w/2);else{var L=Math.round(w/P.h);t.pos.y+=(P.b-(P.h-P.f))/2+-((L-1)*P.h/2)}}t.pos.x+=e.horiz&&a.x||0}}function G(t){var i,e=t.axis,r=t.value;if(null==(i=e.options.grid)?void 0:i.enabled){var n=e.tickPositions,s=(e.linkedParent||e).series[0],o=r===n[0],a=r===n[n.length-1],h=s&&v(s.options.data,function(t){return t[e.isXAxis?"x":"y"]===r}),d=void 0;h&&s.is("gantt")&&(d=y(h),l().seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(d,e.chart)),t.isFirst=o,t.isLast=a,t.point=d}}function F(){var t,i,e=this.options,r=e.grid||{},n=this.categories,s=this.tickPositions,o=s[0],a=s[1],h=s[s.length-1],l=s[s.length-2],d=null==(t=this.linkedParent)?void 0:t.min,c=null==(i=this.linkedParent)?void 0:i.max,u=d||this.min,f=c||this.max,p=this.tickInterval,g=x(u)&&u>=o+p&&u<a,v=x(u)&&o<u&&o+p>u,m=x(f)&&h>f&&h-p<f,k=x(f)&&f<=h-p&&f>l;!0===r.enabled&&!n&&(this.isXAxis||this.isLinked)&&((v||g)&&!e.startOnTick&&(s[0]=u),(m||k)&&!e.endOnTick&&(s[s.length-1]=f))}function R(t){var i,e=this.options.grid;return!0===(void 0===e?{}:e).enabled&&this.categories?this.tickInterval:t.apply(this,(i=arguments,Array.prototype.slice.call(i,1)))}var D=function(){function t(t){this.axis=t}return t.prototype.isOuterAxis=function(){var t,i=this.axis,e=i.chart,r=i.grid.columnIndex,n=(null==(t=i.linkedParent)?void 0:t.grid.columns)||i.grid.columns||[],s=r?i.linkedParent:i,o=-1,a=0;return 3===i.side&&!e.inverted&&n.length?!i.linkedParent:((e[i.coll]||[]).forEach(function(t,e){t.side!==i.side||t.options.isInternal||(a=e,t===s&&(o=e))}),a===o&&(!x(r)||n.length===r))},t.prototype.renderBorder=function(t){var i=this.axis,e=i.chart.renderer,r=i.options,n=e.path(t).addClass("highcharts-axis-line").add(i.axisGroup);return e.styledMode||n.attr({stroke:r.lineColor,"stroke-width":r.lineWidth,zIndex:7}),n},t}();O.E=function(t){return this.dateFormat("%a",t,!0).charAt(0)},O.W=function(t){var i=this.toParts(t),e=(i[7]+6)%7,r=i.slice(0);r[2]=i[2]-e+3;var n=this.toParts(this.makeTime(r[0],0,1));return 4!==n[7]&&(i[1]=0,i[2]=1+(11-n[7])%7),(1+Math.floor((this.makeTime(r[0],r[1],r[2])-this.makeTime(n[0],n[1],n[2]))/6048e5)).toString()};var X=l();({compose:function(t,i,e){return t.keepProps.includes("grid")||(t.keepProps.push("grid"),t.prototype.getMaxLabelDimensions=B,L(t.prototype,"unsquish",R),L(t.prototype,"getOffset",T),f(t,"init",N),f(t,"afterGetTitlePosition",E),f(t,"afterInit",A),f(t,"afterRender",M),f(t,"afterSetAxisTranslation",W),f(t,"afterSetOptions",S),f(t,"afterSetOptions",z),f(t,"afterSetScale",I),f(t,"afterTickSize",C),f(t,"trimTicks",F),f(t,"destroy",H),f(i,"afterSetChartSize",j),f(e,"afterGetLabelPosition",_),f(e,"labelFormat",G)),t}}).compose(X.Axis,X.Chart,X.Tick);var q=l();return a.default}()});