/* Highcharts JS v6.1.0 (2018-04-13) (c) 2016 Highsoft AS Authors: Jon Arild Nygard License: www.highcharts.com/license */ (function(m){"object"===typeof module&&module.exports?module.exports=m:m(Highcharts)})(function(m){var D=function(){return function(d){var n=this,f=n.graphic,p=d.animate,m=d.attr,l=d.onComplete,z=d.css,A=d.group,r=d.renderer,w=d.shapeArgs;d=d.shapeType;n.shouldDraw()?(f||(n.graphic=f=r[d](w).add(A)),f.css(z).attr(m).animate(p,void 0,l)):f&&f.animate(p,void 0,function(){n.graphic=f=f.destroy();"function"===typeof l&&l()});f&&f.addClass(n.getClassName(),!0)}}();(function(d,n){var f=d.each,p=d.extend, m=d.isArray,l=d.isNumber,z=d.isObject,A=d.reduce,r=d.Series,w=function(a,b){return!(b.left>a.right||b.righta.bottom||b.bottom=a&&("boolean"===typeof g&&a>=e-c&&(g={x:b- (e-a),y:-b}),e-=c,"boolean"===typeof g&&a>=e-c&&(g={x:-b,y:-b+(e-a)}),e-=c,"boolean"===typeof g&&(g=a>=e-c?{x:-b+(e-a),y:b}:{x:b,y:b-(e-a-c)}),g.x*=5,g.y*=5);return g},H=function(a,b,c){a/=b;c=A(c,function(a,b){b=b.dimensions;a.maxHeight=Math.max(a.maxHeight,b.height);a.maxWidth=Math.max(a.maxWidth,b.width);a.area+=b.width*b.height;return a},{maxHeight:0,maxWidth:0,area:0});c=1.1*Math.max(c.maxHeight,c.maxWidth,Math.sqrt(c.area));return{width:c*a,height:c,ratio:a}},B=function(a,b,c,e){var g=!1;l(a)&& l(b)&&l(c)&&l(e)&&-1c&&(g=c+b%a*((e-c)/(a-1)));return g},I=function(a,b){a=a.getBBox();var c=b.width/2,e=-(b.height/2),g=b.height/2;return!(-(b.width/2)a.x+a.width/2&&ea.y+a.height/2)};d.seriesType("wordcloud","column",{animation:{duration:500},borderWidth:0,clip:!1,colorByPoint:!0,minFontSize:20,maxFontSize:140,placementStrategy:"center",rotation:{from:0,orientations:2,to:90},showInLegend:!1,spiral:"rectangular",style:{fontFamily:"sans-serif",fontWeight:"900"}, tooltip:{followPointer:!0,pointFormat:'\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e {series.name}: \x3cb\x3e{point.weight}\x3c/b\x3e\x3cbr/\x3e'}},{animate:r.prototype.animate,bindAxes:function(){var a={endOnTick:!1,gridLineWidth:0,lineWidth:0,maxPadding:0,startOnTick:!1,title:null,tickPositions:[]};r.prototype.bindAxes.call(this);p(this.yAxis.options,a);p(this.xAxis.options,a)},deriveFontSize:function(a,b,c){a=l(a)?a:0;b=l(b)?b:1;c=l(c)?c:1;return Math.floor(Math.max(c,a*b))},drawPoints:function(){var a= this,b=a.hasRendered,c=a.xAxis,e=a.yAxis,g=a.group,d=a.options,m=d.animation,n=a.chart.renderer,v=n.text().add(g),r=[],w=a.placementStrategy[d.placementStrategy],A=a.spirals[d.spiral],B=d.rotation,u=a.points.map(function(a){return a.weight}),E=Math.max.apply(null,u),C=a.points.sort(function(a,b){return b.weight-a.weight}),q;f(C,function(b){var c=a.deriveFontSize(1/E*b.weight,d.maxFontSize,d.minFontSize),c=p({fontSize:c+"px"},d.style);v.css(c).attr({x:0,y:0,text:b.name});c=v.getBBox(!0);b.dimensions= {height:c.height,width:c.width}});q=H(c.len,e.len,C);f(C,function(c){var e=a.deriveFontSize(1/E*c.weight,d.maxFontSize,d.minFontSize),e=p({fontSize:e+"px",fill:c.color},d.style),f=w(c,{data:C,field:q,placed:r,rotation:B}),k={align:"center",x:f.x,y:f.y,text:c.name,rotation:f.rotation},u,x,h;v.css(e).attr(k);c.clientRect=h=p({},v.element.getBoundingClientRect());x=v;for(var F=q,G=1,y={x:0,y:0},t=c.rect=p({},h);(D(c,r)||I(x,F))&&!1!==y;)y=A(G,{field:F}),z(y)&&(t.left=h.left+y.x,t.right=t.left+t.width, t.top=h.top+y.y,t.bottom=t.top+t.height),G++;x=y;if(z(x)){k.x+=x.x;k.y+=x.y;p(f,{left:k.x-h.width/2,right:k.x+h.width/2,top:k.y-h.height/2,bottom:k.y+h.height/2});h=q;if(!l(h.left)||h.left>f.left)h.left=f.left;if(!l(h.right)||h.rightf.top)h.top=f.top;if(!l(h.bottom)||h.bottom=a&&(b={x:d*Math.cos(d),y:d*Math.sin(d)},Math.min(Math.abs(b.x),Math.abs(b.y))