@statisticsfinland/pxvisualizer 1.3.1-d.0 → 1.3.1-d.1

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.
@@ -1,2 +1,2 @@
1
- import t,{useRef as e,useContext as i,useDebugValue as n,createElement as r,forwardRef as s,useId as o,useEffect as a,useMemo as l,Component as h}from"react";import c from"decimal.js";import{strToU8 as d,zip as u}from"fflate";function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function g(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return p(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?p(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(){return m=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)({}).hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},m.apply(null,arguments)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function y(t,e){return e||(e=t.slice(0)),t.raw=e,t}var x=function(){return x=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},x.apply(this,arguments)};function b(t,e,i){if(i||2===arguments.length)for(var n,r=0,s=e.length;r<s;r++)!n&&r in e||(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))}function v(t){var e=Object.create(null);return function(i){return void 0===e[i]&&(e[i]=t(i)),e[i]}}"function"==typeof SuppressedError&&SuppressedError;var w=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,k=/* #__PURE__ */v(function(t){return w.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}),S="-ms-",M="-moz-",C="-webkit-",T="comm",A="rule",E="decl",P="@keyframes",O=Math.abs,L=String.fromCharCode,N=Object.assign;function I(t){return t.trim()}function D(t,e){return(t=e.exec(t))?t[0]:t}function B(t,e,i){return t.replace(e,i)}function R(t,e,i){return t.indexOf(e,i)}function F(t,e){return 0|t.charCodeAt(e)}function z(t,e,i){return t.slice(e,i)}function H(t){return t.length}function j(t){return t.length}function G(t,e){return e.push(t),t}function W(t,e){return t.filter(function(t){return!D(t,e)})}var V=1,X=1,U=0,Y=0,q=0,$="";function _(t,e,i,n,r,s,o,a){return{value:t,root:e,parent:i,type:n,props:r,children:s,line:V,column:X,length:o,return:"",siblings:a}}function K(t,e){return N(_("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},e)}function Z(t){for(;t.root;)t=K(t.root,{children:[t]});G(t,t.siblings)}function J(){return q=Y>0?F($,--Y):0,X--,10===q&&(X=1,V--),q}function Q(){return q=Y<U?F($,Y++):0,X++,10===q&&(X=1,V++),q}function tt(){return F($,Y)}function et(){return Y}function it(t,e){return z($,t,e)}function nt(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function rt(t){return I(it(Y-1,at(91===t?t+2:40===t?t+1:t)))}function st(t){for(;(q=tt())&&q<33;)Q();return nt(t)>2||nt(q)>3?"":" "}function ot(t,e){for(;--e&&Q()&&!(q<48||q>102||q>57&&q<65||q>70&&q<97););return it(t,et()+(e<6&&32==tt()&&32==Q()))}function at(t){for(;Q();)switch(q){case t:return Y;case 34:case 39:34!==t&&39!==t&&at(q);break;case 40:41===t&&at(t);break;case 92:Q()}return Y}function lt(t,e){for(;Q()&&t+q!==57&&(t+q!==84||47!==tt()););return"/*"+it(e,Y-1)+"*"+L(47===t?t:Q())}function ht(t){for(;!nt(tt());)Q();return it(t,Y)}function ct(t){return function(t){return $="",t}(dt("",null,null,null,[""],t=function(t){return V=X=1,U=H($=t),Y=0,[]}(t),0,[0],t))}function dt(t,e,i,n,r,s,o,a,l){for(var h=0,c=0,d=o,u=0,p=0,g=0,m=1,f=1,y=1,x=0,b="",v=r,w=s,k=n,S=b;f;)switch(g=x,x=Q()){case 40:if(108!=g&&58==F(S,d-1)){-1!=R(S+=B(rt(x),"&","&\f"),"&\f",O(h?a[h-1]:0))&&(y=-1);break}case 34:case 39:case 91:S+=rt(x);break;case 9:case 10:case 13:case 32:S+=st(g);break;case 92:S+=ot(et()-1,7);continue;case 47:switch(tt()){case 42:case 47:G(pt(lt(Q(),et()),e,i,l),l);break;default:S+="/"}break;case 123*m:a[h++]=H(S)*y;case 125*m:case 59:case 0:switch(x){case 0:case 125:f=0;case 59+c:-1==y&&(S=B(S,/\f/g,"")),p>0&&H(S)-d&&G(p>32?gt(S+";",n,i,d-1,l):gt(B(S," ","")+";",n,i,d-2,l),l);break;case 59:S+=";";default:if(G(k=ut(S,e,i,h,c,r,a,b,v=[],w=[],d,s),s),123===x)if(0===c)dt(S,e,k,k,v,s,d,a,w);else switch(99===u&&110===F(S,3)?100:u){case 100:case 108:case 109:case 115:dt(t,k,k,n&&G(ut(t,k,k,0,0,r,a,b,r,v=[],d,w),w),r,w,d,a,n?v:w);break;default:dt(S,k,k,k,[""],w,0,a,w)}}h=c=p=0,m=y=1,b=S="",d=o;break;case 58:d=1+H(S),p=g;default:if(m<1)if(123==x)--m;else if(125==x&&0==m++&&125==J())continue;switch(S+=L(x),x*m){case 38:y=c>0?1:(S+="\f",-1);break;case 44:a[h++]=(H(S)-1)*y,y=1;break;case 64:45===tt()&&(S+=rt(Q())),u=tt(),c=d=H(b=S+=ht(et())),x++;break;case 45:45===g&&2==H(S)&&(m=0)}}return s}function ut(t,e,i,n,r,s,o,a,l,h,c,d){for(var u=r-1,p=0===r?s:[""],g=j(p),m=0,f=0,y=0;m<n;++m)for(var x=0,b=z(t,u+1,u=O(f=o[m])),v=t;x<g;++x)(v=I(f>0?p[x]+" "+b:B(b,/&\f/g,p[x])))&&(l[y++]=v);return _(t,e,i,0===r?A:a,l,h,c,d)}function pt(t,e,i,n){return _(t,e,i,T,L(q),z(t,2,-2),0,n)}function gt(t,e,i,n,r){return _(t,e,i,E,z(t,0,n),z(t,n+1,-1),n,r)}function mt(t,e,i){switch(function(t,e){return 45^F(t,0)?(((e<<2^F(t,0))<<2^F(t,1))<<2^F(t,2))<<2^F(t,3):0}(t,e)){case 5103:return C+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return C+t+t;case 4789:return M+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return C+t+M+t+S+t+t;case 5936:switch(F(t,e+11)){case 114:return C+t+S+B(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return C+t+S+B(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return C+t+S+B(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return C+t+S+t+t;case 6165:return C+t+S+"flex-"+t+t;case 5187:return C+t+B(t,/(\w+).+(:[^]+)/,C+"box-$1$2"+S+"flex-$1$2")+t;case 5443:return C+t+S+"flex-item-"+B(t,/flex-|-self/g,"")+(D(t,/flex-|baseline/)?"":S+"grid-row-"+B(t,/flex-|-self/g,""))+t;case 4675:return C+t+S+"flex-line-pack"+B(t,/align-content|flex-|-self/g,"")+t;case 5548:return C+t+S+B(t,"shrink","negative")+t;case 5292:return C+t+S+B(t,"basis","preferred-size")+t;case 6060:return C+"box-"+B(t,"-grow","")+C+t+S+B(t,"grow","positive")+t;case 4554:return C+B(t,/([^-])(transform)/g,"$1"+C+"$2")+t;case 6187:return B(B(B(t,/(zoom-|grab)/,C+"$1"),/(image-set)/,C+"$1"),t,"")+t;case 5495:case 3959:return B(t,/(image-set\([^]*)/,C+"$1$`$1");case 4968:return B(B(t,/(.+:)(flex-)?(.*)/,C+"box-pack:$3"+S+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+C+t+t;case 4200:if(!D(t,/flex-|baseline/))return S+"grid-column-align"+z(t,e)+t;break;case 2592:case 3360:return S+B(t,"template-","")+t;case 4384:case 3616:return i&&i.some(function(t,i){return e=i,D(t.props,/grid-\w+-end/)})?~R(t+(i=i[e].value),"span",0)?t:S+B(t,"-start","")+t+S+"grid-row-span:"+(~R(i,"span",0)?D(i,/\d+/):+D(i,/\d+/)-+D(t,/\d+/))+";":S+B(t,"-start","")+t;case 4896:case 4128:return i&&i.some(function(t){return D(t.props,/grid-\w+-start/)})?t:S+B(B(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return B(t,/(.+)-inline(.+)/,C+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(H(t)-1-e>6)switch(F(t,e+1)){case 109:if(45!==F(t,e+4))break;case 102:return B(t,/(.+:)(.+)-([^]+)/,"$1"+C+"$2-$3$1"+M+(108==F(t,e+3)?"$3":"$2-$3"))+t;case 115:return~R(t,"stretch",0)?mt(B(t,"stretch","fill-available"),e,i)+t:t}break;case 5152:case 5920:return B(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,i,n,r,s,o,a){return S+i+":"+n+a+(r?S+i+"-span:"+(s?o:+o-+n)+a:"")+t});case 4949:if(121===F(t,e+6))return B(t,":",":"+C)+t;break;case 6444:switch(F(t,45===F(t,14)?18:11)){case 120:return B(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+C+(45===F(t,14)?"inline-":"")+"box$3$1"+C+"$2$3$1"+S+"$2box$3")+t;case 100:return B(t,":",":"+S)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return B(t,"scroll-","scroll-snap-")+t}return t}function ft(t,e){for(var i="",n=0;n<t.length;n++)i+=e(t[n],n,t,e)||"";return i}function yt(t,e,i,n){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case E:return t.return=t.return||t.value;case T:return"";case P:return t.return=t.value+"{"+ft(t.children,n)+"}";case A:if(!H(t.value=t.props.join(",")))return""}return H(i=ft(t.children,n))?t.return=t.value+"{"+i+"}":""}function xt(t,e,i,n){if(t.length>-1&&!t.return)switch(t.type){case E:return void(t.return=mt(t.value,t.length,i));case P:return ft([K(t,{value:B(t.value,"@","@"+C)})],n);case A:if(t.length)return function(t,e){return t.map(e).join("")}(i=t.props,function(e){switch(D(e,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Z(K(t,{props:[B(e,/:(read-\w+)/,":-moz-$1")]})),Z(K(t,{props:[e]})),N(t,{props:W(i,n)});break;case"::placeholder":Z(K(t,{props:[B(e,/:(plac\w+)/,":"+C+"input-$1")]})),Z(K(t,{props:[B(e,/:(plac\w+)/,":-moz-$1")]})),Z(K(t,{props:[B(e,/:(plac\w+)/,S+"input-$1")]})),Z(K(t,{props:[e]})),N(t,{props:W(i,n)})}return""})}}var bt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},vt="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",wt="active",kt="data-styled-version",St="6.1.17",Mt="/*!sc*/\n",Ct="undefined"!=typeof window&&"HTMLElement"in window,Tt=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),At={},Et=/invalid hook call/i,Pt=new Set,Ot=function(t,i){if("production"!==process.env.NODE_ENV){var n=i?' with the id of "'.concat(i,'"'):"",r="The component ".concat(t).concat(n," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n",s=console.error;try{var o=!0;console.error=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];Et.test(t)?(o=!1,Pt.delete(r)):s.apply(void 0,b([t],e,!1))},e(),o&&!Pt.has(r)&&(console.warn(r),Pt.add(r))}catch(t){Et.test(t.message)&&Pt.delete(r)}finally{console.error=s}}},Lt=Object.freeze([]),Nt=Object.freeze({});function It(t,e,i){return void 0===i&&(i=Nt),t.theme!==i.theme&&t.theme||e||i.theme}var Dt=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Bt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Rt=/(^-|-$)/g;function Ft(t){return t.replace(Bt,"-").replace(Rt,"")}var zt=/(a)(d)/gi,Ht=function(t){return String.fromCharCode(t+(t>25?39:97))};function jt(t){var e,i="";for(e=Math.abs(t);e>52;e=e/52|0)i=Ht(e%52)+i;return(Ht(e%52)+i).replace(zt,"$1-$2")}var Gt,Wt=function(t,e){for(var i=e.length;i;)t=33*t^e.charCodeAt(--i);return t},Vt=function(t){return Wt(5381,t)};function Xt(t){return jt(Vt(t)>>>0)}function Ut(t){return"production"!==process.env.NODE_ENV&&"string"==typeof t&&t||t.displayName||t.name||"Component"}function Yt(t){return"string"==typeof t&&("production"===process.env.NODE_ENV||t.charAt(0)===t.charAt(0).toLowerCase())}var qt="function"==typeof Symbol&&Symbol.for,$t=qt?Symbol.for("react.memo"):60115,_t=qt?Symbol.for("react.forward_ref"):60112,Kt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Zt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Jt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Qt=((Gt={})[_t]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Gt[$t]=Jt,Gt);function te(t){return("type"in(e=t)&&e.type.$$typeof)===$t?Jt:"$$typeof"in t?Qt[t.$$typeof]:Kt;var e}var ee=Object.defineProperty,ie=Object.getOwnPropertyNames,ne=Object.getOwnPropertySymbols,re=Object.getOwnPropertyDescriptor,se=Object.getPrototypeOf,oe=Object.prototype;function ae(t,e,i){if("string"!=typeof e){if(oe){var n=se(e);n&&n!==oe&&ae(t,n,i)}var r=ie(e);ne&&(r=r.concat(ne(e)));for(var s=te(t),o=te(e),a=0;a<r.length;++a){var l=r[a];if(!(l in Zt||i&&i[l]||o&&l in o||s&&l in s)){var h=re(e,l);try{ee(t,l,h)}catch(t){}}}}return t}function le(t){return"function"==typeof t}function he(t){return"object"==typeof t&&"styledComponentId"in t}function ce(t,e){return t&&e?"".concat(t," ").concat(e):t||e||""}function de(t,e){if(0===t.length)return"";for(var i=t[0],n=1;n<t.length;n++)i+=e?e+t[n]:t[n];return i}function ue(t){return null!==t&&"object"==typeof t&&t.constructor.name===Object.name&&!("props"in t&&t.$$typeof)}function pe(t,e,i){if(void 0===i&&(i=!1),!i&&!ue(t)&&!Array.isArray(t))return e;if(Array.isArray(e))for(var n=0;n<e.length;n++)t[n]=pe(t[n],e[n]);else if(ue(e))for(var n in e)t[n]=pe(t[n],e[n]);return t}function ge(t,e){Object.defineProperty(t,"toString",{value:e})}var me="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function fe(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=t[0],n=[],r=1,s=t.length;r<s;r+=1)n.push(t[r]);return n.forEach(function(t){i=i.replace(/%[a-z]/,t)}),i}function ye(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):"")):new Error(fe.apply(void 0,b([me[t]],e,!1)).trim())}var xe=function(){function t(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return t.prototype.indexOfGroup=function(t){for(var e=0,i=0;i<t;i++)e+=this.groupSizes[i];return e},t.prototype.insertRules=function(t,e){if(t>=this.groupSizes.length){for(var i=this.groupSizes,n=i.length,r=n;t>=r;)if((r<<=1)<0)throw ye(16,"".concat(t));this.groupSizes=new Uint32Array(r),this.groupSizes.set(i),this.length=r;for(var s=n;s<r;s++)this.groupSizes[s]=0}for(var o=this.indexOfGroup(t+1),a=(s=0,e.length);s<a;s++)this.tag.insertRule(o,e[s])&&(this.groupSizes[t]++,o++)},t.prototype.clearGroup=function(t){if(t<this.length){var e=this.groupSizes[t],i=this.indexOfGroup(t),n=i+e;this.groupSizes[t]=0;for(var r=i;r<n;r++)this.tag.deleteRule(i)}},t.prototype.getGroup=function(t){var e="";if(t>=this.length||0===this.groupSizes[t])return e;for(var i=this.groupSizes[t],n=this.indexOfGroup(t),r=n+i,s=n;s<r;s++)e+="".concat(this.tag.getRule(s)).concat(Mt);return e},t}(),be=1<<30,ve=new Map,we=new Map,ke=1,Se=function(t){if(ve.has(t))return ve.get(t);for(;we.has(ke);)ke++;var e=ke++;if("production"!==process.env.NODE_ENV&&((0|e)<0||e>be))throw ye(16,"".concat(e));return ve.set(t,e),we.set(e,t),e},Me=function(t,e){ke=e+1,ve.set(t,e),we.set(e,t)},Ce="style[".concat(vt,"][").concat(kt,'="').concat(St,'"]'),Te=new RegExp("^".concat(vt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ae=function(t,e,i){for(var n,r=i.split(","),s=0,o=r.length;s<o;s++)(n=r[s])&&t.registerName(e,n)},Ee=function(t,e){for(var i,n=(null!==(i=e.textContent)&&void 0!==i?i:"").split(Mt),r=[],s=0,o=n.length;s<o;s++){var a=n[s].trim();if(a){var l=a.match(Te);if(l){var h=0|parseInt(l[1],10),c=l[2];0!==h&&(Me(c,h),Ae(t,c,l[3]),t.getTag().insertRules(h,r)),r.length=0}else r.push(a)}}},Pe=function(t){for(var e=document.querySelectorAll(Ce),i=0,n=e.length;i<n;i++){var r=e[i];r&&r.getAttribute(vt)!==wt&&(Ee(t,r),r.parentNode&&r.parentNode.removeChild(r))}},Oe=function(t){var e=document.head,i=t||e,n=document.createElement("style"),r=function(t){var e=Array.from(t.querySelectorAll("style[".concat(vt,"]")));return e[e.length-1]}(i),s=void 0!==r?r.nextSibling:null;n.setAttribute(vt,wt),n.setAttribute(kt,St);var o="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return o&&n.setAttribute("nonce",o),i.insertBefore(n,s),n},Le=function(){function t(t){this.element=Oe(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var e=document.styleSheets,i=0,n=e.length;i<n;i++){var r=e[i];if(r.ownerNode===t)return r}throw ye(17)}(this.element),this.length=0}return t.prototype.insertRule=function(t,e){try{return this.sheet.insertRule(e,t),this.length++,!0}catch(t){return!1}},t.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},t.prototype.getRule=function(t){var e=this.sheet.cssRules[t];return e&&e.cssText?e.cssText:""},t}(),Ne=function(){function t(t){this.element=Oe(t),this.nodes=this.element.childNodes,this.length=0}return t.prototype.insertRule=function(t,e){if(t<=this.length&&t>=0){var i=document.createTextNode(e);return this.element.insertBefore(i,this.nodes[t]||null),this.length++,!0}return!1},t.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},t.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},t}(),Ie=function(){function t(t){this.rules=[],this.length=0}return t.prototype.insertRule=function(t,e){return t<=this.length&&(this.rules.splice(t,0,e),this.length++,!0)},t.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},t.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},t}(),De=Ct,Be={isServer:!Ct,useCSSOMInjection:!Tt},Re=function(){function t(t,e,i){void 0===t&&(t=Nt),void 0===e&&(e={});var n=this;this.options=x(x({},Be),t),this.gs=e,this.names=new Map(i),this.server=!!t.isServer,!this.server&&Ct&&De&&(De=!1,Pe(this)),ge(this,function(){return function(t){for(var e=t.getTag(),i=e.length,n="",r=function(i){var r=function(t){return we.get(t)}(i);if(void 0===r)return"continue";var s=t.names.get(r),o=e.getGroup(i);if(void 0===s||!s.size||0===o.length)return"continue";var a="".concat(vt,".g").concat(i,'[id="').concat(r,'"]'),l="";void 0!==s&&s.forEach(function(t){t.length>0&&(l+="".concat(t,","))}),n+="".concat(o).concat(a,'{content:"').concat(l,'"}').concat(Mt)},s=0;s<i;s++)r(s);return n}(n)})}return t.registerId=function(t){return Se(t)},t.prototype.rehydrate=function(){!this.server&&Ct&&Pe(this)},t.prototype.reconstructWithOptions=function(e,i){return void 0===i&&(i=!0),new t(x(x({},this.options),e),this.gs,i&&this.names||void 0)},t.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(t=function(t){var e=t.useCSSOMInjection,i=t.target;return t.isServer?new Ie(i):e?new Le(i):new Ne(i)}(this.options),new xe(t)));var t},t.prototype.hasNameForId=function(t,e){return this.names.has(t)&&this.names.get(t).has(e)},t.prototype.registerName=function(t,e){if(Se(t),this.names.has(t))this.names.get(t).add(e);else{var i=new Set;i.add(e),this.names.set(t,i)}},t.prototype.insertRules=function(t,e,i){this.registerName(t,e),this.getTag().insertRules(Se(t),i)},t.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},t.prototype.clearRules=function(t){this.getTag().clearGroup(Se(t)),this.clearNames(t)},t.prototype.clearTag=function(){this.tag=void 0},t}(),Fe=/&/g,ze=/^\s*\/\/.*$/gm;function He(t,e){return t.map(function(t){return"rule"===t.type&&(t.value="".concat(e," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(e," ")),t.props=t.props.map(function(t){return"".concat(e," ").concat(t)})),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=He(t.children,e)),t})}var je=new Re,Ge=function(){var t,e,i,n=Nt.options,r=void 0===n?Nt:n,s=Nt.plugins,o=void 0===s?Lt:s,a=function(i,n,r){return r.startsWith(e)&&r.endsWith(e)&&r.replaceAll(e,"").length>0?".".concat(t):i},l=o.slice();l.push(function(t){t.type===A&&t.value.includes("&")&&(t.props[0]=t.props[0].replace(Fe,e).replace(i,a))}),r.prefix&&l.push(xt),l.push(yt);var h=function(n,s,o,a){void 0===s&&(s=""),void 0===o&&(o=""),void 0===a&&(a="&"),t=a,e=s,i=new RegExp("\\".concat(e,"\\b"),"g");var h=n.replace(ze,""),c=ct(o||s?"".concat(o," ").concat(s," { ").concat(h," }"):h);r.namespace&&(c=He(c,r.namespace));var d,u=[];return ft(c,function(t){var e=j(t);return function(i,n,r,s){for(var o="",a=0;a<e;a++)o+=t[a](i,n,r,s)||"";return o}}(l.concat((d=function(t){return u.push(t)},function(t){t.root||(t=t.return)&&d(t)})))),u};return h.hash=o.length?o.reduce(function(t,e){return e.name||ye(15),Wt(t,e.name)},5381).toString():"",h}(),We=t.createContext({shouldForwardProp:void 0,styleSheet:je,stylis:Ge});function Ve(){return i(We)}t.createContext(void 0);var Xe=function(){function t(t,e){var i=this;this.inject=function(t,e){void 0===e&&(e=Ge);var n=i.name+e.hash;t.hasNameForId(i.id,n)||t.insertRules(i.id,n,e(i.rules,n,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=e,ge(this,function(){throw ye(12,String(i.name))})}return t.prototype.getName=function(t){return void 0===t&&(t=Ge),this.name+t.hash},t}(),Ue=function(t){return t>="A"&&t<="Z"};function Ye(t){for(var e="",i=0;i<t.length;i++){var n=t[i];if(1===i&&"-"===n&&"-"===t[0])return t;Ue(n)?e+="-"+n.toLowerCase():e+=n}return e.startsWith("ms-")?"-"+e:e}var qe=function(t){return null==t||!1===t||""===t},$e=function(t){var e,i,n=[];for(var r in t){var s=t[r];t.hasOwnProperty(r)&&!qe(s)&&(Array.isArray(s)&&s.isCss||le(s)?n.push("".concat(Ye(r),":"),s,";"):ue(s)?n.push.apply(n,b(b(["".concat(r," {")],$e(s),!1),["}"],!1)):n.push("".concat(Ye(r),": ").concat((e=r,null==(i=s)||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||e in bt||e.startsWith("--")?String(i).trim():"".concat(i,"px")),";")))}return n};function _e(t,e,i,n){if(qe(t))return[];if(he(t))return[".".concat(t.styledComponentId)];if(le(t)){if(!le(s=t)||s.prototype&&s.prototype.isReactComponent||!e)return[t];var r=t(e);return"production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof Xe||ue(r)||null===r||console.error("".concat(Ut(t)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),_e(r,e,i,n)}var s;return t instanceof Xe?i?(t.inject(i,n),[t.getName(n)]):[t]:ue(t)?$e(t):Array.isArray(t)?Array.prototype.concat.apply(Lt,t.map(function(t){return _e(t,e,i,n)})):[t.toString()]}function Ke(t){for(var e=0;e<t.length;e+=1){var i=t[e];if(le(i)&&!he(i))return!1}return!0}var Ze=Vt(St),Je=function(){function t(t,e,i){this.rules=t,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===i||i.isStatic)&&Ke(t),this.componentId=e,this.baseHash=Wt(Ze,e),this.baseStyle=i,Re.registerId(e)}return t.prototype.generateAndInjectStyles=function(t,e,i){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,e,i):"";if(this.isStatic&&!i.hash)if(this.staticRulesId&&e.hasNameForId(this.componentId,this.staticRulesId))n=ce(n,this.staticRulesId);else{var r=de(_e(this.rules,t,e,i)),s=jt(Wt(this.baseHash,r)>>>0);if(!e.hasNameForId(this.componentId,s)){var o=i(r,".".concat(s),void 0,this.componentId);e.insertRules(this.componentId,s,o)}n=ce(n,s),this.staticRulesId=s}else{for(var a=Wt(this.baseHash,i.hash),l="",h=0;h<this.rules.length;h++){var c=this.rules[h];if("string"==typeof c)l+=c,"production"!==process.env.NODE_ENV&&(a=Wt(a,c));else if(c){var d=de(_e(c,t,e,i));a=Wt(a,d+h),l+=d}}if(l){var u=jt(a>>>0);e.hasNameForId(this.componentId,u)||e.insertRules(this.componentId,u,i(l,".".concat(u),void 0,this.componentId)),n=ce(n,u)}}return n},t}(),Qe=t.createContext(void 0),ti={},ei=new Set;function ii(e,i,s){var o=he(e),a=e,l=!Yt(e),h=i.attrs,c=void 0===h?Lt:h,d=i.componentId,u=void 0===d?function(t,e){var i="string"!=typeof t?"sc":Ft(t);ti[i]=(ti[i]||0)+1;var n="".concat(i,"-").concat(Xt(St+i+ti[i]));return e?"".concat(e,"-").concat(n):n}(i.displayName,i.parentComponentId):d,p=i.displayName,g=void 0===p?function(t){return Yt(t)?"styled.".concat(t):"Styled(".concat(Ut(t),")")}(e):p,m=i.displayName&&i.componentId?"".concat(Ft(i.displayName),"-").concat(i.componentId):i.componentId||u,f=o&&a.attrs?a.attrs.concat(c).filter(Boolean):c,y=i.shouldForwardProp;if(o&&a.shouldForwardProp){var b=a.shouldForwardProp;if(i.shouldForwardProp){var v=i.shouldForwardProp;y=function(t,e){return b(t,e)&&v(t,e)}}else y=b}var w=new Je(s,m,o?a.componentStyle:void 0);function S(e,i){return function(e,i,s){var o=e.attrs,a=e.componentStyle,l=e.defaultProps,h=e.foldedComponentIds,c=e.styledComponentId,d=e.target,u=t.useContext(Qe),p=Ve(),g=e.shouldForwardProp||p.shouldForwardProp;"production"!==process.env.NODE_ENV&&n(c);var m=It(i,u,l)||Nt,f=function(t,e,i){for(var n,r=x(x({},e),{className:void 0,theme:i}),s=0;s<t.length;s+=1){var o=le(n=t[s])?n(r):n;for(var a in o)r[a]="className"===a?ce(r[a],o[a]):"style"===a?x(x({},r[a]),o[a]):o[a]}return e.className&&(r.className=ce(r.className,e.className)),r}(o,i,m),y=f.as||d,b={};for(var v in f)void 0===f[v]||"$"===v[0]||"as"===v||"theme"===v&&f.theme===m||("forwardedAs"===v?b.as=f.forwardedAs:g&&!g(v,y)||(b[v]=f[v],g||"development"!==process.env.NODE_ENV||k(v)||ei.has(v)||!Dt.has(y)||(ei.add(v),console.warn('styled-components: it looks like an unknown prop "'.concat(v,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var w=function(t,e){var i=Ve(),r=t.generateAndInjectStyles(e,i.styleSheet,i.stylis);return"production"!==process.env.NODE_ENV&&n(r),r}(a,f);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(w);var S=ce(h,c);return w&&(S+=" "+w),f.className&&(S+=" "+f.className),b[Yt(y)&&!Dt.has(y)?"class":"className"]=S,s&&(b.ref=s),r(y,b)}(M,e,i)}S.displayName=g;var M=t.forwardRef(S);return M.attrs=f,M.componentStyle=w,M.displayName=g,M.shouldForwardProp=y,M.foldedComponentIds=o?ce(a.foldedComponentIds,a.styledComponentId):"",M.styledComponentId=m,M.target=o?a.target:e,Object.defineProperty(M,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];for(var n=0,r=e;n<r.length;n++)pe(t,r[n],!0);return t}({},a.defaultProps,t):t}}),"production"!==process.env.NODE_ENV&&(Ot(g,m),M.warnTooManyClasses=function(t,e){var i={},n=!1;return function(r){if(!n&&(i[r]=!0,Object.keys(i).length>=200)){var s=e?' with the id of "'.concat(e,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(t).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),n=!0,i={}}}}(g,m)),ge(M,function(){return".".concat(M.styledComponentId)}),l&&ae(M,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),M}function ni(t,e){for(var i=[t[0]],n=0,r=e.length;n<r;n+=1)i.push(e[n],t[n+1]);return i}var ri=function(t){return Object.assign(t,{isCss:!0})};function si(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(le(t)||ue(t))return ri(_e(ni(Lt,b([t],e,!0))));var n=t;return 0===e.length&&1===n.length&&"string"==typeof n[0]?_e(n):ri(_e(ni(n,e)))}function oi(t,e,i){if(void 0===i&&(i=Nt),!e)throw ye(1,e);var n=function(n){for(var r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];return t(e,i,si.apply(void 0,b([n],r,!1)))};return n.attrs=function(n){return oi(t,e,x(x({},i),{attrs:Array.prototype.concat(i.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return oi(t,e,x(x({},i),n))},n}var ai=function(t){return oi(ii,t)},li=ai;Dt.forEach(function(t){li[t]=ai(t)});var hi=function(){function t(t,e){this.rules=t,this.componentId=e,this.isStatic=Ke(t),Re.registerId(this.componentId+1)}return t.prototype.createStyles=function(t,e,i,n){var r=n(de(_e(this.rules,e,i,n)),""),s=this.componentId+t;i.insertRules(s,s,r)},t.prototype.removeStyles=function(t,e){e.clearRules(this.componentId+t)},t.prototype.renderStyles=function(t,e,i,n){t>2&&Re.registerId(this.componentId+t),this.removeStyles(t,i),this.createStyles(t,e,i,n)},t}();"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var ci,di,ui,pi="__sc-".concat(vt,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[pi]||(window[pi]=0),1===window[pi]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[pi]+=1),function(t){t.VerticalBarChart="VerticalBarChart",t.GroupVerticalBarChart="GroupVerticalBarChart",t.StackedVerticalBarChart="StackedVerticalBarChart",t.PercentVerticalBarChart="PercentVerticalBarChart",t.HorizontalBarChart="HorizontalBarChart",t.GroupHorizontalBarChart="GroupHorizontalBarChart",t.StackedHorizontalBarChart="StackedHorizontalBarChart",t.PercentHorizontalBarChart="PercentHorizontalBarChart",t.PyramidChart="PyramidChart",t.PieChart="PieChart",t.LineChart="LineChart",t.ScatterPlot="ScatterPlot",t.Table="Table"}(ci||(ci={})),function(t){t.Unknown="N",t.Time="T",t.Ordinal="P",t.Geological="G",t.Content="C",t.OtherClassificatory="F"}(di||(di={})),function(t){t.Week="Week",t.Month="Month",t.Quarter="Quarter",t.HalfYear="HalfYear",t.Year="Year",t.Decade="Decade",t.Irregular="Irregular"}(ui||(ui={}));var gi={empty:{fi:"",sv:"",en:""},preliminaryData:{fi:"Ennakko",sv:"Preliminär",en:"Preliminary data"},source:{fi:"Lähde",sv:"Källa",en:"Source"},unit:{fi:"Yksikkö",sv:"Enhet",en:"Unit"},graphCreationError:{fi:"Kuviota ei voitu muodostaa",sv:"Diagrammet kunde inte skapas",en:"The graph could not be created"},thousandsSep:{fi:" ",sv:" ",en:","},thousandsSepAccessibility:{fi:"",sv:"",en:","},decimalPoint:{fi:",",sv:",",en:"."},barMultiple:{fi:"Pystypylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Flerdimensionellt vertikalt stapeldiagram.",en:"Bar chart with {numSeries} data series."},barSingle:{fi:"Pystypylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Vertikalt stapeldiagram.",en:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}."},columnSingle:{fi:"Vaakapylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Horisontellt stapeldiagram.",en:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}."},columnMultiple:{fi:"Vaakapylväskuvio, jossa {numSeries} muuttujaa.",sv:"Flerdimensionellt horisontellt stapeldiagram.",en:"Bar chart with {numSeries} data series."},lineSingle:{fi:"Viivakuvio, jossa {numPoints} havainto{#eq numPoints 1}arvo{else}arvoa{/eq}.",sv:"Linjediagram.",en:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}."},lineMultiple:{fi:"Viivakuvio, jossa {numSeries} viivaa.",sv:"Flerdimensionellt linjediagram.",en:"Line chart with {numSeries} lines."},pieSingle:{fi:"Piirakkakuvio, jossa {numPoints} {#eq numPoints 1}lohko{else}lohkoa{/eq}.",sv:"Cirkeldiagram.",en:"Pie chart with {numPoints} {#eq numPoints 1}slice{else}slices{/eq}."},pieMultiple:{fi:"Piirakkakuvio, jossa {numSeries} piirakkaa.",sv:"Flerdimensionellt cirkeldiagram.",en:"Pie chart with {numSeries} pies."},scatterSingle:{fi:"Hajontakuvio, jossa {numPoints} {#eq numPoints 1}piste{else}pistettä{/eq}.",sv:"Spridningsdiagram.",en:"Scatter chart with {numPoints} {#eq numPoints 1}point{else}points{/eq}."},scatterMultiple:{fi:"Hajontakuvio,jossa {numSeries} datasarjaa.",sv:"Flerdimensionellt spridningsdiagram.",en:"Scatter chart with {numSeries} data series."},defaultSingle:{fi:"Kuvio, jossa {numPoints} data{#eq numPoints 1}piste{else}pistettä{/eq}.",sv:"Endimensionellt diagram.",en:"Chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}."},defaultMultiple:{fi:"Kuvio, jossa {numSeries} datasarjaa.",sv:"Flerdimensionellt diagram.",en:"Chart with {numSeries} data series."},defaultChartTitle:{fi:"Kuvio",sv:"Diagrammets rubrik",en:"Chart"},chartMenuLabel:{fi:"Kuvion valikko",sv:"Diagrammets meny",en:"Chart menu"},menuButtonLabel:{fi:"Katso valikko kuviosta {chartTitle}",sv:"Visa diagrammets meny",en:"View chart menu, {chartTitle}"},credits:{fi:"{creditsStr}",sv:"{creditsStr}",en:"{creditsStr}"},legendItem:{fi:"Näytä {itemName}",sv:"Variabelvärde",en:"Show {itemName}"},legendLabel:{fi:"Kuvion selite: {legendTitle}",sv:"Bläddra visuellt i variabelvärden",en:"Chart legend: {legendTitle}"},legendLabelNoTitle:{fi:"Vaihda sarjojen näkyvyyttä, {chartTitle}",sv:"Ingen etikett",en:"Toggle series visibility, {chartTitle}"},contextButtonTitle:{fi:"Kuvion valintamenu",sv:"Diagrammets valmeny",en:"Chart context menu"},downloadPNG:{fi:"Lataa kuvio (png)",sv:"Ladda ner figuren (png)",en:"Download figure (png)"},downloadSVG:{fi:"Lataa kuvio (svg)",sv:"Ladda ner figuren (svg)",en:"Download figure (svg)"},downloadXLSX:{fi:"Lataa taulukko (xlsx)",sv:"Ladda ner tabellen (xlsx)",en:"Download table (xlsx)"},downloadCSV:{fi:"Lataa taulukko (csv)",sv:"Ladda ner tabellen (csv)",en:"Download table (csv)"},rangeCategories:{fi:"Datan arvoalue: {numCategories} luokkaa.",sv:"Diagrammets värdeområde.",en:"Data range: {numCategories} categories."},rangeFromTo:{fi:"Arvot alkavat {rangeFrom} ja päättyvät {rangeTo}.",sv:"Värdena börjar från {rangeFrom} och slutar vid {rangeTo}.",en:"Data ranges from {rangeFrom} to {rangeTo}."},timeRangeDays:{fi:"Arvoja päiviltä {range}.",sv:"Värden för dagarna {range}.",en:"Data range: {range} days."},timeRangeHours:{fi:"Arvoja tunneilta {range}",sv:"Värden för timmarna {range}",en:"Data range: {range} hours."},timeRangeMinutes:{fi:"Arvoja minuuteilta {range}",sv:"Värden för minuterna {range}",en:"Data range: {range} minutes."},timeRangeSeconds:{fi:"Arvoja sekunneilta {range}",sv:"Värden för sekunderna {range}",en:"Data range: {range} seconds."},xAxisDescriptionPlural:{fi:"Kuviolla on {numAxes} x-akselia muuttujille {#each names}{#unless @first},{/unless}{#if @last} ja{/if} {this}{/each}.",sv:"Figuren har {numAxes} x-axlar för variablerna {#each names}{#unless @first},{/unless}{#if @last} och{/if} {this}{/each}.",en:"The chart has {numAxes} X axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}."},xAxisDescriptionSingular:{fi:"Kuviolla on 1 x-akseli muuttujalle {names[0]}. {ranges[0]}",sv:"Figuren har en x-axel för variabeln {names[0]}. {ranges[0]}",en:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}"},yAxisDescriptionPlural:{fi:"Kuviolla on {numAxes} y-akselia muuttujille {#each names}{#unless @first},{/unless}{#if @last} ja{/if} {this}{/each}.",sv:"Figuren har {numAxes} y-axlar för variablerna {#each names}{#unless @first},{/unless}{#if @last} och{/if} {this}{/each}.",en:"The chart has {numAxes} Y axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}."},yAxisDescriptionSingular:{fi:"Kuviolla on 1 y-akseli muuttujalle {names[0]}. {ranges[0]}",sv:"Figuren har en y-axel för variabeln {names[0]}. {ranges[0]}",en:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}"},seriesSummaryBar:{fi:"{series.name}muuttujan {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel",en:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryBarCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}. Pylvässarja, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel, ..variabelns .. Stapel",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryColumn:{fi:"{series.name}muuttuja, pylvässarja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel",en:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryColumnCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}. Pylvässarja, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel, ..variabelns .. Stapel",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryDefault:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. Diagram",en:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryDefaultCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. diagram, ..variabelns .. Diagram",en:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryLine:{fi:"{series.name}, viiva {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. Linje",en:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryLineCombination:{fi:"{series.name}, aikasarja {seriesNumber}/{chart.series.length}. Viivassa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. linje, ..variabelns .. Linje",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryPie:{fi:"{series.name}, piirakan {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1} lohko {else}lohkoa{/eq}.",sv:"..variabelns .. Sektor",en:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}."},seriesSummaryPieCombination:{fi:"{series.name}, sarja {seriesNumber}/{chart.series.length}. Piirakasta, jossa {series.points.length} {#eq series.points.length 1} lohko{else}lohkoa{/eq}.",sv:"..variabelns .. sektor, ..variabelns .. Sektor",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}."},seriesSummaryScatter:{fi:"{series.name}, hajontakuvio {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1}piste{else}pisteet{/eq}.",sv:"..variabelns .. Punkt",en:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryScatterCombination:{fi:"{series.name}, datasarja {seriesNumber}/{chart.series.length}, hajontakuviosta {series.points.length} {#eq series.points.length 1}piste{else}pisteet{/eq}.",sv:"..variabelns .. punkt, ..variabelns .. Punkt",en:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}."},xAxisDescription:{fi:"Toisen X-akselin kuvaus, {name}",sv:"Beskrivning av andra X-axeln, {name}",en:"X axis, {name}"},yAxisDescription:{fi:"Toisen Y-akselin kuvaus, {name}",sv:"Beskrivning av andra Y-axeln, {name}",en:"Y axis, {name}"},endOfChartMarker:{fi:"Kuvion loppu.",sv:"Diagrammets slut.",en:"End of interactive chart."},loading:{fi:"Ladataan...",sv:"Laddar...",en:"Loading..."},chartContainerLabel:{fi:"{title}. Highcharts interactive chart.",sv:"{title}. Highcharts interactive chart.",en:"{title}. Highcharts interactive chart."},toggleTableModeOnText:{fi:"Näytä taulukko",sv:"Visa tabell",en:"View table"},toggleTableModeOffText:{fi:"Näytä kuvio",sv:"Visa figur",en:"View chart"},externalLink:{fi:"Ulkoinen linkki",sv:"Ulkoinen linkki",en:"External link"},quarter:{fi:"vuosineljännes",sv:"kvartal",en:"quarter"},dataMissing:{fi:"Tieto puuttuu",sv:"Data saknas",en:"Missing data"},toggleAccessibilityModeOn:{fi:"Näytä kuviossa symbolit",sv:"Visa symboler i diagrammet",en:"Show symbols in the figure"},toggleAccessibilityModeOff:{fi:"Poista kuviosta symbolit",sv:"Ta bort symbolerna från diagrammet",en:"Remove symbols from the figure"}},mi={months:{fi:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],sv:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],en:["January","February","March","April","May","June","July","August","September","October","November","December"]},shortMonths:{fi:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],sv:["jan.","febr.","mars","april","maj","juni","juli","aug.","sept.","okt.","nov.","dec."],en:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},numericSymbols:{fi:["k","M","G","T","P","E"],sv:["k","M","G","T","P","E"],en:["k","M","G","T","P","E"]},weekdays:{fi:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],sv:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],en:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ordinalSuffices:{en:["st.","nd.","rd.","th."]}},fi=new(/*#__PURE__*/function(){function t(){var t=this;this.Translations=void 0,this.ArrayTranslations=void 0,this.GetAllLanguages=function(){return Object.keys(t.Translations.empty)},this.Translations=gi,this.ArrayTranslations=mi}return t.prototype.AddTranslations=function(t){for(var e in t.Translations)e in this.Translations&&(this.Translations[e]=m({},this.Translations[e],t.Translations[e]));for(var i in t.ArrayTranslations)i in this.ArrayTranslations&&(this.ArrayTranslations[i]=m({},this.ArrayTranslations[i],t.ArrayTranslations[i]))},t}()),yi=fi.Translations,xi=fi.ArrayTranslations,bi=fi.GetAllLanguages;function vi(t){fi.AddTranslations(t)}var wi=function(t){return t.reduce(function(t,e){return t.map(function(t){return e.map(function(e){return t.concat([e])})}).reduce(function(t,e){return t.concat(e)},[])},[[]])};function ki(t,e,i){return i.findIndex(function(e){return JSON.stringify(e)===JSON.stringify(t)})===e}var Si=["",".","..","...","....",".....","......","-"];function Mi(t,e,i,n){if(void 0===n&&(n=!1),null===t)throw new Error("Can not produce a localized numeric formatting for missing data");return new Intl.NumberFormat(i,{maximumFractionDigits:e,minimumFractionDigits:e,useGrouping:n}).format(t)}function Ci(t,e,i){if(void 0===i&&(i=!1),t)return i?yi.dataMissing[e]:Si[t];throw new Error("Invalid missing code. Can not generate table presentation")}function Ti(t,e){return function(){var i,n,r,s,o,a=[];t.rowVarNames&&t.rowVarNames.length>0&&this.series.name&&a.push((null==(s=t.rowVarNames)?void 0:s.map(function(t){return t[e]}).join(", "))+": "+this.series.name),t.colVarNames&&t.colVarNames.length>0&&this.name&&a.push((null==(o=t.colVarNames)?void 0:o.map(function(t){return t[e]}).join(", "))+": "+this.name);var l=null!=(i=null==(n=this.options.custom)?void 0:n.precision)?i:0;return a.push(Fi(t,this,e,l)),null!=(r=this.options.custom)&&r.preliminary&&a.push(yi.preliminaryData[e]),a.join("<br/>")}}function Ai(t,e){return function(i){var n,r,s,o,a,l=[];t.rowVarNames&&t.rowVarNames.length>0&&i.series.name&&l.push((null==(o=t.rowVarNames)?void 0:o.map(function(t){return t[e]}).join(", "))+": "+zi(i.series.name,e)),t.colVarNames&&t.colVarNames.length>0&&i.name&&l.push((null==(a=t.colVarNames)?void 0:a.map(function(t){return t[e]}).join(", "))+": "+zi(i.name,e));var h=null!=(n=null==(r=i.options.custom)?void 0:r.precision)?n:0;return l.push(Fi(t,i,e,h)),null!=(s=i.options.custom)&&s.preliminary&&l.push(yi.preliminaryData[e]),l.join(", ")}}function Ei(t){return function(){return this.value.toLocaleString(t)}}var Pi=function(t){return bi().indexOf(t.toLowerCase().trim())>-1?t.toLowerCase().trim():bi()[0]};function Oi(t){void 0===t&&(t=null);var e=t&&t>=15?25:50;return function(){return Ii(this.value,e)}}function Li(t){return function(){var e,i;if(!this.y)return"";var n=null!=(e=null==(i=this.options.custom)?void 0:i.precision)?e:0;return Mi(this.y,n,t,!0)}}function Ni(){return function(){return Ii(this.name,200)}}var Ii=function(t,e){void 0===e&&(e=50);var i=t.toString().length;return t.toString().slice(0,e).trim()+(i>e?"...":"")};function Di(t,e){return function(){var i,n,r,s=t.series[1].rowNameGroup.map(function(t){return t[e]}).join(", "),o=t.series[0].rowNameGroup.map(function(t){return t[e]}).join(", "),a=null==(i=t.colVarNames)?void 0:i.map(function(t){return t[e]}).join(", "),l="";return s&&s.length>0&&this.series.name&&(l+=s+": "+this.x.toLocaleString(e)+"<br />"),o&&o.length>0&&this.key&&(l+=o+": "+(null==(r=this.y)?void 0:r.toLocaleString(e))+"<br />"),a&&a.length>0&&t.columnNameGroups&&t.columnNameGroups.length>0&&(l+=a+": "+t.columnNameGroups[this.index].map(function(t){return t[e]}).join(", ")),null!=(n=this.options.custom)&&n.preliminary&&(l+="<br />"+yi.preliminaryData[e]),l}}function Bi(t,e){return function(){var i,n,r,s,o=[];if(t.rowVarNames&&t.rowVarNames.length>0)for(var a=0;a<t.rowVarNames.length;a++)o.push(t.rowVarNames[a][e]+": "+t.series[this.series.index].rowNameGroup[a][e]);t.colVarNames&&t.colVarNames.length>0&&this.name&&o.push((null==(s=t.colVarNames)?void 0:s.map(function(t){return t[e]}).join(", "))+": "+this.name);var l=null!=(i=null==(n=this.options.custom)?void 0:n.precision)?i:0;return o.push(Fi(t,this,e,l)),null!=(r=this.options.custom)&&r.preliminary&&o.push(yi.preliminaryData[e]),o.join("<br/>")}}function Ri(t,e){var i=t.map(function(t){return t.unit}).filter(ki);if(1===i.length)return i[0][e];if(i.length>1)return t.map(function(t){return t.name[e]+": "+t.unit[e]}).join(", ");throw new Error("Missing required unit data")}function Fi(t,e,i,n){if(null==e.y)return"";var r,s,o=Number(e.y.toFixed(n));return t.visualizationSettings.visualizationType===ci.PyramidChart?Math.abs(o).toLocaleString(i):t.visualizationSettings.visualizationType==ci.PercentHorizontalBarChart||t.visualizationSettings.visualizationType==ci.PercentVerticalBarChart?Mi(null!=(r=e.percentage)?r:0,1,i)+"% ("+o.toLocaleString(i)+" "+Ri(t.units,i)+")":null!=(s=o.toLocaleString(i))?s:""}function zi(t,e){if(/^\d{4}[M,Q]\d{1,2}\*?$/.test(t)){var i=t.split("*")[0];if(/^\d{4}M\d{1,2}$/.test(i)){var n=i.split("M");return n[0]+" "+xi.months[e][Number(n[1])-1]}if(/^\d{4}Q\d{1,2}$/.test(i)){var r=i.split("Q");return r[0]+" "+function(t,e){var i=xi.ordinalSuffices[e],n=parseInt(t)-1;return null!=i&&i[n]?""+t+i[n]:t+"."}(r[1],e)+" "+yi.quarter[e]}console.log("Unsupported time pattern")}return t}var Hi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ji(t){var e={exports:{}};return t(e,e.exports),e.exports}var Gi,Wi=ji(function(t,e){var i,n;n=()=>(()=>{let t,e;var i,n,r,s,o,a,l,h,c,d,u,p,g,m,f,y,x,b,v={d:(t,e)=>{for(var i in e)v.o(e,i)&&!v.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},w={};v.d(w,{default:()=>pd}),function(t){t.SVG_NS="http://www.w3.org/2000/svg",t.product="Highcharts",t.version="12.4.0",t.win="undefined"!=typeof window?window:{},t.doc=t.win.document,t.svg=!!t.doc?.createElementNS?.(t.SVG_NS,"svg")?.createSVGRect,t.pageLang=t.doc?.documentElement?.closest("[lang]")?.lang,t.userAgent=t.win.navigator?.userAgent||"",t.isChrome=t.win.chrome,t.isFirefox=-1!==t.userAgent.indexOf("Firefox"),t.isMS=/(edge|msie|trident)/i.test(t.userAgent)&&!t.win.opera,t.isSafari=!t.isChrome&&-1!==t.userAgent.indexOf("Safari"),t.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(t.userAgent),t.isWebKit=-1!==t.userAgent.indexOf("AppleWebKit"),t.deg2rad=2*Math.PI/360,t.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],t.noop=function(){},t.supportsPassiveEvents=function(){let e=!1;if(!t.isMS){let i=Object.defineProperty({},"passive",{get:function(){e=!0}});t.win.addEventListener&&t.win.removeEventListener&&(t.win.addEventListener("testPassive",t.noop,i),t.win.removeEventListener("testPassive",t.noop,i))}return e}(),t.charts=[],t.composed=[],t.dateFormats={},t.seriesTypes={},t.symbolSizes={},t.chartCount=0}(i||(i={}));let k=i,{charts:S,doc:M,win:C}=k;function T(t,e,i,n){let r=e?"Highcharts error":"Highcharts warning";32===t&&(t=`${r}: Deprecated member`);let s=I(t),o=s?`${r} #${t}: www.highcharts.com/errors/${t}/`:t.toString();if(void 0!==n){let t="";s&&(o+="?"),V(n,function(e,i){t+=`\n - ${i}: ${e}`,s&&(o+=encodeURI(i)+"="+encodeURI(e))}),o+=t}U(k,"displayError",{chart:i,code:t,message:o,params:n},function(){if(e)throw Error(o);C.console&&-1===T.messages.indexOf(o)&&console.warn(o)}),T.messages.push(o)}function A(t,e){return parseInt(t,e||10)}function E(t){return"string"==typeof t}function P(t){let e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function O(t,e){return!(!t||"object"!=typeof t||e&&P(t))}function L(t){return O(t)&&"number"==typeof t.nodeType}function N(t){let e=t?.constructor;return!(!O(t,!0)||L(t)||!e?.name||"Object"===e.name)}function I(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function D(t){return null!=t}function B(t,e,i){let n,r=E(e)&&!D(i),s=(e,i)=>{D(e)?t.setAttribute(i,e):r?(n=t.getAttribute(i))||"class"!==i||(n=t.getAttribute(i+"Name")):t.removeAttribute(i)};return E(e)?s(i,e):V(e,s),n}function R(t){return P(t)?t:[t]}function F(t,e){let i;for(i in t||(t={}),e)t[i]=e[i];return t}function z(){let t=arguments,e=t.length;for(let i=0;i<e;i++){let e=t[i];if(null!=e)return e}}function H(t,e){F(t.style,e)}function j(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function G(t,e){return t>1e14?t:parseFloat(t.toPrecision(e||14))}(T||(T={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};let W=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){let i,n=t.length;for(i=0;i<n;i++)if(e(t[i],i))return t[i]};function V(t,e,i){for(let n in t)Object.hasOwnProperty.call(t,n)&&e.call(i||t[n],t[n],n,t)}function X(t,e,i){function n(e,i){let n=t.removeEventListener;n&&n.call(t,e,i,!1)}function r(i){let r,s;t.nodeName&&(e?(r={})[e]=!0:r=i,V(r,function(t,e){if(i[e])for(s=i[e].length;s--;)n(e,i[e][s].fn)}))}let s="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(s,"hcEvents")){let t=s.hcEvents;e?i?(t[e]=(t[e]||[]).filter(function(t){return i!==t.fn}),n(e,i)):(r(t),t[e]=[]):(r(t),delete s.hcEvents)}}function U(t,e,i,n){if(i=i||{},M?.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==k)){let n=M.createEvent("Events");n.initEvent(e,!0,!0),i=F(n,i),t.dispatchEvent?t.dispatchEvent(i):t.fireEvent(e,i)}else if(t.hcEvents){i.target||F(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e});let n=[],r=t,s=!1;for(;r.hcEvents;)Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents[e]&&(n.length&&(s=!0),n.unshift.apply(n,r.hcEvents[e])),r=Object.getPrototypeOf(r);s&&n.sort((t,e)=>t.order-e.order),n.forEach(e=>{!1===e.fn.call(t,i)&&i.preventDefault()})}n&&!i.defaultPrevented&&n.call(t,i)}let Y=function(){let e=Math.random().toString(36).substring(2,9)+"-",i=0;return function(){return"highcharts-"+(t?"":e)+i++}}();C.jQuery&&(C.jQuery.fn.highcharts=function(){let t=[].slice.call(arguments);if(this[0])return t[0]?(new(k[E(t[0])?t.shift():"Chart"])(this[0],t[0],t[1]),this):S[B(this[0],"data-highcharts-chart")]});let q={addEvent:function(t,e,i,n={}){let r="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(r,"hcEvents")||(r.hcEvents={});let s=r.hcEvents;k.Point&&t instanceof k.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);let o=t.addEventListener;return o&&o.call(t,e,i,!!k.supportsPassiveEvents&&{passive:void 0===n.passive?-1!==e.indexOf("touch"):n.passive,capture:!1}),s[e]||(s[e]=[]),s[e].push({fn:i,order:"number"==typeof n.order?n.order:1/0}),s[e].sort((t,e)=>t.order-e.order),function(){X(t,e,i)}},arrayMax:function(t){let e=t.length,i=t[0];for(;e--;)t[e]>i&&(i=t[e]);return i},arrayMin:function(t){let e=t.length,i=t[0];for(;e--;)t[e]<i&&(i=t[e]);return i},attr:B,clamp:function(t,e,i){return t>e?t<i?t:i:e},clearTimeout:function(t){D(t)&&clearTimeout(t)},correctFloat:G,createElement:function(t,e,i,n,r){let s=M.createElement(t);return e&&F(s,e),r&&H(s,{padding:"0",border:"none",margin:"0"}),i&&H(s,i),n&&n.appendChild(s),s},crisp:function(t,e=0,i){let n=e%2/2,r=i?-1:1;return(Math.round(t*r-n)+n)*r},css:H,defined:D,destroyObjectProperties:function(t,e,i){V(t,function(n,r){n!==e&&n?.destroy&&n.destroy(),(n?.destroy||!i)&&delete t[r]})},diffObjects:function(t,e,i,n){let r={};return function t(e,r,s,o){let a=i?r:e;V(e,function(i,l){if(!o&&n&&n.indexOf(l)>-1&&r[l]){i=R(i),s[l]=[];for(let e=0;e<Math.max(i.length,r[l].length);e++)r[l][e]&&(void 0===i[e]?s[l][e]=r[l][e]:(s[l][e]={},t(i[e],r[l][e],s[l][e],o+1)))}else O(i,!0)&&!i.nodeType?(s[l]=P(i)?[]:{},t(i,r[l]||{},s[l],o+1),0===Object.keys(s[l]).length&&("colorAxis"!==l||0!==o)&&delete s[l]):(e[l]!==r[l]||l in e&&!(l in r))&&"__proto__"!==l&&"constructor"!==l&&(s[l]=a[l])})}(t,e,r,0),r},discardElement:function(t){t?.parentElement?.removeChild(t)},erase:function(t,e){let i=t.length;for(;i--;)if(t[i]===e){t.splice(i,1);break}},error:T,extend:F,extendClass:function(t,e){let i=function(){};return F(i.prototype=new t,e),i},find:W,fireEvent:U,getAlignFactor:(t="")=>({center:.5,right:1,middle:.5,bottom:1}[t]||0),getClosestDistance:function(t,e){let i,n,r,s=!e;return t.forEach(t=>{if(t.length>1)for(r=t.length-1;r>0;r--)(n=t[r]-t[r-1])<0&&!s?(e?.(),e=void 0):n&&(void 0===i||n<i)&&(i=n)}),i},getMagnitude:j,getNestedProperty:function(t,e){let i=t.split(".");for(;i.length&&D(e);){let t=i.shift();if(void 0===t||"__proto__"===t)return;if("this"===t){let t;return O(e)&&(t=e["@this"]),t??e}let n=e[t.replace(/[\\'"]/g,"")];if(!D(n)||"function"==typeof n||"number"==typeof n.nodeType||n===C)return;e=n}return e},getStyle:function t(e,i,n){let r;if("width"===i){let i=Math.min(e.offsetWidth,e.scrollWidth),n=e.getBoundingClientRect?.().width;return n<i&&n>=i-1&&(i=Math.floor(n)),Math.max(0,i-(t(e,"padding-left",!0)||0)-(t(e,"padding-right",!0)||0))}if("height"===i)return Math.max(0,Math.min(e.offsetHeight,e.scrollHeight)-(t(e,"padding-top",!0)||0)-(t(e,"padding-bottom",!0)||0));let s=C.getComputedStyle(e,void 0);return s&&(r=s.getPropertyValue(i),z(n,"opacity"!==i)&&(r=A(r))),r},insertItem:function(t,e){let i,n=t.options.index,r=e.length;for(i=t.options.isInternal?r:0;i<r+1;i++)if(!e[i]||I(n)&&n<z(e[i].options.index,e[i]._i)||e[i].options.isInternal){e.splice(i,0,t);break}return i},isArray:P,isClass:N,isDOMElement:L,isFunction:function(t){return"function"==typeof t},isNumber:I,isObject:O,isString:E,merge:function(t,...e){let i,n=[t,...e],r={},s=function(t,e){return"object"!=typeof t&&(t={}),V(e,function(i,n){"__proto__"!==n&&"constructor"!==n&&(t[n]=!O(i,!0)||N(i)||L(i)?e[n]:s(t[n]||{},i))}),t};!0===t&&(r=n[1],n=Array.prototype.slice.call(n,2));let o=n.length;for(i=0;i<o;i++)r=s(r,n[i]);return r},normalizeTickInterval:function(t,e,i,n,r){let s,o=t,a=t/(i=z(i,j(t)));for(!e&&(e=r?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===n&&(1===i?e=e.filter(function(t){return t%1==0}):i<=.1&&(e=[1/i]))),s=0;s<e.length&&(o=e[s],(!r||!(o*i>=t))&&(r||!(a<=(e[s]+(e[s+1]||e[s]))/2)));s++);return G(o*i,-Math.round(Math.log(.001)/Math.LN10))},objectEach:V,offset:function(t){let e=M.documentElement,i=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:i.top+(C.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(C.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:i.width,height:i.height}},pad:function(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t},pick:z,pInt:A,pushUnique:function(t,e){return 0>t.indexOf(e)&&!!t.push(e)},relativeLength:function(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)},removeEvent:X,replaceNested:function(t,...e){let i,n;do{for(n of(i=t,e))t=t.replace(n[0],n[1])}while(t!==i);return t},splat:R,stableSort:function(t,e){let i,n,r=t.length;for(n=0;n<r;n++)t[n].safeI=n;for(t.sort(function(t,n){return 0===(i=e(t,n))?t.safeI-n.safeI:i}),n=0;n<r;n++)delete t[n].safeI},syncTimeout:function(t,e,i){return e>0?setTimeout(t,e,i):(t.call(0,i),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},ucfirst:function(t){return E(t)?t.substring(0,1).toUpperCase()+t.substring(1):String(t)},uniqueKey:Y,useSerialIds:function(e){return t=z(e,t)},wrap:function(t,e,i){let n=t[e];t[e]=function(){let t=arguments,e=this;return i.apply(this,[function(){return n.apply(e,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}}},{pageLang:$,win:_}=k,{defined:K,error:Z,extend:J,isNumber:Q,isObject:tt,isString:et,merge:it,objectEach:nt,pad:rt,splat:st,timeUnits:ot,ucfirst:at}=q,lt=k.isSafari&&_.Intl&&!_.Intl.DateTimeFormat.prototype.formatRange,ht=class{constructor(t,e){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=_.Date,this.update(t),this.lang=e}update(t={}){this.dTLCache={},this.options=t=it(!0,this.options,t);let{timezoneOffset:e,useUTC:i,locale:n}=t;this.Date=t.Date||_.Date||Date;let r=t.timezone;K(i)&&(r=i?"UTC":void 0),e&&e%60==0&&(r="Etc/GMT"+(e>0?"+":"")+e/60),this.variableTimezone="UTC"!==r&&0!==r?.indexOf("Etc/GMT"),this.timezone=r,this.lang&&n&&(this.lang.locale=n),["months","shortMonths","weekdays","shortWeekdays"].forEach(t=>{let e=/months/i.test(t),i=/short/.test(t),n={timeZone:"UTC"};n[e?"month":"weekday"]=i?"short":"long",this[t]=(e?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(t=>this.dateFormat(n,24*(e?31:1)*36e5*t))})}toParts(t){let[e,i,n,r,s,o,a]=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},t,"es").split(/(?:, | |\/|:)/g);return[r,n-1,i,s,o,a,Math.floor(Number(t)||0)%1e3,"DLMXJVS".indexOf(e)].map(Number)}dateTimeFormat(t,e,i=this.options.locale||$){let n=JSON.stringify(t)+i;et(t)&&(t=this.str2dtf(t));let r=this.dTLCache[n];if(!r){t.timeZone??(t.timeZone=this.timezone);try{r=new Intl.DateTimeFormat(i,t)}catch(e){/Invalid time zone/i.test(e.message)?(Z(34),t.timeZone="UTC",r=new Intl.DateTimeFormat(i,t)):Z(e.message,!1)}}return this.dTLCache[n]=r,r?.format(e)||""}str2dtf(t,e={}){let i={L:{fractionalSecondDigits:3},S:{second:"2-digit"},M:{minute:"numeric"},H:{hour:"2-digit"},k:{hour:"numeric"},E:{weekday:"narrow"},a:{weekday:"short"},A:{weekday:"long"},d:{day:"2-digit"},e:{day:"numeric"},b:{month:"short"},B:{month:"long"},m:{month:"2-digit"},o:{month:"numeric"},y:{year:"2-digit"},Y:{year:"numeric"}};return Object.keys(i).forEach(n=>{-1!==t.indexOf(n)&&J(e,i[n])}),e}makeTime(t,e,i=1,n=0,r,s,o){let a=this.Date.UTC(t,e,i,n,r||0,s||0,o||0);if("UTC"!==this.timezone){let t=this.getTimezoneOffset(a);if(a+=t,-1!==[2,3,8,9,10,11].indexOf(e)&&(n<5||n>20)){let e=this.getTimezoneOffset(a);t!==e?a+=e-t:t-36e5!==this.getTimezoneOffset(a-36e5)||lt||(a-=36e5)}}return a}parse(t){if(!et(t))return t??void 0;let e=(t=t.replace(/\//g,"-").replace(/(GMT|UTC)/,"")).indexOf("Z")>-1||/([+-][0-9]{2}):?[0-9]{2}$/.test(t),i=/^[0-9]{4}-[0-9]{2}(-[0-9]{2}|)$/.test(t);e||i||(t+="Z");let n=Date.parse(t);return Q(n)?n+(!e||i?this.getTimezoneOffset(n):0):void 0}getTimezoneOffset(t){if("UTC"!==this.timezone){let[e,i,n,r,s=0]=this.dateTimeFormat({timeZoneName:"shortOffset"},t,"en").split(/(GMT|:)/).map(Number),o=-60*(n+s/60)*6e4;if(Q(o))return o}return 0}dateFormat(t,e,i){let n=this.lang;if(!K(e)||isNaN(e))return n?.invalidDate||"";if(et(t=t??"%Y-%m-%d %H:%M:%S")){let i,r=/%\[([a-zA-Z]+)\]/g;for(;i=r.exec(t);)t=t.replace(i[0],this.dateTimeFormat(i[1],e,n?.locale))}if(et(t)&&-1!==t.indexOf("%")){let i=this,[r,s,o,a,l,h,c,d]=this.toParts(e),u=n?.weekdays||this.weekdays,p=n?.shortWeekdays||this.shortWeekdays,g=n?.months||this.months,m=n?.shortMonths||this.shortMonths;nt(J({a:p?p[d]:u[d].substr(0,3),A:u[d],d:rt(o),e:rt(o,2," "),w:d,v:n?.weekFrom??"",b:m[s],B:g[s],m:rt(s+1),o:s+1,y:r.toString().substr(2,2),Y:r,H:rt(a),k:a,I:rt(a%12||12),l:a%12||12,M:rt(l),p:a<12?"AM":"PM",P:a<12?"am":"pm",S:rt(h),L:rt(c,3)},k.dateFormats),function(n,r){if(et(t))for(;-1!==t.indexOf("%"+r);)t=t.replace("%"+r,"function"==typeof n?n.call(i,e):n)})}else if(tt(t)){let i=(this.getTimezoneOffset(e)||0)/36e5,n=this.timezone||"Etc/GMT"+(i>=0?"+":"")+i,{prefix:r="",suffix:s=""}=t;t=r+this.dateTimeFormat(J({timeZone:n},t),e)+s}return i?at(t):t}resolveDTLFormat(t){return tt(t,!0)?tt(t,!0)&&(t=>void 0===t.main)(t)?{main:t}:t:{main:(t=st(t))[0],from:t[1],to:t[2]}}getDateFormat(t,e,i,n){let r=this.dateFormat("%m-%d %H:%M:%S.%L",e),s="01-01 00:00:00.000",o={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond",l=a;for(a in ot){if(t&&t===ot.week&&+this.dateFormat("%w",e)===i&&r.substr(6)===s.substr(6)){a="week";break}if(t&&ot[a]>t){a=l;break}if(o[a]&&r.substr(o[a])!==s.substr(o[a]))break;"week"!==a&&(l=a)}return this.resolveDTLFormat(n[a]).main}},{defined:ct,extend:dt,timeUnits:ut}=q,pt=class extends ht{getTimeTicks(t,e,i,n){let r,s=this,o=[],a={},{count:l=1,unitRange:h}=t,[c,d,u,p,g,m]=s.toParts(e),f=(e||0)%1e3;if(n??(n=1),ct(e)){if(f=h>=ut.second?0:l*Math.floor(f/l),h>=ut.second&&(m=h>=ut.minute?0:l*Math.floor(m/l)),h>=ut.minute&&(g=h>=ut.hour?0:l*Math.floor(g/l)),h>=ut.hour&&(p=h>=ut.day?0:l*Math.floor(p/l)),h>=ut.day&&(u=h>=ut.month?1:Math.max(1,l*Math.floor(u/l))),h>=ut.month&&(d=h>=ut.year?0:l*Math.floor(d/l)),h>=ut.year&&(c-=c%l),h===ut.week){l&&(e=s.makeTime(c,d,u,p,g,m,f));let t=this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},e,"es"),i="DLMXJVS".indexOf(t);u+=-i+n+(i<n?-7:0)}e=s.makeTime(c,d,u,p,g,m,f),s.variableTimezone&&ct(i)&&(r=i-e>4*ut.month||s.getTimezoneOffset(e)!==s.getTimezoneOffset(i));let t=e,y=1;for(;t<i;)o.push(t),h===ut.year?t=s.makeTime(c+y*l,0):h===ut.month?t=s.makeTime(c,d+y*l):!r||h!==ut.day&&h!==ut.week?r&&h===ut.hour&&l>1?t=s.makeTime(c,d,u,p+y*l):t+=h*l:t=s.makeTime(c,d,u+y*l*(h===ut.day?1:7)),y++;o.push(t),h<=ut.hour&&o.length<1e4&&o.forEach(t=>{t%18e5==0&&"000000000"===s.dateFormat("%H%M%S%L",t)&&(a[t]="day")})}return o.info=dt(t,{higherRanks:a,totalRange:h*l}),o}},{isTouchDevice:gt}=k,{fireEvent:mt,merge:ft}=q,yt={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:{color:"#333333",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:t=>Math.sqrt(1-Math.pow(t-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:gt?25:10,headerFormat:'<span style="font-size: 0.8em">{ucfirst point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,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"}},xt=new pt(yt.time,yt.lang),bt={defaultOptions:yt,defaultTime:xt,getOptions:function(){return yt},setOptions:function(t){return mt(k,"setOptions",{options:t}),ft(!0,yt,t),t.time&&xt.update(yt.time),t.lang&&"locale"in t.lang&&xt.update({locale:t.lang.locale}),t.lang?.chartTitle&&(yt.title={...yt.title,text:t.lang.chartTitle}),yt}},{win:vt}=k,{isNumber:wt,isString:kt,merge:St,pInt:Mt,defined:Ct}=q,Tt=(t,e,i)=>`color-mix(in srgb,${t},${e} ${100*i}%)`,At=t=>kt(t)&&!!t&&"none"!==t;class Et{static parse(t){return t?new Et(t):Et.None}constructor(t){let e,i,n,r;this.rgba=[NaN,NaN,NaN,NaN],this.input=t;let s=k.Color;if(s&&s!==Et)return new s(t);if("object"==typeof t&&void 0!==t.stops)this.stops=t.stops.map(t=>new Et(t[1]));else if("string"==typeof t)for(this.input=t=Et.names[t.toLowerCase()]||t,n=Et.parsers.length;n--&&!i;)(e=(r=Et.parsers[n]).regex.exec(t))&&(i=r.parse(e));i&&(this.rgba=i)}get(t){let e=this.input,i=this.rgba;if(this.output)return this.output;if("object"==typeof e&&void 0!==this.stops){let i=St(e);return i.stops=[].slice.call(i.stops),this.stops.forEach((e,n)=>{i.stops[n]=[i.stops[n][0],e.get(t)]}),i}return i&&wt(i[0])?"rgb"===t||!t&&1===i[3]?"rgb("+i[0]+","+i[1]+","+i[2]+")":"a"===t?`${i[3]}`:"rgba("+i.join(",")+")":e}brighten(t){let e=this.rgba;if(this.stops)this.stops.forEach(function(e){e.brighten(t)});else if(wt(t)&&0!==t)if(wt(e[0]))for(let i=0;i<3;i++)e[i]+=Mt(255*t),e[i]<0&&(e[i]=0),e[i]>255&&(e[i]=255);else Et.useColorMix&&At(this.input)&&(this.output=Tt(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,n=t.rgba;if(!wt(i[0])||!wt(n[0]))return Et.useColorMix&&At(this.input)&&At(t.input)&&e<.99?Tt(this.input,t.input,e):t.input||"none";let r=1!==n[3]||1!==i[3],s=(t,n)=>t+(i[n]-t)*(1-e),o=n.slice(0,3).map(s).map(Math.round);return r&&o.push(s(n[3],3)),(r?"rgba(":"rgb(")+o.join(",")+")"}}Et.names={white:"#ffffff",black:"#000000"},Et.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(t){return[Mt(t[1]),Mt(t[2]),Mt(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(t){return[Mt(t[1]),Mt(t[2]),Mt(t[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(t){return[Mt(t[1]+t[1],16),Mt(t[2]+t[2],16),Mt(t[3]+t[3],16),Ct(t[4])?Mt(t[4]+t[4],16)/255:1]}},{regex:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,parse:function(t){return[Mt(t[1],16),Mt(t[2],16),Mt(t[3],16),Ct(t[4])?Mt(t[4],16)/255:1]}}],Et.useColorMix=vt.CSS?.supports("color","color-mix(in srgb,red,blue 9%)"),Et.None=new Et("");let{parse:Pt}=Et,{win:Ot}=k,{isNumber:Lt,objectEach:Nt}=q;class It{constructor(t,e,i){this.pos=NaN,this.options=e,this.elem=t,this.prop=i}dSetter(){let t=this.paths,e=t?.[0],i=t?.[1],n=this.now||0,r=[];if(1!==n&&e&&i)if(e.length===i.length&&n<1)for(let t=0;t<i.length;t++){let s=e[t],o=i[t],a=[];for(let t=0;t<o.length;t++){let e=s[t],i=o[t];a[t]=Lt(e)&&Lt(i)&&("A"!==o[0]||4!==t&&5!==t)?e+n*(i-e):i}r.push(a)}else r=i;else r=this.toD||[];this.elem.attr("d",r,void 0,!0)}update(){let t=this.elem,e=this.prop,i=this.now,n=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,n&&n.call(t,i,this)}run(t,e,i){let n=this,r=n.options,s=function(t){return!s.stopped&&n.step(t)},o=Ot.requestAnimationFrame||function(t){setTimeout(t,13)},a=function(){for(let t=0;t<It.timers.length;t++)It.timers[t]()||It.timers.splice(t--,1);It.timers.length&&o(a)};t!==e||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=t,this.end=e,this.unit=i,this.now=this.start,this.pos=0,s.elem=this.elem,s.prop=this.prop,s()&&1===It.timers.push(s)&&o(a)):(delete r.curAnim[this.prop],r.complete&&0===Object.keys(r.curAnim).length&&r.complete.call(this.elem))}step(t){let e,i,n=+new Date,r=this.options,s=this.elem,o=r.complete,a=r.duration,l=r.curAnim;return s.attr&&!s.element?e=!1:t||n>=a+this.startTime?(this.now=this.end,this.pos=1,this.update(),l[this.prop]=!0,i=!0,Nt(l,function(t){!0!==t&&(i=!1)}),i&&o&&o.call(s),e=!1):(this.pos=r.easing((n-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e}initPath(t,e,i){let n,r,s,o,a=t.startX,l=t.endX,h=i.slice(),c=t.isArea,d=c?2:1,u=e&&i.length>e.length&&i.hasStackedCliffs,p=e?.slice();if(!p||u)return[h,h];function g(t,e){for(;t.length<r;){let i=t[0],n=e[r-t.length];if(n&&"M"===i[0]&&(t[0]="C"===n[0]?["C",i[1],i[2],i[1],i[2],i[1],i[2]]:["L",i[1],i[2]]),t.unshift(i),c){let e=t.pop();t.push(t[t.length-1],e)}}}function m(t){for(;t.length<r;){let e=t[Math.floor(t.length/d)-1].slice();if("C"===e[0]&&(e[1]=e[5],e[2]=e[6]),c){let i=t[Math.floor(t.length/d)].slice();t.splice(t.length/2,0,e,i)}else t.push(e)}}if(a&&l&&l.length){for(s=0;s<a.length;s++){if(a[s]===l[0]){n=s;break}if(a[0]===l[l.length-a.length+s]){n=s,o=!0;break}if(a[a.length-1]===l[l.length-a.length+s]){n=a.length-s;break}}void 0===n&&(p=[])}return p.length&&Lt(n)&&(r=h.length+n*d,o?(g(p,h),m(h)):(g(h,p),m(p))),[p,h]}fillSetter(){It.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,Pt(this.start).tweenTo(Pt(this.end),this.pos),void 0,!0)}}It.timers=[];let{defined:Dt,getStyle:Bt,isArray:Rt,isNumber:Ft,isObject:zt,merge:Ht,objectEach:jt,pick:Gt}=q;function Wt(t){return zt(t)?Ht({duration:500,defer:0},t):{duration:500*!!t,defer:0}}function Vt(t,e){let i=It.timers.length;for(;i--;)It.timers[i].elem!==t||e&&e!==It.timers[i].prop||(It.timers[i].stopped=!0)}let Xt={animate:function(t,e,i){let n,r,s,o,a="";zt(i)||(o=arguments,i={duration:o[2],easing:o[3],complete:o[4]}),Ft(i.duration)||(i.duration=400),i.easing="function"==typeof i.easing?i.easing:Math[i.easing]||Math.easeInOutSine,i.curAnim=Ht(e),jt(e,function(o,l){Vt(t,l),s=new It(t,i,l),r=void 0,"d"===l&&Rt(e.d)?(s.paths=s.initPath(t,t.pathArray,e.d),s.toD=e.d,n=0,r=1):t.attr?n=t.attr(l):(n=parseFloat(Bt(t,l))||0,"opacity"!==l&&(a="px")),r||(r=o),"string"==typeof r&&r.match("px")&&(r=r.replace(/px/g,"")),s.run(n,r,a)})},animObject:Wt,getDeferredAnimation:function(t,e,i){let n=Wt(e),r=0,s=0;return(i?[i]:t.series).forEach(t=>{let i=Wt(t.options.animation);r=zt(e)&&Dt(e.defer)?n.defer:Math.max(r,i.duration+i.defer),s=Math.min(n.duration,i.duration)}),t.renderer.forExport&&(r=0),{defer:Math.max(0,r-s),duration:Math.min(r,s)}},setAnimation:function(t,e){e.renderer.globalAnimation=Gt(t,e.options.chart.animation,!0)},stop:Vt},{SVG_NS:Ut,win:Yt}=k,{attr:qt,createElement:$t,css:_t,error:Kt,isFunction:Zt,isString:Jt,objectEach:Qt,splat:te}=q,{trustedTypes:ee}=Yt,ie=ee&&Zt(ee.createPolicy)&&ee.createPolicy("highcharts",{createHTML:t=>t}),ne=ie?ie.createHTML(""):"";class re{static filterUserAttributes(t){return Qt(t,(e,i)=>{let n=!0;-1===re.allowedAttributes.indexOf(i)&&(n=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(i)&&(n=Jt(e)&&re.allowedReferences.some(t=>0===e.indexOf(t))),n||(Kt(33,!1,void 0,{"Invalid attribute in config":`${i}`}),delete t[i]),Jt(e)&&t[i]&&(t[i]=e.replace(/</g,"&lt;"))}),t}static parseStyle(t){return t.split(";").reduce((t,e)=>{let i=e.split(":").map(t=>t.trim()),n=i.shift();return n&&i.length&&(t[n.replace(/-([a-z])/g,t=>t[1].toUpperCase())]=i.join(":")),t},{})}static setElementHTML(t,e){t.innerHTML=re.emptyHTML,e&&new re(e).addToDOM(t)}constructor(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}addToDOM(t){return function t(e,i){let n;return te(e).forEach(function(e){let r,s=e.tagName,o=e.textContent?k.doc.createTextNode(e.textContent):void 0,a=re.bypassHTMLFiltering;if(s)if("#text"===s)r=o;else if(-1!==re.allowedTags.indexOf(s)||a){let n=k.doc.createElementNS("svg"===s?Ut:i.namespaceURI||Ut,s),l=e.attributes||{};Qt(e,function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"style"!==e&&"textContent"!==e&&(l[e]=t)}),qt(n,a?l:re.filterUserAttributes(l)),e.style&&_t(n,e.style),o&&n.appendChild(o),t(e.children||[],n),r=n}else Kt(33,!1,void 0,{"Invalid tagName in config":s});r&&i.appendChild(r),n=r}),n}(this.nodes,t)}parseMarkup(t){let e,i=[];t=t.trim().replace(/ style=(["'])/g," data-style=$1");try{e=(new DOMParser).parseFromString(ie?ie.createHTML(t):t,"text/html")}catch{}if(!e){let i=$t("div");i.innerHTML=t,e={body:i}}let n=(t,e)=>{let i=t.nodeName.toLowerCase(),r={tagName:i};"#text"===i&&(r.textContent=t.textContent||"");let s=t.attributes;if(s){let t={};[].forEach.call(s,e=>{"data-style"===e.name?r.style=re.parseStyle(e.value):t[e.name]=e.value}),r.attributes=t}if(t.childNodes.length){let e=[];[].forEach.call(t.childNodes,t=>{n(t,e)}),e.length&&(r.children=e)}e.push(r)};return[].forEach.call(e.body.childNodes,t=>n(t,i)),i}}re.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","disabled","dx","dy","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","result","role","rowspan","scope","slope","src","startOffset","stdDeviation","stroke-linecap","stroke-width","stroke","style","summary","tabindex","tableValues","target","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],re.allowedReferences=["https://","http://","mailto:","/","../","./","#"],re.allowedTags=["#text","a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","tbody","td","text","textPath","th","thead","title","tr","tspan","u","ul"],re.emptyHTML=ne,re.bypassHTMLFiltering=!1;let{defaultOptions:se,defaultTime:oe}=bt,{pageLang:ae}=k,{extend:le,getNestedProperty:he,isArray:ce,isNumber:de,isObject:ue,isString:pe,pick:ge,ucfirst:me}=q,fe={add:(t,e)=>t+e,divide:(t,e)=>0!==e?t/e:"",eq:(t,e)=>t==e,each:function(t){let e=arguments[arguments.length-1];return!!ce(t)&&t.map((i,n)=>be(e.body,le(ue(i)?i:{"@this":i},{"@index":n,"@first":0===n,"@last":n===t.length-1}))).join("")},ge:(t,e)=>t>=e,gt:(t,e)=>t>e,if:t=>!!t,le:(t,e)=>t<=e,lt:(t,e)=>t<e,multiply:(t,e)=>t*e,ne:(t,e)=>t!=e,subtract:(t,e)=>t-e,ucfirst:me,unless:t=>!t},ye={},xe=t=>/^["'].+["']$/.test(t);function be(t="",e,i){let n,r,s,o=/\{([a-zA-Z\u00C0-\u017F\d:\.,;\-\/<>\[\]%_@+"'’= #\(\)]+)\}/g,a=/\(([a-zA-Z\u00C0-\u017F\d:\.,;\-\/<>\[\]%_@+"'= ]+)\)/g,l=[],h=/f$/,c=/\.(\d)/,d=i?.options?.lang||se.lang,u=i?.time||oe,p=i?.numberFormatter||ve.bind(i),g=(t="")=>{let i;return"true"===t||"false"!==t&&((i=Number(t)).toString()===t?i:xe(t)?t.slice(1,-1):he(t,e))},m=0;for(;null!==(n=o.exec(t));){let i=n,o=a.exec(n[1]);o&&(n=o,s=!0),r?.isBlock||(r={ctx:e,expression:n[1],find:n[0],isBlock:"#"===n[1].charAt(0),start:n.index,startInner:n.index+n[0].length,length:n[0].length});let h=(r.isBlock?i:n)[1].split(" ")[0].replace("#","");fe[h]&&(r.isBlock&&h===r.fn&&m++,r.fn||(r.fn=h));let c="else"===n[1];if(r.isBlock&&r.fn&&(n[1]===`/${r.fn}`||c))if(m)!c&&m--;else{let e=r.startInner,i=t.substr(e,n.index-e);void 0===r.body?(r.body=i,r.startInner=n.index+n[0].length):r.elseBody=i,r.find+=i+n[0],c||(l.push(r),r=void 0)}else r.isBlock||l.push(r);if(o&&!r?.isBlock)break}return l.forEach(n=>{let r,s,{body:o,elseBody:l,expression:m,fn:f}=n;if(f){let t,a=[n],h=[],c=m.length,d=0;for(s=0;s<=c;s++){let e=m.charAt(s);t||'"'!==e&&"'"!==e?t===e&&(t=""):t=e,t||" "!==e&&s!==c||(h.push(m.substr(d,s-d)),d=s+1)}for(s=fe[f].length;s--;)a.unshift(g(h[s+1]));r=fe[f].apply(e,a),n.isBlock&&"boolean"==typeof r&&(r=be(r?o:l,e,i))}else{let t=xe(m)?[m]:m.split(":"),e=(r=g(t.shift()||""))%1!=0;if("number"==typeof r&&(t.length||e)){let i=t.join(":");if(h.test(i)||e){let t=parseInt((i.match(c)||["","-1"])[1],10);null!==r&&(r=p(r,t,d.decimalPoint,i.indexOf(",")>-1?d.thousandsSep:""))}else r=u.dateFormat(i,r)}a.lastIndex=0,a.test(n.find)&&pe(r)&&(r=`"${r}"`)}t=t.replace(n.find,ge(r,""))}),s?be(t,e,i):t}function ve(t,e,i,n){e*=1;let r,s,[o,a]=(t=+t||0).toString().split("e").map(Number),l=this?.options?.lang||se.lang,h=(t.toString().split(".")[1]||"").split("e")[0].length,c=e,d={};i??(i=l.decimalPoint),n??(n=l.thousandsSep),-1===e?e=Math.min(h,20):de(e)?e&&a<0&&((s=e+a)>=0?(o=+o.toExponential(s).split("e")[0],e=s):(o=Math.floor(o),t=e<20?+(o*Math.pow(10,a)).toFixed(e):0,a=0)):e=2,a&&(e??(e=2),t=o),de(e)&&e>=0&&(d.minimumFractionDigits=e,d.maximumFractionDigits=e),""===n&&(d.useGrouping=!1);let u=n||i,p=u?"en":this?.locale||l.locale||ae,g=JSON.stringify(d)+p;return r=(ye[g]??(ye[g]=new Intl.NumberFormat(p,d))).format(t),u&&(r=r.replace(/([,\.])/g,"_$1").replace(/_\,/g,n??",").replace("_.",i??".")),(e||0!=+r)&&(!(a<0)||c)||(r="0"),a&&0!=+r&&(r+="e"+(a<0?"":"+")+a),r}let we={dateFormat:function(t,e,i){return oe.dateFormat(t,e,i)},format:be,helpers:fe,numberFormat:ve};!function(t){let e;t.rendererTypes={},t.getRendererType=function(i=e){return t.rendererTypes[i]||t.rendererTypes[e]},t.registerRendererType=function(i,n,r){t.rendererTypes[i]=n,(!e||r)&&(e=i,k.Renderer=n)}}(n||(n={}));let ke=n,{clamp:Se,pick:Me,pushUnique:Ce,stableSort:Te}=q;(r||(r={})).distribute=function t(e,i,n){let r,s,o,a,l,h,c=e,d=c.reducedLen||i,u=(t,e)=>t.target-e.target,p=[],g=e.length,m=[],f=p.push,y=!0,x=0;for(r=g;r--;)x+=e[r].size;if(x>d){for(Te(e,(t,e)=>(e.rank||0)-(t.rank||0)),o=(h=e[0].rank===e[e.length-1].rank)?g/2:-1,s=h?o:g-1;o&&x>d;)a=e[r=Math.floor(s)],Ce(m,r)&&(x-=a.size),s+=o,h&&s>=e.length&&(o/=2,s=o);m.sort((t,e)=>e-t).forEach(t=>f.apply(p,e.splice(t,1)))}for(Te(e,u),e=e.map(t=>({size:t.size,targets:[t.target],align:Me(t.align,.5)}));y;){for(r=e.length;r--;)a=e[r],l=(Math.min.apply(0,a.targets)+Math.max.apply(0,a.targets))/2,a.pos=Se(l-a.size*a.align,0,i-a.size);for(r=e.length,y=!1;r--;)r>0&&e[r-1].pos+e[r-1].size>e[r].pos&&(e[r-1].size+=e[r].size,e[r-1].targets=e[r-1].targets.concat(e[r].targets),e[r-1].align=.5,e[r-1].pos+e[r-1].size>i&&(e[r-1].pos=i-e[r-1].size),e.splice(r,1),y=!0)}return f.apply(c,p),r=0,e.some(e=>{let s=0;return(e.targets||[]).some(()=>(c[r].pos=e.pos+s,void 0!==n&&Math.abs(c[r].pos-c[r].target)>n?(c.slice(0,r+1).forEach(t=>delete t.pos),c.reducedLen=(c.reducedLen||i)-.1*i,c.reducedLen>.1*i&&t(c,i,n),!0):(s+=c[r].size,r++,!1)))}),Te(c,u),c};let Ae=r,{animate:Ee,animObject:Pe,stop:Oe}=Xt,{deg2rad:Le,doc:Ne,svg:Ie,SVG_NS:De,win:Be,isFirefox:Re}=k,{addEvent:Fe,attr:ze,createElement:He,crisp:je,css:Ge,defined:We,erase:Ve,extend:Xe,fireEvent:Ue,getAlignFactor:Ye,isArray:qe,isFunction:$e,isNumber:_e,isObject:Ke,isString:Ze,merge:Je,objectEach:Qe,pick:ti,pInt:ei,pushUnique:ii,replaceNested:ni,syncTimeout:ri,uniqueKey:si}=q;class oi{_defaultGetter(t){let e=ti(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,n=this.element;return t&&(this.parentGroup=t),void 0!==this.textStr&&"text"===this.element.nodeName&&i.buildText(this),this.added=!0,(!t||t.handleZ||this.zIndex)&&(e=this.zIndexSetter()),e||(t?t.element:i.box).appendChild(n),this.onAdd&&this.onAdd(),this}addClass(t,e){let i=e?"":this.attr("class")||"";return(t=(t||"").split(/ /g).reduce(function(t,e){return-1===i.indexOf(e)&&t.push(e),t},i?[i]:[]).join(" "))!==i&&this.attr("class",t),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(t,e,i,n=!0){let r=this.renderer,s=r.alignedObjects,o=!!t;t?(this.alignOptions=t,this.alignByTranslate=e,this.alignTo=i):(t=this.alignOptions||{},e=this.alignByTranslate,i=this.alignTo);let a=!i||Ze(i)?i||"renderer":void 0;a&&(o&&ii(s,this),i=void 0);let l=ti(i,r[a],r),h=(l.x||0)+(t.x||0)+((l.width||0)-(t.width||0))*Ye(t.align),c=(l.y||0)+(t.y||0)+((l.height||0)-(t.height||0))*Ye(t.verticalAlign),d={"text-align":t?.align};return d[e?"translateX":"x"]=Math.round(h),d[e?"translateY":"y"]=Math.round(c),n&&(this[this.placed?"animate":"attr"](d),this.placed=!0),this.alignAttr=d,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 n=Pe(ti(e,this.renderer.globalAnimation,!0)),r=n.defer;return Ne.hidden&&(n.duration=0),0!==n.duration?(i&&(n.complete=i),ri(()=>{this.element&&Ee(this,t,n)},r)):(this.attr(t,void 0,i||n.complete),Qe(t,function(t,e){n.step&&n.step.call(this,t,{prop:e,pos:1,elem:this})},this)),this}applyTextOutline(t){let e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));let i=t.indexOf(" "),n=t.substring(i+1),r=t.substring(0,i);if(r&&"none"!==r&&k.svg){this.fakeTS=!0,r=r.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,i){return 2*Number(e)+i}),this.removeTextOutline();let t=Ne.createElementNS(De,"tspan");ze(t,{class:"highcharts-text-outline",fill:n,stroke:n,"stroke-width":r,"stroke-linejoin":"round"});let i=e.querySelector("textPath")||e;[].forEach.call(i.childNodes,e=>{let i=e.cloneNode(!0);i.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(t=>i.removeAttribute(t)),t.appendChild(i)});let s=0;[].forEach.call(i.querySelectorAll("text tspan"),t=>{s+=Number(t.getAttribute("dy"))});let o=Ne.createElementNS(De,"tspan");o.textContent="​",ze(o,{x:Number(e.getAttribute("x")),dy:-s}),t.appendChild(o),i.insertBefore(t,i.firstChild)}}attr(t,e,i,n){let r,s,o,{element:a}=this,l=oi.symbolCustomAttribs,h=this;return"string"==typeof t&&void 0!==e&&(r=t,(t={})[r]=e),"string"==typeof t?h=(this[t+"Getter"]||this._defaultGetter).call(this,t,a):(Qe(t,function(e,i){o=!1,n||Oe(this,i),this.symbolName&&-1!==l.indexOf(i)&&(s||(this.symbolAttr(t),s=!0),o=!0),this.rotation&&("x"===i||"y"===i)&&(this.doTransform=!0),o||(this[i+"Setter"]||this._defaultSetter).call(this,e,i,a)},this),this.afterSetters()),i&&i.call(this),h}clip(t){if(t&&!t.clipPath){let e=si()+"-",i=this.renderer.createElement("clipPath").attr({id:e}).add(this.renderer.defs);Xe(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,n=t.y||this.y||0,r=(t.width||this.width||0)+i,s=(t.height||this.height||0)+n,o=je(i,e),a=je(n,e);return Xe(t,{x:o,y:a,width:je(r,e)-o,height:je(s,e)-a}),We(t.strokeWidth)&&(t.strokeWidth=e),t}complexColor(t,e,i){let n,r,s,o,a,l,h,c,d,u,p,g=this.renderer,m=[];Ue(this.renderer,"complexColor",{args:arguments},function(){if(t.radialGradient?r="radialGradient":t.linearGradient&&(r="linearGradient"),r){if(s=t[r],a=g.gradients,l=t.stops,d=i.radialReference,qe(s)&&(t[r]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===r&&d&&!We(s.gradientUnits)&&(o=s,s=Je(s,g.getRadialAttr(d,o),{gradientUnits:"userSpaceOnUse"})),Qe(s,function(t,e){"id"!==e&&m.push(e,t)}),Qe(l,function(t){m.push(t)}),a[m=m.join(",")])u=a[m].attr("id");else{s.id=u=si();let t=a[m]=g.createElement(r).attr(s).add(g.defs);t.radAttr=o,t.stops=[],l.forEach(function(e){0===e[1].indexOf("rgba")?(h=(n=Et.parse(e[1])).get("rgb"),c=n.get("a")):(h=e[1],c=1);let i=g.createElement("stop").attr({offset:e[0],"stop-color":h,"stop-opacity":c}).add(t);t.stops.push(i)})}p="url("+g.url+"#"+u+")",i.setAttribute(e,p),i.gradient=m,t.toString=function(){return p}}})}css(t){let e,i=this.styles,n={},r=this.element,s=!i;if(i&&Qe(t,function(t,e){i&&i[e]!==t&&(n[e]=t,s=!0)}),s){i&&(t=Xe(i,n)),null===t.width||"auto"===t.width?delete this.textWidth:"text"===r.nodeName.toLowerCase()&&t.width&&(e=this.textWidth=ei(t.width)),Xe(this.styles,t),e&&!Ie&&this.renderer.forExport&&delete t.width;let s=Re&&t.fontSize||null;s&&(_e(s)||/^\d+$/.test(s))&&(t.fontSize+="px");let o=Je(t);r.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach(t=>o&&delete o[t]),o.color&&(o.fill=o.color,delete o.color)),Ge(r,o)}return this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t.textOutline&&this.applyTextOutline(t.textOutline)),this}dashstyleSetter(t){let e,i=this["stroke-width"];if("inherit"===i&&(i=1),t){let n=(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=n.length;e--;)n[e]=""+ei(n[e])*ti(i,NaN);t=n.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}}destroy(){let t,e,i=this,n=i.element||{},r=i.renderer,s=n.ownerSVGElement,o="SPAN"===n.nodeName&&i.parentGroup||void 0;if(n.onclick=n.onmouseout=n.onmouseover=n.onmousemove=n.point=null,Oe(i),i.clipPath&&s){let t=i.clipPath;[].forEach.call(s.querySelectorAll("[clip-path],[CLIP-PATH]"),function(e){e.getAttribute("clip-path").indexOf(t.element.id)>-1&&e.removeAttribute("clip-path")}),i.clipPath=t.destroy()}if(i.stops){for(e=0;e<i.stops.length;e++)i.stops[e].destroy();i.stops.length=0,i.stops=void 0}for(i.safeRemoveChild(n);o?.div&&0===o.div.childNodes.length;)t=o.parentGroup,i.safeRemoveChild(o.div),delete o.div,o=t;i.alignOptions&&Ve(r.alignedObjects,i),Qe(i,(t,e)=>{(i[e]?.parentGroup===i||-1!==["connector","foreignObject"].indexOf(e))&&i[e]?.destroy?.(),delete i[e]})}dSetter(t,e,i){qe(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce((t,e,i)=>e?.join?(i?t+" ":"")+e.join(" "):(e||"").toString(),"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(i.setAttribute(e,t),this[e]=t)}fillSetter(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)}hrefSetter(t,e,i){i.setAttributeNS("http://www.w3.org/1999/xlink",e,t)}getBBox(t,e){let i,n,r,s,{alignValue:o,element:a,renderer:l,styles:h,textStr:c}=this,{cache:d,cacheKeys:u}=l,p=a.namespaceURI===this.SVG_NS,g=ti(e,this.rotation,0),m=l.styledMode?a&&oi.prototype.getStyle.call(a,"font-size"):h.fontSize;if(We(c)&&(-1===(s=c.toString()).indexOf("<")&&(s=s.replace(/\d/g,"0")),s+=["",l.rootFontSize,m,g,this.textWidth,o,h.lineClamp,h.textOverflow,h.fontWeight].join(",")),s&&!t&&(i=d[s]),!i||i.polygon){if(p||l.forExport){try{r=this.fakeTS&&function(t){let e=a.querySelector(".highcharts-text-outline");e&&Ge(e,{display:t})},$e(r)&&r("none"),i=a.getBBox?Xe({},a.getBBox()):{width:a.offsetWidth,height:a.offsetHeight,x:0,y:0},$e(r)&&r("")}catch{}(!i||i.width<0)&&(i={x:0,y:0,width:0,height:0})}else i=this.htmlGetBBox();n=i.height,p&&(i.height=n={"11px,17":14,"13px,20":16}[`${m||""},${Math.round(n)}`]||n),g&&(i=this.getRotatedBox(i,g));let t={bBox:i};Ue(this,"afterGetBBox",t),i=t.bBox}if(s&&(""===c||i.height>0)){for(;u.length>250;)delete d[u.shift()];d[s]||u.push(s),d[s]=i}return i}getRotatedBox(t,e){let{x:i,y:n,width:r,height:s}=t,{alignValue:o,translateY:a,rotationOriginX:l=0,rotationOriginY:h=0}=this,c=Ye(o),d=Number(this.element.getAttribute("y")||0)-(a?0:n),u=e*Le,p=(e-90)*Le,g=Math.cos(u),m=Math.sin(u),f=r*g,y=r*m,x=Math.cos(p),b=Math.sin(p),[[v,w],[k,S]]=[l,h].map(t=>[t-t*g,t*m]),M=i+c*(r-f)+v+S+d*x,C=M+f,T=C-s*x,A=T-f,E=n+d-c*y-w+k+d*b,P=E+y,O=P-s*b,L=O-y,N=Math.min(M,C,T,A),I=Math.min(E,P,O,L);return{x:N,y:I,width:Math.max(M,C,T,A)-N,height:Math.max(E,P,O,L)-I,polygon:[[M,E],[C,P],[T,O],[A,L]]}}getStyle(t){return Be.getComputedStyle(this.element||this,"").getPropertyValue(t)}hasClass(t){return-1!==(""+this.attr("class")).split(" ").indexOf(t)}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(t,e){this.onEvents={},this.opacity=1,this.SVG_NS=De,this.element="span"===e||"body"===e?He(e):Ne.createElementNS(this.SVG_NS,e),this.renderer=t,this.styles={},Ue(this,"afterInit")}on(t,e){let{onEvents:i}=this;return i[t]&&i[t](),i[t]=Fe(this.element,t,e),this}opacitySetter(t,e,i){let n=Number(Number(t).toFixed(3));this.opacity=n,i.setAttribute(e,n)}reAlign(){this.alignOptions?.width&&"left"!==this.alignOptions.align&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(t){return this.attr("class",(""+this.attr("class")).replace(Ze(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=Je(90===this.parentGroup?.rotation?{offsetX:-1,offsetY:-1}:{},Ke(t)?t:{}),n=e.shadowDefinition(i);return this.attr({filter:t?`url(${e.url}#${n})`:"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,e=this.getStyle("stroke-width"),i=0;return/px$/.test(e)?i=ei(e):""!==e&&(ze(t=Ne.createElementNS(De,"rect"),{width:e,"stroke-width":0}),this.element.parentNode.appendChild(t),i=t.getBBox().width,t.parentNode.removeChild(t)),i}symbolAttr(t){let e=this;oi.symbolCustomAttribs.forEach(function(i){e[i]=ti(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]||Ne.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=ni(ti(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:n,padding:r,rotation:s=0,rotationOriginX:o,rotationOriginY:a,scaleX:l,scaleY:h,text:c,translateX:d=0,translateY:u=0}=this,p=["translate("+d+","+u+")"];We(n)&&p.push("matrix("+n.join(",")+")"),s&&(p.push("rotate("+s+" "+(o??e.getAttribute("x")??this.x??0)+" "+(a??e.getAttribute("y")??this.y??0)+")"),"SPAN"!==c?.element.tagName||c?.foreignObject||c.attr({rotation:s,rotationOriginX:(o||0)-r,rotationOriginY:(a||0)-r})),(We(l)||We(h))&&p.push("scale("+ti(l,1)+" "+ti(h,1)+")"),p.length&&!(c||this).textPath&&(i?.element||e).setAttribute(t,p.join(" "))}visibilitySetter(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t}xGetter(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)}zIndexSetter(t,e){let i,n,r,s,o,a=this.renderer,l=this.parentGroup,h=(l||a).element||a.box,c=this.element,d=h===a.box,u=!1,p=this.added;if(We(t)?(c.setAttribute("data-z-index",t),this[e]===(t*=1)&&(p=!1)):We(this[e])&&c.removeAttribute("data-z-index"),this[e]=t,p){for((t=this.zIndex)&&l&&(l.handleZ=!0),o=(i=h.childNodes).length-1;o>=0&&!u;o--)s=!We(r=(n=i[o]).getAttribute("data-z-index")),n!==c&&(t<0&&s&&!d&&!o?(h.insertBefore(c,i[o]),u=!0):(ei(r)<=t||s&&(!We(t)||t>=0))&&(h.insertBefore(c,i[o+1]),u=!0));u||(h.insertBefore(c,i[3*!!d]),u=!0)}return u}}oi.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],oi.prototype.strokeSetter=oi.prototype.fillSetter,oi.prototype.yGetter=oi.prototype.xGetter,oi.prototype.matrixSetter=oi.prototype.rotationOriginXSetter=oi.prototype.rotationOriginYSetter=oi.prototype.rotationSetter=oi.prototype.scaleXSetter=oi.prototype.scaleYSetter=oi.prototype.translateXSetter=oi.prototype.translateYSetter=oi.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0};let ai=oi,{defined:li,extend:hi,getAlignFactor:ci,isNumber:di,merge:ui,pick:pi,removeEvent:gi}=q;class mi extends ai{constructor(t,e,i,n,r,s,o,a,l,h){let c;super(t,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=e,this.x=i,this.y=n,this.anchorX=s,this.anchorY=o,this.baseline=l,this.className=h,this.addClass("button"===h?"highcharts-no-tooltip":"highcharts-label"),h&&this.addClass("highcharts-"+h),this.text=t.text(void 0,0,0,a).attr({zIndex:1}),"string"==typeof r&&((c=/^url\((.*?)\)$/.test(r))||this.renderer.symbols[r])&&(this.symbolKey=r),this.bBox=mi.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=t.styledMode||c,this.deferredAttr={},this.alignFactor=0}alignSetter(t){let e=ci(t);this.textAlign=t,e!==this.alignFactor&&(this.alignFactor=e,this.bBox&&di(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=ui(t),mi.textProps.forEach(i=>{void 0!==t[i]&&(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 ai.prototype.css.call(this,t)}destroy(){gi(this.element,"mouseenter"),gi(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),ai.prototype.destroy.call(this)}fillSetter(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)}getBBox(t,e){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();let{padding:i,height:n=0,translateX:r=0,translateY:s=0,width:o=0}=this,a=pi(this.paddingLeft,i),l=e??(this.rotation||0),h={width:o,height:n,x:r+this.bBox.x-a,y:s+this.bBox.y-i+this.baselineOffset};return l&&(h=this.getRotatedBox(h,l)),h}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:pi(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&li(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(t,e){di(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){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let t,e=this.text,i={},n=this.padding,r=this.bBox=di(this.widthSetting)&&di(this.heightSetting)&&!this.textAlign||!li(e.textStr)?mi.emptyBBox:e.getBBox(void 0,0);this.width=this.getPaddedWidth(),this.height=(this.heightSetting||r.height||0)+2*n;let s=this.renderer.fontMetrics(e);if(this.baselineOffset=n+Math.min((this.text.firstLineMetrics||s).b,r.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-s.h)/2),this.needsBox&&!e.textPath){if(!this.box){let t=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();t.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),t.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(hi(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,n=(this.paddingLeft??this.padding)+ci(e)*(this.widthSetting??this.bBox.width);(n!==t.x||i!==t.y)&&(t.attr({align:e,x:n}),void 0!==i&&t.attr("y",i)),t.x=n,t.y=i}}widthSetter(t){this.widthSetting=di(t)?t:void 0,this.doUpdate=!0}getPaddedWidth(){let t=this.padding,e=pi(this.paddingLeft,t),i=pi(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.anchorX&&(this["forceAnimate:anchorX"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)}ySetter(t){this.anchorY&&(this["forceAnimate:anchorY"]=!0),this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)}}mi.emptyBBox={width:0,height:0,x:0,y:0},mi.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineClamp","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"];let{defined:fi,isNumber:yi,pick:xi}=q;function bi(t,e,i,n,r){let s=[];if(r){let o=r.start||0,a=r.end||0,l=xi(r.r,i),h=xi(r.r,n||i),c=2e-4/(r.borderRadius?1:Math.max(l,1)),d=Math.abs(a-o-2*Math.PI)<c;d&&(o=Math.PI/2,a=2.5*Math.PI-c);let u=r.innerR,p=xi(r.open,d),g=Math.cos(o),m=Math.sin(o),f=Math.cos(a),y=Math.sin(a),x=xi(r.longArc,a-o-Math.PI<c?0:1),b=["A",l,h,0,x,xi(r.clockwise,1),t+l*f,e+h*y];b.params={start:o,end:a,cx:t,cy:e},s.push(["M",t+l*g,e+h*m],b),fi(u)&&((b=["A",u,u,0,x,fi(r.clockwise)?1-r.clockwise:0,t+u*g,e+u*m]).params={start:a,end:o,cx:t,cy:e},s.push(p?["M",t+u*f,e+u*y]:["L",t+u*f,e+u*y],b)),p||s.push(["Z"])}return s}function vi(t,e,i,n,r){return r?.r?wi(t,e,i,n,r):[["M",t,e],["L",t+i,e],["L",t+i,e+n],["L",t,e+n],["Z"]]}function wi(t,e,i,n,r){let s=r?.r||0;return[["M",t+s,e],["L",t+i-s,e],["A",s,s,0,0,1,t+i,e+s],["L",t+i,e+n-s],["A",s,s,0,0,1,t+i-s,e+n],["L",t+s,e+n],["A",s,s,0,0,1,t,e+n-s],["L",t,e+s],["A",s,s,0,0,1,t+s,e],["Z"]]}let ki={arc:bi,callout:function(t,e,i,n,r){let s=Math.min(r?.r||0,i,n),o=s+6,a=r?.anchorX,l=r?.anchorY||0,h=wi(t,e,i,n,{r:s});if(!yi(a)||a<i&&a>0&&l<n&&l>0)return h;if(t+a>i-o)if(l>e+o&&l<e+n-o)h.splice(3,1,["L",t+i,l-6],["L",t+i+6,l],["L",t+i,l+6],["L",t+i,e+n-s]);else if(a<i){let r=l<e+o;h.splice(r?2:5,0,["L",a,l],["L",t+i-s,r?e:e+n])}else h.splice(3,1,["L",t+i,n/2],["L",a,l],["L",t+i,n/2],["L",t+i,e+n-s]);else if(t+a<o)if(l>e+o&&l<e+n-o)h.splice(7,1,["L",t,l+6],["L",t-6,l],["L",t,l-6],["L",t,e+s]);else if(a>0){let i=l<e+o;h.splice(i?1:6,0,["L",a,l],["L",t+s,i?e:e+n])}else h.splice(7,1,["L",t,n/2],["L",a,l],["L",t,n/2],["L",t,e+s]);else l>n&&a<i-o?h.splice(5,1,["L",a+6,e+n],["L",a,e+n+6],["L",a-6,e+n],["L",t+s,e+n]):l<0&&a>o&&h.splice(1,1,["L",a-6,e],["L",a,e-6],["L",a+6,e],["L",i-s,e]);return h},circle:function(t,e,i,n){return bi(t+i/2,e+n/2,i/2,n/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(t,e,i,n){return[["M",t+i/2,e],["L",t+i,e+n/2],["L",t+i/2,e+n],["L",t,e+n/2],["Z"]]},rect:vi,roundedRect:wi,square:vi,triangle:function(t,e,i,n){return[["M",t+i/2,e],["L",t+i,e+n],["L",t,e+n],["Z"]]},"triangle-down":function(t,e,i,n){return[["M",t,e],["L",t+i,e],["L",t+i/2,e+n],["Z"]]}},{doc:Si,SVG_NS:Mi,win:Ci}=k,{attr:Ti,extend:Ai,fireEvent:Ei,isString:Pi,objectEach:Oi,pick:Li}=q,Ni=(t,e)=>t.substring(0,e)+"…",Ii=class{constructor(t){let e=t.styles;this.renderer=t.renderer,this.svgElement=t,this.width=t.textWidth,this.textLineHeight=e?.lineHeight,this.textOutline=e?.textOutline,this.ellipsis="ellipsis"===e?.textOverflow,this.lineClamp=e?.lineClamp,this.noWrap="nowrap"===e?.whiteSpace}buildSVG(){let t=this.svgElement,e=t.element,i=t.renderer,n=Li(t.textStr,"").toString(),r=-1!==n.indexOf("<"),s=e.childNodes,o=!t.added&&i.box,a=[n,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,t.getStyle("font-size"),t.styles.lineClamp,this.width].join(",");if(a!==t.textCache){t.textCache=a,delete t.actualWidth;for(let t=s.length;t--;)e.removeChild(s[t]);if(r||this.ellipsis||this.width||t.textPath||-1!==n.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(n))){if(""!==n){o&&o.appendChild(e);let i=new re(n);this.modifyTree(i.nodes),i.addToDOM(e),this.modifyDOM(),this.ellipsis&&-1!==(e.textContent||"").indexOf("…")&&t.attr("title",this.unescapeEntities(t.textStr||"",["&lt;","&gt;"])),o&&o.removeChild(e)}}else e.appendChild(Si.createTextNode(this.unescapeEntities(n)));Pi(this.textOutline)&&t.applyTextOutline&&t.applyTextOutline(this.textOutline)}}modifyDOM(){let t,e=this.svgElement,i=Ti(e.element,"x");for(e.firstLineMetrics=void 0;(t=e.element.firstChild)&&/^[\s\u200B]*$/.test(t.textContent||" ");)e.element.removeChild(t);[].forEach.call(e.element.querySelectorAll("tspan.highcharts-br"),(t,n)=>{t.nextSibling&&t.previousSibling&&(0===n&&1===t.previousSibling.nodeType&&(e.firstLineMetrics=e.renderer.fontMetrics(t.previousSibling)),Ti(t,{dy:this.getLineHeight(t.nextSibling),x:i}))});let n=this.width||0;if(!n)return;let r=(t,r)=>{let s=t.textContent||"",o=s.replace(/([^\^])-/g,"$1- ").split(" "),a=!this.noWrap&&(o.length>1||e.element.childNodes.length>1),l=this.getLineHeight(r),h=Math.max(0,n-.8*l),c=0,d=e.actualWidth;if(a){let s=[],a=[];for(;r.firstChild&&r.firstChild!==t;)a.push(r.firstChild),r.removeChild(r.firstChild);for(;o.length;)if(o.length&&!this.noWrap&&c>0&&(s.push(t.textContent||""),t.textContent=o.join(" ").replace(/- /g,"-")),this.truncate(t,void 0,o,0===c&&d||0,n,h,(t,e)=>o.slice(0,e).join(" ").replace(/- /g,"-")),d=e.actualWidth,c++,this.lineClamp&&c>=this.lineClamp){o.length&&(this.truncate(t,t.textContent||"",void 0,0,n,h,Ni),t.textContent=t.textContent?.replace("…","")+"…");break}a.forEach(e=>{r.insertBefore(e,t)}),s.forEach(e=>{r.insertBefore(Si.createTextNode(e),t);let n=Si.createElementNS(Mi,"tspan");n.textContent="​",Ti(n,{dy:l,x:i}),r.insertBefore(n,t)})}else this.ellipsis&&s&&this.truncate(t,s,void 0,0,n,h,Ni)},s=t=>{[].slice.call(t.childNodes).forEach(i=>{i.nodeType===Ci.Node.TEXT_NODE?r(i,t):(-1!==i.className.baseVal.indexOf("highcharts-br")&&(e.actualWidth=0),s(i))})};s(e.element)}getLineHeight(t){let e=t.nodeType===Ci.Node.TEXT_NODE?t.parentElement:t;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e||this.svgElement.element).h}modifyTree(t){let e=(i,n)=>{let{attributes:r={},children:s,style:o={},tagName:a}=i,l=this.renderer.styledMode;if("b"===a||"strong"===a?l?r.class="highcharts-strong":o.fontWeight="bold":("i"===a||"em"===a)&&(l?r.class="highcharts-emphasized":o.fontStyle="italic"),o?.color&&(o.fill=o.color),"br"===a){r.class="highcharts-br",i.textContent="​";let e=t[n+1];e?.textContent&&(e.textContent=e.textContent.replace(/^ +/gm,""))}else"a"===a&&s&&s.some(t=>"#text"===t.tagName)&&(i.children=[{children:s,tagName:"tspan"}]);"#text"!==a&&"a"!==a&&(i.tagName="tspan"),Ai(i,{attributes:r,style:o}),s&&s.filter(t=>"#text"!==t.tagName).forEach(e)};t.forEach(e),Ei(this.svgElement,"afterModifyTree",{nodes:t})}truncate(t,e,i,n,r,s,o){let a,l,h=this.svgElement,{rotation:c}=h,d=[],u=i&&!n?1:0,p=(e||i||"").length,g=p;i||(r=s);let m=function(e,r){let s=r||e,o=t.parentNode;if(o&&void 0===d[s]&&o.getSubStringLength)try{d[s]=n+o.getSubStringLength(0,i?s+1:s)}catch{}return d[s]};if(h.rotation=0,n+(l=m(t.textContent.length))>r){for(;u<=p;)g=Math.ceil((u+p)/2),i&&(a=o(i,g)),l=m(g,a&&a.length-1),u===p?u=p+1:l>r?p=g-1:u=g;0===p?t.textContent="":e&&p===e.length-1||(t.textContent=a||o(e||i,g)),this.ellipsis&&l>r&&this.truncate(t,t.textContent||"",void 0,0,r,s,Ni)}i&&i.splice(0,g),h.actualWidth=l,h.rotation=c}unescapeEntities(t,e){return Oi(this.renderer.escapes,function(i,n){e&&-1!==e.indexOf(i)||(t=t.toString().replace(RegExp(i,"g"),n))}),t}},{defaultOptions:Di}=bt,{charts:Bi,deg2rad:Ri,doc:Fi,isFirefox:zi,isMS:Hi,isWebKit:ji,noop:Gi,SVG_NS:Wi,symbolSizes:Vi,win:Xi}=k,{addEvent:Ui,attr:Yi,createElement:qi,crisp:$i,css:_i,defined:Ki,destroyObjectProperties:Zi,extend:Ji,isArray:Qi,isNumber:tn,isObject:en,isString:nn,merge:rn,pick:sn,pInt:on,replaceNested:an,uniqueKey:ln}=q;class hn{constructor(t,e,i,n,r,s,o){let a,l;this.x=0,this.y=0;let h=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),c=h.element;o||h.css(this.getStyle(n||{})),t.appendChild(c),Yi(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&Yi(c,"xmlns",this.SVG_NS),this.box=c,this.boxWrapper=h,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(Fi.createTextNode("Created with Highcharts 12.4.0")),this.defs=this.createElement("defs").add(),this.allowHTML=s,this.forExport=r,this.styledMode=o,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=h.getStyle("font-size"),this.setSize(e,i,!1),zi&&t.getBoundingClientRect&&((a=function(){_i(t,{left:0,top:0}),l=t.getBoundingClientRect(),_i(t,{left:Math.ceil(l.left)-l.left+"px",top:Math.ceil(l.top)-l.top+"px"})})(),this.unSubPixelFix=Ui(Xi,"resize",a))}definition(t){return new re([t]).addToDOM(this.defs.element)}getReferenceURL(){if((zi||ji)&&Fi.getElementsByTagName("base").length){if(!Ki(e)){let t=ln(),i=new re([{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(Fi.body);_i(i,{position:"fixed",top:0,left:0,zIndex:9e5});let n=Fi.elementFromPoint(6,6);e="hitme"===n?.id,Fi.body.removeChild(i)}if(e)return an(Xi.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(t){return this.style=Ji({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(),Zi(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(e=>`${e}-${t[e]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),i=rn({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 Ii(t).buildSVG()}getContrast(t){if("transparent"===t)return"#000000";let e=Et.parse(t).rgba,i=" clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1)";if(tn(e[0])||!Et.useColorMix){let t=e.map(t=>{let e=t/255;return e<=.04?e/12.92:Math.pow((e+.055)/1.055,2.4)}),i=.2126*t[0]+.7152*t[1]+.0722*t[2];return 1.05/(i+.05)>(i+.05)/.05?"#FFFFFF":"#000000"}return"color(from "+t+" srgb"+i+i+i+")"}button(t,e,i,n,r={},s,o,a,l,h){let c=this.label(t,e,i,l,void 0,void 0,h,void 0,"button"),d=this.styledMode,u=arguments,p=0;r=rn(Di.global.buttonTheme,r),d&&(delete r.fill,delete r.stroke,delete r["stroke-width"]);let g=r.states||{},m=r.style||{};delete r.states,delete r.style;let f=[re.filterUserAttributes(r)],y=[m];return d||["hover","select","disabled"].forEach((t,e)=>{f.push(rn(f[0],re.filterUserAttributes(u[e+5]||g[t]||{}))),y.push(f[e+1].style),delete f[e+1].style}),Ui(c.element,Hi?"mouseover":"mouseenter",function(){3!==p&&c.setState(1)}),Ui(c.element,Hi?"mouseout":"mouseleave",function(){3!==p&&c.setState(p)}),c.setState=(t=0)=>{if(1!==t&&(c.state=p=t),c.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t]),!d){c.attr(f[t]);let e=y[t];en(e)&&c.css(e)}},c.attr(f[0]),!d&&(c.css(Ji({cursor:"default"},m)),h&&c.text.css({pointerEvents:"none"})),c.on("touchstart",t=>t.stopPropagation()).on("click",function(t){3!==p&&n?.call(c,t)})}crispLine(t,e){let[i,n]=t;return Ki(i[1])&&i[1]===n[1]&&(i[1]=n[1]=$i(i[1],e)),Ki(i[2])&&i[2]===n[2]&&(i[2]=n[2]=$i(i[2],e)),t}path(t){let e=this.styledMode?{}:{fill:"none"};return Qi(t)?e.d=t:en(t)&&Ji(e,t),this.createElement("path").attr(e)}circle(t,e,i){let n=en(t)?t:void 0===t?{}:{x:t,y:e,r:i},r=this.createElement("circle");return r.xSetter=r.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},r.attr(n)}arc(t,e,i,n,r,s){let o;en(t)?(e=(o=t).y,i=o.r,n=o.innerR,r=o.start,s=o.end,t=o.x):o={innerR:n,start:r,end:s};let a=this.symbol("arc",t,e,i,i,o);return a.r=i,a}rect(t,e,i,n,r,s){let o=en(t)?t:void 0===t?{}:{x:t,y:e,r:r,width:Math.max(i||0,0),height:Math.max(n||0,0)},a=this.createElement("rect");return this.styledMode||(void 0!==s&&(o["stroke-width"]=s,Ji(o,a.crisp(o))),o.fill="none"),a.rSetter=function(t,e,i){a.r=t,Yi(i,{rx:t,ry:t})},a.rGetter=function(){return a.r||0},a.attr(o)}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:sn(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,n,r,s){let o={preserveAspectRatio:"none"};tn(e)&&(o.x=e),tn(i)&&(o.y=i),tn(n)&&(o.width=n),tn(r)&&(o.height=r);let a=this.createElement("image").attr(o),l=function(e){a.attr({href:t}),s.call(a,e)};if(s){a.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let e=new Xi.Image;Ui(e,"load",l),e.src=t,e.complete&&l({})}else a.attr({href:t});return a}symbol(t,e,i,n,r,s){let o,a,l,h,c=this,d=/^url\((.*?)\)$/,u=d.test(t),p=!u&&(this.symbols[t]?t:"circle"),g=p&&this.symbols[p];if(g)"number"==typeof e&&(a=g.call(this.symbols,e||0,i||0,n||0,r||0,s)),o=this.path(a),c.styledMode||o.attr("fill","none"),Ji(o,{symbolName:p||void 0,x:e,y:i,width:n,height:r}),s&&Ji(o,s);else if(u){l=t.match(d)[1];let n=o=this.image(l);n.imgwidth=sn(s?.width,Vi[l]?.width),n.imgheight=sn(s?.height,Vi[l]?.height),h=t=>t.attr({width:t.width,height:t.height}),["width","height"].forEach(t=>{n[`${t}Setter`]=function(t,e){this[e]=t;let{alignByTranslate:i,element:n,width:r,height:o,imgwidth:a,imgheight:l}=this,h="width"===e?a:l,c=1;s&&"within"===s.backgroundSize&&r&&o&&a&&l?(c=Math.min(r/a,o/l),Yi(n,{width:Math.round(a*c),height:Math.round(l*c)})):n&&h&&n.setAttribute(e,h),!i&&a&&l&&this.translate(((r||0)-a*c)/2,((o||0)-l*c)/2)}}),Ki(e)&&n.attr({x:e,y:i}),n.isImg=!0,n.symbolUrl=t,Ki(n.imgwidth)&&Ki(n.imgheight)?h(n):(n.attr({width:0,height:0}),qi("img",{onload:function(){let t=Bi[c.chartIndex];0===this.width&&(_i(this,{position:"absolute",top:"-999em"}),Fi.body.appendChild(this)),Vi[l]={width:this.width,height:this.height},n.imgwidth=this.width,n.imgheight=this.height,n.element&&h(n),this.parentNode&&this.parentNode.removeChild(this),c.imgCount--,c.imgCount||!t||t.hasLoaded||t.onload()},src:l}),this.imgCount++)}return o}clipRect(t,e,i,n){return this.rect(t,e,i,n,0)}text(t,e,i,n){let r={};if(n&&(this.allowHTML||!this.forExport))return this.html(t,e,i);r.x=Math.round(e||0),i&&(r.y=Math.round(i)),Ki(t)&&(r.text=t);let s=this.createElement("text").attr(r);return n&&(!this.forExport||this.allowHTML)||(s.xSetter=function(t,e,i){let n=i.getElementsByTagName("tspan"),r=i.getAttribute(e);for(let i,s=0;s<n.length;s++)(i=n[s]).getAttribute(e)===r&&i.setAttribute(e,t);i.setAttribute(e,t)}),s}fontMetrics(t){let e=tn(t)?t:on(ai.prototype.getStyle.call(t,"font-size")||0),i=e<24?e+3:Math.round(1.2*e);return{h:i,b:Math.round(.8*i),f:e}}rotCorr(t,e,i){let n=t;return e&&i&&(n=Math.max(n*Math.cos(e*Ri),4)),{x:-t/3*Math.sin(e*Ri),y:n}}pathToSegments(t){let e=[],i=[],n={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let r=0;r<t.length;r++)nn(i[0])&&tn(t[r])&&i.length===n[i[0].toUpperCase()]&&t.splice(r,0,i[0].replace("M","L").replace("m","l")),"string"==typeof t[r]&&(i.length&&e.push(i.slice(0)),i.length=0),i.push(t[r]);return e.push(i.slice(0)),e}label(t,e,i,n,r,s,o,a,l){return new mi(this,t,e,i,n,r,s,o,a,l)}alignElements(){this.alignedObjects.forEach(t=>t.align())}}Ji(hn.prototype,{Element:ai,SVG_NS:Wi,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:ki,draw:Gi}),ke.registerRendererType("svg",hn,!0);let{composed:cn,isFirefox:dn}=k,{attr:un,css:pn,createElement:gn,defined:mn,extend:fn,getAlignFactor:yn,isNumber:xn,pInt:bn,pushUnique:vn}=q;function wn(t,e,i){let n=this.div?.style;ai.prototype[`${e}Setter`].call(this,t,e,i),n&&(i.style[e]=n[e]=t)}let kn=(t,e)=>{if(!t.div){let i=un(t.element,"class"),n=t.css,r=gn("div",i?{className:i}:void 0,{position:"absolute",left:`${t.translateX||0}px`,top:`${t.translateY||0}px`,...t.styles,display:t.display,opacity:t.opacity,visibility:t.visibility},t.parentGroup?.div||e);t.classSetter=(t,e,i)=>{i.setAttribute("class",t),r.className=t},t.translateXSetter=t.translateYSetter=(e,i)=>{t[i]=e,r.style["translateX"===i?"left":"top"]=`${e}px`,t.doTransform=!0},t.scaleXSetter=t.scaleYSetter=(e,i)=>{t[i]=e,t.doTransform=!0},t.opacitySetter=t.visibilitySetter=wn,t.css=e=>(n.call(t,e),e.cursor&&(r.style.cursor=e.cursor),e.pointerEvents&&(r.style.pointerEvents=e.pointerEvents),t),t.on=function(){return ai.prototype.on.apply({element:r,onEvents:t.onEvents},arguments),t},t.div=r}return t.div};class Sn extends ai{static compose(t){vn(cn,this.compose)&&(t.prototype.html=function(t,e,i){return new Sn(this,"span").attr({text:t,x:Math.round(e),y:Math.round(i)})})}constructor(t,e){super(t,e),Sn.useForeignObject?this.foreignObject=t.createElement("foreignObject").attr({zIndex:2}):this.css({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,n="SPAN"===i.tagName&&t&&"width"in t,r=n&&t.width;return n&&(delete t.width,this.textWidth=bn(r)||void 0,e=!0),"ellipsis"===t?.textOverflow&&(t.overflow="hidden",t.whiteSpace="nowrap"),t?.lineClamp&&(t.display="-webkit-box",t.WebkitLineClamp=t.lineClamp,t.WebkitBoxOrient="vertical",t.overflow="hidden"),xn(Number(t?.fontSize))&&(t.fontSize+="px"),fn(this.styles,t),pn(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)return void(this.alignOnAdd=!0);let{element:t,foreignObject:e,oldTextWidth:i,renderer:n,rotation:r,rotationOriginX:s,rotationOriginY:o,scaleX:a,scaleY:l,styles:{display:h="inline-block",whiteSpace:c},textAlign:d="left",textWidth:u,translateX:p=0,translateY:g=0,x:m=0,y:f=0}=this;if(e||pn(t,{marginLeft:`${p}px`,marginTop:`${g}px`}),"SPAN"===t.tagName){let p,g=[r,d,t.innerHTML,u,this.textAlign].join(","),y=-1*this.parentGroup?.padding||0;if(u!==i){let e=this.textPxLength?this.textPxLength:(pn(t,{width:"",whiteSpace:c||"nowrap"}),t.offsetWidth),s=u||0,o=!n.styledMode&&""===t.style.textOverflow&&t.style.webkitLineClamp;(s>i||e>s||o)&&(/[\-\s\u00AD]/.test(t.textContent||t.innerText)||"ellipsis"===t.style.textOverflow)&&(pn(t,{width:(r||a||e>s||o)&&xn(u)?u+"px":"auto",display:h,whiteSpace:c||"normal"}),this.oldTextWidth=u)}e&&(pn(t,{display:"inline-block",verticalAlign:"top"}),e.attr({width:n.width,height:n.height})),g!==this.cTT&&(p=n.fontMetrics(t).b,mn(r)&&!e&&(r!==(this.oldRotation||0)||d!==this.oldAlign)&&pn(t,{transform:`rotate(${r}deg)`,transformOrigin:`${y}% ${y}px`}),this.getSpanCorrection(!mn(r)&&!this.textWidth&&this.textPxLength||t.offsetWidth,p,yn(d)));let{xCorr:x=0,yCorr:b=0}=this,v={left:`${m+x}px`,top:`${f+b}px`,textAlign:d,transformOrigin:`${(s??m)-x-m-y}px ${(o??f)-b-f-y}px`};(a||l)&&(v.transform=`scale(${a??1},${l??1})`),e?(super.updateTransform(),xn(m)&&xn(f)?(e.attr({x:m+x,y:f+b,width:t.offsetWidth+3,height:t.offsetHeight,"transform-origin":t.getAttribute("transform-origin")||"0 0"}),pn(t,{display:h,textAlign:d})):dn&&e.attr({width:0,height:0})):pn(t,v),this.cTT=g,this.oldRotation=r,this.oldAlign=d}}add(t){let{foreignObject:e,renderer:i}=this,n=i.box.parentNode,r=[];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 e;if(this.parentGroup=t,t&&!(e=t.div)){let i=t;for(;i;)r.push(i),i=i.parentGroup;for(let t of r.reverse())e=kn(t,n)}(e||n).appendChild(this.element)}return this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(t){t!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,re.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 Mn=Sn.prototype;Mn.visibilitySetter=Mn.opacitySetter=wn,Mn.ySetter=Mn.rotationSetter=Mn.rotationOriginXSetter=Mn.rotationOriginYSetter=Mn.xSetter,function(t){t.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"},t.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}}(s||(s={}));let Cn=s,{addEvent:Tn,isFunction:An,objectEach:En,removeEvent:Pn}=q;(o||(o={})).registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},En(e.events,function(e,i){t.eventOptions[i]!==e&&(t.eventOptions[i]&&(Pn(t,i,t.eventOptions[i]),delete t.eventOptions[i]),An(e)&&(t.eventOptions[i]=e,Tn(t,i,e,{order:0})))})};let On=o,{deg2rad:Ln}=k,{clamp:Nn,correctFloat:In,defined:Dn,destroyObjectProperties:Bn,extend:Rn,fireEvent:Fn,getAlignFactor:zn,isNumber:Hn,merge:jn,objectEach:Gn,pick:Wn}=q,Vn=class{constructor(t,e,i,n,r){this.isNew=!0,this.isNewLabel=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=r||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,Fn(this,"init"),i||n||this.addLabel()}addLabel(){let t,e,i,n=this,r=n.axis,s=r.options,o=r.chart,a=r.categories,l=r.logarithmic,h=r.names,c=n.pos,d=Wn(n.options?.labels,s.labels),u=r.tickPositions,p=c===u[0],g=c===u[u.length-1],m=(!d.step||1===d.step)&&1===r.tickInterval,f=u.info,y=n.label,x=this.parameters.category||(a?Wn(a[c],h[c],c):c);l&&Hn(x)&&(x=In(l.lin2log(x))),r.dateTime&&(f?t=(e=o.time.resolveDTLFormat(s.dateTimeLabelFormats[!s.grid?.enabled&&f.higherRanks[c]||f.unitName])).main:Hn(x)&&(t=r.dateTime.getXDateFormat(x,s.dateTimeLabelFormats||{}))),n.isFirst=p,n.isLast=g;let b={axis:r,chart:o,dateTimeLabelFormat:t,isFirst:p,isLast:g,pos:c,tick:n,tickPositionInfo:f,value:x};Fn(this,"labelFormat",b);let v=t=>d.formatter?d.formatter.call(t,t):d.format?(t.text=r.defaultLabelFormatter.call(t),we.format(d.format,t,o)):r.defaultLabelFormatter.call(t),w=v.call(b,b),k=e?.list;n.shortenLabel=k?function(){for(i=0;i<k.length;i++)if(Rn(b,{dateTimeLabelFormat:k[i]}),y.attr({text:v.call(b,b)}),y.getBBox().width<r.getSlotWidth(n)-2*(d.padding||0))return;y.attr({text:""})}:void 0,m&&r._addedPlotLB&&n.moveLabel(w,d),Dn(y)||n.movedLabel?y&&y.textStr!==w&&!m&&(!y.textWidth||d.style.width||y.styles.width||y.css({width:null}),y.attr({text:w}),y.textPxLength=y.getBBox().width):(n.label=y=n.createLabel(w,d),n.rotation=0)}createLabel(t,e,i){let n=this.axis,{renderer:r,styledMode:s}=n.chart,o=e.style.whiteSpace,a=Dn(t)&&e.enabled?r.text(t,i?.x,i?.y,e.useHTML).add(n.labelGroup):void 0;return a&&(s||a.css(jn(e.style)),a.textPxLength=a.getBBox().width,!s&&o&&a.css({whiteSpace:o})),a}destroy(){Bn(this,this.axis)}getPosition(t,e,i,n){let r=this.axis,s=r.chart,o=n&&s.oldChartHeight||s.chartHeight,a={x:t?In(r.translate(e+i,void 0,void 0,n)+r.transB):r.left+r.offset+(r.opposite?(n&&s.oldChartWidth||s.chartWidth)-r.right-r.left:0),y:t?o-r.bottom+r.offset-(r.opposite?r.height:0):In(o-r.translate(e+i,void 0,void 0,n)-r.transB)};return a.y=Nn(a.y,-1e9,1e9),Fn(this,"afterGetPosition",{pos:a}),a}getLabelPosition(t,e,i,n,r,s,o,a){let l,h,c=this.axis,d=c.transA,u=c.isLinked&&c.linkedParent?c.linkedParent.reversed:c.reversed,p=c.staggerLines,g=c.tickRotCorr||{x:0,y:0},m=n||c.reserveSpaceDefault?0:-c.labelOffset*("center"===c.labelAlign?.5:1),f=r.distance,y={};return l=0===c.side?i.rotation?-f:-i.getBBox().height:2===c.side?g.y+f:Math.cos(i.rotation*Ln)*(g.y-i.getBBox(!1,0).height/2),Dn(r.y)&&(l=0===c.side&&c.horiz?r.y+l:r.y),t=t+Wn(r.x,[0,1,0,-1][c.side]*f)+m+g.x-(s&&n?s*d*(u?-1:1):0),e=e+l-(s&&!n?s*d*(u?1:-1):0),p&&(h=o/(a||1)%p,c.opposite&&(h=p-h-1),e+=h*(c.labelOffset/p)),y.x=t,y.y=Math.round(e),Fn(this,"afterGetLabelPosition",{pos:y,tickmarkOffset:s,index:o}),y}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(t,e,i,n,r=!1,s){return s.crispLine([["M",t,e],["L",t+(r?0:-i),e+(r?i:0)]],n)}handleOverflow(t){let e,i=this.axis,n=i.options.labels,r=t.x,s=i.chart.chartWidth,o=i.chart.spacing,a=Wn(i.labelLeft,Math.min(i.pos,o[3])),l=Wn(i.labelRight,Math.max(i.isRadial?0:i.pos+i.len,s-o[1])),h=this.label,c=this.rotation,d=zn(i.labelAlign||h.attr("align")),u=h.getBBox().width,p=i.getSlotWidth(this),g=p,m=1;c||"justify"!==n.overflow?c<0&&r-d*u<a?e=Math.round(r/Math.cos(c*Ln)-a):c>0&&r+d*u>l&&(e=Math.round((s-r)/Math.cos(c*Ln))):(r-d*u<a?g=t.x+g*(1-d)-a:r+(1-d)*u>l&&(g=l-t.x+g*d,m=-1),(g=Math.min(p,g))<p&&"center"===i.labelAlign&&(t.x+=m*(p-g-d*(p-Math.min(u,g)))),(u>g||i.autoRotation&&h?.styles?.width)&&(e=g)),e&&h&&(this.shortenLabel?this.shortenLabel():h.css(Rn({},{width:Math.floor(e)+"px",lineClamp:+!i.isRadial})))}moveLabel(t,e){let i,n=this,r=n.label,s=n.axis,o=!1;r&&r.textStr===t?(n.movedLabel=r,o=!0,delete n.label):Gn(s.ticks,function(e){o||e.isNew||e===n||!e.label||e.label.textStr!==t||(n.movedLabel=e.label,o=!0,e.labelPos=n.movedLabel.xy,delete e.label)}),!o&&(n.labelPos||r)&&(i=n.labelPos||r.xy,n.movedLabel=n.createLabel(t,e,i),n.movedLabel&&n.movedLabel.attr({opacity:0}))}render(t,e,i){let n=this.axis,r=n.horiz,s=this.pos,o=Wn(this.tickmarkOffset,n.tickmarkOffset),a=this.getPosition(r,s,o,e),l=n.pos,h=l+n.len,c=r?a.x:a.y,d=Wn(i,this.label?.newOpacity,1);!n.chart.polar&&(In(c)<l||c>h)&&(i=0),i??(i=1),this.isActive=!0,this.renderGridLine(e,i),this.renderMark(a,i),this.renderLabel(a,e,d,t),this.isNew=!1,Fn(this,"afterRender")}renderGridLine(t,e){let i,n=this.axis,r=n.options,s={},o=this.pos,a=this.type,l=Wn(this.tickmarkOffset,n.tickmarkOffset),h=n.chart.renderer,c=this.gridLine,d=r.gridLineWidth,u=r.gridLineColor,p=r.gridLineDashStyle;"minor"===this.type&&(d=r.minorGridLineWidth,u=r.minorGridLineColor,p=r.minorGridLineDashStyle),c||(n.chart.styledMode||(s.stroke=u,s["stroke-width"]=d||0,s.dashstyle=p),a||(s.zIndex=1),t&&(e=0),this.gridLine=c=h.path().attr(s).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(n.gridGroup)),c&&(i=n.getPlotLinePath({value:o+l,lineWidth:c.strokeWidth(),force:"pass",old:t,acrossPanes:!1}))&&c[t||this.isNew?"attr":"animate"]({d:i,opacity:e})}renderMark(t,e){let i=this.axis,n=i.options,r=i.chart.renderer,s=this.type,o=i.tickSize(s?s+"Tick":"tick"),a=t.x,l=t.y,h=Wn(n["minor"!==s?"tickWidth":"minorTickWidth"],!s&&i.isXAxis?1:0),c=n["minor"!==s?"tickColor":"minorTickColor"],d=this.mark,u=!d;o&&(i.opposite&&(o[0]=-o[0]),!d&&(this.mark=d=r.path().addClass("highcharts-"+(s?s+"-":"")+"tick").add(i.axisGroup),i.chart.styledMode||d.attr({stroke:c,"stroke-width":h})),d[u?"attr":"animate"]({d:this.getMarkPath(a,l,o[0],d.strokeWidth(),i.horiz,r),opacity:e}))}renderLabel(t,e,i,n){let r=this.axis,s=r.horiz,o=r.options,a=this.label,l=o.labels,h=l.step,c=Wn(this.tickmarkOffset,r.tickmarkOffset),d=t.x,u=t.y,p=!0;a&&Hn(d)&&(a.xy=t=this.getLabelPosition(d,u,a,s,l,c,n,h),this.isFirst&&!this.isLast&&!o.showFirstLabel||this.isLast&&!this.isFirst&&!o.showLastLabel?p=!1:!s||l.step||l.rotation||e||0===i||this.handleOverflow(t),h&&n%h&&(p=!1),p&&Hn(t.y)?(t.opacity=i,a[this.isNewLabel?"attr":"animate"](t).show(!0),this.isNewLabel=!1):(a.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let t=this.label,e=this.axis;t&&!this.isNew&&(t.animate({opacity:0},void 0,t.destroy),delete this.label),e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}},{animObject:Xn}=Xt,{xAxis:Un,yAxis:Yn}=Cn,{defaultOptions:qn}=bt,{registerEventOptions:$n}=On,{deg2rad:_n}=k,{arrayMax:Kn,arrayMin:Zn,clamp:Jn,correctFloat:Qn,defined:tr,destroyObjectProperties:er,erase:ir,error:nr,extend:rr,fireEvent:sr,getClosestDistance:or,insertItem:ar,isArray:lr,isNumber:hr,isString:cr,merge:dr,normalizeTickInterval:ur,objectEach:pr,pick:gr,relativeLength:mr,removeEvent:fr,splat:yr,syncTimeout:xr}=q,br=(t,e)=>ur(e,void 0,void 0,gr(t.options.allowDecimals,e<.5||void 0!==t.tickAmount),!!t.tickAmount);rr(qn,{xAxis:Un,yAxis:dr(Un,Yn)});class vr{constructor(t,e,i){this.init(t,e,i)}init(t,e,i=this.coll){let n="xAxis"===i,r=this.isZAxis||(t.inverted?!n:n);this.chart=t,this.horiz=r,this.isXAxis=n,this.coll=i,sr(this,"init",{userOptions:e}),this.opposite=gr(e.opposite,this.opposite),this.side=gr(e.side,this.side,r?2*!this.opposite:this.opposite?1:3),this.setOptions(e);let s=this.options,o=s.labels;this.type??(this.type=s.type||"linear"),this.uniqueNames??(this.uniqueNames=s.uniqueNames??!0),sr(this,"afterSetType"),this.userOptions=e,this.minPixelPadding=0,this.reversed=gr(s.reversed,this.reversed),this.visible=s.visible,this.zoomEnabled=s.zoomEnabled,this.hasNames="category"===this.type||!0===s.categories,this.categories=lr(s.categories)&&s.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=tr(s.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=s.minRange||s.maxZoom,this.range=s.range,this.offset=s.offset||0,this.max=void 0,this.min=void 0;let a=gr(s.crosshair,yr(t.options.tooltip.crosshairs)[+!n]);this.crosshair=!0===a?{}:a,-1===t.axes.indexOf(this)&&(n?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),ar(this,t[this.coll])),t.orderItems(this.coll),this.series=this.series||[],t.inverted&&!this.isZAxis&&n&&!tr(this.reversed)&&(this.reversed=!0),this.labelRotation=hr(o.rotation)?o.rotation:void 0,$n(this,s),sr(this,"afterInit")}setOptions(t){this.options=dr(this.horiz?{labels:{autoRotation:[-45],padding:3},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}},"yAxis"===this.coll?{title:{text:this.chart.options.lang.yAxisTitle}}:{},qn[this.coll],t),sr(this,"afterSetOptions",{userOptions:t})}defaultLabelFormatter(){let t,e,i=this.axis,{numberFormatter:n}=this.chart,r=hr(this.value)?this.value:NaN,s=i.chart.time,o=i.categories,a=this.dateTimeLabelFormat,l=qn.lang,h=l.numericSymbols,c=l.numericSymbolMagnitude||1e3,d=i.logarithmic?Math.abs(r):i.tickInterval,u=h?.length;if(o)e=`${this.value}`;else if(a)e=s.dateFormat(a,r,!0);else if(u&&h&&d>=1e3)for(;u--&&void 0===e;)d>=(t=Math.pow(c,u+1))&&10*r%t==0&&null!==h[u]&&0!==r&&(e=n(r/t,-1)+h[u]);return void 0===e&&(e=Math.abs(r)>=1e4?n(r,-1):n(r,-1,void 0,"")),e}getSeriesExtremes(){let t,e=this;sr(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=void 0,e.softThreshold=!e.isXAxis,e.series.forEach(i=>{if(i.reserveSpace()){let n,r,s,o=i.options,a=o.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=(a||0)&&(a=void 0),e.isXAxis)(n=i.getColumn("x")).length&&(n=e.logarithmic?n.filter(t=>t>0):n,r=(t=i.getXExtremes(n)).min,s=t.max,hr(r)||r instanceof Date||(n=n.filter(hr),r=(t=i.getXExtremes(n)).min,s=t.max),n.length&&(e.dataMin=Math.min(gr(e.dataMin,r),r),e.dataMax=Math.max(gr(e.dataMax,s),s)));else{let t=i.applyExtremes();hr(t.dataMin)&&(r=t.dataMin,e.dataMin=Math.min(gr(e.dataMin,r),r)),hr(t.dataMax)&&(s=t.dataMax,e.dataMax=Math.max(gr(e.dataMax,s),s)),tr(a)&&(e.threshold=a),(!o.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}})}),sr(this,"afterGetSeriesExtremes")}translate(t,e,i,n,r,s){let o=this.linkedParent||this,a=n&&o.old?o.old.min:o.min;if(!hr(a))return NaN;let l=o.minPixelPadding,h=(o.isOrdinal||o.brokenAxis?.hasBreaks||o.logarithmic&&r)&&!!o.lin2val,c=1,d=0,u=n&&o.old?o.old.transA:o.transA,p=0;return u||(u=o.transA),i&&(c*=-1,d=o.len),o.reversed&&(c*=-1,d-=c*(o.sector||o.len)),e?(p=(t=t*c+d-l)/u+a,h&&(p=o.lin2val(p))):(h&&(t=o.val2lin(t)),p=c*(t-a)*u+d+c*l+(hr(s)?u*s:0),o.isRadial||(p=Qn(p))),p}toPixels(t,e){return this.translate(this.chart?.time.parse(t)??NaN,!1,!this.horiz,void 0,!0)+(e?0:this.pos)}toValue(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(t){let e,i,n,r,s,o=this,a=o.chart,l=o.left,h=o.top,c=t.old,d=t.value,u=t.lineWidth,p=c&&a.oldChartHeight||a.chartHeight,g=c&&a.oldChartWidth||a.chartWidth,m=o.transB,f=t.translatedValue,y=t.force;function x(t,e,i){return"pass"!==y&&(t<e||t>i)&&(y?t=Jn(t,e,i):s=!0),t}let b={value:d,lineWidth:u,old:c,force:y,acrossPanes:t.acrossPanes,translatedValue:f};return sr(this,"getPlotLinePath",b,function(t){e=n=(f=Jn(f=gr(f,o.translate(d,void 0,void 0,c)),-1e9,1e9))+m,i=r=p-f-m,hr(f)?o.horiz?(i=h,r=p-o.bottom+(o.options.isInternal?0:a.scrollablePixelsY||0),e=n=x(e,l,l+o.width)):(e=l,n=g-o.right+(a.scrollablePixelsX||0),i=r=x(i,h,h+o.height)):(s=!0,y=!1),t.path=s&&!y?void 0:a.renderer.crispLine([["M",e,i],["L",n,r]],u||1)}),b.path}getLinearTickPositions(t,e,i){let n,r,s,o=Qn(Math.floor(e/t)*t),a=Qn(Math.ceil(i/t)*t),l=[];if(Qn(o+t)===o&&(s=20),this.single)return[e];for(n=o;n<=a&&(l.push(n),(n=Qn(n+t,s))!==r);)r=n;return l}getMinorTickInterval(){let{minorTicks:t,minorTickInterval:e}=this.options;return!0===t?gr(e,"auto"):!1!==t?e:void 0}getMinorTickPositions(){let t,e=this.options,i=this.tickPositions,n=this.minorTickInterval,r=this.pointRangePadding||0,s=(this.min||0)-r,o=(this.max||0)+r,a=this.brokenAxis?.hasBreaks?this.brokenAxis.unitLength:o-s,l=[];if(a&&a/n<this.len/3){let r=this.logarithmic;if(r)this.paddedTicks.forEach(function(t,e,i){e&&l.push.apply(l,r.getLogTickPositions(n,i[e-1],i[e],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())l=l.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(n),s,o,e.startOfWeek));else for(t=s+(i[0]-s)%n;t<=o&&t!==l[0];t+=n)l.push(t)}return 0!==l.length&&this.trimTicks(l),l}adjustForMinRange(){let t,e,i,n,r=this.options,s=this.logarithmic,o=this.chart.time,{max:a,min:l,minRange:h}=this;this.isXAxis&&void 0===h&&!s&&(h=tr(r.min)||tr(r.max)||tr(r.floor)||tr(r.ceiling)?null:Math.min(5*(or(this.series.map(t=>{let e=t.getColumn("x");return t.xIncrement?e.slice(0,2):e}))||0),this.dataMax-this.dataMin)),hr(a)&&hr(l)&&hr(h)&&a-l<h&&(e=this.dataMax-this.dataMin>=h,t=(h-a+l)/2,i=[l-t,o.parse(r.min)??l-t],e&&(i[2]=s?s.log2lin(this.dataMin):this.dataMin),n=[(l=Kn(i))+h,o.parse(r.max)??l+h],e&&(n[2]=s?s.log2lin(this.dataMax):this.dataMax),(a=Zn(n))-l<h&&(i[0]=a-h,i[1]=o.parse(r.min)??a-h,l=Kn(i))),this.minRange=h,this.min=l,this.max=a}getClosest(){let t,e;if(this.categories)e=1;else{let i=[];this.series.forEach(function(t){let n=t.closestPointRange,r=t.getColumn("x");1===r.length?i.push(r[0]):t.sorted&&tr(n)&&t.reserveSpace()&&(e=tr(e)?Math.min(e,n):n)}),i.length&&(i.sort((t,e)=>t-e),t=or([i]))}return t&&e?Math.min(t,e):t||e}nameToX(t){let e,i=lr(this.options.categories),n=i?this.categories:this.names,r=t.options.x;return t.series.requireSorting=!1,tr(r)||(r=this.uniqueNames&&n?i?n.indexOf(t.name):gr(n.keys[t.name],-1):t.series.autoIncrement()),-1===r?!i&&n&&(e=n.length):hr(r)&&(e=r),void 0!==e?(this.names[e]=t.name,this.names.keys[t.name]=e):t.x&&(e=t.x),e}updateNames(){let t=this,e=this.names;e.length>0&&(Object.keys(e.keys).forEach(function(t){delete e.keys[t]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(e=>{e.xIncrement=null,(!e.points||e.isDirtyData)&&(t.max=Math.max(t.max||0,e.dataTable.rowCount-1),e.processData(),e.generatePoints());let i=e.getColumn("x").slice();e.data.forEach((e,n)=>{let r=i[n];e?.options&&void 0!==e.name&&void 0!==(r=t.nameToX(e))&&r!==e.x&&(i[n]=e.x=r)}),e.dataTable.setColumn("x",i)}))}setAxisTranslation(){let t,e,i=this,n=i.max-i.min,r=i.linkedParent,s=!!i.categories,o=i.isXAxis,a=i.axisPointRange||0,l=0,h=0,c=i.transA;(o||s||a)&&(t=i.getClosest(),r?(l=r.minPointOffset,h=r.pointRangePadding):i.series.forEach(function(e){let n=s?1:o?gr(e.options.pointRange,t,0):i.axisPointRange||0,r=e.options.pointPlacement;if(a=Math.max(a,n),!i.single||s){let t=e.is("xrange")?!o:o;l=Math.max(l,t&&cr(r)?0:n/2),h=Math.max(h,t&&"on"===r?0:n)}}),e=i.ordinal?.slope&&t?i.ordinal.slope/t:1,i.minPointOffset=l*=e,i.pointRangePadding=h*=e,i.pointRange=Math.min(a,i.single&&s?1:n),o&&(i.closestPointRange=t)),i.translationSlope=i.transA=c=i.staticScale||i.len/(n+h||1),i.transB=i.horiz?i.left:i.bottom,i.minPixelPadding=c*l,sr(this,"afterSetAxisTranslation")}minFromRange(){let{max:t,min:e}=this;return hr(t)&&hr(e)&&t-e||void 0}setTickInterval(t){let e,i,n,r,s,{categories:o,chart:a,dataMax:l,dataMin:h,dateTime:c,isXAxis:d,logarithmic:u,options:p,softThreshold:g}=this,m=a.time,f=hr(this.threshold)?this.threshold:void 0,y=this.minRange||0,{ceiling:x,floor:b,linkedTo:v,softMax:w,softMin:k}=p,S=hr(v)&&a[this.coll]?.[v],M=p.tickPixelInterval,C=p.maxPadding,T=p.minPadding,A=0,E=hr(p.tickInterval)&&p.tickInterval>=0?p.tickInterval:void 0;if(c||o||S||this.getTickAmount(),r=gr(this.userMin,m.parse(p.min)),s=gr(this.userMax,m.parse(p.max)),S?(this.linkedParent=S,e=S.getExtremes(),this.min=gr(e.min,e.dataMin),this.max=gr(e.max,e.dataMax),this.type!==S.type&&nr(11,!0,a)):(g&&tr(f)&&hr(l)&&hr(h)&&(h>=f?(i=f,T=0):l<=f&&(n=f,C=0)),this.min=gr(r,i,h),this.max=gr(s,n,l)),hr(this.max)&&hr(this.min)&&(u&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,gr(h,this.min))&&nr(10,!0,a),this.min=Qn(u.log2lin(this.min),16),this.max=Qn(u.log2lin(this.max),16)),this.range&&hr(h)&&(this.userMin=this.min=r=Math.max(h,this.minFromRange()||0),this.userMax=s=this.max,this.range=void 0)),sr(this,"foundExtremes"),this.adjustForMinRange(),hr(this.min)&&hr(this.max)){if(!hr(this.userMin)&&hr(k)&&k<this.min&&(this.min=r=k),!hr(this.userMax)&&hr(w)&&w>this.max&&(this.max=s=w),o||this.axisPointRange||this.stacking?.usePercentage||S||(A=this.max-this.min)&&(!tr(r)&&T&&(this.min-=A*T),!tr(s)&&C&&(this.max+=A*C)),!hr(this.userMin)&&hr(b)&&(this.min=Math.max(this.min,b)),!hr(this.userMax)&&hr(x)&&(this.max=Math.min(this.max,x)),g&&hr(h)&&hr(l)){let t=f||0;!tr(r)&&this.min<t&&h>=t?this.min=p.minRange?Math.min(t,this.max-y):t:!tr(s)&&this.max>t&&l<=t&&(this.max=p.minRange?Math.max(t,this.min+y):t)}!a.polar&&this.min>this.max&&(tr(p.min)?this.max=this.min:tr(p.max)&&(this.min=this.max)),A=this.max-this.min}if(this.tickInterval=this.min!==this.max&&hr(this.min)&&hr(this.max)?S&&!E&&M===S.options.tickPixelInterval?E=S.tickInterval:gr(E,this.tickAmount?A/Math.max(this.tickAmount-1,1):void 0,o?1:A*M/Math.max(this.len,M)):1,d&&!t){let t=this.min!==this.old?.min||this.max!==this.old?.max;this.series.forEach(function(e){e.forceCrop=e.forceCropping?.(),e.processData(t)}),sr(this,"postProcessData",{hasExtremesChanged:t})}this.setAxisTranslation(),sr(this,"initialAxisTranslation"),this.pointRange&&!E&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let P=gr(p.minTickInterval,c&&!this.series.some(t=>!t.sorted)?this.closestPointRange:0);!E&&P&&this.tickInterval<P&&(this.tickInterval=P),c||u||E||(this.tickInterval=br(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){let t,e=this.options,i=e.tickPositions,n=e.tickPositioner,r=this.getMinorTickInterval(),s=!this.isPanning,o=s&&e.startOnTick,a=s&&e.endOnTick,l=[];if(this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.single=this.min===this.max&&tr(this.min)&&!this.tickAmount&&(this.min%1==0||!1!==e.allowDecimals),i)l=i.slice();else if(hr(this.min)&&hr(this.max)){if(!this.ordinal?.positions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))l=[this.min,this.max],nr(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 t=this.tickInterval,e=t;for(;e<=2*t&&(l=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&l.length>this.tickAmount);)this.tickInterval=br(this,e*=1.1)}l.length>this.len&&(l=[l[0],l[l.length-1]])[0]===l[1]&&(l.length=1),n&&(this.tickPositions=l,(t=n.apply(this,[this.min,this.max]))&&(l=t))}this.tickPositions=l,this.minorTickInterval="auto"===r&&this.tickInterval?this.tickInterval/e.minorTicksPerMajor:r,this.paddedTicks=l.slice(0),this.trimTicks(l,o,a),!this.isLinked&&hr(this.min)&&hr(this.max)&&(this.single&&l.length<2&&!this.categories&&!this.series.some(t=>t.is("heatmap")&&"between"===t.options.pointPlacement)&&(this.min-=.5,this.max+=.5),i||t||this.adjustTickAmount()),sr(this,"afterSetTickPositions")}trimTicks(t,e,i){let n=t[0],r=t[t.length-1],s=!this.isOrdinal&&this.minPointOffset||0;if(sr(this,"trimTicks"),!this.isLinked||!this.grid){if(e&&n!==-1/0)this.min=n;else for(;this.min-s>t[0];)t.shift();if(i)this.max=r;else for(;this.max+s<t[t.length-1];)t.pop();0===t.length&&tr(n)&&!this.options.tickPositions&&t.push((r+n)/2)}}alignToOthers(){let t,e=this,i=e.chart,n=[this],r=e.options,s=i.options.chart,o="yAxis"===this.coll&&s.alignThresholds,a=[];if(e.thresholdAlignment=void 0,(!1!==s.alignTicks&&r.alignTicks||o)&&!1!==r.startOnTick&&!1!==r.endOnTick&&!e.logarithmic){let r=t=>{let{horiz:e,options:i}=t;return[e?i.left:i.top,i.width,i.height,i.pane].join(",")},s=r(this);i[this.coll].forEach(function(i){let{series:o}=i;o.length&&o.some(t=>t.visible)&&i!==e&&r(i)===s&&(t=!0,n.push(i))})}if(t&&o){n.forEach(t=>{let i=t.getThresholdAlignment(e);hr(i)&&a.push(i)});let t=a.length>1?a.reduce((t,e)=>t+e,0)/a.length:void 0;n.forEach(e=>{e.thresholdAlignment=t})}return t}getThresholdAlignment(t){if((!hr(this.dataMin)||this!==t&&this.series.some(t=>t.isDirty||t.isDirtyData))&&this.getSeriesExtremes(),hr(this.threshold)){let t=Jn((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(t=1-t),t}}getTickAmount(){let t=this.options,e=t.tickPixelInterval,i=t.tickAmount;tr(t.tickInterval)||i||!(this.len<e)||this.isRadial||this.logarithmic||!t.startOnTick||!t.endOnTick||(i=2),!i&&this.alignToOthers()&&(i=Math.ceil(this.len/e)+1),i<4&&(this.finalTickAmt=i,i=5),this.tickAmount=i}adjustTickAmount(){let t,e,i,n=this,{finalTickAmt:r,max:s,min:o,options:a,tickPositions:l,tickAmount:h,thresholdAlignment:c}=n,d=l?.length,u=gr(n.threshold,n.softThreshold?0:null),p=n.tickInterval,g=()=>l.push(Qn(l[l.length-1]+p)),m=()=>l.unshift(Qn(l[0]-p));if(hr(c)&&(i=c<.5?Math.ceil(c*(h-1)):Math.floor(c*(h-1)),a.reversed&&(i=h-1-i)),n.hasData()&&hr(o)&&hr(s)){let c=()=>{n.transA*=(d-1)/(h-1),n.min=a.startOnTick?l[0]:Math.min(o,l[0]),n.max=a.endOnTick?l[l.length-1]:Math.max(s,l[l.length-1])};if(hr(i)&&hr(n.threshold)){for(;l[i]!==u||l.length!==h||l[0]>o||l[l.length-1]<s;){for(l.length=0,l.push(n.threshold);l.length<h;)void 0===l[i]||l[i]>n.threshold?m():g();if(p>8*n.tickInterval)break;p*=2}c()}else if(d<h){for(;l.length<h;)l.length%2||o===u?g():m();c()}if(tr(r)){for(e=t=l.length;e--;)(3===r&&e%2==1||r<=2&&e>0&&e<t-1)&&l.splice(e,1);n.finalTickAmt=void 0}}}setScale(){let{coll:t,stacking:e}=this,i=!1,n=!1;this.series.forEach(t=>{i=i||t.isDirtyData||t.isDirty,n=n||t.xAxis?.isDirty||!1}),this.setAxisSize();let r=this.len!==this.old?.len;r||i||n||this.isLinked||this.forceRedraw||this.userMin!==this.old?.userMin||this.userMax!==this.old?.userMax||this.alignToOthers()?(e&&"yAxis"===t&&e.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),e&&"xAxis"===t&&e.buildStacks(),this.isDirty||(this.isDirty=r||this.min!==this.old?.min||this.max!==this.old?.max)):e&&e.cleanStacks(),i&&delete this.allExtremes,sr(this,"afterSetScale")}setExtremes(t,e,i=!0,n,r){let s=this.chart;this.series.forEach(t=>{delete t.kdTree}),t=s.time.parse(t),e=s.time.parse(e),sr(this,"setExtremes",r=rr(r,{min:t,max:e}),t=>{this.userMin=t.min,this.userMax=t.max,this.eventArgs=t,i&&s.redraw(n)})}setAxisSize(){let t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],n=this.horiz,r=this.width=Math.round(mr(gr(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),s=this.height=Math.round(mr(gr(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),o=this.top=Math.round(mr(gr(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop)),a=this.left=Math.round(mr(gr(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft));this.bottom=t.chartHeight-s-o,this.right=t.chartWidth-r-a,this.len=Math.max(n?r:s,0),this.pos=n?a:o}getExtremes(){let t=this.logarithmic;return{min:t?Qn(t.lin2log(this.min)):this.min,max:t?Qn(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(t){let e=this.logarithmic,i=e?e.lin2log(this.min):this.min,n=e?e.lin2log(this.max):this.max;return null===t||t===-1/0?t=i:t===1/0?t=n:i>t?t=i:n<t&&(t=n),this.translate(t,0,1,0,1)}autoLabelAlign(t){let e=(gr(t,0)-90*this.side+720)%360,i={align:"center"};return sr(this,"autoLabelAlign",i,function(t){e>15&&e<165?t.align="right":e>195&&e<345&&(t.align="left")}),i.align}tickSize(t){let e,i=this.options,n=gr(i["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),r=i["tick"===t?"tickLength":"minorTickLength"];n&&r&&("inside"===i[t+"Position"]&&(r=-r),e=[r,n]);let s={tickSize:e};return sr(this,"afterTickSize",s),s.tickSize}labelMetrics(){let t=this.chart.renderer,e=this.ticks,i=e[Object.keys(e)[0]]||{};return this.chart.renderer.fontMetrics(i.label||i.movedLabel||t.box)}unsquish(){let t,e,i=this.options.labels,n=i.padding||0,r=this.horiz,s=this.tickInterval,o=this.len/((+!!this.categories+this.max-this.min)/s),a=i.rotation,l=Qn(.8*this.labelMetrics().h),h=Math.max(this.max-this.min,0),c=function(t){let e=(t+2*n)/(o||1);return(e=e>1?Math.ceil(e):1)*s>h&&t!==1/0&&o!==1/0&&h&&(e=Math.ceil(h/s)),Qn(e*s)},d=s,u=Number.MAX_VALUE;if(r){if(!i.staggerLines&&(hr(a)?e=[a]:o<i.autoRotationLimit&&(e=i.autoRotation)),e){let i,n;for(let r of e)(r===a||r&&r>=-90&&r<=90)&&(n=(i=c(Math.abs(l/Math.sin(_n*r))))+Math.abs(r/360))<u&&(u=n,t=r,d=i)}}else d=c(.75*l);return this.autoRotation=e,this.labelRotation=gr(t,hr(a)?a:0),i.step?s:d}getSlotWidth(t){let e=this.chart,i=this.horiz,n=this.options.labels,r=Math.max(this.tickPositions.length-!this.categories,1),s=e.margin[3];if(t&&hr(t.slotWidth))return t.slotWidth;if(i&&n.step<2&&!this.isRadial)return n.rotation?0:(this.staggerLines||1)*this.len/r;if(!i){let t=n.style.width;if(void 0!==t)return parseInt(String(t),10);if(!this.opposite&&s)return s-e.spacing[3]}return.33*e.chartWidth}renderUnsquish(){let t,e=this.chart,i=e.renderer,n=this.tickPositions,r=this.ticks,s=this.options.labels,o=s.style,a=this.horiz,l=this.getSlotWidth(),h=Math.max(1,Math.round(l-(a?2*(s.padding||0):s.distance||0))),c={},d=this.labelMetrics(),u=o.lineClamp,p=u??(Math.floor(this.len/(n.length*d.h))||1),g=0;cr(s.rotation)||(c.rotation=s.rotation||0),n.forEach(function(t){let e=r[t];e.movedLabel&&e.replaceMovedLabel();let i=e.label?.textPxLength||0;i>g&&(g=i)}),this.maxLabelLength=g,this.autoRotation?g>h&&g>d.h?c.rotation=this.labelRotation:this.labelRotation=0:l&&(t=h),c.rotation&&(t=g>.5*e.chartHeight?.33*e.chartHeight:g,u||(p=1)),this.labelAlign=s.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(c.align=this.labelAlign),n.forEach(function(e){let i=r[e],n=i?.label,s=o.width,a={};n&&(n.attr(c),i.shortenLabel?i.shortenLabel():t&&!s&&"nowrap"!==o.whiteSpace&&(t<(n.textPxLength||0)||"SPAN"===n.element.tagName)?n.css(rr(a,{width:`${t}px`,lineClamp:p})):!n.styles.width||a.width||s||n.css({width:"auto"}),i.rotation=c.rotation)},this),this.tickRotCorr=i.rotCorr(d.b,this.labelRotation||0,0!==this.side)}hasData(){return this.series.some(function(t){return t.hasData()})||this.options.showEmpty&&tr(this.min)&&tr(this.max)}addTitle(t){let e,i=this.opposite,n=this.options.title,r=this.chart.styledMode;this.axisTitle||((e=n.textAlign)||(e=(this.horiz?{low:"left",middle:"center",high:"right"}:{low:i?"right":"left",middle:"center",high:i?"left":"right"})[n.align]),this.axisTitle=this.chart.renderer.text(n.text||"",0,0,n.useHTML).attr({zIndex:7,rotation:n.rotation||0,align:e}).addClass("highcharts-axis-title"),r||this.axisTitle.css(dr(n.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),r||n.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[t?"show":"hide"](t)}generateTick(t){let e=this.ticks;e[t]?e[t].addLabel():e[t]=new Vn(this,t)}createGroups(){let{axisParent:t,chart:e,coll:i,options:n}=this,r=e.renderer,s=(e,s,o)=>r.g(e).attr({zIndex:o}).addClass(`highcharts-${i.toLowerCase()}${s} `+(this.isRadial?`highcharts-radial-axis${s} `:"")+(n.className||"")).add(t);this.axisGroup||(this.gridGroup=s("grid","-grid",n.gridZIndex),this.axisGroup=s("axis","",n.zIndex),this.labelGroup=s("axis-labels","-labels",n.labels.zIndex))}getOffset(){let t,e,i,n,r=this,{chart:s,horiz:o,options:a,side:l,ticks:h,tickPositions:c,coll:d}=r,u=s.inverted&&!r.isZAxis?[1,0,3,2][l]:l,p=r.hasData(),g=a.title,m=a.labels,f=hr(a.crossing),y=s.axisOffset,x=s.clipOffset,b=[-1,1,1,-1][l],v=0,w=0,k=0;if(r.showAxis=t=p||a.showEmpty,r.staggerLines=r.horiz&&m.staggerLines||void 0,r.createGroups(),p||r.isLinked?(c.forEach(function(t){r.generateTick(t)}),r.renderUnsquish(),r.reserveSpaceDefault=0===l||2===l||{1:"left",3:"right"}[l]===r.labelAlign,gr(m.reserveSpace,!f&&null,"center"===r.labelAlign||null,r.reserveSpaceDefault)&&c.forEach(function(t){k=Math.max(h[t].getLabelSize(),k)}),r.staggerLines&&(k*=r.staggerLines),r.labelOffset=k*(r.opposite?-1:1)):pr(h,function(t,e){t.destroy(),delete h[e]}),g?.text&&!1!==g.enabled&&(r.addTitle(t),t&&!f&&!1!==g.reserveSpace&&(r.titleOffset=v=r.axisTitle.getBBox()[o?"height":"width"],w=tr(e=g.offset)?0:gr(g.margin,o?5:10))),r.renderLine(),r.offset=b*gr(a.offset,y[l]?y[l]+(a.margin||0):0),r.tickRotCorr=r.tickRotCorr||{x:0,y:0},n=0===l?-r.labelMetrics().h:2===l?r.tickRotCorr.y:0,i=Math.abs(k)+w,k&&(i-=n,i+=b*(o?gr(m.y,r.tickRotCorr.y+b*m.distance):gr(m.x,b*m.distance))),r.axisTitleMargin=gr(e,i),r.getMaxLabelDimensions&&(r.maxLabelDimensions=r.getMaxLabelDimensions(h,c)),"colorAxis"!==d&&x){let t=this.tickSize("tick");y[l]=Math.max(y[l],(r.axisTitleMargin||0)+v+b*r.offset,i,c?.length&&t?t[0]+b*r.offset:0);let e=!r.axisLine||a.offset?0:r.axisLine.strokeWidth()/2;x[u]=Math.max(x[u],e)}sr(this,"afterGetOffset")}getLinePath(t){let e=this.chart,i=this.opposite,n=this.offset,r=this.horiz,s=this.left+(i?this.width:0)+n,o=e.chartHeight-this.bottom-(i?this.height:0)+n;return i&&(t*=-1),e.renderer.crispLine([["M",r?this.left:s,r?o:this.top],["L",r?e.chartWidth-this.right:s,r?o:e.chartHeight-this.bottom]],t)}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(t){let e=this.horiz,i=this.left,n=this.top,r=this.len,s=this.options.title,o=e?i:n,a=this.opposite,l=this.offset,h=s.x,c=s.y,d=this.chart.renderer.fontMetrics(t),u=t?Math.max(t.getBBox(!1,0).height-d.h-1,0):0,p={low:o+(e?0:r),middle:o+r/2,high:o+(e?r:0)}[s.align],g=(e?n+this.height:i)+(e?1:-1)*(a?-1:1)*(this.axisTitleMargin||0)+[-u,u,d.f,-u][this.side],m={x:e?p+h:g+(a?this.width:0)+l+h,y:e?g+c-(a?this.height:0)+l:p+c};return sr(this,"afterGetTitlePosition",{titlePosition:m}),m}renderMinorTick(t,e){let i=this.minorTicks;i[t]||(i[t]=new Vn(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)}renderTick(t,e,i){let n=this.ticks;(!this.isLinked||t>=this.min&&t<=this.max||this.grid?.isColumn)&&(n[t]||(n[t]=new Vn(this,t)),i&&n[t].isNew&&n[t].render(e,!0,-1),n[t].render(e))}render(){let t,e,i=this,n=i.chart,r=i.logarithmic,s=i.options,o=i.isLinked,a=i.tickPositions,l=i.axisTitle,h=i.ticks,c=i.minorTicks,d=i.alternateBands,u=s.stackLabels,p=s.alternateGridColor,g=s.crossing,m=i.tickmarkOffset,f=i.axisLine,y=i.showAxis,x=Xn(n.renderer.globalAnimation);if(i.labelEdge.length=0,i.overlap=!1,[h,c,d].forEach(function(t){pr(t,function(t){t.isActive=!1})}),hr(g)){let t=this.isXAxis?n.yAxis[0]:n.xAxis[0],e=[1,-1,-1,1][this.side];if(t){let n=t.toPixels(g,!0);i.horiz&&(n=t.len-n),i.offset=e*n}}if(i.hasData()||o){let o=i.chart.hasRendered&&i.old&&hr(i.old.min);i.minorTickInterval&&!i.categories&&i.getMinorTickPositions().forEach(function(t){i.renderMinorTick(t,o)}),a.length&&(a.forEach(function(t,e){i.renderTick(t,e,o)}),m&&(0===i.min||i.single)&&(h[-1]||(h[-1]=new Vn(i,-1,null,!0)),h[-1].render(-1))),p&&a.forEach(function(s,o){e=void 0!==a[o+1]?a[o+1]+m:i.max-m,o%2==0&&s<i.max&&e<=i.max+(n.polar?-m:m)&&(d[s]||(d[s]=new k.PlotLineOrBand(i,{})),t=s+m,d[s].options={from:r?r.lin2log(t):t,to:r?r.lin2log(e):e,color:p,className:"highcharts-alternate-grid"},d[s].render(),d[s].isActive=!0)}),i._addedPlotLB||(i._addedPlotLB=!0,(s.plotLines||[]).concat(s.plotBands||[]).forEach(function(t){i.addPlotBandOrLine(t)}))}[h,c,d].forEach(function(t){let e=[],i=x.duration;pr(t,function(t,i){t.isActive||(t.render(i,!1,0),t.isActive=!1,e.push(i))}),xr(function(){let i=e.length;for(;i--;)t[e[i]]&&!t[e[i]].isActive&&(t[e[i]].destroy(),delete t[e[i]])},t!==d&&n.hasRendered&&i?i:0)}),f&&(f[f.isPlaced?"animate":"attr"]({d:this.getLinePath(f.strokeWidth())}),f.isPlaced=!0,f[y?"show":"hide"](y)),l&&y&&(l[l.isNew?"attr":"animate"](i.getTitlePosition(l)),l.isNew=!1),u?.enabled&&i.stacking&&i.stacking.renderStackTotals(),i.old={len:i.len,max:i.max,min:i.min,transA:i.transA,userMax:i.userMax,userMin:i.userMin},i.isDirty=!1,sr(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(t){t.render()})),this.series.forEach(function(t){t.isDirty=!0})}getKeepProps(){return this.keepProps||vr.keepProps}destroy(t){let e=this,i=e.plotLinesAndBands,n=this.eventOptions;if(sr(this,"destroy",{keepEvents:t}),t||fr(e),[e.ticks,e.minorTicks,e.alternateBands].forEach(function(t){er(t)}),i){let t=i.length;for(;t--;)i[t].destroy()}for(let t in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(t){e[t]&&(e[t]=e[t].destroy())}),e.plotLinesAndBandsGroups)e.plotLinesAndBandsGroups[t]=e.plotLinesAndBandsGroups[t].destroy();pr(e,function(t,i){-1===e.getKeepProps().indexOf(i)&&delete e[i]}),this.eventOptions=n}drawCrosshair(t,e){let i,n,r,s,o=this.crosshair,a=o?.snap??!0,l=this.chart,h=this.cross;if(sr(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross?.e),o&&!1!==(tr(e)||!a)){if(a?tr(e)&&(n=gr("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):n=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),tr(n)&&(s={value:e&&(this.isXAxis?e.x:gr(e.stackY,e.y)),translatedValue:n},l.polar&&rr(s,{isCrosshair:!0,chartX:t?.chartX,chartY:t?.chartY,point:e}),i=this.getPlotLinePath(s)||null),!tr(i))return void this.hideCrosshair();r=this.categories&&!this.isRadial,h||(this.cross=h=l.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(r?"category ":"thin ")+(o.className||"")).attr({zIndex:gr(o.zIndex,2)}).add(),!l.styledMode&&(h.attr({stroke:o.color||(r?Et.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":gr(o.width,1)}).css({"pointer-events":"none"}),o.dashStyle&&h.attr({dashstyle:o.dashStyle}))),h.show().attr({d:i}),r&&!o.width&&h.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();sr(this,"afterDrawCrosshair",{e:t,point:e})}hideCrosshair(){this.cross&&this.cross.hide(),sr(this,"afterHideCrosshair")}update(t,e){let i=this.chart;t=dr(this.userOptions,t),this.destroy(!0),this.init(i,t),i.isDirtyBox=!0,gr(e,!0)&&i.redraw()}remove(t){let e=this.chart,i=this.coll,n=this.series,r=n.length;for(;r--;)n[r]&&n[r].remove(!1);ir(e.axes,this),ir(e[i]||[],this),e.orderItems(i),this.destroy(),e.isDirtyBox=!0,gr(t,!0)&&e.redraw()}setTitle(t,e){this.update({title:t},e)}setCategories(t,e){this.update({categories:t},e)}}vr.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"];let{addEvent:wr,getMagnitude:kr,normalizeTickInterval:Sr,timeUnits:Mr}=q;!function(t){function e(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function i(){"datetime"===this.type?this.dateTime||(this.dateTime=new n(this)):this.dateTime=void 0}t.compose=function(t){return t.keepProps.includes("dateTime")||(t.keepProps.push("dateTime"),t.prototype.getTimeTicks=e,wr(t,"afterSetType",i)),t};class n{constructor(t){this.axis=t}normalizeTimeTickInterval(t,e){let i,n=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],r=n[n.length-1],s=Mr[r[0]],o=r[1];for(i=0;i<n.length&&(s=Mr[(r=n[i])[0]],o=r[1],!(n[i+1]&&t<=(s*o[o.length-1]+Mr[n[i+1][0]])/2));i++);return s===Mr.year&&t<5*s&&(o=[1,2,5]),{unitRange:s,count:Sr(t/s,o,"year"===r[0]?Math.max(kr(t/s),1):1),unitName:r[0]}}getXDateFormat(t,e){let{axis:i}=this,n=i.chart.time;return i.closestPointRange?n.getDateFormat(i.closestPointRange,t,i.options.startOfWeek,e)||n.resolveDTLFormat(e.year).main:n.resolveDTLFormat(e.day).main}}t.Additions=n}(a||(a={}));let Cr=a,{addEvent:Tr,normalizeTickInterval:Ar,pick:Er}=q;!function(t){function e(){"logarithmic"!==this.type?this.logarithmic=void 0:this.logarithmic??(this.logarithmic=new n(this))}function i(){let t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}t.compose=function(t){return t.keepProps.includes("logarithmic")||(t.keepProps.push("logarithmic"),Tr(t,"afterSetType",e),Tr(t,"afterInit",i)),t};class n{constructor(t){this.axis=t}getLogTickPositions(t,e,i,n){let r=this.axis,s=r.len,o=r.options,a=[];if(n||(this.minorAutoInterval=void 0),t>=.5)t=Math.round(t),a=r.getLinearTickPositions(t,e,i);else if(t>=.08){let r,s,o,l,h,c,d;for(r=t>.3?[1,2,4]:t>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],s=Math.floor(e);s<i+1&&!d;s++)for(o=0,l=r.length;o<l&&!d;o++)(h=this.log2lin(this.lin2log(s)*r[o]))>e&&(!n||c<=i)&&void 0!==c&&a.push(c),c>i&&(d=!0),c=h}else{let l=this.lin2log(e),h=this.lin2log(i),c=n?r.getMinorTickInterval():o.tickInterval;t=Ar(t=Er("auto"===c?null:c,this.minorAutoInterval,o.tickPixelInterval/(n?5:1)*(h-l)/((n?s/r.tickPositions.length:s)||1))),a=r.getLinearTickPositions(t,l,h).map(this.log2lin),n||(this.minorAutoInterval=t/5)}return n||(r.tickInterval=t),a}lin2log(t){return Math.pow(10,t)}log2lin(t){return Math.log(t)/Math.LN10}}t.Additions=n}(l||(l={}));let Pr=l,{erase:Or,extend:Lr,isNumber:Nr}=q;!function(t){let e;function i(t){return this.addPlotBandOrLine(t,"plotBands")}function n(t,i){let n=this.userOptions,r=new e(this,t);if(this.visible&&(r=r.render()),r){if(this._addedPlotLB||(this._addedPlotLB=!0,(n.plotLines||[]).concat(n.plotBands||[]).forEach(t=>{this.addPlotBandOrLine(t)})),i){let e=n[i]||[];e.push(t),n[i]=e}this.plotLinesAndBands.push(r)}return r}function r(t){return this.addPlotBandOrLine(t,"plotLines")}function s(t,e,i){let n,r,s=this.getPlotLinePath({value:e,force:!0,acrossPanes:(i=i||this.options).acrossPanes}),o=[],a=this.horiz,l=!Nr(this.min)||!Nr(this.max)||t<this.min&&e<this.min||t>this.max&&e>this.max,h=this.getPlotLinePath({value:t,force:!0,acrossPanes:i.acrossPanes}),c=1;if(h&&s)for(l&&(r=h.toString()===s.toString(),c=0),n=0;n<h.length;n+=2){let t=h[n],e=h[n+1],i=s[n],l=s[n+1];("M"===t[0]||"L"===t[0])&&("M"===e[0]||"L"===e[0])&&("M"===i[0]||"L"===i[0])&&("M"===l[0]||"L"===l[0])&&(a&&i[1]===t[1]?(i[1]+=c,l[1]+=c):a||i[2]!==t[2]||(i[2]+=c,l[2]+=c),o.push(["M",t[1],t[2]],["L",e[1],e[2]],["L",l[1],l[2]],["L",i[1],i[2]],["Z"])),o.isFlat=r}return o}function o(t){this.removePlotBandOrLine(t)}function a(t){let e=this.plotLinesAndBands,i=this.options,n=this.userOptions;if(e){let r=e.length;for(;r--;)e[r].id===t&&e[r].destroy();[i.plotLines||[],n.plotLines||[],i.plotBands||[],n.plotBands||[]].forEach(function(e){for(r=e.length;r--;)e[r]?.id===t&&Or(e,e[r])})}}function l(t){this.removePlotBandOrLine(t)}t.compose=function(t,h){let c=h.prototype;return c.addPlotBand||(e=t,Lr(c,{addPlotBand:i,addPlotLine:r,addPlotBandOrLine:n,getPlotBandPath:s,removePlotBand:o,removePlotLine:l,removePlotBandOrLine:a})),h}}(h||(h={}));let Ir=h,{addEvent:Dr,arrayMax:Br,arrayMin:Rr,defined:Fr,destroyObjectProperties:zr,erase:Hr,fireEvent:jr,merge:Gr,objectEach:Wr,pick:Vr}=q;class Xr{static compose(t,e){return Dr(t,"afterInit",function(){this.labelCollectors.push(()=>{let t=[];for(let e of this.axes)for(let{label:i,options:n}of e.plotLinesAndBands)i&&!n?.label?.allowOverlap&&t.push(i);return t})}),Ir.compose(Xr,e)}constructor(t,e){this.axis=t,this.options=e,this.id=e.id}render(){jr(this,"render");let t,{axis:e,options:i}=this,{horiz:n,logarithmic:r}=e,{color:s,events:o,zIndex:a=0}=i,{renderer:l,time:h}=e.chart,c={},d=h.parse(i.to),u=h.parse(i.from),p=h.parse(i.value),g=i.borderWidth,m=i.label,{label:f,svgElem:y}=this,x=[],b=Fr(u)&&Fr(d),v=Fr(p),w=!y,k={class:"highcharts-plot-"+(b?"band ":"line ")+(i.className||"")},S=b?"bands":"lines";if(!e.chart.styledMode&&(v?(k.stroke=s||"#999999",k["stroke-width"]=Vr(i.width,1),i.dashStyle&&(k.dashstyle=i.dashStyle)):b&&(k.fill=s||"#e6e9ff",g&&(k.stroke=i.borderColor,k["stroke-width"]=g))),c.zIndex=a,S+="-"+a,(t=e.plotLinesAndBandsGroups[S])||(e.plotLinesAndBandsGroups[S]=t=l.g("plot-"+S).attr(c).add()),y||(this.svgElem=y=l.path().attr(k).add(t)),Fr(p))x=e.getPlotLinePath({value:r?.log2lin(p)??p,lineWidth:y.strokeWidth(),acrossPanes:i.acrossPanes});else{if(!Fr(u)||!Fr(d))return;x=e.getPlotBandPath(r?.log2lin(u)??u,r?.log2lin(d)??d,i)}return!this.eventsAdded&&o&&(Wr(o,(t,e)=>{y?.on(e,t=>{o[e].apply(this,[t])})}),this.eventsAdded=!0),!w&&y.d||!x?.length?y&&(x?(y.show(),y.animate({d:x})):y.d&&(y.hide(),f&&(this.label=f=f.destroy()))):y.attr({d:x}),m&&(Fr(m.text)||Fr(m.formatter))&&x?.length&&e.width>0&&e.height>0&&!x.isFlat?(m=Gr({align:n&&b?"center":void 0,x:n?!b&&4:10,verticalAlign:!n&&b?"middle":void 0,y:n?b?16:10:b?6:-4,rotation:n&&!b?90:0,...b?{inside:!0}:{}},m),this.renderLabel(m,x,b,a)):f&&f.hide(),this}renderLabel(t,e,i,n){let r=this.axis,s=r.chart.renderer,o=t.inside,a=this.label;a||(this.label=a=s.text(this.getLabelText(t),0,0,t.useHTML).attr({align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(t.className||""),zIndex:n}),r.chart.styledMode||a.css(Gr({color:r.chart.options.title?.style?.color,fontSize:"0.8em",textOverflow:i&&!o?"":"ellipsis"},t.style)),a.add());let l=e.xBounds||[e[0][1],e[1][1],i?e[2][1]:e[0][1]],h=e.yBounds||[e[0][2],e[1][2],i?e[2][2]:e[0][2]],c=Rr(l),d=Rr(h),u=Br(l)-c;a.align(t,!1,{x:c,y:d,width:u,height:Br(h)-d}),a.alignAttr.y-=s.fontMetrics(a).b,(!a.alignValue||"left"===a.alignValue||Fr(o))&&a.css({width:(t.style?.width||(i&&o?u:90===a.rotation?r.height-(a.alignAttr.y-r.top):(t.clip?r.width:r.chart.chartWidth)-(a.alignAttr.x-r.left)))+"px"}),a.show(!0)}getLabelText(t){return Fr(t.formatter)?t.formatter.call(this):t.text}destroy(){Hr(this.axis.plotLinesAndBands,this),delete this.axis,zr(this)}}let{animObject:Ur}=Xt,{format:Yr}=we,{composed:qr,dateFormats:$r,doc:_r,isSafari:Kr}=k,{distribute:Zr}=Ae,{addEvent:Jr,clamp:Qr,css:ts,discardElement:es,extend:is,fireEvent:ns,getAlignFactor:rs,isArray:ss,isNumber:os,isObject:as,isString:ls,merge:hs,pick:cs,pushUnique:ds,splat:us,syncTimeout:ps}=q;class gs{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(t=>{let e=t.series.tooltipOptions,i=t.formatPrefix||"point";return(e[i+"Formatter"]||t.tooltipFormatter).call(t,e[i+"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||us(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(),es(this.container)),q.clearTimeout(this.hideTimer)}getAnchor(t,e){let i,{chart:n,pointer:r}=this,s=n.inverted,o=n.plotTop,a=n.plotLeft;if(t=us(t),t[0].series?.yAxis&&!t[0].series.yAxis.options.reversedStacks&&(t=t.slice().reverse()),this.followPointer&&e)void 0===e.chartX&&(e=r.normalize(e)),i=[e.chartX-a,e.chartY-o];else if(t[0].tooltipPos)i=t[0].tooltipPos;else{let n=0,r=0;t.forEach(function(t){let e=t.pos(!0);e&&(n+=e[0],r+=e[1])}),n/=t.length,r/=t.length,this.shared&&t.length>1&&e&&(s?n=e.chartX:r=e.chartY),i=[n-a,r-o]}let l={point:t[0],ret:i};return ns(this,"getAnchor",l),l.ret.map(Math.round)}getClassName(t,e,i){let n=t.series,r=n.options;return[this.options.className,"highcharts-label",i&&"highcharts-tooltip-header",e?"highcharts-tooltip-box":"highcharts-tooltip",!i&&"highcharts-color-"+cs(t.colorIndex,n.colorIndex),r?.className].filter(ls).join(" ")}getLabel({anchorX:t,anchorY:e}={anchorX:0,anchorY:0}){let i=this,n=this.chart.styledMode,r=this.options,s=this.split&&this.allowShared,o=this.container,a=this.chart.renderer;if(this.label){let t=!this.label.hasClass("highcharts-label");(!s&&t||s&&!t)&&this.destroy()}if(!this.label){if(this.outside){let t=this.chart,e=t.options.chart.style,i=ke.getRendererType();this.container=o=k.doc.createElement("div"),o.className="highcharts-tooltip-container "+(t.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||""),ts(o,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(e?.zIndex||0)+3)}),this.renderer=a=new i(o,0,0,e,void 0,void 0,a.styledMode)}if(s?this.label=a.g("tooltip"):(this.label=a.label("",t,e,r.shape||"callout",void 0,void 0,r.useHTML,void 0,"tooltip").attr({padding:r.padding,r:r.borderRadius}),n||this.label.attr({fill:r.backgroundColor,"stroke-width":r.borderWidth||0}).css(r.style).css({pointerEvents:r.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),i.outside){let t=this.label;[t.xSetter,t.ySetter].forEach((e,n)=>{t[n?"ySetter":"xSetter"]=r=>{e.call(t,i.distance),t[n?"y":"x"]=r,o&&(o.style[n?"top":"left"]=`${r}px`)}})}this.label.attr({zIndex:8}).shadow(r.shadow??!r.fixed).add()}return o&&!o.parentElement&&k.doc.body.appendChild(o),this.label}getPlayingField(){let{body:t,documentElement:e}=_r,{chart:i,distance:n,outside:r}=this;return{width:r?Math.max(t.scrollWidth,e.scrollWidth,t.offsetWidth,e.offsetWidth,e.clientWidth)-2*n-2:i.chartWidth,height:r?Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,e.clientHeight):i.chartHeight}}getPosition(t,e,i){let n,{distance:r,chart:s,outside:o,pointer:a}=this,{inverted:l,plotLeft:h,plotTop:c,polar:d}=s,{plotX:u=0,plotY:p=0}=i,g={},m=l&&i.h||0,{height:f,width:y}=this.getPlayingField(),x=a.getChartPosition(),b=t=>t*x.scaleX,v=t=>t*x.scaleY,w=i=>{let n="x"===i;return[i,n?y:f,n?t:e].concat(o?[n?b(t):v(e),n?x.left-r+b(u+h):x.top-r+v(p+c),0,n?y:f]:[n?t:e,n?u+h:p+c,n?h:c,n?h+s.plotWidth:c+s.plotHeight])},k=w("y"),S=w("x"),M=!!i.negative;!d&&s.hoverSeries?.yAxis?.reversed&&(M=!M);let C=!this.followPointer&&cs(i.ttBelow,!d&&!l===M),T=function(t,e,i,n,s,a,l){let h=o?"y"===t?v(r):b(r):r,c=(i-n)/2,d=n<s-r,u=s+r+n<e,p=s-h-i+c,f=s+h-c;if(C&&u)g[t]=f;else if(!C&&d)g[t]=p;else if(d)g[t]=Math.min(l-n,p-m<0?p:p-m);else{if(!u)return g[t]=0,!1;g[t]=Math.max(a,f+m+i>e?f:f+m)}},A=function(t,e,i,n,s){if(s<r||s>e-r)return!1;g[t]=s<i/2?1:s>e-n/2?e-n-2:s-i/2},E=function(t){[k,S]=[S,k],n=t},P=()=>{!1!==T.apply(0,k)?!1!==A.apply(0,S)||n||(E(!0),P()):n?g.x=g.y=0:(E(!0),P())};return(l&&!d||this.len>1)&&E(),P(),g}getFixedPosition(t,e,i){let n=i.series,{chart:r,options:s,split:o}=this,a=s.position,l=a.relativeTo,h=s.shared||n?.yAxis?.isRadial&&("pane"===l||!l)?"plotBox":l,c="chart"===h?r.renderer:r[h]||r.getClipBox(n,!0);return{x:c.x+(c.width-t)*rs(a.align)+a.x,y:c.y+(c.height-e)*rs(a.verticalAlign)+(!o&&a.y||0)}}hide(t){let e=this;q.clearTimeout(this.hideTimer),t=cs(t,this.options.hideDelay),this.isHidden||(this.hideTimer=ps(function(){let i=e.getLabel();e.getLabel().animate({opacity:0},{duration:t?150:t,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=cs(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,n){let{followPointer:r,options:s}=this,o=Ur(!r&&!this.isHidden&&!s.fixed&&s.animation),a={x:t,y:e};r||(this.len||0)>1?a.anchorX=a.anchorY=NaN:(a.anchorX=i,a.anchorY=n),o.step=()=>this.drawTracker(),this.getLabel().animate(a,o)}refresh(t,e){let{chart:i,options:n,pointer:r,shared:s}=this,o=us(t),a=o[0],l=n.format,h=n.formatter||this.defaultFormatter,c=i.styledMode,d=this.allowShared;if(!n.enabled||!a.series)return;q.clearTimeout(this.hideTimer),this.allowShared=!(!ss(t)&&t.series&&t.series.noSharedTooltip),d=d&&!this.allowShared,this.followPointer=!this.split&&a.series.tooltipOptions.followPointer;let u=this.getAnchor(t,e),p=u[0],g=u[1];s&&this.allowShared&&(r.applyInactiveState(o),o.forEach(t=>t.setState("hover")),a.points=o),this.len=o.length;let m=ls(l)?Yr(l,a,i):h.call(a,this);a.points=void 0;let f=a.series;if(this.distance=cs(f.tooltipOptions.distance,16),!1===m)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(m,o);else{let t=p,s=g;if(e&&r.isDirectTouch&&(t=e.chartX-i.plotLeft,s=e.chartY-i.plotTop),!i.polar&&!1!==f.options.clip&&!o.some(e=>r.isDirectTouch||e.series.shouldShowTooltip(t,s)))return void this.hide();{let t=this.getLabel(d&&this.tt||{});(!n.style.width||c)&&t.css({width:(this.outside?this.getPlayingField():i.spacingBox).width+"px"}),t.attr({class:this.getClassName(a),text:m&&m.join?m.join(""):m}),this.outside&&t.attr({x:Qr(t.x||0,0,this.getPlayingField().width-(t.width||0)-1)}),c||t.attr({stroke:n.borderColor||a.color||f.color||"#666666"}),this.updatePosition({plotX:p,plotY:g,negative:a.negative,ttBelow:a.ttBelow,series:f,h:u[2]||0})}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}ns(this,"refresh")}renderSplit(t,e){let i=this,{chart:n,chart:{chartWidth:r,chartHeight:s,plotHeight:o,plotLeft:a,plotTop:l,scrollablePixelsY:h=0,scrollablePixelsX:c,styledMode:d},distance:u,options:p,options:{fixed:g,position:m,positioner:f},pointer:y}=i,{scrollLeft:x=0,scrollTop:b=0}=n.scrollablePlotArea?.scrollingContainer||{},v=i.outside&&"number"!=typeof c?_r.documentElement.getBoundingClientRect():{left:x,right:x+r,top:b,bottom:b+s},w=i.getLabel(),k=this.renderer||n.renderer,S=!!n.xAxis[0]?.opposite,{left:M,top:C}=y.getChartPosition(),T=f||g,A=l+b,E=0,P=o-h,O=function(t,e,n,r=[0,0],s=!0){let o,a;if(n.isHeader)a=S?0:P,o=Qr(r[0]-t/2,v.left,v.right-t-(i.outside?M:0));else if(g&&n){let r=i.getFixedPosition(t,e,n);o=r.x,a=r.y-A}else a=r[1]-A,o=Qr(o=s?r[0]-t-u:r[0]+u,s?o:v.left,v.right);return{x:o,y:a}};ls(t)&&(t=[!1,t]);let L=t.slice(0,e.length+1).reduce(function(t,n,r){if(!1!==n&&""!==n){let s=e[r-1]||{isHeader:!0,plotX:e[0].plotX,plotY:o,series:{}},h=s.isHeader,c=h?i:s.series,m=c.tt=function(t,e,n){let r=t,{isHeader:s,series:o}=e,a=o.tooltipOptions||p;if(!r){let t={padding:a.padding,r:a.borderRadius};d||(t.fill=a.backgroundColor,t["stroke-width"]=a.borderWidth??(g&&!s?0:1)),r=k.label("",0,0,a[s?"headerShape":"shape"]||(g&&!s?"rect":"callout"),void 0,void 0,a.useHTML).addClass(i.getClassName(e,!0,s)).attr(t).add(w)}return r.isActive=!0,r.attr({text:n}),d||r.css(a.style).attr({stroke:a.borderColor||e.color||o.color||"#333333"}),r}(c.tt,s,n.toString()),y=m.getBBox(),x=y.width+m.strokeWidth();h&&(E=y.height,P+=E,S&&(A-=E));let{anchorX:b,anchorY:M}=function(t){let e,i,{isHeader:n,plotX:r=0,plotY:s=0,series:h}=t;if(n)e=Math.max(a+r,a),i=l+o/2;else{let{xAxis:t,yAxis:n}=h;e=t.pos+Qr(r,-u,t.len+u),h.shouldShowTooltip(0,n.pos-l+s,{ignoreX:!0})&&(i=n.pos+s)}return{anchorX:e=Qr(e,v.left-u,v.right+u),anchorY:i}}(s);if("number"==typeof M){let e=y.height+1,n=(f||O).call(i,x,e,s,[b,M]);t.push({align:T?0:void 0,anchorX:b,anchorY:M,boxWidth:x,point:s,rank:cs(n.rank,+!!h),size:e,target:n.y,tt:m,x:n.x})}else m.isActive=!1}return t},[]);!T&&L.some(t=>{let{outside:e}=i,n=(e?M:0)+t.anchorX;return n<v.left&&n+t.boxWidth<v.right||n<M-v.left+t.boxWidth&&v.right-n>n})&&(L=L.map(t=>{let{x:e,y:i}=O.call(this,t.boxWidth,t.size,t.point,[t.anchorX,t.anchorY],!1);return is(t,{target:i,x:e})})),i.cleanSplit(),Zr(L,P);let N={left:M,right:M};L.forEach(function(t){let{x:e,boxWidth:n,isHeader:r}=t;!r&&(i.outside&&M+e<N.left&&(N.left=M+e),!r&&i.outside&&N.left+n>N.right&&(N.right=M+e))}),L.forEach(function(t){let{x:e,anchorX:n,anchorY:r,pos:s,point:{isHeader:o}}=t,a={visibility:void 0===s?"hidden":"inherit",x:e,y:(s||0)+A+(g&&m.y||0),anchorX:n,anchorY:r};if(i.outside&&e<n){let t=M-N.left;t>0&&(o||(a.x=e+t,a.anchorX=n+t),o&&(a.x=(N.right-N.left)/2,a.anchorX=n+t))}t.tt.attr(a)});let{container:I,outside:D,renderer:B}=i;if(D&&I&&B){let{width:t,height:e,x:i,y:n}=w.getBBox();B.setSize(t+i,e+n,!1),I.style.left=N.left+"px",I.style.top=C+"px"}Kr&&w.attr({opacity:1===w.opacity?.999:1})}drawTracker(){if(!this.shouldStickOnContact())return void(this.tracker&&(this.tracker=this.tracker.destroy()));let t=this.chart,e=this.label,i=this.shared?t.hoverPoints:t.hoverPoint;if(!e||!i)return;let n={x:0,y:0,width:0,height:0},r=this.getAnchor(i),s=e.getBBox();r[0]+=t.plotLeft-(e.translateX||0),r[1]+=t.plotTop-(e.translateY||0),n.x=Math.min(0,r[0]),n.y=Math.min(0,r[1]),n.width=r[0]<0?Math.max(Math.abs(r[0]),s.width-r[0]):Math.max(Math.abs(r[0]),s.width),n.height=r[1]<0?Math.max(Math.abs(r[1]),s.height-Math.abs(r[1])):Math.max(Math.abs(r[1]),s.height),this.tracker?this.tracker.attr(n):(this.tracker=e.renderer.rect(n).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,n=i.tooltipOptions,r=i.xAxis,s=r?.dateTime,o={isFooter:e,point:t},a=n.xDateFormat||"",l=n[e?"footerFormat":"headerFormat"];return ns(this,"headerFormatter",o,function(e){if(s&&!a&&os(t.key)&&(a=s.getXDateFormat(t.key,n.dateTimeLabelFormats)),s&&a){if(as(a)){let t=a;$r[0]=e=>i.chart.time.dateFormat(t,e),a="%0"}(t.tooltipDateKeys||["key"]).forEach(t=>{l=l.replace(RegExp("point\\."+t+"([ \\)}])"),`(point.${t}:${a})$1`)})}i.chart.styledMode&&(l=this.styledModeFormat(l)),e.text=Yr(l,t,this.chart)}),o.text||""}update(t){this.destroy(),this.init(this.chart,hs(!0,this.options,t))}updatePosition(t){let e,{chart:i,container:n,distance:r,options:s,pointer:o,renderer:a}=this,{height:l=0,width:h=0}=this.getLabel(),{fixed:c,positioner:d}=s,{left:u,top:p,scaleX:g,scaleY:m}=o.getChartPosition(),f=(d||c&&this.getFixedPosition||this.getPosition).call(this,h,l,t),y=k.doc,x=(t.plotX||0)+i.plotLeft,b=(t.plotY||0)+i.plotTop;if(a&&n){if(d||c){let{scrollLeft:t=0,scrollTop:e=0}=i.scrollablePlotArea?.scrollingContainer||{};f.x+=t+u-r,f.y+=e+p-r}e=(s.borderWidth||0)+2*r+2,a.setSize(Qr(h+e,0,y.documentElement.clientWidth)-1,l+e,!1),(1!==g||1!==m)&&(ts(n,{transform:`scale(${g}, ${m})`}),x*=g,b*=m),x+=u-f.x,b+=p-f.y}this.move(Math.round(f.x),Math.round(f.y||0),x,b)}}!function(t){t.compose=function(e){ds(qr,"Core.Tooltip")&&Jr(e,"afterInit",function(){let e=this.chart;e.options.tooltip&&(e.tooltip=new t(e,e.options.tooltip,this))})}}(gs||(gs={}));let ms=gs,{animObject:fs}=Xt,{defaultOptions:ys}=bt,{format:xs}=we,{addEvent:bs,crisp:vs,erase:ws,extend:ks,fireEvent:Ss,getNestedProperty:Ms,isArray:Cs,isFunction:Ts,isNumber:As,isObject:Es,merge:Ps,pick:Os,syncTimeout:Ls,removeEvent:Ns,uniqueKey:Is}=q;class Ds{animateBeforeDestroy(){let t=this,e={x:t.startXPos,opacity:0},i=t.getGraphicalProps();i.singular.forEach(function(i){t[i]=t[i].animate("dataLabel"===i?{x:t[i].startXPos,y:t[i].startYPos,opacity:0}:e)}),i.plural.forEach(function(e){t[e].forEach(function(e){e.element&&e.animate(ks({x:t.startXPos},e.startYPos?{x:e.startXPos,y:e.startYPos}:{}))})})}applyOptions(t,e){let i=this.series,n=i.options.pointValKey||i.pointValKey;return ks(this,t=Ds.prototype.optionsToObject.call(this,t)),this.options=this.options?ks(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,n&&(this.y=Ds.prototype.getNestedProperty.call(this,n)),this.selected&&(this.state="select"),"name"in this&&void 0===e&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),void 0===this.x&&i?this.x=e??i.autoIncrement():As(t.x)&&i.options.relativeXValue?this.x=i.autoIncrement(t.x):"string"==typeof this.x&&(e??(e=i.chart.time.parse(this.x)),As(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,n=e.options.dataSorting,r=i.hoverPoints,s=fs(t.series.chart.renderer.globalAnimation),o=()=>{for(let e in(t.graphic||t.graphics||t.dataLabel||t.dataLabels)&&(Ns(t),t.destroyElements()),t)delete t[e]};t.legendItem&&i.legend.destroyItem(t),r&&(t.setState(),ws(r,t),r.length||(i.hoverPoints=null)),t===i.hoverPoint&&t.onMouseOut(),n?.enabled?(this.animateBeforeDestroy(),Ls(o,s.duration)):o(),i.pointCount--}this.destroyed=!0}destroyElements(t){let e=this,i=e.getGraphicalProps(t);i.singular.forEach(function(t){e[t]=e[t].destroy()}),i.plural.forEach(function(t){e[t].forEach(function(t){t?.element&&t.destroy()}),delete e[t]})}firePointEvent(t,e,i){let n=this,r=this.series.options;n.manageEvent(t),"click"===t&&r.allowPointSelect&&(i=function(t){!n.destroyed&&n.select&&n.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),Ss(n,t,e,i)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone?.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(t){let e,i,n=this,r=[],s={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&r.push("graphic","connector"),t.dataLabel&&r.push("dataLabel","dataLabelPath","dataLabelUpper"),i=r.length;i--;)n[e=r[i]]&&s.singular.push(e);return["graphic","dataLabel"].forEach(function(e){let i=e+"s";t[e]&&n[i]&&s.plural.push(i)}),s}getNestedProperty(t){if(t)return 0===t.indexOf("custom.")?Ms(t,this.options):this[t]}getZone(){let t,e=this.series,i=e.zones,n=e.zoneAxis||"y",r=0;for(t=i[0];this[n]>=t.value;)t=i[++r];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=t?.color&&!this.options.color?t.color:this.nonZonedColor,t}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=Is()),this.resolveColor(),this.dataLabelOnNull??(this.dataLabelOnNull=t.options.nullInteraction),t.chart.pointCount++,Ss(this,"afterInit")}isValid(){return(As(this.x)||this.x instanceof Date)&&As(this.y)}optionsToObject(t){let e,i=this.series,n=i.options.keys,r=n||i.pointArrayMap||["y"],s=r.length,o={},a=0,l=0;if(As(t)||null===t)o[r[0]]=t;else if(Cs(t))for(!n&&t.length>s&&("string"==(e=typeof t[0])?i.xAxis?.dateTime?o.x=i.chart.time.parse(t[0]):o.name=t[0]:"number"===e&&(o.x=t[0]),a++);l<s;)n&&void 0===t[a]||(r[l].indexOf(".")>0?Ds.prototype.setNestedProperty(o,t[a],r[l]):o[r[l]]=t[a]),a++,l++;else"object"==typeof t&&(o=t,t.dataLabels&&(i.hasDataLabels=()=>!0),t.marker&&(i._hasPointMarkers=!0));return o}pos(t,e=this.plotY){if(!this.destroyed){let{plotX:i,series:n}=this,{chart:r,xAxis:s,yAxis:o}=n,a=0,l=0;if(As(i)&&As(e))return t&&(a=s?s.pos:r.plotLeft,l=o?o.pos:r.plotTop),r.inverted&&s&&o?[o.len-e+l,s.len-i+a]:[i+a,e+l]}}resolveColor(){let t,e,i,n=this.series,r=n.chart.styledMode,s=n.chart.options.chart.colorCount;delete this.nonZonedColor,n.options.colorByPoint?(r||(t=(e=n.options.colors||n.chart.options.colors)[n.colorCounter],s=e.length),i=n.colorCounter,n.colorCounter++,n.colorCounter===s&&(n.colorCounter=0)):(r||(t=n.color),i=n.colorIndex),this.colorIndex=Os(this.options.colorIndex,i),this.color=Os(this.options.color,t)}setNestedProperty(t,e,i){return i.split(".").reduce(function(t,i,n,r){return t[i]=r.length-1===n?e:Es(t[i],!0)?t[i]:{},t[i]},t),t}shouldDraw(){return!this.isNull}tooltipFormatter(t){let{chart:e,pointArrayMap:i=["y"],tooltipOptions:n}=this.series,{valueDecimals:r="",valuePrefix:s="",valueSuffix:o=""}=n;return e.styledMode&&(t=e.tooltip?.styledModeFormat(t)||t),i.forEach(e=>{e="{point."+e,(s||o)&&(t=t.replace(RegExp(e+"}","g"),s+e+"}"+o)),t=t.replace(RegExp(e+"}","g"),e+":,."+r+"f}")}),xs(t,this,e)}update(t,e,i,n){let r,s=this,o=s.series,a=s.graphic,l=o.chart,h=o.options;function c(){s.applyOptions(t);let n=a&&s.hasMockGraphic;a&&(null===s.y?!n:n)&&(s.graphic=a.destroy(),delete s.hasMockGraphic),Es(t,!0)&&(a?.element&&t&&t.marker&&void 0!==t.marker.symbol&&(s.graphic=a.destroy()),t?.dataLabels&&s.dataLabel&&(s.dataLabel=s.dataLabel.destroy())),r=s.index;let c={};for(let t of o.dataColumnKeys())c[t]=s[t];o.dataTable.setRow(c,r),h.data[r]=Es(h.data[r],!0)||Es(t,!0)?s.options:Os(t,h.data[r]),o.isDirty=o.isDirtyData=!0,!o.fixedBox&&o.hasCartesianSeries&&(l.isDirtyBox=!0),"point"===h.legendType&&(l.isDirtyLegend=!0),e&&l.redraw(i)}e=Os(e,!0),!1===n?c():s.firePointEvent("update",{options:t},c)}remove(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)}select(t,e){let i=this,n=i.series,r=n.chart;t=Os(t,!i.selected),this.selectedStaging=t,i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,n.options.data[n.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||r.getSelectedPoints().forEach(function(t){let e=t.series;t.selected&&t!==i&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(r.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))})}),delete this.selectedStaging}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(t){t.setState()}),t.hoverPoints=t.hoverPoint=null}manageEvent(t){let e=Ps(this.series.options.point,this.options),i=e.events?.[t];!Ts(i)||this.hcEvents?.[t]&&-1!==this.hcEvents?.[t]?.map(t=>t.fn).indexOf(i)?this.importedUserEvent&&!i&&this.hcEvents?.[t]&&this.hcEvents?.[t].userEvent&&(Ns(this,t),delete this.hcEvents[t],Object.keys(this.hcEvents)||delete this.importedUserEvent):(this.importedUserEvent?.(),this.importedUserEvent=bs(this,t,i),this.hcEvents&&(this.hcEvents[t].userEvent=!0))}setState(t,e){let i,n,r,s,o=this.series,a=this.state,l=o.options.states[t||"normal"]||{},h=ys.plotOptions[o.type].marker&&o.options.marker,c=h&&!1===h.enabled,d=h?.states?.[t||"normal"]||{},u=this.marker||{},p=o.chart,g=h&&o.markerAttribs,m=o.halo,f=o.stateMarkerGraphic;if((t=t||"")===this.state&&!e||this.selected&&"select"!==t||!1===l.enabled||t&&(!1===d.enabled||c&&!1===d.enabled)||t&&u.states&&u.states[t]&&!1===u.states[t].enabled)return;if(this.state=t,g&&(i=o.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(a&&this.graphic.removeClass("highcharts-point-"+a),t&&this.graphic.addClass("highcharts-point-"+t),!p.styledMode){n=o.pointAttribs(this,t),r=Os(p.options.chart.animation,l.animation);let e=n.opacity;o.options.inactiveOtherPoints&&As(e)&&(this.dataLabels||[]).forEach(function(t){t&&!t.hasClass("highcharts-data-label-hidden")&&(t.animate({opacity:e},r),t.connector&&t.connector.animate({opacity:e},r))}),this.graphic.animate(n,r)}i&&this.graphic.animate(i,Os(p.options.chart.animation,d.animation,h.animation)),f&&f.hide()}else t&&d&&(s=u.symbol||o.symbol,f&&f.currentSymbol!==s&&(f=f.destroy()),i&&(f?f[e?"animate":"attr"]({x:i.x,y:i.y}):s&&(o.stateMarkerGraphic=f=p.renderer.symbol(s,i.x,i.y,i.width,i.height,Ps(h,d)).add(o.markerGroup),f.currentSymbol=s)),!p.styledMode&&f&&"inactive"!==this.state&&f.attr(o.pointAttribs(this,t))),f&&(f[t&&this.isInside?"show":"hide"](),f.element.point=this,f.addClass(this.getClassName(),!0));let y=l.halo,x=this.graphic||f,b=x?.visibility||"inherit";y?.size&&x&&"hidden"!==b&&!this.isCluster?(m||(o.halo=m=p.renderer.path().add(x.parentGroup)),m.show()[e?"animate":"attr"]({d:this.haloPath(y.size)}),m.attr({class:"highcharts-halo highcharts-color-"+Os(this.colorIndex,o.colorIndex)+(this.className?" "+this.className:""),visibility:b,zIndex:-1}),m.point=this,p.styledMode||m.attr(ks({fill:this.color||o.color,"fill-opacity":y.opacity},re.filterUserAttributes(y.attributes||{})))):m?.point?.haloPath&&!m.point.destroyed&&m.animate({d:m.point.haloPath(0)},null,m.hide),Ss(this,"afterSetState",{state:t})}haloPath(t){let e=this.pos();return e?this.series.chart.renderer.symbols.circle(vs(e[0],1)-t,e[1]-t,2*t,2*t):[]}}let Bs=Ds,{parse:Rs}=Et,{charts:Fs,composed:zs,isTouchDevice:Hs}=k,{addEvent:js,attr:Gs,css:Ws,extend:Vs,find:Xs,fireEvent:Us,isNumber:Ys,isObject:qs,objectEach:$s,offset:_s,pick:Ks,pushUnique:Zs,splat:Js}=q;class Qs{applyInactiveState(t=[]){let e=[];for(let i of(t.forEach(t=>{let i=t.series;e.push(i),i.linkedParent&&e.push(i.linkedParent),i.linkedSeries&&e.push.apply(e,i.linkedSeries),i.navigatorSeries&&e.push(i.navigatorSeries),i.boosted&&i.markerGroup&&e.push.apply(e,this.chart.series.filter(t=>t.markerGroup===i.markerGroup))}),this.chart.series)){let t=i.options;!1!==t.states?.inactive?.enabled&&(-1===e.indexOf(i)?i.setState("inactive",!0):t.inactiveOtherPoints&&i.setAllPointsToState("inactive"))}}destroy(){let t=this;this.eventsToUnbind.forEach(t=>t()),this.eventsToUnbind=[],!k.chartCount&&(Qs.unbindDocumentMouseUp.forEach(t=>t.unbind()),Qs.unbindDocumentMouseUp.length=0,Qs.unbindDocumentTouchEnd&&(Qs.unbindDocumentTouchEnd=Qs.unbindDocumentTouchEnd())),clearInterval(t.tooltipTimeout),$s(t,function(e,i){t[i]=void 0})}getSelectionMarkerAttrs(t,e){let i={args:{chartX:t,chartY:e},attrs:{},shapeType:"rect"};return Us(this,"getSelectionMarkerAttrs",i,i=>{let n,{chart:r,zoomHor:s,zoomVert:o}=this,{mouseDownX:a=0,mouseDownY:l=0}=r,h=i.attrs;h.x=r.plotLeft,h.y=r.plotTop,h.width=s?1:r.plotWidth,h.height=o?1:r.plotHeight,s&&(h.width=Math.max(1,Math.abs(n=t-a)),h.x=(n>0?0:n)+a),o&&(h.height=Math.max(1,Math.abs(n=e-l)),h.y=(n>0?0:n)+l)}),i}drag(t){let e,{chart:i}=this,{mouseDownX:n=0,mouseDownY:r=0}=i,{panning:s,panKey:o,selectionMarkerFill:a}=i.options.chart,l=i.plotLeft,h=i.plotTop,c=i.plotWidth,d=i.plotHeight,u=qs(s)?s.enabled:s,p=o&&t[`${o}Key`],g=t.chartX,m=t.chartY,f=this.selectionMarker;if((!f||!f.touch)&&(g<l?g=l:g>l+c&&(g=l+c),m<h?m=h:m>h+d&&(m=h+d),this.hasDragged=Math.sqrt(Math.pow(n-g,2)+Math.pow(r-m,2)),this.hasDragged>10)){e=i.isInsidePlot(n-l,r-h,{visiblePlotOnly:!0});let{shapeType:o,attrs:c}=this.getSelectionMarkerAttrs(g,m);this.hasZoom&&e&&!p&&!f&&(this.selectionMarker=f=i.renderer[o](),f.attr({class:"highcharts-selection-marker",zIndex:7}).add(),i.styledMode||f.attr({fill:a||Rs("#334eff").setOpacity(.25).get()})),f&&f.attr(c),e&&!f&&u&&i.pan(t,s)}}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 Us(this,"getSelectionBox",e),e.result}drop(t){let e,{chart:i,selectionMarker:n}=this;for(let t of i.axes)t.isPanning&&(t.isPanning=!1,(t.options.startOnTick||t.options.endOnTick||t.series.some(t=>t.boosted))&&(t.forceRedraw=!0,t.setExtremes(t.userMin,t.userMax,!1),e=!0));if(e&&i.redraw(),n&&t){if(this.hasDragged){let e=this.getSelectionBox(n);i.transform({axes:i.axes.filter(t=>t.zoomEnabled&&("xAxis"===t.coll&&this.zoomX||"yAxis"===t.coll&&this.zoomY)),selection:{originalEvent:t,xAxis:[],yAxis:[],...e},from:e})}Ys(i.index)&&(this.selectionMarker=n.destroy())}i&&Ys(i.index)&&(Ws(i.container,{cursor:i._cursor}),i.cancelClick=this.hasDragged>10,i.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[],this.hasPinchMoved=!1)}findNearestKDPoint(t,e,i){let n;return t.forEach(function(t){let r=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y"),s=t.searchPoint(i,r);qs(s,!0)&&s.series&&(!qs(n,!0)||function(t,i){let n=t.distX-i.distX,r=t.dist-i.dist,s=i.series.group?.zIndex-t.series.group?.zIndex;return 0!==n&&e?n:0!==r?r:0!==s?s:t.series.index>i.series.index?-1:1}(n,s)>0)&&(n=s)}),n}getChartCoordinatesFromPoint(t,e){let{xAxis:i,yAxis:n}=t.series,r=t.shapeArgs;if(i&&n){let s=t.clientX??t.plotX??0,o=t.plotY||0;return t.isNode&&r&&Ys(r.x)&&Ys(r.y)&&(s=r.x,o=r.y),e?{chartX:n.len+n.pos-o,chartY:i.len+i.pos-s}:{chartX:s+i.pos,chartY:o+n.pos}}if(r?.x&&r.y)return{chartX:r.x,chartY:r.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:t}=this.chart,e=_s(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};let{offsetHeight:i,offsetWidth:n}=t;return n>2&&i>2&&(this.chartPosition.scaleX=e.width/n,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,n,r,s){let o,a=[],l=function(t){return t.visible&&!(!r&&t.directTouch)&&Ks(t.options.enableMouseTracking,!0)},h=e,c={chartX:s?s.chartX:void 0,chartY:s?s.chartY:void 0,shared:r};Us(this,"beforeGetHoverData",c),o=h&&!h.stickyTracking?[h]:i.filter(t=>t.stickyTracking&&(c.filter||l)(t));let d=n&&t||!s?t:this.findNearestKDPoint(o,r,s);return h=d?.series,d&&(r&&!h.noSharedTooltip?(o=i.filter(function(t){return c.filter?c.filter(t):l(t)&&!t.noSharedTooltip})).forEach(function(t){let e=t.options?.nullInteraction,i=Xs(t.points,function(t){return!(t.x!==d.x||t.isNull&&!e)});qs(i)&&(t.boosted&&t.boost&&(i=t.boost.getPoint(i)),a.push(i))}):a.push(d)),Us(this,"afterGetHoverData",c={hoverPoint:d}),{hoverPoint:c.hoverPoint,hoverSeries:h,hoverPoints:a}}getPointFromEvent(t){let e,i=t.target;for(;i&&!e;)e=i.point,i=i.parentNode;return e}onTrackerMouseOut(t){let e=t.relatedTarget,i=this.chart.hoverSeries;this.isDirectTouch=!1,!i||!e||i.stickyTracking||this.inClass(e,"highcharts-tooltip")||this.inClass(e,"highcharts-series-"+i.index)&&this.inClass(e,"highcharts-tracker")||i.onMouseOut()}inClass(t,e){let i,n=t;for(;n;){if(i=Gs(n,"class")){if(-1!==i.indexOf(e))return!0;if(-1!==i.indexOf("highcharts-container"))return!1}n=n.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(),Us(this,"afterInit")}normalize(t,e){let i=t.touches,n=i?i.length?i.item(0):Ks(i.changedTouches,t.changedTouches)[0]:t;e||(e=this.getChartPosition());let r=n.pageX-e.left,s=n.pageY-e.top;return Vs(t,{chartX:Math.round(r/=e.scaleX),chartY:Math.round(s/=e.scaleY)})}onContainerClick(t){let e=this.chart,i=e.hoverPoint,n=this.normalize(t),r=e.plotLeft,s=e.plotTop;!e.cancelClick&&(i&&this.inClass(n.target,"highcharts-tracker")?(Us(i.series,"click",Vs(n,{point:i})),e.hoverPoint&&i.firePointEvent("click",n)):(Vs(n,this.getCoordinates(n)),e.isInsidePlot(n.chartX-r,n.chartY-s,{visiblePlotOnly:!0})&&Us(e,"click",n)))}onContainerMouseDown(t){let e=!(1&~(t.buttons||t.button));t=this.normalize(t),k.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||e)&&(this.zoomOption(t),e&&t.preventDefault?.(),this.dragStart(t))}onContainerMouseLeave(t){let{pointer:e}=Fs[Ks(Qs.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,n=this.normalize(t);this.setHoverChartIndex(t),("mousedown"===e.mouseIsDown||this.touchSelect(n))&&this.drag(n),!e.exporting?.openMenu&&(this.inClass(n.target,"highcharts-tracker")||e.isInsidePlot(n.chartX-e.plotLeft,n.chartY-e.plotTop,{visiblePlotOnly:!0}))&&!i?.shouldStickOnContact(n)&&(this.inClass(n.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(n))}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,n=this.chartPosition,r=this.normalize(t,n);!n||e.isInsidePlot(r.chartX-e.plotLeft,r.chartY-e.plotTop,{visiblePlotOnly:!0})||i?.shouldStickOnContact(r)||r.target!==e.container.ownerDocument&&this.inClass(r.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(t){t?.touches&&this.hasPinchMoved&&t?.preventDefault?.(),Fs[Ks(Qs.hoverChartIndex,-1)]?.pointer?.drop(t)}pinch(t){let e=this,{chart:i,hasZoom:n,lastTouches:r}=e,s=[].map.call(t.touches||[],t=>e.normalize(t)),o=s.length,a=1===o&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),l=i.tooltip,h=1===o&&Ks(l?.options.followTouchMove,!0);o>1?e.initiated=!0:h&&(e.initiated=!1),n&&e.initiated&&!a&&!1!==t.cancelable&&t.preventDefault(),"touchstart"===t.type?(e.pinchDown=s,e.res=!0,i.mouseDownX=t.chartX):h?this.runPointActions(e.normalize(t)):r&&(Us(i,"touchpan",{originalEvent:t,touches:s},()=>{let e=t=>{let e=t[0],i=t[1]||e;return{x:e.chartX,y:e.chartY,width:i.chartX-e.chartX,height:i.chartY-e.chartY}};i.transform({axes:i.axes.filter(t=>t.zoomEnabled&&(this.zoomHor&&t.horiz||this.zoomVert&&!t.horiz)),to:e(s),from:e(r),trigger:t.type})}),e.res&&(e.res=!1,this.reset(!1,0))),e.lastTouches=s}reset(t,e){let i=this.chart,n=i.hoverSeries,r=i.hoverPoint,s=i.hoverPoints,o=i.tooltip,a=o?.shared?s:r;t&&a&&Js(a).forEach(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?o&&a&&Js(a).length&&(o.refresh(a),o.shared&&s?s.forEach(function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))}):r&&(r.setState(r.state,!0),i.axes.forEach(function(t){t.crosshair&&r.series[t.coll]===t&&t.drawCrosshair(null,r)}))):(r&&r.onMouseOut(),s&&s.forEach(function(t){t.setState()}),n&&n.onMouseOut(),o&&o.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(t){t.hideCrosshair()}),i.hoverPoints=i.hoverPoint=void 0)}runPointActions(t,e,i){let n=this.chart,r=n.series,s=n.tooltip?.options.enabled?n.tooltip:void 0,o=!!s&&s.shared,a=e||n.hoverPoint,l=a?.series||n.hoverSeries,h=this.getHoverData(a,l,r,(!t||"touchmove"!==t.type)&&(!!e||l?.directTouch&&this.isDirectTouch),o,t);a=h.hoverPoint,l=h.hoverSeries;let c=h.hoverPoints,d=l?.tooltipOptions.followPointer&&!l.tooltipOptions.split,u=o&&l&&!l.noSharedTooltip;if(a&&(i||a!==n.hoverPoint||s?.isHidden)){if((n.hoverPoints||[]).forEach(function(t){-1===c.indexOf(t)&&t.setState()}),n.hoverSeries!==l&&l.onMouseOver(),this.applyInactiveState(c),(c||[]).forEach(function(t){t.setState("hover")}),n.hoverPoint&&n.hoverPoint.firePointEvent("mouseOut"),!a.series)return;n.hoverPoints=c,n.hoverPoint=a,a.firePointEvent("mouseOver",void 0,()=>{s&&a&&s.refresh(u?c:a,t)})}else if(d&&s&&!s.isHidden){let e=s.getAnchor([{}],t);n.isInsidePlot(e[0],e[1],{visiblePlotOnly:!0})&&s.updatePosition({plotX:e[0],plotY:e[1]})}this.unDocMouseMove||(this.unDocMouseMove=js(n.container.ownerDocument,"mousemove",t=>Fs[Qs.hoverChartIndex??-1]?.pointer?.onDocumentMouseMove(t)),this.eventsToUnbind.push(this.unDocMouseMove)),n.axes.forEach(function(e){let i,r=e.crosshair?.snap??!0;r&&((i=n.hoverPoint)&&i.series[e.coll]===e||(i=Xs(c,t=>t.series?.[e.coll]===e))),i||!r?e.drawCrosshair(t,i):e.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(js(t,"mouseenter",this.onContainerMouseEnter.bind(this)),js(t,"mouseleave",this.onContainerMouseLeave.bind(this))),Qs.unbindDocumentMouseUp.some(t=>t.doc===e)||Qs.unbindDocumentMouseUp.push({doc:e,unbind:js(e,"mouseup",this.onDocumentMouseUp.bind(this))});let i=this.chart.renderTo.parentElement;for(;i&&"BODY"!==i.tagName;)this.eventsToUnbind.push(js(i,"scroll",()=>{delete this.chartPosition})),i=i.parentElement;this.eventsToUnbind.push(js(t,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),js(t,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),Qs.unbindDocumentTouchEnd||(Qs.unbindDocumentTouchEnd=js(e,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),js(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){if(!Hs)return;let t=this.pointerCaptureEventsToUnbind,e=this.chart,i=e.container,n=Ks(e.options.tooltip?.followTouchMove,!0)&&e.series.some(t=>t.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&n?(t.push(js(i,"pointerdown",t=>{t.target?.hasPointerCapture(t.pointerId)&&t.target?.releasePointerCapture(t.pointerId)}),js(i,"pointermove",t=>{e.pointer?.getPointFromEvent(t)?.onMouseOver(t)})),e.styledMode||Ws(i,{"touch-action":"none"}),i.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!n&&(t.forEach(t=>t()),t.length=0,e.styledMode||Ws(i,{"touch-action":Ks(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=k.charts[Ks(Qs.hoverChartIndex,-1)];if(i&&i!==e){let n={relatedTarget:e.container};t&&!t?.relatedTarget&&Object.assign({},t,n),i.pointer?.onContainerMouseLeave(t||n)}i?.mouseIsDown||(Qs.hoverChartIndex=e.index)}touch(t,e){let i,{chart:n,pinchDown:r=[]}=this;this.setHoverChartIndex(),1===(t=this.normalize(t)).touches.length?n.isInsidePlot(t.chartX-n.plotLeft,t.chartY-n.plotTop,{visiblePlotOnly:!0})&&!n.exporting?.openMenu?(e&&this.runPointActions(t),"touchmove"===t.type&&(this.hasPinchMoved=i=!!r[0]&&Math.pow(r[0].chartX-t.chartX,2)+Math.pow(r[0].chartY-t.chartY,2)>=16),Ks(i,!0)&&this.pinch(t)):e&&this.reset():2===t.touches.length&&this.pinch(t)}touchSelect(t){return!(!this.chart.zooming.singleTouch||!t.touches||1!==t.touches.length)}zoomOption(t){let e,i,n=this.chart,r=n.inverted,s=n.zooming.type||"";/touch/.test(t.type)&&(s=Ks(n.zooming.pinchType,s)),this.zoomX=e=/x/.test(s),this.zoomY=i=/y/.test(s),this.zoomHor=e&&!r||i&&r,this.zoomVert=i&&!r||e&&r,this.hasZoom=e||i}}Qs.unbindDocumentMouseUp=[],function(t){t.compose=function(e){Zs(zs,"Core.Pointer")&&js(e,"beforeRender",function(){this.pointer=new t(this,this.options)})}}(Qs||(Qs={}));let to=Qs;!function(t){t.setLength=function(t,e,i){return Array.isArray(t)?(t.length=e,t):t[i?"subarray":"slice"](0,e)},t.splice=function(t,e,i,n,r=[]){if(Array.isArray(t))return Array.isArray(r)||(r=Array.from(r)),{removed:t.splice(e,i,...r),array:t};let s=Object.getPrototypeOf(t).constructor,o=t[n?"subarray":"slice"](e,e+i),a=new s(t.length-i+r.length);return a.set(t.subarray(0,e),0),a.set(r,e),a.set(t.subarray(e+i),e+r.length),{removed:o,array:a}}}(c||(c={}));let{setLength:eo,splice:io}=c,{fireEvent:no,objectEach:ro,uniqueKey:so}=q,oo=class{constructor(t={}){this.autoId=!t.id,this.columns={},this.id=t.id||so(),this.modified=this,this.rowCount=0,this.versionTag=so();let e=0;ro(t.columns||{},(t,i)=>{this.columns[i]=t.slice(),e=Math.max(e,t.length)}),this.applyRowCount(e)}applyRowCount(t){this.rowCount=t,ro(this.columns,(e,i)=>{e.length!==t&&(this.columns[i]=eo(e,t))})}deleteRows(t,e=1){if(e>0&&t<this.rowCount){let i=0;ro(this.columns,(n,r)=>{this.columns[r]=io(n,t,e).array,i=n.length}),this.rowCount=i}no(this,"afterDeleteRows",{rowIndex:t,rowCount:e}),this.versionTag=so()}getColumn(t,e){return this.columns[t]}getColumns(t,e){return(t||Object.keys(this.columns)).reduce((t,e)=>(t[e]=this.columns[e],t),{})}getRow(t,e){return(e||Object.keys(this.columns)).map(e=>this.columns[e]?.[t])}setColumn(t,e=[],i=0,n){this.setColumns({[t]:e},i,n)}setColumns(t,e,i){let n=this.rowCount;ro(t,(t,e)=>{this.columns[e]=t.slice(),n=t.length}),this.applyRowCount(n),i?.silent||(no(this,"afterSetColumns"),this.versionTag=so())}setRow(t,e=this.rowCount,i,n){let{columns:r}=this,s=i?this.rowCount+1:e+1;ro(t,(t,o)=>{let a=r[o]||!1!==n?.addColumns&&Array(s);a&&(i?a=io(a,e,0,!0,[t]).array:a[e]=t,r[o]=a)}),s>this.rowCount&&this.applyRowCount(s),n?.silent||(no(this,"afterSetRows"),this.versionTag=so())}},{extend:ao,merge:lo,pick:ho}=q;!function(t){function e(t,e,i){let n,r=this.legendItem=this.legendItem||{},{chart:s,options:o}=this,{baseline:a=0,symbolWidth:l,symbolHeight:h}=t,c=this.symbol||"circle",d=h/2,u=s.renderer,p=r.group,g=a-Math.round((t.fontMetrics?.b||h)*(i?.4:.3)),m={},f=o.marker,y=0;if(s.styledMode||(m["stroke-width"]=Math.min(o.lineWidth||0,24),o.dashStyle?m.dashstyle=o.dashStyle:"square"!==o.linecap&&(m["stroke-linecap"]="round")),r.line=u.path().addClass("highcharts-graph").attr(m).add(p),i&&(r.area=u.path().addClass("highcharts-area").add(p)),m["stroke-linecap"]&&(y=Math.min(r.line.strokeWidth(),l)/2),l){let t=[["M",y,g],["L",l-y,g]];r.line.attr({d:t}),r.area?.attr({d:[...t,["L",l-y,a],["L",y,a]]})}if(f&&!1!==f.enabled&&l){let t=Math.min(ho(f.radius,d),d);0===c.indexOf("url")&&(f=lo(f,{width:h,height:h}),t=0),r.symbol=n=u.symbol(c,l/2-t,g-t,2*t,2*t,ao({context:"legend"},f)).addClass("highcharts-point").add(p),n.isMarker=!0}}t.areaMarker=function(t,i){e.call(this,t,i,!0)},t.lineMarker=e,t.rectangle=function(t,e){let i=e.legendItem||{},n=t.symbolHeight,r=t.options.squareSymbol;i.symbol=this.chart.renderer.rect(r?(t.symbolWidth-n)/2:0,t.baseline-n+1,r?n:t.symbolWidth,n,ho(t.options.symbolRadius,n/2)).addClass("highcharts-point").attr({zIndex:3}).add(i.group)}}(d||(d={}));let co=d,{defaultOptions:uo}=bt,{extend:po,extendClass:go,merge:mo}=q;!function(t){function e(e,i){let n=uo.plotOptions||{},r=i.defaultOptions,s=i.prototype;return s.type=e,s.pointClass||(s.pointClass=Bs),!t.seriesTypes[e]&&(r&&(n[e]=r),t.seriesTypes[e]=i,!0)}t.seriesTypes=k.seriesTypes,t.registerSeriesType=e,t.seriesType=function(i,n,r,s,o){let a=uo.plotOptions||{};if(a[i]=mo(a[n=n||""],r),delete t.seriesTypes[i],e(i,go(t.seriesTypes[n]||Ko,s)),t.seriesTypes[i].prototype.type=i,o){class e extends Bs{}po(e.prototype,o),t.seriesTypes[i].prototype.pointClass=e}return t.seriesTypes[i]}}(u||(u={}));let fo=u,{animObject:yo,setAnimation:xo}=Xt,{defaultOptions:bo}=bt,{registerEventOptions:vo}=On,{svg:wo,win:ko}=k,{seriesTypes:So}=fo,{format:Mo}=we,{arrayMax:Co,arrayMin:To,clamp:Ao,correctFloat:Eo,crisp:Po,defined:Oo,destroyObjectProperties:Lo,diffObjects:No,erase:Io,error:Do,extend:Bo,find:Ro,fireEvent:Fo,getClosestDistance:zo,getNestedProperty:Ho,insertItem:jo,isArray:Go,isNumber:Wo,isString:Vo,merge:Xo,objectEach:Uo,pick:Yo,removeEvent:qo,syncTimeout:$o}=q;class _o{constructor(){this.zoneAxis="y"}init(t,e){let i;Fo(this,"init",{options:e}),this.dataTable??(this.dataTable=new oo);let n=t.series;this.eventsToUnbind=[],this.chart=t,this.options=this.setOptions(e);let r=this.options,s=!1!==r.visible;this.linkedSeries=[],this.bindAxes(),Bo(this,{name:r.name,state:"",visible:s,selected:!0===r.selected}),vo(this,r);let o=r.events;(o?.click||r.point?.events?.click||r.allowPointSelect)&&(t.runTrackerClick=!0),this.getColor(),this.getSymbol(),this.isCartesian&&(t.hasCartesianSeries=!0),n.length&&(i=n[n.length-1]),this._i=Yo(i?._i,-1)+1,this.opacity=this.options.opacity,t.orderItems("series",jo(this,n)),r.dataSorting?.enabled?this.setDataSortingOptions():this.points||this.data||this.setData(r.data,!1),Fo(this,"afterInit")}is(t){return So[t]&&this instanceof So[t]}bindAxes(){let t,e=this,i=e.options,n=e.chart;Fo(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(r){(n[r]||[]).forEach(function(n){t=n.options,(Yo(i[r],0)===n.index||void 0!==i[r]&&i[r]===t.id)&&(jo(e,n.series),e[r]=n,n.isDirty=!0)}),e[r]||e.optionalAxis===r||Do(18,!0,n)})}),Fo(this,"afterBindAxes")}hasData(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.dataTable.rowCount>0}hasMarkerChanged(t,e){let i=t.marker,n=e.marker||{};return i&&(n.enabled&&!i.enabled||n.symbol!==i.symbol||n.height!==i.height||n.width!==i.width)}autoIncrement(t){let e,i=this.options,{pointIntervalUnit:n,relativeXValue:r}=this.options,s=this.chart.time,o=this.xIncrement??s.parse(i.pointStart)??0;if(this.pointInterval=e=Yo(this.pointInterval,i.pointInterval,1),r&&Wo(t)&&(e*=t),n){let t=s.toParts(o);"day"===n?t[2]+=e:"month"===n?t[1]+=e:"year"===n&&(t[0]+=e),e=s.makeTime.apply(s,t)-o}return r&&Wo(t)?o+e:(this.xIncrement=o+e,o)}setDataSortingOptions(){let t=this.options;Bo(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),Oo(t.pointRange)||(t.pointRange=1)}setOptions(t){let e,i=this.chart,n=i.options.plotOptions,r=i.userOptions||{},s=Xo(t),o=i.styledMode,a={plotOptions:n,userOptions:s};Fo(this,"setOptions",a);let l=a.plotOptions[this.type],h=r.plotOptions||{},c=h.series||{},d=bo.plotOptions[this.type]||{},u=h[this.type]||{};l.dataLabels=this.mergeArrays(d.dataLabels,l.dataLabels),this.userOptions=a.userOptions;let p=Xo(l,n.series,u,s);this.tooltipOptions=Xo(bo.tooltip,bo.plotOptions.series?.tooltip,d?.tooltip,i.userOptions.tooltip,h.series?.tooltip,u.tooltip,s.tooltip),this.stickyTracking=Yo(s.stickyTracking,u.stickyTracking,c.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||p.stickyTracking),null===l.marker&&delete p.marker,this.zoneAxis=p.zoneAxis||"y";let g=this.zones=(p.zones||[]).map(t=>({...t}));return(p.negativeColor||p.negativeFillColor)&&!p.zones&&(e={value:p[this.zoneAxis+"Threshold"]||p.threshold||0,className:"highcharts-negative"},o||(e.color=p.negativeColor,e.fillColor=p.negativeFillColor),g.push(e)),g.length&&Oo(g[g.length-1].value)&&g.push(o?{}:{color:this.color,fillColor:this.fillColor}),Fo(this,"afterSetOptions",{options:p}),p}getName(){return this.options.name??Mo(this.chart.options.lang.seriesName,this,this.chart)}getCyclic(t,e,i){let n,r,s=this.chart,o=`${t}Index`,a=`${t}Counter`,l=i?.length||s.options.chart.colorCount;!e&&(Oo(r=Yo("color"===t?this.options.colorIndex:void 0,this[o]))?n=r:(s.series.length||(s[a]=0),n=s[a]%l,s[a]+=1),i&&(e=i[n])),void 0!==n&&(this[o]=n),this[t]=e}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||bo.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)}getColumn(t,e){return(e?this.dataTable.modified:this.dataTable).getColumn(t,!0)||[]}findPointIndex(t,e){let i,n,r,{id:s,x:o}=t,a=this.points,l=this.options.dataSorting,h=this.cropStart||0;if(s){let t=this.chart.get(s);t instanceof Bs&&(i=t)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let e=e=>!e.touched&&e.index===t.index;if(l?.matchByName?e=e=>!e.touched&&e.name===t.name:this.options.relativeXValue&&(e=e=>!e.touched&&e.options.x===t.x),!(i=Ro(a,e)))return}return i&&void 0!==(r=i?.index)&&(n=!0),void 0===r&&Wo(o)&&(r=this.getColumn("x").indexOf(o,e)),-1!==r&&void 0!==r&&this.cropped&&(r=r>=h?r-h:r),!n&&Wo(r)&&a[r]?.touched&&(r=void 0),r}updateData(t,e){let i,n,r,s,{options:o,requireSorting:a}=this,l=o.dataSorting,h=this.points,c=[],d=t.length===h.length,u=!0;if(this.xIncrement=null,t.forEach((t,e)=>{let n,r=Oo(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},{id:u,x:p}=r;u||Wo(p)?(-1===(n=this.findPointIndex(r,s))||void 0===n?c.push(t):h[n]&&t!==o.data?.[n]?(h[n].update(t,!1,void 0,!1),h[n].touched=!0,a&&(s=n+1)):h[n]&&(h[n].touched=!0),(!d||e!==n||l?.enabled||this.hasDerivedData)&&(i=!0)):c.push(t)},this),i)for(n=h.length;n--;)(r=h[n])&&!r.touched&&r.remove?.(!1,e);else d&&!l?.enabled?(t.forEach((t,e)=>{t===h[e].y||h[e].destroyed||h[e].update(t,!1,void 0,!1)}),c.length=0):u=!1;if(h.forEach(t=>{t&&(t.touched=!1)}),!u)return!1;c.forEach(t=>{this.addPoint(t,!1,void 0,void 0,!1)},this);let p=this.getColumn("x");return null===this.xIncrement&&p.length&&(this.xIncrement=Co(p),this.autoIncrement()),!0}dataColumnKeys(){return["x",...this.pointArrayMap||["y"]]}setData(t,e=!0,i,n){let r,s,o,a=this.points,l=a?.length||0,h=this.options,c=this.chart,d=h.dataSorting,u=this.xAxis,p=h.turboThreshold,g=this.dataTable,m=this.dataColumnKeys(),f=this.pointValKey||"y",y=(this.pointArrayMap||[]).length,x=h.keys,b=0,v=1;c.options.chart.allowMutatingData||(h.data&&delete this.options.data,this.userOptions.data&&delete this.userOptions.data,o=Xo(!0,t));let w=(t=o||t||[]).length;if(d?.enabled&&(t=this.sortData(t)),c.options.chart.allowMutatingData&&!1!==n&&w&&l&&!this.cropped&&!this.hasGroupedData&&this.visible&&!this.boosted&&(s=this.updateData(t,i)),!s){this.xIncrement=null,this.colorCounter=0;let e=p&&!h.relativeXValue&&w>p;if(e){let i=this.getFirstValidPoint(t),n=this.getFirstValidPoint(t,w-1,-1),r=t=>!(!Go(t)||!x&&!Wo(t[0]));if(Wo(i)&&Wo(n)){let e=[],i=[];for(let n of t)e.push(this.autoIncrement()),i.push(n);g.setColumns({x:e,[f]:i})}else if(r(i)&&r(n))if(y){let e=+(i.length===y),n=Array(m.length).fill(0).map(()=>[]);for(let i of t){e&&n[0].push(this.autoIncrement());for(let t=e;t<=y;t++)n[t]?.push(i[t-e])}g.setColumns(m.reduce((t,e,i)=>(t[e]=n[i],t),{}))}else{x&&(b=x.indexOf("x"),v=x.indexOf("y"),b=b>=0?b:0,v=v>=0?v:1),1===i.length&&(v=0);let e=[],n=[];if(b===v)for(let i of t)e.push(this.autoIncrement()),n.push(i[v]);else for(let i of t)e.push(i[b]),n.push(i[v]);g.setColumns({x:e,[f]:n})}else e=!1}if(!e){let e=m.reduce((t,e)=>(t[e]=[],t),{});for(r=0;r<w;r++){let i=this.pointClass.prototype.applyOptions.apply({series:this},[t[r]]);for(let t of m)e[t][r]=i[t]}g.setColumns(e)}for(Vo(this.getColumn("y")[0])&&Do(14,!0,c),this.data=[],this.options.data=this.userOptions.data=t,r=l;r--;)a[r]?.destroy();u&&(u.minRange=u.userMinRange),this.isDirty=c.isDirtyBox=!0,this.isDirtyData=!!a,i=!1}"point"===h.legendType&&(this.processData(),this.generatePoints()),e&&c.redraw(i)}sortData(t){let e=this,i=e.options.dataSorting.sortKey||"y",n=function(t,e){return Oo(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach(function(i,r){t[r]=n(e,i),t[r].index=r},this),t.concat().sort((t,e)=>{let n=Ho(i,t),r=Ho(i,e);return r<n?-1:+(r>n)}).forEach(function(t,e){t.x=e},this),e.linkedSeries&&e.linkedSeries.forEach(function(e){let i=e.options,r=i.data;!i.dataSorting?.enabled&&r&&(r.forEach(function(i,s){r[s]=n(e,i),t[s]&&(r[s].x=t[s].x,r[s].index=s)}),e.setData(r,!1))}),t}getProcessedData(t){let e,i,n,r,s,o=this,{dataTable:a,isCartesian:l,options:h,xAxis:c}=o,d=h.cropThreshold,u=t||o.getExtremesFromAll,p=c?.logarithmic,g=a.rowCount,m=0,f=o.getColumn("x"),y=a,x=!1;return c&&(r=(n=c.getExtremes()).min,s=n.max,x=!(!c.categories||c.names.length),l&&o.sorted&&!u&&(!d||g>d||o.forceCrop)&&(f[g-1]<r||f[0]>s?y=new oo:o.getColumn(o.pointValKey||"y").length&&(f[0]<r||f[g-1]>s)&&(y=(e=this.cropData(a,r,s)).modified,m=e.start,i=!0))),f=y.getColumn("x")||[],{modified:y,cropped:i,cropStart:m,closestPointRange:zo([p?f.map(p.log2lin):f],()=>o.requireSorting&&!x&&Do(15,!1,o.chart))}}processData(t){let e=this.dataTable;if(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!t)return!1;let i=this.getProcessedData();e.modified=i.modified,this.cropped=i.cropped,this.cropStart=i.cropStart,this.closestPointRange=this.basePointRange=i.closestPointRange,Fo(this,"afterProcessData")}cropData(t,e,i){let n,r,s=t.getColumn("x",!0)||[],o=s.length,a={},l=0,h=o;for(n=0;n<o;n++)if(s[n]>=e){l=Math.max(0,n-1);break}for(r=n;r<o;r++)if(s[r]>i){h=r+1;break}for(let e of this.dataColumnKeys()){let i=t.getColumn(e,!0);i&&(a[e]=i.slice(l,h))}return{modified:new oo({columns:a}),start:l,end:h}}generatePoints(){let t,e,i,n,r,s=this.options,o=this.processedData||s.data,a=this.dataTable.modified,l=this.getColumn("x",!0),h=this.pointClass,c=a.rowCount,d=this.cropStart||0,u=this.hasGroupedData,p=s.keys,g=[],m=s.dataGrouping?.groupAll?d:0,f=this.xAxis?.categories,y=this.pointArrayMap||["y"],x=this.dataColumnKeys(),b=this.data;if(!b&&!u){let t=[];t.length=o?.length||0,b=this.data=t}for(p&&u&&(this.options.keys=!1),n=0;n<c;n++)e=d+n,u?((i=new h(this,a.getRow(n,x)||[])).dataGroup=this.groupMap[m+n],i.dataGroup?.options&&(i.options=i.dataGroup.options,Bo(i,i.dataGroup.options),delete i.dataLabels)):(i=b[e],r=o?o[e]:a.getRow(n,y),i||void 0===r||(b[e]=i=new h(this,r,l[n]))),i&&(i.index=u?m+n:e,g[n]=i,i.category=f?.[i.x]??i.x,i.key=i.name??i.category);if(this.options.keys=p,b&&(c!==(t=b.length)||u))for(n=0;n<t;n++)n!==d||u||(n+=c),b[n]&&(b[n].destroyElements(),b[n].plotX=void 0);this.data=b,this.points=g,Fo(this,"afterGeneratePoints")}getXExtremes(t){return{min:To(t),max:Co(t)}}getExtremes(t,e){let i,n,r,{xAxis:s,yAxis:o}=this,a=e||this.getExtremesFromAll||this.options.getExtremesFromAll,l=a&&this.cropped?this.dataTable:this.dataTable.modified,h=l.rowCount,c=t||this.stackedYData,d=c?[c]:(this.keysAffectYAxis||this.pointArrayMap||["y"])?.map(t=>l.getColumn(t,!0)||[])||[],u=this.getColumn("x",!0),p=[],g=this.requireSorting&&!this.is("column")?1:0,m=!!o&&o.positiveValuesOnly,f=a||this.cropped||!s,y=0,x=0;for(s&&(y=(i=s.getExtremes()).min,x=i.max),r=0;r<h;r++)if(n=u[r],f||(u[r+g]||n)>=y&&(u[r-g]||n)<=x)for(let t of d){let e=t[r];Wo(e)&&(e>0||!m)&&p.push(e)}let b={activeYData:p,dataMin:To(p),dataMax:Co(p)};return Fo(this,"afterGetExtremes",{dataExtremes:b}),b}applyExtremes(){let t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t}getFirstValidPoint(t,e=0,i=1){let n=t.length,r=e;for(;r>=0&&r<n;){if(Oo(t[r]))return t[r];r+=i}}translate(){this.generatePoints();let t,e,i,n,r=this.options,s=r.stacking,o=this.xAxis,a=this.enabledDataSorting,l=this.yAxis,h=this.points,c=h.length,d=this.pointPlacementToXValue(),u=!!d,p=r.threshold,g=r.startFromThreshold?p:0,m=r?.nullInteraction&&l.len,f=Number.MAX_VALUE;function y(t){return Ao(t,-1e9,1e9)}for(t=0;t<c;t++){let r,c,x,b=h[t],v=b.x,w=b.y,k=b.low,S=s&&l.stacking?.stacks[(this.negStacks&&w<(g?0:p)?"-":"")+this.stackKey];b.plotX=Wo(e=o.translate(v,!1,!1,!1,!0,d))?Eo(y(e)):void 0,s&&this.visible&&S&&S[v]&&(n=this.getStackIndicator(n,v,this.index),!b.isNull&&n.key&&(x=(c=S[v]).points[n.key]),c&&Go(x)&&(k=x[0],w=x[1],k===g&&n.key===S[v].base&&(k=Yo(Wo(p)?p:l.min)),l.positiveValuesOnly&&Oo(k)&&k<=0&&(k=void 0),b.total=b.stackTotal=Yo(c.total),b.percentage=Oo(b.y)&&c.total?b.y/c.total*100:void 0,b.stackY=w,this.irregularWidths||c.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),b.yBottom=Oo(k)?y(l.translate(k,!1,!0,!1,!0)):void 0,this.dataModify&&(w=this.dataModify.modifyValue(w,t)),Wo(w)&&void 0!==b.plotX?r=Wo(r=l.translate(w,!1,!0,!1,!0))?y(r):void 0:!Wo(w)&&m&&(r=m),b.plotY=r,b.isInside=this.isPointInside(b),b.clientX=u?Eo(o.translate(v,!1,!1,!1,!0,d)):e,b.negative=(b.y||0)<(p||0),b.isNull||!1===b.visible||(void 0!==i&&(f=Math.min(f,Math.abs(e-i))),i=e),b.zone=this.zones.length?b.getZone():void 0,!b.graphic&&this.group&&a&&(b.isNew=!0)}this.closestPointRangePx=f,Fo(this,"afterTranslate")}getValidPoints(t,e,i){let n=this.chart;return(t||this.points||[]).filter(function(t){let{plotX:r,plotY:s}=t;return!(!i&&(t.isNull||!Wo(s))||e&&!n.isInsidePlot(r,s,{inverted:n.inverted})||!1===t.visible)})}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}setClip(){let{chart:t,group:e,markerGroup:i}=this,n=t.sharedClips,r=t.renderer,s=t.getClipBox(this),o=this.getSharedClipKey(),a=n[o];a?a.animate(s):n[o]=a=r.clipRect(s),e&&e.clip(!1===this.options.clip?void 0:a),i&&i.clip()}animate(t){let{chart:e,group:i,markerGroup:n}=this,r=e.inverted,s=yo(this.options.animation),o=[this.getSharedClipKey(),s.duration,s.easing,s.defer].join(","),a=e.sharedClips[o],l=e.sharedClips[o+"m"];if(t&&i){let t=e.getClipBox(this);a?a.attr("height",t.height):(t.width=0,r&&(t.x=e.plotHeight),a=e.renderer.clipRect(t),e.sharedClips[o]=a,l=e.renderer.clipRect({x:-99,y:-99,width:r?e.plotWidth+199:99,height:r?99:e.plotHeight+199}),e.sharedClips[o+"m"]=l),i.clip(a),n?.clip(l)}else if(a&&!a.hasClass("highcharts-animating")){let t=e.getClipBox(this),i=s.step;(n?.element.childNodes.length||e.series.length>1)&&(s.step=function(t,e){i&&i.apply(e,arguments),"width"===e.prop&&l?.element&&l.attr(r?"height":"width",t+99)}),a.addClass("highcharts-animating").animate(t,s)}}afterAnimate(){this.setClip(),Uo(this.chart.sharedClips,(t,e,i)=>{t&&!this.chart.container.querySelector(`[clip-path="url(#${t.id})"]`)&&(t.destroy(),delete i[e])}),this.finishedAnimating=!0,Fo(this,"afterAnimate")}drawPoints(t=this.points){let e,i,n,r,s,o,a,l=this.chart,h=l.styledMode,{colorAxis:c,options:d}=this,u=d.marker,p=d.nullInteraction,g=this[this.specialGroup||"markerGroup"],m=this.xAxis,f=Yo(u.enabled,!m||!!m.isRadial||null,this.closestPointRangePx>=u.enabledThreshold*u.radius);if(!1!==u.enabled||this._hasPointMarkers)for(e=0;e<t.length;e++){r=(n=(i=t[e]).graphic)?"animate":"attr",s=i.marker||{},o=!!i.marker;let d=i.isNull;if(!(f&&!Oo(s.enabled)||s.enabled)||d&&!p||!1===i.visible)n&&(i.graphic=n.destroy());else{let t=Yo(s.symbol,this.symbol,"rect");a=this.markerAttribs(i,i.selected&&"select"),this.enabledDataSorting&&(i.startXPos=m.reversed?-(a.width||0):m.width);let e=!1!==i.isInside;if(!n&&e&&((a.width||0)>0||i.hasImage)&&(i.graphic=n=l.renderer.symbol(t,a.x,a.y,a.width,a.height,o?s:u).add(g),this.enabledDataSorting&&l.hasRendered&&(n.attr({x:i.startXPos}),r="animate")),n&&"animate"===r&&n[e?"show":"hide"](e).animate(a),n){let t=this.pointAttribs(i,h||!i.selected?void 0:"select");h?c&&n.css({fill:t.fill}):n[r](t)}n&&n.addClass(i.getClassName(),!0)}}}markerAttribs(t,e){let i,n,r=this.options,s=r.marker,o=t.marker||{},a=o.symbol||s.symbol,l={},h=Yo(o.radius,s?.radius);e&&(i=s.states[e],n=o.states&&o.states[e],h=Yo(n?.radius,i?.radius,h&&h+(i?.radiusPlus||0))),t.hasImage=a&&0===a.indexOf("url"),t.hasImage&&(h=0);let c=t.pos();return Wo(h)&&c&&(r.crisp&&(c[0]=Po(c[0],t.hasImage?0:"rect"===a?s?.lineWidth||0:1)),l.x=c[0]-h,l.y=c[1]-h),h&&(l.width=l.height=2*h),l}pointAttribs(t,e){let i,n,r,s,o=this.options,a=o.marker,l=t?.options,h=l?.marker||{},c=l?.color,d=t?.color,u=t?.zone?.color,p=this.color,g=Yo(h.lineWidth,a.lineWidth),m=t?.isNull&&o.nullInteraction?0:1;return p=c||u||d||p,r=h.fillColor||a.fillColor||p,s=h.lineColor||a.lineColor||p,i=a.states[e=e||"normal"]||{},g=Yo((n=h.states&&h.states[e]||{}).lineWidth,i.lineWidth,g+Yo(n.lineWidthPlus,i.lineWidthPlus,0)),r=n.fillColor||i.fillColor||r,s=n.lineColor||i.lineColor||s,{stroke:s,"stroke-width":g,fill:r,opacity:m=Yo(n.opacity,i.opacity,m)}}destroy(t){let e,i,n=this,r=n.chart,s=/AppleWebKit\/533/.test(ko.navigator.userAgent),o=n.data||[];for(Fo(n,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(n.axisTypes||[]).forEach(function(t){i=n[t],i?.series&&(Io(i.series,n),i.isDirty=i.forceRedraw=!0)}),n.legendItem&&n.chart.legend.destroyItem(n),e=o.length;e--;)o[e]?.destroy?.();for(let t of n.zones)Lo(t,void 0,!0);q.clearTimeout(n.animationTimeout),Uo(n,function(t,e){t instanceof ai&&!t.survive&&t[s&&"group"===e?"hide":"destroy"]()}),r.hoverSeries===n&&(r.hoverSeries=void 0),Io(r.series,n),r.orderItems("series"),Uo(n,function(e,i){t&&"hcEvents"===i||delete n[i]})}applyZones(){let{area:t,chart:e,graph:i,zones:n,points:r,xAxis:s,yAxis:o,zoneAxis:a}=this,{inverted:l,renderer:h}=e,c=this[`${a}Axis`],{isXAxis:d,len:u=0,minPointOffset:p=0}=c||{},g=(i?.strokeWidth()||0)/2+1,m=(t,e=0,i=0)=>{l&&(i=u-i);let{translated:n=0,lineClip:r}=t,s=i-n;r?.push(["L",e,Math.abs(s)<g?i-g*(s<=0?-1:1):n])};if(n.length&&(i||t)&&c&&Wo(c.min)){let e=c.getExtremes().max+p,g=t=>{t.forEach((e,i)=>{("M"===e[0]||"L"===e[0])&&(t[i]=[e[0],d?u-e[1]:e[1],d?e[2]:u-e[2]])})};if(n.forEach(t=>{t.lineClip=[],t.translated=Ao(c.toPixels(Yo(t.value,e),!0)||0,0,u)}),i&&!this.showLine&&i.hide(),t&&t.hide(),"y"===a&&r.length<s.len)for(let t of r){let{plotX:e,plotY:i,zone:r}=t,s=r&&n[n.indexOf(r)-1];r&&m(r,e,i),s&&m(s,e,i)}let f=[],y=c.toPixels(c.getExtremes().min-p,!0);n.forEach(e=>{let n=e.lineClip||[],r=Math.round(e.translated||0);s.reversed&&n.reverse();let{clip:a,simpleClip:c}=e,u=0,p=0,m=s.len,x=o.len;d?(u=r,m=y):(p=r,x=y);let b=[["M",u,p],["L",m,p],["L",m,x],["L",u,x],["Z"]],v=[b[0],...n,b[1],b[2],...f,b[3],b[4]];f=n.reverse(),y=r,l&&(g(v),t&&g(b)),a?(a.animate({d:v}),c?.animate({d:b})):(a=e.clip=h.path(v),t&&(c=e.simpleClip=h.path(b))),i&&e.graph?.clip(a),t&&e.area?.clip(c)})}else this.visible&&(i&&i.show(),t&&t.show())}plotGroup(t,e,i,n,r){let s=this[t],o=!s,a={visibility:i,zIndex:n||.1};return Oo(this.opacity)&&!this.chart.styledMode&&"inactive"!==this.state&&(a.opacity=this.opacity),s||(this[t]=s=this.chart.renderer.g().add(r)),s.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(Oo(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(s.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),s.attr(a)[o?"attr":"animate"](this.getPlotBox(e)),s}getPlotBox(t){let e=this.xAxis,i=this.yAxis,n=this.chart,r=n.inverted&&!n.polar&&e&&this.invertible&&"series"===t;n.inverted&&(e=i,i=this.xAxis);let s={scale:1,translateX:e?e.left:n.plotLeft,translateY:i?i.top:n.plotTop,name:t};Fo(this,"getPlotBox",s);let{scale:o,translateX:a,translateY:l}=s;return{translateX:a,translateY:l,rotation:90*!!r,rotationOriginX:r?o*(e.len-i.len)/2:0,rotationOriginY:r?o*(e.len+i.len)/2:0,scaleX:r?-o:o,scaleY:o}}removeEvents(t){let{eventsToUnbind:e}=this;t||qo(this),e.length&&(e.forEach(t=>{t()}),e.length=0)}render(){let t=this,{chart:e,options:i,hasRendered:n}=t,r=yo(i.animation),s=t.visible?"inherit":"hidden",o=i.zIndex,a=e.seriesGroup,l=t.finishedAnimating?0:r.duration;Fo(this,"render"),t.plotGroup("group","series",s,o,a),t.markerGroup=t.plotGroup("markerGroup","markers",s,o,a),!1!==i.clip&&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?.(),n||(l&&r.defer&&(l+=r.defer),t.animationTimeout=$o(()=>{t.afterAnimate()},l||0)),t.isDirty=!1,t.hasRendered=!0,Fo(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:n}=this,r=this.chart.inverted;return this.searchKDTree({clientX:r?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:r?n.len-t.chartX+n.pos:t.chartY-n.pos},e,t)}buildKDTree(t){this.buildingKdTree=!0;let e=this,i=e.options,n=i.findNearestPointBy.indexOf("y")>-1?2:1;delete e.kdTree,$o(function(){e.kdTree=function t(i,n,r){let s,o,a=i?.length;if(a)return s=e.kdAxisArray[n%r],i.sort((t,e)=>(t[s]||0)-(e[s]||0)),{point:i[o=Math.floor(a/2)],left:t(i.slice(0,o),n+1,r),right:t(i.slice(o+1),n+1,r)}}(e.getValidPoints(void 0,!e.directTouch,i?.nullInteraction),n,n),e.buildingKdTree=!1},i.kdNow||"touchstart"===t?.type?0:1)}searchKDTree(t,e,i,n,r){let s=this,[o,a]=this.kdAxisArray,l=e?"distX":"dist",h=(s.options.findNearestPointBy||"").indexOf("y")>-1?2:1,c=!!s.isBubble,d=n||((t,e,i)=>{let n=t[i]||0,r=e[i]||0;return[n===r&&t.index>e.index||n<r?t:e,!1]}),u=r||((t,e)=>t<e);if(this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function t(e,i,n,r){let h=i.point,p=s.kdAxisArray[n%r],g=h,m=!1;!function(t,e){let i=t[o],n=e[o],r=Oo(i)&&Oo(n)?i-n:null,s=t[a],l=e[a],h=Oo(s)&&Oo(l)?s-l:0,d=c&&e.marker?.radius||0;e.dist=Math.sqrt((r&&r*r||0)+h*h)-d,e.distX=Oo(r)?Math.abs(r)-d:Number.MAX_VALUE}(e,h);let f=(e[p]||0)-(h[p]||0)+(c&&h.marker?.radius||0),y=f<0?"left":"right",x=f<0?"right":"left";return i[y]&&([g,m]=d(h,t(e,i[y],n+1,r),l)),i[x]&&u(Math.sqrt(f*f),g[l],m)&&(g=d(g,t(e,i[x],n+1,r),l)[0]),g}(t,this.kdTree,h,h)}pointPlacementToXValue(){let{options:t,xAxis:e}=this,i=t.pointPlacement;return"between"===i&&(i=e.reversed?-.5:.5),Wo(i)?i*(t.pointRange||e.pointRange):0}isPointInside(t){let{chart:e,xAxis:i,yAxis:n}=this,{plotX:r=-1,plotY:s=-1}=t;return s>=0&&s<=(n?n.len:e.plotHeight)&&r>=0&&r<=(i?i.len:e.plotWidth)}drawTracker(){let t=this,e=t.options,i=e.trackByArea,n=[].concat((i?t.areaPath:t.graphPath)||[]),r=t.chart,s=r.pointer,o=r.renderer,a=r.options.tooltip?.snap||0,l=()=>{e.enableMouseTracking&&r.hoverSeries!==t&&t.onMouseOver()},h="rgba(192,192,192,"+(wo?1e-4:.002)+")",c=t.tracker;c?c.attr({d:n}):t.graph&&(t.tracker=c=o.path(n).attr({visibility:t.visible?"inherit":"hidden",zIndex:2}).addClass(i?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),r.styledMode||c.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:h,fill:i?h:"none","stroke-width":t.graph.strokeWidth()+(i?0:2*a)}),[t.tracker,t.markerGroup,t.dataLabelsGroup].forEach(t=>{t&&(t.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",t=>{s?.onTrackerMouseOut(t)}),e.cursor&&!r.styledMode&&t.css({cursor:e.cursor}),t.on("touchstart",l))})),Fo(this,"afterDrawTracker")}addPoint(t,e,i,n,r){let s,o,a=this.options,{chart:l,data:h,dataTable:c,xAxis:d}=this,u=d?.hasNames&&d.names,p=a.data,g=this.getColumn("x");e=Yo(e,!0);let m={series:this};this.pointClass.prototype.applyOptions.apply(m,[t]);let f=m.x;if(o=g.length,this.requireSorting&&f<g[o-1])for(s=!0;o&&g[o-1]>f;)o--;c.setRow(m,o,!0,{addColumns:!1}),u&&m.name&&(u[f]=m.name),p?.splice(o,0,t),(s||this.processedData)&&(this.data.splice(o,0,null),this.processData()),"point"===a.legendType&&this.generatePoints(),i&&(h[0]&&h[0].remove?h[0].remove(!1):([h,p].filter(Oo).forEach(t=>{t.shift()}),c.deleteRows(0))),!1!==r&&Fo(this,"addPoint",{point:m}),this.isDirty=!0,this.isDirtyData=!0,e&&l.redraw(n)}removePoint(t,e,i){let n=this,{chart:r,data:s,points:o,dataTable:a}=n,l=s[t],h=function(){[o?.length===s.length?o:void 0,s,n.options.data].filter(Oo).forEach(e=>{e.splice(t,1)}),a.deleteRows(t),l?.destroy(),n.isDirty=!0,n.isDirtyData=!0,e&&r.redraw()};xo(i,r),e=Yo(e,!0),l?l.firePointEvent("remove",null,h):h()}remove(t,e,i,n){let r=this,s=r.chart;function o(){r.destroy(n),s.isDirtyLegend=s.isDirtyBox=!0,s.linkSeries(n),Yo(t,!0)&&s.redraw(e)}!1!==i?Fo(r,"remove",null,o):o()}update(t,e){Fo(this,"update",{options:t=No(t,this.userOptions)});let i,n,r=this,s=r.chart,o=r.userOptions,a=r.initialType||r.type,l=s.options.plotOptions,h=So[a].prototype,c=r.finishedAnimating&&{animation:!1},d={},u=_o.keepProps.slice(),p=t.type||o.type||s.options.chart.type,g=!(this.hasDerivedData||p&&p!==this.type||void 0!==t.keys||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||t.joinBy||t.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(t=>r.hasOptionChanged(t)));p=p||a,g?(u.push.apply(u,_o.keepPropsForPoints),!1!==t.visible&&u.push("area","graph"),r.parallelArrays.forEach(function(t){u.push(t+"Data")}),t.data&&(t.dataSorting&&Bo(r.options.dataSorting,t.dataSorting),this.setData(t.data,!1))):this.dataTable.modified=this.dataTable,t=Xo(o,{index:void 0===o.index?r.index:o.index,pointStart:l?.series?.pointStart??o.pointStart??r.getColumn("x")[0]},!g&&{data:r.options.data},t,c),g&&t.data&&(t.data=r.options.data),(u=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(u)).forEach(function(t){u[t]=r[t],delete r[t]});let m=!1;if(So[p]){if(m=p!==r.type,r.remove(!1,!1,!1,!0),m)if(s.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(r,So[p].prototype);else{let t=Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents;for(n in h)r[n]=void 0;Bo(r,So[p].prototype),t?r.hcEvents=t:delete r.hcEvents}}else Do(17,!0,s,{missingModuleFor:p});if(u.forEach(function(t){r[t]=u[t]}),r.init(s,t),g&&this.points)for(let t of(!1===(i=r.options).visible?(d.graphic=1,d.dataLabel=1):(this.hasMarkerChanged(i,o)&&(d.graphic=1),r.hasDataLabels?.()||(d.dataLabel=1)),this.points))t?.series&&(t.resolveColor(),Object.keys(d).length&&t.destroyElements(d),!1===i.showInLegend&&t.legendItem&&s.legend.destroyItem(t));r.initialType=a,s.linkSeries(),s.setSortedData(),m&&r.linkedSeries.length&&(r.isDirtyData=!0),Fo(this,"afterUpdate"),Yo(e,!0)&&s.redraw(!!g&&void 0)}setName(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0}hasOptionChanged(t){let e=this.options[t],i=this.chart.options.plotOptions,n=this.userOptions[t],r=Yo(i?.[this.type]?.[t],i?.series?.[t]);return n&&!Oo(r)?e!==n:e!==Yo(r,e)}onMouseOver(){let t=this.chart,e=t.hoverSeries,i=t.pointer;i?.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&Fo(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this}onMouseOut(){let t=this.options,e=this.chart,i=e.tooltip,n=e.hoverPoint;e.hoverSeries=null,n&&n.onMouseOut(),this&&t.events.mouseOut&&Fo(this,"mouseOut"),i&&!this.stickyTracking&&(!i.shared||this.noSharedTooltip)&&i.hide(),e.series.forEach(function(t){t.setState("",!0)})}setState(t,e){let i=this,n=i.options,r=i.graph,s=n.inactiveOtherPoints,o=n.states,a=Yo(o[t||"normal"]&&o[t||"normal"].animation,i.chart.options.chart.animation),l=n.lineWidth,h=n.opacity;if(i.state!==(t=t||"")&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach(function(e){e&&(i.state&&e.removeClass("highcharts-series-"+i.state),t&&e.addClass("highcharts-series-"+t))}),i.state=t,!i.chart.styledMode)){if(o[t]&&!1===o[t].enabled)return;if(t&&(l=o[t].lineWidth||l+(o[t].lineWidthPlus||0),h=Yo(o[t].opacity,h)),r&&!r.dashstyle&&Wo(l))for(let t of[r,...this.zones.map(t=>t.graph)])t?.animate({"stroke-width":l},a);s||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach(function(t){t&&t.animate({opacity:h},a)})}e&&s&&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,n=i.chart,r=n.options.chart.ignoreHiddenSeries;i.visible=t=i.options.visible=i.userOptions.visible=void 0===t?!i.visible:t;let s=t?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(t=>{i[t]?.[s]()}),(n.hoverSeries===i||n.hoverPoint?.series===i)&&i.onMouseOut(),i.legendItem&&n.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&n.series.forEach(t=>{t.options.stacking&&t.visible&&(t.isDirty=!0)}),i.linkedSeries.forEach(e=>{e.setVisible(t,!1)}),r&&(n.isDirtyBox=!0),Fo(i,s),!1!==e&&n.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),Fo(this,t?"select":"unselect")}shouldShowTooltip(t,e,i={}){return i.series=this,i.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,i)}drawLegendSymbol(t,e){co[this.options.legendSymbol||"rectangle"]?.call(this,t,e)}}_o.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:t}=this.series.chart;return"number"!=typeof this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},_o.types=fo.seriesTypes,_o.registerType=fo.registerSeriesType,_o.keepProps=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],_o.keepPropsForPoints=["data","isDirtyData","isDirtyCanvas","points","dataTable","processedData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"],Bo(_o.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Bs,requireSorting:!0,sorted:!0}),fo.series=_o;let Ko=_o,{animObject:Zo,setAnimation:Jo}=Xt,{registerEventOptions:Qo}=On,{composed:ta,marginNames:ea}=k,{distribute:ia}=Ae,{format:na}=we,{addEvent:ra,createElement:sa,css:oa,defined:aa,discardElement:la,find:ha,fireEvent:ca,isNumber:da,merge:ua,pick:pa,pushUnique:ga,relativeLength:ma,stableSort:fa,syncTimeout:ya}=q;class xa{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(),Qo(this,e),ra(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),ra(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(t){let e=pa(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=ua(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop,this.itemMarginBottom=t.itemMarginBottom,this.padding=e,this.initialItemY=e-5,this.symbolWidth=pa(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0}update(t,e){let i=this.chart;this.setOptions(ua(!0,this.options,t)),"events"in this.options&&Qo(this,this.options),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,pa(e,!0)&&i.redraw(),ca(this,"afterUpdate",{redraw:e})}colorizeItem(t,e){let i=t.color,{area:n,group:r,label:s,line:o,symbol:a}=t.legendItem||{};if((t instanceof Ko||t instanceof Bs)&&(t.color=t.options?.legendSymbolColor||i),r?.[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:i={}}=this,r=i.color,{fillColor:l,fillOpacity:h,lineColor:c,marker:d}=t.options,u=t=>(!e&&(t.fill&&(t.fill=r),t.stroke&&(t.stroke=r)),t);s?.css(ua(e?this.itemStyle:i)),o?.attr(u({stroke:c||t.color})),a&&a.attr(u(d&&a.isMarker?t.pointAttribs():{fill:t.color})),n?.attr(u({fill:l||t.color,"fill-opacity":l?1:h??.75}))}t.color=i,ca(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:n=0}=t.legendItem||{},r=this.options,s=r.symbolPadding,o=!r.rtl,a=t.checkbox;if(e?.element){let r={translateX:o?i:this.legendWidth-i-2*s-4,translateY:n};e[aa(e.translateY)?"animate":"attr"](r,void 0,()=>{ca(this,"afterPositionItem",{item:t})})}a&&(a.x=i,a.y=n)}destroyItem(t){let e=t.legendItem||{};for(let t of["group","label","line","symbol"])e[t]&&(e[t]=e[t].destroy());t.checkbox=la(t.checkbox),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,n=this.titleHeight;e&&(t=e.translateY,this.allItems.forEach(function(r){let s,o=r.checkbox;o&&(s=t+n+o.y+(this.scrollOffset||0)+3,oa(o,{left:e.translateX+r.checkboxOffset+o.x-20+"px",top:s+"px",display:this.proximate||s>t-6&&s<t+i-6?"":"none"}))},this))}renderTitle(){let t,e=this.options,i=this.padding,n=e.title,r=0;n.text&&(this.title||(this.title=this.chart.renderer.label(n.text,i-3,i-4,void 0,void 0,void 0,e.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(n.style),this.title.add(this.group)),n.width||this.title.css({width:this.maxLegendWidth+"px"}),r=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:r})),this.titleHeight=r}setText(t){let e=this.options;t.legendItem.label.attr({text:e.labelFormat?na(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})}renderItem(t){let e=t.legendItem=t.legendItem||{},i=this.chart,n=i.renderer,r=this.options,s=this.symbolWidth,o=r.symbolPadding||0,a=this.itemStyle,l=this.itemHiddenStyle,h="horizontal"===r.layout?pa(r.itemDistance,20):0,c=!r.rtl,d=!t.series,u=!d&&t.series.drawLegendSymbol?t.series:t,p=u.options,g=!!this.createCheckboxForItem&&p&&p.showCheckbox,m=r.useHTML,f=t.options.className,y=e.label,x=s+o+h+20*!!g;!y&&(e.group=n.g("legend-item").addClass("highcharts-"+u.type+"-series highcharts-color-"+t.colorIndex+(f?" "+f:"")+(d?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),e.label=y=n.text("",c?s+o:-o,this.baseline||0,m),i.styledMode||y.css(ua(t.visible?a:l)),y.attr({align:c?"left":"right",zIndex:2}).add(e.group),!this.baseline&&(this.fontMetrics=n.fontMetrics(y),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,y.attr("y",this.baseline),this.symbolHeight=pa(r.symbolHeight,this.fontMetrics.f),r.squareSymbol&&(this.symbolWidth=pa(r.symbolWidth,Math.max(this.symbolHeight,16)),x=this.symbolWidth+o+h+20*!!g,c&&y.attr("x",this.symbolWidth+o))),u.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,y,m)),g&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),(i.styledMode||!a.width)&&y.css({width:(r.itemWidth||this.widthOption||i.spacingBox.width)-x+"px"}),this.setText(t);let b=y.getBBox(),v=this.fontMetrics?.h||0;t.itemWidth=t.checkboxOffset=r.itemWidth||e.labelWidth||b.width+x,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(e.labelHeight||(b.height>1.5*v?b.height:v))}layoutItem(t){let e=this.options,i=this.padding,n="horizontal"===e.layout,r=t.itemHeight,s=this.itemMarginBottom,o=this.itemMarginTop,a=n?pa(e.itemDistance,20):0,l=this.maxLegendWidth,h=e.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:t.itemWidth,c=t.legendItem||{};n&&this.itemX-i+h>l&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=o+this.lastLineHeight+s),this.lastLineHeight=0),this.lastItemY=o+this.itemY+s,this.lastLineHeight=Math.max(r,this.lastLineHeight),c.x=this.itemX,c.y=this.itemY,n?this.itemX+=h:(this.itemY+=o+r+s,this.lastLineHeight=r),this.offsetWidth=this.widthOption||Math.max((n?this.itemX-i-(t.checkbox?0:a):h)+i,this.offsetWidth)}getAllItems(){let t=[];return this.chart.series.forEach(function(e){let i=e?.options;e&&pa(i.showInLegend,!aa(i.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItem?.labels||("point"===i.legendType?e.data:e)))}),ca(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,n=this.options,r=this.getAlignment();r&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((s,o)=>{s.test(r)&&!aa(t[o])&&(i[ea[o]]=Math.max(i[ea[o]],i.legend[(o+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][o]*n[o%2?"x":"y"]+(n.margin??12)+e[o]+(i.titleOffset[o]||0)))})}proximatePositions(){let t,e=this.chart,i=[],n="left"===this.options.align;for(let r of(this.allItems.forEach(function(t){let r,s,o,a,l=n;t.yAxis&&(t.xAxis.options.reversed&&(l=!l),t.points&&(r=ha(l?t.points:t.points.slice(0).reverse(),function(t){return da(t.plotY)})),s=this.itemMarginTop+t.legendItem.label.getBBox().height+this.itemMarginBottom,a=t.yAxis.top-e.plotTop,o=t.visible?(r?r.plotY:t.yAxis.height)+(a-.3*s):a+t.yAxis.height,i.push({target:o,size:s,item:t}))},this),ia(i,e.plotHeight)))t=r.item.legendItem||{},da(r.pos)&&(t.y=e.plotTop-e.spacing[0]+r.pos)}render(){let t,e,i,n,r=this.chart,s=r.renderer,o=this.options,a=this.padding,l=this.getAllItems(),h=this.group,c=this.box;this.itemX=a,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=ma(o.width,r.spacingBox.width-a),n=r.spacingBox.width-2*a-o.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(n/=2),this.maxLegendWidth=this.widthOption||n,h||(this.group=h=s.g("legend").addClass(o.className||"").attr({zIndex:7}).add(),this.contentGroup=s.g().attr({zIndex:1}).add(h),this.scrollGroup=s.g().add(this.contentGroup)),this.renderTitle(),fa(l,(t,e)=>(t.options?.legendIndex||0)-(e.options?.legendIndex||0)),o.reversed&&l.reverse(),this.allItems=l,this.display=t=!!l.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,l.forEach(this.renderItem,this),l.forEach(this.layoutItem,this),e=(this.widthOption||this.offsetWidth)+a,i=this.lastItemY+this.lastLineHeight+this.titleHeight,i=this.handleOverflow(i)+a,c||(this.box=c=s.rect().addClass("highcharts-legend-box").attr({r:o.borderRadius}).add(h)),r.styledMode||c.attr({stroke:o.borderColor,"stroke-width":o.borderWidth||0,fill:o.backgroundColor||"none"}).shadow(o.shadow),e>0&&i>0&&c[c.placed?"animate":"attr"](c.crisp.call({},{x:0,y:0,width:e,height:i},c.strokeWidth())),h[t?"show":"hide"](),r.styledMode&&"none"===h.getStyle("display")&&(e=i=0),this.legendWidth=e,this.legendHeight=i,t&&this.align(),this.proximate||this.positionItems(),ca(this,"afterRender")}align(t=this.chart.spacingBox){let e=this.chart,i=this.options,n=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&e.titleOffset[0]>0?n+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&e.titleOffset[2]>0&&(n-=e.titleOffset[2]),n!==t.y&&(t=ua(t,{y:n})),e.hasRendered||(this.group.placed=!1),this.group.align(ua(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)}handleOverflow(t){let e,i,n,r,s=this,o=this.chart,a=o.renderer,l=this.options,h=l.y,c="top"===l.verticalAlign,d=this.padding,u=l.maxHeight,p=l.navigation,g=pa(p.animation,!0),m=p.arrowSize||12,f=this.pages,y=this.allItems,x=function(t){"number"==typeof t?k.attr({height:t}):k&&(s.clipRect=k.destroy(),s.contentGroup.clip()),s.contentGroup.div&&(s.contentGroup.div.style.clip=t?"rect("+d+"px,9999px,"+(d+t)+"px,0)":"auto")},b=function(t){return s[t]=a.circle(0,0,1.3*m).translate(m/2,m/2).add(w),o.styledMode||s[t].attr("fill","rgba(0,0,0,0.0001)"),s[t]},v=o.spacingBox.height+(c?-h:h)-d,w=this.nav,k=this.clipRect;return"horizontal"!==l.layout||"middle"===l.verticalAlign||l.floating||(v/=2),u&&(v=Math.min(v,u)),f.length=0,t&&v>0&&t>v&&!1!==p.enabled?(this.clipHeight=e=Math.max(v-20-this.titleHeight-d,0),this.currentPage=pa(this.currentPage,1),this.fullHeight=t,y.forEach((t,s)=>{let o=(n=t.legendItem||{}).y||0,a=Math.round(n.label.getBBox().height),l=f.length;(!l||o-f[l-1]>e&&(i||o)!==f[l-1])&&(f.push(i||o),l++),n.pageIx=l-1,i&&r&&(r.pageIx=l-1),s===y.length-1&&o+a-f[l-1]>e&&o>f[l-1]&&(f.push(o),n.pageIx=l),o!==i&&(i=o),r=n}),k||(k=s.clipRect=a.clipRect(0,d-2,9999,0),s.contentGroup.clip(k)),x(e),w||(this.nav=w=a.g().attr({zIndex:1}).add(this.group),this.up=a.symbol("triangle",0,0,m,m).add(w),b("upTracker").on("click",function(){s.scroll(-1,g)}),this.pager=a.text("",15,10).addClass("highcharts-legend-navigation"),!o.styledMode&&p.style&&this.pager.css(p.style),this.pager.add(w),this.down=a.symbol("triangle-down",0,0,m,m).add(w),b("downTracker").on("click",function(){s.scroll(1,g)})),s.scroll(0),t=v):w&&(x(),this.nav=w.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t}scroll(t,e){let i=this.chart,n=this.pages,r=n.length,s=this.clipHeight,o=this.options.navigation,a=this.pager,l=this.padding,h=this.currentPage+t;h>r&&(h=r),h>0&&(void 0!==e&&Jo(e,i),this.nav.attr({translateX:l,translateY:s+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(t){t.attr({class:1===h?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),a.attr({text:h+"/"+r}),[this.down,this.downTracker].forEach(function(t){t.attr({x:18+this.pager.getBBox().width,class:h===r?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),i.styledMode||(this.up.attr({fill:1===h?o.inactiveColor:o.activeColor}),this.upTracker.css({cursor:1===h?"default":"pointer"}),this.down.attr({fill:h===r?o.inactiveColor:o.activeColor}),this.downTracker.css({cursor:h===r?"default":"pointer"})),this.scrollOffset=-n[h-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=h,this.positionCheckboxes(),ya(()=>{ca(this,"afterScroll",{currentPage:h})},Zo(pa(e,i.renderer.globalAnimation,!0)).duration))}setItemEvents(t,e,i){let n=this,r=t.legendItem||{},s=n.chart.renderer.boxWrapper,o=t instanceof Bs,a=t instanceof Ko,l="highcharts-legend-"+(o?"point":"series")+"-active",h=n.chart.styledMode,c=i?[e,r.symbol]:[r.group],d=e=>{n.allItems.forEach(i=>{t!==i&&[i].concat(i.linkedSeries||[]).forEach(t=>{t.setState(e,!o)})})};for(let i of c)i&&i.on("mouseover",function(){t.visible&&d("inactive"),t.setState("hover"),t.visible&&s.addClass(l),h||e.css(n.options.itemHoverStyle)}).on("mouseout",function(){n.chart.styledMode||e.css(ua(t.visible?n.itemStyle:n.itemHiddenStyle)),d(""),s.removeClass(l),t.setState()}).on("click",function(e){s.removeClass(l),ca(n,"itemClick",{browserEvent:e,legendItem:t},function(){t.setVisible&&t.setVisible(),d(t.visible?"inactive":"")}),o?t.firePointEvent("legendItemClick",{browserEvent:e}):a&&ca(t,"legendItemClick",{browserEvent:e})})}createCheckboxForItem(t){t.checkbox=sa("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),ra(t.checkbox,"click",function(e){ca(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},function(){t.select()})})}}!function(t){t.compose=function(e){ga(ta,"Core.Legend")&&ra(e,"beforeMargins",function(){this.legend=new t(this,this.options.legend)})}}(xa||(xa={}));let ba=xa,{animate:va,animObject:wa,setAnimation:ka}=Xt,{defaultOptions:Sa}=bt,{numberFormat:Ma}=we,{registerEventOptions:Ca}=On,{charts:Ta,doc:Aa,marginNames:Ea,svg:Pa,win:Oa}=k,{seriesTypes:La}=fo,{addEvent:Na,attr:Ia,createElement:Da,css:Ba,defined:Ra,diffObjects:Fa,discardElement:za,erase:Ha,error:ja,extend:Ga,find:Wa,fireEvent:Va,getAlignFactor:Xa,getStyle:Ua,isArray:Ya,isNumber:qa,isObject:$a,isString:_a,merge:Ka,objectEach:Za,pick:Ja,pInt:Qa,relativeLength:tl,removeEvent:el,splat:il,syncTimeout:nl,uniqueKey:rl}=q;class sl{static chart(t,e,i){return new sl(t,e,i)}constructor(t,e,i){this.sharedClips={};let n=[...arguments];(_a(t)||t.nodeName)&&(this.renderTo=n.shift()),this.init(n[0],n[1])}setZoomOptions(){let t=this.options.chart,e=t.zooming;this.zooming={...e,type:Ja(t.zoomType,e.type),key:Ja(t.zoomKey,e.key),pinchType:Ja(t.pinchType,e.pinchType),singleTouch:Ja(t.zoomBySingleTouch,e.singleTouch,!1),resetButton:Ka(e.resetButton,t.resetZoomButton)}}init(t,e){Va(this,"init",{args:arguments},function(){let i=Ka(Sa,t),n=i.chart,r=this.renderTo||n.renderTo;this.userOptions=Ga({},t),(this.renderTo=_a(r)?Aa.getElementById(r):r)||ja(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 pt(Ga(i.time||{},{locale:this.locale}),i.lang),i.time=this.time.options,this.numberFormatter=(n.numberFormatter||Ma).bind(this),this.styledMode=n.styledMode,this.hasCartesianSeries=n.showAxes,this.index=Ta.length,Ta.push(this),k.chartCount++,Ca(this,n),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),Va(this,"afterInit"),this.firstRender()})}initSeries(t){let e=t.type||this.options.chart.type,i=La[e];i||ja(17,!0,this,{missingModuleFor:e});let n=new i;return"function"==typeof n.init&&n.init(this,t),n}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],n=this.options[t]=il(this.options[t]).slice(),r=this.userOptions[t]=this.userOptions[t]?il(this.userOptions[t]).slice():[];if(this.hasRendered&&(n.splice(e),r.splice(e)),i)for(let t=e,s=i.length;t<s;++t){let e=i[t];e&&(e.index=t,e instanceof Ko&&(e.name=e.getName()),e.options.isInternal||(n[t]=e.options,r[t]=e.userOptions))}}getClipBox(t,e){let i=this.inverted,{xAxis:n,yAxis:r}=t||{},{x:s,y:o,width:a,height:l}=Ka(this.clipBox);return t&&(n&&n.len!==this.plotSizeX&&(a=n.len),r&&r.len!==this.plotSizeY&&(l=r.len),i&&!t.invertible&&([a,l]=[l,a])),e&&(s+=(i?r:n)?.pos??this.plotLeft,o+=(i?n:r)?.pos??this.plotTop),{x:s,y:o,width:a,height:l}}isInsidePlot(t,e,i={}){let{inverted:n,plotBox:r,plotLeft:s,plotTop:o,scrollablePlotBox:a}=this,{scrollLeft:l=0,scrollTop:h=0}=i.visiblePlotOnly&&this.scrollablePlotArea?.scrollingContainer||{},c=i.series,d=i.visiblePlotOnly&&a||r,u=i.inverted?e:t,p=i.inverted?t:e,g={x:u,y:p,isInsidePlot:!0,options:i};if(!i.ignoreX){let t=c&&(n&&!this.polar?c.yAxis:c.xAxis)||{pos:s,len:1/0},e=i.paneCoordinates?t.pos+u:s+u;e>=Math.max(l+s,t.pos)&&e<=Math.min(l+s+d.width,t.pos+t.len)||(g.isInsidePlot=!1)}if(!i.ignoreY&&g.isInsidePlot){let t=!n&&i.axis&&!i.axis.isXAxis&&i.axis||c&&(n?c.xAxis:c.yAxis)||{pos:o,len:1/0},e=i.paneCoordinates?t.pos+p:o+p;e>=Math.max(h+o,t.pos)&&e<=Math.min(h+o+d.height,t.pos+t.len)||(g.isInsidePlot=!1)}return Va(this,"afterIsInsidePlot",g),g.isInsidePlot}redraw(t){Va(this,"beforeRedraw");let e,i,n,r,s=this.hasCartesianSeries?this.axes:this.colorAxis||[],o=this.series,a=this.pointer,l=this.legend,h=this.userOptions.legend,c=this.renderer,d=c.isHidden(),u=[],p=this.isDirtyBox,g=this.isDirtyLegend;for(c.rootFontSize=c.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),ka(!!this.hasRendered&&t,this),d&&this.temporaryDisplay(),this.layOutTitles(!1),n=o.length;n--;)if(((r=o[n]).options.stacking||r.options.centerInCategory)&&(i=!0,r.isDirty)){e=!0;break}if(e)for(n=o.length;n--;)(r=o[n]).options.stacking&&(r.isDirty=!0);o.forEach(function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),g=!0):h&&(h.labelFormatter||h.labelFormat)&&(g=!0)),t.isDirtyData&&Va(t,"updatedData")}),g&&l&&l.options.enabled&&(l.render(),this.isDirtyLegend=!1),i&&this.getStacks(),s.forEach(function(t){t.updateNames(),t.setScale()}),this.getMargins(),s.forEach(function(t){t.isDirty&&(p=!0)}),s.forEach(function(t){let e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,u.push(function(){Va(t,"afterSetExtremes",Ga(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(p||i)&&t.redraw()}),p&&this.drawChartBox(),Va(this,"predraw"),o.forEach(function(t){(p||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),a&&a.reset(!0),c.draw(),Va(this,"redraw"),Va(this,"render"),d&&this.temporaryDisplay(!0),u.forEach(function(t){t.call()})}get(t){let e=this.series;function i(e){return e.id===t||e.options&&e.options.id===t}let n=Wa(this.axes,i)||Wa(this.series,i);for(let t=0;!n&&t<e.length;t++)n=Wa(e[t].points||[],i);return n}createAxes(){let t=this.userOptions;for(let e of(Va(this,"createAxes"),["xAxis","yAxis"]))for(let i of t[e]=il(t[e]||{}))new vr(this,i,e);Va(this,"afterCreateAxes")}getSelectedPoints(){return this.series.reduce((t,e)=>(e.getPointsCollection().forEach(e=>{Ja(e.selectedStaging,e.selected)&&t.push(e)}),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,n=this.options[t]=Ka(this.options[t],e),r=this[t];r&&e&&(this[t]=r=r.destroy()),n&&!r&&((r=this.renderer.text(n.text,0,0,n.useHTML).attr({align:n.align,class:"highcharts-"+t,zIndex:n.zIndex||4}).css({textOverflow:"ellipsis",whiteSpace:"nowrap"}).add()).update=function(e,n){i.applyDescription(t,e),i.layOutTitles(n)},this.styledMode||r.css(Ga("title"===t?{fontSize:this.options.isStock?"1em":"1.2em"}:{},n.style)),r.textPxLength=r.getBBox().width,r.css({whiteSpace:n.style?.whiteSpace}),this[t]=r)}layOutTitles(t=!0){let e=[0,0,0],{options:i,renderer:n,spacingBox:r}=this;["title","subtitle","caption"].forEach(t=>{let i=this[t],s=this.options[t],o=Ka(r),a=i?.textPxLength||0;if(i&&s){Va(this,"layOutTitle",{alignTo:o,key:t,textPxLength:a});let r=n.fontMetrics(i),l=r.b,h=r.h,c=s.verticalAlign||"top",d="top"===c,u=d&&s.minScale||1,p="title"===t?d?-3:0:d?e[0]+2:0,g=Math.min(o.width/a,1),m=Math.max(u,g),f=Ka({y:"bottom"===c?l:p+l},{align:"title"===t?g<u?"left":"center":this.title?.alignValue},s),y=(s.width||(g>u?this.chartWidth:o.width)/m)+"px";i.alignValue!==f.align&&(i.placed=!1);let x=Math.round(i.css({width:y}).getBBox(s.useHTML).height);if(f.height=x,i.align(f,!1,o).attr({align:f.align,scaleX:m,scaleY:m,"transform-origin":`${o.x+a*m*Xa(f.align)} ${h}`}),!s.floating){let t=x*(x<1.2*h?1:m);"top"===c?e[0]=Math.ceil(e[0]+t):"bottom"===c&&(e[2]=Math.ceil(e[2]+t))}}},this),e[0]&&"top"===(i.title?.verticalAlign||"top")&&(e[0]+=i.title?.margin||0),e[2]&&"bottom"===i.caption?.verticalAlign&&(e[2]+=i.caption?.margin||0);let s=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,Va(this,"afterLayOutTitles"),!this.isDirtyBox&&s&&(this.isDirtyBox=this.isDirtyLegend=s,this.hasRendered&&t&&this.isDirtyBox&&this.redraw())}getContainerBox(){let t=[].map.call(this.renderTo.children,t=>{if(t!==this.container){let e=t.style.display;return t.style.display="none",[t,e]}}),e={width:Ua(this.renderTo,"width",!0)||0,height:Ua(this.renderTo,"height",!0)||0};return t.filter(Boolean).forEach(([t,e])=>{t.style.display=e}),e}getChartSize(){let t=this.options.chart,e=t.width,i=t.height,n=this.getContainerBox(),r=n.height<=1||!this.renderTo.parentElement?.style.height&&"100%"===this.renderTo.style.height;this.chartWidth=Math.max(0,e||n.width||600),this.chartHeight=Math.max(0,tl(i,this.chartWidth)||(r?400:n.height)),this.containerBox=n}temporaryDisplay(t){let e,i=this.renderTo;if(t)for(;i?.style;)i.hcOrigStyle&&(Ba(i,i.hcOrigStyle),delete i.hcOrigStyle),i.hcOrigDetached&&(Aa.body.removeChild(i),i.hcOrigDetached=!1),i=i.parentNode;else for(;i?.style&&(Aa.body.contains(i)||i.parentNode||(i.hcOrigDetached=!0,Aa.body.appendChild(i)),("none"===Ua(i,"display",!1)||i.hcOricDetached)&&(i.hcOrigStyle={display:i.style.display,height:i.style.height,overflow:i.style.overflow},e={display:"block",overflow:"hidden"},i!==this.renderTo&&(e.height=0),Ba(i,e),i.offsetWidth||i.style.setProperty("display","block","important")),(i=i.parentNode)!==Aa.body););}setClassName(t){this.container.className="highcharts-container "+(t||"")}getContainer(){let t,e=this.options,i=e.chart,n="data-highcharts-chart",r=rl(),s=this.renderTo,o=Qa(Ia(s,n));qa(o)&&Ta[o]&&Ta[o].hasRendered&&Ta[o].destroy(),Ia(s,n,this.index),s.innerHTML=re.emptyHTML,i.skipClone||s.offsetWidth||this.temporaryDisplay(),this.getChartSize();let a=this.chartHeight,l=this.chartWidth;Ba(s,{overflow:"hidden"}),this.styledMode||(t=Ga({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 h=Da("div",{id:r},t,s);this.container=h,this.getChartSize(),l!==this.chartWidth&&(l=this.chartWidth,this.styledMode||Ba(h,{width:Ja(i.style?.width,l+"px")})),this.containerBox=this.getContainerBox(),this._cursor=h.style.cursor;let c=i.renderer||!Pa?ke.getRendererType(i.renderer):hn;if(this.renderer=new c(h,l,a,void 0,i.forExport,e.exporting?.allowHTML,this.styledMode),ka(void 0,this),this.setClassName(i.className),this.styledMode)for(let t in e.defs)this.renderer.definition(e.defs[t]);else this.renderer.setStyle(i.style);this.renderer.chartIndex=this.index,Va(this,"afterGetContainer")}getMargins(t){let{spacing:e,margin:i,titleOffset:n}=this;this.resetMargins(),n[0]&&!Ra(i[0])&&(this.plotTop=Math.max(this.plotTop,n[0]+e[0])),n[2]&&!Ra(i[2])&&(this.marginBottom=Math.max(this.marginBottom,n[2]+e[2])),this.legend?.display&&this.legend.adjustMargins(i,e),Va(this,"getMargins"),t||this.getAxisMargins()}getAxisMargins(){let t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,n=t.margin,r=t=>{t.forEach(t=>{t.visible&&t.getOffset()})};t.hasCartesianSeries?r(t.axes):i?.length&&r(i),Ea.forEach((i,r)=>{Ra(n[r])||(t[i]+=e[r])}),t.setChartSize()}getOptions(){return Fa(this.userOptions,Sa)}reflow(t){let e=this,i=e.containerBox,n=e.getContainerBox();delete e.pointer?.chartPosition,!e.exporting?.isPrinting&&!e.isResizing&&i&&n.width&&((n.width!==i.width||n.height!==i.height)&&(q.clearTimeout(e.reflowTimeout),e.reflowTimeout=nl(function(){e.container&&e.setSize(void 0,void 0,!1)},100*!!t)),e.containerBox=n)}setReflow(){let t=this,e=e=>{t.options?.chart.reflow&&t.hasLoaded&&t.reflow(e)};if("function"==typeof ResizeObserver)new ResizeObserver(e).observe(t.renderTo);else{let t=Na(Oa,"resize",e);Na(this,"destroy",t)}}setSize(t,e,i){let n=this,r=n.renderer;n.isResizing+=1,ka(i,n);let s=r.globalAnimation;n.oldChartHeight=n.chartHeight,n.oldChartWidth=n.chartWidth,void 0!==t&&(n.options.chart.width=t),void 0!==e&&(n.options.chart.height=e),n.getChartSize();let{chartWidth:o,chartHeight:a,scrollablePixelsX:l=0,scrollablePixelsY:h=0}=n;(n.isDirtyBox||o!==n.oldChartWidth||a!==n.oldChartHeight)&&(n.styledMode||(s?va:Ba)(n.container,{width:`${o+l}px`,height:`${a+h}px`},s),n.setChartSize(!0),r.setSize(o,a,s),n.axes.forEach(function(t){t.isDirty=!0,t.setScale()}),n.isDirtyLegend=!0,n.isDirtyBox=!0,n.layOutTitles(),n.getMargins(),n.redraw(s),n.oldChartHeight=void 0,Va(n,"resize"),setTimeout(()=>{n&&Va(n,"endResize")},wa(s).duration)),n.isResizing-=1}setChartSize(t){let e,i,n,r,{chartHeight:s,chartWidth:o,inverted:a,spacing:l,renderer:h}=this,c=this.clipOffset,d=Math[a?"floor":"round"];this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=n=Math.max(0,Math.round(o-e-(this.marginRight??0))),this.plotHeight=r=Math.max(0,Math.round(s-i-(this.marginBottom??0))),this.plotSizeX=a?r:n,this.plotSizeY=a?n:r,this.spacingBox=h.spacingBox={x:l[3],y:l[0],width:o-l[3]-l[1],height:s-l[0]-l[2]},this.plotBox=h.plotBox={x:e,y:i,width:n,height:r},c&&(this.clipBox={x:d(c[3]),y:d(c[0]),width:d(this.plotSizeX-c[1]-c[3]),height:d(this.plotSizeY-c[0]-c[2])}),t||(this.axes.forEach(function(t){t.setAxisSize(),t.setAxisTranslation()}),h.alignElements()),Va(this,"afterSetChartSize",{skipAxes:t})}resetMargins(){Va(this,"resetMargins");let t=this,e=t.options.chart,i=e.plotBorderWidth||0,n=Math.round(i)/2;["margin","spacing"].forEach(i=>{let n=e[i],r=$a(n)?n:[n,n,n,n];["Top","Right","Bottom","Left"].forEach((n,s)=>{t[i][s]=e[`${i}${n}`]??r[s]})}),Ea.forEach((e,i)=>{t[e]=t.margin[i]??t.spacing[i]}),t.axisOffset=[0,0,0,0],t.clipOffset=[n,n,n,n],t.plotBorderWidth=i}drawChartBox(){let t,e,i,n=this.options.chart,r=this.renderer,s=this.chartWidth,o=this.chartHeight,a=this.styledMode,l=this.plotBGImage,h=n.backgroundColor,c=n.plotBackgroundColor,d=n.plotBackgroundImage,u=this.plotLeft,p=this.plotTop,g=this.plotWidth,m=this.plotHeight,f=this.plotBox,y=this.clipRect,x=this.clipBox,b=this.chartBackground,v=this.plotBackground,w=this.plotBorder,k="animate";b||(this.chartBackground=b=r.rect().addClass("highcharts-background").add(),k="attr"),a?t=e=b.strokeWidth():(e=(t=n.borderWidth||0)+8*!!n.shadow,i={fill:h||"none"},(t||b["stroke-width"])&&(i.stroke=n.borderColor,i["stroke-width"]=t),b.attr(i).shadow(n.shadow)),b[k]({x:e/2,y:e/2,width:s-e-t%2,height:o-e-t%2,r:n.borderRadius}),k="animate",v||(k="attr",this.plotBackground=v=r.rect().addClass("highcharts-plot-background").add()),v[k](f),!a&&(v.attr({fill:c||"none"}).shadow(n.plotShadow),d&&(l?(d!==l.attr("href")&&l.attr("href",d),l.animate(f)):this.plotBGImage=r.image(d,u,p,g,m).add())),y?y.animate({width:x.width,height:x.height}):this.clipRect=r.clipRect(x),k="animate",w||(k="attr",this.plotBorder=w=r.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),a||w.attr({stroke:n.plotBorderColor,"stroke-width":n.plotBorderWidth||0,fill:"none"}),w[k](w.crisp(f,-w.strokeWidth())),this.isDirtyBox=!1,Va(this,"afterDrawChartBox")}propFromSeries(){let t,e,i,n=this,r=n.options.chart,s=n.options.series;["inverted","angular","polar"].forEach(function(o){for(e=La[r.type],i=r[o]||e&&e.prototype[o],t=s?.length;!i&&t--;)(e=La[s[t].type])&&e.prototype[o]&&(i=!0);n[o]=i})}linkSeries(t){let e=this,i=e.series;i.forEach(function(t){t.linkedSeries.length=0}),i.forEach(function(t){let{linkedTo:i}=t.options;if(_a(i)){let n;(n=":previous"===i?e.series[t.index-1]:e.get(i))&&n.linkedParent!==t&&(n.linkedSeries.push(t),t.linkedParent=n,n.enabledDataSorting&&t.setDataSortingOptions(),t.visible=Ja(t.options.visible,n.options.visible,t.visible))}}),Va(this,"afterLinkSeries",{isUpdating:t})}renderSeries(){this.series.forEach(function(t){t.translate(),t.render()})}render(){let t,e=this.axes,i=this.colorAxis,n=this.renderer,r=this.options.chart.axisLayoutRuns||2,s=t=>{t.forEach(t=>{t.visible&&t.render()})},o=0,a=!0,l=0;for(let t of(this.setTitle(),Va(this,"beforeMargins"),this.getStacks?.(),this.getMargins(!0),this.setChartSize(),e)){let{options:e}=t,{labels:i}=e;if(this.hasCartesianSeries&&t.horiz&&t.visible&&i.enabled&&t.series.length&&"colorAxis"!==t.coll&&!this.polar){o=e.tickLength,t.createGroups();let n=new Vn(t,0,"",!0),r=n.createLabel("x",i);if(n.destroy(),r&&Ja(i.reserveSpace,!qa(e.crossing))&&(o=r.getBBox().height+i.distance+Math.max(e.offset||0,0)),o){r?.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-o,0);(a||t||r>1)&&l<r;){let i=this.plotWidth,n=this.plotHeight;for(let i of e)0===l?i.setScale():(i.horiz&&a||!i.horiz&&t)&&i.setTickInterval(!0);0===l?this.getAxisMargins():this.getMargins(),a=i/this.plotWidth>(l?1:1.1),t=n/this.plotHeight>(l?1:1.05),l++}this.drawChartBox(),this.hasCartesianSeries?s(e):i?.length&&s(i),this.seriesGroup||(this.seriesGroup=n.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.dataLabelsGroup||(this.dataLabelsGroup=n.g("datalabels-group").attr({zIndex:6}).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(t){let e=this,i=Ka(!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&&(Oa.location.href=i.href)}).attr({align:i.position.align,zIndex:8}),e.styledMode||this.credits.css(i.style),this.credits.add().align(i.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})}destroy(){let t,e=this,i=e.axes,n=e.series,r=e.container,s=r?.parentNode;for(Va(e,"destroy"),e.renderer.forExport?Ha(Ta,e):Ta[e.index]=void 0,k.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),el(e),t=i.length;t--;)i[t]=i[t].destroy();for(this.scroller?.destroy?.(),t=n.length;t--;)n[t]=n[t].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(t=>{e[t]=e[t]?.destroy?.()}),r&&(r.innerHTML=re.emptyHTML,el(r),s&&za(r)),Za(e,function(t,i){delete e[i]})}firstRender(){let t=this,e=t.options;t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.createAxes();let i=Ya(e.series)?e.series:[];e.series=[],i.forEach(function(e){t.initSeries(e)}),t.linkSeries(),t.setSortedData(),Va(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&&void 0!==this.index&&t.apply(this,[this])},this),Va(this,"load"),Va(this,"render"),Ra(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&&!1===t.accessibility.enabled||ja('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 n,r=this;return t&&(e=Ja(e,!0),Va(r,"addSeries",{options:t},function(){n=r.initSeries(t),r.isDirtyLegend=!0,r.linkSeries(),n.enabledDataSorting&&n.setData(t.data,!1),Va(r,"afterAddSeries",{series:n}),e&&r.redraw(i)})),n}addAxis(t,e,i,n){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:i,animation:n})}addColorAxis(t,e,i){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:i})}createAxis(t,e){let i=new vr(this,e.axis,t);return Ja(e.redraw,!0)&&this.redraw(e.animation),i}showLoading(t){let e=this,i=e.options,n=i.loading,r=function(){s&&Ba(s,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})},s=e.loadingDiv,o=e.loadingSpan;s||(e.loadingDiv=s=Da("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),o||(e.loadingSpan=o=Da("span",{className:"highcharts-loading-inner"},null,s),Na(e,"redraw",r)),s.className="highcharts-loading",re.setElementHTML(o,Ja(t,i.lang.loading,"")),!e.styledMode&&(Ba(s,Ga(n.style,{zIndex:10})),Ba(o,n.labelStyle),e.loadingShown||(Ba(s,{opacity:0,display:""}),va(s,{opacity:n.style.opacity||.5},{duration:n.showDuration||0}))),e.loadingShown=!0,r()}hideLoading(){let t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||va(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){Ba(e,{display:"none"})}})),this.loadingShown=!1}update(t,e,i,n){let r,s,o,a=this,l={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},h=t.isResponsiveOptions,c=[];Va(a,"update",{options:t}),h||a.setResponsive(!1,!0),t=Fa(t,a.options),a.userOptions=Ka(a.userOptions,t);let d=t.chart;d&&(Ka(!0,a.options.chart,d),this.setZoomOptions(),"className"in d&&a.setClassName(d.className),("inverted"in d||"polar"in d||"type"in d)&&(a.propFromSeries(),r=!0),"alignTicks"in d&&(r=!0),"events"in d&&Ca(this,d),Za(d,function(t,e){-1!==a.propsRequireUpdateSeries.indexOf("chart."+e)&&(s=!0),-1!==a.propsRequireDirtyBox.indexOf(e)&&(a.isDirtyBox=!0),-1!==a.propsRequireReflow.indexOf(e)&&(a.isDirtyBox=!0,h||(o=!0))}),!a.styledMode&&d.style&&a.renderer.setStyle(a.options.chart.style||{})),!a.styledMode&&t.colors&&(this.options.colors=t.colors),Za(t,function(e,i){a[i]&&"function"==typeof a[i].update?a[i].update(e,!1):"function"==typeof a[l[i]]?a[l[i]](e):"colors"!==i&&-1===a.collectionsWithUpdate.indexOf(i)&&Ka(!0,a.options[i],t[i]),"chart"!==i&&-1!==a.propsRequireUpdateSeries.indexOf(i)&&(s=!0)}),this.collectionsWithUpdate.forEach(function(e){t[e]&&(il(t[e]).forEach(function(t,n){let r,s=Ra(t.id);s&&(r=a.get(t.id)),!r&&a[e]&&(r=a[e][Ja(t.index,n)])&&(s&&Ra(r.options.id)||r.options.isInternal)&&(r=void 0),r&&r.coll===e&&(r.update(t,!1),i&&(r.touched=!0)),!r&&i&&a.collectionsWithInit[e]&&(a.collectionsWithInit[e][0].apply(a,[t].concat(a.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)}),i&&a[e].forEach(function(t){t.touched||t.options.isInternal?delete t.touched:c.push(t)}))}),c.forEach(function(t){t.chart&&t.remove&&t.remove(!1)}),r&&a.axes.forEach(function(t){t.update({},!1)}),s&&a.getSeriesOrderByLinks().forEach(function(t){t.chart&&t.update({},!1)},this);let u=d?.width,p=d&&(_a(d.height)?tl(d.height,u||a.chartWidth):d.height);o||qa(u)&&u!==a.chartWidth||qa(p)&&p!==a.chartHeight?a.setSize(u,p,n):Ja(e,!0)&&a.redraw(n),Va(a,"afterUpdate",{options:t,redraw:e,animation:n})}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=Sa.lang,i=t.zooming.resetButton,n=i.theme,r="chart"===i.relativeTo||"spacingBox"===i.relativeTo?null:"plotBox";function s(){t.zoomOut()}Va(this,"beforeShowResetZoom",null,function(){t.resetZoomButton=t.renderer.button(e.resetZoom,null,null,s,n).attr({align:i.position.align,title:e.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,r)}),Va(this,"afterShowResetZoom")}zoomOut(){Va(this,"selection",{resetSelection:!0},()=>this.transform({reset:!0,trigger:"zoom"}))}pan(t,e){let i=this,n="object"==typeof e?e:{enabled:e,type:"x"},r=n.type,s=r&&i[{x:"xAxis",xy:"axes",y:"yAxis"}[r]].filter(t=>t.options.panningEnabled&&!t.options.isInternal),o=i.options.chart;o?.panning&&(o.panning=n),Va(this,"pan",{originalEvent:t},()=>{i.transform({axes:s,event:t,to:{x:t.chartX-(i.mouseDownX||0),y:t.chartY-(i.mouseDownY||0)},trigger:"pan"}),Ba(i.container,{cursor:"move"})})}transform(t){let{axes:e=this.axes,event:i,from:n={},reset:r,selection:s,to:o={},trigger:a}=t,{inverted:l,time:h}=this;this.hoverPoints?.forEach(t=>t.setState()),Va(this,"transform",t);let c,d,u=t.hasZoomed||!1;for(let t of e){let{horiz:e,len:p,minPointOffset:g=0,options:m,reversed:f}=t,y=e?"width":"height",x=e?"x":"y",b=Ja(o[y],t.len),v=Ja(n[y],t.len),w=10>Math.abs(b)?1:b/v,k=(n[x]||0)+v/2-t.pos,S=k-((o[x]??t.pos)+b/2-t.pos)/w,M=f&&!l||!f&&l?-1:1;if(!r&&(k<0||k>t.len))continue;let C=t.chart.polar||t.isOrdinal?0:g*M||0,T=t.toValue(S,!0),A=t.toValue(S+p/w,!0),E=T+C,P=A-C,O=t.allExtremes;if(s&&s[t.coll].push({axis:t,min:Math.min(T,A),max:Math.max(T,A)}),E>P&&([E,P]=[P,E]),1===w&&!r&&"yAxis"===t.coll&&!O){for(let e of t.series){let t=e.getExtremes(e.getProcessedData(!0).modified.getColumn("y")||[],!0);O??(O={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),qa(t.dataMin)&&qa(t.dataMax)&&(O.dataMin=Math.min(t.dataMin,O.dataMin),O.dataMax=Math.max(t.dataMax,O.dataMax))}t.allExtremes=O}let{dataMin:L,dataMax:N,min:I,max:D}=Ga(t.getExtremes(),O||{}),B=h.parse(m.min),R=h.parse(m.max),F=L??B,z=N??R,H=P-E,j=t.categories?0:Math.min(H,z-F),G=F-j*(Ra(B)?0:m.minPadding),W=z+j*(Ra(R)?0:m.maxPadding),V=t.allowZoomOutside||1===w||"zoom"!==a&&w>1,X=Math.min(B??G,G,V?I:G),U=Math.max(R??W,W,V?D:W);(!t.isOrdinal||1!==w||r)&&(E<X&&(E=X,w>=1&&(P=E+H)),P>U&&(P=U,w>=1&&(E=P-H)),(r||t.series.length&&(E!==I||P!==D)&&E>=X&&P<=U)&&(s?s[t.coll].push({axis:t,min:E,max:P}):(t.isPanning="zoom"!==a,t.isPanning&&(d=!0),t.setExtremes(r?void 0:E,r?void 0:P,!1,!1,{move:S,trigger:a,scale:w}),!r&&(E>X||P<U)&&"mousewheel"!==a&&(c=!0)),u=!0),this.hasCartesianSeries||r||"mousewheel"===a||(c=!0),i&&(this[e?"mouseDownX":"mouseDownY"]=i[e?"chartX":"chartY"]))}return u&&(s?Va(this,"selection",s,()=>{delete t.selection,t.trigger="zoom",this.transform(t)}):(!c||d||this.resetZoomButton?!c&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw("zoom"===a&&(this.options.chart.animation??this.pointCount<100)))),u}}Ga(sl.prototype,{callbacks:[],collectionsWithInit:{xAxis:[sl.prototype.addAxis,[!0]],yAxis:[sl.prototype.addAxis,[!1]],series:[sl.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:ol}=Xt,{composed:al}=k,{addEvent:ll,createElement:hl,css:cl,defined:dl,erase:ul,merge:pl,pushUnique:gl}=q;function ml(){let t=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!t&&(this.scrollablePlotArea=t=new yl(this)),t?.applyFixed()}function fl(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class yl{static compose(t,e,i){gl(al,this.compose)&&(ll(t,"afterInit",fl),ll(e,"afterSetChartSize",t=>this.afterSetSize(t.target,t)),ll(e,"render",ml),ll(i,"show",fl))}static afterSetSize(t,e){let i,n,r,{minWidth:s,minHeight:o}=t.options.chart.scrollablePlotArea||{},{clipBox:a,plotBox:l,inverted:h,renderer:c}=t;if(!c.forExport)if(s?(t.scrollablePixelsX=i=Math.max(0,s-t.chartWidth),i&&(t.scrollablePlotBox=pl(t.plotBox),l.width=t.plotWidth+=i,a[h?"height":"width"]+=i,r=!0)):o&&(t.scrollablePixelsY=n=Math.max(0,o-t.chartHeight),dl(n)&&(t.scrollablePlotBox=pl(t.plotBox),l.height=t.plotHeight+=n,a[h?"width":"height"]+=n,r=!1)),dl(r)){if(!e.skipAxes)for(let e of t.axes)(e.horiz===r||t.hasParallelCoordinates&&"yAxis"===e.coll)&&(e.setAxisSize(),e.setAxisTranslation())}else delete t.scrollablePlotBox}constructor(t){let e,i=t.options.chart,n=ke.getRendererType(),r=i.scrollablePlotArea||{},s=this.moveFixedElements.bind(this),o={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};t.scrollablePixelsX&&(o.overflowX="auto"),t.scrollablePixelsY&&(o.overflowY="auto"),this.chart=t;let a=this.parentDiv=hl("div",{className:"highcharts-scrolling-parent"},{position:"relative"},t.renderTo),l=this.scrollingContainer=hl("div",{className:"highcharts-scrolling"},o,a),h=this.innerContainer=hl("div",{className:"highcharts-inner-container"},void 0,l),c=this.fixedDiv=hl("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(i.style?.zIndex||0)+2,top:0},void 0,!0),d=this.fixedRenderer=new n(c,t.chartWidth,t.chartHeight,i.style);this.mask=d.path().attr({fill:i.backgroundColor||"#fff","fill-opacity":r.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),l.parentNode.insertBefore(c,l),cl(t.renderTo,{overflow:"visible"}),ll(t,"afterShowResetZoom",s),ll(t,"afterApplyDrilldown",s),ll(t,"afterLayOutTitles",s),ll(l,"scroll",()=>{let{pointer:i,hoverPoint:n}=t;i&&(delete i.chartPosition,n&&(e=n),i.runPointActions(void 0,e,!0))}),h.appendChild(t.container)}applyFixed(){let{chart:t,fixedRenderer:e,isDirty:i,scrollingContainer:n}=this,{axisOffset:r,chartWidth:s,chartHeight:o,container:a,plotHeight:l,plotLeft:h,plotTop:c,plotWidth:d,scrollablePixelsX:u=0,scrollablePixelsY:p=0}=t,{scrollPositionX:g=0,scrollPositionY:m=0}=t.options.chart.scrollablePlotArea||{},f=s+u,y=o+p;e.setSize(s,o),(i??!0)&&(this.isDirty=!1,this.moveFixedElements()),ol(t.container),cl(a,{width:`${f}px`,height:`${y}px`}),t.renderer.boxWrapper.attr({width:f,height:y,viewBox:[0,0,f,y].join(" ")}),t.chartBackground?.attr({width:f,height:y}),cl(n,{width:`${s}px`,height:`${o}px`}),dl(i)||(n.scrollLeft=u*g,n.scrollTop=p*m);let x=c-r[0]-1,b=h-r[3]-1,v=c+l+r[2]+1,w=h+d+r[1]+1,k=h+d-u,S=c+l-p,M=[["M",0,0]];u?M=[["M",0,x],["L",h-1,x],["L",h-1,v],["L",0,v],["Z"],["M",k,x],["L",s,x],["L",s,v],["L",k,v],["Z"]]:p&&(M=[["M",b,0],["L",b,c-1],["L",w,c-1],["L",w,0],["Z"],["M",b,S],["L",b,o],["L",w,o],["L",w,S],["Z"]]),"adjustHeight"!==t.redrawTrigger&&this.mask.attr({d:M})}moveFixedElements(){let t,{container:e,inverted:i,scrollablePixelsX:n,scrollablePixelsY:r}=this.chart,s=this.fixedRenderer,o=yl.fixedSelectors;if(n&&!i?t=".highcharts-yaxis":n&&i||r&&!i?t=".highcharts-xaxis":r&&i&&(t=".highcharts-yaxis"),!t||this.chart.hasParallelCoordinates&&".highcharts-yaxis"===t)for(let t of[".highcharts-xaxis",".highcharts-yaxis"])for(let e of[`${t}:not(.highcharts-radial-axis)`,`${t}-labels:not(.highcharts-radial-axis-labels)`])ul(o,e);else for(let e of[`${t}:not(.highcharts-radial-axis)`,`${t}-labels:not(.highcharts-radial-axis-labels)`])gl(o,e);for(let t of o)[].forEach.call(e.querySelectorAll(t),t=>{(t.namespaceURI===s.SVG_NS?s.box:s.box.parentNode).appendChild(t),t.style.pointerEvents="auto"})}}yl.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"];let{format:xl}=we,{series:bl}=fo,{destroyObjectProperties:vl,fireEvent:wl,getAlignFactor:kl,isNumber:Sl,pick:Ml}=q,Cl=class{constructor(t,e,i,n,r){let s=t.chart.inverted,o=t.reversed;this.axis=t;let a=this.isNegative=!!i!=!!o;this.options=e=e||{},this.x=n,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=r,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:e.align||(s?a?"left":"right":"center"),verticalAlign:e.verticalAlign||(s?"middle":a?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(s?a?"right":"left":"center")}destroy(){vl(this,this.axis)}render(t){let e=this.axis.chart,i=this.options,n=i.format,r=n?xl(n,this,e):i.formatter.call(this);if(this.label)this.label.attr({text:r,visibility:"hidden"});else{this.label=e.renderer.label(r,null,void 0,i.shape,void 0,void 0,i.useHTML,!1,"stack-labels");let n={r:i.borderRadius||0,text:r,padding:Ml(i.padding,5),visibility:"hidden"};e.styledMode||(n.fill=i.backgroundColor,n.stroke=i.borderColor,n["stroke-width"]=i.borderWidth,this.label.css(i.style||{})),this.label.attr(n),this.label.added||this.label.add(t)}this.label.labelrank=e.plotSizeY,wl(this,"afterRender")}setOffset(t,e,i,n,r,s){let{alignOptions:o,axis:a,label:l,options:h,textAlign:c}=this,d=a.chart,u=this.getStackBox({xOffset:t,width:e,boxBottom:i,boxTop:n,defaultX:r,xAxis:s}),{verticalAlign:p}=o;if(l&&u){let t,e=l.getBBox(void 0,0),i=l.padding,n="justify"===Ml(h.overflow,"justify");o.x=h.x||0,o.y=h.y||0;let{x:r,y:s}=this.adjustStackPosition({labelBox:e,verticalAlign:p,textAlign:c});u.x-=r,u.y-=s,l.align(o,!1,u),(t=d.isInsidePlot(l.alignAttr.x+o.x+r,l.alignAttr.y+o.y+s))||(n=!1),n&&bl.prototype.justifyDataLabel.call(a,l,o,l.alignAttr,e,u),l.attr({x:l.alignAttr.x,y:l.alignAttr.y,rotation:h.rotation,rotationOriginX:e.width*kl(h.textAlign||"center"),rotationOriginY:e.height/2}),Ml(!n&&h.crop,!0)&&(t=Sl(l.x)&&Sl(l.y)&&d.isInsidePlot(l.x-i+(l.width||0),l.y)&&d.isInsidePlot(l.x+i,l.y)),l[t?"show":"hide"]()}wl(this,"afterSetOffset",{xOffset:t,width:e})}adjustStackPosition({labelBox:t,verticalAlign:e,textAlign:i}){return{x:t.width/2+t.width/2*(2*kl(i)-1),y:t.height/2*2*(1-kl(e))}}getStackBox(t){let e=this.axis,i=e.chart,{boxTop:n,defaultX:r,xOffset:s,width:o,boxBottom:a}=t,l=e.stacking.usePercentage?100:Ml(n,this.total,0),h=e.toPixels(l),c=t.xAxis||i.xAxis[0],d=Ml(r,c.translate(this.x))+s,u=Math.abs(h-e.toPixels(a||Sl(e.min)&&e.logarithmic&&e.logarithmic.lin2log(e.min)||0)),p=this.isNegative;return i.inverted?{x:(p?h:h-u)-i.plotLeft,y:c.height-d-o+c.top-i.plotTop,width:u,height:o}:{x:d+c.transB-i.plotLeft,y:(p?h-u:h)-i.plotTop,width:o,height:u}}},{getDeferredAnimation:Tl}=Xt,{series:{prototype:Al}}=fo,{addEvent:El,correctFloat:Pl,defined:Ol,destroyObjectProperties:Ll,fireEvent:Nl,isNumber:Il,objectEach:Dl,pick:Bl}=q;function Rl(){let t=this.inverted;this.axes.forEach(t=>{t.stacking?.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)}),this.series.forEach(e=>{let i=e.xAxis?.options||{};e.options.stacking&&e.reserveSpace()&&(e.stackKey=[e.type,Bl(e.options.stack,""),t?i.top:i.left,t?i.height:i.width].join(","))})}function Fl(){let t=this.stacking;if(t){let e=t.stacks;Dl(e,(t,i)=>{Ll(t),delete e[i]}),t.stackTotalGroup?.destroy()}}function zl(){this.stacking||(this.stacking=new Xl(this))}function Hl(t,e,i,n){return!Ol(t)||t.x!==e||n&&t.stackKey!==n?t={x:e,index:0,key:n,stackKey:n}:t.index++,t.key=[i,e,t.index].join(","),t}function jl(){let t,e=this,i=e.stackKey||"",n=e.yAxis.stacking.stacks,r=e.getColumn("x",!0),s=e[e.options.stacking+"Stacker"];s&&[i,"-"+i].forEach(i=>{let o,a,l,h=r.length;for(;h--;)o=r[h],t=e.getStackIndicator(t,o,e.index,i),a=n[i]?.[o],(l=a?.points[t.key||""])&&s.call(e,l,a,h)})}function Gl(t,e,i){let n=e.total?100/e.total:0;t[0]=Pl(t[0]*n),t[1]=Pl(t[1]*n),this.stackedYData[i]=t[1]}function Wl(t){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&this.chart.series.length>1?Al.setStackedPoints.call(this,t,"group"):t.stacking.resetStacks())}function Vl(t,e){let i,n,r,s,o,a,l,h=e||this.options.stacking;if(!h||!this.reserveSpace()||({group:"xAxis"}[h]||"yAxis")!==t.coll)return;let c=this.getColumn("x",!0),d=this.getColumn(this.pointValKey||"y",!0),u=[],p=d.length,g=this.options,m=g.threshold||0,f=g.startFromThreshold?m:0,y=g.stack,x=e?`${this.type},${h}`:this.stackKey||"",b="-"+x,v=this.negStacks,w=t.stacking,k=w.stacks,S=w.oldStacks;for(w.stacksTouched+=1,l=0;l<p;l++){let e=c[l]||0,p=d[l],g=Il(p)&&p||0;a=(i=this.getStackIndicator(i,e,this.index)).key||"",k[o=(n=v&&g<(f?0:m))?b:x]||(k[o]={}),k[o][e]||(S[o]?.[e]?(k[o][e]=S[o][e],k[o][e].total=null):k[o][e]=new Cl(t,t.options.stackLabels,!!n,e,y)),r=k[o][e],null!==p?(r.points[a]=r.points[this.index]=[Bl(r.cumulative,f)],Ol(r.cumulative)||(r.base=a),r.touched=w.stacksTouched,i.index>0&&!1===this.singleStacks&&(r.points[a][0]=r.points[this.index+","+e+",0"][0])):(delete r.points[a],delete r.points[this.index]);let M=r.total||0;"percent"===h?(s=n?x:b,M=v&&k[s]?.[e]?(s=k[s][e]).total=Math.max(s.total||0,M)+Math.abs(g):Pl(M+Math.abs(g))):"group"===h?Il(p)&&M++:M=Pl(M+g),r.cumulative="group"===h?(M||1)-1:Pl(Bl(r.cumulative,f)+g),r.total=M,null!==p&&(r.points[a].push(r.cumulative),u[l]=r.cumulative,r.hasValidPoints=!0)}"percent"===h&&(w.usePercentage=!0),"group"!==h&&(this.stackedYData=u),w.oldStacks={}}class Xl{constructor(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}buildStacks(){let t,e,i=this.axis,n=i.series,r="xAxis"===i.coll,s=i.options.reversedStacks,o=n.length;for(this.resetStacks(),this.usePercentage=!1,e=o;e--;)t=n[s?e:o-e-1],r&&t.setGroupedPoints(i),t.setStackedPoints(i);if(!r)for(e=0;e<o;e++)n[e].modifyStacks();Nl(i,"afterBuildStacks")}cleanStacks(){this.oldStacks&&(this.stacks=this.oldStacks,Dl(this.stacks,t=>{Dl(t,t=>{t.cumulative=t.total})}))}resetStacks(){Dl(this.stacks,t=>{Dl(t,(e,i)=>{Il(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,n=this.stacks,r=Tl(e,t.options.stackLabels?.animation||!1),s=this.stackTotalGroup=this.stackTotalGroup||i.g("stack-labels").attr({zIndex:6,opacity:0}).add();s.translate(e.plotLeft,e.plotTop),Dl(n,t=>{Dl(t,t=>{t.render(s)})}),s.animate({opacity:1},r)}}(p||(p={})).compose=function(t,e,i){let n=e.prototype,r=i.prototype;n.getStacks||(El(t,"init",zl),El(t,"destroy",Fl),n.getStacks=Rl,r.getStackIndicator=Hl,r.modifyStacks=jl,r.percentStacker=Gl,r.setGroupedPoints=Wl,r.setStackedPoints=Vl)};let Ul=p,{defined:Yl,merge:ql,isObject:$l}=q;class _l extends Ko{drawGraph(){let t=this.options,e=(this.gappedPath||this.getGraphPath).call(this),i=this.chart.styledMode;[this,...this.zones].forEach((n,r)=>{let s,o=n.graph,a=o?"animate":"attr",l=n.dashStyle||t.dashStyle;o?(o.endX=this.preventGraphAnimation?null:e.xMap,o.animate({d:e})):e.length&&(n.graph=o=this.chart.renderer.path(e).addClass("highcharts-graph"+(r?` highcharts-zone-graph-${r-1} `:" ")+(r&&n.className||"")).attr({zIndex:1}).add(this.group)),o&&!i&&(s={stroke:!r&&t.lineColor||n.color||this.color||"#cccccc","stroke-width":t.lineWidth||0,fill:this.fillGraph&&this.color||"none"},l?s.dashstyle=l:"square"!==t.linecap&&(s["stroke-linecap"]=s["stroke-linejoin"]="round"),o[a](s).shadow(t.shadow&&ql({filterUnits:"userSpaceOnUse"},$l(t.shadow)?t.shadow:{}))),o&&(o.startX=e.xMap,o.isArea=e.isArea)})}getGraphPath(t,e,i){let n,r=this,s=r.options,o=[],a=[],l=s.step,h=(t=t||r.points).reversed;return h&&t.reverse(),(l={right:1,center:2}[l]||l&&3)&&h&&(l=4-l),(t=this.getValidPoints(t,!1,s.nullInteraction||!(s.connectNulls&&!e&&!i))).forEach(function(h,c){let d,u=h.plotX,p=h.plotY,g=t[c-1],m=h.isNull||"number"!=typeof p;(h.leftCliff||g?.rightCliff)&&!i&&(n=!0),m&&!Yl(e)&&c>0?n=!s.connectNulls:m&&!e?n=!0:(0===c||n?d=[["M",h.plotX,h.plotY]]:r.getPointSpline?d=[r.getPointSpline(t,h,c)]:l?(d=1===l?[["L",g.plotX,p]]:2===l?[["L",(g.plotX+u)/2,g.plotY],["L",(g.plotX+u)/2,p]]:[["L",u,g.plotY]]).push(["L",u,p]):d=[["L",u,p]],a.push(h.x),l&&(a.push(h.x),2===l&&a.push(h.x)),o.push.apply(o,d),n=!1)}),o.xMap=a,r.graphPath=o,o}}_l.defaultOptions=ql(Ko.defaultOptions,{legendSymbol:"lineMarker"}),fo.registerSeriesType("line",_l);let{seriesTypes:{line:Kl}}=fo,{extend:Zl,merge:Jl,objectEach:Ql,pick:th}=q;class eh extends Kl{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:t,options:e}=this;[this,...this.zones].forEach((i,n)=>{let r={},s=i.fillColor||e.fillColor,o=i.area,a=o?"animate":"attr";o?(o.endX=this.preventGraphAnimation?null:t.xMap,o.animate({d:t})):(r.zIndex=0,(o=i.area=this.chart.renderer.path(t).addClass("highcharts-area"+(n?` highcharts-zone-area-${n-1} `:" ")+(n&&i.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(r.fill=s||i.color||this.color,r["fill-opacity"]=s?1:e.fillOpacity??.75,o.css({pointerEvents:this.stickyTracking?"none":"auto"})),o[a](r),o.startX=t.xMap,o.shiftUnit=e.step?2:1})}getGraphPath(t){let e,i,n,r=Kl.prototype.getGraphPath,s=this.options,o=s.stacking,a=this.yAxis,l=[],h=[],c=this.index,d=a.stacking.stacks[this.stackKey],u=s.threshold,p=Math.round(a.getThreshold(s.threshold)),g=th(s.connectNulls,"percent"===o),m=function(i,n,r){let s,g,m=t[i],f=o&&d[m.x].points[c],y=m[r+"Null"]||0,x=m[r+"Cliff"]||0,b=!0;x||y?(s=(y?f[0]:f[1])+x,g=f[0]+x,b=!!y):!o&&t[n]&&t[n].isNull&&(s=g=u),void 0!==s&&(h.push({plotX:e,plotY:null===s?p:a.getThreshold(s),isNull:b,isCliff:!0}),l.push({plotX:e,plotY:null===g?p:a.getThreshold(g),doCurve:!1}))};t=t||this.points,o&&(t=this.getStackPoints(t));for(let r=0,s=t.length;r<s;++r)o||(t[r].leftCliff=t[r].rightCliff=t[r].leftNull=t[r].rightNull=void 0),i=t[r].isNull,e=th(t[r].rectPlotX,t[r].plotX),n=o?th(t[r].yBottom,p):p,(!i||g)&&(g||m(r,r-1,"left"),i&&!o&&g||(h.push(t[r]),l.push({x:r,plotX:e,plotY:n})),g||m(r,r+1,"right"));let f=r.call(this,h,!0,!0);l.reversed=!0;let y=r.call(this,l,!0,!0),x=y[0];x&&"M"===x[0]&&(y[0]=["L",x[1],x[2]]);let b=f.concat(y);b.length&&b.push(["Z"]);let v=r.call(this,h,!1,g);return this.chart.series.length>1&&o&&h.some(t=>t.isCliff)&&(b.hasStackedCliffs=v.hasStackedCliffs=!0),b.xMap=f.xMap,this.areaPath=b,v}getStackPoints(t){let e=this,i=[],n=[],r=this.xAxis,s=this.yAxis,o=s.stacking.stacks[this.stackKey],a={},l=s.series,h=l.length,c=s.options.reversedStacks?1:-1,d=l.indexOf(e);if(t=t||this.points,this.options.stacking){for(let e=0;e<t.length;e++)t[e].leftNull=t[e].rightNull=void 0,a[t[e].x]=t[e];Ql(o,function(t,e){null!==t.total&&n.push(e)}),n.sort(function(t,e){return t-e});let u=l.map(t=>t.visible);n.forEach(function(t,p){let g,m,f=0;if(a[t]&&!a[t].isNull)i.push(a[t]),[-1,1].forEach(function(i){let r=1===i?"rightNull":"leftNull",s=o[n[p+i]],f=0;if(s){let i=d;for(;i>=0&&i<h;){let n=l[i].index;!(g=s.points[n])&&(n===e.index?a[t][r]=!0:u[i]&&(m=o[t].points[n])&&(f-=m[1]-m[0])),i+=c}}a[t][1===i?"rightCliff":"leftCliff"]=f});else{let e=d;for(;e>=0&&e<h;){if(g=o[t].points[l[e].index]){f=g[1];break}e+=c}f=th(f,0),f=s.translate(f,0,1,0,1),i.push({isNull:!0,plotX:r.translate(t,0,0,0,1),x:t,plotY:f,yBottom:f})}})}return i}}eh.defaultOptions=Jl(Kl.defaultOptions,{threshold:0,legendSymbol:"areaMarker"}),Zl(eh.prototype,{singleStacks:!1}),fo.registerSeriesType("area",eh);let{line:ih}=fo.seriesTypes,{merge:nh,pick:rh}=q;class sh extends ih{getPointSpline(t,e,i){let n,r,s,o,a=e.plotX||0,l=e.plotY||0,h=t[i-1],c=t[i+1];function d(t){return t&&!t.isNull&&!1!==t.doCurve&&!e.isCliff}if(d(h)&&d(c)){let t=h.plotY||0,i=c.plotY||0,d=0;n=(1.5*a+(h.plotX||0))/2.5,r=(1.5*l+t)/2.5,s=(1.5*a+(c.plotX||0))/2.5,o=(1.5*l+i)/2.5,s!==n&&(d=(o-r)*(s-a)/(s-n)+l-o),r+=d,o+=d,r>t&&r>l?(r=Math.max(t,l),o=2*l-r):r<t&&r<l&&(r=Math.min(t,l),o=2*l-r),o>i&&o>l?(o=Math.max(i,l),r=2*l-o):o<i&&o<l&&(o=Math.min(i,l),r=2*l-o),e.rightContX=s,e.rightContY=o,e.controlPoints={low:[n,r],high:[s,o]}}let u=["C",rh(h.rightContX,h.plotX,0),rh(h.rightContY,h.plotY,0),rh(n,a,0),rh(r,l,0),a,l];return h.rightContX=h.rightContY=void 0,u}}sh.defaultOptions=nh(ih.defaultOptions),fo.registerSeriesType("spline",sh);let oh=sh,{area:ah,area:{prototype:lh}}=fo.seriesTypes,{extend:hh,merge:ch}=q;class dh extends oh{}dh.defaultOptions=ch(oh.defaultOptions,ah.defaultOptions),hh(dh.prototype,{getGraphPath:lh.getGraphPath,getStackPoints:lh.getStackPoints,drawGraph:lh.drawGraph}),fo.registerSeriesType("areaspline",dh);let{animObject:uh}=Xt,{parse:ph}=Et,{noop:gh}=k,{clamp:mh,crisp:fh,defined:yh,extend:xh,fireEvent:bh,isArray:vh,isNumber:wh,merge:kh,pick:Sh,objectEach:Mh}=q;class Ch extends Ko{animate(t){let e,i,n=this,r=this.yAxis,s=r.pos,o=r.reversed,a=n.options,{clipOffset:l,inverted:h}=this.chart,c={},d=h?"translateX":"translateY";t&&l?(c.scaleY=.001,i=mh(r.toPixels(a.threshold||0),s,s+r.len),h?c.translateX=(i+=o?-Math.floor(l[0]):Math.ceil(l[2]))-r.len:c.translateY=i+=o?Math.ceil(l[0]):-Math.floor(l[2]),n.clipBox&&n.setClip(),n.group.attr(c)):(e=Number(n.group.attr(d)),n.group.animate({scaleY:1},xh(uh(n.options.animation),{step:function(t,i){n.group&&(c[d]=e+i.pos*(s-e),n.group.attr(c))}})))}init(t,e){super.init.apply(this,arguments);let i=this;(t=i.chart).hasRendered&&t.series.forEach(function(t){t.type===i.type&&(t.isDirty=!0)})}getColumnMetrics(){let t,e=this,i=e.options,n=e.xAxis,r=e.yAxis,s=n.options.reversedStacks,o=n.reversed&&!s||!n.reversed&&s,a={},l=0;!1===i.grouping?l=1:e.chart.series.forEach(function(i){let n,s=i.yAxis,o=i.options;i.type===e.type&&i.reserveSpace()&&r.len===s.len&&r.pos===s.pos&&(o.stacking&&"group"!==o.stacking?(void 0===a[t=i.stackKey]&&(a[t]=l++),n=a[t]):!1!==o.grouping&&(n=l++),i.columnIndex=n)});let h=Math.min(Math.abs(n.transA)*(!n.brokenAxis?.hasBreaks&&n.ordinal?.slope||i.pointRange||n.closestPointRange||n.tickInterval||1),n.len),c=h*i.groupPadding,d=(h-2*c)/(l||1),u=Math.min(i.maxPointWidth||n.len,Sh(i.pointWidth,d*(1-2*i.pointPadding)));return e.columnMetrics={width:u,offset:(d-u)/2+(c+((e.columnIndex||0)+ +!!o)*d-h/2)*(o?-1:1),paddedWidth:d,columnCount:l},e.columnMetrics}crispCol(t,e,i,n){let r=this.borderWidth,s=this.chart.inverted;return n=fh(e+n,r,s)-(e=fh(e,r,s)),this.options.crisp&&(i=fh(t+i,r)-(t=fh(t,r))),{x:t,y:e,width:i,height:n}}adjustForMissingColumns(t,e,i,n){if(!i.isNull&&n.columnCount>1){let r=this.xAxis.series.filter(t=>t.visible).map(t=>t.index),s=0,o=0;Mh(this.xAxis.stacking?.stacks,t=>{let e="number"==typeof i.x?t[i.x.toString()]?.points:void 0,n=e?.[this.index],a={};if(e&&vh(n)){let t=this.index,i=Object.keys(e).filter(t=>!t.match(",")&&e[t]&&e[t].length>1).map(parseFloat).filter(t=>-1!==r.indexOf(t)).filter(e=>{let i=this.chart.series[e].options,n=i.stacking&&i.stack;if(yh(n)){if(wh(a[n]))return t===e&&(t=a[n]),!1;a[n]=e}return!0}).sort((t,e)=>e-t);s=i.indexOf(t),o=i.length}}),s=this.xAxis.reversed?o-1-s:s,t=(i.plotX||0)+((o-1)*n.paddedWidth+e)/2-e-s*n.paddedWidth}return t}translate(){let t=this,e=t.chart,i=t.options,n=t.dense=t.closestPointRange*t.xAxis.transA<2,r=t.borderWidth=Sh(i.borderWidth,+!n),s=t.xAxis,o=t.yAxis,a=i.threshold,l=Sh(i.minPointLength,5),h=t.getColumnMetrics(),c=h.width,d=t.pointXOffset=h.offset,u=t.dataMin,p=t.dataMax,g=t.translatedThreshold=o.getThreshold(a),m=t.barW=Math.max(c,1+2*r);i.pointPadding&&i.crisp&&(m=Math.ceil(m)),Ko.prototype.translate.apply(t),t.points.forEach(function(n){let r,f=Sh(n.yBottom,g),y=999+Math.abs(f),x=n.plotX||0,b=mh(n.plotY,-y,o.len+y),v=Math.min(b,f),w=Math.max(b,f)-v,k=c,S=x+d,M=m;l&&Math.abs(w)<l&&(w=l,r=!o.reversed&&!n.negative||o.reversed&&n.negative,wh(a)&&wh(p)&&n.y===a&&p<=a&&(o.min||0)<a&&(u!==p||(o.max||0)<=a)&&(r=!r,n.negative=!n.negative),v=Math.abs(v-g)>l?f-l:g-(r?l:0)),yh(n.options.pointWidth)&&(S-=Math.round(((k=M=Math.ceil(n.options.pointWidth))-c)/2)),i.centerInCategory&&(S=t.adjustForMissingColumns(S,k,n,h)),n.barX=S,n.pointWidth=k,n.tooltipPos=e.inverted?[mh(o.len+o.pos-e.plotLeft-b,o.pos-e.plotLeft,o.len+o.pos-e.plotLeft),s.len+s.pos-e.plotTop-S-M/2,w]:[s.left-e.plotLeft+S+M/2,mh(b+o.pos-e.plotTop,o.pos-e.plotTop,o.len+o.pos-e.plotTop),w],n.shapeType=t.pointClass.prototype.shapeType||"roundedRect",n.shapeArgs=t.crispCol(S,v,M,n.isNull?0:w)}),bh(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(t,e){let i,n,r,s=this.options,o=this.pointAttrToOptions||{},a=o.stroke||"borderColor",l=o["stroke-width"]||"borderWidth",h=t&&t.color||this.color,c=t&&t[a]||s[a]||h,d=t&&t.options.dashStyle||s.dashStyle,u=t&&t[l]||s[l]||this[l]||0,p=t?.isNull&&s.nullInteraction?0:t?.opacity??s.opacity??1;t&&this.zones.length&&(n=t.getZone(),h=t.options.color||n&&(n.color||t.nonZonedColor)||this.color,n&&(c=n.borderColor||c,d=n.dashStyle||d,u=n.borderWidth||u)),e&&t&&(r=(i=kh(s.states[e],t.options.states&&t.options.states[e]||{})).brightness,h=i.color||void 0!==r&&ph(h).brighten(i.brightness).get()||h,c=i[a]||c,u=i[l]||u,d=i.dashStyle||d,p=Sh(i.opacity,p));let g={fill:h,stroke:c,"stroke-width":u,opacity:p};return d&&(g.dashstyle=d),g}drawPoints(t=this.points){let e,i=this,n=this.chart,r=i.options,s=r.nullInteraction,o=n.renderer,a=r.animationLimit||250;t.forEach(function(t){let l=t.graphic,h=!!l,c=l&&n.pointCount<a?"animate":"attr";wh(t.plotY)&&(null!==t.y||s)?(e=t.shapeArgs,l&&t.hasNewShapeType()&&(l=l.destroy()),i.enabledDataSorting&&(t.startXPos=i.xAxis.reversed?-(e&&e.width||0):i.xAxis.width),!l&&(t.graphic=l=o[t.shapeType](e).add(t.group||i.group),l&&i.enabledDataSorting&&n.hasRendered&&n.pointCount<a&&(l.attr({x:t.startXPos}),h=!0,c="animate")),l&&h&&l[c](kh(e)),n.styledMode||l[c](i.pointAttribs(t,t.selected&&"select")).shadow(!1!==t.allowShadow&&r.shadow),l&&(l.addClass(t.getClassName(),!0),l.attr({visibility:t.visible?"inherit":"hidden"}))):l&&(t.graphic=l.destroy())})}drawTracker(t=this.points){let e,i=this,n=i.chart,r=n.pointer,s=function(t){r?.normalize(t);let e=r?.getPointFromEvent(t);r&&e&&i.options.enableMouseTracking&&(n.isInsidePlot(t.chartX-n.plotLeft,t.chartY-n.plotTop,{visiblePlotOnly:!0})||r?.inClass(t.target,"highcharts-data-label"))&&(r.isDirectTouch=!0,e.onMouseOver(t))};t.forEach(function(t){e=vh(t.dataLabels)?t.dataLabels:t.dataLabel?[t.dataLabel]:[],t.graphic&&(t.graphic.element.point=t),e.forEach(function(e){(e.div||e.element).point=t})}),i._hasTracking||(i.trackerGroups.forEach(function(t){i[t]&&(i[t].addClass("highcharts-tracker").on("mouseover",s).on("mouseout",function(t){r?.onTrackerMouseOut(t)}).on("touchstart",s),!n.styledMode&&i.options.cursor&&i[t].css({cursor:i.options.cursor}))}),i._hasTracking=!0),bh(this,"afterDrawTracker")}remove(){let t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(e){e.type===t.type&&(e.isDirty=!0)}),Ko.prototype.remove.apply(t,arguments)}}Ch.defaultOptions=kh(Ko.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"}),xh(Ch.prototype,{directTouch:!0,getSymbol:gh,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),fo.registerSeriesType("column",Ch);let Th=Ch,{getDeferredAnimation:Ah}=Xt,{format:Eh}=we,{defined:Ph,extend:Oh,fireEvent:Lh,getAlignFactor:Nh,isArray:Ih,isString:Dh,merge:Bh,objectEach:Rh,pick:Fh,pInt:zh,splat:Hh}=q;!function(t){function e(){return l(this).some(t=>t?.enabled)}function i(t,e,i,n,r){let{chart:s,enabledDataSorting:o}=this,a=this.isCartesian&&s.inverted,l=t.plotX,h=t.plotY,c=i.rotation||0,d=Ph(l)&&Ph(h)&&s.isInsidePlot(l,Math.round(h),{inverted:a,paneCoordinates:!0,series:this}),u=0===c&&"justify"===Fh(i.overflow,o?"none":"justify"),p=this.visible&&!1!==t.visible&&Ph(l)&&(t.series.forceDL||o&&!u||d||Fh(i.inside,!!this.options.stacking)&&n&&s.isInsidePlot(l,a?n.x+1:n.y+n.height-1,{inverted:a,paneCoordinates:!0,series:this})),g=t.pos();if(p&&g){let l=e.getBBox(),h=e.getBBox(void 0,0);if(n=Oh({x:g[0],y:Math.round(g[1]),width:0,height:0},n||{}),"plotEdges"===i.alignTo&&this.isCartesian&&(n[a?"x":"y"]=0,n[a?"width":"height"]=this.yAxis?.len||0),Oh(i,{width:l.width,height:l.height}),o&&this.xAxis&&!u&&this.setDataLabelStartPos(t,e,r,d,n),e.align(Bh(i,{width:h.width,height:h.height}),!1,n,!1),e.alignAttr.x+=Nh(i.align)*(h.width-l.width),e.alignAttr.y+=Nh(i.verticalAlign)*(h.height-l.height),e[e.placed?"animate":"attr"]({"text-align":e.alignAttr["text-align"]||"center",x:e.alignAttr.x+(l.width-h.width)/2,y:e.alignAttr.y+(l.height-h.height)/2,rotationOriginX:(e.width||0)/2,rotationOriginY:(e.height||0)/2}),u&&n.height>=0)this.justifyDataLabel(e,i,e.alignAttr,l,n,r);else if(Fh(i.crop,!0)){let{x:t,y:i}=e.alignAttr;p=s.isInsidePlot(t,i,{paneCoordinates:!0,series:this})&&s.isInsidePlot(t+l.width-1,i+l.height-1,{paneCoordinates:!0,series:this})}i.shape&&!c&&e[r?"attr":"animate"]({anchorX:g[0],anchorY:g[1]})}r&&o&&(e.placed=!1),p||o&&!u?(e.show(),e.placed=!0):(e.hide(),e.placed=!1)}function n(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6,this.chart.dataLabelsGroup)}function r(t){let e=this.hasRendered||0,i=this.initDataLabelsGroup().attr({opacity:+e});return!e&&i&&(this.visible&&i.show(),this.options.animation?i.animate({opacity:1},t):i.attr({opacity:1})),i}function s(t){let e;t=t||this.points;let i=this,n=i.chart,r=i.options,s=n.renderer,{backgroundColor:o,plotBackgroundColor:h}=n.options.chart,c=s.getContrast(Dh(h)&&h||Dh(o)&&o||"#000000"),d=l(i),{animation:u,defer:p}=d[0],g=p?Ah(n,u,i):{defer:0,duration:0};Lh(this,"drawDataLabels"),i.hasDataLabels?.()&&(e=this.initDataLabels(g),t.forEach(t=>{let o=t.dataLabels||[],l=t.color||i.color;Hh(a(d,t.dlOptions||t.options?.dataLabels)).forEach((a,h)=>{let d,u,p,g,m=a.enabled&&(t.visible||t.dataLabelOnHidden)&&(!t.isNull||t.dataLabelOnNull)&&function(t,e){let i=e.filter;if(i){let e=i.operator,n=t[i.property],r=i.value;return">"===e&&n>r||"<"===e&&n<r||">="===e&&n>=r||"<="===e&&n<=r||"=="===e&&n==r||"==="===e&&n===r||"!="===e&&n!=r||"!=="===e&&n!==r||!1}return!0}(t,a),{backgroundColor:f,borderColor:y,distance:x,style:b={}}=a,v={},w=o[h],k=!w;m&&(u=Ph(d=Fh(a[t.formatPrefix+"Format"],a.format))?Eh(d,t,n):(a[t.formatPrefix+"Formatter"]||a.formatter).call(t,a),p=a.rotation,!n.styledMode&&(b.color=Fh(a.color,b.color,Dh(i.color)?i.color:void 0,"#000000"),"contrast"===b.color?("none"!==f&&(g=f),t.contrastColor=s.getContrast("auto"!==g&&Dh(g)&&g||(Dh(l)?l:"")),b.color=g||!Ph(x)&&a.inside||0>zh(x||0)||r.stacking?t.contrastColor:c):delete t.contrastColor,r.cursor&&(b.cursor=r.cursor)),v={r:a.borderRadius||0,rotation:p,padding:a.padding,zIndex:1},n.styledMode||(v.fill="auto"===f?t.color:f,v.stroke="auto"===y?t.color:y,v["stroke-width"]=a.borderWidth),Rh(v,(t,e)=>{void 0===t&&delete v[e]})),!w||m&&Ph(u)&&!(!w.div&&!w.text?.foreignObject)==!!a.useHTML&&(w.rotation&&a.rotation||w.rotation===a.rotation)||(w=void 0,k=!0),m&&Ph(u)&&""!==u&&(w?v.text=u:(w=s.label(u,0,0,a.shape,void 0,void 0,a.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+t.colorIndex+" "+(a.className||"")+(a.useHTML?" highcharts-tracker":"")),w&&(w.options=a,w.attr(v),n.styledMode?b.width&&w.css({width:b.width,textOverflow:b.textOverflow,whiteSpace:b.whiteSpace}):w.css(b).shadow(a.shadow),Lh(w,"beforeAddingDataLabel",{labelOptions:a,point:t}),w.added||w.add(e),i.alignDataLabel(t,w,a,void 0,k),w.isActive=!0,o[h]&&o[h]!==w&&o[h].destroy(),o[h]=w))});let h=o.length;for(;h--;)o[h]?.isActive?o[h].isActive=!1:(o[h]?.destroy(),o.splice(h,1));t.dataLabel=o[0],t.dataLabels=o})),Lh(this,"afterDrawDataLabels")}function o(t,e,i,n,r,s){let o,a,l=this.chart,h=e.align,c=e.verticalAlign,d=t.box?0:t.padding||0,u=l.inverted?this.yAxis:this.xAxis,p=u?u.left-l.plotLeft:0,g=l.inverted?this.xAxis:this.yAxis,m=g?g.top-l.plotTop:0,{x:f=0,y:y=0}=e;return(o=(i.x||0)+d+p)<0&&("right"===h&&f>=0?(e.align="left",e.inside=!0):f-=o,a=!0),(o=(i.x||0)+n.width-d+p)>l.plotWidth&&("left"===h&&f<=0?(e.align="right",e.inside=!0):f+=l.plotWidth-o,a=!0),(o=i.y+d+m)<0&&("bottom"===c&&y>=0?(e.verticalAlign="top",e.inside=!0):y-=o,a=!0),(o=(i.y||0)+n.height-d+m)>l.plotHeight&&("top"===c&&y<=0?(e.verticalAlign="bottom",e.inside=!0):y+=l.plotHeight-o,a=!0),a&&(e.x=f,e.y=y,t.placed=!s,t.align(e,void 0,r)),a}function a(t,e){let i,n=[];if(Ih(t)&&!Ih(e))n=t.map(function(t){return Bh(t,e)});else if(Ih(e)&&!Ih(t))n=e.map(function(e){return Bh(t,e)});else if(Ih(t)||Ih(e)){if(Ih(t)&&Ih(e))for(i=Math.max(t.length,e.length);i--;)n[i]=Bh(t[i],e[i])}else n=Bh(t,e);return n}function l(t){let e=t.chart.options.plotOptions;return Hh(a(a(e?.series?.dataLabels,e?.[t.type]?.dataLabels),t.options.dataLabels))}function h(t,e,i,n,r){let s=this.chart,o=s.inverted,a=this.xAxis,l=a.reversed,h=((o?e.height:e.width)||0)/2,c=t.pointWidth,d=c?c/2:0;e.startXPos=o?r.x:l?-h-d:a.width-h+d,e.startYPos=o?l?this.yAxis.height-h+d:-h-d:r.y,n?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),s.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}t.compose=function(t){let l=t.prototype;l.initDataLabels||(l.initDataLabels=r,l.initDataLabelsGroup=n,l.alignDataLabel=i,l.drawDataLabels=s,l.justifyDataLabel=o,l.mergeArrays=a,l.setDataLabelStartPos=h,l.hasDataLabels=e)}}(g||(g={}));let jh=g,{composed:Gh}=k,{series:Wh}=fo,{merge:Vh,pushUnique:Xh}=q;!function(t){function e(t,e,i,n,r){let{chart:s,options:o}=this,a=s.inverted,l=this.xAxis?.len||s.plotSizeX||0,h=this.yAxis?.len||s.plotSizeY||0,c=t.dlBox||t.shapeArgs,d=t.below??(t.plotY||0)>(this.translatedThreshold??h),u=i.inside??!!o.stacking;if(c){if(n=Vh(c),"allow"!==i.overflow||!1!==i.crop||!1!==o.clip){n.y<0&&(n.height+=n.y,n.y=0);let t=n.y+n.height-h;t>0&&t<n.height-1&&(n.height-=t)}a&&(n={x:h-n.y-n.height,y:l-n.x-n.width,width:n.height,height:n.width}),u||(a?(n.x+=d?0:n.width,n.width=0):(n.y+=d?n.height:0,n.height=0))}i.align??(i.align=!a||u?"center":d?"right":"left"),i.verticalAlign??(i.verticalAlign=a||u?"middle":d?"top":"bottom"),Wh.prototype.alignDataLabel.call(this,t,e,i,n,r),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})}t.compose=function(t){jh.compose(Wh),Xh(Gh,"ColumnDataLabel")&&(t.prototype.alignDataLabel=e)}}(m||(m={}));let Uh=m,{extend:Yh,merge:qh}=q;class $h extends Th{}$h.defaultOptions=qh(Th.defaultOptions,{}),Yh($h.prototype,{inverted:!0}),fo.registerSeriesType("bar",$h);let{column:_h,line:Kh}=fo.seriesTypes,{addEvent:Zh,extend:Jh,merge:Qh}=q;class tc extends Kh{applyJitter(){let t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach(function(n,r){["x","y"].forEach(function(s,o){if(e[s]&&!n.isNull){let a=`plot${s.toUpperCase()}`,l=t[`${s}Axis`],h=e[s]*l.transA;if(l&&!l.logarithmic){let t=Math.max(0,(n[a]||0)-h),e=Math.min(l.len,(n[a]||0)+h);n[a]=t+(e-t)*function(t){let e=1e4*Math.sin(t);return e-Math.floor(e)}(r+o*i),"x"===s&&(n.clientX=n.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}tc.defaultOptions=Qh(Kh.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),Jh(tc.prototype,{drawTracker:_h.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),Zh(tc,"afterTranslate",function(){this.applyJitter()}),fo.registerSeriesType("scatter",tc);let{deg2rad:ec}=k,{fireEvent:ic,isNumber:nc,pick:rc,relativeLength:sc}=q;!function(t){t.getCenter=function(){let t,e,i,n=this.options,r=this.chart,s=2*(n.slicedOffset||0),o=r.plotWidth-2*s,a=r.plotHeight-2*s,l=n.center,h=Math.min(o,a),c=n.thickness,d=n.size,u=n.innerSize||0;"string"==typeof d&&(d=parseFloat(d)),"string"==typeof u&&(u=parseFloat(u));let p=[rc(l?.[0],"50%"),rc(l?.[1],"50%"),rc(d&&d<0?void 0:n.size,"100%"),rc(u&&u<0?void 0:n.innerSize||0,"0%")];for(!r.angular||this instanceof Ko||(p[3]=0),e=0;e<4;++e)i=p[e],t=e<2||2===e&&/%$/.test(i),p[e]=sc(i,[o,a,h,p[2]][e])+(t?s:0);return p[3]>p[2]&&(p[3]=p[2]),nc(c)&&2*c<p[2]&&c>0&&(p[3]=p[2]-2*c),ic(this,"afterGetCenter",{positions:p}),p},t.getStartAndEndRadians=function(t,e){let i=nc(t)?t:0,n=nc(e)&&e>i&&e-i<360?e:i+360;return{start:ec*(i+-90),end:ec*(n+-90)}}}(f||(f={}));let oc=f,{setAnimation:ac}=Xt,{addEvent:lc,defined:hc,extend:cc,isNumber:dc,pick:uc,relativeLength:pc}=q;class gc extends Bs{getConnectorPath(t){let e=t.dataLabelPosition,i=t.options||{},n=i.connectorShape;return e&&(this.connectorShapes[n]||n).call(this,{...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 n=t=>{this.slice("select"===t.type)};lc(this,"select",n),lc(this,"unselect",n)}isValid(){return dc(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 n=this.series;ac(i,n.chart),e=uc(e,!0),this.sliced=this.options.sliced=t=hc(t)?t:!this.sliced,n.options.data[n.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}cc(gc.prototype,{connectorShapes:{fixedOffset:function(t,e,i){let n=e.breakAt,r=e.touchingSliceAt;return[["M",t.x,t.y],i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*n.x-r.x,2*n.y-r.y,n.x,n.y]:["L",n.x,n.y],["L",r.x,r.y]]},straight:function(t,e){let i=e.touchingSliceAt;return[["M",t.x,t.y],["L",i.x,i.y]]},crookedLine:function(t,e,i){let{angle:n=this.angle||0,breakAt:r,touchingSliceAt:s}=e,{series:o}=this,[a,l,h]=o.center,c=h/2,{plotLeft:d,plotWidth:u}=o.chart,p="left"===t.alignment,{x:g,y:m}=t,f=r.x;if(i.crookDistance){let t=pc(i.crookDistance,1);f=p?a+c+(u+d-a-c)*(1-t):d+(a-c)*t}else f=a+(l-m)*Math.tan(n-Math.PI/2);let y=[["M",g,m]];return(p?f<=g&&f>=r.x:f>=g&&f<=r.x)&&y.push(["L",f,m]),y.push(["L",r.x,r.y],["L",s.x,s.y]),y}}});let{getStartAndEndRadians:mc}=oc,{noop:fc}=k,{clamp:yc,extend:xc,fireEvent:bc,merge:vc,pick:wc}=q;class kc extends Ko{animate(t){let e=this,i=e.startAngleRad;t||e.points.forEach(function(t){let n=t.graphic,r=t.shapeArgs;n&&r&&(n.attr({r:wc(t.startR,e.center&&e.center[3]/2),start:i,end:i}),n.animate({r:r.r,start:r.start,end:r.end},e.options.animation))})}drawEmpty(){let t,e,i=this.startAngleRad,n=this.endAngleRad,r=this.options;0===this.total&&this.center?(t=this.center[0],e=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(t,e,this.center[1]/2,0,i,n).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:ki.arc(t,e,this.center[2]/2,0,{start:i,end:n,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":r.borderWidth,fill:r.fillColor||"none",stroke:r.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}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,n){let r=this.center,s=this.radii?this.radii[i.index]||0:r[2]/2,o=n.dataLabelPosition,a=o?.distance||0,l=Math.asin(yc((t-r[1])/(s+a),-1,1));return r[0]+Math.cos(l)*(s+a)*(e?-1:1)+(a>0?(e?-1:1)*(n.padding||0):0)}hasData(){return this.points.some(t=>t.visible)}redrawPoints(){let t,e,i,n,r=this,s=r.chart;this.drawEmpty(),r.group&&!s.styledMode&&r.group.shadow(r.options.shadow),r.points.forEach(function(o){let a={};e=o.graphic,!o.isNull&&e?(n=o.shapeArgs,t=o.getTranslate(),s.styledMode||(i=r.pointAttribs(o,o.selected&&"select")),o.delayedRendering?(e.setRadialReference(r.center).attr(n).attr(t),s.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}),o.delayedRendering=!1):(e.setRadialReference(r.center),s.styledMode||vc(!0,a,i),vc(!0,a,n,t),e.animate(a)),e.attr({visibility:o.visible?"inherit":"hidden"}),e.addClass(o.getClassName(),!0)):e&&(o.graphic=e.destroy())})}sortByAngle(t,e){t.sort(function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e})}translate(t){bc(this,"translate"),this.generatePoints();let e,i,n,r,s,o,a,l=this.options,h=l.slicedOffset,c=mc(l.startAngle,l.endAngle),d=this.startAngleRad=c.start,u=(this.endAngleRad=c.end)-d,p=this.points,g=l.ignoreHiddenPoint,m=p.length,f=0;for(t||(this.center=t=this.getCenter()),o=0;o<m;o++){a=p[o],e=d+f*u,a.isValid()&&(!g||a.visible)&&(f+=a.percentage/100),i=d+f*u;let l={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*e)/1e3,end:Math.round(1e3*i)/1e3};a.shapeType="arc",a.shapeArgs=l,(n=(i+e)/2)>1.5*Math.PI?n-=2*Math.PI:n<-Math.PI/2&&(n+=2*Math.PI),a.slicedTranslation={translateX:Math.round(Math.cos(n)*h),translateY:Math.round(Math.sin(n)*h)},r=Math.cos(n)*t[2]/2,s=Math.sin(n)*t[2]/2,a.tooltipPos=[t[0]+.7*r,t[1]+.7*s],a.half=+(n<-Math.PI/2||n>Math.PI/2),a.angle=n}bc(this,"afterTranslate")}updateTotals(){let t,e,i=this.points,n=i.length,r=this.options.ignoreHiddenPoint,s=0;for(t=0;t<n;t++)(e=i[t]).isValid()&&(!r||e.visible)&&(s+=e.y);for(t=0,this.total=s;t<n;t++)(e=i[t]).percentage=s>0&&(e.visible||!r)?e.y/s*100:0,e.total=s}}kc.defaultOptions=vc(Ko.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}}}),xc(kc.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:Th.prototype.drawTracker,getCenter:oc.getCenter,getSymbol:fc,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:Th.prototype.pointAttribs,pointClass:gc,requireSorting:!1,searchPoint:fc,trackerGroups:["group","dataLabelsGroup"]}),fo.registerSeriesType("pie",kc);let{composed:Sc,noop:Mc}=k,{distribute:Cc}=Ae,{series:Tc}=fo,{arrayMax:Ac,clamp:Ec,defined:Pc,isNumber:Oc,pick:Lc,pushUnique:Nc,relativeLength:Ic}=q;!function(t){let e={radialDistributionY:function(t,e){return(e.dataLabelPosition?.top||0)+t.distributeBox.pos},radialDistributionX:function(t,e,i,n,r){let s=r.dataLabelPosition;return t.getX(i<(s?.top||0)+2||i>(s?.bottom||0)-2?n:i,e.half,e,r)},justify:function(t,e,i,n){return n[0]+(t.half?-1:1)*(i+(e.dataLabelPosition?.distance||0))},alignToPlotEdges:function(t,e,i,n){let r=t.getBBox().width;return e?r+n:i-r-n},alignToConnectors:function(t,e,i,n){let r,s=0;return t.forEach(function(t){(r=t.dataLabel.getBBox().width)>s&&(s=r)}),e?s+n:i-s-n}};function i(t,e){let i=Math.PI/2,{start:n=0,end:r=0}=t.shapeArgs||{},s=t.angle||0;e>0&&n<i&&r>i&&s>i/2&&s<1.5*i&&(s=s<=i?Math.max(i/2,(n+i)/2):Math.min(1.5*i,(i+r)/2));let{center:o,options:a}=this,l=o[2]/2,h=Math.cos(s),c=Math.sin(s),d=o[0]+h*l,u=o[1]+c*l,p=Math.min((a.slicedOffset||0)+(a.borderWidth||0),e/5);return{natural:{x:d+h*e,y:u+c*e},computed:{},alignment:e<0?"center":t.half?"right":"left",connectorPosition:{angle:s,breakAt:{x:d+h*p,y:u+c*p},touchingSliceAt:{x:d,y:u}},distance:e}}function n(){let t,e,i,n=this,r=n.points,s=n.chart,o=s.plotWidth,a=s.plotHeight,l=s.plotLeft,h=Math.round(s.chartWidth/3),c=n.center,d=c[2]/2,u=c[1],p=[[],[]],g=[0,0,0,0],m=n.dataLabelPositioners,f=0;n.visible&&n.hasDataLabels?.()&&(r.forEach(t=>{(t.dataLabels||[]).forEach(t=>{t.shortened&&(t.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.shortened=!1)})}),Tc.prototype.drawDataLabels.apply(n),r.forEach(t=>{(t.dataLabels||[]).forEach((e,i)=>{let n=c[2]/2,r=e.options,s=Ic(r?.distance||0,n);0===i&&p[t.half].push(t),!Pc(r?.style?.width)&&e.getBBox().width>h&&(e.css({width:Math.round(.7*h)+"px"}),e.shortened=!0),e.dataLabelPosition=this.getDataLabelPosition(t,s),f=Math.max(f,s)})}),p.forEach((t,r)=>{let h,p,y,x=[],b=0;t.length&&(n.sortByAngle(t,r-.5),f>0&&(h=Math.max(0,u-d-f),p=Math.min(u+d+f,s.plotHeight),t.forEach(t=>{(t.dataLabels||[]).forEach(e=>{let i=e.dataLabelPosition;i&&i.distance>0&&(i.top=Math.max(0,u-d-i.distance),i.bottom=Math.min(u+d+i.distance,s.plotHeight),b=e.getBBox().height||21,e.lineHeight=s.renderer.fontMetrics(e.text||e).h+2*e.padding,t.distributeBox={target:(e.dataLabelPosition?.natural.y||0)-i.top+e.lineHeight/2,size:b,rank:t.y},x.push(t.distributeBox))})}),Cc(x,y=p+b-h,y/5)),t.forEach(s=>{(s.dataLabels||[]).forEach(h=>{let u=h.options||{},p=s.distributeBox,f=h.dataLabelPosition,y=f?.natural.y||0,b=u.connectorPadding||0,v=h.lineHeight||21,w=(v-h.getBBox().height)/2,k=0,S=y,M="inherit";if(f){if(x&&Pc(p)&&f.distance>0&&(void 0===p.pos?M="hidden":(i=p.size,S=m.radialDistributionY(s,h))),u.justify)k=m.justify(s,h,d,c);else switch(u.alignTo){case"connectors":k=m.alignToConnectors(t,r,o,l);break;case"plotEdges":k=m.alignToPlotEdges(h,r,o,l);break;default:k=m.radialDistributionX(n,s,S-w,y,h)}if(f.attribs={visibility:M,align:f.alignment},f.posAttribs={x:k+(u.x||0)+({left:b,right:-b}[f.alignment]||0),y:S+(u.y||0)-v/2},f.computed.x=k,f.computed.y=S-w,Lc(u.crop,!0)){let t;k-(e=h.getBBox().width)<b&&1===r?(t=Math.round(e-k+b),g[3]=Math.max(t,g[3])):k+e>o-b&&0===r&&(t=Math.round(k+e-o+b),g[1]=Math.max(t,g[1])),S-i/2<0?g[0]=Math.max(Math.round(i/2-S),g[0]):S+i/2>a&&(g[2]=Math.max(Math.round(S+i/2-a),g[2])),f.sideOverflow=t}}})}))}),(0===Ac(g)||this.verifyDataLabelOverflow(g))&&(this.placeDataLabels(),this.points.forEach(e=>{(e.dataLabels||[]).forEach(i=>{let{connectorColor:r,connectorWidth:o=1}=i.options||{},a=i.dataLabelPosition;if(Oc(o)){let l;t=i.connector,a&&a.distance>0?(l=!t,t||(i.connector=t=s.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+e.colorIndex+(e.className?" "+e.className:"")).add(n.dataLabelsGroup)),s.styledMode||t.attr({"stroke-width":o,stroke:r||e.color||"#666666"}),t[l?"attr":"animate"]({d:e.getConnectorPath(i)}),t.attr({visibility:a.attribs?.visibility})):t&&(i.connector=t.destroy())}})})))}function r(){this.points.forEach(t=>{(t.dataLabels||[]).forEach(t=>{let e=t.dataLabelPosition;e?(e.sideOverflow&&(t.css({width:Math.max(t.getBBox().width-e.sideOverflow,0)+"px",textOverflow:t.options?.style?.textOverflow||"ellipsis"}),t.shortened=!0),t.attr(e.attribs),t[t.moved?"animate":"attr"](e.posAttribs),t.moved=!0):t&&t.attr({y:-9999})}),delete t.distributeBox},this)}function s(t){let e=this.center,i=this.options,n=i.center,r=i.minSize||80,s=r,o=null!==i.size;return!o&&(null!==n[0]?s=Math.max(e[2]-Math.max(t[1],t[3]),r):(s=Math.max(e[2]-t[1]-t[3],r),e[0]+=(t[3]-t[1])/2),null!==n[1]?s=Ec(s,r,e[2]-Math.max(t[0],t[2])):(s=Ec(s,r,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),s<e[2]?(e[2]=s,e[3]=Math.min(i.thickness?Math.max(0,s-2*i.thickness):Math.max(0,Ic(i.innerSize||0,s)),s),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):o=!0),o}t.compose=function(t){if(jh.compose(Tc),Nc(Sc,"PieDataLabel")){let o=t.prototype;o.dataLabelPositioners=e,o.alignDataLabel=Mc,o.drawDataLabels=n,o.getDataLabelPosition=i,o.placeDataLabels=r,o.verifyDataLabelOverflow=s}}}(y||(y={}));let Dc=y;!function(t){t.getCenterOfPoints=function(t){let e=t.reduce((t,e)=>(t.x+=e.x,t.y+=e.y,t),{x:0,y:0});return{x:e.x/t.length,y:e.y/t.length}},t.getDistanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},t.getAngleBetweenPoints=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)},t.pointInPolygon=function({x:t,y:e},i){let n,r,s=i.length,o=!1;for(n=0,r=s-1;n<s;r=n++){let[s,a]=i[n],[l,h]=i[r];a>e!=h>e&&t<(l-s)*(e-a)/(h-a)+s&&(o=!o)}return o}}(x||(x={}));let{pointInPolygon:Bc}=x,{addEvent:Rc,getAlignFactor:Fc,fireEvent:zc,objectEach:Hc,pick:jc}=q;function Gc(t){let e,i,n,r,s,o=t.length,a=(t,e)=>!(e.x>=t.x+t.width||e.x+e.width<=t.x||e.y>=t.y+t.height||e.y+e.height<=t.y),l=(t,e)=>{for(let i of t)if(Bc({x:i[0],y:i[1]},e))return!0;return!1},h=!1;for(let i=0;i<o;i++)(e=t[i])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=function(t){if(t&&(!t.alignAttr||t.placed)){let e=t.box?0:t.padding||0,i=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},{height:n,polygon:r,width:s}=t.getBBox(),o=Fc(t.alignValue)*s;return t.width=s,t.height=n,{x:i.x+(t.parentGroup?.translateX||0)+e-o,y:i.y+(t.parentGroup?.translateY||0)+e,width:s-2*e,height:n-2*e,polygon:r}}}(e));t.sort((t,e)=>(e.labelrank||0)-(t.labelrank||0));for(let e=0;e<o;++e){r=(i=t[e])&&i.absoluteBox;let h=r?.polygon;for(let c=e+1;c<o;++c){s=(n=t[c])&&n.absoluteBox;let e=!1;if(r&&s&&i!==n&&0!==i.newOpacity&&0!==n.newOpacity&&"hidden"!==i.visibility&&"hidden"!==n.visibility){let t=s.polygon;if(h&&t&&h!==t?l(h,t)&&(e=!0):a(r,s)&&(e=!0),e){let t=i.labelrank<n.labelrank?i:n,e=t.text;t.newOpacity=0,e?.element.querySelector("textPath")&&e.hide()}}}}for(let e of t)Wc(e,this)&&(h=!0);h&&zc(this,"afterHideAllOverlappingLabels")}function Wc(t,e){let i,n=!1;return t&&(i=t.newOpacity,t.oldOpacity!==i&&(t.hasClass("highcharts-data-label")?(t[i?"removeClass":"addClass"]("highcharts-data-label-hidden"),n=!0,t[t.isOld?"animate":"attr"]({opacity:i},void 0,function(){e.styledMode||t.css({pointerEvents:i?"auto":"none"})}),zc(e,"afterHideOverlappingLabel")):t.attr({opacity:i})),t.isOld=!0),n}function Vc(){let t=this,e=[];for(let i of t.labelCollectors||[])e=e.concat(i());for(let i of t.yAxis||[])i.stacking&&i.options.stackLabels&&!i.options.stackLabels.allowOverlap&&Hc(i.stacking.stacks,t=>{Hc(t,t=>{t.label&&e.push(t.label)})});for(let i of t.series||[])if(i.visible&&i.hasDataLabels?.()){let n=i=>{for(let n of i)n.visible&&(n.dataLabels||[]).forEach(i=>{let r=i.options||{};i.labelrank=jc(r.labelrank,n.labelrank,n.shapeArgs?.height),r.allowOverlap??Number(r.distance)>0?(i.oldOpacity=i.opacity,i.newOpacity=1,Wc(i,t)):e.push(i)})};n(i.nodes||[]),n(i.points)}this.hideOverlappingLabels(e)}let Xc={compose:function(t){let e=t.prototype;e.hideOverlappingLabels||(e.hideOverlappingLabels=Gc,Rc(t,"render",Vc))}},{defaultOptions:Uc}=bt,{noop:Yc}=k,{addEvent:qc,extend:$c,isObject:_c,merge:Kc,relativeLength:Zc}=q,Jc={radius:0,scope:"stack",where:void 0},Qc=Yc,td=Yc;function ed(t,e,i,n,r={}){let s=Qc(t,e,i,n,r),{brStart:o=!0,brEnd:a=!0,innerR:l=0,r:h=i,start:c=0,end:d=0}=r;if(r.open||!r.borderRadius)return s;let u=d-c,p=Math.sin(u/2),g=Math.max(Math.min(Zc(r.borderRadius||0,h-l),(h-l)/2,h*p/(1+p)),0),m=Math.min(g,u/Math.PI*2*l),f=s.length-1;for(;f--;)(o||0!==f&&3!==f)&&(a||1!==f&&2!==f)&&function(t,e,i){let n,r,s,o=t[e],a=t[e+1];if("Z"===a[0]&&(a=t[0]),"M"!==o[0]&&"L"!==o[0]||"A"!==a[0]?"A"===o[0]&&("M"===a[0]||"L"===a[0])&&(n=a,r=o):(n=o,r=a,s=!0),n&&r&&r.params){let o=r[1],a=r[5],l=r.params,{start:h,end:c,cx:d,cy:u}=l,p=a?o-i:o+i,g=p?Math.asin(i/p):0,m=a?g:-g,f=Math.cos(g)*p;s?(l.start=h+m,n[1]=d+f*Math.cos(h),n[2]=u+f*Math.sin(h),t.splice(e+1,0,["A",i,i,0,0,1,d+o*Math.cos(l.start),u+o*Math.sin(l.start)])):(l.end=c-m,r[6]=d+o*Math.cos(l.end),r[7]=u+o*Math.sin(l.end),t.splice(e+1,0,["A",i,i,0,0,1,d+f*Math.cos(c),u+f*Math.sin(c)])),r[4]=Math.abs(l.end-l.start)<Math.PI?0:1}}(s,f,f>1?m:g);return s}function id(){if(this.options.borderRadius&&(!this.chart.is3d||!this.chart.is3d())){let{options:t,yAxis:e}=this,i="percent"===t.stacking,n=Uc.plotOptions?.[this.type]?.borderRadius,r=nd(t.borderRadius,_c(n)?n:{}),s=e.options.reversed;for(let n of this.points){let{shapeArgs:o}=n;if("roundedRect"===n.shapeType&&o){let{width:a=0,height:l=0,y:h=0}=o,c=h,d=l;if("stack"===r.scope&&n.stackTotal){let r=e.translate(i?100:n.stackTotal,!1,!0,!1,!0),s=e.translate(t.threshold||0,!1,!0,!1,!0),o=this.crispCol(0,Math.min(r,s),0,Math.abs(r-s));c=o.y,d=o.height}let u=(n.negative?-1:1)*(s?-1:1)==-1,p=r.where;!p&&this.is("waterfall")&&Math.abs((n.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(p="all"),p||(p="end");let g=Math.min(Zc(r.radius,a),a/2,"all"===p?l/2:1/0)||0;"end"===p&&(u&&(c-=g),d+=g),$c(o,{brBoxHeight:d,brBoxY:c,r:g})}}}}function nd(t,e){return _c(t)||(t={radius:t||0}),Kc(Jc,e,t)}function rd(){let t=nd(this.options.borderRadius);for(let e of this.points){let i=e.shapeArgs;i&&(i.borderRadius=Zc(t.radius,(i.r||0)-(i.innerR||0)))}}function sd(t,e,i,n,r={}){let s=td(t,e,i,n,r),{r:o=0,brBoxHeight:a=n,brBoxY:l=e}=r,h=e-l,c=l+a-(e+n),d=h-o>-.1?0:o,u=c-o>-.1?0:o,p=Math.max(d&&h,0),g=Math.max(u&&c,0),m=[t+d,e],f=[t+i-d,e],y=[t+i,e+d],x=[t+i,e+n-u],b=[t+i-u,e+n],v=[t+u,e+n],w=[t,e+n-u],k=[t,e+d],S=(t,e)=>Math.sqrt(Math.pow(t,2)-Math.pow(e,2));if(p){let t=S(d,d-p);m[0]-=t,f[0]+=t,y[1]=k[1]=e+d-p}if(n<d-p){let r=S(d,d-p-n);y[0]=x[0]=t+i-d+r,b[0]=Math.min(y[0],b[0]),v[0]=Math.max(x[0],v[0]),w[0]=k[0]=t+d-r,y[1]=k[1]=e+n}if(g){let t=S(u,u-g);b[0]+=t,v[0]-=t,x[1]=w[1]=e+n-u+g}if(n<u-g){let r=S(u,u-g-n);y[0]=x[0]=t+i-u+r,f[0]=Math.min(y[0],f[0]),m[0]=Math.max(x[0],m[0]),w[0]=k[0]=t+u-r,x[1]=w[1]=e}return s.length=0,s.push(["M",...m],["L",...f],["A",d,d,0,0,1,...y],["L",...x],["A",u,u,0,0,1,...b],["L",...v],["A",u,u,0,0,1,...w],["L",...k],["A",d,d,0,0,1,...m],["Z"]),s}let{diffObjects:od,extend:ad,find:ld,merge:hd,pick:cd,uniqueKey:dd}=q;!function(t){function e(t,e){let i=t.condition;(i.callback||function(){return this.chartWidth<=cd(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=cd(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=cd(i.minWidth,0)&&this.chartHeight>=cd(i.minHeight,0)}).call(this)&&e.push(t._id)}function i(t,e){let i,n=this.options.responsive,r=this.currentResponsive,s=[];!e&&n&&n.rules&&n.rules.forEach(t=>{void 0===t._id&&(t._id=dd()),this.matchResponsiveRule(t,s)},this);let o=hd(...s.map(t=>ld(n?.rules||[],e=>e._id===t)).map(t=>t?.chartOptions));o.isResponsiveOptions=!0,s=s.toString()||void 0;let a=r?.ruleIds;s!==a&&(r&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(r.undoOptions,t,!0),this.updatingResponsive=!1),s?((i=od(o,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:s,mergedOptions:o,undoOptions:i},this.updatingResponsive||this.update(o,t,!0)):this.currentResponsive=void 0)}t.compose=function(t){let n=t.prototype;return n.matchResponsiveRule||ad(n,{matchResponsiveRule:e,setResponsive:i}),t}}(b||(b={}));let ud=b;k.AST=re,k.Axis=vr,k.Chart=sl,k.Color=Et,k.DataLabel=jh,k.DataTableCore=oo,k.Fx=It,k.HTMLElement=Sn,k.Legend=ba,k.LegendSymbol=co,k.OverlappingDataLabels=k.OverlappingDataLabels||Xc,k.PlotLineOrBand=Xr,k.Point=Bs,k.Pointer=to,k.RendererRegistry=ke,k.Series=Ko,k.SeriesRegistry=fo,k.StackItem=Cl,k.SVGElement=ai,k.SVGRenderer=hn,k.Templating=we,k.Tick=Vn,k.Time=pt,k.Tooltip=ms,k.animate=Xt.animate,k.animObject=Xt.animObject,k.chart=sl.chart,k.color=Et.parse,k.dateFormat=we.dateFormat,k.defaultOptions=bt.defaultOptions,k.distribute=Ae.distribute,k.format=we.format,k.getDeferredAnimation=Xt.getDeferredAnimation,k.getOptions=bt.getOptions,k.numberFormat=we.numberFormat,k.seriesType=fo.seriesType,k.setAnimation=Xt.setAnimation,k.setOptions=bt.setOptions,k.stop=Xt.stop,k.time=bt.defaultTime,k.timers=It.timers,function(t,e,i){let n=t.types.pie;if(!e.symbolCustomAttribs.includes("borderRadius")){let r=i.prototype.symbols;qc(t,"afterColumnTranslate",id,{order:9}),qc(n,"afterTranslate",rd),e.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY","brEnd","brStart"),Qc=r.arc,td=r.roundedRect,r.arc=ed,r.roundedRect=sd}}(k.Series,k.SVGElement,k.SVGRenderer),Uh.compose(k.Series.types.column),jh.compose(k.Series),Cr.compose(k.Axis),Sn.compose(k.SVGRenderer),ba.compose(k.Chart),Pr.compose(k.Axis),Xc.compose(k.Chart),Dc.compose(k.Series.types.pie),Xr.compose(k.Chart,k.Axis),to.compose(k.Chart),ud.compose(k.Chart),yl.compose(k.Axis,k.Chart,k.Series),Ul.compose(k.Axis,k.Chart,k.Series),ms.compose(k.Pointer),q.extend(k,q);let pd=k;return w.default})(),(i="undefined"==typeof window?Hi:window)._Highcharts=n(),t.exports=i._Highcharts});function Vi(t,e,i){return function(){var n,r,s,o=function(t,e,i,n){var r;if(void 0===n&&(n=new c(0)),t.greaterThan(e))throw new Error("dataMinValue must me smaller or equal than dataMaxValue");if((t.lessThan(0)&&e.greaterThan(0)?e.minus(t):c.max(t.abs(),e.abs())).div(i).lessThanOrEqualTo(n))return n;var s=function(t){var e=Array.from({length:i},function(t,e){return i-e}).reduce(function(e,i){var r,s=function(t){if(t.equals(0))return new c(0);var e=c.pow(10,c.log10(t).floor());return t.div(e).lessThan(1.5)?e.div(10).mul(t.div(e.div(10)).ceil()):t.div(e).lessThan(3)?t.mul(2).div(e).ceil().mul(e).div(2):t.div(e).lessThan(8)?t.div(e).ceil().mul(e):t.div(e.mul(10)).ceil().mul(10).mul(e)}(t.div(i));return s.greaterThanOrEqualTo(n)&&e.push([(r=s,r.equals(0)?0:r.isInteger()?function(t){for(var e=0,i=5;e<50&&t.mod(i).equals(0)&&(e++,t.mod(i*=2).equals(0));)e++,i*=5;return e}(r):function(t){var e=t.toString();if(e.includes("e-")){var i=e.split("e-"),n=Number.parseInt(i[1]);return i[0].endsWith("5")?-2*n+1:-2*n}var r=e.split(".")[1];return r.endsWith("5")?-2*r.length+1:-2*r.length}(r)),s]),e},[]).sort(function(t,e){return e[0]-t[0]});return e.slice(0,Math.max(2,Math.ceil(.5*e.length))).sort(function(t,e){return t[1].minus(e[1]).toNumber()})}(c.max(t.abs(),e.abs()));return t.lessThan(0)&&e.greaterThan(0)?null!=(r=s.map(function(t){return t[1]}).find(function(n){return t.abs().div(n).ceil().plus(e.div(n).ceil()).lessThanOrEqualTo(i)}))?r:new c(NaN):s[0][1]}(t,e,(n=this.chart.plotWidth,r=c.pow(10,c.log10(c.max(t.abs(),e.abs())).floor()),s=Math.ceil(n/(12*(r.toString().length+(t.isNeg()?1:0))+25)-1),Math.max(s,t.isNegative()&&e.isPositive()?2:1)),i),a=t.greaterThanOrEqualTo(0)?new c(0):t.div(o).floor().mul(o),l=e.lessThanOrEqualTo(0)?new c(0):e.div(o).ceil().mul(o);return Array.from({length:l.minus(a).div(o).plus(1).toNumber()},function(t,e){return o.mul(e).plus(a).toNumber()})}}function Xi(t,e){if(e){var i=new Date(e);switch(t){case ui.Irregular:case ui.Week:return;case ui.Month:return{pointStart:i.getTime(),pointIntervalUnit:"month"};case ui.Quarter:case ui.HalfYear:return;case ui.Year:return{pointStart:i.getTime(),pointIntervalUnit:"year"}}}}function Ui(t,e){if(t.seriesType!==Gi.Time){var i=t.columnNameGroups.map(function(t){return t.map(function(t){return t[e]}).join(", ")}),n=i.every(function(t){return!isNaN(parseFloat(t))});return t.seriesType===Gi.Ordinal&&n?function(t,e){return{type:"category",categories:t.columnNameGroups.map(function(t){return t.map(function(t){return t[e]}).join(", ")}),ordinal:!0,tickPositioner:(i=Math.max.apply(Math,t.series.map(function(t){return t.series.length})),n=Math.max.apply(Math,t.columnNameGroups.map(function(t){return t.reduce(function(t,i){return(t>0?1:0)+t+i[e].length},0)})),function(){var t=Math.ceil(i*n*10/this.chart.plotWidth),e=Math.ceil(i/t);return Array.from({length:e},function(e,i){return i*t})})};var i,n}(t,e):{ordinal:t.seriesType==Gi.Ordinal,type:"category",categories:i,labels:{autoRotation:[-45]}}}switch(t.visualizationSettings.timeVariableIntervals){case ui.Week:return Yi(t,e);case ui.Month:return qi();case ui.Quarter:return $i(t,e);case ui.HalfYear:return _i(t,e);case ui.Year:return{type:"datetime"};default:return{type:"category",categories:t.columnNameGroups.map(function(t){return t.map(function(t){return t[e]}).join(", ")})}}}!function(t){t[t.Time=0]="Time",t[t.Ordinal=1]="Ordinal",t[t.Nominal=2]="Nominal"}(Gi||(Gi={}));var Yi=function(t,e){return{type:"linear",ordinal:!1,labels:{formatter:function(){return t.columnNameGroups[Number(this.value)].map(function(t){return t[e]}).join(", ")}}}},qi=function(t,e){return{type:"datetime",ordinal:!1,labels:{formatter:function(){return Wi.dateFormat("%YM%m",Number(this.value))}}}},$i=function(t,e){var i,n,r;return{type:"linear",ordinal:!1,labels:{formatter:function(){return Number.isInteger(this.value)?t.columnNameGroups[Number(this.value)].map(function(t){return t[e]}).join(", "):""}},tickPositioner:(n=Math.max.apply(Math,t.series.map(function(t){return t.series.length})),r=new Date(null!=(i=t.visualizationSettings.timeSeriesStartingPoint)?i:""),function(){var t=function(t){return t<=2?Math.ceil(t):t<=4?4:t<=20?4*Math.ceil(t/4):t<=40?20*Math.ceil(t/20):40*Math.ceil(t/40)}(60*n/this.chart.plotWidth),e=function(t,e){var i=(4*e.getFullYear()+Math.floor(e.getMonth()/3))%t;return i>0?t-i:0}(t,r),i=Math.ceil((n-e)/t);return Array.from({length:i},function(i,n){return e+n*t})})}},_i=function(t,e){var i,n,r;return{type:"linear",ordinal:!1,labels:{formatter:function(){return Number.isInteger(this.value)?t.columnNameGroups[Number(this.value)].map(function(t){return t[e]}).join(", "):""}},tickPositioner:(n=Math.max.apply(Math,t.series.map(function(t){return t.series.length})),r=new Date(null!=(i=t.visualizationSettings.timeSeriesStartingPoint)?i:""),function(){var t=function(t){return t<=2?Math.ceil(t):t<=10?2*Math.ceil(t/2):t<=20?10*Math.ceil(t/10):20*Math.ceil(t/20)}(60*n/this.chart.plotWidth),e=function(t,e){var i=(2*e.getFullYear()+Math.floor(e.getMonth()/6))%t;return i>0?t-i:0}(t,r),i=Math.ceil((n-e)/t);return Array.from({length:i},function(i,n){return e+n*t})})}},Ki=["#1a56ec","#f2644c","#1b3160","#9c8d87","#26625d","#7791e8","#8c1131","#878eaf","#c73268","#288c72"],Zi=["M 0 5 L 10 5 M 5 0 L 5 10","M 0 0 L 10 10 M 10 0 L 0 10","M 2,2 h1 v1 h-1 z M 7,7 h1 v1 h-1 z M 2,7 h1 v1 h-1 z M 7,2 h1 v1 h-1 z","M 2,2 h1 v1 h-1 z M 7,7 h1 v1 h-1 z","M -2 -2 L 12 12 M -12 -2 L 2 12 M -2 -12 L 12 2","M -2 12 L 12 -2 M -12 12 L 2 -2 M -2 22 L 12 8","M 5,5 m -3,0 a 3,3 0 1,0 6,0 a 3,3 0 1,0 -6,0","M 2 2 L 3 3 M 7 7 L 8 8 M 2 7 L 3 8 M 7 2 L 8 3","M 5 0 L 10 5 L 5 10 L 0 5 Z","M 2 5 L 8 5 M 5 2 L 5 8","M 5 0 L 5 10","M 0 5 L 10 5","M 0 5 Q 2.5 0, 5 5 T 10 5","M 0 2 L 10 2 M 0 8 L 10 8","M 0 10 L 5 0 L 10 10 Z"];function Ji(t){return{color:{pattern:{backgroundColor:Ki[t%Ki.length],path:{stroke:"white",d:Zi[t%Zi.length],strokeWidth:2},width:10,height:10}}}}var Qi=function(t,e){return t.series.map(function(i,n){return m({},nn(i,t,e),{index:n,type:"line"})})},tn=function(t,e,i,n){return void 0===i&&(i=!1),void 0===n&&(n=!1),t.series.map(function(r,s){return m({},nn(r,t,e),n&&Ji(s),{index:i?t.series.length-1-s:s,type:"bar"})})},en=function(t,e,i,n){return void 0===i&&(i=!1),void 0===n&&(n=!1),t.series.map(function(r,s){return m({},nn(r,t,e),n&&Ji(s),{index:i?t.series.length-1-s:s,type:"column"})})};function nn(t,e,i){return{animation:!1,name:t.rowNameGroup.map(function(t){return t[i]}).join(", "),data:t.series.map(function(t,n){return{y:t.value,name:e.columnNameGroups[n].map(function(t){return t[i]}).join(", "),custom:{preliminary:t.preliminary,precision:t.precision}}})}}var rn=function(t,e,i){var n,r=null==(n=null==i?void 0:i.showTitle)||n;return{accessibility:{point:{descriptionFormatter:Ai(t,e)}},title:{text:r?t.header[e]:void 0},subtitle:{text:t.subheaderValues.map(function(t){return t[e]}).join(" | ")},credits:{text:yi.source[e]+": "+t.sources.map(function(t){return t[e]}).join(", ")},tooltip:{formatter:Ti(t,e)},yAxis:[sn]}},sn={plotLines:[{value:0,color:"#000",width:1}]},on=function(t,e){return{enabled:t.visualizationSettings.showDataPoints,style:{color:"#000",fontSize:"1rem",fontWeight:"400"},formatter:Li(e)}},an=function(t,e){var i,n,r,s;return m({},sn,{tickPositioner:(i=t.series.map(function(t){return t.series}),n=null,r=null,s=0,i.forEach(function(t){t.forEach(function(t){t.value&&(!n||t.value<n)&&(n=t.value),t.value&&(!r||t.value>r)&&(r=t.value),t.precision>s&&(s=t.precision)})}),n&&r?Vi(new c(n),new c(r),new c(Math.pow(10,-s))):function(){return[]}),title:{text:Ri(t.units,e),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}})},ln=function(t,e,i){return m({},rn(t,e,i),{chart:{type:"bar"},xAxis:{categories:t.columnNameGroups.map(function(t){return t.map(function(t){return t[e]}).join(", ")}),labels:{formatter:Oi(t.columnNameGroups.length),style:{width:200}}}})},hn=function(t,e,i){return m({},ln(t,e,i),{series:tn(t,e,!0,null==i?void 0:i.accessibilityMode),legend:m({},pn,{enabled:!0,layout:"horizontal",reversed:!0,margin:30})})},cn=function(t,e,i){return m({},rn(t,e,i),{chart:{type:"column"},xAxis:Ui(t,e)})},dn=function(t,e,i){return m({},cn(t,e,i),{series:en(t,e,!1,null==i?void 0:i.accessibilityMode),yAxis:{softMin:0,softMax:0,title:{text:Ri(t.units,e)}}})},un=function(t,e,i){return m({},cn(t,e,i),{series:en(t,e,!0,null==i?void 0:i.accessibilityMode),legend:m({},pn,{enabled:!0,layout:"vertical"})})},pn={itemHiddenStyle:{color:"black"}},gn=function(t,e){return"\n "+t[1].rowNameGroup.map(function(t){return t[e]}).join(", ")+": {point.x}<br/>\n "+t[0].rowNameGroup.map(function(t){return t[e]}).join(", ")+": {point.y}\n "},mn=function(t,e,i){switch(e.visualizationSettings.visualizationType){case ci.LineChart:return function(t,e,i){var n,r=null!=(n=t.visualizationSettings)&&n.cutValueAxis?void 0:0,s=null!=i&&i.accessibilityMode?{enabledThreshold:3}:{enabled:!1};return m({},rn(t,e,i),{chart:{type:"line"},tooltip:{formatter:Bi(t,e)},xAxis:m({},Ui(t,e),{gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5}),yAxis:m({},sn,{softMin:r,softMax:r,title:{text:Ri(t.units,e)}}),plotOptions:{line:{dataLabels:m({},on(t,e)),marker:s},series:Xi(t.visualizationSettings.timeVariableIntervals,t.visualizationSettings.timeSeriesStartingPoint)},legend:m({},pn,{enabled:t.series.length>1,labelFormatter:Ni()}),series:Qi(t,e),exporting:{enabled:!1}})}(e,t,i);case ci.VerticalBarChart:return function(t,e,i){return m({},dn(t,e,i),{yAxis:m({},sn,{softMin:0,softMax:0,title:{text:Ri(t.units,e)}}),plotOptions:{series:m({},Xi(t.visualizationSettings.timeVariableIntervals,t.visualizationSettings.timeSeriesStartingPoint),{dataLabels:m({},on(t,e))})},exporting:{enabled:!1}})}(e,t,i);case ci.HorizontalBarChart:return function(t,e,i){return m({},ln(t,e,i),{series:tn(t,e,!1,null==i?void 0:i.accessibilityMode),chart:{type:"bar",spacingBottom:60},yAxis:m({},an(t,e),{softMin:0,max:100}),legend:{enabled:!1},plotOptions:{series:{dataLabels:m({},on(t,e))}}})}(e,t,i);case ci.GroupVerticalBarChart:return function(t,e,i){return m({},dn(t,e,i),{plotOptions:{series:m({},Xi(t.visualizationSettings.timeVariableIntervals,t.visualizationSettings.timeSeriesStartingPoint),{dataLabels:m({},on(t,e))})},legend:m({},pn,{enabled:!0,labelFormatter:Ni()})})}(e,t,i);case ci.GroupHorizontalBarChart:return function(t,e,i){return m({},ln(t,e,i),{series:tn(t,e,!1,null==i?void 0:i.accessibilityMode),yAxis:m({},an(t,e),{softMin:0,softMax:0}),legend:m({},pn,{enabled:!0,layout:"vertical",margin:30}),plotOptions:{series:{dataLabels:m({},on(t,e))}}})}(e,t,i);case ci.StackedVerticalBarChart:return function(t,e,i){return m({},un(t,e,i),{yAxis:{softMin:0,softMax:0,title:{text:Ri(t.units,e)}},plotOptions:{column:{stacking:"normal"},series:m({},Xi(t.visualizationSettings.timeVariableIntervals,t.visualizationSettings.timeSeriesStartingPoint),{dataLabels:m({},on(t,e))})}})}(e,t,i);case ci.StackedHorizontalBarChart:return function(t,e,i){return m({},hn(t,e,i),{yAxis:{softMin:0,softMax:0,tickPositioner:(n=t.series.map(function(t){return t.series}),r=null,s=null,o=0,n[0].forEach(function(t,e){var i=n.reduce(function(t,i){var n;return t+(null!=(n=i[e].value)?n:0)},0);i&&(!r||i<r)&&(r=i),i&&(!s||i>s)&&(s=i),t.precision>o&&(o=t.precision)}),r&&s?Vi(new c(r),new c(s),new c(Math.pow(10,-o))):function(){return[]}),title:{text:Ri(t.units,e),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"normal"},series:{dataLabels:m({},on(t,e))}}});var n,r,s,o}(e,t,i);case ci.PercentVerticalBarChart:return function(t,e,i){return m({},un(t,e,i),{yAxis:{min:0,title:{text:"%"}},plotOptions:{column:{stacking:"percent"},series:m({},Xi(t.visualizationSettings.timeVariableIntervals,t.visualizationSettings.timeSeriesStartingPoint),{dataLabels:m({},on(t,e))})}})}(e,t,i);case ci.PercentHorizontalBarChart:return function(t,e,i){return m({},hn(t,e,i),{yAxis:{min:0,title:{text:"%",style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"percent"},series:{dataLabels:m({},on(t,e))}}})}(e,t,i);case ci.PieChart:return function(t,e,i){var n,r;return m({},rn(t,e),{chart:{type:"pie"},plotOptions:{pie:{dataLabels:{formatter:(r=null!=(n=t.visualizationSettings.showDataPoints)&&n,function(){var t,e=r?" ("+Math.round(null!=(t=this.percentage)?t:0)+"%)":"";return Ii(this.name,20)+e})}}},series:t.series.map(function(n){return{animation:!1,type:"pie",name:n.rowNameGroup.map(function(t){return t[e]}).join(", "),data:n.series.map(function(n,r){return m({y:n.value,name:t.columnNameGroups[r].map(function(t){return t[e]}).join(", "),unit:Ri(t.units,e)},(null==i?void 0:i.accessibilityMode)&&Ji(r),{custom:{preliminary:n.preliminary,precision:n.precision}})})}})})}(e,t,i);case ci.PyramidChart:return function(t,e,i){var n=t.columnNameGroups.map(function(t){return t.map(function(t){return t[e]}).join(", ")}),r=Math.max.apply(Math,t.series.map(function(t){return Math.max.apply(Math,t.series.map(function(t){var e;return null!=(e=t.value)?e:0}))}));return m({},rn(t,e,i),{chart:{type:"bar"},xAxis:{categories:n,reversed:!1,labels:{style:{width:200}}},yAxis:m({},sn,{min:-Math.abs(r),max:Math.abs(r),title:{text:Ri(t.units,e),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},labels:{formatter:function(){return Math.abs(this.value).toLocaleString(e)}}}),legend:m({},pn,{enabled:!0,margin:30}),series:t.series.map(function(n,r){return m({animation:!1,type:"bar",name:n.rowNameGroup.map(function(t){return t[e]}).join(", ")},(null==i?void 0:i.accessibilityMode)&&Ji(r),{data:n.series.map(function(i,n){return{y:0===r&&i.value?-i.value:i.value,name:t.columnNameGroups[n].map(function(t){return t[e]}).join(", "),custom:{preliminary:i.preliminary,precision:i.precision}}})})}),plotOptions:{series:{stacking:"normal",dataLabels:m({},on(t,e))}},exporting:{enabled:!1}})}(e,t,i);case ci.ScatterPlot:return function(t,e,i){var n,r=null!=(n=t.visualizationSettings)&&n.cutValueAxis?void 0:0;return m({},rn(t,e,i),{chart:{type:"scatter"},xAxis:{softMin:0,softMax:0,title:{text:t.series[1].rowNameGroup.map(function(t){return t[e]}).join(", ")},gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5,plotLines:[{value:0,color:"#000",width:1}]},yAxis:m({},sn,{softMin:r,softMax:r,title:{text:t.series[0].rowNameGroup.map(function(t){return t[e]}).join(", ")}}),series:[{animation:!1,type:"scatter",data:t.series[0].series.map(function(e,i){var n,r;return{x:null!=(n=t.series[1].series[i].value)?n:void 0,y:null!=(r=t.series[0].series[i].value)?r:void 0,marker:{symbol:"circle"},custom:{preliminary:t.series[1].series[i].preliminary||t.series[0].series[i].preliminary,precision:Math.max(t.series[1].series[i].precision,t.series[0].series[i].precision)}}})}],tooltip:{headerFormat:"",pointFormat:gn(t.series,e),formatter:Di(t,e)},plotOptions:{scatter:{marker:{radius:5*(t.visualizationSettings.markerSize?.01*t.visualizationSettings.markerSize:1)}}},exporting:{enabled:!1}})}(e,t,i);default:throw new Error("Unsupported chart type")}},fn=function(t,e,i,n){if(0===t.length)return{};var r=t,s={};if(n){var o=yn(r,n);if(r=o.updatedArray,s=m({},s,o.parsedValues),0===r.length)return s}if(i){var a=xn(r,i);if(r=a.updatedArray,s=m({},s,a.parsedValues),0===r.length)return s}return r.forEach(function(t){var i=e.findIndex(function(e){return e.code===t});i>-1&&(s[t]=e[i].type===di.Time?[e[i].values[e[i].values.length-1].code]:[e[i].values[0].code])}),s},yn=function(t,e){var i=Object.keys(e),n={},r=t.map(function(t){return i.findIndex(function(e){return e===t})>-1&&e[t].length>0?(n[t]=e[t],""):t}).filter(function(t){return t.length>0});return{parsedValues:n,updatedArray:r}},xn=function(t,e){var i=Object.keys(e),n={},r=t.map(function(t){var r=i.findIndex(function(e){return e===t});return r>-1?(n[t]=e[i[r]],""):t}).filter(function(t){return t.length>0});return{parsedValues:n,updatedArray:r}},bn=function(t,e){var i,n;return(null!=(i=t.value)?i:0)-(null!=(n=e.value)?n:0)},vn=function(t,e){var i,n;return(null!=(i=e.value)?i:0)-(null!=(n=t.value)?n:0)};function wn(t,e,i){return Sn(kn(t,t.series[e].series,i),e)}function kn(t,e,i){var n=function(t,e){var i=[].concat(Array(t.length).keys());return i.sort(function(i,n){return e(t[i],t[n])}),i}(e,i),r=n.map(function(e){return t.columnNameGroups[e]}),s=t.series.map(function(t){return function(t,e){return m({},t,{series:e.map(function(e){return t.series[e]})})}(t,n)});return m({},t,{columnNameGroups:r,series:s})}function Sn(t,e){var i=[];return i.push(t.series[e]),t.series.forEach(function(t,n){n!==e&&i.push(t)}),m({},t,{series:i})}function Mn(t,e){if(Object.keys(e).includes(t.code)){var i=t.values.filter(function(i){return e[t.code].includes(i.code)});if(0===i.length)throw new Error("Provided selected value code can not be found from the metadata");return i}return t.values}function Cn(t,e){for(var i,n=[],r=function(){var e=i.value,r=t.find(function(t){return t.code===e});r&&n.push(r)},s=g(e);!(i=s()).done;)r();return n}var Tn=/*#__PURE__*/function(){function t(t,e){this.dataIndex=void 0,this.dataLength=void 0,this.responseObj=void 0,this.coordinates=void 0,this.lastIndices=void 0,this.indices=void 0,this.variableOrder=void 0,this.lastCoordinateIndex=void 0,this.reverseCumulativeProducts=void 0,this.selectedViewContentVariableIndex=void 0,this.selectedViewTimeVariableIndex=void 0,this.selectedViewMeta=void 0,this.rowLength=0,this.rowAmount=0,this.responseObj=t;var i=t.metaData,n=i.map(function(t){return t.values.length});this.selectedViewMeta=this.getSelectedView(t,e),this.coordinates=Array.from({length:this.selectedViewMeta.length},function(){return[]}),this.variableOrder=this.getVariableOrder(),this.initializeCoordinates(i),this.selectedViewContentVariableIndex=this.selectedViewMeta.findIndex(function(t){return t.type===di.Content}),this.selectedViewTimeVariableIndex=this.selectedViewMeta.findIndex(function(t){return t.type===di.Time}),this.indices=Array.from({length:i.length},function(){return 0}),this.lastIndices=this.selectedViewMeta.map(function(t){return t.values.length-1}),this.lastCoordinateIndex=this.coordinates.length-1,this.reverseCumulativeProducts=this.generateRCP(n),this.dataLength=this.selectedViewMeta.map(function(t){return t.values.length}).reduce(function(t,e){return t*e},1),this.dataIndex=0,this.setCurrentIndex()}var e=t.prototype;return e.initializeCoordinates=function(t){for(var e=this,i=function(){var i,r=e.variableOrder[n],s=e.selectedViewMeta[n].code,o=null==(i=t.find(function(t){return t.code===s}))?void 0:i.values,a=e.selectedViewMeta.find(function(t){return t.code===s});e.coordinates[r]=a.values.map(function(t){return o.findIndex(function(e){return e===t})})},n=0;n<this.selectedViewMeta.length;n++)i()},e.getViewSeries=function(){var t=0,e=[],i=[];do{var n=this.createDataCell();e.push(n),++t>=this.rowLength&&(i.push({rowNameGroup:this.generateRowNameGroup(),series:e}),e=[],t=0)}while(this.next());return i},e.generateRowNameGroup=function(){var t=this;return this.selectedViewMeta.slice(0,this.rowAmount).map(function(e,i){return e.values[t.indices[t.variableOrder[i]]].name})},e.next=function(){for(var t=this.lastCoordinateIndex;t>=0;t--){var e=this.variableOrder[t];if(this.indices[e]<this.lastIndices[t])return this.indices[e]++,this.setCurrentIndex(),!0;this.indices[e]=0}return!1},e.createDataCell=function(){var t,e,i=this.getCurrentTimeValue(),n={value:this.responseObj.data[this.dataIndex],precision:null!=(t=null==(e=this.selectedViewMeta[this.selectedViewContentVariableIndex].values[this.indices[this.variableOrder[this.selectedViewContentVariableIndex]]].contentComponent)?void 0:e.numberOfDecimals)?t:0,preliminary:!!i&&Object.values(i.name)[0].trim().endsWith("*")};return n.value||(n.missingCode=this.responseObj.missingDataInfo[this.dataIndex]),n},e.getSelectedView=function(t,e){var i=t.metaData.map(function(t){return m({},t,{values:Mn(t,e)})}),n=Cn(i.filter(function(e){return t.rowVariableCodes.includes(e.code)&&e.values.length>1}),t.rowVariableCodes),r=Cn(i.filter(function(e){return t.columnVariableCodes.includes(e.code)&&e.values.length>1}),t.columnVariableCodes),s=Cn(i.filter(function(e){return t.selectableVariableCodes.includes(e.code)}),t.selectableVariableCodes),o=s.filter(function(t){return t.values.length>1&&!n.some(function(e){return e.code==t.code})&&!r.some(function(e){return e.code==t.code})}),a=s.filter(function(t){return 1==t.values.length}),l=i.filter(function(t){return!n.some(function(e){return e.code==t.code})&&!r.some(function(e){return e.code==t.code})&&!s.some(function(e){return e.code==t.code})}),h=[].concat(o,n,r,a,l);return this.rowLength=wi(i.filter(function(e){return t.columnVariableCodes.includes(e.code)}).map(function(t){return t.values})).length,this.rowAmount=n.length+o.length,h},e.getVariableOrder=function(){var t=this.responseObj.metaData.map(function(t){return t.code}),e=this.selectedViewMeta.map(function(e){return t.indexOf(e.code)});return e},e.generateRCP=function(t){for(var e=Array.from({length:t.length}),i=1,n=t.length-1;n>=0;n--)e[n]=i,i*=t[n];return e},e.setCurrentIndex=function(){this.dataIndex=0;for(var t=0;t<=this.lastCoordinateIndex;t++){var e=this.variableOrder[t];this.dataIndex+=this.reverseCumulativeProducts[e]*this.coordinates[e][this.indices[e]]}},e.getCurrentTimeValue=function(){if(-1!=this.selectedViewTimeVariableIndex)return this.selectedViewMeta[this.selectedViewTimeVariableIndex].values[this.indices[this.variableOrder[this.selectedViewTimeVariableIndex]]]},t}();function An(t,e){var i,n,r,s,o,a,l=function(t,e,i){var n=t.metaData,r=function(t,e){return t.filter(function(t){return e.includes(t.code)})}(n,t.selectableVariableCodes),s=function(t){var e=t.find(function(t){return t.type===di.Content});if(e)return e;throw new Error("Content variable is not defined")}(n),o=function(t,e){var i=new Tn(t,e).getViewSeries(),n=Cn(t.metaData.filter(function(e){return t.columnVariableCodes.includes(e.code)}).filter(function(t){return t.values.length>1}),t.columnVariableCodes).map(function(t){return Mn(t,e)});return{columnNameGroups:wi(n).map(function(t){return t.map(function(t){return t.name})}),series:i}}(t,e),a=Pn(t.selectableVariableCodes.filter(function(e){return i[e]>1&&!t.rowVariableCodes.includes(e)&&!t.columnVariableCodes.includes(e)}),n).concat(Pn(t.rowVariableCodes,t.metaData));return{header:t.header,tableReferenceName:t.tableReference.name,subheaderValues:Ln(r,e,i),units:Nn(s,e),sources:In(s,e,function(t){var e;return null!=(e=null==t?void 0:t.source)?e:yi.empty}),columnNameGroups:o.columnNameGroups,series:o.series,rowVarNames:a,colVarNames:Pn(t.columnVariableCodes,t.metaData),selectableVarNames:Pn(t.selectableVariableCodes,t.metaData),visualizationSettings:t.visualizationSettings,seriesType:Dn(t.columnVariableCodes,t.metaData)}}(t,e,function(t){var e={};return Object.entries(t).forEach(function(t){return e[t[0]]=t[1].length}),e}(e)),h=(null==(i=l.visualizationSettings)?void 0:i.visualizationType)===ci.PercentHorizontalBarChart||(null==(n=l.visualizationSettings)?void 0:n.visualizationType)===ci.PercentVerticalBarChart;switch(null==(r=t.visualizationSettings)?void 0:r.sorting){case null:case void 0:case"no_sorting":return l;case"reversed":return function(t){var e=[].concat(t.series).reverse().map(function(t){return m({},t,{series:[].concat(t.series).reverse(),rowNameGroup:[].concat(t.rowNameGroup).reverse()})});return m({},t,{series:e,columnNameGroups:[].concat(t.columnNameGroups).reverse()})}(l);case"sum":return function(t,e){var i=t.columnNameGroups.map(function(e,i){return{value:t.series.map(function(t){return t.series[i]}).reduce(function(t,e){var i;return t+(null!=(i=e.value)?i:0)},0),precision:0,preliminary:!1}});return kn(t,i,e)}(l,vn);case"ascending":return wn(l,0,bn);case"descending":return wn(l,0,vn);default:return h?(s=l,o=En(l),a=On(t),Sn(kn(s,o.series[a].series,vn),a)):wn(l,On(t),vn)}}function En(t){var e=t.series.map(function(e){return m({},e,{series:e.series.map(function(e,i){var n,r=t.series.reduce(function(t,e){var n;return t+(null!=(n=e.series[i].value)?n:0)},0),s=r&&0!==r?Math.round(100*(null!=(n=e.value)?n:0)/r*10)/10:null,o={value:s,precision:1,preliminary:e.preliminary};return null===s&&(o.missingCode=e.missingCode),o})})});return m({},t,{units:t.units.map(function(t){return{name:t.name,unit:(e=t.unit,Object.keys(e).reduce(function(t,e){return t[e]="%",t},{}))};var e}),series:e})}function Pn(t,e){return t.reduce(function(t,i){var n,r=null==(n=e.find(function(t){return t.code===i}))?void 0:n.name;return r&&t.push(r),t},[])}function On(t){var e=t.metaData.find(function(e){return e.code==t.rowVariableCodes[0]}),i=null==e?void 0:e.values.findIndex(function(e){var i;return e.code===(null==(i=t.visualizationSettings)?void 0:i.sorting)});return!i||i<0?0:i}function Ln(t,e,i){var n=[];return t.forEach(function(t){var r,s;1==i[t.code]&&n.push(null!=(r=null==(s=t.values.find(function(i){return i.code===e[t.code][0]}))?void 0:s.name)?r:{})}),n}function Nn(t,e){var i=t.code in e?t.values.filter(function(i){return e[t.code].includes(i.code)}):t.values;return i.reduce(function(t,e){return e.contentComponent&&t.push({name:e.name,unit:e.contentComponent.unit}),t},[])}function In(t,e,i){return t.code in e?t.values.filter(function(i){return e[t.code].includes(i.code)}).map(function(t){return i(t.contentComponent)}).filter(ki):t.values.map(function(t){return i(t.contentComponent)}).filter(ki)}function Dn(t,e){var i;if(t.length>1||0===t.length)return Gi.Nominal;var n=null==(i=e.find(function(e){return e.code===t[0]}))?void 0:i.type;switch(n){case di.Time:return Gi.Time;case di.Ordinal:return Gi.Ordinal;default:return Gi.Nominal}}var Bn=function(t){return{accessibility:{keyboardNavigation:{seriesNavigation:{mode:"serialize"}}},responsive:{rules:[{condition:{maxHeight:600},chartOptions:{chart:{height:600}}}]},exporting:{enabled:!1,fallbackToExportServer:!1,allowHTML:!0},lang:{accessibility:{thousandsSep:yi.thousandsSepAccessibility[t],credits:yi.credits[t],chartTypes:{barMultiple:yi.barMultiple[t],barSingle:yi.barSingle[t],columnMultiple:yi.columnMultiple[t],columnSingle:yi.columnSingle[t],lineSingle:yi.lineSingle[t],lineMultiple:yi.lineMultiple[t],pieSingle:yi.pieSingle[t],scatterSingle:yi.scatterSingle[t],scatterMultiple:yi.scatterMultiple[t],defaultSingle:yi.defaultSingle[t],defaultMultiple:yi.defaultMultiple[t]},defaultChartTitle:yi.defaultChartTitle[t],exporting:{chartMenuLabel:yi.chartMenuLabel[t],menuButtonLabel:yi.menuButtonLabel[t]},legend:{legendItem:yi.legendItem[t],legendLabel:yi.legendLabel[t],legendLabelNoTitle:yi.legendLabelNoTitle[t]},axis:{rangeCategories:yi.rangeCategories[t],rangeFromTo:yi.rangeFromTo[t],timeRangeDays:yi.timeRangeDays[t],timeRangeHours:yi.timeRangeHours[t],timeRangeMinutes:yi.timeRangeMinutes[t],timeRangeSeconds:yi.timeRangeSeconds[t],xAxisDescriptionPlural:yi.xAxisDescriptionPlural[t],xAxisDescriptionSingular:yi.xAxisDescriptionSingular[t],yAxisDescriptionPlural:yi.yAxisDescriptionPlural[t],yAxisDescriptionSingular:yi.yAxisDescriptionSingular[t]},series:{summary:{bar:yi.seriesSummaryBar[t],barCombination:yi.seriesSummaryBarCombination[t],column:yi.seriesSummaryColumn[t],columnCombination:yi.seriesSummaryColumnCombination[t],default:yi.seriesSummaryDefault[t],defaultCombination:yi.seriesSummaryDefaultCombination[t],line:yi.seriesSummaryLine[t],lineCombination:yi.seriesSummaryLineCombination[t],pie:yi.seriesSummaryPie[t],pieCombination:yi.seriesSummaryPieCombination[t],scatter:yi.seriesSummaryScatter[t],scatterCombination:yi.seriesSummaryScatterCombination[t]},xAxisDescription:yi.xAxisDescription[t],yAxisDescription:yi.yAxisDescription[t]},screenReaderSection:{endOfChartMarker:yi.endOfChartMarker[t]},chartContainerLabel:yi.chartContainerLabel[t]},thousandsSep:yi.thousandsSep[t],decimalPoint:yi.decimalPoint[t],contextButtonTitle:yi.contextButtonTitle[t],downloadCSV:yi.downloadCSV[t],downloadPNG:yi.downloadPNG[t],downloadSVG:yi.downloadSVG[t],months:xi.months[t],shortMonths:xi.shortMonths[t],weekdays:xi.weekdays[t],loading:yi.loading[t],numericSymbols:null},colors:Ki,chart:{style:{fontFamily:'"Barlow Semi Condensed", Verdana, sans-serif'},spacingBottom:30,spacingLeft:20,height:"56.25%"},tooltip:{enabled:!0,headerFormat:"{point.key}<br/>",pointFormat:"{point.y}",backgroundColor:"#ffffff",outside:!0,style:{color:"#000",fontSize:"1rem",fontWeight:"400"}},title:{useHTML:!0,style:{color:"#000",fontSize:"1.25rem",fontWeight:"500",textAlign:"left",maxWidth:"calc(100% - 4rem)",whiteSpace:"normal"},align:"left",margin:45,minScale:1},subtitle:{style:{color:"#000",fontSize:"1.25rem",fontWeight:"400"},align:"left"},credits:{position:{align:"left",x:5},style:{color:"#000",fontSize:"1rem",fontWeight:"400",textAlign:"left",cursor:"default"},href:""},yAxis:{title:{style:{color:"#000",fontSize:"1rem",fontWeight:"400",left:0,textAlign:"left",textOverflow:"ellipsis"},align:"high",rotation:0,textAlign:"left",offset:0,y:-15,x:55,reserveSpace:!1},lineColor:"#000",lineWidth:1,gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5,labels:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"},autoRotation:[0],allowOverlap:!1,formatter:Ei(t)}},xAxis:{labels:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"},allowOverlap:!1,autoRotation:[0]},title:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"}},lineColor:"#000",lineWidth:1,crosshair:!0},legend:{enabled:!1,itemStyle:{fontSize:"1rem",fontWeight:"400",color:"#000"},align:"center"},plotOptions:{pie:{dataLabels:{enabled:!0,useHTML:!0,connectorShape:"crookedLine",connectorColor:"#000000",style:{fontSize:"1rem",fontWeight:"400",color:"#000",textOverflow:"crop"}}},column:{groupPadding:.2,pointPadding:.01,borderRadius:0,borderWidth:0},bar:{groupPadding:.2,pointPadding:.01,borderRadius:0,borderWidth:0},series:{animation:!1}}}},Rn=function(t,e,i,n,r){void 0===n&&(n=null),function(){if("undefined"!=typeof window)try{require("highcharts/modules/pattern-fill.js"),require("highcharts/modules/accessibility.js"),require("highcharts/modules/exporting.js"),require("highcharts/modules/offline-exporting.js")}catch(t){console.error("Error loading Highcharts modules:",t)}}();var s=Pi(i);Wi.setOptions(Bn(s));var o=An(e,fn(e.selectableVariableCodes,e.metaData,e.visualizationSettings.defaultSelectableVariableCodes,n)),a=mn(s,o,r);return Wi.chart(t,a)};function Fn(t,e,i,n,r,s,o){var a=document.getElementById(s);if(!a)throw new Error("No container with matching id found in the DOM tree");try{var l=function(t,e){var i,n,r=null!=(i=t.columnNameGroups[0].length)?i:0,s=null!=(n=t.series[0].rowNameGroup.length)?n:0,o=Object.assign(document.createElement("table"),{tabIndex:0});if(r>0){var a=function(t,e){for(var i=jn(t),n=[],r=0;r<t[0].length;r++){for(var s=document.createElement("tr"),o=0;o<t.length;o+=i[r]){var a=document.createElement("th");a.setAttribute("colSpan",i[r].toString()),a.setAttribute("scope","col"),a.textContent=t[o][r][e],s.append(a)}n.push(s)}return n}(t.columnNameGroups,e);if(s>0){var l=document.createElement("td");l.setAttribute("colSpan",s.toString()),l.setAttribute("rowSpan",r.toString()),a[0].prepend(l)}var h=document.createElement("thead");h.append.apply(h,a),o.append(h)}if(t.series.length>0){var c=document.createElement("tbody");c.append.apply(c,function(t,e){for(var i=[],n=Hn(t),r=0;r<t.length;r++){for(var s=document.createElement("tr"),o=0;o<t[r].rowNameGroup.length;o++)if(r%n[o]==0){var a=document.createElement("th");a.setAttribute("rowSpan",n[o].toString()),a.setAttribute("scope","row"),a.textContent=t[r].rowNameGroup[o][e],s.append(a)}for(var l,h=g(t[r].series);!(l=h()).done;){var c=l.value,d=document.createElement("td");d.textContent=null===c.value?Ci(c.missingCode,e,!0):Mi(c.value,c.precision,e,!0),s.append(d)}i.push(s)}return i}(t.series,e)),o.append(c)}return o}(t,e);if(i){var h=document.createElement("caption");if(h.textContent=t.header[e],t.subheaderValues.length>0){var c=t.subheaderValues.map(function(t){return t[e]}).join(" | ");h.append(document.createElement("br"),c)}h.className="tableChart-caption",l.prepend(h)}if(a.append(l),n){var d=document.createElement("p"),u=Ri(t.units,e);d.append(yi.unit[e]+": "+u),a.append(d)}if(o){var p=document.createElement("p");p.append(o),a.append(p)}if(r){var m=document.createElement("p"),f=yi.source[e]+": "+t.sources.map(function(t){return t[e]}).join(", ");m.append(f),a.append(m)}}catch(t){console.error(t),a.replaceChildren();var y=document.createElement("h1");y.append(yi.graphCreationError[e]),a.append(y)}}var zn=function(t,e){return Object.keys(t).every(function(i){return t[i]==e[i]})},Hn=function(t){if(!t[0].rowNameGroup||0===t[0].rowNameGroup.length)return[];for(var e=Array(t[0].rowNameGroup.length).fill(1),i=0;i<t[0].rowNameGroup.length;i++)for(var n=0;n<t.length-1&&zn(t[n].rowNameGroup[i],t[n+1].rowNameGroup[i]);n++)e[i]++;return e},jn=function(t){if(!t||0===t.length)return[];for(var e=Array(t[0].length).fill(1),i=0;i<t[0].length;i++)for(var n=0;n<t.length-1&&zn(t[n][i],t[n+1][i]);n++)e[i]++;return e},Gn=function(t){var e=t?t.split(".")[0]:"",i=new Date;return e+"_"+i.getFullYear()+(i.getMonth()+1).toString().padStart(2,"0")+i.getDate().toString().padStart(2,"0")+"_"+i.getHours().toString().padStart(2,"0")+i.getMinutes().toString().padStart(2,"0")+i.getSeconds().toString().padStart(2,"0")},Wn=function(t,e){var i,n,r,s,o,a,l,h;((null==(i=t.visualizationSettings)?void 0:i.visualizationType)===ci.PercentHorizontalBarChart||(null==(n=t.visualizationSettings)?void 0:n.visualizationType)===ci.PercentVerticalBarChart)&&(t=En(t));var c=null!=(r=null==(s=t.columnNameGroups[0])?void 0:s.length)?r:0,d=null!=(o=null==(a=t.series[0])?void 0:a.rowNameGroup.length)?o:0,u=(null!=(l=null==(h=t.series[0])?void 0:h.series.length)?l:0)+d,p=","==yi.decimalPoint[e]?";":",",g="\n",m=Xn(['"'+t.header[e]+'"'],0,u,p,g);t.subheaderValues.length>0&&(m+=Xn(['"'+t.subheaderValues.map(function(t){return t[e]}).join(" | ")+'"'],0,u,p,g));for(var f=function(i){m+=Xn(t.columnNameGroups.map(function(t){return'"'+t[i][e]+'"'}),d,u,p,g)},y=0;y<c;y++)f(y);return t.series.forEach(function(t){var i=[];t.rowNameGroup.length>0&&(i=t.rowNameGroup.map(function(t){return'"'+t[e]+'"'})),i=i.concat(t.series.map(function(t){return null===t.value?Ci(t.missingCode,e):Mi(t.value,t.precision,e)})),m+=Xn(i,0,u,p,g)}),m+=Xn(['"'+yi.unit[e]+": "+Ri(t.units,e)+'"'],0,u,p,g),m+=Xn(['"'+yi.source[e]+": "+t.sources.map(function(t){return t[e]}).join(", ")+'"'],0,u,p)},Vn=function(t,e){return{onClick:function(){var i=Wn(t,e),n=new Blob(["\ufeff",i],{type:"text/csv;charset=utf-8;"}),r=URL.createObjectURL(n),s=document.createElement("a");s.setAttribute("href",r),s.setAttribute("download",Gn(t.tableReferenceName)+".csv"),document.body.appendChild(s),s.click()},text:yi.downloadCSV[e]}};function Xn(t,e,i,n,r){void 0===r&&(r="");for(var s="",o=0;o<i;o++)o>=e&&o<e+t.length&&(s+=t[o-e]),o<i-1&&(s+=n);return s+r}var Un=['xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"','xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"','xmlns:mv="urn:schemas-microsoft-com:mac:vml"','xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main"','xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"','xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"','xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"','xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"'];function Yn(t){var e=Math.floor(t/26),i=String.fromCharCode(97+t%26).toUpperCase();return 0===e?i:Yn(e-1)+i}var qn='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<workbook '+['xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"','xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"','xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main"','xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"','xmlns:mv="urn:schemas-microsoft-com:mac:vml"','xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"','xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"','xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"'].join(" ")+'>\n <workbookPr/>\n <sheets>\n <sheet state="visible" name="Sheet1" sheetId="1" r:id="rId3"/>\n </sheets>\n <definedNames/>\n <calcPr/>\n</workbook>';function $n(t,e,i){for(var n=Array(i),r=0;r<i;r++)n[r]=r>=e&&r<e+t.length?t[r-e]:null;return n}var _n=function(t,e){try{var i=function(t,e){var i,n,r,s,o,a,l,h;((null==(i=t.visualizationSettings)?void 0:i.visualizationType)===ci.PercentHorizontalBarChart||(null==(n=t.visualizationSettings)?void 0:n.visualizationType)===ci.PercentVerticalBarChart)&&(t=En(t));var c=null!=(r=null==(s=t.columnNameGroups[0])?void 0:s.length)?r:0,d=null!=(o=null==(a=t.series[0])?void 0:a.rowNameGroup.length)?o:0,u=(null!=(l=null==(h=t.series[0])?void 0:h.series.length)?l:0)+d,p=[$n([t.header[e]],0,u)];t.subheaderValues.length>0&&p.push($n([t.subheaderValues.map(function(t){return t[e]}).join(" | ")],0,u));for(var g=function(i){p.push($n(t.columnNameGroups.map(function(t){return t[i][e]}),d,u))},m=0;m<c;m++)g(m);return t.series.forEach(function(t){var i=[];t.rowNameGroup.length>0&&(i=t.rowNameGroup.map(function(t){return t[e]})),i=i.concat(t.series.map(function(t){return null===t.value?Ci(t.missingCode,e):Number(t.value.toFixed(t.precision))})),p.push($n(i,0,u))}),p.push($n([yi.unit[e]+": "+Ri(t.units,e)],0,u)),p.push($n([yi.source[e]+": "+t.sources.map(function(t){return t[e]}).join(", ")],0,u)),p}(t,e),n=function(t){var e=function(t){for(var e=[],i=1;i<=t;i++)e.push('<col min="'+i+'" max="'+i+'" width="20"/>');return e?"<cols>"+e+"</cols>":""}(Math.max.apply(Math,t.map(function(t){return t.length}))),i=function(t){return t.map(function(t,e){var i=t.map(function(t,i){return function(t,e,i){return null===t?null:"string"==typeof t?'<c r="'+Yn(e)+i+'" t="inlineStr"><is><t>'+(n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;"},t.replace(/[&<>"']/g,function(t){return n[t]})+"</t></is></c>"):'<c r="$'+Yn(e)+i+'"><v>'+t+"</v></c>";var n}(t,i,e+1)}).filter(function(t){return null!==t}).join("");return'<row r="'+(e+1)+'">'+i+"</row>"}).join("")}(t);return function(t,e){return'<?xml version="1.0" ?>\n<worksheet '+Un.join(" ")+">\n "+t+"\n <sheetData>\n "+e+"\n </sheetData>\n</worksheet>"}(e,i)}(i),r={xl:{"worksheets/sheet1.xml":d(n),"workbook.xml":d(qn),"_rels/workbook.xml.rels":d('<?xml version="1.0" ?>\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n <Relationship\n Id="rId3"\n Target="worksheets/sheet1.xml" \n Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"\n />\n</Relationships>')},"_rels/.rels":d('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Relationships\nxmlns="http://schemas.openxmlformats.org/package/2006/relationships"\n>\n <Relationship\n Id="rId1"\n Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"\n Target="xl/workbook.xml"\n />\n</Relationships>'),"[Content_Types].xml":d('<?xml version="1.0" ?>\n<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">\n <Default ContentType="application/xml" Extension="xml"/>\n <Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels"/>\n <Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet1.xml"/>\n <Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" PartName="/xl/workbook.xml"/>\n</Types>')};return Promise.resolve(new Promise(function(t,e){u(r,function(i,n){if(i)return e(i);var r=new Blob([n.buffer instanceof ArrayBuffer?n.buffer:new Uint8Array(n)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});return t(r)})}))}catch(t){return Promise.reject(t)}},Kn=function(t,e){return{onClick:function(){return Promise.resolve(_n(t,e)).then(function(e){var i=URL.createObjectURL(e),n=document.createElement("a");n.setAttribute("href",i),n.setAttribute("download",Gn(t.tableReferenceName)+".xlsx"),document.body.appendChild(n),n.click()})},text:yi.downloadXLSX[e]}},Zn=ji(function(e,i){var n;"undefined"!=typeof self&&self,e.exports=(n=t,function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,i){function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},n.apply(this,arguments)}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),i.d(e,"HighchartsReact",function(){return h});var o=i(1),a=i.n(o),l="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,h=Object(o.memo)(Object(o.forwardRef)(function(t,e){var i=Object(o.useRef)(),h=Object(o.useRef)(),c=Object(o.useRef)(t.constructorType),d=Object(o.useRef)(t.highcharts);return l(function(){function e(){var e=t.highcharts||"object"===("undefined"==typeof window?"undefined":s(window))&&window.Highcharts,n=t.constructorType||"chart";e?e[n]?t.options?h.current=e[n](i.current,t.options,t.callback):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(h.current){if(!1!==t.allowChartUpdate)if(t.constructorType!==c.current||t.highcharts!==d.current)c.current=t.constructorType,d.current=t.highcharts,e();else if(!t.immutable&&h.current){var n;(n=h.current).update.apply(n,[t.options].concat(function(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.updateArgs||[!0,!0])))}else e()}else e()},[t.options,t.allowChartUpdate,t.updateArgs,t.containerProps,t.highcharts,t.constructorType]),l(function(){return function(){h.current&&(h.current.destroy(),h.current=null)}},[]),Object(o.useImperativeHandle)(e,function(){return{get chart(){return h.current},container:i}},[]),a.a.createElement("div",n({},t.containerProps,{ref:i}))}));e.default=h},function(t,e){t.exports=n}]))});ji(function(t,e){var i,n;i="undefined"==typeof window?Hi:window,n=(t,e,i,n,r,s,o,a,l,h,c)=>(()=>{let d;var u,p,g,m,f={260:t=>{t.exports=h},512:t=>{t.exports=o},532:t=>{t.exports=r},540:t=>{t.exports=l},608:t=>{t.exports=a},620:t=>{t.exports=s},632:t=>{t.exports=n},660:t=>{t.exports=i},820:t=>{t.exports=c},944:e=>{e.exports=t},984:t=>{t.exports=e}},y={};function x(t){var e=y[t];if(void 0!==e)return e.exports;var i=y[t]={exports:{}};return f[t](i,i.exports,x),i.exports}x.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return x.d(e,{a:e}),e},x.d=(t,e)=>{for(var i in e)x.o(e,i)&&!x.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},x.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var b={};x.d(b,{default:()=>es});var v=x(944),w=x.n(v);let{doc:k,win:S}=w(),{css:M}=w(),C=S.EventTarget&&new S.EventTarget||"none";function T(t){if("function"==typeof S.MouseEvent)return new S.MouseEvent(t.type,t);if(k?.createEvent){let e=k.createEvent("MouseEvent");if(e.initMouseEvent)return e.initMouseEvent(t.type,t.bubbles,t.cancelable,t.view||S,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget),e}return A(t.type)}function A(t,e,i){let n=e||{x:0,y:0};if("function"==typeof S.MouseEvent)return new S.MouseEvent(t,{bubbles:!0,cancelable:!0,composed:!0,button:0,buttons:1,relatedTarget:i||C,view:S,detail:+("click"===t),screenX:n.x,screenY:n.y,clientX:n.x,clientY:n.y});if(k?.createEvent){let e=k.createEvent("MouseEvent");if(e.initMouseEvent)return e.initMouseEvent(t,!0,!0,S,+("click"===t),n.x,n.y,n.x,n.y,!1,!1,!1,!1,0,null),e}return{type:t}}let E={addClass:function(t,e){t.classList?t.classList.add(e):0>t.className.indexOf(e)&&(t.className+=" "+e)},cloneMouseEvent:T,cloneTouchEvent:function(t){let e=t=>{let e=[];for(let i=0;i<t.length;++i){let n=t.item(i);n&&e.push(n)}return e};if("function"==typeof S.TouchEvent){let i=new S.TouchEvent(t.type,{touches:e(t.touches),targetTouches:e(t.targetTouches),changedTouches:e(t.changedTouches),ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed,detail:t.detail,view:t.view});return t.defaultPrevented&&i.preventDefault(),i}let i=T(t);return i.touches=t.touches,i.changedTouches=t.changedTouches,i.targetTouches=t.targetTouches,i},escapeStringForHTML:function(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")},getElement:function(t){return k.getElementById(t)},getFakeMouseEvent:A,getHeadingTagNameForElement:function(t){let e=t=>"h"+Math.min(6,parseInt(t.slice(1),10)+1),i=t=>/^H[1-6]$/i.test(t),n=t=>{let r=(t=>{let e=t;for(;e=e.previousSibling;){let t=e.tagName||"";if(i(t))return t}return""})(t);if(r)return e(r);let s=t.parentElement;if(!s)return"h6";let o=s.tagName;return i(o)?e(o):n(s)};return n(t)},removeChildNodes:function(t){for(;t.lastChild;)t.removeChild(t.lastChild)},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(RegExp(e,"g"),"")},removeElement:function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},reverseChildNodes:function(t){let e=t.childNodes.length;for(;e--;)t.appendChild(t.childNodes[e])},simulatedEventTarget:C,stripHTMLTagsFromString:function(t,e=!1){return"string"==typeof t?t.replace(e?/<\/?[^>]+(>|$)/g:/<\/?(?!\s)[^>]+(>|$)/g,""):t},visuallyHideElement:function(t){M(t,{position:"absolute",width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(1px, 1px, 1px, 1px)",marginTop:"-3px","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)",filter:"alpha(opacity=1)",opacity:.01})}};var P=x(984),O=x.n(P);let{format:L}=O(),{getNestedProperty:N,pick:I}=w();!function(t){function e(t,e,i){let n,r,s=(t,e)=>{let i=t.slice(e||0),n=i.indexOf("{"),r=i.indexOf("}");if(n>-1&&r>n)return{statement:i.substring(n+1,r),begin:e+n+1,end:e+r}},o=[],a=0;do{n=s(t,a),(r=t.substring(a,n&&n.begin-1)).length&&o.push({value:r,type:"constant"}),n&&o.push({value:n.statement,type:"statement"}),a=n?n.end+1:a+1}while(n);return o.forEach(t=>{"statement"===t.type&&(t.value=function(t,e){let i,n,r=t.indexOf("#each("),s=t.indexOf("#plural("),o=t.indexOf("["),a=t.indexOf("]");if(r>-1){let s,o=t.slice(r).indexOf(")")+r,a=t.substring(0,r),l=t.substring(o+1),h=t.substring(r+6,o).split(","),c=Number(h[1]);if(n="",i=N(h[0],e)){s=(c=isNaN(c)?i.length:c)<0?i.length+c:Math.min(c,i.length);for(let t=0;t<s;++t)n+=a+i[t]+l}return n.length?n:""}if(s>-1){var l;let i=t.slice(s).indexOf(")")+s,r=t.substring(s+8,i).split(",");switch(Number(N(r[0],e))){case 0:n=I(r[4],r[1]);break;case 1:n=I(r[2],r[1]);break;case 2:n=I(r[3],r[1]);break;default:n=r[1]}return n?(l=n).trim&&l.trim()||l.replace(/^\s+|\s+$/g,""):""}if(o>-1){let n,r=t.substring(0,o),s=Number(t.substring(o+1,a));return i=N(r,e),!isNaN(s)&&i&&(s<0?void 0===(n=i[i.length+s])&&(n=i[0]):void 0===(n=i[s])&&(n=i[i.length-1])),void 0!==n?n:""}return"{"+t+"}"}(t.value,e))}),L(o.reduce((t,e)=>t+e.value,""),e,i)}function i(t,i){let n=t.split("."),r=this.options.lang,s=0;for(;s<n.length;++s)r=r&&r[n[s]];return"string"==typeof r?e(r,i,this):""}t.compose=function(t){let e=t.prototype;e.langFormat||(e.langFormat=i)},t.i18nFormat=e}(u||(u={}));let D=u,{doc:B}=w(),{stripHTMLTagsFromString:R}=E,{defined:F,find:z,fireEvent:H}=w();function j(t){if(t.points&&t.points.length){let e=z(t.points,t=>!!t.graphic);return e&&e.graphic&&e.graphic.element}}function G(t){let e=j(t);return e&&e.parentNode||t.graph&&t.graph.element||t.group&&t.group.element}let W={fireEventOnWrappedOrUnwrappedElement:function t(e,i){let n=i.type,r=e.hcEvents;B?.createEvent&&(e.dispatchEvent||e.fireEvent)?e.dispatchEvent?e.dispatchEvent(i):e.fireEvent(n,i):r&&r[n]?H(e,n,i):e.element&&t(e.element,i)},getChartTitle:function(t){return R(t.options.title.text||t.langFormat("accessibility.defaultChartTitle",{chart:t}),t.renderer.forExport)},getAxisDescription:function(t){return t&&(t.options.accessibility?.description||t.axisTitle?.textStr||t.options.id||t.categories&&"categories"||t.dateTime&&"Time"||"values")},getAxisRangeDescription:function(t){let e=t.options||{};return e.accessibility&&void 0!==e.accessibility.rangeDescription?e.accessibility.rangeDescription:t.categories?function(t){let e=t.chart;return t.dataMax&&t.dataMin?e.langFormat("accessibility.axis.rangeCategories",{chart:e,axis:t,numCategories:t.dataMax-t.dataMin+1}):""}(t):!t.dateTime||0!==t.min&&0!==t.dataMin?function(t){let e=t.chart,i=e.options,n=i&&i.accessibility&&i.accessibility.screenReaderSection.axisRangeDateFormat||"",r={min:t.dataMin||t.min||0,max:t.dataMax||t.max||0},s=function(i){return t.dateTime?e.time.dateFormat(n,r[i]):r[i].toString()};return e.langFormat("accessibility.axis.rangeFromTo",{chart:e,axis:t,rangeFrom:s("min"),rangeTo:s("max")})}(t):function(t){let e=t.chart,i={},n="Seconds";i.Seconds=((t.dataMax||t.max||0)-(t.dataMin||t.min||0))/1e3,i.Minutes=i.Seconds/60,i.Hours=i.Minutes/60,i.Days=i.Hours/24,["Minutes","Hours","Days"].forEach(function(t){i[t]>2&&(n=t)});let r=i[n].toFixed(+("Seconds"!==n&&"Minutes"!==n));return e.langFormat("accessibility.axis.timeRange"+n,{chart:e,axis:t,range:r.replace(".0","")})}(t)},getPointFromXY:function(t,e,i){let n,r=t.length;for(;r--;)if(n=z(t[r].points||[],function(t){return t.x===e&&t.y===i}))return n},getSeriesFirstPointElement:j,getSeriesFromName:function(t,e){return e?(t.series||[]).filter(function(t){return t.name===e}):t.series},getSeriesA11yElement:G,unhideChartElementFromAT:function t(e,i){i.setAttribute("aria-hidden",!1),i!==e.renderTo&&i.parentNode&&i.parentNode!==B.body&&(Array.prototype.forEach.call(i.parentNode.childNodes,function(t){t.hasAttribute("aria-hidden")||t.setAttribute("aria-hidden",!0)}),t(e,i.parentNode))},hideSeriesFromAT:function(t){let e=G(t);e&&e.setAttribute("aria-hidden",!0)},scrollAxisToPoint:function(t){let e=t.series.xAxis,i=e&&e.scrollbar?e:t.series.yAxis,n=i&&i.scrollbar;if(n&&F(n.to)&&F(n.from)){let e=n.to-n.from,r=function(t,e){if(!F(t.dataMin)||!F(t.dataMax))return 0;let i=t.toPixels(t.dataMin),n=t.toPixels(t.dataMax);return(t.toPixels(e["xAxis"===t.coll?"x":"y"]||0)-i)/(n-i)}(i,t);n.updatePosition(r-e/2,r+e/2),H(n,"changed",{from:n.from,to:n.to,trigger:"scrollbar",DOMEvent:null})}}},{doc:V}=w(),{removeElement:X}=E,U=class{constructor(){this.elements=[]}createElement(){let t=V.createElement.apply(V,arguments);return this.elements.push(t),t}removeElement(t){X(t),this.elements.splice(this.elements.indexOf(t),1)}destroyCreatedElements(){this.elements.forEach(function(t){X(t)}),this.elements=[]}},{addEvent:Y}=w(),q=class{constructor(){this.eventRemovers=[]}addEvent(){let t=Y.apply(w(),arguments);return this.eventRemovers.push({element:arguments[0],remover:t}),t}removeEvent(t){let e=this.eventRemovers.map(t=>t.remover).indexOf(t);this.eventRemovers[e].remover(),this.eventRemovers.splice(e,1)}removeAddedEvents(){this.eventRemovers.map(t=>t.remover).forEach(t=>t()),this.eventRemovers=[]}},{fireEventOnWrappedOrUnwrappedElement:$}=W,{getFakeMouseEvent:_}=E,K=class{destroy(){}getKeyboardNavigation(){return[]}init(){}onChartRender(){}onChartUpdate(){}initBase(t,e){this.chart=t,this.eventProvider=new q,this.domElementProvider=new U,this.proxyProvider=e,this.keyCodes={left:37,right:39,up:38,down:40,enter:13,space:32,esc:27,tab:9,pageUp:33,pageDown:34,end:35,home:36}}addEvent(t,e,i,n){return this.eventProvider.addEvent(t,e,i,n)}createElement(t,e){return this.domElementProvider.createElement(t,e)}fakeClickEvent(t){$(t,_("click"))}destroyBase(){this.domElementProvider.destroyCreatedElements(),this.eventProvider.removeAddedEvents()}},{find:Z}=w(),J=class{constructor(t,e){this.chart=t,this.keyCodeMap=e.keyCodeMap||[],this.validate=e.validate,this.init=e.init,this.terminate=e.terminate,this.response={success:1,prev:2,next:3,noHandler:4,fail:5}}run(t){let e=t.which||t.keyCode,i=this.response.noHandler,n=Z(this.keyCodeMap,function(t){return t[0].indexOf(e)>-1});return n?i=n[1].call(this,e,t):9===e&&(i=this.response[t.shiftKey?"prev":"next"]),i}},{unhideChartElementFromAT:Q,getChartTitle:tt}=W,{doc:et}=w(),{stripHTMLTagsFromString:it}=E,nt=class extends K{onChartUpdate(){this.handleSVGTitleElement(),this.setSVGContainerLabel(),this.setGraphicContainerAttrs(),this.setRenderToAttrs(),this.makeCreditsAccessible()}handleSVGTitleElement(){let t=this.chart,e="highcharts-title-"+t.index,i=it(t.langFormat("accessibility.svgContainerTitle",{chartTitle:tt(t)}));if(i.length){let n=this.svgTitleElement=this.svgTitleElement||et.createElementNS("http://www.w3.org/2000/svg","title");n.textContent=i,n.id=e,t.renderTo.insertBefore(n,t.renderTo.firstChild)}}setSVGContainerLabel(){let t=this.chart,e=t.langFormat("accessibility.svgContainerLabel",{chartTitle:tt(t)});t.renderer.box&&e.length&&t.renderer.box.setAttribute("aria-label",e)}setGraphicContainerAttrs(){let t=this.chart,e=t.langFormat("accessibility.graphicContainerLabel",{chartTitle:tt(t)});e.length&&t.container.setAttribute("aria-label",e)}setRenderToAttrs(){let t=this.chart,e="disabled"!==t.options.accessibility.landmarkVerbosity,i=t.langFormat("accessibility.chartContainerLabel",{title:tt(t),chart:t});i&&(t.renderTo.setAttribute("role",e?"region":"group"),t.renderTo.setAttribute("aria-label",i))}makeCreditsAccessible(){let t=this.chart,e=t.credits;e&&(e.textStr&&e.element.setAttribute("aria-label",t.langFormat("accessibility.credits",{creditsStr:it(e.textStr,t.renderer.forExport)})),Q(t,e.element))}getKeyboardNavigation(){let t=this.chart;return new J(t,{keyCodeMap:[],validate:function(){return!0},init:function(){let e=t.accessibility;e&&e.keyboardNavigation.tabindexContainer.focus()}})}destroy(){this.chart.renderTo.setAttribute("aria-hidden",!0)}},{addEvent:rt,pick:st}=w();!function(t){let e=["x","y","transform","width","height","r","d","stroke-width"];function i(){let t=this.focusElement,e=this.options.accessibility.keyboardNavigation.focusBorder;t&&(t.removeFocusBorder(),e.enabled&&t.addFocusBorder(e.margin,{stroke:e.style.color,strokeWidth:e.style.lineWidth,r:e.style.borderRadius}))}function n(t,e){let i=this.options.accessibility.keyboardNavigation.focusBorder,n=e||t.element;n&&n.focus&&(n.hcEvents&&n.hcEvents.focusin||rt(n,"focusin",function(){}),n.focus(),i.hideBrowserFocusOutline&&(n.style.outline="none")),this.focusElement&&this.focusElement.removeFocusBorder(),this.focusElement=t,rt(this,"endResize",function(){this.renderFocusBorder()}),this.renderFocusBorder()}function r(t,i){this.focusBorder&&this.removeFocusBorder();let n=this.getBBox(),r=st(t,3),s=this.parentGroup,o=this.scaleX||s&&s.scaleX,a=this.scaleY||s&&s.scaleY,l=(o?!a:a)?Math.abs(o||a||1):(Math.abs(o||1)+Math.abs(a||1))/2,h=this.renderer.fontMetrics(this).h;n.x+=this.translateX?this.translateX:0,n.y+=this.translateY?this.translateY:0;let c=n.x-r,d=n.y-r,u=n.width+2*r,p=n.height+2*r,g=!!this.text;if("text"===this.element.nodeName||g){let t,e,i=!!this.rotation,s=g?{x:+!!i,y:0}:(t=0,e=0,"middle"===this.attr("text-anchor")?t=e=.5:this.rotation?t=.25:e=.75,{x:t,y:e}),o=+this.attr("x"),a=+this.attr("y");if(isNaN(o)||(c=o-n.width*s.x-r),isNaN(a)||(d=a-("start"===this.attr("text-anchor")?h:n.height)*s.y-r),g&&i){let t=u;u=p,p=t,isNaN(o)||(c=o-n.height*s.x-r),isNaN(a)||(d=a-n.width*s.y-r)}}this.focusBorder=this.renderer.rect(c,d,u,p,parseInt((i&&i.r||0).toString(),10)/l).addClass("highcharts-focus-border").attr({zIndex:99}).add(s),this.renderer.styledMode||this.focusBorder.attr({stroke:i&&i.stroke,"stroke-width":(i&&i.strokeWidth||0)/l}),function(t,...i){t.focusBorderUpdateHooks||(t.focusBorderUpdateHooks={},e.forEach(e=>{let n=e+"Setter",r=t[n]||t._defaultSetter;t.focusBorderUpdateHooks[n]=r,t[n]=function(){let e=r.apply(t,arguments);return t.addFocusBorder.apply(t,i),e}}))}(this,t,i),function(t){if(t.focusBorderDestroyHook)return;let e=t.destroy;t.destroy=function(){return t.focusBorder&&t.focusBorder.destroy&&t.focusBorder.destroy(),e.apply(t,arguments)},t.focusBorderDestroyHook=e}(this)}function s(){var t;(t=this).focusBorderUpdateHooks&&(Object.keys(t.focusBorderUpdateHooks).forEach(e=>{let i=t.focusBorderUpdateHooks[e];i===t._defaultSetter?delete t[e]:t[e]=i}),delete t.focusBorderUpdateHooks),this.focusBorderDestroyHook&&(this.destroy=this.focusBorderDestroyHook,delete this.focusBorderDestroyHook),this.focusBorder&&(this.focusBorder.destroy(),delete this.focusBorder)}t.compose=function(t,e){let o=t.prototype,a=e.prototype;o.renderFocusBorder||(o.renderFocusBorder=i,o.setFocusToElement=n),a.addFocusBorder||(a.addFocusBorder=r,a.removeFocusBorder=s)}}(p||(p={}));let ot=p;var at=x(660),lt=x.n(at);let{doc:ht}=w(),{addClass:ct,visuallyHideElement:dt}=E,{attr:ut}=w(),pt=class{constructor(t,e){this.chart=t,this.domElementProvider=new U,this.announceRegion=this.addAnnounceRegion(e)}destroy(){this.domElementProvider.destroyCreatedElements()}announce(t){lt().setElementHTML(this.announceRegion,t),this.clearAnnouncementRegionTimer&&clearTimeout(this.clearAnnouncementRegionTimer),this.clearAnnouncementRegionTimer=setTimeout(()=>{this.announceRegion.innerHTML=lt().emptyHTML,delete this.clearAnnouncementRegionTimer},3e3)}addAnnounceRegion(t){let e=this.chart.announcerContainer||this.createAnnouncerContainer(),i=this.domElementProvider.createElement("div");return ut(i,{"aria-hidden":!1,"aria-live":t,"aria-atomic":!0}),this.chart.styledMode?ct(i,"highcharts-visually-hidden"):dt(i),e.appendChild(i),i}createAnnouncerContainer(){let t=this.chart,e=ht.createElement("div");return ut(e,{"aria-hidden":!1,class:"highcharts-announcer-container"}),e.style.position="relative",t.renderTo.insertBefore(e,t.renderTo.firstChild),t.announcerContainer=e,e}},{escapeStringForHTML:gt,stripHTMLTagsFromString:mt}=E;function ft(t){return(t.annotations||[]).reduce((t,e)=>(e.options&&!1!==e.options.visible&&(t=t.concat(e.labels)),t),[])}function yt(t){return t.options&&t.options.accessibility&&t.options.accessibility.description||t.graphic&&t.graphic.text&&t.graphic.text.textStr||""}function xt(t){let e=t.options&&t.options.accessibility&&t.options.accessibility.description;if(e)return e;let i=t.chart,n=yt(t),r=t.points.filter(t=>!!t.graphic).map(t=>{let e=t.accessibility&&t.accessibility.valueDescription||(t=>t.graphic&&t.graphic.element&&t.graphic.element.getAttribute("aria-label")||"")(t),i=t&&t.series.name||"";return(i?i+", ":"")+"data point "+e}).filter(t=>!!t),s=r.length,o=s>1?"MultiplePoints":s?"SinglePoint":"NoPoints",a={annotationText:n,annotation:t,numPoints:s,annotationPoint:r[0],additionalAnnotationPoints:r.slice(1)};return i.langFormat("accessibility.screenReaderSection.annotations.description"+o,a)}function bt(t){return ft(t).map(e=>{let i=gt(mt(xt(e),t.renderer.forExport));return i?`<li>${i}</li>`:""})}let vt={getAnnotationsInfoHTML:function(t){let e=t.annotations;return e&&e.length?`<ul style="list-style-type: none">${bt(t).join(" ")}</ul>`:""},getAnnotationLabelDescription:xt,getAnnotationListItems:bt,getPointAnnotationTexts:function(t){let e=ft(t.series.chart).filter(e=>e.points.indexOf(t)>-1);return e.length?e.map(t=>`${yt(t)}`):[]}},{getAnnotationsInfoHTML:wt}=vt,{getAxisDescription:kt,getAxisRangeDescription:St,getChartTitle:Mt,unhideChartElementFromAT:Ct}=W,{format:Tt}=O(),{doc:At}=w(),{addClass:Et,getElement:Pt,getHeadingTagNameForElement:Ot,stripHTMLTagsFromString:Lt,visuallyHideElement:Nt}=E,{attr:It,pick:Dt,replaceNested:Bt}=w();function Rt(t){return Bt(t,[/<([\w\-.:!]+)\b[^<>]*>\s*<\/\1>/g,""])}let Ft=class extends K{constructor(){super(...arguments),this.screenReaderSections={}}init(){let t=this.chart,e=this;this.initRegionsDefinitions(),this.addEvent(t,"afterGetTableAST",function(t){e.onDataTableCreated(t)}),this.addEvent(t,"afterViewData",function(t){t.wasHidden&&(e.dataTableDiv=t.element,setTimeout(function(){e.focusDataTable()},300))}),this.addEvent(t,"afterHideData",function(){e.viewDataTableButton&&e.viewDataTableButton.setAttribute("aria-expanded","false")}),t.exporting&&this.addEvent(t,"afterPrint",function(){e.updateAllScreenReaderSections()}),this.announcer=new pt(t,"assertive")}initRegionsDefinitions(){let t=this,e=this.chart.options.accessibility;this.screenReaderSections={before:{element:null,buildContent:function(i){let n=e.screenReaderSection.beforeChartFormatter;return n?n(i):t.defaultBeforeChartFormatter(i)},insertIntoDOM:function(t,e){e.renderTo.insertBefore(t,e.renderTo.firstChild)},afterInserted:function(){void 0!==t.sonifyButtonId&&t.initSonifyButton(t.sonifyButtonId),void 0!==t.dataTableButtonId&&t.initDataTableButton(t.dataTableButtonId)}},after:{element:null,buildContent:function(i){let n=e.screenReaderSection.afterChartFormatter;return n?n(i):t.defaultAfterChartFormatter()},insertIntoDOM:function(t,e){e.renderTo.insertBefore(t,e.container.nextSibling)},afterInserted:function(){t.chart.accessibility&&e.keyboardNavigation.enabled&&t.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}}onChartRender(){this.linkedDescriptionElement=this.getLinkedDescriptionElement(),this.setLinkedDescriptionAttrs(),this.updateAllScreenReaderSections()}updateAllScreenReaderSections(){let t=this;Object.keys(this.screenReaderSections).forEach(function(e){t.updateScreenReaderSection(e)})}getLinkedDescriptionElement(){let t=this.chart.options.accessibility.linkedDescription;if(!t)return;if("string"!=typeof t)return t;let e=Tt(t,this.chart),i=At.querySelectorAll(e);return 1===i.length?i[0]:void 0}setLinkedDescriptionAttrs(){let t=this.linkedDescriptionElement;t&&(t.setAttribute("aria-hidden","true"),Et(t,"highcharts-linked-description"))}updateScreenReaderSection(t){let e=this.chart,i=this.screenReaderSections[t],n=i.buildContent(e),r=i.element=i.element||this.createElement("div"),s=r.firstChild||this.createElement("div");n?(this.setScreenReaderSectionAttribs(r,t),lt().setElementHTML(s,n),r.appendChild(s),i.insertIntoDOM(r,e),e.styledMode?Et(s,"highcharts-visually-hidden"):Nt(s),Ct(e,s),i.afterInserted&&i.afterInserted()):(r.parentNode&&r.parentNode.removeChild(r),i.element=null)}setScreenReaderSectionAttribs(t,e){let i=this.chart,n=i.langFormat("accessibility.screenReaderSection."+e+"RegionLabel",{chart:i,chartTitle:Mt(i)});It(t,{id:`highcharts-screen-reader-region-${e}-${i.index}`,"aria-label":n||void 0}),t.style.position="relative",n&&t.setAttribute("role","all"===i.options.accessibility.landmarkVerbosity?"region":"group")}defaultBeforeChartFormatter(){let t=this.chart,e=t.options.accessibility.screenReaderSection.beforeChartFormat;if(!e)return"";let i=this.getAxesDescription(),n=t.sonify&&t.options.sonification&&t.options.sonification.enabled,r="highcharts-a11y-sonify-data-btn-"+t.index,s="hc-linkto-highcharts-data-table-"+t.index,o=wt(t),a=t.langFormat("accessibility.screenReaderSection.annotations.heading",{chart:t}),l={headingTagName:Ot(t.renderTo),chartTitle:Mt(t),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:i.xAxis,yAxisDescription:i.yAxis,playAsSoundButton:n?this.getSonifyButtonText(r):"",viewTableButton:t.exporting?.getCSV?this.getDataTableButtonText(s):"",annotationsTitle:o?a:"",annotationsList:o},h=D.i18nFormat(e,l,t);return this.dataTableButtonId=s,this.sonifyButtonId=r,Rt(h)}defaultAfterChartFormatter(){let t=this.chart,e=t.options.accessibility.screenReaderSection.afterChartFormat;if(!e)return"";let i={endOfChartMarker:this.getEndOfChartMarkerText()};return Rt(D.i18nFormat(e,i,t))}getLinkedDescription(){let t=this.linkedDescriptionElement;return Lt(t&&t.innerHTML||"",this.chart.renderer.forExport)}getLongdescText(){let t=this.chart.options,e=t.caption,i=e&&e.text,n=this.getLinkedDescription();return t.accessibility.description||n||i||""}getTypeDescriptionText(){let t=this.chart;return t.types?t.options.accessibility.typeDescription||function(t,e){let i=e[0],n=t.series&&t.series[0]||{},r={numSeries:t.series.length,numPoints:n.points&&n.points.length,chart:t,mapTitle:t.mapView&&t.mapView.geoMap&&t.mapView.geoMap.title};if(!i)return t.langFormat("accessibility.chartTypes.emptyChart",r);if("map"===i||"tiledwebmap"===i)return t.langFormat(r.mapTitle?"accessibility.chartTypes.mapTypeDescription":"accessibility.chartTypes.unknownMap",r);if(t.types.length>1)return t.langFormat("accessibility.chartTypes.combinationChart",r);let s=e[0],o=t.langFormat("accessibility.seriesTypeDescriptions."+s,r),a=t.series&&t.series.length<2?"Single":"Multiple";return(t.langFormat("accessibility.chartTypes."+s+a,r)||t.langFormat("accessibility.chartTypes.default"+a,r))+(o?" "+o:"")}(t,t.types):""}getDataTableButtonText(t){let e=this.chart;return'<button id="'+t+'">'+e.langFormat("accessibility.table.viewAsDataTableButtonText",{chart:e,chartTitle:Mt(e)})+"</button>"}getSonifyButtonText(t){let e=this.chart;return e.options.sonification&&!1===e.options.sonification.enabled?"":'<button id="'+t+'">'+e.langFormat("accessibility.sonification.playAsSoundButtonText",{chart:e,chartTitle:Mt(e)})+"</button>"}getSubtitleText(){let t=this.chart.options.subtitle;return Lt(t&&t.text||"",this.chart.renderer.forExport)}getEndOfChartMarkerText(){let t=Pt(`highcharts-end-of-chart-marker-${this.chart.index}`);if(t)return t.outerHTML;let e=this.chart,i=e.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:e});return'<div id="highcharts-end-of-chart-marker-'+e.index+'">'+i+"</div>"}onDataTableCreated(t){let e=this.chart;if(e.options.accessibility.enabled){this.viewDataTableButton&&this.viewDataTableButton.setAttribute("aria-expanded","true");let i=t.tree.attributes||{};i.tabindex=-1,i.summary=e.langFormat("accessibility.table.tableSummary",{chart:e}),t.tree.attributes=i}}focusDataTable(){let t=this.dataTableDiv,e=t&&t.getElementsByTagName("table")[0];e&&e.focus&&e.focus()}initSonifyButton(t){let e=this.sonifyButton=Pt(t),i=this.chart,n=t=>{e&&(e.setAttribute("aria-hidden","true"),e.setAttribute("aria-label","")),t.preventDefault(),t.stopPropagation();let n=i.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:i});this.announcer.announce(n),setTimeout(()=>{e&&(e.removeAttribute("aria-hidden"),e.removeAttribute("aria-label")),i.sonify&&i.sonify()},1e3)};e&&i&&(e.setAttribute("tabindex",-1),e.onclick=function(t){(i.options.accessibility&&i.options.accessibility.screenReaderSection.onPlayAsSoundClick||n).call(this,t,i)})}initDataTableButton(t){let e=this.viewDataTableButton=Pt(t),i=this.chart,n=t.replace("hc-linkto-","");e&&(It(e,{tabindex:-1,"aria-expanded":!!Pt(n)}),e.onclick=i.options.accessibility.screenReaderSection.onViewDataTableClick||function(){i.exporting?.viewData()})}getAxesDescription(){let t=this.chart,e=function(e,i){let n=t[e];return n.length>1||n[0]&&Dt(n[0].options.accessibility&&n[0].options.accessibility.enabled,i)},i=!!t.types&&0>t.types.indexOf("map")&&0>t.types.indexOf("treemap")&&0>t.types.indexOf("tilemap"),n=!!t.hasCartesianSeries,r=e("xAxis",!t.angular&&n&&i),s=e("yAxis",n&&i),o={};return r&&(o.xAxis=this.getAxisDescriptionText("xAxis")),s&&(o.yAxis=this.getAxisDescriptionText("yAxis")),o}getAxisDescriptionText(t){let e=this.chart,i=e[t];return e.langFormat("accessibility.axis."+t+"Description"+(i.length>1?"Plural":"Singular"),{chart:e,names:i.map(function(t){return kt(t)}),ranges:i.map(function(t){return St(t)}),numAxes:i.length})}destroy(){this.announcer&&this.announcer.destroy()}},{attr:zt}=w(),{getChartTitle:Ht,unhideChartElementFromAT:jt}=W,{getFakeMouseEvent:Gt}=E;function Wt(t){return t.exporting?.svgElements?.[0]}class Vt extends K{init(){let t=this.chart,e=this;this.addEvent(t,"exportMenuShown",function(){e.onMenuShown()}),this.addEvent(t,"exportMenuHidden",function(){e.onMenuHidden()}),this.createProxyGroup()}onMenuHidden(){let t=this.chart.exporting?.contextMenuEl;t&&t.setAttribute("aria-hidden","true"),this.setExportButtonExpandedState("false")}onMenuShown(){let t=this.chart,e=t.exporting?.contextMenuEl;e&&(this.addAccessibleContextMenuAttribs(),jt(t,e)),this.setExportButtonExpandedState("true")}setExportButtonExpandedState(t){this.exportButtonProxy&&this.exportButtonProxy.innerElement.setAttribute("aria-expanded",t)}onChartRender(){let t=this.chart,e=t.focusElement,i=t.accessibility;this.proxyProvider.clearGroup("chartMenu"),this.proxyMenuButton(),this.exportButtonProxy&&e&&e===t.exporting?.group&&(e.focusBorder?t.setFocusToElement(e,this.exportButtonProxy.innerElement):i&&i.keyboardNavigation.tabindexContainer.focus())}proxyMenuButton(){let t=this.chart,e=this.proxyProvider,i=Wt(t);(function(t){let e=t.options.exporting,i=Wt(t);return!!(e&&!1!==e.enabled&&e.accessibility&&e.accessibility.enabled&&i&&i.element)})(t)&&i&&(this.exportButtonProxy=e.addProxyElement("chartMenu",{click:i},"button",{"aria-label":t.langFormat("accessibility.exporting.menuButtonLabel",{chart:t,chartTitle:Ht(t)}),"aria-expanded":!1,title:t.options.lang.contextButtonTitle||null}))}createProxyGroup(){this.chart&&this.proxyProvider&&this.proxyProvider.addGroup("chartMenu")}addAccessibleContextMenuAttribs(){let t=this.chart,e=t.exporting?.divElements;if(e&&e.length){e.forEach(t=>{t&&("LI"!==t.tagName||t.children&&t.children.length?t.setAttribute("aria-hidden","true"):t.setAttribute("tabindex",-1))});let i=e[0]&&e[0].parentNode;i&&zt(i,{"aria-hidden":void 0,"aria-label":t.langFormat("accessibility.exporting.chartMenuLabel",{chart:t}),role:"list"})}}getKeyboardNavigation(){let t=this.keyCodes,e=this.chart,i=this;return new J(e,{keyCodeMap:[[[t.left,t.up],function(){return i.onKbdPrevious(this)}],[[t.right,t.down],function(){return i.onKbdNext(this)}],[[t.enter,t.space],function(){return i.onKbdClick(this)}]],validate:function(){return!!e.exporting&&!1!==e.options.exporting?.buttons?.contextButton.enabled&&!1!==e.options.exporting.enabled&&!1!==(e.options.exporting.accessibility?.enabled||!1)},init:function(){let t=i.exportButtonProxy,n=i.chart.exporting?.group;t&&n&&e.setFocusToElement(n,t.innerElement)},terminate:function(){e.hideExportMenu()}})}onKbdPrevious(t){let e=this.chart,i=e.options.accessibility,n=t.response,r=e.highlightedExportItemIx||0;for(;r--;)if(e.highlightExportItem(r))return n.success;return i.keyboardNavigation.wrapAround?(e.highlightLastExportItem(),n.success):n.prev}onKbdNext(t){let e=this.chart,i=e.options.accessibility,n=t.response;for(let t=(e.highlightedExportItemIx||0)+1;t<(e.exporting?.divElements?.length||0);++t)if(e.highlightExportItem(t))return n.success;return i.keyboardNavigation.wrapAround?(e.highlightExportItem(0),n.success):n.next}onKbdClick(t){let e=this.chart,i=void 0!==e.highlightedExportItemIx&&e.exporting?.divElements?.[e.highlightedExportItemIx],n=Wt(e)?.element;return e.exporting?.openMenu?i&&this.fakeClickEvent(i):(n&&this.fakeClickEvent(n),e.highlightExportItem(0)),t.response.success}}!function(t){function e(){let t=Wt(this);if(t){let e=t.element;e.onclick&&(e.onclick=function(){Gt("click")})}}function i(){let t=this.exporting?.divElements;t&&this.exporting?.contextMenuEl&&this.exporting?.openMenu&&(t.forEach(t=>{t&&"highcharts-menu-item"===t.className&&t.onmouseout&&t.onmouseout(Gt("mouseout"))}),this.highlightedExportItemIx=0,this.exporting.contextMenuEl.hideMenu(),this.container.focus())}function n(t){let e=this.exporting?.divElements?.[t],i=void 0!==this.highlightedExportItemIx&&this.exporting?.divElements?.[this.highlightedExportItemIx];if(e&&"LI"===e.tagName&&(!e.children||!e.children.length)){let n=!!(this.renderTo.getElementsByTagName("g")[0]||{}).focus;return e.focus&&n&&e.focus(),i&&i.onmouseout&&i.onmouseout(Gt("mouseout")),e.onmouseover&&e.onmouseover(Gt("mouseover")),this.highlightedExportItemIx=t,!0}return!1}function r(){if(this.exporting?.divElements){let t=this.exporting?.divElements.length;for(;t--;)if(this.highlightExportItem(t))return!0}return!1}t.compose=function(t){let s=t.prototype;s.hideExportMenu||(s.hideExportMenu=i,s.highlightExportItem=n,s.highlightLastExportItem=r,s.showExportMenu=e)}}(Vt||(Vt={}));let Xt=Vt,{doc:Ut,win:Yt}=w(),{addEvent:qt,defined:$t,fireEvent:_t}=w(),{getElement:Kt,simulatedEventTarget:Zt}=E;class Jt{constructor(t,e){this.currentModuleIx=NaN,this.modules=[],this.init(t,e)}init(t,e){let i=this.eventProvider=new q;this.chart=t,this.components=e,this.modules=[],this.currentModuleIx=0,this.update(),i.addEvent(this.tabindexContainer,"keydown",t=>this.onKeydown(t)),i.addEvent(this.tabindexContainer,"focus",t=>this.onFocus(t)),["mouseup","touchend"].forEach(t=>i.addEvent(Ut,t,t=>this.onMouseUp(t))),["mousedown","touchstart"].forEach(e=>i.addEvent(t.renderTo,e,()=>{this.isClickingChart=!0}))}update(t){let e=this.chart.options.accessibility,i=e&&e.keyboardNavigation,n=this.components;this.updateContainerTabindex(),i&&i.enabled&&t&&t.length?(this.modules=t.reduce(function(t,e){let i=n[e].getKeyboardNavigation();return t.concat(i)},[]),this.updateExitAnchor()):(this.modules=[],this.currentModuleIx=0,this.removeExitAnchor())}updateExitAnchor(){let t=Kt(`highcharts-end-of-chart-marker-${this.chart.index}`);this.removeExitAnchor(),t?(this.makeElementAnExitAnchor(t),this.exitAnchor=t):this.createExitAnchor()}move(t){let e=this.modules&&this.modules[this.currentModuleIx];e&&e.terminate&&e.terminate(t),this.chart.focusElement&&this.chart.focusElement.removeFocusBorder(),this.currentModuleIx+=t;let i=this.modules&&this.modules[this.currentModuleIx];if(i){if(i.validate&&!i.validate())return this.move(t);if(i.init)return i.init(t),!0}return this.currentModuleIx=0,this.exiting=!0,t>0?this.exitAnchor&&this.exitAnchor.focus():this.tabindexContainer.focus(),!1}onFocus(t){let e=this.chart,i=t.relatedTarget&&e.container.contains(t.relatedTarget),n=e.options.accessibility,r=n&&n.keyboardNavigation;if(r&&r.enabled&&!this.exiting&&!this.tabbingInBackwards&&!this.isClickingChart&&!i){let t=this.getFirstValidModuleIx();null!==t&&(this.currentModuleIx=t,this.modules[t].init(1))}this.keyboardReset=!1,this.exiting=!1}onMouseUp(t){if(delete this.isClickingChart,!this.keyboardReset&&t.relatedTarget!==Zt){let e=this.chart;if(!t.target||!e.container.contains(t.target)){let t=this.modules&&this.modules[this.currentModuleIx||0];t&&t.terminate&&t.terminate(),this.currentModuleIx=0}e.focusElement&&(e.focusElement.removeFocusBorder(),delete e.focusElement),this.keyboardReset=!0}}onKeydown(t){let e,i=t||Yt.event,n=this.modules&&this.modules.length&&this.modules[this.currentModuleIx],r=i.target;if((!r||"INPUT"!==r.nodeName||r.classList.contains("highcharts-a11y-proxy-element"))&&(this.keyboardReset=!1,this.exiting=!1,n)){let t=n.run(i);t===n.response.success?e=!0:t===n.response.prev?e=this.move(-1):t===n.response.next&&(e=this.move(1)),e&&(i.preventDefault(),i.stopPropagation())}}updateContainerTabindex(){let t,e=this.chart.options.accessibility,i=e&&e.keyboardNavigation,n=!(i&&!1===i.enabled),r=this.chart,s=r.container;r.renderTo.hasAttribute("tabindex")?(s.removeAttribute("tabindex"),t=r.renderTo):t=s,this.tabindexContainer=t;let o=t.getAttribute("tabindex");n&&!o?t.setAttribute("tabindex","0"):n||r.container.removeAttribute("tabindex")}createExitAnchor(){let t=this.chart,e=this.exitAnchor=Ut.createElement("div");t.renderTo.appendChild(e),this.makeElementAnExitAnchor(e)}makeElementAnExitAnchor(t){let e=this.tabindexContainer.getAttribute("tabindex")||0;t.setAttribute("class","highcharts-exit-anchor"),t.setAttribute("tabindex",e),t.setAttribute("aria-hidden",!1),this.addExitAnchorEventsToEl(t)}removeExitAnchor(){if(this.exitAnchor){let t=this.eventProvider.eventRemovers.find(t=>t.element===this.exitAnchor);t&&$t(t.remover)&&this.eventProvider.removeEvent(t.remover),this.exitAnchor.parentNode&&this.exitAnchor.parentNode.removeChild(this.exitAnchor),delete this.exitAnchor}}addExitAnchorEventsToEl(t){let e=this.chart,i=this;this.eventProvider.addEvent(t,"focus",function(t){let n=t||Yt.event,r=!(n.relatedTarget&&e.container.contains(n.relatedTarget)||i.exiting);if(e.focusElement&&delete e.focusElement,r){if(i.tabbingInBackwards=!0,i.tabindexContainer.focus(),delete i.tabbingInBackwards,n.preventDefault(),i.modules&&i.modules.length){i.currentModuleIx=i.modules.length-1;let t=i.modules[i.currentModuleIx];t&&t.validate&&!t.validate()?i.move(-1):t&&t.init(-1)}}else i.exiting=!1})}getFirstValidModuleIx(){let t=this.modules.length;for(let e=0;e<t;++e){let t=this.modules[e];if(!t.validate||t.validate())return e}return null}destroy(){this.removeExitAnchor(),this.eventProvider.removeAddedEvents(),this.chart.container.removeAttribute("tabindex")}}!function(t){function e(){let t=this;_t(this,"dismissPopupContent",{},function(){t.tooltip&&t.tooltip.hide(0),t.hideExportMenu()})}function i(t){27===(t.which||t.keyCode)&&w().charts&&w().charts.forEach(t=>{t&&t.dismissPopupContent&&t.dismissPopupContent()})}t.compose=function(t){Xt.compose(t);let n=t.prototype;return!n.dismissPopupContent&&(n.dismissPopupContent=e,Ut&&qt(Ut,"keydown",i)),t}}(Jt||(Jt={}));let Qt=Jt;var te=x(632),ee=x.n(te);let{animObject:ie}=w(),{doc:ne}=w(),{addEvent:re,fireEvent:se,isNumber:oe,pick:ae,syncTimeout:le}=w(),{getChartTitle:he}=W,{stripHTMLTagsFromString:ce,addClass:de,removeClass:ue}=E;function pe(t){let e=t.legend&&t.legend.allItems,i=t.options.legend.accessibility||{},n=t.colorAxis&&t.colorAxis.some(t=>!t.dataClasses||!t.dataClasses.length);return!(!e||!e.length||n||!1===i.enabled)}function ge(t,e){let i=e.legendItem||{};for(let n of(e.setState(t?"hover":"",!0),["group","label","symbol"])){let e=i[n],r=e&&e.element||e;r&&se(r,t?"mouseover":"mouseout")}}class me extends K{constructor(){super(...arguments),this.highlightedLegendItemIx=NaN,this.proxyGroup=null}init(){let t=this;this.recreateProxies(),this.addEvent(ee(),"afterScroll",function(){this.chart===t.chart&&(t.proxyProvider.updateGroupProxyElementPositions("legend"),t.updateLegendItemProxyVisibility(),t.highlightedLegendItemIx>-1&&this.chart.highlightLegendItem(t.highlightedLegendItemIx))}),this.addEvent(ee(),"afterPositionItem",function(e){this.chart===t.chart&&this.chart.renderer&&t.updateProxyPositionForItem(e.item)}),this.addEvent(ee(),"afterRender",function(){this.chart===t.chart&&this.chart.renderer&&t.recreateProxies()&&le(()=>t.proxyProvider.updateGroupProxyElementPositions("legend"),ie(ae(this.chart.renderer.globalAnimation,!0)).duration)})}updateLegendItemProxyVisibility(){let t,e=this.chart,i=e.legend,n=i.currentPage||1,r=i.clipHeight||0;(i.allItems||[]).forEach(s=>{if(s.a11yProxyElement){let o=s.a11yProxyElement.element,a=!1;if(t=s.legendItem||{},i.pages&&i.pages.length){let e=t.pageIx||0;a=(t.y||0)+(t.label?Math.round(t.label.getBBox().height):0)-i.pages[e]>r||e!==n-1}a?e.styledMode?de(o,"highcharts-a11y-invisible"):o.style.visibility="hidden":(ue(o,"highcharts-a11y-invisible"),o.style.visibility="")}})}onChartRender(){pe(this.chart)||this.removeProxies()}highlightAdjacentLegendPage(t){let e=this.chart,i=e.legend,n=(i.currentPage||1)+t;if(n>0&&n<=(i.pages||[]).length){let t=0;for(let r of i.allItems)((r.legendItem||{}).pageIx||0)+1===n&&e.highlightLegendItem(t)&&(this.highlightedLegendItemIx=t),++t}}updateProxyPositionForItem(t){t.a11yProxyElement&&t.a11yProxyElement.refreshPosition()}recreateProxies(){let t=ne.activeElement,e=this.proxyGroup,i=t&&e&&e.contains(t);return this.removeProxies(),!!pe(this.chart)&&(this.addLegendProxyGroup(),this.proxyLegendItems(),this.updateLegendItemProxyVisibility(),this.updateLegendTitle(),i&&this.chart.highlightLegendItem(this.highlightedLegendItemIx),!0)}removeProxies(){this.proxyProvider.removeGroup("legend")}updateLegendTitle(){let t=this.chart,e=ce((t.legend&&t.legend.options.title&&t.legend.options.title.text||"").replace(/<br ?\/?>/g," "),t.renderer.forExport),i=t.langFormat("accessibility.legend.legendLabel"+(e?"":"NoTitle"),{chart:t,legendTitle:e,chartTitle:he(t)});this.proxyProvider.updateGroupAttrs("legend",{"aria-label":i})}addLegendProxyGroup(){this.proxyGroup=this.proxyProvider.addGroup("legend","ul",{"aria-label":"_placeholder_",role:"all"===this.chart.options.accessibility.landmarkVerbosity?"region":null})}proxyLegendItems(){let t,e=this;((this.chart.legend||{}).allItems||[]).forEach(i=>{(t=i.legendItem||{}).label&&t.label.element&&e.proxyLegendItem(i)})}proxyLegendItem(t){let e=t.legendItem||{},i=t.legendItem?.label,n=i?.element,r="ellipsis"===e.label?.styles?.textOverflow;if(!e.label||!e.group)return;let s=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:ce(t.name,this.chart.renderer.forExport),item:t}),o={tabindex:-1,"aria-pressed":t.visible,"aria-label":s,title:""};r&&-1!==(n.textContent||"").indexOf("…")&&(o.title=i?.textStr),t.a11yProxyElement=this.proxyProvider.addProxyElement("legend",{click:e.label,visual:(e.group.div?e.label:e.group).element},"button",o)}getKeyboardNavigation(){let t=this.keyCodes,e=this,i=this.chart;return new J(i,{keyCodeMap:[[[t.left,t.right,t.up,t.down],function(t){return e.onKbdArrowKey(this,t)}],[[t.enter,t.space],function(){return e.onKbdClick(this)}],[[t.pageDown,t.pageUp],function(i){return e.highlightAdjacentLegendPage(i===t.pageDown?1:-1),this.response.success}]],validate:function(){return e.shouldHaveLegendNavigation()},init:function(){i.highlightLegendItem(0),e.highlightedLegendItemIx=0},terminate:function(){e.highlightedLegendItemIx=-1,i.legend.allItems.forEach(t=>ge(!1,t))}})}onKbdArrowKey(t,e){let{keyCodes:{left:i,up:n},highlightedLegendItemIx:r,chart:s}=this,o=s.legend.allItems.length,a=s.options.accessibility.keyboardNavigation.wrapAround,l=e===i||e===n?-1:1;return s.highlightLegendItem(r+l)?this.highlightedLegendItemIx+=l:a&&o>1&&(this.highlightedLegendItemIx=l>0?0:o-1,s.highlightLegendItem(this.highlightedLegendItemIx)),t.response.success}onKbdClick(t){let e=this.chart.legend.allItems[this.highlightedLegendItemIx];return e&&e.a11yProxyElement&&e.a11yProxyElement.click(),t.response.success}shouldHaveLegendNavigation(){if(!pe(this.chart))return!1;let t=this.chart,e=(t.options.legend||{}).accessibility||{};return!!(t.legend.display&&e.keyboardNavigation&&e.keyboardNavigation.enabled)}destroy(){this.removeProxies()}}!function(t){function e(t){let e=this.legend.allItems,i=this.accessibility&&this.accessibility.components.legend.highlightedLegendItemIx,n=e[t],r=n?.legendItem||{};if(n){oe(i)&&e[i]&&ge(!1,e[i]);var s=this.legend;let o=(s.allItems[t].legendItem||{}).pageIx,a=s.currentPage;void 0!==o&&o+1!==a&&s.scroll(1+o-a);let l=r.label,h=n.a11yProxyElement&&n.a11yProxyElement.innerElement;return l&&l.element&&h&&this.setFocusToElement(l,h),ge(!0,n),!0}return!1}function i(t){let e=t.item;this.chart.options.accessibility.enabled&&e&&e.a11yProxyElement&&e.a11yProxyElement.innerElement.setAttribute("aria-pressed",t.visible?"true":"false")}t.compose=function(t,n){let r=t.prototype;r.highlightLegendItem||(r.highlightLegendItem=e,re(n,"afterColorizeItem",i))}}(me||(me={}));let fe=me;var ye=x(532),xe=x.n(ye);let{isTouchDevice:be}=w(),{addEvent:ve,merge:we,pick:ke}=w(),Se=[];function Me(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function Ce(){let t,e,i,n=this.legend,r=this.navigator;if(r){t=n&&n.options,e=r.xAxis,i=r.yAxis;let{scrollbarHeight:s,scrollButtonSize:o}=r;this.inverted?(r.left=r.opposite?this.chartWidth-s-r.height:this.spacing[3]+s,r.top=this.plotTop+o):(r.left=ke(e.left,this.plotLeft+o),r.top=r.navigatorOptions.top||this.chartHeight-r.height-s-(this.scrollbar?.options.margin||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(t&&"bottom"===t.verticalAlign&&"proximate"!==t.layout&&t.enabled&&!t.floating?n.legendHeight+ke(t.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),e&&i&&(this.inverted?e.options.left=i.options.left=r.left:e.options.top=i.options.top=r.top,e.setAxisSize(),i.setAxisSize())}}function Te(t){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new d(this),ke(t.redraw,!0)&&this.redraw(t.animation))}function Ae(){let t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new d(this))}function Ee(){let t=this.options,e=t.navigator,i=t.rangeSelector;if((e&&e.enabled||i&&i.enabled)&&(!be&&"x"===this.zooming.type||be&&"x"===this.zooming.pinchType))return!1}function Pe(t){let e=t.navigator;if(e&&t.xAxis[0]){let i=t.xAxis[0].getExtremes();e.render(i.min,i.max)}}function Oe(t){let e=t.options.navigator||{},i=t.options.scrollbar||{};!this.navigator&&!this.scroller&&(e.enabled||i.enabled)&&(we(!0,this.options.navigator,e),we(!0,this.options.scrollbar,i),delete t.options.navigator,delete t.options.scrollbar)}let{isTouchDevice:Le}=w(),{addEvent:Ne,correctFloat:Ie,defined:De,isNumber:Be,pick:Re}=w();function Fe(){this.navigatorAxis||(this.navigatorAxis=new He(this))}function ze(t){let e,i=this.chart,n=i.options,r=n.navigator,s=this.navigatorAxis,o=i.zooming.pinchType,a=n.rangeSelector,l=i.zooming.type;if(this.isXAxis&&(r?.enabled||a?.enabled))if("y"===l&&"zoom"===t.trigger)e=!1;else if(("zoom"===t.trigger&&"xy"===l||Le&&"xy"===o)&&this.options.range){let e=s.previousZoom;De(t.min)?s.previousZoom=[this.min,this.max]:e&&(t.min=e[0],t.max=e[1],s.previousZoom=void 0)}void 0!==e&&t.preventDefault()}class He{static compose(t){t.keepProps.includes("navigatorAxis")||(t.keepProps.push("navigatorAxis"),Ne(t,"init",Fe),Ne(t,"setExtremes",ze))}constructor(t){this.axis=t}destroy(){this.axis=void 0}toFixedRange(t,e,i,n){let r=this.axis,s=(r.pointRange||0)/2,o=Re(i,r.translate(t,!0,!r.horiz)),a=Re(n,r.translate(e,!0,!r.horiz));return De(i)||(o=Ie(o+s)),De(n)||(a=Ie(a-s)),Be(o)&&Be(a)||(o=a=void 0),{min:o,max:a}}}var je=x(620),Ge=x.n(je),We=x(512),Ve=x.n(We);let{parse:Xe}=Ge(),{seriesTypes:Ue}=Ve(),Ye={height:40,margin:22,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:Xe("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:void 0===Ue.areaspline?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:void 0},tickLength:0,tickWidth:0}};w();let qe=function(t,e,i,n,r){return r?.r?function(t,e,i,n,r){let s=r?.r||0;return[["M",t+s,e],["L",t+i-s,e],["A",s,s,0,0,1,t+i,e+s],["L",t+i,e+n-s],["A",s,s,0,0,1,t+i-s,e+n],["L",t+s,e+n],["A",s,s,0,0,1,t,e+n-s],["L",t,e+s],["A",s,s,0,0,1,t+s,e],["Z"]]}(t,e,i,n,r):[["M",t,e],["L",t+i,e],["L",t+i,e+n],["L",t,e+n],["Z"]]},{relativeLength:$e}=w(),_e={"navigator-handle":function(t,e,i,n,r={}){let s=r.width?r.width/2:i,o=$e(r.borderRadius||0,Math.min(2*s,n));return[["M",-1.5,(n=r.height||n)/2-3.5],["L",-1.5,n/2+4.5],["M",.5,n/2-3.5],["L",.5,n/2+4.5],...qe(-s-1,.5,2*s+1,n,{r:o})]}};var Ke=x(608),Ze=x.n(Ke);let{defined:Je}=w(),{defaultOptions:Qe}=w(),{composed:ti}=w(),{getRendererType:ei}=Ze(),{setFixedRange:ii}={setFixedRange:function(t){let e=this.xAxis[0];this.fixedRange=Je(e.dataMax)&&Je(e.dataMin)&&t?Math.min(t,e.dataMax-e.dataMin):t}},{addEvent:ni,extend:ri,pushUnique:si}=w();function oi(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}let{composed:ai}=w(),{addEvent:li,correctFloat:hi,defined:ci,pick:di,pushUnique:ui}=w();!function(t){let e;function i(t){let e=di(t.options?.min,t.min),i=di(t.options?.max,t.max);return{axisMin:e,axisMax:i,scrollMin:ci(t.dataMin)?Math.min(e,t.min??1/0,t.dataMin,t.threshold??1/0):e,scrollMax:t.treeGrid?.adjustedMax??(ci(t.dataMax)?Math.max(i,t.max??-1/0,t.dataMax,t.threshold??-1/0):i)}}function n(){let t=this.scrollbar,e=this.horiz?2:t&&!t.options.opposite?3:1;t&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[e]+=t.size+(t.options.margin||0))}function r(){let t=this;t.options?.scrollbar?.enabled&&(t.options.scrollbar.vertical=!t.horiz,t.options.startOnTick=t.options.endOnTick=!1,t.scrollbar=new e(t.chart.renderer,t.options.scrollbar,t.chart),li(t.scrollbar,"changed",function(e){let n,r,{axisMin:s,axisMax:o,scrollMin:a,scrollMax:l}=i(t),h=t.toPixels(a),c=t.toPixels(l)-h;if(ci(s)&&ci(o))if(t.horiz&&!t.reversed||!t.horiz&&t.reversed?(n=Math.min(l,t.toValue(h+c*this.to)),r=Math.max(a,t.toValue(h+c*this.from))):(n=Math.min(l,t.toValue(h+c*(1-this.from))),r=Math.max(a,t.toValue(h+c*(1-this.to)))),this.shouldUpdateExtremes(e.DOMType)){let i="mousemove"!==e.DOMType&&"touchmove"!==e.DOMType&&void 0;t.setExtremes(hi(r),hi(n),!0,i,e)}else this.setRange(this.from,this.to)}))}function s(){let t,e,n,{scrollMin:r,scrollMax:s}=i(this),o=this.scrollbar,a=(this.axisTitleMargin||0)+(this.titleOffset||0),l=this.chart.scrollbarsOffsets,h=this.options.margin||0;if(o&&l){if(this.horiz)this.opposite||(l[1]+=a),o.position(this.left,this.top+this.height+2+l[1]-(this.opposite?h:0),this.width,this.height),this.opposite||(l[1]+=h),t=1;else{let e;this.opposite&&(l[0]+=a),e=o.options.opposite?this.left+this.width+2+l[0]-(this.opposite?0:h):this.opposite?0:h,o.position(e,this.top,this.width,this.height),this.opposite&&(l[0]+=h),t=0}if(l[t]+=o.size+(o.options.margin||0),isNaN(r)||isNaN(s)||!ci(this.min)||!ci(this.max)||ci(this.dataMin)&&this.dataMin===this.dataMax)o.setRange(0,1);else if(this.min===this.max){let t=this.pointRange/(this.dataMax+1);e=t*this.min,n=t*(this.max+1),o.setRange(e,n)}else e=(this.toPixels(this.min)-this.toPixels(r))/(this.toPixels(s)-this.toPixels(r)),n=(this.toPixels(this.max)-this.toPixels(r))/(this.toPixels(s)-this.toPixels(r)),this.horiz&&!this.reversed||!this.horiz&&this.reversed?o.setRange(e,n):o.setRange(1-n,1-e)}}t.compose=function(t,i){ui(ai,"Axis.Scrollbar")&&(e=i,li(t,"afterGetOffset",n),li(t,"afterInit",r),li(t,"afterRender",s))}}(g||(g={}));let pi=g,gi={height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:0,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"#cccccc",trackBorderRadius:5,trackBorderWidth:1},{defaultOptions:mi}=w(),{composed:fi}=w(),{addEvent:yi,correctFloat:xi,crisp:bi,defined:vi,destroyObjectProperties:wi,extend:ki,fireEvent:Si,merge:Mi,pick:Ci,pushUnique:Ti,removeEvent:Ai}=w();class Ei{static compose(t){pi.compose(t,Ei),Ti(fi,"Scrollbar")&&ki(mi,{scrollbar:gi})}static swapXY(t,e){return e&&t.forEach(t=>{let e,i=t.length;for(let n=0;n<i;n+=2)"number"==typeof(e=t[n+1])&&(t[n+1]=t[n+2],t[n+2]=e)}),t}constructor(t,e,i){this._events=[],this.chartX=0,this.chartY=0,this.from=0,this.scrollbarButtons=[],this.scrollbarLeft=0,this.scrollbarStrokeWidth=1,this.scrollbarTop=0,this.size=0,this.to=0,this.trackBorderWidth=1,this.x=0,this.y=0,this.init(t,e,i)}addEvents(){let t=this.options.inverted?[1,0]:[0,1],e=this.scrollbarButtons,i=this.scrollbarGroup.element,n=this.track.element,r=this.mouseDownHandler.bind(this),s=this.mouseMoveHandler.bind(this),o=this.mouseUpHandler.bind(this),a=[[e[t[0]].element,"click",this.buttonToMinClick.bind(this)],[e[t[1]].element,"click",this.buttonToMaxClick.bind(this)],[n,"click",this.trackClick.bind(this)],[i,"mousedown",r],[i.ownerDocument,"mousemove",s],[i.ownerDocument,"mouseup",o],[i,"touchstart",r],[i.ownerDocument,"touchmove",s],[i.ownerDocument,"touchend",o]];a.forEach(function(t){yi.apply(null,t)}),this._events=a}buttonToMaxClick(t){let e=(this.to-this.from)*Ci(this.options.step,.2);this.updatePosition(this.from+e,this.to+e),Si(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}buttonToMinClick(t){let e=xi(this.to-this.from)*Ci(this.options.step,.2);this.updatePosition(xi(this.from-e),xi(this.to-e)),Si(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}cursorToScrollbarPosition(t){let e=this.options,i=e.minWidth>this.calculatedWidth?e.minWidth:0;return{chartX:(t.chartX-this.x-this.xOffset)/(this.barWidth-i),chartY:(t.chartY-this.y-this.yOffset)/(this.barWidth-i)}}destroy(){let t=this,e=t.chart.scroller;t.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(e){t[e]&&t[e].destroy&&(t[e]=t[e].destroy())}),e&&t===e.scrollbar&&(e.scrollbar=null,wi(e.scrollbarButtons))}drawScrollbarButton(t){let e=this.renderer,i=this.scrollbarButtons,n=this.options,r=this.size,s=e.g().add(this.group);if(i.push(s),n.buttonsEnabled){let o=e.rect().addClass("highcharts-scrollbar-button").add(s);this.chart.styledMode||o.attr({stroke:n.buttonBorderColor,"stroke-width":n.buttonBorderWidth,fill:n.buttonBackgroundColor}),o.attr(o.crisp({x:-.5,y:-.5,width:r,height:r,r:n.buttonBorderRadius},o.strokeWidth()));let a=e.path(Ei.swapXY([["M",r/2+(t?-1:1),r/2-3],["L",r/2+(t?-1:1),r/2+3],["L",r/2+(t?2:-2),r/2]],n.vertical)).addClass("highcharts-scrollbar-arrow").add(i[t]);this.chart.styledMode||a.attr({fill:n.buttonArrowColor})}}init(t,e,i){this.scrollbarButtons=[],this.renderer=t,this.userOptions=e,this.options=Mi(gi,mi.scrollbar,e),this.options.margin=Ci(this.options.margin,10),this.chart=i,this.size=Ci(this.options.size,this.options.height),e.enabled&&(this.render(),this.addEvents())}mouseDownHandler(t){let e=this.chart.pointer?.normalize(t)||t,i=this.cursorToScrollbarPosition(e);this.chartX=i.chartX,this.chartY=i.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0}mouseMoveHandler(t){let e,i=this.chart.pointer?.normalize(t)||t,n=this.options.vertical?"chartY":"chartX",r=this.initPositions||[];this.grabbedCenter&&(!t.touches||0!==t.touches[0][n])&&(e=this.cursorToScrollbarPosition(i)[n]-this[n],this.hasDragged=!0,this.updatePosition(r[0]+e,r[1]+e),this.hasDragged&&Si(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))}mouseUpHandler(t){this.hasDragged&&Si(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null}position(t,e,i,n){let{buttonsEnabled:r,margin:s=0,vertical:o}=this.options,a=this.rendered?"animate":"attr",l=n,h=0;this.group.show(),this.x=t,this.y=e+this.trackBorderWidth,this.width=i,this.height=n,this.xOffset=l,this.yOffset=h,o?(this.width=this.yOffset=i=h=this.size,this.xOffset=l=0,this.yOffset=h=r?this.size:0,this.barWidth=n-(r?2*i:0),this.x=t+=s):(this.height=n=this.size,this.xOffset=l=r?this.size:0,this.barWidth=i-(r?2*n:0),this.y=this.y+s),this.group[a]({translateX:t,translateY:this.y}),this.track[a]({width:i,height:n}),this.scrollbarButtons[1][a]({translateX:o?0:i-l,translateY:o?n-h:0})}removeEvents(){this._events.forEach(function(t){Ai.apply(null,t)}),this._events.length=0}render(){let t=this.renderer,e=this.options,i=this.size,n=this.chart.styledMode,r=t.g("scrollbar").attr({zIndex:e.zIndex}).hide().add();this.group=r,this.track=t.rect().addClass("highcharts-scrollbar-track").attr({r:e.trackBorderRadius||0,height:i,width:i}).add(r),n||this.track.attr({fill:e.trackBackgroundColor,stroke:e.trackBorderColor,"stroke-width":e.trackBorderWidth});let s=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-bi(0,s),y:-bi(0,s)}),this.scrollbarGroup=t.g().add(r),this.scrollbar=t.rect().addClass("highcharts-scrollbar-thumb").attr({height:i-s,width:i-s,r:e.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=t.path(Ei.swapXY([["M",-3,i/4],["L",-3,2*i/3],["M",0,i/4],["L",0,2*i/3],["M",3,i/4],["L",3,2*i/3]],e.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),n||(this.scrollbar.attr({fill:e.barBackgroundColor,stroke:e.barBorderColor,"stroke-width":e.barBorderWidth}),this.scrollbarRifles.attr({stroke:e.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-bi(0,this.scrollbarStrokeWidth),-bi(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)}setRange(t,e){let i,n,r=this.options,s=r.vertical,o=r.minWidth,a=this.barWidth,l=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!vi(a))return;let h=a*Math.min(e,1);i=Math.ceil(a*(t=Math.max(t,0))),this.calculatedWidth=n=xi(h-i),n<o&&(i=(a-o+n)*t,n=o);let c=Math.floor(i+this.xOffset+this.yOffset),d=n/2-.5;this.from=t,this.to=e,s?(this.scrollbarGroup[l]({translateY:c}),this.scrollbar[l]({height:n}),this.scrollbarRifles[l]({translateY:d}),this.scrollbarTop=c,this.scrollbarLeft=0):(this.scrollbarGroup[l]({translateX:c}),this.scrollbar[l]({width:n}),this.scrollbarRifles[l]({translateX:d}),this.scrollbarLeft=c,this.scrollbarTop=0),n<=12?this.scrollbarRifles.hide():this.scrollbarRifles.show(),!1===r.showFull&&(t<=0&&e>=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(t){return Ci(this.options.liveRedraw,w().svg&&!w().isTouchDevice&&!this.chart.boosted)||"mouseup"===t||"touchend"===t||!vi(t)}trackClick(t){let e=this.chart.pointer?.normalize(t)||t,i=this.to-this.from;this.options.vertical&&e.chartY>this.y+this.scrollbarTop||!this.options.vertical&&e.chartX>this.x+this.scrollbarLeft?this.updatePosition(this.from+i,this.to+i):this.updatePosition(this.from-i,this.to-i),Si(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})}update(t){this.destroy(),this.init(this.chart.renderer,Mi(!0,this.options,t),this.chart)}updatePosition(t,e){e>1&&(t=xi(1-xi(e-t)),e=1),t<0&&(e=xi(e-t),t=0),this.from=t,this.to=e}}Ei.defaultOptions=gi;var Pi=x(540),Oi=x.n(Pi);let{defaultOptions:Li}=w(),{isTouchDevice:Ni}=w(),{prototype:{symbols:Ii}}=Oi(),{addEvent:Di,clamp:Bi,correctFloat:Ri,defined:Fi,destroyObjectProperties:zi,erase:Hi,extend:ji,find:Gi,fireEvent:Wi,isArray:Vi,isNumber:Xi,merge:Ui,pick:Yi,removeEvent:qi,splat:$i}=w();function _i(t,...e){let i=[].filter.call(e,Xi);if(i.length)return Math[t].apply(0,i)}class Ki{static compose(t,e,i){(function(t,e){w().pushUnique(Se,t)&&(d=e,t.prototype.callbacks.push(Pe),ve(t,"afterAddSeries",Me),ve(t,"afterSetChartSize",Ce),ve(t,"afterUpdate",Te),ve(t,"beforeRender",Ae),ve(t,"beforeShowResetZoom",Ee),ve(t,"update",Oe))})(t,Ki),function(t,e,i){He.compose(e),si(ti,"Navigator")&&(t.prototype.setFixedRange=ii,ri(ei().prototype.symbols,_e),ri(Qe,{navigator:Ye}),ni(i,"afterUpdate",oi))}(t,e,i)}constructor(t){this.isDirty=!1,this.scrollbarHeight=0,this.init(t)}drawHandle(t,e,i,n){let r=this.navigatorOptions.handles.height;this.handles[e][n](i?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(t,10)+.5-r)}:{translateX:Math.round(this.left+parseInt(t,10)),translateY:Math.round(this.top+this.height/2-r/2-1)})}drawOutline(t,e,i,n){let r,s,o=this.navigatorOptions.maskInside,a=this.outline.strokeWidth(),l=a/2,h=a%2/2,c=this.scrollButtonSize,d=this.size,u=this.top,p=this.height,g=u-l,m=u+p,f=this.left;i?(r=u+e+h,s=[["M",f+p,u-c-h],["L",f+p,r],["L",f,r],["M",f,e=u+t+h],["L",f+p,e],["L",f+p,u+d+c]],o&&s.push(["M",f+p,r-l],["L",f+p,e+l])):(f-=c,s=[["M",f,g],["L",t+=f+c-h,g],["L",t,m],["M",e+=f+c-h,m],["L",e,g],["L",f+d+2*c,g]],o&&s.push(["M",t-l,g],["L",e+l,g])),this.outline[n]({d:s})}drawMasks(t,e,i,n){let r,s,o,a,l=this.left,h=this.top,c=this.height;i?(o=[l,l,l],a=[h,h+t,h+e],s=[c,c,c],r=[t,e-t,this.size-e]):(o=[l,l+t,l+e],a=[h,h,h],s=[t,e-t,this.size-e],r=[c,c,c]),this.shades.forEach((t,e)=>{t[n]({x:o[e],y:a[e],width:s[e],height:r[e]})})}renderElements(){let t=this,e=t.navigatorOptions,i=e.maskInside,n=t.chart,r=n.renderer,s={cursor:n.inverted?"ns-resize":"ew-resize"},o=t.navigatorGroup??(t.navigatorGroup=r.g("navigator").attr({zIndex:8,visibility:"hidden"}).add());if([!i,i,!i].forEach((i,a)=>{let l=t.shades[a]??(t.shades[a]=r.rect().addClass("highcharts-navigator-mask"+(1===a?"-inside":"-outside")).add(o));n.styledMode||(l.attr({fill:i?e.maskFill:"rgba(0,0,0,0)"}),1===a&&l.css(s))}),t.outline||(t.outline=r.path().addClass("highcharts-navigator-outline").add(o)),n.styledMode||t.outline.attr({"stroke-width":e.outlineWidth,stroke:e.outlineColor}),e.handles?.enabled){let i=e.handles,{height:a,width:l}=i;[0,1].forEach(e=>{let h=i.symbols[e];if(t.handles[e]&&t.handles[e].symbolUrl===h){if(!t.handles[e].isImg&&t.handles[e].symbolName!==h){let i=Ii[h].call(Ii,-l/2-1,0,l,a);t.handles[e].attr({d:i}),t.handles[e].symbolName=h}}else t.handles[e]?.destroy(),t.handles[e]=r.symbol(h,-l/2-1,0,l,a,i),t.handles[e].attr({zIndex:7-e}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][e]).add(o),t.addMouseEvents();n.inverted&&t.handles[e].attr({rotation:90,rotationOriginX:Math.floor(-l/2),rotationOriginY:(a+l)/2}),n.styledMode||t.handles[e].attr({fill:i.backgroundColor,stroke:i.borderColor,"stroke-width":i.lineWidth,width:i.width,height:i.height,x:-l/2-1,y:0}).css(s)})}}update(t,e=!1){let i=this.chart,n=i.options.chart.inverted!==i.scrollbar?.options.vertical;if(Ui(!0,i.options.navigator,t),this.navigatorOptions=i.options.navigator||{},this.setOpposite(),Fi(t.enabled)||n)return this.destroy(),this.navigatorEnabled=t.enabled||this.navigatorEnabled,this.init(i);if(this.navigatorEnabled&&(this.isDirty=!0,!1===t.adaptToUpdatedData&&this.baseSeries.forEach(t=>{qi(t,"updatedData",this.updatedDataHandler)},this),t.adaptToUpdatedData&&this.baseSeries.forEach(t=>{t.eventsToUnbind.push(Di(t,"updatedData",this.updatedDataHandler))},this),(t.series||t.baseSeries)&&this.setBaseSeries(void 0,!1),t.height||t.xAxis||t.yAxis)){this.height=t.height??this.height;let e=this.getXAxisOffsets();this.xAxis.update({...t.xAxis,offsets:e,[i.inverted?"width":"height"]:this.height,[i.inverted?"height":"width"]:void 0},!1),this.yAxis.update({...t.yAxis,[i.inverted?"width":"height"]:this.height},!1)}e&&i.redraw()}render(t,e,i,n){let r,s,o,a,l,h=this.chart,c=this.xAxis,d=c.pointRange||0,u=c.navigatorAxis.fake?h.xAxis[0]:c,p=this.navigatorEnabled,g=this.rendered,m=h.inverted,f=h.xAxis[0].minRange,y=h.xAxis[0].options.maxRange,x=this.scrollButtonSize,b=this.scrollbarHeight;if(this.hasDragged&&!Fi(i))return;if(this.isDirty&&this.renderElements(),t=Ri(t-d/2),e=Ri(e+d/2),!Xi(t)||!Xi(e)){if(!g)return;i=0,n=Yi(c.width,u.width)}this.left=Yi(c.left,h.plotLeft+x+(m?h.plotWidth:0));let v=this.size=a=Yi(c.len,(m?h.plotHeight:h.plotWidth)-2*x);r=m?b:a+2*x,i=Yi(i,c.toPixels(t,!0)),n=Yi(n,c.toPixels(e,!0)),Xi(i)&&Math.abs(i)!==1/0||(i=0,n=r);let w=c.toValue(i,!0),k=c.toValue(n,!0),S=Math.abs(Ri(k-w));S<f?this.grabbedLeft?i=c.toPixels(k-f-d,!0):this.grabbedRight&&(n=c.toPixels(w+f+d,!0)):Fi(y)&&Ri(S-d)>y&&(this.grabbedLeft?i=c.toPixels(k-y-d,!0):this.grabbedRight&&(n=c.toPixels(w+y+d,!0))),this.zoomedMax=Bi(Math.max(i,n),0,v),this.zoomedMin=Bi(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(i,n),0,v),this.range=this.zoomedMax-this.zoomedMin,v=Math.round(this.zoomedMax);let M=Math.round(this.zoomedMin);p&&(this.navigatorGroup.attr({visibility:"inherit"}),l=g&&!this.hasDragged?"animate":"attr",this.drawMasks(M,v,m,l),this.drawOutline(M,v,m,l),this.navigatorOptions.handles.enabled&&(this.drawHandle(M,0,m,l),this.drawHandle(v,1,m,l))),this.scrollbar&&(m?(o=this.top-x,s=this.left-b+(p||!u.opposite?0:(u.titleOffset||0)+u.axisTitleMargin),b=a+2*x):(o=this.top+(p?this.height:-b),s=this.left-x),this.scrollbar.position(s,o,r,b),this.scrollbar.setRange(this.zoomedMin/(a||1),this.zoomedMax/(a||1))),this.rendered=!0,this.isDirty=!1,Wi(this,"afterRender")}addMouseEvents(){let t,e,i=this,n=i.chart,r=n.container,s=[];i.mouseMoveHandler=t=function(t){i.onMouseMove(t)},i.mouseUpHandler=e=function(t){i.onMouseUp(t)},(s=i.getPartsEvents("mousedown")).push(Di(n.renderTo,"mousemove",t),Di(r.ownerDocument,"mouseup",e),Di(n.renderTo,"touchmove",t),Di(r.ownerDocument,"touchend",e)),s.concat(i.getPartsEvents("touchstart")),i.eventsToUnbind=s,i.series&&i.series[0]&&s.push(Di(i.series[0].xAxis,"foundExtremes",function(){n.navigator.modifyNavigatorAxisExtremes()}))}getPartsEvents(t){let e=this,i=[];return["shades","handles"].forEach(function(n){e[n].forEach(function(r,s){i.push(Di(r.element,t,function(t){e[n+"Mousedown"](t,s)}))})}),i}shadesMousedown(t,e){t=this.chart.pointer?.normalize(t)||t;let i,n,r,s,o=this.xAxis,a=this.zoomedMin,l=this.size,h=this.range,c=this.left,d=t.chartX;this.chart.inverted&&(d=t.chartY,c=this.top),1===e?(this.grabbedCenter=d,this.fixedWidth=h,this.dragOffset=d-a):(s=d-c-h/2,0===e?s=Math.max(0,s):2===e&&s+h>=l&&(s=l-h,this.reversedExtremes?(s-=h,n=this.getUnionExtremes().dataMin):i=this.getUnionExtremes().dataMax),s!==a&&(this.fixedWidth=h,Fi((r=o.navigatorAxis.toFixedRange(s,s+h,n,i)).min)&&Wi(this,"setRange",{min:Math.min(r.min,r.max),max:Math.max(r.min,r.max),redraw:!0,eventArguments:{trigger:"navigator"}})))}handlesMousedown(t,e){t=this.chart.pointer?.normalize(t)||t;let i=this.chart,n=i.xAxis[0],r=this.reversedExtremes;0===e?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=r?n.min:n.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=r?n.max:n.min),i.setFixedRange(void 0)}onMouseMove(t){let e,i=this,n=i.chart,r=i.navigatorSize,s=i.range,o=i.dragOffset,a=n.inverted,l=i.left;(!t.touches||0!==t.touches[0].pageX)&&(e=(t=n.pointer?.normalize(t)||t).chartX,a&&(l=i.top,e=t.chartY),i.grabbedLeft?(i.hasDragged=!0,i.render(0,0,e-l,i.otherHandlePos)):i.grabbedRight?(i.hasDragged=!0,i.render(0,0,i.otherHandlePos,e-l)):i.grabbedCenter&&(i.hasDragged=!0,e<o?e=o:e>r+o-s&&(e=r+o-s),i.render(0,0,e-o,e-o+s)),i.hasDragged&&i.scrollbar&&Yi(i.scrollbar.options.liveRedraw,!Ni&&!this.chart.boosted)&&(t.DOMType=t.type,setTimeout(function(){i.onMouseUp(t)},0)))}onMouseUp(t){let e,i,n,r,s,o,a=this.xAxis,l=this.scrollbar,h=t.DOMEvent||t,c=this.chart.inverted,d=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!l||!l.hasDragged)||"scrollbar"===t.trigger)&&(n=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?r=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(s=this.fixedExtreme),this.zoomedMax===this.size&&(s=this.reversedExtremes?n.dataMin:n.dataMax),0===this.zoomedMin&&(r=this.reversedExtremes?n.dataMax:n.dataMin),Fi((o=a.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,r,s)).min)&&Wi(this,"setRange",{min:Math.min(o.min,o.max),max:Math.max(o.min,o.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:h}})),"mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&Xi(this.zoomedMin)&&Xi(this.zoomedMax)&&(i=Math.round(this.zoomedMin),e=Math.round(this.zoomedMax),this.shades&&this.drawMasks(i,e,c,d),this.outline&&this.drawOutline(i,e,c,d),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(i,0,c,d),this.drawHandle(e,1,c,d)))}removeEvents(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(t){t()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){let t=this.baseSeries||[];this.navigatorEnabled&&t[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&t.forEach(function(t){qi(t,"updatedData",this.updatedDataHandler)},this),t[0].xAxis&&qi(t[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}getXAxisOffsets(){return this.chart.inverted?[this.scrollButtonSize,0,-this.scrollButtonSize,0]:[0,-this.scrollButtonSize,0,this.scrollButtonSize]}init(t){let e=t.options,i=e.navigator||{},n=i.enabled,r=e.scrollbar||{},s=r.enabled,o=n&&i.height||0,a=s&&r.height||0,l=r.buttonsEnabled&&a||0;this.handles=[],this.shades=[],this.chart=t,this.setBaseSeries(),this.height=o,this.scrollbarHeight=a,this.scrollButtonSize=l,this.scrollbarEnabled=s,this.navigatorEnabled=n,this.navigatorOptions=i,this.scrollbarOptions=r,this.setOpposite();let h=this,c=h.baseSeries,d=t.xAxis.length,u=t.yAxis.length,p=c&&c[0]&&c[0].xAxis||t.xAxis[0]||{options:{}};if(t.isDirtyBox=!0,h.navigatorEnabled){let e=this.getXAxisOffsets();h.xAxis=new(xe())(t,Ui({breaks:p.options.breaks,ordinal:p.options.ordinal,overscroll:p.options.overscroll},i.xAxis,{type:"datetime",yAxis:i.yAxis?.id,index:d,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:p.options.ordinal?0:p.options.minPadding,maxPadding:p.options.ordinal?0:p.options.maxPadding,zoomEnabled:!1},t.inverted?{offsets:e,width:o}:{offsets:e,height:o}),"xAxis"),h.yAxis=new(xe())(t,Ui(i.yAxis,{alignTicks:!1,offset:0,index:u,isInternal:!0,reversed:Yi(i.yAxis&&i.yAxis.reversed,t.yAxis[0]&&t.yAxis[0].reversed,!1),zoomEnabled:!1},t.inverted?{width:o}:{height:o}),"yAxis"),c||i.series.data?h.updateNavigatorSeries(!1):0===t.series.length&&(h.unbindRedraw=Di(t,"beforeRedraw",function(){t.series.length>0&&!h.series&&(h.setBaseSeries(),h.unbindRedraw())})),h.reversedExtremes=t.inverted&&!h.xAxis.reversed||!t.inverted&&h.xAxis.reversed,h.renderElements(),h.addMouseEvents()}else h.xAxis={chart:t,navigatorAxis:{fake:!0},translate:function(e,i){let n=t.xAxis[0],r=n.getExtremes(),s=n.len-2*l,o=_i("min",n.options.min,r.dataMin),a=_i("max",n.options.max,r.dataMax)-o;return i?e*a/s+o:s*(e-o)/a},toPixels:function(t){return this.translate(t)},toValue:function(t){return this.translate(t,!0)}},h.xAxis.navigatorAxis.axis=h.xAxis,h.xAxis.navigatorAxis.toFixedRange=He.prototype.toFixedRange.bind(h.xAxis.navigatorAxis);if(t.options.scrollbar?.enabled){let e=Ui(t.options.scrollbar,{vertical:t.inverted});Xi(e.margin)||(e.margin=t.inverted?-3:3),t.scrollbar=h.scrollbar=new Ei(t.renderer,e,t),Di(h.scrollbar,"changed",function(t){let e=h.size,i=e*this.to,n=e*this.from;h.hasDragged=h.scrollbar.hasDragged,h.render(0,0,n,i),this.shouldUpdateExtremes(t.DOMType)&&setTimeout(function(){h.onMouseUp(t)})})}h.addBaseSeriesEvents(),h.addChartEvents()}setOpposite(){this.opposite=Yi(this.navigatorOptions.opposite,!(this.navigatorEnabled||!this.chart.inverted))}getUnionExtremes(t){let e,i=this.chart.xAxis[0],n=this.chart.time,r=this.xAxis,s=r.options,o=i.options;return t&&null===i.dataMin||(e={dataMin:Yi(n.parse(s?.min),_i("min",n.parse(o.min),i.dataMin,r.dataMin,r.min)),dataMax:Yi(n.parse(s?.max),_i("max",n.parse(o.max),i.dataMax,r.dataMax,r.max))}),e}setBaseSeries(t,e){let i=this.chart,n=this.baseSeries=[];t=t||i.options&&i.options.navigator.baseSeries||(i.series.length?Gi(i.series,t=>!t.options.isInternal).index:0),(i.series||[]).forEach((e,i)=>{!e.options.isInternal&&(e.options.showInNavigator||(i===t||e.options.id===t)&&!1!==e.options.showInNavigator)&&n.push(e)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,e)}updateNavigatorSeries(t,e){let i,n,r,s=this,o=s.chart,a=s.baseSeries,l={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:this.navigatorOptions.xAxis?.id,yAxis:this.navigatorOptions.yAxis?.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},h=s.series=(s.series||[]).filter(t=>{let e=t.baseSeries;return!(0>a.indexOf(e)&&(e&&(qi(e,"updatedData",s.updatedDataHandler),delete e.navigatorSeries),t.chart&&t.destroy(),1))}),c=s.navigatorOptions.series;a&&a.length&&a.forEach(t=>{let d=t.navigatorSeries,u=ji({color:t.color,visible:t.visible},Vi(c)?Li.navigator.series:c);if(d&&!1===s.navigatorOptions.adaptToUpdatedData)return;l.name="Navigator "+a.length,r=(i=t.options||{}).navigatorOptions||{},u.dataLabels=$i(u.dataLabels),(n=Ui(i,l,u,r)).pointRange=Yi(u.pointRange,r.pointRange,Li.plotOptions[n.type||"line"].pointRange);let p=r.data||u.data;s.hasNavigatorData=s.hasNavigatorData||!!p,n.data=p||i.data?.slice(0),d&&d.options?d.update(n,e):(t.navigatorSeries=o.initSeries(n),o.setSortedData(),t.navigatorSeries.baseSeries=t,h.push(t.navigatorSeries))}),(c.data&&!(a&&a.length)||Vi(c))&&(s.hasNavigatorData=!1,(c=$i(c)).forEach((t,e)=>{l.name="Navigator "+(h.length+1),(n=Ui(Li.navigator.series,{color:o.series[e]&&!o.series[e].options.isInternal&&o.series[e].color||o.options.colors[e]||o.options.colors[0]},l,t)).data=t.data,n.data&&(s.hasNavigatorData=!0,h.push(o.initSeries(n)))})),t&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let t=this,e=t.baseSeries||[];e[0]&&e[0].xAxis&&e[0].eventsToUnbind.push(Di(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),e.forEach(i=>{i.eventsToUnbind.push(Di(i,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),i.eventsToUnbind.push(Di(i,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==this.navigatorOptions.adaptToUpdatedData&&i.xAxis&&i.eventsToUnbind.push(Di(i,"updatedData",this.updatedDataHandler)),i.eventsToUnbind.push(Di(i,"remove",function(){e&&Hi(e,i),this.navigatorSeries&&t.series&&(Hi(t.series,this.navigatorSeries),Fi(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(t){return this.baseSeries.reduce(function(t,e){return Math.min(t,e.getColumn("x")[0]??t)},t)}modifyNavigatorAxisExtremes(){let t=this.xAxis;if(void 0!==t.getExtremes){let e=this.getUnionExtremes(!0);e&&(e.dataMin!==t.min||e.dataMax!==t.max)&&(t.min=e.dataMin,t.max=e.dataMax)}}modifyBaseAxisExtremes(){let t,e,i=this.chart.navigator,n=this.getExtremes(),r=n.dataMin,s=n.dataMax,o=n.max-n.min,a=i.stickToMin,l=i.stickToMax,h=Yi(this.ordinal?.convertOverscroll(this.options.overscroll),0),c=i.series&&i.series[0],d=!!this.setExtremes;!(this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger)&&(a&&(t=(e=r)+o),l&&(t=s+h,a||(e=Math.max(r,t-o,i.getBaseSeriesMin(c&&c.xData?c.xData[0]:-Number.MAX_VALUE)))),d&&(a||l)&&Xi(e)&&(this.min=this.userMin=e,this.max=this.userMax=t)),i.stickToMin=i.stickToMax=null}updatedDataHandler(){let t=this.chart.navigator,e=this.navigatorSeries,i=t.reversedExtremes?0===Math.round(t.zoomedMin):Math.round(t.zoomedMax)>=Math.round(t.size);t.stickToMax=Yi(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,i),t.stickToMin=t.shouldStickToMin(this,t),e&&!t.hasNavigatorData&&(e.options.pointStart=this.getColumn("x")[0],e.setData(this.options.data,!1,null,!1))}shouldStickToMin(t,e){let i=e.getBaseSeriesMin(t.getColumn("x")[0]),n=t.xAxis,r=n.max,s=n.min,o=n.options.range;return!(!Xi(r)||!Xi(s))&&(o&&r-i>0?r-i<o:s<=i)}addChartEvents(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(Di(this.chart,"redraw",function(){let t=this.navigator,e=t&&(t.baseSeries&&t.baseSeries[0]&&t.baseSeries[0].xAxis||this.xAxis[0]);e&&t.render(e.min,e.max)}),Di(this.chart,"getMargins",function(){let t=this.navigator,e=t.opposite?"plotTop":"marginBottom";this.inverted&&(e=t.opposite?"marginRight":"plotLeft"),this[e]=(this[e]||0)+(t.navigatorEnabled||!this.inverted?t.height+(this.scrollbar?.options.margin||0)+t.scrollbarHeight:0)+(t.navigatorOptions.margin||0)}),Di(Ki,"setRange",function(t){this.chart.xAxis[0].setExtremes(t.min,t.max,t.redraw,t.animation,t.eventArguments)}))}destroy(){this.removeEvents(),this.xAxis&&(Hi(this.chart.xAxis,this.xAxis),Hi(this.chart.axes,this.xAxis)),this.yAxis&&(Hi(this.chart.yAxis,this.yAxis),Hi(this.chart.axes,this.yAxis)),(this.series||[]).forEach(t=>{t.destroy&&t.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(t=>{this[t]&&this[t].destroy&&this[t].destroy(),this[t]=null}),[this.handles].forEach(t=>{zi(t)}),this.baseSeries.forEach(t=>{t.navigatorSeries=void 0}),this.navigatorEnabled=!1}}let{animObject:Zi}=w(),{format:Ji}=O(),{clamp:Qi,pick:tn,syncTimeout:en}=w(),{getFakeMouseEvent:nn}=E,{getAxisRangeDescription:rn,fireEventOnWrappedOrUnwrappedElement:sn}=W,on=class extends K{init(){let t=this;this.announcer=new pt(this.chart,"polite"),this.addEvent(Ki,"afterRender",function(){this.chart===t.chart&&this.chart.renderer&&en(()=>{t.proxyProvider.updateGroupProxyElementPositions("navigator"),t.updateHandleValues()},Zi(tn(this.chart.renderer.globalAnimation,!0)).duration)})}onChartUpdate(){let t=this.chart,e=t.options,i=e.navigator;if(i.enabled&&i.accessibility?.enabled){let i=e.accessibility.landmarkVerbosity,n=e.lang.accessibility?.navigator.groupLabel;this.proxyProvider.removeGroup("navigator"),this.proxyProvider.addGroup("navigator","div",{role:"all"===i?"region":"group","aria-label":Ji(n,{chart:t},t)});let r=e.lang.accessibility?.navigator.handleLabel;[0,1].forEach(e=>{let i=this.getHandleByIx(e);if(i){let n=this.proxyProvider.addProxyElement("navigator",{click:i},"input",{type:"range","aria-label":Ji(r,{handleIx:e,chart:t},t)});this[e?"maxHandleProxy":"minHandleProxy"]=n.innerElement,n.innerElement.style.pointerEvents="none",n.innerElement.oninput=()=>this.updateNavigator()}}),this.updateHandleValues()}else this.proxyProvider.removeGroup("navigator")}getNavigatorHandleNavigation(t){let e=this,i=this.chart,n=t?this.maxHandleProxy:this.minHandleProxy,r=this.keyCodes;return new J(i,{keyCodeMap:[[[r.left,r.right,r.up,r.down],function(s){if(n){let o=s===r.left||s===r.up?-1:1;n.value=""+Qi(parseFloat(n.value)+o,0,100),e.updateNavigator(()=>{let r=e.getHandleByIx(t);r&&i.setFocusToElement(r,n)})}return this.response.success}]],init:()=>{i.setFocusToElement(this.getHandleByIx(t),n)},validate:()=>!!(this.getHandleByIx(t)&&n&&i.options.navigator.accessibility?.enabled)})}getKeyboardNavigation(){return[this.getNavigatorHandleNavigation(0),this.getNavigatorHandleNavigation(1)]}destroy(){this.updateNavigatorThrottleTimer&&clearTimeout(this.updateNavigatorThrottleTimer),this.proxyProvider.removeGroup("navigator"),this.announcer&&this.announcer.destroy()}updateHandleValues(){let t=this.chart.navigator;if(t&&this.minHandleProxy&&this.maxHandleProxy){let e=t.size;this.minHandleProxy.value=""+Math.round(t.zoomedMin/e*100),this.maxHandleProxy.value=""+Math.round(t.zoomedMax/e*100)}}getHandleByIx(t){let e=this.chart.navigator;return e&&e.handles&&e.handles[t]}updateNavigator(t){this.updateNavigatorThrottleTimer&&clearTimeout(this.updateNavigatorThrottleTimer),this.updateNavigatorThrottleTimer=setTimeout((t=>{let e=this.chart,{navigator:i,pointer:n}=e,r=this.chart.accessibility?.keyboardNavigation;if(i&&n&&this.minHandleProxy&&this.maxHandleProxy){let s=n.getChartPosition(),o=parseFloat(this.minHandleProxy.value)/100*i.size,a=parseFloat(this.maxHandleProxy.value)/100*i.size;[[0,"mousedown",i.zoomedMin],[0,"mousemove",o],[0,"mouseup",o],[1,"mousedown",i.zoomedMax],[1,"mousemove",a],[1,"mouseup",a]].forEach(([t,e,n])=>{let r=this.getHandleByIx(t)?.element;r&&sn(r,nn(e,{x:s.left+i.left+n,y:s.top+i.top},r))}),r&&(r.keyboardReset=!1),t&&t();let l=e.options.lang.accessibility?.navigator.changeAnnouncement,h=rn(e.xAxis[0]);this.announcer.announce(Ji(l,{axisRangeDescription:h,chart:e},e))}}).bind(this,t),20)}},{getPointAnnotationTexts:an}=vt,{getAxisDescription:ln,getSeriesFirstPointElement:hn,getSeriesA11yElement:cn,unhideChartElementFromAT:dn}=W,{format:un,numberFormat:pn}=O(),{reverseChildNodes:gn,stripHTMLTagsFromString:mn}=E,{find:fn,isNumber:yn,isString:xn,pick:bn,defined:vn}=w();function wn(t){let e=t.chart.options.accessibility.series.pointDescriptionEnabledThreshold;return!!(!1!==e&&t.points&&t.points.length>=+e)}function kn(t,e){let i=t.series,n=i.chart,r=n.options.accessibility.point||{},s=i.options.accessibility&&i.options.accessibility.point||{},o=i.tooltipOptions||{},a=n.options.lang;return yn(e)?pn(e,s.valueDecimals||r.valueDecimals||o.valueDecimals||-1,a.decimalPoint,a.accessibility.thousandsSep||a.thousandsSep):e}function Sn(t,e){return t.chart.langFormat("accessibility.series."+e+"Description",{name:ln(t[e]),series:t})}function Mn(t){let e=t.series,i=e.chart.series.length>1||e.options.name,n=function(t){let e=t.series,i=e.chart,n=e.options.accessibility,r=n&&n.point&&n.point.valueDescriptionFormat||i.options.accessibility.point.valueDescriptionFormat,s=bn(e.xAxis&&e.xAxis.options.accessibility&&e.xAxis.options.accessibility.enabled,!i.angular&&"flowmap"!==e.type),o=s?function(t){let e=function(t){let e=t.series,i=e.chart,n=e.options.accessibility&&e.options.accessibility.point||{},r=i.options.accessibility.point||{},s=e.xAxis&&e.xAxis.dateTime;if(s){let e=s.getXDateFormat(t.x||0,i.options.tooltip.dateTimeLabelFormats),o=n.dateFormatter&&n.dateFormatter(t)||r.dateFormatter&&r.dateFormatter(t)||n.dateFormat||r.dateFormat||e;return i.time.dateFormat(o,t.x||0,void 0)}}(t),i=(t.series.xAxis||{}).categories&&vn(t.category)&&(""+t.category).replace("<br/>"," "),n=vn(t.id)&&0>(""+t.id).indexOf("highcharts-");return t.name||e||i||(n?t.id:"x, "+t.x)}(t):"";return un(r,{point:t,index:vn(t.index)?t.index+1:"",xDescription:o,value:function(t){let e=t.series,i=e.chart.options.accessibility.point||{},n=e.chart.options.accessibility&&e.chart.options.accessibility.point||{},r=e.tooltipOptions||{},s=n.valuePrefix||i.valuePrefix||r.valuePrefix||"",o=n.valueSuffix||i.valueSuffix||r.valueSuffix||"",a=kn(t,t[void 0!==t.value?"value":"y"]);if(t.isNull)return e.chart.langFormat("accessibility.series.nullPointValue",{point:t});if(e.pointArrayMap){let e=s||"",i=o||"",n=function(n){let r=kn(t,bn(t[n],t.options[n]));return void 0!==r?n+": "+e+r+i:r};return t.series.pointArrayMap.reduce(function(t,e){let i=n(e);return i?t+(t.length?", ":"")+i:t},"")}return s+a+o}(t),separator:s?", ":""},i)}(t),r=t.options&&t.options.accessibility&&t.options.accessibility.description,s=i?" "+e.name+".":"",o=function(t){let e=t.series.chart,i=an(t);return i.length?e.langFormat("accessibility.series.pointAnnotationsDescription",{point:t,annotations:i}):""}(t);return t.accessibility=t.accessibility||{},t.accessibility.valueDescription=n,n+(r?" "+r:"")+s+(o?" "+o:"")}function Cn(t){let e=t.chart,i=e.types||[],n=function(t){let e=(t.options.accessibility||{}).description;return e&&t.chart.langFormat("accessibility.series.description",{description:e,series:t})||""}(t),r=function(i){return e[i]&&e[i].length>1&&t[i]},s=t.index+1,o=Sn(t,"xAxis"),a=Sn(t,"yAxis"),l={seriesNumber:s,series:t,chart:e},h=i.length>1?"Combination":"",c=e.langFormat("accessibility.series.summary."+t.type+h,l)||e.langFormat("accessibility.series.summary.default"+h,l),d=(r("yAxis")?" "+a+".":"")+(r("xAxis")?" "+o+".":"");return un(bn(t.options.accessibility&&t.options.accessibility.descriptionFormat,e.options.accessibility.series.descriptionFormat,""),{seriesDescription:c,authorDescription:n?" "+n:"",axisDescription:d,series:t,chart:e,seriesNumber:s},void 0)}let Tn={defaultPointDescriptionFormatter:Mn,defaultSeriesDescriptionFormatter:Cn,describeSeries:function(t){let e=t.chart,i=hn(t),n=cn(t),r=e.is3d&&e.is3d();if(n){n.lastChild!==i||r||gn(n);let s=function(t){let e=t.options.accessibility||{};return!wn(t)&&!e.exposeAsGroupOnly}(t),o=function(t){let e=t.chart.options.accessibility.keyboardNavigation.seriesNavigation;return!(!t.points||!(t.points.length<+e.pointNavigationEnabledThreshold||!1===e.pointNavigationEnabledThreshold))}(t),a=t.chart.options.accessibility.point.describeNull;if((s||o)&&t.points.forEach(e=>{let i=e.graphic&&e.graphic.element||function(t){let e=t.series,i=e&&e.chart,n=e&&e.is("sunburst");return t.isNull&&!n&&i&&i.options.accessibility.point.describeNull}(e)&&function(t){let e=t.series,i=function(t){let e=t.index;if(!t.series||!t.series.data||!vn(e))return null;let i=t.series.options?.nullInteraction;return fn(t.series.data,function(t){return!!(t&&void 0!==t.index&&(i||t.index>e)&&t.graphic&&t.graphic.element)})||null}(t),n=i&&i.graphic,r=n?n.parentGroup:e.graph||e.group,s=function(t,e){let i=t.series.chart.renderer.rect(e.x,e.y,1,1);return i.attr({class:"highcharts-a11y-mock-point",fill:"none",opacity:0,"fill-opacity":0,"stroke-opacity":0}),i}(t,i?{x:bn(t.plotX,i.plotX,0),y:bn(t.plotY,i.plotY,0)}:{x:bn(t.plotX,0),y:bn(t.plotY,0)});if(r&&r.element)return t.graphic=s,t.hasMockGraphic=!0,s.add(r),r.element.insertBefore(s.element,n?n.element:null),s.element}(e),n=e.options&&e.options.accessibility&&!1===e.options.accessibility.enabled;if(i){if(e.isNull&&!a)return void i.setAttribute("aria-hidden",!0);if(i.setAttribute("tabindex","-1"),t.chart.styledMode||(i.style.outline="none"),s&&!n){let t=e.series,n=t.options.accessibility?.point||{},r=t.chart.options.accessibility.point||{},s=mn(xn(n.descriptionFormat)&&un(n.descriptionFormat,e,t.chart)||n.descriptionFormatter?.(e)||xn(r.descriptionFormat)&&un(r.descriptionFormat,e,t.chart)||r.descriptionFormatter?.(e)||Mn(e),t.chart.renderer.forExport);i.setAttribute("role","img"),i.setAttribute("aria-label",s)}else i.setAttribute("aria-hidden",!0)}}),dn(e,n),function(t){let e=t.chart,i=e.options.chart,n=e.series.length>1;return!(i.options3d&&i.options3d.enabled&&n)&&(n||e.options.accessibility.series.describeSingleSeries||(t.options.accessibility||{}).exposeAsGroupOnly||wn(t))}(t)){let e=t.chart.options.accessibility;n.setAttribute("role",(t.options.accessibility||{}).exposeAsGroupOnly?"img":"all"===e.landmarkVerbosity?"region":"group"),n.setAttribute("tabindex","-1"),t.chart.styledMode||(n.style.outline="none"),n.setAttribute("aria-label",mn(e.series.descriptionFormatter&&e.series.descriptionFormatter(t)||Cn(t),t.chart.renderer.forExport))}else n.removeAttribute("aria-label")}}},{composed:An}=w(),{addEvent:En,defined:Pn,pushUnique:On}=w(),{getChartTitle:Ln}=W,{defaultPointDescriptionFormatter:Nn,defaultSeriesDescriptionFormatter:In}=Tn;function Dn(t){return!!t.options.accessibility.announceNewData.enabled}class Bn{constructor(t){this.dirty={allSeries:{}},this.lastAnnouncementTime=0,this.chart=t}init(){let t=this.chart,e=t.options.accessibility.announceNewData.interruptUser?"assertive":"polite";this.lastAnnouncementTime=0,this.dirty={allSeries:{}},this.eventProvider=new q,this.announcer=new pt(t,e),this.addEventListeners()}destroy(){this.eventProvider.removeAddedEvents(),this.announcer.destroy()}addEventListeners(){let t=this,e=this.chart,i=this.eventProvider;i.addEvent(e,"afterApplyDrilldown",function(){t.lastAnnouncementTime=0}),i.addEvent(e,"afterAddSeries",function(e){t.onSeriesAdded(e.series)}),i.addEvent(e,"redraw",function(){t.announceDirtyData()})}onSeriesAdded(t){Dn(this.chart)&&(this.dirty.hasDirty=!0,this.dirty.allSeries[t.name+t.index]=t,this.dirty.newSeries=Pn(this.dirty.newSeries)?void 0:t)}announceDirtyData(){let t=this;if(this.chart.options.accessibility.announceNewData&&this.dirty.hasDirty){let e=this.dirty.newPoint;e&&(e=function(t){let e=t.series.data.filter(e=>t.x===e.x&&t.y===e.y);return 1===e.length?e[0]:t}(e)),this.queueAnnouncement(Object.keys(this.dirty.allSeries).map(e=>t.dirty.allSeries[e]),this.dirty.newSeries,e),this.dirty={allSeries:{}}}}queueAnnouncement(t,e,i){let n=this.chart.options.accessibility.announceNewData;if(n.enabled){let r=+new Date,s=Math.max(0,n.minAnnounceInterval-(r-this.lastAnnouncementTime)),o=function(t,e){let i=(t||[]).concat(e||[]).reduce((t,e)=>(t[e.name+e.index]=e,t),{});return Object.keys(i).map(t=>i[t])}(this.queuedAnnouncement&&this.queuedAnnouncement.series,t),a=this.buildAnnouncementMessage(o,e,i);a&&(this.queuedAnnouncement&&clearTimeout(this.queuedAnnouncementTimer),this.queuedAnnouncement={time:r,message:a,series:o},this.queuedAnnouncementTimer=setTimeout(()=>{this&&this.announcer&&(this.lastAnnouncementTime=+new Date,this.announcer.announce(this.queuedAnnouncement.message),delete this.queuedAnnouncement,delete this.queuedAnnouncementTimer)},s))}}buildAnnouncementMessage(t,e,i){let n=this.chart,r=n.options.accessibility.announceNewData;if(r.announcementFormatter){let n=r.announcementFormatter(t,e,i);if(!1!==n)return n.length?n:null}let s=w().charts&&w().charts.length>1?"Multiple":"Single",o=e?"newSeriesAnnounce"+s:i?"newPointAnnounce"+s:"newDataAnnounce",a=Ln(n);return n.langFormat("accessibility.announceNewData."+o,{chartTitle:a,seriesDesc:e?In(e):null,pointDesc:i?Nn(i):null,point:i,series:e})}}!function(t){function e(t){let e=this.chart,i=e.accessibility?.components.series.newDataAnnouncer;i&&i.chart===e&&Dn(e)&&(i.dirty.newPoint=Pn(i.dirty.newPoint)?void 0:t.point)}function i(){let t=this.chart,e=t.accessibility?.components.series.newDataAnnouncer;e&&e.chart===t&&Dn(t)&&(e.dirty.hasDirty=!0,e.dirty.allSeries[this.name+this.index]=this)}t.compose=function(t){On(An,"A11y.NDA")&&(En(t,"addPoint",e),En(t,"updatedData",i))}}(Bn||(Bn={}));let Rn=Bn,{doc:Fn,win:zn}=w(),{attr:Hn,css:jn,merge:Gn}=w(),{fireEventOnWrappedOrUnwrappedElement:Wn}=W,{cloneMouseEvent:Vn,cloneTouchEvent:Xn,getFakeMouseEvent:Un,removeElement:Yn}=E,qn=class{constructor(t,e,i="button",n,r){this.chart=t,this.target=e,this.eventProvider=new q;let s=this.innerElement=Fn.createElement(i),o=this.element=n?Fn.createElement(n):s;t.styledMode||this.hideElementVisually(s),n&&("li"!==n||t.styledMode||(o.style.listStyle="none"),o.appendChild(s),this.element=o),this.updateTarget(e,r)}click(){let t=this.getTargetPosition();t.x+=t.width/2,t.y+=t.height/2;let e=Un("click",t);Wn(this.target.click,e)}updateTarget(t,e){this.target=t,this.updateCSSClassName();let i=e||{};Object.keys(i).forEach(t=>{null===i[t]&&delete i[t]});let n=this.getTargetAttr(t.click,"aria-label");Hn(this.innerElement,Gn(n?{"aria-label":n}:{},i)),this.eventProvider.removeAddedEvents(),this.addProxyEventsToElement(this.innerElement,t.click),this.refreshPosition()}refreshPosition(){let t=this.getTargetPosition();jn(this.innerElement,{width:(t.width||1)+"px",height:(t.height||1)+"px",left:(Math.round(t.x)||0)+"px",top:(Math.round(t.y)||0)+"px"})}remove(){this.eventProvider.removeAddedEvents(),Yn(this.element)}updateCSSClassName(){let t=t=>t.indexOf("highcharts-no-tooltip")>-1,e=this.chart.legend,i=e.group&&e.group.div,n=t(i&&i.className||""),r=t(this.getTargetAttr(this.target.click,"class")||"");this.innerElement.className=n||r?"highcharts-a11y-proxy-element highcharts-no-tooltip":"highcharts-a11y-proxy-element"}addProxyEventsToElement(t,e){["click","touchstart","touchend","touchcancel","touchmove","mouseover","mouseenter","mouseleave","mouseout"].forEach(i=>{let n=0===i.indexOf("touch");this.eventProvider.addEvent(t,i,t=>{let i=n?Xn(t):Vn(t);e&&Wn(e,i),t.stopPropagation(),n||t.preventDefault()},{passive:!1})})}hideElementVisually(t){jn(t,{borderWidth:0,backgroundColor:"transparent",cursor:"pointer",outline:"none",opacity:.001,filter:"alpha(opacity=1)",zIndex:999,overflow:"hidden",padding:0,margin:0,display:"block",position:"absolute","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)"})}getTargetPosition(){let t=this.target.click,e=this.target.visual||(t.element?t.element:t),i=this.chart.pointer;if(this.chart.renderTo&&e?.getBoundingClientRect&&i){let t=zn.scrollY||Fn.documentElement.scrollTop,n=e.getBoundingClientRect(),r=i.getChartPosition();return{x:(n.left-r.left)/r.scaleX,y:(n.top+t-r.top)/r.scaleY,width:n.right/r.scaleX-n.left/r.scaleX,height:n.bottom/r.scaleY-n.top/r.scaleY}}return{x:0,y:0,width:1,height:1}}getTargetAttr(t,e){return t.element?t.element.getAttribute(e):t.getAttribute(e)}},{doc:$n}=w(),{attr:_n,css:Kn}=w(),{unhideChartElementFromAT:Zn}=W,{removeChildNodes:Jn}=E,Qn=class{constructor(t){this.chart=t,this.domElementProvider=new U,this.groups={},this.groupOrder=[],this.beforeChartProxyPosContainer=this.createProxyPosContainer("before"),this.afterChartProxyPosContainer=this.createProxyPosContainer("after"),this.update()}addProxyElement(t,e,i="button",n){let r=this.groups[t];if(!r)throw Error("ProxyProvider.addProxyElement: Invalid group key "+t);let s=new qn(this.chart,e,i,"ul"===r.type||"ol"===r.type?"li":void 0,n);return r.proxyContainerElement.appendChild(s.element),r.proxyElements.push(s),s}addGroup(t,e="div",i){let n,r=this.groups[t];if(r)return r.groupElement;let s=this.domElementProvider.createElement(e);return i&&i.role&&"div"!==e?(n=this.domElementProvider.createElement("div")).appendChild(s):n=s,n.className="highcharts-a11y-proxy-group highcharts-a11y-proxy-group-"+t.replace(/\W/g,"-"),this.groups[t]={proxyContainerElement:s,groupElement:n,type:e,proxyElements:[]},_n(n,i||{}),"ul"===e&&s.setAttribute("role","list"),this.afterChartProxyPosContainer.appendChild(n),this.updateGroupOrder(this.groupOrder),n}updateGroupAttrs(t,e){let i=this.groups[t];if(!i)throw Error("ProxyProvider.updateGroupAttrs: Invalid group key "+t);_n(i.groupElement,e)}updateGroupOrder(t){if(this.groupOrder=t.slice(),this.isDOMOrderGroupOrder())return;let e=t.indexOf("series"),i=e>-1?t.slice(0,e):t,n=e>-1?t.slice(e+1):[],r=$n.activeElement;["before","after"].forEach(t=>{let e=this["before"===t?"beforeChartProxyPosContainer":"afterChartProxyPosContainer"];Jn(e),("before"===t?i:n).forEach(t=>{let i=this.groups[t];i&&e.appendChild(i.groupElement)})}),(this.beforeChartProxyPosContainer.contains(r)||this.afterChartProxyPosContainer.contains(r))&&r&&r.focus&&r.focus()}clearGroup(t){let e=this.groups[t];if(!e)throw Error("ProxyProvider.clearGroup: Invalid group key "+t);Jn(e.proxyContainerElement)}removeGroup(t){let e=this.groups[t];e&&(this.domElementProvider.removeElement(e.groupElement),e.groupElement!==e.proxyContainerElement&&this.domElementProvider.removeElement(e.proxyContainerElement),delete this.groups[t])}update(){this.updatePosContainerPositions(),this.updateGroupOrder(this.groupOrder),this.updateProxyElementPositions()}updateProxyElementPositions(){Object.keys(this.groups).forEach(this.updateGroupProxyElementPositions.bind(this))}updateGroupProxyElementPositions(t){let e=this.groups[t];e&&e.proxyElements.forEach(t=>t.refreshPosition())}destroy(){this.domElementProvider.destroyCreatedElements()}createProxyPosContainer(t){let e=this.domElementProvider.createElement("div");return e.setAttribute("aria-hidden","false"),e.className="highcharts-a11y-proxy-container"+(t?"-"+t:""),Kn(e,{top:"0",left:"0"}),this.chart.styledMode||(e.style.whiteSpace="nowrap",e.style.position="absolute"),e}getCurrentGroupOrderInDOM(){let t=t=>{let e=Object.keys(this.groups),i=e.length;for(;i--;){let n=e[i],r=this.groups[n];if(r&&t===r.groupElement)return n}},e=e=>{let i=[],n=e.children;for(let e=0;e<n.length;++e){let r=t(n[e]);r&&i.push(r)}return i},i=e(this.beforeChartProxyPosContainer),n=e(this.afterChartProxyPosContainer);return i.push("series"),i.concat(n)}isDOMOrderGroupOrder(){let t=this.getCurrentGroupOrderInDOM(),e=this.groupOrder.filter(t=>"series"===t||!!this.groups[t]),i=t.length;if(i!==e.length)return!1;for(;i--;)if(t[i]!==e[i])return!1;return!0}updatePosContainerPositions(){let t=this.chart;if(t.renderer.forExport)return;let e=t.renderer.box;t.container.insertBefore(this.afterChartProxyPosContainer,e.nextSibling),t.container.insertBefore(this.beforeChartProxyPosContainer,e),Zn(this.chart,this.afterChartProxyPosContainer),Zn(this.chart,this.beforeChartProxyPosContainer)}},{unhideChartElementFromAT:tr,getAxisRangeDescription:er}=W,{addEvent:ir,attr:nr}=w();class rr extends K{init(){this.announcer=new pt(this.chart,"polite")}onChartUpdate(){let t=this.chart,e=this,i=t.rangeSelector;i&&(this.updateSelectorVisibility(),this.setDropdownAttrs(),i.buttons&&i.buttons.length&&i.buttons.forEach(t=>{e.setRangeButtonAttrs(t)}),i.maxInput&&i.minInput&&["minInput","maxInput"].forEach(function(n,r){let s=i[n];s&&(tr(t,s),e.setRangeInputAttrs(s,"accessibility.rangeSelector."+(r?"max":"min")+"InputLabel"))}))}updateSelectorVisibility(){let t=this.chart,e=t.rangeSelector,i=e&&e.dropdown,n=e&&e.buttons||[],r=t=>t.setAttribute("aria-hidden",!0);e&&e.hasVisibleDropdown&&i?(tr(t,i),n.forEach(t=>r(t.element))):(i&&r(i),n.forEach(e=>tr(t,e.element)))}setDropdownAttrs(){let t=this.chart,e=t.rangeSelector&&t.rangeSelector.dropdown;if(e){let i=t.langFormat("accessibility.rangeSelector.dropdownLabel",{rangeTitle:t.options.lang.rangeSelectorZoom});e.setAttribute("aria-label",i),e.setAttribute("tabindex",-1)}}setRangeButtonAttrs(t){nr(t.element,{tabindex:-1,role:"button"})}setRangeInputAttrs(t,e){let i=this.chart;nr(t,{tabindex:-1,"aria-label":i.langFormat(e,{chart:i})})}onButtonNavKbdArrowKey(t,e){let i=t.response,n=this.keyCodes,r=this.chart,s=r.options.accessibility.keyboardNavigation.wrapAround,o=e===n.left||e===n.up?-1:1;return r.highlightRangeSelectorButton(r.highlightedRangeSelectorItemIx+o)?i.success:s?(t.init(o),i.success):i[o>0?"next":"prev"]}onButtonNavKbdClick(t){let e=t.response,i=this.chart;return 3!==i.oldRangeSelectorItemState&&this.fakeClickEvent(i.rangeSelector.buttons[i.highlightedRangeSelectorItemIx].element),e.success}onAfterBtnClick(){let t=this.chart,e=er(t.xAxis[0]),i=t.langFormat("accessibility.rangeSelector.clickButtonAnnouncement",{chart:t,axisRangeDescription:e});i&&this.announcer.announce(i)}onInputKbdMove(t){let e=this.chart,i=e.rangeSelector,n=e.highlightedInputRangeIx=(e.highlightedInputRangeIx||0)+t;if(n>1||n<0){if(e.accessibility)return e.accessibility.keyboardNavigation.exiting=!0,e.accessibility.keyboardNavigation.tabindexContainer.focus(),e.accessibility.keyboardNavigation.move(t)}else if(i){let t=i[n?"maxDateBox":"minDateBox"],r=i[n?"maxInput":"minInput"];t&&r&&e.setFocusToElement(t,r)}return!0}onInputNavInit(t){let e=this,i=this.chart,n=t>0?0:1,r=i.rangeSelector,s=r&&r[n?"maxDateBox":"minDateBox"],o=r&&r.minInput,a=r&&r.maxInput;if(i.highlightedInputRangeIx=n,s&&o&&a){i.setFocusToElement(s,n?a:o),this.removeInputKeydownHandler&&this.removeInputKeydownHandler();let t=t=>{(t.which||t.keyCode)===this.keyCodes.tab&&e.onInputKbdMove(t.shiftKey?-1:1)&&(t.preventDefault(),t.stopPropagation())},r=ir(o,"keydown",t),l=ir(a,"keydown",t);this.removeInputKeydownHandler=()=>{r(),l()}}}onInputNavTerminate(){let t=this.chart.rangeSelector||{};t.maxInput&&t.hideInput("max"),t.minInput&&t.hideInput("min"),this.removeInputKeydownHandler&&(this.removeInputKeydownHandler(),delete this.removeInputKeydownHandler)}initDropdownNav(){let t=this.chart,e=t.rangeSelector,i=e&&e.dropdown;e&&i&&(t.setFocusToElement(e.buttonGroup,i),this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeDropdownKeydownHandler=ir(i,"keydown",e=>{let i=t.accessibility;(e.which||e.keyCode)===this.keyCodes.tab&&(e.preventDefault(),e.stopPropagation(),i&&i.keyboardNavigation.move(e.shiftKey?-1:1))}))}getRangeSelectorButtonNavigation(){let t=this.chart,e=this.keyCodes,i=this;return new J(t,{keyCodeMap:[[[e.left,e.right,e.up,e.down],function(t){return i.onButtonNavKbdArrowKey(this,t)}],[[e.enter,e.space],function(){return i.onButtonNavKbdClick(this)}]],validate:function(){return!!(t.rangeSelector&&t.rangeSelector.buttons&&t.rangeSelector.buttons.length)},init:function(e){let n=t.rangeSelector;n&&n.hasVisibleDropdown?i.initDropdownNav():n&&t.highlightRangeSelectorButton(e>0?0:n.buttons.length-1)},terminate:function(){i.removeDropdownKeydownHandler&&(i.removeDropdownKeydownHandler(),delete i.removeDropdownKeydownHandler)}})}getRangeSelectorInputNavigation(){let t=this.chart,e=this;return new J(t,{keyCodeMap:[],validate:function(){return!!(t.rangeSelector&&t.rangeSelector.inputGroup&&"hidden"!==t.rangeSelector.inputGroup.element.style.visibility&&!1!==t.options.rangeSelector.inputEnabled&&t.rangeSelector.minInput&&t.rangeSelector.maxInput)},init:function(t){e.onInputNavInit(t)},terminate:function(){e.onInputNavTerminate()}})}getKeyboardNavigation(){return[this.getRangeSelectorButtonNavigation(),this.getRangeSelectorInputNavigation()]}destroy(){this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeInputKeydownHandler&&this.removeInputKeydownHandler(),this.announcer&&this.announcer.destroy()}}!function(t){function e(t){let e=this.rangeSelector&&this.rangeSelector.buttons||[],i=this.highlightedRangeSelectorItemIx,n=this.rangeSelector&&this.rangeSelector.selected;return void 0!==i&&e[i]&&i!==n&&e[i].setState(this.oldRangeSelectorItemState||0),this.highlightedRangeSelectorItemIx=t,!!e[t]&&(this.setFocusToElement(e[t].box,e[t].element),t!==n&&(this.oldRangeSelectorItemState=e[t].state,e[t].setState(1)),!0)}function i(){let t=this.chart.accessibility;if(t&&t.components.rangeSelector)return t.components.rangeSelector.onAfterBtnClick()}t.compose=function(t,n){let r=t.prototype;r.highlightRangeSelectorButton||(r.highlightRangeSelectorButton=e,ir(n,"afterBtnClick",i))}}(rr||(rr={}));let sr=rr,{composed:or}=w(),{addEvent:ar,merge:lr,pushUnique:hr}=w();!function(t){function e(t){lr(!0,t,{marker:{enabled:!0,states:{normal:{opacity:0}}}})}function i(t){return t.marker.states&&t.marker.states.normal&&t.marker.states.normal.opacity}function n(t){return!!(t._hasPointMarkers&&t.points&&t.points.length)}function r(){this.chart.styledMode&&(this.markerGroup&&this.markerGroup[this.a11yMarkersForced?"addClass":"removeClass"]("highcharts-a11y-markers-hidden"),n(this)&&this.points.forEach(t=>{t.graphic&&(t.graphic[t.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-hidden"),t.graphic[!1===t.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-visible"))}))}function s(t){this.resetA11yMarkerOptions=lr(t.options.marker||{},this.userOptions.marker||{})}function o(){let t=this.options;!function(t){return t.chart.options.accessibility.enabled&&!1!==(t.options.accessibility&&t.options.accessibility.enabled)&&function(t){let e=t.chart.options.accessibility;return t.points.length<e.series.pointDescriptionEnabledThreshold||!1===e.series.pointDescriptionEnabledThreshold}(t)}(this)?this.a11yMarkersForced&&(delete this.a11yMarkersForced,function(t){let e=t.resetA11yMarkerOptions;if(e){let i=e.states&&e.states.normal&&e.states.normal.opacity;t.userOptions&&t.userOptions.marker&&(t.userOptions.marker.enabled=!0),t.update({marker:{enabled:e.enabled,states:{normal:{opacity:i}}}})}}(this),t.marker&&!1===t.marker.enabled&&delete this.resetA11yMarkerOptions):(t.marker&&!1===t.marker.enabled&&(this.a11yMarkersForced=!0,e(this.options)),n(this)&&function(t){let n=t.points.length;for(;n--;){let s=t.points[n],o=s.options,a=s.hasForcedA11yMarker;if(delete s.hasForcedA11yMarker,o.marker){var r;let t=a&&0===i(o);o.marker.enabled&&!t?(lr(!0,(r=o).marker,{states:{normal:{opacity:i(r)||1}}}),s.hasForcedA11yMarker=!1):!1===o.marker.enabled&&(e(o),s.hasForcedA11yMarker=!0)}}}(this))}function a(){this.boosted&&this.a11yMarkersForced&&(lr(!0,this.options,{marker:{enabled:!1}}),delete this.a11yMarkersForced)}t.compose=function(t){hr(or,"A11y.FM")&&(ar(t,"afterSetOptions",s),ar(t,"render",o),ar(t,"afterRender",r),ar(t,"renderCanvas",a))}}(m||(m={}));let cr=m;var dr=x(260),ur=x.n(dr),pr=x(820),gr=x.n(pr);let{seriesTypes:mr}=Ve(),{doc:fr}=w(),{defined:yr,fireEvent:xr}=w(),{getPointFromXY:br,getSeriesFromName:vr,scrollAxisToPoint:wr}=W;function kr(t){let e=t.index,i=t.series.points,n=i.length;if(i[e]===t)return e;for(;n--;)if(i[n]===t)return n}function Sr(t){let e=t.chart.options.accessibility.keyboardNavigation.seriesNavigation,i=t.options.accessibility||{},n=i.keyboardNavigation;return n&&!1===n.enabled||!1===i.enabled||!1===t.options.enableMouseTracking||!t.visible||e.pointNavigationEnabledThreshold&&+e.pointNavigationEnabledThreshold<=t.points.length}function Mr(t){let e=t.series,i=t.options.accessibility;return e.chart.options.accessibility.keyboardNavigation.seriesNavigation.skipNullPoints??(!(!t.isNull||e.options.nullInteraction)&&!1===t.visible||!1===t.isInside||!1===i?.enabled||Sr(e))}function Cr(t){let e=t.series||[],i=e.length;for(let t=0;t<i;++t)if(!Sr(e[t])){let i=function(t){let e=t.points||[],i=e.length;for(let t=0;t<i;++t)if(!Mr(e[t]))return e[t];return null}(e[t]);if(i)return i}return null}function Tr(t){let e=t.series.length,i=!1;for(;e--&&(t.highlightedPoint=t.series[e].points[t.series[e].points.length-1],!(i=t.series[e].highlightNextValidPoint())););return i}function Ar(t){delete t.highlightedPoint;let e=Cr(t);return!!e&&e.highlight()}class Er{constructor(t,e){this.keyCodes=e,this.chart=t}init(){let t=this,e=this.chart,i=this.eventProvider=new q;i.addEvent(gr(),"destroy",function(){return t.onSeriesDestroy(this)}),i.addEvent(e,"afterApplyDrilldown",function(){let t=Cr(this);t&&t.highlight(!1)}),i.addEvent(e,"drilldown",function(e){let i=e.point,n=i.series;t.lastDrilledDownPoint={x:i.x,y:i.y,seriesName:n?n.name:""}}),i.addEvent(e,"drillupall",function(){setTimeout(function(){t.onDrillupAll()},10)}),i.addEvent(ur(),"afterSetState",function(){let t=this.graphic&&this.graphic.element,i=fr.activeElement,n=i&&i.getAttribute("class"),r=n&&n.indexOf("highcharts-a11y-proxy-element")>-1;e.highlightedPoint===this&&i!==t&&!r&&t&&t.focus&&t.focus()})}onDrillupAll(){let t,e=this.lastDrilledDownPoint,i=this.chart,n=e&&vr(i,e.seriesName);e&&n&&yr(e.x)&&yr(e.y)&&(t=br(n,e.x,e.y)),t=t||Cr(i),i.container&&i.container.focus(),t&&t.highlight&&t.highlight(!1)}getKeyboardNavigationHandler(){let t=this,e=this.keyCodes,i=this.chart,n=i.inverted;return new J(i,{keyCodeMap:[[n?[e.up,e.down]:[e.left,e.right],function(e){return t.onKbdSideways(this,e)}],[n?[e.left,e.right]:[e.up,e.down],function(e){return t.onKbdVertical(this,e)}],[[e.enter,e.space],function(t,e){let n=i.highlightedPoint;if(n){let{plotLeft:t,plotTop:i}=this.chart,{plotX:r=0,plotY:s=0}=n;e={...e,chartX:t+r,chartY:i+s,point:n,target:n.graphic?.element||e.target},xr(n.series,"click",e),n.firePointEvent("click",e)}return this.response.success}],[[e.home],function(){return Ar(i),this.response.success}],[[e.end],function(){return Tr(i),this.response.success}],[[e.pageDown,e.pageUp],function(t){return i.highlightAdjacentSeries(t===e.pageDown),this.response.success}]],init:function(){return t.onHandlerInit(this)},validate:function(){return!!Cr(i)},terminate:function(){return t.onHandlerTerminate()}})}onKbdSideways(t,e){let i=this.keyCodes;return this.attemptHighlightAdjacentPoint(t,e===i.right||e===i.down)}onHandlerInit(t){let e=this.chart;return e.options.accessibility.keyboardNavigation.seriesNavigation.rememberPointFocus&&e.highlightedPoint?e.highlightedPoint.highlight():Ar(e),t.response.success}onKbdVertical(t,e){let i=this.chart,n=this.keyCodes,r=e===n.down||e===n.right,s=i.options.accessibility.keyboardNavigation.seriesNavigation;return s.mode&&"serialize"===s.mode?this.attemptHighlightAdjacentPoint(t,r):(i[i.highlightedPoint&&i.highlightedPoint.series.keyboardMoveVertical?"highlightAdjacentPointVertical":"highlightAdjacentSeries"](r),t.response.success)}onHandlerTerminate(){let t=this.chart,e=t.options.accessibility.keyboardNavigation;t.tooltip&&t.tooltip.hide(0);let i=t.highlightedPoint&&t.highlightedPoint.series;i&&i.onMouseOut&&i.onMouseOut(),t.highlightedPoint&&t.highlightedPoint.onMouseOut&&t.highlightedPoint.onMouseOut(),e.seriesNavigation.rememberPointFocus||delete t.highlightedPoint}attemptHighlightAdjacentPoint(t,e){let i=this.chart,n=i.options.accessibility.keyboardNavigation.wrapAround;return i.highlightAdjacentPoint(e)||n&&(e?Ar(i):Tr(i))?t.response.success:t.response[e?"next":"prev"]}onSeriesDestroy(t){let e=this.chart;e.highlightedPoint&&e.highlightedPoint.series===t&&(delete e.highlightedPoint,e.focusElement&&e.focusElement.removeFocusBorder())}destroy(){this.eventProvider.removeAddedEvents()}}!function(t){function e(t){let e,i,n=this.series,r=this.highlightedPoint,s=r&&kr(r)||0,o=this.series&&this.series[this.series.length-1];if(!n[0]||!n[0].points)return!1;if(r){if(e=n[r.series.index+(t?1:-1)],(i=(r&&r.series.points||[])[s+(t?1:-1)])||!e||(i=e.points[t?0:e.points.length-1]),!i)return!1}else i=t?n[0].points[0]:o&&o.points&&o.points[o.points.length-1];return Mr(i)?(this.highlightedPoint=Sr(e=i.series)?t?e.points[e.points.length-1]:e.points[0]:i,this.highlightAdjacentPoint(t)):i.highlight()}function i(t){let e,i=this.highlightedPoint,n=1/0;return!!yr(i.plotX)&&!!yr(i.plotY)&&(this.series.forEach(r=>{Sr(r)||r.points.forEach(s=>{if(!yr(s.plotY)||!yr(s.plotX)||s===i)return;let o=s.plotY-i.plotY,a=Math.abs(s.plotX-i.plotX),l=Math.abs(o)*Math.abs(o)+a*a*4;r.yAxis&&r.yAxis.reversed&&(o*=-1),!(o<=0&&t||o>=0&&!t||l<5||Mr(s))&&l<n&&(n=l,e=s)})}),!!e&&e.highlight())}function n(t){let e,i,n,r=this.highlightedPoint,s=this.series&&this.series[this.series.length-1],o=s&&s.points&&s.points[s.points.length-1];return this.highlightedPoint?!!(e=this.series[r.series.index+(t?-1:1)])&&!!(i=function(t,e){let i,n,r,s=1/0,o=e.points.length,a=t=>!(yr(t.plotX)&&yr(t.plotY));if(!a(t)){for(;o--;)!a(i=e.points[o])&&(r=(t.plotX-i.plotX)*(t.plotX-i.plotX)*4+(t.plotY-i.plotY)*(t.plotY-i.plotY)*1)<s&&(s=r,n=o);return yr(n)?e.points[n]:void 0}}(r,e))&&(Sr(e)?(i.highlight(),(n=this.highlightAdjacentSeries(t))?n:(r.highlight(),!1)):(i.highlight(),i.series.highlightNextValidPoint())):(e=t?this.series&&this.series[0]:s,!!(i=t?e&&e.points&&e.points[0]:o)&&i.highlight())}function r(t=!0){let e=this.series.chart,i=e.tooltip?.label?.element;this.isNull&&!this.series.options?.nullInteraction||!t?e.tooltip&&e.tooltip.hide(0):this.onMouseOver(),wr(this),this.graphic&&(e.setFocusToElement(this.graphic),!t&&e.focusElement&&e.focusElement.removeFocusBorder()),e.highlightedPoint=this;let n=i?.getBoundingClientRect().top;if(i&&n&&n<0){let t=window.scrollY;window.scrollTo({behavior:"smooth",top:t+n})}return this}function s(){let t=this.chart.highlightedPoint,e=(t&&t.series)===this?kr(t):0,i=this.points,n=i.length;if(i&&n){for(let t=e;t<n;++t)if(!Mr(i[t]))return i[t].highlight();for(let t=e;t>=0;--t)if(!Mr(i[t]))return i[t].highlight()}return!1}t.compose=function(t,o,a){let l=t.prototype,h=o.prototype,c=a.prototype;l.highlightAdjacentPoint||(l.highlightAdjacentPoint=e,l.highlightAdjacentPointVertical=i,l.highlightAdjacentSeries=n,h.highlight=r,c.keyboardMoveVertical=!0,["column","gantt","pie"].forEach(t=>{mr[t]&&(mr[t].prototype.keyboardMoveVertical=!1)}),c.highlightNextValidPoint=s)}}(Er||(Er={}));let Pr=Er,{hideSeriesFromAT:Or}=W,{describeSeries:Lr}=Tn,Nr=class extends K{static compose(t,e,i){Rn.compose(i),cr.compose(i),Pr.compose(t,e,i)}init(){this.newDataAnnouncer=new Rn(this.chart),this.newDataAnnouncer.init(),this.keyboardNavigation=new Pr(this.chart,this.keyCodes),this.keyboardNavigation.init(),this.hideTooltipFromATWhenShown(),this.hideSeriesLabelsFromATWhenShown()}hideTooltipFromATWhenShown(){let t=this;this.chart.tooltip&&this.addEvent(this.chart.tooltip.constructor,"refresh",function(){this.chart===t.chart&&this.label&&this.label.element&&this.label.element.setAttribute("aria-hidden",!0)})}hideSeriesLabelsFromATWhenShown(){this.addEvent(this.chart,"afterDrawSeriesLabels",function(){this.series.forEach(function(t){t.labelBySeries&&t.labelBySeries.attr("aria-hidden",!0)})})}onChartRender(){this.chart.series.forEach(function(t){!1!==(t.options.accessibility&&t.options.accessibility.enabled)&&t.visible&&0!==t.getPointsCollection().length?Lr(t):Or(t)})}getKeyboardNavigation(){return this.keyboardNavigation.getKeyboardNavigationHandler()}destroy(){this.newDataAnnouncer.destroy(),this.keyboardNavigation.destroy()}},{unhideChartElementFromAT:Ir}=W,{getFakeMouseEvent:Dr}=E,{attr:Br,pick:Rr}=w(),Fr=class extends K{constructor(){super(...arguments),this.focusedMapNavButtonIx=-1}init(){let t=this,e=this.chart;this.proxyProvider.addGroup("zoom","div"),["afterShowResetZoom","afterApplyDrilldown","drillupall"].forEach(i=>{t.addEvent(e,i,function(){t.updateProxyOverlays()})})}onChartUpdate(){let t=this.chart,e=this;t.mapNavigation&&t.mapNavigation.navButtons.forEach((i,n)=>{Ir(t,i.element),e.setMapNavButtonAttrs(i.element,"accessibility.zoom.mapZoom"+(n?"Out":"In"))})}setMapNavButtonAttrs(t,e){let i=this.chart;Br(t,{tabindex:-1,role:"button","aria-label":i.langFormat(e,{chart:i})})}onChartRender(){this.updateProxyOverlays()}updateProxyOverlays(){let t=this.chart;this.proxyProvider.clearGroup("zoom"),t.resetZoomButton&&this.createZoomProxyButton(t.resetZoomButton,"resetZoomProxyButton",t.langFormat("accessibility.zoom.resetZoomButton",{chart:t})),t.drillUpButton&&t.breadcrumbs&&t.breadcrumbs.list&&this.createZoomProxyButton(t.drillUpButton,"drillUpProxyButton",t.langFormat("accessibility.drillUpButton",{chart:t,buttonText:t.breadcrumbs.getButtonText(t.breadcrumbs.list[t.breadcrumbs.list.length-1])}))}createZoomProxyButton(t,e,i){this[e]=this.proxyProvider.addProxyElement("zoom",{click:t},"button",{"aria-label":i,tabindex:-1})}getMapZoomNavigation(){let t=this.keyCodes,e=this.chart,i=this;return new J(e,{keyCodeMap:[[[t.up,t.down,t.left,t.right],function(t){return i.onMapKbdArrow(this,t)}],[[t.tab],function(t,e){return i.onMapKbdTab(this,e)}],[[t.space,t.enter],function(){return i.onMapKbdClick(this)}]],validate:function(){return!!(e.mapView&&e.mapNavigation&&e.mapNavigation.navButtons.length)},init:function(t){return i.onMapNavInit(t)}})}onMapKbdArrow(t,e){let i=this.chart,n=this.keyCodes,r=i.container,s=e===n.up||e===n.down,o=(s?i.plotHeight:i.plotWidth)/10*(e===n.left||e===n.up?1:-1),a=10*Math.random(),l={x:r.offsetLeft+i.plotLeft+i.plotWidth/2+a,y:r.offsetTop+i.plotTop+i.plotHeight/2+a},h=s?{x:l.x,y:l.y+o}:{x:l.x+o,y:l.y};return[Dr("mousedown",l),Dr("mousemove",h),Dr("mouseup",h)].forEach(t=>r.dispatchEvent(t)),t.response.success}onMapKbdTab(t,e){let i=this.chart,n=t.response,r=e.shiftKey,s=r&&!this.focusedMapNavButtonIx||!r&&this.focusedMapNavButtonIx;if(i.mapNavigation.navButtons[this.focusedMapNavButtonIx].setState(0),s)return i.mapView&&i.mapView.zoomBy(),n[r?"prev":"next"];this.focusedMapNavButtonIx+=r?-1:1;let o=i.mapNavigation.navButtons[this.focusedMapNavButtonIx];return i.setFocusToElement(o.box,o.element),o.setState(2),n.success}onMapKbdClick(t){return this.fakeClickEvent(this.chart.mapNavigation.navButtons[this.focusedMapNavButtonIx].element),t.response.success}onMapNavInit(t){let e=this.chart,i=t>0?e.mapNavigation.navButtons[0]:e.mapNavigation.navButtons[1];e.setFocusToElement(i.box,i.element),i.setState(2),this.focusedMapNavButtonIx=t>0?0:1}simpleButtonNavigation(t,e,i){let n=this.keyCodes,r=this,s=this.chart;return new J(s,{keyCodeMap:[[[n.tab,n.up,n.down,n.left,n.right],function(t,e){return this.response[t===n.tab&&e.shiftKey||t===n.left||t===n.up?"prev":"next"]}],[[n.space,n.enter],function(){return Rr(i(this,s),this.response.success)}]],validate:function(){return s[t]&&s[t].box&&r[e].innerElement},init:function(){s.setFocusToElement(s[t].box,r[e].innerElement)}})}getKeyboardNavigation(){return[this.simpleButtonNavigation("resetZoomButton","resetZoomProxyButton",function(t,e){e.zoomOut()}),this.simpleButtonNavigation("drillUpButton","drillUpProxyButton",function(t,e){return e.drillUp(),t.response.prev}),this.getMapZoomNavigation()]}},{doc:zr,isMS:Hr,win:jr}=w(),{error:Gr,pick:Wr}=w();function Vr(t,e,i){let n,r=t,s=0;for(;s<e.length-1;++s)r=r[n=e[s]]=Wr(r[n],{});r[e[e.length-1]]=i}function Xr(t,e,i,n){function r(t,e){return e.reduce(function(t,e){return t[e]},t)}let s=r(t.options,e),o=r(t.options,i);Object.keys(n).forEach(function(r){let a=s[r];void 0!==a&&(Vr(o,n[r],a),Gr(32,!1,t,{[e.join(".")+"."+r]:i.join(".")+"."+n[r].join(".")}))})}let{defaultOptions:Ur}=w(),{doc:Yr}=w(),{addEvent:qr,extend:$r,fireEvent:_r,merge:Kr}=w(),{removeElement:Zr}=E;class Jr{constructor(t){this.init(t)}init(t){if(this.chart=t,!Yr?.addEventListener)return this.zombie=!0,this.components={},void t.renderTo.setAttribute("aria-hidden",!0);(function(t){let e=t.options.chart,i=t.options.accessibility||{};["description","typeDescription"].forEach(function(n){e[n]&&(i[n]=e[n],Gr(32,!1,t,{[`chart.${n}`]:`use accessibility.${n}`}))}),t.axes.forEach(function(e){let i=e.options;i&&i.description&&(i.accessibility=i.accessibility||{},i.accessibility.description=i.description,Gr(32,!1,t,{"axis.description":"use axis.accessibility.description"}))}),t.series&&function(t){let e={description:["accessibility","description"],exposeElementToA11y:["accessibility","exposeAsGroupOnly"],pointDescriptionFormatter:["accessibility","point","descriptionFormatter"],skipKeyboardNavigation:["accessibility","keyboardNavigation","enabled"],"accessibility.pointDescriptionFormatter":["accessibility","point","descriptionFormatter"]};t.series.forEach(function(i){Object.keys(e).forEach(function(n){let r=i.options[n];"accessibility.pointDescriptionFormatter"===n&&(r=i.options.accessibility&&i.options.accessibility.pointDescriptionFormatter),void 0!==r&&(Vr(i.options,e[n],"skipKeyboardNavigation"===n?!r:r),Gr(32,!1,t,{[`series.${n}`]:"series."+e[n].join(".")}))})})}(t),Xr(t,["accessibility"],["accessibility"],{pointDateFormat:["point","dateFormat"],pointDateFormatter:["point","dateFormatter"],pointDescriptionFormatter:["point","descriptionFormatter"],pointDescriptionThreshold:["series","pointDescriptionEnabledThreshold"],pointNavigationThreshold:["keyboardNavigation","seriesNavigation","pointNavigationEnabledThreshold"],pointValueDecimals:["point","valueDecimals"],pointValuePrefix:["point","valuePrefix"],pointValueSuffix:["point","valueSuffix"],screenReaderSectionFormatter:["screenReaderSection","beforeChartFormatter"],describeSingleSeries:["series","describeSingleSeries"],seriesDescriptionFormatter:["series","descriptionFormatter"],onTableAnchorClick:["screenReaderSection","onViewDataTableClick"],axisRangeDateFormat:["screenReaderSection","axisRangeDateFormat"]}),Xr(t,["accessibility","keyboardNavigation"],["accessibility","keyboardNavigation","seriesNavigation"],{skipNullPoints:["skipNullPoints"],mode:["mode"]}),Xr(t,["lang","accessibility"],["lang","accessibility"],{legendItem:["legend","legendItem"],legendLabel:["legend","legendLabel"],mapZoomIn:["zoom","mapZoomIn"],mapZoomOut:["zoom","mapZoomOut"],resetZoomButton:["zoom","resetZoomButton"],screenReaderRegionLabel:["screenReaderSection","beforeRegionLabel"],rangeSelectorButton:["rangeSelector","buttonText"],rangeSelectorMaxInput:["rangeSelector","maxInputLabel"],rangeSelectorMinInput:["rangeSelector","minInputLabel"],svgContainerEnd:["screenReaderSection","endOfChartMarker"],viewAsDataTable:["table","viewAsDataTableButtonText"],tableSummary:["table","tableSummary"]})})(t),this.proxyProvider=new Qn(this.chart),this.initComponents(),this.keyboardNavigation=new Qt(t,this.components)}initComponents(){let t=this.chart,e=this.proxyProvider,i=t.options.accessibility;this.components={container:new nt,infoRegions:new Ft,legend:new fe,chartMenu:new Xt,rangeSelector:new sr,series:new Nr,zoom:new Fr,navigator:new on},i.customComponents&&$r(this.components,i.customComponents);let n=this.components;this.getComponentOrder().forEach(function(i){n[i].initBase(t,e),n[i].init()})}getComponentOrder(){return this.components?this.components.series?["series"].concat(Object.keys(this.components).filter(t=>"series"!==t)):Object.keys(this.components):[]}update(){let t=this.components,e=this.chart,i=e.options.accessibility;_r(e,"beforeA11yUpdate"),e.types=this.getChartTypes();let n=i.keyboardNavigation.order;this.proxyProvider.updateGroupOrder(n),this.getComponentOrder().forEach(function(i){t[i].onChartUpdate(),_r(e,"afterA11yComponentUpdate",{name:i,component:t[i]})}),this.keyboardNavigation.update(n),!e.highContrastModeActive&&!1!==i.highContrastMode&&(function(){if(Hr&&jr.getComputedStyle){let t=zr.createElement("div");t.style.backgroundImage="url(data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==)",zr.body.appendChild(t);let e=(t.currentStyle||jr.getComputedStyle(t)).backgroundImage;return zr.body.removeChild(t),"none"===e}return jr.matchMedia&&jr.matchMedia("(forced-colors: active)").matches}()||!0===i.highContrastMode)&&function(t){t.highContrastModeActive=!0;let e=t.options.accessibility.highContrastTheme;t.update(e,!1);let i=e.colors?.length>1;t.series.forEach(function(t){let n=e.plotOptions[t.type]||{};t.update({color:n.color||"windowText",colors:i?e.colors:[n.color||"windowText"],borderColor:n.borderColor||"window",fillColor:i&&void 0!==t.colorIndex?e.colors[t.colorIndex]:n.color||"window"},!1),t.points&&t.points.forEach(function(t){t.options&&t.options.color&&t.update({color:n.color||"windowText",borderColor:n.borderColor||"window"},!1)})}),t.redraw()}(e),_r(e,"afterA11yUpdate",{accessibility:this})}destroy(){let t=this.chart||{},e=this.components;Object.keys(e).forEach(function(t){e[t].destroy(),e[t].destroyBase()}),this.proxyProvider&&this.proxyProvider.destroy(),t.announcerContainer&&Zr(t.announcerContainer),this.keyboardNavigation&&this.keyboardNavigation.destroy(),t.renderTo&&t.renderTo.setAttribute("aria-hidden",!0),t.focusElement&&t.focusElement.removeFocusBorder()}getChartTypes(){let t={};return this.chart.series.forEach(function(e){t[e.type]=1}),Object.keys(t)}}!function(t){function e(){this.accessibility&&this.accessibility.destroy()}function i(){this.a11yDirty&&this.renderTo&&(delete this.a11yDirty,this.updateA11yEnabled());let t=this.accessibility;t&&!t.zombie&&(t.proxyProvider.updateProxyElementPositions(),t.getComponentOrder().forEach(function(e){t.components[e].onChartRender()}))}function n(t){let e=t.options.accessibility;e&&(e.customComponents&&(this.options.accessibility.customComponents=e.customComponents,delete e.customComponents),Kr(!0,this.options.accessibility,e),this.accessibility&&this.accessibility.destroy&&(this.accessibility.destroy(),delete this.accessibility)),this.a11yDirty=!0}function r(){let e=this.accessibility,i=this.options.accessibility,n=this.renderer.boxWrapper.element,r=this.title;if(i&&i.enabled)e&&!e.zombie?e.update():(this.accessibility=e=new t(this),e&&!e.zombie&&e.update(),"img"===n.getAttribute("role")&&n.removeAttribute("role"));else if(e)e.destroy&&e.destroy(),delete this.accessibility;else{this.renderTo.setAttribute("role","img"),this.renderTo.setAttribute("aria-hidden",!1),this.renderTo.setAttribute("aria-label",(r&&r.element.textContent||"").replace(/</g,"&lt;")),n.setAttribute("aria-hidden",!0);let t=document.getElementsByClassName("highcharts-description")[0];t&&(t.setAttribute("aria-hidden",!1),t.classList.remove("highcharts-linked-description"))}}function s(){this.series.chart.accessibility&&(this.series.chart.a11yDirty=!0)}t.i18nFormat=D.i18nFormat,t.compose=function(t,o,a,l,h,c){Qt.compose(t),Rn.compose(l),fe.compose(t,o),Xt.compose(t),Nr.compose(t,a,l),D.compose(t),ot.compose(t,h),c&&sr.compose(t,c);let d=t.prototype;d.updateA11yEnabled||(d.updateA11yEnabled=r,qr(t,"destroy",e),qr(t,"render",i),qr(t,"update",n),["addSeries","init"].forEach(e=>{qr(t,e,function(){this.a11yDirty=!0})}),["afterApplyDrilldown","drillupall"].forEach(e=>{qr(t,e,function(){let t=this.accessibility;t&&!t.zombie&&t.update()})}),qr(a,"update",s),["update","updatedData","remove"].forEach(t=>{qr(l,t,function(){this.chart.accessibility&&(this.chart.a11yDirty=!0)})}))}}(Jr||(Jr={})),Kr(!0,Ur,{accessibility:{enabled:!0,screenReaderSection:{beforeChartFormat:"<{headingTagName}>{chartTitle}</{headingTagName}><div>{typeDescription}</div><div>{chartSubtitle}</div><div>{chartLongdesc}</div><div>{playAsSoundButton}</div><div>{viewTableButton}</div><div>{xAxisDescription}</div><div>{yAxisDescription}</div><div>{annotationsTitle}{annotationsList}</div>",afterChartFormat:"{endOfChartMarker}",axisRangeDateFormat:"%Y-%m-%d %H:%M:%S"},series:{descriptionFormat:"{seriesDescription}{authorDescription}{axisDescription}",describeSingleSeries:!1,pointDescriptionEnabledThreshold:200},point:{valueDescriptionFormat:"{xDescription}{separator}{value}.",describeNull:!0},landmarkVerbosity:"all",linkedDescription:'*[data-highcharts-chart="{index}"] + .highcharts-description',highContrastMode:"auto",keyboardNavigation:{enabled:!0,focusBorder:{enabled:!0,hideBrowserFocusOutline:!0,style:{color:"#334eff",lineWidth:2,borderRadius:3},margin:2},order:["series","zoom","rangeSelector","navigator","legend","chartMenu"],wrapAround:!0,seriesNavigation:{skipNullPoints:void 0,pointNavigationEnabledThreshold:!1,rememberPointFocus:!1}},announceNewData:{enabled:!1,minAnnounceInterval:5e3,interruptUser:!1}},legend:{accessibility:{enabled:!0,keyboardNavigation:{enabled:!0}}},exporting:{accessibility:{enabled:!0}},navigator:{accessibility:{enabled:!0}}},{accessibility:{highContrastTheme:{chart:{backgroundColor:"window"},title:{style:{color:"windowText"}},subtitle:{style:{color:"windowText"}},colorAxis:{minColor:"windowText",maxColor:"windowText",stops:[],dataClasses:[]},colors:["windowText"],xAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},yAxis:{gridLineColor:"windowText",labels:{style:{color:"windowText"}},lineColor:"windowText",minorGridLineColor:"windowText",tickColor:"windowText",title:{style:{color:"windowText"}}},tooltip:{backgroundColor:"window",borderColor:"windowText",style:{color:"windowText"}},plotOptions:{series:{lineColor:"windowText",fillColor:"window",borderColor:"windowText",edgeColor:"windowText",borderWidth:1,dataLabels:{connectorColor:"windowText",color:"windowText",style:{color:"windowText",textOutline:"none"}},marker:{lineColor:"windowText",fillColor:"windowText"}},pie:{color:"window",colors:["window"],borderColor:"windowText",borderWidth:1},boxplot:{fillColor:"window"},candlestick:{lineColor:"windowText",fillColor:"window"},errorbar:{fillColor:"window"}},legend:{backgroundColor:"window",itemStyle:{color:"windowText"},itemHoverStyle:{color:"windowText"},itemHiddenStyle:{color:"#555"},title:{style:{color:"windowText"}}},credits:{style:{color:"windowText"}},drilldown:{activeAxisLabelStyle:{color:"windowText"},activeDataLabelStyle:{color:"windowText"}},navigation:{buttonOptions:{symbolStroke:"windowText",theme:{fill:"window"}}},rangeSelector:{buttonTheme:{fill:"window",stroke:"windowText",style:{color:"windowText"},states:{hover:{fill:"window",stroke:"windowText",style:{color:"windowText"}},select:{fill:"#444",stroke:"windowText",style:{color:"windowText"}}}},inputBoxBorderColor:"windowText",inputStyle:{backgroundColor:"window",color:"windowText"},labelStyle:{color:"windowText"}},navigator:{handles:{backgroundColor:"window",borderColor:"windowText"},outlineColor:"windowText",maskFill:"transparent",series:{color:"windowText",lineColor:"windowText"},xAxis:{gridLineColor:"windowText"}},scrollbar:{barBackgroundColor:"#444",barBorderColor:"windowText",buttonArrowColor:"windowText",buttonBackgroundColor:"window",buttonBorderColor:"windowText",rifleColor:"windowText",trackBackgroundColor:"window",trackBorderColor:"windowText"}}},lang:{accessibility:{defaultChartTitle:"Chart",chartContainerLabel:"{title}. Highcharts interactive chart.",svgContainerLabel:"Interactive chart",drillUpButton:"{buttonText}",credits:"Chart credits: {creditsStr}",thousandsSep:",",svgContainerTitle:"",graphicContainerLabel:"",screenReaderSection:{beforeRegionLabel:"",afterRegionLabel:"",annotations:{heading:"Chart annotations summary",descriptionSinglePoint:"{annotationText}. Related to {annotationPoint}",descriptionMultiplePoints:"{annotationText}. Related to {annotationPoint}{#each additionalAnnotationPoints}, also related to {this}{/each}",descriptionNoPoints:"{annotationText}"},endOfChartMarker:"End of interactive chart."},sonification:{playAsSoundButtonText:"Play as sound, {chartTitle}",playAsSoundClickAnnouncement:"Play"},legend:{legendLabelNoTitle:"Toggle series visibility, {chartTitle}",legendLabel:"Chart legend: {legendTitle}",legendItem:"Show {itemName}"},zoom:{mapZoomIn:"Zoom chart",mapZoomOut:"Zoom out chart",resetZoomButton:"Reset zoom"},rangeSelector:{dropdownLabel:"{rangeTitle}",minInputLabel:"Select start date.",maxInputLabel:"Select end date.",clickButtonAnnouncement:"Viewing {axisRangeDescription}"},navigator:{handleLabel:"{#eq handleIx 0}Start, percent{else}End, percent{/eq}",groupLabel:"Axis zoom",changeAnnouncement:"{axisRangeDescription}"},table:{viewAsDataTableButtonText:"View as data table, {chartTitle}",tableSummary:"Table representation of chart."},announceNewData:{newDataAnnounce:"Updated data for chart {chartTitle}",newSeriesAnnounceSingle:"New data series: {seriesDesc}",newPointAnnounceSingle:"New data point: {pointDesc}",newSeriesAnnounceMultiple:"New data series in chart {chartTitle}: {seriesDesc}",newPointAnnounceMultiple:"New data point in chart {chartTitle}: {pointDesc}"},seriesTypeDescriptions:{boxplot:"Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile, and maximum.",arearange:"Arearange charts are line charts displaying a range between a lower and higher value for each point.",areasplinerange:"These charts are line charts displaying a range between a lower and higher value for each point.",bubble:"Bubble charts are scatter charts where each data point also has a size value.",columnrange:"Columnrange charts are column charts displaying a range between a lower and higher value for each point.",errorbar:"Errorbar series are used to display the variability of the data.",funnel:"Funnel charts are used to display reduction of data in stages.",pyramid:"Pyramid charts consist of a single pyramid with item heights corresponding to each point value.",waterfall:"A waterfall chart is a column chart where each column contributes towards a total end value."},chartTypes:{emptyChart:"Empty chart",mapTypeDescription:"Map of {mapTitle} with {numSeries} data series.",unknownMap:"Map of unspecified region with {numSeries} data series.",combinationChart:"Combination chart with {numSeries} data series.",defaultSingle:"Chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",defaultMultiple:"Chart with {numSeries} data series.",splineSingle:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",splineMultiple:"Line chart with {numSeries} lines.",lineSingle:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}.",lineMultiple:"Line chart with {numSeries} lines.",columnSingle:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}.",columnMultiple:"Bar chart with {numSeries} data series.",barSingle:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}.",barMultiple:"Bar chart with {numSeries} data series.",pieSingle:"Pie chart with {numPoints} {#eq numPoints 1}slice{else}slices{/eq}.",pieMultiple:"Pie chart with {numSeries} pies.",scatterSingle:"Scatter chart with {numPoints} {#eq numPoints 1}point{else}points{/eq}.",scatterMultiple:"Scatter chart with {numSeries} data series.",boxplotSingle:"Boxplot with {numPoints} {#eq numPoints 1}box{else}boxes{/eq}.",boxplotMultiple:"Boxplot with {numSeries} data series.",bubbleSingle:"Bubble chart with {numPoints} {#eq numPoints 1}bubbles{else}bubble{/eq}.",bubbleMultiple:"Bubble chart with {numSeries} data series."},axis:{xAxisDescriptionSingular:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}",xAxisDescriptionPlural:"The chart has {numAxes} X axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}.",yAxisDescriptionSingular:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}",yAxisDescriptionPlural:"The chart has {numAxes} Y axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}.",timeRangeDays:"Data range: {range} days.",timeRangeHours:"Data range: {range} hours.",timeRangeMinutes:"Data range: {range} minutes.",timeRangeSeconds:"Data range: {range} seconds.",rangeFromTo:"Data ranges from {rangeFrom} to {rangeTo}.",rangeCategories:"Data range: {numCategories} categories."},exporting:{chartMenuLabel:"Chart menu",menuButtonLabel:"View chart menu, {chartTitle}"},series:{summary:{default:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",defaultCombination:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",line:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",lineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",spline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",splineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",column:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",columnCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",bar:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",barCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}.",pie:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}.",pieCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}.",scatter:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}.",scatterCombination:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}.",boxplot:"{series.name}, boxplot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}box{else}boxes{/eq}.",boxplotCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Boxplot with {series.points.length} {#eq series.points.length 1}box{else}boxes{/eq}.",bubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",bubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",map:"{series.name}, map {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}area{else}areas{/eq}.",mapCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Map with {series.points.length} {#eq series.points.length 1}area{else}areas{/eq}.",mapline:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",maplineCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}.",mapbubble:"{series.name}, bubble series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}.",mapbubbleCombination:"{series.name}, series {seriesNumber} of {chart.series.length}. Bubble series with {series.points.length} {#eq series.points.length 1}bubble{else}bubbles{/eq}."},description:"{description}",xAxisDescription:"X axis, {name}",yAxisDescription:"Y axis, {name}",nullPointValue:"No value",pointAnnotationsDescription:"{#each annotations}Annotation: {this}{/each}"}}}});let Qr=Jr,ts=w();ts.i18nFormat=Qr.i18nFormat,ts.A11yChartUtilities=W,ts.A11yHTMLUtilities=E,ts.AccessibilityComponent=K,ts.KeyboardNavigationHandler=J,ts.SeriesAccessibilityDescriber=Tn,Qr.compose(ts.Chart,ts.Legend,ts.Point,ts.Series,ts.SVGElement,ts.RangeSelector);let es=w();return b.default})(),t.exports=n(i._Highcharts,i._Highcharts.Templating,i._Highcharts.AST,i._Highcharts.Legend,i._Highcharts.Axis,i._Highcharts.Color,i._Highcharts.SeriesRegistry,i._Highcharts.RendererRegistry,i._Highcharts.SVGRenderer,i._Highcharts.Point,i._Highcharts.Series)}),ji(function(t,e){var i,n;i="undefined"==typeof window?Hi:window,n=(t,e,i)=>(()=>{var n,r,s={660:t=>{t.exports=e},944:e=>{e.exports=t},960:t=>{t.exports=i}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var i=o[t]={exports:{}};return s[t](i,i.exports,a),i.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var l={};a.d(l,{default:()=>pt});var h=a(944),c=a.n(h),d=a(660),u=a.n(d),p=a(960),g=a.n(p);!function(t){t.compose=function(t){return t.navigation||(t.navigation=new e(t)),t};class e{constructor(t){this.updates=[],this.chart=t}addUpdate(t){this.chart.navigation.updates.push(t)}update(t,e){this.updates.forEach(i=>{i.call(this.chart,t,e)})}}t.Additions=e}(n||(n={}));let m=n,{isSafari:f,win:y,win:{document:x}}=c(),{error:b}=c(),v=y.URL||y.webkitURL||y;function w(t){let e=t.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);if(e&&e.length>3&&y.atob&&y.ArrayBuffer&&y.Uint8Array&&y.Blob&&v.createObjectURL){let t=y.atob(e[3]),i=new y.ArrayBuffer(t.length),n=new y.Uint8Array(i);for(let e=0;e<n.length;++e)n[e]=t.charCodeAt(e);return v.createObjectURL(new y.Blob([n],{type:e[1]}))}}let{isTouchDevice:k}=c(),S={exporting:{allowTableSorting:!0,libURL:"https://code.highcharts.com/12.4.0/lib/",local:!0,type:"image/png",url:`https://export-svg.highcharts.com?v=${c().version}`,pdfFont:{normal:void 0,bold:void 0,bolditalic:void 0,italic:void 0},printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",titleKey:"contextButtonTitle",menuItems:["viewFullscreen","printChart","separator","downloadPNG","downloadJPEG","downloadSVG"]}},menuItemDefinitions:{viewFullscreen:{textKey:"viewFullscreen",onclick:function(){this.fullscreen?.toggle()}},printChart:{textKey:"printChart",onclick:function(){this.exporting?.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:async function(){await(this.exporting?.exportChart())}},downloadJPEG:{textKey:"downloadJPEG",onclick:async function(){await(this.exporting?.exportChart({type:"image/jpeg"}))}},downloadPDF:{textKey:"downloadPDF",onclick:async function(){await(this.exporting?.exportChart({type:"application/pdf"}))}},downloadSVG:{textKey:"downloadSVG",onclick:async function(){await(this.exporting?.exportChart({type:"image/svg+xml"}))}}}},lang:{viewFullscreen:"View in full screen",exitFullscreen:"Exit from full screen",printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"},navigation:{buttonOptions:{symbolSize:14,symbolX:14.5,symbolY:13.5,align:"right",buttonSpacing:5,height:28,y:-5,verticalAlign:"top",width:28,symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{fill:"#ffffff",padding:5,stroke:"none","stroke-linecap":"round"}},menuStyle:{border:"none",borderRadius:"3px",background:"#ffffff",padding:"0.5em"},menuItemStyle:{background:"none",borderRadius:"3px",color:"#333333",padding:"0.5em",fontSize:k?"0.9em":"0.8em",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#f2f2f2"}}};!function(t){let e=[];function i(t,e,i,n){return[["M",t,e+2.5],["L",t+i,e+2.5],["M",t,e+n/2+.5],["L",t+i,e+n/2+.5],["M",t,e+n-1.5],["L",t+i,e+n-1.5]]}function n(t,e,i,n){let r=n/3-2;return[].concat(this.circle(i-r,e,r,r),this.circle(i-r,e+r+4,r,r),this.circle(i-r,e+2*(r+4),r,r))}t.compose=function(t){if(-1===e.indexOf(t)){e.push(t);let r=t.prototype.symbols;r.menu=i,r.menuball=n.bind(r)}}}(r||(r={}));let M=r,{composed:C}=c(),{addEvent:T,fireEvent:A,pushUnique:E}=c();function P(){this.fullscreen=new O(this)}class O{static compose(t){E(C,"Fullscreen")&&T(t,"beforeRender",P)}constructor(t){this.chart=t,this.isOpen=!1;let e=t.renderTo;!this.browserProps&&("function"==typeof e.requestFullscreen?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:e.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:e.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:e.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}close(){let t=this,e=t.chart,i=e.options.chart;A(e,"fullscreenClose",null,function(){t.isOpen&&t.browserProps&&e.container.ownerDocument instanceof Document&&e.container.ownerDocument[t.browserProps.exitFullscreen](),t.unbindFullscreenEvent&&(t.unbindFullscreenEvent=t.unbindFullscreenEvent()),e.setSize(t.origWidth,t.origHeight,!1),t.origWidth=void 0,t.origHeight=void 0,i.width=t.origWidthOption,i.height=t.origHeightOption,t.origWidthOption=void 0,t.origHeightOption=void 0,t.isOpen=!1,t.setButtonText()})}open(){let t=this,e=t.chart,i=e.options.chart;A(e,"fullscreenOpen",null,function(){if(i&&(t.origWidthOption=i.width,t.origHeightOption=i.height),t.origWidth=e.chartWidth,t.origHeight=e.chartHeight,t.browserProps){let i=T(e.container.ownerDocument,t.browserProps.fullscreenChange,function(){t.isOpen?(t.isOpen=!1,t.close()):(e.setSize(null,null,!1),t.isOpen=!0,t.setButtonText())}),n=T(e,"destroy",i);t.unbindFullscreenEvent=()=>{i(),n()};let r=e.renderTo[t.browserProps.requestFullscreen]();r&&r.catch(function(){alert("Full screen is not supported inside a frame.")})}})}setButtonText(){let t=this.chart,e=t.exporting?.divElements,i=t.options.exporting,n=i&&i.buttons&&i.buttons.contextButton.menuItems,r=t.options.lang;if(i&&i.menuItemDefinitions&&r&&r.exitFullscreen&&r.viewFullscreen&&n&&e){let t=e[n.indexOf("viewFullscreen")];t&&u().setElementHTML(t,this.isOpen?r.exitFullscreen:i.menuItemDefinitions.viewFullscreen.text||r.viewFullscreen)}}toggle(){this.isOpen?this.close():this.open()}}let{win:L}=c(),{discardElement:N,objectEach:I}=c(),D={ajax:function(t){let e={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},i=new XMLHttpRequest;function n(e,i){t.error&&t.error(e,i)}if(!t.url)return!1;i.open((t.type||"get").toUpperCase(),t.url,!0),t.headers?.["Content-Type"]||i.setRequestHeader("Content-Type",e[t.dataType||"json"]||e.text),I(t.headers,function(t,e){i.setRequestHeader(e,t)}),t.responseType&&(i.responseType=t.responseType),i.onreadystatechange=function(){let e;if(4===i.readyState){if(200===i.status){if("blob"!==t.responseType&&(e=i.responseText,"json"===t.dataType))try{e=JSON.parse(e)}catch(t){if(t instanceof Error)return n(i,t)}return t.success?.(e,i)}n(i,i.responseText)}},t.data&&"string"!=typeof t.data&&(t.data=JSON.stringify(t.data)),i.send(t.data)},getJSON:function(t,e){D.ajax({url:t,success:e,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:async function(t,e,i){let n=new L.FormData;I(e,function(t,e){n.append(e,t)}),n.append("b64","true");let r=await L.fetch(t,{method:"POST",body:n,...i});if(r.ok){let t=await r.text(),i=document.createElement("a");i.href=`data:${e.type};base64,${t}`,i.download=e.filename,i.click(),N(i)}}},{defaultOptions:B,setOptions:R}=c(),{downloadURL:F,getScript:z}={dataURLtoBlob:w,downloadURL:function(t,e){let i=y.navigator,n=x.createElement("a");if("string"!=typeof t&&!(t instanceof String)&&i.msSaveOrOpenBlob)return void i.msSaveOrOpenBlob(t,e);if(t=""+t,i.userAgent.length>1e3)throw Error("Input too long");let r=/Edge\/\d+/.test(i.userAgent);if((f&&"string"==typeof t&&0===t.indexOf("data:application/pdf")||r||t.length>2e6)&&!(t=w(t)||""))throw Error("Failed to convert to blob");if(void 0!==n.download)n.href=t,n.download=e,x.body.appendChild(n),n.click(),x.body.removeChild(n);else try{if(!y.open(t,"chart"))throw Error("Failed to open window")}catch{y.location.href=t}},getScript:function(t){return new Promise((e,i)=>{let n=x.getElementsByTagName("head")[0],r=x.createElement("script");r.type="text/javascript",r.src=t,r.onload=()=>{e()},r.onerror=()=>{let e=`Error loading script ${t}`;b(e),i(Error(e))},n.appendChild(r)})}},{composed:H,doc:j,isFirefox:G,isMS:W,isSafari:V,SVG_NS:X,win:U}=c(),{addEvent:Y,clearTimeout:q,createElement:$,css:_,discardElement:K,error:Z,extend:J,find:Q,fireEvent:tt,isObject:et,merge:it,objectEach:nt,pick:rt,pushUnique:st,removeEvent:ot,splat:at,uniqueKey:lt}=c();u().allowedAttributes.push("data-z-index","fill-opacity","filter","preserveAspectRatio","rx","ry","stroke-dasharray","stroke-linejoin","stroke-opacity","text-anchor","transform","transform-origin","version","viewBox","visibility","xmlns","xmlns:xlink"),u().allowedTags.push("desc","clippath","fedropshadow","femorphology","g","image");let ht=U.URL||U.webkitURL||U;class ct{constructor(t,e){this.options={},this.chart=t,this.options=e,this.btnCount=0,this.buttonOffset=0,this.divElements=[],this.svgElements=[]}static hyphenate(t){return t.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()})}static async imageToDataURL(t,e,i){let n=await ct.loadImage(t),r=j.createElement("canvas"),s=r?.getContext("2d");if(s)return r.height=n.height*e,r.width=n.width*e,s.drawImage(n,0,0,r.width,r.height),r.toDataURL(i);throw Error("No canvas found!")}static async fetchCSS(t){let e=await fetch(t).then(t=>t.text()),i=new CSSStyleSheet;return i.replaceSync(e),i}static async handleStyleSheet(t,e){try{for(let i of Array.from(t.cssRules)){if(i instanceof CSSImportRule){let t=await ct.fetchCSS(i.href);await ct.handleStyleSheet(t,e)}if(i instanceof CSSFontFaceRule){let n=i.cssText;if(t.href){let e=t.href;n=n.replace(/url\(\s*(['"]?)(?![a-z]+:|\/\/)([^'")]+?)\1\s*\)/gi,(t,i,n)=>`url(${i}${new URL(n,e).href}${i})`)}e.push(n)}}}catch{if(t.href){let i=await ct.fetchCSS(t.href);await ct.handleStyleSheet(i,e)}}}static async fetchStyleSheets(){let t=[];for(let e of Array.from(j.styleSheets))await ct.handleStyleSheet(e,t);return t}static async inlineFonts(t){let e,i=/url\(([^)]+)\)/g,n=[],r=(await ct.fetchStyleSheets()).join("\n");for(;e=i.exec(r);){let t=e[1].replace(/['"]/g,"");n.includes(t)||n.push(t)}let s=t=>{let e="",i=new Uint8Array(t);for(let t=0;t<i.byteLength;t++)e+=String.fromCharCode(i[t]);return btoa(e)},o={};for(let t of n)try{let e=await fetch(t),i=e.headers.get("Content-Type")||"",n=s(await e.arrayBuffer());o[t]=`data:${i};base64,${n}`}catch{}r=r.replace(i,(t,e)=>{let i=e.replace(/['"]/g,"");return`url(${o[i]||i})`});let a=document.createElementNS("http://www.w3.org/2000/svg","style");return a.textContent=r,t.append(a),t}static loadImage(t){return new Promise((e,i)=>{let n=new U.Image;n.crossOrigin="Anonymous",n.onload=()=>{setTimeout(()=>{e(n)},ct.loadEventDeferDelay)},n.onerror=t=>{i(t)},n.src=t})}static prepareImageOptions(t){let e=t?.type||"image/png",i=t?.libURL||B.exporting?.libURL;return{type:e,filename:(t?.filename||"chart")+"."+("image/svg+xml"===e?"svg":e.split("/")[1]),scale:t?.scale||1,libURL:"/"!==i?.slice(-1)?i+"/":i}}static sanitizeSVG(t,e){let i=t.indexOf("</svg>")+6,n=t.indexOf("<foreignObject")>-1,r=t.substr(i);return t=t.substr(0,i),n?t=t.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />"):r&&e?.exporting?.allowHTML&&(r='<foreignObject x="0" y="0" width="'+e.chart.width+'" height="'+e.chart.height+'"><body xmlns="http://www.w3.org/1999/xhtml">'+r.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />")+"</body></foreignObject>",t=t.replace("</svg>",r+"</svg>")),t.replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery\d+="[^"]+"/g,"").replace(/url\(("|&quot;)(.*?)("|&quot;)\;?\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ (NS\d+\:)?href=/g," xlink:href=").replace(/\n+/g," ").replace(/&nbsp;/g," ").replace(/&shy;/g,"­")}static svgToDataURL(t){let e=U.navigator.userAgent,i=e.indexOf("WebKit")>-1&&0>e.indexOf("Chrome");try{if(!i&&-1===t.indexOf("<foreignObject"))return ht.createObjectURL(new U.Blob([t],{type:"image/svg+xml;charset-utf-16"}))}catch{}return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(t)}addButton(t){let e,i=this,n=i.chart,r=n.renderer,s=it(n.options.navigation?.buttonOptions,t),o=s.onclick,a=s.menuItems,l=s.symbolSize||12;if(!1===s.enabled||!s.theme)return;let h=n.styledMode?{}:s.theme,c=()=>{};o?c=function(t){t&&t.stopPropagation(),o.call(n,t)}:a&&(c=function(t){t&&t.stopPropagation(),i.contextMenu(d.menuClassName,a,d.translateX||0,d.translateY||0,d.width||0,d.height||0,d),d.setState(2)}),s.text&&s.symbol?h.paddingLeft=rt(h.paddingLeft,30):s.text||J(h,{width:s.width,height:s.height,padding:0});let d=r.button(s.text||"",0,0,c,h,void 0,void 0,void 0,void 0,s.useHTML).addClass(t.className||"").attr({title:rt(n.options.lang[s._titleKey||s.titleKey],"")});d.menuClassName=t.menuClassName||"highcharts-menu-"+i.btnCount++,s.symbol&&(e=r.symbol(s.symbol,Math.round((s.symbolX||0)-l/2),Math.round((s.symbolY||0)-l/2),l,l,{width:l,height:l}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(d),n.styledMode||e.attr({stroke:s.symbolStroke,fill:s.symbolFill,"stroke-width":s.symbolStrokeWidth||1})),d.add(i.group).align(J(s,{width:d.width,x:rt(s.x,i.buttonOffset)}),!0,"spacingBox"),i.buttonOffset+=((d.width||0)+(s.buttonSpacing||0))*("right"===s.align?-1:1),i.svgElements.push(d,e)}afterPrint(){let t=this.chart;if(!this.printReverseInfo)return;let{childNodes:e,origDisplay:i,resetParams:n}=this.printReverseInfo;this.moveContainers(t.renderTo),[].forEach.call(e,function(t,e){1===t.nodeType&&(t.style.display=i[e]||"")}),this.isPrinting=!1,n&&t.setSize.apply(t,n),delete this.printReverseInfo,ct.printingChart=void 0,tt(t,"afterPrint")}beforePrint(){let t=this.chart,e=j.body,i=this.options.printMaxWidth,n={childNodes:e.childNodes,origDisplay:[],resetParams:void 0};this.isPrinting=!0,t.pointer?.reset(void 0,0),tt(t,"beforePrint"),i&&t.chartWidth>i&&(n.resetParams=[t.options.chart.width,void 0,!1],t.setSize(i,void 0,!1)),[].forEach.call(n.childNodes,function(t,e){1===t.nodeType&&(n.origDisplay[e]=t.style.display,t.style.display="none")}),this.moveContainers(e),this.printReverseInfo=n}contextMenu(t,e,i,n,r,s,o){let a,l=this,h=l.chart,c=h.options.navigation,d=h.chartWidth,p=h.chartHeight,g="cache-"+t,m=Math.max(r,s),f=h[g];f||(l.contextMenuEl=h[g]=f=$("div",{className:t},{position:"absolute",zIndex:1e3,padding:m+"px",pointerEvents:"auto",...h.renderer.style},h.scrollablePlotArea?.fixedDiv||h.container),a=$("ul",{className:"highcharts-menu"},h.styledMode?{}:{listStyle:"none",margin:0,padding:0},f),h.styledMode||_(a,J({MozBoxShadow:"3px 3px 10px #0008",WebkitBoxShadow:"3px 3px 10px #0008",boxShadow:"3px 3px 10px #0008"},c?.menuStyle||{})),f.hideMenu=function(){_(f,{display:"none"}),o&&o.setState(0),h.exporting&&(h.exporting.openMenu=!1),_(h.renderTo,{overflow:"hidden"}),_(h.container,{overflow:"hidden"}),q(f.hideTimer),tt(h,"exportMenuHidden")},l.events?.push(Y(f,"mouseleave",function(){f.hideTimer=U.setTimeout(f.hideMenu,500)}),Y(f,"mouseenter",function(){q(f.hideTimer)}),Y(j,"mouseup",function(e){h.pointer?.inClass(e.target,t)||f.hideMenu()}),Y(f,"click",function(){h.exporting?.openMenu&&f.hideMenu()})),e.forEach(function(t){if("string"==typeof t&&l.options.menuItemDefinitions?.[t]&&(t=l.options.menuItemDefinitions[t]),et(t,!0)){let e;t.separator?e=$("hr",void 0,void 0,a):("viewData"===t.textKey&&l.isDataTableVisible&&(t.textKey="hideData"),e=$("li",{className:"highcharts-menu-item",onclick:function(e){e&&e.stopPropagation(),f.hideMenu(),"string"!=typeof t&&t.onclick&&t.onclick.apply(h,arguments)}},void 0,a),u().setElementHTML(e,t.text||h.options.lang[t.textKey]),h.styledMode||(e.onmouseover=function(){_(this,c?.menuItemHoverStyle||{})},e.onmouseout=function(){_(this,c?.menuItemStyle||{})},_(e,J({cursor:"pointer"},c?.menuItemStyle||{})))),l.divElements.push(e)}}),l.divElements.push(a,f),l.menuHeight=f.offsetHeight,l.menuWidth=f.offsetWidth);let y={display:"block"};i+(l.menuWidth||0)>d?y.right=d-i-r-m+"px":y.left=i-m+"px",n+s+(l.menuHeight||0)>p&&"top"!==o.alignOptions?.verticalAlign?y.bottom=p-n-m+"px":y.top=n+s-m+"px",_(f,y),_(h.renderTo,{overflow:""}),_(h.container,{overflow:""}),h.exporting&&(h.exporting.openMenu=!0),tt(h,"exportMenuShown")}destroy(t){let e,i=t?t.target:this.chart,{divElements:n,events:r,svgElements:s}=this;s.forEach((t,n)=>{t&&(t.onclick=t.ontouchstart=null,i[e="cache-"+t.menuClassName]&&delete i[e],s[n]=t.destroy())}),s.length=0,this.group&&(this.group.destroy(),delete this.group),n.forEach(function(t,e){t&&(q(t.hideTimer),ot(t,"mouseleave"),n[e]=t.onmouseout=t.onmouseover=t.ontouchstart=t.onclick=null,K(t))}),n.length=0,r&&(r.forEach(function(t){t()}),r.length=0)}async downloadSVG(t,e){let i,n={svg:t,exportingOptions:e,exporting:this};if(tt(ct.prototype,"downloadSVG",n),n.defaultPrevented)return;let{type:r,filename:s,scale:o,libURL:a}=ct.prepareImageOptions(e);if("application/pdf"===r)throw Error("Offline exporting logic for PDF type is not found.");if("image/svg+xml"===r){if(void 0!==U.MSBlobBuilder){let e=new U.MSBlobBuilder;e.append(t),i=e.getBlob("image/svg+xml")}else i=ct.svgToDataURL(t);F(i,s)}else{i=ct.svgToDataURL(t);try{ct.objectURLRevoke=!0;let t=await ct.imageToDataURL(i,o,r);F(t,s)}catch(e){if("No canvas found!"===e.message)throw e;if(t.length>1e8)throw Error("Input too long");let i=j.createElement("canvas"),n=i.getContext("2d"),l=t.match(/^<svg[^>]*\s{,1000}width\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/),h=t.match(/^<svg[^>]*\s{0,1000}height\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/);if(n&&l&&h){let e=h[1]*o;i.width=l[1]*o,i.height=e,U.canvg||(ct.objectURLRevoke=!0,await z(a+"canvg.js")),U.canvg.Canvg.fromString(n,t).start(),F(U.navigator.msSaveOrOpenBlob?i.msToBlob():i.toDataURL(r),s)}}finally{if(ct.objectURLRevoke)try{ht.revokeObjectURL(i)}catch{}}}}async exportChart(t,e){if((t=it(this.options,t)).local)await this.localExport(t,e||{});else{let i=this.getSVGForExport(t,e);t.url&&await D.post(t.url,{filename:t.filename?t.filename.replace(/\//g,"-"):this.getFilename(),type:t.type,width:t.width,scale:t.scale,svg:i},t.fetchOptions)}}async fallbackToServer(t,e){!1===t.fallbackToExportServer?t.error?t.error(t,e):Z(28,!0):"application/pdf"===t.type&&(t.local=!1,await this.exportChart(t))}getChartHTML(t){let e=this.chart;return t&&this.inlineStyles(),this.resolveCSSVariables(),e.container.innerHTML}getFilename(){let t=this.chart.userOptions.title?.text,e=this.options.filename;return e?e.replace(/\//g,"-"):("string"==typeof t&&(e=t.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z\d\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,"")),(!e||e.length<5)&&(e="chart"),e)}getSVG(t){let e,i,n=this.chart,r=it(n.options,t);r.plotOptions=it(n.userOptions.plotOptions,t?.plotOptions),r.time=it(n.userOptions.time,t?.time);let s=$("div",void 0,{position:"absolute",top:"-9999em",width:n.chartWidth+"px",height:n.chartHeight+"px"},j.body),o=n.renderTo.style.width,a=n.renderTo.style.height,l=r.exporting?.sourceWidth||r.chart.width||/px$/.test(o)&&parseInt(o,10)||(r.isGantt?800:600),h=r.exporting?.sourceHeight||r.chart.height||/px$/.test(a)&&parseInt(a,10)||400;J(r.chart,{animation:!1,renderTo:s,forExport:!0,renderer:"SVGRenderer",width:l,height:h}),r.exporting&&(r.exporting.enabled=!1),delete r.data,r.series=[],n.series.forEach(function(t){(i=it(t.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:t.visible})).isInternal||r?.series?.push(i)});let c={};n.axes.forEach(function(t){t.userOptions.internalKey||(t.userOptions.internalKey=lt()),r&&!t.options.isInternal&&(c[t.coll]||(c[t.coll]=!0,r[t.coll]=[]),r[t.coll].push(it(t.userOptions,{visible:t.visible,type:t.type,uniqueNames:t.uniqueNames})))}),r.colorAxis=n.userOptions.colorAxis;let d=new n.constructor(r,n.callback);return t&&["xAxis","yAxis","series"].forEach(function(e){t[e]&&d.update({[e]:t[e]})}),n.axes.forEach(function(e){let i=Q(d.axes,t=>t.options.internalKey===e.userOptions.internalKey);if(i){let n=e.getExtremes(),r=at(t?.[e.coll]||{})[0],s="min"in r?r.min:n.userMin,o="max"in r?r.max:n.userMax;(void 0!==s&&s!==i.min||void 0!==o&&o!==i.max)&&i.setExtremes(s??void 0,o??void 0,!0,!1)}}),e=d.exporting?.getChartHTML(n.styledMode||r.exporting?.applyStyleSheets)||"",tt(n,"getSVG",{chartCopy:d}),e=ct.sanitizeSVG(e,r),r=void 0,d.destroy(),K(s),e}getSVGForExport(t,e){let i=this.options;return this.getSVG(it({chart:{borderRadius:0}},i.chartOptions,e,{exporting:{sourceWidth:t?.sourceWidth||i.sourceWidth,sourceHeight:t?.sourceHeight||i.sourceHeight}}))}inlineStyles(){let t,e=ct.inlineDenylist,i=ct.inlineAllowlist,n={},r=$("iframe",void 0,{width:"1px",height:"1px",visibility:"hidden"},j.body),s=r.contentWindow?.document;s&&s.body.appendChild(s.createElementNS(X,"svg")),function r(o){let a,l,h,c,d,u,p={};if(s&&1===o.nodeType&&-1===ct.unstyledElements.indexOf(o.nodeName)){if(a=U.getComputedStyle(o,null),l="svg"===o.nodeName?{}:U.getComputedStyle(o.parentNode,null),!n[o.nodeName]){t=s.getElementsByTagName("svg")[0],h=s.createElementNS(o.namespaceURI,o.nodeName),t.appendChild(h);let e=U.getComputedStyle(h,null),i={};for(let t in e)t.length<1e3&&"string"==typeof e[t]&&!/^\d+$/.test(t)&&(i[t]=e[t]);n[o.nodeName]=i,"text"===o.nodeName&&delete n.text.fill,t.removeChild(h)}for(let t in a)(G||W||V||Object.hasOwnProperty.call(a,t))&&function(t,r){if(c=d=!1,i.length){for(u=i.length;u--&&!d;)d=i[u].test(r);c=!d}for("transform"===r&&"none"===t&&(c=!0),u=e.length;u--&&!c;){if(r.length>1e3)throw Error("Input too long");c=e[u].test(r)||"function"==typeof t}!c&&(l[r]!==t||"svg"===o.nodeName)&&n[o.nodeName][r]!==t&&(ct.inlineToAttributes&&-1===ct.inlineToAttributes.indexOf(r)?p[r]=t:t&&o.setAttribute(ct.hyphenate(r),t))}(a[t],t);if(_(o,p),"svg"===o.nodeName&&o.setAttribute("stroke-width","1px"),"text"===o.nodeName)return;[].forEach.call(o.children||o.childNodes,r)}}(this.chart.container.querySelector("svg")),t.parentNode.removeChild(t),r.parentNode.removeChild(r)}async localExport(t,e){let i,n,r,s=this.chart,o=null;if(W&&s.styledMode&&!ct.inlineAllowlist.length&&ct.inlineAllowlist.push(/^blockSize/,/^border/,/^caretColor/,/^color/,/^columnRule/,/^columnRuleColor/,/^cssFloat/,/^cursor/,/^fill$/,/^fillOpacity/,/^font/,/^inlineSize/,/^length/,/^lineHeight/,/^opacity/,/^outline/,/^parentRule/,/^rx$/,/^ry$/,/^stroke/,/^textAlign/,/^textAnchor/,/^textDecoration/,/^transform/,/^vectorEffect/,/^visibility/,/^x$/,/^y$/),W&&("application/pdf"===t.type||s.container.getElementsByTagName("image").length&&"image/svg+xml"!==t.type)||"application/pdf"===t.type&&[].some.call(s.container.getElementsByTagName("image"),function(t){let e=t.getAttribute("href");return""!==e&&"string"==typeof e&&0!==e.indexOf("data:")}))return void await this.fallbackToServer(t,Error("Image type not supported for this chart/browser."));let a=Y(s,"getSVG",t=>{n=t.chartCopy.options,r=(i=t.chartCopy.container.cloneNode(!0))&&i.getElementsByTagName("image")||[]});try{let s;for(let i of(this.getSVGForExport(t,e),r?Array.from(r):[]))if(o=i.getAttributeNS("http://www.w3.org/1999/xlink","href")){ct.objectURLRevoke=!1;let e=await ct.imageToDataURL(o,t?.scale||1,t?.type||"image/png");i.setAttributeNS("http://www.w3.org/1999/xlink","href",e)}else i.parentNode.removeChild(i);let a=i?.querySelector("svg");a&&!t.chartOptions?.chart?.style?.fontFamily&&await ct.inlineFonts(a);let l=(s=i?.innerHTML,ct.sanitizeSVG(s||"",n));if(l.indexOf("<foreignObject")>-1&&"image/svg+xml"!==t.type&&(W||"application/pdf"===t.type))throw Error("Image type not supported for charts with embedded HTML");return await this.downloadSVG(l,J({filename:this.getFilename()},t)),l}catch(e){await this.fallbackToServer(t,e)}finally{a()}}moveContainers(t){let e=this.chart,{scrollablePlotArea:i}=e;(i?[i.fixedDiv,i.scrollingContainer]:[e.container]).forEach(function(e){t.appendChild(e)})}print(){let t=this.chart;this.isPrinting||(ct.printingChart=t,V||this.beforePrint(),setTimeout(()=>{U.focus(),U.print(),V||setTimeout(()=>{t.exporting?.afterPrint()},1e3)},1))}render(){let t=this,{chart:e,options:i}=t,n=t?.isDirty||!t?.svgElements.length;t.buttonOffset=0,t.isDirty&&t.destroy(),n&&!1!==i.enabled&&(t.events=[],t.group||(t.group=e.renderer.g("exporting-group").attr({zIndex:3}).add()),nt(i?.buttons,function(e){t.addButton(e)}),t.isDirty=!1)}resolveCSSVariables(){Array.from(this.chart.container.querySelectorAll("*")).forEach(t=>{["color","fill","stop-color","stroke"].forEach(e=>{let i=t.getAttribute(e);i?.includes("var(")&&t.setAttribute(e,getComputedStyle(t).getPropertyValue(e));let n=t.style?.[e];n?.includes("var(")&&(t.style[e]=getComputedStyle(t).getPropertyValue(e))})})}update(t,e){this.isDirty=!0,it(!0,this.options,t),rt(e,!0)&&this.chart.redraw()}}ct.inlineAllowlist=[],ct.inlineDenylist=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/^parentRule$/,/^(cssRules|ownerRules)$/,/perspective/,/TapHighlightColor/,/^transition/,/^length$/,/^\d+$/],ct.inlineToAttributes=["fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","textAnchor","x","y"],ct.loadEventDeferDelay=150*!!W,ct.unstyledElements=["clipPath","defs","desc"],function(t){function e(t){let e=t.exporting;e&&(e.render(),Y(t,"redraw",function(){this.exporting?.render()}),Y(t,"destroy",function(){this.exporting?.destroy()}))}function i(){let e=this;e.options.exporting&&(e.exporting=new t(e,e.options.exporting),m.compose(e).navigation.addUpdate((t,i)=>{e.exporting&&(e.exporting.isDirty=!0,it(!0,e.options.navigation,t),rt(i,!0)&&e.redraw())}))}function n({alignTo:t,key:e,textPxLength:i}){let n=this.options.exporting,{align:r,buttonSpacing:s=0,verticalAlign:o,width:a=0}=it(this.options.navigation?.buttonOptions,n?.buttons?.contextButton),l=t.width-i,h=a+s;(n?.enabled??1)&&"title"===e&&"right"===r&&"top"===o&&l<2*h&&(l<h?t.width-=h:"left"!==this.title?.alignValue&&(t.x-=h-l/2))}t.compose=function(r,s){M.compose(s),O.compose(r),st(H,"Exporting")&&(J(g().prototype,{exportChart:async function(t,e){await(this.exporting?.exportChart(t,e))},getChartHTML:function(t){return this.exporting?.getChartHTML(t)},getFilename:function(){return this.exporting?.getFilename()},getSVG:function(t){return this.exporting?.getSVG(t)},print:function(){return this.exporting?.print()}}),r.prototype.callbacks.push(e),Y(r,"afterInit",i),Y(r,"layOutTitle",n),V&&U.matchMedia("print").addListener(function(e){t.printingChart&&(e.matches?t.printingChart.exporting?.beforePrint():t.printingChart.exporting?.afterPrint())}),R(S))}}(ct||(ct={}));let dt=ct,ut=c();ut.Exporting=dt,ut.HttpUtilities=ut.HttpUtilities||D,ut.ajax=ut.HttpUtilities.ajax,ut.getJSON=ut.HttpUtilities.getJSON,ut.post=ut.HttpUtilities.post,dt.compose(ut.Chart,ut.Renderer);let pt=c();return l.default})(),t.exports=n(i._Highcharts,i._Highcharts.AST,i._Highcharts.Chart)}),ji(function(t,e){var i,n;i="undefined"==typeof window?Hi:window,n=(t,e,i)=>(()=>{var n,r={660:t=>{t.exports=e},944:e=>{e.exports=t},960:t=>{t.exports=i}},s={};function o(t){var e=s[t];if(void 0!==e)return e.exports;var i=s[t]={exports:{}};return r[t](i,i.exports,o),i.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var i in e)o.o(e,i)&&!o.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a={};o.d(a,{default:()=>D});var l=o(944),h=o.n(l);let{isSafari:c,win:d,win:{document:u}}=h(),{error:p}=h(),g=d.URL||d.webkitURL||d;function m(t){let e=t.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);if(e&&e.length>3&&d.atob&&d.ArrayBuffer&&d.Uint8Array&&d.Blob&&g.createObjectURL){let t=d.atob(e[3]),i=new d.ArrayBuffer(t.length),n=new d.Uint8Array(i);for(let e=0;e<n.length;++e)n[e]=t.charCodeAt(e);return g.createObjectURL(new d.Blob([n],{type:e[1]}))}}let f={dataURLtoBlob:m,downloadURL:function(t,e){let i=d.navigator,n=u.createElement("a");if("string"!=typeof t&&!(t instanceof String)&&i.msSaveOrOpenBlob)return void i.msSaveOrOpenBlob(t,e);if(t=""+t,i.userAgent.length>1e3)throw Error("Input too long");let r=/Edge\/\d+/.test(i.userAgent);if((c&&"string"==typeof t&&0===t.indexOf("data:application/pdf")||r||t.length>2e6)&&!(t=m(t)||""))throw Error("Failed to convert to blob");if(void 0!==n.download)n.href=t,n.download=e,u.body.appendChild(n),n.click(),u.body.removeChild(n);else try{if(!d.open(t,"chart"))throw Error("Failed to open window")}catch{d.location.href=t}},getScript:function(t){return new Promise((e,i)=>{let n=u.getElementsByTagName("head")[0],r=u.createElement("script");r.type="text/javascript",r.src=t,r.onload=()=>{e()},r.onerror=()=>{let e=`Error loading script ${t}`;p(e),i(Error(e))},n.appendChild(r)})}};var y=o(660),x=o.n(y),b=o(960),v=o.n(b);let w={exporting:{}},{getOptions:k,setOptions:S}=h(),{downloadURL:M,getScript:C}=f,{composed:T,doc:A,win:E}=h(),{addEvent:P,extend:O,pushUnique:L}=h();!function(t){t.compose=function(t){if(P(t,"downloadSVG",async function(t){let{svg:e,exportingOptions:i,exporting:n,preventDefault:r}=t;if("application/pdf"===i?.type){r?.();try{let{type:t,filename:n,scale:r,libURL:s}=h().Exporting.prepareImageOptions(i);"application/pdf"===t&&(E.jspdf?.jsPDF||(await C(`${s}jspdf.js`),await C(`${s}svg2pdf.js`)),await async function(t,e,i,n){let r=function(t,e){let i,n,r=A.createElement("div");x().setElementHTML(r,t);let s=r.getElementsByTagName("text");return[].forEach.call(s,function(t){for(["fontFamily","fontSize"].forEach(e=>{!function(t,e){let i=t;for(;i&&i!==r;){if(i.style[e]){let n=i.style[e];"fontSize"===e&&/em$/.test(n)&&(n=Math.round(16*parseFloat(n))+"px"),t.style[e]=n;break}i=i.parentNode}}(t,e)}),t.style.fontFamily=e?.normal?"HighchartsFont":String(t.style.fontFamily&&t.style.fontFamily.split(" ").splice(-1)),i=t.getElementsByTagName("title"),[].forEach.call(i,function(e){t.removeChild(e)}),n=t.getElementsByClassName("highcharts-text-outline");n.length>0;){let t=n[0];t.parentNode&&t.parentNode.removeChild(t)}}),r.querySelector("svg")}(t,n);r&&(await async function(t,e){let i,n,r=(t,e)=>{E.jspdf.jsPDF.API.events.push(["initialized",function(){this.addFileToVFS(t,e),this.addFont(t,"HighchartsFont",t),this.getFontList()?.HighchartsFont||this.setFont("HighchartsFont")}])};for(let s of(e&&(n=t.textContent||"",!/[^\u0000-\u007F\u200B]+/.test(n))&&(e=void 0),["normal","italic","bold","bolditalic"])){let t=e?.[s];if(t)try{let e=await E.fetch(t);if(!e.ok)throw Error(`Failed to fetch font: ${t}`);let n=await e.blob(),o=new FileReader,a=await new Promise((t,e)=>{o.onloadend=()=>{"string"==typeof o.result?t(o.result.split(",")[1]):e(Error("Failed to read font as base64"))},o.onerror=e,o.readAsDataURL(n)});r(s,a),"normal"===s&&(i=a)}catch{}else i&&r(s,i)}}(r,n),M(await async function(t,e,i){let n=(Number(t.getAttribute("width"))+0)*i,r=(Number(t.getAttribute("height"))+0)*i,s=new E.jspdf.jsPDF(r>n?"p":"l","pt",[n,r]);[].forEach.call(t.querySelectorAll('*[visibility="hidden"]'),function(t){t.parentNode.removeChild(t)});let o=t.querySelectorAll("linearGradient");for(let t=0;t<o.length;t++){let e=o[t].querySelectorAll("stop"),i=0;for(;i<e.length&&"0"===e[i].getAttribute("offset")&&"0"===e[i+1].getAttribute("offset");)e[i].remove(),i++}return[].forEach.call(t.querySelectorAll("tspan"),t=>{"​"===t.textContent&&(t.textContent=" ",t.setAttribute("dx",-5))}),await s.svg(t,{x:0,y:0,width:n,height:r,removeInvalid:!0}),s.output("datauristring")}(r,0,e),i))}(e,r,n,i?.pdfFont))}catch(t){await(n?.fallbackToServer(i,t))}}}),!L(T,"OfflineExporting"))return;O(v().prototype,{exportChartLocal:async function(t,e){await(this.exporting?.exportChart(t,e))}}),S(w);let e=k().exporting?.buttons?.contextButton?.menuItems;e&&e.push("downloadPDF")},t.downloadSVGLocal=async function(t,e){await h().Exporting.prototype.downloadSVG.call(void 0,t,e)}}(n||(n={}));let N=n,I=h();I.dataURLtoBlob=I.dataURLtoBlob||f.dataURLtoBlob,I.downloadSVGLocal=N.downloadSVGLocal,I.downloadURL=I.downloadURL||f.downloadURL,N.compose(I.Exporting);let D=h();return a.default})(),t.exports=n(i._Highcharts,i._Highcharts.AST,i._Highcharts.Chart)}),ji(function(t,e){var i,n;i="undefined"==typeof window?Hi:window,n=t=>(()=>{var e={944:e=>{e.exports=t}},i={};function n(t){var r=i[t];if(void 0!==r)return r.exports;var s=i[t]={exports:{}};return e[t](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r={};n.d(r,{default:()=>O});var s=n(944),o=n.n(s);let{animObject:a}=o(),{getOptions:l}=o(),{addEvent:h,defined:c,erase:d,extend:u,merge:p,pick:g,removeEvent:m,wrap:f}=o(),y=function(){let t=[],e=l().colors,i=0;for(let n of["M 0 0 L 5 5 M 4.5 -0.5 L 5.5 0.5 M -0.5 4.5 L 0.5 5.5","M 0 5 L 5 0 M -0.5 0.5 L 0.5 -0.5 M 4.5 5.5 L 5.5 4.5","M 2 0 L 2 5 M 4 0 L 4 5","M 0 2 L 5 2 M 0 4 L 5 4","M 0 1.5 L 2.5 1.5 L 2.5 0 M 2.5 5 L 2.5 3.5 L 5 3.5"])t.push({path:n,color:e[i++],width:5,height:5,patternTransform:"scale(1.4 1.4)"});for(let n of(i=5,["M 0 0 L 5 10 L 10 0","M 3 3 L 8 3 L 8 8 L 3 8 Z","M 5 5 m -4 0 a 4 4 0 1 1 8 0 a 4 4 0 1 1 -8 0","M 0 0 L 10 10 M 9 -1 L 11 1 M -1 9 L 1 11","M 0 10 L 10 0 M -1 1 L 1 -1 M 9 11 L 11 9"]))t.push({path:n,color:e[i],width:10,height:10}),i+=5;return t}();function x(t,e){let i,n=JSON.stringify(t),r=n.length||0,s=0,o=0;if(e){i=Math.max(Math.floor(r/500),1);for(let t=0;t<r;t+=i)s+=n.charCodeAt(t);s&=s}for(;o<r;++o)s=(s<<5)-s+n.charCodeAt(o),s&=s;return s.toString(16).replace("-","1")}function b(){if(this.renderer&&(this.renderer.defIds||[]).filter(t=>t&&t.indexOf&&0===t.indexOf("highcharts-pattern-")).length){for(let t of this.series)if(t.visible)for(let e of t.points){let t=e.options&&e.options.color;t&&t.pattern&&(t.pattern._width="defer",t.pattern._height="defer")}this.redraw(!1)}}function v(){let t={},e=this.renderer,i=(e.defIds||[]).filter(t=>t.indexOf&&0===t.indexOf("highcharts-pattern-"));if(i.length)for(let n of([].forEach.call(this.renderTo.querySelectorAll('[color^="url("], [fill^="url("], [stroke^="url("]'),i=>{let n=i.getAttribute("fill")||i.getAttribute("color")||i.getAttribute("stroke");n&&(t[n.replace(e.url,"").replace("url(#","").replace(")","")]=!0)}),i))!t[n]&&(d(e.defIds,n),e.patternElements[n]&&(e.patternElements[n].destroy(),delete e.patternElements[n]))}function w(){let t=this.options.color;t&&t.pattern&&("string"==typeof t.pattern.path&&(t.pattern.path={d:t.pattern.path}),this.color=this.options.color=p(this.series.options.color,t))}function k(t){let e=t.args[0],i=t.args[1],n=t.args[2],r=this.chartIndex||0,s=e.pattern,o="#333333";if(void 0!==e.patternIndex&&y&&(s=y[e.patternIndex]),!s)return!0;if(s.image||"string"==typeof s.path||s.path&&s.path.d){let t=n.parentNode&&n.parentNode.getAttribute("class");t=t&&t.indexOf("highcharts-legend")>-1,("defer"===s._width||"defer"===s._height)&&M.call({graphic:{element:n}},s),(t||!s.id)&&((s=p({},s)).id="highcharts-pattern-"+r+"-"+x(s)+x(s,!0)),this.addPattern(s,!this.forExport&&g(s.animation,this.globalAnimation,{duration:100})),o=`url(${this.url}#${s.id+(this.forExport?"-export":"")})`}else o=s.color||o;return n.setAttribute(i,o),e.toString=function(){return o},!1}function S(){let t=this.chart.isResizing;if(this.isDirtyData||t||!this.chart.hasRendered)for(let e of this.points){let i=e.options&&e.options.color;i&&i.pattern&&(!t||e.shapeArgs&&e.shapeArgs.width&&e.shapeArgs.height?e.calculatePatternDimensions(i.pattern):(i.pattern._width="defer",i.pattern._height="defer"))}}function M(t){if(t.width&&t.height)return;let e=this.graphic&&(this.graphic.getBBox&&this.graphic.getBBox(!0)||this.graphic.element&&this.graphic.element.getBBox())||{},i=this.shapeArgs;if(i&&(e.width=i.width||e.width,e.height=i.height||e.height,e.x=i.x||e.x,e.y=i.y||e.y),t.image){if(!e.width||!e.height){t._width="defer",t._height="defer";let e=this.series.chart.mapView&&this.series.chart.mapView.getSVGTransform().scaleY;return void(c(e)&&e<0&&(t._inverted=!0))}t.aspectRatio&&(e.aspectRatio=e.width/e.height,t.aspectRatio>e.aspectRatio?e.aspectWidth=e.height*t.aspectRatio:e.aspectHeight=e.width/t.aspectRatio),t._width=t.width||Math.ceil(e.aspectWidth||e.width),t._height=t.height||Math.ceil(e.aspectHeight||e.height)}t.width||(t._x=t.x||0,t._x+=e.x-Math.round(e.aspectWidth?Math.abs(e.aspectWidth-e.width)/2:0)),t.height||(t._y=t.y||0,t._y+=e.y-Math.round(e.aspectHeight?Math.abs(e.aspectHeight-e.height)/2:0))}function C(t,e){let i,n,r=g(e,!0),s=a(r),l=t.color||"#333333",h=t.height||("number"==typeof t._height?t._height:0)||32,c=t.width||("number"==typeof t._width?t._width:0)||32,d=t.id;if(!d&&(this.idCounter=this.idCounter||0,d="highcharts-pattern-"+this.idCounter+"-"+(this.chartIndex||0),++this.idCounter),this.forExport&&(d+="-export"),this.defIds=this.defIds||[],this.defIds.indexOf(d)>-1)return;this.defIds.push(d);let u={id:d,patternUnits:"userSpaceOnUse",patternContentUnits:t.patternContentUnits||"userSpaceOnUse",width:c,height:h,x:t._x||t.x||0,y:t._y||t.y||0};t._inverted&&(u.patternTransform="scale(1, -1)",t.patternTransform&&(t.patternTransform+=" scale(1, -1)")),t.patternTransform&&(u.patternTransform=t.patternTransform);let p=this.createElement("pattern").attr(u).add(this.defs);if(p.id=d,t.path){let e;n=o().isObject(t.path)?t.path:{d:t.path},t.backgroundColor&&(e=t.backgroundColor,this.rect(0,0,c,h).attr({fill:e}).add(p)),i={d:n.d},this.styledMode||(i.stroke=n.stroke||l,i["stroke-width"]=g(n.strokeWidth,2),i.fill=n.fill||"none"),n.transform&&(i.transform=n.transform),this.createElement("path").attr(i).add(p),p.color=l}else t.image&&(r?this.image(t.image,0,0,c,h,function(){this.animate({opacity:g(t.opacity,1)},s),m(this.element,"load")}).attr({opacity:0}).add(p):this.image(t.image,0,0,c,h).add(p));return t.image&&r||void 0===t.opacity||[].forEach.call(p.element.childNodes,e=>{e.setAttribute("opacity",t.opacity)}),this.patternElements=this.patternElements||{},this.patternElements[d]=p,p}function T(t){let e=this.options.color;e&&e.pattern&&!e.pattern.color?(delete this.options.color,t.apply(this,[].slice.call(arguments,1)),e.pattern.color=this.color,this.color=this.options.color=e):t.apply(this,[].slice.call(arguments,1))}function A(){if(!this.chart?.mapView)return;let t=this.chart.renderer,e=t.patternElements;t.defIds?.length&&e&&this.points.filter(function(t){return!!t.graphic&&(t.graphic.element.hasAttribute("fill")||t.graphic.element.hasAttribute("color")||t.graphic.element.hasAttribute("stroke"))&&!t.options.color?.pattern?.image&&!!t.group?.scaleX&&!!t.group?.scaleY}).map(function(e){return{id:(e.graphic?.element.getAttribute("fill")||e.graphic?.element.getAttribute("color")||e.graphic?.element.getAttribute("stroke")||"").replace(t.url,"").replace("url(#","").replace(")",""),x:e.group?.scaleX||1,y:e.group?.scaleY||1}}).filter(function(t,e,i){return""!==t.id&&-1!==t.id.indexOf("highcharts-pattern-")&&!i.some(function(i,n){return i.id===t.id&&n<e})}).forEach(function(t){let i=t.id;e[i].scaleX=1/t.x,e[i].scaleY=1/t.y,e[i].updateTransform("patternTransform")})}let E={compose:function(t,e,i){let n=e.prototype.pointClass,r=n.prototype;r.calculatePatternDimensions||(h(t,"endResize",b),h(t,"redraw",v),u(r,{calculatePatternDimensions:M}),h(n,"afterInit",w),h(e,"render",S),f(e.prototype,"getColor",T),h(e,"afterRender",A),h(e,"mapZoomComplete",A),u(i.prototype,{addPattern:C}),h(i,"complexColor",k))},patterns:y},P=o();P.patterns=E.patterns,E.compose(P.Chart,P.Series,P.SVGRenderer);let O=o();return r.default})(),t.exports=n(i._Highcharts)});var Jn,Qn,tr,er,ir,nr,rr,sr,or,ar,lr,hr,cr=["Bars","Times","Download","ExternalLink","Copy"],dr=function(e){var i=e.icon,n=e.inheritColor,r=void 0!==n&&n;switch(i){case"Bars":return t.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"39.91mm",height:"29.92mm",viewBox:"0 0 113.12 84.82"},t.createElement("path",m({},r?{}:{style:{fill:"#1A3061"}},{d:"m56.51,14.13c-16.33,0-32.67.01-49,0-5.37,0-8.89-4.83-6.99-9.59C1.63,1.76,3.77.26,6.76.01c.22-.02.44,0,.66,0,32.74,0,65.49,0,98.23,0,4.3,0,7.45,2.99,7.47,7.01.02,4.11-3.15,7.1-7.6,7.11-16.33.01-32.67,0-49,0Z"})),t.createElement("path",m({},r?{}:{style:{fill:"#1A3061"}},{d:"m56.55,49.47c-16.41,0-32.82.01-49.22,0-3.78,0-6.77-2.56-7.26-6.09-.49-3.53,1.78-6.9,5.35-7.81.77-.2,1.6-.21,2.4-.21,32.52,0,65.04-.01,97.57,0,4.51,0,7.69,2.89,7.74,6.97.04,4.19-3.16,7.14-7.79,7.15-16.26,0-32.52,0-48.78,0Z"})),t.createElement("path",m({},r?{}:{style:{fill:"#1A3061"}},{d:"m56.43,84.82c-16.33,0-32.67,0-49,0-3.68,0-6.45-2.17-7.25-5.56-.73-3.09.92-6.54,3.92-7.84,1.04-.45,2.27-.69,3.41-.69,32.74-.04,65.49-.03,98.23-.02,4.27,0,7.41,3.06,7.39,7.09-.02,4.02-3.17,7.02-7.47,7.02-16.41.02-32.82,0-49.22,0Z"})));case"Times":return t.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"26.97mm",height:"26.97mm",viewBox:"0 0 76.44 76.44"},t.createElement("path",m({},r?{}:{style:{fill:"#1A3061"}},{d:"m0,38.09C.02,17.02,17.22-.04,38.39,0c21.08.04,38.09,17.21,38.05,38.42-.04,21-17.21,38.04-38.31,38.01C17.04,76.41-.02,59.26,0,38.09ZM38.25,5.95c-17.86-.02-32.27,14.33-32.31,32.17-.04,17.94,14.33,32.35,32.25,32.37,17.87.02,32.23-14.28,32.3-32.17.07-17.92-14.31-32.35-32.24-32.37Z"})),t.createElement("path",m({},r?{}:{style:{fill:"#1A3061"}},{d:"m38.4,34c2.9-2.94,5.58-5.67,8.27-8.39.93-.94,2.13-1.38,3.25-.73.8.47,1.7,1.46,1.78,2.29.09.92-.48,2.12-1.14,2.85-2.18,2.38-4.54,4.6-6.83,6.89-.35.35-.68.71-1.07,1.12,2.67,2.68,5.35,5.26,7.88,7.99.67.72,1.28,1.95,1.16,2.84-.12.88-1.05,1.9-1.89,2.37-1.03.57-2.22.16-3.12-.75-2.31-2.33-4.65-4.63-6.96-6.97-.38-.39-.66-.87-1.36-1.8-.71.95-1.11,1.64-1.65,2.19-2.12,2.17-4.27,4.32-6.44,6.44-1.41,1.38-3.16,1.46-4.38.28-1.26-1.22-1.2-3.02.24-4.48,2.27-2.31,4.56-4.58,6.87-6.85.38-.38.88-.64,1.42-1.03-2.89-2.89-5.5-5.47-8.07-8.1-.53-.55-1.05-1.24-1.24-1.96-.35-1.32.14-2.48,1.38-3.16,1.28-.71,2.53-.5,3.56.5,2.32,2.26,4.59,4.55,6.88,6.84.46.46.86.96,1.47,1.64Z"})));case"Download":return t.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"33.64mm",height:"33.64mm",viewBox:"0 0 95.35 95.37"},t.createElement("path",m({},r?{}:{style:{fill:"#1A3061"}},{d:"m41.74,51.99c0-1.25,0-1.92,0-2.59,0-14.4,0-28.79,0-43.19,0-3.27,2.24-5.84,5.28-6.17,3.01-.33,5.8,1.65,6.48,4.66.16.71.14,1.48.14,2.22,0,14.15,0,28.29,0,42.44v2.34c.53-.42.91-.67,1.23-.98,3.12-3.11,6.23-6.23,9.35-9.34,2.74-2.72,6.26-2.87,8.75-.4,2.49,2.46,2.39,6.06-.3,8.75-6.79,6.81-13.59,13.61-20.4,20.4-2.92,2.91-6.25,2.92-9.15.03-6.81-6.79-13.61-13.59-20.4-20.4-2.71-2.72-2.84-6.26-.35-8.75,2.48-2.49,6.03-2.36,8.75.34,3.42,3.4,6.82,6.83,10.61,10.64Z"})),t.createElement("path",m({},r?{}:{style:{fill:"#1A3061"}},{d:"m47.67,95.37c-13.83,0-27.66,0-41.49,0-3.18,0-5.7-2.16-6.12-5.13-.42-2.98,1.5-5.82,4.51-6.59.65-.17,1.35-.18,2.02-.18,27.41,0,54.83,0,82.24,0,3.8,0,6.48,2.43,6.52,5.88.04,3.53-2.66,6.02-6.56,6.03-13.71,0-27.41,0-41.12,0Z"})));case"ExternalLink":return t.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"88.84mm",height:"79.62mm",viewBox:"0 0 251.84 225.69"},t.createElement("path",m({},r?{}:{style:{fill:"#1A3061"}},{d:"m125.89,225.68c-22.84,0-45.67.03-68.51,0C23.18,225.63.03,202.4.01,168.14,0,131.14,0,94.13.01,57.13.04,23.53,23.35.14,56.85.1c23.67-.03,21.34.02,45.01-.03,4.75,0,8.96,1.04,11.87,5.09,2.64,3.67,3.08,7.7,1.25,11.83-2.01,4.53-5.59,7-10.57,7.06-9,.11-12,.07-21,.07-15.84,0-11.67-.05-27.5.02-18.82.08-31.81,12.98-31.84,31.74-.06,38-.06,76.01,0,114.01.03,18.74,13.04,31.7,31.86,31.72,46.67.05,93.34.06,140.01,0,18.79-.02,31.71-12.99,31.79-31.8.07-17,0-14,.03-31.01.02-8.3,4.75-13.75,11.83-13.81,7.07-.06,12.12,5.48,12.16,13.61.07,17.5.18,15.01-.02,32.51-.34,30.71-23.87,54.02-54.81,54.56h-71.01l-.02.02Z"})),t.createElement("path",m({},r?{}:{style:{fill:"#1A3061"}},{d:"m207.19,24.08c-6.95,0-23.9.04-30.85,0-8.12-.06-13.27-4.55-13.44-11.6-.17-7.19,5.18-12.33,13.32-12.38,17.33-.11,44.67-.12,62,0,8.48.06,13.45,4.99,13.5,13.37.12,16.83.12,43.67,0,60.5-.06,7.69-5.4,13.04-12.34,12.87-6.83-.17-11.53-5.35-11.61-12.97-.08-7.63-.02-25.26-.02-34.12-2.09,1.8-3.42,2.88-4.68,4.03-26.76,24.57-53.52,49.15-80.28,73.72-1.6,1.47-3.13,3-4.82,4.36-5.57,4.47-12.54,3.94-16.98-1.2-4.31-4.98-4.06-11.78,1.06-16.6,10.92-10.28,22.03-20.36,33.07-30.51,16.56-15.23,33.13-30.45,49.72-45.65.97-.89,2.15-1.56,3.23-2.33-.29-.5-.58-.99-.87-1.49h0Z"})));case"Copy":return t.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"31.19mm",height:"31.21mm",viewBox:"0 0 88.41 88.48"},t.createElement("path",m({},r?{}:{style:{fill:"#1A3061"}},{d:"m20.67,54.61c0-7.55,0-15.1,0-22.65,0-6.79,4.38-11.2,11.13-11.21,15.16-.01,30.33-.01,45.49,0,6.75,0,11.12,4.42,11.12,11.22,0,15.1,0,30.2,0,45.3,0,6.79-4.39,11.21-11.13,11.21-15.16,0-30.33,0-45.49,0-6.66,0-11.1-4.41-11.12-11.03-.02-7.61,0-15.22,0-22.83Zm60.78.1c0-7.67,0-15.34,0-23.01,0-2.72-1.23-3.98-3.89-3.99-15.34,0-30.68,0-46.02,0-2.67,0-3.89,1.26-3.89,3.98,0,15.28,0,30.55,0,45.83,0,2.79,1.23,3.99,4.07,3.99,15.22,0,30.44,0,45.65,0,2.91,0,4.08-1.21,4.08-4.17,0-7.55,0-15.09,0-22.64Z"})),t.createElement("path",m({},r?{}:{style:{fill:"#1A3061"}},{d:"m13.66,60.85v6.64C6.35,69.22.02,64.29.01,56.9c-.02-15.34-.02-30.69,0-46.03C.02,4.48,4.36.11,10.73.1c15.1-.02,30.21.19,45.3-.1,6.89-.13,12.81,4.89,11.49,13.58h-6.74c0-.95.03-1.91,0-2.86-.08-2.34-1.35-3.69-3.66-3.69-15.53-.02-31.06-.02-46.59,0-2.36,0-3.58,1.27-3.58,3.7-.02,15.4-.02,30.81,0,46.21,0,2.65,1.32,3.87,4.01,3.91.85.01,1.7,0,2.71,0Z"})));default:return t.createElement("span",null,"No icon for ",i,t.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"26.97mm",height:"26.97mm",viewBox:"0 0 76.45 76.44"},t.createElement("path",m({},r?{}:{style:{fill:"#1A3061"}},{d:"m0,38.1C.02,17.02,17.22-.04,38.4,0c21.08.04,38.1,17.21,38.06,38.43-.04,21-17.21,38.05-38.32,38.02C17.04,76.42-.02,59.27,0,38.1ZM38.26,5.95c-17.86-.02-32.27,14.33-32.31,32.17-.04,17.94,14.33,32.35,32.25,32.37,17.87.02,32.23-14.28,32.3-32.17.07-17.92-14.31-32.35-32.24-32.37Z"})),t.createElement("path",m({},r?{}:{style:{fill:"#1A3061"}},{d:"m34.1,43.95c-.12-.12-.18-.26-.18-.43v-1.62c0-1.68.43-3.04,1.29-4.07.86-1.03,2.1-2.11,3.71-3.26,1.31-.91,2.29-1.72,2.93-2.42s.96-1.57.96-2.58c0-1.08-.4-1.95-1.21-2.6-.81-.66-1.87-.99-3.18-.99-1.42,0-2.55.35-3.41,1.06-.86.71-1.29,1.62-1.29,2.73v.81c0,.37-.2.56-.61.56l-5.91-.25c-.17,0-.31-.06-.43-.18-.12-.12-.18-.26-.18-.43v-.5c0-2.02.51-3.81,1.52-5.38,1.01-1.57,2.42-2.78,4.22-3.64,1.8-.86,3.88-1.29,6.24-1.29s4.3.41,6.04,1.24c1.73.83,3.07,1.98,4.02,3.46.94,1.48,1.41,3.2,1.41,5.15,0,1.48-.26,2.75-.78,3.81-.52,1.06-1.15,1.93-1.89,2.6-.74.67-1.68,1.42-2.83,2.22-1.21.84-2.11,1.57-2.68,2.17s-.86,1.35-.86,2.22v1.16c0,.17-.06.31-.18.43-.12.12-.26.18-.43.18h-5.86c-.17,0-.31-.06-.43-.18Zm.3,10.36c-.76-.76-1.14-1.71-1.14-2.85s.37-2.09,1.11-2.83,1.7-1.11,2.88-1.11,2.13.36,2.85,1.09c.72.72,1.09,1.68,1.09,2.85s-.37,2.1-1.11,2.85c-.74.76-1.68,1.14-2.83,1.14s-2.1-.38-2.85-1.14Z"}))))}},ur=li(s(function(e,i){return t.createElement("button",m({ref:i},e))}))(Jn||(Jn=y(['\n background-color: transparent;\n text-align: left;\n border: none;\n margin: 0;\n padding: 0.5rem 0.7rem 0.5rem 0.7rem;\n cursor: pointer;\n display: inline;\n font-family: "Barlow Semi Condensed", Verdana, sans-serif;\n min-width: 14rem;\n color: #1a3061;\n min-height: 3rem;\n font-size: 0.75rem;\n :hover {\n text-decoration: underline;\n }\n']))),pr=li(s(function(e,i){return t.createElement("a",m({ref:i},e,{title:e.children?e.children.toString():""}))}))(Qn||(Qn=y(['\n text-decoration: none;\n display: flex;\n align-items: center;\n padding: 0.5rem 0.7rem;\n min-width: 14rem;\n font-family: "Barlow Semi Condensed", Verdana, sans-serif;\n color: #1a3061;\n min-height: 3rem;\n font-size: 0.75rem;\n :hover {\n text-decoration: underline;\n }\n']))),gr=li.li(tr||(tr=y(["\n border-top-right-radius: ",";\n border-top-left-radius: ",";\n border-bottom-right-radius: ",";\n border-bottom-left-radius: ",";\n border-bottom: ",";\n :hover {\n background-color: #f2f2f2;\n }\n"])),function(t){return t.$isFirst?"18px":"0px"},function(t){return t.$isFirst?"18px":"0px"},function(t){return t.$isLast?"18px":"0px"},function(t){return t.$isLast?"18px":"0px"},function(t){return t.$separator?"1px solid #bdbdbd":"0px"}),mr=li.div(er||(er=y(["\n height: 100%;\n width: 100%;\n display: flex;\n flex-direction: row;\n align-content: center;\n justify-content: left;\n align-items: center;\n justify-items: center;\n"]))),fr=li.div(ir||(ir=y(["\n height: 1rem;\n width: 1rem;\n svg {\n height: 1rem;\n width: 1rem;\n fill: #1a3061;\n }\n"]))),yr=li.span(nr||(nr=y(["\n margin-left: ",";\n margin-right: ",";\n"])),function(t){return t.$hasPrefixIcon?"0.5rem":"0px"},function(t){return t.$hasSuffixIcon?"0.5rem":"0px"}),xr=li.span(rr||(rr=y(["\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n"]))),br=s(function(e,i){var n,r,s=e.text,o=e.onClick,a=e.url,l=e.openNewTab,h=e.isExternal,c=e.prefixIcon,d=e.suffixIcon,u=e.locale,p=e.idPrefix,g=e.bottomSeparator,m=void 0!==g&&g,f=e.isFirst,y=void 0!==f&&f,x=e.isLast,b=void 0!==x&&x,v=e.tabIndex,w=void 0===v?-1:v,k=e.index,S=void 0===k?-1:k;c&&(n="string"==typeof c&&cr.includes(c)?t.createElement(dr,{inheritColor:!0,icon:c}):c),d&&(r="string"==typeof d&&cr.includes(d)?t.createElement(dr,{inheritColor:!0,icon:d}):c);var M=t.createElement(mr,null,n&&t.createElement(fr,null,n),t.createElement(yr,{$hasPrefixIcon:!!c,$hasSuffixIcon:!!d||h},s),d&&t.createElement(fr,null,r),h&&t.createElement(t.Fragment,null,t.createElement(xr,null,yi.externalLink[u]),t.createElement(fr,null,t.createElement(dr,{inheritColor:!0,icon:"ExternalLink"}))));return a?t.createElement(gr,{$isFirst:y,$isLast:b,$separator:m},t.createElement(pr,{role:"menuitem",id:p+"-menuitem-"+S,ref:i,href:a,target:l?"_blank":void 0,onKeyDown:function(t){" "===t.key&&(t.preventDefault(),t.target.click())},onClick:function(t){o&&o()},tabIndex:w},M)):o?t.createElement(gr,{$isFirst:y,$isLast:b,$separator:m},t.createElement(ur,{role:"menuitem",id:p+"-menuitem-"+S,ref:i,onClick:o,tabIndex:w},M)):t.createElement(t.Fragment,null)}),vr=li.div(sr||(sr=y(["\n width: 2.5rem;\n height: 2.5rem;\n"]))),wr=li.button(or||(or=y(["\n width: 100%;\n height: 100%;\n svg {\n height: 1.5rem;\n width: 1.5rem;\n }\n background-color: transparent;\n border: none;\n cursor: pointer;\n"]))),kr=li.div(ar||(ar=y(["\n width: 100%;\n height: 0;\n position: relative;\n"]))),Sr=li.div(lr||(lr=y(["\n display: flex;\n flex-flow: column;\n position: absolute;\n background-color: #fff;\n border-radius: 18px;\n top: 0.2rem;\n right: 0.2rem;\n border: 1px solid #bdbdbd;\n"]))),Mr=li.ul(hr||(hr=y(["\n list-style-type: none;\n margin: 0;\n padding: 0;\n"])));function Cr(t){var e,i,n=600,r=t.chart.chartWidth,s=t.chart.chartHeight,o=Math.max(.5,Math.min(2,r/s));return o<1?(e=(i=Math.max(n,Math.min(3e3,s)))*o)<n&&(i=(e=n)/o):(i=(e=Math.max(n,Math.min(3e3,r)))/o)<n&&(e=(i=n)*o),{finalWidth:e,finalHeight:i}}var Tr=function(t,e){return-1!=e&&e===t?0:-1},Ar=function(e){var i=e.viewData,n=e.currentChartRef,r=e.tableToggle,s=e.menuItemDefinitions,l=e.locale,h=e.menuIconInheritColor,c=void 0!==h&&h,d=e.toggleAccessibilityMode,u=e.accessibilityMode,p=t.useState(!1),g=p[0],m=p[1],f=t.useState(-1),y=f[0],x=f[1],b=o(),v=t.useRef(new Map),w=t.useRef(null),k=function(t){w.current&&g&&!w.current.contains(t.target)&&N(!1)};t.useEffect(function(){I()},[y]);var S=function(t){return function(e){v.current.set(t,e)}};document.addEventListener("mousedown",k);var M=Vn(i,l),C=Kn(i,l),T=null==s?void 0:s.map(function(e,i){return"onClick"in e?t.createElement(br,{tabIndex:Tr(i,y),isFirst:0===i,index:i,bottomSeparator:i+1===s.length,locale:l,prefixIcon:e.prefixIcon,suffixIcon:e.suffixIcon,key:"customfmenuitem-"+e.text,text:e.text,onClick:function(){return L(e.onClick)},ref:S(i),idPrefix:b}):"url"in e?t.createElement(br,{tabIndex:Tr(i,y),isFirst:0===i,index:i,bottomSeparator:i+1===s.length,locale:l,prefixIcon:e.prefixIcon,suffixIcon:e.suffixIcon,isExternal:e.isExternal,key:"customlmenuitem-"+e.text,text:""+e.text,url:e.url,openNewTab:e.openNewTab,onClick:function(){return L()},ref:S(i),idPrefix:b}):void 0}),A=function(){var e=[],o=s?s.length:0;return e.push(t.createElement(br,{index:o,isFirst:!s,locale:l,prefixIcon:"Download",text:C.text,onClick:function(){return L(C.onClick)},tabIndex:Tr(o,y),ref:S(o),key:"xlsx-menu-item",idPrefix:b})),o++,e.push(t.createElement(br,{index:o,isLast:!n,bottomSeparator:!!n,locale:l,prefixIcon:"Download",text:M.text,onClick:function(){return L(M.onClick)},tabIndex:Tr(o,y),ref:S(o),key:"csv-menu-item",idPrefix:b})),n&&(o++,e.push(t.createElement(br,{index:o,locale:l,prefixIcon:"Download",text:yi.downloadSVG[l],onClick:function(){return L(function(){return n.chart.exporting.exportChart({filename:""+Gn(i.tableReferenceName),type:"image/svg+xml",sourceWidth:Cr(n).finalWidth,sourceHeight:Cr(n).finalHeight,scale:1},{})})},tabIndex:Tr(o,y),ref:S(o),key:"svg-menu-item",idPrefix:b})),o++,e.push(t.createElement(br,{index:o,isLast:!r,bottomSeparator:!!r,locale:l,prefixIcon:"Download",text:yi.downloadPNG[l],onClick:function(){return L(function(){return n.chart.exporting.exportChart({filename:""+Gn(i.tableReferenceName),sourceWidth:Cr(n).finalWidth,sourceHeight:Cr(n).finalHeight,scale:1},{})})},tabIndex:Tr(o,y),ref:S(o),key:"png-menu-item",idPrefix:b}))),D&&(o++,e.push(t.createElement(br,{index:o,isFirst:!1,locale:l,text:u?yi.toggleAccessibilityModeOff[l]:yi.toggleAccessibilityModeOn[l],onClick:function(){return L(d)},tabIndex:Tr(o,y),ref:S(o),key:"accessibility-mode-toggle",idPrefix:b}))),r&&(o++,e.push(t.createElement(br,{index:o,isLast:!0,locale:l,text:r.tableMode?yi.toggleTableModeOffText[l]:yi.toggleTableModeOnText[l],onClick:function(){return L(r.toggleHandler)},tabIndex:Tr(o,y),ref:S(o),key:"table-toggle",idPrefix:b}))),e};a(function(){return x(g?0:-1),document.addEventListener("mousedown",k),document.addEventListener("keydown",P),function(){document.removeEventListener("mousedown",k),document.removeEventListener("keydown",P)}},[g]);var E=function(){return(s?s.length:0)+A().length-1},P=function(t){("Escape"===t.key||"Tab"===t.key&&g)&&N(!1,"Escape"===t.key),"ArrowDown"===t.key&&g&&(t.preventDefault(),x(function(t){var e=t+1;return e>E()?0:e})),"ArrowUp"===t.key&&g&&(t.preventDefault(),x(function(t){var e=t-1,i=E();return e<0?i:e}))},O=t.useRef(null),L=function(t){N(!1,!0),t&&t()},N=function(t,e){var i;void 0===e&&(e=!1),m(t),!t&&e&&(null==(i=O.current)||i.focus())},I=function(){var t;-1!==y&&v.current.has(y)&&(null==(t=v.current.get(y))||t.focus())},D=!!r&&!r.tableMode&&i.visualizationSettings.visualizationType!=ci.ScatterPlot;return t.createElement(vr,{ref:w},t.createElement(wr,{ref:O,"aria-label":""+yi.chartMenuLabel[l],"aria-expanded":g,onClick:function(){N(!g)},"aria-haspopup":"menu","aria-controls":b+"-menu"},t.createElement(dr,{inheritColor:c,icon:g?"Times":"Bars"})),t.createElement(kr,null,g&&t.createElement(Sr,null,t.createElement(Mr,{id:b+"-menu",role:"menu","aria-label":""+yi.chartMenuLabel[l],"aria-orientation":"vertical","aria-activedescendant":b+"-menuitem-"+y,tabIndex:g?0:-1},s&&T,A()))))};const Er=[];for(let t=0;t<256;++t)Er.push((t+256).toString(16).slice(1));let Pr;const Or=new Uint8Array(16);var Lr,Nr,Ir,Dr,Br,Rr,Fr={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},zr=function(e){var i=e.view,n=e.locale,r=e.footnote,s=e.showTitles,o=void 0===s||s,a=e.showUnits,h=void 0===a||a,c=e.showSources,d=void 0===c||c,u=l(function(){return function(t){if(Fr.randomUUID&&!t)return Fr.randomUUID();const e=(t=t||{}).random??t.rng?.()??function(){if(!Pr){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Pr=crypto.getRandomValues.bind(crypto)}return Pr(Or)}();if(e.length<16)throw new Error("Random bytes length must be >= 16");return e[6]=15&e[6]|64,e[8]=63&e[8]|128,function(t,e=0){return(Er[t[e+0]]+Er[t[e+1]]+Er[t[e+2]]+Er[t[e+3]]+"-"+Er[t[e+4]]+Er[t[e+5]]+"-"+Er[t[e+6]]+Er[t[e+7]]+"-"+Er[t[e+8]]+Er[t[e+9]]+"-"+Er[t[e+10]]+Er[t[e+11]]+Er[t[e+12]]+Er[t[e+13]]+Er[t[e+14]]+Er[t[e+15]]).toLowerCase()}(e)}()},[i,n]);return t.useEffect(function(){var t;null==(t=document.getElementById(u))||t.replaceChildren(),Fn(i,n,o,h,d,u,r)},[i,n,o,h,d,r]),t.createElement("div",{className:"tableChart",id:u})},Hr=function(e){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];var r=si.apply(void 0,b([e],i,!1)),s="sc-global-".concat(Xt(JSON.stringify(r))),o=new hi(r,s);"production"!==process.env.NODE_ENV&&Ot(s);var a=function(e){var i=Ve(),n=t.useContext(Qe),a=t.useRef(i.styleSheet.allocateGSInstance(s)).current;return"production"!==process.env.NODE_ENV&&t.Children.count(e.children)&&console.warn("The global style component ".concat(s," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&r.some(function(t){return"string"==typeof t&&-1!==t.indexOf("@import")})&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),i.styleSheet.server&&l(a,e,i.styleSheet,n,i.stylis),t.useLayoutEffect(function(){if(!i.styleSheet.server)return l(a,e,i.styleSheet,n,i.stylis),function(){return o.removeStyles(a,i.styleSheet)}},[a,e,i.styleSheet,n,i.stylis]),null};function l(t,e,i,n,r){if(o.isStatic)o.renderStyles(t,At,i,r);else{var s=x(x({},e),{theme:It(e,n,a.defaultProps)});o.renderStyles(t,s,i,r)}}return t.memo(a)}(Lr||(Lr=y(["\n /* @font-face {\n font-family: 'Barlow Semi Condensed';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(./fonts/BarlowSemiCondensed-Medium.ttf) format('truetype');\n }\n\n @font-face {\n font-family: 'Barlow Semi Condensed';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(./fonts/BarlowSemiCondensed-Regular.ttf) format('truetype');\n } */\n\n .highcharts-root {\n font-family: \"Barlow Semi Condensed\", Verdana, sans-serif;\n }\n\n .highcharts-tooltip-container {\n z-index: 999 !important;\n }\n\n .tableChart {\n font-family: \"Barlow Semi Condensed\", Verdana, sans-serif;\n overflow-x: auto;\n padding-left: 20px;\n padding-top: 38px;\n padding-right: 20px;\n }\n\n .tableChart:has(.title) {\n padding-top: 14px;\n }\n\n .tableChart table,\n .tableChart th,\n .tableChart td {\n border: 1px solid black;\n }\n\n .tableChart .title {\n margin-top: 0;\n font-size: 1.25rem;\n font-weight: 500;\n margin-bottom: 0rem;\n width: 90%;\n display: block;\n }\n\n .tableChart .subtitle {\n font-size: 1.25rem;\n font-weight: 400;\n margin-bottom: 2rem;\n margin-top: 6px;\n width: 90%;\n display: block;\n }\n\n .tableChart .caption {\n width: 90%;\n display: block;\n caption-side: top;\n }\n\n .tableChart-caption {\n font-size: 1.25rem;\n font-weight: 500;\n color: #333;\n margin-bottom: 2rem;\n text-align: left;\n }\n"]))),jr=li.div(Nr||(Nr=y(["\n width: 100%;\n position: relative;\n font-family: 'Barlow Semi Condensed';\n"]))),Gr=function(e){return t.createElement(jr,null,t.createElement("h1",null,yi.graphCreationError[e.locale]))},Wr=/*#__PURE__*/function(t){function e(e){var i;return(i=t.call(this,e)||this).state={hasError:!1},i}var i,n;n=t,(i=e).prototype=Object.create(n.prototype),i.prototype.constructor=i,f(i,n),e.getDerivedStateFromError=function(){return{hasError:!0}};var r=e.prototype;return r.componentDidCatch=function(t,e){console.error(t,e.componentStack)},r.render=function(){return this.state.hasError?this.props.fallback:this.props.children},e}(h),Vr=li.div(Ir||(Ir=y(["\n width: 100%;\n position: relative;\n"]))),Xr=li.div(Dr||(Dr=y(["\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n"]))),Ur=li.div(Br||(Br=y(["\n display: ",";\n"])),function(t){return t.$tableMode?"none":"block"}),Yr=li.div(Rr||(Rr=y(["\n display: ",";\n"])),function(t){return t.$tableMode?"block":"none"}),qr=function(e){var i,n=e.pxGraphData,r=e.footnote,s=e.menuItemDefinitions,o=e.selectedVariableCodes,a=void 0===o?null:o,h=e.showContextMenu,c=void 0===h||h,d=e.menuIconInheritColor,u=void 0!==d&&d,p=e.showTitles,g=e.showTableUnits,m=e.showTableSources,f=Pi(e.locale);i=f,"object"==typeof Wi&&(Wi.wrap(Wi.SVGRenderer.prototype,"init",function(t){t.apply(this,Array.prototype.slice.call(arguments,1)),this.box.children[0]&&/Created with Highcharts/.test(this.box.children[0].innerHTML)&&this.box.children[0].remove()}),Wi.setOptions(Bn(i)));var y,x=t.useRef(null),b=t.useState(x.current),v=b[0],w=b[1],k=t.useState(!1),S=k[0],M=k[1],C=t.useState(!1),T=C[0],A=C[1],E=t.useState(0),P=E[0],O=E[1],L=l(function(){try{return fn(n.selectableVariableCodes,n.metaData,n.visualizationSettings.defaultSelectableVariableCodes,a)}catch(t){return console.error(t),{}}},[a,n]),N=l(function(){try{return An(n,L)}catch(t){return console.error(t),null}},[L,n]);function I(){P!==window.innerWidth&&O(window.innerWidth)}window&&window.addEventListener("resize",function(){clearTimeout(y),y=setTimeout(I,100)}),t.useEffect(function(){x.current&&w(x.current)},[x.current]);try{if(N&&n.visualizationSettings.visualizationType!==ci.Table){var D=mn(f,N,{accessibilityMode:T,showTitle:null==p||p});return t.createElement(Vr,null,c&&t.createElement(Xr,null,t.createElement(Ar,{menuItemDefinitions:s,viewData:N,currentChartRef:v,locale:f,tableToggle:{tableMode:S,toggleHandler:function(){M(!S)}},menuIconInheritColor:u,accessibilityMode:T,toggleAccessibilityMode:function(){A(!T)}})),t.createElement(Ur,{$tableMode:S},t.createElement(Zn.HighchartsReact,{ref:x,immutable:!0,highcharts:Wi,options:D})),t.createElement(Yr,{$tableMode:S},t.createElement(zr,{showTitles:null==p||p,footnote:r,showUnits:!!g,showSources:null==m||m,view:N,locale:f})))}if(N&&n.visualizationSettings.visualizationType===ci.Table)return t.createElement(Vr,null,c&&t.createElement(Xr,null,t.createElement(Ar,{menuItemDefinitions:s,viewData:N,locale:f,menuIconInheritColor:u})),t.createElement(zr,{showTitles:null==p||p,footnote:r,showUnits:!!g,showSources:null==m||m,view:N,locale:f}))}catch(e){return console.error(e),t.createElement(Gr,{locale:f})}return t.createElement(Gr,{locale:f})},$r=function(e){var i=Pi(e.locale);return t.createElement(Wr,{fallback:t.createElement(Gr,{locale:i})},t.createElement(Hr,null),t.createElement(qr,m({},e)))};export{vi as AddTranslations,Ar as BurgerMenu,$r as Chart,ui as ETimeVariableInterval,di as EVariableType,ci as EVisualizationType,Wr as ErrorBoundary,Hr as GlobalStyle,dr as Icon,br as MenuItem,_n as buildMinimalXlsxBlobAsync,Cr as calculateExportDimensions,An as convertPxGrafResponseToView,mn as convertPxGraphDataToChartOptions,Ki as defaultColors,Zi as defaultFillPatterns,Bn as defaultTheme,Rn as drawChart,fn as extractSelectableVariableValues,Wn as generateCsv,Fn as renderHtmlTable,Vn as viewToDownloadCSVOption,Kn as viewToDownloadXLSOption};
1
+ import e,{useRef as t,useContext as n,useDebugValue as r,createElement as i,forwardRef as a,useId as o,useEffect as s,useMemo as l,Component as u}from"react";import*as c from"highcharts";import m from"highcharts";import d from"decimal.js";import{strToU8 as h,zip as p}from"fflate";import{HighchartsReact as f}from"highcharts-react-official";import"highcharts/modules/accessibility.js";import"highcharts/modules/exporting.js";import"highcharts/modules/offline-exporting.js";import"highcharts/modules/pattern-fill.js";function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return g(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(null,arguments)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function w(e,t){return t||(t=e.slice(0)),e.raw=t,e}var x=function(){return x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},x.apply(this,arguments)};function S(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function k(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}"function"==typeof SuppressedError&&SuppressedError;var C=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,N=/* #__PURE__ */k(function(e){return C.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),E="-ms-",M="-moz-",A="-webkit-",T="comm",P="rule",I="decl",j="@keyframes",V=Math.abs,D=String.fromCharCode,O=Object.assign;function L(e){return e.trim()}function z(e,t){return(e=t.exec(e))?e[0]:e}function R(e,t,n){return e.replace(t,n)}function q(e,t,n){return e.indexOf(t,n)}function G(e,t){return 0|e.charCodeAt(t)}function B(e,t,n){return e.slice(t,n)}function _(e){return e.length}function F(e){return e.length}function $(e,t){return t.push(e),e}function H(e,t){return e.filter(function(e){return!z(e,t)})}var W=1,U=1,Y=0,Z=0,X=0,K="";function J(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:W,column:U,length:o,return:"",siblings:s}}function Q(e,t){return O(J("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ee(e){for(;e.root;)e=Q(e.root,{children:[e]});$(e,e.siblings)}function te(){return X=Z>0?G(K,--Z):0,U--,10===X&&(U=1,W--),X}function ne(){return X=Z<Y?G(K,Z++):0,U++,10===X&&(U=1,W++),X}function re(){return G(K,Z)}function ie(){return Z}function ae(e,t){return B(K,e,t)}function oe(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function se(e){return L(ae(Z-1,ce(91===e?e+2:40===e?e+1:e)))}function le(e){for(;(X=re())&&X<33;)ne();return oe(e)>2||oe(X)>3?"":" "}function ue(e,t){for(;--t&&ne()&&!(X<48||X>102||X>57&&X<65||X>70&&X<97););return ae(e,ie()+(t<6&&32==re()&&32==ne()))}function ce(e){for(;ne();)switch(X){case e:return Z;case 34:case 39:34!==e&&39!==e&&ce(X);break;case 40:41===e&&ce(e);break;case 92:ne()}return Z}function me(e,t){for(;ne()&&e+X!==57&&(e+X!==84||47!==re()););return"/*"+ae(t,Z-1)+"*"+D(47===e?e:ne())}function de(e){for(;!oe(re());)ne();return ae(e,Z)}function he(e){return function(e){return K="",e}(pe("",null,null,null,[""],e=function(e){return W=U=1,Y=_(K=e),Z=0,[]}(e),0,[0],e))}function pe(e,t,n,r,i,a,o,s,l){for(var u=0,c=0,m=o,d=0,h=0,p=0,f=1,g=1,v=1,y=0,b="",w=i,x=a,S=r,k=b;g;)switch(p=y,y=ne()){case 40:if(108!=p&&58==G(k,m-1)){-1!=q(k+=R(se(y),"&","&\f"),"&\f",V(u?s[u-1]:0))&&(v=-1);break}case 34:case 39:case 91:k+=se(y);break;case 9:case 10:case 13:case 32:k+=le(p);break;case 92:k+=ue(ie()-1,7);continue;case 47:switch(re()){case 42:case 47:$(ge(me(ne(),ie()),t,n,l),l);break;default:k+="/"}break;case 123*f:s[u++]=_(k)*v;case 125*f:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(k=R(k,/\f/g,"")),h>0&&_(k)-m&&$(h>32?ve(k+";",r,n,m-1,l):ve(R(k," ","")+";",r,n,m-2,l),l);break;case 59:k+=";";default:if($(S=fe(k,t,n,u,c,i,s,b,w=[],x=[],m,a),a),123===y)if(0===c)pe(k,t,S,S,w,a,m,s,x);else switch(99===d&&110===G(k,3)?100:d){case 100:case 108:case 109:case 115:pe(e,S,S,r&&$(fe(e,S,S,0,0,i,s,b,i,w=[],m,x),x),i,x,m,s,r?w:x);break;default:pe(k,S,S,S,[""],x,0,s,x)}}u=c=h=0,f=v=1,b=k="",m=o;break;case 58:m=1+_(k),h=p;default:if(f<1)if(123==y)--f;else if(125==y&&0==f++&&125==te())continue;switch(k+=D(y),y*f){case 38:v=c>0?1:(k+="\f",-1);break;case 44:s[u++]=(_(k)-1)*v,v=1;break;case 64:45===re()&&(k+=se(ne())),d=re(),c=m=_(b=k+=de(ie())),y++;break;case 45:45===p&&2==_(k)&&(f=0)}}return a}function fe(e,t,n,r,i,a,o,s,l,u,c,m){for(var d=i-1,h=0===i?a:[""],p=F(h),f=0,g=0,v=0;f<r;++f)for(var y=0,b=B(e,d+1,d=V(g=o[f])),w=e;y<p;++y)(w=L(g>0?h[y]+" "+b:R(b,/&\f/g,h[y])))&&(l[v++]=w);return J(e,t,n,0===i?P:s,l,u,c,m)}function ge(e,t,n,r){return J(e,t,n,T,D(X),B(e,2,-2),0,r)}function ve(e,t,n,r,i){return J(e,t,n,I,B(e,0,r),B(e,r+1,-1),r,i)}function ye(e,t,n){switch(function(e,t){return 45^G(e,0)?(((t<<2^G(e,0))<<2^G(e,1))<<2^G(e,2))<<2^G(e,3):0}(e,t)){case 5103:return A+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return A+e+e;case 4789:return M+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return A+e+M+e+E+e+e;case 5936:switch(G(e,t+11)){case 114:return A+e+E+R(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return A+e+E+R(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return A+e+E+R(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return A+e+E+e+e;case 6165:return A+e+E+"flex-"+e+e;case 5187:return A+e+R(e,/(\w+).+(:[^]+)/,A+"box-$1$2"+E+"flex-$1$2")+e;case 5443:return A+e+E+"flex-item-"+R(e,/flex-|-self/g,"")+(z(e,/flex-|baseline/)?"":E+"grid-row-"+R(e,/flex-|-self/g,""))+e;case 4675:return A+e+E+"flex-line-pack"+R(e,/align-content|flex-|-self/g,"")+e;case 5548:return A+e+E+R(e,"shrink","negative")+e;case 5292:return A+e+E+R(e,"basis","preferred-size")+e;case 6060:return A+"box-"+R(e,"-grow","")+A+e+E+R(e,"grow","positive")+e;case 4554:return A+R(e,/([^-])(transform)/g,"$1"+A+"$2")+e;case 6187:return R(R(R(e,/(zoom-|grab)/,A+"$1"),/(image-set)/,A+"$1"),e,"")+e;case 5495:case 3959:return R(e,/(image-set\([^]*)/,A+"$1$`$1");case 4968:return R(R(e,/(.+:)(flex-)?(.*)/,A+"box-pack:$3"+E+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+A+e+e;case 4200:if(!z(e,/flex-|baseline/))return E+"grid-column-align"+B(e,t)+e;break;case 2592:case 3360:return E+R(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,z(e.props,/grid-\w+-end/)})?~q(e+(n=n[t].value),"span",0)?e:E+R(e,"-start","")+e+E+"grid-row-span:"+(~q(n,"span",0)?z(n,/\d+/):+z(n,/\d+/)-+z(e,/\d+/))+";":E+R(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return z(e.props,/grid-\w+-start/)})?e:E+R(R(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return R(e,/(.+)-inline(.+)/,A+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_(e)-1-t>6)switch(G(e,t+1)){case 109:if(45!==G(e,t+4))break;case 102:return R(e,/(.+:)(.+)-([^]+)/,"$1"+A+"$2-$3$1"+M+(108==G(e,t+3)?"$3":"$2-$3"))+e;case 115:return~q(e,"stretch",0)?ye(R(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return R(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,a,o,s){return E+n+":"+r+s+(i?E+n+"-span:"+(a?o:+o-+r)+s:"")+e});case 4949:if(121===G(e,t+6))return R(e,":",":"+A)+e;break;case 6444:switch(G(e,45===G(e,14)?18:11)){case 120:return R(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+A+(45===G(e,14)?"inline-":"")+"box$3$1"+A+"$2$3$1"+E+"$2box$3")+e;case 100:return R(e,":",":"+E)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return R(e,"scroll-","scroll-snap-")+e}return e}function be(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function we(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case I:return e.return=e.return||e.value;case T:return"";case j:return e.return=e.value+"{"+be(e.children,r)+"}";case P:if(!_(e.value=e.props.join(",")))return""}return _(n=be(e.children,r))?e.return=e.value+"{"+n+"}":""}function xe(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case I:return void(e.return=ye(e.value,e.length,n));case j:return be([Q(e,{value:R(e.value,"@","@"+A)})],r);case P:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(z(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ee(Q(e,{props:[R(t,/:(read-\w+)/,":-moz-$1")]})),ee(Q(e,{props:[t]})),O(e,{props:H(n,r)});break;case"::placeholder":ee(Q(e,{props:[R(t,/:(plac\w+)/,":"+A+"input-$1")]})),ee(Q(e,{props:[R(t,/:(plac\w+)/,":-moz-$1")]})),ee(Q(e,{props:[R(t,/:(plac\w+)/,E+"input-$1")]})),ee(Q(e,{props:[t]})),O(e,{props:H(n,r)})}return""})}}var Se={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ke="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ce="active",Ne="data-styled-version",Ee="6.1.17",Me="/*!sc*/\n",Ae="undefined"!=typeof window&&"HTMLElement"in window,Te=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),Pe={},Ie=/invalid hook call/i,je=new Set,Ve=function(e,n){if("production"!==process.env.NODE_ENV){var r=n?' with the id of "'.concat(n,'"'):"",i="The component ".concat(e).concat(r," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n",a=console.error;try{var o=!0;console.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Ie.test(e)?(o=!1,je.delete(i)):a.apply(void 0,S([e],t,!1))},t(),o&&!je.has(i)&&(console.warn(i),je.add(i))}catch(e){Ie.test(e.message)&&je.delete(i)}finally{console.error=a}}},De=Object.freeze([]),Oe=Object.freeze({});function Le(e,t,n){return void 0===n&&(n=Oe),e.theme!==n.theme&&e.theme||t||n.theme}var ze=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Re=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,qe=/(^-|-$)/g;function Ge(e){return e.replace(Re,"-").replace(qe,"")}var Be=/(a)(d)/gi,_e=function(e){return String.fromCharCode(e+(e>25?39:97))};function Fe(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=_e(t%52)+n;return(_e(t%52)+n).replace(Be,"$1-$2")}var $e,He=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},We=function(e){return He(5381,e)};function Ue(e){return Fe(We(e)>>>0)}function Ye(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function Ze(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Xe="function"==typeof Symbol&&Symbol.for,Ke=Xe?Symbol.for("react.memo"):60115,Je=Xe?Symbol.for("react.forward_ref"):60112,Qe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},et={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},tt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},nt=(($e={})[Je]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},$e[Ke]=tt,$e);function rt(e){return("type"in(t=e)&&t.type.$$typeof)===Ke?tt:"$$typeof"in e?nt[e.$$typeof]:Qe;var t}var it=Object.defineProperty,at=Object.getOwnPropertyNames,ot=Object.getOwnPropertySymbols,st=Object.getOwnPropertyDescriptor,lt=Object.getPrototypeOf,ut=Object.prototype;function ct(e,t,n){if("string"!=typeof t){if(ut){var r=lt(t);r&&r!==ut&&ct(e,r,n)}var i=at(t);ot&&(i=i.concat(ot(t)));for(var a=rt(e),o=rt(t),s=0;s<i.length;++s){var l=i[s];if(!(l in et||n&&n[l]||o&&l in o||a&&l in a)){var u=st(t,l);try{it(e,l,u)}catch(e){}}}}return e}function mt(e){return"function"==typeof e}function dt(e){return"object"==typeof e&&"styledComponentId"in e}function ht(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function pt(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function ft(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function gt(e,t,n){if(void 0===n&&(n=!1),!n&&!ft(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=gt(e[r],t[r]);else if(ft(t))for(var r in t)e[r]=gt(e[r],t[r]);return e}function vt(e,t){Object.defineProperty(e,"toString",{value:t})}var yt="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function bt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],i=1,a=e.length;i<a;i+=1)r.push(e[i]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function wt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(bt.apply(void 0,S([yt[e]],t,!1)).trim())}var xt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw wt(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=r;a<i;a++)this.groupSizes[a]=0}for(var o=this.indexOfGroup(e+1),s=(a=0,t.length);a<s;a++)this.tag.insertRule(o,t[a])&&(this.groupSizes[e]++,o++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,a=r;a<i;a++)t+="".concat(this.tag.getRule(a)).concat(Me);return t},e}(),St=1<<30,kt=new Map,Ct=new Map,Nt=1,Et=function(e){if(kt.has(e))return kt.get(e);for(;Ct.has(Nt);)Nt++;var t=Nt++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>St))throw wt(16,"".concat(t));return kt.set(e,t),Ct.set(t,e),t},Mt=function(e,t){Nt=t+1,kt.set(e,t),Ct.set(t,e)},At="style[".concat(ke,"][").concat(Ne,'="').concat(Ee,'"]'),Tt=new RegExp("^".concat(ke,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Pt=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a<o;a++)(r=i[a])&&e.registerName(t,r)},It=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Me),i=[],a=0,o=r.length;a<o;a++){var s=r[a].trim();if(s){var l=s.match(Tt);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(Mt(c,u),Pt(e,c,l[3]),e.getTag().insertRules(u,i)),i.length=0}else i.push(s)}}},jt=function(e){for(var t=document.querySelectorAll(At),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(ke)!==Ce&&(It(e,i),i.parentNode&&i.parentNode.removeChild(i))}},Vt=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){var t=Array.from(e.querySelectorAll("style[".concat(ke,"]")));return t[t.length-1]}(n),a=void 0!==i?i.nextSibling:null;r.setAttribute(ke,Ce),r.setAttribute(Ne,Ee);var o="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},Dt=function(){function e(e){this.element=Vt(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}throw wt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Ot=function(){function e(e){this.element=Vt(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Lt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),zt=Ae,Rt={isServer:!Ae,useCSSOMInjection:!Te},qt=function(){function e(e,t,n){void 0===e&&(e=Oe),void 0===t&&(t={});var r=this;this.options=x(x({},Rt),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Ae&&zt&&(zt=!1,jt(this)),vt(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=function(n){var i=function(e){return Ct.get(e)}(n);if(void 0===i)return"continue";var a=e.names.get(i),o=t.getGroup(n);if(void 0===a||!a.size||0===o.length)return"continue";var s="".concat(ke,".g").concat(n,'[id="').concat(i,'"]'),l="";void 0!==a&&a.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),r+="".concat(o).concat(s,'{content:"').concat(l,'"}').concat(Me)},a=0;a<n;a++)i(a);return r}(r)})}return e.registerId=function(e){return Et(e)},e.prototype.rehydrate=function(){!this.server&&Ae&&jt(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(x(x({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Lt(n):t?new Dt(n):new Ot(n)}(this.options),new xt(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Et(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Et(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Et(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Gt=/&/g,Bt=/^\s*\/\/.*$/gm;function _t(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=_t(e.children,t)),e})}var Ft=new qt,$t=function(){var e,t,n,r=Oe.options,i=void 0===r?Oe:r,a=Oe.plugins,o=void 0===a?De:a,s=function(n,r,i){return i.startsWith(t)&&i.endsWith(t)&&i.replaceAll(t,"").length>0?".".concat(e):n},l=o.slice();l.push(function(e){e.type===P&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Gt,t).replace(n,s))}),i.prefix&&l.push(xe),l.push(we);var u=function(r,a,o,s){void 0===a&&(a=""),void 0===o&&(o=""),void 0===s&&(s="&"),e=s,t=a,n=new RegExp("\\".concat(t,"\\b"),"g");var u=r.replace(Bt,""),c=he(o||a?"".concat(o," ").concat(a," { ").concat(u," }"):u);i.namespace&&(c=_t(c,i.namespace));var m,d=[];return be(c,function(e){var t=F(e);return function(n,r,i,a){for(var o="",s=0;s<t;s++)o+=e[s](n,r,i,a)||"";return o}}(l.concat((m=function(e){return d.push(e)},function(e){e.root||(e=e.return)&&m(e)})))),d};return u.hash=o.length?o.reduce(function(e,t){return t.name||wt(15),He(e,t.name)},5381).toString():"",u}(),Ht=e.createContext({shouldForwardProp:void 0,styleSheet:Ft,stylis:$t});function Wt(){return n(Ht)}e.createContext(void 0);var Ut=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=$t);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,vt(this,function(){throw wt(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=$t),this.name+e.hash},e}(),Yt=function(e){return e>="A"&&e<="Z"};function Zt(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Yt(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Xt=function(e){return null==e||!1===e||""===e},Kt=function(e){var t,n,r=[];for(var i in e){var a=e[i];e.hasOwnProperty(i)&&!Xt(a)&&(Array.isArray(a)&&a.isCss||mt(a)?r.push("".concat(Zt(i),":"),a,";"):ft(a)?r.push.apply(r,S(S(["".concat(i," {")],Kt(a),!1),["}"],!1)):r.push("".concat(Zt(i),": ").concat((t=i,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Se||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Jt(e,t,n,r){if(Xt(e))return[];if(dt(e))return[".".concat(e.styledComponentId)];if(mt(e)){if(!mt(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var i=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof i||Array.isArray(i)||i instanceof Ut||ft(i)||null===i||console.error("".concat(Ye(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Jt(i,t,n,r)}var a;return e instanceof Ut?n?(e.inject(n,r),[e.getName(r)]):[e]:ft(e)?Kt(e):Array.isArray(e)?Array.prototype.concat.apply(De,e.map(function(e){return Jt(e,t,n,r)})):[e.toString()]}function Qt(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(mt(n)&&!dt(n))return!1}return!0}var en=We(Ee),tn=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Qt(e),this.componentId=t,this.baseHash=He(en,t),this.baseStyle=n,qt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=ht(r,this.staticRulesId);else{var i=pt(Jt(this.rules,e,t,n)),a=Fe(He(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,a)){var o=n(i,".".concat(a),void 0,this.componentId);t.insertRules(this.componentId,a,o)}r=ht(r,a),this.staticRulesId=a}else{for(var s=He(this.baseHash,n.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c,"production"!==process.env.NODE_ENV&&(s=He(s,c));else if(c){var m=pt(Jt(c,e,t,n));s=He(s,m+u),l+=m}}if(l){var d=Fe(s>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(l,".".concat(d),void 0,this.componentId)),r=ht(r,d)}}return r},e}(),nn=e.createContext(void 0),rn={},an=new Set;function on(t,n,a){var o=dt(t),s=t,l=!Ze(t),u=n.attrs,c=void 0===u?De:u,m=n.componentId,d=void 0===m?function(e,t){var n="string"!=typeof e?"sc":Ge(e);rn[n]=(rn[n]||0)+1;var r="".concat(n,"-").concat(Ue(Ee+n+rn[n]));return t?"".concat(t,"-").concat(r):r}(n.displayName,n.parentComponentId):m,h=n.displayName,p=void 0===h?function(e){return Ze(e)?"styled.".concat(e):"Styled(".concat(Ye(e),")")}(t):h,f=n.displayName&&n.componentId?"".concat(Ge(n.displayName),"-").concat(n.componentId):n.componentId||d,g=o&&s.attrs?s.attrs.concat(c).filter(Boolean):c,v=n.shouldForwardProp;if(o&&s.shouldForwardProp){var y=s.shouldForwardProp;if(n.shouldForwardProp){var b=n.shouldForwardProp;v=function(e,t){return y(e,t)&&b(e,t)}}else v=y}var w=new tn(a,f,o?s.componentStyle:void 0);function S(t,n){return function(t,n,a){var o=t.attrs,s=t.componentStyle,l=t.defaultProps,u=t.foldedComponentIds,c=t.styledComponentId,m=t.target,d=e.useContext(nn),h=Wt(),p=t.shouldForwardProp||h.shouldForwardProp;"production"!==process.env.NODE_ENV&&r(c);var f=Le(n,d,l)||Oe,g=function(e,t,n){for(var r,i=x(x({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var o=mt(r=e[a])?r(i):r;for(var s in o)i[s]="className"===s?ht(i[s],o[s]):"style"===s?x(x({},i[s]),o[s]):o[s]}return t.className&&(i.className=ht(i.className,t.className)),i}(o,n,f),v=g.as||m,y={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===f||("forwardedAs"===b?y.as=g.forwardedAs:p&&!p(b,v)||(y[b]=g[b],p||"development"!==process.env.NODE_ENV||N(b)||an.has(b)||!ze.has(v)||(an.add(b),console.warn('styled-components: it looks like an unknown prop "'.concat(b,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var w=function(e,t){var n=Wt(),i=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return"production"!==process.env.NODE_ENV&&r(i),i}(s,g);"production"!==process.env.NODE_ENV&&t.warnTooManyClasses&&t.warnTooManyClasses(w);var S=ht(u,c);return w&&(S+=" "+w),g.className&&(S+=" "+g.className),y[Ze(v)&&!ze.has(v)?"class":"className"]=S,a&&(y.ref=a),i(v,y)}(k,t,n)}S.displayName=p;var k=e.forwardRef(S);return k.attrs=g,k.componentStyle=w,k.displayName=p,k.shouldForwardProp=v,k.foldedComponentIds=o?ht(s.foldedComponentIds,s.styledComponentId):"",k.styledComponentId=f,k.target=o?s.target:t,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++)gt(e,i[r],!0);return e}({},s.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(Ve(p,f),k.warnTooManyClasses=function(e,t){var n={},r=!1;return function(i){if(!r&&(n[i]=!0,Object.keys(n).length>=200)){var a=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(a,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={}}}}(p,f)),vt(k,function(){return".".concat(k.styledComponentId)}),l&&ct(k,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),k}function sn(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var ln=function(e){return Object.assign(e,{isCss:!0})};function un(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(mt(e)||ft(e))return ln(Jt(sn(De,S([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Jt(r):ln(Jt(sn(r,t)))}function cn(e,t,n){if(void 0===n&&(n=Oe),!t)throw wt(1,t);var r=function(r){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,n,un.apply(void 0,S([r],i,!1)))};return r.attrs=function(r){return cn(e,t,x(x({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return cn(e,t,x(x({},n),r))},r}var mn=function(e){return cn(on,e)},dn=mn;ze.forEach(function(e){dn[e]=mn(e)});var hn=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Qt(e),qt.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var i=r(pt(Jt(this.rules,t,n,r)),""),a=this.componentId+e;n.insertRules(a,a,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&qt.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var pn,fn,gn,vn="__sc-".concat(ke,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[vn]||(window[vn]=0),1===window[vn]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[vn]+=1),function(e){e.VerticalBarChart="VerticalBarChart",e.GroupVerticalBarChart="GroupVerticalBarChart",e.StackedVerticalBarChart="StackedVerticalBarChart",e.PercentVerticalBarChart="PercentVerticalBarChart",e.HorizontalBarChart="HorizontalBarChart",e.GroupHorizontalBarChart="GroupHorizontalBarChart",e.StackedHorizontalBarChart="StackedHorizontalBarChart",e.PercentHorizontalBarChart="PercentHorizontalBarChart",e.PyramidChart="PyramidChart",e.PieChart="PieChart",e.LineChart="LineChart",e.ScatterPlot="ScatterPlot",e.Table="Table"}(pn||(pn={})),function(e){e.Unknown="N",e.Time="T",e.Ordinal="P",e.Geological="G",e.Content="C",e.OtherClassificatory="F"}(fn||(fn={})),function(e){e.Week="Week",e.Month="Month",e.Quarter="Quarter",e.HalfYear="HalfYear",e.Year="Year",e.Decade="Decade",e.Irregular="Irregular"}(gn||(gn={}));var yn={empty:{fi:"",sv:"",en:""},preliminaryData:{fi:"Ennakko",sv:"Preliminär",en:"Preliminary data"},source:{fi:"Lähde",sv:"Källa",en:"Source"},unit:{fi:"Yksikkö",sv:"Enhet",en:"Unit"},graphCreationError:{fi:"Kuviota ei voitu muodostaa",sv:"Diagrammet kunde inte skapas",en:"The graph could not be created"},thousandsSep:{fi:" ",sv:" ",en:","},thousandsSepAccessibility:{fi:"",sv:"",en:","},decimalPoint:{fi:",",sv:",",en:"."},barMultiple:{fi:"Pystypylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Flerdimensionellt vertikalt stapeldiagram.",en:"Bar chart with {numSeries} data series."},barSingle:{fi:"Pystypylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Vertikalt stapeldiagram.",en:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}."},columnSingle:{fi:"Vaakapylväskuvio, jossa {numPoints} {#eq numPoints 1}pylväs{else}pylvästä{/eq}.",sv:"Horisontellt stapeldiagram.",en:"Bar chart with {numPoints} {#eq numPoints 1}bar{else}bars{/eq}."},columnMultiple:{fi:"Vaakapylväskuvio, jossa {numSeries} muuttujaa.",sv:"Flerdimensionellt horisontellt stapeldiagram.",en:"Bar chart with {numSeries} data series."},lineSingle:{fi:"Viivakuvio, jossa {numPoints} havainto{#eq numPoints 1}arvo{else}arvoa{/eq}.",sv:"Linjediagram.",en:"Line chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}."},lineMultiple:{fi:"Viivakuvio, jossa {numSeries} viivaa.",sv:"Flerdimensionellt linjediagram.",en:"Line chart with {numSeries} lines."},pieSingle:{fi:"Piirakkakuvio, jossa {numPoints} {#eq numPoints 1}lohko{else}lohkoa{/eq}.",sv:"Cirkeldiagram.",en:"Pie chart with {numPoints} {#eq numPoints 1}slice{else}slices{/eq}."},pieMultiple:{fi:"Piirakkakuvio, jossa {numSeries} piirakkaa.",sv:"Flerdimensionellt cirkeldiagram.",en:"Pie chart with {numSeries} pies."},scatterSingle:{fi:"Hajontakuvio, jossa {numPoints} {#eq numPoints 1}piste{else}pistettä{/eq}.",sv:"Spridningsdiagram.",en:"Scatter chart with {numPoints} {#eq numPoints 1}point{else}points{/eq}."},scatterMultiple:{fi:"Hajontakuvio,jossa {numSeries} datasarjaa.",sv:"Flerdimensionellt spridningsdiagram.",en:"Scatter chart with {numSeries} data series."},defaultSingle:{fi:"Kuvio, jossa {numPoints} data{#eq numPoints 1}piste{else}pistettä{/eq}.",sv:"Endimensionellt diagram.",en:"Chart with {numPoints} data {#eq numPoints 1}point{else}points{/eq}."},defaultMultiple:{fi:"Kuvio, jossa {numSeries} datasarjaa.",sv:"Flerdimensionellt diagram.",en:"Chart with {numSeries} data series."},defaultChartTitle:{fi:"Kuvio",sv:"Diagrammets rubrik",en:"Chart"},chartMenuLabel:{fi:"Kuvion valikko",sv:"Diagrammets meny",en:"Chart menu"},menuButtonLabel:{fi:"Katso valikko kuviosta {chartTitle}",sv:"Visa diagrammets meny",en:"View chart menu, {chartTitle}"},credits:{fi:"{creditsStr}",sv:"{creditsStr}",en:"{creditsStr}"},legendItem:{fi:"Näytä {itemName}",sv:"Variabelvärde",en:"Show {itemName}"},legendLabel:{fi:"Kuvion selite: {legendTitle}",sv:"Bläddra visuellt i variabelvärden",en:"Chart legend: {legendTitle}"},legendLabelNoTitle:{fi:"Vaihda sarjojen näkyvyyttä, {chartTitle}",sv:"Ingen etikett",en:"Toggle series visibility, {chartTitle}"},contextButtonTitle:{fi:"Kuvion valintamenu",sv:"Diagrammets valmeny",en:"Chart context menu"},downloadPNG:{fi:"Lataa kuvio (png)",sv:"Ladda ner figuren (png)",en:"Download figure (png)"},downloadSVG:{fi:"Lataa kuvio (svg)",sv:"Ladda ner figuren (svg)",en:"Download figure (svg)"},downloadXLSX:{fi:"Lataa taulukko (xlsx)",sv:"Ladda ner tabellen (xlsx)",en:"Download table (xlsx)"},downloadCSV:{fi:"Lataa taulukko (csv)",sv:"Ladda ner tabellen (csv)",en:"Download table (csv)"},rangeCategories:{fi:"Datan arvoalue: {numCategories} luokkaa.",sv:"Diagrammets värdeområde.",en:"Data range: {numCategories} categories."},rangeFromTo:{fi:"Arvot alkavat {rangeFrom} ja päättyvät {rangeTo}.",sv:"Värdena börjar från {rangeFrom} och slutar vid {rangeTo}.",en:"Data ranges from {rangeFrom} to {rangeTo}."},timeRangeDays:{fi:"Arvoja päiviltä {range}.",sv:"Värden för dagarna {range}.",en:"Data range: {range} days."},timeRangeHours:{fi:"Arvoja tunneilta {range}",sv:"Värden för timmarna {range}",en:"Data range: {range} hours."},timeRangeMinutes:{fi:"Arvoja minuuteilta {range}",sv:"Värden för minuterna {range}",en:"Data range: {range} minutes."},timeRangeSeconds:{fi:"Arvoja sekunneilta {range}",sv:"Värden för sekunderna {range}",en:"Data range: {range} seconds."},xAxisDescriptionPlural:{fi:"Kuviolla on {numAxes} x-akselia muuttujille {#each names}{#unless @first},{/unless}{#if @last} ja{/if} {this}{/each}.",sv:"Figuren har {numAxes} x-axlar för variablerna {#each names}{#unless @first},{/unless}{#if @last} och{/if} {this}{/each}.",en:"The chart has {numAxes} X axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}."},xAxisDescriptionSingular:{fi:"Kuviolla on 1 x-akseli muuttujalle {names[0]}. {ranges[0]}",sv:"Figuren har en x-axel för variabeln {names[0]}. {ranges[0]}",en:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}"},yAxisDescriptionPlural:{fi:"Kuviolla on {numAxes} y-akselia muuttujille {#each names}{#unless @first},{/unless}{#if @last} ja{/if} {this}{/each}.",sv:"Figuren har {numAxes} y-axlar för variablerna {#each names}{#unless @first},{/unless}{#if @last} och{/if} {this}{/each}.",en:"The chart has {numAxes} Y axes displaying {#each names}{#unless @first},{/unless}{#if @last} and{/if} {this}{/each}."},yAxisDescriptionSingular:{fi:"Kuviolla on 1 y-akseli muuttujalle {names[0]}. {ranges[0]}",sv:"Figuren har en y-axel för variabeln {names[0]}. {ranges[0]}",en:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}"},seriesSummaryBar:{fi:"{series.name}muuttujan {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel",en:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryBarCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}. Pylvässarja, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel, ..variabelns .. Stapel",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryColumn:{fi:"{series.name}muuttuja, pylvässarja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel",en:"{series.name}, bar series {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryColumnCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}. Pylvässarja, jossa {series.points.length} {#eq series.points.length 1}pylväs{else}pylvästä{/eq}.",sv:"..variabelns .. Stapel, ..variabelns .. Stapel",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Bar series with {series.points.length} {#eq series.points.length 1}bar{else}bars{/eq}."},seriesSummaryDefault:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. Diagram",en:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryDefaultCombination:{fi:"{series.name}muuttuja {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. diagram, ..variabelns .. Diagram",en:"{series.name}, series {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryLine:{fi:"{series.name}, viiva {seriesNumber}/{chart.series.length}, jossa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. Linje",en:"{series.name}, line {seriesNumber} of {chart.series.length} with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryLineCombination:{fi:"{series.name}, aikasarja {seriesNumber}/{chart.series.length}. Viivassa {series.points.length} {#eq series.points.length 1}datapiste{else}datapistettä{/eq}.",sv:"..variabelns .. linje, ..variabelns .. Linje",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Line with {series.points.length} data {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryPie:{fi:"{series.name}, piirakan {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1} lohko {else}lohkoa{/eq}.",sv:"..variabelns .. Sektor",en:"{series.name}, pie {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}."},seriesSummaryPieCombination:{fi:"{series.name}, sarja {seriesNumber}/{chart.series.length}. Piirakasta, jossa {series.points.length} {#eq series.points.length 1} lohko{else}lohkoa{/eq}.",sv:"..variabelns .. sektor, ..variabelns .. Sektor",en:"{series.name}, series {seriesNumber} of {chart.series.length}. Pie with {series.points.length} {#eq series.points.length 1}slice{else}slices{/eq}."},seriesSummaryScatter:{fi:"{series.name}, hajontakuvio {seriesNumber}/{chart.series.length}: {series.points.length} {#eq series.points.length 1}piste{else}pisteet{/eq}.",sv:"..variabelns .. Punkt",en:"{series.name}, scatter plot {seriesNumber} of {chart.series.length} with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}."},seriesSummaryScatterCombination:{fi:"{series.name}, datasarja {seriesNumber}/{chart.series.length}, hajontakuviosta {series.points.length} {#eq series.points.length 1}piste{else}pisteet{/eq}.",sv:"..variabelns .. punkt, ..variabelns .. Punkt",en:"{series.name}, series {seriesNumber} of {chart.series.length}, scatter plot with {series.points.length} {#eq series.points.length 1}point{else}points{/eq}."},xAxisDescription:{fi:"Toisen X-akselin kuvaus, {name}",sv:"Beskrivning av andra X-axeln, {name}",en:"X axis, {name}"},yAxisDescription:{fi:"Toisen Y-akselin kuvaus, {name}",sv:"Beskrivning av andra Y-axeln, {name}",en:"Y axis, {name}"},endOfChartMarker:{fi:"Kuvion loppu.",sv:"Diagrammets slut.",en:"End of interactive chart."},loading:{fi:"Ladataan...",sv:"Laddar...",en:"Loading..."},chartContainerLabel:{fi:"{title}. Highcharts interactive chart.",sv:"{title}. Highcharts interactive chart.",en:"{title}. Highcharts interactive chart."},toggleTableModeOnText:{fi:"Näytä taulukko",sv:"Visa tabell",en:"View table"},toggleTableModeOffText:{fi:"Näytä kuvio",sv:"Visa figur",en:"View chart"},externalLink:{fi:"Ulkoinen linkki",sv:"Ulkoinen linkki",en:"External link"},quarter:{fi:"vuosineljännes",sv:"kvartal",en:"quarter"},dataMissing:{fi:"Tieto puuttuu",sv:"Data saknas",en:"Missing data"},toggleAccessibilityModeOn:{fi:"Näytä kuviossa symbolit",sv:"Visa symboler i diagrammet",en:"Show symbols in the figure"},toggleAccessibilityModeOff:{fi:"Poista kuviosta symbolit",sv:"Ta bort symbolerna från diagrammet",en:"Remove symbols from the figure"}},bn={months:{fi:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"],sv:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],en:["January","February","March","April","May","June","July","August","September","October","November","December"]},shortMonths:{fi:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],sv:["jan.","febr.","mars","april","maj","juni","juli","aug.","sept.","okt.","nov.","dec."],en:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},numericSymbols:{fi:["k","M","G","T","P","E"],sv:["k","M","G","T","P","E"],en:["k","M","G","T","P","E"]},weekdays:{fi:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"],sv:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],en:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ordinalSuffices:{en:["st.","nd.","rd.","th."]}},wn=new(/*#__PURE__*/function(){function e(){var e=this;this.Translations=void 0,this.ArrayTranslations=void 0,this.GetAllLanguages=function(){return Object.keys(e.Translations.empty)},this.Translations=yn,this.ArrayTranslations=bn}return e.prototype.AddTranslations=function(e){for(var t in e.Translations)t in this.Translations&&(this.Translations[t]=y({},this.Translations[t],e.Translations[t]));for(var n in e.ArrayTranslations)n in this.ArrayTranslations&&(this.ArrayTranslations[n]=y({},this.ArrayTranslations[n],e.ArrayTranslations[n]))},e}()),xn=wn.Translations,Sn=wn.ArrayTranslations,kn=wn.GetAllLanguages;function Cn(e){wn.AddTranslations(e)}var Nn=function(e){return e.reduce(function(e,t){return e.map(function(e){return t.map(function(t){return e.concat([t])})}).reduce(function(e,t){return e.concat(t)},[])},[[]])};function En(e,t,n){return n.findIndex(function(t){return JSON.stringify(t)===JSON.stringify(e)})===t}var Mn=["",".","..","...","....",".....","......","-"];function An(e,t,n,r){if(void 0===r&&(r=!1),null===e)throw new Error("Can not produce a localized numeric formatting for missing data");return new Intl.NumberFormat(n,{maximumFractionDigits:t,minimumFractionDigits:t,useGrouping:r}).format(e)}function Tn(e,t,n){if(void 0===n&&(n=!1),e)return n?xn.dataMissing[t]:Mn[e];throw new Error("Invalid missing code. Can not generate table presentation")}function Pn(e,t){return function(){var n,r,i,a,o,s=[];e.rowVarNames&&e.rowVarNames.length>0&&this.series.name&&s.push((null==(a=e.rowVarNames)?void 0:a.map(function(e){return e[t]}).join(", "))+": "+this.series.name),e.colVarNames&&e.colVarNames.length>0&&this.name&&s.push((null==(o=e.colVarNames)?void 0:o.map(function(e){return e[t]}).join(", "))+": "+this.name);var l=null!=(n=null==(r=this.options.custom)?void 0:r.precision)?n:0;return s.push(_n(e,this,t,l)),null!=(i=this.options.custom)&&i.preliminary&&s.push(xn.preliminaryData[t]),s.join("<br/>")}}function In(e,t){return function(n){var r,i,a,o,s,l=[];e.rowVarNames&&e.rowVarNames.length>0&&n.series.name&&l.push((null==(o=e.rowVarNames)?void 0:o.map(function(e){return e[t]}).join(", "))+": "+Fn(n.series.name,t)),e.colVarNames&&e.colVarNames.length>0&&n.name&&l.push((null==(s=e.colVarNames)?void 0:s.map(function(e){return e[t]}).join(", "))+": "+Fn(n.name,t));var u=null!=(r=null==(i=n.options.custom)?void 0:i.precision)?r:0;return l.push(_n(e,n,t,u)),null!=(a=n.options.custom)&&a.preliminary&&l.push(xn.preliminaryData[t]),l.join(", ")}}function jn(e){return function(){return this.value.toLocaleString(e)}}var Vn=function(e){return kn().indexOf(e.toLowerCase().trim())>-1?e.toLowerCase().trim():kn()[0]};function Dn(e){void 0===e&&(e=null);var t=e&&e>=15?25:50;return function(){return Rn(this.value,t)}}function On(e){return function(){var t,n;if(!this.y)return"";var r=null!=(t=null==(n=this.options.custom)?void 0:n.precision)?t:0;return An(this.y,r,e,!0)}}function Ln(){return function(){return Rn(this.name,200)}}var zn,Rn=function(e,t){void 0===t&&(t=50);var n=e.toString().length;return e.toString().slice(0,t).trim()+(n>t?"...":"")};function qn(e,t){return function(){var n,r,i,a=e.series[1].rowNameGroup.map(function(e){return e[t]}).join(", "),o=e.series[0].rowNameGroup.map(function(e){return e[t]}).join(", "),s=null==(n=e.colVarNames)?void 0:n.map(function(e){return e[t]}).join(", "),l="";return a&&a.length>0&&this.series.name&&(l+=a+": "+this.x.toLocaleString(t)+"<br />"),o&&o.length>0&&this.key&&(l+=o+": "+(null==(i=this.y)?void 0:i.toLocaleString(t))+"<br />"),s&&s.length>0&&e.columnNameGroups&&e.columnNameGroups.length>0&&(l+=s+": "+e.columnNameGroups[this.index].map(function(e){return e[t]}).join(", ")),null!=(r=this.options.custom)&&r.preliminary&&(l+="<br />"+xn.preliminaryData[t]),l}}function Gn(e,t){return function(){var n,r,i,a,o=[];if(e.rowVarNames&&e.rowVarNames.length>0)for(var s=0;s<e.rowVarNames.length;s++)o.push(e.rowVarNames[s][t]+": "+e.series[this.series.index].rowNameGroup[s][t]);e.colVarNames&&e.colVarNames.length>0&&this.name&&o.push((null==(a=e.colVarNames)?void 0:a.map(function(e){return e[t]}).join(", "))+": "+this.name);var l=null!=(n=null==(r=this.options.custom)?void 0:r.precision)?n:0;return o.push(_n(e,this,t,l)),null!=(i=this.options.custom)&&i.preliminary&&o.push(xn.preliminaryData[t]),o.join("<br/>")}}function Bn(e,t){var n=e.map(function(e){return e.unit}).filter(En);if(1===n.length)return n[0][t];if(n.length>1)return e.map(function(e){return e.name[t]+": "+e.unit[t]}).join(", ");throw new Error("Missing required unit data")}function _n(e,t,n,r){if(null==t.y)return"";var i,a,o=Number(t.y.toFixed(r));return e.visualizationSettings.visualizationType===pn.PyramidChart?Math.abs(o).toLocaleString(n):e.visualizationSettings.visualizationType==pn.PercentHorizontalBarChart||e.visualizationSettings.visualizationType==pn.PercentVerticalBarChart?An(null!=(i=t.percentage)?i:0,1,n)+"% ("+o.toLocaleString(n)+" "+Bn(e.units,n)+")":null!=(a=o.toLocaleString(n))?a:""}function Fn(e,t){if(/^\d{4}[M,Q]\d{1,2}\*?$/.test(e)){var n=e.split("*")[0];if(/^\d{4}M\d{1,2}$/.test(n)){var r=n.split("M");return r[0]+" "+Sn.months[t][Number(r[1])-1]}if(/^\d{4}Q\d{1,2}$/.test(n)){var i=n.split("Q");return i[0]+" "+function(e,t){var n=Sn.ordinalSuffices[t],r=parseInt(e)-1;return null!=n&&n[r]?""+e+n[r]:e+"."}(i[1],t)+" "+xn.quarter[t]}console.log("Unsupported time pattern")}return e}function $n(e,t,n){return function(){var r,i,a,o=function(e,t,n,r){var i;if(void 0===r&&(r=new d(0)),e.greaterThan(t))throw new Error("dataMinValue must me smaller or equal than dataMaxValue");if((e.lessThan(0)&&t.greaterThan(0)?t.minus(e):d.max(e.abs(),t.abs())).div(n).lessThanOrEqualTo(r))return r;var a=function(e){var t=Array.from({length:n},function(e,t){return n-t}).reduce(function(t,n){var i,a=function(e){if(e.equals(0))return new d(0);var t=d.pow(10,d.log10(e).floor());return e.div(t).lessThan(1.5)?t.div(10).mul(e.div(t.div(10)).ceil()):e.div(t).lessThan(3)?e.mul(2).div(t).ceil().mul(t).div(2):e.div(t).lessThan(8)?e.div(t).ceil().mul(t):e.div(t.mul(10)).ceil().mul(10).mul(t)}(e.div(n));return a.greaterThanOrEqualTo(r)&&t.push([(i=a,i.equals(0)?0:i.isInteger()?function(e){for(var t=0,n=5;t<50&&e.mod(n).equals(0)&&(t++,e.mod(n*=2).equals(0));)t++,n*=5;return t}(i):function(e){var t=e.toString();if(t.includes("e-")){var n=t.split("e-"),r=Number.parseInt(n[1]);return n[0].endsWith("5")?-2*r+1:-2*r}var i=t.split(".")[1];return i.endsWith("5")?-2*i.length+1:-2*i.length}(i)),a]),t},[]).sort(function(e,t){return t[0]-e[0]});return t.slice(0,Math.max(2,Math.ceil(.5*t.length))).sort(function(e,t){return e[1].minus(t[1]).toNumber()})}(d.max(e.abs(),t.abs()));return e.lessThan(0)&&t.greaterThan(0)?null!=(i=a.map(function(e){return e[1]}).find(function(r){return e.abs().div(r).ceil().plus(t.div(r).ceil()).lessThanOrEqualTo(n)}))?i:new d(NaN):a[0][1]}(e,t,(r=this.chart.plotWidth,i=d.pow(10,d.log10(d.max(e.abs(),t.abs())).floor()),a=Math.ceil(r/(12*(i.toString().length+(e.isNeg()?1:0))+25)-1),Math.max(a,e.isNegative()&&t.isPositive()?2:1)),n),s=e.greaterThanOrEqualTo(0)?new d(0):e.div(o).floor().mul(o),l=t.lessThanOrEqualTo(0)?new d(0):t.div(o).ceil().mul(o);return Array.from({length:l.minus(s).div(o).plus(1).toNumber()},function(e,t){return o.mul(t).plus(s).toNumber()})}}function Hn(e,t){if(t){var n=new Date(t);switch(e){case gn.Irregular:case gn.Week:return;case gn.Month:return{pointStart:n.getTime(),pointIntervalUnit:"month"};case gn.Quarter:case gn.HalfYear:return;case gn.Year:return{pointStart:n.getTime(),pointIntervalUnit:"year"}}}}function Wn(e,t){if(e.seriesType!==zn.Time){var n=e.columnNameGroups.map(function(e){return e.map(function(e){return e[t]}).join(", ")}),r=n.every(function(e){return!isNaN(parseFloat(e))});return e.seriesType===zn.Ordinal&&r?function(e,t){return{type:"category",categories:e.columnNameGroups.map(function(e){return e.map(function(e){return e[t]}).join(", ")}),ordinal:!0,tickPositioner:(n=Math.max.apply(Math,e.series.map(function(e){return e.series.length})),r=Math.max.apply(Math,e.columnNameGroups.map(function(e){return e.reduce(function(e,n){return(e>0?1:0)+e+n[t].length},0)})),function(){var e=Math.ceil(n*r*10/this.chart.plotWidth),t=Math.ceil(n/e);return Array.from({length:t},function(t,n){return n*e})})};var n,r}(e,t):{ordinal:e.seriesType==zn.Ordinal,type:"category",categories:n,labels:{autoRotation:[-45]}}}switch(e.visualizationSettings.timeVariableIntervals){case gn.Week:return Un(e,t);case gn.Month:return Yn();case gn.Quarter:return Zn(e,t);case gn.HalfYear:return Xn(e,t);case gn.Year:return{type:"datetime"};default:return{type:"category",categories:e.columnNameGroups.map(function(e){return e.map(function(e){return e[t]}).join(", ")})}}}!function(e){e[e.Time=0]="Time",e[e.Ordinal=1]="Ordinal",e[e.Nominal=2]="Nominal"}(zn||(zn={}));var Un=function(e,t){return{type:"linear",ordinal:!1,labels:{formatter:function(){return e.columnNameGroups[Number(this.value)].map(function(e){return e[t]}).join(", ")}}}},Yn=function(e,t){return{type:"datetime",ordinal:!1,labels:{formatter:function(){return m.dateFormat("%YM%m",Number(this.value))}}}},Zn=function(e,t){var n,r,i;return{type:"linear",ordinal:!1,labels:{formatter:function(){return Number.isInteger(this.value)?e.columnNameGroups[Number(this.value)].map(function(e){return e[t]}).join(", "):""}},tickPositioner:(r=Math.max.apply(Math,e.series.map(function(e){return e.series.length})),i=new Date(null!=(n=e.visualizationSettings.timeSeriesStartingPoint)?n:""),function(){var e=function(e){return e<=2?Math.ceil(e):e<=4?4:e<=20?4*Math.ceil(e/4):e<=40?20*Math.ceil(e/20):40*Math.ceil(e/40)}(60*r/this.chart.plotWidth),t=function(e,t){var n=(4*t.getFullYear()+Math.floor(t.getMonth()/3))%e;return n>0?e-n:0}(e,i),n=Math.ceil((r-t)/e);return Array.from({length:n},function(n,r){return t+r*e})})}},Xn=function(e,t){var n,r,i;return{type:"linear",ordinal:!1,labels:{formatter:function(){return Number.isInteger(this.value)?e.columnNameGroups[Number(this.value)].map(function(e){return e[t]}).join(", "):""}},tickPositioner:(r=Math.max.apply(Math,e.series.map(function(e){return e.series.length})),i=new Date(null!=(n=e.visualizationSettings.timeSeriesStartingPoint)?n:""),function(){var e=function(e){return e<=2?Math.ceil(e):e<=10?2*Math.ceil(e/2):e<=20?10*Math.ceil(e/10):20*Math.ceil(e/20)}(60*r/this.chart.plotWidth),t=function(e,t){var n=(2*t.getFullYear()+Math.floor(t.getMonth()/6))%e;return n>0?e-n:0}(e,i),n=Math.ceil((r-t)/e);return Array.from({length:n},function(n,r){return t+r*e})})}},Kn=["#1a56ec","#f2644c","#1b3160","#9c8d87","#26625d","#7791e8","#8c1131","#878eaf","#c73268","#288c72"],Jn=["M 0 5 L 10 5 M 5 0 L 5 10","M 0 0 L 10 10 M 10 0 L 0 10","M 2,2 h1 v1 h-1 z M 7,7 h1 v1 h-1 z M 2,7 h1 v1 h-1 z M 7,2 h1 v1 h-1 z","M 2,2 h1 v1 h-1 z M 7,7 h1 v1 h-1 z","M -2 -2 L 12 12 M -12 -2 L 2 12 M -2 -12 L 12 2","M -2 12 L 12 -2 M -12 12 L 2 -2 M -2 22 L 12 8","M 5,5 m -3,0 a 3,3 0 1,0 6,0 a 3,3 0 1,0 -6,0","M 2 2 L 3 3 M 7 7 L 8 8 M 2 7 L 3 8 M 7 2 L 8 3","M 5 0 L 10 5 L 5 10 L 0 5 Z","M 2 5 L 8 5 M 5 2 L 5 8","M 5 0 L 5 10","M 0 5 L 10 5","M 0 5 Q 2.5 0, 5 5 T 10 5","M 0 2 L 10 2 M 0 8 L 10 8","M 0 10 L 5 0 L 10 10 Z"];function Qn(e){return{color:{pattern:{backgroundColor:Kn[e%Kn.length],path:{stroke:"white",d:Jn[e%Jn.length],strokeWidth:2},width:10,height:10}}}}var er=function(e,t){return e.series.map(function(n,r){return y({},rr(n,e,t),{index:r,type:"line"})})},tr=function(e,t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=!1),e.series.map(function(i,a){return y({},rr(i,e,t),r&&Qn(a),{index:n?e.series.length-1-a:a,type:"bar"})})},nr=function(e,t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=!1),e.series.map(function(i,a){return y({},rr(i,e,t),r&&Qn(a),{index:n?e.series.length-1-a:a,type:"column"})})};function rr(e,t,n){return{animation:!1,name:e.rowNameGroup.map(function(e){return e[n]}).join(", "),data:e.series.map(function(e,r){return{y:e.value,name:t.columnNameGroups[r].map(function(e){return e[n]}).join(", "),custom:{preliminary:e.preliminary,precision:e.precision}}})}}var ir=function(e,t,n){var r,i=null==(r=null==n?void 0:n.showTitle)||r;return{accessibility:{point:{descriptionFormatter:In(e,t)}},title:{text:i?e.header[t]:void 0},subtitle:{text:e.subheaderValues.map(function(e){return e[t]}).join(" | ")},credits:{text:xn.source[t]+": "+e.sources.map(function(e){return e[t]}).join(", ")},tooltip:{formatter:Pn(e,t)},yAxis:[ar]}},ar={plotLines:[{value:0,color:"#000",width:1}]},or=function(e,t){return{enabled:e.visualizationSettings.showDataPoints,style:{color:"#000",fontSize:"1rem",fontWeight:"400"},formatter:On(t)}},sr=function(e,t){var n,r,i,a;return y({},ar,{tickPositioner:(n=e.series.map(function(e){return e.series}),r=null,i=null,a=0,n.forEach(function(e){e.forEach(function(e){e.value&&(!r||e.value<r)&&(r=e.value),e.value&&(!i||e.value>i)&&(i=e.value),e.precision>a&&(a=e.precision)})}),r&&i?$n(new d(r),new d(i),new d(Math.pow(10,-a))):function(){return[]}),title:{text:Bn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}})},lr=function(e,t,n){return y({},ir(e,t,n),{chart:{type:"bar"},xAxis:{categories:e.columnNameGroups.map(function(e){return e.map(function(e){return e[t]}).join(", ")}),labels:{formatter:Dn(e.columnNameGroups.length),style:{width:200}}}})},ur=function(e,t,n){return y({},lr(e,t,n),{series:tr(e,t,!0,null==n?void 0:n.accessibilityMode),legend:y({},hr,{enabled:!0,layout:"horizontal",reversed:!0,margin:30})})},cr=function(e,t,n){return y({},ir(e,t,n),{chart:{type:"column"},xAxis:Wn(e,t)})},mr=function(e,t,n){return y({},cr(e,t,n),{series:nr(e,t,!1,null==n?void 0:n.accessibilityMode),yAxis:{softMin:0,softMax:0,title:{text:Bn(e.units,t)}}})},dr=function(e,t,n){return y({},cr(e,t,n),{series:nr(e,t,!0,null==n?void 0:n.accessibilityMode),legend:y({},hr,{enabled:!0,layout:"vertical"})})},hr={itemHiddenStyle:{color:"black"}},pr=function(e,t){return"\n "+e[1].rowNameGroup.map(function(e){return e[t]}).join(", ")+": {point.x}<br/>\n "+e[0].rowNameGroup.map(function(e){return e[t]}).join(", ")+": {point.y}\n "},fr=function(e,t,n){switch(t.visualizationSettings.visualizationType){case pn.LineChart:return function(e,t,n){var r,i=null!=(r=e.visualizationSettings)&&r.cutValueAxis?void 0:0,a=null!=n&&n.accessibilityMode?{enabledThreshold:3}:{enabled:!1};return y({},ir(e,t,n),{chart:{type:"line"},tooltip:{formatter:Gn(e,t)},xAxis:y({},Wn(e,t),{gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5}),yAxis:y({},ar,{softMin:i,softMax:i,title:{text:Bn(e.units,t)}}),plotOptions:{line:{dataLabels:y({},or(e,t)),marker:a},series:Hn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint)},legend:y({},hr,{enabled:e.series.length>1,labelFormatter:Ln()}),series:er(e,t),exporting:{enabled:!1}})}(t,e,n);case pn.VerticalBarChart:return function(e,t,n){return y({},mr(e,t,n),{yAxis:y({},ar,{softMin:0,softMax:0,title:{text:Bn(e.units,t)}}),plotOptions:{series:y({},Hn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:y({},or(e,t))})},exporting:{enabled:!1}})}(t,e,n);case pn.HorizontalBarChart:return function(e,t,n){return y({},lr(e,t,n),{series:tr(e,t,!1,null==n?void 0:n.accessibilityMode),chart:{type:"bar",spacingBottom:60},yAxis:y({},sr(e,t),{softMin:0,max:100}),legend:{enabled:!1},plotOptions:{series:{dataLabels:y({},or(e,t))}}})}(t,e,n);case pn.GroupVerticalBarChart:return function(e,t,n){return y({},mr(e,t,n),{plotOptions:{series:y({},Hn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:y({},or(e,t))})},legend:y({},hr,{enabled:!0,labelFormatter:Ln()})})}(t,e,n);case pn.GroupHorizontalBarChart:return function(e,t,n){return y({},lr(e,t,n),{series:tr(e,t,!1,null==n?void 0:n.accessibilityMode),yAxis:y({},sr(e,t),{softMin:0,softMax:0}),legend:y({},hr,{enabled:!0,layout:"vertical",margin:30}),plotOptions:{series:{dataLabels:y({},or(e,t))}}})}(t,e,n);case pn.StackedVerticalBarChart:return function(e,t,n){return y({},dr(e,t,n),{yAxis:{softMin:0,softMax:0,title:{text:Bn(e.units,t)}},plotOptions:{column:{stacking:"normal"},series:y({},Hn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:y({},or(e,t))})}})}(t,e,n);case pn.StackedHorizontalBarChart:return function(e,t,n){return y({},ur(e,t,n),{yAxis:{softMin:0,softMax:0,tickPositioner:(r=e.series.map(function(e){return e.series}),i=null,a=null,o=0,r[0].forEach(function(e,t){var n=r.reduce(function(e,n){var r;return e+(null!=(r=n[t].value)?r:0)},0);n&&(!i||n<i)&&(i=n),n&&(!a||n>a)&&(a=n),e.precision>o&&(o=e.precision)}),i&&a?$n(new d(i),new d(a),new d(Math.pow(10,-o))):function(){return[]}),title:{text:Bn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"normal"},series:{dataLabels:y({},or(e,t))}}});var r,i,a,o}(t,e,n);case pn.PercentVerticalBarChart:return function(e,t,n){return y({},dr(e,t,n),{yAxis:{min:0,title:{text:"%"}},plotOptions:{column:{stacking:"percent"},series:y({},Hn(e.visualizationSettings.timeVariableIntervals,e.visualizationSettings.timeSeriesStartingPoint),{dataLabels:y({},or(e,t))})}})}(t,e,n);case pn.PercentHorizontalBarChart:return function(e,t,n){return y({},ur(e,t,n),{yAxis:{min:0,title:{text:"%",style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0}},plotOptions:{bar:{stacking:"percent"},series:{dataLabels:y({},or(e,t))}}})}(t,e,n);case pn.PieChart:return function(e,t,n){var r,i;return y({},ir(e,t),{chart:{type:"pie"},plotOptions:{pie:{dataLabels:{formatter:(i=null!=(r=e.visualizationSettings.showDataPoints)&&r,function(){var e,t=i?" ("+Math.round(null!=(e=this.percentage)?e:0)+"%)":"";return Rn(this.name,20)+t})}}},series:e.series.map(function(r){return{animation:!1,type:"pie",name:r.rowNameGroup.map(function(e){return e[t]}).join(", "),data:r.series.map(function(r,i){return y({y:r.value,name:e.columnNameGroups[i].map(function(e){return e[t]}).join(", "),unit:Bn(e.units,t)},(null==n?void 0:n.accessibilityMode)&&Qn(i),{custom:{preliminary:r.preliminary,precision:r.precision}})})}})})}(t,e,n);case pn.PyramidChart:return function(e,t,n){var r=e.columnNameGroups.map(function(e){return e.map(function(e){return e[t]}).join(", ")}),i=Math.max.apply(Math,e.series.map(function(e){return Math.max.apply(Math,e.series.map(function(e){var t;return null!=(t=e.value)?t:0}))}));return y({},ir(e,t,n),{chart:{type:"bar"},xAxis:{categories:r,reversed:!1,labels:{style:{width:200}}},yAxis:y({},ar,{min:-Math.abs(i),max:Math.abs(i),title:{text:Bn(e.units,t),style:{textAlign:"center"},align:"middle",textAlign:"center",y:10,x:0},labels:{formatter:function(){return Math.abs(this.value).toLocaleString(t)}}}),legend:y({},hr,{enabled:!0,margin:30}),series:e.series.map(function(r,i){return y({animation:!1,type:"bar",name:r.rowNameGroup.map(function(e){return e[t]}).join(", ")},(null==n?void 0:n.accessibilityMode)&&Qn(i),{data:r.series.map(function(n,r){return{y:0===i&&n.value?-n.value:n.value,name:e.columnNameGroups[r].map(function(e){return e[t]}).join(", "),custom:{preliminary:n.preliminary,precision:n.precision}}})})}),plotOptions:{series:{stacking:"normal",dataLabels:y({},or(e,t))}},exporting:{enabled:!1}})}(t,e,n);case pn.ScatterPlot:return function(e,t,n){var r,i=null!=(r=e.visualizationSettings)&&r.cutValueAxis?void 0:0;return y({},ir(e,t,n),{chart:{type:"scatter"},xAxis:{softMin:0,softMax:0,title:{text:e.series[1].rowNameGroup.map(function(e){return e[t]}).join(", ")},gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5,plotLines:[{value:0,color:"#000",width:1}]},yAxis:y({},ar,{softMin:i,softMax:i,title:{text:e.series[0].rowNameGroup.map(function(e){return e[t]}).join(", ")}}),series:[{animation:!1,type:"scatter",data:e.series[0].series.map(function(t,n){var r,i;return{x:null!=(r=e.series[1].series[n].value)?r:void 0,y:null!=(i=e.series[0].series[n].value)?i:void 0,marker:{symbol:"circle"},custom:{preliminary:e.series[1].series[n].preliminary||e.series[0].series[n].preliminary,precision:Math.max(e.series[1].series[n].precision,e.series[0].series[n].precision)}}})}],tooltip:{headerFormat:"",pointFormat:pr(e.series,t),formatter:qn(e,t)},plotOptions:{scatter:{marker:{radius:5*(e.visualizationSettings.markerSize?.01*e.visualizationSettings.markerSize:1)}}},exporting:{enabled:!1}})}(t,e,n);default:throw new Error("Unsupported chart type")}},gr=function(e,t,n,r){if(0===e.length)return{};var i=e,a={};if(r){var o=vr(i,r);if(i=o.updatedArray,a=y({},a,o.parsedValues),0===i.length)return a}if(n){var s=yr(i,n);if(i=s.updatedArray,a=y({},a,s.parsedValues),0===i.length)return a}return i.forEach(function(e){var n=t.findIndex(function(t){return t.code===e});n>-1&&(a[e]=t[n].type===fn.Time?[t[n].values[t[n].values.length-1].code]:[t[n].values[0].code])}),a},vr=function(e,t){var n=Object.keys(t),r={},i=e.map(function(e){return n.findIndex(function(t){return t===e})>-1&&t[e].length>0?(r[e]=t[e],""):e}).filter(function(e){return e.length>0});return{parsedValues:r,updatedArray:i}},yr=function(e,t){var n=Object.keys(t),r={},i=e.map(function(e){var i=n.findIndex(function(t){return t===e});return i>-1?(r[e]=t[n[i]],""):e}).filter(function(e){return e.length>0});return{parsedValues:r,updatedArray:i}},br=function(e,t){var n,r;return(null!=(n=e.value)?n:0)-(null!=(r=t.value)?r:0)},wr=function(e,t){var n,r;return(null!=(n=t.value)?n:0)-(null!=(r=e.value)?r:0)};function xr(e,t,n){return kr(Sr(e,e.series[t].series,n),t)}function Sr(e,t,n){var r=function(e,t){var n=[].concat(Array(e.length).keys());return n.sort(function(n,r){return t(e[n],e[r])}),n}(t,n),i=r.map(function(t){return e.columnNameGroups[t]}),a=e.series.map(function(e){return function(e,t){return y({},e,{series:t.map(function(t){return e.series[t]})})}(e,r)});return y({},e,{columnNameGroups:i,series:a})}function kr(e,t){var n=[];return n.push(e.series[t]),e.series.forEach(function(e,r){r!==t&&n.push(e)}),y({},e,{series:n})}function Cr(e,t){if(Object.keys(t).includes(e.code)){var n=e.values.filter(function(n){return t[e.code].includes(n.code)});if(0===n.length)throw new Error("Provided selected value code can not be found from the metadata");return n}return e.values}function Nr(e,t){for(var n,r=[],i=function(){var t=n.value,i=e.find(function(e){return e.code===t});i&&r.push(i)},a=v(t);!(n=a()).done;)i();return r}var Er=/*#__PURE__*/function(){function e(e,t){this.dataIndex=void 0,this.dataLength=void 0,this.responseObj=void 0,this.coordinates=void 0,this.lastIndices=void 0,this.indices=void 0,this.variableOrder=void 0,this.lastCoordinateIndex=void 0,this.reverseCumulativeProducts=void 0,this.selectedViewContentVariableIndex=void 0,this.selectedViewTimeVariableIndex=void 0,this.selectedViewMeta=void 0,this.rowLength=0,this.rowAmount=0,this.responseObj=e;var n=e.metaData,r=n.map(function(e){return e.values.length});this.selectedViewMeta=this.getSelectedView(e,t),this.coordinates=Array.from({length:this.selectedViewMeta.length},function(){return[]}),this.variableOrder=this.getVariableOrder(),this.initializeCoordinates(n),this.selectedViewContentVariableIndex=this.selectedViewMeta.findIndex(function(e){return e.type===fn.Content}),this.selectedViewTimeVariableIndex=this.selectedViewMeta.findIndex(function(e){return e.type===fn.Time}),this.indices=Array.from({length:n.length},function(){return 0}),this.lastIndices=this.selectedViewMeta.map(function(e){return e.values.length-1}),this.lastCoordinateIndex=this.coordinates.length-1,this.reverseCumulativeProducts=this.generateRCP(r),this.dataLength=this.selectedViewMeta.map(function(e){return e.values.length}).reduce(function(e,t){return e*t},1),this.dataIndex=0,this.setCurrentIndex()}var t=e.prototype;return t.initializeCoordinates=function(e){for(var t=this,n=function(){var n,i=t.variableOrder[r],a=t.selectedViewMeta[r].code,o=null==(n=e.find(function(e){return e.code===a}))?void 0:n.values,s=t.selectedViewMeta.find(function(e){return e.code===a});t.coordinates[i]=s.values.map(function(e){return o.findIndex(function(t){return t===e})})},r=0;r<this.selectedViewMeta.length;r++)n()},t.getViewSeries=function(){var e=0,t=[],n=[];do{var r=this.createDataCell();t.push(r),++e>=this.rowLength&&(n.push({rowNameGroup:this.generateRowNameGroup(),series:t}),t=[],e=0)}while(this.next());return n},t.generateRowNameGroup=function(){var e=this;return this.selectedViewMeta.slice(0,this.rowAmount).map(function(t,n){return t.values[e.indices[e.variableOrder[n]]].name})},t.next=function(){for(var e=this.lastCoordinateIndex;e>=0;e--){var t=this.variableOrder[e];if(this.indices[t]<this.lastIndices[e])return this.indices[t]++,this.setCurrentIndex(),!0;this.indices[t]=0}return!1},t.createDataCell=function(){var e,t,n=this.getCurrentTimeValue(),r={value:this.responseObj.data[this.dataIndex],precision:null!=(e=null==(t=this.selectedViewMeta[this.selectedViewContentVariableIndex].values[this.indices[this.variableOrder[this.selectedViewContentVariableIndex]]].contentComponent)?void 0:t.numberOfDecimals)?e:0,preliminary:!!n&&Object.values(n.name)[0].trim().endsWith("*")};return r.value||(r.missingCode=this.responseObj.missingDataInfo[this.dataIndex]),r},t.getSelectedView=function(e,t){var n=e.metaData.map(function(e){return y({},e,{values:Cr(e,t)})}),r=Nr(n.filter(function(t){return e.rowVariableCodes.includes(t.code)&&t.values.length>1}),e.rowVariableCodes),i=Nr(n.filter(function(t){return e.columnVariableCodes.includes(t.code)&&t.values.length>1}),e.columnVariableCodes),a=Nr(n.filter(function(t){return e.selectableVariableCodes.includes(t.code)}),e.selectableVariableCodes),o=a.filter(function(e){return e.values.length>1&&!r.some(function(t){return t.code==e.code})&&!i.some(function(t){return t.code==e.code})}),s=a.filter(function(e){return 1==e.values.length}),l=n.filter(function(e){return!r.some(function(t){return t.code==e.code})&&!i.some(function(t){return t.code==e.code})&&!a.some(function(t){return t.code==e.code})}),u=[].concat(o,r,i,s,l);return this.rowLength=Nn(n.filter(function(t){return e.columnVariableCodes.includes(t.code)}).map(function(e){return e.values})).length,this.rowAmount=r.length+o.length,u},t.getVariableOrder=function(){var e=this.responseObj.metaData.map(function(e){return e.code}),t=this.selectedViewMeta.map(function(t){return e.indexOf(t.code)});return t},t.generateRCP=function(e){for(var t=Array.from({length:e.length}),n=1,r=e.length-1;r>=0;r--)t[r]=n,n*=e[r];return t},t.setCurrentIndex=function(){this.dataIndex=0;for(var e=0;e<=this.lastCoordinateIndex;e++){var t=this.variableOrder[e];this.dataIndex+=this.reverseCumulativeProducts[t]*this.coordinates[t][this.indices[t]]}},t.getCurrentTimeValue=function(){if(-1!=this.selectedViewTimeVariableIndex)return this.selectedViewMeta[this.selectedViewTimeVariableIndex].values[this.indices[this.variableOrder[this.selectedViewTimeVariableIndex]]]},e}();function Mr(e,t){var n,r,i,a,o,s,l=function(e,t,n){var r=e.metaData,i=function(e,t){return e.filter(function(e){return t.includes(e.code)})}(r,e.selectableVariableCodes),a=function(e){var t=e.find(function(e){return e.type===fn.Content});if(t)return t;throw new Error("Content variable is not defined")}(r),o=function(e,t){var n=new Er(e,t).getViewSeries(),r=Nr(e.metaData.filter(function(t){return e.columnVariableCodes.includes(t.code)}).filter(function(e){return e.values.length>1}),e.columnVariableCodes).map(function(e){return Cr(e,t)});return{columnNameGroups:Nn(r).map(function(e){return e.map(function(e){return e.name})}),series:n}}(e,t),s=Tr(e.selectableVariableCodes.filter(function(t){return n[t]>1&&!e.rowVariableCodes.includes(t)&&!e.columnVariableCodes.includes(t)}),r).concat(Tr(e.rowVariableCodes,e.metaData));return{header:e.header,tableReferenceName:e.tableReference.name,subheaderValues:Ir(i,t,n),units:jr(a,t),sources:Vr(a,t,function(e){var t;return null!=(t=null==e?void 0:e.source)?t:xn.empty}),columnNameGroups:o.columnNameGroups,series:o.series,rowVarNames:s,colVarNames:Tr(e.columnVariableCodes,e.metaData),selectableVarNames:Tr(e.selectableVariableCodes,e.metaData),visualizationSettings:e.visualizationSettings,seriesType:Dr(e.columnVariableCodes,e.metaData)}}(e,t,function(e){var t={};return Object.entries(e).forEach(function(e){return t[e[0]]=e[1].length}),t}(t)),u=(null==(n=l.visualizationSettings)?void 0:n.visualizationType)===pn.PercentHorizontalBarChart||(null==(r=l.visualizationSettings)?void 0:r.visualizationType)===pn.PercentVerticalBarChart;switch(null==(i=e.visualizationSettings)?void 0:i.sorting){case null:case void 0:case"no_sorting":return l;case"reversed":return function(e){var t=[].concat(e.series).reverse().map(function(e){return y({},e,{series:[].concat(e.series).reverse(),rowNameGroup:[].concat(e.rowNameGroup).reverse()})});return y({},e,{series:t,columnNameGroups:[].concat(e.columnNameGroups).reverse()})}(l);case"sum":return function(e,t){var n=e.columnNameGroups.map(function(t,n){return{value:e.series.map(function(e){return e.series[n]}).reduce(function(e,t){var n;return e+(null!=(n=t.value)?n:0)},0),precision:0,preliminary:!1}});return Sr(e,n,t)}(l,wr);case"ascending":return xr(l,0,br);case"descending":return xr(l,0,wr);default:return u?(a=l,o=Ar(l),s=Pr(e),kr(Sr(a,o.series[s].series,wr),s)):xr(l,Pr(e),wr)}}function Ar(e){var t=e.series.map(function(t){return y({},t,{series:t.series.map(function(t,n){var r,i=e.series.reduce(function(e,t){var r;return e+(null!=(r=t.series[n].value)?r:0)},0),a=i&&0!==i?Math.round(100*(null!=(r=t.value)?r:0)/i*10)/10:null,o={value:a,precision:1,preliminary:t.preliminary};return null===a&&(o.missingCode=t.missingCode),o})})});return y({},e,{units:e.units.map(function(e){return{name:e.name,unit:(t=e.unit,Object.keys(t).reduce(function(e,t){return e[t]="%",e},{}))};var t}),series:t})}function Tr(e,t){return e.reduce(function(e,n){var r,i=null==(r=t.find(function(e){return e.code===n}))?void 0:r.name;return i&&e.push(i),e},[])}function Pr(e){var t=e.metaData.find(function(t){return t.code==e.rowVariableCodes[0]}),n=null==t?void 0:t.values.findIndex(function(t){var n;return t.code===(null==(n=e.visualizationSettings)?void 0:n.sorting)});return!n||n<0?0:n}function Ir(e,t,n){var r=[];return e.forEach(function(e){var i,a;1==n[e.code]&&r.push(null!=(i=null==(a=e.values.find(function(n){return n.code===t[e.code][0]}))?void 0:a.name)?i:{})}),r}function jr(e,t){var n=e.code in t?e.values.filter(function(n){return t[e.code].includes(n.code)}):e.values;return n.reduce(function(e,t){return t.contentComponent&&e.push({name:t.name,unit:t.contentComponent.unit}),e},[])}function Vr(e,t,n){return e.code in t?e.values.filter(function(n){return t[e.code].includes(n.code)}).map(function(e){return n(e.contentComponent)}).filter(En):e.values.map(function(e){return n(e.contentComponent)}).filter(En)}function Dr(e,t){var n;if(e.length>1||0===e.length)return zn.Nominal;var r=null==(n=t.find(function(t){return t.code===e[0]}))?void 0:n.type;switch(r){case fn.Time:return zn.Time;case fn.Ordinal:return zn.Ordinal;default:return zn.Nominal}}var Or=function(e){return{accessibility:{keyboardNavigation:{seriesNavigation:{mode:"serialize"}}},responsive:{rules:[{condition:{maxHeight:600},chartOptions:{chart:{height:600}}}]},exporting:{enabled:!1,fallbackToExportServer:!1,allowHTML:!0},lang:{accessibility:{thousandsSep:xn.thousandsSepAccessibility[e],credits:xn.credits[e],chartTypes:{barMultiple:xn.barMultiple[e],barSingle:xn.barSingle[e],columnMultiple:xn.columnMultiple[e],columnSingle:xn.columnSingle[e],lineSingle:xn.lineSingle[e],lineMultiple:xn.lineMultiple[e],pieSingle:xn.pieSingle[e],scatterSingle:xn.scatterSingle[e],scatterMultiple:xn.scatterMultiple[e],defaultSingle:xn.defaultSingle[e],defaultMultiple:xn.defaultMultiple[e]},defaultChartTitle:xn.defaultChartTitle[e],exporting:{chartMenuLabel:xn.chartMenuLabel[e],menuButtonLabel:xn.menuButtonLabel[e]},legend:{legendItem:xn.legendItem[e],legendLabel:xn.legendLabel[e],legendLabelNoTitle:xn.legendLabelNoTitle[e]},axis:{rangeCategories:xn.rangeCategories[e],rangeFromTo:xn.rangeFromTo[e],timeRangeDays:xn.timeRangeDays[e],timeRangeHours:xn.timeRangeHours[e],timeRangeMinutes:xn.timeRangeMinutes[e],timeRangeSeconds:xn.timeRangeSeconds[e],xAxisDescriptionPlural:xn.xAxisDescriptionPlural[e],xAxisDescriptionSingular:xn.xAxisDescriptionSingular[e],yAxisDescriptionPlural:xn.yAxisDescriptionPlural[e],yAxisDescriptionSingular:xn.yAxisDescriptionSingular[e]},series:{summary:{bar:xn.seriesSummaryBar[e],barCombination:xn.seriesSummaryBarCombination[e],column:xn.seriesSummaryColumn[e],columnCombination:xn.seriesSummaryColumnCombination[e],default:xn.seriesSummaryDefault[e],defaultCombination:xn.seriesSummaryDefaultCombination[e],line:xn.seriesSummaryLine[e],lineCombination:xn.seriesSummaryLineCombination[e],pie:xn.seriesSummaryPie[e],pieCombination:xn.seriesSummaryPieCombination[e],scatter:xn.seriesSummaryScatter[e],scatterCombination:xn.seriesSummaryScatterCombination[e]},xAxisDescription:xn.xAxisDescription[e],yAxisDescription:xn.yAxisDescription[e]},screenReaderSection:{endOfChartMarker:xn.endOfChartMarker[e]},chartContainerLabel:xn.chartContainerLabel[e]},thousandsSep:xn.thousandsSep[e],decimalPoint:xn.decimalPoint[e],contextButtonTitle:xn.contextButtonTitle[e],downloadCSV:xn.downloadCSV[e],downloadPNG:xn.downloadPNG[e],downloadSVG:xn.downloadSVG[e],months:Sn.months[e],shortMonths:Sn.shortMonths[e],weekdays:Sn.weekdays[e],loading:xn.loading[e],numericSymbols:null},colors:Kn,chart:{style:{fontFamily:'"Barlow Semi Condensed", Verdana, sans-serif'},spacingBottom:30,spacingLeft:20,height:"56.25%"},tooltip:{enabled:!0,headerFormat:"{point.key}<br/>",pointFormat:"{point.y}",backgroundColor:"#ffffff",outside:!0,style:{color:"#000",fontSize:"1rem",fontWeight:"400"}},title:{useHTML:!0,style:{color:"#000",fontSize:"1.25rem",fontWeight:"500",textAlign:"left",maxWidth:"calc(100% - 4rem)",whiteSpace:"normal"},align:"left",margin:45,minScale:1},subtitle:{style:{color:"#000",fontSize:"1.25rem",fontWeight:"400"},align:"left"},credits:{position:{align:"left",x:5},style:{color:"#000",fontSize:"1rem",fontWeight:"400",textAlign:"left",cursor:"default"},href:""},yAxis:{title:{style:{color:"#000",fontSize:"1rem",fontWeight:"400",left:0,textAlign:"left",textOverflow:"ellipsis"},align:"high",rotation:0,textAlign:"left",offset:0,y:-15,x:55,reserveSpace:!1},lineColor:"#000",lineWidth:1,gridLineColor:"hsl(0, 0%, 35%)",gridLineWidth:.5,labels:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"},autoRotation:[0],allowOverlap:!1,formatter:jn(e)}},xAxis:{labels:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"},allowOverlap:!1,autoRotation:[0]},title:{style:{color:"#000",fontSize:"1rem",fontWeight:"400"}},lineColor:"#000",lineWidth:1,crosshair:!0},legend:{enabled:!1,itemStyle:{fontSize:"1rem",fontWeight:"400",color:"#000"},align:"center"},plotOptions:{pie:{dataLabels:{enabled:!0,useHTML:!0,connectorShape:"crookedLine",connectorColor:"#000000",style:{fontSize:"1rem",fontWeight:"400",color:"#000",textOverflow:"crop"}}},column:{groupPadding:.2,pointPadding:.01,borderRadius:0,borderWidth:0},bar:{groupPadding:.2,pointPadding:.01,borderRadius:0,borderWidth:0},series:{animation:!1}}}},Lr=function(e,t,n,r,i){void 0===r&&(r=null),function(){if("undefined"!=typeof window)try{require("highcharts/modules/pattern-fill.js"),require("highcharts/modules/accessibility.js"),require("highcharts/modules/exporting.js"),require("highcharts/modules/offline-exporting.js")}catch(e){console.error("Error loading Highcharts modules:",e)}}();var a=Vn(n);c.setOptions(Or(a));var o=Mr(t,gr(t.selectableVariableCodes,t.metaData,t.visualizationSettings.defaultSelectableVariableCodes,r)),s=fr(a,o,i);return c.chart(e,s)};function zr(e,t,n,r,i,a,o){var s=document.getElementById(a);if(!s)throw new Error("No container with matching id found in the DOM tree");try{var l=function(e,t){var n,r,i=null!=(n=e.columnNameGroups[0].length)?n:0,a=null!=(r=e.series[0].rowNameGroup.length)?r:0,o=Object.assign(document.createElement("table"),{tabIndex:0});if(i>0){var s=function(e,t){for(var n=Gr(e),r=[],i=0;i<e[0].length;i++){for(var a=document.createElement("tr"),o=0;o<e.length;o+=n[i]){var s=document.createElement("th");s.setAttribute("colSpan",n[i].toString()),s.setAttribute("scope","col"),s.textContent=e[o][i][t],a.append(s)}r.push(a)}return r}(e.columnNameGroups,t);if(a>0){var l=document.createElement("td");l.setAttribute("colSpan",a.toString()),l.setAttribute("rowSpan",i.toString()),s[0].prepend(l)}var u=document.createElement("thead");u.append.apply(u,s),o.append(u)}if(e.series.length>0){var c=document.createElement("tbody");c.append.apply(c,function(e,t){for(var n=[],r=qr(e),i=0;i<e.length;i++){for(var a=document.createElement("tr"),o=0;o<e[i].rowNameGroup.length;o++)if(i%r[o]==0){var s=document.createElement("th");s.setAttribute("rowSpan",r[o].toString()),s.setAttribute("scope","row"),s.textContent=e[i].rowNameGroup[o][t],a.append(s)}for(var l,u=v(e[i].series);!(l=u()).done;){var c=l.value,m=document.createElement("td");m.textContent=null===c.value?Tn(c.missingCode,t,!0):An(c.value,c.precision,t,!0),a.append(m)}n.push(a)}return n}(e.series,t)),o.append(c)}return o}(e,t);if(n){var u=document.createElement("caption");if(u.textContent=e.header[t],e.subheaderValues.length>0){var c=e.subheaderValues.map(function(e){return e[t]}).join(" | ");u.append(document.createElement("br"),c)}u.className="tableChart-caption",l.prepend(u)}if(s.append(l),r){var m=document.createElement("p"),d=Bn(e.units,t);m.append(xn.unit[t]+": "+d),s.append(m)}if(o){var h=document.createElement("p");h.append(o),s.append(h)}if(i){var p=document.createElement("p"),f=xn.source[t]+": "+e.sources.map(function(e){return e[t]}).join(", ");p.append(f),s.append(p)}}catch(e){console.error(e),s.replaceChildren();var g=document.createElement("h1");g.append(xn.graphCreationError[t]),s.append(g)}}var Rr=function(e,t){return Object.keys(e).every(function(n){return e[n]==t[n]})},qr=function(e){if(!e[0].rowNameGroup||0===e[0].rowNameGroup.length)return[];for(var t=Array(e[0].rowNameGroup.length).fill(1),n=0;n<e[0].rowNameGroup.length;n++)for(var r=0;r<e.length-1&&Rr(e[r].rowNameGroup[n],e[r+1].rowNameGroup[n]);r++)t[n]++;return t},Gr=function(e){if(!e||0===e.length)return[];for(var t=Array(e[0].length).fill(1),n=0;n<e[0].length;n++)for(var r=0;r<e.length-1&&Rr(e[r][n],e[r+1][n]);r++)t[n]++;return t},Br=function(e){var t=e?e.split(".")[0]:"",n=new Date;return t+"_"+n.getFullYear()+(n.getMonth()+1).toString().padStart(2,"0")+n.getDate().toString().padStart(2,"0")+"_"+n.getHours().toString().padStart(2,"0")+n.getMinutes().toString().padStart(2,"0")+n.getSeconds().toString().padStart(2,"0")},_r=function(e,t){var n,r,i,a,o,s,l,u;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===pn.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===pn.PercentVerticalBarChart)&&(e=Ar(e));var c=null!=(i=null==(a=e.columnNameGroups[0])?void 0:a.length)?i:0,m=null!=(o=null==(s=e.series[0])?void 0:s.rowNameGroup.length)?o:0,d=(null!=(l=null==(u=e.series[0])?void 0:u.series.length)?l:0)+m,h=","==xn.decimalPoint[t]?";":",",p="\n",f=$r(['"'+e.header[t]+'"'],0,d,h,p);e.subheaderValues.length>0&&(f+=$r(['"'+e.subheaderValues.map(function(e){return e[t]}).join(" | ")+'"'],0,d,h,p));for(var g=function(n){f+=$r(e.columnNameGroups.map(function(e){return'"'+e[n][t]+'"'}),m,d,h,p)},v=0;v<c;v++)g(v);return e.series.forEach(function(e){var n=[];e.rowNameGroup.length>0&&(n=e.rowNameGroup.map(function(e){return'"'+e[t]+'"'})),n=n.concat(e.series.map(function(e){return null===e.value?Tn(e.missingCode,t):An(e.value,e.precision,t)})),f+=$r(n,0,d,h,p)}),f+=$r(['"'+xn.unit[t]+": "+Bn(e.units,t)+'"'],0,d,h,p),f+=$r(['"'+xn.source[t]+": "+e.sources.map(function(e){return e[t]}).join(", ")+'"'],0,d,h)},Fr=function(e,t){return{onClick:function(){var n=_r(e,t),r=new Blob(["\ufeff",n],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r),a=document.createElement("a");a.setAttribute("href",i),a.setAttribute("download",Br(e.tableReferenceName)+".csv"),document.body.appendChild(a),a.click()},text:xn.downloadCSV[t]}};function $r(e,t,n,r,i){void 0===i&&(i="");for(var a="",o=0;o<n;o++)o>=t&&o<t+e.length&&(a+=e[o-t]),o<n-1&&(a+=r);return a+i}var Hr=['xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"','xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"','xmlns:mv="urn:schemas-microsoft-com:mac:vml"','xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main"','xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"','xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"','xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"','xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"'];function Wr(e){var t=Math.floor(e/26),n=String.fromCharCode(97+e%26).toUpperCase();return 0===t?n:Wr(t-1)+n}var Ur='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<workbook '+['xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"','xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"','xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main"','xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"','xmlns:mv="urn:schemas-microsoft-com:mac:vml"','xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"','xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"','xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"'].join(" ")+'>\n <workbookPr/>\n <sheets>\n <sheet state="visible" name="Sheet1" sheetId="1" r:id="rId3"/>\n </sheets>\n <definedNames/>\n <calcPr/>\n</workbook>';function Yr(e,t,n){for(var r=Array(n),i=0;i<n;i++)r[i]=i>=t&&i<t+e.length?e[i-t]:null;return r}var Zr,Xr,Kr,Jr,Qr,ei,ti,ni,ri,ii,ai,oi,si=function(e,t){try{var n=function(e,t){var n,r,i,a,o,s,l,u;((null==(n=e.visualizationSettings)?void 0:n.visualizationType)===pn.PercentHorizontalBarChart||(null==(r=e.visualizationSettings)?void 0:r.visualizationType)===pn.PercentVerticalBarChart)&&(e=Ar(e));var c=null!=(i=null==(a=e.columnNameGroups[0])?void 0:a.length)?i:0,m=null!=(o=null==(s=e.series[0])?void 0:s.rowNameGroup.length)?o:0,d=(null!=(l=null==(u=e.series[0])?void 0:u.series.length)?l:0)+m,h=[Yr([e.header[t]],0,d)];e.subheaderValues.length>0&&h.push(Yr([e.subheaderValues.map(function(e){return e[t]}).join(" | ")],0,d));for(var p=function(n){h.push(Yr(e.columnNameGroups.map(function(e){return e[n][t]}),m,d))},f=0;f<c;f++)p(f);return e.series.forEach(function(e){var n=[];e.rowNameGroup.length>0&&(n=e.rowNameGroup.map(function(e){return e[t]})),n=n.concat(e.series.map(function(e){return null===e.value?Tn(e.missingCode,t):Number(e.value.toFixed(e.precision))})),h.push(Yr(n,0,d))}),h.push(Yr([xn.unit[t]+": "+Bn(e.units,t)],0,d)),h.push(Yr([xn.source[t]+": "+e.sources.map(function(e){return e[t]}).join(", ")],0,d)),h}(e,t),r=function(e){var t=function(e){for(var t=[],n=1;n<=e;n++)t.push('<col min="'+n+'" max="'+n+'" width="20"/>');return t?"<cols>"+t+"</cols>":""}(Math.max.apply(Math,e.map(function(e){return e.length}))),n=function(e){return e.map(function(e,t){var n=e.map(function(e,n){return function(e,t,n){return null===e?null:"string"==typeof e?'<c r="'+Wr(t)+n+'" t="inlineStr"><is><t>'+(r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;"},e.replace(/[&<>"']/g,function(e){return r[e]})+"</t></is></c>"):'<c r="$'+Wr(t)+n+'"><v>'+e+"</v></c>";var r}(e,n,t+1)}).filter(function(e){return null!==e}).join("");return'<row r="'+(t+1)+'">'+n+"</row>"}).join("")}(e);return function(e,t){return'<?xml version="1.0" ?>\n<worksheet '+Hr.join(" ")+">\n "+e+"\n <sheetData>\n "+t+"\n </sheetData>\n</worksheet>"}(t,n)}(n),i={xl:{"worksheets/sheet1.xml":h(r),"workbook.xml":h(Ur),"_rels/workbook.xml.rels":h('<?xml version="1.0" ?>\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n <Relationship\n Id="rId3"\n Target="worksheets/sheet1.xml" \n Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"\n />\n</Relationships>')},"_rels/.rels":h('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Relationships\nxmlns="http://schemas.openxmlformats.org/package/2006/relationships"\n>\n <Relationship\n Id="rId1"\n Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"\n Target="xl/workbook.xml"\n />\n</Relationships>'),"[Content_Types].xml":h('<?xml version="1.0" ?>\n<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">\n <Default ContentType="application/xml" Extension="xml"/>\n <Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels"/>\n <Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet1.xml"/>\n <Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" PartName="/xl/workbook.xml"/>\n</Types>')};return Promise.resolve(new Promise(function(e,t){p(i,function(n,r){if(n)return t(n);var i=new Blob([r.buffer instanceof ArrayBuffer?r.buffer:new Uint8Array(r)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});return e(i)})}))}catch(e){return Promise.reject(e)}},li=function(e,t){return{onClick:function(){return Promise.resolve(si(e,t)).then(function(t){var n=URL.createObjectURL(t),r=document.createElement("a");r.setAttribute("href",n),r.setAttribute("download",Br(e.tableReferenceName)+".xlsx"),document.body.appendChild(r),r.click()})},text:xn.downloadXLSX[t]}},ui=["Bars","Times","Download","ExternalLink","Copy"],ci=function(t){var n=t.icon,r=t.inheritColor,i=void 0!==r&&r;switch(n){case"Bars":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"39.91mm",height:"29.92mm",viewBox:"0 0 113.12 84.82"},e.createElement("path",y({},i?{}:{style:{fill:"#1A3061"}},{d:"m56.51,14.13c-16.33,0-32.67.01-49,0-5.37,0-8.89-4.83-6.99-9.59C1.63,1.76,3.77.26,6.76.01c.22-.02.44,0,.66,0,32.74,0,65.49,0,98.23,0,4.3,0,7.45,2.99,7.47,7.01.02,4.11-3.15,7.1-7.6,7.11-16.33.01-32.67,0-49,0Z"})),e.createElement("path",y({},i?{}:{style:{fill:"#1A3061"}},{d:"m56.55,49.47c-16.41,0-32.82.01-49.22,0-3.78,0-6.77-2.56-7.26-6.09-.49-3.53,1.78-6.9,5.35-7.81.77-.2,1.6-.21,2.4-.21,32.52,0,65.04-.01,97.57,0,4.51,0,7.69,2.89,7.74,6.97.04,4.19-3.16,7.14-7.79,7.15-16.26,0-32.52,0-48.78,0Z"})),e.createElement("path",y({},i?{}:{style:{fill:"#1A3061"}},{d:"m56.43,84.82c-16.33,0-32.67,0-49,0-3.68,0-6.45-2.17-7.25-5.56-.73-3.09.92-6.54,3.92-7.84,1.04-.45,2.27-.69,3.41-.69,32.74-.04,65.49-.03,98.23-.02,4.27,0,7.41,3.06,7.39,7.09-.02,4.02-3.17,7.02-7.47,7.02-16.41.02-32.82,0-49.22,0Z"})));case"Times":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"26.97mm",height:"26.97mm",viewBox:"0 0 76.44 76.44"},e.createElement("path",y({},i?{}:{style:{fill:"#1A3061"}},{d:"m0,38.09C.02,17.02,17.22-.04,38.39,0c21.08.04,38.09,17.21,38.05,38.42-.04,21-17.21,38.04-38.31,38.01C17.04,76.41-.02,59.26,0,38.09ZM38.25,5.95c-17.86-.02-32.27,14.33-32.31,32.17-.04,17.94,14.33,32.35,32.25,32.37,17.87.02,32.23-14.28,32.3-32.17.07-17.92-14.31-32.35-32.24-32.37Z"})),e.createElement("path",y({},i?{}:{style:{fill:"#1A3061"}},{d:"m38.4,34c2.9-2.94,5.58-5.67,8.27-8.39.93-.94,2.13-1.38,3.25-.73.8.47,1.7,1.46,1.78,2.29.09.92-.48,2.12-1.14,2.85-2.18,2.38-4.54,4.6-6.83,6.89-.35.35-.68.71-1.07,1.12,2.67,2.68,5.35,5.26,7.88,7.99.67.72,1.28,1.95,1.16,2.84-.12.88-1.05,1.9-1.89,2.37-1.03.57-2.22.16-3.12-.75-2.31-2.33-4.65-4.63-6.96-6.97-.38-.39-.66-.87-1.36-1.8-.71.95-1.11,1.64-1.65,2.19-2.12,2.17-4.27,4.32-6.44,6.44-1.41,1.38-3.16,1.46-4.38.28-1.26-1.22-1.2-3.02.24-4.48,2.27-2.31,4.56-4.58,6.87-6.85.38-.38.88-.64,1.42-1.03-2.89-2.89-5.5-5.47-8.07-8.1-.53-.55-1.05-1.24-1.24-1.96-.35-1.32.14-2.48,1.38-3.16,1.28-.71,2.53-.5,3.56.5,2.32,2.26,4.59,4.55,6.88,6.84.46.46.86.96,1.47,1.64Z"})));case"Download":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"33.64mm",height:"33.64mm",viewBox:"0 0 95.35 95.37"},e.createElement("path",y({},i?{}:{style:{fill:"#1A3061"}},{d:"m41.74,51.99c0-1.25,0-1.92,0-2.59,0-14.4,0-28.79,0-43.19,0-3.27,2.24-5.84,5.28-6.17,3.01-.33,5.8,1.65,6.48,4.66.16.71.14,1.48.14,2.22,0,14.15,0,28.29,0,42.44v2.34c.53-.42.91-.67,1.23-.98,3.12-3.11,6.23-6.23,9.35-9.34,2.74-2.72,6.26-2.87,8.75-.4,2.49,2.46,2.39,6.06-.3,8.75-6.79,6.81-13.59,13.61-20.4,20.4-2.92,2.91-6.25,2.92-9.15.03-6.81-6.79-13.61-13.59-20.4-20.4-2.71-2.72-2.84-6.26-.35-8.75,2.48-2.49,6.03-2.36,8.75.34,3.42,3.4,6.82,6.83,10.61,10.64Z"})),e.createElement("path",y({},i?{}:{style:{fill:"#1A3061"}},{d:"m47.67,95.37c-13.83,0-27.66,0-41.49,0-3.18,0-5.7-2.16-6.12-5.13-.42-2.98,1.5-5.82,4.51-6.59.65-.17,1.35-.18,2.02-.18,27.41,0,54.83,0,82.24,0,3.8,0,6.48,2.43,6.52,5.88.04,3.53-2.66,6.02-6.56,6.03-13.71,0-27.41,0-41.12,0Z"})));case"ExternalLink":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"88.84mm",height:"79.62mm",viewBox:"0 0 251.84 225.69"},e.createElement("path",y({},i?{}:{style:{fill:"#1A3061"}},{d:"m125.89,225.68c-22.84,0-45.67.03-68.51,0C23.18,225.63.03,202.4.01,168.14,0,131.14,0,94.13.01,57.13.04,23.53,23.35.14,56.85.1c23.67-.03,21.34.02,45.01-.03,4.75,0,8.96,1.04,11.87,5.09,2.64,3.67,3.08,7.7,1.25,11.83-2.01,4.53-5.59,7-10.57,7.06-9,.11-12,.07-21,.07-15.84,0-11.67-.05-27.5.02-18.82.08-31.81,12.98-31.84,31.74-.06,38-.06,76.01,0,114.01.03,18.74,13.04,31.7,31.86,31.72,46.67.05,93.34.06,140.01,0,18.79-.02,31.71-12.99,31.79-31.8.07-17,0-14,.03-31.01.02-8.3,4.75-13.75,11.83-13.81,7.07-.06,12.12,5.48,12.16,13.61.07,17.5.18,15.01-.02,32.51-.34,30.71-23.87,54.02-54.81,54.56h-71.01l-.02.02Z"})),e.createElement("path",y({},i?{}:{style:{fill:"#1A3061"}},{d:"m207.19,24.08c-6.95,0-23.9.04-30.85,0-8.12-.06-13.27-4.55-13.44-11.6-.17-7.19,5.18-12.33,13.32-12.38,17.33-.11,44.67-.12,62,0,8.48.06,13.45,4.99,13.5,13.37.12,16.83.12,43.67,0,60.5-.06,7.69-5.4,13.04-12.34,12.87-6.83-.17-11.53-5.35-11.61-12.97-.08-7.63-.02-25.26-.02-34.12-2.09,1.8-3.42,2.88-4.68,4.03-26.76,24.57-53.52,49.15-80.28,73.72-1.6,1.47-3.13,3-4.82,4.36-5.57,4.47-12.54,3.94-16.98-1.2-4.31-4.98-4.06-11.78,1.06-16.6,10.92-10.28,22.03-20.36,33.07-30.51,16.56-15.23,33.13-30.45,49.72-45.65.97-.89,2.15-1.56,3.23-2.33-.29-.5-.58-.99-.87-1.49h0Z"})));case"Copy":return e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"31.19mm",height:"31.21mm",viewBox:"0 0 88.41 88.48"},e.createElement("path",y({},i?{}:{style:{fill:"#1A3061"}},{d:"m20.67,54.61c0-7.55,0-15.1,0-22.65,0-6.79,4.38-11.2,11.13-11.21,15.16-.01,30.33-.01,45.49,0,6.75,0,11.12,4.42,11.12,11.22,0,15.1,0,30.2,0,45.3,0,6.79-4.39,11.21-11.13,11.21-15.16,0-30.33,0-45.49,0-6.66,0-11.1-4.41-11.12-11.03-.02-7.61,0-15.22,0-22.83Zm60.78.1c0-7.67,0-15.34,0-23.01,0-2.72-1.23-3.98-3.89-3.99-15.34,0-30.68,0-46.02,0-2.67,0-3.89,1.26-3.89,3.98,0,15.28,0,30.55,0,45.83,0,2.79,1.23,3.99,4.07,3.99,15.22,0,30.44,0,45.65,0,2.91,0,4.08-1.21,4.08-4.17,0-7.55,0-15.09,0-22.64Z"})),e.createElement("path",y({},i?{}:{style:{fill:"#1A3061"}},{d:"m13.66,60.85v6.64C6.35,69.22.02,64.29.01,56.9c-.02-15.34-.02-30.69,0-46.03C.02,4.48,4.36.11,10.73.1c15.1-.02,30.21.19,45.3-.1,6.89-.13,12.81,4.89,11.49,13.58h-6.74c0-.95.03-1.91,0-2.86-.08-2.34-1.35-3.69-3.66-3.69-15.53-.02-31.06-.02-46.59,0-2.36,0-3.58,1.27-3.58,3.7-.02,15.4-.02,30.81,0,46.21,0,2.65,1.32,3.87,4.01,3.91.85.01,1.7,0,2.71,0Z"})));default:return e.createElement("span",null,"No icon for ",n,e.createElement("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"26.97mm",height:"26.97mm",viewBox:"0 0 76.45 76.44"},e.createElement("path",y({},i?{}:{style:{fill:"#1A3061"}},{d:"m0,38.1C.02,17.02,17.22-.04,38.4,0c21.08.04,38.1,17.21,38.06,38.43-.04,21-17.21,38.05-38.32,38.02C17.04,76.42-.02,59.27,0,38.1ZM38.26,5.95c-17.86-.02-32.27,14.33-32.31,32.17-.04,17.94,14.33,32.35,32.25,32.37,17.87.02,32.23-14.28,32.3-32.17.07-17.92-14.31-32.35-32.24-32.37Z"})),e.createElement("path",y({},i?{}:{style:{fill:"#1A3061"}},{d:"m34.1,43.95c-.12-.12-.18-.26-.18-.43v-1.62c0-1.68.43-3.04,1.29-4.07.86-1.03,2.1-2.11,3.71-3.26,1.31-.91,2.29-1.72,2.93-2.42s.96-1.57.96-2.58c0-1.08-.4-1.95-1.21-2.6-.81-.66-1.87-.99-3.18-.99-1.42,0-2.55.35-3.41,1.06-.86.71-1.29,1.62-1.29,2.73v.81c0,.37-.2.56-.61.56l-5.91-.25c-.17,0-.31-.06-.43-.18-.12-.12-.18-.26-.18-.43v-.5c0-2.02.51-3.81,1.52-5.38,1.01-1.57,2.42-2.78,4.22-3.64,1.8-.86,3.88-1.29,6.24-1.29s4.3.41,6.04,1.24c1.73.83,3.07,1.98,4.02,3.46.94,1.48,1.41,3.2,1.41,5.15,0,1.48-.26,2.75-.78,3.81-.52,1.06-1.15,1.93-1.89,2.6-.74.67-1.68,1.42-2.83,2.22-1.21.84-2.11,1.57-2.68,2.17s-.86,1.35-.86,2.22v1.16c0,.17-.06.31-.18.43-.12.12-.26.18-.43.18h-5.86c-.17,0-.31-.06-.43-.18Zm.3,10.36c-.76-.76-1.14-1.71-1.14-2.85s.37-2.09,1.11-2.83,1.7-1.11,2.88-1.11,2.13.36,2.85,1.09c.72.72,1.09,1.68,1.09,2.85s-.37,2.1-1.11,2.85c-.74.76-1.68,1.14-2.83,1.14s-2.1-.38-2.85-1.14Z"}))))}},mi=dn(a(function(t,n){return e.createElement("button",y({ref:n},t))}))(Zr||(Zr=w(['\n background-color: transparent;\n text-align: left;\n border: none;\n margin: 0;\n padding: 0.5rem 0.7rem 0.5rem 0.7rem;\n cursor: pointer;\n display: inline;\n font-family: "Barlow Semi Condensed", Verdana, sans-serif;\n min-width: 14rem;\n color: #1a3061;\n min-height: 3rem;\n font-size: 0.75rem;\n :hover {\n text-decoration: underline;\n }\n']))),di=dn(a(function(t,n){return e.createElement("a",y({ref:n},t,{title:t.children?t.children.toString():""}))}))(Xr||(Xr=w(['\n text-decoration: none;\n display: flex;\n align-items: center;\n padding: 0.5rem 0.7rem;\n min-width: 14rem;\n font-family: "Barlow Semi Condensed", Verdana, sans-serif;\n color: #1a3061;\n min-height: 3rem;\n font-size: 0.75rem;\n :hover {\n text-decoration: underline;\n }\n']))),hi=dn.li(Kr||(Kr=w(["\n border-top-right-radius: ",";\n border-top-left-radius: ",";\n border-bottom-right-radius: ",";\n border-bottom-left-radius: ",";\n border-bottom: ",";\n :hover {\n background-color: #f2f2f2;\n }\n"])),function(e){return e.$isFirst?"18px":"0px"},function(e){return e.$isFirst?"18px":"0px"},function(e){return e.$isLast?"18px":"0px"},function(e){return e.$isLast?"18px":"0px"},function(e){return e.$separator?"1px solid #bdbdbd":"0px"}),pi=dn.div(Jr||(Jr=w(["\n height: 100%;\n width: 100%;\n display: flex;\n flex-direction: row;\n align-content: center;\n justify-content: left;\n align-items: center;\n justify-items: center;\n"]))),fi=dn.div(Qr||(Qr=w(["\n height: 1rem;\n width: 1rem;\n svg {\n height: 1rem;\n width: 1rem;\n fill: #1a3061;\n }\n"]))),gi=dn.span(ei||(ei=w(["\n margin-left: ",";\n margin-right: ",";\n"])),function(e){return e.$hasPrefixIcon?"0.5rem":"0px"},function(e){return e.$hasSuffixIcon?"0.5rem":"0px"}),vi=dn.span(ti||(ti=w(["\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n"]))),yi=a(function(t,n){var r,i,a=t.text,o=t.onClick,s=t.url,l=t.openNewTab,u=t.isExternal,c=t.prefixIcon,m=t.suffixIcon,d=t.locale,h=t.idPrefix,p=t.bottomSeparator,f=void 0!==p&&p,g=t.isFirst,v=void 0!==g&&g,y=t.isLast,b=void 0!==y&&y,w=t.tabIndex,x=void 0===w?-1:w,S=t.index,k=void 0===S?-1:S;c&&(r="string"==typeof c&&ui.includes(c)?e.createElement(ci,{inheritColor:!0,icon:c}):c),m&&(i="string"==typeof m&&ui.includes(m)?e.createElement(ci,{inheritColor:!0,icon:m}):c);var C=e.createElement(pi,null,r&&e.createElement(fi,null,r),e.createElement(gi,{$hasPrefixIcon:!!c,$hasSuffixIcon:!!m||u},a),m&&e.createElement(fi,null,i),u&&e.createElement(e.Fragment,null,e.createElement(vi,null,xn.externalLink[d]),e.createElement(fi,null,e.createElement(ci,{inheritColor:!0,icon:"ExternalLink"}))));return s?e.createElement(hi,{$isFirst:v,$isLast:b,$separator:f},e.createElement(di,{role:"menuitem",id:h+"-menuitem-"+k,ref:n,href:s,target:l?"_blank":void 0,onKeyDown:function(e){" "===e.key&&(e.preventDefault(),e.target.click())},onClick:function(e){o&&o()},tabIndex:x},C)):o?e.createElement(hi,{$isFirst:v,$isLast:b,$separator:f},e.createElement(mi,{role:"menuitem",id:h+"-menuitem-"+k,ref:n,onClick:o,tabIndex:x},C)):e.createElement(e.Fragment,null)}),bi=dn.div(ni||(ni=w(["\n width: 2.5rem;\n height: 2.5rem;\n"]))),wi=dn.button(ri||(ri=w(["\n width: 100%;\n height: 100%;\n svg {\n height: 1.5rem;\n width: 1.5rem;\n }\n background-color: transparent;\n border: none;\n cursor: pointer;\n"]))),xi=dn.div(ii||(ii=w(["\n width: 100%;\n height: 0;\n position: relative;\n"]))),Si=dn.div(ai||(ai=w(["\n display: flex;\n flex-flow: column;\n position: absolute;\n background-color: #fff;\n border-radius: 18px;\n top: 0.2rem;\n right: 0.2rem;\n border: 1px solid #bdbdbd;\n"]))),ki=dn.ul(oi||(oi=w(["\n list-style-type: none;\n margin: 0;\n padding: 0;\n"])));function Ci(e){var t,n,r=600,i=e.chart.chartWidth,a=e.chart.chartHeight,o=Math.max(.5,Math.min(2,i/a));return o<1?(t=(n=Math.max(r,Math.min(3e3,a)))*o)<r&&(n=(t=r)/o):(n=(t=Math.max(r,Math.min(3e3,i)))/o)<r&&(t=(n=r)*o),{finalWidth:t,finalHeight:n}}var Ni=function(e,t){return-1!=t&&t===e?0:-1},Ei=function(t){var n=t.viewData,r=t.currentChartRef,i=t.tableToggle,a=t.menuItemDefinitions,l=t.locale,u=t.menuIconInheritColor,c=void 0!==u&&u,m=t.toggleAccessibilityMode,d=t.accessibilityMode,h=e.useState(!1),p=h[0],f=h[1],g=e.useState(-1),v=g[0],y=g[1],b=o(),w=e.useRef(new Map),x=e.useRef(null),S=function(e){x.current&&p&&!x.current.contains(e.target)&&j(!1)};e.useEffect(function(){V()},[v]);var k=function(e){return function(t){w.current.set(e,t)}};document.addEventListener("mousedown",S);var C=Fr(n,l),N=li(n,l),E=null==a?void 0:a.map(function(t,n){return"onClick"in t?e.createElement(yi,{tabIndex:Ni(n,v),isFirst:0===n,index:n,bottomSeparator:n+1===a.length,locale:l,prefixIcon:t.prefixIcon,suffixIcon:t.suffixIcon,key:"customfmenuitem-"+t.text,text:t.text,onClick:function(){return I(t.onClick)},ref:k(n),idPrefix:b}):"url"in t?e.createElement(yi,{tabIndex:Ni(n,v),isFirst:0===n,index:n,bottomSeparator:n+1===a.length,locale:l,prefixIcon:t.prefixIcon,suffixIcon:t.suffixIcon,isExternal:t.isExternal,key:"customlmenuitem-"+t.text,text:""+t.text,url:t.url,openNewTab:t.openNewTab,onClick:function(){return I()},ref:k(n),idPrefix:b}):void 0}),M=function(){var t=[],o=a?a.length:0;return t.push(e.createElement(yi,{index:o,isFirst:!a,locale:l,prefixIcon:"Download",text:N.text,onClick:function(){return I(N.onClick)},tabIndex:Ni(o,v),ref:k(o),key:"xlsx-menu-item",idPrefix:b})),o++,t.push(e.createElement(yi,{index:o,isLast:!r,bottomSeparator:!!r,locale:l,prefixIcon:"Download",text:C.text,onClick:function(){return I(C.onClick)},tabIndex:Ni(o,v),ref:k(o),key:"csv-menu-item",idPrefix:b})),r&&(o++,t.push(e.createElement(yi,{index:o,locale:l,prefixIcon:"Download",text:xn.downloadSVG[l],onClick:function(){return I(function(){return r.chart.exporting.exportChart({filename:""+Br(n.tableReferenceName),type:"image/svg+xml",sourceWidth:Ci(r).finalWidth,sourceHeight:Ci(r).finalHeight,scale:1},{})})},tabIndex:Ni(o,v),ref:k(o),key:"svg-menu-item",idPrefix:b})),o++,t.push(e.createElement(yi,{index:o,isLast:!i,bottomSeparator:!!i,locale:l,prefixIcon:"Download",text:xn.downloadPNG[l],onClick:function(){return I(function(){return r.chart.exporting.exportChart({filename:""+Br(n.tableReferenceName),sourceWidth:Ci(r).finalWidth,sourceHeight:Ci(r).finalHeight,scale:1},{})})},tabIndex:Ni(o,v),ref:k(o),key:"png-menu-item",idPrefix:b}))),D&&(o++,t.push(e.createElement(yi,{index:o,isFirst:!1,locale:l,text:d?xn.toggleAccessibilityModeOff[l]:xn.toggleAccessibilityModeOn[l],onClick:function(){return I(m)},tabIndex:Ni(o,v),ref:k(o),key:"accessibility-mode-toggle",idPrefix:b}))),i&&(o++,t.push(e.createElement(yi,{index:o,isLast:!0,locale:l,text:i.tableMode?xn.toggleTableModeOffText[l]:xn.toggleTableModeOnText[l],onClick:function(){return I(i.toggleHandler)},tabIndex:Ni(o,v),ref:k(o),key:"table-toggle",idPrefix:b}))),t};s(function(){return y(p?0:-1),document.addEventListener("mousedown",S),document.addEventListener("keydown",T),function(){document.removeEventListener("mousedown",S),document.removeEventListener("keydown",T)}},[p]);var A=function(){return(a?a.length:0)+M().length-1},T=function(e){("Escape"===e.key||"Tab"===e.key&&p)&&j(!1,"Escape"===e.key),"ArrowDown"===e.key&&p&&(e.preventDefault(),y(function(e){var t=e+1;return t>A()?0:t})),"ArrowUp"===e.key&&p&&(e.preventDefault(),y(function(e){var t=e-1,n=A();return t<0?n:t}))},P=e.useRef(null),I=function(e){j(!1,!0),e&&e()},j=function(e,t){var n;void 0===t&&(t=!1),f(e),!e&&t&&(null==(n=P.current)||n.focus())},V=function(){var e;-1!==v&&w.current.has(v)&&(null==(e=w.current.get(v))||e.focus())},D=!!i&&!i.tableMode&&n.visualizationSettings.visualizationType!=pn.ScatterPlot;return e.createElement(bi,{ref:x},e.createElement(wi,{ref:P,"aria-label":""+xn.chartMenuLabel[l],"aria-expanded":p,onClick:function(){j(!p)},"aria-haspopup":"menu","aria-controls":b+"-menu"},e.createElement(ci,{inheritColor:c,icon:p?"Times":"Bars"})),e.createElement(xi,null,p&&e.createElement(Si,null,e.createElement(ki,{id:b+"-menu",role:"menu","aria-label":""+xn.chartMenuLabel[l],"aria-orientation":"vertical","aria-activedescendant":b+"-menuitem-"+v,tabIndex:p?0:-1},a&&E,M()))))};const Mi=[];for(let e=0;e<256;++e)Mi.push((e+256).toString(16).slice(1));let Ai;const Ti=new Uint8Array(16);var Pi,Ii,ji,Vi,Di,Oi,Li={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},zi=function(t){var n=t.view,r=t.locale,i=t.footnote,a=t.showTitles,o=void 0===a||a,s=t.showUnits,u=void 0===s||s,c=t.showSources,m=void 0===c||c,d=l(function(){return function(e){if(Li.randomUUID&&!e)return Li.randomUUID();const t=(e=e||{}).random??e.rng?.()??function(){if(!Ai){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ai=crypto.getRandomValues.bind(crypto)}return Ai(Ti)}();if(t.length<16)throw new Error("Random bytes length must be >= 16");return t[6]=15&t[6]|64,t[8]=63&t[8]|128,function(e,t=0){return(Mi[e[t+0]]+Mi[e[t+1]]+Mi[e[t+2]]+Mi[e[t+3]]+"-"+Mi[e[t+4]]+Mi[e[t+5]]+"-"+Mi[e[t+6]]+Mi[e[t+7]]+"-"+Mi[e[t+8]]+Mi[e[t+9]]+"-"+Mi[e[t+10]]+Mi[e[t+11]]+Mi[e[t+12]]+Mi[e[t+13]]+Mi[e[t+14]]+Mi[e[t+15]]).toLowerCase()}(t)}()},[n,r]);return e.useEffect(function(){var e;null==(e=document.getElementById(d))||e.replaceChildren(),zr(n,r,o,u,m,d,i)},[n,r,o,u,m,i]),e.createElement("div",{className:"tableChart",id:d})},Ri=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=un.apply(void 0,S([t],n,!1)),a="sc-global-".concat(Ue(JSON.stringify(i))),o=new hn(i,a);"production"!==process.env.NODE_ENV&&Ve(a);var s=function(t){var n=Wt(),r=e.useContext(nn),s=e.useRef(n.styleSheet.allocateGSInstance(a)).current;return"production"!==process.env.NODE_ENV&&e.Children.count(t.children)&&console.warn("The global style component ".concat(a," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&i.some(function(e){return"string"==typeof e&&-1!==e.indexOf("@import")})&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),n.styleSheet.server&&l(s,t,n.styleSheet,r,n.stylis),e.useLayoutEffect(function(){if(!n.styleSheet.server)return l(s,t,n.styleSheet,r,n.stylis),function(){return o.removeStyles(s,n.styleSheet)}},[s,t,n.styleSheet,r,n.stylis]),null};function l(e,t,n,r,i){if(o.isStatic)o.renderStyles(e,Pe,n,i);else{var a=x(x({},t),{theme:Le(t,r,s.defaultProps)});o.renderStyles(e,a,n,i)}}return e.memo(s)}(Pi||(Pi=w(["\n /* @font-face {\n font-family: 'Barlow Semi Condensed';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(./fonts/BarlowSemiCondensed-Medium.ttf) format('truetype');\n }\n\n @font-face {\n font-family: 'Barlow Semi Condensed';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(./fonts/BarlowSemiCondensed-Regular.ttf) format('truetype');\n } */\n\n .highcharts-root {\n font-family: \"Barlow Semi Condensed\", Verdana, sans-serif;\n }\n\n .highcharts-tooltip-container {\n z-index: 999 !important;\n }\n\n .tableChart {\n font-family: \"Barlow Semi Condensed\", Verdana, sans-serif;\n overflow-x: auto;\n padding-left: 20px;\n padding-top: 38px;\n padding-right: 20px;\n }\n\n .tableChart:has(.title) {\n padding-top: 14px;\n }\n\n .tableChart table,\n .tableChart th,\n .tableChart td {\n border: 1px solid black;\n }\n\n .tableChart .title {\n margin-top: 0;\n font-size: 1.25rem;\n font-weight: 500;\n margin-bottom: 0rem;\n width: 90%;\n display: block;\n }\n\n .tableChart .subtitle {\n font-size: 1.25rem;\n font-weight: 400;\n margin-bottom: 2rem;\n margin-top: 6px;\n width: 90%;\n display: block;\n }\n\n .tableChart .caption {\n width: 90%;\n display: block;\n caption-side: top;\n }\n\n .tableChart-caption {\n font-size: 1.25rem;\n font-weight: 500;\n color: #333;\n margin-bottom: 2rem;\n text-align: left;\n }\n"]))),qi=dn.div(Ii||(Ii=w(["\n width: 100%;\n position: relative;\n font-family: 'Barlow Semi Condensed';\n"]))),Gi=function(t){return e.createElement(qi,null,e.createElement("h1",null,xn.graphCreationError[t.locale]))},Bi=/*#__PURE__*/function(e){function t(t){var n;return(n=e.call(this,t)||this).state={hasError:!1},n}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,b(n,r),t.getDerivedStateFromError=function(){return{hasError:!0}};var i=t.prototype;return i.componentDidCatch=function(e,t){console.error(e,t.componentStack)},i.render=function(){return this.state.hasError?this.props.fallback:this.props.children},t}(u),_i=dn.div(ji||(ji=w(["\n width: 100%;\n position: relative;\n"]))),Fi=dn.div(Vi||(Vi=w(["\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1;\n"]))),$i=dn.div(Di||(Di=w(["\n display: ",";\n"])),function(e){return e.$tableMode?"none":"block"}),Hi=dn.div(Oi||(Oi=w(["\n display: ",";\n"])),function(e){return e.$tableMode?"block":"none"}),Wi=function(t){var n,r=t.pxGraphData,i=t.footnote,a=t.menuItemDefinitions,o=t.selectedVariableCodes,s=void 0===o?null:o,u=t.showContextMenu,c=void 0===u||u,d=t.menuIconInheritColor,h=void 0!==d&&d,p=t.showTitles,g=t.showTableUnits,v=t.showTableSources,y=Vn(t.locale);n=y,"object"==typeof m&&(m.wrap(m.SVGRenderer.prototype,"init",function(e){e.apply(this,Array.prototype.slice.call(arguments,1)),this.box.children[0]&&/Created with Highcharts/.test(this.box.children[0].innerHTML)&&this.box.children[0].remove()}),m.setOptions(Or(n)));var b,w=e.useRef(null),x=e.useState(w.current),S=x[0],k=x[1],C=e.useState(!1),N=C[0],E=C[1],M=e.useState(!1),A=M[0],T=M[1],P=e.useState(0),I=P[0],j=P[1],V=l(function(){try{return gr(r.selectableVariableCodes,r.metaData,r.visualizationSettings.defaultSelectableVariableCodes,s)}catch(e){return console.error(e),{}}},[s,r]),D=l(function(){try{return Mr(r,V)}catch(e){return console.error(e),null}},[V,r]);function O(){I!==window.innerWidth&&j(window.innerWidth)}window&&window.addEventListener("resize",function(){clearTimeout(b),b=setTimeout(O,100)}),e.useEffect(function(){w.current&&k(w.current)},[w.current]);try{if(D&&r.visualizationSettings.visualizationType!==pn.Table){var L=fr(y,D,{accessibilityMode:A,showTitle:null==p||p});return e.createElement(_i,null,c&&e.createElement(Fi,null,e.createElement(Ei,{menuItemDefinitions:a,viewData:D,currentChartRef:S,locale:y,tableToggle:{tableMode:N,toggleHandler:function(){E(!N)}},menuIconInheritColor:h,accessibilityMode:A,toggleAccessibilityMode:function(){T(!A)}})),e.createElement($i,{$tableMode:N},e.createElement(f,{ref:w,immutable:!0,highcharts:m,options:L})),e.createElement(Hi,{$tableMode:N},e.createElement(zi,{showTitles:null==p||p,footnote:i,showUnits:!!g,showSources:null==v||v,view:D,locale:y})))}if(D&&r.visualizationSettings.visualizationType===pn.Table)return e.createElement(_i,null,c&&e.createElement(Fi,null,e.createElement(Ei,{menuItemDefinitions:a,viewData:D,locale:y,menuIconInheritColor:h})),e.createElement(zi,{showTitles:null==p||p,footnote:i,showUnits:!!g,showSources:null==v||v,view:D,locale:y}))}catch(t){return console.error(t),e.createElement(Gi,{locale:y})}return e.createElement(Gi,{locale:y})},Ui=function(t){var n=Vn(t.locale);return e.createElement(Bi,{fallback:e.createElement(Gi,{locale:n})},e.createElement(Ri,null),e.createElement(Wi,y({},t)))};export{Cn as AddTranslations,Ei as BurgerMenu,Ui as Chart,gn as ETimeVariableInterval,fn as EVariableType,pn as EVisualizationType,Bi as ErrorBoundary,Ri as GlobalStyle,ci as Icon,yi as MenuItem,si as buildMinimalXlsxBlobAsync,Ci as calculateExportDimensions,Mr as convertPxGrafResponseToView,fr as convertPxGraphDataToChartOptions,Kn as defaultColors,Jn as defaultFillPatterns,Or as defaultTheme,Lr as drawChart,gr as extractSelectableVariableValues,_r as generateCsv,zr as renderHtmlTable,Fr as viewToDownloadCSVOption,li as viewToDownloadXLSOption};
2
2
  //# sourceMappingURL=pxv.module.js.map