/** * Highcharts JS v11.2.0 (2023-10-30) * * (c) 2016-2021 Highsoft AS * Authors: Jon Arild Nygard * * License: www.highcharts.com/license */!function(t){"object"==typeof module&&module.exports?(t.default=t,module.exports=t):"function"==typeof define&&define.amd?define("highcharts/modules/wordcloud",["highcharts"],function(e){return t(e),t.Highcharts=e,t}):t("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){"use strict";var e=t?t._modules:{};function o(t,e,o,i){t.hasOwnProperty(e)||(t[e]=i.apply(null,o),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}o(e,"Series/DrawPointUtilities.js",[e["Core/Utilities.js"]],function(t){var e=this&&this.__assign||function(){return(e=Object.assign||function(t){for(var e,o=1,i=arguments.length;o● {series.name}: {point.weight}
'}}}),o(e,"Series/Wordcloud/WordcloudUtils.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e){var o=t.deg2rad,i=e.extend,r=e.find,n=e.isNumber,a=e.isObject,s=e.merge;function l(t,e){return!(e.left>t.right||e.rightt.bottom||e.bottomi.max||r.max=a-n&&(s={x:i-(a-o),y:-i}),a-=n,r(s)&&o>=a-n&&(s={x:-i,y:-i+(a-o)}),a-=n,r(s)&&(s=o>=a-n?{x:-i+(a-o),y:i}:{x:i,y:i-(a-o-n)}),s.x*=5,s.y*=5),s}function p(t,e){var o=Math.pow(10,n(e)?e:14);return Math.round(t*o)/o}function f(t,e){var i=t[0],r=t[1],n=-(o*e),a=Math.cos(n),s=Math.sin(n);return[p(i*a-r*s),p(i*s+r*a)]}function g(t,e,o){var i=f([t[0]-e[0],t[1]-e[1]],o);return[i[0]+e[0],i[1]+e[1]]}return{archimedeanSpiral:function(t,e){var o=e.field,i=o.width*o.width+o.height*o.height,r=.8*t,n=!1;return t<=1e4&&!(Math.min(Math.abs((n={x:r*Math.cos(r),y:r*Math.sin(r)}).x),Math.abs(n.y))o*(n=t.ratioY)?i:o,u=s(t,{width:t.width+2*(l*r),height:t.height+2*(l*n)})):u=t,u},getBoundingBoxFromPolygon:function(t){return t.reduce(function(t,e){var o=e[0],i=e[1];return t.left=Math.min(o,t.left),t.right=Math.max(o,t.right),t.bottom=Math.max(i,t.bottom),t.top=Math.min(i,t.top),t},{left:Number.MAX_VALUE,right:-Number.MAX_VALUE,bottom:-Number.MAX_VALUE,top:Number.MAX_VALUE})},getPlayingField:function(t,e,o){var i=o.reduce(function(t,e){var o=e.dimensions,i=Math.max(o.width,o.height);return t.maxHeight=Math.max(t.maxHeight,o.height),t.maxWidth=Math.max(t.maxWidth,o.width),t.area+=i*i,t},{maxHeight:0,maxWidth:0,area:0}),r=Math.max(i.maxHeight,i.maxWidth,.85*Math.sqrt(i.area)),n=t>e?t/e:1,a=e>t?e/t:1;return{width:r*n,height:r*a,ratioX:n,ratioY:a}},getPolygon:function(t,e,o,i,r){var n=[t,e],a=t-o/2,s=t+o/2,l=e-i/2,u=e+i/2;return[[a,l],[s,l],[s,u],[a,u]].map(function(t){return g(t,n,-r)})},getRandomPosition:function(t){return Math.round(t*(Math.random()+.5)/2)},getRotation:function(t,e,o,i){var r,a=!1;return n(t)&&n(e)&&n(o)&&n(i)&&t>0&&e>-1&&i>o&&(r=(i-o)/(t-1||1),a=o+e%t*r),a},getScale:function(t,e,o){var i=2*Math.max(Math.abs(o.top),Math.abs(o.bottom)),r=2*Math.max(Math.abs(o.left),Math.abs(o.right));return Math.min(r>0?1/r*t:1,i>0?1/i*e:1)},getSpiral:function(t,e){for(var o=[],i=1;i<1e4;i++)o.push(t(i,e));return function(t){return t<=1e4&&o[t-1]}},intersectionTesting:function(t,e){var o,n,s,u,h,d,p=e.placed,f=e.field,g=e.rectangle,m=e.polygon,y=e.spiral,x=t.rect=i({},g),v=1,b={x:0,y:0};for(t.polygon=m,t.rotation=e.rotation;!1!==b&&(o=t.rect,n=t.polygon,s=t.lastCollidedWith,u=function(e){var i=l(o,e.rect);return i&&(t.rotation%90||e.rotation%90)&&(i=c(n,e.polygon)),i},h=!1,!s||(h=u(s))||delete t.lastCollidedWith,h||(h=!!r(p,function(e){var o=u(e);return o&&(t.lastCollidedWith=e),o})),h||!((d={left:-(f.width/2),right:f.width/2,top:-(f.height/2),bottom:f.height/2}).leftx.right&&d.topx.bottom));)a(b=y(v))&&(x.left=g.left+b.x,x.right=g.right+b.x,x.top=g.top+b.y,x.bottom=g.bottom+b.y,t.polygon=function(t,e,o){return o.map(function(o){return[o[0]+t,o[1]+e]})}(b.x,b.y,m)),v++;return b},isPolygonsColliding:c,isRectanglesIntersecting:l,rectangularSpiral:function(t,e){var o=d(t,e),i=e.field;return o&&(o.x*=i.ratioX,o.y*=i.ratioY),o},rotate2DToOrigin:f,rotate2DToPoint:g,squareSpiral:d,updateFieldBoundaries:function(t,e){return(!n(t.left)||t.left>e.left)&&(t.left=e.left),(!n(t.right)||t.righte.top)&&(t.top=e.top),(!n(t.bottom)||t.bottom0},i.prototype.getPlotBox=function(){var t=this.chart,e=t.inverted,o=this[e?"yAxis":"xAxis"],i=this[e?"xAxis":"yAxis"],r=o?o.len:t.plotWidth,n=i?i.len:t.plotHeight;return{translateX:(o?o.left:t.plotLeft)+r/2,translateY:(i?i.top:t.plotTop)+n/2,scaleX:1,scaleY:1}},i.defaultOptions=g(h.defaultOptions,n),i}(h);return c(T.prototype,{animate:u,animateDrilldown:u,animateDrillupFrom:u,isCartesian:!1,pointClass:r,setClip:u,placementStrategy:{random:function(t,e){var o=e.field,i=e.rotation;return{x:w(o.width)-o.width/2,y:w(o.height)-o.height/2,rotation:S(i.orientations,t.index,i.from,i.to)}},center:function(t,e){var o=e.rotation;return{x:0,y:0,rotation:S(o.orientations,t.index,o.from,o.to)}}},pointArrayMap:["weight"],spirals:{archimedean:m,rectangular:A,square:F},utils:{extendPlayingField:y,getRotation:S,isPolygonsColliding:_,rotate2DToOrigin:C,rotate2DToPoint:W}}),o.registerSeriesType("wordcloud",T),T}),o(e,"masters/modules/wordcloud.src.js",[],function(){})});//# sourceMappingURL=wordcloud.js.map