Hacked By AnonymousFox

Current Path : C:/AppServ/www/financial/stacked/code/es5/
Upload File :
Current File : C:/AppServ/www/financial/stacked/code/es5/highcharts-gantt.js

!/**
 * Highcharts JS v12.1.2 (2025-01-09)
 * @module highcharts/highcharts
 *
 * (c) 2009-2024 Torstein Honsi
 *
 * License: www.highcharts.com/license
 */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("highcharts/highcharts",[],e):"object"==typeof exports?exports.highcharts=e():(t.Highcharts&&t.Highcharts.error(16,!0),t.Highcharts=e())}(this,function(){return function(){"use strict";var t,e,i,o,r,n,s,a,h,l,d,c,p,u,f,g,v,m,y,x,b,M,k,w,S,A,T,P,O,C,E,L,B,I,D,z,R,N,W,G,X,H,F,Y,j,_,U,V,q,Z,K,$,J,Q,tt,te,ti,to,tr,tn={};tn.d=function(t,e){for(var i in e)tn.o(e,i)&&!tn.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},tn.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var ts={};tn.d(ts,{default:function(){return fN}}),(t=B||(B={})).SVG_NS="http://www.w3.org/2000/svg",t.product="Highcharts",t.version="12.1.2",t.win="undefined"!=typeof window?window:{},t.doc=t.win.document,t.svg=t.doc&&t.doc.createElementNS&&!!t.doc.createElementNS(t.SVG_NS,"svg").createSVGRect,t.pageLang=null===(i=null===(e=null===t.doc||void 0===t.doc?void 0:t.doc.documentElement)||void 0===e?void 0:e.closest("[lang]"))||void 0===i?void 0:i.lang,t.userAgent=t.win.navigator&&t.win.navigator.userAgent||"",t.isChrome=t.win.chrome,t.isFirefox=-1!==t.userAgent.indexOf("Firefox"),t.isMS=/(edge|msie|trident)/i.test(t.userAgent)&&!t.win.opera,t.isSafari=!t.isChrome&&-1!==t.userAgent.indexOf("Safari"),t.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(t.userAgent),t.isWebKit=-1!==t.userAgent.indexOf("AppleWebKit"),t.deg2rad=2*Math.PI/360,t.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],t.noop=function(){},t.supportsPassiveEvents=function(){var e=!1;if(!t.isMS){var i=Object.defineProperty({},"passive",{get:function(){e=!0}});t.win.addEventListener&&t.win.removeEventListener&&(t.win.addEventListener("testPassive",t.noop,i),t.win.removeEventListener("testPassive",t.noop,i))}return e}(),t.charts=[],t.composed=[],t.dateFormats={},t.seriesTypes={},t.symbolSizes={},t.chartCount=0;var ta=B,th=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},tl=ta.charts,td=ta.doc,tc=ta.win;function tp(t,e,i,o){var r=e?"Highcharts error":"Highcharts warning";32===t&&(t=""+r+": Deprecated member");var n=tx(t),s=n?""+r+" #"+t+": www.highcharts.com/errors/"+t+"/":t.toString();if(void 0!==o){var a="";n&&(s+="?"),tC(o,function(t,e){a+="\n - ".concat(e,": ").concat(t),n&&(s+=encodeURI(e)+"="+encodeURI(t))}),s+=a}tL(ta,"displayError",{chart:i,code:t,message:s,params:o},function(){if(e)throw Error(s);tc.console&&-1===tp.messages.indexOf(s)&&console.warn(s)}),tp.messages.push(s)}function tu(t,e){return parseInt(t,e||10)}function tf(t){return"string"==typeof t}function tg(t){var e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function tv(t,e){return!!t&&"object"==typeof t&&(!e||!tg(t))}function tm(t){return tv(t)&&"number"==typeof t.nodeType}function ty(t){var e=t&&t.constructor;return!!(tv(t,!0)&&!tm(t)&&e&&e.name&&"Object"!==e.name)}function tx(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function tb(t){return null!=t}function tM(t,e,i){var o,r=tf(e)&&!tb(i),n=function(e,i){tb(e)?t.setAttribute(i,e):r?(o=t.getAttribute(i))||"class"!==i||(o=t.getAttribute(i+"Name")):t.removeAttribute(i)};return tf(e)?n(i,e):tC(e,n),o}function tk(t){return tg(t)?t:[t]}function tw(t,e){var i;for(i in t||(t={}),e)t[i]=e[i];return t}function tS(){for(var t=arguments,e=t.length,i=0;i<e;i++){var o=t[i];if(null!=o)return o}}function tA(t,e){tw(t.style,e)}function tT(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function tP(t,e){return t>1e14?t:parseFloat(t.toPrecision(e||14))}(tp||(tp={})).messages=[],Math.easeInOutSine=function(t){return -.5*(Math.cos(Math.PI*t)-1)};var tO=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var i,o=t.length;for(i=0;i<o;i++)if(e(t[i],i))return t[i]};function tC(t,e,i){for(var o in t)Object.hasOwnProperty.call(t,o)&&e.call(i||t[o],t[o],o,t)}function tE(t,e,i){function o(e,i){var o=t.removeEventListener;o&&o.call(t,e,i,!1)}function r(i){var r,n;t.nodeName&&(e?(r={})[e]=!0:r=i,tC(r,function(t,e){if(i[e])for(n=i[e].length;n--;)o(e,i[e][n].fn)}))}var n="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(n,"hcEvents")){var s=n.hcEvents;if(e){var a=s[e]||[];i?(s[e]=a.filter(function(t){return i!==t.fn}),o(e,i)):(r(s),s[e]=[])}else r(s),delete n.hcEvents}}function tL(t,e,i,o){if(i=i||{},td.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==ta)){var r=td.createEvent("Events");r.initEvent(e,!0,!0),i=tw(r,i),t.dispatchEvent?t.dispatchEvent(i):t.fireEvent(e,i)}else if(t.hcEvents){i.target||tw(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e});for(var n=[],s=t,a=!1;s.hcEvents;)Object.hasOwnProperty.call(s,"hcEvents")&&s.hcEvents[e]&&(n.length&&(a=!0),n.unshift.apply(n,s.hcEvents[e])),s=Object.getPrototypeOf(s);a&&n.sort(function(t,e){return t.order-e.order}),n.forEach(function(e){!1===e.fn.call(t,i)&&i.preventDefault()})}o&&!i.defaultPrevented&&o.call(t,i)}var tB=(o=Math.random().toString(36).substring(2,9)+"-",r=0,function(){return"highcharts-"+(I?"":o)+r++});tc.jQuery&&(tc.jQuery.fn.highcharts=function(){var t=[].slice.call(arguments);if(this[0])return t[0]?(new ta[tf(t[0])?t.shift():"Chart"](this[0],t[0],t[1]),this):tl[tM(this[0],"data-highcharts-chart")]});var tI={addEvent:function(t,e,i,o){void 0===o&&(o={});var r="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(r,"hcEvents")||(r.hcEvents={});var n=r.hcEvents;ta.Point&&t instanceof ta.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);var s=t.addEventListener;s&&s.call(t,e,i,!!ta.supportsPassiveEvents&&{passive:void 0===o.passive?-1!==e.indexOf("touch"):o.passive,capture:!1}),n[e]||(n[e]=[]);var a={fn:i,order:"number"==typeof o.order?o.order:1/0};return n[e].push(a),n[e].sort(function(t,e){return t.order-e.order}),function(){tE(t,e,i)}},arrayMax:function(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i},arrayMin:function(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i},attr:tM,clamp:function(t,e,i){return t>e?t<i?t:i:e},clearTimeout:function(t){tb(t)&&clearTimeout(t)},correctFloat:tP,createElement:function(t,e,i,o,r){var n=td.createElement(t);return e&&tw(n,e),r&&tA(n,{padding:"0",border:"none",margin:"0"}),i&&tA(n,i),o&&o.appendChild(n),n},crisp:function(t,e,i){void 0===e&&(e=0);var o=e%2/2,r=i?-1:1;return(Math.round(t*r-o)+o)*r},css:tA,defined:tb,destroyObjectProperties:function(t,e,i){tC(t,function(o,r){o!==e&&(null==o?void 0:o.destroy)&&o.destroy(),((null==o?void 0:o.destroy)||!i)&&delete t[r]})},diffObjects:function(t,e,i,o){var r={};return!function t(e,r,n,s){var a=i?r:e;tC(e,function(i,h){if(!s&&o&&o.indexOf(h)>-1&&r[h]){i=tk(i),n[h]=[];for(var l=0;l<Math.max(i.length,r[h].length);l++)r[h][l]&&(void 0===i[l]?n[h][l]=r[h][l]:(n[h][l]={},t(i[l],r[h][l],n[h][l],s+1)))}else tv(i,!0)&&!i.nodeType?(n[h]=tg(i)?[]:{},t(i,r[h]||{},n[h],s+1),0!==Object.keys(n[h]).length||"colorAxis"===h&&0===s||delete n[h]):(e[h]!==r[h]||h in e&&!(h in r))&&"__proto__"!==h&&"constructor"!==h&&(n[h]=a[h])})}(t,e,r,0),r},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}},error:tp,extend:tw,extendClass:function(t,e){var i=function(){};return i.prototype=new t,tw(i.prototype,e),i},find:tO,fireEvent:tL,getAlignFactor:function(t){return void 0===t&&(t=""),({center:.5,right:1,middle:.5,bottom:1})[t]||0},getClosestDistance:function(t,e){var i,o,r,n,s=!e;return t.forEach(function(t){if(t.length>1)for(n=o=t.length-1;n>0;n--)(r=t[n]-t[n-1])<0&&!s?(null==e||e(),e=void 0):r&&(void 0===i||r<i)&&(i=r)}),i},getMagnitude:tT,getNestedProperty:function(t,e){for(var i=t.split(".");i.length&&tb(e);){var o=i.shift();if(void 0===o||"__proto__"===o)return;if("this"===o){var r=void 0;return tv(e)&&(r=e["@this"]),null!=r?r:e}var n=e[o.replace(/[\\'"]/g,"")];if(!tb(n)||"function"==typeof n||"number"==typeof n.nodeType||n===tc)return;e=n}return e},getStyle:function t(e,i,o){if("width"===i){var r,n=Math.min(e.offsetWidth,e.scrollWidth),s=e.getBoundingClientRect&&e.getBoundingClientRect().width;return s<n&&s>=n-1&&(n=Math.floor(s)),Math.max(0,n-(t(e,"padding-left",!0)||0)-(t(e,"padding-right",!0)||0))}if("height"===i)return Math.max(0,Math.min(e.offsetHeight,e.scrollHeight)-(t(e,"padding-top",!0)||0)-(t(e,"padding-bottom",!0)||0));var a=tc.getComputedStyle(e,void 0);return a&&(r=a.getPropertyValue(i),tS(o,"opacity"!==i)&&(r=tu(r))),r},insertItem:function(t,e){var i,o=t.options.index,r=e.length;for(i=t.options.isInternal?r:0;i<r+1;i++)if(!e[i]||tx(o)&&o<tS(e[i].options.index,e[i]._i)||e[i].options.isInternal){e.splice(i,0,t);break}return i},isArray:tg,isClass:ty,isDOMElement:tm,isFunction:function(t){return"function"==typeof t},isNumber:tx,isObject:tv,isString:tf,merge:function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var o,r=th([t],e,!0),n={},s=function(t,e){return"object"!=typeof t&&(t={}),tC(e,function(i,o){"__proto__"!==o&&"constructor"!==o&&(!tv(i,!0)||ty(i)||tm(i)?t[o]=e[o]:t[o]=s(t[o]||{},i))}),t};!0===t&&(n=r[1],r=Array.prototype.slice.call(r,2));var a=r.length;for(o=0;o<a;o++)n=s(n,r[o]);return n},normalizeTickInterval:function(t,e,i,o,r){var n,s=t;i=tS(i,tT(t));var a=t/i;for(!e&&(e=r?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===o&&(1===i?e=e.filter(function(t){return t%1==0}):i<=.1&&(e=[1/i]))),n=0;n<e.length&&(s=e[n],(!r||!(s*i>=t))&&(r||!(a<=(e[n]+(e[n+1]||e[n]))/2)));n++);return tP(s*i,-Math.round(Math.log(.001)/Math.LN10))},objectEach:tC,offset:function(t){var e=td.documentElement,i=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:i.top+(tc.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(tc.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:i.width,height:i.height}},pad:function(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t},pick:tS,pInt:tu,pushUnique:function(t,e){return 0>t.indexOf(e)&&!!t.push(e)},relativeLength:function(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)},removeEvent:tE,replaceNested:function(t){for(var e,i,o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];do{e=t;for(var n=0;n<o.length;n++)i=o[n],t=t.replace(i[0],i[1])}while(t!==e);return t},splat:tk,stableSort:function(t,e){var i,o,r=t.length;for(o=0;o<r;o++)t[o].safeI=o;for(t.sort(function(t,o){return 0===(i=e(t,o))?t.safeI-o.safeI:i}),o=0;o<r;o++)delete t[o].safeI},syncTimeout:function(t,e,i){return e>0?setTimeout(t,e,i):(t.call(0,i),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},ucfirst:function(t){return tf(t)?t.substring(0,1).toUpperCase()+t.substring(1):String(t)},uniqueKey:tB,useSerialIds:function(t){return I=tS(t,I)},wrap:function(t,e,i){var o=t[e];t[e]=function(){var t=arguments,e=this;return i.apply(this,[function(){return o.apply(e,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}}},tD=ta.pageLang,tz=ta.win,tR=tI.defined,tN=tI.error,tW=tI.extend,tG=tI.isNumber,tX=tI.isObject,tH=tI.isString,tF=tI.merge,tY=tI.objectEach,tj=tI.pad,t_=tI.splat,tU=tI.timeUnits,tV=tI.ucfirst,tq=ta.isSafari&&tz.Intl&&!tz.Intl.DateTimeFormat.prototype.formatRange,tZ=function(t){return["D","L","M","X","J","V","S"].indexOf(t)},tK=function(){function t(t){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=tz.Date,this.update(t)}return t.prototype.update=function(t){var e=this;void 0===t&&(t={}),this.dTLCache={},this.options=t=tF(!0,this.options,t);var i=t.timezoneOffset,o=t.useUTC;this.Date=t.Date||tz.Date||Date;var r=t.timezone;tR(o)&&(r=o?"UTC":void 0),i&&i%60==0&&(r="Etc/GMT"+(i>0?"+":"")+i/60),this.variableTimezone="UTC"!==r&&(null==r?void 0:r.indexOf("Etc/GMT"))!==0,this.timezone=r,["months","shortMonths","weekdays","shortWeekdays"].forEach(function(t){var i=/months/i.test(t),o=/short/.test(t),r={timeZone:"UTC"};r[i?"month":"weekday"]=o?"short":"long",e[t]=(i?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(function(t){return e.dateFormat(r,(i?31:1)*24*36e5*t)})})},t.prototype.toParts=function(t){var e=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},t,"es").split(/(?:, |\/|:)/g),i=e[0],o=e[1],r=e[2];return[e[3],+r-1,o,e[4],e[5],e[6],Math.floor(Number(t)||0)%1e3,tZ(i)].map(Number)},t.prototype.dateTimeFormat=function(t,e,i){void 0===i&&(i=this.options.locale||tD);var o,r=JSON.stringify(t)+i;tH(t)&&(t=this.str2dtf(t));var n=this.dTLCache[r];if(!n){null!==(o=t.timeZone)&&void 0!==o||(t.timeZone=this.timezone);try{n=new Intl.DateTimeFormat(i,t)}catch(e){/Invalid time zone/i.test(e.message)?(tN(34),t.timeZone="UTC",n=new Intl.DateTimeFormat(i,t)):tN(e.message,!1)}}return this.dTLCache[r]=n,(null==n?void 0:n.format(e))||""},t.prototype.str2dtf=function(t,e){void 0===e&&(e={});var i={L:{fractionalSecondDigits:3},S:{second:"2-digit"},M:{minute:"numeric"},H:{hour:"2-digit"},k:{hour:"numeric"},E:{weekday:"narrow"},a:{weekday:"short"},A:{weekday:"long"},d:{day:"2-digit"},e:{day:"numeric"},b:{month:"short"},B:{month:"long"},m:{month:"2-digit"},o:{month:"numeric"},y:{year:"2-digit"},Y:{year:"numeric"}};return Object.keys(i).forEach(function(o){-1!==t.indexOf(o)&&tW(e,i[o])}),e},t.prototype.makeTime=function(t,e,i,o,r,n,s){void 0===i&&(i=1),void 0===o&&(o=0);var a=this.Date.UTC(t,e,i,o,r||0,n||0,s||0);if("UTC"!==this.timezone){var h=this.getTimezoneOffset(a);if(a+=h,-1!==[2,3,8,9,10,11].indexOf(e)&&(o<5||o>20)){var l=this.getTimezoneOffset(a);h!==l?a+=l-h:h-36e5!==this.getTimezoneOffset(a-36e5)||tq||(a-=36e5)}}return a},t.prototype.parse=function(t){if(!tH(t))return null!=t?t:void 0;var e=(t=t.replace(/\//g,"-").replace(/(GMT|UTC)/,"")).indexOf("Z")>-1||/([+-][0-9]{2}):?[0-9]{2}$/.test(t),i=/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/.test(t);e||i||(t+="Z");var o=Date.parse(t);if(tG(o))return o+(!e||i?this.getTimezoneOffset(o):0)},t.prototype.getTimezoneOffset=function(t){if("UTC"!==this.timezone){var e=this.dateTimeFormat({timeZoneName:"shortOffset"},t,"en").split(/(GMT|:)/).map(Number),i=(e[0],e[1],e[2]),o=(e[3],e[4]),r=-(36e5*(i+(void 0===o?0:o)/60));if(tG(r))return r}return 0},t.prototype.dateFormat=function(t,e,i){var o,r=null===(o=ta.defaultOptions)||void 0===o?void 0:o.lang;if(!tR(e)||isNaN(e))return(null==r?void 0:r.invalidDate)||"";if(tH(t=null!=t?t:"%Y-%m-%d %H:%M:%S"))for(var n=/%\[([a-zA-Z]+)\]/g,s=void 0;s=n.exec(t);)t=t.replace(s[0],this.dateTimeFormat(s[1],e));if(tH(t)&&-1!==t.indexOf("%")){var a=this,h=this.toParts(e),l=h[0],d=h[1],c=h[2],p=h[3],u=h[4],f=h[5],g=h[6],v=h[7],m=(null==r?void 0:r.weekdays)||this.weekdays,y=(null==r?void 0:r.shortWeekdays)||this.shortWeekdays,x=(null==r?void 0:r.months)||this.months,b=(null==r?void 0:r.shortMonths)||this.shortMonths;tY(tW({a:y?y[v]:m[v].substr(0,3),A:m[v],d:tj(c),e:tj(c,2," "),w:v,b:b[d],B:x[d],m:tj(d+1),o:d+1,y:l.toString().substr(2,2),Y:l,H:tj(p),k:p,I:tj(p%12||12),l:p%12||12,M:tj(u),p:p<12?"AM":"PM",P:p<12?"am":"pm",S:tj(f),L:tj(g,3)},ta.dateFormats),function(i,o){if(tH(t))for(;-1!==t.indexOf("%"+o);)t=t.replace("%"+o,"function"==typeof i?i.call(a,e):i)})}else if(tX(t)){var M=(this.getTimezoneOffset(e)||0)/36e5,k=this.timezone||"Etc/GMT"+(M>=0?"+":"")+M,w=t.prefix,S=t.suffix;t=(void 0===w?"":w)+this.dateTimeFormat(tW({timeZone:k},t),e)+(void 0===S?"":S)}return i?tV(t):t},t.prototype.resolveDTLFormat=function(t){return tX(t,!0)?tX(t,!0)&&void 0===t.main?{main:t}:t:{main:(t=t_(t))[0],from:t[1],to:t[2]}},t.prototype.getTimeTicks=function(t,e,i,o){var r,n=this,s=[],a={},h=t.count,l=void 0===h?1:h,d=t.unitRange,c=n.toParts(e),p=c[0],u=c[1],f=c[2],g=c[3],v=c[4],m=c[5],y=(e||0)%1e3;if(null!=o||(o=1),tR(e)){if(y=d>=tU.second?0:l*Math.floor(y/l),d>=tU.second&&(m=d>=tU.minute?0:l*Math.floor(m/l)),d>=tU.minute&&(v=d>=tU.hour?0:l*Math.floor(v/l)),d>=tU.hour&&(g=d>=tU.day?0:l*Math.floor(g/l)),d>=tU.day&&(f=d>=tU.month?1:Math.max(1,l*Math.floor(f/l))),d>=tU.month&&(u=d>=tU.year?0:l*Math.floor(u/l)),d>=tU.year&&(p-=p%l),d===tU.week){l&&(e=n.makeTime(p,u,f,g,v,m,y));var x=tZ(this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},e,"es"));f+=-x+o+(x<o?-7:0)}e=n.makeTime(p,u,f,g,v,m,y),n.variableTimezone&&tR(i)&&(r=i-e>4*tU.month||n.getTimezoneOffset(e)!==n.getTimezoneOffset(i));for(var b=e,M=1;b<i;)s.push(b),d===tU.year?b=n.makeTime(p+M*l,0):d===tU.month?b=n.makeTime(p,u+M*l):r&&(d===tU.day||d===tU.week)?b=n.makeTime(p,u,f+M*l*(d===tU.day?1:7)):r&&d===tU.hour&&l>1?b=n.makeTime(p,u,f,g+M*l):b+=d*l,M++;s.push(b),d<=tU.hour&&s.length<1e4&&s.forEach(function(t){t%18e5==0&&"000000000"===n.dateFormat("%H%M%S%L",t)&&(a[t]="day")})}return s.info=tW(t,{higherRanks:a,totalRange:d*l}),s},t.prototype.getDateFormat=function(t,e,i,o){var r=this.dateFormat("%m-%d %H:%M:%S.%L",e),n="01-01 00:00:00.000",s={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond",h=a;for(a in tU){if(t===tU.week&&+this.dateFormat("%w",e)===i&&r.substr(6)===n.substr(6)){a="week";break}if(tU[a]>t){a=h;break}if(s[a]&&r.substr(s[a])!==n.substr(s[a]))break;"week"!==a&&(h=a)}return this.resolveDTLFormat(o[a]).main},t}(),t$=ta.isTouchDevice,tJ=tI.fireEvent,tQ=tI.merge,t0={colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{locale:void 0,loading:"Loading...",months:void 0,shortMonths:void 0,weekdays:void 0,numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1"},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,timezone:"UTC",timezoneOffset:0,useUTC:void 0},chart:{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",margin:15,minScale:.67},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:""},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:function(t){return Math.sqrt(1-Math.pow(t-1,2))}},borderRadius:3,dateTimeLabelFormats:{millisecond:"%[AebHMSL]",second:"%[AebHMS]",minute:"%[AebHM]",hour:"%[AebHM]",day:"%[AebY]",week:"Week from %[AebY]",month:"%[BY]",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:t$?25:10,headerFormat:'<span style="font-size: 0.8em">{ucfirst point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}},t1=new tK(t0.time),t2=function(t){return tJ(ta,"setOptions",{options:t}),tQ(!0,t0,t),t.time&&t1.update(t0.time),t.lang&&"locale"in t.lang&&t1.update({locale:t.lang.locale}),t0},t3=tI.isNumber,t5=tI.merge,t6=tI.pInt,t9=tI.defined,t4=function(){function t(e){this.rgba=[NaN,NaN,NaN,NaN],this.input=e;var i,o,r,n,s=ta.Color;if(s&&s!==t)return new s(e);if("object"==typeof e&&void 0!==e.stops)this.stops=e.stops.map(function(e){return new t(e[1])});else if("string"==typeof e)for(this.input=e=t.names[e.toLowerCase()]||e,r=t.parsers.length;r--&&!o;)(i=(n=t.parsers[r]).regex.exec(e))&&(o=n.parse(i));o&&(this.rgba=o)}return t.parse=function(e){return e?new t(e):t.None},t.prototype.get=function(t){var e=this.input,i=this.rgba;if("object"==typeof e&&void 0!==this.stops){var o=t5(e);return o.stops=[].slice.call(o.stops),this.stops.forEach(function(e,i){o.stops[i]=[o.stops[i][0],e.get(t)]}),o}return i&&t3(i[0])?"rgb"!==t&&(t||1!==i[3])?"a"===t?"".concat(i[3]):"rgba("+i.join(",")+")":"rgb("+i[0]+","+i[1]+","+i[2]+")":e},t.prototype.brighten=function(t){var e=this.rgba;if(this.stops)this.stops.forEach(function(e){e.brighten(t)});else if(t3(t)&&0!==t)for(var i=0;i<3;i++)e[i]+=t6(255*t),e[i]<0&&(e[i]=0),e[i]>255&&(e[i]=255);return this},t.prototype.setOpacity=function(t){return this.rgba[3]=t,this},t.prototype.tweenTo=function(t,e){var i=this.rgba,o=t.rgba;if(!t3(i[0])||!t3(o[0]))return t.input||"none";var r=1!==o[3]||1!==i[3],n=function(t,o){return t+(i[o]-t)*(1-e)},s=o.slice(0,3).map(n).map(Math.round);return r&&s.push(n(o[3],3)),(r?"rgba(":"rgb(")+s.join(",")+")"},t.names={white:"#ffffff",black:"#000000"},t.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(t){return[t6(t[1]),t6(t[2]),t6(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(t){return[t6(t[1]),t6(t[2]),t6(t[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(t){return[t6(t[1]+t[1],16),t6(t[2]+t[2],16),t6(t[3]+t[3],16),t9(t[4])?t6(t[4]+t[4],16)/255:1]}},{regex:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,parse:function(t){return[t6(t[1],16),t6(t[2],16),t6(t[3],16),t9(t[4])?t6(t[4],16)/255:1]}}],t.None=new t(""),t}(),t8=t4.parse,t7=ta.win,et=tI.isNumber,ee=tI.objectEach,ei=function(){function t(t,e,i){this.pos=NaN,this.options=e,this.elem=t,this.prop=i}return t.prototype.dSetter=function(){var t=this.paths,e=t&&t[0],i=t&&t[1],o=this.now||0,r=[];if(1!==o&&e&&i){if(e.length===i.length&&o<1)for(var n=0;n<i.length;n++){for(var s=e[n],a=i[n],h=[],l=0;l<a.length;l++){var d=s[l],c=a[l];et(d)&&et(c)&&!("A"===a[0]&&(4===l||5===l))?h[l]=d+o*(c-d):h[l]=c}r.push(h)}else r=i}else r=this.toD||[];this.elem.attr("d",r,void 0,!0)},t.prototype.update=function(){var t=this.elem,e=this.prop,i=this.now,o=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,o&&o.call(t,i,this)},t.prototype.run=function(e,i,o){var r=this,n=r.options,s=function(t){return!s.stopped&&r.step(t)},a=t7.requestAnimationFrame||function(t){setTimeout(t,13)},h=function(){for(var e=0;e<t.timers.length;e++)t.timers[e]()||t.timers.splice(e--,1);t.timers.length&&a(h)};e!==i||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=i,this.unit=o,this.now=this.start,this.pos=0,s.elem=this.elem,s.prop=this.prop,s()&&1===t.timers.push(s)&&a(h)):(delete n.curAnim[this.prop],n.complete&&0===Object.keys(n.curAnim).length&&n.complete.call(this.elem))},t.prototype.step=function(t){var e,i,o=+new Date,r=this.options,n=this.elem,s=r.complete,a=r.duration,h=r.curAnim;return n.attr&&!n.element?e=!1:t||o>=a+this.startTime?(this.now=this.end,this.pos=1,this.update(),h[this.prop]=!0,i=!0,ee(h,function(t){!0!==t&&(i=!1)}),i&&s&&s.call(n),e=!1):(this.pos=r.easing((o-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e},t.prototype.initPath=function(t,e,i){var o,r,n,s,a=t.startX,h=t.endX,l=i.slice(),d=t.isArea,c=d?2:1,p=e&&i.length>e.length&&i.hasStackedCliffs,u=e&&e.slice();if(!u||p)return[l,l];function f(t,e){for(;t.length<r;){var i=t[0],o=e[r-t.length];if(o&&"M"===i[0]&&("C"===o[0]?t[0]=["C",i[1],i[2],i[1],i[2],i[1],i[2]]:t[0]=["L",i[1],i[2]]),t.unshift(i),d){var n=t.pop();t.push(t[t.length-1],n)}}}function g(t){for(;t.length<r;){var e=t[Math.floor(t.length/c)-1].slice();if("C"===e[0]&&(e[1]=e[5],e[2]=e[6]),d){var i=t[Math.floor(t.length/c)].slice();t.splice(t.length/2,0,e,i)}else t.push(e)}}if(a&&h&&h.length){for(n=0;n<a.length;n++){if(a[n]===h[0]){o=n;break}if(a[0]===h[h.length-a.length+n]){o=n,s=!0;break}if(a[a.length-1]===h[h.length-a.length+n]){o=a.length-n;break}}void 0===o&&(u=[])}return u.length&&et(o)&&(r=l.length+o*c,s?(f(u,l),g(l)):(f(l,u),g(u))),[u,l]},t.prototype.fillSetter=function(){t.prototype.strokeSetter.apply(this,arguments)},t.prototype.strokeSetter=function(){this.elem.attr(this.prop,t8(this.start).tweenTo(t8(this.end),this.pos),void 0,!0)},t.timers=[],t}(),eo=tI.defined,er=tI.getStyle,en=tI.isArray,es=tI.isNumber,ea=tI.isObject,eh=tI.merge,el=tI.objectEach,ed=tI.pick;function ec(t){return ea(t)?eh({duration:500,defer:0},t):{duration:t?500:0,defer:0}}function ep(t,e){for(var i=ei.timers.length;i--;)ei.timers[i].elem!==t||e&&e!==ei.timers[i].prop||(ei.timers[i].stopped=!0)}var eu=function(t,e,i){var o,r,n,s,a="";ea(i)||(s=arguments,i={duration:s[2],easing:s[3],complete:s[4]}),es(i.duration)||(i.duration=400),i.easing="function"==typeof i.easing?i.easing:Math[i.easing]||Math.easeInOutSine,i.curAnim=eh(e),el(e,function(s,h){ep(t,h),n=new ei(t,i,h),r=void 0,"d"===h&&en(e.d)?(n.paths=n.initPath(t,t.pathArray,e.d),n.toD=e.d,o=0,r=1):t.attr?o=t.attr(h):(o=parseFloat(er(t,h))||0,"opacity"!==h&&(a="px")),r||(r=s),"string"==typeof r&&r.match("px")&&(r=r.replace(/px/g,"")),n.run(o,r,a)})},ef=function(t,e,i){var o=ec(e),r=i?[i]:t.series,n=0,s=0;return r.forEach(function(t){var i=ec(t.options.animation);n=ea(e)&&eo(e.defer)?o.defer:Math.max(n,i.duration+i.defer),s=Math.min(o.duration,i.duration)}),t.renderer.forExport&&(n=0),{defer:Math.max(0,n-s),duration:Math.min(n,s)}},eg=function(t,e){e.renderer.globalAnimation=ed(t,e.options.chart.animation,!0)},ev=ta.SVG_NS,em=ta.win,ey=tI.attr,ex=tI.createElement,eb=tI.css,eM=tI.error,ek=tI.isFunction,ew=tI.isString,eS=tI.objectEach,eA=tI.splat,eT=em.trustedTypes,eP=eT&&ek(eT.createPolicy)&&eT.createPolicy("highcharts",{createHTML:function(t){return t}}),eO=eP?eP.createHTML(""):"",eC=function(){function t(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}return t.filterUserAttributes=function(e){return eS(e,function(i,o){var r=!0;-1===t.allowedAttributes.indexOf(o)&&(r=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(o)&&(r=ew(i)&&t.allowedReferences.some(function(t){return 0===i.indexOf(t)})),r||(eM(33,!1,void 0,{"Invalid attribute in config":"".concat(o)}),delete e[o]),ew(i)&&e[o]&&(e[o]=i.replace(/</g,"&lt;"))}),e},t.parseStyle=function(t){return t.split(";").reduce(function(t,e){var i=e.split(":").map(function(t){return t.trim()}),o=i.shift();return o&&i.length&&(t[o.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})]=i.join(":")),t},{})},t.setElementHTML=function(e,i){e.innerHTML=t.emptyHTML,i&&new t(i).addToDOM(e)},t.prototype.addToDOM=function(e){return function e(i,o){var r;return eA(i).forEach(function(i){var n,s=i.tagName,a=i.textContent?ta.doc.createTextNode(i.textContent):void 0,h=t.bypassHTMLFiltering;if(s){if("#text"===s)n=a;else if(-1!==t.allowedTags.indexOf(s)||h){var l="svg"===s?ev:o.namespaceURI||ev,d=ta.doc.createElementNS(l,s),c=i.attributes||{};eS(i,function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"style"!==e&&"textContent"!==e&&(c[e]=t)}),ey(d,h?c:t.filterUserAttributes(c)),i.style&&eb(d,i.style),a&&d.appendChild(a),e(i.children||[],d),n=d}else eM(33,!1,void 0,{"Invalid tagName in config":s})}n&&o.appendChild(n),r=n}),r}(this.nodes,e)},t.prototype.parseMarkup=function(e){var i,o=[];e=e.trim().replace(/ style=(["'])/g," data-style=$1");try{i=new DOMParser().parseFromString(eP?eP.createHTML(e):e,"text/html")}catch(t){}if(!i){var r=ex("div");r.innerHTML=e,i={body:r}}var n=function(e,i){var o=e.nodeName.toLowerCase(),r={tagName:o};"#text"===o&&(r.textContent=e.textContent||"");var s=e.attributes;if(s){var a={};[].forEach.call(s,function(e){"data-style"===e.name?r.style=t.parseStyle(e.value):a[e.name]=e.value}),r.attributes=a}if(e.childNodes.length){var h=[];[].forEach.call(e.childNodes,function(t){n(t,h)}),h.length&&(r.children=h)}i.push(r)};return[].forEach.call(i.body.childNodes,function(t){return n(t,o)}),o},t.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],t.allowedReferences=["https://","http://","mailto:","/","../","./","#"],t.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMorphology","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],t.emptyHTML=eO,t.bypassHTMLFiltering=!1,t}(),eE=ta.pageLang,eL=tI.extend,eB=tI.getNestedProperty,eI=tI.isArray,eD=tI.isNumber,ez=tI.isObject,eR=tI.isString,eN=tI.pick,eW={add:function(t,e){return t+e},divide:function(t,e){return 0!==e?t/e:""},eq:function(t,e){return t==e},each:function(t){var e=arguments[arguments.length-1];return!!eI(t)&&t.map(function(i,o){return eH(e.body,eL(ez(i)?i:{"@this":i},{"@index":o,"@first":0===o,"@last":o===t.length-1}))}).join("")},ge:function(t,e){return t>=e},gt:function(t,e){return t>e},if:function(t){return!!t},le:function(t,e){return t<=e},lt:function(t,e){return t<e},multiply:function(t,e){return t*e},ne:function(t,e){return t!=e},subtract:function(t,e){return t-e},ucfirst:tI.ucfirst,unless:function(t){return!t}},eG={},eX=function(t){return/^["'].+["']$/.test(t)};function eH(t,e,i){void 0===t&&(t="");for(var o,r,n,s=/\{([\p{L}\d:\.,;\-\/<>\[\]%_@+"'’= #\(\)]+)\}/gu,a=/\(([\p{L}\d:\.,;\-\/<>\[\]%_@+"'= ]+)\)/gu,h=[],l=/f$/,d=/\.(\d)/,c=(null==i?void 0:i.options.lang)||t0.lang,p=i&&i.time||t1,u=i&&i.numberFormatter||eF,f=function(t){var i;return void 0===t&&(t=""),"true"===t||"false"!==t&&((i=Number(t)).toString()===t?i:eX(t)?t.slice(1,-1):eB(t,e))},g=0;null!==(o=s.exec(t));){var v=o,m=a.exec(o[1]);m&&(o=m,n=!0),r&&r.isBlock||(r={ctx:e,expression:o[1],find:o[0],isBlock:"#"===o[1].charAt(0),start:o.index,startInner:o.index+o[0].length,length:o[0].length});var y=(r.isBlock?v:o)[1].split(" ")[0].replace("#","");eW[y]&&(r.isBlock&&y===r.fn&&g++,r.fn||(r.fn=y));var x="else"===o[1];if(r.isBlock&&r.fn&&(o[1]==="/".concat(r.fn)||x)){if(g)!x&&g--;else{var b=r.startInner,M=t.substr(b,o.index-b);void 0===r.body?(r.body=M,r.startInner=o.index+o[0].length):r.elseBody=M,r.find+=M+o[0],x||(h.push(r),r=void 0)}}else r.isBlock||h.push(r);if(m&&!(null==r?void 0:r.isBlock))break}return h.forEach(function(o){var r,n,s=o.body,h=o.elseBody,g=o.expression,v=o.fn;if(v){var m=[o],y=[],x=g.length,b=0,M=void 0;for(n=0;n<=x;n++){var k=g.charAt(n);M||'"'!==k&&"'"!==k?M===k&&(M=""):M=k,M||" "!==k&&n!==x||(y.push(g.substr(b,n-b)),b=n+1)}for(n=eW[v].length;n--;)m.unshift(f(y[n+1]));r=eW[v].apply(e,m),o.isBlock&&"boolean"==typeof r&&(r=eH(r?s:h,e,i))}else{var w=eX(g)?[g]:g.split(":");if(r=f(w.shift()||""),w.length&&"number"==typeof r){var S=w.join(":");if(l.test(S)){var A=parseInt((S.match(d)||["","-1"])[1],10);null!==r&&(r=u(r,A,c.decimalPoint,S.indexOf(",")>-1?c.thousandsSep:""))}else r=p.dateFormat(S,r)}a.lastIndex=0,a.test(o.find)&&eR(r)&&(r='"'.concat(r,'"'))}t=t.replace(o.find,eN(r,""))}),n?eH(t,e,i):t}function eF(t,e,i,o){e=+e;var r,n,s,a,h=(t=+t||0).toString().split("e").map(Number),l=h[0],d=h[1],c=(null===(r=this===null||void 0===this?void 0:this.options)||void 0===r?void 0:r.lang)||t0.lang,p=(t.toString().split(".")[1]||"").split("e")[0].length,u=e,f={};null!=i||(i=c.decimalPoint),null!=o||(o=c.thousandsSep),-1===e?e=Math.min(p,20):eD(e)?e&&d<0&&((a=e+d)>=0?(l=+l.toExponential(a).split("e")[0],e=a):(l=Math.floor(l),t=e<20?+(l*Math.pow(10,d)).toFixed(e):0,d=0)):e=2,d&&(null!=e||(e=2),t=l),eD(e)&&e>=0&&(f.minimumFractionDigits=e,f.maximumFractionDigits=e),""===o&&(f.useGrouping=!1);var g=o||i,v=g?"en":(this===null||void 0===this?void 0:this.locale)||c.locale||eE,m=JSON.stringify(f)+v;return s=(null!==(n=eG[m])&&void 0!==n?n:eG[m]=new Intl.NumberFormat(v,f)).format(t),g&&(s=s.replace(/([,\.])/g,"_$1").replace(/_\,/g,null!=o?o:",").replace("_.",null!=i?i:".")),(e||0!=+s)&&(!(d<0)||u)||(s="0"),d&&0!=+s&&(s+="e"+(d<0?"":"+")+d),s}var eY={dateFormat:function(t,e,i){return t1.dateFormat(t,e,i)},format:eH,helpers:eW,numberFormat:eF};(n=D||(D={})).rendererTypes={},n.getRendererType=function(t){return void 0===t&&(t=s),n.rendererTypes[t]||n.rendererTypes[s]},n.registerRendererType=function(t,e,i){n.rendererTypes[t]=e,(!s||i)&&(s=t,ta.Renderer=e)};var ej=D,e_=tI.clamp,eU=tI.pick,eV=tI.pushUnique,eq=tI.stableSort;(z||(z={})).distribute=function t(e,i,o){var r,n,s,a,h,l,d=e,c=d.reducedLen||i,p=function(t,e){return t.target-e.target},u=[],f=e.length,g=[],v=u.push,m=!0,y=0;for(r=f;r--;)y+=e[r].size;if(y>c){for(eq(e,function(t,e){return(e.rank||0)-(t.rank||0)}),s=(l=e[0].rank===e[e.length-1].rank)?f/2:-1,n=l?s:f-1;s&&y>c;)a=e[r=Math.floor(n)],eV(g,r)&&(y-=a.size),n+=s,l&&n>=e.length&&(s/=2,n=s);g.sort(function(t,e){return e-t}).forEach(function(t){return v.apply(u,e.splice(t,1))})}for(eq(e,p),e=e.map(function(t){return{size:t.size,targets:[t.target],align:eU(t.align,.5)}});m;){for(r=e.length;r--;)a=e[r],h=(Math.min.apply(0,a.targets)+Math.max.apply(0,a.targets))/2,a.pos=e_(h-a.size*a.align,0,i-a.size);for(r=e.length,m=!1;r--;)r>0&&e[r-1].pos+e[r-1].size>e[r].pos&&(e[r-1].size+=e[r].size,e[r-1].targets=e[r-1].targets.concat(e[r].targets),e[r-1].align=.5,e[r-1].pos+e[r-1].size>i&&(e[r-1].pos=i-e[r-1].size),e.splice(r,1),m=!0)}return v.apply(d,u),r=0,e.some(function(e){var n=0;return(e.targets||[]).some(function(){return(d[r].pos=e.pos+n,void 0!==o&&Math.abs(d[r].pos-d[r].target)>o)?(d.slice(0,r+1).forEach(function(t){return delete t.pos}),d.reducedLen=(d.reducedLen||i)-.1*i,d.reducedLen>.1*i&&t(d,i,o),!0):(n+=d[r].size,r++,!1)})}),eq(d,p),d};var eZ=z,eK=ta.deg2rad,e$=ta.doc,eJ=ta.svg,eQ=ta.SVG_NS,e0=ta.win,e1=ta.isFirefox,e2=tI.addEvent,e3=tI.attr,e5=tI.createElement,e6=tI.crisp,e9=tI.css,e4=tI.defined,e8=tI.erase,e7=tI.extend,it=tI.fireEvent,ie=tI.getAlignFactor,ii=tI.isArray,io=tI.isFunction,ir=tI.isNumber,is=tI.isObject,ia=tI.isString,ih=tI.merge,il=tI.objectEach,id=tI.pick,ic=tI.pInt,ip=tI.pushUnique,iu=tI.replaceNested,ig=tI.syncTimeout,iv=tI.uniqueKey,im=function(){function t(t,e){this.onEvents={},this.opacity=1,this.SVG_NS=eQ,this.element="span"===e||"body"===e?e5(e):e$.createElementNS(this.SVG_NS,e),this.renderer=t,this.styles={},it(this,"afterInit")}return t.prototype._defaultGetter=function(t){var e=id(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0);return/^-?[\d\.]+$/.test(e)&&(e=parseFloat(e)),e},t.prototype._defaultSetter=function(t,e,i){i.setAttribute(e,t)},t.prototype.add=function(t){var e,i=this.renderer,o=this.element;return t&&(this.parentGroup=t),void 0!==this.textStr&&"text"===this.element.nodeName&&i.buildText(this),this.added=!0,(!t||t.handleZ||this.zIndex)&&(e=this.zIndexSetter()),e||(t?t.element:i.box).appendChild(o),this.onAdd&&this.onAdd(),this},t.prototype.addClass=function(t,e){var i=e?"":this.attr("class")||"";return(t=(t||"").split(/ /g).reduce(function(t,e){return -1===i.indexOf(e)&&t.push(e),t},i?[i]:[]).join(" "))!==i&&this.attr("class",t),this},t.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},t.prototype.align=function(t,e,i,o){void 0===o&&(o=!0);var r=this.renderer,n=r.alignedObjects,s=!!t;t?(this.alignOptions=t,this.alignByTranslate=e,this.alignTo=i):(t=this.alignOptions||{},e=this.alignByTranslate,i=this.alignTo);var a=!i||ia(i)?i||"renderer":void 0;a&&(s&&ip(n,this),i=void 0);var h=id(i,r[a],r),l=(h.x||0)+(t.x||0)+((h.width||0)-(t.width||0))*ie(t.align),d=(h.y||0)+(t.y||0)+((h.height||0)-(t.height||0))*ie(t.verticalAlign),c={"text-align":null==t?void 0:t.align};return c[e?"translateX":"x"]=Math.round(l),c[e?"translateY":"y"]=Math.round(d),o&&(this[this.placed?"animate":"attr"](c),this.placed=!0),this.alignAttr=c,this},t.prototype.alignSetter=function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},t.prototype.animate=function(t,e,i){var o=this,r=ec(id(e,this.renderer.globalAnimation,!0)),n=r.defer;return e$.hidden&&(r.duration=0),0!==r.duration?(i&&(r.complete=i),ig(function(){o.element&&eu(o,t,r)},n)):(this.attr(t,void 0,i||r.complete),il(t,function(t,e){r.step&&r.step.call(this,t,{prop:e,pos:1,elem:this})},this)),this},t.prototype.applyTextOutline=function(t){var e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));var i=t.split(" "),o=i[i.length-1],r=i[0];if(r&&"none"!==r&&ta.svg){this.fakeTS=!0,r=r.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,i){return 2*Number(e)+i}),this.removeTextOutline();var n=e$.createElementNS(eQ,"tspan");e3(n,{class:"highcharts-text-outline",fill:o,stroke:o,"stroke-width":r,"stroke-linejoin":"round"});var s=e.querySelector("textPath")||e;[].forEach.call(s.childNodes,function(t){var e=t.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(t){return e.removeAttribute(t)}),n.appendChild(e)});var a=0;[].forEach.call(s.querySelectorAll("text tspan"),function(t){a+=Number(t.getAttribute("dy"))});var h=e$.createElementNS(eQ,"tspan");h.textContent="​",e3(h,{x:Number(e.getAttribute("x")),dy:-a}),n.appendChild(h),s.insertBefore(n,s.firstChild)}},t.prototype.attr=function(e,i,o,r){var n,s,a,h=this.element,l=t.symbolCustomAttribs,d=this;return"string"==typeof e&&void 0!==i&&(n=e,(e={})[n]=i),"string"==typeof e?d=(this[e+"Getter"]||this._defaultGetter).call(this,e,h):(il(e,function(t,i){a=!1,r||ep(this,i),this.symbolName&&-1!==l.indexOf(i)&&(s||(this.symbolAttr(e),s=!0),a=!0),this.rotation&&("x"===i||"y"===i)&&(this.doTransform=!0),a||(this[i+"Setter"]||this._defaultSetter).call(this,t,i,h)},this),this.afterSetters()),o&&o.call(this),d},t.prototype.clip=function(t){if(t&&!t.clipPath){var e=iv()+"-",i=this.renderer.createElement("clipPath").attr({id:e}).add(this.renderer.defs);e7(t,{clipPath:i,id:e,count:0}),t.add(i)}return this.attr("clip-path",t?"url(".concat(this.renderer.url,"#").concat(t.id,")"):"none")},t.prototype.crisp=function(t,e){e=Math.round(e||t.strokeWidth||0);var i=t.x||this.x||0,o=t.y||this.y||0,r=(t.width||this.width||0)+i,n=(t.height||this.height||0)+o,s=e6(i,e),a=e6(o,e);return e7(t,{x:s,y:a,width:e6(r,e)-s,height:e6(n,e)-a}),e4(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,e,i){var o,r,n,s,a,h,l,d,c,p,u,f=this.renderer,g=[];it(this.renderer,"complexColor",{args:arguments},function(){if(t.radialGradient?r="radialGradient":t.linearGradient&&(r="linearGradient"),r){if(n=t[r],a=f.gradients,h=t.stops,c=i.radialReference,ii(n)&&(t[r]=n={x1:n[0],y1:n[1],x2:n[2],y2:n[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===r&&c&&!e4(n.gradientUnits)&&(s=n,n=ih(n,f.getRadialAttr(c,s),{gradientUnits:"userSpaceOnUse"})),il(n,function(t,e){"id"!==e&&g.push(e,t)}),il(h,function(t){g.push(t)}),a[g=g.join(",")])p=a[g].attr("id");else{n.id=p=iv();var v=a[g]=f.createElement(r).attr(n).add(f.defs);v.radAttr=s,v.stops=[],h.forEach(function(t){0===t[1].indexOf("rgba")?(l=(o=t4.parse(t[1])).get("rgb"),d=o.get("a")):(l=t[1],d=1);var e=f.createElement("stop").attr({offset:t[0],"stop-color":l,"stop-opacity":d}).add(v);v.stops.push(e)})}u="url("+f.url+"#"+p+")",i.setAttribute(e,u),i.gradient=g,t.toString=function(){return u}}})},t.prototype.css=function(t){var e,i=this.styles,o={},r=this.element,n=!i;if(i&&il(t,function(t,e){i&&i[e]!==t&&(o[e]=t,n=!0)}),n){i&&(t=e7(i,o)),null===t.width||"auto"===t.width?delete this.textWidth:"text"===r.nodeName.toLowerCase()&&t.width&&(e=this.textWidth=ic(t.width)),e7(this.styles,t),e&&!eJ&&this.renderer.forExport&&delete t.width;var s=e1&&t.fontSize||null;s&&(ir(s)||/^\d+$/.test(s))&&(t.fontSize+="px");var a=ih(t);r.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach(function(t){return a&&delete a[t]}),a.color&&(a.fill=a.color)),e9(r,a)}return this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t.textOutline&&this.applyTextOutline(t.textOutline)),this},t.prototype.dashstyleSetter=function(t){var e,i=this["stroke-width"];if("inherit"===i&&(i=1),t=t&&t.toLowerCase()){var o=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(e=o.length;e--;)o[e]=""+ic(o[e])*id(i,NaN);t=o.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},t.prototype.destroy=function(){var t,e,i,o=this,r=o.element||{},n=o.renderer,s=r.ownerSVGElement,a="SPAN"===r.nodeName&&o.parentGroup||void 0;if(r.onclick=r.onmouseout=r.onmouseover=r.onmousemove=r.point=null,ep(o),o.clipPath&&s){var h=o.clipPath;[].forEach.call(s.querySelectorAll("[clip-path],[CLIP-PATH]"),function(t){t.getAttribute("clip-path").indexOf(h.element.id)>-1&&t.removeAttribute("clip-path")}),o.clipPath=h.destroy()}if(o.connector=null===(t=o.connector)||void 0===t?void 0:t.destroy(),o.stops){for(i=0;i<o.stops.length;i++)o.stops[i].destroy();o.stops.length=0,o.stops=void 0}for(o.safeRemoveChild(r);a&&a.div&&0===a.div.childNodes.length;)e=a.parentGroup,o.safeRemoveChild(a.div),delete a.div,a=e;o.alignOptions&&e8(n.alignedObjects,o),il(o,function(t,e){o[e]&&o[e].parentGroup===o&&o[e].destroy&&o[e].destroy(),delete o[e]})},t.prototype.dSetter=function(t,e,i){ii(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce(function(t,e,i){return e&&e.join?(i?t+" ":"")+e.join(" "):(e||"").toString()},"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(i.setAttribute(e,t),this[e]=t)},t.prototype.fillSetter=function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)},t.prototype.hrefSetter=function(t,e,i){i.setAttributeNS("http://www.w3.org/1999/xlink",e,t)},t.prototype.getBBox=function(e,i){var o,r,n,s,a=this.alignValue,h=this.element,l=this.renderer,d=this.styles,c=this.textStr,p=l.cache,u=l.cacheKeys,f=h.namespaceURI===this.SVG_NS,g=id(i,this.rotation,0),v=l.styledMode?h&&t.prototype.getStyle.call(h,"font-size"):d.fontSize;if(e4(c)&&(-1===(s=c.toString()).indexOf("<")&&(s=s.replace(/\d/g,"0")),s+=["",l.rootFontSize,v,g,this.textWidth,a,d.lineClamp,d.textOverflow,d.fontWeight].join(",")),s&&!e&&(o=p[s]),!o||o.polygon){if(f||l.forExport){try{n=this.fakeTS&&function(t){var e=h.querySelector(".highcharts-text-outline");e&&e9(e,{display:t})},io(n)&&n("none"),o=h.getBBox?e7({},h.getBBox()):{width:h.offsetWidth,height:h.offsetHeight,x:0,y:0},io(n)&&n("")}catch(t){}(!o||o.width<0)&&(o={x:0,y:0,width:0,height:0})}else o=this.htmlGetBBox();r=o.height,f&&(o.height=r=({"11px,17":14,"13px,20":16})[""+(v||"")+",".concat(Math.round(r))]||r),g&&(o=this.getRotatedBox(o,g));var m={bBox:o};it(this,"afterGetBBox",m),o=m.bBox}if(s&&(""===c||o.height>0)){for(;u.length>250;)delete p[u.shift()];p[s]||u.push(s),p[s]=o}return o},t.prototype.getRotatedBox=function(t,e){var i=t.x,o=t.y,r=t.width,n=t.height,s=this.alignValue,a=this.translateY,h=this.rotationOriginX,l=this.rotationOriginY,d=ie(s),c=Number(this.element.getAttribute("y")||0)-(a?0:o),p=e*eK,u=(e-90)*eK,f=Math.cos(p),g=Math.sin(p),v=r*f,m=r*g,y=Math.cos(u),x=Math.sin(u),b=[void 0===h?0:h,void 0===l?0:l].map(function(t){return[t-t*f,t*g]}),M=b[0],k=M[0],w=M[1],S=b[1],A=S[0],T=i+d*(r-v)+k+S[1]+c*y,P=T+v,O=P-n*y,C=O-v,E=o+c-d*m-w+A+c*x,L=E+m,B=L-n*x,I=B-m,D=Math.min(T,P,O,C),z=Math.min(E,L,B,I),R=Math.max(T,P,O,C)-D,N=Math.max(E,L,B,I)-z;return{x:D,y:z,width:R,height:N,polygon:[[T,E],[P,L],[O,B],[C,I]]}},t.prototype.getStyle=function(t){return e0.getComputedStyle(this.element||this,"").getPropertyValue(t)},t.prototype.hasClass=function(t){return -1!==(""+this.attr("class")).split(" ").indexOf(t)},t.prototype.hide=function(){return this.attr({visibility:"hidden"})},t.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},t.prototype.on=function(t,e){var i=this.onEvents;return i[t]&&i[t](),i[t]=e2(this.element,t,e),this},t.prototype.opacitySetter=function(t,e,i){var o=Number(Number(t).toFixed(3));this.opacity=o,i.setAttribute(e,o)},t.prototype.reAlign=function(){var t;(null===(t=this.alignOptions)||void 0===t?void 0:t.width)&&"left"!==this.alignOptions.align&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())},t.prototype.removeClass=function(t){return this.attr("class",(""+this.attr("class")).replace(ia(t)?new RegExp("(^| )".concat(t,"( |$)")):t," ").replace(/ +/g," ").trim())},t.prototype.removeTextOutline=function(){var t=this.element.querySelector("tspan.highcharts-text-outline");t&&this.safeRemoveChild(t)},t.prototype.safeRemoveChild=function(t){var e=t.parentNode;e&&e.removeChild(t)},t.prototype.setRadialReference=function(t){var e=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},t.prototype.shadow=function(t){var e,i=this.renderer,o=ih((null===(e=this.parentGroup)||void 0===e?void 0:e.rotation)===90?{offsetX:-1,offsetY:-1}:{},is(t)?t:{}),r=i.shadowDefinition(o);return this.attr({filter:t?"url(".concat(i.url,"#").concat(r,")"):"none"})},t.prototype.show=function(t){return void 0===t&&(t=!0),this.attr({visibility:t?"inherit":"visible"})},t.prototype["stroke-widthSetter"]=function(t,e,i){this[e]=t,i.setAttribute(e,t)},t.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t,e=this.getStyle("stroke-width"),i=0;return/px$/.test(e)?i=ic(e):""!==e&&(e3(t=e$.createElementNS(eQ,"rect"),{width:e,"stroke-width":0}),this.element.parentNode.appendChild(t),i=t.getBBox().width,t.parentNode.removeChild(t)),i},t.prototype.symbolAttr=function(e){var i=this;t.symbolCustomAttribs.forEach(function(t){i[t]=id(e[t],i[t])}),i.attr({d:i.renderer.symbols[i.symbolName](i.x,i.y,i.width,i.height,i)})},t.prototype.textSetter=function(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this),this.reAlign())},t.prototype.titleSetter=function(t){var e=this.element,i=e.getElementsByTagName("title")[0]||e$.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=iu(id(t,""),[/<[^>]*>/g,""]).replace(/&lt;/g,"<").replace(/&gt;/g,">")},t.prototype.toFront=function(){var t=this.element;return t.parentNode.appendChild(t),this},t.prototype.translate=function(t,e){return this.attr({translateX:t,translateY:e})},t.prototype.updateTransform=function(t){void 0===t&&(t="transform");var e,i=this.element,o=this.matrix,r=this.rotation,n=void 0===r?0:r,s=this.rotationOriginX,a=this.rotationOriginY,h=this.scaleX,l=this.scaleY,d=this.translateX,c=this.translateY,p=["translate("+(void 0===d?0:d)+","+(void 0===c?0:c)+")"];e4(o)&&p.push("matrix("+o.join(",")+")"),n&&(p.push("rotate("+n+" "+id(s,i.getAttribute("x"),0)+" "+id(a,i.getAttribute("y")||0)+")"),(null===(e=this.text)||void 0===e?void 0:e.element.tagName)==="SPAN"&&this.text.attr({rotation:n,rotationOriginX:(s||0)-this.padding,rotationOriginY:(a||0)-this.padding})),(e4(h)||e4(l))&&p.push("scale("+id(h,1)+" "+id(l,1)+")"),p.length&&!(this.text||this).textPath&&i.setAttribute(t,p.join(" "))},t.prototype.visibilitySetter=function(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},t.prototype.xGetter=function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},t.prototype.zIndexSetter=function(t,e){var i,o,r,n,s,a=this.renderer,h=this.parentGroup,l=(h||a).element||a.box,d=this.element,c=l===a.box,p=!1,u=this.added;if(e4(t)?(d.setAttribute("data-z-index",t),t=+t,this[e]===t&&(u=!1)):e4(this[e])&&d.removeAttribute("data-z-index"),this[e]=t,u){for((t=this.zIndex)&&h&&(h.handleZ=!0),s=(i=l.childNodes).length-1;s>=0&&!p;s--)n=!e4(r=(o=i[s]).getAttribute("data-z-index")),o!==d&&(t<0&&n&&!c&&!s?(l.insertBefore(d,i[s]),p=!0):(ic(r)<=t||n&&(!e4(t)||t>=0))&&(l.insertBefore(d,i[s+1]),p=!0));p||(l.insertBefore(d,i[c?3:0]),p=!0)}return p},t.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],t}();im.prototype.strokeSetter=im.prototype.fillSetter,im.prototype.yGetter=im.prototype.xGetter,im.prototype.matrixSetter=im.prototype.rotationOriginXSetter=im.prototype.rotationOriginYSetter=im.prototype.rotationSetter=im.prototype.scaleXSetter=im.prototype.scaleYSetter=im.prototype.translateXSetter=im.prototype.translateYSetter=im.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0};var iy=(a=function(t,e){return(a=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),ix=tI.defined,ib=tI.extend,iM=tI.getAlignFactor,ik=tI.isNumber,iw=tI.merge,iS=tI.pick,iA=tI.removeEvent,iT=function(t){function e(i,o,r,n,s,a,h,l,d,c){var p,u=t.call(this,i,"g")||this;return u.paddingLeftSetter=u.paddingSetter,u.paddingRightSetter=u.paddingSetter,u.doUpdate=!1,u.textStr=o,u.x=r,u.y=n,u.anchorX=a,u.anchorY=h,u.baseline=d,u.className=c,u.addClass("button"===c?"highcharts-no-tooltip":"highcharts-label"),c&&u.addClass("highcharts-"+c),u.text=i.text(void 0,0,0,l).attr({zIndex:1}),"string"==typeof s&&((p=/^url\((.*?)\)$/.test(s))||u.renderer.symbols[s])&&(u.symbolKey=s),u.bBox=e.emptyBBox,u.padding=3,u.baselineOffset=0,u.needsBox=i.styledMode||p,u.deferredAttr={},u.alignFactor=0,u}return iy(e,t),e.prototype.alignSetter=function(t){var e=iM(t);this.textAlign=t,e!==this.alignFactor&&(this.alignFactor=e,this.bBox&&ik(this.xSetting)&&this.attr({x:this.xSetting}))},e.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},e.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},e.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},e.prototype.css=function(t){if(t){var i={};t=iw(t),e.textProps.forEach(function(e){void 0!==t[e]&&(i[e]=t[e],delete t[e])}),this.text.css(i),"fontSize"in i||"fontWeight"in i?this.updateTextPadding():("width"in i||"textOverflow"in i)&&this.updateBoxSize()}return im.prototype.css.call(this,t)},e.prototype.destroy=function(){iA(this.element,"mouseenter"),iA(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),im.prototype.destroy.call(this)},e.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},e.prototype.getBBox=function(t,e){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var i=this.padding,o=this.height,r=this.translateX,n=this.translateY,s=this.width,a=iS(this.paddingLeft,i),h=null!=e?e:this.rotation||0,l={width:void 0===s?0:s,height:void 0===o?0:o,x:(void 0===r?0:r)+this.bBox.x-a,y:(void 0===n?0:n)+this.bBox.y-i+this.baselineOffset};return h&&(l=this.getRotatedBox(l,h)),l},e.prototype.getCrispAdjust=function(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},e.prototype.heightSetter=function(t){this.heightSetting=t,this.doUpdate=!0},e.prototype.afterSetters=function(){t.prototype.afterSetters.call(this),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)},e.prototype.onAdd=function(){this.text.add(this),this.attr({text:iS(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&ix(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},e.prototype.paddingSetter=function(t,e){ik(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0},e.prototype.rSetter=function(t,e){this.boxAttr(e,t)},e.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},e.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},e.prototype["text-alignSetter"]=function(t){this.textAlign=this["text-align"]=t,this.updateTextPadding()},e.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding(),this.reAlign()},e.prototype.updateBoxSize=function(){var t,i=this.text,o={},r=this.padding,n=this.bBox=(!ik(this.widthSetting)||!ik(this.heightSetting)||this.textAlign)&&ix(i.textStr)?i.getBBox(void 0,0):e.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||n.height||0)+2*r;var s=this.renderer.fontMetrics(i);if(this.baselineOffset=r+Math.min((this.text.firstLineMetrics||s).b,n.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-s.h)/2),this.needsBox&&!i.textPath){if(!this.box){var a=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();a.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),a.add(this)}t=this.getCrispAdjust(),o.x=t,o.y=(this.baseline?-this.baselineOffset:0)+t,o.width=Math.round(this.width),o.height=Math.round(this.height),this.box.attr(ib(o,this.deferredAttr)),this.deferredAttr={}}},e.prototype.updateTextPadding=function(){var t,e,i=this.text,o=i.styles.textAlign||this.textAlign;if(!i.textPath){this.updateBoxSize();var r=this.baseline?0:this.baselineOffset,n=(null!==(t=this.paddingLeft)&&void 0!==t?t:this.padding)+iM(o)*(null!==(e=this.widthSetting)&&void 0!==e?e:this.bBox.width);(n!==i.x||r!==i.y)&&(i.attr({align:o,x:n}),void 0!==r&&i.attr("y",r)),i.x=n,i.y=r}},e.prototype.widthSetter=function(t){this.widthSetting=ik(t)?t:void 0,this.doUpdate=!0},e.prototype.getPaddedWidth=function(){var t=this.padding,e=iS(this.paddingLeft,t),i=iS(this.paddingRight,t);return(this.widthSetting||this.bBox.width||0)+e+i},e.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},e.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},e.emptyBBox={width:0,height:0,x:0,y:0},e.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineClamp","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],e}(im),iP=tI.defined,iO=tI.isNumber,iC=tI.pick;function iE(t,e,i,o,r){var n=[];if(r){var s=r.start||0,a=iC(r.r,i),h=iC(r.r,o||i),l=2e-4/(r.borderRadius?1:Math.max(a,1)),d=Math.abs((r.end||0)-s-2*Math.PI)<l,c=(r.end||0)-(d?l:0),p=r.innerR,u=iC(r.open,d),f=Math.cos(s),g=Math.sin(s),v=Math.cos(c),m=Math.sin(c),y=iC(r.longArc,c-s-Math.PI<l?0:1),x=["A",a,h,0,y,iC(r.clockwise,1),t+a*v,e+h*m];x.params={start:s,end:c,cx:t,cy:e},n.push(["M",t+a*f,e+h*g],x),iP(p)&&((x=["A",p,p,0,y,iP(r.clockwise)?1-r.clockwise:0,t+p*f,e+p*g]).params={start:c,end:s,cx:t,cy:e},n.push(u?["M",t+p*v,e+p*m]:["L",t+p*v,e+p*m],x)),u||n.push(["Z"])}return n}function iL(t,e,i,o,r){return r&&r.r?iB(t,e,i,o,r):[["M",t,e],["L",t+i,e],["L",t+i,e+o],["L",t,e+o],["Z"]]}function iB(t,e,i,o,r){var n=(null==r?void 0:r.r)||0;return[["M",t+n,e],["L",t+i-n,e],["A",n,n,0,0,1,t+i,e+n],["L",t+i,e+o-n],["A",n,n,0,0,1,t+i-n,e+o],["L",t+n,e+o],["A",n,n,0,0,1,t,e+o-n],["L",t,e+n],["A",n,n,0,0,1,t+n,e],["Z"]]}var iI={arc:iE,callout:function(t,e,i,o,r){var n=Math.min(r&&r.r||0,i,o),s=n+6,a=r&&r.anchorX,h=r&&r.anchorY||0,l=iB(t,e,i,o,{r:n});if(!iO(a)||a<i&&a>0&&h<o&&h>0)return l;if(t+a>i-s){if(h>e+s&&h<e+o-s)l.splice(3,1,["L",t+i,h-6],["L",t+i+6,h],["L",t+i,h+6],["L",t+i,e+o-n]);else if(a<i){var d=h<e+s,c=d?e:e+o,p=d?2:5;l.splice(p,0,["L",a,h],["L",t+i-n,c])}else l.splice(3,1,["L",t+i,o/2],["L",a,h],["L",t+i,o/2],["L",t+i,e+o-n])}else if(t+a<s){if(h>e+s&&h<e+o-s)l.splice(7,1,["L",t,h+6],["L",t-6,h],["L",t,h-6],["L",t,e+n]);else if(a>0){var d=h<e+s,c=d?e:e+o,p=d?1:6;l.splice(p,0,["L",a,h],["L",t+n,c])}else l.splice(7,1,["L",t,o/2],["L",a,h],["L",t,o/2],["L",t,e+n])}else h>o&&a<i-s?l.splice(5,1,["L",a+6,e+o],["L",a,e+o+6],["L",a-6,e+o],["L",t+n,e+o]):h<0&&a>s&&l.splice(1,1,["L",a-6,e],["L",a,e-6],["L",a+6,e],["L",i-n,e]);return l},circle:function(t,e,i,o){return iE(t+i/2,e+o/2,i/2,o/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(t,e,i,o){return[["M",t+i/2,e],["L",t+i,e+o/2],["L",t+i/2,e+o],["L",t,e+o/2],["Z"]]},rect:iL,roundedRect:iB,square:iL,triangle:function(t,e,i,o){return[["M",t+i/2,e],["L",t+i,e+o],["L",t,e+o],["Z"]]},"triangle-down":function(t,e,i,o){return[["M",t,e],["L",t+i,e],["L",t+i/2,e+o],["Z"]]}},iD=ta.doc,iz=ta.SVG_NS,iR=ta.win,iN=tI.attr,iW=tI.extend,iG=tI.fireEvent,iX=tI.isString,iH=tI.objectEach,iF=tI.pick,iY=function(t,e){return t.substring(0,e)+"…"},ij=function(){function t(t){var e=t.styles;this.renderer=t.renderer,this.svgElement=t,this.width=t.textWidth,this.textLineHeight=e&&e.lineHeight,this.textOutline=e&&e.textOutline,this.ellipsis=!!(e&&"ellipsis"===e.textOverflow),this.lineClamp=null==e?void 0:e.lineClamp,this.noWrap=!!(e&&"nowrap"===e.whiteSpace)}return t.prototype.buildSVG=function(){var t=this.svgElement,e=t.element,i=t.renderer,o=iF(t.textStr,"").toString(),r=-1!==o.indexOf("<"),n=e.childNodes,s=!t.added&&i.box,a=[o,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,t.getStyle("font-size"),t.styles.lineClamp,this.width].join(",");if(a!==t.textCache){t.textCache=a,delete t.actualWidth;for(var h=n.length;h--;)e.removeChild(n[h]);if(r||this.ellipsis||this.width||t.textPath||-1!==o.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(o))){if(""!==o){s&&s.appendChild(e);var l=new eC(o);this.modifyTree(l.nodes),l.addToDOM(e),this.modifyDOM(),this.ellipsis&&-1!==(e.textContent||"").indexOf("…")&&t.attr("title",this.unescapeEntities(t.textStr||"",["&lt;","&gt;"])),s&&s.removeChild(e)}}else e.appendChild(iD.createTextNode(this.unescapeEntities(o)));iX(this.textOutline)&&t.applyTextOutline&&t.applyTextOutline(this.textOutline)}},t.prototype.modifyDOM=function(){var t,e=this,i=this.svgElement,o=iN(i.element,"x");for(i.firstLineMetrics=void 0;t=i.element.firstChild;)if(/^[\s\u200B]*$/.test(t.textContent||" "))i.element.removeChild(t);else break;[].forEach.call(i.element.querySelectorAll("tspan.highcharts-br"),function(t,r){t.nextSibling&&t.previousSibling&&(0===r&&1===t.previousSibling.nodeType&&(i.firstLineMetrics=i.renderer.fontMetrics(t.previousSibling)),iN(t,{dy:e.getLineHeight(t.nextSibling),x:o}))});var r=this.width||0;if(r){var n=function(t,n){var s,a=t.textContent||"",h=a.replace(/([^\^])-/g,"$1- ").split(" "),l=!e.noWrap&&(h.length>1||i.element.childNodes.length>1),d=e.getLineHeight(n),c=Math.max(0,r-.8*d),p=0,u=i.actualWidth;if(l){for(var f=[],g=[];n.firstChild&&n.firstChild!==t;)g.push(n.firstChild),n.removeChild(n.firstChild);for(;h.length;)if(h.length&&!e.noWrap&&p>0&&(f.push(t.textContent||""),t.textContent=h.join(" ").replace(/- /g,"-")),e.truncate(t,void 0,h,0===p&&u||0,r,c,function(t,e){return h.slice(0,e).join(" ").replace(/- /g,"-")}),u=i.actualWidth,p++,e.lineClamp&&p>=e.lineClamp){h.length&&(e.truncate(t,t.textContent||"",void 0,0,r,c,iY),t.textContent=(null===(s=t.textContent)||void 0===s?void 0:s.replace("…",""))+"…");break}g.forEach(function(e){n.insertBefore(e,t)}),f.forEach(function(e){n.insertBefore(iD.createTextNode(e),t);var i=iD.createElementNS(iz,"tspan");i.textContent="​",iN(i,{dy:d,x:o}),n.insertBefore(i,t)})}else e.ellipsis&&a&&e.truncate(t,a,void 0,0,r,c,iY)},s=function(t){[].slice.call(t.childNodes).forEach(function(e){e.nodeType===iR.Node.TEXT_NODE?n(e,t):(-1!==e.className.baseVal.indexOf("highcharts-br")&&(i.actualWidth=0),s(e))})};s(i.element)}},t.prototype.getLineHeight=function(t){var e=t.nodeType===iR.Node.TEXT_NODE?t.parentElement:t;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e||this.svgElement.element).h},t.prototype.modifyTree=function(t){var e=this,i=function(o,r){var n=o.attributes,s=void 0===n?{}:n,a=o.children,h=o.style,l=void 0===h?{}:h,d=o.tagName,c=e.renderer.styledMode;if("b"===d||"strong"===d?c?s.class="highcharts-strong":l.fontWeight="bold":("i"===d||"em"===d)&&(c?s.class="highcharts-emphasized":l.fontStyle="italic"),l&&l.color&&(l.fill=l.color),"br"===d){s.class="highcharts-br",o.textContent="​";var p=t[r+1];p&&p.textContent&&(p.textContent=p.textContent.replace(/^ +/gm,""))}else"a"===d&&a&&a.some(function(t){return"#text"===t.tagName})&&(o.children=[{children:a,tagName:"tspan"}]);"#text"!==d&&"a"!==d&&(o.tagName="tspan"),iW(o,{attributes:s,style:l}),a&&a.filter(function(t){return"#text"!==t.tagName}).forEach(i)};t.forEach(i),iG(this.svgElement,"afterModifyTree",{nodes:t})},t.prototype.truncate=function(t,e,i,o,r,n,s){var a,h,l=this.svgElement,d=l.rotation,c=[],p=i&&!o?1:0,u=(e||i||"").length,f=u;i||(r=n);var g=function(e,r){var n=r||e,s=t.parentNode;if(s&&void 0===c[n]&&s.getSubStringLength)try{c[n]=o+s.getSubStringLength(0,i?n+1:n)}catch(t){}return c[n]};if(l.rotation=0,o+(h=g(t.textContent.length))>r){for(;p<=u;)f=Math.ceil((p+u)/2),i&&(a=s(i,f)),h=g(f,a&&a.length-1),p===u?p=u+1:h>r?u=f-1:p=f;0===u?t.textContent="":e&&u===e.length-1||(t.textContent=a||s(e||i,f)),this.ellipsis&&h>r&&this.truncate(t,t.textContent||"",void 0,0,r,n,iY)}i&&i.splice(0,f),l.actualWidth=h,l.rotation=d},t.prototype.unescapeEntities=function(t,e){return iH(this.renderer.escapes,function(i,o){e&&-1!==e.indexOf(i)||(t=t.toString().replace(RegExp(i,"g"),o))}),t},t}(),i_=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},iU=ta.charts,iV=ta.deg2rad,iq=ta.doc,iZ=ta.isFirefox,iK=ta.isMS,i$=ta.isWebKit,iJ=ta.noop,iQ=ta.SVG_NS,i0=ta.symbolSizes,i1=ta.win,i2=tI.addEvent,i3=tI.attr,i5=tI.createElement,i6=tI.crisp,i9=tI.css,i4=tI.defined,i8=tI.destroyObjectProperties,i7=tI.extend,ot=tI.isArray,oe=tI.isNumber,oi=tI.isObject,oo=tI.isString,or=tI.merge,on=tI.pick,os=tI.pInt,oa=tI.replaceNested,oh=tI.uniqueKey,ol=function(){function t(t,e,i,o,r,n,s){var a,h,l=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),d=l.element;s||l.css(this.getStyle(o||{})),t.appendChild(d),i3(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&i3(d,"xmlns",this.SVG_NS),this.box=d,this.boxWrapper=l,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(iq.createTextNode("Created with Highcharts 12.1.2")),this.defs=this.createElement("defs").add(),this.allowHTML=n,this.forExport=r,this.styledMode=s,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=l.getStyle("font-size"),this.setSize(e,i,!1),iZ&&t.getBoundingClientRect&&((a=function(){i9(t,{left:0,top:0}),h=t.getBoundingClientRect(),i9(t,{left:Math.ceil(h.left)-h.left+"px",top:Math.ceil(h.top)-h.top+"px"})})(),this.unSubPixelFix=i2(i1,"resize",a))}return t.prototype.definition=function(t){return new eC([t]).addToDOM(this.defs.element)},t.prototype.getReferenceURL=function(){if((iZ||i$)&&iq.getElementsByTagName("base").length){if(!i4(R)){var t=oh(),e=new eC([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:t},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(t,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(iq.body);i9(e,{position:"fixed",top:0,left:0,zIndex:9e5});var i=iq.elementFromPoint(6,6);R="hitme"===(i&&i.id),iq.body.removeChild(e)}if(R)return oa(i1.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""},t.prototype.getStyle=function(t){return this.style=i7({fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif',fontSize:"1rem"},t),this.style},t.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},t.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},t.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),i8(this.gradients||{}),this.gradients=null,this.defs=t.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null},t.prototype.createElement=function(t){return new this.Element(this,t)},t.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}},t.prototype.shadowDefinition=function(t){var e=i_(["highcharts-drop-shadow-".concat(this.chartIndex)],Object.keys(t).map(function(e){return""+e+"-".concat(t[e])}),!0).join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),i=or({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},t);return this.defs.element.querySelector("#".concat(e))||this.definition({tagName:"filter",attributes:{id:e,filterUnits:i.filterUnits},children:this.getShadowFilterContent(i)}),e},t.prototype.getShadowFilterContent=function(t){return[{tagName:"feDropShadow",attributes:{dx:t.offsetX,dy:t.offsetY,"flood-color":t.color,"flood-opacity":Math.min(5*t.opacity,1),stdDeviation:t.width/2}}]},t.prototype.buildText=function(t){new ij(t).buildSVG()},t.prototype.getContrast=function(t){var e=t4.parse(t).rgba.map(function(t){var e=t/255;return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),i=.2126*e[0]+.7152*e[1]+.0722*e[2];return 1.05/(i+.05)>(i+.05)/.05?"#FFFFFF":"#000000"},t.prototype.button=function(t,e,i,o,r,n,s,a,h,l){void 0===r&&(r={});var d=this.label(t,e,i,h,void 0,void 0,l,void 0,"button"),c=this.styledMode,p=arguments,u=0;r=or(t0.global.buttonTheme,r),c&&(delete r.fill,delete r.stroke,delete r["stroke-width"]);var f=r.states||{},g=r.style||{};delete r.states,delete r.style;var v=[eC.filterUserAttributes(r)],m=[g];return c||["hover","select","disabled"].forEach(function(t,e){v.push(or(v[0],eC.filterUserAttributes(p[e+5]||f[t]||{}))),m.push(v[e+1].style),delete v[e+1].style}),i2(d.element,iK?"mouseover":"mouseenter",function(){3!==u&&d.setState(1)}),i2(d.element,iK?"mouseout":"mouseleave",function(){3!==u&&d.setState(u)}),d.setState=function(t){if(void 0===t&&(t=0),1!==t&&(d.state=u=t),d.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t]),!c){d.attr(v[t]);var e=m[t];oi(e)&&d.css(e)}},d.attr(v[0]),!c&&(d.css(i7({cursor:"default"},g)),l&&d.text.css({pointerEvents:"none"})),d.on("touchstart",function(t){return t.stopPropagation()}).on("click",function(t){3!==u&&o.call(d,t)})},t.prototype.crispLine=function(t,e){var i=t[0],o=t[1];return i4(i[1])&&i[1]===o[1]&&(i[1]=o[1]=i6(i[1],e)),i4(i[2])&&i[2]===o[2]&&(i[2]=o[2]=i6(i[2],e)),t},t.prototype.path=function(t){var e=this.styledMode?{}:{fill:"none"};return ot(t)?e.d=t:oi(t)&&i7(e,t),this.createElement("path").attr(e)},t.prototype.circle=function(t,e,i){var o=oi(t)?t:void 0===t?{}:{x:t,y:e,r:i},r=this.createElement("circle");return r.xSetter=r.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},r.attr(o)},t.prototype.arc=function(t,e,i,o,r,n){oi(t)?(e=(s=t).y,i=s.r,o=s.innerR,r=s.start,n=s.end,t=s.x):s={innerR:o,start:r,end:n};var s,a=this.symbol("arc",t,e,i,i,s);return a.r=i,a},t.prototype.rect=function(t,e,i,o,r,n){var s=oi(t)?t:void 0===t?{}:{x:t,y:e,r:r,width:Math.max(i||0,0),height:Math.max(o||0,0)},a=this.createElement("rect");return this.styledMode||(void 0!==n&&(s["stroke-width"]=n,i7(s,a.crisp(s))),s.fill="none"),a.rSetter=function(t,e,i){a.r=t,i3(i,{rx:t,ry:t})},a.rGetter=function(){return a.r||0},a.attr(s)},t.prototype.roundedRect=function(t){return this.symbol("roundedRect").attr(t)},t.prototype.setSize=function(t,e,i){this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:on(i,!0)?void 0:0}),this.alignElements()},t.prototype.g=function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},t.prototype.image=function(t,e,i,o,r,n){var s={preserveAspectRatio:"none"};oe(e)&&(s.x=e),oe(i)&&(s.y=i),oe(o)&&(s.width=o),oe(r)&&(s.height=r);var a=this.createElement("image").attr(s),h=function(e){a.attr({href:t}),n.call(a,e)};if(n){a.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});var l=new i1.Image;i2(l,"load",h),l.src=t,l.complete&&h({})}else a.attr({href:t});return a},t.prototype.symbol=function(t,e,i,o,r,n){var s,a,h,l,d=this,c=/^url\((.*?)\)$/,p=c.test(t),u=!p&&(this.symbols[t]?t:"circle"),f=u&&this.symbols[u];if(f)"number"==typeof e&&(a=f.call(this.symbols,e||0,i||0,o||0,r||0,n)),s=this.path(a),d.styledMode||s.attr("fill","none"),i7(s,{symbolName:u||void 0,x:e,y:i,width:o,height:r}),n&&i7(s,n);else if(p){h=t.match(c)[1];var g=s=this.image(h);g.imgwidth=on(n&&n.width,i0[h]&&i0[h].width),g.imgheight=on(n&&n.height,i0[h]&&i0[h].height),l=function(t){return t.attr({width:t.width,height:t.height})},["width","height"].forEach(function(t){g[""+t+"Setter"]=function(t,e){this[e]=t;var i=this.alignByTranslate,o=this.element,r=this.width,s=this.height,a=this.imgwidth,h=this.imgheight,l="width"===e?a:h,d=1;n&&"within"===n.backgroundSize&&r&&s&&a&&h?(d=Math.min(r/a,s/h),i3(o,{width:Math.round(a*d),height:Math.round(h*d)})):o&&l&&o.setAttribute(e,l),!i&&a&&h&&this.translate(((r||0)-a*d)/2,((s||0)-h*d)/2)}}),i4(e)&&g.attr({x:e,y:i}),g.isImg=!0,g.symbolUrl=t,i4(g.imgwidth)&&i4(g.imgheight)?l(g):(g.attr({width:0,height:0}),i5("img",{onload:function(){var t=iU[d.chartIndex];0===this.width&&(i9(this,{position:"absolute",top:"-999em"}),iq.body.appendChild(this)),i0[h]={width:this.width,height:this.height},g.imgwidth=this.width,g.imgheight=this.height,g.element&&l(g),this.parentNode&&this.parentNode.removeChild(this),d.imgCount--,d.imgCount||!t||t.hasLoaded||t.onload()},src:h}),this.imgCount++)}return s},t.prototype.clipRect=function(t,e,i,o){return this.rect(t,e,i,o,0)},t.prototype.text=function(t,e,i,o){var r={};if(o&&(this.allowHTML||!this.forExport))return this.html(t,e,i);r.x=Math.round(e||0),i&&(r.y=Math.round(i)),i4(t)&&(r.text=t);var n=this.createElement("text").attr(r);return o&&(!this.forExport||this.allowHTML)||(n.xSetter=function(t,e,i){for(var o=i.getElementsByTagName("tspan"),r=i.getAttribute(e),n=0,s=void 0;n<o.length;n++)(s=o[n]).getAttribute(e)===r&&s.setAttribute(e,t);i.setAttribute(e,t)}),n},t.prototype.fontMetrics=function(t){var e=os(im.prototype.getStyle.call(t,"font-size")||0),i=e<24?e+3:Math.round(1.2*e),o=Math.round(.8*i);return{h:i,b:o,f:e}},t.prototype.rotCorr=function(t,e,i){var o=t;return e&&i&&(o=Math.max(o*Math.cos(e*iV),4)),{x:-t/3*Math.sin(e*iV),y:o}},t.prototype.pathToSegments=function(t){for(var e=[],i=[],o={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},r=0;r<t.length;r++)oo(i[0])&&oe(t[r])&&i.length===o[i[0].toUpperCase()]&&t.splice(r,0,i[0].replace("M","L").replace("m","l")),"string"==typeof t[r]&&(i.length&&e.push(i.slice(0)),i.length=0),i.push(t[r]);return e.push(i.slice(0)),e},t.prototype.label=function(t,e,i,o,r,n,s,a,h){return new iT(this,t,e,i,o,r,n,s,a,h)},t.prototype.alignElements=function(){this.alignedObjects.forEach(function(t){return t.align()})},t}();i7(ol.prototype,{Element:im,SVG_NS:iQ,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:iI,draw:iJ}),ej.registerRendererType("svg",ol,!0);var od=(h=function(t,e){return(h=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}h(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),oc=function(){return(oc=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},op=ta.composed,ou=tI.attr,of=tI.css,og=tI.createElement,ov=tI.defined,om=tI.extend,oy=tI.getAlignFactor,ox=tI.isNumber,ob=tI.pInt,oM=tI.pushUnique;function ok(t,e,i){var o,r=(null===(o=this.div)||void 0===o?void 0:o.style)||i.style;im.prototype[""+e+"Setter"].call(this,t,e,i),r&&(r[e]=t)}var ow=function(t,e){var i;if(!t.div){var o=ou(t.element,"class"),r=t.css,n=og("div",o?{className:o}:void 0,oc(oc({position:"absolute",left:""+(t.translateX||0)+"px",top:""+(t.translateY||0)+"px"},t.styles),{display:t.display,opacity:t.opacity,visibility:t.visibility}),(null===(i=t.parentGroup)||void 0===i?void 0:i.div)||e);t.classSetter=function(t,e,i){i.setAttribute("class",t),n.className=t},t.translateXSetter=t.translateYSetter=function(e,i){t[i]=e,n.style["translateX"===i?"left":"top"]=""+e+"px",t.doTransform=!0},t.opacitySetter=t.visibilitySetter=ok,t.css=function(e){return r.call(t,e),e.cursor&&(n.style.cursor=e.cursor),e.pointerEvents&&(n.style.pointerEvents=e.pointerEvents),t},t.on=function(){return im.prototype.on.apply({element:n,onEvents:t.onEvents},arguments),t},t.div=n}return t.div},oS=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o.css(oc({position:"absolute"},e.styledMode?{}:{fontFamily:e.style.fontFamily,fontSize:e.style.fontSize})),o}return od(e,t),e.compose=function(t){oM(op,this.compose)&&(t.prototype.html=function(t,i,o){return new e(this,"span").attr({text:t,x:Math.round(i),y:Math.round(o)})})},e.prototype.getSpanCorrection=function(t,e,i){this.xCorr=-t*i,this.yCorr=-e},e.prototype.css=function(t){var e,i=this.element,o="SPAN"===i.tagName&&t&&"width"in t,r=o&&t.width;return o&&(delete t.width,this.textWidth=ob(r)||void 0,e=!0),(null==t?void 0:t.textOverflow)==="ellipsis"&&(t.overflow="hidden"),(null==t?void 0:t.lineClamp)&&(t.display="-webkit-box",t.WebkitLineClamp=t.lineClamp,t.WebkitBoxOrient="vertical",t.overflow="hidden"),ox(Number(null==t?void 0:t.fontSize))&&(t.fontSize=t.fontSize+"px"),om(this.styles,t),of(i,t),e&&this.updateTransform(),this},e.prototype.htmlGetBBox=function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},e.prototype.updateTransform=function(){if(!this.added){this.alignOnAdd=!0;return}var t,e=this.element,i=this.renderer,o=this.rotation,r=this.rotationOriginX,n=this.rotationOriginY,s=this.scaleX,a=this.scaleY,h=this.styles,l=this.textAlign,d=void 0===l?"left":l,c=this.textWidth,p=this.translateX,u=this.translateY,f=this.x,g=void 0===f?0:f,v=this.y,m=void 0===v?0:v,y=h.display,x=h.whiteSpace;if(of(e,{marginLeft:""+(void 0===p?0:p)+"px",marginTop:""+(void 0===u?0:u)+"px"}),"SPAN"===e.tagName){var b=[o,d,e.innerHTML,c,this.textAlign].join(","),M=-((null===(t=this.parentGroup)||void 0===t?void 0:t.padding)*1)||0,k=void 0;if(c!==this.oldTextWidth){var w=this.textPxLength?this.textPxLength:(of(e,{width:"",whiteSpace:x||"nowrap"}),e.offsetWidth),S=c||0;(S>this.oldTextWidth||w>S)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(of(e,{width:w>S||o||s?c+"px":"auto",display:void 0===y?"block":y,whiteSpace:x||"normal"}),this.oldTextWidth=c)}b!==this.cTT&&(k=i.fontMetrics(e).b,ov(o)&&(o!==(this.oldRotation||0)||d!==this.oldAlign)&&this.setSpanRotation(o,M,M),this.getSpanCorrection(!ov(o)&&!this.textWidth&&this.textPxLength||e.offsetWidth,k,oy(d)));var A=this.xCorr,T=void 0===A?0:A,P=this.yCorr,O=void 0===P?0:P,C=(null!=r?r:g)-T-g-M,E=(null!=n?n:m)-O-m-M,L={left:""+(g+T)+"px",top:""+(m+O)+"px",textAlign:d,transformOrigin:""+C+"px "+E+"px"};(s||a)&&(L.transform="scale(".concat(null!=s?s:1,",").concat(null!=a?a:1,")")),of(e,L),this.cTT=b,this.oldRotation=o,this.oldAlign=d}},e.prototype.setSpanRotation=function(t,e,i){of(this.element,{transform:"rotate(".concat(t,"deg)"),transformOrigin:""+e+"% "+i+"px"})},e.prototype.add=function(t){var e,i=this.renderer.box.parentNode,o=[];if(this.parentGroup=t,t&&!(e=t.div)){for(var r=t;r;)o.push(r),r=r.parentGroup;for(var n=0,s=o.reverse();n<s.length;n++)e=ow(s[n],i)}return(e||i).appendChild(this.element),this.added=!0,this.alignOnAdd&&this.updateTransform(),this},e.prototype.textSetter=function(t){t!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,eC.setElementHTML(this.element,null!=t?t:""),this.textStr=t,this.doTransform=!0)},e.prototype.alignSetter=function(t){this.alignValue=this.textAlign=t,this.doTransform=!0},e.prototype.xSetter=function(t,e){this[e]=t,this.doTransform=!0},e}(im),oA=oS.prototype;oA.visibilitySetter=oA.opacitySetter=ok,oA.ySetter=oA.rotationSetter=oA.rotationOriginXSetter=oA.rotationOriginYSetter=oA.xSetter,(l=N||(N={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%[HMSL]",range:!1},second:{main:"%[HMS]",range:!1},minute:{main:"%[HM]",range:!1},hour:{main:"%[HM]",range:!1},day:{main:"%[eb]"},week:{main:"%[eb]"},month:{main:"%[bY]"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em",textOverflow:"ellipsis"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},l.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};var oT=N,oP=tI.addEvent,oO=tI.isFunction,oC=tI.objectEach,oE=tI.removeEvent;(W||(W={})).registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},oC(e.events,function(e,i){t.eventOptions[i]!==e&&(t.eventOptions[i]&&(oE(t,i,t.eventOptions[i]),delete t.eventOptions[i]),oO(e)&&(t.eventOptions[i]=e,oP(t,i,e,{order:0})))})};var oL=W,oB=ta.deg2rad,oI=tI.clamp,oD=tI.correctFloat,oz=tI.defined,oR=tI.destroyObjectProperties,oN=tI.extend,oW=tI.fireEvent,oG=tI.getAlignFactor,oX=tI.isNumber,oH=tI.merge,oF=tI.objectEach,oY=tI.pick,oj=function(){function t(t,e,i,o,r){this.isNew=!0,this.isNewLabel=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=r||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,oW(this,"init"),i||o||this.addLabel()}return t.prototype.addLabel=function(){var t,e,i,o=this,r=o.axis,n=r.options,s=r.chart,a=r.categories,h=r.logarithmic,l=r.names,d=o.pos,c=oY(o.options&&o.options.labels,n.labels),p=r.tickPositions,u=d===p[0],f=d===p[p.length-1],g=(!c.step||1===c.step)&&1===r.tickInterval,v=p.info,m=o.label,y=this.parameters.category||(a?oY(a[d],l[d],d):d);h&&oX(y)&&(y=oD(h.lin2log(y))),r.dateTime&&(v?t=(e=s.time.resolveDTLFormat(n.dateTimeLabelFormats[!n.grid&&v.higherRanks[d]||v.unitName])).main:oX(y)&&(t=r.dateTime.getXDateFormat(y,n.dateTimeLabelFormats||{}))),o.isFirst=u,o.isLast=f;var x={axis:r,chart:s,dateTimeLabelFormat:t,isFirst:u,isLast:f,pos:d,tick:o,tickPositionInfo:v,value:y};oW(this,"labelFormat",x);var b=function(t){return c.formatter?c.formatter.call(t,t):c.format?(t.text=r.defaultLabelFormatter.call(t),eY.format(c.format,t,s)):r.defaultLabelFormatter.call(t)},M=b.call(x,x),k=e&&e.list;k?o.shortenLabel=function(){for(i=0;i<k.length;i++)if(oN(x,{dateTimeLabelFormat:k[i]}),m.attr({text:b.call(x,x)}),m.getBBox().width<r.getSlotWidth(o)-2*(c.padding||0))return;m.attr({text:""})}:o.shortenLabel=void 0,g&&r._addedPlotLB&&o.moveLabel(M,c),oz(m)||o.movedLabel?m&&m.textStr!==M&&!g&&(!m.textWidth||c.style.width||m.styles.width||m.css({width:null}),m.attr({text:M}),m.textPxLength=m.getBBox().width):(o.label=m=o.createLabel(M,c),o.rotation=0)},t.prototype.createLabel=function(t,e,i){var o=this.axis,r=o.chart,n=r.renderer,s=r.styledMode,a=oz(t)&&e.enabled?n.text(t,null==i?void 0:i.x,null==i?void 0:i.y,e.useHTML).add(o.labelGroup):void 0;if(a){var h=e.style.whiteSpace||"normal";s||a.css(oH(e.style,{whiteSpace:"nowrap"})),a.textPxLength=a.getBBox().width,s||a.css({whiteSpace:h})}return a},t.prototype.destroy=function(){oR(this,this.axis)},t.prototype.getPosition=function(t,e,i,o){var r=this.axis,n=r.chart,s=o&&n.oldChartHeight||n.chartHeight,a={x:t?oD(r.translate(e+i,void 0,void 0,o)+r.transB):r.left+r.offset+(r.opposite?(o&&n.oldChartWidth||n.chartWidth)-r.right-r.left:0),y:t?s-r.bottom+r.offset-(r.opposite?r.height:0):oD(s-r.translate(e+i,void 0,void 0,o)-r.transB)};return a.y=oI(a.y,-1e9,1e9),oW(this,"afterGetPosition",{pos:a}),a},t.prototype.getLabelPosition=function(t,e,i,o,r,n,s,a){var h,l,d=this.axis,c=d.transA,p=d.isLinked&&d.linkedParent?d.linkedParent.reversed:d.reversed,u=d.staggerLines,f=d.tickRotCorr||{x:0,y:0},g=o||d.reserveSpaceDefault?0:-d.labelOffset*("center"===d.labelAlign?.5:1),v=r.distance,m={};return h=0===d.side?i.rotation?-v:-i.getBBox().height:2===d.side?f.y+v:Math.cos(i.rotation*oB)*(f.y-i.getBBox(!1,0).height/2),oz(r.y)&&(h=0===d.side&&d.horiz?r.y+h:r.y),t=t+oY(r.x,[0,1,0,-1][d.side]*v)+g+f.x-(n&&o?n*c*(p?-1:1):0),e=e+h-(n&&!o?n*c*(p?1:-1):0),u&&(l=s/(a||1)%u,d.opposite&&(l=u-l-1),e+=l*(d.labelOffset/u)),m.x=t,m.y=Math.round(e),oW(this,"afterGetLabelPosition",{pos:m,tickmarkOffset:n,index:s}),m},t.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},t.prototype.getMarkPath=function(t,e,i,o,r,n){return void 0===r&&(r=!1),n.crispLine([["M",t,e],["L",t+(r?0:-i),e+(r?i:0)]],o)},t.prototype.handleOverflow=function(t){var e,i,o,r=this.axis,n=r.options.labels,s=t.x,a=r.chart.chartWidth,h=r.chart.spacing,l=oY(r.labelLeft,Math.min(r.pos,h[3])),d=oY(r.labelRight,Math.max(r.isRadial?0:r.pos+r.len,a-h[1])),c=this.label,p=this.rotation,u=oG(r.labelAlign||c.attr("align")),f=c.getBBox().width,g=r.getSlotWidth(this),v=g,m=1;p||"justify"!==n.overflow?p<0&&s-u*f<l?o=Math.round(s/Math.cos(p*oB)-l):p>0&&s+u*f>d&&(o=Math.round((a-s)/Math.cos(p*oB))):(e=s-u*f,i=s+(1-u)*f,e<l?v=t.x+v*(1-u)-l:i>d&&(v=d-t.x+v*u,m=-1),(v=Math.min(g,v))<g&&"center"===r.labelAlign&&(t.x+=m*(g-v-u*(g-Math.min(f,v)))),(f>v||r.autoRotation&&(c.styles||{}).width)&&(o=v)),o&&c&&(this.shortenLabel?this.shortenLabel():c.css(oN({},{width:Math.floor(o)+"px",lineClamp:r.isRadial?0:1})))},t.prototype.moveLabel=function(t,e){var i,o=this,r=o.label,n=o.axis,s=!1;r&&r.textStr===t?(o.movedLabel=r,s=!0,delete o.label):oF(n.ticks,function(e){s||e.isNew||e===o||!e.label||e.label.textStr!==t||(o.movedLabel=e.label,s=!0,e.labelPos=o.movedLabel.xy,delete e.label)}),!s&&(o.labelPos||r)&&(i=o.labelPos||r.xy,o.movedLabel=o.createLabel(t,e,i),o.movedLabel&&o.movedLabel.attr({opacity:0}))},t.prototype.render=function(t,e,i){var o=this.axis,r=o.horiz,n=this.pos,s=oY(this.tickmarkOffset,o.tickmarkOffset),a=this.getPosition(r,n,s,e),h=a.x,l=a.y,d=o.pos,c=d+o.len,p=r?h:l;!o.chart.polar&&this.isNew&&(oD(p)<d||p>c)&&(i=0);var u=oY(i,this.label&&this.label.newOpacity,1);i=oY(i,1),this.isActive=!0,this.renderGridLine(e,i),this.renderMark(a,i),this.renderLabel(a,e,u,t),this.isNew=!1,oW(this,"afterRender")},t.prototype.renderGridLine=function(t,e){var i,o=this.axis,r=o.options,n={},s=this.pos,a=this.type,h=oY(this.tickmarkOffset,o.tickmarkOffset),l=o.chart.renderer,d=this.gridLine,c=r.gridLineWidth,p=r.gridLineColor,u=r.gridLineDashStyle;"minor"===this.type&&(c=r.minorGridLineWidth,p=r.minorGridLineColor,u=r.minorGridLineDashStyle),d||(o.chart.styledMode||(n.stroke=p,n["stroke-width"]=c||0,n.dashstyle=u),a||(n.zIndex=1),t&&(e=0),this.gridLine=d=l.path().attr(n).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(o.gridGroup)),d&&(i=o.getPlotLinePath({value:s+h,lineWidth:d.strokeWidth(),force:"pass",old:t,acrossPanes:!1}))&&d[t||this.isNew?"attr":"animate"]({d:i,opacity:e})},t.prototype.renderMark=function(t,e){var i=this.axis,o=i.options,r=i.chart.renderer,n=this.type,s=i.tickSize(n?n+"Tick":"tick"),a=t.x,h=t.y,l=oY(o["minor"!==n?"tickWidth":"minorTickWidth"],!n&&i.isXAxis?1:0),d=o["minor"!==n?"tickColor":"minorTickColor"],c=this.mark,p=!c;s&&(i.opposite&&(s[0]=-s[0]),c||(this.mark=c=r.path().addClass("highcharts-"+(n?n+"-":"")+"tick").add(i.axisGroup),i.chart.styledMode||c.attr({stroke:d,"stroke-width":l})),c[p?"attr":"animate"]({d:this.getMarkPath(a,h,s[0],c.strokeWidth(),i.horiz,r),opacity:e}))},t.prototype.renderLabel=function(t,e,i,o){var r=this.axis,n=r.horiz,s=r.options,a=this.label,h=s.labels,l=h.step,d=oY(this.tickmarkOffset,r.tickmarkOffset),c=t.x,p=t.y,u=!0;a&&oX(c)&&(a.xy=t=this.getLabelPosition(c,p,a,n,h,d,o,l),(!this.isFirst||this.isLast||s.showFirstLabel)&&(!this.isLast||this.isFirst||s.showLastLabel)?!n||h.step||h.rotation||e||0===i||this.handleOverflow(t):u=!1,l&&o%l&&(u=!1),u&&oX(t.y)?(t.opacity=i,a[this.isNewLabel?"attr":"animate"](t).show(!0),this.isNewLabel=!1):(a.hide(),this.isNewLabel=!0))},t.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis;t&&!this.isNew&&(t.animate({opacity:0},void 0,t.destroy),delete this.label),e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},t}(),o_=oT.xAxis,oU=oT.yAxis,oV=oL.registerEventOptions,oq=ta.deg2rad,oZ=tI.arrayMax,oK=tI.arrayMin,o$=tI.clamp,oJ=tI.correctFloat,oQ=tI.defined,o0=tI.destroyObjectProperties,o1=tI.erase,o2=tI.error,o3=tI.extend,o5=tI.fireEvent,o6=tI.getClosestDistance,o9=tI.insertItem,o4=tI.isArray,o8=tI.isNumber,o7=tI.isString,rt=tI.merge,re=tI.normalizeTickInterval,ri=tI.objectEach,ro=tI.pick,rr=tI.relativeLength,rn=tI.removeEvent,rs=tI.splat,ra=tI.syncTimeout,rh=function(t,e){return re(e,void 0,void 0,ro(t.options.allowDecimals,e<.5||void 0!==t.tickAmount),!!t.tickAmount)};o3(t0,{xAxis:o_,yAxis:rt(o_,oU)});var rl=function(){function t(t,e,i){this.init(t,e,i)}return t.prototype.init=function(t,e,i){void 0===i&&(i=this.coll);var o,r,n,s,a="xAxis"===i,h=this.isZAxis||(t.inverted?!a:a);this.chart=t,this.horiz=h,this.isXAxis=a,this.coll=i,o5(this,"init",{userOptions:e}),this.opposite=ro(e.opposite,this.opposite),this.side=ro(e.side,this.side,h?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);var l=this.options,d=l.labels;null!==(o=this.type)&&void 0!==o||(this.type=l.type||"linear"),null!==(r=this.uniqueNames)&&void 0!==r||(this.uniqueNames=null===(n=l.uniqueNames)||void 0===n||n),o5(this,"afterSetType"),this.userOptions=e,this.minPixelPadding=0,this.reversed=ro(l.reversed,this.reversed),this.visible=l.visible,this.zoomEnabled=l.zoomEnabled,this.hasNames="category"===this.type||!0===l.categories,this.categories=o4(l.categories)&&l.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=oQ(l.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},null!==(s=this.len)&&void 0!==s||(this.len=0),this.minRange=this.userMinRange=l.minRange||l.maxZoom,this.range=l.range,this.offset=l.offset||0,this.max=void 0,this.min=void 0;var c=ro(l.crosshair,rs(t.options.tooltip.crosshairs)[a?0:1]);this.crosshair=!0===c?{}:c,-1===t.axes.indexOf(this)&&(a?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),o9(this,t[this.coll])),t.orderItems(this.coll),this.series=this.series||[],t.inverted&&!this.isZAxis&&a&&!oQ(this.reversed)&&(this.reversed=!0),this.labelRotation=o8(d.rotation)?d.rotation:void 0,oV(this,l),o5(this,"afterInit")},t.prototype.setOptions=function(t){var e=this.horiz?{labels:{autoRotation:[-45],padding:3},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=rt(e,t0[this.coll],t),o5(this,"afterSetOptions",{userOptions:t})},t.prototype.defaultLabelFormatter=function(){var t,e,i=this.axis,o=this.chart.numberFormatter,r=o8(this.value)?this.value:NaN,n=i.chart.time,s=i.categories,a=this.dateTimeLabelFormat,h=t0.lang,l=h.numericSymbols,d=h.numericSymbolMagnitude||1e3,c=i.logarithmic?Math.abs(r):i.tickInterval,p=l&&l.length;if(s)e="".concat(this.value);else if(a)e=n.dateFormat(a,r,!0);else if(p&&l&&c>=1e3)for(;p--&&void 0===e;)c>=(t=Math.pow(d,p+1))&&10*r%t==0&&null!==l[p]&&0!==r&&(e=o(r/t,-1)+l[p]);return void 0===e&&(e=Math.abs(r)>=1e4?o(r,-1):o(r,-1,void 0,"")),e},t.prototype.getSeriesExtremes=function(){var t,e=this;o5(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=void 0,e.softThreshold=!e.isXAxis,e.series.forEach(function(i){if(i.reserveSpace()){var o=i.options,r=void 0,n=o.threshold,s=void 0,a=void 0;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=(n||0)&&(n=void 0),e.isXAxis)(r=i.getColumn("x")).length&&(r=e.logarithmic?r.filter(function(t){return t>0}):r,s=(t=i.getXExtremes(r)).min,a=t.max,o8(s)||s instanceof Date||(r=r.filter(o8),s=(t=i.getXExtremes(r)).min,a=t.max),r.length&&(e.dataMin=Math.min(ro(e.dataMin,s),s),e.dataMax=Math.max(ro(e.dataMax,a),a)));else{var h=i.applyExtremes();o8(h.dataMin)&&(s=h.dataMin,e.dataMin=Math.min(ro(e.dataMin,s),s)),o8(h.dataMax)&&(a=h.dataMax,e.dataMax=Math.max(ro(e.dataMax,a),a)),oQ(n)&&(e.threshold=n),(!o.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}})}),o5(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,i,o,r,n){var s,a=this.linkedParent||this,h=o&&a.old?a.old.min:a.min;if(!o8(h))return NaN;var l=a.minPixelPadding,d=(a.isOrdinal||(null===(s=a.brokenAxis)||void 0===s?void 0:s.hasBreaks)||a.logarithmic&&r)&&a.lin2val,c=1,p=0,u=o&&a.old?a.old.transA:a.transA,f=0;return u||(u=a.transA),i&&(c*=-1,p=a.len),a.reversed&&(c*=-1,p-=c*(a.sector||a.len)),e?(f=(t=t*c+p-l)/u+h,d&&(f=a.lin2val(f))):(d&&(t=a.val2lin(t)),f=c*(t-h)*u+p+c*l+(o8(n)?u*n:0),a.isRadial||(f=oJ(f))),f},t.prototype.toPixels=function(t,e){var i,o;return this.translate(null!==(o=null===(i=this.chart)||void 0===i?void 0:i.time.parse(t))&&void 0!==o?o:NaN,!1,!this.horiz,void 0,!0)+(e?0:this.pos)},t.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,void 0,!0)},t.prototype.getPlotLinePath=function(t){var e,i,o,r,n,s=this,a=s.chart,h=s.left,l=s.top,d=t.old,c=t.value,p=t.lineWidth,u=d&&a.oldChartHeight||a.chartHeight,f=d&&a.oldChartWidth||a.chartWidth,g=s.transB,v=t.translatedValue,m=t.force;function y(t,e,i){return"pass"!==m&&(t<e||t>i)&&(m?t=o$(t,e,i):n=!0),t}var x={value:c,lineWidth:p,old:d,force:m,acrossPanes:t.acrossPanes,translatedValue:v};return o5(this,"getPlotLinePath",x,function(t){e=o=(v=o$(v=ro(v,s.translate(c,void 0,void 0,d)),-1e9,1e9))+g,i=r=u-v-g,o8(v)?s.horiz?(i=l,r=u-s.bottom+(s.options.isInternal?0:a.scrollablePixelsY||0),e=o=y(e,h,h+s.width)):(e=h,o=f-s.right+(a.scrollablePixelsX||0),i=r=y(i,l,l+s.height)):(n=!0,m=!1),t.path=n&&!m?void 0:a.renderer.crispLine([["M",e,i],["L",o,r]],p||1)}),x.path},t.prototype.getLinearTickPositions=function(t,e,i){var o,r,n,s=oJ(Math.floor(e/t)*t),a=oJ(Math.ceil(i/t)*t),h=[];if(oJ(s+t)===s&&(n=20),this.single)return[e];for(o=s;o<=a&&(h.push(o),(o=oJ(o+t,n))!==r);)r=o;return h},t.prototype.getMinorTickInterval=function(){var t=this.options,e=t.minorTicks,i=t.minorTickInterval;return!0===e?ro(i,"auto"):!1!==e?i:void 0},t.prototype.getMinorTickPositions=function(){var t,e,i=this.options,o=this.tickPositions,r=this.minorTickInterval,n=this.pointRangePadding||0,s=(this.min||0)-n,a=(this.max||0)+n,h=(null===(t=this.brokenAxis)||void 0===t?void 0:t.hasBreaks)?this.brokenAxis.unitLength:a-s,l=[];if(h&&h/r<this.len/3){var d=this.logarithmic;if(d)this.paddedTicks.forEach(function(t,e,i){e&&l.push.apply(l,d.getLogTickPositions(r,i[e-1],i[e],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())l=l.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(r),s,a,i.startOfWeek));else for(e=s+(o[0]-s)%r;e<=a&&e!==l[0];e+=r)l.push(e)}return 0!==l.length&&this.trimTicks(l),l},t.prototype.adjustForMinRange=function(){var t,e,i,o,r,n,s,a=this.options,h=this.logarithmic,l=this.chart.time,d=this.max,c=this.min,p=this.minRange;this.isXAxis&&void 0===p&&!h&&(p=oQ(a.min)||oQ(a.max)||oQ(a.floor)||oQ(a.ceiling)?null:Math.min(5*(o6(this.series.map(function(t){var e=t.getColumn("x");return t.xIncrement?e.slice(0,2):e}))||0),this.dataMax-this.dataMin)),o8(d)&&o8(c)&&o8(p)&&d-c<p&&(r=this.dataMax-this.dataMin>=p,o=(p-d+c)/2,n=[c-o,null!==(t=l.parse(a.min))&&void 0!==t?t:c-o],r&&(n[2]=h?h.log2lin(this.dataMin):this.dataMin),s=[(c=oZ(n))+p,null!==(e=l.parse(a.max))&&void 0!==e?e:c+p],r&&(s[2]=h?h.log2lin(this.dataMax):this.dataMax),(d=oK(s))-c<p&&(n[0]=d-p,n[1]=null!==(i=l.parse(a.min))&&void 0!==i?i:d-p,c=oZ(n))),this.minRange=p,this.min=c,this.max=d},t.prototype.getClosest=function(){var t,e;if(this.categories)e=1;else{var i=[];this.series.forEach(function(t){var o=t.closestPointRange,r=t.getColumn("x");1===r.length?i.push(r[0]):t.sorted&&oQ(o)&&t.reserveSpace()&&(e=oQ(e)?Math.min(e,o):o)}),i.length&&(i.sort(function(t,e){return t-e}),t=o6([i]))}return t&&e?Math.min(t,e):t||e},t.prototype.nameToX=function(t){var e,i=o4(this.options.categories),o=i?this.categories:this.names,r=t.options.x;return t.series.requireSorting=!1,oQ(r)||(r=this.uniqueNames&&o?i?o.indexOf(t.name):ro(o.keys[t.name],-1):t.series.autoIncrement()),-1===r?!i&&o&&(e=o.length):o8(r)&&(e=r),void 0!==e?(this.names[e]=t.name,this.names.keys[t.name]=e):t.x&&(e=t.x),e},t.prototype.updateNames=function(){var t=this,e=this.names;e.length>0&&(Object.keys(e.keys).forEach(function(t){delete e.keys[t]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(e){e.xIncrement=null,(!e.points||e.isDirtyData)&&(t.max=Math.max(t.max||0,e.dataTable.rowCount-1),e.processData(),e.generatePoints());var i=e.getColumn("x").slice();e.data.forEach(function(e,o){var r=i[o];(null==e?void 0:e.options)&&void 0!==e.name&&void 0!==(r=t.nameToX(e))&&r!==e.x&&(i[o]=e.x=r)}),e.dataTable.setColumn("x",i)}))},t.prototype.setAxisTranslation=function(){var t,e,i=this,o=i.max-i.min,r=i.linkedParent,n=!!i.categories,s=i.isXAxis,a=i.axisPointRange||0,h=0,l=0,d=i.transA;(s||n||a)&&(t=i.getClosest(),r?(h=r.minPointOffset,l=r.pointRangePadding):i.series.forEach(function(e){var o=n?1:s?ro(e.options.pointRange,t,0):i.axisPointRange||0,r=e.options.pointPlacement;if(a=Math.max(a,o),!i.single||n){var d=e.is("xrange")?!s:s;h=Math.max(h,d&&o7(r)?0:o/2),l=Math.max(l,d&&"on"===r?0:o)}}),e=i.ordinal&&i.ordinal.slope&&t?i.ordinal.slope/t:1,i.minPointOffset=h*=e,i.pointRangePadding=l*=e,i.pointRange=Math.min(a,i.single&&n?1:o),s&&t&&(i.closestPointRange=t)),i.translationSlope=i.transA=d=i.staticScale||i.len/(o+l||1),i.transB=i.horiz?i.left:i.bottom,i.minPixelPadding=d*h,o5(this,"afterSetAxisTranslation")},t.prototype.minFromRange=function(){var t=this.max,e=this.min;return o8(t)&&o8(e)&&t-e||void 0},t.prototype.setTickInterval=function(t){var e,i,o,r,n,s,a,h,l,d=this.categories,c=this.chart,p=this.dataMax,u=this.dataMin,f=this.dateTime,g=this.isXAxis,v=this.logarithmic,m=this.options,y=this.softThreshold,x=c.time,b=o8(this.threshold)?this.threshold:void 0,M=this.minRange||0,k=m.ceiling,w=m.floor,S=m.linkedTo,A=m.softMax,T=m.softMin,P=o8(S)&&(null===(e=c[this.coll])||void 0===e?void 0:e[S]),O=m.tickPixelInterval,C=m.maxPadding,E=m.minPadding,L=0,B=o8(m.tickInterval)&&m.tickInterval>=0?m.tickInterval:void 0;if(f||d||P||this.getTickAmount(),h=ro(this.userMin,x.parse(m.min)),l=ro(this.userMax,x.parse(m.max)),P?(this.linkedParent=P,n=P.getExtremes(),this.min=ro(n.min,n.dataMin),this.max=ro(n.max,n.dataMax),this.type!==P.type&&o2(11,!0,c)):(y&&oQ(b)&&o8(p)&&o8(u)&&(u>=b?(s=b,E=0):p<=b&&(a=b,C=0)),this.min=ro(h,s,u),this.max=ro(l,a,p)),o8(this.max)&&o8(this.min)&&(v&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,ro(u,this.min))&&o2(10,!0,c),this.min=oJ(v.log2lin(this.min),16),this.max=oJ(v.log2lin(this.max),16)),this.range&&o8(u)&&(this.userMin=this.min=h=Math.max(u,this.minFromRange()||0),this.userMax=l=this.max,this.range=void 0)),o5(this,"foundExtremes"),this.adjustForMinRange(),o8(this.min)&&o8(this.max)){if(!o8(this.userMin)&&o8(T)&&T<this.min&&(this.min=h=T),!o8(this.userMax)&&o8(A)&&A>this.max&&(this.max=l=A),d||this.axisPointRange||(null===(i=this.stacking)||void 0===i?void 0:i.usePercentage)||P||!(L=this.max-this.min)||(!oQ(h)&&E&&(this.min-=L*E),oQ(l)||!C||(this.max+=L*C)),!o8(this.userMin)&&o8(w)&&(this.min=Math.max(this.min,w)),!o8(this.userMax)&&o8(k)&&(this.max=Math.min(this.max,k)),y&&o8(u)&&o8(p)){var I=b||0;!oQ(h)&&this.min<I&&u>=I?this.min=m.minRange?Math.min(I,this.max-M):I:!oQ(l)&&this.max>I&&p<=I&&(this.max=m.minRange?Math.max(I,this.min+M):I)}!c.polar&&this.min>this.max&&(oQ(m.min)?this.max=this.min:oQ(m.max)&&(this.min=this.max)),L=this.max-this.min}if(this.min!==this.max&&o8(this.min)&&o8(this.max)?P&&!B&&O===P.options.tickPixelInterval?this.tickInterval=B=P.tickInterval:this.tickInterval=ro(B,this.tickAmount?L/Math.max(this.tickAmount-1,1):void 0,d?1:L*O/Math.max(this.len,O)):this.tickInterval=1,g&&!t){var D=this.min!==(null===(o=this.old)||void 0===o?void 0:o.min)||this.max!==(null===(r=this.old)||void 0===r?void 0:r.max);this.series.forEach(function(t){var e;t.forceCrop=null===(e=t.forceCropping)||void 0===e?void 0:e.call(t),t.processData(D)}),o5(this,"postProcessData",{hasExtremesChanged:D})}this.setAxisTranslation(),o5(this,"initialAxisTranslation"),this.pointRange&&!B&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));var z=ro(m.minTickInterval,f&&!this.series.some(function(t){return!t.sorted})?this.closestPointRange:0);!B&&this.tickInterval<z&&(this.tickInterval=z),f||v||B||(this.tickInterval=rh(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t,e,i,o=this.options,r=o.tickPositions,n=o.tickPositioner,s=this.getMinorTickInterval(),a=!this.isPanning,h=a&&o.startOnTick,l=a&&o.endOnTick,d=[];if(this.tickmarkOffset=this.categories&&"between"===o.tickmarkPlacement&&1===this.tickInterval?.5:0,this.single=this.min===this.max&&oQ(this.min)&&!this.tickAmount&&(this.min%1==0||!1!==o.allowDecimals),r)d=r.slice();else if(o8(this.min)&&o8(this.max)){if(!(null===(t=this.ordinal)||void 0===t?void 0:t.positions)&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))d=[this.min,this.max],o2(19,!1,this.chart);else if(this.dateTime)d=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,o.units),this.min,this.max,o.startOfWeek,null===(e=this.ordinal)||void 0===e?void 0:e.positions,this.closestPointRange,!0);else if(this.logarithmic)d=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var c=this.tickInterval,p=c;p<=2*c;)if(d=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&d.length>this.tickAmount)this.tickInterval=rh(this,p*=1.1);else break;d.length>this.len&&(d=[d[0],d[d.length-1]])[0]===d[1]&&(d.length=1),n&&(this.tickPositions=d,(i=n.apply(this,[this.min,this.max]))&&(d=i))}this.tickPositions=d,this.minorTickInterval="auto"===s&&this.tickInterval?this.tickInterval/o.minorTicksPerMajor:s,this.paddedTicks=d.slice(0),this.trimTicks(d,h,l),!this.isLinked&&o8(this.min)&&o8(this.max)&&(this.single&&d.length<2&&!this.categories&&!this.series.some(function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement})&&(this.min-=.5,this.max+=.5),r||i||this.adjustTickAmount()),o5(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,i){var o=t[0],r=t[t.length-1],n=!this.isOrdinal&&this.minPointOffset||0;if(o5(this,"trimTicks"),!this.isLinked){if(e&&o!==-1/0)this.min=o;else for(;this.min-n>t[0];)t.shift();if(i)this.max=r;else for(;this.max+n<t[t.length-1];)t.pop();0===t.length&&oQ(o)&&!this.options.tickPositions&&t.push((r+o)/2)}},t.prototype.alignToOthers=function(){var t,e=this,i=e.chart,o=[this],r=e.options,n=i.options.chart,s="yAxis"===this.coll&&n.alignThresholds,a=[];if(e.thresholdAlignment=void 0,(!1!==n.alignTicks&&r.alignTicks||s)&&!1!==r.startOnTick&&!1!==r.endOnTick&&!e.logarithmic){var h=function(t){var e=t.horiz,i=t.options;return[e?i.left:i.top,i.width,i.height,i.pane].join(",")},l=h(this);i[this.coll].forEach(function(i){var r=i.series;r.length&&r.some(function(t){return t.visible})&&i!==e&&h(i)===l&&(t=!0,o.push(i))})}if(t&&s){o.forEach(function(t){var i=t.getThresholdAlignment(e);o8(i)&&a.push(i)});var d=a.length>1?a.reduce(function(t,e){return t+e},0)/a.length:void 0;o.forEach(function(t){t.thresholdAlignment=d})}return t},t.prototype.getThresholdAlignment=function(t){if((!o8(this.dataMin)||this!==t&&this.series.some(function(t){return t.isDirty||t.isDirtyData}))&&this.getSeriesExtremes(),o8(this.threshold)){var e=o$((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(e=1-e),e}},t.prototype.getTickAmount=function(){var t=this.options,e=t.tickPixelInterval,i=t.tickAmount;oQ(t.tickInterval)||i||!(this.len<e)||this.isRadial||this.logarithmic||!t.startOnTick||!t.endOnTick||(i=2),!i&&this.alignToOthers()&&(i=Math.ceil(this.len/e)+1),i<4&&(this.finalTickAmt=i,i=5),this.tickAmount=i},t.prototype.adjustTickAmount=function(){var t,e,i,o=this,r=o.finalTickAmt,n=o.max,s=o.min,a=o.options,h=o.tickPositions,l=o.tickAmount,d=o.thresholdAlignment,c=null==h?void 0:h.length,p=ro(o.threshold,o.softThreshold?0:null),u=o.tickInterval,f=function(){return h.push(oJ(h[h.length-1]+u))},g=function(){return h.unshift(oJ(h[0]-u))};if(o8(d)&&(i=d<.5?Math.ceil(d*(l-1)):Math.floor(d*(l-1)),a.reversed&&(i=l-1-i)),o.hasData()&&o8(s)&&o8(n)){var v=function(){o.transA*=(c-1)/(l-1),o.min=a.startOnTick?h[0]:Math.min(s,h[0]),o.max=a.endOnTick?h[h.length-1]:Math.max(n,h[h.length-1])};if(o8(i)&&o8(o.threshold)){for(;h[i]!==p||h.length!==l||h[0]>s||h[h.length-1]<n;){for(h.length=0,h.push(o.threshold);h.length<l;)void 0===h[i]||h[i]>o.threshold?g():f();if(u>8*o.tickInterval)break;u*=2}v()}else if(c<l){for(;h.length<l;)h.length%2||s===p?f():g();v()}if(oQ(r)){for(e=t=h.length;e--;)(3===r&&e%2==1||r<=2&&e>0&&e<t-1)&&h.splice(e,1);o.finalTickAmt=void 0}}},t.prototype.setScale=function(){var t,e,i=this.coll,o=this.stacking,r=!1,n=!1;this.series.forEach(function(t){r=r||t.isDirtyData||t.isDirty,n=n||t.xAxis&&t.xAxis.isDirty||!1}),this.setAxisSize();var s=this.len!==(this.old&&this.old.len);s||r||n||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(o&&"yAxis"===i&&o.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),o&&"xAxis"===i&&o.buildStacks(),this.isDirty||(this.isDirty=s||this.min!==(null===(t=this.old)||void 0===t?void 0:t.min)||this.max!==(null===(e=this.old)||void 0===e?void 0:e.max))):o&&o.cleanStacks(),r&&delete this.allExtremes,o5(this,"afterSetScale")},t.prototype.setExtremes=function(t,e,i,o,r){var n=this;void 0===i&&(i=!0);var s=this.chart;this.series.forEach(function(t){delete t.kdTree}),o5(this,"setExtremes",r=o3(r,{min:t=s.time.parse(t),max:e=s.time.parse(e)}),function(t){n.userMin=t.min,n.userMax=t.max,n.eventArgs=t,i&&s.redraw(o)})},t.prototype.setAxisSize=function(){var t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],o=this.horiz,r=this.width=Math.round(rr(ro(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),n=this.height=Math.round(rr(ro(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),s=this.top=Math.round(rr(ro(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop)),a=this.left=Math.round(rr(ro(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft));this.bottom=t.chartHeight-n-s,this.right=t.chartWidth-r-a,this.len=Math.max(o?r:n,0),this.pos=o?a:s},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?oJ(t.lin2log(this.min)):this.min,max:t?oJ(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},t.prototype.getThreshold=function(t){var e=this.logarithmic,i=e?e.lin2log(this.min):this.min,o=e?e.lin2log(this.max):this.max;return null===t||t===-1/0?t=i:t===1/0?t=o:i>t?t=i:o<t&&(t=o),this.translate(t,0,1,0,1)},t.prototype.autoLabelAlign=function(t){var e=(ro(t,0)-90*this.side+720)%360,i={align:"center"};return o5(this,"autoLabelAlign",i,function(t){e>15&&e<165?t.align="right":e>195&&e<345&&(t.align="left")}),i.align},t.prototype.tickSize=function(t){var e,i=this.options,o=ro(i["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),r=i["tick"===t?"tickLength":"minorTickLength"];o&&r&&("inside"===i[t+"Position"]&&(r=-r),e=[r,o]);var n={tickSize:e};return o5(this,"afterTickSize",n),n.tickSize},t.prototype.labelMetrics=function(){var t=this.chart.renderer,e=this.ticks,i=e[Object.keys(e)[0]]||{};return this.chart.renderer.fontMetrics(i.label||i.movedLabel||t.box)},t.prototype.unsquish=function(){var t,e,i=this.options.labels,o=i.padding||0,r=this.horiz,n=this.tickInterval,s=this.len/(((this.categories?1:0)+this.max-this.min)/n),a=i.rotation,h=oJ(.8*this.labelMetrics().h),l=Math.max(this.max-this.min,0),d=function(t){var e=(t+2*o)/(s||1);return(e=e>1?Math.ceil(e):1)*n>l&&t!==1/0&&s!==1/0&&l&&(e=Math.ceil(l/n)),oJ(e*n)},c=n,p=Number.MAX_VALUE;if(r){if(!i.staggerLines&&(o8(a)?e=[a]:s<i.autoRotationLimit&&(e=i.autoRotation)),e)for(var u=void 0,f=void 0,g=0,v=e;g<v.length;g++){var m=v[g];(m===a||m&&m>=-90&&m<=90)&&(f=(u=d(Math.abs(h/Math.sin(oq*m))))+Math.abs(m/360))<p&&(p=f,t=m,c=u)}}else c=d(.75*h);return this.autoRotation=e,this.labelRotation=ro(t,o8(a)?a:0),i.step?n:c},t.prototype.getSlotWidth=function(t){var e=this.chart,i=this.horiz,o=this.options.labels,r=Math.max(this.tickPositions.length-(this.categories?0:1),1),n=e.margin[3];if(t&&o8(t.slotWidth))return t.slotWidth;if(i&&o.step<2&&!this.isRadial)return o.rotation?0:(this.staggerLines||1)*this.len/r;if(!i){var s=o.style.width;if(void 0!==s)return parseInt(String(s),10);if(n)return n-e.spacing[3]}return .33*e.chartWidth},t.prototype.renderUnsquish=function(){var t,e=this.chart,i=e.renderer,o=this.tickPositions,r=this.ticks,n=this.options.labels,s=n.style,a=this.horiz,h=this.getSlotWidth(),l=Math.max(1,Math.round(h-(a?2*(n.padding||0):n.distance||0))),d={},c=this.labelMetrics(),p=s.lineClamp,u=null!=p?p:Math.floor(this.len/(o.length*c.h))||1,f=0;o7(n.rotation)||(d.rotation=n.rotation||0),o.forEach(function(t){var e,i=r[t];i.movedLabel&&i.replaceMovedLabel();var o=(null===(e=i.label)||void 0===e?void 0:e.textPxLength)||0;o>f&&(f=o)}),this.maxLabelLength=f,this.autoRotation?f>l&&f>c.h?d.rotation=this.labelRotation:this.labelRotation=0:h&&(t=l),d.rotation&&(t=f>.5*e.chartHeight?.33*e.chartHeight:f,p||(u=1)),this.labelAlign=n.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(d.align=this.labelAlign),o.forEach(function(e){var i=r[e],o=i&&i.label,n=s.width,a={};o&&(o.attr(d),i.shortenLabel?i.shortenLabel():t&&!n&&"nowrap"!==s.whiteSpace&&(t<(o.textPxLength||0)||"SPAN"===o.element.tagName)?o.css(o3(a,{width:""+t+"px",lineClamp:u})):!o.styles.width||a.width||n||o.css({width:"auto"}),i.rotation=d.rotation)},this),this.tickRotCorr=i.rotCorr(c.b,this.labelRotation||0,0!==this.side)},t.prototype.hasData=function(){return this.series.some(function(t){return t.hasData()})||this.options.showEmpty&&oQ(this.min)&&oQ(this.max)},t.prototype.addTitle=function(t){var e,i=this.chart.renderer,o=this.horiz,r=this.opposite,n=this.options.title,s=this.chart.styledMode;this.axisTitle||((e=n.textAlign)||(e=(o?{low:"left",middle:"center",high:"right"}:{low:r?"right":"left",middle:"center",high:r?"left":"right"})[n.align]),this.axisTitle=i.text(n.text||"",0,0,n.useHTML).attr({zIndex:7,rotation:n.rotation||0,align:e}).addClass("highcharts-axis-title"),s||this.axisTitle.css(rt(n.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),s||n.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[t?"show":"hide"](t)},t.prototype.generateTick=function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new oj(this,t)},t.prototype.createGroups=function(){var t=this,e=this.axisParent,i=this.chart,o=this.coll,r=this.options,n=i.renderer,s=function(i,s,a){return n.g(i).attr({zIndex:a}).addClass("highcharts-".concat(o.toLowerCase()).concat(s," ")+(t.isRadial?"highcharts-radial-axis".concat(s," "):"")+(r.className||"")).add(e)};this.axisGroup||(this.gridGroup=s("grid","-grid",r.gridZIndex),this.axisGroup=s("axis","",r.zIndex),this.labelGroup=s("axis-labels","-labels",r.labels.zIndex))},t.prototype.getOffset=function(){var t,e,i,o,r=this,n=r.chart,s=r.horiz,a=r.options,h=r.side,l=r.ticks,d=r.tickPositions,c=r.coll,p=n.inverted&&!r.isZAxis?[1,0,3,2][h]:h,u=r.hasData(),f=a.title,g=a.labels,v=o8(a.crossing),m=n.axisOffset,y=n.clipOffset,x=[-1,1,1,-1][h],b=0,M=0,k=0;if(r.showAxis=t=u||a.showEmpty,r.staggerLines=r.horiz&&g.staggerLines||void 0,r.createGroups(),u||r.isLinked?(d.forEach(function(t){r.generateTick(t)}),r.renderUnsquish(),r.reserveSpaceDefault=0===h||2===h||({1:"left",3:"right"})[h]===r.labelAlign,ro(g.reserveSpace,!v&&null,"center"===r.labelAlign||null,r.reserveSpaceDefault)&&d.forEach(function(t){k=Math.max(l[t].getLabelSize(),k)}),r.staggerLines&&(k*=r.staggerLines),r.labelOffset=k*(r.opposite?-1:1)):ri(l,function(t,e){t.destroy(),delete l[e]}),(null==f?void 0:f.text)&&!1!==f.enabled&&(r.addTitle(t),t&&!v&&!1!==f.reserveSpace&&(r.titleOffset=b=r.axisTitle.getBBox()[s?"height":"width"],M=oQ(e=f.offset)?0:ro(f.margin,s?5:10))),r.renderLine(),r.offset=x*ro(a.offset,m[h]?m[h]+(a.margin||0):0),r.tickRotCorr=r.tickRotCorr||{x:0,y:0},o=0===h?-r.labelMetrics().h:2===h?r.tickRotCorr.y:0,i=Math.abs(k)+M,k&&(i-=o,i+=x*(s?ro(g.y,r.tickRotCorr.y+x*g.distance):ro(g.x,x*g.distance))),r.axisTitleMargin=ro(e,i),r.getMaxLabelDimensions&&(r.maxLabelDimensions=r.getMaxLabelDimensions(l,d)),"colorAxis"!==c&&y){var w=this.tickSize("tick");m[h]=Math.max(m[h],(r.axisTitleMargin||0)+b+x*r.offset,i,d&&d.length&&w?w[0]+x*r.offset:0);var S=!r.axisLine||a.offset?0:r.axisLine.strokeWidth()/2;y[p]=Math.max(y[p],S)}o5(this,"afterGetOffset")},t.prototype.getLinePath=function(t){var e=this.chart,i=this.opposite,o=this.offset,r=this.horiz,n=this.left+(i?this.width:0)+o,s=e.chartHeight-this.bottom-(i?this.height:0)+o;return i&&(t*=-1),e.renderer.crispLine([["M",r?this.left:n,r?s:this.top],["L",r?e.chartWidth-this.right:n,r?s:e.chartHeight-this.bottom]],t)},t.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},t.prototype.getTitlePosition=function(t){var e=this.horiz,i=this.left,o=this.top,r=this.len,n=this.options.title,s=e?i:o,a=this.opposite,h=this.offset,l=n.x,d=n.y,c=this.chart.renderer.fontMetrics(t),p=t?Math.max(t.getBBox(!1,0).height-c.h-1,0):0,u={low:s+(e?0:r),middle:s+r/2,high:s+(e?r:0)}[n.align],f=(e?o+this.height:i)+(e?1:-1)*(a?-1:1)*(this.axisTitleMargin||0)+[-p,p,c.f,-p][this.side],g={x:e?u+l:f+(a?this.width:0)+h+l,y:e?f+d-(a?this.height:0)+h:u+d};return o5(this,"afterGetTitlePosition",{titlePosition:g}),g},t.prototype.renderMinorTick=function(t,e){var i=this.minorTicks;i[t]||(i[t]=new oj(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)},t.prototype.renderTick=function(t,e,i){var o=this.isLinked,r=this.ticks;(!o||t>=this.min&&t<=this.max||this.grid&&this.grid.isColumn)&&(r[t]||(r[t]=new oj(this,t)),i&&r[t].isNew&&r[t].render(e,!0,-1),r[t].render(e))},t.prototype.render=function(){var t,e,i=this,o=i.chart,r=i.logarithmic,n=o.renderer,s=i.options,a=i.isLinked,h=i.tickPositions,l=i.axisTitle,d=i.ticks,c=i.minorTicks,p=i.alternateBands,u=s.stackLabels,f=s.alternateGridColor,g=s.crossing,v=i.tickmarkOffset,m=i.axisLine,y=i.showAxis,x=ec(n.globalAnimation);if(i.labelEdge.length=0,i.overlap=!1,[d,c,p].forEach(function(t){ri(t,function(t){t.isActive=!1})}),o8(g)){var b=this.isXAxis?o.yAxis[0]:o.xAxis[0],M=[1,-1,-1,1][this.side];if(b){var k=b.toPixels(g,!0);i.horiz&&(k=b.len-k),i.offset=M*k}}if(i.hasData()||a){var w=i.chart.hasRendered&&i.old&&o8(i.old.min);i.minorTickInterval&&!i.categories&&i.getMinorTickPositions().forEach(function(t){i.renderMinorTick(t,w)}),h.length&&(h.forEach(function(t,e){i.renderTick(t,e,w)}),v&&(0===i.min||i.single)&&(d[-1]||(d[-1]=new oj(i,-1,null,!0)),d[-1].render(-1))),f&&h.forEach(function(n,s){e=void 0!==h[s+1]?h[s+1]+v:i.max-v,s%2==0&&n<i.max&&e<=i.max+(o.polar?-v:v)&&(p[n]||(p[n]=new ta.PlotLineOrBand(i,{})),t=n+v,p[n].options={from:r?r.lin2log(t):t,to:r?r.lin2log(e):e,color:f,className:"highcharts-alternate-grid"},p[n].render(),p[n].isActive=!0)}),i._addedPlotLB||(i._addedPlotLB=!0,(s.plotLines||[]).concat(s.plotBands||[]).forEach(function(t){i.addPlotBandOrLine(t)}))}[d,c,p].forEach(function(t){var e=[],i=x.duration;ri(t,function(t,i){t.isActive||(t.render(i,!1,0),t.isActive=!1,e.push(i))}),ra(function(){for(var i=e.length;i--;)t[e[i]]&&!t[e[i]].isActive&&(t[e[i]].destroy(),delete t[e[i]])},t!==p&&o.hasRendered&&i?i:0)}),m&&(m[m.isPlaced?"animate":"attr"]({d:this.getLinePath(m.strokeWidth())}),m.isPlaced=!0,m[y?"show":"hide"](y)),l&&y&&(l[l.isNew?"attr":"animate"](i.getTitlePosition(l)),l.isNew=!1),u&&u.enabled&&i.stacking&&i.stacking.renderStackTotals(),i.old={len:i.len,max:i.max,min:i.min,transA:i.transA,userMax:i.userMax,userMin:i.userMin},i.isDirty=!1,o5(this,"afterRender")},t.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(t){t.render()})),this.series.forEach(function(t){t.isDirty=!0})},t.prototype.getKeepProps=function(){return this.keepProps||t.keepProps},t.prototype.destroy=function(t){var e=this,i=e.plotLinesAndBands,o=this.eventOptions;if(o5(this,"destroy",{keepEvents:t}),t||rn(e),[e.ticks,e.minorTicks,e.alternateBands].forEach(function(t){o0(t)}),i)for(var r=i.length;r--;)i[r].destroy();for(var n in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(t){e[t]&&(e[t]=e[t].destroy())}),e.plotLinesAndBandsGroups)e.plotLinesAndBandsGroups[n]=e.plotLinesAndBandsGroups[n].destroy();ri(e,function(t,i){-1===e.getKeepProps().indexOf(i)&&delete e[i]}),this.eventOptions=o},t.prototype.drawCrosshair=function(t,e){var i,o,r,n,s=this.crosshair,a=ro(s&&s.snap,!0),h=this.chart,l=this.cross;if(o5(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross&&this.cross.e),s&&!1!==(oQ(e)||!a)){if(a?oQ(e)&&(o=ro("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):o=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),oQ(o)&&(n={value:e&&(this.isXAxis?e.x:ro(e.stackY,e.y)),translatedValue:o},h.polar&&o3(n,{isCrosshair:!0,chartX:t&&t.chartX,chartY:t&&t.chartY,point:e}),i=this.getPlotLinePath(n)||null),!oQ(i)){this.hideCrosshair();return}r=this.categories&&!this.isRadial,l||(this.cross=l=h.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(r?"category ":"thin ")+(s.className||"")).attr({zIndex:ro(s.zIndex,2)}).add(),!h.styledMode&&(l.attr({stroke:s.color||(r?t4.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":ro(s.width,1)}).css({"pointer-events":"none"}),s.dashStyle&&l.attr({dashstyle:s.dashStyle}))),l.show().attr({d:i}),r&&!s.width&&l.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();o5(this,"afterDrawCrosshair",{e:t,point:e})},t.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),o5(this,"afterHideCrosshair")},t.prototype.update=function(t,e){var i=this.chart;t=rt(this.userOptions,t),this.destroy(!0),this.init(i,t),i.isDirtyBox=!0,ro(e,!0)&&i.redraw()},t.prototype.remove=function(t){for(var e=this.chart,i=this.coll,o=this.series,r=o.length;r--;)o[r]&&o[r].remove(!1);o1(e.axes,this),o1(e[i]||[],this),e.orderItems(i),this.destroy(),e.isDirtyBox=!0,ro(t,!0)&&e.redraw()},t.prototype.setTitle=function(t,e){this.update({title:t},e)},t.prototype.setCategories=function(t,e){this.update({categories:t},e)},t.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"],t}(),rd=tI.addEvent,rc=tI.getMagnitude,rp=tI.normalizeTickInterval,ru=tI.timeUnits;!function(t){function e(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function i(){if("datetime"!==this.type){this.dateTime=void 0;return}this.dateTime||(this.dateTime=new o(this))}t.compose=function(t){return t.keepProps.includes("dateTime")||(t.keepProps.push("dateTime"),t.prototype.getTimeTicks=e,rd(t,"afterSetType",i)),t};var o=function(){function t(t){this.axis=t}return t.prototype.normalizeTimeTickInterval=function(t,e){var i,o=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],r=o[o.length-1],n=ru[r[0]],s=r[1];for(i=0;i<o.length&&(n=ru[(r=o[i])[0]],s=r[1],!o[i+1]||!(t<=(n*s[s.length-1]+ru[o[i+1][0]])/2));i++);n===ru.year&&t<5*n&&(s=[1,2,5]);var a=rp(t/n,s,"year"===r[0]?Math.max(rc(t/n),1):1);return{unitRange:n,count:a,unitName:r[0]}},t.prototype.getXDateFormat=function(t,e){var i=this.axis,o=i.chart.time;return i.closestPointRange?o.getDateFormat(i.closestPointRange,t,i.options.startOfWeek,e)||o.resolveDTLFormat(e.year).main:o.resolveDTLFormat(e.day).main},t}();t.Additions=o}(G||(G={}));var rf=G,rg=tI.addEvent,rv=tI.normalizeTickInterval,rm=tI.pick;!function(t){function e(){var t;"logarithmic"!==this.type?this.logarithmic=void 0:null!==(t=this.logarithmic)&&void 0!==t||(this.logarithmic=new o(this))}function i(){var t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}t.compose=function(t){return t.keepProps.includes("logarithmic")||(t.keepProps.push("logarithmic"),rg(t,"afterSetType",e),rg(t,"afterInit",i)),t};var o=function(){function t(t){this.axis=t}return t.prototype.getLogTickPositions=function(t,e,i,o){var r=this.axis,n=r.len,s=r.options,a=[];if(o||(this.minorAutoInterval=void 0),t>=.5)t=Math.round(t),a=r.getLinearTickPositions(t,e,i);else if(t>=.08){var h=Math.floor(e),l=void 0,d=void 0,c=void 0,p=void 0,u=void 0,f=void 0,g=void 0;for(l=t>.3?[1,2,4]:t>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],d=h;d<i+1&&!g;d++)for(c=0,p=l.length;c<p&&!g;c++)(u=this.log2lin(this.lin2log(d)*l[c]))>e&&(!o||f<=i)&&void 0!==f&&a.push(f),f>i&&(g=!0),f=u}else{var v=this.lin2log(e),m=this.lin2log(i),y=o?r.getMinorTickInterval():s.tickInterval,x=s.tickPixelInterval/(o?5:1),b=o?n/r.tickPositions.length:n;t=rv(t=rm("auto"===y?null:y,this.minorAutoInterval,(m-v)*x/(b||1))),a=r.getLinearTickPositions(t,v,m).map(this.log2lin),o||(this.minorAutoInterval=t/5)}return o||(r.tickInterval=t),a},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();t.Additions=o}(X||(X={}));var ry=X,rx=tI.erase,rb=tI.extend,rM=tI.isNumber;!function(t){var e;function i(t){return this.addPlotBandOrLine(t,"plotBands")}function o(t,i){var o=this,r=this.userOptions,n=new e(this,t);if(this.visible&&(n=n.render()),n){if(this._addedPlotLB||(this._addedPlotLB=!0,(r.plotLines||[]).concat(r.plotBands||[]).forEach(function(t){o.addPlotBandOrLine(t)})),i){var s=r[i]||[];s.push(t),r[i]=s}this.plotLinesAndBands.push(n)}return n}function r(t){return this.addPlotBandOrLine(t,"plotLines")}function n(t,e,i){i=i||this.options;var o,r,n=this.getPlotLinePath({value:e,force:!0,acrossPanes:i.acrossPanes}),s=[],a=this.horiz,h=!rM(this.min)||!rM(this.max)||t<this.min&&e<this.min||t>this.max&&e>this.max,l=this.getPlotLinePath({value:t,force:!0,acrossPanes:i.acrossPanes}),d=1;if(l&&n)for(h&&(r=l.toString()===n.toString(),d=0),o=0;o<l.length;o+=2){var c=l[o],p=l[o+1],u=n[o],f=n[o+1];("M"===c[0]||"L"===c[0])&&("M"===p[0]||"L"===p[0])&&("M"===u[0]||"L"===u[0])&&("M"===f[0]||"L"===f[0])&&(a&&u[1]===c[1]?(u[1]+=d,f[1]+=d):a||u[2]!==c[2]||(u[2]+=d,f[2]+=d),s.push(["M",c[1],c[2]],["L",p[1],p[2]],["L",f[1],f[2]],["L",u[1],u[2]],["Z"])),s.isFlat=r}return s}function s(t){this.removePlotBandOrLine(t)}function a(t){var e=this.plotLinesAndBands,i=this.options,o=this.userOptions;if(e){for(var r=e.length;r--;)e[r].id===t&&e[r].destroy();[i.plotLines||[],o.plotLines||[],i.plotBands||[],o.plotBands||[]].forEach(function(e){for(r=e.length;r--;)(e[r]||{}).id===t&&rx(e,e[r])})}}function h(t){this.removePlotBandOrLine(t)}t.compose=function(t,l){var d=l.prototype;return d.addPlotBand||(e=t,rb(d,{addPlotBand:i,addPlotLine:r,addPlotBandOrLine:o,getPlotBandPath:n,removePlotBand:s,removePlotLine:h,removePlotBandOrLine:a})),l}}(H||(H={}));var rk=H,rw=function(){return(rw=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},rS=tI.addEvent,rA=tI.arrayMax,rT=tI.arrayMin,rP=tI.defined,rO=tI.destroyObjectProperties,rC=tI.erase,rE=tI.fireEvent,rL=tI.merge,rB=tI.objectEach,rI=tI.pick,rD=function(){function t(t,e){this.axis=t,this.options=e,this.id=e.id}return t.compose=function(e,i){return rS(e,"afterInit",function(){var t=this;this.labelCollectors.push(function(){for(var e,i=[],o=0,r=t.axes;o<r.length;o++)for(var n=r[o],s=0,a=n.plotLinesAndBands;s<a.length;s++){var h=a[s],l=h.label,d=h.options;!l||(null===(e=null==d?void 0:d.label)||void 0===e?void 0:e.allowOverlap)||i.push(l)}return i})}),rk.compose(t,i)},t.prototype.render=function(){var t=this;rE(this,"render");var e,i,o,r,n=this.axis,s=this.options,a=n.horiz,h=n.logarithmic,l=s.color,d=s.events,c=s.zIndex,p=void 0===c?0:c,u=n.chart,f=u.renderer,g=u.time,v={},m=g.parse(s.to),y=g.parse(s.from),x=g.parse(s.value),b=s.borderWidth,M=s.label,k=this.label,w=this.svgElem,S=[],A=rP(y)&&rP(m),T=rP(x),P=!w,O={class:"highcharts-plot-"+(A?"band ":"line ")+(s.className||"")},C=A?"bands":"lines";if(!n.chart.styledMode&&(T?(O.stroke=l||"#999999",O["stroke-width"]=rI(s.width,1),s.dashStyle&&(O.dashstyle=s.dashStyle)):A&&(O.fill=l||"#e6e9ff",b&&(O.stroke=s.borderColor,O["stroke-width"]=b))),v.zIndex=p,C+="-"+p,(r=n.plotLinesAndBandsGroups[C])||(n.plotLinesAndBandsGroups[C]=r=f.g("plot-"+C).attr(v).add()),w||(this.svgElem=w=f.path().attr(O).add(r)),rP(x))S=n.getPlotLinePath({value:null!==(e=null==h?void 0:h.log2lin(x))&&void 0!==e?e:x,lineWidth:w.strokeWidth(),acrossPanes:s.acrossPanes});else{if(!(rP(y)&&rP(m)))return;S=n.getPlotBandPath(null!==(i=null==h?void 0:h.log2lin(y))&&void 0!==i?i:y,null!==(o=null==h?void 0:h.log2lin(m))&&void 0!==o?o:m,s)}return!this.eventsAdded&&d&&(rB(d,function(e,i){null==w||w.on(i,function(e){d[i].apply(t,[e])})}),this.eventsAdded=!0),(P||!w.d)&&(null==S?void 0:S.length)?w.attr({d:S}):w&&(S?(w.show(),w.animate({d:S})):w.d&&(w.hide(),k&&(this.label=k=k.destroy()))),M&&(rP(M.text)||rP(M.formatter))&&(null==S?void 0:S.length)&&n.width>0&&n.height>0&&!S.isFlat?(M=rL(rw({align:a&&A?"center":void 0,x:a?!A&&4:10,verticalAlign:!a&&A?"middle":void 0,y:a?A?16:10:A?6:-4,rotation:a&&!A?90:0},A?{inside:!0}:{}),M),this.renderLabel(M,S,A,p)):k&&k.hide(),this},t.prototype.renderLabel=function(t,e,i,o){var r,n=this.axis,s=n.chart.renderer,a=t.inside,h=this.label;h||(this.label=h=s.text(this.getLabelText(t),0,0,t.useHTML).attr({align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(t.className||""),zIndex:o}),n.chart.styledMode||h.css(rL({fontSize:"0.8em",textOverflow:i&&!a?"":"ellipsis"},t.style)),h.add());var l=e.xBounds||[e[0][1],e[1][1],i?e[2][1]:e[0][1]],d=e.yBounds||[e[0][2],e[1][2],i?e[2][2]:e[0][2]],c=rT(l),p=rT(d),u=rA(l)-c;h.align(t,!1,{x:c,y:p,width:u,height:rA(d)-p}),(!h.alignValue||"left"===h.alignValue||rP(a))&&h.css({width:((null===(r=t.style)||void 0===r?void 0:r.width)||(i&&a?u:90===h.rotation?n.height-(h.alignAttr.y-n.top):(t.clip?n.width:n.chart.chartWidth)-(h.alignAttr.x-n.left)))+"px"}),h.show(!0)},t.prototype.getLabelText=function(t){return rP(t.formatter)?t.formatter.call(this):t.text},t.prototype.destroy=function(){rC(this.axis.plotLinesAndBands,this),delete this.axis,rO(this)},t}(),rz=eY.format,rR=ta.composed,rN=ta.dateFormats,rW=ta.doc,rG=ta.isSafari,rX=eZ.distribute,rH=tI.addEvent,rF=tI.clamp,rY=tI.css,rj=tI.discardElement,r_=tI.extend,rU=tI.fireEvent,rV=tI.isArray,rq=tI.isNumber,rZ=tI.isObject,rK=tI.isString,r$=tI.merge,rJ=tI.pick,rQ=tI.pushUnique,r0=tI.splat,r1=tI.syncTimeout,r2=function(){function t(t,e,i){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=t,this.init(t,e),this.pointer=i}return t.prototype.bodyFormatter=function(t){return t.map(function(t){var e=t.series.tooltipOptions,i=t.formatPrefix||"point";return(e[i+"Formatter"]||t.tooltipFormatter).call(t,e[i+"Format"]||"")})},t.prototype.cleanSplit=function(t){this.chart.series.forEach(function(e){var i=e&&e.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)})},t.prototype.defaultFormatter=function(t){var e,i=this.points||r0(this);return(e=(e=[t.headerFooterFormatter(i[0])]).concat(t.bodyFormatter(i))).push(t.headerFooterFormatter(i[0],!0)),e},t.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),rj(this.container)),tI.clearTimeout(this.hideTimer)},t.prototype.getAnchor=function(t,e){var i,o=this.chart,r=this.pointer,n=o.inverted,s=o.plotTop,a=o.plotLeft;if((t=r0(t))[0].series&&t[0].series.yAxis&&!t[0].series.yAxis.options.reversedStacks&&(t=t.slice().reverse()),this.followPointer&&e)void 0===e.chartX&&(e=r.normalize(e)),i=[e.chartX-a,e.chartY-s];else if(t[0].tooltipPos)i=t[0].tooltipPos;else{var h=0,l=0;t.forEach(function(t){var e=t.pos(!0);e&&(h+=e[0],l+=e[1])}),h/=t.length,l/=t.length,this.shared&&t.length>1&&e&&(n?h=e.chartX:l=e.chartY),i=[h-a,l-s]}return i.map(Math.round)},t.prototype.getClassName=function(t,e,i){var o=this.options,r=t.series,n=r.options;return[o.className,"highcharts-label",i&&"highcharts-tooltip-header",e?"highcharts-tooltip-box":"highcharts-tooltip",!i&&"highcharts-color-"+rJ(t.colorIndex,r.colorIndex),n&&n.className].filter(rK).join(" ")},t.prototype.getLabel=function(t){var e=void 0===t?{anchorX:0,anchorY:0}:t,i=e.anchorX,o=e.anchorY,r=this,n=this.chart.styledMode,s=this.options,a=this.split&&this.allowShared,h=this.container,l=this.chart.renderer;if(this.label){var d=!this.label.hasClass("highcharts-label");(!a&&d||a&&!d)&&this.destroy()}if(!this.label){if(this.outside){var c=this.chart,p=c.options.chart.style,u=ej.getRendererType();this.container=h=ta.doc.createElement("div"),h.className="highcharts-tooltip-container "+(c.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||""),rY(h,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(p&&p.zIndex||0)+3)}),this.renderer=l=new u(h,0,0,p,void 0,void 0,l.styledMode)}if(a?this.label=l.g("tooltip"):(this.label=l.label("",i,o,s.shape,void 0,void 0,s.useHTML,void 0,"tooltip").attr({padding:s.padding,r:s.borderRadius}),n||this.label.attr({fill:s.backgroundColor,"stroke-width":s.borderWidth||0}).css(s.style).css({pointerEvents:s.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),r.outside){var f=this.label;[f.xSetter,f.ySetter].forEach(function(t,e){f[e?"ySetter":"xSetter"]=function(i){t.call(f,r.distance),f[e?"y":"x"]=i,h&&(h.style[e?"top":"left"]=""+i+"px")}})}this.label.attr({zIndex:8}).shadow(s.shadow).add()}return h&&!h.parentElement&&ta.doc.body.appendChild(h),this.label},t.prototype.getPlayingField=function(){var t=rW.body,e=rW.documentElement,i=this.chart,o=this.distance,r=this.outside;return{width:r?Math.max(t.scrollWidth,e.scrollWidth,t.offsetWidth,e.offsetWidth,e.clientWidth)-2*o-2:i.chartWidth,height:r?Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,e.clientHeight):i.chartHeight}},t.prototype.getPosition=function(t,e,i){var o,r,n,s=this.distance,a=this.chart,h=this.outside,l=this.pointer,d=a.inverted,c=a.plotLeft,p=a.plotTop,u=a.polar,f=i.plotX,g=void 0===f?0:f,v=i.plotY,m=void 0===v?0:v,y={},x=d&&i.h||0,b=this.getPlayingField(),M=b.height,k=b.width,w=l.getChartPosition(),S=function(t){return t*w.scaleX},A=function(t){return t*w.scaleY},T=function(i){var o="x"===i;return[i,o?k:M,o?t:e].concat(h?[o?S(t):A(e),o?w.left-s+S(g+c):w.top-s+A(m+p),0,o?k:M]:[o?t:e,o?g+c:m+p,o?c:p,o?c+a.plotWidth:p+a.plotHeight])},P=T("y"),O=T("x"),C=!!i.negative;!u&&(null===(r=null===(o=a.hoverSeries)||void 0===o?void 0:o.yAxis)||void 0===r?void 0:r.reversed)&&(C=!C);var E=!this.followPointer&&rJ(i.ttBelow,!u&&!d===C),L=function(t,e,i,o,r,n,a){var l=h?"y"===t?A(s):S(s):s,d=(i-o)/2,c=o<r-s,p=r+s+o<e,u=r-l-i+d,f=r+l-d;if(E&&p)y[t]=f;else if(!E&&c)y[t]=u;else if(c)y[t]=Math.min(a-o,u-x<0?u:u-x);else{if(!p)return!1;y[t]=Math.max(n,f+x+i>e?f:f+x)}},B=function(t,e,i,o,r){if(r<s||r>e-s)return!1;r<i/2?y[t]=1:r>e-o/2?y[t]=e-o-2:y[t]=r-i/2},I=function(t){var e;P=(e=[O,P])[0],O=e[1],n=t},D=function(){!1!==L.apply(0,P)?!1!==B.apply(0,O)||n||(I(!0),D()):n?y.x=y.y=0:(I(!0),D())};return(d&&!u||this.len>1)&&I(),D(),y},t.prototype.hide=function(t){var e=this;tI.clearTimeout(this.hideTimer),t=rJ(t,this.options.hideDelay),this.isHidden||(this.hideTimer=r1(function(){var i=e.getLabel();e.getLabel().animate({opacity:0},{duration:t?150:t,complete:function(){i.hide(),e.container&&e.container.remove()}}),e.isHidden=!0},t))},t.prototype.init=function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.isHidden=!0,this.split=e.split&&!t.inverted&&!t.polar,this.shared=e.shared||this.split,this.outside=rJ(e.outside,!!(t.scrollablePixelsX||t.scrollablePixelsY))},t.prototype.shouldStickOnContact=function(t){return!!(!this.followPointer&&this.options.stickOnContact&&(!t||this.pointer.inClass(t.target,"highcharts-tooltip")))},t.prototype.move=function(t,e,i,o){var r=this,n=ec(!r.isHidden&&r.options.animation),s=r.followPointer||(r.len||0)>1,a={x:t,y:e};s||(a.anchorX=i,a.anchorY=o),n.step=function(){return r.drawTracker()},r.getLabel().animate(a,n)},t.prototype.refresh=function(t,e){var i=this.chart,o=this.options,r=this.pointer,n=this.shared,s=r0(t),a=s[0],h=o.format,l=o.formatter||this.defaultFormatter,d=i.styledMode,c=this.allowShared;if(o.enabled&&a.series){tI.clearTimeout(this.hideTimer),this.allowShared=!(!rV(t)&&t.series&&t.series.noSharedTooltip),c=c&&!this.allowShared,this.followPointer=!this.split&&a.series.tooltipOptions.followPointer;var p=this.getAnchor(t,e),u=p[0],f=p[1];n&&this.allowShared&&(r.applyInactiveState(s),s.forEach(function(t){return t.setState("hover")}),a.points=s),this.len=s.length;var g=rK(h)?rz(h,a,i):l.call(a,this);a.points=void 0;var v=a.series;if(this.distance=rJ(v.tooltipOptions.distance,16),!1===g)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(g,s);else{var m=u,y=f;if(e&&r.isDirectTouch&&(m=e.chartX-i.plotLeft,y=e.chartY-i.plotTop),i.polar||!1===v.options.clip||s.some(function(t){return r.isDirectTouch||t.series.shouldShowTooltip(m,y)})){var x=this.getLabel(c&&this.tt||{});(!o.style.width||d)&&x.css({width:(this.outside?this.getPlayingField():i.spacingBox).width+"px"}),x.attr({class:this.getClassName(a),text:g&&g.join?g.join(""):g}),this.outside&&x.attr({x:rF(x.x||0,0,this.getPlayingField().width-(x.width||0)-1)}),d||x.attr({stroke:o.borderColor||a.color||v.color||"#666666"}),this.updatePosition({plotX:u,plotY:f,negative:a.negative,ttBelow:a.ttBelow,h:p[2]||0})}else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}rU(this,"refresh")}},t.prototype.renderSplit=function(t,e){var i,o=this,r=o.chart,n=o.chart,s=n.chartWidth,a=n.chartHeight,h=n.plotHeight,l=n.plotLeft,d=n.plotTop,c=n.scrollablePixelsY,p=n.scrollablePixelsX,u=n.styledMode,f=o.distance,g=o.options,v=o.options.positioner,m=o.pointer,y=(null===(i=r.scrollablePlotArea)||void 0===i?void 0:i.scrollingContainer)||{},x=y.scrollLeft,b=void 0===x?0:x,M=y.scrollTop,k=void 0===M?0:M,w=o.outside&&"number"!=typeof p?rW.documentElement.getBoundingClientRect():{left:b,right:b+s,top:k,bottom:k+a},S=o.getLabel(),A=this.renderer||r.renderer,T=!!(r.xAxis[0]&&r.xAxis[0].opposite),P=m.getChartPosition(),O=P.left,C=P.top,E=d+k,L=0,B=h-(void 0===c?0:c);function I(t,e,i,r,n){var s,a;return void 0===n&&(n=!0),i?(s=T?0:B,a=rF(t-r/2,w.left,w.right-r-(o.outside?O:0))):(s=e-E,a=rF(a=n?t-r-f:t+f,n?a:w.left,w.right)),{x:a,y:s}}rK(t)&&(t=[!1,t]);var D=t.slice(0,e.length+1).reduce(function(t,i,r){if(!1!==i&&""!==i){var n=e[r-1]||{isHeader:!0,plotX:e[0].plotX,plotY:h,series:{}},s=n.isHeader,a=s?o:n.series,c=a.tt=function(t,e,i){var r,n=t,s=e.isHeader,a=e.series;if(!n){var h={padding:g.padding,r:g.borderRadius};u||(h.fill=g.backgroundColor,h["stroke-width"]=null!==(r=g.borderWidth)&&void 0!==r?r:1),n=A.label("",0,0,g[s?"headerShape":"shape"],void 0,void 0,g.useHTML).addClass(o.getClassName(e,!0,s)).attr(h).add(S)}return n.isActive=!0,n.attr({text:i}),u||n.css(g.style).attr({stroke:g.borderColor||e.color||a.color||"#333333"}),n}(a.tt,n,i.toString()),p=c.getBBox(),m=p.width+c.strokeWidth();s&&(L=p.height,B+=L,T&&(E-=L));var y=function(t){var e,i,o=t.isHeader,r=t.plotX,n=void 0===r?0:r,s=t.plotY,a=void 0===s?0:s,c=t.series;if(o)e=Math.max(l+n,l),i=d+h/2;else{var p=c.xAxis,u=c.yAxis;e=p.pos+rF(n,-f,p.len+f),c.shouldShowTooltip(0,u.pos-d+a,{ignoreX:!0})&&(i=u.pos+a)}return{anchorX:e=rF(e,w.left-f,w.right+f),anchorY:i}}(n),x=y.anchorX,b=y.anchorY;if("number"==typeof b){var M=p.height+1,k=v?v.call(o,m,M,n):I(x,b,s,m);t.push({align:v?0:void 0,anchorX:x,anchorY:b,boxWidth:m,point:n,rank:rJ(k.rank,s?1:0),size:M,target:k.y,tt:c,x:k.x})}else c.isActive=!1}return t},[]);!v&&D.some(function(t){var e=(o.outside?O:0)+t.anchorX;return e<w.left&&e+t.boxWidth<w.right||e<O-w.left+t.boxWidth&&w.right-e>e})&&(D=D.map(function(t){var e=I(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1),i=e.x;return r_(t,{target:e.y,x:i})})),o.cleanSplit(),rX(D,B);var z={left:O,right:O};D.forEach(function(t){var e=t.x,i=t.boxWidth,r=t.isHeader;!r&&(o.outside&&O+e<z.left&&(z.left=O+e),!r&&o.outside&&z.left+i>z.right&&(z.right=O+e))}),D.forEach(function(t){var e=t.x,i=t.anchorX,r=t.anchorY,n=t.pos,s=t.point.isHeader,a={visibility:void 0===n?"hidden":"inherit",x:e,y:(n||0)+E,anchorX:i,anchorY:r};if(o.outside&&e<i){var h=O-z.left;h>0&&(s||(a.x=e+h,a.anchorX=i+h),s&&(a.x=(z.right-z.left)/2,a.anchorX=i+h))}t.tt.attr(a)});var R=o.container,N=o.outside,W=o.renderer;if(N&&R&&W){var G=S.getBBox(),X=G.width,H=G.height,F=G.x,Y=G.y;W.setSize(X+F,H+Y,!1),R.style.left=z.left+"px",R.style.top=C+"px"}rG&&S.attr({opacity:1===S.opacity?.999:1})},t.prototype.drawTracker=function(){if(!this.shouldStickOnContact()){this.tracker&&(this.tracker=this.tracker.destroy());return}var t=this.chart,e=this.label,i=this.shared?t.hoverPoints:t.hoverPoint;if(e&&i){var o={x:0,y:0,width:0,height:0},r=this.getAnchor(i),n=e.getBBox();r[0]+=t.plotLeft-(e.translateX||0),r[1]+=t.plotTop-(e.translateY||0),o.x=Math.min(0,r[0]),o.y=Math.min(0,r[1]),o.width=r[0]<0?Math.max(Math.abs(r[0]),n.width-r[0]):Math.max(Math.abs(r[0]),n.width),o.height=r[1]<0?Math.max(Math.abs(r[1]),n.height-Math.abs(r[1])):Math.max(Math.abs(r[1]),n.height),this.tracker?this.tracker.attr(o):(this.tracker=e.renderer.rect(o).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}},t.prototype.styledModeFormat=function(t){return t.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')},t.prototype.headerFooterFormatter=function(t,e){var i=t.series,o=i.tooltipOptions,r=i.xAxis,n=r&&r.dateTime,s={isFooter:e,point:t},a=o.xDateFormat||"",h=o[e?"footerFormat":"headerFormat"];return rU(this,"headerFormatter",s,function(e){if(n&&!a&&rq(t.key)&&(a=n.getXDateFormat(t.key,o.dateTimeLabelFormats)),n&&a){if(rZ(a)){var r=a;rN[0]=function(t){return i.chart.time.dateFormat(r,t)},a="%0"}(t.tooltipDateKeys||["key"]).forEach(function(t){h=h.replace(RegExp("point\\."+t+"([ \\)}])",""),"(point.".concat(t,":").concat(a,")$1"))})}i.chart.styledMode&&(h=this.styledModeFormat(h)),e.text=rz(h,t,this.chart)}),s.text||""},t.prototype.update=function(t){this.destroy(),this.init(this.chart,r$(!0,this.options,t))},t.prototype.updatePosition=function(t){var e,i=this.chart,o=this.container,r=this.distance,n=this.options,s=this.pointer,a=this.renderer,h=this.getLabel(),l=h.height,d=void 0===l?0:l,c=h.width,p=void 0===c?0:c,u=s.getChartPosition(),f=u.left,g=u.top,v=u.scaleX,m=u.scaleY,y=(n.positioner||this.getPosition).call(this,p,d,t),x=ta.doc,b=(t.plotX||0)+i.plotLeft,M=(t.plotY||0)+i.plotTop;a&&o&&(n.positioner&&(y.x+=f-r,y.y+=g-r),e=(n.borderWidth||0)+2*r+2,a.setSize(rF(p+e,0,x.documentElement.clientWidth)-1,d+e,!1),(1!==v||1!==m)&&(rY(o,{transform:"scale(".concat(v,", ").concat(m,")")}),b*=v,M*=m),b+=f-y.x,M+=g-y.y),this.move(Math.round(y.x),Math.round(y.y||0),b,M)},t}();(d=r2||(r2={})).compose=function(t){rQ(rR,"Core.Tooltip")&&rH(t,"afterInit",function(){var t=this.chart;t.options.tooltip&&(t.tooltip=new d(t,t.options.tooltip,this))})};var r3=r2,r5=eY.format,r6=tI.addEvent,r9=tI.crisp,r4=tI.erase,r8=tI.extend,r7=tI.fireEvent,nt=tI.getNestedProperty,ne=tI.isArray,ni=tI.isFunction,no=tI.isNumber,nr=tI.isObject,nn=tI.merge,ns=tI.pick,na=tI.syncTimeout,nh=tI.removeEvent,nl=tI.uniqueKey,nd=function(){function t(t,e,i){var o;this.formatPrefix="point",this.visible=!0,this.point=this,this.series=t,this.applyOptions(e,i),null!==(o=this.id)&&void 0!==o||(this.id=nl()),this.resolveColor(),t.chart.pointCount++,r7(this,"afterInit")}return t.prototype.animateBeforeDestroy=function(){var t=this,e={x:t.startXPos,opacity:0},i=t.getGraphicalProps();i.singular.forEach(function(i){t[i]=t[i].animate("dataLabel"===i?{x:t[i].startXPos,y:t[i].startYPos,opacity:0}:e)}),i.plural.forEach(function(e){t[e].forEach(function(e){e.element&&e.animate(r8({x:t.startXPos},e.startYPos?{x:e.startXPos,y:e.startYPos}:{}))})})},t.prototype.applyOptions=function(e,i){var o=this.series,r=o.options.pointValKey||o.pointValKey;return r8(this,e=t.prototype.optionsToObject.call(this,e)),this.options=this.options?r8(this.options,e):e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,r&&(this.y=t.prototype.getNestedProperty.call(this,r)),this.selected&&(this.state="select"),"name"in this&&void 0===i&&o.xAxis&&o.xAxis.hasNames&&(this.x=o.xAxis.nameToX(this)),void 0===this.x&&o?this.x=null!=i?i:o.autoIncrement():no(e.x)&&o.options.relativeXValue?this.x=o.autoIncrement(e.x):"string"==typeof this.x&&(null!=i||(i=o.chart.time.parse(this.x)),no(i)&&(this.x=i)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this},t.prototype.destroy=function(){if(!this.destroyed){var t=this,e=t.series,i=e.chart,o=e.options.dataSorting,r=i.hoverPoints,n=ec(t.series.chart.renderer.globalAnimation),s=function(){for(var e in(t.graphic||t.graphics||t.dataLabel||t.dataLabels)&&(nh(t),t.destroyElements()),t)delete t[e]};t.legendItem&&i.legend.destroyItem(t),r&&(t.setState(),r4(r,t),r.length||(i.hoverPoints=null)),t===i.hoverPoint&&t.onMouseOut(),o&&o.enabled?(this.animateBeforeDestroy(),na(s,n.duration)):s(),i.pointCount--}this.destroyed=!0},t.prototype.destroyElements=function(t){var e=this,i=e.getGraphicalProps(t);i.singular.forEach(function(t){e[t]=e[t].destroy()}),i.plural.forEach(function(t){e[t].forEach(function(t){t&&t.element&&t.destroy()}),delete e[t]})},t.prototype.firePointEvent=function(t,e,i){var o=this,r=this.series.options;o.manageEvent(t),"click"===t&&r.allowPointSelect&&(i=function(t){!o.destroyed&&o.select&&o.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),r7(o,t,e,i)},t.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},t.prototype.getGraphicalProps=function(t){var e,i,o=this,r=[],n={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&r.push("graphic","connector"),t.dataLabel&&r.push("dataLabel","dataLabelPath","dataLabelUpper"),i=r.length;i--;)o[e=r[i]]&&n.singular.push(e);return["graphic","dataLabel"].forEach(function(e){var i=e+"s";t[e]&&o[i]&&n.plural.push(i)}),n},t.prototype.getNestedProperty=function(t){return t?0===t.indexOf("custom.")?nt(t,this.options):this[t]:void 0},t.prototype.getZone=function(){var t,e=this.series,i=e.zones,o=e.zoneAxis||"y",r=0;for(t=i[0];this[o]>=t.value;)t=i[++r];return this.nonZonedColor||(this.nonZonedColor=this.color),t&&t.color&&!this.options.color?this.color=t.color:this.color=this.nonZonedColor,t},t.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},t.prototype.isValid=function(){return(no(this.x)||this.x instanceof Date)&&no(this.y)},t.prototype.optionsToObject=function(e){var i,o,r=this.series,n=r.options.keys,s=n||r.pointArrayMap||["y"],a=s.length,h={},l=0,d=0;if(no(e)||null===e)h[s[0]]=e;else if(ne(e))for(!n&&e.length>a&&("string"==(o=typeof e[0])?(null===(i=r.xAxis)||void 0===i?void 0:i.dateTime)?h.x=r.chart.time.parse(e[0]):h.name=e[0]:"number"===o&&(h.x=e[0]),l++);d<a;)n&&void 0===e[l]||(s[d].indexOf(".")>0?t.prototype.setNestedProperty(h,e[l],s[d]):h[s[d]]=e[l]),l++,d++;else"object"==typeof e&&(h=e,e.dataLabels&&(r.hasDataLabels=function(){return!0}),e.marker&&(r._hasPointMarkers=!0));return h},t.prototype.pos=function(t,e){if(void 0===e&&(e=this.plotY),!this.destroyed){var i=this.plotX,o=this.series,r=o.chart,n=o.xAxis,s=o.yAxis,a=0,h=0;if(no(i)&&no(e))return t&&(a=n?n.pos:r.plotLeft,h=s?s.pos:r.plotTop),r.inverted&&n&&s?[s.len-e+h,n.len-i+a]:[i+a,e+h]}},t.prototype.resolveColor=function(){var t,e,i,o=this.series,r=o.chart.options.chart,n=o.chart.styledMode,s=r.colorCount;delete this.nonZonedColor,o.options.colorByPoint?(n||(t=(e=o.options.colors||o.chart.options.colors)[o.colorCounter],s=e.length),i=o.colorCounter,o.colorCounter++,o.colorCounter===s&&(o.colorCounter=0)):(n||(t=o.color),i=o.colorIndex),this.colorIndex=ns(this.options.colorIndex,i),this.color=ns(this.options.color,t)},t.prototype.setNestedProperty=function(t,e,i){return i.split(".").reduce(function(t,i,o,r){var n=r.length-1===o;return t[i]=n?e:nr(t[i],!0)?t[i]:{},t[i]},t),t},t.prototype.shouldDraw=function(){return!this.isNull},t.prototype.tooltipFormatter=function(t){var e,i=this.series,o=i.chart,r=i.pointArrayMap,n=i.tooltipOptions,s=n.valueDecimals,a=void 0===s?"":s,h=n.valuePrefix,l=void 0===h?"":h,d=n.valueSuffix,c=void 0===d?"":d;return o.styledMode&&(t=(null===(e=o.tooltip)||void 0===e?void 0:e.styledModeFormat(t))||t),(void 0===r?["y"]:r).forEach(function(e){e="{point."+e,(l||c)&&(t=t.replace(RegExp(e+"}","g"),l+e+"}"+c)),t=t.replace(RegExp(e+"}","g"),e+":,."+a+"f}")}),r5(t,this,o)},t.prototype.update=function(t,e,i,o){var r,n=this,s=n.series,a=n.graphic,h=s.chart,l=s.options;function d(){n.applyOptions(t);var o=a&&n.hasMockGraphic,d=null===n.y?!o:o;a&&d&&(n.graphic=a.destroy(),delete n.hasMockGraphic),nr(t,!0)&&(a&&a.element&&t&&t.marker&&void 0!==t.marker.symbol&&(n.graphic=a.destroy()),(null==t?void 0:t.dataLabels)&&n.dataLabel&&(n.dataLabel=n.dataLabel.destroy())),r=n.index;for(var c={},p=0,u=s.dataColumnKeys();p<u.length;p++){var f=u[p];c[f]=n[f]}s.dataTable.setRow(c,r),l.data[r]=nr(l.data[r],!0)||nr(t,!0)?n.options:ns(t,l.data[r]),s.isDirty=s.isDirtyData=!0,!s.fixedBox&&s.hasCartesianSeries&&(h.isDirtyBox=!0),"point"===l.legendType&&(h.isDirtyLegend=!0),e&&h.redraw(i)}e=ns(e,!0),!1===o?d():n.firePointEvent("update",{options:t},d)},t.prototype.remove=function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)},t.prototype.select=function(t,e){var i=this,o=i.series,r=o.chart;t=ns(t,!i.selected),this.selectedStaging=t,i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,o.options.data[o.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||r.getSelectedPoints().forEach(function(t){var e=t.series;t.selected&&t!==i&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(r.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))})}),delete this.selectedStaging},t.prototype.onMouseOver=function(t){var e=this.series.chart,i=e.inverted,o=e.pointer;o&&(t=t?o.normalize(t):o.getChartCoordinatesFromPoint(this,i),o.runPointActions(t,this))},t.prototype.onMouseOut=function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(t){t.setState()}),t.hoverPoints=t.hoverPoint=null},t.prototype.manageEvent=function(t){var e,i,o,r,n,s,a,h=null===(e=nn(this.series.options.point,this.options).events)||void 0===e?void 0:e[t];!ni(h)||(null===(i=this.hcEvents)||void 0===i?void 0:i[t])&&(null===(r=null===(o=this.hcEvents)||void 0===o?void 0:o[t])||void 0===r?void 0:r.map(function(t){return t.fn}).indexOf(h))!==-1?this.importedUserEvent&&!h&&(null===(s=this.hcEvents)||void 0===s?void 0:s[t])&&(null===(a=this.hcEvents)||void 0===a?void 0:a[t].userEvent)&&(nh(this,t),delete this.hcEvents[t],Object.keys(this.hcEvents)||delete this.importedUserEvent):(null===(n=this.importedUserEvent)||void 0===n||n.call(this),this.importedUserEvent=r6(this,t,h),this.hcEvents&&(this.hcEvents[t].userEvent=!0))},t.prototype.setState=function(t,e){var i,o,r,n,s,a=this.series,h=this.state,l=a.options.states[t||"normal"]||{},d=t0.plotOptions[a.type].marker&&a.options.marker,c=d&&!1===d.enabled,p=d&&d.states&&d.states[t||"normal"]||{},u=!1===p.enabled,f=this.marker||{},g=a.chart,v=d&&a.markerAttribs,m=a.halo,y=a.stateMarkerGraphic;if(((t=t||"")!==this.state||e)&&(!this.selected||"select"===t)&&!1!==l.enabled&&(!t||!u&&(!c||!1!==p.enabled))&&(!t||!f.states||!f.states[t]||!1!==f.states[t].enabled)){if(this.state=t,v&&(o=a.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(h&&this.graphic.removeClass("highcharts-point-"+h),t&&this.graphic.addClass("highcharts-point-"+t),!g.styledMode){r=a.pointAttribs(this,t),n=ns(g.options.chart.animation,l.animation);var x=r.opacity;a.options.inactiveOtherPoints&&no(x)&&(this.dataLabels||[]).forEach(function(t){t&&!t.hasClass("highcharts-data-label-hidden")&&(t.animate({opacity:x},n),t.connector&&t.connector.animate({opacity:x},n))}),this.graphic.animate(r,n)}o&&this.graphic.animate(o,ns(g.options.chart.animation,p.animation,d.animation)),y&&y.hide()}else t&&p&&(s=f.symbol||a.symbol,y&&y.currentSymbol!==s&&(y=y.destroy()),o&&(y?y[e?"animate":"attr"]({x:o.x,y:o.y}):s&&(a.stateMarkerGraphic=y=g.renderer.symbol(s,o.x,o.y,o.width,o.height,nn(d,p)).add(a.markerGroup),y.currentSymbol=s)),!g.styledMode&&y&&"inactive"!==this.state&&y.attr(a.pointAttribs(this,t))),y&&(y[t&&this.isInside?"show":"hide"](),y.element.point=this,y.addClass(this.getClassName(),!0));var b=l.halo,M=this.graphic||y,k=M&&M.visibility||"inherit";b&&b.size&&M&&"hidden"!==k&&!this.isCluster?(m||(a.halo=m=g.renderer.path().add(M.parentGroup)),m.show()[e?"animate":"attr"]({d:this.haloPath(b.size)}),m.attr({class:"highcharts-halo highcharts-color-"+ns(this.colorIndex,a.colorIndex)+(this.className?" "+this.className:""),visibility:k,zIndex:-1}),m.point=this,g.styledMode||m.attr(r8({fill:this.color||a.color,"fill-opacity":b.opacity},eC.filterUserAttributes(b.attributes||{})))):(null===(i=null==m?void 0:m.point)||void 0===i?void 0:i.haloPath)&&!m.point.destroyed&&m.animate({d:m.point.haloPath(0)},null,m.hide),r7(this,"afterSetState",{state:t})}},t.prototype.haloPath=function(t){var e=this.pos();return e?this.series.chart.renderer.symbols.circle(r9(e[0],1)-t,e[1]-t,2*t,2*t):[]},t}(),nc=function(){return(nc=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},np=t4.parse,nu=ta.charts,nf=ta.composed,ng=ta.isTouchDevice,nv=tI.addEvent,nm=tI.attr,ny=tI.css,nx=tI.extend,nb=tI.find,nM=tI.fireEvent,nk=tI.isNumber,nw=tI.isObject,nS=tI.objectEach,nA=tI.offset,nT=tI.pick,nP=tI.pushUnique,nO=tI.splat,nC=function(){function t(t,e){var i;this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=e,this.chart=t,this.runChartClick=!!(null===(i=e.chart.events)||void 0===i?void 0:i.click),this.pinchDown=[],this.setDOMEvents(),nM(this,"afterInit")}return t.prototype.applyInactiveState=function(t){var e,i=[];(t||[]).forEach(function(t){e=t.series,i.push(e),e.linkedParent&&i.push(e.linkedParent),e.linkedSeries&&(i=i.concat(e.linkedSeries)),e.navigatorSeries&&i.push(e.navigatorSeries)}),this.chart.series.forEach(function(t){-1===i.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")})},t.prototype.destroy=function(){var e=this;this.eventsToUnbind.forEach(function(t){return t()}),this.eventsToUnbind=[],!ta.chartCount&&(t.unbindDocumentMouseUp.forEach(function(t){return t.unbind()}),t.unbindDocumentMouseUp.length=0,t.unbindDocumentTouchEnd&&(t.unbindDocumentTouchEnd=t.unbindDocumentTouchEnd())),clearInterval(e.tooltipTimeout),nS(e,function(t,i){e[i]=void 0})},t.prototype.getSelectionMarkerAttrs=function(t,e){var i=this,o={args:{chartX:t,chartY:e},attrs:{},shapeType:"rect"};return nM(this,"getSelectionMarkerAttrs",o,function(o){var r,n=i.chart,s=i.zoomHor,a=i.zoomVert,h=n.mouseDownX,l=void 0===h?0:h,d=n.mouseDownY,c=void 0===d?0:d,p=o.attrs;p.x=n.plotLeft,p.y=n.plotTop,p.width=s?1:n.plotWidth,p.height=a?1:n.plotHeight,s&&(r=t-l,p.width=Math.max(1,Math.abs(r)),p.x=(r>0?0:r)+l),a&&(r=e-c,p.height=Math.max(1,Math.abs(r)),p.y=(r>0?0:r)+c)}),o},t.prototype.drag=function(t){var e,i=this.chart,o=i.mouseDownX,r=void 0===o?0:o,n=i.mouseDownY,s=void 0===n?0:n,a=i.options.chart,h=a.panning,l=a.panKey,d=a.selectionMarkerFill,c=i.plotLeft,p=i.plotTop,u=i.plotWidth,f=i.plotHeight,g=nw(h)?h.enabled:h,v=l&&t[""+l+"Key"],m=t.chartX,y=t.chartY,x=this.selectionMarker;if((!x||!x.touch)&&(m<c?m=c:m>c+u&&(m=c+u),y<p?y=p:y>p+f&&(y=p+f),this.hasDragged=Math.sqrt(Math.pow(r-m,2)+Math.pow(s-y,2)),this.hasDragged>10)){e=i.isInsidePlot(r-c,s-p,{visiblePlotOnly:!0});var b=this.getSelectionMarkerAttrs(m,y),M=b.shapeType,k=b.attrs;(i.hasCartesianSeries||i.mapView)&&this.hasZoom&&e&&!v&&!x&&(this.selectionMarker=x=i.renderer[M](),x.attr({class:"highcharts-selection-marker",zIndex:7}).add(),i.styledMode||x.attr({fill:d||np("#334eff").setOpacity(.25).get()})),x&&x.attr(k),e&&!x&&g&&i.pan(t,h)}},t.prototype.dragStart=function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=t.chartX,e.mouseDownY=t.chartY},t.prototype.getSelectionBox=function(t){var e={args:{marker:t},result:t.getBBox()};return nM(this,"getSelectionBox",e),e.result},t.prototype.drop=function(t){for(var e,i=this,o=this.chart,r=this.selectionMarker,n=0,s=o.axes;n<s.length;n++){var a=s[n];a.isPanning&&(a.isPanning=!1,(a.options.startOnTick||a.options.endOnTick||a.series.some(function(t){return t.boosted}))&&(a.forceRedraw=!0,a.setExtremes(a.userMin,a.userMax,!1),e=!0))}if(e&&o.redraw(),r&&t){if(this.hasDragged){var h=this.getSelectionBox(r);o.transform({axes:o.axes.filter(function(t){return t.zoomEnabled&&("xAxis"===t.coll&&i.zoomX||"yAxis"===t.coll&&i.zoomY)}),selection:nc({originalEvent:t,xAxis:[],yAxis:[]},h),from:h})}nk(o.index)&&(this.selectionMarker=r.destroy())}o&&nk(o.index)&&(ny(o.container,{cursor:o._cursor}),o.cancelClick=this.hasDragged>10,o.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[])},t.prototype.findNearestKDPoint=function(t,e,i){var o;return t.forEach(function(t){var r,n,s,a,h,l,d=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y"),c=t.searchPoint(i,d);nw(c,!0)&&c.series&&(!nw(o,!0)||(a=(r=o).distX-c.distX,h=r.dist-c.dist,l=(null===(n=c.series.group)||void 0===n?void 0:n.zIndex)-(null===(s=r.series.group)||void 0===s?void 0:s.zIndex),(0!==a&&e?a:0!==h?h:0!==l?l:r.series.index>c.series.index?-1:1)>0))&&(o=c)}),o},t.prototype.getChartCoordinatesFromPoint=function(t,e){var i,o,r=t.series,n=r.xAxis,s=r.yAxis,a=t.shapeArgs;if(n&&s){var h=null!==(o=null!==(i=t.clientX)&&void 0!==i?i:t.plotX)&&void 0!==o?o:0,l=t.plotY||0;return t.isNode&&a&&nk(a.x)&&nk(a.y)&&(h=a.x,l=a.y),e?{chartX:s.len+s.pos-l,chartY:n.len+n.pos-h}:{chartX:h+n.pos,chartY:l+s.pos}}if(a&&a.x&&a.y)return{chartX:a.x,chartY:a.y}},t.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var t=this.chart.container,e=nA(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};var i=t.offsetHeight,o=t.offsetWidth;return o>2&&i>2&&(this.chartPosition.scaleX=e.width/o,this.chartPosition.scaleY=e.height/i),this.chartPosition},t.prototype.getCoordinates=function(t){for(var e={xAxis:[],yAxis:[]},i=0,o=this.chart.axes;i<o.length;i++){var r=o[i];e[r.isXAxis?"xAxis":"yAxis"].push({axis:r,value:r.toValue(t[r.horiz?"chartX":"chartY"])})}return e},t.prototype.getHoverData=function(t,e,i,o,r,n){var s,a=[],h=function(t){return t.visible&&!(!r&&t.directTouch)&&nT(t.options.enableMouseTracking,!0)},l=e,d={chartX:n?n.chartX:void 0,chartY:n?n.chartY:void 0,shared:r};nM(this,"beforeGetHoverData",d),s=l&&!l.stickyTracking?[l]:i.filter(function(t){return t.stickyTracking&&(d.filter||h)(t)});var c=o&&t||!n?t:this.findNearestKDPoint(s,r,n);return l=c&&c.series,c&&(r&&!l.noSharedTooltip?(s=i.filter(function(t){return d.filter?d.filter(t):h(t)&&!t.noSharedTooltip})).forEach(function(t){var e=nb(t.points,function(t){return t.x===c.x&&!t.isNull});nw(e)&&(t.boosted&&t.boost&&(e=t.boost.getPoint(e)),a.push(e))}):a.push(c)),nM(this,"afterGetHoverData",d={hoverPoint:c}),{hoverPoint:d.hoverPoint,hoverSeries:l,hoverPoints:a}},t.prototype.getPointFromEvent=function(t){for(var e,i=t.target;i&&!e;)e=i.point,i=i.parentNode;return e},t.prototype.onTrackerMouseOut=function(t){var e=this.chart,i=t.relatedTarget,o=e.hoverSeries;this.isDirectTouch=!1,!o||!i||o.stickyTracking||this.inClass(i,"highcharts-tooltip")||this.inClass(i,"highcharts-series-"+o.index)&&this.inClass(i,"highcharts-tracker")||o.onMouseOut()},t.prototype.inClass=function(t,e){for(var i,o=t;o;){if(i=nm(o,"class")){if(-1!==i.indexOf(e))return!0;if(-1!==i.indexOf("highcharts-container"))return!1}o=o.parentElement}},t.prototype.normalize=function(t,e){var i=t.touches,o=i?i.length?i.item(0):nT(i.changedTouches,t.changedTouches)[0]:t;e||(e=this.getChartPosition());var r=o.pageX-e.left,n=o.pageY-e.top;return nx(t,{chartX:Math.round(r/=e.scaleX),chartY:Math.round(n/=e.scaleY)})},t.prototype.onContainerClick=function(t){var e=this.chart,i=e.hoverPoint,o=this.normalize(t),r=e.plotLeft,n=e.plotTop;!e.cancelClick&&(i&&this.inClass(o.target,"highcharts-tracker")?(nM(i.series,"click",nx(o,{point:i})),e.hoverPoint&&i.firePointEvent("click",o)):(nx(o,this.getCoordinates(o)),e.isInsidePlot(o.chartX-r,o.chartY-n,{visiblePlotOnly:!0})&&nM(e,"click",o)))},t.prototype.onContainerMouseDown=function(t){var e,i=(1&(t.buttons||t.button))==1;t=this.normalize(t),ta.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||i)&&(this.zoomOption(t),i&&(null===(e=t.preventDefault)||void 0===e||e.call(t)),this.dragStart(t))},t.prototype.onContainerMouseLeave=function(e){var i=(nu[nT(t.hoverChartIndex,-1)]||{}).pointer;e=this.normalize(e),this.onContainerMouseMove(e),i&&!this.inClass(e.relatedTarget,"highcharts-tooltip")&&(i.reset(),i.chartPosition=void 0)},t.prototype.onContainerMouseEnter=function(){delete this.chartPosition},t.prototype.onContainerMouseMove=function(t){var e=this.chart,i=e.tooltip,o=this.normalize(t);this.setHoverChartIndex(t),("mousedown"===e.mouseIsDown||this.touchSelect(o))&&this.drag(o),!e.openMenu&&(this.inClass(o.target,"highcharts-tracker")||e.isInsidePlot(o.chartX-e.plotLeft,o.chartY-e.plotTop,{visiblePlotOnly:!0}))&&!(i&&i.shouldStickOnContact(o))&&(this.inClass(o.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(o))},t.prototype.onDocumentTouchEnd=function(t){this.onDocumentMouseUp(t)},t.prototype.onContainerTouchMove=function(t){this.touchSelect(t)?this.onContainerMouseMove(t):this.touch(t)},t.prototype.onContainerTouchStart=function(t){this.touchSelect(t)?this.onContainerMouseDown(t):(this.zoomOption(t),this.touch(t,!0))},t.prototype.onDocumentMouseMove=function(t){var e=this.chart,i=e.tooltip,o=this.chartPosition,r=this.normalize(t,o);!o||e.isInsidePlot(r.chartX-e.plotLeft,r.chartY-e.plotTop,{visiblePlotOnly:!0})||i&&i.shouldStickOnContact(r)||r.target!==e.container.ownerDocument&&this.inClass(r.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(e){var i,o;null===(o=null===(i=nu[nT(t.hoverChartIndex,-1)])||void 0===i?void 0:i.pointer)||void 0===o||o.drop(e)},t.prototype.pinch=function(t){var e=this,i=this,o=i.chart,r=i.hasZoom,n=i.lastTouches,s=[].map.call(t.touches||[],function(t){return i.normalize(t)}),a=s.length,h=1===a&&(i.inClass(t.target,"highcharts-tracker")&&o.runTrackerClick||i.runChartClick),l=o.tooltip,d=1===a&&nT(null==l?void 0:l.options.followTouchMove,!0);a>1?i.initiated=!0:d&&(i.initiated=!1),r&&i.initiated&&!h&&!1!==t.cancelable&&t.preventDefault(),"touchstart"===t.type?(i.pinchDown=s,i.res=!0,o.mouseDownX=t.chartX):d?this.runPointActions(i.normalize(t)):n&&(nM(o,"touchpan",{originalEvent:t,touches:s},function(){var i=function(t){var e=t[0],i=t[1]||e;return{x:e.chartX,y:e.chartY,width:i.chartX-e.chartX,height:i.chartY-e.chartY}};o.transform({axes:o.axes.filter(function(t){return t.zoomEnabled&&(e.zoomHor&&t.horiz||e.zoomVert&&!t.horiz)}),to:i(s),from:i(n),trigger:t.type})}),i.res&&(i.res=!1,this.reset(!1,0))),i.lastTouches=s},t.prototype.reset=function(t,e){var i=this.chart,o=i.hoverSeries,r=i.hoverPoint,n=i.hoverPoints,s=i.tooltip,a=s&&s.shared?n:r;t&&a&&nO(a).forEach(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?s&&a&&nO(a).length&&(s.refresh(a),s.shared&&n?n.forEach(function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))}):r&&(r.setState(r.state,!0),i.axes.forEach(function(t){t.crosshair&&r.series[t.coll]===t&&t.drawCrosshair(null,r)}))):(r&&r.onMouseOut(),n&&n.forEach(function(t){t.setState()}),o&&o.onMouseOut(),s&&s.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(t){t.hideCrosshair()}),i.hoverPoints=i.hoverPoint=void 0)},t.prototype.runPointActions=function(e,i,o){var r=this.chart,n=r.series,s=r.tooltip&&r.tooltip.options.enabled?r.tooltip:void 0,a=!!s&&s.shared,h=i||r.hoverPoint,l=h&&h.series||r.hoverSeries,d=(!e||"touchmove"!==e.type)&&(!!i||l&&l.directTouch&&this.isDirectTouch),c=this.getHoverData(h,l,n,d,a,e);h=c.hoverPoint,l=c.hoverSeries;var p=c.hoverPoints,u=l&&l.tooltipOptions.followPointer&&!l.tooltipOptions.split,f=a&&l&&!l.noSharedTooltip;if(h&&(o||h!==r.hoverPoint||s&&s.isHidden)){if((r.hoverPoints||[]).forEach(function(t){-1===p.indexOf(t)&&t.setState()}),r.hoverSeries!==l&&l.onMouseOver(),this.applyInactiveState(p),(p||[]).forEach(function(t){t.setState("hover")}),r.hoverPoint&&r.hoverPoint.firePointEvent("mouseOut"),!h.series)return;r.hoverPoints=p,r.hoverPoint=h,h.firePointEvent("mouseOver",void 0,function(){s&&h&&s.refresh(f?p:h,e)})}else if(u&&s&&!s.isHidden){var g=s.getAnchor([{}],e);r.isInsidePlot(g[0],g[1],{visiblePlotOnly:!0})&&s.updatePosition({plotX:g[0],plotY:g[1]})}this.unDocMouseMove||(this.unDocMouseMove=nv(r.container.ownerDocument,"mousemove",function(e){var i,o,r;return null===(r=null===(o=nu[null!==(i=t.hoverChartIndex)&&void 0!==i?i:-1])||void 0===o?void 0:o.pointer)||void 0===r?void 0:r.onDocumentMouseMove(e)}),this.eventsToUnbind.push(this.unDocMouseMove)),r.axes.forEach(function(t){var i,o=nT((t.crosshair||{}).snap,!0);!o||(i=r.hoverPoint)&&i.series[t.coll]===t||(i=nb(p,function(e){return e.series&&e.series[t.coll]===t})),i||!o?t.drawCrosshair(e,i):t.hideCrosshair()})},t.prototype.setDOMEvents=function(){var e=this,i=this.chart.container,o=i.ownerDocument;i.onmousedown=this.onContainerMouseDown.bind(this),i.onmousemove=this.onContainerMouseMove.bind(this),i.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(nv(i,"mouseenter",this.onContainerMouseEnter.bind(this)),nv(i,"mouseleave",this.onContainerMouseLeave.bind(this))),t.unbindDocumentMouseUp.some(function(t){return t.doc===o})||t.unbindDocumentMouseUp.push({doc:o,unbind:nv(o,"mouseup",this.onDocumentMouseUp.bind(this))});for(var r=this.chart.renderTo.parentElement;r&&"BODY"!==r.tagName;)this.eventsToUnbind.push(nv(r,"scroll",function(){delete e.chartPosition})),r=r.parentElement;this.eventsToUnbind.push(nv(i,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),nv(i,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=nv(o,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),nv(this.chart,"redraw",this.setPointerCapture.bind(this))},t.prototype.setPointerCapture=function(){if(ng){var t,e,i=this.pointerCaptureEventsToUnbind,o=this.chart,r=o.container,n=nT(null===(t=o.options.tooltip)||void 0===t?void 0:t.followTouchMove,!0)&&o.series.some(function(t){return t.options.findNearestPointBy.indexOf("y")>-1});!this.hasPointerCapture&&n?(i.push(nv(r,"pointerdown",function(t){var e,i;(null===(e=t.target)||void 0===e?void 0:e.hasPointerCapture(t.pointerId))&&(null===(i=t.target)||void 0===i||i.releasePointerCapture(t.pointerId))}),nv(r,"pointermove",function(t){var e,i;null===(i=null===(e=o.pointer)||void 0===e?void 0:e.getPointFromEvent(t))||void 0===i||i.onMouseOver(t)})),o.styledMode||ny(r,{"touch-action":"none"}),r.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!n&&(i.forEach(function(t){return t()}),i.length=0,o.styledMode||ny(r,{"touch-action":nT(null===(e=o.options.chart.style)||void 0===e?void 0:e["touch-action"],"manipulation")}),r.className=r.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}},t.prototype.setHoverChartIndex=function(e){var i,o=this.chart,r=ta.charts[nT(t.hoverChartIndex,-1)];if(r&&r!==o){var n={relatedTarget:o.container};!e||(null==e?void 0:e.relatedTarget)||Object.assign({},e,n),null===(i=r.pointer)||void 0===i||i.onContainerMouseLeave(e||n)}r&&r.mouseIsDown||(t.hoverChartIndex=o.index)},t.prototype.touch=function(t,e){var i,o=this.chart,r=this.pinchDown,n=void 0===r?[]:r;this.setHoverChartIndex(),1===(t=this.normalize(t)).touches.length?o.isInsidePlot(t.chartX-o.plotLeft,t.chartY-o.plotTop,{visiblePlotOnly:!0})&&!o.openMenu?(e&&this.runPointActions(t),"touchmove"===t.type&&(i=!!n[0]&&Math.pow(n[0].chartX-t.chartX,2)+Math.pow(n[0].chartY-t.chartY,2)>=16),nT(i,!0)&&this.pinch(t)):e&&this.reset():2===t.touches.length&&this.pinch(t)},t.prototype.touchSelect=function(t){return!!(this.chart.zooming.singleTouch&&t.touches&&1===t.touches.length)},t.prototype.zoomOption=function(t){var e,i,o=this.chart,r=o.inverted,n=o.zooming.type||"";/touch/.test(t.type)&&(n=nT(o.zooming.pinchType,n)),this.zoomX=e=/x/.test(n),this.zoomY=i=/y/.test(n),this.zoomHor=e&&!r||i&&r,this.zoomVert=i&&!r||e&&r,this.hasZoom=e||i},t.unbindDocumentMouseUp=[],t}();(c=nC||(nC={})).compose=function(t){nP(nf,"Core.Pointer")&&nv(t,"beforeRender",function(){this.pointer=new c(this,this.options)})};var nE=nC,nL=tI.fireEvent,nB=tI.isArray,nI=tI.objectEach,nD=tI.uniqueKey,nz=function(){function t(t){void 0===t&&(t={});var e=this;this.autoId=!t.id,this.columns={},this.id=t.id||nD(),this.modified=this,this.rowCount=0,this.versionTag=nD();var i=0;nI(t.columns||{},function(t,o){e.columns[o]=t.slice(),i=Math.max(i,t.length)}),this.applyRowCount(i)}return t.prototype.applyRowCount=function(t){this.rowCount=t,nI(this.columns,function(e){nB(e)&&(e.length=t)})},t.prototype.getColumn=function(t,e){return this.columns[t]},t.prototype.getColumns=function(t,e){var i=this;return(t||Object.keys(this.columns)).reduce(function(t,e){return t[e]=i.columns[e],t},{})},t.prototype.getRow=function(t,e){var i=this;return(e||Object.keys(this.columns)).map(function(e){var o;return null===(o=i.columns[e])||void 0===o?void 0:o[t]})},t.prototype.setColumn=function(t,e,i,o){var r;void 0===e&&(e=[]),void 0===i&&(i=0),this.setColumns(((r={})[t]=e,r),i,o)},t.prototype.setColumns=function(t,e,i){var o=this,r=this.rowCount;nI(t,function(t,e){o.columns[e]=t.slice(),r=t.length}),this.applyRowCount(r),(null==i?void 0:i.silent)||(nL(this,"afterSetColumns"),this.versionTag=nD())},t.prototype.setRow=function(t,e,i,o){void 0===e&&(e=this.rowCount);var r=this.columns,n=i?this.rowCount+1:e+1;nI(t,function(t,s){var a=r[s]||(null==o?void 0:o.addColumns)!==!1&&Array(n);a&&(i?a.splice(e,0,t):a[e]=t,r[s]=a)}),n>this.rowCount&&this.applyRowCount(n),(null==o?void 0:o.silent)||(nL(this,"afterSetRows"),this.versionTag=nD())},t}(),nR=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},nN=tI.extend,nW=tI.merge,nG=tI.pick;!function(t){function e(t,e,i){var o,r,n,s=this.legendItem=this.legendItem||{},a=this.chart,h=this.options,l=t.baseline,d=void 0===l?0:l,c=t.symbolWidth,p=t.symbolHeight,u=this.symbol||"circle",f=p/2,g=a.renderer,v=s.group,m=d-Math.round(((null===(o=t.fontMetrics)||void 0===o?void 0:o.b)||p)*(i?.4:.3)),y={},x=h.marker,b=0;if(a.styledMode||(y["stroke-width"]=Math.min(h.lineWidth||0,24),h.dashStyle?y.dashstyle=h.dashStyle:"square"===h.linecap||(y["stroke-linecap"]="round")),s.line=g.path().addClass("highcharts-graph").attr(y).add(v),i&&(s.area=g.path().addClass("highcharts-area").add(v)),y["stroke-linecap"]&&(b=Math.min(s.line.strokeWidth(),c)/2),c){var M=[["M",b,m],["L",c-b,m]];s.line.attr({d:M}),null===(r=s.area)||void 0===r||r.attr({d:nR(nR([],M,!0),[["L",c-b,d],["L",b,d]],!1)})}if(x&&!1!==x.enabled&&c){var k=Math.min(nG(x.radius,f),f);0===u.indexOf("url")&&(x=nW(x,{width:p,height:p}),k=0),s.symbol=n=g.symbol(u,c/2-k,m-k,2*k,2*k,nN({context:"legend"},x)).addClass("highcharts-point").add(v),n.isMarker=!0}}t.areaMarker=function(t,i){e.call(this,t,i,!0)},t.lineMarker=e,t.rectangle=function(t,e){var i=e.legendItem||{},o=t.options,r=t.symbolHeight,n=o.squareSymbol,s=n?r:t.symbolWidth;i.symbol=this.chart.renderer.rect(n?(t.symbolWidth-r)/2:0,t.baseline-r+1,s,r,nG(t.options.symbolRadius,r/2)).addClass("highcharts-point").attr({zIndex:3}).add(i.group)}}(F||(F={}));var nX=F,nH={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){var t=this.series.chart.numberFormatter;return"number"!=typeof this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},nF=(p=function(t,e){return(p=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}p(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),nY=tI.extend,nj=tI.extendClass,n_=tI.merge;!function(t){function e(e,i){var o=t0.plotOptions||{},r=i.defaultOptions,n=i.prototype;return n.type=e,n.pointClass||(n.pointClass=nd),!t.seriesTypes[e]&&(r&&(o[e]=r),t.seriesTypes[e]=i,!0)}t.seriesTypes=ta.seriesTypes,t.registerSeriesType=e,t.seriesType=function(i,o,r,n,s){var a=t0.plotOptions||{};if(o=o||"",a[i]=n_(a[o],r),delete t.seriesTypes[i],e(i,nj(t.seriesTypes[o]||function(){},n)),t.seriesTypes[i].prototype.type=i,s){var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return nF(e,t),e}(nd);nY(h.prototype,s),t.seriesTypes[i].prototype.pointClass=h}return t.seriesTypes[i]}}(Y||(Y={}));var nU=Y,nV=function(){return(nV=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},nq=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},nZ=oL.registerEventOptions,nK=ta.svg,n$=ta.win,nJ=nU.seriesTypes,nQ=tI.arrayMax,n0=tI.arrayMin,n1=tI.clamp,n2=tI.correctFloat,n3=tI.crisp,n5=tI.defined,n6=tI.destroyObjectProperties,n9=tI.diffObjects,n4=tI.erase,n8=tI.error,n7=tI.extend,st=tI.find,se=tI.fireEvent,si=tI.getClosestDistance,so=tI.getNestedProperty,sr=tI.insertItem,sn=tI.isArray,ss=tI.isNumber,sa=tI.isString,sh=tI.merge,sl=tI.objectEach,sd=tI.pick,sc=tI.removeEvent,sp=tI.syncTimeout,su=function(){function t(){this.zoneAxis="y"}return t.prototype.init=function(t,e){se(this,"init",{options:e}),null!==(i=this.dataTable)&&void 0!==i||(this.dataTable=new nz);var i,o,r=t.series;this.eventsToUnbind=[],this.chart=t,this.options=this.setOptions(e);var n=this.options,s=!1!==n.visible;this.linkedSeries=[],this.bindAxes(),n7(this,{name:n.name,state:"",visible:s,selected:!0===n.selected}),nZ(this,n);var a=n.events;(a&&a.click||n.point&&n.point.events&&n.point.events.click||n.allowPointSelect)&&(t.runTrackerClick=!0),this.getColor(),this.getSymbol(),this.isCartesian&&(t.hasCartesianSeries=!0),r.length&&(o=r[r.length-1]),this._i=sd(o&&o._i,-1)+1,this.opacity=this.options.opacity,t.orderItems("series",sr(this,r)),n.dataSorting&&n.dataSorting.enabled?this.setDataSortingOptions():this.points||this.data||this.setData(n.data,!1),se(this,"afterInit")},t.prototype.is=function(t){return nJ[t]&&this instanceof nJ[t]},t.prototype.bindAxes=function(){var t,e=this,i=e.options,o=e.chart;se(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(r){(o[r]||[]).forEach(function(o){t=o.options,(sd(i[r],0)===o.index||void 0!==i[r]&&i[r]===t.id)&&(sr(e,o.series),e[r]=o,o.isDirty=!0)}),e[r]||e.optionalAxis===r||n8(18,!0,o)})}),se(this,"afterBindAxes")},t.prototype.hasData=function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.dataTable.rowCount>0},t.prototype.hasMarkerChanged=function(t,e){var i=t.marker,o=e.marker||{};return i&&(o.enabled&&!i.enabled||o.symbol!==i.symbol||o.height!==i.height||o.width!==i.width)},t.prototype.autoIncrement=function(t){var e,i,o,r=this.options,n=this.options,s=n.pointIntervalUnit,a=n.relativeXValue,h=this.chart.time,l=null!==(i=null!==(e=this.xIncrement)&&void 0!==e?e:h.parse(r.pointStart))&&void 0!==i?i:0;if(this.pointInterval=o=sd(this.pointInterval,r.pointInterval,1),a&&ss(t)&&(o*=t),s){var d=h.toParts(l);"day"===s?d[2]+=o:"month"===s?d[1]+=o:"year"===s&&(d[0]+=o),o=h.makeTime.apply(h,d)-l}return a&&ss(t)?l+o:(this.xIncrement=l+o,l)},t.prototype.setDataSortingOptions=function(){var t=this.options;n7(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),n5(t.pointRange)||(t.pointRange=1)},t.prototype.setOptions=function(t){var e,i,o,r=this.chart,n=r.options.plotOptions,s=r.userOptions||{},a=sh(t),h=r.styledMode,l={plotOptions:n,userOptions:a};se(this,"setOptions",l);var d=l.plotOptions[this.type],c=s.plotOptions||{},p=c.series||{},u=t0.plotOptions[this.type]||{},f=c[this.type]||{};this.userOptions=l.userOptions;var g=sh(d,n.series,f,a);this.tooltipOptions=sh(t0.tooltip,null===(e=t0.plotOptions.series)||void 0===e?void 0:e.tooltip,null==u?void 0:u.tooltip,r.userOptions.tooltip,null===(i=c.series)||void 0===i?void 0:i.tooltip,f.tooltip,a.tooltip),this.stickyTracking=sd(a.stickyTracking,f.stickyTracking,p.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||g.stickyTracking),null===d.marker&&delete g.marker,this.zoneAxis=g.zoneAxis||"y";var v=this.zones=(g.zones||[]).map(function(t){return nV({},t)});return(g.negativeColor||g.negativeFillColor)&&!g.zones&&(o={value:g[this.zoneAxis+"Threshold"]||g.threshold||0,className:"highcharts-negative"},h||(o.color=g.negativeColor,o.fillColor=g.negativeFillColor),v.push(o)),v.length&&n5(v[v.length-1].value)&&v.push(h?{}:{color:this.color,fillColor:this.fillColor}),se(this,"afterSetOptions",{options:g}),g},t.prototype.getName=function(){return sd(this.options.name,"Series "+(this.index+1))},t.prototype.getCyclic=function(t,e,i){var o,r,n=this.chart,s=""+t+"Index",a=""+t+"Counter",h=(null==i?void 0:i.length)||n.options.chart.colorCount;!e&&(n5(r=sd("color"===t?this.options.colorIndex:void 0,this[s]))?o=r:(n.series.length||(n[a]=0),o=n[a]%h,n[a]+=1),i&&(e=i[o])),void 0!==o&&(this[s]=o),this[t]=e},t.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||t0.plotOptions[this.type].color,this.chart.options.colors)},t.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},t.prototype.getSymbol=function(){var t=this.options.marker;this.getCyclic("symbol",t.symbol,this.chart.options.symbols)},t.prototype.getColumn=function(t,e){return(e?this.dataTable.modified:this.dataTable).getColumn(t,!0)||[]},t.prototype.findPointIndex=function(t,e){var i,o,r,n=t.id,s=t.x,a=this.points,h=this.options.dataSorting;if(n){var l=this.chart.get(n);l instanceof nd&&(i=l)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){var d=function(e){return!e.touched&&e.index===t.index};if(h&&h.matchByName?d=function(e){return!e.touched&&e.name===t.name}:this.options.relativeXValue&&(d=function(e){return!e.touched&&e.options.x===t.x}),!(i=st(a,d)))return}return i&&void 0!==(r=i&&i.index)&&(o=!0),void 0===r&&ss(s)&&(r=this.getColumn("x").indexOf(s,e)),-1!==r&&void 0!==r&&this.cropped&&(r=r>=this.cropStart?r-this.cropStart:r),!o&&ss(r)&&a[r]&&a[r].touched&&(r=void 0),r},t.prototype.updateData=function(t,e){var i,o,r,n,s=this.options,a=s.dataSorting,h=this.points,l=[],d=this.requireSorting,c=t.length===h.length,p=!0;if(this.xIncrement=null,t.forEach(function(t,e){var o,r=n5(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},p=r.x;r.id||ss(p)?(-1===(o=this.findPointIndex(r,n))||void 0===o?l.push(t):h[o]&&t!==s.data[o]?(h[o].update(t,!1,null,!1),h[o].touched=!0,d&&(n=o+1)):h[o]&&(h[o].touched=!0),(!c||e!==o||a&&a.enabled||this.hasDerivedData)&&(i=!0)):l.push(t)},this),i)for(o=h.length;o--;)(r=h[o])&&!r.touched&&r.remove&&r.remove(!1,e);else!c||a&&a.enabled?p=!1:(t.forEach(function(t,e){t===h[e].y||h[e].destroyed||h[e].update(t,!1,null,!1)}),l.length=0);if(h.forEach(function(t){t&&(t.touched=!1)}),!p)return!1;l.forEach(function(t){this.addPoint(t,!1,null,null,!1)},this);var u=this.getColumn("x");return null===this.xIncrement&&u.length&&(this.xIncrement=nQ(u),this.autoIncrement()),!0},t.prototype.dataColumnKeys=function(){return nq(["x"],this.pointArrayMap||["y"],!0)},t.prototype.setData=function(t,e,i,o){void 0===e&&(e=!0);var r,n,s,a,h,l,d,c=this.points,p=c&&c.length||0,u=this.options,f=this.chart,g=u.dataSorting,v=this.xAxis,m=u.turboThreshold,y=this.dataTable,x=this.dataColumnKeys(),b=this.pointValKey||"y",M=(this.pointArrayMap||[]).length,k=u.keys,w=0,S=1;f.options.chart.allowMutatingData||(u.data&&delete this.options.data,this.userOptions.data&&delete this.userOptions.data,d=sh(!0,t));var A=(t=d||t||[]).length;if(g&&g.enabled&&(t=this.sortData(t)),f.options.chart.allowMutatingData&&!1!==o&&A&&p&&!this.cropped&&!this.hasGroupedData&&this.visible&&!this.boosted&&(l=this.updateData(t,i)),!l){this.xIncrement=null,this.colorCounter=0;var T=m&&A>m;if(T){var P=this.getFirstValidPoint(t),O=this.getFirstValidPoint(t,A-1,-1),C=function(t){return!!(sn(t)&&(k||ss(t[0])))};if(ss(P)&&ss(O)){for(var E=[],L=[],B=0,I=t;B<I.length;B++){var D=I[B];E.push(this.autoIncrement()),L.push(D)}y.setColumns(((r={x:E})[b]=L,r))}else if(C(P)&&C(O)){if(M){for(var z=P.length===M?1:0,R=Array(x.length).fill(0).map(function(){return[]}),N=0,W=t;N<W.length;N++){var G=W[N];z&&R[0].push(this.autoIncrement());for(var X=z;X<=M;X++)null===(s=R[X])||void 0===s||s.push(G[X-z])}y.setColumns(x.reduce(function(t,e,i){return t[e]=R[i],t},{}))}else{k&&(w=k.indexOf("x"),S=k.indexOf("y"),w=w>=0?w:0,S=S>=0?S:1),1===P.length&&(S=0);var H=[],L=[];if(w===S)for(var F=0,Y=t;F<Y.length;F++){var G=Y[F];H.push(this.autoIncrement()),L.push(G[S])}else for(var j=0,_=t;j<_.length;j++){var G=_[j];H.push(G[w]),L.push(G[S])}y.setColumns(((n={x:H})[b]=L,n))}}else T=!1}if(!T){var U=x.reduce(function(t,e){return t[e]=[],t},{});for(h=0;h<A;h++)for(var G=this.pointClass.prototype.applyOptions.apply({series:this},[t[h]]),V=0;V<x.length;V++){var q=x[V];U[q][h]=G[q]}y.setColumns(U)}for(sa(this.getColumn("y")[0])&&n8(14,!0,f),this.data=[],this.options.data=this.userOptions.data=t,h=p;h--;)null===(a=c[h])||void 0===a||a.destroy();v&&(v.minRange=v.userMinRange),this.isDirty=f.isDirtyBox=!0,this.isDirtyData=!!c,i=!1}"point"===u.legendType&&(this.processData(),this.generatePoints()),e&&f.redraw(i)},t.prototype.sortData=function(t){var e=this,i=e.options.dataSorting.sortKey||"y",o=function(t,e){return n5(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach(function(i,r){t[r]=o(e,i),t[r].index=r},this),t.concat().sort(function(t,e){var o=so(i,t),r=so(i,e);return r<o?-1:r>o?1:0}).forEach(function(t,e){t.x=e},this),e.linkedSeries&&e.linkedSeries.forEach(function(e){var i=e.options,r=i.data;i.dataSorting&&i.dataSorting.enabled||!r||(r.forEach(function(i,n){r[n]=o(e,i),t[n]&&(r[n].x=t[n].x,r[n].index=n)}),e.setData(r,!1))}),t},t.prototype.getProcessedData=function(t){var e,i,o,r,n,s=this,a=s.dataTable,h=s.isCartesian,l=s.options,d=s.xAxis,c=l.cropThreshold,p=t||s.getExtremesFromAll,u=null==d?void 0:d.logarithmic,f=a.rowCount,g=0,v=s.getColumn("x"),m=a,y=!1;return d&&(r=(o=d.getExtremes()).min,n=o.max,y=!!(d.categories&&!d.names.length),h&&s.sorted&&!p&&(!c||f>c||s.forceCrop)&&(v[f-1]<r||v[0]>n?m=new nz:s.getColumn(s.pointValKey||"y").length&&(v[0]<r||v[f-1]>n)&&(m=(e=this.cropData(a,r,n)).modified,g=e.start,i=!0))),v=m.getColumn("x")||[],{modified:m,cropped:i,cropStart:g,closestPointRange:si([u?v.map(u.log2lin):v],function(){return s.requireSorting&&!y&&n8(15,!1,s.chart)})}},t.prototype.processData=function(t){var e=this.xAxis,i=this.dataTable;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;var o=this.getProcessedData();i.modified=o.modified,this.cropped=o.cropped,this.cropStart=o.cropStart,this.closestPointRange=this.basePointRange=o.closestPointRange,se(this,"afterProcessData")},t.prototype.cropData=function(t,e,i){var o,r,n=t.getColumn("x",!0)||[],s=n.length,a={},h=0,l=s;for(o=0;o<s;o++)if(n[o]>=e){h=Math.max(0,o-1);break}for(r=o;r<s;r++)if(n[r]>i){l=r+1;break}for(var d=0,c=this.dataColumnKeys();d<c.length;d++){var p=c[d],u=t.getColumn(p,!0);u&&(a[p]=u.slice(h,l))}return{modified:new nz({columns:a}),start:h,end:l}},t.prototype.generatePoints=function(){var t,e,i,o,r,n,s,a,h,l=this.options,d=this.processedData||l.data,c=this.dataTable.modified,p=this.getColumn("x",!0),u=this.pointClass,f=c.rowCount,g=this.cropStart||0,v=this.hasGroupedData,m=l.keys,y=[],x=l.dataGrouping&&l.dataGrouping.groupAll?g:0,b=null===(t=this.xAxis)||void 0===t?void 0:t.categories,M=this.pointArrayMap||["y"],k=this.dataColumnKeys(),w=this.data;if(!w&&!v){var S=[];S.length=(null==d?void 0:d.length)||0,w=this.data=S}for(m&&v&&(this.options.keys=!1),a=0;a<f;a++)n=g+a,v?((s=new u(this,c.getRow(a,k)||[])).dataGroup=this.groupMap[x+a],(null===(e=s.dataGroup)||void 0===e?void 0:e.options)&&(s.options=s.dataGroup.options,n7(s,s.dataGroup.options),delete s.dataLabels)):(s=w[n],h=d?d[n]:c.getRow(a,M),s||void 0===h||(w[n]=s=new u(this,h,p[a]))),s&&(s.index=v?x+a:n,y[a]=s,s.category=null!==(i=null==b?void 0:b[s.x])&&void 0!==i?i:s.x,s.key=null!==(o=s.name)&&void 0!==o?o:s.category);if(this.options.keys=m,w&&(f!==(r=w.length)||v))for(a=0;a<r;a++)a!==g||v||(a+=f),w[a]&&(w[a].destroyElements(),w[a].plotX=void 0);this.data=w,this.points=y,se(this,"afterGeneratePoints")},t.prototype.getXExtremes=function(t){return{min:n0(t),max:nQ(t)}},t.prototype.getExtremes=function(t,e){var i,o,r,n,s=this.xAxis,a=this.yAxis,h=e||this.getExtremesFromAll||this.options.getExtremesFromAll,l=h&&this.cropped?this.dataTable:this.dataTable.modified,d=l.rowCount,c=t||this.stackedYData,p=c?[c]:(null===(i=this.keysAffectYAxis||this.pointArrayMap||["y"])||void 0===i?void 0:i.map(function(t){return l.getColumn(t,!0)||[]}))||[],u=this.getColumn("x",!0),f=[],g=this.requireSorting&&!this.is("column")?1:0,v=!!a&&a.positiveValuesOnly,m=h||this.cropped||!s,y=0,x=0;for(s&&(y=(o=s.getExtremes()).min,x=o.max),n=0;n<d;n++)if(r=u[n],m||(u[n+g]||r)>=y&&(u[n-g]||r)<=x)for(var b=0;b<p.length;b++){var M=p[b][n];ss(M)&&(M>0||!v)&&f.push(M)}var k={activeYData:f,dataMin:n0(f),dataMax:nQ(f)};return se(this,"afterGetExtremes",{dataExtremes:k}),k},t.prototype.applyExtremes=function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},t.prototype.getFirstValidPoint=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=1);for(var o=t.length,r=e;r>=0&&r<o;){if(n5(t[r]))return t[r];r+=i}},t.prototype.translate=function(){this.generatePoints();var t,e,i,o,r,n=this.options,s=n.stacking,a=this.xAxis,h=this.enabledDataSorting,l=this.yAxis,d=this.points,c=d.length,p=this.pointPlacementToXValue(),u=!!p,f=n.threshold,g=n.startFromThreshold?f:0,v=Number.MAX_VALUE;function m(t){return n1(t,-1e9,1e9)}for(e=0;e<c;e++){var y=d[e],x=y.x,b=void 0,M=void 0,k=y.y,w=y.low,S=s&&(null===(t=l.stacking)||void 0===t?void 0:t.stacks[(this.negStacks&&k<(g?0:f)?"-":"")+this.stackKey]);i=a.translate(x,!1,!1,!1,!0,p),y.plotX=ss(i)?n2(m(i)):void 0,s&&this.visible&&S&&S[x]&&(r=this.getStackIndicator(r,x,this.index),!y.isNull&&r.key&&(M=(b=S[x]).points[r.key]),b&&sn(M)&&(w=M[0],k=M[1],w===g&&r.key===S[x].base&&(w=sd(ss(f)?f:l.min)),l.positiveValuesOnly&&n5(w)&&w<=0&&(w=void 0),y.total=y.stackTotal=sd(b.total),y.percentage=n5(y.y)&&b.total?y.y/b.total*100:void 0,y.stackY=k,this.irregularWidths||b.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),y.yBottom=n5(w)?m(l.translate(w,!1,!0,!1,!0)):void 0,this.dataModify&&(k=this.dataModify.modifyValue(k,e));var A=void 0;ss(k)&&void 0!==y.plotX&&(A=ss(A=l.translate(k,!1,!0,!1,!0))?m(A):void 0),y.plotY=A,y.isInside=this.isPointInside(y),y.clientX=u?n2(a.translate(x,!1,!1,!1,!0,p)):i,y.negative=(y.y||0)<(f||0),y.isNull||!1===y.visible||(void 0!==o&&(v=Math.min(v,Math.abs(i-o))),o=i),y.zone=this.zones.length?y.getZone():void 0,!y.graphic&&this.group&&h&&(y.isNew=!0)}this.closestPointRangePx=v,se(this,"afterTranslate")},t.prototype.getValidPoints=function(t,e,i){var o=this.chart;return(t||this.points||[]).filter(function(t){var r=t.plotX,n=t.plotY;return!!((i||!t.isNull&&ss(n))&&(!e||o.isInsidePlot(r,n,{inverted:o.inverted})))&&!1!==t.visible})},t.prototype.getClipBox=function(){var t,e=this.chart,i=this.xAxis,o=this.yAxis,r=sh(e.clipBox),n=r.x,s=r.y,a=r.width,h=r.height;return i&&i.len!==e.plotSizeX&&(a=i.len),o&&o.len!==e.plotSizeY&&(h=o.len),e.inverted&&!this.invertible&&(a=(t=[h,a])[0],h=t[1]),{x:n,y:s,width:a,height:h}},t.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey},t.prototype.setClip=function(){var t=this.chart,e=this.group,i=this.markerGroup,o=t.sharedClips,r=t.renderer,n=this.getClipBox(),s=this.getSharedClipKey(),a=o[s];a?a.animate(n):o[s]=a=r.clipRect(n),e&&e.clip(!1===this.options.clip?void 0:a),i&&i.clip()},t.prototype.animate=function(t){var e=this.chart,i=this.group,o=this.markerGroup,r=e.inverted,n=ec(this.options.animation),s=[this.getSharedClipKey(),n.duration,n.easing,n.defer].join(","),a=e.sharedClips[s],h=e.sharedClips[s+"m"];if(t&&i){var l=this.getClipBox();if(a)a.attr("height",l.height);else{l.width=0,r&&(l.x=e.plotHeight),a=e.renderer.clipRect(l),e.sharedClips[s]=a;var d={x:-99,y:-99,width:r?e.plotWidth+199:99,height:r?99:e.plotHeight+199};h=e.renderer.clipRect(d),e.sharedClips[s+"m"]=h}i.clip(a),null==o||o.clip(h)}else if(a&&!a.hasClass("highcharts-animating")){var c=this.getClipBox(),p=n.step;((null==o?void 0:o.element.childNodes.length)||e.series.length>1)&&(n.step=function(t,e){p&&p.apply(e,arguments),"width"===e.prop&&(null==h?void 0:h.element)&&h.attr(r?"height":"width",t+99)}),a.addClass("highcharts-animating").animate(c,n)}},t.prototype.afterAnimate=function(){var t=this;this.setClip(),sl(this.chart.sharedClips,function(e,i,o){e&&!t.chart.container.querySelector('[clip-path="url(#'.concat(e.id,')"]'))&&(e.destroy(),delete o[i])}),this.finishedAnimating=!0,se(this,"afterAnimate")},t.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var e,i,o,r,n,s,a,h=this.chart,l=h.styledMode,d=this.colorAxis,c=this.options.marker,p=this[this.specialGroup||"markerGroup"],u=this.xAxis,f=sd(c.enabled,!u||!!u.isRadial||null,this.closestPointRangePx>=c.enabledThreshold*c.radius);if(!1!==c.enabled||this._hasPointMarkers)for(e=0;e<t.length;e++)if(r=(o=(i=t[e]).graphic)?"animate":"attr",n=i.marker||{},s=!!i.marker,(f&&void 0===n.enabled||n.enabled)&&!i.isNull&&!1!==i.visible){var g=sd(n.symbol,this.symbol,"rect");a=this.markerAttribs(i,i.selected&&"select"),this.enabledDataSorting&&(i.startXPos=u.reversed?-(a.width||0):u.width);var v=!1!==i.isInside;if(!o&&v&&((a.width||0)>0||i.hasImage)&&(i.graphic=o=h.renderer.symbol(g,a.x,a.y,a.width,a.height,s?n:c).add(p),this.enabledDataSorting&&h.hasRendered&&(o.attr({x:i.startXPos}),r="animate")),o&&"animate"===r&&o[v?"show":"hide"](v).animate(a),o){var m=this.pointAttribs(i,l||!i.selected?void 0:"select");l?d&&o.css({fill:m.fill}):o[r](m)}o&&o.addClass(i.getClassName(),!0)}else o&&(i.graphic=o.destroy())},t.prototype.markerAttribs=function(t,e){var i,o,r=this.options,n=r.marker,s=t.marker||{},a=s.symbol||n.symbol,h={},l=sd(s.radius,n&&n.radius);e&&(i=n.states[e],l=sd((o=s.states&&s.states[e])&&o.radius,i&&i.radius,l&&l+(i&&i.radiusPlus||0))),t.hasImage=a&&0===a.indexOf("url"),t.hasImage&&(l=0);var d=t.pos();return ss(l)&&d&&(r.crisp&&(d[0]=n3(d[0],t.hasImage?0:"rect"===a?(null==n?void 0:n.lineWidth)||0:1)),h.x=d[0]-l,h.y=d[1]-l),l&&(h.width=h.height=2*l),h},t.prototype.pointAttribs=function(t,e){var i,o,r,n,s=this.options.marker,a=t&&t.options,h=a&&a.marker||{},l=a&&a.color,d=t&&t.color,c=t&&t.zone&&t.zone.color,p=this.color,u=sd(h.lineWidth,s.lineWidth),f=1;return p=l||c||d||p,r=h.fillColor||s.fillColor||p,n=h.lineColor||s.lineColor||p,e=e||"normal",i=s.states[e]||{},u=sd((o=h.states&&h.states[e]||{}).lineWidth,i.lineWidth,u+sd(o.lineWidthPlus,i.lineWidthPlus,0)),r=o.fillColor||i.fillColor||r,{stroke:n=o.lineColor||i.lineColor||n,"stroke-width":u,fill:r,opacity:f=sd(o.opacity,i.opacity,f)}},t.prototype.destroy=function(t){var e,i,o,r=this,n=r.chart,s=/AppleWebKit\/533/.test(n$.navigator.userAgent),a=r.data||[];for(se(r,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(r.axisTypes||[]).forEach(function(t){(o=r[t])&&o.series&&(n4(o.series,r),o.isDirty=o.forceRedraw=!0)}),r.legendItem&&r.chart.legend.destroyItem(r),e=a.length;e--;)(i=a[e])&&i.destroy&&i.destroy();for(var h=0,l=r.zones;h<l.length;h++)n6(l[h],void 0,!0);tI.clearTimeout(r.animationTimeout),sl(r,function(t,e){t instanceof im&&!t.survive&&t[s&&"group"===e?"hide":"destroy"]()}),n.hoverSeries===r&&(n.hoverSeries=void 0),n4(n.series,r),n.orderItems("series"),sl(r,function(e,i){t&&"hcEvents"===i||delete r[i]})},t.prototype.applyZones=function(){var t=this.area,e=this.chart,i=this.graph,o=this.zones,r=this.points,n=this.xAxis,s=this.yAxis,a=this.zoneAxis,h=e.inverted,l=e.renderer,d=this[""+a+"Axis"],c=d||{},p=c.isXAxis,u=c.len,f=void 0===u?0:u,g=c.minPointOffset,v=void 0===g?0:g,m=((null==i?void 0:i.strokeWidth())||0)/2+1,y=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=0),h&&(i=f-i);var o=t.translated,r=void 0===o?0:o,n=t.lineClip,s=i-r;null==n||n.push(["L",e,Math.abs(s)<m?i-m*(s<=0?-1:1):r])};if(o.length&&(i||t)&&d&&ss(d.min)){var x=d.getExtremes().max+v,b=function(t){t.forEach(function(e,i){("M"===e[0]||"L"===e[0])&&(t[i]=[e[0],p?f-e[1]:e[1],p?e[2]:f-e[2]])})};if(o.forEach(function(t){t.lineClip=[],t.translated=n1(d.toPixels(sd(t.value,x),!0)||0,0,f)}),i&&!this.showLine&&i.hide(),t&&t.hide(),"y"===a&&r.length<n.len)for(var M=0;M<r.length;M++){var k=r[M],w=k.plotX,S=k.plotY,A=k.zone,T=A&&o[o.indexOf(A)-1];A&&y(A,w,S),T&&y(T,w,S)}var P=[],O=d.toPixels(d.getExtremes().min-v,!0);o.forEach(function(e){var o,r,a=e.lineClip||[],d=Math.round(e.translated||0);n.reversed&&a.reverse();var c=e.clip,u=e.simpleClip,f=0,g=0,v=n.len,m=s.len;p?(f=d,v=O):(g=d,m=O);var y=[["M",f,g],["L",v,g],["L",v,m],["L",f,m],["Z"]],x=nq(nq(nq(nq([y[0]],a,!0),[y[1],y[2]],!1),P,!0),[y[3],y[4]],!1);P=a.reverse(),O=d,h&&(b(x),t&&b(y)),c?(c.animate({d:x}),null==u||u.animate({d:y})):(c=e.clip=l.path(x),t&&(u=e.simpleClip=l.path(y))),i&&(null===(o=e.graph)||void 0===o||o.clip(c)),t&&(null===(r=e.area)||void 0===r||r.clip(u))})}else this.visible&&(i&&i.show(),t&&t.show())},t.prototype.plotGroup=function(t,e,i,o,r){var n=this[t],s=!n,a={visibility:i,zIndex:o||.1};return n5(this.opacity)&&!this.chart.styledMode&&"inactive"!==this.state&&(a.opacity=this.opacity),n||(this[t]=n=this.chart.renderer.g().add(r)),n.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(n5(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(n.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),n.attr(a)[s?"attr":"animate"](this.getPlotBox(e)),n},t.prototype.getPlotBox=function(t){var e=this.xAxis,i=this.yAxis,o=this.chart,r=o.inverted&&!o.polar&&e&&this.invertible&&"series"===t;return o.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:o.plotLeft,translateY:i?i.top:o.plotTop,rotation:r?90:0,rotationOriginX:r?(e.len-i.len)/2:0,rotationOriginY:r?(e.len+i.len)/2:0,scaleX:r?-1:1,scaleY:1}},t.prototype.removeEvents=function(t){var e=this.eventsToUnbind;t||sc(this),e.length&&(e.forEach(function(t){t()}),e.length=0)},t.prototype.render=function(){var t,e,i,o,r,n=this,s=n.chart,a=n.options,h=n.hasRendered,l=ec(a.animation),d=n.visible?"inherit":"hidden",c=a.zIndex,p=s.seriesGroup,u=n.finishedAnimating?0:l.duration;se(this,"render"),n.plotGroup("group","series",d,c,p),n.markerGroup=n.plotGroup("markerGroup","markers",d,c,p),!1!==a.clip&&n.setClip(),u&&(null===(t=n.animate)||void 0===t||t.call(n,!0)),n.drawGraph&&(n.drawGraph(),n.applyZones()),n.visible&&n.drawPoints(),null===(e=n.drawDataLabels)||void 0===e||e.call(n),null===(i=n.redrawPoints)||void 0===i||i.call(n),a.enableMouseTracking&&(null===(o=n.drawTracker)||void 0===o||o.call(n)),u&&(null===(r=n.animate)||void 0===r||r.call(n)),h||(u&&l.defer&&(u+=l.defer),n.animationTimeout=sp(function(){n.afterAnimate()},u||0)),n.isDirty=!1,n.hasRendered=!0,se(n,"afterRender")},t.prototype.redraw=function(){var t=this.isDirty||this.isDirtyData;this.translate(),this.render(),t&&delete this.kdTree},t.prototype.reserveSpace=function(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries},t.prototype.searchPoint=function(t,e){var i=this.xAxis,o=this.yAxis,r=this.chart.inverted;return this.searchKDTree({clientX:r?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:r?o.len-t.chartX+o.pos:t.chartY-o.pos},e,t)},t.prototype.buildKDTree=function(t){this.buildingKdTree=!0;var e=this,i=e.options.findNearestPointBy.indexOf("y")>-1?2:1;delete e.kdTree,sp(function(){e.kdTree=function t(i,o,r){var n,s,a=null==i?void 0:i.length;if(a)return n=e.kdAxisArray[o%r],i.sort(function(t,e){return(t[n]||0)-(e[n]||0)}),{point:i[s=Math.floor(a/2)],left:t(i.slice(0,s),o+1,r),right:t(i.slice(s+1),o+1,r)}}(e.getValidPoints(void 0,!e.directTouch),i,i),e.buildingKdTree=!1},e.options.kdNow||(null==t?void 0:t.type)==="touchstart"?0:1)},t.prototype.searchKDTree=function(t,e,i,o,r){var n=this,s=this.kdAxisArray,a=s[0],h=s[1],l=e?"distX":"dist",d=(n.options.findNearestPointBy||"").indexOf("y")>-1?2:1,c=!!n.isBubble,p=o||function(t,e,i){return[(t[i]||0)<(e[i]||0)?t:e,!1]},u=r||function(t,e){return t<e};if(this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function t(e,i,o,r){var s,d,f,g,v,m,y,x,b,M,k=i.point,w=n.kdAxisArray[o%r],S=k,A=!1;d=e[a],f=k[a],g=n5(d)&&n5(f)?d-f:null,v=e[h],m=k[h],y=n5(v)&&n5(m)?v-m:0,x=c&&(null===(s=k.marker)||void 0===s?void 0:s.radius)||0,k.dist=Math.sqrt((g&&g*g||0)+y*y)-x,k.distX=n5(g)?Math.abs(g)-x:Number.MAX_VALUE;var T=(e[w]||0)-(k[w]||0)+(c&&(null===(M=k.marker)||void 0===M?void 0:M.radius)||0),P=T<0?"left":"right",O=T<0?"right":"left";return i[P]&&(S=(b=p(k,t(e,i[P],o+1,r),l))[0],A=b[1]),i[O]&&u(Math.sqrt(T*T),S[l],A)&&(S=p(S,t(e,i[O],o+1,r),l)[0]),S}(t,this.kdTree,d,d)},t.prototype.pointPlacementToXValue=function(){var t=this.options,e=this.xAxis,i=t.pointPlacement;return"between"===i&&(i=e.reversed?-.5:.5),ss(i)?i*(t.pointRange||e.pointRange):0},t.prototype.isPointInside=function(t){var e=this.chart,i=this.xAxis,o=this.yAxis,r=t.plotX,n=void 0===r?-1:r,s=t.plotY,a=void 0===s?-1:s;return a>=0&&a<=(o?o.len:e.plotHeight)&&n>=0&&n<=(i?i.len:e.plotWidth)},t.prototype.drawTracker=function(){var t,e=this,i=e.options,o=i.trackByArea,r=[].concat((o?e.areaPath:e.graphPath)||[]),n=e.chart,s=n.pointer,a=n.renderer,h=(null===(t=n.options.tooltip)||void 0===t?void 0:t.snap)||0,l=function(){i.enableMouseTracking&&n.hoverSeries!==e&&e.onMouseOver()},d="rgba(192,192,192,"+(nK?1e-4:.002)+")",c=e.tracker;c?c.attr({d:r}):e.graph&&(e.tracker=c=a.path(r).attr({visibility:e.visible?"inherit":"hidden",zIndex:2}).addClass(o?"highcharts-tracker-area":"highcharts-tracker-line").add(e.group),n.styledMode||c.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:d,fill:o?d:"none","stroke-width":e.graph.strokeWidth()+(o?0:2*h)}),[e.tracker,e.markerGroup,e.dataLabelsGroup].forEach(function(t){t&&(t.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",function(t){null==s||s.onTrackerMouseOut(t)}),i.cursor&&!n.styledMode&&t.css({cursor:i.cursor}),t.on("touchstart",l))})),se(this,"afterDrawTracker")},t.prototype.addPoint=function(t,e,i,o,r){var n,s,a=this.options,h=this.chart,l=this.data,d=this.dataTable,c=this.xAxis,p=c&&c.hasNames&&c.names,u=a.data,f=this.getColumn("x");e=sd(e,!0);var g={series:this};this.pointClass.prototype.applyOptions.apply(g,[t]);var v=g.x;if(s=f.length,this.requireSorting&&v<f[s-1])for(n=!0;s&&f[s-1]>v;)s--;d.setRow(g,s,!0,{addColumns:!1}),p&&g.name&&(p[v]=g.name),null==u||u.splice(s,0,t),(n||this.processedData)&&(this.data.splice(s,0,null),this.processData()),"point"===a.legendType&&this.generatePoints(),i&&(l[0]&&l[0].remove?l[0].remove(!1):(nq([l,u],Object.values(d.getColumns()),!0).filter(n5).forEach(function(t){t.shift()}),d.rowCount-=1,se(d,"afterDeleteRows"))),!1!==r&&se(this,"addPoint",{point:g}),this.isDirty=!0,this.isDirtyData=!0,e&&h.redraw(o)},t.prototype.removePoint=function(t,e,i){var o=this,r=o.chart,n=o.data,s=o.points,a=o.dataTable,h=n[t],l=function(){nq([(null==s?void 0:s.length)===n.length?s:void 0,n,o.options.data],Object.values(a.getColumns()),!0).filter(n5).forEach(function(e){e.splice(t,1)}),a.rowCount-=1,se(a,"afterDeleteRows"),null==h||h.destroy(),o.isDirty=!0,o.isDirtyData=!0,e&&r.redraw()};eg(i,r),e=sd(e,!0),h?h.firePointEvent("remove",null,l):l()},t.prototype.remove=function(t,e,i,o){var r=this,n=r.chart;function s(){r.destroy(o),n.isDirtyLegend=n.isDirtyBox=!0,n.linkSeries(o),sd(t,!0)&&n.redraw(e)}!1!==i?se(r,"remove",null,s):s()},t.prototype.update=function(t,e){se(this,"update",{options:t=n9(t,this.userOptions)});var i,o,r,n,s,a,h=this,l=h.chart,d=h.userOptions,c=h.initialType||h.type,p=l.options.plotOptions,u=nJ[c].prototype,f=h.finishedAnimating&&{animation:!1},g={},v=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],m=t.type||d.type||l.options.chart.type,y=!(this.hasDerivedData||m&&m!==this.type||void 0!==t.keys||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||t.joinBy||t.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(function(t){return h.hasOptionChanged(t)}));m=m||c,y?(v.push("data","isDirtyData","isDirtyCanvas","points","dataTable","processedData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"),!1!==t.visible&&v.push("area","graph"),h.parallelArrays.forEach(function(t){v.push(t+"Data")}),t.data&&(t.dataSorting&&n7(h.options.dataSorting,t.dataSorting),this.setData(t.data,!1))):this.dataTable.modified=this.dataTable,t=sh(d,{index:void 0===d.index?h.index:d.index,pointStart:null!==(r=null!==(o=null===(i=null==p?void 0:p.series)||void 0===i?void 0:i.pointStart)&&void 0!==o?o:d.pointStart)&&void 0!==r?r:h.getColumn("x")[0]},!y&&{data:h.options.data},t,f),y&&t.data&&(t.data=h.options.data),(v=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(v)).forEach(function(t){v[t]=h[t],delete h[t]});var x=!1;if(nJ[m]){if(x=m!==h.type,h.remove(!1,!1,!1,!0),x){if(l.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(h,nJ[m].prototype);else{var b=Object.hasOwnProperty.call(h,"hcEvents")&&h.hcEvents;for(a in u)h[a]=void 0;n7(h,nJ[m].prototype),b?h.hcEvents=b:delete h.hcEvents}}}else n8(17,!0,l,{missingModuleFor:m});if(v.forEach(function(t){h[t]=v[t]}),h.init(l,t),y&&this.points){!1===(s=h.options).visible?(g.graphic=1,g.dataLabel=1):(this.hasMarkerChanged(s,d)&&(g.graphic=1),(null===(n=h.hasDataLabels)||void 0===n?void 0:n.call(h))||(g.dataLabel=1));for(var M=0,k=this.points;M<k.length;M++){var w=k[M];w&&w.series&&(w.resolveColor(),Object.keys(g).length&&w.destroyElements(g),!1===s.showInLegend&&w.legendItem&&l.legend.destroyItem(w))}}h.initialType=c,l.linkSeries(),l.setSortedData(),x&&h.linkedSeries.length&&(h.isDirtyData=!0),se(this,"afterUpdate"),sd(e,!0)&&l.redraw(!!y&&void 0)},t.prototype.setName=function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0},t.prototype.hasOptionChanged=function(t){var e,i,o=this.chart,r=this.options[t],n=o.options.plotOptions,s=this.userOptions[t],a=sd(null===(e=null==n?void 0:n[this.type])||void 0===e?void 0:e[t],null===(i=null==n?void 0:n.series)||void 0===i?void 0:i[t]);return s&&!n5(a)?r!==s:r!==sd(a,r)},t.prototype.onMouseOver=function(){var t=this.chart,e=t.hoverSeries,i=t.pointer;null==i||i.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&se(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},t.prototype.onMouseOut=function(){var t=this.options,e=this.chart,i=e.tooltip,o=e.hoverPoint;e.hoverSeries=null,o&&o.onMouseOut(),this&&t.events.mouseOut&&se(this,"mouseOut"),i&&!this.stickyTracking&&(!i.shared||this.noSharedTooltip)&&i.hide(),e.series.forEach(function(t){t.setState("",!0)})},t.prototype.setState=function(t,e){var i=this,o=i.options,r=i.graph,n=o.inactiveOtherPoints,s=o.states,a=sd(s[t||"normal"]&&s[t||"normal"].animation,i.chart.options.chart.animation),h=o.lineWidth,l=o.opacity;if(t=t||"",i.state!==t&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach(function(e){e&&(i.state&&e.removeClass("highcharts-series-"+i.state),t&&e.addClass("highcharts-series-"+t))}),i.state=t,!i.chart.styledMode)){if(s[t]&&!1===s[t].enabled)return;if(t&&(h=s[t].lineWidth||h+(s[t].lineWidthPlus||0),l=sd(s[t].opacity,l)),r&&!r.dashstyle&&ss(h))for(var d=0,c=nq([r],this.zones.map(function(t){return t.graph}),!0);d<c.length;d++){var p=c[d];null==p||p.animate({"stroke-width":h},a)}n||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach(function(t){t&&t.animate({opacity:l},a)})}e&&n&&i.points&&i.setAllPointsToState(t||void 0)},t.prototype.setAllPointsToState=function(t){this.points.forEach(function(e){e.setState&&e.setState(t)})},t.prototype.setVisible=function(t,e){var i,o=this,r=o.chart,n=r.options.chart.ignoreHiddenSeries,s=o.visible;o.visible=t=o.options.visible=o.userOptions.visible=void 0===t?!s:t;var a=t?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(t){var e;null===(e=o[t])||void 0===e||e[a]()}),(r.hoverSeries===o||(null===(i=r.hoverPoint)||void 0===i?void 0:i.series)===o)&&o.onMouseOut(),o.legendItem&&r.legend.colorizeItem(o,t),o.isDirty=!0,o.options.stacking&&r.series.forEach(function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),o.linkedSeries.forEach(function(e){e.setVisible(t,!1)}),n&&(r.isDirtyBox=!0),se(o,a),!1!==e&&r.redraw()},t.prototype.show=function(){this.setVisible(!0)},t.prototype.hide=function(){this.setVisible(!1)},t.prototype.select=function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),se(this,t?"select":"unselect")},t.prototype.shouldShowTooltip=function(t,e,i){return void 0===i&&(i={}),i.series=this,i.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,i)},t.prototype.drawLegendSymbol=function(t,e){var i;null===(i=nX[this.options.legendSymbol||"rectangle"])||void 0===i||i.call(this,t,e)},t.defaultOptions=nH,t.types=nU.seriesTypes,t.registerType=nU.registerSeriesType,t}();n7(su.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:nd,requireSorting:!0,sorted:!0}),nU.series=su;var sf=oL.registerEventOptions,sg=ta.composed,sv=ta.marginNames,sm=eZ.distribute,sy=eY.format,sx=tI.addEvent,sb=tI.createElement,sM=tI.css,sk=tI.defined,sw=tI.discardElement,sS=tI.find,sA=tI.fireEvent,sT=tI.isNumber,sP=tI.merge,sO=tI.pick,sC=tI.pushUnique,sE=tI.relativeLength,sL=tI.stableSort,sB=tI.syncTimeout,sI=function(){function t(t,e){var i=this;this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=t,this.setOptions(e),e.enabled&&(this.render(),sf(this,e),sx(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),sx(this.chart,"render",function(){i.options.enabled&&i.proximate&&(i.proximatePositions(),i.positionItems())})}return t.prototype.setOptions=function(t){var e=sO(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=sP(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop,this.itemMarginBottom=t.itemMarginBottom,this.padding=e,this.initialItemY=e-5,this.symbolWidth=sO(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},t.prototype.update=function(t,e){var i=this.chart;this.setOptions(sP(!0,this.options,t)),"events"in this.options&&sf(this,this.options),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,sO(e,!0)&&i.redraw(),sA(this,"afterUpdate",{redraw:e})},t.prototype.colorizeItem=function(t,e){var i,o=t.color,r=t.legendItem||{},n=r.area,s=r.group,a=r.label,h=r.line,l=r.symbol;if((t instanceof su||t instanceof nd)&&(t.color=(null===(i=t.options)||void 0===i?void 0:i.legendSymbolColor)||o),null==s||s[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var d=this.itemHiddenStyle,c=void 0===d?{}:d,p=c.color,u=t.options,f=u.fillColor,g=u.fillOpacity,v=u.lineColor,m=u.marker,y=function(t){return!e&&(t.fill&&(t.fill=p),t.stroke&&(t.stroke=p)),t};null==a||a.css(sP(e?this.itemStyle:c)),null==h||h.attr(y({stroke:v||t.color})),l&&l.attr(y(m&&l.isMarker?t.pointAttribs():{fill:t.color})),null==n||n.attr(y({fill:f||t.color,"fill-opacity":f?1:null!=g?g:.75}))}t.color=o,sA(this,"afterColorizeItem",{item:t,visible:e})},t.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},t.prototype.positionItem=function(t){var e=this,i=t.legendItem||{},o=i.group,r=i.x,n=void 0===r?0:r,s=i.y,a=void 0===s?0:s,h=this.options,l=h.symbolPadding,d=!h.rtl,c=t.checkbox;if(o&&o.element){var p={translateX:d?n:this.legendWidth-n-2*l-4,translateY:a};o[sk(o.translateY)?"animate":"attr"](p,void 0,function(){sA(e,"afterPositionItem",{item:t})})}c&&(c.x=n,c.y=a)},t.prototype.destroyItem=function(t){for(var e=t.checkbox,i=t.legendItem||{},o=0,r=["group","label","line","symbol"];o<r.length;o++){var n=r[o];i[n]&&(i[n]=i[n].destroy())}e&&sw(e),t.legendItem=void 0},t.prototype.destroy=function(){for(var t=0,e=this.getAllItems();t<e.length;t++){var i=e[t];this.destroyItem(i)}for(var o=0,r=["clipRect","up","down","pager","nav","box","title","group"];o<r.length;o++){var n=r[o];this[n]&&(this[n]=this[n].destroy())}this.display=null},t.prototype.positionCheckboxes=function(){var t,e=this.group&&this.group.alignAttr,i=this.clipHeight||this.legendHeight,o=this.titleHeight;e&&(t=e.translateY,this.allItems.forEach(function(r){var n,s=r.checkbox;s&&(n=t+o+s.y+(this.scrollOffset||0)+3,sM(s,{left:e.translateX+r.checkboxOffset+s.x-20+"px",top:n+"px",display:this.proximate||n>t-6&&n<t+i-6?"":"none"}))},this))},t.prototype.renderTitle=function(){var t,e=this.options,i=this.padding,o=e.title,r=0;o.text&&(this.title||(this.title=this.chart.renderer.label(o.text,i-3,i-4,void 0,void 0,void 0,e.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(o.style),this.title.add(this.group)),o.width||this.title.css({width:this.maxLegendWidth+"px"}),r=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:r})),this.titleHeight=r},t.prototype.setText=function(t){var e=this.options;t.legendItem.label.attr({text:e.labelFormat?sy(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})},t.prototype.renderItem=function(t){var e=t.legendItem=t.legendItem||{},i=this.chart,o=i.renderer,r=this.options,n="horizontal"===r.layout,s=this.symbolWidth,a=r.symbolPadding||0,h=this.itemStyle,l=this.itemHiddenStyle,d=n?sO(r.itemDistance,20):0,c=!r.rtl,p=!t.series,u=!p&&t.series.drawLegendSymbol?t.series:t,f=u.options,g=!!this.createCheckboxForItem&&f&&f.showCheckbox,v=r.useHTML,m=t.options.className,y=e.label,x=s+a+d+(g?20:0);!y&&(e.group=o.g("legend-item").addClass("highcharts-"+u.type+"-series highcharts-color-"+t.colorIndex+(m?" "+m:"")+(p?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),e.label=y=o.text("",c?s+a:-a,this.baseline||0,v),i.styledMode||y.css(sP(t.visible?h:l)),y.attr({align:c?"left":"right",zIndex:2}).add(e.group),!this.baseline&&(this.fontMetrics=o.fontMetrics(y),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,y.attr("y",this.baseline),this.symbolHeight=sO(r.symbolHeight,this.fontMetrics.f),r.squareSymbol&&(this.symbolWidth=sO(r.symbolWidth,Math.max(this.symbolHeight,16)),x=this.symbolWidth+a+d+(g?20:0),c&&y.attr("x",this.symbolWidth+a))),u.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,y,v)),g&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),(i.styledMode||!h.width)&&y.css({width:(r.itemWidth||this.widthOption||i.spacingBox.width)-x+"px"}),this.setText(t);var b=y.getBBox(),M=this.fontMetrics&&this.fontMetrics.h||0;t.itemWidth=t.checkboxOffset=r.itemWidth||e.labelWidth||b.width+x,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(e.labelHeight||(b.height>1.5*M?b.height:M))},t.prototype.layoutItem=function(t){var e=this.options,i=this.padding,o="horizontal"===e.layout,r=t.itemHeight,n=this.itemMarginBottom,s=this.itemMarginTop,a=o?sO(e.itemDistance,20):0,h=this.maxLegendWidth,l=e.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:t.itemWidth,d=t.legendItem||{};o&&this.itemX-i+l>h&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=s+this.lastLineHeight+n),this.lastLineHeight=0),this.lastItemY=s+this.itemY+n,this.lastLineHeight=Math.max(r,this.lastLineHeight),d.x=this.itemX,d.y=this.itemY,o?this.itemX+=l:(this.itemY+=s+r+n,this.lastLineHeight=r),this.offsetWidth=this.widthOption||Math.max((o?this.itemX-i-(t.checkbox?0:a):l)+i,this.offsetWidth)},t.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(e){var i=e&&e.options;e&&sO(i.showInLegend,!sk(i.linkedTo)&&void 0,!0)&&(t=t.concat((e.legendItem||{}).labels||("point"===i.legendType?e.data:e)))}),sA(this,"afterGetAllItems",{allItems:t}),t},t.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},t.prototype.adjustMargins=function(t,e){var i=this.chart,o=this.options,r=this.getAlignment();r&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(n,s){n.test(r)&&!sk(t[s])&&(i[sv[s]]=Math.max(i[sv[s]],i.legend[(s+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][s]*o[s%2?"x":"y"]+sO(o.margin,12)+e[s]+(i.titleOffset[s]||0)))})},t.prototype.proximatePositions=function(){var t,e=this.chart,i=[],o="left"===this.options.align;this.allItems.forEach(function(t){var r,n,s,a,h=o;t.yAxis&&(t.xAxis.options.reversed&&(h=!h),t.points&&(r=sS(h?t.points:t.points.slice(0).reverse(),function(t){return sT(t.plotY)})),n=this.itemMarginTop+t.legendItem.label.getBBox().height+this.itemMarginBottom,a=t.yAxis.top-e.plotTop,s=t.visible?(r?r.plotY:t.yAxis.height)+(a-.3*n):a+t.yAxis.height,i.push({target:s,size:n,item:t}))},this);for(var r=0,n=sm(i,e.plotHeight);r<n.length;r++){var s=n[r];t=s.item.legendItem||{},sT(s.pos)&&(t.y=e.plotTop-e.spacing[0]+s.pos)}},t.prototype.render=function(){var t,e,i,o,r=this.chart,n=r.renderer,s=this.options,a=this.padding,h=this.getAllItems(),l=this.group,d=this.box;this.itemX=a,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=sE(s.width,r.spacingBox.width-a),o=r.spacingBox.width-2*a-s.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(o/=2),this.maxLegendWidth=this.widthOption||o,l||(this.group=l=n.g("legend").addClass(s.className||"").attr({zIndex:7}).add(),this.contentGroup=n.g().attr({zIndex:1}).add(l),this.scrollGroup=n.g().add(this.contentGroup)),this.renderTitle(),sL(h,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),s.reversed&&h.reverse(),this.allItems=h,this.display=t=!!h.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,h.forEach(this.renderItem,this),h.forEach(this.layoutItem,this),e=(this.widthOption||this.offsetWidth)+a,i=this.lastItemY+this.lastLineHeight+this.titleHeight,i=this.handleOverflow(i)+a,d||(this.box=d=n.rect().addClass("highcharts-legend-box").attr({r:s.borderRadius}).add(l)),r.styledMode||d.attr({stroke:s.borderColor,"stroke-width":s.borderWidth||0,fill:s.backgroundColor||"none"}).shadow(s.shadow),e>0&&i>0&&d[d.placed?"animate":"attr"](d.crisp.call({},{x:0,y:0,width:e,height:i},d.strokeWidth())),l[t?"show":"hide"](),r.styledMode&&"none"===l.getStyle("display")&&(e=i=0),this.legendWidth=e,this.legendHeight=i,t&&this.align(),this.proximate||this.positionItems(),sA(this,"afterRender")},t.prototype.align=function(t){void 0===t&&(t=this.chart.spacingBox);var e=this.chart,i=this.options,o=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&e.titleOffset[0]>0?o+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&e.titleOffset[2]>0&&(o-=e.titleOffset[2]),o!==t.y&&(t=sP(t,{y:o})),e.hasRendered||(this.group.placed=!1),this.group.align(sP(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)},t.prototype.handleOverflow=function(t){var e,i,o,r=this,n=this.chart,s=n.renderer,a=this.options,h=a.y,l="top"===a.verticalAlign,d=this.padding,c=a.maxHeight,p=a.navigation,u=sO(p.animation,!0),f=p.arrowSize||12,g=this.pages,v=this.allItems,m=function(t){"number"==typeof t?M.attr({height:t}):M&&(r.clipRect=M.destroy(),r.contentGroup.clip()),r.contentGroup.div&&(r.contentGroup.div.style.clip=t?"rect("+d+"px,9999px,"+(d+t)+"px,0)":"auto")},y=function(t){return r[t]=s.circle(0,0,1.3*f).translate(f/2,f/2).add(b),n.styledMode||r[t].attr("fill","rgba(0,0,0,0.0001)"),r[t]},x=n.spacingBox.height+(l?-h:h)-d,b=this.nav,M=this.clipRect;return"horizontal"!==a.layout||"middle"===a.verticalAlign||a.floating||(x/=2),c&&(x=Math.min(x,c)),g.length=0,t&&x>0&&t>x&&!1!==p.enabled?(this.clipHeight=e=Math.max(x-20-this.titleHeight-d,0),this.currentPage=sO(this.currentPage,1),this.fullHeight=t,v.forEach(function(t,r){var n=(o=t.legendItem||{}).y||0,s=Math.round(o.label.getBBox().height),a=g.length;(!a||n-g[a-1]>e&&(i||n)!==g[a-1])&&(g.push(i||n),a++),o.pageIx=a-1,i&&((v[r-1].legendItem||{}).pageIx=a-1),r===v.length-1&&n+s-g[a-1]>e&&n>g[a-1]&&(g.push(n),o.pageIx=a),n!==i&&(i=n)}),M||(M=r.clipRect=s.clipRect(0,d-2,9999,0),r.contentGroup.clip(M)),m(e),b||(this.nav=b=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,f,f).add(b),y("upTracker").on("click",function(){r.scroll(-1,u)}),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),!n.styledMode&&p.style&&this.pager.css(p.style),this.pager.add(b),this.down=s.symbol("triangle-down",0,0,f,f).add(b),y("downTracker").on("click",function(){r.scroll(1,u)})),r.scroll(0),t=x):b&&(m(),this.nav=b.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var i=this,o=this.chart,r=this.pages,n=r.length,s=this.clipHeight,a=this.options.navigation,h=this.pager,l=this.padding,d=this.currentPage+t;d>n&&(d=n),d>0&&(void 0!==e&&eg(e,o),this.nav.attr({translateX:l,translateY:s+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(t){t.attr({class:1===d?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),h.attr({text:d+"/"+n}),[this.down,this.downTracker].forEach(function(t){t.attr({x:18+this.pager.getBBox().width,class:d===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),o.styledMode||(this.up.attr({fill:1===d?a.inactiveColor:a.activeColor}),this.upTracker.css({cursor:1===d?"default":"pointer"}),this.down.attr({fill:d===n?a.inactiveColor:a.activeColor}),this.downTracker.css({cursor:d===n?"default":"pointer"})),this.scrollOffset=-r[d-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=d,this.positionCheckboxes(),sB(function(){sA(i,"afterScroll",{currentPage:d})},ec(sO(e,o.renderer.globalAnimation,!0)).duration))},t.prototype.setItemEvents=function(t,e,i){for(var o=this,r=t.legendItem||{},n=o.chart.renderer.boxWrapper,s=t instanceof nd,a=t instanceof su,h="highcharts-legend-"+(s?"point":"series")+"-active",l=o.chart.styledMode,d=i?[e,r.symbol]:[r.group],c=function(e){o.allItems.forEach(function(i){t!==i&&[i].concat(i.linkedSeries||[]).forEach(function(t){t.setState(e,!s)})})},p=0;p<d.length;p++){var u=d[p];u&&u.on("mouseover",function(){t.visible&&c("inactive"),t.setState("hover"),t.visible&&n.addClass(h),l||e.css(o.options.itemHoverStyle)}).on("mouseout",function(){o.chart.styledMode||e.css(sP(t.visible?o.itemStyle:o.itemHiddenStyle)),c(""),n.removeClass(h),t.setState()}).on("click",function(e){var i=function(){t.setVisible&&t.setVisible(),c(t.visible?"inactive":"")};n.removeClass(h),sA(o,"itemClick",{browserEvent:e,legendItem:t},i),s?t.firePointEvent("legendItemClick",{browserEvent:e}):a&&sA(t,"legendItemClick",{browserEvent:e})})}},t.prototype.createCheckboxForItem=function(t){t.checkbox=sb("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),sx(t.checkbox,"click",function(e){var i=e.target;sA(t.series||t,"checkboxClick",{checked:i.checked,item:t},function(){t.select()})})},t}();(u=sI||(sI={})).compose=function(t){sC(sg,"Core.Legend")&&sx(t,"beforeMargins",function(){this.legend=new u(this,this.options.legend)})};var sD=sI,sz=function(){return(sz=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},sR=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},sN=eY.numberFormat,sW=oL.registerEventOptions,sG=ta.charts,sX=ta.doc,sH=ta.marginNames,sF=ta.svg,sY=ta.win,sj=nU.seriesTypes,s_=tI.addEvent,sU=tI.attr,sV=tI.createElement,sq=tI.css,sZ=tI.defined,sK=tI.diffObjects,s$=tI.discardElement,sJ=tI.erase,sQ=tI.error,s0=tI.extend,s1=tI.find,s2=tI.fireEvent,s3=tI.getAlignFactor,s5=tI.getStyle,s6=tI.isArray,s9=tI.isNumber,s4=tI.isObject,s8=tI.isString,s7=tI.merge,at=tI.objectEach,ae=tI.pick,ai=tI.pInt,ao=tI.relativeLength,ar=tI.removeEvent,an=tI.splat,as=tI.syncTimeout,aa=tI.uniqueKey,ah=function(){function t(t,e,i){this.sharedClips={};var o=sR([],arguments,!0);(s8(t)||t.nodeName)&&(this.renderTo=o.shift()),this.init(o[0],o[1])}return t.chart=function(e,i,o){return new t(e,i,o)},t.prototype.setZoomOptions=function(){var t=this.options.chart,e=t.zooming;this.zooming=sz(sz({},e),{type:ae(t.zoomType,e.type),key:ae(t.zoomKey,e.key),pinchType:ae(t.pinchType,e.pinchType),singleTouch:ae(t.zoomBySingleTouch,e.singleTouch,!1),resetButton:s7(e.resetButton,t.resetZoomButton)})},t.prototype.init=function(t,e){s2(this,"init",{args:arguments},function(){var i,o,r=s7(t0,t),n=r.chart,s=this.renderTo||n.renderTo;this.userOptions=s0({},t),(this.renderTo=s8(s)?sX.getElementById(s):s)||sQ(13,!0,this),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=e,this.isResizing=0,this.options=r,this.axes=[],this.series=[],this.locale=null!==(i=r.lang.locale)&&void 0!==i?i:null===(o=this.renderTo.closest("[lang]"))||void 0===o?void 0:o.lang,this.time=new tK(s0(r.time||{},{locale:this.locale})),r.time=this.time.options,this.numberFormatter=(n.numberFormatter||sN).bind(this),this.styledMode=n.styledMode,this.hasCartesianSeries=n.showAxes,this.index=sG.length,sG.push(this),ta.chartCount++,sW(this,n),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),s2(this,"afterInit"),this.firstRender()})},t.prototype.initSeries=function(t){var e=this.options.chart,i=t.type||e.type,o=sj[i];o||sQ(17,!0,this,{missingModuleFor:i});var r=new o;return"function"==typeof r.init&&r.init(this,t),r},t.prototype.setSortedData=function(){this.getSeriesOrderByLinks().forEach(function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)})},t.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0})},t.prototype.orderItems=function(t,e){void 0===e&&(e=0);var i=this[t],o=this.options[t]=an(this.options[t]).slice(),r=this.userOptions[t]=this.userOptions[t]?an(this.userOptions[t]).slice():[];if(this.hasRendered&&(o.splice(e),r.splice(e)),i)for(var n=e,s=i.length;n<s;++n){var a=i[n];a&&(a.index=n,a instanceof su&&(a.name=a.getName()),a.options.isInternal||(o[n]=a.options,r[n]=a.userOptions))}},t.prototype.isInsidePlot=function(t,e,i){void 0===i&&(i={});var o,r=this.inverted,n=this.plotBox,s=this.plotLeft,a=this.plotTop,h=this.scrollablePlotBox,l=i.visiblePlotOnly&&(null===(o=this.scrollablePlotArea)||void 0===o?void 0:o.scrollingContainer)||{},d=l.scrollLeft,c=void 0===d?0:d,p=l.scrollTop,u=void 0===p?0:p,f=i.series,g=i.visiblePlotOnly&&h||n,v=i.inverted?e:t,m=i.inverted?t:e,y={x:v,y:m,isInsidePlot:!0,options:i};if(!i.ignoreX){var x=f&&(r&&!this.polar?f.yAxis:f.xAxis)||{pos:s,len:1/0},b=i.paneCoordinates?x.pos+v:s+v;b>=Math.max(c+s,x.pos)&&b<=Math.min(c+s+g.width,x.pos+x.len)||(y.isInsidePlot=!1)}if(!i.ignoreY&&y.isInsidePlot){var M=!r&&i.axis&&!i.axis.isXAxis&&i.axis||f&&(r?f.xAxis:f.yAxis)||{pos:a,len:1/0},k=i.paneCoordinates?M.pos+m:a+m;k>=Math.max(u+a,M.pos)&&k<=Math.min(u+a+g.height,M.pos+M.len)||(y.isInsidePlot=!1)}return s2(this,"afterIsInsidePlot",y),y.isInsidePlot},t.prototype.redraw=function(t){s2(this,"beforeRedraw");var e,i,o,r,n=this.hasCartesianSeries?this.axes:this.colorAxis||[],s=this.series,a=this.pointer,h=this.legend,l=this.userOptions.legend,d=this.renderer,c=d.isHidden(),p=[],u=this.isDirtyBox,f=this.isDirtyLegend;for(d.rootFontSize=d.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),eg(!!this.hasRendered&&t,this),c&&this.temporaryDisplay(),this.layOutTitles(!1),o=s.length;o--;)if(((r=s[o]).options.stacking||r.options.centerInCategory)&&(i=!0,r.isDirty)){e=!0;break}if(e)for(o=s.length;o--;)(r=s[o]).options.stacking&&(r.isDirty=!0);s.forEach(function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),f=!0):l&&(l.labelFormatter||l.labelFormat)&&(f=!0)),t.isDirtyData&&s2(t,"updatedData")}),f&&h&&h.options.enabled&&(h.render(),this.isDirtyLegend=!1),i&&this.getStacks(),n.forEach(function(t){t.updateNames(),t.setScale()}),this.getMargins(),n.forEach(function(t){t.isDirty&&(u=!0)}),n.forEach(function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,p.push(function(){s2(t,"afterSetExtremes",s0(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(u||i)&&t.redraw()}),u&&this.drawChartBox(),s2(this,"predraw"),s.forEach(function(t){(u||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),a&&a.reset(!0),d.draw(),s2(this,"redraw"),s2(this,"render"),c&&this.temporaryDisplay(!0),p.forEach(function(t){t.call()})},t.prototype.get=function(t){var e=this.series;function i(e){return e.id===t||e.options&&e.options.id===t}for(var o=s1(this.axes,i)||s1(this.series,i),r=0;!o&&r<e.length;r++)o=s1(e[r].points||[],i);return o},t.prototype.createAxes=function(){var t=this.userOptions;s2(this,"createAxes");for(var e=0,i=["xAxis","yAxis"];e<i.length;e++)for(var o=i[e],r=t[o]=an(t[o]||{}),n=0;n<r.length;n++)new rl(this,r[n],o);s2(this,"afterCreateAxes")},t.prototype.getSelectedPoints=function(){return this.series.reduce(function(t,e){return e.getPointsCollection().forEach(function(e){ae(e.selectedStaging,e.selected)&&t.push(e)}),t},[])},t.prototype.getSelectedSeries=function(){return this.series.filter(function(t){return t.selected})},t.prototype.setTitle=function(t,e,i){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(i)},t.prototype.applyDescription=function(t,e){var i,o=this,r=this.options[t]=s7(this.options[t],e),n=this[t];n&&e&&(this[t]=n=n.destroy()),r&&!n&&((n=this.renderer.text(r.text,0,0,r.useHTML).attr({align:r.align,class:"highcharts-"+t,zIndex:r.zIndex||4}).css({textOverflow:"ellipsis",whiteSpace:"nowrap"}).add()).update=function(e,i){o.applyDescription(t,e),o.layOutTitles(i)},this.styledMode||n.css(s0("title"===t?{fontSize:this.options.isStock?"1em":"1.2em"}:{},r.style)),n.textPxLength=n.getBBox().width,n.css({whiteSpace:null===(i=r.style)||void 0===i?void 0:i.whiteSpace}),this[t]=n)},t.prototype.layOutTitles=function(t){var e,i,o,r,n=this;void 0===t&&(t=!0);var s=[0,0,0],a=this.options,h=this.renderer,l=this.spacingBox;["title","subtitle","caption"].forEach(function(t){var e,i=n[t],o=n.options[t],r=s7(l),a=(null==i?void 0:i.textPxLength)||0;if(i&&o){s2(n,"layOutTitle",{alignTo:r,key:t,textPxLength:a});var d=h.fontMetrics(i),c=d.b,p=d.h,u=o.verticalAlign||"top",f="top"===u,g=f&&o.minScale||1,v="title"===t?f?-3:0:f?s[0]+2:0,m=Math.min(r.width/a,1),y=Math.max(g,m),x=s7({y:"bottom"===u?c:v+c},{align:"title"===t?m<g?"left":"center":null===(e=n.title)||void 0===e?void 0:e.alignValue},o),b=o.width||(m>g?n.chartWidth:r.width)/y;i.alignValue!==x.align&&(i.placed=!1);var M=Math.round(i.css({width:""+b+"px"}).getBBox(o.useHTML).height);if(x.height=M,i.align(x,!1,r).attr({align:x.align,scaleX:y,scaleY:y,"transform-origin":""+(r.x+a*y*s3(x.align))+" ".concat(p)}),!o.floating){var k=M*(M<1.2*p?1:y);"top"===u?s[0]=Math.ceil(s[0]+k):"bottom"===u&&(s[2]=Math.ceil(s[2]+k))}}},this),s[0]&&"top"===((null===(e=a.title)||void 0===e?void 0:e.verticalAlign)||"top")&&(s[0]+=(null===(i=a.title)||void 0===i?void 0:i.margin)||0),s[2]&&(null===(o=a.caption)||void 0===o?void 0:o.verticalAlign)==="bottom"&&(s[2]+=(null===(r=a.caption)||void 0===r?void 0:r.margin)||0);var d=!this.titleOffset||this.titleOffset.join(",")!==s.join(",");this.titleOffset=s,s2(this,"afterLayOutTitles"),!this.isDirtyBox&&d&&(this.isDirtyBox=this.isDirtyLegend=d,this.hasRendered&&t&&this.isDirtyBox&&this.redraw())},t.prototype.getContainerBox=function(){var t=this,e=[].map.call(this.renderTo.children,function(e){if(e!==t.container){var i=e.style.display;return e.style.display="none",[e,i]}}),i={width:s5(this.renderTo,"width",!0)||0,height:s5(this.renderTo,"height",!0)||0};return e.filter(Boolean).forEach(function(t){var e=t[0],i=t[1];e.style.display=i}),i},t.prototype.getChartSize=function(){var t,e=this.options.chart,i=e.width,o=e.height,r=this.getContainerBox(),n=r.height<=1||!(null===(t=this.renderTo.parentElement)||void 0===t?void 0:t.style.height)&&"100%"===this.renderTo.style.height;this.chartWidth=Math.max(0,i||r.width||600),this.chartHeight=Math.max(0,ao(o,this.chartWidth)||(n?400:r.height)),this.containerBox=r},t.prototype.temporaryDisplay=function(t){var e,i=this.renderTo;if(t)for(;i&&i.style;)i.hcOrigStyle&&(sq(i,i.hcOrigStyle),delete i.hcOrigStyle),i.hcOrigDetached&&(sX.body.removeChild(i),i.hcOrigDetached=!1),i=i.parentNode;else for(;i&&i.style&&(sX.body.contains(i)||i.parentNode||(i.hcOrigDetached=!0,sX.body.appendChild(i)),("none"===s5(i,"display",!1)||i.hcOricDetached)&&(i.hcOrigStyle={display:i.style.display,height:i.style.height,overflow:i.style.overflow},e={display:"block",overflow:"hidden"},i!==this.renderTo&&(e.height=0),sq(i,e),i.offsetWidth||i.style.setProperty("display","block","important")),(i=i.parentNode)!==sX.body););},t.prototype.setClassName=function(t){this.container.className="highcharts-container "+(t||"")},t.prototype.getContainer=function(){var t,e,i=this.options,o=i.chart,r="data-highcharts-chart",n=aa(),s=this.renderTo,a=ai(sU(s,r));s9(a)&&sG[a]&&sG[a].hasRendered&&sG[a].destroy(),sU(s,r,this.index),s.innerHTML=eC.emptyHTML,o.skipClone||s.offsetWidth||this.temporaryDisplay(),this.getChartSize();var h=this.chartHeight,l=this.chartWidth;sq(s,{overflow:"hidden"}),this.styledMode||(e=s0({position:"relative",overflow:"hidden",width:l+"px",height:h+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none",padding:"0px"},o.style||{}));var d=sV("div",{id:n},e,s);this.container=d,this.getChartSize(),l===this.chartWidth||(l=this.chartWidth,this.styledMode||sq(d,{width:ae(null===(t=o.style)||void 0===t?void 0:t.width,l+"px")})),this.containerBox=this.getContainerBox(),this._cursor=d.style.cursor;var c=o.renderer||!sF?ej.getRendererType(o.renderer):ol;if(this.renderer=new c(d,l,h,void 0,o.forExport,i.exporting&&i.exporting.allowHTML,this.styledMode),eg(void 0,this),this.setClassName(o.className),this.styledMode)for(var p in i.defs)this.renderer.definition(i.defs[p]);else this.renderer.setStyle(o.style);this.renderer.chartIndex=this.index,s2(this,"afterGetContainer")},t.prototype.getMargins=function(t){var e=this.spacing,i=this.margin,o=this.titleOffset;this.resetMargins(),o[0]&&!sZ(i[0])&&(this.plotTop=Math.max(this.plotTop,o[0]+e[0])),o[2]&&!sZ(i[2])&&(this.marginBottom=Math.max(this.marginBottom,o[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(i,e),s2(this,"getMargins"),t||this.getAxisMargins()},t.prototype.getAxisMargins=function(){var t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,o=t.margin,r=function(t){t.forEach(function(t){t.visible&&t.getOffset()})};t.hasCartesianSeries?r(t.axes):i&&i.length&&r(i),sH.forEach(function(i,r){sZ(o[r])||(t[i]+=e[r])}),t.setChartSize()},t.prototype.getOptions=function(){return sK(this.userOptions,t0)},t.prototype.reflow=function(t){var e,i=this,o=i.containerBox,r=i.getContainerBox();null===(e=i.pointer)||void 0===e||delete e.chartPosition,!i.isPrinting&&!i.isResizing&&o&&r.width&&((r.width!==o.width||r.height!==o.height)&&(tI.clearTimeout(i.reflowTimeout),i.reflowTimeout=as(function(){i.container&&i.setSize(void 0,void 0,!1)},t?100:0)),i.containerBox=r)},t.prototype.setReflow=function(){var t=this,e=function(e){var i;(null===(i=t.options)||void 0===i?void 0:i.chart.reflow)&&t.hasLoaded&&t.reflow(e)};if("function"==typeof ResizeObserver)new ResizeObserver(e).observe(t.renderTo);else{var i=s_(sY,"resize",e);s_(this,"destroy",i)}},t.prototype.setSize=function(t,e,i){var o=this,r=o.renderer;o.isResizing+=1,eg(i,o);var n=r.globalAnimation;o.oldChartHeight=o.chartHeight,o.oldChartWidth=o.chartWidth,void 0!==t&&(o.options.chart.width=t),void 0!==e&&(o.options.chart.height=e),o.getChartSize();var s=o.chartWidth,a=o.chartHeight,h=o.scrollablePixelsX,l=o.scrollablePixelsY;(o.isDirtyBox||s!==o.oldChartWidth||a!==o.oldChartHeight)&&(o.styledMode||(n?eu:sq)(o.container,{width:""+(s+(void 0===h?0:h))+"px",height:""+(a+(void 0===l?0:l))+"px"},n),o.setChartSize(!0),r.setSize(s,a,n),o.axes.forEach(function(t){t.isDirty=!0,t.setScale()}),o.isDirtyLegend=!0,o.isDirtyBox=!0,o.layOutTitles(),o.getMargins(),o.redraw(n),o.oldChartHeight=void 0,s2(o,"resize"),setTimeout(function(){o&&s2(o,"endResize")},ec(n).duration)),o.isResizing-=1},t.prototype.setChartSize=function(t){var e,i,o,r,n=this.chartHeight,s=this.chartWidth,a=this.inverted,h=this.spacing,l=this.renderer,d=this.clipOffset,c=Math[a?"floor":"round"];this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=o=Math.max(0,Math.round(s-e-this.marginRight)),this.plotHeight=r=Math.max(0,Math.round(n-i-this.marginBottom)),this.plotSizeX=a?r:o,this.plotSizeY=a?o:r,this.spacingBox=l.spacingBox={x:h[3],y:h[0],width:s-h[3]-h[1],height:n-h[0]-h[2]},this.plotBox=l.plotBox={x:e,y:i,width:o,height:r},d&&(this.clipBox={x:c(d[3]),y:c(d[0]),width:c(this.plotSizeX-d[1]-d[3]),height:c(this.plotSizeY-d[0]-d[2])}),t||(this.axes.forEach(function(t){t.setAxisSize(),t.setAxisTranslation()}),l.alignElements()),s2(this,"afterSetChartSize",{skipAxes:t})},t.prototype.resetMargins=function(){s2(this,"resetMargins");var t=this,e=t.options.chart,i=e.plotBorderWidth||0,o=i/2;["margin","spacing"].forEach(function(i){var o=e[i],r=s4(o)?o:[o,o,o,o];["Top","Right","Bottom","Left"].forEach(function(o,n){t[i][n]=ae(e[i+o],r[n])})}),sH.forEach(function(e,i){t[e]=ae(t.margin[i],t.spacing[i])}),t.axisOffset=[0,0,0,0],t.clipOffset=[o,o,o,o],t.plotBorderWidth=i},t.prototype.drawChartBox=function(){var t,e,i,o=this.options.chart,r=this.renderer,n=this.chartWidth,s=this.chartHeight,a=this.styledMode,h=this.plotBGImage,l=o.backgroundColor,d=o.plotBackgroundColor,c=o.plotBackgroundImage,p=this.plotLeft,u=this.plotTop,f=this.plotWidth,g=this.plotHeight,v=this.plotBox,m=this.clipRect,y=this.clipBox,x=this.chartBackground,b=this.plotBackground,M=this.plotBorder,k="animate";x||(this.chartBackground=x=r.rect().addClass("highcharts-background").add(),k="attr"),a?t=e=x.strokeWidth():(e=(t=o.borderWidth||0)+(o.shadow?8:0),i={fill:l||"none"},(t||x["stroke-width"])&&(i.stroke=o.borderColor,i["stroke-width"]=t),x.attr(i).shadow(o.shadow)),x[k]({x:e/2,y:e/2,width:n-e-t%2,height:s-e-t%2,r:o.borderRadius}),k="animate",b||(k="attr",this.plotBackground=b=r.rect().addClass("highcharts-plot-background").add()),b[k](v),!a&&(b.attr({fill:d||"none"}).shadow(o.plotShadow),c&&(h?(c!==h.attr("href")&&h.attr("href",c),h.animate(v)):this.plotBGImage=r.image(c,p,u,f,g).add())),m?m.animate({width:y.width,height:y.height}):this.clipRect=r.clipRect(y),k="animate",M||(k="attr",this.plotBorder=M=r.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),a||M.attr({stroke:o.plotBorderColor,"stroke-width":o.plotBorderWidth||0,fill:"none"}),M[k](M.crisp({x:p,y:u,width:f,height:g},-M.strokeWidth())),this.isDirtyBox=!1,s2(this,"afterDrawChartBox")},t.prototype.propFromSeries=function(){var t,e,i,o=this,r=o.options.chart,n=o.options.series;["inverted","angular","polar"].forEach(function(s){for(e=sj[r.type],i=r[s]||e&&e.prototype[s],t=n&&n.length;!i&&t--;)(e=sj[n[t].type])&&e.prototype[s]&&(i=!0);o[s]=i})},t.prototype.linkSeries=function(t){var e=this,i=e.series;i.forEach(function(t){t.linkedSeries.length=0}),i.forEach(function(t){var i=t.options.linkedTo;if(s8(i)){var o=void 0;(o=":previous"===i?e.series[t.index-1]:e.get(i))&&o.linkedParent!==t&&(o.linkedSeries.push(t),t.linkedParent=o,o.enabledDataSorting&&t.setDataSortingOptions(),t.visible=ae(t.options.visible,o.options.visible,t.visible))}}),s2(this,"afterLinkSeries",{isUpdating:t})},t.prototype.renderSeries=function(){this.series.forEach(function(t){t.translate(),t.render()})},t.prototype.render=function(){var t,e,i=this.axes,o=this.colorAxis,r=this.renderer,n=this.options.chart.axisLayoutRuns||2,s=function(t){t.forEach(function(t){t.visible&&t.render()})},a=0,h=!0,l=0;this.setTitle(),s2(this,"beforeMargins"),null===(t=this.getStacks)||void 0===t||t.call(this),this.getMargins(!0),this.setChartSize();for(var d=0;d<i.length;d++){var c=i[d],p=c.options,u=p.labels;if(this.hasCartesianSeries&&c.horiz&&c.visible&&u.enabled&&c.series.length&&"colorAxis"!==c.coll&&!this.polar){a=p.tickLength,c.createGroups();var f=new oj(c,0,"",!0),g=f.createLabel("x",u);if(f.destroy(),g&&ae(u.reserveSpace,!s9(p.crossing))&&(a=g.getBBox().height+u.distance+Math.max(p.offset||0,0)),a){null==g||g.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-a,0);(h||e||n>1)&&l<n;){for(var v=this.plotWidth,m=this.plotHeight,y=0;y<i.length;y++){var c=i[y];0===l?c.setScale():(c.horiz&&h||!c.horiz&&e)&&c.setTickInterval(!0)}0===l?this.getAxisMargins():this.getMargins(),h=v/this.plotWidth>(l?1:1.1),e=m/this.plotHeight>(l?1:1.05),l++}this.drawChartBox(),this.hasCartesianSeries?s(i):o&&o.length&&s(o),this.seriesGroup||(this.seriesGroup=r.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},t.prototype.addCredits=function(t){var e=this,i=s7(!0,this.options.credits,t);i.enabled&&!this.credits&&(this.credits=this.renderer.text(i.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){i.href&&(sY.location.href=i.href)}).attr({align:i.position.align,zIndex:8}),e.styledMode||this.credits.css(i.style),this.credits.add().align(i.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},t.prototype.destroy=function(){var t,e=this,i=e.axes,o=e.series,r=e.container,n=r&&r.parentNode;for(s2(e,"destroy"),e.renderer.forExport?sJ(sG,e):sG[e.index]=void 0,ta.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),ar(e),t=i.length;t--;)i[t]=i[t].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),t=o.length;t--;)o[t]=o[t].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(t){var i=e[t];i&&i.destroy&&(e[t]=i.destroy())}),r&&(r.innerHTML=eC.emptyHTML,ar(r),n&&s$(r)),at(e,function(t,i){delete e[i]})},t.prototype.firstRender=function(){var t,e=this,i=e.options;e.getContainer(),e.resetMargins(),e.setChartSize(),e.propFromSeries(),e.createAxes();var o=s6(i.series)?i.series:[];i.series=[],o.forEach(function(t){e.initSeries(t)}),e.linkSeries(),e.setSortedData(),s2(e,"beforeRender"),e.render(),null===(t=e.pointer)||void 0===t||t.getChartPosition(),e.renderer.imgCount||e.hasLoaded||e.onload(),e.temporaryDisplay(!0)},t.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(t){t&&void 0!==this.index&&t.apply(this,[this])},this),s2(this,"load"),s2(this,"render"),sZ(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},t.prototype.warnIfA11yModuleNotLoaded=function(){var t=this.options,e=this.title;!t||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(e&&e.element.textContent||"").replace(/</g,"&lt;")}),t.accessibility&&!1===t.accessibility.enabled||sQ('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))},t.prototype.addSeries=function(t,e,i){var o,r=this;return t&&(e=ae(e,!0),s2(r,"addSeries",{options:t},function(){o=r.initSeries(t),r.isDirtyLegend=!0,r.linkSeries(),o.enabledDataSorting&&o.setData(t.data,!1),s2(r,"afterAddSeries",{series:o}),e&&r.redraw(i)})),o},t.prototype.addAxis=function(t,e,i,o){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:i,animation:o})},t.prototype.addColorAxis=function(t,e,i){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:i})},t.prototype.createAxis=function(t,e){var i=new rl(this,e.axis,t);return ae(e.redraw,!0)&&this.redraw(e.animation),i},t.prototype.showLoading=function(t){var e=this,i=e.options,o=i.loading,r=function(){n&&sq(n,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})},n=e.loadingDiv,s=e.loadingSpan;n||(e.loadingDiv=n=sV("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),s||(e.loadingSpan=s=sV("span",{className:"highcharts-loading-inner"},null,n),s_(e,"redraw",r)),n.className="highcharts-loading",eC.setElementHTML(s,ae(t,i.lang.loading,"")),e.styledMode||(sq(n,s0(o.style,{zIndex:10})),sq(s,o.labelStyle),e.loadingShown||(sq(n,{opacity:0,display:""}),eu(n,{opacity:o.style.opacity||.5},{duration:o.showDuration||0}))),e.loadingShown=!0,r()},t.prototype.hideLoading=function(){var t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||eu(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){sq(e,{display:"none"})}})),this.loadingShown=!1},t.prototype.update=function(t,e,i,o){var r,n,s,a=this,h={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},l=t.isResponsiveOptions,d=[];s2(a,"update",{options:t}),l||a.setResponsive(!1,!0),t=sK(t,a.options),a.userOptions=s7(a.userOptions,t);var c=t.chart;c&&(s7(!0,a.options.chart,c),this.setZoomOptions(),"className"in c&&a.setClassName(c.className),("inverted"in c||"polar"in c||"type"in c)&&(a.propFromSeries(),r=!0),"alignTicks"in c&&(r=!0),"events"in c&&sW(this,c),at(c,function(t,e){-1!==a.propsRequireUpdateSeries.indexOf("chart."+e)&&(n=!0),-1!==a.propsRequireDirtyBox.indexOf(e)&&(a.isDirtyBox=!0),-1===a.propsRequireReflow.indexOf(e)||(a.isDirtyBox=!0,l||(s=!0))}),!a.styledMode&&c.style&&a.renderer.setStyle(a.options.chart.style||{})),!a.styledMode&&t.colors&&(this.options.colors=t.colors),at(t,function(e,i){a[i]&&"function"==typeof a[i].update?a[i].update(e,!1):"function"==typeof a[h[i]]?a[h[i]](e):"colors"!==i&&-1===a.collectionsWithUpdate.indexOf(i)&&s7(!0,a.options[i],t[i]),"chart"!==i&&-1!==a.propsRequireUpdateSeries.indexOf(i)&&(n=!0)}),this.collectionsWithUpdate.forEach(function(e){t[e]&&(an(t[e]).forEach(function(t,o){var r,n=sZ(t.id);n&&(r=a.get(t.id)),!r&&a[e]&&(r=a[e][ae(t.index,o)])&&(n&&sZ(r.options.id)||r.options.isInternal)&&(r=void 0),r&&r.coll===e&&(r.update(t,!1),i&&(r.touched=!0)),!r&&i&&a.collectionsWithInit[e]&&(a.collectionsWithInit[e][0].apply(a,[t].concat(a.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)}),i&&a[e].forEach(function(t){t.touched||t.options.isInternal?delete t.touched:d.push(t)}))}),d.forEach(function(t){t.chart&&t.remove&&t.remove(!1)}),r&&a.axes.forEach(function(t){t.update({},!1)}),n&&a.getSeriesOrderByLinks().forEach(function(t){t.chart&&t.update({},!1)},this);var p=c&&c.width,u=c&&(s8(c.height)?ao(c.height,p||a.chartWidth):c.height);s||s9(p)&&p!==a.chartWidth||s9(u)&&u!==a.chartHeight?a.setSize(p,u,o):ae(e,!0)&&a.redraw(o),s2(a,"afterUpdate",{options:t,redraw:e,animation:o})},t.prototype.setSubtitle=function(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)},t.prototype.setCaption=function(t,e){this.applyDescription("caption",t),this.layOutTitles(e)},t.prototype.showResetZoom=function(){var t=this,e=t0.lang,i=t.zooming.resetButton,o=i.theme,r="chart"===i.relativeTo||"spacingBox"===i.relativeTo?null:"plotBox";function n(){t.zoomOut()}s2(this,"beforeShowResetZoom",null,function(){t.resetZoomButton=t.renderer.button(e.resetZoom,null,null,n,o).attr({align:i.position.align,title:e.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,r)}),s2(this,"afterShowResetZoom")},t.prototype.zoomOut=function(){var t=this;s2(this,"selection",{resetSelection:!0},function(){return t.transform({reset:!0,trigger:"zoom"})})},t.prototype.pan=function(t,e){var i=this,o="object"==typeof e?e:{enabled:e,type:"x"},r=o.type,n=r&&i[({x:"xAxis",xy:"axes",y:"yAxis"})[r]].filter(function(t){return t.options.panningEnabled&&!t.options.isInternal}),s=i.options.chart;(null==s?void 0:s.panning)&&(s.panning=o),s2(this,"pan",{originalEvent:t},function(){i.transform({axes:n,event:t,to:{x:t.chartX-(i.mouseDownX||0),y:t.chartY-(i.mouseDownY||0)},trigger:"pan"}),sq(i.container,{cursor:"move"})})},t.prototype.transform=function(t){var e,i,o,r,n,s,a=this,h=t.axes,l=void 0===h?this.axes:h,d=t.event,c=t.from,p=void 0===c?{}:c,u=t.reset,f=t.selection,g=t.to,v=void 0===g?{}:g,m=t.trigger,y=this.inverted,x=this.time,b=!1;null===(i=this.hoverPoints)||void 0===i||i.forEach(function(t){return t.setState()});for(var M=0;M<l.length;M++){var k=l[M],w=k.horiz,S=k.len,A=k.minPointOffset,T=void 0===A?0:A,P=k.options,O=k.reversed,C=w?"width":"height",E=w?"x":"y",L=ae(v[C],k.len),B=ae(p[C],k.len),I=10>Math.abs(L)?1:L/B,D=(p[E]||0)+B/2-k.pos,z=D-((null!==(o=v[E])&&void 0!==o?o:k.pos)+L/2-k.pos)/I,R=O&&!y||!O&&y?-1:1;if(u||!(D<0)&&!(D>k.len)){var N=k.toValue(z,!0)+(f||k.isOrdinal?0:T*R),W=k.toValue(z+S/I,!0)-(f||k.isOrdinal?0:T*R||0),G=k.allExtremes;if(N>W&&(N=(e=[W,N])[0],W=e[1]),1===I&&!u&&"yAxis"===k.coll&&!G){for(var X=0,H=k.series;X<H.length;X++){var F=H[X],Y=F.getExtremes(F.getProcessedData(!0).modified.getColumn("y")||[],!0);null!=G||(G={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),s9(Y.dataMin)&&s9(Y.dataMax)&&(G.dataMin=Math.min(Y.dataMin,G.dataMin),G.dataMax=Math.max(Y.dataMax,G.dataMax))}k.allExtremes=G}var j=s0(k.getExtremes(),G||{}),_=j.dataMin,U=j.dataMax,V=j.min,q=j.max,Z=x.parse(P.min),K=x.parse(P.max),$=null!=_?_:Z,J=null!=U?U:K,Q=W-N,tt=k.categories?0:Math.min(Q,J-$),te=$-tt*(sZ(Z)?0:P.minPadding),ti=J+tt*(sZ(K)?0:P.maxPadding),to=k.allowZoomOutside||1===I||"zoom"!==m&&I>1,tr=Math.min(null!=Z?Z:te,te,to?V:te),tn=Math.max(null!=K?K:ti,ti,to?q:ti);(!k.isOrdinal||k.options.overscroll||1!==I||u)&&(N<tr&&(N=tr,I>=1&&(W=N+Q)),W>tn&&(W=tn,I>=1&&(N=W-Q)),(u||k.series.length&&(N!==V||W!==q)&&N>=tr&&W<=tn)&&(f?f[k.coll].push({axis:k,min:N,max:W}):(k.isPanning="zoom"!==m,k.isPanning&&(s=!0),k.setExtremes(u?void 0:N,u?void 0:W,!1,!1,{move:z,trigger:m,scale:I}),!u&&(N>tr||W<tn)&&"mousewheel"!==m&&(n=!0)),b=!0),d&&(this[w?"mouseDownX":"mouseDownY"]=d[w?"chartX":"chartY"]))}}return b&&(f?s2(this,"selection",f,function(){delete t.selection,t.trigger="zoom",a.transform(t)}):(!n||s||this.resetZoomButton?!n&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw("zoom"===m&&(null!==(r=this.options.chart.animation)&&void 0!==r?r:this.pointCount<100)))),b},t}();s0(ah.prototype,{callbacks:[],collectionsWithInit:{xAxis:[ah.prototype.addAxis,[!0]],yAxis:[ah.prototype.addAxis,[!1]],series:[ah.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]});var al=ta.composed,ad=tI.addEvent,ac=tI.createElement,ap=tI.css,au=tI.defined,af=tI.erase,ag=tI.merge,av=tI.pushUnique;function am(){var t=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!t&&(this.scrollablePlotArea=t=new ax(this)),null==t||t.applyFixed()}function ay(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}var ax=function(){function t(t){var e,i,o,r=t.options.chart,n=ej.getRendererType(),s=r.scrollablePlotArea||{},a=this.moveFixedElements.bind(this),h={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};t.scrollablePixelsX&&(h.overflowX="auto"),t.scrollablePixelsY&&(h.overflowY="auto"),this.chart=t;var l=this.parentDiv=ac("div",{className:"highcharts-scrolling-parent"},{position:"relative"},t.renderTo),d=this.scrollingContainer=ac("div",{className:"highcharts-scrolling"},h,l),c=this.innerContainer=ac("div",{className:"highcharts-inner-container"},void 0,d),p=this.fixedDiv=ac("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:((null===(e=r.style)||void 0===e?void 0:e.zIndex)||0)+2,top:0},void 0,!0),u=this.fixedRenderer=new n(p,t.chartWidth,t.chartHeight,r.style);this.mask=u.path().attr({fill:r.backgroundColor||"#fff","fill-opacity":null!==(i=s.opacity)&&void 0!==i?i:.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),d.parentNode.insertBefore(p,d),ap(t.renderTo,{overflow:"visible"}),ad(t,"afterShowResetZoom",a),ad(t,"afterApplyDrilldown",a),ad(t,"afterLayOutTitles",a),ad(d,"scroll",function(){var e=t.pointer,i=t.hoverPoint;e&&(delete e.chartPosition,i&&(o=i),e.runPointActions(void 0,o,!0))}),c.appendChild(t.container)}return t.compose=function(t,e,i){var o=this;av(al,this.compose)&&(ad(t,"afterInit",ay),ad(e,"afterSetChartSize",function(t){return o.afterSetSize(t.target,t)}),ad(e,"render",am),ad(i,"show",ay))},t.afterSetSize=function(t,e){var i,o,r,n=t.options.chart.scrollablePlotArea||{},s=n.minWidth,a=n.minHeight,h=t.clipBox,l=t.plotBox,d=t.inverted;if(!t.renderer.forExport&&(s?(t.scrollablePixelsX=i=Math.max(0,s-t.chartWidth),i&&(t.scrollablePlotBox=ag(t.plotBox),l.width=t.plotWidth+=i,h[d?"height":"width"]+=i,r=!0)):a&&(t.scrollablePixelsY=o=Math.max(0,a-t.chartHeight),au(o)&&(t.scrollablePlotBox=ag(t.plotBox),l.height=t.plotHeight+=o,h[d?"width":"height"]+=o,r=!1)),au(r)&&!e.skipAxes))for(var c=0,p=t.axes;c<p.length;c++){var u=p[c];(u.horiz===r||t.hasParallelCoordinates&&"yAxis"===u.coll)&&(u.setAxisSize(),u.setAxisTranslation())}},t.prototype.applyFixed=function(){var t,e=this.chart,i=this.fixedRenderer,o=this.isDirty,r=this.scrollingContainer,n=e.axisOffset,s=e.chartWidth,a=e.chartHeight,h=e.container,l=e.plotHeight,d=e.plotLeft,c=e.plotTop,p=e.plotWidth,u=e.scrollablePixelsX,f=void 0===u?0:u,g=e.scrollablePixelsY,v=void 0===g?0:g,m=e.options.chart.scrollablePlotArea||{},y=m.scrollPositionX,x=m.scrollPositionY,b=s+f,M=a+v;i.setSize(s,a),(null==o||o)&&(this.isDirty=!1,this.moveFixedElements()),ep(e.container),ap(h,{width:""+b+"px",height:""+M+"px"}),e.renderer.boxWrapper.attr({width:b,height:M,viewBox:[0,0,b,M].join(" ")}),null===(t=e.chartBackground)||void 0===t||t.attr({width:b,height:M}),ap(r,{width:""+s+"px",height:""+a+"px"}),au(o)||(r.scrollLeft=f*(void 0===y?0:y),r.scrollTop=v*(void 0===x?0:x));var k=c-n[0]-1,w=d-n[3]-1,S=c+l+n[2]+1,A=d+p+n[1]+1,T=d+p-f,P=c+l-v,O=[["M",0,0]];f?O=[["M",0,k],["L",d-1,k],["L",d-1,S],["L",0,S],["Z"],["M",T,k],["L",s,k],["L",s,S],["L",T,S],["Z"]]:v&&(O=[["M",w,0],["L",w,c-1],["L",A,c-1],["L",A,0],["Z"],["M",w,P],["L",w,a],["L",A,a],["L",A,P],["Z"]]),"adjustHeight"!==e.redrawTrigger&&this.mask.attr({d:O})},t.prototype.moveFixedElements=function(){var e,i=this.chart,o=i.container,r=i.inverted,n=i.scrollablePixelsX,s=i.scrollablePixelsY,a=this.fixedRenderer,h=t.fixedSelectors;if(n&&!r?e=".highcharts-yaxis":n&&r?e=".highcharts-xaxis":s&&!r?e=".highcharts-xaxis":s&&r&&(e=".highcharts-yaxis"),e&&!(this.chart.hasParallelCoordinates&&".highcharts-yaxis"===e))for(var l=0,d=[""+e+":not(.highcharts-radial-axis)",""+e+"-labels:not(.highcharts-radial-axis-labels)"];l<d.length;l++){var c=d[l];av(h,c)}else for(var p=0,u=[".highcharts-xaxis",".highcharts-yaxis"];p<u.length;p++)for(var f=u[p],g=0,v=[""+f+":not(.highcharts-radial-axis)",""+f+"-labels:not(.highcharts-radial-axis-labels)"];g<v.length;g++){var c=v[g];af(h,c)}for(var m=0;m<h.length;m++){var c=h[m];[].forEach.call(o.querySelectorAll(c),function(t){(t.namespaceURI===a.SVG_NS?a.box:a.box.parentNode).appendChild(t),t.style.pointerEvents="auto"})}},t.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"],t}(),ab=eY.format,aM=nU.series,ak=tI.destroyObjectProperties,aw=tI.fireEvent,aS=tI.getAlignFactor,aA=tI.isNumber,aT=tI.pick,aP=function(){function t(t,e,i,o,r){var n=t.chart.inverted,s=t.reversed;this.axis=t;var a=this.isNegative=!!i!=!!s;this.options=e=e||{},this.x=o,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=r,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:e.align||(n?a?"left":"right":"center"),verticalAlign:e.verticalAlign||(n?"middle":a?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(n?a?"right":"left":"center")}return t.prototype.destroy=function(){ak(this,this.axis)},t.prototype.render=function(t){var e=this.axis.chart,i=this.options,o=i.format,r=o?ab(o,this,e):i.formatter.call(this);if(this.label)this.label.attr({text:r,visibility:"hidden"});else{this.label=e.renderer.label(r,null,void 0,i.shape,void 0,void 0,i.useHTML,!1,"stack-labels");var n={r:i.borderRadius||0,text:r,padding:aT(i.padding,5),visibility:"hidden"};e.styledMode||(n.fill=i.backgroundColor,n.stroke=i.borderColor,n["stroke-width"]=i.borderWidth,this.label.css(i.style||{})),this.label.attr(n),this.label.added||this.label.add(t)}this.label.labelrank=e.plotSizeY,aw(this,"afterRender")},t.prototype.setOffset=function(t,e,i,o,r,n){var s=this.alignOptions,a=this.axis,h=this.label,l=this.options,d=this.textAlign,c=a.chart,p=this.getStackBox({xOffset:t,width:e,boxBottom:i,boxTop:o,defaultX:r,xAxis:n}),u=s.verticalAlign;if(h&&p){var f=h.getBBox(void 0,0),g=h.padding,v="justify"===aT(l.overflow,"justify"),m=void 0;s.x=l.x||0,s.y=l.y||0;var y=this.adjustStackPosition({labelBox:f,verticalAlign:u,textAlign:d}),x=y.x,b=y.y;p.x-=x,p.y-=b,h.align(s,!1,p),(m=c.isInsidePlot(h.alignAttr.x+s.x+x,h.alignAttr.y+s.y+b))||(v=!1),v&&aM.prototype.justifyDataLabel.call(a,h,s,h.alignAttr,f,p),h.attr({x:h.alignAttr.x,y:h.alignAttr.y,rotation:l.rotation,rotationOriginX:f.width*aS(l.textAlign||"center"),rotationOriginY:f.height/2}),aT(!v&&l.crop,!0)&&(m=aA(h.x)&&aA(h.y)&&c.isInsidePlot(h.x-g+(h.width||0),h.y)&&c.isInsidePlot(h.x+g,h.y)),h[m?"show":"hide"]()}aw(this,"afterSetOffset",{xOffset:t,width:e})},t.prototype.adjustStackPosition=function(t){var e=t.labelBox,i=t.verticalAlign,o=t.textAlign;return{x:e.width/2+e.width/2*(2*aS(o)-1),y:e.height/2*2*(1-aS(i))}},t.prototype.getStackBox=function(t){var e=this.axis,i=e.chart,o=t.boxTop,r=t.defaultX,n=t.xOffset,s=t.width,a=t.boxBottom,h=e.stacking.usePercentage?100:aT(o,this.total,0),l=e.toPixels(h),d=t.xAxis||i.xAxis[0],c=aT(r,d.translate(this.x))+n,p=Math.abs(l-e.toPixels(a||aA(e.min)&&e.logarithmic&&e.logarithmic.lin2log(e.min)||0)),u=i.inverted,f=this.isNegative;return u?{x:(f?l:l-p)-i.plotLeft,y:d.height-c-s+d.top-i.plotTop,width:p,height:s}:{x:c+d.transB-i.plotLeft,y:(f?l-p:l)-i.plotTop,width:s,height:p}},t}(),aO=nU.series.prototype,aC=tI.addEvent,aE=tI.correctFloat,aL=tI.defined,aB=tI.destroyObjectProperties,aI=tI.fireEvent,aD=tI.isNumber,az=tI.objectEach,aR=tI.pick;function aN(){var t=this.inverted;this.axes.forEach(function(t){t.stacking&&t.stacking.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)}),this.series.forEach(function(e){var i=e.xAxis&&e.xAxis.options||{};e.options.stacking&&e.reserveSpace()&&(e.stackKey=[e.type,aR(e.options.stack,""),t?i.top:i.left,t?i.height:i.width].join(","))})}function aW(){var t,e=this.stacking;if(e){var i=e.stacks;az(i,function(t,e){aB(t),delete i[e]}),null===(t=e.stackTotalGroup)||void 0===t||t.destroy()}}function aG(){this.stacking||(this.stacking=new a_(this))}function aX(t,e,i,o){return!aL(t)||t.x!==e||o&&t.stackKey!==o?t={x:e,index:0,key:o,stackKey:o}:t.index++,t.key=[i,e,t.index].join(","),t}function aH(){var t,e=this,i=e.yAxis,o=e.stackKey||"",r=i.stacking.stacks,n=e.getColumn("x",!0),s=e.options.stacking,a=e[s+"Stacker"];a&&[o,"-"+o].forEach(function(i){for(var o,s,h,l,d=n.length;d--;)s=n[d],t=e.getStackIndicator(t,s,e.index,i),(l=null==(h=null===(o=r[i])||void 0===o?void 0:o[s])?void 0:h.points[t.key||""])&&a.call(e,l,h,d)})}function aF(t,e,i){var o=e.total?100/e.total:0;t[0]=aE(t[0]*o),t[1]=aE(t[1]*o),this.stackedYData[i]=t[1]}function aY(t){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&this.chart.series.length>1?aO.setStackedPoints.call(this,t,"group"):t.stacking.resetStacks())}function aj(t,e){var i,o,r,n,s,a,h,l,d,c=e||this.options.stacking;if(c&&this.reserveSpace()&&(({group:"xAxis"})[c]||"yAxis")===t.coll){var p=this.getColumn("x",!0),u=this.getColumn(this.pointValKey||"y",!0),f=[],g=u.length,v=this.options,m=v.threshold||0,y=v.startFromThreshold?m:0,x=v.stack,b=e?""+this.type+",".concat(c):this.stackKey||"",M="-"+b,k=this.negStacks,w=t.stacking,S=w.stacks,A=w.oldStacks;for(w.stacksTouched+=1,d=0;d<g;d++){var T=p[d]||0,P=u[d],O=aD(P)&&P||0;l=(r=this.getStackIndicator(r,T,this.index)).key||"",S[h=(n=k&&O<(y?0:m))?M:b]||(S[h]={}),S[h][T]||((null===(i=A[h])||void 0===i?void 0:i[T])?(S[h][T]=A[h][T],S[h][T].total=null):S[h][T]=new aP(t,t.options.stackLabels,!!n,T,x)),s=S[h][T],null!==P?(s.points[l]=s.points[this.index]=[aR(s.cumulative,y)],aL(s.cumulative)||(s.base=l),s.touched=w.stacksTouched,r.index>0&&!1===this.singleStacks&&(s.points[l][0]=s.points[this.index+","+T+",0"][0])):(delete s.points[l],delete s.points[this.index]);var C=s.total||0;"percent"===c?(a=n?b:M,C=k&&(null===(o=S[a])||void 0===o?void 0:o[T])?(a=S[a][T]).total=Math.max(a.total||0,C)+Math.abs(O):aE(C+Math.abs(O))):"group"===c?aD(P)&&C++:C=aE(C+O),"group"===c?s.cumulative=(C||1)-1:s.cumulative=aE(aR(s.cumulative,y)+O),s.total=C,null!==P&&(s.points[l].push(s.cumulative),f[d]=s.cumulative,s.hasValidPoints=!0)}"percent"===c&&(w.usePercentage=!0),"group"!==c&&(this.stackedYData=f),w.oldStacks={}}}var a_=function(){function t(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}return t.prototype.buildStacks=function(){var t,e,i=this.axis,o=i.series,r="xAxis"===i.coll,n=i.options.reversedStacks,s=o.length;for(this.resetStacks(),this.usePercentage=!1,e=s;e--;)t=o[n?e:s-e-1],r&&t.setGroupedPoints(i),t.setStackedPoints(i);if(!r)for(e=0;e<s;e++)o[e].modifyStacks();aI(i,"afterBuildStacks")},t.prototype.cleanStacks=function(){this.oldStacks&&(this.stacks=this.oldStacks,az(this.stacks,function(t){az(t,function(t){t.cumulative=t.total})}))},t.prototype.resetStacks=function(){var t=this;az(this.stacks,function(e){az(e,function(i,o){aD(i.touched)&&i.touched<t.stacksTouched?(i.destroy(),delete e[o]):(i.total=null,i.cumulative=null)})})},t.prototype.renderStackTotals=function(){var t,e=this.axis,i=e.chart,o=i.renderer,r=this.stacks,n=ef(i,(null===(t=e.options.stackLabels)||void 0===t?void 0:t.animation)||!1),s=this.stackTotalGroup=this.stackTotalGroup||o.g("stack-labels").attr({zIndex:6,opacity:0}).add();s.translate(i.plotLeft,i.plotTop),az(r,function(t){az(t,function(t){t.render(s)})}),s.animate({opacity:1},n)},t}();(j||(j={})).compose=function(t,e,i){var o=e.prototype,r=i.prototype;o.getStacks||(aC(t,"init",aG),aC(t,"destroy",aW),o.getStacks=aN,r.getStackIndicator=aX,r.modifyStacks=aH,r.percentStacker=aF,r.setGroupedPoints=aY,r.setStackedPoints=aj)};var aU=j,aV=(f=function(t,e){return(f=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}f(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),aq=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},aZ=tI.defined,aK=tI.merge,a$=tI.isObject,aJ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return aV(e,t),e.prototype.drawGraph=function(){var t=this,e=this.options,i=(this.gappedPath||this.getGraphPath).call(this),o=this.chart.styledMode;aq([this],this.zones,!0).forEach(function(r,n){var s,a=r.graph,h=a?"animate":"attr",l=r.dashStyle||e.dashStyle;a?(a.endX=t.preventGraphAnimation?null:i.xMap,a.animate({d:i})):i.length&&(r.graph=a=t.chart.renderer.path(i).addClass("highcharts-graph"+(n?" highcharts-zone-graph-".concat(n-1," "):" ")+(n&&r.className||"")).attr({zIndex:1}).add(t.group)),a&&!o&&(s={stroke:!n&&e.lineColor||r.color||t.color||"#cccccc","stroke-width":e.lineWidth||0,fill:t.fillGraph&&t.color||"none"},l?s.dashstyle=l:"square"!==e.linecap&&(s["stroke-linecap"]=s["stroke-linejoin"]="round"),a[h](s).shadow(e.shadow&&aK({filterUnits:"userSpaceOnUse"},a$(e.shadow)?e.shadow:{}))),a&&(a.startX=i.xMap,a.isArea=i.isArea)})},e.prototype.getGraphPath=function(t,e,i){var o,r=this,n=r.options,s=[],a=[],h=n.step,l=(t=t||r.points).reversed;return l&&t.reverse(),(h=({right:1,center:2})[h]||h&&3)&&l&&(h=4-h),(t=this.getValidPoints(t,!1,!(n.connectNulls&&!e&&!i))).forEach(function(l,d){var c,p=l.plotX,u=l.plotY,f=t[d-1],g=l.isNull||"number"!=typeof u;(l.leftCliff||f&&f.rightCliff)&&!i&&(o=!0),g&&!aZ(e)&&d>0?o=!n.connectNulls:g&&!e?o=!0:(0===d||o?c=[["M",l.plotX,l.plotY]]:r.getPointSpline?c=[r.getPointSpline(t,l,d)]:h?(c=1===h?[["L",f.plotX,u]]:2===h?[["L",(f.plotX+p)/2,f.plotY],["L",(f.plotX+p)/2,u]]:[["L",p,f.plotY]]).push(["L",p,u]):c=[["L",p,u]],a.push(l.x),h&&(a.push(l.x),2===h&&a.push(l.x)),s.push.apply(s,c),o=!1)}),s.xMap=a,r.graphPath=s,s},e.defaultOptions=aK(su.defaultOptions,{legendSymbol:"lineMarker"}),e}(su);nU.registerSeriesType("line",aJ);var aQ={threshold:0,legendSymbol:"areaMarker"},a0=(g=function(t,e){return(g=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}g(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a1=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},a2=nU.seriesTypes.line,a3=tI.extend,a5=tI.merge,a6=tI.objectEach,a9=tI.pick,a4=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a0(e,t),e.prototype.drawGraph=function(){var e=this;this.areaPath=[],t.prototype.drawGraph.apply(this);var i=this.areaPath,o=this.options;a1([this],this.zones,!0).forEach(function(t,r){var n,s={},a=t.fillColor||o.fillColor,h=t.area,l=h?"animate":"attr";h?(h.endX=e.preventGraphAnimation?null:i.xMap,h.animate({d:i})):(s.zIndex=0,(h=t.area=e.chart.renderer.path(i).addClass("highcharts-area"+(r?" highcharts-zone-area-".concat(r-1," "):" ")+(r&&t.className||"")).add(e.group)).isArea=!0),e.chart.styledMode||(s.fill=a||t.color||e.color,s["fill-opacity"]=a?1:null!==(n=o.fillOpacity)&&void 0!==n?n:.75,h.css({pointerEvents:e.stickyTracking?"none":"auto"})),h[l](s),h.startX=i.xMap,h.shiftUnit=o.step?2:1})},e.prototype.getGraphPath=function(t){var e,i,o,r=a2.prototype.getGraphPath,n=this.options,s=n.stacking,a=this.yAxis,h=[],l=[],d=this.index,c=a.stacking.stacks[this.stackKey],p=n.threshold,u=Math.round(a.getThreshold(n.threshold)),f=a9(n.connectNulls,"percent"===s),g=function(i,o,r){var n,f,g=t[i],v=s&&c[g.x].points[d],m=g[r+"Null"]||0,y=g[r+"Cliff"]||0,x=!0;y||m?(n=(m?v[0]:v[1])+y,f=v[0]+y,x=!!m):!s&&t[o]&&t[o].isNull&&(n=f=p),void 0!==n&&(l.push({plotX:e,plotY:null===n?u:a.getThreshold(n),isNull:x,isCliff:!0}),h.push({plotX:e,plotY:null===f?u:a.getThreshold(f),doCurve:!1}))};t=t||this.points,s&&(t=this.getStackPoints(t));for(var v=0,m=t.length;v<m;++v)s||(t[v].leftCliff=t[v].rightCliff=t[v].leftNull=t[v].rightNull=void 0),i=t[v].isNull,e=a9(t[v].rectPlotX,t[v].plotX),o=s?a9(t[v].yBottom,u):u,i&&!f||(f||g(v,v-1,"left"),i&&!s&&f||(l.push(t[v]),h.push({x:v,plotX:e,plotY:o})),f||g(v,v+1,"right"));var y=r.call(this,l,!0,!0);h.reversed=!0;var x=r.call(this,h,!0,!0),b=x[0];b&&"M"===b[0]&&(x[0]=["L",b[1],b[2]]);var M=y.concat(x);M.length&&M.push(["Z"]);var k=r.call(this,l,!1,f);return this.chart.series.length>1&&s&&l.some(function(t){return t.isCliff})&&(M.hasStackedCliffs=k.hasStackedCliffs=!0),M.xMap=y.xMap,this.areaPath=M,k},e.prototype.getStackPoints=function(t){var e=this,i=[],o=[],r=this.xAxis,n=this.yAxis,s=n.stacking.stacks[this.stackKey],a={},h=n.series,l=h.length,d=n.options.reversedStacks?1:-1,c=h.indexOf(e);if(t=t||this.points,this.options.stacking){for(var p=0;p<t.length;p++)t[p].leftNull=t[p].rightNull=void 0,a[t[p].x]=t[p];a6(s,function(t,e){null!==t.total&&o.push(e)}),o.sort(function(t,e){return t-e});var u=h.map(function(t){return t.visible});o.forEach(function(t,p){var f,g,v=0;if(a[t]&&!a[t].isNull)i.push(a[t]),[-1,1].forEach(function(i){var r=1===i?"rightNull":"leftNull",n=s[o[p+i]],v=0;if(n)for(var m=c;m>=0&&m<l;){var y=h[m].index;!(f=n.points[y])&&(y===e.index?a[t][r]=!0:u[m]&&(g=s[t].points[y])&&(v-=g[1]-g[0])),m+=d}a[t][1===i?"rightCliff":"leftCliff"]=v});else{for(var m=c;m>=0&&m<l;){var y=h[m].index;if(f=s[t].points[y]){v=f[1];break}m+=d}v=a9(v,0),v=n.translate(v,0,1,0,1),i.push({isNull:!0,plotX:r.translate(t,0,0,0,1),x:t,plotY:v,yBottom:v})}})}return i},e.defaultOptions=a5(a2.defaultOptions,aQ),e}(a2);a3(a4.prototype,{singleStacks:!1}),nU.registerSeriesType("area",a4);var a8=(v=function(t,e){return(v=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}v(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a7=nU.seriesTypes.line,ht=tI.merge,he=tI.pick,hi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a8(e,t),e.prototype.getPointSpline=function(t,e,i){var o,r,n,s,a=e.plotX||0,h=e.plotY||0,l=t[i-1],d=t[i+1];function c(t){return t&&!t.isNull&&!1!==t.doCurve&&!e.isCliff}if(c(l)&&c(d)){var p=l.plotX||0,u=l.plotY||0,f=d.plotX||0,g=d.plotY||0,v=0;o=(1.5*a+p)/2.5,r=(1.5*h+u)/2.5,n=(1.5*a+f)/2.5,s=(1.5*h+g)/2.5,n!==o&&(v=(s-r)*(n-a)/(n-o)+h-s),r+=v,s+=v,r>u&&r>h?(r=Math.max(u,h),s=2*h-r):r<u&&r<h&&(r=Math.min(u,h),s=2*h-r),s>g&&s>h?(s=Math.max(g,h),r=2*h-s):s<g&&s<h&&(s=Math.min(g,h),r=2*h-s),e.rightContX=n,e.rightContY=s,e.controlPoints={low:[o,r],high:[n,s]}}var m=["C",he(l.rightContX,l.plotX,0),he(l.rightContY,l.plotY,0),he(o,a,0),he(r,h,0),a,h];return l.rightContX=l.rightContY=void 0,m},e.defaultOptions=ht(a7.defaultOptions),e}(a7);nU.registerSeriesType("spline",hi);var ho=(m=function(t,e){return(m=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}m(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),hr=nU.seriesTypes,hn=hr.area,hs=hr.area.prototype,ha=tI.extend,hh=tI.merge,hl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ho(e,t),e.defaultOptions=hh(hi.defaultOptions,hn.defaultOptions),e}(hi);ha(hl.prototype,{getGraphPath:hs.getGraphPath,getStackPoints:hs.getStackPoints,drawGraph:hs.drawGraph}),nU.registerSeriesType("areaspline",hl);var hd={borderRadius:3,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"},hc=(y=function(t,e){return(y=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}y(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),hp=t4.parse,hu=ta.noop,hf=tI.clamp,hg=tI.crisp,hv=tI.defined,hm=tI.extend,hy=tI.fireEvent,hx=tI.isArray,hb=tI.isNumber,hM=tI.merge,hk=tI.pick,hw=tI.objectEach,hS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return hc(e,t),e.prototype.animate=function(t){var e,i,o=this,r=this.yAxis,n=r.pos,s=r.reversed,a=o.options,h=this.chart,l=h.clipOffset,d=h.inverted,c={},p=d?"translateX":"translateY";t&&l?(c.scaleY=.001,i=hf(r.toPixels(a.threshold||0),n,n+r.len),d?(i+=s?-Math.floor(l[0]):Math.ceil(l[2]),c.translateX=i-r.len):(i+=s?Math.ceil(l[0]):-Math.floor(l[2]),c.translateY=i),o.clipBox&&o.setClip(),o.group.attr(c)):(e=Number(o.group.attr(p)),o.group.animate({scaleY:1},hm(ec(o.options.animation),{step:function(t,i){o.group&&(c[p]=e+i.pos*(n-e),o.group.attr(c))}})))},e.prototype.init=function(e,i){t.prototype.init.apply(this,arguments);var o=this;(e=o.chart).hasRendered&&e.series.forEach(function(t){t.type===o.type&&(t.isDirty=!0)})},e.prototype.getColumnMetrics=function(){var t,e,i,o=this,r=o.options,n=o.xAxis,s=o.yAxis,a=n.options.reversedStacks,h=n.reversed&&!a||!n.reversed&&a,l={},d=0;!1===r.grouping?d=1:o.chart.series.forEach(function(t){var e,r=t.yAxis,n=t.options;t.type===o.type&&t.reserveSpace()&&s.len===r.len&&s.pos===r.pos&&(n.stacking&&"group"!==n.stacking?(void 0===l[i=t.stackKey]&&(l[i]=d++),e=l[i]):!1!==n.grouping&&(e=d++),t.columnIndex=e)});var c=Math.min(Math.abs(n.transA)*(!(null===(t=n.brokenAxis)||void 0===t?void 0:t.hasBreaks)&&(null===(e=n.ordinal)||void 0===e?void 0:e.slope)||r.pointRange||n.closestPointRange||n.tickInterval||1),n.len),p=c*r.groupPadding,u=(c-2*p)/(d||1),f=Math.min(r.maxPointWidth||n.len,hk(r.pointWidth,u*(1-2*r.pointPadding))),g=(o.columnIndex||0)+(h?1:0);return o.columnMetrics={width:f,offset:(u-f)/2+(p+g*u-c/2)*(h?-1:1),paddedWidth:u,columnCount:d},o.columnMetrics},e.prototype.crispCol=function(t,e,i,o){var r=this.borderWidth,n=this.chart.inverted;return o=hg(e+o,r,n)-(e=hg(e,r,n)),this.options.crisp&&(i=hg(t+i,r)-(t=hg(t,r))),{x:t,y:e,width:i,height:o}},e.prototype.adjustForMissingColumns=function(t,e,i,o){var r,n=this;if(!i.isNull&&o.columnCount>1){var s=this.xAxis.series.filter(function(t){return t.visible}).map(function(t){return t.index}),a=0,h=0;hw(null===(r=this.xAxis.stacking)||void 0===r?void 0:r.stacks,function(t){var e,o="number"==typeof i.x?null===(e=t[i.x.toString()])||void 0===e?void 0:e.points:void 0,r=null==o?void 0:o[n.index],l={};if(o&&hx(r)){var d=n.index,c=Object.keys(o).filter(function(t){return!t.match(",")&&o[t]&&o[t].length>1}).map(parseFloat).filter(function(t){return -1!==s.indexOf(t)}).filter(function(t){var e=n.chart.series[t].options,i=e.stacking&&e.stack;if(hv(i)){if(hb(l[i]))return d===t&&(d=l[i]),!1;l[i]=t}return!0}).sort(function(t,e){return e-t});a=c.indexOf(d),h=c.length}}),a=this.xAxis.reversed?h-1-a:a;var l=(h-1)*o.paddedWidth+e;t=(i.plotX||0)+l/2-e-a*o.paddedWidth}return t},e.prototype.translate=function(){var t=this,e=t.chart,i=t.options,o=t.dense=t.closestPointRange*t.xAxis.transA<2,r=t.borderWidth=hk(i.borderWidth,o?0:1),n=t.xAxis,s=t.yAxis,a=i.threshold,h=hk(i.minPointLength,5),l=t.getColumnMetrics(),d=l.width,c=t.pointXOffset=l.offset,p=t.dataMin,u=t.dataMax,f=t.translatedThreshold=s.getThreshold(a),g=t.barW=Math.max(d,1+2*r);i.pointPadding&&i.crisp&&(g=Math.ceil(g)),su.prototype.translate.apply(t),t.points.forEach(function(o){var r,v=hk(o.yBottom,f),m=999+Math.abs(v),y=o.plotX||0,x=hf(o.plotY,-m,s.len+m),b=Math.min(x,v),M=Math.max(x,v)-b,k=d,w=y+c,S=g;h&&Math.abs(M)<h&&(M=h,r=!s.reversed&&!o.negative||s.reversed&&o.negative,hb(a)&&hb(u)&&o.y===a&&u<=a&&(s.min||0)<a&&(p!==u||(s.max||0)<=a)&&(r=!r,o.negative=!o.negative),b=Math.abs(b-f)>h?v-h:f-(r?h:0)),hv(o.options.pointWidth)&&(w-=Math.round(((k=S=Math.ceil(o.options.pointWidth))-d)/2)),i.centerInCategory&&(w=t.adjustForMissingColumns(w,k,o,l)),o.barX=w,o.pointWidth=k,o.tooltipPos=e.inverted?[hf(s.len+s.pos-e.plotLeft-x,s.pos-e.plotLeft,s.len+s.pos-e.plotLeft),n.len+n.pos-e.plotTop-w-S/2,M]:[n.left-e.plotLeft+w+S/2,hf(x+s.pos-e.plotTop,s.pos-e.plotTop,s.len+s.pos-e.plotTop),M],o.shapeType=t.pointClass.prototype.shapeType||"roundedRect",o.shapeArgs=t.crispCol(w,o.isNull?f:b,S,o.isNull?0:M)}),hy(this,"afterColumnTranslate")},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(t,e){var i,o,r,n=this.options,s=this.pointAttrToOptions||{},a=s.stroke||"borderColor",h=s["stroke-width"]||"borderWidth",l=t&&t.color||this.color,d=t&&t[a]||n[a]||l,c=t&&t.options.dashStyle||n.dashStyle,p=t&&t[h]||n[h]||this[h]||0,u=hk(t&&t.opacity,n.opacity,1);t&&this.zones.length&&(o=t.getZone(),l=t.options.color||o&&(o.color||t.nonZonedColor)||this.color,o&&(d=o.borderColor||d,c=o.dashStyle||c,p=o.borderWidth||p)),e&&t&&(r=(i=hM(n.states[e],t.options.states&&t.options.states[e]||{})).brightness,l=i.color||void 0!==r&&hp(l).brighten(i.brightness).get()||l,d=i[a]||d,p=i[h]||p,c=i.dashStyle||c,u=hk(i.opacity,u));var f={fill:l,stroke:d,"stroke-width":p,opacity:u};return c&&(f.dashstyle=c),f},e.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var e,i=this,o=this.chart,r=i.options,n=o.renderer,s=r.animationLimit||250;t.forEach(function(t){var a=t.plotY,h=t.graphic,l=!!h,d=h&&o.pointCount<s?"animate":"attr";hb(a)&&null!==t.y?(e=t.shapeArgs,h&&t.hasNewShapeType()&&(h=h.destroy()),i.enabledDataSorting&&(t.startXPos=i.xAxis.reversed?-(e&&e.width||0):i.xAxis.width),!h&&(t.graphic=h=n[t.shapeType](e).add(t.group||i.group),h&&i.enabledDataSorting&&o.hasRendered&&o.pointCount<s&&(h.attr({x:t.startXPos}),l=!0,d="animate")),h&&l&&h[d](hM(e)),o.styledMode||h[d](i.pointAttribs(t,t.selected&&"select")).shadow(!1!==t.allowShadow&&r.shadow),h&&(h.addClass(t.getClassName(),!0),h.attr({visibility:t.visible?"inherit":"hidden"}))):h&&(t.graphic=h.destroy())})},e.prototype.drawTracker=function(t){void 0===t&&(t=this.points);var e,i=this,o=i.chart,r=o.pointer,n=function(t){null==r||r.normalize(t);var e=null==r?void 0:r.getPointFromEvent(t),n=!o.scrollablePlotArea||o.isInsidePlot(t.chartX-o.plotLeft,t.chartY-o.plotTop,{visiblePlotOnly:!0});r&&e&&i.options.enableMouseTracking&&n&&(r.isDirectTouch=!0,e.onMouseOver(t))};t.forEach(function(t){e=hx(t.dataLabels)?t.dataLabels:t.dataLabel?[t.dataLabel]:[],t.graphic&&(t.graphic.element.point=t),e.forEach(function(e){(e.div||e.element).point=t})}),i._hasTracking||(i.trackerGroups.forEach(function(t){i[t]&&(i[t].addClass("highcharts-tracker").on("mouseover",n).on("mouseout",function(t){null==r||r.onTrackerMouseOut(t)}).on("touchstart",n),!o.styledMode&&i.options.cursor&&i[t].css({cursor:i.options.cursor}))}),i._hasTracking=!0),hy(this,"afterDrawTracker")},e.prototype.remove=function(){var t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(e){e.type===t.type&&(e.isDirty=!0)}),su.prototype.remove.apply(t,arguments)},e.defaultOptions=hM(su.defaultOptions,hd),e}(su);hm(hS.prototype,{directTouch:!0,getSymbol:hu,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),nU.registerSeriesType("column",hS);var hA=eY.format,hT=tI.defined,hP=tI.extend,hO=tI.fireEvent,hC=tI.getAlignFactor,hE=tI.isArray,hL=tI.isString,hB=tI.merge,hI=tI.objectEach,hD=tI.pick,hz=tI.pInt,hR=tI.splat;!function(t){function e(){return h(this).some(function(t){return null==t?void 0:t.enabled})}function i(t,e,i,o,r){var n,s=this.chart,a=this.enabledDataSorting,h=this.isCartesian&&s.inverted,l=t.plotX,d=t.plotY,c=i.rotation||0,p=hT(l)&&hT(d)&&s.isInsidePlot(l,Math.round(d),{inverted:h,paneCoordinates:!0,series:this}),u=0===c&&"justify"===hD(i.overflow,a?"none":"justify"),f=this.visible&&!1!==t.visible&&hT(l)&&(t.series.forceDL||a&&!u||p||hD(i.inside,!!this.options.stacking)&&o&&s.isInsidePlot(l,h?o.x+1:o.y+o.height-1,{inverted:h,paneCoordinates:!0,series:this})),g=t.pos();if(f&&g){var v,m=e.getBBox(),y=e.getBBox(void 0,0);if(o=hP({x:g[0],y:Math.round(g[1]),width:0,height:0},o||{}),"plotEdges"===i.alignTo&&this.isCartesian&&(o[h?"x":"y"]=0,o[h?"width":"height"]=(null===(n=this.yAxis)||void 0===n?void 0:n.len)||0),hP(i,{width:m.width,height:m.height}),v=o,a&&this.xAxis&&!u&&this.setDataLabelStartPos(t,e,r,p,v),e.align(hB(i,{width:y.width,height:y.height}),!1,o,!1),e.alignAttr.x+=hC(i.align)*(y.width-m.width),e.alignAttr.y+=hC(i.verticalAlign)*(y.height-m.height),e[e.placed?"animate":"attr"]({"text-align":e.alignAttr["text-align"]||"center",x:e.alignAttr.x+(m.width-y.width)/2,y:e.alignAttr.y+(m.height-y.height)/2,rotationOriginX:(e.width||0)/2,rotationOriginY:(e.height||0)/2}),u&&o.height>=0)this.justifyDataLabel(e,i,e.alignAttr,m,o,r);else if(hD(i.crop,!0)){var x=e.alignAttr,b=x.x,M=x.y;f=s.isInsidePlot(b,M,{paneCoordinates:!0,series:this})&&s.isInsidePlot(b+m.width-1,M+m.height-1,{paneCoordinates:!0,series:this})}i.shape&&!c&&e[r?"attr":"animate"]({anchorX:g[0],anchorY:g[1]})}r&&a&&(e.placed=!1),f||a&&!u?(e.show(),e.placed=!0):(e.hide(),e.placed=!1)}function o(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function r(t){var e=this.hasRendered||0,i=this.initDataLabelsGroup().attr({opacity:+e});return!e&&i&&(this.visible&&i.show(),this.options.animation?i.animate({opacity:1},t):i.attr({opacity:1})),i}function n(t){t=t||this.points;var e,i,o=this,r=o.chart,n=o.options,s=r.renderer,l=r.options.chart,d=l.backgroundColor,c=l.plotBackgroundColor,p=s.getContrast(hL(c)&&c||hL(d)&&d||"#000000"),u=h(o),f=u[0],g=f.animation,v=f.defer?ef(r,g,o):{defer:0,duration:0};hO(this,"drawDataLabels"),(null===(e=o.hasDataLabels)||void 0===e?void 0:e.call(o))&&(i=this.initDataLabels(v),t.forEach(function(t){var e,h,l=t.dataLabels||[];hR(a(u,t.dlOptions||(null===(e=t.options)||void 0===e?void 0:e.dataLabels))).forEach(function(e,a){var h,d,c,u,f=e.enabled&&(t.visible||t.dataLabelOnHidden)&&(!t.isNull||t.dataLabelOnNull)&&function(t,e){var i=e.filter;if(i){var o=i.operator,r=t[i.property],n=i.value;return">"===o&&r>n||"<"===o&&r<n||">="===o&&r>=n||"<="===o&&r<=n||"=="===o&&r==n||"==="===o&&r===n||"!="===o&&r!=n||"!=="===o&&r!==n}return!0}(t,e),g=e.backgroundColor,v=e.borderColor,m=e.distance,y=e.style,x=void 0===y?{}:y,b={},M=l[a],k=!M;f&&(d=hT(h=hD(e[t.formatPrefix+"Format"],e.format))?hA(h,t,r):(e[t.formatPrefix+"Formatter"]||e.formatter).call(t,e),c=e.rotation,!r.styledMode&&(x.color=hD(e.color,x.color,hL(o.color)?o.color:void 0,"#000000"),"contrast"===x.color?("none"!==g&&(u=g),t.contrastColor=s.getContrast("auto"!==u&&u||t.color||o.color),x.color=u||!hT(m)&&e.inside||0>hz(m||0)||n.stacking?t.contrastColor:p):delete t.contrastColor,n.cursor&&(x.cursor=n.cursor)),b={r:e.borderRadius||0,rotation:c,padding:e.padding,zIndex:1},r.styledMode||(b.fill="auto"===g?t.color:g,b.stroke="auto"===v?t.color:v,b["stroke-width"]=e.borderWidth),hI(b,function(t,e){void 0===t&&delete b[e]})),!M||f&&hT(d)&&!!M.div==!!e.useHTML&&(M.rotation&&e.rotation||M.rotation===e.rotation)||(M=void 0,k=!0),f&&hT(d)&&(M?b.text=d:(M=s.label(d,0,0,e.shape,void 0,void 0,e.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+t.colorIndex+" "+(e.className||"")+(e.useHTML?" highcharts-tracker":"")),M&&(M.options=e,M.attr(b),r.styledMode?x.width&&M.css({width:x.width,textOverflow:x.textOverflow,whiteSpace:x.whiteSpace}):M.css(x).shadow(e.shadow),hO(M,"beforeAddingDataLabel",{labelOptions:e,point:t}),M.added||M.add(i),o.alignDataLabel(t,M,e,void 0,k),M.isActive=!0,l[a]&&l[a]!==M&&l[a].destroy(),l[a]=M))});for(var d=l.length;d--;)l[d]&&l[d].isActive?l[d].isActive=!1:(null===(h=l[d])||void 0===h||h.destroy(),l.splice(d,1));t.dataLabel=l[0],t.dataLabels=l})),hO(this,"afterDrawDataLabels")}function s(t,e,i,o,r,n){var s,a,h=this.chart,l=e.align,d=e.verticalAlign,c=t.box?0:t.padding||0,p=h.inverted?this.yAxis:this.xAxis,u=p?p.left-h.plotLeft:0,f=h.inverted?this.xAxis:this.yAxis,g=f?f.top-h.plotTop:0,v=e.x,m=void 0===v?0:v,y=e.y,x=void 0===y?0:y;return(s=(i.x||0)+c+u)<0&&("right"===l&&m>=0?(e.align="left",e.inside=!0):m-=s,a=!0),(s=(i.x||0)+o.width-c+u)>h.plotWidth&&("left"===l&&m<=0?(e.align="right",e.inside=!0):m+=h.plotWidth-s,a=!0),(s=i.y+c+g)<0&&("bottom"===d&&x>=0?(e.verticalAlign="top",e.inside=!0):x-=s,a=!0),(s=(i.y||0)+o.height-c+g)>h.plotHeight&&("top"===d&&x<=0?(e.verticalAlign="bottom",e.inside=!0):x+=h.plotHeight-s,a=!0),a&&(e.x=m,e.y=x,t.placed=!n,t.align(e,void 0,r)),a}function a(t,e){var i,o=[];if(hE(t)&&!hE(e))o=t.map(function(t){return hB(t,e)});else if(hE(e)&&!hE(t))o=e.map(function(e){return hB(t,e)});else if(hE(t)||hE(e)){if(hE(t)&&hE(e))for(i=Math.max(t.length,e.length);i--;)o[i]=hB(t[i],e[i])}else o=hB(t,e);return o}function h(t){var e,i,o=t.chart.options.plotOptions;return hR(a(a(null===(e=null==o?void 0:o.series)||void 0===e?void 0:e.dataLabels,null===(i=null==o?void 0:o[t.type])||void 0===i?void 0:i.dataLabels),t.options.dataLabels))}function l(t,e,i,o,r){var n=this.chart,s=n.inverted,a=this.xAxis,h=a.reversed,l=((s?e.height:e.width)||0)/2,d=t.pointWidth,c=d?d/2:0;e.startXPos=s?r.x:h?-l-c:a.width-l+c,e.startYPos=s?h?this.yAxis.height-l+c:-l-c:r.y,o?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),n.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}t.compose=function(t){var a=t.prototype;a.initDataLabels||(a.initDataLabels=r,a.initDataLabelsGroup=o,a.alignDataLabel=i,a.drawDataLabels=n,a.justifyDataLabel=s,a.setDataLabelStartPos=l,a.hasDataLabels=e)}}(_||(_={}));var hN=_,hW=ta.composed,hG=nU.series,hX=tI.merge,hH=tI.pick,hF=tI.pushUnique;!function(t){function e(t,e,i,o,r){var n=this.chart.inverted,s=t.series,a=(s.xAxis?s.xAxis.len:this.chart.plotSizeX)||0,h=(s.yAxis?s.yAxis.len:this.chart.plotSizeY)||0,l=t.dlBox||t.shapeArgs,d=hH(t.below,t.plotY>hH(this.translatedThreshold,h)),c=hH(i.inside,!!this.options.stacking);if(l){if(o=hX(l),!("allow"===i.overflow&&!1===i.crop)){o.y<0&&(o.height+=o.y,o.y=0);var p=o.y+o.height-h;p>0&&p<o.height-1&&(o.height-=p)}n&&(o={x:h-o.y-o.height,y:a-o.x-o.width,width:o.height,height:o.width}),c||(n?(o.x+=d?0:o.width,o.width=0):(o.y+=d?o.height:0,o.height=0))}i.align=hH(i.align,!n||c?"center":d?"right":"left"),i.verticalAlign=hH(i.verticalAlign,n||c?"middle":d?"top":"bottom"),hG.prototype.alignDataLabel.call(this,t,e,i,o,r),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})}t.compose=function(t){hN.compose(hG),hF(hW,"ColumnDataLabel")&&(t.prototype.alignDataLabel=e)}}(U||(U={}));var hY=U,hj=(x=function(t,e){return(x=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}x(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),h_=tI.extend,hU=tI.merge,hV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return hj(e,t),e.defaultOptions=hU(hS.defaultOptions,{}),e}(hS);h_(hV.prototype,{inverted:!0}),nU.registerSeriesType("bar",hV);var hq={lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}},hZ=(b=function(t,e){return(b=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}b(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),hK=nU.seriesTypes,h$=hK.column,hJ=hK.line,hQ=tI.addEvent,h0=tI.extend,h1=tI.merge,h2=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return hZ(e,t),e.prototype.applyJitter=function(){var t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach(function(o,r){["x","y"].forEach(function(n,s){if(e[n]&&!o.isNull){var a="plot".concat(n.toUpperCase()),h=t[""+n+"Axis"],l=e[n]*h.transA;if(h&&!h.logarithmic){var d,c=Math.max(0,(o[a]||0)-l),p=Math.min(h.len,(o[a]||0)+l);o[a]=c+(p-c)*((d=1e4*Math.sin(r+s*i))-Math.floor(d)),"x"===n&&(o.clientX=o.plotX)}}})})},e.prototype.drawGraph=function(){this.options.lineWidth?t.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},e.defaultOptions=h1(hJ.defaultOptions,hq),e}(hJ);h0(h2.prototype,{drawTracker:h$.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),hQ(h2,"afterTranslate",function(){this.applyJitter()}),nU.registerSeriesType("scatter",h2);var h3=ta.deg2rad,h5=tI.fireEvent,h6=tI.isNumber,h9=tI.pick,h4=tI.relativeLength;(M=V||(V={})).getCenter=function(){var t,e,i,o=this.options,r=this.chart,n=2*(o.slicedOffset||0),s=r.plotWidth-2*n,a=r.plotHeight-2*n,h=o.center,l=Math.min(s,a),d=o.thickness,c=o.size,p=o.innerSize||0;"string"==typeof c&&(c=parseFloat(c)),"string"==typeof p&&(p=parseFloat(p));var u=[h9(null==h?void 0:h[0],"50%"),h9(null==h?void 0:h[1],"50%"),h9(c&&c<0?void 0:o.size,"100%"),h9(p&&p<0?void 0:o.innerSize||0,"0%")];for(!r.angular||this instanceof su||(u[3]=0),e=0;e<4;++e)i=u[e],t=e<2||2===e&&/%$/.test(i),u[e]=h4(i,[s,a,l,u[2]][e])+(t?n:0);return u[3]>u[2]&&(u[3]=u[2]),h6(d)&&2*d<u[2]&&d>0&&(u[3]=u[2]-2*d),h5(this,"afterGetCenter",{positions:u}),u},M.getStartAndEndRadians=function(t,e){var i=h6(t)?t:0,o=h6(e)&&e>i&&e-i<360?e:i+360;return{start:h3*(i+-90),end:h3*(o+-90)}};var h8=V,h7=(k=function(t,e){return(k=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}k(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),lt=function(){return(lt=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},le=tI.addEvent,li=tI.defined,lo=tI.extend,lr=tI.isNumber,ln=tI.pick,ls=tI.relativeLength,la=function(t){function e(e,i,o){var r,n=t.call(this,e,i,o)||this;n.half=0,null!==(r=n.name)&&void 0!==r||(n.name="Slice");var s=function(t){n.slice("select"===t.type)};return le(n,"select",s),le(n,"unselect",s),n}return h7(e,t),e.prototype.getConnectorPath=function(t){var e=t.dataLabelPosition,i=t.options||{},o=i.connectorShape,r=this.connectorShapes[o]||o;return e&&r.call(this,lt(lt({},e.computed),{alignment:e.alignment}),e.connectorPosition,i)||[]},e.prototype.getTranslate=function(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}},e.prototype.haloPath=function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end,borderRadius:e.borderRadius})},e.prototype.isValid=function(){return lr(this.y)&&this.y>=0},e.prototype.setVisible=function(t,e){void 0===e&&(e=!0),t!==this.visible&&this.update({visible:null!=t?t:!this.visible},e,void 0,!1)},e.prototype.slice=function(t,e,i){var o=this.series;eg(i,o.chart),e=ln(e,!0),this.sliced=this.options.sliced=t=li(t)?t:!this.sliced,o.options.data[o.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())},e}(nd);lo(la.prototype,{connectorShapes:{fixedOffset:function(t,e,i){var o=e.breakAt,r=e.touchingSliceAt,n=i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*o.x-r.x,2*o.y-r.y,o.x,o.y]:["L",o.x,o.y];return[["M",t.x,t.y],n,["L",r.x,r.y]]},straight:function(t,e){var i=e.touchingSliceAt;return[["M",t.x,t.y],["L",i.x,i.y]]},crookedLine:function(t,e,i){var o=e.angle,r=void 0===o?this.angle||0:o,n=e.breakAt,s=e.touchingSliceAt,a=this.series,h=a.center,l=h[0],d=h[1],c=h[2]/2,p=a.chart,u=p.plotLeft,f=p.plotWidth,g="left"===t.alignment,v=t.x,m=t.y,y=n.x;if(i.crookDistance){var x=ls(i.crookDistance,1);y=g?l+c+(f+u-l-c)*(1-x):u+(l-c)*x}else y=l+(d-m)*Math.tan(r-Math.PI/2);var b=[["M",v,m]];return(g?y<=v&&y>=n.x:y>=v&&y<=n.x)&&b.push(["L",y,m]),b.push(["L",n.x,n.y],["L",s.x,s.y]),b}}});var lh={borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.isNull?void 0:this.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}},ll=(w=function(t,e){return(w=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}w(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),ld=h8.getStartAndEndRadians,lc=ta.noop,lp=tI.clamp,lu=tI.extend,lf=tI.fireEvent,lg=tI.merge,lv=tI.pick,lm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ll(e,t),e.prototype.animate=function(t){var e=this,i=e.points,o=e.startAngleRad;t||i.forEach(function(t){var i=t.graphic,r=t.shapeArgs;i&&r&&(i.attr({r:lv(t.startR,e.center&&e.center[3]/2),start:o,end:o}),i.animate({r:r.r,start:r.start,end:r.end},e.options.animation))})},e.prototype.drawEmpty=function(){var t,e,i=this.startAngleRad,o=this.endAngleRad,r=this.options;0===this.total&&this.center?(t=this.center[0],e=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(t,e,this.center[1]/2,0,i,o).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:iI.arc(t,e,this.center[2]/2,0,{start:i,end:o,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":r.borderWidth,fill:r.fillColor||"none",stroke:r.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())},e.prototype.drawPoints=function(){var t=this.chart.renderer;this.points.forEach(function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)})},e.prototype.generatePoints=function(){t.prototype.generatePoints.call(this),this.updateTotals()},e.prototype.getX=function(t,e,i,o){var r=this.center,n=this.radii?this.radii[i.index]||0:r[2]/2,s=o.dataLabelPosition,a=(null==s?void 0:s.distance)||0,h=Math.asin(lp((t-r[1])/(n+a),-1,1));return r[0]+Math.cos(h)*(n+a)*(e?-1:1)+(a>0?(e?-1:1)*(o.padding||0):0)},e.prototype.hasData=function(){return!!this.dataTable.rowCount},e.prototype.redrawPoints=function(){var t,e,i,o,r=this,n=r.chart;this.drawEmpty(),r.group&&!n.styledMode&&r.group.shadow(r.options.shadow),r.points.forEach(function(s){var a={};e=s.graphic,!s.isNull&&e?(o=s.shapeArgs,t=s.getTranslate(),n.styledMode||(i=r.pointAttribs(s,s.selected&&"select")),s.delayedRendering?(e.setRadialReference(r.center).attr(o).attr(t),n.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}),s.delayedRendering=!1):(e.setRadialReference(r.center),n.styledMode||lg(!0,a,i),lg(!0,a,o,t),e.animate(a)),e.attr({visibility:s.visible?"inherit":"hidden"}),e.addClass(s.getClassName(),!0)):e&&(s.graphic=e.destroy())})},e.prototype.sortByAngle=function(t,e){t.sort(function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e})},e.prototype.translate=function(t){lf(this,"translate"),this.generatePoints();var e,i,o,r,n,s,a,h=this.options,l=h.slicedOffset,d=ld(h.startAngle,h.endAngle),c=this.startAngleRad=d.start,p=(this.endAngleRad=d.end)-c,u=this.points,f=h.ignoreHiddenPoint,g=u.length,v=0;for(t||(this.center=t=this.getCenter()),s=0;s<g;s++){a=u[s],e=c+v*p,a.isValid()&&(!f||a.visible)&&(v+=a.percentage/100),i=c+v*p;var m={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*e)/1e3,end:Math.round(1e3*i)/1e3};a.shapeType="arc",a.shapeArgs=m,(o=(i+e)/2)>1.5*Math.PI?o-=2*Math.PI:o<-Math.PI/2&&(o+=2*Math.PI),a.slicedTranslation={translateX:Math.round(Math.cos(o)*l),translateY:Math.round(Math.sin(o)*l)},r=Math.cos(o)*t[2]/2,n=Math.sin(o)*t[2]/2,a.tooltipPos=[t[0]+.7*r,t[1]+.7*n],a.half=o<-Math.PI/2||o>Math.PI/2?1:0,a.angle=o}lf(this,"afterTranslate")},e.prototype.updateTotals=function(){var t,e,i=this.points,o=i.length,r=this.options.ignoreHiddenPoint,n=0;for(t=0;t<o;t++)(e=i[t]).isValid()&&(!r||e.visible)&&(n+=e.y);for(t=0,this.total=n;t<o;t++)(e=i[t]).percentage=n>0&&(e.visible||!r)?e.y/n*100:0,e.total=n},e.defaultOptions=lg(su.defaultOptions,lh),e}(su);lu(lm.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:hS.prototype.drawTracker,getCenter:h8.getCenter,getSymbol:lc,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:hS.prototype.pointAttribs,pointClass:la,requireSorting:!1,searchPoint:lc,trackerGroups:["group","dataLabelsGroup"]}),nU.registerSeriesType("pie",lm);var ly=ta.composed,lx=ta.noop,lb=eZ.distribute,lM=nU.series,lk=tI.arrayMax,lw=tI.clamp,lS=tI.defined,lA=tI.pick,lT=tI.pushUnique,lP=tI.relativeLength;!function(t){var e={radialDistributionY:function(t,e){var i;return((null===(i=e.dataLabelPosition)||void 0===i?void 0:i.top)||0)+t.distributeBox.pos},radialDistributionX:function(t,e,i,o,r){var n=r.dataLabelPosition;return t.getX(i<((null==n?void 0:n.top)||0)+2||i>((null==n?void 0:n.bottom)||0)-2?o:i,e.half,e,r)},justify:function(t,e,i,o){var r;return o[0]+(t.half?-1:1)*(i+((null===(r=e.dataLabelPosition)||void 0===r?void 0:r.distance)||0))},alignToPlotEdges:function(t,e,i,o){var r=t.getBBox().width;return e?r+o:i-r-o},alignToConnectors:function(t,e,i,o){var r,n=0;return t.forEach(function(t){(r=t.dataLabel.getBBox().width)>n&&(n=r)}),e?n+o:i-n-o}};function i(t,e){var i=Math.PI/2,o=t.shapeArgs||{},r=o.start,n=void 0===r?0:r,s=o.end,a=void 0===s?0:s,h=t.angle||0;e>0&&n<i&&a>i&&h>i/2&&h<1.5*i&&(h=h<=i?Math.max(i/2,(n+i)/2):Math.min(1.5*i,(i+a)/2));var l=this.center,d=this.options,c=l[2]/2,p=Math.cos(h),u=Math.sin(h),f=l[0]+p*c,g=l[1]+u*c,v=Math.min((d.slicedOffset||0)+(d.borderWidth||0),e/5);return{natural:{x:f+p*e,y:g+u*e},computed:{},alignment:e<0?"center":t.half?"right":"left",connectorPosition:{angle:h,breakAt:{x:f+p*v,y:g+u*v},touchingSliceAt:{x:f,y:g}},distance:e}}function o(){var t,e,i,o,r=this,n=this,s=n.points,a=n.chart,h=a.plotWidth,l=a.plotHeight,d=a.plotLeft,c=Math.round(a.chartWidth/3),p=n.center,u=p[2]/2,f=p[1],g=[[],[]],v=[0,0,0,0],m=n.dataLabelPositioners,y=0;n.visible&&(null===(t=n.hasDataLabels)||void 0===t?void 0:t.call(n))&&(s.forEach(function(t){(t.dataLabels||[]).forEach(function(t){t.shortened&&(t.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.shortened=!1)})}),lM.prototype.drawDataLabels.apply(n),s.forEach(function(t){(t.dataLabels||[]).forEach(function(e,i){var o,n=p[2]/2,s=e.options,a=lP((null==s?void 0:s.distance)||0,n);0===i&&g[t.half].push(t),!lS(null===(o=null==s?void 0:s.style)||void 0===o?void 0:o.width)&&e.getBBox().width>c&&(e.css({width:Math.round(.7*c)+"px"}),e.shortened=!0),e.dataLabelPosition=r.getDataLabelPosition(t,a),y=Math.max(y,a)})}),g.forEach(function(t,e){var r,s,c,g=t.length,x=[],b=0;g&&(n.sortByAngle(t,e-.5),y>0&&(r=Math.max(0,f-u-y),s=Math.min(f+u+y,a.plotHeight),t.forEach(function(t){(t.dataLabels||[]).forEach(function(e){var i,o=e.dataLabelPosition;o&&o.distance>0&&(o.top=Math.max(0,f-u-o.distance),o.bottom=Math.min(f+u+o.distance,a.plotHeight),b=e.getBBox().height||21,e.lineHeight=a.renderer.fontMetrics(e.text||e).h+2*e.padding,t.distributeBox={target:((null===(i=e.dataLabelPosition)||void 0===i?void 0:i.natural.y)||0)-o.top+e.lineHeight/2,size:b,rank:t.y},x.push(t.distributeBox))})}),lb(x,c=s+b-r,c/5)),t.forEach(function(r){(r.dataLabels||[]).forEach(function(s){var a=s.options||{},c=r.distributeBox,f=s.dataLabelPosition,g=(null==f?void 0:f.natural.y)||0,y=a.connectorPadding||0,b=s.lineHeight||21,M=(b-s.getBBox().height)/2,k=0,w=g,S="inherit";if(f){if(x&&lS(c)&&f.distance>0&&(void 0===c.pos?S="hidden":(o=c.size,w=m.radialDistributionY(r,s))),a.justify)k=m.justify(r,s,u,p);else switch(a.alignTo){case"connectors":k=m.alignToConnectors(t,e,h,d);break;case"plotEdges":k=m.alignToPlotEdges(s,e,h,d);break;default:k=m.radialDistributionX(n,r,w-M,g,s)}if(f.attribs={visibility:S,align:f.alignment},f.posAttribs={x:k+(a.x||0)+(({left:y,right:-y})[f.alignment]||0),y:w+(a.y||0)-b/2},f.computed.x=k,f.computed.y=w-M,lA(a.crop,!0)){i=s.getBBox().width;var A=void 0;k-i<y&&1===e?(A=Math.round(i-k+y),v[3]=Math.max(A,v[3])):k+i>h-y&&0===e&&(A=Math.round(k+i-h+y),v[1]=Math.max(A,v[1])),w-o/2<0?v[0]=Math.max(Math.round(-w+o/2),v[0]):w+o/2>l&&(v[2]=Math.max(Math.round(w+o/2-l),v[2])),f.sideOverflow=A}}})}))}),(0===lk(v)||this.verifyDataLabelOverflow(v))&&(this.placeDataLabels(),this.points.forEach(function(t){(t.dataLabels||[]).forEach(function(i){var o,r=i.options||{},s=r.connectorColor,h=r.connectorWidth,l=void 0===h?1:h,d=i.dataLabelPosition;if(l){var c=void 0;e=i.connector,d&&d.distance>0?(c=!e,e||(i.connector=e=a.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(n.dataLabelsGroup)),a.styledMode||e.attr({"stroke-width":l,stroke:s||t.color||"#666666"}),e[c?"attr":"animate"]({d:t.getConnectorPath(i)}),e.attr({visibility:null===(o=d.attribs)||void 0===o?void 0:o.visibility})):e&&(i.connector=e.destroy())}})})))}function r(){this.points.forEach(function(t){(t.dataLabels||[]).forEach(function(t){var e,i=t.dataLabelPosition;i?(i.sideOverflow&&(t.css({width:Math.max(t.getBBox().width-i.sideOverflow,0)+"px",textOverflow:((null===(e=t.options)||void 0===e?void 0:e.style)||{}).textOverflow||"ellipsis"}),t.shortened=!0),t.attr(i.attribs),t[t.moved?"animate":"attr"](i.posAttribs),t.moved=!0):t&&t.attr({y:-9999})}),delete t.distributeBox},this)}function n(t){var e=this.center,i=this.options,o=i.center,r=i.minSize||80,n=r,s=null!==i.size;return!s&&(null!==o[0]?n=Math.max(e[2]-Math.max(t[1],t[3]),r):(n=Math.max(e[2]-t[1]-t[3],r),e[0]+=(t[3]-t[1])/2),null!==o[1]?n=lw(n,r,e[2]-Math.max(t[0],t[2])):(n=lw(n,r,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),n<e[2]?(e[2]=n,e[3]=Math.min(i.thickness?Math.max(0,n-2*i.thickness):Math.max(0,lP(i.innerSize||0,n)),n),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):s=!0),s}t.compose=function(t){if(hN.compose(lM),lT(ly,"PieDataLabel")){var s=t.prototype;s.dataLabelPositioners=e,s.alignDataLabel=lx,s.drawDataLabels=o,s.getDataLabelPosition=i,s.placeDataLabels=r,s.verifyDataLabelOverflow=n}}}(q||(q={}));var lO=q;(S=Z||(Z={})).getCenterOfPoints=function(t){var e=t.reduce(function(t,e){return t.x+=e.x,t.y+=e.y,t},{x:0,y:0});return{x:e.x/t.length,y:e.y/t.length}},S.getDistanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},S.getAngleBetweenPoints=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)},S.pointInPolygon=function(t,e){var i,o,r=t.x,n=t.y,s=e.length,a=!1;for(i=0,o=s-1;i<s;o=i++){var h=e[i],l=h[0],d=h[1],c=e[o],p=c[0],u=c[1];d>n!=u>n&&r<(p-l)*(n-d)/(u-d)+l&&(a=!a)}return a};var lC=Z.pointInPolygon,lE=tI.addEvent,lL=tI.fireEvent,lB=tI.objectEach,lI=tI.pick;function lD(t){for(var e,i,o,r,n,s=t.length,a=!1,h=0;h<s;h++)(e=t[h])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=function(t){var e,i;if(t&&(!t.alignAttr||t.placed)){var o=t.box?0:t.padding||0,r=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},n=t.getBBox();return t.width=n.width,t.height=n.height,{x:r.x+((null===(e=t.parentGroup)||void 0===e?void 0:e.translateX)||0)+o,y:r.y+((null===(i=t.parentGroup)||void 0===i?void 0:i.translateY)||0)+o,width:(t.width||0)-2*o,height:(t.height||0)-2*o,polygon:null==n?void 0:n.polygon}}}(e));t.sort(function(t,e){return(e.labelrank||0)-(t.labelrank||0)});for(var h=0;h<s;++h)for(var l=null==(r=(i=t[h])&&i.absoluteBox)?void 0:r.polygon,d=h+1;d<s;++d){n=(o=t[d])&&o.absoluteBox;var c=!1;if(r&&n&&i!==o&&0!==i.newOpacity&&0!==o.newOpacity&&"hidden"!==i.visibility&&"hidden"!==o.visibility){var p=n.polygon;if(l&&p&&l!==p?function(t,e){for(var i=0;i<t.length;i++){var o=t[i];if(lC({x:o[0],y:o[1]},e))return!0}return!1}(l,p)&&(c=!0):n.x>=r.x+r.width||n.x+n.width<=r.x||n.y>=r.y+r.height||n.y+n.height<=r.y||(c=!0),c){var u=i.labelrank<o.labelrank?i:o,f=u.text;u.newOpacity=0,(null==f?void 0:f.element.querySelector("textPath"))&&f.hide()}}}for(var g=0;g<t.length;g++)lz(t[g],this)&&(a=!0);a&&lL(this,"afterHideAllOverlappingLabels")}function lz(t,e){var i,o,r=!1;return t&&(o=t.newOpacity,t.oldOpacity!==o&&(t.hasClass("highcharts-data-label")?(t[o?"removeClass":"addClass"]("highcharts-data-label-hidden"),i=function(){e.styledMode||t.css({pointerEvents:o?"auto":"none"})},r=!0,t[t.isOld?"animate":"attr"]({opacity:o},void 0,i),lL(e,"afterHideOverlappingLabel")):t.attr({opacity:o})),t.isOld=!0),r}function lR(){for(var t,e=this,i=[],o=0,r=e.labelCollectors||[];o<r.length;o++){var n=r[o];i=i.concat(n())}for(var s=0,a=e.yAxis||[];s<a.length;s++){var h=a[s];h.stacking&&h.options.stackLabels&&!h.options.stackLabels.allowOverlap&&lB(h.stacking.stacks,function(t){lB(t,function(t){t.label&&i.push(t.label)})})}for(var l=0,d=e.series||[];l<d.length;l++){var c=d[l];if(c.visible&&(null===(t=c.hasDataLabels)||void 0===t?void 0:t.call(c))){var p=function(t){for(var o=function(t){t.visible&&(t.dataLabels||[]).forEach(function(o){var r,n,s=o.options||{};o.labelrank=lI(s.labelrank,t.labelrank,null===(r=t.shapeArgs)||void 0===r?void 0:r.height),(null!==(n=s.allowOverlap)&&void 0!==n?n:Number(s.distance)>0)?(o.oldOpacity=o.opacity,o.newOpacity=1,lz(o,e)):i.push(o)})},r=0;r<t.length;r++)o(t[r])};p(c.nodes||[]),p(c.points)}}this.hideOverlappingLabels(i)}var lN={compose:function(t){var e=t.prototype;e.hideOverlappingLabels||(e.hideOverlappingLabels=lD,lE(t,"render",lR))}},lW=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},lG=ta.noop,lX=tI.addEvent,lH=tI.extend,lF=tI.isObject,lY=tI.merge,lj=tI.relativeLength,l_={radius:0,scope:"stack",where:void 0},lU=lG,lV=lG;function lq(t,e,i,o,r){void 0===r&&(r={});var n=lU(t,e,i,o,r),s=r.innerR,a=void 0===s?0:s,h=r.r,l=void 0===h?i:h,d=r.start,c=r.end;if(r.open||!r.borderRadius)return n;for(var p=(void 0===c?0:c)-(void 0===d?0:d),u=Math.sin(p/2),f=Math.max(Math.min(lj(r.borderRadius||0,l-a),(l-a)/2,l*u/(1+u)),0),g=Math.min(f,p/Math.PI*2*a),v=n.length-1;v--;)!function(t,e,i){var o,r,n,s=t[e],a=t[e+1];if("Z"===a[0]&&(a=t[0]),("M"===s[0]||"L"===s[0])&&"A"===a[0]?(o=s,r=a,n=!0):"A"===s[0]&&("M"===a[0]||"L"===a[0])&&(o=a,r=s),o&&r&&r.params){var h=r[1],l=r[5],d=r.params,c=d.start,p=d.end,u=d.cx,f=d.cy,g=l?h-i:h+i,v=g?Math.asin(i/g):0,m=l?v:-v,y=Math.cos(v)*g;n?(d.start=c+m,o[1]=u+y*Math.cos(c),o[2]=f+y*Math.sin(c),t.splice(e+1,0,["A",i,i,0,0,1,u+h*Math.cos(d.start),f+h*Math.sin(d.start)])):(d.end=p-m,r[6]=u+h*Math.cos(d.end),r[7]=f+h*Math.sin(d.end),t.splice(e+1,0,["A",i,i,0,0,1,u+y*Math.cos(p),f+y*Math.sin(p)])),r[4]=Math.abs(d.end-d.start)<Math.PI?0:1}}(n,v,v>1?g:f);return n}function lZ(){var t,e;if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d()))for(var i=this.options,o=this.yAxis,r="percent"===i.stacking,n=null===(e=null===(t=t0.plotOptions)||void 0===t?void 0:t[this.type])||void 0===e?void 0:e.borderRadius,s=lK(i.borderRadius,lF(n)?n:{}),a=o.options.reversed,h=0,l=this.points;h<l.length;h++){var d=l[h],c=d.shapeArgs;if("roundedRect"===d.shapeType&&c){var p=c.width,u=void 0===p?0:p,f=c.height,g=void 0===f?0:f,v=c.y,m=void 0===v?0:v,y=g;if("stack"===s.scope&&d.stackTotal){var x=o.translate(r?100:d.stackTotal,!1,!0,!1,!0),b=o.translate(i.threshold||0,!1,!0,!1,!0),M=this.crispCol(0,Math.min(x,b),0,Math.abs(x-b));m=M.y,y=M.height}var k=(d.negative?-1:1)*(a?-1:1)==-1,w=s.where;!w&&this.is("waterfall")&&Math.abs((d.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(w="all"),w||(w="end");var S=Math.min(lj(s.radius,u),u/2,"all"===w?g/2:1/0)||0;"end"===w&&(k&&(m-=S),y+=S),lH(c,{brBoxHeight:y,brBoxY:m,r:S})}}}function lK(t,e){return lF(t)||(t={radius:t||0}),lY(l_,e,t)}function l$(){for(var t=lK(this.options.borderRadius),e=0,i=this.points;e<i.length;e++){var o=i[e].shapeArgs;o&&(o.borderRadius=lj(t.radius,(o.r||0)-(o.innerR||0)))}}function lJ(t,e,i,o,r){void 0===r&&(r={});var n=lV(t,e,i,o,r),s=r.r,a=void 0===s?0:s,h=r.brBoxHeight,l=void 0===h?o:h,d=r.brBoxY,c=void 0===d?e:d,p=e-c,u=c+l-(e+o),f=p-a>-.1?0:a,g=u-a>-.1?0:a,v=Math.max(f&&p,0),m=Math.max(g&&u,0),y=[t+f,e],x=[t+i-f,e],b=[t+i,e+f],M=[t+i,e+o-g],k=[t+i-g,e+o],w=[t+g,e+o],S=[t,e+o-g],A=[t,e+f],T=function(t,e){return Math.sqrt(Math.pow(t,2)-Math.pow(e,2))};if(v){var P=T(f,f-v);y[0]-=P,x[0]+=P,b[1]=A[1]=e+f-v}if(o<f-v){var P=T(f,f-v-o);b[0]=M[0]=t+i-f+P,k[0]=Math.min(b[0],k[0]),w[0]=Math.max(M[0],w[0]),S[0]=A[0]=t+f-P,b[1]=A[1]=e+o}if(m){var P=T(g,g-m);k[0]+=P,w[0]-=P,M[1]=S[1]=e+o-g+m}if(o<g-m){var P=T(g,g-m-o);b[0]=M[0]=t+i-g+P,x[0]=Math.min(b[0],x[0]),y[0]=Math.max(M[0],y[0]),S[0]=A[0]=t+g-P,M[1]=S[1]=e}return n.length=0,n.push(lW(["M"],y,!0),lW(["L"],x,!0),lW(["A",f,f,0,0,1],b,!0),lW(["L"],M,!0),lW(["A",g,g,0,0,1],k,!0),lW(["L"],w,!0),lW(["A",g,g,0,0,1],S,!0),lW(["L"],A,!0),lW(["A",f,f,0,0,1],y,!0),["Z"]),n}var lQ=tI.diffObjects,l0=tI.extend,l1=tI.find,l2=tI.merge,l3=tI.pick,l5=tI.uniqueKey;!function(t){function e(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=l3(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=l3(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=l3(i.minWidth,0)&&this.chartHeight>=l3(i.minHeight,0)}).call(this)&&e.push(t._id)}function i(t,e){var i,o=this,r=this.options.responsive,n=this.currentResponsive,s=[];!e&&r&&r.rules&&r.rules.forEach(function(t){void 0===t._id&&(t._id=l5()),o.matchResponsiveRule(t,s)},this);var a=l2.apply(void 0,s.map(function(t){return l1((r||{}).rules||[],function(e){return e._id===t})}).map(function(t){return t&&t.chartOptions}));a.isResponsiveOptions=!0,s=s.toString()||void 0;var h=n&&n.ruleIds;s===h||(n&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(n.undoOptions,t,!0),this.updatingResponsive=!1),s?((i=lQ(a,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:s,mergedOptions:a,undoOptions:i},this.updatingResponsive||this.update(a,t,!0)):this.currentResponsive=void 0)}t.compose=function(t){var o=t.prototype;return o.matchResponsiveRule||l0(o,{matchResponsiveRule:e,setResponsive:i}),t}}(K||(K={}));var l6=K;function l9(t,e,i,o){return[["M",t,e+o/2],["L",t+i,e],["L",t,e+o/2],["L",t+i,e+o]]}function l4(t,e,i,o){return l9(t,e,i/2,o)}function l8(t,e,i,o){return[["M",t+i,e],["L",t,e+o/2],["L",t+i,e+o],["Z"]]}function l7(t,e,i,o){return l8(t,e,i/2,o)}ta.AST=eC,ta.Axis=rl,ta.Chart=ah,ta.Color=t4,ta.DataLabel=hN,ta.DataTableCore=nz,ta.Fx=ei,ta.HTMLElement=oS,ta.Legend=sD,ta.LegendSymbol=nX,ta.OverlappingDataLabels=ta.OverlappingDataLabels||lN,ta.PlotLineOrBand=rD,ta.Point=nd,ta.Pointer=nE,ta.RendererRegistry=ej,ta.Series=su,ta.SeriesRegistry=nU,ta.StackItem=aP,ta.SVGElement=im,ta.SVGRenderer=ol,ta.Templating=eY,ta.Tick=oj,ta.Time=tK,ta.Tooltip=r3,ta.animate=eu,ta.animObject=ec,ta.chart=ah.chart,ta.color=t4.parse,ta.dateFormat=eY.dateFormat,ta.defaultOptions=t0,ta.distribute=eZ.distribute,ta.format=eY.format,ta.getDeferredAnimation=ef,ta.getOptions=function(){return t0},ta.numberFormat=eY.numberFormat,ta.seriesType=nU.seriesType,ta.setAnimation=eg,ta.setOptions=t2,ta.stop=ep,ta.time=t1,ta.timers=ei.timers,({compose:function(t,e,i){var o=t.types.pie;if(!e.symbolCustomAttribs.includes("borderRadius")){var r=i.prototype.symbols;lX(t,"afterColumnTranslate",lZ,{order:9}),lX(o,"afterTranslate",l$),e.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY"),lU=r.arc,lV=r.roundedRect,r.arc=lq,r.roundedRect=lJ}},optionsToObject:lK}).compose(ta.Series,ta.SVGElement,ta.SVGRenderer),hY.compose(ta.Series.types.column),hN.compose(ta.Series),rf.compose(ta.Axis),oS.compose(ta.SVGRenderer),sD.compose(ta.Chart),ry.compose(ta.Axis),lN.compose(ta.Chart),lO.compose(ta.Series.types.pie),rD.compose(ta.Chart,ta.Axis),nE.compose(ta.Chart),l6.compose(ta.Chart),ax.compose(ta.Axis,ta.Chart,ta.Series),aU.compose(ta.Axis,ta.Chart,ta.Series),r3.compose(ta.Pointer),tI.extend(ta,tI);var dt=function(t){var e=t.prototype.symbols;e.arrow=l9,e["arrow-filled"]=l8,e["arrow-filled-half"]=l7,e["arrow-half"]=l4,e["triangle-left"]=l8,e["triangle-left-half"]=l7},de=tI.defined,di=tI.error,dr=tI.merge,dn=tI.objectEach,ds=ta.deg2rad,da=Math.max,dh=Math.min,dl=function(){function t(t,e,i){this.init(t,e,i)}return t.prototype.init=function(t,e,i){this.fromPoint=t,this.toPoint=e,this.options=i,this.chart=t.series.chart,this.pathfinder=this.chart.pathfinder},t.prototype.renderPath=function(t,e){var i=this.chart,o=i.styledMode,r=this.pathfinder,n={},s=this.graphics&&this.graphics.path;r.group||(r.group=i.renderer.g().addClass("highcharts-pathfinder-group").attr({zIndex:-1}).add(i.seriesGroup)),r.group.translate(i.plotLeft,i.plotTop),s&&s.renderer||(s=i.renderer.path().add(r.group),o||s.attr({opacity:0})),s.attr(e),n.d=t,o||(n.opacity=1),s.animate(n),this.graphics=this.graphics||{},this.graphics.path=s},t.prototype.addMarker=function(t,e,i){var o,r,n,s,a,h,l,d,c=this.fromPoint.series.chart,p=c.pathfinder,u=c.renderer,f="start"===t?this.fromPoint:this.toPoint,g=f.getPathfinderAnchorPoint(e);e.enabled&&((d="start"===t?i[1]:i[i.length-2])&&"M"===d[0]||"L"===d[0])&&(l={x:d[1],y:d[2]},r=f.getRadiansToVector(l,g),o=f.getMarkerVector(r,e.radius,g),n=-r/ds,e.width&&e.height?(a=e.width,h=e.height):a=h=2*e.radius,this.graphics=this.graphics||{},s={x:o.x-a/2,y:o.y-h/2,width:a,height:h,rotation:n,rotationOriginX:o.x,rotationOriginY:o.y},this.graphics[t]?this.graphics[t].animate(s):(this.graphics[t]=u.symbol(e.symbol).addClass("highcharts-point-connecting-path-"+t+"-marker highcharts-color-"+this.fromPoint.colorIndex).attr(s).add(p.group),u.styledMode||this.graphics[t].attr({fill:e.color||this.fromPoint.color,stroke:e.lineColor,"stroke-width":e.lineWidth,opacity:0}).animate({opacity:1},f.series.options.animation)))},t.prototype.getPath=function(t){var e=this.pathfinder,i=this.chart,o=e.algorithms[t.type],r=e.chartObstacles;return"function"!=typeof o?(di('"'+t.type+'" is not a Pathfinder algorithm.'),{path:[],obstacles:[]}):(o.requiresObstacles&&!r&&(r=e.chartObstacles=e.getChartObstacles(t),i.options.connectors.algorithmMargin=t.algorithmMargin,e.chartObstacleMetrics=e.getObstacleMetrics(r)),o(this.fromPoint.getPathfinderAnchorPoint(t.startMarker),this.toPoint.getPathfinderAnchorPoint(t.endMarker),dr({chartObstacles:r,lineObstacles:e.lineObstacles||[],obstacleMetrics:e.chartObstacleMetrics,hardBounds:{xMin:0,xMax:i.plotWidth,yMin:0,yMax:i.plotHeight},obstacleOptions:{margin:t.algorithmMargin},startDirectionX:e.getAlgorithmStartDirection(t.startMarker)},t)))},t.prototype.render=function(){var t=this.fromPoint,e=t.series,i=e.chart,o=i.pathfinder,r={},n=dr(i.options.connectors,e.options.connectors,t.options.connectors,this.options);!i.styledMode&&(r.stroke=n.lineColor||t.color,r["stroke-width"]=n.lineWidth,n.dashStyle&&(r.dashstyle=n.dashStyle)),r.class="highcharts-point-connecting-path highcharts-color-"+t.colorIndex,de((n=dr(r,n)).marker.radius)||(n.marker.radius=dh(da(Math.ceil((n.algorithmMargin||8)/2)-1,1),5));var s=this.getPath(n),a=s.path;s.obstacles&&(o.lineObstacles=o.lineObstacles||[],o.lineObstacles=o.lineObstacles.concat(s.obstacles)),this.renderPath(a,r),this.addMarker("start",dr(n.marker,n.startMarker),a),this.addMarker("end",dr(n.marker,n.endMarker),a)},t.prototype.destroy=function(){this.graphics&&(dn(this.graphics,function(t){t.destroy()}),delete this.graphics)},t}(),dd=ta.composed,dc=tI.addEvent,dp=tI.merge,du=tI.pushUnique,df=tI.wrap,dg={color:"#ccd3ff",width:2,label:{format:"%[abdYHM]",formatter:function(t,e){return this.axis.chart.time.dateFormat(e||"",t,!0)},rotation:0,style:{fontSize:"0.7em"}}};function dv(){var t=this.options,e=t.currentDateIndicator;if(e){var i="object"==typeof e?dp(dg,e):dp(dg);i.value=Date.now(),i.className="highcharts-current-date-indicator",t.plotLines||(t.plotLines=[]),t.plotLines.push(i)}}function dm(){this.label&&this.label.attr({text:this.getLabelText(this.options.label)})}function dy(t,e){var i=this.options;return i&&i.className&&-1!==i.className.indexOf("highcharts-current-date-indicator")&&i.label&&"function"==typeof i.label.formatter?(i.value=Date.now(),i.label.formatter.call(this,i.value,i.label.format)):t.call(this,e)}var dx=(A=function(t,e){return(A=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}A(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),db=tI.isArray,dM=tI.merge,dk=tI.splat,dw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dx(e,t),e.prototype.init=function(e,i){var o,r=e.xAxis,n=e.yAxis;e.xAxis=e.yAxis=void 0;var s=dM(!0,{chart:{type:"gantt"},title:{text:""},legend:{enabled:!1},navigator:{series:{type:"gantt"},yAxis:{type:"category"}}},e,{isGantt:!0});e.xAxis=r,e.yAxis=n,s.xAxis=(db(e.xAxis)?e.xAxis:[e.xAxis||{},{}]).map(function(t,e){var i,r,n;return 1===e&&(o=0),dM({grid:{borderColor:"#cccccc",enabled:!0},opposite:null===(n=null!==(r=null===(i=t0.xAxis)||void 0===i?void 0:i.opposite)&&void 0!==r?r:t.opposite)||void 0===n||n,linkedTo:o},t,{type:"datetime"})}),s.yAxis=dk(e.yAxis||{}).map(function(t){return dM({grid:{borderColor:"#cccccc",enabled:!0},staticScale:50,reversed:!0,type:t.categories?t.type:"treegrid"},t)}),t.prototype.init.call(this,s,i)},e}(ah);(T=dw||(dw={})).ganttChart=function(t,e,i){return new T(t,e,i)};var dS=dw,dA=ta.isTouchDevice,dT=tI.addEvent,dP=tI.merge,dO=tI.pick,dC=[];function dE(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function dL(){var t,e,i,o,r=this.legend,n=this.navigator;if(n){e=r&&r.options,i=n.xAxis,o=n.yAxis;var s=n.scrollbarHeight,a=n.scrollButtonSize;this.inverted?(n.left=n.opposite?this.chartWidth-s-n.height:this.spacing[3]+s,n.top=this.plotTop+a):(n.left=dO(i.left,this.plotLeft+a),n.top=n.navigatorOptions.top||this.chartHeight-n.height-s-((null===(t=this.scrollbar)||void 0===t?void 0:t.options.margin)||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&"bottom"===e.verticalAlign&&"proximate"!==e.layout&&e.enabled&&!e.floating?r.legendHeight+dO(e.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),i&&o&&(this.inverted?i.options.left=o.options.left=n.left:i.options.top=o.options.top=n.top,i.setAxisSize(),o.setAxisSize())}}function dB(t){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new $(this),dO(t.redraw,!0)&&this.redraw(t.animation))}function dI(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new $(this))}function dD(){var t=this.options,e=t.navigator,i=t.rangeSelector;if((e&&e.enabled||i&&i.enabled)&&(!dA&&"x"===this.zooming.type||dA&&"x"===this.zooming.pinchType))return!1}function dz(t){var e=t.navigator;if(e&&t.xAxis[0]){var i=t.xAxis[0].getExtremes();e.render(i.min,i.max)}}function dR(t){var e=t.options.navigator||{},i=t.options.scrollbar||{};!this.navigator&&!this.scroller&&(e.enabled||i.enabled)&&(dP(!0,this.options.navigator,e),dP(!0,this.options.scrollbar,i),delete t.options.navigator,delete t.options.scrollbar)}var dN=function(t,e){if(tI.pushUnique(dC,t)){var i=t.prototype;$=e,i.callbacks.push(dz),dT(t,"afterAddSeries",dE),dT(t,"afterSetChartSize",dL),dT(t,"afterUpdate",dB),dT(t,"beforeRender",dI),dT(t,"beforeShowResetZoom",dD),dT(t,"update",dR)}},dW=ta.isTouchDevice,dG=tI.addEvent,dX=tI.correctFloat,dH=tI.defined,dF=tI.isNumber,dY=tI.pick;function dj(){this.navigatorAxis||(this.navigatorAxis=new dU(this))}function d_(t){var e,i=this.chart,o=i.options,r=o.navigator,n=this.navigatorAxis,s=i.zooming.pinchType,a=o.rangeSelector,h=i.zooming.type;if(this.isXAxis&&((null==r?void 0:r.enabled)||(null==a?void 0:a.enabled))){if("y"===h&&"zoom"===t.trigger)e=!1;else if(("zoom"===t.trigger&&"xy"===h||dW&&"xy"===s)&&this.options.range){var l=n.previousZoom;dH(t.min)?n.previousZoom=[this.min,this.max]:l&&(t.min=l[0],t.max=l[1],n.previousZoom=void 0)}}void 0!==e&&t.preventDefault()}var dU=function(){function t(t){this.axis=t}return t.compose=function(t){t.keepProps.includes("navigatorAxis")||(t.keepProps.push("navigatorAxis"),dG(t,"init",dj),dG(t,"setExtremes",d_))},t.prototype.destroy=function(){this.axis=void 0},t.prototype.toFixedRange=function(t,e,i,o){var r=this.axis,n=(r.pointRange||0)/2,s=dY(i,r.translate(t,!0,!r.horiz)),a=dY(o,r.translate(e,!0,!r.horiz));return dH(i)||(s=dX(s+n)),dH(o)||(a=dX(a-n)),dF(s)&&dF(a)||(s=a=void 0),{min:s,max:a}},t}(),dV=t4.parse,dq=nU.seriesTypes,dZ={height:40,margin:25,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:dV("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:void 0===dq.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}},dK=function(t,e,i){if(i||2==arguments.length)for(var o,r=0,n=e.length;r<n;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))},d$=tI.relativeLength,dJ={"navigator-handle":function(t,e,i,o,r){void 0===r&&(r={});var n=r.width?r.width/2:i,s=d$(r.borderRadius||0,Math.min(2*n,o));return dK([["M",-1.5,(o=r.height||o)/2-3.5],["L",-1.5,o/2+4.5],["M",.5,o/2-3.5],["L",.5,o/2+4.5]],iI.rect(-n-1,.5,2*n+1,o,{r:s}),!0)}},dQ=tI.defined,d0=ta.composed,d1=ej.getRendererType,d2={setFixedRange:function(t){var e=this.xAxis[0];dQ(e.dataMax)&&dQ(e.dataMin)&&t?this.fixedRange=Math.min(t,e.dataMax-e.dataMin):this.fixedRange=t}}.setFixedRange,d3=tI.addEvent,d5=tI.extend,d6=tI.pushUnique;function d9(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}var d4=function(t,e,i){dU.compose(e),d6(d0,"Navigator")&&(t.prototype.setFixedRange=d2,d5(d1().prototype.symbols,dJ),d3(i,"afterUpdate",d9),t2({navigator:dZ}))},d8=ta.composed,d7=tI.addEvent,ct=tI.defined,ce=tI.pick,ci=tI.pushUnique;!function(t){var e;function i(t){var e=ce(t.options&&t.options.min,t.min),i=ce(t.options&&t.options.max,t.max);return{axisMin:e,axisMax:i,scrollMin:ct(t.dataMin)?Math.min(e,t.min,t.dataMin,ce(t.threshold,1/0)):e,scrollMax:ct(t.dataMax)?Math.max(i,t.max,t.dataMax,ce(t.threshold,-1/0)):i}}function o(){var t=this.scrollbar,e=t&&!t.options.opposite,i=this.horiz?2:e?3:1;t&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[i]+=t.size+(t.options.margin||0))}function r(){var t=this;t.options&&t.options.scrollbar&&t.options.scrollbar.enabled&&(t.options.scrollbar.vertical=!t.horiz,t.options.startOnTick=t.options.endOnTick=!1,t.scrollbar=new e(t.chart.renderer,t.options.scrollbar,t.chart),d7(t.scrollbar,"changed",function(e){var o,r,n=i(t),s=n.axisMin,a=n.axisMax,h=n.scrollMin,l=n.scrollMax-h;if(ct(s)&&ct(a)){if(t.horiz&&!t.reversed||!t.horiz&&t.reversed?(o=h+l*this.to,r=h+l*this.from):(o=h+l*(1-this.from),r=h+l*(1-this.to)),this.shouldUpdateExtremes(e.DOMType)){var d="mousemove"!==e.DOMType&&"touchmove"!==e.DOMType&&void 0;t.setExtremes(r,o,!0,d,e)}else this.setRange(this.from,this.to)}}))}function n(){var t,e,o,r=i(this),n=r.scrollMin,s=r.scrollMax,a=this.scrollbar,h=this.axisTitleMargin+(this.titleOffset||0),l=this.chart.scrollbarsOffsets,d=this.options.margin||0;if(a&&l){if(this.horiz)this.opposite||(l[1]+=h),a.position(this.left,this.top+this.height+2+l[1]-(this.opposite?d:0),this.width,this.height),this.opposite||(l[1]+=d),t=1;else{this.opposite&&(l[0]+=h);var c=void 0;c=a.options.opposite?this.left+this.width+2+l[0]-(this.opposite?0:d):this.opposite?0:d,a.position(c,this.top,this.width,this.height),this.opposite&&(l[0]+=d),t=0}if(l[t]+=a.size+(a.options.margin||0),isNaN(n)||isNaN(s)||!ct(this.min)||!ct(this.max)||this.dataMin===this.dataMax)a.setRange(0,1);else if(this.min===this.max){var p=this.pointRange/(this.dataMax+1);e=p*this.min,o=p*(this.max+1),a.setRange(e,o)}else e=(this.min-n)/(s-n),o=(this.max-n)/(s-n),this.horiz&&!this.reversed||!this.horiz&&this.reversed?a.setRange(e,o):a.setRange(1-o,1-e)}}t.compose=function(t,i){ci(d8,"Axis.Scrollbar")&&(e=i,d7(t,"afterGetOffset",o),d7(t,"afterInit",r),d7(t,"afterRender",n))}}(J||(J={}));var co=J,cr={height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:0,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"#cccccc",trackBorderRadius:5,trackBorderWidth:1},cn=tI.addEvent,cs=tI.correctFloat,ca=tI.crisp,ch=tI.defined,cl=tI.destroyObjectProperties,cd=tI.fireEvent,cc=tI.merge,cp=tI.pick,cu=tI.removeEvent,cf=function(){function t(t,e,i){this._events=[],this.chartX=0,this.chartY=0,this.from=0,this.scrollbarButtons=[],this.scrollbarLeft=0,this.scrollbarStrokeWidth=1,this.scrollbarTop=0,this.size=0,this.to=0,this.trackBorderWidth=1,this.x=0,this.y=0,this.init(t,e,i)}return t.compose=function(e){co.compose(e,t)},t.swapXY=function(t,e){return e&&t.forEach(function(t){for(var e,i=t.length,o=0;o<i;o+=2)"number"==typeof(e=t[o+1])&&(t[o+1]=t[o+2],t[o+2]=e)}),t},t.prototype.addEvents=function(){var t=this.options.inverted?[1,0]:[0,1],e=this.scrollbarButtons,i=this.scrollbarGroup.element,o=this.track.element,r=this.mouseDownHandler.bind(this),n=this.mouseMoveHandler.bind(this),s=this.mouseUpHandler.bind(this),a=[[e[t[0]].element,"click",this.buttonToMinClick.bind(this)],[e[t[1]].element,"click",this.buttonToMaxClick.bind(this)],[o,"click",this.trackClick.bind(this)],[i,"mousedown",r],[i.ownerDocument,"mousemove",n],[i.ownerDocument,"mouseup",s],[i,"touchstart",r],[i.ownerDocument,"touchmove",n],[i.ownerDocument,"touchend",s]];a.forEach(function(t){cn.apply(null,t)}),this._events=a},t.prototype.buttonToMaxClick=function(t){var e=(this.to-this.from)*cp(this.options.step,.2);this.updatePosition(this.from+e,this.to+e),cd(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.buttonToMinClick=function(t){var e=cs(this.to-this.from)*cp(this.options.step,.2);this.updatePosition(cs(this.from-e),cs(this.to-e)),cd(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.cursorToScrollbarPosition=function(t){var e=this.options,i=e.minWidth>this.calculatedWidth?e.minWidth:0;return{chartX:(t.chartX-this.x-this.xOffset)/(this.barWidth-i),chartY:(t.chartY-this.y-this.yOffset)/(this.barWidth-i)}},t.prototype.destroy=function(){var t=this,e=t.chart.scroller;t.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(e){t[e]&&t[e].destroy&&(t[e]=t[e].destroy())}),e&&t===e.scrollbar&&(e.scrollbar=null,cl(e.scrollbarButtons))},t.prototype.drawScrollbarButton=function(e){var i=this.renderer,o=this.scrollbarButtons,r=this.options,n=this.size,s=i.g().add(this.group);if(o.push(s),r.buttonsEnabled){var a=i.rect().addClass("highcharts-scrollbar-button").add(s);this.chart.styledMode||a.attr({stroke:r.buttonBorderColor,"stroke-width":r.buttonBorderWidth,fill:r.buttonBackgroundColor}),a.attr(a.crisp({x:-.5,y:-.5,width:n,height:n,r:r.buttonBorderRadius},a.strokeWidth()));var h=i.path(t.swapXY([["M",n/2+(e?-1:1),n/2-3],["L",n/2+(e?-1:1),n/2+3],["L",n/2+(e?2:-2),n/2]],r.vertical)).addClass("highcharts-scrollbar-arrow").add(o[e]);this.chart.styledMode||h.attr({fill:r.buttonArrowColor})}},t.prototype.init=function(t,e,i){this.scrollbarButtons=[],this.renderer=t,this.userOptions=e,this.options=cc(cr,t0.scrollbar,e),this.options.margin=cp(this.options.margin,10),this.chart=i,this.size=cp(this.options.size,this.options.height),e.enabled&&(this.render(),this.addEvents())},t.prototype.mouseDownHandler=function(t){var e,i=(null===(e=this.chart.pointer)||void 0===e?void 0:e.normalize(t))||t,o=this.cursorToScrollbarPosition(i);this.chartX=o.chartX,this.chartY=o.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0},t.prototype.mouseMoveHandler=function(t){var e,i,o=(null===(e=this.chart.pointer)||void 0===e?void 0:e.normalize(t))||t,r=this.options.vertical?"chartY":"chartX",n=this.initPositions||[];this.grabbedCenter&&(!t.touches||0!==t.touches[0][r])&&(i=this.cursorToScrollbarPosition(o)[r]-this[r],this.hasDragged=!0,this.updatePosition(n[0]+i,n[1]+i),this.hasDragged&&cd(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))},t.prototype.mouseUpHandler=function(t){this.hasDragged&&cd(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null},t.prototype.position=function(t,e,i,o){var r=this.options,n=r.buttonsEnabled,s=r.margin,a=void 0===s?0:s,h=r.vertical,l=this.rendered?"animate":"attr",d=o,c=0;this.group.show(),this.x=t,this.y=e+this.trackBorderWidth,this.width=i,this.height=o,this.xOffset=d,this.yOffset=c,h?(this.width=this.yOffset=i=c=this.size,this.xOffset=d=0,this.yOffset=c=n?this.size:0,this.barWidth=o-(n?2*i:0),this.x=t+=a):(this.height=o=this.size,this.xOffset=d=n?this.size:0,this.barWidth=i-(n?2*o:0),this.y=this.y+a),this.group[l]({translateX:t,translateY:this.y}),this.track[l]({width:i,height:o}),this.scrollbarButtons[1][l]({translateX:h?0:i-d,translateY:h?o-c:0})},t.prototype.removeEvents=function(){this._events.forEach(function(t){cu.apply(null,t)}),this._events.length=0},t.prototype.render=function(){var e=this.renderer,i=this.options,o=this.size,r=this.chart.styledMode,n=e.g("scrollbar").attr({zIndex:i.zIndex}).hide().add();this.group=n,this.track=e.rect().addClass("highcharts-scrollbar-track").attr({r:i.trackBorderRadius||0,height:o,width:o}).add(n),r||this.track.attr({fill:i.trackBackgroundColor,stroke:i.trackBorderColor,"stroke-width":i.trackBorderWidth});var s=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-ca(0,s),y:-ca(0,s)}),this.scrollbarGroup=e.g().add(n),this.scrollbar=e.rect().addClass("highcharts-scrollbar-thumb").attr({height:o-s,width:o-s,r:i.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=e.path(t.swapXY([["M",-3,o/4],["L",-3,2*o/3],["M",0,o/4],["L",0,2*o/3],["M",3,o/4],["L",3,2*o/3]],i.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),r||(this.scrollbar.attr({fill:i.barBackgroundColor,stroke:i.barBorderColor,"stroke-width":i.barBorderWidth}),this.scrollbarRifles.attr({stroke:i.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-ca(0,this.scrollbarStrokeWidth),-ca(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)},t.prototype.setRange=function(t,e){var i,o,r=this.options,n=r.vertical,s=r.minWidth,a=this.barWidth,h=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(ch(a)){var l=a*Math.min(e,1);i=Math.ceil(a*(t=Math.max(t,0))),this.calculatedWidth=o=cs(l-i),o<s&&(i=(a-s+o)*t,o=s);var d=Math.floor(i+this.xOffset+this.yOffset),c=o/2-.5;this.from=t,this.to=e,n?(this.scrollbarGroup[h]({translateY:d}),this.scrollbar[h]({height:o}),this.scrollbarRifles[h]({translateY:c}),this.scrollbarTop=d,this.scrollbarLeft=0):(this.scrollbarGroup[h]({translateX:d}),this.scrollbar[h]({width:o}),this.scrollbarRifles[h]({translateX:c}),this.scrollbarLeft=d,this.scrollbarTop=0),o<=12?this.scrollbarRifles.hide():this.scrollbarRifles.show(),!1===r.showFull&&(t<=0&&e>=1?this.group.hide():this.group.show()),this.rendered=!0}},t.prototype.shouldUpdateExtremes=function(t){return cp(this.options.liveRedraw,ta.svg&&!ta.isTouchDevice&&!this.chart.boosted)||"mouseup"===t||"touchend"===t||!ch(t)},t.prototype.trackClick=function(t){var e,i=(null===(e=this.chart.pointer)||void 0===e?void 0:e.normalize(t))||t,o=this.to-this.from,r=this.y+this.scrollbarTop,n=this.x+this.scrollbarLeft;this.options.vertical&&i.chartY>r||!this.options.vertical&&i.chartX>n?this.updatePosition(this.from+o,this.to+o):this.updatePosition(this.from-o,this.to-o),cd(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.update=function(t){this.destroy(),this.init(this.chart.renderer,cc(!0,this.options,t),this.chart)},t.prototype.updatePosition=function(t,e){e>1&&(t=cs(1-cs(e-t)),e=1),t<0&&(e=cs(e-t),t=0),this.from=t,this.to=e},t.defaultOptions=cr,t}();t0.scrollbar=cc(!0,cf.defaultOptions,t0.scrollbar);var cg=function(){return(cg=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},cv=ta.isTouchDevice,cm=ol.prototype.symbols,cy=tI.addEvent,cx=tI.clamp,cb=tI.correctFloat,cM=tI.defined,ck=tI.destroyObjectProperties,cw=tI.erase,cS=tI.extend,cA=tI.find,cT=tI.fireEvent,cP=tI.isArray,cO=tI.isNumber,cC=tI.merge,cE=tI.pick,cL=tI.removeEvent,cB=tI.splat;function cI(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var o=[].filter.call(e,cO);if(o.length)return Math[t].apply(0,o)}var cD=function(){function t(t){this.isDirty=!1,this.scrollbarHeight=0,this.init(t)}return t.compose=function(e,i,o){dN(e,t),d4(e,i,o)},t.prototype.drawHandle=function(t,e,i,o){var r=this.navigatorOptions.handles.height;this.handles[e][o](i?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(t,10)+.5-r)}:{translateX:Math.round(this.left+parseInt(t,10)),translateY:Math.round(this.top+this.height/2-r/2-1)})},t.prototype.drawOutline=function(t,e,i,o){var r,n,s=this.navigatorOptions.maskInside,a=this.outline.strokeWidth(),h=a/2,l=a%2/2,d=this.scrollButtonSize,c=this.size,p=this.top,u=this.height,f=p-h,g=p+u,v=this.left;i?(r=p+e+l,e=p+t+l,n=[["M",v+u,p-d-l],["L",v+u,r],["L",v,r],["M",v,e],["L",v+u,e],["L",v+u,p+c+d]],s&&n.push(["M",v+u,r-h],["L",v+u,e+h])):(v-=d,t+=v+d-l,e+=v+d-l,n=[["M",v,f],["L",t,f],["L",t,g],["M",e,g],["L",e,f],["L",v+c+2*d,f]],s&&n.push(["M",t-h,f],["L",e+h,f])),this.outline[o]({d:n})},t.prototype.drawMasks=function(t,e,i,o){var r,n,s,a,h=this.left,l=this.top,d=this.height;i?(s=[h,h,h],a=[l,l+t,l+e],n=[d,d,d],r=[t,e-t,this.size-e]):(s=[h,h+t,h+e],a=[l,l,l],n=[t,e-t,this.size-e],r=[d,d,d]),this.shades.forEach(function(t,e){t[o]({x:s[e],y:a[e],width:n[e],height:r[e]})})},t.prototype.renderElements=function(){var t,e,i=this,o=i.navigatorOptions,r=o.maskInside,n=i.chart,s=n.inverted,a=n.renderer,h={cursor:s?"ns-resize":"ew-resize"},l=null!==(t=i.navigatorGroup)&&void 0!==t?t:i.navigatorGroup=a.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!r,r,!r].forEach(function(t,e){var r,s=null!==(r=i.shades[e])&&void 0!==r?r:i.shades[e]=a.rect().addClass("highcharts-navigator-mask"+(1===e?"-inside":"-outside")).add(l);n.styledMode||(s.attr({fill:t?o.maskFill:"rgba(0,0,0,0)"}),1===e&&s.css(h))}),i.outline||(i.outline=a.path().addClass("highcharts-navigator-outline").add(l)),n.styledMode||i.outline.attr({"stroke-width":o.outlineWidth,stroke:o.outlineColor}),null===(e=o.handles)||void 0===e?void 0:e.enabled){var d=o.handles,c=d.height,p=d.width;[0,1].forEach(function(t){var e,o=d.symbols[t];if(i.handles[t]&&i.handles[t].symbolUrl===o){if(!i.handles[t].isImg&&i.handles[t].symbolName!==o){var r=cm[o].call(cm,-p/2-1,0,p,c);i.handles[t].attr({d:r}),i.handles[t].symbolName=o}}else null===(e=i.handles[t])||void 0===e||e.destroy(),i.handles[t]=a.symbol(o,-p/2-1,0,p,c,d),i.handles[t].attr({zIndex:7-t}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][t]).add(l),i.addMouseEvents();n.inverted&&i.handles[t].attr({rotation:90,rotationOriginX:Math.floor(-p/2),rotationOriginY:(c+p)/2}),n.styledMode||i.handles[t].attr({fill:d.backgroundColor,stroke:d.borderColor,"stroke-width":d.lineWidth,width:d.width,height:d.height,x:-p/2-1,y:0}).css(h)})}},t.prototype.update=function(t,e){var i,o,r,n,s=this;void 0===e&&(e=!1);var a=this.chart,h=a.options.chart.inverted!==(null===(r=a.scrollbar)||void 0===r?void 0:r.options.vertical);if(cC(!0,a.options.navigator,t),this.navigatorOptions=a.options.navigator||{},this.setOpposite(),cM(t.enabled)||h)return this.destroy(),this.navigatorEnabled=t.enabled||this.navigatorEnabled,this.init(a);if(this.navigatorEnabled&&(this.isDirty=!0,!1===t.adaptToUpdatedData&&this.baseSeries.forEach(function(t){cL(t,"updatedData",s.updatedDataHandler)},this),t.adaptToUpdatedData&&this.baseSeries.forEach(function(t){t.eventsToUnbind.push(cy(t,"updatedData",s.updatedDataHandler))},this),(t.series||t.baseSeries)&&this.setBaseSeries(void 0,!1),t.height||t.xAxis||t.yAxis)){this.height=null!==(n=t.height)&&void 0!==n?n:this.height;var l=this.getXAxisOffsets();this.xAxis.update(cg(cg({},t.xAxis),((i={offsets:l})[a.inverted?"width":"height"]=this.height,i[a.inverted?"height":"width"]=void 0,i)),!1),this.yAxis.update(cg(cg({},t.yAxis),((o={})[a.inverted?"width":"height"]=this.height,o)),!1)}e&&a.redraw()},t.prototype.render=function(t,e,i,o){var r,n,s,a,h,l=this.chart,d=this.xAxis,c=d.pointRange||0,p=d.navigatorAxis.fake?l.xAxis[0]:d,u=this.navigatorEnabled,f=this.rendered,g=l.inverted,v=l.xAxis[0].minRange,m=l.xAxis[0].options.maxRange,y=this.scrollButtonSize,x=this.scrollbarHeight;if(!this.hasDragged||cM(i)){if(this.isDirty&&this.renderElements(),t=cb(t-c/2),e=cb(e+c/2),!cO(t)||!cO(e)){if(!f)return;i=0,o=cE(d.width,p.width)}this.left=cE(d.left,l.plotLeft+y+(g?l.plotWidth:0));var b=this.size=a=cE(d.len,(g?l.plotHeight:l.plotWidth)-2*y);r=g?x:a+2*y,i=cE(i,d.toPixels(t,!0)),o=cE(o,d.toPixels(e,!0)),cO(i)&&Math.abs(i)!==1/0||(i=0,o=r);var M=d.toValue(i,!0),k=d.toValue(o,!0),w=Math.abs(cb(k-M));w<v?this.grabbedLeft?i=d.toPixels(k-v-c,!0):this.grabbedRight&&(o=d.toPixels(M+v+c,!0)):cM(m)&&cb(w-c)>m&&(this.grabbedLeft?i=d.toPixels(k-m-c,!0):this.grabbedRight&&(o=d.toPixels(M+m+c,!0))),this.zoomedMax=cx(Math.max(i,o),0,b),this.zoomedMin=cx(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(i,o),0,b),this.range=this.zoomedMax-this.zoomedMin,b=Math.round(this.zoomedMax);var S=Math.round(this.zoomedMin);u&&(this.navigatorGroup.attr({visibility:"inherit"}),h=f&&!this.hasDragged?"animate":"attr",this.drawMasks(S,b,g,h),this.drawOutline(S,b,g,h),this.navigatorOptions.handles.enabled&&(this.drawHandle(S,0,g,h),this.drawHandle(b,1,g,h))),this.scrollbar&&(g?(s=this.top-y,n=this.left-x+(u||!p.opposite?0:(p.titleOffset||0)+p.axisTitleMargin),x=a+2*y):(s=this.top+(u?this.height:-x),n=this.left-y),this.scrollbar.position(n,s,r,x),this.scrollbar.setRange(this.zoomedMin/(a||1),this.zoomedMax/(a||1))),this.rendered=!0,this.isDirty=!1,cT(this,"afterRender")}},t.prototype.addMouseEvents=function(){var t,e,i=this,o=i.chart,r=o.container,n=[];i.mouseMoveHandler=t=function(t){i.onMouseMove(t)},i.mouseUpHandler=e=function(t){i.onMouseUp(t)},(n=i.getPartsEvents("mousedown")).push(cy(o.renderTo,"mousemove",t),cy(r.ownerDocument,"mouseup",e),cy(o.renderTo,"touchmove",t),cy(r.ownerDocument,"touchend",e)),n.concat(i.getPartsEvents("touchstart")),i.eventsToUnbind=n,i.series&&i.series[0]&&n.push(cy(i.series[0].xAxis,"foundExtremes",function(){o.navigator.modifyNavigatorAxisExtremes()}))},t.prototype.getPartsEvents=function(t){var e=this,i=[];return["shades","handles"].forEach(function(o){e[o].forEach(function(r,n){i.push(cy(r.element,t,function(t){e[o+"Mousedown"](t,n)}))})}),i},t.prototype.shadesMousedown=function(t,e){t=(null===(i=this.chart.pointer)||void 0===i?void 0:i.normalize(t))||t;var i,o,r,n,s,a=this.chart,h=this.xAxis,l=this.zoomedMin,d=this.size,c=this.range,p=this.left,u=t.chartX;a.inverted&&(u=t.chartY,p=this.top),1===e?(this.grabbedCenter=u,this.fixedWidth=c,this.dragOffset=u-l):(s=u-p-c/2,0===e?s=Math.max(0,s):2===e&&s+c>=d&&(s=d-c,this.reversedExtremes?(s-=c,r=this.getUnionExtremes().dataMin):o=this.getUnionExtremes().dataMax),s!==l&&(this.fixedWidth=c,cM((n=h.navigatorAxis.toFixedRange(s,s+c,r,o)).min)&&cT(this,"setRange",{min:Math.min(n.min,n.max),max:Math.max(n.min,n.max),redraw:!0,eventArguments:{trigger:"navigator"}})))},t.prototype.handlesMousedown=function(t,e){t=(null===(i=this.chart.pointer)||void 0===i?void 0:i.normalize(t))||t;var i,o=this.chart,r=o.xAxis[0],n=this.reversedExtremes;0===e?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=n?r.min:r.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=n?r.max:r.min),o.setFixedRange(void 0)},t.prototype.onMouseMove=function(t){var e,i,o=this,r=o.chart,n=o.navigatorSize,s=o.range,a=o.dragOffset,h=r.inverted,l=o.left;(!t.touches||0!==t.touches[0].pageX)&&(i=(t=(null===(e=r.pointer)||void 0===e?void 0:e.normalize(t))||t).chartX,h&&(l=o.top,i=t.chartY),o.grabbedLeft?(o.hasDragged=!0,o.render(0,0,i-l,o.otherHandlePos)):o.grabbedRight?(o.hasDragged=!0,o.render(0,0,o.otherHandlePos,i-l)):o.grabbedCenter&&(o.hasDragged=!0,i<a?i=a:i>n+a-s&&(i=n+a-s),o.render(0,0,i-a,i-a+s)),o.hasDragged&&o.scrollbar&&cE(o.scrollbar.options.liveRedraw,!cv&&!this.chart.boosted)&&(t.DOMType=t.type,setTimeout(function(){o.onMouseUp(t)},0)))},t.prototype.onMouseUp=function(t){var e,i,o,r,n,s,a=this.chart,h=this.xAxis,l=this.scrollbar,d=t.DOMEvent||t,c=a.inverted,p=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!l||!l.hasDragged)||"scrollbar"===t.trigger)&&(o=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?r=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(n=this.fixedExtreme),this.zoomedMax===this.size&&(n=this.reversedExtremes?o.dataMin:o.dataMax),0===this.zoomedMin&&(r=this.reversedExtremes?o.dataMax:o.dataMin),cM((s=h.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,r,n)).min)&&cT(this,"setRange",{min:Math.min(s.min,s.max),max:Math.max(s.min,s.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:d}})),"mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&cO(this.zoomedMin)&&cO(this.zoomedMax)&&(i=Math.round(this.zoomedMin),e=Math.round(this.zoomedMax),this.shades&&this.drawMasks(i,e,c,p),this.outline&&this.drawOutline(i,e,c,p),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(i,0,c,p),this.drawHandle(e,1,c,p)))},t.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(t){t()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()},t.prototype.removeBaseSeriesEvents=function(){var t=this.baseSeries||[];this.navigatorEnabled&&t[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&t.forEach(function(t){cL(t,"updatedData",this.updatedDataHandler)},this),t[0].xAxis&&cL(t[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},t.prototype.getXAxisOffsets=function(){return this.chart.inverted?[this.scrollButtonSize,0,-this.scrollButtonSize,0]:[0,-this.scrollButtonSize,0,this.scrollButtonSize]},t.prototype.init=function(t){var e,i=t.options,o=i.navigator||{},r=o.enabled,n=i.scrollbar||{},s=n.enabled,a=r&&o.height||0,h=s&&n.height||0,l=n.buttonsEnabled&&h||0;this.handles=[],this.shades=[],this.chart=t,this.setBaseSeries(),this.height=a,this.scrollbarHeight=h,this.scrollButtonSize=l,this.scrollbarEnabled=s,this.navigatorEnabled=r,this.navigatorOptions=o,this.scrollbarOptions=n,this.setOpposite();var d=this,c=d.baseSeries,p=t.xAxis.length,u=t.yAxis.length,f=c&&c[0]&&c[0].xAxis||t.xAxis[0]||{options:{}};if(t.isDirtyBox=!0,d.navigatorEnabled){var g=this.getXAxisOffsets();d.xAxis=new rl(t,cC({breaks:f.options.breaks,ordinal:f.options.ordinal,overscroll:f.options.overscroll},o.xAxis,{type:"datetime",yAxis:null===(e=o.yAxis)||void 0===e?void 0:e.id,index:p,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:f.options.ordinal?0:f.options.minPadding,maxPadding:f.options.ordinal?0:f.options.maxPadding,zoomEnabled:!1},t.inverted?{offsets:g,width:a}:{offsets:g,height:a}),"xAxis"),d.yAxis=new rl(t,cC(o.yAxis,{alignTicks:!1,offset:0,index:u,isInternal:!0,reversed:cE(o.yAxis&&o.yAxis.reversed,t.yAxis[0]&&t.yAxis[0].reversed,!1),zoomEnabled:!1},t.inverted?{width:a}:{height:a}),"yAxis"),c||o.series.data?d.updateNavigatorSeries(!1):0===t.series.length&&(d.unbindRedraw=cy(t,"beforeRedraw",function(){t.series.length>0&&!d.series&&(d.setBaseSeries(),d.unbindRedraw())})),d.reversedExtremes=t.inverted&&!d.xAxis.reversed||!t.inverted&&d.xAxis.reversed,d.renderElements(),d.addMouseEvents()}else d.xAxis={chart:t,navigatorAxis:{fake:!0},translate:function(e,i){var o=t.xAxis[0],r=o.getExtremes(),n=o.len-2*l,s=cI("min",o.options.min,r.dataMin),a=cI("max",o.options.max,r.dataMax)-s;return i?e*a/n+s:n*(e-s)/a},toPixels:function(t){return this.translate(t)},toValue:function(t){return this.translate(t,!0)}},d.xAxis.navigatorAxis.axis=d.xAxis,d.xAxis.navigatorAxis.toFixedRange=dU.prototype.toFixedRange.bind(d.xAxis.navigatorAxis);if(t.options.scrollbar.enabled){var v=cC(t.options.scrollbar,{vertical:t.inverted});!cO(v.margin)&&d.navigatorEnabled&&(v.margin=t.inverted?-3:3),t.scrollbar=d.scrollbar=new cf(t.renderer,v,t),cy(d.scrollbar,"changed",function(t){var e=d.size,i=e*this.to,o=e*this.from;d.hasDragged=d.scrollbar.hasDragged,d.render(0,0,o,i),this.shouldUpdateExtremes(t.DOMType)&&setTimeout(function(){d.onMouseUp(t)})})}d.addBaseSeriesEvents(),d.addChartEvents()},t.prototype.setOpposite=function(){var t=this.navigatorOptions,e=this.navigatorEnabled,i=this.chart;this.opposite=cE(t.opposite,!!(!e&&i.inverted))},t.prototype.getUnionExtremes=function(t){var e,i=this.chart.xAxis[0],o=this.chart.time,r=this.xAxis,n=r.options,s=i.options;return t&&null===i.dataMin||(e={dataMin:cE(o.parse(null==n?void 0:n.min),cI("min",o.parse(s.min),i.dataMin,r.dataMin,r.min)),dataMax:cE(o.parse(null==n?void 0:n.max),cI("max",o.parse(s.max),i.dataMax,r.dataMax,r.max))}),e},t.prototype.setBaseSeries=function(t,e){var i=this.chart,o=this.baseSeries=[];t=t||i.options&&i.options.navigator.baseSeries||(i.series.length?cA(i.series,function(t){return!t.options.isInternal}).index:0),(i.series||[]).forEach(function(e,i){!e.options.isInternal&&(e.options.showInNavigator||(i===t||e.options.id===t)&&!1!==e.options.showInNavigator)&&o.push(e)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,e)},t.prototype.updateNavigatorSeries=function(t,e){var i,o,r,n,s,a=this,h=a.chart,l=a.baseSeries,d={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:null===(i=this.navigatorOptions.xAxis)||void 0===i?void 0:i.id,yAxis:null===(o=this.navigatorOptions.yAxis)||void 0===o?void 0:o.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},c=a.series=(a.series||[]).filter(function(t){var e=t.baseSeries;return!(0>l.indexOf(e))||(e&&(cL(e,"updatedData",a.updatedDataHandler),delete e.navigatorSeries),t.chart&&t.destroy(),!1)}),p=a.navigatorOptions.series;l&&l.length&&l.forEach(function(t){var i,o=t.navigatorSeries,u=cS({color:t.color,visible:t.visible},cP(p)?t0.navigator.series:p);if(!o||!1!==a.navigatorOptions.adaptToUpdatedData){d.name="Navigator "+l.length,s=(r=t.options||{}).navigatorOptions||{},u.dataLabels=cB(u.dataLabels),(n=cC(r,d,u,s)).pointRange=cE(u.pointRange,s.pointRange,t0.plotOptions[n.type||"line"].pointRange);var f=s.data||u.data;a.hasNavigatorData=a.hasNavigatorData||!!f,n.data=f||(null===(i=r.data)||void 0===i?void 0:i.slice(0)),o&&o.options?o.update(n,e):(t.navigatorSeries=h.initSeries(n),h.setSortedData(),t.navigatorSeries.baseSeries=t,c.push(t.navigatorSeries))}}),(p.data&&!(l&&l.length)||cP(p))&&(a.hasNavigatorData=!1,(p=cB(p)).forEach(function(t,e){d.name="Navigator "+(c.length+1),(n=cC(t0.navigator.series,{color:h.series[e]&&!h.series[e].options.isInternal&&h.series[e].color||h.options.colors[e]||h.options.colors[0]},d,t)).data=t.data,n.data&&(a.hasNavigatorData=!0,c.push(h.initSeries(n)))})),t&&this.addBaseSeriesEvents()},t.prototype.addBaseSeriesEvents=function(){var t=this,e=this,i=e.baseSeries||[];i[0]&&i[0].xAxis&&i[0].eventsToUnbind.push(cy(i[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),i.forEach(function(o){o.eventsToUnbind.push(cy(o,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),o.eventsToUnbind.push(cy(o,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==t.navigatorOptions.adaptToUpdatedData&&o.xAxis&&o.eventsToUnbind.push(cy(o,"updatedData",t.updatedDataHandler)),o.eventsToUnbind.push(cy(o,"remove",function(){i&&cw(i,o),this.navigatorSeries&&e.series&&(cw(e.series,this.navigatorSeries),cM(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})},t.prototype.getBaseSeriesMin=function(t){return this.baseSeries.reduce(function(t,e){var i;return Math.min(t,null!==(i=e.getColumn("x")[0])&&void 0!==i?i:t)},t)},t.prototype.modifyNavigatorAxisExtremes=function(){var t=this.xAxis;if(void 0!==t.getExtremes){var e=this.getUnionExtremes(!0);e&&(e.dataMin!==t.min||e.dataMax!==t.max)&&(t.min=e.dataMin,t.max=e.dataMax)}},t.prototype.modifyBaseAxisExtremes=function(){var t,e,i,o=this.chart.navigator,r=this.getExtremes(),n=r.min,s=r.max,a=r.dataMin,h=r.dataMax,l=s-n,d=o.stickToMin,c=o.stickToMax,p=cE(null===(t=this.ordinal)||void 0===t?void 0:t.convertOverscroll(this.options.overscroll),0),u=o.series&&o.series[0],f=!!this.setExtremes;!(this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger)&&(d&&(e=(i=a)+l),c&&(e=h+p,d||(i=Math.max(a,e-l,o.getBaseSeriesMin(u&&u.xData?u.xData[0]:-Number.MAX_VALUE)))),f&&(d||c)&&cO(i)&&(this.min=this.userMin=i,this.max=this.userMax=e)),o.stickToMin=o.stickToMax=null},t.prototype.updatedDataHandler=function(){var t=this.chart.navigator,e=this.navigatorSeries,i=t.reversedExtremes?0===Math.round(t.zoomedMin):Math.round(t.zoomedMax)>=Math.round(t.size);t.stickToMax=cE(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,i),t.stickToMin=t.shouldStickToMin(this,t),e&&!t.hasNavigatorData&&(e.options.pointStart=this.getColumn("x")[0],e.setData(this.options.data,!1,null,!1))},t.prototype.shouldStickToMin=function(t,e){var i=e.getBaseSeriesMin(t.getColumn("x")[0]),o=t.xAxis,r=o.max,n=o.min,s=o.options.range;return!!(cO(r)&&cO(n))&&(s&&r-i>0?r-i<s:n<=i)},t.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(cy(this.chart,"redraw",function(){var t=this.navigator,e=t&&(t.baseSeries&&t.baseSeries[0]&&t.baseSeries[0].xAxis||this.xAxis[0]);e&&t.render(e.min,e.max)}),cy(this.chart,"getMargins",function(){var t=this.navigator,e=t.opposite?"plotTop":"marginBottom";this.inverted&&(e=t.opposite?"marginRight":"plotLeft"),this[e]=(this[e]||0)+(t.navigatorEnabled||!this.inverted?t.height+t.scrollbarHeight:0)+t.navigatorOptions.margin}),cy(t,"setRange",function(t){this.chart.xAxis[0].setExtremes(t.min,t.max,t.redraw,t.animation,t.eventArguments)}))},t.prototype.destroy=function(){var t=this;this.removeEvents(),this.xAxis&&(cw(this.chart.xAxis,this.xAxis),cw(this.chart.axes,this.xAxis)),this.yAxis&&(cw(this.chart.yAxis,this.yAxis),cw(this.chart.axes,this.yAxis)),(this.series||[]).forEach(function(t){t.destroy&&t.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(function(e){t[e]&&t[e].destroy&&t[e].destroy(),t[e]=null}),[this.handles].forEach(function(t){ck(t)}),this.navigatorEnabled=!1},t}(),cz={lang:{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"→"},rangeSelector:{allButtonsEnabled:!1,buttons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,inputBoxWidth:void 0,inputDateFormat:"%[ebY]",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:"#334eff",cursor:"pointer",fontSize:"0.8em"},labelStyle:{color:"#666666",fontSize:"0.8em"}}},cR=ta.composed,cN=tI.addEvent,cW=tI.defined,cG=tI.extend,cX=tI.isNumber,cH=tI.merge,cF=tI.pick,cY=tI.pushUnique,cj=[];function c_(){var t,e,i=this.range,o=i.type,r=this.max,n=this.chart.time,s=function(t,e){var i=n.toParts(t),r=i.slice();"year"===o?r[0]+=e:r[1]+=e;var s=n.makeTime.apply(n,r),a=n.toParts(s);return"month"===o&&i[1]===a[1]&&1===Math.abs(e)&&(r[0]=i[0],r[1]=i[1],r[2]=0),(s=n.makeTime.apply(n,r))-t};cX(i)?(t=r-i,e=i):i&&(t=r+s(r,-(i.count||1)),this.chart&&this.chart.setFixedRange(r-t));var a=cF(this.dataMin,Number.MIN_VALUE);return cX(t)||(t=a),t<=a&&(t=a,void 0===e&&(e=s(t,i.count)),this.newMax=Math.min(t+e,cF(this.dataMax,Number.MAX_VALUE))),cX(r)?!cX(i)&&i&&i._offsetMin&&(t+=i._offsetMin):t=void 0,t}function cU(){var t;null===(t=this.rangeSelector)||void 0===t||t.redrawElements()}function cV(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new Q(this))}function cq(){var t=this.rangeSelector;if(t){cX(t.deferredYTDClick)&&(t.clickButton(t.deferredYTDClick),delete t.deferredYTDClick);var e=t.options.verticalAlign;t.options.floating||("bottom"===e?this.extraBottomMargin=!0:"top"!==e||(this.extraTopMargin=!0))}}function cZ(){var t,e=this.rangeSelector;if(e){var i=this.xAxis[0].getExtremes(),o=this.legend,r=e&&e.options.verticalAlign;cX(i.min)&&e.render(i.min,i.max),o.display&&"top"===r&&r===o.options.verticalAlign&&(t=cH(this.spacingBox),"vertical"===o.options.layout?t.y=this.plotTop:t.y+=e.getHeight(),o.group.placed=!1,o.align(t))}}function cK(){for(var t=0,e=cj.length;t<e;++t){var i=cj[t];if(i[0]===this){i[1].forEach(function(t){return t()}),cj.splice(t,1);return}}}function c$(){var t,e=this.rangeSelector;if(null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.enabled){var i=e.getHeight(),o=e.options.verticalAlign;e.options.floating||("bottom"===o?this.marginBottom+=i:"middle"===o||(this.plotTop+=i))}}function cJ(t){var e=t.options.rangeSelector,i=this.extraBottomMargin,o=this.extraTopMargin,r=this.rangeSelector;if(e&&e.enabled&&!cW(r)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=r=new Q(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,r){var n=e&&e.verticalAlign||r.options&&r.options.verticalAlign;r.options.floating||("bottom"===n?this.extraBottomMargin=!0:"middle"===n||(this.extraTopMargin=!0)),(this.extraBottomMargin!==i||this.extraTopMargin!==o)&&(this.isDirtyBox=!0)}}var cQ=function(t,e,i){if(Q=i,cY(cR,"RangeSelector")){var o=e.prototype;t.prototype.minFromRange=c_,cN(e,"afterGetContainer",cV),cN(e,"beforeRender",cq),cN(e,"destroy",cK),cN(e,"getMargins",c$),cN(e,"redraw",cZ),cN(e,"update",cJ),cN(e,"beforeRedraw",cU),o.callbacks.push(cZ),cG(t0,{rangeSelector:cz.rangeSelector}),cG(t0.lang,cz.lang)}},c0=function(){return(c0=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},c1=tI.addEvent,c2=tI.correctFloat,c3=tI.css,c5=tI.defined,c6=tI.error,c9=tI.isNumber,c4=tI.pick,c8=tI.timeUnits,c7=tI.isString;!function(t){function e(t,e,i,o,r,n,s){void 0===r&&(r=[]),void 0===n&&(n=0);var a,h,l,d,c,p={},u=this.options.tickPixelInterval,f=this.chart.time,g=[],v=0,m=[],y=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!r||r.length<3||void 0===e)return f.getTimeTicks.apply(f,arguments);var x=r.length;for(a=0;a<x;a++){if(c=a&&r[a-1]>i,r[a]<e&&(v=a),a===x-1||r[a+1]-r[a]>5*n||c){if(r[a]>y){for(h=f.getTimeTicks(t,r[v],r[a],o);h.length&&h[0]<=y;)h.shift();h.length&&(y=h[h.length-1]),g.push(m.length),m=m.concat(h)}v=a+1}if(c)break}if(h){if(d=h.info,s&&d.unitRange<=c8.hour){for(v=1,a=m.length-1;v<a;v++)f.dateFormat("%d",m[v])!==f.dateFormat("%d",m[v-1])&&(p[m[v]]="day",l=!0);l&&(p[m[0]]="day"),d.higherRanks=p}d.segmentStarts=g,m.info=d}else c6(12,!1,this.chart);if(s&&c5(u)){for(var b=m.length,M=[],k=[],w=void 0,S=void 0,A=void 0,T=void 0,P=void 0,O=b;O--;)S=this.translate(m[O]),A&&(k[O]=A-S),M[O]=A=S;for(k.sort(function(t,e){return t-e}),(T=k[Math.floor(k.length/2)])<.6*u&&(T=null),O=m[b-1]>i?b-1:b,A=void 0;O--;)P=Math.abs(A-(S=M[O])),A&&P<.8*u&&(null===T||P<.8*T)?(p[m[O]]&&!p[m[O+1]]?(w=O+1,A=S):w=O,m.splice(w,1)):A=S}return m}function i(t){var e=this.ordinal.positions;if(!e)return t;var i,o=e.length-1;return(t<0?t=e[0]:t>o?t=e[o]:(o=Math.floor(t),i=t-o),void 0!==i&&void 0!==e[o])?e[o]+(i?i*(e[o+1]-e[o]):0):t}function o(t){var e=this.ordinal,i=this.old?this.old.min:this.min,o=this.old?this.old.transA:this.transA,r=e.getExtendedPositions();if(null==r?void 0:r.length){var n=c2((t-i)*o+this.minPixelPadding),s=c2(e.getIndexOfPoint(n,r)),a=c2(s%1);if(s>=0&&s<=r.length-1){var h=r[Math.floor(s)],l=r[Math.ceil(s)];return r[Math.floor(s)]+a*(l-h)}}return t}function r(e,i){var o=t.Additions.findIndexOf(e,i,!0);if(e[o]===i)return o;var r=(i-e[o])/(e[o+1]-e[o]);return o+r}function n(){this.ordinal||(this.ordinal=new t.Additions(this))}function s(){var t=this.eventArgs,e=this.options;if(this.isXAxis&&c5(e.overscroll)&&0!==e.overscroll&&c9(this.max)&&c9(this.min)&&(this.options.ordinal&&!this.ordinal.originalOrdinalRange&&this.ordinal.getExtendedPositions(!1),this.max===this.dataMax&&((null==t?void 0:t.trigger)!=="pan"||this.isInternal)&&(null==t?void 0:t.trigger)!=="navigator")){var i=this.ordinal.convertOverscroll(e.overscroll);this.max+=i,!this.isInternal&&c5(this.userMin)&&(null==t?void 0:t.trigger)!=="mousewheel"&&(this.min+=i)}}function a(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function h(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function l(t){var e=this.xAxis[0],i=e.ordinal.convertOverscroll(e.options.overscroll),o=t.originalEvent.chartX,r=this.options.chart.panning,n=!1;if(r&&"y"!==r.type&&e.options.ordinal&&e.series.length&&(!t.touches||t.touches.length<=1)){var s=this.mouseDownX,a=e.getExtremes(),h=a.dataMin,l=a.dataMax,d=a.min,c=a.max,p=this.hoverPoints,u=e.closestPointRange||e.ordinal&&e.ordinal.overscrollPointsRange,f=Math.round((s-o)/(e.translationSlope*(e.ordinal.slope||u))),g=e.ordinal.getExtendedPositions(),v={ordinal:{positions:g,extendedOrdinalPositions:g}},m=e.index2val,y=e.val2lin,x=void 0,b=void 0;if(d<=h&&f<0||c+i>=l&&f>0)return;v.ordinal.positions?Math.abs(f)>1&&(p&&p.forEach(function(t){t.setState()}),l>(b=v.ordinal.positions)[b.length-1]&&b.push(l),this.setFixedRange(c-d),(x=e.navigatorAxis.toFixedRange(void 0,void 0,m.apply(v,[y.apply(v,[d,!0])+f]),m.apply(v,[y.apply(v,[c,!0])+f]))).min>=Math.min(b[0],d)&&x.max<=Math.max(b[b.length-1],c)+i&&e.setExtremes(x.min,x.max,!0,!1,{trigger:"pan"}),this.mouseDownX=o,c3(this.container,{cursor:"move"})):n=!0}else n=!0;n||r&&/y/.test(r.type)?i&&(e.max=e.dataMax+i):t.preventDefault()}function d(){var t=this.xAxis;t&&t.options.ordinal&&(delete t.ordinal.index,delete t.ordinal.originalOrdinalRange)}function c(t,e){var i,o,n=this.ordinal,s=n.positions,a=n.slope;if(!s)return t;var h=s.length;if(s[0]<=t&&s[h-1]>=t)i=r(s,t);else{if(!((o=n.getExtendedPositions&&n.getExtendedPositions())&&o.length))return t;var l=o.length;a||(a=(o[l-1]-o[0])/l);var d=r(o,s[0]);if(t>=o[0]&&t<=o[l-1])i=r(o,t)-d;else{if(!e)return t;if(t<o[0]){var c=o[0]-t,p=c/a;i=-d-p}else{var c=t-o[l-1],p=c/a;i=p+l-d}}}return e?i:a*(i||0)+n.offset}t.compose=function(t,r,p){var u=t.prototype;return u.ordinal2lin||(u.getTimeTicks=e,u.index2val=i,u.lin2val=o,u.val2lin=c,u.ordinal2lin=u.val2lin,c1(t,"afterInit",n),c1(t,"foundExtremes",s),c1(t,"afterSetScale",a),c1(t,"initialAxisTranslation",h),c1(p,"pan",l),c1(p,"touchpan",l),c1(r,"updatedData",d)),t};var p=function(){function t(t){this.index={},this.axis=t}return t.prototype.beforeSetTickPositions=function(){var t,e,i,o,r,n,s,a,h=this.axis,l=h.ordinal,d=h.getExtremes(),c=d.min,p=d.max,u=null===(t=h.brokenAxis)||void 0===t?void 0:t.hasBreaks,f=h.options.ordinal,g=[],v=Number.MAX_VALUE,m=!1,y=!1,x=!1;if(f||u){var b=0;if(h.series.forEach(function(t,o){var r=t.getColumn("x",!0);if(i=[],o>0&&"highcharts-navigator-series"!==t.options.id&&r.length>1&&(y=b!==r[1]-r[0]),b=r[1]-r[0],t.boosted&&(x=t.boosted),t.reserveSpace()&&(!1!==t.takeOrdinalPosition||u)&&(e=(g=g.concat(r)).length,g.sort(function(t,e){return t-e}),v=Math.min(v,c4(t.closestPointRange,v)),e)){for(o=0;o<e-1;)g[o]!==g[o+1]&&i.push(g[o+1]),o++;i[0]!==g[0]&&i.unshift(g[0]),g=i}}),h.ordinal.originalOrdinalRange||(h.ordinal.originalOrdinalRange=(g.length-1)*v),y&&x&&(g.pop(),g.shift()),(e=g.length)>2){for(o=g[1]-g[0],a=e-1;a--&&!m;)g[a+1]-g[a]!==o&&(m=!0);!h.options.keepOrdinalPadding&&(g[0]-c>o||p-g[g.length-1]>o)&&(m=!0)}else h.options.overscroll&&(2===e?v=g[1]-g[0]:1===e?(v=h.ordinal.convertOverscroll(h.options.overscroll),g=[g[0],g[0]+v]):v=l.overscrollPointsRange);m||h.forceOrdinal?(h.options.overscroll&&(l.overscrollPointsRange=v,g=g.concat(l.getOverscrollPositions())),l.positions=g,r=h.ordinal2lin(Math.max(c,g[0]),!0),n=Math.max(h.ordinal2lin(Math.min(p,g[g.length-1]),!0),1),l.slope=s=(p-c)/(n-r),l.offset=c-r*s):(l.overscrollPointsRange=c4(h.closestPointRange,l.overscrollPointsRange),l.positions=h.ordinal.slope=l.offset=void 0)}h.isOrdinal=f&&m,l.groupIntervalFactor=null},t.findIndexOf=function(t,e,i){for(var o,r=0,n=t.length-1;r<n;)t[o=Math.ceil((r+n)/2)]<=e?r=o:n=o-1;return t[r]===e?r:i?r:-1},t.prototype.getExtendedPositions=function(t){void 0===t&&(t=!0);var e,i=this,o=i.axis,r=o.constructor.prototype,n=o.chart,s=o.series.reduce(function(t,e){var i=e.currentDataGrouping;return t+(i?i.count+i.unitName:"raw")},""),a=t?o.ordinal.convertOverscroll(o.options.overscroll):0,h=o.getExtremes(),l=void 0,d=i.index;return d||(d=i.index={}),!d[s]&&((e={series:[],chart:n,forceOrdinal:!1,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+a}},applyGrouping:r.applyGrouping,getGroupPixelWidth:r.getGroupPixelWidth,getTimeTicks:r.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:r.ordinal2lin,getIndexOfPoint:r.getIndexOfPoint,val2lin:r.val2lin}).ordinal.axis=e,o.series.forEach(function(o){l={xAxis:e,chart:n,groupPixelWidth:o.groupPixelWidth,destroyGroupedData:ta.noop,getColumn:o.getColumn,applyGrouping:o.applyGrouping,getProcessedData:o.getProcessedData,reserveSpace:o.reserveSpace,visible:o.visible};var r,s,a,h=o.getColumn("x").concat(t?i.getOverscrollPositions():[]);l.dataTable=new nz({columns:{x:h}}),l.options=c0(c0({},o.options),{dataGrouping:o.currentDataGrouping?{firstAnchor:null===(r=o.options.dataGrouping)||void 0===r?void 0:r.firstAnchor,anchor:null===(s=o.options.dataGrouping)||void 0===s?void 0:s.anchor,lastAnchor:null===(a=o.options.dataGrouping)||void 0===a?void 0:a.firstAnchor,enabled:!0,forced:!0,approximation:"open",units:[[o.currentDataGrouping.unitName,[o.currentDataGrouping.count]]]}:{enabled:!1}}),e.series.push(l),o.processData.apply(l)}),e.applyGrouping({hasExtremesChanged:!0}),(null==l?void 0:l.closestPointRange)!==(null==l?void 0:l.basePointRange)&&l.currentDataGrouping&&(e.forceOrdinal=!0),o.ordinal.beforeSetTickPositions.apply({axis:e}),!o.ordinal.originalOrdinalRange&&e.ordinal.originalOrdinalRange&&(o.ordinal.originalOrdinalRange=e.ordinal.originalOrdinalRange),e.ordinal.positions&&(d[s]=e.ordinal.positions)),d[s]},t.prototype.getGroupIntervalFactor=function(t,e,i){var o,r,n=i.getColumn("x",!0),s=n.length,a=[],h=this.groupIntervalFactor;if(!h){for(r=0;r<s-1;r++)a[r]=n[r+1]-n[r];a.sort(function(t,e){return t-e}),o=a[Math.floor(s/2)],t=Math.max(t,n[0]),e=Math.min(e,n[s-1]),this.groupIntervalFactor=h=s*o/(e-t)}return h},t.prototype.getIndexOfPoint=function(t,e){var i=this.axis,o=i.min,n=i.minPixelPadding;return r(e,o)+c2((t-n)/(i.translationSlope*(this.slope||i.closestPointRange||this.overscrollPointsRange)))},t.prototype.getOverscrollPositions=function(){var t=this.axis,e=this.convertOverscroll(t.options.overscroll),i=this.overscrollPointsRange,o=[],r=t.dataMax;if(c5(i))for(;r<t.dataMax+e;)o.push(r+=i);return o},t.prototype.postProcessTickInterval=function(t){var e=this.axis,i=this.slope,o=e.closestPointRange;return i&&o?e.options.breaks?o||t:t/(i/o):t},t.prototype.convertOverscroll=function(t){void 0===t&&(t=0);var e=this,i=e.axis,o=function(t){return c4(e.originalOrdinalRange,c5(i.dataMax)&&c5(i.dataMin)?i.dataMax-i.dataMin:0)*t};if(c7(t)){var r=parseInt(t,10);if(/%$/.test(t))return o(r/100);if(/px/.test(t)){var n=Math.min(r,.9*i.len)/i.len;return o(n/(1-n))}return 0}return t},t}();t.Additions=p}(tt||(tt={}));var pt=tt,pe=tI.addEvent,pi=tI.createElement,po=tI.css,pr=tI.defined,pn=tI.destroyObjectProperties,ps=tI.diffObjects,pa=tI.discardElement,ph=tI.extend,pl=tI.fireEvent,pd=tI.isNumber,pc=tI.isString,pp=tI.merge,pu=tI.objectEach,pf=tI.pick,pg=tI.splat;function pv(t){var e=function(e){return new RegExp("%[[a-zA-Z]*".concat(e)).test(t)};if(pc(t)?-1!==t.indexOf("%L"):t.fractionalSecondDigits)return"text";var i=pc(t)?["a","A","d","e","w","b","B","m","o","y","Y"].some(e):t.dateStyle||t.day||t.month||t.year,o=pc(t)?["H","k","I","l","M","S"].some(e):t.timeStyle||t.hour||t.minute||t.second;return i&&o?"datetime-local":i?"date":o?"time":"text"}var pm=function(){function t(e){var i=this;this.isDirty=!1,this.buttonOptions=t.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.maxButtonWidth=function(){var t=0;return i.buttons.forEach(function(e){var i=e.getBBox();i.width>t&&(t=i.width)}),t},this.init(e)}return t.compose=function(e,i){cQ(e,i,t)},t.prototype.clickButton=function(t,e){var i,o,r,n,s,a=this.chart,h=this.buttonOptions[t],l=a.xAxis[0],d=a.scroller&&a.scroller.getUnionExtremes()||l||{},c=h.type,p=h.dataGrouping,u=d.dataMin,f=d.dataMax,g=pd(null==l?void 0:l.max)?Math.round(Math.min(l.max,null!=f?f:l.max)):void 0,v=h._range,m=!0;if(null!==u&&null!==f){if(this.setSelected(t),p&&(this.forcedDataGrouping=!0,rl.prototype.setDataGrouping.call(l||{chart:this.chart},p,!1),this.frozenStates=h.preserveDataGrouping),"month"===c||"year"===c)l?(n={range:h,max:g,chart:a,dataMin:u,dataMax:f},i=l.minFromRange.call(n),pd(n.newMax)&&(g=n.newMax),m=!1):v=h;else if(v)pd(g)&&(g=Math.min((i=Math.max(g-v,u))+v,f),m=!1);else if("ytd"===c){if(l)!l.hasData()||pd(f)&&pd(u)||(u=Number.MAX_VALUE,f=-Number.MAX_VALUE,a.series.forEach(function(t){var e=t.getColumn("x");e.length&&(u=Math.min(e[0],u),f=Math.max(e[e.length-1],f))}),e=!1),pd(f)&&pd(u)&&(i=r=(s=this.getYTDExtremes(f,u)).min,g=s.max);else{this.deferredYTDClick=t;return}}else"all"===c&&l&&(a.navigator&&a.navigator.baseSeries[0]&&(a.navigator.baseSeries[0].xAxis.options.range=void 0),i=u,g=f);if(m&&h._offsetMin&&pr(i)&&(i+=h._offsetMin),h._offsetMax&&pr(g)&&(g+=h._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=t+1),l)pd(i)&&pd(g)&&(l.setExtremes(i,g,pf(e,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:h}),a.setFixedRange(h._range));else{o=pg(a.options.xAxis||{})[0];var y=pe(a,"afterCreateAxes",function(){var t=a.xAxis[0];t.range=t.options.range=v,t.min=t.options.min=r});pe(a,"load",function(){var t=a.xAxis[0];a.setFixedRange(h._range),t.options.range=o.range,t.options.min=o.min,y()})}pl(this,"afterBtnClick")}},t.prototype.setSelected=function(t){this.selected=this.options.selected=t},t.prototype.init=function(t){var e=this,i=t.options.rangeSelector,o=i.buttons,r=i.selected,n=function(){var t=e.minInput,i=e.maxInput;t&&t.blur&&pl(t,"blur"),i&&i.blur&&pl(i,"blur")};e.chart=t,e.options=i,e.buttons=[],e.buttonOptions=o,this.eventsToUnbind=[],this.eventsToUnbind.push(pe(t.container,"mousedown",n)),this.eventsToUnbind.push(pe(t,"resize",n)),o.forEach(e.computeButtonRange),void 0!==r&&o[r]&&this.clickButton(r,!1),this.eventsToUnbind.push(pe(t,"load",function(){t.xAxis&&t.xAxis[0]&&pe(t.xAxis[0],"setExtremes",function(i){pd(this.max)&&pd(this.min)&&this.max-this.min!==t.fixedRange&&"rangeSelectorButton"!==i.trigger&&"updatedData"!==i.trigger&&e.forcedDataGrouping&&!e.frozenStates&&this.setDataGrouping(!1,!1)})})),this.createElements()},t.prototype.updateButtonStates=function(){var t=this,e=this.chart,i=this.dropdown,o=this.dropdownLabel,r=e.xAxis[0],n=Math.round(r.max-r.min),s=!r.hasVisibleSeries,a=24*36e5,h=e.scroller&&e.scroller.getUnionExtremes()||r,l=h.dataMin,d=h.dataMax,c=t.getYTDExtremes(d,l),p=c.min,u=c.max,f=t.selected,g=t.options.allButtonsEnabled,v=Array(t.buttonOptions.length).fill(0),m=pd(f),y=t.buttons,x=!1,b=null;t.buttonOptions.forEach(function(e,i){var o,h=e._range,c=e.type,y=e.count||1,M=e._offsetMax-e._offsetMin,k=i===f,w=h>d-l,S=h<r.minRange,A=!1,T=h===n;if(k&&w&&(x=!0),r.isOrdinal&&(null===(o=r.ordinal)||void 0===o?void 0:o.positions)&&h&&n<h){var P=r.ordinal.positions,O=pt.Additions.findIndexOf(P,r.min,!0),C=Math.min(pt.Additions.findIndexOf(P,r.max,!0)+1,P.length-1);P[C]-P[O]>h&&(T=!0)}else("month"===c||"year"===c)&&n+36e5>=({month:28,year:365})[c]*a*y-M&&n-36e5<=({month:31,year:366})[c]*a*y+M?T=!0:"ytd"===c?(T=u-p+M===n,A=!k):"all"===c&&(T=r.max-r.min>=d-l);var E=!g&&!(x&&"all"===c)&&(w||S||s),L=x&&"all"===c||!A&&T||k&&t.frozenStates;E?v[i]=3:L&&(!m||i===f)&&(b=i)}),null!==b?(v[b]=2,t.setSelected(b),this.dropdown&&(this.dropdown.selectedIndex=b+1)):(t.setSelected(),this.dropdown&&(this.dropdown.selectedIndex=-1),o&&(o.setState(0),o.attr({text:(t0.lang.rangeSelectorZoom||"")+" ▾"})));for(var M=0;M<v.length;M++){var k=v[M],w=y[M];if(w.state!==k&&(w.setState(k),i)){i.options[M+1].disabled=3===k,2===k&&(o&&(o.setState(2),o.attr({text:t.buttonOptions[M].text+" ▾"})),i.selectedIndex=M+1);var S=o.getBBox();po(i,{width:""+S.width+"px",height:""+S.height+"px"})}}},t.prototype.computeButtonRange=function(t){var e=t.type,i=t.count||1,o={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};o[e]?t._range=o[e]*i:("month"===e||"year"===e)&&(t._range=24*({month:30,year:365})[e]*36e5*i),t._offsetMin=pf(t.offsetMin,0),t._offsetMax=pf(t.offsetMax,0),t._range+=t._offsetMax-t._offsetMin},t.prototype.getInputValue=function(t){var e="min"===t?this.minInput:this.maxInput,i=this.chart.options.rangeSelector,o=this.chart.time;return e?("text"===e.type&&i.inputDateParser||this.defaultInputDateParser)(e.value,"UTC"===o.timezone,o):0},t.prototype.setInputValue=function(t,e){var i=this.options,o=this.chart.time,r="min"===t?this.minInput:this.maxInput,n="min"===t?this.minDateBox:this.maxDateBox;if(r){r.setAttribute("type",pv(i.inputDateFormat||"%e %b %Y"));var s=r.getAttribute("data-hc-time"),a=pr(s)?Number(s):void 0;if(pr(e)){var h=a;pr(h)&&r.setAttribute("data-hc-time-previous",h),r.setAttribute("data-hc-time",e),a=e}r.value=o.dateFormat(this.inputTypeFormats[r.type]||i.inputEditDateFormat,a),n&&n.attr({text:o.dateFormat(i.inputDateFormat,a)})}},t.prototype.setInputExtremes=function(t,e,i){var o="min"===t?this.minInput:this.maxInput;if(o){var r=this.inputTypeFormats[o.type],n=this.chart.time;if(r){var s=n.dateFormat(r,e);o.min!==s&&(o.min=s);var a=n.dateFormat(r,i);o.max!==a&&(o.max=a)}}},t.prototype.showInput=function(t){var e="min"===t?this.minDateBox:this.maxDateBox,i="min"===t?this.minInput:this.maxInput;if(i&&e&&this.inputGroup){var o="text"===i.type,r=this.inputGroup,n=r.translateX,s=void 0===n?0:n,a=r.translateY,h=void 0===a?0:a,l=e.x,d=void 0===l?0:l,c=e.width,p=void 0===c?0:c,u=e.height,f=void 0===u?0:u,g=this.options.inputBoxWidth;po(i,{width:o?p+(g?-2:20)+"px":"auto",height:f-2+"px",border:"2px solid silver"}),o&&g?po(i,{left:s+d+"px",top:h+"px"}):po(i,{left:Math.min(Math.round(d+s-(i.offsetWidth-p)/2),this.chart.chartWidth-i.offsetWidth)+"px",top:h-(i.offsetHeight-f)/2+"px"})}},t.prototype.hideInput=function(t){var e="min"===t?this.minInput:this.maxInput;e&&po(e,{top:"-9999em",border:0,width:"1px",height:"1px"})},t.prototype.defaultInputDateParser=function(t,e,i){return(null==i?void 0:i.parse(t))||0},t.prototype.drawInput=function(t){var e=this.chart,i=this.div,o=this.inputGroup,r=this,n=e.renderer.style||{},s=e.renderer,a=e.options.rangeSelector,h=t0.lang,l="min"===t;function d(t){var i,o=r.maxInput,n=r.minInput,s=e.xAxis[0],a=(null===(i=e.scroller)||void 0===i?void 0:i.getUnionExtremes())||s,h=a.dataMin,d=a.dataMax,c=e.xAxis[0].getExtremes()[t],p=r.getInputValue(t);pd(p)&&p!==c&&(l&&o&&pd(h)?p>Number(o.getAttribute("data-hc-time"))?p=void 0:p<h&&(p=h):n&&pd(d)&&(p<Number(n.getAttribute("data-hc-time"))?p=void 0:p>d&&(p=d)),void 0!==p&&s.setExtremes(l?p:s.min,l?s.max:p,void 0,void 0,{trigger:"rangeSelectorInput"}))}var c=h[l?"rangeSelectorFrom":"rangeSelectorTo"]||"",p=s.label(c,0).addClass("highcharts-range-label").attr({padding:c?2:0,height:c?a.inputBoxHeight:0}).add(o),u=s.label("",0).addClass("highcharts-range-input").attr({padding:2,width:a.inputBoxWidth,height:a.inputBoxHeight,"text-align":"center"}).on("click",function(){r.showInput(t),r[t+"Input"].focus()});e.styledMode||u.attr({stroke:a.inputBoxBorderColor,"stroke-width":1}),u.add(o);var f=pi("input",{name:t,className:"highcharts-range-selector"},void 0,i);f.setAttribute("type",pv(a.inputDateFormat||"%e %b %Y")),e.styledMode||(p.css(pp(n,a.labelStyle)),u.css(pp({color:"#333333"},n,a.inputStyle)),po(f,ph({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:n.fontSize,fontFamily:n.fontFamily,top:"-9999em"},a.inputStyle))),f.onfocus=function(){r.showInput(t)},f.onblur=function(){f===ta.doc.activeElement&&d(t),r.hideInput(t),r.setInputValue(t),f.blur()};var g=!1;return f.onchange=function(){g||(d(t),r.hideInput(t),f.blur())},f.onkeypress=function(e){13===e.keyCode&&d(t)},f.onkeydown=function(e){g=!0,("ArrowUp"===e.key||"ArrowDown"===e.key||"Tab"===e.key)&&d(t)},f.onkeyup=function(){g=!1},{dateBox:u,input:f,label:p}},t.prototype.getPosition=function(){var t=this.chart,e=t.options.rangeSelector,i="top"===e.verticalAlign?t.plotTop-t.axisOffset[0]:0;return{buttonTop:i+e.buttonPosition.y,inputTop:i+e.inputPosition.y-10}},t.prototype.getYTDExtremes=function(t,e){var i=this.chart.time,o=i.toParts(t)[0];return{max:t,min:Math.max(e,i.makeTime(o,0))}},t.prototype.createElements=function(){var t,e=this.chart,i=e.renderer,o=e.container,r=e.options,n=r.rangeSelector,s=n.inputEnabled,a=pf(null===(t=r.chart.style)||void 0===t?void 0:t.zIndex,0)+1;!1!==n.enabled&&(this.group=i.g("range-selector-group").attr({zIndex:7}).add(),this.div=pi("div",void 0,{position:"relative",height:0,zIndex:a}),this.buttonOptions.length&&this.renderButtons(),o.parentNode&&o.parentNode.insertBefore(this.div,o),s&&this.createInputs())},t.prototype.createInputs=function(){this.inputGroup=this.chart.renderer.g("input-group").add(this.group);var t=this.drawInput("min");this.minDateBox=t.dateBox,this.minLabel=t.label,this.minInput=t.input;var e=this.drawInput("max");this.maxDateBox=e.dateBox,this.maxLabel=e.label,this.maxInput=e.input},t.prototype.render=function(t,e){if(!1!==this.options.enabled){var i,o,r=this.chart,n=r.options.rangeSelector;if(n.inputEnabled){this.inputGroup||this.createInputs(),this.setInputValue("min",t),this.setInputValue("max",e),this.chart.styledMode||(null===(i=this.maxLabel)||void 0===i||i.css(n.labelStyle),null===(o=this.minLabel)||void 0===o||o.css(n.labelStyle));var s=r.scroller&&r.scroller.getUnionExtremes()||r.xAxis[0]||{};if(pr(s.dataMin)&&pr(s.dataMax)){var a=r.xAxis[0].minRange||0;this.setInputExtremes("min",s.dataMin,Math.min(s.dataMax,this.getInputValue("max"))-a),this.setInputExtremes("max",Math.max(s.dataMin,this.getInputValue("min"))+a,s.dataMax)}if(this.inputGroup){var h=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(t){if(t){var e=t.getBBox().width;e&&(t.attr({x:h}),h+=e+n.inputSpacing)}})}}else this.inputGroup&&(this.inputGroup.destroy(),delete this.inputGroup);!this.chart.styledMode&&this.zoomText&&this.zoomText.css(n.labelStyle),this.alignElements(),this.updateButtonStates()}},t.prototype.renderButtons=function(){var t,e,i,o=this,r=this.chart,n=this.options,s=t0.lang,a=r.renderer,h=pp(n.buttonTheme),l=h&&h.states;delete h.width,delete h.states,this.buttonGroup=a.g("range-selector-buttons").add(this.group);var d=this.dropdown=pi("select",void 0,{position:"absolute",padding:0,border:0,cursor:"pointer",opacity:1e-4},this.div),c=null===(t=r.userOptions.rangeSelector)||void 0===t?void 0:t.buttonTheme;this.dropdownLabel=a.button("",0,0,function(){},pp(h,{"stroke-width":pf(h["stroke-width"],0),width:"auto",paddingLeft:pf(n.buttonTheme.paddingLeft,null==c?void 0:c.padding,8),paddingRight:pf(n.buttonTheme.paddingRight,null==c?void 0:c.padding,8)}),l&&l.hover,l&&l.select,l&&l.disabled).hide().add(this.group),pe(d,"touchstart",function(){d.style.fontSize="16px"});var p=ta.isMS?"mouseover":"mouseenter",u=ta.isMS?"mouseout":"mouseleave";pe(d,p,function(){pl(o.dropdownLabel.element,p)}),pe(d,u,function(){pl(o.dropdownLabel.element,u)}),pe(d,"change",function(){pl(o.buttons[d.selectedIndex-1].element,"click")}),this.zoomText=a.label(s.rangeSelectorZoom||"",0).attr({padding:n.buttonTheme.padding,height:n.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(n.labelStyle),(null===(e=(i=n.buttonTheme)["stroke-width"])||void 0===e)&&(i["stroke-width"]=0)),pi("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,d),this.createButtons()},t.prototype.createButtons=function(){var t=this,e=pp(this.options.buttonTheme),i=e&&e.states,o=e.width||28;delete e.width,delete e.states,this.buttonOptions.forEach(function(e,r){t.createButton(e,r,o,i)})},t.prototype.createButton=function(t,e,i,o){var r=this,n=this.dropdown,s=this.buttons,a=this.chart,h=this.options,l=a.renderer,d=pp(h.buttonTheme);null==n||n.add(pi("option",{textContent:t.title||t.text}),e+2),s[e]=l.button(t.text,0,0,function(i){var o,n=t.events&&t.events.click;n&&(o=n.call(t,i)),!1!==o&&r.clickButton(e),r.isActive=!0},d,o&&o.hover,o&&o.select,o&&o.disabled).attr({"text-align":"center",width:i}).add(this.buttonGroup),t.title&&s[e].attr("title",t.title)},t.prototype.alignElements=function(){var t,e=this,i=this.buttonGroup,o=this.buttons,r=this.chart,n=this.group,s=this.inputGroup,a=this.options,h=this.zoomText,l=r.options,d=l.exporting&&!1!==l.exporting.enabled&&l.navigation&&l.navigation.buttonOptions,c=a.buttonPosition,p=a.inputPosition,u=a.verticalAlign,f=function(t,i,o){return d&&e.titleCollision(r)&&"top"===u&&o&&i.y-t.getBBox().height-12<(d.y||0)+(d.height||0)+r.spacing[0]?-40:0},g=r.plotLeft;if(n&&c&&p){var v=c.x-r.spacing[3];if(i){if(this.positionButtons(),!this.initialButtonGroupWidth){var m=0;h&&(m+=h.getBBox().width+5),o.forEach(function(t,e){m+=t.width||0,e!==o.length-1&&(m+=a.buttonSpacing)}),this.initialButtonGroupWidth=m}g-=r.spacing[3];var y=f(i,c,"right"===c.align||"right"===p.align);this.alignButtonGroup(y),(null===(t=this.buttonGroup)||void 0===t?void 0:t.translateY)&&this.dropdownLabel.attr({y:this.buttonGroup.translateY}),n.placed=i.placed=r.hasLoaded}var x=0;a.inputEnabled&&s&&(x=f(s,p,"right"===c.align||"right"===p.align),"left"===p.align?v=g:"right"===p.align&&(v=-Math.max(r.axisOffset[1],-x)),s.align({y:p.y,width:s.getBBox().width,align:p.align,x:p.x+v-2},!0,r.spacingBox),s.placed=r.hasLoaded),this.handleCollision(x),n.align({verticalAlign:u},!0,r.spacingBox);var b=n.alignAttr.translateY,M=n.getBBox().height+20,k=0;if("bottom"===u){var w=r.legend&&r.legend.options;k=b-(M=M+(w&&"bottom"===w.verticalAlign&&w.enabled&&!w.floating?r.legend.legendHeight+pf(w.margin,10):0)-20)-(a.floating?0:a.y)-(r.titleOffset?r.titleOffset[2]:0)-10}"top"===u?(a.floating&&(k=0),r.titleOffset&&r.titleOffset[0]&&(k=r.titleOffset[0]),k+=r.margin[0]-r.spacing[0]||0):"middle"===u&&(p.y===c.y?k=b:(p.y||c.y)&&(p.y<0||c.y<0?k-=Math.min(p.y,c.y):k=b-M)),n.translate(a.x,a.y+Math.floor(k));var S=this.minInput,A=this.maxInput,T=this.dropdown;a.inputEnabled&&S&&A&&(S.style.marginTop=n.translateY+"px",A.style.marginTop=n.translateY+"px"),T&&(T.style.marginTop=n.translateY+"px")}},t.prototype.redrawElements=function(){var t,e,i,o,r,n,s,a=this.chart,h=this.options,l=h.inputBoxHeight,d=h.inputBoxBorderColor;if(null===(t=this.maxDateBox)||void 0===t||t.attr({height:l}),null===(e=this.minDateBox)||void 0===e||e.attr({height:l}),a.styledMode||(null===(i=this.maxDateBox)||void 0===i||i.attr({stroke:d}),null===(o=this.minDateBox)||void 0===o||o.attr({stroke:d})),this.isDirty){this.isDirty=!1,this.isCollapsed=void 0;var c=null!==(r=this.options.buttons)&&void 0!==r?r:[],p=Math.min(c.length,this.buttonOptions.length),u=this.dropdown,f=pp(this.options.buttonTheme),g=f&&f.states,v=f.width||28;if(c.length<this.buttonOptions.length)for(var m=this.buttonOptions.length-1;m>=c.length;m--){var y=this.buttons.pop();null==y||y.destroy(),null===(n=this.dropdown)||void 0===n||n.options.remove(m+1)}for(var m=p-1;m>=0;m--)if(0!==Object.keys(ps(c[m],this.buttonOptions[m])).length){var x=c[m];this.buttons[m].destroy(),null==u||u.options.remove(m+1),this.createButton(x,m,v,g),this.computeButtonRange(x)}if(c.length>this.buttonOptions.length)for(var m=this.buttonOptions.length;m<c.length;m++)this.createButton(c[m],m,v,g),this.computeButtonRange(c[m]);this.buttonOptions=null!==(s=this.options.buttons)&&void 0!==s?s:[],pr(this.options.selected)&&this.buttons.length&&this.clickButton(this.options.selected,!1)}},t.prototype.alignButtonGroup=function(t,e){var i=this.chart,o=this.options,r=this.buttonGroup,n=this.dropdown,s=this.dropdownLabel,a=o.buttonPosition,h=i.plotLeft-i.spacing[3],l=a.x-i.spacing[3],d=i.plotLeft;"right"===a.align?(l+=t-h,this.hasVisibleDropdown&&(d=i.chartWidth+t-this.maxButtonWidth()-20)):"center"===a.align&&(l-=h/2,this.hasVisibleDropdown&&(d=i.chartWidth/2-this.maxButtonWidth())),n&&po(n,{left:d+"px",top:(null==r?void 0:r.translateY)+"px"}),null==s||s.attr({x:d}),r&&r.align({y:a.y,width:pf(e,this.initialButtonGroupWidth),align:a.align,x:l},!0,i.spacingBox)},t.prototype.positionButtons=function(){var t=this.buttons,e=this.chart,i=this.options,o=this.zoomText,r=e.hasLoaded?"animate":"attr",n=i.buttonPosition,s=e.plotLeft,a=s;o&&"hidden"!==o.visibility&&(o[r]({x:pf(s+n.x,s)}),a+=n.x+o.getBBox().width+5);for(var h=0,l=this.buttonOptions.length;h<l;++h)"hidden"!==t[h].visibility?(t[h][r]({x:a}),a+=(t[h].width||0)+i.buttonSpacing):t[h][r]({x:s})},t.prototype.handleCollision=function(t){var e=this.chart,i=this.buttonGroup,o=this.inputGroup,r=this.initialButtonGroupWidth,n=this.options,s=n.buttonPosition,a=n.dropdown,h=n.inputPosition,l=function(){o&&i&&o.attr({translateX:o.alignAttr.translateX+(e.axisOffset[1]>=-t?0:-t),translateY:o.alignAttr.translateY+i.getBBox().height+10})};o&&i?h.align===s.align?(l(),r>e.plotWidth+t-20?this.collapseButtons():this.expandButtons()):r-t+o.getBBox().width>e.plotWidth?"responsive"===a?this.collapseButtons():l():this.expandButtons():i&&"responsive"===a&&(r>e.plotWidth?this.collapseButtons():this.expandButtons()),i&&("always"===a&&this.collapseButtons(),"never"===a&&this.expandButtons()),this.alignButtonGroup(t)},t.prototype.collapseButtons=function(){var t=this.buttons,e=this.zoomText;!0!==this.isCollapsed&&(this.isCollapsed=!0,e.hide(),t.forEach(function(t){t.hide()}),this.showDropdown())},t.prototype.expandButtons=function(){var t=this.buttons,e=this.zoomText;!1!==this.isCollapsed&&(this.isCollapsed=!1,this.hideDropdown(),e.show(),t.forEach(function(t){t.show()}),this.positionButtons())},t.prototype.showDropdown=function(){var t=this.buttonGroup,e=this.dropdownLabel,i=this.dropdown;t&&i&&(e.show(),po(i,{visibility:"inherit"}),this.hasVisibleDropdown=!0)},t.prototype.hideDropdown=function(){var t=this.dropdown;t&&(this.dropdownLabel.hide(),po(t,{visibility:"hidden",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)},t.prototype.getHeight=function(){var t=this.options,e=this.group,i=t.inputPosition,o=t.buttonPosition,r=t.y,n=o.y,s=i.y,a=0;if(t.height)return t.height;this.alignElements(),a=e?e.getBBox(!0).height+13+r:0;var h=Math.min(s,n);return(s<0&&n<0||s>0&&n>0)&&(a+=Math.abs(h)),a},t.prototype.titleCollision=function(t){return!(t.options.title.text||t.options.subtitle.text)},t.prototype.update=function(t,e){void 0===e&&(e=!0);var i=this.chart;if(pp(!0,this.options,t),this.options.selected&&this.options.selected>=this.options.buttons.length&&(this.options.selected=void 0,i.options.rangeSelector.selected=void 0),pr(t.enabled))return this.destroy(),this.init(i);this.isDirty=!!t.buttons,e&&this.render()},t.prototype.destroy=function(){var e=this,i=e.minInput,o=e.maxInput;e.eventsToUnbind&&(e.eventsToUnbind.forEach(function(t){return t()}),e.eventsToUnbind=void 0),pn(e.buttons),i&&(i.onfocus=i.onblur=i.onchange=null),o&&(o.onfocus=o.onblur=o.onchange=null),pu(e,function(i,o){i&&"chart"!==o&&(i instanceof im?i.destroy():i instanceof window.HTMLElement&&pa(i),delete e[o]),i!==t.prototype[o]&&(e[o]=null)},this),this.buttons=[]},t}();ph(pm.prototype,{inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}});var py=function(t,e){for(var i=[],o=0;o<t.length;o++){var r=t[o][1],n=t[o][2];if("number"==typeof r&&"number"==typeof n){if(0===o)i.push(["M",r,n]);else if(o===t.length-1)i.push(["L",r,n]);else if(e){var s=t[o-1],a=t[o+1];if(s&&a){var h=s[1],l=s[2],d=a[1],c=a[2];if("number"==typeof h&&"number"==typeof d&&"number"==typeof l&&"number"==typeof c&&h!==d&&l!==c){var p=h<d?1:-1,u=l<c?1:-1;i.push(["L",r-p*Math.min(Math.abs(r-h),e),n-u*Math.min(Math.abs(n-l),e)],["C",r,n,r,n,r+p*Math.min(Math.abs(r-d),e),n+u*Math.min(Math.abs(n-c),e)])}}}else i.push(["L",r,n])}}return i},px=tI.pick,pb=Math.min,pM=Math.max,pk=Math.abs;function pw(t,e,i){for(var o,r,n=e-1e-7,s=i||0,a=t.length-1;s<=a;)if((r=n-t[o=a+s>>1].xMin)>0)s=o+1;else{if(!(r<0))return o;a=o-1}return s>0?s-1:0}function pS(t,e){for(var i,o=pw(t,e.x+1)+1;o--;)if(t[o].xMax>=e.x&&(i=t[o],e.x<=i.xMax&&e.x>=i.xMin&&e.y<=i.yMax&&e.y>=i.yMin))return o;return -1}function pA(t){var e=[];if(t.length){e.push(["M",t[0].start.x,t[0].start.y]);for(var i=0;i<t.length;++i)e.push(["L",t[i].end.x,t[i].end.y])}return e}function pT(t,e){t.yMin=pM(t.yMin,e.yMin),t.yMax=pb(t.yMax,e.yMax),t.xMin=pM(t.xMin,e.xMin),t.xMax=pb(t.xMax,e.xMax)}var pP=function(t,e,i){var o,r,n,s,a,h=[],l=i.chartObstacles,d=pS(l,t),c=pS(l,e),p=px(i.startDirectionX,pk(e.x-t.x)>pk(e.y-t.y))?"x":"y";function u(t,e,i,o,r){var n={x:t.x,y:t.y};return n[e]=i[o||e]+(r||0),n}function f(t,e,i){var o=pk(e[i]-t[i+"Min"])>pk(e[i]-t[i+"Max"]);return u(e,i,t,i+(o?"Max":"Min"),o?1:-1)}c>-1?(o={start:n=f(l[c],e,p),end:e},a=n):a=e,d>-1&&(n=f(r=l[d],t,p),h.push({start:t,end:n}),n[p]>=t[p]==n[p]>=a[p]&&(s=t[p="y"===p?"x":"y"]<e[p],h.push({start:n,end:u(n,p,r,p+(s?"Max":"Min"),s?1:-1)}),p="y"===p?"x":"y"));var g=h.length?h[h.length-1].end:t;n=u(g,p,a),h.push({start:g,end:n});var v=u(n,p="y"===p?"x":"y",a);return h.push({start:n,end:v}),h.push(o),{path:py(pA(h),i.radius),obstacles:h}};function pO(t,e,i){var o,r,n,s,a,h,l,d=px(i.startDirectionX,pk(e.x-t.x)>pk(e.y-t.y)),c=d?"x":"y",p=[],u=i.obstacleMetrics,f=pb(t.x,e.x)-u.maxWidth-10,g=pM(t.x,e.x)+u.maxWidth+10,v=pb(t.y,e.y)-u.maxHeight-10,m=pM(t.y,e.y)+u.maxHeight+10,y=!1,x=i.chartObstacles,b=pw(x,g),M=pw(x,f);function k(t,e,i){var o,r,n,s,a=t.x<e.x?1:-1;t.x<e.x?(o=t,r=e):(o=e,r=t),t.y<e.y?(s=t,n=e):(s=e,n=t);for(var h=a<0?pb(pw(x,r.x),x.length-1):0;x[h]&&(a>0&&x[h].xMin<=r.x||a<0&&x[h].xMax>=o.x);){if(x[h].xMin<=r.x&&x[h].xMax>=o.x&&x[h].yMin<=n.y&&x[h].yMax>=s.y){if(i)return{y:t.y,x:t.x<e.x?x[h].xMin-1:x[h].xMax+1,obstacle:x[h]};return{x:t.x,y:t.y<e.y?x[h].yMin-1:x[h].yMax+1,obstacle:x[h]}}h+=a}return e}function w(t,e,i,o,r){var n=r.soft,s=r.hard,a=o?"x":"y",h={x:e.x,y:e.y},l={x:e.x,y:e.y},d=t[a+"Max"]>=n[a+"Max"],c=t[a+"Min"]<=n[a+"Min"],p=t[a+"Max"]>=s[a+"Max"],u=t[a+"Min"]<=s[a+"Min"],f=pk(t[a+"Min"]-e[a]),g=pk(t[a+"Max"]-e[a]),v=10>pk(f-g)?e[a]<i[a]:g<f;l[a]=t[a+"Min"],h[a]=t[a+"Max"];var m=k(e,l,o)[a]!==l[a],y=k(e,h,o)[a]!==h[a];return v=m?!y||v:!y&&v,v=c?!d||v:!d&&v,v=u?!p||v:!p&&v}for((b=pS(x=x.slice(M,b+1),e))>-1&&(o=x[b],r=e,n=pb(o.xMax-r.x,r.x-o.xMin)<pb(o.yMax-r.y,r.y-o.yMin),s=w(o,r,t,n,{soft:i.hardBounds,hard:i.hardBounds}),p.push({end:e,start:l=n?{y:r.y,x:o[s?"xMax":"xMin"]+(s?1:-1)}:{x:r.x,y:o[s?"yMax":"yMin"]+(s?1:-1)}}),e=l);(b=pS(x,e))>-1;)h=e[c]-t[c]<0,(l={x:e.x,y:e.y})[c]=x[b][h?c+"Max":c+"Min"]+(h?1:-1),p.push({end:e,start:l}),e=l;return{path:pA(a=(a=function t(e,o,r){if(e.x===o.x&&e.y===o.y)return[];var n,s,a,h,l,d,c,p=r?"x":"y",u=i.obstacleOptions.margin,b={soft:{xMin:f,xMax:g,yMin:v,yMax:m},hard:i.hardBounds};return(l=pS(x,e))>-1?(h=w(l=x[l],e,o,r,b),pT(l,i.hardBounds),c=r?{y:e.y,x:l[h?"xMax":"xMin"]+(h?1:-1)}:{x:e.x,y:l[h?"yMax":"yMin"]+(h?1:-1)},(d=pS(x,c))>-1&&(pT(d=x[d],i.hardBounds),c[p]=h?pM(l[p+"Max"]-u+1,(d[p+"Min"]+l[p+"Max"])/2):pb(l[p+"Min"]+u-1,(d[p+"Max"]+l[p+"Min"])/2),e.x===c.x&&e.y===c.y?(y&&(c[p]=h?pM(l[p+"Max"],d[p+"Max"])+1:pb(l[p+"Min"],d[p+"Min"])-1),y=!y):y=!1),s=[{start:e,end:c}]):(n=k(e,{x:r?o.x:e.x,y:r?e.y:o.y},r),s=[{start:e,end:{x:n.x,y:n.y}}],n[r?"x":"y"]!==o[r?"x":"y"]&&(h=w(n.obstacle,n,o,!r,b),pT(n.obstacle,i.hardBounds),a={x:r?n.x:n.obstacle[h?"xMax":"xMin"]+(h?1:-1),y:r?n.obstacle[h?"yMax":"yMin"]+(h?1:-1):n.y},r=!r,s=s.concat(t({x:n.x,y:n.y},a,r)))),s=s.concat(t(s[s.length-1].end,o,!r))}(t,e,d)).concat(p.reverse())),obstacles:a}}pP.requiresObstacles=!0,pO.requiresObstacles=!0;var pC={connectors:{type:"straight",radius:0,lineWidth:1,marker:{enabled:!1,align:"center",verticalAlign:"middle",inside:!1,lineWidth:1},startMarker:{symbol:"diamond"},endMarker:{symbol:"arrow-filled"}}},pE=tI.defined,pL=tI.error,pB=tI.merge;function pI(t){var e=t.shapeArgs;if(e)return{xMin:e.x||0,xMax:(e.x||0)+(e.width||0),yMin:e.y||0,yMax:(e.y||0)+(e.height||0)};var i=t.graphic&&t.graphic.getBBox();return i?{xMin:t.plotX-i.width/2,xMax:t.plotX+i.width/2,yMin:t.plotY-i.height/2,yMax:t.plotY+i.height/2}:null}!function(t){function e(t){var e,i,o=pI(this);switch(t.align){case"right":e="xMax";break;case"left":e="xMin"}switch(t.verticalAlign){case"top":i="yMin";break;case"bottom":i="yMax"}return{x:e?o[e]:(o.xMin+o.xMax)/2,y:i?o[i]:(o.yMin+o.yMax)/2}}function i(t,e){var i;return!pE(e)&&(i=pI(this))&&(e={x:(i.xMin+i.xMax)/2,y:(i.yMin+i.yMax)/2}),Math.atan2(e.y-t.y,t.x-e.x)}function o(t,e,i){for(var o=2*Math.PI,r=pI(this),n=r.xMax-r.xMin,s=r.yMax-r.yMin,a=Math.atan2(s,n),h=n/2,l=s/2,d=r.xMin+h,c=r.yMin+l,p={x:d,y:c},u=t,f=1,g=!1,v=1,m=1;u<-Math.PI;)u+=o;for(;u>Math.PI;)u-=o;return f=Math.tan(u),u>-a&&u<=a?(m=-1,g=!0):u>a&&u<=Math.PI-a?m=-1:u>Math.PI-a||u<=-(Math.PI-a)?(v=-1,g=!0):v=-1,g?(p.x+=v*h,p.y+=m*h*f):(p.x+=s/(2*f)*v,p.y+=m*l),i.x!==d&&(p.x=i.x),i.y!==c&&(p.y=i.y),{x:p.x+e*Math.cos(u),y:p.y-e*Math.sin(u)}}t.compose=function(t,r,n){var s=n.prototype;s.getPathfinderAnchorPoint||(t.prototype.callbacks.push(function(t){!1!==t.options.connectors.enabled&&((t.options.pathfinder||t.series.reduce(function(t,e){return e.options&&pB(!0,e.options.connectors=e.options.connectors||{},e.options.pathfinder),t||e.options&&e.options.pathfinder},!1))&&(pB(!0,t.options.connectors=t.options.connectors||{},t.options.pathfinder),pL('WARNING: Pathfinder options have been renamed. Use "chart.connectors" or "series.connectors" instead.')),this.pathfinder=new r(this),this.pathfinder.update(!0))}),s.getMarkerVector=o,s.getPathfinderAnchorPoint=e,s.getRadiansToVector=i,t2(pC))}}(te||(te={}));var pD=te,pz=tI.addEvent,pR=tI.defined,pN=tI.pick,pW=tI.splat,pG=Math.max,pX=Math.min,pH=function(){function t(t){this.init(t)}return t.compose=function(e,i){pD.compose(e,t,i)},t.prototype.init=function(t){this.chart=t,this.connections=[],pz(t,"redraw",function(){this.pathfinder.update()})},t.prototype.update=function(t){var e=this.chart,i=this,o=i.connections;i.connections=[],e.series.forEach(function(t){t.visible&&!t.options.isInternal&&t.points.forEach(function(t){var o,r,n=t.options;n&&n.dependency&&(n.connect=n.dependency);var s=(null===(o=t.options)||void 0===o?void 0:o.connect)?pW(t.options.connect):[];t.visible&&!1!==t.isInside&&s.forEach(function(o){var n="string"==typeof o?o:o.to;n&&(r=e.get(n)),r instanceof nd&&r.series.visible&&r.visible&&!1!==r.isInside&&i.connections.push(new dl(t,r,"string"==typeof o?{}:o))})})});for(var r=0,n=void 0,s=void 0,a=o.length,h=i.connections.length;r<a;++r){s=!1;var l=o[r];for(n=0;n<h;++n){var d=i.connections[n];if((l.options&&l.options.type)===(d.options&&d.options.type)&&l.fromPoint===d.fromPoint&&l.toPoint===d.toPoint){d.graphics=l.graphics,s=!0;break}}s||l.destroy()}delete this.chartObstacles,delete this.lineObstacles,i.renderConnections(t)},t.prototype.renderConnections=function(t){t?this.chart.series.forEach(function(t){var e=function(){var e=t.chart.pathfinder;(e&&e.connections||[]).forEach(function(e){e.fromPoint&&e.fromPoint.series===t&&e.render()}),t.pathfinderRemoveRenderEvent&&(t.pathfinderRemoveRenderEvent(),delete t.pathfinderRemoveRenderEvent)};!1===t.options.animation?e():t.pathfinderRemoveRenderEvent=pz(t,"afterAnimate",e)}):this.connections.forEach(function(t){t.render()})},t.prototype.getChartObstacles=function(t){for(var e,i=this.chart.series,o=pN(t.algorithmMargin,0),r=[],n=0,s=i.length;n<s;++n)if(i[n].visible&&!i[n].options.isInternal)for(var a=0,h=i[n].points.length,l=void 0,d=void 0;a<h;++a)(d=i[n].points[a]).visible&&(l=function(t){var e=t.shapeArgs;if(e)return{xMin:e.x||0,xMax:(e.x||0)+(e.width||0),yMin:e.y||0,yMax:(e.y||0)+(e.height||0)};var i=t.graphic&&t.graphic.getBBox();return i?{xMin:t.plotX-i.width/2,xMax:t.plotX+i.width/2,yMin:t.plotY-i.height/2,yMax:t.plotY+i.height/2}:null}(d))&&r.push({xMin:l.xMin-o,xMax:l.xMax+o,yMin:l.yMin-o,yMax:l.yMax+o});return r=r.sort(function(t,e){return t.xMin-e.xMin}),pR(t.algorithmMargin)||(e=t.algorithmMargin=function(t){for(var e,i=t.length,o=[],r=0;r<i;++r)for(var n=r+1;n<i;++n)(e=function t(e,i,o){var r=pN(o,10),n=e.yMax+r>i.yMin-r&&e.yMin-r<i.yMax+r,s=e.xMax+r>i.xMin-r&&e.xMin-r<i.xMax+r,a=n?e.xMin>i.xMax?e.xMin-i.xMax:i.xMin-e.xMax:1/0,h=s?e.yMin>i.yMax?e.yMin-i.yMax:i.yMin-e.yMax:1/0;return s&&n?r?t(e,i,Math.floor(r/2)):1/0:pX(a,h)}(t[r],t[n]))<80&&o.push(e);return o.push(80),pG(Math.floor(o.sort(function(t,e){return t-e})[Math.floor(o.length/10)]/2-1),1)}(r),r.forEach(function(t){t.xMin-=e,t.xMax+=e,t.yMin-=e,t.yMax+=e})),r},t.prototype.getObstacleMetrics=function(t){for(var e,i,o=0,r=0,n=t.length;n--;)e=t[n].xMax-t[n].xMin,i=t[n].yMax-t[n].yMin,o<e&&(o=e),r<i&&(r=i);return{maxHeight:r,maxWidth:o}},t.prototype.getAlgorithmStartDirection=function(t){var e="left"!==t.align&&"right"!==t.align,i="top"!==t.verticalAlign&&"bottom"!==t.verticalAlign;return e?!!i&&void 0:!!i||void 0},t}();pH.prototype.algorithms={fastAvoid:pO,straight:function(t,e){return{path:[["M",t.x,t.y],["L",e.x,e.y]],obstacles:[{start:t,end:e}]}},simpleConnect:pP},ta.Pathfinder=ta.Pathfinder||pH,dt(ta.SVGRenderer),ta.Pathfinder.compose(ta.Chart,ta.Point);var pF=tI.addEvent,pY=tI.defined,pj=tI.isNumber,p_=tI.pick;function pU(){var t=this.chart.options.chart;!this.horiz&&pj(this.options.staticScale)&&(!t.height||t.scrollablePlotArea&&t.scrollablePlotArea.minHeight)&&(this.staticScale=this.options.staticScale)}function pV(){if("adjustHeight"!==this.redrawTrigger){for(var t=0,e=this.axes||[];t<e.length;t++)!function(t){var e=t.chart,i=!!e.initiatedScale&&e.options.animation,o=t.options.staticScale;if(t.staticScale&&pY(t.min)){var r=p_(t.brokenAxis&&t.brokenAxis.unitLength,t.max+t.tickInterval-t.min)*o,n=(r=Math.max(r,o))-e.plotHeight;!e.scrollablePixelsY&&Math.abs(n)>=1&&(e.plotHeight=r,e.redrawTrigger="adjustHeight",e.setSize(void 0,e.chartHeight+n,i)),t.series.forEach(function(t){var i=t.sharedClipKey&&e.sharedClips[t.sharedClipKey];i&&i.attr(e.inverted?{width:e.plotHeight}:{height:e.plotHeight})})}}(e[t]);this.initiatedScale=!0}this.redrawTrigger=null}var pq=function(t,e){var i=e.prototype;i.adjustHeight||(pF(t,"afterSetOptions",pU),i.adjustHeight=pV,pF(e,"render",i.adjustHeight))};pq(ta.Axis,ta.Chart);var pZ=tI.correctFloat,pK=tI.isNumber,p$=tI.isObject,pJ={colorByPoint:!0,dataLabels:{formatter:function(){var t=this.partialFill;if(p$(t)&&(t=t.amount),pK(t)&&t>0)return pZ(100*t)+"%"},inside:!0,verticalAlign:"middle",style:{whiteSpace:"nowrap"}},tooltip:{headerFormat:'<span style="font-size: 0.8em">{ucfirst point.x} - {point.x2}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.yCategory}</b><br/>'},borderRadius:3,pointRange:0},pQ=(P=function(t,e){return(P=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}P(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),p0=nU.seriesTypes.column.prototype.pointClass,p1=tI.extend,p2=function(t){function e(e,i){var o=t.call(this,e,i)||this;return o.y||(o.y=0),o}return pQ(e,t),e.getColorByCategory=function(t,e){var i=t.options.colors||t.chart.options.colors,o=i?i.length:t.chart.options.chart.colorCount,r=e.y%o,n=i&&i[r];return{colorIndex:r,color:n}},e.prototype.resolveColor=function(){var t=this.series;if(t.options.colorByPoint&&!this.options.color){var i=e.getColorByCategory(t,this);t.chart.styledMode||(this.color=i.color),this.options.colorIndex||(this.colorIndex=i.colorIndex)}else this.color=this.options.color||t.color},e.prototype.applyOptions=function(e,i){var o;return t.prototype.applyOptions.call(this,e,i),this.x2=this.series.chart.time.parse(this.x2),this.isNull=!(null===(o=this.isValid)||void 0===o?void 0:o.call(this)),this},e.prototype.setState=function(){t.prototype.setState.apply(this,arguments),this.series.drawPoint(this,this.series.getAnimationVerb())},e.prototype.isValid=function(){return"number"==typeof this.x&&"number"==typeof this.x2},e}(p0);p1(p2.prototype,{ttBelow:!1,tooltipDateKeys:["x","x2"]});var p3=(O=function(t,e){return(O=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}O(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),p5=ta.composed,p6=ta.noop,p9=t4.parse,p4=nU.seriesTypes.column,p8=tI.addEvent,p7=tI.clamp,ut=tI.crisp,ue=tI.defined,ui=tI.extend,uo=tI.find,ur=tI.isNumber,un=tI.isObject,us=tI.merge,ua=tI.pick,uh=tI.pushUnique,ul=tI.relativeLength;function ud(){var t,e;if(this.isXAxis){t=ua(this.dataMax,-Number.MAX_VALUE);for(var i=0,o=this.series;i<o.length;i++){var r=o[i],n=r.dataTable.getColumn("x2",!0)||r.dataTable.getColumn("end",!0);if(n)for(var s=0;s<n.length;s++){var a=n[s];ur(a)&&a>t&&(t=a,e=!0)}}e&&(this.dataMax=t)}}var uc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p3(e,t),e.compose=function(t){uh(p5,"Series.XRange")&&p8(t,"afterGetSeriesExtremes",ud)},e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.options.stacking=void 0},e.prototype.getColumnMetrics=function(){var e=this,i=function(){for(var t=0,i=e.chart.series;t<i.length;t++){var o=i[t],r=o.xAxis;o.xAxis=o.yAxis,o.yAxis=r}};i();var o=t.prototype.getColumnMetrics.call(this);return i(),o},e.prototype.cropData=function(e,i,o){var r=e.getColumn("x")||[],n=e.getColumn("x2");e.setColumn("x",n,void 0,{silent:!0});var s=t.prototype.cropData.call(this,e,i,o);return e.setColumn("x",r.slice(s.start,s.end),void 0,{silent:!0}),s},e.prototype.findPointIndex=function(t){var e,i=this.cropStart,o=this.points,r=t.id;if(r){var n=uo(o,function(t){return t.id===r});e=n?n.index:void 0}if(void 0===e){var n=uo(o,function(e){return e.x===t.x&&e.x2===t.x2&&!e.touched});e=n?n.index:void 0}return this.cropped&&ur(e)&&ur(i)&&e>=i&&(e-=i),e},e.prototype.alignDataLabel=function(e){var i,o=e.plotX;e.plotX=ua(e.dlBox&&e.dlBox.centerX,e.plotX),e.dataLabel&&(null===(i=e.shapeArgs)||void 0===i?void 0:i.width)&&e.dataLabel.css({width:""+e.shapeArgs.width+"px"}),t.prototype.alignDataLabel.apply(this,arguments),e.plotX=o},e.prototype.translatePoint=function(t){var e,i,o,r,n,s,a,h,l=this.xAxis,d=this.yAxis,c=this.columnMetrics,p=this.options,u=p.minPointLength||0,f=(t.shapeArgs&&t.shapeArgs.width||0)/2,g=this.pointXOffset=c.offset,v=ua(t.x2,t.x+(t.len||0)),m=p.borderRadius,y=this.chart.plotTop,x=this.chart.plotLeft,b=t.plotX,M=l.translate(v,0,0,0,1),k=Math.abs(M-b),w=this.chart.inverted,S=ua(p.borderWidth,1),A=c.offset,T=Math.round(c.width);u&&((o=u-k)<0&&(o=0),b-=o/2,M+=o/2),b=Math.max(b,-10),M=p7(M,-10,l.len+10),ue(t.options.pointWidth)&&(A-=(Math.ceil(t.options.pointWidth)-T)/2,T=Math.ceil(t.options.pointWidth)),p.pointPlacement&&ur(t.plotY)&&d.categories&&(t.plotY=d.translate(t.y,0,1,0,1,p.pointPlacement));var P=ut(Math.min(b,M),S),O=ut(Math.max(b,M),S)-P,C=Math.min(ul("object"==typeof m?m.radius:m||0,T),Math.min(O,T)/2),E={x:P,y:ut((t.plotY||0)+A,S),width:O,height:T,r:C};t.shapeArgs=E,w?t.tooltipPos[1]+=g+f:t.tooltipPos[0]-=f+g-E.width/2,s=(n=E.x)+E.width,n<0||s>l.len?(n=p7(n,0,l.len),a=(s=p7(s,0,l.len))-n,t.dlBox=us(E,{x:n,width:s-n,centerX:a?a/2:null})):t.dlBox=null;var L=t.tooltipPos,B=w?1:0,I=w?0:1,D=this.columnMetrics?this.columnMetrics.offset:-c.width/2;w?L[B]+=E.width/2:L[B]=p7(L[B]+(l.reversed?-1:0)*E.width,l.left-x,l.left+l.len-x-1),L[I]=p7(L[I]+(w?-1:1)*D,d.top-y,d.top+d.len-y-1),(r=t.partialFill)&&(un(r)&&(r=r.amount),ur(r)||(r=0),t.partShapeArgs=us(E),h=Math.max(Math.round(k*r+t.plotX-b),0),t.clipRectArgs={x:l.reversed?E.x+k-h:E.x,y:E.y,width:h,height:E.height}),t.key=t.category||t.name,t.yCategory=null===(e=d.categories)||void 0===e?void 0:e[null!==(i=t.y)&&void 0!==i?i:-1]},e.prototype.translate=function(){t.prototype.translate.apply(this,arguments);for(var e=0,i=this.points;e<i.length;e++){var o=i[e];this.translatePoint(o)}},e.prototype.drawPoint=function(t,e){var i=this.options,o=this.chart.renderer,r=t.shapeType,n=t.shapeArgs,s=t.partShapeArgs,a=t.clipRectArgs,h=t.state,l=i.states[h||"normal"]||{},d=void 0===h?"attr":e,c=this.pointAttribs(t,h),p=ua(this.chart.options.chart.animation,l.animation),u=t.graphic,f=t.partialFill;if(t.isNull||!1===t.visible)u&&(t.graphic=u.destroy());else if(u?u.rect[e](n):(t.graphic=u=o.g("point").addClass(t.getClassName()).add(t.group||this.group),u.rect=o[r](us(n)).addClass(t.getClassName()).addClass("highcharts-partfill-original").add(u)),s&&(u.partRect?(u.partRect[e](us(s)),u.partialClipRect[e](us(a))):(u.partialClipRect=o.clipRect(a.x,a.y,a.width,a.height),u.partRect=o[r](s).addClass("highcharts-partfill-overlay").add(u).clip(u.partialClipRect))),!this.chart.styledMode&&(u.rect[e](c,p).shadow(i.shadow),s)){un(f)||(f={}),un(i.partialFill)&&(f=us(i.partialFill,f));var g=f.fill||p9(c.fill).brighten(-.3).get()||p9(t.color||this.color).brighten(-.3).get();c.fill=g,u.partRect[d](c,p).shadow(i.shadow)}},e.prototype.drawPoints=function(){for(var t=this.getAnimationVerb(),e=0,i=this.points;e<i.length;e++){var o=i[e];this.drawPoint(o,t)}},e.prototype.getAnimationVerb=function(){return this.chart.pointCount<(this.options.animationLimit||250)?"animate":"attr"},e.prototype.isPointInside=function(e){var i=e.shapeArgs,o=e.plotX,r=e.plotY;return i?void 0!==o&&void 0!==r&&r>=0&&r<=this.yAxis.len&&(i.x||0)+(i.width||0)>=0&&o<=this.xAxis.len:t.prototype.isPointInside.apply(this,arguments)},e.defaultOptions=us(p4.defaultOptions,pJ),e}(p4);ui(uc.prototype,{pointClass:p2,pointArrayMap:["x2","y"],getExtremesFromAll:!0,keysAffectYAxis:["y"],parallelArrays:["x","x2","y"],requireSorting:!1,type:"xrange",animate:nU.series.prototype.animate,autoIncrement:p6,buildKDTree:p6}),nU.registerSeriesType("xrange",uc),uc.compose(ta.Axis);var up=(C=function(t,e){return(C=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}C(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),uu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return up(e,t),e.setGanttPointAliases=function(t,e){var i,o,r;t.x=t.start=e.time.parse(null!==(i=t.start)&&void 0!==i?i:t.x),t.x2=t.end=e.time.parse(null!==(o=t.end)&&void 0!==o?o:t.x2),t.partialFill=t.completed=null!==(r=t.completed)&&void 0!==r?r:t.partialFill},e.prototype.applyOptions=function(i,o){var r,n=t.prototype.applyOptions.call(this,i,o);return e.setGanttPointAliases(n,n.series.chart),this.isNull=!(null===(r=this.isValid)||void 0===r?void 0:r.call(this)),n},e.prototype.isValid=function(){return("number"==typeof this.start||"number"==typeof this.x)&&("number"==typeof this.end||"number"==typeof this.x2||this.milestone)},e}(nU.seriesTypes.xrange.prototype.pointClass),uf=tI.isNumber,ug={grouping:!1,dataLabels:{enabled:!0},tooltip:{headerFormat:'<span style="font-size: 0.8em">{series.name}</span><br/>',pointFormat:null,pointFormatter:function(){var t=this.series,e=t.xAxis,i=t.tooltipOptions.dateTimeLabelFormats,o=e.options.startOfWeek,r=t.tooltipOptions,n=this.options.milestone,s=r.xDateFormat,a="<b>"+(this.name||this.yCategory)+"</b>";if(r.pointFormat)return this.tooltipFormatter(r.pointFormat);!s&&uf(this.start)&&(s=t.chart.time.getDateFormat(e.closestPointRange,this.start,o,i||{}));var h=t.chart.time.dateFormat(s,this.start),l=t.chart.time.dateFormat(s,this.end);return a+="<br/>",n?a+=h+"<br/>":a+="Start: "+h+"<br/>End: "+l+"<br/>",a}},connectors:{type:"simpleConnect",animation:{reversed:!0},radius:0,startMarker:{enabled:!0,symbol:"arrow-filled",radius:4,fill:"#fa0",align:"left"},endMarker:{enabled:!1,align:"right"}}},uv=tI.addEvent,um=tI.find,uy=tI.fireEvent,ux=tI.isArray,ub=tI.isNumber,uM=tI.pick;!function(t){function e(){void 0!==this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function i(){var t;(null===(t=this.brokenAxis)||void 0===t?void 0:t.hasBreaks)&&(this.options.ordinal=!1)}function o(){var t=this.brokenAxis;if(null==t?void 0:t.hasBreaks){for(var e=this.tickPositions,i=this.tickPositions.info,o=[],r=0;r<e.length;r++)t.isInAnyBreak(e[r])||o.push(e[r]);this.tickPositions=o,this.tickPositions.info=i}}function r(){this.brokenAxis||(this.brokenAxis=new l(this))}function n(){var t,e,i=this.isDirty,o=this.options.connectNulls,r=this.points,n=this.xAxis,s=this.yAxis;if(i)for(var a=r.length;a--;){var h=r[a],l=!(null===h.y&&!1===o)&&((null===(t=null==n?void 0:n.brokenAxis)||void 0===t?void 0:t.isInAnyBreak(h.x,!0))||(null===(e=null==s?void 0:s.brokenAxis)||void 0===e?void 0:e.isInAnyBreak(h.y,!0)));h.visible=!l&&!1!==h.options.visible}}function s(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,uM(this.pointArrayMap,["y"]))}function a(t,e){var i,o,r,n,s=this,a=s.points;if(null===(i=null==t?void 0:t.brokenAxis)||void 0===i?void 0:i.hasBreaks){var h=t.brokenAxis;e.forEach(function(e){o=(null==h?void 0:h.breakArray)||[],r=t.isXAxis?t.min:uM(s.options.threshold,t.min);var i,l,d=null===(l=null===(i=null==t?void 0:t.options)||void 0===i?void 0:i.breaks)||void 0===l?void 0:l.filter(function(t){for(var e=!0,i=0;i<o.length;i++){var r=o[i];if(r.from===t.from&&r.to===t.to){e=!1;break}}return e});a.forEach(function(i){n=uM(i["stack"+e.toUpperCase()],i[e]),o.forEach(function(e){if(ub(r)&&ub(n)){var o="";r<e.from&&n>e.to||r>e.from&&n<e.from?o="pointBreak":(r<e.from&&n>e.from&&n<e.to||r>e.from&&n>e.to&&n<e.from)&&(o="pointInBreak"),o&&uy(t,o,{point:i,brk:e})}}),null==d||d.forEach(function(e){uy(t,"pointOutsideOfBreak",{point:i,brk:e})})})})}}function h(){var t=this.currentDataGrouping,e=null==t?void 0:t.gapSize,i=this.points.slice(),o=this.yAxis,r=this.options.gapSize,n=i.length-1;if(r&&n>0){"value"!==this.options.gapUnit&&(r*=this.basePointRange),e&&e>r&&e>=this.basePointRange&&(r=e);for(var s=void 0,a=void 0;n--;)if(a&&!1!==a.visible||(a=i[n+1]),s=i[n],!1!==a.visible&&!1!==s.visible){if(a.x-s.x>r){var h=(s.x+a.x)/2;i.splice(n+1,0,{isNull:!0,x:h}),o.stacking&&this.options.stacking&&((o.stacking.stacks[this.stackKey][h]=new aP(o,o.options.stackLabels,!1,h,this.stack)).total=0)}a=s}}return this.getGraphPath(i)}t.compose=function(t,l){if(!t.keepProps.includes("brokenAxis")){t.keepProps.push("brokenAxis"),uv(t,"init",r),uv(t,"afterInit",e),uv(t,"afterSetTickPositions",o),uv(t,"afterSetOptions",i);var d=l.prototype;d.drawBreaks=a,d.gappedPath=h,uv(l,"afterGeneratePoints",n),uv(l,"afterRender",s)}return t};var l=function(){function t(t){this.hasBreaks=!1,this.axis=t}return t.isInBreak=function(t,e){var i=t.repeat||1/0,o=t.from,r=t.to-t.from,n=e>=o?(e-o)%i:i-(o-e)%i;return t.inclusive?n<=r:n<r&&0!==n},t.lin2Val=function(e){var i=this.brokenAxis,o=i&&i.breakArray;if(!o||!ub(e))return e;var r,n,s=e;for(n=0;n<o.length&&!((r=o[n]).from>=s);n++)r.to<s?s+=r.len:t.isInBreak(r,s)&&(s+=r.len);return s},t.val2Lin=function(e){var i=this.brokenAxis,o=i&&i.breakArray;if(!o||!ub(e))return e;var r,n,s=e;for(n=0;n<o.length;n++)if((r=o[n]).to<=e)s-=r.len;else if(r.from>=e)break;else if(t.isInBreak(r,e)){s-=e-r.from;break}return s},t.prototype.findBreakAt=function(t,e){return um(e,function(e){return e.from<t&&t<e.to})},t.prototype.isInAnyBreak=function(e,i){var o,r,n,s=this.axis,a=s.options.breaks||[],h=a.length;if(h&&ub(e)){for(;h--;)t.isInBreak(a[h],e)&&(o=!0,r||(r=uM(a[h].showPoints,!s.isXAxis)));n=o&&i?o&&!r:o}return n},t.prototype.setBreaks=function(e,i){var o=this,r=o.axis,n=r.chart.time,s=ux(e)&&!!e.length&&!!Object.keys(e[0]).length;r.isDirty=o.hasBreaks!==s,o.hasBreaks=s,null==e||e.forEach(function(t){t.from=n.parse(t.from)||0,t.to=n.parse(t.to)||0}),e!==r.options.breaks&&(r.options.breaks=r.userOptions.breaks=e),r.forceRedraw=!0,r.series.forEach(function(t){t.isDirty=!0}),s||r.val2lin!==t.val2Lin||(delete r.val2lin,delete r.lin2val),s&&(r.userOptions.ordinal=!1,r.lin2val=t.lin2Val,r.val2lin=t.val2Lin,r.setExtremes=function(t,e,i,n,s){if(o.hasBreaks){for(var a=this.options.breaks||[],h=void 0;h=o.findBreakAt(t,a);)t=h.to;for(;h=o.findBreakAt(e,a);)e=h.from;e<t&&(e=t)}r.constructor.prototype.setExtremes.call(this,t,e,i,n,s)},r.setAxisTranslation=function(){if(r.constructor.prototype.setAxisTranslation.call(this),o.unitLength=void 0,o.hasBreaks){var e,i,n,s,a=r.options.breaks||[],h=[],l=[],d=uM(r.pointRangePadding,0),c=0,p=r.userMin||r.min,u=r.userMax||r.max;a.forEach(function(e){i=e.repeat||1/0,ub(p)&&ub(u)&&(t.isInBreak(e,p)&&(p+=e.to%i-p%i),t.isInBreak(e,u)&&(u-=u%i-e.from%i))}),a.forEach(function(t){if(n=t.from,i=t.repeat||1/0,ub(p)&&ub(u)){for(;n-i>p;)n-=i;for(;n<p;)n+=i;for(s=n;s<u;s+=i)h.push({value:s,move:"in"}),h.push({value:s+t.to-t.from,move:"out",size:t.breakSize})}}),h.sort(function(t,e){return t.value===e.value?("in"===t.move?0:1)-("in"===e.move?0:1):t.value-e.value}),e=0,n=p,h.forEach(function(t){1===(e+="in"===t.move?1:-1)&&"in"===t.move&&(n=t.value),0===e&&ub(n)&&(l.push({from:n,to:t.value,len:t.value-n-(t.size||0)}),c+=t.value-n-(t.size||0))}),o.breakArray=l,ub(p)&&ub(u)&&ub(r.min)&&(o.unitLength=u-p-c+d,uy(r,"afterBreaks"),r.staticScale?r.transA=r.staticScale:o.unitLength&&(r.transA*=(u-r.min+d)/o.unitLength),d&&(r.minPixelPadding=r.transA*(r.minPointOffset||0)),r.min=p,r.max=u)}}),uM(i,!0)&&r.chart.redraw()},t}();t.Additions=l}(ti||(ti={}));var uk=ti,uw=ta.dateFormats,uS=tI.addEvent,uA=tI.defined,uT=tI.erase,uP=tI.find,uO=tI.isArray,uC=tI.isNumber,uE=tI.merge,uL=tI.pick,uB=tI.timeUnits,uI=tI.wrap;function uD(t){return tI.isObject(t,!0)}function uz(t,e){var i={width:0,height:0};if(e.forEach(function(e){var o,r=t[e],n=0,s=0;uD(r)&&(n=(o=uD(r.label)?r.label:{}).getBBox?o.getBBox().height:0,o.textStr&&!uC(o.textPxLength)&&(o.textPxLength=o.getBBox().width),s=uC(o.textPxLength)?Math.round(o.textPxLength):0,o.textStr&&(s=Math.round(o.getBBox().width)),i.height=Math.max(n,i.height),i.width=Math.max(s,i.width))}),"treegrid"===this.type&&this.treeGrid&&this.treeGrid.mapOfPosToGridNode){var o=this.treeGrid.mapOfPosToGridNode[-1].height||0;i.width+=this.options.labels.indentation*(o-1)}return i}function uR(t){var e=this.grid,i=3===this.side;if(i||t.apply(this),!(null==e?void 0:e.isColumn)){var o=(null==e?void 0:e.columns)||[];i&&(o=o.slice().reverse()),o.forEach(function(t){t.getOffset()})}i&&t.apply(this)}function uN(t){if(!0===(this.options.grid||{}).enabled){var e=this.axisTitle,i=this.height,o=this.horiz,r=this.left,n=this.offset,s=this.opposite,a=this.options,h=this.top,l=this.width,d=this.tickSize(),c=e&&e.getBBox().width,p=a.title.x,u=a.title.y,f=uL(a.title.margin,o?5:10),g=e?this.chart.renderer.fontMetrics(e).f:0,v=(o?h+i:r)+(o?1:-1)*(s?-1:1)*(d?d[0]/2:0)+(this.side===to.bottom?g:0);t.titlePosition.x=o?r-(c||0)/2-f+p:v+(s?l:0)+n+p,t.titlePosition.y=o?v-(s?i:0)+(s?g:-g)/2+n+u:h-f+u}}function uW(){var t,e=this.chart,i=this.options.grid,o=void 0===i?{}:i,r=this.userOptions;if(o.enabled&&((t=this.options).labels.align=uL(t.labels.align,"center"),this.categories||(t.showLastLabel=!1),this.labelRotation=0,t.labels.rotation=0,t.minTickInterval=1),o.columns)for(var n=this.grid.columns=[],s=this.grid.columnIndex=0;++s<o.columns.length;){var a=uE(r,o.columns[s],{isInternal:!0,linkedTo:0,scrollbar:{enabled:!1}},{grid:{columns:void 0}}),h=new rl(this.chart,a,"yAxis");h.grid.isColumn=!0,h.grid.columnIndex=s,uT(e.axes,h),uT(e[this.coll]||[],h),n.push(h)}}function uG(){var t=this.axisTitle,e=this.grid,i=this.options;if(!0===(i.grid||{}).enabled){var o=this.min||0,r=this.max||0,n=this.ticks[this.tickPositions[0]];if(t&&!this.chart.styledMode&&(null==n?void 0:n.slotWidth)&&!this.options.title.style.width&&t.css({width:""+n.slotWidth+"px"}),this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,this.tickPositions),this.rightWall&&this.rightWall.destroy(),this.grid&&this.grid.isOuterAxis()&&this.axisLine){var s=i.lineWidth;if(s){var a=this.getLinePath(s),h=a[0],l=a[1],d=(this.tickSize("tick")||[1])[0]*(this.side===to.top||this.side===to.left?-1:1);if("M"===h[0]&&"L"===l[0]&&(this.horiz?(h[2]+=d,l[2]+=d):(h[1]+=d,l[1]+=d)),!this.horiz&&this.chart.marginRight){var c=["L",this.left,h[2]||0],p=[h,c],u=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(r+this.tickmarkOffset)],f=[["M",l[1]||0,this.toPixels(r+this.tickmarkOffset)],u];this.grid.upperBorder||o%1==0||(this.grid.upperBorder=this.grid.renderBorder(p)),this.grid.upperBorder&&(this.grid.upperBorder.attr({stroke:i.lineColor,"stroke-width":i.lineWidth}),this.grid.upperBorder.animate({d:p})),this.grid.lowerBorder||r%1==0||(this.grid.lowerBorder=this.grid.renderBorder(f)),this.grid.lowerBorder&&(this.grid.lowerBorder.attr({stroke:i.lineColor,"stroke-width":i.lineWidth}),this.grid.lowerBorder.animate({d:f}))}this.grid.axisLineExtra?(this.grid.axisLineExtra.attr({stroke:i.lineColor,"stroke-width":i.lineWidth}),this.grid.axisLineExtra.animate({d:a})):this.grid.axisLineExtra=this.grid.renderBorder(a),this.axisLine[this.showAxis?"show":"hide"]()}}if((e&&e.columns||[]).forEach(function(t){return t.render()}),!this.horiz&&this.chart.hasRendered&&(this.scrollbar||this.linkedParent&&this.linkedParent.scrollbar)&&this.tickPositions.length){for(var g=this.tickmarkOffset,v=this.tickPositions[this.tickPositions.length-1],m=this.tickPositions[0],y=void 0,x=void 0;(y=this.hiddenLabels.pop())&&y.element;)y.show();for(;(x=this.hiddenMarks.pop())&&x.element;)x.show();(y=this.ticks[m].label)&&(o-m>g?this.hiddenLabels.push(y.hide()):y.show()),(y=this.ticks[v].label)&&(v-r>g?this.hiddenLabels.push(y.hide()):y.show());var b=this.ticks[v].mark;b&&v-r<g&&v-r>0&&this.ticks[v].isLast&&this.hiddenMarks.push(b.hide())}}}function uX(){var t=this.tickPositions&&this.tickPositions.info,e=this.options,i=e.grid||{},o=this.userOptions.labels||{};i.enabled&&(this.horiz?(this.series.forEach(function(t){t.options.pointRange=0}),t&&e.dateTimeLabelFormats&&e.labels&&!uA(o.align)&&(!1===e.dateTimeLabelFormats[t.unitName].range||t.count>1)&&(e.labels.align="left",uA(o.x)||(e.labels.x=3))):"treegrid"!==this.type&&this.grid&&this.grid.columns&&(this.minPointOffset=this.tickInterval))}function uH(t){var e,i=this.options,o=t.userOptions,r=i&&uD(i.grid)?i.grid:{};!0===r.enabled&&(e=uE(!0,{className:"highcharts-grid-axis "+(o.className||""),dateTimeLabelFormats:{hour:{list:["%[HM]","%[H]"]},day:{list:["%[AeB]","%[aeb]","%[E]"]},week:{list:["Week %W","W%W"]},month:{list:["%[B]","%[b]","%o"]}},grid:{borderWidth:1},labels:{padding:2,style:{fontSize:"0.9em"}},margin:0,title:{text:null,reserveSpace:!1,rotation:0,style:{textOverflow:"ellipsis"}},units:[["millisecond",[1,10,100]],["second",[1,10]],["minute",[1,5,15]],["hour",[1,6]],["day",[1]],["week",[1]],["month",[1]],["year",null]]},o),"xAxis"!==this.coll||(uA(o.linkedTo)&&!uA(o.tickPixelInterval)&&(e.tickPixelInterval=350),!(!uA(o.tickPixelInterval)&&uA(o.linkedTo))||uA(o.tickPositioner)||uA(o.tickInterval)||uA(o.units)||(e.tickPositioner=function(t,i){var o=this.linkedParent&&this.linkedParent.tickPositions&&this.linkedParent.tickPositions.info;if(o){for(var r=e.units||[],n=void 0,s=1,a="year",h=0;h<r.length;h++){var l=r[h];if(l&&l[0]===o.unitName){n=h;break}}var d=uC(n)&&r[n+1];if(d){a=d[0]||"year";var c=d[1];s=c&&c[0]||1}else"year"===o.unitName&&(s=10*o.count);var p=uB[a];return this.tickInterval=p*s,this.chart.time.getTimeTicks({unitRange:p,count:s,unitName:a},t,i,this.options.startOfWeek)}})),uE(!0,this.options,e),this.horiz&&(i.minPadding=uL(o.minPadding,0),i.maxPadding=uL(o.maxPadding,0)),uC(i.grid.borderWidth)&&(i.tickWidth=i.lineWidth=r.borderWidth))}function uF(t){var e=t.userOptions,i=e&&e.grid||{},o=i.columns;i.enabled&&o&&uE(!0,this.options,o[0])}function uY(){(this.grid.columns||[]).forEach(function(t){return t.setScale()})}function uj(t){var e=this.horiz,i=this.maxLabelDimensions,o=this.options.grid,r=void 0===o?{}:o;if(r.enabled&&i){var n=2*this.options.labels.distance,s=e?r.cellHeight||n+i.height:n+i.width;uO(t.tickSize)?t.tickSize[0]=s:t.tickSize=[s,0]}}function u_(){this.axes.forEach(function(t){(t.grid&&t.grid.columns||[]).forEach(function(t){t.setAxisSize(),t.setAxisTranslation()})})}function uU(t){var e=this.grid;(e.columns||[]).forEach(function(e){return e.destroy(t.keepEvents)}),e.columns=void 0}function uV(t){var e=t.userOptions||{},i=e.grid||{};i.enabled&&uA(i.borderColor)&&(e.tickColor=e.lineColor=i.borderColor),this.grid||(this.grid=new uJ(this)),this.hiddenLabels=[],this.hiddenMarks=[]}function uq(t){var e=this.label,i=this.axis,o=i.reversed,r=i.chart,n=i.options.grid||{},s=i.options.labels,a=s.align,h=to[i.side],l=t.tickmarkOffset,d=i.tickPositions,c=this.pos-l,p=uC(d[t.index+1])?d[t.index+1]-l:(i.max||0)+l,u=i.tickSize("tick"),f=u?u[0]:0,g=u?u[1]/2:0;if(!0===n.enabled){var v,m=void 0,y=void 0,x=void 0;if("top"===h?v=(m=i.top+i.offset)-f:"bottom"===h?m=(v=r.chartHeight-i.bottom+i.offset)+f:(m=i.top+i.len-(i.translate(o?p:c)||0),v=i.top+i.len-(i.translate(o?c:p)||0)),"right"===h?x=(y=r.chartWidth-i.right+i.offset)+f:"left"===h?y=(x=i.left+i.offset)-f:(y=Math.round(i.left+(i.translate(o?p:c)||0))-g,x=Math.min(Math.round(i.left+(i.translate(o?c:p)||0))-g,i.left+i.len)),this.slotWidth=x-y,t.pos.x="left"===a?y:"right"===a?x:y+(x-y)/2,t.pos.y=v+(m-v)/2,e){var b=r.renderer.fontMetrics(e),M=e.getBBox().height;if(s.useHTML)t.pos.y+=b.b+-(M/2);else{var k=Math.round(M/b.h);t.pos.y+=(b.b-(b.h-b.f))/2+-((k-1)*b.h/2)}}t.pos.x+=i.horiz&&s.x||0}}function uZ(t){var e=t.axis,i=t.value;if(e.options.grid&&e.options.grid.enabled){var o=e.tickPositions,r=(e.linkedParent||e).series[0],n=i===o[0],s=i===o[o.length-1],a=r&&uP(r.options.data,function(t){return t[e.isXAxis?"x":"y"]===i}),h=void 0;a&&r.is("gantt")&&(h=uE(a),ta.seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(h,e.chart)),t.isFirst=n,t.isLast=s,t.point=h}}function uK(){var t=this.options,e=t.grid||{},i=this.categories,o=this.tickPositions,r=o[0],n=o[1],s=o[o.length-1],a=o[o.length-2],h=this.linkedParent&&this.linkedParent.min,l=this.linkedParent&&this.linkedParent.max,d=h||this.min,c=l||this.max,p=this.tickInterval,u=uC(d)&&d>=r+p&&d<n,f=uC(d)&&r<d&&r+p>d,g=uC(c)&&s>c&&s-p<c,v=uC(c)&&c<=s-p&&c>a;!0===e.enabled&&!i&&(this.isXAxis||this.isLinked)&&((f||u)&&!t.startOnTick&&(o[0]=d),(g||v)&&!t.endOnTick&&(o[o.length-1]=c))}function u$(t){var e,i=this.options.grid;return!0===(void 0===i?{}:i).enabled&&this.categories?this.tickInterval:t.apply(this,(e=arguments,Array.prototype.slice.call(e,1)))}(E=to||(to={}))[E.top=0]="top",E[E.right=1]="right",E[E.bottom=2]="bottom",E[E.left=3]="left";var uJ=function(){function t(t){this.axis=t}return t.prototype.isOuterAxis=function(){var t,e=this.axis,i=e.chart,o=e.grid.columnIndex,r=(null===(t=e.linkedParent)||void 0===t?void 0:t.grid.columns)||e.grid.columns||[],n=o?e.linkedParent:e,s=-1,a=0;return 3===e.side&&!i.inverted&&r.length?!e.linkedParent:((i[e.coll]||[]).forEach(function(t,i){t.side!==e.side||t.options.isInternal||(a=i,t!==n||(s=i))}),a===s&&(!uC(o)||r.length===o))},t.prototype.renderBorder=function(t){var e=this.axis,i=e.chart.renderer,o=e.options,r=i.path(t).addClass("highcharts-axis-line").add(e.axisGroup);return i.styledMode||r.attr({stroke:o.lineColor,"stroke-width":o.lineWidth,zIndex:7}),r},t}();uw.E=function(t){return this.dateFormat("%a",t,!0).charAt(0)},uw.W=function(t){var e=this.toParts(t),i=(e[7]+6)%7,o=e.slice(0);o[2]=e[2]-i+3;var r=this.toParts(this.makeTime(o[0],0,1));return 4!==r[7]&&(e[1]=0,e[2]=1+(11-r[7])%7),(1+Math.floor((this.makeTime(o[0],o[1],o[2])-this.makeTime(r[0],r[1],r[2]))/6048e5)).toString()};var uQ=function(t,e){var i={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&0>e.indexOf(o)&&(i[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(t);r<o.length;r++)0>e.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(t,o[r])&&(i[o[r]]=t[o[r]]);return i},u0=tI.extend,u1=tI.isNumber,u2=tI.pick;function u3(t,e,i,o,r,n){var s,a,h=n&&n.after,l=n&&n.before,d={data:o,depth:i-1,id:t,level:i,parent:e||""},c=0,p=0;"function"==typeof l&&l(d,n);var u=(r[t]||[]).map(function(e){var o=u3(e.id,t,i+1,e,r,n),h=e.start||NaN,l=!0===e.milestone?h:e.end||NaN;return s=!u1(s)||h<s?h:s,a=!u1(a)||l>a?l:a,c=c+1+o.descendants,p=Math.max(o.height+1,p),o});return o&&(o.start=u2(o.start,s),o.end=u2(o.end,a)),u0(d,{children:u,descendants:c,height:p}),"function"==typeof h&&h(d,n),d}var u5={getNode:u3,getTree:function(t,e){var i,o;return u3("",null,1,null,(i=[],Object.keys(o=t.reduce(function(t,e){var o=e.parent,r=void 0===o?"":o,n=e.id;return void 0===t[r]&&(t[r]=[]),t[r].push(e),n&&i.push(n),t},{})).forEach(function(t){var e;if(""!==t&&-1===i.indexOf(t)){var r=o[t].map(function(t){return uQ(t,[])});(e=o[""]).push.apply(e,r),delete o[t]}}),o),e)}},u6=tI.addEvent,u9=tI.removeEvent,u4=tI.isObject,u8=tI.isNumber,u7=tI.pick,ft=tI.wrap;function fe(){this.treeGrid||(this.treeGrid=new fr(this))}function fi(t,e,i,o,r,n,s,a,h){var l,d,c,p=u7(this.options&&this.options.labels,n),u=this.pos,f=this.axis,g="treegrid"===f.type,v=t.apply(this,[e,i,o,r,p,s,a,h]);if(g){var m=p&&u4(p.symbol,!0)?p.symbol:{},y=m.width,x=m.padding,b=void 0===x?f.linkedParent?0:5:x,M=p&&u8(p.indentation)?p.indentation:0;c=(d=(l=f.treeGrid.mapOfPosToGridNode)&&l[u])&&d.depth||1,v.x+=(void 0===y?0:y)+2*b+(c-1)*M}return v}function fo(t){var e,i,o,r,n,s,a,h,l,d,c,p,u,f,g,v,m,y=this.pos,x=this.axis,b=this.label,M=this.treeGrid,k=this.options,w=null==M?void 0:M.labelIcon,S=null==b?void 0:b.element,A=x.treeGrid,T=x.options,P=x.chart,O=x.tickPositions,C=A.mapOfPosToGridNode,E=u7(null==k?void 0:k.labels,null==T?void 0:T.labels),L=E&&u4(E.symbol,!0)?E.symbol:{},B=C&&C[y],I=B||{},D=I.descendants,z=I.depth,R=B&&D&&D>0,N="treegrid"===x.type&&S,W=O.indexOf(y)>-1,G="highcharts-treegrid-node-",X=G+"level-",H=P.styledMode;(N&&B&&b.removeClass(RegExp(X+".*")).addClass(X+z),t.apply(this,Array.prototype.slice.call(arguments,1)),N&&R)?(g=A.isCollapsed(B),e={color:!H&&b.styles.color||"",collapsed:g,group:b.parentGroup,options:L,renderer:b.renderer,show:W,xy:b.xy},r=!(o=this.treeGrid).labelIcon,n=e.renderer,s=e.xy,h=(a=e.options).width||0,l=a.height||0,d=(null!==(i=a.padding)&&void 0!==i?i:this.axis.linkedParent)?0:5,c={x:s.x-h/2-d,y:s.y-l/2},p=e.collapsed?90:180,u=e.show&&u8(c.y),(f=o.labelIcon)||(o.labelIcon=f=n.path(n.symbols[a.type](a.x||0,a.y||0,h,l)).addClass("highcharts-label-icon").add(e.group)),f[u?"show":"hide"](),n.styledMode||f.attr({cursor:"pointer",fill:u7(e.color,"#666666"),"stroke-width":1,stroke:a.lineColor,strokeWidth:a.lineWidth||0}),f[r?"attr":"animate"]({translateX:c.x,translateY:c.y,rotation:p}),v=G+(g?"collapsed":"expanded"),m=G+(g?"expanded":"collapsed"),b.addClass(v).removeClass(m),H||b.css({cursor:"pointer"}),[b,w].forEach(function(t){t&&!t.attachedTreeGridEvents&&(u6(t.element,"mouseover",function(){b.addClass("highcharts-treegrid-node-active"),b.renderer.styledMode||b.css({textDecoration:"underline"})}),u6(t.element,"mouseout",function(){var t;t=u4(E.style)?E.style:{},b.removeClass("highcharts-treegrid-node-active"),b.renderer.styledMode||b.css({textDecoration:t.textDecoration||"none"})}),u6(t.element,"click",function(){M.toggleCollapse()}),t.attachedTreeGridEvents=!0)})):w&&(u9(S),null==b||b.css({cursor:"default"}),w.destroy())}var fr=function(){function t(t){this.tick=t}return t.compose=function(t){var e=t.prototype;e.toggleCollapse||(u6(t,"init",fe),ft(e,"getLabelPosition",fi),ft(e,"renderLabel",fo),e.collapse=function(t){this.treeGrid.collapse(t)},e.expand=function(t){this.treeGrid.expand(t)},e.toggleCollapse=function(t){this.treeGrid.toggleCollapse(t)})},t.prototype.collapse=function(t){var e=this.tick,i=e.axis,o=i.brokenAxis;if(o&&i.treeGrid.mapOfPosToGridNode){var r=e.pos,n=i.treeGrid.mapOfPosToGridNode[r],s=i.treeGrid.collapse(n);o.setBreaks(s,u7(t,!0))}},t.prototype.destroy=function(){this.labelIcon&&this.labelIcon.destroy()},t.prototype.expand=function(t){var e=this.tick,i=e.pos,o=e.axis,r=o.treeGrid,n=o.brokenAxis,s=r.mapOfPosToGridNode;if(n&&s){var a=s[i],h=r.expand(a);n.setBreaks(h,u7(t,!0))}},t.prototype.toggleCollapse=function(t){var e=this.tick,i=e.axis,o=i.brokenAxis;if(o&&i.treeGrid.mapOfPosToGridNode){var r=e.pos,n=i.treeGrid.mapOfPosToGridNode[r],s=i.treeGrid.toggleCollapse(n);o.setBreaks(s,u7(t,!0))}},t}(),fn=(tI.extend,tI.isArray),fs=tI.isNumber,fa=tI.isObject,fh=tI.merge,fl=tI.pick,fd=(tI.relativeLength,function(t){var e,i,o,r,n,s,a={};if(fa(t))for(r=fs(t.from)?t.from:1,s=t.levels,i={},e=fa(t.defaults)?t.defaults:{},fn(s)&&(i=s.reduce(function(t,i){var o,n,s;return fa(i)&&fs(i.level)&&(n=fl((s=fh({},i)).levelIsConstant,e.levelIsConstant),delete s.levelIsConstant,delete s.level,fa(t[o=i.level+(n?0:r-1)])?fh(!0,t[o],s):t[o]=s),t},{})),n=fs(t.to)?t.to:1,o=0;o<=n;o++)a[o]=fh({},e,fa(i[o])?i[o]:{});return a}),fc=tI.addEvent,fp=tI.isArray,fu=tI.splat,ff=tI.find,fg=tI.fireEvent,fv=tI.isObject,fm=tI.isString,fy=tI.merge,fx=tI.pick,fb=tI.removeEvent,fM=tI.wrap;function fk(t,e){var i=t.collapseEnd||0,o=t.collapseStart||0;return i>=e&&(o-=.5),{from:o,to:i,showPoints:!1}}function fw(t,e,i){var o,r,n=[],s=[],a={},h=e||!1,l={},d=-1,c=u5.getTree(t,{after:function(t){var e=l[t.pos],i=0,o=0;e.children.forEach(function(t){o+=(t.descendants||0)+1,i=Math.max((t.height||0)+1,i)}),e.descendants=o,e.height=i,e.collapsed&&s.push(e)},before:function(t){var e,i,o=fv(t.data,!0)?t.data:{},r=fm(o.name)?o.name:"",s=a[t.parent],c=fv(s,!0)?l[s.pos]:null;h&&fv(c,!0)&&(e=ff(c.children,function(t){return t.name===r}))?(i=e.pos,e.nodes.push(t)):i=d++,!l[i]&&(l[i]=e={depth:c?c.depth+1:0,name:r,id:o.id,nodes:[t],children:[],pos:i},-1!==i&&n.push(r),fv(c,!0)&&c.children.push(e)),fm(t.id)&&(a[t.id]=t),e&&!0===o.collapsed&&(e.collapsed=!0),t.pos=i}});return o=l,{categories:n,mapOfIdToNode:a,mapOfPosToGridNode:l=(r=function(t,e,o){var n=t.nodes,s=e+(-1===e?0:i-1),a=(s-e)/2,h=e+a;return n.forEach(function(t){var i=t.data;fv(i,!0)&&(i.y=e+(i.seriesIndex||0),delete i.seriesIndex),t.pos=h}),o[h]=t,t.pos=h,t.tickmarkOffset=a+.5,t.collapseStart=s+.5,t.children.forEach(function(t){r(t,s+1,o),s=(t.collapseEnd||0)-.5}),t.collapseEnd=s+.5,o})(o["-1"],-1,{}),collapsedNodes:s,tree:c}}function fS(t){var e=t.target;e.axes.filter(function(t){return"treegrid"===t.type}).forEach(function(i){var o,r,n=i.options||{},s=n.labels,a=i.uniqueNames,h=e.time.parse(n.max),l=!i.treeGrid.mapOfPosToGridNode||i.series.some(function(t){return!t.hasRendered||t.isDirtyData||t.isDirty}),d=0;if(l){var c=[];if(o=i.series.reduce(function(t,i){var o=i.options.data||[],r=o[0],n=Array.isArray(r)&&!r.find(function(t){return"object"==typeof t});return c.push(n),i.visible&&(o.forEach(function(o){(n||i.options.keys&&i.options.keys.length)&&(o=i.pointClass.prototype.optionsToObject.call({series:i},o),i.pointClass.setGanttPointAliases(o,e)),fv(o,!0)&&(o.seriesIndex=d,t.push(o))}),!0===a&&d++),t},[]),h&&o.length<h)for(var p=o.length;p<=h;p++)o.push({name:p+"​"});r=fw(o,a||!1,!0===a?d:1),i.categories=r.categories,i.treeGrid.mapOfPosToGridNode=r.mapOfPosToGridNode,i.hasNames=!0,i.treeGrid.tree=r.tree,i.series.forEach(function(t,e){var i=(t.options.data||[]).map(function(i){return(c[e]||fp(i)&&t.options.keys&&t.options.keys.length)&&o.forEach(function(t){var e=fu(i);e.indexOf(t.x||0)>=0&&e.indexOf(t.x2||0)>=0&&(i=t)}),fv(i,!0)?fy(i):i});t.visible&&t.setData(i,!1)}),i.treeGrid.mapOptionsToLevel=fd({defaults:s,from:1,levels:s&&s.levels,to:i.treeGrid.tree&&i.treeGrid.tree.height}),"beforeRender"===t.type&&(i.treeGrid.collapsedNodes=r.collapsedNodes)}})}function fA(t,e){var i,o,r,n=this.treeGrid.mapOptionsToLevel||{},s="treegrid"===this.type,a=this.ticks,h=a[e];s&&this.treeGrid.mapOfPosToGridNode?((i=n[(r=this.treeGrid.mapOfPosToGridNode[e]).depth])&&(o={labels:i}),!h&&tr?a[e]=h=new tr(this,e,void 0,void 0,{category:r.name,tickmarkOffset:r.tickmarkOffset,options:o}):(h.parameters.category=r.name,h.options=o,h.addLabel())):t.apply(this,Array.prototype.slice.call(arguments,1))}function fT(t,e,i,o){var r=this,n="treegrid"===i.type;r.treeGrid||(r.treeGrid=new fC(r)),n&&(fc(e,"beforeRender",fS),fc(e,"beforeRedraw",fS),fc(e,"addSeries",function(t){if(t.options.data){var e=fw(t.options.data,i.uniqueNames||!1,1);r.treeGrid.collapsedNodes=(r.treeGrid.collapsedNodes||[]).concat(e.collapsedNodes)}}),fc(r,"foundExtremes",function(){r.treeGrid.collapsedNodes&&r.treeGrid.collapsedNodes.forEach(function(t){var e=r.treeGrid.collapse(t);r.brokenAxis&&(r.brokenAxis.setBreaks(e,!1),r.treeGrid.collapsedNodes&&(r.treeGrid.collapsedNodes=r.treeGrid.collapsedNodes.filter(function(e){return t.collapseStart!==e.collapseStart||t.collapseEnd!==e.collapseEnd})))})}),fc(r,"afterBreaks",function(){"yAxis"===r.coll&&!r.staticScale&&r.chart.options.chart.height&&(r.isDirty=!0)}),i=fy({grid:{enabled:!0},labels:{align:"left",levels:[{level:void 0},{level:1,style:{fontWeight:"bold"}}],symbol:{type:"triangle",x:-5,y:-5,height:10,width:10}},uniqueNames:!1},i,{reversed:!0})),t.apply(r,[e,i,o]),n&&(r.hasNames=!0,r.options.showLastLabel=!0)}function fP(t){var e,i,o,r,n,s=this.options,a=this.chart.time,h="number"==typeof s.linkedTo?null===(e=this.chart[this.coll])||void 0===e?void 0:e[s.linkedTo]:void 0;if("treegrid"===this.type){if(this.min=null!==(o=null!==(i=this.userMin)&&void 0!==i?i:a.parse(s.min))&&void 0!==o?o:this.dataMin,this.max=null!==(n=null!==(r=this.userMax)&&void 0!==r?r:a.parse(s.max))&&void 0!==n?n:this.dataMax,fg(this,"foundExtremes"),this.setAxisTranslation(),this.tickInterval=1,this.tickmarkOffset=.5,this.tickPositions=this.treeGrid.mapOfPosToGridNode?this.treeGrid.getTickPositions():[],h){var l=h.getExtremes();this.min=fx(l.min,l.dataMin),this.max=fx(l.max,l.dataMax),this.tickPositions=h.tickPositions}this.linkedParent=h}else t.apply(this,Array.prototype.slice.call(arguments,1))}function fO(t){var e=this;"treegrid"===this.type&&e.visible&&e.tickPositions.forEach(function(t){var i=e.ticks[t];i.label&&i.label.attachedTreeGridEvents&&(fb(i.label.element),i.label.attachedTreeGridEvents=!1)}),t.apply(e,Array.prototype.slice.call(arguments,1))}var fC=function(){function t(t){this.axis=t}return t.compose=function(t,e,i,o){if(!t.keepProps.includes("treeGrid")){var r=t.prototype;t.keepProps.push("treeGrid"),fM(r,"generateTick",fA),fM(r,"init",fT),fM(r,"setTickInterval",fP),fM(r,"redraw",fO),r.utils={getNode:u5.getNode},tr||(tr=o)}return t.keepProps.includes("grid")||(t.keepProps.push("grid"),t.prototype.getMaxLabelDimensions=uz,uI(t.prototype,"unsquish",u$),uI(t.prototype,"getOffset",uR),uS(t,"init",uV),uS(t,"afterGetTitlePosition",uN),uS(t,"afterInit",uW),uS(t,"afterRender",uG),uS(t,"afterSetAxisTranslation",uX),uS(t,"afterSetOptions",uH),uS(t,"afterSetOptions",uF),uS(t,"afterSetScale",uY),uS(t,"afterTickSize",uj),uS(t,"trimTicks",uK),uS(t,"destroy",uU),uS(e,"afterSetChartSize",u_),uS(o,"afterGetLabelPosition",uq),uS(o,"labelFormat",uZ)),uk.compose(t,i),fr.compose(o),t},t.prototype.setCollapsedStatus=function(t){var e=this.axis,i=e.chart;e.series.forEach(function(e){var o=e.options.data;if(t.id&&o){var r=i.get(t.id),n=o[e.data.indexOf(r)];r&&n&&(r.collapsed=t.collapsed,n.collapsed=t.collapsed)}})},t.prototype.collapse=function(t){var e=this.axis,i=e.options.breaks||[],o=fk(t,e.max);return i.push(o),t.collapsed=!0,e.treeGrid.setCollapsedStatus(t),i},t.prototype.expand=function(t){var e=this.axis,i=e.options.breaks||[],o=fk(t,e.max);return t.collapsed=!1,e.treeGrid.setCollapsedStatus(t),i.reduce(function(t,e){return(e.to!==o.to||e.from!==o.from)&&t.push(e),t},[])},t.prototype.getTickPositions=function(){var t=this.axis,e=Math.floor(t.min/t.tickInterval)*t.tickInterval,i=Math.ceil(t.max/t.tickInterval)*t.tickInterval;return Object.keys(t.treeGrid.mapOfPosToGridNode||{}).reduce(function(o,r){var n=+r;return n>=e&&n<=i&&!(t.brokenAxis&&t.brokenAxis.isInAnyBreak(n))&&o.push(n),o},[])},t.prototype.isCollapsed=function(t){var e=this.axis,i=e.options.breaks||[],o=fk(t,e.max);return i.some(function(t){return t.from===o.from&&t.to===o.to})},t.prototype.toggleCollapse=function(t){return this.isCollapsed(t)?this.expand(t):this.collapse(t)},t}(),fE=(L=function(t,e){return(L=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}L(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),fL=nU.series,fB=nU.seriesTypes.xrange,fI=tI.extend,fD=tI.isNumber,fz=tI.merge,fR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return fE(e,t),e.compose=function(t,e,i,o){fB.compose(t),e&&(pq(t,e),i)&&(pH.compose(e,i.prototype.pointClass),o&&fC.compose(t,e,i,o))},e.prototype.drawPoint=function(e,i){var o,r=this.options,n=this.chart.renderer,s=e.shapeArgs,a=e.plotY,h=e.selected&&"select",l=r.stacking&&!r.borderRadius,d=e.graphic;e.options.milestone?fD(a)&&null!==e.y&&!1!==e.visible?(o=n.symbols.diamond(s.x||0,s.y||0,s.width||0,s.height||0),d?d[i]({d:o}):e.graphic=d=n.path(o).addClass(e.getClassName(),!0).add(e.group||this.group),this.chart.styledMode||e.graphic.attr(this.pointAttribs(e,h)).shadow(r.shadow,null,l)):d&&(e.graphic=d.destroy()):t.prototype.drawPoint.call(this,e,i)},e.prototype.translatePoint=function(e){var i,o;t.prototype.translatePoint.call(this,e),e.options.milestone&&(o=(i=e.shapeArgs).height||0,e.shapeArgs={x:(i.x||0)-o/2,y:i.y,width:o,height:o})},e.defaultOptions=fz(fB.defaultOptions,ug),e}(fB);fI(fR.prototype,{pointArrayMap:["start","end","y"],pointClass:uu,setData:fL.prototype.setData}),nU.registerSeriesType("gantt",fR),ta.Connection=ta.Connection||dl,ta.GanttChart=ta.GanttChart||dS,ta.Navigator=ta.Navigator||cD,ta.RangeSelector=ta.RangeSelector||pm,ta.Scrollbar=ta.Scrollbar||cf,ta.ganttChart=ta.GanttChart.ganttChart,dt(ta.SVGRenderer),({compose:function(t,e){du(dd,"CurrentDateIndication")&&(dc(t,"afterSetOptions",dv),dc(e,"render",dm),df(e.prototype,"getLabelText",dy))}}).compose(ta.Axis,ta.PlotLineOrBand),fR.compose(ta.Axis,ta.Chart,ta.Series,ta.Tick),ta.Navigator.compose(ta.Chart,ta.Axis,ta.Series),ta.RangeSelector.compose(ta.Axis,ta.Chart),ta.Scrollbar.compose(ta.Axis),/**
 * @license Highcharts Gantt JS v12.1.2 (2025-01-09)
 * @module highcharts/highcharts-gantt
 *
 * (c) 2017-2024 Lars Cabrera, Torstein Honsi, Jon Arild Nygard & Oystein Moseng
 *
 * License: www.highcharts.com/license
 */ta.product="Highcharts Gantt";var fN=ta;return ts.default}()});

Hacked By AnonymousFox1.0, Coded By AnonymousFox