import{o as ht}from"./entry.223f6570.js";function ct(P,u){for(var r=0;r<u.length;r++){const f=u[r];if(typeof f!="string"&&!Array.isArray(f)){for(const a in f)if(a!=="default"&&!(a in P)){const l=Object.getOwnPropertyDescriptor(f,a);l&&Object.defineProperty(P,a,l.get?l:{enumerable:!0,get:()=>f[a]})}}}return Object.freeze(Object.defineProperty(P,Symbol.toStringTag,{value:"Module"}))}var tt={exports:{}};(function(P){(function(u){P.exports?(u.default=u,P.exports=u):u(typeof Highcharts<"u"?Highcharts:void 0)})(function(u){var r=u?u._modules:{};function f(a,l,m,A){a.hasOwnProperty(l)||(a[l]=A.apply(null,m),typeof CustomEvent=="function"&&u.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:l,module:a[l]}})))}f(r,"Series/XRange/XRangeSeriesDefaults.js",[r["Core/Utilities.js"]],function(a){let{correctFloat:l,isNumber:m,isObject:A}=a;return{colorByPoint:!0,dataLabels:{formatter:function(){let h=this.point.partialFill;if(A(h)&&(h=h.amount),m(h)&&h>0)return l(100*h)+"%"},inside:!0,verticalAlign:"middle",style:{whiteSpace:"nowrap"}},tooltip:{headerFormat:'<span style="font-size: 0.8em">{point.x} - {point.x2}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.yCategory}</b><br/>'},borderRadius:3,pointRange:0}}),f(r,"Series/XRange/XRangePoint.js",[r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"]],function(a,l){let{column:{prototype:{pointClass:m}}}=a.seriesTypes,{extend:A}=l;class h extends m{static getColorByCategory(n,d){let w=n.options.colors||n.chart.options.colors,N=w?w.length:n.chart.options.chart.colorCount,T=d.y%N,R=w&&w[T];return{colorIndex:T,color:R}}resolveColor(){let n=this.series;if(n.options.colorByPoint&&!this.options.color){let d=h.getColorByCategory(n,this);n.chart.styledMode||(this.color=d.color),this.options.colorIndex||(this.colorIndex=d.colorIndex)}else this.color=this.options.color||n.color}constructor(n,d){super(n,d),this.y||(this.y=0)}setState(){super.setState.apply(this,arguments),this.series.drawPoint(this,this.series.getAnimationVerb())}getLabelConfig(){let n=super.getLabelConfig.call(this),d=this.series.yAxis.categories;return n.x2=this.x2,n.yCategory=this.yCategory=d&&d[this.y],n.key=this.category||this.name,n}isValid(){return typeof this.x=="number"&&typeof this.x2=="number"}}return A(h.prototype,{ttBelow:!1,tooltipDateKeys:["x","x2"]}),h}),f(r,"Series/XRange/XRangeSeries.js",[r["Core/Globals.js"],r["Core/Color/Color.js"],r["Core/Series/SeriesRegistry.js"],r["Core/Utilities.js"],r["Series/XRange/XRangeSeriesDefaults.js"],r["Series/XRange/XRangePoint.js"]],function(a,l,m,A,h,it){let{composed:n,noop:d}=a,{parse:w}=l,{column:N}=m.seriesTypes,{addEvent:T,clamp:R,crisp:H,defined:st,extend:ot,find:z,isNumber:V,isObject:W,merge:S,pick:D,pushUnique:rt,relativeLength:at}=A;function nt(){let L,t;if(this.isXAxis){for(let e of(L=D(this.dataMax,-Number.MAX_VALUE),this.series))if(e.x2Data)for(let i of e.x2Data)i&&i>L&&(L=i,t=!0);t&&(this.dataMax=L)}}class _ extends N{static compose(t){rt(n,"Series.XRange")&&T(t,"afterGetSeriesExtremes",nt)}init(){super.init.apply(this,arguments),this.options.stacking=void 0}getColumnMetrics(){let t=()=>{for(let i of this.chart.series){let o=i.xAxis;i.xAxis=i.yAxis,i.yAxis=o}};t();let e=super.getColumnMetrics();return t(),e}cropData(t,e,i,o){let p=super.cropData(this.x2Data,e,i,o);return p.xData=t.slice(p.start,p.end),p}findPointIndex(t){let e,{cropStart:i,points:o}=this,{id:p}=t;if(p){let x=z(o,c=>c.id===p);e=x?x.index:void 0}if(e===void 0){let x=z(o,c=>c.x===t.x&&c.x2===t.x2&&!c.touched);e=x?x.index:void 0}return this.cropped&&V(e)&&V(i)&&e>=i&&(e-=i),e}alignDataLabel(t){var i;let e=t.plotX;t.plotX=D(t.dlBox&&t.dlBox.centerX,t.plotX),t.dataLabel&&((i=t.shapeArgs)!=null&&i.width)&&t.dataLabel.css({width:`${t.shapeArgs.width}px`}),super.alignDataLabel.apply(this,arguments),t.plotX=e}translatePoint(t){let e=this.xAxis,i=this.yAxis,o=this.columnMetrics,p=this.options,x=p.minPointLength||0,c=(t.shapeArgs&&t.shapeArgs.width||0)/2,C=this.pointXOffset=o.offset,O=D(t.x2,t.x+(t.len||0)),F=p.borderRadius,U=this.chart.plotTop,v=this.chart.plotLeft,y=t.plotX,s=e.translate(O,0,0,0,1),b=Math.abs(s-y),X=this.chart.inverted,Y=D(p.borderWidth,1),k,M,K=o.offset,B=Math.round(o.width),j,E,G,$;x&&((k=x-b)<0&&(k=0),y-=k/2,s+=k/2),y=Math.max(y,-10),s=R(s,-10,e.len+10),st(t.options.pointWidth)&&(K-=(Math.ceil(t.options.pointWidth)-B)/2,B=Math.ceil(t.options.pointWidth)),p.pointPlacement&&V(t.plotY)&&i.categories&&(t.plotY=i.translate(t.y,0,1,0,1,p.pointPlacement));let J=H(Math.min(y,s),Y),Q=H(Math.max(y,s),Y)-J,lt=Math.min(at(typeof F=="object"?F.radius:F||0,B),Math.min(Q,B)/2),g={x:J,y:H((t.plotY||0)+K,Y),width:Q,height:B,r:lt};t.shapeArgs=g,X?t.tooltipPos[1]+=C+c:t.tooltipPos[0]-=c+C-g.width/2,E=(j=g.x)+g.width,j<0||E>e.len?(j=R(j,0,e.len),G=(E=R(E,0,e.len))-j,t.dlBox=S(g,{x:j,width:E-j,centerX:G?G/2:null})):t.dlBox=null;let I=t.tooltipPos,q=X?1:0,Z=X?0:1,pt=this.columnMetrics?this.columnMetrics.offset:-o.width/2;X?I[q]+=g.width/2:I[q]=R(I[q]+(e.reversed?-1:0)*g.width,e.left-v,e.left+e.len-v-1),I[Z]=R(I[Z]+(X?-1:1)*pt,i.top-U,i.top+i.len-U-1),(M=t.partialFill)&&(W(M)&&(M=M.amount),V(M)||(M=0),t.partShapeArgs=S(g),$=Math.max(Math.round(b*M+t.plotX-y),0),t.clipRectArgs={x:e.reversed?g.x+b-$:g.x,y:g.y,width:$,height:g.height})}translate(){for(let t of(super.translate.apply(this,arguments),this.points))this.translatePoint(t)}drawPoint(t,e){let i=this.options,o=this.chart.renderer,p=t.shapeType,x=t.shapeArgs,c=t.partShapeArgs,C=t.clipRectArgs,O=t.state,F=i.states[O||"normal"]||{},U=O===void 0?"attr":e,v=this.pointAttribs(t,O),y=D(this.chart.options.chart.animation,F.animation),s=t.graphic,b=t.partialFill;if(t.isNull||t.visible===!1)s&&(t.graphic=s.destroy());else if(s?s.rect[e](x):(t.graphic=s=o.g("point").addClass(t.getClassName()).add(t.group||this.group),s.rect=o[p](S(x)).addClass(t.getClassName()).addClass("highcharts-partfill-original").add(s)),c&&(s.partRect?(s.partRect[e](S(c)),s.partialClipRect[e](S(C))):(s.partialClipRect=o.clipRect(C.x,C.y,C.width,C.height),s.partRect=o[p](c).addClass("highcharts-partfill-overlay").add(s).clip(s.partialClipRect))),!this.chart.styledMode&&(s.rect[e](v,y).shadow(i.shadow),c)){W(b)||(b={}),W(i.partialFill)&&(b=S(i.partialFill,b));let X=b.fill||w(v.fill).brighten(-.3).get()||w(t.color||this.color).brighten(-.3).get();v.fill=X,s.partRect[U](v,y).shadow(i.shadow)}}drawPoints(){let t=this.getAnimationVerb();for(let e of this.points)this.drawPoint(e,t)}getAnimationVerb(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"}isPointInside(t){let e=t.shapeArgs,i=t.plotX,o=t.plotY;return e?i!==void 0&&o!==void 0&&o>=0&&o<=this.yAxis.len&&(e.x||0)+(e.width||0)>=0&&i<=this.xAxis.len:super.isPointInside.apply(this,arguments)}}return _.defaultOptions=S(N.defaultOptions,h),ot(_.prototype,{pointClass:it,pointArrayMap:["x2","y"],getExtremesFromAll:!0,parallelArrays:["x","x2","y"],requireSorting:!1,type:"xrange",animate:m.series.prototype.animate,autoIncrement:d,buildKDTree:d}),m.registerSeriesType("xrange",_),_}),f(r,"masters/modules/xrange.src.js",[r["Core/Globals.js"],r["Series/XRange/XRangeSeries.js"]],function(a,l){return l.compose(a.Axis),a})})})(tt);var et=tt.exports;const dt=ht(et),ut=ct({__proto__:null,default:dt},[et]);export{ut as x};
