!/** * Highcharts JS v11.4.1 (2024-04-04) * * Dependency wheel module * * (c) 2010-2024 Torstein Honsi * * License: www.highcharts.com/license */function(e){"object"==typeof module&&module.exports?(e.default=e,module.exports=e):"function"==typeof define&&define.amd?define("highcharts/modules/dependency-wheel",["highcharts","highcharts/modules/sankey"],function(t){return e(t),e.Highcharts=t,e}):e("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(e){"use strict";var t=e?e._modules:{};function s(e,t,s,a){e.hasOwnProperty(t)||(e[t]=a.apply(null,s),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:t,module:e[t]}})))}s(t,"Series/DependencyWheel/DependencyWheelPoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,t){let{sankey:{prototype:{pointClass:s}}}=e.seriesTypes,{pInt:a,wrap:n}=t;return class extends s{getDataLabelPath(e){let t=this,s=t.series.chart.renderer,i=t.shapeArgs,r=t.angle<0||t.angle>Math.PI,o=i.start||0,l=i.end||0;return t.dataLabelPath?(t.dataLabelPath=t.dataLabelPath.destroy(),delete t.dataLabelPath):n(e,"destroy",function(e){return t.dataLabelPath&&(t.dataLabelPath=t.dataLabelPath.destroy()),e.call(this)}),t.dataLabelPath=s.arc({open:!0,longArc:Math.abs(Math.abs(o)-Math.abs(l)){s.graphic&&s.graphic.animate({opacity:1},{duration:e})},e*t++))}for(let e of this.points){let t=e.graphic;!e.isNode&&t&&t.attr({opacity:0}).animate({opacity:1},this.options.animation)}}}createNode(e){let t=super.createNode(e);return t.getSum=()=>t.linksFrom.concat(t.linksTo).reduce((e,t)=>e+t.weight,0),t.offset=e=>{let s=e=>e.fromNode===t?e.toNode:e.fromNode,a=0,n=t.linksFrom.concat(t.linksTo),i;n.sort((e,t)=>s(e).index-s(t).index);for(let e=0;et.index){n=n.slice(0,e).reverse().concat(n.slice(e).reverse()),i=!0;break}i||n.reverse();for(let t=0;t{let c=t*r,p=Math.cos(a+c)*(h+1),u=Math.sin(a+c)*(h+1);return n=e.curveFactor||0,(i=Math.abs(s.linkBase[3-d]*t-c))>Math.PI&&(i=2*Math.PI-i),(i*=h)