/** * Highcharts JS v11.2.0 (2023-10-30) * * Boost module * * (c) 2010-2021 Highsoft AS * Author: Torstein Honsi * * License: www.highcharts.com/license * * */!function(e){"object"==typeof module&&module.exports?(e.default=e,module.exports=e):"function"==typeof define&&define.amd?define("highcharts/modules/boost",["highcharts"],function(t){return e(t),e.Highcharts=t,e}):e("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(e){"use strict";var t=e?e._modules:{};function i(e,t,i,o){e.hasOwnProperty(t)||(e[t]=o.apply(null,i),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:t,module:e[t]}})))}i(t,"Extensions/Boost/Boostables.js",[],function(){return["area","areaspline","arearange","column","columnrange","bar","line","scatter","heatmap","bubble","treemap"]}),i(t,"Extensions/Boost/BoostableMap.js",[t["Extensions/Boost/Boostables.js"]],function(e){var t={};return e.forEach(function(e){t[e]=!0}),t}),i(t,"Extensions/Boost/BoostChart.js",[t["Extensions/Boost/BoostableMap.js"],t["Core/Utilities.js"]],function(e,t){var i=t.addEvent,o=t.pick,r=[];function s(t){var i=t.series,r=t.boost=t.boost||{},s=t.options.boost||{},n=o(s.seriesThreshold,50);if(i.length>=n)return!0;if(1===i.length)return!1;var a=s.allowForce;if(void 0===a){a=!0;for(var l=0,h=t.xAxis;lo(f.dataMin,-1/0)||o(f.max,1/0)0)return i=e.length,!0}),i}(g.processedXData,u.data,g.points)>=(u.boostThreshold||Number.MAX_VALUE)&&++c)}return r.forceChartBoost=a&&(d===i.length&&c===d||c>5),r.forceChartBoost}function n(e){i(e,"predraw",function(){e.boost=e.boost||{},e.boost.forceChartBoost=void 0,e.boosted=!1,e.boost.clear&&e.boost.clear(),e.boost.canvas&&e.boost.wgl&&s(e)&&e.boost.wgl.allocateBuffer(e),e.boost.markerGroup&&e.xAxis&&e.xAxis.length>0&&e.yAxis&&e.yAxis.length>0&&e.boost.markerGroup.translate(e.xAxis[0].pos,e.yAxis[0].pos)}),i(e,"render",function(){e.boost&&e.boost.wgl&&s(e)&&e.boost.wgl.render(e)});var t=-1,o=-1;i(e.pointer,"afterGetHoverData",function(){var i=e.hoverSeries;if(e.boost=e.boost||{},e.boost.markerGroup&&i){var r=e.inverted?i.yAxis:i.xAxis,s=e.inverted?i.xAxis:i.yAxis;(r&&r.pos!==t||s&&s.pos!==o)&&(e.boost.markerGroup.translate(r.pos,s.pos),t=r.pos,o=s.pos)}})}return{compose:function(e,i){return i&&t.pushUnique(r,e)&&e.prototype.callbacks.push(n),e},getBoostClipRect:function(e,t){var i={x:e.plotLeft,y:e.plotTop,width:e.plotWidth,height:e.navigator?e.navigator.top+e.navigator.height-e.plotTop:e.plotHeight};if(t.getClipBox){var o=t.xAxis,r=t.yAxis;if(i=t.getClipBox(),e.inverted){var s=i.width;i.width=i.height,i.height=s,i.x=r.pos,i.y=o.pos}else i.x=o.pos,i.y=r.pos}if(t===e){var n=e.inverted?e.xAxis:e.yAxis;n.length<=1&&(i.y=Math.min(n[0].pos,i.y),i.height=n[0].pos-e.plotTop+n[0].len)}return i},isChartSeriesBoosting:s}}),i(t,"Extensions/Boost/WGLDrawMode.js",[],function(){return{area:"LINES",arearange:"LINES",areaspline:"LINES",column:"LINES",columnrange:"LINES",bar:"LINES",line:"LINE_STRIP",scatter:"POINTS",heatmap:"TRIANGLES",treemap:"TRIANGLES",bubble:"POINTS"}}),i(t,"Extensions/Boost/WGLShader.js",[t["Core/Utilities.js"]],function(e){var t=e.clamp,i=e.error,o=e.pick;return function(){function e(e){if(this.errors=[],this.uLocations={},this.gl=e,e&&!this.createShader())return}return e.prototype.bind=function(){this.gl&&this.shaderProgram&&this.gl.useProgram(this.shaderProgram)},e.prototype.createShader=function(){var e=this,t=this.stringToProgram("#version 100\n#define LN10 2.302585092994046\nprecision highp float;\nattribute vec4 aVertexPosition;\nattribute vec4 aColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform mat4 uPMatrix;\nuniform float pSize;\nuniform float translatedThreshold;\nuniform bool hasThreshold;\nuniform bool skipTranslation;\nuniform float xAxisTrans;\nuniform float xAxisMin;\nuniform float xAxisMinPad;\nuniform float xAxisPointRange;\nuniform float xAxisLen;\nuniform bool xAxisPostTranslate;\nuniform float xAxisOrdinalSlope;\nuniform float xAxisOrdinalOffset;\nuniform float xAxisPos;\nuniform bool xAxisCVSCoord;\nuniform bool xAxisIsLog;\nuniform bool xAxisReversed;\nuniform float yAxisTrans;\nuniform float yAxisMin;\nuniform float yAxisMinPad;\nuniform float yAxisPointRange;\nuniform float yAxisLen;\nuniform bool yAxisPostTranslate;\nuniform float yAxisOrdinalSlope;\nuniform float yAxisOrdinalOffset;\nuniform float yAxisPos;\nuniform bool yAxisCVSCoord;\nuniform bool yAxisIsLog;\nuniform bool yAxisReversed;\nuniform bool isBubble;\nuniform bool bubbleSizeByArea;\nuniform float bubbleZMin;\nuniform float bubbleZMax;\nuniform float bubbleZThreshold;\nuniform float bubbleMinSize;\nuniform float bubbleMaxSize;\nuniform bool bubbleSizeAbs;\nuniform bool isInverted;\nfloat bubbleRadius(){\nfloat value = aVertexPosition.w;\nfloat zMax = bubbleZMax;\nfloat zMin = bubbleZMin;\nfloat radius = 0.0;\nfloat pos = 0.0;\nfloat zRange = zMax - zMin;\nif (bubbleSizeAbs){\nvalue = value - bubbleZThreshold;\nzMax = max(zMax - bubbleZThreshold, zMin - bubbleZThreshold);\nzMin = 0.0;\n}\nif (value < zMin){\nradius = bubbleZMin / 2.0 - 1.0;\n} else {\npos = zRange > 0.0 ? (value - zMin) / zRange : 0.5;\nif (bubbleSizeByArea && pos > 0.0){\npos = sqrt(pos);\n}\nradius = ceil(bubbleMinSize + pos * (bubbleMaxSize - bubbleMinSize)) / 2.0;\n}\nreturn radius * 2.0;\n}\nfloat translate(float val,\nfloat pointPlacement,\nfloat localA,\nfloat localMin,\nfloat minPixelPadding,\nfloat pointRange,\nfloat len,\nbool cvsCoord,\nbool isLog,\nbool reversed\n){\nfloat sign = 1.0;\nfloat cvsOffset = 0.0;\nif (cvsCoord) {\nsign *= -1.0;\ncvsOffset = len;\n}\nif (isLog) {\nval = log(val) / LN10;\n}\nif (reversed) {\nsign *= -1.0;\ncvsOffset -= sign * len;\n}\nreturn sign * (val - localMin) * localA + cvsOffset + \n(sign * minPixelPadding);\n}\nfloat xToPixels(float value) {\nif (skipTranslation){\nreturn value;// + xAxisPos;\n}\nreturn translate(value, 0.0, xAxisTrans, xAxisMin, xAxisMinPad, xAxisPointRange, xAxisLen, xAxisCVSCoord, xAxisIsLog, xAxisReversed);// + xAxisPos;\n}\nfloat yToPixels(float value, float checkTreshold) {\nfloat v;\nif (skipTranslation){\nv = value;// + yAxisPos;\n} else {\nv = translate(value, 0.0, yAxisTrans, yAxisMin, yAxisMinPad, yAxisPointRange, yAxisLen, yAxisCVSCoord, yAxisIsLog, yAxisReversed);// + yAxisPos;\nif (v > yAxisLen) {\nv = yAxisLen;\n}\n}\nif (checkTreshold > 0.0 && hasThreshold) {\nv = min(v, translatedThreshold);\n}\nreturn v;\n}\nvoid main(void) {\nif (isBubble){\ngl_PointSize = bubbleRadius();\n} else {\ngl_PointSize = pSize;\n}\nvColor = aColor;\nif (skipTranslation && isInverted) {\ngl_Position = uPMatrix * vec4(aVertexPosition.y + yAxisPos, aVertexPosition.x + xAxisPos, 0.0, 1.0);\n} else if (isInverted) {\ngl_Position = uPMatrix * vec4(yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, xToPixels(aVertexPosition.x) + xAxisPos, 0.0, 1.0);\n} else {\ngl_Position = uPMatrix * vec4(xToPixels(aVertexPosition.x) + xAxisPos, yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, 0.0, 1.0);\n}\n}","vertex"),i=this.stringToProgram("precision highp float;\nuniform vec4 fillColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform sampler2D uSampler;\nuniform bool isCircle;\nuniform bool hasColor;\nvoid main(void) {\nvec4 col = fillColor;\nvec4 tcol = texture2D(uSampler, gl_PointCoord.st);\nif (hasColor) {\ncol = vColor;\n}\nif (isCircle) {\ncol *= tcol;\nif (tcol.r < 0.0) {\ndiscard;\n} else {\ngl_FragColor = col;\n}\n} else {\ngl_FragColor = col;\n}\n}","fragment"),o=function(t){return e.gl.getUniformLocation(e.shaderProgram,t)};return t&&i?(this.shaderProgram=this.gl.createProgram(),this.gl.attachShader(this.shaderProgram,t),this.gl.attachShader(this.shaderProgram,i),this.gl.linkProgram(this.shaderProgram),this.gl.getProgramParameter(this.shaderProgram,this.gl.LINK_STATUS))?(this.gl.useProgram(this.shaderProgram),this.gl.bindAttribLocation(this.shaderProgram,0,"aVertexPosition"),this.pUniform=o("uPMatrix"),this.psUniform=o("pSize"),this.fcUniform=o("fillColor"),this.isBubbleUniform=o("isBubble"),this.bubbleSizeAbsUniform=o("bubbleSizeAbs"),this.bubbleSizeAreaUniform=o("bubbleSizeByArea"),this.uSamplerUniform=o("uSampler"),this.skipTranslationUniform=o("skipTranslation"),this.isCircleUniform=o("isCircle"),this.isInverted=o("isInverted"),!0):(this.errors.push(this.gl.getProgramInfoLog(this.shaderProgram)),this.handleErrors(),this.shaderProgram=!1,!1):(this.shaderProgram=!1,this.handleErrors(),!1)},e.prototype.handleErrors=function(){this.errors.length&&i("[highcharts boost] shader error - "+this.errors.join("\n"))},e.prototype.stringToProgram=function(e,t){var i=this.gl.createShader("vertex"===t?this.gl.VERTEX_SHADER:this.gl.FRAGMENT_SHADER);return(this.gl.shaderSource(i,e),this.gl.compileShader(i),this.gl.getShaderParameter(i,this.gl.COMPILE_STATUS))?i:(this.errors.push("when compiling "+t+" shader:\n"+this.gl.getShaderInfoLog(i)),!1)},e.prototype.destroy=function(){this.gl&&this.shaderProgram&&(this.gl.deleteProgram(this.shaderProgram),this.shaderProgram=!1)},e.prototype.fillColorUniform=function(){return this.fcUniform},e.prototype.getProgram=function(){return this.shaderProgram},e.prototype.pointSizeUniform=function(){return this.psUniform},e.prototype.perspectiveUniform=function(){return this.pUniform},e.prototype.reset=function(){this.gl&&this.shaderProgram&&(this.gl.uniform1i(this.isBubbleUniform,0),this.gl.uniform1i(this.isCircleUniform,0))},e.prototype.setBubbleUniforms=function(e,i,r,s){void 0===s&&(s=1);var n=e.options,a=Number.MAX_VALUE,l=-Number.MAX_VALUE;if(this.gl&&this.shaderProgram&&e.is("bubble")){var h=e.getPxExtremes();a=o(n.zMin,t(i,!1===n.displayNegative?n.zThreshold:-Number.MAX_VALUE,a)),l=o(n.zMax,Math.max(l,r)),this.gl.uniform1i(this.isBubbleUniform,1),this.gl.uniform1i(this.isCircleUniform,1),this.gl.uniform1i(this.bubbleSizeAreaUniform,"width"!==e.options.sizeBy),this.gl.uniform1i(this.bubbleSizeAbsUniform,e.options.sizeByAbsoluteValue),this.setUniform("bubbleMinSize",h.minPxSize*s),this.setUniform("bubbleMaxSize",h.maxPxSize*s),this.setUniform("bubbleZMin",a),this.setUniform("bubbleZMax",l),this.setUniform("bubbleZThreshold",e.options.zThreshold)}},e.prototype.setColor=function(e){this.gl&&this.shaderProgram&&this.gl.uniform4f(this.fcUniform,e[0]/255,e[1]/255,e[2]/255,e[3])},e.prototype.setDrawAsCircle=function(e){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.isCircleUniform,e?1:0)},e.prototype.setInverted=function(e){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.isInverted,e)},e.prototype.setPMatrix=function(e){this.gl&&this.shaderProgram&&this.gl.uniformMatrix4fv(this.pUniform,!1,e)},e.prototype.setPointSize=function(e){this.gl&&this.shaderProgram&&this.gl.uniform1f(this.psUniform,e)},e.prototype.setSkipTranslation=function(e){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.skipTranslationUniform,!0===e?1:0)},e.prototype.setTexture=function(e){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.uSamplerUniform,e)},e.prototype.setUniform=function(e,t){if(this.gl&&this.shaderProgram){var i=this.uLocations[e]=this.uLocations[e]||this.gl.getUniformLocation(this.shaderProgram,e);this.gl.uniform1f(i,t)}},e}()}),i(t,"Extensions/Boost/WGLVertexBuffer.js",[],function(){return function(){function e(e,t,i){this.buffer=!1,this.iterator=0,this.preAllocated=!1,this.vertAttribute=!1,this.components=i||2,this.dataComponents=i,this.gl=e,this.shader=t}return e.prototype.allocate=function(e){this.iterator=-1,this.preAllocated=new Float32Array(4*e)},e.prototype.bind=function(){if(!this.buffer)return!1;this.gl.vertexAttribPointer(this.vertAttribute,this.components,this.gl.FLOAT,!1,0,0)},e.prototype.build=function(e,t,i){var o;return(this.data=e||[],this.data&&0!==this.data.length||this.preAllocated)?(this.components=i||this.components,this.buffer&&this.gl.deleteBuffer(this.buffer),this.preAllocated||(o=new Float32Array(this.data)),this.buffer=this.gl.createBuffer(),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.buffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,this.preAllocated||o,this.gl.STATIC_DRAW),this.vertAttribute=this.gl.getAttribLocation(this.shader.getProgram(),t),this.gl.enableVertexAttribArray(this.vertAttribute),o=!1,!0):(this.destroy(),!1)},e.prototype.destroy=function(){this.buffer&&(this.gl.deleteBuffer(this.buffer),this.buffer=!1,this.vertAttribute=!1),this.iterator=0,this.components=this.dataComponents||2,this.data=[]},e.prototype.push=function(e,t,i,o){this.preAllocated&&(this.preAllocated[++this.iterator]=e,this.preAllocated[++this.iterator]=t,this.preAllocated[++this.iterator]=i,this.preAllocated[++this.iterator]=o)},e.prototype.render=function(e,t,i){var o=this.preAllocated?this.preAllocated.length:this.data.length;return!!this.buffer&&!!o&&((!e||e>o||e<0)&&(e=0),(!t||t>o)&&(t=o),!(e>=t)&&(i=i||"POINTS",this.gl.drawArrays(this.gl[i],e/this.components,(t-e)/this.components),!0))},e}()}),i(t,"Extensions/Boost/WGLRenderer.js",[t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Utilities.js"],t["Extensions/Boost/WGLDrawMode.js"],t["Extensions/Boost/WGLShader.js"],t["Extensions/Boost/WGLVertexBuffer.js"]],function(e,t,i,o,r,s){var n=e.parse,a=t.doc,l=t.win,h=i.isNumber,f=i.isObject,u=i.merge,d=i.objectEach,c=i.pick,p={column:!0,columnrange:!0,bar:!0,area:!0,areaspline:!0,arearange:!0},g={scatter:!0,bubble:!0},b=["webgl","experimental-webgl","moz-webgl","webkit-3d"];return function(){function i(e){this.data=[],this.height=0,this.isInited=!1,this.markerData=[],this.series=[],this.textureHandles={},this.width=0,this.postRenderCallback=e,this.settings={pointSize:1,lineWidth:1,fillColor:"#AA00AA",useAlpha:!0,usePreallocated:!1,useGPUTranslations:!1,debug:{timeRendering:!1,timeSeriesProcessing:!1,timeSetup:!1,timeBufferCopy:!1,timeKDTree:!1,showSkipSummary:!1}}}return i.orthoMatrix=function(e,t){return[2/e,0,0,0,0,-(2/t),0,0,0,0,-2,0,-1,1,-1,1]},i.seriesPointCount=function(e){var t,i,o;return e.boosted?(t=!!e.options.stacking,i=e.xData||e.options.xData||e.processedXData,o=(t?e.data:i||e.options.data).length,"treemap"===e.type?o*=12:"heatmap"===e.type?o*=6:p[e.type]&&(o*=2),o):0},i.prototype.getPixelRatio=function(){return this.settings.pixelRatio||l.devicePixelRatio||1},i.prototype.setOptions=function(e){"pixelRatio"in e||(e.pixelRatio=1),u(!0,this.settings,e)},i.prototype.allocateBuffer=function(e){var t=this.vbuffer,o=0;this.settings.usePreallocated&&(e.series.forEach(function(e){e.boosted&&(o+=i.seriesPointCount(e))}),t&&t.allocate(o))},i.prototype.allocateBufferForSingleSeries=function(e){var t=this.vbuffer,o=0;this.settings.usePreallocated&&(e.boosted&&(o=i.seriesPointCount(e)),t&&t.allocate(o))},i.prototype.clear=function(){var e=this.gl;e&&e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT)},i.prototype.pushSeriesData=function(e,t){var i,o,r,s,a,l,h,u,d=this,c=this.data,g=this.settings,b=this.vbuffer,m=e.pointArrayMap&&"low,high"===e.pointArrayMap.join(","),x=e.chart,v=e.options,A=e.sorted,y=e.xAxis,P=e.yAxis,T=!!v.stacking,E=v.data,S=e.xAxis.getExtremes(),C=S.min,k=S.max,M=e.yAxis.getExtremes(),U=M.min,w=M.max,R=e.xData||v.xData||e.processedXData,B=e.yData||v.yData||e.processedYData,L=e.zData||v.zData||e.processedZData,D=!R||0===R.length,z=v.connectNulls,_=e.points||!1,I=T?e.data:R||E,N={x:Number.MAX_VALUE,y:0},G={x:-Number.MAX_VALUE,y:0},O=void 0===x.index,j=p[e.type],V=v.zoneAxis||"y",X=v.zones||!1,F=v.threshold,H=this.getPixelRatio(),W=e.chart.plotWidth,q=!1,Y=!1,Z=0,K=!1,Q=-1,J=!1,$=!1,ee=!1,et=!1,ei=!1,eo=!1,er=!0,es=!0,en=!1,ea=!1,el=0;if(!v.boostData||!(v.boostData.length>0)){v.gapSize&&(ea="value"!==v.gapUnit?v.gapSize*e.closestPointRange:v.gapSize),X&&(u=[],X.forEach(function(e,t){if(e.color){var i=n(e.color).rgba;i[0]/=255,i[1]/=255,i[2]/=255,u[t]=i,en||void 0!==e.value||(en=i)}}),en||(en=n(e.pointAttribs&&e.pointAttribs().fill||e.color).rgba,en[0]/=255,en[1]/=255,en[2]/=255)),x.inverted&&(W=e.chart.plotHeight),e.closestPointRangePx=Number.MAX_VALUE;var eh=function(e){e&&(t.colorData.push(e[0]),t.colorData.push(e[1]),t.colorData.push(e[2]),t.colorData.push(e[3]))},ef=function(e,i,o,r,s){void 0===r&&(r=1),eh(s),1!==H&&(!g.useGPUTranslations||t.skipTranslation)&&(e*=H,i*=H,r*=H),g.usePreallocated&&b?(b.push(e,i,o?1:0,r),el+=4):(c.push(e),c.push(i),c.push(o?H:0),c.push(r))},eu=function(){t.segments.length&&(t.segments[t.segments.length-1].to=c.length||el)},ed=function(){t.segments.length&&t.segments[t.segments.length-1].from===(c.length||el)||(eu(),t.segments.push({from:c.length||el}))},ec=function(e,t,i,o,r){eh(r),ef(e+i,t),eh(r),ef(e,t),eh(r),ef(e,t+o),eh(r),ef(e,t+o),eh(r),ef(e+i,t+o),eh(r),ef(e+i,t)};if(ed(),_&&_.length>0){t.skipTranslation=!0,t.drawMode="TRIANGLES",_[0].node&&_[0].node.levelDynamic&&_.sort(function(e,t){if(e.node){if(e.node.levelDynamic>t.node.levelDynamic)return 1;if(e.node.levelDynamic=3&&(l=a[2],a[2]>t.zMax&&(t.zMax=a[2]),a[2]t.zMax&&(t.zMax=L[Q]),L[Q]=C&&$<=k&&(ee=!0),J&&J>=C&&J<=k&&(et=!0),m?(D&&(s=a.slice(1,3)),h=s[0],s=s[1]):T&&(r=a.x,h=(s=a.stackY)-a.y),null!=U&&null!=w&&(er=s>=U&&s<=w),r>k&&G.xC&&(N.x=r,N.y=s),null===s&&z)?"continue":null!==s&&(er||ee||et)?(A&&($>=C||r>=C)&&(J<=k||r<=k)&&(eo=!0),eo||ee||et)?(ea&&r-J>ea&&ed(),X&&(X.some(function(e,t){var i=X[t-1];return"x"===V?void 0!==e.value&&r<=e.value&&(u[t]&&(!i||r>=i.value)&&(o=u[t]),!0):void 0!==e.value&&s<=e.value&&(u[t]&&(!i||s>=i.value)&&(o=u[t]),!0)}),ei=o||en||ei),!g.useGPUTranslations&&(t.skipTranslation=!0,r=y.toPixels(r,!0),s=P.toPixels(s,!0),r>W&&"POINTS"===t.drawMode))?"continue":(t.hasMarkers&&eo&&!1!==q&&(e.closestPointRangePx=Math.min(e.closestPointRangePx,Math.abs(r-q))),!g.useGPUTranslations&&!g.usePreallocated&&q&&1>Math.abs(r-q)&&Y&&1>Math.abs(s-Y))?(g.debug.showSkipSummary&&++Z,"continue"):void(j&&(i=h,(!1===h||void 0===h)&&(i=s<0?s:0),m||T||(i=Math.max(null===F?U:F,U)),g.useGPUTranslations||(i=P.toPixels(i,!0)),ef(r,i,0,0,ei)),v.step&&!es&&ef(r,Y,0,2,ei),ef(r,s,0,"bubble"===e.type?l||1:2,ei),q=r,Y=s,K=!0,es=!1):"continue":(ed(),"continue"):(ed(),"continue")}(););g.debug.showSkipSummary&&console.log("skipped points:",Z);var ep=function(e,i){if(g.useGPUTranslations||(t.skipTranslation=!0,e.x=y.toPixels(e.x,!0),e.y=P.toPixels(e.y,!0)),i){d.data=[e.x,e.y,0,2].concat(d.data);return}ef(e.x,e.y,0,2)};!K&&!1!==z&&"line_strip"===e.drawMode&&(N.x-Number.MAX_VALUE&&ep(G)),eu()}},i.prototype.pushSeries=function(e){var t=this.markerData,i=this.series,r=this.settings;i.length>0&&i[i.length-1].hasMarkers&&(i[i.length-1].markerTo=t.length),r.debug.timeSeriesProcessing&&console.time("building "+e.type+" series");var s={segments:[],markerFrom:t.length,colorData:[],series:e,zMin:Number.MAX_VALUE,zMax:-Number.MAX_VALUE,hasMarkers:!!e.options.marker&&!1!==e.options.marker.enabled,showMarkers:!0,drawMode:o[e.type]||"LINE_STRIP"};e.index>=i.length?i.push(s):i[e.index]=s,this.pushSeriesData(e,s),r.debug.timeSeriesProcessing&&console.timeEnd("building "+e.type+" series")},i.prototype.flush=function(){var e=this.vbuffer;this.data=[],this.markerData=[],this.series=[],e&&e.destroy()},i.prototype.setXAxis=function(e){var t=this.shader;if(t){var i=this.getPixelRatio();t.setUniform("xAxisTrans",e.transA*i),t.setUniform("xAxisMin",e.min),t.setUniform("xAxisMinPad",e.minPixelPadding*i),t.setUniform("xAxisPointRange",e.pointRange),t.setUniform("xAxisLen",e.len*i),t.setUniform("xAxisPos",e.pos*i),t.setUniform("xAxisCVSCoord",!e.horiz),t.setUniform("xAxisIsLog",!!e.logarithmic),t.setUniform("xAxisReversed",!!e.reversed)}},i.prototype.setYAxis=function(e){var t=this.shader;if(t){var i=this.getPixelRatio();t.setUniform("yAxisTrans",e.transA*i),t.setUniform("yAxisMin",e.min),t.setUniform("yAxisMinPad",e.minPixelPadding*i),t.setUniform("yAxisPointRange",e.pointRange),t.setUniform("yAxisLen",e.len*i),t.setUniform("yAxisPos",e.pos*i),t.setUniform("yAxisCVSCoord",!e.horiz),t.setUniform("yAxisIsLog",!!e.logarithmic),t.setUniform("yAxisReversed",!!e.reversed)}},i.prototype.setThreshold=function(e,t){var i=this.shader;i&&(i.setUniform("hasThreshold",e),i.setUniform("translatedThreshold",t))},i.prototype.renderChart=function(o){var r=this,a=this.gl,l=this.settings,f=this.shader,u=this.vbuffer,d=this.getPixelRatio();if(!o)return!1;this.width=o.chartWidth*d,this.height=o.chartHeight*d;var p=this.height,b=this.width;if(!a||!f||!b||!p)return!1;l.debug.timeRendering&&console.time("gl rendering"),a.canvas.width=b,a.canvas.height=p,f.bind(),a.viewport(0,0,b,p),f.setPMatrix(i.orthoMatrix(b,p)),l.lineWidth>1&&!t.isMS&&a.lineWidth(l.lineWidth),u&&(u.build(this.data,"aVertexPosition",4),u.bind()),f.setInverted(o.inverted),this.series.forEach(function(t,i){var p,b,m,x=t.series.options,v=x.marker,A=void 0!==x.lineWidth?x.lineWidth:1,y=x.threshold,P=h(y),T=t.series.yAxis.getThreshold(y),E=c(x.marker?x.marker.enabled:null,!!t.series.xAxis.isRadial||null,t.series.closestPointRangePx>2*((x.marker?x.marker.radius:10)||10)),S=r.textureHandles[v&&v.symbol||t.series.symbol]||r.textureHandles.circle,C=[];if(0!==t.segments.length&&t.segments[0].from!==t.segments[0].to&&(S.isReady&&(a.bindTexture(a.TEXTURE_2D,S.handle),f.setTexture(S.handle)),o.styledMode?m=t.series.markerGroup&&t.series.markerGroup.getStyle("fill"):(m="POINTS"===t.drawMode&&t.series.pointAttribs&&t.series.pointAttribs().fill||t.series.color,x.colorByPoint&&(m=t.series.chart.options.colors[i])),t.series.fillOpacity&&x.fillOpacity&&(m=new e(m).setOpacity(c(x.fillOpacity,1)).get()),C=n(m).rgba,l.useAlpha||(C[3]=1),"LINES"===t.drawMode&&l.useAlpha&&C[3]<1&&(C[3]/=10),"add"===x.boostBlending?(a.blendFunc(a.SRC_ALPHA,a.ONE),a.blendEquation(a.FUNC_ADD)):"mult"===x.boostBlending||"multiply"===x.boostBlending?a.blendFunc(a.DST_COLOR,a.ZERO):"darken"===x.boostBlending?(a.blendFunc(a.ONE,a.ONE),a.blendEquation(a.FUNC_MIN)):a.blendFuncSeparate(a.SRC_ALPHA,a.ONE_MINUS_SRC_ALPHA,a.ONE,a.ONE_MINUS_SRC_ALPHA),f.reset(),t.colorData.length>0?(f.setUniform("hasColor",1),(b=new s(a,f)).build(Array(t.segments[0].from).concat(t.colorData),"aColor",4),b.bind()):(f.setUniform("hasColor",0),a.disableVertexAttribArray(a.getAttribLocation(f.getProgram(),"aColor"))),f.setColor(C),r.setXAxis(t.series.xAxis),r.setYAxis(t.series.yAxis),r.setThreshold(P,T),"POINTS"===t.drawMode&&f.setPointSize(2*c(x.marker&&x.marker.radius,.5)*d),f.setSkipTranslation(t.skipTranslation),"bubble"===t.series.type&&f.setBubbleUniforms(t.series,t.zMin,t.zMax,d),f.setDrawAsCircle(g[t.series.type]||!1),u)){if(A>0||"LINE_STRIP"!==t.drawMode)for(p=0;p(i.boostThreshold||Number.MAX_VALUE)&&A(s.min)&&A(s.max)&&(!t||A(r.min)&&A(r.max))&&(!n||A(n.min)&&A(n.max))}function R(){var e=this,t=e.chart;t.boost&&t.boost.markerGroup===e.markerGroup&&(e.markerGroup=null),t.hoverPoints&&(t.hoverPoints=t.hoverPoints.filter(function(t){return t.series===e})),t.hoverPoint&&t.hoverPoint.series===e&&(t.hoverPoint=null)}function B(){var e=this.boost;e&&e.canvas&&e.target&&(e.wgl&&e.wgl.clear(),e.clear&&e.clear())}function L(e){var t=e.boost;t&&t.canvas&&t.target&&t.wgl&&!f(e.chart)&&t.wgl.render(e.chart)}function D(e,t){var i=e.options,o=e.xAxis,r=e.pointClass;if(t instanceof r)return t;var s=e.xData||i.xData||e.processedXData||!1,n=new r().init(e,e.options.data[t.i],s?s[t.i]:void 0);return n.category=y(o.categories?o.categories[n.x]:n.x,n.x),n.dist=t.dist,n.distX=t.distX,n.plotX=t.plotX,n.plotY=t.plotY,n.index=t.i,n.percentage=t.percentage,n.isInside=e.isPointInside(n),n}function z(){var e,t,i,o,r,s=this,n=this.options||{},l=this.chart,h=this.xAxis,u=this.yAxis,d=n.xData||this.processedXData,p=n.yData||this.processedYData,g=n.data,b=h.getExtremes(),m=b.min,v=b.max,A=u.getExtremes(),y=A.min,P=A.max,E={},C=!!this.sampling,w=n.enableMouseTracking,R=n.threshold,B=this.pointArrayMap&&"low,high"===this.pointArrayMap.join(","),D=!!n.stacking,z=this.cropStart||0,_=this.requireSorting,I=!d,N="x"===n.findNearestPointBy,G=this.xData||this.options.xData||this.processedXData||!1,O=!1,j=u.getThreshold(R);if(O=k(l,this),l.boosted=!0,this.visible){(this.points||this.graph)&&M(this),f(l)?(this.markerGroup&&this.markerGroup!==l.boost.markerGroup&&this.markerGroup.destroy(),this.markerGroup=l.boost.markerGroup,this.boost&&this.boost.target&&(this.renderTarget=this.boost.target=this.boost.target.destroy())):(l.boost&&this.markerGroup===l.boost.markerGroup&&(this.markerGroup=void 0),this.markerGroup=this.plotGroup("markerGroup","markers",!0,1,l.seriesGroup));var V=this.points=[],X=function(e,t,i,o){var r=!!G&&G[z+i],s=function(e){l.inverted&&(e=h.len-e,t=u.len-t),V.push({destroy:c,x:r,clientX:e,plotX:e,plotY:t,i:z+i,percentage:o})};e=Math.ceil(e),a=N?e:e+","+t,w&&(E[a]?r===G[G.length-1]&&(V.length--,s(e)):(E[a]=!0,s(e)))};this.buildKDTree=c,O&&(S(O,this),O.pushSeries(this),L(this));var F=O.settings;l.renderer.forExport||(F.debug.timeKDTree&&console.time("kd tree building"),U(D?this.data:d||g,function(s,n){var a,f,d,c,g,b=void 0===l.index,x=!1,A=!0;return!T(s)||(!b&&(I?(a=s[0],f=s[1]):(a=s,f=p[n]),B?(I&&(f=s.slice(1,3)),x=f[0],f=f[1]):D&&(a=s.x,x=(f=s.stackY)-s.y,g=s.percentage),_||(A=(f||0)>=y&&f<=P),null!==f&&a>=m&&a<=v&&A&&(d=h.toPixels(a,!0),C?((void 0===o||d===e)&&(B||(x=f),(void 0===r||f>i)&&(i=f,r=n),(void 0===o||x=(i.options.boostThreshold||Number.MAX_VALUE))};if(C(this.chart)&&e[this.type]){if(r(o)&&"heatmap"!==this.type&&"treemap"!==this.type&&!this.options.stacking&&w(this,!0)||(t.apply(this,[].slice.call(arguments,1)),o=this.processedXData),this.boosted=r(o),this.boosted){var s,n,a,l,h=void 0;this.options.data&&this.options.data.length&&!A(h=this.getFirstValidPoint(this.options.data))&&!v(h)&&b(12,!1,this.chart),a=this,a.boost=a.boost||{getPoint:function(e){return D(a,e)}},l=a.boost.altered=[],["allowDG","directTouch","stickyTracking"].forEach(function(e){l.push({prop:e,val:a[e],own:Object.hasOwnProperty.call(a,e)})}),a.allowDG=!1,a.directTouch=!1,a.stickyTracking=!0,a.finishedAnimating=!0,a.labelBySeries&&(a.labelBySeries=a.labelBySeries.destroy())}else s=this,(n=s.boost)&&((n.altered||[]).forEach(function(e){e.own?s[e.prop]=e.val:delete s[e.prop]}),n.clear&&n.clear())}else t.apply(this,[].slice.call(arguments,1))}function G(e){var t=e.apply(this,[].slice.call(arguments,1));return this.boost&&t?this.boost.getPoint(t):t}return{compose:function(i,o,r){if(s.pushUnique(E,i)){g(i,"destroy",R),g(i,"hide",B);var n=i.prototype;r&&(n.renderCanvas=z),P(n,"getExtremes",I),P(n,"processData",N),P(n,"searchPoint",G),["translate","generatePoints","drawTracker","drawPoints","render"].forEach(function(t){return function(t,i,o){function r(t){var i=this.options.stacking&&("translate"===o||"generatePoints"===o);this.boosted&&!i&&C(this.chart)&&"heatmap"!==this.type&&"treemap"!==this.type&&e[this.type]&&0!==this.options.boostThreshold?"render"===o&&this.renderCanvas&&this.renderCanvas():t.call(this)}P(t,o,r),"translate"===o&&["column","arearange","columnrange","heatmap","treemap"].forEach(function(e){i[e]&&P(i[e].prototype,o,r)})}(n,o,t)})}if(s.pushUnique(E,u)){var a=u().plotOptions;t.forEach(function(e){var t=a[e];t&&(t.boostThreshold=5e3,t.boostData=[],o[e].prototype.fillOpacity=!0)})}if(r){var l=o.area,h=o.areaspline,f=o.bubble,d=o.column,c=o.heatmap,p=o.scatter,b=o.treemap;if(l&&s.pushUnique(E,l)&&m(l.prototype,{fill:!0,fillOpacity:!0,sampling:!0}),h&&s.pushUnique(E,h)&&m(h.prototype,{fill:!0,fillOpacity:!0,sampling:!0}),f&&s.pushUnique(E,f)){var x=f.prototype;delete x.buildKDTree,P(x,"markerAttribs",function(e){return!this.boosted&&e.apply(this,[].slice.call(arguments,1))})}d&&s.pushUnique(E,d)&&m(d.prototype,{fill:!0,sampling:!0}),p&&s.pushUnique(E,p)&&(p.prototype.fill=!0),[c,b].forEach(function(e){e&&s.pushUnique(E,e)&&P(e.prototype,"drawPoints",_)})}return i},destroyGraphics:M,eachAsync:U,getPoint:D}}),i(t,"Extensions/Boost/NamedColors.js",[],function(){return{defaultHTMLColorMap:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",feldspar:"#d19275",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslateblue:"#8470ff",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",violetred:"#d02090",wheat:"#f5deb3",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}}}),i(t,"Extensions/Boost/Boost.js",[t["Extensions/Boost/BoostChart.js"],t["Extensions/Boost/BoostSeries.js"],t["Core/Globals.js"],t["Extensions/Boost/NamedColors.js"],t["Core/Utilities.js"]],function(e,t,i,o,r){var s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,i=1,o=arguments.length;i