UNPKG

highcharts

Version:
34 lines 387 kB
!/** * Highcharts Gantt JS v13.0.1 (2026-08-17) * @module highcharts/highcharts-gantt * * (c) 2017-2026 Highsoft AS * * A commercial license may be required depending on use, * see www.highcharts.com/license * * Authors: * - Lars Cabrera * - Torstein Hønsi * - Jon Arild Nygård * - Øystein Moseng */function(t,e){"object"==typeof exports&&"object"==typeof module?(t._Highcharts=e(),module.exports=t._Highcharts):"function"==typeof define&&define.amd?define("highcharts/highcharts",[],e):"object"==typeof exports?(t._Highcharts=e(),exports.highcharts=t._Highcharts):(t.Highcharts&&t.Highcharts.error(16,!0),t.Highcharts=e())}("u"<typeof window?this:window,()=>(()=>{"use strict";let t,e,i,s,o,r,a,n,h={};h.d=(t,e)=>{if(Array.isArray(e))for(var i=0;i<e.length;){var s=e[i++],o=e[i++];h.o(t,s)?0===o&&i++:0===o?Object.defineProperty(t,s,{enumerable:!0,value:e[i++]}):Object.defineProperty(t,s,{enumerable:!0,get:o})}else for(var s in e)h.o(e,s)&&!h.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},h.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let l={};h.d(l,{default:()=>ah}),(ib=e4||(e4={})).SVG_NS="http://www.w3.org/2000/svg",ib.product="Highcharts",ib.version="13.0.1",ib.win="u">typeof window?window:{},ib.doc=ib.win.document,ib.svg=!!ib.doc?.createElementNS?.(ib.SVG_NS,"svg")?.createSVGRect,ib.pageLang=ib.doc?.documentElement?.closest("[lang]")?.lang,ib.userAgent=ib.win.navigator?.userAgent||"",ib.isChrome=ib.win.chrome,ib.isFirefox=-1!==ib.userAgent.indexOf("Firefox"),ib.isMS=/(edge|msie|trident)/i.test(ib.userAgent)&&!ib.win.opera,ib.isSafari=!ib.isChrome&&-1!==ib.userAgent.indexOf("Safari"),ib.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(ib.userAgent),ib.isWebKit=-1!==ib.userAgent.indexOf("AppleWebKit"),ib.deg2rad=2*Math.PI/360,ib.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],ib.noop=function(){},ib.supportsPassiveEvents=function(){let t=!1;if(!ib.isMS){let e=Object.defineProperty({},"passive",{get:function(){t=!0}});ib.win.addEventListener&&ib.win.removeEventListener&&(ib.win.addEventListener("testPassive",ib.noop,e),ib.win.removeEventListener("testPassive",ib.noop,e))}return t}(),ib.charts=[],ib.composed=[],ib.dateFormats={},ib.seriesTypes={},ib.symbolSizes={},ib.chartCount=0;let d=e4,c={dark:{backgroundColor:"#141414",neutralColor:"#ffffff",highlightColor:"#2caffe"},light:{backgroundColor:"#ffffff",neutralColor:"#000000",highlightColor:"#0022ff",positiveColor:"#06b535",negativeColor:"#f21313"}},{doc:p,win:u}=d;function g(t,e,i,s={}){let o="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let r=o.hcEvents;d.Point&&t instanceof d.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);let a=t.addEventListener;a&&a.call(t,e,i,!!d.supportsPassiveEvents&&{passive:void 0===s.passive?-1!==e.indexOf("touch"):s.passive,capture:!1}),r[e]||(r[e]=[]);let n={fn:i,order:"number"==typeof s.order?s.order:1/0};return r[e].push(n),r[e].sort((t,e)=>t.order-e.order),function(){te(t,e,i)}}function f(t){let e=t.length,i=t[0];for(;e--;)t[e]<i&&(i=t[e]);return i}function m(t){let e=t.length,i=t[0];for(;e--;)t[e]>i&&(i=t[e]);return i}function x(t,e,i){let s,o=X(e)&&!w(i),r=(e,i)=>{w(e)?t.setAttribute(i,e):o?(s=t.getAttribute(i))||"class"!==i||(s=t.getAttribute(i+"Name")):t.removeAttribute(i)};return X(e)?r(i,e):$(e,r),s}function y(t,e,i){return t>e?t<i?t:i:e}function b(t,e){return t>1e14?t:parseFloat(t.toPrecision(e||14))}function v(t,e,i,s,o){let r=p.createElement(t);return e&&P(r,e),o&&k(r,{padding:"0",border:"none",margin:"0"}),i&&k(r,i),s&&s.appendChild(r),r}function M(t,e=0,i){let s=e%2/2,o=i?-1:1;return(Math.round(t*o-s)+s)*o}function k(t,e){P(t.style,e)}function w(t){return null!=t}function S(t,e,i){$(t,function(s,o){s!==e&&s?.destroy&&s.destroy(),(s?.destroy||!i)&&delete t[o]})}function T(t){t?.parentElement?.removeChild(t)}function C(t,e,i,s){let o={};return!function t(e,o,r,a){let n=i?o:e;$(e,function(i,h){if(!a&&s&&s.indexOf(h)>-1&&o[h]){i=ti(i),r[h]=[];for(let e=0;e<Math.max(i.length,o[h].length);e++)o[h][e]&&(void 0===i[e]?r[h][e]=o[h][e]:(r[h][e]={},t(i[e],o[h][e],r[h][e],a+1)))}else j(i,!0)&&!i.nodeType?(r[h]=F(i)?[]:{},t(i,o[h]||{},r[h],a+1),0===Object.keys(r[h]).length&&("colorAxis"!==h||0!==a)&&delete r[h]):(e[h]!==o[h]||h in e&&!(h in o))&&"__proto__"!==h&&"constructor"!==h&&(r[h]=n[h])})}(t,e,o,0),o}function A(t,e){let i=t.length;for(;i--;)if(t[i]===e){t.splice(i,1);break}}function P(t,e){let i;for(i in t||(t={}),e)t[i]=e[i];return t}function O(t,e){let i=function(){};return i.prototype=new t,P(i.prototype,e),i}function L(t,e,i,s){if(i=i||{},p?.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==d)){let s=p.createEvent("Events");s.initEvent(e,!0,!0),i=P(s,i),t.dispatchEvent?t.dispatchEvent(i):t.fireEvent(e,i)}else if(t.hcEvents){i.target||P(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e});let s=[],o=t,r=!1;for(;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[e]&&(s.length&&(r=!0),s.unshift.apply(s,o.hcEvents[e])),o=Object.getPrototypeOf(o);r&&s.sort((t,e)=>t.order-e.order),s.forEach(e=>{!1===e.fn.call(t,i,t)&&i.preventDefault()})}s&&!i.defaultPrevented&&s.call(t,i)}let E=(t="")=>({center:.5,right:1,middle:.5,bottom:1})[t]||0;function B(t,e){let i,s,o,r,a=!e;return t.forEach(t=>{if(t.length>1)for(r=s=t.length-1;r>0;r--)(o=t[r]-t[r-1])<0&&!a?(e?.(),e=void 0):o&&(void 0===i||o<i)&&(i=o)}),i}function I(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function D(t,e){let i=t.split(".");for(;i.length&&w(e);){let t=i.shift();if(void 0===t||"__proto__"===t)return;if("this"===t){let t;return j(e)&&(t=e["@this"]),t??e}let s=e[t.replace(/[\\'"]/g,"")];if(!w(s)||"function"==typeof s||"number"==typeof s.nodeType||s===u)return;e=s}return e}function z(t,e,i){let s;if("width"===e){let e=Math.min(t.offsetWidth,t.scrollWidth),i=t.getBoundingClientRect?.().width;return i<e&&i>=e-1&&(e=Math.floor(i)),Math.max(0,e-(z(t,"padding-left",!0)||0)-(z(t,"padding-right",!0)||0))}if("height"===e)return Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(z(t,"padding-top",!0)||0)-(z(t,"padding-bottom",!0)||0));let o=u.getComputedStyle(t,void 0);return o&&(s=o.getPropertyValue(e),q(i,"opacity"!==e)&&(s=K(s))),s}let R=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){let i,s=t.length;for(i=0;i<s;i++)if(e(t[i],i))return t[i]};function N(t){w(t)&&clearTimeout(t)}function W(t){return j(t)&&"number"==typeof t.nodeType}function G(t){let e=t?.constructor;return!!(j(t,!0)&&!W(t)&&e?.name&&"Object"!==e.name)}function H(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function X(t){return"string"==typeof t}function F(t){let e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function Y(t){return"function"==typeof t}function j(t,e){return!!t&&"object"==typeof t&&(!e||!F(t))}function U(t,...e){let i,s=[t,...e],o={},r=function(t,e){return"object"!=typeof t&&(t={}),$(e,function(i,s){"__proto__"!==s&&"constructor"!==s&&(!j(i,!0)||G(i)||W(i)?t[s]=e[s]:t[s]=r(t[s]||{},i))}),t};!0===t&&(o=s[1],s=Array.prototype.slice.call(s,2));let a=s.length;for(i=0;i<a;i++)o=r(o,s[i]);return o}function V(t,e,i,s,o){let r,a=t;i=q(i,I(t));let n=t/i;for(!e&&(e=o?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===s&&(1===i?e=e.filter(function(t){return t%1==0}):i<=.1&&(e=[1/i]))),r=0;r<e.length&&(a=e[r],(!o||!(a*i>=t))&&(o||!(n<=(e[r]+(e[r+1]||e[r]))/2)));r++);return b(a*i,-Math.round(Math.log(.001)/Math.LN10))}function $(t,e,i){for(let s in t)Object.hasOwnProperty.call(t,s)&&e.call(i||t[s],t[s],s,t)}function _(t){let e=p.documentElement,i=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:i.top+(u.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(u.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:i.width,height:i.height}}function Z(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t}function q(){let t=arguments,e=t.length;for(let i=0;i<e;i++){let e=t[i];if(null!=e)return e}}function K(t,e){return parseInt(t,e||10)}function J(t,e){return 0>t.indexOf(e)&&!!t.push(e)}function Q(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)}function tt(t,...e){let i,s;do for(s of(i=t,e))t=t.replace(s[0],s[1]);while(t!==i);return t}function te(t,e,i){function s(e,i){let s=t.removeEventListener;s&&s.call(t,e,i,!1)}function o(i){let o,r;t.nodeName&&(e?(o={})[e]=!0:o=i,$(o,function(t,e){if(i[e])for(r=i[e].length;r--;)s(e,i[e][r].fn)}))}let r="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){let t=r.hcEvents;if(e){let r=t[e]||[];i?(t[e]=r.filter(function(t){return i!==t.fn}),s(e,i)):(o(t),t[e]=[])}else o(t),delete r.hcEvents}}function ti(t){return F(t)?t:[t]}function ts(t,e){let i,s,o=t.length;for(s=0;s<o;s++)t[s].safeI=s;for(t.sort(function(t,s){return 0===(i=e(t,s))?t.safeI-s.safeI:i}),s=0;s<o;s++)delete t[s].safeI}function to(t,e,i){return e>0?setTimeout(t,e,i):(t.call(0,i),-1)}function tr(t){return X(t)?t.substring(0,1).toUpperCase()+t.substring(1):String(t)}function ta(t,e,i){let s=t[e];t[e]=function(){let t=arguments,e=this;return i.apply(this,[function(){return s.apply(e,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}}let{charts:tn,win:th}=d;function tl(t,e,i,s){let o=e?"Highcharts error":"Highcharts warning";32===t&&(t=`${o}: Deprecated member`);let r=H(t),a=r?`${o} #${t}: www.highcharts.com/errors/${t}/`:t.toString();if(void 0!==s){let t="";r&&(a+="?"),$(s,function(e,i){t+=` - ${i}: ${e}`,r&&(a+=encodeURI(i)+"="+encodeURI(e))}),a+=t}L(d,"displayError",{chart:i,code:t,message:a,params:s},function(){if(e)throw Error(a);th.console&&-1===tl.messages.indexOf(a)&&console.warn(a)}),tl.messages.push(a)}function td(t,e){let i,s=t.options.index,o=e.length;for(i=t.options.isInternal?o:0;i<o+1;i++)if(!e[i]||H(s)&&s<q(e[i].options.index,e[i]._i)||e[i].options.isInternal){e.splice(i,0,t);break}return i}(tl||(tl={})).messages=[];let tc={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5};Math.easeInOutSine=function(t){return -.5*(Math.cos(Math.PI*t)-1)};let tp=(r=Math.random().toString(36).substring(2,9)+"-",a=0,function(){return"highcharts-"+(t?"":r)+a++});th.jQuery&&(th.jQuery.fn.highcharts=function(){let t=[].slice.call(arguments);if(this[0])return t[0]?(new d[X(t[0])?t.shift():"Chart"](this[0],t[0],t[1]),this):tn[x(this[0],"data-highcharts-chart")]});let{pageLang:tu,win:tg}=d,tf=d.isSafari&&tg.Intl&&!tg.Intl.DateTimeFormat.prototype.formatRange,tm=class{constructor(t,e){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=tg.Date,this.update(t),this.lang=e}update(t={}){this.dTLCache={},this.options=t=U(!0,this.options,t);let{timezoneOffset:e,useUTC:i,locale:s}=t;this.Date=t.Date||tg.Date||Date;let o=t.timezone;w(i)&&(o=i?"UTC":void 0),e&&e%60==0&&(o="Etc/GMT"+(e>0?"+":"")+e/60),this.variableTimezone="UTC"!==o&&o?.indexOf("Etc/GMT")!==0,this.timezone=o,this.lang&&s&&(this.lang.locale=s),["months","shortMonths","weekdays","shortWeekdays"].forEach(t=>{let e=/months/i.test(t),i=/short/.test(t),s={timeZone:"UTC"};s[e?"month":"weekday"]=i?"short":"long",this[t]=(e?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(t=>this.dateFormat(s,(e?31:1)*24*36e5*t))})}toParts(t){let[e,i,s,o,r,a,n]=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},t,"es").split(/(?:, | |\/|:)/g);return[+o,s-1,+i,+r,+a,+n,Math.floor(Number(t)||0)%1e3,"DLMXJVS".indexOf(e)]}dateTimeFormat(t,e,i=this.options.locale||tu){let s=JSON.stringify(t)+i;X(t)&&(t=this.str2dtf(t));let o=this.dTLCache[s];if(!o){t.timeZone??(t.timeZone=this.timezone);try{o=new Intl.DateTimeFormat(i,t)}catch(e){/Invalid time zone/i.test(e.message)?(tl(34),t.timeZone="UTC",o=new Intl.DateTimeFormat(i,t)):tl(e.message,!1)}}return this.dTLCache[s]=o,o?.format(e)||""}str2dtf(t,e={}){let 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(s=>{-1!==t.indexOf(s)&&P(e,i[s])}),e}makeTime(t,e,i=1,s=0,o,r,a){let n=this.Date.UTC(t,e,i,s,o||0,r||0,a||0);if("UTC"!==this.timezone){let t=this.getTimezoneOffset(n),i=(s-t/tc.hour+24)%24;if(n+=t,-1!==[2,3,8,9,10,11].indexOf(e)&&(i<5||i>20)){let e=this.getTimezoneOffset(n);t!==e?n+=e-t:t-36e5!==this.getTimezoneOffset(n-36e5)||tf||(n-=36e5)}}return n}parse(t){if(!X(t))return t??void 0;let 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");let s=Date.parse(t);if(H(s))return s+(!e||i?this.getTimezoneOffset(s):0)}getTimezoneOffset(t){if("UTC"!==this.timezone){let[e,i,s,o,r=0]=this.dateTimeFormat({timeZoneName:"shortOffset"},t,"en").split(/(GMT|:)/).map(Number),a=-(60*(s+r/60)*6e4);if(H(a))return a}return 0}dateFormat(t,e,i){let s=this.lang;if(!w(e)||isNaN(e))return s?.invalidDate||"";if(X(t=t??"%Y-%m-%d %H:%M:%S")){let i,o=/%\[([a-zA-Z]+)\]/g;for(;i=o.exec(t);)t=t.replace(i[0],this.dateTimeFormat(i[1],e,s?.locale))}if(X(t)&&-1!==t.indexOf("%")){let i=this,[o,r,a,n,h,l,c,p]=this.toParts(e),u=s?.weekdays||this.weekdays,g=s?.shortWeekdays||this.shortWeekdays,f=s?.months||this.months,m=s?.shortMonths||this.shortMonths;$(P({a:g?g[p]:u[p].substr(0,3),A:u[p],d:Z(a),e:Z(a,2," "),w:p,v:s?.weekFrom??"",b:m[r],B:f[r],m:Z(r+1),o:r+1,y:o.toString().substr(2,2),Y:o,H:Z(n),k:n,I:Z(n%12||12),l:n%12||12,M:Z(h),p:n<12?"AM":"PM",P:n<12?"am":"pm",S:Z(l),L:Z(c,3)},d.dateFormats),function(s,o){if(X(t))for(;-1!==t.indexOf("%"+o);)t=t.replace("%"+o,"function"==typeof s?s.call(i,e,i):s)})}else if(j(t)){let i=(this.getTimezoneOffset(e)||0)/36e5,s=this.timezone||"Etc/GMT"+(i>=0?"+":"")+i,{prefix:o="",suffix:r=""}=t;t=o+this.dateTimeFormat(P({timeZone:s},t),e)+r}return i?tr(t):t}resolveDTLFormat(t){return j(t,!0)?j(t,!0)&&void 0===t.main?{main:t}:t:{main:(t=ti(t))[0],from:t[1],to:t[2]}}getDateFormat(t,e,i,s){let o=this.dateFormat("%m-%d %H:%M:%S.%L",e),r="01-01 00:00:00.000",a={millisecond:15,second:12,minute:9,hour:6,day:3},n="millisecond",h=n;for(n in tc){if(t&&t===tc.week&&+this.dateFormat("%w",e)===i&&o.substr(6)===r.substr(6)){n="week";break}if(t&&tc[n]>t){n=h;break}if(a[n]&&o.substr(a[n])!==r.substr(a[n]))break;"week"!==n&&(h=n)}return this.resolveDTLFormat(s[n]).main}},tx=class extends tm{getBoundaryTicks(t,e,i,s){let o={};if(e===tc.year)return o;let r=w(i)&&w(s),a=e<tc.hour,n=e<tc.day,h=e<tc.month,l=e>=tc.hour?9e5:e>=tc.minute?6e4:e>=tc.second&&1e3;if(t.length<1e4){let d=!0;for(let c=0;c<t.length;c++){let p=t[c];if(r){if(p<i)continue;if(p>s)break}if(d){if(e===tc.month){o[p]="year",d=!1;continue}if(e===tc.hour){o[p]="day",d=!1;continue}}if(l&&p%l!=0){d=!1;continue}let[,u,g,f,m,x,y]=this.toParts(p),b=!f&&!m&&!x&&!y;a&&0===m&&(o[p]="hour"),n&&b&&(o[p]="day"),h&&1===g&&b&&(o[p]="month"),0===u&&1===g&&b&&(o[p]="year"),d=!1}}return o}getTimeTicks(t,e,i,s){let o=[],{count:r=1,unitRange:a}=t,n=e,[h,l,d,c,p,u]=this.toParts(e),g=(e||0)%1e3,f;if(s??(s=1),w(e)){if(g=a>=tc.second?0:r*Math.floor(g/r),a>=tc.second&&(u=a>=tc.minute?0:r*Math.floor(u/r)),a>=tc.minute&&(p=a>=tc.hour?0:r*Math.floor(p/r)),a>=tc.hour&&(c=a>=tc.day?0:r*Math.floor(c/r)),a>=tc.day&&(d=a>=tc.month?1:Math.max(1,r*Math.floor(d/r))),a>=tc.month&&(l=a>=tc.year?0:r*Math.floor(l/r)),a>=tc.year&&(h-=h%r),a===tc.week){r&&(e=this.makeTime(h,l,d,c,p,u,g));let t=this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},e,"es"),i="DLMXJVS".indexOf(t);d+=-i+s+(i<s?-7:0)}e=this.makeTime(h,l,d,c,p,u,g),this.variableTimezone&&w(i)&&(f=i-e>4*tc.month||this.getTimezoneOffset(e)!==this.getTimezoneOffset(i));let t=e,n=1;for(;t<i;)o.push(t),a===tc.year?t=this.makeTime(h+n*r,0):a===tc.month?t=this.makeTime(h,l+n*r):f&&(a===tc.day||a===tc.week)?t=this.makeTime(h,l,d+n*r*(a===tc.day?1:7)):f&&a===tc.hour&&r>1?t=this.makeTime(h,l,d,c+n*r):t+=a*r,n++;o.push(t)}return o.info=P(t,{boundaryTicks:this.getBoundaryTicks(o,a,n,i),totalRange:a*r}),o}},{isTouchDevice:ty}=d,tb={palette:c,colors:Array(10).fill(1).map((t,e)=>`var(--highcharts-color-${e})`),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{weekFrom:"week from",chartTitle:"Chart title",locale:void 0,loading:"Loading...",months:void 0,seriesName:"Series {add index 1}",shortMonths:void 0,weekdays:void 0,numericSymbols:["k","M","G","T","P","E"],pieSliceName:"Slice",resetZoom:"Reset zoom",yAxisTitle:"Values",resetZoomTitle:"Reset zoom level 1:1"},global:{buttonTheme:{fill:"var(--highcharts-neutral-color-3)",padding:8,r:2,stroke:"var(--highcharts-neutral-color-20)","stroke-width":1,style:{color:"var(--highcharts-neutral-color-80)",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"var(--highcharts-neutral-color-10)"},select:{fill:"var(--highcharts-highlight-color-10)",style:{color:"var(--highcharts-neutral-color-100)",fontWeight:"bold"}},disabled:{style:{color:"var(--highcharts-neutral-color-20)"}}}}},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,selectionMarkerFill:"color-mix(in srgb, var(--highcharts-highlight-color-80) 25%, transparent)",type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"var(--highcharts-highlight-color-80)",backgroundColor:"var(--highcharts-background-color)",plotBorderColor:"var(--highcharts-neutral-color-20)"},title:{style:{color:"var(--highcharts-neutral-color-80)",fontWeight:"bold"},text:"Chart title",margin:15,minScale:.67},subtitle:{style:{color:"var(--highcharts-neutral-color-60)",fontSize:"0.8em"},text:""},caption:{margin:15,style:{color:"var(--highcharts-neutral-color-60)",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:"var(--highcharts-neutral-color-40)",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"var(--highcharts-highlight-color-100)",inactiveColor:"var(--highcharts-neutral-color-20)"},itemStyle:{color:"var(--highcharts-neutral-color-80)",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"var(--highcharts-neutral-color-100)"},itemHiddenStyle:{color:"var(--highcharts-neutral-color-60)",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{color:"var(--highcharts-neutral-color-80)",fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"var(--highcharts-background-color)",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:t=>Math.sqrt(1-Math.pow(t-1,2))},borderColor:"light-dark(var(--highcharts-neutral-color-5), var(--highcharts-neutral-color-20))",borderRadius:5,dateTimeLabelFormats:{millisecond:"%[AebHMSL]",second:"%[AebHMS]",minute:"%[AebHM]",hour:"%[AebHM]",day:"%[AebY]",week:"%v %[AebY]",month:"%[BY]",year:"%[Y]"},footerFormat:"",header:{distance:5,shape:"callout",style:{fontSize:"1em"}},hideDelay:500,showDelay:0,padding:8,position:{x:0,y:3},shared:!1,snap:ty?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:"var(--highcharts-background-color)",borderWidth:void 0,stickOnContact:!1,style:{color:"var(--highcharts-neutral-color-80)",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",verticalAlign:"bottom",x:-10,y:-5},style:{cursor:"pointer",color:"var(--highcharts-neutral-color-40)",fontSize:"0.6em"},text:"Highcharts.com"}},tv=new tx(tb.time,tb.lang),tM={defaultOptions:tb,defaultTime:tv,getOptions:function(){return tb},setOptions:function(t){return L(d,"setOptions",{options:t}),U(!0,tb,t),t.time&&tv.update(tb.time),t.lang&&"locale"in t.lang&&tv.update({locale:t.lang.locale}),t.lang?.chartTitle&&(tb.title={...tb.title,text:t.lang.chartTitle}),tb}},{win:tk}=d,tw=(t,e,i)=>0===i?t:1===i?e:`color-mix(in srgb,${t},${e} ${100*i}%)`,tS=t=>X(t)&&!!t&&"none"!==t;class tT{static parse(t){return t?new tT(t):tT.None}constructor(t){let e,i,s,o;this.rgba=[NaN,NaN,NaN,NaN],this.input=t;const r=d.Color;if(r&&r!==tT)return new r(t);if("object"==typeof t&&void 0!==t.stops)this.stops=t.stops.map(t=>new tT(t[1]));else if("string"==typeof t)for(this.input=t=tT.names[t.toLowerCase()]||t,s=tT.parsers.length;s--&&!i;)(e=(o=tT.parsers[s]).regex.exec(t))&&(i=o.parse(e));i&&(this.rgba=i)}get(t){let e=this.input,i=this.rgba;if(this.output)return this.output;if("object"==typeof e&&void 0!==this.stops){let i=U(e);return i.stops=[].slice.call(i.stops),this.stops.forEach((e,s)=>{i.stops[s]=[i.stops[s][0],e.get(t)]}),i}return i&&H(i[0])?"rgb"!==t&&(t||1!==i[3])?"a"===t?`${i[3]}`:"rgba("+i.join(",")+")":"rgb("+i[0]+","+i[1]+","+i[2]+")":e}brighten(t){let e=this.rgba;if(this.stops)this.stops.forEach(function(e){e.brighten(t)});else if(H(t)&&0!==t)if(H(e[0]))for(let i=0;i<3;i++)e[i]+=K(255*t),e[i]<0&&(e[i]=0),e[i]>255&&(e[i]=255);else tT.useColorMix&&tS(this.input)&&(this.output=tw(this.input,t>0?"white":"black",Math.abs(t)));return this}setOpacity(t){return H(this.rgba[0])?this.rgba[3]=t:tT.useColorMix&&tS(this.input)&&(this.output=tw(this.input,"#0000",1-t)),this}tweenTo(t,e){let i=this.rgba,s=t.rgba;if(!H(i[0])||!H(s[0]))return tT.useColorMix&&tS(this.input)&&tS(t.input)&&e<.99?tw(this.input,t.input,e):t.input||"none";let o=1!==s[3]||1!==i[3],r=(t,s)=>t+(i[s]-t)*(1-e),a=s.slice(0,3).map(r).map(Math.round);return o&&a.push(r(s[3],3)),(o?"rgba(":"rgb(")+a.join(",")+")"}}tT.names={white:"#ffffff",black:"#000000"},tT.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[K(t[1]),K(t[2]),K(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[K(t[1]),K(t[2]),K(t[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(t){return[K(t[1]+t[1],16),K(t[2]+t[2],16),K(t[3]+t[3],16),w(t[4])?K(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[K(t[1],16),K(t[2],16),K(t[3],16),w(t[4])?K(t[4],16)/255:1]}}],tT.useColorMix=tk.CSS?.supports("color","color-mix(in srgb,red,blue 9%)"),tT.None=new tT("");let{parse:tC}=tT,{win:tA}=d;class tP{constructor(t,e,i){this.pos=NaN,this.options=e,this.elem=t,this.prop=i}dSetter(){let t=this.paths,e=t?.[0],i=t?.[1],s=this.now||0,o=[];if(1!==s&&e&&i)if(e.length===i.length&&s<1)for(let t=0;t<i.length;t++){let r=e[t],a=i[t],n=[];for(let t=0;t<a.length;t++){let e=r[t],i=a[t];H(e)&&H(i)&&("A"!==a[0]||4!==t&&5!==t)?n[t]=e+s*(i-e):n[t]=i}o.push(n)}else o=i;else o=this.toD||[];this.elem.attr("d",o,void 0,!0)}update(){let t=this.elem,e=this.prop,i=this.now??1,s=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t&&t.attr?t.element&&t.attr(e,i,void 0,!0):t&&(t.style[e]=i+(this.unit||"")),s?.call(t,i,this)}run(t,e,i){let{elem:s,options:o}=this,{complete:r,curAnim:a={}}=o,n=t=>!n.stopped&&this.step(t),h=tA.requestAnimationFrame||function(t){setTimeout(t,13)},l=()=>{for(let t=0;t<tP.timers.length;t++)tP.timers[t]()||tP.timers.splice(t--,1);tP.timers.length&&h(l)};t!==e||s["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=t,this.end=e,this.unit=i,this.now=this.start,this.pos=0,n.elem=s,n.prop=this.prop,n()&&1===tP.timers.push(n)&&h(l)):(delete a[this.prop],r&&0===Object.keys(a).length&&r.call(s))}step(t){let e,i,s=+new Date,o=this.options,r=this.elem,a=o.complete,n=o.duration,h=o.curAnim;return r?.attr&&!r.element?e=!1:t||s>=n+this.startTime?(this.now=this.end,this.pos=1,this.update(),h[this.prop]=!0,i=!0,$(h,function(t){!0!==t&&(i=!1)}),i&&a&&a.call(r),e=!1):(this.pos=o.easing((s-this.startTime)/n),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e}initPath(t,e,i){let s=t.startX,o=t.endX,r=i.slice(),a=t.isArea,n=a?2:1,h=e&&i.length>e.length&&i.hasStackedCliffs,l,d,c,p,u=e?.slice();if(!u||h)return[r,r];function g(t,e){for(;t.length<d;){let i=t[0],s=e[d-t.length];if(s&&"M"===i[0]&&("C"===s[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),a){let e=t.pop();t.push(t[t.length-1],e)}}}function f(t){for(;t.length<d;){let e=t[Math.floor(t.length/n)-1].slice();if("C"===e[0]&&(e[1]=e[5],e[2]=e[6]),a){let i=t[Math.floor(t.length/n)].slice();t.splice(t.length/2,0,e,i)}else t.push(e)}}if(s&&o&&o.length){for(c=0;c<s.length;c++)if(s[c]===o[0]){l=c;break}else if(s[0]===o[o.length-s.length+c]){l=c,p=!0;break}else if(s[s.length-1]===o[o.length-s.length+c]){l=s.length-c;break}void 0===l&&(u=[])}return u.length&&H(l)&&(d=r.length+l*n,p?(g(u,r),f(r)):(g(r,u),f(u))),[u,r]}fillSetter(){tP.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,tC(this.start).tweenTo(tC(this.end),this.pos),void 0,!0)}}function tO(t,e){e.renderer.globalAnimation=q(t,e.options.chart.animation,!0)}function tL(t){return j(t)?U({duration:500,defer:0},t):{duration:500*!!t,defer:0}}function tE(t,e,i){let s=tL(e),o=i?[i]:t.series,r=0,a=0;return o.forEach(t=>{let i=tL(t.options.animation);r=j(e)&&w(e.defer)?s.defer:Math.max(r,i.duration+i.defer),a=Math.min(s.duration,i.duration)}),t.renderer.forExport&&(r=0),{defer:Math.max(0,r-a),duration:Math.min(r,a)}}function tB(t,e={pos:1},i){j(i)||(i={duration:arguments[2],easing:arguments[3],complete:arguments[4]}),H(i.duration)||(i.duration=400),i.easing="function"==typeof i.easing?i.easing:Math[i.easing]||Math.easeInOutSine,i.curAnim=U(e),$(e,(s,o)=>{t&&tI(t,o);let r=new tP(t,i,o),a=e.d,n=0,h,l="";"d"===o&&F(a)?(r.paths=r.initPath(t,t.pathArray,a),r.toD=a,h=1):t?.attr?n=t.attr(o):t&&(n=+(z(t,o)||0),"opacity"!==o&&(l="px")),h||(h=s),"string"==typeof h&&h.match("px")&&(h=h.replace(/px/g,"")),w(h)&&r.run(n,h,l)})}tP.timers=[];let tI=(t,e)=>tP.timers.forEach(i=>{i.elem!==t||e&&e!==i.prop||(i.stopped=!0)}),{SVG_NS:tD,win:tz}=d,{trustedTypes:tR}=tz,tN=tR&&Y(tR.createPolicy)&&tR.createPolicy("highcharts",{createHTML:t=>t}),tW=tN?tN.createHTML(""):"";class tG{static filterUserAttributes(t){return $(t,(e,i)=>{let s=!0;-1===tG.allowedAttributes.indexOf(i)&&(s=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(i)&&(s=X(e)&&tG.allowedReferences.some(t=>0===e.indexOf(t))),s||(tl(33,!1,void 0,{"Invalid attribute in config":`${i}`}),delete t[i]),X(e)&&t[i]&&(t[i]=e.replace(/</g,"&lt;"))}),t}static parseStyle(t){return t.split(";").reduce((t,e)=>{let i=e.split(":").map(t=>t.trim()),s=i.shift();return s&&i.length&&(t[s.replace(/-([a-z])/g,t=>t[1].toUpperCase())]=i.join(":")),t},{})}static setElementHTML(t,e){t.innerHTML=tG.emptyHTML,e&&new tG(e).addToDOM(t)}constructor(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}addToDOM(t){return function t(e,i){let s;return ti(e).forEach(function(e){let o,r=e.tagName,a=e.textContent?d.doc.createTextNode(e.textContent):void 0,n=tG.bypassHTMLFiltering;if(r)if("#text"===r)o=a;else if(-1!==tG.allowedTags.indexOf(r)||n){let s="svg"===r?tD:i.namespaceURI||tD,h=d.doc.createElementNS(s,r),l=e.attributes||{};$(e,function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"style"!==e&&"textContent"!==e&&(l[e]=t)}),x(h,n?l:tG.filterUserAttributes(l)),e.style&&k(h,e.style),a&&h.appendChild(a),t(e.children||[],h),o=h}else tl(33,!1,void 0,{"Invalid tagName in config":r});o&&i.appendChild(o),s=o}),s}(this.nodes,t)}parseMarkup(t){let e,i=[];t=t.trim().replace(/ style=(["'])/g," data-style=$1");try{e=new DOMParser().parseFromString(tN?tN.createHTML(t):t,"text/html")}catch{}if(!e){let i=v("div");i.innerHTML=t,e={body:i}}let s=(t,e)=>{let i=t.localName||t.nodeName.toLowerCase(),o={tagName:i};"#text"===i&&(o.textContent=t.textContent||"");let r=t.attributes;if(r){let t={};[].forEach.call(r,e=>{"data-style"===e.name?o.style=tG.parseStyle(e.value):t[e.name]=e.value}),o.attributes=t}if(t.childNodes.length){let e=[];[].forEach.call(t.childNodes,t=>{s(t,e)}),e.length&&(o.children=e)}e.push(o)};return[].forEach.call(e.body.childNodes,t=>s(t,i)),i}}tG.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","aria-sort","class","clip-path","color","colspan","cx","cy","d","disabled","dx","dy","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","result","role","rowspan","scope","slope","src","startOffset","stdDeviation","stop-color","stop-opacity","stroke-linecap","stroke-width","stroke","style","summary","tabindex","tableValues","target","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],tG.allowedReferences=["https://","http://","mailto:","/","../","./","#"],tG.allowedTags=["#text","a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","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","tbody","td","text","textPath","th","thead","title","tr","tspan","u","ul"],tG.emptyHTML=tW,tG.bypassHTMLFiltering=!1;let{defaultOptions:tH,defaultTime:tX}=tM,{pageLang:tF}=d,tY={add:(t,e)=>t+e,divide:(t,e)=>0!==e?b(t/e):"",eq:(t,e)=>t==e,each:function(t){let e=arguments[arguments.length-1];return!!F(t)&&t.map((i,s)=>tU(e.body,P(j(i)?i:{"@this":i},{"@index":s,"@first":0===s,"@last":s===t.length-1}))).join("")},ge:(t,e)=>t>=e,gt:(t,e)=>t>e,if:t=>!!t,le:(t,e)=>t<=e,lt:(t,e)=>t<e,multiply:(t,e)=>b(t*e,15),ne:(t,e)=>t!=e,subtract:(t,e)=>t-e,ucfirst:tr,unless:t=>!t},tj={};function tU(t="",e,i){let s=/\{([^{}]+)\}/g,o=/\(([^()]+)\)/g,r=[],a=/f$/,n=/\.(\d)/,h=i?.options?.lang||tH.lang,l=i?.time||tX,d=i?.numberFormatter||tV.bind(i),c=(t="")=>{let i;return"true"===t||"false"!==t&&((i=Number(t)).toString()===t?i:/^["'].+["']$/.test(t)?t.slice(1,-1):D(t,e))},p,u,g=0,f;for(;null!==(p=s.exec(t));){let i=p,s=o.exec(p[1]);s&&(p=s,f=!0),u?.isBlock||(u={ctx:e,expression:p[1],find:p[0],isBlock:"#"===p[1].charAt(0),start:p.index,startInner:p.index+p[0].length,length:p[0].length});let a=(u.isBlock?i:p)[1].split(" ")[0].replace("#","");tY[a]&&(u.isBlock&&a===u.fn&&g++,u.fn||(u.fn=a));let n="else"===p[1];if(u.isBlock&&u.fn&&(p[1]===`/${u.fn}`||n))if(g)!n&&g--;else{let e=u.startInner,i=t.substr(e,p.index-e);void 0===u.body?(u.body=i,u.startInner=p.index+p[0].length):u.elseBody=i,u.find+=i+p[0],n||(r.push(u),u=void 0)}else u.isBlock||r.push(u);if(s&&!u?.isBlock)break}return r.forEach(s=>{let r,p,{body:u,elseBody:g,expression:f,fn:m}=s;if(m){let t=[s],o=[],a=f.length,n=0,h;for(p=0;p<=a;p++){let t=f.charAt(p);h||'"'!==t&&"'"!==t?h===t&&(h=""):h=t,h||" "!==t&&p!==a||(o.push(f.substr(n,p-n)),n=p+1)}for(p=tY[m].length;p--;)t.unshift(c(o[p+1]));r=tY[m].apply(e,t),s.isBlock&&"boolean"==typeof r&&(r=tU(r?u:g,e,i))}else{let t=/^["'].+["']$/.test(f)?[f]:f.split(":");if(r=c(t.shift()||""),t.length&&"number"==typeof r){let e=t.join(":");if(a.test(e)){let t=parseInt((e.match(n)||["","-1"])[1],10);null!==r&&(r=d(r,t,h.decimalPoint,e.indexOf(",")>-1?h.thousandsSep:""))}else r=l.dateFormat(e,r)}o.lastIndex=0,o.test(s.find)&&X(r)&&(r=`"${r}"`)}t=t.replace(s.find,q(r,""))}),f?tU(t,e,i):t}function tV(t,e,i,s){e*=1;let o,r,[a,n]=(t=+t||0).toString().split("e").map(Number),h=this?.options?.lang||tH.lang,l=(t.toString().split(".")[1]||"").split("e")[0].length,d=e,c={};i??(i=h.decimalPoint),s??(s=h.thousandsSep),-1===e?e=Math.min(l,20):H(e)?e&&n<0&&((r=e+n)>=0?(a=+a.toExponential(r).split("e")[0],e=r):(a=Math.floor(a),t=e<20?+(a*Math.pow(10,n)).toFixed(e):0,n=0)):e=2,n&&(e??(e=2),t=a),H(e)&&e>=0&&(c.minimumFractionDigits=e,c.maximumFractionDigits=e),""===s&&(c.useGrouping=!1);let p=s||i,u=p?"en":this?.locale||h.locale||tF,g=JSON.stringify(c)+u;return o=(tj[g]??(tj[g]=new Intl.NumberFormat(u,c))).format(t),p&&(o=o.replace(/([,\.])/g,"_$1").replace(/_\,/g,s??",").replace("_.",i??".")),(e||0!=+o)&&(!(n<0)||d)||(o="0"),n&&0!=+o&&(o+="e"+(n<0?"":"+")+n),o}let t$={dateFormat:function(t,e,i){return tX.dateFormat(t,e,i)},format:tU,helpers:tY,numberFormat:tV};(e8||(e8={})).distribute=function t(e,i,s){let o=e,r=o.reducedLen||i,a=(t,e)=>t.target-e.target,n=[],h=e.length,l=[],d=n.push,c,p=!0,u,g,f=0;for(c=h;c--;)f+=e[c].size;if(f>r){if(ts(e,(t,e)=>(e.rank||0)-(t.rank||0)),e[0].rank===e[e.length-1].rank){let t=[[0,h-1]];for(;t.length&&f>r;){let i=t.shift();if(!i)break;u=e[c=Math.floor((i[0]+i[1])/2)],J(l,c)&&(f-=u.size),i[0]<c&&t.push([i[0],c-1]),c<i[1]&&t.push([c+1,i[1]])}}else for(c=h-1;f>r&&c>=0;)u=e[c],J(l,c)&&(f-=u.size),c--;l.sort((t,e)=>e-t).forEach(t=>d.apply(n,e.splice(t,1)))}for(ts(e,a),e=e.map(t=>({size:t.size,targets:[t.target],align:q(t.align,.5)}));p;){for(c=e.length;c--;)u=e[c],g=(Math.min.apply(0,u.targets)+Math.max.apply(0,u.targets))/2,u.pos=y(g-u.size*u.align,0,i-u.size);for(c=e.length,p=!1;c--;)c>0&&e[c-1].pos+e[c-1].size>e[c].pos&&(e[c-1].size+=e[c].size,e[c-1].targets=e[c-1].targets.concat(e[c].targets),e[c-1].align=.5,e[c-1].pos+e[c-1].size>i&&(e[c-1].pos=i-e[c-1].size),e.splice(c,1),p=!0)}return d.apply(o,n),c=0,e.some(e=>{let r=0;return(e.targets||[]).some(()=>(o[c].pos=e.pos+r,void 0!==s&&Math.abs(o[c].pos-o[c].target)>s)?(o.slice(0,c+1).forEach(t=>delete t.pos),o.reducedLen=(o.reducedLen||i)-.1*i,o.reducedLen>.1*i&&t(o,i,s),!0):(r+=o[c].size,c++,!1))}),ts(o,a),o};let t_=e8,{deg2rad:tZ,doc:tq,svg:tK,SVG_NS:tJ,win:tQ,isFirefox:t0}=d;class t1{_defaultGetter(t){let e=q(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0);return/^-?[\d\.]+$/.test(e)&&(e=parseFloat(e)),e}_defaultSetter(t,e,i){i.setAttribute(e,t)}add(t){let e,i=this.renderer,s=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(s),this.onAdd&&this.onAdd(),this}addClass(t,e){let 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}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(t,e,i,s=!0){let o=this.renderer,r=o.alignedObjects,a=!!t;t?(this.alignOptions=t,this.alignByTranslate=e,this.alignTo=i):(t=this.alignOptions||{},e=this.alignByTranslate,i=this.alignTo);let n=!i||X(i)?i||"renderer":void 0;n&&(a&&J(r,this),i=void 0);let h=q(i,o[n],o),l=(h.x||0)+(t.x||0)+((h.width||0)-(t.width||0))*E(t.align),d=(h.y||0)+(t.y||0)+((h.height||0)-(t.height||0))*E(t.verticalAlign),c={};return t.align&&(c["text-align"]=t.align),c[e?"translateX":"x"]=Math.round(l),c[e?"translateY":"y"]=Math.round(d),s&&(this[this.placed?"animate":"attr"](c),this.placed=!0),this.alignAttr=c,this}alignSetter(t){let e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))}animate(t,e,i){let s=tL(q(e,this.renderer.globalAnimation,!0)),o=s.defer;return tq.hidden&&(s.duration=0),0!==s.duration?(i&&(s.complete=i),to(()=>{this.element&&tB(this,t,s)},o)):(this.attr(t,void 0,i||s.complete),$(t,function(t,e){s.step&&s.step.call(this,t,{prop:e,pos:1,elem:this})},this)),this}applyTextOutline(t){let e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));let i=t.indexOf(" "),s=t.substring(i+1),o=t.substring(0,i);if(o&&"none"!==o&&d.svg){this.fakeTS=!0,o=o.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,i){return 2*Number(e)+i}),this.removeTextOutline();let t=tq.createElementNS(tJ,"tspan");x(t,{class:"highcharts-text-outline",fill:s,stroke:s,"stroke-width":o,"stroke-linejoin":"round"});let i=e.querySelector("textPath")||e;[].forEach.call(i.childNodes,e=>{let i=e.cloneNode(!0);i.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(t=>i.removeAttribute(t)),t.appendChild(i)});let r=0;[].forEach.call(i.querySelectorAll("text tspan"),t=>{r+=Number(t.getAttribute("dy"))});let a=tq.createElementNS(tJ,"tspan");a.textContent="​",x(a,{x:Number(e.getAttribute("x")),dy:-r}),t.appendChild(a),i.insertBefore(t,i.firstChild)}}attr(t,e,i,s){let{element:o}=this,r=t1.symbolCustomAttribs,a,n,h=this,l;return"string"==typeof t&&void 0!==e&&(a=t,(t={})[a]=e),"string"==typeof t?h=(this[t+"Getter"]||this._defaultGetter).call(this,t,o):($(t,function(e,i){l=!1,s||tI(this,i),this.symbolName&&-1!==r.indexOf(i)&&(n||(this.symbolAttr(t),n=!0),l=!0),this.rotation&&("x"===i||"y"===i)&&(this.doTransform=!0),l||(this[i+"Setter"]||this._defaultSetter).call(this,e,i,o)},this),this.afterSetters()),i&&i.call(this),h}clip(t){if(t&&!t.clipPath){let e=tp()+"-",i=this.renderer.createElement("clipPath").attr({id:e}).add(this.renderer.defs);P(t,{clipPath:i,id:e,count:0}),t.add(i)}return this.attr("clip-path",t?`url(${this.renderer.url}#${t.id})`:"none")}crisp(t,e){e=Math.round(e||t.strokeWidth||0);let i=t.x||this.x||0,s=t.y||this.y||0,o=(t.width||this.width||0)+i,r=(t.height||this.height||0)+s,a=M(i,e),n=M(s,e);return P(t,{x:a,y:n,width:M(o,e)-a,height:M(r,e)-n}),w(t.strokeWidth)&&(t.strokeWidth=e),t}complexColor(t,e,i){let s=this.renderer,o,r,a,n,h,l,d,c,p,u=[],g;L(this.renderer,"complexColor",{args:arguments},()=>{if(t.radialGradient?r="radialGradient":t.linearGradient&&(r="linearGradient"),r){if(a=t[r],h=s.gradients,l=t.stops,c=i.radialReference,F(a)&&(t[r]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===r&&c&&!w(a.gradientUnits)&&(n=a,a=U(a,s.getRadialAttr(c,n),{gradientUnits:"userSpaceOnUse"})),$(a,function(t,e){"id"!==e&&u.push(e,t)}),$(l,function(t){u.push(t)}),h[u=u.join(",")])p=h[u].attr("id");else{a.id=p=tp();let t=h[u]=s.createElement(r).attr(a).add(s.defs);t.radAttr=n,t.stops=[],l.forEach(([e,i])=>{0===i.indexOf("rgba")?(i=(o=tT.parse(i)).get("rgb"),d=o.get("a")):d=1;let r=s.createElement("stop").attr({offset:e,"stop-color":i,"stop-opacity":d}).add(t);t.stops.push(r)})}g="url("+s.url+"#"+p+")",i.setAttribute(e,g),i.gradient=u,t.toString=function(){return g}}})}css(t){let e=this.styles,i={},s=this.element,o=this.renderer,r,a=!e;if(e&&$(t,function(t,s){e&&e[s]!==t&&(i[s]=t,a=!0)}),a){e&&(t=P(e,i)),null===t.width||"auto"===t.width?delete this.textWidth:"text"===s.nodeName.toLowerCase()&&t.width&&(r=this.textWidth=K(t.width)),P(this.styles,t),r&&!tK&&o.forExport&&delete t.width;let a=t0&&t.fontSize||null;a&&(H(a)||/^\d+$/.test(a))&&(t.fontSize+="px");let n=U(t);s.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach(t=>n&&delete n[t]),n.color&&(n.fill=n.color,delete n.color)),k(s,n)}return this.added&&("text"===this.element.nodeName&&o.buildText(this),t.textOutline&&this.applyTextOutline(t.textOutline)),this}dashstyleSetter(t){let e,i=this["stroke-width"];if("inherit"===i&&(i=1),t){let s=(t=t.toLowerCase()).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=s.length;e--;)s[e]=""+K(s[e])*q(i,NaN);t=s.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}}destroy(){let t=this,{element:e={},renderer:i,stops:s}=t,o=e.ownerSVGElement;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,tI(t),t.clipPath&&o){let e=t.clipPath;[].forEach.call(o.querySelectorAll("[clip-path],[CLIP-PATH]"),function(t){t.getAttribute("clip-path").indexOf(e.element.id)>-1&&t.removeAttribute("clip-path")}),t.clipPath=e.destroy()}if(s){for(let t of s)t.destroy();s.length=0}t.safeRemoveChild(e),t.alignOptions&&A(i.alignedObjects,t),$(t,(e,i)=>{(t[i]?.parentGroup===t||-1!==["connector","foreignObject"].indexOf(i))&&t[i]?.destroy?.(),delete t[i]})}dSetter(t,e,i){F(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce((t,e,i)=>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)}fillSetter(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)}hrefSetter(t,e,i){i.setAttributeNS("http://www.w3.org/1999/xlink",e,t)}getBBox(t,e){let i,s,o,{element:r,renderer:a,styles:n,textStr:h}=this,{cache:l,cacheKeys:d}=a,c=r.namespaceURI===this.SVG_NS,p=q(e,this.rotation,0),u=a.styledMode?r&&t1.prototype.getStyle.call(r,"font-size"):n.fontSize,g=this.getBBoxCacheKey([a.rootFontSize,this.textWidth,this.alignValue,n.fontWeight,n.lineClamp,n.textOverflow,u,p]);if(g&&!t&&(i=l[g]),!i||i.polygon){if(c||a.forExport){try{o=this.fakeTS&&function(t){let e=r.querySelector(".highcharts-text-outline");e&&k(e,{display:t})},Y(o)&&o("none"),i=r.getBBox?P({},r.getBBox()):{width:r.offsetWidth,height:r.offsetHeight,x:0,y:0},Y(o)&&o("")}catch{}(!i||i.width<0)&&(i={x:0,y:0,width:0,height:0})}else i=this.htmlGetBBox();s=i.height,c&&(i.height=s=({"11px,17":14,"13px,20":16})[`${u||""},${Math.round(s)}`]||s),p&&(i=this.getRotatedBox(i,p));let t={bBox:i};L(this,"afterGetBBox",t),i=t.bBox}if(g&&(""===h||i.height>0)){for(;d.length>250;)delete l[d.shift()];l[g]||d.push(g),l[g]=i}return i}getBBoxCacheKey(t){if(w(this.textStr)){let e=""+this.textStr;return -1===e.indexOf("<")&&(e=e.replace(/\d/g,"0")),[e,...t].join(",")}}getRotatedBox(t,e){let{x:i,y:s,width:o,height:r}=t,{alignValue:a,translateY:n,rotationOriginX:h=0,rotationOriginY:l=0}=this,d=E(a),c=Number(this.element.getAttribute("y")||0)-(n?0:s),p=e*tZ,u=(e-90)*tZ,g=Math.cos(p),f=Math.sin(p),m=o*g,x=o*f,y=Math.cos(u),b=Math.sin(u),[[v,M],[k,w]]=[h,l].map(t=>[t-t*g,t*f]),S=i+d*(o-m)+v+w+c*y,T=S+m,C=T-r*y,A=C-m,P=s+c-d*x-M+k+c*b,O=P+x,L=O-r*b,B=L-x,I=Math.min(S,T,C,A),D=Math.min(P,O,L,B),z=Math.max(S,T,C,A)-I,R=Math.max(P,O,L,B)-D;return{x:I,y:D,width:z,height:R,polygon:[[S,P],[T,O],[C,L],[A,B]]}}getStyle(t){return tQ.getComputedStyle(this.element||this,"").getPropertyValue(t)}hasClass(t){return -1!==(""+this.attr("class")).split(" ").indexOf(t)}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(t,e){this.onEvents={},this.opacity=1,this.SVG_NS=tJ,this.element="div"===e||"body"===e?v(e):tq.createElementNS(this.SVG_NS,e),this.renderer=t,this.styles={},L(this,"afterInit")}on(t,e){let{onEvents:i}=this;return i[t]&&i[t](),i[t]=g(this.element,t,e),this}opacitySetter(t,e,i){let s=Number(Number(t).toFixed(3));this.opacity=s,i.setAttribute(e,s)}reAlign(){this.alignOptions?.width&&"left"!==this.alignOptions.align&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(t){return this.attr("class",(""+this.attr("class")).replace(X(t)?RegExp(`(^| )${t}( |$)`):t," ").replace(/ +/g," ").trim())}removeTextOutline(){let t=this.element.querySelector("tspan.highcharts-text-outline");t&&this.safeRemoveChild(t)}safeRemoveChild(t){let e=t.parentNode;e&&e.removeChild(t)}setRadialReference(t){let e=this.element.gradient&&this.renderer.gradients[this.element.gradient]||void 0;return this.element.radialReference=t,e?.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this}shadow(t){let{renderer:e}=this,i=U(this.parentGroup?.rotation===90?{offsetX:-1,offsetY:-1}:{},j(t)?t:{}),s=e.shadowDefinition(i);return this.attr({filter:t?`url(${e.url}#${s})`:"none"})}show(t=!0){return this.attr({visibility:t?"inherit":"visible"})}"stroke-widthSetter"(t,e,i){this[e]=t,i.setAttribute(e,t)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let t=this.getStyle("stroke-width"),e=0,i;return/px$/.test(t)?e=K(t):""!==t&&(x(i=tq.createElementNS(tJ,"rect"),{width:t,"stroke-width":0}),this.element.parentNode.appendChild(i),e=i.getBBox().width,i.parentNode.removeChild(i)),e}symbolAttr(t){let e=this;t1.symbolCustomAttribs.forEach(function(i){e[i]=q(t[i],e[i])}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})}textSetter(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(t){let e=this.element,i=e.getElementsByTagName("title")[0]||tq.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=tt(q(t,""),[/<[^>]*>/g,""]).replace(/&lt;/g,"<").replace(/&gt;/g,">")}toFront(){let t=this.element;return t.parentNode.appendChild(t),this}translate(t,e){return this.attr({translateX:t,translateY:e})}updateTransform(t="transform"){let{element:e,foreignObject:i,matrix:s,rotation:o=0,rotationOriginX:r,rotationOriginY:a,scaleX:n,scaleY:h,text:l,translateX:d=0,translateY:c=0}=this,p=[`translate(${d},${c})`];w(s)&&p.push("matrix("+s.join(",")+")"),o&&p.push("rotate("+o+" "+(r??e.getAttribute("x")??this.x??0)+" "+(a??e.getAttribute("y")??this.y??0)+")"),(w(n)||w(h))&&p.push(`scale(${n??1} ${h??1})`),p.length&&!(l||this).textPath&&(i?.element||e).setAttribute(t,p.join(" "))}visibilitySetter(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t}xGetter(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)}zIndexSetter(t,e){let{element:i,parentGroup:s,renderer:o}=this,r=s?.element||o.box,a=r===o.box,n,h,l,d=!1,c,p=this.added,u;if(w(t)?(i.setAttribute("data-z-index",t),t*=1,this[e]===t&&(p=!1)):w(this[e])&&i.removeAttribute("data-z-index"),this[e]=t,p){for((t=this.zIndex)&&s&&(s.handleZ=!0),u=(n=r.childNodes).length-1;u>=0&&!d;u--)c=!w(l=(h=n[u]).getAttribute("data-z-index")),h!==i&&(w(t)&&t<0&&c&&!a&&!u?(r.insertBefore(i,n[u]),d=!0):(w(t)&&parseFloat(l||"")<=t||c&&(!w(t)||t>=0))&&(r.insertBefore(i,n[u+1]),d=!0));d||(r.insertBefore(i,n[3*!!a]),d=!0)}return d}}t1.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],t1.prototype.strokeSetter=t1.prototype.fillSetter,t1.prototype.yGetter=t1.prototype.xGetter,t1.prototype.matrixSetter=t1.prototype.rotationOriginXSetter=t1.prototype.rotationOriginYSetter=t1.prototype.rotationSetter=t1.prototype.scaleXSetter=t1.prototype.scaleYSetter=t1.prototype.translateXSetter=t1.prototype.translateYSetter=t1.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0};let t2=t1,{charts:t5}=d,t3=["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"],t6=[null,"#00e272","#efdf00"];class t9{constructor(t,e){this.defaultOptions=c,this.options=U(c),this.cssVars={light:{},dark:{}},this.renderer=t,this.update(e)}injectCSS(t){let e,i,s,{cssVars:o,renderer:r}=this,a=Object.keys(C(t,this.defaultOptions)).length>0,n=Math.max(t.colors?.length||0,t3.length),h="light",l=(t,e)=>{X(t)&&(e=e.replace(/([0-9]+)/g,"-$1").replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`),o[h][`--highcharts-${e}`]=t)};for(let e of["light","dark"]){let i=t[e]||{},s={},r=new tT(i?.neutralColor||""),a=new tT(i?.backgroundColor||""),d=new tT(i?.highlightColor||"");h=e,[3,5,10,20,40,60,80,100].forEach(t=>{s[`neutralColor${t}`]=a.tweenTo(r,t/100),s[`highlightColor${t}`]=a.tweenTo(d,t/100)});for(let s=0;s<n;s++)l(i?.colors?.[s]||t.colors?.[s]||("dark"===e?t6:[])?.[s]||t3[s]||"#888a",`color${s}`);$(i,l),$(s,l),"light"===e&&P(o.dark,o.light)}let d=r.defs.element,c=a?`*[data-highcharts-chart="${r.chartIndex}"]`:"",p=d.querySelector("style.highcharts-palette")||r.box.ownerDocument.createElement("style");p.parentNode||(p.nonce="highcharts",p.className="highcharts-palette",d.appendChild(p)),i=(e=t=>{let e="";return $(o.light,(i,s)=>{e+=t&&i!==o.dark[s]?` ${s}: light-dark(${i}, ${o.dark[s]}); `:` ${s}: ${i}; `}),e})(),s=e(!0),p.textContent=`${c||":root"} { ${i} } @supports (color: light-dark(#fff, #000)) { ${c||":root"} { ${s} } } .highcharts-container { color-scheme: light dark; } .highcharts-light .highcharts-container { color-scheme: light; } .highcharts-dark .highcharts-container { color-scheme: dark; }`}update(t){let e=this.renderer.box.parentElement,i=t5?.[this.renderer.chartIndex];t=U(!0,this.options,t),i&&(i.options.palette=t),!1!==t.injectCSS&&this.injectCSS(t),e&&(X(t.colorScheme)&&["light","dark","inherit"].includes(t.colorScheme)?e.style.colorScheme=t.colorScheme:e.style.removeProperty("color-scheme"))}}class t4 extends t2{constructor(t,e,i,s,o,r,a,n,h,l){let d;super(t,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=e,this.x=i,this.y=s,this.anchorX=r,this.anchorY=a,this.baseline=h,this.className=l,this.addClass("button"===l?"highcharts-no-tooltip":"highcharts-label"),l&&this.addClass("highcharts-"+l),this.text=t.text(void 0,0,0,n).attr({zIndex:1}),"string"==typeof o&&((d=/^url\((.*?)\)$/.test(o))||this.renderer.symbols[o])&&(this.symbolKey=o),this.bBox=t4.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=t.styledMode||d,this.deferredAttr={},this.alignFactor=0}alignSetter(t){let e=E(t);this.textAlign=t,e!==this.alignFactor&&(this.alignF