!/**
 * Highcharts JS v12.5.0 (2026-01-12)
 * @module highcharts/modules/mouse-wheel-zoom
 * @requires highcharts
 *
 * Non-cartesian series zoom module
 *
 * (c) 2024-2026 Highsoft AS
 * Author: Hubert Kozik
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("highcharts")):"function"==typeof define&&define.amd?define("highcharts/modules/non-cartesian-zoom",[["highcharts/highcharts"]],e):"object"==typeof exports?exports["highcharts/modules/non-cartesian-zoom"]=e(require("highcharts")):t.Highcharts=e(t.Highcharts)}(this,function(t){return function(){"use strict";var e={944:function(e){e.exports=t}},o={};function i(t){var n=o[t];if(void 0!==n)return n.exports;var r=o[t]={exports:{}};return e[t](r,r.exports,i),r.exports}i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},i.d=function(t,e){for(var o in e)i.o(e,o)&&!i.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var n={};i.d(n,{default:function(){return z}});var r=i(944),a=i.n(r),s=a().composed,h=a().addEvent,l=a().pushUnique;function p(t){var e=this,o=t.trigger,i=t.selection,n=t.reset,r=t.from,a=void 0===r?{}:r,s=t.to,h=void 0===s?{}:s;"xy"===e.zooming.type&&("mousewheel"===o||"pan"===o||i||n)&&e.series.forEach(function(i){var n,r,s,l,p;if(!i.isCartesian&&!1!==i.options.zoomEnabled){i.isDirty=!0,e.isDirtyBox=!0,t.hasZoomed=!0;var c=e.plotWidth,u=void 0===c?0:c,d=e.plotHeight,f=void 0===d?0:d;if("pan"===o&&i.zooming)i.zooming.panX-=(h.x||0)/u,i.zooming.panY-=(h.y||0)/f;else if(Object.keys(a).length){var m=h.width,g=h.height,v=Math.abs((null==(n=i.group)?void 0:n.scaleX)||1),z=a.x,x=void 0===z?0:z,y=a.y,b=void 0===y?0:y,X=a.width,Y=void 0===X?1:X,C=a.height,L=void 0===C?1:C,w=x,M=b,S=(null==(r=i.zooming)?void 0:r.scale)||(null==(s=i.group)?void 0:s.scaleX)||1,j=((null==(l=i.zooming)?void 0:l.width)||1)*u,B=((null==(p=i.zooming)?void 0:p.height)||1)*f;if(Object.keys(h).length)j=Y/(void 0===m?1:m)*j,B=Y/(void 0===g?1:g)*B,x-=e.plotLeft,b-=e.plotTop,w=x-j/2,M=b-B/2,S=Math.min(u/j,f/B);else{Y/=v,L/=v,S=Math.min(u/Y,f/L);var P=0,T=0;i.zooming&&(P=i.zooming.x*u,T=i.zooming.y*f);var E=(x-e.plotLeft)/(u-Y*v||1),G=(b-e.plotTop)/(f-L*v||1);j=Y,B=L,x-=e.plotLeft,b-=e.plotTop,x/=v,b/=v,x+=P+Y*E,b+=T+L*G,w-=e.plotLeft,M-=e.plotTop,w/=v,M/=v,w+=P,M+=T}i.zooming={x:w/u,y:M/f,zoomX:x/u,zoomY:b/f,width:j/u,height:B/f,scale:S,panX:0,panY:0},S<1&&delete i.zooming}else delete i.zooming}})}function c(t){var e,o=this.chart,i=this.group,n=this.zooming,r=o.plotSizeX,a=void 0===r?0:r,s=o.plotSizeY,h=void 0===s?0:s,l=t.scale,p=t.translateX,c=t.translateY,u=t.name,d=0,f=0,m=p,g=c;o.inverted&&(a=(e=[h,a])[0],h=e[1]),i&&n&&(l=n.scale,d=n.zoomX*a*(l-Math.abs(i.scaleX||1)),f=n.zoomY*h*(l-Math.abs(i.scaleY||1)),"series"===u&&(n.x=Math.max(0,Math.min(1-n.width,n.x+n.panX/l)),d+=n.panX*a,n.panX=0,n.y=Math.max(0,Math.min(1-n.height,n.y+n.panY/l)),f+=n.panY*h,n.panY=0),p=(i.translateX||m)-d,(c=(i.translateY||g)-f)>g?c=g:(i.translateY||g)-f<h*(1-l)+g&&(c=h*(1-l)+g),p>m?p=m:p<a*(1-l)+m&&(p=a*(1-l)+m),t.scale=l,t.translateX=p,t.translateY=c)}function u(){var t,e;this.series.find(function(t){return!!t.zooming})&&(this.zoomClipRect||(this.zoomClipRect=this.renderer.clipRect()),this.zoomClipRect.attr({x:this.plotLeft,y:this.plotTop,width:this.inverted?this.clipBox.height:this.clipBox.width,height:this.inverted?this.clipBox.width:this.clipBox.height}),e=this.zoomClipRect),null==(t=this.seriesGroup)||t.clip(e),this.series.forEach(function(t){var o;null==(o=t.dataLabelsParentGroups)||o.forEach(function(t){t.clip(e)})})}function d(t){if(t.point.series&&!t.point.series.isCartesian&&t.point.series.group&&t.point.series.zooming){var e=t.point.series.chart,o=t.point.series.zooming.scale,i=t.point.series.group.translateX||0,n=t.point.series.group.translateY||0;t.ret[0]=t.ret[0]*o+i-e.plotLeft,t.ret[1]=t.ret[1]*o+n-e.plotTop}}function f(t){t.skipAxes&&this.series.forEach(function(t){t.group&&t.zooming&&t.group.attr({translateX:0,translateY:0,scaleX:1,scaleY:1})})}function m(t){var e,o,i=t.index,n=t.zIndex;(null==(e=this.hasDataLabels)?void 0:e.call(this))&&(this.dataLabelsParentGroups||(this.dataLabelsParentGroups=[]),(o=this.dataLabelsParentGroups)[i]||(o[i]=this.chart.renderer.g().attr({zIndex:n}).add()))}var g=function(){function t(){}return t.compose=function(t,e,o){l(s,"NonCartesianSeriesZoom")&&(h(t,"afterDrawChartBox",u),h(t,"transform",p),h(t,"afterSetChartSize",f),h(e,"getPlotBox",c),h(e,"initDataLabelsGroup",m),h(o,"getAnchor",d))},t}(),v=a();v.NonCartesianSeriesZoom=v.NonCartesianSeriesZoom||g,v.NonCartesianSeriesZoom.compose(v.Chart,v.Series,v.Tooltip);var z=a();return n.default}()});