dealposbooks 5.43.0 → 5.43.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/{chunk-Q6NOUY4Z.js → chunk-5QKCUI7M.js} +1 -1
  2. package/{chunk-O5EVYQVN.js → chunk-5TF7YHMI.js} +1 -1
  3. package/{chunk-DG63C6O3.js → chunk-5VXLWX4K.js} +1 -1
  4. package/{chunk-7PDMDNJK.js → chunk-62K4JEOY.js} +1 -1
  5. package/{chunk-X4KTMWVO.js → chunk-6O5EWYT7.js} +1 -1
  6. package/{chunk-4FPYSVLT.js → chunk-6XT4TD5A.js} +1 -1
  7. package/{chunk-MDMGBODU.js → chunk-6YJVOMOB.js} +1 -1
  8. package/{chunk-WLKS6LBU.js → chunk-7COI2POD.js} +1 -1
  9. package/{chunk-VTMQTY2F.js → chunk-7EIBD6QJ.js} +1 -1
  10. package/{chunk-MJJXITD5.js → chunk-7GIBHGH4.js} +1 -1
  11. package/chunk-AF357XP4.js +1 -0
  12. package/{chunk-CX3TZ3F3.js → chunk-BUYRVZ5Z.js} +1 -1
  13. package/{chunk-2DSX3KAL.js → chunk-BWJHODYX.js} +2 -2
  14. package/chunk-CIVJWHAU.js +202 -0
  15. package/{chunk-UYGD5VP2.js → chunk-DQQKEX6Z.js} +1 -1
  16. package/{chunk-AUWCRG4B.js → chunk-DXRSED76.js} +1 -1
  17. package/{chunk-3MDAGJGX.js → chunk-EQ7DUTAS.js} +1 -1
  18. package/{chunk-KBXNDYNF.js → chunk-ESHOCSRS.js} +1 -1
  19. package/chunk-FDBRUAV5.js +1 -0
  20. package/chunk-FEV4P4DL.js +7 -0
  21. package/{chunk-ROJ6NA2I.js → chunk-GQI7GXAK.js} +1 -1
  22. package/{chunk-Q2RQ5PCS.js → chunk-GZRKRXV7.js} +1 -1
  23. package/chunk-HW2B6ZTB.js +129 -0
  24. package/{chunk-3XWJYJ4W.js → chunk-I7G575WF.js} +1 -1
  25. package/{chunk-HEX727RH.js → chunk-IYO6P6XI.js} +1 -1
  26. package/{chunk-EOT2WEXN.js → chunk-JUCJGYST.js} +1 -1
  27. package/{chunk-PNDE7M5T.js → chunk-LCZ3RU6J.js} +1 -1
  28. package/{chunk-MWKQV6FL.js → chunk-MERIFED5.js} +1 -1
  29. package/{chunk-FFBH7KYD.js → chunk-N3CCHUQK.js} +1 -1
  30. package/{chunk-4TSB6554.js → chunk-N72GOCDS.js} +2 -2
  31. package/{chunk-JRH7ZWIT.js → chunk-OB7IGUCM.js} +1 -1
  32. package/{chunk-O6C3N77O.js → chunk-ONN4TIOR.js} +1 -1
  33. package/{chunk-MGTSVSFN.js → chunk-OZ4T5P3A.js} +1 -1
  34. package/{chunk-4JVYK7DR.js → chunk-P2BR2DYT.js} +1 -1
  35. package/{chunk-6MOKBNZ6.js → chunk-PBMTWCM7.js} +1 -1
  36. package/{chunk-BJ4RON42.js → chunk-PPKCZMH4.js} +1 -1
  37. package/{chunk-6EDSP2AA.js → chunk-PZAVQQFP.js} +12 -12
  38. package/{chunk-J2LCCQ6P.js → chunk-RIAHEVKE.js} +1 -1
  39. package/{chunk-B4JW5G5L.js → chunk-RJSTA3LD.js} +1 -1
  40. package/{chunk-J7XLDEPN.js → chunk-RZVVQ2WV.js} +1 -1
  41. package/{chunk-VNUZJSHB.js → chunk-SJCXXNYW.js} +1 -1
  42. package/{chunk-WPQGYVNT.js → chunk-SVHOGUGR.js} +1 -1
  43. package/{chunk-X6D7ZE6G.js → chunk-TLGBF4OA.js} +1 -1
  44. package/chunk-TNMWSTYV.js +1 -0
  45. package/chunk-TRUGVHVM.js +1 -0
  46. package/chunk-TUX7WEBX.js +2 -0
  47. package/{chunk-6WBZACEK.js → chunk-VF3ARYUC.js} +1 -1
  48. package/{chunk-7R6GFW7F.js → chunk-VHKLRJNY.js} +1 -1
  49. package/{chunk-KLKIEREL.js → chunk-VPQDUC77.js} +1 -1
  50. package/{chunk-HVXMIONQ.js → chunk-WAIG32DS.js} +1 -1
  51. package/{chunk-5CI4POVW.js → chunk-XA75ROED.js} +1 -1
  52. package/{chunk-SUKZ6XS4.js → chunk-XFMPZEYT.js} +1 -1
  53. package/{chunk-XYU7C523.js → chunk-XIKOS3R2.js} +1 -1
  54. package/chunk-XIUI7VXN.js +160 -0
  55. package/{chunk-M3WCSF6D.js → chunk-XMHQMMFC.js} +1 -1
  56. package/{chunk-NDWYDOFG.js → chunk-YQGBYYHV.js} +1 -1
  57. package/{chunk-EM4HKTKQ.js → chunk-ZE2UEAPO.js} +1 -1
  58. package/{chunk-LT3ZB5UZ.js → chunk-ZJ2QSE55.js} +1 -1
  59. package/index.html +2 -2
  60. package/{main-2JJLKGIJ.js → main-3LQSSUNF.js} +1 -1
  61. package/package.json +1 -1
  62. package/chunk-23R63A5E.js +0 -1
  63. package/chunk-3TIJYNSV.js +0 -2
  64. package/chunk-6JKCYLO5.js +0 -202
  65. package/chunk-GKFRKDT6.js +0 -7
  66. package/chunk-IY4CV424.js +0 -1
  67. package/chunk-ORLKNWW4.js +0 -1
  68. package/chunk-SVFKNAYN.js +0 -160
  69. package/chunk-UCCAYD3A.js +0 -129
  70. package/chunk-ZIEHNLX3.js +0 -1
package/chunk-3TIJYNSV.js DELETED
@@ -1,2 +0,0 @@
1
- import{f as Ua}from"./chunk-AL647DUL.js";import{a as qa}from"./chunk-ORLKNWW4.js";import"./chunk-WLKS6LBU.js";import{b as Va}from"./chunk-E3QNEH3B.js";import{a as Ja,b as Qa}from"./chunk-WXT6EZ2V.js";import{h as Ka}from"./chunk-O5EVYQVN.js";import"./chunk-L3PZS6EL.js";import{a as $a,b as Za}from"./chunk-5JV52UYK.js";import"./chunk-ACTRMWEI.js";import{c as _a}from"./chunk-ARXP327B.js";import"./chunk-7FFMPB6T.js";import"./chunk-UKBDY33R.js";import"./chunk-72LNXEXV.js";import{d as Fa,e as Ga,l as ja}from"./chunk-EFDD6Q3K.js";import{a as Ya}from"./chunk-M3WCSF6D.js";import"./chunk-ZDTMCWOO.js";import"./chunk-F2X3VGZZ.js";import{k as Wa,q as Ha,s as Xa}from"./chunk-SB5MSLCX.js";import{Aa as Go,Ba as Pa,Db as ri,Fa as Aa,Ha as Oa,Lb as ni,Nc as hi,Oc as li,Rc as di,Vb as dt,Wb as ct,Xb as fe,Yb as Ia,Zb as Da,_ as Sa,ca as rs,da as Ca,ec as Ba,fb as La,fc as as,hb as me,ia as ue,lc as za,mc as Na,nb as jo,nc as Ra,pa as Ta,rc as Et,tc as ai,xb as ns,yb as Ea}from"./chunk-6K5LNQ4J.js";import{a as Pt,b as ee,d as Mg,e as wg,f as wa}from"./chunk-YQFG5XE2.js";var sh=Mg((ci,_o)=>{(function(R,bt){typeof ci=="object"&&typeof _o=="object"?(R._Highcharts=bt(),_o.exports=R._Highcharts):typeof define=="function"&&define.amd?define("highcharts/highcharts",[],bt):typeof ci=="object"?(R._Highcharts=bt(),ci.highcharts=R._Highcharts):(R.Highcharts&&R.Highcharts.error(16,!0),R.Highcharts=bt())})(typeof window>"u"?ci:window,()=>(()=>{"use strict";let R,bt;var X,j,ut,Ft,De,ls,ds,cs,ps,gs,us,ms,fs,xs,ys,bs,vs,ks,Be={};Be.d=(h,t)=>{for(var e in t)Be.o(t,e)&&!Be.o(h,e)&&Object.defineProperty(h,e,{enumerable:!0,get:t[e]})},Be.o=(h,t)=>Object.prototype.hasOwnProperty.call(h,t);var Uo={};Be.d(Uo,{default:()=>kg}),function(h){h.SVG_NS="http://www.w3.org/2000/svg",h.product="Highcharts",h.version="12.2.0",h.win=typeof window<"u"?window:{},h.doc=h.win.document,h.svg=!!h.doc?.createElementNS?.(h.SVG_NS,"svg")?.createSVGRect,h.pageLang=h.doc?.documentElement?.closest("[lang]")?.lang,h.userAgent=h.win.navigator?.userAgent||"",h.isChrome=h.win.chrome,h.isFirefox=h.userAgent.indexOf("Firefox")!==-1,h.isMS=/(edge|msie|trident)/i.test(h.userAgent)&&!h.win.opera,h.isSafari=!h.isChrome&&h.userAgent.indexOf("Safari")!==-1,h.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(h.userAgent),h.isWebKit=h.userAgent.indexOf("AppleWebKit")!==-1,h.deg2rad=2*Math.PI/360,h.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],h.noop=function(){},h.supportsPassiveEvents=function(){let t=!1;if(!h.isMS){let e=Object.defineProperty({},"passive",{get:function(){t=!0}});h.win.addEventListener&&h.win.removeEventListener&&(h.win.addEventListener("testPassive",h.noop,e),h.win.removeEventListener("testPassive",h.noop,e))}return t}(),h.charts=[],h.composed=[],h.dateFormats={},h.seriesTypes={},h.symbolSizes={},h.chartCount=0}(X||(X={}));let A=X,{charts:rh,doc:pi,win:ie}=A;function ze(h,t,e,i){let s=t?"Highcharts error":"Highcharts warning";h===32&&(h=`${s}: Deprecated member`);let o=ws(h),r=o?`${s} #${h}: www.highcharts.com/errors/${h}/`:h.toString();if(i!==void 0){let n="";o&&(r+="?"),se(i,function(a,l){n+=`
2
- - ${l}: ${a}`,o&&(r+=encodeURI(l)+"="+encodeURI(a))}),r+=n}tr(A,"displayError",{chart:e,code:h,message:r,params:i},function(){if(t)throw Error(r);ie.console&&ze.messages.indexOf(r)===-1&&console.warn(r)}),ze.messages.push(r)}function Vo(h,t){return parseInt(h,t||10)}function Ne(h){return typeof h=="string"}function gi(h){let t=Object.prototype.toString.call(h);return t==="[object Array]"||t==="[object Array Iterator]"}function xe(h,t){return!!h&&typeof h=="object"&&(!t||!gi(h))}function Ms(h){return xe(h)&&typeof h.nodeType=="number"}function $o(h){let t=h?.constructor;return!!(xe(h,!0)&&!Ms(h)&&t?.name&&t.name!=="Object")}function ws(h){return typeof h=="number"&&!isNaN(h)&&h<1/0&&h>-1/0}function ye(h){return h!=null}function Zo(h,t,e){let i,s=Ne(t)&&!ye(e),o=(r,n)=>{ye(r)?h.setAttribute(n,r):s?(i=h.getAttribute(n))||n!=="class"||(i=h.getAttribute(n+"Name")):h.removeAttribute(n)};return Ne(t)?o(e,t):se(t,o),i}function qo(h){return gi(h)?h:[h]}function be(h,t){let e;for(e in h||(h={}),t)h[e]=t[e];return h}function Re(){let h=arguments,t=h.length;for(let e=0;e<t;e++){let i=h[e];if(i!=null)return i}}function Ss(h,t){be(h.style,t)}function Ko(h){return Math.pow(10,Math.floor(Math.log(h)/Math.LN10))}function Jo(h,t){return h>1e14?h:parseFloat(h.toPrecision(t||14))}(ze||(ze={})).messages=[],Math.easeInOutSine=function(h){return-.5*(Math.cos(Math.PI*h)-1)};let nh=Array.prototype.find?function(h,t){return h.find(t)}:function(h,t){let e,i=h.length;for(e=0;e<i;e++)if(t(h[e],e))return h[e]};function se(h,t,e){for(let i in h)Object.hasOwnProperty.call(h,i)&&t.call(e||h[i],h[i],i,h)}function Qo(h,t,e){function i(r,n){let a=h.removeEventListener;a&&a.call(h,r,n,!1)}function s(r){let n,a;h.nodeName&&(t?(n={})[t]=!0:n=r,se(n,function(l,c){if(r[c])for(a=r[c].length;a--;)i(c,r[c][a].fn)}))}let o=typeof h=="function"&&h.prototype||h;if(Object.hasOwnProperty.call(o,"hcEvents")){let r=o.hcEvents;if(t){let n=r[t]||[];e?(r[t]=n.filter(function(a){return e!==a.fn}),i(t,e)):(s(r),r[t]=[])}else s(r),delete o.hcEvents}}function tr(h,t,e,i){if(e=e||{},pi?.createEvent&&(h.dispatchEvent||h.fireEvent&&h!==A)){let s=pi.createEvent("Events");s.initEvent(t,!0,!0),e=be(s,e),h.dispatchEvent?h.dispatchEvent(e):h.fireEvent(t,e)}else if(h.hcEvents){e.target||be(e,{preventDefault:function(){e.defaultPrevented=!0},target:h,type:t});let s=[],o=h,r=!1;for(;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[t]&&(s.length&&(r=!0),s.unshift.apply(s,o.hcEvents[t])),o=Object.getPrototypeOf(o);r&&s.sort((n,a)=>n.order-a.order),s.forEach(n=>{n.fn.call(h,e)===!1&&e.preventDefault()})}i&&!e.defaultPrevented&&i.call(h,e)}let ah=function(){let h=Math.random().toString(36).substring(2,9)+"-",t=0;return function(){return"highcharts-"+(R?"":h)+t++}}();ie.jQuery&&(ie.jQuery.fn.highcharts=function(){let h=[].slice.call(arguments);if(this[0])return h[0]?(new A[Ne(h[0])?h.shift():"Chart"](this[0],h[0],h[1]),this):rh[Zo(this[0],"data-highcharts-chart")]});let z={addEvent:function(h,t,e,i={}){let s=typeof h=="function"&&h.prototype||h;Object.hasOwnProperty.call(s,"hcEvents")||(s.hcEvents={});let o=s.hcEvents;A.Point&&h instanceof A.Point&&h.series&&h.series.chart&&(h.series.chart.runTrackerClick=!0);let r=h.addEventListener;r&&r.call(h,t,e,!!A.supportsPassiveEvents&&{passive:i.passive===void 0?t.indexOf("touch")!==-1:i.passive,capture:!1}),o[t]||(o[t]=[]);let n={fn:e,order:typeof i.order=="number"?i.order:1/0};return o[t].push(n),o[t].sort((a,l)=>a.order-l.order),function(){Qo(h,t,e)}},arrayMax:function(h){let t=h.length,e=h[0];for(;t--;)h[t]>e&&(e=h[t]);return e},arrayMin:function(h){let t=h.length,e=h[0];for(;t--;)h[t]<e&&(e=h[t]);return e},attr:Zo,clamp:function(h,t,e){return h>t?h<e?h:e:t},clearTimeout:function(h){ye(h)&&clearTimeout(h)},correctFloat:Jo,createElement:function(h,t,e,i,s){let o=pi.createElement(h);return t&&be(o,t),s&&Ss(o,{padding:"0",border:"none",margin:"0"}),e&&Ss(o,e),i&&i.appendChild(o),o},crisp:function(h,t=0,e){let i=t%2/2,s=e?-1:1;return(Math.round(h*s-i)+i)*s},css:Ss,defined:ye,destroyObjectProperties:function(h,t,e){se(h,function(i,s){i!==t&&i?.destroy&&i.destroy(),(i?.destroy||!e)&&delete h[s]})},diffObjects:function(h,t,e,i){let s={};return function o(r,n,a,l){let c=e?n:r;se(r,function(d,p){if(!l&&i&&i.indexOf(p)>-1&&n[p]){d=qo(d),a[p]=[];for(let g=0;g<Math.max(d.length,n[p].length);g++)n[p][g]&&(d[g]===void 0?a[p][g]=n[p][g]:(a[p][g]={},o(d[g],n[p][g],a[p][g],l+1)))}else xe(d,!0)&&!d.nodeType?(a[p]=gi(d)?[]:{},o(d,n[p]||{},a[p],l+1),Object.keys(a[p]).length===0&&(p!=="colorAxis"||l!==0)&&delete a[p]):(r[p]!==n[p]||p in r&&!(p in n))&&p!=="__proto__"&&p!=="constructor"&&(a[p]=c[p])})}(h,t,s,0),s},discardElement:function(h){h?.parentElement?.removeChild(h)},erase:function(h,t){let e=h.length;for(;e--;)if(h[e]===t){h.splice(e,1);break}},error:ze,extend:be,extendClass:function(h,t){let e=function(){};return e.prototype=new h,be(e.prototype,t),e},find:nh,fireEvent:tr,getAlignFactor:(h="")=>({center:.5,right:1,middle:.5,bottom:1})[h]||0,getClosestDistance:function(h,t){let e,i,s,o,r=!t;return h.forEach(n=>{if(n.length>1)for(o=i=n.length-1;o>0;o--)(s=n[o]-n[o-1])<0&&!r?(t?.(),t=void 0):s&&(e===void 0||s<e)&&(e=s)}),e},getMagnitude:Ko,getNestedProperty:function(h,t){let e=h.split(".");for(;e.length&&ye(t);){let i=e.shift();if(i===void 0||i==="__proto__")return;if(i==="this"){let o;return xe(t)&&(o=t["@this"]),o??t}let s=t[i.replace(/[\\'"]/g,"")];if(!ye(s)||typeof s=="function"||typeof s.nodeType=="number"||s===ie)return;t=s}return t},getStyle:function h(t,e,i){let s;if(e==="width"){let r=Math.min(t.offsetWidth,t.scrollWidth),n=t.getBoundingClientRect?.().width;return n<r&&n>=r-1&&(r=Math.floor(n)),Math.max(0,r-(h(t,"padding-left",!0)||0)-(h(t,"padding-right",!0)||0))}if(e==="height")return Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(h(t,"padding-top",!0)||0)-(h(t,"padding-bottom",!0)||0));let o=ie.getComputedStyle(t,void 0);return o&&(s=o.getPropertyValue(e),Re(i,e!=="opacity")&&(s=Vo(s))),s},insertItem:function(h,t){let e,i=h.options.index,s=t.length;for(e=h.options.isInternal?s:0;e<s+1;e++)if(!t[e]||ws(i)&&i<Re(t[e].options.index,t[e]._i)||t[e].options.isInternal){t.splice(e,0,h);break}return e},isArray:gi,isClass:$o,isDOMElement:Ms,isFunction:function(h){return typeof h=="function"},isNumber:ws,isObject:xe,isString:Ne,merge:function(h,...t){let e,i=[h,...t],s={},o=function(n,a){return typeof n!="object"&&(n={}),se(a,function(l,c){c!=="__proto__"&&c!=="constructor"&&(!xe(l,!0)||$o(l)||Ms(l)?n[c]=a[c]:n[c]=o(n[c]||{},l))}),n};h===!0&&(s=i[1],i=Array.prototype.slice.call(i,2));let r=i.length;for(e=0;e<r;e++)s=o(s,i[e]);return s},normalizeTickInterval:function(h,t,e,i,s){let o,r=h;e=Re(e,Ko(h));let n=h/e;for(!t&&(t=s?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],i===!1&&(e===1?t=t.filter(function(a){return a%1==0}):e<=.1&&(t=[1/e]))),o=0;o<t.length&&(r=t[o],(!s||!(r*e>=h))&&(s||!(n<=(t[o]+(t[o+1]||t[o]))/2)));o++);return Jo(r*e,-Math.round(Math.log(.001)/Math.LN10))},objectEach:se,offset:function(h){let t=pi.documentElement,e=h.parentElement||h.parentNode?h.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:e.top+(ie.pageYOffset||t.scrollTop)-(t.clientTop||0),left:e.left+(ie.pageXOffset||t.scrollLeft)-(t.clientLeft||0),width:e.width,height:e.height}},pad:function(h,t,e){return Array((t||2)+1-String(h).replace("-","").length).join(e||"0")+h},pick:Re,pInt:Vo,pushUnique:function(h,t){return 0>h.indexOf(t)&&!!h.push(t)},relativeLength:function(h,t,e){return/%$/.test(h)?t*parseFloat(h)/100+(e||0):parseFloat(h)},removeEvent:Qo,replaceNested:function(h,...t){let e,i;do for(i of(e=h,t))h=h.replace(i[0],i[1]);while(h!==e);return h},splat:qo,stableSort:function(h,t){let e,i,s=h.length;for(i=0;i<s;i++)h[i].safeI=i;for(h.sort(function(o,r){return(e=t(o,r))===0?o.safeI-r.safeI:e}),i=0;i<s;i++)delete h[i].safeI},syncTimeout:function(h,t,e){return t>0?setTimeout(h,t,e):(h.call(0,e),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},ucfirst:function(h){return Ne(h)?h.substring(0,1).toUpperCase()+h.substring(1):String(h)},uniqueKey:ah,useSerialIds:function(h){return R=Re(h,R)},wrap:function(h,t,e){let i=h[t];h[t]=function(){let s=arguments,o=this;return e.apply(this,[function(){return i.apply(o,arguments.length?arguments:s)}].concat([].slice.call(arguments)))}}},{pageLang:hh,win:ui}=A,{defined:er,error:ir,extend:Cs,isNumber:sr,isObject:Ts,isString:We,merge:lh,objectEach:dh,pad:Gt,splat:ch,timeUnits:Ps,ucfirst:ph}=z,gh=A.isSafari&&ui.Intl&&!ui.Intl.DateTimeFormat.prototype.formatRange,uh=h=>h.main===void 0,mh=class{constructor(h,t){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=ui.Date,this.update(h),this.lang=t}update(h={}){this.dTLCache={},this.options=h=lh(!0,this.options,h);let{timezoneOffset:t,useUTC:e}=h;this.Date=h.Date||ui.Date||Date;let i=h.timezone;er(e)&&(i=e?"UTC":void 0),t&&t%60==0&&(i="Etc/GMT"+(t>0?"+":"")+t/60),this.variableTimezone=i!=="UTC"&&i?.indexOf("Etc/GMT")!==0,this.timezone=i,["months","shortMonths","weekdays","shortWeekdays"].forEach(s=>{let o=/months/i.test(s),r=/short/.test(s),n={timeZone:"UTC"};n[o?"month":"weekday"]=r?"short":"long",this[s]=(o?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(a=>this.dateFormat(n,(o?31:1)*24*36e5*a))})}toParts(h){let[t,e,i,s,o,r,n]=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},h,"es").split(/(?:, | |\/|:)/g);return[s,+i-1,e,o,r,n,Math.floor(Number(h)||0)%1e3,"DLMXJVS".indexOf(t)].map(Number)}dateTimeFormat(h,t,e=this.options.locale||hh){let i=JSON.stringify(h)+e;We(h)&&(h=this.str2dtf(h));let s=this.dTLCache[i];if(!s){h.timeZone??(h.timeZone=this.timezone);try{s=new Intl.DateTimeFormat(e,h)}catch(o){/Invalid time zone/i.test(o.message)?(ir(34),h.timeZone="UTC",s=new Intl.DateTimeFormat(e,h)):ir(o.message,!1)}}return this.dTLCache[i]=s,s?.format(t)||""}str2dtf(h,t={}){let e={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(e).forEach(i=>{h.indexOf(i)!==-1&&Cs(t,e[i])}),t}makeTime(h,t,e=1,i=0,s,o,r){let n=this.Date.UTC(h,t,e,i,s||0,o||0,r||0);if(this.timezone!=="UTC"){let a=this.getTimezoneOffset(n);if(n+=a,[2,3,8,9,10,11].indexOf(t)!==-1&&(i<5||i>20)){let l=this.getTimezoneOffset(n);a!==l?n+=l-a:a-36e5!==this.getTimezoneOffset(n-36e5)||gh||(n-=36e5)}}return n}parse(h){if(!We(h))return h??void 0;let t=(h=h.replace(/\//g,"-").replace(/(GMT|UTC)/,"")).indexOf("Z")>-1||/([+-][0-9]{2}):?[0-9]{2}$/.test(h),e=/^[0-9]{4}-[0-9]{2}(-[0-9]{2}|)$/.test(h);t||e||(h+="Z");let i=Date.parse(h);if(sr(i))return i+(!t||e?this.getTimezoneOffset(i):0)}getTimezoneOffset(h){if(this.timezone!=="UTC"){let[t,e,i,s,o=0]=this.dateTimeFormat({timeZoneName:"shortOffset"},h,"en").split(/(GMT|:)/).map(Number),r=-(36e5*(i+o/60));if(sr(r))return r}return 0}dateFormat(h,t,e){let i=this.lang;if(!er(t)||isNaN(t))return i?.invalidDate||"";if(We(h=h??"%Y-%m-%d %H:%M:%S")){let s,o=/%\[([a-zA-Z]+)\]/g;for(;s=o.exec(h);)h=h.replace(s[0],this.dateTimeFormat(s[1],t,i?.locale))}if(We(h)&&h.indexOf("%")!==-1){let s=this,[o,r,n,a,l,c,d,p]=this.toParts(t),g=i?.weekdays||this.weekdays,u=i?.shortWeekdays||this.shortWeekdays,m=i?.months||this.months,x=i?.shortMonths||this.shortMonths;dh(Cs({a:u?u[p]:g[p].substr(0,3),A:g[p],d:Gt(n),e:Gt(n,2," "),w:p,v:i?.weekFrom??"",b:x[r],B:m[r],m:Gt(r+1),o:r+1,y:o.toString().substr(2,2),Y:o,H:Gt(a),k:a,I:Gt(a%12||12),l:a%12||12,M:Gt(l),p:a<12?"AM":"PM",P:a<12?"am":"pm",S:Gt(c),L:Gt(d,3)},A.dateFormats),function(f,y){if(We(h))for(;h.indexOf("%"+y)!==-1;)h=h.replace("%"+y,typeof f=="function"?f.call(s,t):f)})}else if(Ts(h)){let s=(this.getTimezoneOffset(t)||0)/36e5,o=this.timezone||"Etc/GMT"+(s>=0?"+":"")+s,{prefix:r="",suffix:n=""}=h;h=r+this.dateTimeFormat(Cs({timeZone:o},h),t)+n}return e?ph(h):h}resolveDTLFormat(h){return Ts(h,!0)?Ts(h,!0)&&uh(h)?{main:h}:h:{main:(h=ch(h))[0],from:h[1],to:h[2]}}getDateFormat(h,t,e,i){let s=this.dateFormat("%m-%d %H:%M:%S.%L",t),o="01-01 00:00:00.000",r={millisecond:15,second:12,minute:9,hour:6,day:3},n="millisecond",a=n;for(n in Ps){if(h&&h===Ps.week&&+this.dateFormat("%w",t)===e&&s.substr(6)===o.substr(6)){n="week";break}if(h&&Ps[n]>h){n=a;break}if(r[n]&&s.substr(r[n])!==o.substr(r[n]))break;n!=="week"&&(a=n)}return this.resolveDTLFormat(i[n]).main}},{defined:or,extend:fh,timeUnits:rt}=z,As=class extends mh{getTimeTicks(h,t,e,i){let s=this,o=[],r={},{count:n=1,unitRange:a}=h,[l,c,d,p,g,u]=s.toParts(t),m=(t||0)%1e3,x;if(i??(i=1),or(t)){if(m=a>=rt.second?0:n*Math.floor(m/n),a>=rt.second&&(u=a>=rt.minute?0:n*Math.floor(u/n)),a>=rt.minute&&(g=a>=rt.hour?0:n*Math.floor(g/n)),a>=rt.hour&&(p=a>=rt.day?0:n*Math.floor(p/n)),a>=rt.day&&(d=a>=rt.month?1:Math.max(1,n*Math.floor(d/n))),a>=rt.month&&(c=a>=rt.year?0:n*Math.floor(c/n)),a>=rt.year&&(l-=l%n),a===rt.week){n&&(t=s.makeTime(l,c,d,p,g,u,m));let b=this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},t,"es"),v="DLMXJVS".indexOf(b);d+=-v+i+(v<i?-7:0)}t=s.makeTime(l,c,d,p,g,u,m),s.variableTimezone&&or(e)&&(x=e-t>4*rt.month||s.getTimezoneOffset(t)!==s.getTimezoneOffset(e));let f=t,y=1;for(;f<e;)o.push(f),a===rt.year?f=s.makeTime(l+y*n,0):a===rt.month?f=s.makeTime(l,c+y*n):x&&(a===rt.day||a===rt.week)?f=s.makeTime(l,c,d+y*n*(a===rt.day?1:7)):x&&a===rt.hour&&n>1?f=s.makeTime(l,c,d,p+y*n):f+=a*n,y++;o.push(f),a<=rt.hour&&o.length<1e4&&o.forEach(b=>{b%18e5==0&&s.dateFormat("%H%M%S%L",b)==="000000000"&&(r[b]="day")})}return o.info=fh(h,{higherRanks:r,totalRange:a*n}),o}},{isTouchDevice:xh}=A,{fireEvent:yh,merge:bh}=z,Wt={colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"],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:"#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:h=>Math.sqrt(1-Math.pow(h-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%[AebHMSL]",second:"%[AebHMS]",minute:"%[AebHM]",hour:"%[AebHM]",day:"%[AebY]",week:"%v %[AebY]",month:"%[BY]",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,position:{x:0,y:3},shared:!1,snap:xh?25:10,headerFormat:'<span style="font-size: 0.8em">{ucfirst point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25CF</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 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"}},Os=new As(Wt.time,Wt.lang),Mt={defaultOptions:Wt,defaultTime:Os,getOptions:function(){return Wt},setOptions:function(h){return yh(A,"setOptions",{options:h}),bh(!0,Wt,h),h.time&&Os.update(Wt.time),h.lang&&"locale"in h.lang&&Os.update({locale:h.lang.locale}),h.lang?.chartTitle&&(Wt.title=ee(Pt({},Wt.title),{text:h.lang.chartTitle})),Wt}},{win:vh}=A,{isNumber:He,isString:kh,merge:Mh,pInt:xt,defined:rr}=z,nr=(h,t,e)=>`color-mix(in srgb,${h},${t} ${100*e}%)`,Ls=h=>kh(h)&&!!h&&h!=="none";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;let r=A.Color;if(r&&r!==tt)return new r(t);if(typeof t=="object"&&t.stops!==void 0)this.stops=t.stops.map(n=>new tt(n[1]));else if(typeof t=="string")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(typeof e=="object"&&this.stops!==void 0){let s=Mh(e);return s.stops=[].slice.call(s.stops),this.stops.forEach((o,r)=>{s.stops[r]=[s.stops[r][0],o.get(t)]}),s}return i&&He(i[0])?t!=="rgb"&&(t||i[3]!==1)?t==="a"?`${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(i){i.brighten(t)});else if(He(t)&&t!==0)if(He(e[0]))for(let i=0;i<3;i++)e[i]+=xt(255*t),e[i]<0&&(e[i]=0),e[i]>255&&(e[i]=255);else tt.useColorMix&&Ls(this.input)&&(this.output=nr(this.input,t>0?"white":"black",Math.abs(t)));return this}setOpacity(t){return this.rgba[3]=t,this}tweenTo(t,e){let i=this.rgba,s=t.rgba;if(!He(i[0])||!He(s[0]))return tt.useColorMix&&Ls(this.input)&&Ls(t.input)&&e<.99?nr(this.input,t.input,e):t.input||"none";let o=s[3]!==1||i[3]!==1,r=(a,l)=>a+(i[l]-a)*(1-e),n=s.slice(0,3).map(r).map(Math.round);return o&&n.push(r(s[3],3)),(o?"rgba(":"rgb(")+n.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(h){return[xt(h[1]),xt(h[2]),xt(h[3]),parseFloat(h[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(h){return[xt(h[1]),xt(h[2]),xt(h[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(h){return[xt(h[1]+h[1],16),xt(h[2]+h[2],16),xt(h[3]+h[3],16),rr(h[4])?xt(h[4]+h[4],16)/255:1]}},{regex:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,parse:function(h){return[xt(h[1],16),xt(h[2],16),xt(h[3],16),rr(h[4])?xt(h[4],16)/255:1]}}],tt.useColorMix=vh.CSS?.supports("color","color-mix(in srgb,red,blue 9%)"),tt.None=new tt("");let{parse:ar}=tt,{win:wh}=A,{isNumber:Es,objectEach:Sh}=z,oe=(()=>{class h{constructor(e,i,s){this.pos=NaN,this.options=i,this.elem=e,this.prop=s}dSetter(){let e=this.paths,i=e?.[0],s=e?.[1],o=this.now||0,r=[];if(o!==1&&i&&s)if(i.length===s.length&&o<1)for(let n=0;n<s.length;n++){let a=i[n],l=s[n],c=[];for(let d=0;d<l.length;d++){let p=a[d],g=l[d];Es(p)&&Es(g)&&(l[0]!=="A"||d!==4&&d!==5)?c[d]=p+o*(g-p):c[d]=g}r.push(c)}else r=s;else r=this.toD||[];this.elem.attr("d",r,void 0,!0)}update(){let e=this.elem,i=this.prop,s=this.now,o=this.options.step;this[i+"Setter"]?this[i+"Setter"]():e.attr?e.element&&e.attr(i,s,null,!0):e.style[i]=s+this.unit,o&&o.call(e,s,this)}run(e,i,s){let o=this,r=o.options,n=function(c){return!n.stopped&&o.step(c)},a=wh.requestAnimationFrame||function(c){setTimeout(c,13)},l=function(){for(let c=0;c<h.timers.length;c++)h.timers[c]()||h.timers.splice(c--,1);h.timers.length&&a(l)};e!==i||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=i,this.unit=s,this.now=this.start,this.pos=0,n.elem=this.elem,n.prop=this.prop,n()&&h.timers.push(n)===1&&a(l)):(delete r.curAnim[this.prop],r.complete&&Object.keys(r.curAnim).length===0&&r.complete.call(this.elem))}step(e){let i,s,o=+new Date,r=this.options,n=this.elem,a=r.complete,l=r.duration,c=r.curAnim;return n.attr&&!n.element?i=!1:e||o>=l+this.startTime?(this.now=this.end,this.pos=1,this.update(),c[this.prop]=!0,s=!0,Sh(c,function(d){d!==!0&&(s=!1)}),s&&a&&a.call(n),i=!1):(this.pos=r.easing((o-this.startTime)/l),this.now=this.start+(this.end-this.start)*this.pos,this.update(),i=!0),i}initPath(e,i,s){let o=e.startX,r=e.endX,n=s.slice(),a=e.isArea,l=a?2:1,c=i&&s.length>i.length&&s.hasStackedCliffs,d,p,g,u,m=i?.slice();if(!m||c)return[n,n];function x(y,b){for(;y.length<p;){let v=y[0],S=b[p-y.length];if(S&&v[0]==="M"&&(S[0]==="C"?y[0]=["C",v[1],v[2],v[1],v[2],v[1],v[2]]:y[0]=["L",v[1],v[2]]),y.unshift(v),a){let M=y.pop();y.push(y[y.length-1],M)}}}function f(y){for(;y.length<p;){let b=y[Math.floor(y.length/l)-1].slice();if(b[0]==="C"&&(b[1]=b[5],b[2]=b[6]),a){let v=y[Math.floor(y.length/l)].slice();y.splice(y.length/2,0,b,v)}else y.push(b)}}if(o&&r&&r.length){for(g=0;g<o.length;g++){if(o[g]===r[0]){d=g;break}if(o[0]===r[r.length-o.length+g]){d=g,u=!0;break}if(o[o.length-1]===r[r.length-o.length+g]){d=o.length-g;break}}d===void 0&&(m=[])}return m.length&&Es(d)&&(p=n.length+d*l,u?(x(m,n),f(n)):(x(n,m),f(m))),[m,n]}fillSetter(){h.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,ar(this.start).tweenTo(ar(this.end),this.pos),void 0,!0)}}return h.timers=[],h})(),{defined:Ch,getStyle:Th,isArray:Ph,isNumber:Ah,isObject:Is,merge:hr,objectEach:Oh,pick:Lh}=z;function Ds(h){return Is(h)?hr({duration:500,defer:0},h):{duration:500*!!h,defer:0}}function lr(h,t){let e=oe.timers.length;for(;e--;)oe.timers[e].elem!==h||t&&t!==oe.timers[e].prop||(oe.timers[e].stopped=!0)}let pt={animate:function(h,t,e){let i,s="",o,r,n;Is(e)||(n=arguments,e={duration:n[2],easing:n[3],complete:n[4]}),Ah(e.duration)||(e.duration=400),e.easing=typeof e.easing=="function"?e.easing:Math[e.easing]||Math.easeInOutSine,e.curAnim=hr(t),Oh(t,function(a,l){lr(h,l),r=new oe(h,e,l),o=void 0,l==="d"&&Ph(t.d)?(r.paths=r.initPath(h,h.pathArray,t.d),r.toD=t.d,i=0,o=1):h.attr?i=h.attr(l):(i=parseFloat(Th(h,l))||0,l!=="opacity"&&(s="px")),o||(o=a),typeof o=="string"&&o.match("px")&&(o=o.replace(/px/g,"")),r.run(i,o,s)})},animObject:Ds,getDeferredAnimation:function(h,t,e){let i=Ds(t),s=e?[e]:h.series,o=0,r=0;return s.forEach(n=>{let a=Ds(n.options.animation);o=Is(t)&&Ch(t.defer)?i.defer:Math.max(o,a.duration+a.defer),r=Math.min(i.duration,a.duration)}),h.renderer.forExport&&(o=0),{defer:Math.max(0,o-r),duration:Math.min(o,r)}},setAnimation:function(h,t){t.renderer.globalAnimation=Lh(h,t.options.chart.animation,!0)},stop:lr},{SVG_NS:dr,win:Eh}=A,{attr:Ih,createElement:Dh,css:Bh,error:cr,isFunction:zh,isString:pr,objectEach:gr,splat:Nh}=z,{trustedTypes:Bs}=Eh,mi=Bs&&zh(Bs.createPolicy)&&Bs.createPolicy("highcharts",{createHTML:h=>h}),Rh=mi?mi.createHTML(""):"";class J{static filterUserAttributes(t){return gr(t,(e,i)=>{let s=!0;J.allowedAttributes.indexOf(i)===-1&&(s=!1),["background","dynsrc","href","lowsrc","src"].indexOf(i)!==-1&&(s=pr(e)&&J.allowedReferences.some(o=>e.indexOf(o)===0)),s||(cr(33,!1,void 0,{"Invalid attribute in config":`${i}`}),delete t[i]),pr(e)&&t[i]&&(t[i]=e.replace(/</g,"&lt;"))}),t}static parseStyle(t){return t.split(";").reduce((e,i)=>{let s=i.split(":").map(r=>r.trim()),o=s.shift();return o&&s.length&&(e[o.replace(/-([a-z])/g,r=>r[1].toUpperCase())]=s.join(":")),e},{})}static setElementHTML(t,e){t.innerHTML=J.emptyHTML,e&&new J(e).addToDOM(t)}constructor(t){this.nodes=typeof t=="string"?this.parseMarkup(t):t}addToDOM(t){return function e(i,s){let o;return Nh(i).forEach(function(r){let n,a=r.tagName,l=r.textContent?A.doc.createTextNode(r.textContent):void 0,c=J.bypassHTMLFiltering;if(a)if(a==="#text")n=l;else if(J.allowedTags.indexOf(a)!==-1||c){let d=a==="svg"?dr:s.namespaceURI||dr,p=A.doc.createElementNS(d,a),g=r.attributes||{};gr(r,function(u,m){m!=="tagName"&&m!=="attributes"&&m!=="children"&&m!=="style"&&m!=="textContent"&&(g[m]=u)}),Ih(p,c?g:J.filterUserAttributes(g)),r.style&&Bh(p,r.style),l&&p.appendChild(l),e(r.children||[],p),n=p}else cr(33,!1,void 0,{"Invalid tagName in config":a});n&&s.appendChild(n),o=n}),o}(this.nodes,t)}parseMarkup(t){let e,i=[];t=t.trim().replace(/ style=(["'])/g," data-style=$1");try{e=new DOMParser().parseFromString(mi?mi.createHTML(t):t,"text/html")}catch{}if(!e){let o=Dh("div");o.innerHTML=t,e={body:o}}let s=(o,r)=>{let n=o.nodeName.toLowerCase(),a={tagName:n};n==="#text"&&(a.textContent=o.textContent||"");let l=o.attributes;if(l){let c={};[].forEach.call(l,d=>{d.name==="data-style"?a.style=J.parseStyle(d.value):c[d.name]=d.value}),a.attributes=c}if(o.childNodes.length){let c=[];[].forEach.call(o.childNodes,d=>{s(d,c)}),c.length&&(a.children=c)}r.push(a)};return[].forEach.call(e.body.childNodes,o=>s(o,i)),i}}J.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"],J.allowedReferences=["https://","http://","mailto:","/","../","./","#"],J.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"],J.emptyHTML=Rh,J.bypassHTMLFiltering=!1;let{defaultOptions:ur,defaultTime:mr}=Mt,{pageLang:Wh}=A,{extend:Hh,getNestedProperty:Xh,isArray:Fh,isNumber:fr,isObject:Gh,isString:jh,pick:Yh,ucfirst:_h}=z,fi={add:(h,t)=>h+t,divide:(h,t)=>t!==0?h/t:"",eq:(h,t)=>h==t,each:function(h){let t=arguments[arguments.length-1];return!!Fh(h)&&h.map((e,i)=>xi(t.body,Hh(Gh(e)?e:{"@this":e},{"@index":i,"@first":i===0,"@last":i===h.length-1}))).join("")},ge:(h,t)=>h>=t,gt:(h,t)=>h>t,if:h=>!!h,le:(h,t)=>h<=t,lt:(h,t)=>h<t,multiply:(h,t)=>h*t,ne:(h,t)=>h!=t,subtract:(h,t)=>h-t,ucfirst:_h,unless:h=>!h},xr={},yr=h=>/^["'].+["']$/.test(h);function xi(h="",t,e){let i=/\{([a-zA-Z\u00C0-\u017F\d:\.,;\-\/<>\[\]%_@+"'’= #\(\)]+)\}/g,s=/\(([a-zA-Z\u00C0-\u017F\d:\.,;\-\/<>\[\]%_@+"'= ]+)\)/g,o=[],r=/f$/,n=/\.(\d)/,a=e?.options?.lang||ur.lang,l=e?.time||mr,c=e?.numberFormatter||br,d=(x="")=>{let f;return x==="true"||x!=="false"&&((f=Number(x)).toString()===x?f:yr(x)?x.slice(1,-1):Xh(x,t))},p,g,u=0,m;for(;(p=i.exec(h))!==null;){let x=p,f=s.exec(p[1]);f&&(p=f,m=!0),g?.isBlock||(g={ctx:t,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 y=(g.isBlock?x:p)[1].split(" ")[0].replace("#","");fi[y]&&(g.isBlock&&y===g.fn&&u++,g.fn||(g.fn=y));let b=p[1]==="else";if(g.isBlock&&g.fn&&(p[1]===`/${g.fn}`||b))if(u)!b&&u--;else{let v=g.startInner,S=h.substr(v,p.index-v);g.body===void 0?(g.body=S,g.startInner=p.index+p[0].length):g.elseBody=S,g.find+=S+p[0],b||(o.push(g),g=void 0)}else g.isBlock||o.push(g);if(f&&!g?.isBlock)break}return o.forEach(x=>{let f,y,{body:b,elseBody:v,expression:S,fn:M}=x;if(M){let k=[x],w=[],C=S.length,T=0,P;for(y=0;y<=C;y++){let O=S.charAt(y);P||O!=='"'&&O!=="'"?P===O&&(P=""):P=O,P||O!==" "&&y!==C||(w.push(S.substr(T,y-T)),T=y+1)}for(y=fi[M].length;y--;)k.unshift(d(w[y+1]));f=fi[M].apply(t,k),x.isBlock&&typeof f=="boolean"&&(f=xi(f?b:v,t,e))}else{let k=yr(S)?[S]:S.split(":");if(f=d(k.shift()||""),k.length&&typeof f=="number"){let w=k.join(":");if(r.test(w)){let C=parseInt((w.match(n)||["","-1"])[1],10);f!==null&&(f=c(f,C,a.decimalPoint,w.indexOf(",")>-1?a.thousandsSep:""))}else f=l.dateFormat(w,f)}s.lastIndex=0,s.test(x.find)&&jh(f)&&(f=`"${f}"`)}h=h.replace(x.find,Yh(f,""))}),m?xi(h,t,e):h}function br(h,t,e,i){t*=1;let s,o,[r,n]=(h=+h||0).toString().split("e").map(Number),a=this?.options?.lang||ur.lang,l=(h.toString().split(".")[1]||"").split("e")[0].length,c=t,d={};e??(e=a.decimalPoint),i??(i=a.thousandsSep),t===-1?t=Math.min(l,20):fr(t)?t&&n<0&&((o=t+n)>=0?(r=+r.toExponential(o).split("e")[0],t=o):(r=Math.floor(r),h=t<20?+(r*Math.pow(10,n)).toFixed(t):0,n=0)):t=2,n&&(t??(t=2),h=r),fr(t)&&t>=0&&(d.minimumFractionDigits=t,d.maximumFractionDigits=t),i===""&&(d.useGrouping=!1);let p=i||e,g=p?"en":this?.locale||a.locale||Wh,u=JSON.stringify(d)+g;return s=(xr[u]??(xr[u]=new Intl.NumberFormat(g,d))).format(h),p&&(s=s.replace(/([,\.])/g,"_$1").replace(/_\,/g,i??",").replace("_.",e??".")),(t||+s!=0)&&(!(n<0)||c)||(s="0"),n&&+s!=0&&(s+="e"+(n<0?"":"+")+n),s}let wt={dateFormat:function(h,t,e){return mr.dateFormat(h,t,e)},format:xi,helpers:fi,numberFormat:br};(function(h){let t;h.rendererTypes={},h.getRendererType=function(e=t){return h.rendererTypes[e]||h.rendererTypes[t]},h.registerRendererType=function(e,i,s){h.rendererTypes[e]=i,(!t||s)&&(t=e,A.Renderer=i)}})(j||(j={}));let Xe=j,{clamp:Uh,pick:Vh,pushUnique:$h,stableSort:zs}=z;(ut||(ut={})).distribute=function h(t,e,i){let s=t,o=s.reducedLen||e,r=(b,v)=>b.target-v.target,n=[],a=t.length,l=[],c=n.push,d,p,g,u=!0,m,x,f=0,y;for(d=a;d--;)f+=t[d].size;if(f>o){for(zs(t,(b,v)=>(v.rank||0)-(b.rank||0)),g=(y=t[0].rank===t[t.length-1].rank)?a/2:-1,p=y?g:a-1;g&&f>o;)m=t[d=Math.floor(p)],$h(l,d)&&(f-=m.size),p+=g,y&&p>=t.length&&(g/=2,p=g);l.sort((b,v)=>v-b).forEach(b=>c.apply(n,t.splice(b,1)))}for(zs(t,r),t=t.map(b=>({size:b.size,targets:[b.target],align:Vh(b.align,.5)}));u;){for(d=t.length;d--;)m=t[d],x=(Math.min.apply(0,m.targets)+Math.max.apply(0,m.targets))/2,m.pos=Uh(x-m.size*m.align,0,e-m.size);for(d=t.length,u=!1;d--;)d>0&&t[d-1].pos+t[d-1].size>t[d].pos&&(t[d-1].size+=t[d].size,t[d-1].targets=t[d-1].targets.concat(t[d].targets),t[d-1].align=.5,t[d-1].pos+t[d-1].size>e&&(t[d-1].pos=e-t[d-1].size),t.splice(d,1),u=!0)}return c.apply(s,n),d=0,t.some(b=>{let v=0;return(b.targets||[]).some(()=>(s[d].pos=b.pos+v,i!==void 0&&Math.abs(s[d].pos-s[d].target)>i?(s.slice(0,d+1).forEach(S=>delete S.pos),s.reducedLen=(s.reducedLen||e)-.1*e,s.reducedLen>.1*e&&h(s,e,i),!0):(v+=s[d].size,d++,!1)))}),zs(s,r),s};let yi=ut,{animate:Zh,animObject:qh,stop:vr}=pt,{deg2rad:kr,doc:ve,svg:Kh,SVG_NS:bi,win:Jh,isFirefox:Qh}=A,{addEvent:tl,attr:Ns,createElement:el,crisp:vi,css:Mr,defined:It,erase:il,extend:Fe,fireEvent:Rs,getAlignFactor:Ws,isArray:wr,isFunction:Sr,isNumber:sl,isObject:ol,isString:Cr,merge:Hs,objectEach:ke,pick:Ht,pInt:ki,pushUnique:rl,replaceNested:nl,syncTimeout:al,uniqueKey:Tr}=z;class at{_defaultGetter(t){let e=Ht(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),this.textStr!==void 0&&this.element.nodeName==="text"&&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(s,o){return i.indexOf(o)===-1&&s.push(o),s},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,n=!!t;t?(this.alignOptions=t,this.alignByTranslate=e,this.alignTo=i):(t=this.alignOptions||{},e=this.alignByTranslate,i=this.alignTo);let a=!i||Cr(i)?i||"renderer":void 0;a&&(n&&rl(r,this),i=void 0);let l=Ht(i,o[a],o),c=(l.x||0)+(t.x||0)+((l.width||0)-(t.width||0))*Ws(t.align),d=(l.y||0)+(t.y||0)+((l.height||0)-(t.height||0))*Ws(t.verticalAlign),p={"text-align":t?.align};return p[e?"translateX":"x"]=Math.round(c),p[e?"translateY":"y"]=Math.round(d),s&&(this[this.placed?"animate":"attr"](p),this.placed=!0),this.alignAttr=p,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=qh(Ht(e,this.renderer.globalAnimation,!0)),o=s.defer;return ve.hidden&&(s.duration=0),s.duration!==0?(i&&(s.complete=i),al(()=>{this.element&&Zh(this,t,s)},o)):(this.attr(t,void 0,i||s.complete),ke(t,function(r,n){s.step&&s.step.call(this,r,{prop:n,pos:1,elem:this})},this)),this}applyTextOutline(t){let e=this.element;t.indexOf("contrast")!==-1&&(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&&o!=="none"&&A.svg){this.fakeTS=!0,o=o.replace(/(^[\d\.]+)(.*?)$/g,function(c,d,p){return 2*Number(d)+p}),this.removeTextOutline();let r=ve.createElementNS(bi,"tspan");Ns(r,{class:"highcharts-text-outline",fill:s,stroke:s,"stroke-width":o,"stroke-linejoin":"round"});let n=e.querySelector("textPath")||e;[].forEach.call(n.childNodes,c=>{let d=c.cloneNode(!0);d.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(p=>d.removeAttribute(p)),r.appendChild(d)});let a=0;[].forEach.call(n.querySelectorAll("text tspan"),c=>{a+=Number(c.getAttribute("dy"))});let l=ve.createElementNS(bi,"tspan");l.textContent="\u200B",Ns(l,{x:Number(e.getAttribute("x")),dy:-a}),r.appendChild(l),n.insertBefore(r,n.firstChild)}}attr(t,e,i,s){let{element:o}=this,r=at.symbolCustomAttribs,n,a,l=this,c;return typeof t=="string"&&e!==void 0&&(n=t,(t={})[n]=e),typeof t=="string"?l=(this[t+"Getter"]||this._defaultGetter).call(this,t,o):(ke(t,function(d,p){c=!1,s||vr(this,p),this.symbolName&&r.indexOf(p)!==-1&&(a||(this.symbolAttr(t),a=!0),c=!0),this.rotation&&(p==="x"||p==="y")&&(this.doTransform=!0),c||(this[p+"Setter"]||this._defaultSetter).call(this,d,p,o)},this),this.afterSetters()),i&&i.call(this),l}clip(t){if(t&&!t.clipPath){let e=Tr()+"-",i=this.renderer.createElement("clipPath").attr({id:e}).add(this.renderer.defs);Fe(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,n=vi(i,e),a=vi(s,e);return Fe(t,{x:n,y:a,width:vi(o,e)-n,height:vi(r,e)-a}),It(t.strokeWidth)&&(t.strokeWidth=e),t}complexColor(t,e,i){let s=this.renderer,o,r,n,a,l,c,d,p,g,u,m=[],x;Rs(this.renderer,"complexColor",{args:arguments},function(){if(t.radialGradient?r="radialGradient":t.linearGradient&&(r="linearGradient"),r){if(n=t[r],l=s.gradients,c=t.stops,g=i.radialReference,wr(n)&&(t[r]=n={x1:n[0],y1:n[1],x2:n[2],y2:n[3],gradientUnits:"userSpaceOnUse"}),r==="radialGradient"&&g&&!It(n.gradientUnits)&&(a=n,n=Hs(n,s.getRadialAttr(g,a),{gradientUnits:"userSpaceOnUse"})),ke(n,function(f,y){y!=="id"&&m.push(y,f)}),ke(c,function(f){m.push(f)}),l[m=m.join(",")])u=l[m].attr("id");else{n.id=u=Tr();let f=l[m]=s.createElement(r).attr(n).add(s.defs);f.radAttr=a,f.stops=[],c.forEach(function(y){y[1].indexOf("rgba")===0?(d=(o=tt.parse(y[1])).get("rgb"),p=o.get("a")):(d=y[1],p=1);let b=s.createElement("stop").attr({offset:y[0],"stop-color":d,"stop-opacity":p}).add(f);f.stops.push(b)})}x="url("+s.url+"#"+u+")",i.setAttribute(e,x),i.gradient=m,t.toString=function(){return x}}})}css(t){let e=this.styles,i={},s=this.element,o,r=!e;if(e&&ke(t,function(n,a){e&&e[a]!==n&&(i[a]=n,r=!0)}),r){e&&(t=Fe(e,i)),t.width===null||t.width==="auto"?delete this.textWidth:s.nodeName.toLowerCase()==="text"&&t.width&&(o=this.textWidth=ki(t.width)),Fe(this.styles,t),o&&!Kh&&this.renderer.forExport&&delete t.width;let n=Qh&&t.fontSize||null;n&&(sl(n)||/^\d+$/.test(n))&&(t.fontSize+="px");let a=Hs(t);s.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach(l=>a&&delete a[l]),a.color&&(a.fill=a.color,delete a.color)),Mr(s,a)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),t.textOutline&&this.applyTextOutline(t.textOutline)),this}dashstyleSetter(t){let e,i=this["stroke-width"];if(i==="inherit"&&(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]=""+ki(s[e])*Ht(i,NaN);t=s.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}}destroy(){let t=this,e=t.element||{},i=t.renderer,s=e.ownerSVGElement,o=e.nodeName==="SPAN"&&t.parentGroup||void 0,r,n;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,vr(t),t.clipPath&&s){let a=t.clipPath;[].forEach.call(s.querySelectorAll("[clip-path],[CLIP-PATH]"),function(l){l.getAttribute("clip-path").indexOf(a.element.id)>-1&&l.removeAttribute("clip-path")}),t.clipPath=a.destroy()}if(t.stops){for(n=0;n<t.stops.length;n++)t.stops[n].destroy();t.stops.length=0,t.stops=void 0}for(t.safeRemoveChild(e);o?.div&&o.div.childNodes.length===0;)r=o.parentGroup,t.safeRemoveChild(o.div),delete o.div,o=r;t.alignOptions&&il(i.alignedObjects,t),ke(t,(a,l)=>{(t[l]?.parentGroup===t||["connector","foreignObject"].indexOf(l)!==-1)&&t[l]?.destroy?.(),delete t[l]})}dSetter(t,e,i){wr(t)&&(typeof t[0]=="string"&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce((s,o,r)=>o?.join?(r?s+" ":"")+o.join(" "):(o||"").toString(),"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(i.setAttribute(e,t),this[e]=t)}fillSetter(t,e,i){typeof t=="string"?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,r,{alignValue:n,element:a,renderer:l,styles:c,textStr:d}=this,{cache:p,cacheKeys:g}=l,u=a.namespaceURI===this.SVG_NS,m=Ht(e,this.rotation,0),x=l.styledMode?a&&at.prototype.getStyle.call(a,"font-size"):c.fontSize;if(It(d)&&((r=d.toString()).indexOf("<")===-1&&(r=r.replace(/\d/g,"0")),r+=["",l.rootFontSize,x,m,this.textWidth,n,c.lineClamp,c.textOverflow,c.fontWeight].join(",")),r&&!t&&(i=p[r]),!i||i.polygon){if(u||l.forExport){try{o=this.fakeTS&&function(y){let b=a.querySelector(".highcharts-text-outline");b&&Mr(b,{display:y})},Sr(o)&&o("none"),i=a.getBBox?Fe({},a.getBBox()):{width:a.offsetWidth,height:a.offsetHeight,x:0,y:0},Sr(o)&&o("")}catch{}(!i||i.width<0)&&(i={x:0,y:0,width:0,height:0})}else i=this.htmlGetBBox();s=i.height,u&&(i.height=s={"11px,17":14,"13px,20":16}[`${x||""},${Math.round(s)}`]||s),m&&(i=this.getRotatedBox(i,m));let f={bBox:i};Rs(this,"afterGetBBox",f),i=f.bBox}if(r&&(d===""||i.height>0)){for(;g.length>250;)delete p[g.shift()];p[r]||g.push(r),p[r]=i}return i}getRotatedBox(t,e){let{x:i,y:s,width:o,height:r}=t,{alignValue:n,translateY:a,rotationOriginX:l=0,rotationOriginY:c=0}=this,d=Ws(n),p=Number(this.element.getAttribute("y")||0)-(a?0:s),g=e*kr,u=(e-90)*kr,m=Math.cos(g),x=Math.sin(g),f=o*m,y=o*x,b=Math.cos(u),v=Math.sin(u),[[S,M],[k,w]]=[l,c].map(W=>[W-W*m,W*x]),C=i+d*(o-f)+S+w+p*b,T=C+f,P=T-r*b,O=P-f,L=s+p-d*y-M+k+p*v,I=L+y,D=I-r*v,E=D-y,B=Math.min(C,T,P,O),K=Math.min(L,I,D,E),_=Math.max(C,T,P,O)-B,mt=Math.max(L,I,D,E)-K;return{x:B,y:K,width:_,height:mt,polygon:[[C,L],[T,I],[P,D],[O,E]]}}getStyle(t){return Jh.getComputedStyle(this.element||this,"").getPropertyValue(t)}hasClass(t){return(""+this.attr("class")).split(" ").indexOf(t)!==-1}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=bi,this.element=e==="span"||e==="body"?el(e):ve.createElementNS(this.SVG_NS,e),this.renderer=t,this.styles={},Rs(this,"afterInit")}on(t,e){let{onEvents:i}=this;return i[t]&&i[t](),i[t]=tl(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&&this.alignOptions.align!=="left"&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(t){return this.attr("class",(""+this.attr("class")).replace(Cr(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=Hs(this.parentGroup?.rotation===90?{offsetX:-1,offsetY:-1}:{},ol(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=ki(t):t!==""&&(Ns(i=ve.createElementNS(bi,"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;at.symbolCustomAttribs.forEach(function(i){e[i]=Ht(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]||ve.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=nl(Ht(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,padding:o,rotation:r=0,rotationOriginX:n,rotationOriginY:a,scaleX:l,scaleY:c,text:d,translateX:p=0,translateY:g=0}=this,u=["translate("+p+","+g+")"];It(s)&&u.push("matrix("+s.join(",")+")"),r&&(u.push("rotate("+r+" "+(n??e.getAttribute("x")??this.x??0)+" "+(a??e.getAttribute("y")??this.y??0)+")"),d?.element.tagName!=="SPAN"||d?.foreignObject||d.attr({rotation:r,rotationOriginX:(n||0)-o,rotationOriginY:(a||0)-o})),(It(l)||It(c))&&u.push("scale("+Ht(l,1)+" "+Ht(c,1)+")"),u.length&&!(d||this).textPath&&(i?.element||e).setAttribute(t,u.join(" "))}visibilitySetter(t,e,i){t==="inherit"?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t}xGetter(t){return this.element.nodeName==="circle"&&(t==="x"?t="cx":t==="y"&&(t="cy")),this._defaultGetter(t)}zIndexSetter(t,e){let i=this.renderer,s=this.parentGroup,o=(s||i).element||i.box,r=this.element,n=o===i.box,a,l,c,d=!1,p,g=this.added,u;if(It(t)?(r.setAttribute("data-z-index",t),t*=1,this[e]===t&&(g=!1)):It(this[e])&&r.removeAttribute("data-z-index"),this[e]=t,g){for((t=this.zIndex)&&s&&(s.handleZ=!0),u=(a=o.childNodes).length-1;u>=0&&!d;u--)p=!It(c=(l=a[u]).getAttribute("data-z-index")),l!==r&&(t<0&&p&&!n&&!u?(o.insertBefore(r,a[u]),d=!0):(ki(c)<=t||p&&(!It(t)||t>=0))&&(o.insertBefore(r,a[u+1]),d=!0));d||(o.insertBefore(r,a[3*!!n]),d=!0)}return d}}at.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],at.prototype.strokeSetter=at.prototype.fillSetter,at.prototype.yGetter=at.prototype.xGetter,at.prototype.matrixSetter=at.prototype.rotationOriginXSetter=at.prototype.rotationOriginYSetter=at.prototype.rotationSetter=at.prototype.scaleXSetter=at.prototype.scaleYSetter=at.prototype.translateXSetter=at.prototype.translateYSetter=at.prototype.verticalAlignSetter=function(h,t){this[t]=h,this.doTransform=!0};let Dt=at,{defined:Pr,extend:hl,getAlignFactor:Ar,isNumber:Ge,merge:ll,pick:Mi,removeEvent:Or}=z;class re extends Dt{constructor(t,e,i,s,o,r,n,a,l,c){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=n,this.baseline=l,this.className=c,this.addClass(c==="button"?"highcharts-no-tooltip":"highcharts-label"),c&&this.addClass("highcharts-"+c),this.text=t.text(void 0,0,0,a).attr({zIndex:1}),typeof o=="string"&&((d=/^url\((.*?)\)$/.test(o))||this.renderer.symbols[o])&&(this.symbolKey=o),this.bBox=re.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=t.styledMode||d,this.deferredAttr={},this.alignFactor=0}alignSetter(t){let e=Ar(t);this.textAlign=t,e!==this.alignFactor&&(this.alignFactor=e,this.bBox&&Ge(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)}boxAttr(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e}css(t){if(t){let e={};t=ll(t),re.textProps.forEach(i=>{t[i]!==void 0&&(e[i]=t[i],delete t[i])}),this.text.css(e),"fontSize"in e||"fontWeight"in e?this.updateTextPadding():("width"in e||"textOverflow"in e)&&this.updateBoxSize()}return Dt.prototype.css.call(this,t)}destroy(){Or(this.element,"mouseenter"),Or(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),Dt.prototype.destroy.call(this)}fillSetter(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)}getBBox(t,e){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();let{padding:i,height:s=0,translateX:o=0,translateY:r=0,width:n=0}=this,a=Mi(this.paddingLeft,i),l=e??(this.rotation||0),c={width:n,height:s,x:o+this.bBox.x-a,y:r+this.bBox.y-i+this.baselineOffset};return l&&(c=this.getRotatedBox(c,l)),c}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(t){this.heightSetting=t,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}onAdd(){this.text.add(this),this.attr({text:Mi(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&Pr(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(t,e){Ge(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0}rSetter(t,e){this.boxAttr(e,t)}strokeSetter(t,e){this.stroke=t,this.boxAttr(e,t)}"stroke-widthSetter"(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)}"text-alignSetter"(t){this.textAlign=this["text-align"]=t,this.updateTextPadding()}textSetter(t){t!==void 0&&this.text.attr({text:t}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let t,e=this.text,i={},s=this.padding,o=this.bBox=(!Ge(this.widthSetting)||!Ge(this.heightSetting)||this.textAlign)&&Pr(e.textStr)?e.getBBox(void 0,0):re.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||o.height||0)+2*s;let r=this.renderer.fontMetrics(e);if(this.baselineOffset=s+Math.min((this.text.firstLineMetrics||r).b,o.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-r.h)/2),this.needsBox&&!e.textPath){if(!this.box){let n=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();n.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),n.add(this)}i.x=t=this.getCrispAdjust(),i.y=(this.baseline?-this.baselineOffset:0)+t,i.width=Math.round(this.width),i.height=Math.round(this.height),this.box.attr(hl(i,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let t=this.text,e=t.styles.textAlign||this.textAlign;if(!t.textPath){this.updateBoxSize();let i=this.baseline?0:this.baselineOffset,s=(this.paddingLeft??this.padding)+Ar(e)*(this.widthSetting??this.bBox.width);(s!==t.x||i!==t.y)&&(t.attr({align:e,x:s}),i!==void 0&&t.attr("y",i)),t.x=s,t.y=i}}widthSetter(t){this.widthSetting=Ge(t)?t:void 0,this.doUpdate=!0}getPaddedWidth(){let t=this.padding,e=Mi(this.paddingLeft,t),i=Mi(this.paddingRight,t);return(this.widthSetting||this.bBox.width||0)+e+i}xSetter(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)}ySetter(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)}}re.emptyBBox={width:0,height:0,x:0,y:0},re.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineClamp","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"];let{defined:Lr,isNumber:dl,pick:je}=z;function Er(h,t,e,i,s){let o=[];if(s){let r=s.start||0,n=s.end||0,a=je(s.r,e),l=je(s.r,i||e),c=2e-4/(s.borderRadius?1:Math.max(a,1)),d=Math.abs(n-r-2*Math.PI)<c;d&&(r=Math.PI/2,n=2.5*Math.PI-c);let p=s.innerR,g=je(s.open,d),u=Math.cos(r),m=Math.sin(r),x=Math.cos(n),f=Math.sin(n),y=je(s.longArc,n-r-Math.PI<c?0:1),b=["A",a,l,0,y,je(s.clockwise,1),h+a*x,t+l*f];b.params={start:r,end:n,cx:h,cy:t},o.push(["M",h+a*u,t+l*m],b),Lr(p)&&((b=["A",p,p,0,y,Lr(s.clockwise)?1-s.clockwise:0,h+p*u,t+p*m]).params={start:n,end:r,cx:h,cy:t},o.push(g?["M",h+p*x,t+p*f]:["L",h+p*x,t+p*f],b)),g||o.push(["Z"])}return o}function Ir(h,t,e,i,s){return s?.r?Xs(h,t,e,i,s):[["M",h,t],["L",h+e,t],["L",h+e,t+i],["L",h,t+i],["Z"]]}function Xs(h,t,e,i,s){let o=s?.r||0;return[["M",h+o,t],["L",h+e-o,t],["A",o,o,0,0,1,h+e,t+o],["L",h+e,t+i-o],["A",o,o,0,0,1,h+e-o,t+i],["L",h+o,t+i],["A",o,o,0,0,1,h,t+i-o],["L",h,t+o],["A",o,o,0,0,1,h+o,t],["Z"]]}let Dr={arc:Er,callout:function(h,t,e,i,s){let o=Math.min(s?.r||0,e,i),r=o+6,n=s?.anchorX,a=s?.anchorY||0,l=Xs(h,t,e,i,{r:o});if(!dl(n)||n<e&&n>0&&a<i&&a>0)return l;if(h+n>e-r)if(a>t+r&&a<t+i-r)l.splice(3,1,["L",h+e,a-6],["L",h+e+6,a],["L",h+e,a+6],["L",h+e,t+i-o]);else if(n<e){let c=a<t+r,d=c?t:t+i;l.splice(c?2:5,0,["L",n,a],["L",h+e-o,d])}else l.splice(3,1,["L",h+e,i/2],["L",n,a],["L",h+e,i/2],["L",h+e,t+i-o]);else if(h+n<r)if(a>t+r&&a<t+i-r)l.splice(7,1,["L",h,a+6],["L",h-6,a],["L",h,a-6],["L",h,t+o]);else if(n>0){let c=a<t+r,d=c?t:t+i;l.splice(c?1:6,0,["L",n,a],["L",h+o,d])}else l.splice(7,1,["L",h,i/2],["L",n,a],["L",h,i/2],["L",h,t+o]);else a>i&&n<e-r?l.splice(5,1,["L",n+6,t+i],["L",n,t+i+6],["L",n-6,t+i],["L",h+o,t+i]):a<0&&n>r&&l.splice(1,1,["L",n-6,t],["L",n,t-6],["L",n+6,t],["L",e-o,t]);return l},circle:function(h,t,e,i){return Er(h+e/2,t+i/2,e/2,i/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(h,t,e,i){return[["M",h+e/2,t],["L",h+e,t+i/2],["L",h+e/2,t+i],["L",h,t+i/2],["Z"]]},rect:Ir,roundedRect:Xs,square:Ir,triangle:function(h,t,e,i){return[["M",h+e/2,t],["L",h+e,t+i],["L",h,t+i],["Z"]]},"triangle-down":function(h,t,e,i){return[["M",h,t],["L",h+e,t],["L",h+e/2,t+i],["Z"]]}},{doc:Fs,SVG_NS:cl,win:Br}=A,{attr:Gs,extend:pl,fireEvent:gl,isString:ul,objectEach:ml,pick:fl}=z,js=(h,t)=>h.substring(0,t)+"\u2026",xl=class{constructor(h){let t=h.styles;this.renderer=h.renderer,this.svgElement=h,this.width=h.textWidth,this.textLineHeight=t?.lineHeight,this.textOutline=t?.textOutline,this.ellipsis=t?.textOverflow==="ellipsis",this.lineClamp=t?.lineClamp,this.noWrap=t?.whiteSpace==="nowrap"}buildSVG(){let h=this.svgElement,t=h.element,e=h.renderer,i=fl(h.textStr,"").toString(),s=i.indexOf("<")!==-1,o=t.childNodes,r=!h.added&&e.box,n=[i,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,h.getStyle("font-size"),h.styles.lineClamp,this.width].join(",");if(n!==h.textCache){h.textCache=n,delete h.actualWidth;for(let a=o.length;a--;)t.removeChild(o[a]);if(s||this.ellipsis||this.width||h.textPath||i.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(i))){if(i!==""){r&&r.appendChild(t);let a=new J(i);this.modifyTree(a.nodes),a.addToDOM(t),this.modifyDOM(),this.ellipsis&&(t.textContent||"").indexOf("\u2026")!==-1&&h.attr("title",this.unescapeEntities(h.textStr||"",["&lt;","&gt;"])),r&&r.removeChild(t)}}else t.appendChild(Fs.createTextNode(this.unescapeEntities(i)));ul(this.textOutline)&&h.applyTextOutline&&h.applyTextOutline(this.textOutline)}}modifyDOM(){let h,t=this.svgElement,e=Gs(t.element,"x");for(t.firstLineMetrics=void 0;(h=t.element.firstChild)&&/^[\s\u200B]*$/.test(h.textContent||" ");)t.element.removeChild(h);[].forEach.call(t.element.querySelectorAll("tspan.highcharts-br"),(r,n)=>{r.nextSibling&&r.previousSibling&&(n===0&&r.previousSibling.nodeType===1&&(t.firstLineMetrics=t.renderer.fontMetrics(r.previousSibling)),Gs(r,{dy:this.getLineHeight(r.nextSibling),x:e}))});let i=this.width||0;if(!i)return;let s=(r,n)=>{let a=r.textContent||"",l=a.replace(/([^\^])-/g,"$1- ").split(" "),c=!this.noWrap&&(l.length>1||t.element.childNodes.length>1),d=this.getLineHeight(n),p=Math.max(0,i-.8*d),g=0,u=t.actualWidth;if(c){let m=[],x=[];for(;n.firstChild&&n.firstChild!==r;)x.push(n.firstChild),n.removeChild(n.firstChild);for(;l.length;)if(l.length&&!this.noWrap&&g>0&&(m.push(r.textContent||""),r.textContent=l.join(" ").replace(/- /g,"-")),this.truncate(r,void 0,l,g===0&&u||0,i,p,(f,y)=>l.slice(0,y).join(" ").replace(/- /g,"-")),u=t.actualWidth,g++,this.lineClamp&&g>=this.lineClamp){l.length&&(this.truncate(r,r.textContent||"",void 0,0,i,p,js),r.textContent=r.textContent?.replace("\u2026","")+"\u2026");break}x.forEach(f=>{n.insertBefore(f,r)}),m.forEach(f=>{n.insertBefore(Fs.createTextNode(f),r);let y=Fs.createElementNS(cl,"tspan");y.textContent="\u200B",Gs(y,{dy:d,x:e}),n.insertBefore(y,r)})}else this.ellipsis&&a&&this.truncate(r,a,void 0,0,i,p,js)},o=r=>{[].slice.call(r.childNodes).forEach(n=>{n.nodeType===Br.Node.TEXT_NODE?s(n,r):(n.className.baseVal.indexOf("highcharts-br")!==-1&&(t.actualWidth=0),o(n))})};o(t.element)}getLineHeight(h){let t=h.nodeType===Br.Node.TEXT_NODE?h.parentElement:h;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(t||this.svgElement.element).h}modifyTree(h){let t=(e,i)=>{let{attributes:s={},children:o,style:r={},tagName:n}=e,a=this.renderer.styledMode;if(n==="b"||n==="strong"?a?s.class="highcharts-strong":r.fontWeight="bold":(n==="i"||n==="em")&&(a?s.class="highcharts-emphasized":r.fontStyle="italic"),r?.color&&(r.fill=r.color),n==="br"){s.class="highcharts-br",e.textContent="\u200B";let l=h[i+1];l?.textContent&&(l.textContent=l.textContent.replace(/^ +/gm,""))}else n==="a"&&o&&o.some(l=>l.tagName==="#text")&&(e.children=[{children:o,tagName:"tspan"}]);n!=="#text"&&n!=="a"&&(e.tagName="tspan"),pl(e,{attributes:s,style:r}),o&&o.filter(l=>l.tagName!=="#text").forEach(t)};h.forEach(t),gl(this.svgElement,"afterModifyTree",{nodes:h})}truncate(h,t,e,i,s,o,r){let n,a,l=this.svgElement,{rotation:c}=l,d=[],p=e&&!i?1:0,g=(t||e||"").length,u=g;e||(s=o);let m=function(x,f){let y=f||x,b=h.parentNode;if(b&&d[y]===void 0&&b.getSubStringLength)try{d[y]=i+b.getSubStringLength(0,e?y+1:y)}catch{}return d[y]};if(l.rotation=0,i+(a=m(h.textContent.length))>s){for(;p<=g;)u=Math.ceil((p+g)/2),e&&(n=r(e,u)),a=m(u,n&&n.length-1),p===g?p=g+1:a>s?g=u-1:p=u;g===0?h.textContent="":t&&g===t.length-1||(h.textContent=n||r(t||e,u)),this.ellipsis&&a>s&&this.truncate(h,h.textContent||"",void 0,0,s,o,js)}e&&e.splice(0,u),l.actualWidth=a,l.rotation=c}unescapeEntities(h,t){return ml(this.renderer.escapes,function(e,i){t&&t.indexOf(e)!==-1||(h=h.toString().replace(RegExp(e,"g"),i))}),h}},{defaultOptions:yl}=Mt,{charts:bl,deg2rad:zr,doc:Me,isFirefox:Nr,isMS:Rr,isWebKit:vl,noop:kl,SVG_NS:Ml,symbolSizes:Ys,win:_s}=A,{addEvent:wi,attr:Si,createElement:wl,crisp:Wr,css:Ci,defined:ne,destroyObjectProperties:Sl,extend:ae,isArray:Cl,isNumber:we,isObject:Ye,isString:Tl,merge:Us,pick:Vs,pInt:Pl,replaceNested:Al,uniqueKey:Ol}=z;class Ti{constructor(t,e,i,s,o,r,n){let a,l;this.x=0,this.y=0;let c=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),d=c.element;n||c.css(this.getStyle(s||{})),t.appendChild(d),Si(t,"dir","ltr"),t.innerHTML.indexOf("xmlns")===-1&&Si(d,"xmlns",this.SVG_NS),this.box=d,this.boxWrapper=c,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(Me.createTextNode("Created with Highcharts 12.2.0")),this.defs=this.createElement("defs").add(),this.allowHTML=r,this.forExport=o,this.styledMode=n,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=c.getStyle("font-size"),this.setSize(e,i,!1),Nr&&t.getBoundingClientRect&&((a=function(){Ci(t,{left:0,top:0}),l=t.getBoundingClientRect(),Ci(t,{left:Math.ceil(l.left)-l.left+"px",top:Math.ceil(l.top)-l.top+"px"})})(),this.unSubPixelFix=wi(_s,"resize",a))}definition(t){return new J([t]).addToDOM(this.defs.element)}getReferenceURL(){if((Nr||vl)&&Me.getElementsByTagName("base").length){if(!ne(bt)){let t=Ol(),e=new J([{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(#${t})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(Me.body);Ci(e,{position:"fixed",top:0,left:0,zIndex:9e5}),bt=Me.elementFromPoint(6,6)?.id==="hitme",Me.body.removeChild(e)}if(bt)return Al(_s.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(t){return this.style=ae({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}setStyle(t){this.boxWrapper.css(this.getStyle(t))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),Sl(this.gradients||{}),this.gradients=null,this.defs=t.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(t){return new this.Element(this,t)}getRadialAttr(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]}}shadowDefinition(t){let e=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(t).map(s=>`${s}-${t[s]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),i=Us({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},t);return this.defs.element.querySelector(`#${e}`)||this.definition({tagName:"filter",attributes:{id:e,filterUnits:i.filterUnits},children:this.getShadowFilterContent(i)}),e}getShadowFilterContent(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}}]}buildText(t){new xl(t).buildSVG()}getContrast(t){let e=tt.parse(t).rgba,i=" clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1)";if(we(e[0])||!tt.useColorMix){let s=e.map(r=>{let n=r/255;return n<=.04?n/12.92:Math.pow((n+.055)/1.055,2.4)}),o=.2126*s[0]+.7152*s[1]+.0722*s[2];return 1.05/(o+.05)>(o+.05)/.05?"#FFFFFF":"#000000"}return"color(from "+t+" srgb"+i+i+i+")"}button(t,e,i,s,o={},r,n,a,l,c){let d=this.label(t,e,i,l,void 0,void 0,c,void 0,"button"),p=this.styledMode,g=arguments,u=0;o=Us(yl.global.buttonTheme,o),p&&(delete o.fill,delete o.stroke,delete o["stroke-width"]);let m=o.states||{},x=o.style||{};delete o.states,delete o.style;let f=[J.filterUserAttributes(o)],y=[x];return p||["hover","select","disabled"].forEach((b,v)=>{f.push(Us(f[0],J.filterUserAttributes(g[v+5]||m[b]||{}))),y.push(f[v+1].style),delete f[v+1].style}),wi(d.element,Rr?"mouseover":"mouseenter",function(){u!==3&&d.setState(1)}),wi(d.element,Rr?"mouseout":"mouseleave",function(){u!==3&&d.setState(u)}),d.setState=(b=0)=>{if(b!==1&&(d.state=u=b),d.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][b]),!p){d.attr(f[b]);let v=y[b];Ye(v)&&d.css(v)}},d.attr(f[0]),!p&&(d.css(ae({cursor:"default"},x)),c&&d.text.css({pointerEvents:"none"})),d.on("touchstart",b=>b.stopPropagation()).on("click",function(b){u!==3&&s?.call(d,b)})}crispLine(t,e){let[i,s]=t;return ne(i[1])&&i[1]===s[1]&&(i[1]=s[1]=Wr(i[1],e)),ne(i[2])&&i[2]===s[2]&&(i[2]=s[2]=Wr(i[2],e)),t}path(t){let e=this.styledMode?{}:{fill:"none"};return Cl(t)?e.d=t:Ye(t)&&ae(e,t),this.createElement("path").attr(e)}circle(t,e,i){let s=Ye(t)?t:t===void 0?{}:{x:t,y:e,r:i},o=this.createElement("circle");return o.xSetter=o.ySetter=function(r,n,a){a.setAttribute("c"+n,r)},o.attr(s)}arc(t,e,i,s,o,r){let n;Ye(t)?(e=(n=t).y,i=n.r,s=n.innerR,o=n.start,r=n.end,t=n.x):n={innerR:s,start:o,end:r};let a=this.symbol("arc",t,e,i,i,n);return a.r=i,a}rect(t,e,i,s,o,r){let n=Ye(t)?t:t===void 0?{}:{x:t,y:e,r:o,width:Math.max(i||0,0),height:Math.max(s||0,0)},a=this.createElement("rect");return this.styledMode||(r!==void 0&&(n["stroke-width"]=r,ae(n,a.crisp(n))),n.fill="none"),a.rSetter=function(l,c,d){a.r=l,Si(d,{rx:l,ry:l})},a.rGetter=function(){return a.r||0},a.attr(n)}roundedRect(t){return this.symbol("roundedRect").attr(t)}setSize(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:Vs(i,!0)?void 0:0}),this.alignElements()}g(t){let e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e}image(t,e,i,s,o,r){let n={preserveAspectRatio:"none"};we(e)&&(n.x=e),we(i)&&(n.y=i),we(s)&&(n.width=s),we(o)&&(n.height=o);let a=this.createElement("image").attr(n),l=function(c){a.attr({href:t}),r.call(a,c)};if(r){a.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let c=new _s.Image;wi(c,"load",l),c.src=t,c.complete&&l({})}else a.attr({href:t});return a}symbol(t,e,i,s,o,r){let n,a,l,c,d=this,p=/^url\((.*?)\)$/,g=p.test(t),u=!g&&(this.symbols[t]?t:"circle"),m=u&&this.symbols[u];if(m)typeof e=="number"&&(a=m.call(this.symbols,e||0,i||0,s||0,o||0,r)),n=this.path(a),d.styledMode||n.attr("fill","none"),ae(n,{symbolName:u||void 0,x:e,y:i,width:s,height:o}),r&&ae(n,r);else if(g){l=t.match(p)[1];let x=n=this.image(l);x.imgwidth=Vs(r?.width,Ys[l]?.width),x.imgheight=Vs(r?.height,Ys[l]?.height),c=f=>f.attr({width:f.width,height:f.height}),["width","height"].forEach(f=>{x[`${f}Setter`]=function(y,b){this[b]=y;let{alignByTranslate:v,element:S,width:M,height:k,imgwidth:w,imgheight:C}=this,T=b==="width"?w:C,P=1;r&&r.backgroundSize==="within"&&M&&k&&w&&C?(P=Math.min(M/w,k/C),Si(S,{width:Math.round(w*P),height:Math.round(C*P)})):S&&T&&S.setAttribute(b,T),!v&&w&&C&&this.translate(((M||0)-w*P)/2,((k||0)-C*P)/2)}}),ne(e)&&x.attr({x:e,y:i}),x.isImg=!0,x.symbolUrl=t,ne(x.imgwidth)&&ne(x.imgheight)?c(x):(x.attr({width:0,height:0}),wl("img",{onload:function(){let f=bl[d.chartIndex];this.width===0&&(Ci(this,{position:"absolute",top:"-999em"}),Me.body.appendChild(this)),Ys[l]={width:this.width,height:this.height},x.imgwidth=this.width,x.imgheight=this.height,x.element&&c(x),this.parentNode&&this.parentNode.removeChild(this),d.imgCount--,d.imgCount||!f||f.hasLoaded||f.onload()},src:l}),this.imgCount++)}return n}clipRect(t,e,i,s){return this.rect(t,e,i,s,0)}text(t,e,i,s){let o={};if(s&&(this.allowHTML||!this.forExport))return this.html(t,e,i);o.x=Math.round(e||0),i&&(o.y=Math.round(i)),ne(t)&&(o.text=t);let r=this.createElement("text").attr(o);return s&&(!this.forExport||this.allowHTML)||(r.xSetter=function(n,a,l){let c=l.getElementsByTagName("tspan"),d=l.getAttribute(a);for(let p=0,g;p<c.length;p++)(g=c[p]).getAttribute(a)===d&&g.setAttribute(a,n);l.setAttribute(a,n)}),r}fontMetrics(t){let e=Pl(Dt.prototype.getStyle.call(t,"font-size")||0),i=e<24?e+3:Math.round(1.2*e),s=Math.round(.8*i);return{h:i,b:s,f:e}}rotCorr(t,e,i){let s=t;return e&&i&&(s=Math.max(s*Math.cos(e*zr),4)),{x:-t/3*Math.sin(e*zr),y:s}}pathToSegments(t){let e=[],i=[],s={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let o=0;o<t.length;o++)Tl(i[0])&&we(t[o])&&i.length===s[i[0].toUpperCase()]&&t.splice(o,0,i[0].replace("M","L").replace("m","l")),typeof t[o]=="string"&&(i.length&&e.push(i.slice(0)),i.length=0),i.push(t[o]);return e.push(i.slice(0)),e}label(t,e,i,s,o,r,n,a,l){return new re(this,t,e,i,s,o,r,n,a,l)}alignElements(){this.alignedObjects.forEach(t=>t.align())}}ae(Ti.prototype,{Element:Dt,SVG_NS:Ml,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:Dr,draw:kl}),Xe.registerRendererType("svg",Ti,!0);let{composed:Ll,isFirefox:El}=A,{attr:Il,css:jt,createElement:Dl,defined:Hr,extend:Bl,getAlignFactor:zl,isNumber:Pi,pInt:Nl,pushUnique:Rl}=z;function Xr(h,t,e){let i=this.div?.style||e.style;Dt.prototype[`${t}Setter`].call(this,h,t,e),i&&(i[t]=h)}let Wl=(h,t)=>{if(!h.div){let e=Il(h.element,"class"),i=h.css,s=Dl("div",e?{className:e}:void 0,ee(Pt({position:"absolute",left:`${h.translateX||0}px`,top:`${h.translateY||0}px`},h.styles),{display:h.display,opacity:h.opacity,visibility:h.visibility}),h.parentGroup?.div||t);h.classSetter=(o,r,n)=>{n.setAttribute("class",o),s.className=o},h.translateXSetter=h.translateYSetter=(o,r)=>{h[r]=o,s.style[r==="translateX"?"left":"top"]=`${o}px`,h.doTransform=!0},h.opacitySetter=h.visibilitySetter=Xr,h.css=o=>(i.call(h,o),o.cursor&&(s.style.cursor=o.cursor),o.pointerEvents&&(s.style.pointerEvents=o.pointerEvents),h),h.on=function(){return Dt.prototype.on.apply({element:s,onEvents:h.onEvents},arguments),h},h.div=s}return h.div};class Se extends Dt{static compose(t){Rl(Ll,this.compose)&&(t.prototype.html=function(e,i,s){return new Se(this,"span").attr({text:e,x:Math.round(i),y:Math.round(s)})})}constructor(t,e){super(t,e),Se.useForeignObject?this.foreignObject=t.createElement("foreignObject").attr({zIndex:2}):this.css(Pt({position:"absolute"},t.styledMode?{}:{fontFamily:t.style.fontFamily,fontSize:t.style.fontSize})),this.element.style.whiteSpace="nowrap"}getSpanCorrection(t,e,i){this.xCorr=-t*i,this.yCorr=-e}css(t){let e,{element:i}=this,s=i.tagName==="SPAN"&&t&&"width"in t,o=s&&t.width;return s&&(delete t.width,this.textWidth=Nl(o)||void 0,e=!0),t?.textOverflow==="ellipsis"&&(t.overflow="hidden",t.whiteSpace="nowrap"),t?.lineClamp&&(t.display="-webkit-box",t.WebkitLineClamp=t.lineClamp,t.WebkitBoxOrient="vertical",t.overflow="hidden"),Pi(Number(t?.fontSize))&&(t.fontSize+="px"),Bl(this.styles,t),jt(i,t),e&&this.updateTransform(),this}htmlGetBBox(){let{element:t}=this;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}updateTransform(){if(!this.added){this.alignOnAdd=!0;return}let{element:t,foreignObject:e,oldTextWidth:i,renderer:s,rotation:o,rotationOriginX:r,rotationOriginY:n,scaleX:a,scaleY:l,styles:{display:c="inline-block",whiteSpace:d},textAlign:p="left",textWidth:g,translateX:u=0,translateY:m=0,x=0,y:f=0}=this;if(e||jt(t,{marginLeft:`${u}px`,marginTop:`${m}px`}),t.tagName==="SPAN"){let y,b=[o,p,t.innerHTML,g,this.textAlign].join(","),v=-(this.parentGroup?.padding*1)||0;if(g!==i){let w=this.textPxLength?this.textPxLength:(jt(t,{width:"",whiteSpace:d||"nowrap"}),t.offsetWidth),C=g||0,T=t.style.textOverflow===""&&t.style.webkitLineClamp;(C>i||w>C||T)&&(/[\-\s\u00AD]/.test(t.textContent||t.innerText)||t.style.textOverflow==="ellipsis")&&(jt(t,{width:(o||a||w>C||T)&&Pi(g)?g+"px":"auto",display:c,whiteSpace:d||"normal"}),this.oldTextWidth=g)}e&&(jt(t,{display:"inline-block",verticalAlign:"top"}),e.attr({width:s.width,height:s.height})),b!==this.cTT&&(y=s.fontMetrics(t).b,Hr(o)&&!e&&(o!==(this.oldRotation||0)||p!==this.oldAlign)&&jt(t,{transform:`rotate(${o}deg)`,transformOrigin:`${v}% ${v}px`}),this.getSpanCorrection(!Hr(o)&&!this.textWidth&&this.textPxLength||t.offsetWidth,y,zl(p)));let{xCorr:S=0,yCorr:M=0}=this,k={left:`${x+S}px`,top:`${f+M}px`,textAlign:p,transformOrigin:`${(r??x)-S-x-v}px ${(n??f)-M-f-v}px`};(a||l)&&(k.transform=`scale(${a??1},${l??1})`),e?(super.updateTransform(),Pi(x)&&Pi(f)?(e.attr({x:x+S,y:f+M,width:t.offsetWidth+3,height:t.offsetHeight,"transform-origin":t.getAttribute("transform-origin")||"0 0"}),jt(t,{display:c,textAlign:p})):El&&e.attr({width:0,height:0})):jt(t,k),this.cTT=b,this.oldRotation=o,this.oldAlign=p}}add(t){let{foreignObject:e,renderer:i}=this,s=i.box.parentNode,o=[];if(e)e.add(t),super.add(i.createElement("body").attr({xmlns:"http://www.w3.org/1999/xhtml"}).css({background:"transparent",margin:"0 3px 0 0"}).add(e));else{let r;if(this.parentGroup=t,t&&!(r=t.div)){let n=t;for(;n;)o.push(n),n=n.parentGroup;for(let a of o.reverse())r=Wl(a,s)}(r||s).appendChild(this.element)}return this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(t){t!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,J.setElementHTML(this.element,t??""),this.textStr=t,this.doTransform=!0)}alignSetter(t){this.alignValue=this.textAlign=t,this.doTransform=!0}xSetter(t,e){this[e]=t,this.doTransform=!0}}let he=Se.prototype;he.visibilitySetter=he.opacitySetter=Xr,he.ySetter=he.rotationSetter=he.rotationOriginXSetter=he.rotationOriginYSetter=he.xSetter,function(h){h.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"},h.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){let{numberFormatter:t}=this.axis.chart;return t(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0}}(Ft||(Ft={}));let Hl=Ft,{addEvent:Xl,isFunction:Fl,objectEach:Gl,removeEvent:jl}=z;(De||(De={})).registerEventOptions=function(h,t){h.eventOptions=h.eventOptions||{},Gl(t.events,function(e,i){h.eventOptions[i]!==e&&(h.eventOptions[i]&&(jl(h,i,h.eventOptions[i]),delete h.eventOptions[i]),Fl(e)&&(h.eventOptions[i]=e,Xl(h,i,e,{order:0})))})};let Ai=De,{deg2rad:$s}=A,{clamp:Yl,correctFloat:Oi,defined:Zs,destroyObjectProperties:_l,extend:Fr,fireEvent:_e,getAlignFactor:Ul,isNumber:Li,merge:Vl,objectEach:$l,pick:Bt}=z,Ce=class{constructor(h,t,e,i,s){this.isNew=!0,this.isNewLabel=!0,this.axis=h,this.pos=t,this.type=e||"",this.parameters=s||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,_e(this,"init"),e||i||this.addLabel()}addLabel(){let h=this,t=h.axis,e=t.options,i=t.chart,s=t.categories,o=t.logarithmic,r=t.names,n=h.pos,a=Bt(h.options?.labels,e.labels),l=t.tickPositions,c=n===l[0],d=n===l[l.length-1],p=(!a.step||a.step===1)&&t.tickInterval===1,g=l.info,u=h.label,m,x,f,y=this.parameters.category||(s?Bt(s[n],r[n],n):n);o&&Li(y)&&(y=Oi(o.lin2log(y))),t.dateTime&&(g?m=(x=i.time.resolveDTLFormat(e.dateTimeLabelFormats[!e.grid&&g.higherRanks[n]||g.unitName])).main:Li(y)&&(m=t.dateTime.getXDateFormat(y,e.dateTimeLabelFormats||{}))),h.isFirst=c,h.isLast=d;let b={axis:t,chart:i,dateTimeLabelFormat:m,isFirst:c,isLast:d,pos:n,tick:h,tickPositionInfo:g,value:y};_e(this,"labelFormat",b);let v=k=>a.formatter?a.formatter.call(k,k):a.format?(k.text=t.defaultLabelFormatter.call(k),wt.format(a.format,k,i)):t.defaultLabelFormatter.call(k),S=v.call(b,b),M=x?.list;M?h.shortenLabel=function(){for(f=0;f<M.length;f++)if(Fr(b,{dateTimeLabelFormat:M[f]}),u.attr({text:v.call(b,b)}),u.getBBox().width<t.getSlotWidth(h)-2*(a.padding||0))return;u.attr({text:""})}:h.shortenLabel=void 0,p&&t._addedPlotLB&&h.moveLabel(S,a),Zs(u)||h.movedLabel?u&&u.textStr!==S&&!p&&(!u.textWidth||a.style.width||u.styles.width||u.css({width:null}),u.attr({text:S}),u.textPxLength=u.getBBox().width):(h.label=u=h.createLabel(S,a),h.rotation=0)}createLabel(h,t,e){let i=this.axis,{renderer:s,styledMode:o}=i.chart,r=t.style.whiteSpace,n=Zs(h)&&t.enabled?s.text(h,e?.x,e?.y,t.useHTML).add(i.labelGroup):void 0;return n&&(o||n.css(Vl(t.style)),n.textPxLength=n.getBBox().width,!o&&r&&n.css({whiteSpace:r})),n}destroy(){_l(this,this.axis)}getPosition(h,t,e,i){let s=this.axis,o=s.chart,r=i&&o.oldChartHeight||o.chartHeight,n={x:h?Oi(s.translate(t+e,void 0,void 0,i)+s.transB):s.left+s.offset+(s.opposite?(i&&o.oldChartWidth||o.chartWidth)-s.right-s.left:0),y:h?r-s.bottom+s.offset-(s.opposite?s.height:0):Oi(r-s.translate(t+e,void 0,void 0,i)-s.transB)};return n.y=Yl(n.y,-1e9,1e9),_e(this,"afterGetPosition",{pos:n}),n}getLabelPosition(h,t,e,i,s,o,r,n){let a,l,c=this.axis,d=c.transA,p=c.isLinked&&c.linkedParent?c.linkedParent.reversed:c.reversed,g=c.staggerLines,u=c.tickRotCorr||{x:0,y:0},m=i||c.reserveSpaceDefault?0:-c.labelOffset*(c.labelAlign==="center"?.5:1),x=s.distance,f={};return a=c.side===0?e.rotation?-x:-e.getBBox().height:c.side===2?u.y+x:Math.cos(e.rotation*$s)*(u.y-e.getBBox(!1,0).height/2),Zs(s.y)&&(a=c.side===0&&c.horiz?s.y+a:s.y),h=h+Bt(s.x,[0,1,0,-1][c.side]*x)+m+u.x-(o&&i?o*d*(p?-1:1):0),t=t+a-(o&&!i?o*d*(p?1:-1):0),g&&(l=r/(n||1)%g,c.opposite&&(l=g-l-1),t+=l*(c.labelOffset/g)),f.x=h,f.y=Math.round(t),_e(this,"afterGetLabelPosition",{pos:f,tickmarkOffset:o,index:r}),f}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(h,t,e,i,s=!1,o){return o.crispLine([["M",h,t],["L",h+(s?0:-e),t+(s?e:0)]],i)}handleOverflow(h){let t=this.axis,e=t.options.labels,i=h.x,s=t.chart.chartWidth,o=t.chart.spacing,r=Bt(t.labelLeft,Math.min(t.pos,o[3])),n=Bt(t.labelRight,Math.max(t.isRadial?0:t.pos+t.len,s-o[1])),a=this.label,l=this.rotation,c=Ul(t.labelAlign||a.attr("align")),d=a.getBBox().width,p=t.getSlotWidth(this),g=p,u=1,m;l||e.overflow!=="justify"?l<0&&i-c*d<r?m=Math.round(i/Math.cos(l*$s)-r):l>0&&i+c*d>n&&(m=Math.round((s-i)/Math.cos(l*$s))):(i-c*d<r?g=h.x+g*(1-c)-r:i+(1-c)*d>n&&(g=n-h.x+g*c,u=-1),(g=Math.min(p,g))<p&&t.labelAlign==="center"&&(h.x+=u*(p-g-c*(p-Math.min(d,g)))),(d>g||t.autoRotation&&a?.styles?.width)&&(m=g)),m&&a&&(this.shortenLabel?this.shortenLabel():a.css(Fr({},{width:Math.floor(m)+"px",lineClamp:+!t.isRadial})))}moveLabel(h,t){let e=this,i=e.label,s=e.axis,o=!1,r;i&&i.textStr===h?(e.movedLabel=i,o=!0,delete e.label):$l(s.ticks,function(n){o||n.isNew||n===e||!n.label||n.label.textStr!==h||(e.movedLabel=n.label,o=!0,n.labelPos=e.movedLabel.xy,delete n.label)}),!o&&(e.labelPos||i)&&(r=e.labelPos||i.xy,e.movedLabel=e.createLabel(h,t,r),e.movedLabel&&e.movedLabel.attr({opacity:0}))}render(h,t,e){let i=this.axis,s=i.horiz,o=this.pos,r=Bt(this.tickmarkOffset,i.tickmarkOffset),n=this.getPosition(s,o,r,t),a=n.x,l=n.y,c=i.pos,d=c+i.len,p=s?a:l,g=Bt(e,this.label?.newOpacity,1);!i.chart.polar&&(Oi(p)<c||p>d)&&(e=0),e??(e=1),this.isActive=!0,this.renderGridLine(t,e),this.renderMark(n,e),this.renderLabel(n,t,g,h),this.isNew=!1,_e(this,"afterRender")}renderGridLine(h,t){let e=this.axis,i=e.options,s={},o=this.pos,r=this.type,n=Bt(this.tickmarkOffset,e.tickmarkOffset),a=e.chart.renderer,l=this.gridLine,c,d=i.gridLineWidth,p=i.gridLineColor,g=i.gridLineDashStyle;this.type==="minor"&&(d=i.minorGridLineWidth,p=i.minorGridLineColor,g=i.minorGridLineDashStyle),l||(e.chart.styledMode||(s.stroke=p,s["stroke-width"]=d||0,s.dashstyle=g),r||(s.zIndex=1),h&&(t=0),this.gridLine=l=a.path().attr(s).addClass("highcharts-"+(r?r+"-":"")+"grid-line").add(e.gridGroup)),l&&(c=e.getPlotLinePath({value:o+n,lineWidth:l.strokeWidth(),force:"pass",old:h,acrossPanes:!1}))&&l[h||this.isNew?"attr":"animate"]({d:c,opacity:t})}renderMark(h,t){let e=this.axis,i=e.options,s=e.chart.renderer,o=this.type,r=e.tickSize(o?o+"Tick":"tick"),n=h.x,a=h.y,l=Bt(i[o!=="minor"?"tickWidth":"minorTickWidth"],!o&&e.isXAxis?1:0),c=i[o!=="minor"?"tickColor":"minorTickColor"],d=this.mark,p=!d;r&&(e.opposite&&(r[0]=-r[0]),d||(this.mark=d=s.path().addClass("highcharts-"+(o?o+"-":"")+"tick").add(e.axisGroup),e.chart.styledMode||d.attr({stroke:c,"stroke-width":l})),d[p?"attr":"animate"]({d:this.getMarkPath(n,a,r[0],d.strokeWidth(),e.horiz,s),opacity:t}))}renderLabel(h,t,e,i){let s=this.axis,o=s.horiz,r=s.options,n=this.label,a=r.labels,l=a.step,c=Bt(this.tickmarkOffset,s.tickmarkOffset),d=h.x,p=h.y,g=!0;n&&Li(d)&&(n.xy=h=this.getLabelPosition(d,p,n,o,a,c,i,l),(!this.isFirst||this.isLast||r.showFirstLabel)&&(!this.isLast||this.isFirst||r.showLastLabel)?!o||a.step||a.rotation||t||e===0||this.handleOverflow(h):g=!1,l&&i%l&&(g=!1),g&&Li(h.y)?(h.opacity=e,n[this.isNewLabel?"attr":"animate"](h).show(!0),this.isNewLabel=!1):(n.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let h=this.label,t=this.axis;h&&!this.isNew&&(h.animate({opacity:0},void 0,h.destroy),delete this.label),t.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}},{animObject:Zl}=pt,{xAxis:Gr,yAxis:ql}=Hl,{defaultOptions:qs}=Mt,{registerEventOptions:Kl}=Ai,{deg2rad:Jl}=A,{arrayMax:jr,arrayMin:Ql,clamp:Ks,correctFloat:vt,defined:Z,destroyObjectProperties:td,erase:Yr,error:Js,extend:Ei,fireEvent:et,getClosestDistance:_r,insertItem:ed,isArray:Ur,isNumber:N,isString:Vr,merge:Ii,normalizeTickInterval:id,objectEach:Di,pick:F,relativeLength:Bi,removeEvent:sd,splat:od,syncTimeout:rd}=z,$r=(h,t)=>id(t,void 0,void 0,F(h.options.allowDecimals,t<.5||h.tickAmount!==void 0),!!h.tickAmount);Ei(qs,{xAxis:Gr,yAxis:Ii(Gr,ql)});let Qs=(()=>{class h{constructor(e,i,s){this.init(e,i,s)}init(e,i,s=this.coll){let o=s==="xAxis",r=this.isZAxis||(e.inverted?!o:o);this.chart=e,this.horiz=r,this.isXAxis=o,this.coll=s,et(this,"init",{userOptions:i}),this.opposite=F(i.opposite,this.opposite),this.side=F(i.side,this.side,r?2*!this.opposite:this.opposite?1:3),this.setOptions(i);let n=this.options,a=n.labels;this.type??(this.type=n.type||"linear"),this.uniqueNames??(this.uniqueNames=n.uniqueNames??!0),et(this,"afterSetType"),this.userOptions=i,this.minPixelPadding=0,this.reversed=F(n.reversed,this.reversed),this.visible=n.visible,this.zoomEnabled=n.zoomEnabled,this.hasNames=this.type==="category"||n.categories===!0,this.categories=Ur(n.categories)&&n.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=Z(n.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=n.minRange||n.maxZoom,this.range=n.range,this.offset=n.offset||0,this.max=void 0,this.min=void 0;let l=F(n.crosshair,od(e.options.tooltip.crosshairs)[+!o]);this.crosshair=l===!0?{}:l,e.axes.indexOf(this)===-1&&(o?e.axes.splice(e.xAxis.length,0,this):e.axes.push(this),ed(this,e[this.coll])),e.orderItems(this.coll),this.series=this.series||[],e.inverted&&!this.isZAxis&&o&&!Z(this.reversed)&&(this.reversed=!0),this.labelRotation=N(a.rotation)?a.rotation:void 0,Kl(this,n),et(this,"afterInit")}setOptions(e){let i=this.horiz?{labels:{autoRotation:[-45],padding:3},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=Ii(i,this.coll==="yAxis"?{title:{text:this.chart.options.lang.yAxisTitle}}:{},qs[this.coll],e),et(this,"afterSetOptions",{userOptions:e})}defaultLabelFormatter(){let e=this.axis,{numberFormatter:i}=this.chart,s=N(this.value)?this.value:NaN,o=e.chart.time,r=e.categories,n=this.dateTimeLabelFormat,a=qs.lang,l=a.numericSymbols,c=a.numericSymbolMagnitude||1e3,d=e.logarithmic?Math.abs(s):e.tickInterval,p=l?.length,g,u;if(r)u=`${this.value}`;else if(n)u=o.dateFormat(n,s,!0);else if(p&&l&&d>=1e3)for(;p--&&u===void 0;)d>=(g=Math.pow(c,p+1))&&10*s%g==0&&l[p]!==null&&s!==0&&(u=i(s/g,-1)+l[p]);return u===void 0&&(u=Math.abs(s)>=1e4?i(s,-1):i(s,-1,void 0,"")),u}getSeriesExtremes(){let e,i=this;et(this,"getSeriesExtremes",null,function(){i.hasVisibleSeries=!1,i.dataMin=i.dataMax=i.threshold=void 0,i.softThreshold=!i.isXAxis,i.series.forEach(s=>{if(s.reserveSpace()){let o=s.options,r,n=o.threshold,a,l;if(i.hasVisibleSeries=!0,i.positiveValuesOnly&&0>=(n||0)&&(n=void 0),i.isXAxis)(r=s.getColumn("x")).length&&(r=i.logarithmic?r.filter(c=>c>0):r,a=(e=s.getXExtremes(r)).min,l=e.max,N(a)||a instanceof Date||(r=r.filter(N),a=(e=s.getXExtremes(r)).min,l=e.max),r.length&&(i.dataMin=Math.min(F(i.dataMin,a),a),i.dataMax=Math.max(F(i.dataMax,l),l)));else{let c=s.applyExtremes();N(c.dataMin)&&(a=c.dataMin,i.dataMin=Math.min(F(i.dataMin,a),a)),N(c.dataMax)&&(l=c.dataMax,i.dataMax=Math.max(F(i.dataMax,l),l)),Z(n)&&(i.threshold=n),(!o.softThreshold||i.positiveValuesOnly)&&(i.softThreshold=!1)}}})}),et(this,"afterGetSeriesExtremes")}translate(e,i,s,o,r,n){let a=this.linkedParent||this,l=o&&a.old?a.old.min:a.min;if(!N(l))return NaN;let c=a.minPixelPadding,d=(a.isOrdinal||a.brokenAxis?.hasBreaks||a.logarithmic&&r)&&a.lin2val,p=1,g=0,u=o&&a.old?a.old.transA:a.transA,m=0;return u||(u=a.transA),s&&(p*=-1,g=a.len),a.reversed&&(p*=-1,g-=p*(a.sector||a.len)),i?(m=(e=e*p+g-c)/u+l,d&&(m=a.lin2val(m))):(d&&(e=a.val2lin(e)),m=p*(e-l)*u+g+p*c+(N(n)?u*n:0),a.isRadial||(m=vt(m))),m}toPixels(e,i){return this.translate(this.chart?.time.parse(e)??NaN,!1,!this.horiz,void 0,!0)+(i?0:this.pos)}toValue(e,i){return this.translate(e-(i?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(e){let i=this,s=i.chart,o=i.left,r=i.top,n=e.old,a=e.value,l=e.lineWidth,c=n&&s.oldChartHeight||s.chartHeight,d=n&&s.oldChartWidth||s.chartWidth,p=i.transB,g=e.translatedValue,u=e.force,m,x,f,y,b;function v(M,k,w){return u!=="pass"&&(M<k||M>w)&&(u?M=Ks(M,k,w):b=!0),M}let S={value:a,lineWidth:l,old:n,force:u,acrossPanes:e.acrossPanes,translatedValue:g};return et(this,"getPlotLinePath",S,function(M){m=f=(g=Ks(g=F(g,i.translate(a,void 0,void 0,n)),-1e9,1e9))+p,x=y=c-g-p,N(g)?i.horiz?(x=r,y=c-i.bottom+(i.options.isInternal?0:s.scrollablePixelsY||0),m=f=v(m,o,o+i.width)):(m=o,f=d-i.right+(s.scrollablePixelsX||0),x=y=v(x,r,r+i.height)):(b=!0,u=!1),M.path=b&&!u?void 0:s.renderer.crispLine([["M",m,x],["L",f,y]],l||1)}),S.path}getLinearTickPositions(e,i,s){let o,r,n,a=vt(Math.floor(i/e)*e),l=vt(Math.ceil(s/e)*e),c=[];if(vt(a+e)===a&&(n=20),this.single)return[i];for(o=a;o<=l&&(c.push(o),(o=vt(o+e,n))!==r);)r=o;return c}getMinorTickInterval(){let{minorTicks:e,minorTickInterval:i}=this.options;return e===!0?F(i,"auto"):e!==!1?i:void 0}getMinorTickPositions(){let e=this.options,i=this.tickPositions,s=this.minorTickInterval,o=this.pointRangePadding||0,r=(this.min||0)-o,n=(this.max||0)+o,a=this.brokenAxis?.hasBreaks?this.brokenAxis.unitLength:n-r,l=[],c;if(a&&a/s<this.len/3){let d=this.logarithmic;if(d)this.paddedTicks.forEach(function(p,g,u){g&&l.push.apply(l,d.getLogTickPositions(s,u[g-1],u[g],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")l=l.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(s),r,n,e.startOfWeek));else for(c=r+(i[0]-r)%s;c<=n&&c!==l[0];c+=s)l.push(c)}return l.length!==0&&this.trimTicks(l),l}adjustForMinRange(){let e=this.options,i=this.logarithmic,s=this.chart.time,{max:o,min:r,minRange:n}=this,a,l,c,d;this.isXAxis&&n===void 0&&!i&&(n=Z(e.min)||Z(e.max)||Z(e.floor)||Z(e.ceiling)?null:Math.min(5*(_r(this.series.map(p=>{let g=p.getColumn("x");return p.xIncrement?g.slice(0,2):g}))||0),this.dataMax-this.dataMin)),N(o)&&N(r)&&N(n)&&o-r<n&&(l=this.dataMax-this.dataMin>=n,a=(n-o+r)/2,c=[r-a,s.parse(e.min)??r-a],l&&(c[2]=i?i.log2lin(this.dataMin):this.dataMin),d=[(r=jr(c))+n,s.parse(e.max)??r+n],l&&(d[2]=i?i.log2lin(this.dataMax):this.dataMax),(o=Ql(d))-r<n&&(c[0]=o-n,c[1]=s.parse(e.min)??o-n,r=jr(c))),this.minRange=n,this.min=r,this.max=o}getClosest(){let e,i;if(this.categories)i=1;else{let s=[];this.series.forEach(function(o){let r=o.closestPointRange,n=o.getColumn("x");n.length===1?s.push(n[0]):o.sorted&&Z(r)&&o.reserveSpace()&&(i=Z(i)?Math.min(i,r):r)}),s.length&&(s.sort((o,r)=>o-r),e=_r([s]))}return e&&i?Math.min(e,i):e||i}nameToX(e){let i=Ur(this.options.categories),s=i?this.categories:this.names,o=e.options.x,r;return e.series.requireSorting=!1,Z(o)||(o=this.uniqueNames&&s?i?s.indexOf(e.name):F(s.keys[e.name],-1):e.series.autoIncrement()),o===-1?!i&&s&&(r=s.length):N(o)&&(r=o),r!==void 0?(this.names[r]=e.name,this.names.keys[e.name]=r):e.x&&(r=e.x),r}updateNames(){let e=this,i=this.names;i.length>0&&(Object.keys(i.keys).forEach(function(s){delete i.keys[s]}),i.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(s=>{s.xIncrement=null,(!s.points||s.isDirtyData)&&(e.max=Math.max(e.max||0,s.dataTable.rowCount-1),s.processData(),s.generatePoints());let o=s.getColumn("x").slice();s.data.forEach((r,n)=>{let a=o[n];r?.options&&r.name!==void 0&&(a=e.nameToX(r))!==void 0&&a!==r.x&&(o[n]=r.x=a)}),s.dataTable.setColumn("x",o)}))}setAxisTranslation(){let e=this,i=e.max-e.min,s=e.linkedParent,o=!!e.categories,r=e.isXAxis,n=e.axisPointRange||0,a,l=0,c=0,d,p=e.transA;(r||o||n)&&(a=e.getClosest(),s?(l=s.minPointOffset,c=s.pointRangePadding):e.series.forEach(function(g){let u=o?1:r?F(g.options.pointRange,a,0):e.axisPointRange||0,m=g.options.pointPlacement;if(n=Math.max(n,u),!e.single||o){let x=g.is("xrange")?!r:r;l=Math.max(l,x&&Vr(m)?0:u/2),c=Math.max(c,x&&m==="on"?0:u)}}),d=e.ordinal?.slope&&a?e.ordinal.slope/a:1,e.minPointOffset=l*=d,e.pointRangePadding=c*=d,e.pointRange=Math.min(n,e.single&&o?1:i),r&&(e.closestPointRange=a)),e.translationSlope=e.transA=p=e.staticScale||e.len/(i+c||1),e.transB=e.horiz?e.left:e.bottom,e.minPixelPadding=p*l,et(this,"afterSetAxisTranslation")}minFromRange(){let{max:e,min:i}=this;return N(e)&&N(i)&&e-i||void 0}setTickInterval(e){let{categories:i,chart:s,dataMax:o,dataMin:r,dateTime:n,isXAxis:a,logarithmic:l,options:c,softThreshold:d}=this,p=s.time,g=N(this.threshold)?this.threshold:void 0,u=this.minRange||0,{ceiling:m,floor:x,linkedTo:f,softMax:y,softMin:b}=c,v=N(f)&&s[this.coll]?.[f],S=c.tickPixelInterval,M=c.maxPadding,k=c.minPadding,w=0,C,T=N(c.tickInterval)&&c.tickInterval>=0?c.tickInterval:void 0,P,O,L,I;if(n||i||v||this.getTickAmount(),L=F(this.userMin,p.parse(c.min)),I=F(this.userMax,p.parse(c.max)),v?(this.linkedParent=v,C=v.getExtremes(),this.min=F(C.min,C.dataMin),this.max=F(C.max,C.dataMax),this.type!==v.type&&Js(11,!0,s)):(d&&Z(g)&&N(o)&&N(r)&&(r>=g?(P=g,k=0):o<=g&&(O=g,M=0)),this.min=F(L,P,r),this.max=F(I,O,o)),N(this.max)&&N(this.min)&&(l&&(this.positiveValuesOnly&&!e&&0>=Math.min(this.min,F(r,this.min))&&Js(10,!0,s),this.min=vt(l.log2lin(this.min),16),this.max=vt(l.log2lin(this.max),16)),this.range&&N(r)&&(this.userMin=this.min=L=Math.max(r,this.minFromRange()||0),this.userMax=I=this.max,this.range=void 0)),et(this,"foundExtremes"),this.adjustForMinRange(),N(this.min)&&N(this.max)){if(!N(this.userMin)&&N(b)&&b<this.min&&(this.min=L=b),!N(this.userMax)&&N(y)&&y>this.max&&(this.max=I=y),i||this.axisPointRange||this.stacking?.usePercentage||v||!(w=this.max-this.min)||(!Z(L)&&k&&(this.min-=w*k),Z(I)||!M||(this.max+=w*M)),!N(this.userMin)&&N(x)&&(this.min=Math.max(this.min,x)),!N(this.userMax)&&N(m)&&(this.max=Math.min(this.max,m)),d&&N(r)&&N(o)){let E=g||0;!Z(L)&&this.min<E&&r>=E?this.min=c.minRange?Math.min(E,this.max-u):E:!Z(I)&&this.max>E&&o<=E&&(this.max=c.minRange?Math.max(E,this.min+u):E)}!s.polar&&this.min>this.max&&(Z(c.min)?this.max=this.min:Z(c.max)&&(this.min=this.max)),w=this.max-this.min}if(this.min!==this.max&&N(this.min)&&N(this.max)?v&&!T&&S===v.options.tickPixelInterval?this.tickInterval=T=v.tickInterval:this.tickInterval=F(T,this.tickAmount?w/Math.max(this.tickAmount-1,1):void 0,i?1:w*S/Math.max(this.len,S)):this.tickInterval=1,a&&!e){let E=this.min!==this.old?.min||this.max!==this.old?.max;this.series.forEach(function(B){B.forceCrop=B.forceCropping?.(),B.processData(E)}),et(this,"postProcessData",{hasExtremesChanged:E})}this.setAxisTranslation(),et(this,"initialAxisTranslation"),this.pointRange&&!T&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let D=F(c.minTickInterval,n&&!this.series.some(E=>!E.sorted)?this.closestPointRange:0);!T&&D&&this.tickInterval<D&&(this.tickInterval=D),n||l||T||(this.tickInterval=$r(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){let e=this.options,i=e.tickPositions,s=e.tickPositioner,o=this.getMinorTickInterval(),r=!this.isPanning,n=r&&e.startOnTick,a=r&&e.endOnTick,l=[],c;if(this.tickmarkOffset=this.categories&&e.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.single=this.min===this.max&&Z(this.min)&&!this.tickAmount&&(this.min%1==0||e.allowDecimals!==!1),i)l=i.slice();else if(N(this.min)&&N(this.max)){if(!this.ordinal?.positions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))l=[this.min,this.max],Js(19,!1,this.chart);else if(this.dateTime)l=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinal?.positions,this.closestPointRange,!0);else if(this.logarithmic)l=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let d=this.tickInterval,p=d;for(;p<=2*d&&(l=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&l.length>this.tickAmount);)this.tickInterval=$r(this,p*=1.1)}l.length>this.len&&(l=[l[0],l[l.length-1]])[0]===l[1]&&(l.length=1),s&&(this.tickPositions=l,(c=s.apply(this,[this.min,this.max]))&&(l=c))}this.tickPositions=l,this.minorTickInterval=o==="auto"&&this.tickInterval?this.tickInterval/e.minorTicksPerMajor:o,this.paddedTicks=l.slice(0),this.trimTicks(l,n,a),!this.isLinked&&N(this.min)&&N(this.max)&&(this.single&&l.length<2&&!this.categories&&!this.series.some(d=>d.is("heatmap")&&d.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),i||c||this.adjustTickAmount()),et(this,"afterSetTickPositions")}trimTicks(e,i,s){let o=e[0],r=e[e.length-1],n=!this.isOrdinal&&this.minPointOffset||0;if(et(this,"trimTicks"),!this.isLinked||!this.grid){if(i&&o!==-1/0)this.min=o;else for(;this.min-n>e[0];)e.shift();if(s)this.max=r;else for(;this.max+n<e[e.length-1];)e.pop();e.length===0&&Z(o)&&!this.options.tickPositions&&e.push((r+o)/2)}}alignToOthers(){let e,i=this,s=i.chart,o=[this],r=i.options,n=s.options.chart,a=this.coll==="yAxis"&&n.alignThresholds,l=[];if(i.thresholdAlignment=void 0,(n.alignTicks!==!1&&r.alignTicks||a)&&r.startOnTick!==!1&&r.endOnTick!==!1&&!i.logarithmic){let c=p=>{let{horiz:g,options:u}=p;return[g?u.left:u.top,u.width,u.height,u.pane].join(",")},d=c(this);s[this.coll].forEach(function(p){let{series:g}=p;g.length&&g.some(u=>u.visible)&&p!==i&&c(p)===d&&(e=!0,o.push(p))})}if(e&&a){o.forEach(d=>{let p=d.getThresholdAlignment(i);N(p)&&l.push(p)});let c=l.length>1?l.reduce((d,p)=>d+=p,0)/l.length:void 0;o.forEach(d=>{d.thresholdAlignment=c})}return e}getThresholdAlignment(e){if((!N(this.dataMin)||this!==e&&this.series.some(i=>i.isDirty||i.isDirtyData))&&this.getSeriesExtremes(),N(this.threshold)){let i=Ks((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(i=1-i),i}}getTickAmount(){let e=this.options,i=e.tickPixelInterval,s=e.tickAmount;Z(e.tickInterval)||s||!(this.len<i)||this.isRadial||this.logarithmic||!e.startOnTick||!e.endOnTick||(s=2),!s&&this.alignToOthers()&&(s=Math.ceil(this.len/i)+1),s<4&&(this.finalTickAmt=s,s=5),this.tickAmount=s}adjustTickAmount(){let e=this,{finalTickAmt:i,max:s,min:o,options:r,tickPositions:n,tickAmount:a,thresholdAlignment:l}=e,c=n?.length,d=F(e.threshold,e.softThreshold?0:null),p,g,u=e.tickInterval,m,x=()=>n.push(vt(n[n.length-1]+u)),f=()=>n.unshift(vt(n[0]-u));if(N(l)&&(m=l<.5?Math.ceil(l*(a-1)):Math.floor(l*(a-1)),r.reversed&&(m=a-1-m)),e.hasData()&&N(o)&&N(s)){let y=()=>{e.transA*=(c-1)/(a-1),e.min=r.startOnTick?n[0]:Math.min(o,n[0]),e.max=r.endOnTick?n[n.length-1]:Math.max(s,n[n.length-1])};if(N(m)&&N(e.threshold)){for(;n[m]!==d||n.length!==a||n[0]>o||n[n.length-1]<s;){for(n.length=0,n.push(e.threshold);n.length<a;)n[m]===void 0||n[m]>e.threshold?f():x();if(u>8*e.tickInterval)break;u*=2}y()}else if(c<a){for(;n.length<a;)n.length%2||o===d?x():f();y()}if(Z(i)){for(g=p=n.length;g--;)(i===3&&g%2==1||i<=2&&g>0&&g<p-1)&&n.splice(g,1);e.finalTickAmt=void 0}}}setScale(){let{coll:e,stacking:i}=this,s=!1,o=!1;this.series.forEach(n=>{s=s||n.isDirtyData||n.isDirty,o=o||n.xAxis?.isDirty||!1}),this.setAxisSize();let r=this.len!==this.old?.len;r||s||o||this.isLinked||this.forceRedraw||this.userMin!==this.old?.userMin||this.userMax!==this.old?.userMax||this.alignToOthers()?(i&&e==="yAxis"&&i.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),i&&e==="xAxis"&&i.buildStacks(),this.isDirty||(this.isDirty=r||this.min!==this.old?.min||this.max!==this.old?.max)):i&&i.cleanStacks(),s&&delete this.allExtremes,et(this,"afterSetScale")}setExtremes(e,i,s=!0,o,r){let n=this.chart;this.series.forEach(a=>{delete a.kdTree}),e=n.time.parse(e),i=n.time.parse(i),et(this,"setExtremes",r=Ei(r,{min:e,max:i}),a=>{this.userMin=a.min,this.userMax=a.max,this.eventArgs=a,s&&n.redraw(o)})}setAxisSize(){let e=this.chart,i=this.options,s=i.offsets||[0,0,0,0],o=this.horiz,r=this.width=Math.round(Bi(F(i.width,e.plotWidth-s[3]+s[1]),e.plotWidth)),n=this.height=Math.round(Bi(F(i.height,e.plotHeight-s[0]+s[2]),e.plotHeight)),a=this.top=Math.round(Bi(F(i.top,e.plotTop+s[0]),e.plotHeight,e.plotTop)),l=this.left=Math.round(Bi(F(i.left,e.plotLeft+s[3]),e.plotWidth,e.plotLeft));this.bottom=e.chartHeight-n-a,this.right=e.chartWidth-r-l,this.len=Math.max(o?r:n,0),this.pos=o?l:a}getExtremes(){let e=this.logarithmic;return{min:e?vt(e.lin2log(this.min)):this.min,max:e?vt(e.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(e){let i=this.logarithmic,s=i?i.lin2log(this.min):this.min,o=i?i.lin2log(this.max):this.max;return e===null||e===-1/0?e=s:e===1/0?e=o:s>e?e=s:o<e&&(e=o),this.translate(e,0,1,0,1)}autoLabelAlign(e){let i=(F(e,0)-90*this.side+720)%360,s={align:"center"};return et(this,"autoLabelAlign",s,function(o){i>15&&i<165?o.align="right":i>195&&i<345&&(o.align="left")}),s.align}tickSize(e){let i=this.options,s=F(i[e==="tick"?"tickWidth":"minorTickWidth"],e==="tick"&&this.isXAxis&&!this.categories?1:0),o=i[e==="tick"?"tickLength":"minorTickLength"],r;s&&o&&(i[e+"Position"]==="inside"&&(o=-o),r=[o,s]);let n={tickSize:r};return et(this,"afterTickSize",n),n.tickSize}labelMetrics(){let e=this.chart.renderer,i=this.ticks,s=i[Object.keys(i)[0]]||{};return this.chart.renderer.fontMetrics(s.label||s.movedLabel||e.box)}unsquish(){let e=this.options.labels,i=e.padding||0,s=this.horiz,o=this.tickInterval,r=this.len/((+!!this.categories+this.max-this.min)/o),n=e.rotation,a=vt(.8*this.labelMetrics().h),l=Math.max(this.max-this.min,0),c=function(m){let x=(m+2*i)/(r||1);return(x=x>1?Math.ceil(x):1)*o>l&&m!==1/0&&r!==1/0&&l&&(x=Math.ceil(l/o)),vt(x*o)},d=o,p,g=Number.MAX_VALUE,u;if(s){if(!e.staggerLines&&(N(n)?u=[n]:r<e.autoRotationLimit&&(u=e.autoRotation)),u){let m,x;for(let f of u)(f===n||f&&f>=-90&&f<=90)&&(x=(m=c(Math.abs(a/Math.sin(Jl*f))))+Math.abs(f/360))<g&&(g=x,p=f,d=m)}}else d=c(.75*a);return this.autoRotation=u,this.labelRotation=F(p,N(n)?n:0),e.step?o:d}getSlotWidth(e){let i=this.chart,s=this.horiz,o=this.options.labels,r=Math.max(this.tickPositions.length-+!this.categories,1),n=i.margin[3];if(e&&N(e.slotWidth))return e.slotWidth;if(s&&o.step<2&&!this.isRadial)return o.rotation?0:(this.staggerLines||1)*this.len/r;if(!s){let a=o.style.width;if(a!==void 0)return parseInt(String(a),10);if(n)return n-i.spacing[3]}return .33*i.chartWidth}renderUnsquish(){let e=this.chart,i=e.renderer,s=this.tickPositions,o=this.ticks,r=this.options.labels,n=r.style,a=this.horiz,l=this.getSlotWidth(),c=Math.max(1,Math.round(l-(a?2*(r.padding||0):r.distance||0))),d={},p=this.labelMetrics(),g=n.lineClamp,u,m=g??(Math.floor(this.len/(s.length*p.h))||1),x=0;Vr(r.rotation)||(d.rotation=r.rotation||0),s.forEach(function(f){let y=o[f];y.movedLabel&&y.replaceMovedLabel();let b=y.label?.textPxLength||0;b>x&&(x=b)}),this.maxLabelLength=x,this.autoRotation?x>c&&x>p.h?d.rotation=this.labelRotation:this.labelRotation=0:l&&(u=c),d.rotation&&(u=x>.5*e.chartHeight?.33*e.chartHeight:x,g||(m=1)),this.labelAlign=r.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(d.align=this.labelAlign),s.forEach(function(f){let y=o[f],b=y?.label,v=n.width,S={};b&&(b.attr(d),y.shortenLabel?y.shortenLabel():u&&!v&&n.whiteSpace!=="nowrap"&&(u<(b.textPxLength||0)||b.element.tagName==="SPAN")?b.css(Ei(S,{width:`${u}px`,lineClamp:m})):!b.styles.width||S.width||v||b.css({width:"auto"}),y.rotation=d.rotation)},this),this.tickRotCorr=i.rotCorr(p.b,this.labelRotation||0,this.side!==0)}hasData(){return this.series.some(function(e){return e.hasData()})||this.options.showEmpty&&Z(this.min)&&Z(this.max)}addTitle(e){let i,s=this.chart.renderer,o=this.horiz,r=this.opposite,n=this.options.title,a=this.chart.styledMode;this.axisTitle||((i=n.textAlign)||(i=(o?{low:"left",middle:"center",high:"right"}:{low:r?"right":"left",middle:"center",high:r?"left":"right"})[n.align]),this.axisTitle=s.text(n.text||"",0,0,n.useHTML).attr({zIndex:7,rotation:n.rotation||0,align:i}).addClass("highcharts-axis-title"),a||this.axisTitle.css(Ii(n.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),a||n.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[e?"show":"hide"](e)}generateTick(e){let i=this.ticks;i[e]?i[e].addLabel():i[e]=new Ce(this,e)}createGroups(){let{axisParent:e,chart:i,coll:s,options:o}=this,r=i.renderer,n=(a,l,c)=>r.g(a).attr({zIndex:c}).addClass(`highcharts-${s.toLowerCase()}${l} `+(this.isRadial?`highcharts-radial-axis${l} `:"")+(o.className||"")).add(e);this.axisGroup||(this.gridGroup=n("grid","-grid",o.gridZIndex),this.axisGroup=n("axis","",o.zIndex),this.labelGroup=n("axis-labels","-labels",o.labels.zIndex))}getOffset(){let e=this,{chart:i,horiz:s,options:o,side:r,ticks:n,tickPositions:a,coll:l}=e,c=i.inverted&&!e.isZAxis?[1,0,3,2][r]:r,d=e.hasData(),p=o.title,g=o.labels,u=N(o.crossing),m=i.axisOffset,x=i.clipOffset,f=[-1,1,1,-1][r],y,b=0,v,S=0,M=0,k,w;if(e.showAxis=y=d||o.showEmpty,e.staggerLines=e.horiz&&g.staggerLines||void 0,e.createGroups(),d||e.isLinked?(a.forEach(function(C){e.generateTick(C)}),e.renderUnsquish(),e.reserveSpaceDefault=r===0||r===2||{1:"left",3:"right"}[r]===e.labelAlign,F(g.reserveSpace,!u&&null,e.labelAlign==="center"||null,e.reserveSpaceDefault)&&a.forEach(function(C){M=Math.max(n[C].getLabelSize(),M)}),e.staggerLines&&(M*=e.staggerLines),e.labelOffset=M*(e.opposite?-1:1)):Di(n,function(C,T){C.destroy(),delete n[T]}),p?.text&&p.enabled!==!1&&(e.addTitle(y),y&&!u&&p.reserveSpace!==!1&&(e.titleOffset=b=e.axisTitle.getBBox()[s?"height":"width"],S=Z(v=p.offset)?0:F(p.margin,s?5:10))),e.renderLine(),e.offset=f*F(o.offset,m[r]?m[r]+(o.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},w=r===0?-e.labelMetrics().h:r===2?e.tickRotCorr.y:0,k=Math.abs(M)+S,M&&(k-=w,k+=f*(s?F(g.y,e.tickRotCorr.y+f*g.distance):F(g.x,f*g.distance))),e.axisTitleMargin=F(v,k),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(n,a)),l!=="colorAxis"&&x){let C=this.tickSize("tick");m[r]=Math.max(m[r],(e.axisTitleMargin||0)+b+f*e.offset,k,a?.length&&C?C[0]+f*e.offset:0);let T=!e.axisLine||o.offset?0:e.axisLine.strokeWidth()/2;x[c]=Math.max(x[c],T)}et(this,"afterGetOffset")}getLinePath(e){let i=this.chart,s=this.opposite,o=this.offset,r=this.horiz,n=this.left+(s?this.width:0)+o,a=i.chartHeight-this.bottom-(s?this.height:0)+o;return s&&(e*=-1),i.renderer.crispLine([["M",r?this.left:n,r?a:this.top],["L",r?i.chartWidth-this.right:n,r?a:i.chartHeight-this.bottom]],e)}renderLine(){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}))}getTitlePosition(e){let i=this.horiz,s=this.left,o=this.top,r=this.len,n=this.options.title,a=i?s:o,l=this.opposite,c=this.offset,d=n.x,p=n.y,g=this.chart.renderer.fontMetrics(e),u=e?Math.max(e.getBBox(!1,0).height-g.h-1,0):0,m={low:a+(i?0:r),middle:a+r/2,high:a+(i?r:0)}[n.align],x=(i?o+this.height:s)+(i?1:-1)*(l?-1:1)*(this.axisTitleMargin||0)+[-u,u,g.f,-u][this.side],f={x:i?m+d:x+(l?this.width:0)+c+d,y:i?x+p-(l?this.height:0)+c:m+p};return et(this,"afterGetTitlePosition",{titlePosition:f}),f}renderMinorTick(e,i){let s=this.minorTicks;s[e]||(s[e]=new Ce(this,e,"minor")),i&&s[e].isNew&&s[e].render(null,!0),s[e].render(null,!1,1)}renderTick(e,i,s){let o=this.isLinked,r=this.ticks;(!o||e>=this.min&&e<=this.max||this.grid?.isColumn)&&(r[e]||(r[e]=new Ce(this,e)),s&&r[e].isNew&&r[e].render(i,!0,-1),r[e].render(i))}render(){let e,i,s=this,o=s.chart,r=s.logarithmic,n=o.renderer,a=s.options,l=s.isLinked,c=s.tickPositions,d=s.axisTitle,p=s.ticks,g=s.minorTicks,u=s.alternateBands,m=a.stackLabels,x=a.alternateGridColor,f=a.crossing,y=s.tickmarkOffset,b=s.axisLine,v=s.showAxis,S=Zl(n.globalAnimation);if(s.labelEdge.length=0,s.overlap=!1,[p,g,u].forEach(function(M){Di(M,function(k){k.isActive=!1})}),N(f)){let M=this.isXAxis?o.yAxis[0]:o.xAxis[0],k=[1,-1,-1,1][this.side];if(M){let w=M.toPixels(f,!0);s.horiz&&(w=M.len-w),s.offset=k*w}}if(s.hasData()||l){let M=s.chart.hasRendered&&s.old&&N(s.old.min);s.minorTickInterval&&!s.categories&&s.getMinorTickPositions().forEach(function(k){s.renderMinorTick(k,M)}),c.length&&(c.forEach(function(k,w){s.renderTick(k,w,M)}),y&&(s.min===0||s.single)&&(p[-1]||(p[-1]=new Ce(s,-1,null,!0)),p[-1].render(-1))),x&&c.forEach(function(k,w){i=c[w+1]!==void 0?c[w+1]+y:s.max-y,w%2==0&&k<s.max&&i<=s.max+(o.polar?-y:y)&&(u[k]||(u[k]=new A.PlotLineOrBand(s,{})),e=k+y,u[k].options={from:r?r.lin2log(e):e,to:r?r.lin2log(i):i,color:x,className:"highcharts-alternate-grid"},u[k].render(),u[k].isActive=!0)}),s._addedPlotLB||(s._addedPlotLB=!0,(a.plotLines||[]).concat(a.plotBands||[]).forEach(function(k){s.addPlotBandOrLine(k)}))}[p,g,u].forEach(function(M){let k=[],w=S.duration;Di(M,function(C,T){C.isActive||(C.render(T,!1,0),C.isActive=!1,k.push(T))}),rd(function(){let C=k.length;for(;C--;)M[k[C]]&&!M[k[C]].isActive&&(M[k[C]].destroy(),delete M[k[C]])},M!==u&&o.hasRendered&&w?w:0)}),b&&(b[b.isPlaced?"animate":"attr"]({d:this.getLinePath(b.strokeWidth())}),b.isPlaced=!0,b[v?"show":"hide"](v)),d&&v&&(d[d.isNew?"attr":"animate"](s.getTitlePosition(d)),d.isNew=!1),m?.enabled&&s.stacking&&s.stacking.renderStackTotals(),s.old={len:s.len,max:s.max,min:s.min,transA:s.transA,userMax:s.userMax,userMin:s.userMin},s.isDirty=!1,et(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(e){e.render()})),this.series.forEach(function(e){e.isDirty=!0})}getKeepProps(){return this.keepProps||h.keepProps}destroy(e){let i=this,s=i.plotLinesAndBands,o=this.eventOptions;if(et(this,"destroy",{keepEvents:e}),e||sd(i),[i.ticks,i.minorTicks,i.alternateBands].forEach(function(r){td(r)}),s){let r=s.length;for(;r--;)s[r].destroy()}for(let r in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(n){i[n]&&(i[n]=i[n].destroy())}),i.plotLinesAndBandsGroups)i.plotLinesAndBandsGroups[r]=i.plotLinesAndBandsGroups[r].destroy();Di(i,function(r,n){i.getKeepProps().indexOf(n)===-1&&delete i[n]}),this.eventOptions=o}drawCrosshair(e,i){let s=this.crosshair,o=s?.snap??!0,r=this.chart,n,a,l,c=this.cross,d;if(et(this,"drawCrosshair",{e,point:i}),e||(e=this.cross?.e),s&&(Z(i)||!o)!==!1){if(o?Z(i)&&(a=F(this.coll!=="colorAxis"?i.crosshairPos:null,this.isXAxis?i.plotX:this.len-i.plotY)):a=e&&(this.horiz?e.chartX-this.pos:this.len-e.chartY+this.pos),Z(a)&&(d={value:i&&(this.isXAxis?i.x:F(i.stackY,i.y)),translatedValue:a},r.polar&&Ei(d,{isCrosshair:!0,chartX:e?.chartX,chartY:e?.chartY,point:i}),n=this.getPlotLinePath(d)||null),!Z(n)){this.hideCrosshair();return}l=this.categories&&!this.isRadial,c||(this.cross=c=r.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(l?"category ":"thin ")+(s.className||"")).attr({zIndex:F(s.zIndex,2)}).add(),!r.styledMode&&(c.attr({stroke:s.color||(l?tt.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":F(s.width,1)}).css({"pointer-events":"none"}),s.dashStyle&&c.attr({dashstyle:s.dashStyle}))),c.show().attr({d:n}),l&&!s.width&&c.attr({"stroke-width":this.transA}),this.cross.e=e}else this.hideCrosshair();et(this,"afterDrawCrosshair",{e,point:i})}hideCrosshair(){this.cross&&this.cross.hide(),et(this,"afterHideCrosshair")}update(e,i){let s=this.chart;e=Ii(this.userOptions,e),this.destroy(!0),this.init(s,e),s.isDirtyBox=!0,F(i,!0)&&s.redraw()}remove(e){let i=this.chart,s=this.coll,o=this.series,r=o.length;for(;r--;)o[r]&&o[r].remove(!1);Yr(i.axes,this),Yr(i[s]||[],this),i.orderItems(s),this.destroy(),i.isDirtyBox=!0,F(e,!0)&&i.redraw()}setTitle(e,i){this.update({title:e},i)}setCategories(e,i){this.update({categories:e},i)}}return h.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"],h})(),{addEvent:nd,getMagnitude:ad,normalizeTickInterval:hd,timeUnits:zi}=z;(function(h){function t(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function e(){if(this.type!=="datetime"){this.dateTime=void 0;return}this.dateTime||(this.dateTime=new i(this))}h.compose=function(s){return s.keepProps.includes("dateTime")||(s.keepProps.push("dateTime"),s.prototype.getTimeTicks=t,nd(s,"afterSetType",e)),s};class i{constructor(o){this.axis=o}normalizeTimeTickInterval(o,r){let n=r||[["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]],a=n[n.length-1],l=zi[a[0]],c=a[1],d;for(d=0;d<n.length&&(l=zi[(a=n[d])[0]],c=a[1],!n[d+1]||!(o<=(l*c[c.length-1]+zi[n[d+1][0]])/2));d++);l===zi.year&&o<5*l&&(c=[1,2,5]);let p=hd(o/l,c,a[0]==="year"?Math.max(ad(o/l),1):1);return{unitRange:l,count:p,unitName:a[0]}}getXDateFormat(o,r){let{axis:n}=this,a=n.chart.time;return n.closestPointRange?a.getDateFormat(n.closestPointRange,o,n.options.startOfWeek,r)||a.resolveDTLFormat(r.year).main:a.resolveDTLFormat(r.day).main}}h.Additions=i})(ls||(ls={}));let ld=ls,{addEvent:Zr,normalizeTickInterval:dd,pick:cd}=z;(function(h){function t(){this.type!=="logarithmic"?this.logarithmic=void 0:this.logarithmic??(this.logarithmic=new i(this))}function e(){let s=this.logarithmic;s&&(this.lin2val=function(o){return s.lin2log(o)},this.val2lin=function(o){return s.log2lin(o)})}h.compose=function(s){return s.keepProps.includes("logarithmic")||(s.keepProps.push("logarithmic"),Zr(s,"afterSetType",t),Zr(s,"afterInit",e)),s};class i{constructor(o){this.axis=o}getLogTickPositions(o,r,n,a){let l=this.axis,c=l.len,d=l.options,p=[];if(a||(this.minorAutoInterval=void 0),o>=.5)o=Math.round(o),p=l.getLinearTickPositions(o,r,n);else if(o>=.08){let g,u,m,x,f,y,b,v=Math.floor(r);for(g=o>.3?[1,2,4]:o>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],u=v;u<n+1&&!b;u++)for(m=0,x=g.length;m<x&&!b;m++)(f=this.log2lin(this.lin2log(u)*g[m]))>r&&(!a||y<=n)&&y!==void 0&&p.push(y),y>n&&(b=!0),y=f}else{let g=this.lin2log(r),u=this.lin2log(n),m=a?l.getMinorTickInterval():d.tickInterval,x=d.tickPixelInterval/(a?5:1),f=a?c/l.tickPositions.length:c;o=dd(o=cd(m==="auto"?null:m,this.minorAutoInterval,(u-g)*x/(f||1))),p=l.getLinearTickPositions(o,g,u).map(this.log2lin),a||(this.minorAutoInterval=o/5)}return a||(l.tickInterval=o),p}lin2log(o){return Math.pow(10,o)}log2lin(o){return Math.log(o)/Math.LN10}}h.Additions=i})(ds||(ds={}));let pd=ds,{erase:gd,extend:ud,isNumber:qr}=z;(function(h){let t;function e(l){return this.addPlotBandOrLine(l,"plotBands")}function i(l,c){let d=this.userOptions,p=new t(this,l);if(this.visible&&(p=p.render()),p){if(this._addedPlotLB||(this._addedPlotLB=!0,(d.plotLines||[]).concat(d.plotBands||[]).forEach(g=>{this.addPlotBandOrLine(g)})),c){let g=d[c]||[];g.push(l),d[c]=g}this.plotLinesAndBands.push(p)}return p}function s(l){return this.addPlotBandOrLine(l,"plotLines")}function o(l,c,d){d=d||this.options;let p=this.getPlotLinePath({value:c,force:!0,acrossPanes:d.acrossPanes}),g=[],u=this.horiz,m=!qr(this.min)||!qr(this.max)||l<this.min&&c<this.min||l>this.max&&c>this.max,x=this.getPlotLinePath({value:l,force:!0,acrossPanes:d.acrossPanes}),f,y=1,b;if(x&&p)for(m&&(b=x.toString()===p.toString(),y=0),f=0;f<x.length;f+=2){let v=x[f],S=x[f+1],M=p[f],k=p[f+1];(v[0]==="M"||v[0]==="L")&&(S[0]==="M"||S[0]==="L")&&(M[0]==="M"||M[0]==="L")&&(k[0]==="M"||k[0]==="L")&&(u&&M[1]===v[1]?(M[1]+=y,k[1]+=y):u||M[2]!==v[2]||(M[2]+=y,k[2]+=y),g.push(["M",v[1],v[2]],["L",S[1],S[2]],["L",k[1],k[2]],["L",M[1],M[2]],["Z"])),g.isFlat=b}return g}function r(l){this.removePlotBandOrLine(l)}function n(l){let c=this.plotLinesAndBands,d=this.options,p=this.userOptions;if(c){let g=c.length;for(;g--;)c[g].id===l&&c[g].destroy();[d.plotLines||[],p.plotLines||[],d.plotBands||[],p.plotBands||[]].forEach(function(u){for(g=u.length;g--;)u[g]?.id===l&&gd(u,u[g])})}}function a(l){this.removePlotBandOrLine(l)}h.compose=function(l,c){let d=c.prototype;return d.addPlotBand||(t=l,ud(d,{addPlotBand:e,addPlotLine:s,addPlotBandOrLine:i,getPlotBandPath:o,removePlotBand:r,removePlotLine:a,removePlotBandOrLine:n})),c}})(cs||(cs={}));let md=cs,{addEvent:fd,arrayMax:Kr,arrayMin:Jr,defined:zt,destroyObjectProperties:xd,erase:yd,fireEvent:bd,merge:Qr,objectEach:vd,pick:kd}=z;class Ni{static compose(t,e){return fd(t,"afterInit",function(){this.labelCollectors.push(()=>{let i=[];for(let s of this.axes)for(let{label:o,options:r}of s.plotLinesAndBands)o&&!r?.label?.allowOverlap&&i.push(o);return i})}),md.compose(Ni,e)}constructor(t,e){this.axis=t,this.options=e,this.id=e.id}render(){bd(this,"render");let{axis:t,options:e}=this,{horiz:i,logarithmic:s}=t,{color:o,events:r,zIndex:n=0}=e,{renderer:a,time:l}=t.chart,c={},d=l.parse(e.to),p=l.parse(e.from),g=l.parse(e.value),u=e.borderWidth,m=e.label,{label:x,svgElem:f}=this,y=[],b,v=zt(p)&&zt(d),S=zt(g),M=!f,k={class:"highcharts-plot-"+(v?"band ":"line ")+(e.className||"")},w=v?"bands":"lines";if(!t.chart.styledMode&&(S?(k.stroke=o||"#999999",k["stroke-width"]=kd(e.width,1),e.dashStyle&&(k.dashstyle=e.dashStyle)):v&&(k.fill=o||"#e6e9ff",u&&(k.stroke=e.borderColor,k["stroke-width"]=u))),c.zIndex=n,w+="-"+n,(b=t.plotLinesAndBandsGroups[w])||(t.plotLinesAndBandsGroups[w]=b=a.g("plot-"+w).attr(c).add()),f||(this.svgElem=f=a.path().attr(k).add(b)),zt(g))y=t.getPlotLinePath({value:s?.log2lin(g)??g,lineWidth:f.strokeWidth(),acrossPanes:e.acrossPanes});else{if(!(zt(p)&&zt(d)))return;y=t.getPlotBandPath(s?.log2lin(p)??p,s?.log2lin(d)??d,e)}return!this.eventsAdded&&r&&(vd(r,(C,T)=>{f?.on(T,P=>{r[T].apply(this,[P])})}),this.eventsAdded=!0),(M||!f.d)&&y?.length?f.attr({d:y}):f&&(y?(f.show(),f.animate({d:y})):f.d&&(f.hide(),x&&(this.label=x=x.destroy()))),m&&(zt(m.text)||zt(m.formatter))&&y?.length&&t.width>0&&t.height>0&&!y.isFlat?(m=Qr(Pt({align:i&&v?"center":void 0,x:i?!v&&4:10,verticalAlign:!i&&v?"middle":void 0,y:i?v?16:10:v?6:-4,rotation:i&&!v?90:0},v?{inside:!0}:{}),m),this.renderLabel(m,y,v,n)):x&&x.hide(),this}renderLabel(t,e,i,s){let o=this.axis,r=o.chart.renderer,n=t.inside,a=this.label;a||(this.label=a=r.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:s}),o.chart.styledMode||a.css(Qr({fontSize:"0.8em",textOverflow:i&&!n?"":"ellipsis"},t.style)),a.add());let l=e.xBounds||[e[0][1],e[1][1],i?e[2][1]:e[0][1]],c=e.yBounds||[e[0][2],e[1][2],i?e[2][2]:e[0][2]],d=Jr(l),p=Jr(c),g=Kr(l)-d;a.align(t,!1,{x:d,y:p,width:g,height:Kr(c)-p}),a.alignAttr.y-=r.fontMetrics(a).b,(!a.alignValue||a.alignValue==="left"||zt(n))&&a.css({width:(t.style?.width||(i&&n?g:a.rotation===90?o.height-(a.alignAttr.y-o.top):(t.clip?o.width:o.chart.chartWidth)-(a.alignAttr.x-o.left)))+"px"}),a.show(!0)}getLabelText(t){return zt(t.formatter)?t.formatter.call(this):t.text}destroy(){yd(this.axis.plotLinesAndBands,this),delete this.axis,xd(this)}}let{animObject:Md}=pt,{format:tn}=wt,{composed:wd,dateFormats:Sd,doc:en,isSafari:Cd}=A,{distribute:Td}=yi,{addEvent:Pd,clamp:Te,css:sn,discardElement:Ad,extend:Od,fireEvent:on,getAlignFactor:rn,isArray:Ld,isNumber:Ed,isObject:Id,isString:to,merge:Dd,pick:Pe,pushUnique:Bd,splat:eo,syncTimeout:zd}=z;class io{constructor(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}bodyFormatter(t){return t.map(e=>{let i=e.series.tooltipOptions,s=e.formatPrefix||"point";return(i[s+"Formatter"]||e.tooltipFormatter).call(e,i[s+"Format"]||"")})}cleanSplit(t){this.chart.series.forEach(function(e){let i=e?.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)})}defaultFormatter(t){let e,i=this.points||eo(this);return(e=(e=[t.headerFooterFormatter(i[0])]).concat(t.bodyFormatter(i))).push(t.headerFooterFormatter(i[0],!0)),e}destroy(){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(),Ad(this.container)),z.clearTimeout(this.hideTimer)}getAnchor(t,e){let i,{chart:s,pointer:o}=this,r=s.inverted,n=s.plotTop,a=s.plotLeft;if(t=eo(t),t[0].series?.yAxis&&!t[0].series.yAxis.options.reversedStacks&&(t=t.slice().reverse()),this.followPointer&&e)e.chartX===void 0&&(e=o.normalize(e)),i=[e.chartX-a,e.chartY-n];else if(t[0].tooltipPos)i=t[0].tooltipPos;else{let l=0,c=0;t.forEach(function(d){let p=d.pos(!0);p&&(l+=p[0],c+=p[1])}),l/=t.length,c/=t.length,this.shared&&t.length>1&&e&&(r?l=e.chartX:c=e.chartY),i=[l-a,c-n]}return i.map(Math.round)}getClassName(t,e,i){let s=this.options,o=t.series,r=o.options;return[s.className,"highcharts-label",i&&"highcharts-tooltip-header",e?"highcharts-tooltip-box":"highcharts-tooltip",!i&&"highcharts-color-"+Pe(t.colorIndex,o.colorIndex),r?.className].filter(to).join(" ")}getLabel({anchorX:t,anchorY:e}={anchorX:0,anchorY:0}){let i=this,s=this.chart.styledMode,o=this.options,r=this.split&&this.allowShared,n=this.container,a=this.chart.renderer;if(this.label){let l=!this.label.hasClass("highcharts-label");(!r&&l||r&&!l)&&this.destroy()}if(!this.label){if(this.outside){let l=this.chart,c=l.options.chart.style,d=Xe.getRendererType();this.container=n=A.doc.createElement("div"),n.className="highcharts-tooltip-container "+(l.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||""),sn(n,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(c?.zIndex||0)+3)}),this.renderer=a=new d(n,0,0,c,void 0,void 0,a.styledMode)}if(r?this.label=a.g("tooltip"):(this.label=a.label("",t,e,o.shape||"callout",void 0,void 0,o.useHTML,void 0,"tooltip").attr({padding:o.padding,r:o.borderRadius}),s||this.label.attr({fill:o.backgroundColor,"stroke-width":o.borderWidth||0}).css(o.style).css({pointerEvents:o.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),i.outside){let l=this.label;[l.xSetter,l.ySetter].forEach((c,d)=>{l[d?"ySetter":"xSetter"]=p=>{c.call(l,i.distance),l[d?"y":"x"]=p,n&&(n.style[d?"top":"left"]=`${p}px`)}})}this.label.attr({zIndex:8}).shadow(o.shadow??!o.fixed).add()}return n&&!n.parentElement&&A.doc.body.appendChild(n),this.label}getPlayingField(){let{body:t,documentElement:e}=en,{chart:i,distance:s,outside:o}=this;return{width:o?Math.max(t.scrollWidth,e.scrollWidth,t.offsetWidth,e.offsetWidth,e.clientWidth)-2*s-2:i.chartWidth,height:o?Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,e.clientHeight):i.chartHeight}}getPosition(t,e,i){let{distance:s,chart:o,outside:r,pointer:n}=this,{inverted:a,plotLeft:l,plotTop:c,polar:d}=o,{plotX:p=0,plotY:g=0}=i,u={},m=a&&i.h||0,{height:x,width:f}=this.getPlayingField(),y=n.getChartPosition(),b=D=>D*y.scaleX,v=D=>D*y.scaleY,S=D=>{let E=D==="x";return[D,E?f:x,E?t:e].concat(r?[E?b(t):v(e),E?y.left-s+b(p+l):y.top-s+v(g+c),0,E?f:x]:[E?t:e,E?p+l:g+c,E?l:c,E?l+o.plotWidth:c+o.plotHeight])},M=S("y"),k=S("x"),w,C=!!i.negative;!d&&o.hoverSeries?.yAxis?.reversed&&(C=!C);let T=!this.followPointer&&Pe(i.ttBelow,!d&&!a===C),P=function(D,E,B,K,_,mt,W){let H=r?D==="y"?v(s):b(s):s,U=(B-K)/2,G=K<_-s,$=_+s+K<E,q=_-H-B+U,V=_+H-U;if(T&&$)u[D]=V;else if(!T&&G)u[D]=q;else if(G)u[D]=Math.min(W-K,q-m<0?q:q-m);else{if(!$)return u[D]=0,!1;u[D]=Math.max(mt,V+m+B>E?V:V+m)}},O=function(D,E,B,K,_){if(_<s||_>E-s)return!1;_<B/2?u[D]=1:_>E-K/2?u[D]=E-K-2:u[D]=_-B/2},L=function(D){[M,k]=[k,M],w=D},I=()=>{P.apply(0,M)!==!1?O.apply(0,k)!==!1||w||(L(!0),I()):w?u.x=u.y=0:(L(!0),I())};return(a&&!d||this.len>1)&&L(),I(),u}getFixedPosition(t,e,i){let s=i.series,{chart:o,options:r,split:n}=this,a=r.position,l=a.relativeTo,c=r.shared||s?.yAxis?.isRadial&&(l==="pane"||!l)?"plotBox":l,d=c==="chart"?o.renderer:o[c]||o.getClipBox(s,!0);return{x:d.x+(d.width-t)*rn(a.align)+a.x,y:d.y+(d.height-e)*rn(a.verticalAlign)+(!n&&a.y||0)}}hide(t){let e=this;z.clearTimeout(this.hideTimer),t=Pe(t,this.options.hideDelay),this.isHidden||(this.hideTimer=zd(function(){let i=e.getLabel();e.getLabel().animate({opacity:0},{duration:t&&150,complete:()=>{i.hide(),e.container&&e.container.remove()}}),e.isHidden=!0},t))}init(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=Pe(e.outside,!!(t.scrollablePixelsX||t.scrollablePixelsY))}shouldStickOnContact(t){return!!(!this.followPointer&&this.options.stickOnContact&&(!t||this.pointer.inClass(t.target,"highcharts-tooltip")))}move(t,e,i,s){let{followPointer:o,options:r}=this,n=Md(!o&&!this.isHidden&&!r.fixed&&r.animation),a=o||(this.len||0)>1,l={x:t,y:e};a?l.anchorX=l.anchorY=NaN:(l.anchorX=i,l.anchorY=s),n.step=()=>this.drawTracker(),this.getLabel().animate(l,n)}refresh(t,e){let{chart:i,options:s,pointer:o,shared:r}=this,n=eo(t),a=n[0],l=s.format,c=s.formatter||this.defaultFormatter,d=i.styledMode,p=this.allowShared;if(!s.enabled||!a.series)return;z.clearTimeout(this.hideTimer),this.allowShared=!(!Ld(t)&&t.series&&t.series.noSharedTooltip),p=p&&!this.allowShared,this.followPointer=!this.split&&a.series.tooltipOptions.followPointer;let g=this.getAnchor(t,e),u=g[0],m=g[1];r&&this.allowShared&&(o.applyInactiveState(n),n.forEach(y=>y.setState("hover")),a.points=n),this.len=n.length;let x=to(l)?tn(l,a,i):c.call(a,this);a.points=void 0;let f=a.series;if(this.distance=Pe(f.tooltipOptions.distance,16),x===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(x,n);else{let y=u,b=m;if(e&&o.isDirectTouch&&(y=e.chartX-i.plotLeft,b=e.chartY-i.plotTop),i.polar||f.options.clip===!1||n.some(v=>o.isDirectTouch||v.series.shouldShowTooltip(y,b))){let v=this.getLabel(p&&this.tt||{});(!s.style.width||d)&&v.css({width:(this.outside?this.getPlayingField():i.spacingBox).width+"px"}),v.attr({class:this.getClassName(a),text:x&&x.join?x.join(""):x}),this.outside&&v.attr({x:Te(v.x||0,0,this.getPlayingField().width-(v.width||0)-1)}),d||v.attr({stroke:s.borderColor||a.color||f.color||"#666666"}),this.updatePosition({plotX:u,plotY:m,negative:a.negative,ttBelow:a.ttBelow,series:f,h:g[2]||0})}else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}on(this,"refresh")}renderSplit(t,e){let i=this,{chart:s,chart:{chartWidth:o,chartHeight:r,plotHeight:n,plotLeft:a,plotTop:l,scrollablePixelsY:c=0,scrollablePixelsX:d,styledMode:p},distance:g,options:u,options:{fixed:m,position:x,positioner:f},pointer:y}=i,{scrollLeft:b=0,scrollTop:v=0}=s.scrollablePlotArea?.scrollingContainer||{},S=i.outside&&typeof d!="number"?en.documentElement.getBoundingClientRect():{left:b,right:b+o,top:v,bottom:v+r},M=i.getLabel(),k=this.renderer||s.renderer,w=!!s.xAxis[0]?.opposite,{left:C,top:T}=y.getChartPosition(),P=f||m,O=l+v,L=0,I=n-c,D=function(W,H,U,G=[0,0],$=!0){let q,V;if(U.isHeader)V=w?0:I,q=Te(G[0]-W/2,S.left,S.right-W-(i.outside?C:0));else if(m&&U){let Q=i.getFixedPosition(W,H,U);q=Q.x,V=Q.y-O}else V=G[1]-O,q=Te(q=$?G[0]-W-g:G[0]+g,$?q:S.left,S.right);return{x:q,y:V}};to(t)&&(t=[!1,t]);let E=t.slice(0,e.length+1).reduce(function(W,H,U){if(H!==!1&&H!==""){let G=e[U-1]||{isHeader:!0,plotX:e[0].plotX,plotY:n,series:{}},$=G.isHeader,q=$?i:G.series,V=q.tt=function(Ee,Tt,si){let te=Ee,{isHeader:ge,series:oi}=Tt,Lt=oi.tooltipOptions||u;if(!te){let Ie={padding:Lt.padding,r:Lt.borderRadius};p||(Ie.fill=Lt.backgroundColor,Ie["stroke-width"]=Lt.borderWidth??(m&&!ge?0:1)),te=k.label("",0,0,Lt[ge?"headerShape":"shape"]||(m&&!ge?"rect":"callout"),void 0,void 0,Lt.useHTML).addClass(i.getClassName(Tt,!0,ge)).attr(Ie).add(M)}return te.isActive=!0,te.attr({text:si}),p||te.css(Lt.style).attr({stroke:Lt.borderColor||Tt.color||oi.color||"#333333"}),te}(q.tt,G,H.toString()),Q=V.getBBox(),ft=Q.width+V.strokeWidth();$&&(L=Q.height,I+=L,w&&(O-=L));let{anchorX:yt,anchorY:Qt}=function(Ee){let Tt,si,{isHeader:te,plotX:ge=0,plotY:oi=0,series:Lt}=Ee;if(te)Tt=Math.max(a+ge,a),si=l+n/2;else{let{xAxis:Ie,yAxis:Ma}=Lt;Tt=Ie.pos+Te(ge,-g,Ie.len+g),Lt.shouldShowTooltip(0,Ma.pos-l+oi,{ignoreX:!0})&&(si=Ma.pos+oi)}return{anchorX:Tt=Te(Tt,S.left-g,S.right+g),anchorY:si}}(G);if(typeof Qt=="number"){let Ee=Q.height+1,Tt=(f||D).call(i,ft,Ee,G,[yt,Qt]);W.push({align:P?0:void 0,anchorX:yt,anchorY:Qt,boxWidth:ft,point:G,rank:Pe(Tt.rank,+!!$),size:Ee,target:Tt.y,tt:V,x:Tt.x})}else V.isActive=!1}return W},[]);!P&&E.some(W=>{let{outside:H}=i,U=(H?C:0)+W.anchorX;return U<S.left&&U+W.boxWidth<S.right||U<C-S.left+W.boxWidth&&S.right-U>U})&&(E=E.map(W=>{let{x:H,y:U}=D.call(this,W.boxWidth,W.size,W.point,[W.anchorX,W.anchorY],!1);return Od(W,{target:U,x:H})})),i.cleanSplit(),Td(E,I);let B={left:C,right:C};E.forEach(function(W){let{x:H,boxWidth:U,isHeader:G}=W;!G&&(i.outside&&C+H<B.left&&(B.left=C+H),!G&&i.outside&&B.left+U>B.right&&(B.right=C+H))}),E.forEach(function(W){let{x:H,anchorX:U,anchorY:G,pos:$,point:{isHeader:q}}=W,V={visibility:$===void 0?"hidden":"inherit",x:H,y:($||0)+O+(m&&x.y||0),anchorX:U,anchorY:G};if(i.outside&&H<U){let Q=C-B.left;Q>0&&(q||(V.x=H+Q,V.anchorX=U+Q),q&&(V.x=(B.right-B.left)/2,V.anchorX=U+Q))}W.tt.attr(V)});let{container:K,outside:_,renderer:mt}=i;if(_&&K&&mt){let{width:W,height:H,x:U,y:G}=M.getBBox();mt.setSize(W+U,H+G,!1),K.style.left=B.left+"px",K.style.top=T+"px"}Cd&&M.attr({opacity:M.opacity===1?.999:1})}drawTracker(){if(!this.shouldStickOnContact()){this.tracker&&(this.tracker=this.tracker.destroy());return}let t=this.chart,e=this.label,i=this.shared?t.hoverPoints:t.hoverPoint;if(!e||!i)return;let s={x:0,y:0,width:0,height:0},o=this.getAnchor(i),r=e.getBBox();o[0]+=t.plotLeft-(e.translateX||0),o[1]+=t.plotTop-(e.translateY||0),s.x=Math.min(0,o[0]),s.y=Math.min(0,o[1]),s.width=o[0]<0?Math.max(Math.abs(o[0]),r.width-o[0]):Math.max(Math.abs(o[0]),r.width),s.height=o[1]<0?Math.max(Math.abs(o[1]),r.height-Math.abs(o[1])):Math.max(Math.abs(o[1]),r.height),this.tracker?this.tracker.attr(s):(this.tracker=e.renderer.rect(s).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(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}"')}headerFooterFormatter(t,e){let i=t.series,s=i.tooltipOptions,o=i.xAxis,r=o?.dateTime,n={isFooter:e,point:t},a=s.xDateFormat||"",l=s[e?"footerFormat":"headerFormat"];return on(this,"headerFormatter",n,function(c){if(r&&!a&&Ed(t.key)&&(a=r.getXDateFormat(t.key,s.dateTimeLabelFormats)),r&&a){if(Id(a)){let d=a;Sd[0]=p=>i.chart.time.dateFormat(d,p),a="%0"}(t.tooltipDateKeys||["key"]).forEach(d=>{l=l.replace(RegExp("point\\."+d+"([ \\)}])"),`(point.${d}:${a})$1`)})}i.chart.styledMode&&(l=this.styledModeFormat(l)),c.text=tn(l,t,this.chart)}),n.text||""}update(t){this.destroy(),this.init(this.chart,Dd(!0,this.options,t))}updatePosition(t){let{chart:e,container:i,distance:s,options:o,pointer:r,renderer:n}=this,{height:a=0,width:l=0}=this.getLabel(),{fixed:c,positioner:d}=o,{left:p,top:g,scaleX:u,scaleY:m}=r.getChartPosition(),x=(d||c&&this.getFixedPosition||this.getPosition).call(this,l,a,t),f=A.doc,y=(t.plotX||0)+e.plotLeft,b=(t.plotY||0)+e.plotTop,v;if(n&&i){if(d||c){let{scrollLeft:S=0,scrollTop:M=0}=e.scrollablePlotArea?.scrollingContainer||{};x.x+=S+p-s,x.y+=M+g-s}v=(o.borderWidth||0)+2*s+2,n.setSize(Te(l+v,0,f.documentElement.clientWidth)-1,a+v,!1),(u!==1||m!==1)&&(sn(i,{transform:`scale(${u}, ${m})`}),y*=u,b*=m),y+=p-x.x,b+=g-x.y}this.move(Math.round(x.x),Math.round(x.y||0),y,b)}}(function(h){h.compose=function(t){Bd(wd,"Core.Tooltip")&&Pd(t,"afterInit",function(){let e=this.chart;e.options.tooltip&&(e.tooltip=new h(e,e.options.tooltip,this))})}})(io||(io={}));let nn=io,{animObject:Nd}=pt,{defaultOptions:Rd}=Mt,{format:Wd}=wt,{addEvent:Hd,crisp:Xd,erase:Fd,extend:Ri,fireEvent:so,getNestedProperty:Gd,isArray:jd,isFunction:Yd,isNumber:Yt,isObject:Wi,merge:an,pick:_t,syncTimeout:_d,removeEvent:hn,uniqueKey:Ud}=z;class Ue{animateBeforeDestroy(){let t=this,e={x:t.startXPos,opacity:0},i=t.getGraphicalProps();i.singular.forEach(function(s){t[s]=t[s].animate(s==="dataLabel"?{x:t[s].startXPos,y:t[s].startYPos,opacity:0}:e)}),i.plural.forEach(function(s){t[s].forEach(function(o){o.element&&o.animate(Ri({x:t.startXPos},o.startYPos?{x:o.startXPos,y:o.startYPos}:{}))})})}applyOptions(t,e){let i=this.series,s=i.options.pointValKey||i.pointValKey;return Ri(this,t=Ue.prototype.optionsToObject.call(this,t)),this.options=this.options?Ri(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,s&&(this.y=Ue.prototype.getNestedProperty.call(this,s)),this.selected&&(this.state="select"),"name"in this&&e===void 0&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),this.x===void 0&&i?this.x=e??i.autoIncrement():Yt(t.x)&&i.options.relativeXValue?this.x=i.autoIncrement(t.x):typeof this.x=="string"&&(e??(e=i.chart.time.parse(this.x)),Yt(e)&&(this.x=e)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let t=this,e=t.series,i=e.chart,s=e.options.dataSorting,o=i.hoverPoints,r=Nd(t.series.chart.renderer.globalAnimation),n=()=>{for(let a in(t.graphic||t.graphics||t.dataLabel||t.dataLabels)&&(hn(t),t.destroyElements()),t)delete t[a]};t.legendItem&&i.legend.destroyItem(t),o&&(t.setState(),Fd(o,t),o.length||(i.hoverPoints=null)),t===i.hoverPoint&&t.onMouseOut(),s?.enabled?(this.animateBeforeDestroy(),_d(n,r.duration)):n(),i.pointCount--}this.destroyed=!0}destroyElements(t){let e=this,i=e.getGraphicalProps(t);i.singular.forEach(function(s){e[s]=e[s].destroy()}),i.plural.forEach(function(s){e[s].forEach(function(o){o?.element&&o.destroy()}),delete e[s]})}firePointEvent(t,e,i){let s=this,o=this.series.options;s.manageEvent(t),t==="click"&&o.allowPointSelect&&(i=function(r){!s.destroyed&&s.select&&s.select(null,r.ctrlKey||r.metaKey||r.shiftKey)}),so(s,t,e,i)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone?.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(t){let e,i,s=this,o=[],r={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&o.push("graphic","connector"),t.dataLabel&&o.push("dataLabel","dataLabelPath","dataLabelUpper"),i=o.length;i--;)s[e=o[i]]&&r.singular.push(e);return["graphic","dataLabel"].forEach(function(n){let a=n+"s";t[n]&&s[a]&&r.plural.push(a)}),r}getNestedProperty(t){return t?t.indexOf("custom.")===0?Gd(t,this.options):this[t]:void 0}getZone(){let t=this.series,e=t.zones,i=t.zoneAxis||"y",s,o=0;for(s=e[0];this[i]>=s.value;)s=e[++o];return this.nonZonedColor||(this.nonZonedColor=this.color),s?.color&&!this.options.color?this.color=s.color:this.color=this.nonZonedColor,s}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}constructor(t,e,i){this.formatPrefix="point",this.visible=!0,this.point=this,this.series=t,this.applyOptions(e,i),this.id??(this.id=Ud()),this.resolveColor(),this.dataLabelOnNull??(this.dataLabelOnNull=t.options.nullInteraction),t.chart.pointCount++,so(this,"afterInit")}isValid(){return(Yt(this.x)||this.x instanceof Date)&&Yt(this.y)}optionsToObject(t){let e=this.series,i=e.options.keys,s=i||e.pointArrayMap||["y"],o=s.length,r={},n,a=0,l=0;if(Yt(t)||t===null)r[s[0]]=t;else if(jd(t))for(!i&&t.length>o&&((n=typeof t[0])=="string"?e.xAxis?.dateTime?r.x=e.chart.time.parse(t[0]):r.name=t[0]:n==="number"&&(r.x=t[0]),a++);l<o;)i&&t[a]===void 0||(s[l].indexOf(".")>0?Ue.prototype.setNestedProperty(r,t[a],s[l]):r[s[l]]=t[a]),a++,l++;else typeof t=="object"&&(r=t,t.dataLabels&&(e.hasDataLabels=()=>!0),t.marker&&(e._hasPointMarkers=!0));return r}pos(t,e=this.plotY){if(!this.destroyed){let{plotX:i,series:s}=this,{chart:o,xAxis:r,yAxis:n}=s,a=0,l=0;if(Yt(i)&&Yt(e))return t&&(a=r?r.pos:o.plotLeft,l=n?n.pos:o.plotTop),o.inverted&&r&&n?[n.len-e+l,r.len-i+a]:[i+a,e+l]}}resolveColor(){let t=this.series,e=t.chart.options.chart,i=t.chart.styledMode,s,o,r=e.colorCount,n;delete this.nonZonedColor,t.options.colorByPoint?(i||(s=(o=t.options.colors||t.chart.options.colors)[t.colorCounter],r=o.length),n=t.colorCounter,t.colorCounter++,t.colorCounter===r&&(t.colorCounter=0)):(i||(s=t.color),n=t.colorIndex),this.colorIndex=_t(this.options.colorIndex,n),this.color=_t(this.options.color,s)}setNestedProperty(t,e,i){return i.split(".").reduce(function(s,o,r,n){let a=n.length-1===r;return s[o]=a?e:Wi(s[o],!0)?s[o]:{},s[o]},t),t}shouldDraw(){return!this.isNull}tooltipFormatter(t){let{chart:e,pointArrayMap:i=["y"],tooltipOptions:s}=this.series,{valueDecimals:o="",valuePrefix:r="",valueSuffix:n=""}=s;return e.styledMode&&(t=e.tooltip?.styledModeFormat(t)||t),i.forEach(a=>{a="{point."+a,(r||n)&&(t=t.replace(RegExp(a+"}","g"),r+a+"}"+n)),t=t.replace(RegExp(a+"}","g"),a+":,."+o+"f}")}),Wd(t,this,e)}update(t,e,i,s){let o,r=this,n=r.series,a=r.graphic,l=n.chart,c=n.options;function d(){r.applyOptions(t);let p=a&&r.hasMockGraphic,g=r.y===null?!p:p;a&&g&&(r.graphic=a.destroy(),delete r.hasMockGraphic),Wi(t,!0)&&(a?.element&&t&&t.marker&&t.marker.symbol!==void 0&&(r.graphic=a.destroy()),t?.dataLabels&&r.dataLabel&&(r.dataLabel=r.dataLabel.destroy())),o=r.index;let u={};for(let m of n.dataColumnKeys())u[m]=r[m];n.dataTable.setRow(u,o),c.data[o]=Wi(c.data[o],!0)||Wi(t,!0)?r.options:_t(t,c.data[o]),n.isDirty=n.isDirtyData=!0,!n.fixedBox&&n.hasCartesianSeries&&(l.isDirtyBox=!0),c.legendType==="point"&&(l.isDirtyLegend=!0),e&&l.redraw(i)}e=_t(e,!0),s===!1?d():r.firePointEvent("update",{options:t},d)}remove(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)}select(t,e){let i=this,s=i.series,o=s.chart;t=_t(t,!i.selected),this.selectedStaging=t,i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,s.options.data[s.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||o.getSelectedPoints().forEach(function(r){let n=r.series;r.selected&&r!==i&&(r.selected=r.options.selected=!1,n.options.data[n.data.indexOf(r)]=r.options,r.setState(o.hoverPoints&&n.options.inactiveOtherPoints?"inactive":""),r.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(t){let{inverted:e,pointer:i}=this.series.chart;i&&(t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e),i.runPointActions(t,this))}onMouseOut(){let t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(e){e.setState()}),t.hoverPoints=t.hoverPoint=null}manageEvent(t){let e=an(this.series.options.point,this.options),i=e.events?.[t];Yd(i)&&(!this.hcEvents?.[t]||this.hcEvents?.[t]?.map(s=>s.fn).indexOf(i)===-1)?(this.importedUserEvent?.(),this.importedUserEvent=Hd(this,t,i),this.hcEvents&&(this.hcEvents[t].userEvent=!0)):this.importedUserEvent&&!i&&this.hcEvents?.[t]&&this.hcEvents?.[t].userEvent&&(hn(this,t),delete this.hcEvents[t],Object.keys(this.hcEvents)||delete this.importedUserEvent)}setState(t,e){let i=this.series,s=this.state,o=i.options.states[t||"normal"]||{},r=Rd.plotOptions[i.type].marker&&i.options.marker,n=r&&r.enabled===!1,a=r?.states?.[t||"normal"]||{},l=a.enabled===!1,c=this.marker||{},d=i.chart,p=r&&i.markerAttribs,g=i.halo,u,m,x,f=i.stateMarkerGraphic,y;if((t=t||"")===this.state&&!e||this.selected&&t!=="select"||o.enabled===!1||t&&(l||n&&a.enabled===!1)||t&&c.states&&c.states[t]&&c.states[t].enabled===!1)return;if(this.state=t,p&&(u=i.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(s&&this.graphic.removeClass("highcharts-point-"+s),t&&this.graphic.addClass("highcharts-point-"+t),!d.styledMode){m=i.pointAttribs(this,t),x=_t(d.options.chart.animation,o.animation);let M=m.opacity;i.options.inactiveOtherPoints&&Yt(M)&&(this.dataLabels||[]).forEach(function(k){k&&!k.hasClass("highcharts-data-label-hidden")&&(k.animate({opacity:M},x),k.connector&&k.connector.animate({opacity:M},x))}),this.graphic.animate(m,x)}u&&this.graphic.animate(u,_t(d.options.chart.animation,a.animation,r.animation)),f&&f.hide()}else t&&a&&(y=c.symbol||i.symbol,f&&f.currentSymbol!==y&&(f=f.destroy()),u&&(f?f[e?"animate":"attr"]({x:u.x,y:u.y}):y&&(i.stateMarkerGraphic=f=d.renderer.symbol(y,u.x,u.y,u.width,u.height,an(r,a)).add(i.markerGroup),f.currentSymbol=y)),!d.styledMode&&f&&this.state!=="inactive"&&f.attr(i.pointAttribs(this,t))),f&&(f[t&&this.isInside?"show":"hide"](),f.element.point=this,f.addClass(this.getClassName(),!0));let b=o.halo,v=this.graphic||f,S=v?.visibility||"inherit";b?.size&&v&&S!=="hidden"&&!this.isCluster?(g||(i.halo=g=d.renderer.path().add(v.parentGroup)),g.show()[e?"animate":"attr"]({d:this.haloPath(b.size)}),g.attr({class:"highcharts-halo highcharts-color-"+_t(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:S,zIndex:-1}),g.point=this,d.styledMode||g.attr(Ri({fill:this.color||i.color,"fill-opacity":b.opacity},J.filterUserAttributes(b.attributes||{})))):g?.point?.haloPath&&!g.point.destroyed&&g.animate({d:g.point.haloPath(0)},null,g.hide),so(this,"afterSetState",{state:t})}haloPath(t){let e=this.pos();return e?this.series.chart.renderer.symbols.circle(Xd(e[0],1)-t,e[1]-t,2*t,2*t):[]}}let Ut=Ue,{parse:Vd}=tt,{charts:oo,composed:$d,isTouchDevice:Zd}=A,{addEvent:St,attr:qd,css:ro,extend:no,find:ln,fireEvent:Vt,isNumber:Hi,isObject:Xi,objectEach:Kd,offset:Jd,pick:Nt,pushUnique:Qd,splat:dn}=z;class ht{applyInactiveState(t=[]){let e=[];t.forEach(i=>{let s=i.series;e.push(s),s.linkedParent&&e.push(s.linkedParent),s.linkedSeries&&e.push.apply(e,s.linkedSeries),s.navigatorSeries&&e.push(s.navigatorSeries),s.boosted&&s.markerGroup&&e.push.apply(e,this.chart.series.filter(o=>o.markerGroup===s.markerGroup))}),this.chart.series.forEach(i=>{e.indexOf(i)===-1?i.setState("inactive",!0):i.options.inactiveOtherPoints&&i.setAllPointsToState("inactive")})}destroy(){let t=this;this.eventsToUnbind.forEach(e=>e()),this.eventsToUnbind=[],!A.chartCount&&(ht.unbindDocumentMouseUp.forEach(e=>e.unbind()),ht.unbindDocumentMouseUp.length=0,ht.unbindDocumentTouchEnd&&(ht.unbindDocumentTouchEnd=ht.unbindDocumentTouchEnd())),clearInterval(t.tooltipTimeout),Kd(t,function(e,i){t[i]=void 0})}getSelectionMarkerAttrs(t,e){let i={args:{chartX:t,chartY:e},attrs:{},shapeType:"rect"};return Vt(this,"getSelectionMarkerAttrs",i,s=>{let o,{chart:r,zoomHor:n,zoomVert:a}=this,{mouseDownX:l=0,mouseDownY:c=0}=r,d=s.attrs;d.x=r.plotLeft,d.y=r.plotTop,d.width=n?1:r.plotWidth,d.height=a?1:r.plotHeight,n&&(d.width=Math.max(1,Math.abs(o=t-l)),d.x=(o>0?0:o)+l),a&&(d.height=Math.max(1,Math.abs(o=e-c)),d.y=(o>0?0:o)+c)}),i}drag(t){let{chart:e}=this,{mouseDownX:i=0,mouseDownY:s=0}=e,{panning:o,panKey:r,selectionMarkerFill:n}=e.options.chart,a=e.plotLeft,l=e.plotTop,c=e.plotWidth,d=e.plotHeight,p=Xi(o)?o.enabled:o,g=r&&t[`${r}Key`],u=t.chartX,m=t.chartY,x,f=this.selectionMarker;if((!f||!f.touch)&&(u<a?u=a:u>a+c&&(u=a+c),m<l?m=l:m>l+d&&(m=l+d),this.hasDragged=Math.sqrt(Math.pow(i-u,2)+Math.pow(s-m,2)),this.hasDragged>10)){x=e.isInsidePlot(i-a,s-l,{visiblePlotOnly:!0});let{shapeType:y,attrs:b}=this.getSelectionMarkerAttrs(u,m);(e.hasCartesianSeries||e.mapView)&&this.hasZoom&&x&&!g&&!f&&(this.selectionMarker=f=e.renderer[y](),f.attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||f.attr({fill:n||Vd("#334eff").setOpacity(.25).get()})),f&&f.attr(b),x&&!f&&p&&e.pan(t,o)}}dragStart(t){let e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=t.chartX,e.mouseDownY=t.chartY}getSelectionBox(t){let e={args:{marker:t},result:t.getBBox()};return Vt(this,"getSelectionBox",e),e.result}drop(t){let e,{chart:i,selectionMarker:s}=this;for(let o of i.axes)o.isPanning&&(o.isPanning=!1,(o.options.startOnTick||o.options.endOnTick||o.series.some(r=>r.boosted))&&(o.forceRedraw=!0,o.setExtremes(o.userMin,o.userMax,!1),e=!0));if(e&&i.redraw(),s&&t){if(this.hasDragged){let o=this.getSelectionBox(s);i.transform({axes:i.axes.filter(r=>r.zoomEnabled&&(r.coll==="xAxis"&&this.zoomX||r.coll==="yAxis"&&this.zoomY)),selection:Pt({originalEvent:t,xAxis:[],yAxis:[]},o),from:o})}Hi(i.index)&&(this.selectionMarker=s.destroy())}i&&Hi(i.index)&&(ro(i.container,{cursor:i._cursor}),i.cancelClick=this.hasDragged>10,i.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[])}findNearestKDPoint(t,e,i){let s;return t.forEach(function(o){let r=!(o.noSharedTooltip&&e)&&0>o.options.findNearestPointBy.indexOf("y"),n=o.searchPoint(i,r);Xi(n,!0)&&n.series&&(!Xi(s,!0)||function(a,l){let c,d=a.distX-l.distX,p=a.dist-l.dist,g=l.series.group?.zIndex-a.series.group?.zIndex;return d!==0&&e?d:p!==0?p:g!==0?g:a.series.index>l.series.index?-1:1}(s,n)>0)&&(s=n)}),s}getChartCoordinatesFromPoint(t,e){let{xAxis:i,yAxis:s}=t.series,o=t.shapeArgs;if(i&&s){let r=t.clientX??t.plotX??0,n=t.plotY||0;return t.isNode&&o&&Hi(o.x)&&Hi(o.y)&&(r=o.x,n=o.y),e?{chartX:s.len+s.pos-n,chartY:i.len+i.pos-r}:{chartX:r+i.pos,chartY:n+s.pos}}if(o?.x&&o.y)return{chartX:o.x,chartY:o.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:t}=this.chart,e=Jd(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};let{offsetHeight:i,offsetWidth:s}=t;return s>2&&i>2&&(this.chartPosition.scaleX=e.width/s,this.chartPosition.scaleY=e.height/i),this.chartPosition}getCoordinates(t){let e={xAxis:[],yAxis:[]};for(let i of this.chart.axes)e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])});return e}getHoverData(t,e,i,s,o,r){let n=[],a=function(g){return g.visible&&!(!o&&g.directTouch)&&Nt(g.options.enableMouseTracking,!0)},l=e,c,d={chartX:r?r.chartX:void 0,chartY:r?r.chartY:void 0,shared:o};Vt(this,"beforeGetHoverData",d),c=l&&!l.stickyTracking?[l]:i.filter(g=>g.stickyTracking&&(d.filter||a)(g));let p=s&&t||!r?t:this.findNearestKDPoint(c,o,r);return l=p?.series,p&&(o&&!l.noSharedTooltip?(c=i.filter(function(g){return d.filter?d.filter(g):a(g)&&!g.noSharedTooltip})).forEach(function(g){let u=g.options?.nullInteraction,m=ln(g.points,function(x){return x.x===p.x&&(!x.isNull||!!u)});Xi(m)&&(g.boosted&&g.boost&&(m=g.boost.getPoint(m)),n.push(m))}):n.push(p)),Vt(this,"afterGetHoverData",d={hoverPoint:p}),{hoverPoint:d.hoverPoint,hoverSeries:l,hoverPoints:n}}getPointFromEvent(t){let e=t.target,i;for(;e&&!i;)i=e.point,e=e.parentNode;return i}onTrackerMouseOut(t){let e=this.chart,i=t.relatedTarget,s=e.hoverSeries;this.isDirectTouch=!1,!s||!i||s.stickyTracking||this.inClass(i,"highcharts-tooltip")||this.inClass(i,"highcharts-series-"+s.index)&&this.inClass(i,"highcharts-tracker")||s.onMouseOut()}inClass(t,e){let i=t,s;for(;i;){if(s=qd(i,"class")){if(s.indexOf(e)!==-1)return!0;if(s.indexOf("highcharts-container")!==-1)return!1}i=i.parentElement}}constructor(t,e){this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=e,this.chart=t,this.runChartClick=!!e.chart.events?.click,this.pinchDown=[],this.setDOMEvents(),Vt(this,"afterInit")}normalize(t,e){let i=t.touches,s=i?i.length?i.item(0):Nt(i.changedTouches,t.changedTouches)[0]:t;e||(e=this.getChartPosition());let o=s.pageX-e.left,r=s.pageY-e.top;return no(t,{chartX:Math.round(o/=e.scaleX),chartY:Math.round(r/=e.scaleY)})}onContainerClick(t){let e=this.chart,i=e.hoverPoint,s=this.normalize(t),o=e.plotLeft,r=e.plotTop;!e.cancelClick&&(i&&this.inClass(s.target,"highcharts-tracker")?(Vt(i.series,"click",no(s,{point:i})),e.hoverPoint&&i.firePointEvent("click",s)):(no(s,this.getCoordinates(s)),e.isInsidePlot(s.chartX-o,s.chartY-r,{visiblePlotOnly:!0})&&Vt(e,"click",s)))}onContainerMouseDown(t){let e=(1&(t.buttons||t.button))==1;t=this.normalize(t),A.isFirefox&&t.button!==0&&this.onContainerMouseMove(t),(t.button===void 0||e)&&(this.zoomOption(t),e&&t.preventDefault?.(),this.dragStart(t))}onContainerMouseLeave(t){let{pointer:e}=oo[Nt(ht.hoverChartIndex,-1)]||{};t=this.normalize(t),this.onContainerMouseMove(t),e&&!this.inClass(t.relatedTarget,"highcharts-tooltip")&&(e.reset(),e.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(t){let e=this.chart,i=e.tooltip,s=this.normalize(t);this.setHoverChartIndex(t),(e.mouseIsDown==="mousedown"||this.touchSelect(s))&&this.drag(s),!e.openMenu&&(this.inClass(s.target,"highcharts-tracker")||e.isInsidePlot(s.chartX-e.plotLeft,s.chartY-e.plotTop,{visiblePlotOnly:!0}))&&!i?.shouldStickOnContact(s)&&(this.inClass(s.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(s))}onDocumentTouchEnd(t){this.onDocumentMouseUp(t)}onContainerTouchMove(t){this.touchSelect(t)?this.onContainerMouseMove(t):this.touch(t)}onContainerTouchStart(t){this.touchSelect(t)?this.onContainerMouseDown(t):(this.zoomOption(t),this.touch(t,!0))}onDocumentMouseMove(t){let e=this.chart,i=e.tooltip,s=this.chartPosition,o=this.normalize(t,s);!s||e.isInsidePlot(o.chartX-e.plotLeft,o.chartY-e.plotTop,{visiblePlotOnly:!0})||i?.shouldStickOnContact(o)||o.target!==e.container.ownerDocument&&this.inClass(o.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(t){oo[Nt(ht.hoverChartIndex,-1)]?.pointer?.drop(t)}pinch(t){let e=this,{chart:i,hasZoom:s,lastTouches:o}=e,r=[].map.call(t.touches||[],d=>e.normalize(d)),n=r.length,a=n===1&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),l=i.tooltip,c=n===1&&Nt(l?.options.followTouchMove,!0);n>1?e.initiated=!0:c&&(e.initiated=!1),s&&e.initiated&&!a&&t.cancelable!==!1&&t.preventDefault(),t.type==="touchstart"?(e.pinchDown=r,e.res=!0,i.mouseDownX=t.chartX):c?this.runPointActions(e.normalize(t)):o&&(Vt(i,"touchpan",{originalEvent:t,touches:r},()=>{let d=p=>{let g=p[0],u=p[1]||g;return{x:g.chartX,y:g.chartY,width:u.chartX-g.chartX,height:u.chartY-g.chartY}};i.transform({axes:i.axes.filter(p=>p.zoomEnabled&&(this.zoomHor&&p.horiz||this.zoomVert&&!p.horiz)),to:d(r),from:d(o),trigger:t.type})}),e.res&&(e.res=!1,this.reset(!1,0))),e.lastTouches=r}reset(t,e){let i=this.chart,s=i.hoverSeries,o=i.hoverPoint,r=i.hoverPoints,n=i.tooltip,a=n?.shared?r:o;t&&a&&dn(a).forEach(function(l){l.series.isCartesian&&l.plotX===void 0&&(t=!1)}),t?n&&a&&dn(a).length&&(n.refresh(a),n.shared&&r?r.forEach(function(l){l.setState(l.state,!0),l.series.isCartesian&&(l.series.xAxis.crosshair&&l.series.xAxis.drawCrosshair(null,l),l.series.yAxis.crosshair&&l.series.yAxis.drawCrosshair(null,l))}):o&&(o.setState(o.state,!0),i.axes.forEach(function(l){l.crosshair&&o.series[l.coll]===l&&l.drawCrosshair(null,o)}))):(o&&o.onMouseOut(),r&&r.forEach(function(l){l.setState()}),s&&s.onMouseOut(),n&&n.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(l){l.hideCrosshair()}),i.hoverPoints=i.hoverPoint=void 0)}runPointActions(t,e,i){let s=this.chart,o=s.series,r=s.tooltip?.options.enabled?s.tooltip:void 0,n=!!r&&r.shared,a=e||s.hoverPoint,l=a?.series||s.hoverSeries,c=(!t||t.type!=="touchmove")&&(!!e||l?.directTouch&&this.isDirectTouch),d=this.getHoverData(a,l,o,c,n,t);a=d.hoverPoint,l=d.hoverSeries;let p=d.hoverPoints,g=l?.tooltipOptions.followPointer&&!l.tooltipOptions.split,u=n&&l&&!l.noSharedTooltip;if(a&&(i||a!==s.hoverPoint||r?.isHidden)){if((s.hoverPoints||[]).forEach(function(m){p.indexOf(m)===-1&&m.setState()}),s.hoverSeries!==l&&l.onMouseOver(),this.applyInactiveState(p),(p||[]).forEach(function(m){m.setState("hover")}),s.hoverPoint&&s.hoverPoint.firePointEvent("mouseOut"),!a.series)return;s.hoverPoints=p,s.hoverPoint=a,a.firePointEvent("mouseOver",void 0,()=>{r&&a&&r.refresh(u?p:a,t)})}else if(g&&r&&!r.isHidden){let m=r.getAnchor([{}],t);s.isInsidePlot(m[0],m[1],{visiblePlotOnly:!0})&&r.updatePosition({plotX:m[0],plotY:m[1]})}this.unDocMouseMove||(this.unDocMouseMove=St(s.container.ownerDocument,"mousemove",m=>oo[ht.hoverChartIndex??-1]?.pointer?.onDocumentMouseMove(m)),this.eventsToUnbind.push(this.unDocMouseMove)),s.axes.forEach(function(m){let x,f=m.crosshair?.snap??!0;!f||(x=s.hoverPoint)&&x.series[m.coll]===m||(x=ln(p,y=>y.series?.[m.coll]===m)),x||!f?m.drawCrosshair(t,x):m.hideCrosshair()})}setDOMEvents(){let t=this.chart.container,e=t.ownerDocument;t.onmousedown=this.onContainerMouseDown.bind(this),t.onmousemove=this.onContainerMouseMove.bind(this),t.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(St(t,"mouseenter",this.onContainerMouseEnter.bind(this)),St(t,"mouseleave",this.onContainerMouseLeave.bind(this))),ht.unbindDocumentMouseUp.some(s=>s.doc===e)||ht.unbindDocumentMouseUp.push({doc:e,unbind:St(e,"mouseup",this.onDocumentMouseUp.bind(this))});let i=this.chart.renderTo.parentElement;for(;i&&i.tagName!=="BODY";)this.eventsToUnbind.push(St(i,"scroll",()=>{delete this.chartPosition})),i=i.parentElement;this.eventsToUnbind.push(St(t,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),St(t,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),ht.unbindDocumentTouchEnd||(ht.unbindDocumentTouchEnd=St(e,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),St(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){if(!Zd)return;let t=this.pointerCaptureEventsToUnbind,e=this.chart,i=e.container,s=Nt(e.options.tooltip?.followTouchMove,!0)&&e.series.some(o=>o.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&s?(t.push(St(i,"pointerdown",o=>{o.target?.hasPointerCapture(o.pointerId)&&o.target?.releasePointerCapture(o.pointerId)}),St(i,"pointermove",o=>{e.pointer?.getPointFromEvent(o)?.onMouseOver(o)})),e.styledMode||ro(i,{"touch-action":"none"}),i.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!s&&(t.forEach(o=>o()),t.length=0,e.styledMode||ro(i,{"touch-action":Nt(e.options.chart.style?.["touch-action"],"manipulation")}),i.className=i.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(t){let e=this.chart,i=A.charts[Nt(ht.hoverChartIndex,-1)];if(i&&i!==e){let s={relatedTarget:e.container};t&&!t?.relatedTarget&&Object.assign({},t,s),i.pointer?.onContainerMouseLeave(t||s)}i?.mouseIsDown||(ht.hoverChartIndex=e.index)}touch(t,e){let i,{chart:s,pinchDown:o=[]}=this;this.setHoverChartIndex(),(t=this.normalize(t)).touches.length===1?s.isInsidePlot(t.chartX-s.plotLeft,t.chartY-s.plotTop,{visiblePlotOnly:!0})&&!s.openMenu?(e&&this.runPointActions(t),t.type==="touchmove"&&(i=!!o[0]&&Math.pow(o[0].chartX-t.chartX,2)+Math.pow(o[0].chartY-t.chartY,2)>=16),Nt(i,!0)&&this.pinch(t)):e&&this.reset():t.touches.length===2&&this.pinch(t)}touchSelect(t){return!!(this.chart.zooming.singleTouch&&t.touches&&t.touches.length===1)}zoomOption(t){let e=this.chart,i=e.inverted,s=e.zooming.type||"",o,r;/touch/.test(t.type)&&(s=Nt(e.zooming.pinchType,s)),this.zoomX=o=/x/.test(s),this.zoomY=r=/y/.test(s),this.zoomHor=o&&!i||r&&i,this.zoomVert=r&&!i||o&&i,this.hasZoom=o||r}}ht.unbindDocumentMouseUp=[],function(h){h.compose=function(t){Qd($d,"Core.Pointer")&&St(t,"beforeRender",function(){this.pointer=new h(this,this.options)})}}(ht||(ht={}));let cn=ht;(function(h){h.setLength=function(t,e,i){return Array.isArray(t)?(t.length=e,t):t[i?"subarray":"slice"](0,e)},h.splice=function(t,e,i,s,o=[]){if(Array.isArray(t))return Array.isArray(o)||(o=Array.from(o)),{removed:t.splice(e,i,...o),array:t};let r=Object.getPrototypeOf(t).constructor,n=t[s?"subarray":"slice"](e,e+i),a=new r(t.length-i+o.length);return a.set(t.subarray(0,e),0),a.set(o,e),a.set(t.subarray(e+i),e+o.length),{removed:n,array:a}}})(ps||(ps={}));let{setLength:tc,splice:pn}=ps,{fireEvent:ao,objectEach:Ve,uniqueKey:$e}=z,Fi=class{constructor(h={}){this.autoId=!h.id,this.columns={},this.id=h.id||$e(),this.modified=this,this.rowCount=0,this.versionTag=$e();let t=0;Ve(h.columns||{},(e,i)=>{this.columns[i]=e.slice(),t=Math.max(t,e.length)}),this.applyRowCount(t)}applyRowCount(h){this.rowCount=h,Ve(this.columns,(t,e)=>{t.length!==h&&(this.columns[e]=tc(t,h))})}deleteRows(h,t=1){if(t>0&&h<this.rowCount){let e=0;Ve(this.columns,(i,s)=>{this.columns[s]=pn(i,h,t).array,e=i.length}),this.rowCount=e}ao(this,"afterDeleteRows",{rowIndex:h,rowCount:t}),this.versionTag=$e()}getColumn(h,t){return this.columns[h]}getColumns(h,t){return(h||Object.keys(this.columns)).reduce((e,i)=>(e[i]=this.columns[i],e),{})}getRow(h,t){return(t||Object.keys(this.columns)).map(e=>this.columns[e]?.[h])}setColumn(h,t=[],e=0,i){this.setColumns({[h]:t},e,i)}setColumns(h,t,e){let i=this.rowCount;Ve(h,(s,o)=>{this.columns[o]=s.slice(),i=s.length}),this.applyRowCount(i),e?.silent||(ao(this,"afterSetColumns"),this.versionTag=$e())}setRow(h,t=this.rowCount,e,i){let{columns:s}=this,o=e?this.rowCount+1:t+1;Ve(h,(r,n)=>{let a=s[n]||i?.addColumns!==!1&&Array(o);a&&(e?a=pn(a,t,0,!0,[r]).array:a[t]=r,s[n]=a)}),o>this.rowCount&&this.applyRowCount(o),i?.silent||(ao(this,"afterSetRows"),this.versionTag=$e())}},{extend:ec,merge:ic,pick:gn}=z;(function(h){function t(e,i,s){let o=this.legendItem=this.legendItem||{},{chart:r,options:n}=this,{baseline:a=0,symbolWidth:l,symbolHeight:c}=e,d=this.symbol||"circle",p=c/2,g=r.renderer,u=o.group,m=a-Math.round((e.fontMetrics?.b||c)*(s?.4:.3)),x={},f,y=n.marker,b=0;if(r.styledMode||(x["stroke-width"]=Math.min(n.lineWidth||0,24),n.dashStyle?x.dashstyle=n.dashStyle:n.linecap==="square"||(x["stroke-linecap"]="round")),o.line=g.path().addClass("highcharts-graph").attr(x).add(u),s&&(o.area=g.path().addClass("highcharts-area").add(u)),x["stroke-linecap"]&&(b=Math.min(o.line.strokeWidth(),l)/2),l){let v=[["M",b,m],["L",l-b,m]];o.line.attr({d:v}),o.area?.attr({d:[...v,["L",l-b,a],["L",b,a]]})}if(y&&y.enabled!==!1&&l){let v=Math.min(gn(y.radius,p),p);d.indexOf("url")===0&&(y=ic(y,{width:c,height:c}),v=0),o.symbol=f=g.symbol(d,l/2-v,m-v,2*v,2*v,ec({context:"legend"},y)).addClass("highcharts-point").add(u),f.isMarker=!0}}h.areaMarker=function(e,i){t.call(this,e,i,!0)},h.lineMarker=t,h.rectangle=function(e,i){let s=i.legendItem||{},o=e.options,r=e.symbolHeight,n=o.squareSymbol,a=n?r:e.symbolWidth;s.symbol=this.chart.renderer.rect(n?(e.symbolWidth-r)/2:0,e.baseline-r+1,a,r,gn(e.options.symbolRadius,r/2)).addClass("highcharts-point").attr({zIndex:3}).add(s.group)}})(gs||(gs={}));let un=gs,{defaultOptions:mn}=Mt,{extend:sc,extendClass:oc,merge:rc}=z;(function(h){function t(e,i){let s=mn.plotOptions||{},o=i.defaultOptions,r=i.prototype;return r.type=e,r.pointClass||(r.pointClass=Ut),!h.seriesTypes[e]&&(o&&(s[e]=o),h.seriesTypes[e]=i,!0)}h.seriesTypes=A.seriesTypes,h.registerSeriesType=t,h.seriesType=function(e,i,s,o,r){let n=mn.plotOptions||{};if(i=i||"",n[e]=rc(n[i],s),delete h.seriesTypes[e],t(e,oc(h.seriesTypes[i]||function(){},o)),h.seriesTypes[e].prototype.type=e,r){class a extends Ut{}sc(a.prototype,r),h.seriesTypes[e].prototype.pointClass=a}return h.seriesTypes[e]}})(us||(us={}));let st=us,{animObject:fn,setAnimation:nc}=pt,{defaultOptions:Gi}=Mt,{registerEventOptions:ac}=Ai,{svg:hc,win:lc}=A,{seriesTypes:Ae}=st,{format:dc}=wt,{arrayMax:ho,arrayMin:xn,clamp:yn,correctFloat:bn,crisp:cc,defined:nt,destroyObjectProperties:pc,diffObjects:gc,erase:vn,error:ji,extend:Oe,find:uc,fireEvent:ot,getClosestDistance:mc,getNestedProperty:kn,insertItem:Mn,isArray:wn,isNumber:lt,isString:fc,merge:Ze,objectEach:lo,pick:it,removeEvent:xc,syncTimeout:Sn}=z;class At{constructor(){this.zoneAxis="y"}init(t,e){let i;ot(this,"init",{options:e}),this.dataTable??(this.dataTable=new Fi);let s=t.series;this.eventsToUnbind=[],this.chart=t,this.options=this.setOptions(e);let o=this.options,r=o.visible!==!1;this.linkedSeries=[],this.bindAxes(),Oe(this,{name:o.name,state:"",visible:r,selected:o.selected===!0}),ac(this,o),(o.events?.click||o.point?.events?.click||o.allowPointSelect)&&(t.runTrackerClick=!0),this.getColor(),this.getSymbol(),this.isCartesian&&(t.hasCartesianSeries=!0),s.length&&(i=s[s.length-1]),this._i=it(i?._i,-1)+1,this.opacity=this.options.opacity,t.orderItems("series",Mn(this,s)),o.dataSorting?.enabled?this.setDataSortingOptions():this.points||this.data||this.setData(o.data,!1),ot(this,"afterInit")}is(t){return Ae[t]&&this instanceof Ae[t]}bindAxes(){let t,e=this,i=e.options,s=e.chart;ot(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(o){(s[o]||[]).forEach(function(r){t=r.options,(it(i[o],0)===r.index||i[o]!==void 0&&i[o]===t.id)&&(Mn(e,r.series),e[o]=r,r.isDirty=!0)}),e[o]||e.optionalAxis===o||ji(18,!0,s)})}),ot(this,"afterBindAxes")}hasData(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.dataTable.rowCount>0}hasMarkerChanged(t,e){let i=t.marker,s=e.marker||{};return i&&(s.enabled&&!i.enabled||s.symbol!==i.symbol||s.height!==i.height||s.width!==i.width)}autoIncrement(t){let e,i=this.options,{pointIntervalUnit:s,relativeXValue:o}=this.options,r=this.chart.time,n=this.xIncrement??r.parse(i.pointStart)??0;if(this.pointInterval=e=it(this.pointInterval,i.pointInterval,1),o&&lt(t)&&(e*=t),s){let a=r.toParts(n);s==="day"?a[2]+=e:s==="month"?a[1]+=e:s==="year"&&(a[0]+=e),e=r.makeTime.apply(r,a)-n}return o&&lt(t)?n+e:(this.xIncrement=n+e,n)}setDataSortingOptions(){let t=this.options;Oe(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),nt(t.pointRange)||(t.pointRange=1)}setOptions(t){let e,i=this.chart,s=i.options.plotOptions,o=i.userOptions||{},r=Ze(t),n=i.styledMode,a={plotOptions:s,userOptions:r};ot(this,"setOptions",a);let l=a.plotOptions[this.type],c=o.plotOptions||{},d=c.series||{},p=Gi.plotOptions[this.type]||{},g=c[this.type]||{};l.dataLabels=this.mergeArrays(p.dataLabels,l.dataLabels),this.userOptions=a.userOptions;let u=Ze(l,s.series,g,r);this.tooltipOptions=Ze(Gi.tooltip,Gi.plotOptions.series?.tooltip,p?.tooltip,i.userOptions.tooltip,c.series?.tooltip,g.tooltip,r.tooltip),this.stickyTracking=it(r.stickyTracking,g.stickyTracking,d.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||u.stickyTracking),l.marker===null&&delete u.marker,this.zoneAxis=u.zoneAxis||"y";let m=this.zones=(u.zones||[]).map(x=>Pt({},x));return(u.negativeColor||u.negativeFillColor)&&!u.zones&&(e={value:u[this.zoneAxis+"Threshold"]||u.threshold||0,className:"highcharts-negative"},n||(e.color=u.negativeColor,e.fillColor=u.negativeFillColor),m.push(e)),m.length&&nt(m[m.length-1].value)&&m.push(n?{}:{color:this.color,fillColor:this.fillColor}),ot(this,"afterSetOptions",{options:u}),u}getName(){return this.options.name??dc(this.chart.options.lang.seriesName,this,this.chart)}getCyclic(t,e,i){let s,o,r=this.chart,n=`${t}Index`,a=`${t}Counter`,l=i?.length||r.options.chart.colorCount;!e&&(nt(o=it(t==="color"?this.options.colorIndex:void 0,this[n]))?s=o:(r.series.length||(r[a]=0),s=r[a]%l,r[a]+=1),i&&(e=i[s])),s!==void 0&&(this[n]=s),this[t]=e}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||Gi.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let t=this.options.marker;this.getCyclic("symbol",t.symbol,this.chart.options.symbols)}getColumn(t,e){return(e?this.dataTable.modified:this.dataTable).getColumn(t,!0)||[]}findPointIndex(t,e){let i,s,o,{id:r,x:n}=t,a=this.points,l=this.options.dataSorting,c=this.cropStart||0;if(r){let d=this.chart.get(r);d instanceof Ut&&(i=d)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let d=p=>!p.touched&&p.index===t.index;if(l?.matchByName?d=p=>!p.touched&&p.name===t.name:this.options.relativeXValue&&(d=p=>!p.touched&&p.options.x===t.x),!(i=uc(a,d)))return}return i&&(o=i?.index)!==void 0&&(s=!0),o===void 0&&lt(n)&&(o=this.getColumn("x").indexOf(n,e)),o!==-1&&o!==void 0&&this.cropped&&(o=o>=c?o-c:o),!s&&lt(o)&&a[o]?.touched&&(o=void 0),o}updateData(t,e){let{options:i,requireSorting:s}=this,o=i.dataSorting,r=this.points,n=[],a=t.length===r.length,l,c,d,p,g=!0;if(this.xIncrement=null,t.forEach((m,x)=>{let f,y=nt(m)&&this.pointClass.prototype.optionsToObject.call({series:this},m)||{},{id:b,x:v}=y;b||lt(v)?((f=this.findPointIndex(y,p))===-1||f===void 0?n.push(m):r[f]&&m!==i.data?.[f]?(r[f].update(m,!1,void 0,!1),r[f].touched=!0,s&&(p=f+1)):r[f]&&(r[f].touched=!0),(!a||x!==f||o?.enabled||this.hasDerivedData)&&(l=!0)):n.push(m)},this),l)for(c=r.length;c--;)(d=r[c])&&!d.touched&&d.remove?.(!1,e);else a&&!o?.enabled?(t.forEach((m,x)=>{m===r[x].y||r[x].destroyed||r[x].update(m,!1,void 0,!1)}),n.length=0):g=!1;if(r.forEach(m=>{m&&(m.touched=!1)}),!g)return!1;n.forEach(m=>{this.addPoint(m,!1,void 0,void 0,!1)},this);let u=this.getColumn("x");return this.xIncrement===null&&u.length&&(this.xIncrement=ho(u),this.autoIncrement()),!0}dataColumnKeys(){return["x",...this.pointArrayMap||["y"]]}setData(t,e=!0,i,s){let o=this.points,r=o?.length||0,n=this.options,a=this.chart,l=n.dataSorting,c=this.xAxis,d=n.turboThreshold,p=this.dataTable,g=this.dataColumnKeys(),u=this.pointValKey||"y",m=(this.pointArrayMap||[]).length,x=n.keys,f,y,b=0,v=1,S;a.options.chart.allowMutatingData||(n.data&&delete this.options.data,this.userOptions.data&&delete this.userOptions.data,S=Ze(!0,t));let M=(t=S||t||[]).length;if(l?.enabled&&(t=this.sortData(t)),a.options.chart.allowMutatingData&&s!==!1&&M&&r&&!this.cropped&&!this.hasGroupedData&&this.visible&&!this.boosted&&(y=this.updateData(t,i)),!y){this.xIncrement=null,this.colorCounter=0;let k=d&&M>d;if(k){let w=this.getFirstValidPoint(t),C=this.getFirstValidPoint(t,M-1,-1),T=P=>!!(wn(P)&&(x||lt(P[0])));if(lt(w)&&lt(C)){let P=[],O=[];for(let L of t)P.push(this.autoIncrement()),O.push(L);p.setColumns({x:P,[u]:O})}else if(T(w)&&T(C))if(m){let P=+(w.length===m),O=Array(g.length).fill(0).map(()=>[]);for(let L of t){P&&O[0].push(this.autoIncrement());for(let I=P;I<=m;I++)O[I]?.push(L[I-P])}p.setColumns(g.reduce((L,I,D)=>(L[I]=O[D],L),{}))}else{x&&(b=x.indexOf("x"),v=x.indexOf("y"),b=b>=0?b:0,v=v>=0?v:1),w.length===1&&(v=0);let P=[],O=[];if(b===v)for(let L of t)P.push(this.autoIncrement()),O.push(L[v]);else for(let L of t)P.push(L[b]),O.push(L[v]);p.setColumns({x:P,[u]:O})}else k=!1}if(!k){let w=g.reduce((C,T)=>(C[T]=[],C),{});for(f=0;f<M;f++){let C=this.pointClass.prototype.applyOptions.apply({series:this},[t[f]]);for(let T of g)w[T][f]=C[T]}p.setColumns(w)}for(fc(this.getColumn("y")[0])&&ji(14,!0,a),this.data=[],this.options.data=this.userOptions.data=t,f=r;f--;)o[f]?.destroy();c&&(c.minRange=c.userMinRange),this.isDirty=a.isDirtyBox=!0,this.isDirtyData=!!o,i=!1}n.legendType==="point"&&(this.processData(),this.generatePoints()),e&&a.redraw(i)}sortData(t){let e=this,i=e.options.dataSorting.sortKey||"y",s=function(o,r){return nt(r)&&o.pointClass.prototype.optionsToObject.call({series:o},r)||{}};return t.forEach(function(o,r){t[r]=s(e,o),t[r].index=r},this),t.concat().sort((o,r)=>{let n=kn(i,o),a=kn(i,r);return a<n?-1:+(a>n)}).forEach(function(o,r){o.x=r},this),e.linkedSeries&&e.linkedSeries.forEach(function(o){let r=o.options,n=r.data;!r.dataSorting?.enabled&&n&&(n.forEach(function(a,l){n[l]=s(o,a),t[l]&&(n[l].x=t[l].x,n[l].index=l)}),o.setData(n,!1))}),t}getProcessedData(t){let e=this,{dataTable:i,isCartesian:s,options:o,xAxis:r}=e,n=o.cropThreshold,a=t||e.getExtremesFromAll,l=r?.logarithmic,c=i.rowCount,d,p,g=0,u,m,x,f=e.getColumn("x"),y=i,b=!1;return r&&(m=(u=r.getExtremes()).min,x=u.max,b=!!(r.categories&&!r.names.length),s&&e.sorted&&!a&&(!n||c>n||e.forceCrop)&&(f[c-1]<m||f[0]>x?y=new Fi:e.getColumn(e.pointValKey||"y").length&&(f[0]<m||f[c-1]>x)&&(y=(d=this.cropData(i,m,x)).modified,g=d.start,p=!0))),f=y.getColumn("x")||[],{modified:y,cropped:p,cropStart:g,closestPointRange:mc([l?f.map(l.log2lin):f],()=>e.requireSorting&&!b&&ji(15,!1,e.chart))}}processData(t){let e=this.xAxis,i=this.dataTable;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;let s=this.getProcessedData();i.modified=s.modified,this.cropped=s.cropped,this.cropStart=s.cropStart,this.closestPointRange=this.basePointRange=s.closestPointRange,ot(this,"afterProcessData")}cropData(t,e,i){let s=t.getColumn("x",!0)||[],o=s.length,r={},n,a,l=0,c=o;for(n=0;n<o;n++)if(s[n]>=e){l=Math.max(0,n-1);break}for(a=n;a<o;a++)if(s[a]>i){c=a+1;break}for(let d of this.dataColumnKeys()){let p=t.getColumn(d,!0);p&&(r[d]=p.slice(l,c))}return{modified:new Fi({columns:r}),start:l,end:c}}generatePoints(){let t=this.options,e=this.processedData||t.data,i=this.dataTable.modified,s=this.getColumn("x",!0),o=this.pointClass,r=i.rowCount,n=this.cropStart||0,a=this.hasGroupedData,l=t.keys,c=[],d=t.dataGrouping?.groupAll?n:0,p=this.xAxis?.categories,g=this.pointArrayMap||["y"],u=this.dataColumnKeys(),m,x,f,y,b=this.data,v;if(!b&&!a){let S=[];S.length=e?.length||0,b=this.data=S}for(l&&a&&(this.options.keys=!1),y=0;y<r;y++)x=n+y,a?((f=new o(this,i.getRow(y,u)||[])).dataGroup=this.groupMap[d+y],f.dataGroup?.options&&(f.options=f.dataGroup.options,Oe(f,f.dataGroup.options),delete f.dataLabels)):(f=b[x],v=e?e[x]:i.getRow(y,g),f||v===void 0||(b[x]=f=new o(this,v,s[y]))),f&&(f.index=a?d+y:x,c[y]=f,f.category=p?.[f.x]??f.x,f.key=f.name??f.category);if(this.options.keys=l,b&&(r!==(m=b.length)||a))for(y=0;y<m;y++)y!==n||a||(y+=r),b[y]&&(b[y].destroyElements(),b[y].plotX=void 0);this.data=b,this.points=c,ot(this,"afterGeneratePoints")}getXExtremes(t){return{min:xn(t),max:ho(t)}}getExtremes(t,e){let{xAxis:i,yAxis:s}=this,o=e||this.getExtremesFromAll||this.options.getExtremesFromAll,r=o&&this.cropped?this.dataTable:this.dataTable.modified,n=r.rowCount,a=t||this.stackedYData,l=a?[a]:(this.keysAffectYAxis||this.pointArrayMap||["y"])?.map(S=>r.getColumn(S,!0)||[])||[],c=this.getColumn("x",!0),d=[],p=this.requireSorting&&!this.is("column")?1:0,g=!!s&&s.positiveValuesOnly,u=o||this.cropped||!i,m,x,f,y=0,b=0;for(i&&(y=(m=i.getExtremes()).min,b=m.max),f=0;f<n;f++)if(x=c[f],u||(c[f+p]||x)>=y&&(c[f-p]||x)<=b)for(let S of l){let M=S[f];lt(M)&&(M>0||!g)&&d.push(M)}let v={activeYData:d,dataMin:xn(d),dataMax:ho(d)};return ot(this,"afterGetExtremes",{dataExtremes:v}),v}applyExtremes(){let t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t}getFirstValidPoint(t,e=0,i=1){let s=t.length,o=e;for(;o>=0&&o<s;){if(nt(t[o]))return t[o];o+=i}}translate(){this.generatePoints();let t=this.options,e=t.stacking,i=this.xAxis,s=this.enabledDataSorting,o=this.yAxis,r=this.points,n=r.length,a=this.pointPlacementToXValue(),l=!!a,c=t.threshold,d=t.startFromThreshold?c:0,p=t?.nullInteraction&&o.len,g,u,m,x,f=Number.MAX_VALUE;function y(b){return yn(b,-1e9,1e9)}for(g=0;g<n;g++){let b,v=r[g],S=v.x,M,k,w=v.y,C=v.low,T=e&&o.stacking?.stacks[(this.negStacks&&w<(d?0:c)?"-":"")+this.stackKey];v.plotX=lt(u=i.translate(S,!1,!1,!1,!0,a))?bn(y(u)):void 0,e&&this.visible&&T&&T[S]&&(x=this.getStackIndicator(x,S,this.index),!v.isNull&&x.key&&(k=(M=T[S]).points[x.key]),M&&wn(k)&&(C=k[0],w=k[1],C===d&&x.key===T[S].base&&(C=it(lt(c)?c:o.min)),o.positiveValuesOnly&&nt(C)&&C<=0&&(C=void 0),v.total=v.stackTotal=it(M.total),v.percentage=nt(v.y)&&M.total?v.y/M.total*100:void 0,v.stackY=w,this.irregularWidths||M.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),v.yBottom=nt(C)?y(o.translate(C,!1,!0,!1,!0)):void 0,this.dataModify&&(w=this.dataModify.modifyValue(w,g)),lt(w)&&v.plotX!==void 0?b=lt(b=o.translate(w,!1,!0,!1,!0))?y(b):void 0:!lt(w)&&p&&(b=p),v.plotY=b,v.isInside=this.isPointInside(v),v.clientX=l?bn(i.translate(S,!1,!1,!1,!0,a)):u,v.negative=(v.y||0)<(c||0),v.isNull||v.visible===!1||(m!==void 0&&(f=Math.min(f,Math.abs(u-m))),m=u),v.zone=this.zones.length?v.getZone():void 0,!v.graphic&&this.group&&s&&(v.isNew=!0)}this.closestPointRangePx=f,ot(this,"afterTranslate")}getValidPoints(t,e,i){let s=this.chart;return(t||this.points||[]).filter(function(o){let{plotX:r,plotY:n}=o;return!!((i||!o.isNull&&lt(n))&&(!e||s.isInsidePlot(r,n,{inverted:s.inverted})))&&o.visible!==!1})}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}setClip(){let{chart:t,group:e,markerGroup:i}=this,s=t.sharedClips,o=t.renderer,r=t.getClipBox(this),n=this.getSharedClipKey(),a=s[n];a?a.animate(r):s[n]=a=o.clipRect(r),e&&e.clip(this.options.clip===!1?void 0:a),i&&i.clip()}animate(t){let{chart:e,group:i,markerGroup:s}=this,o=e.inverted,r=fn(this.options.animation),n=[this.getSharedClipKey(),r.duration,r.easing,r.defer].join(","),a=e.sharedClips[n],l=e.sharedClips[n+"m"];if(t&&i){let c=e.getClipBox(this);if(a)a.attr("height",c.height);else{c.width=0,o&&(c.x=e.plotHeight),a=e.renderer.clipRect(c),e.sharedClips[n]=a;let d={x:-99,y:-99,width:o?e.plotWidth+199:99,height:o?99:e.plotHeight+199};l=e.renderer.clipRect(d),e.sharedClips[n+"m"]=l}i.clip(a),s?.clip(l)}else if(a&&!a.hasClass("highcharts-animating")){let c=e.getClipBox(this),d=r.step;(s?.element.childNodes.length||e.series.length>1)&&(r.step=function(p,g){d&&d.apply(g,arguments),g.prop==="width"&&l?.element&&l.attr(o?"height":"width",p+99)}),a.addClass("highcharts-animating").animate(c,r)}}afterAnimate(){this.setClip(),lo(this.chart.sharedClips,(t,e,i)=>{t&&!this.chart.container.querySelector(`[clip-path="url(#${t.id})"]`)&&(t.destroy(),delete i[e])}),this.finishedAnimating=!0,ot(this,"afterAnimate")}drawPoints(t=this.points){let e,i,s,o,r,n,a,l=this.chart,c=l.styledMode,{colorAxis:d,options:p}=this,g=p.marker,u=p.nullInteraction,m=this[this.specialGroup||"markerGroup"],x=this.xAxis,f=it(g.enabled,!x||!!x.isRadial||null,this.closestPointRangePx>=g.enabledThreshold*g.radius);if(g.enabled!==!1||this._hasPointMarkers)for(e=0;e<t.length;e++){o=(s=(i=t[e]).graphic)?"animate":"attr",r=i.marker||{},n=!!i.marker;let y=i.isNull;if((f&&!nt(r.enabled)||r.enabled)&&(!y||u)&&i.visible!==!1){let b=it(r.symbol,this.symbol,"rect");a=this.markerAttribs(i,i.selected&&"select"),this.enabledDataSorting&&(i.startXPos=x.reversed?-(a.width||0):x.width);let v=i.isInside!==!1;if(!s&&v&&((a.width||0)>0||i.hasImage)&&(i.graphic=s=l.renderer.symbol(b,a.x,a.y,a.width,a.height,n?r:g).add(m),this.enabledDataSorting&&l.hasRendered&&(s.attr({x:i.startXPos}),o="animate")),s&&o==="animate"&&s[v?"show":"hide"](v).animate(a),s){let S=this.pointAttribs(i,c||!i.selected?void 0:"select");c?d&&s.css({fill:S.fill}):s[o](S)}s&&s.addClass(i.getClassName(),!0)}else s&&(i.graphic=s.destroy())}}markerAttribs(t,e){let i=this.options,s=i.marker,o=t.marker||{},r=o.symbol||s.symbol,n={},a,l,c=it(o.radius,s?.radius);e&&(a=s.states[e],l=o.states&&o.states[e],c=it(l?.radius,a?.radius,c&&c+(a?.radiusPlus||0))),t.hasImage=r&&r.indexOf("url")===0,t.hasImage&&(c=0);let d=t.pos();return lt(c)&&d&&(i.crisp&&(d[0]=cc(d[0],t.hasImage?0:r==="rect"?s?.lineWidth||0:1)),n.x=d[0]-c,n.y=d[1]-c),c&&(n.width=n.height=2*c),n}pointAttribs(t,e){let i=this.options,s=i.marker,o=t?.options,r=o?.marker||{},n=o?.color,a=t?.color,l=t?.zone?.color,c,d,p=this.color,g,u,m=it(r.lineWidth,s.lineWidth),x=t?.isNull&&i.nullInteraction?0:1;return p=n||l||a||p,g=r.fillColor||s.fillColor||p,u=r.lineColor||s.lineColor||p,e=e||"normal",c=s.states[e]||{},m=it((d=r.states&&r.states[e]||{}).lineWidth,c.lineWidth,m+it(d.lineWidthPlus,c.lineWidthPlus,0)),g=d.fillColor||c.fillColor||g,u=d.lineColor||c.lineColor||u,{stroke:u,"stroke-width":m,fill:g,opacity:x=it(d.opacity,c.opacity,x)}}destroy(t){let e,i,s=this,o=s.chart,r=/AppleWebKit\/533/.test(lc.navigator.userAgent),n=s.data||[];for(ot(s,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(s.axisTypes||[]).forEach(function(a){i=s[a],i?.series&&(vn(i.series,s),i.isDirty=i.forceRedraw=!0)}),s.legendItem&&s.chart.legend.destroyItem(s),e=n.length;e--;)n[e]?.destroy?.();for(let a of s.zones)pc(a,void 0,!0);z.clearTimeout(s.animationTimeout),lo(s,function(a,l){a instanceof Dt&&!a.survive&&a[r&&l==="group"?"hide":"destroy"]()}),o.hoverSeries===s&&(o.hoverSeries=void 0),vn(o.series,s),o.orderItems("series"),lo(s,function(a,l){t&&l==="hcEvents"||delete s[l]})}applyZones(){let{area:t,chart:e,graph:i,zones:s,points:o,xAxis:r,yAxis:n,zoneAxis:a}=this,{inverted:l,renderer:c}=e,d=this[`${a}Axis`],{isXAxis:p,len:g=0,minPointOffset:u=0}=d||{},m=(i?.strokeWidth()||0)/2+1,x=(f,y=0,b=0)=>{l&&(b=g-b);let{translated:v=0,lineClip:S}=f,M=b-v;S?.push(["L",y,Math.abs(M)<m?b-m*(M<=0?-1:1):v])};if(s.length&&(i||t)&&d&&lt(d.min)){let f=d.getExtremes().max+u,y=S=>{S.forEach((M,k)=>{(M[0]==="M"||M[0]==="L")&&(S[k]=[M[0],p?g-M[1]:M[1],p?M[2]:g-M[2]])})};if(s.forEach(S=>{S.lineClip=[],S.translated=yn(d.toPixels(it(S.value,f),!0)||0,0,g)}),i&&!this.showLine&&i.hide(),t&&t.hide(),a==="y"&&o.length<r.len)for(let S of o){let{plotX:M,plotY:k,zone:w}=S,C=w&&s[s.indexOf(w)-1];w&&x(w,M,k),C&&x(C,M,k)}let b=[],v=d.toPixels(d.getExtremes().min-u,!0);s.forEach(S=>{let M=S.lineClip||[],k=Math.round(S.translated||0);r.reversed&&M.reverse();let{clip:w,simpleClip:C}=S,T=0,P=0,O=r.len,L=n.len;p?(T=k,O=v):(P=k,L=v);let I=[["M",T,P],["L",O,P],["L",O,L],["L",T,L],["Z"]],D=[I[0],...M,I[1],I[2],...b,I[3],I[4]];b=M.reverse(),v=k,l&&(y(D),t&&y(I)),w?(w.animate({d:D}),C?.animate({d:I})):(w=S.clip=c.path(D),t&&(C=S.simpleClip=c.path(I))),i&&S.graph?.clip(w),t&&S.area?.clip(C)})}else this.visible&&(i&&i.show(),t&&t.show())}plotGroup(t,e,i,s,o){let r=this[t],n=!r,a={visibility:i,zIndex:s||.1};return nt(this.opacity)&&!this.chart.styledMode&&this.state!=="inactive"&&(a.opacity=this.opacity),r||(this[t]=r=this.chart.renderer.g().add(o)),r.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(nt(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(r.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),r.attr(a)[n?"attr":"animate"](this.getPlotBox(e)),r}getPlotBox(t){let e=this.xAxis,i=this.yAxis,s=this.chart,o=s.inverted&&!s.polar&&e&&this.invertible&&t==="series";return s.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:s.plotLeft,translateY:i?i.top:s.plotTop,rotation:90*!!o,rotationOriginX:o?(e.len-i.len)/2:0,rotationOriginY:o?(e.len+i.len)/2:0,scaleX:o?-1:1,scaleY:1}}removeEvents(t){let{eventsToUnbind:e}=this;t||xc(this),e.length&&(e.forEach(i=>{i()}),e.length=0)}render(){let t=this,{chart:e,options:i,hasRendered:s}=t,o=fn(i.animation),r=t.visible?"inherit":"hidden",n=i.zIndex,a=e.seriesGroup,l=t.finishedAnimating?0:o.duration;ot(this,"render"),t.plotGroup("group","series",r,n,a),t.markerGroup=t.plotGroup("markerGroup","markers",r,n,a),i.clip!==!1&&t.setClip(),l&&t.animate?.(!0),t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels?.(),t.redrawPoints?.(),i.enableMouseTracking&&t.drawTracker?.(),l&&t.animate?.(),s||(l&&o.defer&&(l+=o.defer),t.animationTimeout=Sn(()=>{t.afterAnimate()},l||0)),t.isDirty=!1,t.hasRendered=!0,ot(t,"afterRender")}redraw(){let t=this.isDirty||this.isDirtyData;this.translate(),this.render(),t&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(t,e){let{xAxis:i,yAxis:s}=this,o=this.chart.inverted;return this.searchKDTree({clientX:o?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:o?s.len-t.chartX+s.pos:t.chartY-s.pos},e,t)}buildKDTree(t){this.buildingKdTree=!0;let e=this,i=e.options,s=i.findNearestPointBy.indexOf("y")>-1?2:1;delete e.kdTree,Sn(function(){e.kdTree=function o(r,n,a){let l,c,d=r?.length;if(d)return l=e.kdAxisArray[n%a],r.sort((p,g)=>(p[l]||0)-(g[l]||0)),{point:r[c=Math.floor(d/2)],left:o(r.slice(0,c),n+1,a),right:o(r.slice(c+1),n+1,a)}}(e.getValidPoints(void 0,!e.directTouch,i?.nullInteraction),s,s),e.buildingKdTree=!1},i.kdNow||t?.type==="touchstart"?0:1)}searchKDTree(t,e,i,s,o){let r=this,[n,a]=this.kdAxisArray,l=e?"distX":"dist",c=(r.options.findNearestPointBy||"").indexOf("y")>-1?2:1,d=!!r.isBubble,p=s||((u,m,x)=>{let f=u[x]||0,y=m[x]||0;return[f===y&&u.index>m.index||f<y?u:m,!1]}),g=o||((u,m)=>u<m);if(this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function u(m,x,f,y){let b=x.point,v=r.kdAxisArray[f%y],S=b,M=!1;(function(T,P){let O=T[n],L=P[n],I=nt(O)&&nt(L)?O-L:null,D=T[a],E=P[a],B=nt(D)&&nt(E)?D-E:0,K=d&&P.marker?.radius||0;P.dist=Math.sqrt((I&&I*I||0)+B*B)-K,P.distX=nt(I)?Math.abs(I)-K:Number.MAX_VALUE})(m,b);let k=(m[v]||0)-(b[v]||0)+(d&&b.marker?.radius||0),w=k<0?"left":"right",C=k<0?"right":"left";return x[w]&&([S,M]=p(b,u(m,x[w],f+1,y),l)),x[C]&&g(Math.sqrt(k*k),S[l],M)&&(S=p(S,u(m,x[C],f+1,y),l)[0]),S}(t,this.kdTree,c,c)}pointPlacementToXValue(){let{options:t,xAxis:e}=this,i=t.pointPlacement;return i==="between"&&(i=e.reversed?-.5:.5),lt(i)?i*(t.pointRange||e.pointRange):0}isPointInside(t){let{chart:e,xAxis:i,yAxis:s}=this,{plotX:o=-1,plotY:r=-1}=t;return r>=0&&r<=(s?s.len:e.plotHeight)&&o>=0&&o<=(i?i.len:e.plotWidth)}drawTracker(){let t=this,e=t.options,i=e.trackByArea,s=[].concat((i?t.areaPath:t.graphPath)||[]),o=t.chart,r=o.pointer,n=o.renderer,a=o.options.tooltip?.snap||0,l=()=>{e.enableMouseTracking&&o.hoverSeries!==t&&t.onMouseOver()},c="rgba(192,192,192,"+(hc?1e-4:.002)+")",d=t.tracker;d?d.attr({d:s}):t.graph&&(t.tracker=d=n.path(s).attr({visibility:t.visible?"inherit":"hidden",zIndex:2}).addClass(i?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),o.styledMode||d.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:c,fill:i?c:"none","stroke-width":t.graph.strokeWidth()+(i?0:2*a)}),[t.tracker,t.markerGroup,t.dataLabelsGroup].forEach(p=>{p&&(p.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",g=>{r?.onTrackerMouseOut(g)}),e.cursor&&!o.styledMode&&p.css({cursor:e.cursor}),p.on("touchstart",l))})),ot(this,"afterDrawTracker")}addPoint(t,e,i,s,o){let r,n,a=this.options,{chart:l,data:c,dataTable:d,xAxis:p}=this,g=p?.hasNames&&p.names,u=a.data,m=this.getColumn("x");e=it(e,!0);let x={series:this};this.pointClass.prototype.applyOptions.apply(x,[t]);let f=x.x;if(n=m.length,this.requireSorting&&f<m[n-1])for(r=!0;n&&m[n-1]>f;)n--;d.setRow(x,n,!0,{addColumns:!1}),g&&x.name&&(g[f]=x.name),u?.splice(n,0,t),(r||this.processedData)&&(this.data.splice(n,0,null),this.processData()),a.legendType==="point"&&this.generatePoints(),i&&(c[0]&&c[0].remove?c[0].remove(!1):([c,u].filter(nt).forEach(y=>{y.shift()}),d.deleteRows(0))),o!==!1&&ot(this,"addPoint",{point:x}),this.isDirty=!0,this.isDirtyData=!0,e&&l.redraw(s)}removePoint(t,e,i){let s=this,{chart:o,data:r,points:n,dataTable:a}=s,l=r[t],c=function(){[n?.length===r.length?n:void 0,r,s.options.data].filter(nt).forEach(d=>{d.splice(t,1)}),a.deleteRows(t),l?.destroy(),s.isDirty=!0,s.isDirtyData=!0,e&&o.redraw()};nc(i,o),e=it(e,!0),l?l.firePointEvent("remove",null,c):c()}remove(t,e,i,s){let o=this,r=o.chart;function n(){o.destroy(s),r.isDirtyLegend=r.isDirtyBox=!0,r.linkSeries(s),it(t,!0)&&r.redraw(e)}i!==!1?ot(o,"remove",null,n):n()}update(t,e){ot(this,"update",{options:t=gc(t,this.userOptions)});let i=this,s=i.chart,o=i.userOptions,r=i.initialType||i.type,n=s.options.plotOptions,a=Ae[r].prototype,l=i.finishedAnimating&&{animation:!1},c={},d,p,g=At.keepProps.slice(),u=t.type||o.type||s.options.chart.type,m=!(this.hasDerivedData||u&&u!==this.type||t.keys!==void 0||t.pointStart!==void 0||t.pointInterval!==void 0||t.relativeXValue!==void 0||t.joinBy||t.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(f=>i.hasOptionChanged(f)));u=u||r,m?(g.push.apply(g,At.keepPropsForPoints),t.visible!==!1&&g.push("area","graph"),i.parallelArrays.forEach(function(f){g.push(f+"Data")}),t.data&&(t.dataSorting&&Oe(i.options.dataSorting,t.dataSorting),this.setData(t.data,!1))):this.dataTable.modified=this.dataTable,t=Ze(o,{index:o.index===void 0?i.index:o.index,pointStart:n?.series?.pointStart??o.pointStart??i.getColumn("x")[0]},!m&&{data:i.options.data},t,l),m&&t.data&&(t.data=i.options.data),(g=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(g)).forEach(function(f){g[f]=i[f],delete i[f]});let x=!1;if(Ae[u]){if(x=u!==i.type,i.remove(!1,!1,!1,!0),x)if(s.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(i,Ae[u].prototype);else{let f=Object.hasOwnProperty.call(i,"hcEvents")&&i.hcEvents;for(p in a)i[p]=void 0;Oe(i,Ae[u].prototype),f?i.hcEvents=f:delete i.hcEvents}}else ji(17,!0,s,{missingModuleFor:u});if(g.forEach(function(f){i[f]=g[f]}),i.init(s,t),m&&this.points)for(let f of((d=i.options).visible===!1?(c.graphic=1,c.dataLabel=1):(this.hasMarkerChanged(d,o)&&(c.graphic=1),i.hasDataLabels?.()||(c.dataLabel=1)),this.points))f?.series&&(f.resolveColor(),Object.keys(c).length&&f.destroyElements(c),d.showInLegend===!1&&f.legendItem&&s.legend.destroyItem(f));i.initialType=r,s.linkSeries(),s.setSortedData(),x&&i.linkedSeries.length&&(i.isDirtyData=!0),ot(this,"afterUpdate"),it(e,!0)&&s.redraw(!!m&&void 0)}setName(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0}hasOptionChanged(t){let e=this.chart,i=this.options[t],s=e.options.plotOptions,o=this.userOptions[t],r=it(s?.[this.type]?.[t],s?.series?.[t]);return o&&!nt(r)?i!==o:i!==it(r,i)}onMouseOver(){let t=this.chart,e=t.hoverSeries;t.pointer?.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&ot(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this}onMouseOut(){let t=this.options,e=this.chart,i=e.tooltip,s=e.hoverPoint;e.hoverSeries=null,s&&s.onMouseOut(),this&&t.events.mouseOut&&ot(this,"mouseOut"),i&&!this.stickyTracking&&(!i.shared||this.noSharedTooltip)&&i.hide(),e.series.forEach(function(o){o.setState("",!0)})}setState(t,e){let i=this,s=i.options,o=i.graph,r=s.inactiveOtherPoints,n=s.states,a=it(n[t||"normal"]&&n[t||"normal"].animation,i.chart.options.chart.animation),l=s.lineWidth,c=s.opacity;if(t=t||"",i.state!==t&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach(function(d){d&&(i.state&&d.removeClass("highcharts-series-"+i.state),t&&d.addClass("highcharts-series-"+t))}),i.state=t,!i.chart.styledMode)){if(n[t]&&n[t].enabled===!1)return;if(t&&(l=n[t].lineWidth||l+(n[t].lineWidthPlus||0),c=it(n[t].opacity,c)),o&&!o.dashstyle&&lt(l))for(let d of[o,...this.zones.map(p=>p.graph)])d?.animate({"stroke-width":l},a);r||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach(function(d){d&&d.animate({opacity:c},a)})}e&&r&&i.points&&i.setAllPointsToState(t||void 0)}setAllPointsToState(t){this.points.forEach(function(e){e.setState&&e.setState(t)})}setVisible(t,e){let i=this,s=i.chart,o=s.options.chart.ignoreHiddenSeries,r=i.visible;i.visible=t=i.options.visible=i.userOptions.visible=t===void 0?!r:t;let n=t?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(a=>{i[a]?.[n]()}),(s.hoverSeries===i||s.hoverPoint?.series===i)&&i.onMouseOut(),i.legendItem&&s.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&s.series.forEach(a=>{a.options.stacking&&a.visible&&(a.isDirty=!0)}),i.linkedSeries.forEach(a=>{a.setVisible(t,!1)}),o&&(s.isDirtyBox=!0),ot(i,n),e!==!1&&s.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(t){this.selected=t=this.options.selected=t===void 0?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),ot(this,t?"select":"unselect")}shouldShowTooltip(t,e,i={}){return i.series=this,i.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,i)}drawLegendSymbol(t,e){un[this.options.legendSymbol||"rectangle"]?.call(this,t,e)}}At.defaultOptions={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(){let{numberFormatter:h}=this.series.chart;return typeof this.y!="number"?"":h(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"},At.types=st.seriesTypes,At.registerType=st.registerSeriesType,At.keepProps=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],At.keepPropsForPoints=["data","isDirtyData","isDirtyCanvas","points","dataTable","processedData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"],Oe(At.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Ut,requireSorting:!0,sorted:!0}),st.series=At;let kt=At,{animObject:yc,setAnimation:bc}=pt,{registerEventOptions:Cn}=Ai,{composed:vc,marginNames:Tn}=A,{distribute:kc}=yi,{format:Mc}=wt,{addEvent:Yi,createElement:wc,css:Sc,defined:co,discardElement:Cc,find:Tc,fireEvent:Xt,isNumber:Pn,merge:le,pick:Ct,pushUnique:Pc,relativeLength:Ac,stableSort:Oc,syncTimeout:Lc}=z;class po{constructor(t,e){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(),Cn(this,e),Yi(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),Yi(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(t){let e=Ct(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=le(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop,this.itemMarginBottom=t.itemMarginBottom,this.padding=e,this.initialItemY=e-5,this.symbolWidth=Ct(t.symbolWidth,16),this.pages=[],this.proximate=t.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(t,e){let i=this.chart;this.setOptions(le(!0,this.options,t)),"events"in this.options&&Cn(this,this.options),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,Ct(e,!0)&&i.redraw(),Xt(this,"afterUpdate",{redraw:e})}colorizeItem(t,e){let i=t.color,{area:s,group:o,label:r,line:n,symbol:a}=t.legendItem||{};if((t instanceof kt||t instanceof Ut)&&(t.color=t.options?.legendSymbolColor||i),o?.[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:l={}}=this,c=l.color,{fillColor:d,fillOpacity:p,lineColor:g,marker:u}=t.options,m=x=>(!e&&(x.fill&&(x.fill=c),x.stroke&&(x.stroke=c)),x);r?.css(le(e?this.itemStyle:l)),n?.attr(m({stroke:g||t.color})),a&&a.attr(m(u&&a.isMarker?t.pointAttribs():{fill:t.color})),s?.attr(m({fill:d||t.color,"fill-opacity":d?1:p??.75}))}t.color=i,Xt(this,"afterColorizeItem",{item:t,visible:e})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(t){let{group:e,x:i=0,y:s=0}=t.legendItem||{},o=this.options,r=o.symbolPadding,n=!o.rtl,a=t.checkbox;if(e?.element){let l={translateX:n?i:this.legendWidth-i-2*r-4,translateY:s};e[co(e.translateY)?"animate":"attr"](l,void 0,()=>{Xt(this,"afterPositionItem",{item:t})})}a&&(a.x=i,a.y=s)}destroyItem(t){let e=t.checkbox,i=t.legendItem||{};for(let s of["group","label","line","symbol"])i[s]&&(i[s]=i[s].destroy());e&&Cc(e),t.legendItem=void 0}destroy(){for(let t of this.getAllItems())this.destroyItem(t);for(let t of["clipRect","up","down","pager","nav","box","title","group"])this[t]&&(this[t]=this[t].destroy());this.display=null}positionCheckboxes(){let t,e=this.group?.alignAttr,i=this.clipHeight||this.legendHeight,s=this.titleHeight;e&&(t=e.translateY,this.allItems.forEach(function(o){let r,n=o.checkbox;n&&(r=t+s+n.y+(this.scrollOffset||0)+3,Sc(n,{left:e.translateX+o.checkboxOffset+n.x-20+"px",top:r+"px",display:this.proximate||r>t-6&&r<t+i-6?"":"none"}))},this))}renderTitle(){let t=this.options,e=this.padding,i=t.title,s,o=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,e-3,e-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),o=(s=this.title.getBBox()).height,this.offsetWidth=s.width,this.contentGroup.attr({translateY:o})),this.titleHeight=o}setText(t){let e=this.options;t.legendItem.label.attr({text:e.labelFormat?Mc(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})}renderItem(t){let e=t.legendItem=t.legendItem||{},i=this.chart,s=i.renderer,o=this.options,r=o.layout==="horizontal",n=this.symbolWidth,a=o.symbolPadding||0,l=this.itemStyle,c=this.itemHiddenStyle,d=r?Ct(o.itemDistance,20):0,p=!o.rtl,g=!t.series,u=!g&&t.series.drawLegendSymbol?t.series:t,m=u.options,x=!!this.createCheckboxForItem&&m&&m.showCheckbox,f=o.useHTML,y=t.options.className,b=e.label,v=n+a+d+20*!!x;!b&&(e.group=s.g("legend-item").addClass("highcharts-"+u.type+"-series highcharts-color-"+t.colorIndex+(y?" "+y:"")+(g?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),e.label=b=s.text("",p?n+a:-a,this.baseline||0,f),i.styledMode||b.css(le(t.visible?l:c)),b.attr({align:p?"left":"right",zIndex:2}).add(e.group),!this.baseline&&(this.fontMetrics=s.fontMetrics(b),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,b.attr("y",this.baseline),this.symbolHeight=Ct(o.symbolHeight,this.fontMetrics.f),o.squareSymbol&&(this.symbolWidth=Ct(o.symbolWidth,Math.max(this.symbolHeight,16)),v=this.symbolWidth+a+d+20*!!x,p&&b.attr("x",this.symbolWidth+a))),u.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,b,f)),x&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),(i.styledMode||!l.width)&&b.css({width:(o.itemWidth||this.widthOption||i.spacingBox.width)-v+"px"}),this.setText(t);let S=b.getBBox(),M=this.fontMetrics?.h||0;t.itemWidth=t.checkboxOffset=o.itemWidth||e.labelWidth||S.width+v,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(e.labelHeight||(S.height>1.5*M?S.height:M))}layoutItem(t){let e=this.options,i=this.padding,s=e.layout==="horizontal",o=t.itemHeight,r=this.itemMarginBottom,n=this.itemMarginTop,a=s?Ct(e.itemDistance,20):0,l=this.maxLegendWidth,c=e.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:t.itemWidth,d=t.legendItem||{};s&&this.itemX-i+c>l&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=n+this.lastLineHeight+r),this.lastLineHeight=0),this.lastItemY=n+this.itemY+r,this.lastLineHeight=Math.max(o,this.lastLineHeight),d.x=this.itemX,d.y=this.itemY,s?this.itemX+=c:(this.itemY+=n+o+r,this.lastLineHeight=o),this.offsetWidth=this.widthOption||Math.max((s?this.itemX-i-(t.checkbox?0:a):c)+i,this.offsetWidth)}getAllItems(){let t=[];return this.chart.series.forEach(function(e){let i=e?.options;e&&Ct(i.showInLegend,!co(i.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItem?.labels||(i.legendType==="point"?e.data:e)))}),Xt(this,"afterGetAllItems",{allItems:t}),t}getAlignment(){let 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)}adjustMargins(t,e){let i=this.chart,s=this.options,o=this.getAlignment();o&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(r,n){r.test(o)&&!co(t[n])&&(i[Tn[n]]=Math.max(i[Tn[n]],i.legend[(n+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][n]*s[n%2?"x":"y"]+Ct(s.margin,12)+e[n]+(i.titleOffset[n]||0)))})}proximatePositions(){let t,e=this.chart,i=[],s=this.options.align==="left";for(let o of(this.allItems.forEach(function(r){let n,a,l=s,c,d;r.yAxis&&(r.xAxis.options.reversed&&(l=!l),r.points&&(n=Tc(l?r.points:r.points.slice(0).reverse(),function(p){return Pn(p.plotY)})),a=this.itemMarginTop+r.legendItem.label.getBBox().height+this.itemMarginBottom,d=r.yAxis.top-e.plotTop,c=r.visible?(n?n.plotY:r.yAxis.height)+(d-.3*a):d+r.yAxis.height,i.push({target:c,size:a,item:r}))},this),kc(i,e.plotHeight)))t=o.item.legendItem||{},Pn(o.pos)&&(t.y=e.plotTop-e.spacing[0]+o.pos)}render(){let t=this.chart,e=t.renderer,i=this.options,s=this.padding,o=this.getAllItems(),r,n,a,l=this.group,c,d=this.box;this.itemX=s,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=Ac(i.width,t.spacingBox.width-s),c=t.spacingBox.width-2*s-i.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(c/=2),this.maxLegendWidth=this.widthOption||c,l||(this.group=l=e.g("legend").addClass(i.className||"").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(l),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle(),Oc(o,(p,g)=>(p.options?.legendIndex||0)-(g.options?.legendIndex||0)),i.reversed&&o.reverse(),this.allItems=o,this.display=r=!!o.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,o.forEach(this.renderItem,this),o.forEach(this.layoutItem,this),n=(this.widthOption||this.offsetWidth)+s,a=this.lastItemY+this.lastLineHeight+this.titleHeight,a=this.handleOverflow(a)+s,d||(this.box=d=e.rect().addClass("highcharts-legend-box").attr({r:i.borderRadius}).add(l)),t.styledMode||d.attr({stroke:i.borderColor,"stroke-width":i.borderWidth||0,fill:i.backgroundColor||"none"}).shadow(i.shadow),n>0&&a>0&&d[d.placed?"animate":"attr"](d.crisp.call({},{x:0,y:0,width:n,height:a},d.strokeWidth())),l[r?"show":"hide"](),t.styledMode&&l.getStyle("display")==="none"&&(n=a=0),this.legendWidth=n,this.legendHeight=a,r&&this.align(),this.proximate||this.positionItems(),Xt(this,"afterRender")}align(t=this.chart.spacingBox){let e=this.chart,i=this.options,s=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&e.titleOffset[0]>0?s+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&e.titleOffset[2]>0&&(s-=e.titleOffset[2]),s!==t.y&&(t=le(t,{y:s})),e.hasRendered||(this.group.placed=!1),this.group.align(le(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)}handleOverflow(t){let e=this,i=this.chart,s=i.renderer,o=this.options,r=o.y,n=o.verticalAlign==="top",a=this.padding,l=o.maxHeight,c=o.navigation,d=Ct(c.animation,!0),p=c.arrowSize||12,g=this.pages,u=this.allItems,m=function(w){typeof w=="number"?k.attr({height:w}):k&&(e.clipRect=k.destroy(),e.contentGroup.clip()),e.contentGroup.div&&(e.contentGroup.div.style.clip=w?"rect("+a+"px,9999px,"+(a+w)+"px,0)":"auto")},x=function(w){return e[w]=s.circle(0,0,1.3*p).translate(p/2,p/2).add(M),i.styledMode||e[w].attr("fill","rgba(0,0,0,0.0001)"),e[w]},f,y,b,v,S=i.spacingBox.height+(n?-r:r)-a,M=this.nav,k=this.clipRect;return o.layout!=="horizontal"||o.verticalAlign==="middle"||o.floating||(S/=2),l&&(S=Math.min(S,l)),g.length=0,t&&S>0&&t>S&&c.enabled!==!1?(this.clipHeight=f=Math.max(S-20-this.titleHeight-a,0),this.currentPage=Ct(this.currentPage,1),this.fullHeight=t,u.forEach((w,C)=>{let T=(b=w.legendItem||{}).y||0,P=Math.round(b.label.getBBox().height),O=g.length;(!O||T-g[O-1]>f&&(y||T)!==g[O-1])&&(g.push(y||T),O++),b.pageIx=O-1,y&&v&&(v.pageIx=O-1),C===u.length-1&&T+P-g[O-1]>f&&T>g[O-1]&&(g.push(T),b.pageIx=O),T!==y&&(y=T),v=b}),k||(k=e.clipRect=s.clipRect(0,a-2,9999,0),e.contentGroup.clip(k)),m(f),M||(this.nav=M=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,p,p).add(M),x("upTracker").on("click",function(){e.scroll(-1,d)}),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),!i.styledMode&&c.style&&this.pager.css(c.style),this.pager.add(M),this.down=s.symbol("triangle-down",0,0,p,p).add(M),x("downTracker").on("click",function(){e.scroll(1,d)})),e.scroll(0),t=S):M&&(m(),this.nav=M.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t}scroll(t,e){let i=this.chart,s=this.pages,o=s.length,r=this.clipHeight,n=this.options.navigation,a=this.pager,l=this.padding,c=this.currentPage+t;c>o&&(c=o),c>0&&(e!==void 0&&bc(e,i),this.nav.attr({translateX:l,translateY:r+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(d){d.attr({class:c===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),a.attr({text:c+"/"+o}),[this.down,this.downTracker].forEach(function(d){d.attr({x:18+this.pager.getBBox().width,class:c===o?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),i.styledMode||(this.up.attr({fill:c===1?n.inactiveColor:n.activeColor}),this.upTracker.css({cursor:c===1?"default":"pointer"}),this.down.attr({fill:c===o?n.inactiveColor:n.activeColor}),this.downTracker.css({cursor:c===o?"default":"pointer"})),this.scrollOffset=-s[c-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=c,this.positionCheckboxes(),Lc(()=>{Xt(this,"afterScroll",{currentPage:c})},yc(Ct(e,i.renderer.globalAnimation,!0)).duration))}setItemEvents(t,e,i){let s=this,o=t.legendItem||{},r=s.chart.renderer.boxWrapper,n=t instanceof Ut,a=t instanceof kt,l="highcharts-legend-"+(n?"point":"series")+"-active",c=s.chart.styledMode,d=i?[e,o.symbol]:[o.group],p=g=>{s.allItems.forEach(u=>{t!==u&&[u].concat(u.linkedSeries||[]).forEach(m=>{m.setState(g,!n)})})};for(let g of d)g&&g.on("mouseover",function(){t.visible&&p("inactive"),t.setState("hover"),t.visible&&r.addClass(l),c||e.css(s.options.itemHoverStyle)}).on("mouseout",function(){s.chart.styledMode||e.css(le(t.visible?s.itemStyle:s.itemHiddenStyle)),p(""),r.removeClass(l),t.setState()}).on("click",function(u){let m=function(){t.setVisible&&t.setVisible(),p(t.visible?"inactive":"")};r.removeClass(l),Xt(s,"itemClick",{browserEvent:u,legendItem:t},m),n?t.firePointEvent("legendItemClick",{browserEvent:u}):a&&Xt(t,"legendItemClick",{browserEvent:u})})}createCheckboxForItem(t){t.checkbox=wc("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),Yi(t.checkbox,"click",function(e){let i=e.target;Xt(t.series||t,"checkboxClick",{checked:i.checked,item:t},function(){t.select()})})}}(function(h){h.compose=function(t){Pc(vc,"Core.Legend")&&Yi(t,"beforeMargins",function(){this.legend=new h(this,this.options.legend)})}})(po||(po={}));let An=po,{animate:go,animObject:Ec,setAnimation:uo}=pt,{defaultOptions:mo}=Mt,{numberFormat:Ic}=wt,{registerEventOptions:On}=Ai,{charts:de,doc:qe,marginNames:Ln,svg:Dc,win:En}=A,{seriesTypes:fo}=st,{addEvent:xo,attr:In,createElement:yo,css:Ot,defined:$t,diffObjects:Dn,discardElement:Bc,erase:zc,error:bo,extend:Zt,find:vo,fireEvent:Y,getAlignFactor:Nc,getStyle:ko,isArray:Rc,isNumber:Le,isObject:Wc,isString:_i,merge:Rt,objectEach:Mo,pick:gt,pInt:Hc,relativeLength:Bn,removeEvent:zn,splat:Ui,syncTimeout:Xc,uniqueKey:Fc}=z;class qt{static chart(t,e,i){return new qt(t,e,i)}constructor(t,e,i){this.sharedClips={};let s=[...arguments];(_i(t)||t.nodeName)&&(this.renderTo=s.shift()),this.init(s[0],s[1])}setZoomOptions(){let t=this.options.chart,e=t.zooming;this.zooming=ee(Pt({},e),{type:gt(t.zoomType,e.type),key:gt(t.zoomKey,e.key),pinchType:gt(t.pinchType,e.pinchType),singleTouch:gt(t.zoomBySingleTouch,e.singleTouch,!1),resetButton:Rt(e.resetButton,t.resetZoomButton)})}init(t,e){Y(this,"init",{args:arguments},function(){let i=Rt(mo,t),s=i.chart,o=this.renderTo||s.renderTo;this.userOptions=Zt({},t),(this.renderTo=_i(o)?qe.getElementById(o):o)||bo(13,!0,this),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=e,this.isResizing=0,this.options=i,this.axes=[],this.series=[],this.locale=i.lang.locale??this.renderTo.closest("[lang]")?.lang,this.time=new As(Zt(i.time||{},{locale:this.locale}),i.lang),i.time=this.time.options,this.numberFormatter=(s.numberFormatter||Ic).bind(this),this.styledMode=s.styledMode,this.hasCartesianSeries=s.showAxes,this.index=de.length,de.push(this),A.chartCount++,On(this,s),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),Y(this,"afterInit"),this.firstRender()})}initSeries(t){let e=this.options.chart,i=t.type||e.type,s=fo[i];s||bo(17,!0,this,{missingModuleFor:i});let o=new s;return typeof o.init=="function"&&o.init(this,t),o}setSortedData(){this.getSeriesOrderByLinks().forEach(function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0})}orderItems(t,e=0){let i=this[t],s=this.options[t]=Ui(this.options[t]).slice(),o=this.userOptions[t]=this.userOptions[t]?Ui(this.userOptions[t]).slice():[];if(this.hasRendered&&(s.splice(e),o.splice(e)),i)for(let r=e,n=i.length;r<n;++r){let a=i[r];a&&(a.index=r,a instanceof kt&&(a.name=a.getName()),a.options.isInternal||(s[r]=a.options,o[r]=a.userOptions))}}getClipBox(t,e){let i=this.inverted,{xAxis:s,yAxis:o}=t||{},{x:r,y:n,width:a,height:l}=Rt(this.clipBox);return t&&(s&&s.len!==this.plotSizeX&&(a=s.len),o&&o.len!==this.plotSizeY&&(l=o.len),i&&!t.invertible&&([a,l]=[l,a])),e&&(r+=(i?o:s)?.pos??this.plotLeft,n+=(i?s:o)?.pos??this.plotTop),{x:r,y:n,width:a,height:l}}isInsidePlot(t,e,i={}){let{inverted:s,plotBox:o,plotLeft:r,plotTop:n,scrollablePlotBox:a}=this,{scrollLeft:l=0,scrollTop:c=0}=i.visiblePlotOnly&&this.scrollablePlotArea?.scrollingContainer||{},d=i.series,p=i.visiblePlotOnly&&a||o,g=i.inverted?e:t,u=i.inverted?t:e,m={x:g,y:u,isInsidePlot:!0,options:i};if(!i.ignoreX){let x=d&&(s&&!this.polar?d.yAxis:d.xAxis)||{pos:r,len:1/0},f=i.paneCoordinates?x.pos+g:r+g;f>=Math.max(l+r,x.pos)&&f<=Math.min(l+r+p.width,x.pos+x.len)||(m.isInsidePlot=!1)}if(!i.ignoreY&&m.isInsidePlot){let x=!s&&i.axis&&!i.axis.isXAxis&&i.axis||d&&(s?d.xAxis:d.yAxis)||{pos:n,len:1/0},f=i.paneCoordinates?x.pos+u:n+u;f>=Math.max(c+n,x.pos)&&f<=Math.min(c+n+p.height,x.pos+x.len)||(m.isInsidePlot=!1)}return Y(this,"afterIsInsidePlot",m),m.isInsidePlot}redraw(t){Y(this,"beforeRedraw");let e=this.hasCartesianSeries?this.axes:this.colorAxis||[],i=this.series,s=this.pointer,o=this.legend,r=this.userOptions.legend,n=this.renderer,a=n.isHidden(),l=[],c,d,p,g=this.isDirtyBox,u=this.isDirtyLegend,m;for(n.rootFontSize=n.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),uo(!!this.hasRendered&&t,this),a&&this.temporaryDisplay(),this.layOutTitles(!1),p=i.length;p--;)if(((m=i[p]).options.stacking||m.options.centerInCategory)&&(d=!0,m.isDirty)){c=!0;break}if(c)for(p=i.length;p--;)(m=i[p]).options.stacking&&(m.isDirty=!0);i.forEach(function(x){x.isDirty&&(x.options.legendType==="point"?(typeof x.updateTotals=="function"&&x.updateTotals(),u=!0):r&&(r.labelFormatter||r.labelFormat)&&(u=!0)),x.isDirtyData&&Y(x,"updatedData")}),u&&o&&o.options.enabled&&(o.render(),this.isDirtyLegend=!1),d&&this.getStacks(),e.forEach(function(x){x.updateNames(),x.setScale()}),this.getMargins(),e.forEach(function(x){x.isDirty&&(g=!0)}),e.forEach(function(x){let f=x.min+","+x.max;x.extKey!==f&&(x.extKey=f,l.push(function(){Y(x,"afterSetExtremes",Zt(x.eventArgs,x.getExtremes())),delete x.eventArgs})),(g||d)&&x.redraw()}),g&&this.drawChartBox(),Y(this,"predraw"),i.forEach(function(x){(g||x.isDirty)&&x.visible&&x.redraw(),x.isDirtyData=!1}),s&&s.reset(!0),n.draw(),Y(this,"redraw"),Y(this,"render"),a&&this.temporaryDisplay(!0),l.forEach(function(x){x.call()})}get(t){let e=this.series;function i(o){return o.id===t||o.options&&o.options.id===t}let s=vo(this.axes,i)||vo(this.series,i);for(let o=0;!s&&o<e.length;o++)s=vo(e[o].points||[],i);return s}createAxes(){let t=this.userOptions;for(let e of(Y(this,"createAxes"),["xAxis","yAxis"]))for(let i of t[e]=Ui(t[e]||{}))new Qs(this,i,e);Y(this,"afterCreateAxes")}getSelectedPoints(){return this.series.reduce((t,e)=>(e.getPointsCollection().forEach(i=>{gt(i.selectedStaging,i.selected)&&t.push(i)}),t),[])}getSelectedSeries(){return this.series.filter(t=>t.selected)}setTitle(t,e,i){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(i)}applyDescription(t,e){let i=this,s=this.options[t]=Rt(this.options[t],e),o=this[t];o&&e&&(this[t]=o=o.destroy()),s&&!o&&((o=this.renderer.text(s.text,0,0,s.useHTML).attr({align:s.align,class:"highcharts-"+t,zIndex:s.zIndex||4}).css({textOverflow:"ellipsis",whiteSpace:"nowrap"}).add()).update=function(r,n){i.applyDescription(t,r),i.layOutTitles(n)},this.styledMode||o.css(Zt(t==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},s.style)),o.textPxLength=o.getBBox().width,o.css({whiteSpace:s.style?.whiteSpace}),this[t]=o)}layOutTitles(t=!0){let e=[0,0,0],{options:i,renderer:s,spacingBox:o}=this;["title","subtitle","caption"].forEach(n=>{let a=this[n],l=this.options[n],c=Rt(o),d=a?.textPxLength||0;if(a&&l){Y(this,"layOutTitle",{alignTo:c,key:n,textPxLength:d});let p=s.fontMetrics(a),g=p.b,u=p.h,m=l.verticalAlign||"top",x=m==="top",f=x&&l.minScale||1,y=n==="title"?x?-3:0:x?e[0]+2:0,b=Math.min(c.width/d,1),v=Math.max(f,b),S=Rt({y:m==="bottom"?g:y+g},{align:n==="title"?b<f?"left":"center":this.title?.alignValue},l),M=(l.width||(b>f?this.chartWidth:c.width)/v)+"px";a.alignValue!==S.align&&(a.placed=!1);let k=Math.round(a.css({width:M}).getBBox(l.useHTML).height);if(S.height=k,a.align(S,!1,c).attr({align:S.align,scaleX:v,scaleY:v,"transform-origin":`${c.x+d*v*Nc(S.align)} ${u}`}),!l.floating){let w=k*(k<1.2*u?1:v);m==="top"?e[0]=Math.ceil(e[0]+w):m==="bottom"&&(e[2]=Math.ceil(e[2]+w))}}},this),e[0]&&(i.title?.verticalAlign||"top")==="top"&&(e[0]+=i.title?.margin||0),e[2]&&i.caption?.verticalAlign==="bottom"&&(e[2]+=i.caption?.margin||0);let r=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,Y(this,"afterLayOutTitles"),!this.isDirtyBox&&r&&(this.isDirtyBox=this.isDirtyLegend=r,this.hasRendered&&t&&this.isDirtyBox&&this.redraw())}getContainerBox(){let t=[].map.call(this.renderTo.children,i=>{if(i!==this.container){let s=i.style.display;return i.style.display="none",[i,s]}}),e={width:ko(this.renderTo,"width",!0)||0,height:ko(this.renderTo,"height",!0)||0};return t.filter(Boolean).forEach(([i,s])=>{i.style.display=s}),e}getChartSize(){let t=this.options.chart,e=t.width,i=t.height,s=this.getContainerBox(),o=s.height<=1||!this.renderTo.parentElement?.style.height&&this.renderTo.style.height==="100%";this.chartWidth=Math.max(0,e||s.width||600),this.chartHeight=Math.max(0,Bn(i,this.chartWidth)||(o?400:s.height)),this.containerBox=s}temporaryDisplay(t){let e=this.renderTo,i;if(t)for(;e?.style;)e.hcOrigStyle&&(Ot(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(qe.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e?.style&&(qe.body.contains(e)||e.parentNode||(e.hcOrigDetached=!0,qe.body.appendChild(e)),(ko(e,"display",!1)==="none"||e.hcOricDetached)&&(e.hcOrigStyle={display:e.style.display,height:e.style.height,overflow:e.style.overflow},i={display:"block",overflow:"hidden"},e!==this.renderTo&&(i.height=0),Ot(e,i),e.offsetWidth||e.style.setProperty("display","block","important")),(e=e.parentNode)!==qe.body););}setClassName(t){this.container.className="highcharts-container "+(t||"")}getContainer(){let t,e=this.options,i=e.chart,s="data-highcharts-chart",o=Fc(),r=this.renderTo,n=Hc(In(r,s));Le(n)&&de[n]&&de[n].hasRendered&&de[n].destroy(),In(r,s,this.index),r.innerHTML=J.emptyHTML,i.skipClone||r.offsetWidth||this.temporaryDisplay(),this.getChartSize();let a=this.chartHeight,l=this.chartWidth;Ot(r,{overflow:"hidden"}),this.styledMode||(t=Zt({position:"relative",overflow:"hidden",width:l+"px",height:a+"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"},i.style||{}));let c=yo("div",{id:o},t,r);this.container=c,this.getChartSize(),l===this.chartWidth||(l=this.chartWidth,this.styledMode||Ot(c,{width:gt(i.style?.width,l+"px")})),this.containerBox=this.getContainerBox(),this._cursor=c.style.cursor;let d=i.renderer||!Dc?Xe.getRendererType(i.renderer):Ti;if(this.renderer=new d(c,l,a,void 0,i.forExport,e.exporting?.allowHTML,this.styledMode),uo(void 0,this),this.setClassName(i.className),this.styledMode)for(let p in e.defs)this.renderer.definition(e.defs[p]);else this.renderer.setStyle(i.style);this.renderer.chartIndex=this.index,Y(this,"afterGetContainer")}getMargins(t){let{spacing:e,margin:i,titleOffset:s}=this;this.resetMargins(),s[0]&&!$t(i[0])&&(this.plotTop=Math.max(this.plotTop,s[0]+e[0])),s[2]&&!$t(i[2])&&(this.marginBottom=Math.max(this.marginBottom,s[2]+e[2])),this.legend?.display&&this.legend.adjustMargins(i,e),Y(this,"getMargins"),t||this.getAxisMargins()}getAxisMargins(){let t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,s=t.margin,o=function(r){r.forEach(function(n){n.visible&&n.getOffset()})};t.hasCartesianSeries?o(t.axes):i?.length&&o(i),Ln.forEach(function(r,n){$t(s[n])||(t[r]+=e[n])}),t.setChartSize()}getOptions(){return Dn(this.userOptions,mo)}reflow(t){let e=this,i=e.containerBox,s=e.getContainerBox();delete e.pointer?.chartPosition,!e.isPrinting&&!e.isResizing&&i&&s.width&&((s.width!==i.width||s.height!==i.height)&&(z.clearTimeout(e.reflowTimeout),e.reflowTimeout=Xc(function(){e.container&&e.setSize(void 0,void 0,!1)},100*!!t)),e.containerBox=s)}setReflow(){let t=this,e=i=>{t.options?.chart.reflow&&t.hasLoaded&&t.reflow(i)};if(typeof ResizeObserver=="function")new ResizeObserver(e).observe(t.renderTo);else{let i=xo(En,"resize",e);xo(this,"destroy",i)}}setSize(t,e,i){let s=this,o=s.renderer;s.isResizing+=1,uo(i,s);let r=o.globalAnimation;s.oldChartHeight=s.chartHeight,s.oldChartWidth=s.chartWidth,t!==void 0&&(s.options.chart.width=t),e!==void 0&&(s.options.chart.height=e),s.getChartSize();let{chartWidth:n,chartHeight:a,scrollablePixelsX:l=0,scrollablePixelsY:c=0}=s;(s.isDirtyBox||n!==s.oldChartWidth||a!==s.oldChartHeight)&&(s.styledMode||(r?go:Ot)(s.container,{width:`${n+l}px`,height:`${a+c}px`},r),s.setChartSize(!0),o.setSize(n,a,r),s.axes.forEach(function(d){d.isDirty=!0,d.setScale()}),s.isDirtyLegend=!0,s.isDirtyBox=!0,s.layOutTitles(),s.getMargins(),s.redraw(r),s.oldChartHeight=void 0,Y(s,"resize"),setTimeout(()=>{s&&Y(s,"endResize")},Ec(r).duration)),s.isResizing-=1}setChartSize(t){let e,i,s,o,{chartHeight:r,chartWidth:n,inverted:a,spacing:l,renderer:c}=this,d=this.clipOffset,p=Math[a?"floor":"round"];this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=s=Math.max(0,Math.round(n-e-(this.marginRight??0))),this.plotHeight=o=Math.max(0,Math.round(r-i-(this.marginBottom??0))),this.plotSizeX=a?o:s,this.plotSizeY=a?s:o,this.spacingBox=c.spacingBox={x:l[3],y:l[0],width:n-l[3]-l[1],height:r-l[0]-l[2]},this.plotBox=c.plotBox={x:e,y:i,width:s,height:o},d&&(this.clipBox={x:p(d[3]),y:p(d[0]),width:p(this.plotSizeX-d[1]-d[3]),height:p(this.plotSizeY-d[0]-d[2])}),t||(this.axes.forEach(function(g){g.setAxisSize(),g.setAxisTranslation()}),c.alignElements()),Y(this,"afterSetChartSize",{skipAxes:t})}resetMargins(){Y(this,"resetMargins");let t=this,e=t.options.chart,i=e.plotBorderWidth||0,s=Math.round(i)/2;["margin","spacing"].forEach(function(o){let r=e[o],n=Wc(r)?r:[r,r,r,r];["Top","Right","Bottom","Left"].forEach(function(a,l){t[o][l]=gt(e[o+a],n[l])})}),Ln.forEach(function(o,r){t[o]=gt(t.margin[r],t.spacing[r])}),t.axisOffset=[0,0,0,0],t.clipOffset=[s,s,s,s],t.plotBorderWidth=i}drawChartBox(){let t=this.options.chart,e=this.renderer,i=this.chartWidth,s=this.chartHeight,o=this.styledMode,r=this.plotBGImage,n=t.backgroundColor,a=t.plotBackgroundColor,l=t.plotBackgroundImage,c=this.plotLeft,d=this.plotTop,p=this.plotWidth,g=this.plotHeight,u=this.plotBox,m=this.clipRect,x=this.clipBox,f=this.chartBackground,y=this.plotBackground,b=this.plotBorder,v,S,M,k="animate";f||(this.chartBackground=f=e.rect().addClass("highcharts-background").add(),k="attr"),o?v=S=f.strokeWidth():(S=(v=t.borderWidth||0)+8*!!t.shadow,M={fill:n||"none"},(v||f["stroke-width"])&&(M.stroke=t.borderColor,M["stroke-width"]=v),f.attr(M).shadow(t.shadow)),f[k]({x:S/2,y:S/2,width:i-S-v%2,height:s-S-v%2,r:t.borderRadius}),k="animate",y||(k="attr",this.plotBackground=y=e.rect().addClass("highcharts-plot-background").add()),y[k](u),!o&&(y.attr({fill:a||"none"}).shadow(t.plotShadow),l&&(r?(l!==r.attr("href")&&r.attr("href",l),r.animate(u)):this.plotBGImage=e.image(l,c,d,p,g).add())),m?m.animate({width:x.width,height:x.height}):this.clipRect=e.clipRect(x),k="animate",b||(k="attr",this.plotBorder=b=e.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),o||b.attr({stroke:t.plotBorderColor,"stroke-width":t.plotBorderWidth||0,fill:"none"}),b[k](b.crisp(u,-b.strokeWidth())),this.isDirtyBox=!1,Y(this,"afterDrawChartBox")}propFromSeries(){let t,e,i,s=this,o=s.options.chart,r=s.options.series;["inverted","angular","polar"].forEach(function(n){for(e=fo[o.type],i=o[n]||e&&e.prototype[n],t=r?.length;!i&&t--;)(e=fo[r[t].type])&&e.prototype[n]&&(i=!0);s[n]=i})}linkSeries(t){let e=this,i=e.series;i.forEach(function(s){s.linkedSeries.length=0}),i.forEach(function(s){let{linkedTo:o}=s.options;if(_i(o)){let r;(r=o===":previous"?e.series[s.index-1]:e.get(o))&&r.linkedParent!==s&&(r.linkedSeries.push(s),s.linkedParent=r,r.enabledDataSorting&&s.setDataSortingOptions(),s.visible=gt(s.options.visible,r.options.visible,s.visible))}}),Y(this,"afterLinkSeries",{isUpdating:t})}renderSeries(){this.series.forEach(function(t){t.translate(),t.render()})}render(){let t=this.axes,e=this.colorAxis,i=this.renderer,s=this.options.chart.axisLayoutRuns||2,o=c=>{c.forEach(d=>{d.visible&&d.render()})},r=0,n=!0,a,l=0;for(let c of(this.setTitle(),Y(this,"beforeMargins"),this.getStacks?.(),this.getMargins(!0),this.setChartSize(),t)){let{options:d}=c,{labels:p}=d;if(this.hasCartesianSeries&&c.horiz&&c.visible&&p.enabled&&c.series.length&&c.coll!=="colorAxis"&&!this.polar){r=d.tickLength,c.createGroups();let g=new Ce(c,0,"",!0),u=g.createLabel("x",p);if(g.destroy(),u&&gt(p.reserveSpace,!Le(d.crossing))&&(r=u.getBBox().height+p.distance+Math.max(d.offset||0,0)),r){u?.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-r,0);(n||a||s>1)&&l<s;){let c=this.plotWidth,d=this.plotHeight;for(let p of t)l===0?p.setScale():(p.horiz&&n||!p.horiz&&a)&&p.setTickInterval(!0);l===0?this.getAxisMargins():this.getMargins(),n=c/this.plotWidth>(l?1:1.1),a=d/this.plotHeight>(l?1:1.05),l++}this.drawChartBox(),this.hasCartesianSeries?o(t):e?.length&&o(e),this.seriesGroup||(this.seriesGroup=i.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(t){let e=this,i=Rt(!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&&(En.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(s){e.credits=e.credits.destroy(),e.addCredits(s)})}destroy(){let t,e=this,i=e.axes,s=e.series,o=e.container,r=o?.parentNode;for(Y(e,"destroy"),e.renderer.forExport?zc(de,e):de[e.index]=void 0,A.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),zn(e),t=i.length;t--;)i[t]=i[t].destroy();for(this.scroller?.destroy?.(),t=s.length;t--;)s[t]=s[t].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(n=>{e[n]=e[n]?.destroy?.()}),o&&(o.innerHTML=J.emptyHTML,zn(o),r&&Bc(o)),Mo(e,function(n,a){delete e[a]})}firstRender(){let t=this,e=t.options;t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.createAxes();let i=Rc(e.series)?e.series:[];e.series=[],i.forEach(function(s){t.initSeries(s)}),t.linkSeries(),t.setSortedData(),Y(t,"beforeRender"),t.render(),t.pointer?.getChartPosition(),t.renderer.imgCount||t.hasLoaded||t.onload(),t.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(t){t&&this.index!==void 0&&t.apply(this,[this])},this),Y(this,"load"),Y(this,"render"),$t(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:t,title:e}=this;!t||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(e?.element.textContent||"").replace(/</g,"&lt;")}),t.accessibility&&t.accessibility.enabled===!1||bo('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))}addSeries(t,e,i){let s,o=this;return t&&(e=gt(e,!0),Y(o,"addSeries",{options:t},function(){s=o.initSeries(t),o.isDirtyLegend=!0,o.linkSeries(),s.enabledDataSorting&&s.setData(t.data,!1),Y(o,"afterAddSeries",{series:s}),e&&o.redraw(i)})),s}addAxis(t,e,i,s){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:i,animation:s})}addColorAxis(t,e,i){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:i})}createAxis(t,e){let i=new Qs(this,e.axis,t);return gt(e.redraw,!0)&&this.redraw(e.animation),i}showLoading(t){let e=this,i=e.options,s=i.loading,o=function(){r&&Ot(r,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})},r=e.loadingDiv,n=e.loadingSpan;r||(e.loadingDiv=r=yo("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),n||(e.loadingSpan=n=yo("span",{className:"highcharts-loading-inner"},null,r),xo(e,"redraw",o)),r.className="highcharts-loading",J.setElementHTML(n,gt(t,i.lang.loading,"")),e.styledMode||(Ot(r,Zt(s.style,{zIndex:10})),Ot(n,s.labelStyle),e.loadingShown||(Ot(r,{opacity:0,display:""}),go(r,{opacity:s.style.opacity||.5},{duration:s.showDuration||0}))),e.loadingShown=!0,o()}hideLoading(){let t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||go(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){Ot(e,{display:"none"})}})),this.loadingShown=!1}update(t,e,i,s){let o,r,n,a=this,l={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},c=t.isResponsiveOptions,d=[];Y(a,"update",{options:t}),c||a.setResponsive(!1,!0),t=Dn(t,a.options),a.userOptions=Rt(a.userOptions,t);let p=t.chart;p&&(Rt(!0,a.options.chart,p),this.setZoomOptions(),"className"in p&&a.setClassName(p.className),("inverted"in p||"polar"in p||"type"in p)&&(a.propFromSeries(),o=!0),"alignTicks"in p&&(o=!0),"events"in p&&On(this,p),Mo(p,function(m,x){a.propsRequireUpdateSeries.indexOf("chart."+x)!==-1&&(r=!0),a.propsRequireDirtyBox.indexOf(x)!==-1&&(a.isDirtyBox=!0),a.propsRequireReflow.indexOf(x)===-1||(a.isDirtyBox=!0,c||(n=!0))}),!a.styledMode&&p.style&&a.renderer.setStyle(a.options.chart.style||{})),!a.styledMode&&t.colors&&(this.options.colors=t.colors),Mo(t,function(m,x){a[x]&&typeof a[x].update=="function"?a[x].update(m,!1):typeof a[l[x]]=="function"?a[l[x]](m):x!=="colors"&&a.collectionsWithUpdate.indexOf(x)===-1&&Rt(!0,a.options[x],t[x]),x!=="chart"&&a.propsRequireUpdateSeries.indexOf(x)!==-1&&(r=!0)}),this.collectionsWithUpdate.forEach(function(m){t[m]&&(Ui(t[m]).forEach(function(x,f){let y,b=$t(x.id);b&&(y=a.get(x.id)),!y&&a[m]&&(y=a[m][gt(x.index,f)])&&(b&&$t(y.options.id)||y.options.isInternal)&&(y=void 0),y&&y.coll===m&&(y.update(x,!1),i&&(y.touched=!0)),!y&&i&&a.collectionsWithInit[m]&&(a.collectionsWithInit[m][0].apply(a,[x].concat(a.collectionsWithInit[m][1]||[]).concat([!1])).touched=!0)}),i&&a[m].forEach(function(x){x.touched||x.options.isInternal?delete x.touched:d.push(x)}))}),d.forEach(function(m){m.chart&&m.remove&&m.remove(!1)}),o&&a.axes.forEach(function(m){m.update({},!1)}),r&&a.getSeriesOrderByLinks().forEach(function(m){m.chart&&m.update({},!1)},this);let g=p?.width,u=p&&(_i(p.height)?Bn(p.height,g||a.chartWidth):p.height);n||Le(g)&&g!==a.chartWidth||Le(u)&&u!==a.chartHeight?a.setSize(g,u,s):gt(e,!0)&&a.redraw(s),Y(a,"afterUpdate",{options:t,redraw:e,animation:s})}setSubtitle(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)}setCaption(t,e){this.applyDescription("caption",t),this.layOutTitles(e)}showResetZoom(){let t=this,e=mo.lang,i=t.zooming.resetButton,s=i.theme,o=i.relativeTo==="chart"||i.relativeTo==="spacingBox"?null:"plotBox";function r(){t.zoomOut()}Y(this,"beforeShowResetZoom",null,function(){t.resetZoomButton=t.renderer.button(e.resetZoom,null,null,r,s).attr({align:i.position.align,title:e.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,o)}),Y(this,"afterShowResetZoom")}zoomOut(){Y(this,"selection",{resetSelection:!0},()=>this.transform({reset:!0,trigger:"zoom"}))}pan(t,e){let i=this,s=typeof e=="object"?e:{enabled:e,type:"x"},o=s.type,r=o&&i[{x:"xAxis",xy:"axes",y:"yAxis"}[o]].filter(a=>a.options.panningEnabled&&!a.options.isInternal),n=i.options.chart;n?.panning&&(n.panning=s),Y(this,"pan",{originalEvent:t},()=>{i.transform({axes:r,event:t,to:{x:t.chartX-(i.mouseDownX||0),y:t.chartY-(i.mouseDownY||0)},trigger:"pan"}),Ot(i.container,{cursor:"move"})})}transform(t){let{axes:e=this.axes,event:i,from:s={},reset:o,selection:r,to:n={},trigger:a}=t,{inverted:l,time:c}=this,d=!1,p,g;for(let u of(this.hoverPoints?.forEach(m=>m.setState()),e)){let{horiz:m,len:x,minPointOffset:f=0,options:y,reversed:b}=u,v=m?"width":"height",S=m?"x":"y",M=gt(n[v],u.len),k=gt(s[v],u.len),w=10>Math.abs(M)?1:M/k,C=(s[S]||0)+k/2-u.pos,T=C-((n[S]??u.pos)+M/2-u.pos)/w,P=b&&!l||!b&&l?-1:1;if(!o&&(C<0||C>u.len))continue;let O=u.toValue(T,!0)+(r||u.isOrdinal?0:f*P),L=u.toValue(T+x/w,!0)-(r||u.isOrdinal?0:f*P||0),I=u.allExtremes;if(O>L&&([O,L]=[L,O]),w===1&&!o&&u.coll==="yAxis"&&!I){for(let yt of u.series){let Qt=yt.getExtremes(yt.getProcessedData(!0).modified.getColumn("y")||[],!0);I??(I={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),Le(Qt.dataMin)&&Le(Qt.dataMax)&&(I.dataMin=Math.min(Qt.dataMin,I.dataMin),I.dataMax=Math.max(Qt.dataMax,I.dataMax))}u.allExtremes=I}let{dataMin:D,dataMax:E,min:B,max:K}=Zt(u.getExtremes(),I||{}),_=c.parse(y.min),mt=c.parse(y.max),W=D??_,H=E??mt,U=L-O,G=u.categories?0:Math.min(U,H-W),$=W-G*($t(_)?0:y.minPadding),q=H+G*($t(mt)?0:y.maxPadding),V=u.allowZoomOutside||w===1||a!=="zoom"&&w>1,Q=Math.min(_??$,$,V?B:$),ft=Math.max(mt??q,q,V?K:q);(!u.isOrdinal||u.options.overscroll||w!==1||o)&&(O<Q&&(O=Q,w>=1&&(L=O+U)),L>ft&&(L=ft,w>=1&&(O=L-U)),(o||u.series.length&&(O!==B||L!==K)&&O>=Q&&L<=ft)&&(r?r[u.coll].push({axis:u,min:O,max:L}):(u.isPanning=a!=="zoom",u.isPanning&&(g=!0),u.setExtremes(o?void 0:O,o?void 0:L,!1,!1,{move:T,trigger:a,scale:w}),!o&&(O>Q||L<ft)&&a!=="mousewheel"&&(p=!0)),d=!0),i&&(this[m?"mouseDownX":"mouseDownY"]=i[m?"chartX":"chartY"]))}return d&&(r?Y(this,"selection",r,()=>{delete t.selection,t.trigger="zoom",this.transform(t)}):(!p||g||this.resetZoomButton?!p&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw(a==="zoom"&&(this.options.chart.animation??this.pointCount<100)))),d}}Zt(qt.prototype,{callbacks:[],collectionsWithInit:{xAxis:[qt.prototype.addAxis,[!0]],yAxis:[qt.prototype.addAxis,[!1]],series:[qt.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"]});let{stop:Gc}=pt,{composed:jc}=A,{addEvent:Kt,createElement:Vi,css:wo,defined:So,erase:Yc,merge:Nn,pushUnique:Rn}=z;function _c(){let h=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!h&&(this.scrollablePlotArea=h=new Hn(this)),h?.applyFixed()}function Wn(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}let Hn=(()=>{class h{static compose(e,i,s){Rn(jc,this.compose)&&(Kt(e,"afterInit",Wn),Kt(i,"afterSetChartSize",o=>this.afterSetSize(o.target,o)),Kt(i,"render",_c),Kt(s,"show",Wn))}static afterSetSize(e,i){let s,o,r,{minWidth:n,minHeight:a}=e.options.chart.scrollablePlotArea||{},{clipBox:l,plotBox:c,inverted:d,renderer:p}=e;if(!p.forExport&&(n?(e.scrollablePixelsX=s=Math.max(0,n-e.chartWidth),s&&(e.scrollablePlotBox=Nn(e.plotBox),c.width=e.plotWidth+=s,l[d?"height":"width"]+=s,r=!0)):a&&(e.scrollablePixelsY=o=Math.max(0,a-e.chartHeight),So(o)&&(e.scrollablePlotBox=Nn(e.plotBox),c.height=e.plotHeight+=o,l[d?"width":"height"]+=o,r=!1)),So(r)&&!i.skipAxes))for(let g of e.axes)(g.horiz===r||e.hasParallelCoordinates&&g.coll==="yAxis")&&(g.setAxisSize(),g.setAxisTranslation())}constructor(e){let i,s=e.options.chart,o=Xe.getRendererType(),r=s.scrollablePlotArea||{},n=this.moveFixedElements.bind(this),a={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};e.scrollablePixelsX&&(a.overflowX="auto"),e.scrollablePixelsY&&(a.overflowY="auto"),this.chart=e;let l=this.parentDiv=Vi("div",{className:"highcharts-scrolling-parent"},{position:"relative"},e.renderTo),c=this.scrollingContainer=Vi("div",{className:"highcharts-scrolling"},a,l),d=this.innerContainer=Vi("div",{className:"highcharts-inner-container"},void 0,c),p=this.fixedDiv=Vi("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(s.style?.zIndex||0)+2,top:0},void 0,!0),g=this.fixedRenderer=new o(p,e.chartWidth,e.chartHeight,s.style);this.mask=g.path().attr({fill:s.backgroundColor||"#fff","fill-opacity":r.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),c.parentNode.insertBefore(p,c),wo(e.renderTo,{overflow:"visible"}),Kt(e,"afterShowResetZoom",n),Kt(e,"afterApplyDrilldown",n),Kt(e,"afterLayOutTitles",n),Kt(c,"scroll",()=>{let{pointer:u,hoverPoint:m}=e;u&&(delete u.chartPosition,m&&(i=m),u.runPointActions(void 0,i,!0))}),d.appendChild(e.container)}applyFixed(){let{chart:e,fixedRenderer:i,isDirty:s,scrollingContainer:o}=this,{axisOffset:r,chartWidth:n,chartHeight:a,container:l,plotHeight:c,plotLeft:d,plotTop:p,plotWidth:g,scrollablePixelsX:u=0,scrollablePixelsY:m=0}=e,{scrollPositionX:x=0,scrollPositionY:f=0}=e.options.chart.scrollablePlotArea||{},y=n+u,b=a+m;i.setSize(n,a),(s??!0)&&(this.isDirty=!1,this.moveFixedElements()),Gc(e.container),wo(l,{width:`${y}px`,height:`${b}px`}),e.renderer.boxWrapper.attr({width:y,height:b,viewBox:[0,0,y,b].join(" ")}),e.chartBackground?.attr({width:y,height:b}),wo(o,{width:`${n}px`,height:`${a}px`}),So(s)||(o.scrollLeft=u*x,o.scrollTop=m*f);let v=p-r[0]-1,S=d-r[3]-1,M=p+c+r[2]+1,k=d+g+r[1]+1,w=d+g-u,C=p+c-m,T=[["M",0,0]];u?T=[["M",0,v],["L",d-1,v],["L",d-1,M],["L",0,M],["Z"],["M",w,v],["L",n,v],["L",n,M],["L",w,M],["Z"]]:m&&(T=[["M",S,0],["L",S,p-1],["L",k,p-1],["L",k,0],["Z"],["M",S,C],["L",S,a],["L",k,a],["L",k,C],["Z"]]),e.redrawTrigger!=="adjustHeight"&&this.mask.attr({d:T})}moveFixedElements(){let e,{container:i,inverted:s,scrollablePixelsX:o,scrollablePixelsY:r}=this.chart,n=this.fixedRenderer,a=h.fixedSelectors;if(o&&!s?e=".highcharts-yaxis":o&&s||r&&!s?e=".highcharts-xaxis":r&&s&&(e=".highcharts-yaxis"),e&&!(this.chart.hasParallelCoordinates&&e===".highcharts-yaxis"))for(let l of[`${e}:not(.highcharts-radial-axis)`,`${e}-labels:not(.highcharts-radial-axis-labels)`])Rn(a,l);else for(let l of[".highcharts-xaxis",".highcharts-yaxis"])for(let c of[`${l}:not(.highcharts-radial-axis)`,`${l}-labels:not(.highcharts-radial-axis-labels)`])Yc(a,c);for(let l of a)[].forEach.call(i.querySelectorAll(l),c=>{(c.namespaceURI===n.SVG_NS?n.box:n.box.parentNode).appendChild(c),c.style.pointerEvents="auto"})}}return h.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"],h})(),{format:Uc}=wt,{series:Vc}=st,{destroyObjectProperties:$c,fireEvent:Xn,getAlignFactor:Co,isNumber:To,pick:Ke}=z,Fn=class{constructor(h,t,e,i,s){let o=h.chart.inverted,r=h.reversed;this.axis=h;let n=this.isNegative=!!e!=!!r;this.options=t=t||{},this.x=i,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=s,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:t.align||(o?n?"left":"right":"center"),verticalAlign:t.verticalAlign||(o?"middle":n?"bottom":"top"),y:t.y,x:t.x},this.textAlign=t.textAlign||(o?n?"right":"left":"center")}destroy(){$c(this,this.axis)}render(h){let t=this.axis.chart,e=this.options,i=e.format,s=i?Uc(i,this,t):e.formatter.call(this);if(this.label)this.label.attr({text:s,visibility:"hidden"});else{this.label=t.renderer.label(s,null,void 0,e.shape,void 0,void 0,e.useHTML,!1,"stack-labels");let o={r:e.borderRadius||0,text:s,padding:Ke(e.padding,5),visibility:"hidden"};t.styledMode||(o.fill=e.backgroundColor,o.stroke=e.borderColor,o["stroke-width"]=e.borderWidth,this.label.css(e.style||{})),this.label.attr(o),this.label.added||this.label.add(h)}this.label.labelrank=t.plotSizeY,Xn(this,"afterRender")}setOffset(h,t,e,i,s,o){let{alignOptions:r,axis:n,label:a,options:l,textAlign:c}=this,d=n.chart,p=this.getStackBox({xOffset:h,width:t,boxBottom:e,boxTop:i,defaultX:s,xAxis:o}),{verticalAlign:g}=r;if(a&&p){let u=a.getBBox(void 0,0),m=a.padding,x=Ke(l.overflow,"justify")==="justify",f;r.x=l.x||0,r.y=l.y||0;let{x:y,y:b}=this.adjustStackPosition({labelBox:u,verticalAlign:g,textAlign:c});p.x-=y,p.y-=b,a.align(r,!1,p),(f=d.isInsidePlot(a.alignAttr.x+r.x+y,a.alignAttr.y+r.y+b))||(x=!1),x&&Vc.prototype.justifyDataLabel.call(n,a,r,a.alignAttr,u,p),a.attr({x:a.alignAttr.x,y:a.alignAttr.y,rotation:l.rotation,rotationOriginX:u.width*Co(l.textAlign||"center"),rotationOriginY:u.height/2}),Ke(!x&&l.crop,!0)&&(f=To(a.x)&&To(a.y)&&d.isInsidePlot(a.x-m+(a.width||0),a.y)&&d.isInsidePlot(a.x+m,a.y)),a[f?"show":"hide"]()}Xn(this,"afterSetOffset",{xOffset:h,width:t})}adjustStackPosition({labelBox:h,verticalAlign:t,textAlign:e}){return{x:h.width/2+h.width/2*(2*Co(e)-1),y:h.height/2*2*(1-Co(t))}}getStackBox(h){let t=this.axis,e=t.chart,{boxTop:i,defaultX:s,xOffset:o,width:r,boxBottom:n}=h,a=t.stacking.usePercentage?100:Ke(i,this.total,0),l=t.toPixels(a),c=h.xAxis||e.xAxis[0],d=Ke(s,c.translate(this.x))+o,p=Math.abs(l-t.toPixels(n||To(t.min)&&t.logarithmic&&t.logarithmic.lin2log(t.min)||0)),g=e.inverted,u=this.isNegative;return g?{x:(u?l:l-p)-e.plotLeft,y:c.height-d-r+c.top-e.plotTop,width:p,height:r}:{x:d+c.transB-e.plotLeft,y:(u?l-p:l)-e.plotTop,width:r,height:p}}},{getDeferredAnimation:Zc}=pt,{series:{prototype:qc}}=st,{addEvent:Gn,correctFloat:Je,defined:jn,destroyObjectProperties:Kc,fireEvent:Jc,isNumber:Po,objectEach:ce,pick:Ao}=z;function Qc(){let h=this.inverted;this.axes.forEach(t=>{t.stacking?.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)}),this.series.forEach(t=>{let e=t.xAxis?.options||{};t.options.stacking&&t.reserveSpace()&&(t.stackKey=[t.type,Ao(t.options.stack,""),h?e.top:e.left,h?e.height:e.width].join(","))})}function tp(){let h=this.stacking;if(h){let t=h.stacks;ce(t,(e,i)=>{Kc(e),delete t[i]}),h.stackTotalGroup?.destroy()}}function ep(){this.stacking||(this.stacking=new ap(this))}function ip(h,t,e,i){return!jn(h)||h.x!==t||i&&h.stackKey!==i?h={x:t,index:0,key:i,stackKey:i}:h.index++,h.key=[e,t,h.index].join(","),h}function sp(){let h,t=this,e=t.yAxis,i=t.stackKey||"",s=e.stacking.stacks,o=t.getColumn("x",!0),r=t.options.stacking,n=t[r+"Stacker"];n&&[i,"-"+i].forEach(a=>{let l=o.length,c,d,p;for(;l--;)c=o[l],h=t.getStackIndicator(h,c,t.index,a),d=s[a]?.[c],(p=d?.points[h.key||""])&&n.call(t,p,d,l)})}function op(h,t,e){let i=t.total?100/t.total:0;h[0]=Je(h[0]*i),h[1]=Je(h[1]*i),this.stackedYData[e]=h[1]}function rp(h){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&this.chart.series.length>1?qc.setStackedPoints.call(this,h,"group"):h.stacking.resetStacks())}function np(h,t){let e,i,s,o,r,n,a,l=t||this.options.stacking;if(!l||!this.reserveSpace()||({group:"xAxis"}[l]||"yAxis")!==h.coll)return;let c=this.getColumn("x",!0),d=this.getColumn(this.pointValKey||"y",!0),p=[],g=d.length,u=this.options,m=u.threshold||0,x=u.startFromThreshold?m:0,f=u.stack,y=t?`${this.type},${l}`:this.stackKey||"",b="-"+y,v=this.negStacks,S=h.stacking,M=S.stacks,k=S.oldStacks;for(S.stacksTouched+=1,a=0;a<g;a++){let w=c[a]||0,C=d[a],T=Po(C)&&C||0;n=(e=this.getStackIndicator(e,w,this.index)).key||"",M[r=(i=v&&T<(x?0:m))?b:y]||(M[r]={}),M[r][w]||(k[r]?.[w]?(M[r][w]=k[r][w],M[r][w].total=null):M[r][w]=new Fn(h,h.options.stackLabels,!!i,w,f)),s=M[r][w],C!==null?(s.points[n]=s.points[this.index]=[Ao(s.cumulative,x)],jn(s.cumulative)||(s.base=n),s.touched=S.stacksTouched,e.index>0&&this.singleStacks===!1&&(s.points[n][0]=s.points[this.index+","+w+",0"][0])):(delete s.points[n],delete s.points[this.index]);let P=s.total||0;l==="percent"?(o=i?y:b,P=v&&M[o]?.[w]?(o=M[o][w]).total=Math.max(o.total||0,P)+Math.abs(T):Je(P+Math.abs(T))):l==="group"?Po(C)&&P++:P=Je(P+T),l==="group"?s.cumulative=(P||1)-1:s.cumulative=Je(Ao(s.cumulative,x)+T),s.total=P,C!==null&&(s.points[n].push(s.cumulative),p[a]=s.cumulative,s.hasValidPoints=!0)}l==="percent"&&(S.usePercentage=!0),l!=="group"&&(this.stackedYData=p),S.oldStacks={}}class ap{constructor(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}buildStacks(){let t,e,i=this.axis,s=i.series,o=i.coll==="xAxis",r=i.options.reversedStacks,n=s.length;for(this.resetStacks(),this.usePercentage=!1,e=n;e--;)t=s[r?e:n-e-1],o&&t.setGroupedPoints(i),t.setStackedPoints(i);if(!o)for(e=0;e<n;e++)s[e].modifyStacks();Jc(i,"afterBuildStacks")}cleanStacks(){this.oldStacks&&(this.stacks=this.oldStacks,ce(this.stacks,t=>{ce(t,e=>{e.cumulative=e.total})}))}resetStacks(){ce(this.stacks,t=>{ce(t,(e,i)=>{Po(e.touched)&&e.touched<this.stacksTouched?(e.destroy(),delete t[i]):(e.total=null,e.cumulative=null)})})}renderStackTotals(){let t=this.axis,e=t.chart,i=e.renderer,s=this.stacks,o=Zc(e,t.options.stackLabels?.animation||!1),r=this.stackTotalGroup=this.stackTotalGroup||i.g("stack-labels").attr({zIndex:6,opacity:0}).add();r.translate(e.plotLeft,e.plotTop),ce(s,n=>{ce(n,a=>{a.render(r)})}),r.animate({opacity:1},o)}}(ms||(ms={})).compose=function(h,t,e){let i=t.prototype,s=e.prototype;i.getStacks||(Gn(h,"init",ep),Gn(h,"destroy",tp),i.getStacks=Qc,s.getStackIndicator=ip,s.modifyStacks=sp,s.percentStacker=op,s.setGroupedPoints=rp,s.setStackedPoints=np)};let hp=ms,{defined:lp,merge:Yn,isObject:dp}=z;class _n extends kt{drawGraph(){let t=this.options,e=(this.gappedPath||this.getGraphPath).call(this),i=this.chart.styledMode;[this,...this.zones].forEach((s,o)=>{let r,n=s.graph,a=n?"animate":"attr",l=s.dashStyle||t.dashStyle;n?(n.endX=this.preventGraphAnimation?null:e.xMap,n.animate({d:e})):e.length&&(s.graph=n=this.chart.renderer.path(e).addClass("highcharts-graph"+(o?` highcharts-zone-graph-${o-1} `:" ")+(o&&s.className||"")).attr({zIndex:1}).add(this.group)),n&&!i&&(r={stroke:!o&&t.lineColor||s.color||this.color||"#cccccc","stroke-width":t.lineWidth||0,fill:this.fillGraph&&this.color||"none"},l?r.dashstyle=l:t.linecap!=="square"&&(r["stroke-linecap"]=r["stroke-linejoin"]="round"),n[a](r).shadow(t.shadow&&Yn({filterUnits:"userSpaceOnUse"},dp(t.shadow)?t.shadow:{}))),n&&(n.startX=e.xMap,n.isArea=e.isArea)})}getGraphPath(t,e,i){let s=this,o=s.options,r=[],n=[],a,l=o.step,c=(t=t||s.points).reversed;return c&&t.reverse(),(l={right:1,center:2}[l]||l&&3)&&c&&(l=4-l),(t=this.getValidPoints(t,!1,o.nullInteraction||!(o.connectNulls&&!e&&!i))).forEach(function(d,p){let g,u=d.plotX,m=d.plotY,x=t[p-1],f=d.isNull||typeof m!="number";(d.leftCliff||x?.rightCliff)&&!i&&(a=!0),f&&!lp(e)&&p>0?a=!o.connectNulls:f&&!e?a=!0:(p===0||a?g=[["M",d.plotX,d.plotY]]:s.getPointSpline?g=[s.getPointSpline(t,d,p)]:l?(g=l===1?[["L",x.plotX,m]]:l===2?[["L",(x.plotX+u)/2,x.plotY],["L",(x.plotX+u)/2,m]]:[["L",u,x.plotY]]).push(["L",u,m]):g=[["L",u,m]],n.push(d.x),l&&(n.push(d.x),l===2&&n.push(d.x)),r.push.apply(r,g),a=!1)}),r.xMap=n,s.graphPath=r,r}}_n.defaultOptions=Yn(kt.defaultOptions,{legendSymbol:"lineMarker"}),st.registerSeriesType("line",_n);let{seriesTypes:{line:Oo}}=st,{extend:cp,merge:pp,objectEach:gp,pick:$i}=z;class Lo extends Oo{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:t,options:e}=this;[this,...this.zones].forEach((i,s)=>{let o={},r=i.fillColor||e.fillColor,n=i.area,a=n?"animate":"attr";n?(n.endX=this.preventGraphAnimation?null:t.xMap,n.animate({d:t})):(o.zIndex=0,(n=i.area=this.chart.renderer.path(t).addClass("highcharts-area"+(s?` highcharts-zone-area-${s-1} `:" ")+(s&&i.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(o.fill=r||i.color||this.color,o["fill-opacity"]=r?1:e.fillOpacity??.75,n.css({pointerEvents:this.stickyTracking?"none":"auto"})),n[a](o),n.startX=t.xMap,n.shiftUnit=e.step?2:1})}getGraphPath(t){let e,i,s,o=Oo.prototype.getGraphPath,r=this.options,n=r.stacking,a=this.yAxis,l=[],c=[],d=this.index,p=a.stacking.stacks[this.stackKey],g=r.threshold,u=Math.round(a.getThreshold(r.threshold)),m=$i(r.connectNulls,n==="percent"),x=function(M,k,w){let C=t[M],T=n&&p[C.x].points[d],P=C[w+"Null"]||0,O=C[w+"Cliff"]||0,L,I,D=!0;O||P?(L=(P?T[0]:T[1])+O,I=T[0]+O,D=!!P):!n&&t[k]&&t[k].isNull&&(L=I=g),L!==void 0&&(c.push({plotX:e,plotY:L===null?u:a.getThreshold(L),isNull:D,isCliff:!0}),l.push({plotX:e,plotY:I===null?u:a.getThreshold(I),doCurve:!1}))};t=t||this.points,n&&(t=this.getStackPoints(t));for(let M=0,k=t.length;M<k;++M)n||(t[M].leftCliff=t[M].rightCliff=t[M].leftNull=t[M].rightNull=void 0),i=t[M].isNull,e=$i(t[M].rectPlotX,t[M].plotX),s=n?$i(t[M].yBottom,u):u,i&&!m||(m||x(M,M-1,"left"),i&&!n&&m||(c.push(t[M]),l.push({x:M,plotX:e,plotY:s})),m||x(M,M+1,"right"));let f=o.call(this,c,!0,!0);l.reversed=!0;let y=o.call(this,l,!0,!0),b=y[0];b&&b[0]==="M"&&(y[0]=["L",b[1],b[2]]);let v=f.concat(y);v.length&&v.push(["Z"]);let S=o.call(this,c,!1,m);return this.chart.series.length>1&&n&&c.some(M=>M.isCliff)&&(v.hasStackedCliffs=S.hasStackedCliffs=!0),v.xMap=f.xMap,this.areaPath=v,S}getStackPoints(t){let e=this,i=[],s=[],o=this.xAxis,r=this.yAxis,n=r.stacking.stacks[this.stackKey],a={},l=r.series,c=l.length,d=r.options.reversedStacks?1:-1,p=l.indexOf(e);if(t=t||this.points,this.options.stacking){for(let u=0;u<t.length;u++)t[u].leftNull=t[u].rightNull=void 0,a[t[u].x]=t[u];gp(n,function(u,m){u.total!==null&&s.push(m)}),s.sort(function(u,m){return u-m});let g=l.map(u=>u.visible);s.forEach(function(u,m){let x=0,f,y;if(a[u]&&!a[u].isNull)i.push(a[u]),[-1,1].forEach(function(b){let v=b===1?"rightNull":"leftNull",S=n[s[m+b]],M=0;if(S){let k=p;for(;k>=0&&k<c;){let w=l[k].index;!(f=S.points[w])&&(w===e.index?a[u][v]=!0:g[k]&&(y=n[u].points[w])&&(M-=y[1]-y[0])),k+=d}}a[u][b===1?"rightCliff":"leftCliff"]=M});else{let b=p;for(;b>=0&&b<c;){let v=l[b].index;if(f=n[u].points[v]){x=f[1];break}b+=d}x=$i(x,0),x=r.translate(x,0,1,0,1),i.push({isNull:!0,plotX:o.translate(u,0,0,0,1),x:u,plotY:x,yBottom:x})}})}return i}}Lo.defaultOptions=pp(Oo.defaultOptions,{threshold:0,legendSymbol:"areaMarker"}),cp(Lo.prototype,{singleStacks:!1}),st.registerSeriesType("area",Lo);let{line:Un}=st.seriesTypes,{merge:up,pick:Zi}=z;class Eo extends Un{getPointSpline(t,e,i){let s,o,r,n,a=e.plotX||0,l=e.plotY||0,c=t[i-1],d=t[i+1];function p(u){return u&&!u.isNull&&u.doCurve!==!1&&!e.isCliff}if(p(c)&&p(d)){let u=c.plotX||0,m=c.plotY||0,x=d.plotX||0,f=d.plotY||0,y=0;s=(1.5*a+u)/2.5,o=(1.5*l+m)/2.5,r=(1.5*a+x)/2.5,n=(1.5*l+f)/2.5,r!==s&&(y=(n-o)*(r-a)/(r-s)+l-n),o+=y,n+=y,o>m&&o>l?(o=Math.max(m,l),n=2*l-o):o<m&&o<l&&(o=Math.min(m,l),n=2*l-o),n>f&&n>l?(n=Math.max(f,l),o=2*l-n):n<f&&n<l&&(n=Math.min(f,l),o=2*l-n),e.rightContX=r,e.rightContY=n,e.controlPoints={low:[s,o],high:[r,n]}}let g=["C",Zi(c.rightContX,c.plotX,0),Zi(c.rightContY,c.plotY,0),Zi(s,a,0),Zi(o,l,0),a,l];return c.rightContX=c.rightContY=void 0,g}}Eo.defaultOptions=up(Un.defaultOptions),st.registerSeriesType("spline",Eo);let Vn=Eo,{area:mp,area:{prototype:Io}}=st.seriesTypes,{extend:fp,merge:xp}=z;class Do extends Vn{}Do.defaultOptions=xp(Vn.defaultOptions,mp.defaultOptions),fp(Do.prototype,{getGraphPath:Io.getGraphPath,getStackPoints:Io.getStackPoints,drawGraph:Io.drawGraph}),st.registerSeriesType("areaspline",Do);let{animObject:yp}=pt,{parse:bp}=tt,{noop:vp}=A,{clamp:qi,crisp:Ki,defined:$n,extend:Zn,fireEvent:qn,isArray:Kn,isNumber:Ji,merge:Bo,pick:Qe,objectEach:kp}=z;class Qi extends kt{animate(t){let e,i,s=this,o=this.yAxis,r=o.pos,n=o.reversed,a=s.options,{clipOffset:l,inverted:c}=this.chart,d={},p=c?"translateX":"translateY";t&&l?(d.scaleY=.001,i=qi(o.toPixels(a.threshold||0),r,r+o.len),c?d.translateX=(i+=n?-Math.floor(l[0]):Math.ceil(l[2]))-o.len:d.translateY=i+=n?Math.ceil(l[0]):-Math.floor(l[2]),s.clipBox&&s.setClip(),s.group.attr(d)):(e=Number(s.group.attr(p)),s.group.animate({scaleY:1},Zn(yp(s.options.animation),{step:function(g,u){s.group&&(d[p]=e+u.pos*(r-e),s.group.attr(d))}})))}init(t,e){super.init.apply(this,arguments);let i=this;(t=i.chart).hasRendered&&t.series.forEach(function(s){s.type===i.type&&(s.isDirty=!0)})}getColumnMetrics(){let t=this,e=t.options,i=t.xAxis,s=t.yAxis,o=i.options.reversedStacks,r=i.reversed&&!o||!i.reversed&&o,n={},a,l=0;e.grouping===!1?l=1:t.chart.series.forEach(function(m){let x,f=m.yAxis,y=m.options;m.type===t.type&&m.reserveSpace()&&s.len===f.len&&s.pos===f.pos&&(y.stacking&&y.stacking!=="group"?(n[a=m.stackKey]===void 0&&(n[a]=l++),x=n[a]):y.grouping!==!1&&(x=l++),m.columnIndex=x)});let c=Math.min(Math.abs(i.transA)*(!i.brokenAxis?.hasBreaks&&i.ordinal?.slope||e.pointRange||i.closestPointRange||i.tickInterval||1),i.len),d=c*e.groupPadding,p=(c-2*d)/(l||1),g=Math.min(e.maxPointWidth||i.len,Qe(e.pointWidth,p*(1-2*e.pointPadding))),u=(t.columnIndex||0)+ +!!r;return t.columnMetrics={width:g,offset:(p-g)/2+(d+u*p-c/2)*(r?-1:1),paddedWidth:p,columnCount:l},t.columnMetrics}crispCol(t,e,i,s){let o=this.borderWidth,r=this.chart.inverted;return s=Ki(e+s,o,r)-(e=Ki(e,o,r)),this.options.crisp&&(i=Ki(t+i,o)-(t=Ki(t,o))),{x:t,y:e,width:i,height:s}}adjustForMissingColumns(t,e,i,s){if(!i.isNull&&s.columnCount>1){let o=this.xAxis.series.filter(l=>l.visible).map(l=>l.index),r=0,n=0;kp(this.xAxis.stacking?.stacks,l=>{let c=typeof i.x=="number"?l[i.x.toString()]?.points:void 0,d=c?.[this.index],p={};if(c&&Kn(d)){let g=this.index,u=Object.keys(c).filter(m=>!m.match(",")&&c[m]&&c[m].length>1).map(parseFloat).filter(m=>o.indexOf(m)!==-1).filter(m=>{let x=this.chart.series[m].options,f=x.stacking&&x.stack;if($n(f)){if(Ji(p[f]))return g===m&&(g=p[f]),!1;p[f]=m}return!0}).sort((m,x)=>x-m);r=u.indexOf(g),n=u.length}}),r=this.xAxis.reversed?n-1-r:r;let a=(n-1)*s.paddedWidth+e;t=(i.plotX||0)+a/2-e-r*s.paddedWidth}return t}translate(){let t=this,e=t.chart,i=t.options,s=t.dense=t.closestPointRange*t.xAxis.transA<2,o=t.borderWidth=Qe(i.borderWidth,+!s),r=t.xAxis,n=t.yAxis,a=i.threshold,l=Qe(i.minPointLength,5),c=t.getColumnMetrics(),d=c.width,p=t.pointXOffset=c.offset,g=t.dataMin,u=t.dataMax,m=t.translatedThreshold=n.getThreshold(a),x=t.barW=Math.max(d,1+2*o);i.pointPadding&&i.crisp&&(x=Math.ceil(x)),kt.prototype.translate.apply(t),t.points.forEach(function(f){let y=Qe(f.yBottom,m),b=999+Math.abs(y),v=f.plotX||0,S=qi(f.plotY,-b,n.len+b),M,k=Math.min(S,y),w=Math.max(S,y)-k,C=d,T=v+p,P=x;l&&Math.abs(w)<l&&(w=l,M=!n.reversed&&!f.negative||n.reversed&&f.negative,Ji(a)&&Ji(u)&&f.y===a&&u<=a&&(n.min||0)<a&&(g!==u||(n.max||0)<=a)&&(M=!M,f.negative=!f.negative),k=Math.abs(k-m)>l?y-l:m-(M?l:0)),$n(f.options.pointWidth)&&(T-=Math.round(((C=P=Math.ceil(f.options.pointWidth))-d)/2)),i.centerInCategory&&(T=t.adjustForMissingColumns(T,C,f,c)),f.barX=T,f.pointWidth=C,f.tooltipPos=e.inverted?[qi(n.len+n.pos-e.plotLeft-S,n.pos-e.plotLeft,n.len+n.pos-e.plotLeft),r.len+r.pos-e.plotTop-T-P/2,w]:[r.left-e.plotLeft+T+P/2,qi(S+n.pos-e.plotTop,n.pos-e.plotTop,n.len+n.pos-e.plotTop),w],f.shapeType=t.pointClass.prototype.shapeType||"roundedRect",f.shapeArgs=t.crispCol(T,k,P,f.isNull?0:w)}),qn(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(t,e){let i=this.options,s=this.pointAttrToOptions||{},o=s.stroke||"borderColor",r=s["stroke-width"]||"borderWidth",n,a,l,c=t&&t.color||this.color,d=t&&t[o]||i[o]||c,p=t&&t.options.dashStyle||i.dashStyle,g=t&&t[r]||i[r]||this[r]||0,u=t?.isNull&&i.nullInteraction?0:t?.opacity??i.opacity??1;t&&this.zones.length&&(a=t.getZone(),c=t.options.color||a&&(a.color||t.nonZonedColor)||this.color,a&&(d=a.borderColor||d,p=a.dashStyle||p,g=a.borderWidth||g)),e&&t&&(l=(n=Bo(i.states[e],t.options.states&&t.options.states[e]||{})).brightness,c=n.color||l!==void 0&&bp(c).brighten(n.brightness).get()||c,d=n[o]||d,g=n[r]||g,p=n.dashStyle||p,u=Qe(n.opacity,u));let m={fill:c,stroke:d,"stroke-width":g,opacity:u};return p&&(m.dashstyle=p),m}drawPoints(t=this.points){let e,i=this,s=this.chart,o=i.options,r=o.nullInteraction,n=s.renderer,a=o.animationLimit||250;t.forEach(function(l){let c=l.plotY,d=l.graphic,p=!!d,g=d&&s.pointCount<a?"animate":"attr";Ji(c)&&(l.y!==null||r)?(e=l.shapeArgs,d&&l.hasNewShapeType()&&(d=d.destroy()),i.enabledDataSorting&&(l.startXPos=i.xAxis.reversed?-(e&&e.width||0):i.xAxis.width),!d&&(l.graphic=d=n[l.shapeType](e).add(l.group||i.group),d&&i.enabledDataSorting&&s.hasRendered&&s.pointCount<a&&(d.attr({x:l.startXPos}),p=!0,g="animate")),d&&p&&d[g](Bo(e)),s.styledMode||d[g](i.pointAttribs(l,l.selected&&"select")).shadow(l.allowShadow!==!1&&o.shadow),d&&(d.addClass(l.getClassName(),!0),d.attr({visibility:l.visible?"inherit":"hidden"}))):d&&(l.graphic=d.destroy())})}drawTracker(t=this.points){let e,i=this,s=i.chart,o=s.pointer,r=function(n){o?.normalize(n);let a=o?.getPointFromEvent(n);o&&a&&i.options.enableMouseTracking&&(s.isInsidePlot(n.chartX-s.plotLeft,n.chartY-s.plotTop,{visiblePlotOnly:!0})||o?.inClass(n.target,"highcharts-data-label"))&&(o.isDirectTouch=!0,a.onMouseOver(n))};t.forEach(function(n){e=Kn(n.dataLabels)?n.dataLabels:n.dataLabel?[n.dataLabel]:[],n.graphic&&(n.graphic.element.point=n),e.forEach(function(a){(a.div||a.element).point=n})}),i._hasTracking||(i.trackerGroups.forEach(function(n){i[n]&&(i[n].addClass("highcharts-tracker").on("mouseover",r).on("mouseout",function(a){o?.onTrackerMouseOut(a)}).on("touchstart",r),!s.styledMode&&i.options.cursor&&i[n].css({cursor:i.options.cursor}))}),i._hasTracking=!0),qn(this,"afterDrawTracker")}remove(){let t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(i){i.type===t.type&&(i.isDirty=!0)}),kt.prototype.remove.apply(t,arguments)}}Qi.defaultOptions=Bo(kt.defaultOptions,{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"}),Zn(Qi.prototype,{directTouch:!0,getSymbol:vp,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),st.registerSeriesType("column",Qi);let ts=Qi,{getDeferredAnimation:Mp}=pt,{format:wp}=wt,{defined:pe,extend:Jn,fireEvent:zo,getAlignFactor:Qn,isArray:Jt,isString:ti,merge:ei,objectEach:Sp,pick:ii,pInt:Cp,splat:ta}=z;(function(h){function t(){return a(this).some(c=>c?.enabled)}function e(c,d,p,g,u){let{chart:m,enabledDataSorting:x}=this,f=this.isCartesian&&m.inverted,y=c.plotX,b=c.plotY,v=p.rotation||0,S=pe(y)&&pe(b)&&m.isInsidePlot(y,Math.round(b),{inverted:f,paneCoordinates:!0,series:this}),M=v===0&&ii(p.overflow,x?"none":"justify")==="justify",k=this.visible&&c.visible!==!1&&pe(y)&&(c.series.forceDL||x&&!M||S||ii(p.inside,!!this.options.stacking)&&g&&m.isInsidePlot(y,f?g.x+1:g.y+g.height-1,{inverted:f,paneCoordinates:!0,series:this})),w=c.pos();if(k&&w){var C;let T=d.getBBox(),P=d.getBBox(void 0,0);if(g=Jn({x:w[0],y:Math.round(w[1]),width:0,height:0},g||{}),p.alignTo==="plotEdges"&&this.isCartesian&&(g[f?"x":"y"]=0,g[f?"width":"height"]=this.yAxis?.len||0),Jn(p,{width:T.width,height:T.height}),C=g,x&&this.xAxis&&!M&&this.setDataLabelStartPos(c,d,u,S,C),d.align(ei(p,{width:P.width,height:P.height}),!1,g,!1),d.alignAttr.x+=Qn(p.align)*(P.width-T.width),d.alignAttr.y+=Qn(p.verticalAlign)*(P.height-T.height),d[d.placed?"animate":"attr"]({"text-align":d.alignAttr["text-align"]||"center",x:d.alignAttr.x+(T.width-P.width)/2,y:d.alignAttr.y+(T.height-P.height)/2,rotationOriginX:(d.width||0)/2,rotationOriginY:(d.height||0)/2}),M&&g.height>=0)this.justifyDataLabel(d,p,d.alignAttr,T,g,u);else if(ii(p.crop,!0)){let{x:O,y:L}=d.alignAttr;k=m.isInsidePlot(O,L,{paneCoordinates:!0,series:this})&&m.isInsidePlot(O+T.width-1,L+T.height-1,{paneCoordinates:!0,series:this})}p.shape&&!v&&d[u?"attr":"animate"]({anchorX:w[0],anchorY:w[1]})}u&&x&&(d.placed=!1),k||x&&!M?(d.show(),d.placed=!0):(d.hide(),d.placed=!1)}function i(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function s(c){let d=this.hasRendered||0,p=this.initDataLabelsGroup().attr({opacity:+d});return!d&&p&&(this.visible&&p.show(),this.options.animation?p.animate({opacity:1},c):p.attr({opacity:1})),p}function o(c){let d;c=c||this.points;let p=this,g=p.chart,u=p.options,m=g.renderer,{backgroundColor:x,plotBackgroundColor:f}=g.options.chart,y=m.getContrast(ti(f)&&f||ti(x)&&x||"#000000"),b=a(p),{animation:v,defer:S}=b[0],M=S?Mp(g,v,p):{defer:0,duration:0};zo(this,"drawDataLabels"),p.hasDataLabels?.()&&(d=this.initDataLabels(M),c.forEach(k=>{let w=k.dataLabels||[],C=k.color||p.color;ta(n(b,k.dlOptions||k.options?.dataLabels)).forEach((P,O)=>{let L=P.enabled&&(k.visible||k.dataLabelOnHidden)&&(!k.isNull||k.dataLabelOnNull)&&function($,q){let V=q.filter;if(V){let Q=V.operator,ft=$[V.property],yt=V.value;return Q===">"&&ft>yt||Q==="<"&&ft<yt||Q===">="&&ft>=yt||Q==="<="&&ft<=yt||Q==="=="&&ft==yt||Q==="==="&&ft===yt||Q==="!="&&ft!=yt||Q==="!=="&&ft!==yt||!1}return!0}(k,P),{backgroundColor:I,borderColor:D,distance:E,style:B={}}=P,K,_,mt,W={},H=w[O],U=!H,G;L&&(_=pe(K=ii(P[k.formatPrefix+"Format"],P.format))?wp(K,k,g):(P[k.formatPrefix+"Formatter"]||P.formatter).call(k,P),mt=P.rotation,!g.styledMode&&(B.color=ii(P.color,B.color,ti(p.color)?p.color:void 0,"#000000"),B.color==="contrast"?(I!=="none"&&(G=I),k.contrastColor=m.getContrast(G!=="auto"&&ti(G)&&G||(ti(C)?C:"")),B.color=G||!pe(E)&&P.inside||0>Cp(E||0)||u.stacking?k.contrastColor:y):delete k.contrastColor,u.cursor&&(B.cursor=u.cursor)),W={r:P.borderRadius||0,rotation:mt,padding:P.padding,zIndex:1},g.styledMode||(W.fill=I==="auto"?k.color:I,W.stroke=D==="auto"?k.color:D,W["stroke-width"]=P.borderWidth),Sp(W,($,q)=>{$===void 0&&delete W[q]})),!H||L&&pe(_)&&!!(H.div||H.text?.foreignObject)==!!P.useHTML&&(H.rotation&&P.rotation||H.rotation===P.rotation)||(H=void 0,U=!0),L&&pe(_)&&(H?W.text=_:(H=m.label(_,0,0,P.shape,void 0,void 0,P.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+k.colorIndex+" "+(P.className||"")+(P.useHTML?" highcharts-tracker":"")),H&&(H.options=P,H.attr(W),g.styledMode?B.width&&H.css({width:B.width,textOverflow:B.textOverflow,whiteSpace:B.whiteSpace}):H.css(B).shadow(P.shadow),zo(H,"beforeAddingDataLabel",{labelOptions:P,point:k}),H.added||H.add(d),p.alignDataLabel(k,H,P,void 0,U),H.isActive=!0,w[O]&&w[O]!==H&&w[O].destroy(),w[O]=H))});let T=w.length;for(;T--;)w[T]?.isActive?w[T].isActive=!1:(w[T]?.destroy(),w.splice(T,1));k.dataLabel=w[0],k.dataLabels=w})),zo(this,"afterDrawDataLabels")}function r(c,d,p,g,u,m){let x=this.chart,f=d.align,y=d.verticalAlign,b=c.box?0:c.padding||0,v=x.inverted?this.yAxis:this.xAxis,S=v?v.left-x.plotLeft:0,M=x.inverted?this.xAxis:this.yAxis,k=M?M.top-x.plotTop:0,{x:w=0,y:C=0}=d,T,P;return(T=(p.x||0)+b+S)<0&&(f==="right"&&w>=0?(d.align="left",d.inside=!0):w-=T,P=!0),(T=(p.x||0)+g.width-b+S)>x.plotWidth&&(f==="left"&&w<=0?(d.align="right",d.inside=!0):w+=x.plotWidth-T,P=!0),(T=p.y+b+k)<0&&(y==="bottom"&&C>=0?(d.verticalAlign="top",d.inside=!0):C-=T,P=!0),(T=(p.y||0)+g.height-b+k)>x.plotHeight&&(y==="top"&&C<=0?(d.verticalAlign="bottom",d.inside=!0):C+=x.plotHeight-T,P=!0),P&&(d.x=w,d.y=C,c.placed=!m,c.align(d,void 0,u)),P}function n(c,d){let p=[],g;if(Jt(c)&&!Jt(d))p=c.map(function(u){return ei(u,d)});else if(Jt(d)&&!Jt(c))p=d.map(function(u){return ei(c,u)});else if(Jt(c)||Jt(d)){if(Jt(c)&&Jt(d))for(g=Math.max(c.length,d.length);g--;)p[g]=ei(c[g],d[g])}else p=ei(c,d);return p}function a(c){let d=c.chart.options.plotOptions;return ta(n(n(d?.series?.dataLabels,d?.[c.type]?.dataLabels),c.options.dataLabels))}function l(c,d,p,g,u){let m=this.chart,x=m.inverted,f=this.xAxis,y=f.reversed,b=((x?d.height:d.width)||0)/2,v=c.pointWidth,S=v?v/2:0;d.startXPos=x?u.x:y?-b-S:f.width-b+S,d.startYPos=x?y?this.yAxis.height-b+S:-b-S:u.y,g?d.visibility==="hidden"&&(d.show(),d.attr({opacity:0}).animate({opacity:1})):d.attr({opacity:1}).animate({opacity:0},void 0,d.hide),m.hasRendered&&(p&&d.attr({x:d.startXPos,y:d.startYPos}),d.placed=!0)}h.compose=function(c){let d=c.prototype;d.initDataLabels||(d.initDataLabels=s,d.initDataLabelsGroup=i,d.alignDataLabel=e,d.drawDataLabels=o,d.justifyDataLabel=r,d.mergeArrays=n,d.setDataLabelStartPos=l,d.hasDataLabels=t)}})(fs||(fs={}));let es=fs,{composed:Tp}=A,{series:ea}=st,{merge:Pp,pushUnique:Ap}=z;(function(h){function t(e,i,s,o,r){let{chart:n,options:a}=this,l=n.inverted,c=this.xAxis?.len||n.plotSizeX||0,d=this.yAxis?.len||n.plotSizeY||0,p=e.dlBox||e.shapeArgs,g=e.below??(e.plotY||0)>(this.translatedThreshold??d),u=s.inside??!!a.stacking;if(p){if(o=Pp(p),s.overflow!=="allow"||s.crop!==!1||a.clip!==!1){o.y<0&&(o.height+=o.y,o.y=0);let m=o.y+o.height-d;m>0&&m<o.height-1&&(o.height-=m)}l&&(o={x:d-o.y-o.height,y:c-o.x-o.width,width:o.height,height:o.width}),u||(l?(o.x+=g?0:o.width,o.width=0):(o.y+=g?o.height:0,o.height=0))}s.align??(s.align=!l||u?"center":g?"right":"left"),s.verticalAlign??(s.verticalAlign=l||u?"middle":g?"top":"bottom"),ea.prototype.alignDataLabel.call(this,e,i,s,o,r),s.inside&&e.contrastColor&&i.css({color:e.contrastColor})}h.compose=function(e){es.compose(ea),Ap(Tp,"ColumnDataLabel")&&(e.prototype.alignDataLabel=t)}})(xs||(xs={}));let Op=xs,{extend:Lp,merge:Ep}=z;class No extends ts{}No.defaultOptions=Ep(ts.defaultOptions,{}),Lp(No.prototype,{inverted:!0}),st.registerSeriesType("bar",No);let{column:Ip,line:ia}=st.seriesTypes,{addEvent:Dp,extend:Bp,merge:zp}=z;class is extends ia{applyJitter(){let t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach(function(s,o){["x","y"].forEach(function(r,n){if(e[r]&&!s.isNull){let a=`plot${r.toUpperCase()}`,l=t[`${r}Axis`],c=e[r]*l.transA;if(l&&!l.logarithmic){let d=Math.max(0,(s[a]||0)-c),p=Math.min(l.len,(s[a]||0)+c);s[a]=d+(p-d)*function(g){let u=1e4*Math.sin(g);return u-Math.floor(u)}(o+n*i),r==="x"&&(s.clientX=s.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}is.defaultOptions=zp(ia.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25CF</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),Bp(is.prototype,{drawTracker:Ip.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),Dp(is,"afterTranslate",function(){this.applyJitter()}),st.registerSeriesType("scatter",is);let{deg2rad:sa}=A,{fireEvent:Np,isNumber:Ro,pick:ss,relativeLength:Rp}=z;(function(h){h.getCenter=function(){let t=this.options,e=this.chart,i=2*(t.slicedOffset||0),s=e.plotWidth-2*i,o=e.plotHeight-2*i,r=t.center,n=Math.min(s,o),a=t.thickness,l,c=t.size,d=t.innerSize||0,p,g;typeof c=="string"&&(c=parseFloat(c)),typeof d=="string"&&(d=parseFloat(d));let u=[ss(r?.[0],"50%"),ss(r?.[1],"50%"),ss(c&&c<0?void 0:t.size,"100%"),ss(d&&d<0?void 0:t.innerSize||0,"0%")];for(!e.angular||this instanceof kt||(u[3]=0),p=0;p<4;++p)g=u[p],l=p<2||p===2&&/%$/.test(g),u[p]=Rp(g,[s,o,n,u[2]][p])+(l?i:0);return u[3]>u[2]&&(u[3]=u[2]),Ro(a)&&2*a<u[2]&&a>0&&(u[3]=u[2]-2*a),Np(this,"afterGetCenter",{positions:u}),u},h.getStartAndEndRadians=function(t,e){let i=Ro(t)?t:0,s=Ro(e)&&e>i&&e-i<360?e:i+360;return{start:sa*(i+-90),end:sa*(s+-90)}}})(ys||(ys={}));let oa=ys,{setAnimation:Wp}=pt,{addEvent:ra,defined:Hp,extend:Xp,isNumber:Fp,pick:Gp,relativeLength:jp}=z;class na extends Ut{getConnectorPath(t){let e=t.dataLabelPosition,i=t.options||{},s=i.connectorShape,o=this.connectorShapes[s]||s;return e&&o.call(this,ee(Pt({},e.computed),{alignment:e.alignment}),e.connectorPosition,i)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(t){let 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})}constructor(t,e,i){super(t,e,i),this.half=0,this.name??(this.name=t.chart.options.lang.pieSliceName);let s=o=>{this.slice(o.type==="select")};ra(this,"select",s),ra(this,"unselect",s)}isValid(){return Fp(this.y)&&this.y>=0}setVisible(t,e=!0){t!==this.visible&&this.update({visible:t??!this.visible},e,void 0,!1)}slice(t,e,i){let s=this.series;Wp(i,s.chart),e=Gp(e,!0),this.sliced=this.options.sliced=t=Hp(t)?t:!this.sliced,s.options.data[s.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}Xp(na.prototype,{connectorShapes:{fixedOffset:function(h,t,e){let i=t.breakAt,s=t.touchingSliceAt,o=e.softConnector?["C",h.x+(h.alignment==="left"?-5:5),h.y,2*i.x-s.x,2*i.y-s.y,i.x,i.y]:["L",i.x,i.y];return[["M",h.x,h.y],o,["L",s.x,s.y]]},straight:function(h,t){let e=t.touchingSliceAt;return[["M",h.x,h.y],["L",e.x,e.y]]},crookedLine:function(h,t,e){let{angle:i=this.angle||0,breakAt:s,touchingSliceAt:o}=t,{series:r}=this,[n,a,l]=r.center,c=l/2,{plotLeft:d,plotWidth:p}=r.chart,g=h.alignment==="left",{x:u,y:m}=h,x=s.x;if(e.crookDistance){let y=jp(e.crookDistance,1);x=g?n+c+(p+d-n-c)*(1-y):d+(n-c)*y}else x=n+(a-m)*Math.tan(i-Math.PI/2);let f=[["M",u,m]];return(g?x<=u&&x>=s.x:x>=u&&x<=s.x)&&f.push(["L",x,m]),f.push(["L",s.x,s.y],["L",o.x,o.y]),f}}});let{getStartAndEndRadians:Yp}=oa,{noop:aa}=A,{clamp:_p,extend:Up,fireEvent:ha,merge:Wo,pick:Vp}=z;class Ho extends kt{animate(t){let e=this,i=e.points,s=e.startAngleRad;t||i.forEach(function(o){let r=o.graphic,n=o.shapeArgs;r&&n&&(r.attr({r:Vp(o.startR,e.center&&e.center[3]/2),start:s,end:s}),r.animate({r:n.r,start:n.start,end:n.end},e.options.animation))})}drawEmpty(){let t,e,i=this.startAngleRad,s=this.endAngleRad,o=this.options;this.total===0&&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,s).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:Dr.arc(t,e,this.center[2]/2,0,{start:i,end:s,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":o.borderWidth,fill:o.fillColor||"none",stroke:o.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let 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)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(t,e,i,s){let o=this.center,r=this.radii?this.radii[i.index]||0:o[2]/2,n=s.dataLabelPosition,a=n?.distance||0,l=Math.asin(_p((t-o[1])/(r+a),-1,1));return o[0]+Math.cos(l)*(r+a)*(e?-1:1)+(a>0?(e?-1:1)*(s.padding||0):0)}hasData(){return!!this.dataTable.rowCount}redrawPoints(){let t,e,i,s,o=this,r=o.chart;this.drawEmpty(),o.group&&!r.styledMode&&o.group.shadow(o.options.shadow),o.points.forEach(function(n){let a={};e=n.graphic,!n.isNull&&e?(s=n.shapeArgs,t=n.getTranslate(),r.styledMode||(i=o.pointAttribs(n,n.selected&&"select")),n.delayedRendering?(e.setRadialReference(o.center).attr(s).attr(t),r.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}),n.delayedRendering=!1):(e.setRadialReference(o.center),r.styledMode||Wo(!0,a,i),Wo(!0,a,s,t),e.animate(a)),e.attr({visibility:n.visible?"inherit":"hidden"}),e.addClass(n.getClassName(),!0)):e&&(n.graphic=e.destroy())})}sortByAngle(t,e){t.sort(function(i,s){return i.angle!==void 0&&(s.angle-i.angle)*e})}translate(t){ha(this,"translate"),this.generatePoints();let e=this.options,i=e.slicedOffset,s=Yp(e.startAngle,e.endAngle),o=this.startAngleRad=s.start,r=(this.endAngleRad=s.end)-o,n=this.points,a=e.ignoreHiddenPoint,l=n.length,c,d,p,g,u,m,x,f=0;for(t||(this.center=t=this.getCenter()),m=0;m<l;m++){x=n[m],c=o+f*r,x.isValid()&&(!a||x.visible)&&(f+=x.percentage/100),d=o+f*r;let y={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*c)/1e3,end:Math.round(1e3*d)/1e3};x.shapeType="arc",x.shapeArgs=y,(p=(d+c)/2)>1.5*Math.PI?p-=2*Math.PI:p<-Math.PI/2&&(p+=2*Math.PI),x.slicedTranslation={translateX:Math.round(Math.cos(p)*i),translateY:Math.round(Math.sin(p)*i)},g=Math.cos(p)*t[2]/2,u=Math.sin(p)*t[2]/2,x.tooltipPos=[t[0]+.7*g,t[1]+.7*u],x.half=+(p<-Math.PI/2||p>Math.PI/2),x.angle=p}ha(this,"afterTranslate")}updateTotals(){let t=this.points,e=t.length,i=this.options.ignoreHiddenPoint,s,o,r=0;for(s=0;s<e;s++)(o=t[s]).isValid()&&(!i||o.visible)&&(r+=o.y);for(s=0,this.total=r;s<e;s++)(o=t[s]).percentage=r>0&&(o.visible||!i)?o.y/r*100:0,o.total=r}}Ho.defaultOptions=Wo(kt.defaultOptions,{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}}}),Up(Ho.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:ts.prototype.drawTracker,getCenter:oa.getCenter,getSymbol:aa,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:ts.prototype.pointAttribs,pointClass:na,requireSorting:!1,searchPoint:aa,trackerGroups:["group","dataLabelsGroup"]}),st.registerSeriesType("pie",Ho);let{composed:$p,noop:Zp}=A,{distribute:qp}=yi,{series:la}=st,{arrayMax:Kp,clamp:da,defined:ca,pick:Jp,pushUnique:Qp,relativeLength:pa}=z;(function(h){let t={radialDistributionY:function(r,n){return(n.dataLabelPosition?.top||0)+r.distributeBox.pos},radialDistributionX:function(r,n,a,l,c){let d=c.dataLabelPosition;return r.getX(a<(d?.top||0)+2||a>(d?.bottom||0)-2?l:a,n.half,n,c)},justify:function(r,n,a,l){return l[0]+(r.half?-1:1)*(a+(n.dataLabelPosition?.distance||0))},alignToPlotEdges:function(r,n,a,l){let c=r.getBBox().width;return n?c+l:a-c-l},alignToConnectors:function(r,n,a,l){let c=0,d;return r.forEach(function(p){(d=p.dataLabel.getBBox().width)>c&&(c=d)}),n?c+l:a-c-l}};function e(r,n){let a=Math.PI/2,{start:l=0,end:c=0}=r.shapeArgs||{},d=r.angle||0;n>0&&l<a&&c>a&&d>a/2&&d<1.5*a&&(d=d<=a?Math.max(a/2,(l+a)/2):Math.min(1.5*a,(a+c)/2));let{center:p,options:g}=this,u=p[2]/2,m=Math.cos(d),x=Math.sin(d),f=p[0]+m*u,y=p[1]+x*u,b=Math.min((g.slicedOffset||0)+(g.borderWidth||0),n/5);return{natural:{x:f+m*n,y:y+x*n},computed:{},alignment:n<0?"center":r.half?"right":"left",connectorPosition:{angle:d,breakAt:{x:f+m*b,y:y+x*b},touchingSliceAt:{x:f,y}},distance:n}}function i(){let r=this,n=r.points,a=r.chart,l=a.plotWidth,c=a.plotHeight,d=a.plotLeft,p=Math.round(a.chartWidth/3),g=r.center,u=g[2]/2,m=g[1],x=[[],[]],f=[0,0,0,0],y=r.dataLabelPositioners,b,v,S,M=0;r.visible&&r.hasDataLabels?.()&&(n.forEach(k=>{(k.dataLabels||[]).forEach(w=>{w.shortened&&(w.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),w.shortened=!1)})}),la.prototype.drawDataLabels.apply(r),n.forEach(k=>{(k.dataLabels||[]).forEach((w,C)=>{let T=g[2]/2,P=w.options,O=pa(P?.distance||0,T);C===0&&x[k.half].push(k),!ca(P?.style?.width)&&w.getBBox().width>p&&(w.css({width:Math.round(.7*p)+"px"}),w.shortened=!0),w.dataLabelPosition=this.getDataLabelPosition(k,O),M=Math.max(M,O)})}),x.forEach((k,w)=>{let C=k.length,T=[],P,O,L=0,I;C&&(r.sortByAngle(k,w-.5),M>0&&(P=Math.max(0,m-u-M),O=Math.min(m+u+M,a.plotHeight),k.forEach(D=>{(D.dataLabels||[]).forEach(E=>{let B=E.dataLabelPosition;B&&B.distance>0&&(B.top=Math.max(0,m-u-B.distance),B.bottom=Math.min(m+u+B.distance,a.plotHeight),L=E.getBBox().height||21,E.lineHeight=a.renderer.fontMetrics(E.text||E).h+2*E.padding,D.distributeBox={target:(E.dataLabelPosition?.natural.y||0)-B.top+E.lineHeight/2,size:L,rank:D.y},T.push(D.distributeBox))})}),qp(T,I=O+L-P,I/5)),k.forEach(D=>{(D.dataLabels||[]).forEach(E=>{let B=E.options||{},K=D.distributeBox,_=E.dataLabelPosition,mt=_?.natural.y||0,W=B.connectorPadding||0,H=E.lineHeight||21,U=(H-E.getBBox().height)/2,G=0,$=mt,q="inherit";if(_){if(T&&ca(K)&&_.distance>0&&(K.pos===void 0?q="hidden":(S=K.size,$=y.radialDistributionY(D,E))),B.justify)G=y.justify(D,E,u,g);else switch(B.alignTo){case"connectors":G=y.alignToConnectors(k,w,l,d);break;case"plotEdges":G=y.alignToPlotEdges(E,w,l,d);break;default:G=y.radialDistributionX(r,D,$-U,mt,E)}if(_.attribs={visibility:q,align:_.alignment},_.posAttribs={x:G+(B.x||0)+({left:W,right:-W}[_.alignment]||0),y:$+(B.y||0)-H/2},_.computed.x=G,_.computed.y=$-U,Jp(B.crop,!0)){let V;G-(v=E.getBBox().width)<W&&w===1?(V=Math.round(v-G+W),f[3]=Math.max(V,f[3])):G+v>l-W&&w===0&&(V=Math.round(G+v-l+W),f[1]=Math.max(V,f[1])),$-S/2<0?f[0]=Math.max(Math.round(-$+S/2),f[0]):$+S/2>c&&(f[2]=Math.max(Math.round($+S/2-c),f[2])),_.sideOverflow=V}}})}))}),(Kp(f)===0||this.verifyDataLabelOverflow(f))&&(this.placeDataLabels(),this.points.forEach(k=>{(k.dataLabels||[]).forEach(w=>{let{connectorColor:C,connectorWidth:T=1}=w.options||{},P=w.dataLabelPosition;if(T){let O;b=w.connector,P&&P.distance>0?(O=!b,b||(w.connector=b=a.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+k.colorIndex+(k.className?" "+k.className:"")).add(r.dataLabelsGroup)),a.styledMode||b.attr({"stroke-width":T,stroke:C||k.color||"#666666"}),b[O?"attr":"animate"]({d:k.getConnectorPath(w)}),b.attr({visibility:P.attribs?.visibility})):b&&(w.connector=b.destroy())}})})))}function s(){this.points.forEach(r=>{(r.dataLabels||[]).forEach(n=>{let a=n.dataLabelPosition;a?(a.sideOverflow&&(n.css({width:Math.max(n.getBBox().width-a.sideOverflow,0)+"px",textOverflow:n.options?.style?.textOverflow||"ellipsis"}),n.shortened=!0),n.attr(a.attribs),n[n.moved?"animate":"attr"](a.posAttribs),n.moved=!0):n&&n.attr({y:-9999})}),delete r.distributeBox},this)}function o(r){let n=this.center,a=this.options,l=a.center,c=a.minSize||80,d=c,p=a.size!==null;return!p&&(l[0]!==null?d=Math.max(n[2]-Math.max(r[1],r[3]),c):(d=Math.max(n[2]-r[1]-r[3],c),n[0]+=(r[3]-r[1])/2),l[1]!==null?d=da(d,c,n[2]-Math.max(r[0],r[2])):(d=da(d,c,n[2]-r[0]-r[2]),n[1]+=(r[0]-r[2])/2),d<n[2]?(n[2]=d,n[3]=Math.min(a.thickness?Math.max(0,d-2*a.thickness):Math.max(0,pa(a.innerSize||0,d)),d),this.translate(n),this.drawDataLabels&&this.drawDataLabels()):p=!0),p}h.compose=function(r){if(es.compose(la),Qp($p,"PieDataLabel")){let n=r.prototype;n.dataLabelPositioners=t,n.alignDataLabel=Zp,n.drawDataLabels=i,n.getDataLabelPosition=e,n.placeDataLabels=s,n.verifyDataLabelOverflow=o}}})(bs||(bs={}));let tg=bs;(function(h){h.getCenterOfPoints=function(t){let e=t.reduce((i,s)=>(i.x+=s.x,i.y+=s.y,i),{x:0,y:0});return{x:e.x/t.length,y:e.y/t.length}},h.getDistanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},h.getAngleBetweenPoints=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)},h.pointInPolygon=function({x:t,y:e},i){let s=i.length,o,r,n=!1;for(o=0,r=s-1;o<s;r=o++){let[a,l]=i[o],[c,d]=i[r];l>e!=d>e&&t<(c-a)*(e-l)/(d-l)+a&&(n=!n)}return n}})(vs||(vs={}));let{pointInPolygon:eg}=vs,{addEvent:ig,getAlignFactor:sg,fireEvent:ga,objectEach:ua,pick:og}=z;function rg(h){let t=h.length,e=(c,d)=>!(d.x>=c.x+c.width||d.x+d.width<=c.x||d.y>=c.y+c.height||d.y+d.height<=c.y),i=(c,d)=>{for(let p of c)if(eg({x:p[0],y:p[1]},d))return!0;return!1},s,o,r,n,a,l=!1;for(let c=0;c<t;c++)(s=h[c])&&(s.oldOpacity=s.opacity,s.newOpacity=1,s.absoluteBox=function(d){if(d&&(!d.alignAttr||d.placed)){let p=d.box?0:d.padding||0,g=d.alignAttr||{x:d.attr("x"),y:d.attr("y")},{height:u,polygon:m,width:x}=d.getBBox(),f=sg(d.alignValue)*x;return d.width=x,d.height=u,{x:g.x+(d.parentGroup?.translateX||0)+p-f,y:g.y+(d.parentGroup?.translateY||0)+p,width:x-2*p,height:u-2*p,polygon:m}}}(s));h.sort((c,d)=>(d.labelrank||0)-(c.labelrank||0));for(let c=0;c<t;++c){n=(o=h[c])&&o.absoluteBox;let d=n?.polygon;for(let p=c+1;p<t;++p){a=(r=h[p])&&r.absoluteBox;let g=!1;if(n&&a&&o!==r&&o.newOpacity!==0&&r.newOpacity!==0&&o.visibility!=="hidden"&&r.visibility!=="hidden"){let u=a.polygon;if(d&&u&&d!==u?i(d,u)&&(g=!0):e(n,a)&&(g=!0),g){let m=o.labelrank<r.labelrank?o:r,x=m.text;m.newOpacity=0,x?.element.querySelector("textPath")&&x.hide()}}}}for(let c of h)ma(c,this)&&(l=!0);l&&ga(this,"afterHideAllOverlappingLabels")}function ma(h,t){let e,i=!1;return h&&(e=h.newOpacity,h.oldOpacity!==e&&(h.hasClass("highcharts-data-label")?(h[e?"removeClass":"addClass"]("highcharts-data-label-hidden"),i=!0,h[h.isOld?"animate":"attr"]({opacity:e},void 0,function(){t.styledMode||h.css({pointerEvents:e?"auto":"none"})}),ga(t,"afterHideOverlappingLabel")):h.attr({opacity:e})),h.isOld=!0),i}function ng(){let h=this,t=[];for(let e of h.labelCollectors||[])t=t.concat(e());for(let e of h.yAxis||[])e.stacking&&e.options.stackLabels&&!e.options.stackLabels.allowOverlap&&ua(e.stacking.stacks,i=>{ua(i,s=>{s.label&&t.push(s.label)})});for(let e of h.series||[])if(e.visible&&e.hasDataLabels?.()){let i=s=>{for(let o of s)o.visible&&(o.dataLabels||[]).forEach(r=>{let n=r.options||{};r.labelrank=og(n.labelrank,o.labelrank,o.shapeArgs?.height),n.allowOverlap??Number(n.distance)>0?(r.oldOpacity=r.opacity,r.newOpacity=1,ma(r,h)):t.push(r)})};i(e.nodes||[]),i(e.points)}this.hideOverlappingLabels(t)}let fa={compose:function(h){let t=h.prototype;t.hideOverlappingLabels||(t.hideOverlappingLabels=rg,ig(h,"render",ng))}},{defaultOptions:ag}=Mt,{noop:xa}=A,{addEvent:ya,extend:hg,isObject:ba,merge:lg,relativeLength:Xo}=z,dg={radius:0,scope:"stack",where:void 0},va=xa,ka=xa;function cg(h,t,e,i,s={}){let o=va(h,t,e,i,s),{innerR:r=0,r:n=e,start:a=0,end:l=0}=s;if(s.open||!s.borderRadius)return o;let c=l-a,d=Math.sin(c/2),p=Math.max(Math.min(Xo(s.borderRadius||0,n-r),(n-r)/2,n*d/(1+d)),0),g=Math.min(p,c/Math.PI*2*r),u=o.length-1;for(;u--;)(function(m,x,f){let y,b,v,S=m[x],M=m[x+1];if(M[0]==="Z"&&(M=m[0]),(S[0]==="M"||S[0]==="L")&&M[0]==="A"?(y=S,b=M,v=!0):S[0]==="A"&&(M[0]==="M"||M[0]==="L")&&(y=M,b=S),y&&b&&b.params){let k=b[1],w=b[5],C=b.params,{start:T,end:P,cx:O,cy:L}=C,I=w?k-f:k+f,D=I?Math.asin(f/I):0,E=w?D:-D,B=Math.cos(D)*I;v?(C.start=T+E,y[1]=O+B*Math.cos(T),y[2]=L+B*Math.sin(T),m.splice(x+1,0,["A",f,f,0,0,1,O+k*Math.cos(C.start),L+k*Math.sin(C.start)])):(C.end=P-E,b[6]=O+k*Math.cos(C.end),b[7]=L+k*Math.sin(C.end),m.splice(x+1,0,["A",f,f,0,0,1,O+B*Math.cos(P),L+B*Math.sin(P)])),b[4]=Math.abs(C.end-C.start)<Math.PI?0:1}})(o,u,u>1?g:p);return o}function pg(){if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:h,yAxis:t}=this,e=h.stacking==="percent",i=ag.plotOptions?.[this.type]?.borderRadius,s=Fo(h.borderRadius,ba(i)?i:{}),o=t.options.reversed;for(let r of this.points){let{shapeArgs:n}=r;if(r.shapeType==="roundedRect"&&n){let{width:a=0,height:l=0,y:c=0}=n,d=c,p=l;if(s.scope==="stack"&&r.stackTotal){let x=t.translate(e?100:r.stackTotal,!1,!0,!1,!0),f=t.translate(h.threshold||0,!1,!0,!1,!0),y=this.crispCol(0,Math.min(x,f),0,Math.abs(x-f));d=y.y,p=y.height}let g=(r.negative?-1:1)*(o?-1:1)==-1,u=s.where;!u&&this.is("waterfall")&&Math.abs((r.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(u="all"),u||(u="end");let m=Math.min(Xo(s.radius,a),a/2,u==="all"?l/2:1/0)||0;u==="end"&&(g&&(d-=m),p+=m),hg(n,{brBoxHeight:p,brBoxY:d,r:m})}}}}function Fo(h,t){return ba(h)||(h={radius:h||0}),lg(dg,t,h)}function gg(){let h=Fo(this.options.borderRadius);for(let t of this.points){let e=t.shapeArgs;e&&(e.borderRadius=Xo(h.radius,(e.r||0)-(e.innerR||0)))}}function ug(h,t,e,i,s={}){let o=ka(h,t,e,i,s),{r=0,brBoxHeight:n=i,brBoxY:a=t}=s,l=t-a,c=a+n-(t+i),d=l-r>-.1?0:r,p=c-r>-.1?0:r,g=Math.max(d&&l,0),u=Math.max(p&&c,0),m=[h+d,t],x=[h+e-d,t],f=[h+e,t+d],y=[h+e,t+i-p],b=[h+e-p,t+i],v=[h+p,t+i],S=[h,t+i-p],M=[h,t+d],k=(w,C)=>Math.sqrt(Math.pow(w,2)-Math.pow(C,2));if(g){let w=k(d,d-g);m[0]-=w,x[0]+=w,f[1]=M[1]=t+d-g}if(i<d-g){let w=k(d,d-g-i);f[0]=y[0]=h+e-d+w,b[0]=Math.min(f[0],b[0]),v[0]=Math.max(y[0],v[0]),S[0]=M[0]=h+d-w,f[1]=M[1]=t+i}if(u){let w=k(p,p-u);b[0]+=w,v[0]-=w,y[1]=S[1]=t+i-p+u}if(i<p-u){let w=k(p,p-u-i);f[0]=y[0]=h+e-p+w,x[0]=Math.min(f[0],x[0]),m[0]=Math.max(y[0],m[0]),S[0]=M[0]=h+p-w,y[1]=S[1]=t}return o.length=0,o.push(["M",...m],["L",...x],["A",d,d,0,0,1,...f],["L",...y],["A",p,p,0,0,1,...b],["L",...v],["A",p,p,0,0,1,...S],["L",...M],["A",d,d,0,0,1,...m],["Z"]),o}let{diffObjects:mg,extend:fg,find:xg,merge:yg,pick:os,uniqueKey:bg}=z;(function(h){function t(i,s){let o=i.condition;(o.callback||function(){return this.chartWidth<=os(o.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=os(o.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=os(o.minWidth,0)&&this.chartHeight>=os(o.minHeight,0)}).call(this)&&s.push(i._id)}function e(i,s){let o=this.options.responsive,r=this.currentResponsive,n=[],a;!s&&o&&o.rules&&o.rules.forEach(d=>{d._id===void 0&&(d._id=bg()),this.matchResponsiveRule(d,n)},this);let l=yg(...n.map(d=>xg(o?.rules||[],p=>p._id===d)).map(d=>d?.chartOptions));l.isResponsiveOptions=!0,n=n.toString()||void 0;let c=r?.ruleIds;n===c||(r&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(r.undoOptions,i,!0),this.updatingResponsive=!1),n?((a=mg(l,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:n,mergedOptions:l,undoOptions:a},this.updatingResponsive||this.update(l,i,!0)):this.currentResponsive=void 0)}h.compose=function(i){let s=i.prototype;return s.matchResponsiveRule||fg(s,{matchResponsiveRule:t,setResponsive:e}),i}})(ks||(ks={}));let vg=ks;A.AST=J,A.Axis=Qs,A.Chart=qt,A.Color=tt,A.DataLabel=es,A.DataTableCore=Fi,A.Fx=oe,A.HTMLElement=Se,A.Legend=An,A.LegendSymbol=un,A.OverlappingDataLabels=A.OverlappingDataLabels||fa,A.PlotLineOrBand=Ni,A.Point=Ut,A.Pointer=cn,A.RendererRegistry=Xe,A.Series=kt,A.SeriesRegistry=st,A.StackItem=Fn,A.SVGElement=Dt,A.SVGRenderer=Ti,A.Templating=wt,A.Tick=Ce,A.Time=As,A.Tooltip=nn,A.animate=pt.animate,A.animObject=pt.animObject,A.chart=qt.chart,A.color=tt.parse,A.dateFormat=wt.dateFormat,A.defaultOptions=Mt.defaultOptions,A.distribute=yi.distribute,A.format=wt.format,A.getDeferredAnimation=pt.getDeferredAnimation,A.getOptions=Mt.getOptions,A.numberFormat=wt.numberFormat,A.seriesType=st.seriesType,A.setAnimation=pt.setAnimation,A.setOptions=Mt.setOptions,A.stop=pt.stop,A.time=Mt.defaultTime,A.timers=oe.timers,{compose:function(h,t,e){let i=h.types.pie;if(!t.symbolCustomAttribs.includes("borderRadius")){let s=e.prototype.symbols;ya(h,"afterColumnTranslate",pg,{order:9}),ya(i,"afterTranslate",gg),t.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY"),va=s.arc,ka=s.roundedRect,s.arc=cg,s.roundedRect=ug}},optionsToObject:Fo}.compose(A.Series,A.SVGElement,A.SVGRenderer),Op.compose(A.Series.types.column),es.compose(A.Series),ld.compose(A.Axis),Se.compose(A.SVGRenderer),An.compose(A.Chart),pd.compose(A.Axis),fa.compose(A.Chart),tg.compose(A.Series.types.pie),Ni.compose(A.Chart,A.Axis),cn.compose(A.Chart),vg.compose(A.Chart),Hn.compose(A.Axis,A.Chart,A.Series),hp.compose(A.Axis,A.Chart,A.Series),nn.compose(A.Pointer),z.extend(A,z);let kg=A;return Uo.default})())});var th=(()=>{class R{constructor(X,j){this.el=X,this._zone=j,this.updateChange=new Go(!0),this.chartInstance=new Go}ngOnChanges(X){let j=X.update?.currentValue;(X.options||j)&&(this.wrappedUpdateOrCreateChart(),j&&this.updateChange.emit(!1))}wrappedUpdateOrCreateChart(){this.runOutsideAngular?this._zone.runOutsideAngular(()=>{this.updateOrCreateChart()}):this.updateOrCreateChart()}updateOrCreateChart(){this.chart?.update?this.chart.update(this.options,!0,this.oneToOne||!1):(this.chart=this.Highcharts[this.constructorType||"chart"](this.el.nativeElement,this.options,this.callbackFunction||null),this.chartInstance.emit(this.chart))}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=null,this.chartInstance.emit(this.chart))}static{this.\u0275fac=function(j){return new(j||R)(jo(Aa),jo(Pa))}}static{this.\u0275cmp=ns({type:R,selectors:[["highcharts-chart"]],inputs:{Highcharts:"Highcharts",constructorType:"constructorType",callbackFunction:"callbackFunction",oneToOne:"oneToOne",runOutsideAngular:"runOutsideAngular",options:"options",update:"update"},outputs:{updateChange:"updateChange",chartInstance:"chartInstance"},standalone:!1,features:[Ta],decls:0,vars:0,template:function(j,ut){},encapsulation:2})}}return R})(),eh=(()=>{class R{static{this.\u0275fac=function(j){return new(j||R)}}static{this.\u0275mod=Ea({type:R})}static{this.\u0275inj=Ca({})}}return R})();var ih=(()=>{class R{constructor(){this.httpService=ue(Ya)}getDashboardData(){return this.httpService.get(void 0,"api/Dashboard")}static{this.\u0275fac=function(j){return new(j||R)}}static{this.\u0275prov=rs({token:R,factory:R.\u0275fac,providedIn:"root"})}}return R})();var hs=wg(sh());var oh=(()=>{class R{constructor(){this.initModule()}initModule(){this.initializeHighchartsModules()}initializeHighchartsModules(){return wa(this,null,function*(){let X=yield import("./chunk-7DRL5PZZ.js"),j=X.default||X;typeof j=="function"&&j(hs),hs.setOptions({credits:{enabled:!1},lang:{noData:"No data to display"}})})}get HighchartsInstance(){return hs}static{this.\u0275fac=function(j){return new(j||R)}}static{this.\u0275prov=rs({token:R,factory:R.\u0275fac,providedIn:"root"})}}return R})();var Cg=["chartLeft"];function Tg(R,bt){R&1&&(dt(0,"div",34)(1,"h3",35),Et(2,"This Month's Expense"),ct()())}function Pg(R,bt){R&1&&(dt(0,"div",34)(1,"h3",35),Et(2,"Daily Revenue and Expense"),ct()())}function Ag(R,bt){if(R&1&&fe(0,"highcharts-chart",36),R&2){let X=as(3);ni("Highcharts",X.Highcharts)("options",X.chartOptionsRight)}}function Og(R,bt){if(R&1&&(dt(0,"main",5)(1,"div",6)(2,"div",7)(3,"a",8)(4,"div",9)(5,"div",10),fe(6,"i",11),ct(),dt(7,"p-card")(8,"div",12)(9,"div",13)(10,"a",14),Et(11,"Cash and Bank"),ct(),dt(12,"p",15),Et(13),hi(14,"number"),ct()()()()()()(),dt(15,"div",7)(16,"a",16)(17,"div",9)(18,"div",17),fe(19,"i",18),ct(),dt(20,"p-card")(21,"div",12)(22,"div",13)(23,"a",19),Et(24,"Revenue"),ct(),dt(25,"p",15),Et(26),hi(27,"number"),ct()()()()()()(),dt(28,"div",7)(29,"a",16)(30,"div",9)(31,"div",20)(32,"div",21),fe(33,"i",22),ct()(),dt(34,"p-card")(35,"div",12)(36,"div",13)(37,"a",19),Et(38,"Expense"),ct(),dt(39,"p",15),Et(40),hi(41,"number"),ct()()()()()()(),dt(42,"div",7)(43,"a",23)(44,"div",9)(45,"div",24)(46,"div",25),fe(47,"i",26),ct()(),dt(48,"p-card")(49,"div",12)(50,"div",13)(51,"a",27),Et(52,"Total Journal"),ct(),dt(53,"p",15),Et(54),hi(55,"number"),ct()()()()()()()(),dt(56,"div",28)(57,"div",29)(58,"div",30)(59,"p-panel",31),ri(60,Tg,3,0,"ng-template",null,1,di),dt(62,"div",32,2),fe(64,"highcharts-chart",33),ct()()()(),dt(65,"div",29)(66,"div",30)(67,"p-panel",31),ri(68,Pg,3,0,"ng-template",null,1,di)(70,Ag,1,2,"ng-template",null,0,di),ct()()()()()),R&2){let X=as(2);me(13),ai(" ",li(14,6,X.dashboardData().cashAndBank)," "),me(13),ai(" ",li(27,8,X.dashboardData().revenue)," "),me(14),ai(" ",li(41,10,X.dashboardData().expense)," "),me(14),ai(" ",li(55,12,X.dashboardData().totalJournal)," "),me(10),ni("Highcharts",X.Highcharts)("options",X.chartOptionsLeft)}}function Lg(R,bt){if(R&1&&(Ia(0),dt(1,"app-main-panel",4),ri(2,Og,72,14,"ng-template",null,0,di),ct(),Da()),R&2){let X=as();me(),ni("pageTitle","Dashboard "+X.dashboardData().title)("hasMainWrapperPadding",!0)("limitStrLength",50)("overflowScroll",!0)}}var fu=(()=>{class R{constructor(){this.dashboardService=ue(ih),this.highchartsService=ue(oh),this.roleService=ue(qa),this.router=ue(Fa),this.dashboardData=Oa(null),this.lastWidth=window.innerWidth,this.lastHeight=window.innerHeight}onResize(){this.resizeChart()}ngAfterViewInit(){this.resizeChart()}resizeChart(){let X=window.innerWidth;this.Highcharts.charts.forEach(j=>{if(j){let ut=400;X>=1920?ut=700:X>=1280&&(ut=450),j.setSize(ut,250)}})}ngOnInit(){if(this.Highcharts=this.highchartsService.HighchartsInstance,this.loadDashboardData().subscribe(),console.log("User Roles:",this.roleService),this.roleService.report.finance){if(!this.roleService.coa.view){this.router.navigate(["/pages/journal/journal-entry"]);return}}else{this.router.navigate(["/pages/chart-of-account/account"]);return}this.router.navigate(["/pages/dashboard"])}loadDashboardData(){return this.dashboardService.getDashboardData().pipe(Sa(X=>{this.dashboardData.set(X),this.initializeCharts(X)}))}initializeCharts(X){this.chartOptionsLeft=this.buildPieChart(X.pie.series),this.chartOptionsRight=this.buildSplineChart(X.chart.labels,X.chart.series.map(j=>ee(Pt({},j),{type:"spline"})))}buildPieChart(X){return{chart:{type:"pie",zooming:{type:"xy"},panning:{enabled:!0,type:"xy"},panKey:"shift",height:250},title:{text:"",style:this.commonTitleStyle()},series:[{name:"Amount",type:"pie",data:X}],noData:{style:{fontSize:"14px",color:"gray"}},responsive:{rules:this.responsiveRules()}}}buildSplineChart(X,j){return{chart:{type:"spline",height:250},title:{text:"",style:this.commonTitleStyle()},xAxis:{categories:X},series:j.map(ut=>ee(Pt({},ut),{type:"spline"})),noData:{style:{fontSize:"14px",color:"gray"}},responsive:{rules:this.responsiveRules()}}}commonTitleStyle(){return{fontFamily:"Open Sans, sans-serif",fontSize:"1rem"}}responsiveRules(){return[{condition:{maxWidth:800},chartOptions:{legend:{enabled:!1},title:{text:""}}}]}static{this.\u0275fac=function(j){return new(j||R)}}static{this.\u0275cmp=ns({type:R,selectors:[["ng-component"]],viewQuery:function(j,ut){if(j&1&&za(Cg,5),j&2){let Ft;Na(Ft=Ra())&&(ut.chartLeft=Ft.first)}},hostBindings:function(j,ut){j&1&&Ba("resize",function(De){return ut.onResize(De)},!1,La)},decls:1,vars:1,consts:[["content",""],["header",""],["chartLeft",""],[4,"ngIf"],[3,"pageTitle","hasMainWrapperPadding","limitStrLength","overflowScroll"],[1,"d-flex","flex-column","row-gap-10","py-2"],[1,"row","row-gap-24"],[1,"col-12","col-md-6","col-lg-3"],["routerLink","/pages/cash-bank","target","_blank"],[1,"card-container"],[1,"box-icon"],[1,"fa-duotone","fa-solid","fa-wallet","text-white"],[1,"d-flex","justify-content-end"],[1,"d-flex","flex-column","align-items-end"],["routerLink","/pages/cash-bank","target","_blank",1,"link","link-secondary","box-title"],[1,"box-number"],["routerLink","/pages/report/profit-loss","target","_blank"],[1,"box-icon",2,"background-color","#009f2a"],[1,"fa-solid","fa-hand-holding-dollar","text-white"],["routerLink","/pages/report/profit-loss","target","_blank",1,"link","link-secondary","box-title"],[1,"box-icon",2,"background-color","#d73636"],[1,"d-flex","text-white","align-items-baseline"],[1,"fa-solid","fa-circle-dollar-to-slot"],["routerLink","/pages/journal/journal-entry","target","_blank"],[1,"box-icon",2,"background-color","#ffae4c"],[1,"d-flex","text-white"],[1,"fa-solid","fa-book"],["routerLink","/pages/journal/journal-entry","target","_blank",1,"link","link-secondary","box-title"],[1,"row","row-gap-4","mt-2"],[1,"col-12","col-md-6","col-lg-6"],[1,"d-flex"],[1,"flex-grow-1"],[2,"width","100%"],[1,"d-flex","justify-content-center",2,"width","100%","display","block",3,"Highcharts","options"],[1,"d-flex","justify-content-center","w-100","py-2"],[1,"fs-5"],[1,"d-flex","justify-content-center",3,"Highcharts","options"]],template:function(j,ut){j&1&&ri(0,Lg,4,4,"ng-container",3),j&2&&ni("ngIf",ut.dashboardData())},dependencies:[Ua,_a,Ka,eh,th,Qa,Ja,Xa,Wa,Ha,Va,ja,Ga,Za,$a],styles:['@charset "UTF-8";.card-container[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .card-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.card-container[_ngcontent-%COMP%]{position:relative;height:4rem}.card-container[_ngcontent-%COMP%] .box-icon[_ngcontent-%COMP%]{height:50px;width:50px;background-color:#2175d0;display:flex;justify-content:center;align-items:center;z-index:2;position:relative;border-radius:4px;left:1.5rem;top:-.6rem}.card-container[_ngcontent-%COMP%] .box-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:30px}.card-container[_ngcontent-%COMP%] .box-number[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:500}.card-container[_ngcontent-%COMP%] .box-title[_ngcontent-%COMP%]{font-size:1rem}.card-container[_ngcontent-%COMP%] p-card[_ngcontent-%COMP%]{position:absolute;top:calc(2.6rem - 55%);left:0;width:100%;z-index:1;margin:0!important;padding:0!important}@media (max-width: 85rem){.card-container[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .card-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.card-container[_ngcontent-%COMP%]{position:relative;height:4rem}.card-container[_ngcontent-%COMP%] .box-icon[_ngcontent-%COMP%]{height:50px;width:50px;background-color:#2175d0;display:flex;justify-content:center;align-items:center;z-index:2;position:relative;border-radius:4px;left:1.5rem;top:-.6rem}.card-container[_ngcontent-%COMP%] .box-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:30px}.card-container[_ngcontent-%COMP%] .box-number[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:500}.card-container[_ngcontent-%COMP%] .box-title[_ngcontent-%COMP%]{font-size:1rem}.card-container[_ngcontent-%COMP%] p-card[_ngcontent-%COMP%]{position:absolute;top:calc(2.6rem - 55%);left:0;width:100%;z-index:1;margin:0!important;padding:0!important}}@media (min-width: 85.001rem) and (max-width: 97.999rem){.card-container[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .card-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.card-container[_ngcontent-%COMP%]{position:relative;height:4rem}.card-container[_ngcontent-%COMP%] .box-icon[_ngcontent-%COMP%]{height:50px;width:50px;background-color:#2175d0;display:flex;justify-content:center;align-items:center;z-index:2;position:relative;border-radius:4px;left:1.5rem;top:-.6rem}.card-container[_ngcontent-%COMP%] .box-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:30px}.card-container[_ngcontent-%COMP%] .box-number[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:500}.card-container[_ngcontent-%COMP%] .box-title[_ngcontent-%COMP%]{font-size:1rem}.card-container[_ngcontent-%COMP%] p-card[_ngcontent-%COMP%]{position:absolute;top:calc(2.6rem - 55%);left:0;width:100%;z-index:1;margin:0!important;padding:0!important}}@media (min-width: 98rem){.card-container[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .card-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.card-container[_ngcontent-%COMP%]{position:relative;height:4rem}.card-container[_ngcontent-%COMP%] .box-icon[_ngcontent-%COMP%]{height:80px;width:80px;background-color:#2175d0;display:flex;justify-content:center;align-items:center;z-index:2;position:relative;border-radius:4px;left:1.5rem;top:-.6rem}.card-container[_ngcontent-%COMP%] .box-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:40px}.card-container[_ngcontent-%COMP%] .box-number[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:500}.card-container[_ngcontent-%COMP%] .box-title[_ngcontent-%COMP%]{font-size:1.15rem}.card-container[_ngcontent-%COMP%] p-card[_ngcontent-%COMP%]{position:absolute;top:calc(2.6rem - 55%);left:0;width:100%;z-index:1;margin:0!important;padding:0!important}}']})}}return R})();export{fu as Dashboard1Component};