/** * Highcharts JS v11.2.0 (2023-10-30) * * (c) 2014-2021 Highsoft AS * Authors: Jon Arild Nygard / Oystein Moseng * * 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/treemap",["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 i(t,e,i,o){t.hasOwnProperty(e)||(t[e]=o.apply(null,i),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}i(e,"Extensions/Breadcrumbs/BreadcrumbsDefaults.js",[],function(){return{lang:{mainBreadcrumb:"Main"},options:{buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#334eff"}},buttonSpacing:5,floating:!1,format:void 0,relativeTo:"plotBox",rtl:!1,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666",fontSize:"0.8em"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7}}}),i(e,"Extensions/Breadcrumbs/Breadcrumbs.js",[e["Extensions/Breadcrumbs/BreadcrumbsDefaults.js"],e["Core/Chart/Chart.js"],e["Core/Templating.js"],e["Core/Utilities.js"]],function(t,e,i,o){var r=i.format,s=o.addEvent,n=o.defined,a=o.extend,l=o.fireEvent,h=o.isString,p=o.merge,d=o.objectEach,u=o.pick,c=[];function v(){if(this.breadcrumbs){var t=this.resetZoomButton&&this.resetZoomButton.getBBox(),e=this.breadcrumbs.options;t&&"right"===e.position.align&&"plotBox"===e.relativeTo&&this.breadcrumbs.alignBreadcrumbsGroup(-t.width-e.buttonSpacing)}}function f(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}function g(){var t=this.breadcrumbs;if(t&&!t.options.floating&&t.level){var e=t.options,i=e.buttonTheme,o=(i.height||0)+2*(i.padding||0)+e.buttonSpacing,r=e.position.verticalAlign;"bottom"===r?(this.marginBottom=(this.marginBottom||0)+o,t.yOffset=o):"middle"!==r?(this.plotTop+=o,t.yOffset=-o):t.yOffset=void 0}}function y(){this.breadcrumbs&&this.breadcrumbs.redraw()}function m(t){!0===t.resetSelection&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()}return function(){function i(t,e){this.elementList={},this.isDirty=!0,this.level=0,this.list=[];var o=p(t.options.drilldown&&t.options.drilldown.drillUpButton,i.defaultOptions,t.options.navigation&&t.options.navigation.breadcrumbs,e);this.chart=t,this.options=o||{}}return i.compose=function(i,r){o.pushUnique(c,i)&&(s(e,"destroy",f),s(e,"afterShowResetZoom",v),s(e,"getMargins",g),s(e,"redraw",y),s(e,"selection",m)),o.pushUnique(c,r)&&a(r.lang,t.lang)},i.prototype.updateProperties=function(t){this.setList(t),this.setLevel(),this.isDirty=!0},i.prototype.setList=function(t){this.list=t},i.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1},i.prototype.getLevel=function(){return this.level},i.prototype.getButtonText=function(t){var e=this.chart,i=this.options,o=e.options.lang,s=u(i.format,i.showFullPath?"{level.name}":"← {level.name}"),a=o&&u(o.drillUpText,o.mainBreadcrumb),l=i.formatter&&i.formatter(t)||r(s,{level:t.levelOptions},e)||"";return(h(l)&&!l.length||"← "===l)&&n(a)&&(l=i.showFullPath?a:"← "+a),l},i.prototype.redraw=function(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1},i.prototype.render=function(){var t=this.chart,e=this.options;!this.group&&e&&(this.group=t.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:e.zIndex}).add()),e.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()},i.prototype.renderFullPathButtons=function(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()},i.prototype.renderSingleButton=function(){var t=this.chart,e=this.list,i=this.options.buttonSpacing;this.destroyListElements();var o=this.group?this.group.getBBox().width:i,r=e[e.length-2];!t.drillUpButton&&this.level>0?t.drillUpButton=this.renderButton(r,o,i):t.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())},i.prototype.alignBreadcrumbsGroup=function(t){if(this.group){var e=this.options,i=e.buttonTheme,o=e.position,r="chart"===e.relativeTo||"spacingBox"===e.relativeTo?void 0:"scrollablePlotBox",s=this.group.getBBox(),n=2*(i.padding||0)+e.buttonSpacing;o.width=s.width+n,o.height=s.height+n;var a=p(o);t&&(a.x+=t),this.options.rtl&&(a.x+=o.width),a.y=u(a.y,this.yOffset,0),this.group.align(a,!0,r)}},i.prototype.renderButton=function(t,e,i){var o=this,r=this.chart,s=o.options,n=p(s.buttonTheme),a=r.renderer.button(o.getButtonText(t),e,i,function(e){var i,r=s.events&&s.events.click;r&&(i=r.call(o,e,t)),!1!==i&&(s.showFullPath?e.newLevel=t.level:e.newLevel=o.level-1,l(o,"up",e))},n).addClass("highcharts-breadcrumbs-button").add(o.group);return r.styledMode||a.attr(s.style),a},i.prototype.renderSeparator=function(t,e){var i=this.chart,o=this.options.separator,r=i.renderer.label(o.text,t,e,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return i.styledMode||r.css(o.style),r},i.prototype.update=function(t){p(!0,this.options,t),this.destroy(),this.isDirty=!0},i.prototype.updateSingleButton=function(){var t=this.chart,e=this.list[this.level-1];t.drillUpButton&&t.drillUpButton.attr({text:this.getButtonText(e)})},i.prototype.destroy=function(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0},i.prototype.destroyListElements=function(t){var e=this.elementList;d(e,function(i,o){(t||!e[o].updated)&&((i=e[o]).button&&i.button.destroy(),i.separator&&i.separator.destroy(),delete i.button,delete i.separator,delete e[o])}),t&&(this.elementList={})},i.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)},i.prototype.resetElementListState=function(){d(this.elementList,function(t){t.updated=!1})},i.prototype.updateListElements=function(){for(var t,e,i=this.elementList,o=this.options.buttonSpacing,r=this.list,s=this.options.rtl,n=s?-1:1,a=function(t,e){return n*t.getBBox().width+n*e},l=function(t,e,i){t.translate(e-t.getBBox().width,i)},h=this.group?a(this.group,o):o,p=0,d=r.length;p{point.name}: {point.value}
"},ignoreHiddenPoint:!0,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,traverseUpButton:{position:{align:"right",x:-10,y:10}},borderColor:"#e6e6e6",borderWidth:1,colorKey:"colorValue",opacity:.15,states:{hover:{borderColor:"#999999",brightness:t.seriesTypes.heatmap?0:.1,halo:!1,opacity:.75,shadow:!1}},legendSymbol:"rectangle"}}),i(e,"Series/Treemap/TreemapUtilities.js",[e["Core/Utilities.js"]],function(t){var e;return t.objectEach,(e||(e={})).recursive=function t(e,i,o){var r;!1!==(r=i.call(o||this,e))&&t(r,i,o)},e}),i(e,"Series/TreeUtilities.js",[e["Core/Color/Color.js"],e["Core/Utilities.js"]],function(t,e){var i=e.extend,o=e.isArray,r=e.isNumber,s=e.isObject,n=e.merge,a=e.pick;return{getColor:function(e,i){var o,r,s,n,l,h,p,d=i.index,u=i.mapOptionsToLevel,c=i.parentColor,v=i.parentColorIndex,f=i.series,g=i.colors,y=i.siblings,m=f.points,b=f.chart.options.chart;return e&&(r=m[e.i],s=u[e.level]||{},r&&s.colorByPoint&&(l=r.index%(g?g.length:b.colorCount),n=g&&g[l]),f.chart.styledMode||(h=a(r&&r.options.color,s&&s.color,n,c&&((o=s&&s.colorVariation)&&"brightness"===o.key&&d&&y?t.parse(c).brighten(o.to*(d/y)).get():c),f.color)),p=a(r&&r.options.colorIndex,s&&s.colorIndex,l,v,i.colorIndex)),{color:h,colorIndex:p}},getLevelOptions:function(t){var e,i,l,h,p,d,u={};if(s(t))for(h=r(t.from)?t.from:1,d=t.levels,i={},e=s(t.defaults)?t.defaults:{},o(d)&&(i=d.reduce(function(t,i){var o,l,p;return s(i)&&r(i.level)&&(l=a((p=n({},i)).levelIsConstant,e.levelIsConstant),delete p.levelIsConstant,delete p.level,s(t[o=i.level+(l?0:h-1)])?n(!0,t[o],p):t[o]=p),t},{})),p=r(t.to)?t.to:1,l=0;l<=p;l++)u[l]=n({},e,s(i[l])?i[l]:{});return u},setTreeValues:function t(e,o){var r=o.before,s=o.idRoot,n=o.mapIdToNode[s],l=!1!==o.levelIsConstant,h=o.points[e.i],p=h&&h.options||{},d=[],u=0;e.levelDynamic=e.level-(l?0:n.level),e.name=a(h&&h.name,""),e.visible=s===e.id||!0===o.visible,"function"==typeof r&&(e=r(e,o)),e.children.forEach(function(r,s){var n=i({},o);i(n,{index:s,siblings:e.children.length,visible:e.visible}),r=t(r,n),d.push(r),r.visible&&(u+=r.val)});var c=a(p.value,u);return e.visible=c>=0&&(u>0||e.visible),e.children=d,e.childrenTotal=u,e.isLeaf=e.visible&&!u,e.val=c,e},updateRootId:function(t){var e,i;return s(t)&&(i=s(t.options)?t.options:{},e=a(t.rootNode,i.rootId,""),s(t.userOptions)&&(t.userOptions.rootId=e),t.rootNode=e),e}}}),i(e,"Series/Treemap/TreemapSeries.js",[e["Extensions/Breadcrumbs/Breadcrumbs.js"],e["Core/Color/Color.js"],e["Series/ColorMapComposition.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Series/Treemap/TreemapAlgorithmGroup.js"],e["Series/Treemap/TreemapNode.js"],e["Series/Treemap/TreemapPoint.js"],e["Series/Treemap/TreemapSeriesDefaults.js"],e["Series/Treemap/TreemapUtilities.js"],e["Series/TreeUtilities.js"],e["Core/Utilities.js"]],function(t,e,i,o,r,s,n,a,l,h,p,d){var u,c=this&&this.__extends||(u=function(t,e){return(u=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),v=e.parse,f=o.noop,g=r.seriesTypes,y=g.column,m=g.scatter,b=p.getColor,x=p.getLevelOptions,T=p.updateRootId,w=d.addEvent,B=d.correctFloat,S=d.defined,C=d.error,L=d.extend,A=d.fireEvent,P=d.isArray,O=(d.isNumber,d.isObject),j=d.isString,R=d.merge,U=d.pick,M=d.pushUnique,N=d.stableSort,D=[],I=!1;function E(){var t,e=this.xAxis,i=this.yAxis;e&&i&&(this.is("treemap")?(t={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,minPadding:0,max:100,maxPadding:0,startOnTick:!1,title:void 0,tickPositions:[]},L(i.options,t),L(e.options,t),I=!0):I&&(i.setOptions(i.userOptions),e.setOptions(e.userOptions),I=!1))}var W=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.axisRatio=void 0,t.data=void 0,t.mapOptionsToLevel=void 0,t.nodeMap=void 0,t.nodeList=void 0,t.options=void 0,t.points=void 0,t.rootNode=void 0,t.tree=void 0,t.level=void 0,t}return c(i,e),i.compose=function(t){M(D,t)&&w(t,"afterBindAxes",E)},i.prototype.algorithmCalcPoints=function(t,e,i,o){var r,s,n,a,l,h=i.plot,p=i.elArr.length-1,d=i.lW,u=i.lH,c=0;e?(d=i.nW,u=i.nH):l=i.elArr[p];for(var v=0,f=i.elArr;vh.lP.lR&&this.algorithmCalcPoints(t,!1,h,r,n),p===l&&this.algorithmCalcPoints(t,!0,h,r,n),++p}return r},i.prototype.alignDataLabel=function(t,e,i){var o=i.style;o&&!S(o.textOverflow)&&e.text&&e.getBBox().width>e.text.textWidth&&e.css({textOverflow:"ellipsis",width:o.width+="px"}),y.prototype.alignDataLabel.apply(this,arguments),t.dataLabel&&t.dataLabel.attr({zIndex:(t.node.zIndex||0)+1})},i.prototype.calculateChildrenAreas=function(t,e){var i=this.options,o=this.mapOptionsToLevel[t.level+1],r=U(this[o&&o.layoutAlgorithm]&&o.layoutAlgorithm,i.layoutAlgorithm),s=i.alternateStartingDirection,n=t.children.filter(function(t){return!t.ignore}),a=[];o&&o.layoutStartingDirection&&(e.direction="vertical"===o.layoutStartingDirection?0:1),a=this[r](e,n);for(var l=-1,h=0;h0),isLeaf:t.visible&&!a,levelDynamic:t.level-(r?0:o.level),name:U(n&&n.name,""),sortIndex:U(n&&n.sortIndex,-d),val:d}),t},i.prototype.sliceAndDice=function(t,e){return this.algorithmFill(!0,t,e)},i.prototype.squarified=function(t,e){return this.algorithmLowAspectRatio(!0,t,e)},i.prototype.strip=function(t,e){return this.algorithmLowAspectRatio(!1,t,e)},i.prototype.stripes=function(t,e){return this.algorithmFill(!1,t,e)},i.prototype.translate=function(){var t,i,o,r,s=this,n=s.options,a=T(s);e.prototype.translate.call(this);var l=s.tree=s.getTree();t=s.nodeMap[a],""===a||t&&t.children.length||(s.setRootNode("",!1),a=s.rootNode,t=s.nodeMap[a]),s.mapOptionsToLevel=x({from:t.level+1,levels:n.levels,to:l.height,defaults:{levelIsConstant:s.options.levelIsConstant,colorByPoint:n.colorByPoint}}),h.recursive(s.nodeMap[s.rootNode],function(t){var e=t.parent,i=!1;return t.visible=!0,(e||""===e)&&(i=s.nodeMap[e]),i}),h.recursive(s.nodeMap[s.rootNode].children,function(t){for(var e=!1,i=0;i