/**
 * Highcharts JS v11.3.0 (2024-01-10)
 *
 * Bullet graph series type for Highcharts
 *
 * (c) 2010-2024 Kacper Madej
 *
 * License: www.highcharts.com/license
 */!function(t){"object"==typeof module&&module.exports?(t.default=t,module.exports=t):"function"==typeof define&&define.amd?define("highcharts/modules/bullet",["highcharts"],function(e){return t(e),t.Highcharts=e,t}):t("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){"use strict";var e=t?t._modules:{};function o(t,e,o,r){t.hasOwnProperty(e)||(t[e]=r.apply(null,o),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}o(e,"Series/Bullet/BulletPoint.js",[e["Series/Column/ColumnSeries.js"]],function(t){var e,o=this&&this.__extends||(e=function(t,o){return(e=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,o)},function(t,o){if("function"!=typeof o&&null!==o)throw TypeError("Class extends value "+String(o)+" is not a constructor or null");function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)});return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.destroy=function(){this.targetGraphic&&(this.targetGraphic=this.targetGraphic.destroy()),t.prototype.destroy.apply(this,arguments)},e}(t.prototype.pointClass)}),o(e,"Series/Bullet/BulletSeriesDefaults.js",[],function(){return{targetOptions:{width:"140%",height:3,borderWidth:0,borderRadius:0},tooltip:{pointFormat:'<span style="color:{series.color}">●</span> {series.name}: <b>{point.y}</b>. Target: <b>{point.target}</b><br/>'}}}),o(e,"Series/Bullet/BulletSeries.js",[e["Series/Bullet/BulletPoint.js"],e["Series/Bullet/BulletSeriesDefaults.js"],e["Series/Column/ColumnSeries.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,o,r,i){var n,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),a=i.extend,l=i.isNumber,p=i.merge,u=i.pick,c=i.relativeLength,h=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return s(r,t),r.prototype.drawPoints=function(){var e=this.chart,o=this.options,r=o.animationLimit||250;t.prototype.drawPoints.apply(this,arguments);for(var i=0,n=this.points;i<n.length;i++){var s=n[i],a=s.options,h=s.target,d=s.y,f=void 0,y=s.targetGraphic,g=void 0,m=void 0,b=void 0,v=void 0;if(l(h)&&null!==h){m=(b=p(o.targetOptions,a.targetOptions)).height;var x=s.shapeArgs;s.dlBox&&x&&!l(x.width)&&(x=s.dlBox),g=c(b.width,x.width),v=this.yAxis.translate(h,!1,!0,!1,!0)-b.height/2-.5,f=this.crispCol.apply({chart:e,borderWidth:b.borderWidth,options:{crisp:o.crisp}},[x.x+x.width/2-g/2,v,g,m]),y?(y[e.pointCount<r?"animate":"attr"](f),l(d)&&null!==d?y.element.point=s:y.element.point=void 0):s.targetGraphic=y=e.renderer.rect().attr(f).add(this.group),e.styledMode||y.attr({fill:u(b.color,a.color,this.zones.length&&(s.getZone.call({series:this,x:s.x,y:h,options:{}}).color||this.color)||void 0,s.color,this.color),stroke:u(b.borderColor,s.borderColor,this.options.borderColor),"stroke-width":b.borderWidth,r:b.borderRadius}),l(d)&&null!==d&&(y.element.point=s),y.addClass(s.getClassName()+" highcharts-bullet-target",!0)}else y&&(s.targetGraphic=y.destroy())}},r.prototype.getExtremes=function(e){var o=t.prototype.getExtremes.call(this,e),r=this.targetData;if(r&&r.length){var i=t.prototype.getExtremes.call(this,r);l(i.dataMin)&&(o.dataMin=Math.min(u(o.dataMin,1/0),i.dataMin)),l(i.dataMax)&&(o.dataMax=Math.max(u(o.dataMax,-1/0),i.dataMax))}return o},r.defaultOptions=p(o.defaultOptions,e),r}(o);return a(h.prototype,{parallelArrays:["x","y","target"],pointArrayMap:["y","target"]}),h.prototype.pointClass=t,r.registerSeriesType("bullet",h),h}),o(e,"masters/modules/bullet.src.js",[],function(){})});