/*
 Highcharts JS v10.2.1 (2022-08-29)

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