/*
 Highcharts JS v10.3.2 (2022-11-28)

 (c) 2009-2021 Sebastian Bochan, Rafal Sebestjanski

 License: www.highcharts.com/license
*/
(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/dumbbell",["highcharts"],function(f){a(f);a.Highcharts=f;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function f(a,d,h,e){a.hasOwnProperty(d)||(a[d]=e.apply(null,h),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:d,module:a[d]}})))}a=a?a._modules:{};f(a,
"Series/AreaRange/AreaRangePoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,d){var h=this&&this.__extends||function(){var a=function(b,n){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var k in b)b.hasOwnProperty(k)&&(a[k]=b[k])};return a(b,n)};return function(b,n){function k(){this.constructor=b}a(b,n);b.prototype=null===n?Object.create(n):(k.prototype=n.prototype,new k)}}();a=a.seriesTypes.area.prototype;var e=
a.pointClass.prototype,l=d.defined,p=d.isNumber;return function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.high=void 0;b.low=void 0;b.options=void 0;b.plotX=void 0;b.series=void 0;return b}h(b,a);b.prototype.setState=function(){var a=this.state,b=this.series,c=b.chart.polar;l(this.plotHigh)||(this.plotHigh=b.yAxis.toPixels(this.high,!0));l(this.plotLow)||(this.plotLow=this.plotY=b.yAxis.toPixels(this.low,!0));b.stateMarkerGraphic&&(b.lowerStateMarkerGraphic=b.stateMarkerGraphic,
b.stateMarkerGraphic=b.upperStateMarkerGraphic);this.graphic=this.graphics&&this.graphics[1];this.plotY=this.plotHigh;c&&p(this.plotHighX)&&(this.plotX=this.plotHighX);e.setState.apply(this,arguments);this.state=a;this.plotY=this.plotLow;this.graphic=this.graphics&&this.graphics[0];c&&p(this.plotLowX)&&(this.plotX=this.plotLowX);b.stateMarkerGraphic&&(b.upperStateMarkerGraphic=b.stateMarkerGraphic,b.stateMarkerGraphic=b.lowerStateMarkerGraphic,b.lowerStateMarkerGraphic=void 0);e.setState.apply(this,
arguments)};b.prototype.haloPath=function(){var b=this.series.chart.polar,a=[];this.plotY=this.plotLow;b&&p(this.plotLowX)&&(this.plotX=this.plotLowX);this.isInside&&(a=e.haloPath.apply(this,arguments));this.plotY=this.plotHigh;b&&p(this.plotHighX)&&(this.plotX=this.plotHighX);this.isTopInside&&(a=a.concat(e.haloPath.apply(this,arguments)));return a};b.prototype.isValid=function(){return p(this.low)&&p(this.high)};return b}(a.pointClass)});f(a,"Series/Dumbbell/DumbbellPoint.js",[a["Series/AreaRange/AreaRangePoint.js"],
a["Core/Utilities.js"]],function(a,d){var h=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return a(c,b)};return function(c,b){function e(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}(),e=d.extend,l=d.pick;d=function(a){function c(){var b=null!==a&&a.apply(this,arguments)||this;b.series=void 0;
b.options=void 0;b.connector=void 0;b.pointWidth=void 0;return b}h(c,a);c.prototype.setState=function(){var a=this.series,c=a.chart,d=a.options.marker,h=this.options,p=l(h.lowColor,a.options.lowColor,h.color,this.zone&&this.zone.color,this.color,a.color),f="attr";this.pointSetState.apply(this,arguments);if(!this.state){f="animate";var r=this.graphics||[],m=r[0];r=r[1];m&&!c.styledMode&&(m.attr({fill:p}),r&&(c={y:this.y,zone:this.zone},this.y=this.high,this.zone=this.zone?this.getZone():void 0,d=l(this.marker?
this.marker.fillColor:void 0,d?d.fillColor:void 0,h.color,this.zone?this.zone.color:void 0,this.color),r.attr({fill:d}),e(this,c)))}this.connector[f](a.getConnectorAttribs(this))};c.prototype.destroy=function(){this.graphic||(this.graphic=this.connector,this.connector=void 0);return a.prototype.destroy.call(this)};return c}(a);e(d.prototype,{pointSetState:a.prototype.setState});return d});f(a,"Series/Dumbbell/DumbbellSeries.js",[a["Series/Column/ColumnSeries.js"],a["Series/Dumbbell/DumbbellPoint.js"],
a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,d,h,e,f,p,c){var b=this&&this.__extends||function(){var a=function(b,g){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var b in g)g.hasOwnProperty(b)&&(a[b]=g[b])};return a(b,g)};return function(b,g){function c(){this.constructor=b}a(b,g);b.prototype=null===g?Object.create(g):(c.prototype=
g.prototype,new c)}}(),n=a.prototype;h=h.noop;var k=e.prototype;e=f.seriesTypes;var l=e.arearange;e=e.columnrange.prototype;var t=l.prototype,u=c.extend,r=c.merge,m=c.pick;c=function(a){function c(){var g=null!==a&&a.apply(this,arguments)||this;g.data=void 0;g.options=void 0;g.points=void 0;g.columnMetrics=void 0;return g}b(c,a);c.prototype.getConnectorAttribs=function(a){var b=this.chart,g=a.options,c=this.options,d=this.xAxis,e=this.yAxis,f=m(g.connectorWidth,c.connectorWidth),h=m(g.connectorColor,
c.connectorColor,g.color,a.zone?a.zone.color:void 0,a.color),n=m(c.states&&c.states.hover&&c.states.hover.connectorWidthPlus,1),l=m(g.dashStyle,c.dashStyle),k=m(a.plotLow,a.plotY),q=e.toPixels(c.threshold||0,!0);q=m(a.plotHigh,b.inverted?e.len-q:q);if("number"!==typeof k)return{};a.state&&(f+=n);0>k?k=0:k>=e.len&&(k=e.len);0>q?q=0:q>=e.len&&(q=e.len);if(0>a.plotX||a.plotX>d.len)f=0;a.graphics&&a.graphics[1]&&(d={y:a.y,zone:a.zone},a.y=a.high,a.zone=a.zone?a.getZone():void 0,h=m(g.connectorColor,c.connectorColor,
g.color,a.zone?a.zone.color:void 0,a.color),u(a,d));a={d:p.prototype.crispLine([["M",a.plotX,k],["L",a.plotX,q]],f,"ceil")};b.styledMode||(a.stroke=h,a["stroke-width"]=f,l&&(a.dashstyle=l));return a};c.prototype.drawConnector=function(a){var b=m(this.options.animationLimit,250);b=a.connector&&this.chart.pointCount<b?"animate":"attr";a.connector||(a.connector=this.chart.renderer.path().addClass("highcharts-lollipop-stem").attr({zIndex:-1}).add(this.markerGroup));a.connector[b](this.getConnectorAttribs(a))};
c.prototype.getColumnMetrics=function(){var a=n.getColumnMetrics.apply(this,arguments);a.offset+=a.width/2;return a};c.prototype.translate=function(){this.setShapeArgs.apply(this);this.translatePoint.apply(this,arguments);this.points.forEach(function(a){var b=a.shapeArgs,c=a.pointWidth;a.plotX=b.x;b.x=a.plotX-c/2;a.tooltipPos=null});this.columnMetrics.offset-=this.columnMetrics.width/2};c.prototype.drawPoints=function(){var a=this.chart,b=this.points.length,c=this.lowColor=this.options.lowColor,e=
0;for(this.seriesDrawPoints.apply(this,arguments);e<b;){var d=this.points[e];var f=d.graphics||[];var h=f[0];f=f[1];this.drawConnector(d);f&&(f.element.point=d,f.addClass("highcharts-lollipop-high"));d.connector.element.point=d;h&&(f=d.zone&&d.zone.color,d=m(d.options.lowColor,c,d.options.color,f,d.color,this.color),a.styledMode||h.attr({fill:d}),h.addClass("highcharts-lollipop-low"));e++}};c.prototype.markerAttribs=function(){var a=t.markerAttribs.apply(this,arguments);a.x=Math.floor(a.x||0);a.y=
Math.floor(a.y||0);return a};c.prototype.pointAttribs=function(a,b){var c=k.pointAttribs.apply(this,arguments);"hover"===b&&delete c.fill;return c};c.defaultOptions=r(l.defaultOptions,{trackByArea:!1,fillColor:"none",lineWidth:0,pointRange:1,connectorWidth:1,stickyTracking:!1,groupPadding:.2,crisp:!1,pointPadding:.1,lowColor:"#333333",states:{hover:{lineWidthPlus:0,connectorWidthPlus:1,halo:!1}}});return c}(l);u(c.prototype,{crispCol:n.crispCol,drawGraph:h,drawTracker:a.prototype.drawTracker,pointClass:d,
setShapeArgs:e.translate,seriesDrawPoints:t.drawPoints,trackerGroups:["group","markerGroup","dataLabelsGroup"],translatePoint:t.translate});f.registerSeriesType("dumbbell",c);"";return c});f(a,"masters/modules/dumbbell.src.js",[],function(){})});
//# sourceMappingURL=dumbbell.js.map