1import{au as _}from"./5YXSnQcP.js";function S(v,d){for(var o=0;o<d.length;o++){const f=d[o];if(typeof f!="string"&&!Array.isArray(f)){for(const i in f)if(i!=="default"&&!(i in v)){const a=Object.getOwnPropertyDescriptor(f,i);a&&Object.defineProperty(v,i,a.get?a:{enumerable:!0,get:()=>f[i]})}}}return Object.freeze(Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}))}var C={exports:{}},T;function W(){return T||(T=1,function(v){(function(d){v.exports?(d.default=d,v.exports=d):d(typeof Highcharts<"u"?Highcharts:void 0)})(function(d){var o=d?d._modules:{};function f(i,a,h,m){i.hasOwnProperty(a)||(i[a]=m.apply(null,h),typeof CustomEvent=="function"&&d.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:a,module:i[a]}})))}f(o,"Extensions/DragPanes/AxisResizerDefaults.js",[],function(){return{minLength:"10%",maxLength:"100%",resize:{controlledAxis:{next:[],prev:[]},enabled:!1,cursor:"ns-resize",lineColor:"#cccccc",lineDashStyle:"Solid",lineWidth:4,x:0,y:0}}}),f(o,"Extensions/DragPanes/AxisResizer.js",[o["Extensions/DragPanes/AxisResizerDefaults.js"],o["Core/Utilities.js"]],function(i,a){let{addEvent:h,clamp:m,isNumber:b,relativeLength:M}=a;class D{constructor(e){this.init(e)}init(e,t){this.axis=e,this.options=e.options.resize||{},this.render(),t||this.addMouseEvents()}render(){let e=this.axis,t=e.chart,r=this.options,s=r.x||0,l=r.y,n=m(e.top+e.height+l,t.plotTop,t.plotTop+t.plotHeight),u={};t.styledMode||(u={cursor:r.cursor,stroke:r.lineColor,"stroke-width":r.lineWidth,dashstyle:r.lineDashStyle}),this.lastPos=n-l,this.controlLine||(this.controlLine=t.renderer.path().addClass("highcharts-axis-resizer")),this.controlLine.add(e.axisGroup);let p=t.styledMode?this.controlLine.strokeWidth():r.lineWidth;u.d=t.renderer.crispLine([["M",e.left+s,n],["L",e.left+e.width+s,n]],p),this.controlLine.attr(u)}addMouseEvents(){let e,t,r,s=this,l=s.controlLine.element,n=s.axis.chart.container,u=[];s.mouseMoveHandler=e=p=>s.onMouseMove(p),s.mouseUpHandler=t=p=>s.onMouseUp(p),s.mouseDownHandler=r=()=>s.onMouseDown(),u.push(h(n,"mousemove",e),h(n.ownerDocument,"mouseup",t),h(l,"mousedown",r),h(n,"touchmove",e),h(n.ownerDocument,"touchend",t),h(l,"touchstart",r)),s.eventsToUnbind=u}onMouseMove(e){if(!e.touches||e.touches[0].pageX!==0){let t=this.axis.chart.pointer;this.grabbed&&t&&(this.hasDragged=!0,this.updateAxes(t.normalize(e).chartY-(this.options.y||0)))}}onMouseUp(e){let t=this.axis.chart.pointer;this.hasDragged&&t&&this.updateAxes(t.normalize(e).chartY-(this.options.y||0)),this.grabbed=this.hasDragged=this.axis.chart.activeResizer=void 0}onMouseDown(){var e;(e=this.axis.chart.pointer)==null||e.reset(!1,0),this.grabbed=this.axis.chart.activeResizer=!0}updateAxes(e){let t=this.axis.chart,r=this.options.controlledAxis,s=r.next.length===0?[t.yAxis.indexOf(this.axis)+1]:r.next,l=[this.axis].concat(r.prev),n=[],u=t.plotTop,p=t.plotHeight,j=u+p,w=x=>100*x/p+"%",H=(x,z,c)=>Math.round(m(x,z,c));e=m(e,u,j);let L=!1,P=e-this.lastPos;if(P*P<1)return;let A=!0;for(let x of[l,s])for(let z of x){let c,g,y=b(z)?t.yAxis[z]:A?z:t.get(z),E=y&&y.options;if(!E||E.isInternal){A=!1;continue}g=y.top;let R=Math.round(M(E.minLength||NaN,p)),O=Math.round(M(E.maxLength||NaN,p));if(A)(c=H(e-g,R,O))===O&&(L=!0),e=g+c,n.push({axis:y,options:{height:w(c)}});else{if(P=e-this.lastPos,c=H(y.len-P,R,O),(g=y.top+P)+c>j){let U=j-c-g;e+=U,g+=U}g<u&&(g=u)+c>j&&(c=p),c===R&&(L=!0),n.push({axis:y,options:{top:w(g-u),height:w(c)}})}A=!1}if(!L){for(let x of n)x.axis.update(x.options,!1);t.redraw(!1)}}destroy(){let e=this.axis;for(let t of(delete e.resizer,this.eventsToUnbind&&this.eventsToUnbind.forEach(r=>r()),this.controlLine.destroy(),Object.keys(this)))this[t]=null}}return D.resizerOptions=i,D}),f(o,"Extensions/DragPanes/DragPanes.js",[o["Extensions/DragPanes/AxisResizer.js"],o["Core/Defaults.js"],o["Core/Utilities.js"]],function(i,a,h){let{defaultOptions:m}=a,{addEvent:b,merge:M,wrap:D}=h;function k(){let s=this.resizer,l=this.options.resize;if(l){let n=l.enabled!==!1;s?n?s.init(this,!0):s.destroy():n&&(this.resizer=new i(this))}}function e(s){!s.keepEvents&&this.resizer&&this.resizer.destroy()}function t(s){this.chart.activeResizer||s.apply(this,[].slice.call(arguments,1
1))}function r(s){this.chart.activeResizer||s.apply(this,[].slice.call(arguments,1))}return{compose:function(s,l){s.keepProps.includes("resizer")||(M(!0,m.yAxis,i.resizerOptions),s.keepProps.push("resizer"),b(s,"afterRender",k),b(s,"destroy",e),D(l.prototype,"runPointActions",r),D(l.prototype,"drag",t))}}}),f(o,"masters/modules/drag-panes.src.js",[o["Core/Globals.js"],o["Extensions/DragPanes/AxisResizer.js"],o["Extensions/DragPanes/DragPanes.js"]],function(i,a,h){return i.AxisResizer=a,h.compose(i.Axis,i.Pointer),i})})}(C)),C.exports}var N=W();const q=_(N),Y=S({__proto__:null,default:q},[N]);export{Y as d};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.