/** * Highmaps JS v11.2.0 (2023-10-30) * * (c) 2009-2021 Torstein Honsi * * 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/heatmap",["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,"Core/Axis/Color/ColorAxisComposition.js",[e["Core/Color/Color.js"],e["Core/Utilities.js"]],function(t,e){var o,i=t.parse,r=e.addEvent,s=e.extend,a=e.merge,n=e.pick,l=e.splat;return function(t){var o,h=[];function p(){var t=this,e=this.options;this.colorAxis=[],e.colorAxis&&(e.colorAxis=l(e.colorAxis),e.colorAxis.map(function(e){return new o(t,e)}))}function c(t){var e,o,i=this,r=this.chart.colorAxis||[],s=function(e){var o=t.allItems.indexOf(e);-1!==o&&(i.destroyItem(t.allItems[o]),t.allItems.splice(o,1))},a=[];for(r.forEach(function(t){(e=t.options)&&e.showInLegend&&(e.dataClasses&&e.visible?a=a.concat(t.getDataClassLegendSymbols()):e.visible&&a.push(t),t.series.forEach(function(t){(!t.options.showInLegend||e.dataClasses)&&("point"===t.options.legendType?t.points.forEach(function(t){s(t)}):s(t))}))}),o=a.length;o--;)t.allItems.unshift(a[o])}function d(t){t.visible&&t.item.legendColor&&t.item.legendItem.symbol.attr({fill:t.item.legendColor})}function u(t){var e;null===(e=this.chart.colorAxis)||void 0===e||e.forEach(function(e){e.update({},t.redraw)})}function f(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function y(){var t=this.axisTypes;t?-1===t.indexOf("colorAxis")&&t.push("colorAxis"):this.axisTypes=["colorAxis"]}function m(t){var e=this,o=t?"show":"hide";e.visible=e.options.visible=!!t,["graphic","dataLabel"].forEach(function(t){e[t]&&e[t][o]()}),this.series.buildKDTree()}function g(){var t=this,e=this.data.length?this.data:this.points,o=this.options.nullColor,i=this.colorAxis,r=this.colorKey;e.forEach(function(e){var s=e.getNestedProperty(r),a=e.options.color||(e.isNull||null===e.value?o:i&&void 0!==s?i.toColor(s,e):e.color||t.color);a&&e.color!==a&&(e.color=a,"point"===t.options.legendType&&e.legendItem&&e.legendItem.label&&t.chart.legend.colorizeItem(e,e.visible))})}function v(){this.elem.attr("fill",i(this.start).tweenTo(i(this.end),this.pos),void 0,!0)}function x(){this.elem.attr("stroke",i(this.start).tweenTo(i(this.end),this.pos),void 0,!0)}t.compose=function(t,i,l,C,b){if(o||(o=t),e.pushUnique(h,i)){var A,w=i.prototype;w.collectionsWithUpdate.push("colorAxis"),w.collectionsWithInit.colorAxis=[w.addColorAxis],r(i,"afterGetAxes",p),A=i.prototype.createAxis,i.prototype.createAxis=function(t,e){if("colorAxis"!==t)return A.apply(this,arguments);var i=new o(this,a(e.axis,{index:this[t].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(function(t){t.series=[]}),this.series.forEach(function(t){t.bindAxes(),t.isDirtyData=!0}),n(e.redraw,!0)&&this.redraw(e.animation),i}}if(e.pushUnique(h,l)){var M=l.prototype;M.fillSetter=v,M.strokeSetter=x}e.pushUnique(h,C)&&(r(C,"afterGetAllItems",c),r(C,"afterColorizeItem",d),r(C,"afterUpdate",u)),e.pushUnique(h,b)&&(s(b.prototype,{optionalAxis:"colorAxis",translateColors:g}),s(b.prototype.pointClass.prototype,{setVisible:m}),r(b,"afterTranslate",f,{order:1}),r(b,"bindAxes",y))},t.pointSetVisible=m}(o||(o={})),o}),o(e,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineColor:"#ffffff",gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{distance:8,overflow:"justify",rotation:0},minColor:"#e6e9ff",maxColor:"#0022ff",tickLength:5,showInLegend:!0}}),o(e,"Core/Axis/Color/ColorAxisLike.js",[e["Core/Color/Color.js"],e["Core/Utilities.js"]],function(t,e){var o,i,r=t.parse,s=e.merge;return(o=i||(i={})).initDataClasses=function(t){var e,o,i,a=this.chart,n=this.legendItem=this.legendItem||{},l=this.options,h=t.dataClasses||[],p=a.options.chart.colorCount,c=0;this.dataClasses=o=[],n.labels=[];for(var d=0,u=h.length;d=i)&&(void 0===r||t<=r)){s=a.color,e&&(e.dataClass=n,e.colorIndex=a.colorIndex);break}}else{for(o=this.normalizedValue(t),n=h.length;n--&&!(o>h[n][0]););i=h[n]||h[n+1],o=1-((r=h[n+1]||i)[0]-o)/(r[0]-i[0]||1),s=i.color.tweenTo(r.color,o)}return s},i}),o(e,"Core/Axis/Color/ColorAxis.js",[e["Core/Axis/Axis.js"],e["Core/Axis/Color/ColorAxisComposition.js"],e["Core/Axis/Color/ColorAxisDefaults.js"],e["Core/Axis/Color/ColorAxisLike.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,o,i,r,s,a){var n,l=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(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 o(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),h=s.series,p=a.extend,c=a.fireEvent,d=a.isArray,u=a.isNumber,f=a.merge,y=a.pick,m=function(t){function i(e,o){var i=t.call(this,e,o)||this;return i.beforePadding=!1,i.chart=void 0,i.coll="colorAxis",i.dataClasses=void 0,i.options=void 0,i.stops=void 0,i.visible=!0,i.init(e,o),i}return l(i,t),i.compose=function(t,o,r,s){e.compose(i,t,o,r,s)},i.prototype.init=function(e,o){var r=e.options.legend||{},s=o.layout?"vertical"!==o.layout:"vertical"!==r.layout,a=o.visible,n=f(i.defaultColorAxisOptions,o,{showEmpty:!1,title:null,visible:r.enabled&&!1!==a});this.side=o.side||s?2:1,this.reversed=o.reversed||!s,this.opposite=!s,t.prototype.init.call(this,e,n,"colorAxis"),this.userOptions=o,d(e.userOptions.colorAxis)&&(e.userOptions.colorAxis[this.index]=o),o.dataClasses&&this.initDataClasses(o),this.initStops(),this.horiz=s,this.zoomEnabled=!1},i.prototype.hasData=function(){return!!(this.tickPositions||[]).length},i.prototype.setTickPositions=function(){if(!this.dataClasses)return t.prototype.setTickPositions.call(this)},i.prototype.setOptions=function(e){t.prototype.setOptions.call(this,e),this.options.crosshair=this.options.marker},i.prototype.setAxisSize=function(){var t,e,o,r,s=this.legendItem&&this.legendItem.symbol,a=this.chart,n=a.options.legend||{};s?(this.left=t=s.attr("x"),this.top=e=s.attr("y"),this.width=o=s.attr("width"),this.height=r=s.attr("height"),this.right=a.chartWidth-t-o,this.bottom=a.chartHeight-e-r,this.len=this.horiz?o:r,this.pos=this.horiz?t:e):this.len=(this.horiz?n.symbolWidth:n.symbolHeight)||i.defaultLegendLength},i.prototype.getOffset=function(){var e=this.legendItem&&this.legendItem.group,o=this.chart.axisOffset[this.side];if(e){this.axisParent=e,t.prototype.getOffset.call(this);var r=this.chart.legend;r.allItems.forEach(function(t){t instanceof i&&t.drawLegendSymbol(r,t)}),r.render(),this.chart.getMargins(!0),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=o}},i.prototype.setLegendColor=function(){var t=this.horiz,e=this.reversed,o=e?1:0,i=e?0:1,r=t?[o,0,i,0]:[0,i,0,o];this.legendColor={linearGradient:{x1:r[0],y1:r[1],x2:r[2],y2:r[3]},stops:this.stops}},i.prototype.drawLegendSymbol=function(t,e){var o,r=e.legendItem||{},s=t.padding,a=t.options,n=this.options.labels,l=y(a.itemDistance,10),h=this.horiz,p=y(a.symbolWidth,h?i.defaultLegendLength:12),c=y(a.symbolHeight,h?12:i.defaultLegendLength),d=y(a.labelPadding,h?16:30);this.setLegendColor(),r.symbol||(r.symbol=this.chart.renderer.symbol("roundedRect",0,t.baseline-11,p,c,{r:null!==(o=a.symbolRadius)&&void 0!==o?o:3}).attr({zIndex:1}).add(r.group)),r.labelWidth=p+s+(h?l:y(n.x,n.distance)+this.maxLabelLength),r.labelHeight=c+s+(h?d:0)},i.prototype.setState=function(t){this.series.forEach(function(e){e.setState(t)})},i.prototype.setVisible=function(){},i.prototype.getSeriesExtremes=function(){var t,e,o,i,r,s,a,n,l=this.series,p=l.length;for(this.dataMin=1/0,this.dataMax=-1/0;p--;){if(e=(s=l[p]).colorKey=y(s.options.colorKey,s.colorKey,s.pointValKey,s.zoneAxis,"y"),i=s.pointArrayMap,r=s[e+"Min"]&&s[e+"Max"],s[e+"Data"])t=s[e+"Data"];else if(i){if(t=[],o=i.indexOf(e),a=s.yData,o>=0&&a)for(n=0;nn+l&&(i=n+l+2),o.plotX=i,o.plotY=this.len-i,t.prototype.drawCrosshair.call(this,e,o),o.plotX=s,o.plotY=a,this.cross&&!this.cross.addedToColorAxis&&r.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(r.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!=typeof this.crosshair||this.cross.attr({fill:this.crosshair.color})))},i.prototype.getPlotLinePath=function(e){var o=this.left,i=e.translatedValue,r=this.top;return u(i)?this.horiz?[["M",i-4,r-6],["L",i+4,r-6],["L",i,r],["Z"]]:[["M",o,i],["L",o-6,i+6],["L",o-6,i-6],["Z"]]:t.prototype.getPlotLinePath.call(this,e)},i.prototype.update=function(e,o){var i=this.chart.legend;this.series.forEach(function(t){t.isDirtyData=!0}),(e.dataClasses&&i.allItems||this.dataClasses)&&this.destroyItems(),t.prototype.update.call(this,e,o),this.legendItem&&this.legendItem.label&&(this.setLegendColor(),i.colorizeItem(this,!0))},i.prototype.destroyItems=function(){var t=this.chart,e=this.legendItem||{};if(e.label)t.legend.destroyItem(this);else if(e.labels)for(var o=0,i=e.labels;o "),void 0!==d&&(t+=f(d,a)+n),void 0!==d&&void 0!==u&&(t+=" - "),void 0!==u&&(t+=f(u,a)+n),i.push(p({chart:o,name:t,options:{},drawLegendSymbol:r.rectangle,visible:!0,isDataClass:!0,setState:function(t){for(var e=0,o=l(h);e"},states:{hover:{halo:!1,brightness:.2}},legendSymbol:"rectangle"}}),o(e,"Series/InterpolationUtilities.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e){var o=t.doc,i=e.defined,r=e.pick;return{colorFromPoint:function(t,e){var o=e.series.colorAxis;if(o){var s=o.toColor(t||0,e).split(")")[0].split("(")[1].split(",").map(function(t){return r(parseFloat(t),parseInt(t,10))});return s[3]=255*r(s[3],1),i(t)&&e.visible||(s[3]=0),s}return[0,0,0,0]},getContext:function(t){var e=t.canvas,i=t.context;return e&&i?(i.clearRect(0,0,e.width,e.height),i):(t.canvas=o.createElement("canvas"),t.context=t.canvas.getContext("2d",{willReadFrequently:!0})||void 0,t.context)}}}),o(e,"Series/Heatmap/HeatmapSeries.js",[e["Core/Color/Color.js"],e["Series/ColorMapComposition.js"],e["Series/Heatmap/HeatmapPoint.js"],e["Series/Heatmap/HeatmapSeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"],e["Series/InterpolationUtilities.js"]],function(t,e,o,i,r,s,a,n){var l,h=this&&this.__extends||(l=function(t,e){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(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 o(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),p=this&&this.__assign||function(){return(p=Object.assign||function(t){for(var e,o=1,i=arguments.length;o