!/**
 * Highcharts JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/variable-pie
 * @requires highcharts
 *
 * Variable Pie module for Highcharts
 *
 * (c) 2010-2026 Highsoft AS
 * Author: Grzegorz Blachliński
 *
 * 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/variable-pie",["highcharts/highcharts"],function(t){return e(t,t.SeriesRegistry)}):"object"==typeof exports?exports["highcharts/modules/variable-pie"]=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 i,r={512:function(t){t.exports=e},944:function(e){e.exports=t}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={exports:{}};return r[t](i,i.exports,o),i.exports}o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var i in e)o.o(e,i)&&!o.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var a={};o.d(a,{default:function(){return g}});var s=o(944),h=o.n(s),c=o(512),l=o.n(c),p={minPointSize:"10%",maxPointSize:"100%",zMin:void 0,zMax:void 0,sizeBy:"area",tooltip:{pointFormat:'<span style="color:{point.color}">●</span> {series.name}<br/>Value: {point.y}<br/>Size: {point.z}<br/>'}},u=(i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),f=function(t,e,i){if(i||2==arguments.length)for(var r,n=0,o=e.length;n<o;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return t.concat(r||Array.prototype.slice.call(e))},d=l().seriesTypes.pie,y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.calculateExtremes=function(){for(var t,e,i=this.chart,r=i.plotWidth,n=i.plotHeight,o=this.options,a=2*(o.slicedOffset||0),h=f([],this.getColumn("z",!1,!0),!0),c=Math.min(r,n)-a,l={},p=this.center||this.getCenter(),u=0,d=["minPointSize","maxPointSize"];u<d.length;u++){var y=d[u],g=o[y],M=/%$/.test(g);g=parseInt(g,10),l[y]=M?c*g/100:2*g}this.minPxSize=p[3]+l.minPointSize,this.maxPxSize=(0,s.clamp)(p[2],p[3]+l.minPointSize,l.maxPointSize),h.length&&(t=(0,s.pick)(o.zMin,(0,s.arrayMin)(h.filter(this.zValEval))),e=(0,s.pick)(o.zMax,(0,s.arrayMax)(h.filter(this.zValEval))),this.getRadii(t,e,this.minPxSize,this.maxPxSize))},e.prototype.getRadii=function(t,e,i,r){for(var n,o,a,s=f([],this.getColumn("z",!1,!0),!0),h=[],c="radius"!==this.options.sizeBy,l=e-t,p=0;p<s.length;p++)(o=this.zValEval(s[p])?s[p]:t)<=t?a=i/2:o>=e?a=r/2:(n=l>0?(o-t)/l:.5,c&&(n=Math.sqrt(n)),a=Math.ceil(i+n*(r-i))/2),h.push(a);this.radii=h},e.prototype.redraw=function(){this.center=null,t.prototype.redraw.call(this)},e.prototype.getDataLabelPosition=function(t,e){var i=this.center,r=this.options,n=t.angle||0,o=this.radii[t.index],a=i[0]+Math.cos(n)*o,s=i[1]+Math.sin(n)*o,h=Math.min((r.slicedOffset||0)+(r.borderWidth||0),e/5);return{distance:e,natural:{x:a+Math.cos(n)*e,y:s+Math.sin(n)*e},computed:{},alignment:t.half?"right":"left",connectorPosition:{breakAt:{x:a+Math.cos(n)*h,y:s+Math.sin(n)*h},touchingSliceAt:{x:a,y:s}}}},e.prototype.translate=function(t){this.generatePoints();var e,i,r,n,o,a,h,c=this.options,l=c.slicedOffset,p=c.startAngle||0,u=Math.PI/180*(p-90),f=Math.PI/180*((0,s.pick)(c.endAngle,p+360)-90),d=f-u,y=this.points,g=c.ignoreHiddenPoint,M=0;this.startAngleRad=u,this.endAngleRad=f,this.calculateExtremes(),t||(this.center=t=this.getCenter());for(var x=0;x<y.length;x++)a=y[x],h=this.radii[x],e=u+M*d,(!g||a.visible)&&(M+=a.percentage/100),i=u+M*d,a.shapeType="arc",a.shapeArgs={x:t[0],y:t[1],r:h,innerR:t[3]/2,start:Math.round(1e3*e)/1e3,end:Math.round(1e3*i)/1e3},(r=(i+e)/2)>1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI),a.slicedTranslation={translateX:Math.round(Math.cos(r)*l),translateY:Math.round(Math.sin(r)*l)},n=Math.cos(r)*t[2]/2,o=Math.sin(r)*t[2]/2,a.tooltipPos=[t[0]+.7*n,t[1]+.7*o],a.half=+(r<-Math.PI/2||r>Math.PI/2),a.angle=r;(0,s.fireEvent)(this,"afterTranslate")},e.prototype.zValEval=function(t){return!("number"!=typeof t||isNaN(t))||null},e.defaultOptions=(0,s.merge)(d.defaultOptions,p),e}(d);(0,s.extend)(y.prototype,{pointArrayMap:["y","z"],parallelArrays:["x","y","z"]}),l().registerSeriesType("variablepie",y);var g=h();return a.default}()});