/* Highcharts JS v8.1.0 (2020-05-05) (c) 2017-2019 Highsoft AS Authors: Jon Arild Nygard License: www.highcharts.com/license */ (function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/venn",["highcharts"],function(q){a(q);a.Highcharts=q;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function q(a,e,f,k){a.hasOwnProperty(e)||(a[e]=k.apply(null,f))}a=a?a._modules:{};q(a,"mixins/draw-point.js",[],function(){var a=function(e){var f,a=this,t=a.graphic,p=e.animatableAttribs,h=e.onComplete,z=e.css,q=e.renderer, u=null===(f=a.series)||void 0===f?void 0:f.options.animation;if(a.shouldDraw())t||(a.graphic=t=q[e.shapeType](e.shapeArgs).add(e.group)),t.css(z).attr(e.attribs).animate(p,e.isNew?!1:u,h);else if(t){var r=function(){a.graphic=t=t.destroy();"function"===typeof h&&h()};Object.keys(p).length?t.animate(p,void 0,function(){r()}):r()}};return function(e){(e.attribs=e.attribs||{})["class"]=this.getClassName();a.call(this,e)}});q(a,"mixins/geometry.js",[],function(){return{getAngleBetweenPoints:function(a, e){return Math.atan2(e.x-a.x,e.y-a.y)},getCenterOfPoints:function(a){var e=a.reduce(function(e,a){e.x+=a.x;e.y+=a.y;return e},{x:0,y:0});return{x:e.x/a.length,y:e.y/a.length}},getDistanceBetweenPoints:function(a,e){return Math.sqrt(Math.pow(e.x-a.x,2)+Math.pow(e.y-a.y,2))}}});q(a,"mixins/geometry-circles.js",[a["mixins/geometry.js"]],function(a){function e(c,b){b=Math.pow(10,b);return Math.round(c*b)/b}function f(c){if(0>=c)throw Error("radius of circle must be a positive number.");return Math.PI* c*c}function k(c,b){return c*c*Math.acos(1-b/c)-(c-b)*Math.sqrt(b*(2*c-b))}function t(c,b){var a=v(c,b),g=c.r,f=b.r,h=[];if(aMath.abs(g-f)){g*=g;var k=(g-f*f+a*a)/(2*a);f=Math.sqrt(g-k*k);g=c.x;h=b.x;c=c.y;var p=b.y;b=g+k*(h-g)/a;k=c+k*(p-c)/a;c=f/a*-(p-c);a=f/a*-(h-g);h=[{x:e(b+c,14),y:e(k-a,14)},{x:e(b-c,14),y:e(k+a,14)}]}return h}function p(c){return c.reduce(function(c,a,e,f){f=f.slice(e+1).reduce(function(c,b,f){var g=[e,f+e+1];return c.concat(t(a,b).map(function(c){c.indexes=g;return c}))}, []);return c.concat(f)},[])}function h(c,b){return v(c,b)<=b.r+1e-10}function z(c,b){return!b.some(function(b){return!h(c,b)})}function q(c){return p(c).filter(function(b){return z(b,c)})}var u=a.getAngleBetweenPoints,r=a.getCenterOfPoints,v=a.getDistanceBetweenPoints;return{getAreaOfCircle:f,getAreaOfIntersectionBetweenCircles:function(c){var b=q(c);if(12*g&&(h=2*g);if(!b||b.width>h)b={r:g,largeArc:h>g?1:0,width:h,x:a.x,y:a.y};return b},null);if(g){var h=g.r;b.arcs.push(["A",h,h,0,g.largeArc,1,g.x,g.y]);b.startPoint=a}return b},{startPoint:e,arcs:[]}).arcs;if(0!==b.length&&1!==b.length){b.unshift(["M",e.x,e.y]);var f= {center:a,d:b}}}return f},getCircleCircleIntersection:t,getCirclesIntersectionPoints:p,getCirclesIntersectionPolygon:q,getCircularSegmentArea:k,getOverlapBetweenCircles:function(c,b,a){var g=0;aA;A++){f.sort(k);var u=f[f.length-1],r=a(f),v=t(r,u,2,-1);v.fx=f[f.length-2].fx?v.fx>u.fx?(r=t(r,u,.5,.5),f=r.fx=l)throw Error("a must be smaller than b.");if(0c;){e=(l-b)/2;g=b+e;var I=a(g);0=l?d:u(ab)a.left=b;if(!w(a.right)||a.rightd)a.top=d;if(!w(a.bottom)||a.bottom