!/**
 * Highcharts JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/funnel
 * @requires highcharts
 *
 * Highcharts funnel module
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Torstein Hønsi
 *
 * 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,t._Highcharts.SeriesRegistry):"function"==typeof define&&define.amd?define("highcharts/modules/funnel",["highcharts/highcharts"],function(t){return e(t,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/modules/funnel"]=e(t._Highcharts,t._Highcharts.SeriesRegistry):t.Highcharts=e(t.Highcharts,t.Highcharts.SeriesRegistry)}("u"<typeof window?this:window,function(t,e){return function(){"use strict";var n,o,r={512:function(t){t.exports=e},944:function(e){e.exports=t}},i={};function a(t){var e=i[t];if(void 0!==e)return e.exports;var n=i[t]={exports:{}};return r[t](n,n.exports,a),n.exports}a.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(e,{a:e}),e},a.d=function(t,e){for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var s={};a.d(s,{default:function(){return C}});var d=a(944),l=a.n(d),h={animation:!1,borderRadius:0,center:["50%","50%"],width:"90%",neckWidth:"30%",height:"100%",neckHeight:"25%",reversed:!1,size:!0,dataLabels:{connectorWidth:1,verticalAlign:"middle"},states:{select:{color:"var(--highcharts-neutral-color-20)",borderColor:"var(--highcharts-neutral-color-100)"}}};l().defaultOptions,l().noop;var p={radius:0,scope:"stack",where:void 0},c=a(512),u=a.n(c),f=(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),y=l().composed,g=l().noop,x=u().seriesTypes,v=x.column,b=x.pie,L=u().series.prototype.alignDataLabel;function m(t,e){return/%$/.test(t)?e*parseInt(t,10)/100:parseInt(t,10)}var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.alignDataLabel=function(t,e,n,o,r){var i,a=t.series,s=a.options.reversed,l=t.dlBox||t.shapeArgs,h=n.align,p=n.verticalAlign,c=(0,d.splat)(n.padding||0),u=((a.options||{}).dataLabels||{}).inside,f=a.center[1],y=t.plotY||0,g=null!=(i=e.height)?i:e.getBBox().height,x=a.getWidthAt((s?2*f-y:y)-l.height/2+g),v="middle"===p?(l.topWidth-l.bottomWidth)/4:(x-l.bottomWidth)/2,b=l.y,m=l.x;"middle"===p?b=l.y-l.height/2+g/2:"top"===p&&(b=l.y-l.height+g+c[0]),("top"===p&&!s||"bottom"===p&&s||"middle"===p)&&("right"===h?m=l.x-c[1%c.length]+v:"left"===h&&(m=l.x+c[3%c.length]-v)),o={x:m,y:s?b-l.height:b,width:l.bottomWidth,height:l.height},n.verticalAlign="bottom",u&&(n.distance=void 0),u&&t.visible&&L.call(a,t,e,n,o,r),u&&(!t.visible&&t.dataLabel&&(t.dataLabel.placed=!1),t.contrastColor&&e.css({color:t.contrastColor}))},e.prototype.drawDataLabels=function(){((0,d.splat)(this.options.dataLabels||{})[0].inside?v:b).prototype.drawDataLabels.call(this)},e.prototype.getDataLabelPosition=function(t,e){var n=t.plotY||0,o=t.half?1:-1,r=this.getXPos(n,!!t.half,t);return{distance:e,natural:{x:0,y:n},computed:{},alignment:t.half?"right":"left",connectorPosition:{breakAt:{x:r+(e-5)*o,y:n},touchingSliceAt:{x:r+e*o,y:n}}}},e.prototype.translate=function(){var t,e,n,o,r,i,a,s,l,h,c,u,f,y=this,x=y.chart,v=y.options,b=v.reversed,L=v.ignoreHiddenPoint,_=(t=v.borderRadius,(0,d.isObject)(t)||(t={radius:t||0}),(0,d.merge)(p,void 0,t)),M=x.plotWidth,O=x.plotHeight,A=v.center,P=m(A[0],M),w=m(A[1],O),W=m(v.width,M),C=m(v.height,O),H=m(v.neckWidth,M),k=m(v.neckHeight,O),j=w-C/2+C-k,S=y.points,D=(0,d.relativeLength)(_.radius,W),I=_.scope,R=+("left"===v.dataLabels.position),T=function(t){var e=Math.tan(t/2),n=Math.cos(r),o=Math.sin(r),a=D,s=a/e,d=Math.tan((Math.PI-t)/3.2104);return s>i&&(a=(s=i)*e),{dx:[s*n,(s-(d*=a))*n,s-d,s],dy:[s*o,(s-d)*o,s-d,s].map(function(t){return b?-t:t})}},Y=0,B=0;y.getWidthAt=function(t){var e=w-C/2;return t>j||C===k?H:H+(W-H)*(1-(t-e)/(C-k))},y.getXPos=function(t,e,n){var o,r,i,a;return P+(e?-1:1)*(y.getWidthAt(b?2*w-t:t)/2+(null!=(i=null==(r=null==(o=n.dataLabel)?void 0:o.dataLabelPosition)?void 0:r.distance)?i:(0,d.relativeLength)((null==(a=this.options.dataLabels)?void 0:a.distance)||0,W)))},y.center=[P,w,C],y.centerX=P;for(var X=0;X<S.length;X++){var E=S[X];E.y&&E.isValid()&&(!L||!1!==E.visible)&&(Y+=E.y)}for(var q=0;q<S.length;q++){var E=S[q];if(f=null,o=Y?E.y/Y:0,c=(s=w-C/2+B*C)+o*C,l=(a=P-(e=y.getWidthAt(s))/2)+e,u=(h=P-(e=y.getWidthAt(c))/2)+e,(0,d.correctFloat)(s)>=j?(a=h=P-H/2,l=u=P+H/2):c>j&&(f=c,u=(h=P-(e=y.getWidthAt(j))/2)+e,c=j),b&&(s=2*w-s,c=2*w-c,null!==f&&(f=2*w-f)),D&&("point"===I||0===E.index||E.index===S.length-1||null!==f)){var F=Math.abs(c-s),N=l-u,V=u-h,z=Math.sqrt(N*N+F*F);r=Math.atan(0!==N?F/N:1/0),i=z/2,null!==f&&(i=Math.min(i,Math.abs(f-c)/2)),V>=1&&(i=Math.min(i,V/2));var U=T(r);if(n="stack"===I&&0!==E.index?[["M",a,s],["L",l,s]]:[["M",a+U.dx[0],s+U.dy[0]],["C",a+U.dx[1],s+U.dy[1],a+U.dx[2],s,a+U.dx[3],s],["L",l-U.dx[3],s],["C",l-U.dx[2],s,l-U.dx[1],s+U.dy[1],l-U.dx[0],s+U.dy[0]]],null!==f){var Z=T(Math.PI/2);U=T(Math.PI/2+r),n.push(["L",u+U.dx[0],c-U.dy[0]],["C",u+U.dx[1],c-U.dy[1],u,c+U.dy[2],u,c+U.dy[3]]),"stack"===I&&E.index!==S.length-1?n.push(["L",u,f],["L",h,f]):n.push(["L",u,f-Z.dy[3]],["C",u,f-Z.dy[2],u-Z.dx[2],f,u-Z.dx[3],f],["L",h+Z.dx[3],f],["C",h+Z.dx[2],f,h,f-Z.dy[2],h,f-Z.dy[3]]),n.push(["L",h,c+U.dy[3]],["C",h,c+U.dy[2],h-U.dx[1],c-U.dy[1],h-U.dx[0],c-U.dy[0]])}else V>=1?(U=T(Math.PI-r),"stack"===I&&0===E.index?n.push(["L",u,c],["L",h,c]):n.push(["L",u+U.dx[0],c-U.dy[0]],["C",u+U.dx[1],c-U.dy[1],u-U.dx[2],c,u-U.dx[3],c],["L",h+U.dx[3],c],["C",h+U.dx[2],c,h-U.dx[1],c-U.dy[1],h-U.dx[0],c-U.dy[0]])):(U=T(Math.PI-2*r),n.push(["L",h+U.dx[0],c-U.dy[0]],["C",h+U.dx[1],c-U.dy[1],h-U.dx[1],c-U.dy[1],h-U.dx[0],c-U.dy[0]]))}else n=[["M",a,s],["L",l,s],["L",u,c]],null!==f&&n.push(["L",u,f],["L",h,f]),n.push(["L",h,c]);n.push(["Z"]),E.shapeType="path",E.shapeArgs={d:n},E.percentage=100*o,E.plotX=P,E.plotY=(s+(f||c))/2,E.tooltipPos=[P,E.plotY],E.dlBox={x:h,y:s,topWidth:l-a,bottomWidth:u-h,height:Math.abs((0,d.pick)(f,c)-s),width:NaN},E.slice=g,E.half=R,E.isValid()&&(!L||!1!==E.visible)&&(B+=o)}(0,d.fireEvent)(y,"afterTranslate")},e.prototype.sortByAngle=function(t){t.sort(function(t,e){return t.plotY-e.plotY})},e.defaultOptions=(0,d.merge)(b.defaultOptions,h),e}(b);function M(){for(var t=0,e=this.series;t<e.length;t++){var n=e[t],o=n.options&&n.options.dataLabels;(0,d.isArray)(o)&&(o=o[0]),n.is("pie")&&n.placeDataLabels&&o&&!o.inside&&n.placeDataLabels()}}(0,d.extend)(_.prototype,{animate:g}),(_||(_={})).compose=function(t){(0,d.pushUnique)(y,"FunnelSeries")&&(0,d.addEvent)(t,"afterHideAllOverlappingLabels",M)},u().registerSeriesType("funnel",_);var O=_,A={neckHeight:"0%",neckWidth:"0%",reversed:!0},P=(o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(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 n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P(e,t),e.defaultOptions=(0,d.merge)(O.defaultOptions,A),e}(O);u().registerSeriesType("pyramid",w);var W=l();O.compose(W.Chart);var C=l();return s.default}()});