/*
 Highcharts JS v6.1.1 (2018-06-27)
 Gantt series

 (c) 2016 Lars A. V. Cabrera

 --- WORK IN PROGRESS ---

 License: www.highcharts.com/license
*/
(function(m){"object"===typeof module&&module.exports?module.exports=m:m(Highcharts)})(function(m){(function(h){var m=h.each,r=h.isObject,u=h.pick,n=h.wrap,l=h.Axis,v=h.Chart,p=h.Tick;l.prototype.isOuterAxis=function(){var b=this,e=-1,c=!0;m(this.chart.axes,function(f,g){f.side===b.side&&(f===b?e=g:0<=e&&g>e&&(c=!1))});return c};p.prototype.getLabelWidth=function(){return this.label.getBBox().width};l.prototype.getMaxLabelLength=function(b){var e=this.tickPositions,c=this.ticks,f=0;if(!this.maxLabelLength||
b)m(e,function(b){(b=c[b])&&b.labelLength>f&&(f=b.labelLength)}),this.maxLabelLength=f;return this.maxLabelLength};l.prototype.addTitle=function(){var b=this.chart.renderer,e=this.axisParent,c=this.horiz,f=this.opposite,g=this.options,d=g.title,a;this.showAxis=a=this.hasData()||u(g.showEmpty,!0);g.title="";this.axisTitle||((g=d.textAlign)||(g=(c?{low:"left",middle:"center",high:"right"}:{low:f?"right":"left",middle:"center",high:f?"left":"right"})[d.align]),this.axisTitle=b.text(d.text,0,0,d.useHTML).attr({zIndex:7,
rotation:d.rotation||0,align:g}).addClass("highcharts-axis-title").css(d.style).add(e),this.axisTitle.isNew=!0);this.axisTitle[a?"show":"hide"](!0)};h.dateFormats={W:function(b){b=new this.Date(b);var e=0===this.get("Day",b)?7:this.get("Day",b),c=b.getTime(),f=new Date(this.get("FullYear",b),0,1,-6);this.set("Date",b,this.get("Date",b)+4-e);return 1+Math.floor(Math.floor((c-f)/864E5)/7)},E:function(b){return this.dateFormat("%a",b,!0).charAt(0)}};n(p.prototype,"addLabel",function(b){var e=this.axis,
c=void 0!==e.options.categories,f=e.tickPositions,f=this.pos!==f[f.length-1];(!e.options.grid||c||f)&&b.apply(this)});n(p.prototype,"getLabelPosition",function(b,e,c,f){var g=b.apply(this,Array.prototype.slice.call(arguments,1)),d=this.axis,a=d.options,k=a.tickInterval||1,q,t;a.grid&&(q=a.labels.style.fontSize,t=d.chart.renderer.fontMetrics(q,f),q=t.b,t=t.h,d.horiz&&void 0===a.categories?(a=d.axisGroup.getBBox().height,k=this.pos+k/2,g.x=d.translate(k)+d.left,k=a/2+t/2-Math.abs(t-q),g.y=0===d.side?
c-k:c+k):(void 0===a.categories&&(k=this.pos+k/2,g.y=d.translate(k)+d.top+q/2),k=this.getLabelWidth()/2-d.maxLabelLength/2,g.x=3===d.side?g.x+k:g.x-k));return g});n(l.prototype,"tickSize",function(b){var e=b.apply(this,Array.prototype.slice.call(arguments,1)),c;this.options.grid&&!this.horiz&&(c=2*Math.abs(this.defaultLeftAxisOptions.labels.x),this.maxLabelLength||(this.maxLabelLength=this.getMaxLabelLength()),c=this.maxLabelLength+c,e[0]=c);return e});n(l.prototype,"getOffset",function(b){var e=
this.chart.axisOffset,c=this.side,f,g,d=this.options,a=d.title,k=a&&a.text&&!1!==a.enabled;this.options.grid&&r(this.options.title)?(g=this.tickSize("tick")[0],e[c]&&g&&(f=e[c]+g),k&&this.addTitle(),b.apply(this,Array.prototype.slice.call(arguments,1)),e[c]=u(f,e[c]),d.title=a):b.apply(this,Array.prototype.slice.call(arguments,1))});n(l.prototype,"renderUnsquish",function(b){this.options.grid&&(this.labelRotation=0,this.options.labels.rotation=0);b.apply(this)});n(l.prototype,"setOptions",function(b,
e){e.grid&&this.horiz&&(e.startOnTick=!0,e.minPadding=0,e.endOnTick=!0);b.apply(this,Array.prototype.slice.call(arguments,1))});n(l.prototype,"render",function(b){var e=this.options,c,f,g,d,a,k,q=this.chart.renderer;if(e.grid){if(c=2*Math.abs(this.defaultLeftAxisOptions.labels.x),c=this.maxLabelLength+c,f=e.lineWidth,this.rightWall&&this.rightWall.destroy(),b.apply(this),b=this.axisGroup.getBBox(),this.horiz&&(this.rightWall=q.path(["M",b.x+this.width+1,b.y,"L",b.x+this.width+1,b.y+b.height]).attr({stroke:e.tickColor||
"#ccd6eb","stroke-width":e.tickWidth||1,zIndex:7,class:"grid-wall"}).add(this.axisGroup)),this.isOuterAxis()&&this.axisLine&&(this.horiz&&(c=b.height-1),f)){b=this.getLinePath(f);a=b.indexOf("M")+1;k=b.indexOf("L")+1;g=b.indexOf("M")+2;d=b.indexOf("L")+2;if(0===this.side||3===this.side)c=-c;this.horiz?(b[g]+=c,b[d]+=c):(b[a]+=c,b[k]+=c);this.axisLineExtra?this.axisLineExtra.animate({d:b}):this.axisLineExtra=q.path(b).attr({stroke:e.lineColor,"stroke-width":f,zIndex:7}).add(this.axisGroup);this.axisLine[this.showAxis?
"show":"hide"](!0)}}else b.apply(this)});n(v.prototype,"render",function(b){var e=25/11,c,f;m(this.axes,function(b){var d=b.options;d.grid&&(f=d.labels.style.fontSize,c=b.chart.renderer.fontMetrics(f),"datetime"===d.type&&(d.units=[["millisecond",[1]],["second",[1]],["minute",[1]],["hour",[1]],["day",[1]],["week",[1]],["month",[1]],["year",null]]),b.horiz?d.tickLength=d.cellHeight||c.h*e:(d.tickWidth=1,d.lineWidth||(d.lineWidth=1)))});b.apply(this)})})(m);(function(h){var m=h.addEvent,r=h.defined,
u=h.Color,n=h.seriesTypes.column,l=h.each,v=h.isNumber,p=h.isObject,b=h.merge,e=h.pick,c=h.seriesType,f=h.Axis,g=h.Point,d=h.Series;c("xrange","column",{colorByPoint:!0,dataLabels:{verticalAlign:"middle",inside:!0,formatter:function(){var a=this.point.partialFill;p(a)&&(a=a.amount);r(a)||(a=0);return 100*a+"%"}},tooltip:{headerFormat:'\x3cspan style\x3d"font-size: 0.85em"\x3e{point.x} - {point.x2}\x3c/span\x3e\x3cbr/\x3e',pointFormat:'\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e {series.name}: \x3cb\x3e{point.yCategory}\x3c/b\x3e\x3cbr/\x3e'},
borderRadius:3,pointRange:0},{type:"xrange",parallelArrays:["x","x2","y"],requireSorting:!1,animate:h.seriesTypes.line.prototype.animate,cropShoulder:1,getExtremesFromAll:!0,getColumnMetrics:function(){function a(){l(e.series,function(a){var b=a.xAxis;a.xAxis=a.yAxis;a.yAxis=b})}var b,e=this.chart;a();b=n.prototype.getColumnMetrics.call(this);a();return b},cropData:function(a,b,e,c){b=d.prototype.cropData.call(this,this.x2Data,b,e,c);b.xData=a.slice(b.start,b.end);return b},translatePoint:function(a){var k=
this.xAxis,c=this.columnMetrics,d=this.options.minPointLength||0,f=a.plotX,g=e(a.x2,a.x+(a.len||0)),h=k.translate(g,0,0,0,1),g=h-f,l=this.chart.inverted,m=e(this.options.borderWidth,1)%2/2;d&&(d-=g,0>d&&(d=0),f-=d/2,h+=d/2);f=Math.max(f,-10);h=Math.min(Math.max(h,-10),k.len+10);a.shapeArgs={x:Math.floor(Math.min(f,h))+m,y:Math.floor(a.plotY+c.offset)+m,width:Math.round(Math.abs(h-f)),height:Math.round(c.width),r:this.options.borderRadius};d=a.shapeArgs.x;h=d+a.shapeArgs.width;0>d||h>k.len?(d=Math.min(k.len,
Math.max(0,d)),h=Math.max(0,Math.min(h,k.len)),k=h-d,a.dlBox=b(a.shapeArgs,{x:d,width:h-d,centerX:k?k/2:null})):a.dlBox=null;a.tooltipPos[0]+=l?0:g/2;a.tooltipPos[1]-=l?g/2:c.width/2;if(k=a.partialFill)p(k)&&(k=k.amount),v(k)||(k=0),c=a.shapeArgs,a.partShapeArgs={x:c.x,y:c.y,width:c.width,height:c.height,r:this.options.borderRadius},a.clipRectArgs={x:c.x,y:c.y,width:Math.max(Math.round(g*k+(a.plotX-f)),0),height:c.height}},translate:function(){n.prototype.translate.apply(this,arguments);l(this.points,
function(a){this.translatePoint(a)},this)},drawPoint:function(a,k){var c=this.options,d=this.chart.renderer,e=a.graphic,f=a.shapeType,h=a.shapeArgs,g=a.partShapeArgs,l=a.clipRectArgs,m=a.partialFill,n=a.selected&&"select",r=c.stacking&&!c.borderRadius;if(a.isNull)e&&(a.graphic=e.destroy());else{if(e)a.graphicOriginal[k](b(h));else a.graphic=e=d.g("point").addClass(a.getClassName()).add(a.group||this.group),a.graphicOriginal=d[f](h).addClass(a.getClassName()).addClass("highcharts-partfill-original").add(e);
g&&(a.graphicOverlay?(a.graphicOverlay[k](b(g)),a.clipRect.animate(b(l))):(a.clipRect=d.clipRect(l.x,l.y,l.width,l.height),a.graphicOverlay=d[f](g).addClass("highcharts-partfill-overlay").add(e).clip(a.clipRect)));a.graphicOriginal.attr(this.pointAttribs(a,n)).shadow(c.shadow,null,r);g&&(p(m)||(m={}),p(c.partialFill)&&(m=b(m,c.partialFill)),k=m.fill||u(a.color||this.color).brighten(-.3).get(),a.graphicOverlay.attr(this.pointAttribs(a,n)).attr({fill:k}).shadow(c.shadow,null,r))}},drawPoints:function(){var a=
this,b=a.getAnimationVerb();l(a.points,function(c){a.drawPoint(c,b)})},getAnimationVerb:function(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"}},{init:function(){g.prototype.init.apply(this,arguments);var a;a=this.series;var b=a.chart.options.chart.colorCount;this.y||(this.y=0);a.options.colorByPoint&&(a=a.options.colors||a.chart.options.colors,b=a.length,!this.options.color&&a[this.y%b]&&(this.color=a[this.y%b]));this.colorIndex=e(this.options.colorIndex,this.y%
b);return this},setState:function(){g.prototype.setState.apply(this,arguments);this.series.drawPoint(this,this.series.getAnimationVerb())},getLabelConfig:function(){var a=g.prototype.getLabelConfig.call(this),b=this.series.yAxis.categories;a.x2=this.x2;a.yCategory=this.yCategory=b&&b[this.y];return a},tooltipDateKeys:["x","x2"],isValid:function(){return"number"===typeof this.x&&"number"===typeof this.x2}});m(f,"afterGetSeriesExtremes",function(){var a=this.series,b,c;this.isXAxis&&(b=e(this.dataMax,
-Number.MAX_VALUE),l(a,function(a){a.x2Data&&l(a.x2Data,function(a){a>b&&(b=a,c=!0)})}),c&&(this.dataMax=b))})})(m)});
