!/**
 * Highcharts JS v12.6.0 (2026-04-13)
 * @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(t._Highcharts):"function"==typeof define&&define.amd?define("highcharts/modules/non-cartesian-zoom",["highcharts/highcharts"],function(t){return e(t)}):"object"==typeof exports?exports["highcharts/modules/non-cartesian-zoom"]=e(t._Highcharts):t.Highcharts=e(t.Highcharts)}("u"<typeof window?this:window,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 g}});var r=i(944),a=i.n(r);function s(t,e,o,i){void 0===i&&(i={});var n="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(n,"hcEvents")||(n.hcEvents={});var r=n.hcEvents;a().Point&&t instanceof a().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var s=t.addEventListener;s&&s.call(t,e,o,!!a().supportsPassiveEvents&&{passive:void 0===i.passive?-1!==e.indexOf("touch"):i.passive,capture:!1}),r[e]||(r[e]=[]);var c={fn:o,order:"number"==typeof i.order?i.order:1/0};return r[e].push(c),r[e].sort(function(t,e){return t.order-e.order}),function(){!function(t,e,o){function i(e,o){var i=t.removeEventListener;i&&i.call(t,e,o,!1)}function n(o){var n,r;if(t.nodeName){e?(n={})[e]=!0:n=o;var a=n,s=function(t,e){if(o[e])for(r=o[e].length;r--;)i(e,o[e][r].fn)};for(var c in a)Object.hasOwnProperty.call(a,c)&&s.call(a[c],a[c],c,a)}}var r="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){var a=r.hcEvents;if(e){var s=a[e]||[];o?(a[e]=s.filter(function(t){return o!==t.fn}),i(e,o)):(n(a),a[e]=[])}else n(a),delete r.hcEvents}}(t,e,o)}}a().doc,a().win,Array.prototype.find;var c=a().composed;function h(t){var e=this,o=t.trigger,i=t.selection,n=t.reset,r=t.from,a=void 0===r?{}:r,s=t.to,c=void 0===s?{}:s;"xy"===e.zooming.type&&("mousewheel"===o||"pan"===o||i||n)&&e.series.forEach(function(i){var n,r,s,h,l;if(!i.isCartesian&&!1!==i.options.zoomEnabled){i.isDirty=!0,e.isDirtyBox=!0,t.hasZoomed=!0;var p=e.plotWidth,u=void 0===p?0:p,f=e.plotHeight,d=void 0===f?0:f;if("pan"===o&&i.zooming)i.zooming.panX-=(c.x||0)/u,i.zooming.panY-=(c.y||0)/d;else if(Object.keys(a).length){var v=c.width,m=c.height,g=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,w=a.width,X=void 0===w?1:w,Y=a.height,C=void 0===Y?1:Y,E=x,L=b,O=(null==(r=i.zooming)?void 0:r.scale)||(null==(s=i.group)?void 0:s.scaleX)||1,P=((null==(h=i.zooming)?void 0:h.width)||1)*u,j=((null==(l=i.zooming)?void 0:l.height)||1)*d;if(Object.keys(c).length)P=X/(void 0===v?1:v)*P,j=X/(void 0===m?1:m)*j,x-=e.plotLeft,b-=e.plotTop,E=x-P/2,L=b-j/2,O=Math.min(u/P,d/j);else{X/=g,C/=g,O=Math.min(u/X,d/C);var M=0,S=0;i.zooming&&(M=i.zooming.x*u,S=i.zooming.y*d);var T=(x-e.plotLeft)/(u-X*g||1),B=(b-e.plotTop)/(d-C*g||1);P=X,j=C,x-=e.plotLeft,b-=e.plotTop,x/=g,b/=g,x+=M+X*T,b+=S+C*B,E-=e.plotLeft,L-=e.plotTop,E/=g,L/=g,E+=M,L+=S}i.zooming={x:E/u,y:L/d,zoomX:x/u,zoomY:b/d,width:P/u,height:j/d,scale:O,panX:0,panY:0},O<1&&delete i.zooming}else delete i.zooming}})}function l(t){var e,o=this.chart,i=this.group,n=this.zooming,r=o.plotSizeX,a=void 0===r?0:r,s=o.plotSizeY,c=void 0===s?0:s,h=t.scale,l=t.translateX,p=t.translateY,u=t.name,f=0,d=0,v=l,m=p;o.inverted&&(a=(e=[c,a])[0],c=e[1]),i&&n&&(h=n.scale,f=n.zoomX*a*(h-Math.abs(i.scaleX||1)),d=n.zoomY*c*(h-Math.abs(i.scaleY||1)),"series"===u&&(n.x=Math.max(0,Math.min(1-n.width,n.x+n.panX/h)),f+=n.panX*a,n.panX=0,n.y=Math.max(0,Math.min(1-n.height,n.y+n.panY/h)),d+=n.panY*c,n.panY=0),l=(i.translateX||v)-f,(p=(i.translateY||m)-d)>m?p=m:(i.translateY||m)-d<c*(1-h)+m&&(p=c*(1-h)+m),l>v?l=v:l<a*(1-h)+v&&(l=a*(1-h)+v),t.scale=h,t.translateX=l,t.translateY=p)}function p(){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 u(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 d(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 v=function(){function t(){}return t.compose=function(t,e,o){var i;i="NonCartesianSeriesZoom",0>c.indexOf(i)&&c.push(i)&&(s(t,"afterDrawChartBox",p),s(t,"transform",h),s(t,"afterSetChartSize",f),s(e,"getPlotBox",l),s(e,"initDataLabelsGroup",d),s(o,"getAnchor",u))},t}(),m=a();m.NonCartesianSeriesZoom=m.NonCartesianSeriesZoom||v,m.NonCartesianSeriesZoom.compose(m.Chart,m.Series,m.Tooltip);var g=a();return n.default}()});